@jinn-network/client 0.1.8 → 0.1.9-canary.023faefb
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.
- package/CONTRIBUTING.md +2 -2
- package/README.md +6 -0
- package/deployments/deployment-phase1b-mech-baseSepolia-fast.json +3 -3
- package/deployments/deployment-stolas-l2-baseSepolia-fast.json +23 -3
- package/deployments/deployment-task-coordinator-router-v3-baseSepolia-fast.json +34 -6
- package/dist/adapters/mech/adapter.d.ts +31 -1
- package/dist/adapters/mech/adapter.js +126 -53
- package/dist/adapters/mech/adapter.js.map +1 -1
- package/dist/adapters/mech/contracts.d.ts +174 -13
- package/dist/adapters/mech/contracts.js +99 -49
- package/dist/adapters/mech/contracts.js.map +1 -1
- package/dist/adapters/mech/safe-revert.d.ts +4 -0
- package/dist/adapters/mech/safe-revert.js +5 -1
- package/dist/adapters/mech/safe-revert.js.map +1 -1
- package/dist/adapters/mech/safe.js +77 -1
- package/dist/adapters/mech/safe.js.map +1 -1
- package/dist/adapters/mech/types.d.ts +5 -130
- package/dist/adapters/mech/types.js +9 -65
- package/dist/adapters/mech/types.js.map +1 -1
- package/dist/adapters/mech/verdict-code.js +1 -1
- package/dist/adapters/mech/verdict-code.js.map +1 -1
- package/dist/api/bootstrap-endpoint.d.ts +19 -3
- package/dist/api/bootstrap-endpoint.js +4 -0
- package/dist/api/bootstrap-endpoint.js.map +1 -1
- package/dist/api/discovery-endpoint.d.ts +1 -0
- package/dist/api/discovery-endpoint.js +24 -0
- package/dist/api/discovery-endpoint.js.map +1 -1
- package/dist/api/fleet-build.d.ts +1 -7
- package/dist/api/fleet-build.js +0 -7
- package/dist/api/fleet-build.js.map +1 -1
- package/dist/api/gather-status.d.ts +26 -17
- package/dist/api/gather-status.js +62 -520
- package/dist/api/gather-status.js.map +1 -1
- package/dist/api/harness-auth-status-endpoint.d.ts +21 -0
- package/dist/api/harness-auth-status-endpoint.js +17 -0
- package/dist/api/harness-auth-status-endpoint.js.map +1 -0
- package/dist/api/launcher-endpoints.js +6 -1
- package/dist/api/launcher-endpoints.js.map +1 -1
- package/dist/api/launcher-status.d.ts +2 -0
- package/dist/api/launcher-status.js.map +1 -1
- package/dist/api/launcher-tasks.d.ts +47 -0
- package/dist/api/launcher-tasks.js +88 -3
- package/dist/api/launcher-tasks.js.map +1 -1
- package/dist/api/loop-completion-build.d.ts +79 -0
- package/dist/api/loop-completion-build.js +154 -0
- package/dist/api/loop-completion-build.js.map +1 -0
- package/dist/api/operator-artifacts-endpoint.js +1 -1
- package/dist/api/operator-artifacts-endpoint.js.map +1 -1
- package/dist/api/portfolio-v0-build.d.ts +2 -1
- package/dist/api/portfolio-v0-build.js +5 -7
- package/dist/api/portfolio-v0-build.js.map +1 -1
- package/dist/api/prediction-v1-build.d.ts +2 -2
- package/dist/api/prediction-v1-build.js +5 -7
- package/dist/api/prediction-v1-build.js.map +1 -1
- package/dist/api/rewards-build.d.ts +8 -1
- package/dist/api/rewards-build.js +32 -4
- package/dist/api/rewards-build.js.map +1 -1
- package/dist/api/rewards-endpoint.d.ts +12 -0
- package/dist/api/rewards-endpoint.js +46 -0
- package/dist/api/rewards-endpoint.js.map +1 -0
- package/dist/api/server.d.ts +6 -16
- package/dist/api/server.js +29 -26
- package/dist/api/server.js.map +1 -1
- package/dist/api/setup-endpoints.d.ts +45 -0
- package/dist/api/setup-endpoints.js +271 -52
- package/dist/api/setup-endpoints.js.map +1 -1
- package/dist/api/solvernets-endpoints.js +4 -1
- package/dist/api/solvernets-endpoints.js.map +1 -1
- package/dist/api/status-build.d.ts +71 -94
- package/dist/api/status-build.js +11 -77
- package/dist/api/status-build.js.map +1 -1
- package/dist/api/status-rollup-build.d.ts +0 -4
- package/dist/api/status-rollup-build.js +0 -4
- package/dist/api/status-rollup-build.js.map +1 -1
- package/dist/api/stop-hook.d.ts +1 -1
- package/dist/api/stop-hook.js +1 -1
- package/dist/api/stop-hook.js.map +1 -1
- package/dist/api/task-run-routing.d.ts +1 -1
- package/dist/api/task-runs-build.d.ts +2 -2
- package/dist/api/task-runs-build.js +5 -7
- package/dist/api/task-runs-build.js.map +1 -1
- package/dist/bin/jinn-distil-mcp.js +813 -0
- package/dist/bin/jinn-layer.js +12568 -0
- package/dist/build-info.json +4 -4
- package/dist/build-meta.json +1 -1
- package/dist/captures/distil-export.d.ts +54 -0
- package/dist/captures/distil-export.js +135 -0
- package/dist/captures/distil-export.js.map +1 -0
- package/dist/captures/ingest.d.ts +21 -0
- package/dist/captures/ingest.js +144 -0
- package/dist/captures/ingest.js.map +1 -0
- package/dist/captures/live-publisher.d.ts +9 -0
- package/dist/captures/live-publisher.js +5 -3
- package/dist/captures/live-publisher.js.map +1 -1
- package/dist/captures/publish.d.ts +15 -0
- package/dist/captures/publish.js +17 -7
- package/dist/captures/publish.js.map +1 -1
- package/dist/cli/commands/codedigest-revert-check.js +6 -2
- package/dist/cli/commands/codedigest-revert-check.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts +3 -0
- package/dist/cli/commands/doctor.js +36 -4
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/eval.d.ts +87 -0
- package/dist/cli/commands/eval.js +481 -0
- package/dist/cli/commands/eval.js.map +1 -0
- package/dist/cli/commands/rewards.d.ts +2 -0
- package/dist/cli/commands/rewards.js +39 -10
- package/dist/cli/commands/rewards.js.map +1 -1
- package/dist/cli/commands/solver-nets.js +68 -0
- package/dist/cli/commands/solver-nets.js.map +1 -1
- package/dist/cli/commands/status.js +0 -1
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/update.js +8 -0
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/version.js +4 -0
- package/dist/cli/commands/version.js.map +1 -1
- package/dist/cli/execution-context.js +2 -1
- package/dist/cli/execution-context.js.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/introspection-context.js +0 -3
- package/dist/cli/introspection-context.js.map +1 -1
- package/dist/config.d.ts +158 -541
- package/dist/config.js +190 -197
- package/dist/config.js.map +1 -1
- package/dist/contracts/abis.d.ts +100 -0
- package/dist/contracts/abis.js +58 -0
- package/dist/contracts/abis.js.map +1 -0
- package/dist/contracts/addresses.d.ts +36 -0
- package/dist/contracts/addresses.js +60 -0
- package/dist/contracts/addresses.js.map +1 -0
- package/dist/corpus/acquire.d.ts +7 -6
- package/dist/corpus/acquire.js +10 -10
- package/dist/corpus/acquire.js.map +1 -1
- package/dist/corpus/fetch-artifact.d.ts +21 -0
- package/dist/corpus/fetch-artifact.js +33 -0
- package/dist/corpus/fetch-artifact.js.map +1 -0
- package/dist/corpus/index.d.ts +2 -2
- package/dist/corpus/onchain-query.d.ts +0 -1
- package/dist/corpus/onchain-query.js +2 -5
- package/dist/corpus/onchain-query.js.map +1 -1
- package/dist/corpus/route-resolver.d.ts +3 -3
- package/dist/corpus/route-resolver.js +3 -3
- package/dist/daemon/ai-units-gate.d.ts +6 -6
- package/dist/daemon/ai-units-gate.js +11 -10
- package/dist/daemon/ai-units-gate.js.map +1 -1
- package/dist/daemon/balance-topup-loop.js +27 -9
- package/dist/daemon/balance-topup-loop.js.map +1 -1
- package/dist/daemon/checkpoint-loop.js +2 -2
- package/dist/daemon/creator.d.ts +1 -0
- package/dist/daemon/creator.js +39 -25
- package/dist/daemon/creator.js.map +1 -1
- package/dist/daemon/daemon.d.ts +15 -10
- package/dist/daemon/daemon.js +95 -41
- package/dist/daemon/daemon.js.map +1 -1
- package/dist/daemon/delivery-watcher.d.ts +9 -0
- package/dist/daemon/delivery-watcher.js +24 -1
- package/dist/daemon/delivery-watcher.js.map +1 -1
- package/dist/daemon/eviction-loop.d.ts +7 -0
- package/dist/daemon/eviction-loop.js +19 -3
- package/dist/daemon/eviction-loop.js.map +1 -1
- package/dist/daemon/join-applier.d.ts +35 -0
- package/dist/daemon/join-applier.js +49 -0
- package/dist/daemon/join-applier.js.map +1 -0
- package/dist/daemon/loop-heartbeat.d.ts +89 -0
- package/dist/daemon/loop-heartbeat.js +75 -0
- package/dist/daemon/loop-heartbeat.js.map +1 -0
- package/dist/{api/peers.js → daemon/peer-sync.js} +3 -1
- package/dist/daemon/peer-sync.js.map +1 -0
- package/dist/daemon/reward-claim-loop.js +28 -10
- package/dist/daemon/reward-claim-loop.js.map +1 -1
- package/dist/daemon/skip-log-dedup.d.ts +1 -1
- package/dist/daemon/skip-log-dedup.js +3 -0
- package/dist/daemon/skip-log-dedup.js.map +1 -1
- package/dist/daemon/spend-cap-gate.d.ts +0 -6
- package/dist/daemon/spend-cap-gate.js +1 -8
- package/dist/daemon/spend-cap-gate.js.map +1 -1
- package/dist/daemon/watchdog-loop.d.ts +84 -0
- package/dist/daemon/watchdog-loop.js +91 -0
- package/dist/daemon/watchdog-loop.js.map +1 -0
- package/dist/dashboard/assets/index-B_5Cb-ZH.js +161 -0
- package/dist/dashboard/assets/index-D7rvJRNa.css +1 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/discovery/http.d.ts +17 -0
- package/dist/discovery/http.js +378 -26
- package/dist/discovery/http.js.map +1 -1
- package/dist/discovery/onchain.js +174 -10
- package/dist/discovery/onchain.js.map +1 -1
- package/dist/discovery/types.d.ts +149 -0
- package/dist/discovery/types.js +40 -0
- package/dist/discovery/types.js.map +1 -1
- package/dist/discovery/with-fallback.js +24 -0
- package/dist/discovery/with-fallback.js.map +1 -1
- package/dist/earning/bootstrap-run.d.ts +25 -0
- package/dist/earning/bootstrap-run.js +315 -0
- package/dist/earning/bootstrap-run.js.map +1 -0
- package/dist/earning/bootstrap.d.ts +31 -11
- package/dist/earning/bootstrap.js +123 -212
- package/dist/earning/bootstrap.js.map +1 -1
- package/dist/earning/contracts.d.ts +2 -232
- package/dist/earning/contracts.js +16 -205
- package/dist/earning/contracts.js.map +1 -1
- package/dist/earning/faucet-topup-store.d.ts +41 -0
- package/dist/earning/faucet-topup-store.js +89 -0
- package/dist/earning/faucet-topup-store.js.map +1 -0
- package/dist/earning/faucet.d.ts +1 -1
- package/dist/earning/faucet.js +2 -2
- package/dist/earning/faucet.js.map +1 -1
- package/dist/earning/safe-adapter.js +12 -45
- package/dist/earning/safe-adapter.js.map +1 -1
- package/dist/earning/steps/context.d.ts +42 -0
- package/dist/earning/steps/context.js +4 -0
- package/dist/earning/steps/context.js.map +1 -0
- package/dist/earning/steps/fleet-identity-register.d.ts +4 -0
- package/dist/earning/steps/fleet-identity-register.js +65 -0
- package/dist/earning/steps/fleet-identity-register.js.map +1 -0
- package/dist/earning/steps/fleet-safe-deploy.d.ts +4 -0
- package/dist/earning/steps/fleet-safe-deploy.js +62 -0
- package/dist/earning/steps/fleet-safe-deploy.js.map +1 -0
- package/dist/earning/steps/fleet-safe-predict.d.ts +4 -0
- package/dist/earning/steps/fleet-safe-predict.js +18 -0
- package/dist/earning/steps/fleet-safe-predict.js.map +1 -0
- package/dist/earning/steps/receipt-parsing.d.ts +12 -0
- package/dist/earning/steps/receipt-parsing.js +71 -0
- package/dist/earning/steps/receipt-parsing.js.map +1 -0
- package/dist/earning/stolas-claim.js +8 -8
- package/dist/earning/stolas-claim.js.map +1 -1
- package/dist/earning/{jinn-rewards.d.ts → stolas-staking.d.ts} +4 -8
- package/dist/earning/{jinn-rewards.js → stolas-staking.js} +6 -10
- package/dist/earning/stolas-staking.js.map +1 -0
- package/dist/earning/testnet-setup-migration.d.ts +1 -0
- package/dist/earning/testnet-setup-migration.js +7 -2
- package/dist/earning/testnet-setup-migration.js.map +1 -1
- package/dist/earning/types.d.ts +1 -1
- package/dist/earning/types.js +1 -1
- package/dist/earning/types.js.map +1 -1
- package/dist/earning/viem-clients.d.ts +3 -19
- package/dist/earning/viem-clients.js +4 -31
- package/dist/earning/viem-clients.js.map +1 -1
- package/dist/erc8004/addresses.d.ts +6 -5
- package/dist/erc8004/addresses.js +7 -5
- package/dist/erc8004/addresses.js.map +1 -1
- package/dist/erc8004/identity.d.ts +12 -1
- package/dist/erc8004/identity.js +31 -0
- package/dist/erc8004/identity.js.map +1 -1
- package/dist/erc8004/index.d.ts +1 -1
- package/dist/erc8004/index.js +1 -1
- package/dist/erc8004/index.js.map +1 -1
- package/dist/eval/capability-slate.d.ts +54 -0
- package/dist/eval/capability-slate.js +116 -0
- package/dist/eval/capability-slate.js.map +1 -0
- package/dist/eval/capability-stats.d.ts +39 -0
- package/dist/eval/capability-stats.js +123 -0
- package/dist/eval/capability-stats.js.map +1 -0
- package/dist/eval/contested-band.d.ts +18 -0
- package/dist/eval/contested-band.js +19 -0
- package/dist/eval/contested-band.js.map +1 -0
- package/dist/eval/corpus-index.d.ts +21 -0
- package/dist/eval/corpus-index.js +55 -0
- package/dist/eval/corpus-index.js.map +1 -0
- package/dist/eval/disjointness.d.ts +26 -0
- package/dist/eval/disjointness.js +67 -0
- package/dist/eval/disjointness.js.map +1 -0
- package/dist/eval/eval-harness-run.d.ts +63 -0
- package/dist/eval/eval-harness-run.js +123 -0
- package/dist/eval/eval-harness-run.js.map +1 -0
- package/dist/eval/mcnemar-power.d.ts +14 -0
- package/dist/eval/mcnemar-power.js +40 -0
- package/dist/eval/mcnemar-power.js.map +1 -0
- package/dist/eval/orchestrator.d.ts +224 -0
- package/dist/eval/orchestrator.js +250 -0
- package/dist/eval/orchestrator.js.map +1 -0
- package/dist/eval/paired.d.ts +68 -0
- package/dist/eval/paired.js +93 -0
- package/dist/eval/paired.js.map +1 -0
- package/dist/eval/resolve-slate-tasks.d.ts +35 -0
- package/dist/eval/resolve-slate-tasks.js +56 -0
- package/dist/eval/resolve-slate-tasks.js.map +1 -0
- package/dist/eval/screen-discovery.d.ts +22 -0
- package/dist/eval/screen-discovery.js +71 -0
- package/dist/eval/screen-discovery.js.map +1 -0
- package/dist/eval/screen-progress.d.ts +41 -0
- package/dist/eval/screen-progress.js +60 -0
- package/dist/eval/screen-progress.js.map +1 -0
- package/dist/eval/screen-runner.d.ts +30 -0
- package/dist/eval/screen-runner.js +289 -0
- package/dist/eval/screen-runner.js.map +1 -0
- package/dist/eval/screen.d.ts +107 -0
- package/dist/eval/screen.js +159 -0
- package/dist/eval/screen.js.map +1 -0
- package/dist/eval/slope.d.ts +29 -0
- package/dist/eval/slope.js +46 -0
- package/dist/eval/slope.js.map +1 -0
- package/dist/eval/train-sequence.d.ts +35 -0
- package/dist/eval/train-sequence.js +59 -0
- package/dist/eval/train-sequence.js.map +1 -0
- package/dist/eval/wilson.d.ts +45 -0
- package/dist/eval/wilson.js +48 -0
- package/dist/eval/wilson.js.map +1 -0
- package/dist/events/types.d.ts +1 -1
- package/dist/events/types.js +1 -1
- package/dist/events/types.js.map +1 -1
- package/dist/harnesses/auth-source.d.ts +51 -0
- package/dist/harnesses/auth-source.js +155 -0
- package/dist/harnesses/auth-source.js.map +1 -0
- package/dist/harnesses/engine/canonical-json.js +5 -3
- package/dist/harnesses/engine/canonical-json.js.map +1 -1
- package/dist/harnesses/engine/engine.d.ts +34 -1
- package/dist/harnesses/engine/engine.js +91 -11
- package/dist/harnesses/engine/engine.js.map +1 -1
- package/dist/harnesses/engine/packaging.js +5 -5
- package/dist/harnesses/engine/packaging.js.map +1 -1
- package/dist/harnesses/engine/persistence.d.ts +19 -61
- package/dist/harnesses/engine/persistence.js +28 -0
- package/dist/harnesses/engine/persistence.js.map +1 -1
- package/dist/harnesses/impls/_evaluator-base.d.ts +48 -0
- package/dist/harnesses/impls/_evaluator-base.js +35 -0
- package/dist/harnesses/impls/_evaluator-base.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.d.ts +1 -1
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.js +1 -1
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction/index.d.ts +2 -3
- package/dist/harnesses/impls/claude-mcp-prediction/index.js +29 -99
- package/dist/harnesses/impls/claude-mcp-prediction/index.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction/mcp-tools.js +4 -21
- package/dist/harnesses/impls/claude-mcp-prediction/mcp-tools.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.d.ts +2 -0
- package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.js +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/index.js +30 -79
- package/dist/harnesses/impls/claude-mcp-prediction-apy/index.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/mcp-tools.js +4 -19
- package/dist/harnesses/impls/claude-mcp-prediction-apy/mcp-tools.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.d.ts +2 -0
- package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.js +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server-script.d.ts +39 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server-script.js +62 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server-script.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server.d.ts +40 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server.js +44 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-shared/single-session-harness.d.ts +56 -0
- package/dist/harnesses/impls/claude-mcp-shared/single-session-harness.js +79 -0
- package/dist/harnesses/impls/claude-mcp-shared/single-session-harness.js.map +1 -0
- package/dist/harnesses/impls/hermes-agent/adapter.d.ts +2 -0
- package/dist/harnesses/impls/hermes-agent/adapter.js +8 -5
- package/dist/harnesses/impls/hermes-agent/adapter.js.map +1 -1
- package/dist/harnesses/impls/hermes-agent/bootstrap.d.ts +1 -0
- package/dist/harnesses/impls/hermes-agent/bootstrap.js +6 -1
- package/dist/harnesses/impls/hermes-agent/bootstrap.js.map +1 -1
- package/dist/harnesses/impls/hermes-agent/harness.d.ts +25 -3
- package/dist/harnesses/impls/hermes-agent/harness.js +89 -5
- package/dist/harnesses/impls/hermes-agent/harness.js.map +1 -1
- package/dist/harnesses/impls/index.d.ts +2 -0
- package/dist/harnesses/impls/index.js +10 -1
- package/dist/harnesses/impls/index.js.map +1 -1
- package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.d.ts +34 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.js +111 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.d.ts +24 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.js +19 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/harness.d.ts +64 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/harness.js +125 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/harness.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/repro.d.ts +32 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/repro.js +73 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/repro.js.map +1 -0
- package/dist/harnesses/impls/learner/adapters/claude-code.js +5 -0
- package/dist/harnesses/impls/learner/adapters/claude-code.js.map +1 -1
- package/dist/harnesses/impls/learner/adapters/codex-code.d.ts +11 -1
- package/dist/harnesses/impls/learner/adapters/codex-code.js +130 -15
- package/dist/harnesses/impls/learner/adapters/codex-code.js.map +1 -1
- package/dist/harnesses/impls/learner/harness.d.ts +29 -1
- package/dist/harnesses/impls/learner/harness.js +85 -1
- package/dist/harnesses/impls/learner/harness.js.map +1 -1
- package/dist/harnesses/impls/learner/harvest.d.ts +2 -0
- package/dist/harnesses/impls/learner/harvest.js +51 -1
- package/dist/harnesses/impls/learner/harvest.js.map +1 -1
- package/dist/harnesses/impls/learner/plugin-path.js +1 -0
- package/dist/harnesses/impls/learner/plugin-path.js.map +1 -1
- package/dist/harnesses/impls/portfolio-v0-evaluator/index.d.ts +5 -15
- package/dist/harnesses/impls/portfolio-v0-evaluator/index.js +10 -29
- package/dist/harnesses/impls/portfolio-v0-evaluator/index.js.map +1 -1
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.d.ts +5 -15
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js +10 -23
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js.map +1 -1
- package/dist/harnesses/impls/prediction-v0-evaluator/index.d.ts +5 -15
- package/dist/harnesses/impls/prediction-v0-evaluator/index.js +10 -25
- package/dist/harnesses/impls/prediction-v0-evaluator/index.js.map +1 -1
- package/dist/harnesses/impls/stub.d.ts +2 -2
- package/dist/harnesses/impls/stub.js +2 -2
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/eval-runner.js +8 -0
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/eval-runner.js.map +1 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js +3 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js.map +1 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/index.d.ts +2 -2
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/index.js +3 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/index.js.map +1 -1
- package/dist/harnesses/readiness-registry.d.ts +16 -0
- package/dist/harnesses/readiness-registry.js +28 -6
- package/dist/harnesses/readiness-registry.js.map +1 -1
- package/dist/harnesses/types.d.ts +26 -0
- package/dist/learner/revert-decision.d.ts +16 -1
- package/dist/learner/revert-decision.js +38 -18
- package/dist/learner/revert-decision.js.map +1 -1
- package/dist/learner/revert-stats.d.ts +14 -0
- package/dist/learner/revert-stats.js +42 -0
- package/dist/learner/revert-stats.js.map +1 -1
- package/dist/learner/verification-gate.d.ts +53 -0
- package/dist/learner/verification-gate.js +80 -0
- package/dist/learner/verification-gate.js.map +1 -0
- package/dist/local-provider-url.d.ts +3 -0
- package/dist/local-provider-url.js +28 -0
- package/dist/local-provider-url.js.map +1 -0
- package/dist/main.js +188 -566
- package/dist/main.js.map +1 -1
- package/dist/mcp/acquire-artifact.d.ts +3 -3
- package/dist/mcp/acquire-artifact.js +3 -3
- package/dist/mcp/operator-server.js +1 -1
- package/dist/mcp/operator-server.js.map +1 -1
- package/dist/mcp/server.js +5 -6
- package/dist/mcp/server.js.map +1 -1
- package/dist/monitoring/net-liveness.d.ts +143 -0
- package/dist/monitoring/net-liveness.js +301 -0
- package/dist/monitoring/net-liveness.js.map +1 -0
- package/dist/observability/emit-event.d.ts +1 -1
- package/dist/observability/emit-event.js +0 -4
- package/dist/observability/emit-event.js.map +1 -1
- package/dist/observability/progress.d.ts +11 -0
- package/dist/observability/progress.js +16 -0
- package/dist/observability/progress.js.map +1 -0
- package/dist/pilot/cost.d.ts +19 -0
- package/dist/pilot/cost.js +31 -0
- package/dist/pilot/cost.js.map +1 -0
- package/dist/pilot/instance.d.ts +20 -0
- package/dist/pilot/instance.js +19 -0
- package/dist/pilot/instance.js.map +1 -0
- package/dist/pilot/repo.d.ts +31 -0
- package/dist/pilot/repo.js +42 -0
- package/dist/pilot/repo.js.map +1 -0
- package/dist/pilot/solve.d.ts +22 -0
- package/dist/pilot/solve.js +37 -0
- package/dist/pilot/solve.js.map +1 -0
- package/dist/pilot/tally.d.ts +35 -0
- package/dist/pilot/tally.js +61 -0
- package/dist/pilot/tally.js.map +1 -0
- package/dist/plugins/learner/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/learner/.codex-plugin/plugin.json +1 -1
- package/dist/plugins/learner/hooks/session-start +30 -1
- package/dist/plugins/learner/skills/learn/consolidator-prompt.md +4 -0
- package/dist/plugins/local-trace-distiller/.claude-plugin/plugin.json +9 -0
- package/dist/plugins/local-trace-distiller/.codex-plugin/plugin.json +41 -0
- package/dist/plugins/local-trace-distiller/.mcp.json +8 -0
- package/dist/plugins/local-trace-distiller/README.md +27 -0
- package/dist/plugins/local-trace-distiller/jinn.plugin.json +36 -0
- package/dist/plugins/local-trace-distiller/skills/distill/SKILL.md +51 -0
- package/dist/preflight/deployment-readiness.d.ts +127 -0
- package/dist/preflight/deployment-readiness.js +308 -0
- package/dist/preflight/deployment-readiness.js.map +1 -0
- package/dist/preflight/pidfile-liveness.d.ts +7 -1
- package/dist/preflight/pidfile-liveness.js +14 -0
- package/dist/preflight/pidfile-liveness.js.map +1 -1
- package/dist/preflight/rpc-network.d.ts +10 -3
- package/dist/preflight/rpc-network.js +46 -13
- package/dist/preflight/rpc-network.js.map +1 -1
- package/dist/preflight/stable-cwd.d.ts +29 -0
- package/dist/preflight/stable-cwd.js +98 -0
- package/dist/preflight/stable-cwd.js.map +1 -0
- package/dist/rpc/transport.d.ts +43 -5
- package/dist/rpc/transport.js +131 -30
- package/dist/rpc/transport.js.map +1 -1
- package/dist/scripts/swe-rebench-v2-seed-pool.json +2 -1
- package/dist/solver-nets/registry.d.ts +19 -0
- package/dist/solver-nets/registry.js +95 -66
- package/dist/solver-nets/registry.js.map +1 -1
- package/dist/solver-types/_jinn-repo-pool.d.ts +27 -0
- package/dist/solver-types/_jinn-repo-pool.js +27 -0
- package/dist/solver-types/_jinn-repo-pool.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-held-out-slate.d.ts +76 -0
- package/dist/solver-types/_swe-rebench-v2-held-out-slate.js +156 -0
- package/dist/solver-types/_swe-rebench-v2-held-out-slate.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-pool-recovery.d.ts +81 -0
- package/dist/solver-types/_swe-rebench-v2-pool-recovery.js +116 -0
- package/dist/solver-types/_swe-rebench-v2-pool-recovery.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-state.d.ts +9 -0
- package/dist/solver-types/_swe-rebench-v2-state.js +14 -0
- package/dist/solver-types/_swe-rebench-v2-state.js.map +1 -1
- package/dist/solver-types/_swe-rebench-v2-validated-pool.d.ts +30 -0
- package/dist/solver-types/_swe-rebench-v2-validated-pool.js +40 -0
- package/dist/solver-types/_swe-rebench-v2-validated-pool.js.map +1 -1
- package/dist/solver-types/index.js +2 -0
- package/dist/solver-types/index.js.map +1 -1
- package/dist/solver-types/jinn-repo-admit.d.ts +17 -0
- package/dist/solver-types/jinn-repo-admit.js +16 -0
- package/dist/solver-types/jinn-repo-admit.js.map +1 -0
- package/dist/solver-types/jinn-repo-auto.d.ts +60 -0
- package/dist/solver-types/jinn-repo-auto.js +163 -0
- package/dist/solver-types/jinn-repo-auto.js.map +1 -0
- package/dist/solver-types/jinn-repo-definition.d.ts +15 -0
- package/dist/solver-types/jinn-repo-definition.js +34 -0
- package/dist/solver-types/jinn-repo-definition.js.map +1 -0
- package/dist/solver-types/jinn-repo-extract.d.ts +16 -0
- package/dist/solver-types/jinn-repo-extract.js +32 -0
- package/dist/solver-types/jinn-repo-extract.js.map +1 -0
- package/dist/solver-types/jinn-repo.d.ts +21 -0
- package/dist/solver-types/jinn-repo.js +23 -0
- package/dist/solver-types/jinn-repo.js.map +1 -0
- package/dist/solver-types/learner-loop-test.js +1 -1
- package/dist/solver-types/learner-loop-test.js.map +1 -1
- package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v1.json +20 -0
- package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v2.json +19 -0
- package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v2.screening-report.json +628 -0
- package/dist/solver-types/solver-type.d.ts +8 -0
- package/dist/solver-types/swe-rebench-v2.d.ts +2 -0
- package/dist/solver-types/swe-rebench-v2.js +115 -10
- package/dist/solver-types/swe-rebench-v2.js.map +1 -1
- package/dist/solvernets/launched-record-dispatcher.d.ts +5 -0
- package/dist/solvernets/launched-record-dispatcher.js +14 -1
- package/dist/solvernets/launched-record-dispatcher.js.map +1 -1
- package/dist/solvernets/registry-client-erc8004.js +29 -37
- package/dist/solvernets/registry-client-erc8004.js.map +1 -1
- package/dist/solvernets/registry-client.d.ts +6 -0
- package/dist/solvernets/store.d.ts +1 -1
- package/dist/solvernets/store.js +8 -3
- package/dist/solvernets/store.js.map +1 -1
- package/dist/spend/ai-units-config.d.ts +10 -0
- package/dist/spend/ai-units-config.js +7 -1
- package/dist/spend/ai-units-config.js.map +1 -1
- package/dist/spend/ai-units.d.ts +51 -0
- package/dist/spend/ai-units.js +73 -0
- package/dist/spend/ai-units.js.map +1 -1
- package/dist/spend/credential.d.ts +2 -2
- package/dist/spend/credential.js +9 -3
- package/dist/spend/credential.js.map +1 -1
- package/dist/spend/record.js +12 -5
- package/dist/spend/record.js.map +1 -1
- package/dist/spend/spend-cap.d.ts +10 -0
- package/dist/spend/spend-cap.js +13 -0
- package/dist/spend/spend-cap.js.map +1 -0
- package/dist/spend/usage.js +39 -3
- package/dist/spend/usage.js.map +1 -1
- package/dist/store/store.d.ts +106 -5
- package/dist/store/store.js +194 -8
- package/dist/store/store.js.map +1 -1
- package/dist/trajectory/emit.d.ts +6 -0
- package/dist/trajectory/emit.js +9 -1
- package/dist/trajectory/emit.js.map +1 -1
- package/dist/trajectory/harness-bundle-schema.d.ts +1 -1
- package/dist/trajectory/harness-bundle-schema.js +1 -1
- package/dist/trajectory/harness-bundle-schema.js.map +1 -1
- package/dist/trajectory/processors/identity-scrub.js +22 -3
- package/dist/trajectory/processors/identity-scrub.js.map +1 -1
- package/dist/trajectory/schema.d.ts +1 -1
- package/dist/trajectory/schema.js +1 -1
- package/dist/trajectory/schema.js.map +1 -1
- package/dist/trajectory/scrub/build.d.ts +46 -0
- package/dist/trajectory/scrub/build.js +76 -0
- package/dist/trajectory/scrub/build.js.map +1 -0
- package/dist/trajectory/scrub/emit-scrub.d.ts +41 -0
- package/dist/trajectory/scrub/emit-scrub.js +88 -0
- package/dist/trajectory/scrub/emit-scrub.js.map +1 -0
- package/dist/trajectory/scrub/key-policy.d.ts +20 -0
- package/dist/trajectory/scrub/key-policy.js +43 -0
- package/dist/trajectory/scrub/key-policy.js.map +1 -0
- package/dist/trajectory/scrub/layer2.d.ts +23 -0
- package/dist/trajectory/scrub/layer2.js +33 -0
- package/dist/trajectory/scrub/layer2.js.map +1 -0
- package/dist/trajectory/scrub/ml-pii-stage.d.ts +24 -0
- package/dist/trajectory/scrub/ml-pii-stage.js +43 -0
- package/dist/trajectory/scrub/ml-pii-stage.js.map +1 -0
- package/dist/trajectory/scrub/openredaction-stage.d.ts +178 -0
- package/dist/trajectory/scrub/openredaction-stage.js +269 -0
- package/dist/trajectory/scrub/openredaction-stage.js.map +1 -0
- package/dist/trajectory/scrub/pii-build.d.ts +31 -0
- package/dist/trajectory/scrub/pii-build.js +64 -0
- package/dist/trajectory/scrub/pii-build.js.map +1 -0
- package/dist/trajectory/scrub/pipeline.d.ts +37 -0
- package/dist/trajectory/scrub/pipeline.js +83 -0
- package/dist/trajectory/scrub/pipeline.js.map +1 -0
- package/dist/trajectory/scrub/plain-patterns-stage.d.ts +31 -0
- package/dist/trajectory/scrub/plain-patterns-stage.js +85 -0
- package/dist/trajectory/scrub/plain-patterns-stage.js.map +1 -0
- package/dist/trajectory/scrub/secretlint-stage.d.ts +35 -0
- package/dist/trajectory/scrub/secretlint-stage.js +250 -0
- package/dist/trajectory/scrub/secretlint-stage.js.map +1 -0
- package/dist/trajectory/scrub/transformers-detector.d.ts +35 -0
- package/dist/trajectory/scrub/transformers-detector.js +68 -0
- package/dist/trajectory/scrub/transformers-detector.js.map +1 -0
- package/dist/trajectory/scrub/types.d.ts +25 -0
- package/dist/trajectory/scrub/types.js +2 -0
- package/dist/trajectory/scrub/types.js.map +1 -0
- package/dist/trajectory/transcript-parsers/types.d.ts +1 -1
- package/dist/trajectory/transcript-parsers/types.js +1 -1
- package/dist/trajectory/transcript-parsers/types.js.map +1 -1
- package/dist/trajectory/transcript-watcher.d.ts +26 -0
- package/dist/trajectory/transcript-watcher.js +33 -0
- package/dist/trajectory/transcript-watcher.js.map +1 -1
- package/dist/tx-retry.d.ts +12 -0
- package/dist/tx-retry.js +41 -12
- package/dist/tx-retry.js.map +1 -1
- package/dist/types/envelope.d.ts +1 -1
- package/dist/types/envelope.js +1 -1
- package/dist/types/envelope.js.map +1 -1
- package/dist/types/payloads/index.d.ts +1 -1
- package/dist/types/payloads/index.js +7 -1
- package/dist/types/payloads/index.js.map +1 -1
- package/dist/types/payloads/portfolio-v0.d.ts +1 -1
- package/dist/types/payloads/portfolio-v0.js +1 -1
- package/dist/types/payloads/portfolio-v0.js.map +1 -1
- package/dist/types/payloads/prediction-apy-v0.d.ts +1 -1
- package/dist/types/payloads/prediction-apy-v0.js +1 -1
- package/dist/types/payloads/prediction-apy-v0.js.map +1 -1
- package/dist/types/payloads/prediction-v0.d.ts +1 -1
- package/dist/types/payloads/prediction-v0.js +1 -1
- package/dist/types/payloads/prediction-v0.js.map +1 -1
- package/dist/types/portfolio.d.ts +1 -1
- package/dist/types/portfolio.js +1 -1
- package/dist/types/portfolio.js.map +1 -1
- package/dist/types/prediction-apy.d.ts +1 -1
- package/dist/types/prediction-apy.js +1 -1
- package/dist/types/prediction-apy.js.map +1 -1
- package/dist/types/prediction.d.ts +1 -1
- package/dist/types/prediction.js +1 -1
- package/dist/types/prediction.js.map +1 -1
- package/dist/types/session-provenance.d.ts +1 -1
- package/dist/types/session-provenance.js +1 -1
- package/dist/types/session-provenance.js.map +1 -1
- package/dist/types/skill-artifact.d.ts +442 -0
- package/dist/types/skill-artifact.js +137 -0
- package/dist/types/skill-artifact.js.map +1 -0
- package/dist/types/task-document.d.ts +315 -1
- package/dist/types/task-document.js +9 -1
- package/dist/types/task-document.js.map +1 -1
- package/dist/types/task-run-read-model.d.ts +21 -0
- package/dist/types/task-run-read-model.js +2 -0
- package/dist/types/task-run-read-model.js.map +1 -0
- package/dist/types/task-run.d.ts +75 -0
- package/dist/types/task-run.js +2 -0
- package/dist/types/task-run.js.map +1 -0
- package/dist/types/task.d.ts +29 -1
- package/dist/types/task.js +1 -1
- package/dist/types/task.js.map +1 -1
- package/dist/types/window.d.ts +1 -1
- package/dist/types/window.js +1 -1
- package/dist/types/window.js.map +1 -1
- package/dist/util/redact-rpc-urls.d.ts +1 -1
- package/dist/util/redact-rpc-urls.js +57 -2
- package/dist/util/redact-rpc-urls.js.map +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/checkpoint.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/checkpoint.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/contracts.d.ts +3 -2
- package/dist/vendor/@jinn-network/sdk/dist/contracts.js +49 -0
- package/dist/vendor/@jinn-network/sdk/dist/jinn-repo.d.ts +44 -0
- package/dist/vendor/@jinn-network/sdk/dist/jinn-repo.js +25 -0
- package/dist/vendor/@jinn-network/sdk/dist/json-schema.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/json-schema.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/jinn-repo.d.ts +38 -0
- package/dist/vendor/@jinn-network/sdk/dist/payloads/jinn-repo.js +22 -0
- package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/session-derived.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/session-derived.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/swe-rebench-v2.d.ts +109 -2
- package/dist/vendor/@jinn-network/sdk/dist/payloads/swe-rebench-v2.js +26 -2
- package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/jinn-repo.d.ts +4 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/jinn-repo.js +2 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/manifest-schema.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/manifest-schema.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/swe-rebench-v2-held-out-slate.d.ts +65 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/swe-rebench-v2-held-out-slate.js +123 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/swe-rebench-v2.d.ts +2 -2
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/swe-rebench-v2.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/swe-rebench-v2.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/swe-rebench-v2.js +1 -1
- package/dist/vendor/@jinn-network/sdk/package.json +9 -1
- package/docker-compose.yml +3 -2
- package/package.json +43 -28
- package/plugins/jinn-repo-runtime/.claude-plugin/plugin.json +5 -0
- package/plugins/jinn-repo-runtime/.codex-plugin/plugin.json +39 -0
- package/plugins/jinn-repo-runtime/README.md +27 -0
- package/plugins/jinn-repo-runtime/hooks/hooks.json +16 -0
- package/plugins/jinn-repo-runtime/hooks/session-start +73 -0
- package/plugins/jinn-repo-runtime/jinn.plugin.json +11 -0
- package/plugins/jinn-repo-runtime/skills/task/SKILL.md +92 -0
- package/plugins/learner/.claude-plugin/plugin.json +1 -1
- package/plugins/learner/.codex-plugin/plugin.json +1 -1
- package/plugins/learner/hooks/session-start +30 -1
- package/plugins/learner/skills/learn/consolidator-prompt.md +4 -0
- package/plugins/local-trace-distiller/.claude-plugin/plugin.json +9 -0
- package/plugins/local-trace-distiller/.codex-plugin/plugin.json +41 -0
- package/plugins/local-trace-distiller/.mcp.json +8 -0
- package/plugins/local-trace-distiller/README.md +27 -0
- package/plugins/local-trace-distiller/jinn.plugin.json +36 -0
- package/plugins/local-trace-distiller/skills/distill/SKILL.md +51 -0
- package/plugins/swe-rebench-v2-runtime/hooks/hooks.json +16 -0
- package/plugins/swe-rebench-v2-runtime/hooks/session-start +74 -0
- package/deployments/deployment-jinn-mvi-l1-sepolia-fast.json +0 -55
- package/deployments/deployment-jinn-mvi-l1-sepolia.json +0 -55
- package/deployments/deployment-jinn-mvi-l2-baseSepolia.json +0 -13
- package/deployments/deployment-jinn-testnet-faucet-baseSepolia-fast.json +0 -15
- package/dist/api/peers.js.map +0 -1
- package/dist/daemon/jinn-claim-loop-canonical.d.ts +0 -207
- package/dist/daemon/jinn-claim-loop-canonical.js +0 -296
- package/dist/daemon/jinn-claim-loop-canonical.js.map +0 -1
- package/dist/daemon/jinn-claim-loop-mock.d.ts +0 -61
- package/dist/daemon/jinn-claim-loop-mock.js +0 -122
- package/dist/daemon/jinn-claim-loop-mock.js.map +0 -1
- package/dist/daemon/jinn-claim-loop-wiring.d.ts +0 -33
- package/dist/daemon/jinn-claim-loop-wiring.js +0 -40
- package/dist/daemon/jinn-claim-loop-wiring.js.map +0 -1
- package/dist/daemon/jinn-claim-loop.d.ts +0 -130
- package/dist/daemon/jinn-claim-loop.js +0 -328
- package/dist/daemon/jinn-claim-loop.js.map +0 -1
- package/dist/dashboard/assets/index-CzKxvMcU.css +0 -32
- package/dist/dashboard/assets/index-yVemxHot.js +0 -351
- package/dist/earning/jinn-rewards.js.map +0 -1
- package/dist/scripts/donation-consumption-acceptance.d.ts +0 -85
- package/dist/scripts/donation-consumption-acceptance.js +0 -1382
- package/dist/scripts/donation-consumption-acceptance.js.map +0 -1
- package/dist/x402/acquire.d.ts +0 -17
- package/dist/x402/acquire.js +0 -49
- package/dist/x402/acquire.js.map +0 -1
- package/dist/x402/facilitator.d.ts +0 -11
- package/dist/x402/facilitator.js +0 -52
- package/dist/x402/facilitator.js.map +0 -1
- package/dist/x402/handler.d.ts +0 -27
- package/dist/x402/handler.js +0 -236
- package/dist/x402/handler.js.map +0 -1
- /package/dist/{api/peers.d.ts → daemon/peer-sync.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jinn-network/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9-canary.023faefb",
|
|
4
4
|
"description": "Jinn protocol client — headless daemon for the restoration training loop",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "yarn@4.13.0",
|
|
7
7
|
"workspaces": [
|
|
8
|
-
"src/dashboard/spa"
|
|
8
|
+
"src/dashboard/spa",
|
|
9
|
+
"packages/*"
|
|
9
10
|
],
|
|
10
11
|
"license": "MIT",
|
|
11
12
|
"repository": {
|
|
@@ -19,6 +20,8 @@
|
|
|
19
20
|
"bin": {
|
|
20
21
|
"client": "./dist/bin/jinn.js",
|
|
21
22
|
"jinn": "./dist/bin/jinn.js",
|
|
23
|
+
"jinn-distil-mcp": "./dist/bin/jinn-distil-mcp.js",
|
|
24
|
+
"jinn-layer": "./dist/bin/jinn-layer.js",
|
|
22
25
|
"jinn-stop-hook": "./dist/bin/jinn-stop-hook.js"
|
|
23
26
|
},
|
|
24
27
|
"main": "./dist/index.js",
|
|
@@ -41,15 +44,21 @@
|
|
|
41
44
|
"scripts": {
|
|
42
45
|
"postinstall": "node dist/scripts/fix-node-pty.mjs 2>/dev/null || node scripts/fix-node-pty.mjs 2>/dev/null || true",
|
|
43
46
|
"e2e:cold-start-builder": "vitest run --config vitest.acceptance.config.ts",
|
|
44
|
-
"e2e:full-cycle": "tsx test/e2e/learner-full-cycle.ts",
|
|
45
|
-
"e2e:full-cycle-swe-rebench-v2": "tsx test/e2e/learner-full-cycle-swe-rebench-v2.ts",
|
|
47
|
+
"e2e:full-cycle": "yarn build:sdk && tsx test/e2e/learner-full-cycle.ts",
|
|
48
|
+
"e2e:full-cycle-swe-rebench-v2": "yarn build:sdk && tsx test/e2e/learner-full-cycle-swe-rebench-v2.ts",
|
|
49
|
+
"e2e:train-arm-slope": "tsx test/e2e/train-arm-slope-swe-rebench-v2.ts",
|
|
50
|
+
"e2e:train-arm-efficacy": "tsx test/e2e/train-arm-efficacy-swe-rebench-v2.ts",
|
|
46
51
|
"jinn": "tsx src/bin/jinn.ts",
|
|
52
|
+
"jinn-layer": "tsx packages/harness-layer/src/bin/jinn-layer.ts",
|
|
53
|
+
"typecheck:harness-layer": "tsc --noEmit -p packages/harness-layer/tsconfig.json",
|
|
47
54
|
"dev": "yarn build && node dist/bin/jinn.js",
|
|
48
55
|
"build:sdk": "yarn --cwd ../packages/sdk install --immutable && yarn --cwd ../packages/sdk build",
|
|
49
|
-
"build": "yarn build:sdk && yarn build:spa && tsc && chmod +x dist/bin/jinn.js && rm -rf dist/dashboard && mkdir -p dist/dashboard && cp -R src/dashboard/spa/dist/. dist/dashboard/ && rm -rf dist/templates && cp -R templates dist/templates && rm -rf dist/plugins/learner && mkdir -p dist/plugins && cp -R plugins/learner dist/plugins/learner && mkdir -p dist/scripts && cp scripts/fix-node-pty.mjs scripts/swe-rebench-v2-seed-pool.json scripts/swe-rebench-v2-known-bad.json scripts/swe-rebench-v2-pytest-missing.json dist/scripts/ && node scripts/vendor-sdk.mjs && node scripts/write-dist-build-meta.mjs",
|
|
50
|
-
"typecheck": "yarn build:sdk && tsc --noEmit",
|
|
51
|
-
"test": "yarn build:sdk && vitest run",
|
|
56
|
+
"build": "yarn build:sdk && yarn build:spa && tsc && chmod +x dist/bin/jinn.js && node scripts/bundle-jinn-layer.mjs && rm -rf dist/dashboard && mkdir -p dist/dashboard && cp -R src/dashboard/spa/dist/. dist/dashboard/ && rm -rf dist/templates && cp -R templates dist/templates && rm -rf dist/plugins/learner dist/plugins/local-trace-distiller && mkdir -p dist/plugins && cp -R plugins/learner dist/plugins/learner && cp -R plugins/local-trace-distiller dist/plugins/local-trace-distiller && mkdir -p dist/scripts && cp scripts/fix-node-pty.mjs scripts/swe-rebench-v2-seed-pool.json scripts/swe-rebench-v2-known-bad.json scripts/swe-rebench-v2-pytest-missing.json dist/scripts/ && mkdir -p dist/solver-types/slates && cp src/solver-types/slates/*.json dist/solver-types/slates/ && node scripts/vendor-sdk.mjs && node scripts/write-dist-build-meta.mjs && yarn typecheck:harness-layer",
|
|
57
|
+
"typecheck": "yarn build:sdk && tsc --noEmit && yarn typecheck:harness-layer",
|
|
52
58
|
"lint:no-late-mount": "node scripts/check-no-late-route-mount.mjs",
|
|
59
|
+
"test": "yarn build:sdk && vitest run",
|
|
60
|
+
"test:hermetic": "yarn build:sdk && vitest run --config vitest.hermetic.config.ts",
|
|
61
|
+
"smoke:build-anvil-snapshot": "vitest run test/scripts/build-anvil-snapshot-entrypoint.test.ts",
|
|
53
62
|
"test:watch": "vitest",
|
|
54
63
|
"test:claude-prediction": "yarn build && JINN_TEST_CLAUDE_PREDICTION=1 vitest run test/harnesses/impls/claude-mcp-prediction/isolation.test.ts",
|
|
55
64
|
"test:claude-prediction-apy": "yarn build && JINN_TEST_CLAUDE_PREDICTION_APY=1 vitest run test/harnesses/impls/claude-mcp-prediction-apy/isolation.test.ts",
|
|
@@ -62,15 +71,12 @@
|
|
|
62
71
|
"release:tier-1": "tsx scripts/release/run-tier-1.ts",
|
|
63
72
|
"release:tier-1:T1.1": "vitest run --config vitest.release-tier-1.config.ts test/release/tier-1/T1.1-bootstrap-fresh-anvil.test.ts",
|
|
64
73
|
"release:tier-1:T1.2": "vitest run --config vitest.release-tier-1.config.ts test/release/tier-1/T1.2-harness-readiness-contract.test.ts",
|
|
65
|
-
"release:tier-1:T1.3": "vitest run test/release/tier-1/T1.3-indexer-round-trip.test.ts",
|
|
66
74
|
"release:tier-1:T1.4": "playwright test --config=playwright.config.ts test/dashboard/release-prep/spa-route-smoke.e2e.test.ts",
|
|
67
75
|
"release:tier-2": "tsx scripts/release/run-tier-2.ts",
|
|
68
|
-
"release:tier-2:T2.1": "vitest run test/release/tier-2/T2.1-cross-op-donation.test.ts",
|
|
69
76
|
"release:tier-2:T2.2": "vitest run test/release/tier-2/T2.2-producer-evaluator.test.ts",
|
|
70
|
-
"release:tier-2:T2.3": "playwright test --config=playwright.config.ts test/dashboard/multi-op/launcher-join-flow.e2e.test.ts",
|
|
71
77
|
"release:tier-3": "tsx scripts/release/run-tier-3.ts",
|
|
72
78
|
"release:tier-3:T3.1": "JINN_T31_REAL=1 vitest run test/release/tier-3/T3.1-producer-evaluator-real.test.ts",
|
|
73
|
-
"release:
|
|
79
|
+
"release:olas-rails-smoke": "tsx scripts/release/olas-rails-smoke.ts",
|
|
74
80
|
"setup:testnet-acceptance-operator": "node scripts/setup-testnet-acceptance-operator-docker.mjs",
|
|
75
81
|
"setup:testnet-acceptance-operator:docker": "node scripts/setup-testnet-acceptance-operator-docker.mjs",
|
|
76
82
|
"setup:testnet-acceptance-operator:host": "node scripts/setup-testnet-acceptance-operator.mjs",
|
|
@@ -78,12 +84,13 @@
|
|
|
78
84
|
"release:testnet-acceptance:docker": "node scripts/testnet-acceptance-docker.mjs",
|
|
79
85
|
"release:testnet-acceptance:host": "node scripts/testnet-acceptance.mjs",
|
|
80
86
|
"status": "tsx scripts/status.ts",
|
|
87
|
+
"audit:failures": "tsx scripts/audit-task-run-failures.ts",
|
|
88
|
+
"net-liveness": "tsx scripts/net-liveness-probe.ts",
|
|
81
89
|
"cleanup:engine-work": "tsx scripts/cleanup-engine-work.ts",
|
|
82
90
|
"e2e": "tsx test/e2e/validate.ts",
|
|
83
91
|
"e2e:task-first-local": "tsx test/e2e/task-first-local.ts",
|
|
84
92
|
"e2e:claude-code-learner": "tsx test/e2e/claude-code-learner-portfolio-v0.ts",
|
|
85
93
|
"e2e:prediction": "tsx test/e2e/prediction-v1.ts",
|
|
86
|
-
"e2e:corpus": "yarn build:sdk && tsx test/e2e/corpus-x402.ts",
|
|
87
94
|
"e2e:freeze-mode": "tsx test/e2e/freeze-mode.test.ts",
|
|
88
95
|
"e2e:checkpoint-flow": "tsx test/e2e/checkpoint-flow.test.ts",
|
|
89
96
|
"e2e:swe-rebench-v2": "tsx test/e2e/swe-rebench-v2.test.ts",
|
|
@@ -103,6 +110,8 @@
|
|
|
103
110
|
"dev:spa": "yarn workspace @jinn-network/operator-spa dev",
|
|
104
111
|
"e2e:spa": "yarn build && playwright test --config=playwright.config.ts test/dashboard/spa.e2e.test.ts",
|
|
105
112
|
"e2e:solvernet-flow": "yarn build && playwright test --config=playwright.config.ts test/dashboard/solvernet-flow.e2e.test.ts",
|
|
113
|
+
"e2e:join": "yarn build && playwright test --config=playwright.config.ts test/dashboard/join.e2e.test.ts",
|
|
114
|
+
"e2e:app-flow": "yarn build && playwright test --config=playwright.config.ts test/dashboard/solvernet-flow.e2e.test.ts test/dashboard/join.e2e.test.ts",
|
|
106
115
|
"e2e:funding-sequence": "yarn build && playwright test --config=playwright.config.ts test/dashboard/funding-sequence.e2e.test.ts",
|
|
107
116
|
"e2e:dashboard": "yarn build && playwright test --config=playwright.config.ts",
|
|
108
117
|
"e2e:donation": "vitest run test/smoke/donation-mode-smoke.test.ts test/smoke/donation-ipfs-http-smoke.test.ts"
|
|
@@ -115,43 +124,48 @@
|
|
|
115
124
|
"dependencies": {
|
|
116
125
|
"@ethereumjs/wallet": "^10.0.0",
|
|
117
126
|
"@grpc/grpc-js": "^1.14.3",
|
|
118
|
-
"@hono/node-server": "^
|
|
127
|
+
"@hono/node-server": "^2.0.5",
|
|
128
|
+
"@huggingface/transformers": "^4.2.0",
|
|
119
129
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
120
130
|
"@msgpack/msgpack": "^3.0.0",
|
|
121
131
|
"@noble/ed25519": "^3.1.0",
|
|
122
132
|
"@noble/hashes": "^2.2.0",
|
|
123
133
|
"@opentelemetry/api": "^1.9.1",
|
|
124
134
|
"@opentelemetry/core": "^2.7.1",
|
|
125
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "^0.
|
|
126
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
135
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "^0.219.0",
|
|
136
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.220.0",
|
|
127
137
|
"@opentelemetry/resources": "^2.7.1",
|
|
128
|
-
"@opentelemetry/sdk-node": "^0.
|
|
138
|
+
"@opentelemetry/sdk-node": "^0.219.0",
|
|
129
139
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
130
|
-
"@safe-global/protocol-kit": "^
|
|
140
|
+
"@safe-global/protocol-kit": "^7.2.0",
|
|
141
|
+
"@safe-global/safe-deployments": "^1.37.56",
|
|
131
142
|
"@safe-global/types-kit": "^3.0.0",
|
|
132
|
-
"@scure/bip32": "^
|
|
143
|
+
"@scure/bip32": "^2.2.0",
|
|
133
144
|
"@scure/bip39": "^1.4.0",
|
|
145
|
+
"@secretlint/core": "^13.0.2",
|
|
146
|
+
"@secretlint/secretlint-rule-preset-recommend": "^13.0.2",
|
|
134
147
|
"@slicekit/erc8128": "^0.3.3",
|
|
135
|
-
"@x402/core": "^2.
|
|
136
|
-
"@x402/evm": "^2.
|
|
137
|
-
"@x402/fetch": "^2.
|
|
138
|
-
"@x402/hono": "^2.
|
|
148
|
+
"@x402/core": "^2.14.0",
|
|
149
|
+
"@x402/evm": "^2.14.0",
|
|
150
|
+
"@x402/fetch": "^2.14.0",
|
|
151
|
+
"@x402/hono": "^2.14.0",
|
|
139
152
|
"ajv": "^8.20.0",
|
|
140
153
|
"ajv-formats": "^3.0.1",
|
|
141
|
-
"better-sqlite3": "^
|
|
154
|
+
"better-sqlite3": "^12.10.0",
|
|
142
155
|
"bs58": "^6.0.0",
|
|
143
|
-
"canonicalize": "^
|
|
156
|
+
"canonicalize": "^3.0.0",
|
|
144
157
|
"chokidar": "^5.0.0",
|
|
145
158
|
"dotenv": "^17.4.1",
|
|
146
159
|
"hono": "^4.12.10",
|
|
147
160
|
"node-pty": "^1.1.0",
|
|
161
|
+
"openredaction": "^1.1.2",
|
|
148
162
|
"protobufjs": "^8.0.3",
|
|
149
163
|
"semver": "^7.7.4",
|
|
150
164
|
"tokenlens": "^1.3.1",
|
|
151
165
|
"viem": "^2.0.0",
|
|
152
166
|
"ws": "^8.20.0",
|
|
153
167
|
"yaml": "^2.8.4",
|
|
154
|
-
"zod": "^
|
|
168
|
+
"zod": "^4.4.3"
|
|
155
169
|
},
|
|
156
170
|
"optionalDependencies": {
|
|
157
171
|
"@coinbase/cdp-sdk": "^1.48.2"
|
|
@@ -160,11 +174,12 @@
|
|
|
160
174
|
"@jinn-network/sdk": "portal:../packages/sdk",
|
|
161
175
|
"@playwright/test": "^1.59.1",
|
|
162
176
|
"@types/better-sqlite3": "^7.6.0",
|
|
163
|
-
"@types/node": "^
|
|
177
|
+
"@types/node": "^25.9.1",
|
|
164
178
|
"@types/semver": "^7.7.1",
|
|
165
179
|
"@types/ws": "^8.18.1",
|
|
180
|
+
"esbuild": "^0.28.0",
|
|
166
181
|
"tsx": "^4.0.0",
|
|
167
|
-
"typescript": "^
|
|
168
|
-
"vitest": "^
|
|
182
|
+
"typescript": "^6.0.3",
|
|
183
|
+
"vitest": "^4.1.8"
|
|
169
184
|
}
|
|
170
185
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jinn-repo-runtime",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Runtime plugin for the jinn-repo.v1 SolverNet — provides domain reference for jinn-repo.v1 task shape, repo handling (checkout of Jinn-Network/mono at base_commit), and the solution payload schema."
|
|
5
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jinn-repo-runtime",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Runtime plugin for the jinn-repo.v1 SolverNet — provides domain reference for task shape, repo handling (checkout of Jinn-Network/mono at base_commit), and the solution payload schema.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Jinn Network",
|
|
7
|
+
"url": "https://github.com/Jinn-Network/mono"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/Jinn-Network/mono",
|
|
10
|
+
"repository": "https://github.com/Jinn-Network/mono",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"jinn",
|
|
14
|
+
"jinn-repo",
|
|
15
|
+
"codex",
|
|
16
|
+
"skills"
|
|
17
|
+
],
|
|
18
|
+
"skills": "./skills/",
|
|
19
|
+
"interface": {
|
|
20
|
+
"displayName": "Jinn-repo Runtime",
|
|
21
|
+
"shortDescription": "jinn-repo task domain reference",
|
|
22
|
+
"longDescription": "Provides Solver-side domain reference for jinn-repo code-issue tasks — task input shape, repo handling (checkout of Jinn-Network/mono at base_commit), and the jinn-repo-solution.v1 payload schema.",
|
|
23
|
+
"developerName": "Jinn Network",
|
|
24
|
+
"category": "Coding",
|
|
25
|
+
"capabilities": [
|
|
26
|
+
"Interactive",
|
|
27
|
+
"Read",
|
|
28
|
+
"Write"
|
|
29
|
+
],
|
|
30
|
+
"websiteURL": "https://github.com/Jinn-Network/mono",
|
|
31
|
+
"privacyPolicyURL": "https://github.com/Jinn-Network/mono",
|
|
32
|
+
"termsOfServiceURL": "https://github.com/Jinn-Network/mono",
|
|
33
|
+
"defaultPrompt": [
|
|
34
|
+
"Solve this jinn-repo task."
|
|
35
|
+
],
|
|
36
|
+
"brandColor": "#0F766E",
|
|
37
|
+
"screenshots": []
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# jinn-repo runtime plugin
|
|
2
|
+
|
|
3
|
+
Provides a Solver-side domain reference skill for the `jinn-repo.v1` SolverNet.
|
|
4
|
+
|
|
5
|
+
This plugin bundles one skill:
|
|
6
|
+
- `jinn-repo-task` — task input shape, repo handling (checkout of
|
|
7
|
+
`Jinn-Network/mono` at `base_commit`), and the `jinn-repo-solution.v1`
|
|
8
|
+
output schema.
|
|
9
|
+
|
|
10
|
+
It also ships a `SessionStart` hook (`hooks/session-start`) that
|
|
11
|
+
deterministically materialises the task repository at `$WORKING_DIR/repo` at
|
|
12
|
+
`base_commit` before the solver agent runs, so a direct-solving model never has
|
|
13
|
+
to improvise the checkout.
|
|
14
|
+
|
|
15
|
+
The plugin is loaded automatically when an operator's daemon has the
|
|
16
|
+
`jinn-repo.v1` SolverNet enabled, per the registry's
|
|
17
|
+
`defaultRuntimePluginsForSolverType('jinn-repo.v1') === ['bundled:jinn-repo-runtime']`.
|
|
18
|
+
|
|
19
|
+
License: MIT.
|
|
20
|
+
|
|
21
|
+
## See also
|
|
22
|
+
|
|
23
|
+
- `client/plugins/swe-rebench-v2-runtime/` — the sibling runtime plugin for the
|
|
24
|
+
`swe-rebench-v2.v1` SolverNet. jinn-repo mirrors its task contract and repo
|
|
25
|
+
handling exactly; the difference is that jinn-repo instances are real merged
|
|
26
|
+
`Jinn-Network/mono` PRs (repo is always `Jinn-Network/mono`) and the solverView
|
|
27
|
+
is leak-controlled (no test files / no gold tests).
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# jinn-repo-runtime session-start hook.
|
|
3
|
+
#
|
|
4
|
+
# Deterministically materialises the task repository at `$WORKING_DIR/repo` at
|
|
5
|
+
# `base_commit` BEFORE the solver agent runs, so the agent never has to set it
|
|
6
|
+
# up itself. The jinn-repo repo is always `Jinn-Network/mono`; `base_commit` is
|
|
7
|
+
# frequently off the default branch (the commit the merged PR branched from), so
|
|
8
|
+
# a `git clone` + `git checkout <SHA>` fails. This hook does what the task SKILL
|
|
9
|
+
# documents — fetch the exact SHA — deterministically.
|
|
10
|
+
#
|
|
11
|
+
# Inputs (env, set by the harness adapter):
|
|
12
|
+
# WORKING_DIR / JINN_WORKING_DIR — the episode working dir (holds task.json)
|
|
13
|
+
# Reads `spec.repo` + `spec.base_commit` from `$WORKING_DIR/task.json`
|
|
14
|
+
# (written by the harness's provisionWorkingDir).
|
|
15
|
+
#
|
|
16
|
+
# Contract: idempotent (provisions only when `$WORKING_DIR/repo/.git` is absent —
|
|
17
|
+
# never clobbers an existing checkout or agent edits); best-effort (logs to
|
|
18
|
+
# STDERR and exits 0 even on failure, so the agent can fall back to the task
|
|
19
|
+
# SKILL); emits NOTHING on STDOUT (Claude Code parses a SessionStart hook's
|
|
20
|
+
# stdout as hookSpecificOutput JSON — stray output would break that parse).
|
|
21
|
+
set -uo pipefail
|
|
22
|
+
|
|
23
|
+
WD="${WORKING_DIR:-${JINN_WORKING_DIR:-$PWD}}"
|
|
24
|
+
TASK_JSON="$WD/task.json"
|
|
25
|
+
log() { echo "jinn-repo-runtime session-start: $*" >&2; }
|
|
26
|
+
|
|
27
|
+
[[ -f "$TASK_JSON" ]] || { log "no task.json at $WD — skip (not a harness episode)"; exit 0; }
|
|
28
|
+
|
|
29
|
+
# Extract spec.repo + spec.base_commit. shlex.quote keeps the eval injection-safe.
|
|
30
|
+
REPO=""
|
|
31
|
+
BASE=""
|
|
32
|
+
eval "$(python3 - "$TASK_JSON" <<'PY' 2>/dev/null || true
|
|
33
|
+
import json, sys, shlex
|
|
34
|
+
try:
|
|
35
|
+
spec = (json.load(open(sys.argv[1])) or {}).get("spec") or {}
|
|
36
|
+
except Exception:
|
|
37
|
+
sys.exit(0)
|
|
38
|
+
print("REPO=" + shlex.quote(spec.get("repo") or ""))
|
|
39
|
+
print("BASE=" + shlex.quote(spec.get("base_commit") or ""))
|
|
40
|
+
PY
|
|
41
|
+
)"
|
|
42
|
+
|
|
43
|
+
[[ -n "$REPO" && -n "$BASE" ]] || { log "task.json has no spec.repo/base_commit — skip (not a jinn-repo task)"; exit 0; }
|
|
44
|
+
|
|
45
|
+
REPO_DIR="$WD/repo"
|
|
46
|
+
if [[ -d "$REPO_DIR/.git" ]]; then
|
|
47
|
+
log "repo already present at $REPO_DIR — skip (idempotent)"
|
|
48
|
+
exit 0
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
log "materialising $REPO @ $BASE into $REPO_DIR"
|
|
52
|
+
rm -rf "$REPO_DIR"
|
|
53
|
+
mkdir -p "$REPO_DIR"
|
|
54
|
+
# Fetch the exact SHA (base_commit is frequently off the default branch, so a
|
|
55
|
+
# plain clone+checkout fails). git serves any commit by id via fetch.
|
|
56
|
+
if ! (
|
|
57
|
+
cd "$REPO_DIR" &&
|
|
58
|
+
git init --quiet --initial-branch=main &&
|
|
59
|
+
git remote add origin "https://github.com/${REPO}.git" &&
|
|
60
|
+
git fetch --depth 1 --quiet origin "$BASE" &&
|
|
61
|
+
git checkout --quiet FETCH_HEAD
|
|
62
|
+
); then
|
|
63
|
+
log "WARNING: provisioning failed for $REPO @ $BASE — agent will fall back to the task SKILL"
|
|
64
|
+
exit 0
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
HEAD_SHA="$(git -C "$REPO_DIR" rev-parse HEAD 2>/dev/null || echo unknown)"
|
|
68
|
+
if [[ "$HEAD_SHA" == "$BASE" ]]; then
|
|
69
|
+
log "repo ready at $BASE"
|
|
70
|
+
else
|
|
71
|
+
log "WARNING: HEAD=$HEAD_SHA != base_commit=$BASE"
|
|
72
|
+
fi
|
|
73
|
+
exit 0
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jinn-repo-runtime",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"jinn": {
|
|
5
|
+
"supports": ["jinn-repo.v1"],
|
|
6
|
+
"skills": [
|
|
7
|
+
"skills/task/SKILL.md"
|
|
8
|
+
],
|
|
9
|
+
"description": "Provides domain reference for jinn-repo.v1 code-issue tasks — task shape, repo handling (checkout of Jinn-Network/mono at base_commit), and the solution payload schema."
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: jinn-repo-task
|
|
3
|
+
description: Reference for jinn-repo.v1 task structure — input fields, repo setup (checkout of Jinn-Network/mono at base_commit), the jinn-repo-solution.v1 output schema, and how the daemon harvests your diff. Consult this skill when orienting on a task or constructing a solution.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# jinn-repo task reference
|
|
7
|
+
|
|
8
|
+
Domain reference for `jinn-repo.v1` restoration tasks. A jinn-repo instance is a
|
|
9
|
+
real merged Jinn-Network/mono pull request, replayed as a coding task: you are
|
|
10
|
+
given the problem the PR fixed and the repo state immediately before it, and
|
|
11
|
+
must reproduce the fix. Describes the task shape, the repo layout the runtime
|
|
12
|
+
expects, and the schema your solution must satisfy.
|
|
13
|
+
|
|
14
|
+
## Task input shape
|
|
15
|
+
|
|
16
|
+
The task body (the solverView) carries the following fields under `goal.spec`:
|
|
17
|
+
|
|
18
|
+
- `goal.spec.instance_id` — e.g. `Jinn-Network__mono-1042`
|
|
19
|
+
- `goal.spec.repo` — always `Jinn-Network/mono`
|
|
20
|
+
- `goal.spec.base_commit` — git SHA: the commit the merged PR branched from
|
|
21
|
+
- `goal.spec.problem_statement` — the issue / PR description: what to fix
|
|
22
|
+
|
|
23
|
+
This is leak-controlled: the solverView deliberately carries **no test files and
|
|
24
|
+
no gold tests**. The PR's own test files are the held-out FAIL_TO_PASS gold the
|
|
25
|
+
evaluator runs against your patch. You do not see them, and you must not try to
|
|
26
|
+
reconstruct or satisfy them by editing test files — see Repository handling.
|
|
27
|
+
|
|
28
|
+
## Repository handling
|
|
29
|
+
|
|
30
|
+
Treat `$workingDir/repo` as the only task repository checkout. Do not reuse a
|
|
31
|
+
repo from another `workingDir` or from `implStateDir`. All in-tree edits must
|
|
32
|
+
live in `$workingDir/repo` — that's where the daemon's harvester reads a
|
|
33
|
+
`git diff` from to assemble your solution.
|
|
34
|
+
|
|
35
|
+
If `$workingDir/repo/.git` is missing, materialise the repo at
|
|
36
|
+
`<goal.spec.base_commit>` by fetching that exact SHA — **do not** `git clone`
|
|
37
|
+
and then `git checkout`. Run these commands verbatim (substituting the
|
|
38
|
+
base_commit; the repo is always `Jinn-Network/mono`):
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
mkdir -p "$workingDir/repo" && cd "$workingDir/repo"
|
|
42
|
+
git init
|
|
43
|
+
git remote add origin https://github.com/Jinn-Network/mono.git
|
|
44
|
+
git fetch --depth 1 origin <goal.spec.base_commit>
|
|
45
|
+
git checkout FETCH_HEAD
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Why this exact sequence, and not a clone: `<goal.spec.base_commit>` is the point
|
|
49
|
+
the merged PR branched from — frequently **off the current default branch tip**.
|
|
50
|
+
A `git clone` only brings down the default branch, so `git checkout
|
|
51
|
+
<goal.spec.base_commit>` then fails with `fatal: reference is not a tree`, and a
|
|
52
|
+
plain `git fetch origin` without the SHA won't help (it only pulls branch refs).
|
|
53
|
+
GitHub serves any SHA by id, so `git fetch --depth 1 origin
|
|
54
|
+
<goal.spec.base_commit>` retrieves exactly that one commit — fast, shallow, and
|
|
55
|
+
robust whether or not the SHA is on a branch. After `git checkout FETCH_HEAD`,
|
|
56
|
+
confirm you are on the base commit with `git rev-parse HEAD` (it must equal
|
|
57
|
+
`<goal.spec.base_commit>`) before editing.
|
|
58
|
+
|
|
59
|
+
## What to change, and what not to
|
|
60
|
+
|
|
61
|
+
- Read `<goal.spec.problem_statement>` and implement the fix **in
|
|
62
|
+
`$workingDir/repo`**.
|
|
63
|
+
- **Do not write or edit tests.** The gold tests are held out; the harvester
|
|
64
|
+
strips any test-file hunks from your diff before submission, so test edits are
|
|
65
|
+
wasted effort at best and cannot satisfy the held-out gold tests.
|
|
66
|
+
- **Do not commit.** Leave your changes in the working tree (uncommitted) so
|
|
67
|
+
`git diff` captures them. The harvester reads `git diff` over the checkout.
|
|
68
|
+
|
|
69
|
+
## Solution payload schema and submission
|
|
70
|
+
|
|
71
|
+
The solution is a **typed structured payload** handed back to the daemon. The
|
|
72
|
+
required shape for `jinn-repo.v1` restoration is:
|
|
73
|
+
|
|
74
|
+
```json
|
|
75
|
+
{
|
|
76
|
+
"schemaVersion": "jinn-repo-solution.v1",
|
|
77
|
+
"patch": "<unified diff, git-format>"
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
You do **not** need to assemble this payload by hand. After execution the daemon
|
|
82
|
+
harvests `git diff --binary` over `$workingDir/repo` automatically, strips
|
|
83
|
+
test-file hunks, and materialises the `jinn-repo-solution.v1` payload from the
|
|
84
|
+
result. Leaving your source fix uncommitted in the working tree is sufficient;
|
|
85
|
+
the diff is the solution.
|
|
86
|
+
|
|
87
|
+
If the active harness exposes a "submit typed payload" tool, you may submit the
|
|
88
|
+
payload above explicitly for immediate schema validation — but the auto-harvest
|
|
89
|
+
of the working-tree diff is authoritative and takes precedence over a stale
|
|
90
|
+
hand-written `<workingDir>/.execute/solution-payload.json`. Do **not** include
|
|
91
|
+
daemon-derived fields (e.g. trajectory CIDs) — the daemon attaches trajectory
|
|
92
|
+
provenance to the envelope automatically.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-learner",
|
|
3
3
|
"description": "Generic learning agent plugin — runs a goal through a seven-phase pipeline (Orient → Strategize → Plan → Execute → Debrief → Improve → Memory consolidation) and self-improves between runs by mutating its own state directory.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jinn Network",
|
|
7
7
|
"url": "https://github.com/Jinn-Network/mono"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-learner",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Generic learning agent plugin - runs a goal through a seven-phase pipeline and self-improves between runs by mutating its own state directory.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jinn Network",
|
|
@@ -35,4 +35,33 @@ fi
|
|
|
35
35
|
git config user.name "claude-code-learner"
|
|
36
36
|
git config user.email "claude-code-learner@local"
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
# Operational readiness goes to STDERR. Claude Code parses a SessionStart hook's
|
|
39
|
+
# STDOUT as JSON for `hookSpecificOutput`; any stray stdout would break that parse,
|
|
40
|
+
# so stdout below carries nothing but the additionalContext payload.
|
|
41
|
+
echo "session-start: implStateDir ready at $(pwd) (HEAD=$(git rev-parse HEAD))" >&2
|
|
42
|
+
|
|
43
|
+
# Steer skill-selection toward this plugin's OWN learn loop. This is the agnostic,
|
|
44
|
+
# plugin-owned mechanism: the learner plugin asserts its own behaviour from its own
|
|
45
|
+
# SessionStart hook, without any other plugin or the harness prompt knowing it exists.
|
|
46
|
+
#
|
|
47
|
+
# It is delivered via the documented `hookSpecificOutput.additionalContext` contract,
|
|
48
|
+
# which is injected into the model's context at session start. The previous plain
|
|
49
|
+
# `echo` was logged as a hook event (visible to the harness via --include-hook-events)
|
|
50
|
+
# but NEVER entered the model context — which is why, despite the learn skill being
|
|
51
|
+
# projected and available, the model kept selecting a direct-solve skill and the loop
|
|
52
|
+
# ran 0% of the time. (Verified: additionalContext reaches the model in headless
|
|
53
|
+
# `-p` / stream-json mode on claude 2.1.x.)
|
|
54
|
+
#
|
|
55
|
+
# MODE-AWARE (extends the original train-only steer for the held-out exam): in
|
|
56
|
+
# `frozen` mode the harness freeze-fences implStateDir, so running the learn loop's
|
|
57
|
+
# Improve/Memory phases would WRITE implStateDir and trip the fence → the eval
|
|
58
|
+
# aborts with a violation. The frozen steer therefore tells the model to CONSULT
|
|
59
|
+
# the accumulated knowledge (read-only) and solve directly — which is exactly how
|
|
60
|
+
# prior learning should raise the frozen score — and to NOT run the loop or modify
|
|
61
|
+
# implStateDir. `JINN_HARNESS_MODE` is set by the harness adapter (default train).
|
|
62
|
+
if [[ "${JINN_HARNESS_MODE:-train}" == "frozen" ]]; then
|
|
63
|
+
STEER="This is a FROZEN evaluation run. Before solving, CONSULT the accumulated learner knowledge under implStateDir (notes/, skills/, strategies/, patterns/, tests/) and apply any relevant strategy or pattern to this task. Then solve the task and call submit_typed_payload. Do NOT run the learn loop (no Orient/Improve/Memory phases) and do NOT create, edit, or commit anything under implStateDir — the harness verifies implStateDir is unchanged and will discard this run if it is modified."
|
|
64
|
+
else
|
|
65
|
+
STEER="A seven-phase self-improvement loop is available as the learn skill (claude-code-learner:learn): Orient, Strategize, Plan, Execute, Debrief, Improve, then Memory consolidation. For this session your FIRST action MUST be to invoke the learn skill (via the Skill tool) and run the full loop end-to-end, instead of solving the task directly or selecting another skill first. The Execute phase still performs the actual task work and still calls submit_typed_payload; the surrounding phases capture reusable strategy and persist it to implStateDir so future runs improve. Do not skip the loop."
|
|
66
|
+
fi
|
|
67
|
+
printf '{"hookSpecificOutput":{"hookEventName":"SessionStart","additionalContext":"%s"}}\n' "$STEER"
|
|
@@ -18,6 +18,10 @@ Anything that writes to `implStateDir` happens here, including:
|
|
|
18
18
|
- **Unused skills / hooks / tools** — anything not invoked in the last N runs (default 20; check policy override). Move to `implStateDir/.archive/<ts>/` or delete per policy.
|
|
19
19
|
- **Regressed promotions** — revert an Improve commit only when it actually made things worse. There are two triggers; act on either:
|
|
20
20
|
1. **Qualitative trigger** — if the trend in `analysisPath` (the Debrief signal) indicates a recent change made things worse, `git revert <commit-sha>` it. Be specific: revert the exact commit identified, not a bulk rollback. The target sha is `improvePromotionsDir/<n>.json`'s `implStateDirShaAfter`.
|
|
21
|
+
> The graded score (Tier 2) lowers the variance of the keep/revert decision only.
|
|
22
|
+
> It never overrules the binary verdict, and it MUST NOT be used to size on-chain
|
|
23
|
+
> reward — that path is gated on the withheld-test challenge (#1019, design §5.5).
|
|
24
|
+
|
|
21
25
|
2. **Quantitative trigger (#764)** — for each candidate Improve commit on recent `implStateDir` git history (the commits since `implStateDirShaBefore`, identified from each `improvePromotionsDir/<n>.json` `implStateDirShaAfter`), ask the network-truth indexer whether the commit's per-codeDigest pass rate is significantly worse than its parent's. **Do not hand-roll the codeDigest hash or the statistics — shell out to the CLI**, which exports each commit's tree (`git archive`, no `.git`) and hashes it the way production stamps codeDigest, then runs the documented test:
|
|
22
26
|
|
|
23
27
|
```bash
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "local-trace-distiller",
|
|
3
|
+
"description": "Local trace distillation tools and workflow for deriving experimental skills from private session traces.",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Jinn Network",
|
|
7
|
+
"url": "https://github.com/Jinn-Network/mono"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "local-trace-distiller",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Local trace distillation tools and skill workflow for deriving experimental skills from private session traces.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Jinn Network",
|
|
7
|
+
"url": "https://github.com/Jinn-Network/mono"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/Jinn-Network/mono",
|
|
10
|
+
"repository": "https://github.com/Jinn-Network/mono",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"jinn",
|
|
14
|
+
"distill",
|
|
15
|
+
"traces",
|
|
16
|
+
"skills",
|
|
17
|
+
"mcp"
|
|
18
|
+
],
|
|
19
|
+
"skills": "./skills/",
|
|
20
|
+
"mcpServers": "./.mcp.json",
|
|
21
|
+
"interface": {
|
|
22
|
+
"displayName": "Local Trace Distiller",
|
|
23
|
+
"shortDescription": "Derive experimental skills from local traces",
|
|
24
|
+
"longDescription": "Searches local captured session traces, clusters recurring patterns, and runs the existing Jinn distillation flow using the user's selected LLM provider.",
|
|
25
|
+
"developerName": "Jinn Network",
|
|
26
|
+
"category": "Coding",
|
|
27
|
+
"capabilities": [
|
|
28
|
+
"Interactive",
|
|
29
|
+
"Read",
|
|
30
|
+
"Write"
|
|
31
|
+
],
|
|
32
|
+
"websiteURL": "https://github.com/Jinn-Network/mono",
|
|
33
|
+
"privacyPolicyURL": "https://github.com/Jinn-Network/mono",
|
|
34
|
+
"termsOfServiceURL": "https://github.com/Jinn-Network/mono",
|
|
35
|
+
"defaultPrompt": [
|
|
36
|
+
"Use /distill to derive an experimental skill from local traces."
|
|
37
|
+
],
|
|
38
|
+
"brandColor": "#2563EB",
|
|
39
|
+
"screenshots": []
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# local-trace-distiller
|
|
2
|
+
|
|
3
|
+
Local trace distillation plugin for deriving experimental skills from private session traces.
|
|
4
|
+
|
|
5
|
+
## Components
|
|
6
|
+
|
|
7
|
+
- `skills/distill/SKILL.md` — `/distill` workflow. No argument defaults to `this`; `all` runs a capped cluster-first scan.
|
|
8
|
+
- `.mcp.json` — launches `jinn-distil-mcp`.
|
|
9
|
+
- `jinn-distil-mcp` tools:
|
|
10
|
+
- `distill_trace_search` — compact local trace cards.
|
|
11
|
+
- `distill_trace_read` — scoped trace reads with full-transcript gating.
|
|
12
|
+
- `distill_trace_cluster` — cheap repeated-signal candidate discovery.
|
|
13
|
+
- `distill_local` — confirmed local run through `jinn-layer distil`.
|
|
14
|
+
|
|
15
|
+
## Local Capture Source
|
|
16
|
+
|
|
17
|
+
Stop-hook captures are exported as `CapturedTask` JSON under:
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
~/.jinn-client/harness-layer/captures
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Set `JINN_LAYER_CAPTURES_DIR` to override the directory. The MCP server and `jinn-layer distil` use the same directory, so agents can search traces and then invoke the existing distillation flow without a second data path.
|
|
24
|
+
|
|
25
|
+
## Status
|
|
26
|
+
|
|
27
|
+
Generated skills are marked experimental and should be improved through user feedback before they are treated as stable. Public marketplace listing is intentionally out of scope for this version.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jinn-network/local-trace-distiller",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Local trace distillation plugin. Searches private captures, clusters candidate skill opportunities, and invokes the existing Jinn skill distiller locally.",
|
|
5
|
+
"jinn": {
|
|
6
|
+
"supports": [
|
|
7
|
+
"jinn.local-distil"
|
|
8
|
+
],
|
|
9
|
+
"capabilities": {
|
|
10
|
+
"tools": {
|
|
11
|
+
"jinn-local-distil": [
|
|
12
|
+
"distill_trace_search",
|
|
13
|
+
"distill_trace_read",
|
|
14
|
+
"distill_trace_cluster",
|
|
15
|
+
"distill_local",
|
|
16
|
+
"distill_feedback_record"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"mcpServers": {
|
|
21
|
+
"jinn-local-distil": {
|
|
22
|
+
"command": "jinn-distil-mcp",
|
|
23
|
+
"tools": [
|
|
24
|
+
"distill_trace_search",
|
|
25
|
+
"distill_trace_read",
|
|
26
|
+
"distill_trace_cluster",
|
|
27
|
+
"distill_local",
|
|
28
|
+
"distill_feedback_record"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"skills": [
|
|
33
|
+
"skills/distill/SKILL.md"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|