@jinn-network/client 0.1.2 → 0.1.3-canary.262e5cda
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/CONTRIBUTING.md +8 -2
- package/README.md +38 -14
- 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 +2 -2
- 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 +2 -2
- package/dist/adapters/local/adapter.js +8 -8
- package/dist/adapters/local/adapter.js.map +1 -1
- package/dist/adapters/mech/adapter.d.ts +3 -4
- package/dist/adapters/mech/adapter.js +86 -50
- package/dist/adapters/mech/adapter.js.map +1 -1
- package/dist/adapters/mech/contracts.d.ts +6 -4
- package/dist/adapters/mech/contracts.js +118 -14
- package/dist/adapters/mech/contracts.js.map +1 -1
- package/dist/adapters/mech/ipfs.d.ts +61 -6
- package/dist/adapters/mech/ipfs.js +159 -26
- 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 +47 -21
- 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 +5 -1
- 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/peers.js +20 -5
- package/dist/api/peers.js.map +1 -1
- package/dist/api/portfolio-v0-build.d.ts +6 -0
- package/dist/api/portfolio-v0-build.js +6 -1
- package/dist/api/portfolio-v0-build.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 +54 -0
- package/dist/api/server.js +239 -13
- 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 +9 -1
- 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 +36 -0
- package/dist/cli/commands/create.js +374 -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 +136 -121
- 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/history.d.ts +10 -1
- package/dist/cli/commands/history.js +66 -57
- package/dist/cli/commands/history.js.map +1 -1
- package/dist/cli/commands/impls.d.ts +18 -0
- package/dist/cli/commands/impls.js +208 -0
- package/dist/cli/commands/impls.js.map +1 -0
- package/dist/cli/commands/init.js +4 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/intents.js +13 -9
- package/dist/cli/commands/intents.js.map +1 -1
- 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/plug-ins.d.ts +34 -0
- package/dist/cli/commands/plug-ins.js +282 -0
- package/dist/cli/commands/plug-ins.js.map +1 -0
- package/dist/cli/commands/plugin-install.d.ts +10 -0
- package/dist/cli/commands/plugin-install.js +226 -14
- package/dist/cli/commands/plugin-install.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 +232 -90
- package/dist/cli/commands/run.js.map +1 -1
- 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/submit-intent.js +33 -6
- package/dist/cli/commands/submit-intent.js.map +1 -1
- 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 +102 -97
- 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 +2 -1
- package/dist/cli/execution-context.js.map +1 -1
- package/dist/cli/help.js +7 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.js +18 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/intent-registry-access.d.ts +33 -1
- package/dist/cli/intent-registry-access.js +40 -2
- package/dist/cli/intent-registry-access.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 +5 -5
- package/dist/cli/password.js.map +1 -1
- package/dist/config.d.ts +883 -11
- package/dist/config.js +435 -4
- 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 +228 -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 +107 -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 +2 -2
- package/dist/daemon/creator.js +2 -2
- package/dist/daemon/creator.js.map +1 -1
- package/dist/daemon/daemon.d.ts +70 -15
- package/dist/daemon/daemon.js +159 -41
- package/dist/daemon/daemon.js.map +1 -1
- package/dist/daemon/delivery-watcher.js +31 -1
- 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/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/index.d.ts +1 -1
- package/dist/intents/kinds/index.d.ts +10 -0
- package/dist/intents/kinds/index.js +7 -0
- package/dist/intents/kinds/index.js.map +1 -1
- package/dist/intents/kinds/learner-loop-test.d.ts +2 -0
- package/dist/intents/kinds/learner-loop-test.js +39 -0
- package/dist/intents/kinds/learner-loop-test.js.map +1 -0
- package/dist/intents/kinds/prediction-apy-v0.js +5 -1
- package/dist/intents/kinds/prediction-apy-v0.js.map +1 -1
- package/dist/intents/kinds/prediction-v0.js +5 -0
- package/dist/intents/kinds/prediction-v0.js.map +1 -1
- package/dist/intents/kinds/spec-kind.d.ts +18 -1
- package/dist/intents/posting-service.d.ts +3 -5
- package/dist/intents/posting-service.js +16 -50
- package/dist/intents/posting-service.js.map +1 -1
- package/dist/intents/prediction-apy-v0-auto.d.ts +12 -2
- package/dist/intents/prediction-apy-v0-auto.js +27 -2
- package/dist/intents/prediction-apy-v0-auto.js.map +1 -1
- package/dist/intents/prediction-v0-auto.d.ts +14 -4
- package/dist/intents/prediction-v0-auto.js +29 -5
- package/dist/intents/prediction-v0-auto.js.map +1 -1
- package/dist/intents/signing.d.ts +13 -0
- package/dist/intents/signing.js +27 -0
- package/dist/intents/signing.js.map +1 -0
- package/dist/intents/sources.d.ts +12 -5
- package/dist/intents/sources.js +11 -11
- package/dist/intents/sources.js.map +1 -1
- package/dist/main.d.ts +5 -2
- package/dist/main.js +792 -66
- 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 +20 -3
- package/dist/mcp/operator-server.js +500 -25
- 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.js +103 -58
- package/dist/mcp/server.js.map +1 -1
- package/dist/observability/emit-event.d.ts +1 -1
- 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/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/restorer/capability/index.d.ts +82 -0
- package/dist/restorer/capability/index.js +12 -0
- package/dist/restorer/capability/index.js.map +1 -0
- package/dist/restorer/capability/scoped-rpc.d.ts +12 -0
- package/dist/restorer/capability/scoped-rpc.js +34 -0
- package/dist/restorer/capability/scoped-rpc.js.map +1 -0
- package/dist/restorer/capability/scoped-secrets.d.ts +8 -0
- package/dist/restorer/capability/scoped-secrets.js +10 -0
- package/dist/restorer/capability/scoped-secrets.js.map +1 -0
- package/dist/restorer/capability/scoped-signer.d.ts +46 -0
- package/dist/restorer/capability/scoped-signer.js +73 -0
- package/dist/restorer/capability/scoped-signer.js.map +1 -0
- package/dist/restorer/engine/canonical-json.d.ts +0 -17
- package/dist/restorer/engine/canonical-json.js +56 -49
- package/dist/restorer/engine/canonical-json.js.map +1 -1
- package/dist/restorer/engine/claim.js +8 -1
- package/dist/restorer/engine/claim.js.map +1 -1
- package/dist/restorer/engine/delivery.d.ts +2 -0
- package/dist/restorer/engine/delivery.js +2 -2
- package/dist/restorer/engine/delivery.js.map +1 -1
- package/dist/restorer/engine/engine.d.ts +143 -26
- package/dist/restorer/engine/engine.js +485 -104
- package/dist/restorer/engine/engine.js.map +1 -1
- package/dist/restorer/engine/envelope-assembly.d.ts +65 -0
- package/dist/restorer/engine/envelope-assembly.js +60 -0
- package/dist/restorer/engine/envelope-assembly.js.map +1 -0
- package/dist/restorer/engine/packaging.d.ts +30 -30
- package/dist/restorer/engine/packaging.js +73 -47
- package/dist/restorer/engine/packaging.js.map +1 -1
- package/dist/restorer/engine/persistence.d.ts +7 -7
- package/dist/restorer/engine/persistence.js +4 -4
- package/dist/restorer/engine/persistence.js.map +1 -1
- package/dist/restorer/engine/registry.d.ts +24 -13
- package/dist/restorer/engine/registry.js +16 -13
- package/dist/restorer/engine/registry.js.map +1 -1
- package/dist/restorer/engine/validate-manifest.d.ts +23 -0
- package/dist/restorer/engine/validate-manifest.js +49 -0
- package/dist/restorer/engine/validate-manifest.js.map +1 -0
- package/dist/restorer/engine/verification-stub.d.ts +18 -0
- package/dist/restorer/engine/verification-stub.js +18 -0
- package/dist/restorer/engine/verification-stub.js.map +1 -0
- package/dist/restorer/external-impls/index.d.ts +3 -0
- package/dist/restorer/external-impls/index.js +2 -0
- package/dist/restorer/external-impls/index.js.map +1 -0
- package/dist/restorer/external-impls/loader.d.ts +49 -0
- package/dist/restorer/external-impls/loader.js +138 -0
- package/dist/restorer/external-impls/loader.js.map +1 -0
- package/dist/restorer/external-impls/package-hash.d.ts +26 -0
- package/dist/restorer/external-impls/package-hash.js +102 -0
- package/dist/restorer/external-impls/package-hash.js.map +1 -0
- package/dist/restorer/external-impls/types.d.ts +42 -0
- package/dist/restorer/external-impls/types.js +10 -0
- package/dist/restorer/external-impls/types.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/adapters/claude-code.d.ts +38 -0
- package/dist/restorer/impls/claude-code-learner/adapters/claude-code.js +200 -0
- package/dist/restorer/impls/claude-code-learner/adapters/claude-code.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/harvest.d.ts +19 -0
- package/dist/restorer/impls/claude-code-learner/harvest.js +146 -0
- package/dist/restorer/impls/claude-code-learner/harvest.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/index.d.ts +15 -0
- package/dist/restorer/impls/claude-code-learner/index.js +14 -0
- package/dist/restorer/impls/claude-code-learner/index.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/mcp-config.d.ts +48 -0
- package/dist/restorer/impls/claude-code-learner/mcp-config.js +52 -0
- package/dist/restorer/impls/claude-code-learner/mcp-config.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/plugin-path.d.ts +14 -0
- package/dist/restorer/impls/claude-code-learner/plugin-path.js +30 -0
- package/dist/restorer/impls/claude-code-learner/plugin-path.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/restorer.d.ts +38 -0
- package/dist/restorer/impls/claude-code-learner/restorer.js +73 -0
- package/dist/restorer/impls/claude-code-learner/restorer.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/test-utils/fake-plugin-outputs.d.ts +19 -0
- package/dist/restorer/impls/claude-code-learner/test-utils/fake-plugin-outputs.js +111 -0
- package/dist/restorer/impls/claude-code-learner/test-utils/fake-plugin-outputs.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/test-utils/noop-adapter.d.ts +22 -0
- package/dist/restorer/impls/claude-code-learner/test-utils/noop-adapter.js +35 -0
- package/dist/restorer/impls/claude-code-learner/test-utils/noop-adapter.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/test-utils/synthetic-session.d.ts +20 -0
- package/dist/restorer/impls/claude-code-learner/test-utils/synthetic-session.js +34 -0
- package/dist/restorer/impls/claude-code-learner/test-utils/synthetic-session.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/types.d.ts +99 -0
- package/dist/restorer/impls/claude-code-learner/types.js +2 -0
- package/dist/restorer/impls/claude-code-learner/types.js.map +1 -0
- package/dist/restorer/impls/claude-code-learner/wrapper.d.ts +49 -0
- package/dist/restorer/impls/claude-code-learner/wrapper.js +144 -0
- package/dist/restorer/impls/claude-code-learner/wrapper.js.map +1 -0
- package/dist/restorer/impls/claude-mcp-hyperliquid/index.d.ts +2 -2
- package/dist/restorer/impls/claude-mcp-hyperliquid/index.js +2 -2
- package/dist/restorer/impls/claude-mcp-hyperliquid/index.js.map +1 -1
- package/dist/restorer/impls/claude-mcp-hyperliquid/session-orchestrator.d.ts +7 -0
- package/dist/restorer/impls/claude-mcp-hyperliquid/session-orchestrator.js +38 -0
- package/dist/restorer/impls/claude-mcp-hyperliquid/session-orchestrator.js.map +1 -1
- package/dist/restorer/impls/claude-mcp-prediction/index.d.ts +2 -2
- package/dist/restorer/impls/claude-mcp-prediction/index.js +12 -2
- package/dist/restorer/impls/claude-mcp-prediction/index.js.map +1 -1
- package/dist/restorer/impls/claude-mcp-prediction/session-orchestrator.d.ts +9 -2
- package/dist/restorer/impls/claude-mcp-prediction/session-orchestrator.js +9 -125
- package/dist/restorer/impls/claude-mcp-prediction/session-orchestrator.js.map +1 -1
- package/dist/restorer/impls/claude-mcp-prediction-apy/index.d.ts +2 -2
- package/dist/restorer/impls/claude-mcp-prediction-apy/index.js +9 -2
- package/dist/restorer/impls/claude-mcp-prediction-apy/index.js.map +1 -1
- package/dist/restorer/impls/claude-mcp-prediction-apy/session-orchestrator.d.ts +10 -0
- package/dist/restorer/impls/claude-mcp-prediction-apy/session-orchestrator.js +10 -119
- package/dist/restorer/impls/claude-mcp-prediction-apy/session-orchestrator.js.map +1 -1
- package/dist/restorer/impls/claude-mcp-shared/single-session-orchestrator.d.ts +84 -0
- package/dist/restorer/impls/claude-mcp-shared/single-session-orchestrator.js +206 -0
- package/dist/restorer/impls/claude-mcp-shared/single-session-orchestrator.js.map +1 -0
- package/dist/restorer/impls/evaluation-context.d.ts +11 -4
- package/dist/restorer/impls/evaluation-context.js +9 -2
- package/dist/restorer/impls/evaluation-context.js.map +1 -1
- package/dist/restorer/impls/index.d.ts +46 -1
- package/dist/restorer/impls/index.js +38 -0
- package/dist/restorer/impls/index.js.map +1 -1
- package/dist/restorer/impls/legacy-claude/index.d.ts +13 -1
- package/dist/restorer/impls/legacy-claude/index.js +2 -0
- package/dist/restorer/impls/legacy-claude/index.js.map +1 -1
- package/dist/restorer/impls/portfolio-v0-evaluator/index.d.ts +4 -4
- package/dist/restorer/impls/portfolio-v0-evaluator/index.js +184 -55
- package/dist/restorer/impls/portfolio-v0-evaluator/index.js.map +1 -1
- package/dist/restorer/impls/prediction-apy-v0-baseline/index.d.ts +1 -1
- package/dist/restorer/impls/prediction-apy-v0-baseline/index.js +8 -1
- package/dist/restorer/impls/prediction-apy-v0-baseline/index.js.map +1 -1
- package/dist/restorer/impls/prediction-apy-v0-evaluator/index.d.ts +3 -3
- package/dist/restorer/impls/prediction-apy-v0-evaluator/index.js +153 -15
- package/dist/restorer/impls/prediction-apy-v0-evaluator/index.js.map +1 -1
- package/dist/restorer/impls/prediction-apy-v0-evaluator/parse-submission.d.ts +14 -5
- package/dist/restorer/impls/prediction-apy-v0-evaluator/parse-submission.js +16 -23
- package/dist/restorer/impls/prediction-apy-v0-evaluator/parse-submission.js.map +1 -1
- package/dist/restorer/impls/prediction-v0-baseline/index.d.ts +1 -1
- package/dist/restorer/impls/prediction-v0-baseline/index.js +16 -7
- package/dist/restorer/impls/prediction-v0-baseline/index.js.map +1 -1
- package/dist/restorer/impls/prediction-v0-evaluator/checks/integrity.d.ts +5 -3
- package/dist/restorer/impls/prediction-v0-evaluator/checks/integrity.js.map +1 -1
- package/dist/restorer/impls/prediction-v0-evaluator/index.d.ts +2 -2
- package/dist/restorer/impls/prediction-v0-evaluator/index.js +175 -67
- package/dist/restorer/impls/prediction-v0-evaluator/index.js.map +1 -1
- package/dist/restorer/manifest/index.d.ts +3 -0
- package/dist/restorer/manifest/index.js +3 -0
- package/dist/restorer/manifest/index.js.map +1 -0
- package/dist/restorer/manifest/load.d.ts +7 -0
- package/dist/restorer/manifest/load.js +49 -0
- package/dist/restorer/manifest/load.js.map +1 -0
- package/dist/restorer/manifest/types.d.ts +75 -0
- package/dist/restorer/manifest/types.js +8 -0
- package/dist/restorer/manifest/types.js.map +1 -0
- package/dist/restorer/manifest/verify.d.ts +15 -0
- package/dist/restorer/manifest/verify.js +53 -0
- package/dist/restorer/manifest/verify.js.map +1 -0
- package/dist/restorer/plug-ins/index.d.ts +14 -0
- package/dist/restorer/plug-ins/index.js +11 -0
- package/dist/restorer/plug-ins/index.js.map +1 -0
- package/dist/restorer/plug-ins/loader.d.ts +27 -0
- package/dist/restorer/plug-ins/loader.js +101 -0
- package/dist/restorer/plug-ins/loader.js.map +1 -0
- package/dist/restorer/plug-ins/manifest.d.ts +7 -0
- package/dist/restorer/plug-ins/manifest.js +97 -0
- package/dist/restorer/plug-ins/manifest.js.map +1 -0
- package/dist/restorer/plug-ins/registry.d.ts +24 -0
- package/dist/restorer/plug-ins/registry.js +17 -0
- package/dist/restorer/plug-ins/registry.js.map +1 -0
- package/dist/restorer/plug-ins/serialise.d.ts +29 -0
- package/dist/restorer/plug-ins/serialise.js +29 -0
- package/dist/restorer/plug-ins/serialise.js.map +1 -0
- package/dist/restorer/plug-ins/types.d.ts +77 -0
- package/dist/restorer/plug-ins/types.js +10 -0
- package/dist/restorer/plug-ins/types.js.map +1 -0
- package/dist/restorer/types.d.ts +66 -11
- package/dist/restorer/types.js.map +1 -1
- package/dist/runner/claude.d.ts +3 -3
- package/dist/runner/claude.js +57 -21
- 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/store/store.d.ts +79 -3
- package/dist/store/store.js +189 -6
- package/dist/store/store.js.map +1 -1
- package/dist/templates/plug-in/hook/README.md.tmpl +24 -0
- package/dist/templates/plug-in/hook/gitignore.tmpl +3 -0
- package/dist/templates/plug-in/hook/hooks/event.sh.tmpl +15 -0
- package/dist/templates/plug-in/hook/jinn-plugin.json.tmpl +16 -0
- package/dist/templates/plug-in/hook/package.json.tmpl +14 -0
- package/dist/templates/plug-in/hook/test/manifest.test.ts.tmpl +21 -0
- package/dist/templates/plug-in/mcp-tool/README.md.tmpl +26 -0
- package/dist/templates/plug-in/mcp-tool/gitignore.tmpl +4 -0
- package/dist/templates/plug-in/mcp-tool/jinn-plugin.json.tmpl +16 -0
- package/dist/templates/plug-in/mcp-tool/package.json.tmpl +19 -0
- package/dist/templates/plug-in/mcp-tool/src/server.ts.tmpl +17 -0
- package/dist/templates/plug-in/mcp-tool/test/server.test.ts.tmpl +18 -0
- package/dist/templates/plug-in/memory-backend/README.md.tmpl +33 -0
- package/dist/templates/plug-in/memory-backend/gitignore.tmpl +4 -0
- package/dist/templates/plug-in/memory-backend/jinn-plugin.json.tmpl +16 -0
- package/dist/templates/plug-in/memory-backend/package.json.tmpl +19 -0
- package/dist/templates/plug-in/memory-backend/src/server.ts.tmpl +23 -0
- package/dist/templates/plug-in/memory-backend/test/server.test.ts.tmpl +17 -0
- package/dist/templates/plug-in/phase-agent-override/README.md.tmpl +30 -0
- package/dist/templates/plug-in/phase-agent-override/agents/agent.md.tmpl +26 -0
- package/dist/templates/plug-in/phase-agent-override/gitignore.tmpl +3 -0
- package/dist/templates/plug-in/phase-agent-override/jinn-plugin.json.tmpl +17 -0
- package/dist/templates/plug-in/phase-agent-override/package.json.tmpl +14 -0
- package/dist/templates/plug-in/phase-agent-override/test/manifest.test.ts.tmpl +24 -0
- package/dist/templates/plug-in/skill-bundle/.claude-plugin/plugin.json.tmpl +5 -0
- package/dist/templates/plug-in/skill-bundle/README.md.tmpl +28 -0
- package/dist/templates/plug-in/skill-bundle/gitignore.tmpl +3 -0
- package/dist/templates/plug-in/skill-bundle/jinn-plugin.json.tmpl +15 -0
- package/dist/templates/plug-in/skill-bundle/package.json.tmpl +14 -0
- package/dist/templates/plug-in/skill-bundle/skills/example/SKILL.md.tmpl +14 -0
- package/dist/templates/plug-in/skill-bundle/test/manifest.test.ts.tmpl +21 -0
- package/dist/templates/plug-in/topic-explorer/README.md.tmpl +24 -0
- package/dist/templates/plug-in/topic-explorer/agents/explorer.md.tmpl +26 -0
- package/dist/templates/plug-in/topic-explorer/gitignore.tmpl +3 -0
- package/dist/templates/plug-in/topic-explorer/jinn-plugin.json.tmpl +17 -0
- package/dist/templates/plug-in/topic-explorer/package.json.tmpl +14 -0
- package/dist/templates/plug-in/topic-explorer/test/manifest.test.ts.tmpl +22 -0
- package/dist/templates/restorer/alternative-harness/README.md.tmpl +44 -0
- package/dist/templates/restorer/alternative-harness/gitignore.tmpl +3 -0
- package/dist/templates/restorer/alternative-harness/jinn.manifest.json.tmpl +22 -0
- package/dist/templates/restorer/alternative-harness/package.json.tmpl +26 -0
- package/dist/templates/restorer/alternative-harness/src/coordinator.ts.tmpl +50 -0
- package/dist/templates/restorer/alternative-harness/src/harness.ts.tmpl +31 -0
- package/dist/templates/restorer/alternative-harness/src/index.ts.tmpl +44 -0
- package/dist/templates/restorer/alternative-harness/src/mock-harness.ts.tmpl +41 -0
- package/dist/templates/restorer/alternative-harness/src/phases/debrief.ts.tmpl +28 -0
- package/dist/templates/restorer/alternative-harness/src/phases/execute.ts.tmpl +33 -0
- package/dist/templates/restorer/alternative-harness/src/phases/improve.ts.tmpl +31 -0
- package/dist/templates/restorer/alternative-harness/src/phases/memory.ts.tmpl +31 -0
- package/dist/templates/restorer/alternative-harness/src/phases/orient.ts.tmpl +21 -0
- package/dist/templates/restorer/alternative-harness/src/phases/plan.ts.tmpl +25 -0
- package/dist/templates/restorer/alternative-harness/src/phases/strategize.ts.tmpl +29 -0
- package/dist/templates/restorer/alternative-harness/test/coordinator.test.ts.tmpl +52 -0
- package/dist/templates/restorer/alternative-harness/test/unit.test.ts.tmpl +54 -0
- package/dist/templates/restorer/alternative-harness/tsconfig.json.tmpl +16 -0
- package/dist/templates/restorer/evaluator/README.md.tmpl +36 -0
- package/dist/templates/restorer/evaluator/gitignore.tmpl +3 -0
- package/dist/templates/restorer/evaluator/jinn.manifest.json.tmpl +22 -0
- package/dist/templates/restorer/evaluator/package.json.tmpl +26 -0
- package/dist/templates/restorer/evaluator/src/index.ts.tmpl +35 -0
- package/dist/templates/restorer/evaluator/test/unit.test.ts.tmpl +48 -0
- package/dist/templates/restorer/evaluator/tsconfig.json.tmpl +16 -0
- package/dist/templates/restorer/forecaster/README.md.tmpl +25 -0
- package/dist/templates/restorer/forecaster/gitignore.tmpl +5 -0
- package/dist/templates/restorer/forecaster/jinn.manifest.json.tmpl +22 -0
- package/dist/templates/restorer/forecaster/package.json.tmpl +26 -0
- package/dist/templates/restorer/forecaster/src/index.ts.tmpl +33 -0
- package/dist/templates/restorer/forecaster/test/unit.test.ts.tmpl +41 -0
- package/dist/templates/restorer/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/desired-state.d.ts +211 -21
- package/dist/types/desired-state.js +26 -15
- package/dist/types/desired-state.js.map +1 -1
- package/dist/types/envelope.d.ts +1473 -0
- package/dist/types/envelope.js +114 -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/intent.d.ts +276 -0
- package/dist/types/intent.js +74 -0
- package/dist/types/intent.js.map +1 -0
- 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 +23 -685
- package/dist/types/portfolio.js +16 -106
- package/dist/types/portfolio.js.map +1 -1
- package/dist/types/prediction-apy.d.ts +9 -344
- package/dist/types/prediction-apy.js +9 -65
- package/dist/types/prediction-apy.js.map +1 -1
- package/dist/types/prediction.d.ts +25 -396
- package/dist/types/prediction.js +5 -79
- package/dist/types/prediction.js.map +1 -1
- 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 +22 -0
- package/dist/util/path-safety.js +29 -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/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 +36 -11
- 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 +49 -0
- package/plugins/claude-code-learner/skills/coordinator/SKILL.md +131 -0
- package/plugins/claude-code-learner/skills/debrief/SKILL.md +71 -0
- package/plugins/claude-code-learner/skills/execute/SKILL.md +91 -0
- package/plugins/claude-code-learner/skills/improve/SKILL.md +57 -0
- package/plugins/claude-code-learner/skills/memory-consolidation/SKILL.md +57 -0
- package/plugins/claude-code-learner/skills/orient/SKILL.md +82 -0
- package/plugins/claude-code-learner/skills/plan/SKILL.md +54 -0
- package/plugins/claude-code-learner/skills/strategize/SKILL.md +63 -0
- package/skills/jinn-operator/SKILL.md +84 -35
- package/templates/plug-in/hook/README.md.tmpl +24 -0
- package/templates/plug-in/hook/gitignore.tmpl +3 -0
- package/templates/plug-in/hook/hooks/event.sh.tmpl +15 -0
- package/templates/plug-in/hook/jinn-plugin.json.tmpl +16 -0
- package/templates/plug-in/hook/package.json.tmpl +14 -0
- package/templates/plug-in/hook/test/manifest.test.ts.tmpl +21 -0
- package/templates/plug-in/mcp-tool/README.md.tmpl +26 -0
- package/templates/plug-in/mcp-tool/gitignore.tmpl +4 -0
- package/templates/plug-in/mcp-tool/jinn-plugin.json.tmpl +16 -0
- package/templates/plug-in/mcp-tool/package.json.tmpl +19 -0
- package/templates/plug-in/mcp-tool/src/server.ts.tmpl +17 -0
- package/templates/plug-in/mcp-tool/test/server.test.ts.tmpl +18 -0
- package/templates/plug-in/memory-backend/README.md.tmpl +33 -0
- package/templates/plug-in/memory-backend/gitignore.tmpl +4 -0
- package/templates/plug-in/memory-backend/jinn-plugin.json.tmpl +16 -0
- package/templates/plug-in/memory-backend/package.json.tmpl +19 -0
- package/templates/plug-in/memory-backend/src/server.ts.tmpl +23 -0
- package/templates/plug-in/memory-backend/test/server.test.ts.tmpl +17 -0
- package/templates/plug-in/phase-agent-override/README.md.tmpl +30 -0
- package/templates/plug-in/phase-agent-override/agents/agent.md.tmpl +26 -0
- package/templates/plug-in/phase-agent-override/gitignore.tmpl +3 -0
- package/templates/plug-in/phase-agent-override/jinn-plugin.json.tmpl +17 -0
- package/templates/plug-in/phase-agent-override/package.json.tmpl +14 -0
- package/templates/plug-in/phase-agent-override/test/manifest.test.ts.tmpl +24 -0
- package/templates/plug-in/skill-bundle/.claude-plugin/plugin.json.tmpl +5 -0
- package/templates/plug-in/skill-bundle/README.md.tmpl +28 -0
- package/templates/plug-in/skill-bundle/gitignore.tmpl +3 -0
- package/templates/plug-in/skill-bundle/jinn-plugin.json.tmpl +15 -0
- package/templates/plug-in/skill-bundle/package.json.tmpl +14 -0
- package/templates/plug-in/skill-bundle/skills/example/SKILL.md.tmpl +14 -0
- package/templates/plug-in/skill-bundle/test/manifest.test.ts.tmpl +21 -0
- package/templates/plug-in/topic-explorer/README.md.tmpl +24 -0
- package/templates/plug-in/topic-explorer/agents/explorer.md.tmpl +26 -0
- package/templates/plug-in/topic-explorer/gitignore.tmpl +3 -0
- package/templates/plug-in/topic-explorer/jinn-plugin.json.tmpl +17 -0
- package/templates/plug-in/topic-explorer/package.json.tmpl +14 -0
- package/templates/plug-in/topic-explorer/test/manifest.test.ts.tmpl +22 -0
- package/templates/restorer/alternative-harness/README.md.tmpl +44 -0
- package/templates/restorer/alternative-harness/gitignore.tmpl +3 -0
- package/templates/restorer/alternative-harness/jinn.manifest.json.tmpl +22 -0
- package/templates/restorer/alternative-harness/package.json.tmpl +26 -0
- package/templates/restorer/alternative-harness/src/coordinator.ts.tmpl +50 -0
- package/templates/restorer/alternative-harness/src/harness.ts.tmpl +31 -0
- package/templates/restorer/alternative-harness/src/index.ts.tmpl +44 -0
- package/templates/restorer/alternative-harness/src/mock-harness.ts.tmpl +41 -0
- package/templates/restorer/alternative-harness/src/phases/debrief.ts.tmpl +28 -0
- package/templates/restorer/alternative-harness/src/phases/execute.ts.tmpl +33 -0
- package/templates/restorer/alternative-harness/src/phases/improve.ts.tmpl +31 -0
- package/templates/restorer/alternative-harness/src/phases/memory.ts.tmpl +31 -0
- package/templates/restorer/alternative-harness/src/phases/orient.ts.tmpl +21 -0
- package/templates/restorer/alternative-harness/src/phases/plan.ts.tmpl +25 -0
- package/templates/restorer/alternative-harness/src/phases/strategize.ts.tmpl +29 -0
- package/templates/restorer/alternative-harness/test/coordinator.test.ts.tmpl +52 -0
- package/templates/restorer/alternative-harness/test/unit.test.ts.tmpl +54 -0
- package/templates/restorer/alternative-harness/tsconfig.json.tmpl +16 -0
- package/templates/restorer/evaluator/README.md.tmpl +36 -0
- package/templates/restorer/evaluator/gitignore.tmpl +3 -0
- package/templates/restorer/evaluator/jinn.manifest.json.tmpl +22 -0
- package/templates/restorer/evaluator/package.json.tmpl +26 -0
- package/templates/restorer/evaluator/src/index.ts.tmpl +35 -0
- package/templates/restorer/evaluator/test/unit.test.ts.tmpl +48 -0
- package/templates/restorer/evaluator/tsconfig.json.tmpl +16 -0
- package/templates/restorer/forecaster/README.md.tmpl +25 -0
- package/templates/restorer/forecaster/gitignore.tmpl +5 -0
- package/templates/restorer/forecaster/jinn.manifest.json.tmpl +22 -0
- package/templates/restorer/forecaster/package.json.tmpl +26 -0
- package/templates/restorer/forecaster/src/index.ts.tmpl +33 -0
- package/templates/restorer/forecaster/test/unit.test.ts.tmpl +41 -0
- package/templates/restorer/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/quickstart.js +0 -330
- package/dist/cli/commands/quickstart.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/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/cli/commands/{quickstart.d.ts → ui.d.ts} +0 -0
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* prediction.v0 — typed intent spec
|
|
2
|
+
* prediction.v0 — typed intent spec.
|
|
3
3
|
*
|
|
4
4
|
* §4 of spec/2026-04-20-prediction-v0-pis-phase-1-design.md
|
|
5
|
+
*
|
|
6
|
+
* Legacy manifest schemas (prediction.v0.submission.v1, prediction.v0.verdict.v1)
|
|
7
|
+
* have been removed per scope §3.4. Use jinn.execution.v1 SignedEnvelope with
|
|
8
|
+
* PredictionV0RestorationPayloadSchema / PredictionV0VerdictPayloadSchema instead.
|
|
5
9
|
*/
|
|
6
10
|
import { z } from 'zod';
|
|
7
11
|
export declare const PredictionV0SpecSchema: z.ZodObject<{
|
|
@@ -26,13 +30,13 @@ export declare const PredictionV0SpecSchema: z.ZodObject<{
|
|
|
26
30
|
resolveTs: z.ZodNumber;
|
|
27
31
|
}, "strip", z.ZodTypeAny, {
|
|
28
32
|
kind: "threshold";
|
|
29
|
-
threshold: string;
|
|
30
33
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
34
|
+
threshold: string;
|
|
31
35
|
resolveTs: number;
|
|
32
36
|
}, {
|
|
33
37
|
kind: "threshold";
|
|
34
|
-
threshold: string;
|
|
35
38
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
39
|
+
threshold: string;
|
|
36
40
|
resolveTs: number;
|
|
37
41
|
}>, z.ZodObject<{
|
|
38
42
|
kind: z.ZodLiteral<"range">;
|
|
@@ -59,8 +63,8 @@ export declare const PredictionV0SpecSchema: z.ZodObject<{
|
|
|
59
63
|
};
|
|
60
64
|
question: {
|
|
61
65
|
kind: "threshold";
|
|
62
|
-
threshold: string;
|
|
63
66
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
67
|
+
threshold: string;
|
|
64
68
|
resolveTs: number;
|
|
65
69
|
} | {
|
|
66
70
|
kind: "range";
|
|
@@ -77,8 +81,8 @@ export declare const PredictionV0SpecSchema: z.ZodObject<{
|
|
|
77
81
|
};
|
|
78
82
|
question: {
|
|
79
83
|
kind: "threshold";
|
|
80
|
-
threshold: string;
|
|
81
84
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
85
|
+
threshold: string;
|
|
82
86
|
resolveTs: number;
|
|
83
87
|
} | {
|
|
84
88
|
kind: "range";
|
|
@@ -131,13 +135,13 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
131
135
|
resolveTs: z.ZodNumber;
|
|
132
136
|
}, "strip", z.ZodTypeAny, {
|
|
133
137
|
kind: "threshold";
|
|
134
|
-
threshold: string;
|
|
135
138
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
139
|
+
threshold: string;
|
|
136
140
|
resolveTs: number;
|
|
137
141
|
}, {
|
|
138
142
|
kind: "threshold";
|
|
139
|
-
threshold: string;
|
|
140
143
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
144
|
+
threshold: string;
|
|
141
145
|
resolveTs: number;
|
|
142
146
|
}>, z.ZodObject<{
|
|
143
147
|
kind: z.ZodLiteral<"range">;
|
|
@@ -164,8 +168,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
164
168
|
};
|
|
165
169
|
question: {
|
|
166
170
|
kind: "threshold";
|
|
167
|
-
threshold: string;
|
|
168
171
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
172
|
+
threshold: string;
|
|
169
173
|
resolveTs: number;
|
|
170
174
|
} | {
|
|
171
175
|
kind: "range";
|
|
@@ -182,8 +186,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
182
186
|
};
|
|
183
187
|
question: {
|
|
184
188
|
kind: "threshold";
|
|
185
|
-
threshold: string;
|
|
186
189
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
190
|
+
threshold: string;
|
|
187
191
|
resolveTs: number;
|
|
188
192
|
} | {
|
|
189
193
|
kind: "range";
|
|
@@ -215,8 +219,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
215
219
|
};
|
|
216
220
|
question: {
|
|
217
221
|
kind: "threshold";
|
|
218
|
-
threshold: string;
|
|
219
222
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
223
|
+
threshold: string;
|
|
220
224
|
resolveTs: number;
|
|
221
225
|
} | {
|
|
222
226
|
kind: "range";
|
|
@@ -244,8 +248,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
244
248
|
};
|
|
245
249
|
question: {
|
|
246
250
|
kind: "threshold";
|
|
247
|
-
threshold: string;
|
|
248
251
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
252
|
+
threshold: string;
|
|
249
253
|
resolveTs: number;
|
|
250
254
|
} | {
|
|
251
255
|
kind: "range";
|
|
@@ -273,8 +277,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
273
277
|
};
|
|
274
278
|
question: {
|
|
275
279
|
kind: "threshold";
|
|
276
|
-
threshold: string;
|
|
277
280
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
281
|
+
threshold: string;
|
|
278
282
|
resolveTs: number;
|
|
279
283
|
} | {
|
|
280
284
|
kind: "range";
|
|
@@ -302,8 +306,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
302
306
|
};
|
|
303
307
|
question: {
|
|
304
308
|
kind: "threshold";
|
|
305
|
-
threshold: string;
|
|
306
309
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
310
|
+
threshold: string;
|
|
307
311
|
resolveTs: number;
|
|
308
312
|
} | {
|
|
309
313
|
kind: "range";
|
|
@@ -331,8 +335,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
331
335
|
};
|
|
332
336
|
question: {
|
|
333
337
|
kind: "threshold";
|
|
334
|
-
threshold: string;
|
|
335
338
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
339
|
+
threshold: string;
|
|
336
340
|
resolveTs: number;
|
|
337
341
|
} | {
|
|
338
342
|
kind: "range";
|
|
@@ -360,8 +364,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
360
364
|
};
|
|
361
365
|
question: {
|
|
362
366
|
kind: "threshold";
|
|
363
|
-
threshold: string;
|
|
364
367
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
368
|
+
threshold: string;
|
|
365
369
|
resolveTs: number;
|
|
366
370
|
} | {
|
|
367
371
|
kind: "range";
|
|
@@ -389,8 +393,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
389
393
|
};
|
|
390
394
|
question: {
|
|
391
395
|
kind: "threshold";
|
|
392
|
-
threshold: string;
|
|
393
396
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
397
|
+
threshold: string;
|
|
394
398
|
resolveTs: number;
|
|
395
399
|
} | {
|
|
396
400
|
kind: "range";
|
|
@@ -418,8 +422,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
418
422
|
};
|
|
419
423
|
question: {
|
|
420
424
|
kind: "threshold";
|
|
421
|
-
threshold: string;
|
|
422
425
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
426
|
+
threshold: string;
|
|
423
427
|
resolveTs: number;
|
|
424
428
|
} | {
|
|
425
429
|
kind: "range";
|
|
@@ -447,8 +451,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
447
451
|
};
|
|
448
452
|
question: {
|
|
449
453
|
kind: "threshold";
|
|
450
|
-
threshold: string;
|
|
451
454
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
455
|
+
threshold: string;
|
|
452
456
|
resolveTs: number;
|
|
453
457
|
} | {
|
|
454
458
|
kind: "range";
|
|
@@ -476,8 +480,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
476
480
|
};
|
|
477
481
|
question: {
|
|
478
482
|
kind: "threshold";
|
|
479
|
-
threshold: string;
|
|
480
483
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
484
|
+
threshold: string;
|
|
481
485
|
resolveTs: number;
|
|
482
486
|
} | {
|
|
483
487
|
kind: "range";
|
|
@@ -505,8 +509,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
505
509
|
};
|
|
506
510
|
question: {
|
|
507
511
|
kind: "threshold";
|
|
508
|
-
threshold: string;
|
|
509
512
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
513
|
+
threshold: string;
|
|
510
514
|
resolveTs: number;
|
|
511
515
|
} | {
|
|
512
516
|
kind: "range";
|
|
@@ -534,8 +538,8 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
534
538
|
};
|
|
535
539
|
question: {
|
|
536
540
|
kind: "threshold";
|
|
537
|
-
threshold: string;
|
|
538
541
|
operator: "GT" | "GTE" | "LT" | "LTE";
|
|
542
|
+
threshold: string;
|
|
539
543
|
resolveTs: number;
|
|
540
544
|
} | {
|
|
541
545
|
kind: "range";
|
|
@@ -549,378 +553,3 @@ export declare const PredictionV0IntentSchema: z.ZodEffects<z.ZodEffects<z.ZodEf
|
|
|
549
553
|
} | undefined;
|
|
550
554
|
}>;
|
|
551
555
|
export type PredictionV0Intent = z.infer<typeof PredictionV0IntentSchema>;
|
|
552
|
-
export declare const PredictionSubmissionManifestSchema: z.ZodObject<{
|
|
553
|
-
schemaVersion: z.ZodLiteral<"prediction.v0.submission.v1">;
|
|
554
|
-
generatedAt: z.ZodNumber;
|
|
555
|
-
intent: z.ZodObject<{
|
|
556
|
-
cid: z.ZodString;
|
|
557
|
-
onchainCreationTx: z.ZodString;
|
|
558
|
-
onchainCreationBlock: z.ZodNumber;
|
|
559
|
-
requestId: z.ZodString;
|
|
560
|
-
}, "strip", z.ZodTypeAny, {
|
|
561
|
-
cid: string;
|
|
562
|
-
onchainCreationTx: string;
|
|
563
|
-
onchainCreationBlock: number;
|
|
564
|
-
requestId: string;
|
|
565
|
-
}, {
|
|
566
|
-
cid: string;
|
|
567
|
-
onchainCreationTx: string;
|
|
568
|
-
onchainCreationBlock: number;
|
|
569
|
-
requestId: string;
|
|
570
|
-
}>;
|
|
571
|
-
restorer: z.ZodObject<{
|
|
572
|
-
safeAddress: z.ZodString;
|
|
573
|
-
agentEoa: z.ZodString;
|
|
574
|
-
}, "strip", z.ZodTypeAny, {
|
|
575
|
-
safeAddress: string;
|
|
576
|
-
agentEoa: string;
|
|
577
|
-
}, {
|
|
578
|
-
safeAddress: string;
|
|
579
|
-
agentEoa: string;
|
|
580
|
-
}>;
|
|
581
|
-
window: z.ZodObject<{
|
|
582
|
-
startTs: z.ZodNumber;
|
|
583
|
-
endTs: z.ZodNumber;
|
|
584
|
-
}, "strip", z.ZodTypeAny, {
|
|
585
|
-
startTs: number;
|
|
586
|
-
endTs: number;
|
|
587
|
-
}, {
|
|
588
|
-
startTs: number;
|
|
589
|
-
endTs: number;
|
|
590
|
-
}>;
|
|
591
|
-
prediction: z.ZodObject<{
|
|
592
|
-
probability: z.ZodString;
|
|
593
|
-
submittedAt: z.ZodNumber;
|
|
594
|
-
modelId: z.ZodString;
|
|
595
|
-
}, "strip", z.ZodTypeAny, {
|
|
596
|
-
probability: string;
|
|
597
|
-
submittedAt: number;
|
|
598
|
-
modelId: string;
|
|
599
|
-
}, {
|
|
600
|
-
probability: string;
|
|
601
|
-
submittedAt: number;
|
|
602
|
-
modelId: string;
|
|
603
|
-
}>;
|
|
604
|
-
oracleSnapshot: z.ZodOptional<z.ZodObject<{
|
|
605
|
-
feed: z.ZodString;
|
|
606
|
-
roundId: z.ZodString;
|
|
607
|
-
answer: z.ZodString;
|
|
608
|
-
updatedAt: z.ZodNumber;
|
|
609
|
-
}, "strip", z.ZodTypeAny, {
|
|
610
|
-
feed: string;
|
|
611
|
-
roundId: string;
|
|
612
|
-
answer: string;
|
|
613
|
-
updatedAt: number;
|
|
614
|
-
}, {
|
|
615
|
-
feed: string;
|
|
616
|
-
roundId: string;
|
|
617
|
-
answer: string;
|
|
618
|
-
updatedAt: number;
|
|
619
|
-
}>>;
|
|
620
|
-
rationale: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
621
|
-
ts: z.ZodNumber;
|
|
622
|
-
note: z.ZodString;
|
|
623
|
-
}, "strip", z.ZodTypeAny, {
|
|
624
|
-
ts: number;
|
|
625
|
-
note: string;
|
|
626
|
-
}, {
|
|
627
|
-
ts: number;
|
|
628
|
-
note: string;
|
|
629
|
-
}>, "many">>;
|
|
630
|
-
signature: z.ZodObject<{
|
|
631
|
-
algo: z.ZodLiteral<"secp256k1">;
|
|
632
|
-
signer: z.ZodString;
|
|
633
|
-
hash: z.ZodString;
|
|
634
|
-
sig: z.ZodString;
|
|
635
|
-
}, "strip", z.ZodTypeAny, {
|
|
636
|
-
hash: string;
|
|
637
|
-
algo: "secp256k1";
|
|
638
|
-
signer: string;
|
|
639
|
-
sig: string;
|
|
640
|
-
}, {
|
|
641
|
-
hash: string;
|
|
642
|
-
algo: "secp256k1";
|
|
643
|
-
signer: string;
|
|
644
|
-
sig: string;
|
|
645
|
-
}>;
|
|
646
|
-
}, "strip", z.ZodTypeAny, {
|
|
647
|
-
signature: {
|
|
648
|
-
hash: string;
|
|
649
|
-
algo: "secp256k1";
|
|
650
|
-
signer: string;
|
|
651
|
-
sig: string;
|
|
652
|
-
};
|
|
653
|
-
window: {
|
|
654
|
-
startTs: number;
|
|
655
|
-
endTs: number;
|
|
656
|
-
};
|
|
657
|
-
schemaVersion: "prediction.v0.submission.v1";
|
|
658
|
-
generatedAt: number;
|
|
659
|
-
intent: {
|
|
660
|
-
cid: string;
|
|
661
|
-
onchainCreationTx: string;
|
|
662
|
-
onchainCreationBlock: number;
|
|
663
|
-
requestId: string;
|
|
664
|
-
};
|
|
665
|
-
restorer: {
|
|
666
|
-
safeAddress: string;
|
|
667
|
-
agentEoa: string;
|
|
668
|
-
};
|
|
669
|
-
prediction: {
|
|
670
|
-
probability: string;
|
|
671
|
-
submittedAt: number;
|
|
672
|
-
modelId: string;
|
|
673
|
-
};
|
|
674
|
-
rationale?: {
|
|
675
|
-
ts: number;
|
|
676
|
-
note: string;
|
|
677
|
-
}[] | undefined;
|
|
678
|
-
oracleSnapshot?: {
|
|
679
|
-
feed: string;
|
|
680
|
-
roundId: string;
|
|
681
|
-
answer: string;
|
|
682
|
-
updatedAt: number;
|
|
683
|
-
} | undefined;
|
|
684
|
-
}, {
|
|
685
|
-
signature: {
|
|
686
|
-
hash: string;
|
|
687
|
-
algo: "secp256k1";
|
|
688
|
-
signer: string;
|
|
689
|
-
sig: string;
|
|
690
|
-
};
|
|
691
|
-
window: {
|
|
692
|
-
startTs: number;
|
|
693
|
-
endTs: number;
|
|
694
|
-
};
|
|
695
|
-
schemaVersion: "prediction.v0.submission.v1";
|
|
696
|
-
generatedAt: number;
|
|
697
|
-
intent: {
|
|
698
|
-
cid: string;
|
|
699
|
-
onchainCreationTx: string;
|
|
700
|
-
onchainCreationBlock: number;
|
|
701
|
-
requestId: string;
|
|
702
|
-
};
|
|
703
|
-
restorer: {
|
|
704
|
-
safeAddress: string;
|
|
705
|
-
agentEoa: string;
|
|
706
|
-
};
|
|
707
|
-
prediction: {
|
|
708
|
-
probability: string;
|
|
709
|
-
submittedAt: number;
|
|
710
|
-
modelId: string;
|
|
711
|
-
};
|
|
712
|
-
rationale?: {
|
|
713
|
-
ts: number;
|
|
714
|
-
note: string;
|
|
715
|
-
}[] | undefined;
|
|
716
|
-
oracleSnapshot?: {
|
|
717
|
-
feed: string;
|
|
718
|
-
roundId: string;
|
|
719
|
-
answer: string;
|
|
720
|
-
updatedAt: number;
|
|
721
|
-
} | undefined;
|
|
722
|
-
}>;
|
|
723
|
-
export type PredictionSubmissionManifest = z.infer<typeof PredictionSubmissionManifestSchema>;
|
|
724
|
-
export declare const PredictionVerdictManifestSchema: z.ZodObject<{
|
|
725
|
-
schemaVersion: z.ZodLiteral<"prediction.v0.verdict.v1">;
|
|
726
|
-
generatedAt: z.ZodNumber;
|
|
727
|
-
intent: z.ZodObject<{
|
|
728
|
-
cid: z.ZodString;
|
|
729
|
-
onchainCreationTx: z.ZodString;
|
|
730
|
-
onchainCreationBlock: z.ZodNumber;
|
|
731
|
-
requestId: z.ZodString;
|
|
732
|
-
}, "strip", z.ZodTypeAny, {
|
|
733
|
-
cid: string;
|
|
734
|
-
onchainCreationTx: string;
|
|
735
|
-
onchainCreationBlock: number;
|
|
736
|
-
requestId: string;
|
|
737
|
-
}, {
|
|
738
|
-
cid: string;
|
|
739
|
-
onchainCreationTx: string;
|
|
740
|
-
onchainCreationBlock: number;
|
|
741
|
-
requestId: string;
|
|
742
|
-
}>;
|
|
743
|
-
evaluator: z.ZodObject<{
|
|
744
|
-
safeAddress: z.ZodString;
|
|
745
|
-
agentEoa: z.ZodString;
|
|
746
|
-
}, "strip", z.ZodTypeAny, {
|
|
747
|
-
safeAddress: string;
|
|
748
|
-
agentEoa: string;
|
|
749
|
-
}, {
|
|
750
|
-
safeAddress: string;
|
|
751
|
-
agentEoa: string;
|
|
752
|
-
}>;
|
|
753
|
-
window: z.ZodObject<{
|
|
754
|
-
startTs: z.ZodNumber;
|
|
755
|
-
endTs: z.ZodNumber;
|
|
756
|
-
}, "strip", z.ZodTypeAny, {
|
|
757
|
-
startTs: number;
|
|
758
|
-
endTs: number;
|
|
759
|
-
}, {
|
|
760
|
-
startTs: number;
|
|
761
|
-
endTs: number;
|
|
762
|
-
}>;
|
|
763
|
-
verdict: z.ZodEnum<["PASS", "FAIL", "REJECTED", "INDETERMINATE"]>;
|
|
764
|
-
score: z.ZodString;
|
|
765
|
-
scoreBasis: z.ZodLiteral<"brier.v1">;
|
|
766
|
-
scoreVersion: z.ZodString;
|
|
767
|
-
oracleReading: z.ZodObject<{
|
|
768
|
-
feed: z.ZodString;
|
|
769
|
-
roundId: z.ZodString;
|
|
770
|
-
answer: z.ZodString;
|
|
771
|
-
updatedAt: z.ZodNumber;
|
|
772
|
-
nextRoundUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
773
|
-
}, "strip", z.ZodTypeAny, {
|
|
774
|
-
feed: string;
|
|
775
|
-
roundId: string;
|
|
776
|
-
answer: string;
|
|
777
|
-
updatedAt: number;
|
|
778
|
-
nextRoundUpdatedAt?: number | undefined;
|
|
779
|
-
}, {
|
|
780
|
-
feed: string;
|
|
781
|
-
roundId: string;
|
|
782
|
-
answer: string;
|
|
783
|
-
updatedAt: number;
|
|
784
|
-
nextRoundUpdatedAt?: number | undefined;
|
|
785
|
-
}>;
|
|
786
|
-
claimed: z.ZodObject<{
|
|
787
|
-
probability: z.ZodString;
|
|
788
|
-
submittedAt: z.ZodNumber;
|
|
789
|
-
modelId: z.ZodString;
|
|
790
|
-
/** Present when the submission was registered on IPFS; omitted for inline/dev. */
|
|
791
|
-
submissionManifestCid: z.ZodOptional<z.ZodString>;
|
|
792
|
-
}, "strip", z.ZodTypeAny, {
|
|
793
|
-
probability: string;
|
|
794
|
-
submittedAt: number;
|
|
795
|
-
modelId: string;
|
|
796
|
-
submissionManifestCid?: string | undefined;
|
|
797
|
-
}, {
|
|
798
|
-
probability: string;
|
|
799
|
-
submittedAt: number;
|
|
800
|
-
modelId: string;
|
|
801
|
-
submissionManifestCid?: string | undefined;
|
|
802
|
-
}>;
|
|
803
|
-
groundTruth: z.ZodEnum<["YES", "NO"]>;
|
|
804
|
-
checks: z.ZodArray<z.ZodObject<{
|
|
805
|
-
name: z.ZodString;
|
|
806
|
-
status: z.ZodEnum<["PASS", "FAIL", "SKIP", "INDETERMINATE"]>;
|
|
807
|
-
detail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
808
|
-
}, "strip", z.ZodTypeAny, {
|
|
809
|
-
name: string;
|
|
810
|
-
status: "PASS" | "FAIL" | "SKIP" | "INDETERMINATE";
|
|
811
|
-
detail?: string | Record<string, unknown> | undefined;
|
|
812
|
-
}, {
|
|
813
|
-
name: string;
|
|
814
|
-
status: "PASS" | "FAIL" | "SKIP" | "INDETERMINATE";
|
|
815
|
-
detail?: string | Record<string, unknown> | undefined;
|
|
816
|
-
}>, "many">;
|
|
817
|
-
signature: z.ZodObject<{
|
|
818
|
-
algo: z.ZodLiteral<"secp256k1">;
|
|
819
|
-
signer: z.ZodString;
|
|
820
|
-
hash: z.ZodString;
|
|
821
|
-
sig: z.ZodString;
|
|
822
|
-
}, "strip", z.ZodTypeAny, {
|
|
823
|
-
hash: string;
|
|
824
|
-
algo: "secp256k1";
|
|
825
|
-
signer: string;
|
|
826
|
-
sig: string;
|
|
827
|
-
}, {
|
|
828
|
-
hash: string;
|
|
829
|
-
algo: "secp256k1";
|
|
830
|
-
signer: string;
|
|
831
|
-
sig: string;
|
|
832
|
-
}>;
|
|
833
|
-
}, "strip", z.ZodTypeAny, {
|
|
834
|
-
signature: {
|
|
835
|
-
hash: string;
|
|
836
|
-
algo: "secp256k1";
|
|
837
|
-
signer: string;
|
|
838
|
-
sig: string;
|
|
839
|
-
};
|
|
840
|
-
window: {
|
|
841
|
-
startTs: number;
|
|
842
|
-
endTs: number;
|
|
843
|
-
};
|
|
844
|
-
schemaVersion: "prediction.v0.verdict.v1";
|
|
845
|
-
generatedAt: number;
|
|
846
|
-
intent: {
|
|
847
|
-
cid: string;
|
|
848
|
-
onchainCreationTx: string;
|
|
849
|
-
onchainCreationBlock: number;
|
|
850
|
-
requestId: string;
|
|
851
|
-
};
|
|
852
|
-
evaluator: {
|
|
853
|
-
safeAddress: string;
|
|
854
|
-
agentEoa: string;
|
|
855
|
-
};
|
|
856
|
-
verdict: "PASS" | "FAIL" | "REJECTED" | "INDETERMINATE";
|
|
857
|
-
score: string;
|
|
858
|
-
scoreBasis: "brier.v1";
|
|
859
|
-
scoreVersion: string;
|
|
860
|
-
claimed: {
|
|
861
|
-
probability: string;
|
|
862
|
-
submittedAt: number;
|
|
863
|
-
modelId: string;
|
|
864
|
-
submissionManifestCid?: string | undefined;
|
|
865
|
-
};
|
|
866
|
-
checks: {
|
|
867
|
-
name: string;
|
|
868
|
-
status: "PASS" | "FAIL" | "SKIP" | "INDETERMINATE";
|
|
869
|
-
detail?: string | Record<string, unknown> | undefined;
|
|
870
|
-
}[];
|
|
871
|
-
oracleReading: {
|
|
872
|
-
feed: string;
|
|
873
|
-
roundId: string;
|
|
874
|
-
answer: string;
|
|
875
|
-
updatedAt: number;
|
|
876
|
-
nextRoundUpdatedAt?: number | undefined;
|
|
877
|
-
};
|
|
878
|
-
groundTruth: "YES" | "NO";
|
|
879
|
-
}, {
|
|
880
|
-
signature: {
|
|
881
|
-
hash: string;
|
|
882
|
-
algo: "secp256k1";
|
|
883
|
-
signer: string;
|
|
884
|
-
sig: string;
|
|
885
|
-
};
|
|
886
|
-
window: {
|
|
887
|
-
startTs: number;
|
|
888
|
-
endTs: number;
|
|
889
|
-
};
|
|
890
|
-
schemaVersion: "prediction.v0.verdict.v1";
|
|
891
|
-
generatedAt: number;
|
|
892
|
-
intent: {
|
|
893
|
-
cid: string;
|
|
894
|
-
onchainCreationTx: string;
|
|
895
|
-
onchainCreationBlock: number;
|
|
896
|
-
requestId: string;
|
|
897
|
-
};
|
|
898
|
-
evaluator: {
|
|
899
|
-
safeAddress: string;
|
|
900
|
-
agentEoa: string;
|
|
901
|
-
};
|
|
902
|
-
verdict: "PASS" | "FAIL" | "REJECTED" | "INDETERMINATE";
|
|
903
|
-
score: string;
|
|
904
|
-
scoreBasis: "brier.v1";
|
|
905
|
-
scoreVersion: string;
|
|
906
|
-
claimed: {
|
|
907
|
-
probability: string;
|
|
908
|
-
submittedAt: number;
|
|
909
|
-
modelId: string;
|
|
910
|
-
submissionManifestCid?: string | undefined;
|
|
911
|
-
};
|
|
912
|
-
checks: {
|
|
913
|
-
name: string;
|
|
914
|
-
status: "PASS" | "FAIL" | "SKIP" | "INDETERMINATE";
|
|
915
|
-
detail?: string | Record<string, unknown> | undefined;
|
|
916
|
-
}[];
|
|
917
|
-
oracleReading: {
|
|
918
|
-
feed: string;
|
|
919
|
-
roundId: string;
|
|
920
|
-
answer: string;
|
|
921
|
-
updatedAt: number;
|
|
922
|
-
nextRoundUpdatedAt?: number | undefined;
|
|
923
|
-
};
|
|
924
|
-
groundTruth: "YES" | "NO";
|
|
925
|
-
}>;
|
|
926
|
-
export type PredictionVerdictManifest = z.infer<typeof PredictionVerdictManifestSchema>;
|
package/dist/types/prediction.js
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* prediction.v0 — typed intent spec
|
|
2
|
+
* prediction.v0 — typed intent spec.
|
|
3
3
|
*
|
|
4
4
|
* §4 of spec/2026-04-20-prediction-v0-pis-phase-1-design.md
|
|
5
|
+
*
|
|
6
|
+
* Legacy manifest schemas (prediction.v0.submission.v1, prediction.v0.verdict.v1)
|
|
7
|
+
* have been removed per scope §3.4. Use jinn.execution.v1 SignedEnvelope with
|
|
8
|
+
* PredictionV0RestorationPayloadSchema / PredictionV0VerdictPayloadSchema instead.
|
|
5
9
|
*/
|
|
6
10
|
import { z } from 'zod';
|
|
7
11
|
import { WindowSchema } from './desired-state.js';
|
|
8
12
|
const HexStringSchema = z.string().regex(/^0x[0-9a-fA-F]*$/, 'must be a 0x-prefixed hex string');
|
|
9
|
-
const SignatureSchema = z.object({
|
|
10
|
-
algo: z.literal('secp256k1'),
|
|
11
|
-
signer: HexStringSchema,
|
|
12
|
-
hash: HexStringSchema,
|
|
13
|
-
sig: HexStringSchema,
|
|
14
|
-
});
|
|
15
|
-
const IntentProvenanceSchema = z.object({
|
|
16
|
-
cid: z.string().min(1),
|
|
17
|
-
onchainCreationTx: HexStringSchema,
|
|
18
|
-
onchainCreationBlock: z.number().int(),
|
|
19
|
-
requestId: HexStringSchema,
|
|
20
|
-
});
|
|
21
|
-
const ParticipantSchema = z.object({
|
|
22
|
-
safeAddress: HexStringSchema,
|
|
23
|
-
agentEoa: HexStringSchema,
|
|
24
|
-
});
|
|
25
13
|
// ── Question kinds ────────────────────────────────────────────────────────────
|
|
26
14
|
const ThresholdQuestionSchema = z.object({
|
|
27
15
|
kind: z.literal('threshold'),
|
|
@@ -76,66 +64,4 @@ export const PredictionV0IntentSchema = z
|
|
|
76
64
|
message: 'resolve gap (resolveTs - endTs) must be ≤ 1 hour',
|
|
77
65
|
path: ['spec', 'question', 'resolveTs'],
|
|
78
66
|
});
|
|
79
|
-
// ── Submission manifest ───────────────────────────────────────────────────────
|
|
80
|
-
export const PredictionSubmissionManifestSchema = z.object({
|
|
81
|
-
schemaVersion: z.literal('prediction.v0.submission.v1'),
|
|
82
|
-
generatedAt: z.number().int(),
|
|
83
|
-
intent: IntentProvenanceSchema,
|
|
84
|
-
restorer: ParticipantSchema,
|
|
85
|
-
window: WindowSchema,
|
|
86
|
-
prediction: z.object({
|
|
87
|
-
probability: z.string().regex(/^(0(\.\d+)?|1(\.0+)?)$/, 'must be a decimal in [0,1]'),
|
|
88
|
-
submittedAt: z.number().int(),
|
|
89
|
-
modelId: z.string().min(1),
|
|
90
|
-
}),
|
|
91
|
-
oracleSnapshot: z
|
|
92
|
-
.object({
|
|
93
|
-
feed: HexStringSchema,
|
|
94
|
-
roundId: z.string(),
|
|
95
|
-
answer: z.string(),
|
|
96
|
-
updatedAt: z.number().int(),
|
|
97
|
-
})
|
|
98
|
-
.optional(),
|
|
99
|
-
rationale: z
|
|
100
|
-
.array(z.object({
|
|
101
|
-
ts: z.number().int(),
|
|
102
|
-
note: z.string(),
|
|
103
|
-
}))
|
|
104
|
-
.optional(),
|
|
105
|
-
signature: SignatureSchema,
|
|
106
|
-
});
|
|
107
|
-
// ── Verdict manifest ──────────────────────────────────────────────────────────
|
|
108
|
-
const CheckSchema = z.object({
|
|
109
|
-
name: z.string(),
|
|
110
|
-
status: z.enum(['PASS', 'FAIL', 'SKIP', 'INDETERMINATE']),
|
|
111
|
-
detail: z.union([z.string(), z.record(z.unknown())]).optional(),
|
|
112
|
-
});
|
|
113
|
-
export const PredictionVerdictManifestSchema = z.object({
|
|
114
|
-
schemaVersion: z.literal('prediction.v0.verdict.v1'),
|
|
115
|
-
generatedAt: z.number().int(),
|
|
116
|
-
intent: IntentProvenanceSchema,
|
|
117
|
-
evaluator: ParticipantSchema,
|
|
118
|
-
window: WindowSchema,
|
|
119
|
-
verdict: z.enum(['PASS', 'FAIL', 'REJECTED', 'INDETERMINATE']),
|
|
120
|
-
score: z.string(),
|
|
121
|
-
scoreBasis: z.literal('brier.v1'),
|
|
122
|
-
scoreVersion: z.string(),
|
|
123
|
-
oracleReading: z.object({
|
|
124
|
-
feed: HexStringSchema,
|
|
125
|
-
roundId: z.string(),
|
|
126
|
-
answer: z.string(),
|
|
127
|
-
updatedAt: z.number().int(),
|
|
128
|
-
nextRoundUpdatedAt: z.number().int().optional(),
|
|
129
|
-
}),
|
|
130
|
-
claimed: z.object({
|
|
131
|
-
probability: z.string(),
|
|
132
|
-
submittedAt: z.number().int(),
|
|
133
|
-
modelId: z.string(),
|
|
134
|
-
/** Present when the submission was registered on IPFS; omitted for inline/dev. */
|
|
135
|
-
submissionManifestCid: z.string().min(1).optional(),
|
|
136
|
-
}),
|
|
137
|
-
groundTruth: z.enum(['YES', 'NO']),
|
|
138
|
-
checks: z.array(CheckSchema),
|
|
139
|
-
signature: SignatureSchema,
|
|
140
|
-
});
|
|
141
67
|
//# sourceMappingURL=prediction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prediction.js","sourceRoot":"","sources":["../../src/types/prediction.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"prediction.js","sourceRoot":"","sources":["../../src/types/prediction.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAkB,EAAE,kCAAkC,CAAC,CAAC;AAEjG,iFAAiF;AAEjF,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC5B,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC5B,CAAC,CAAC;AAEH,kFAAkF;AAElF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;QAC3D,IAAI,EAAE,eAAe;QACrB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;KAC5B,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;CACvF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;CACvD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,6BAA6B,CAAC,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE;IAC9C,OAAO,EAAE,uCAAuC;IAChD,IAAI,EAAE,CAAC,QAAQ,CAAC;CACjB,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,EAAE;IACxD,OAAO,EAAE,kCAAkC;IAC3C,IAAI,EAAE,CAAC,QAAQ,CAAC;CACjB,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,IAAI,UAAU,EAAE;IAC5D,OAAO,EAAE,iCAAiC;IAC1C,IAAI,EAAE,CAAC,QAAQ,CAAC;CACjB,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE;IACxD,OAAO,EAAE,kCAAkC;IAC3C,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC;CACxC,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,SAAS,EAAE;IACpE,OAAO,EAAE,kDAAkD;IAC3D,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC;CACxC,CAAC,CAAC"}
|