@jinn-network/client 0.1.5 → 0.1.6-canary.118cd4d0

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 (343) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/dist/adapters/mech/adapter.js +7 -7
  3. package/dist/adapters/mech/adapter.js.map +1 -1
  4. package/dist/adapters/mech/ipfs-pinfile.d.ts +22 -0
  5. package/dist/adapters/mech/ipfs-pinfile.js +54 -0
  6. package/dist/adapters/mech/ipfs-pinfile.js.map +1 -0
  7. package/dist/adapters/mech/ipfs.d.ts +1 -0
  8. package/dist/adapters/mech/ipfs.js +24 -1
  9. package/dist/adapters/mech/ipfs.js.map +1 -1
  10. package/dist/api/bootstrap-endpoint.js +14 -1
  11. package/dist/api/bootstrap-endpoint.js.map +1 -1
  12. package/dist/api/discovery-endpoint.d.ts +31 -0
  13. package/dist/api/discovery-endpoint.js +78 -0
  14. package/dist/api/discovery-endpoint.js.map +1 -0
  15. package/dist/api/fleet-build.d.ts +7 -0
  16. package/dist/api/fleet-build.js +6 -1
  17. package/dist/api/fleet-build.js.map +1 -1
  18. package/dist/api/gather-status.js +20 -3
  19. package/dist/api/gather-status.js.map +1 -1
  20. package/dist/api/harness-readiness-endpoint.d.ts +25 -0
  21. package/dist/api/harness-readiness-endpoint.js +24 -0
  22. package/dist/api/harness-readiness-endpoint.js.map +1 -0
  23. package/dist/api/hermes-doctor-endpoint.d.ts +26 -0
  24. package/dist/api/hermes-doctor-endpoint.js +29 -0
  25. package/dist/api/hermes-doctor-endpoint.js.map +1 -0
  26. package/dist/api/server.d.ts +43 -0
  27. package/dist/api/server.js +39 -0
  28. package/dist/api/server.js.map +1 -1
  29. package/dist/api/setup-endpoints.d.ts +5 -0
  30. package/dist/api/setup-endpoints.js +24 -5
  31. package/dist/api/setup-endpoints.js.map +1 -1
  32. package/dist/build-info.json +4 -4
  33. package/dist/build-meta.json +1 -1
  34. package/dist/cli/commands/auth.js +3 -1
  35. package/dist/cli/commands/auth.js.map +1 -1
  36. package/dist/cli/commands/create.d.ts +5 -3
  37. package/dist/cli/commands/create.js +101 -36
  38. package/dist/cli/commands/create.js.map +1 -1
  39. package/dist/cli/commands/solver-nets.d.ts +19 -0
  40. package/dist/cli/commands/solver-nets.js +140 -2
  41. package/dist/cli/commands/solver-nets.js.map +1 -1
  42. package/dist/cli/commands/solver-plugins-publish.d.ts +31 -0
  43. package/dist/cli/commands/solver-plugins-publish.js +169 -0
  44. package/dist/cli/commands/solver-plugins-publish.js.map +1 -0
  45. package/dist/cli/commands/solver-plugins-revoke.d.ts +15 -0
  46. package/dist/cli/commands/solver-plugins-revoke.js +91 -0
  47. package/dist/cli/commands/solver-plugins-revoke.js.map +1 -0
  48. package/dist/cli/commands/solver-plugins.d.ts +50 -6
  49. package/dist/cli/commands/solver-plugins.js +205 -68
  50. package/dist/cli/commands/solver-plugins.js.map +1 -1
  51. package/dist/config.d.ts +27 -0
  52. package/dist/config.js +30 -2
  53. package/dist/config.js.map +1 -1
  54. package/dist/conformance/checks/hash-signature.js +6 -2
  55. package/dist/conformance/checks/hash-signature.js.map +1 -1
  56. package/dist/conformance/checks/payload.js +4 -2
  57. package/dist/conformance/checks/payload.js.map +1 -1
  58. package/dist/conformance/checks/verdict.d.ts +10 -10
  59. package/dist/conformance/checks/verdict.js +16 -15
  60. package/dist/conformance/checks/verdict.js.map +1 -1
  61. package/dist/conformance/harness.d.ts +1 -1
  62. package/dist/conformance/harness.js +16 -9
  63. package/dist/conformance/harness.js.map +1 -1
  64. package/dist/conformance/types.d.ts +10 -3
  65. package/dist/conformance/types.js.map +1 -1
  66. package/dist/corpus/acquire.d.ts +1 -3
  67. package/dist/corpus/acquire.js.map +1 -1
  68. package/dist/corpus/envelope-projection.d.ts +1 -1
  69. package/dist/corpus/envelope-projection.js +14 -7
  70. package/dist/corpus/envelope-projection.js.map +1 -1
  71. package/dist/corpus/index.d.ts +2 -1
  72. package/dist/corpus/index.js.map +1 -1
  73. package/dist/corpus/prediction-brier-scoreboard-report.js +1 -1
  74. package/dist/corpus/prediction-brier-scoreboard-report.js.map +1 -1
  75. package/dist/corpus/prediction-brier-scoreboard.js +3 -1
  76. package/dist/corpus/prediction-brier-scoreboard.js.map +1 -1
  77. package/dist/corpus/types.d.ts +2 -2
  78. package/dist/daemon/daemon.d.ts +17 -1
  79. package/dist/daemon/daemon.js +15 -0
  80. package/dist/daemon/daemon.js.map +1 -1
  81. package/dist/daemon/freeze-fence.js +6 -3
  82. package/dist/daemon/freeze-fence.js.map +1 -1
  83. package/dist/daemon/readiness-gate.d.ts +30 -0
  84. package/dist/daemon/readiness-gate.js +31 -0
  85. package/dist/daemon/readiness-gate.js.map +1 -0
  86. package/dist/dashboard/assets/{index-D_NMfDfV.css → index-DOlzFN8a.css} +1 -1
  87. package/dist/dashboard/assets/index-NkZ7CTAT.js +140 -0
  88. package/dist/dashboard/index.html +2 -2
  89. package/dist/discovery/http.js +121 -0
  90. package/dist/discovery/http.js.map +1 -1
  91. package/dist/discovery/onchain.js +11 -0
  92. package/dist/discovery/onchain.js.map +1 -1
  93. package/dist/discovery/types.d.ts +112 -0
  94. package/dist/discovery/types.js.map +1 -1
  95. package/dist/discovery/with-fallback.js +9 -0
  96. package/dist/discovery/with-fallback.js.map +1 -1
  97. package/dist/earning/agent-wallet-binding.d.ts +20 -1
  98. package/dist/earning/agent-wallet-binding.js +54 -16
  99. package/dist/earning/agent-wallet-binding.js.map +1 -1
  100. package/dist/earning/bootstrap.d.ts +119 -0
  101. package/dist/earning/bootstrap.js +482 -16
  102. package/dist/earning/bootstrap.js.map +1 -1
  103. package/dist/earning/contracts.js +9 -1
  104. package/dist/earning/contracts.js.map +1 -1
  105. package/dist/earning/funding-plan.js +15 -2
  106. package/dist/earning/funding-plan.js.map +1 -1
  107. package/dist/earning/store.js +48 -1
  108. package/dist/earning/store.js.map +1 -1
  109. package/dist/earning/types.d.ts +30 -0
  110. package/dist/earning/types.js +37 -0
  111. package/dist/earning/types.js.map +1 -1
  112. package/dist/erc8004/abis.d.ts +64 -0
  113. package/dist/erc8004/abis.js +48 -0
  114. package/dist/erc8004/abis.js.map +1 -1
  115. package/dist/erc8004/plugin-registry.d.ts +102 -0
  116. package/dist/erc8004/plugin-registry.js +165 -0
  117. package/dist/erc8004/plugin-registry.js.map +1 -0
  118. package/dist/events/types.d.ts +2 -2
  119. package/dist/harnesses/engine/engine.js +15 -3
  120. package/dist/harnesses/engine/engine.js.map +1 -1
  121. package/dist/harnesses/engine/envelope-assembly.d.ts +2 -2
  122. package/dist/harnesses/engine/envelope-assembly.js +4 -2
  123. package/dist/harnesses/engine/envelope-assembly.js.map +1 -1
  124. package/dist/harnesses/freeze.d.ts +4 -1
  125. package/dist/harnesses/freeze.js +12 -2
  126. package/dist/harnesses/freeze.js.map +1 -1
  127. package/dist/harnesses/impls/claude-mcp-prediction/index.d.ts +4 -1
  128. package/dist/harnesses/impls/claude-mcp-prediction/index.js +7 -2
  129. package/dist/harnesses/impls/claude-mcp-prediction/index.js.map +1 -1
  130. package/dist/harnesses/impls/claude-mcp-prediction-apy/index.d.ts +4 -1
  131. package/dist/harnesses/impls/claude-mcp-prediction-apy/index.js +7 -2
  132. package/dist/harnesses/impls/claude-mcp-prediction-apy/index.js.map +1 -1
  133. package/dist/harnesses/impls/evaluation-context.d.ts +15 -4
  134. package/dist/harnesses/impls/evaluation-context.js +24 -8
  135. package/dist/harnesses/impls/evaluation-context.js.map +1 -1
  136. package/dist/harnesses/impls/hermes-agent/adapter.d.ts +34 -0
  137. package/dist/harnesses/impls/hermes-agent/adapter.js +205 -0
  138. package/dist/harnesses/impls/hermes-agent/adapter.js.map +1 -0
  139. package/dist/harnesses/impls/hermes-agent/bootstrap.d.ts +18 -0
  140. package/dist/harnesses/impls/hermes-agent/bootstrap.js +231 -0
  141. package/dist/harnesses/impls/hermes-agent/bootstrap.js.map +1 -0
  142. package/dist/harnesses/impls/hermes-agent/config-builder.d.ts +49 -0
  143. package/dist/harnesses/impls/hermes-agent/config-builder.js +104 -0
  144. package/dist/harnesses/impls/hermes-agent/config-builder.js.map +1 -0
  145. package/dist/harnesses/impls/hermes-agent/harness.d.ts +30 -0
  146. package/dist/harnesses/impls/hermes-agent/harness.js +52 -0
  147. package/dist/harnesses/impls/hermes-agent/harness.js.map +1 -0
  148. package/dist/harnesses/impls/hermes-agent/index.d.ts +5 -0
  149. package/dist/harnesses/impls/hermes-agent/index.js +7 -0
  150. package/dist/harnesses/impls/hermes-agent/index.js.map +1 -0
  151. package/dist/harnesses/impls/hermes-agent/prompt.d.ts +15 -0
  152. package/dist/harnesses/impls/hermes-agent/prompt.js +37 -0
  153. package/dist/harnesses/impls/hermes-agent/prompt.js.map +1 -0
  154. package/dist/harnesses/impls/index.d.ts +6 -0
  155. package/dist/harnesses/impls/index.js +17 -4
  156. package/dist/harnesses/impls/index.js.map +1 -1
  157. package/dist/harnesses/impls/learner/adapters/claude-code.js.map +1 -0
  158. package/dist/harnesses/impls/{claude-code-learner → learner}/adapters/codex-code.js +13 -34
  159. package/dist/harnesses/impls/learner/adapters/codex-code.js.map +1 -0
  160. package/dist/harnesses/impls/learner/adapters/codex-workspace.js.map +1 -0
  161. package/dist/harnesses/impls/{claude-code-learner → learner}/harness.d.ts +9 -3
  162. package/dist/harnesses/impls/{claude-code-learner → learner}/harness.js +24 -1
  163. package/dist/harnesses/impls/learner/harness.js.map +1 -0
  164. package/dist/harnesses/impls/{claude-code-learner → learner}/harvest.js +15 -3
  165. package/dist/harnesses/impls/learner/harvest.js.map +1 -0
  166. package/dist/harnesses/impls/{claude-code-learner → learner}/index.d.ts +5 -5
  167. package/dist/harnesses/impls/{claude-code-learner → learner}/index.js +4 -4
  168. package/dist/harnesses/impls/learner/index.js.map +1 -0
  169. package/dist/harnesses/impls/{claude-code-learner → learner}/plugin-path.d.ts +4 -4
  170. package/dist/harnesses/impls/{claude-code-learner → learner}/plugin-path.js +7 -7
  171. package/dist/harnesses/impls/learner/plugin-path.js.map +1 -0
  172. package/dist/harnesses/impls/{claude-code-learner → learner}/restoration-patch.js +3 -1
  173. package/dist/harnesses/impls/learner/restoration-patch.js.map +1 -0
  174. package/dist/harnesses/impls/learner/test-utils/fake-plugin-outputs.js.map +1 -0
  175. package/dist/harnesses/impls/learner/test-utils/noop-adapter.js.map +1 -0
  176. package/dist/harnesses/impls/{claude-code-learner → learner}/types.d.ts +12 -2
  177. package/dist/harnesses/impls/learner/types.js.map +1 -0
  178. package/dist/harnesses/impls/portfolio-v0-evaluator/index.js +13 -12
  179. package/dist/harnesses/impls/portfolio-v0-evaluator/index.js.map +1 -1
  180. package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js +7 -7
  181. package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js.map +1 -1
  182. package/dist/harnesses/impls/prediction-apy-v0-evaluator/parse-submission.d.ts +3 -3
  183. package/dist/harnesses/impls/prediction-apy-v0-evaluator/parse-submission.js +7 -6
  184. package/dist/harnesses/impls/prediction-apy-v0-evaluator/parse-submission.js.map +1 -1
  185. package/dist/harnesses/impls/prediction-v0-evaluator/checks/integrity.js +1 -1
  186. package/dist/harnesses/impls/prediction-v0-evaluator/checks/integrity.js.map +1 -1
  187. package/dist/harnesses/impls/prediction-v0-evaluator/index.js +11 -10
  188. package/dist/harnesses/impls/prediction-v0-evaluator/index.js.map +1 -1
  189. package/dist/harnesses/impls/prediction-v1-evaluator/index.js +11 -10
  190. package/dist/harnesses/impls/prediction-v1-evaluator/index.js.map +1 -1
  191. package/dist/harnesses/impls/swe-rebench-v2-evaluator/eval-runner.d.ts +1 -0
  192. package/dist/harnesses/impls/swe-rebench-v2-evaluator/eval-runner.js +10 -2
  193. package/dist/harnesses/impls/swe-rebench-v2-evaluator/eval-runner.js.map +1 -1
  194. package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.d.ts +24 -5
  195. package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js +104 -4
  196. package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js.map +1 -1
  197. package/dist/harnesses/impls/swe-rebench-v2-evaluator/hf-fetcher.d.ts +9 -0
  198. package/dist/harnesses/impls/swe-rebench-v2-evaluator/hf-fetcher.js +25 -1
  199. package/dist/harnesses/impls/swe-rebench-v2-evaluator/hf-fetcher.js.map +1 -1
  200. package/dist/harnesses/names.d.ts +1 -0
  201. package/dist/harnesses/names.js +3 -0
  202. package/dist/harnesses/names.js.map +1 -1
  203. package/dist/harnesses/readiness-registry.d.ts +48 -0
  204. package/dist/harnesses/readiness-registry.js +136 -0
  205. package/dist/harnesses/readiness-registry.js.map +1 -0
  206. package/dist/harnesses/types.d.ts +7 -0
  207. package/dist/main.d.ts +14 -0
  208. package/dist/main.js +112 -37
  209. package/dist/main.js.map +1 -1
  210. package/dist/mcp/server.js +14 -13
  211. package/dist/mcp/server.js.map +1 -1
  212. package/dist/operator-errors.js +13 -1
  213. package/dist/operator-errors.js.map +1 -1
  214. package/dist/preflight/claude-auth.d.ts +18 -0
  215. package/dist/preflight/claude-auth.js +38 -0
  216. package/dist/preflight/claude-auth.js.map +1 -1
  217. package/dist/scripts/donation-consumption-acceptance.js +1 -1
  218. package/dist/scripts/donation-consumption-acceptance.js.map +1 -1
  219. package/dist/scripts/swe-rebench-v2-known-bad.json +12 -0
  220. package/dist/scripts/swe-rebench-v2-seed-pool.json +26 -0
  221. package/dist/solver-types/_swe-rebench-v2-substrate.d.ts +52 -0
  222. package/dist/solver-types/_swe-rebench-v2-substrate.js +76 -0
  223. package/dist/solver-types/_swe-rebench-v2-substrate.js.map +1 -0
  224. package/dist/solver-types/_swe-rebench-v2-validated-pool.d.ts +38 -12
  225. package/dist/solver-types/_swe-rebench-v2-validated-pool.js +136 -27
  226. package/dist/solver-types/_swe-rebench-v2-validated-pool.js.map +1 -1
  227. package/dist/solver-types/swe-rebench-v2-auto.d.ts +6 -0
  228. package/dist/solver-types/swe-rebench-v2-auto.js.map +1 -1
  229. package/dist/solver-types/swe-rebench-v2.d.ts +1 -0
  230. package/dist/solver-types/swe-rebench-v2.js +19 -6
  231. package/dist/solver-types/swe-rebench-v2.js.map +1 -1
  232. package/dist/store/store.js +12 -4
  233. package/dist/store/store.js.map +1 -1
  234. package/dist/templates/plugins/runtime-plugin/.mcp.json.tmpl +8 -0
  235. package/dist/templates/plugins/runtime-plugin/README.md.tmpl +30 -0
  236. package/dist/templates/plugins/runtime-plugin/gitignore.tmpl +3 -0
  237. package/dist/templates/plugins/runtime-plugin/jinn.plugin.json.tmpl +21 -0
  238. package/dist/templates/plugins/runtime-plugin/mcp/server.mjs.tmpl +33 -0
  239. package/dist/templates/plugins/runtime-plugin/package.json.tmpl +15 -0
  240. package/dist/templates/plugins/runtime-plugin/test/plugin.test.ts.tmpl +35 -0
  241. package/dist/templates/plugins/runtime-plugin/tsconfig.json.tmpl +11 -0
  242. package/dist/templates/plugins/solver-type-plugin/README.md.tmpl +35 -0
  243. package/dist/templates/plugins/solver-type-plugin/gitignore.tmpl +3 -0
  244. package/dist/templates/plugins/solver-type-plugin/jinn.plugin.json.tmpl +11 -0
  245. package/dist/templates/plugins/solver-type-plugin/package.json.tmpl +15 -0
  246. package/dist/templates/plugins/solver-type-plugin/skills/example/SKILL.md.tmpl +10 -0
  247. package/dist/templates/plugins/solver-type-plugin/test/plugin.test.ts.tmpl +25 -0
  248. package/dist/templates/plugins/solver-type-plugin/tsconfig.json.tmpl +11 -0
  249. package/dist/tx-retry.d.ts +13 -0
  250. package/dist/tx-retry.js +22 -0
  251. package/dist/tx-retry.js.map +1 -1
  252. package/dist/types/envelope.d.ts +28 -21
  253. package/dist/types/envelope.js +8 -3
  254. package/dist/types/envelope.js.map +1 -1
  255. package/dist/types/payloads/index.d.ts +2 -2
  256. package/dist/types/payloads/index.js +13 -12
  257. package/dist/types/payloads/index.js.map +1 -1
  258. package/dist/types/payloads/portfolio-v0.d.ts +60 -10
  259. package/dist/types/payloads/portfolio-v0.js +16 -6
  260. package/dist/types/payloads/portfolio-v0.js.map +1 -1
  261. package/dist/types/payloads/prediction-apy-v0.d.ts +52 -10
  262. package/dist/types/payloads/prediction-apy-v0.js +16 -6
  263. package/dist/types/payloads/prediction-apy-v0.js.map +1 -1
  264. package/dist/types/payloads/prediction-v0.d.ts +49 -10
  265. package/dist/types/payloads/prediction-v0.js +16 -6
  266. package/dist/types/payloads/prediction-v0.js.map +1 -1
  267. package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.d.ts +45 -6
  268. package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.js +16 -6
  269. package/dist/x402/handler.js +51 -20
  270. package/dist/x402/handler.js.map +1 -1
  271. package/package.json +11 -3
  272. package/plugins/swe-rebench-v2-diffmin/.claude-plugin/plugin.json +5 -0
  273. package/plugins/swe-rebench-v2-diffmin/.mcp.json +8 -0
  274. package/plugins/swe-rebench-v2-diffmin/README.md +69 -0
  275. package/plugins/swe-rebench-v2-diffmin/jinn.plugin.json +12 -0
  276. package/plugins/swe-rebench-v2-diffmin/mcp/diff-stats-server.mjs +72 -0
  277. package/plugins/swe-rebench-v2-diffmin/mcp/diff-stats.mjs +48 -0
  278. package/plugins/swe-rebench-v2-diffmin/package.json +19 -0
  279. package/plugins/swe-rebench-v2-diffmin/skills/diffmin/SKILL.md +116 -0
  280. package/plugins/swe-rebench-v2-diffmin/skills/test-map/SKILL.md +126 -0
  281. package/plugins/swe-rebench-v2-diffmin/test/diff-stats.test.ts +62 -0
  282. package/plugins/swe-rebench-v2-diffmin/test/manifest.test.ts +53 -0
  283. package/plugins/swe-rebench-v2-diffmin/tsconfig.json +12 -0
  284. package/plugins/swe-rebench-v2-runtime/README.md +13 -0
  285. package/plugins/swe-rebench-v2-runtime/skills/orient/SKILL.md +7 -3
  286. package/plugins/swe-rebench-v2-runtime/skills/plan/SKILL.md +6 -17
  287. package/templates/plugins/runtime-plugin/.mcp.json.tmpl +8 -0
  288. package/templates/plugins/runtime-plugin/README.md.tmpl +30 -0
  289. package/templates/plugins/runtime-plugin/gitignore.tmpl +3 -0
  290. package/templates/plugins/runtime-plugin/jinn.plugin.json.tmpl +21 -0
  291. package/templates/plugins/runtime-plugin/mcp/server.mjs.tmpl +33 -0
  292. package/templates/plugins/runtime-plugin/package.json.tmpl +15 -0
  293. package/templates/plugins/runtime-plugin/test/plugin.test.ts.tmpl +35 -0
  294. package/templates/plugins/runtime-plugin/tsconfig.json.tmpl +11 -0
  295. package/templates/plugins/solver-type-plugin/README.md.tmpl +35 -0
  296. package/templates/plugins/solver-type-plugin/gitignore.tmpl +3 -0
  297. package/templates/plugins/solver-type-plugin/jinn.plugin.json.tmpl +11 -0
  298. package/templates/plugins/solver-type-plugin/package.json.tmpl +15 -0
  299. package/templates/plugins/solver-type-plugin/skills/example/SKILL.md.tmpl +10 -0
  300. package/templates/plugins/solver-type-plugin/test/plugin.test.ts.tmpl +25 -0
  301. package/templates/plugins/solver-type-plugin/tsconfig.json.tmpl +11 -0
  302. package/dist/dashboard/assets/index-BjtltOGc.js +0 -76
  303. package/dist/harnesses/impls/claude-code-learner/adapters/claude-code.js.map +0 -1
  304. package/dist/harnesses/impls/claude-code-learner/adapters/codex-code.js.map +0 -1
  305. package/dist/harnesses/impls/claude-code-learner/adapters/codex-workspace.js.map +0 -1
  306. package/dist/harnesses/impls/claude-code-learner/harness.js.map +0 -1
  307. package/dist/harnesses/impls/claude-code-learner/harvest.js.map +0 -1
  308. package/dist/harnesses/impls/claude-code-learner/index.js.map +0 -1
  309. package/dist/harnesses/impls/claude-code-learner/plugin-path.js.map +0 -1
  310. package/dist/harnesses/impls/claude-code-learner/restoration-patch.js.map +0 -1
  311. package/dist/harnesses/impls/claude-code-learner/test-utils/fake-plugin-outputs.js.map +0 -1
  312. package/dist/harnesses/impls/claude-code-learner/test-utils/noop-adapter.js.map +0 -1
  313. package/dist/harnesses/impls/claude-code-learner/types.js.map +0 -1
  314. package/dist/preflight/claude-required.d.ts +0 -8
  315. package/dist/preflight/claude-required.js +0 -17
  316. package/dist/preflight/claude-required.js.map +0 -1
  317. /package/dist/harnesses/impls/{claude-code-learner → learner}/adapters/claude-code.d.ts +0 -0
  318. /package/dist/harnesses/impls/{claude-code-learner → learner}/adapters/claude-code.js +0 -0
  319. /package/dist/harnesses/impls/{claude-code-learner → learner}/adapters/codex-code.d.ts +0 -0
  320. /package/dist/harnesses/impls/{claude-code-learner → learner}/adapters/codex-workspace.d.ts +0 -0
  321. /package/dist/harnesses/impls/{claude-code-learner → learner}/adapters/codex-workspace.js +0 -0
  322. /package/dist/harnesses/impls/{claude-code-learner → learner}/harvest.d.ts +0 -0
  323. /package/dist/harnesses/impls/{claude-code-learner → learner}/restoration-patch.d.ts +0 -0
  324. /package/dist/harnesses/impls/{claude-code-learner → learner}/test-utils/fake-plugin-outputs.d.ts +0 -0
  325. /package/dist/harnesses/impls/{claude-code-learner → learner}/test-utils/fake-plugin-outputs.js +0 -0
  326. /package/dist/harnesses/impls/{claude-code-learner → learner}/test-utils/noop-adapter.d.ts +0 -0
  327. /package/dist/harnesses/impls/{claude-code-learner → learner}/test-utils/noop-adapter.js +0 -0
  328. /package/dist/harnesses/impls/{claude-code-learner → learner}/types.js +0 -0
  329. /package/plugins/{claude-code-learner → learner}/.claude-plugin/plugin.json +0 -0
  330. /package/plugins/{claude-code-learner → learner}/.codex-plugin/plugin.json +0 -0
  331. /package/plugins/{claude-code-learner → learner}/AGENTS.md +0 -0
  332. /package/plugins/{claude-code-learner → learner}/CLAUDE.md +0 -0
  333. /package/plugins/{claude-code-learner → learner}/README.md +0 -0
  334. /package/plugins/{claude-code-learner → learner}/hooks/hooks.json +0 -0
  335. /package/plugins/{claude-code-learner → learner}/hooks/session-start +0 -0
  336. /package/plugins/{claude-code-learner → learner}/skills/learn/SKILL.md +0 -0
  337. /package/plugins/{claude-code-learner → learner}/skills/learn/analyst-prompt.md +0 -0
  338. /package/plugins/{claude-code-learner → learner}/skills/learn/consolidator-prompt.md +0 -0
  339. /package/plugins/{claude-code-learner → learner}/skills/learn/explorer-prompt.md +0 -0
  340. /package/plugins/{claude-code-learner → learner}/skills/learn/planner-prompt.md +0 -0
  341. /package/plugins/{claude-code-learner → learner}/skills/learn/promoter-prompt.md +0 -0
  342. /package/plugins/{claude-code-learner → learner}/skills/learn/step-worker-prompt.md +0 -0
  343. /package/plugins/{claude-code-learner → learner}/skills/learn/strategist-prompt.md +0 -0
