@jinn-network/client 0.1.2 → 0.1.3-canary.262e5cda

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 (812) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/CONTRIBUTING.md +8 -2
  3. package/README.md +38 -14
  4. package/deployments/deployment-jinn-mvi-l1-sepolia-fast.json +36 -0
  5. package/deployments/deployment-jinn-mvi-l1-sepolia.json +36 -0
  6. package/deployments/deployment-jinn-mvi-l2-baseSepolia.json +12 -0
  7. package/deployments/deployment-phase1b-mech-baseSepolia-fast.json +3 -3
  8. package/deployments/deployment-stolas-l2-baseSepolia-fast.json +1 -1
  9. package/dist/adapters/adapter.d.ts +2 -2
  10. package/dist/adapters/claim-registry/client.d.ts +9 -0
  11. package/dist/adapters/claim-registry/client.js +22 -2
  12. package/dist/adapters/claim-registry/client.js.map +1 -1
  13. package/dist/adapters/local/adapter.d.ts +2 -2
  14. package/dist/adapters/local/adapter.js +8 -8
  15. package/dist/adapters/local/adapter.js.map +1 -1
  16. package/dist/adapters/mech/adapter.d.ts +3 -4
  17. package/dist/adapters/mech/adapter.js +86 -50
  18. package/dist/adapters/mech/adapter.js.map +1 -1
  19. package/dist/adapters/mech/contracts.d.ts +6 -4
  20. package/dist/adapters/mech/contracts.js +118 -14
  21. package/dist/adapters/mech/contracts.js.map +1 -1
  22. package/dist/adapters/mech/ipfs.d.ts +61 -6
  23. package/dist/adapters/mech/ipfs.js +159 -26
  24. package/dist/adapters/mech/ipfs.js.map +1 -1
  25. package/dist/adapters/mech/safe-revert.d.ts +39 -0
  26. package/dist/adapters/mech/safe-revert.js +130 -0
  27. package/dist/adapters/mech/safe-revert.js.map +1 -0
  28. package/dist/adapters/mech/safe.js +47 -21
  29. package/dist/adapters/mech/safe.js.map +1 -1
  30. package/dist/adapters/mech/types.d.ts +8 -0
  31. package/dist/adapters/mech/types.js.map +1 -1
  32. package/dist/agent/agent-ws.d.ts +55 -0
  33. package/dist/agent/agent-ws.js +288 -0
  34. package/dist/agent/agent-ws.js.map +1 -0
  35. package/dist/agent/auto-mode-detect.d.ts +6 -0
  36. package/dist/agent/auto-mode-detect.js +44 -0
  37. package/dist/agent/auto-mode-detect.js.map +1 -0
  38. package/dist/agent/operator-claude.d.ts +22 -0
  39. package/dist/agent/operator-claude.js +130 -0
  40. package/dist/agent/operator-claude.js.map +1 -0
  41. package/dist/api/admin-endpoint.d.ts +12 -0
  42. package/dist/api/admin-endpoint.js +71 -0
  43. package/dist/api/admin-endpoint.js.map +1 -0
  44. package/dist/api/bootstrap-endpoint.d.ts +16 -0
  45. package/dist/api/bootstrap-endpoint.js +78 -0
  46. package/dist/api/bootstrap-endpoint.js.map +1 -0
  47. package/dist/api/events-endpoint.d.ts +9 -0
  48. package/dist/api/events-endpoint.js +46 -0
  49. package/dist/api/events-endpoint.js.map +1 -0
  50. package/dist/api/fleet-build.d.ts +1 -1
  51. package/dist/api/fleet-build.js +17 -8
  52. package/dist/api/fleet-build.js.map +1 -1
  53. package/dist/api/gather-status.js +5 -1
  54. package/dist/api/gather-status.js.map +1 -1
  55. package/dist/api/handshake.d.ts +17 -0
  56. package/dist/api/handshake.js +28 -0
  57. package/dist/api/handshake.js.map +1 -0
  58. package/dist/api/peers.js +20 -5
  59. package/dist/api/peers.js.map +1 -1
  60. package/dist/api/portfolio-v0-build.d.ts +6 -0
  61. package/dist/api/portfolio-v0-build.js +6 -1
  62. package/dist/api/portfolio-v0-build.js.map +1 -1
  63. package/dist/api/rewards-build.js +3 -8
  64. package/dist/api/rewards-build.js.map +1 -1
  65. package/dist/api/server.d.ts +54 -0
  66. package/dist/api/server.js +239 -13
  67. package/dist/api/server.js.map +1 -1
  68. package/dist/api/setup-endpoints.d.ts +34 -0
  69. package/dist/api/setup-endpoints.js +188 -0
  70. package/dist/api/setup-endpoints.js.map +1 -0
  71. package/dist/api/status-build.d.ts +9 -1
  72. package/dist/api/status-build.js +44 -9
  73. package/dist/api/status-build.js.map +1 -1
  74. package/dist/api/status-rollup-build.d.ts +46 -1
  75. package/dist/api/status-rollup-build.js +168 -5
  76. package/dist/api/status-rollup-build.js.map +1 -1
  77. package/dist/api/ui-token.d.ts +5 -0
  78. package/dist/api/ui-token.js +36 -0
  79. package/dist/api/ui-token.js.map +1 -0
  80. package/dist/build-info.d.ts +32 -0
  81. package/dist/build-info.js +69 -0
  82. package/dist/build-info.js.map +1 -0
  83. package/dist/build-info.json +6 -0
  84. package/dist/build-meta.json +1 -1
  85. package/dist/cli/command.d.ts +9 -0
  86. package/dist/cli/commands/balance.d.ts +7 -0
  87. package/dist/cli/commands/balance.js +38 -32
  88. package/dist/cli/commands/balance.js.map +1 -1
  89. package/dist/cli/commands/bootstrap.d.ts +13 -1
  90. package/dist/cli/commands/bootstrap.js +150 -132
  91. package/dist/cli/commands/bootstrap.js.map +1 -1
  92. package/dist/cli/commands/claim-rewards.js +14 -2
  93. package/dist/cli/commands/claim-rewards.js.map +1 -1
  94. package/dist/cli/commands/conformance.d.ts +12 -0
  95. package/dist/cli/commands/conformance.js +140 -0
  96. package/dist/cli/commands/conformance.js.map +1 -0
  97. package/dist/cli/commands/create.d.ts +36 -0
  98. package/dist/cli/commands/create.js +374 -0
  99. package/dist/cli/commands/create.js.map +1 -0
  100. package/dist/cli/commands/doctor.d.ts +34 -1
  101. package/dist/cli/commands/doctor.js +136 -121
  102. package/dist/cli/commands/doctor.js.map +1 -1
  103. package/dist/cli/commands/fleet-scale.d.ts +19 -1
  104. package/dist/cli/commands/fleet-scale.js +379 -361
  105. package/dist/cli/commands/fleet-scale.js.map +1 -1
  106. package/dist/cli/commands/fleet.d.ts +7 -0
  107. package/dist/cli/commands/fleet.js +39 -33
  108. package/dist/cli/commands/fleet.js.map +1 -1
  109. package/dist/cli/commands/fund-requirements.d.ts +14 -1
  110. package/dist/cli/commands/fund-requirements.js +183 -174
  111. package/dist/cli/commands/fund-requirements.js.map +1 -1
  112. package/dist/cli/commands/history.d.ts +10 -1
  113. package/dist/cli/commands/history.js +66 -57
  114. package/dist/cli/commands/history.js.map +1 -1
  115. package/dist/cli/commands/impls.d.ts +18 -0
  116. package/dist/cli/commands/impls.js +208 -0
  117. package/dist/cli/commands/impls.js.map +1 -0
  118. package/dist/cli/commands/init.js +4 -1
  119. package/dist/cli/commands/init.js.map +1 -1
  120. package/dist/cli/commands/intents.js +13 -9
  121. package/dist/cli/commands/intents.js.map +1 -1
  122. package/dist/cli/commands/logs.d.ts +6 -1
  123. package/dist/cli/commands/logs.js +77 -70
  124. package/dist/cli/commands/logs.js.map +1 -1
  125. package/dist/cli/commands/migrate-agent-id.d.ts +26 -0
  126. package/dist/cli/commands/migrate-agent-id.js +165 -0
  127. package/dist/cli/commands/migrate-agent-id.js.map +1 -0
  128. package/dist/cli/commands/plug-ins.d.ts +34 -0
  129. package/dist/cli/commands/plug-ins.js +282 -0
  130. package/dist/cli/commands/plug-ins.js.map +1 -0
  131. package/dist/cli/commands/plugin-install.d.ts +10 -0
  132. package/dist/cli/commands/plugin-install.js +226 -14
  133. package/dist/cli/commands/plugin-install.js.map +1 -1
  134. package/dist/cli/commands/rewards.d.ts +7 -0
  135. package/dist/cli/commands/rewards.js +46 -40
  136. package/dist/cli/commands/rewards.js.map +1 -1
  137. package/dist/cli/commands/run.d.ts +14 -1
  138. package/dist/cli/commands/run.js +232 -90
  139. package/dist/cli/commands/run.js.map +1 -1
  140. package/dist/cli/commands/status.d.ts +10 -0
  141. package/dist/cli/commands/status.js +97 -34
  142. package/dist/cli/commands/status.js.map +1 -1
  143. package/dist/cli/commands/submit-intent.js +33 -6
  144. package/dist/cli/commands/submit-intent.js.map +1 -1
  145. package/dist/cli/commands/ui.js +45 -0
  146. package/dist/cli/commands/ui.js.map +1 -0
  147. package/dist/cli/commands/update.d.ts +5 -0
  148. package/dist/cli/commands/update.js +102 -97
  149. package/dist/cli/commands/update.js.map +1 -1
  150. package/dist/cli/commands/version.js +3 -1
  151. package/dist/cli/commands/version.js.map +1 -1
  152. package/dist/cli/commands/withdraw.d.ts +21 -1
  153. package/dist/cli/commands/withdraw.js +175 -159
  154. package/dist/cli/commands/withdraw.js.map +1 -1
  155. package/dist/cli/execution-context.d.ts +1 -1
  156. package/dist/cli/execution-context.js +2 -1
  157. package/dist/cli/execution-context.js.map +1 -1
  158. package/dist/cli/help.js +7 -0
  159. package/dist/cli/help.js.map +1 -1
  160. package/dist/cli/index.d.ts +7 -0
  161. package/dist/cli/index.js +18 -2
  162. package/dist/cli/index.js.map +1 -1
  163. package/dist/cli/intent-registry-access.d.ts +33 -1
  164. package/dist/cli/intent-registry-access.js +40 -2
  165. package/dist/cli/intent-registry-access.js.map +1 -1
  166. package/dist/cli/open-browser.d.ts +1 -0
  167. package/dist/cli/open-browser.js +18 -0
  168. package/dist/cli/open-browser.js.map +1 -0
  169. package/dist/cli/password.d.ts +3 -3
  170. package/dist/cli/password.js +5 -5
  171. package/dist/cli/password.js.map +1 -1
  172. package/dist/config.d.ts +883 -11
  173. package/dist/config.js +435 -4
  174. package/dist/config.js.map +1 -1
  175. package/dist/conformance/checks/artifacts.d.ts +37 -0
  176. package/dist/conformance/checks/artifacts.js +110 -0
  177. package/dist/conformance/checks/artifacts.js.map +1 -0
  178. package/dist/conformance/checks/envelope-schema.d.ts +17 -0
  179. package/dist/conformance/checks/envelope-schema.js +36 -0
  180. package/dist/conformance/checks/envelope-schema.js.map +1 -0
  181. package/dist/conformance/checks/hash-signature.d.ts +26 -0
  182. package/dist/conformance/checks/hash-signature.js +70 -0
  183. package/dist/conformance/checks/hash-signature.js.map +1 -0
  184. package/dist/conformance/checks/payload.d.ts +19 -0
  185. package/dist/conformance/checks/payload.js +52 -0
  186. package/dist/conformance/checks/payload.js.map +1 -0
  187. package/dist/conformance/checks/secret-scrub.d.ts +33 -0
  188. package/dist/conformance/checks/secret-scrub.js +118 -0
  189. package/dist/conformance/checks/secret-scrub.js.map +1 -0
  190. package/dist/conformance/checks/source-runtime.d.ts +43 -0
  191. package/dist/conformance/checks/source-runtime.js +68 -0
  192. package/dist/conformance/checks/source-runtime.js.map +1 -0
  193. package/dist/conformance/checks/source-static.d.ts +61 -0
  194. package/dist/conformance/checks/source-static.js +311 -0
  195. package/dist/conformance/checks/source-static.js.map +1 -0
  196. package/dist/conformance/checks/trajectory-chain.d.ts +18 -0
  197. package/dist/conformance/checks/trajectory-chain.js +51 -0
  198. package/dist/conformance/checks/trajectory-chain.js.map +1 -0
  199. package/dist/conformance/checks/trajectory-profile.d.ts +17 -0
  200. package/dist/conformance/checks/trajectory-profile.js +51 -0
  201. package/dist/conformance/checks/trajectory-profile.js.map +1 -0
  202. package/dist/conformance/checks/trajectory-schema.d.ts +20 -0
  203. package/dist/conformance/checks/trajectory-schema.js +40 -0
  204. package/dist/conformance/checks/trajectory-schema.js.map +1 -0
  205. package/dist/conformance/checks/verdict.d.ts +44 -0
  206. package/dist/conformance/checks/verdict.js +122 -0
  207. package/dist/conformance/checks/verdict.js.map +1 -0
  208. package/dist/conformance/harness.d.ts +32 -0
  209. package/dist/conformance/harness.js +228 -0
  210. package/dist/conformance/harness.js.map +1 -0
  211. package/dist/conformance/types.d.ts +88 -0
  212. package/dist/conformance/types.js +31 -0
  213. package/dist/conformance/types.js.map +1 -0
  214. package/dist/corpus/acquire.d.ts +37 -0
  215. package/dist/corpus/acquire.js +155 -0
  216. package/dist/corpus/acquire.js.map +1 -0
  217. package/dist/corpus/cache.d.ts +14 -0
  218. package/dist/corpus/cache.js +18 -0
  219. package/dist/corpus/cache.js.map +1 -0
  220. package/dist/corpus/fetch.d.ts +9 -0
  221. package/dist/corpus/fetch.js +24 -0
  222. package/dist/corpus/fetch.js.map +1 -0
  223. package/dist/corpus/index.d.ts +16 -0
  224. package/dist/corpus/index.js +78 -0
  225. package/dist/corpus/index.js.map +1 -0
  226. package/dist/corpus/query.d.ts +17 -0
  227. package/dist/corpus/query.js +108 -0
  228. package/dist/corpus/query.js.map +1 -0
  229. package/dist/corpus/route-resolver.d.ts +16 -0
  230. package/dist/corpus/route-resolver.js +20 -0
  231. package/dist/corpus/route-resolver.js.map +1 -0
  232. package/dist/corpus/types.d.ts +107 -0
  233. package/dist/corpus/types.js +50 -0
  234. package/dist/corpus/types.js.map +1 -0
  235. package/dist/daemon/balance-topup-loop.js +2 -1
  236. package/dist/daemon/balance-topup-loop.js.map +1 -1
  237. package/dist/daemon/creator.d.ts +2 -2
  238. package/dist/daemon/creator.js +2 -2
  239. package/dist/daemon/creator.js.map +1 -1
  240. package/dist/daemon/daemon.d.ts +70 -15
  241. package/dist/daemon/daemon.js +159 -41
  242. package/dist/daemon/daemon.js.map +1 -1
  243. package/dist/daemon/delivery-watcher.js +31 -1
  244. package/dist/daemon/delivery-watcher.js.map +1 -1
  245. package/dist/daemon/jinn-claim-loop-canonical.d.ts +207 -0
  246. package/dist/daemon/jinn-claim-loop-canonical.js +296 -0
  247. package/dist/daemon/jinn-claim-loop-canonical.js.map +1 -0
  248. package/dist/daemon/jinn-claim-loop-mock.d.ts +61 -0
  249. package/dist/daemon/jinn-claim-loop-mock.js +122 -0
  250. package/dist/daemon/jinn-claim-loop-mock.js.map +1 -0
  251. package/dist/daemon/jinn-claim-loop.d.ts +123 -0
  252. package/dist/daemon/jinn-claim-loop.js +256 -0
  253. package/dist/daemon/jinn-claim-loop.js.map +1 -0
  254. package/dist/daemon/reward-claim-loop.d.ts +2 -0
  255. package/dist/daemon/reward-claim-loop.js +32 -27
  256. package/dist/daemon/reward-claim-loop.js.map +1 -1
  257. package/dist/dashboard/assets/index-Bxlk5qpa.js +68 -0
  258. package/dist/dashboard/assets/index-DQ3u_vP5.css +32 -0
  259. package/dist/dashboard/index.html +18 -74
  260. package/dist/earning/agent-wallet-binding.d.ts +133 -0
  261. package/dist/earning/agent-wallet-binding.js +202 -0
  262. package/dist/earning/agent-wallet-binding.js.map +1 -0
  263. package/dist/earning/bootstrap.d.ts +64 -0
  264. package/dist/earning/bootstrap.js +325 -32
  265. package/dist/earning/bootstrap.js.map +1 -1
  266. package/dist/earning/contracts.d.ts +323 -0
  267. package/dist/earning/contracts.js +276 -0
  268. package/dist/earning/contracts.js.map +1 -1
  269. package/dist/earning/funding-plan.d.ts +90 -0
  270. package/dist/earning/funding-plan.js +203 -0
  271. package/dist/earning/funding-plan.js.map +1 -0
  272. package/dist/earning/migrate-agent-id.d.ts +130 -0
  273. package/dist/earning/migrate-agent-id.js +257 -0
  274. package/dist/earning/migrate-agent-id.js.map +1 -0
  275. package/dist/earning/orphan-sweep.d.ts +14 -0
  276. package/dist/earning/orphan-sweep.js +63 -2
  277. package/dist/earning/orphan-sweep.js.map +1 -1
  278. package/dist/earning/reconcile.d.ts +2 -0
  279. package/dist/earning/reconcile.js +30 -0
  280. package/dist/earning/reconcile.js.map +1 -1
  281. package/dist/earning/stolas-claim.d.ts +86 -6
  282. package/dist/earning/stolas-claim.js +123 -9
  283. package/dist/earning/stolas-claim.js.map +1 -1
  284. package/dist/earning/store.d.ts +39 -0
  285. package/dist/earning/store.js +72 -1
  286. package/dist/earning/store.js.map +1 -1
  287. package/dist/earning/testnet-setup-migration.d.ts +32 -0
  288. package/dist/earning/testnet-setup-migration.js +214 -0
  289. package/dist/earning/testnet-setup-migration.js.map +1 -0
  290. package/dist/earning/types.d.ts +53 -9
  291. package/dist/earning/types.js +51 -2
  292. package/dist/earning/types.js.map +1 -1
  293. package/dist/earning/viem-clients.d.ts +20 -0
  294. package/dist/earning/viem-clients.js +32 -1
  295. package/dist/earning/viem-clients.js.map +1 -1
  296. package/dist/erc8004/abis.d.ts +381 -0
  297. package/dist/erc8004/abis.js +238 -0
  298. package/dist/erc8004/abis.js.map +1 -0
  299. package/dist/erc8004/addresses.d.ts +40 -0
  300. package/dist/erc8004/addresses.js +64 -0
  301. package/dist/erc8004/addresses.js.map +1 -0
  302. package/dist/erc8004/identity.d.ts +202 -0
  303. package/dist/erc8004/identity.js +305 -0
  304. package/dist/erc8004/identity.js.map +1 -0
  305. package/dist/erc8004/index.d.ts +13 -0
  306. package/dist/erc8004/index.js +20 -0
  307. package/dist/erc8004/index.js.map +1 -0
  308. package/dist/erc8004/reputation.d.ts +349 -0
  309. package/dist/erc8004/reputation.js +464 -0
  310. package/dist/erc8004/reputation.js.map +1 -0
  311. package/dist/erc8004/subgraph.d.ts +46 -0
  312. package/dist/erc8004/subgraph.js +37 -0
  313. package/dist/erc8004/subgraph.js.map +1 -0
  314. package/dist/erc8004/validation.d.ts +145 -0
  315. package/dist/erc8004/validation.js +219 -0
  316. package/dist/erc8004/validation.js.map +1 -0
  317. package/dist/errors/persisted-bootstrap-error.d.ts +4 -0
  318. package/dist/errors/persisted-bootstrap-error.js +50 -0
  319. package/dist/errors/persisted-bootstrap-error.js.map +1 -0
  320. package/dist/events/emitter.d.ts +12 -0
  321. package/dist/events/emitter.js +23 -0
  322. package/dist/events/emitter.js.map +1 -0
  323. package/dist/events/ring-buffer.d.ts +25 -0
  324. package/dist/events/ring-buffer.js +46 -0
  325. package/dist/events/ring-buffer.js.map +1 -0
  326. package/dist/events/types.d.ts +42 -0
  327. package/dist/events/types.js +28 -0
  328. package/dist/events/types.js.map +1 -0
  329. package/dist/index.d.ts +1 -1
  330. package/dist/intents/kinds/index.d.ts +10 -0
  331. package/dist/intents/kinds/index.js +7 -0
  332. package/dist/intents/kinds/index.js.map +1 -1
  333. package/dist/intents/kinds/learner-loop-test.d.ts +2 -0
  334. package/dist/intents/kinds/learner-loop-test.js +39 -0
  335. package/dist/intents/kinds/learner-loop-test.js.map +1 -0
  336. package/dist/intents/kinds/prediction-apy-v0.js +5 -1
  337. package/dist/intents/kinds/prediction-apy-v0.js.map +1 -1
  338. package/dist/intents/kinds/prediction-v0.js +5 -0
  339. package/dist/intents/kinds/prediction-v0.js.map +1 -1
  340. package/dist/intents/kinds/spec-kind.d.ts +18 -1
  341. package/dist/intents/posting-service.d.ts +3 -5
  342. package/dist/intents/posting-service.js +16 -50
  343. package/dist/intents/posting-service.js.map +1 -1
  344. package/dist/intents/prediction-apy-v0-auto.d.ts +12 -2
  345. package/dist/intents/prediction-apy-v0-auto.js +27 -2
  346. package/dist/intents/prediction-apy-v0-auto.js.map +1 -1
  347. package/dist/intents/prediction-v0-auto.d.ts +14 -4
  348. package/dist/intents/prediction-v0-auto.js +29 -5
  349. package/dist/intents/prediction-v0-auto.js.map +1 -1
  350. package/dist/intents/signing.d.ts +13 -0
  351. package/dist/intents/signing.js +27 -0
  352. package/dist/intents/signing.js.map +1 -0
  353. package/dist/intents/sources.d.ts +12 -5
  354. package/dist/intents/sources.js +11 -11
  355. package/dist/intents/sources.js.map +1 -1
  356. package/dist/main.d.ts +5 -2
  357. package/dist/main.js +792 -66
  358. package/dist/main.js.map +1 -1
  359. package/dist/mcp/acquire-artifact.d.ts +39 -0
  360. package/dist/mcp/acquire-artifact.js +163 -0
  361. package/dist/mcp/acquire-artifact.js.map +1 -0
  362. package/dist/mcp/operator-server.d.ts +20 -3
  363. package/dist/mcp/operator-server.js +500 -25
  364. package/dist/mcp/operator-server.js.map +1 -1
  365. package/dist/mcp/search-artifacts.d.ts +31 -0
  366. package/dist/mcp/search-artifacts.js +40 -0
  367. package/dist/mcp/search-artifacts.js.map +1 -0
  368. package/dist/mcp/server.js +103 -58
  369. package/dist/mcp/server.js.map +1 -1
  370. package/dist/observability/emit-event.d.ts +1 -1
  371. package/dist/observability/emit-event.js.map +1 -1
  372. package/dist/operator-errors.js +4 -5
  373. package/dist/operator-errors.js.map +1 -1
  374. package/dist/preflight/claude-auth.d.ts +11 -11
  375. package/dist/preflight/claude-auth.js +18 -32
  376. package/dist/preflight/claude-auth.js.map +1 -1
  377. package/dist/restorer/capability/index.d.ts +82 -0
  378. package/dist/restorer/capability/index.js +12 -0
  379. package/dist/restorer/capability/index.js.map +1 -0
  380. package/dist/restorer/capability/scoped-rpc.d.ts +12 -0
  381. package/dist/restorer/capability/scoped-rpc.js +34 -0
  382. package/dist/restorer/capability/scoped-rpc.js.map +1 -0
  383. package/dist/restorer/capability/scoped-secrets.d.ts +8 -0
  384. package/dist/restorer/capability/scoped-secrets.js +10 -0
  385. package/dist/restorer/capability/scoped-secrets.js.map +1 -0
  386. package/dist/restorer/capability/scoped-signer.d.ts +46 -0
  387. package/dist/restorer/capability/scoped-signer.js +73 -0
  388. package/dist/restorer/capability/scoped-signer.js.map +1 -0
  389. package/dist/restorer/engine/canonical-json.d.ts +0 -17
  390. package/dist/restorer/engine/canonical-json.js +56 -49
  391. package/dist/restorer/engine/canonical-json.js.map +1 -1
  392. package/dist/restorer/engine/claim.js +8 -1
  393. package/dist/restorer/engine/claim.js.map +1 -1
  394. package/dist/restorer/engine/delivery.d.ts +2 -0
  395. package/dist/restorer/engine/delivery.js +2 -2
  396. package/dist/restorer/engine/delivery.js.map +1 -1
  397. package/dist/restorer/engine/engine.d.ts +143 -26
  398. package/dist/restorer/engine/engine.js +485 -104
  399. package/dist/restorer/engine/engine.js.map +1 -1
  400. package/dist/restorer/engine/envelope-assembly.d.ts +65 -0
  401. package/dist/restorer/engine/envelope-assembly.js +60 -0
  402. package/dist/restorer/engine/envelope-assembly.js.map +1 -0
  403. package/dist/restorer/engine/packaging.d.ts +30 -30
  404. package/dist/restorer/engine/packaging.js +73 -47
  405. package/dist/restorer/engine/packaging.js.map +1 -1
  406. package/dist/restorer/engine/persistence.d.ts +7 -7
  407. package/dist/restorer/engine/persistence.js +4 -4
  408. package/dist/restorer/engine/persistence.js.map +1 -1
  409. package/dist/restorer/engine/registry.d.ts +24 -13
  410. package/dist/restorer/engine/registry.js +16 -13
  411. package/dist/restorer/engine/registry.js.map +1 -1
  412. package/dist/restorer/engine/validate-manifest.d.ts +23 -0
  413. package/dist/restorer/engine/validate-manifest.js +49 -0
  414. package/dist/restorer/engine/validate-manifest.js.map +1 -0
  415. package/dist/restorer/engine/verification-stub.d.ts +18 -0
  416. package/dist/restorer/engine/verification-stub.js +18 -0
  417. package/dist/restorer/engine/verification-stub.js.map +1 -0
  418. package/dist/restorer/external-impls/index.d.ts +3 -0
  419. package/dist/restorer/external-impls/index.js +2 -0
  420. package/dist/restorer/external-impls/index.js.map +1 -0
  421. package/dist/restorer/external-impls/loader.d.ts +49 -0
  422. package/dist/restorer/external-impls/loader.js +138 -0
  423. package/dist/restorer/external-impls/loader.js.map +1 -0
  424. package/dist/restorer/external-impls/package-hash.d.ts +26 -0
  425. package/dist/restorer/external-impls/package-hash.js +102 -0
  426. package/dist/restorer/external-impls/package-hash.js.map +1 -0
  427. package/dist/restorer/external-impls/types.d.ts +42 -0
  428. package/dist/restorer/external-impls/types.js +10 -0
  429. package/dist/restorer/external-impls/types.js.map +1 -0
  430. package/dist/restorer/impls/claude-code-learner/adapters/claude-code.d.ts +38 -0
  431. package/dist/restorer/impls/claude-code-learner/adapters/claude-code.js +200 -0
  432. package/dist/restorer/impls/claude-code-learner/adapters/claude-code.js.map +1 -0
  433. package/dist/restorer/impls/claude-code-learner/harvest.d.ts +19 -0
  434. package/dist/restorer/impls/claude-code-learner/harvest.js +146 -0
  435. package/dist/restorer/impls/claude-code-learner/harvest.js.map +1 -0
  436. package/dist/restorer/impls/claude-code-learner/index.d.ts +15 -0
  437. package/dist/restorer/impls/claude-code-learner/index.js +14 -0
  438. package/dist/restorer/impls/claude-code-learner/index.js.map +1 -0
  439. package/dist/restorer/impls/claude-code-learner/mcp-config.d.ts +48 -0
  440. package/dist/restorer/impls/claude-code-learner/mcp-config.js +52 -0
  441. package/dist/restorer/impls/claude-code-learner/mcp-config.js.map +1 -0
  442. package/dist/restorer/impls/claude-code-learner/plugin-path.d.ts +14 -0
  443. package/dist/restorer/impls/claude-code-learner/plugin-path.js +30 -0
  444. package/dist/restorer/impls/claude-code-learner/plugin-path.js.map +1 -0
  445. package/dist/restorer/impls/claude-code-learner/restorer.d.ts +38 -0
  446. package/dist/restorer/impls/claude-code-learner/restorer.js +73 -0
  447. package/dist/restorer/impls/claude-code-learner/restorer.js.map +1 -0
  448. package/dist/restorer/impls/claude-code-learner/test-utils/fake-plugin-outputs.d.ts +19 -0
  449. package/dist/restorer/impls/claude-code-learner/test-utils/fake-plugin-outputs.js +111 -0
  450. package/dist/restorer/impls/claude-code-learner/test-utils/fake-plugin-outputs.js.map +1 -0
  451. package/dist/restorer/impls/claude-code-learner/test-utils/noop-adapter.d.ts +22 -0
  452. package/dist/restorer/impls/claude-code-learner/test-utils/noop-adapter.js +35 -0
  453. package/dist/restorer/impls/claude-code-learner/test-utils/noop-adapter.js.map +1 -0
  454. package/dist/restorer/impls/claude-code-learner/test-utils/synthetic-session.d.ts +20 -0
  455. package/dist/restorer/impls/claude-code-learner/test-utils/synthetic-session.js +34 -0
  456. package/dist/restorer/impls/claude-code-learner/test-utils/synthetic-session.js.map +1 -0
  457. package/dist/restorer/impls/claude-code-learner/types.d.ts +99 -0
  458. package/dist/restorer/impls/claude-code-learner/types.js +2 -0
  459. package/dist/restorer/impls/claude-code-learner/types.js.map +1 -0
  460. package/dist/restorer/impls/claude-code-learner/wrapper.d.ts +49 -0
  461. package/dist/restorer/impls/claude-code-learner/wrapper.js +144 -0
  462. package/dist/restorer/impls/claude-code-learner/wrapper.js.map +1 -0
  463. package/dist/restorer/impls/claude-mcp-hyperliquid/index.d.ts +2 -2
  464. package/dist/restorer/impls/claude-mcp-hyperliquid/index.js +2 -2
  465. package/dist/restorer/impls/claude-mcp-hyperliquid/index.js.map +1 -1
  466. package/dist/restorer/impls/claude-mcp-hyperliquid/session-orchestrator.d.ts +7 -0
  467. package/dist/restorer/impls/claude-mcp-hyperliquid/session-orchestrator.js +38 -0
  468. package/dist/restorer/impls/claude-mcp-hyperliquid/session-orchestrator.js.map +1 -1
  469. package/dist/restorer/impls/claude-mcp-prediction/index.d.ts +2 -2
  470. package/dist/restorer/impls/claude-mcp-prediction/index.js +12 -2
  471. package/dist/restorer/impls/claude-mcp-prediction/index.js.map +1 -1
  472. package/dist/restorer/impls/claude-mcp-prediction/session-orchestrator.d.ts +9 -2
  473. package/dist/restorer/impls/claude-mcp-prediction/session-orchestrator.js +9 -125
  474. package/dist/restorer/impls/claude-mcp-prediction/session-orchestrator.js.map +1 -1
  475. package/dist/restorer/impls/claude-mcp-prediction-apy/index.d.ts +2 -2
  476. package/dist/restorer/impls/claude-mcp-prediction-apy/index.js +9 -2
  477. package/dist/restorer/impls/claude-mcp-prediction-apy/index.js.map +1 -1
  478. package/dist/restorer/impls/claude-mcp-prediction-apy/session-orchestrator.d.ts +10 -0
  479. package/dist/restorer/impls/claude-mcp-prediction-apy/session-orchestrator.js +10 -119
  480. package/dist/restorer/impls/claude-mcp-prediction-apy/session-orchestrator.js.map +1 -1
  481. package/dist/restorer/impls/claude-mcp-shared/single-session-orchestrator.d.ts +84 -0
  482. package/dist/restorer/impls/claude-mcp-shared/single-session-orchestrator.js +206 -0
  483. package/dist/restorer/impls/claude-mcp-shared/single-session-orchestrator.js.map +1 -0
  484. package/dist/restorer/impls/evaluation-context.d.ts +11 -4
  485. package/dist/restorer/impls/evaluation-context.js +9 -2
  486. package/dist/restorer/impls/evaluation-context.js.map +1 -1
  487. package/dist/restorer/impls/index.d.ts +46 -1
  488. package/dist/restorer/impls/index.js +38 -0
  489. package/dist/restorer/impls/index.js.map +1 -1
  490. package/dist/restorer/impls/legacy-claude/index.d.ts +13 -1
  491. package/dist/restorer/impls/legacy-claude/index.js +2 -0
  492. package/dist/restorer/impls/legacy-claude/index.js.map +1 -1
  493. package/dist/restorer/impls/portfolio-v0-evaluator/index.d.ts +4 -4
  494. package/dist/restorer/impls/portfolio-v0-evaluator/index.js +184 -55
  495. package/dist/restorer/impls/portfolio-v0-evaluator/index.js.map +1 -1
  496. package/dist/restorer/impls/prediction-apy-v0-baseline/index.d.ts +1 -1
  497. package/dist/restorer/impls/prediction-apy-v0-baseline/index.js +8 -1
  498. package/dist/restorer/impls/prediction-apy-v0-baseline/index.js.map +1 -1
  499. package/dist/restorer/impls/prediction-apy-v0-evaluator/index.d.ts +3 -3
  500. package/dist/restorer/impls/prediction-apy-v0-evaluator/index.js +153 -15
  501. package/dist/restorer/impls/prediction-apy-v0-evaluator/index.js.map +1 -1
  502. package/dist/restorer/impls/prediction-apy-v0-evaluator/parse-submission.d.ts +14 -5
  503. package/dist/restorer/impls/prediction-apy-v0-evaluator/parse-submission.js +16 -23
  504. package/dist/restorer/impls/prediction-apy-v0-evaluator/parse-submission.js.map +1 -1
  505. package/dist/restorer/impls/prediction-v0-baseline/index.d.ts +1 -1
  506. package/dist/restorer/impls/prediction-v0-baseline/index.js +16 -7
  507. package/dist/restorer/impls/prediction-v0-baseline/index.js.map +1 -1
  508. package/dist/restorer/impls/prediction-v0-evaluator/checks/integrity.d.ts +5 -3
  509. package/dist/restorer/impls/prediction-v0-evaluator/checks/integrity.js.map +1 -1
  510. package/dist/restorer/impls/prediction-v0-evaluator/index.d.ts +2 -2
  511. package/dist/restorer/impls/prediction-v0-evaluator/index.js +175 -67
  512. package/dist/restorer/impls/prediction-v0-evaluator/index.js.map +1 -1
  513. package/dist/restorer/manifest/index.d.ts +3 -0
  514. package/dist/restorer/manifest/index.js +3 -0
  515. package/dist/restorer/manifest/index.js.map +1 -0
  516. package/dist/restorer/manifest/load.d.ts +7 -0
  517. package/dist/restorer/manifest/load.js +49 -0
  518. package/dist/restorer/manifest/load.js.map +1 -0
  519. package/dist/restorer/manifest/types.d.ts +75 -0
  520. package/dist/restorer/manifest/types.js +8 -0
  521. package/dist/restorer/manifest/types.js.map +1 -0
  522. package/dist/restorer/manifest/verify.d.ts +15 -0
  523. package/dist/restorer/manifest/verify.js +53 -0
  524. package/dist/restorer/manifest/verify.js.map +1 -0
  525. package/dist/restorer/plug-ins/index.d.ts +14 -0
  526. package/dist/restorer/plug-ins/index.js +11 -0
  527. package/dist/restorer/plug-ins/index.js.map +1 -0
  528. package/dist/restorer/plug-ins/loader.d.ts +27 -0
  529. package/dist/restorer/plug-ins/loader.js +101 -0
  530. package/dist/restorer/plug-ins/loader.js.map +1 -0
  531. package/dist/restorer/plug-ins/manifest.d.ts +7 -0
  532. package/dist/restorer/plug-ins/manifest.js +97 -0
  533. package/dist/restorer/plug-ins/manifest.js.map +1 -0
  534. package/dist/restorer/plug-ins/registry.d.ts +24 -0
  535. package/dist/restorer/plug-ins/registry.js +17 -0
  536. package/dist/restorer/plug-ins/registry.js.map +1 -0
  537. package/dist/restorer/plug-ins/serialise.d.ts +29 -0
  538. package/dist/restorer/plug-ins/serialise.js +29 -0
  539. package/dist/restorer/plug-ins/serialise.js.map +1 -0
  540. package/dist/restorer/plug-ins/types.d.ts +77 -0
  541. package/dist/restorer/plug-ins/types.js +10 -0
  542. package/dist/restorer/plug-ins/types.js.map +1 -0
  543. package/dist/restorer/types.d.ts +66 -11
  544. package/dist/restorer/types.js.map +1 -1
  545. package/dist/runner/claude.d.ts +3 -3
  546. package/dist/runner/claude.js +57 -21
  547. package/dist/runner/claude.js.map +1 -1
  548. package/dist/runner/runner.d.ts +29 -2
  549. package/dist/runner/simple.d.ts +2 -2
  550. package/dist/runner/simple.js +2 -2
  551. package/dist/runner/simple.js.map +1 -1
  552. package/dist/scripts/fix-node-pty.mjs +62 -0
  553. package/dist/setup-mode.d.ts +34 -0
  554. package/dist/setup-mode.js +49 -0
  555. package/dist/setup-mode.js.map +1 -0
  556. package/dist/store/store.d.ts +79 -3
  557. package/dist/store/store.js +189 -6
  558. package/dist/store/store.js.map +1 -1
  559. package/dist/templates/plug-in/hook/README.md.tmpl +24 -0
  560. package/dist/templates/plug-in/hook/gitignore.tmpl +3 -0
  561. package/dist/templates/plug-in/hook/hooks/event.sh.tmpl +15 -0
  562. package/dist/templates/plug-in/hook/jinn-plugin.json.tmpl +16 -0
  563. package/dist/templates/plug-in/hook/package.json.tmpl +14 -0
  564. package/dist/templates/plug-in/hook/test/manifest.test.ts.tmpl +21 -0
  565. package/dist/templates/plug-in/mcp-tool/README.md.tmpl +26 -0
  566. package/dist/templates/plug-in/mcp-tool/gitignore.tmpl +4 -0
  567. package/dist/templates/plug-in/mcp-tool/jinn-plugin.json.tmpl +16 -0
  568. package/dist/templates/plug-in/mcp-tool/package.json.tmpl +19 -0
  569. package/dist/templates/plug-in/mcp-tool/src/server.ts.tmpl +17 -0
  570. package/dist/templates/plug-in/mcp-tool/test/server.test.ts.tmpl +18 -0
  571. package/dist/templates/plug-in/memory-backend/README.md.tmpl +33 -0
  572. package/dist/templates/plug-in/memory-backend/gitignore.tmpl +4 -0
  573. package/dist/templates/plug-in/memory-backend/jinn-plugin.json.tmpl +16 -0
  574. package/dist/templates/plug-in/memory-backend/package.json.tmpl +19 -0
  575. package/dist/templates/plug-in/memory-backend/src/server.ts.tmpl +23 -0
  576. package/dist/templates/plug-in/memory-backend/test/server.test.ts.tmpl +17 -0
  577. package/dist/templates/plug-in/phase-agent-override/README.md.tmpl +30 -0
  578. package/dist/templates/plug-in/phase-agent-override/agents/agent.md.tmpl +26 -0
  579. package/dist/templates/plug-in/phase-agent-override/gitignore.tmpl +3 -0
  580. package/dist/templates/plug-in/phase-agent-override/jinn-plugin.json.tmpl +17 -0
  581. package/dist/templates/plug-in/phase-agent-override/package.json.tmpl +14 -0
  582. package/dist/templates/plug-in/phase-agent-override/test/manifest.test.ts.tmpl +24 -0
  583. package/dist/templates/plug-in/skill-bundle/.claude-plugin/plugin.json.tmpl +5 -0
  584. package/dist/templates/plug-in/skill-bundle/README.md.tmpl +28 -0
  585. package/dist/templates/plug-in/skill-bundle/gitignore.tmpl +3 -0
  586. package/dist/templates/plug-in/skill-bundle/jinn-plugin.json.tmpl +15 -0
  587. package/dist/templates/plug-in/skill-bundle/package.json.tmpl +14 -0
  588. package/dist/templates/plug-in/skill-bundle/skills/example/SKILL.md.tmpl +14 -0
  589. package/dist/templates/plug-in/skill-bundle/test/manifest.test.ts.tmpl +21 -0
  590. package/dist/templates/plug-in/topic-explorer/README.md.tmpl +24 -0
  591. package/dist/templates/plug-in/topic-explorer/agents/explorer.md.tmpl +26 -0
  592. package/dist/templates/plug-in/topic-explorer/gitignore.tmpl +3 -0
  593. package/dist/templates/plug-in/topic-explorer/jinn-plugin.json.tmpl +17 -0
  594. package/dist/templates/plug-in/topic-explorer/package.json.tmpl +14 -0
  595. package/dist/templates/plug-in/topic-explorer/test/manifest.test.ts.tmpl +22 -0
  596. package/dist/templates/restorer/alternative-harness/README.md.tmpl +44 -0
  597. package/dist/templates/restorer/alternative-harness/gitignore.tmpl +3 -0
  598. package/dist/templates/restorer/alternative-harness/jinn.manifest.json.tmpl +22 -0
  599. package/dist/templates/restorer/alternative-harness/package.json.tmpl +26 -0
  600. package/dist/templates/restorer/alternative-harness/src/coordinator.ts.tmpl +50 -0
  601. package/dist/templates/restorer/alternative-harness/src/harness.ts.tmpl +31 -0
  602. package/dist/templates/restorer/alternative-harness/src/index.ts.tmpl +44 -0
  603. package/dist/templates/restorer/alternative-harness/src/mock-harness.ts.tmpl +41 -0
  604. package/dist/templates/restorer/alternative-harness/src/phases/debrief.ts.tmpl +28 -0
  605. package/dist/templates/restorer/alternative-harness/src/phases/execute.ts.tmpl +33 -0
  606. package/dist/templates/restorer/alternative-harness/src/phases/improve.ts.tmpl +31 -0
  607. package/dist/templates/restorer/alternative-harness/src/phases/memory.ts.tmpl +31 -0
  608. package/dist/templates/restorer/alternative-harness/src/phases/orient.ts.tmpl +21 -0
  609. package/dist/templates/restorer/alternative-harness/src/phases/plan.ts.tmpl +25 -0
  610. package/dist/templates/restorer/alternative-harness/src/phases/strategize.ts.tmpl +29 -0
  611. package/dist/templates/restorer/alternative-harness/test/coordinator.test.ts.tmpl +52 -0
  612. package/dist/templates/restorer/alternative-harness/test/unit.test.ts.tmpl +54 -0
  613. package/dist/templates/restorer/alternative-harness/tsconfig.json.tmpl +16 -0
  614. package/dist/templates/restorer/evaluator/README.md.tmpl +36 -0
  615. package/dist/templates/restorer/evaluator/gitignore.tmpl +3 -0
  616. package/dist/templates/restorer/evaluator/jinn.manifest.json.tmpl +22 -0
  617. package/dist/templates/restorer/evaluator/package.json.tmpl +26 -0
  618. package/dist/templates/restorer/evaluator/src/index.ts.tmpl +35 -0
  619. package/dist/templates/restorer/evaluator/test/unit.test.ts.tmpl +48 -0
  620. package/dist/templates/restorer/evaluator/tsconfig.json.tmpl +16 -0
  621. package/dist/templates/restorer/forecaster/README.md.tmpl +25 -0
  622. package/dist/templates/restorer/forecaster/gitignore.tmpl +5 -0
  623. package/dist/templates/restorer/forecaster/jinn.manifest.json.tmpl +22 -0
  624. package/dist/templates/restorer/forecaster/package.json.tmpl +26 -0
  625. package/dist/templates/restorer/forecaster/src/index.ts.tmpl +33 -0
  626. package/dist/templates/restorer/forecaster/test/unit.test.ts.tmpl +41 -0
  627. package/dist/templates/restorer/forecaster/tsconfig.json.tmpl +16 -0
  628. package/dist/trajectory/collector.d.ts +49 -0
  629. package/dist/trajectory/collector.js +86 -0
  630. package/dist/trajectory/collector.js.map +1 -0
  631. package/dist/trajectory/emit.d.ts +27 -0
  632. package/dist/trajectory/emit.js +40 -0
  633. package/dist/trajectory/emit.js.map +1 -0
  634. package/dist/trajectory/hash-chain.d.ts +18 -0
  635. package/dist/trajectory/hash-chain.js +23 -0
  636. package/dist/trajectory/hash-chain.js.map +1 -0
  637. package/dist/trajectory/index.d.ts +22 -0
  638. package/dist/trajectory/index.js +23 -0
  639. package/dist/trajectory/index.js.map +1 -0
  640. package/dist/trajectory/schema.d.ts +14 -14
  641. package/dist/trajectory/secret-scrub.d.ts +32 -0
  642. package/dist/trajectory/secret-scrub.js +51 -0
  643. package/dist/trajectory/secret-scrub.js.map +1 -0
  644. package/dist/trajectory/span-profile.d.ts +27 -0
  645. package/dist/trajectory/span-profile.js +51 -0
  646. package/dist/trajectory/span-profile.js.map +1 -0
  647. package/dist/trajectory/wrappers/http.d.ts +37 -0
  648. package/dist/trajectory/wrappers/http.js +85 -0
  649. package/dist/trajectory/wrappers/http.js.map +1 -0
  650. package/dist/trajectory/wrappers/mcp.d.ts +17 -0
  651. package/dist/trajectory/wrappers/mcp.js +58 -0
  652. package/dist/trajectory/wrappers/mcp.js.map +1 -0
  653. package/dist/trajectory/wrappers/subprocess.d.ts +32 -0
  654. package/dist/trajectory/wrappers/subprocess.js +70 -0
  655. package/dist/trajectory/wrappers/subprocess.js.map +1 -0
  656. package/dist/tx-retry.js +23 -9
  657. package/dist/tx-retry.js.map +1 -1
  658. package/dist/types/desired-state.d.ts +211 -21
  659. package/dist/types/desired-state.js +26 -15
  660. package/dist/types/desired-state.js.map +1 -1
  661. package/dist/types/envelope.d.ts +1473 -0
  662. package/dist/types/envelope.js +114 -0
  663. package/dist/types/envelope.js.map +1 -0
  664. package/dist/types/index.d.ts +4 -4
  665. package/dist/types/index.js +4 -4
  666. package/dist/types/index.js.map +1 -1
  667. package/dist/types/intent.d.ts +276 -0
  668. package/dist/types/intent.js +74 -0
  669. package/dist/types/intent.js.map +1 -0
  670. package/dist/types/payloads/index.d.ts +11 -0
  671. package/dist/types/payloads/index.js +46 -0
  672. package/dist/types/payloads/index.js.map +1 -0
  673. package/dist/types/payloads/portfolio-v0.d.ts +481 -0
  674. package/dist/types/payloads/portfolio-v0.js +94 -0
  675. package/dist/types/payloads/portfolio-v0.js.map +1 -0
  676. package/dist/types/payloads/prediction-apy-v0.d.ts +231 -0
  677. package/dist/types/payloads/prediction-apy-v0.js +63 -0
  678. package/dist/types/payloads/prediction-apy-v0.js.map +1 -0
  679. package/dist/types/payloads/prediction-v0.d.ts +262 -0
  680. package/dist/types/payloads/prediction-v0.js +73 -0
  681. package/dist/types/payloads/prediction-v0.js.map +1 -0
  682. package/dist/types/portfolio.d.ts +23 -685
  683. package/dist/types/portfolio.js +16 -106
  684. package/dist/types/portfolio.js.map +1 -1
  685. package/dist/types/prediction-apy.d.ts +9 -344
  686. package/dist/types/prediction-apy.js +9 -65
  687. package/dist/types/prediction-apy.js.map +1 -1
  688. package/dist/types/prediction.d.ts +25 -396
  689. package/dist/types/prediction.js +5 -79
  690. package/dist/types/prediction.js.map +1 -1
  691. package/dist/types/window.d.ts +12 -0
  692. package/dist/types/window.js +6 -0
  693. package/dist/types/window.js.map +1 -0
  694. package/dist/util/path-safety.d.ts +22 -0
  695. package/dist/util/path-safety.js +29 -0
  696. package/dist/util/path-safety.js.map +1 -0
  697. package/dist/util/redact-rpc-urls.d.ts +5 -0
  698. package/dist/util/redact-rpc-urls.js +9 -0
  699. package/dist/util/redact-rpc-urls.js.map +1 -0
  700. package/dist/x402/acquire.d.ts +14 -3
  701. package/dist/x402/acquire.js +28 -11
  702. package/dist/x402/acquire.js.map +1 -1
  703. package/dist/x402/handler.d.ts +15 -3
  704. package/dist/x402/handler.js +67 -24
  705. package/dist/x402/handler.js.map +1 -1
  706. package/package.json +36 -11
  707. package/plugins/claude-code-learner/.claude-plugin/plugin.json +9 -0
  708. package/plugins/claude-code-learner/AGENTS.md +30 -0
  709. package/plugins/claude-code-learner/CLAUDE.md +31 -0
  710. package/plugins/claude-code-learner/README.md +58 -0
  711. package/plugins/claude-code-learner/agents/analyst.md +69 -0
  712. package/plugins/claude-code-learner/agents/consolidator.md +95 -0
  713. package/plugins/claude-code-learner/agents/explorer.md +54 -0
  714. package/plugins/claude-code-learner/agents/planner.md +88 -0
  715. package/plugins/claude-code-learner/agents/promoter.md +114 -0
  716. package/plugins/claude-code-learner/agents/step-worker.md +48 -0
  717. package/plugins/claude-code-learner/agents/strategist.md +86 -0
  718. package/plugins/claude-code-learner/hooks/hooks.json +16 -0
  719. package/plugins/claude-code-learner/hooks/session-start +49 -0
  720. package/plugins/claude-code-learner/skills/coordinator/SKILL.md +131 -0
  721. package/plugins/claude-code-learner/skills/debrief/SKILL.md +71 -0
  722. package/plugins/claude-code-learner/skills/execute/SKILL.md +91 -0
  723. package/plugins/claude-code-learner/skills/improve/SKILL.md +57 -0
  724. package/plugins/claude-code-learner/skills/memory-consolidation/SKILL.md +57 -0
  725. package/plugins/claude-code-learner/skills/orient/SKILL.md +82 -0
  726. package/plugins/claude-code-learner/skills/plan/SKILL.md +54 -0
  727. package/plugins/claude-code-learner/skills/strategize/SKILL.md +63 -0
  728. package/skills/jinn-operator/SKILL.md +84 -35
  729. package/templates/plug-in/hook/README.md.tmpl +24 -0
  730. package/templates/plug-in/hook/gitignore.tmpl +3 -0
  731. package/templates/plug-in/hook/hooks/event.sh.tmpl +15 -0
  732. package/templates/plug-in/hook/jinn-plugin.json.tmpl +16 -0
  733. package/templates/plug-in/hook/package.json.tmpl +14 -0
  734. package/templates/plug-in/hook/test/manifest.test.ts.tmpl +21 -0
  735. package/templates/plug-in/mcp-tool/README.md.tmpl +26 -0
  736. package/templates/plug-in/mcp-tool/gitignore.tmpl +4 -0
  737. package/templates/plug-in/mcp-tool/jinn-plugin.json.tmpl +16 -0
  738. package/templates/plug-in/mcp-tool/package.json.tmpl +19 -0
  739. package/templates/plug-in/mcp-tool/src/server.ts.tmpl +17 -0
  740. package/templates/plug-in/mcp-tool/test/server.test.ts.tmpl +18 -0
  741. package/templates/plug-in/memory-backend/README.md.tmpl +33 -0
  742. package/templates/plug-in/memory-backend/gitignore.tmpl +4 -0
  743. package/templates/plug-in/memory-backend/jinn-plugin.json.tmpl +16 -0
  744. package/templates/plug-in/memory-backend/package.json.tmpl +19 -0
  745. package/templates/plug-in/memory-backend/src/server.ts.tmpl +23 -0
  746. package/templates/plug-in/memory-backend/test/server.test.ts.tmpl +17 -0
  747. package/templates/plug-in/phase-agent-override/README.md.tmpl +30 -0
  748. package/templates/plug-in/phase-agent-override/agents/agent.md.tmpl +26 -0
  749. package/templates/plug-in/phase-agent-override/gitignore.tmpl +3 -0
  750. package/templates/plug-in/phase-agent-override/jinn-plugin.json.tmpl +17 -0
  751. package/templates/plug-in/phase-agent-override/package.json.tmpl +14 -0
  752. package/templates/plug-in/phase-agent-override/test/manifest.test.ts.tmpl +24 -0
  753. package/templates/plug-in/skill-bundle/.claude-plugin/plugin.json.tmpl +5 -0
  754. package/templates/plug-in/skill-bundle/README.md.tmpl +28 -0
  755. package/templates/plug-in/skill-bundle/gitignore.tmpl +3 -0
  756. package/templates/plug-in/skill-bundle/jinn-plugin.json.tmpl +15 -0
  757. package/templates/plug-in/skill-bundle/package.json.tmpl +14 -0
  758. package/templates/plug-in/skill-bundle/skills/example/SKILL.md.tmpl +14 -0
  759. package/templates/plug-in/skill-bundle/test/manifest.test.ts.tmpl +21 -0
  760. package/templates/plug-in/topic-explorer/README.md.tmpl +24 -0
  761. package/templates/plug-in/topic-explorer/agents/explorer.md.tmpl +26 -0
  762. package/templates/plug-in/topic-explorer/gitignore.tmpl +3 -0
  763. package/templates/plug-in/topic-explorer/jinn-plugin.json.tmpl +17 -0
  764. package/templates/plug-in/topic-explorer/package.json.tmpl +14 -0
  765. package/templates/plug-in/topic-explorer/test/manifest.test.ts.tmpl +22 -0
  766. package/templates/restorer/alternative-harness/README.md.tmpl +44 -0
  767. package/templates/restorer/alternative-harness/gitignore.tmpl +3 -0
  768. package/templates/restorer/alternative-harness/jinn.manifest.json.tmpl +22 -0
  769. package/templates/restorer/alternative-harness/package.json.tmpl +26 -0
  770. package/templates/restorer/alternative-harness/src/coordinator.ts.tmpl +50 -0
  771. package/templates/restorer/alternative-harness/src/harness.ts.tmpl +31 -0
  772. package/templates/restorer/alternative-harness/src/index.ts.tmpl +44 -0
  773. package/templates/restorer/alternative-harness/src/mock-harness.ts.tmpl +41 -0
  774. package/templates/restorer/alternative-harness/src/phases/debrief.ts.tmpl +28 -0
  775. package/templates/restorer/alternative-harness/src/phases/execute.ts.tmpl +33 -0
  776. package/templates/restorer/alternative-harness/src/phases/improve.ts.tmpl +31 -0
  777. package/templates/restorer/alternative-harness/src/phases/memory.ts.tmpl +31 -0
  778. package/templates/restorer/alternative-harness/src/phases/orient.ts.tmpl +21 -0
  779. package/templates/restorer/alternative-harness/src/phases/plan.ts.tmpl +25 -0
  780. package/templates/restorer/alternative-harness/src/phases/strategize.ts.tmpl +29 -0
  781. package/templates/restorer/alternative-harness/test/coordinator.test.ts.tmpl +52 -0
  782. package/templates/restorer/alternative-harness/test/unit.test.ts.tmpl +54 -0
  783. package/templates/restorer/alternative-harness/tsconfig.json.tmpl +16 -0
  784. package/templates/restorer/evaluator/README.md.tmpl +36 -0
  785. package/templates/restorer/evaluator/gitignore.tmpl +3 -0
  786. package/templates/restorer/evaluator/jinn.manifest.json.tmpl +22 -0
  787. package/templates/restorer/evaluator/package.json.tmpl +26 -0
  788. package/templates/restorer/evaluator/src/index.ts.tmpl +35 -0
  789. package/templates/restorer/evaluator/test/unit.test.ts.tmpl +48 -0
  790. package/templates/restorer/evaluator/tsconfig.json.tmpl +16 -0
  791. package/templates/restorer/forecaster/README.md.tmpl +25 -0
  792. package/templates/restorer/forecaster/gitignore.tmpl +5 -0
  793. package/templates/restorer/forecaster/jinn.manifest.json.tmpl +22 -0
  794. package/templates/restorer/forecaster/package.json.tmpl +26 -0
  795. package/templates/restorer/forecaster/src/index.ts.tmpl +33 -0
  796. package/templates/restorer/forecaster/test/unit.test.ts.tmpl +41 -0
  797. package/templates/restorer/forecaster/tsconfig.json.tmpl +16 -0
  798. package/dist/bin/jinn-mcp.d.ts +0 -2
  799. package/dist/bin/jinn-mcp.js +0 -10
  800. package/dist/bin/jinn-mcp.js.map +0 -1
  801. package/dist/cli/commands/quickstart.js +0 -330
  802. package/dist/cli/commands/quickstart.js.map +0 -1
  803. package/dist/discovery/registry.d.ts +0 -97
  804. package/dist/discovery/registry.js +0 -177
  805. package/dist/discovery/registry.js.map +0 -1
  806. package/dist/discovery/subgraph.d.ts +0 -37
  807. package/dist/discovery/subgraph.js +0 -87
  808. package/dist/discovery/subgraph.js.map +0 -1
  809. package/dist/restorer/engine/manifest-assembly.d.ts +0 -67
  810. package/dist/restorer/engine/manifest-assembly.js +0 -79
  811. package/dist/restorer/engine/manifest-assembly.js.map +0 -1
  812. /package/dist/cli/commands/{quickstart.d.ts → ui.d.ts} +0 -0
