@sixb/server 0.1.25 → 0.2.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.
Files changed (135) hide show
  1. package/README.md +1 -1
  2. package/dist/auth/public-routes.d.ts.map +1 -1
  3. package/dist/auth/run-token.d.ts +28 -0
  4. package/dist/auth/run-token.d.ts.map +1 -0
  5. package/dist/auth/scope.d.ts +11 -13
  6. package/dist/auth/scope.d.ts.map +1 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +4999 -4151
  10. package/dist/index.js.map +47 -43
  11. package/dist/registerRoutes.d.ts.map +1 -1
  12. package/dist/routes/actions.d.ts +1 -1
  13. package/dist/routes/agent-approval-gate.d.ts +7 -4
  14. package/dist/routes/agent-approval-gate.d.ts.map +1 -1
  15. package/dist/routes/agent-approvals.d.ts +14 -5
  16. package/dist/routes/agent-approvals.d.ts.map +1 -1
  17. package/dist/routes/agent-children.d.ts +2 -2
  18. package/dist/routes/agent-computers.d.ts +338 -0
  19. package/dist/routes/agent-computers.d.ts.map +1 -0
  20. package/dist/routes/agent-runners.d.ts +74 -0
  21. package/dist/routes/agent-runners.d.ts.map +1 -0
  22. package/dist/routes/agents.d.ts +250 -16
  23. package/dist/routes/agents.d.ts.map +1 -1
  24. package/dist/routes/ai-accounting.d.ts.map +1 -1
  25. package/dist/routes/artifacts.d.ts +5 -28
  26. package/dist/routes/artifacts.d.ts.map +1 -1
  27. package/dist/routes/auth.d.ts +10 -1
  28. package/dist/routes/auth.d.ts.map +1 -1
  29. package/dist/routes/datasets.d.ts +93 -17
  30. package/dist/routes/datasets.d.ts.map +1 -1
  31. package/dist/routes/events.d.ts +1 -1
  32. package/dist/routes/links.d.ts +121 -81
  33. package/dist/routes/links.d.ts.map +1 -1
  34. package/dist/routes/logs.d.ts +3 -3
  35. package/dist/routes/objects.d.ts +149 -58
  36. package/dist/routes/objects.d.ts.map +1 -1
  37. package/dist/routes/observed-agent-threads.d.ts +25 -4
  38. package/dist/routes/observed-agent-threads.d.ts.map +1 -1
  39. package/dist/routes/pipelines.d.ts +2 -2
  40. package/dist/routes/pipelines.d.ts.map +1 -1
  41. package/dist/routes/projections.d.ts +124 -122
  42. package/dist/routes/projections.d.ts.map +1 -1
  43. package/dist/routes/rules.d.ts +2 -2
  44. package/dist/routes/shared-access.d.ts +2 -2
  45. package/dist/routes/syncs.d.ts +34 -34
  46. package/dist/routes/syncs.d.ts.map +1 -1
  47. package/dist/routes/telemetry.d.ts +0 -50
  48. package/dist/routes/telemetry.d.ts.map +1 -1
  49. package/dist/routes/users.d.ts +1 -0
  50. package/dist/routes/users.d.ts.map +1 -1
  51. package/dist/routes/webhook-runs.d.ts +1 -1
  52. package/dist/routes/workflows.d.ts +25 -14
  53. package/dist/routes/workflows.d.ts.map +1 -1
  54. package/dist/routes/ws/agents.d.ts +4 -1
  55. package/dist/routes/ws/agents.d.ts.map +1 -1
  56. package/dist/routes/ws/logs.d.ts +10 -10
  57. package/dist/schemas/actions.d.ts +3 -3
  58. package/dist/schemas/activity.d.ts +4 -4
  59. package/dist/schemas/agent-approvals.d.ts +21 -21
  60. package/dist/schemas/agents.d.ts +819 -88
  61. package/dist/schemas/agents.d.ts.map +1 -1
  62. package/dist/schemas/ai-accounting.d.ts +1114 -6
  63. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  64. package/dist/schemas/auth.d.ts +49 -2
  65. package/dist/schemas/auth.d.ts.map +1 -1
  66. package/dist/schemas/datasets.d.ts +303 -60
  67. package/dist/schemas/datasets.d.ts.map +1 -1
  68. package/dist/schemas/event-payloads.d.ts +6 -6
  69. package/dist/schemas/events.d.ts +8 -8
  70. package/dist/schemas/lineage.d.ts +1272 -0
  71. package/dist/schemas/lineage.d.ts.map +1 -0
  72. package/dist/schemas/links.d.ts +4 -27
  73. package/dist/schemas/links.d.ts.map +1 -1
  74. package/dist/schemas/logs.d.ts +22 -22
  75. package/dist/schemas/objects.d.ts +7 -26
  76. package/dist/schemas/objects.d.ts.map +1 -1
  77. package/dist/schemas/pipelines.d.ts +12 -12
  78. package/dist/schemas/projections.d.ts +747 -733
  79. package/dist/schemas/projections.d.ts.map +1 -1
  80. package/dist/schemas/rules.d.ts +4 -4
  81. package/dist/schemas/shared-access.d.ts +2 -2
  82. package/dist/schemas/syncs.d.ts +24 -24
  83. package/dist/schemas/telemetry.d.ts +0 -13
  84. package/dist/schemas/telemetry.d.ts.map +1 -1
  85. package/dist/schemas/users.d.ts +8 -0
  86. package/dist/schemas/users.d.ts.map +1 -1
  87. package/dist/schemas/webhook-runs.d.ts +2 -2
  88. package/dist/schemas/workflows.d.ts +133 -44
  89. package/dist/schemas/workflows.d.ts.map +1 -1
  90. package/dist/server.d.ts +5 -0
  91. package/dist/server.d.ts.map +1 -1
  92. package/dist/utils/request-body.d.ts +5 -0
  93. package/dist/utils/request-body.d.ts.map +1 -1
  94. package/dist/utils/request-timing.d.ts +18 -0
  95. package/dist/utils/request-timing.d.ts.map +1 -0
  96. package/package.json +7 -7
  97. package/src/auth/public-routes.ts +0 -6
  98. package/src/auth/run-token.ts +327 -0
  99. package/src/auth/scope.ts +16 -37
  100. package/src/index.ts +1 -0
  101. package/src/registerRoutes.ts +4 -2
  102. package/src/routes/agent-approval-gate.ts +40 -14
  103. package/src/routes/agent-approvals.ts +3 -3
  104. package/src/routes/agent-computers.ts +348 -0
  105. package/src/routes/agent-runners.ts +205 -0
  106. package/src/routes/agents.ts +193 -26
  107. package/src/routes/ai-accounting.ts +149 -12
  108. package/src/routes/artifacts.ts +55 -11
  109. package/src/routes/auth.ts +24 -2
  110. package/src/routes/datasets.ts +60 -5
  111. package/src/routes/links.ts +43 -76
  112. package/src/routes/objects.ts +49 -42
  113. package/src/routes/observed-agent-threads.ts +2 -2
  114. package/src/routes/pipelines.ts +5 -0
  115. package/src/routes/syncs.ts +4 -0
  116. package/src/routes/telemetry.ts +1 -42
  117. package/src/routes/users.ts +15 -2
  118. package/src/routes/ws/agents.ts +10 -1
  119. package/src/schemas/agents.ts +131 -1
  120. package/src/schemas/ai-accounting.ts +78 -15
  121. package/src/schemas/artifacts.ts +1 -1
  122. package/src/schemas/auth.ts +19 -0
  123. package/src/schemas/datasets.ts +36 -0
  124. package/src/schemas/lineage.ts +115 -0
  125. package/src/schemas/links.ts +3 -11
  126. package/src/schemas/objects.ts +6 -10
  127. package/src/schemas/projections.ts +2 -0
  128. package/src/schemas/telemetry.ts +0 -6
  129. package/src/schemas/users.ts +6 -0
  130. package/src/server.ts +53 -15
  131. package/src/utils/request-body.ts +10 -4
  132. package/src/utils/request-timing.ts +136 -0
  133. package/dist/routes/agent-api-gateway.d.ts +0 -4
  134. package/dist/routes/agent-api-gateway.d.ts.map +0 -1
  135. package/src/routes/agent-api-gateway.ts +0 -404