@@ -9,3 +9,16 @@ This plugin bundles two skills:
9
9
  The plugin is loaded automatically when an operator's daemon has the `swe-rebench-v2.v1` SolverNet enabled, per the SDK's `defaultRuntimePlugins: ['bundled:swe-rebench-v2-runtime']`.
10
10
 
11
11
  License: MIT.
12
+
13
+ ## See also
14
+
15
+ - `client/plugins/swe-rebench-v2-diffmin/` — complementary minimal-diff +
16
+ test-mapping skills. Stacks with this plug-in: a daemon can load both for
17
+ the same SolverNet. The two plug-ins cover different angles:
18
+ `swe-rebench-v2-runtime` orients + plans; `swe-rebench-v2-diffmin` enforces
19
+ minimal-diff discipline and pre-loads the PASS_TO_PASS call-graph.
20
+
21
+ Already shipping a Hermes skill? Drop it under `skills/<name>/SKILL.md`, add
22
+ a `jinn.plugin.json` targeting `swe-rebench-v2.v1`, `yarn pack`, then
23
+ `jinn solver-plugins publish`. See `swe-rebench-v2-diffmin/README.md` for
24
+ the Hermes-migrator quickstart.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: swe-rebench-v2-orient
3
- description: Orient on a SWE-rebench v2 task — read the problem statement, repo, base commit, and auxiliary interface info; identify the test files in FAIL_TO_PASS; understand what change the issue requires.
3
+ description: Orient on a SWE-rebench v2 task — set up the repo at the right base commit, read the problem statement and auxiliary interface info, identify the test files in FAIL_TO_PASS, look for prior execution data, and understand what change the issue requires.
4
4
  ---