@@ -0,0 +1,1473 @@
1
+ /**
2
+ * jinn.execution.v1 — generic signed envelope.
3
+ *
4
+ * Scope: docs/superpowers/specs/2026-04-23-jinn-execution-envelope-tee-scope.md
5
+ * §3.1 (D5 + K1 knowledge tree), §3.2 (K3 executor provenance), §3.4 migration.
6
+ *
7
+ * One envelope shape covers restoration manifests (role='restoration') and
8
+ * verdict manifests (role='verdict'). Payload is typed per (kind, role) via
9
+ * the registry in `./payloads/`.
10
+ */
11
+ import { z } from 'zod';
12
+ export declare const EvidenceTierSchema: z.ZodEnum<["self-signed", "committed", "attested"]>;
13
+ export type EvidenceTier = z.infer<typeof EvidenceTierSchema>;
14
+ export declare const RoleSchema: z.ZodEnum<["restoration", "verdict"]>;
15
+ export type Role = z.infer<typeof RoleSchema>;
16
+ declare const ArtifactSchema: z.ZodObject<{
17
+ artifactType: z.ZodString;
18
+ sha256: z.ZodString;
19
+ metadata: z.ZodOptional<z.ZodObject<{
20
+ description: z.ZodOptional<z.ZodString>;
21
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
+ producedBy: z.ZodOptional<z.ZodObject<{
23
+ spanId: z.ZodString;
24
+ trajectoryCid: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ spanId: string;
27
+ trajectoryCid: string;
28
+ }, {
29
+ spanId: string;
30
+ trajectoryCid: string;
31
+ }>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ description?: string | undefined;
34
+ tags?: string[] | undefined;
35
+ producedBy?: {
36
+ spanId: string;
37
+ trajectoryCid: string;
38
+ } | undefined;
39
+ }, {
40
+ description?: string | undefined;
41
+ tags?: string[] | undefined;
42
+ producedBy?: {
43
+ spanId: string;
44
+ trajectoryCid: string;
45
+ } | undefined;
46
+ }>>;
47
+ access: z.ZodObject<{
48
+ endpoint: z.ZodString;
49
+ priceUsdc: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ endpoint: string;
52
+ priceUsdc: string;
53
+ }, {
54
+ endpoint: string;
55
+ priceUsdc: string;
56
+ }>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ artifactType: string;
59
+ sha256: string;
60
+ access: {
61
+ endpoint: string;
62
+ priceUsdc: string;
63
+ };
64
+ metadata?: {
65
+ description?: string | undefined;
66
+ tags?: string[] | undefined;
67
+ producedBy?: {
68
+ spanId: string;
69
+ trajectoryCid: string;
70
+ } | undefined;
71
+ } | undefined;
72
+ }, {
73
+ artifactType: string;
74
+ sha256: string;
75
+ access: {
76
+ endpoint: string;
77
+ priceUsdc: string;
78
+ };
79
+ metadata?: {
80
+ description?: string | undefined;
81
+ tags?: string[] | undefined;
82
+ producedBy?: {
83
+ spanId: string;
84
+ trajectoryCid: string;
85
+ } | undefined;
86
+ } | undefined;
87
+ }>;
88
+ export type Artifact = z.infer<typeof ArtifactSchema>;
89
+ export declare const UnsignedEnvelopeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
90
+ schemaVersion: z.ZodLiteral<"jinn.execution.v1">;
91
+ kind: z.ZodString;
92
+ role: z.ZodEnum<["restoration", "verdict"]>;
93
+ generatedAt: z.ZodNumber;
94
+ intent: z.ZodObject<{
95
+ cid: z.ZodString;
96
+ onchainCreationTx: z.ZodString;
97
+ onchainCreationBlock: z.ZodNumber;
98
+ requestId: z.ZodString;
99
+ }, "strip", z.ZodTypeAny, {
100
+ cid: string;
101
+ requestId: string;
102
+ onchainCreationTx: string;
103
+ onchainCreationBlock: number;
104
+ }, {
105
+ cid: string;
106
+ requestId: string;
107
+ onchainCreationTx: string;
108
+ onchainCreationBlock: number;
109
+ }>;
110
+ participant: z.ZodObject<{
111
+ safeAddress: z.ZodString;
112
+ agentEoa: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ safeAddress: string;
115
+ agentEoa: string;
116
+ }, {
117
+ safeAddress: string;
118
+ agentEoa: string;
119
+ }>;
120
+ window: z.ZodObject<{
121
+ startTs: z.ZodNumber;
122
+ endTs: z.ZodNumber;
123
+ }, "strip", z.ZodTypeAny, {
124
+ startTs: number;
125
+ endTs: number;
126
+ }, {
127
+ startTs: number;
128
+ endTs: number;
129
+ }>;
130
+ executor: z.ZodObject<{
131
+ implName: z.ZodString;
132
+ implVersion: z.ZodString;
133
+ clientGitSha: z.ZodString;
134
+ codeDigest: z.ZodString;
135
+ signingKey: z.ZodObject<{
136
+ kind: z.ZodEnum<["agent-eoa", "enclave-bound"]>;
137
+ pubkey: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ kind: "agent-eoa" | "enclave-bound";
140
+ pubkey: string;
141
+ }, {
142
+ kind: "agent-eoa" | "enclave-bound";
143
+ pubkey: string;
144
+ }>;
145
+ source: z.ZodOptional<z.ZodObject<{
146
+ bundleCid: z.ZodString;
147
+ sha256: z.ZodString;
148
+ humanUrl: z.ZodOptional<z.ZodString>;
149
+ buildRecipe: z.ZodObject<{
150
+ kind: z.ZodEnum<["dockerfile", "nix", "bazel"]>;
151
+ path: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ path: string;
154
+ kind: "dockerfile" | "nix" | "bazel";
155
+ }, {
156
+ path: string;
157
+ kind: "dockerfile" | "nix" | "bazel";
158
+ }>;
159
+ measurement: z.ZodString;
160
+ }, "strip", z.ZodTypeAny, {
161
+ sha256: string;
162
+ bundleCid: string;
163
+ buildRecipe: {
164
+ path: string;
165
+ kind: "dockerfile" | "nix" | "bazel";
166
+ };
167
+ measurement: string;
168
+ humanUrl?: string | undefined;
169
+ }, {
170
+ sha256: string;
171
+ bundleCid: string;
172
+ buildRecipe: {
173
+ path: string;
174
+ kind: "dockerfile" | "nix" | "bazel";
175
+ };
176
+ measurement: string;
177
+ humanUrl?: string | undefined;
178
+ }>>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ clientGitSha: string;
181
+ codeDigest: string;
182
+ implVersion: string;
183
+ implName: string;
184
+ signingKey: {
185
+ kind: "agent-eoa" | "enclave-bound";
186
+ pubkey: string;
187
+ };
188
+ source?: {
189
+ sha256: string;
190
+ bundleCid: string;
191
+ buildRecipe: {
192
+ path: string;
193
+ kind: "dockerfile" | "nix" | "bazel";
194
+ };
195
+ measurement: string;
196
+ humanUrl?: string | undefined;
197
+ } | undefined;
198
+ }, {
199
+ clientGitSha: string;
200
+ codeDigest: string;
201
+ implVersion: string;
202
+ implName: string;
203
+ signingKey: {
204
+ kind: "agent-eoa" | "enclave-bound";
205
+ pubkey: string;
206
+ };
207
+ source?: {
208
+ sha256: string;
209
+ bundleCid: string;
210
+ buildRecipe: {
211
+ path: string;
212
+ kind: "dockerfile" | "nix" | "bazel";
213
+ };
214
+ measurement: string;
215
+ humanUrl?: string | undefined;
216
+ } | undefined;
217
+ }>;
218
+ evidenceTier: z.ZodEnum<["self-signed", "committed", "attested"]>;
219
+ attestation: z.ZodNullable<z.ZodObject<{
220
+ profile: z.ZodString;
221
+ quote: z.ZodString;
222
+ reportData: z.ZodString;
223
+ measurement: z.ZodString;
224
+ }, "strip", z.ZodTypeAny, {
225
+ measurement: string;
226
+ profile: string;
227
+ quote: string;
228
+ reportData: string;
229
+ }, {
230
+ measurement: string;
231
+ profile: string;
232
+ quote: string;
233
+ reportData: string;
234
+ }>>;
235
+ trajectory: z.ZodNullable<z.ZodObject<{
236
+ sha256: z.ZodString;
237
+ access: z.ZodObject<{
238
+ endpoint: z.ZodString;
239
+ priceUsdc: z.ZodString;
240
+ }, "strip", z.ZodTypeAny, {
241
+ endpoint: string;
242
+ priceUsdc: string;
243
+ }, {
244
+ endpoint: string;
245
+ priceUsdc: string;
246
+ }>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ sha256: string;
249
+ access: {
250
+ endpoint: string;
251
+ priceUsdc: string;
252
+ };
253
+ }, {
254
+ sha256: string;
255
+ access: {
256
+ endpoint: string;
257
+ priceUsdc: string;
258
+ };
259
+ }>>;
260
+ artifacts: z.ZodArray<z.ZodObject<{
261
+ artifactType: z.ZodString;
262
+ sha256: z.ZodString;
263
+ metadata: z.ZodOptional<z.ZodObject<{
264
+ description: z.ZodOptional<z.ZodString>;
265
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
266
+ producedBy: z.ZodOptional<z.ZodObject<{
267
+ spanId: z.ZodString;
268
+ trajectoryCid: z.ZodString;
269
+ }, "strip", z.ZodTypeAny, {
270
+ spanId: string;
271
+ trajectoryCid: string;
272
+ }, {
273
+ spanId: string;
274
+ trajectoryCid: string;
275
+ }>>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ description?: string | undefined;
278
+ tags?: string[] | undefined;
279
+ producedBy?: {
280
+ spanId: string;
281
+ trajectoryCid: string;
282
+ } | undefined;
283
+ }, {
284
+ description?: string | undefined;
285
+ tags?: string[] | undefined;
286
+ producedBy?: {
287
+ spanId: string;
288
+ trajectoryCid: string;
289
+ } | undefined;
290
+ }>>;
291
+ access: z.ZodObject<{
292
+ endpoint: z.ZodString;
293
+ priceUsdc: z.ZodString;
294
+ }, "strip", z.ZodTypeAny, {
295
+ endpoint: string;
296
+ priceUsdc: string;
297
+ }, {
298
+ endpoint: string;
299
+ priceUsdc: string;
300
+ }>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ artifactType: string;
303
+ sha256: string;
304
+ access: {
305
+ endpoint: string;
306
+ priceUsdc: string;
307
+ };
308
+ metadata?: {
309
+ description?: string | undefined;
310
+ tags?: string[] | undefined;
311
+ producedBy?: {
312
+ spanId: string;
313
+ trajectoryCid: string;
314
+ } | undefined;
315
+ } | undefined;
316
+ }, {
317
+ artifactType: string;
318
+ sha256: string;
319
+ access: {
320
+ endpoint: string;
321
+ priceUsdc: string;
322
+ };
323
+ metadata?: {
324
+ description?: string | undefined;
325
+ tags?: string[] | undefined;
326
+ producedBy?: {
327
+ spanId: string;
328
+ trajectoryCid: string;
329
+ } | undefined;
330
+ } | undefined;
331
+ }>, "many">;
332
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ schemaVersion: "jinn.execution.v1";
335
+ kind: string;
336
+ window: {
337
+ startTs: number;
338
+ endTs: number;
339
+ };
340
+ intent: {
341
+ cid: string;
342
+ requestId: string;
343
+ onchainCreationTx: string;
344
+ onchainCreationBlock: number;
345
+ };
346
+ payload: Record<string, unknown>;
347
+ role: "restoration" | "verdict";
348
+ generatedAt: number;
349
+ participant: {
350
+ safeAddress: string;
351
+ agentEoa: string;
352
+ };
353
+ executor: {
354
+ clientGitSha: string;
355
+ codeDigest: string;
356
+ implVersion: string;
357
+ implName: string;
358
+ signingKey: {
359
+ kind: "agent-eoa" | "enclave-bound";
360
+ pubkey: string;
361
+ };
362
+ source?: {
363
+ sha256: string;
364
+ bundleCid: string;
365
+ buildRecipe: {
366
+ path: string;
367
+ kind: "dockerfile" | "nix" | "bazel";
368
+ };
369
+ measurement: string;
370
+ humanUrl?: string | undefined;
371
+ } | undefined;
372
+ };
373
+ evidenceTier: "self-signed" | "committed" | "attested";
374
+ attestation: {
375
+ measurement: string;
376
+ profile: string;
377
+ quote: string;
378
+ reportData: string;
379
+ } | null;
380
+ trajectory: {
381
+ sha256: string;
382
+ access: {
383
+ endpoint: string;
384
+ priceUsdc: string;
385
+ };
386
+ } | null;
387
+ artifacts: {
388
+ artifactType: string;
389
+ sha256: string;
390
+ access: {
391
+ endpoint: string;
392
+ priceUsdc: string;
393
+ };
394
+ metadata?: {
395
+ description?: string | undefined;
396
+ tags?: string[] | undefined;
397
+ producedBy?: {
398
+ spanId: string;
399
+ trajectoryCid: string;
400
+ } | undefined;
401
+ } | undefined;
402
+ }[];
403
+ }, {
404
+ schemaVersion: "jinn.execution.v1";
405
+ kind: string;
406
+ window: {
407
+ startTs: number;
408
+ endTs: number;
409
+ };
410
+ intent: {
411
+ cid: string;
412
+ requestId: string;
413
+ onchainCreationTx: string;
414
+ onchainCreationBlock: number;
415
+ };
416
+ payload: Record<string, unknown>;
417
+ role: "restoration" | "verdict";
418
+ generatedAt: number;
419
+ participant: {
420
+ safeAddress: string;
421
+ agentEoa: string;
422
+ };
423
+ executor: {
424
+ clientGitSha: string;
425
+ codeDigest: string;
426
+ implVersion: string;
427
+ implName: string;
428
+ signingKey: {
429
+ kind: "agent-eoa" | "enclave-bound";
430
+ pubkey: string;
431
+ };
432
+ source?: {
433
+ sha256: string;
434
+ bundleCid: string;
435
+ buildRecipe: {
436
+ path: string;
437
+ kind: "dockerfile" | "nix" | "bazel";
438
+ };
439
+ measurement: string;
440
+ humanUrl?: string | undefined;
441
+ } | undefined;
442
+ };
443
+ evidenceTier: "self-signed" | "committed" | "attested";
444
+ attestation: {
445
+ measurement: string;
446
+ profile: string;
447
+ quote: string;
448
+ reportData: string;
449
+ } | null;
450
+ trajectory: {
451
+ sha256: string;
452
+ access: {
453
+ endpoint: string;
454
+ priceUsdc: string;
455
+ };
456
+ } | null;
457
+ artifacts: {
458
+ artifactType: string;
459
+ sha256: string;
460
+ access: {
461
+ endpoint: string;
462
+ priceUsdc: string;
463
+ };
464
+ metadata?: {
465
+ description?: string | undefined;
466
+ tags?: string[] | undefined;
467
+ producedBy?: {
468
+ spanId: string;
469
+ trajectoryCid: string;
470
+ } | undefined;
471
+ } | undefined;
472
+ }[];
473
+ }>, {
474
+ schemaVersion: "jinn.execution.v1";
475
+ kind: string;
476
+ window: {
477
+ startTs: number;
478
+ endTs: number;
479
+ };
480
+ intent: {
481
+ cid: string;
482
+ requestId: string;
483
+ onchainCreationTx: string;
484
+ onchainCreationBlock: number;
485
+ };
486
+ payload: Record<string, unknown>;
487
+ role: "restoration" | "verdict";
488
+ generatedAt: number;
489
+ participant: {
490
+ safeAddress: string;
491
+ agentEoa: string;
492
+ };
493
+ executor: {
494
+ clientGitSha: string;
495
+ codeDigest: string;
496
+ implVersion: string;
497
+ implName: string;
498
+ signingKey: {
499
+ kind: "agent-eoa" | "enclave-bound";
500
+ pubkey: string;
501
+ };
502
+ source?: {
503
+ sha256: string;
504
+ bundleCid: string;
505
+ buildRecipe: {
506
+ path: string;
507
+ kind: "dockerfile" | "nix" | "bazel";
508
+ };
509
+ measurement: string;
510
+ humanUrl?: string | undefined;
511
+ } | undefined;
512
+ };
513
+ evidenceTier: "self-signed" | "committed" | "attested";
514
+ attestation: {
515
+ measurement: string;
516
+ profile: string;
517
+ quote: string;
518
+ reportData: string;
519
+ } | null;
520
+ trajectory: {
521
+ sha256: string;
522
+ access: {
523
+ endpoint: string;
524
+ priceUsdc: string;
525
+ };
526
+ } | null;
527
+ artifacts: {
528
+ artifactType: string;
529
+ sha256: string;
530
+ access: {
531
+ endpoint: string;
532
+ priceUsdc: string;
533
+ };
534
+ metadata?: {
535
+ description?: string | undefined;
536
+ tags?: string[] | undefined;
537
+ producedBy?: {
538
+ spanId: string;
539
+ trajectoryCid: string;
540
+ } | undefined;
541
+ } | undefined;
542
+ }[];
543
+ }, {
544
+ schemaVersion: "jinn.execution.v1";
545
+ kind: string;
546
+ window: {
547
+ startTs: number;
548
+ endTs: number;
549
+ };
550
+ intent: {
551
+ cid: string;
552
+ requestId: string;
553
+ onchainCreationTx: string;
554
+ onchainCreationBlock: number;
555
+ };
556
+ payload: Record<string, unknown>;
557
+ role: "restoration" | "verdict";
558
+ generatedAt: number;
559
+ participant: {
560
+ safeAddress: string;
561
+ agentEoa: string;
562
+ };
563
+ executor: {
564
+ clientGitSha: string;
565
+ codeDigest: string;
566
+ implVersion: string;
567
+ implName: string;
568
+ signingKey: {
569
+ kind: "agent-eoa" | "enclave-bound";
570
+ pubkey: string;
571
+ };
572
+ source?: {
573
+ sha256: string;
574
+ bundleCid: string;
575
+ buildRecipe: {
576
+ path: string;
577
+ kind: "dockerfile" | "nix" | "bazel";
578
+ };
579
+ measurement: string;
580
+ humanUrl?: string | undefined;
581
+ } | undefined;
582
+ };
583
+ evidenceTier: "self-signed" | "committed" | "attested";
584
+ attestation: {
585
+ measurement: string;
586
+ profile: string;
587
+ quote: string;
588
+ reportData: string;
589
+ } | null;
590
+ trajectory: {
591
+ sha256: string;
592
+ access: {
593
+ endpoint: string;
594
+ priceUsdc: string;
595
+ };
596
+ } | null;
597
+ artifacts: {
598
+ artifactType: string;
599
+ sha256: string;
600
+ access: {
601
+ endpoint: string;
602
+ priceUsdc: string;
603
+ };
604
+ metadata?: {
605
+ description?: string | undefined;
606
+ tags?: string[] | undefined;
607
+ producedBy?: {
608
+ spanId: string;
609
+ trajectoryCid: string;
610
+ } | undefined;
611
+ } | undefined;
612
+ }[];
613
+ }>, {
614
+ schemaVersion: "jinn.execution.v1";
615
+ kind: string;
616
+ window: {
617
+ startTs: number;
618
+ endTs: number;
619
+ };
620
+ intent: {
621
+ cid: string;
622
+ requestId: string;
623
+ onchainCreationTx: string;
624
+ onchainCreationBlock: number;
625
+ };
626
+ payload: Record<string, unknown>;
627
+ role: "restoration" | "verdict";
628
+ generatedAt: number;
629
+ participant: {
630
+ safeAddress: string;
631
+ agentEoa: string;
632
+ };
633
+ executor: {
634
+ clientGitSha: string;
635
+ codeDigest: string;
636
+ implVersion: string;
637
+ implName: string;
638
+ signingKey: {
639
+ kind: "agent-eoa" | "enclave-bound";
640
+ pubkey: string;
641
+ };
642
+ source?: {
643
+ sha256: string;
644
+ bundleCid: string;
645
+ buildRecipe: {
646
+ path: string;
647
+ kind: "dockerfile" | "nix" | "bazel";
648
+ };
649
+ measurement: string;
650
+ humanUrl?: string | undefined;
651
+ } | undefined;
652
+ };
653
+ evidenceTier: "self-signed" | "committed" | "attested";
654
+ attestation: {
655
+ measurement: string;
656
+ profile: string;
657
+ quote: string;
658
+ reportData: string;
659
+ } | null;
660
+ trajectory: {
661
+ sha256: string;
662
+ access: {
663
+ endpoint: string;
664
+ priceUsdc: string;
665
+ };
666
+ } | null;
667
+ artifacts: {
668
+ artifactType: string;
669
+ sha256: string;
670
+ access: {
671
+ endpoint: string;
672
+ priceUsdc: string;
673
+ };
674
+ metadata?: {
675
+ description?: string | undefined;
676
+ tags?: string[] | undefined;
677
+ producedBy?: {
678
+ spanId: string;
679
+ trajectoryCid: string;
680
+ } | undefined;
681
+ } | undefined;
682
+ }[];
683
+ }, {
684
+ schemaVersion: "jinn.execution.v1";
685
+ kind: string;
686
+ window: {
687
+ startTs: number;
688
+ endTs: number;
689
+ };
690
+ intent: {
691
+ cid: string;
692
+ requestId: string;
693
+ onchainCreationTx: string;
694
+ onchainCreationBlock: number;
695
+ };
696
+ payload: Record<string, unknown>;
697
+ role: "restoration" | "verdict";
698
+ generatedAt: number;
699
+ participant: {
700
+ safeAddress: string;
701
+ agentEoa: string;
702
+ };
703
+ executor: {
704
+ clientGitSha: string;
705
+ codeDigest: string;
706
+ implVersion: string;
707
+ implName: string;
708
+ signingKey: {
709
+ kind: "agent-eoa" | "enclave-bound";
710
+ pubkey: string;
711
+ };
712
+ source?: {
713
+ sha256: string;
714
+ bundleCid: string;
715
+ buildRecipe: {
716
+ path: string;
717
+ kind: "dockerfile" | "nix" | "bazel";
718
+ };
719
+ measurement: string;
720
+ humanUrl?: string | undefined;
721
+ } | undefined;
722
+ };
723
+ evidenceTier: "self-signed" | "committed" | "attested";
724
+ attestation: {
725
+ measurement: string;
726
+ profile: string;
727
+ quote: string;
728
+ reportData: string;
729
+ } | null;
730
+ trajectory: {
731
+ sha256: string;
732
+ access: {
733
+ endpoint: string;
734
+ priceUsdc: string;
735
+ };
736
+ } | null;
737
+ artifacts: {
738
+ artifactType: string;
739
+ sha256: string;
740
+ access: {
741
+ endpoint: string;
742
+ priceUsdc: string;
743
+ };
744
+ metadata?: {
745
+ description?: string | undefined;
746
+ tags?: string[] | undefined;
747
+ producedBy?: {
748
+ spanId: string;
749
+ trajectoryCid: string;
750
+ } | undefined;
751
+ } | undefined;
752
+ }[];
753
+ }>;
754
+ export type UnsignedEnvelope = z.infer<typeof UnsignedEnvelopeSchema>;
755
+ export declare const SignedEnvelopeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
756
+ signature: z.ZodObject<{
757
+ algo: z.ZodLiteral<"secp256k1">;
758
+ signer: z.ZodString;
759
+ hash: z.ZodString;
760
+ sig: z.ZodString;
761
+ }, "strip", z.ZodTypeAny, {
762
+ hash: string;
763
+ algo: "secp256k1";
764
+ signer: string;
765
+ sig: string;
766
+ }, {
767
+ hash: string;
768
+ algo: "secp256k1";
769
+ signer: string;
770
+ sig: string;
771
+ }>;
772
+ schemaVersion: z.ZodLiteral<"jinn.execution.v1">;
773
+ kind: z.ZodString;
774
+ role: z.ZodEnum<["restoration", "verdict"]>;
775
+ generatedAt: z.ZodNumber;
776
+ intent: z.ZodObject<{
777
+ cid: z.ZodString;
778
+ onchainCreationTx: z.ZodString;
779
+ onchainCreationBlock: z.ZodNumber;
780
+ requestId: z.ZodString;
781
+ }, "strip", z.ZodTypeAny, {
782
+ cid: string;
783
+ requestId: string;
784
+ onchainCreationTx: string;
785
+ onchainCreationBlock: number;
786
+ }, {
787
+ cid: string;
788
+ requestId: string;
789
+ onchainCreationTx: string;
790
+ onchainCreationBlock: number;
791
+ }>;
792
+ participant: z.ZodObject<{
793
+ safeAddress: z.ZodString;
794
+ agentEoa: z.ZodString;
795
+ }, "strip", z.ZodTypeAny, {
796
+ safeAddress: string;
797
+ agentEoa: string;
798
+ }, {
799
+ safeAddress: string;
800
+ agentEoa: string;
801
+ }>;
802
+ window: z.ZodObject<{
803
+ startTs: z.ZodNumber;
804
+ endTs: z.ZodNumber;
805
+ }, "strip", z.ZodTypeAny, {
806
+ startTs: number;
807
+ endTs: number;
808
+ }, {
809
+ startTs: number;
810
+ endTs: number;
811
+ }>;
812
+ executor: z.ZodObject<{
813
+ implName: z.ZodString;
814
+ implVersion: z.ZodString;
815
+ clientGitSha: z.ZodString;
816
+ codeDigest: z.ZodString;
817
+ signingKey: z.ZodObject<{
818
+ kind: z.ZodEnum<["agent-eoa", "enclave-bound"]>;
819
+ pubkey: z.ZodString;
820
+ }, "strip", z.ZodTypeAny, {
821
+ kind: "agent-eoa" | "enclave-bound";
822
+ pubkey: string;
823
+ }, {
824
+ kind: "agent-eoa" | "enclave-bound";
825
+ pubkey: string;
826
+ }>;
827
+ source: z.ZodOptional<z.ZodObject<{
828
+ bundleCid: z.ZodString;
829
+ sha256: z.ZodString;
830
+ humanUrl: z.ZodOptional<z.ZodString>;
831
+ buildRecipe: z.ZodObject<{
832
+ kind: z.ZodEnum<["dockerfile", "nix", "bazel"]>;
833
+ path: z.ZodString;
834
+ }, "strip", z.ZodTypeAny, {
835
+ path: string;
836
+ kind: "dockerfile" | "nix" | "bazel";
837
+ }, {
838
+ path: string;
839
+ kind: "dockerfile" | "nix" | "bazel";
840
+ }>;
841
+ measurement: z.ZodString;
842
+ }, "strip", z.ZodTypeAny, {
843
+ sha256: string;
844
+ bundleCid: string;
845
+ buildRecipe: {
846
+ path: string;
847
+ kind: "dockerfile" | "nix" | "bazel";
848
+ };
849
+ measurement: string;
850
+ humanUrl?: string | undefined;
851
+ }, {
852
+ sha256: string;
853
+ bundleCid: string;
854
+ buildRecipe: {
855
+ path: string;
856
+ kind: "dockerfile" | "nix" | "bazel";
857
+ };
858
+ measurement: string;
859
+ humanUrl?: string | undefined;
860
+ }>>;
861
+ }, "strip", z.ZodTypeAny, {
862
+ clientGitSha: string;
863
+ codeDigest: string;
864
+ implVersion: string;
865
+ implName: string;
866
+ signingKey: {
867
+ kind: "agent-eoa" | "enclave-bound";
868
+ pubkey: string;
869
+ };
870
+ source?: {
871
+ sha256: string;
872
+ bundleCid: string;
873
+ buildRecipe: {
874
+ path: string;
875
+ kind: "dockerfile" | "nix" | "bazel";
876
+ };
877
+ measurement: string;
878
+ humanUrl?: string | undefined;
879
+ } | undefined;
880
+ }, {
881
+ clientGitSha: string;
882
+ codeDigest: string;
883
+ implVersion: string;
884
+ implName: string;
885
+ signingKey: {
886
+ kind: "agent-eoa" | "enclave-bound";
887
+ pubkey: string;
888
+ };
889
+ source?: {
890
+ sha256: string;
891
+ bundleCid: string;
892
+ buildRecipe: {
893
+ path: string;
894
+ kind: "dockerfile" | "nix" | "bazel";
895
+ };
896
+ measurement: string;
897
+ humanUrl?: string | undefined;
898
+ } | undefined;
899
+ }>;
900
+ evidenceTier: z.ZodEnum<["self-signed", "committed", "attested"]>;
901
+ attestation: z.ZodNullable<z.ZodObject<{
902
+ profile: z.ZodString;
903
+ quote: z.ZodString;
904
+ reportData: z.ZodString;
905
+ measurement: z.ZodString;
906
+ }, "strip", z.ZodTypeAny, {
907
+ measurement: string;
908
+ profile: string;
909
+ quote: string;
910
+ reportData: string;
911
+ }, {
912
+ measurement: string;
913
+ profile: string;
914
+ quote: string;
915
+ reportData: string;
916
+ }>>;
917
+ trajectory: z.ZodNullable<z.ZodObject<{
918
+ sha256: z.ZodString;
919
+ access: z.ZodObject<{
920
+ endpoint: z.ZodString;
921
+ priceUsdc: z.ZodString;
922
+ }, "strip", z.ZodTypeAny, {
923
+ endpoint: string;
924
+ priceUsdc: string;
925
+ }, {
926
+ endpoint: string;
927
+ priceUsdc: string;
928
+ }>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ sha256: string;
931
+ access: {
932
+ endpoint: string;
933
+ priceUsdc: string;
934
+ };
935
+ }, {
936
+ sha256: string;
937
+ access: {
938
+ endpoint: string;
939
+ priceUsdc: string;
940
+ };
941
+ }>>;
942
+ artifacts: z.ZodArray<z.ZodObject<{
943
+ artifactType: z.ZodString;
944
+ sha256: z.ZodString;
945
+ metadata: z.ZodOptional<z.ZodObject<{
946
+ description: z.ZodOptional<z.ZodString>;
947
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
948
+ producedBy: z.ZodOptional<z.ZodObject<{
949
+ spanId: z.ZodString;
950
+ trajectoryCid: z.ZodString;
951
+ }, "strip", z.ZodTypeAny, {
952
+ spanId: string;
953
+ trajectoryCid: string;
954
+ }, {
955
+ spanId: string;
956
+ trajectoryCid: string;
957
+ }>>;
958
+ }, "strip", z.ZodTypeAny, {
959
+ description?: string | undefined;
960
+ tags?: string[] | undefined;
961
+ producedBy?: {
962
+ spanId: string;
963
+ trajectoryCid: string;
964
+ } | undefined;
965
+ }, {
966
+ description?: string | undefined;
967
+ tags?: string[] | undefined;
968
+ producedBy?: {
969
+ spanId: string;
970
+ trajectoryCid: string;
971
+ } | undefined;
972
+ }>>;
973
+ access: z.ZodObject<{
974
+ endpoint: z.ZodString;
975
+ priceUsdc: z.ZodString;
976
+ }, "strip", z.ZodTypeAny, {
977
+ endpoint: string;
978
+ priceUsdc: string;
979
+ }, {
980
+ endpoint: string;
981
+ priceUsdc: string;
982
+ }>;
983
+ }, "strip", z.ZodTypeAny, {
984
+ artifactType: string;
985
+ sha256: string;
986
+ access: {
987
+ endpoint: string;
988
+ priceUsdc: string;
989
+ };
990
+ metadata?: {
991
+ description?: string | undefined;
992
+ tags?: string[] | undefined;
993
+ producedBy?: {
994
+ spanId: string;
995
+ trajectoryCid: string;
996
+ } | undefined;
997
+ } | undefined;
998
+ }, {
999
+ artifactType: string;
1000
+ sha256: string;
1001
+ access: {
1002
+ endpoint: string;
1003
+ priceUsdc: string;
1004
+ };
1005
+ metadata?: {
1006
+ description?: string | undefined;
1007
+ tags?: string[] | undefined;
1008
+ producedBy?: {
1009
+ spanId: string;
1010
+ trajectoryCid: string;
1011
+ } | undefined;
1012
+ } | undefined;
1013
+ }>, "many">;
1014
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ signature: {
1017
+ hash: string;
1018
+ algo: "secp256k1";
1019
+ signer: string;
1020
+ sig: string;
1021
+ };
1022
+ schemaVersion: "jinn.execution.v1";
1023
+ kind: string;
1024
+ window: {
1025
+ startTs: number;
1026
+ endTs: number;
1027
+ };
1028
+ intent: {
1029
+ cid: string;
1030
+ requestId: string;
1031
+ onchainCreationTx: string;
1032
+ onchainCreationBlock: number;
1033
+ };
1034
+ payload: Record<string, unknown>;
1035
+ role: "restoration" | "verdict";
1036
+ generatedAt: number;
1037
+ participant: {
1038
+ safeAddress: string;
1039
+ agentEoa: string;
1040
+ };
1041
+ executor: {
1042
+ clientGitSha: string;
1043
+ codeDigest: string;
1044
+ implVersion: string;
1045
+ implName: string;
1046
+ signingKey: {
1047
+ kind: "agent-eoa" | "enclave-bound";
1048
+ pubkey: string;
1049
+ };
1050
+ source?: {
1051
+ sha256: string;
1052
+ bundleCid: string;
1053
+ buildRecipe: {
1054
+ path: string;
1055
+ kind: "dockerfile" | "nix" | "bazel";
1056
+ };
1057
+ measurement: string;
1058
+ humanUrl?: string | undefined;
1059
+ } | undefined;
1060
+ };
1061
+ evidenceTier: "self-signed" | "committed" | "attested";
1062
+ attestation: {
1063
+ measurement: string;
1064
+ profile: string;
1065
+ quote: string;
1066
+ reportData: string;
1067
+ } | null;
1068
+ trajectory: {
1069
+ sha256: string;
1070
+ access: {
1071
+ endpoint: string;
1072
+ priceUsdc: string;
1073
+ };
1074
+ } | null;
1075
+ artifacts: {
1076
+ artifactType: string;
1077
+ sha256: string;
1078
+ access: {
1079
+ endpoint: string;
1080
+ priceUsdc: string;
1081
+ };
1082
+ metadata?: {
1083
+ description?: string | undefined;
1084
+ tags?: string[] | undefined;
1085
+ producedBy?: {
1086
+ spanId: string;
1087
+ trajectoryCid: string;
1088
+ } | undefined;
1089
+ } | undefined;
1090
+ }[];
1091
+ }, {
1092
+ signature: {
1093
+ hash: string;
1094
+ algo: "secp256k1";
1095
+ signer: string;
1096
+ sig: string;
1097
+ };
1098
+ schemaVersion: "jinn.execution.v1";
1099
+ kind: string;
1100
+ window: {
1101
+ startTs: number;
1102
+ endTs: number;
1103
+ };
1104
+ intent: {
1105
+ cid: string;
1106
+ requestId: string;
1107
+ onchainCreationTx: string;
1108
+ onchainCreationBlock: number;
1109
+ };
1110
+ payload: Record<string, unknown>;
1111
+ role: "restoration" | "verdict";
1112
+ generatedAt: number;
1113
+ participant: {
1114
+ safeAddress: string;
1115
+ agentEoa: string;
1116
+ };
1117
+ executor: {
1118
+ clientGitSha: string;
1119
+ codeDigest: string;
1120
+ implVersion: string;
1121
+ implName: string;
1122
+ signingKey: {
1123
+ kind: "agent-eoa" | "enclave-bound";
1124
+ pubkey: string;
1125
+ };
1126
+ source?: {
1127
+ sha256: string;
1128
+ bundleCid: string;
1129
+ buildRecipe: {
1130
+ path: string;
1131
+ kind: "dockerfile" | "nix" | "bazel";
1132
+ };
1133
+ measurement: string;
1134
+ humanUrl?: string | undefined;
1135
+ } | undefined;
1136
+ };
1137
+ evidenceTier: "self-signed" | "committed" | "attested";
1138
+ attestation: {
1139
+ measurement: string;
1140
+ profile: string;
1141
+ quote: string;
1142
+ reportData: string;
1143
+ } | null;
1144
+ trajectory: {
1145
+ sha256: string;
1146
+ access: {
1147
+ endpoint: string;
1148
+ priceUsdc: string;
1149
+ };
1150
+ } | null;
1151
+ artifacts: {
1152
+ artifactType: string;
1153
+ sha256: string;
1154
+ access: {
1155
+ endpoint: string;
1156
+ priceUsdc: string;
1157
+ };
1158
+ metadata?: {
1159
+ description?: string | undefined;
1160
+ tags?: string[] | undefined;
1161
+ producedBy?: {
1162
+ spanId: string;
1163
+ trajectoryCid: string;
1164
+ } | undefined;
1165
+ } | undefined;
1166
+ }[];
1167
+ }>, {
1168
+ signature: {
1169
+ hash: string;
1170
+ algo: "secp256k1";
1171
+ signer: string;
1172
+ sig: string;
1173
+ };
1174
+ schemaVersion: "jinn.execution.v1";
1175
+ kind: string;
1176
+ window: {
1177
+ startTs: number;
1178
+ endTs: number;
1179
+ };
1180
+ intent: {
1181
+ cid: string;
1182
+ requestId: string;
1183
+ onchainCreationTx: string;
1184
+ onchainCreationBlock: number;
1185
+ };
1186
+ payload: Record<string, unknown>;
1187
+ role: "restoration" | "verdict";
1188
+ generatedAt: number;
1189
+ participant: {
1190
+ safeAddress: string;
1191
+ agentEoa: string;
1192
+ };
1193
+ executor: {
1194
+ clientGitSha: string;
1195
+ codeDigest: string;
1196
+ implVersion: string;
1197
+ implName: string;
1198
+ signingKey: {
1199
+ kind: "agent-eoa" | "enclave-bound";
1200
+ pubkey: string;
1201
+ };
1202
+ source?: {
1203
+ sha256: string;
1204
+ bundleCid: string;
1205
+ buildRecipe: {
1206
+ path: string;
1207
+ kind: "dockerfile" | "nix" | "bazel";
1208
+ };
1209
+ measurement: string;
1210
+ humanUrl?: string | undefined;
1211
+ } | undefined;
1212
+ };
1213
+ evidenceTier: "self-signed" | "committed" | "attested";
1214
+ attestation: {
1215
+ measurement: string;
1216
+ profile: string;
1217
+ quote: string;
1218
+ reportData: string;
1219
+ } | null;
1220
+ trajectory: {
1221
+ sha256: string;
1222
+ access: {
1223
+ endpoint: string;
1224
+ priceUsdc: string;
1225
+ };
1226
+ } | null;
1227
+ artifacts: {
1228
+ artifactType: string;
1229
+ sha256: string;
1230
+ access: {
1231
+ endpoint: string;
1232
+ priceUsdc: string;
1233
+ };
1234
+ metadata?: {
1235
+ description?: string | undefined;
1236
+ tags?: string[] | undefined;
1237
+ producedBy?: {
1238
+ spanId: string;
1239
+ trajectoryCid: string;
1240
+ } | undefined;
1241
+ } | undefined;
1242
+ }[];
1243
+ }, {
1244
+ signature: {
1245
+ hash: string;
1246
+ algo: "secp256k1";
1247
+ signer: string;
1248
+ sig: string;
1249
+ };
1250
+ schemaVersion: "jinn.execution.v1";
1251
+ kind: string;
1252
+ window: {
1253
+ startTs: number;
1254
+ endTs: number;
1255
+ };
1256
+ intent: {
1257
+ cid: string;
1258
+ requestId: string;
1259
+ onchainCreationTx: string;
1260
+ onchainCreationBlock: number;
1261
+ };
1262
+ payload: Record<string, unknown>;
1263
+ role: "restoration" | "verdict";
1264
+ generatedAt: number;
1265
+ participant: {
1266
+ safeAddress: string;
1267
+ agentEoa: string;
1268
+ };
1269
+ executor: {
1270
+ clientGitSha: string;
1271
+ codeDigest: string;
1272
+ implVersion: string;
1273
+ implName: string;
1274
+ signingKey: {
1275
+ kind: "agent-eoa" | "enclave-bound";
1276
+ pubkey: string;
1277
+ };
1278
+ source?: {
1279
+ sha256: string;
1280
+ bundleCid: string;
1281
+ buildRecipe: {
1282
+ path: string;
1283
+ kind: "dockerfile" | "nix" | "bazel";
1284
+ };
1285
+ measurement: string;
1286
+ humanUrl?: string | undefined;
1287
+ } | undefined;
1288
+ };
1289
+ evidenceTier: "self-signed" | "committed" | "attested";
1290
+ attestation: {
1291
+ measurement: string;
1292
+ profile: string;
1293
+ quote: string;
1294
+ reportData: string;
1295
+ } | null;
1296
+ trajectory: {
1297
+ sha256: string;
1298
+ access: {
1299
+ endpoint: string;
1300
+ priceUsdc: string;
1301
+ };
1302
+ } | null;
1303
+ artifacts: {
1304
+ artifactType: string;
1305
+ sha256: string;
1306
+ access: {
1307
+ endpoint: string;
1308
+ priceUsdc: string;
1309
+ };
1310
+ metadata?: {
1311
+ description?: string | undefined;
1312
+ tags?: string[] | undefined;
1313
+ producedBy?: {
1314
+ spanId: string;
1315
+ trajectoryCid: string;
1316
+ } | undefined;
1317
+ } | undefined;
1318
+ }[];
1319
+ }>, {
1320
+ signature: {
1321
+ hash: string;
1322
+ algo: "secp256k1";
1323
+ signer: string;
1324
+ sig: string;
1325
+ };
1326
+ schemaVersion: "jinn.execution.v1";
1327
+ kind: string;
1328
+ window: {
1329
+ startTs: number;
1330
+ endTs: number;
1331
+ };
1332
+ intent: {
1333
+ cid: string;
1334
+ requestId: string;
1335
+ onchainCreationTx: string;
1336
+ onchainCreationBlock: number;
1337
+ };
1338
+ payload: Record<string, unknown>;
1339
+ role: "restoration" | "verdict";
1340
+ generatedAt: number;
1341
+ participant: {
1342
+ safeAddress: string;
1343
+ agentEoa: string;
1344
+ };
1345
+ executor: {
1346
+ clientGitSha: string;
1347
+ codeDigest: string;
1348
+ implVersion: string;
1349
+ implName: string;
1350
+ signingKey: {
1351
+ kind: "agent-eoa" | "enclave-bound";
1352
+ pubkey: string;
1353
+ };
1354
+ source?: {
1355
+ sha256: string;
1356
+ bundleCid: string;
1357
+ buildRecipe: {
1358
+ path: string;
1359
+ kind: "dockerfile" | "nix" | "bazel";
1360
+ };
1361
+ measurement: string;
1362
+ humanUrl?: string | undefined;
1363
+ } | undefined;
1364
+ };
1365
+ evidenceTier: "self-signed" | "committed" | "attested";
1366
+ attestation: {
1367
+ measurement: string;
1368
+ profile: string;
1369
+ quote: string;
1370
+ reportData: string;
1371
+ } | null;
1372
+ trajectory: {
1373
+ sha256: string;
1374
+ access: {
1375
+ endpoint: string;
1376
+ priceUsdc: string;
1377
+ };
1378
+ } | null;
1379
+ artifacts: {
1380
+ artifactType: string;
1381
+ sha256: string;
1382
+ access: {
1383
+ endpoint: string;
1384
+ priceUsdc: string;
1385
+ };
1386
+ metadata?: {
1387
+ description?: string | undefined;
1388
+ tags?: string[] | undefined;
1389
+ producedBy?: {
1390
+ spanId: string;
1391
+ trajectoryCid: string;
1392
+ } | undefined;
1393
+ } | undefined;
1394
+ }[];
1395
+ }, {
1396
+ signature: {
1397
+ hash: string;
1398
+ algo: "secp256k1";
1399
+ signer: string;
1400
+ sig: string;
1401
+ };
1402
+ schemaVersion: "jinn.execution.v1";
1403
+ kind: string;
1404
+ window: {
1405
+ startTs: number;
1406
+ endTs: number;
1407
+ };
1408
+ intent: {
1409
+ cid: string;
1410
+ requestId: string;
1411
+ onchainCreationTx: string;
1412
+ onchainCreationBlock: number;
1413
+ };
1414
+ payload: Record<string, unknown>;
1415
+ role: "restoration" | "verdict";
1416
+ generatedAt: number;
1417
+ participant: {
1418
+ safeAddress: string;
1419
+ agentEoa: string;
1420
+ };
1421
+ executor: {
1422
+ clientGitSha: string;
1423
+ codeDigest: string;
1424
+ implVersion: string;
1425
+ implName: string;
1426
+ signingKey: {
1427
+ kind: "agent-eoa" | "enclave-bound";
1428
+ pubkey: string;
1429
+ };
1430
+ source?: {
1431
+ sha256: string;
1432
+ bundleCid: string;
1433
+ buildRecipe: {
1434
+ path: string;
1435
+ kind: "dockerfile" | "nix" | "bazel";
1436
+ };
1437
+ measurement: string;
1438
+ humanUrl?: string | undefined;
1439
+ } | undefined;
1440
+ };
1441
+ evidenceTier: "self-signed" | "committed" | "attested";
1442
+ attestation: {
1443
+ measurement: string;
1444
+ profile: string;
1445
+ quote: string;
1446
+ reportData: string;
1447
+ } | null;
1448
+ trajectory: {
1449
+ sha256: string;
1450
+ access: {
1451
+ endpoint: string;
1452
+ priceUsdc: string;
1453
+ };
1454
+ } | null;
1455
+ artifacts: {
1456
+ artifactType: string;
1457
+ sha256: string;
1458
+ access: {
1459
+ endpoint: string;
1460
+ priceUsdc: string;
1461
+ };
1462
+ metadata?: {
1463
+ description?: string | undefined;
1464
+ tags?: string[] | undefined;
1465
+ producedBy?: {
1466
+ spanId: string;
1467
+ trajectoryCid: string;
1468
+ } | undefined;
1469
+ } | undefined;
1470
+ }[];
1471
+ }>;
1472
+ export type SignedEnvelope = z.infer<typeof SignedEnvelopeSchema>;
1473
+ export {};