@@ -2,11 +2,15 @@ import { type AgentRequestErrorCode, type AgentRunView, type AgentThreadView, ty
2
2
  import { type AgentStorage, type AgentThreadRecord, type Principal } from "@sixb/core/storage";
3
3
  import type { Elysia } from "elysia";
4
4
  import { z } from "zod";
5
+ import { requireRequestSixb } from "../auth/scope";
5
6
  import { AgentMessagesQuerySchema, AgentRunSchema, AgentThreadSchema } from "../schemas/agents";
6
7
  import { handleRouteError } from "../utils/http";
7
- /** Threads as the API returns them, their owner and participants named by their accounts. */
8
- export declare function serializeThreads(host: SixbHostView, threads: readonly AgentThreadView[]): Promise<ReturnType<typeof AgentThreadSchema.parse>[]>;
9
- export declare function serializeThread(host: SixbHostView, thread: AgentThreadView): Promise<ReturnType<typeof AgentThreadSchema.parse>>;
8
+ /**
9
+ * Threads as the API returns them to `viewer`, their owner and participants named by their
10
+ * accounts. Where a computer's thread runs, and whether `sixb` is open there, is its owner's alone.
11
+ */
12
+ export declare function serializeThreads(host: SixbHostView, threads: readonly AgentThreadView[], viewer: Principal): Promise<ReturnType<typeof AgentThreadSchema.parse>[]>;
13
+ export declare function serializeThread(host: SixbHostView, thread: AgentThreadView, viewer: Principal): Promise<ReturnType<typeof AgentThreadSchema.parse>>;
10
14
  export declare function serializeAgentRun(run: AgentRunView): ReturnType<typeof AgentRunSchema.parse>;
11
15
  export declare function handleAgentRouteError(error: unknown, set: {
12
16
  status?: number | string;
@@ -33,7 +37,7 @@ export declare function agentMessageFileContentResponse(host: SixbHostView, cont
33
37
  error: string;
34
38
  }>;
35
39
  /** A page of a thread's messages, with their runs' diagnostics and compactions, and authors. */
36
- export declare function readThreadMessages(host: SixbHostView, storage: AgentStorage, thread: AgentThreadRecord, query: z.infer<typeof AgentMessagesQuerySchema>): Promise<{
40
+ export declare function readThreadMessages(host: SixbHostView, storage: AgentStorage, thread: Pick<AgentThreadRecord, "id">, query: z.infer<typeof AgentMessagesQuerySchema>): Promise<{
37
41
  messages: {
38
42
  projectId: string;
39
43
  id: string;
@@ -92,6 +96,17 @@ export declare function readThreadMessages(host: SixbHostView, storage: AgentSto
92
96
  providerMetadata?: import("../schemas/common").JsonValue | undefined;
93
97
  dynamic?: boolean | undefined;
94
98
  providerExecuted?: boolean | undefined;
99
+ outputFile?: {
100
+ path: string;
101
+ fileRef: {
102
+ blobId: string;
103
+ digest: string;
104
+ sizeBytes: number;
105
+ fileName?: string | undefined;
106
+ mediaType?: string | undefined;
107
+ logicalPath?: string | undefined;
108
+ };
109
+ } | undefined;
95
110
  } | {
96
111
  type: "tool-call";
97
112
  input: import("../schemas/common").JsonValue;
@@ -139,7 +154,7 @@ export declare function readThreadMessages(host: SixbHostView, storage: AgentSto
139
154
  } | {
140
155
  error: {
141
156
  at: string;
142
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
157
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
143
158
  message: string;
144
159
  retryable: boolean;
145
160
  details?: import("../schemas/common").JsonValue | undefined;
@@ -173,6 +188,7 @@ export declare function readThreadMessages(host: SixbHostView, storage: AgentSto
173
188
  type: "user" | "serviceAccount" | "system";
174
189
  } | undefined;
175
190
  compaction?: {
191
+ reason: "threshold" | "overflow";
176
192
  createdAt: string;
177
193
  checkpointId: string;
178
194
  summary: string;
@@ -185,6 +201,62 @@ export declare function readThreadMessages(host: SixbHostView, storage: AgentSto
185
201
  hasMore: boolean;
186
202
  total: number;
187
203
  }>;
204
+ export declare function principalKey(principal: Principal): string;
205
+ /** A thread as reading it answers: with the permission mode its reader shows. */
206
+ export declare function serializeThreadRead(host: SixbHostView, sixb: ReturnType<typeof requireRequestSixb>, thread: AgentThreadView): Promise<{
207
+ approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
208
+ approvalModeSource?: import("@sixb/core").AgentApprovalModeSource | undefined;
209
+ status: "active" | "archived";
210
+ projectId: string;
211
+ id: string;
212
+ kind: "conversation" | "subagent";
213
+ createdAt: string;
214
+ ownerPrincipal: {
215
+ id: string;
216
+ type: "user" | "serviceAccount" | "system";
217
+ };
218
+ owner: {
219
+ id: string;
220
+ type: "user" | "serviceAccount" | "system";
221
+ displayName?: string | undefined;
222
+ };
223
+ participants: {
224
+ principal: {
225
+ id: string;
226
+ type: "user";
227
+ displayName?: string | undefined;
228
+ };
229
+ addedAt: string;
230
+ addedBy: {
231
+ id: string;
232
+ type: "user" | "serviceAccount" | "system";
233
+ };
234
+ }[];
235
+ activeRunId: string | null;
236
+ messageCount: number;
237
+ updatedAt: string;
238
+ title?: string | undefined;
239
+ computer?: {
240
+ id: string;
241
+ name: string;
242
+ folder: string;
243
+ online: boolean;
244
+ } | undefined;
245
+ runsOn?: "computer" | undefined;
246
+ sandboxState?: {
247
+ status: "unavailable" | "new" | "busy" | "ready" | "blocked";
248
+ name: string;
249
+ initialized: boolean;
250
+ } | undefined;
251
+ parent?: {
252
+ threadId: string;
253
+ key: string;
254
+ spawnedBy: string;
255
+ } | undefined;
256
+ sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
257
+ movedAt?: string | undefined;
258
+ lastMessageAt?: string | undefined;
259
+ }>;
188
260
  export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
189
261
  decorator: {};
190
262
  store: {};
@@ -283,6 +355,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
283
355
  title?: string | undefined;
284
356
  approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
285
357
  approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
358
+ computer?: {
359
+ id: string;
360
+ name: string;
361
+ folder: string;
362
+ online: boolean;
363
+ } | undefined;
364
+ runsOn?: "computer" | undefined;
286
365
  sandboxState?: {
287
366
  status: "unavailable" | "new" | "busy" | "ready" | "blocked";
288
367
  name: string;
@@ -294,6 +373,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
294
373
  spawnedBy: string;
295
374
  } | undefined;
296
375
  sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
376
+ movedAt?: string | undefined;
297
377
  lastMessageAt?: string | undefined;
298
378
  }[];
299
379
  };
@@ -324,6 +404,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
324
404
  title?: string | undefined;
325
405
  threadId?: string | undefined;
326
406
  sandbox?: Record<string, import("../schemas/common").JsonValue> | undefined;
407
+ computer?: {
408
+ id: string;
409
+ name: string;
410
+ folder: string;
411
+ } | undefined;
412
+ runsOn?: "computer" | undefined;
327
413
  };
328
414
  params: {};
329
415
  query: unknown;
@@ -363,6 +449,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
363
449
  title?: string | undefined;
364
450
  approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
365
451
  approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
452
+ computer?: {
453
+ id: string;
454
+ name: string;
455
+ folder: string;
456
+ online: boolean;
457
+ } | undefined;
458
+ runsOn?: "computer" | undefined;
366
459
  sandboxState?: {
367
460
  status: "unavailable" | "new" | "busy" | "ready" | "blocked";
368
461
  name: string;
@@ -374,6 +467,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
374
467
  spawnedBy: string;
375
468
  } | undefined;
376
469
  sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
470
+ movedAt?: string | undefined;
377
471
  lastMessageAt?: string | undefined;
378
472
  };
379
473
  } | {
@@ -428,6 +522,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
428
522
  title?: string | undefined;
429
523
  approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
430
524
  approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
525
+ computer?: {
526
+ id: string;
527
+ name: string;
528
+ folder: string;
529
+ online: boolean;
530
+ } | undefined;
531
+ runsOn?: "computer" | undefined;
431
532
  sandboxState?: {
432
533
  status: "unavailable" | "new" | "busy" | "ready" | "blocked";
433
534
  name: string;
@@ -439,6 +540,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
439
540
  spawnedBy: string;
440
541
  } | undefined;
441
542
  sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
543
+ movedAt?: string | undefined;
442
544
  lastMessageAt?: string | undefined;
443
545
  };
444
546
  };
@@ -500,6 +602,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
500
602
  title?: string | undefined;
501
603
  approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
502
604
  approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
605
+ computer?: {
606
+ id: string;
607
+ name: string;
608
+ folder: string;
609
+ online: boolean;
610
+ } | undefined;
611
+ runsOn?: "computer" | undefined;
503
612
  sandboxState?: {
504
613
  status: "unavailable" | "new" | "busy" | "ready" | "blocked";
505
614
  name: string;
@@ -511,6 +620,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
511
620
  spawnedBy: string;
512
621
  } | undefined;
513
622
  sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
623
+ movedAt?: string | undefined;
514
624
  lastMessageAt?: string | undefined;
515
625
  };
516
626
  404: {
@@ -589,6 +699,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
589
699
  title?: string | undefined;
590
700
  approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
591
701
  approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
702
+ computer?: {
703
+ id: string;
704
+ name: string;
705
+ folder: string;
706
+ online: boolean;
707
+ } | undefined;
708
+ runsOn?: "computer" | undefined;
592
709
  sandboxState?: {
593
710
  status: "unavailable" | "new" | "busy" | "ready" | "blocked";
594
711
  name: string;
@@ -600,6 +717,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
600
717
  spawnedBy: string;
601
718
  } | undefined;
602
719
  sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
720
+ movedAt?: string | undefined;
603
721
  lastMessageAt?: string | undefined;
604
722
  };
605
723
  404: {
@@ -732,6 +850,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
732
850
  title?: string | undefined;
733
851
  approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
734
852
  approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
853
+ computer?: {
854
+ id: string;
855
+ name: string;
856
+ folder: string;
857
+ online: boolean;
858
+ } | undefined;
859
+ runsOn?: "computer" | undefined;
735
860
  sandboxState?: {
736
861
  status: "unavailable" | "new" | "busy" | "ready" | "blocked";
737
862
  name: string;
@@ -743,6 +868,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
743
868
  spawnedBy: string;
744
869
  } | undefined;
745
870
  sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
871
+ movedAt?: string | undefined;
746
872
  lastMessageAt?: string | undefined;
747
873
  };
748
874
  } | {
@@ -799,6 +925,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
799
925
  title?: string | undefined;
800
926
  approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
801
927
  approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
928
+ computer?: {
929
+ id: string;
930
+ name: string;
931
+ folder: string;
932
+ online: boolean;
933
+ } | undefined;
934
+ runsOn?: "computer" | undefined;
802
935
  sandboxState?: {
803
936
  status: "unavailable" | "new" | "busy" | "ready" | "blocked";
804
937
  name: string;
@@ -810,6 +943,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
810
943
  spawnedBy: string;
811
944
  } | undefined;
812
945
  sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
946
+ movedAt?: string | undefined;
813
947
  lastMessageAt?: string | undefined;
814
948
  };
815
949
  };
@@ -877,6 +1011,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
877
1011
  title?: string | undefined;
878
1012
  approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
879
1013
  approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
1014
+ computer?: {
1015
+ id: string;
1016
+ name: string;
1017
+ folder: string;
1018
+ online: boolean;
1019
+ } | undefined;
1020
+ runsOn?: "computer" | undefined;
880
1021
  sandboxState?: {
881
1022
  status: "unavailable" | "new" | "busy" | "ready" | "blocked";
882
1023
  name: string;
@@ -888,6 +1029,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
888
1029
  spawnedBy: string;
889
1030
  } | undefined;
890
1031
  sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
1032
+ movedAt?: string | undefined;
891
1033
  lastMessageAt?: string | undefined;
892
1034
  };
