@tangle-network/agent-runtime 0.105.0 → 0.106.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 (218) hide show
  1. package/README.md +2 -2
  2. package/dist/activation-CRjVfOiy.js +203 -0
  3. package/dist/activation-CRjVfOiy.js.map +1 -0
  4. package/dist/activation-DyWB0K6E.d.ts +98 -0
  5. package/dist/agent.d.ts +216 -234
  6. package/dist/agent.js +615 -547
  7. package/dist/agent.js.map +1 -1
  8. package/dist/analyst-loop-DGdtVENg.js +517 -0
  9. package/dist/analyst-loop-DGdtVENg.js.map +1 -0
  10. package/dist/analyst-loop.d.ts +10 -43
  11. package/dist/analyst-loop.js +2 -11
  12. package/dist/backends-Dy8NujB4.js +713 -0
  13. package/dist/backends-Dy8NujB4.js.map +1 -0
  14. package/dist/candidate-execution/index.d.ts +4 -192
  15. package/dist/candidate-execution/index.js +5 -66
  16. package/dist/candidate-execution-DqMbv1rU.js +488 -0
  17. package/dist/candidate-execution-DqMbv1rU.js.map +1 -0
  18. package/dist/coder-yhVWbdWc.js +40 -0
  19. package/dist/coder-yhVWbdWc.js.map +1 -0
  20. package/dist/conversation-XucG_K3l.js +1265 -0
  21. package/dist/conversation-XucG_K3l.js.map +1 -0
  22. package/dist/conversation.d.ts +2 -804
  23. package/dist/conversation.js +2 -55
  24. package/dist/environment-provider-CfLUmKmf.js +1168 -0
  25. package/dist/environment-provider-CfLUmKmf.js.map +1 -0
  26. package/dist/environment-provider-IUGU3epE.d.ts +964 -0
  27. package/dist/environment-provider.d.ts +2 -78
  28. package/dist/environment-provider.js +2 -18
  29. package/dist/errors-DEAvWQPy.js +111 -0
  30. package/dist/errors-DEAvWQPy.js.map +1 -0
  31. package/dist/improvement-adapter-Cr5TBSji.d.ts +166 -0
  32. package/dist/improvement-cycle-C095kS_g.js +2624 -0
  33. package/dist/improvement-cycle-C095kS_g.js.map +1 -0
  34. package/dist/index-BGdxAwfO.d.ts +838 -0
  35. package/dist/index-C-FYUuFG.d.ts +193 -0
  36. package/dist/index-CbNM40xG.d.ts +140 -0
  37. package/dist/index-DruSKs3Z.d.ts +7224 -0
  38. package/dist/index-Efjb3nrQ.d.ts +671 -0
  39. package/dist/index.d.ts +14 -1058
  40. package/dist/index.js +2106 -2082
  41. package/dist/index.js.map +1 -1
  42. package/dist/intelligence.d.ts +768 -889
  43. package/dist/intelligence.js +1466 -1367
  44. package/dist/intelligence.js.map +1 -1
  45. package/dist/{kb-gate-CwHO0vz6.d.ts → kb-gate-C8z2juK8.d.ts} +33 -31
  46. package/dist/kb-gate-DpaSwXVx.js +80 -0
  47. package/dist/kb-gate-DpaSwXVx.js.map +1 -0
  48. package/dist/knowledge-Ku-mPP4f.js +433 -0
  49. package/dist/knowledge-Ku-mPP4f.js.map +1 -0
  50. package/dist/knowledge.d.ts +2 -150
  51. package/dist/knowledge.js +2 -40
  52. package/dist/local-harness-Dh8PJ0ot.d.ts +455 -0
  53. package/dist/loop-runner-bin-BXsFEUcf.d.ts +162 -0
  54. package/dist/loop-runner-bin-BwjQ1NfH.js +268 -0
  55. package/dist/loop-runner-bin-BwjQ1NfH.js.map +1 -0
  56. package/dist/loop-runner-bin.d.ts +2 -15
  57. package/dist/loop-runner-bin.js +2 -24
  58. package/dist/loops.d.ts +5 -4164
  59. package/dist/loops.js +8 -419
  60. package/dist/mcp/bin.d.ts +1 -1
  61. package/dist/mcp/bin.js +116 -146
  62. package/dist/mcp/bin.js.map +1 -1
  63. package/dist/mcp/index.d.ts +295 -436
  64. package/dist/mcp/index.js +1242 -1177
  65. package/dist/mcp/index.js.map +1 -1
  66. package/dist/mcp/memory-bin.d.ts +1 -1
  67. package/dist/mcp/memory-bin.js +37 -16
  68. package/dist/mcp/memory-bin.js.map +1 -1
  69. package/dist/memory-server-DL6cE2Ag.js +234 -0
  70. package/dist/memory-server-DL6cE2Ag.js.map +1 -0
  71. package/dist/model-resolution-Btd9iIKV.js +98 -0
  72. package/dist/model-resolution-Btd9iIKV.js.map +1 -0
  73. package/dist/openai-tools-B68JaOCx.d.ts +24 -0
  74. package/dist/openai-tools-CKLy1C7M.js +44 -0
  75. package/dist/openai-tools-CKLy1C7M.js.map +1 -0
  76. package/dist/otel-export-D34IQW1C.js +843 -0
  77. package/dist/otel-export-D34IQW1C.js.map +1 -0
  78. package/dist/platform.d.ts +188 -185
  79. package/dist/platform.js +185 -218
  80. package/dist/platform.js.map +1 -1
  81. package/dist/prepare-B53sPV7M.js +4292 -0
  82. package/dist/prepare-B53sPV7M.js.map +1 -0
  83. package/dist/primeintellect/index.d.ts +149 -145
  84. package/dist/primeintellect/index.js +626 -1003
  85. package/dist/primeintellect/index.js.map +1 -1
  86. package/dist/profiles.d.ts +296 -490
  87. package/dist/profiles.js +722 -749
  88. package/dist/profiles.js.map +1 -1
  89. package/dist/protected-model-port-BLPH5VVv.js +722 -0
  90. package/dist/protected-model-port-BLPH5VVv.js.map +1 -0
  91. package/dist/protected-model-port-BP6Z4eau.d.ts +283 -0
  92. package/dist/protected-redaction--F3v1oo8.js +200 -0
  93. package/dist/protected-redaction--F3v1oo8.js.map +1 -0
  94. package/dist/redact-D-u-rrcn.js +82 -0
  95. package/dist/redact-D-u-rrcn.js.map +1 -0
  96. package/dist/redact-kbIOjfjM.d.ts +452 -0
  97. package/dist/researcher-CoVqNhfI.js +433 -0
  98. package/dist/researcher-CoVqNhfI.js.map +1 -0
  99. package/dist/runtime-BG0BziaP.js +5408 -0
  100. package/dist/runtime-BG0BziaP.js.map +1 -0
  101. package/dist/sandbox-events-DeI5xX8P.js +316 -0
  102. package/dist/sandbox-events-DeI5xX8P.js.map +1 -0
  103. package/dist/spawn-journal-CwPvKUTa.js +456 -0
  104. package/dist/spawn-journal-CwPvKUTa.js.map +1 -0
  105. package/dist/structural-rollout-IXUEplky.js +1445 -0
  106. package/dist/structural-rollout-IXUEplky.js.map +1 -0
  107. package/dist/substrate-B0TYNrXn.js +27 -0
  108. package/dist/substrate-B0TYNrXn.js.map +1 -0
  109. package/dist/{substrate-Dyiqmd3o.d.ts → substrate-BcnuSHXm.d.ts} +57 -54
  110. package/dist/supervise-BiRutHS9.js +7321 -0
  111. package/dist/supervise-BiRutHS9.js.map +1 -0
  112. package/dist/supervisor-DTKhF-RV.js +3826 -0
  113. package/dist/supervisor-DTKhF-RV.js.map +1 -0
  114. package/dist/testing.d.ts +4 -3
  115. package/dist/testing.js +2478 -2637
  116. package/dist/testing.js.map +1 -1
  117. package/dist/tool-server-RcWgLIsL.js +141 -0
  118. package/dist/tool-server-RcWgLIsL.js.map +1 -0
  119. package/dist/trace-propagation-CJJC7SVB.js +57 -0
  120. package/dist/trace-propagation-CJJC7SVB.js.map +1 -0
  121. package/dist/types-BaIpb0XT.d.ts +492 -0
  122. package/dist/types-BevOjfTY.d.ts +765 -0
  123. package/dist/types-C9j4qg6l.d.ts +500 -0
  124. package/dist/types-Cja5OTGh.d.ts +190 -0
  125. package/dist/util-MVgdwuIS.js +145 -0
  126. package/dist/util-MVgdwuIS.js.map +1 -0
  127. package/dist/workspace-archive-BosQiotA.js +575 -0
  128. package/dist/workspace-archive-BosQiotA.js.map +1 -0
  129. package/package.json +43 -56
  130. package/skills/build-with-agent-runtime/SKILL.md +1 -0
  131. package/dist/activation-Cm-9MMX1.d.ts +0 -69
  132. package/dist/analyst-loop.js.map +0 -1
  133. package/dist/backends-BO4Jqoe2.d.ts +0 -134
  134. package/dist/candidate-execution/index.js.map +0 -1
  135. package/dist/chunk-2KGAN2HM.js +0 -1256
  136. package/dist/chunk-2KGAN2HM.js.map +0 -1
  137. package/dist/chunk-2VZYRB55.js +0 -834
  138. package/dist/chunk-2VZYRB55.js.map +0 -1
  139. package/dist/chunk-3MDZX7YU.js +0 -125
  140. package/dist/chunk-3MDZX7YU.js.map +0 -1
  141. package/dist/chunk-5IBQAPVB.js +0 -29
  142. package/dist/chunk-5IBQAPVB.js.map +0 -1
  143. package/dist/chunk-5QOB7H74.js +0 -387
  144. package/dist/chunk-5QOB7H74.js.map +0 -1
  145. package/dist/chunk-C5RTIBNZ.js +0 -48
  146. package/dist/chunk-C5RTIBNZ.js.map +0 -1
  147. package/dist/chunk-CTRA64LY.js +0 -680
  148. package/dist/chunk-CTRA64LY.js.map +0 -1
  149. package/dist/chunk-DPEUKJRO.js +0 -27
  150. package/dist/chunk-DPEUKJRO.js.map +0 -1
  151. package/dist/chunk-FD2MBMOH.js +0 -494
  152. package/dist/chunk-FD2MBMOH.js.map +0 -1
  153. package/dist/chunk-H5QPIZNX.js +0 -907
  154. package/dist/chunk-H5QPIZNX.js.map +0 -1
  155. package/dist/chunk-HLKC4UYB.js +0 -3514
  156. package/dist/chunk-HLKC4UYB.js.map +0 -1
  157. package/dist/chunk-HNP72PNU.js +0 -192
  158. package/dist/chunk-HNP72PNU.js.map +0 -1
  159. package/dist/chunk-ISPWRSEC.js +0 -408
  160. package/dist/chunk-ISPWRSEC.js.map +0 -1
  161. package/dist/chunk-KRBFHMV6.js +0 -1228
  162. package/dist/chunk-KRBFHMV6.js.map +0 -1
  163. package/dist/chunk-M22PL4GH.js +0 -171
  164. package/dist/chunk-M22PL4GH.js.map +0 -1
  165. package/dist/chunk-NURIQBJQ.js +0 -72
  166. package/dist/chunk-NURIQBJQ.js.map +0 -1
  167. package/dist/chunk-OPVWXJ2H.js +0 -75
  168. package/dist/chunk-OPVWXJ2H.js.map +0 -1
  169. package/dist/chunk-PZZKQVQV.js +0 -52
  170. package/dist/chunk-PZZKQVQV.js.map +0 -1
  171. package/dist/chunk-Q2JSAVQ3.js +0 -671
  172. package/dist/chunk-Q2JSAVQ3.js.map +0 -1
  173. package/dist/chunk-RDOAVVHY.js +0 -699
  174. package/dist/chunk-RDOAVVHY.js.map +0 -1
  175. package/dist/chunk-SGKPNBXE.js +0 -60
  176. package/dist/chunk-SGKPNBXE.js.map +0 -1
  177. package/dist/chunk-SMQXZGLZ.js +0 -351
  178. package/dist/chunk-SMQXZGLZ.js.map +0 -1
  179. package/dist/chunk-UHEZW5BU.js +0 -2918
  180. package/dist/chunk-UHEZW5BU.js.map +0 -1
  181. package/dist/chunk-UPWGXKXB.js +0 -254
  182. package/dist/chunk-UPWGXKXB.js.map +0 -1
  183. package/dist/chunk-VISA6CI3.js +0 -200
  184. package/dist/chunk-VISA6CI3.js.map +0 -1
  185. package/dist/chunk-WMTCUOQL.js +0 -474
  186. package/dist/chunk-WMTCUOQL.js.map +0 -1
  187. package/dist/chunk-WRTOVNN4.js +0 -4728
  188. package/dist/chunk-WRTOVNN4.js.map +0 -1
  189. package/dist/chunk-WSTRQZYQ.js +0 -5576
  190. package/dist/chunk-WSTRQZYQ.js.map +0 -1
  191. package/dist/chunk-XBG2W2VW.js +0 -6434
  192. package/dist/chunk-XBG2W2VW.js.map +0 -1
  193. package/dist/chunk-YEJR7IXO.js +0 -68
  194. package/dist/chunk-YEJR7IXO.js.map +0 -1
  195. package/dist/chunk-YJZA2BIK.js +0 -1338
  196. package/dist/chunk-YJZA2BIK.js.map +0 -1
  197. package/dist/completion-gate-BMy5LGoP.d.ts +0 -256
  198. package/dist/conversation.js.map +0 -1
  199. package/dist/coordination-BZZSVYpZ.d.ts +0 -2570
  200. package/dist/environment-provider.js.map +0 -1
  201. package/dist/improvement-adapter-HAZz-7vK.d.ts +0 -203
  202. package/dist/knowledge.js.map +0 -1
  203. package/dist/local-harness-BDNcl6jI.d.ts +0 -175
  204. package/dist/loop-runner-bin-68aoM9-7.d.ts +0 -199
  205. package/dist/loop-runner-bin.js.map +0 -1
  206. package/dist/loops.js.map +0 -1
  207. package/dist/openai-tools-fnj6SRVg.d.ts +0 -46
  208. package/dist/protected-model-port-B4t-OQjL.d.ts +0 -271
  209. package/dist/redact-BuFjxBUJ.d.ts +0 -481
  210. package/dist/sanitize-DEbPNtyI.d.ts +0 -328
  211. package/dist/structural-rollout-DEh6CEsa.d.ts +0 -446
  212. package/dist/supervise-4_48wwvy.d.ts +0 -379
  213. package/dist/types-BCoemcXU.d.ts +0 -802
  214. package/dist/types-BwoZWq-i.d.ts +0 -510
  215. package/dist/types-Cbp72qyu.d.ts +0 -491
  216. package/dist/types-CmYCMbFT.d.ts +0 -203
  217. package/dist/types-CvNwMzQt.d.ts +0 -957
  218. package/dist/worktree-fanout-DxhAWr5Z.d.ts +0 -999
