patchwork-os 0.2.0-beta.13.canary.313 → 0.2.0-beta.13.canary.314
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/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/recipeOrchestration.js +5 -0
- package/dist/recipeOrchestration.js.map +1 -1
- package/dist/recipeRoutes.d.ts +4 -0
- package/dist/recipeRoutes.js +16 -0
- package/dist/recipeRoutes.js.map +1 -1
- package/dist/server.d.ts +3 -0
- package/dist/server.js +4 -0
- package/dist/server.js.map +1 -1
- package/dist/workers/outcomesCli.js +2 -0
- package/dist/workers/outcomesCli.js.map +1 -1
- package/dist/workers/runWorkerShadow.d.ts +28 -0
- package/dist/workers/runWorkerShadow.js +94 -0
- package/dist/workers/runWorkerShadow.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4017,6 +4017,20 @@ if (process.argv[2] === "outcomes") {
|
|
|
4017
4017
|
const args = process.argv.slice(3);
|
|
4018
4018
|
(async () => {
|
|
4019
4019
|
try {
|
|
4020
|
+
// `outcomes pending` — the confirm queue (join over runs + dispositions).
|
|
4021
|
+
// Handled here (not in the pure runOutcomesCli) because it needs the run
|
|
4022
|
+
// log + worker manifests, which live behind the shadow readers.
|
|
4023
|
+
if (args[0] === "pending") {
|
|
4024
|
+
const { computePendingConfirmations, formatPendingConfirmations } = await import("./workers/runWorkerShadow.js");
|
|
4025
|
+
const pending = computePendingConfirmations();
|
|
4026
|
+
if (args.includes("--json")) {
|
|
4027
|
+
process.stdout.write(`${JSON.stringify(pending, null, 2)}\n`);
|
|
4028
|
+
}
|
|
4029
|
+
else {
|
|
4030
|
+
process.stdout.write(formatPendingConfirmations(pending));
|
|
4031
|
+
}
|
|
4032
|
+
process.exit(0);
|
|
4033
|
+
}
|
|
4020
4034
|
const { runOutcomesCli } = await import("./workers/outcomesCli.js");
|
|
4021
4035
|
const { OutcomeStore, resolveOutcomeLogDir } = await import("./workers/outcomeStore.js");
|
|
4022
4036
|
const store = new OutcomeStore(resolveOutcomeLogDir());
|