stitchkit 0.68.11 → 0.69.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 (120) hide show
  1. package/README.md +30 -1
  2. package/dist/agent-runtime/coding-tool-contract.d.ts +155 -0
  3. package/dist/agent-runtime/coding-tool-contract.d.ts.map +1 -0
  4. package/dist/agent-runtime/coding-tool-files.d.ts +3 -0
  5. package/dist/agent-runtime/coding-tool-files.d.ts.map +1 -0
  6. package/dist/agent-runtime/coding-tool-paths.d.ts +19 -0
  7. package/dist/agent-runtime/coding-tool-paths.d.ts.map +1 -0
  8. package/dist/agent-runtime/coding-tool-search-patch.d.ts +3 -0
  9. package/dist/agent-runtime/coding-tool-search-patch.d.ts.map +1 -0
  10. package/dist/agent-runtime/coding-tool-shell.d.ts +3 -0
  11. package/dist/agent-runtime/coding-tool-shell.d.ts.map +1 -0
  12. package/dist/agent-runtime/coding-tools.d.ts +17 -0
  13. package/dist/agent-runtime/coding-tools.d.ts.map +1 -0
  14. package/dist/agent-runtime/compaction.d.ts +2 -0
  15. package/dist/agent-runtime/compaction.d.ts.map +1 -1
  16. package/dist/agent-runtime/contained-files.d.ts +31 -0
  17. package/dist/agent-runtime/contained-files.d.ts.map +1 -0
  18. package/dist/agent-runtime/control-schema.d.ts +1074 -0
  19. package/dist/agent-runtime/control-schema.d.ts.map +1 -0
  20. package/dist/agent-runtime/conversations.d.ts +128 -0
  21. package/dist/agent-runtime/conversations.d.ts.map +1 -0
  22. package/dist/agent-runtime/event-schema.d.ts +96 -0
  23. package/dist/agent-runtime/event-schema.d.ts.map +1 -1
  24. package/dist/agent-runtime/harness-contract.d.ts +169 -0
  25. package/dist/agent-runtime/harness-contract.d.ts.map +1 -0
  26. package/dist/agent-runtime/harness-control.d.ts +25 -0
  27. package/dist/agent-runtime/harness-control.d.ts.map +1 -0
  28. package/dist/agent-runtime/harness-file-resources.d.ts +33 -0
  29. package/dist/agent-runtime/harness-file-resources.d.ts.map +1 -0
  30. package/dist/agent-runtime/harness-resources.d.ts +5 -0
  31. package/dist/agent-runtime/harness-resources.d.ts.map +1 -0
  32. package/dist/agent-runtime/harness.d.ts +12 -0
  33. package/dist/agent-runtime/harness.d.ts.map +1 -0
  34. package/dist/agent-runtime/history.d.ts +2 -0
  35. package/dist/agent-runtime/history.d.ts.map +1 -1
  36. package/dist/agent-runtime/models.d.ts +199 -0
  37. package/dist/agent-runtime/models.d.ts.map +1 -1
  38. package/dist/agent-runtime/prompt.d.ts +2 -0
  39. package/dist/agent-runtime/prompt.d.ts.map +1 -1
  40. package/dist/agent-runtime/run-execution.d.ts.map +1 -1
  41. package/dist/agent-runtime/runtime.d.ts +11 -3
  42. package/dist/agent-runtime/runtime.d.ts.map +1 -1
  43. package/dist/agent-runtime/schemas.d.ts +49 -0
  44. package/dist/agent-runtime/schemas.d.ts.map +1 -1
  45. package/dist/agent-runtime/sqlite.d.ts +2 -0
  46. package/dist/agent-runtime/sqlite.d.ts.map +1 -1
  47. package/dist/agent-runtime/store-driver.d.ts +61 -212
  48. package/dist/agent-runtime/store-driver.d.ts.map +1 -1
  49. package/dist/agent-runtime/store.d.ts +368 -1
  50. package/dist/agent-runtime/store.d.ts.map +1 -1
  51. package/dist/agent-runtime/terminal-commit.d.ts +12 -1
  52. package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
  53. package/dist/agent-runtime/terminal-status.d.ts +8 -0
  54. package/dist/agent-runtime/terminal-status.d.ts.map +1 -1
  55. package/dist/agent-runtime-browser.d.ts +1 -0
  56. package/dist/agent-runtime-browser.d.ts.map +1 -1
  57. package/dist/agent-runtime-browser.js +217 -1
  58. package/dist/agent-runtime-coding-tools.d.ts +2 -0
  59. package/dist/agent-runtime-coding-tools.d.ts.map +1 -0
  60. package/dist/agent-runtime-coding-tools.js +706 -0
  61. package/dist/agent-runtime-harness.d.ts +2 -0
  62. package/dist/agent-runtime-harness.d.ts.map +1 -0
  63. package/dist/agent-runtime-harness.js +700 -0
  64. package/dist/agent-runtime-openrouter.d.ts +14 -1
  65. package/dist/agent-runtime-openrouter.d.ts.map +1 -1
  66. package/dist/agent-runtime-openrouter.js +211 -0
  67. package/dist/agent-runtime-sqlite-bun.js +4 -3
  68. package/dist/agent-runtime-sqlite-node.js +4 -3
  69. package/dist/agent-runtime.d.ts +5 -3
  70. package/dist/agent-runtime.d.ts.map +1 -1
  71. package/dist/agent-runtime.js +106 -2580
  72. package/dist/application/diagnostic-journal-contract.d.ts +164 -0
  73. package/dist/application/diagnostic-journal-contract.d.ts.map +1 -0
  74. package/dist/application/diagnostic-journal-manager.d.ts +12 -0
  75. package/dist/application/diagnostic-journal-manager.d.ts.map +1 -0
  76. package/dist/application/diagnostic-journal-storage.d.ts +29 -0
  77. package/dist/application/diagnostic-journal-storage.d.ts.map +1 -0
  78. package/dist/application/diagnostic-journal.d.ts +11 -0
  79. package/dist/application/diagnostic-journal.d.ts.map +1 -0
  80. package/dist/application.d.ts +2 -0
  81. package/dist/application.d.ts.map +1 -1
  82. package/dist/application.js +561 -17
  83. package/dist/browser/socket-io.d.ts.map +1 -1
  84. package/dist/cli.js +8 -6
  85. package/dist/{index-8vpzxg55.js → index-10gbbbaa.js} +103 -2
  86. package/dist/index-3eqrkqhg.js +2565 -0
  87. package/dist/{index-hcx9yypn.js → index-444747ww.js} +7 -7
  88. package/dist/{index-hxh98zbm.js → index-d1jsvkyk.js} +1 -1
  89. package/dist/index-es0h4w26.js +63 -0
  90. package/dist/{index-grgvpbch.js → index-gqdfpv4n.js} +4 -2
  91. package/dist/{index-bt5179zb.js → index-h7ctj1kp.js} +5 -3
  92. package/dist/{index-y2ctppmg.js → index-h8vn1jcr.js} +7 -73
  93. package/dist/{index-hqza5nde.js → index-hsabxjz0.js} +78 -77
  94. package/dist/index-kg9xx84n.js +73 -0
  95. package/dist/{index-hb0mncmj.js → index-kxxyvkka.js} +2 -2
  96. package/dist/{index-2t6zt5cg.js → index-mbxds404.js} +7 -5
  97. package/dist/{index-f24xg2cw.js → index-p1be103g.js} +1 -1
  98. package/dist/{index-xyvxez9r.js → index-q7gdep2c.js} +5 -5
  99. package/dist/{index-t23p2b68.js → index-t4dpby6e.js} +1 -1
  100. package/dist/index-tg3m2ec5.js +157 -0
  101. package/dist/index-v3dpzpjw.js +92 -0
  102. package/dist/{index-eqqyd9v8.js → index-wwst0td5.js} +2 -46
  103. package/dist/{index-ysphyxax.js → index-x1th9s8c.js} +23 -2
  104. package/dist/index-xxsq3ca1.js +51 -0
  105. package/dist/{index-22tjt2rk.js → index-zh459sfj.js} +1 -1
  106. package/dist/index.js +51 -37
  107. package/dist/internal/ai-sdk-typed.d.ts +14 -0
  108. package/dist/internal/ai-sdk-typed.d.ts.map +1 -0
  109. package/dist/node.js +5 -5
  110. package/dist/observability/index.js +4 -4
  111. package/dist/realtime/request.d.ts +5 -0
  112. package/dist/realtime/request.d.ts.map +1 -1
  113. package/dist/remote.js +6 -6
  114. package/dist/server/index.js +9 -9
  115. package/dist/testing.js +5 -5
  116. package/dist/tool-invoker.js +6 -5
  117. package/dist/tools.js +21 -17
  118. package/llms-full.txt +342 -27
  119. package/package.json +10 -2
  120. package/dist/{index-pgsyp3xh.js → index-x18ndp4p.js} +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-schema.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/control-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAA0B,KAAK,aAAa,EAAuB,MAAM,WAAW,CAAC;AAM5F,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAoCpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,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 updatedAt: z.ZodISODateTime;
