@agimon-ai/po-workflow 0.0.0-alpha.101 → 0.0.0-alpha.102
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/{RecoverWorkflowService-BCHuBruW.mjs → RecoverWorkflowService-Cb-AaNIf.mjs} +34 -34
- package/dist/{RecoverWorkflowService-BCHuBruW.mjs.map → RecoverWorkflowService-Cb-AaNIf.mjs.map} +1 -1
- package/dist/{RecoverWorkflowService-C6ooM5PB.cjs → RecoverWorkflowService-DYBsDJ0x.cjs} +39 -33
- package/dist/{RecoverWorkflowService-C6ooM5PB.cjs.map → RecoverWorkflowService-DYBsDJ0x.cjs.map} +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/extensions/server.cjs +510 -418
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.mjs +511 -419
- package/dist/extensions/server.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as substituteShellPlaceholder, n as workflowCommandTemplateVariables, r as escapeShellArg, t as renderWorkflowCommandTemplate } from "./workflowCommandTemplate-r57z3b46.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
import { BACKGROUND_CONTEXT, createSerialRunner, getOrThrow, nodeHost, pathExists, writeFileAtomic } from "@agimon-ai/po-core/platform";
|
|
4
3
|
import path, { basename, dirname, extname, isAbsolute, join, relative, resolve } from "node:path";
|
|
5
|
-
import {
|
|
4
|
+
import { BACKGROUND_CONTEXT, createSerialRunner, getOrThrow, nodeHost, pathExists, writeFileAtomic } from "@agimon-ai/po-core/platform";
|
|
6
5
|
import { z } from "zod";
|
|
6
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
7
7
|
import { dump, load } from "js-yaml";
|
|
8
8
|
import { BACKGROUND_RUNNER_DEADLINE_MS, BACKGROUND_WORK_HOLDING_PROVIDERS, holdsSettledSession, holdsSettledSessionAfterRunnerDeadline } from "@agimon-ai/po-core/backgroundWork";
|
|
9
9
|
import { WORKFLOW_STEP_SESSION_PROVENANCE } from "@agimon-ai/po-core/hubChannel";
|
|
@@ -16,36 +16,6 @@ import { lock } from "proper-lockfile";
|
|
|
16
16
|
import { performance } from "node:perf_hooks";
|
|
17
17
|
import { constants as constants$1 } from "node:os";
|
|
18
18
|
import { createConnection, createServer } from "node:net";
|
|
19
|
-
//#region src/models/InvalidWorkflowRunRecordError.ts
|
|
20
|
-
/**
|
|
21
|
-
* Structured error raised when a persisted workflow run record is malformed.
|
|
22
|
-
*/
|
|
23
|
-
var InvalidWorkflowRunRecordError = class extends Error {
|
|
24
|
-
recordPath;
|
|
25
|
-
code = "INVALID_WORKFLOW_RUN_RECORD";
|
|
26
|
-
constructor(recordPath, reason, options) {
|
|
27
|
-
super(`Invalid workflow run record at "${recordPath}": ${reason}`, options);
|
|
28
|
-
this.recordPath = recordPath;
|
|
29
|
-
this.name = "InvalidWorkflowRunRecordError";
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/models/WorkflowRunConflictError.ts
|
|
34
|
-
/**
|
|
35
|
-
* Structured error raised when a workflow display name is already active in a workspace.
|
|
36
|
-
*/
|
|
37
|
-
var WorkflowRunConflictError = class extends Error {
|
|
38
|
-
workspace;
|
|
39
|
-
runKey;
|
|
40
|
-
code = "WORKFLOW_RUN_CONFLICT";
|
|
41
|
-
constructor(workspace, runKey) {
|
|
42
|
-
super(`Workflow "${runKey}" is already running in workspace "${workspace}"`);
|
|
43
|
-
this.workspace = workspace;
|
|
44
|
-
this.runKey = runKey;
|
|
45
|
-
this.name = "WorkflowRunConflictError";
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
//#endregion
|
|
49
19
|
//#region src/schemas/workflowEngine.ts
|
|
50
20
|
/**
|
|
51
21
|
* Zod Schemas for Workflow YAML Validation
|
|
@@ -996,6 +966,36 @@ function summarizeWorkflowProgress(events) {
|
|
|
996
966
|
return [...jobs.values()];
|
|
997
967
|
}
|
|
998
968
|
//#endregion
|
|
969
|
+
//#region src/models/InvalidWorkflowRunRecordError.ts
|
|
970
|
+
/**
|
|
971
|
+
* Structured error raised when a persisted workflow run record is malformed.
|
|
972
|
+
*/
|
|
973
|
+
var InvalidWorkflowRunRecordError = class extends Error {
|
|
974
|
+
recordPath;
|
|
975
|
+
code = "INVALID_WORKFLOW_RUN_RECORD";
|
|
976
|
+
constructor(recordPath, reason, options) {
|
|
977
|
+
super(`Invalid workflow run record at "${recordPath}": ${reason}`, options);
|
|
978
|
+
this.recordPath = recordPath;
|
|
979
|
+
this.name = "InvalidWorkflowRunRecordError";
|
|
980
|
+
}
|
|
981
|
+
};
|
|
982
|
+
//#endregion
|
|
983
|
+
//#region src/models/WorkflowRunConflictError.ts
|
|
984
|
+
/**
|
|
985
|
+
* Structured error raised when a workflow display name is already active in a workspace.
|
|
986
|
+
*/
|
|
987
|
+
var WorkflowRunConflictError = class extends Error {
|
|
988
|
+
workspace;
|
|
989
|
+
runKey;
|
|
990
|
+
code = "WORKFLOW_RUN_CONFLICT";
|
|
991
|
+
constructor(workspace, runKey) {
|
|
992
|
+
super(`Workflow "${runKey}" is already running in workspace "${workspace}"`);
|
|
993
|
+
this.workspace = workspace;
|
|
994
|
+
this.runKey = runKey;
|
|
995
|
+
this.name = "WorkflowRunConflictError";
|
|
996
|
+
}
|
|
997
|
+
};
|
|
998
|
+
//#endregion
|
|
999
999
|
//#region src/services/workflowSettlement/index.ts
|
|
1000
1000
|
/** What a terminal bound generation is owed and not yet acknowledged, or undefined when nothing is. */
|
|
1001
1001
|
function owedSettlement(record) {
|
|
@@ -13210,6 +13210,6 @@ var RecoverWorkflowService = class {
|
|
|
13210
13210
|
}
|
|
13211
13211
|
};
|
|
13212
13212
|
//#endregion
|
|
13213
|
-
export { WORKFLOW_RUNS_TYPE as A, createWorkflowSettlement as B, WORKFLOW_DECISION_STEERING_HOST as C, STEP_PANE_REF_KIND as D, RunDirectoryService as E, summarizeWorkflow as F,
|
|
13213
|
+
export { WORKFLOW_RUNS_TYPE as A, createWorkflowSettlement as B, WORKFLOW_DECISION_STEERING_HOST as C, STEP_PANE_REF_KIND as D, RunDirectoryService as E, summarizeWorkflow as F, workflowRunPhase as G, readWorkflowProgress as H, listWorkflows as I, WorkflowToolsPathSchema as J, WorkflowRepairableFileSchema as K, PO_RUN_CONFIG_KEYS as L, createWorkflowRuntime as M, workflowShellOutput as N, STEP_SESSION_REF_KIND as O, readWorkflowCatalog as P, poTemplateRunConfigSchema as R, WORKFLOW_DECISION_STEERING_ENV as S, recordStepDecision as T, readWorkflowProgressFrom as U, PROGRESS_FILENAME as V, summarizeWorkflowProgress as W, connectNativeTerminal$1 as _, readWorkflowPackageVersion as a, NativeTerminalService$1 as b, diagnoseWorkflows as c, sessionSelection as d, stepPaneLogPath as f, secretRedactor as g, ChildJournalSchema as h, createWorkflowHost as i, WorkflowParserService as j, WORKFLOW_CATALOG_TYPE as k, createNativeStepPaneLauncher as l, requireWorkflowCapability as m, RunWorkflowService as n, resolveWorkflowCliPath as o, runWorkflowScript as p, WorkflowStageSchema as q, createEmbeddedRunWorkflowService as r, diagnoseWorkflow as s, RecoverWorkflowService as t, createStepExecutor as u, serveNativeTerminal$1 as v, gateStepDecision as w, WORKFLOW_DECISION_FILE_ENV as x, terminalSocketPath as y, WorkflowRegistryService as z };
|
|
13214
13214
|
|
|
13215
|
-
//# sourceMappingURL=RecoverWorkflowService-
|
|
13215
|
+
//# sourceMappingURL=RecoverWorkflowService-Cb-AaNIf.mjs.map
|