@converge.ai/a13n 0.0.93 → 0.0.95

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 +3402 -1197
  22. package/dist/resources/generated.d.ts.map +1 -1
  23. package/dist/resources/generated.js +2170 -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 +14542 -6101
  30. package/dist/schema.d.ts.map +1 -1
  31. package/dist/semantic.d.ts +102 -118
  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 +1773 -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 +128 -0
  40. package/dist/session-stream-validation.d.ts.map +1 -0
  41. package/dist/session-stream-validation.js +29384 -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 +117 -0
  64. package/dist/workspace-scope.js.map +1 -1
  65. package/openapi.json +32811 -10467
  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,66 @@ 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 | null;
36
39
  } | null;
40
+ get pendingApprovals(): {
41
+ arguments: {
42
+ [key: string]: components["schemas"]["JsonValue"];
43
+ };
44
+ presentation?: {
45
+ [key: string]: components["schemas"]["JsonValue"];
46
+ } | null;
47
+ tool_call_id: components["schemas"]["ToolCallId"];
48
+ tool_name: string;
49
+ }[];
50
+ get pendingCalls(): {
51
+ arguments: {
52
+ [key: string]: components["schemas"]["JsonValue"];
53
+ };
54
+ presentation?: {
55
+ [key: string]: components["schemas"]["JsonValue"];
56
+ } | null;
57
+ tool_call_id: components["schemas"]["ToolCallId"];
58
+ tool_name: string;
59
+ }[];
37
60
  get failure(): {
38
61
  code: string;
39
62
  message: string;
40
63
  } | null;
64
+ get threadId(): string;
65
+ get runId(): string;
41
66
  }
42
67
  export declare class RunHandle {
43
68
  readonly id: string;
44
69
  private readonly resources;
45
70
  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);
