feat(pi-workflow): reuse standard agent profiles
This commit is contained in:
@@ -415,6 +415,12 @@ test("mutating children receive guarded file tools without process execution", a
|
||||
).profiles;
|
||||
const profile = profiles.find((candidate) => candidate.roles.includes("implement"));
|
||||
assert.ok(profile);
|
||||
const standardWorker = {
|
||||
...profile,
|
||||
name: "worker",
|
||||
source: "standard-package" as const,
|
||||
tools: [...(profile.tools ?? []), "bash", "subagent"],
|
||||
};
|
||||
const inherited = model("provider-a", "parent");
|
||||
const executor = new PiAssignmentExecutor({
|
||||
modelRegistry: registry([inherited]),
|
||||
@@ -476,7 +482,7 @@ test("mutating children receive guarded file tools without process execution", a
|
||||
runId: "run-mutation",
|
||||
role: "design",
|
||||
request: "Generate an owned file",
|
||||
profile,
|
||||
profile: standardWorker,
|
||||
facts: {
|
||||
stage: "design",
|
||||
taskKind: "feature",
|
||||
|
||||
Reference in New Issue
Block a user