@alexeiled/pi-fusion 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/user-guide.md +1 -1
- package/package.json +1 -1
- package/src/run-builder.ts +21 -11
package/README.md
CHANGED
package/docs/user-guide.md
CHANGED
|
@@ -451,7 +451,7 @@ For an economical mixed panel, give each member a fast or inexpensive frontier,
|
|
|
451
451
|
|
|
452
452
|
`pi-subagents RPC is unavailable`
|
|
453
453
|
|
|
454
|
-
- install or update `pi-subagents` to 0.
|
|
454
|
+
- install or update `pi-subagents` to 0.43.0 or later
|
|
455
455
|
- reload Pi
|
|
456
456
|
- retry `/fusion status`
|
|
457
457
|
|
package/package.json
CHANGED
package/src/run-builder.ts
CHANGED
|
@@ -43,7 +43,6 @@ export interface PanelWorkflowTaskParams extends PanelSubagentTaskParams {
|
|
|
43
43
|
export interface PanelSpawnParams {
|
|
44
44
|
workflowScript: string;
|
|
45
45
|
async: true;
|
|
46
|
-
clarify: false;
|
|
47
46
|
context: "fresh" | "fork";
|
|
48
47
|
output: true;
|
|
49
48
|
outputMode: "inline";
|
|
@@ -51,22 +50,28 @@ export interface PanelSpawnParams {
|
|
|
51
50
|
timeoutMs?: number;
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
export interface
|
|
53
|
+
export interface JudgeWorkflowTaskParams {
|
|
55
54
|
agent: string;
|
|
56
55
|
task: string;
|
|
57
|
-
async: true;
|
|
58
|
-
clarify: false;
|
|
59
|
-
context: "fresh" | "fork";
|
|
60
56
|
output: true;
|
|
61
57
|
outputMode: "inline";
|
|
62
58
|
skill: false;
|
|
63
59
|
acceptance: FusionAcceptanceDisabled;
|
|
64
60
|
model?: string;
|
|
65
|
-
timeoutMs?: number;
|
|
66
61
|
/** Per-task cap on judge tool calls; see `FusionProfile.judgeToolBudget`. */
|
|
67
62
|
toolBudget?: ToolBudget;
|
|
68
63
|
}
|
|
69
64
|
|
|
65
|
+
export interface JudgeSpawnParams {
|
|
66
|
+
workflowScript: string;
|
|
67
|
+
async: true;
|
|
68
|
+
context: "fresh" | "fork";
|
|
69
|
+
output: true;
|
|
70
|
+
outputMode: "inline";
|
|
71
|
+
acceptance: FusionAcceptanceDisabled;
|
|
72
|
+
timeoutMs?: number;
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
export type { FailedPanelSummary, PanelOutput } from "./types.js";
|
|
71
76
|
|
|
72
77
|
export interface BuildJudgeSpawnParamsInput {
|
|
@@ -167,7 +172,6 @@ export function buildPanelSpawnParams(
|
|
|
167
172
|
profile.stopWhenPanelAgrees === true,
|
|
168
173
|
),
|
|
169
174
|
async: true,
|
|
170
|
-
clarify: false,
|
|
171
175
|
context: profile.context ?? "fresh",
|
|
172
176
|
output: true,
|
|
173
177
|
outputMode: "inline",
|
|
@@ -185,12 +189,9 @@ export function buildJudgeSpawnParams(
|
|
|
185
189
|
input.profile.judge.model,
|
|
186
190
|
input.profile.judge.thinking,
|
|
187
191
|
);
|
|
188
|
-
|
|
192
|
+
const task: JudgeWorkflowTaskParams = {
|
|
189
193
|
agent: resolveSynthesisAgent(input.profile),
|
|
190
194
|
task: buildJudgeTask(input),
|
|
191
|
-
async: true,
|
|
192
|
-
clarify: false,
|
|
193
|
-
context: input.profile.context ?? "fresh",
|
|
194
195
|
output: true,
|
|
195
196
|
outputMode: "inline",
|
|
196
197
|
skill: false,
|
|
@@ -199,6 +200,15 @@ export function buildJudgeSpawnParams(
|
|
|
199
200
|
...(input.profile.judgeToolBudget
|
|
200
201
|
? { toolBudget: input.profile.judgeToolBudget }
|
|
201
202
|
: {}),
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
return {
|
|
206
|
+
workflowScript: `return runs.run("judge", ${JSON.stringify(task)});`,
|
|
207
|
+
async: true,
|
|
208
|
+
context: input.profile.context ?? "fresh",
|
|
209
|
+
output: true,
|
|
210
|
+
outputMode: "inline",
|
|
211
|
+
acceptance: FUSION_ACCEPTANCE_DISABLED,
|
|
202
212
|
...(input.profile.timeoutMs !== undefined
|
|
203
213
|
? { timeoutMs: input.profile.timeoutMs }
|
|
204
214
|
: {}),
|