5
5
 
6
6
  # Orient on a SWE-rebench v2 task
@@ -14,11 +14,15 @@ Inputs you receive under `goal.spec` in the full task body:
14
14
  - `goal.spec.problem_statement` — the issue description
15
15
  - `goal.spec.interface` — auxiliary interface info (function names, signatures, descriptions). May be empty.
16
16
 
17
- Steps:
17
+ ## Set up the repo
18
+
19
+ Treat `$workingDir/repo` as the only task repository checkout. Do not reuse a repo from another `workingDir` or from `implStateDir`. If `$workingDir/repo/.git` is missing, clone `https://github.com/<goal.spec.repo>.git` into `$workingDir/repo` and checkout `<goal.spec.base_commit>` before editing. All your in-tree edits must live in `$workingDir/repo` — that's both where the test infrastructure expects to find them and where the daemon's harvester reads a `git diff` from as a last-resort fallback if your typed-payload submission never lands.
20
+
21
+ ## Steps
18
22
 
19
23
  1. Read the problem statement carefully. Note the symptom, the expected behaviour, and any hints about which files / symbols are involved.
20
24
  2. If `task.interface` is non-empty, treat it as authoritative for function names + signatures of the API you must implement / fix.
21
- 3. Use Network Tools to look for prior execution data from similar SWE-rebench v2 work. Call `search_records` with `solverType: "swe-rebench-v2.v1"`, `role: "restoration"`, and `artifactType: "swe-rebench-v2_v1_solution"`; use `inspect_record` on promising refs. Call `acquire_artifact` only when the inspected record has donated IPFS sources and the full execution data is likely to help this task.
25
+ 3. Look for prior execution data from similar SWE-rebench v2 work in the Jinn knowledge corpus: search for records with `solverType: "swe-rebench-v2.v1"`, `role: "restoration"`, and `artifactType: "swe-rebench-v2_v1_solution"`. For any promising hit, examine its index card before deciding to spend on artifact bytes only download the full execution data when its index card suggests it is likely relevant. Your available Jinn corpus tools include separate "search", "inspect", and "acquire" operations; pick each by what you are trying to do (find candidates → examine one → download bytes).
22
26
  4. Check the `FAIL_TO_PASS` test names from the HF row — these define the success criterion. Find them in the codebase via grep / fs search.
