@converge.ai/a13n 0.0.93 → 0.0.98

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.
Files changed (66) hide show
  1. package/README.md +87 -61
  2. package/THIRD_PARTY_NOTICES.txt +83 -0
  3. package/dist/client.d.ts +1 -1
  4. package/dist/client.js +2 -2
  5. package/dist/client.js.map +1 -1
  6. package/dist/dispatch.d.ts +6 -0
  7. package/dist/dispatch.d.ts.map +1 -0
  8. package/dist/dispatch.js +19 -0
  9. package/dist/dispatch.js.map +1 -0
  10. package/dist/errors.d.ts +23 -1
  11. package/dist/errors.d.ts.map +1 -1
  12. package/dist/errors.js +38 -5
  13. package/dist/errors.js.map +1 -1
  14. package/dist/index.d.ts +7 -2
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +3 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/resources/base.d.ts.map +1 -1
  19. package/dist/resources/base.js +5 -2
  20. package/dist/resources/base.js.map +1 -1
  21. package/dist/resources/generated.d.ts +3638 -1221
  22. package/dist/resources/generated.d.ts.map +1 -1
  23. package/dist/resources/generated.js +2312 -495
  24. package/dist/resources/generated.js.map +1 -1
  25. package/dist/resources/interaction.d.ts +1 -7
  26. package/dist/resources/interaction.d.ts.map +1 -1
  27. package/dist/resources/interaction.js +2 -30
  28. package/dist/resources/interaction.js.map +1 -1
  29. package/dist/schema.d.ts +15555 -6210
  30. package/dist/schema.d.ts.map +1 -1
  31. package/dist/semantic.d.ts +107 -119
  32. package/dist/semantic.d.ts.map +1 -1
  33. package/dist/semantic.js +461 -168
  34. package/dist/semantic.js.map +1 -1
  35. package/dist/session-stream-schema.d.ts +1851 -0
  36. package/dist/session-stream-schema.d.ts.map +1 -0
  37. package/dist/session-stream-schema.js +2 -0
  38. package/dist/session-stream-schema.js.map +1 -0
  39. package/dist/session-stream-validation.d.ts +129 -0
  40. package/dist/session-stream-validation.d.ts.map +1 -0
  41. package/dist/session-stream-validation.js +30324 -0
  42. package/dist/session-stream-validation.js.map +1 -0
  43. package/dist/streams/session-stream.d.ts +12 -0
  44. package/dist/streams/session-stream.d.ts.map +1 -0
  45. package/dist/streams/session-stream.js +36 -0
  46. package/dist/streams/session-stream.js.map +1 -0
  47. package/dist/streams/sse.d.ts +5 -1
  48. package/dist/streams/sse.d.ts.map +1 -1
  49. package/dist/streams/sse.js +11 -4
  50. package/dist/streams/sse.js.map +1 -1
  51. package/dist/streams/thread-stream.d.ts +8 -2
  52. package/dist/streams/thread-stream.d.ts.map +1 -1
  53. package/dist/streams/thread-stream.js +4 -2
  54. package/dist/streams/thread-stream.js.map +1 -1
  55. package/dist/transport.d.ts.map +1 -1
  56. package/dist/transport.js +3 -0
  57. package/dist/transport.js.map +1 -1
  58. package/dist/workflow.d.ts +117 -0
  59. package/dist/workflow.d.ts.map +1 -0
  60. package/dist/workflow.js +90 -0
  61. package/dist/workflow.js.map +1 -0
  62. package/dist/workspace-scope.d.ts.map +1 -1
  63. package/dist/workspace-scope.js +132 -0
  64. package/dist/workspace-scope.js.map +1 -1
  65. package/openapi.json +35484 -11086
  66. package/package.json +5 -1
@@ -1,20 +1,21 @@
1
1
  import type { components } from "./schema.js";
2
- import type { ServiceResources } from "./resources/generated.js";
2
+ import type { ServiceResources, RunsRunIdItemsResource } from "./resources/generated.js";
3
3
  import type { ResourceResult } from "./resources/base.js";