@@ -1,133 +1,135 @@
1
- import { c as AgentExecutionBackend, A as AgentBackendInput } from '../types-BwoZWq-i.js';
2
- import { c as createOpenAICompatibleBackend } from '../backends-BO4Jqoe2.js';
3
- import { RunRecord } from '@tangle-network/agent-eval';
4
-
1
+ import { i as AgentExecutionBackend, r as AgentBackendInput } from "../types-C9j4qg6l.js";
2
+ import { Nt as createOpenAICompatibleBackend } from "../index-BGdxAwfO.js";
3
+ import { RunRecord } from "@tangle-network/agent-eval";
4
+ //#region src/primeintellect/types.d.ts
5
5
  type PrimeIntellectSplit = 'train' | 'eval';
6
6
  type PrimeIntellectJson = null | boolean | number | string | PrimeIntellectJson[] | {
7
- [key: string]: PrimeIntellectJson;
7
+ [key: string]: PrimeIntellectJson;
8
8
  };
9
9
  type PrimeIntellectContent = string | Array<{
10
- type: 'text';
11
- text: string;
10
+ type: 'text';
11
+ text: string;
12
12
  } | {
13
- type: 'image_url';
14
- image_url: {
15
- url: string;
16
- };
13
+ type: 'image_url';
14
+ image_url: {
15
+ url: string;
16
+ };
17
17
  }>;
