@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,62 +1,46 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* portfolio.v0 — typed intent spec
|
|
2
|
+
* portfolio.v0 — typed intent spec.
|
|
3
3
|
*
|
|
4
|
-
* §4
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* §4 portfolio.v0 concrete intent shape
|
|
5
|
+
*
|
|
6
|
+
* Legacy manifest schemas (portfolio.v0.manifest.v1, portfolio.v0.eval.manifest.v1)
|
|
7
|
+
* have been removed per scope §3.4. Use jinn.execution.v1 SignedEnvelope with
|
|
8
|
+
* PortfolioV0RestorationPayloadSchema / PortfolioV0VerdictPayloadSchema instead.
|
|
7
9
|
*/
|
|
8
10
|
import { z } from 'zod';
|
|
9
|
-
declare const SnapshotSchema: z.ZodObject<{
|
|
10
|
-
capturedAt: z.ZodNumber;
|
|
11
|
-
hlTime: z.ZodNumber;
|
|
12
|
-
payload: z.ZodUnknown;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
capturedAt: number;
|
|
15
|
-
hlTime: number;
|
|
16
|
-
payload?: unknown;
|
|
17
|
-
}, {
|
|
18
|
-
capturedAt: number;
|
|
19
|
-
hlTime: number;
|
|
20
|
-
payload?: unknown;
|
|
21
|
-
}>;
|
|
22
11
|
declare const ArtifactSchema: z.ZodObject<{
|
|
23
12
|
cid: z.ZodString;
|
|
24
|
-
|
|
13
|
+
artifactType: z.ZodString;
|
|
25
14
|
sha256: z.ZodOptional<z.ZodString>;
|
|
26
15
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
27
16
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
17
|
access: z.ZodOptional<z.ZodObject<{
|
|
29
|
-
kind: z.ZodEnum<["open", "x402-gated"]>;
|
|
30
18
|
endpoint: z.ZodOptional<z.ZodString>;
|
|
31
19
|
priceUsdc: z.ZodOptional<z.ZodString>;
|
|
32
20
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
kind: "open" | "x402-gated";
|
|
34
21
|
endpoint?: string | undefined;
|
|
35
22
|
priceUsdc?: string | undefined;
|
|
36
23
|
}, {
|
|
37
|
-
kind: "open" | "x402-gated";
|
|
38
24
|
endpoint?: string | undefined;
|
|
39
25
|
priceUsdc?: string | undefined;
|
|
40
26
|
}>>;
|
|
41
27
|
}, "strip", z.ZodTypeAny, {
|
|
42
28
|
cid: string;
|
|
43
|
-
|
|
29
|
+
artifactType: string;
|
|
44
30
|
sha256?: string | undefined;
|
|
45
31
|
metadata?: Record<string, unknown> | undefined;
|
|
46
32
|
tags?: string[] | undefined;
|
|
47
33
|
access?: {
|
|
48
|
-
kind: "open" | "x402-gated";
|
|
49
34
|
endpoint?: string | undefined;
|
|
50
35
|
priceUsdc?: string | undefined;
|
|
51
36
|
} | undefined;
|
|
52
37
|
}, {
|
|
53
38
|
cid: string;
|
|
54
|
-
|
|
39
|
+
artifactType: string;
|
|
55
40
|
sha256?: string | undefined;
|
|
56
41
|
metadata?: Record<string, unknown> | undefined;
|
|
57
42
|
tags?: string[] | undefined;
|
|
58
43
|
access?: {
|
|
59
|
-
kind: "open" | "x402-gated";
|
|
60
44
|
endpoint?: string | undefined;
|
|
61
45
|
priceUsdc?: string | undefined;
|
|
62
46
|
} | undefined;
|
|
@@ -66,6 +50,19 @@ export type Artifact = z.infer<typeof ArtifactSchema>;
|
|
|
66
50
|
export type OutputArtifact = Omit<Artifact, 'cid' | 'sha256'> & {
|
|
67
51
|
path: string;
|
|
68
52
|
};
|
|
53
|
+
declare const SnapshotSchema: z.ZodObject<{
|
|
54
|
+
capturedAt: z.ZodNumber;
|
|
55
|
+
hlTime: z.ZodNumber;
|
|
56
|
+
payload: z.ZodUnknown;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
capturedAt: number;
|
|
59
|
+
hlTime: number;
|
|
60
|
+
payload?: unknown;
|
|
61
|
+
}, {
|
|
62
|
+
capturedAt: number;
|
|
63
|
+
hlTime: number;
|
|
64
|
+
payload?: unknown;
|
|
65
|
+
}>;
|
|
69
66
|
export type Snapshot = z.infer<typeof SnapshotSchema>;
|
|
70
67
|
export declare const PortfolioV0SpecSchema: z.ZodObject<{
|
|
71
68
|
kind: z.ZodLiteral<"portfolio.v0">;
|
|
@@ -136,7 +133,7 @@ export declare const PortfolioV0EligibilitySchema: z.ZodObject<{
|
|
|
136
133
|
}>;
|
|
137
134
|
export type PortfolioV0Eligibility = z.infer<typeof PortfolioV0EligibilitySchema>;
|
|
138
135
|
/**
|
|
139
|
-
* Full portfolio.v0 intent — composes the generic
|
|
136
|
+
* Full portfolio.v0 intent — composes the generic RestorationJob fields with the
|
|
140
137
|
* portfolio-specific spec + eligibility fields. The 24 h window constraint is
|
|
141
138
|
* enforced by a Zod refinement.
|
|
142
139
|
*/
|
|
@@ -338,663 +335,4 @@ declare const RationaleEntrySchema: z.ZodObject<{
|
|
|
338
335
|
relatedFillTids?: number[] | undefined;
|
|
339
336
|
}>;
|
|
340
337
|
export type RationaleEntry = z.infer<typeof RationaleEntrySchema>;
|
|
341
|
-
export declare const RestorationManifestSchema: z.ZodObject<{
|
|
342
|
-
schemaVersion: z.ZodLiteral<"portfolio.v0.manifest.v1">;
|
|
343
|
-
generatedAt: z.ZodNumber;
|
|
344
|
-
intent: z.ZodObject<{
|
|
345
|
-
cid: z.ZodString;
|
|
346
|
-
onchainCreationTx: z.ZodString;
|
|
347
|
-
onchainCreationBlock: z.ZodNumber;
|
|
348
|
-
requestId: z.ZodString;
|
|
349
|
-
}, "strip", z.ZodTypeAny, {
|
|
350
|
-
cid: string;
|
|
351
|
-
onchainCreationTx: string;
|
|
352
|
-
onchainCreationBlock: number;
|
|
353
|
-
requestId: string;
|
|
354
|
-
}, {
|
|
355
|
-
cid: string;
|
|
356
|
-
onchainCreationTx: string;
|
|
357
|
-
onchainCreationBlock: number;
|
|
358
|
-
requestId: string;
|
|
359
|
-
}>;
|
|
360
|
-
restorer: z.ZodObject<{
|
|
361
|
-
safeAddress: z.ZodString;
|
|
362
|
-
agentEoa: z.ZodString;
|
|
363
|
-
}, "strip", z.ZodTypeAny, {
|
|
364
|
-
safeAddress: string;
|
|
365
|
-
agentEoa: string;
|
|
366
|
-
}, {
|
|
367
|
-
safeAddress: string;
|
|
368
|
-
agentEoa: string;
|
|
369
|
-
}>;
|
|
370
|
-
window: z.ZodObject<{
|
|
371
|
-
startTs: z.ZodNumber;
|
|
372
|
-
endTs: z.ZodNumber;
|
|
373
|
-
}, "strip", z.ZodTypeAny, {
|
|
374
|
-
startTs: number;
|
|
375
|
-
endTs: number;
|
|
376
|
-
}, {
|
|
377
|
-
startTs: number;
|
|
378
|
-
endTs: number;
|
|
379
|
-
}>;
|
|
380
|
-
preSnapshot: z.ZodObject<{
|
|
381
|
-
capturedAt: z.ZodNumber;
|
|
382
|
-
hlTime: z.ZodNumber;
|
|
383
|
-
payload: z.ZodUnknown;
|
|
384
|
-
}, "strip", z.ZodTypeAny, {
|
|
385
|
-
capturedAt: number;
|
|
386
|
-
hlTime: number;
|
|
387
|
-
payload?: unknown;
|
|
388
|
-
}, {
|
|
389
|
-
capturedAt: number;
|
|
390
|
-
hlTime: number;
|
|
391
|
-
payload?: unknown;
|
|
392
|
-
}>;
|
|
393
|
-
postSnapshot: z.ZodObject<{
|
|
394
|
-
capturedAt: z.ZodNumber;
|
|
395
|
-
hlTime: z.ZodNumber;
|
|
396
|
-
payload: z.ZodUnknown;
|
|
397
|
-
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
capturedAt: number;
|
|
399
|
-
hlTime: number;
|
|
400
|
-
payload?: unknown;
|
|
401
|
-
}, {
|
|
402
|
-
capturedAt: number;
|
|
403
|
-
hlTime: number;
|
|
404
|
-
payload?: unknown;
|
|
405
|
-
}>;
|
|
406
|
-
fills: z.ZodArray<z.ZodUnknown, "many">;
|
|
407
|
-
gating: z.ZodObject<{
|
|
408
|
-
equityReturnPct: z.ZodString;
|
|
409
|
-
maxDrawdownPct: z.ZodString;
|
|
410
|
-
closedTradesCount: z.ZodNumber;
|
|
411
|
-
tradedNotionalMultiple: z.ZodString;
|
|
412
|
-
}, "strip", z.ZodTypeAny, {
|
|
413
|
-
maxDrawdownPct: string;
|
|
414
|
-
equityReturnPct: string;
|
|
415
|
-
closedTradesCount: number;
|
|
416
|
-
tradedNotionalMultiple: string;
|
|
417
|
-
}, {
|
|
418
|
-
maxDrawdownPct: string;
|
|
419
|
-
equityReturnPct: string;
|
|
420
|
-
closedTradesCount: number;
|
|
421
|
-
tradedNotionalMultiple: string;
|
|
422
|
-
}>;
|
|
423
|
-
informational: z.ZodOptional<z.ZodObject<{
|
|
424
|
-
sharpe: z.ZodOptional<z.ZodString>;
|
|
425
|
-
sortino: z.ZodOptional<z.ZodString>;
|
|
426
|
-
calmar: z.ZodOptional<z.ZodString>;
|
|
427
|
-
profitFactor: z.ZodOptional<z.ZodString>;
|
|
428
|
-
expectancy: z.ZodOptional<z.ZodString>;
|
|
429
|
-
winRate: z.ZodOptional<z.ZodString>;
|
|
430
|
-
holdTimeMs: z.ZodOptional<z.ZodObject<{
|
|
431
|
-
mean: z.ZodNumber;
|
|
432
|
-
median: z.ZodNumber;
|
|
433
|
-
p95: z.ZodNumber;
|
|
434
|
-
}, "strip", z.ZodTypeAny, {
|
|
435
|
-
mean: number;
|
|
436
|
-
median: number;
|
|
437
|
-
p95: number;
|
|
438
|
-
}, {
|
|
439
|
-
mean: number;
|
|
440
|
-
median: number;
|
|
441
|
-
p95: number;
|
|
442
|
-
}>>;
|
|
443
|
-
leverageHistogram: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
444
|
-
longShortMix: z.ZodOptional<z.ZodObject<{
|
|
445
|
-
longCount: z.ZodNumber;
|
|
446
|
-
shortCount: z.ZodNumber;
|
|
447
|
-
}, "strip", z.ZodTypeAny, {
|
|
448
|
-
longCount: number;
|
|
449
|
-
shortCount: number;
|
|
450
|
-
}, {
|
|
451
|
-
longCount: number;
|
|
452
|
-
shortCount: number;
|
|
453
|
-
}>>;
|
|
454
|
-
}, "strip", z.ZodTypeAny, {
|
|
455
|
-
sharpe?: string | undefined;
|
|
456
|
-
sortino?: string | undefined;
|
|
457
|
-
calmar?: string | undefined;
|
|
458
|
-
profitFactor?: string | undefined;
|
|
459
|
-
expectancy?: string | undefined;
|
|
460
|
-
winRate?: string | undefined;
|
|
461
|
-
holdTimeMs?: {
|
|
462
|
-
mean: number;
|
|
463
|
-
median: number;
|
|
464
|
-
p95: number;
|
|
465
|
-
} | undefined;
|
|
466
|
-
leverageHistogram?: Record<string, number> | undefined;
|
|
467
|
-
longShortMix?: {
|
|
468
|
-
longCount: number;
|
|
469
|
-
shortCount: number;
|
|
470
|
-
} | undefined;
|
|
471
|
-
}, {
|
|
472
|
-
sharpe?: string | undefined;
|
|
473
|
-
sortino?: string | undefined;
|
|
474
|
-
calmar?: string | undefined;
|
|
475
|
-
profitFactor?: string | undefined;
|
|
476
|
-
expectancy?: string | undefined;
|
|
477
|
-
winRate?: string | undefined;
|
|
478
|
-
holdTimeMs?: {
|
|
479
|
-
mean: number;
|
|
480
|
-
median: number;
|
|
481
|
-
p95: number;
|
|
482
|
-
} | undefined;
|
|
483
|
-
leverageHistogram?: Record<string, number> | undefined;
|
|
484
|
-
longShortMix?: {
|
|
485
|
-
longCount: number;
|
|
486
|
-
shortCount: number;
|
|
487
|
-
} | undefined;
|
|
488
|
-
}>>;
|
|
489
|
-
artifacts: z.ZodArray<z.ZodObject<{
|
|
490
|
-
cid: z.ZodString;
|
|
491
|
-
role: z.ZodString;
|
|
492
|
-
sha256: z.ZodOptional<z.ZodString>;
|
|
493
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
494
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
495
|
-
access: z.ZodOptional<z.ZodObject<{
|
|
496
|
-
kind: z.ZodEnum<["open", "x402-gated"]>;
|
|
497
|
-
endpoint: z.ZodOptional<z.ZodString>;
|
|
498
|
-
priceUsdc: z.ZodOptional<z.ZodString>;
|
|
499
|
-
}, "strip", z.ZodTypeAny, {
|
|
500
|
-
kind: "open" | "x402-gated";
|
|
501
|
-
endpoint?: string | undefined;
|
|
502
|
-
priceUsdc?: string | undefined;
|
|
503
|
-
}, {
|
|
504
|
-
kind: "open" | "x402-gated";
|
|
505
|
-
endpoint?: string | undefined;
|
|
506
|
-
priceUsdc?: string | undefined;
|
|
507
|
-
}>>;
|
|
508
|
-
}, "strip", z.ZodTypeAny, {
|
|
509
|
-
cid: string;
|
|
510
|
-
role: string;
|
|
511
|
-
sha256?: string | undefined;
|
|
512
|
-
metadata?: Record<string, unknown> | undefined;
|
|
513
|
-
tags?: string[] | undefined;
|
|
514
|
-
access?: {
|
|
515
|
-
kind: "open" | "x402-gated";
|
|
516
|
-
endpoint?: string | undefined;
|
|
517
|
-
priceUsdc?: string | undefined;
|
|
518
|
-
} | undefined;
|
|
519
|
-
}, {
|
|
520
|
-
cid: string;
|
|
521
|
-
role: string;
|
|
522
|
-
sha256?: string | undefined;
|
|
523
|
-
metadata?: Record<string, unknown> | undefined;
|
|
524
|
-
tags?: string[] | undefined;
|
|
525
|
-
access?: {
|
|
526
|
-
kind: "open" | "x402-gated";
|
|
527
|
-
endpoint?: string | undefined;
|
|
528
|
-
priceUsdc?: string | undefined;
|
|
529
|
-
} | undefined;
|
|
530
|
-
}>, "many">;
|
|
531
|
-
rationale: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
532
|
-
ts: z.ZodNumber;
|
|
533
|
-
sessionId: z.ZodString;
|
|
534
|
-
note: z.ZodString;
|
|
535
|
-
relatedFillTids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
536
|
-
}, "strip", z.ZodTypeAny, {
|
|
537
|
-
ts: number;
|
|
538
|
-
sessionId: string;
|
|
539
|
-
note: string;
|
|
540
|
-
relatedFillTids?: number[] | undefined;
|
|
541
|
-
}, {
|
|
542
|
-
ts: number;
|
|
543
|
-
sessionId: string;
|
|
544
|
-
note: string;
|
|
545
|
-
relatedFillTids?: number[] | undefined;
|
|
546
|
-
}>, "many">>;
|
|
547
|
-
signature: z.ZodObject<{
|
|
548
|
-
algo: z.ZodLiteral<"secp256k1">;
|
|
549
|
-
signer: z.ZodString;
|
|
550
|
-
hash: z.ZodString;
|
|
551
|
-
sig: z.ZodString;
|
|
552
|
-
}, "strip", z.ZodTypeAny, {
|
|
553
|
-
hash: string;
|
|
554
|
-
algo: "secp256k1";
|
|
555
|
-
signer: string;
|
|
556
|
-
sig: string;
|
|
557
|
-
}, {
|
|
558
|
-
hash: string;
|
|
559
|
-
algo: "secp256k1";
|
|
560
|
-
signer: string;
|
|
561
|
-
sig: string;
|
|
562
|
-
}>;
|
|
563
|
-
}, "strip", z.ZodTypeAny, {
|
|
564
|
-
signature: {
|
|
565
|
-
hash: string;
|
|
566
|
-
algo: "secp256k1";
|
|
567
|
-
signer: string;
|
|
568
|
-
sig: string;
|
|
569
|
-
};
|
|
570
|
-
window: {
|
|
571
|
-
startTs: number;
|
|
572
|
-
endTs: number;
|
|
573
|
-
};
|
|
574
|
-
schemaVersion: "portfolio.v0.manifest.v1";
|
|
575
|
-
generatedAt: number;
|
|
576
|
-
intent: {
|
|
577
|
-
cid: string;
|
|
578
|
-
onchainCreationTx: string;
|
|
579
|
-
onchainCreationBlock: number;
|
|
580
|
-
requestId: string;
|
|
581
|
-
};
|
|
582
|
-
restorer: {
|
|
583
|
-
safeAddress: string;
|
|
584
|
-
agentEoa: string;
|
|
585
|
-
};
|
|
586
|
-
preSnapshot: {
|
|
587
|
-
capturedAt: number;
|
|
588
|
-
hlTime: number;
|
|
589
|
-
payload?: unknown;
|
|
590
|
-
};
|
|
591
|
-
postSnapshot: {
|
|
592
|
-
capturedAt: number;
|
|
593
|
-
hlTime: number;
|
|
594
|
-
payload?: unknown;
|
|
595
|
-
};
|
|
596
|
-
fills: unknown[];
|
|
597
|
-
gating: {
|
|
598
|
-
maxDrawdownPct: string;
|
|
599
|
-
equityReturnPct: string;
|
|
600
|
-
closedTradesCount: number;
|
|
601
|
-
tradedNotionalMultiple: string;
|
|
602
|
-
};
|
|
603
|
-
artifacts: {
|
|
604
|
-
cid: string;
|
|
605
|
-
role: string;
|
|
606
|
-
sha256?: string | undefined;
|
|
607
|
-
metadata?: Record<string, unknown> | undefined;
|
|
608
|
-
tags?: string[] | undefined;
|
|
609
|
-
access?: {
|
|
610
|
-
kind: "open" | "x402-gated";
|
|
611
|
-
endpoint?: string | undefined;
|
|
612
|
-
priceUsdc?: string | undefined;
|
|
613
|
-
} | undefined;
|
|
614
|
-
}[];
|
|
615
|
-
informational?: {
|
|
616
|
-
sharpe?: string | undefined;
|
|
617
|
-
sortino?: string | undefined;
|
|
618
|
-
calmar?: string | undefined;
|
|
619
|
-
profitFactor?: string | undefined;
|
|
620
|
-
expectancy?: string | undefined;
|
|
621
|
-
winRate?: string | undefined;
|
|
622
|
-
holdTimeMs?: {
|
|
623
|
-
mean: number;
|
|
624
|
-
median: number;
|
|
625
|
-
p95: number;
|
|
626
|
-
} | undefined;
|
|
627
|
-
leverageHistogram?: Record<string, number> | undefined;
|
|
628
|
-
longShortMix?: {
|
|
629
|
-
longCount: number;
|
|
630
|
-
shortCount: number;
|
|
631
|
-
} | undefined;
|
|
632
|
-
} | undefined;
|
|
633
|
-
rationale?: {
|
|
634
|
-
ts: number;
|
|
635
|
-
sessionId: string;
|
|
636
|
-
note: string;
|
|
637
|
-
relatedFillTids?: number[] | undefined;
|
|
638
|
-
}[] | undefined;
|
|
639
|
-
}, {
|
|
640
|
-
signature: {
|
|
641
|
-
hash: string;
|
|
642
|
-
algo: "secp256k1";
|
|
643
|
-
signer: string;
|
|
644
|
-
sig: string;
|
|
645
|
-
};
|
|
646
|
-
window: {
|
|
647
|
-
startTs: number;
|
|
648
|
-
endTs: number;
|
|
649
|
-
};
|
|
650
|
-
schemaVersion: "portfolio.v0.manifest.v1";
|
|
651
|
-
generatedAt: number;
|
|
652
|
-
intent: {
|
|
653
|
-
cid: string;
|
|
654
|
-
onchainCreationTx: string;
|
|
655
|
-
onchainCreationBlock: number;
|
|
656
|
-
requestId: string;
|
|
657
|
-
};
|
|
658
|
-
restorer: {
|
|
659
|
-
safeAddress: string;
|
|
660
|
-
agentEoa: string;
|
|
661
|
-
};
|
|
662
|
-
preSnapshot: {
|
|
663
|
-
capturedAt: number;
|
|
664
|
-
hlTime: number;
|
|
665
|
-
payload?: unknown;
|
|
666
|
-
};
|
|
667
|
-
postSnapshot: {
|
|
668
|
-
capturedAt: number;
|
|
669
|
-
hlTime: number;
|
|
670
|
-
payload?: unknown;
|
|
671
|
-
};
|
|
672
|
-
fills: unknown[];
|
|
673
|
-
gating: {
|
|
674
|
-
maxDrawdownPct: string;
|
|
675
|
-
equityReturnPct: string;
|
|
676
|
-
closedTradesCount: number;
|
|
677
|
-
tradedNotionalMultiple: string;
|
|
678
|
-
};
|
|
679
|
-
artifacts: {
|
|
680
|
-
cid: string;
|
|
681
|
-
role: string;
|
|
682
|
-
sha256?: string | undefined;
|
|
683
|
-
metadata?: Record<string, unknown> | undefined;
|
|
684
|
-
tags?: string[] | undefined;
|
|
685
|
-
access?: {
|
|
686
|
-
kind: "open" | "x402-gated";
|
|
687
|
-
endpoint?: string | undefined;
|
|
688
|
-
priceUsdc?: string | undefined;
|
|
689
|
-
} | undefined;
|
|
690
|
-
}[];
|
|
691
|
-
informational?: {
|
|
692
|
-
sharpe?: string | undefined;
|
|
693
|
-
sortino?: string | undefined;
|
|
694
|
-
calmar?: string | undefined;
|
|
695
|
-
profitFactor?: string | undefined;
|
|
696
|
-
expectancy?: string | undefined;
|
|
697
|
-
winRate?: string | undefined;
|
|
698
|
-
holdTimeMs?: {
|
|
699
|
-
mean: number;
|
|
700
|
-
median: number;
|
|
701
|
-
p95: number;
|
|
702
|
-
} | undefined;
|
|
703
|
-
leverageHistogram?: Record<string, number> | undefined;
|
|
704
|
-
longShortMix?: {
|
|
705
|
-
longCount: number;
|
|
706
|
-
shortCount: number;
|
|
707
|
-
} | undefined;
|
|
708
|
-
} | undefined;
|
|
709
|
-
rationale?: {
|
|
710
|
-
ts: number;
|
|
711
|
-
sessionId: string;
|
|
712
|
-
note: string;
|
|
713
|
-
relatedFillTids?: number[] | undefined;
|
|
714
|
-
}[] | undefined;
|
|
715
|
-
}>;
|
|
716
|
-
export type RestorationManifest = z.infer<typeof RestorationManifestSchema>;
|
|
717
|
-
export declare const VerdictManifestSchema: z.ZodObject<{
|
|
718
|
-
schemaVersion: z.ZodLiteral<"portfolio.v0.eval.manifest.v1">;
|
|
719
|
-
generatedAt: z.ZodNumber;
|
|
720
|
-
intent: z.ZodObject<{
|
|
721
|
-
cid: z.ZodString;
|
|
722
|
-
onchainCreationTx: z.ZodString;
|
|
723
|
-
onchainCreationBlock: z.ZodNumber;
|
|
724
|
-
requestId: z.ZodString;
|
|
725
|
-
}, "strip", z.ZodTypeAny, {
|
|
726
|
-
cid: string;
|
|
727
|
-
onchainCreationTx: string;
|
|
728
|
-
onchainCreationBlock: number;
|
|
729
|
-
requestId: string;
|
|
730
|
-
}, {
|
|
731
|
-
cid: string;
|
|
732
|
-
onchainCreationTx: string;
|
|
733
|
-
onchainCreationBlock: number;
|
|
734
|
-
requestId: string;
|
|
735
|
-
}>;
|
|
736
|
-
evaluator: z.ZodObject<{
|
|
737
|
-
safeAddress: z.ZodString;
|
|
738
|
-
agentEoa: z.ZodString;
|
|
739
|
-
}, "strip", z.ZodTypeAny, {
|
|
740
|
-
safeAddress: string;
|
|
741
|
-
agentEoa: string;
|
|
742
|
-
}, {
|
|
743
|
-
safeAddress: string;
|
|
744
|
-
agentEoa: string;
|
|
745
|
-
}>;
|
|
746
|
-
window: z.ZodObject<{
|
|
747
|
-
startTs: z.ZodNumber;
|
|
748
|
-
endTs: z.ZodNumber;
|
|
749
|
-
}, "strip", z.ZodTypeAny, {
|
|
750
|
-
startTs: number;
|
|
751
|
-
endTs: number;
|
|
752
|
-
}, {
|
|
753
|
-
startTs: number;
|
|
754
|
-
endTs: number;
|
|
755
|
-
}>;
|
|
756
|
-
verdict: z.ZodEnum<["PASS", "FAIL", "REJECTED", "INDETERMINATE"]>;
|
|
757
|
-
score: z.ZodString;
|
|
758
|
-
scoreBasis: z.ZodString;
|
|
759
|
-
scoreVersion: z.ZodString;
|
|
760
|
-
rederived: z.ZodObject<{
|
|
761
|
-
preSnapshot: z.ZodObject<{
|
|
762
|
-
capturedAt: z.ZodNumber;
|
|
763
|
-
payload: z.ZodUnknown;
|
|
764
|
-
}, "strip", z.ZodTypeAny, {
|
|
765
|
-
capturedAt: number;
|
|
766
|
-
payload?: unknown;
|
|
767
|
-
}, {
|
|
768
|
-
capturedAt: number;
|
|
769
|
-
payload?: unknown;
|
|
770
|
-
}>;
|
|
771
|
-
postSnapshot: z.ZodObject<{
|
|
772
|
-
capturedAt: z.ZodNumber;
|
|
773
|
-
payload: z.ZodUnknown;
|
|
774
|
-
}, "strip", z.ZodTypeAny, {
|
|
775
|
-
capturedAt: number;
|
|
776
|
-
payload?: unknown;
|
|
777
|
-
}, {
|
|
778
|
-
capturedAt: number;
|
|
779
|
-
payload?: unknown;
|
|
780
|
-
}>;
|
|
781
|
-
fills: z.ZodArray<z.ZodUnknown, "many">;
|
|
782
|
-
gating: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
783
|
-
}, "strip", z.ZodTypeAny, {
|
|
784
|
-
preSnapshot: {
|
|
785
|
-
capturedAt: number;
|
|
786
|
-
payload?: unknown;
|
|
787
|
-
};
|
|
788
|
-
postSnapshot: {
|
|
789
|
-
capturedAt: number;
|
|
790
|
-
payload?: unknown;
|
|
791
|
-
};
|
|
792
|
-
fills: unknown[];
|
|
793
|
-
gating: Record<string, unknown>;
|
|
794
|
-
}, {
|
|
795
|
-
preSnapshot: {
|
|
796
|
-
capturedAt: number;
|
|
797
|
-
payload?: unknown;
|
|
798
|
-
};
|
|
799
|
-
postSnapshot: {
|
|
800
|
-
capturedAt: number;
|
|
801
|
-
payload?: unknown;
|
|
802
|
-
};
|
|
803
|
-
fills: unknown[];
|
|
804
|
-
gating: Record<string, unknown>;
|
|
805
|
-
}>;
|
|
806
|
-
claimed: z.ZodObject<{
|
|
807
|
-
preSnapshot: z.ZodObject<{
|
|
808
|
-
capturedAt: z.ZodNumber;
|
|
809
|
-
payload: z.ZodUnknown;
|
|
810
|
-
}, "strip", z.ZodTypeAny, {
|
|
811
|
-
capturedAt: number;
|
|
812
|
-
payload?: unknown;
|
|
813
|
-
}, {
|
|
814
|
-
capturedAt: number;
|
|
815
|
-
payload?: unknown;
|
|
816
|
-
}>;
|
|
817
|
-
postSnapshot: z.ZodObject<{
|
|
818
|
-
capturedAt: z.ZodNumber;
|
|
819
|
-
payload: z.ZodUnknown;
|
|
820
|
-
}, "strip", z.ZodTypeAny, {
|
|
821
|
-
capturedAt: number;
|
|
822
|
-
payload?: unknown;
|
|
823
|
-
}, {
|
|
824
|
-
capturedAt: number;
|
|
825
|
-
payload?: unknown;
|
|
826
|
-
}>;
|
|
827
|
-
fillsHash: z.ZodString;
|
|
828
|
-
fillsCount: z.ZodNumber;
|
|
829
|
-
gating: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
830
|
-
}, "strip", z.ZodTypeAny, {
|
|
831
|
-
preSnapshot: {
|
|
832
|
-
capturedAt: number;
|
|
833
|
-
payload?: unknown;
|
|
834
|
-
};
|
|
835
|
-
postSnapshot: {
|
|
836
|
-
capturedAt: number;
|
|
837
|
-
payload?: unknown;
|
|
838
|
-
};
|
|
839
|
-
gating: Record<string, unknown>;
|
|
840
|
-
fillsHash: string;
|
|
841
|
-
fillsCount: number;
|
|
842
|
-
}, {
|
|
843
|
-
preSnapshot: {
|
|
844
|
-
capturedAt: number;
|
|
845
|
-
payload?: unknown;
|
|
846
|
-
};
|
|
847
|
-
postSnapshot: {
|
|
848
|
-
capturedAt: number;
|
|
849
|
-
payload?: unknown;
|
|
850
|
-
};
|
|
851
|
-
gating: Record<string, unknown>;
|
|
852
|
-
fillsHash: string;
|
|
853
|
-
fillsCount: number;
|
|
854
|
-
}>;
|
|
855
|
-
checks: z.ZodArray<z.ZodObject<{
|
|
856
|
-
name: z.ZodString;
|
|
857
|
-
status: z.ZodEnum<["PASS", "FAIL", "SKIP"]>;
|
|
858
|
-
detail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
859
|
-
}, "strip", z.ZodTypeAny, {
|
|
860
|
-
name: string;
|
|
861
|
-
status: "PASS" | "FAIL" | "SKIP";
|
|
862
|
-
detail?: string | Record<string, unknown> | undefined;
|
|
863
|
-
}, {
|
|
864
|
-
name: string;
|
|
865
|
-
status: "PASS" | "FAIL" | "SKIP";
|
|
866
|
-
detail?: string | Record<string, unknown> | undefined;
|
|
867
|
-
}>, "many">;
|
|
868
|
-
signature: z.ZodObject<{
|
|
869
|
-
algo: z.ZodLiteral<"secp256k1">;
|
|
870
|
-
signer: z.ZodString;
|
|
871
|
-
hash: z.ZodString;
|
|
872
|
-
sig: z.ZodString;
|
|
873
|
-
}, "strip", z.ZodTypeAny, {
|
|
874
|
-
hash: string;
|
|
875
|
-
algo: "secp256k1";
|
|
876
|
-
signer: string;
|
|
877
|
-
sig: string;
|
|
878
|
-
}, {
|
|
879
|
-
hash: string;
|
|
880
|
-
algo: "secp256k1";
|
|
881
|
-
signer: string;
|
|
882
|
-
sig: string;
|
|
883
|
-
}>;
|
|
884
|
-
}, "strip", z.ZodTypeAny, {
|
|
885
|
-
signature: {
|
|
886
|
-
hash: string;
|
|
887
|
-
algo: "secp256k1";
|
|
888
|
-
signer: string;
|
|
889
|
-
sig: string;
|
|
890
|
-
};
|
|
891
|
-
window: {
|
|
892
|
-
startTs: number;
|
|
893
|
-
endTs: number;
|
|
894
|
-
};
|
|
895
|
-
schemaVersion: "portfolio.v0.eval.manifest.v1";
|
|
896
|
-
generatedAt: number;
|
|
897
|
-
intent: {
|
|
898
|
-
cid: string;
|
|
899
|
-
onchainCreationTx: string;
|
|
900
|
-
onchainCreationBlock: number;
|
|
901
|
-
requestId: string;
|
|
902
|
-
};
|
|
903
|
-
evaluator: {
|
|
904
|
-
safeAddress: string;
|
|
905
|
-
agentEoa: string;
|
|
906
|
-
};
|
|
907
|
-
verdict: "PASS" | "FAIL" | "REJECTED" | "INDETERMINATE";
|
|
908
|
-
score: string;
|
|
909
|
-
scoreBasis: string;
|
|
910
|
-
scoreVersion: string;
|
|
911
|
-
rederived: {
|
|
912
|
-
preSnapshot: {
|
|
913
|
-
capturedAt: number;
|
|
914
|
-
payload?: unknown;
|
|
915
|
-
};
|
|
916
|
-
postSnapshot: {
|
|
917
|
-
capturedAt: number;
|
|
918
|
-
payload?: unknown;
|
|
919
|
-
};
|
|
920
|
-
fills: unknown[];
|
|
921
|
-
gating: Record<string, unknown>;
|
|
922
|
-
};
|
|
923
|
-
claimed: {
|
|
924
|
-
preSnapshot: {
|
|
925
|
-
capturedAt: number;
|
|
926
|
-
payload?: unknown;
|
|
927
|
-
};
|
|
928
|
-
postSnapshot: {
|
|
929
|
-
capturedAt: number;
|
|
930
|
-
payload?: unknown;
|
|
931
|
-
};
|
|
932
|
-
gating: Record<string, unknown>;
|
|
933
|
-
fillsHash: string;
|
|
934
|
-
fillsCount: number;
|
|
935
|
-
};
|
|
936
|
-
checks: {
|
|
937
|
-
name: string;
|
|
938
|
-
status: "PASS" | "FAIL" | "SKIP";
|
|
939
|
-
detail?: string | Record<string, unknown> | undefined;
|
|
940
|
-
}[];
|
|
941
|
-
}, {
|
|
942
|
-
signature: {
|
|
943
|
-
hash: string;
|
|
944
|
-
algo: "secp256k1";
|
|
945
|
-
signer: string;
|
|
946
|
-
sig: string;
|
|
947
|
-
};
|
|
948
|
-
window: {
|
|
949
|
-
startTs: number;
|
|
950
|
-
endTs: number;
|
|
951
|
-
};
|
|
952
|
-
schemaVersion: "portfolio.v0.eval.manifest.v1";
|
|
953
|
-
generatedAt: number;
|
|
954
|
-
intent: {
|
|
955
|
-
cid: string;
|
|
956
|
-
onchainCreationTx: string;
|
|
957
|
-
onchainCreationBlock: number;
|
|
958
|
-
requestId: string;
|
|
959
|
-
};
|
|
960
|
-
evaluator: {
|
|
961
|
-
safeAddress: string;
|
|
962
|
-
agentEoa: string;
|
|
963
|
-
};
|
|
964
|
-
verdict: "PASS" | "FAIL" | "REJECTED" | "INDETERMINATE";
|
|
965
|
-
score: string;
|
|
966
|
-
scoreBasis: string;
|
|
967
|
-
scoreVersion: string;
|
|
968
|
-
rederived: {
|
|
969
|
-
preSnapshot: {
|
|
970
|
-
capturedAt: number;
|
|
971
|
-
payload?: unknown;
|
|
972
|
-
};
|
|
973
|
-
postSnapshot: {
|
|
974
|
-
capturedAt: number;
|
|
975
|
-
payload?: unknown;
|
|
976
|
-
};
|
|
977
|
-
fills: unknown[];
|
|
978
|
-
gating: Record<string, unknown>;
|
|
979
|
-
};
|
|
980
|
-
claimed: {
|
|
981
|
-
preSnapshot: {
|
|
982
|
-
capturedAt: number;
|
|
983
|
-
payload?: unknown;
|
|
984
|
-
};
|
|
985
|
-
postSnapshot: {
|
|
986
|
-
capturedAt: number;
|
|
987
|
-
payload?: unknown;
|
|
988
|
-
};
|
|
989
|
-
gating: Record<string, unknown>;
|
|
990
|
-
fillsHash: string;
|
|
991
|
-
fillsCount: number;
|
|
992
|
-
};
|
|
993
|
-
checks: {
|
|
994
|
-
name: string;
|
|
995
|
-
status: "PASS" | "FAIL" | "SKIP";
|
|
996
|
-
detail?: string | Record<string, unknown> | undefined;
|
|
997
|
-
}[];
|
|
998
|
-
}>;
|
|
999
|
-
export type VerdictManifest = z.infer<typeof VerdictManifestSchema>;
|
|
1000
338
|
export {};
|