6
+ preview: z.ZodString;
7
+ activeRuns: z.ZodInt;
8
+ }, z.core.$strict>;
9
+ export declare const AgentConversationPageSchema: z.ZodObject<{
10
+ items: z.ZodArray<z.ZodObject<{
11
+ conversationId: z.ZodString;
12
+ version: z.ZodInt;
13
+ updatedAt: z.ZodISODateTime;
14
+ preview: z.ZodString;
15
+ activeRuns: z.ZodInt;
16
+ }, z.core.$strict>>;
17
+ nextCursor: z.ZodOptional<z.ZodString>;
18
+ }, z.core.$strict>;
19
+ export declare const AgentConversationMessagePageSchema: z.ZodObject<{
20
+ items: z.ZodArray<z.ZodObject<{
21
+ schemaVersion: z.ZodLiteral<1>;
22
+ id: z.ZodString;
23
+ conversationId: z.ZodString;
24
+ runId: z.ZodOptional<z.ZodString>;
25
+ role: z.ZodEnum<{
26
+ assistant: "assistant";
27
+ summary: "summary";
28
+ system: "system";
29
+ tool: "tool";
30
+ user: "user";
31
+ }>;
32
+ status: z.ZodEnum<{
33
+ committed: "committed";
34
+ completed: "completed";
35
+ failed: "failed";
36
+ interrupted: "interrupted";
37
+ streaming: "streaming";
38
+ superseded: "superseded";
39
+ }>;
40
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
41
+ type: z.ZodLiteral<"text">;
42
+ text: z.ZodString;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ type: z.ZodLiteral<"reasoning">;
45
+ text: z.ZodString;
46
+ provider: z.ZodOptional<z.ZodObject<{
47
+ schemaVersion: z.ZodInt;
48
+ provider: z.ZodString;
49
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
50
+ }, z.core.$strip>>;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ type: z.ZodLiteral<"file">;
53
+ mediaType: z.ZodString;
54
+ reference: z.ZodString;
55
+ filename: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ type: z.ZodLiteral<"source">;
58
+ sourceId: z.ZodString;
59
+ url: z.ZodOptional<z.ZodURL>;
60
+ title: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ type: z.ZodLiteral<"tool-call">;
63
+ callId: z.ZodString;
64
+ toolName: z.ZodString;
65
+ input: z.ZodJSONSchema;
66
+ provider: z.ZodOptional<z.ZodObject<{
67
+ schemaVersion: z.ZodInt;
68
+ provider: z.ZodString;
69
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ type: z.ZodLiteral<"tool-result">;
73
+ callId: z.ZodString;
74
+ toolName: z.ZodString;
75
+ outcome: z.ZodEnum<{
76
+ error: "error";
77
+ interrupted: "interrupted";
78
+ success: "success";
79
+ }>;
80
+ output: z.ZodOptional<z.ZodJSONSchema>;
81
+ }, z.core.$strip>, z.ZodObject<{
82
+ type: z.ZodLiteral<"tool-approval-request">;
83
+ approvalId: z.ZodString;
84
+ callId: z.ZodString;
85
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
86
+ signature: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ type: z.ZodLiteral<"tool-approval-response">;
89
+ approvalId: z.ZodString;
90
+ approved: z.ZodBoolean;
91
+ reason: z.ZodOptional<z.ZodString>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodLiteral<"provider">;
94
+ envelope: z.ZodObject<{
95
+ schemaVersion: z.ZodInt;
96
+ provider: z.ZodString;
97
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
98
+ }, z.core.$strip>;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ type: z.ZodLiteral<"control">;
101
+ reason: z.ZodEnum<{
102
+ "run-interrupted": "run-interrupted";
103
+ "stale-run": "stale-run";
104
+ }>;
105
+ }, z.core.$strip>], "type">>;
106
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
107
+ createdAt: z.ZodISODateTime;
108
+ updatedAt: z.ZodISODateTime;
109
+ }, z.core.$strip>>;
110
+ nextCursor: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strict>;
112
+ export type AgentConversationSummary = z.infer<typeof AgentConversationSummarySchema>;
113
+ export type AgentConversationPage = z.infer<typeof AgentConversationPageSchema>;
114
+ export type AgentConversationMessagePage = z.infer<typeof AgentConversationMessagePageSchema>;
115
+ export interface AgentConversationReader {
116
+ list(input: {
117
+ cursor?: string;
118
+ limit: number;
119
+ search?: string;
120
+ }): Promise<AgentConversationPage>;
121
+ messages(input: {
122
+ conversationId: string;
123
+ cursor?: string;
124
+ limit: number;
125
+ direction: 'before' | 'after';
126
+ }): Promise<AgentConversationMessagePage>;
127
+ }
128
+ //# sourceMappingURL=conversations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,8BAA8B;;;;;;kBAQhC,CAAC;AAEZ,eAAO,MAAM,2BAA2B;;;;;;;;;kBAK7B,CAAC;AAEZ,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKpC,CAAC;AAEZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE;QACd,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,QAAQ,GAAG,OAAO,CAAC;KAC/B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;CAC3C"}
@@ -14,6 +14,7 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
14
14
  assistant: "assistant";