23
27
  5. Output a brief Orient summary (3-5 sentences): your hypothesis about the bug, the files you intend to touch, the test you intend to satisfy, and any donated execution data that affected the plan.
24
28
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: swe-rebench-v2-plan
3
- description: Plan the patch for a SWE-rebench v2 task — given the Orient summary, sketch the minimal diff that resolves the issue without breaking existing PASS_TO_PASS tests, then submit the final patch via the `submit_typed_payload` MCP tool.
3
+ description: Plan the patch for a SWE-rebench v2 task — given the Orient summary, sketch the minimal diff that resolves the issue without breaking existing PASS_TO_PASS tests, then submit the final patch as a typed structured payload to the daemon.
4
4
  ---
5
5
 
6
6
  # Plan the patch
@@ -25,11 +25,9 @@ Pass this plan forward to the Execute phase, which produces the actual patch.
25
25
 
26
26
  ## Submitting the final patch
27
27
 
28
- Once Execute has produced the unified diff, call the **`submit_typed_payload`** MCP tool exposed by the daemon to register the Solution. The daemon validates the payload against the SolverNet contract's solution schema before persisting it; if validation fails, the tool returns the Zod error tree under `error.issues` and you can retry.
28
+ Once Execute has produced the unified diff, hand the Solution back to the daemon by submitting a **typed structured payload** through the Jinn client tools available to you. Your tool catalogue includes a dedicated "submit typed payload" action that validates the payload against the active SolverNet contract schema before persisting it. The validator runs server-side on schema mismatch you will receive a Zod-style `issues[]` tree and can correct the payload and re-submit.
29
29
 
