@jinn-network/client 0.1.9 → 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 (1232) hide show
  1. package/CONTRIBUTING.md +2 -2
  2. package/README.md +13 -2
  3. package/deployments/deployment-phase1b-mech-baseSepolia-fast.json +3 -3
  4. package/deployments/deployment-stolas-l2-baseSepolia-fast.json +23 -3
  5. package/deployments/deployment-task-coordinator-router-v3-baseSepolia-fast.json +34 -6
  6. package/dist/adapters/mech/adapter.d.ts +30 -0
  7. package/dist/adapters/mech/adapter.js +198 -54
  8. package/dist/adapters/mech/adapter.js.map +1 -1
  9. package/dist/adapters/mech/contracts.d.ts +174 -13
  10. package/dist/adapters/mech/contracts.js +37 -21
  11. package/dist/adapters/mech/contracts.js.map +1 -1
  12. package/dist/adapters/mech/ipfs.d.ts +15 -27
  13. package/dist/adapters/mech/ipfs.js +39 -102
  14. package/dist/adapters/mech/ipfs.js.map +1 -1
  15. package/dist/adapters/mech/safe.js +74 -2
  16. package/dist/adapters/mech/safe.js.map +1 -1
  17. package/dist/adapters/mech/types.d.ts +15 -130
  18. package/dist/adapters/mech/types.js +9 -65
  19. package/dist/adapters/mech/types.js.map +1 -1
  20. package/dist/api/bootstrap-endpoint.d.ts +19 -3
  21. package/dist/api/bootstrap-endpoint.js +4 -0
  22. package/dist/api/bootstrap-endpoint.js.map +1 -1
  23. package/dist/api/gather-status.d.ts +49 -15
  24. package/dist/api/gather-status.js +115 -417
  25. package/dist/api/gather-status.js.map +1 -1
  26. package/dist/api/harness-auth-status-endpoint.d.ts +21 -0
  27. package/dist/api/harness-auth-status-endpoint.js +17 -0
  28. package/dist/api/harness-auth-status-endpoint.js.map +1 -0
  29. package/dist/api/launcher-endpoints.js +6 -1
  30. package/dist/api/launcher-endpoints.js.map +1 -1
  31. package/dist/api/launcher-status.d.ts +2 -0
  32. package/dist/api/launcher-status.js.map +1 -1
  33. package/dist/api/launcher-tasks.d.ts +47 -0
  34. package/dist/api/launcher-tasks.js +88 -3
  35. package/dist/api/launcher-tasks.js.map +1 -1
  36. package/dist/api/loop-completion-build.d.ts +2 -2
  37. package/dist/api/loop-completion-build.js +2 -3
  38. package/dist/api/loop-completion-build.js.map +1 -1
  39. package/dist/api/operator-artifacts-endpoint.js +1 -1
  40. package/dist/api/operator-artifacts-endpoint.js.map +1 -1
  41. package/dist/api/portfolio-v0-build.d.ts +2 -1
  42. package/dist/api/portfolio-v0-build.js +5 -7
  43. package/dist/api/portfolio-v0-build.js.map +1 -1
  44. package/dist/api/prediction-v1-build.d.ts +2 -2
  45. package/dist/api/prediction-v1-build.js +5 -7
  46. package/dist/api/prediction-v1-build.js.map +1 -1
  47. package/dist/api/rewards-build.d.ts +8 -1
  48. package/dist/api/rewards-build.js +32 -4
  49. package/dist/api/rewards-build.js.map +1 -1
  50. package/dist/api/rewards-endpoint.d.ts +12 -0
  51. package/dist/api/rewards-endpoint.js +46 -0
  52. package/dist/api/rewards-endpoint.js.map +1 -0
  53. package/dist/api/run-outcome.d.ts +49 -0
  54. package/dist/api/run-outcome.js +65 -0
  55. package/dist/api/run-outcome.js.map +1 -0
  56. package/dist/api/server.d.ts +6 -16
  57. package/dist/api/server.js +36 -26
  58. package/dist/api/server.js.map +1 -1
  59. package/dist/api/setup-endpoints.d.ts +32 -0
  60. package/dist/api/setup-endpoints.js +232 -32
  61. package/dist/api/setup-endpoints.js.map +1 -1
  62. package/dist/api/solvernets-endpoints.js +1 -1
  63. package/dist/api/solvernets-endpoints.js.map +1 -1
  64. package/dist/api/status-build.d.ts +74 -64
  65. package/dist/api/status-build.js +31 -55
  66. package/dist/api/status-build.js.map +1 -1
  67. package/dist/api/stop-hook.d.ts +1 -1
  68. package/dist/api/stop-hook.js +1 -1
  69. package/dist/api/stop-hook.js.map +1 -1
  70. package/dist/api/task-run-routing.d.ts +1 -1
  71. package/dist/api/task-runs-build.d.ts +21 -2
  72. package/dist/api/task-runs-build.js +27 -7
  73. package/dist/api/task-runs-build.js.map +1 -1
  74. package/dist/build-info.json +4 -4
  75. package/dist/build-meta.json +1 -1
  76. package/dist/captures/ingest.d.ts +21 -0
  77. package/dist/captures/ingest.js +133 -0
  78. package/dist/captures/ingest.js.map +1 -0
  79. package/dist/captures/live-publisher.d.ts +9 -0
  80. package/dist/captures/live-publisher.js +5 -3
  81. package/dist/captures/live-publisher.js.map +1 -1
  82. package/dist/captures/publish.d.ts +25 -0
  83. package/dist/captures/publish.js +17 -7
  84. package/dist/captures/publish.js.map +1 -1
  85. package/dist/cli/commands/backfill-failed-deliveries.d.ts +40 -0
  86. package/dist/cli/commands/backfill-failed-deliveries.js +172 -0
  87. package/dist/cli/commands/backfill-failed-deliveries.js.map +1 -0
  88. package/dist/cli/commands/doctor.js +4 -7
  89. package/dist/cli/commands/doctor.js.map +1 -1
  90. package/dist/cli/commands/eval.d.ts +11 -0
  91. package/dist/cli/commands/eval.js +103 -23
  92. package/dist/cli/commands/eval.js.map +1 -1
  93. package/dist/cli/commands/kill.d.ts +14 -0
  94. package/dist/cli/commands/kill.js +141 -0
  95. package/dist/cli/commands/kill.js.map +1 -0
  96. package/dist/cli/commands/rewards.js +17 -15
  97. package/dist/cli/commands/rewards.js.map +1 -1
  98. package/dist/cli/commands/run.js +18 -4
  99. package/dist/cli/commands/run.js.map +1 -1
  100. package/dist/cli/commands/solver-nets.d.ts +6 -0
  101. package/dist/cli/commands/solver-nets.js +145 -2
  102. package/dist/cli/commands/solver-nets.js.map +1 -1
  103. package/dist/cli/commands/solver-plugins.js +2 -2
  104. package/dist/cli/commands/solver-plugins.js.map +1 -1
  105. package/dist/cli/commands/stop.js +97 -21
  106. package/dist/cli/commands/stop.js.map +1 -1
  107. package/dist/cli/commands/update.js +8 -0
  108. package/dist/cli/commands/update.js.map +1 -1
  109. package/dist/cli/commands/version.js +4 -0
  110. package/dist/cli/commands/version.js.map +1 -1
  111. package/dist/cli/execution-context.js +2 -1
  112. package/dist/cli/execution-context.js.map +1 -1
  113. package/dist/cli/index.js +4 -0
  114. package/dist/cli/index.js.map +1 -1
  115. package/dist/cli/introspection-context.js +0 -3
  116. package/dist/cli/introspection-context.js.map +1 -1
  117. package/dist/cli/ui-auto-open-gate.d.ts +22 -0
  118. package/dist/cli/ui-auto-open-gate.js +24 -0
  119. package/dist/cli/ui-auto-open-gate.js.map +1 -0
  120. package/dist/config.d.ts +258 -540
  121. package/dist/config.js +280 -193
  122. package/dist/config.js.map +1 -1
  123. package/dist/conformance/execution-envelope-authenticator.d.ts +2 -0
  124. package/dist/conformance/execution-envelope-authenticator.js +38 -0
  125. package/dist/conformance/execution-envelope-authenticator.js.map +1 -0
  126. package/dist/contracts/abis.d.ts +100 -0
  127. package/dist/contracts/abis.js +58 -0
  128. package/dist/contracts/abis.js.map +1 -0
  129. package/dist/contracts/addresses.d.ts +36 -0
  130. package/dist/contracts/addresses.js +60 -0
  131. package/dist/contracts/addresses.js.map +1 -0
  132. package/dist/corpus/acquire.d.ts +1 -40
  133. package/dist/corpus/acquire.js +1 -212
  134. package/dist/corpus/acquire.js.map +1 -1
  135. package/dist/corpus/cache.d.ts +1 -14
  136. package/dist/corpus/cache.js +1 -17
  137. package/dist/corpus/cache.js.map +1 -1
  138. package/dist/corpus/fetch-artifact.d.ts +1 -0
  139. package/dist/corpus/fetch-artifact.js +2 -0
  140. package/dist/corpus/fetch-artifact.js.map +1 -0
  141. package/dist/corpus/fetch.d.ts +3 -7
  142. package/dist/corpus/fetch.js +9 -22
  143. package/dist/corpus/fetch.js.map +1 -1
  144. package/dist/corpus/index.d.ts +2 -3
  145. package/dist/corpus/index.js +19 -110
  146. package/dist/corpus/index.js.map +1 -1
  147. package/dist/corpus/onchain-query.d.ts +0 -1
  148. package/dist/corpus/onchain-query.js +2 -5
  149. package/dist/corpus/onchain-query.js.map +1 -1
  150. package/dist/corpus/route-resolver.d.ts +1 -16
  151. package/dist/corpus/route-resolver.js +1 -19
  152. package/dist/corpus/route-resolver.js.map +1 -1
  153. package/dist/corpus/types.d.ts +1 -17
  154. package/dist/corpus/types.js +1 -34
  155. package/dist/corpus/types.js.map +1 -1
  156. package/dist/daemon/balance-topup-loop.js +27 -9
  157. package/dist/daemon/balance-topup-loop.js.map +1 -1
  158. package/dist/daemon/checkpoint-loop.js +2 -2
  159. package/dist/daemon/creator.d.ts +1 -0
  160. package/dist/daemon/creator.js +39 -25
  161. package/dist/daemon/creator.js.map +1 -1
  162. package/dist/daemon/daemon.d.ts +31 -12
  163. package/dist/daemon/daemon.js +138 -32
  164. package/dist/daemon/daemon.js.map +1 -1
  165. package/dist/daemon/delivery-watcher.d.ts +9 -0
  166. package/dist/daemon/delivery-watcher.js +24 -1
  167. package/dist/daemon/delivery-watcher.js.map +1 -1
  168. package/dist/daemon/eviction-loop.d.ts +3 -0
  169. package/dist/daemon/eviction-loop.js +7 -4
  170. package/dist/daemon/eviction-loop.js.map +1 -1
  171. package/dist/daemon/harvest-loop.d.ts +72 -0
  172. package/dist/daemon/harvest-loop.js +474 -0
  173. package/dist/daemon/harvest-loop.js.map +1 -0
  174. package/dist/daemon/join-applier.d.ts +40 -0
  175. package/dist/daemon/join-applier.js +52 -0
  176. package/dist/daemon/join-applier.js.map +1 -0
  177. package/dist/daemon/loop-heartbeat.d.ts +95 -0
  178. package/dist/daemon/loop-heartbeat.js +80 -0
  179. package/dist/daemon/loop-heartbeat.js.map +1 -0
  180. package/dist/{api/peers.js → daemon/peer-sync.js} +3 -1
  181. package/dist/daemon/peer-sync.js.map +1 -0
  182. package/dist/daemon/reward-claim-loop.js +28 -10
  183. package/dist/daemon/reward-claim-loop.js.map +1 -1
  184. package/dist/daemon/skip-log-dedup.d.ts +1 -1
  185. package/dist/daemon/skip-log-dedup.js +3 -0
  186. package/dist/daemon/skip-log-dedup.js.map +1 -1
  187. package/dist/daemon/spend-cap-gate.d.ts +0 -6
  188. package/dist/daemon/spend-cap-gate.js +1 -8
  189. package/dist/daemon/spend-cap-gate.js.map +1 -1
  190. package/dist/daemon/watchdog-loop.d.ts +84 -0
  191. package/dist/daemon/watchdog-loop.js +91 -0
  192. package/dist/daemon/watchdog-loop.js.map +1 -0
  193. package/dist/dashboard/assets/index-C988eu68.js +95 -0
  194. package/dist/dashboard/assets/index-CawZUjVI.css +1 -0
  195. package/dist/dashboard/index.html +2 -2
  196. package/dist/discovery/http.d.ts +10 -0
  197. package/dist/discovery/http.js +178 -335
  198. package/dist/discovery/http.js.map +1 -1
  199. package/dist/discovery/onchain.js +30 -9
  200. package/dist/discovery/onchain.js.map +1 -1
  201. package/dist/discovery/types.d.ts +98 -52
  202. package/dist/discovery/types.js.map +1 -1
  203. package/dist/discovery/with-fallback.js +19 -0
  204. package/dist/discovery/with-fallback.js.map +1 -1
  205. package/dist/earning/bootstrap-run.d.ts +25 -0
  206. package/dist/earning/bootstrap-run.js +315 -0
  207. package/dist/earning/bootstrap-run.js.map +1 -0
  208. package/dist/earning/bootstrap.d.ts +11 -14
  209. package/dist/earning/bootstrap.js +56 -204
  210. package/dist/earning/bootstrap.js.map +1 -1
  211. package/dist/earning/contracts.d.ts +2 -232
  212. package/dist/earning/contracts.js +16 -205
  213. package/dist/earning/contracts.js.map +1 -1
  214. package/dist/earning/faucet-topup-store.d.ts +41 -0
  215. package/dist/earning/faucet-topup-store.js +89 -0
  216. package/dist/earning/faucet-topup-store.js.map +1 -0
  217. package/dist/earning/master-gas.d.ts +10 -0
  218. package/dist/earning/master-gas.js +11 -0
  219. package/dist/earning/master-gas.js.map +1 -0
  220. package/dist/earning/safe-adapter.js +1 -45
  221. package/dist/earning/safe-adapter.js.map +1 -1
  222. package/dist/earning/steps/context.d.ts +42 -0
  223. package/dist/earning/steps/context.js +4 -0
  224. package/dist/earning/steps/context.js.map +1 -0
  225. package/dist/earning/steps/fleet-identity-register.d.ts +4 -0
  226. package/dist/earning/steps/fleet-identity-register.js +65 -0
  227. package/dist/earning/steps/fleet-identity-register.js.map +1 -0
  228. package/dist/earning/steps/fleet-safe-deploy.d.ts +4 -0
  229. package/dist/earning/steps/fleet-safe-deploy.js +62 -0
  230. package/dist/earning/steps/fleet-safe-deploy.js.map +1 -0
  231. package/dist/earning/steps/fleet-safe-predict.d.ts +4 -0
  232. package/dist/earning/steps/fleet-safe-predict.js +18 -0
  233. package/dist/earning/steps/fleet-safe-predict.js.map +1 -0
  234. package/dist/earning/steps/receipt-parsing.d.ts +12 -0
  235. package/dist/earning/steps/receipt-parsing.js +71 -0
  236. package/dist/earning/steps/receipt-parsing.js.map +1 -0
  237. package/dist/earning/stolas-claim.js +8 -8
  238. package/dist/earning/stolas-claim.js.map +1 -1
  239. package/dist/earning/{jinn-rewards.d.ts → stolas-staking.d.ts} +4 -8
  240. package/dist/earning/{jinn-rewards.js → stolas-staking.js} +25 -23
  241. package/dist/earning/stolas-staking.js.map +1 -0
  242. package/dist/earning/testnet-setup-migration.d.ts +1 -0
  243. package/dist/earning/testnet-setup-migration.js +7 -2
  244. package/dist/earning/testnet-setup-migration.js.map +1 -1
  245. package/dist/earning/types.d.ts +9 -9
  246. package/dist/earning/types.js +1 -1
  247. package/dist/earning/types.js.map +1 -1
  248. package/dist/earning/viem-clients.d.ts +3 -19
  249. package/dist/earning/viem-clients.js +4 -31
  250. package/dist/earning/viem-clients.js.map +1 -1
  251. package/dist/erc8004/abis.d.ts +16 -0
  252. package/dist/erc8004/abis.js +12 -0
  253. package/dist/erc8004/abis.js.map +1 -1
  254. package/dist/erc8004/addresses.d.ts +6 -5
  255. package/dist/erc8004/addresses.js +7 -5
  256. package/dist/erc8004/addresses.js.map +1 -1
  257. package/dist/erc8004/identity.d.ts +54 -1
  258. package/dist/erc8004/identity.js +114 -5
  259. package/dist/erc8004/identity.js.map +1 -1
  260. package/dist/erc8004/index.d.ts +5 -2
  261. package/dist/erc8004/index.js +6 -2
  262. package/dist/erc8004/index.js.map +1 -1
  263. package/dist/erc8004/manifest-consumer.d.ts +32 -0
  264. package/dist/erc8004/manifest-consumer.js +95 -0
  265. package/dist/erc8004/manifest-consumer.js.map +1 -0
  266. package/dist/erc8004/manifest-registry.d.ts +1 -0
  267. package/dist/erc8004/manifest-registry.js +2 -0
  268. package/dist/erc8004/manifest-registry.js.map +1 -0
  269. package/dist/erc8004/merkle.d.ts +1 -0
  270. package/dist/erc8004/merkle.js +2 -0
  271. package/dist/erc8004/merkle.js.map +1 -0
  272. package/dist/erc8004/publisher-safe-resolver.d.ts +32 -0
  273. package/dist/erc8004/publisher-safe-resolver.js +102 -0
  274. package/dist/erc8004/publisher-safe-resolver.js.map +1 -0
  275. package/dist/erc8004/reputation.js +16 -12
  276. package/dist/erc8004/reputation.js.map +1 -1
  277. package/dist/erc8004/validation.js +5 -4
  278. package/dist/erc8004/validation.js.map +1 -1
  279. package/dist/eval/attribution-instrument.d.ts +190 -0
  280. package/dist/eval/attribution-instrument.js +719 -0
  281. package/dist/eval/attribution-instrument.js.map +1 -0
  282. package/dist/eval/attribution-verdict-evidence.d.ts +41 -0
  283. package/dist/eval/attribution-verdict-evidence.js +124 -0
  284. package/dist/eval/attribution-verdict-evidence.js.map +1 -0
  285. package/dist/eval/capability-slate.d.ts +64 -0
  286. package/dist/eval/capability-slate.js +136 -0
  287. package/dist/eval/capability-slate.js.map +1 -0
  288. package/dist/eval/capability-stats.d.ts +39 -0
  289. package/dist/eval/capability-stats.js +123 -0
  290. package/dist/eval/capability-stats.js.map +1 -0
  291. package/dist/eval/contested-band.d.ts +18 -0
  292. package/dist/eval/contested-band.js +19 -0
  293. package/dist/eval/contested-band.js.map +1 -0
  294. package/dist/eval/corpus-index.d.ts +21 -0
  295. package/dist/eval/corpus-index.js +55 -0
  296. package/dist/eval/corpus-index.js.map +1 -0
  297. package/dist/eval/disjointness.d.ts +26 -0
  298. package/dist/eval/disjointness.js +67 -0
  299. package/dist/eval/disjointness.js.map +1 -0
  300. package/dist/eval/mcnemar-power.d.ts +14 -0
  301. package/dist/eval/mcnemar-power.js +40 -0
  302. package/dist/eval/mcnemar-power.js.map +1 -0
  303. package/dist/eval/orchestrator.d.ts +64 -3
  304. package/dist/eval/orchestrator.js +37 -19
  305. package/dist/eval/orchestrator.js.map +1 -1
  306. package/dist/eval/paired.d.ts +2 -68
  307. package/dist/eval/paired.js +2 -92
  308. package/dist/eval/paired.js.map +1 -1
  309. package/dist/eval/resolve-slate-tasks.js +2 -2
  310. package/dist/eval/resolve-slate-tasks.js.map +1 -1
  311. package/dist/eval/screen-discovery.d.ts +5 -8
  312. package/dist/eval/screen-discovery.js +13 -55
  313. package/dist/eval/screen-discovery.js.map +1 -1
  314. package/dist/events/types.d.ts +1 -1
  315. package/dist/events/types.js +1 -1
  316. package/dist/events/types.js.map +1 -1
  317. package/dist/harnesses/auth-source.d.ts +51 -0
  318. package/dist/harnesses/auth-source.js +155 -0
  319. package/dist/harnesses/auth-source.js.map +1 -0
  320. package/dist/harnesses/engine/backfill-failed-deliveries.d.ts +59 -0
  321. package/dist/harnesses/engine/backfill-failed-deliveries.js +94 -0
  322. package/dist/harnesses/engine/backfill-failed-deliveries.js.map +1 -0
  323. package/dist/harnesses/engine/canonical-json.d.ts +2 -1
  324. package/dist/harnesses/engine/canonical-json.js +2 -67
  325. package/dist/harnesses/engine/canonical-json.js.map +1 -1
  326. package/dist/harnesses/engine/corpus-knowledge.d.ts +67 -0
  327. package/dist/harnesses/engine/corpus-knowledge.js +194 -0
  328. package/dist/harnesses/engine/corpus-knowledge.js.map +1 -0
  329. package/dist/harnesses/engine/engine.d.ts +85 -1
  330. package/dist/harnesses/engine/engine.js +313 -6
  331. package/dist/harnesses/engine/engine.js.map +1 -1
  332. package/dist/harnesses/engine/envelope-assembly.d.ts +9 -1
  333. package/dist/harnesses/engine/envelope-assembly.js +6 -0
  334. package/dist/harnesses/engine/envelope-assembly.js.map +1 -1
  335. package/dist/harnesses/engine/generator-model.d.ts +36 -0
  336. package/dist/harnesses/engine/generator-model.js +118 -0
  337. package/dist/harnesses/engine/generator-model.js.map +1 -0
  338. package/dist/harnesses/engine/packaging.js +5 -5
  339. package/dist/harnesses/engine/packaging.js.map +1 -1
  340. package/dist/harnesses/engine/persistence.d.ts +37 -62
  341. package/dist/harnesses/engine/persistence.js +66 -0
  342. package/dist/harnesses/engine/persistence.js.map +1 -1
  343. package/dist/harnesses/impls/_evaluator-base.d.ts +48 -0
  344. package/dist/harnesses/impls/_evaluator-base.js +35 -0
  345. package/dist/harnesses/impls/_evaluator-base.js.map +1 -0
  346. package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.d.ts +1 -1
  347. package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.js +1 -1
  348. package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.js.map +1 -1
  349. package/dist/harnesses/impls/claude-mcp-prediction/index.d.ts +2 -3
  350. package/dist/harnesses/impls/claude-mcp-prediction/index.js +29 -99
  351. package/dist/harnesses/impls/claude-mcp-prediction/index.js.map +1 -1
  352. package/dist/harnesses/impls/claude-mcp-prediction/mcp-tools.js +4 -21
  353. package/dist/harnesses/impls/claude-mcp-prediction/mcp-tools.js.map +1 -1
  354. package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.d.ts +2 -0
  355. package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.js +1 -1
  356. package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.js.map +1 -1
  357. package/dist/harnesses/impls/claude-mcp-prediction-apy/index.js +30 -79
  358. package/dist/harnesses/impls/claude-mcp-prediction-apy/index.js.map +1 -1
  359. package/dist/harnesses/impls/claude-mcp-prediction-apy/mcp-tools.js +4 -19
  360. package/dist/harnesses/impls/claude-mcp-prediction-apy/mcp-tools.js.map +1 -1
  361. package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.d.ts +2 -0
  362. package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.js +1 -1
  363. package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.js.map +1 -1
  364. package/dist/harnesses/impls/claude-mcp-shared/mcp-server-script.d.ts +39 -0
  365. package/dist/harnesses/impls/claude-mcp-shared/mcp-server-script.js +62 -0
  366. package/dist/harnesses/impls/claude-mcp-shared/mcp-server-script.js.map +1 -0
  367. package/dist/harnesses/impls/claude-mcp-shared/mcp-server.d.ts +40 -0
  368. package/dist/harnesses/impls/claude-mcp-shared/mcp-server.js +44 -0
  369. package/dist/harnesses/impls/claude-mcp-shared/mcp-server.js.map +1 -0
  370. package/dist/harnesses/impls/claude-mcp-shared/single-session-harness.d.ts +56 -0
  371. package/dist/harnesses/impls/claude-mcp-shared/single-session-harness.js +79 -0
  372. package/dist/harnesses/impls/claude-mcp-shared/single-session-harness.js.map +1 -0
  373. package/dist/harnesses/impls/hermes-agent/adapter.js +56 -2
  374. package/dist/harnesses/impls/hermes-agent/adapter.js.map +1 -1
  375. package/dist/harnesses/impls/hermes-agent/bootstrap.d.ts +6 -0
  376. package/dist/harnesses/impls/hermes-agent/bootstrap.js +7 -2
  377. package/dist/harnesses/impls/hermes-agent/bootstrap.js.map +1 -1
  378. package/dist/harnesses/impls/hermes-agent/harness.d.ts +8 -0
  379. package/dist/harnesses/impls/hermes-agent/harness.js +21 -0
  380. package/dist/harnesses/impls/hermes-agent/harness.js.map +1 -1
  381. package/dist/harnesses/impls/index.js +8 -1
  382. package/dist/harnesses/impls/index.js.map +1 -1
  383. package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.d.ts +34 -0
  384. package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.js +111 -0
  385. package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.js.map +1 -0
  386. package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.d.ts +24 -0
  387. package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.js +19 -0
  388. package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.js.map +1 -0
  389. package/dist/harnesses/impls/jinn-repo-evaluator/harness.d.ts +97 -0
  390. package/dist/harnesses/impls/jinn-repo-evaluator/harness.js +265 -0
  391. package/dist/harnesses/impls/jinn-repo-evaluator/harness.js.map +1 -0
  392. package/dist/harnesses/impls/jinn-repo-evaluator/live-eval-runner.d.ts +68 -0
  393. package/dist/harnesses/impls/jinn-repo-evaluator/live-eval-runner.js +223 -0
  394. package/dist/harnesses/impls/jinn-repo-evaluator/live-eval-runner.js.map +1 -0
  395. package/dist/harnesses/impls/jinn-repo-evaluator/repro.d.ts +32 -0
  396. package/dist/harnesses/impls/jinn-repo-evaluator/repro.js +73 -0
  397. package/dist/harnesses/impls/jinn-repo-evaluator/repro.js.map +1 -0
  398. package/dist/harnesses/impls/jinn-repo-evaluator/scope-tests.d.ts +62 -0
  399. package/dist/harnesses/impls/jinn-repo-evaluator/scope-tests.js +91 -0
  400. package/dist/harnesses/impls/jinn-repo-evaluator/scope-tests.js.map +1 -0
  401. package/dist/harnesses/impls/learner/adapters/claude-code.js +9 -2
  402. package/dist/harnesses/impls/learner/adapters/claude-code.js.map +1 -1
  403. package/dist/harnesses/impls/learner/adapters/codex-code.d.ts +11 -1
  404. package/dist/harnesses/impls/learner/adapters/codex-code.js +130 -15
  405. package/dist/harnesses/impls/learner/adapters/codex-code.js.map +1 -1
  406. package/dist/harnesses/impls/learner/harness.d.ts +12 -0
  407. package/dist/harnesses/impls/learner/harness.js +42 -0
  408. package/dist/harnesses/impls/learner/harness.js.map +1 -1
  409. package/dist/harnesses/impls/learner/harvest.js +51 -1
  410. package/dist/harnesses/impls/learner/harvest.js.map +1 -1
  411. package/dist/harnesses/impls/portfolio-v0-evaluator/index.d.ts +5 -15
  412. package/dist/harnesses/impls/portfolio-v0-evaluator/index.js +10 -29
  413. package/dist/harnesses/impls/portfolio-v0-evaluator/index.js.map +1 -1
  414. package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.d.ts +5 -15
  415. package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js +10 -23
  416. package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js.map +1 -1
  417. package/dist/harnesses/impls/prediction-v0-evaluator/index.d.ts +5 -15
  418. package/dist/harnesses/impls/prediction-v0-evaluator/index.js +10 -25
  419. package/dist/harnesses/impls/prediction-v0-evaluator/index.js.map +1 -1
  420. package/dist/harnesses/impls/stub.d.ts +2 -2
  421. package/dist/harnesses/impls/stub.js +2 -2
  422. package/dist/harnesses/impls/swe-rebench-v2-evaluator/eval-runner.js +16 -2
  423. package/dist/harnesses/impls/swe-rebench-v2-evaluator/eval-runner.js.map +1 -1
  424. package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.d.ts +65 -6
  425. package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js +590 -35
  426. package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js.map +1 -1
  427. package/dist/harnesses/impls/swe-rebench-v2-evaluator/hf-fetcher.js +4 -1
  428. package/dist/harnesses/impls/swe-rebench-v2-evaluator/hf-fetcher.js.map +1 -1
  429. package/dist/harnesses/impls/swe-rebench-v2-evaluator/routing-task-row-fetcher.d.ts +37 -0
  430. package/dist/harnesses/impls/swe-rebench-v2-evaluator/routing-task-row-fetcher.js +59 -0
  431. package/dist/harnesses/impls/swe-rebench-v2-evaluator/routing-task-row-fetcher.js.map +1 -0
  432. package/dist/harnesses/impls/swe-rebench-v2-evaluator/upstream-patches/passed-actual.patch +21 -0
  433. package/dist/harnesses/readiness-registry.d.ts +16 -0
  434. package/dist/harnesses/readiness-registry.js +28 -6
  435. package/dist/harnesses/readiness-registry.js.map +1 -1
  436. package/dist/harnesses/types.d.ts +12 -0
  437. package/dist/learner/verification-gate.d.ts +53 -0
  438. package/dist/learner/verification-gate.js +80 -0
  439. package/dist/learner/verification-gate.js.map +1 -0
  440. package/dist/lifecycle/process-discovery.d.ts +41 -0
  441. package/dist/lifecycle/process-discovery.js +109 -0
  442. package/dist/lifecycle/process-discovery.js.map +1 -0
  443. package/dist/main.js +358 -581
  444. package/dist/main.js.map +1 -1
  445. package/dist/mcp/acquire-artifact.d.ts +3 -3
  446. package/dist/mcp/acquire-artifact.js +3 -3
  447. package/dist/mcp/operator-server.js +1 -1
  448. package/dist/mcp/operator-server.js.map +1 -1
  449. package/dist/mcp/server.js +5 -6
  450. package/dist/mcp/server.js.map +1 -1
  451. package/dist/monitoring/net-liveness.d.ts +143 -0
  452. package/dist/monitoring/net-liveness.js +301 -0
  453. package/dist/monitoring/net-liveness.js.map +1 -0
  454. package/dist/observability/emit-event.d.ts +1 -1
  455. package/dist/observability/emit-event.js +2 -4
  456. package/dist/observability/emit-event.js.map +1 -1
  457. package/dist/observability/progress.d.ts +11 -0
  458. package/dist/observability/progress.js +16 -0
  459. package/dist/observability/progress.js.map +1 -0
  460. package/dist/pilot/arm-homes.d.ts +39 -0
  461. package/dist/pilot/arm-homes.js +104 -0
  462. package/dist/pilot/arm-homes.js.map +1 -0
  463. package/dist/pilot/cost.d.ts +19 -0
  464. package/dist/pilot/cost.js +31 -0
  465. package/dist/pilot/cost.js.map +1 -0
  466. package/dist/pilot/instance.d.ts +26 -0
  467. package/dist/pilot/instance.js +53 -0
  468. package/dist/pilot/instance.js.map +1 -0
  469. package/dist/pilot/pipeline.d.ts +17 -0
  470. package/dist/pilot/pipeline.js +35 -0
  471. package/dist/pilot/pipeline.js.map +1 -0
  472. package/dist/pilot/repo.d.ts +37 -0
  473. package/dist/pilot/repo.js +65 -0
  474. package/dist/pilot/repo.js.map +1 -0
  475. package/dist/pilot/resume.d.ts +101 -0
  476. package/dist/pilot/resume.js +204 -0
  477. package/dist/pilot/resume.js.map +1 -0
  478. package/dist/pilot/solve.d.ts +23 -0
  479. package/dist/pilot/solve.js +37 -0
  480. package/dist/pilot/solve.js.map +1 -0
  481. package/dist/pilot/tally.d.ts +42 -0
  482. package/dist/pilot/tally.js +100 -0
  483. package/dist/pilot/tally.js.map +1 -0
  484. package/dist/pilot/task-selection.d.ts +27 -0
  485. package/dist/pilot/task-selection.js +112 -0
  486. package/dist/pilot/task-selection.js.map +1 -0
  487. package/dist/plugins/resolvers.js +7 -4
  488. package/dist/plugins/resolvers.js.map +1 -1
  489. package/dist/plugins/types.d.ts +8 -0
  490. package/dist/preflight/deployment-readiness.d.ts +2 -22
  491. package/dist/preflight/deployment-readiness.js +1 -59
  492. package/dist/preflight/deployment-readiness.js.map +1 -1
  493. package/dist/preflight/pidfile-liveness.d.ts +3 -2
  494. package/dist/preflight/pidfile-liveness.js +18 -2
  495. package/dist/preflight/pidfile-liveness.js.map +1 -1
  496. package/dist/preflight/rpc-network.d.ts +10 -3
  497. package/dist/preflight/rpc-network.js +46 -13
  498. package/dist/preflight/rpc-network.js.map +1 -1
  499. package/dist/preflight/stable-cwd.d.ts +29 -0
  500. package/dist/preflight/stable-cwd.js +98 -0
  501. package/dist/preflight/stable-cwd.js.map +1 -0
  502. package/dist/preflight/version-check.d.ts +41 -0
  503. package/dist/preflight/version-check.js +80 -0
  504. package/dist/preflight/version-check.js.map +1 -0
  505. package/dist/rpc/transport.d.ts +7 -5
  506. package/dist/rpc/transport.js +8 -6
  507. package/dist/rpc/transport.js.map +1 -1
  508. package/dist/scripts/swe-rebench-v2-evaluator.bundle.v1.patch +79 -0
  509. package/dist/solver-nets/registry.d.ts +19 -0
  510. package/dist/solver-nets/registry.js +99 -66
  511. package/dist/solver-nets/registry.js.map +1 -1
  512. package/dist/solver-types/_jinn-repo-pool.d.ts +61 -0
  513. package/dist/solver-types/_jinn-repo-pool.js +34 -0
  514. package/dist/solver-types/_jinn-repo-pool.js.map +1 -0
  515. package/dist/solver-types/_swe-rebench-v2-commit-echo-git.d.ts +46 -0
  516. package/dist/solver-types/_swe-rebench-v2-commit-echo-git.js +192 -0
  517. package/dist/solver-types/_swe-rebench-v2-commit-echo-git.js.map +1 -0
  518. package/dist/solver-types/_swe-rebench-v2-commit-echo.d.ts +57 -0
  519. package/dist/solver-types/_swe-rebench-v2-commit-echo.js +57 -0
  520. package/dist/solver-types/_swe-rebench-v2-commit-echo.js.map +1 -0
  521. package/dist/solver-types/_swe-rebench-v2-differential-admission.d.ts +395 -0
  522. package/dist/solver-types/_swe-rebench-v2-differential-admission.js +231 -0
  523. package/dist/solver-types/_swe-rebench-v2-differential-admission.js.map +1 -0
  524. package/dist/solver-types/_swe-rebench-v2-empirical-tests.d.ts +47 -0
  525. package/dist/solver-types/_swe-rebench-v2-empirical-tests.js +67 -0
  526. package/dist/solver-types/_swe-rebench-v2-empirical-tests.js.map +1 -0
  527. package/dist/solver-types/_swe-rebench-v2-escrow.d.ts +2 -0
  528. package/dist/solver-types/_swe-rebench-v2-escrow.js +13 -0
  529. package/dist/solver-types/_swe-rebench-v2-escrow.js.map +1 -1
  530. package/dist/solver-types/_swe-rebench-v2-guards.d.ts +44 -0
  531. package/dist/solver-types/_swe-rebench-v2-guards.js +111 -0
  532. package/dist/solver-types/_swe-rebench-v2-guards.js.map +1 -0
  533. package/dist/solver-types/_swe-rebench-v2-harvest-state.d.ts +191 -0
  534. package/dist/solver-types/_swe-rebench-v2-harvest-state.js +349 -0
  535. package/dist/solver-types/_swe-rebench-v2-harvest-state.js.map +1 -0
  536. package/dist/solver-types/_swe-rebench-v2-harvest.d.ts +123 -0
  537. package/dist/solver-types/_swe-rebench-v2-harvest.js +539 -0
  538. package/dist/solver-types/_swe-rebench-v2-harvest.js.map +1 -0
  539. package/dist/solver-types/_swe-rebench-v2-held-out-slate.d.ts +1 -1
  540. package/dist/solver-types/_swe-rebench-v2-held-out-slate.js +1 -1
  541. package/dist/solver-types/_swe-rebench-v2-held-out-slate.js.map +1 -1
  542. package/dist/solver-types/_swe-rebench-v2-hunk-echo.d.ts +28 -0
  543. package/dist/solver-types/_swe-rebench-v2-hunk-echo.js +32 -0
  544. package/dist/solver-types/_swe-rebench-v2-hunk-echo.js.map +1 -0
  545. package/dist/solver-types/_swe-rebench-v2-lookup-tripwire.d.ts +16 -0
  546. package/dist/solver-types/_swe-rebench-v2-lookup-tripwire.js +18 -0
  547. package/dist/solver-types/_swe-rebench-v2-lookup-tripwire.js.map +1 -0
  548. package/dist/solver-types/_swe-rebench-v2-mineable-store-port.d.ts +74 -0
  549. package/dist/solver-types/_swe-rebench-v2-mineable-store-port.js +9 -0
  550. package/dist/solver-types/_swe-rebench-v2-mineable-store-port.js.map +1 -0
  551. package/dist/solver-types/_swe-rebench-v2-mineable-store.d.ts +51 -0
  552. package/dist/solver-types/_swe-rebench-v2-mineable-store.js +171 -0
  553. package/dist/solver-types/_swe-rebench-v2-mineable-store.js.map +1 -0
  554. package/dist/solver-types/_swe-rebench-v2-mint-cli.d.ts +82 -0
  555. package/dist/solver-types/_swe-rebench-v2-mint-cli.js +434 -0
  556. package/dist/solver-types/_swe-rebench-v2-mint-cli.js.map +1 -0
  557. package/dist/solver-types/_swe-rebench-v2-minted-environment-verifier.d.ts +25 -0
  558. package/dist/solver-types/_swe-rebench-v2-minted-environment-verifier.js +101 -0
  559. package/dist/solver-types/_swe-rebench-v2-minted-environment-verifier.js.map +1 -0
  560. package/dist/solver-types/_swe-rebench-v2-minted-pool.d.ts +179 -0
  561. package/dist/solver-types/_swe-rebench-v2-minted-pool.js +408 -0
  562. package/dist/solver-types/_swe-rebench-v2-minted-pool.js.map +1 -0
  563. package/dist/solver-types/_swe-rebench-v2-session-echo.d.ts +36 -0
  564. package/dist/solver-types/_swe-rebench-v2-session-echo.js +193 -0
  565. package/dist/solver-types/_swe-rebench-v2-session-echo.js.map +1 -0
  566. package/dist/solver-types/_swe-rebench-v2-substrate.d.ts +11 -0
  567. package/dist/solver-types/_swe-rebench-v2-substrate.js +24 -0
  568. package/dist/solver-types/_swe-rebench-v2-substrate.js.map +1 -1
  569. package/dist/solver-types/_swe-rebench-v2-synthetic-claim.d.ts +9 -0
  570. package/dist/solver-types/_swe-rebench-v2-synthetic-claim.js +16 -0
  571. package/dist/solver-types/_swe-rebench-v2-synthetic-claim.js.map +1 -0
  572. package/dist/solver-types/_swe-rebench-v2-validated-pool.d.ts +144 -1
  573. package/dist/solver-types/_swe-rebench-v2-validated-pool.js +292 -14
  574. package/dist/solver-types/_swe-rebench-v2-validated-pool.js.map +1 -1
  575. package/dist/solver-types/_swe-rebench-v2-verifier-facts.d.ts +93 -0
  576. package/dist/solver-types/_swe-rebench-v2-verifier-facts.js +583 -0
  577. package/dist/solver-types/_swe-rebench-v2-verifier-facts.js.map +1 -0
  578. package/dist/solver-types/_swe-rebench-v2-yield-report-data.d.ts +5 -0
  579. package/dist/solver-types/_swe-rebench-v2-yield-report-data.js +16 -0
  580. package/dist/solver-types/_swe-rebench-v2-yield-report-data.js.map +1 -0
  581. package/dist/solver-types/_swe-rebench-v2-yield.d.ts +51 -0
  582. package/dist/solver-types/_swe-rebench-v2-yield.js +53 -0
  583. package/dist/solver-types/_swe-rebench-v2-yield.js.map +1 -0
  584. package/dist/solver-types/index.js +2 -0
  585. package/dist/solver-types/index.js.map +1 -1
  586. package/dist/solver-types/jinn-repo-admit.d.ts +17 -0
  587. package/dist/solver-types/jinn-repo-admit.js +16 -0
  588. package/dist/solver-types/jinn-repo-admit.js.map +1 -0
  589. package/dist/solver-types/jinn-repo-auto.d.ts +60 -0
  590. package/dist/solver-types/jinn-repo-auto.js +163 -0
  591. package/dist/solver-types/jinn-repo-auto.js.map +1 -0
  592. package/dist/solver-types/jinn-repo-definition.d.ts +15 -0
  593. package/dist/solver-types/jinn-repo-definition.js +34 -0
  594. package/dist/solver-types/jinn-repo-definition.js.map +1 -0
  595. package/dist/solver-types/jinn-repo-extract.d.ts +16 -0
  596. package/dist/solver-types/jinn-repo-extract.js +33 -0
  597. package/dist/solver-types/jinn-repo-extract.js.map +1 -0
  598. package/dist/solver-types/jinn-repo-live-auto.d.ts +203 -0
  599. package/dist/solver-types/jinn-repo-live-auto.js +348 -0
  600. package/dist/solver-types/jinn-repo-live-auto.js.map +1 -0
  601. package/dist/solver-types/jinn-repo.d.ts +42 -0
  602. package/dist/solver-types/jinn-repo.js +42 -0
  603. package/dist/solver-types/jinn-repo.js.map +1 -0
  604. package/dist/solver-types/learner-loop-test.js +1 -1
  605. package/dist/solver-types/learner-loop-test.js.map +1 -1
  606. package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v3.json +34 -0
  607. package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v3.quality-screen.json +186 -0
  608. package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v3.screening-report.json +488 -0
  609. package/dist/solver-types/swe-rebench-v2-auto.d.ts +13 -0
  610. package/dist/solver-types/swe-rebench-v2-auto.js +36 -1
  611. package/dist/solver-types/swe-rebench-v2-auto.js.map +1 -1
  612. package/dist/solver-types/swe-rebench-v2.js +48 -11
  613. package/dist/solver-types/swe-rebench-v2.js.map +1 -1
  614. package/dist/solvernets/launched-record-dispatcher.d.ts +14 -0
  615. package/dist/solvernets/launched-record-dispatcher.js +28 -1
  616. package/dist/solvernets/launched-record-dispatcher.js.map +1 -1
  617. package/dist/solvernets/store.d.ts +1 -1
  618. package/dist/solvernets/store.js +1 -1
  619. package/dist/solvernets/store.js.map +1 -1
  620. package/dist/spend/credential.d.ts +2 -2
  621. package/dist/spend/credential.js +9 -3
  622. package/dist/spend/credential.js.map +1 -1
  623. package/dist/spend/spend-cap.d.ts +10 -0
  624. package/dist/spend/spend-cap.js +13 -0
  625. package/dist/spend/spend-cap.js.map +1 -0
  626. package/dist/spend/usage.js +39 -3
  627. package/dist/spend/usage.js.map +1 -1
  628. package/dist/store/store.d.ts +59 -1
  629. package/dist/store/store.js +157 -6
  630. package/dist/store/store.js.map +1 -1
  631. package/dist/task-creator/environment/adapters.d.ts +139 -0
  632. package/dist/task-creator/environment/adapters.js +446 -0
  633. package/dist/task-creator/environment/adapters.js.map +1 -0
  634. package/dist/task-creator/environment/build.d.ts +5 -0
  635. package/dist/task-creator/environment/build.js +53 -0
  636. package/dist/task-creator/environment/build.js.map +1 -0
  637. package/dist/task-creator/environment/contracts.d.ts +1338 -0
  638. package/dist/task-creator/environment/contracts.js +207 -0
  639. package/dist/task-creator/environment/contracts.js.map +1 -0
  640. package/dist/task-creator/environment/github.d.ts +25 -0
  641. package/dist/task-creator/environment/github.js +67 -0
  642. package/dist/task-creator/environment/github.js.map +1 -0
  643. package/dist/task-creator/environment/interfaces.d.ts +60 -0
  644. package/dist/task-creator/environment/interfaces.js +3 -0
  645. package/dist/task-creator/environment/interfaces.js.map +1 -0
  646. package/dist/task-creator/environment/jinn-differential-policy.d.ts +22 -0
  647. package/dist/task-creator/environment/jinn-differential-policy.js +73 -0
  648. package/dist/task-creator/environment/jinn-differential-policy.js.map +1 -0
  649. package/dist/task-creator/environment/policy.d.ts +38 -0
  650. package/dist/task-creator/environment/policy.js +51 -0
  651. package/dist/task-creator/environment/policy.js.map +1 -0
  652. package/dist/task-creator/environment/publication.d.ts +39 -0
  653. package/dist/task-creator/environment/publication.js +139 -0
  654. package/dist/task-creator/environment/publication.js.map +1 -0
  655. package/dist/task-creator/environment/publish-cli.d.ts +427 -0
  656. package/dist/task-creator/environment/publish-cli.js +180 -0
  657. package/dist/task-creator/environment/publish-cli.js.map +1 -0
  658. package/dist/task-creator/environment/recipes.d.ts +19 -0
  659. package/dist/task-creator/environment/recipes.js +122 -0
  660. package/dist/task-creator/environment/recipes.js.map +1 -0
  661. package/dist/task-creator/environment/resolver.d.ts +53 -0
  662. package/dist/task-creator/environment/resolver.js +57 -0
  663. package/dist/task-creator/environment/resolver.js.map +1 -0
  664. package/dist/task-creator/proofs/differential-receipt-bound-proof.d.ts +27 -0
  665. package/dist/task-creator/proofs/differential-receipt-bound-proof.js +86 -0
  666. package/dist/task-creator/proofs/differential-receipt-bound-proof.js.map +1 -0
  667. package/dist/task-creator/proofs/ipfs-cid.d.ts +7 -0
  668. package/dist/task-creator/proofs/ipfs-cid.js +98 -0
  669. package/dist/task-creator/proofs/ipfs-cid.js.map +1 -0
  670. package/dist/task-creator/proofs/live-proof.d.ts +99 -0
  671. package/dist/task-creator/proofs/live-proof.js +419 -0
  672. package/dist/task-creator/proofs/live-proof.js.map +1 -0
  673. package/dist/task-creator/proofs/public-repo-fixtures.d.ts +53 -0
  674. package/dist/task-creator/proofs/public-repo-fixtures.js +93 -0
  675. package/dist/task-creator/proofs/public-repo-fixtures.js.map +1 -0
  676. package/dist/task-creator/proofs/vitest-json-fixture.d.ts +40 -0
  677. package/dist/task-creator/proofs/vitest-json-fixture.js +115 -0
  678. package/dist/task-creator/proofs/vitest-json-fixture.js.map +1 -0
  679. package/dist/trajectory/emit.d.ts +6 -0
  680. package/dist/trajectory/emit.js +9 -1
  681. package/dist/trajectory/emit.js.map +1 -1
  682. package/dist/trajectory/harness-bundle-schema.d.ts +3 -3
  683. package/dist/trajectory/harness-bundle-schema.js +1 -1
  684. package/dist/trajectory/harness-bundle-schema.js.map +1 -1
  685. package/dist/trajectory/hash-chain.d.ts +1 -18
  686. package/dist/trajectory/hash-chain.js +1 -22
  687. package/dist/trajectory/hash-chain.js.map +1 -1
  688. package/dist/trajectory/index.d.ts +2 -0
  689. package/dist/trajectory/index.js +2 -0
  690. package/dist/trajectory/index.js.map +1 -1
  691. package/dist/trajectory/processors/identity-scrub.js +22 -3
  692. package/dist/trajectory/processors/identity-scrub.js.map +1 -1
  693. package/dist/trajectory/schema.d.ts +1 -598
  694. package/dist/trajectory/schema.js +1 -102
  695. package/dist/trajectory/schema.js.map +1 -1
  696. package/dist/trajectory/scrub/build.d.ts +1 -0
  697. package/dist/trajectory/scrub/build.js +2 -0
  698. package/dist/trajectory/scrub/build.js.map +1 -0
  699. package/dist/trajectory/scrub/emit-scrub.d.ts +1 -0
  700. package/dist/trajectory/scrub/emit-scrub.js +2 -0
  701. package/dist/trajectory/scrub/emit-scrub.js.map +1 -0
  702. package/dist/trajectory/scrub/key-policy.d.ts +1 -0
  703. package/dist/trajectory/scrub/key-policy.js +2 -0
  704. package/dist/trajectory/scrub/key-policy.js.map +1 -0
  705. package/dist/trajectory/scrub/layer2.d.ts +1 -0
  706. package/dist/trajectory/scrub/layer2.js +2 -0
  707. package/dist/trajectory/scrub/layer2.js.map +1 -0
  708. package/dist/trajectory/scrub/ml-pii-stage.d.ts +1 -0
  709. package/dist/trajectory/scrub/ml-pii-stage.js +2 -0
  710. package/dist/trajectory/scrub/ml-pii-stage.js.map +1 -0
  711. package/dist/trajectory/scrub/openredaction-stage.d.ts +1 -0
  712. package/dist/trajectory/scrub/openredaction-stage.js +2 -0
  713. package/dist/trajectory/scrub/openredaction-stage.js.map +1 -0
  714. package/dist/trajectory/scrub/pii-build.d.ts +1 -0
  715. package/dist/trajectory/scrub/pii-build.js +2 -0
  716. package/dist/trajectory/scrub/pii-build.js.map +1 -0
  717. package/dist/trajectory/scrub/pipeline.d.ts +1 -0
  718. package/dist/trajectory/scrub/pipeline.js +2 -0
  719. package/dist/trajectory/scrub/pipeline.js.map +1 -0
  720. package/dist/trajectory/scrub/plain-patterns-stage.d.ts +1 -0
  721. package/dist/trajectory/scrub/plain-patterns-stage.js +2 -0
  722. package/dist/trajectory/scrub/plain-patterns-stage.js.map +1 -0
  723. package/dist/trajectory/scrub/secretlint-stage.d.ts +1 -0
  724. package/dist/trajectory/scrub/secretlint-stage.js +2 -0
  725. package/dist/trajectory/scrub/secretlint-stage.js.map +1 -0
  726. package/dist/trajectory/scrub/transformers-detector.d.ts +1 -0
  727. package/dist/trajectory/scrub/transformers-detector.js +2 -0
  728. package/dist/trajectory/scrub/transformers-detector.js.map +1 -0
  729. package/dist/trajectory/scrub/types.d.ts +1 -0
  730. package/dist/trajectory/scrub/types.js +2 -0
  731. package/dist/trajectory/scrub/types.js.map +1 -0
  732. package/dist/trajectory/secret-scrub.d.ts +4 -6
  733. package/dist/trajectory/secret-scrub.js +52 -12
  734. package/dist/trajectory/secret-scrub.js.map +1 -1
  735. package/dist/trajectory/span-profile.js +14 -0
  736. package/dist/trajectory/span-profile.js.map +1 -1
  737. package/dist/trajectory/transcript-parsers/aider-history.d.ts +1 -42
  738. package/dist/trajectory/transcript-parsers/aider-history.js +1 -181
  739. package/dist/trajectory/transcript-parsers/aider-history.js.map +1 -1
  740. package/dist/trajectory/transcript-parsers/claude-code-jsonl.d.ts +1 -37
  741. package/dist/trajectory/transcript-parsers/claude-code-jsonl.js +1 -142
  742. package/dist/trajectory/transcript-parsers/claude-code-jsonl.js.map +1 -1
  743. package/dist/trajectory/transcript-parsers/codex-session.d.ts +1 -42
  744. package/dist/trajectory/transcript-parsers/codex-session.js +1 -235
  745. package/dist/trajectory/transcript-parsers/codex-session.js.map +1 -1
  746. package/dist/trajectory/transcript-parsers/continue-devdata.d.ts +1 -41
  747. package/dist/trajectory/transcript-parsers/continue-devdata.js +1 -190
  748. package/dist/trajectory/transcript-parsers/continue-devdata.js.map +1 -1
  749. package/dist/trajectory/transcript-parsers/cursor-sqlite.d.ts +1 -38
  750. package/dist/trajectory/transcript-parsers/cursor-sqlite.js +1 -118
  751. package/dist/trajectory/transcript-parsers/cursor-sqlite.js.map +1 -1
  752. package/dist/trajectory/transcript-parsers/gemini-session.d.ts +1 -35
  753. package/dist/trajectory/transcript-parsers/gemini-session.js +1 -137
  754. package/dist/trajectory/transcript-parsers/gemini-session.js.map +1 -1
  755. package/dist/trajectory/transcript-parsers/types.d.ts +1 -101
  756. package/dist/trajectory/transcript-parsers/types.js +1 -32
  757. package/dist/trajectory/transcript-parsers/types.js.map +1 -1
  758. package/dist/trajectory/transcript-to-spans/attrs.d.ts +1 -0
  759. package/dist/trajectory/transcript-to-spans/attrs.js +2 -0
  760. package/dist/trajectory/transcript-to-spans/attrs.js.map +1 -0
  761. package/dist/trajectory/transcript-to-spans/claude-code-stream-json.d.ts +1 -0
  762. package/dist/trajectory/transcript-to-spans/claude-code-stream-json.js +2 -0
  763. package/dist/trajectory/transcript-to-spans/claude-code-stream-json.js.map +1 -0
  764. package/dist/trajectory/transcript-to-spans/codex-exec-json.d.ts +1 -0
  765. package/dist/trajectory/transcript-to-spans/codex-exec-json.js +2 -0
  766. package/dist/trajectory/transcript-to-spans/codex-exec-json.js.map +1 -0
  767. package/dist/trajectory/transcript-to-spans/hermes-session-json.d.ts +48 -0
  768. package/dist/trajectory/transcript-to-spans/hermes-session-json.js +193 -0
  769. package/dist/trajectory/transcript-to-spans/hermes-session-json.js.map +1 -0
  770. package/dist/trajectory/transcript-to-spans/index.d.ts +38 -0
  771. package/dist/trajectory/transcript-to-spans/index.js +77 -0
  772. package/dist/trajectory/transcript-to-spans/index.js.map +1 -0
  773. package/dist/trajectory/transcript-to-spans/types.d.ts +16 -0
  774. package/dist/trajectory/transcript-to-spans/types.js +11 -0
  775. package/dist/trajectory/transcript-to-spans/types.js.map +1 -0
  776. package/dist/trajectory/transcript-watcher.d.ts +41 -0
  777. package/dist/trajectory/transcript-watcher.js +34 -0
  778. package/dist/trajectory/transcript-watcher.js.map +1 -1
  779. package/dist/tx-retry.d.ts +18 -0
  780. package/dist/tx-retry.js +52 -12
  781. package/dist/tx-retry.js.map +1 -1
  782. package/dist/types/envelope.d.ts +3 -2785
  783. package/dist/types/envelope.js +3 -160
  784. package/dist/types/envelope.js.map +1 -1
  785. package/dist/types/manifest.d.ts +1 -0
  786. package/dist/types/manifest.js +2 -0
  787. package/dist/types/manifest.js.map +1 -0
  788. package/dist/types/payloads/index.d.ts +1 -1
  789. package/dist/types/payloads/index.js +7 -1
  790. package/dist/types/payloads/index.js.map +1 -1
  791. package/dist/types/payloads/portfolio-v0.d.ts +4 -4
  792. package/dist/types/payloads/portfolio-v0.js +1 -1
  793. package/dist/types/payloads/portfolio-v0.js.map +1 -1
  794. package/dist/types/payloads/prediction-apy-v0.d.ts +4 -4
  795. package/dist/types/payloads/prediction-apy-v0.js +1 -1
  796. package/dist/types/payloads/prediction-apy-v0.js.map +1 -1
  797. package/dist/types/payloads/prediction-v0.d.ts +4 -4
  798. package/dist/types/payloads/prediction-v0.js +1 -1
  799. package/dist/types/payloads/prediction-v0.js.map +1 -1
  800. package/dist/types/portfolio.d.ts +1 -1
  801. package/dist/types/portfolio.js +1 -1
  802. package/dist/types/portfolio.js.map +1 -1
  803. package/dist/types/prediction-apy.d.ts +1 -1
  804. package/dist/types/prediction-apy.js +1 -1
  805. package/dist/types/prediction-apy.js.map +1 -1
  806. package/dist/types/prediction.d.ts +1 -1
  807. package/dist/types/prediction.js +1 -1
  808. package/dist/types/prediction.js.map +1 -1
  809. package/dist/types/session-provenance.d.ts +2 -71
  810. package/dist/types/session-provenance.js +2 -18
  811. package/dist/types/session-provenance.js.map +1 -1
  812. package/dist/types/skill-artifact.d.ts +5 -0
  813. package/dist/types/skill-artifact.js +6 -0
  814. package/dist/types/skill-artifact.js.map +1 -0
  815. package/dist/types/task-document.d.ts +315 -1
  816. package/dist/types/task-document.js +9 -1
  817. package/dist/types/task-document.js.map +1 -1
  818. package/dist/types/task-run-read-model.d.ts +21 -0
  819. package/dist/types/task-run-read-model.js +2 -0
  820. package/dist/types/task-run-read-model.js.map +1 -0
  821. package/dist/types/task-run.d.ts +88 -0
  822. package/dist/types/task-run.js +2 -0
  823. package/dist/types/task-run.js.map +1 -0
  824. package/dist/types/task.d.ts +36 -1
  825. package/dist/types/task.js +1 -1
  826. package/dist/types/task.js.map +1 -1
  827. package/dist/types/window.d.ts +2 -12
  828. package/dist/types/window.js +2 -5
  829. package/dist/types/window.js.map +1 -1
  830. package/dist/util/redact-rpc-urls.d.ts +1 -1
  831. package/dist/util/redact-rpc-urls.js +57 -2
  832. package/dist/util/redact-rpc-urls.js.map +1 -1
  833. package/dist/vendor/@jinn-network/core/dist/canonical-json.d.ts +1 -0
  834. package/dist/vendor/@jinn-network/core/dist/canonical-json.js +67 -0
  835. package/dist/vendor/@jinn-network/core/dist/captured-task.d.ts +140 -0
  836. package/dist/vendor/@jinn-network/core/dist/captured-task.js +122 -0
  837. package/dist/vendor/@jinn-network/core/dist/contribution-store.d.ts +97 -0
  838. package/dist/vendor/@jinn-network/core/dist/contribution-store.js +770 -0
  839. package/dist/vendor/@jinn-network/core/dist/corpus-read/acquire.d.ts +39 -0
  840. package/dist/vendor/@jinn-network/core/dist/corpus-read/acquire.js +212 -0
  841. package/dist/vendor/@jinn-network/core/dist/corpus-read/cache.d.ts +14 -0
  842. package/dist/vendor/@jinn-network/core/dist/corpus-read/cache.js +17 -0
  843. package/dist/vendor/@jinn-network/core/dist/corpus-read/capture-meta.d.ts +16 -0
  844. package/dist/vendor/@jinn-network/core/dist/corpus-read/capture-meta.js +18 -0
  845. package/dist/vendor/@jinn-network/core/dist/corpus-read/create-corpus.d.ts +2 -0
  846. package/dist/vendor/@jinn-network/core/dist/corpus-read/create-corpus.js +97 -0
  847. package/dist/vendor/@jinn-network/core/dist/corpus-read/fetch-artifact.d.ts +21 -0
  848. package/dist/vendor/@jinn-network/core/dist/corpus-read/fetch-artifact.js +32 -0
  849. package/dist/vendor/@jinn-network/core/dist/corpus-read/fetch.d.ts +12 -0
  850. package/dist/vendor/@jinn-network/core/dist/corpus-read/fetch.js +24 -0
  851. package/dist/vendor/@jinn-network/core/dist/corpus-read/http-discovery.d.ts +9 -0
  852. package/dist/vendor/@jinn-network/core/dist/corpus-read/http-discovery.js +128 -0
  853. package/dist/vendor/@jinn-network/core/dist/corpus-read/index.d.ts +10 -0
  854. package/dist/vendor/@jinn-network/core/dist/corpus-read/index.js +10 -0
  855. package/dist/vendor/@jinn-network/core/dist/corpus-read/ipfs.d.ts +5 -0
  856. package/dist/vendor/@jinn-network/core/dist/corpus-read/ipfs.js +72 -0
  857. package/dist/vendor/@jinn-network/core/dist/corpus-read/route-resolver.d.ts +16 -0
  858. package/dist/vendor/@jinn-network/core/dist/corpus-read/route-resolver.js +19 -0
  859. package/dist/vendor/@jinn-network/core/dist/corpus-read/types.d.ts +177 -0
  860. package/dist/vendor/@jinn-network/core/dist/corpus-read/types.js +42 -0
  861. package/dist/vendor/@jinn-network/core/dist/envelope.d.ts +134 -0
  862. package/dist/vendor/@jinn-network/core/dist/envelope.js +162 -0
  863. package/dist/vendor/@jinn-network/core/dist/evidence-adapter.d.ts +26 -0
  864. package/dist/vendor/@jinn-network/core/dist/evidence-adapter.js +321 -0
  865. package/dist/vendor/@jinn-network/core/dist/evidence-filesystem.d.ts +40 -0
  866. package/dist/vendor/@jinn-network/core/dist/evidence-filesystem.js +267 -0
  867. package/dist/vendor/@jinn-network/core/dist/evidence-index.d.ts +117 -0
  868. package/dist/vendor/@jinn-network/core/dist/evidence-index.js +1083 -0
  869. package/dist/vendor/@jinn-network/core/dist/evidence-store-lock.d.ts +2 -0
  870. package/dist/vendor/@jinn-network/core/dist/evidence-store-lock.js +208 -0
  871. package/dist/vendor/@jinn-network/core/dist/execution-envelope.d.ts +3142 -0
  872. package/dist/vendor/@jinn-network/core/dist/execution-envelope.js +203 -0
  873. package/dist/vendor/@jinn-network/core/dist/index.d.ts +12 -0
  874. package/dist/vendor/@jinn-network/core/dist/index.js +12 -0
  875. package/dist/vendor/@jinn-network/core/dist/manifest.d.ts +75 -0
  876. package/dist/vendor/@jinn-network/core/dist/manifest.js +184 -0
  877. package/dist/vendor/@jinn-network/core/dist/paired.d.ts +68 -0
  878. package/dist/vendor/@jinn-network/core/dist/paired.js +92 -0
  879. package/dist/vendor/@jinn-network/core/dist/scrub/build.d.ts +55 -0
  880. package/dist/vendor/@jinn-network/core/dist/scrub/build.js +87 -0
  881. package/dist/vendor/@jinn-network/core/dist/scrub/emit-scrub.d.ts +41 -0
  882. package/dist/vendor/@jinn-network/core/dist/scrub/emit-scrub.js +87 -0
  883. package/dist/vendor/@jinn-network/core/dist/scrub/index.d.ts +12 -0
  884. package/dist/vendor/@jinn-network/core/dist/scrub/index.js +12 -0
  885. package/dist/vendor/@jinn-network/core/dist/scrub/key-policy.d.ts +20 -0
  886. package/dist/vendor/@jinn-network/core/dist/scrub/key-policy.js +42 -0
  887. package/dist/vendor/@jinn-network/core/dist/scrub/layer2.d.ts +24 -0
  888. package/dist/vendor/@jinn-network/core/dist/scrub/layer2.js +33 -0
  889. package/dist/vendor/@jinn-network/core/dist/scrub/ml-pii-stage.d.ts +24 -0
  890. package/dist/vendor/@jinn-network/core/dist/scrub/ml-pii-stage.js +42 -0
  891. package/dist/vendor/@jinn-network/core/dist/scrub/openredaction-stage.d.ts +196 -0
  892. package/dist/vendor/@jinn-network/core/dist/scrub/openredaction-stage.js +270 -0
  893. package/dist/vendor/@jinn-network/core/dist/scrub/pii-build.d.ts +38 -0
  894. package/dist/vendor/@jinn-network/core/dist/scrub/pii-build.js +67 -0
  895. package/dist/vendor/@jinn-network/core/dist/scrub/pipeline.d.ts +38 -0
  896. package/dist/vendor/@jinn-network/core/dist/scrub/pipeline.js +83 -0
  897. package/dist/vendor/@jinn-network/core/dist/scrub/plain-patterns-stage.d.ts +42 -0
  898. package/dist/vendor/@jinn-network/core/dist/scrub/plain-patterns-stage.js +114 -0
  899. package/dist/vendor/@jinn-network/core/dist/scrub/secretlint-stage.d.ts +36 -0
  900. package/dist/vendor/@jinn-network/core/dist/scrub/secretlint-stage.js +249 -0
  901. package/dist/vendor/@jinn-network/core/dist/scrub/transformers-detector.d.ts +35 -0
  902. package/dist/vendor/@jinn-network/core/dist/scrub/transformers-detector.js +67 -0
  903. package/dist/vendor/@jinn-network/core/dist/scrub/types.d.ts +25 -0
  904. package/dist/vendor/@jinn-network/core/dist/scrub/types.js +1 -0
  905. package/dist/vendor/@jinn-network/core/dist/session-provenance.d.ts +75 -0
  906. package/dist/vendor/@jinn-network/core/dist/session-provenance.js +20 -0
  907. package/dist/vendor/@jinn-network/core/dist/skill-artifact.d.ts +442 -0
  908. package/dist/vendor/@jinn-network/core/dist/skill-artifact.js +136 -0
  909. package/dist/vendor/@jinn-network/core/dist/trajectory/hash-chain.d.ts +18 -0
  910. package/dist/vendor/@jinn-network/core/dist/trajectory/hash-chain.js +47 -0
  911. package/dist/vendor/@jinn-network/core/dist/trajectory/index.d.ts +4 -0
  912. package/dist/vendor/@jinn-network/core/dist/trajectory/index.js +4 -0
  913. package/dist/vendor/@jinn-network/core/dist/trajectory/schema.d.ts +606 -0
  914. package/dist/vendor/@jinn-network/core/dist/trajectory/schema.js +110 -0
  915. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/aider-history.d.ts +42 -0
  916. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/aider-history.js +181 -0
  917. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/claude-code-jsonl.d.ts +37 -0
  918. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/claude-code-jsonl.js +142 -0
  919. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/codex-session.d.ts +42 -0
  920. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/codex-session.js +235 -0
  921. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/continue-devdata.d.ts +41 -0
  922. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/continue-devdata.js +190 -0
  923. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/cursor-sqlite.d.ts +38 -0
  924. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/cursor-sqlite.js +118 -0
  925. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/gemini-session.d.ts +35 -0
  926. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/gemini-session.js +137 -0
  927. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/index.d.ts +7 -0
  928. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/index.js +7 -0
  929. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/types.d.ts +101 -0
  930. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/types.js +32 -0
  931. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/attrs.d.ts +4 -0
  932. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/attrs.js +30 -0
  933. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/claude-code-stream-json.d.ts +8 -0
  934. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/claude-code-stream-json.js +162 -0
  935. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/codex-exec-json.d.ts +8 -0
  936. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/codex-exec-json.js +253 -0
  937. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/index.d.ts +4 -0
  938. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/index.js +4 -0
  939. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/types.d.ts +18 -0
  940. package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/types.js +1 -0
  941. package/dist/vendor/@jinn-network/core/dist/window.d.ts +12 -0
  942. package/dist/vendor/@jinn-network/core/dist/window.js +5 -0
  943. package/dist/vendor/@jinn-network/core/package.json +38 -0
  944. package/dist/vendor/@jinn-network/plugin/dist/eligibility.d.ts +12 -0
  945. package/dist/vendor/@jinn-network/plugin/dist/eligibility.js +12 -0
  946. package/dist/vendor/@jinn-network/plugin/dist/history.d.ts +35 -0
  947. package/dist/vendor/@jinn-network/plugin/dist/history.js +140 -0
  948. package/dist/vendor/@jinn-network/plugin/dist/index.d.ts +32 -0
  949. package/dist/vendor/@jinn-network/plugin/dist/index.js +15 -0
  950. package/dist/vendor/@jinn-network/plugin/dist/outcome.d.ts +26 -0
  951. package/dist/vendor/@jinn-network/plugin/dist/outcome.js +23 -0
  952. package/dist/vendor/@jinn-network/plugin/dist/pickup.d.ts +101 -0
  953. package/dist/vendor/@jinn-network/plugin/dist/pickup.js +354 -0
  954. package/dist/vendor/@jinn-network/plugin/dist/plugin.d.ts +157 -0
  955. package/dist/vendor/@jinn-network/plugin/dist/plugin.js +586 -0
  956. package/dist/vendor/@jinn-network/plugin/dist/ports/contribution-port.d.ts +53 -0
  957. package/dist/vendor/@jinn-network/plugin/dist/ports/contribution-port.js +14 -0
  958. package/dist/vendor/@jinn-network/plugin/dist/ports/corpus-port.d.ts +63 -0
  959. package/dist/vendor/@jinn-network/plugin/dist/ports/corpus-port.js +1 -0
  960. package/dist/vendor/@jinn-network/plugin/dist/ports/evidence-port.d.ts +17 -0
  961. package/dist/vendor/@jinn-network/plugin/dist/ports/evidence-port.js +1 -0
  962. package/dist/vendor/@jinn-network/plugin/dist/ports/local-learning-port.d.ts +22 -0
  963. package/dist/vendor/@jinn-network/plugin/dist/ports/local-learning-port.js +1 -0
  964. package/dist/vendor/@jinn-network/plugin/dist/ports/skills-port.d.ts +12 -0
  965. package/dist/vendor/@jinn-network/plugin/dist/ports/skills-port.js +1 -0
  966. package/dist/vendor/@jinn-network/plugin/dist/schemas/contribution-candidate.d.ts +116 -0
  967. package/dist/vendor/@jinn-network/plugin/dist/schemas/contribution-candidate.js +63 -0
  968. package/dist/vendor/@jinn-network/plugin/dist/schemas/eligibility-verdict.d.ts +8 -0
  969. package/dist/vendor/@jinn-network/plugin/dist/schemas/eligibility-verdict.js +7 -0
  970. package/dist/vendor/@jinn-network/plugin/dist/schemas/episode.d.ts +432 -0
  971. package/dist/vendor/@jinn-network/plugin/dist/schemas/episode.js +452 -0
  972. package/dist/vendor/@jinn-network/plugin/dist/schemas/history-entry.d.ts +40 -0
  973. package/dist/vendor/@jinn-network/plugin/dist/schemas/history-entry.js +30 -0
  974. package/dist/vendor/@jinn-network/plugin/dist/schemas/knowledge-hit.d.ts +27 -0
  975. package/dist/vendor/@jinn-network/plugin/dist/schemas/knowledge-hit.js +23 -0
  976. package/dist/vendor/@jinn-network/plugin/dist/schemas/knowledge-packet.d.ts +79 -0
  977. package/dist/vendor/@jinn-network/plugin/dist/schemas/knowledge-packet.js +213 -0
  978. package/dist/vendor/@jinn-network/plugin/dist/schemas/pickup-config.d.ts +20 -0
  979. package/dist/vendor/@jinn-network/plugin/dist/schemas/pickup-config.js +34 -0
  980. package/dist/vendor/@jinn-network/plugin/dist/schemas/session-summary.d.ts +17 -0
  981. package/dist/vendor/@jinn-network/plugin/dist/schemas/session-summary.js +19 -0
  982. package/dist/vendor/@jinn-network/plugin/dist/testing/contract-kits.d.ts +12 -0
  983. package/dist/vendor/@jinn-network/plugin/dist/testing/contract-kits.js +201 -0
  984. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-contribution.d.ts +93 -0
  985. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-contribution.js +104 -0
  986. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-corpus.d.ts +47 -0
  987. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-corpus.js +54 -0
  988. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-evidence.d.ts +335 -0
  989. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-evidence.js +23 -0
  990. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-local-learning.d.ts +25 -0
  991. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-local-learning.js +30 -0
  992. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-skills.d.ts +9 -0
  993. package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-skills.js +16 -0
  994. package/dist/vendor/@jinn-network/plugin/dist/testing.d.ts +6 -0
  995. package/dist/vendor/@jinn-network/plugin/dist/testing.js +8 -0
  996. package/dist/vendor/@jinn-network/plugin/dist/visibility.d.ts +7 -0
  997. package/dist/vendor/@jinn-network/plugin/dist/visibility.js +9 -0
  998. package/dist/vendor/@jinn-network/plugin/package.json +22 -0
  999. package/dist/vendor/@jinn-network/sdk/dist/checkpoint.d.ts +1 -1
  1000. package/dist/vendor/@jinn-network/sdk/dist/checkpoint.js +1 -1
  1001. package/dist/vendor/@jinn-network/sdk/dist/contracts.d.ts +3 -2
  1002. package/dist/vendor/@jinn-network/sdk/dist/contracts.js +49 -0
  1003. package/dist/vendor/@jinn-network/sdk/dist/jinn-repo.d.ts +214 -0
  1004. package/dist/vendor/@jinn-network/sdk/dist/jinn-repo.js +75 -0
  1005. package/dist/vendor/@jinn-network/sdk/dist/json-schema.d.ts +1 -1
  1006. package/dist/vendor/@jinn-network/sdk/dist/json-schema.js +1 -1
  1007. package/dist/vendor/@jinn-network/sdk/dist/payloads/jinn-repo.d.ts +140 -0
  1008. package/dist/vendor/@jinn-network/sdk/dist/payloads/jinn-repo.js +52 -0
  1009. package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.d.ts +1 -1
  1010. package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.js +1 -1
  1011. package/dist/vendor/@jinn-network/sdk/dist/payloads/session-derived.d.ts +1 -1
  1012. package/dist/vendor/@jinn-network/sdk/dist/payloads/session-derived.js +1 -1
  1013. package/dist/vendor/@jinn-network/sdk/dist/payloads/swe-rebench-v2.d.ts +1 -1
  1014. package/dist/vendor/@jinn-network/sdk/dist/payloads/swe-rebench-v2.js +1 -1
  1015. package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.d.ts +1 -1
  1016. package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.js +1 -1
  1017. package/dist/vendor/@jinn-network/sdk/dist/solvernets/jinn-repo.d.ts +4 -0
  1018. package/dist/vendor/@jinn-network/sdk/dist/solvernets/jinn-repo.js +2 -0
  1019. package/dist/vendor/@jinn-network/sdk/dist/solvernets/manifest-schema.d.ts +1 -1
  1020. package/dist/vendor/@jinn-network/sdk/dist/solvernets/manifest-schema.js +1 -1
  1021. package/dist/vendor/@jinn-network/sdk/dist/swe-rebench-v2.d.ts +34 -6
  1022. package/dist/vendor/@jinn-network/sdk/dist/swe-rebench-v2.js +28 -5
  1023. package/dist/vendor/@jinn-network/sdk/package.json +5 -1
  1024. package/node_modules/@jinn-network/core/dist/canonical-json.d.ts +1 -0
  1025. package/node_modules/@jinn-network/core/dist/canonical-json.js +67 -0
  1026. package/node_modules/@jinn-network/core/dist/captured-task.d.ts +140 -0
  1027. package/node_modules/@jinn-network/core/dist/captured-task.js +122 -0
  1028. package/node_modules/@jinn-network/core/dist/contribution-store.d.ts +97 -0
  1029. package/node_modules/@jinn-network/core/dist/contribution-store.js +770 -0
  1030. package/node_modules/@jinn-network/core/dist/corpus-read/acquire.d.ts +39 -0
  1031. package/node_modules/@jinn-network/core/dist/corpus-read/acquire.js +212 -0
  1032. package/node_modules/@jinn-network/core/dist/corpus-read/cache.d.ts +14 -0
  1033. package/node_modules/@jinn-network/core/dist/corpus-read/cache.js +17 -0
  1034. package/node_modules/@jinn-network/core/dist/corpus-read/capture-meta.d.ts +16 -0
  1035. package/node_modules/@jinn-network/core/dist/corpus-read/capture-meta.js +18 -0
  1036. package/node_modules/@jinn-network/core/dist/corpus-read/create-corpus.d.ts +2 -0
  1037. package/node_modules/@jinn-network/core/dist/corpus-read/create-corpus.js +97 -0
  1038. package/node_modules/@jinn-network/core/dist/corpus-read/fetch-artifact.d.ts +21 -0
  1039. package/node_modules/@jinn-network/core/dist/corpus-read/fetch-artifact.js +32 -0
  1040. package/node_modules/@jinn-network/core/dist/corpus-read/fetch.d.ts +12 -0
  1041. package/node_modules/@jinn-network/core/dist/corpus-read/fetch.js +24 -0
  1042. package/node_modules/@jinn-network/core/dist/corpus-read/http-discovery.d.ts +9 -0
  1043. package/node_modules/@jinn-network/core/dist/corpus-read/http-discovery.js +128 -0
  1044. package/node_modules/@jinn-network/core/dist/corpus-read/index.d.ts +10 -0
  1045. package/node_modules/@jinn-network/core/dist/corpus-read/index.js +10 -0
  1046. package/node_modules/@jinn-network/core/dist/corpus-read/ipfs.d.ts +5 -0
  1047. package/node_modules/@jinn-network/core/dist/corpus-read/ipfs.js +72 -0
  1048. package/node_modules/@jinn-network/core/dist/corpus-read/route-resolver.d.ts +16 -0
  1049. package/node_modules/@jinn-network/core/dist/corpus-read/route-resolver.js +19 -0
  1050. package/node_modules/@jinn-network/core/dist/corpus-read/types.d.ts +177 -0
  1051. package/node_modules/@jinn-network/core/dist/corpus-read/types.js +42 -0
  1052. package/node_modules/@jinn-network/core/dist/envelope.d.ts +134 -0
  1053. package/node_modules/@jinn-network/core/dist/envelope.js +162 -0
  1054. package/node_modules/@jinn-network/core/dist/evidence-adapter.d.ts +26 -0
  1055. package/node_modules/@jinn-network/core/dist/evidence-adapter.js +321 -0
  1056. package/node_modules/@jinn-network/core/dist/evidence-filesystem.d.ts +40 -0
  1057. package/node_modules/@jinn-network/core/dist/evidence-filesystem.js +267 -0
  1058. package/node_modules/@jinn-network/core/dist/evidence-index.d.ts +117 -0
  1059. package/node_modules/@jinn-network/core/dist/evidence-index.js +1083 -0
  1060. package/node_modules/@jinn-network/core/dist/evidence-store-lock.d.ts +2 -0
  1061. package/node_modules/@jinn-network/core/dist/evidence-store-lock.js +208 -0
  1062. package/node_modules/@jinn-network/core/dist/execution-envelope.d.ts +3142 -0
  1063. package/node_modules/@jinn-network/core/dist/execution-envelope.js +203 -0
  1064. package/node_modules/@jinn-network/core/dist/index.d.ts +12 -0
  1065. package/node_modules/@jinn-network/core/dist/index.js +12 -0
  1066. package/node_modules/@jinn-network/core/dist/manifest.d.ts +75 -0
  1067. package/node_modules/@jinn-network/core/dist/manifest.js +184 -0
  1068. package/node_modules/@jinn-network/core/dist/paired.d.ts +68 -0
  1069. package/node_modules/@jinn-network/core/dist/paired.js +92 -0
  1070. package/node_modules/@jinn-network/core/dist/scrub/build.d.ts +55 -0
  1071. package/node_modules/@jinn-network/core/dist/scrub/build.js +87 -0
  1072. package/node_modules/@jinn-network/core/dist/scrub/emit-scrub.d.ts +41 -0
  1073. package/node_modules/@jinn-network/core/dist/scrub/emit-scrub.js +87 -0
  1074. package/node_modules/@jinn-network/core/dist/scrub/index.d.ts +12 -0
  1075. package/node_modules/@jinn-network/core/dist/scrub/index.js +12 -0
  1076. package/node_modules/@jinn-network/core/dist/scrub/key-policy.d.ts +20 -0
  1077. package/node_modules/@jinn-network/core/dist/scrub/key-policy.js +42 -0
  1078. package/node_modules/@jinn-network/core/dist/scrub/layer2.d.ts +24 -0
  1079. package/node_modules/@jinn-network/core/dist/scrub/layer2.js +33 -0
  1080. package/node_modules/@jinn-network/core/dist/scrub/ml-pii-stage.d.ts +24 -0
  1081. package/node_modules/@jinn-network/core/dist/scrub/ml-pii-stage.js +42 -0
  1082. package/node_modules/@jinn-network/core/dist/scrub/openredaction-stage.d.ts +196 -0
  1083. package/node_modules/@jinn-network/core/dist/scrub/openredaction-stage.js +270 -0
  1084. package/node_modules/@jinn-network/core/dist/scrub/pii-build.d.ts +38 -0
  1085. package/node_modules/@jinn-network/core/dist/scrub/pii-build.js +67 -0
  1086. package/node_modules/@jinn-network/core/dist/scrub/pipeline.d.ts +38 -0
  1087. package/node_modules/@jinn-network/core/dist/scrub/pipeline.js +83 -0
  1088. package/node_modules/@jinn-network/core/dist/scrub/plain-patterns-stage.d.ts +42 -0
  1089. package/node_modules/@jinn-network/core/dist/scrub/plain-patterns-stage.js +114 -0
  1090. package/node_modules/@jinn-network/core/dist/scrub/secretlint-stage.d.ts +36 -0
  1091. package/node_modules/@jinn-network/core/dist/scrub/secretlint-stage.js +249 -0
  1092. package/node_modules/@jinn-network/core/dist/scrub/transformers-detector.d.ts +35 -0
  1093. package/node_modules/@jinn-network/core/dist/scrub/transformers-detector.js +67 -0
  1094. package/node_modules/@jinn-network/core/dist/scrub/types.d.ts +25 -0
  1095. package/node_modules/@jinn-network/core/dist/scrub/types.js +1 -0
  1096. package/node_modules/@jinn-network/core/dist/session-provenance.d.ts +75 -0
  1097. package/node_modules/@jinn-network/core/dist/session-provenance.js +20 -0
  1098. package/node_modules/@jinn-network/core/dist/skill-artifact.d.ts +442 -0
  1099. package/node_modules/@jinn-network/core/dist/skill-artifact.js +136 -0
  1100. package/node_modules/@jinn-network/core/dist/trajectory/hash-chain.d.ts +18 -0
  1101. package/node_modules/@jinn-network/core/dist/trajectory/hash-chain.js +47 -0
  1102. package/node_modules/@jinn-network/core/dist/trajectory/index.d.ts +4 -0
  1103. package/node_modules/@jinn-network/core/dist/trajectory/index.js +4 -0
  1104. package/node_modules/@jinn-network/core/dist/trajectory/schema.d.ts +606 -0
  1105. package/node_modules/@jinn-network/core/dist/trajectory/schema.js +110 -0
  1106. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/aider-history.d.ts +42 -0
  1107. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/aider-history.js +181 -0
  1108. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/claude-code-jsonl.d.ts +37 -0
  1109. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/claude-code-jsonl.js +142 -0
  1110. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/codex-session.d.ts +42 -0
  1111. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/codex-session.js +235 -0
  1112. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/continue-devdata.d.ts +41 -0
  1113. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/continue-devdata.js +190 -0
  1114. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/cursor-sqlite.d.ts +38 -0
  1115. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/cursor-sqlite.js +118 -0
  1116. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/gemini-session.d.ts +35 -0
  1117. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/gemini-session.js +137 -0
  1118. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/index.d.ts +7 -0
  1119. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/index.js +7 -0
  1120. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/types.d.ts +101 -0
  1121. package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/types.js +32 -0
  1122. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/attrs.d.ts +4 -0
  1123. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/attrs.js +30 -0
  1124. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/claude-code-stream-json.d.ts +8 -0
  1125. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/claude-code-stream-json.js +162 -0
  1126. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/codex-exec-json.d.ts +8 -0
  1127. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/codex-exec-json.js +253 -0
  1128. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/index.d.ts +4 -0
  1129. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/index.js +4 -0
  1130. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/types.d.ts +18 -0
  1131. package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/types.js +1 -0
  1132. package/node_modules/@jinn-network/core/dist/window.d.ts +12 -0
  1133. package/node_modules/@jinn-network/core/dist/window.js +5 -0
  1134. package/node_modules/@jinn-network/core/package.json +61 -0
  1135. package/node_modules/@jinn-network/plugin/dist/eligibility.d.ts +12 -0
  1136. package/node_modules/@jinn-network/plugin/dist/eligibility.js +12 -0
  1137. package/node_modules/@jinn-network/plugin/dist/history.d.ts +35 -0
  1138. package/node_modules/@jinn-network/plugin/dist/history.js +140 -0
  1139. package/node_modules/@jinn-network/plugin/dist/index.d.ts +32 -0
  1140. package/node_modules/@jinn-network/plugin/dist/index.js +15 -0
  1141. package/node_modules/@jinn-network/plugin/dist/outcome.d.ts +26 -0
  1142. package/node_modules/@jinn-network/plugin/dist/outcome.js +23 -0
  1143. package/node_modules/@jinn-network/plugin/dist/pickup.d.ts +101 -0
  1144. package/node_modules/@jinn-network/plugin/dist/pickup.js +354 -0
  1145. package/node_modules/@jinn-network/plugin/dist/plugin.d.ts +157 -0
  1146. package/node_modules/@jinn-network/plugin/dist/plugin.js +586 -0
  1147. package/node_modules/@jinn-network/plugin/dist/ports/contribution-port.d.ts +53 -0
  1148. package/node_modules/@jinn-network/plugin/dist/ports/contribution-port.js +14 -0
  1149. package/node_modules/@jinn-network/plugin/dist/ports/corpus-port.d.ts +63 -0
  1150. package/node_modules/@jinn-network/plugin/dist/ports/corpus-port.js +1 -0
  1151. package/node_modules/@jinn-network/plugin/dist/ports/evidence-port.d.ts +17 -0
  1152. package/node_modules/@jinn-network/plugin/dist/ports/evidence-port.js +1 -0
  1153. package/node_modules/@jinn-network/plugin/dist/ports/local-learning-port.d.ts +22 -0
  1154. package/node_modules/@jinn-network/plugin/dist/ports/local-learning-port.js +1 -0
  1155. package/node_modules/@jinn-network/plugin/dist/ports/skills-port.d.ts +12 -0
  1156. package/node_modules/@jinn-network/plugin/dist/ports/skills-port.js +1 -0
  1157. package/node_modules/@jinn-network/plugin/dist/schemas/contribution-candidate.d.ts +116 -0
  1158. package/node_modules/@jinn-network/plugin/dist/schemas/contribution-candidate.js +63 -0
  1159. package/node_modules/@jinn-network/plugin/dist/schemas/eligibility-verdict.d.ts +8 -0
  1160. package/node_modules/@jinn-network/plugin/dist/schemas/eligibility-verdict.js +7 -0
  1161. package/node_modules/@jinn-network/plugin/dist/schemas/episode.d.ts +432 -0
  1162. package/node_modules/@jinn-network/plugin/dist/schemas/episode.js +452 -0
  1163. package/node_modules/@jinn-network/plugin/dist/schemas/history-entry.d.ts +40 -0
  1164. package/node_modules/@jinn-network/plugin/dist/schemas/history-entry.js +30 -0
  1165. package/node_modules/@jinn-network/plugin/dist/schemas/knowledge-hit.d.ts +27 -0
  1166. package/node_modules/@jinn-network/plugin/dist/schemas/knowledge-hit.js +23 -0
  1167. package/node_modules/@jinn-network/plugin/dist/schemas/knowledge-packet.d.ts +79 -0
  1168. package/node_modules/@jinn-network/plugin/dist/schemas/knowledge-packet.js +213 -0
  1169. package/node_modules/@jinn-network/plugin/dist/schemas/pickup-config.d.ts +20 -0
  1170. package/node_modules/@jinn-network/plugin/dist/schemas/pickup-config.js +34 -0
  1171. package/node_modules/@jinn-network/plugin/dist/schemas/session-summary.d.ts +17 -0
  1172. package/node_modules/@jinn-network/plugin/dist/schemas/session-summary.js +19 -0
  1173. package/node_modules/@jinn-network/plugin/dist/testing/contract-kits.d.ts +12 -0
  1174. package/node_modules/@jinn-network/plugin/dist/testing/contract-kits.js +201 -0
  1175. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-contribution.d.ts +93 -0
  1176. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-contribution.js +104 -0
  1177. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-corpus.d.ts +47 -0
  1178. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-corpus.js +54 -0
  1179. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-evidence.d.ts +335 -0
  1180. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-evidence.js +23 -0
  1181. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-local-learning.d.ts +25 -0
  1182. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-local-learning.js +30 -0
  1183. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-skills.d.ts +9 -0
  1184. package/node_modules/@jinn-network/plugin/dist/testing/in-memory-skills.js +16 -0
  1185. package/node_modules/@jinn-network/plugin/dist/testing.d.ts +6 -0
  1186. package/node_modules/@jinn-network/plugin/dist/testing.js +8 -0
  1187. package/node_modules/@jinn-network/plugin/dist/visibility.d.ts +7 -0
  1188. package/node_modules/@jinn-network/plugin/dist/visibility.js +9 -0
  1189. package/node_modules/@jinn-network/plugin/package.json +50 -0
  1190. package/node_modules/@jinn-network/plugin/process-contract.json +8 -0
  1191. package/package.json +60 -18
  1192. package/plugins/jinn-repo-runtime/.claude-plugin/plugin.json +5 -0
  1193. package/plugins/jinn-repo-runtime/.codex-plugin/plugin.json +39 -0
  1194. package/plugins/jinn-repo-runtime/README.md +27 -0
  1195. package/plugins/jinn-repo-runtime/hooks/hooks.json +16 -0
  1196. package/plugins/jinn-repo-runtime/hooks/session-start +73 -0
  1197. package/plugins/jinn-repo-runtime/jinn.plugin.json +11 -0
  1198. package/plugins/jinn-repo-runtime/skills/task/SKILL.md +92 -0
  1199. package/skills/jinn-operator/SKILL.md +29 -15
  1200. package/deployments/deployment-jinn-mvi-l1-sepolia-fast.json +0 -55
  1201. package/deployments/deployment-jinn-mvi-l1-sepolia.json +0 -55
  1202. package/deployments/deployment-jinn-mvi-l2-baseSepolia.json +0 -13
  1203. package/deployments/deployment-jinn-testnet-faucet-baseSepolia-fast.json +0 -15
  1204. package/dist/api/peers.js.map +0 -1
  1205. package/dist/daemon/jinn-claim-loop-canonical.d.ts +0 -207
  1206. package/dist/daemon/jinn-claim-loop-canonical.js +0 -296
  1207. package/dist/daemon/jinn-claim-loop-canonical.js.map +0 -1
  1208. package/dist/daemon/jinn-claim-loop-mock.d.ts +0 -61
  1209. package/dist/daemon/jinn-claim-loop-mock.js +0 -122
  1210. package/dist/daemon/jinn-claim-loop-mock.js.map +0 -1
  1211. package/dist/daemon/jinn-claim-loop-wiring.d.ts +0 -33
  1212. package/dist/daemon/jinn-claim-loop-wiring.js +0 -40
  1213. package/dist/daemon/jinn-claim-loop-wiring.js.map +0 -1
  1214. package/dist/daemon/jinn-claim-loop.d.ts +0 -130
  1215. package/dist/daemon/jinn-claim-loop.js +0 -328
  1216. package/dist/daemon/jinn-claim-loop.js.map +0 -1
  1217. package/dist/dashboard/assets/index-BVAWkLwY.css +0 -1
  1218. package/dist/dashboard/assets/index-DEPqtGOA.js +0 -167
  1219. package/dist/earning/jinn-rewards.js.map +0 -1
  1220. package/dist/scripts/donation-consumption-acceptance.d.ts +0 -85
  1221. package/dist/scripts/donation-consumption-acceptance.js +0 -1382
  1222. package/dist/scripts/donation-consumption-acceptance.js.map +0 -1
  1223. package/dist/x402/acquire.d.ts +0 -17
  1224. package/dist/x402/acquire.js +0 -49
  1225. package/dist/x402/acquire.js.map +0 -1
  1226. package/dist/x402/facilitator.d.ts +0 -11
  1227. package/dist/x402/facilitator.js +0 -52
  1228. package/dist/x402/facilitator.js.map +0 -1
  1229. package/dist/x402/handler.d.ts +0 -27
  1230. package/dist/x402/handler.js +0 -236
  1231. package/dist/x402/handler.js.map +0 -1
  1232. /package/dist/{api/peers.d.ts → daemon/peer-sync.d.ts} +0 -0
