@jinn-network/client 0.1.2 → 0.1.3-canary.2d6b2676
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/CHANGELOG.md +20 -0
- package/CONTRIBUTING.md +8 -2
- package/README.md +68 -42
- package/deployments/deployment-jinn-mvi-l1-sepolia-fast.json +36 -0
- package/deployments/deployment-jinn-mvi-l1-sepolia.json +36 -0
- package/deployments/deployment-jinn-mvi-l2-baseSepolia.json +12 -0
- package/deployments/deployment-phase1b-mech-baseSepolia-fast.json +3 -3
- package/deployments/deployment-stolas-l2-baseSepolia-fast.json +1 -1
- package/dist/adapters/adapter.d.ts +7 -7
- package/dist/adapters/claim-registry/client.d.ts +9 -0
- package/dist/adapters/claim-registry/client.js +22 -2
- package/dist/adapters/claim-registry/client.js.map +1 -1
- package/dist/adapters/local/adapter.d.ts +4 -4
- package/dist/adapters/local/adapter.js +10 -10
- package/dist/adapters/local/adapter.js.map +1 -1
- package/dist/adapters/mech/adapter.d.ts +8 -6
- package/dist/adapters/mech/adapter.js +159 -95
- package/dist/adapters/mech/adapter.js.map +1 -1
- package/dist/adapters/mech/contracts.d.ts +8 -6
- package/dist/adapters/mech/contracts.js +119 -15
- package/dist/adapters/mech/contracts.js.map +1 -1
- package/dist/adapters/mech/ipfs.d.ts +66 -12
- package/dist/adapters/mech/ipfs.js +165 -30
- package/dist/adapters/mech/ipfs.js.map +1 -1
- package/dist/adapters/mech/safe-revert.d.ts +39 -0
- package/dist/adapters/mech/safe-revert.js +130 -0
- package/dist/adapters/mech/safe-revert.js.map +1 -0
- package/dist/adapters/mech/safe.js +48 -22
- package/dist/adapters/mech/safe.js.map +1 -1
- package/dist/adapters/mech/types.d.ts +8 -0
- package/dist/adapters/mech/types.js.map +1 -1
- package/dist/agent/agent-ws.d.ts +55 -0
- package/dist/agent/agent-ws.js +288 -0
- package/dist/agent/agent-ws.js.map +1 -0
- package/dist/agent/auto-mode-detect.d.ts +6 -0
- package/dist/agent/auto-mode-detect.js +44 -0
- package/dist/agent/auto-mode-detect.js.map +1 -0
- package/dist/agent/operator-claude.d.ts +22 -0
- package/dist/agent/operator-claude.js +130 -0
- package/dist/agent/operator-claude.js.map +1 -0
- package/dist/api/admin-endpoint.d.ts +12 -0
- package/dist/api/admin-endpoint.js +71 -0
- package/dist/api/admin-endpoint.js.map +1 -0
- package/dist/api/bootstrap-endpoint.d.ts +16 -0
- package/dist/api/bootstrap-endpoint.js +78 -0
- package/dist/api/bootstrap-endpoint.js.map +1 -0
- package/dist/api/events-endpoint.d.ts +9 -0
- package/dist/api/events-endpoint.js +46 -0
- package/dist/api/events-endpoint.js.map +1 -0
- package/dist/api/fleet-build.d.ts +1 -1
- package/dist/api/fleet-build.js +17 -8
- package/dist/api/fleet-build.js.map +1 -1
- package/dist/api/gather-status.js +6 -2
- package/dist/api/gather-status.js.map +1 -1
- package/dist/api/handshake.d.ts +17 -0
- package/dist/api/handshake.js +28 -0
- package/dist/api/handshake.js.map +1 -0
- package/dist/api/history-build.d.ts +2 -2
- package/dist/api/history-build.js +3 -3
- package/dist/api/history-build.js.map +1 -1
- package/dist/api/peers.js +21 -6
- package/dist/api/peers.js.map +1 -1
- package/dist/api/portfolio-v0-build.d.ts +16 -10
- package/dist/api/portfolio-v0-build.js +36 -31
- package/dist/api/portfolio-v0-build.js.map +1 -1
- package/dist/api/portfolio-v0-doctor.js +1 -1
- package/dist/api/portfolio-v0-doctor.js.map +1 -1
- package/dist/api/rewards-build.js +3 -8
- package/dist/api/rewards-build.js.map +1 -1
- package/dist/api/server.d.ts +55 -1
- package/dist/api/server.js +243 -17
- package/dist/api/server.js.map +1 -1
- package/dist/api/setup-endpoints.d.ts +34 -0
- package/dist/api/setup-endpoints.js +188 -0
- package/dist/api/setup-endpoints.js.map +1 -0
- package/dist/api/status-build.d.ts +10 -2
- package/dist/api/status-build.js +44 -9
- package/dist/api/status-build.js.map +1 -1
- package/dist/api/status-rollup-build.d.ts +46 -1
- package/dist/api/status-rollup-build.js +168 -5
- package/dist/api/status-rollup-build.js.map +1 -1
- package/dist/api/ui-token.d.ts +5 -0
- package/dist/api/ui-token.js +36 -0
- package/dist/api/ui-token.js.map +1 -0
- package/dist/build-info.d.ts +32 -0
- package/dist/build-info.js +69 -0
- package/dist/build-info.js.map +1 -0
- package/dist/build-info.json +6 -0
- package/dist/build-meta.json +1 -1
- package/dist/cli/command.d.ts +9 -0
- package/dist/cli/commands/balance.d.ts +7 -0
- package/dist/cli/commands/balance.js +38 -32
- package/dist/cli/commands/balance.js.map +1 -1
- package/dist/cli/commands/bootstrap.d.ts +13 -1
- package/dist/cli/commands/bootstrap.js +150 -132
- package/dist/cli/commands/bootstrap.js.map +1 -1
- package/dist/cli/commands/claim-rewards.js +14 -2
- package/dist/cli/commands/claim-rewards.js.map +1 -1
- package/dist/cli/commands/conformance.d.ts +12 -0
- package/dist/cli/commands/conformance.js +140 -0
- package/dist/cli/commands/conformance.js.map +1 -0
- package/dist/cli/commands/create.d.ts +22 -0
- package/dist/cli/commands/create.js +226 -0
- package/dist/cli/commands/create.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +34 -1
- package/dist/cli/commands/doctor.js +138 -123
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/fleet-scale.d.ts +19 -1
- package/dist/cli/commands/fleet-scale.js +379 -361
- package/dist/cli/commands/fleet-scale.js.map +1 -1
- package/dist/cli/commands/fleet.d.ts +7 -0
- package/dist/cli/commands/fleet.js +39 -33
- package/dist/cli/commands/fleet.js.map +1 -1
- package/dist/cli/commands/fund-requirements.d.ts +14 -1
- package/dist/cli/commands/fund-requirements.js +183 -174
- package/dist/cli/commands/fund-requirements.js.map +1 -1
- package/dist/cli/commands/harnesses.d.ts +18 -0
- package/dist/cli/commands/harnesses.js +208 -0
- package/dist/cli/commands/harnesses.js.map +1 -0
- package/dist/cli/commands/history.d.ts +10 -1
- package/dist/cli/commands/history.js +68 -59
- package/dist/cli/commands/history.js.map +1 -1
- package/dist/cli/commands/init.js +4 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/integrations.d.ts +13 -0
- package/dist/cli/commands/{plugin-install.js → integrations.js} +240 -33
- package/dist/cli/commands/integrations.js.map +1 -0
- package/dist/cli/commands/logs.d.ts +6 -1
- package/dist/cli/commands/logs.js +77 -70
- package/dist/cli/commands/logs.js.map +1 -1
- package/dist/cli/commands/migrate-agent-id.d.ts +26 -0
- package/dist/cli/commands/migrate-agent-id.js +165 -0
- package/dist/cli/commands/migrate-agent-id.js.map +1 -0
- package/dist/cli/commands/quickstart.d.ts +51 -1
- package/dist/cli/commands/quickstart.js +514 -296
- package/dist/cli/commands/quickstart.js.map +1 -1
- package/dist/cli/commands/rewards.d.ts +7 -0
- package/dist/cli/commands/rewards.js +46 -40
- package/dist/cli/commands/rewards.js.map +1 -1
- package/dist/cli/commands/run.d.ts +14 -1
- package/dist/cli/commands/run.js +233 -91
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/solver-nets.js +207 -0
- package/dist/cli/commands/solver-nets.js.map +1 -0
- package/dist/cli/commands/solver-plugins.d.ts +9 -0
- package/dist/cli/commands/solver-plugins.js +184 -0
- package/dist/cli/commands/solver-plugins.js.map +1 -0
- package/dist/cli/commands/status.d.ts +10 -0
- package/dist/cli/commands/status.js +97 -34
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/tasks.js +365 -0
- package/dist/cli/commands/tasks.js.map +1 -0
- package/dist/cli/commands/ui.d.ts +3 -0
- package/dist/cli/commands/ui.js +45 -0
- package/dist/cli/commands/ui.js.map +1 -0
- package/dist/cli/commands/update.d.ts +5 -0
- package/dist/cli/commands/update.js +110 -105
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/version.js +3 -1
- package/dist/cli/commands/version.js.map +1 -1
- package/dist/cli/commands/withdraw.d.ts +21 -1
- package/dist/cli/commands/withdraw.js +175 -159
- package/dist/cli/commands/withdraw.js.map +1 -1
- package/dist/cli/execution-context.d.ts +1 -1
- package/dist/cli/execution-context.js +4 -3
- package/dist/cli/execution-context.js.map +1 -1
- package/dist/cli/help.js +8 -1
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.js +24 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/open-browser.d.ts +1 -0
- package/dist/cli/open-browser.js +18 -0
- package/dist/cli/open-browser.js.map +1 -0
- package/dist/cli/password.d.ts +3 -3
- package/dist/cli/password.js +6 -6
- package/dist/cli/password.js.map +1 -1
- package/dist/config.d.ts +1232 -53
- package/dist/config.js +558 -24
- package/dist/config.js.map +1 -1
- package/dist/conformance/checks/artifacts.d.ts +37 -0
- package/dist/conformance/checks/artifacts.js +110 -0
- package/dist/conformance/checks/artifacts.js.map +1 -0
- package/dist/conformance/checks/envelope-schema.d.ts +17 -0
- package/dist/conformance/checks/envelope-schema.js +36 -0
- package/dist/conformance/checks/envelope-schema.js.map +1 -0
- package/dist/conformance/checks/hash-signature.d.ts +26 -0
- package/dist/conformance/checks/hash-signature.js +70 -0
- package/dist/conformance/checks/hash-signature.js.map +1 -0
- package/dist/conformance/checks/payload.d.ts +19 -0
- package/dist/conformance/checks/payload.js +52 -0
- package/dist/conformance/checks/payload.js.map +1 -0
- package/dist/conformance/checks/secret-scrub.d.ts +33 -0
- package/dist/conformance/checks/secret-scrub.js +118 -0
- package/dist/conformance/checks/secret-scrub.js.map +1 -0
- package/dist/conformance/checks/source-runtime.d.ts +43 -0
- package/dist/conformance/checks/source-runtime.js +68 -0
- package/dist/conformance/checks/source-runtime.js.map +1 -0
- package/dist/conformance/checks/source-static.d.ts +61 -0
- package/dist/conformance/checks/source-static.js +311 -0
- package/dist/conformance/checks/source-static.js.map +1 -0
- package/dist/conformance/checks/trajectory-chain.d.ts +18 -0
- package/dist/conformance/checks/trajectory-chain.js +51 -0
- package/dist/conformance/checks/trajectory-chain.js.map +1 -0
- package/dist/conformance/checks/trajectory-profile.d.ts +17 -0
- package/dist/conformance/checks/trajectory-profile.js +51 -0
- package/dist/conformance/checks/trajectory-profile.js.map +1 -0
- package/dist/conformance/checks/trajectory-schema.d.ts +20 -0
- package/dist/conformance/checks/trajectory-schema.js +40 -0
- package/dist/conformance/checks/trajectory-schema.js.map +1 -0
- package/dist/conformance/checks/verdict.d.ts +44 -0
- package/dist/conformance/checks/verdict.js +122 -0
- package/dist/conformance/checks/verdict.js.map +1 -0
- package/dist/conformance/harness.d.ts +32 -0
- package/dist/conformance/harness.js +227 -0
- package/dist/conformance/harness.js.map +1 -0
- package/dist/conformance/types.d.ts +88 -0
- package/dist/conformance/types.js +31 -0
- package/dist/conformance/types.js.map +1 -0
- package/dist/corpus/acquire.d.ts +37 -0
- package/dist/corpus/acquire.js +155 -0
- package/dist/corpus/acquire.js.map +1 -0
- package/dist/corpus/cache.d.ts +14 -0
- package/dist/corpus/cache.js +18 -0
- package/dist/corpus/cache.js.map +1 -0
- package/dist/corpus/fetch.d.ts +9 -0
- package/dist/corpus/fetch.js +24 -0
- package/dist/corpus/fetch.js.map +1 -0
- package/dist/corpus/index.d.ts +16 -0
- package/dist/corpus/index.js +78 -0
- package/dist/corpus/index.js.map +1 -0
- package/dist/corpus/query.d.ts +17 -0
- package/dist/corpus/query.js +108 -0
- package/dist/corpus/query.js.map +1 -0
- package/dist/corpus/route-resolver.d.ts +16 -0
- package/dist/corpus/route-resolver.js +20 -0
- package/dist/corpus/route-resolver.js.map +1 -0
- package/dist/corpus/types.d.ts +108 -0
- package/dist/corpus/types.js +50 -0
- package/dist/corpus/types.js.map +1 -0
- package/dist/daemon/balance-topup-loop.js +2 -1
- package/dist/daemon/balance-topup-loop.js.map +1 -1
- package/dist/daemon/creator.d.ts +5 -5
- package/dist/daemon/creator.js +8 -11
- package/dist/daemon/creator.js.map +1 -1
- package/dist/daemon/daemon.d.ts +84 -29
- package/dist/daemon/daemon.js +181 -63
- package/dist/daemon/daemon.js.map +1 -1
- package/dist/daemon/delivery-watcher.js +34 -4
- package/dist/daemon/delivery-watcher.js.map +1 -1
- package/dist/daemon/jinn-claim-loop-canonical.d.ts +207 -0
- package/dist/daemon/jinn-claim-loop-canonical.js +296 -0
- package/dist/daemon/jinn-claim-loop-canonical.js.map +1 -0
- package/dist/daemon/jinn-claim-loop-mock.d.ts +61 -0
- package/dist/daemon/jinn-claim-loop-mock.js +122 -0
- package/dist/daemon/jinn-claim-loop-mock.js.map +1 -0
- package/dist/daemon/jinn-claim-loop.d.ts +123 -0
- package/dist/daemon/jinn-claim-loop.js +256 -0
- package/dist/daemon/jinn-claim-loop.js.map +1 -0
- package/dist/daemon/reward-claim-loop.d.ts +2 -0
- package/dist/daemon/reward-claim-loop.js +32 -27
- package/dist/daemon/reward-claim-loop.js.map +1 -1
- package/dist/dashboard/assets/index-Bxlk5qpa.js +68 -0
- package/dist/dashboard/assets/index-DQ3u_vP5.css +32 -0
- package/dist/dashboard/index.html +18 -74
- package/dist/earning/agent-wallet-binding.d.ts +133 -0
- package/dist/earning/agent-wallet-binding.js +202 -0
- package/dist/earning/agent-wallet-binding.js.map +1 -0
- package/dist/earning/bootstrap.d.ts +64 -0
- package/dist/earning/bootstrap.js +325 -32
- package/dist/earning/bootstrap.js.map +1 -1
- package/dist/earning/contracts.d.ts +323 -0
- package/dist/earning/contracts.js +276 -0
- package/dist/earning/contracts.js.map +1 -1
- package/dist/earning/evidence-simhash.d.ts +1 -1
- package/dist/earning/funding-plan.d.ts +90 -0
- package/dist/earning/funding-plan.js +203 -0
- package/dist/earning/funding-plan.js.map +1 -0
- package/dist/earning/migrate-agent-id.d.ts +130 -0
- package/dist/earning/migrate-agent-id.js +257 -0
- package/dist/earning/migrate-agent-id.js.map +1 -0
- package/dist/earning/orphan-sweep.d.ts +14 -0
- package/dist/earning/orphan-sweep.js +63 -2
- package/dist/earning/orphan-sweep.js.map +1 -1
- package/dist/earning/reconcile.d.ts +2 -0
- package/dist/earning/reconcile.js +30 -0
- package/dist/earning/reconcile.js.map +1 -1
- package/dist/earning/stolas-claim.d.ts +86 -6
- package/dist/earning/stolas-claim.js +123 -9
- package/dist/earning/stolas-claim.js.map +1 -1
- package/dist/earning/store.d.ts +39 -0
- package/dist/earning/store.js +72 -1
- package/dist/earning/store.js.map +1 -1
- package/dist/earning/testnet-setup-migration.d.ts +32 -0
- package/dist/earning/testnet-setup-migration.js +214 -0
- package/dist/earning/testnet-setup-migration.js.map +1 -0
- package/dist/earning/types.d.ts +53 -9
- package/dist/earning/types.js +51 -2
- package/dist/earning/types.js.map +1 -1
- package/dist/earning/viem-clients.d.ts +20 -0
- package/dist/earning/viem-clients.js +32 -1
- package/dist/earning/viem-clients.js.map +1 -1
- package/dist/erc8004/abis.d.ts +381 -0
- package/dist/erc8004/abis.js +238 -0
- package/dist/erc8004/abis.js.map +1 -0
- package/dist/erc8004/addresses.d.ts +40 -0
- package/dist/erc8004/addresses.js +64 -0
- package/dist/erc8004/addresses.js.map +1 -0
- package/dist/erc8004/identity.d.ts +202 -0
- package/dist/erc8004/identity.js +305 -0
- package/dist/erc8004/identity.js.map +1 -0
- package/dist/erc8004/index.d.ts +13 -0
- package/dist/erc8004/index.js +20 -0
- package/dist/erc8004/index.js.map +1 -0
- package/dist/erc8004/reputation.d.ts +349 -0
- package/dist/erc8004/reputation.js +464 -0
- package/dist/erc8004/reputation.js.map +1 -0
- package/dist/erc8004/subgraph.d.ts +46 -0
- package/dist/erc8004/subgraph.js +37 -0
- package/dist/erc8004/subgraph.js.map +1 -0
- package/dist/erc8004/validation.d.ts +145 -0
- package/dist/erc8004/validation.js +219 -0
- package/dist/erc8004/validation.js.map +1 -0
- package/dist/errors/persisted-bootstrap-error.d.ts +4 -0
- package/dist/errors/persisted-bootstrap-error.js +50 -0
- package/dist/errors/persisted-bootstrap-error.js.map +1 -0
- package/dist/events/emitter.d.ts +12 -0
- package/dist/events/emitter.js +23 -0
- package/dist/events/emitter.js.map +1 -0
- package/dist/events/ring-buffer.d.ts +25 -0
- package/dist/events/ring-buffer.js +46 -0
- package/dist/events/ring-buffer.js.map +1 -0
- package/dist/events/types.d.ts +42 -0
- package/dist/events/types.js +28 -0
- package/dist/events/types.js.map +1 -0
- package/dist/harnesses/capability/index.d.ts +82 -0
- package/dist/harnesses/capability/index.js +12 -0
- package/dist/harnesses/capability/index.js.map +1 -0
- package/dist/harnesses/capability/scoped-rpc.d.ts +12 -0
- package/dist/harnesses/capability/scoped-rpc.js +34 -0
- package/dist/harnesses/capability/scoped-rpc.js.map +1 -0
- package/dist/harnesses/capability/scoped-secrets.d.ts +8 -0
- package/dist/harnesses/capability/scoped-secrets.js +10 -0
- package/dist/harnesses/capability/scoped-secrets.js.map +1 -0
- package/dist/harnesses/capability/scoped-signer.d.ts +46 -0
- package/dist/harnesses/capability/scoped-signer.js +73 -0
- package/dist/harnesses/capability/scoped-signer.js.map +1 -0
- package/dist/harnesses/engine/canonical-json.d.ts +1 -0
- package/dist/harnesses/engine/canonical-json.js +66 -0
- package/dist/harnesses/engine/canonical-json.js.map +1 -0
- package/dist/{restorer → harnesses}/engine/claim.d.ts +7 -7
- package/dist/{restorer → harnesses}/engine/claim.js +14 -7
- package/dist/harnesses/engine/claim.js.map +1 -0
- package/dist/{restorer → harnesses}/engine/delivery.d.ts +3 -1
- package/dist/{restorer → harnesses}/engine/delivery.js +8 -8
- package/dist/harnesses/engine/delivery.js.map +1 -0
- package/dist/harnesses/engine/engine.d.ts +341 -0
- package/dist/harnesses/engine/engine.js +1203 -0
- package/dist/harnesses/engine/engine.js.map +1 -0
- package/dist/harnesses/engine/envelope-assembly.d.ts +72 -0
- package/dist/harnesses/engine/envelope-assembly.js +60 -0
- package/dist/harnesses/engine/envelope-assembly.js.map +1 -0
- package/dist/harnesses/engine/packaging.d.ts +87 -0
- package/dist/{restorer → harnesses}/engine/packaging.js +83 -57
- package/dist/harnesses/engine/packaging.js.map +1 -0
- package/dist/harnesses/engine/persistence.d.ts +172 -0
- package/dist/{restorer → harnesses}/engine/persistence.js +78 -71
- package/dist/harnesses/engine/persistence.js.map +1 -0
- package/dist/harnesses/engine/recovery.d.ts +22 -0
- package/dist/{restorer → harnesses}/engine/recovery.js +5 -5
- package/dist/harnesses/engine/recovery.js.map +1 -0
- package/dist/harnesses/engine/registry.d.ts +53 -0
- package/dist/harnesses/engine/registry.js +62 -0
- package/dist/harnesses/engine/registry.js.map +1 -0
- package/dist/{restorer → harnesses}/engine/signing.d.ts +1 -1
- package/dist/{restorer → harnesses}/engine/signing.js +1 -1
- package/dist/harnesses/engine/signing.js.map +1 -0
- package/dist/{restorer → harnesses}/engine/state.d.ts +8 -8
- package/dist/{restorer → harnesses}/engine/state.js +23 -23
- package/dist/harnesses/engine/state.js.map +1 -0
- package/dist/harnesses/engine/validate-manifest.d.ts +23 -0
- package/dist/harnesses/engine/validate-manifest.js +49 -0
- package/dist/harnesses/engine/validate-manifest.js.map +1 -0
- package/dist/harnesses/engine/verification-stub.d.ts +18 -0
- package/dist/harnesses/engine/verification-stub.js +18 -0
- package/dist/harnesses/engine/verification-stub.js.map +1 -0
- package/dist/harnesses/external-impls/index.d.ts +3 -0
- package/dist/harnesses/external-impls/index.js +2 -0
- package/dist/harnesses/external-impls/index.js.map +1 -0
- package/dist/harnesses/external-impls/loader.d.ts +50 -0
- package/dist/harnesses/external-impls/loader.js +139 -0
- package/dist/harnesses/external-impls/loader.js.map +1 -0
- package/dist/harnesses/external-impls/package-hash.d.ts +26 -0
- package/dist/harnesses/external-impls/package-hash.js +102 -0
- package/dist/harnesses/external-impls/package-hash.js.map +1 -0
- package/dist/harnesses/external-impls/types.d.ts +42 -0
- package/dist/harnesses/external-impls/types.js +10 -0
- package/dist/harnesses/external-impls/types.js.map +1 -0
- package/dist/harnesses/impls/claude-code-learner/adapters/claude-code.d.ts +38 -0
- package/dist/harnesses/impls/claude-code-learner/adapters/claude-code.js +159 -0
- package/dist/harnesses/impls/claude-code-learner/adapters/claude-code.js.map +1 -0
- package/dist/harnesses/impls/claude-code-learner/harness.d.ts +22 -0
- package/dist/harnesses/impls/claude-code-learner/harness.js +44 -0
- package/dist/harnesses/impls/claude-code-learner/harness.js.map +1 -0
- package/dist/harnesses/impls/claude-code-learner/harvest.d.ts +19 -0
- package/dist/harnesses/impls/claude-code-learner/harvest.js +146 -0
- package/dist/harnesses/impls/claude-code-learner/harvest.js.map +1 -0
- package/dist/harnesses/impls/claude-code-learner/index.d.ts +14 -0
- package/dist/harnesses/impls/claude-code-learner/index.js +13 -0
- package/dist/harnesses/impls/claude-code-learner/index.js.map +1 -0
- package/dist/harnesses/impls/claude-code-learner/plugin-path.d.ts +14 -0
- package/dist/harnesses/impls/claude-code-learner/plugin-path.js +30 -0
- package/dist/harnesses/impls/claude-code-learner/plugin-path.js.map +1 -0
- package/dist/harnesses/impls/claude-code-learner/test-utils/fake-plugin-outputs.d.ts +19 -0
- package/dist/harnesses/impls/claude-code-learner/test-utils/fake-plugin-outputs.js +111 -0
- package/dist/harnesses/impls/claude-code-learner/test-utils/fake-plugin-outputs.js.map +1 -0
- package/dist/harnesses/impls/claude-code-learner/test-utils/noop-adapter.d.ts +22 -0
- package/dist/harnesses/impls/claude-code-learner/test-utils/noop-adapter.js +35 -0
- package/dist/harnesses/impls/claude-code-learner/test-utils/noop-adapter.js.map +1 -0
- package/dist/harnesses/impls/claude-code-learner/types.d.ts +102 -0
- package/dist/harnesses/impls/claude-code-learner/types.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/api-wallet.d.ts +1 -1
- package/dist/harnesses/impls/claude-mcp-hyperliquid/api-wallet.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/index.d.ts +16 -14
- package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/index.js +62 -61
- package/dist/harnesses/impls/claude-mcp-hyperliquid/index.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-hyperliquid/safety-rails.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/session-orchestrator.d.ts +7 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/session-orchestrator.js +38 -0
- package/dist/harnesses/impls/claude-mcp-hyperliquid/session-orchestrator.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction/index.d.ts +11 -11
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction/index.js +26 -16
- package/dist/harnesses/impls/claude-mcp-prediction/index.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction/mcp-tools.js +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction/mcp-tools.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction/prompt.d.ts +2 -2
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction/prompt.js +5 -5
- package/dist/harnesses/impls/claude-mcp-prediction/prompt.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction/session-orchestrator.d.ts +9 -2
- package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.js +21 -0
- package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction/types.d.ts +3 -3
- package/dist/harnesses/impls/claude-mcp-prediction/types.js +6 -0
- package/dist/harnesses/impls/claude-mcp-prediction/types.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-prediction-apy/index.d.ts +36 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction-apy/index.js +22 -15
- package/dist/harnesses/impls/claude-mcp-prediction-apy/index.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction-apy/mcp-tools.js +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/mcp-tools.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-prediction-apy/prompt.d.ts +7 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction-apy/prompt.js +5 -5
- package/dist/harnesses/impls/claude-mcp-prediction-apy/prompt.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction-apy/session-orchestrator.d.ts +10 -0
- package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.js +19 -0
- package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/claude-mcp-prediction-apy/types.d.ts +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/types.js +6 -0
- package/dist/harnesses/impls/claude-mcp-prediction-apy/types.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-shared/single-session-orchestrator.d.ts +84 -0
- package/dist/{restorer/impls/claude-mcp-prediction/session-orchestrator.js → harnesses/impls/claude-mcp-shared/single-session-orchestrator.js} +85 -16
- package/dist/harnesses/impls/claude-mcp-shared/single-session-orchestrator.js.map +1 -0
- package/dist/harnesses/impls/evaluation-context.d.ts +23 -0
- package/dist/harnesses/impls/evaluation-context.js +25 -0
- package/dist/harnesses/impls/evaluation-context.js.map +1 -0
- package/dist/harnesses/impls/index.d.ts +74 -0
- package/dist/{restorer → harnesses}/impls/index.js +32 -7
- package/dist/harnesses/impls/index.js.map +1 -0
- package/dist/harnesses/impls/legacy-claude/index.d.ts +66 -0
- package/dist/{restorer → harnesses}/impls/legacy-claude/index.js +47 -19
- package/dist/harnesses/impls/legacy-claude/index.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/canonical-metrics.d.ts +2 -2
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/canonical-metrics.js +2 -2
- package/dist/harnesses/impls/portfolio-v0-evaluator/canonical-metrics.js.map +1 -0
- package/dist/harnesses/impls/portfolio-v0-evaluator/checks/availability.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/consistency.d.ts +1 -1
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/consistency.js +1 -1
- package/dist/harnesses/impls/portfolio-v0-evaluator/checks/consistency.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/eligibility.d.ts +2 -2
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/eligibility.js +2 -2
- package/dist/harnesses/impls/portfolio-v0-evaluator/checks/eligibility.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/integrity.d.ts +2 -2
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/integrity.js +2 -2
- package/dist/harnesses/impls/portfolio-v0-evaluator/checks/integrity.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/spec.d.ts +2 -2
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/spec.js +2 -2
- package/dist/harnesses/impls/portfolio-v0-evaluator/checks/spec.js.map +1 -0
- package/dist/harnesses/impls/portfolio-v0-evaluator/index.d.ts +44 -0
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/index.js +217 -88
- package/dist/harnesses/impls/portfolio-v0-evaluator/index.js.map +1 -0
- package/dist/harnesses/impls/portfolio-v0-evaluator/score.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/types.d.ts +1 -1
- package/dist/harnesses/impls/portfolio-v0-evaluator/types.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/prediction-apy-v0-baseline/index.d.ts +10 -8
- package/dist/{restorer → harnesses}/impls/prediction-apy-v0-baseline/index.js +15 -8
- package/dist/harnesses/impls/prediction-apy-v0-baseline/index.js.map +1 -0
- package/dist/harnesses/impls/prediction-apy-v0-baseline/strategy.js.map +1 -0
- package/dist/harnesses/impls/prediction-apy-v0-baseline/types.js.map +1 -0
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/canonical-metrics.d.ts +6 -0
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/canonical-metrics.js +11 -0
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/canonical-metrics.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/prediction-apy-v0-evaluator/index.d.ts +9 -9
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js +346 -0
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js.map +1 -0
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/parse-submission.d.ts +16 -0
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/parse-submission.js +22 -0
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/parse-submission.js.map +1 -0
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/score.js.map +1 -0
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/types.js.map +1 -0
- package/dist/harnesses/impls/prediction-v0-baseline/index.d.ts +33 -0
- package/dist/{restorer → harnesses}/impls/prediction-v0-baseline/index.js +25 -16
- package/dist/harnesses/impls/prediction-v0-baseline/index.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/prediction-v0-baseline/strategy.d.ts +2 -2
- package/dist/{restorer → harnesses}/impls/prediction-v0-baseline/strategy.js +2 -2
- package/dist/harnesses/impls/prediction-v0-baseline/strategy.js.map +1 -0
- package/dist/harnesses/impls/prediction-v0-baseline/types.d.ts +7 -0
- package/dist/harnesses/impls/prediction-v0-baseline/types.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/canonical-metrics.d.ts +2 -2
- package/dist/harnesses/impls/prediction-v0-evaluator/canonical-metrics.js.map +1 -0
- package/dist/harnesses/impls/prediction-v0-evaluator/checks/availability.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/checks/eligibility.d.ts +1 -1
- package/dist/harnesses/impls/prediction-v0-evaluator/checks/eligibility.js.map +1 -0
- package/dist/harnesses/impls/prediction-v0-evaluator/checks/integrity.d.ts +15 -0
- package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/checks/integrity.js +12 -12
- package/dist/harnesses/impls/prediction-v0-evaluator/checks/integrity.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/checks/spec.d.ts +2 -2
- package/dist/harnesses/impls/prediction-v0-evaluator/checks/spec.js.map +1 -0
- package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/index.d.ts +10 -10
- package/dist/harnesses/impls/prediction-v0-evaluator/index.js +342 -0
- package/dist/harnesses/impls/prediction-v0-evaluator/index.js.map +1 -0
- package/dist/harnesses/impls/prediction-v0-evaluator/score.js.map +1 -0
- package/dist/harnesses/impls/prediction-v0-evaluator/types.js +2 -0
- package/dist/harnesses/impls/prediction-v0-evaluator/types.js.map +1 -0
- package/dist/harnesses/manifest/index.d.ts +3 -0
- package/dist/harnesses/manifest/index.js +3 -0
- package/dist/harnesses/manifest/index.js.map +1 -0
- package/dist/harnesses/manifest/load.d.ts +7 -0
- package/dist/harnesses/manifest/load.js +49 -0
- package/dist/harnesses/manifest/load.js.map +1 -0
- package/dist/harnesses/manifest/types.d.ts +75 -0
- package/dist/harnesses/manifest/types.js +8 -0
- package/dist/harnesses/manifest/types.js.map +1 -0
- package/dist/harnesses/manifest/verify.d.ts +15 -0
- package/dist/harnesses/manifest/verify.js +53 -0
- package/dist/harnesses/manifest/verify.js.map +1 -0
- package/dist/harnesses/types.d.ts +263 -0
- package/dist/{restorer → harnesses}/types.js +3 -3
- package/dist/harnesses/types.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/main.d.ts +5 -2
- package/dist/main.js +793 -96
- package/dist/main.js.map +1 -1
- package/dist/mcp/acquire-artifact.d.ts +39 -0
- package/dist/mcp/acquire-artifact.js +163 -0
- package/dist/mcp/acquire-artifact.js.map +1 -0
- package/dist/mcp/operator-server.d.ts +21 -4
- package/dist/mcp/operator-server.js +505 -30
- package/dist/mcp/operator-server.js.map +1 -1
- package/dist/mcp/search-artifacts.d.ts +31 -0
- package/dist/mcp/search-artifacts.js +40 -0
- package/dist/mcp/search-artifacts.js.map +1 -0
- package/dist/mcp/server.d.ts +4 -4
- package/dist/mcp/server.js +110 -64
- package/dist/mcp/server.js.map +1 -1
- package/dist/observability/emit-event.d.ts +2 -2
- package/dist/observability/emit-event.js +2 -2
- package/dist/observability/emit-event.js.map +1 -1
- package/dist/operator-errors.js +4 -5
- package/dist/operator-errors.js.map +1 -1
- package/dist/plugins/digest.d.ts +1 -0
- package/dist/plugins/digest.js +28 -0
- package/dist/plugins/digest.js.map +1 -0
- package/dist/plugins/index.d.ts +6 -0
- package/dist/plugins/index.js +6 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/manifest.d.ts +7 -0
- package/dist/plugins/manifest.js +22 -0
- package/dist/plugins/manifest.js.map +1 -0
- package/dist/plugins/registry.d.ts +9 -0
- package/dist/plugins/registry.js +24 -0
- package/dist/plugins/registry.js.map +1 -0
- package/dist/plugins/resolvers.d.ts +2 -0
- package/dist/plugins/resolvers.js +87 -0
- package/dist/plugins/resolvers.js.map +1 -0
- package/dist/plugins/types.d.ts +39 -0
- package/dist/plugins/types.js +2 -0
- package/dist/plugins/types.js.map +1 -0
- package/dist/plugins/validator.d.ts +3 -0
- package/dist/plugins/validator.js +44 -0
- package/dist/plugins/validator.js.map +1 -0
- package/dist/preflight/claude-auth.d.ts +11 -11
- package/dist/preflight/claude-auth.js +18 -32
- package/dist/preflight/claude-auth.js.map +1 -1
- package/dist/runner/claude.d.ts +3 -3
- package/dist/runner/claude.js +62 -26
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/runner.d.ts +29 -2
- package/dist/runner/simple.d.ts +2 -2
- package/dist/runner/simple.js +2 -2
- package/dist/runner/simple.js.map +1 -1
- package/dist/scripts/fix-node-pty.mjs +62 -0
- package/dist/setup-mode.d.ts +34 -0
- package/dist/setup-mode.js +49 -0
- package/dist/setup-mode.js.map +1 -0
- package/dist/solver-nets/registry.d.ts +33 -0
- package/dist/solver-nets/registry.js +66 -0
- package/dist/solver-nets/registry.js.map +1 -0
- package/dist/solver-types/constants.js.map +1 -0
- package/dist/solver-types/index.d.ts +38 -0
- package/dist/solver-types/index.js +57 -0
- package/dist/solver-types/index.js.map +1 -0
- package/dist/solver-types/learner-loop-test.d.ts +2 -0
- package/dist/solver-types/learner-loop-test.js +39 -0
- package/dist/solver-types/learner-loop-test.js.map +1 -0
- package/dist/solver-types/portfolio-v0.d.ts +2 -0
- package/dist/solver-types/portfolio-v0.js +13 -0
- package/dist/solver-types/portfolio-v0.js.map +1 -0
- package/dist/solver-types/prediction-apy-v0-auto.d.ts +21 -0
- package/dist/solver-types/prediction-apy-v0-auto.js +80 -0
- package/dist/solver-types/prediction-apy-v0-auto.js.map +1 -0
- package/dist/{intents → solver-types}/prediction-apy-v0-template.d.ts +2 -2
- package/dist/{intents → solver-types}/prediction-apy-v0-template.js +2 -2
- package/dist/solver-types/prediction-apy-v0-template.js.map +1 -0
- package/dist/solver-types/prediction-apy-v0.d.ts +3 -0
- package/dist/solver-types/prediction-apy-v0.js +25 -0
- package/dist/solver-types/prediction-apy-v0.js.map +1 -0
- package/dist/{intents → solver-types}/prediction-v0-auto.d.ts +17 -7
- package/dist/{intents → solver-types}/prediction-v0-auto.js +41 -8
- package/dist/solver-types/prediction-v0-auto.js.map +1 -0
- package/dist/{intents → solver-types}/prediction-v0-template.d.ts +9 -9
- package/dist/{intents → solver-types}/prediction-v0-template.js +10 -10
- package/dist/solver-types/prediction-v0-template.js.map +1 -0
- package/dist/solver-types/prediction-v0.d.ts +3 -0
- package/dist/{intents/kinds → solver-types}/prediction-v0.js +11 -6
- package/dist/solver-types/prediction-v0.js.map +1 -0
- package/dist/solver-types/solver-type.d.ts +55 -0
- package/dist/solver-types/solver-type.js +6 -0
- package/dist/solver-types/solver-type.js.map +1 -0
- package/dist/store/store.d.ts +97 -21
- package/dist/store/store.js +228 -45
- package/dist/store/store.js.map +1 -1
- package/dist/tasks/posting-service.d.ts +22 -0
- package/dist/tasks/posting-service.js +143 -0
- package/dist/tasks/posting-service.js.map +1 -0
- package/dist/tasks/signing.d.ts +4 -0
- package/dist/tasks/signing.js +18 -0
- package/dist/tasks/signing.js.map +1 -0
- package/dist/tasks/sources.d.ts +46 -0
- package/dist/tasks/sources.js +42 -0
- package/dist/tasks/sources.js.map +1 -0
- package/dist/templates/harnesses/alternative-harness/README.md.tmpl +44 -0
- package/dist/templates/harnesses/alternative-harness/gitignore.tmpl +3 -0
- package/dist/templates/harnesses/alternative-harness/jinn.manifest.json.tmpl +22 -0
- package/dist/templates/harnesses/alternative-harness/package.json.tmpl +26 -0
- package/dist/templates/harnesses/alternative-harness/src/coordinator.ts.tmpl +50 -0
- package/dist/templates/harnesses/alternative-harness/src/harness.ts.tmpl +31 -0
- package/dist/templates/harnesses/alternative-harness/src/index.ts.tmpl +44 -0
- package/dist/templates/harnesses/alternative-harness/src/mock-harness.ts.tmpl +41 -0
- package/dist/templates/harnesses/alternative-harness/src/phases/debrief.ts.tmpl +28 -0
- package/dist/templates/harnesses/alternative-harness/src/phases/execute.ts.tmpl +33 -0
- package/dist/templates/harnesses/alternative-harness/src/phases/improve.ts.tmpl +31 -0
- package/dist/templates/harnesses/alternative-harness/src/phases/memory.ts.tmpl +31 -0
- package/dist/templates/harnesses/alternative-harness/src/phases/orient.ts.tmpl +21 -0
- package/dist/templates/harnesses/alternative-harness/src/phases/plan.ts.tmpl +25 -0
- package/dist/templates/harnesses/alternative-harness/src/phases/strategize.ts.tmpl +29 -0
- package/dist/templates/harnesses/alternative-harness/test/coordinator.test.ts.tmpl +53 -0
- package/dist/templates/harnesses/alternative-harness/test/unit.test.ts.tmpl +55 -0
- package/dist/templates/harnesses/alternative-harness/tsconfig.json.tmpl +16 -0
- package/dist/templates/harnesses/evaluator/README.md.tmpl +36 -0
- package/dist/templates/harnesses/evaluator/gitignore.tmpl +3 -0
- package/dist/templates/harnesses/evaluator/jinn.manifest.json.tmpl +22 -0
- package/dist/templates/harnesses/evaluator/package.json.tmpl +26 -0
- package/dist/templates/harnesses/evaluator/src/index.ts.tmpl +35 -0
- package/dist/templates/harnesses/evaluator/test/unit.test.ts.tmpl +49 -0
- package/dist/templates/harnesses/evaluator/tsconfig.json.tmpl +16 -0
- package/dist/templates/harnesses/forecaster/README.md.tmpl +25 -0
- package/dist/templates/harnesses/forecaster/gitignore.tmpl +5 -0
- package/dist/templates/harnesses/forecaster/jinn.manifest.json.tmpl +22 -0
- package/dist/templates/harnesses/forecaster/package.json.tmpl +26 -0
- package/dist/templates/harnesses/forecaster/src/index.ts.tmpl +33 -0
- package/dist/templates/harnesses/forecaster/test/unit.test.ts.tmpl +42 -0
- package/dist/templates/harnesses/forecaster/tsconfig.json.tmpl +16 -0
- package/dist/trajectory/collector.d.ts +49 -0
- package/dist/trajectory/collector.js +86 -0
- package/dist/trajectory/collector.js.map +1 -0
- package/dist/trajectory/emit.d.ts +27 -0
- package/dist/trajectory/emit.js +40 -0
- package/dist/trajectory/emit.js.map +1 -0
- package/dist/trajectory/hash-chain.d.ts +18 -0
- package/dist/trajectory/hash-chain.js +23 -0
- package/dist/trajectory/hash-chain.js.map +1 -0
- package/dist/trajectory/index.d.ts +22 -0
- package/dist/trajectory/index.js +23 -0
- package/dist/trajectory/index.js.map +1 -0
- package/dist/trajectory/schema.d.ts +14 -14
- package/dist/trajectory/secret-scrub.d.ts +32 -0
- package/dist/trajectory/secret-scrub.js +51 -0
- package/dist/trajectory/secret-scrub.js.map +1 -0
- package/dist/trajectory/span-profile.d.ts +27 -0
- package/dist/trajectory/span-profile.js +51 -0
- package/dist/trajectory/span-profile.js.map +1 -0
- package/dist/trajectory/wrappers/http.d.ts +37 -0
- package/dist/trajectory/wrappers/http.js +85 -0
- package/dist/trajectory/wrappers/http.js.map +1 -0
- package/dist/trajectory/wrappers/mcp.d.ts +17 -0
- package/dist/trajectory/wrappers/mcp.js +58 -0
- package/dist/trajectory/wrappers/mcp.js.map +1 -0
- package/dist/trajectory/wrappers/subprocess.d.ts +32 -0
- package/dist/trajectory/wrappers/subprocess.js +70 -0
- package/dist/trajectory/wrappers/subprocess.js.map +1 -0
- package/dist/tx-retry.js +23 -9
- package/dist/tx-retry.js.map +1 -1
- package/dist/types/envelope.d.ts +1619 -0
- package/dist/types/envelope.js +121 -0
- package/dist/types/envelope.js.map +1 -0
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.js +4 -4
- package/dist/types/index.js.map +1 -1
- package/dist/types/payloads/index.d.ts +11 -0
- package/dist/types/payloads/index.js +46 -0
- package/dist/types/payloads/index.js.map +1 -0
- package/dist/types/payloads/portfolio-v0.d.ts +481 -0
- package/dist/types/payloads/portfolio-v0.js +94 -0
- package/dist/types/payloads/portfolio-v0.js.map +1 -0
- package/dist/types/payloads/prediction-apy-v0.d.ts +231 -0
- package/dist/types/payloads/prediction-apy-v0.js +63 -0
- package/dist/types/payloads/prediction-apy-v0.js.map +1 -0
- package/dist/types/payloads/prediction-v0.d.ts +262 -0
- package/dist/types/payloads/prediction-v0.js +73 -0
- package/dist/types/payloads/prediction-v0.js.map +1 -0
- package/dist/types/portfolio.d.ts +31 -698
- package/dist/types/portfolio.js +20 -110
- package/dist/types/portfolio.js.map +1 -1
- package/dist/types/prediction-apy.d.ts +26 -366
- package/dist/types/prediction-apy.js +12 -68
- package/dist/types/prediction-apy.js.map +1 -1
- package/dist/types/prediction.d.ts +40 -416
- package/dist/types/prediction.js +9 -83
- package/dist/types/prediction.js.map +1 -1
- package/dist/types/task-document.d.ts +498 -0
- package/dist/types/task-document.js +69 -0
- package/dist/types/task-document.js.map +1 -0
- package/dist/types/task.d.ts +455 -0
- package/dist/types/task.js +58 -0
- package/dist/types/task.js.map +1 -0
- package/dist/types/window.d.ts +12 -0
- package/dist/types/window.js +6 -0
- package/dist/types/window.js.map +1 -0
- package/dist/util/path-safety.d.ts +21 -0
- package/dist/util/path-safety.js +28 -0
- package/dist/util/path-safety.js.map +1 -0
- package/dist/util/redact-rpc-urls.d.ts +5 -0
- package/dist/util/redact-rpc-urls.js +9 -0
- package/dist/util/redact-rpc-urls.js.map +1 -0
- package/dist/venues/hyperliquid/account-value.d.ts +1 -1
- package/dist/venues/hyperliquid/account-value.js +1 -1
- package/dist/x402/acquire.d.ts +14 -3
- package/dist/x402/acquire.js +28 -11
- package/dist/x402/acquire.js.map +1 -1
- package/dist/x402/handler.d.ts +15 -3
- package/dist/x402/handler.js +67 -24
- package/dist/x402/handler.js.map +1 -1
- package/package.json +38 -13
- package/plugins/claude-code-learner/.claude-plugin/plugin.json +9 -0
- package/plugins/claude-code-learner/AGENTS.md +30 -0
- package/plugins/claude-code-learner/CLAUDE.md +31 -0
- package/plugins/claude-code-learner/README.md +58 -0
- package/plugins/claude-code-learner/agents/analyst.md +69 -0
- package/plugins/claude-code-learner/agents/consolidator.md +95 -0
- package/plugins/claude-code-learner/agents/explorer.md +54 -0
- package/plugins/claude-code-learner/agents/planner.md +88 -0
- package/plugins/claude-code-learner/agents/promoter.md +114 -0
- package/plugins/claude-code-learner/agents/step-worker.md +48 -0
- package/plugins/claude-code-learner/agents/strategist.md +86 -0
- package/plugins/claude-code-learner/hooks/hooks.json +16 -0
- package/plugins/claude-code-learner/hooks/session-start +38 -0
- package/plugins/claude-code-learner/skills/coordinator/SKILL.md +111 -0
- package/plugins/claude-code-learner/skills/debrief/SKILL.md +63 -0
- package/plugins/claude-code-learner/skills/execute/SKILL.md +87 -0
- package/plugins/claude-code-learner/skills/improve/SKILL.md +53 -0
- package/plugins/claude-code-learner/skills/memory-consolidation/SKILL.md +49 -0
- package/plugins/claude-code-learner/skills/orient/SKILL.md +71 -0
- package/plugins/claude-code-learner/skills/plan/SKILL.md +50 -0
- package/plugins/claude-code-learner/skills/strategize/SKILL.md +53 -0
- package/plugins/jinn-prediction-plugin/.claude-plugin/plugin.json +89 -0
- package/plugins/jinn-prediction-plugin/mcp/polymarket-server.mjs +2 -0
- package/plugins/jinn-prediction-plugin/schemas/prediction-v0-solution.schema.json +12 -0
- package/plugins/jinn-prediction-plugin/schemas/prediction-v0-task.schema.json +25 -0
- package/plugins/jinn-prediction-plugin/schemas/prediction-v0-verdict.schema.json +11 -0
- package/plugins/jinn-prediction-plugin/skills/base-rate-forecasting/SKILL.md +3 -0
- package/plugins/jinn-prediction-plugin/skills/calibration/SKILL.md +3 -0
- package/skills/jinn-operator/SKILL.md +120 -101
- package/templates/harnesses/alternative-harness/README.md.tmpl +44 -0
- package/templates/harnesses/alternative-harness/gitignore.tmpl +3 -0
- package/templates/harnesses/alternative-harness/jinn.manifest.json.tmpl +22 -0
- package/templates/harnesses/alternative-harness/package.json.tmpl +26 -0
- package/templates/harnesses/alternative-harness/src/coordinator.ts.tmpl +50 -0
- package/templates/harnesses/alternative-harness/src/harness.ts.tmpl +31 -0
- package/templates/harnesses/alternative-harness/src/index.ts.tmpl +44 -0
- package/templates/harnesses/alternative-harness/src/mock-harness.ts.tmpl +41 -0
- package/templates/harnesses/alternative-harness/src/phases/debrief.ts.tmpl +28 -0
- package/templates/harnesses/alternative-harness/src/phases/execute.ts.tmpl +33 -0
- package/templates/harnesses/alternative-harness/src/phases/improve.ts.tmpl +31 -0
- package/templates/harnesses/alternative-harness/src/phases/memory.ts.tmpl +31 -0
- package/templates/harnesses/alternative-harness/src/phases/orient.ts.tmpl +21 -0
- package/templates/harnesses/alternative-harness/src/phases/plan.ts.tmpl +25 -0
- package/templates/harnesses/alternative-harness/src/phases/strategize.ts.tmpl +29 -0
- package/templates/harnesses/alternative-harness/test/coordinator.test.ts.tmpl +53 -0
- package/templates/harnesses/alternative-harness/test/unit.test.ts.tmpl +55 -0
- package/templates/harnesses/alternative-harness/tsconfig.json.tmpl +16 -0
- package/templates/harnesses/evaluator/README.md.tmpl +36 -0
- package/templates/harnesses/evaluator/gitignore.tmpl +3 -0
- package/templates/harnesses/evaluator/jinn.manifest.json.tmpl +22 -0
- package/templates/harnesses/evaluator/package.json.tmpl +26 -0
- package/templates/harnesses/evaluator/src/index.ts.tmpl +35 -0
- package/templates/harnesses/evaluator/test/unit.test.ts.tmpl +49 -0
- package/templates/harnesses/evaluator/tsconfig.json.tmpl +16 -0
- package/templates/harnesses/forecaster/README.md.tmpl +25 -0
- package/templates/harnesses/forecaster/gitignore.tmpl +5 -0
- package/templates/harnesses/forecaster/jinn.manifest.json.tmpl +22 -0
- package/templates/harnesses/forecaster/package.json.tmpl +26 -0
- package/templates/harnesses/forecaster/src/index.ts.tmpl +33 -0
- package/templates/harnesses/forecaster/test/unit.test.ts.tmpl +42 -0
- package/templates/harnesses/forecaster/tsconfig.json.tmpl +16 -0
- package/dist/bin/jinn-mcp.d.ts +0 -2
- package/dist/bin/jinn-mcp.js +0 -10
- package/dist/bin/jinn-mcp.js.map +0 -1
- package/dist/cli/commands/intents.d.ts +0 -17
- package/dist/cli/commands/intents.js +0 -489
- package/dist/cli/commands/intents.js.map +0 -1
- package/dist/cli/commands/plugin-install.js.map +0 -1
- package/dist/cli/commands/submit-intent.js +0 -245
- package/dist/cli/commands/submit-intent.js.map +0 -1
- package/dist/cli/intent-registry-access.d.ts +0 -62
- package/dist/cli/intent-registry-access.js +0 -165
- package/dist/cli/intent-registry-access.js.map +0 -1
- package/dist/discovery/registry.d.ts +0 -97
- package/dist/discovery/registry.js +0 -177
- package/dist/discovery/registry.js.map +0 -1
- package/dist/discovery/subgraph.d.ts +0 -37
- package/dist/discovery/subgraph.js +0 -87
- package/dist/discovery/subgraph.js.map +0 -1
- package/dist/intents/kinds/constants.js.map +0 -1
- package/dist/intents/kinds/index.d.ts +0 -28
- package/dist/intents/kinds/index.js +0 -50
- package/dist/intents/kinds/index.js.map +0 -1
- package/dist/intents/kinds/portfolio-v0.d.ts +0 -2
- package/dist/intents/kinds/portfolio-v0.js +0 -13
- package/dist/intents/kinds/portfolio-v0.js.map +0 -1
- package/dist/intents/kinds/prediction-apy-v0.d.ts +0 -3
- package/dist/intents/kinds/prediction-apy-v0.js +0 -21
- package/dist/intents/kinds/prediction-apy-v0.js.map +0 -1
- package/dist/intents/kinds/prediction-v0.d.ts +0 -3
- package/dist/intents/kinds/prediction-v0.js.map +0 -1
- package/dist/intents/kinds/spec-kind.d.ts +0 -38
- package/dist/intents/kinds/spec-kind.js +0 -6
- package/dist/intents/kinds/spec-kind.js.map +0 -1
- package/dist/intents/posting-service.d.ts +0 -26
- package/dist/intents/posting-service.js +0 -218
- package/dist/intents/posting-service.js.map +0 -1
- package/dist/intents/prediction-apy-v0-auto.d.ts +0 -11
- package/dist/intents/prediction-apy-v0-auto.js +0 -46
- package/dist/intents/prediction-apy-v0-auto.js.map +0 -1
- package/dist/intents/prediction-apy-v0-template.js.map +0 -1
- package/dist/intents/prediction-v0-auto.js.map +0 -1
- package/dist/intents/prediction-v0-template.js.map +0 -1
- package/dist/intents/sources.d.ts +0 -39
- package/dist/intents/sources.js +0 -42
- package/dist/intents/sources.js.map +0 -1
- package/dist/restorer/engine/canonical-json.d.ts +0 -18
- package/dist/restorer/engine/canonical-json.js +0 -59
- package/dist/restorer/engine/canonical-json.js.map +0 -1
- package/dist/restorer/engine/claim.js.map +0 -1
- package/dist/restorer/engine/delivery.js.map +0 -1
- package/dist/restorer/engine/engine.d.ts +0 -213
- package/dist/restorer/engine/engine.js +0 -769
- package/dist/restorer/engine/engine.js.map +0 -1
- package/dist/restorer/engine/manifest-assembly.d.ts +0 -67
- package/dist/restorer/engine/manifest-assembly.js +0 -79
- package/dist/restorer/engine/manifest-assembly.js.map +0 -1
- package/dist/restorer/engine/packaging.d.ts +0 -87
- package/dist/restorer/engine/packaging.js.map +0 -1
- package/dist/restorer/engine/persistence.d.ts +0 -170
- package/dist/restorer/engine/persistence.js.map +0 -1
- package/dist/restorer/engine/recovery.d.ts +0 -22
- package/dist/restorer/engine/recovery.js.map +0 -1
- package/dist/restorer/engine/registry.d.ts +0 -62
- package/dist/restorer/engine/registry.js +0 -73
- package/dist/restorer/engine/registry.js.map +0 -1
- package/dist/restorer/engine/signing.js.map +0 -1
- package/dist/restorer/engine/state.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-hyperliquid/api-wallet.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-hyperliquid/index.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-hyperliquid/mcp-tools.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-hyperliquid/safety-rails.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-hyperliquid/session-orchestrator.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction/index.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction/mcp-tools.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction/prompt.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction/session-orchestrator.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction/types.js +0 -6
- package/dist/restorer/impls/claude-mcp-prediction/types.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction-apy/index.d.ts +0 -34
- package/dist/restorer/impls/claude-mcp-prediction-apy/index.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction-apy/mcp-tools.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction-apy/prompt.d.ts +0 -7
- package/dist/restorer/impls/claude-mcp-prediction-apy/prompt.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction-apy/session-orchestrator.js +0 -128
- package/dist/restorer/impls/claude-mcp-prediction-apy/session-orchestrator.js.map +0 -1
- package/dist/restorer/impls/claude-mcp-prediction-apy/types.js +0 -6
- package/dist/restorer/impls/claude-mcp-prediction-apy/types.js.map +0 -1
- package/dist/restorer/impls/evaluation-context.d.ts +0 -16
- package/dist/restorer/impls/evaluation-context.js +0 -18
- package/dist/restorer/impls/evaluation-context.js.map +0 -1
- package/dist/restorer/impls/index.d.ts +0 -46
- package/dist/restorer/impls/index.js.map +0 -1
- package/dist/restorer/impls/legacy-claude/index.d.ts +0 -52
- package/dist/restorer/impls/legacy-claude/index.js.map +0 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/canonical-metrics.js.map +0 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/checks/availability.js.map +0 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/checks/consistency.js.map +0 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/checks/eligibility.js.map +0 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/checks/integrity.js.map +0 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/checks/spec.js.map +0 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/index.d.ts +0 -44
- package/dist/restorer/impls/portfolio-v0-evaluator/index.js.map +0 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/score.js.map +0 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/types.js.map +0 -1
- package/dist/restorer/impls/prediction-apy-v0-baseline/index.js.map +0 -1
- package/dist/restorer/impls/prediction-apy-v0-baseline/strategy.js.map +0 -1
- package/dist/restorer/impls/prediction-apy-v0-baseline/types.js.map +0 -1
- package/dist/restorer/impls/prediction-apy-v0-evaluator/canonical-metrics.d.ts +0 -6
- package/dist/restorer/impls/prediction-apy-v0-evaluator/canonical-metrics.js +0 -11
- package/dist/restorer/impls/prediction-apy-v0-evaluator/canonical-metrics.js.map +0 -1
- package/dist/restorer/impls/prediction-apy-v0-evaluator/index.js +0 -208
- package/dist/restorer/impls/prediction-apy-v0-evaluator/index.js.map +0 -1
- package/dist/restorer/impls/prediction-apy-v0-evaluator/parse-submission.d.ts +0 -7
- package/dist/restorer/impls/prediction-apy-v0-evaluator/parse-submission.js +0 -29
- package/dist/restorer/impls/prediction-apy-v0-evaluator/parse-submission.js.map +0 -1
- package/dist/restorer/impls/prediction-apy-v0-evaluator/score.js.map +0 -1
- package/dist/restorer/impls/prediction-apy-v0-evaluator/types.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-baseline/index.d.ts +0 -31
- package/dist/restorer/impls/prediction-v0-baseline/index.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-baseline/strategy.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-baseline/types.d.ts +0 -7
- package/dist/restorer/impls/prediction-v0-baseline/types.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-evaluator/canonical-metrics.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-evaluator/checks/availability.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-evaluator/checks/eligibility.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-evaluator/checks/integrity.d.ts +0 -13
- package/dist/restorer/impls/prediction-v0-evaluator/checks/integrity.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-evaluator/checks/spec.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-evaluator/index.js +0 -234
- package/dist/restorer/impls/prediction-v0-evaluator/index.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-evaluator/score.js.map +0 -1
- package/dist/restorer/impls/prediction-v0-evaluator/types.js.map +0 -1
- package/dist/restorer/types.d.ts +0 -194
- package/dist/restorer/types.js.map +0 -1
- package/dist/types/desired-state.d.ts +0 -94
- package/dist/types/desired-state.js +0 -36
- package/dist/types/desired-state.js.map +0 -1
- /package/dist/cli/commands/{plugin-install.d.ts → solver-nets.d.ts} +0 -0
- /package/dist/cli/commands/{submit-intent.d.ts → tasks.d.ts} +0 -0
- /package/dist/{restorer/impls/prediction-apy-v0-baseline → harnesses/impls/claude-code-learner}/types.js +0 -0
- /package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/api-wallet.js +0 -0
- /package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/mcp-tools.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/mcp-tools.js +0 -0
- /package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/safety-rails.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/claude-mcp-hyperliquid/safety-rails.js +0 -0
- /package/dist/{restorer → harnesses}/impls/claude-mcp-prediction/mcp-tools.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/claude-mcp-prediction-apy/mcp-tools.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/availability.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/checks/availability.js +0 -0
- /package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/score.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/score.js +0 -0
- /package/dist/{restorer → harnesses}/impls/portfolio-v0-evaluator/types.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-apy-v0-baseline/strategy.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-apy-v0-baseline/strategy.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-apy-v0-baseline/types.d.ts +0 -0
- /package/dist/{restorer/impls/prediction-apy-v0-evaluator → harnesses/impls/prediction-apy-v0-baseline}/types.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-apy-v0-evaluator/score.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-apy-v0-evaluator/score.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-apy-v0-evaluator/types.d.ts +0 -0
- /package/dist/{restorer/impls/prediction-v0-baseline → harnesses/impls/prediction-apy-v0-evaluator}/types.js +0 -0
- /package/dist/{restorer/impls/prediction-v0-evaluator → harnesses/impls/prediction-v0-baseline}/types.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/canonical-metrics.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/checks/availability.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/checks/availability.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/checks/eligibility.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/checks/spec.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/score.d.ts +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/score.js +0 -0
- /package/dist/{restorer → harnesses}/impls/prediction-v0-evaluator/types.d.ts +0 -0
- /package/dist/{intents/kinds → solver-types}/constants.d.ts +0 -0
- /package/dist/{intents/kinds → solver-types}/constants.js +0 -0
package/dist/config.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* (mainnet V1, testnet V2) for JinnRouter claimDelivery encoding.
|
|
15
15
|
*/
|
|
16
16
|
import { z } from 'zod';
|
|
17
|
-
import type {
|
|
18
|
-
export declare const JinnConfigSchema: z.ZodObject<{
|
|
17
|
+
import type { Task } from './types/task.js';
|
|
18
|
+
export declare const JinnConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
19
19
|
/**
|
|
20
20
|
* Network to connect to.
|
|
21
21
|
* 'testnet' → Base Sepolia (default during Phase 1b; fast epochs, free funds).
|
|
@@ -31,6 +31,13 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
31
31
|
*/
|
|
32
32
|
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
33
33
|
archiveRpcUrl: z.ZodOptional<z.ZodString>;
|
|
34
|
+
/**
|
|
35
|
+
* Optional L2 proof/archive RPC endpoint for canonical cross-chain canaries.
|
|
36
|
+
* The daemon can use its normal rpcUrl for writes while proof construction
|
|
37
|
+
* uses this endpoint for historical eth_getProof at OP dispute-game blocks.
|
|
38
|
+
* Env: JINN_L2_PROOF_RPC_URL.
|
|
39
|
+
*/
|
|
40
|
+
l2ProofRpcUrl: z.ZodOptional<z.ZodString>;
|
|
34
41
|
/** Earning state directory */
|
|
35
42
|
earningDir: z.ZodDefault<z.ZodString>;
|
|
36
43
|
/** SQLite database path */
|
|
@@ -52,6 +59,16 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
52
59
|
balanceTopupIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
53
60
|
/** HTTP API port */
|
|
54
61
|
apiPort: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
/**
|
|
63
|
+
* Bind host for the HTTP API server. Defaults to `127.0.0.1` so the daemon
|
|
64
|
+
* is unreachable across the network out of the box — operators who need
|
|
65
|
+
* LAN access (or who terminate TLS in front of the daemon) opt in via this
|
|
66
|
+
* knob or `JINN_API_BIND_HOST`. Cost-mutating routes (`POST /artifacts`,
|
|
67
|
+
* `POST /v1/artifacts/acquire`) require a bearer token regardless; the
|
|
68
|
+
* bind host is the outer firewall.
|
|
69
|
+
* Env: JINN_API_BIND_HOST.
|
|
70
|
+
*/
|
|
71
|
+
apiBindHost: z.ZodOptional<z.ZodString>;
|
|
55
72
|
/** Path to claude CLI binary */
|
|
56
73
|
claudePath: z.ZodDefault<z.ZodString>;
|
|
57
74
|
/** Model for restoration/evaluation agent */
|
|
@@ -71,11 +88,16 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
71
88
|
subgraphUrl: z.ZodOptional<z.ZodString>;
|
|
72
89
|
/** This node's public HTTP endpoint (for 8004 registration) */
|
|
73
90
|
nodeEndpoint: z.ZodOptional<z.ZodString>;
|
|
74
|
-
/**
|
|
75
|
-
|
|
91
|
+
/** Tasks to create and solve. Empty by default; enabled SolverNet generators fill the loop. */
|
|
92
|
+
tasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
76
93
|
id: z.ZodOptional<z.ZodString>;
|
|
77
|
-
description: z.ZodString
|
|
94
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
95
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
96
|
+
solverType: z.ZodOptional<z.ZodString>;
|
|
97
|
+
role: z.ZodOptional<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
98
|
+
attemptId: z.ZodOptional<z.ZodString>;
|
|
99
|
+
attemptNumber: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
restorationRequestId: z.ZodOptional<z.ZodString>;
|
|
79
101
|
window: z.ZodOptional<z.ZodObject<{
|
|
80
102
|
startTs: z.ZodNumber;
|
|
81
103
|
endTs: z.ZodNumber;
|
|
@@ -86,38 +108,402 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
86
108
|
startTs: number;
|
|
87
109
|
endTs: number;
|
|
88
110
|
}>>;
|
|
89
|
-
spec: z.ZodOptional<z.
|
|
90
|
-
kind: z.ZodString;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
kind: string;
|
|
93
|
-
}, {
|
|
94
|
-
kind: string;
|
|
95
|
-
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
111
|
+
spec: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
96
112
|
eligibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
113
|
+
signedTask: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
114
|
+
signature: z.ZodObject<{
|
|
115
|
+
algo: z.ZodLiteral<"secp256k1">;
|
|
116
|
+
signer: z.ZodString;
|
|
117
|
+
hash: z.ZodString;
|
|
118
|
+
sig: z.ZodString;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
hash: string;
|
|
121
|
+
algo: "secp256k1";
|
|
122
|
+
signer: string;
|
|
123
|
+
sig: string;
|
|
124
|
+
}, {
|
|
125
|
+
hash: string;
|
|
126
|
+
algo: "secp256k1";
|
|
127
|
+
signer: string;
|
|
128
|
+
sig: string;
|
|
129
|
+
}>;
|
|
130
|
+
schemaVersion: z.ZodLiteral<"task.v1">;
|
|
131
|
+
id: z.ZodString;
|
|
132
|
+
solverType: z.ZodString;
|
|
133
|
+
role: z.ZodDefault<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
134
|
+
description: z.ZodString;
|
|
135
|
+
window: z.ZodObject<{
|
|
136
|
+
startTs: z.ZodNumber;
|
|
137
|
+
endTs: z.ZodNumber;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
startTs: number;
|
|
140
|
+
endTs: number;
|
|
141
|
+
}, {
|
|
142
|
+
startTs: number;
|
|
143
|
+
endTs: number;
|
|
144
|
+
}>;
|
|
145
|
+
spec: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
146
|
+
eligibility: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
147
|
+
creator: z.ZodObject<{
|
|
148
|
+
safeAddress: z.ZodString;
|
|
149
|
+
agentEoa: z.ZodString;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
safeAddress: string;
|
|
152
|
+
agentEoa: string;
|
|
153
|
+
}, {
|
|
154
|
+
safeAddress: string;
|
|
155
|
+
agentEoa: string;
|
|
156
|
+
}>;
|
|
157
|
+
createdAt: z.ZodNumber;
|
|
158
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
159
|
+
signature: z.ZodObject<{
|
|
160
|
+
algo: z.ZodLiteral<"secp256k1">;
|
|
161
|
+
signer: z.ZodString;
|
|
162
|
+
hash: z.ZodString;
|
|
163
|
+
sig: z.ZodString;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
hash: string;
|
|
166
|
+
algo: "secp256k1";
|
|
167
|
+
signer: string;
|
|
168
|
+
sig: string;
|
|
169
|
+
}, {
|
|
170
|
+
hash: string;
|
|
171
|
+
algo: "secp256k1";
|
|
172
|
+
signer: string;
|
|
173
|
+
sig: string;
|
|
174
|
+
}>;
|
|
175
|
+
schemaVersion: z.ZodLiteral<"task.v1">;
|
|
176
|
+
id: z.ZodString;
|
|
177
|
+
solverType: z.ZodString;
|
|
178
|
+
role: z.ZodDefault<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
179
|
+
description: z.ZodString;
|
|
180
|
+
window: z.ZodObject<{
|
|
181
|
+
startTs: z.ZodNumber;
|
|
182
|
+
endTs: z.ZodNumber;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
startTs: number;
|
|
185
|
+
endTs: number;
|
|
186
|
+
}, {
|
|
187
|
+
startTs: number;
|
|
188
|
+
endTs: number;
|
|
189
|
+
}>;
|
|
190
|
+
spec: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
191
|
+
eligibility: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
192
|
+
creator: z.ZodObject<{
|
|
193
|
+
safeAddress: z.ZodString;
|
|
194
|
+
agentEoa: z.ZodString;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
safeAddress: string;
|
|
197
|
+
agentEoa: string;
|
|
198
|
+
}, {
|
|
199
|
+
safeAddress: string;
|
|
200
|
+
agentEoa: string;
|
|
201
|
+
}>;
|
|
202
|
+
createdAt: z.ZodNumber;
|
|
203
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
204
|
+
signature: z.ZodObject<{
|
|
205
|
+
algo: z.ZodLiteral<"secp256k1">;
|
|
206
|
+
signer: z.ZodString;
|
|
207
|
+
hash: z.ZodString;
|
|
208
|
+
sig: z.ZodString;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
hash: string;
|
|
211
|
+
algo: "secp256k1";
|
|
212
|
+
signer: string;
|
|
213
|
+
sig: string;
|
|
214
|
+
}, {
|
|
215
|
+
hash: string;
|
|
216
|
+
algo: "secp256k1";
|
|
217
|
+
signer: string;
|
|
218
|
+
sig: string;
|
|
219
|
+
}>;
|
|
220
|
+
schemaVersion: z.ZodLiteral<"task.v1">;
|
|
221
|
+
id: z.ZodString;
|
|
222
|
+
solverType: z.ZodString;
|
|
223
|
+
role: z.ZodDefault<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
224
|
+
description: z.ZodString;
|
|
225
|
+
window: z.ZodObject<{
|
|
226
|
+
startTs: z.ZodNumber;
|
|
227
|
+
endTs: z.ZodNumber;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
startTs: number;
|
|
230
|
+
endTs: number;
|
|
231
|
+
}, {
|
|
232
|
+
startTs: number;
|
|
233
|
+
endTs: number;
|
|
234
|
+
}>;
|
|
235
|
+
spec: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
236
|
+
eligibility: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
237
|
+
creator: z.ZodObject<{
|
|
238
|
+
safeAddress: z.ZodString;
|
|
239
|
+
agentEoa: z.ZodString;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
safeAddress: string;
|
|
242
|
+
agentEoa: string;
|
|
243
|
+
}, {
|
|
244
|
+
safeAddress: string;
|
|
245
|
+
agentEoa: string;
|
|
246
|
+
}>;
|
|
247
|
+
createdAt: z.ZodNumber;
|
|
248
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
249
|
+
signature: z.ZodObject<{
|
|
250
|
+
algo: z.ZodLiteral<"secp256k1">;
|
|
251
|
+
signer: z.ZodString;
|
|
252
|
+
hash: z.ZodString;
|
|
253
|
+
sig: z.ZodString;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
hash: string;
|
|
256
|
+
algo: "secp256k1";
|
|
257
|
+
signer: string;
|
|
258
|
+
sig: string;
|
|
259
|
+
}, {
|
|
260
|
+
hash: string;
|
|
261
|
+
algo: "secp256k1";
|
|
262
|
+
signer: string;
|
|
263
|
+
sig: string;
|
|
264
|
+
}>;
|
|
265
|
+
schemaVersion: z.ZodLiteral<"task.v1">;
|
|
266
|
+
id: z.ZodString;
|
|
267
|
+
solverType: z.ZodString;
|
|
268
|
+
role: z.ZodDefault<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
269
|
+
description: z.ZodString;
|
|
270
|
+
window: z.ZodObject<{
|
|
271
|
+
startTs: z.ZodNumber;
|
|
272
|
+
endTs: z.ZodNumber;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
startTs: number;
|
|
275
|
+
endTs: number;
|
|
276
|
+
}, {
|
|
277
|
+
startTs: number;
|
|
278
|
+
endTs: number;
|
|
279
|
+
}>;
|
|
280
|
+
spec: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
281
|
+
eligibility: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
282
|
+
creator: z.ZodObject<{
|
|
283
|
+
safeAddress: z.ZodString;
|
|
284
|
+
agentEoa: z.ZodString;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
safeAddress: string;
|
|
287
|
+
agentEoa: string;
|
|
288
|
+
}, {
|
|
289
|
+
safeAddress: string;
|
|
290
|
+
agentEoa: string;
|
|
291
|
+
}>;
|
|
292
|
+
createdAt: z.ZodNumber;
|
|
293
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
294
|
+
signature: z.ZodObject<{
|
|
295
|
+
algo: z.ZodLiteral<"secp256k1">;
|
|
296
|
+
signer: z.ZodString;
|
|
297
|
+
hash: z.ZodString;
|
|
298
|
+
sig: z.ZodString;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
hash: string;
|
|
301
|
+
algo: "secp256k1";
|
|
302
|
+
signer: string;
|
|
303
|
+
sig: string;
|
|
304
|
+
}, {
|
|
305
|
+
hash: string;
|
|
306
|
+
algo: "secp256k1";
|
|
307
|
+
signer: string;
|
|
308
|
+
sig: string;
|
|
309
|
+
}>;
|
|
310
|
+
schemaVersion: z.ZodLiteral<"task.v1">;
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
solverType: z.ZodString;
|
|
313
|
+
role: z.ZodDefault<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
314
|
+
description: z.ZodString;
|
|
315
|
+
window: z.ZodObject<{
|
|
316
|
+
startTs: z.ZodNumber;
|
|
317
|
+
endTs: z.ZodNumber;
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
319
|
+
startTs: number;
|
|
320
|
+
endTs: number;
|
|
321
|
+
}, {
|
|
322
|
+
startTs: number;
|
|
323
|
+
endTs: number;
|
|
324
|
+
}>;
|
|
325
|
+
spec: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
326
|
+
eligibility: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
327
|
+
creator: z.ZodObject<{
|
|
328
|
+
safeAddress: z.ZodString;
|
|
329
|
+
agentEoa: z.ZodString;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
safeAddress: string;
|
|
332
|
+
agentEoa: string;
|
|
333
|
+
}, {
|
|
334
|
+
safeAddress: string;
|
|
335
|
+
agentEoa: string;
|
|
336
|
+
}>;
|
|
337
|
+
createdAt: z.ZodNumber;
|
|
338
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
339
|
+
id: string;
|
|
340
|
+
signature: {
|
|
341
|
+
hash: string;
|
|
342
|
+
algo: "secp256k1";
|
|
343
|
+
signer: string;
|
|
344
|
+
sig: string;
|
|
345
|
+
};
|
|
346
|
+
schemaVersion: "task.v1";
|
|
347
|
+
solverType: string;
|
|
348
|
+
role: "restoration" | "evaluation";
|
|
349
|
+
description: string;
|
|
350
|
+
window: {
|
|
351
|
+
startTs: number;
|
|
352
|
+
endTs: number;
|
|
353
|
+
};
|
|
354
|
+
spec: Record<string, unknown>;
|
|
355
|
+
eligibility: Record<string, unknown>;
|
|
356
|
+
creator: {
|
|
357
|
+
safeAddress: string;
|
|
358
|
+
agentEoa: string;
|
|
359
|
+
};
|
|
360
|
+
createdAt: number;
|
|
361
|
+
}, z.objectInputType<{
|
|
362
|
+
signature: z.ZodObject<{
|
|
363
|
+
algo: z.ZodLiteral<"secp256k1">;
|
|
364
|
+
signer: z.ZodString;
|
|
365
|
+
hash: z.ZodString;
|
|
366
|
+
sig: z.ZodString;
|
|
367
|
+
}, "strip", z.ZodTypeAny, {
|
|
368
|
+
hash: string;
|
|
369
|
+
algo: "secp256k1";
|
|
370
|
+
signer: string;
|
|
371
|
+
sig: string;
|
|
372
|
+
}, {
|
|
373
|
+
hash: string;
|
|
374
|
+
algo: "secp256k1";
|
|
375
|
+
signer: string;
|
|
376
|
+
sig: string;
|
|
377
|
+
}>;
|
|
378
|
+
schemaVersion: z.ZodLiteral<"task.v1">;
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
solverType: z.ZodString;
|
|
381
|
+
role: z.ZodDefault<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
382
|
+
description: z.ZodString;
|
|
383
|
+
window: z.ZodObject<{
|
|
384
|
+
startTs: z.ZodNumber;
|
|
385
|
+
endTs: z.ZodNumber;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
startTs: number;
|
|
388
|
+
endTs: number;
|
|
389
|
+
}, {
|
|
390
|
+
startTs: number;
|
|
391
|
+
endTs: number;
|
|
392
|
+
}>;
|
|
393
|
+
spec: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
394
|
+
eligibility: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
395
|
+
creator: z.ZodObject<{
|
|
396
|
+
safeAddress: z.ZodString;
|
|
397
|
+
agentEoa: z.ZodString;
|
|
398
|
+
}, "strip", z.ZodTypeAny, {
|
|
399
|
+
safeAddress: string;
|
|
400
|
+
agentEoa: string;
|
|
401
|
+
}, {
|
|
402
|
+
safeAddress: string;
|
|
403
|
+
agentEoa: string;
|
|
404
|
+
}>;
|
|
405
|
+
createdAt: z.ZodNumber;
|
|
406
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
97
407
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
description: string;
|
|
99
408
|
id?: string | undefined;
|
|
100
|
-
|
|
409
|
+
solverType?: string | undefined;
|
|
410
|
+
role?: "restoration" | "evaluation" | undefined;
|
|
411
|
+
description?: string | undefined;
|
|
101
412
|
window?: {
|
|
102
413
|
startTs: number;
|
|
103
414
|
endTs: number;
|
|
104
415
|
} | undefined;
|
|
105
|
-
spec?:
|
|
106
|
-
kind: string;
|
|
107
|
-
} & Record<string, unknown>) | undefined;
|
|
416
|
+
spec?: Record<string, unknown> | undefined;
|
|
108
417
|
eligibility?: Record<string, unknown> | undefined;
|
|
418
|
+
context?: Record<string, unknown> | undefined;
|
|
419
|
+
attemptId?: string | undefined;
|
|
420
|
+
attemptNumber?: number | undefined;
|
|
421
|
+
restorationRequestId?: string | undefined;
|
|
422
|
+
signedTask?: {
|
|
423
|
+
id: string;
|
|
424
|
+
signature: {
|
|
425
|
+
hash: string;
|
|
426
|
+
algo: "secp256k1";
|
|
427
|
+
signer: string;
|
|
428
|
+
sig: string;
|
|
429
|
+
};
|
|
430
|
+
schemaVersion: "task.v1";
|
|
431
|
+
solverType: string;
|
|
432
|
+
role: "restoration" | "evaluation";
|
|
433
|
+
description: string;
|
|
434
|
+
window: {
|
|
435
|
+
startTs: number;
|
|
436
|
+
endTs: number;
|
|
437
|
+
};
|
|
438
|
+
spec: Record<string, unknown>;
|
|
439
|
+
eligibility: Record<string, unknown>;
|
|
440
|
+
creator: {
|
|
441
|
+
safeAddress: string;
|
|
442
|
+
agentEoa: string;
|
|
443
|
+
};
|
|
444
|
+
createdAt: number;
|
|
445
|
+
} | undefined;
|
|
109
446
|
}, {
|
|
110
|
-
description: string;
|
|
111
447
|
id?: string | undefined;
|
|
112
|
-
|
|
448
|
+
solverType?: string | undefined;
|
|
449
|
+
role?: "restoration" | "evaluation" | undefined;
|
|
450
|
+
description?: string | undefined;
|
|
113
451
|
window?: {
|
|
114
452
|
startTs: number;
|
|
115
453
|
endTs: number;
|
|
116
454
|
} | undefined;
|
|
117
|
-
spec?:
|
|
118
|
-
kind: string;
|
|
119
|
-
} & Record<string, unknown>) | undefined;
|
|
455
|
+
spec?: Record<string, unknown> | undefined;
|
|
120
456
|
eligibility?: Record<string, unknown> | undefined;
|
|
457
|
+
context?: Record<string, unknown> | undefined;
|
|
458
|
+
attemptId?: string | undefined;
|
|
459
|
+
attemptNumber?: number | undefined;
|
|
460
|
+
restorationRequestId?: string | undefined;
|
|
461
|
+
signedTask?: z.objectInputType<{
|
|
462
|
+
signature: z.ZodObject<{
|
|
463
|
+
algo: z.ZodLiteral<"secp256k1">;
|
|
464
|
+
signer: z.ZodString;
|
|
465
|
+
hash: z.ZodString;
|
|
466
|
+
sig: z.ZodString;
|
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
|
468
|
+
hash: string;
|
|
469
|
+
algo: "secp256k1";
|
|
470
|
+
signer: string;
|
|
471
|
+
sig: string;
|
|
472
|
+
}, {
|
|
473
|
+
hash: string;
|
|
474
|
+
algo: "secp256k1";
|
|
475
|
+
signer: string;
|
|
476
|
+
sig: string;
|
|
477
|
+
}>;
|
|
478
|
+
schemaVersion: z.ZodLiteral<"task.v1">;
|
|
479
|
+
id: z.ZodString;
|
|
480
|
+
solverType: z.ZodString;
|
|
481
|
+
role: z.ZodDefault<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
482
|
+
description: z.ZodString;
|
|
483
|
+
window: z.ZodObject<{
|
|
484
|
+
startTs: z.ZodNumber;
|
|
485
|
+
endTs: z.ZodNumber;
|
|
486
|
+
}, "strip", z.ZodTypeAny, {
|
|
487
|
+
startTs: number;
|
|
488
|
+
endTs: number;
|
|
489
|
+
}, {
|
|
490
|
+
startTs: number;
|
|
491
|
+
endTs: number;
|
|
492
|
+
}>;
|
|
493
|
+
spec: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
494
|
+
eligibility: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
495
|
+
creator: z.ZodObject<{
|
|
496
|
+
safeAddress: z.ZodString;
|
|
497
|
+
agentEoa: z.ZodString;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
safeAddress: string;
|
|
500
|
+
agentEoa: string;
|
|
501
|
+
}, {
|
|
502
|
+
safeAddress: string;
|
|
503
|
+
agentEoa: string;
|
|
504
|
+
}>;
|
|
505
|
+
createdAt: z.ZodNumber;
|
|
506
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
121
507
|
}>, "many">>;
|
|
122
508
|
/** IPFS upload endpoint */
|
|
123
509
|
ipfsRegistryUrl: z.ZodDefault<z.ZodString>;
|
|
@@ -133,6 +519,73 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
133
519
|
testnetStolasDeploymentPath: z.ZodOptional<z.ZodString>;
|
|
134
520
|
/** Optional Base Sepolia ClaimRegistry deployment artifact path */
|
|
135
521
|
testnetClaimRegistryDeploymentPath: z.ZodOptional<z.ZodString>;
|
|
522
|
+
/**
|
|
523
|
+
* Optional deployment artifact for the v0 MVI L1 stack
|
|
524
|
+
* (deployment-jinn-mvi-l1-{network}{,-fast}.json). Provides addresses for
|
|
525
|
+
* JINN, Timelock, JinnGovernor, JinnDistributor, and Messenger.
|
|
526
|
+
* When set the daemon enables the cross-chain JINN claim loop.
|
|
527
|
+
*/
|
|
528
|
+
jinnMviL1DeploymentPath: z.ZodOptional<z.ZodString>;
|
|
529
|
+
/**
|
|
530
|
+
* Optional deployment artifact for the v0 MVI L2 emitter
|
|
531
|
+
* (deployment-jinn-mvi-l2-{network}.json). Provides the
|
|
532
|
+
* JinnClaimEmitter address on the measurement chain (Base / Base Sepolia).
|
|
533
|
+
*/
|
|
534
|
+
jinnMviL2DeploymentPath: z.ZodOptional<z.ZodString>;
|
|
535
|
+
/**
|
|
536
|
+
* RPC endpoint for the L1 governance chain (Ethereum / Sepolia) where the
|
|
537
|
+
* JinnDistributor lives. Required when jinnDistributorAddress is set.
|
|
538
|
+
* Env: JINN_ETHEREUM_RPC_URL.
|
|
539
|
+
*/
|
|
540
|
+
ethereumRpcUrl: z.ZodOptional<z.ZodString>;
|
|
541
|
+
/**
|
|
542
|
+
* Optional archive RPC endpoint for the L1 governance chain. Used for
|
|
543
|
+
* historical block lookups when constructing canonical-mode proofs.
|
|
544
|
+
* Env: JINN_ETHEREUM_ARCHIVE_RPC_URL.
|
|
545
|
+
*/
|
|
546
|
+
ethereumArchiveRpcUrl: z.ZodOptional<z.ZodString>;
|
|
547
|
+
/**
|
|
548
|
+
* L1 network used by the cross-chain claim loop. 'sepolia' tracks Base
|
|
549
|
+
* Sepolia testnet; 'ethereum' tracks Base mainnet. Defaults to 'sepolia'
|
|
550
|
+
* during Phase 1b. Env: JINN_L1_NETWORK.
|
|
551
|
+
*/
|
|
552
|
+
jinnL1Network: z.ZodDefault<z.ZodEnum<["sepolia", "ethereum"]>>;
|
|
553
|
+
/**
|
|
554
|
+
* JinnDistributor address on the L1 governance chain. Setting this enables
|
|
555
|
+
* the cross-chain claim loop. When set, ethereumRpcUrl MUST also be set.
|
|
556
|
+
* Resolved from jinnMviL1DeploymentPath when omitted; otherwise a manual
|
|
557
|
+
* override. Env: JINN_DISTRIBUTOR_ADDRESS.
|
|
558
|
+
*/
|
|
559
|
+
jinnDistributorAddress: z.ZodOptional<z.ZodString>;
|
|
560
|
+
/**
|
|
561
|
+
* JinnClaimEmitter address on the L2 measurement chain (Base / Base
|
|
562
|
+
* Sepolia). Resolved from jinnMviL2DeploymentPath when omitted.
|
|
563
|
+
* Env: JINN_CLAIM_EMITTER_ADDRESS.
|
|
564
|
+
*/
|
|
565
|
+
jinnClaimEmitterAddress: z.ZodOptional<z.ZodString>;
|
|
566
|
+
/**
|
|
567
|
+
* Messenger address on the L1 governance chain. Resolved from
|
|
568
|
+
* jinnMviL1DeploymentPath when omitted.
|
|
569
|
+
* Env: JINN_MESSENGER_ADDRESS.
|
|
570
|
+
*/
|
|
571
|
+
jinnMessengerAddress: z.ZodOptional<z.ZodString>;
|
|
572
|
+
/**
|
|
573
|
+
* Messenger mode driving proof construction. `mock` submits MockMessenger
|
|
574
|
+
* fixtures — required for automated Sepolia burn-in (`runOnce`). `canonical`
|
|
575
|
+
* builds OP-Stack storage proofs for verifier-only checks; scheduled daemon
|
|
576
|
+
* ticks **skip** canonical mode (multi-day finality) — use
|
|
577
|
+
* `tsx scripts/verify-canonical-canary.ts` after finality instead. Defaults
|
|
578
|
+
* to `canonical`.
|
|
579
|
+
* Env: JINN_MESSENGER_MODE.
|
|
580
|
+
*/
|
|
581
|
+
jinnMessengerMode: z.ZodDefault<z.ZodEnum<["canonical", "mock"]>>;
|
|
582
|
+
/**
|
|
583
|
+
* How often the daemon ticks the cross-chain JINN claim loop (ms). Default
|
|
584
|
+
* 3 600 000 (1 hour) — well below mainnet challenge windows while
|
|
585
|
+
* minimising RPC/gas churn. Set to 0 to disable when the address is set.
|
|
586
|
+
* Env: JINN_CLAIM_LOOP_INTERVAL_MS.
|
|
587
|
+
*/
|
|
588
|
+
jinnClaimLoopIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
136
589
|
/** Staking mode: 'standard' uses stOLAS (no OLAS needed), 'self-bond' uses operator-provided OLAS. */
|
|
137
590
|
stakingMode: z.ZodDefault<z.ZodEnum<["standard", "self-bond"]>>;
|
|
138
591
|
/** Number of services to bootstrap and run. */
|
|
@@ -148,29 +601,183 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
148
601
|
*/
|
|
149
602
|
masterEthDailyEstimateWei: z.ZodOptional<z.ZodString>;
|
|
150
603
|
/**
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
* byKind: explicit spec.kind → impl name mapping (highest priority)
|
|
156
|
-
* default: fallback impl name when no kind-specific match is found
|
|
157
|
-
* disabled: impl names to exclude from dispatch entirely
|
|
604
|
+
* Optional gas runway override for bootstrap/top-up targets (wei string).
|
|
605
|
+
* Used by Docker testnet acceptance to match the bundled faucet budget.
|
|
606
|
+
* Env: JINN_MIN_EOA_GAS_WEI
|
|
158
607
|
*/
|
|
159
|
-
|
|
160
|
-
|
|
608
|
+
minEoaGasWei: z.ZodOptional<z.ZodString>;
|
|
609
|
+
/**
|
|
610
|
+
* Optional Safe ETH target override for bootstrap/top-up targets (wei string).
|
|
611
|
+
* Env: JINN_MIN_SAFE_ETH_WEI
|
|
612
|
+
*/
|
|
613
|
+
minSafeEthWei: z.ZodOptional<z.ZodString>;
|
|
614
|
+
/**
|
|
615
|
+
* prediction.v0 auto-generator submission window (ms). Default 600000 (10 min).
|
|
616
|
+
* Docker acceptance gate sets 120000 to keep cycles tight.
|
|
617
|
+
* Env: JINN_PREDICTION_V0_WINDOW_MS
|
|
618
|
+
*/
|
|
619
|
+
predictionV0WindowMs: z.ZodOptional<z.ZodNumber>;
|
|
620
|
+
/**
|
|
621
|
+
* prediction.v0 auto-generator gap from window end → resolveTs (ms).
|
|
622
|
+
* Default 300000 (5 min). Docker acceptance gate sets 60000.
|
|
623
|
+
* Env: JINN_PREDICTION_V0_RESOLVE_GAP_MS
|
|
624
|
+
*/
|
|
625
|
+
predictionV0ResolveGapMs: z.ZodOptional<z.ZodNumber>;
|
|
626
|
+
/**
|
|
627
|
+
* Operator-controlled Harness inventory.
|
|
628
|
+
*/
|
|
629
|
+
harnesses: z.ZodOptional<z.ZodObject<{
|
|
161
630
|
default: z.ZodOptional<z.ZodString>;
|
|
162
631
|
disabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
632
|
+
/**
|
|
633
|
+
* Operator-supplied external harness impls.
|
|
634
|
+
*
|
|
635
|
+
* Each entry points the daemon at a manifest-bearing package on disk
|
|
636
|
+
* (typically inside `node_modules/`); `client/src/main.ts` invokes
|
|
637
|
+
* `loadExternalImpl()` for each entry at boot, validates the manifest
|
|
638
|
+
* against `trustedImplSigners`, and registers the resulting impl in
|
|
639
|
+
* the harness registry. See
|
|
640
|
+
* `docs/superpowers/plans/2026-04-30-plug-in-surface-path-2-foundation.md`
|
|
641
|
+
* step 5.7-5.8.
|
|
642
|
+
*/
|
|
643
|
+
externalImpls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
644
|
+
name: z.ZodString;
|
|
645
|
+
entry: z.ZodString;
|
|
646
|
+
package: z.ZodOptional<z.ZodString>;
|
|
647
|
+
/**
|
|
648
|
+
* Optional pinned version. When set, the loader rejects the
|
|
649
|
+
* impl if its manifest's `version` does not match this string
|
|
650
|
+
* exactly — guards against silent upgrades of an on-disk
|
|
651
|
+
* package without an explicit operator config change
|
|
652
|
+
* (Finding 10).
|
|
653
|
+
*/
|
|
654
|
+
version: z.ZodOptional<z.ZodString>;
|
|
655
|
+
}, "strip", z.ZodTypeAny, {
|
|
656
|
+
name: string;
|
|
657
|
+
entry: string;
|
|
658
|
+
package?: string | undefined;
|
|
659
|
+
version?: string | undefined;
|
|
660
|
+
}, {
|
|
661
|
+
name: string;
|
|
662
|
+
entry: string;
|
|
663
|
+
package?: string | undefined;
|
|
664
|
+
version?: string | undefined;
|
|
665
|
+
}>, "many">>;
|
|
163
666
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
byKind?: Record<string, string> | undefined;
|
|
165
667
|
default?: string | undefined;
|
|
166
668
|
disabled?: string[] | undefined;
|
|
669
|
+
externalImpls?: {
|
|
670
|
+
name: string;
|
|
671
|
+
entry: string;
|
|
672
|
+
package?: string | undefined;
|
|
673
|
+
version?: string | undefined;
|
|
674
|
+
}[] | undefined;
|
|
167
675
|
}, {
|
|
168
|
-
byKind?: Record<string, string> | undefined;
|
|
169
676
|
default?: string | undefined;
|
|
170
677
|
disabled?: string[] | undefined;
|
|
678
|
+
externalImpls?: {
|
|
679
|
+
name: string;
|
|
680
|
+
entry: string;
|
|
681
|
+
package?: string | undefined;
|
|
682
|
+
version?: string | undefined;
|
|
683
|
+
}[] | undefined;
|
|
171
684
|
}>>;
|
|
685
|
+
/** SolverNet activation, canonical SolverPlugin, and Harness selection. */
|
|
686
|
+
solverNets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
687
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
688
|
+
solverType: z.ZodString;
|
|
689
|
+
canonicalPlugin: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
690
|
+
name: z.ZodOptional<z.ZodString>;
|
|
691
|
+
source: z.ZodString;
|
|
692
|
+
version: z.ZodOptional<z.ZodString>;
|
|
693
|
+
}, "strip", z.ZodTypeAny, {
|
|
694
|
+
source: string;
|
|
695
|
+
name?: string | undefined;
|
|
696
|
+
version?: string | undefined;
|
|
697
|
+
}, {
|
|
698
|
+
source: string;
|
|
699
|
+
name?: string | undefined;
|
|
700
|
+
version?: string | undefined;
|
|
701
|
+
}>]>;
|
|
702
|
+
harness: z.ZodDefault<z.ZodString>;
|
|
703
|
+
plugins: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
704
|
+
name: z.ZodOptional<z.ZodString>;
|
|
705
|
+
source: z.ZodString;
|
|
706
|
+
version: z.ZodOptional<z.ZodString>;
|
|
707
|
+
}, "strip", z.ZodTypeAny, {
|
|
708
|
+
source: string;
|
|
709
|
+
name?: string | undefined;
|
|
710
|
+
version?: string | undefined;
|
|
711
|
+
}, {
|
|
712
|
+
source: string;
|
|
713
|
+
name?: string | undefined;
|
|
714
|
+
version?: string | undefined;
|
|
715
|
+
}>]>, "many">>;
|
|
716
|
+
taskGenerator: z.ZodDefault<z.ZodObject<{
|
|
717
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
718
|
+
}, "strip", z.ZodTypeAny, {
|
|
719
|
+
enabled: boolean;
|
|
720
|
+
}, {
|
|
721
|
+
enabled?: boolean | undefined;
|
|
722
|
+
}>>;
|
|
723
|
+
}, "strip", z.ZodTypeAny, {
|
|
724
|
+
solverType: string;
|
|
725
|
+
enabled: boolean;
|
|
726
|
+
canonicalPlugin: string | {
|
|
727
|
+
source: string;
|
|
728
|
+
name?: string | undefined;
|
|
729
|
+
version?: string | undefined;
|
|
730
|
+
};
|
|
731
|
+
harness: string;
|
|
732
|
+
plugins: (string | {
|
|
733
|
+
source: string;
|
|
734
|
+
name?: string | undefined;
|
|
735
|
+
version?: string | undefined;
|
|
736
|
+
})[];
|
|
737
|
+
taskGenerator: {
|
|
738
|
+
enabled: boolean;
|
|
739
|
+
};
|
|
740
|
+
}, {
|
|
741
|
+
solverType: string;
|
|
742
|
+
canonicalPlugin: string | {
|
|
743
|
+
source: string;
|
|
744
|
+
name?: string | undefined;
|
|
745
|
+
version?: string | undefined;
|
|
746
|
+
};
|
|
747
|
+
enabled?: boolean | undefined;
|
|
748
|
+
harness?: string | undefined;
|
|
749
|
+
plugins?: (string | {
|
|
750
|
+
source: string;
|
|
751
|
+
name?: string | undefined;
|
|
752
|
+
version?: string | undefined;
|
|
753
|
+
})[] | undefined;
|
|
754
|
+
taskGenerator?: {
|
|
755
|
+
enabled?: boolean | undefined;
|
|
756
|
+
} | undefined;
|
|
757
|
+
}>>>;
|
|
758
|
+
/**
|
|
759
|
+
* Trusted ed25519 publishers for external harness impls. The daemon
|
|
760
|
+
* refuses to load any external impl whose manifest signature is not
|
|
761
|
+
* verifiable against one of these public keys.
|
|
762
|
+
*
|
|
763
|
+
* `publicKey` is base64-encoded raw ed25519. `label` is operator-facing
|
|
764
|
+
* provenance only.
|
|
765
|
+
*/
|
|
766
|
+
trustedImplSigners: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
767
|
+
alg: z.ZodLiteral<"ed25519">;
|
|
768
|
+
publicKey: z.ZodString;
|
|
769
|
+
label: z.ZodOptional<z.ZodString>;
|
|
770
|
+
}, "strip", z.ZodTypeAny, {
|
|
771
|
+
publicKey: string;
|
|
772
|
+
alg: "ed25519";
|
|
773
|
+
label?: string | undefined;
|
|
774
|
+
}, {
|
|
775
|
+
publicKey: string;
|
|
776
|
+
alg: "ed25519";
|
|
777
|
+
label?: string | undefined;
|
|
778
|
+
}>, "many">>;
|
|
172
779
|
/**
|
|
173
|
-
* Restoration engine durable directories (per-
|
|
780
|
+
* Restoration engine durable directories (per-task work + impl state).
|
|
174
781
|
* Defaults under ~/.jinn-client/engine/. Env: JINN_ENGINE_WORKING_DIR_ROOT,
|
|
175
782
|
* JINN_ENGINE_IMPL_STATE_DIR_ROOT.
|
|
176
783
|
*/
|
|
@@ -184,6 +791,79 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
184
791
|
workingDirRoot?: string | undefined;
|
|
185
792
|
implStateDirRoot?: string | undefined;
|
|
186
793
|
}>>;
|
|
794
|
+
/**
|
|
795
|
+
* Operator-local artifact serving configuration (Phase A.1, jinn-mono-vy37.1).
|
|
796
|
+
*
|
|
797
|
+
* Per spec/2026-04-30-phase-a-umbrella.md §1, restoration artifact bytes
|
|
798
|
+
* stay on the operator's filesystem (served_artifacts) and are dispensed
|
|
799
|
+
* via the operator's HTTP API with x402 gating when `priceUsdc > 0`. The
|
|
800
|
+
* envelope's `artifact.access.endpoint` field tells consumers where to
|
|
801
|
+
* fetch each artifact; `priceUsdc` declares the asking price.
|
|
802
|
+
*
|
|
803
|
+
* `publicEndpoint` is the externally-reachable base URL that gets stamped
|
|
804
|
+
* into every artifact descriptor. `defaultPriceUsdc` is the fallback price
|
|
805
|
+
* when neither OUTPUTS.json nor `perArtifactTypePrice` provides a value.
|
|
806
|
+
* `perArtifactTypePrice` lets operators charge per artifactType.
|
|
807
|
+
*
|
|
808
|
+
* Resolution precedence in `uploadArtifacts`:
|
|
809
|
+
* OUTPUTS.json `access.priceUsdc` > `perArtifactTypePrice[artifactType]`
|
|
810
|
+
* > `defaultPriceUsdc`.
|
|
811
|
+
*
|
|
812
|
+
* Env overrides:
|
|
813
|
+
* JINN_OPERATOR_PUBLIC_ENDPOINT
|
|
814
|
+
* JINN_OPERATOR_DEFAULT_PRICE_USDC
|
|
815
|
+
*/
|
|
816
|
+
operator: z.ZodOptional<z.ZodObject<{
|
|
817
|
+
publicEndpoint: z.ZodString;
|
|
818
|
+
defaultPriceUsdc: z.ZodDefault<z.ZodString>;
|
|
819
|
+
perArtifactTypePrice: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
820
|
+
}, "strip", z.ZodTypeAny, {
|
|
821
|
+
publicEndpoint: string;
|
|
822
|
+
defaultPriceUsdc: string;
|
|
823
|
+
perArtifactTypePrice: Record<string, string>;
|
|
824
|
+
}, {
|
|
825
|
+
publicEndpoint: string;
|
|
826
|
+
defaultPriceUsdc?: string | undefined;
|
|
827
|
+
perArtifactTypePrice?: Record<string, string> | undefined;
|
|
828
|
+
}>>;
|
|
829
|
+
/**
|
|
830
|
+
* Run idempotent legacy migrations at daemon startup (jinn-mono-jgp:
|
|
831
|
+
* backfill `agent_id` on `complete` services that pre-date j07).
|
|
832
|
+
*
|
|
833
|
+
* Defaults to true — the migrations are no-ops on already-migrated
|
|
834
|
+
* fleets and cheap on Base. Operators on a flaky RPC or with locked
|
|
835
|
+
* funds can set this to false and run `jinn migrate-agent-id`
|
|
836
|
+
* explicitly.
|
|
837
|
+
*
|
|
838
|
+
* Env: JINN_RUN_LEGACY_MIGRATIONS=0|1.
|
|
839
|
+
*/
|
|
840
|
+
runLegacyMigrations: z.ZodDefault<z.ZodBoolean>;
|
|
841
|
+
/**
|
|
842
|
+
* ERC-8004 Identity Registry contract address on the configured chain.
|
|
843
|
+
* Pre-rebuild config key (PR #37 cleanup left it in place). The post-rebuild
|
|
844
|
+
* client (jinn-mono-j07/3zk) reads the address from
|
|
845
|
+
* `client/src/erc8004/identity.ts` constants and from
|
|
846
|
+
* `EarningState.identity_registry_address`; this config key is currently
|
|
847
|
+
* unused but kept for backwards-compat with operator config files.
|
|
848
|
+
* Env: JINN_IDENTITY_REGISTRY_ADDRESS
|
|
849
|
+
*/
|
|
850
|
+
identityRegistryAddress: z.ZodOptional<z.ZodString>;
|
|
851
|
+
/**
|
|
852
|
+
* ERC-8004 Validation Registry contract address on the configured chain.
|
|
853
|
+
* Pre-rebuild config key. The post-rebuild client (jinn-mono-9jg) reads the
|
|
854
|
+
* address from `client/src/erc8004/addresses.ts:VALIDATION_REGISTRY_ADDRESSES`;
|
|
855
|
+
* this config key is currently unused but kept for backwards-compat.
|
|
856
|
+
* Env: JINN_VALIDATION_REGISTRY_ADDRESS
|
|
857
|
+
*/
|
|
858
|
+
validationRegistryAddress: z.ZodOptional<z.ZodString>;
|
|
859
|
+
/**
|
|
860
|
+
* Whether to enable the read-only reputation surface (query-time flag).
|
|
861
|
+
* Pre-rebuild config key. The post-rebuild client (jinn-mono-2ff/yg4) is
|
|
862
|
+
* always constructed when `agent_id` is set; this flag is currently unused
|
|
863
|
+
* but kept for backwards-compat.
|
|
864
|
+
* Env: JINN_REPUTATION_ENABLED
|
|
865
|
+
*/
|
|
866
|
+
reputationEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
187
867
|
}, "strip", z.ZodTypeAny, {
|
|
188
868
|
network: "testnet" | "mainnet";
|
|
189
869
|
earningDir: string;
|
|
@@ -195,26 +875,78 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
195
875
|
claudePath: string;
|
|
196
876
|
claudeModel: string;
|
|
197
877
|
peers: string[];
|
|
198
|
-
|
|
199
|
-
description: string;
|
|
878
|
+
tasks: {
|
|
200
879
|
id?: string | undefined;
|
|
201
|
-
|
|
880
|
+
solverType?: string | undefined;
|
|
881
|
+
role?: "restoration" | "evaluation" | undefined;
|
|
882
|
+
description?: string | undefined;
|
|
202
883
|
window?: {
|
|
203
884
|
startTs: number;
|
|
204
885
|
endTs: number;
|
|
205
886
|
} | undefined;
|
|
206
|
-
spec?:
|
|
207
|
-
kind: string;
|
|
208
|
-
} & Record<string, unknown>) | undefined;
|
|
887
|
+
spec?: Record<string, unknown> | undefined;
|
|
209
888
|
eligibility?: Record<string, unknown> | undefined;
|
|
889
|
+
context?: Record<string, unknown> | undefined;
|
|
890
|
+
attemptId?: string | undefined;
|
|
891
|
+
attemptNumber?: number | undefined;
|
|
892
|
+
restorationRequestId?: string | undefined;
|
|
893
|
+
signedTask?: {
|
|
894
|
+
id: string;
|
|
895
|
+
signature: {
|
|
896
|
+
hash: string;
|
|
897
|
+
algo: "secp256k1";
|
|
898
|
+
signer: string;
|
|
899
|
+
sig: string;
|
|
900
|
+
};
|
|
901
|
+
schemaVersion: "task.v1";
|
|
902
|
+
solverType: string;
|
|
903
|
+
role: "restoration" | "evaluation";
|
|
904
|
+
description: string;
|
|
905
|
+
window: {
|
|
906
|
+
startTs: number;
|
|
907
|
+
endTs: number;
|
|
908
|
+
};
|
|
909
|
+
spec: Record<string, unknown>;
|
|
910
|
+
eligibility: Record<string, unknown>;
|
|
911
|
+
creator: {
|
|
912
|
+
safeAddress: string;
|
|
913
|
+
agentEoa: string;
|
|
914
|
+
};
|
|
915
|
+
createdAt: number;
|
|
916
|
+
} | undefined;
|
|
210
917
|
}[];
|
|
211
918
|
ipfsRegistryUrl: string;
|
|
212
919
|
ipfsGatewayUrl: string;
|
|
920
|
+
jinnL1Network: "sepolia" | "ethereum";
|
|
921
|
+
jinnMessengerMode: "canonical" | "mock";
|
|
922
|
+
jinnClaimLoopIntervalMs: number;
|
|
213
923
|
stakingMode: "standard" | "self-bond";
|
|
214
924
|
targetServices: number;
|
|
215
925
|
debug: boolean;
|
|
926
|
+
solverNets: Record<string, {
|
|
927
|
+
solverType: string;
|
|
928
|
+
enabled: boolean;
|
|
929
|
+
canonicalPlugin: string | {
|
|
930
|
+
source: string;
|
|
931
|
+
name?: string | undefined;
|
|
932
|
+
version?: string | undefined;
|
|
933
|
+
};
|
|
934
|
+
harness: string;
|
|
935
|
+
plugins: (string | {
|
|
936
|
+
source: string;
|
|
937
|
+
name?: string | undefined;
|
|
938
|
+
version?: string | undefined;
|
|
939
|
+
})[];
|
|
940
|
+
taskGenerator: {
|
|
941
|
+
enabled: boolean;
|
|
942
|
+
};
|
|
943
|
+
}>;
|
|
944
|
+
runLegacyMigrations: boolean;
|
|
945
|
+
reputationEnabled: boolean;
|
|
216
946
|
rpcUrl?: string | undefined;
|
|
217
947
|
archiveRpcUrl?: string | undefined;
|
|
948
|
+
l2ProofRpcUrl?: string | undefined;
|
|
949
|
+
apiBindHost?: string | undefined;
|
|
218
950
|
runtimeMode?: "bare" | "docker-compose" | "container" | undefined;
|
|
219
951
|
subgraphUrl?: string | undefined;
|
|
220
952
|
nodeEndpoint?: string | undefined;
|
|
@@ -223,44 +955,403 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
223
955
|
testnetMechDeploymentPath?: string | undefined;
|
|
224
956
|
testnetStolasDeploymentPath?: string | undefined;
|
|
225
957
|
testnetClaimRegistryDeploymentPath?: string | undefined;
|
|
958
|
+
jinnMviL1DeploymentPath?: string | undefined;
|
|
959
|
+
jinnMviL2DeploymentPath?: string | undefined;
|
|
960
|
+
ethereumRpcUrl?: string | undefined;
|
|
961
|
+
ethereumArchiveRpcUrl?: string | undefined;
|
|
962
|
+
jinnDistributorAddress?: string | undefined;
|
|
963
|
+
jinnClaimEmitterAddress?: string | undefined;
|
|
964
|
+
jinnMessengerAddress?: string | undefined;
|
|
226
965
|
masterEthDailyEstimateWei?: string | undefined;
|
|
227
|
-
|
|
228
|
-
|
|
966
|
+
minEoaGasWei?: string | undefined;
|
|
967
|
+
minSafeEthWei?: string | undefined;
|
|
968
|
+
predictionV0WindowMs?: number | undefined;
|
|
969
|
+
predictionV0ResolveGapMs?: number | undefined;
|
|
970
|
+
harnesses?: {
|
|
229
971
|
default?: string | undefined;
|
|
230
972
|
disabled?: string[] | undefined;
|
|
973
|
+
externalImpls?: {
|
|
974
|
+
name: string;
|
|
975
|
+
entry: string;
|
|
976
|
+
package?: string | undefined;
|
|
977
|
+
version?: string | undefined;
|
|
978
|
+
}[] | undefined;
|
|
231
979
|
} | undefined;
|
|
980
|
+
trustedImplSigners?: {
|
|
981
|
+
publicKey: string;
|
|
982
|
+
alg: "ed25519";
|
|
983
|
+
label?: string | undefined;
|
|
984
|
+
}[] | undefined;
|
|
232
985
|
engine?: {
|
|
233
986
|
workingDirRoot?: string | undefined;
|
|
234
987
|
implStateDirRoot?: string | undefined;
|
|
235
988
|
} | undefined;
|
|
989
|
+
operator?: {
|
|
990
|
+
publicEndpoint: string;
|
|
991
|
+
defaultPriceUsdc: string;
|
|
992
|
+
perArtifactTypePrice: Record<string, string>;
|
|
993
|
+
} | undefined;
|
|
994
|
+
identityRegistryAddress?: string | undefined;
|
|
995
|
+
validationRegistryAddress?: string | undefined;
|
|
236
996
|
}, {
|
|
237
997
|
network?: "testnet" | "mainnet" | undefined;
|
|
238
998
|
rpcUrl?: string | undefined;
|
|
239
999
|
archiveRpcUrl?: string | undefined;
|
|
1000
|
+
l2ProofRpcUrl?: string | undefined;
|
|
240
1001
|
earningDir?: string | undefined;
|
|
241
1002
|
dbPath?: string | undefined;
|
|
242
1003
|
pollIntervalMs?: number | undefined;
|
|
243
1004
|
rewardClaimIntervalMs?: number | undefined;
|
|
244
1005
|
balanceTopupIntervalMs?: number | undefined;
|
|
245
1006
|
apiPort?: number | undefined;
|
|
1007
|
+
apiBindHost?: string | undefined;
|
|
246
1008
|
claudePath?: string | undefined;
|
|
247
1009
|
claudeModel?: string | undefined;
|
|
248
1010
|
runtimeMode?: "bare" | "docker-compose" | "container" | undefined;
|
|
249
1011
|
peers?: string | string[] | undefined;
|
|
250
1012
|
subgraphUrl?: string | undefined;
|
|
251
1013
|
nodeEndpoint?: string | undefined;
|
|
252
|
-
|
|
253
|
-
description: string;
|
|
1014
|
+
tasks?: {
|
|
254
1015
|
id?: string | undefined;
|
|
1016
|
+
solverType?: string | undefined;
|
|
1017
|
+
role?: "restoration" | "evaluation" | undefined;
|
|
1018
|
+
description?: string | undefined;
|
|
1019
|
+
window?: {
|
|
1020
|
+
startTs: number;
|
|
1021
|
+
endTs: number;
|
|
1022
|
+
} | undefined;
|
|
1023
|
+
spec?: Record<string, unknown> | undefined;
|
|
1024
|
+
eligibility?: Record<string, unknown> | undefined;
|
|
255
1025
|
context?: Record<string, unknown> | undefined;
|
|
1026
|
+
attemptId?: string | undefined;
|
|
1027
|
+
attemptNumber?: number | undefined;
|
|
1028
|
+
restorationRequestId?: string | undefined;
|
|
1029
|
+
signedTask?: z.objectInputType<{
|
|
1030
|
+
signature: z.ZodObject<{
|
|
1031
|
+
algo: z.ZodLiteral<"secp256k1">;
|
|
1032
|
+
signer: z.ZodString;
|
|
1033
|
+
hash: z.ZodString;
|
|
1034
|
+
sig: z.ZodString;
|
|
1035
|
+
}, "strip", z.ZodTypeAny, {
|
|
1036
|
+
hash: string;
|
|
1037
|
+
algo: "secp256k1";
|
|
1038
|
+
signer: string;
|
|
1039
|
+
sig: string;
|
|
1040
|
+
}, {
|
|
1041
|
+
hash: string;
|
|
1042
|
+
algo: "secp256k1";
|
|
1043
|
+
signer: string;
|
|
1044
|
+
sig: string;
|
|
1045
|
+
}>;
|
|
1046
|
+
schemaVersion: z.ZodLiteral<"task.v1">;
|
|
1047
|
+
id: z.ZodString;
|
|
1048
|
+
solverType: z.ZodString;
|
|
1049
|
+
role: z.ZodDefault<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
1050
|
+
description: z.ZodString;
|
|
1051
|
+
window: z.ZodObject<{
|
|
1052
|
+
startTs: z.ZodNumber;
|
|
1053
|
+
endTs: z.ZodNumber;
|
|
1054
|
+
}, "strip", z.ZodTypeAny, {
|
|
1055
|
+
startTs: number;
|
|
1056
|
+
endTs: number;
|
|
1057
|
+
}, {
|
|
1058
|
+
startTs: number;
|
|
1059
|
+
endTs: number;
|
|
1060
|
+
}>;
|
|
1061
|
+
spec: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1062
|
+
eligibility: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1063
|
+
creator: z.ZodObject<{
|
|
1064
|
+
safeAddress: z.ZodString;
|
|
1065
|
+
agentEoa: z.ZodString;
|
|
1066
|
+
}, "strip", z.ZodTypeAny, {
|
|
1067
|
+
safeAddress: string;
|
|
1068
|
+
agentEoa: string;
|
|
1069
|
+
}, {
|
|
1070
|
+
safeAddress: string;
|
|
1071
|
+
agentEoa: string;
|
|
1072
|
+
}>;
|
|
1073
|
+
createdAt: z.ZodNumber;
|
|
1074
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1075
|
+
}[] | undefined;
|
|
1076
|
+
ipfsRegistryUrl?: string | undefined;
|
|
1077
|
+
ipfsGatewayUrl?: string | undefined;
|
|
1078
|
+
testnetL2DeploymentPath?: string | undefined;
|
|
1079
|
+
testnetL2TokenDeploymentPath?: string | undefined;
|
|
1080
|
+
testnetMechDeploymentPath?: string | undefined;
|
|
1081
|
+
testnetStolasDeploymentPath?: string | undefined;
|
|
1082
|
+
testnetClaimRegistryDeploymentPath?: string | undefined;
|
|
1083
|
+
jinnMviL1DeploymentPath?: string | undefined;
|
|
1084
|
+
jinnMviL2DeploymentPath?: string | undefined;
|
|
1085
|
+
ethereumRpcUrl?: string | undefined;
|
|
1086
|
+
ethereumArchiveRpcUrl?: string | undefined;
|
|
1087
|
+
jinnL1Network?: "sepolia" | "ethereum" | undefined;
|
|
1088
|
+
jinnDistributorAddress?: string | undefined;
|
|
1089
|
+
jinnClaimEmitterAddress?: string | undefined;
|
|
1090
|
+
jinnMessengerAddress?: string | undefined;
|
|
1091
|
+
jinnMessengerMode?: "canonical" | "mock" | undefined;
|
|
1092
|
+
jinnClaimLoopIntervalMs?: number | undefined;
|
|
1093
|
+
stakingMode?: "standard" | "self-bond" | undefined;
|
|
1094
|
+
targetServices?: number | undefined;
|
|
1095
|
+
debug?: boolean | undefined;
|
|
1096
|
+
masterEthDailyEstimateWei?: string | undefined;
|
|
1097
|
+
minEoaGasWei?: string | undefined;
|
|
1098
|
+
minSafeEthWei?: string | undefined;
|
|
1099
|
+
predictionV0WindowMs?: number | undefined;
|
|
1100
|
+
predictionV0ResolveGapMs?: number | undefined;
|
|
1101
|
+
harnesses?: {
|
|
1102
|
+
default?: string | undefined;
|
|
1103
|
+
disabled?: string[] | undefined;
|
|
1104
|
+
externalImpls?: {
|
|
1105
|
+
name: string;
|
|
1106
|
+
entry: string;
|
|
1107
|
+
package?: string | undefined;
|
|
1108
|
+
version?: string | undefined;
|
|
1109
|
+
}[] | undefined;
|
|
1110
|
+
} | undefined;
|
|
1111
|
+
solverNets?: Record<string, {
|
|
1112
|
+
solverType: string;
|
|
1113
|
+
canonicalPlugin: string | {
|
|
1114
|
+
source: string;
|
|
1115
|
+
name?: string | undefined;
|
|
1116
|
+
version?: string | undefined;
|
|
1117
|
+
};
|
|
1118
|
+
enabled?: boolean | undefined;
|
|
1119
|
+
harness?: string | undefined;
|
|
1120
|
+
plugins?: (string | {
|
|
1121
|
+
source: string;
|
|
1122
|
+
name?: string | undefined;
|
|
1123
|
+
version?: string | undefined;
|
|
1124
|
+
})[] | undefined;
|
|
1125
|
+
taskGenerator?: {
|
|
1126
|
+
enabled?: boolean | undefined;
|
|
1127
|
+
} | undefined;
|
|
1128
|
+
}> | undefined;
|
|
1129
|
+
trustedImplSigners?: {
|
|
1130
|
+
publicKey: string;
|
|
1131
|
+
alg: "ed25519";
|
|
1132
|
+
label?: string | undefined;
|
|
1133
|
+
}[] | undefined;
|
|
1134
|
+
engine?: {
|
|
1135
|
+
workingDirRoot?: string | undefined;
|
|
1136
|
+
implStateDirRoot?: string | undefined;
|
|
1137
|
+
} | undefined;
|
|
1138
|
+
operator?: {
|
|
1139
|
+
publicEndpoint: string;
|
|
1140
|
+
defaultPriceUsdc?: string | undefined;
|
|
1141
|
+
perArtifactTypePrice?: Record<string, string> | undefined;
|
|
1142
|
+
} | undefined;
|
|
1143
|
+
runLegacyMigrations?: boolean | undefined;
|
|
1144
|
+
identityRegistryAddress?: string | undefined;
|
|
1145
|
+
validationRegistryAddress?: string | undefined;
|
|
1146
|
+
reputationEnabled?: boolean | undefined;
|
|
1147
|
+
}>, {
|
|
1148
|
+
network: "testnet" | "mainnet";
|
|
1149
|
+
earningDir: string;
|
|
1150
|
+
dbPath: string;
|
|
1151
|
+
pollIntervalMs: number;
|
|
1152
|
+
rewardClaimIntervalMs: number;
|
|
1153
|
+
balanceTopupIntervalMs: number;
|
|
1154
|
+
apiPort: number;
|
|
1155
|
+
claudePath: string;
|
|
1156
|
+
claudeModel: string;
|
|
1157
|
+
peers: string[];
|
|
1158
|
+
tasks: {
|
|
1159
|
+
id?: string | undefined;
|
|
1160
|
+
solverType?: string | undefined;
|
|
1161
|
+
role?: "restoration" | "evaluation" | undefined;
|
|
1162
|
+
description?: string | undefined;
|
|
1163
|
+
window?: {
|
|
1164
|
+
startTs: number;
|
|
1165
|
+
endTs: number;
|
|
1166
|
+
} | undefined;
|
|
1167
|
+
spec?: Record<string, unknown> | undefined;
|
|
1168
|
+
eligibility?: Record<string, unknown> | undefined;
|
|
1169
|
+
context?: Record<string, unknown> | undefined;
|
|
1170
|
+
attemptId?: string | undefined;
|
|
1171
|
+
attemptNumber?: number | undefined;
|
|
1172
|
+
restorationRequestId?: string | undefined;
|
|
1173
|
+
signedTask?: {
|
|
1174
|
+
id: string;
|
|
1175
|
+
signature: {
|
|
1176
|
+
hash: string;
|
|
1177
|
+
algo: "secp256k1";
|
|
1178
|
+
signer: string;
|
|
1179
|
+
sig: string;
|
|
1180
|
+
};
|
|
1181
|
+
schemaVersion: "task.v1";
|
|
1182
|
+
solverType: string;
|
|
1183
|
+
role: "restoration" | "evaluation";
|
|
1184
|
+
description: string;
|
|
1185
|
+
window: {
|
|
1186
|
+
startTs: number;
|
|
1187
|
+
endTs: number;
|
|
1188
|
+
};
|
|
1189
|
+
spec: Record<string, unknown>;
|
|
1190
|
+
eligibility: Record<string, unknown>;
|
|
1191
|
+
creator: {
|
|
1192
|
+
safeAddress: string;
|
|
1193
|
+
agentEoa: string;
|
|
1194
|
+
};
|
|
1195
|
+
createdAt: number;
|
|
1196
|
+
} | undefined;
|
|
1197
|
+
}[];
|
|
1198
|
+
ipfsRegistryUrl: string;
|
|
1199
|
+
ipfsGatewayUrl: string;
|
|
1200
|
+
jinnL1Network: "sepolia" | "ethereum";
|
|
1201
|
+
jinnMessengerMode: "canonical" | "mock";
|
|
1202
|
+
jinnClaimLoopIntervalMs: number;
|
|
1203
|
+
stakingMode: "standard" | "self-bond";
|
|
1204
|
+
targetServices: number;
|
|
1205
|
+
debug: boolean;
|
|
1206
|
+
solverNets: Record<string, {
|
|
1207
|
+
solverType: string;
|
|
1208
|
+
enabled: boolean;
|
|
1209
|
+
canonicalPlugin: string | {
|
|
1210
|
+
source: string;
|
|
1211
|
+
name?: string | undefined;
|
|
1212
|
+
version?: string | undefined;
|
|
1213
|
+
};
|
|
1214
|
+
harness: string;
|
|
1215
|
+
plugins: (string | {
|
|
1216
|
+
source: string;
|
|
1217
|
+
name?: string | undefined;
|
|
1218
|
+
version?: string | undefined;
|
|
1219
|
+
})[];
|
|
1220
|
+
taskGenerator: {
|
|
1221
|
+
enabled: boolean;
|
|
1222
|
+
};
|
|
1223
|
+
}>;
|
|
1224
|
+
runLegacyMigrations: boolean;
|
|
1225
|
+
reputationEnabled: boolean;
|
|
1226
|
+
rpcUrl?: string | undefined;
|
|
1227
|
+
archiveRpcUrl?: string | undefined;
|
|
1228
|
+
l2ProofRpcUrl?: string | undefined;
|
|
1229
|
+
apiBindHost?: string | undefined;
|
|
1230
|
+
runtimeMode?: "bare" | "docker-compose" | "container" | undefined;
|
|
1231
|
+
subgraphUrl?: string | undefined;
|
|
1232
|
+
nodeEndpoint?: string | undefined;
|
|
1233
|
+
testnetL2DeploymentPath?: string | undefined;
|
|
1234
|
+
testnetL2TokenDeploymentPath?: string | undefined;
|
|
1235
|
+
testnetMechDeploymentPath?: string | undefined;
|
|
1236
|
+
testnetStolasDeploymentPath?: string | undefined;
|
|
1237
|
+
testnetClaimRegistryDeploymentPath?: string | undefined;
|
|
1238
|
+
jinnMviL1DeploymentPath?: string | undefined;
|
|
1239
|
+
jinnMviL2DeploymentPath?: string | undefined;
|
|
1240
|
+
ethereumRpcUrl?: string | undefined;
|
|
1241
|
+
ethereumArchiveRpcUrl?: string | undefined;
|
|
1242
|
+
jinnDistributorAddress?: string | undefined;
|
|
1243
|
+
jinnClaimEmitterAddress?: string | undefined;
|
|
1244
|
+
jinnMessengerAddress?: string | undefined;
|
|
1245
|
+
masterEthDailyEstimateWei?: string | undefined;
|
|
1246
|
+
minEoaGasWei?: string | undefined;
|
|
1247
|
+
minSafeEthWei?: string | undefined;
|
|
1248
|
+
predictionV0WindowMs?: number | undefined;
|
|
1249
|
+
predictionV0ResolveGapMs?: number | undefined;
|
|
1250
|
+
harnesses?: {
|
|
1251
|
+
default?: string | undefined;
|
|
1252
|
+
disabled?: string[] | undefined;
|
|
1253
|
+
externalImpls?: {
|
|
1254
|
+
name: string;
|
|
1255
|
+
entry: string;
|
|
1256
|
+
package?: string | undefined;
|
|
1257
|
+
version?: string | undefined;
|
|
1258
|
+
}[] | undefined;
|
|
1259
|
+
} | undefined;
|
|
1260
|
+
trustedImplSigners?: {
|
|
1261
|
+
publicKey: string;
|
|
1262
|
+
alg: "ed25519";
|
|
1263
|
+
label?: string | undefined;
|
|
1264
|
+
}[] | undefined;
|
|
1265
|
+
engine?: {
|
|
1266
|
+
workingDirRoot?: string | undefined;
|
|
1267
|
+
implStateDirRoot?: string | undefined;
|
|
1268
|
+
} | undefined;
|
|
1269
|
+
operator?: {
|
|
1270
|
+
publicEndpoint: string;
|
|
1271
|
+
defaultPriceUsdc: string;
|
|
1272
|
+
perArtifactTypePrice: Record<string, string>;
|
|
1273
|
+
} | undefined;
|
|
1274
|
+
identityRegistryAddress?: string | undefined;
|
|
1275
|
+
validationRegistryAddress?: string | undefined;
|
|
1276
|
+
}, {
|
|
1277
|
+
network?: "testnet" | "mainnet" | undefined;
|
|
1278
|
+
rpcUrl?: string | undefined;
|
|
1279
|
+
archiveRpcUrl?: string | undefined;
|
|
1280
|
+
l2ProofRpcUrl?: string | undefined;
|
|
1281
|
+
earningDir?: string | undefined;
|
|
1282
|
+
dbPath?: string | undefined;
|
|
1283
|
+
pollIntervalMs?: number | undefined;
|
|
1284
|
+
rewardClaimIntervalMs?: number | undefined;
|
|
1285
|
+
balanceTopupIntervalMs?: number | undefined;
|
|
1286
|
+
apiPort?: number | undefined;
|
|
1287
|
+
apiBindHost?: string | undefined;
|
|
1288
|
+
claudePath?: string | undefined;
|
|
1289
|
+
claudeModel?: string | undefined;
|
|
1290
|
+
runtimeMode?: "bare" | "docker-compose" | "container" | undefined;
|
|
1291
|
+
peers?: string | string[] | undefined;
|
|
1292
|
+
subgraphUrl?: string | undefined;
|
|
1293
|
+
nodeEndpoint?: string | undefined;
|
|
1294
|
+
tasks?: {
|
|
1295
|
+
id?: string | undefined;
|
|
1296
|
+
solverType?: string | undefined;
|
|
1297
|
+
role?: "restoration" | "evaluation" | undefined;
|
|
1298
|
+
description?: string | undefined;
|
|
256
1299
|
window?: {
|
|
257
1300
|
startTs: number;
|
|
258
1301
|
endTs: number;
|
|
259
1302
|
} | undefined;
|
|
260
|
-
spec?:
|
|
261
|
-
kind: string;
|
|
262
|
-
} & Record<string, unknown>) | undefined;
|
|
1303
|
+
spec?: Record<string, unknown> | undefined;
|
|
263
1304
|
eligibility?: Record<string, unknown> | undefined;
|
|
1305
|
+
context?: Record<string, unknown> | undefined;
|
|
1306
|
+
attemptId?: string | undefined;
|
|
1307
|
+
attemptNumber?: number | undefined;
|
|
1308
|
+
restorationRequestId?: string | undefined;
|
|
1309
|
+
signedTask?: z.objectInputType<{
|
|
1310
|
+
signature: z.ZodObject<{
|
|
1311
|
+
algo: z.ZodLiteral<"secp256k1">;
|
|
1312
|
+
signer: z.ZodString;
|
|
1313
|
+
hash: z.ZodString;
|
|
1314
|
+
sig: z.ZodString;
|
|
1315
|
+
}, "strip", z.ZodTypeAny, {
|
|
1316
|
+
hash: string;
|
|
1317
|
+
algo: "secp256k1";
|
|
1318
|
+
signer: string;
|
|
1319
|
+
sig: string;
|
|
1320
|
+
}, {
|
|
1321
|
+
hash: string;
|
|
1322
|
+
algo: "secp256k1";
|
|
1323
|
+
signer: string;
|
|
1324
|
+
sig: string;
|
|
1325
|
+
}>;
|
|
1326
|
+
schemaVersion: z.ZodLiteral<"task.v1">;
|
|
1327
|
+
id: z.ZodString;
|
|
1328
|
+
solverType: z.ZodString;
|
|
1329
|
+
role: z.ZodDefault<z.ZodEnum<["restoration", "evaluation"]>>;
|
|
1330
|
+
description: z.ZodString;
|
|
1331
|
+
window: z.ZodObject<{
|
|
1332
|
+
startTs: z.ZodNumber;
|
|
1333
|
+
endTs: z.ZodNumber;
|
|
1334
|
+
}, "strip", z.ZodTypeAny, {
|
|
1335
|
+
startTs: number;
|
|
1336
|
+
endTs: number;
|
|
1337
|
+
}, {
|
|
1338
|
+
startTs: number;
|
|
1339
|
+
endTs: number;
|
|
1340
|
+
}>;
|
|
1341
|
+
spec: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1342
|
+
eligibility: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1343
|
+
creator: z.ZodObject<{
|
|
1344
|
+
safeAddress: z.ZodString;
|
|
1345
|
+
agentEoa: z.ZodString;
|
|
1346
|
+
}, "strip", z.ZodTypeAny, {
|
|
1347
|
+
safeAddress: string;
|
|
1348
|
+
agentEoa: string;
|
|
1349
|
+
}, {
|
|
1350
|
+
safeAddress: string;
|
|
1351
|
+
agentEoa: string;
|
|
1352
|
+
}>;
|
|
1353
|
+
createdAt: z.ZodNumber;
|
|
1354
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
264
1355
|
}[] | undefined;
|
|
265
1356
|
ipfsRegistryUrl?: string | undefined;
|
|
266
1357
|
ipfsGatewayUrl?: string | undefined;
|
|
@@ -269,35 +1360,90 @@ export declare const JinnConfigSchema: z.ZodObject<{
|
|
|
269
1360
|
testnetMechDeploymentPath?: string | undefined;
|
|
270
1361
|
testnetStolasDeploymentPath?: string | undefined;
|
|
271
1362
|
testnetClaimRegistryDeploymentPath?: string | undefined;
|
|
1363
|
+
jinnMviL1DeploymentPath?: string | undefined;
|
|
1364
|
+
jinnMviL2DeploymentPath?: string | undefined;
|
|
1365
|
+
ethereumRpcUrl?: string | undefined;
|
|
1366
|
+
ethereumArchiveRpcUrl?: string | undefined;
|
|
1367
|
+
jinnL1Network?: "sepolia" | "ethereum" | undefined;
|
|
1368
|
+
jinnDistributorAddress?: string | undefined;
|
|
1369
|
+
jinnClaimEmitterAddress?: string | undefined;
|
|
1370
|
+
jinnMessengerAddress?: string | undefined;
|
|
1371
|
+
jinnMessengerMode?: "canonical" | "mock" | undefined;
|
|
1372
|
+
jinnClaimLoopIntervalMs?: number | undefined;
|
|
272
1373
|
stakingMode?: "standard" | "self-bond" | undefined;
|
|
273
1374
|
targetServices?: number | undefined;
|
|
274
1375
|
debug?: boolean | undefined;
|
|
275
1376
|
masterEthDailyEstimateWei?: string | undefined;
|
|
276
|
-
|
|
277
|
-
|
|
1377
|
+
minEoaGasWei?: string | undefined;
|
|
1378
|
+
minSafeEthWei?: string | undefined;
|
|
1379
|
+
predictionV0WindowMs?: number | undefined;
|
|
1380
|
+
predictionV0ResolveGapMs?: number | undefined;
|
|
1381
|
+
harnesses?: {
|
|
278
1382
|
default?: string | undefined;
|
|
279
1383
|
disabled?: string[] | undefined;
|
|
1384
|
+
externalImpls?: {
|
|
1385
|
+
name: string;
|
|
1386
|
+
entry: string;
|
|
1387
|
+
package?: string | undefined;
|
|
1388
|
+
version?: string | undefined;
|
|
1389
|
+
}[] | undefined;
|
|
280
1390
|
} | undefined;
|
|
1391
|
+
solverNets?: Record<string, {
|
|
1392
|
+
solverType: string;
|
|
1393
|
+
canonicalPlugin: string | {
|
|
1394
|
+
source: string;
|
|
1395
|
+
name?: string | undefined;
|
|
1396
|
+
version?: string | undefined;
|
|
1397
|
+
};
|
|
1398
|
+
enabled?: boolean | undefined;
|
|
1399
|
+
harness?: string | undefined;
|
|
1400
|
+
plugins?: (string | {
|
|
1401
|
+
source: string;
|
|
1402
|
+
name?: string | undefined;
|
|
1403
|
+
version?: string | undefined;
|
|
1404
|
+
})[] | undefined;
|
|
1405
|
+
taskGenerator?: {
|
|
1406
|
+
enabled?: boolean | undefined;
|
|
1407
|
+
} | undefined;
|
|
1408
|
+
}> | undefined;
|
|
1409
|
+
trustedImplSigners?: {
|
|
1410
|
+
publicKey: string;
|
|
1411
|
+
alg: "ed25519";
|
|
1412
|
+
label?: string | undefined;
|
|
1413
|
+
}[] | undefined;
|
|
281
1414
|
engine?: {
|
|
282
1415
|
workingDirRoot?: string | undefined;
|
|
283
1416
|
implStateDirRoot?: string | undefined;
|
|
284
1417
|
} | undefined;
|
|
1418
|
+
operator?: {
|
|
1419
|
+
publicEndpoint: string;
|
|
1420
|
+
defaultPriceUsdc?: string | undefined;
|
|
1421
|
+
perArtifactTypePrice?: Record<string, string> | undefined;
|
|
1422
|
+
} | undefined;
|
|
1423
|
+
runLegacyMigrations?: boolean | undefined;
|
|
1424
|
+
identityRegistryAddress?: string | undefined;
|
|
1425
|
+
validationRegistryAddress?: string | undefined;
|
|
1426
|
+
reputationEnabled?: boolean | undefined;
|
|
285
1427
|
}>;
|
|
286
|
-
/** JinnConfig with rpcUrl guaranteed to be resolved (never undefined) and
|
|
287
|
-
export type JinnConfig = Omit<z.infer<typeof JinnConfigSchema>, 'rpcUrl' | '
|
|
1428
|
+
/** JinnConfig with rpcUrl guaranteed to be resolved (never undefined) and tasks with id always assigned. */
|
|
1429
|
+
export type JinnConfig = Omit<z.infer<typeof JinnConfigSchema>, 'rpcUrl' | 'tasks' | 'engine'> & {
|
|
288
1430
|
rpcUrl: string;
|
|
289
|
-
|
|
1431
|
+
tasks: Task[];
|
|
290
1432
|
engine: {
|
|
291
1433
|
workingDirRoot: string;
|
|
292
1434
|
implStateDirRoot: string;
|
|
293
1435
|
};
|
|
294
1436
|
};
|
|
295
|
-
export type ConfigLoadErrorCode = 'config_file_not_found' | 'config_json_invalid' | '
|
|
1437
|
+
export type ConfigLoadErrorCode = 'config_file_not_found' | 'config_json_invalid' | 'tasks_file_not_found' | 'tasks_json_invalid' | 'config_invalid';
|
|
296
1438
|
export declare class ConfigLoadError extends Error {
|
|
297
1439
|
readonly code: ConfigLoadErrorCode;
|
|
298
1440
|
readonly details?: Record<string, unknown>;
|
|
299
1441
|
constructor(code: ConfigLoadErrorCode, message: string, details?: Record<string, unknown>);
|
|
300
1442
|
}
|
|
1443
|
+
export declare function migrateHarnessConfigFileValues(values: Record<string, unknown>): {
|
|
1444
|
+
values: Record<string, unknown>;
|
|
1445
|
+
changed: boolean;
|
|
1446
|
+
};
|
|
301
1447
|
/**
|
|
302
1448
|
* Load config with resolution: env > config file > defaults.
|
|
303
1449
|
*
|
|
@@ -309,3 +1455,36 @@ export declare function loadConfig(configPath?: string): JinnConfig;
|
|
|
309
1455
|
* Get the config file path from --config CLI arg, if provided.
|
|
310
1456
|
*/
|
|
311
1457
|
export declare function getConfigPathFromArgs(argv?: string[]): string | undefined;
|
|
1458
|
+
export interface ConfigProvenance {
|
|
1459
|
+
/** Resolved config file path, or null if only defaults were used. */
|
|
1460
|
+
configPath: string | null;
|
|
1461
|
+
/** Whether a config file was found and loaded. */
|
|
1462
|
+
configLoaded: boolean;
|
|
1463
|
+
/** Resolved network. */
|
|
1464
|
+
network: 'mainnet' | 'testnet';
|
|
1465
|
+
/** Resolved earning state directory. */
|
|
1466
|
+
earningDir: string;
|
|
1467
|
+
/** Resolved SQLite database path. */
|
|
1468
|
+
dbPath: string;
|
|
1469
|
+
/** Resolved runtime mode, or null if auto-detected. */
|
|
1470
|
+
runtimeMode: string | null;
|
|
1471
|
+
/**
|
|
1472
|
+
* Env vars that were set and contributed to the resolved config.
|
|
1473
|
+
* Values are always `"set"` — never the actual value.
|
|
1474
|
+
* JINN_PASSWORD is never listed here.
|
|
1475
|
+
*/
|
|
1476
|
+
envOverrides: Record<string, 'set'>;
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Build a structured provenance block describing how the config was resolved.
|
|
1480
|
+
*
|
|
1481
|
+
* Pass the same `configPath` you passed to `loadConfig`, and the resulting
|
|
1482
|
+
* `JinnConfig`. The helper inspects `process.env` to discover which tracked
|
|
1483
|
+
* env vars were set; it never reads their values.
|
|
1484
|
+
*
|
|
1485
|
+
* @param configPath — the explicit config file path passed to `loadConfig`,
|
|
1486
|
+
* or undefined if the default path was used.
|
|
1487
|
+
* @param config — the resolved `JinnConfig` returned by `loadConfig`.
|
|
1488
|
+
* @param env — defaults to `process.env`; inject in tests.
|
|
1489
|
+
*/
|
|
1490
|
+
export declare function buildConfigProvenance(configPath: string | undefined, config: JinnConfig, env?: NodeJS.ProcessEnv): ConfigProvenance;
|