@xyne/workflow-sdk 3.2.54 → 3.2.56
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/agents/agent-step.d.ts +30 -15
- package/dist/agents/agent-step.d.ts.map +1 -1
- package/dist/agents/agent-step.js +15 -5
- package/dist/agents/agent-step.js.map +1 -1
- package/dist/agents/citation-resolve.js +1 -1
- package/dist/agents/citation-resolve.js.map +1 -1
- package/dist/agents/contract.d.ts +16 -8
- package/dist/agents/contract.d.ts.map +1 -1
- package/dist/agents/host-agent-step.d.ts +20 -10
- package/dist/agents/host-agent-step.d.ts.map +1 -1
- package/dist/agents/host-agent-step.js +7 -3
- package/dist/agents/host-agent-step.js.map +1 -1
- package/dist/agents/provider.d.ts +2 -2
- package/dist/agents/tool-types.d.ts +13 -2
- package/dist/agents/tool-types.d.ts.map +1 -1
- package/dist/client/workflow-client.js +1 -1
- package/dist/client/workflow-client.js.map +1 -1
- package/dist/common/attachment.d.ts +24 -7
- package/dist/common/attachment.d.ts.map +1 -1
- package/dist/common/attachment.js +34 -7
- package/dist/common/attachment.js.map +1 -1
- package/dist/common/multipart-values.d.ts +21 -0
- package/dist/common/multipart-values.d.ts.map +1 -0
- package/dist/common/multipart-values.js +63 -0
- package/dist/common/multipart-values.js.map +1 -0
- package/dist/completion/address.d.ts +27 -0
- package/dist/completion/address.d.ts.map +1 -0
- package/dist/completion/address.js +62 -0
- package/dist/completion/address.js.map +1 -0
- package/dist/completion/attach.d.ts +20 -0
- package/dist/completion/attach.d.ts.map +1 -0
- package/dist/completion/attach.js +37 -0
- package/dist/completion/attach.js.map +1 -0
- package/dist/completion/index.d.ts +6 -0
- package/dist/completion/index.d.ts.map +1 -0
- package/dist/completion/index.js +4 -0
- package/dist/completion/index.js.map +1 -0
- package/dist/completion/types.d.ts +109 -0
- package/dist/completion/types.d.ts.map +1 -0
- package/dist/completion/types.js +35 -0
- package/dist/completion/types.js.map +1 -0
- package/dist/connectors/builtin/builtin-connector.d.ts.map +1 -1
- package/dist/connectors/builtin/builtin-connector.js +6 -2
- package/dist/connectors/builtin/builtin-connector.js.map +1 -1
- package/dist/connectors/builtin/steps/code.step.d.ts +20 -10
- package/dist/connectors/builtin/steps/code.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/code.step.js +14 -7
- package/dist/connectors/builtin/steps/code.step.js.map +1 -1
- package/dist/connectors/builtin/steps/cycle.step.d.ts +36 -7
- package/dist/connectors/builtin/steps/cycle.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/cycle.step.js +84 -6
- package/dist/connectors/builtin/steps/cycle.step.js.map +1 -1
- package/dist/connectors/builtin/steps/delay.step.d.ts +49 -0
- package/dist/connectors/builtin/steps/delay.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/delay.step.js +40 -0
- package/dist/connectors/builtin/steps/delay.step.js.map +1 -0
- package/dist/connectors/builtin/steps/http-request.step.d.ts +100 -50
- package/dist/connectors/builtin/steps/http-request.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/http-request.step.js +14 -15
- package/dist/connectors/builtin/steps/http-request.step.js.map +1 -1
- package/dist/connectors/builtin/steps/map.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/map.step.js +9 -2
- package/dist/connectors/builtin/steps/map.step.js.map +1 -1
- package/dist/connectors/builtin/steps/multipart-body.d.ts +23 -0
- package/dist/connectors/builtin/steps/multipart-body.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/multipart-body.js +40 -0
- package/dist/connectors/builtin/steps/multipart-body.js.map +1 -0
- package/dist/connectors/builtin/steps/parallel.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/parallel.step.js +9 -2
- package/dist/connectors/builtin/steps/parallel.step.js.map +1 -1
- package/dist/connectors/builtin/steps/wait-for-api-call.step.d.ts +80 -0
- package/dist/connectors/builtin/steps/wait-for-api-call.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/wait-for-api-call.step.js +104 -0
- package/dist/connectors/builtin/steps/wait-for-api-call.step.js.map +1 -0
- package/dist/connectors/builtin/steps/wait-for-human.step.d.ts +1057 -0
- package/dist/connectors/builtin/steps/wait-for-human.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/wait-for-human.step.js +222 -0
- package/dist/connectors/builtin/steps/wait-for-human.step.js.map +1 -0
- package/dist/connectors/builtin/steps/wait-for-webhook.step.d.ts +80 -0
- package/dist/connectors/builtin/steps/wait-for-webhook.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/wait-for-webhook.step.js +104 -0
- package/dist/connectors/builtin/steps/wait-for-webhook.step.js.map +1 -0
- package/dist/connectors/builtin/steps/wait.step.d.ts +10 -35
- package/dist/connectors/builtin/steps/wait.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/wait.step.js +11 -57
- package/dist/connectors/builtin/steps/wait.step.js.map +1 -1
- package/dist/conversational-flow/create.d.ts +2 -1
- package/dist/conversational-flow/create.d.ts.map +1 -1
- package/dist/conversational-flow/create.js +2 -2
- package/dist/conversational-flow/create.js.map +1 -1
- package/dist/conversational-flow/edit/build.js +1 -1
- package/dist/conversational-flow/edit/build.js.map +1 -1
- package/dist/conversational-flow/edit/questions.d.ts +35 -0
- package/dist/conversational-flow/edit/questions.d.ts.map +1 -0
- package/dist/conversational-flow/edit/questions.js +188 -0
- package/dist/conversational-flow/edit/questions.js.map +1 -0
- package/dist/conversational-flow/questions.d.ts +32 -0
- package/dist/conversational-flow/questions.d.ts.map +1 -0
- package/dist/conversational-flow/questions.js +122 -0
- package/dist/conversational-flow/questions.js.map +1 -0
- package/dist/engine/config-validator.d.ts.map +1 -1
- package/dist/engine/config-validator.js +29 -0
- package/dist/engine/config-validator.js.map +1 -1
- package/dist/engine/pause-step.d.ts +21 -4
- package/dist/engine/pause-step.d.ts.map +1 -1
- package/dist/engine/pause-step.js +11 -2
- package/dist/engine/pause-step.js.map +1 -1
- package/dist/engine/read-config.d.ts +12 -0
- package/dist/engine/read-config.d.ts.map +1 -0
- package/dist/engine/read-config.js +50 -0
- package/dist/engine/read-config.js.map +1 -0
- package/dist/engine/workflow-executor.d.ts.map +1 -1
- package/dist/engine/workflow-executor.js +38 -56
- package/dist/engine/workflow-executor.js.map +1 -1
- package/dist/index.d.ts +14 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/persistence/in-memory-adapter.d.ts +3 -18
- package/dist/persistence/in-memory-adapter.d.ts.map +1 -1
- package/dist/persistence/in-memory-adapter.js +9 -61
- package/dist/persistence/in-memory-adapter.js.map +1 -1
- package/dist/persistence/types.d.ts +29 -58
- package/dist/persistence/types.d.ts.map +1 -1
- package/dist/router/approval-context.d.ts +1 -1
- package/dist/router/approval-context.d.ts.map +1 -1
- package/dist/router/approval-context.js +3 -3
- package/dist/router/approval-context.js.map +1 -1
- package/dist/router/types.d.ts +18 -7
- package/dist/router/types.d.ts.map +1 -1
- package/dist/router/workflow-router.d.ts.map +1 -1
- package/dist/router/workflow-router.js +164 -123
- package/dist/router/workflow-router.js.map +1 -1
- package/dist/runtime/workflow-runtime.d.ts +40 -45
- package/dist/runtime/workflow-runtime.d.ts.map +1 -1
- package/dist/runtime/workflow-runtime.js +188 -123
- package/dist/runtime/workflow-runtime.js.map +1 -1
- package/dist/steps/base-step.d.ts +11 -10
- package/dist/steps/base-step.d.ts.map +1 -1
- package/dist/steps/base-step.js.map +1 -1
- package/dist/storage/files.d.ts +39 -0
- package/dist/storage/files.d.ts.map +1 -0
- package/dist/storage/files.js +75 -0
- package/dist/storage/files.js.map +1 -0
- package/dist/storage/in-memory-adapter.d.ts +15 -8
- package/dist/storage/in-memory-adapter.d.ts.map +1 -1
- package/dist/storage/in-memory-adapter.js +36 -18
- package/dist/storage/in-memory-adapter.js.map +1 -1
- package/dist/storage/types.d.ts +36 -26
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/types.js +5 -6
- package/dist/storage/types.js.map +1 -1
- package/dist/testing/mock-step-context.d.ts +7 -2
- package/dist/testing/mock-step-context.d.ts.map +1 -1
- package/dist/testing/mock-step-context.js +2 -1
- package/dist/testing/mock-step-context.js.map +1 -1
- package/dist/testing/test-connector.d.ts +1 -1
- package/dist/testing/test-connector.js +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/known-types.d.ts +51 -1
- package/dist/types/known-types.d.ts.map +1 -1
- package/dist/types/known-types.js +54 -1
- package/dist/types/known-types.js.map +1 -1
- package/dist/types/pause-state.d.ts +0 -8
- package/dist/types/pause-state.d.ts.map +1 -1
- package/dist/types/pause-state.js.map +1 -1
- package/dist/types/workflow-variable.d.ts +20 -10
- package/dist/types/workflow-variable.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,41 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* In-memory StorageAdapter for tests and local development.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Blobs in a Map behind a `mem://<id>` handle. Deliberately not a shortcut
|
|
5
|
+
* around the streaming contract — `put` drains the stream and `stream` hands
|
|
6
|
+
* one back — so a test exercises the paths a real adapter does.
|
|
7
7
|
*/
|
|
8
|
+
import { Readable } from 'node:stream';
|
|
8
9
|
export class InMemoryStorageAdapter {
|
|
9
10
|
/** Exposed for test inspection — count, clear, etc. */
|
|
10
11
|
blobs = new Map();
|
|
11
12
|
nextId = 1;
|
|
12
|
-
|
|
13
|
+
genHandle() {
|
|
13
14
|
return `mem://${String(this.nextId++)}_${Math.random().toString(36).slice(2, 10)}`;
|
|
14
15
|
}
|
|
15
|
-
async
|
|
16
|
-
const
|
|
16
|
+
async put(_scope, file) {
|
|
17
|
+
const chunks = [];
|
|
18
|
+
for await (const chunk of file.stream) {
|
|
19
|
+
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
20
|
+
}
|
|
21
|
+
const bytes = new Uint8Array(Buffer.concat(chunks));
|
|
22
|
+
const handle = this.genHandle();
|
|
17
23
|
const attachment = {
|
|
18
24
|
name: file.name,
|
|
19
25
|
mimeType: file.mimeType,
|
|
20
|
-
|
|
21
|
-
size:
|
|
26
|
+
handle,
|
|
27
|
+
size: bytes.byteLength,
|
|
22
28
|
};
|
|
23
|
-
this.blobs.set(
|
|
29
|
+
this.blobs.set(handle, { bytes, attachment });
|
|
24
30
|
return attachment;
|
|
25
31
|
}
|
|
26
|
-
async
|
|
27
|
-
const stored = this.blobs.get(ref.
|
|
32
|
+
async stream(ref) {
|
|
33
|
+
const stored = this.blobs.get(ref.handle);
|
|
28
34
|
if (!stored) {
|
|
29
|
-
throw new Error(`InMemoryStorageAdapter: unknown reference "${ref.
|
|
35
|
+
throw new Error(`InMemoryStorageAdapter: unknown reference "${ref.handle}"`);
|
|
30
36
|
}
|
|
31
|
-
return stored.bytes;
|
|
37
|
+
return Readable.from(Buffer.from(stored.bytes));
|
|
32
38
|
}
|
|
33
|
-
async
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
async info(ref) {
|
|
40
|
+
const stored = this.blobs.get(ref.handle);
|
|
41
|
+
if (!stored)
|
|
42
|
+
return null;
|
|
43
|
+
return { size: stored.bytes.byteLength, mimeType: stored.attachment.mimeType };
|
|
36
44
|
}
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
/**
|
|
46
|
+
* The scope each delete was given. A fake that ignores it passes tests a real
|
|
47
|
+
* adapter fails, which happened once — so tests can assert it arrived.
|
|
48
|
+
*/
|
|
49
|
+
deleteScopes = [];
|
|
50
|
+
async delete(ref, scope) {
|
|
51
|
+
this.deleteScopes.push(scope);
|
|
52
|
+
this.blobs.delete(ref.handle);
|
|
53
|
+
}
|
|
54
|
+
async signUrl(ref, _ttlSeconds) {
|
|
55
|
+
// For tests / dev — the opaque handle doubles as the URL.
|
|
56
|
+
return ref.handle;
|
|
39
57
|
}
|
|
40
58
|
}
|
|
41
59
|
//# sourceMappingURL=in-memory-adapter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-memory-adapter.js","sourceRoot":"","sources":["../../src/storage/in-memory-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"in-memory-adapter.js","sourceRoot":"","sources":["../../src/storage/in-memory-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AASvC,MAAM,OAAO,sBAAsB;IACjC,uDAAuD;IAC9C,KAAK,GAAG,IAAI,GAAG,EAAsB,CAAC;IAEvC,MAAM,GAAG,CAAC,CAAC;IAEX,SAAS;QACf,OAAO,SAAS,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;IACrF,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,MAAoB,EAAE,IAAiB;QAC/C,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAmB,CAAC,CAAC,CAAC;QACjF,CAAC;QACD,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QACpD,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,MAAM,UAAU,GAAe;YAC7B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM;YACN,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@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* StorageAdapter — host plug-in for blob storage.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* the host's reference and the host's adapter must understand it.
|
|
4
|
+
* Every verb takes or returns a stream, never a buffer: a file's size must not
|
|
5
|
+
* decide how much memory the process uses. A step that genuinely needs bytes
|
|
6
|
+
* goes through `ctx.files.buffer()`, which is bounded.
|
|
8
7
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* The framework never opens an attachment's `handle` — only the host's adapter
|
|
9
|
+
* knows what it addresses.
|
|
11
10
|
*/
|
|
11
|
+
import type { Readable } from 'node:stream';
|
|
12
12
|
import type { Attachment } from '../common/attachment.js';
|
|
13
13
|
import type { ResourceAttributes, ResolvedAuthContext } from '../authz/attributes.js';
|
|
14
14
|
/**
|
|
@@ -34,38 +34,48 @@ import type { ResourceAttributes, ResolvedAuthContext } from '../authz/attribute
|
|
|
34
34
|
* looks inside either — it only routes the value to the adapter.
|
|
35
35
|
*/
|
|
36
36
|
export type StorageScope = ResourceAttributes<'workflow'> | ResolvedAuthContext;
|
|
37
|
+
/** A file on its way in. */
|
|
37
38
|
export interface StorageFile {
|
|
38
|
-
/** Original filename — e.g. "contract.pdf". */
|
|
39
39
|
name: string;
|
|
40
|
-
/** MIME type from the multipart part headers. */
|
|
41
40
|
mimeType: string;
|
|
42
|
-
/**
|
|
43
|
-
|
|
41
|
+
/** Unread — the adapter pipes it straight to its store. */
|
|
42
|
+
stream: Readable;
|
|
43
|
+
}
|
|
44
|
+
/** What an object turns out to be, without fetching it. */
|
|
45
|
+
export interface StorageInfo {
|
|
46
|
+
size: number;
|
|
47
|
+
mimeType: string;
|
|
44
48
|
}
|
|
45
49
|
export interface StorageAdapter {
|
|
46
50
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* opening `data`.
|
|
51
|
+
* Consume `file.stream` and return the reference the workflow will carry.
|
|
52
|
+
* `scope` is what the adapter routes on — a security boundary, not a hint.
|
|
50
53
|
*/
|
|
51
|
-
|
|
54
|
+
put(scope: StorageScope, file: StorageFile): Promise<Attachment>;
|
|
52
55
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* step loading an image to send to the LLM).
|
|
56
|
+
* The bytes again, to pipe. `ref` is frequently client-supplied, so `scope`
|
|
57
|
+
* is required: an adapter must refuse a reference owned by another tenant.
|
|
56
58
|
*/
|
|
57
|
-
|
|
59
|
+
stream(ref: Attachment, scope: StorageScope): Promise<Readable>;
|
|
58
60
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* to display the attachment inline.
|
|
61
|
+
* Size and type without transferring anything, or null if it is gone. Lets a
|
|
62
|
+
* size limit refuse before a byte moves rather than after.
|
|
62
63
|
*/
|
|
63
|
-
|
|
64
|
+
info(ref: Attachment, scope: StorageScope): Promise<StorageInfo | null>;
|
|
64
65
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
66
|
+
* Remove the object. Called when bytes already accepted turn out to be
|
|
67
|
+
* unusable — a duplicate, a stale attempt, a body the contract rejects.
|
|
68
|
+
*
|
|
69
|
+
* `scope` is optional because some callers reclaim a write with no caller to
|
|
70
|
+
* name; an adapter must accept that and fall back to the handle. Best-effort:
|
|
71
|
+
* a failure here must not turn a clean rejection into a server error.
|
|
68
72
|
*/
|
|
69
|
-
delete
|
|
73
|
+
delete(ref: Attachment, scope?: StorageScope): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Optional: short-lived presigned URL. When present the download route
|
|
76
|
+
* redirects and no bytes pass through the host; when absent it pipes
|
|
77
|
+
* {@link stream} instead.
|
|
78
|
+
*/
|
|
79
|
+
signUrl?(ref: Attachment, ttlSeconds: number): Promise<string>;
|
|
70
80
|
}
|
|
71
81
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/storage/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/storage/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEtF;;;;;;;;;;;;;GAaG;AACH;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,CAAC,UAAU,CAAC,GAAG,mBAAmB,CAAC;AAEhF,4BAA4B;AAC5B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED,2DAA2D;AAC3D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEjE;;;OAGG;IACH,MAAM,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEhE;;;OAGG;IACH,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAExE;;;;;;;OAOG;IACH,MAAM,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D;;;;OAIG;IACH,OAAO,CAAC,CAAC,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAChE"}
|
package/dist/storage/types.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* StorageAdapter — host plug-in for blob storage.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* the host's reference and the host's adapter must understand it.
|
|
4
|
+
* Every verb takes or returns a stream, never a buffer: a file's size must not
|
|
5
|
+
* decide how much memory the process uses. A step that genuinely needs bytes
|
|
6
|
+
* goes through `ctx.files.buffer()`, which is bounded.
|
|
8
7
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* The framework never opens an attachment's `handle` — only the host's adapter
|
|
9
|
+
* knows what it addresses.
|
|
11
10
|
*/
|
|
12
11
|
export {};
|
|
13
12
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/storage/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/storage/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StorageAdapter } from '../storage/types.js';
|
|
1
2
|
import type { StepExecutionContext, ControlFlowExecutionContext } from '../steps/base-step.js';
|
|
2
3
|
import { ServiceRegistry } from '../engine/service-registry.js';
|
|
3
4
|
import type { WorkflowContext } from '../types/context.js';
|
|
@@ -20,8 +21,12 @@ interface MockStepContextOptions<TServices extends Record<string, unknown> = Rec
|
|
|
20
21
|
priorState?: Readonly<Record<string, unknown>>;
|
|
21
22
|
/** This step's config before variable resolution — `{{refs}}` intact. */
|
|
22
23
|
rawConfig?: Record<string, unknown>;
|
|
23
|
-
/**
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Inject a storage adapter. The mock wraps it the way the executor does, so
|
|
26
|
+
* a test exercises `ctx.files` rather than a hand-built stand-in; omit it and
|
|
27
|
+
* `ctx.files.available` is false.
|
|
28
|
+
*/
|
|
29
|
+
storage?: StorageAdapter;
|
|
25
30
|
/** Inject a sandbox adapter (code execution). */
|
|
26
31
|
sandbox?: StepExecutionContext['sandbox'];
|
|
27
32
|
/** Inject credentials already resolved by the executor. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-step-context.d.ts","sourceRoot":"","sources":["../../src/testing/mock-step-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mock-step-context.d.ts","sourceRoot":"","sources":["../../src/testing/mock-step-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAGlC,UAAU,sBAAsB,CAC9B,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnE,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,CAAC;IACnD,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACtC,oCAAoC;IACpC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E,KAAK,EAAE,OAAO,EAAE,CAAC;QAAC,OAAO,EAAE,eAAe,CAAC;QAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC,CAAC;CACvG,CAaA;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,kBAAkB,EAC5B,MAAM,EAAE,kBAAkB,EAC1B,IAAI,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GACrE,kBAAkB,CAOpB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createFileAccess } from '../storage/files.js';
|
|
1
2
|
import { createPauseFunction } from '../steps/base-step.js';
|
|
2
3
|
import { ServiceRegistry } from '../engine/service-registry.js';
|
|
3
4
|
import { createMockContext } from './mock-context.js';
|
|
@@ -25,7 +26,7 @@ export function createMockStepContext(options) {
|
|
|
25
26
|
},
|
|
26
27
|
...(options?.priorState ? { priorState: options.priorState } : {}),
|
|
27
28
|
...(options?.rawConfig ? { rawConfig: options.rawConfig } : {}),
|
|
28
|
-
|
|
29
|
+
files: createFileAccess(options?.storage, {}),
|
|
29
30
|
...(options?.sandbox ? { sandbox: options.sandbox } : {}),
|
|
30
31
|
credentials: options?.credentials ?? {},
|
|
31
32
|
services: options?.services ??
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-step-context.js","sourceRoot":"","sources":["../../src/testing/mock-step-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mock-step-context.js","sourceRoot":"","sources":["../../src/testing/mock-step-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAMvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,OAAO,EAAE,iBA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;AACJ,CAAC"}
|
|
@@ -29,7 +29,7 @@ export declare class TestConnector extends BaseConnector {
|
|
|
29
29
|
/**
|
|
30
30
|
* A registry holding these components, under one test connector.
|
|
31
31
|
*
|
|
32
|
-
* The built-ins (CODE, WAIT, LOOP, …) come with every `ConnectorRegistry`, so
|
|
32
|
+
* The built-ins (CODE, WAIT, DELAY, LOOP, …) come with every `ConnectorRegistry`, so
|
|
33
33
|
* cases that drive a real control-flow step need nothing extra here.
|
|
34
34
|
*/
|
|
35
35
|
export declare function testRegistry(components?: {
|
|
@@ -28,7 +28,7 @@ export class TestConnector extends BaseConnector {
|
|
|
28
28
|
/**
|
|
29
29
|
* A registry holding these components, under one test connector.
|
|
30
30
|
*
|
|
31
|
-
* The built-ins (CODE, WAIT, LOOP, …) come with every `ConnectorRegistry`, so
|
|
31
|
+
* The built-ins (CODE, WAIT, DELAY, LOOP, …) come with every `ConnectorRegistry`, so
|
|
32
32
|
* cases that drive a real control-flow step need nothing extra here.
|
|
33
33
|
*/
|
|
34
34
|
export function testRegistry(components) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BuiltinStepType, BuiltinStepTypeSchema, ControlFlowStepTypeSchema, CONTROL_FLOW_STEP_TYPES, BuiltinTriggerType, BuiltinTriggerTypeSchema, } from './known-types.js';
|
|
1
|
+
export { BuiltinStepType, BuiltinStepTypeSchema, CONVERSATIONAL_FLOW_KIND, GateCategory, ControlFlowStepTypeSchema, CONTROL_FLOW_STEP_TYPES, BuiltinTriggerType, BuiltinTriggerTypeSchema, } from './known-types.js';
|
|
2
2
|
export type { ControlFlowStepType } from './known-types.js';
|
|
3
3
|
export type { StepType } from './step-types.js';
|
|
4
4
|
export type { TriggerType } from './trigger-types.js';
|
|
@@ -13,7 +13,7 @@ export { ValidationIssueCode, ValidationIssueCodeSchema, } from './validation.js
|
|
|
13
13
|
export type { ValidationIssue, ValidationIssueLocation, ValidationResult } from './validation.js';
|
|
14
14
|
export type { TriggerContext, StepContextEntry, WorkflowContext, } from './context.js';
|
|
15
15
|
export type { PausePathSegment, PausePath } from './pause-path.js';
|
|
16
|
-
export type { PauseDisplaySection, PauseFormFieldOption, PauseFormField, PauseForm, PauseAction, PauseState,
|
|
16
|
+
export type { PauseDisplaySection, PauseFormFieldOption, PauseFormField, PauseForm, PauseAction, PauseState, } from './pause-state.js';
|
|
17
17
|
export { promptLines } from './pause-state.js';
|
|
18
18
|
export type { StepProgressEventType, StepProgressEvent, StepEventRecord, } from './step-events.js';
|
|
19
19
|
export { variableRef, getVariableRefInnerSchema, LeafConditionSchema, ConditionSchema, WorkflowSettingsSchema, readDottedPath, } from './workflow-config.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EAEvB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,mBAAmB,EAAE,MA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O,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElE,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAElG,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,eAAe,GAChB,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEnE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,SAAS,EACT,WAAW,EACX,UAAU,GACX,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,YAAY,EACV,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,SAAS,GACV,MAAM,wBAAwB,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Types barrel — re-exports every public type from the SDK.
|
|
2
2
|
export {
|
|
3
3
|
// Step type enums
|
|
4
|
-
BuiltinStepType, BuiltinStepTypeSchema, ControlFlowStepTypeSchema, CONTROL_FLOW_STEP_TYPES,
|
|
4
|
+
BuiltinStepType, BuiltinStepTypeSchema, CONVERSATIONAL_FLOW_KIND, GateCategory, ControlFlowStepTypeSchema, CONTROL_FLOW_STEP_TYPES,
|
|
5
5
|
// Trigger type enums
|
|
6
6
|
BuiltinTriggerType, BuiltinTriggerTypeSchema, } from './known-types.js';
|
|
7
7
|
export { TriggerCategory, TriggerCategorySchema, } from './categories.js';
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAE5D,OAAO;AACL,kBAAkB;AAClB,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB;AACvB,qBAAqB;AACrB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAO1B,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAE5D,OAAO;AACL,kBAAkB;AAClB,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,yBAAyB,EACzB,uBAAuB;AACvB,qBAAqB;AACrB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAO1B,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AAoBzB,+EAA+E;AAC/E,uEAAuE;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAY/C,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAiB9B,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC"}
|
|
@@ -11,7 +11,20 @@ export declare enum BuiltinStepType {
|
|
|
11
11
|
PARALLEL = "PARALLEL",
|
|
12
12
|
MAP = "MAP",
|
|
13
13
|
CODE = "CODE",
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Wait for a person to answer — the only kind that reaches the approvals
|
|
16
|
+
* inbox.
|
|
17
|
+
*
|
|
18
|
+
* The wire value stays `WAIT`: every stored screen of every conversational
|
|
19
|
+
* flow is one of these, and the step's other two modes could never resume in
|
|
20
|
+
* any deployment. So this is not a rename, it is the step saying what it has
|
|
21
|
+
* always been, and no config has to move.
|
|
22
|
+
*/
|
|
23
|
+
WAIT_FOR_HUMAN = "WAIT",
|
|
24
|
+
/** Wait for an external system to post its result back. */
|
|
25
|
+
WAIT_FOR_WEBHOOK = "WAIT_FOR_WEBHOOK",
|
|
26
|
+
/** Wait for the clock. */
|
|
27
|
+
DELAY = "DELAY",
|
|
15
28
|
HTTP_REQUEST = "HTTP_REQUEST",
|
|
16
29
|
DEDUP = "DEDUP",
|
|
17
30
|
CLASSIFIER_AGENT = "CLASSIFIER_AGENT",
|
|
@@ -19,6 +32,43 @@ export declare enum BuiltinStepType {
|
|
|
19
32
|
FINISH = "FINISH"
|
|
20
33
|
}
|
|
21
34
|
export declare const BuiltinStepTypeSchema: z.ZodNativeEnum<typeof BuiltinStepType>;
|
|
35
|
+
/**
|
|
36
|
+
* `metadata.kind` of a workflow built in the conversational-flow editor.
|
|
37
|
+
*
|
|
38
|
+
* Platform vocabulary rather than that module's own: the editor a workflow
|
|
39
|
+
* belongs to decides who its waits are addressed to, and the engine reads that
|
|
40
|
+
* without depending on the feature.
|
|
41
|
+
*/
|
|
42
|
+
export declare const CONVERSATIONAL_FLOW_KIND = "conversational_flow";
|
|
43
|
+
/**
|
|
44
|
+
* Who a parked run is waiting on, written when the pause is created.
|
|
45
|
+
*
|
|
46
|
+
* Without it the approvals inbox can only filter on the run's status, which
|
|
47
|
+
* says THAT a run is parked and never who it is parked on — so a dispatched
|
|
48
|
+
* agent run, a build callback and a customer mid-chat all read as somebody's
|
|
49
|
+
* work to approve.
|
|
50
|
+
*/
|
|
51
|
+
export declare enum GateCategory {
|
|
52
|
+
/**
|
|
53
|
+
* Somebody inside the product: an approval, a review of a step's output, an
|
|
54
|
+
* agent asking its operator a question. **The only category the approvals
|
|
55
|
+
* inbox asks for** — it is the one place a person finds work waiting on them,
|
|
56
|
+
* so whatever lands here has to be theirs to act on.
|
|
57
|
+
*/
|
|
58
|
+
WaitingOnApprover = "waiting_on_approver",
|
|
59
|
+
/**
|
|
60
|
+
* The person a conversation is with: a screen of a conversational flow,
|
|
61
|
+
* waiting on the customer at the other end.
|
|
62
|
+
*
|
|
63
|
+
* Deliberately not in the inbox. They are already looking at the
|
|
64
|
+
* conversation, and these outnumber real approvals several times over.
|
|
65
|
+
*/
|
|
66
|
+
WaitingOnConsumer = "waiting_on_consumer",
|
|
67
|
+
/** An external system that will post its result back. */
|
|
68
|
+
WaitingOnApiCall = "waiting_on_api_call",
|
|
69
|
+
/** A clock. Nobody is called, and nobody can answer. */
|
|
70
|
+
Delay = "delay"
|
|
71
|
+
}
|
|
22
72
|
declare const _CONTROL_FLOW_STEP_TYPES: readonly [BuiltinStepType.CONDITIONAL, BuiltinStepType.SWITCH, BuiltinStepType.LOOP, BuiltinStepType.CYCLE, BuiltinStepType.PARALLEL, BuiltinStepType.MAP];
|
|
23
73
|
export type ControlFlowStepType = (typeof _CONTROL_FLOW_STEP_TYPES)[number];
|
|
24
74
|
/** Set of control-flow step types — for runtime checks like `CONTROL_FLOW_STEP_TYPES.has(step.type)`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"known-types.d.ts","sourceRoot":"","sources":["../../src/types/known-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,oBAAY,eAAe;IAEzB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,GAAG,QAAQ;IAEX,IAAI,SAAS;IACb,
|
|
1
|
+
{"version":3,"file":"known-types.d.ts","sourceRoot":"","sources":["../../src/types/known-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,oBAAY,eAAe;IAEzB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,GAAG,QAAQ;IAEX,IAAI,SAAS;IACb;;;;;;;;OAQG;IACH,cAAc,SAAS;IACvB,2DAA2D;IAC3D,gBAAgB,qBAAqB;IACrC,0BAA0B;IAC1B,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,gBAAgB,qBAAqB;IACrC,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,qBAAqB,yCAAgC,CAAC;AAInE;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,wBAAwB,CAAC;AAI9D;;;;;;;GAOG;AACH,oBAAY,YAAY;IACtB;;;;;OAKG;IACH,iBAAiB,wBAAwB;IACzC;;;;;;OAMG;IACH,iBAAiB,wBAAwB;IACzC,yDAAyD;IACzD,gBAAgB,wBAAwB;IACxC,wDAAwD;IACxD,KAAK,UAAU;CAChB;AAKD,QAAA,MAAM,wBAAwB,4JAOpB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,yGAAyG;AACzG,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAEvD,CAAC;AAEF,eAAO,MAAM,yBAAyB,8JAOpC,CAAC;AAIH;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,eAAO,MAAM,wBAAwB,4CAAmC,CAAC"}
|
|
@@ -15,7 +15,20 @@ export var BuiltinStepType;
|
|
|
15
15
|
BuiltinStepType["MAP"] = "MAP";
|
|
16
16
|
// Action
|
|
17
17
|
BuiltinStepType["CODE"] = "CODE";
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Wait for a person to answer — the only kind that reaches the approvals
|
|
20
|
+
* inbox.
|
|
21
|
+
*
|
|
22
|
+
* The wire value stays `WAIT`: every stored screen of every conversational
|
|
23
|
+
* flow is one of these, and the step's other two modes could never resume in
|
|
24
|
+
* any deployment. So this is not a rename, it is the step saying what it has
|
|
25
|
+
* always been, and no config has to move.
|
|
26
|
+
*/
|
|
27
|
+
BuiltinStepType["WAIT_FOR_HUMAN"] = "WAIT";
|
|
28
|
+
/** Wait for an external system to post its result back. */
|
|
29
|
+
BuiltinStepType["WAIT_FOR_WEBHOOK"] = "WAIT_FOR_WEBHOOK";
|
|
30
|
+
/** Wait for the clock. */
|
|
31
|
+
BuiltinStepType["DELAY"] = "DELAY";
|
|
19
32
|
BuiltinStepType["HTTP_REQUEST"] = "HTTP_REQUEST";
|
|
20
33
|
BuiltinStepType["DEDUP"] = "DEDUP";
|
|
21
34
|
BuiltinStepType["CLASSIFIER_AGENT"] = "CLASSIFIER_AGENT";
|
|
@@ -23,6 +36,46 @@ export var BuiltinStepType;
|
|
|
23
36
|
BuiltinStepType["FINISH"] = "FINISH";
|
|
24
37
|
})(BuiltinStepType || (BuiltinStepType = {}));
|
|
25
38
|
export const BuiltinStepTypeSchema = z.nativeEnum(BuiltinStepType);
|
|
39
|
+
// ─── Workflow kinds ───
|
|
40
|
+
/**
|
|
41
|
+
* `metadata.kind` of a workflow built in the conversational-flow editor.
|
|
42
|
+
*
|
|
43
|
+
* Platform vocabulary rather than that module's own: the editor a workflow
|
|
44
|
+
* belongs to decides who its waits are addressed to, and the engine reads that
|
|
45
|
+
* without depending on the feature.
|
|
46
|
+
*/
|
|
47
|
+
export const CONVERSATIONAL_FLOW_KIND = 'conversational_flow';
|
|
48
|
+
// ─── Gate Categories ───
|
|
49
|
+
/**
|
|
50
|
+
* Who a parked run is waiting on, written when the pause is created.
|
|
51
|
+
*
|
|
52
|
+
* Without it the approvals inbox can only filter on the run's status, which
|
|
53
|
+
* says THAT a run is parked and never who it is parked on — so a dispatched
|
|
54
|
+
* agent run, a build callback and a customer mid-chat all read as somebody's
|
|
55
|
+
* work to approve.
|
|
56
|
+
*/
|
|
57
|
+
export var GateCategory;
|
|
58
|
+
(function (GateCategory) {
|
|
59
|
+
/**
|
|
60
|
+
* Somebody inside the product: an approval, a review of a step's output, an
|
|
61
|
+
* agent asking its operator a question. **The only category the approvals
|
|
62
|
+
* inbox asks for** — it is the one place a person finds work waiting on them,
|
|
63
|
+
* so whatever lands here has to be theirs to act on.
|
|
64
|
+
*/
|
|
65
|
+
GateCategory["WaitingOnApprover"] = "waiting_on_approver";
|
|
66
|
+
/**
|
|
67
|
+
* The person a conversation is with: a screen of a conversational flow,
|
|
68
|
+
* waiting on the customer at the other end.
|
|
69
|
+
*
|
|
70
|
+
* Deliberately not in the inbox. They are already looking at the
|
|
71
|
+
* conversation, and these outnumber real approvals several times over.
|
|
72
|
+
*/
|
|
73
|
+
GateCategory["WaitingOnConsumer"] = "waiting_on_consumer";
|
|
74
|
+
/** An external system that will post its result back. */
|
|
75
|
+
GateCategory["WaitingOnApiCall"] = "waiting_on_api_call";
|
|
76
|
+
/** A clock. Nobody is called, and nobody can answer. */
|
|
77
|
+
GateCategory["Delay"] = "delay";
|
|
78
|
+
})(GateCategory || (GateCategory = {}));
|
|
26
79
|
// ─── Control Flow subset ───
|
|
27
80
|
const _CONTROL_FLOW_STEP_TYPES = [
|
|
28
81
|
BuiltinStepType.CONDITIONAL,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"known-types.js","sourceRoot":"","sources":["../../src/types/known-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8BAA8B;AAE9B;;;GAGG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"known-types.js","sourceRoot":"","sources":["../../src/types/known-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8BAA8B;AAE9B;;;GAGG;AACH,MAAM,CAAN,IAAY,eA6BX;AA7BD,WAAY,eAAe;IACzB,eAAe;IACf,8CAA2B,CAAA;IAC3B,oCAAiB,CAAA;IACjB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,wCAAqB,CAAA;IACrB,8BAAW,CAAA;IACX,SAAS;IACT,gCAAa,CAAA;IACb;;;;;;;;OAQG;IACH,0CA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IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;AAC3B,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -96,17 +96,9 @@ export interface PauseAction {
|
|
|
96
96
|
/** If true, form values are included in the resume payload. Default true for non-abort actions. */
|
|
97
97
|
submitsForm?: boolean | undefined;
|
|
98
98
|
}
|
|
99
|
-
/**
|
|
100
|
-
* Structured category for UI routing/filtering. Lets the UI distinguish
|
|
101
|
-
* "tool needs approval" from "review the output before continuing" without
|
|
102
|
-
* parsing the human-readable reason string.
|
|
103
|
-
*/
|
|
104
|
-
export type PauseCategory = 'approval' | 'input_required' | 'review';
|
|
105
99
|
export interface PauseState {
|
|
106
100
|
/** Human-readable reason the workflow is paused. */
|
|
107
101
|
reason: string;
|
|
108
|
-
/** Structured category — lets UI filter executions by pause type. */
|
|
109
|
-
category?: PauseCategory | undefined;
|
|
110
102
|
/** What to show above the interaction panel. Each one is shown in turn. */
|
|
111
103
|
prompt?: string[] | undefined;
|
|
112
104
|
/** Read-only data sections to display. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pause-state.d.ts","sourceRoot":"","sources":["../../src/types/pause-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAItD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAChB;AAID,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,M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W,EAAE,GAAG,SAAS,CAAC;CACrC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,GAAG,MAAM,EAAE,CAK7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pause-state.js","sourceRoot":"","sources":["../../src/types/pause-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"pause-state.js","sourceRoot":"","sources":["../../src/types/pause-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AA2HH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CAAC,KAAuC;IACjE,MAAM,MAAM,GAAG,KAAK,EAAE,MAAM,CAAC;IAC7B,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QAAE,OAAO,EAAE,CAAC;IACtC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC;AAC1F,CAAC"}
|