@@ -0,0 +1,53 @@
1
+ import { type EnvironmentBuildRecipeV1 } from '../environment/contracts.js';
2
+ export type PublicRepoProofFixture = {
3
+ readonly id: 'jinn-mono' | 'unjs-destr';
4
+ readonly repo: string;
5
+ readonly baseCommit: string;
6
+ readonly fixCommit: string;
7
+ readonly instanceId: string;
8
+ readonly language: 'typescript';
9
+ readonly problemStatement: string;
10
+ /** Synthetic names used solely to exercise the trusted parser contract. */
11
+ readonly syntheticParserContractTests: readonly string[];
12
+ /** Public paths represented by the synthetic parser-contract test patch. */
13
+ readonly testPaths: readonly string[];
14
+ /** Synthetic parser contract only; never a source-derived or live result. */
15
+ readonly evidenceKind: 'synthetic-parser-contract';
16
+ };
17
+ /**
18
+ * The real #1422 source identity. Unlike the parser-contract fixture below,
19
+ * this identity becomes usable only with a generated differential-admission
20
+ * receipt whose contents and bindings have been verified.
21
+ */
22
+ export type JinnDifferentialProofSource = {
23
+ readonly id: 'jinn-mono';
24
+ readonly repo: 'Jinn-Network/mono';
25
+ readonly baseCommit: 'ae8093a8848e70e581f46d66dcdb56789c0808a3';
26
+ readonly fixCommit: 'ef9608876511b4dff000cda1537ff7c1a227677d';
27
+ readonly instanceId: 'Jinn-Network__mono__echo-ef9608876511';
28
+ readonly language: 'typescript';
29
+ readonly testPaths: readonly [
30
+ 'client/test/daemon/daemon-recovery-nonblocking.test.ts',
31
+ 'client/test/harnesses/engine/recovery.test.ts'
32
+ ];
33
+ readonly evidenceKind: 'differential-admission-receipt-required';
34
+ };
35
+ export declare const JINN_MONO_DIFFERENTIAL_PROOF_SOURCE: JinnDifferentialProofSource;
36
+ /**
37
+ * G0b's first non-Rebench fixture identity. The historical supplied commit
38
+ * is a documentation-only change, so this declaration is deliberately a
39
+ * synthetic parser-contract fixture rather than an assertion that it already
40
+ * has live empirical F2P evidence. The live runbook requires a reviewed,
41
+ * independently observed test patch before mint admission.
42
+ */
43
+ export declare const JINN_MONO_VITEST_JSON_PARSER_CONTRACT_FIXTURE: PublicRepoProofFixture;
44
+ /** Portable proof: the same trusted Vitest parser and recipe adapter. */
45
+ export declare const UNJS_DESTR_PUBLIC_REPO_PROOF: PublicRepoProofFixture;
46
+ /**
47
+ * Resolve the existing approved explicit recipe against an immutable fixture
48
+ * base commit. Supplying a full SHA is intentional: prefix-only values can
49
+ * never become evaluator-environment contracts.
50
+ */
51
+ export declare function resolvePublicRepoProofRecipe(fixture: Pick<PublicRepoProofFixture, 'id' | 'repo' | 'baseCommit'>, baseCommit?: string): EnvironmentBuildRecipeV1;
52
+ /** A deterministic non-secret digest for a hermetic mock-registry image. */
53
+ export declare function fixtureSha256(scope: string): `sha256:${string}`;
@@ -0,0 +1,93 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ /**
3
+ * Public, hermetic fixture declarations for the G0b portability proof.
4
+ *
5
+ * These are intentionally metadata and recipe bindings only: a fixture never
6
+ * carries a gold patch. Gold material stays in the local admission input,
7
+ * while the test patch and evaluator contract are public row material.
8
+ */
9
+ import { createHash } from 'node:crypto';
10
+ import { EnvironmentBuildRecipeV1Schema, } from '../environment/contracts.js';
11
+ import { JINN_MONO_RECIPE_V1, UNJS_DESTR_RECIPE_V1 } from '../environment/recipes.js';
12
+ export const JINN_MONO_DIFFERENTIAL_PROOF_SOURCE = {
13
+ id: 'jinn-mono',
14
+ repo: 'Jinn-Network/mono',
15
+ baseCommit: 'ae8093a8848e70e581f46d66dcdb56789c0808a3',
16
+ fixCommit: 'ef9608876511b4dff000cda1537ff7c1a227677d',
17
+ instanceId: 'Jinn-Network__mono__echo-ef9608876511',
18
+ language: 'typescript',
19
+ testPaths: [
20
+ 'client/test/daemon/daemon-recovery-nonblocking.test.ts',
21
+ 'client/test/harnesses/engine/recovery.test.ts',
22
+ ],
23
+ evidenceKind: 'differential-admission-receipt-required',
24
+ };
25
+ /**
26
+ * G0b's first non-Rebench fixture identity. The historical supplied commit
27
+ * is a documentation-only change, so this declaration is deliberately a
28
+ * synthetic parser-contract fixture rather than an assertion that it already
29
+ * has live empirical F2P evidence. The live runbook requires a reviewed,
30
+ * independently observed test patch before mint admission.
31
+ */
32
+ export const JINN_MONO_VITEST_JSON_PARSER_CONTRACT_FIXTURE = {
33
+ id: 'jinn-mono',
34
+ repo: 'Jinn-Network/mono',
35
+ baseCommit: 'c7701007c7c7c3b1005e263ce151adf700465b58',
36
+ fixCommit: '5b76bade319857bd09a72c3c4aaf0949cfe078ee',
37
+ instanceId: 'Jinn-Network__mono__echo-5b76bade3198',
38
+ language: 'typescript',
39
+ problemStatement: 'Vitest JSON parser-contract coverage; not empirical Jinn admission evidence.',
40
+ syntheticParserContractTests: [
41
+ 'daemon recovery starts watchdog loops before recovery completes',
42
+ 'engine recovery reserves the request before duplicate scheduling',
43
+ ],
44
+ testPaths: [
45
+ 'client/test/daemon/daemon-recovery-nonblocking.test.ts',
46
+ 'client/test/harnesses/engine/recovery.test.ts',
47
+ ],
48
+ evidenceKind: 'synthetic-parser-contract',
49
+ };
50
+ /** Portable proof: the same trusted Vitest parser and recipe adapter. */
51
+ export const UNJS_DESTR_PUBLIC_REPO_PROOF = {
52
+ id: 'unjs-destr',
53
+ repo: 'unjs/destr',
54
+ baseCommit: '37210516ccef951dcc870f17a5abee52122a3122',
55
+ fixCommit: 'd9ba16d7ad5c3afb6d8c8e84f6d24dba616013fe',
56
+ instanceId: 'unjs__destr__echo-d9ba16d7ad5c',
57
+ language: 'typescript',
58
+ problemStatement: 'Synthetic parser-contract fixture: parsing decimals and scientific notation.',
59
+ syntheticParserContractTests: [
60
+ 'destr parses decimal values',
61
+ 'destr parses scientific notation values',
62
+ ],
63
+ testPaths: ['test/index.test.ts'],
64
+ evidenceKind: 'synthetic-parser-contract',
65
+ };
66
+ /**
67
+ * Resolve the existing approved explicit recipe against an immutable fixture
68
+ * base commit. Supplying a full SHA is intentional: prefix-only values can
69
+ * never become evaluator-environment contracts.
70
+ */
71
+ export function resolvePublicRepoProofRecipe(fixture, baseCommit = fixture.baseCommit) {
72
+ if (!/^[0-9a-f]{40}$/u.test(baseCommit)) {
73
+ throw new Error('public-repository proof recipe requires a 40-hex base commit');
74
+ }
75
+ const preset = fixture.id === 'jinn-mono' ? JINN_MONO_RECIPE_V1 : UNJS_DESTR_RECIPE_V1;
76
+ const { repo: expectedRepo, repoUrl, ...recipe } = preset;
77
+ if (fixture.repo !== expectedRepo)
78
+ throw new Error('public-repository proof fixture does not match its approved recipe');
79
+ return EnvironmentBuildRecipeV1Schema.parse({
80
+ ...recipe,
81
+ source: { repo: fixture.repo, repoUrl, baseCommit },
82
+ inputRights: preset.inputRights.map((rights) => ({
83
+ ...rights,
84
+ inputRef: rights.inputRef.replace('$baseCommit', baseCommit),
85
+ rightsRef: rights.rightsRef.replace('$baseCommit', baseCommit),
86
+ })),
87
+ });
88
+ }
89
+ /** A deterministic non-secret digest for a hermetic mock-registry image. */
90
+ export function fixtureSha256(scope) {
91
+ return `sha256:${createHash('sha256').update(scope).digest('hex')}`;
92
+ }
93
+ //# sourceMappingURL=public-repo-fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-repo-fixtures.js","sourceRoot":"","sources":["../../../src/task-creator/proofs/public-repo-fixtures.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,8BAA8B,GAE/B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAqCtF,MAAM,CAAC,MAAM,mCAAmC,GAAgC;IAC9E,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,mBAAmB;IACzB,UAAU,EAAE,0CAA0C;IACtD,SAAS,EAAE,0CAA0C;IACrD,UAAU,EAAE,uCAAuC;IACnD,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE;QACT,wDAAwD;QACxD,+CAA+C;KAChD;IACD,YAAY,EAAE,yCAAyC;CACxD,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAA2B;IACnF,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,mBAAmB;IACzB,UAAU,EAAE,0CAA0C;IACtD,SAAS,EAAE,0CAA0C;IACrD,UAAU,EAAE,uCAAuC;IACnD,QAAQ,EAAE,YAAY;IACtB,gBAA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C,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAC/C,GAAG,MAAM;YACT,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC;YAC5D,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC;SAC/D,CAAC,CAAC;KACJ,CAAC,CAAC;AACL,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,UAAU,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACtE,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Hermetic oracle for the `vitest-json.v1` evaluator parser contract. It
3
+ * mirrors only the public JSON shape accepted by the signed upstream bundle;
4
+ * production grading remains in the pinned evaluator bundle itself.
5
+ */
6
+ import { deriveF2pP2pFromReports } from '../../solver-types/_swe-rebench-v2-empirical-tests.js';
7
+ import type { MintedEnvironmentBindingV1 } from '../../solver-types/_swe-rebench-v2-minted-pool.js';
8
+ import type { EnvironmentBuildRecipeV1 } from '../environment/contracts.js';
9
+ import { type PublicRepoProofFixture } from './public-repo-fixtures.js';
10
+ export type ParsedVitestFixtureReport = {
11
+ passed: string[];
12
+ failed: string[];
13
+ };
14
+ export type PublicRepoFixtureRun = {
15
+ proof: PublicRepoProofFixture;
16
+ recipe: EnvironmentBuildRecipeV1;
17
+ environment: MintedEnvironmentBindingV1;
18
+ testPatch: string;
19
+ installConfig: {
20
+ install: string[];
21
+ test_cmd: string[];
22
+ log_parser: 'vitest-json.v1';
23
+ };
24
+ parity: ReturnType<typeof deriveF2pP2pFromReports>;
25
+ verdicts: {
26
+ empty: boolean;
27
+ gold: boolean;
28
+ broken: boolean;
29
+ };
30
+ };
31
+ /** Parse the stable assertion subset of Vitest’s JSON reporter output. */
32
+ export declare function parseVitestJsonV1(log: string): ParsedVitestFixtureReport;
33
+ /**
34
+ * Build pure-data Vitest JSON parser-contract coverage. The mock registry
35
+ * reference is digest-qualified and all three synthetic states are parsed
36
+ * through the same trusted parser contract. This is not source-derived
37
+ * empirical evidence and cannot admit, mint, or claim a Jinn task. No gold
38
+ * patch is returned or serialized.
39
+ */
40
+ export declare function runPublicRepoParityFixture(proof: PublicRepoProofFixture): PublicRepoFixtureRun;
@@ -0,0 +1,115 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ /**
3
+ * Hermetic oracle for the `vitest-json.v1` evaluator parser contract. It
4
+ * mirrors only the public JSON shape accepted by the signed upstream bundle;
5
+ * production grading remains in the pinned evaluator bundle itself.
6
+ */
7
+ import { deriveF2pP2pFromReports } from '../../solver-types/_swe-rebench-v2-empirical-tests.js';
8
+ import { commandSpecToEvaluatorCommand } from '../../solver-types/_swe-rebench-v2-harvest.js';
9
+ import { parseMintedEnvironmentBindingV1 } from '../../solver-types/_swe-rebench-v2-minted-pool.js';
10
+ import { fixtureSha256, resolvePublicRepoProofRecipe, } from './public-repo-fixtures.js';
11
+ /** Parse the stable assertion subset of Vitest’s JSON reporter output. */
12
+ export function parseVitestJsonV1(log) {
13
+ let report;
14
+ for (let offset = 0; offset < log.length; offset += 1) {
15
+ if (log[offset] !== '{')
16
+ continue;
17
+ try {
18
+ const candidate = JSON.parse(log.slice(offset));
19
+ if (isRecord(candidate) && Array.isArray(candidate['testResults']))
20
+ report = candidate;
21
+ }
22
+ catch {
23
+ // Reporter output can be prefixed with runner diagnostics; continue
24
+ // until we encounter a complete JSON object.
25
+ }
26
+ }
27
+ if (!isRecord(report) || !Array.isArray(report['testResults'])) {
28
+ throw new Error('vitest-json.v1: no Vitest JSON report found');
29
+ }
30
+ const passed = [];
31
+ const failed = [];
32
+ for (const suite of report['testResults']) {
33
+ if (!isRecord(suite) || !Array.isArray(suite['assertionResults']))
34
+ continue;
35
+ for (const assertion of suite['assertionResults']) {
36
+ if (!isRecord(assertion) || typeof assertion['fullName'] !== 'string')
37
+ continue;
38
+ if (assertion['status'] === 'passed')
39
+ passed.push(assertion['fullName']);
40
+ if (assertion['status'] === 'failed')
41
+ failed.push(assertion['fullName']);
42
+ }
43
+ }
44
+ return { passed: [...new Set(passed)].sort(), failed: [...new Set(failed)].sort() };
45
+ }
46
+ /**
47
+ * Build pure-data Vitest JSON parser-contract coverage. The mock registry
48
+ * reference is digest-qualified and all three synthetic states are parsed
49
+ * through the same trusted parser contract. This is not source-derived
50
+ * empirical evidence and cannot admit, mint, or claim a Jinn task. No gold
51
+ * patch is returned or serialized.
52
+ */
53
+ export function runPublicRepoParityFixture(proof) {
54
+ const recipe = resolvePublicRepoProofRecipe(proof);
55
+ const imageDigest = fixtureSha256(`public-repo-fixture:image:${proof.id}`);
56
+ const environmentHash = fixtureSha256(`public-repo-fixture:environment:${proof.id}`);
57
+ const environment = parseMintedEnvironmentBindingV1({
58
+ environmentSpecCid: `bafy-public-repo-${proof.id}-environment`,
59
+ environmentHash,
60
+ attestation: {
61
+ scheme: 'eip191',
62
+ algo: 'secp256k1',
63
+ environmentHash,
64
+ operatorSafe: `0x${'1'.repeat(40)}`,
65
+ signer: `0x${'2'.repeat(40)}`,
66
+ signature: `0x${'3'.repeat(130)}`,
67
+ },
68
+ parser: recipe.parser,
69
+ image: {
70
+ reference: `localhost:5000/jinn-task-environment/${proof.id}@${imageDigest}`,
71
+ digest: imageDigest,
72
+ },
73
+ platform: 'linux/amd64',
74
+ });
75
+ const stable = 'public-repo fixture stable control';
76
+ const empty = parseVitestJsonV1(vitestJson([
77
+ ...proof.syntheticParserContractTests.map((fullName) => ({ fullName, status: 'failed' })),
78
+ { fullName: stable, status: 'passed' },
79
+ ]));
80
+ const gold = parseVitestJsonV1(vitestJson([
81
+ ...proof.syntheticParserContractTests.map((fullName) => ({ fullName, status: 'passed' })),
82
+ { fullName: stable, status: 'passed' },
83
+ ]));
84
+ const broken = parseVitestJsonV1(vitestJson([
85
+ ...proof.syntheticParserContractTests.map((fullName, index) => ({ fullName, status: index === 0 ? 'passed' : 'failed' })),
86
+ { fullName: stable, status: 'passed' },
87
+ ]));
88
+ const allTests = [...proof.syntheticParserContractTests, stable];
89
+ const parity = deriveF2pP2pFromReports({ ...empty, passed_match: false }, { ...gold, passed_match: true }, allTests);
90
+ const verdict = (report) => proof.syntheticParserContractTests.every((name) => report.passed.includes(name)) &&
91
+ !report.failed.some((name) => allTests.includes(name));
92
+ return {
93
+ proof,
94
+ recipe,
95
+ environment,
96
+ testPatch: publicTestPatch(proof.testPaths),
97
+ installConfig: {
98
+ install: recipe.installCommands.map(commandSpecToEvaluatorCommand),
99
+ test_cmd: recipe.testCommands.map(commandSpecToEvaluatorCommand),
100
+ log_parser: 'vitest-json.v1',
101
+ },
102
+ parity,
103
+ verdicts: { empty: verdict(empty), gold: verdict(gold), broken: verdict(broken) },
104
+ };
105
+ }
106
+ function vitestJson(assertionResults) {
107
+ return `Vitest fixture diagnostics\n${JSON.stringify({ testResults: [{ assertionResults }] })}`;
108
+ }
109
+ function publicTestPatch(paths) {
110
+ return paths.map((path) => `diff --git a/${path} b/${path}\n--- a/${path}\n+++ b/${path}`).join('\n');
111
+ }
112
+ function isRecord(value) {
113
+ return value !== null && typeof value === 'object' && !Array.isArray(value);
114
+ }
115
+ //# sourceMappingURL=vitest-json-fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitest-json-fixture.js","sourceRoot":"","sources":["../../../src/task-creator/proofs/vitest-json-fixture.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AAGpG,OAAO,EACL,aAAa,EACb,4BAA4B,GAE7B,MAAM,2BAA2B,CAAC;AA0BnC,0EAA0E;AAC1E,MA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AAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
@@ -10,6 +10,7 @@
10
10
  import { type Hex } from 'viem';