18
18
  type PrimeIntellectMessage = {
19
- role: 'system' | 'user';
20
- content: PrimeIntellectContent;
19
+ role: 'system' | 'user';
20
+ content: PrimeIntellectContent;
21
21
  } | {
22
- role: 'assistant';
23
- content?: string | null;
24
- reasoning_content?: string | null;
25
- tool_calls?: Array<{
26
- id: string;
27
- name: string;
28
- arguments: string;
29
- }>;
30
- provider_state?: Array<Record<string, PrimeIntellectJson>>;
22
+ role: 'assistant';
23
+ content?: string | null;
24
+ reasoning_content?: string | null;
25
+ tool_calls?: Array<{
26
+ id: string;
27
+ name: string;
28
+ arguments: string;
29
+ }>;
30
+ provider_state?: Array<Record<string, PrimeIntellectJson>>;
31
31
  } | {
32
- role: 'tool';
33
- tool_call_id: string;
34
- content: PrimeIntellectContent;
35
- name?: string;
32
+ role: 'tool';
33
+ tool_call_id: string;
34
+ content: PrimeIntellectContent;
35
+ name?: string;
36
36
  };
37
37
  /** One immutable problem. References stay inside Prime's task process. */
38
38
  interface PrimeIntellectTask {
39
- id: string;
40
- split: PrimeIntellectSplit;
41
- prompt: string | PrimeIntellectMessage[];
42
- systemPrompt?: string;
43
- answer?: string | string[];
44
- metadata?: Record<string, PrimeIntellectJson>;
39
+ id: string;
40
+ split: PrimeIntellectSplit;
41
+ prompt: string | PrimeIntellectMessage[];
42
+ systemPrompt?: string;
43
+ answer?: string | string[];
44
+ metadata?: Record<string, PrimeIntellectJson>;
45
45
  }
