@zaalipro/dsh-workflows 0.1.0-rc.12
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/LICENSE +21 -0
- package/NOTICE.md +224 -0
- package/README.i18n.yaml +4 -0
- package/README.md +111 -0
- package/README.zh.md +111 -0
- package/cordis.patch.yml +10 -0
- package/docs/architecture.i18n.yaml +4 -0
- package/docs/architecture.md +177 -0
- package/docs/architecture.zh.md +177 -0
- package/docs/testing.i18n.yaml +4 -0
- package/docs/testing.md +125 -0
- package/docs/testing.zh.md +125 -0
- package/docs/user-guide.i18n.yaml +4 -0
- package/docs/user-guide.md +351 -0
- package/docs/user-guide.zh.md +351 -0
- package/lib/client-types/WorkflowMemberInspector.d.ts +28 -0
- package/lib/client-types/WorkflowMemberInspector.d.ts.map +1 -0
- package/lib/client-types/WorkflowMemberInspector.js +181 -0
- package/lib/client-types/WorkflowMemberInspector.js.map +1 -0
- package/lib/client-types/WorkflowRunPanel.d.ts +43 -0
- package/lib/client-types/WorkflowRunPanel.d.ts.map +1 -0
- package/lib/client-types/WorkflowRunPanel.js +130 -0
- package/lib/client-types/WorkflowRunPanel.js.map +1 -0
- package/lib/client-types/WorkflowsDashboard.d.ts +49 -0
- package/lib/client-types/WorkflowsDashboard.d.ts.map +1 -0
- package/lib/client-types/WorkflowsDashboard.js +942 -0
- package/lib/client-types/WorkflowsDashboard.js.map +1 -0
- package/lib/client-types/adapter.d.ts +60 -0
- package/lib/client-types/adapter.d.ts.map +1 -0
- package/lib/client-types/adapter.js +117 -0
- package/lib/client-types/adapter.js.map +1 -0
- package/lib/client-types/chat-renderer.d.ts +10 -0
- package/lib/client-types/chat-renderer.d.ts.map +1 -0
- package/lib/client-types/chat-renderer.js +11 -0
- package/lib/client-types/chat-renderer.js.map +1 -0
- package/lib/client-types/contract.d.ts +210 -0
- package/lib/client-types/contract.d.ts.map +1 -0
- package/lib/client-types/contract.js +37 -0
- package/lib/client-types/contract.js.map +1 -0
- package/lib/client-types/controller.d.ts +83 -0
- package/lib/client-types/controller.d.ts.map +1 -0
- package/lib/client-types/controller.js +705 -0
- package/lib/client-types/controller.js.map +1 -0
- package/lib/client-types/index.d.ts +19 -0
- package/lib/client-types/index.d.ts.map +1 -0
- package/lib/client-types/index.js +731 -0
- package/lib/client-types/index.js.map +1 -0
- package/lib/client-types/locales.d.ts +257 -0
- package/lib/client-types/locales.d.ts.map +1 -0
- package/lib/client-types/locales.js +270 -0
- package/lib/client-types/locales.js.map +1 -0
- package/lib/client-types/slot-components.d.ts +38 -0
- package/lib/client-types/slot-components.d.ts.map +1 -0
- package/lib/client-types/slot-components.js +22 -0
- package/lib/client-types/slot-components.js.map +1 -0
- package/lib/client-types/store.d.ts +69 -0
- package/lib/client-types/store.d.ts.map +1 -0
- package/lib/client-types/store.js +135 -0
- package/lib/client-types/store.js.map +1 -0
- package/lib/client-types/workflow-definition.d.ts +52 -0
- package/lib/client-types/workflow-definition.d.ts.map +1 -0
- package/lib/client-types/workflow-definition.js +135 -0
- package/lib/client-types/workflow-definition.js.map +1 -0
- package/lib/client.js +11065 -0
- package/lib/client.js.map +1 -0
- package/lib/compat-engine/index.js +1926 -0
- package/lib/compat-engine/index.js.map +1 -0
- package/lib/compat-engine/worker.cjs +1500 -0
- package/lib/compat-engine/worker.cjs.map +1 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +1709 -0
- package/lib/typert.remote-client.d.ts +57 -0
- package/lib/typert.remote-client.js +1662 -0
- package/lib/types/commands/aliases.d.ts +4 -0
- package/lib/types/commands/aliases.d.ts.map +1 -0
- package/lib/types/commands/aliases.js +25 -0
- package/lib/types/commands/aliases.js.map +1 -0
- package/lib/types/commands/index.d.ts +66 -0
- package/lib/types/commands/index.d.ts.map +1 -0
- package/lib/types/commands/index.js +550 -0
- package/lib/types/commands/index.js.map +1 -0
- package/lib/types/commands/parser.d.ts +17 -0
- package/lib/types/commands/parser.d.ts.map +1 -0
- package/lib/types/commands/parser.js +45 -0
- package/lib/types/commands/parser.js.map +1 -0
- package/lib/types/config.d.ts +71 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/config.js +109 -0
- package/lib/types/config.js.map +1 -0
- package/lib/types/index.d.ts +41 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +483 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/invariant.d.ts +21 -0
- package/lib/types/invariant.d.ts.map +1 -0
- package/lib/types/invariant.js +85 -0
- package/lib/types/invariant.js.map +1 -0
- package/lib/types/registry/definition.d.ts +24 -0
- package/lib/types/registry/definition.d.ts.map +1 -0
- package/lib/types/registry/definition.js +189 -0
- package/lib/types/registry/definition.js.map +1 -0
- package/lib/types/registry/index.d.ts +100 -0
- package/lib/types/registry/index.d.ts.map +1 -0
- package/lib/types/registry/index.js +899 -0
- package/lib/types/registry/index.js.map +1 -0
- package/lib/types/registry/names.d.ts +19 -0
- package/lib/types/registry/names.d.ts.map +1 -0
- package/lib/types/registry/names.js +69 -0
- package/lib/types/registry/names.js.map +1 -0
- package/lib/types/registry/remote.d.ts +15 -0
- package/lib/types/registry/remote.d.ts.map +1 -0
- package/lib/types/registry/remote.js +128 -0
- package/lib/types/registry/remote.js.map +1 -0
- package/lib/types/registry/roots.d.ts +44 -0
- package/lib/types/registry/roots.d.ts.map +1 -0
- package/lib/types/registry/roots.js +118 -0
- package/lib/types/registry/roots.js.map +1 -0
- package/lib/types/registry/types.d.ts +62 -0
- package/lib/types/registry/types.d.ts.map +1 -0
- package/lib/types/registry/types.js +2 -0
- package/lib/types/registry/types.js.map +1 -0
- package/lib/types/registry/watchers.d.ts +70 -0
- package/lib/types/registry/watchers.d.ts.map +1 -0
- package/lib/types/registry/watchers.js +152 -0
- package/lib/types/registry/watchers.js.map +1 -0
- package/lib/types/remote-events.d.ts +42 -0
- package/lib/types/remote-events.d.ts.map +1 -0
- package/lib/types/remote-events.js +21 -0
- package/lib/types/remote-events.js.map +1 -0
- package/lib/types/run-recorder.d.ts +44 -0
- package/lib/types/run-recorder.d.ts.map +1 -0
- package/lib/types/run-recorder.js +356 -0
- package/lib/types/run-recorder.js.map +1 -0
- package/lib/types/supervisor/canned-validate.d.ts +25 -0
- package/lib/types/supervisor/canned-validate.d.ts.map +1 -0
- package/lib/types/supervisor/canned-validate.js +122 -0
- package/lib/types/supervisor/canned-validate.js.map +1 -0
- package/lib/types/supervisor/completion-notice.d.ts +49 -0
- package/lib/types/supervisor/completion-notice.d.ts.map +1 -0
- package/lib/types/supervisor/completion-notice.js +281 -0
- package/lib/types/supervisor/completion-notice.js.map +1 -0
- package/lib/types/supervisor/cursors.d.ts +68 -0
- package/lib/types/supervisor/cursors.d.ts.map +1 -0
- package/lib/types/supervisor/cursors.js +158 -0
- package/lib/types/supervisor/cursors.js.map +1 -0
- package/lib/types/supervisor/engine-compat.d.ts +48 -0
- package/lib/types/supervisor/engine-compat.d.ts.map +1 -0
- package/lib/types/supervisor/engine-compat.js +116 -0
- package/lib/types/supervisor/engine-compat.js.map +1 -0
- package/lib/types/supervisor/index.d.ts +183 -0
- package/lib/types/supervisor/index.d.ts.map +1 -0
- package/lib/types/supervisor/index.js +2040 -0
- package/lib/types/supervisor/index.js.map +1 -0
- package/lib/types/supervisor/parallel-compat.d.ts +36 -0
- package/lib/types/supervisor/parallel-compat.d.ts.map +1 -0
- package/lib/types/supervisor/parallel-compat.js +180 -0
- package/lib/types/supervisor/parallel-compat.js.map +1 -0
- package/lib/types/supervisor/remote.d.ts +25 -0
- package/lib/types/supervisor/remote.d.ts.map +1 -0
- package/lib/types/supervisor/remote.js +478 -0
- package/lib/types/supervisor/remote.js.map +1 -0
- package/lib/types/supervisor/storage/bounded-file.d.ts +41 -0
- package/lib/types/supervisor/storage/bounded-file.d.ts.map +1 -0
- package/lib/types/supervisor/storage/bounded-file.js +186 -0
- package/lib/types/supervisor/storage/bounded-file.js.map +1 -0
- package/lib/types/supervisor/storage/details-codec.d.ts +14 -0
- package/lib/types/supervisor/storage/details-codec.d.ts.map +1 -0
- package/lib/types/supervisor/storage/details-codec.js +359 -0
- package/lib/types/supervisor/storage/details-codec.js.map +1 -0
- package/lib/types/supervisor/storage/index.d.ts +26 -0
- package/lib/types/supervisor/storage/index.d.ts.map +1 -0
- package/lib/types/supervisor/storage/index.js +100 -0
- package/lib/types/supervisor/storage/index.js.map +1 -0
- package/lib/types/supervisor/storage/lease.d.ts +34 -0
- package/lib/types/supervisor/storage/lease.d.ts.map +1 -0
- package/lib/types/supervisor/storage/lease.js +289 -0
- package/lib/types/supervisor/storage/lease.js.map +1 -0
- package/lib/types/supervisor/storage/manifest-codec.d.ts +10 -0
- package/lib/types/supervisor/storage/manifest-codec.d.ts.map +1 -0
- package/lib/types/supervisor/storage/manifest-codec.js +335 -0
- package/lib/types/supervisor/storage/manifest-codec.js.map +1 -0
- package/lib/types/supervisor/storage/manifest-store.d.ts +99 -0
- package/lib/types/supervisor/storage/manifest-store.d.ts.map +1 -0
- package/lib/types/supervisor/storage/manifest-store.js +1606 -0
- package/lib/types/supervisor/storage/manifest-store.js.map +1 -0
- package/lib/types/supervisor/storage/manifest-types.d.ts +269 -0
- package/lib/types/supervisor/storage/manifest-types.d.ts.map +1 -0
- package/lib/types/supervisor/storage/manifest-types.js +2 -0
- package/lib/types/supervisor/storage/manifest-types.js.map +1 -0
- package/lib/types/supervisor/storage/private-root.d.ts +143 -0
- package/lib/types/supervisor/storage/private-root.d.ts.map +1 -0
- package/lib/types/supervisor/storage/private-root.js +860 -0
- package/lib/types/supervisor/storage/private-root.js.map +1 -0
- package/lib/types/supervisor/storage/recovery.d.ts +14 -0
- package/lib/types/supervisor/storage/recovery.d.ts.map +1 -0
- package/lib/types/supervisor/storage/recovery.js +126 -0
- package/lib/types/supervisor/storage/recovery.js.map +1 -0
- package/lib/types/supervisor/storage/run-files.d.ts +67 -0
- package/lib/types/supervisor/storage/run-files.d.ts.map +1 -0
- package/lib/types/supervisor/storage/run-files.js +346 -0
- package/lib/types/supervisor/storage/run-files.js.map +1 -0
- package/lib/types/supervisor/types.d.ts +295 -0
- package/lib/types/supervisor/types.d.ts.map +1 -0
- package/lib/types/supervisor/types.js +3 -0
- package/lib/types/supervisor/types.js.map +1 -0
- package/lib/types/supervisor/value-view.d.ts +19 -0
- package/lib/types/supervisor/value-view.d.ts.map +1 -0
- package/lib/types/supervisor/value-view.js +183 -0
- package/lib/types/supervisor/value-view.js.map +1 -0
- package/lib/types/tool/index.d.ts +86 -0
- package/lib/types/tool/index.d.ts.map +1 -0
- package/lib/types/tool/index.js +810 -0
- package/lib/types/tool/index.js.map +1 -0
- package/lib/types/tool/schema.d.ts +158 -0
- package/lib/types/tool/schema.d.ts.map +1 -0
- package/lib/types/tool/schema.js +137 -0
- package/lib/types/tool/schema.js.map +1 -0
- package/lib/types/types.d.ts +9 -0
- package/lib/types/types.d.ts.map +1 -0
- package/lib/types/types.js +3 -0
- package/lib/types/types.js.map +1 -0
- package/lib/types/user-questions.d.ts +9 -0
- package/lib/types/user-questions.d.ts.map +1 -0
- package/lib/types/user-questions.js +91 -0
- package/lib/types/user-questions.js.map +1 -0
- package/package.json +291 -0
- package/skills/create-workflow/SKILL.md +166 -0
- package/vendor/workflow-engine/LICENSE +21 -0
- package/vendor/workflow-engine/README.md +1 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { randomBytes } from 'node:crypto';
|
|
2
|
+
function isThenable(value) {
|
|
3
|
+
return value != null && typeof value.then === 'function';
|
|
4
|
+
}
|
|
5
|
+
function asRecord(value) {
|
|
6
|
+
return typeof value === 'object' && value !== null ? value : undefined;
|
|
7
|
+
}
|
|
8
|
+
/** True when the engine exposes the complete deferred-start and replay face. */
|
|
9
|
+
export function isCompleteEngineHandle(raw) {
|
|
10
|
+
const handle = asRecord(raw);
|
|
11
|
+
if (handle === undefined)
|
|
12
|
+
return false;
|
|
13
|
+
return isThenable(handle.result)
|
|
14
|
+
&& typeof handle.cancel === 'function'
|
|
15
|
+
&& typeof handle.release === 'function'
|
|
16
|
+
&& typeof handle.resume === 'function'
|
|
17
|
+
&& typeof handle.dispose === 'function'
|
|
18
|
+
&& typeof handle.checkpoint === 'function';
|
|
19
|
+
}
|
|
20
|
+
function normalizeResult(value) {
|
|
21
|
+
const record = asRecord(value);
|
|
22
|
+
const stop = record?.stopReason;
|
|
23
|
+
const stopReason = stop === 'completed' || stop === 'cancelled' || stop === 'error' ? stop : 'error';
|
|
24
|
+
const agentsStarted = Number(record?.agentsStarted);
|
|
25
|
+
return {
|
|
26
|
+
value: record === undefined ? value : record.value,
|
|
27
|
+
stopReason,
|
|
28
|
+
...(typeof record?.error === 'string' ? { error: record.error } : {}),
|
|
29
|
+
...(typeof record?.errorCode === 'string' ? { errorCode: record.errorCode } : {}),
|
|
30
|
+
agentsStarted: Number.isFinite(agentsStarted) && agentsStarted > 0 ? Math.trunc(agentsStarted) : 0,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Stock `@deepseek-ai/dsh-workflow` `WorkflowRun` may expose only
|
|
35
|
+
* `id`/`result`/`cancel`/`dispose`. Wrap that thin face so the supervisor can
|
|
36
|
+
* admit a run instead of failing with "invalid run handle".
|
|
37
|
+
*/
|
|
38
|
+
export function adaptEngineHandle(raw) {
|
|
39
|
+
if (isCompleteEngineHandle(raw))
|
|
40
|
+
return raw;
|
|
41
|
+
const handle = asRecord(raw);
|
|
42
|
+
if (handle === undefined || !isThenable(handle.result)
|
|
43
|
+
|| typeof handle.cancel !== 'function' || typeof handle.dispose !== 'function') {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
const id = typeof handle.id === 'string' && handle.id.length > 0
|
|
47
|
+
? handle.id
|
|
48
|
+
: randomBytes(16).toString('hex');
|
|
49
|
+
const result = Promise.resolve(handle.result).then(value => {
|
|
50
|
+
return normalizeResult(value);
|
|
51
|
+
});
|
|
52
|
+
const cancel = handle.cancel;
|
|
53
|
+
const resume = typeof handle.resume === 'function' ? handle.resume : () => undefined;
|
|
54
|
+
const release = typeof handle.release === 'function' ? handle.release : () => undefined;
|
|
55
|
+
const disposeRaw = handle.dispose;
|
|
56
|
+
const nativeCheckpoint = typeof handle.checkpoint === 'function'
|
|
57
|
+
? handle.checkpoint
|
|
58
|
+
: undefined;
|
|
59
|
+
return {
|
|
60
|
+
id,
|
|
61
|
+
result,
|
|
62
|
+
// Stock methods are receiver-sensitive class methods. Calling an
|
|
63
|
+
// extracted `cancel` caused `this` to be undefined and surfaced as
|
|
64
|
+
// `Cannot read properties of undefined (reading 'settled')` on Stop.
|
|
65
|
+
// A handle reaching this adapter is missing at least one required replay
|
|
66
|
+
// primitives; the set is atomic, so a partial subset is not authority.
|
|
67
|
+
supportsReplay: false,
|
|
68
|
+
cancel: (reason) => { Reflect.apply(cancel, handle, [reason]); },
|
|
69
|
+
resume: () => { Reflect.apply(resume, handle, []); },
|
|
70
|
+
release: () => { Reflect.apply(release, handle, []); },
|
|
71
|
+
async dispose() {
|
|
72
|
+
try {
|
|
73
|
+
await Reflect.apply(disposeRaw, handle, []);
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
// Stock WorkerRun.dispose() can throw after the worker has already
|
|
77
|
+
// died (`undefined.disposed`). The supervisor treats cleanup errors
|
|
78
|
+
// as terminal, so contain them here and still allow checkpoint().
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
checkpoint() {
|
|
82
|
+
// Never manufacture an empty journal. It cannot prove which effects
|
|
83
|
+
// committed and would make a resumed stock run repeat them.
|
|
84
|
+
if (nativeCheckpoint === undefined)
|
|
85
|
+
return undefined;
|
|
86
|
+
return Reflect.apply(nativeCheckpoint, handle, []);
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/** Whether Pause/Resume can be offered without replaying committed effects. */
|
|
91
|
+
export function supportsEngineReplay(handle) {
|
|
92
|
+
return handle.supportsReplay !== false;
|
|
93
|
+
}
|
|
94
|
+
/** Best-effort cancel/dispose of a handle the supervisor will not keep. */
|
|
95
|
+
export function rejectPartialEngineHandle(raw) {
|
|
96
|
+
const handle = asRecord(raw);
|
|
97
|
+
if (handle === undefined)
|
|
98
|
+
return;
|
|
99
|
+
if (typeof handle.cancel === 'function') {
|
|
100
|
+
try {
|
|
101
|
+
Reflect.apply(handle.cancel, handle, ['invalid workflow run handle']);
|
|
102
|
+
}
|
|
103
|
+
catch { /* contained */ }
|
|
104
|
+
}
|
|
105
|
+
if (typeof handle.dispose === 'function') {
|
|
106
|
+
let disposed;
|
|
107
|
+
try {
|
|
108
|
+
disposed = Reflect.apply(handle.dispose, handle, []);
|
|
109
|
+
}
|
|
110
|
+
catch {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
void Promise.resolve(disposed).catch(() => undefined);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=engine-compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-compat.js","sourceRoot":"","sources":["../../../src/supervisor/engine-compat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAwCzC,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,KAAK,IAAI,IAAI,IAAI,OAAQ,KAA4B,CAAC,IAAI,KAAK,UAAU,CAAA;AAClF,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,KAAgC,CAAC,CAAC,CAAC,SAAS,CAAA;AACnG,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,sBAAsB,CAAC,GAAY;IACjD,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAA;IAC5B,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;IACtC,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC;WAC3B,OAAO,MAAM,CAAC,MAAM,KAA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I,CAAC;YAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,MAAmC,EAAE,MAAM,EAAE,CAAC,6BAA6B,CAAC,CAAC,CAAA;QAAC,CAAC;QAC1G,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;QACzC,IAAI,QAAiB,CAAA;QACrB,IAAI,CAAC;YAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,OAAwB,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;QAAC,CAAC;QAC7E,MAAM,CAAC;YAAC,OAAM;QAAC,CAAC;QAChB,KAAK,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;IACvD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import type { WorkflowDefinition, WorkflowMeta } from '../registry/types.js';
|
|
2
|
+
import type { WorkflowRunStore } from './storage/manifest-types.js';
|
|
3
|
+
import { type SupervisedWorkflowRunId, type WorkflowGateId, type WorkflowLaunched, type WorkflowRunArtifactChunk, type WorkflowRunArtifactPage, type WorkflowRunArtifactRequest, type WorkflowRunArtifactsRequest, type WorkflowRunDetail, type WorkflowRunHead, type WorkflowRunRecordingSnapshot, type WorkflowRunListPage, type WorkflowRunListRequest, type WorkflowRunLogPage, type WorkflowRunLogsRequest, type WorkflowRunMemberDetail, type WorkflowRunMemberPage, type WorkflowRunMemberRequest, type WorkflowRunMembersRequest, type WorkflowRunResultView, type WorkflowValidation } from './types.js';
|
|
4
|
+
export * from './types.js';
|
|
5
|
+
export * from './value-view.js';
|
|
6
|
+
export * from './completion-notice.js';
|
|
7
|
+
export * from './engine-compat.js';
|
|
8
|
+
export interface SupervisorConfig {
|
|
9
|
+
readonly defaultAgentBudget?: number;
|
|
10
|
+
readonly maxAgentBudget?: number;
|
|
11
|
+
readonly maxConcurrentAgents?: number;
|
|
12
|
+
readonly maxActiveRunsPerSession?: number;
|
|
13
|
+
readonly maxActiveRunsGlobal?: number;
|
|
14
|
+
readonly saveScope?: 'project' | 'user';
|
|
15
|
+
readonly completionNoticeMaxBytes?: number;
|
|
16
|
+
readonly completionCohortMaxItems?: number;
|
|
17
|
+
readonly completionCohortMaxBytes?: number;
|
|
18
|
+
readonly memberOutcomeMaxBytes?: number;
|
|
19
|
+
readonly maxRetainedRunsPerSession?: number;
|
|
20
|
+
readonly maxWorkflowNamesPerSession?: number;
|
|
21
|
+
readonly maxRecoveryEntries?: number;
|
|
22
|
+
readonly maxMembersPerRun?: number;
|
|
23
|
+
readonly maxManifestBytes?: number;
|
|
24
|
+
readonly maxRunDetailsBytes?: number;
|
|
25
|
+
readonly maxRunStoreBytes?: number;
|
|
26
|
+
readonly maxLogLines?: number;
|
|
27
|
+
readonly maxLogLineBytes?: number;
|
|
28
|
+
readonly maxLogTotalBytes?: number;
|
|
29
|
+
readonly maxEventTextBytes?: number;
|
|
30
|
+
readonly remoteHeadTextMaxBytes?: number;
|
|
31
|
+
readonly maxScriptProjectionBytes?: number;
|
|
32
|
+
readonly maxRetainedArtifactsPerRun?: number;
|
|
33
|
+
readonly artifactChunkDefaultBytes?: number;
|
|
34
|
+
readonly artifactChunkMaxBytes?: number;
|
|
35
|
+
readonly scratchMaxOperations?: number;
|
|
36
|
+
readonly scratchMaxPendingOperations?: number;
|
|
37
|
+
readonly scratchMaxFiles?: number;
|
|
38
|
+
readonly scratchMaxFileBytes?: number;
|
|
39
|
+
readonly scratchMaxTotalBytes?: number;
|
|
40
|
+
/** Deprecated spelling retained for early package callers. */
|
|
41
|
+
readonly maxActiveRuns?: number;
|
|
42
|
+
}
|
|
43
|
+
export interface WorkflowLaunchSpec {
|
|
44
|
+
readonly definition?: WorkflowDefinition;
|
|
45
|
+
readonly script?: string;
|
|
46
|
+
readonly meta?: WorkflowMeta;
|
|
47
|
+
readonly args?: Readonly<Record<string, unknown>>;
|
|
48
|
+
readonly agentBudget?: number;
|
|
49
|
+
readonly parent: any;
|
|
50
|
+
readonly signal?: AbortSignal;
|
|
51
|
+
}
|
|
52
|
+
export interface WorkflowValidateSpec extends Omit<WorkflowLaunchSpec, 'definition' | 'parent'> {
|
|
53
|
+
readonly definition?: WorkflowDefinition;
|
|
54
|
+
readonly parent?: any;
|
|
55
|
+
readonly filename: string;
|
|
56
|
+
}
|
|
57
|
+
/** Durable logical-run supervisor backed only by the compatible official engine. */
|
|
58
|
+
export declare class WorkflowSupervisor {
|
|
59
|
+
private readonly ctx;
|
|
60
|
+
private readonly workflowEngine;
|
|
61
|
+
static readonly inject: readonly ["workflowEngine", "workflows"];
|
|
62
|
+
private readonly config;
|
|
63
|
+
private readonly store;
|
|
64
|
+
private readonly registry?;
|
|
65
|
+
private readonly runs;
|
|
66
|
+
private readonly byDisplay;
|
|
67
|
+
/** Persisted rows recovered after process death have inspection authority
|
|
68
|
+
* but deliberately no executable `InternalRun`/Agent authority. */
|
|
69
|
+
private readonly recoveredById;
|
|
70
|
+
private readonly recoveredByDisplay;
|
|
71
|
+
private readonly executions;
|
|
72
|
+
private readonly sessionRevisions;
|
|
73
|
+
private readonly activeSessions;
|
|
74
|
+
private activeTotal;
|
|
75
|
+
private readonly pendingStarts;
|
|
76
|
+
private readonly closedOwners;
|
|
77
|
+
private readonly ownerDisposals;
|
|
78
|
+
private readonly listenerDisposers;
|
|
79
|
+
private readonly notifier;
|
|
80
|
+
private readonly ownsStore;
|
|
81
|
+
private readonly feedEpoch;
|
|
82
|
+
private initializePromise?;
|
|
83
|
+
private admission;
|
|
84
|
+
private disposed;
|
|
85
|
+
private disposal?;
|
|
86
|
+
constructor(ctx: any, config?: SupervisorConfig, store?: WorkflowRunStore, workflowEngine?: {
|
|
87
|
+
start(request: any): unknown;
|
|
88
|
+
validate?(request: any): Promise<unknown>;
|
|
89
|
+
} | undefined);
|
|
90
|
+
private listen;
|
|
91
|
+
private attachEngineObservers;
|
|
92
|
+
initialize(signal?: AbortSignal): Promise<void>;
|
|
93
|
+
private emit;
|
|
94
|
+
private publishLifecycle;
|
|
95
|
+
private publishChange;
|
|
96
|
+
private enqueue;
|
|
97
|
+
private withAttempt;
|
|
98
|
+
private currentAttempt;
|
|
99
|
+
private info;
|
|
100
|
+
private memberLifecycle;
|
|
101
|
+
private resolveSource;
|
|
102
|
+
private resolveBudget;
|
|
103
|
+
private snapshotArgs;
|
|
104
|
+
private reserveStart;
|
|
105
|
+
private releaseStart;
|
|
106
|
+
private scratchLimits;
|
|
107
|
+
private createScratch;
|
|
108
|
+
/** Admit one run durably, attach a deferred attempt, then return before settlement. */
|
|
109
|
+
start(spec: WorkflowLaunchSpec): Promise<WorkflowLaunched>;
|
|
110
|
+
private createAttempt;
|
|
111
|
+
/** One-shot release is skipped after owner/supervisor teardown or cancel so
|
|
112
|
+
* a racing start/resume cannot Go a cancelled inert attempt. */
|
|
113
|
+
private shouldReleaseAttempt;
|
|
114
|
+
private releaseDeferredAttempt;
|
|
115
|
+
private startObservation;
|
|
116
|
+
private settleAttempt;
|
|
117
|
+
private acceptCheckpoint;
|
|
118
|
+
private clearGate;
|
|
119
|
+
private allowedActions;
|
|
120
|
+
private commitActive;
|
|
121
|
+
private failAfterAdmission;
|
|
122
|
+
private terminalize;
|
|
123
|
+
private resultPayload;
|
|
124
|
+
private displayKey;
|
|
125
|
+
private requireOwned;
|
|
126
|
+
private requireOwnedId;
|
|
127
|
+
private awaitCaller;
|
|
128
|
+
/** Quiesce and durably pause one running attempt. */
|
|
129
|
+
pause(displayName: string, agent: any, signal?: AbortSignal): Promise<WorkflowRunHead>;
|
|
130
|
+
private settleRunningMembers;
|
|
131
|
+
/** Stop one nonterminal run only after attempt and scratch cleanup. */
|
|
132
|
+
stop(displayName: string, agent: any, signal?: AbortSignal): Promise<WorkflowRunHead>;
|
|
133
|
+
/** Resume a paused run or acknowledge its current live gate. */
|
|
134
|
+
resume(displayName: string, agent: any, signal?: AbortSignal): Promise<WorkflowRunHead>;
|
|
135
|
+
resumeById(runId: SupervisedWorkflowRunId, agent: any, higherBudget?: number, signal?: AbortSignal): Promise<WorkflowRunHead>;
|
|
136
|
+
private resumeRecord;
|
|
137
|
+
private replaceGateAttempt;
|
|
138
|
+
/** Acknowledge only the exact still-current gate fence. */
|
|
139
|
+
resumeGate(runId: SupervisedWorkflowRunId, executionId: string, gateId: WorkflowGateId, agent: any, signal?: AbortSignal): Promise<boolean>;
|
|
140
|
+
/** Save a safe, current editable projection without changing live authority. */
|
|
141
|
+
save(displayName: string, agent: any, scope?: 'project' | 'user', signal?: AbortSignal): Promise<string>;
|
|
142
|
+
private publicHead;
|
|
143
|
+
private publicHeadRecord;
|
|
144
|
+
private storedHeadFor;
|
|
145
|
+
private readDetailValue;
|
|
146
|
+
private readAllMembers;
|
|
147
|
+
private memberHead;
|
|
148
|
+
private memberHeadWithTranscript;
|
|
149
|
+
private authorizedHead;
|
|
150
|
+
/** List the authorized Session's retained logical runs. */
|
|
151
|
+
list(agent: any, request?: WorkflowRunListRequest, signal?: AbortSignal): Promise<WorkflowRunListPage>;
|
|
152
|
+
/** Return selected-run metadata after Session authorization. */
|
|
153
|
+
detail(agent: any, runId: SupervisedWorkflowRunId, signal?: AbortSignal): Promise<WorkflowRunDetail>;
|
|
154
|
+
/** Return a bounded retained member page. */
|
|
155
|
+
members(agent: any, request: WorkflowRunMembersRequest, signal?: AbortSignal): Promise<WorkflowRunMemberPage>;
|
|
156
|
+
/** Return one retained member outcome, including JSON null when present. */
|
|
157
|
+
memberDetail(agent: any, request: WorkflowRunMemberRequest, signal?: AbortSignal): Promise<WorkflowRunMemberDetail>;
|
|
158
|
+
/** Return retained log lines with deterministic eviction metadata. */
|
|
159
|
+
logs(agent: any, request: WorkflowRunLogsRequest, signal?: AbortSignal): Promise<WorkflowRunLogPage>;
|
|
160
|
+
/** Return the retained terminal result projection. */
|
|
161
|
+
result(agent: any, runId: SupervisedWorkflowRunId, signal?: AbortSignal): Promise<WorkflowRunResultView>;
|
|
162
|
+
private scanArtifacts;
|
|
163
|
+
/** Refresh and page bounded scratch artifact metadata. */
|
|
164
|
+
artifacts(agent: any, request: WorkflowRunArtifactsRequest, signal?: AbortSignal): Promise<WorkflowRunArtifactPage>;
|
|
165
|
+
/** Read one UTF-8-safe artifact chunk through an opened no-follow handle. */
|
|
166
|
+
artifact(agent: any, request: WorkflowRunArtifactRequest, signal?: AbortSignal): Promise<WorkflowRunArtifactChunk>;
|
|
167
|
+
/** Return one atomic lifecycle projection for the Chat recorder. */
|
|
168
|
+
recordingSnapshot(agent: any, runId: SupervisedWorkflowRunId, signal?: AbortSignal): Promise<WorkflowRunRecordingSnapshot | undefined>;
|
|
169
|
+
/** Wait until work owned by one exact Agent reaches a quiescent fixed point. */
|
|
170
|
+
whenOwnerQuiescent(agent: any, signal?: AbortSignal): Promise<void>;
|
|
171
|
+
/** Close new admission at a synchronous linearization point. */
|
|
172
|
+
closeAdmissionSync(): void;
|
|
173
|
+
/** Compatibility spelling used by lifecycle effects; the close itself is synchronous. */
|
|
174
|
+
closeAdmission(): void;
|
|
175
|
+
private disposeOwner;
|
|
176
|
+
/** Idempotent global teardown with admission, attempts, publications, and notices drained. */
|
|
177
|
+
dispose(): Promise<void>;
|
|
178
|
+
/** Side-effect-free one-path validation through the configured evaluator API. */
|
|
179
|
+
validate(spec: WorkflowValidateSpec): Promise<WorkflowValidation>;
|
|
180
|
+
private presentValidation;
|
|
181
|
+
}
|
|
182
|
+
export default WorkflowSupervisor;
|
|
183
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/supervisor/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAG5E,OAAO,KAAK,EAOV,gBAAgB,EAEjB,MAAM,6BAA6B,CAAA;AAUpC,OA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