feat(pi-workflow): reuse standard agent profiles
This commit is contained in:
@@ -46,7 +46,12 @@ export interface AgentProfile {
|
||||
tools?: string[];
|
||||
selection: ProfileSelection;
|
||||
instructions: string;
|
||||
source: "bundled" | "project";
|
||||
source:
|
||||
| "bundled"
|
||||
| "project"
|
||||
| "standard-package"
|
||||
| "standard-global"
|
||||
| "standard-project";
|
||||
sourcePath: string;
|
||||
resolvedPath: string;
|
||||
digest: string;
|
||||
@@ -446,6 +451,11 @@ export const MAX_CONCURRENCY = 32;
|
||||
export const MAX_ASSIGNMENTS_PER_RUN = 1_024;
|
||||
export const MAX_REVIEW_CYCLES = 20;
|
||||
|
||||
export interface StandardAgentConfig {
|
||||
enabled: boolean;
|
||||
roles: Record<string, ProfileRole[]>;
|
||||
}
|
||||
|
||||
export interface WorkflowConfig {
|
||||
concurrency: {
|
||||
default: number;
|
||||
@@ -454,6 +464,7 @@ export interface WorkflowConfig {
|
||||
maxAssignmentsPerRun: number;
|
||||
maxReviewCycles: number;
|
||||
analysisTools: string[];
|
||||
standardAgents: StandardAgentConfig;
|
||||
worktrees: {
|
||||
root: string;
|
||||
};
|
||||
@@ -467,6 +478,13 @@ export const DEFAULT_WORKFLOW_CONFIG: WorkflowConfig = {
|
||||
maxAssignmentsPerRun: 128,
|
||||
maxReviewCycles: 3,
|
||||
analysisTools: [...ANALYSIS_TOOL_ALLOWLIST],
|
||||
standardAgents: {
|
||||
enabled: true,
|
||||
roles: {
|
||||
scout: ["discover"],
|
||||
worker: ["implement"],
|
||||
},
|
||||
},
|
||||
worktrees: {
|
||||
root: ".worktrees",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user