46
46
  type PrimeIntellectScoring = {
47
- kind: 'exact';
48
- normalization?: 'none' | 'trim' | 'trim-casefold';
47
+ kind: 'exact';
48
+ normalization?: 'none' | 'trim' | 'trim-casefold';
49
49
  } | {
50
- kind: 'reference-judge';
51
- model: string;
52
- prompt?: string;
53
- view?: 'last_reply' | 'full_trace';
50
+ kind: 'reference-judge';
51
+ model: string;
52
+ prompt?: string;
53
+ view?: 'last_reply' | 'full_trace';
54
54
  } | {
55
- kind: 'command';
56
- command: readonly [string, ...string[]];
57
- files?: Readonly<Record<string, string>>;
58
- forwardEnv?: readonly string[];
59
- timeoutSeconds?: number;
55
+ kind: 'command';
56
+ command: readonly [string, ...string[]];
57
+ files?: Readonly<Record<string, string>>;
58
+ forwardEnv?: readonly string[];
59
+ timeoutSeconds?: number;
60
60
  };
61
61
  type PrimeIntellectSetupCommand = readonly [string, ...string[]];
62
62
  /** Files and commands that make the caller's real agent program runnable. */
63
63
  interface PrimeIntellectRunner {
64
- command: readonly [string, ...string[]];
65
- files?: Readonly<Record<string, string>>;
66
- setup?: readonly PrimeIntellectSetupCommand[];
67
- forwardEnv?: readonly string[];
68
- /** Container image used by the generated eval config. */
69
- image: string;
64
+ command: readonly [string, ...string[]];
65
+ files?: Readonly<Record<string, string>>;
66
+ setup?: readonly PrimeIntellectSetupCommand[];
67
+ forwardEnv?: readonly string[];
68
+ /** Container image used by the generated eval config. */
69
+ image: string;
70
70
  }