15
15
  summary: "summary";
16
16
  system: "system";
17
+ tool: "tool";
17
18
  user: "user";
18
19
  }>;
19
20
  status: z.ZodEnum<{
@@ -65,6 +66,17 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
65
66
  success: "success";
66
67
  }>;
67
68
  output: z.ZodOptional<z.ZodJSONSchema>;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ type: z.ZodLiteral<"tool-approval-request">;
71
+ approvalId: z.ZodString;
72
+ callId: z.ZodString;
73
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
74
+ signature: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ type: z.ZodLiteral<"tool-approval-response">;
77
+ approvalId: z.ZodString;
78
+ approved: z.ZodBoolean;
79
+ reason: z.ZodOptional<z.ZodString>;
68
80
  }, z.core.$strip>, z.ZodObject<{
69
81
  type: z.ZodLiteral<"provider">;
70
82
  envelope: z.ZodObject<{
@@ -200,6 +212,7 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
200
212
  assistant: "assistant";
201
213
  summary: "summary";
202
214
  system: "system";
215
+ tool: "tool";
203
216
  user: "user";
204
217
  }>;
205
218
  status: z.ZodEnum<{
@@ -251,6 +264,17 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
251
264
  success: "success";
252
265
  }>;
253
266
  output: z.ZodOptional<z.ZodJSONSchema>;
267
+ }, z.core.$strip>, z.ZodObject<{
268
+ type: z.ZodLiteral<"tool-approval-request">;
269
+ approvalId: z.ZodString;
270
+ callId: z.ZodString;
271
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
272
+ signature: z.ZodOptional<z.ZodString>;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ type: z.ZodLiteral<"tool-approval-response">;
275
+ approvalId: z.ZodString;
276
+ approved: z.ZodBoolean;
277
+ reason: z.ZodOptional<z.ZodString>;
254
278
  }, z.core.$strip>, z.ZodObject<{
255
279
  type: z.ZodLiteral<"provider">;
256
280
  envelope: z.ZodObject<{
@@ -336,6 +360,7 @@ export declare const AgentCheckpointEventSchema: z.ZodObject<{
336
360
  assistant: "assistant";
337
361
  summary: "summary";
338
362
  system: "system";
363
+ tool: "tool";
339
364
  user: "user";
340
365
  }>;
341
366
  status: z.ZodEnum<{
@@ -387,6 +412,17 @@ export declare const AgentCheckpointEventSchema: z.ZodObject<{
387
412
  success: "success";
388
413
  }>;
389
414
  output: z.ZodOptional<z.ZodJSONSchema>;
415
+ }, z.core.$strip>, z.ZodObject<{
416
+ type: z.ZodLiteral<"tool-approval-request">;
417
+ approvalId: z.ZodString;
418
+ callId: z.ZodString;
419
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
420
+ signature: z.ZodOptional<z.ZodString>;
421
+ }, z.core.$strip>, z.ZodObject<{
422
+ type: z.ZodLiteral<"tool-approval-response">;
423
+ approvalId: z.ZodString;
424
+ approved: z.ZodBoolean;
425
+ reason: z.ZodOptional<z.ZodString>;
390
426
  }, z.core.$strip>, z.ZodObject<{
391
427
  type: z.ZodLiteral<"provider">;
392
428
  envelope: z.ZodObject<{
@@ -536,6 +572,7 @@ export declare const AgentTerminalEventSchema: z.ZodObject<{
536
572
  assistant: "assistant";
537
573
  summary: "summary";
538
574
  system: "system";
575
+ tool: "tool";
539
576
  user: "user";
540
577
  }>;
541
578
  status: z.ZodEnum<{
@@ -587,6 +624,17 @@ export declare const AgentTerminalEventSchema: z.ZodObject<{
587
624
  success: "success";
588
625
  }>;
589
626
  output: z.ZodOptional<z.ZodJSONSchema>;
627
+ }, z.core.$strip>, z.ZodObject<{
628
+ type: z.ZodLiteral<"tool-approval-request">;
629
+ approvalId: z.ZodString;
630
+ callId: z.ZodString;
631
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
632
+ signature: z.ZodOptional<z.ZodString>;
633
+ }, z.core.$strip>, z.ZodObject<{
634
+ type: z.ZodLiteral<"tool-approval-response">;
635
+ approvalId: z.ZodString;
636
+ approved: z.ZodBoolean;
637
+ reason: z.ZodOptional<z.ZodString>;
590
638
  }, z.core.$strip>, z.ZodObject<{
591
639
  type: z.ZodLiteral<"provider">;
592
640
  envelope: z.ZodObject<{
@@ -683,6 +731,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
683
731
  assistant: "assistant";
684
732
  summary: "summary";
685
733
  system: "system";
734
+ tool: "tool";
686
735
  user: "user";
687
736
  }>;
688
737
  status: z.ZodEnum<{
@@ -734,6 +783,17 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
734
783
  success: "success";
735
784
  }>;
736
785
  output: z.ZodOptional<z.ZodJSONSchema>;
786
+ }, z.core.$strip>, z.ZodObject<{
787
+ type: z.ZodLiteral<"tool-approval-request">;
788
+ approvalId: z.ZodString;
789
+ callId: z.ZodString;
790
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
791
+ signature: z.ZodOptional<z.ZodString>;
792
+ }, z.core.$strip>, z.ZodObject<{
793
+ type: z.ZodLiteral<"tool-approval-response">;
794
+ approvalId: z.ZodString;
795
+ approved: z.ZodBoolean;
796
+ reason: z.ZodOptional<z.ZodString>;
737
797
  }, z.core.$strip>, z.ZodObject<{
738
798
  type: z.ZodLiteral<"provider">;
739
799
  envelope: z.ZodObject<{
@@ -869,6 +929,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
869
929
  assistant: "assistant";
870
930
  summary: "summary";
871
931
  system: "system";
932
+ tool: "tool";
872
933
  user: "user";
873
934
  }>;
874
935
  status: z.ZodEnum<{
@@ -920,6 +981,17 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
920
981
  success: "success";
921
982
  }>;
922
983
  output: z.ZodOptional<z.ZodJSONSchema>;
984
+ }, z.core.$strip>, z.ZodObject<{
985
+ type: z.ZodLiteral<"tool-approval-request">;
986
+ approvalId: z.ZodString;
987
+ callId: z.ZodString;
988
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
989
+ signature: z.ZodOptional<z.ZodString>;
990
+ }, z.core.$strip>, z.ZodObject<{
991
+ type: z.ZodLiteral<"tool-approval-response">;
992
+ approvalId: z.ZodString;
993
+ approved: z.ZodBoolean;
994
+ reason: z.ZodOptional<z.ZodString>;
923
995
  }, z.core.$strip>, z.ZodObject<{
924
996
  type: z.ZodLiteral<"provider">;
925
997
  envelope: z.ZodObject<{
@@ -1000,6 +1072,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1000
1072
  assistant: "assistant";
1001
1073
  summary: "summary";
1002
1074
  system: "system";
1075
+ tool: "tool";
1003
1076
  user: "user";
1004
1077
  }>;
1005
1078
  status: z.ZodEnum<{
@@ -1051,6 +1124,17 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1051
1124
  success: "success";
1052
1125
  }>;
1053
1126
  output: z.ZodOptional<z.ZodJSONSchema>;
1127
+ }, z.core.$strip>, z.ZodObject<{
1128
+ type: z.ZodLiteral<"tool-approval-request">;
1129
+ approvalId: z.ZodString;
1130
+ callId: z.ZodString;
1131
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
1132
+ signature: z.ZodOptional<z.ZodString>;
1133
+ }, z.core.$strip>, z.ZodObject<{
1134
+ type: z.ZodLiteral<"tool-approval-response">;
1135
+ approvalId: z.ZodString;
1136
+ approved: z.ZodBoolean;
1137
+ reason: z.ZodOptional<z.ZodString>;
1054
1138
  }, z.core.$strip>, z.ZodObject<{
1055
1139
  type: z.ZodLiteral<"provider">;
1056
1140
  envelope: z.ZodObject<{
@@ -1197,6 +1281,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1197
1281
  assistant: "assistant";
1198
1282
  summary: "summary";
1199
1283
  system: "system";
1284
+ tool: "tool";
1200
1285
  user: "user";
1201
1286
  }>;
1202
1287
  status: z.ZodEnum<{
@@ -1248,6 +1333,17 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1248
1333
  success: "success";
1249
1334
  }>;
1250
1335
  output: z.ZodOptional<z.ZodJSONSchema>;
1336
+ }, z.core.$strip>, z.ZodObject<{
1337
+ type: z.ZodLiteral<"tool-approval-request">;
1338
+ approvalId: z.ZodString;
1339
+ callId: z.ZodString;
1340
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
1341
+ signature: z.ZodOptional<z.ZodString>;
1342
+ }, z.core.$strip>, z.ZodObject<{
1343
+ type: z.ZodLiteral<"tool-approval-response">;
1344
+ approvalId: z.ZodString;
1345
+ approved: z.ZodBoolean;
1346
+ reason: z.ZodOptional<z.ZodString>;
1251
1347
  }, z.core.$strip>, z.ZodObject<{
1252
1348
  type: z.ZodLiteral<"provider">;
1253
1349
  envelope: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"event-schema.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/event-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;AAEvF,eAAO,MAAM,6BAA6B;;;;;iBAKxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC;IACzC,MAAM,EAAE,uBAAuB,CAAC;CACjC;AAgBD,yFAAyF;AACzF,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,uBAAuB,EAClC,KAAK,EAAE,iBAAiB,GACvB,yBAAyB,CAiC3B;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,GAAG,sBAAsB,GAAG,WAAW,GAAG,UAAU,EACrE,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,MAAM,GACtB,MAAM,CAER"}
@@ -0,0 +1,169 @@
1
+ import type { ToolSet } from 'ai';
2
+ import { z } from 'zod';
3
+ import type { AgentRuntimeEvent } from './events.js';
4
+ import { type AgentResolvedModel } from './models.js';
5
+ import type { AgentPromptBudget, AgentTokenCount } from './prompt.js';
6
+ import type { AgentRuntime, AgentRuntimeConfig, AgentRuntimeRunContext } from './runtime.js';
7
+ import type { AgentRun, AgentSnapshot } from './schemas.js';
8
+ export declare const AgentHarnessResourceKindSchema: z.ZodEnum<{
9
+ instruction: "instruction";
10
+ resource: "resource";
11
+ skill: "skill";
12
+ }>;
13
+ export declare const AgentHarnessResourceSchema: z.ZodObject<{
14
+ kind: z.ZodEnum<{
15
+ instruction: "instruction";
16
+ resource: "resource";
17
+ skill: "skill";
18
+ }>;
19
+ name: z.ZodString;
20
+ text: z.ZodString;
21
+ provenance: z.ZodString;
22
+ }, z.core.$strict>;
23
+ export declare const AgentHarnessResourceDiagnosticSchema: z.ZodObject<{
24
+ resource: z.ZodString;
25
+ severity: z.ZodEnum<{
26
+ error: "error";
27
+ warning: "warning";
28
+ }>;
29
+ message: z.ZodString;
30
+ }, z.core.$strict>;
31
+ export declare const AgentHarnessLimitsSchema: z.ZodObject<{
32
+ maxResources: z.ZodInt;
33
+ maxResourceBytes: z.ZodInt;
34
+ maxDiagnostics: z.ZodInt;
35
+ }, z.core.$strict>;
36
+ export declare const AgentHarnessAppliedResourceSchema: z.ZodObject<{
37
+ kind: z.ZodEnum<{
38
+ instruction: "instruction";
39
+ resource: "resource";
40
+ skill: "skill";
41
+ }>;
42
+ name: z.ZodString;
43
+ provenance: z.ZodString;
44
+ }, z.core.$strict>;
45
+ export declare const AgentHarnessProfileEventSchema: z.ZodObject<{
46
+ schemaVersion: z.ZodLiteral<1>;
47
+ type: z.ZodLiteral<"profile-applied">;
48
+ conversationId: z.ZodString;
49
+ runId: z.ZodString;
50
+ model: z.ZodObject<{
51
+ provider: z.ZodString;
52
+ modelId: z.ZodString;
53
+ contextWindow: z.ZodInt;
54
+ capabilities: z.ZodArray<z.ZodEnum<{
55
+ files: "files";
56
+ reasoning: "reasoning";
57
+ tools: "tools";
58
+ vision: "vision";
59
+ }>>;
60
+ observedAt: z.ZodOptional<z.ZodISODateTime>;
61
+ source: z.ZodOptional<z.ZodString>;
62
+ availability: z.ZodOptional<z.ZodEnum<{
63
+ available: "available";
64
+ unavailable: "unavailable";
65
+ }>>;
66
+ }, z.core.$strip>;
67
+ resources: z.ZodArray<z.ZodObject<{
68
+ kind: z.ZodEnum<{
69
+ instruction: "instruction";
70
+ resource: "resource";
71
+ skill: "skill";
72
+ }>;
73
+ name: z.ZodString;
74
+ provenance: z.ZodString;
75
+ }, z.core.$strict>>;
76
+ diagnostics: z.ZodArray<z.ZodObject<{
77
+ resource: z.ZodString;
78
+ severity: z.ZodEnum<{
79
+ error: "error";
80
+ warning: "warning";
81
+ }>;
82
+ message: z.ZodString;
83
+ }, z.core.$strict>>;
84
+ toolNames: z.ZodArray<z.ZodString>;
85
+ }, z.core.$strict>;
86
+ export type AgentHarnessResourceKind = z.infer<typeof AgentHarnessResourceKindSchema>;
87
+ export type AgentHarnessResource = z.infer<typeof AgentHarnessResourceSchema>;
88
+ export type AgentHarnessResourceDiagnostic = z.infer<typeof AgentHarnessResourceDiagnosticSchema>;
89
+ export type AgentHarnessLimits = z.infer<typeof AgentHarnessLimitsSchema>;
90
+ export type AgentHarnessProfileEvent = z.infer<typeof AgentHarnessProfileEventSchema>;
91
+ export interface AgentHarnessResourceResult {
92
+ resources: readonly AgentHarnessResource[];
93
+ diagnostics: readonly AgentHarnessResourceDiagnostic[];
94
+ }
95
+ export interface HeadlessAgentModelResolver<CONTEXT> {
96
+ preflight?(input: {
97
+ context: CONTEXT;
98
+ conversationId: string;
99
+ }): void | Promise<void>;
100
+ resolve(input: {
101
+ context: CONTEXT;
102
+ conversationId: string;
103
+ run: AgentRun;
104
+ snapshot: AgentSnapshot;
105
+ }): AgentResolvedModel | Promise<AgentResolvedModel>;
106
+ }
107
+ export interface HeadlessAgentHarnessConfig<CONTEXT, TOOLS extends ToolSet> extends Omit<AgentRuntimeConfig<CONTEXT, TOOLS>, 'models' | 'prompt' | 'tools'> {
108
+ models: HeadlessAgentModelResolver<CONTEXT>;
109
+ resources: {
110
+ load(input: {
111
+ context: CONTEXT;
112
+ signal: AbortSignal;
113
+ model: AgentResolvedModel;
114
+ snapshot: AgentSnapshot;
115
+ }): AgentHarnessResourceResult | Promise<AgentHarnessResourceResult>;
116
+ onDiagnostics?(input: {
117
+ context: CONTEXT;
118
+ diagnostics: readonly AgentHarnessResourceDiagnostic[];
119
+ }): void | Promise<void>;
120
+ };
121
+ tools(input: AgentRuntimeRunContext<CONTEXT>): TOOLS | Promise<TOOLS>;
122
+ promptBudget(input: {
123
+ context: CONTEXT;
124
+ contextWindow: number;
125
+ }): AgentPromptBudget | Promise<AgentPromptBudget>;
126
+ estimateResourceTokens?(text: string): AgentTokenCount | Promise<AgentTokenCount>;
127
+ limits?: Partial<AgentHarnessLimits>;
128
+ onProfile?(event: AgentHarnessProfileEvent): void | Promise<void>;
129
+ onProfileError?(input: {
130
+ event: AgentHarnessProfileEvent;
131
+ error: unknown;
132
+ }): void | Promise<void>;
133
+ }
134
+ export interface HeadlessAgentHarness<CONTEXT> extends AgentRuntime<CONTEXT> {
135
+ snapshot(conversationId: string): Promise<AgentSnapshot>;
136
+ subscribe(listener: (event: AgentRuntimeEvent) => void | Promise<void>): () => void;
137
+ pendingApprovals(conversationId: string): Promise<readonly AgentHarnessPendingApproval[]>;
138
+ respondToApproval(input: AgentHarnessApprovalDecision<CONTEXT>): Promise<ReturnType<AgentRuntime<CONTEXT>['submit']>>;
139
+ }
140
+ export interface AgentHarnessPendingApproval {
141
+ conversationId: string;
142
+ runId: string;
143
+ messageId: string;
144
+ approvalId: string;
145
+ callId: string;
146
+ toolName: string;
147
+ input: unknown;
148
+ signature?: string;
149
+ }
150
+ export interface AgentHarnessApprovalDecision<_CONTEXT = unknown> {
151
+ conversationId: string;
152
+ approvalId: string;
153
+ approved: boolean;
154
+ reason?: string;
155
+ context: unknown;
156
+ metadata?: unknown;
157
+ }
158
+ export interface HarnessPromptProfile {
159
+ conversationId: string;
160
+ model: AgentResolvedModel;
161
+ resources: readonly AgentHarnessResource[];
162
+ diagnostics: readonly AgentHarnessResourceDiagnostic[];
163
+ }
164
+ export interface HarnessPendingProfile {
165
+ prompt?: HarnessPromptProfile;
166
+ toolNames?: readonly string[];
167
+ emitting?: Promise<void>;
168
+ }
169
+ //# sourceMappingURL=harness-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-contract.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/harness-contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAA8B,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAA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EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC3C,WAAW,EAAE,SAAS,8BAA8B,EAAE,CAAC;CACxD;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B"}
@@ -0,0 +1,25 @@
1
+ import { type AgentControlDelivery, type AgentControlRequest, type AgentControlResponse } from './control-schema.js';
2
+ import type { HeadlessAgentHarness } from './harness-contract.js';
3
+ export interface AgentHarnessControlConnection {
4
+ request(input: AgentControlRequest): Promise<AgentControlResponse>;
5
+ close(): void;
6
+ }
7
+ export interface AgentHarnessControlServer {
8
+ connect(input: {
9
+ id: string;
10
+ deliver(delivery: Extract<AgentControlDelivery, {
11
+ type: 'event';
12
+ }>): void | Promise<void>;
13
+ /** Out-of-band: close/abort the transport, then reconnect and request a snapshot. */
14
+ onOverflow(delivery: Extract<AgentControlDelivery, {
15
+ type: 'resync-required';
16
+ }>): void;
17
+ }): AgentHarnessControlConnection;
18
+ close(): void;
19
+ }
20
+ export interface AgentHarnessControlServerConfig {
21
+ maxPendingEvents?: number;
22
+ }
23
+ /** Transport-neutral correlated control with observer attachments and exclusive mutation leases. */
24
+ export declare function createAgentHarnessControlServer<CONTEXT>(harness: HeadlessAgentHarness<CONTEXT>, config?: AgentHarnessControlServerConfig): AgentHarnessControlServer;
25
+ //# sourceMappingURL=harness-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-control.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/harness-control.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,6BAA6B;IAC5C,OAAO,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnE,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,KAAK,EAAE;QACb,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,oBAAoB,EAAE;YAAE,IAAI,EAAE,OAAO,CAAA;SAAE,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAC1F,qFAAqF;QACrF,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,oBAAoB,EAAE;YAAE,IAAI,EAAE,iBAAiB,CAAA;SAAE,CAAC,GAAG,IAAI,CAAC;KACxF,GAAG,6BAA6B,CAAC;IAClC,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,+BAA+B;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,oGAAoG;AACpG,wBAAgB,+BAA+B,CAAC,OAAO,EACrD,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,EACtC,MAAM,GAAE,+BAAoC,GAC3C,yBAAyB,CA4K3B"}
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ import type { AgentCodingToolDefinition } from './coding-tool-contract.js';
3
+ import type { AgentHarnessResourceResult } from './harness-contract.js';
4
+ export declare const AgentHarnessFileRootSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ path: z.ZodString;
7
+ kind: z.ZodEnum<{
8
+ instruction: "instruction";
9
+ resource: "resource";
10
+ skill: "skill";
11
+ }>;
12
+ }, z.core.$strict>;
13
+ export declare const AgentHarnessFileLimitsSchema: z.ZodObject<{
14
+ maxFiles: z.ZodInt;
15
+ maxDepth: z.ZodInt;
16
+ maxFileBytes: z.ZodInt;
17
+ maxTotalBytes: z.ZodInt;
18
+ }, z.core.$strict>;
19
+ export type AgentHarnessFileRoot = z.infer<typeof AgentHarnessFileRootSchema>;
20
+ export type AgentHarnessFileLimits = z.infer<typeof AgentHarnessFileLimitsSchema>;
21
+ export interface AgentHarnessFileResources {
22
+ load(): Promise<AgentHarnessResourceResult>;
23
+ runtimeTools: readonly AgentCodingToolDefinition[];
24
+ }
25
+ /**
26
+ * Discover explicit roots once per load. Instructions are eager; skills and ordinary resources
27
+ * expose bounded summaries and keep their exact text behind a direct typed read operation.
28
+ */
29
+ export declare function createAgentHarnessFileResources(config: {
30
+ roots: readonly AgentHarnessFileRoot[];
31
+ limits?: Partial<AgentHarnessFileLimits>;
32
+ }): AgentHarnessFileResources;
33
+ //# sourceMappingURL=harness-file-resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-file-resources.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/harness-file-resources.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,KAAK,EAAwB,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAE3F,eAAO,MAAM,0BAA0B;;;;;;;;kBAM5B,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;kBAO9B,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,MAAM,WAAW,yBAAyB;IACxC,IAAI,IAAI,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC5C,YAAY,EAAE,SAAS,yBAAyB,EAAE,CAAC;CACpD;AAwDD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE;IACtD,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC1C,GAAG,yBAAyB,CA0F5B"}
@@ -0,0 +1,5 @@
1
+ import { type AgentHarnessLimits, type AgentHarnessResource, type AgentHarnessResourceResult } from './harness-contract.js';
2
+ export declare function resolveHarnessLimits(input: Partial<AgentHarnessLimits> | undefined): AgentHarnessLimits;
3
+ export declare function validateHarnessResources(result: AgentHarnessResourceResult, limits: AgentHarnessLimits): AgentHarnessResourceResult;
4
+ export declare function renderHarnessResources(resources: readonly AgentHarnessResource[]): string;
5
+ //# sourceMappingURL=harness-resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-resources.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/harness-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EAEzB,KAAK,0BAA0B,EAEhC,MAAM,oBAAoB,CAAC;AAQ5B,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,SAAS,GAC7C,kBAAkB,CAEpB;AAMD,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,0BAA0B,EAClC,MAAM,EAAE,kBAAkB,GACzB,0BAA0B,CAsB5B;AAUD,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,oBAAoB,EAAE,GAAG,MAAM,CAOzF"}
@@ -0,0 +1,12 @@
1
+ import type { ToolSet } from 'ai';
2
+ import { type HeadlessAgentHarness, type HeadlessAgentHarnessConfig } from './harness-contract.js';
3
+ export * from './harness-contract.js';
4
+ export * from './harness-file-resources.js';
5
+ /**
6
+ * Compose the public AgentRuntime into a resource-aware process-local harness.
7
+ * The caller still owns supervision, model/provider policy, permissions and
8
+ * idempotency of effects outside the runtime store.
9
+ */
10
+ export declare function createHeadlessAgentHarness<CONTEXT, TOOLS extends ToolSet>(config: HeadlessAgentHarnessConfig<CONTEXT, TOOLS>): HeadlessAgentHarness<CONTEXT>;
11
+ export * from './harness-control.js';
12
+ //# sourceMappingURL=harness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/harness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAElC,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAChC,MAAM,oBAAoB,CAAC;AAU5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AAczC;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACvE,MAAM,EAAE,0BAA0B,CAAC,OAAO,EAAE,KAAK,CAAC,GACjD,oBAAoB,CAAC,OAAO,CAAC,CAyM/B;AAED,cAAc,mBAAmB,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import { type FilePart, type ModelMessage } from 'ai';
2
2
  import type { AgentMessage, AgentMessagePart } from './schemas.js';
3
+ import { type AgentHistoryEvidencePolicy } from './terminal-status.js';
3
4
  type PartType = AgentMessagePart['type'];
4
5
  export interface AgentHistoryProjectionOptions {
6
+ evidencePolicy?: AgentHistoryEvidencePolicy;
5
7
  resolveFile?(part: Extract<AgentMessagePart, {
6
8
  type: 'file';
7
9
  }>, message: AgentMessage): FilePart['data'] | Promise<FilePart['data']>;
@@ -1 +1 @@
1
- {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAsB,MAAM,IAAI,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,g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