@cleocode/cleo 2026.4.16 → 2026.4.17
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/dist/cli/index.js +52 -9
- package/dist/cli/index.js.map +2 -2
- package/package.json +7 -7
package/dist/cli/index.js
CHANGED
|
@@ -111598,8 +111598,29 @@ async function orchestrateFanout(items, projectRoot) {
|
|
|
111598
111598
|
try {
|
|
111599
111599
|
const settled = await Promise.allSettled(
|
|
111600
111600
|
items.map(async (item) => {
|
|
111601
|
-
|
|
111602
|
-
|
|
111601
|
+
const spawnResult = await orchestrateSpawnExecute(
|
|
111602
|
+
item.taskId,
|
|
111603
|
+
/* adapterId */
|
|
111604
|
+
void 0,
|
|
111605
|
+
/* protocolType */
|
|
111606
|
+
void 0,
|
|
111607
|
+
projectRoot,
|
|
111608
|
+
/* tier */
|
|
111609
|
+
void 0
|
|
111610
|
+
);
|
|
111611
|
+
if (!spawnResult.success) {
|
|
111612
|
+
return {
|
|
111613
|
+
taskId: item.taskId,
|
|
111614
|
+
status: "failed",
|
|
111615
|
+
error: spawnResult.error?.message ?? `Spawn failed for task ${item.taskId}`
|
|
111616
|
+
};
|
|
111617
|
+
}
|
|
111618
|
+
const data = spawnResult.data;
|
|
111619
|
+
return {
|
|
111620
|
+
taskId: item.taskId,
|
|
111621
|
+
status: "spawned",
|
|
111622
|
+
instanceId: typeof data?.instanceId === "string" ? data.instanceId : void 0
|
|
111623
|
+
};
|
|
111603
111624
|
})
|
|
111604
111625
|
);
|
|
111605
111626
|
const results = settled.map((outcome, i) => {
|
|
@@ -111612,15 +111633,18 @@ async function orchestrateFanout(items, projectRoot) {
|
|
|
111612
111633
|
error: outcome.reason instanceof Error ? outcome.reason.message : String(outcome.reason)
|
|
111613
111634
|
};
|
|
111614
111635
|
});
|
|
111636
|
+
fanoutManifestStore.set(manifestEntryId, {
|
|
111637
|
+
results,
|
|
111638
|
+
completedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
111639
|
+
});
|
|
111615
111640
|
return {
|
|
111616
111641
|
success: true,
|
|
111617
111642
|
data: {
|
|
111618
111643
|
manifestEntryId,
|
|
111619
111644
|
results,
|
|
111620
111645
|
total: items.length,
|
|
111621
|
-
|
|
111622
|
-
failed: results.filter((r) => r.status === "failed").length
|
|
111623
|
-
note: "fanout spawn execution is a W7b stub \u2014 real Pi adapter wiring lands with runtime enforcement"
|
|
111646
|
+
spawned: results.filter((r) => r.status === "spawned").length,
|
|
111647
|
+
failed: results.filter((r) => r.status === "failed").length
|
|
111624
111648
|
}
|
|
111625
111649
|
};
|
|
111626
111650
|
} catch (error48) {
|
|
@@ -111714,7 +111738,7 @@ async function orchestrateAnalyzeParallelSafety(taskIds, projectRoot) {
|
|
|
111714
111738
|
};
|
|
111715
111739
|
}
|
|
111716
111740
|
}
|
|
111717
|
-
var OrchestrateHandler;
|
|
111741
|
+
var OrchestrateHandler, fanoutManifestStore;
|
|
111718
111742
|
var init_orchestrate2 = __esm({
|
|
111719
111743
|
"packages/cleo/src/dispatch/domains/orchestrate.ts"() {
|
|
111720
111744
|
"use strict";
|
|
@@ -111806,16 +111830,34 @@ var init_orchestrate2 = __esm({
|
|
|
111806
111830
|
startTime
|
|
111807
111831
|
);
|
|
111808
111832
|
}
|
|
111833
|
+
const entry = fanoutManifestStore.get(manifestEntryId);
|
|
111834
|
+
if (!entry) {
|
|
111835
|
+
return {
|
|
111836
|
+
meta: dispatchMeta("query", "orchestrate", operation, startTime),
|
|
111837
|
+
success: true,
|
|
111838
|
+
data: {
|
|
111839
|
+
manifestEntryId,
|
|
111840
|
+
pending: [],
|
|
111841
|
+
running: [],
|
|
111842
|
+
complete: [],
|
|
111843
|
+
failed: [],
|
|
111844
|
+
found: false
|
|
111845
|
+
}
|
|
111846
|
+
};
|
|
111847
|
+
}
|
|
111848
|
+
const spawned = entry.results.filter((r) => r.status === "spawned").map((r) => r.taskId);
|
|
111849
|
+
const failed = entry.results.filter((r) => r.status === "failed").map((r) => r.taskId);
|
|
111809
111850
|
return {
|
|
111810
111851
|
meta: dispatchMeta("query", "orchestrate", operation, startTime),
|
|
111811
111852
|
success: true,
|
|
111812
111853
|
data: {
|
|
111813
111854
|
manifestEntryId,
|
|
111814
111855
|
pending: [],
|
|
111815
|
-
running:
|
|
111856
|
+
running: spawned,
|
|
111816
111857
|
complete: [],
|
|
111817
|
-
failed
|
|
111818
|
-
|
|
111858
|
+
failed,
|
|
111859
|
+
found: true,
|
|
111860
|
+
completedAt: entry.completedAt
|
|
111819
111861
|
}
|
|
111820
111862
|
};
|
|
111821
111863
|
}
|
|
@@ -112180,6 +112222,7 @@ var init_orchestrate2 = __esm({
|
|
|
112180
112222
|
};
|
|
112181
112223
|
}
|
|
112182
112224
|
};
|
|
112225
|
+
fanoutManifestStore = /* @__PURE__ */ new Map();
|
|
112183
112226
|
}
|
|
112184
112227
|
});
|
|
112185
112228
|
|