71
71
  interface PrimeIntellectPackageOptions {
72
- name: string;
73
- version: string;
74
- description?: string;
75
- tasks: readonly PrimeIntellectTask[];
76
- scoring: PrimeIntellectScoring;
77
- runner: PrimeIntellectRunner;
78
- /** Prime-enforced model turn cap. Default 16. */
79
- maxTurns?: number;
80
- maxInputTokens?: number;
81
- maxOutputTokens?: number;
82
- maxTotalTokens?: number;
83
- rolloutTimeoutSeconds?: number;
84
- scoringTimeoutSeconds?: number;
72
+ name: string;
73
+ version: string;
74
+ description?: string;
75
+ tasks: readonly PrimeIntellectTask[];
76
+ scoring: PrimeIntellectScoring;
77
+ runner: PrimeIntellectRunner;
78
+ /** Prime-enforced model turn cap. Default 16. */
79
+ maxTurns?: number;
80
+ maxInputTokens?: number;
81
+ maxOutputTokens?: number;
82
+ maxTotalTokens?: number;
83
+ rolloutTimeoutSeconds?: number;
84
+ scoringTimeoutSeconds?: number;
85
85
  }
86
86
  interface PrimeIntellectPackageManifest {
87
- kind: 'tangle.primeintellect.package';
88
- name: string;
89
- moduleName: string;
90
- version: string;
91
- verifiers: '>=0.2.0,<0.3.0';
92
- taskCount: number;
93
- splits: Record<PrimeIntellectSplit, number>;
94
- taskIdsSha256: string;
95
- filesSha256: Record<string, string>;
87
+ kind: 'tangle.primeintellect.package';
88
+ name: string;
89
+ moduleName: string;
90
+ version: string;
91
+ verifiers: '>=0.2.0,<0.3.0';
92
+ taskCount: number;
93
+ splits: Record<PrimeIntellectSplit, number>;
94
+ taskIdsSha256: string;
95
+ filesSha256: Record<string, string>;
96
96
  }