30
- Only if `submit_typed_payload` is not available in the current harness, write the same payload object directly to `<workingDir>/.execute/solution-payload.json`. Do not choose the direct file path when the tool is available. Create the `.execute` directory if needed. The daemon's harvester reads that file after the harness exits and applies the same SolverNet payload schema during envelope assembly.
31
-
32
- Required payload shape for `swe-rebench-v2.v1`:
30
+ The required payload shape for `swe-rebench-v2.v1` restoration is:
33
31
 
34
32
  ```json
35
33
  {
@@ -44,21 +42,12 @@ Optional fields:
44
42
 
45
43
  Do **not** include daemon-derived fields (e.g. trajectory CIDs) — the daemon attaches trajectory provenance to the envelope automatically. The Solution payload is purely solver-known fields.
46
44
 
47
- Example call:
48
-
49
- ```
50
- submit_typed_payload({
51
- payload: {
52
- schemaVersion: "swe-rebench-v2-solution.v1",
53
- patch: "--- a/src/foo.c\n+++ b/src/foo.c\n@@ -1 +1 @@\n-old\n+new\n"
54
- }
55
- })
56
- ```
57
-
58
- A successful response looks like:
45
+ A successful submission response looks like:
59
46
 
60
47
  ```json
61
48
  { "accepted": true, "solverType": "swe-rebench-v2.v1", "role": "restoration", "persistedTo": "<workingDir>/.execute/solution-payload.json" }