4
4
  import { type WaitOptions } from "./resources/interaction.js";
5
5
  import { type ThreadEvent } from "./streams/thread-stream.js";
6
+ import { type MessageInput, type ResumeAnswers, type ResumeOptions, type SendOptions, type StartOptions } from "./workflow.js";
6
7
  type Schema = components["schemas"];
7
- export type MessageInput = string | Schema["MessagePayload"];
8
- /** New-Thread fields, including a one-time imported message_history seed. */
9
- export type StartOptions = Omit<Schema["NewThread"], "agent_id" | "payload"> & {
10
- idempotencyKey: string;
11
- signal?: AbortSignal;
12
- };
13
- export type SendOptions = Omit<Schema["Message"], "agent_id" | "payload"> & {
14
- idempotencyKey: string;
15
- signal?: AbortSignal;
16
- };
17
- /** The Entry was settled without incorporation. Keep the safe IDs and original evidence. */
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. */
18
19
  export declare class SubmissionDispositionError extends Error {
19
20
  readonly snapshot: ResourceResult<Schema["EntryView"]>;
20
21
  readonly name = "SubmissionDispositionError";
@@ -23,86 +24,69 @@ export declare class SubmissionDispositionError extends Error {
23
24
  readonly status: "failed" | "withdrawn";
24
25
  constructor(snapshot: ResourceResult<Schema["EntryView"]>);
25
26
  }
26
- /** Immutable projection of an authoritative exact-Run read, not an inferred stream result. */
27
+ /** Authoritative exact-Run HTTP evidence, never reconstructed from Items or preview. */
27
28
  export declare class RunOutcome {
28
29
  readonly run: RunHandle;
29
30
  readonly snapshot: ResourceResult<Schema["RunView"]>;
30
31
  constructor(run: RunHandle, snapshot: ResourceResult<Schema["RunView"]>);
31
32
  get status(): "failed" | "waiting" | "completed" | "running" | "cancelled" | "accepted";
32
33
  get output(): unknown;
34
+ get text(): string | undefined;
33
35
  get pending(): {
34
36
  approvals: components["schemas"]["PendingCall"][];
35
37
  calls: components["schemas"]["PendingCall"][];
38
+ desktop_control_id: string;
39
+ } | {
40
+ approvals: components["schemas"]["PendingCall"][];
41
+ calls: components["schemas"]["PendingCall"][];
36
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
+ tool_call_id: components["schemas"]["ToolCallId"];
51
+ tool_name: string;
52
+ }[];
53
+ get pendingCalls(): {
54
+ arguments: {
55
+ [key: string]: components["schemas"]["JsonValue"];
56
+ };
57
+ presentation?: {
58
+ [key: string]: components["schemas"]["JsonValue"];
59
+ } | null;
60
+ tool_call_id: components["schemas"]["ToolCallId"];
61
+ tool_name: string;
62
+ }[];
37
63
  get failure(): {
38
64
  code: string;
39
65
  message: string;
40
66
  } | null;
67
+ get threadId(): string;
68
+ get runId(): string;
41
69
  }
42
70
  export declare class RunHandle {
43
71
  readonly id: string;
44
72
  private readonly resources;
45
73
  private readonly shutdown;
46
- /** Original resume receipt when this handle was returned from resume(). */
47
- readonly receipt?: ResourceResult<Schema["RunView"]> | undefined;
48
- constructor(id: string, resources: ServiceResources, shutdown: AbortSignal,
49
- /** Original resume receipt when this handle was returned from resume(). */
50
- receipt?: ResourceResult<Schema["RunView"]> | undefined);
74
+ constructor(id: string, resources: ServiceResources, shutdown: AbortSignal);
51
75
  get(options?: {
52
76
  signal?: AbortSignal;
53
- }): Promise<ResourceResult<{
54
- agent_id: string;
55
- agent_revision_id: string;
56
- attempts: number;
57
- cancel_requested_at: string | null;
58
- created_at: string;
59
- current_attempt_id: string | null;
60
- environment_mounts: components["schemas"]["EnvironmentMount"][];
61
- failure: components["schemas"]["Failure"] | null;
62
- id: string;
63
- input?: {
64
- [key: string]: components["schemas"]["JsonValue"];
65
- } | null;
66
- labels: {
67
- [key: string]: string;
68
- };
69
- lineage: components["schemas"]["Lineage"];
70
- max_attempts: number;
71
- memory_mounts: components["schemas"]["MemoryMount"][];
72
- options: components["schemas"]["RunOptions-Output"];
73
- output: components["schemas"]["JsonValue"] | null;
74
- parent_run_id: string | null;
75
- pending: components["schemas"]["Pending"] | null;
76
- principal_id: string;
77
- resume: components["schemas"]["Resume"] | null;
78
- resumed_by_id: string | null;
79
- revision_selection: "pinned" | "default" | "inherited";
80
- sealed_at: string | null;
81
- session_id: string;
82
- source_entry_id: string | null;
83
- started_at: string | null;
84
- status: components["schemas"]["RunStatus"];
85
- thread_id: string;
86
- trigger: components["schemas"]["Trigger"];
87
- updated_at: string;
88
- usage_at_seal: {
89
- [key: string]: components["schemas"]["JsonValue"];
90
- } | null;
91
- version: number;
92
- wait_reason: components["schemas"]["WaitReason"] | null;
93
- workspace_id: string;
94
- }>>;
95
- /** Observe only this Run; waiting/failed/cancelled are distinct from completed. */
96
- wait(options?: WaitOptions): Promise<RunOutcome>;
97
- /** Committed Run Items; stream deltas are not a replacement for this readback. */
98
- items(options?: {
99
- signal?: AbortSignal;
100
- }): Promise<ResourceResult<{
77
+ }): Promise<ResourceResult<Schema["RunView"]>>;
78
+ observe(options?: WaitOptions): Interaction;
79
+ result(options?: WaitOptions): Promise<RunOutcome>;
80
+ items(options?: Parameters<RunsRunIdItemsResource["get"]>[0]): Promise<ResourceResult<{
81
+ complete: boolean;
82
+ items: (components["schemas"]["ItemSummary"] | components["schemas"]["Item"])[];
83
+ next_after?: number | null;
84
+ next_before?: number | null;
85
+ run: components["schemas"]["RunSummary"];
86
+ view: "compact" | "detailed";
87
+ } | {
101
88
  complete: boolean;
102
- dropped: number;
103
89
  items: components["schemas"]["Item"][];
104
- position: string | null;
105
- resume_after?: string | null;
106
90
  run: components["schemas"]["RunView"];
107
91
  }>>;
108
92
  interrupt(options?: {
@@ -111,6 +95,7 @@ export declare class RunHandle {
111
95
  agent_id: string;
112
96
  agent_revision_id: string;
113
97
  attempts: number;
98
+ browser_binding?: components["schemas"]["BrowserBinding"] | null;
114
99
  cancel_requested_at: string | null;
115
100
  created_at: string;
116
101
  current_attempt_id: string | null;
@@ -125,15 +110,16 @@ export declare class RunHandle {
125
110
  };
126
111
  lineage: components["schemas"]["Lineage"];
127
112
  max_attempts: number;
128
- memory_mounts: components["schemas"]["MemoryMount"][];
113
+ memory_mounts: (components["schemas"]["MemoryMount"] | components["schemas"]["FrozenMemoryMount"])[];
129
114
  options: components["schemas"]["RunOptions-Output"];
130
115
  output: components["schemas"]["JsonValue"] | null;
131
116
  parent_run_id: string | null;
132
- pending: components["schemas"]["Pending"] | null;
117
+ pending: components["schemas"]["Pending"] | components["schemas"]["HistoricalDesktopPending"] | null;
133
118
  principal_id: string;
134
119
  resume: components["schemas"]["Resume"] | null;
135
120
  resumed_by_id: string | null;
136
121
  revision_selection: "pinned" | "default" | "inherited";
122
+ schedule_origin?: components["schemas"]["ScheduleOrigin"] | null;
137
123
  sealed_at: string | null;
138
124
  session_id: string;
139
125
  source_entry_id: string | null;
@@ -149,23 +135,21 @@ export declare class RunHandle {
149
135
  wait_reason: components["schemas"]["WaitReason"] | null;
150
136
  workspace_id: string;
151
137
  }>>;
152
- /** Submit the complete pending results and optional input as one successor intent. */
153
- resume(request: Schema["Resume"], options: {
154
- idempotencyKey: string;
155
- signal?: AbortSignal;
156
- }): Promise<RunHandle>;
138
+ /** Atomic complete answer map; Service alone validates coverage. Returns the exact successor. */
139
+ resume(answers: ResumeAnswers, options?: ResumeOptions): Promise<Interaction>;
157
140
  }
158
141
  export declare class ThreadHandle {
159
142
  readonly id: string;
160
143
  private readonly resources;
161
- constructor(id: string, resources: ServiceResources);
144
+ private readonly shutdown;
145
+ constructor(id: string, resources: ServiceResources, shutdown: AbortSignal);
162
146
  get(options?: {
163
147
  signal?: AbortSignal;
164
148
  }): Promise<ResourceResult<{
165
149
  archived_at: string | null;
166
150
  created_at: string;
167
151
  current_run_id: string | null;
168
- head_run_id: string | null;
152
+ execution?: components["schemas"]["ExecutionOverride"] | null;
169
153
  id: string;
170
154
  labels: {
171
155
  [key: string]: string;
@@ -176,11 +160,12 @@ export declare class ThreadHandle {
176
160
  [key: string]: string;
177
161
  };
178
162
  };
179
- message_history: components["schemas"]["MessageHistory"];
180
163
  origin: "new" | "fork" | "child";
181
164
  origin_run_id: string | null;
182
165
  origin_thread_id: string | null;
183
166
  origin_tool_call_id: string | null;
167
+ purpose?: "conversation" | "memory_organization";
168
+ schedule_occurrence_id?: string | null;
184
169
  session_id: string;
185
170
  subagent: string | null;
186
171
  updated_at: string;
@@ -193,62 +178,65 @@ export declare class EntryHandle {
193
178
  readonly id: string;
194
179
  readonly threadId: string;
195
180
  private readonly resources;
196
- constructor(id: string, threadId: string, resources: ServiceResources);
181
+ private readonly shutdown;
182
+ constructor(id: string, threadId: string, resources: ServiceResources, shutdown: AbortSignal);
197
183
  get(options?: {
198
184
  signal?: AbortSignal;
199
- }): Promise<ResourceResult<{
200
- agent_id: string | null;
201
- agent_revision_id: string | null;
202
- assigned_run_id: string | null;
203
- child_run_id: string | null;
204
- created_at: string;
205
- delivery: components["schemas"]["Delivery"];
206
- failure: components["schemas"]["Failure"] | null;
207
- finished_at: string | null;
208
- id: string;
209
- incorporated_checkpoint_seq: number | null;
210
- kind: "message" | "child_result";
211
- options: components["schemas"]["RunOptions-Output"];
212
- origin_run_id: string | null;
213
- payload: {
214
- [key: string]: components["schemas"]["JsonValue"];
215
- };
216
- position: number;
217
- principal_id: string;
218
- status: components["schemas"]["EntryStatus"];
219
- thread_id: string;
220
- }>>;
185
+ }): Promise<ResourceResult<Schema["EntryView"]>>;
186
+ /** Recover only an identity, without I/O or a fabricated receipt. */
187
+ interaction(options?: WaitOptions): Interaction;
221
188
  }
222
- /** A finite, single-submission interaction. Its result is an exact committed Run read. */
189
+ /** One finite exact-bound observation, shared by submission, resume and identity recovery. */
223
190
  export declare class Interaction implements AsyncIterable<ThreadEvent> {
224
- private readonly interactionResources;
191
+ private readonly resources;
225
192
  private readonly shutdown;
226
193
  private readonly invocationSignal?;
227
- readonly receipt: ResourceResult<Schema["Submitted"]>;
228
- readonly thread: ThreadHandle;
229
- readonly entry: EntryHandle;
230
- readonly run: RunHandle | null;
231
- private readonly observer;
232
- private readonly observationAbort;
194
+ readonly receipt?: Receipt | undefined;
195
+ private readonly initialOptions;
196
+ readonly identity: InteractionIdentity;
197
+ readonly receiptRun: RunHandle | null;
198
+ readonly entry: EntryHandle | null;
199
+ private threadHandle;
200
+ private runHandle;
201
+ private readonly localAbort;
202
+ private watch?;
233
203
  private outcomePromise?;
234
204
  private boundPromise?;
205
+ private reader?;
206
+ private binary?;
235
207
  private streamAbort?;
208
+ private readerClose?;
209
+ private closePromise?;
236
210
  private closed;
237
- private iterated;
238
- constructor(receipt: ResourceResult<Schema["Submitted"]>, interactionResources: ServiceResources, shutdown: AbortSignal, invocationSignal?: AbortSignal | undefined);
239
- /** Result-only usage does not open SSE. The first call fixes observation options. */
211
+ private settled;
212
+ private consumer;
213
+ private rawUsed;
214
+ private previewUsed;
215
+ private previewFailure?;
216
+ constructor(identity: InteractionIdentity, resources: ServiceResources, shutdown: AbortSignal, invocationSignal?: AbortSignal | undefined, receipt?: Receipt | undefined, initialOptions?: WaitOptions);
217
+ get thread(): ThreadHandle | null;
218
+ /** Authoritative only after consumed Entry binding or a validated exact Run read. */
219
+ get run(): RunHandle | null;
220
+ get idempotencyKey(): string | undefined;
221
+ /** No SSE for result-only callers. First observation fixes one deadline for all consumers. */
240
222
  result(options?: WaitOptions): Promise<RunOutcome>;
241
- /** Stop local observation and streaming; never interrupt the remote Run. */
242
- close(): void;
223
+ private poll;
224
+ private nextEvent;
225
+ private stopReader;
226
+ private readerCancellation;
227
+ /** Joined local cleanup. Never interrupts or resumes remote execution. */
228
+ close(): Promise<void>;
243
229
  [Symbol.asyncIterator](): AsyncGenerator<ThreadEvent>;
230
+ /** Lazy preview only; interruption is sticky and leaves result/sequential raw access open. */
231
+ textStream(): AsyncGenerator<string>;
244
232
  }
245
233
  export declare class AgentHandle {
246
234
  readonly id: string;
247
235
  private readonly resources;
248
236
  private readonly shutdown;
249
237
  constructor(id: string, resources: ServiceResources, shutdown: AbortSignal);
250
- start(input: MessageInput, options: StartOptions): Promise<Interaction>;
251
- send(threadId: string, input: MessageInput, options: SendOptions): Promise<Interaction>;
238
+ start(input: MessageInput, options?: StartOptions): Promise<Interaction>;
239
+ send(threadId: string, input: MessageInput, options?: SendOptions): Promise<Interaction>;
252
240
  }
253
241
  export declare class AgentCollection {
254
242
  private readonly resources;
@@ -258,7 +246,8 @@ export declare class AgentCollection {
258
246
  }
259
247
  export declare class ThreadCollection {
260
248
  private readonly resources;
261
- constructor(resources: ServiceResources);
249
+ private readonly shutdown;
250
+ constructor(resources: ServiceResources, shutdown: AbortSignal);
262
251
  ref(id: string): ThreadHandle;
263
252
  }
264
253
  export declare class RunCollection {
@@ -267,5 +256,4 @@ export declare class RunCollection {
267
256
  constructor(resources: ServiceResources, shutdown: AbortSignal);
268
257
  ref(id: string): RunHandle;
269
258
  }
270
- export {};
271
259
  //# sourceMappingURL=semantic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../src/semantic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE5E,KAAK,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;AACpC,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAC7D,6EAA6E;AAC7E,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAC7E,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAC1E,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,4FAA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