97
97
  interface PrimeIntellectPackageBundle {
98
- manifest: PrimeIntellectPackageManifest;
99
- /** Relative package path to UTF-8 contents. */
100
- files: Readonly<Record<string, string>>;
98
+ manifest: PrimeIntellectPackageManifest;
99
+ /** Relative package path to UTF-8 contents. */
100
+ files: Readonly<Record<string, string>>;
101
101
  }
102
102
  /** The answer-free task exposed to the caller's runtime program. */
103
103
  interface PrimeIntellectPublicTask {
104
- id: string;
105
- split: PrimeIntellectSplit;
106
- prompt: string | PrimeIntellectMessage[];
107
- systemPrompt?: string;
108
- metadata?: Record<string, PrimeIntellectJson>;
104
+ id: string;
105
+ split: PrimeIntellectSplit;
106
+ prompt: string | PrimeIntellectMessage[];
107
+ systemPrompt?: string;
108
+ metadata?: Record<string, PrimeIntellectJson>;
109
109
  }
110
110
  interface PrimeIntellectEpisodeContext {
111
- task: PrimeIntellectPublicTask;
112
- model: {
113
- name: string;
114
- baseUrl: string;
115
- apiKey: string;
116
- };
117
- mcpServers: Readonly<Record<string, string>>;
111
+ task: PrimeIntellectPublicTask;
112
+ model: {
113
+ name: string;
114
+ baseUrl: string;
115
+ apiKey: string;
116
+ };
117
+ mcpServers: Readonly<Record<string, string>>;
118
118
  }
119
-
119
+ //#endregion
120
+ //#region src/primeintellect/package.d.ts
120
121
  interface WritePrimeIntellectPackageOptions {
121
- /** Replace an existing generated package and restore it if the final swap fails. */
122
- replace?: boolean;
122
+ /** Replace an existing generated package and restore it if the final swap fails. */
123
+ replace?: boolean;
123
124
  }
124
125
  /** Build a complete PrimeIntellect Verifiers package without writing to disk. */
