@jinn-network/client 0.1.9 → 0.2.0-canary.3a269d40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +2 -2
- package/README.md +13 -2
- package/deployments/deployment-phase1b-mech-baseSepolia-fast.json +3 -3
- package/deployments/deployment-stolas-l2-baseSepolia-fast.json +23 -3
- package/deployments/deployment-task-coordinator-router-v3-baseSepolia-fast.json +34 -6
- package/dist/adapters/mech/adapter.d.ts +32 -0
- package/dist/adapters/mech/adapter.js +210 -59
- package/dist/adapters/mech/adapter.js.map +1 -1
- package/dist/adapters/mech/contracts.d.ts +174 -13
- package/dist/adapters/mech/contracts.js +37 -21
- package/dist/adapters/mech/contracts.js.map +1 -1
- package/dist/adapters/mech/ipfs.d.ts +23 -34
- package/dist/adapters/mech/ipfs.js +69 -125
- package/dist/adapters/mech/ipfs.js.map +1 -1
- package/dist/adapters/mech/safe.js +74 -2
- package/dist/adapters/mech/safe.js.map +1 -1
- package/dist/adapters/mech/types.d.ts +22 -130
- package/dist/adapters/mech/types.js +9 -65
- package/dist/adapters/mech/types.js.map +1 -1
- package/dist/api/bootstrap-endpoint.d.ts +19 -3
- package/dist/api/bootstrap-endpoint.js +4 -0
- package/dist/api/bootstrap-endpoint.js.map +1 -1
- package/dist/api/gather-status.d.ts +52 -17
- package/dist/api/gather-status.js +159 -425
- package/dist/api/gather-status.js.map +1 -1
- package/dist/api/harness-auth-status-endpoint.d.ts +21 -0
- package/dist/api/harness-auth-status-endpoint.js +17 -0
- package/dist/api/harness-auth-status-endpoint.js.map +1 -0
- package/dist/api/launcher-endpoints.js +6 -1
- package/dist/api/launcher-endpoints.js.map +1 -1
- package/dist/api/launcher-status.d.ts +2 -0
- package/dist/api/launcher-status.js.map +1 -1
- package/dist/api/launcher-tasks.d.ts +47 -0
- package/dist/api/launcher-tasks.js +88 -3
- package/dist/api/launcher-tasks.js.map +1 -1
- package/dist/api/loop-completion-build.d.ts +14 -2
- package/dist/api/loop-completion-build.js +25 -3
- package/dist/api/loop-completion-build.js.map +1 -1
- package/dist/api/operator-artifacts-endpoint.js +1 -1
- package/dist/api/operator-artifacts-endpoint.js.map +1 -1
- package/dist/api/portfolio-v0-build.d.ts +2 -1
- package/dist/api/portfolio-v0-build.js +5 -7
- package/dist/api/portfolio-v0-build.js.map +1 -1
- package/dist/api/prediction-v1-build.d.ts +2 -2
- package/dist/api/prediction-v1-build.js +5 -7
- package/dist/api/prediction-v1-build.js.map +1 -1
- package/dist/api/rewards-build.d.ts +8 -1
- package/dist/api/rewards-build.js +32 -4
- package/dist/api/rewards-build.js.map +1 -1
- package/dist/api/rewards-endpoint.d.ts +12 -0
- package/dist/api/rewards-endpoint.js +46 -0
- package/dist/api/rewards-endpoint.js.map +1 -0
- package/dist/api/run-outcome.d.ts +49 -0
- package/dist/api/run-outcome.js +65 -0
- package/dist/api/run-outcome.js.map +1 -0
- package/dist/api/server.d.ts +6 -16
- package/dist/api/server.js +36 -26
- package/dist/api/server.js.map +1 -1
- package/dist/api/setup-endpoints.d.ts +32 -0
- package/dist/api/setup-endpoints.js +285 -32
- package/dist/api/setup-endpoints.js.map +1 -1
- package/dist/api/solvernets-endpoints.js +1 -1
- package/dist/api/solvernets-endpoints.js.map +1 -1
- package/dist/api/status-build.d.ts +101 -67
- package/dist/api/status-build.js +31 -55
- package/dist/api/status-build.js.map +1 -1
- package/dist/api/stop-hook.d.ts +1 -1
- package/dist/api/stop-hook.js +1 -1
- package/dist/api/stop-hook.js.map +1 -1
- package/dist/api/task-run-routing.d.ts +1 -1
- package/dist/api/task-runs-build.d.ts +21 -2
- package/dist/api/task-runs-build.js +27 -7
- package/dist/api/task-runs-build.js.map +1 -1
- package/dist/build-info.json +4 -4
- package/dist/build-meta.json +1 -1
- package/dist/captures/ingest.d.ts +21 -0
- package/dist/captures/ingest.js +133 -0
- package/dist/captures/ingest.js.map +1 -0
- package/dist/captures/live-publisher.d.ts +9 -0
- package/dist/captures/live-publisher.js +5 -3
- package/dist/captures/live-publisher.js.map +1 -1
- package/dist/captures/publish.d.ts +25 -0
- package/dist/captures/publish.js +19 -7
- package/dist/captures/publish.js.map +1 -1
- package/dist/cli/commands/backfill-failed-deliveries.d.ts +40 -0
- package/dist/cli/commands/backfill-failed-deliveries.js +172 -0
- package/dist/cli/commands/backfill-failed-deliveries.js.map +1 -0
- package/dist/cli/commands/doctor.js +4 -7
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/eval.d.ts +11 -0
- package/dist/cli/commands/eval.js +104 -24
- package/dist/cli/commands/eval.js.map +1 -1
- package/dist/cli/commands/kill.d.ts +14 -0
- package/dist/cli/commands/kill.js +141 -0
- package/dist/cli/commands/kill.js.map +1 -0
- package/dist/cli/commands/rewards.js +17 -15
- package/dist/cli/commands/rewards.js.map +1 -1
- package/dist/cli/commands/run.js +18 -4
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/scrub.d.ts +11 -0
- package/dist/cli/commands/scrub.js +164 -0
- package/dist/cli/commands/scrub.js.map +1 -0
- package/dist/cli/commands/solver-nets.d.ts +6 -0
- package/dist/cli/commands/solver-nets.js +161 -6
- package/dist/cli/commands/solver-nets.js.map +1 -1
- package/dist/cli/commands/solver-plugins.js +2 -2
- package/dist/cli/commands/solver-plugins.js.map +1 -1
- package/dist/cli/commands/stop.js +97 -21
- package/dist/cli/commands/stop.js.map +1 -1
- package/dist/cli/commands/update.js +8 -0
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/version.js +4 -0
- package/dist/cli/commands/version.js.map +1 -1
- package/dist/cli/execution-context.js +2 -1
- package/dist/cli/execution-context.js.map +1 -1
- package/dist/cli/index.js +6 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/introspection-context.js +0 -3
- package/dist/cli/introspection-context.js.map +1 -1
- package/dist/cli/ui-auto-open-gate.d.ts +22 -0
- package/dist/cli/ui-auto-open-gate.js +24 -0
- package/dist/cli/ui-auto-open-gate.js.map +1 -0
- package/dist/config.d.ts +319 -540
- package/dist/config.js +355 -194
- package/dist/config.js.map +1 -1
- package/dist/conformance/execution-envelope-authenticator.d.ts +2 -0
- package/dist/conformance/execution-envelope-authenticator.js +38 -0
- package/dist/conformance/execution-envelope-authenticator.js.map +1 -0
- package/dist/contracts/abis.d.ts +100 -0
- package/dist/contracts/abis.js +58 -0
- package/dist/contracts/abis.js.map +1 -0
- package/dist/contracts/addresses.d.ts +36 -0
- package/dist/contracts/addresses.js +60 -0
- package/dist/contracts/addresses.js.map +1 -0
- package/dist/corpus/acquire.d.ts +1 -40
- package/dist/corpus/acquire.js +1 -212
- package/dist/corpus/acquire.js.map +1 -1
- package/dist/corpus/cache.d.ts +1 -14
- package/dist/corpus/cache.js +1 -17
- package/dist/corpus/cache.js.map +1 -1
- package/dist/corpus/fetch-artifact.d.ts +1 -0
- package/dist/corpus/fetch-artifact.js +2 -0
- package/dist/corpus/fetch-artifact.js.map +1 -0
- package/dist/corpus/fetch.d.ts +3 -7
- package/dist/corpus/fetch.js +9 -22
- package/dist/corpus/fetch.js.map +1 -1
- package/dist/corpus/index.d.ts +2 -3
- package/dist/corpus/index.js +19 -110
- package/dist/corpus/index.js.map +1 -1
- package/dist/corpus/onchain-query.d.ts +0 -1
- package/dist/corpus/onchain-query.js +2 -5
- package/dist/corpus/onchain-query.js.map +1 -1
- package/dist/corpus/route-resolver.d.ts +1 -16
- package/dist/corpus/route-resolver.js +1 -19
- package/dist/corpus/route-resolver.js.map +1 -1
- package/dist/corpus/types.d.ts +1 -17
- package/dist/corpus/types.js +1 -34
- package/dist/corpus/types.js.map +1 -1
- package/dist/daemon/ai-units-gate.d.ts +7 -7
- package/dist/daemon/ai-units-gate.js +8 -5
- package/dist/daemon/ai-units-gate.js.map +1 -1
- package/dist/daemon/balance-topup-loop.js +27 -9
- package/dist/daemon/balance-topup-loop.js.map +1 -1
- package/dist/daemon/checkpoint-loop.d.ts +3 -0
- package/dist/daemon/checkpoint-loop.js +5 -2
- package/dist/daemon/checkpoint-loop.js.map +1 -1
- package/dist/daemon/creator.d.ts +3 -1
- package/dist/daemon/creator.js +44 -28
- package/dist/daemon/creator.js.map +1 -1
- package/dist/daemon/daemon.d.ts +33 -12
- package/dist/daemon/daemon.js +144 -35
- package/dist/daemon/daemon.js.map +1 -1
- package/dist/daemon/delivery-watcher.d.ts +11 -1
- package/dist/daemon/delivery-watcher.js +29 -4
- package/dist/daemon/delivery-watcher.js.map +1 -1
- package/dist/daemon/eviction-loop.d.ts +3 -0
- package/dist/daemon/eviction-loop.js +7 -4
- package/dist/daemon/eviction-loop.js.map +1 -1
- package/dist/daemon/harvest-loop.d.ts +74 -0
- package/dist/daemon/harvest-loop.js +474 -0
- package/dist/daemon/harvest-loop.js.map +1 -0
- package/dist/daemon/join-applier.d.ts +40 -0
- package/dist/daemon/join-applier.js +52 -0
- package/dist/daemon/join-applier.js.map +1 -0
- package/dist/daemon/loop-heartbeat.d.ts +99 -0
- package/dist/daemon/loop-heartbeat.js +82 -0
- package/dist/daemon/loop-heartbeat.js.map +1 -0
- package/dist/{api/peers.js → daemon/peer-sync.js} +3 -1
- package/dist/daemon/peer-sync.js.map +1 -0
- package/dist/daemon/reward-claim-loop.js +28 -10
- package/dist/daemon/reward-claim-loop.js.map +1 -1
- package/dist/daemon/skip-log-dedup.d.ts +1 -1
- package/dist/daemon/skip-log-dedup.js +3 -0
- package/dist/daemon/skip-log-dedup.js.map +1 -1
- package/dist/daemon/spend-cap-gate.d.ts +0 -6
- package/dist/daemon/spend-cap-gate.js +1 -8
- package/dist/daemon/spend-cap-gate.js.map +1 -1
- package/dist/daemon/watchdog-loop.d.ts +84 -0
- package/dist/daemon/watchdog-loop.js +91 -0
- package/dist/daemon/watchdog-loop.js.map +1 -0
- package/dist/dashboard/assets/index-CawZUjVI.css +1 -0
- package/dist/dashboard/assets/index-DZ7_HvCS.js +95 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/discovery/http.d.ts +10 -0
- package/dist/discovery/http.js +178 -335
- package/dist/discovery/http.js.map +1 -1
- package/dist/discovery/onchain.js +30 -9
- package/dist/discovery/onchain.js.map +1 -1
- package/dist/discovery/types.d.ts +98 -52
- package/dist/discovery/types.js.map +1 -1
- package/dist/discovery/with-fallback.js +19 -0
- package/dist/discovery/with-fallback.js.map +1 -1
- package/dist/earning/bootstrap-run.d.ts +25 -0
- package/dist/earning/bootstrap-run.js +315 -0
- package/dist/earning/bootstrap-run.js.map +1 -0
- package/dist/earning/bootstrap.d.ts +11 -14
- package/dist/earning/bootstrap.js +56 -204
- package/dist/earning/bootstrap.js.map +1 -1
- package/dist/earning/contracts.d.ts +2 -232
- package/dist/earning/contracts.js +16 -205
- package/dist/earning/contracts.js.map +1 -1
- package/dist/earning/faucet-topup-store.d.ts +41 -0
- package/dist/earning/faucet-topup-store.js +89 -0
- package/dist/earning/faucet-topup-store.js.map +1 -0
- package/dist/earning/master-gas.d.ts +10 -0
- package/dist/earning/master-gas.js +11 -0
- package/dist/earning/master-gas.js.map +1 -0
- package/dist/earning/safe-adapter.js +1 -45
- package/dist/earning/safe-adapter.js.map +1 -1
- package/dist/earning/steps/context.d.ts +42 -0
- package/dist/earning/steps/context.js +4 -0
- package/dist/earning/steps/context.js.map +1 -0
- package/dist/earning/steps/fleet-identity-register.d.ts +4 -0
- package/dist/earning/steps/fleet-identity-register.js +65 -0
- package/dist/earning/steps/fleet-identity-register.js.map +1 -0
- package/dist/earning/steps/fleet-safe-deploy.d.ts +4 -0
- package/dist/earning/steps/fleet-safe-deploy.js +62 -0
- package/dist/earning/steps/fleet-safe-deploy.js.map +1 -0
- package/dist/earning/steps/fleet-safe-predict.d.ts +4 -0
- package/dist/earning/steps/fleet-safe-predict.js +18 -0
- package/dist/earning/steps/fleet-safe-predict.js.map +1 -0
- package/dist/earning/steps/receipt-parsing.d.ts +12 -0
- package/dist/earning/steps/receipt-parsing.js +71 -0
- package/dist/earning/steps/receipt-parsing.js.map +1 -0
- package/dist/earning/stolas-claim.js +8 -8
- package/dist/earning/stolas-claim.js.map +1 -1
- package/dist/earning/{jinn-rewards.d.ts → stolas-staking.d.ts} +4 -8
- package/dist/earning/{jinn-rewards.js → stolas-staking.js} +25 -23
- package/dist/earning/stolas-staking.js.map +1 -0
- package/dist/earning/testnet-setup-migration.d.ts +1 -0
- package/dist/earning/testnet-setup-migration.js +7 -2
- package/dist/earning/testnet-setup-migration.js.map +1 -1
- package/dist/earning/types.d.ts +9 -9
- package/dist/earning/types.js +1 -1
- package/dist/earning/types.js.map +1 -1
- package/dist/earning/viem-clients.d.ts +3 -19
- package/dist/earning/viem-clients.js +4 -31
- package/dist/earning/viem-clients.js.map +1 -1
- package/dist/earning/wallet.js +1 -1
- package/dist/earning/wallet.js.map +1 -1
- package/dist/erc8004/abis.d.ts +16 -0
- package/dist/erc8004/abis.js +12 -0
- package/dist/erc8004/abis.js.map +1 -1
- package/dist/erc8004/addresses.d.ts +6 -5
- package/dist/erc8004/addresses.js +7 -5
- package/dist/erc8004/addresses.js.map +1 -1
- package/dist/erc8004/identity.d.ts +54 -1
- package/dist/erc8004/identity.js +114 -5
- package/dist/erc8004/identity.js.map +1 -1
- package/dist/erc8004/index.d.ts +5 -2
- package/dist/erc8004/index.js +6 -2
- package/dist/erc8004/index.js.map +1 -1
- package/dist/erc8004/manifest-consumer.d.ts +32 -0
- package/dist/erc8004/manifest-consumer.js +95 -0
- package/dist/erc8004/manifest-consumer.js.map +1 -0
- package/dist/erc8004/manifest-registry.d.ts +1 -0
- package/dist/erc8004/manifest-registry.js +2 -0
- package/dist/erc8004/manifest-registry.js.map +1 -0
- package/dist/erc8004/merkle.d.ts +1 -0
- package/dist/erc8004/merkle.js +2 -0
- package/dist/erc8004/merkle.js.map +1 -0
- package/dist/erc8004/publisher-safe-resolver.d.ts +32 -0
- package/dist/erc8004/publisher-safe-resolver.js +102 -0
- package/dist/erc8004/publisher-safe-resolver.js.map +1 -0
- package/dist/erc8004/reputation.js +16 -12
- package/dist/erc8004/reputation.js.map +1 -1
- package/dist/erc8004/validation.js +5 -4
- package/dist/erc8004/validation.js.map +1 -1
- package/dist/eval/attribution-instrument.d.ts +190 -0
- package/dist/eval/attribution-instrument.js +719 -0
- package/dist/eval/attribution-instrument.js.map +1 -0
- package/dist/eval/attribution-verdict-evidence.d.ts +41 -0
- package/dist/eval/attribution-verdict-evidence.js +124 -0
- package/dist/eval/attribution-verdict-evidence.js.map +1 -0
- package/dist/eval/capability-slate.d.ts +64 -0
- package/dist/eval/capability-slate.js +136 -0
- package/dist/eval/capability-slate.js.map +1 -0
- package/dist/eval/capability-stats.d.ts +39 -0
- package/dist/eval/capability-stats.js +123 -0
- package/dist/eval/capability-stats.js.map +1 -0
- package/dist/eval/contested-band.d.ts +18 -0
- package/dist/eval/contested-band.js +19 -0
- package/dist/eval/contested-band.js.map +1 -0
- package/dist/eval/corpus-index.d.ts +21 -0
- package/dist/eval/corpus-index.js +55 -0
- package/dist/eval/corpus-index.js.map +1 -0
- package/dist/eval/disjointness.d.ts +26 -0
- package/dist/eval/disjointness.js +67 -0
- package/dist/eval/disjointness.js.map +1 -0
- package/dist/eval/mcnemar-power.d.ts +14 -0
- package/dist/eval/mcnemar-power.js +40 -0
- package/dist/eval/mcnemar-power.js.map +1 -0
- package/dist/eval/orchestrator.d.ts +64 -3
- package/dist/eval/orchestrator.js +37 -19
- package/dist/eval/orchestrator.js.map +1 -1
- package/dist/eval/paired.d.ts +2 -68
- package/dist/eval/paired.js +2 -92
- package/dist/eval/paired.js.map +1 -1
- package/dist/eval/resolve-slate-tasks.js +2 -2
- package/dist/eval/resolve-slate-tasks.js.map +1 -1
- package/dist/eval/screen-discovery.d.ts +5 -8
- package/dist/eval/screen-discovery.js +13 -55
- package/dist/eval/screen-discovery.js.map +1 -1
- package/dist/eval/screen-runner.js +3 -3
- package/dist/eval/screen-runner.js.map +1 -1
- package/dist/events/types.d.ts +1 -1
- package/dist/events/types.js +1 -1
- package/dist/events/types.js.map +1 -1
- package/dist/harnesses/auth-source.d.ts +51 -0
- package/dist/harnesses/auth-source.js +155 -0
- package/dist/harnesses/auth-source.js.map +1 -0
- package/dist/harnesses/engine/backfill-failed-deliveries.d.ts +59 -0
- package/dist/harnesses/engine/backfill-failed-deliveries.js +94 -0
- package/dist/harnesses/engine/backfill-failed-deliveries.js.map +1 -0
- package/dist/harnesses/engine/canonical-json.d.ts +2 -1
- package/dist/harnesses/engine/canonical-json.js +2 -67
- package/dist/harnesses/engine/canonical-json.js.map +1 -1
- package/dist/harnesses/engine/corpus-knowledge.d.ts +67 -0
- package/dist/harnesses/engine/corpus-knowledge.js +194 -0
- package/dist/harnesses/engine/corpus-knowledge.js.map +1 -0
- package/dist/harnesses/engine/engine.d.ts +97 -6
- package/dist/harnesses/engine/engine.js +343 -17
- package/dist/harnesses/engine/engine.js.map +1 -1
- package/dist/harnesses/engine/envelope-assembly.d.ts +9 -1
- package/dist/harnesses/engine/envelope-assembly.js +6 -0
- package/dist/harnesses/engine/envelope-assembly.js.map +1 -1
- package/dist/harnesses/engine/generator-model.d.ts +36 -0
- package/dist/harnesses/engine/generator-model.js +118 -0
- package/dist/harnesses/engine/generator-model.js.map +1 -0
- package/dist/harnesses/engine/packaging.js +5 -5
- package/dist/harnesses/engine/packaging.js.map +1 -1
- package/dist/harnesses/engine/persistence.d.ts +37 -62
- package/dist/harnesses/engine/persistence.js +66 -0
- package/dist/harnesses/engine/persistence.js.map +1 -1
- package/dist/harnesses/impls/_evaluator-base.d.ts +48 -0
- package/dist/harnesses/impls/_evaluator-base.js +35 -0
- package/dist/harnesses/impls/_evaluator-base.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.d.ts +1 -1
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.js +1 -1
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction/index.d.ts +2 -3
- package/dist/harnesses/impls/claude-mcp-prediction/index.js +29 -99
- package/dist/harnesses/impls/claude-mcp-prediction/index.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction/mcp-tools.js +4 -21
- package/dist/harnesses/impls/claude-mcp-prediction/mcp-tools.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.d.ts +2 -0
- package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.js +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction/session-orchestrator.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/index.js +30 -79
- package/dist/harnesses/impls/claude-mcp-prediction-apy/index.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/mcp-tools.js +4 -19
- package/dist/harnesses/impls/claude-mcp-prediction-apy/mcp-tools.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.d.ts +2 -0
- package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.js +1 -1
- package/dist/harnesses/impls/claude-mcp-prediction-apy/session-orchestrator.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server-script.d.ts +39 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server-script.js +62 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server-script.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server.d.ts +40 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server.js +44 -0
- package/dist/harnesses/impls/claude-mcp-shared/mcp-server.js.map +1 -0
- package/dist/harnesses/impls/claude-mcp-shared/single-session-harness.d.ts +56 -0
- package/dist/harnesses/impls/claude-mcp-shared/single-session-harness.js +79 -0
- package/dist/harnesses/impls/claude-mcp-shared/single-session-harness.js.map +1 -0
- package/dist/harnesses/impls/hermes-agent/adapter.js +97 -20
- package/dist/harnesses/impls/hermes-agent/adapter.js.map +1 -1
- package/dist/harnesses/impls/hermes-agent/bootstrap.d.ts +6 -0
- package/dist/harnesses/impls/hermes-agent/bootstrap.js +7 -2
- package/dist/harnesses/impls/hermes-agent/bootstrap.js.map +1 -1
- package/dist/harnesses/impls/hermes-agent/harness.d.ts +8 -0
- package/dist/harnesses/impls/hermes-agent/harness.js +21 -0
- package/dist/harnesses/impls/hermes-agent/harness.js.map +1 -1
- package/dist/harnesses/impls/index.d.ts +9 -0
- package/dist/harnesses/impls/index.js +33 -1
- package/dist/harnesses/impls/index.js.map +1 -1
- package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.d.ts +34 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.js +111 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.d.ts +24 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.js +19 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/harness.d.ts +97 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/harness.js +265 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/harness.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/live-eval-runner.d.ts +68 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/live-eval-runner.js +223 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/live-eval-runner.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/repro.d.ts +32 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/repro.js +73 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/repro.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/scope-tests.d.ts +62 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/scope-tests.js +91 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/scope-tests.js.map +1 -0
- package/dist/harnesses/impls/learner/adapters/claude-code.js +9 -2
- package/dist/harnesses/impls/learner/adapters/claude-code.js.map +1 -1
- package/dist/harnesses/impls/learner/adapters/codex-code.d.ts +11 -1
- package/dist/harnesses/impls/learner/adapters/codex-code.js +130 -15
- package/dist/harnesses/impls/learner/adapters/codex-code.js.map +1 -1
- package/dist/harnesses/impls/learner/harness.d.ts +12 -0
- package/dist/harnesses/impls/learner/harness.js +43 -0
- package/dist/harnesses/impls/learner/harness.js.map +1 -1
- package/dist/harnesses/impls/learner/harvest.js +51 -1
- package/dist/harnesses/impls/learner/harvest.js.map +1 -1
- package/dist/harnesses/impls/learner/types.d.ts +7 -0
- package/dist/harnesses/impls/portfolio-v0-evaluator/index.d.ts +5 -15
- package/dist/harnesses/impls/portfolio-v0-evaluator/index.js +10 -29
- package/dist/harnesses/impls/portfolio-v0-evaluator/index.js.map +1 -1
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.d.ts +5 -15
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js +10 -23
- package/dist/harnesses/impls/prediction-apy-v0-evaluator/index.js.map +1 -1
- package/dist/harnesses/impls/prediction-v0-evaluator/index.d.ts +5 -15
- package/dist/harnesses/impls/prediction-v0-evaluator/index.js +10 -25
- package/dist/harnesses/impls/prediction-v0-evaluator/index.js.map +1 -1
- package/dist/harnesses/impls/stub.d.ts +2 -2
- package/dist/harnesses/impls/stub.js +2 -2
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/eval-runner.js +16 -2
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/eval-runner.js.map +1 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.d.ts +75 -8
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js +593 -38
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js.map +1 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/hf-fetcher.js +4 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/hf-fetcher.js.map +1 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/routing-task-row-fetcher.d.ts +37 -0
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/routing-task-row-fetcher.js +59 -0
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/routing-task-row-fetcher.js.map +1 -0
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/upstream-patches/passed-actual.patch +21 -0
- package/dist/harnesses/provider-ref.d.ts +29 -0
- package/dist/harnesses/provider-ref.js +39 -0
- package/dist/harnesses/provider-ref.js.map +1 -0
- package/dist/harnesses/readiness-registry.d.ts +16 -0
- package/dist/harnesses/readiness-registry.js +28 -6
- package/dist/harnesses/readiness-registry.js.map +1 -1
- package/dist/harnesses/types.d.ts +13 -0
- package/dist/learner/verification-gate.d.ts +53 -0
- package/dist/learner/verification-gate.js +80 -0
- package/dist/learner/verification-gate.js.map +1 -0
- package/dist/lifecycle/process-discovery.d.ts +41 -0
- package/dist/lifecycle/process-discovery.js +109 -0
- package/dist/lifecycle/process-discovery.js.map +1 -0
- package/dist/main.js +362 -581
- package/dist/main.js.map +1 -1
- package/dist/mcp/acquire-artifact.d.ts +3 -3
- package/dist/mcp/acquire-artifact.js +3 -3
- package/dist/mcp/operator-server.js +9 -11
- package/dist/mcp/operator-server.js.map +1 -1
- package/dist/mcp/server.js +5 -6
- package/dist/mcp/server.js.map +1 -1
- package/dist/monitoring/net-liveness.d.ts +143 -0
- package/dist/monitoring/net-liveness.js +301 -0
- package/dist/monitoring/net-liveness.js.map +1 -0
- package/dist/observability/emit-event.d.ts +1 -1
- package/dist/observability/emit-event.js +2 -4
- package/dist/observability/emit-event.js.map +1 -1
- package/dist/observability/progress.d.ts +11 -0
- package/dist/observability/progress.js +16 -0
- package/dist/observability/progress.js.map +1 -0
- package/dist/pilot/arm-homes.d.ts +39 -0
- package/dist/pilot/arm-homes.js +104 -0
- package/dist/pilot/arm-homes.js.map +1 -0
- package/dist/pilot/cost.d.ts +19 -0
- package/dist/pilot/cost.js +31 -0
- package/dist/pilot/cost.js.map +1 -0
- package/dist/pilot/instance.d.ts +26 -0
- package/dist/pilot/instance.js +53 -0
- package/dist/pilot/instance.js.map +1 -0
- package/dist/pilot/pipeline.d.ts +17 -0
- package/dist/pilot/pipeline.js +35 -0
- package/dist/pilot/pipeline.js.map +1 -0
- package/dist/pilot/repo.d.ts +37 -0
- package/dist/pilot/repo.js +65 -0
- package/dist/pilot/repo.js.map +1 -0
- package/dist/pilot/resume.d.ts +101 -0
- package/dist/pilot/resume.js +204 -0
- package/dist/pilot/resume.js.map +1 -0
- package/dist/pilot/solve.d.ts +23 -0
- package/dist/pilot/solve.js +37 -0
- package/dist/pilot/solve.js.map +1 -0
- package/dist/pilot/tally.d.ts +42 -0
- package/dist/pilot/tally.js +100 -0
- package/dist/pilot/tally.js.map +1 -0
- package/dist/pilot/task-selection.d.ts +27 -0
- package/dist/pilot/task-selection.js +112 -0
- package/dist/pilot/task-selection.js.map +1 -0
- package/dist/plugins/resolvers.js +7 -4
- package/dist/plugins/resolvers.js.map +1 -1
- package/dist/plugins/types.d.ts +8 -0
- package/dist/preflight/deployment-readiness.d.ts +2 -22
- package/dist/preflight/deployment-readiness.js +1 -59
- package/dist/preflight/deployment-readiness.js.map +1 -1
- package/dist/preflight/pidfile-liveness.d.ts +3 -2
- package/dist/preflight/pidfile-liveness.js +18 -2
- package/dist/preflight/pidfile-liveness.js.map +1 -1
- package/dist/preflight/rpc-network.d.ts +10 -3
- package/dist/preflight/rpc-network.js +46 -13
- package/dist/preflight/rpc-network.js.map +1 -1
- package/dist/preflight/stable-cwd.d.ts +29 -0
- package/dist/preflight/stable-cwd.js +98 -0
- package/dist/preflight/stable-cwd.js.map +1 -0
- package/dist/preflight/version-check.d.ts +41 -0
- package/dist/preflight/version-check.js +80 -0
- package/dist/preflight/version-check.js.map +1 -0
- package/dist/rpc/transport.d.ts +7 -5
- package/dist/rpc/transport.js +8 -6
- package/dist/rpc/transport.js.map +1 -1
- package/dist/scripts/swe-rebench-v2-evaluator.bundle.v1.patch +79 -0
- package/dist/solver-nets/registry.d.ts +26 -0
- package/dist/solver-nets/registry.js +101 -66
- package/dist/solver-nets/registry.js.map +1 -1
- package/dist/solver-types/_jinn-repo-pool.d.ts +61 -0
- package/dist/solver-types/_jinn-repo-pool.js +34 -0
- package/dist/solver-types/_jinn-repo-pool.js.map +1 -0
- package/dist/solver-types/_jinn-repo-posting-window.d.ts +12 -0
- package/dist/solver-types/_jinn-repo-posting-window.js +24 -0
- package/dist/solver-types/_jinn-repo-posting-window.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-commit-echo-git.d.ts +46 -0
- package/dist/solver-types/_swe-rebench-v2-commit-echo-git.js +192 -0
- package/dist/solver-types/_swe-rebench-v2-commit-echo-git.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-commit-echo.d.ts +57 -0
- package/dist/solver-types/_swe-rebench-v2-commit-echo.js +57 -0
- package/dist/solver-types/_swe-rebench-v2-commit-echo.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-differential-admission.d.ts +395 -0
- package/dist/solver-types/_swe-rebench-v2-differential-admission.js +231 -0
- package/dist/solver-types/_swe-rebench-v2-differential-admission.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-empirical-tests.d.ts +47 -0
- package/dist/solver-types/_swe-rebench-v2-empirical-tests.js +67 -0
- package/dist/solver-types/_swe-rebench-v2-empirical-tests.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-escrow.d.ts +2 -0
- package/dist/solver-types/_swe-rebench-v2-escrow.js +13 -0
- package/dist/solver-types/_swe-rebench-v2-escrow.js.map +1 -1
- package/dist/solver-types/_swe-rebench-v2-guards.d.ts +44 -0
- package/dist/solver-types/_swe-rebench-v2-guards.js +111 -0
- package/dist/solver-types/_swe-rebench-v2-guards.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-harvest-state.d.ts +191 -0
- package/dist/solver-types/_swe-rebench-v2-harvest-state.js +349 -0
- package/dist/solver-types/_swe-rebench-v2-harvest-state.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-harvest.d.ts +123 -0
- package/dist/solver-types/_swe-rebench-v2-harvest.js +539 -0
- package/dist/solver-types/_swe-rebench-v2-harvest.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-held-out-slate.d.ts +1 -1
- package/dist/solver-types/_swe-rebench-v2-held-out-slate.js +1 -1
- package/dist/solver-types/_swe-rebench-v2-held-out-slate.js.map +1 -1
- package/dist/solver-types/_swe-rebench-v2-hunk-echo.d.ts +28 -0
- package/dist/solver-types/_swe-rebench-v2-hunk-echo.js +32 -0
- package/dist/solver-types/_swe-rebench-v2-hunk-echo.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-lookup-tripwire.d.ts +16 -0
- package/dist/solver-types/_swe-rebench-v2-lookup-tripwire.js +18 -0
- package/dist/solver-types/_swe-rebench-v2-lookup-tripwire.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-mineable-store-port.d.ts +74 -0
- package/dist/solver-types/_swe-rebench-v2-mineable-store-port.js +9 -0
- package/dist/solver-types/_swe-rebench-v2-mineable-store-port.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-mineable-store.d.ts +51 -0
- package/dist/solver-types/_swe-rebench-v2-mineable-store.js +171 -0
- package/dist/solver-types/_swe-rebench-v2-mineable-store.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-mint-cli.d.ts +82 -0
- package/dist/solver-types/_swe-rebench-v2-mint-cli.js +434 -0
- package/dist/solver-types/_swe-rebench-v2-mint-cli.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-minted-environment-verifier.d.ts +25 -0
- package/dist/solver-types/_swe-rebench-v2-minted-environment-verifier.js +101 -0
- package/dist/solver-types/_swe-rebench-v2-minted-environment-verifier.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-minted-pool.d.ts +179 -0
- package/dist/solver-types/_swe-rebench-v2-minted-pool.js +408 -0
- package/dist/solver-types/_swe-rebench-v2-minted-pool.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-session-echo.d.ts +39 -0
- package/dist/solver-types/_swe-rebench-v2-session-echo.js +193 -0
- package/dist/solver-types/_swe-rebench-v2-session-echo.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-substrate.d.ts +11 -0
- package/dist/solver-types/_swe-rebench-v2-substrate.js +24 -0
- package/dist/solver-types/_swe-rebench-v2-substrate.js.map +1 -1
- package/dist/solver-types/_swe-rebench-v2-synthetic-claim.d.ts +9 -0
- package/dist/solver-types/_swe-rebench-v2-synthetic-claim.js +16 -0
- package/dist/solver-types/_swe-rebench-v2-synthetic-claim.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-validated-pool.d.ts +160 -1
- package/dist/solver-types/_swe-rebench-v2-validated-pool.js +303 -14
- package/dist/solver-types/_swe-rebench-v2-validated-pool.js.map +1 -1
- package/dist/solver-types/_swe-rebench-v2-verifier-facts.d.ts +93 -0
- package/dist/solver-types/_swe-rebench-v2-verifier-facts.js +583 -0
- package/dist/solver-types/_swe-rebench-v2-verifier-facts.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-yield-report-data.d.ts +5 -0
- package/dist/solver-types/_swe-rebench-v2-yield-report-data.js +16 -0
- package/dist/solver-types/_swe-rebench-v2-yield-report-data.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-yield.d.ts +51 -0
- package/dist/solver-types/_swe-rebench-v2-yield.js +53 -0
- package/dist/solver-types/_swe-rebench-v2-yield.js.map +1 -0
- package/dist/solver-types/index.js +2 -0
- package/dist/solver-types/index.js.map +1 -1
- package/dist/solver-types/jinn-repo-admit.d.ts +17 -0
- package/dist/solver-types/jinn-repo-admit.js +16 -0
- package/dist/solver-types/jinn-repo-admit.js.map +1 -0
- package/dist/solver-types/jinn-repo-auto.d.ts +63 -0
- package/dist/solver-types/jinn-repo-auto.js +166 -0
- package/dist/solver-types/jinn-repo-auto.js.map +1 -0
- package/dist/solver-types/jinn-repo-definition.d.ts +15 -0
- package/dist/solver-types/jinn-repo-definition.js +34 -0
- package/dist/solver-types/jinn-repo-definition.js.map +1 -0
- package/dist/solver-types/jinn-repo-extract.d.ts +16 -0
- package/dist/solver-types/jinn-repo-extract.js +33 -0
- package/dist/solver-types/jinn-repo-extract.js.map +1 -0
- package/dist/solver-types/jinn-repo-live-auto.d.ts +206 -0
- package/dist/solver-types/jinn-repo-live-auto.js +351 -0
- package/dist/solver-types/jinn-repo-live-auto.js.map +1 -0
- package/dist/solver-types/jinn-repo.d.ts +42 -0
- package/dist/solver-types/jinn-repo.js +42 -0
- package/dist/solver-types/jinn-repo.js.map +1 -0
- package/dist/solver-types/learner-loop-test.js +1 -1
- package/dist/solver-types/learner-loop-test.js.map +1 -1
- package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v3.json +34 -0
- package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v3.quality-screen.json +186 -0
- package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v3.screening-report.json +488 -0
- package/dist/solver-types/solver-type.d.ts +2 -0
- package/dist/solver-types/swe-rebench-v2-auto.d.ts +13 -0
- package/dist/solver-types/swe-rebench-v2-auto.js +36 -1
- package/dist/solver-types/swe-rebench-v2-auto.js.map +1 -1
- package/dist/solver-types/swe-rebench-v2.d.ts +2 -0
- package/dist/solver-types/swe-rebench-v2.js +58 -27
- package/dist/solver-types/swe-rebench-v2.js.map +1 -1
- package/dist/solvernets/launched-record-dispatcher.d.ts +16 -0
- package/dist/solvernets/launched-record-dispatcher.js +28 -1
- package/dist/solvernets/launched-record-dispatcher.js.map +1 -1
- package/dist/solvernets/store.d.ts +1 -1
- package/dist/solvernets/store.js +1 -1
- package/dist/solvernets/store.js.map +1 -1
- package/dist/spend/ai-units.d.ts +38 -1
- package/dist/spend/ai-units.js +32 -2
- package/dist/spend/ai-units.js.map +1 -1
- package/dist/spend/credential.d.ts +2 -2
- package/dist/spend/credential.js +9 -3
- package/dist/spend/credential.js.map +1 -1
- package/dist/spend/spend-cap.d.ts +10 -0
- package/dist/spend/spend-cap.js +13 -0
- package/dist/spend/spend-cap.js.map +1 -0
- package/dist/spend/usage.js +39 -3
- package/dist/spend/usage.js.map +1 -1
- package/dist/store/store.d.ts +73 -1
- package/dist/store/store.js +197 -6
- package/dist/store/store.js.map +1 -1
- package/dist/task-creator/environment/adapters.d.ts +139 -0
- package/dist/task-creator/environment/adapters.js +446 -0
- package/dist/task-creator/environment/adapters.js.map +1 -0
- package/dist/task-creator/environment/build.d.ts +5 -0
- package/dist/task-creator/environment/build.js +53 -0
- package/dist/task-creator/environment/build.js.map +1 -0
- package/dist/task-creator/environment/contracts.d.ts +1338 -0
- package/dist/task-creator/environment/contracts.js +207 -0
- package/dist/task-creator/environment/contracts.js.map +1 -0
- package/dist/task-creator/environment/github.d.ts +25 -0
- package/dist/task-creator/environment/github.js +67 -0
- package/dist/task-creator/environment/github.js.map +1 -0
- package/dist/task-creator/environment/interfaces.d.ts +60 -0
- package/dist/task-creator/environment/interfaces.js +3 -0
- package/dist/task-creator/environment/interfaces.js.map +1 -0
- package/dist/task-creator/environment/jinn-differential-policy.d.ts +22 -0
- package/dist/task-creator/environment/jinn-differential-policy.js +73 -0
- package/dist/task-creator/environment/jinn-differential-policy.js.map +1 -0
- package/dist/task-creator/environment/policy.d.ts +38 -0
- package/dist/task-creator/environment/policy.js +51 -0
- package/dist/task-creator/environment/policy.js.map +1 -0
- package/dist/task-creator/environment/publication.d.ts +39 -0
- package/dist/task-creator/environment/publication.js +139 -0
- package/dist/task-creator/environment/publication.js.map +1 -0
- package/dist/task-creator/environment/publish-cli.d.ts +427 -0
- package/dist/task-creator/environment/publish-cli.js +180 -0
- package/dist/task-creator/environment/publish-cli.js.map +1 -0
- package/dist/task-creator/environment/recipes.d.ts +19 -0
- package/dist/task-creator/environment/recipes.js +122 -0
- package/dist/task-creator/environment/recipes.js.map +1 -0
- package/dist/task-creator/environment/resolver.d.ts +53 -0
- package/dist/task-creator/environment/resolver.js +57 -0
- package/dist/task-creator/environment/resolver.js.map +1 -0
- package/dist/task-creator/proofs/differential-receipt-bound-proof.d.ts +27 -0
- package/dist/task-creator/proofs/differential-receipt-bound-proof.js +86 -0
- package/dist/task-creator/proofs/differential-receipt-bound-proof.js.map +1 -0
- package/dist/task-creator/proofs/ipfs-cid.d.ts +7 -0
- package/dist/task-creator/proofs/ipfs-cid.js +98 -0
- package/dist/task-creator/proofs/ipfs-cid.js.map +1 -0
- package/dist/task-creator/proofs/live-proof.d.ts +99 -0
- package/dist/task-creator/proofs/live-proof.js +419 -0
- package/dist/task-creator/proofs/live-proof.js.map +1 -0
- package/dist/task-creator/proofs/public-repo-fixtures.d.ts +53 -0
- package/dist/task-creator/proofs/public-repo-fixtures.js +93 -0
- package/dist/task-creator/proofs/public-repo-fixtures.js.map +1 -0
- package/dist/task-creator/proofs/vitest-json-fixture.d.ts +40 -0
- package/dist/task-creator/proofs/vitest-json-fixture.js +115 -0
- package/dist/task-creator/proofs/vitest-json-fixture.js.map +1 -0
- package/dist/trajectory/emit.d.ts +6 -0
- package/dist/trajectory/emit.js +18 -1
- package/dist/trajectory/emit.js.map +1 -1
- package/dist/trajectory/harness-bundle-schema.d.ts +3 -3
- package/dist/trajectory/harness-bundle-schema.js +1 -1
- package/dist/trajectory/harness-bundle-schema.js.map +1 -1
- package/dist/trajectory/hash-chain.d.ts +1 -18
- package/dist/trajectory/hash-chain.js +1 -22
- package/dist/trajectory/hash-chain.js.map +1 -1
- package/dist/trajectory/index.d.ts +2 -0
- package/dist/trajectory/index.js +2 -0
- package/dist/trajectory/index.js.map +1 -1
- package/dist/trajectory/processors/identity-scrub.js +22 -3
- package/dist/trajectory/processors/identity-scrub.js.map +1 -1
- package/dist/trajectory/schema.d.ts +1 -598
- package/dist/trajectory/schema.js +1 -102
- package/dist/trajectory/schema.js.map +1 -1
- package/dist/trajectory/scrub/build.d.ts +1 -0
- package/dist/trajectory/scrub/build.js +2 -0
- package/dist/trajectory/scrub/build.js.map +1 -0
- package/dist/trajectory/scrub/emit-scrub.d.ts +1 -0
- package/dist/trajectory/scrub/emit-scrub.js +2 -0
- package/dist/trajectory/scrub/emit-scrub.js.map +1 -0
- package/dist/trajectory/scrub/key-policy.d.ts +1 -0
- package/dist/trajectory/scrub/key-policy.js +2 -0
- package/dist/trajectory/scrub/key-policy.js.map +1 -0
- package/dist/trajectory/scrub/layer2.d.ts +1 -0
- package/dist/trajectory/scrub/layer2.js +2 -0
- package/dist/trajectory/scrub/layer2.js.map +1 -0
- package/dist/trajectory/scrub/ml-pii-stage.d.ts +1 -0
- package/dist/trajectory/scrub/ml-pii-stage.js +2 -0
- package/dist/trajectory/scrub/ml-pii-stage.js.map +1 -0
- package/dist/trajectory/scrub/pii-build.d.ts +1 -0
- package/dist/trajectory/scrub/pii-build.js +2 -0
- package/dist/trajectory/scrub/pii-build.js.map +1 -0
- package/dist/trajectory/scrub/pipeline.d.ts +1 -0
- package/dist/trajectory/scrub/pipeline.js +2 -0
- package/dist/trajectory/scrub/pipeline.js.map +1 -0
- package/dist/trajectory/scrub/plain-patterns-stage.d.ts +1 -0
- package/dist/trajectory/scrub/plain-patterns-stage.js +2 -0
- package/dist/trajectory/scrub/plain-patterns-stage.js.map +1 -0
- package/dist/trajectory/scrub/secretlint-stage.d.ts +1 -0
- package/dist/trajectory/scrub/secretlint-stage.js +2 -0
- package/dist/trajectory/scrub/secretlint-stage.js.map +1 -0
- package/dist/trajectory/scrub/transformers-detector.d.ts +1 -0
- package/dist/trajectory/scrub/transformers-detector.js +2 -0
- package/dist/trajectory/scrub/transformers-detector.js.map +1 -0
- package/dist/trajectory/scrub/types.d.ts +1 -0
- package/dist/trajectory/scrub/types.js +2 -0
- package/dist/trajectory/scrub/types.js.map +1 -0
- package/dist/trajectory/secret-scrub.d.ts +4 -6
- package/dist/trajectory/secret-scrub.js +52 -12
- package/dist/trajectory/secret-scrub.js.map +1 -1
- package/dist/trajectory/span-profile.js +14 -0
- package/dist/trajectory/span-profile.js.map +1 -1
- package/dist/trajectory/transcript-parsers/aider-history.d.ts +1 -42
- package/dist/trajectory/transcript-parsers/aider-history.js +1 -181
- package/dist/trajectory/transcript-parsers/aider-history.js.map +1 -1
- package/dist/trajectory/transcript-parsers/claude-code-jsonl.d.ts +1 -37
- package/dist/trajectory/transcript-parsers/claude-code-jsonl.js +1 -142
- package/dist/trajectory/transcript-parsers/claude-code-jsonl.js.map +1 -1
- package/dist/trajectory/transcript-parsers/codex-session.d.ts +1 -42
- package/dist/trajectory/transcript-parsers/codex-session.js +1 -235
- package/dist/trajectory/transcript-parsers/codex-session.js.map +1 -1
- package/dist/trajectory/transcript-parsers/continue-devdata.d.ts +1 -41
- package/dist/trajectory/transcript-parsers/continue-devdata.js +1 -190
- package/dist/trajectory/transcript-parsers/continue-devdata.js.map +1 -1
- package/dist/trajectory/transcript-parsers/cursor-sqlite.d.ts +1 -38
- package/dist/trajectory/transcript-parsers/cursor-sqlite.js +1 -118
- package/dist/trajectory/transcript-parsers/cursor-sqlite.js.map +1 -1
- package/dist/trajectory/transcript-parsers/gemini-session.d.ts +1 -35
- package/dist/trajectory/transcript-parsers/gemini-session.js +1 -137
- package/dist/trajectory/transcript-parsers/gemini-session.js.map +1 -1
- package/dist/trajectory/transcript-parsers/types.d.ts +1 -101
- package/dist/trajectory/transcript-parsers/types.js +1 -32
- package/dist/trajectory/transcript-parsers/types.js.map +1 -1
- package/dist/trajectory/transcript-to-spans/attrs.d.ts +1 -0
- package/dist/trajectory/transcript-to-spans/attrs.js +2 -0
- package/dist/trajectory/transcript-to-spans/attrs.js.map +1 -0
- package/dist/trajectory/transcript-to-spans/claude-code-stream-json.d.ts +1 -0
- package/dist/trajectory/transcript-to-spans/claude-code-stream-json.js +2 -0
- package/dist/trajectory/transcript-to-spans/claude-code-stream-json.js.map +1 -0
- package/dist/trajectory/transcript-to-spans/codex-exec-json.d.ts +1 -0
- package/dist/trajectory/transcript-to-spans/codex-exec-json.js +2 -0
- package/dist/trajectory/transcript-to-spans/codex-exec-json.js.map +1 -0
- package/dist/trajectory/transcript-to-spans/hermes-session-json.d.ts +48 -0
- package/dist/trajectory/transcript-to-spans/hermes-session-json.js +193 -0
- package/dist/trajectory/transcript-to-spans/hermes-session-json.js.map +1 -0
- package/dist/trajectory/transcript-to-spans/index.d.ts +38 -0
- package/dist/trajectory/transcript-to-spans/index.js +77 -0
- package/dist/trajectory/transcript-to-spans/index.js.map +1 -0
- package/dist/trajectory/transcript-to-spans/types.d.ts +16 -0
- package/dist/trajectory/transcript-to-spans/types.js +11 -0
- package/dist/trajectory/transcript-to-spans/types.js.map +1 -0
- package/dist/trajectory/transcript-watcher.d.ts +41 -0
- package/dist/trajectory/transcript-watcher.js +34 -0
- package/dist/trajectory/transcript-watcher.js.map +1 -1
- package/dist/tx-retry.d.ts +18 -0
- package/dist/tx-retry.js +52 -12
- package/dist/tx-retry.js.map +1 -1
- package/dist/types/envelope.d.ts +3 -2785
- package/dist/types/envelope.js +3 -160
- package/dist/types/envelope.js.map +1 -1
- package/dist/types/manifest.d.ts +1 -0
- package/dist/types/manifest.js +2 -0
- package/dist/types/manifest.js.map +1 -0
- package/dist/types/payloads/index.d.ts +1 -1
- package/dist/types/payloads/index.js +7 -1
- package/dist/types/payloads/index.js.map +1 -1
- package/dist/types/payloads/portfolio-v0.d.ts +4 -4
- package/dist/types/payloads/portfolio-v0.js +1 -1
- package/dist/types/payloads/portfolio-v0.js.map +1 -1
- package/dist/types/payloads/prediction-apy-v0.d.ts +4 -4
- package/dist/types/payloads/prediction-apy-v0.js +1 -1
- package/dist/types/payloads/prediction-apy-v0.js.map +1 -1
- package/dist/types/payloads/prediction-v0.d.ts +4 -4
- package/dist/types/payloads/prediction-v0.js +1 -1
- package/dist/types/payloads/prediction-v0.js.map +1 -1
- package/dist/types/portfolio.d.ts +1 -1
- package/dist/types/portfolio.js +1 -1
- package/dist/types/portfolio.js.map +1 -1
- package/dist/types/prediction-apy.d.ts +1 -1
- package/dist/types/prediction-apy.js +1 -1
- package/dist/types/prediction-apy.js.map +1 -1
- package/dist/types/prediction.d.ts +1 -1
- package/dist/types/prediction.js +1 -1
- package/dist/types/prediction.js.map +1 -1
- package/dist/types/session-provenance.d.ts +2 -71
- package/dist/types/session-provenance.js +2 -18
- package/dist/types/session-provenance.js.map +1 -1
- package/dist/types/skill-artifact.d.ts +5 -0
- package/dist/types/skill-artifact.js +6 -0
- package/dist/types/skill-artifact.js.map +1 -0
- package/dist/types/task-document.d.ts +315 -1
- package/dist/types/task-document.js +9 -1
- package/dist/types/task-document.js.map +1 -1
- package/dist/types/task-run-read-model.d.ts +21 -0
- package/dist/types/task-run-read-model.js +2 -0
- package/dist/types/task-run-read-model.js.map +1 -0
- package/dist/types/task-run.d.ts +88 -0
- package/dist/types/task-run.js +2 -0
- package/dist/types/task-run.js.map +1 -0
- package/dist/types/task.d.ts +36 -1
- package/dist/types/task.js +1 -1
- package/dist/types/task.js.map +1 -1
- package/dist/types/window.d.ts +2 -12
- package/dist/types/window.js +2 -5
- package/dist/types/window.js.map +1 -1
- package/dist/util/redact-rpc-urls.d.ts +1 -1
- package/dist/util/redact-rpc-urls.js +57 -2
- package/dist/util/redact-rpc-urls.js.map +1 -1
- package/dist/vendor/@jinn-network/core/dist/canonical-json.d.ts +1 -0
- package/dist/vendor/@jinn-network/core/dist/canonical-json.js +67 -0
- package/dist/vendor/@jinn-network/core/dist/captured-task.d.ts +140 -0
- package/dist/vendor/@jinn-network/core/dist/captured-task.js +122 -0
- package/dist/vendor/@jinn-network/core/dist/contribution-store.d.ts +97 -0
- package/dist/vendor/@jinn-network/core/dist/contribution-store.js +770 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/acquire.d.ts +39 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/acquire.js +212 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/cache.d.ts +14 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/cache.js +17 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/capture-meta.d.ts +16 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/capture-meta.js +18 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/create-corpus.d.ts +2 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/create-corpus.js +97 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/fetch-artifact.d.ts +21 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/fetch-artifact.js +32 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/fetch.d.ts +12 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/fetch.js +24 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/http-discovery.d.ts +9 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/http-discovery.js +128 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/index.d.ts +10 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/index.js +10 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/ipfs.d.ts +14 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/ipfs.js +81 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/route-resolver.d.ts +16 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/route-resolver.js +19 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/types.d.ts +177 -0
- package/dist/vendor/@jinn-network/core/dist/corpus-read/types.js +42 -0
- package/dist/vendor/@jinn-network/core/dist/envelope.d.ts +134 -0
- package/dist/vendor/@jinn-network/core/dist/envelope.js +162 -0
- package/dist/vendor/@jinn-network/core/dist/evidence-adapter.d.ts +26 -0
- package/dist/vendor/@jinn-network/core/dist/evidence-adapter.js +321 -0
- package/dist/vendor/@jinn-network/core/dist/evidence-filesystem.d.ts +40 -0
- package/dist/vendor/@jinn-network/core/dist/evidence-filesystem.js +267 -0
- package/dist/vendor/@jinn-network/core/dist/evidence-index.d.ts +117 -0
- package/dist/vendor/@jinn-network/core/dist/evidence-index.js +1083 -0
- package/dist/vendor/@jinn-network/core/dist/evidence-store-lock.d.ts +2 -0
- package/dist/vendor/@jinn-network/core/dist/evidence-store-lock.js +208 -0
- package/dist/vendor/@jinn-network/core/dist/execution-envelope.d.ts +3142 -0
- package/dist/vendor/@jinn-network/core/dist/execution-envelope.js +203 -0
- package/dist/vendor/@jinn-network/core/dist/index.d.ts +12 -0
- package/dist/vendor/@jinn-network/core/dist/index.js +12 -0
- package/dist/vendor/@jinn-network/core/dist/manifest.d.ts +75 -0
- package/dist/vendor/@jinn-network/core/dist/manifest.js +184 -0
- package/dist/vendor/@jinn-network/core/dist/paired.d.ts +68 -0
- package/dist/vendor/@jinn-network/core/dist/paired.js +92 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/apply-dispositions.d.ts +74 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/apply-dispositions.js +309 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/build.d.ts +75 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/build.js +143 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/checksummed-instruments-detector.d.ts +13 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/checksummed-instruments-detector.js +119 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/data/bip39-english.d.ts +2 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/data/bip39-english.js +2051 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/data/gitleaks-rules.d.ts +56 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/data/gitleaks-rules.js +67 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/emit-scrub.d.ts +52 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/emit-scrub.js +122 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/findings-from-scrub.d.ts +18 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/findings-from-scrub.js +99 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/fixtures.d.ts +14 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/fixtures.js +159 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/index.d.ts +6 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/index.js +6 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/local-corpus.d.ts +15 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/local-corpus.js +29 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/metrics.d.ts +19 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/metrics.js +77 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/run-bench.d.ts +8 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/run-bench.js +125 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/types.d.ts +69 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/eval/types.js +7 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/finding.d.ts +38 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/finding.js +7 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/git-identity-detector.d.ts +16 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/git-identity-detector.js +116 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/gitleaks-detector.d.ts +13 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/gitleaks-detector.js +45 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/gliner-detector.d.ts +65 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/gliner-detector.js +129 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/index.d.ts +26 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/index.js +26 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/ip-address-detector.d.ts +12 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/ip-address-detector.js +81 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/key-policy.d.ts +30 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/key-policy.js +72 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/known-identity-detector.d.ts +66 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/known-identity-detector.js +284 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/layer2.d.ts +18 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/layer2.js +28 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/ml-pii-stage.d.ts +42 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/ml-pii-stage.js +119 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/pii-build.d.ts +47 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/pii-build.js +67 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/pipeline.d.ts +77 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/pipeline.js +225 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/plain-patterns-stage.d.ts +33 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/plain-patterns-stage.js +88 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/policy.d.ts +28 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/policy.js +156 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/provenance.d.ts +53 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/provenance.js +83 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/reject-classes-detector.d.ts +11 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/reject-classes-detector.js +195 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/reject-publish-error.d.ts +30 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/reject-publish-error.js +47 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/review-queue.d.ts +90 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/review-queue.js +259 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/secretlint-stage.d.ts +21 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/secretlint-stage.js +264 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/transformers-detector.d.ts +41 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/transformers-detector.js +77 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/types.d.ts +36 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/types.js +1 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/url-credentials-detector.d.ts +9 -0
- package/dist/vendor/@jinn-network/core/dist/scrub/url-credentials-detector.js +66 -0
- package/dist/vendor/@jinn-network/core/dist/session-provenance.d.ts +75 -0
- package/dist/vendor/@jinn-network/core/dist/session-provenance.js +20 -0
- package/dist/vendor/@jinn-network/core/dist/skill-artifact.d.ts +442 -0
- package/dist/vendor/@jinn-network/core/dist/skill-artifact.js +136 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/hash-chain.d.ts +18 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/hash-chain.js +47 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/index.d.ts +4 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/index.js +4 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/schema.d.ts +681 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/schema.js +119 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/aider-history.d.ts +42 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/aider-history.js +181 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/claude-code-jsonl.d.ts +37 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/claude-code-jsonl.js +142 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/codex-session.d.ts +42 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/codex-session.js +235 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/continue-devdata.d.ts +41 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/continue-devdata.js +190 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/cursor-sqlite.d.ts +38 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/cursor-sqlite.js +118 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/gemini-session.d.ts +35 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/gemini-session.js +137 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/index.d.ts +7 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/index.js +7 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/types.d.ts +101 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-parsers/types.js +32 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/attrs.d.ts +4 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/attrs.js +30 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/claude-code-stream-json.d.ts +8 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/claude-code-stream-json.js +162 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/codex-exec-json.d.ts +8 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/codex-exec-json.js +253 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/index.d.ts +4 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/index.js +4 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/types.d.ts +18 -0
- package/dist/vendor/@jinn-network/core/dist/trajectory/transcript-to-spans/types.js +1 -0
- package/dist/vendor/@jinn-network/core/dist/window.d.ts +12 -0
- package/dist/vendor/@jinn-network/core/dist/window.js +5 -0
- package/dist/vendor/@jinn-network/core/package.json +38 -0
- package/dist/vendor/@jinn-network/plugin/dist/eligibility.d.ts +12 -0
- package/dist/vendor/@jinn-network/plugin/dist/eligibility.js +12 -0
- package/dist/vendor/@jinn-network/plugin/dist/history.d.ts +35 -0
- package/dist/vendor/@jinn-network/plugin/dist/history.js +140 -0
- package/dist/vendor/@jinn-network/plugin/dist/index.d.ts +32 -0
- package/dist/vendor/@jinn-network/plugin/dist/index.js +15 -0
- package/dist/vendor/@jinn-network/plugin/dist/outcome.d.ts +26 -0
- package/dist/vendor/@jinn-network/plugin/dist/outcome.js +23 -0
- package/dist/vendor/@jinn-network/plugin/dist/pickup.d.ts +101 -0
- package/dist/vendor/@jinn-network/plugin/dist/pickup.js +354 -0
- package/dist/vendor/@jinn-network/plugin/dist/plugin.d.ts +157 -0
- package/dist/vendor/@jinn-network/plugin/dist/plugin.js +586 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/contribution-port.d.ts +53 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/contribution-port.js +14 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/corpus-port.d.ts +63 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/corpus-port.js +1 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/evidence-port.d.ts +17 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/evidence-port.js +1 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/local-learning-port.d.ts +22 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/local-learning-port.js +1 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/skills-port.d.ts +12 -0
- package/dist/vendor/@jinn-network/plugin/dist/ports/skills-port.js +1 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/contribution-candidate.d.ts +116 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/contribution-candidate.js +63 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/eligibility-verdict.d.ts +8 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/eligibility-verdict.js +7 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/episode.d.ts +432 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/episode.js +452 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/history-entry.d.ts +40 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/history-entry.js +30 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/knowledge-hit.d.ts +27 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/knowledge-hit.js +23 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/knowledge-packet.d.ts +79 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/knowledge-packet.js +213 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/pickup-config.d.ts +20 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/pickup-config.js +34 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/session-summary.d.ts +17 -0
- package/dist/vendor/@jinn-network/plugin/dist/schemas/session-summary.js +19 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/contract-kits.d.ts +12 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/contract-kits.js +201 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-contribution.d.ts +93 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-contribution.js +104 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-corpus.d.ts +47 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-corpus.js +54 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-evidence.d.ts +335 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-evidence.js +23 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-local-learning.d.ts +25 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-local-learning.js +30 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-skills.d.ts +9 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing/in-memory-skills.js +16 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing.d.ts +6 -0
- package/dist/vendor/@jinn-network/plugin/dist/testing.js +8 -0
- package/dist/vendor/@jinn-network/plugin/dist/visibility.d.ts +7 -0
- package/dist/vendor/@jinn-network/plugin/dist/visibility.js +9 -0
- package/dist/vendor/@jinn-network/plugin/package.json +22 -0
- package/dist/vendor/@jinn-network/sdk/dist/benchmarking.d.ts +1621 -0
- package/dist/vendor/@jinn-network/sdk/dist/benchmarking.js +285 -0
- package/dist/vendor/@jinn-network/sdk/dist/checkpoint.d.ts +7 -7
- package/dist/vendor/@jinn-network/sdk/dist/checkpoint.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/contracts.d.ts +3 -2
- package/dist/vendor/@jinn-network/sdk/dist/contracts.js +49 -0
- package/dist/vendor/@jinn-network/sdk/dist/jinn-repo.d.ts +214 -0
- package/dist/vendor/@jinn-network/sdk/dist/jinn-repo.js +75 -0
- package/dist/vendor/@jinn-network/sdk/dist/json-schema.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/json-schema.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/jinn-repo.d.ts +140 -0
- package/dist/vendor/@jinn-network/sdk/dist/payloads/jinn-repo.js +52 -0
- package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.d.ts +6 -6
- package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/session-derived.d.ts +9 -9
- package/dist/vendor/@jinn-network/sdk/dist/payloads/session-derived.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/swe-rebench-v2.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/swe-rebench-v2.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.d.ts +61 -61
- package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/jinn-repo.d.ts +4 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/jinn-repo.js +2 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/manifest-schema.d.ts +31 -31
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/manifest-schema.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/swe-rebench-v2.d.ts +34 -6
- package/dist/vendor/@jinn-network/sdk/dist/swe-rebench-v2.js +28 -5
- package/dist/vendor/@jinn-network/sdk/package.json +9 -1
- package/node_modules/@jinn-network/core/dist/canonical-json.d.ts +1 -0
- package/node_modules/@jinn-network/core/dist/canonical-json.js +67 -0
- package/node_modules/@jinn-network/core/dist/captured-task.d.ts +140 -0
- package/node_modules/@jinn-network/core/dist/captured-task.js +122 -0
- package/node_modules/@jinn-network/core/dist/contribution-store.d.ts +97 -0
- package/node_modules/@jinn-network/core/dist/contribution-store.js +770 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/acquire.d.ts +39 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/acquire.js +212 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/cache.d.ts +14 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/cache.js +17 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/capture-meta.d.ts +16 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/capture-meta.js +18 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/create-corpus.d.ts +2 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/create-corpus.js +97 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/fetch-artifact.d.ts +21 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/fetch-artifact.js +32 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/fetch.d.ts +12 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/fetch.js +24 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/http-discovery.d.ts +9 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/http-discovery.js +128 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/index.d.ts +10 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/index.js +10 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/ipfs.d.ts +14 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/ipfs.js +81 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/route-resolver.d.ts +16 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/route-resolver.js +19 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/types.d.ts +177 -0
- package/node_modules/@jinn-network/core/dist/corpus-read/types.js +42 -0
- package/node_modules/@jinn-network/core/dist/envelope.d.ts +134 -0
- package/node_modules/@jinn-network/core/dist/envelope.js +162 -0
- package/node_modules/@jinn-network/core/dist/evidence-adapter.d.ts +26 -0
- package/node_modules/@jinn-network/core/dist/evidence-adapter.js +321 -0
- package/node_modules/@jinn-network/core/dist/evidence-filesystem.d.ts +40 -0
- package/node_modules/@jinn-network/core/dist/evidence-filesystem.js +267 -0
- package/node_modules/@jinn-network/core/dist/evidence-index.d.ts +117 -0
- package/node_modules/@jinn-network/core/dist/evidence-index.js +1083 -0
- package/node_modules/@jinn-network/core/dist/evidence-store-lock.d.ts +2 -0
- package/node_modules/@jinn-network/core/dist/evidence-store-lock.js +208 -0
- package/node_modules/@jinn-network/core/dist/execution-envelope.d.ts +3142 -0
- package/node_modules/@jinn-network/core/dist/execution-envelope.js +203 -0
- package/node_modules/@jinn-network/core/dist/index.d.ts +12 -0
- package/node_modules/@jinn-network/core/dist/index.js +12 -0
- package/node_modules/@jinn-network/core/dist/manifest.d.ts +75 -0
- package/node_modules/@jinn-network/core/dist/manifest.js +184 -0
- package/node_modules/@jinn-network/core/dist/paired.d.ts +68 -0
- package/node_modules/@jinn-network/core/dist/paired.js +92 -0
- package/node_modules/@jinn-network/core/dist/scrub/apply-dispositions.d.ts +74 -0
- package/node_modules/@jinn-network/core/dist/scrub/apply-dispositions.js +309 -0
- package/node_modules/@jinn-network/core/dist/scrub/build.d.ts +75 -0
- package/node_modules/@jinn-network/core/dist/scrub/build.js +143 -0
- package/node_modules/@jinn-network/core/dist/scrub/checksummed-instruments-detector.d.ts +13 -0
- package/node_modules/@jinn-network/core/dist/scrub/checksummed-instruments-detector.js +119 -0
- package/node_modules/@jinn-network/core/dist/scrub/data/bip39-english.d.ts +2 -0
- package/node_modules/@jinn-network/core/dist/scrub/data/bip39-english.js +2051 -0
- package/node_modules/@jinn-network/core/dist/scrub/data/gitleaks-rules.d.ts +56 -0
- package/node_modules/@jinn-network/core/dist/scrub/data/gitleaks-rules.js +67 -0
- package/node_modules/@jinn-network/core/dist/scrub/emit-scrub.d.ts +52 -0
- package/node_modules/@jinn-network/core/dist/scrub/emit-scrub.js +122 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/findings-from-scrub.d.ts +18 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/findings-from-scrub.js +99 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/fixtures.d.ts +14 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/fixtures.js +159 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/index.d.ts +6 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/index.js +6 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/local-corpus.d.ts +15 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/local-corpus.js +29 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/metrics.d.ts +19 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/metrics.js +77 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/run-bench.d.ts +8 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/run-bench.js +125 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/types.d.ts +69 -0
- package/node_modules/@jinn-network/core/dist/scrub/eval/types.js +7 -0
- package/node_modules/@jinn-network/core/dist/scrub/finding.d.ts +38 -0
- package/node_modules/@jinn-network/core/dist/scrub/finding.js +7 -0
- package/node_modules/@jinn-network/core/dist/scrub/git-identity-detector.d.ts +16 -0
- package/node_modules/@jinn-network/core/dist/scrub/git-identity-detector.js +116 -0
- package/node_modules/@jinn-network/core/dist/scrub/gitleaks-detector.d.ts +13 -0
- package/node_modules/@jinn-network/core/dist/scrub/gitleaks-detector.js +45 -0
- package/node_modules/@jinn-network/core/dist/scrub/gliner-detector.d.ts +65 -0
- package/node_modules/@jinn-network/core/dist/scrub/gliner-detector.js +129 -0
- package/node_modules/@jinn-network/core/dist/scrub/index.d.ts +26 -0
- package/node_modules/@jinn-network/core/dist/scrub/index.js +26 -0
- package/node_modules/@jinn-network/core/dist/scrub/ip-address-detector.d.ts +12 -0
- package/node_modules/@jinn-network/core/dist/scrub/ip-address-detector.js +81 -0
- package/node_modules/@jinn-network/core/dist/scrub/key-policy.d.ts +30 -0
- package/node_modules/@jinn-network/core/dist/scrub/key-policy.js +72 -0
- package/node_modules/@jinn-network/core/dist/scrub/known-identity-detector.d.ts +66 -0
- package/node_modules/@jinn-network/core/dist/scrub/known-identity-detector.js +284 -0
- package/node_modules/@jinn-network/core/dist/scrub/layer2.d.ts +18 -0
- package/node_modules/@jinn-network/core/dist/scrub/layer2.js +28 -0
- package/node_modules/@jinn-network/core/dist/scrub/ml-pii-stage.d.ts +42 -0
- package/node_modules/@jinn-network/core/dist/scrub/ml-pii-stage.js +119 -0
- package/node_modules/@jinn-network/core/dist/scrub/pii-build.d.ts +47 -0
- package/node_modules/@jinn-network/core/dist/scrub/pii-build.js +67 -0
- package/node_modules/@jinn-network/core/dist/scrub/pipeline.d.ts +77 -0
- package/node_modules/@jinn-network/core/dist/scrub/pipeline.js +225 -0
- package/node_modules/@jinn-network/core/dist/scrub/plain-patterns-stage.d.ts +33 -0
- package/node_modules/@jinn-network/core/dist/scrub/plain-patterns-stage.js +88 -0
- package/node_modules/@jinn-network/core/dist/scrub/policy.d.ts +28 -0
- package/node_modules/@jinn-network/core/dist/scrub/policy.js +156 -0
- package/node_modules/@jinn-network/core/dist/scrub/provenance.d.ts +53 -0
- package/node_modules/@jinn-network/core/dist/scrub/provenance.js +83 -0
- package/node_modules/@jinn-network/core/dist/scrub/reject-classes-detector.d.ts +11 -0
- package/node_modules/@jinn-network/core/dist/scrub/reject-classes-detector.js +195 -0
- package/node_modules/@jinn-network/core/dist/scrub/reject-publish-error.d.ts +30 -0
- package/node_modules/@jinn-network/core/dist/scrub/reject-publish-error.js +47 -0
- package/node_modules/@jinn-network/core/dist/scrub/review-queue.d.ts +90 -0
- package/node_modules/@jinn-network/core/dist/scrub/review-queue.js +259 -0
- package/node_modules/@jinn-network/core/dist/scrub/secretlint-stage.d.ts +21 -0
- package/node_modules/@jinn-network/core/dist/scrub/secretlint-stage.js +264 -0
- package/node_modules/@jinn-network/core/dist/scrub/transformers-detector.d.ts +41 -0
- package/node_modules/@jinn-network/core/dist/scrub/transformers-detector.js +77 -0
- package/node_modules/@jinn-network/core/dist/scrub/types.d.ts +36 -0
- package/node_modules/@jinn-network/core/dist/scrub/types.js +1 -0
- package/node_modules/@jinn-network/core/dist/scrub/url-credentials-detector.d.ts +9 -0
- package/node_modules/@jinn-network/core/dist/scrub/url-credentials-detector.js +66 -0
- package/node_modules/@jinn-network/core/dist/session-provenance.d.ts +75 -0
- package/node_modules/@jinn-network/core/dist/session-provenance.js +20 -0
- package/node_modules/@jinn-network/core/dist/skill-artifact.d.ts +442 -0
- package/node_modules/@jinn-network/core/dist/skill-artifact.js +136 -0
- package/node_modules/@jinn-network/core/dist/trajectory/hash-chain.d.ts +18 -0
- package/node_modules/@jinn-network/core/dist/trajectory/hash-chain.js +47 -0
- package/node_modules/@jinn-network/core/dist/trajectory/index.d.ts +4 -0
- package/node_modules/@jinn-network/core/dist/trajectory/index.js +4 -0
- package/node_modules/@jinn-network/core/dist/trajectory/schema.d.ts +681 -0
- package/node_modules/@jinn-network/core/dist/trajectory/schema.js +119 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/aider-history.d.ts +42 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/aider-history.js +181 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/claude-code-jsonl.d.ts +37 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/claude-code-jsonl.js +142 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/codex-session.d.ts +42 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/codex-session.js +235 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/continue-devdata.d.ts +41 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/continue-devdata.js +190 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/cursor-sqlite.d.ts +38 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/cursor-sqlite.js +118 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/gemini-session.d.ts +35 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/gemini-session.js +137 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/index.d.ts +7 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/index.js +7 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/types.d.ts +101 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-parsers/types.js +32 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/attrs.d.ts +4 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/attrs.js +30 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/claude-code-stream-json.d.ts +8 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/claude-code-stream-json.js +162 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/codex-exec-json.d.ts +8 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/codex-exec-json.js +253 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/index.d.ts +4 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/index.js +4 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/types.d.ts +18 -0
- package/node_modules/@jinn-network/core/dist/trajectory/transcript-to-spans/types.js +1 -0
- package/node_modules/@jinn-network/core/dist/window.d.ts +12 -0
- package/node_modules/@jinn-network/core/dist/window.js +5 -0
- package/node_modules/@jinn-network/core/package.json +61 -0
- package/node_modules/@jinn-network/plugin/dist/eligibility.d.ts +12 -0
- package/node_modules/@jinn-network/plugin/dist/eligibility.js +12 -0
- package/node_modules/@jinn-network/plugin/dist/history.d.ts +35 -0
- package/node_modules/@jinn-network/plugin/dist/history.js +140 -0
- package/node_modules/@jinn-network/plugin/dist/index.d.ts +32 -0
- package/node_modules/@jinn-network/plugin/dist/index.js +15 -0
- package/node_modules/@jinn-network/plugin/dist/outcome.d.ts +26 -0
- package/node_modules/@jinn-network/plugin/dist/outcome.js +23 -0
- package/node_modules/@jinn-network/plugin/dist/pickup.d.ts +101 -0
- package/node_modules/@jinn-network/plugin/dist/pickup.js +354 -0
- package/node_modules/@jinn-network/plugin/dist/plugin.d.ts +157 -0
- package/node_modules/@jinn-network/plugin/dist/plugin.js +586 -0
- package/node_modules/@jinn-network/plugin/dist/ports/contribution-port.d.ts +53 -0
- package/node_modules/@jinn-network/plugin/dist/ports/contribution-port.js +14 -0
- package/node_modules/@jinn-network/plugin/dist/ports/corpus-port.d.ts +63 -0
- package/node_modules/@jinn-network/plugin/dist/ports/corpus-port.js +1 -0
- package/node_modules/@jinn-network/plugin/dist/ports/evidence-port.d.ts +17 -0
- package/node_modules/@jinn-network/plugin/dist/ports/evidence-port.js +1 -0
- package/node_modules/@jinn-network/plugin/dist/ports/local-learning-port.d.ts +22 -0
- package/node_modules/@jinn-network/plugin/dist/ports/local-learning-port.js +1 -0
- package/node_modules/@jinn-network/plugin/dist/ports/skills-port.d.ts +12 -0
- package/node_modules/@jinn-network/plugin/dist/ports/skills-port.js +1 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/contribution-candidate.d.ts +116 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/contribution-candidate.js +63 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/eligibility-verdict.d.ts +8 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/eligibility-verdict.js +7 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/episode.d.ts +432 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/episode.js +452 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/history-entry.d.ts +40 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/history-entry.js +30 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/knowledge-hit.d.ts +27 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/knowledge-hit.js +23 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/knowledge-packet.d.ts +79 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/knowledge-packet.js +213 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/pickup-config.d.ts +20 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/pickup-config.js +34 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/session-summary.d.ts +17 -0
- package/node_modules/@jinn-network/plugin/dist/schemas/session-summary.js +19 -0
- package/node_modules/@jinn-network/plugin/dist/testing/contract-kits.d.ts +12 -0
- package/node_modules/@jinn-network/plugin/dist/testing/contract-kits.js +201 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-contribution.d.ts +93 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-contribution.js +104 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-corpus.d.ts +47 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-corpus.js +54 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-evidence.d.ts +335 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-evidence.js +23 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-local-learning.d.ts +25 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-local-learning.js +30 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-skills.d.ts +9 -0
- package/node_modules/@jinn-network/plugin/dist/testing/in-memory-skills.js +16 -0
- package/node_modules/@jinn-network/plugin/dist/testing.d.ts +6 -0
- package/node_modules/@jinn-network/plugin/dist/testing.js +8 -0
- package/node_modules/@jinn-network/plugin/dist/visibility.d.ts +7 -0
- package/node_modules/@jinn-network/plugin/dist/visibility.js +9 -0
- package/node_modules/@jinn-network/plugin/package.json +50 -0
- package/node_modules/@jinn-network/plugin/process-contract.json +8 -0
- package/package.json +61 -19
- package/plugins/jinn-repo-runtime/.claude-plugin/plugin.json +5 -0
- package/plugins/jinn-repo-runtime/.codex-plugin/plugin.json +39 -0
- package/plugins/jinn-repo-runtime/README.md +27 -0
- package/plugins/jinn-repo-runtime/hooks/hooks.json +16 -0
- package/plugins/jinn-repo-runtime/hooks/session-start +73 -0
- package/plugins/jinn-repo-runtime/jinn.plugin.json +11 -0
- package/plugins/jinn-repo-runtime/skills/task/SKILL.md +92 -0
- package/skills/jinn-operator/SKILL.md +29 -15
- package/deployments/deployment-jinn-mvi-l1-sepolia-fast.json +0 -55
- package/deployments/deployment-jinn-mvi-l1-sepolia.json +0 -55
- package/deployments/deployment-jinn-mvi-l2-baseSepolia.json +0 -13
- package/deployments/deployment-jinn-testnet-faucet-baseSepolia-fast.json +0 -15
- package/dist/api/peers.js.map +0 -1
- package/dist/daemon/jinn-claim-loop-canonical.d.ts +0 -207
- package/dist/daemon/jinn-claim-loop-canonical.js +0 -296
- package/dist/daemon/jinn-claim-loop-canonical.js.map +0 -1
- package/dist/daemon/jinn-claim-loop-mock.d.ts +0 -61
- package/dist/daemon/jinn-claim-loop-mock.js +0 -122
- package/dist/daemon/jinn-claim-loop-mock.js.map +0 -1
- package/dist/daemon/jinn-claim-loop-wiring.d.ts +0 -33
- package/dist/daemon/jinn-claim-loop-wiring.js +0 -40
- package/dist/daemon/jinn-claim-loop-wiring.js.map +0 -1
- package/dist/daemon/jinn-claim-loop.d.ts +0 -130
- package/dist/daemon/jinn-claim-loop.js +0 -328
- package/dist/daemon/jinn-claim-loop.js.map +0 -1
- package/dist/dashboard/assets/index-BVAWkLwY.css +0 -1
- package/dist/dashboard/assets/index-DEPqtGOA.js +0 -167
- package/dist/earning/jinn-rewards.js.map +0 -1
- package/dist/scripts/donation-consumption-acceptance.d.ts +0 -85
- package/dist/scripts/donation-consumption-acceptance.js +0 -1382
- package/dist/scripts/donation-consumption-acceptance.js.map +0 -1
- package/dist/x402/acquire.d.ts +0 -17
- package/dist/x402/acquire.js +0 -49
- package/dist/x402/acquire.js.map +0 -1
- package/dist/x402/facilitator.d.ts +0 -11
- package/dist/x402/facilitator.js +0 -52
- package/dist/x402/facilitator.js.map +0 -1
- package/dist/x402/handler.d.ts +0 -27
- package/dist/x402/handler.js +0 -236
- package/dist/x402/handler.js.map +0 -1
- /package/dist/{api/peers.d.ts → daemon/peer-sync.d.ts} +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { assertNoRejectPublish, shouldRejectPublish } from './apply-dispositions.js';
|
|
2
|
+
import type { Detector } from './finding.js';
|
|
3
|
+
import { type PolicyTable } from './policy.js';
|
|
4
|
+
import { type PolicyHashInput } from './provenance.js';
|
|
5
|
+
import { type ReviewQueueStore } from './review-queue.js';
|
|
6
|
+
import type { Attributes, ScrubResult, ScrubStage } from './types.js';
|
|
7
|
+
export { shouldRejectPublish, assertNoRejectPublish };
|
|
8
|
+
export interface ScrubPipelineOptions {
|
|
9
|
+
policy?: PolicyTable;
|
|
10
|
+
/** Check-mode: any non-pass disposition rejects (design §6.5). */
|
|
11
|
+
checkMode?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Review-queue store for flag resolutions (#1973). Defaults to the
|
|
14
|
+
* operator-local `~/.jinn-client/scrub-review/queue.jsonl` store in
|
|
15
|
+
* redact-mode. Pass an in-memory store in tests.
|
|
16
|
+
*/
|
|
17
|
+
reviewStore?: ReviewQueueStore;
|
|
18
|
+
/**
|
|
19
|
+
* When true (default in redact-mode), unresolved flags enqueue + throw
|
|
20
|
+
* {@link UnresolvedFlagError}. Check-mode leaves this off.
|
|
21
|
+
*/
|
|
22
|
+
failClosedOnUnresolvedFlags?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Inputs for the published policy hash (#1974). When omitted, emit helpers
|
|
25
|
+
* still bump `schemaVersion` but leave `policyHash` unset.
|
|
26
|
+
*/
|
|
27
|
+
provenance?: Omit<PolicyHashInput, 'policy' | 'detectors'>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Runs one detector inventory, then one disposition pass (#1969).
|
|
31
|
+
*
|
|
32
|
+
* Nested values (#1378): after the flat detect→dispose pass, surviving
|
|
33
|
+
* object/array values are walked and every string leaf is scrubbed through
|
|
34
|
+
* the same detect→dispose path, keyed by the TOP-LEVEL attribute key.
|
|
35
|
+
*
|
|
36
|
+
* Constructor also accepts legacy {@link ScrubStage} arrays (stage.scrub chain)
|
|
37
|
+
* so existing unit tests and injectors keep working through the migration.
|
|
38
|
+
*/
|
|
39
|
+
export declare class ScrubPipeline {
|
|
40
|
+
private readonly policy;
|
|
41
|
+
private readonly checkMode;
|
|
42
|
+
private readonly detectors;
|
|
43
|
+
private readonly stages;
|
|
44
|
+
private readonly reviewStore;
|
|
45
|
+
private readonly failClosedOnUnresolvedFlags;
|
|
46
|
+
private readonly provenanceExtras;
|
|
47
|
+
constructor(detectorsOrStages: Array<Detector | ScrubStage>, opts?: ScrubPipelineOptions);
|
|
48
|
+
get components(): Array<{
|
|
49
|
+
name: string;
|
|
50
|
+
version: string;
|
|
51
|
+
}>;
|
|
52
|
+
/** Disposition policy table used by this pipeline (#1974). */
|
|
53
|
+
get policyTable(): PolicyTable;
|
|
54
|
+
/**
|
|
55
|
+
* Additive provenance fields for a redaction manifest (#1974). Always
|
|
56
|
+
* includes `schemaVersion`; `policyHash` is present when provenance
|
|
57
|
+
* extras were supplied at construction.
|
|
58
|
+
*/
|
|
59
|
+
manifestProvenance(perClassCounts?: Record<string, number>): {
|
|
60
|
+
schemaVersion: number;
|
|
61
|
+
policyHash?: string;
|
|
62
|
+
perClassCounts?: Record<string, number>;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Reproducible policy hash, or undefined when provenance inputs were not
|
|
66
|
+
* configured (legacy stage-only pipelines).
|
|
67
|
+
*/
|
|
68
|
+
policyHash(): string | undefined;
|
|
69
|
+
run(attributes: Attributes): Promise<ScrubResult>;
|
|
70
|
+
private assertAndEnqueueUnresolvedFlags;
|
|
71
|
+
/** Legacy ScrubStage chain (tests / residual injectors). */
|
|
72
|
+
private runLegacyStages;
|
|
73
|
+
private runStagesFlat;
|
|
74
|
+
private scrubNestedLegacy;
|
|
75
|
+
private runDetectDispose;
|
|
76
|
+
private scrubNested;
|
|
77
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { applyDispositions, assertNoRejectPublish, shouldRejectPublish } from './apply-dispositions.js';
|
|
2
|
+
import { DEFAULT_POLICY } from './policy.js';
|
|
3
|
+
import { REDACTION_MANIFEST_SCHEMA_VERSION, computePolicyHash, mergePerClassCounts, } from './provenance.js';
|
|
4
|
+
import { UnresolvedFlagError, createReviewQueueStore, } from './review-queue.js';
|
|
5
|
+
export { shouldRejectPublish, assertNoRejectPublish };
|
|
6
|
+
function isDetector(item) {
|
|
7
|
+
return typeof item.detect === 'function';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Runs one detector inventory, then one disposition pass (#1969).
|
|
11
|
+
*
|
|
12
|
+
* Nested values (#1378): after the flat detect→dispose pass, surviving
|
|
13
|
+
* object/array values are walked and every string leaf is scrubbed through
|
|
14
|
+
* the same detect→dispose path, keyed by the TOP-LEVEL attribute key.
|
|
15
|
+
*
|
|
16
|
+
* Constructor also accepts legacy {@link ScrubStage} arrays (stage.scrub chain)
|
|
17
|
+
* so existing unit tests and injectors keep working through the migration.
|
|
18
|
+
*/
|
|
19
|
+
export class ScrubPipeline {
|
|
20
|
+
policy;
|
|
21
|
+
checkMode;
|
|
22
|
+
detectors;
|
|
23
|
+
stages;
|
|
24
|
+
reviewStore;
|
|
25
|
+
failClosedOnUnresolvedFlags;
|
|
26
|
+
provenanceExtras;
|
|
27
|
+
constructor(detectorsOrStages, opts = {}) {
|
|
28
|
+
this.policy = opts.policy ?? DEFAULT_POLICY;
|
|
29
|
+
this.checkMode = opts.checkMode ?? false;
|
|
30
|
+
this.reviewStore = opts.reviewStore;
|
|
31
|
+
this.failClosedOnUnresolvedFlags =
|
|
32
|
+
opts.failClosedOnUnresolvedFlags ?? !this.checkMode;
|
|
33
|
+
this.provenanceExtras = opts.provenance;
|
|
34
|
+
if (detectorsOrStages.length > 0 && detectorsOrStages.every(isDetector)) {
|
|
35
|
+
this.detectors = detectorsOrStages;
|
|
36
|
+
this.stages = null;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this.detectors = null;
|
|
40
|
+
this.stages = detectorsOrStages;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
get components() {
|
|
44
|
+
const items = this.detectors ?? this.stages ?? [];
|
|
45
|
+
return items.map((d) => ({ name: d.name, version: d.version }));
|
|
46
|
+
}
|
|
47
|
+
/** Disposition policy table used by this pipeline (#1974). */
|
|
48
|
+
get policyTable() {
|
|
49
|
+
return this.policy;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Additive provenance fields for a redaction manifest (#1974). Always
|
|
53
|
+
* includes `schemaVersion`; `policyHash` is present when provenance
|
|
54
|
+
* extras were supplied at construction.
|
|
55
|
+
*/
|
|
56
|
+
manifestProvenance(perClassCounts) {
|
|
57
|
+
const out = { schemaVersion: REDACTION_MANIFEST_SCHEMA_VERSION };
|
|
58
|
+
const hash = this.policyHash();
|
|
59
|
+
if (hash)
|
|
60
|
+
out.policyHash = hash;
|
|
61
|
+
if (perClassCounts && Object.keys(perClassCounts).length > 0) {
|
|
62
|
+
out.perClassCounts = perClassCounts;
|
|
63
|
+
}
|
|
64
|
+
return out;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Reproducible policy hash, or undefined when provenance inputs were not
|
|
68
|
+
* configured (legacy stage-only pipelines).
|
|
69
|
+
*/
|
|
70
|
+
policyHash() {
|
|
71
|
+
if (!this.provenanceExtras)
|
|
72
|
+
return undefined;
|
|
73
|
+
return computePolicyHash({
|
|
74
|
+
policy: this.policy,
|
|
75
|
+
detectors: this.components,
|
|
76
|
+
modelId: this.provenanceExtras.modelId,
|
|
77
|
+
labels: this.provenanceExtras.labels,
|
|
78
|
+
allowlistDigest: this.provenanceExtras.allowlistDigest,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
async run(attributes) {
|
|
82
|
+
if (this.stages) {
|
|
83
|
+
return this.runLegacyStages(attributes);
|
|
84
|
+
}
|
|
85
|
+
const flat = await this.runDetectDispose(attributes);
|
|
86
|
+
const out = {};
|
|
87
|
+
const redactions = [...flat.redactions];
|
|
88
|
+
const findings = [...flat.findings];
|
|
89
|
+
const unresolvedFlags = [...flat.unresolvedFlags];
|
|
90
|
+
let perClassCounts = { ...flat.perClassCounts };
|
|
91
|
+
let rejected = flat.rejected;
|
|
92
|
+
for (const [key, value] of Object.entries(flat.attributes)) {
|
|
93
|
+
out[key] =
|
|
94
|
+
typeof value === 'string'
|
|
95
|
+
? value
|
|
96
|
+
: await this.scrubNested(key, value, redactions, findings, unresolvedFlags, (nestedCounts) => {
|
|
97
|
+
perClassCounts =
|
|
98
|
+
mergePerClassCounts(perClassCounts, nestedCounts) ?? perClassCounts;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
// Check-mode: trust the disposition `rejected` bit. Do not re-derive from
|
|
102
|
+
// raw redactions.length — allowlist-pass records are auditable passes.
|
|
103
|
+
if (this.checkMode && flat.rejected)
|
|
104
|
+
rejected = true;
|
|
105
|
+
const result = {
|
|
106
|
+
attributes: out,
|
|
107
|
+
redactions,
|
|
108
|
+
findings,
|
|
109
|
+
rejected,
|
|
110
|
+
unresolvedFlags,
|
|
111
|
+
perClassCounts,
|
|
112
|
+
};
|
|
113
|
+
// Publish altitude: reject-publish classes abort loudly with a class name.
|
|
114
|
+
// Check-mode distill maps redactions → rejection reasons without throwing.
|
|
115
|
+
if (!this.checkMode)
|
|
116
|
+
assertNoRejectPublish(result, this.policy);
|
|
117
|
+
if (!this.checkMode && this.failClosedOnUnresolvedFlags) {
|
|
118
|
+
this.assertAndEnqueueUnresolvedFlags(result.unresolvedFlags ?? [], attributes);
|
|
119
|
+
}
|
|
120
|
+
return result;
|
|
121
|
+
}
|
|
122
|
+
assertAndEnqueueUnresolvedFlags(unresolved, attributes) {
|
|
123
|
+
if (unresolved.length === 0)
|
|
124
|
+
return;
|
|
125
|
+
// Lazy default: operator-local queue so unattended publishes leave a
|
|
126
|
+
// reviewable trail. Tests inject `reviewStore` (memory) or disable
|
|
127
|
+
// fail-closed via `failClosedOnUnresolvedFlags: false`.
|
|
128
|
+
const store = this.reviewStore ?? createReviewQueueStore();
|
|
129
|
+
const enqueued = store.enqueue(unresolved.map((finding) => {
|
|
130
|
+
const value = attributes[finding.span.key];
|
|
131
|
+
const text = typeof value === 'string' ? value : '';
|
|
132
|
+
const snippet = text.slice(Math.max(0, finding.span.start - 40), Math.min(text.length, finding.span.end + 40));
|
|
133
|
+
return {
|
|
134
|
+
finding,
|
|
135
|
+
context: { attributeKey: finding.span.key, snippet },
|
|
136
|
+
};
|
|
137
|
+
}));
|
|
138
|
+
throw new UnresolvedFlagError(unresolved, enqueued.map((e) => e.id));
|
|
139
|
+
}
|
|
140
|
+
/** Legacy ScrubStage chain (tests / residual injectors). */
|
|
141
|
+
async runLegacyStages(attributes) {
|
|
142
|
+
const flat = await this.runStagesFlat(attributes);
|
|
143
|
+
const out = {};
|
|
144
|
+
const redactions = [...flat.redactions];
|
|
145
|
+
for (const [key, value] of Object.entries(flat.attributes)) {
|
|
146
|
+
out[key] = typeof value === 'string' ? value : await this.scrubNestedLegacy(key, value, redactions);
|
|
147
|
+
}
|
|
148
|
+
return { attributes: out, redactions };
|
|
149
|
+
}
|
|
150
|
+
async runStagesFlat(attributes) {
|
|
151
|
+
let current = attributes;
|
|
152
|
+
const redactions = [];
|
|
153
|
+
for (const stage of this.stages) {
|
|
154
|
+
const result = await stage.scrub(current);
|
|
155
|
+
current = result.attributes;
|
|
156
|
+
redactions.push(...result.redactions);
|
|
157
|
+
}
|
|
158
|
+
return { attributes: current, redactions };
|
|
159
|
+
}
|
|
160
|
+
async scrubNestedLegacy(key, value, redactions) {
|
|
161
|
+
if (typeof value === 'string') {
|
|
162
|
+
const result = await this.runStagesFlat({ [key]: value });
|
|
163
|
+
redactions.push(...result.redactions);
|
|
164
|
+
const scrubbed = result.attributes[key];
|
|
165
|
+
return typeof scrubbed === 'string' ? scrubbed : value;
|
|
166
|
+
}
|
|
167
|
+
if (Array.isArray(value)) {
|
|
168
|
+
const items = [];
|
|
169
|
+
for (const item of value)
|
|
170
|
+
items.push(await this.scrubNestedLegacy(key, item, redactions));
|
|
171
|
+
return items;
|
|
172
|
+
}
|
|
173
|
+
if (value !== null && typeof value === 'object') {
|
|
174
|
+
const proto = Object.getPrototypeOf(value);
|
|
175
|
+
if (proto !== Object.prototype && proto !== null)
|
|
176
|
+
return value;
|
|
177
|
+
const entries = {};
|
|
178
|
+
for (const [k, v] of Object.entries(value)) {
|
|
179
|
+
entries[k] = await this.scrubNestedLegacy(key, v, redactions);
|
|
180
|
+
}
|
|
181
|
+
return entries;
|
|
182
|
+
}
|
|
183
|
+
return value;
|
|
184
|
+
}
|
|
185
|
+
async runDetectDispose(attributes) {
|
|
186
|
+
const findings = [];
|
|
187
|
+
for (const detector of this.detectors) {
|
|
188
|
+
findings.push(...(await detector.detect(attributes)));
|
|
189
|
+
}
|
|
190
|
+
return applyDispositions(attributes, findings, {
|
|
191
|
+
policy: this.policy,
|
|
192
|
+
checkMode: this.checkMode,
|
|
193
|
+
reviewStore: this.reviewStore,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
async scrubNested(key, value, redactions, findings, unresolvedFlags, onCounts) {
|
|
197
|
+
if (typeof value === 'string') {
|
|
198
|
+
const result = await this.runDetectDispose({ [key]: value });
|
|
199
|
+
redactions.push(...result.redactions);
|
|
200
|
+
findings.push(...result.findings);
|
|
201
|
+
unresolvedFlags.push(...result.unresolvedFlags);
|
|
202
|
+
onCounts(result.perClassCounts);
|
|
203
|
+
const scrubbed = result.attributes[key];
|
|
204
|
+
return typeof scrubbed === 'string' ? scrubbed : value;
|
|
205
|
+
}
|
|
206
|
+
if (Array.isArray(value)) {
|
|
207
|
+
const items = [];
|
|
208
|
+
for (const item of value) {
|
|
209
|
+
items.push(await this.scrubNested(key, item, redactions, findings, unresolvedFlags, onCounts));
|
|
210
|
+
}
|
|
211
|
+
return items;
|
|
212
|
+
}
|
|
213
|
+
if (value !== null && typeof value === 'object') {
|
|
214
|
+
const proto = Object.getPrototypeOf(value);
|
|
215
|
+
if (proto !== Object.prototype && proto !== null)
|
|
216
|
+
return value;
|
|
217
|
+
const entries = {};
|
|
218
|
+
for (const [k, v] of Object.entries(value)) {
|
|
219
|
+
entries[k] = await this.scrubNested(key, v, redactions, findings, unresolvedFlags, onCounts);
|
|
220
|
+
}
|
|
221
|
+
return entries;
|
|
222
|
+
}
|
|
223
|
+
return value;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* plain-patterns detector — deterministic regex findings for shapes the
|
|
3
|
+
* probabilistic detectors miss (#1330 / #1415 / #1959 / #1969):
|
|
4
|
+
*
|
|
5
|
+
* - email (B1)
|
|
6
|
+
* - POSIX home-directory paths (D1)
|
|
7
|
+
* - AWS/GCP credential-ID prefixes (A1)
|
|
8
|
+
* - Ethereum-style wallet addresses `0x`+40 hex (C1)
|
|
9
|
+
*
|
|
10
|
+
* Emits findings only — disposition owns stubs. Wallet + credential-ID shapes
|
|
11
|
+
* are always registered in the shared inventory (#1969); policy decides.
|
|
12
|
+
*/
|
|
13
|
+
import { type KeyPolicy } from './key-policy.js';
|
|
14
|
+
import type { Detector } from './finding.js';
|
|
15
|
+
import type { ScrubStage } from './types.js';
|
|
16
|
+
export interface PlainPatternsOptions {
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated (#1969) Credential IDs are always in the shared inventory.
|
|
19
|
+
* Kept so call sites that pass `{ credentialIds: true }` still type-check.
|
|
20
|
+
*/
|
|
21
|
+
credentialIds?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated (#1969) Wallet addresses are always in the shared inventory.
|
|
24
|
+
* Kept so call sites that pass `{ walletAddresses: true }` still type-check.
|
|
25
|
+
*/
|
|
26
|
+
walletAddresses?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function plainPatternsDetector(policy: KeyPolicy, _opts?: PlainPatternsOptions): Detector;
|
|
29
|
+
/**
|
|
30
|
+
* Legacy ScrubStage wrapper: detect + apply default dispositions. New callers
|
|
31
|
+
* should use {@link plainPatternsDetector} via ScrubPipeline.
|
|
32
|
+
*/
|
|
33
|
+
export declare function plainPatternsStage(policy: KeyPolicy, opts?: PlainPatternsOptions): ScrubStage;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* plain-patterns detector — deterministic regex findings for shapes the
|
|
3
|
+
* probabilistic detectors miss (#1330 / #1415 / #1959 / #1969):
|
|
4
|
+
*
|
|
5
|
+
* - email (B1)
|
|
6
|
+
* - POSIX home-directory paths (D1)
|
|
7
|
+
* - AWS/GCP credential-ID prefixes (A1)
|
|
8
|
+
* - Ethereum-style wallet addresses `0x`+40 hex (C1)
|
|
9
|
+
*
|
|
10
|
+
* Emits findings only — disposition owns stubs. Wallet + credential-ID shapes
|
|
11
|
+
* are always registered in the shared inventory (#1969); policy decides.
|
|
12
|
+
*/
|
|
13
|
+
import { applyDispositions } from './apply-dispositions.js';
|
|
14
|
+
import { classifyKey } from './key-policy.js';
|
|
15
|
+
const VERSION = '0.2.0';
|
|
16
|
+
/** Plain email shape. */
|
|
17
|
+
const EMAIL_PATTERN = /[A-Za-z0-9._%+-]+@[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])+)+/g;
|
|
18
|
+
/** POSIX home-dir path segment carrying a username. */
|
|
19
|
+
const HOME_PATH_PATTERN = /\/(?:Users|home)\/[^/\s"'`]+/g;
|
|
20
|
+
/**
|
|
21
|
+
* Bare AWS access-key ID — the fixed four-char prefixes + 16 key chars that
|
|
22
|
+
* secretlint's aws rule only scans for under `enableIDScanRule: true`.
|
|
23
|
+
*/
|
|
24
|
+
const AWS_KEY_ID_PATTERN = /\b(?:A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}\b/g;
|
|
25
|
+
/**
|
|
26
|
+
* GCP API key: fixed `AIza` prefix + 35 key chars. No trailing `\b` — the key
|
|
27
|
+
* charset includes `-`, which breaks word-boundary semantics at the end.
|
|
28
|
+
*/
|
|
29
|
+
const GCP_API_KEY_PATTERN = /\bAIza[0-9A-Za-z_-]{35}/g;
|
|
30
|
+
/**
|
|
31
|
+
* Ethereum-style wallet address: `0x` + exactly 40 hex chars (#1959 / C1).
|
|
32
|
+
* Bare 40-hex git SHAs and `0x`+64 tx hashes must survive.
|
|
33
|
+
*/
|
|
34
|
+
const ETH_ADDRESS_PATTERN = /\b0x[a-fA-F0-9]{40}\b/g;
|
|
35
|
+
const RULES = [
|
|
36
|
+
{ pattern: EMAIL_PATTERN, class: 'B1', evidence: 'email' },
|
|
37
|
+
{ pattern: HOME_PATH_PATTERN, class: 'D1', evidence: 'home-path' },
|
|
38
|
+
{ pattern: AWS_KEY_ID_PATTERN, class: 'A1', evidence: 'aws-access-key-id' },
|
|
39
|
+
{ pattern: GCP_API_KEY_PATTERN, class: 'A1', evidence: 'gcp-api-key' },
|
|
40
|
+
{ pattern: ETH_ADDRESS_PATTERN, class: 'C1', evidence: 'eth-address' },
|
|
41
|
+
];
|
|
42
|
+
function collectMatches(text, key, rule, detector) {
|
|
43
|
+
const findings = [];
|
|
44
|
+
const re = new RegExp(rule.pattern.source, rule.pattern.flags.includes('g') ? rule.pattern.flags : `${rule.pattern.flags}g`);
|
|
45
|
+
let match;
|
|
46
|
+
while ((match = re.exec(text)) !== null) {
|
|
47
|
+
findings.push({
|
|
48
|
+
class: rule.class,
|
|
49
|
+
span: { key, start: match.index, end: match.index + match[0].length },
|
|
50
|
+
confidence: 'VERY_HIGH',
|
|
51
|
+
evidence: [rule.evidence],
|
|
52
|
+
detector,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return findings;
|
|
56
|
+
}
|
|
57
|
+
export function plainPatternsDetector(policy, _opts = {}) {
|
|
58
|
+
const meta = { name: 'plain-patterns', version: VERSION };
|
|
59
|
+
return {
|
|
60
|
+
...meta,
|
|
61
|
+
detect(attributes) {
|
|
62
|
+
const findings = [];
|
|
63
|
+
for (const [key, value] of Object.entries(attributes)) {
|
|
64
|
+
if (typeof value !== 'string' || classifyKey(key, policy) !== 'content')
|
|
65
|
+
continue;
|
|
66
|
+
for (const rule of RULES) {
|
|
67
|
+
findings.push(...collectMatches(value, key, rule, meta));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return findings;
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Legacy ScrubStage wrapper: detect + apply default dispositions. New callers
|
|
76
|
+
* should use {@link plainPatternsDetector} via ScrubPipeline.
|
|
77
|
+
*/
|
|
78
|
+
export function plainPatternsStage(policy, opts = {}) {
|
|
79
|
+
const detector = plainPatternsDetector(policy, opts);
|
|
80
|
+
return {
|
|
81
|
+
name: detector.name,
|
|
82
|
+
version: detector.version,
|
|
83
|
+
scrub(attributes) {
|
|
84
|
+
const findings = detector.detect(attributes);
|
|
85
|
+
return applyDispositions(attributes, findings);
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Versioned disposition policy (#1969 / design §6.5).
|
|
3
|
+
*
|
|
4
|
+
* disposition(class, band) -> redact | reject-publish | flag | pass
|
|
5
|
+
*
|
|
6
|
+
* Defaults follow §3.2's rightmost columns. C2 stays `pass` until the flag
|
|
7
|
+
* review surface exists (do not redact 0x+64 tx hashes).
|
|
8
|
+
*/
|
|
9
|
+
import type { Band, Finding, ScrubClass } from './finding.js';
|
|
10
|
+
export type Disposition = 'redact' | 'reject-publish' | 'flag' | 'pass';
|
|
11
|
+
export declare const POLICY_VERSION = "1.0.0";
|
|
12
|
+
/** Per-band dispositions for one class. Missing bands fall back to `pass`. */
|
|
13
|
+
export type ClassDispositionRow = Partial<Record<Band, Disposition>>;
|
|
14
|
+
export interface PolicyTable {
|
|
15
|
+
version: string;
|
|
16
|
+
dispositions: Partial<Record<ScrubClass, ClassDispositionRow>>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Default policy. High-confidence deterministic classes redact; reject classes
|
|
20
|
+
* (A4/A5) reject-publish; A2 mid-band flags; C2 passes pending flag surface.
|
|
21
|
+
*/
|
|
22
|
+
export declare const DEFAULT_POLICY: PolicyTable;
|
|
23
|
+
export declare function resolveDisposition(scrubClass: ScrubClass, band: Band, policy?: PolicyTable): Disposition;
|
|
24
|
+
/**
|
|
25
|
+
* Check-mode mapping (design §6.5): any non-`pass` disposition → reject.
|
|
26
|
+
* One mapping line — not a second pipeline.
|
|
27
|
+
*/
|
|
28
|
+
export declare function checkModeRejects(findings: Finding[], policy?: PolicyTable): boolean;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Versioned disposition policy (#1969 / design §6.5).
|
|
3
|
+
*
|
|
4
|
+
* disposition(class, band) -> redact | reject-publish | flag | pass
|
|
5
|
+
*
|
|
6
|
+
* Defaults follow §3.2's rightmost columns. C2 stays `pass` until the flag
|
|
7
|
+
* review surface exists (do not redact 0x+64 tx hashes).
|
|
8
|
+
*/
|
|
9
|
+
export const POLICY_VERSION = '1.0.0';
|
|
10
|
+
/**
|
|
11
|
+
* Default policy. High-confidence deterministic classes redact; reject classes
|
|
12
|
+
* (A4/A5) reject-publish; A2 mid-band flags; C2 passes pending flag surface.
|
|
13
|
+
*/
|
|
14
|
+
export const DEFAULT_POLICY = {
|
|
15
|
+
version: POLICY_VERSION,
|
|
16
|
+
dispositions: {
|
|
17
|
+
A1: {
|
|
18
|
+
VERY_HIGH: 'redact',
|
|
19
|
+
HIGH: 'redact',
|
|
20
|
+
MEDIUM: 'redact',
|
|
21
|
+
LOW: 'flag',
|
|
22
|
+
VERY_LOW: 'pass',
|
|
23
|
+
},
|
|
24
|
+
A2: {
|
|
25
|
+
VERY_HIGH: 'redact',
|
|
26
|
+
HIGH: 'redact',
|
|
27
|
+
MEDIUM: 'flag',
|
|
28
|
+
LOW: 'pass',
|
|
29
|
+
VERY_LOW: 'pass',
|
|
30
|
+
},
|
|
31
|
+
A3: {
|
|
32
|
+
VERY_HIGH: 'redact',
|
|
33
|
+
HIGH: 'redact',
|
|
34
|
+
MEDIUM: 'redact',
|
|
35
|
+
LOW: 'flag',
|
|
36
|
+
VERY_LOW: 'pass',
|
|
37
|
+
},
|
|
38
|
+
A4: {
|
|
39
|
+
VERY_HIGH: 'reject-publish',
|
|
40
|
+
HIGH: 'reject-publish',
|
|
41
|
+
MEDIUM: 'reject-publish',
|
|
42
|
+
LOW: 'flag',
|
|
43
|
+
VERY_LOW: 'pass',
|
|
44
|
+
},
|
|
45
|
+
A5: {
|
|
46
|
+
VERY_HIGH: 'reject-publish',
|
|
47
|
+
HIGH: 'reject-publish',
|
|
48
|
+
MEDIUM: 'reject-publish',
|
|
49
|
+
LOW: 'flag',
|
|
50
|
+
VERY_LOW: 'pass',
|
|
51
|
+
},
|
|
52
|
+
B1: {
|
|
53
|
+
VERY_HIGH: 'redact',
|
|
54
|
+
HIGH: 'redact',
|
|
55
|
+
MEDIUM: 'redact',
|
|
56
|
+
LOW: 'flag',
|
|
57
|
+
VERY_LOW: 'pass',
|
|
58
|
+
},
|
|
59
|
+
B2: {
|
|
60
|
+
VERY_HIGH: 'redact',
|
|
61
|
+
HIGH: 'redact',
|
|
62
|
+
MEDIUM: 'redact',
|
|
63
|
+
LOW: 'flag',
|
|
64
|
+
VERY_LOW: 'pass',
|
|
65
|
+
},
|
|
66
|
+
B3: {
|
|
67
|
+
VERY_HIGH: 'redact',
|
|
68
|
+
HIGH: 'flag',
|
|
69
|
+
MEDIUM: 'flag',
|
|
70
|
+
LOW: 'pass',
|
|
71
|
+
VERY_LOW: 'pass',
|
|
72
|
+
},
|
|
73
|
+
B4: {
|
|
74
|
+
VERY_HIGH: 'redact',
|
|
75
|
+
HIGH: 'redact',
|
|
76
|
+
MEDIUM: 'flag',
|
|
77
|
+
LOW: 'pass',
|
|
78
|
+
VERY_LOW: 'pass',
|
|
79
|
+
},
|
|
80
|
+
B5: {
|
|
81
|
+
VERY_HIGH: 'redact',
|
|
82
|
+
HIGH: 'redact',
|
|
83
|
+
MEDIUM: 'flag',
|
|
84
|
+
LOW: 'pass',
|
|
85
|
+
VERY_LOW: 'pass',
|
|
86
|
+
},
|
|
87
|
+
B6: {
|
|
88
|
+
VERY_HIGH: 'flag',
|
|
89
|
+
HIGH: 'flag',
|
|
90
|
+
MEDIUM: 'flag',
|
|
91
|
+
LOW: 'pass',
|
|
92
|
+
VERY_LOW: 'pass',
|
|
93
|
+
},
|
|
94
|
+
B7: {
|
|
95
|
+
VERY_HIGH: 'redact',
|
|
96
|
+
HIGH: 'redact',
|
|
97
|
+
MEDIUM: 'flag',
|
|
98
|
+
LOW: 'pass',
|
|
99
|
+
VERY_LOW: 'pass',
|
|
100
|
+
},
|
|
101
|
+
C1: {
|
|
102
|
+
VERY_HIGH: 'redact',
|
|
103
|
+
HIGH: 'redact',
|
|
104
|
+
MEDIUM: 'redact',
|
|
105
|
+
LOW: 'flag',
|
|
106
|
+
VERY_LOW: 'pass',
|
|
107
|
+
},
|
|
108
|
+
// C2: §3.2 default is flag, but provenance receipts (0x+64 tx hashes) must
|
|
109
|
+
// survive — leave as pass (locked Q / deferred from review-queue landing).
|
|
110
|
+
C2: {
|
|
111
|
+
VERY_HIGH: 'pass',
|
|
112
|
+
HIGH: 'pass',
|
|
113
|
+
MEDIUM: 'pass',
|
|
114
|
+
LOW: 'pass',
|
|
115
|
+
VERY_LOW: 'pass',
|
|
116
|
+
},
|
|
117
|
+
D1: {
|
|
118
|
+
VERY_HIGH: 'redact',
|
|
119
|
+
HIGH: 'redact',
|
|
120
|
+
MEDIUM: 'redact',
|
|
121
|
+
LOW: 'flag',
|
|
122
|
+
VERY_LOW: 'pass',
|
|
123
|
+
},
|
|
124
|
+
D2: {
|
|
125
|
+
VERY_HIGH: 'redact',
|
|
126
|
+
HIGH: 'redact',
|
|
127
|
+
MEDIUM: 'flag',
|
|
128
|
+
LOW: 'pass',
|
|
129
|
+
VERY_LOW: 'pass',
|
|
130
|
+
},
|
|
131
|
+
D3: {
|
|
132
|
+
VERY_HIGH: 'redact',
|
|
133
|
+
HIGH: 'redact',
|
|
134
|
+
MEDIUM: 'flag',
|
|
135
|
+
LOW: 'pass',
|
|
136
|
+
VERY_LOW: 'pass',
|
|
137
|
+
},
|
|
138
|
+
E1: {
|
|
139
|
+
VERY_HIGH: 'flag',
|
|
140
|
+
HIGH: 'flag',
|
|
141
|
+
MEDIUM: 'flag',
|
|
142
|
+
LOW: 'pass',
|
|
143
|
+
VERY_LOW: 'pass',
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
export function resolveDisposition(scrubClass, band, policy = DEFAULT_POLICY) {
|
|
148
|
+
return policy.dispositions[scrubClass]?.[band] ?? 'pass';
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Check-mode mapping (design §6.5): any non-`pass` disposition → reject.
|
|
152
|
+
* One mapping line — not a second pipeline.
|
|
153
|
+
*/
|
|
154
|
+
export function checkModeRejects(findings, policy = DEFAULT_POLICY) {
|
|
155
|
+
return findings.some((f) => resolveDisposition(f.class, f.confidence, policy) !== 'pass');
|
|
156
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scrub provenance for the published redaction manifest (#1974 / design §6.7).
|
|
3
|
+
*
|
|
4
|
+
* Locked Q5: additive optional fields on the existing redaction-manifest shape
|
|
5
|
+
* (`schemaVersion` 2) — no TraceEnvelope rev. Old envelopes remain readable.
|
|
6
|
+
*/
|
|
7
|
+
import type { ScrubClass } from './finding.js';
|
|
8
|
+
import type { Disposition, PolicyTable } from './policy.js';
|
|
9
|
+
/** Manifest schema version that includes optional provenance fields. */
|
|
10
|
+
export declare const REDACTION_MANIFEST_SCHEMA_VERSION = 2;
|
|
11
|
+
/** Disposition kinds counted in `perClassCounts` (pass is omitted). */
|
|
12
|
+
export type CountedDisposition = 'redact' | 'flag' | 'reject';
|
|
13
|
+
export interface PolicyHashInput {
|
|
14
|
+
/** Versioned disposition policy table. */
|
|
15
|
+
policy: PolicyTable;
|
|
16
|
+
/** Detector inventory (name + pinned version), order-insensitive. */
|
|
17
|
+
detectors: ReadonlyArray<{
|
|
18
|
+
name: string;
|
|
19
|
+
version: string;
|
|
20
|
+
}>;
|
|
21
|
+
/** ML model id when the ML tier is present; null otherwise. */
|
|
22
|
+
modelId: string | null;
|
|
23
|
+
/** Zero-shot / NER label set hashed into the policy digest. */
|
|
24
|
+
labels: readonly string[];
|
|
25
|
+
/** Digest of the instance allowlist (see {@link computeAllowlistDigest}). */
|
|
26
|
+
allowlistDigest: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Stable key for one class × applied disposition in `perClassCounts`.
|
|
30
|
+
* Reject-publish dispositions are recorded as `reject`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function perClassCountKey(scrubClass: ScrubClass, disposition: CountedDisposition): string;
|
|
33
|
+
/** Map a policy disposition onto the counted kind (or null for pass). */
|
|
34
|
+
export declare function countedDisposition(disposition: Disposition): CountedDisposition | null;
|
|
35
|
+
/**
|
|
36
|
+
* sha256 hex over a canonical JSON of allowlist entries sorted by
|
|
37
|
+
* (value, kind). Provenance notes are excluded so the digest is about
|
|
38
|
+
* *what* is allowlisted, not the human rationale string.
|
|
39
|
+
*/
|
|
40
|
+
export declare function computeAllowlistDigest(entries: ReadonlyArray<{
|
|
41
|
+
value: string;
|
|
42
|
+
kind: string;
|
|
43
|
+
}>): string;
|
|
44
|
+
/**
|
|
45
|
+
* Reproducible policy/composition hash: same inputs → same hex digest.
|
|
46
|
+
* Payload is RFC 8785 canonical JSON of policy + sorted detectors + model
|
|
47
|
+
* id + sorted labels + allowlist digest, then sha256.
|
|
48
|
+
*/
|
|
49
|
+
export declare function computePolicyHash(input: PolicyHashInput): string;
|
|
50
|
+
/** Increment one class:disposition counter (mutates `counts`). */
|
|
51
|
+
export declare function incrementPerClassCount(counts: Record<string, number>, scrubClass: ScrubClass, disposition: Disposition): void;
|
|
52
|
+
/** Sum two per-class count maps (missing → empty). */
|
|
53
|
+
export declare function mergePerClassCounts(a?: Record<string, number>, b?: Record<string, number>): Record<string, number> | undefined;
|