@converge.ai/a13n 0.7.0 → 0.8.0
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/README.md +27 -144
- package/dist/client.d.ts +32 -14
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +92 -16
- package/dist/client.js.map +1 -1
- package/dist/conversations.d.ts +134 -0
- package/dist/conversations.d.ts.map +1 -0
- package/dist/conversations.js +421 -0
- package/dist/conversations.js.map +1 -0
- package/dist/errors.d.ts +57 -44
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +97 -63
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +25 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +42 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +72 -0
- package/dist/models.js.map +1 -0
- package/dist/public-models.d.ts +673 -0
- package/dist/public-models.d.ts.map +1 -0
- package/dist/public-models.js +2 -0
- package/dist/public-models.js.map +1 -0
- package/dist/realtime/browser.d.ts +16 -0
- package/dist/realtime/browser.d.ts.map +1 -0
- package/dist/realtime/browser.js +97 -0
- package/dist/realtime/browser.js.map +1 -0
- package/dist/realtime/core.d.ts +103 -0
- package/dist/realtime/core.d.ts.map +1 -0
- package/dist/realtime/core.js +240 -0
- package/dist/realtime/core.js.map +1 -0
- package/dist/resources/base.d.ts +43 -36
- package/dist/resources/base.d.ts.map +1 -1
- package/dist/resources/base.js +222 -200
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/generated.d.ts +3909 -7468
- package/dist/resources/generated.d.ts.map +1 -1
- package/dist/resources/generated.js +6478 -5964
- package/dist/resources/generated.js.map +1 -1
- package/dist/resources/interaction.js +2 -2
- package/dist/resources/interaction.js.map +1 -1
- package/dist/schema.d.ts +3623 -2848
- package/dist/schema.d.ts.map +1 -1
- package/dist/session-stream-schema.d.ts +116 -2
- package/dist/session-stream-schema.d.ts.map +1 -1
- package/dist/session-stream-schema.js +10 -1
- package/dist/session-stream-schema.js.map +1 -1
- package/dist/streams/ag-ui.d.ts +114 -0
- package/dist/streams/ag-ui.d.ts.map +1 -0
- package/dist/streams/ag-ui.js +115 -0
- package/dist/streams/ag-ui.js.map +1 -0
- package/dist/streams/session-stream.d.ts +18 -7
- package/dist/streams/session-stream.d.ts.map +1 -1
- package/dist/streams/session-stream.js +95 -19
- package/dist/streams/session-stream.js.map +1 -1
- package/dist/streams/sse.d.ts +2 -2
- package/dist/streams/sse.d.ts.map +1 -1
- package/dist/streams/sse.js +5 -5
- package/dist/streams/sse.js.map +1 -1
- package/dist/streams/thread-stream.d.ts +3 -2
- package/dist/streams/thread-stream.d.ts.map +1 -1
- package/dist/streams/thread-stream.js +12 -12
- package/dist/streams/thread-stream.js.map +1 -1
- package/dist/transport.d.ts +34 -25
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +176 -128
- package/dist/transport.js.map +1 -1
- package/dist/webhooks.d.ts +59 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +79 -0
- package/dist/webhooks.js.map +1 -0
- package/dist/workflow.d.ts +35 -35
- package/dist/workflow.d.ts.map +1 -1
- package/dist/workflow.js +5 -1
- package/dist/workflow.js.map +1 -1
- package/openapi.json +6632 -1049
- package/package.json +9 -8
- package/THIRD_PARTY_NOTICES.txt +0 -83
- package/dist/dispatch.d.ts +0 -6
- package/dist/dispatch.d.ts.map +0 -1
- package/dist/dispatch.js +0 -19
- package/dist/dispatch.js.map +0 -1
- package/dist/semantic.d.ts +0 -265
- package/dist/semantic.d.ts.map +0 -1
- package/dist/semantic.js +0 -624
- package/dist/semantic.js.map +0 -1
- package/dist/session-stream-validation.d.ts +0 -145
- package/dist/session-stream-validation.d.ts.map +0 -1
- package/dist/session-stream-validation.js +0 -37742
- package/dist/session-stream-validation.js.map +0 -1
- package/dist/workspace-scope.d.ts +0 -2
- package/dist/workspace-scope.d.ts.map +0 -1
- package/dist/workspace-scope.js +0 -361
- package/dist/workspace-scope.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@converge.ai/a13n",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "TypeScript SDK for a13n Service",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -13,17 +13,20 @@
|
|
|
13
13
|
"import": "./dist/index.js"
|
|
14
14
|
},
|
|
15
15
|
"./package.json": "./package.json",
|
|
16
|
-
"./openapi.json": "./openapi.json"
|
|
16
|
+
"./openapi.json": "./openapi.json",
|
|
17
|
+
"./realtime/browser": {
|
|
18
|
+
"types": "./dist/realtime/browser.d.ts",
|
|
19
|
+
"import": "./dist/realtime/browser.js"
|
|
20
|
+
}
|
|
17
21
|
},
|
|
18
22
|
"files": [
|
|
19
23
|
"dist",
|
|
20
24
|
"README.md",
|
|
21
25
|
"LICENSE",
|
|
22
|
-
"THIRD_PARTY_NOTICES.txt",
|
|
23
26
|
"openapi.json"
|
|
24
27
|
],
|
|
25
28
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
29
|
+
"node": ">=20.3.0"
|
|
27
30
|
},
|
|
28
31
|
"packageManager": "npm@11.9.0",
|
|
29
32
|
"publishConfig": {
|
|
@@ -45,13 +48,11 @@
|
|
|
45
48
|
"pack:check": "npm pack --dry-run",
|
|
46
49
|
"package:acceptance": "node scripts/package-acceptance.mjs",
|
|
47
50
|
"test": "npm run build && node --test tests/*.test.mjs",
|
|
48
|
-
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
51
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
52
|
+
"accept:service": "node scripts/package-acceptance.mjs --live"
|
|
49
53
|
},
|
|
50
54
|
"devDependencies": {
|
|
51
55
|
"@eslint/js": "^10.0.1",
|
|
52
|
-
"ajv": "^8.20.0",
|
|
53
|
-
"ajv-formats": "^3.0.1",
|
|
54
|
-
"esbuild": "^0.27.7",
|
|
55
56
|
"eslint": "^10.10.0",
|
|
56
57
|
"globals": "^16.5.0",
|
|
57
58
|
"openapi-typescript": "^7.13.0",
|
package/THIRD_PARTY_NOTICES.txt
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
Bundled Session validator runtime notices
|
|
2
|
-
|
|
3
|
-
The generated Session stream validator bundles portions of the packages below.
|
|
4
|
-
These components retain their original MIT licenses. The SDK's other code is
|
|
5
|
-
licensed under the Apache License 2.0 in LICENSE.
|
|
6
|
-
|
|
7
|
-
===============================================================================
|
|
8
|
-
ajv
|
|
9
|
-
===============================================================================
|
|
10
|
-
|
|
11
|
-
The MIT License (MIT)
|
|
12
|
-
|
|
13
|
-
Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
14
|
-
|
|
15
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
-
in the Software without restriction, including without limitation the rights
|
|
18
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
-
furnished to do so, subject to the following conditions:
|
|
21
|
-
|
|
22
|
-
The above copyright notice and this permission notice shall be included in all
|
|
23
|
-
copies or substantial portions of the Software.
|
|
24
|
-
|
|
25
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
-
SOFTWARE.
|
|
32
|
-
|
|
33
|
-
===============================================================================
|
|
34
|
-
ajv-formats
|
|
35
|
-
===============================================================================
|
|
36
|
-
|
|
37
|
-
MIT License
|
|
38
|
-
|
|
39
|
-
Copyright (c) 2020 Evgeny Poberezkin
|
|
40
|
-
|
|
41
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
42
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
43
|
-
in the Software without restriction, including without limitation the rights
|
|
44
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
45
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
46
|
-
furnished to do so, subject to the following conditions:
|
|
47
|
-
|
|
48
|
-
The above copyright notice and this permission notice shall be included in all
|
|
49
|
-
copies or substantial portions of the Software.
|
|
50
|
-
|
|
51
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
52
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
53
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
54
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
55
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
56
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
57
|
-
SOFTWARE.
|
|
58
|
-
|
|
59
|
-
===============================================================================
|
|
60
|
-
fast-deep-equal
|
|
61
|
-
===============================================================================
|
|
62
|
-
|
|
63
|
-
MIT License
|
|
64
|
-
|
|
65
|
-
Copyright (c) 2017 Evgeny Poberezkin
|
|
66
|
-
|
|
67
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
68
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
69
|
-
in the Software without restriction, including without limitation the rights
|
|
70
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
71
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
72
|
-
furnished to do so, subject to the following conditions:
|
|
73
|
-
|
|
74
|
-
The above copyright notice and this permission notice shall be included in all
|
|
75
|
-
copies or substantial portions of the Software.
|
|
76
|
-
|
|
77
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
78
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
79
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
80
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
81
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
82
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
83
|
-
SOFTWARE.
|
package/dist/dispatch.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function trackDispatch(signal: AbortSignal): {
|
|
2
|
-
attempted: boolean;
|
|
3
|
-
};
|
|
4
|
-
export declare function inheritDispatch(request: Request, signal: AbortSignal | undefined): Request;
|
|
5
|
-
export declare function markDispatch(signal: AbortSignal): void;
|
|
6
|
-
//# sourceMappingURL=dispatch.d.ts.map
|
package/dist/dispatch.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../src/dispatch.ts"],"names":[],"mappings":"AAGA,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW;;EAIhD;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,WAAW,GAAG,SAAS,GAC9B,OAAO,CAIT;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAGtD"}
|
package/dist/dispatch.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** Per-invocation dispatch evidence; no requests, credentials or bodies are retained. */
|
|
2
|
-
const invocations = new WeakMap();
|
|
3
|
-
export function trackDispatch(signal) {
|
|
4
|
-
const evidence = { attempted: false };
|
|
5
|
-
invocations.set(signal, evidence);
|
|
6
|
-
return evidence;
|
|
7
|
-
}
|
|
8
|
-
export function inheritDispatch(request, signal) {
|
|
9
|
-
const evidence = signal && invocations.get(signal);
|
|
10
|
-
if (evidence)
|
|
11
|
-
invocations.set(request.signal, evidence);
|
|
12
|
-
return request;
|
|
13
|
-
}
|
|
14
|
-
export function markDispatch(signal) {
|
|
15
|
-
const evidence = invocations.get(signal);
|
|
16
|
-
if (evidence)
|
|
17
|
-
evidence.attempted = true;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=dispatch.js.map
|
package/dist/dispatch.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.js","sourceRoot":"","sources":["../src/dispatch.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,WAAW,GAAG,IAAI,OAAO,EAAuC,CAAC;AAEvE,MAAM,UAAU,aAAa,CAAC,MAAmB;IAC/C,MAAM,QAAQ,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IACtC,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAClC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,eAAe,CAC7B,OAAgB,EAChB,MAA+B;IAE/B,MAAM,QAAQ,GAAG,MAAM,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACnD,IAAI,QAAQ;QAAE,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACxD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAAmB;IAC9C,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,QAAQ;QAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;AAC1C,CAAC"}
|
package/dist/semantic.d.ts
DELETED
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
import type { components } from "./schema.js";
|
|
2
|
-
import type { ServiceResources, RunsRunIdItemsResource } from "./resources/generated.js";
|
|
3
|
-
import type { ResourceResult } from "./resources/base.js";
|
|
4
|
-
import { type WaitOptions } from "./resources/interaction.js";
|
|
5
|
-
import { type ThreadEvent } from "./streams/thread-stream.js";
|
|
6
|
-
import { type MessageInput, type ResumeAnswers, type ResumeOptions, type SendOptions, type StartOptions } from "./workflow.js";
|
|
7
|
-
type Schema = components["schemas"];
|
|
8
|
-
export type { MessageInput, StartOptions, SendOptions } from "./workflow.js";
|
|
9
|
-
/** Safe local identity, not incorporation or terminal evidence. */
|
|
10
|
-
export interface InteractionIdentity {
|
|
11
|
-
readonly origin: "submitted" | "resumed" | "recovered_entry" | "exact_run";
|
|
12
|
-
readonly threadId?: string;
|
|
13
|
-
readonly entryId?: string;
|
|
14
|
-
readonly runId?: string;
|
|
15
|
-
readonly idempotencyKey?: string;
|
|
16
|
-
}
|
|
17
|
-
type Receipt = ResourceResult<Schema["Submitted"]> | ResourceResult<Schema["RunView"]>;
|
|
18
|
-
/** The Entry was settled without incorporation; this is not a failed Run. */
|
|
19
|
-
export declare class SubmissionDispositionError extends Error {
|
|
20
|
-
readonly snapshot: ResourceResult<Schema["EntryView"]>;
|
|
21
|
-
readonly name = "SubmissionDispositionError";
|
|
22
|
-
readonly threadId: string;
|
|
23
|
-
readonly entryId: string;
|
|
24
|
-
readonly status: "failed" | "withdrawn";
|
|
25
|
-
constructor(snapshot: ResourceResult<Schema["EntryView"]>);
|
|
26
|
-
}
|
|
27
|
-
/** Authoritative exact-Run HTTP evidence, never reconstructed from Items or preview. */
|
|
28
|
-
export declare class RunOutcome {
|
|
29
|
-
readonly run: RunHandle;
|
|
30
|
-
readonly snapshot: ResourceResult<Schema["RunView"]>;
|
|
31
|
-
constructor(run: RunHandle, snapshot: ResourceResult<Schema["RunView"]>);
|
|
32
|
-
get status(): "failed" | "waiting" | "completed" | "running" | "cancelled" | "accepted";
|
|
33
|
-
get output(): unknown;
|
|
34
|
-
get text(): string | undefined;
|
|
35
|
-
get pending(): {
|
|
36
|
-
approvals: components["schemas"]["PendingCall"][];
|
|
37
|
-
calls: components["schemas"]["PendingCall"][];
|
|
38
|
-
desktop_control_id: string;
|
|
39
|
-
} | {
|
|
40
|
-
approvals: components["schemas"]["PendingCall"][];
|
|
41
|
-
calls: components["schemas"]["PendingCall"][];
|
|
42
|
-
} | null;
|
|
43
|
-
get pendingApprovals(): {
|
|
44
|
-
arguments: {
|
|
45
|
-
[key: string]: components["schemas"]["JsonValue"];
|
|
46
|
-
};
|
|
47
|
-
presentation?: {
|
|
48
|
-
[key: string]: components["schemas"]["JsonValue"];
|
|
49
|
-
} | null;
|
|
50
|
-
terminal?: boolean;
|
|
51
|
-
tool_call_id: components["schemas"]["ToolCallId"];
|
|
52
|
-
tool_name: string;
|
|
53
|
-
}[];
|
|
54
|
-
get pendingCalls(): {
|
|
55
|
-
arguments: {
|
|
56
|
-
[key: string]: components["schemas"]["JsonValue"];
|
|
57
|
-
};
|
|
58
|
-
presentation?: {
|
|
59
|
-
[key: string]: components["schemas"]["JsonValue"];
|
|
60
|
-
} | null;
|
|
61
|
-
terminal?: boolean;
|
|
62
|
-
tool_call_id: components["schemas"]["ToolCallId"];
|
|
63
|
-
tool_name: string;
|
|
64
|
-
}[];
|
|
65
|
-
get failure(): {
|
|
66
|
-
code: string;
|
|
67
|
-
message: string;
|
|
68
|
-
} | null;
|
|
69
|
-
get threadId(): string;
|
|
70
|
-
get runId(): string;
|
|
71
|
-
}
|
|
72
|
-
export declare class RunHandle {
|
|
73
|
-
readonly id: string;
|
|
74
|
-
private readonly resources;
|
|
75
|
-
private readonly shutdown;
|
|
76
|
-
constructor(id: string, resources: ServiceResources, shutdown: AbortSignal);
|
|
77
|
-
get(options?: {
|
|
78
|
-
signal?: AbortSignal;
|
|
79
|
-
}): Promise<ResourceResult<Schema["RunView"]>>;
|
|
80
|
-
observe(options?: WaitOptions): Interaction;
|
|
81
|
-
result(options?: WaitOptions): Promise<RunOutcome>;
|
|
82
|
-
items(options?: Parameters<RunsRunIdItemsResource["get"]>[0]): Promise<ResourceResult<{
|
|
83
|
-
complete: boolean;
|
|
84
|
-
items: (components["schemas"]["ItemSummary"] | components["schemas"]["Item"])[];
|
|
85
|
-
next_after?: number | null;
|
|
86
|
-
next_before?: number | null;
|
|
87
|
-
run: components["schemas"]["RunSummary"];
|
|
88
|
-
view: "compact" | "detailed";
|
|
89
|
-
} | {
|
|
90
|
-
complete: boolean;
|
|
91
|
-
items: components["schemas"]["Item"][];
|
|
92
|
-
run: components["schemas"]["RunView"];
|
|
93
|
-
}>>;
|
|
94
|
-
interrupt(options?: {
|
|
95
|
-
signal?: AbortSignal;
|
|
96
|
-
}): Promise<ResourceResult<{
|
|
97
|
-
agent_id: string;
|
|
98
|
-
agent_revision_id: string | null;
|
|
99
|
-
readonly app_id?: string | null;
|
|
100
|
-
attempts: number;
|
|
101
|
-
browser_binding?: components["schemas"]["BrowserBinding"] | null;
|
|
102
|
-
cancel_requested_at: string | null;
|
|
103
|
-
created_at: string;
|
|
104
|
-
current_attempt_id: string | null;
|
|
105
|
-
environment_mounts: components["schemas"]["EnvironmentMount"][];
|
|
106
|
-
failure: components["schemas"]["Failure"] | null;
|
|
107
|
-
finding_analysis_id?: string | null;
|
|
108
|
-
id: string;
|
|
109
|
-
input?: {
|
|
110
|
-
[key: string]: components["schemas"]["JsonValue"];
|
|
111
|
-
} | null;
|
|
112
|
-
labels: {
|
|
113
|
-
[key: string]: string;
|
|
114
|
-
};
|
|
115
|
-
lineage: components["schemas"]["Lineage"];
|
|
116
|
-
max_attempts: number;
|
|
117
|
-
memory_mounts: (components["schemas"]["MemoryMount"] | components["schemas"]["RunMemoryMount"])[];
|
|
118
|
-
options: components["schemas"]["RunOptions-Output"];
|
|
119
|
-
output: components["schemas"]["JsonValue"] | null;
|
|
120
|
-
parent_run_id: string | null;
|
|
121
|
-
pending: components["schemas"]["Pending"] | components["schemas"]["HistoricalDesktopPending"] | null;
|
|
122
|
-
principal_id: string;
|
|
123
|
-
resume: components["schemas"]["Resume"] | null;
|
|
124
|
-
resumed_by_id: string | null;
|
|
125
|
-
revision_selection: "pinned" | "default" | "inherited" | "snapshot";
|
|
126
|
-
schedule_origin?: components["schemas"]["ScheduleOrigin"] | null;
|
|
127
|
-
sealed_at: string | null;
|
|
128
|
-
session_id: string;
|
|
129
|
-
source_entry_id: string | null;
|
|
130
|
-
started_at: string | null;
|
|
131
|
-
status: components["schemas"]["RunStatus"];
|
|
132
|
-
thread_id: string;
|
|
133
|
-
trigger: components["schemas"]["Trigger"];
|
|
134
|
-
readonly trigger_app_id?: string | null;
|
|
135
|
-
updated_at: string;
|
|
136
|
-
usage_at_seal: {
|
|
137
|
-
[key: string]: components["schemas"]["JsonValue"];
|
|
138
|
-
} | null;
|
|
139
|
-
version: number;
|
|
140
|
-
wait_reason: components["schemas"]["WaitReason"] | null;
|
|
141
|
-
workspace_id: string;
|
|
142
|
-
}>>;
|
|
143
|
-
/** Atomic complete answer map; Service alone validates coverage. Returns the exact successor. */
|
|
144
|
-
resume(answers: ResumeAnswers, options?: ResumeOptions): Promise<Interaction>;
|
|
145
|
-
}
|
|
146
|
-
export declare class ThreadHandle {
|
|
147
|
-
readonly id: string;
|
|
148
|
-
private readonly resources;
|
|
149
|
-
private readonly shutdown;
|
|
150
|
-
constructor(id: string, resources: ServiceResources, shutdown: AbortSignal);
|
|
151
|
-
get(options?: {
|
|
152
|
-
signal?: AbortSignal;
|
|
153
|
-
}): Promise<ResourceResult<{
|
|
154
|
-
readonly app_id?: string | null;
|
|
155
|
-
archived_at: string | null;
|
|
156
|
-
created_at: string;
|
|
157
|
-
current_run_id: string | null;
|
|
158
|
-
execution?: components["schemas"]["ExecutionOverride"] | null;
|
|
159
|
-
id: string;
|
|
160
|
-
labels: {
|
|
161
|
-
[key: string]: string;
|
|
162
|
-
};
|
|
163
|
-
last_run_id: string | null;
|
|
164
|
-
mcp_headers: {
|
|
165
|
-
[key: string]: {
|
|
166
|
-
[key: string]: string;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
origin: "new" | "fork" | "child";
|
|
170
|
-
origin_run_id: string | null;
|
|
171
|
-
origin_thread_id: string | null;
|
|
172
|
-
origin_tool_call_id: string | null;
|
|
173
|
-
purpose?: "conversation" | "memory_organization";
|
|
174
|
-
schedule_occurrence_id?: string | null;
|
|
175
|
-
session_id: string;
|
|
176
|
-
subagent: string | null;
|
|
177
|
-
updated_at: string;
|
|
178
|
-
version: number;
|
|
179
|
-
workspace_id: string;
|
|
180
|
-
}>>;
|
|
181
|
-
entry(id: string): EntryHandle;
|
|
182
|
-
}
|
|
183
|
-
export declare class EntryHandle {
|
|
184
|
-
readonly id: string;
|
|
185
|
-
readonly threadId: string;
|
|
186
|
-
private readonly resources;
|
|
187
|
-
private readonly shutdown;
|
|
188
|
-
constructor(id: string, threadId: string, resources: ServiceResources, shutdown: AbortSignal);
|
|
189
|
-
get(options?: {
|
|
190
|
-
signal?: AbortSignal;
|
|
191
|
-
}): Promise<ResourceResult<Schema["EntryView"]>>;
|
|
192
|
-
/** Recover only an identity, without I/O or a fabricated receipt. */
|
|
193
|
-
interaction(options?: WaitOptions): Interaction;
|
|
194
|
-
}
|
|
195
|
-
/** One finite exact-bound observation, shared by submission, resume and identity recovery. */
|
|
196
|
-
export declare class Interaction implements AsyncIterable<ThreadEvent> {
|
|
197
|
-
private readonly resources;
|
|
198
|
-
private readonly shutdown;
|
|
199
|
-
private readonly invocationSignal?;
|
|
200
|
-
readonly receipt?: Receipt | undefined;
|
|
201
|
-
private readonly initialOptions;
|
|
202
|
-
readonly identity: InteractionIdentity;
|
|
203
|
-
readonly receiptRun: RunHandle | null;
|
|
204
|
-
readonly entry: EntryHandle | null;
|
|
205
|
-
private threadHandle;
|
|
206
|
-
private runHandle;
|
|
207
|
-
private readonly localAbort;
|
|
208
|
-
private watch?;
|
|
209
|
-
private outcomePromise?;
|
|
210
|
-
private boundPromise?;
|
|
211
|
-
private reader?;
|
|
212
|
-
private binary?;
|
|
213
|
-
private streamAbort?;
|
|
214
|
-
private readerClose?;
|
|
215
|
-
private closePromise?;
|
|
216
|
-
private closed;
|
|
217
|
-
private settled;
|
|
218
|
-
private consumer;
|
|
219
|
-
private rawUsed;
|
|
220
|
-
private previewUsed;
|
|
221
|
-
private previewFailure?;
|
|
222
|
-
constructor(identity: InteractionIdentity, resources: ServiceResources, shutdown: AbortSignal, invocationSignal?: AbortSignal | undefined, receipt?: Receipt | undefined, initialOptions?: WaitOptions);
|
|
223
|
-
get thread(): ThreadHandle | null;
|
|
224
|
-
/** Authoritative only after consumed Entry binding or a validated exact Run read. */
|
|
225
|
-
get run(): RunHandle | null;
|
|
226
|
-
get idempotencyKey(): string | undefined;
|
|
227
|
-
/** No SSE for result-only callers. First observation fixes one deadline for all consumers. */
|
|
228
|
-
result(options?: WaitOptions): Promise<RunOutcome>;
|
|
229
|
-
private poll;
|
|
230
|
-
private nextEvent;
|
|
231
|
-
private stopReader;
|
|
232
|
-
private readerCancellation;
|
|
233
|
-
/** Joined local cleanup. Never interrupts or resumes remote execution. */
|
|
234
|
-
close(): Promise<void>;
|
|
235
|
-
[Symbol.asyncIterator](): AsyncGenerator<ThreadEvent>;
|
|
236
|
-
/** Lazy preview only; interruption is sticky and leaves result/sequential raw access open. */
|
|
237
|
-
textStream(): AsyncGenerator<string>;
|
|
238
|
-
}
|
|
239
|
-
export declare class AgentHandle {
|
|
240
|
-
readonly id: string;
|
|
241
|
-
private readonly resources;
|
|
242
|
-
private readonly shutdown;
|
|
243
|
-
constructor(id: string, resources: ServiceResources, shutdown: AbortSignal);
|
|
244
|
-
start(input: MessageInput, options?: StartOptions): Promise<Interaction>;
|
|
245
|
-
send(threadId: string, input: MessageInput, options?: SendOptions): Promise<Interaction>;
|
|
246
|
-
}
|
|
247
|
-
export declare class AgentCollection {
|
|
248
|
-
private readonly resources;
|
|
249
|
-
private readonly shutdown;
|
|
250
|
-
constructor(resources: ServiceResources, shutdown: AbortSignal);
|
|
251
|
-
ref(id: string): AgentHandle;
|
|
252
|
-
}
|
|
253
|
-
export declare class ThreadCollection {
|
|
254
|
-
private readonly resources;
|
|
255
|
-
private readonly shutdown;
|
|
256
|
-
constructor(resources: ServiceResources, shutdown: AbortSignal);
|
|
257
|
-
ref(id: string): ThreadHandle;
|
|
258
|
-
}
|
|
259
|
-
export declare class RunCollection {
|
|
260
|
-
private readonly resources;
|
|
261
|
-
private readonly shutdown;
|
|
262
|
-
constructor(resources: ServiceResources, shutdown: AbortSignal);
|
|
263
|
-
ref(id: string): RunHandle;
|
|
264
|
-
}
|
|
265
|
-
//# sourceMappingURL=semantic.d.ts.map
|
package/dist/semantic.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../src/semantic.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG3E,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAML,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,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