125
126
  declare function createPrimeIntellectPackage(options: PrimeIntellectPackageOptions): PrimeIntellectPackageBundle;
126
127
  /** Write a bundle through a sibling temporary directory, then rename it into place. */
127
128
  declare function writePrimeIntellectPackage(bundle: PrimeIntellectPackageBundle, outputDirectory: string, options?: WritePrimeIntellectPackageOptions): Promise<string>;
128
-
129
+ //#endregion
130
+ //#region src/primeintellect/runner.d.ts
129
131
  interface RunPrimeIntellectProgramOptions {
130
- env?: NodeJS.ProcessEnv;
132
+ env?: NodeJS.ProcessEnv;
131
133
  }
132
134
  type PrimeIntellectBackendOptions = Omit<Parameters<typeof createOpenAICompatibleBackend>[0], 'apiKey' | 'baseUrl' | 'model'>;
133
135
  /** Read and validate the private process contract installed by the generated Prime harness. */
@@ -139,68 +141,69 @@ declare function createPrimeIntellectBackend(context: PrimeIntellectEpisodeConte
139
141
  * The callback may call runPersonified, runAgentic, runAgentRounds, or any product wrapper.
140
142
  */
141
143
  declare function runPrimeIntellectProgram<Result>(run: (context: PrimeIntellectEpisodeContext) => Promise<Result>, options?: RunPrimeIntellectProgramOptions): Promise<Result>;
142
-
144
+ //#endregion
145
+ //#region src/primeintellect/traces.d.ts
143
146
  interface PrimeUsage {
144
- prompt_tokens: number;
145
- completion_tokens: number;
146
- cached_input_tokens?: number | null;
147
- reasoning_tokens?: number | null;
148
- cost?: number | null;
147
+ prompt_tokens: number;
148
+ completion_tokens: number;
149
+ cached_input_tokens?: number | null;
150
+ reasoning_tokens?: number | null;
151
+ cost?: number | null;
149
152
  }
150
153
  interface PrimeTraceNode {
151
- parent?: number | null;
152
- sampled?: boolean;
153
- usage?: PrimeUsage | null;
154
- message?: unknown;
154
+ parent?: number | null;
155
+ sampled?: boolean;
156
+ usage?: PrimeUsage | null;
157
+ message?: unknown;
155
158
  }
156
159
  interface PrimeTimeSpan {
157
- start?: number;
158
- end?: number;
160
+ start?: number;
161
+ end?: number;
159
162
  }
160
163
  interface PrimeIntellectTrace {
161
- id: string;
162
- task: {
163
- type: string;
164
- data: {
165
- idx: number;
166
- name?: string | null;
167
- split?: 'train' | 'eval';
168
- prompt?: unknown;
169
- system_prompt?: string | null;
170
- metadata?: Record<string, unknown>;
171
- [key: string]: unknown;
172
- };
173
- };
174
- runtime?: unknown;
175
- nodes: PrimeTraceNode[];
176
- rewards: Record<string, number>;
177
- metrics: Record<string, number>;
178
- info?: Record<string, unknown>;
179
- extra_usage?: PrimeUsage[];
180
- is_completed?: boolean;
181
- stop_condition?: string | null;
182
- errors?: Array<{
183
- type: string;
184
- message: string;
185
- traceback?: string | null;
186
- }>;
187
- timing?: {
188
- start?: number;
189
- setup?: PrimeTimeSpan;
190
- generation?: PrimeTimeSpan;
191
- finalize?: PrimeTimeSpan;
192
- scoring?: PrimeTimeSpan;
164
+ id: string;
165
+ task: {
166
+ type: string;
167
+ data: {
168
+ idx: number;
169
+ name?: string | null;
170
+ split?: 'train' | 'eval';
171
+ prompt?: unknown;
172
+ system_prompt?: string | null;
173
+ metadata?: Record<string, unknown>;
174
+ [key: string]: unknown;
193
175
  };
176
+ };
177
+ runtime?: unknown;
178
+ nodes: PrimeTraceNode[];
179
+ rewards: Record<string, number>;
180
+ metrics: Record<string, number>;
181
+ info?: Record<string, unknown>;
182
+ extra_usage?: PrimeUsage[];
183
+ is_completed?: boolean;
184
+ stop_condition?: string | null;
185
+ errors?: Array<{
186
+ type: string;
187
+ message: string;
188
+ traceback?: string | null;
189
+ }>;
190
+ timing?: {
191
+ start?: number;
192
+ setup?: PrimeTimeSpan;
193
+ generation?: PrimeTimeSpan;
194
+ finalize?: PrimeTimeSpan;
195
+ scoring?: PrimeTimeSpan;
196
+ };
194
197
  }
195
198
  interface PrimeIntellectTraceImportOptions {
196
- experimentId: string;
197
- candidateId: string;
198
- seed: number;
199
- /** Snapshot-pinned model id required by RunRecord validation. */
200
- model: string;
201
- promptHash: string;
202
- configHash: string;
203
- commitSha: string;
199
+ experimentId: string;
200
+ candidateId: string;
201
+ seed: number;
202
+ /** Snapshot-pinned model id required by RunRecord validation. */
203
+ model: string;
204
+ promptHash: string;
205
+ configHash: string;
206
+ commitSha: string;
204
207
  }
205
208
  type PrimeIntellectImportDefaults = PrimeIntellectTraceImportOptions;
206
209
  /** Parse Prime's durable `traces.jsonl` and reject malformed rows with a line number. */
@@ -209,5 +212,6 @@ declare function parsePrimeIntellectTraces(jsonl: string): PrimeIntellectTrace[]
209
212
  declare function importPrimeIntellectTraces(jsonl: string, defaults: PrimeIntellectImportDefaults): RunRecord[];
210
213
  /** Project one complete Prime trace into the common agent-eval analysis row. */
211
214
  declare function primeIntellectTraceToRunRecord(trace: PrimeIntellectTrace, options: PrimeIntellectTraceImportOptions): RunRecord;
212
-
213
- export { type PrimeIntellectBackendOptions, type PrimeIntellectContent, type PrimeIntellectEpisodeContext, type PrimeIntellectImportDefaults, type PrimeIntellectJson, type PrimeIntellectMessage, type PrimeIntellectPackageBundle, type PrimeIntellectPackageManifest, type PrimeIntellectPackageOptions, type PrimeIntellectPublicTask, type PrimeIntellectRunner, type PrimeIntellectScoring, type PrimeIntellectSetupCommand, type PrimeIntellectSplit, type PrimeIntellectTask, type PrimeIntellectTrace, type PrimeIntellectTraceImportOptions, type RunPrimeIntellectProgramOptions, type WritePrimeIntellectPackageOptions, createPrimeIntellectBackend, createPrimeIntellectPackage, importPrimeIntellectTraces, parsePrimeIntellectTraces, primeIntellectTraceToRunRecord, readPrimeIntellectEpisodeContext, runPrimeIntellectProgram, writePrimeIntellectPackage };
215
+ //#endregion
216
+ export { type PrimeIntellectBackendOptions, type PrimeIntellectContent, type PrimeIntellectEpisodeContext, type PrimeIntellectImportDefaults, type PrimeIntellectJson, type PrimeIntellectMessage, type PrimeIntellectPackageBundle, type PrimeIntellectPackageManifest, type PrimeIntellectPackageOptions, type PrimeIntellectPublicTask, type PrimeIntellectRunner, type PrimeIntellectScoring, type PrimeIntellectSetupCommand, type PrimeIntellectSplit, type PrimeIntellectTask, type PrimeIntellectTrace, type PrimeIntellectTraceImportOptions, type PrimeTimeSpan, type PrimeTraceNode, type PrimeUsage, type RunPrimeIntellectProgramOptions, type WritePrimeIntellectPackageOptions, createPrimeIntellectBackend, createPrimeIntellectPackage, importPrimeIntellectTraces, parsePrimeIntellectTraces, primeIntellectTraceToRunRecord, readPrimeIntellectEpisodeContext, runPrimeIntellectProgram, writePrimeIntellectPackage };
217
+ //# sourceMappingURL=index.d.ts.map