71
+ constructor(id: string, resources: ServiceResources, shutdown: AbortSignal);
51
72
  get(options?: {
52
73
  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<{
74
+ }): Promise<ResourceResult<Schema["RunView"]>>;
75
+ observe(options?: WaitOptions): Interaction;
76
+ result(options?: WaitOptions): Promise<RunOutcome>;
77
+ items(options?: Parameters<RunsRunIdItemsResource["get"]>[0]): Promise<ResourceResult<{
78
+ complete: boolean;
79
+ items: (components["schemas"]["ItemSummary"] | components["schemas"]["Item"])[];
80
+ next_after?: number | null;
81
+ next_before?: number | null;
82
+ run: components["schemas"]["RunSummary"];
83
+ view: "compact" | "detailed";
84
+ } | {
101
85
  complete: boolean;
102
- dropped: number;
103
86
  items: components["schemas"]["Item"][];
104
- position: string | null;
105
- resume_after?: string | null;
106
87
  run: components["schemas"]["RunView"];
107
88
  }>>;
108
89
  interrupt(options?: {
@@ -125,7 +106,7 @@ export declare class RunHandle {
125
106
  };
126
107
  lineage: components["schemas"]["Lineage"];
127
108
  max_attempts: number;
128
- memory_mounts: components["schemas"]["MemoryMount"][];
109
+ memory_mounts: (components["schemas"]["MemoryMount"] | components["schemas"]["FrozenMemoryMount"])[];
129
110
  options: components["schemas"]["RunOptions-Output"];
130
111
  output: components["schemas"]["JsonValue"] | null;
131
112
  parent_run_id: string | null;
@@ -134,6 +115,7 @@ export declare class RunHandle {
134
115
  resume: components["schemas"]["Resume"] | null;
135
116
  resumed_by_id: string | null;
136
117
  revision_selection: "pinned" | "default" | "inherited";
118
+ schedule_origin?: components["schemas"]["ScheduleOrigin"] | null;
137
119
  sealed_at: string | null;
138
120
  session_id: string;
139
121
  source_entry_id: string | null;
@@ -149,23 +131,21 @@ export declare class RunHandle {
149
131
  wait_reason: components["schemas"]["WaitReason"] | null;
150
132
  workspace_id: string;
151
133
  }>>;
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>;
134
+ /** Atomic complete answer map; Service alone validates coverage. Returns the exact successor. */
135
+ resume(answers: ResumeAnswers, options?: ResumeOptions): Promise<Interaction>;
157
136
  }
158
137
  export declare class ThreadHandle {
159
138
  readonly id: string;
160
139
  private readonly resources;
161
- constructor(id: string, resources: ServiceResources);
140
+ private readonly shutdown;
141
+ constructor(id: string, resources: ServiceResources, shutdown: AbortSignal);
162
142
  get(options?: {
163
143
  signal?: AbortSignal;
164
144
  }): Promise<ResourceResult<{
165
145
  archived_at: string | null;
166
146
  created_at: string;
167
147
  current_run_id: string | null;
168
- head_run_id: string | null;
148
+ execution?: components["schemas"]["ExecutionOverride"] | null;
169
149
  id: string;
170
150
  labels: {
171
151
  [key: string]: string;
@@ -176,11 +156,12 @@ export declare class ThreadHandle {
176
156
  [key: string]: string;
177
157
  };
178
158
  };
179
- message_history: components["schemas"]["MessageHistory"];
180
159
  origin: "new" | "fork" | "child";
181
160
  origin_run_id: string | null;
182
161
  origin_thread_id: string | null;
183
162
  origin_tool_call_id: string | null;
163
+ purpose?: "conversation" | "memory_organization";
164
+ schedule_occurrence_id?: string | null;
184
165
  session_id: string;
185
166
  subagent: string | null;
186
167
  updated_at: string;
@@ -193,62 +174,65 @@ export declare class EntryHandle {
193
174
  readonly id: string;
194
175
  readonly threadId: string;
195
176
  private readonly resources;
196
- constructor(id: string, threadId: string, resources: ServiceResources);
177
+ private readonly shutdown;
178
+ constructor(id: string, threadId: string, resources: ServiceResources, shutdown: AbortSignal);
197
179
  get(options?: {
198
180
  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
- }>>;
181
+ }): Promise<ResourceResult<Schema["EntryView"]>>;
182
+ /** Recover only an identity, without I/O or a fabricated receipt. */
183
+ interaction(options?: WaitOptions): Interaction;
221
184
  }
222
- /** A finite, single-submission interaction. Its result is an exact committed Run read. */
185
+ /** One finite exact-bound observation, shared by submission, resume and identity recovery. */
223
186
  export declare class Interaction implements AsyncIterable<ThreadEvent> {
224
- private readonly interactionResources;
187
+ private readonly resources;
225
188
  private readonly shutdown;
226
189
  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;
190
+ readonly receipt?: Receipt | undefined;
191
+ private readonly initialOptions;
192
+ readonly identity: InteractionIdentity;
193
+ readonly receiptRun: RunHandle | null;
194
+ readonly entry: EntryHandle | null;
195
+ private threadHandle;
196
+ private runHandle;
197
+ private readonly localAbort;
198
+ private watch?;
233
199
  private outcomePromise?;
234
200
  private boundPromise?;
201
+ private reader?;
202
+ private binary?;
235
203
  private streamAbort?;
204
+ private readerClose?;
205
+ private closePromise?;
236
206
  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. */
207
+ private settled;
208
+ private consumer;
209
+ private rawUsed;
210
+ private previewUsed;
211
+ private previewFailure?;
212
+ constructor(identity: InteractionIdentity, resources: ServiceResources, shutdown: AbortSignal, invocationSignal?: AbortSignal | undefined, receipt?: Receipt | undefined, initialOptions?: WaitOptions);
213
+ get thread(): ThreadHandle | null;
214
+ /** Authoritative only after consumed Entry binding or a validated exact Run read. */
215
+ get run(): RunHandle | null;
216
+ get idempotencyKey(): string | undefined;
217
+ /** No SSE for result-only callers. First observation fixes one deadline for all consumers. */
240
218
  result(options?: WaitOptions): Promise<RunOutcome>;
241
- /** Stop local observation and streaming; never interrupt the remote Run. */
242
- close(): void;
219
+ private poll;
220
+ private nextEvent;
221
+ private stopReader;
222
+ private readerCancellation;
223
+ /** Joined local cleanup. Never interrupts or resumes remote execution. */
224
+ close(): Promise<void>;
243
225
  [Symbol.asyncIterator](): AsyncGenerator<ThreadEvent>;
226
+ /** Lazy preview only; interruption is sticky and leaves result/sequential raw access open. */
227
+ textStream(): AsyncGenerator<string>;
244
228
  }
245
229
  export declare class AgentHandle {
246
230
  readonly id: string;
247
231
  private readonly resources;
248
232
  private readonly shutdown;
249
233
  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>;
234
+ start(input: MessageInput, options?: StartOptions): Promise<Interaction>;
235
+ send(threadId: string, input: MessageInput, options?: SendOptions): Promise<Interaction>;
252
236
  }
253
237
  export declare class AgentCollection {
254
238
  private readonly resources;
@@ -258,7 +242,8 @@ export declare class AgentCollection {
258
242
  }
259
243
  export declare class ThreadCollection {
260
244
  private readonly resources;
261
- constructor(resources: ServiceResources);
245
+ private readonly shutdown;
246
+ constructor(resources: ServiceResources, shutdown: AbortSignal);
262
247
  ref(id: string): ThreadHandle;
263
248
  }
264
249
  export declare class RunCollection {
@@ -267,5 +252,4 @@ export declare class RunCollection {
267
252
  constructor(resources: ServiceResources, shutdown: AbortSignal);
268
253
  ref(id: string): RunHandle;
269
254
  }
270
- export {};
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