62
49
  ```
63
50
 
51
+ If — and only if — your harness exposes no typed-payload submission tool at all, fall back by writing the same payload object directly to `<workingDir>/.execute/solution-payload.json` (create the `.execute` directory if needed). The daemon's harvester reads that file post-execution and applies the same SolverNet payload schema during envelope assembly. Prefer the tool path whenever it exists, because the tool gives you immediate schema validation feedback while the file path does not.
52
+
64
53
  After a successful submission, this Plan/Execute cycle is complete — the daemon's harness picks up the persisted payload post-execution and assembles the on-chain envelope.
@@ -0,0 +1,8 @@
1
+ {
2
+ "mcpServers": {
3
+ "example": {
4
+ "command": "node",
5
+ "args": ["mcp/server.mjs"]
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,30 @@
1
+ # {{packageName}}
2
+
3
+ Jinn runtime SolverPlugin — exposes MCP tools to every Jinn harness session, regardless of SolverNet.
4
+
5
+ ## What this is
6
+
7
+ A runtime SolverPlugin declares `jinn.supports: ['jinn.runtime']` and is loaded by Jinn-running daemons as a global MCP tool source. Use this pattern when your plug-in's value is harness-shaped (a network tool, a data lookup, a system probe) rather than task-shaped.
8
+
9
+ If your plug-in is task-shaped (skills + tools scoped to a specific SolverNet), use the `solver-type-plugin` pattern instead: `jinn create plugin <name> --pattern solver-type-plugin --solver-type <id>`.
10
+
11
+ ## Get started
12
+
13
+ ```bash
14
+ yarn install
15
+ yarn test
16
+ ```
17
+
18
+ Replace `mcp/server.mjs` with a real MCP server implementation (typically via `@modelcontextprotocol/sdk`) exposing the tools you want available.
19
+
20
+ ## Publish
21
+
22
+ ```bash
23
+ jinn solver-plugins validate path:.
24
+ jinn solver-plugins publish path:.
25
+ ```
26
+
27
+ ## Reference
28
+
29
+ - Quickstart: https://github.com/Jinn-Network/mono/blob/main/cargo/docs/build/quickstart.md (placeholder until `52x3.6` ships the canonical docs tree)
30
+ - Existing reference: `client/plugins/network-tools/` in the Jinn monorepo.
@@ -0,0 +1,3 @@
1
+ node_modules/
2
+ .DS_Store
3
+ *.log
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "version": "0.1.0",
4
+ "jinn": {
5
+ "supports": ["jinn.runtime"],
6
+ "capabilities": {
7
+ "tools": {
8
+ "example": [
9
+ "example_tool"
10
+ ]
11
+ }
12
+ },
13
+ "mcpServers": {
14
+ "example": {
15
+ "command": "node",
16
+ "args": ["mcp/server.mjs"]
17
+ }
18
+ },
19
+ "description": "Example runtime SolverPlugin exposing one MCP tool."
20
+ }
21
+ }
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Minimal MCP server stub.
4
+ //
5
+ // Replace this body with a real MCP server implementation (e.g. via
6
+ // @modelcontextprotocol/sdk) that exposes the tools declared in
7
+ // jinn.plugin.json's jinn.mcpServers.example.
8
+
9
+ import { createInterface } from 'node:readline';
10
+
11
+ const rl = createInterface({ input: process.stdin });
12
+
13
+ rl.on('line', (line) => {
14
+ let msg;
15
+ try {
16
+ msg = JSON.parse(line);
17
+ } catch {
18
+ return;
19
+ }
20
+ if (msg?.method === 'initialize') {
21
+ process.stdout.write(
22
+ JSON.stringify({
23
+ jsonrpc: '2.0',
24
+ id: msg.id,
25
+ result: {
26
+ protocolVersion: '2024-11-05',
27
+ capabilities: { tools: {} },
28
+ serverInfo: { name: '{{packageNameSlug}}-example', version: '0.1.0' },
29
+ },
30
+ }) + '\n',
31
+ );
32
+ }
33
+ });
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "version": "0.1.0",
4
+ "description": "Jinn runtime SolverPlugin — exposes MCP tools available to every harness session.",
5
+ "type": "module",
6
+ "files": ["jinn.plugin.json", ".mcp.json", "mcp/", "README.md"],
7
+ "scripts": {
8
+ "test": "vitest run"
9
+ },
10
+ "devDependencies": {
11
+ "vitest": "^2.0.0"
12
+ },
13
+ "keywords": ["jinn", "solver-plugin", "runtime", "mcp"],
14
+ "license": "MIT"
15
+ }
@@ -0,0 +1,35 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { readFileSync, existsSync } from 'node:fs';
3
+ import { join, dirname } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+
6
+ const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..');
7
+
8
+ describe('{{packageName}} runtime manifest', () => {
9
+ it('has a valid jinn.plugin.json declaring jinn.runtime', () => {
10
+ const manifest = JSON.parse(
11
+ readFileSync(join(ROOT, 'jinn.plugin.json'), 'utf8'),
12
+ );
13
+ expect(manifest.name).toBe('{{packageName}}');
14
+ expect(manifest.jinn.supports).toEqual(['jinn.runtime']);
15
+ });
16
+
17
+ it('has a .mcp.json mirroring the jinn.plugin.json mcpServers block', () => {
18
+ expect(existsSync(join(ROOT, '.mcp.json'))).toBe(true);
19
+ const mcp = JSON.parse(readFileSync(join(ROOT, '.mcp.json'), 'utf8'));
20
+ expect(mcp.mcpServers).toBeDefined();
21
+ expect(Object.keys(mcp.mcpServers).length).toBeGreaterThan(0);
22
+ });
23
+
24
+ it('every declared MCP server entry-point file exists', () => {
25
+ const mcp = JSON.parse(readFileSync(join(ROOT, '.mcp.json'), 'utf8'));
26
+ for (const [, server] of Object.entries(mcp.mcpServers as Record<string, { args?: string[] }>)) {
27
+ const args = server.args ?? [];
28
+ for (const arg of args) {
29
+ if (arg.endsWith('.mjs') || arg.endsWith('.js') || arg.endsWith('.ts')) {
30
+ expect(existsSync(join(ROOT, arg)), `missing MCP entry file: ${arg}`).toBe(true);
31
+ }
32
+ }
33
+ }
34
+ });
35
+ });
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "esModuleInterop": true,
7
+ "strict": true,
8
+ "skipLibCheck": true
9
+ },
10
+ "include": ["test/**/*.ts"]
11
+ }
@@ -0,0 +1,35 @@
1
+ # {{packageName}}
2
+
3
+ Jinn SolverPlugin targeting `{{solverTypeString}}`.
4
+
5
+ ## What this is
6
+
7
+ A SolverPlugin is a package that drops into a Jinn-running harness (Hermes, Claude Code, Codex) and contributes skills + MCP tools when the harness runs a task on `{{solverTypeString}}`. See the canonical `/docs/build/` tree for the full builder reference.
8
+
9
+ ## Get started
10
+
11
+ ```bash
12
+ yarn install
13
+ yarn test
14
+ ```
15
+
16
+ Edit `skills/example/SKILL.md` with the actual skill content you want to ship. Add new skill files under `skills/<name>/SKILL.md` and add their paths to `jinn.plugin.json`'s `jinn.skills` array.
17
+
18
+ ## Publish
19
+
20
+ When ready to ship:
21
+
22
+ ```bash
23
+ # Validate the manifest first
24
+ jinn solver-plugins validate path:.
25
+
26
+ # Publish to the Jinn network
27
+ jinn solver-plugins publish path:.
28
+ ```
29
+
30
+ The published plug-in becomes discoverable to operators running `{{solverTypeString}}` SolverNets.
31
+
32
+ ## Reference
33
+
34
+ - Quickstart: https://github.com/Jinn-Network/mono/blob/main/cargo/docs/build/quickstart.md (placeholder until `52x3.6` ships the canonical docs tree)
35
+ - Spec: `docs/superpowers/specs/2026-05-13-plug-in-builder-entry-point-design.md`
@@ -0,0 +1,3 @@
1
+ node_modules/
2
+ .DS_Store
3
+ *.log
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "version": "0.1.0",
4
+ "jinn": {
5
+ "supports": ["{{solverTypeString}}"],
6
+ "skills": [
7
+ "skills/example/SKILL.md"
8
+ ],
9
+ "description": "Example SolverPlugin for {{solverTypeString}}."
10
+ }
11
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "version": "0.1.0",
4
+ "description": "Jinn SolverPlugin for {{solverTypeString}}.",
5
+ "type": "module",
6
+ "files": ["jinn.plugin.json", "skills/", "README.md"],
7
+ "scripts": {
8
+ "test": "vitest run"
9
+ },
10
+ "devDependencies": {
11
+ "vitest": "^2.0.0"
12
+ },
13
+ "keywords": ["jinn", "solver-plugin", "{{solverTypeString}}"],
14
+ "license": "MIT"
15
+ }
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: {{packageNameSlug}}-example
3
+ description: An example skill that ships with the {{packageName}} plug-in. Replace this body with your plug-in's actual skill content.
4
+ ---
5
+
6
+ # Example skill
7
+
8
+ This skill is a placeholder. Replace its body with content that helps a solver agent attempt `{{solverTypeString}}` tasks.
9
+
10
+ Skills are markdown files with YAML frontmatter. The frontmatter's `name` and `description` are used by harnesses to decide when to load the skill into context.
@@ -0,0 +1,25 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { readFileSync, existsSync } from 'node:fs';
3
+ import { join, dirname } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+
6
+ const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..');
7
+
8
+ describe('{{packageName}} manifest', () => {
9
+ it('has a valid jinn.plugin.json', () => {
10
+ const manifestPath = join(ROOT, 'jinn.plugin.json');
11
+ expect(existsSync(manifestPath)).toBe(true);
12
+ const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'));
13
+ expect(manifest.name).toBe('{{packageName}}');
14
+ expect(manifest.jinn.supports).toContain('{{solverTypeString}}');
15
+ expect(Array.isArray(manifest.jinn.skills)).toBe(true);
16
+ });
17
+
18
+ it('every declared skill file exists', () => {
19
+ const manifestPath = join(ROOT, 'jinn.plugin.json');
20
+ const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'));
21
+ for (const skill of manifest.jinn.skills ?? []) {
22
+ expect(existsSync(join(ROOT, skill)), `missing skill file: ${skill}`).toBe(true);
23
+ }
24
+ });
25
+ });
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "esModuleInterop": true,
7
+ "strict": true,
8
+ "skipLibCheck": true
9
+ },
10
+ "include": ["test/**/*.ts"]
11
+ }