893
1035
  404: {
@@ -999,6 +1141,17 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
999
1141
  providerMetadata?: import("../schemas/common").JsonValue | undefined;
1000
1142
  dynamic?: boolean | undefined;
1001
1143
  providerExecuted?: boolean | undefined;
1144
+ outputFile?: {
1145
+ path: string;
1146
+ fileRef: {
1147
+ blobId: string;
1148
+ digest: string;
1149
+ sizeBytes: number;
1150
+ fileName?: string | undefined;
1151
+ mediaType?: string | undefined;
1152
+ logicalPath?: string | undefined;
1153
+ };
1154
+ } | undefined;
1002
1155
  } | {
1003
1156
  type: "tool-call";
1004
1157
  input: import("../schemas/common").JsonValue;
@@ -1046,7 +1199,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1046
1199
  } | {
1047
1200
  error: {
1048
1201
  at: string;
1049
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
1202
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
1050
1203
  message: string;
1051
1204
  retryable: boolean;
1052
1205
  details?: import("../schemas/common").JsonValue | undefined;
@@ -1080,6 +1233,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1080
1233
  type: "user" | "serviceAccount" | "system";
1081
1234
  } | undefined;
1082
1235
  compaction?: {
1236
+ reason: "threshold" | "overflow";
1083
1237
  createdAt: string;
1084
1238
  checkpointId: string;
1085
1239
  summary: string;
@@ -1263,7 +1417,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1263
1417
  attempt: number;
1264
1418
  triggerMessageId: string;
1265
1419
  streamId: string;
1266
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1420
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1267
1421
  requestedBy?: {
1268
1422
  id: string;
1269
1423
  type: "user" | "serviceAccount";
@@ -1307,6 +1461,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1307
1461
  } | undefined;
1308
1462
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
1309
1463
  parentRunId?: string | undefined;
1464
+ runsOn?: "computer" | undefined;
1310
1465
  diagnostics?: {
1311
1466
  code: "step_limit_reached" | "output_limit_reached";
1312
1467
  message: string;
@@ -1325,6 +1480,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1325
1480
  };
1326
1481
  403: {
1327
1482
  error: string;
1483
+ code?: string | undefined;
1328
1484
  };
1329
1485
  409: {
1330
1486
  error: string;
@@ -1353,7 +1509,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1353
1509
  attempt: number;
1354
1510
  triggerMessageId: string;
1355
1511
  streamId: string;
1356
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1512
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1357
1513
  requestedBy?: {
1358
1514
  id: string;
1359
1515
  type: "user" | "serviceAccount";
@@ -1397,6 +1553,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1397
1553
  } | undefined;
1398
1554
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
1399
1555
  parentRunId?: string | undefined;
1556
+ runsOn?: "computer" | undefined;
1400
1557
  diagnostics?: {
1401
1558
  code: "step_limit_reached" | "output_limit_reached";
1402
1559
  message: string;
@@ -1446,7 +1603,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1446
1603
  attempt: number;
1447
1604
  triggerMessageId: string;
1448
1605
  streamId: string;
1449
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1606
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1450
1607
  requestedBy?: {
1451
1608
  id: string;
1452
1609
  type: "user" | "serviceAccount";
@@ -1490,6 +1647,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1490
1647
  } | undefined;
1491
1648
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
1492
1649
  parentRunId?: string | undefined;
1650
+ runsOn?: "computer" | undefined;
1493
1651
  diagnostics?: {
1494
1652
  code: "step_limit_reached" | "output_limit_reached";
1495
1653
  message: string;
@@ -1532,7 +1690,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1532
1690
  attempt: number;
1533
1691
  triggerMessageId: string;
1534
1692
  streamId: string;
1535
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1693
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1536
1694
  requestedBy?: {
1537
1695
  id: string;
1538
1696
  type: "user" | "serviceAccount";
@@ -1576,6 +1734,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1576
1734
  } | undefined;
1577
1735
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
1578
1736
  parentRunId?: string | undefined;
1737
+ runsOn?: "computer" | undefined;
1579
1738
  diagnostics?: {
1580
1739
  code: "step_limit_reached" | "output_limit_reached";
1581
1740
  message: string;
@@ -1626,7 +1785,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1626
1785
  attempt: number;
1627
1786
  triggerMessageId: string;
1628
1787
  streamId: string;
1629
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1788
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1630
1789
  requestedBy?: {
1631
1790
  id: string;
1632
1791
  type: "user" | "serviceAccount";
@@ -1670,6 +1829,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1670
1829
  } | undefined;
1671
1830
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
1672
1831
  parentRunId?: string | undefined;
1832
+ runsOn?: "computer" | undefined;
1673
1833
  diagnostics?: {
1674
1834
  code: "step_limit_reached" | "output_limit_reached";
1675
1835
  message: string;
@@ -1717,7 +1877,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1717
1877
  attempt: number;
1718
1878
  triggerMessageId: string;
1719
1879
  streamId: string;
1720
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1880
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1721
1881
  requestedBy?: {
1722
1882
  id: string;
1723
1883
  type: "user" | "serviceAccount";
@@ -1761,6 +1921,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1761
1921
  } | undefined;
1762
1922
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
1763
1923
  parentRunId?: string | undefined;
1924
+ runsOn?: "computer" | undefined;
1764
1925
  diagnostics?: {
1765
1926
  code: "step_limit_reached" | "output_limit_reached";
1766
1927
  message: string;
@@ -1786,6 +1947,75 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1786
1947
  };
1787
1948
  };
1788
1949
  };
1950
+ } & {
1951
+ api: {
1952
+ "agent-threads": {
1953
+ ":threadId": {
1954
+ context: {
1955
+ get: {
1956
+ body: unknown;
1957
+ params: {
1958
+ threadId: string;
1959
+ };
1960
+ query: {
1961
+ modelId?: string | undefined;
1962
+ provider?: string | undefined;
1963
+ };
1964
+ headers: unknown;
1965
+ response: {
1966
+ 200: {
1967
+ model: {
1968
+ modelId: string;
1969
+ provider: string;
1970
+ };
1971
+ windowTokens: number;
1972
+ limitTokens: number;
1973
+ parts?: {
1974
+ part: "system" | "ontology" | "tools" | "instructions" | "files" | "summary" | "messages" | "memory" | "skills" | "toolResults";
1975
+ tokens: number;
1976
+ }[] | undefined;
1977
+ usedTokens?: number | undefined;
1978
+ lastCall?: {
1979
+ inputTokens: number;
1980
+ occurredAt: string;
1981
+ outputTokens?: number | undefined;
1982
+ cacheReadInputTokens?: number | undefined;
1983
+ } | undefined;
1984
+ lastCompaction?: {
1985
+ reason: "threshold" | "overflow";
1986
+ createdAt: string;
1987
+ estimatedInputTokensBefore: number;
1988
+ estimatedInputTokensAfter: number;
1989
+ } | undefined;
1990
+ };
1991
+ 404: {
1992
+ error: string;
1993
+ };
1994
+ 409: {
1995
+ error: string;
1996
+ code?: string | undefined;
1997
+ };
1998
+ 400: {
1999
+ error: string;
2000
+ };
2001
+ 501: {
2002
+ error: string;
2003
+ };
2004
+ 422: {
2005
+ type: "validation";
2006
+ on: string;
2007
+ summary?: string;
2008
+ message?: string;
2009
+ found?: unknown;
2010
+ property?: string;
2011
+ expected?: string;
2012
+ };
2013
+ };
2014
+ };
2015
+ };
2016
+ };
2017
+ };
2018
+ };
1789
2019
  } & {
1790
2020
  api: {
1791
2021
  "agent-threads": {
@@ -1815,7 +2045,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1815
2045
  attempt: number;
1816
2046
  triggerMessageId: string;
1817
2047
  streamId: string;
1818
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2048
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1819
2049
  requestedBy?: {
1820
2050
  id: string;
1821
2051
  type: "user" | "serviceAccount";
@@ -1859,6 +2089,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1859
2089
  } | undefined;
1860
2090
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
1861
2091
  parentRunId?: string | undefined;
2092
+ runsOn?: "computer" | undefined;
1862
2093
  diagnostics?: {
1863
2094
  code: "step_limit_reached" | "output_limit_reached";
1864
2095
  message: string;
@@ -1915,7 +2146,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1915
2146
  attempt: number;
1916
2147
  triggerMessageId: string;
1917
2148
  streamId: string;
1918
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2149
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1919
2150
  requestedBy?: {
1920
2151
  id: string;
1921
2152
  type: "user" | "serviceAccount";
@@ -1959,6 +2190,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1959
2190
  } | undefined;
1960
2191
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
1961
2192
  parentRunId?: string | undefined;
2193
+ runsOn?: "computer" | undefined;
1962
2194
  diagnostics?: {
1963
2195
  code: "step_limit_reached" | "output_limit_reached";
1964
2196
  message: string;
@@ -2013,7 +2245,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
2013
2245
  attempt: number;
2014
2246
  triggerMessageId: string;
2015
2247
  streamId: string;
2016
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2248
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2017
2249
  requestedBy?: {
2018
2250
  id: string;
2019
2251
  type: "user" | "serviceAccount";
@@ -2057,6 +2289,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
2057
2289
  } | undefined;
2058
2290
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
2059
2291
  parentRunId?: string | undefined;
2292
+ runsOn?: "computer" | undefined;
2060
2293
  diagnostics?: {
2061
2294
  code: "step_limit_reached" | "output_limit_reached";
2062
2295
  message: string;
@@ -2099,7 +2332,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
2099
2332
  attempt: number;
2100
2333
  triggerMessageId: string;
2101
2334
  streamId: string;
2102
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2335
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2103
2336
  requestedBy?: {
2104
2337
  id: string;
2105
2338
  type: "user" | "serviceAccount";
@@ -2143,6 +2376,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
2143
2376
  } | undefined;
2144
2377
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
2145
2378
  parentRunId?: string | undefined;
2379
+ runsOn?: "computer" | undefined;
2146
2380
  diagnostics?: {
2147
2381
  code: "step_limit_reached" | "output_limit_reached";
2148
2382
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,eAAe,EAEpB,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAInB,OAAO,EAIL,KAAK,YAAY,EAEjB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAY,CAAC,EAAE,MAAM,KAAK,CAAA;AAUjC,OAAO,EAML,wBAAwB,EAKxB,cAAc,EAKd,iBAAiB,EAQlB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EACL,gBAAgB,EAIjB,MAAM,eAAe,CAAA;AAYtB,6FAA6F;AAC7F,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,SAAS,eAAe,EAAE,GAClC,OAAO,CAAC,UAAU,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAu7BvF"}
@@ -1 +1 @@
1
- {"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAW9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwMpC,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+VzE"}
1
+ {"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAahE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiUpC,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6WzE"}