11
11
  import { type ArtifactScrubConfig } from '../harnesses/engine/artifact-scrub.js';
12
12
  import type { TrajectoryCollector } from './collector.js';
13
+ import type { ScrubPipeline } from './scrub/pipeline.js';
13
14
  import type { JinnTrajectoryV1 } from './schema.js';
14
15
  export interface EmitTrajectoryParams {
15
16
  collector: TrajectoryCollector;
@@ -20,6 +21,11 @@ export interface EmitTrajectoryParams {
20
21
  signerAddress: `0x${string}`;
21
22
  ipfsRegistryUrl: string;
22
23
  scrub?: ArtifactScrubConfig;
24
+ /**
25
+ * Seller-side scrub pipeline (secretlint + openredaction + optional ML PII).
26
+ * When provided, every span is scrubbed through it before signing.
27
+ */
28
+ scrubPipeline?: ScrubPipeline;
23
29
  }
24
30
  export interface EmitTrajectoryResult {
25
31
  cid: string;
@@ -11,6 +11,7 @@ import { createHash } from 'node:crypto';
11
11
  import { signCanonical } from '../harnesses/engine/signing.js';
12
12
  import { uploadToIpfs } from '../adapters/mech/ipfs.js';
13
13
  import { scrubArtifactBytes, } from '../harnesses/engine/artifact-scrub.js';
14
+ import { scrubSpansForEmit } from './scrub/emit-scrub.js';
14
15
  function sha256Hex(bytes) {
15
16
  return createHash('sha256').update(bytes, 'utf8').digest('hex');
16
17
  }
@@ -55,7 +56,14 @@ function scrubSnapshot(spans, redactionManifest, scrub) {
55
56
  }
56
57
  export async function emitTrajectory(p) {
57
58
  const snap = p.collector.snapshot();
58
- const scrubbed = scrubSnapshot(snap.spans, snap.redactionManifest, p.scrub);
59
+ let spans = snap.spans;
60
+ let manifest = snap.redactionManifest;
61
+ if (p.scrubPipeline) {
62
+ const piped = await scrubSpansForEmit(spans, p.scrubPipeline, p.collector.taskCid);
63
+ spans = piped.spans;
64
+ manifest = piped.redactionManifest;
65
+ }
66
+ const scrubbed = scrubSnapshot(spans, manifest, p.scrub);
59
67
  const unsigned = {
60
68
  schemaVersion: 'jinn.trajectory.v1',
61
69
  runId: p.runId,
@@ -1 +1 @@
1
- {"version":3,"file":"emit.js","sourceRoot":"","sources":["../../src/trajectory/emit.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACL,kBAAkB,GAEnB,MAAM,uCAAuC,CAAC;AAqB/C,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAS,SAAS,CAAC,IAAU,EAAE,KAA0B;IACvD,MAAM,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC;IACpF,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;IACjE,IAAI,CAAC;QACH,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;YACvD,YAAY,EAAE,MAAM,CAAC,YAAY;SAClC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;IACpC,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CACpB,KAAa,EACb,iBAAoC,EACpC,KAAsC;IAEtC,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,KAAK,EAAE,iB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AM,GAAqB;QAC/B,GAAG,QAAQ;QACX,SAAS,EAAE;YACT,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,CAAC,CAAC,aAAa;YACvB,IAAI,EAAE,GAAG,CAAC,IAAW;YACrB,GAAG,EAAE,GAAG,CAAC,GAAU;SACpB;KACF,CAAC;IAEF,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;IACrC,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,CAAC,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAE1D,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AACjC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
  /**
3
3
  * harness-bundle.v1 — the operator's resolved harness configuration at
4
4
  * session capture time. The bundle's deterministic sha256 becomes
@@ -51,8 +51,8 @@ export declare const HarnessBundleManifestSchema: z.ZodObject<{
51
51
  path: string;
52
52
  sha256: string;
53
53
  }[];
54
- capturePath: "A" | "B" | "C" | "D";
55
54
  bundleSha256: string;
55
+ capturePath: "A" | "B" | "C" | "D";
56
56
  tool: {
57
57
  name: string;
58
58
  version?: string | undefined;
@@ -64,8 +64,8 @@ export declare const HarnessBundleManifestSchema: z.ZodObject<{
64
64
  path: string;
65
65
  sha256: string;
66
66
  }[];
67
- capturePath: "A" | "B" | "C" | "D";
68
67
  bundleSha256: string;
68
+ capturePath: "A" | "B" | "C" | "D";
69
69
  tool: {
70
70
  name: string;
71
71
  version?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
  /**
3
3
  * harness-bundle.v1 — the operator's resolved harness configuration at
4
4
  * session capture time. The bundle's deterministic sha256 becomes
@@ -1 +1 @@
1
- {"version":3,"file":"harness-bundle-schema.js","sourceRoot":"","sources":["../../src/trajectory/harness-bundle-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAA4B,CAAC;AAEzE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IAC7C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAChD,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;IACF;;;;;OAKG;IACH,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;QAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KACtC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACX,CAAC,CAAC"}
1
+ {"version":3,"file":"harness-bundle-schema.js","sourceRoot":"","sources":["../../src/trajectory/harness-bundle-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAA4B,CAAC;AAEzE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IAC7C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAChD,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;IACF;;;;;OAKG;IACH,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;QAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KACtC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACX,CAAC,CAAC"}
@@ -1,18 +1 @@
1
- /**
2
- * In-run per-span hash chain.
3
- *
4
- * Scope: §3.1 trajectory-signing-granularity row — "each span carries
5
- * jinn.prevSpanHash linking to the previous span's hash; first span
6
- * links to a run-start genesis value derived from envelope task CID."
7
- *
8
- * Motivation: a crashed run that failed to upload the signed trajectory
9
- * blob still produces a verifiable-as-prefix trace if spans are recovered
10
- * elsewhere (enclave memory dump, challenger capture). Partial authenticity
11
- * is not zero.
12
- */
13
- import { type Hex } from 'viem';
14
- import type { Span } from './schema.js';
15
- /** Genesis value for the chain — keccak256(JCS({runStart: taskCid})). */
16
- export declare function computeGenesisHash(taskCid: string): Hex;
17
- /** Hash of a finalized span, to be set as jinn.prevSpanHash on the next one. */
18
- export declare function computePrevSpanHash(span: Span): Hex;
1
+ export { computeGenesisHash, computePrevSpanHash, type Hex, } from '@jinn-network/core/trajectory';
@@ -1,23 +1,2 @@
1
- /**
2
- * In-run per-span hash chain.
3
- *
4
- * Scope: §3.1 trajectory-signing-granularity row — "each span carries
5
- * jinn.prevSpanHash linking to the previous span's hash; first span
6
- * links to a run-start genesis value derived from envelope task CID."
7
- *
8
- * Motivation: a crashed run that failed to upload the signed trajectory
9
- * blob still produces a verifiable-as-prefix trace if spans are recovered
10
- * elsewhere (enclave memory dump, challenger capture). Partial authenticity
11
- * is not zero.
12
- */
13
- import { keccak256, toBytes } from 'viem';
14
- import { canonicalJson } from '../harnesses/engine/canonical-json.js';
15
- /** Genesis value for the chain — keccak256(JCS({runStart: taskCid})). */
16
- export function computeGenesisHash(taskCid) {
17
- return keccak256(toBytes(canonicalJson({ runStart: taskCid })));
18
- }
19
- /** Hash of a finalized span, to be set as jinn.prevSpanHash on the next one. */
20
- export function computePrevSpanHash(span) {
21
- return keccak256(toBytes(canonicalJson(span)));
22
- }
1
+ export { computeGenesisHash, computePrevSpanHash, } from '@jinn-network/core/trajectory';
23
2
  //# sourceMappingURL=hash-chain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hash-chain.js","sourceRoot":"","sources":["../../src/trajectory/hash-chain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAY,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAGtE,yEAAyE;AACzE,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAChD,OAAO,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,mBAAmB,CAAC,IAAU;IAC5C,OAAO,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC"}
1
+ {"version":3,"file":"hash-chain.js","sourceRoot":"","sources":["../../src/trajectory/hash-chain.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GAEpB,MAAM,+BAA+B,CAAC"}
@@ -26,3 +26,5 @@ export { createLlmProxyApp, startLlmProxyServer } from './llm-proxy.js';
26
26
  export type { LlmProxyConfig, LlmProxyServer } from './llm-proxy.js';
27
27
  export { exchangeToSpanAttributes, emitLlmProxyExchange } from './llm-proxy-spans.js';
28
28
  export type { LlmProxyExchange, LlmProxyProvider } from './llm-proxy-spans.js';
29
+ export { getTranscriptSpanParser } from './transcript-to-spans/index.js';
30
+ export type { TranscriptSpanParser, TranscriptSpanParserResolution } from './transcript-to-spans/types.js';
@@ -25,4 +25,6 @@ export { tracedSpawn } from './wrappers/subprocess.js';
25
25
  // Path C LLM API proxy
26
26
  export { createLlmProxyApp, startLlmProxyServer } from './llm-proxy.js';
27
27
  export { exchangeToSpanAttributes, emitLlmProxyExchange } from './llm-proxy-spans.js';
28
+ // Transcript-to-spans (DR-2026-07-14, #1473)
29
+ export { getTranscriptSpanParser } from './transcript-to-spans/index.js';
28
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/trajectory/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,yBAAyB;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGrD,UAAU;AACV,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3C,qBAAqB;AACrB,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE1E,4BAA4B;AAC5B,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AAUrB,4DAA4D;AAC5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B,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAG3B,sBAAsB;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAQpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,uBAAuB;AACvB,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAExE,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAGtF,6CAA6C;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1,14 +1,22 @@
1
1
  export const IDENTITY_SCRUB_VERSION = '1.0.0';
2
2
  // Octet-bounded so version strings like "22.1.0.0" don't trigger false positives
3
- // each segment must be a valid 0-255 octet.
3
+ // - each segment must be a valid 0-255 octet.
4
4
  const IPV4_PATTERN = /\b(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\b/g;
5
- export function scrubIdentityString(s, cfg) {
5
+ // Reserved-protocol tokens (jinn.span.kind, jinn.artifact.emit, ...) must pass
6
+ // through identity scrubbing untouched, so an identity token that is a substring
7
+ // of a protocol token (e.g. username === 'jinn') cannot deface the protocol
8
+ // namespace (#1474). We achieve this by splitting the input on protocol tokens
9
+ // and scrubbing only the non-protocol segments - there is no sentinel to leak or
10
+ // collide with. The protection is confined to this shared function so all
11
+ // consumers (trajectory span-processor, artifact-scrub, capture export) inherit it.
12
+ // Scrub one non-protocol segment via the ordered identity replacements.
13
+ function scrubSegment(s, cfg) {
14
+ let out = s;
6
15
  // Order matters: email and full git-author name resolve first as
7
16
  // composite identifiers. Email-before-username avoids mangling addresses
8
17
  // whose local-part matches a username; gitAuthorName-before-hostname/
9
18
  // machineId avoids the symmetric trap where a name fragment is masked
10
19
  // by an earlier scrub.
11
- let out = s;
12
20
  if (cfg.gitAuthorEmail)
13
21
  out = out.split(cfg.gitAuthorEmail).join('<EMAIL>');
14
22
  if (cfg.gitAuthorName)
@@ -22,6 +30,17 @@ export function scrubIdentityString(s, cfg) {
22
30
  out = out.replace(IPV4_PATTERN, '<IPV4>');
23
31
  return out;
24
32
  }
33
+ export function scrubIdentityString(s, cfg) {
34
+ // Split on protocol tokens; the capturing group keeps them in the array at
35
+ // odd indices. Even indices are ordinary text to scrub; odd indices are
36
+ // jinn.-prefixed protocol tokens that pass through verbatim (#1474) - so an
37
+ // identity token that is a substring of a protocol token cannot deface it,
38
+ // and there is no sentinel to collide with.
39
+ return s
40
+ .split(/(\bjinn\.[A-Za-z0-9_.-]+)/g)
41
+ .map((part, i) => (i % 2 === 1 ? part : scrubSegment(part, cfg)))
42
+ .join('');
43
+ }
25
44
  export class IdentityScrubProcessor {
26
45
  cfg;
27
46
  constructor(cfg) {
@@ -1 +1 @@
1
- {"version":3,"file":"identity-scrub.js","sourceRoot":"","sources":["../../../src/trajectory/processors/identity-scrub.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAU9C,iFAAiF;AACjF,8CAA8C;AAC9C,MAAM,YAAY,GAChB,0FAA0F,CAAC;AAE7F,MAAM,UAAU,mBAAmB,CAAC,CAAS,EAAE,GAAwB;IACrE,iEAAiE;IACjE,yEAAyE;IACzE,sEAAsE;IACtE,sEAAsE;IACtE,uBAAuB;IACvB,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,IAAI,GAAG,CAAC,cAAc;QAAE,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC5E,IAAI,GAAG,CAAC,aAAa;QAAE,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CA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