@quantiya/codevibe-codex-plugin 2.0.6 → 2.0.8
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/README.md +20 -23
- package/dist/server.js +21 -21
- package/hooks/common.sh +506 -19
- package/{bin/codevibe-codex → libexec/companion-launcher} +37 -76
- package/node_modules/@quantiya/codevibe-core/README.md +7 -5
- package/node_modules/@quantiya/codevibe-core/dist/agy-cli-contract.d.ts +14 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +229 -61
- package/node_modules/@quantiya/codevibe-core/dist/appsync/event-throttle.d.ts +33 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/index.d.ts +3 -2
- package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +6 -2
- package/node_modules/@quantiya/codevibe-core/dist/auth/auth-telemetry.d.ts +26 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/keychain-cli.d.ts +6 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/vendor-key-cli.d.ts +49 -0
- package/node_modules/@quantiya/codevibe-core/dist/companion-mode/index.d.ts +50 -22
- package/node_modules/@quantiya/codevibe-core/dist/companion-mode/persist-preference.d.ts +1 -5
- package/node_modules/@quantiya/codevibe-core/dist/companion-mode/resolve-agent.d.ts +5 -4
- package/node_modules/@quantiya/codevibe-core/dist/config/config.d.ts +0 -5
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/__tests__/oauth-refresh.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/__tests__/upstream-result-helpers.d.ts +21 -0
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/broker.d.ts +196 -12
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/chatgpt-config.d.ts +40 -0
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/index.d.ts +4 -1
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/oauth-account-lock.d.ts +150 -0
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/oauth-refresh.d.ts +72 -0
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/types.d.ts +165 -17
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/upstream-client.d.ts +3 -2
- package/node_modules/@quantiya/codevibe-core/dist/credential-broker/vendor-key-store.d.ts +32 -1
- package/node_modules/@quantiya/codevibe-core/dist/crypto/__tests__/encrypt-for-emit.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/__tests__/open-prompt-id.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/encrypt-for-emit.d.ts +39 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/index.d.ts +3 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/open-prompt-id.d.ts +36 -0
- package/node_modules/@quantiya/codevibe-core/dist/daemon/__tests__/process-guards.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/daemon/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/daemon/process-guards.d.ts +38 -0
- package/node_modules/@quantiya/codevibe-core/dist/e1/__tests__/prompt-raise.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/e1/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/e1/prompt-raise.d.ts +65 -0
- package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +20 -2
- package/node_modules/@quantiya/codevibe-core/dist/index.js +4543 -288
- package/node_modules/@quantiya/codevibe-core/dist/keychain/__tests__/keychain-manager.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/keychain/__tests__/keychain-migrate.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-backend.d.ts +105 -0
- package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-manager.d.ts +40 -5
- package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-migrate.d.ts +46 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/anchored-fs.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/bounded-directory.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/bounded-output.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/durable-directory.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/hosted-class-a-sink.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/process-identity.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/process-tree.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/publication-authority-capability.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/reviewer-rationale-flag.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/snapshot-merge.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/workspace-authority-fixture.d.ts +3 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/workspace-authority.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/workspace-materializer.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/agentic-disposable-repo.d.ts +23 -6
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/agentic-resolve.d.ts +16 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/anchored-fs.d.ts +243 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/bounded-directory.d.ts +64 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/bounded-helper.d.ts +22 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/bounded-output.d.ts +11 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/class-a-emit.d.ts +13 -1
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/class-a-sign.d.ts +15 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/durable-directory.d.ts +25 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/durable-store.d.ts +217 -25
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/group-decision-outcome.d.ts +11 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/hosted-class-a-sink.d.ts +27 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/implementor-argv.d.ts +89 -7
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/index.d.ts +3 -2
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/local-executor-impl.d.ts +177 -76
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/merge-conflict-resolve.d.ts +19 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/process-identity.d.ts +16 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/process-tree.d.ts +123 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/revert-reconcile.d.ts +16 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/revert-runner.d.ts +14 -1
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/reviewer-rationale-flag.d.ts +10 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/snapshot-merge.d.ts +124 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/task-group-types.d.ts +7 -6
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/team-execution-flag.d.ts +2 -2
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/track-registry.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/types.d.ts +34 -2
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-gates/build.d.ts +5 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-gates/deploy-preflight.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-gates/diff-sanity.d.ts +12 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-gates/hostile-grep.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-gates/lint.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-gates/shell-runner.d.ts +5 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-gates/source-traceability.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-gates/tests.d.ts +3 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-gates/typecheck.d.ts +3 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/verification-runner.d.ts +6 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/workspace-authority.d.ts +45 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/workspace-materializer.d.ts +27 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/workspace-shadow.d.ts +378 -85
- package/node_modules/@quantiya/codevibe-core/dist/local-model/manager.d.ts +1 -1
- package/node_modules/@quantiya/codevibe-core/dist/local-model/ollama.d.ts +40 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/detect-agents.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/detect-agents.d.ts +10 -30
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/index.d.ts +1 -2
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/a1a-planner-offers.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/a6-cli-surface.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/advisory-attachment-journal.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/advisory-attachments-dir-race.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/advisory-multi-mention-panel.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/advisory-panel-attachments.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/advisory-quota-stdout-result.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/agent-turn-context-batch.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/bounded-shutdown.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/brainstorm-quorum-wiring.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/brainstorm-quorum.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/cli-team-session-key.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/command-intent.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/context-compaction.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/context-items-hosted-sync.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/context-items-wiring.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/context-items.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/cp8-full-team-events.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/cp8-team-decomposed-zk.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/explicit-tty-exit.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/mention-suggest.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/planner-offer-e1.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/route-browse-summarize-recovery.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/workspace-shutdown.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/advisory-attachment-journal.d.ts +165 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/attachments.d.ts +53 -8
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/bounded-shutdown.d.ts +22 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/brainstorm-quorum.d.ts +118 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +97 -70
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +51847 -33465
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/command-intent.d.ts +56 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/components/InputBar.d.ts +6 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/components/OrchestrationApp.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/context-compaction.d.ts +264 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/context-items-hosted-sync.d.ts +19 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/context-items.d.ts +408 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/context-store.d.ts +162 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/declared-test-runner.d.ts +21 -2
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/emit-shell-event.d.ts +41 -13
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/explicit-tty-exit.d.ts +17 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/gate-decision-submit.d.ts +11 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/gate-prompts.d.ts +78 -3
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/index.d.ts +309 -37
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/mention-suggest.d.ts +11 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/mode-selection.d.ts +4 -22
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/planner-offer-e1.d.ts +97 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/quorum-loop.d.ts +603 -77
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/reducer.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/task-progress.d.ts +17 -4
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/team-decompose.d.ts +47 -29
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/types.d.ts +103 -6
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/workspace-shutdown.d.ts +27 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/index.d.ts +1 -1
- package/node_modules/@quantiya/codevibe-core/dist/planner/local-advisory.d.ts +12 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/local-gemma.d.ts +27 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/types.d.ts +7 -0
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/index.d.ts +0 -2
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/output-parser.d.ts +19 -0
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/provider.d.ts +9 -6
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/antigravity.d.ts +2 -3
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/registry.d.ts +9 -4
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/token-usage.d.ts +10 -0
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/types.d.ts +3 -0
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/verdict-classifier.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/__tests__/device-registration-lease.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/__tests__/pending-session-create.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/__tests__/session-rekey-fingerprint.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/__tests__/session-resume-key-reconciliation.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/__tests__/session-resume-pending-first.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/device-key-watcher.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/index.d.ts +4 -2
- package/node_modules/@quantiya/codevibe-core/dist/session/pending-session-create.d.ts +61 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/register-device-key.d.ts +11 -1
- package/node_modules/@quantiya/codevibe-core/dist/session/session-rekey.d.ts +8 -8
- package/node_modules/@quantiya/codevibe-core/dist/session/session-resume.d.ts +21 -1
- package/node_modules/@quantiya/codevibe-core/dist/substrate/command-runner.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/substrate/docker.d.ts +14 -32
- package/node_modules/@quantiya/codevibe-core/dist/substrate/index.d.ts +0 -1
- package/node_modules/@quantiya/codevibe-core/dist/substrate/sandbox-exec.d.ts +17 -16
- package/node_modules/@quantiya/codevibe-core/dist/substrate/types.d.ts +39 -5
- package/node_modules/@quantiya/codevibe-core/dist/substrate-launch/__tests__/reviewer-credential-preflight.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/substrate-launch/apikey-bootstrap.d.ts +24 -1
- package/node_modules/@quantiya/codevibe-core/dist/substrate-launch/engage-substrate.d.ts +20 -0
- package/node_modules/@quantiya/codevibe-core/dist/substrate-launch/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/substrate-launch/reviewer-credential-preflight.d.ts +50 -0
- package/node_modules/@quantiya/codevibe-core/dist/substrate-launch/sanitized-env.d.ts +5 -5
- package/node_modules/@quantiya/codevibe-core/dist/test-publication-authority-setup.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/consolidator.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/digest.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/flock-rollout-lock.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/ledger.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/outbox.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/replay-cursor.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/session-map.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/socket-rollout-lock.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/atomic-file.d.ts +27 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/consolidator.d.ts +253 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/digest.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/flock-rollout-lock.d.ts +68 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/index.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/ledger.d.ts +274 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/outbox.d.ts +60 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/replay-cursor.d.ts +190 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/session-map.d.ts +133 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/socket-rollout-lock.d.ts +57 -0
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/types.d.ts +368 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/encryption.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/events.d.ts +29 -4
- package/node_modules/@quantiya/codevibe-core/dist/types/session.d.ts +32 -2
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/README.md +207 -163
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/index.d.ts +15 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/index.js +31 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/max.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/max.js +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/md5.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/md5.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/native.d.ts +6 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/native.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/nil.js +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/package.json +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/parse.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/regex.js +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/rng.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/sha1.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/sha1.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/stringify.js +39 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/types.d.ts +21 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/types.js +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v1.js +87 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v3.js +14 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v35.js +44 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v4.js +29 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v5.js +14 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v6.js +22 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/v7.js +69 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/validate.js +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/version.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs/version.js +10 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/index.js +31 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/max.js +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/native.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/package.json +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/stringify.js +39 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/types.js +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v1.js +87 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v35.js +44 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v4.js +29 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v6.js +22 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/v7.js +69 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/cjs-browser/version.js +10 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/bin/uuid +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/index.d.ts +15 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/{esm-node → esm}/index.js +9 -4
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/max.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/max.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/md5.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/md5.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/native.d.ts +6 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/native.js +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/nil.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/nil.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/parse.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/parse.js +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/regex.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/regex.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/rng.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/rng.js +10 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/sha1.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/sha1.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/stringify.js +35 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/types.d.ts +21 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/types.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v1.d.ts +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v1.js +83 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v3.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v3.js +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v35.d.ts +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v35.js +39 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v4.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v4.js +27 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v5.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v5.js +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v6.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v6.js +20 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v7.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/v7.js +65 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/validate.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/validate.js +5 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/version.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm/version.js +8 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/index.js +9 -4
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/md5.js +113 -193
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/native.js +1 -3
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/nil.js +1 -1
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/parse.js +6 -32
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/rng.js +6 -13
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/sha1.js +62 -88
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/stringify.js +27 -25
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/types.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v1.js +78 -90
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v1ToV6.js +10 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v3.js +8 -3
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v35.js +30 -57
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v4.js +21 -23
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v5.js +8 -3
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v6.js +20 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v6ToV1.js +10 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v7.js +65 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/validate.js +2 -4
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/version.js +5 -8
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/package.json +73 -76
- package/node_modules/@quantiya/codevibe-core/package.json +7 -6
- package/node_modules/fs-ext/.eslintrc +53 -0
- package/node_modules/fs-ext/.github/workflows/node.js.yml +31 -0
- package/node_modules/fs-ext/.travis.yml +25 -0
- package/node_modules/fs-ext/LICENSE.txt +18 -0
- package/node_modules/fs-ext/README.md +130 -0
- package/node_modules/fs-ext/appveyor.yml +20 -0
- package/node_modules/fs-ext/binding.gyp +11 -0
- package/node_modules/fs-ext/build/Makefile +347 -0
- package/node_modules/fs-ext/build/Release/.deps/Release/fs_ext.node.d +1 -0
- package/node_modules/fs-ext/build/Release/.deps/Release/obj.target/fs_ext/fs-ext.o.d +165 -0
- package/node_modules/fs-ext/build/Release/fs_ext.node +0 -0
- package/node_modules/fs-ext/build/Release/obj.target/fs_ext/fs-ext.o +0 -0
- package/node_modules/fs-ext/build/binding.Makefile +6 -0
- package/node_modules/fs-ext/build/config.gypi +504 -0
- package/node_modules/fs-ext/build/fs_ext.target.mk +183 -0
- package/node_modules/fs-ext/build/gyp-mac-tool +768 -0
- package/node_modules/fs-ext/example.js +57 -0
- package/node_modules/fs-ext/fs-ext.cc +622 -0
- package/node_modules/fs-ext/fs-ext.js +131 -0
- package/node_modules/fs-ext/package.json +42 -0
- package/node_modules/fs-ext/run_tests.js +17 -0
- package/node_modules/fs-ext/tests/test-fs-fcntl.js +350 -0
- package/node_modules/fs-ext/tests/test-fs-flock.js +452 -0
- package/node_modules/fs-ext/tests/test-fs-flock_stress.js +239 -0
- package/node_modules/fs-ext/tests/test-fs-seek.js +607 -0
- package/node_modules/fs-ext/tests/test-fs-seek_stress.js +313 -0
- package/node_modules/fs-ext/tests/test-fs-statvfs.js +15 -0
- package/node_modules/fs-ext/tests/worker-test.js +56 -0
- package/node_modules/fs-ext/wscript +15 -0
- package/node_modules/nan/.github/workflows/ci.yml +46 -0
- package/node_modules/nan/.pre-commit-config.yaml +8 -0
- package/node_modules/nan/CHANGELOG.md +605 -0
- package/node_modules/nan/CMakeLists.txt +138 -0
- package/node_modules/nan/LICENSE.md +9 -0
- package/node_modules/nan/README.md +457 -0
- package/node_modules/nan/doc/asyncworker.md +146 -0
- package/node_modules/nan/doc/buffers.md +54 -0
- package/node_modules/nan/doc/callback.md +76 -0
- package/node_modules/nan/doc/converters.md +41 -0
- package/node_modules/nan/doc/errors.md +226 -0
- package/node_modules/nan/doc/json.md +62 -0
- package/node_modules/nan/doc/maybe_types.md +583 -0
- package/node_modules/nan/doc/methods.md +689 -0
- package/node_modules/nan/doc/new.md +147 -0
- package/node_modules/nan/doc/node_misc.md +123 -0
- package/node_modules/nan/doc/object_wrappers.md +263 -0
- package/node_modules/nan/doc/persistent.md +296 -0
- package/node_modules/nan/doc/scopes.md +73 -0
- package/node_modules/nan/doc/script.md +58 -0
- package/node_modules/nan/doc/string_bytes.md +81 -0
- package/node_modules/nan/doc/v8_internals.md +211 -0
- package/node_modules/nan/doc/v8_misc.md +85 -0
- package/node_modules/nan/include_dirs.js +1 -0
- package/node_modules/nan/nan.h +3202 -0
- package/node_modules/nan/nan_callbacks.h +141 -0
- package/node_modules/nan/nan_callbacks_12_inl.h +730 -0
- package/node_modules/nan/nan_callbacks_pre_12_inl.h +528 -0
- package/node_modules/nan/nan_converters.h +72 -0
- package/node_modules/nan/nan_converters_43_inl.h +68 -0
- package/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
- package/node_modules/nan/nan_define_own_property_helper.h +29 -0
- package/node_modules/nan/nan_implementation_12_inl.h +446 -0
- package/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
- package/node_modules/nan/nan_json.h +166 -0
- package/node_modules/nan/nan_maybe_43_inl.h +360 -0
- package/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
- package/node_modules/nan/nan_new.h +340 -0
- package/node_modules/nan/nan_object_wrap.h +156 -0
- package/node_modules/nan/nan_persistent_12_inl.h +132 -0
- package/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
- package/node_modules/nan/nan_private.h +73 -0
- package/node_modules/nan/nan_scriptorigin.h +97 -0
- package/node_modules/nan/nan_string_bytes.h +305 -0
- package/node_modules/nan/nan_typedarray_contents.h +96 -0
- package/node_modules/nan/nan_weak.h +453 -0
- package/node_modules/nan/package.json +38 -0
- package/node_modules/nan/tools/1to2.js +412 -0
- package/node_modules/nan/tools/README.md +14 -0
- package/node_modules/nan/tools/package.json +19 -0
- package/package.json +5 -5
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/orchestration-cli.d.ts +0 -12
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-bootstrap.d.ts +0 -146
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-failure-recourse.d.ts +0 -23
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-save.d.ts +0 -47
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-seat-picker.d.ts +0 -72
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-telemetry.d.ts +0 -54
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-test-agents.d.ts +0 -108
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-types.d.ts +0 -146
- package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-wizard.d.ts +0 -57
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cohort-flag.d.ts +0 -16
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/gemini.d.ts +0 -109
- package/node_modules/@quantiya/codevibe-core/dist/substrate/git-proxy.d.ts +0 -35
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CHANGELOG.md +0 -274
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CONTRIBUTING.md +0 -18
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/bin/uuid +0 -2
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/md5.js +0 -13
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/native.js +0 -4
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/parse.js +0 -35
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/regex.js +0 -1
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/rng.js +0 -12
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/sha1.js +0 -13
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/stringify.js +0 -33
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v1.js +0 -95
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v35.js +0 -66
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v4.js +0 -29
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/validate.js +0 -7
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/version.js +0 -11
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/index.js +0 -79
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5-browser.js +0 -223
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5.js +0 -23
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native-browser.js +0 -11
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native.js +0 -15
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/nil.js +0 -8
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/parse.js +0 -45
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/regex.js +0 -8
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng-browser.js +0 -25
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng.js +0 -24
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1-browser.js +0 -104
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1.js +0 -23
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/stringify.js +0 -44
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/uuid-bin.js +0 -85
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v1.js +0 -107
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v3.js +0 -16
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v35.js +0 -80
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v4.js +0 -43
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v5.js +0 -16
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/validate.js +0 -17
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/version.js +0 -21
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/wrapper.mjs +0 -10
- /package/node_modules/@quantiya/codevibe-core/dist/{companion-mode/__tests__/detect-parallel.test.d.ts → appsync/__tests__/appsync-client-context-items.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration-shell/__tests__/cli-stub-session-adapter.test.d.ts → appsync/__tests__/heartbeat-active.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration/__tests__/setup-bootstrap.test.d.ts → appsync/__tests__/orphan-sweep-null-heartbeat.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration/__tests__/setup-failure-recourse.test.d.ts → appsync/__tests__/refresh-open-prompt-ttl-chunk.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration/__tests__/setup-save.test.d.ts → auth/__tests__/keychain-cli.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration/__tests__/setup-seat-picker.test.d.ts → auth/__tests__/vendor-key-cli.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration/__tests__/setup-telemetry.test.d.ts → companion-mode/__tests__/mode-selected-emit.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration/__tests__/setup-test-agents.test.d.ts → companion-mode/__tests__/private-launcher-detection.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration/__tests__/setup-types.test.d.ts → companion-mode/__tests__/private-launcher-path.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration/__tests__/setup-wizard.test.d.ts → credential-broker/__tests__/broker-c4.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{reviewer/providers/__tests__/gemini-live-smoke.test.d.ts → credential-broker/__tests__/broker-streaming.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{reviewer/providers/__tests__/gemini.test.d.ts → credential-broker/__tests__/chatgpt-config.test.d.ts} +0 -0
- /package/node_modules/@quantiya/codevibe-core/dist/{substrate/__tests__/git-proxy.test.d.ts → credential-broker/__tests__/oauth-account-lock.test.d.ts} +0 -0
|
@@ -24,7 +24,6 @@ export declare class ReviewerRegistry implements ReviewerProvider {
|
|
|
24
24
|
* ```ts
|
|
25
25
|
* const registry = new ReviewerRegistry()
|
|
26
26
|
* .with('claude', new ClaudeReviewerProvider())
|
|
27
|
-
* .with('gemini', new GeminiReviewerProvider())
|
|
28
27
|
* .with('codex', new CodexReviewerProvider());
|
|
29
28
|
* ```
|
|
30
29
|
*
|
|
@@ -65,11 +64,18 @@ export declare class ReviewerRegistry implements ReviewerProvider {
|
|
|
65
64
|
evaluate(spec: ReviewerSpec, gateId: string, opts?: ReviewerEvaluateOptions): Promise<ReviewerVerdict>;
|
|
66
65
|
}
|
|
67
66
|
/**
|
|
68
|
-
* Production factory: build a registry pre-populated with
|
|
69
|
-
* subprocess providers (Claude,
|
|
67
|
+
* Production factory: build a registry pre-populated with the three
|
|
68
|
+
* supported subprocess providers (Claude, Codex, Antigravity) using the
|
|
70
69
|
* standard binaries from PATH. Equivalent of Rust's
|
|
71
70
|
* `withSubprocessProviders()` napi factory.
|
|
72
71
|
*
|
|
72
|
+
* Gemini is SUNSET (2026-07): it is no longer registered here, so a policy
|
|
73
|
+
* that names a `gemini` reviewer fails closed via `evaluate`'s
|
|
74
|
+
* missing-provider path (throws `spawn_failed` → engine escalates to the
|
|
75
|
+
* user) rather than silently spawning `gemini`. The `'GEMINI'` AgentKind
|
|
76
|
+
* value is retained for backward-compatible deserialization of legacy
|
|
77
|
+
* records; it is simply not a routable reviewer.
|
|
78
|
+
*
|
|
73
79
|
* Plugins call this once at startup and hand the registry to the
|
|
74
80
|
* engine fan-out path. Inert registrations cost nothing — no
|
|
75
81
|
* subprocess fires until the policy actually references that agent.
|
|
@@ -80,7 +86,6 @@ export declare class ReviewerRegistry implements ReviewerProvider {
|
|
|
80
86
|
* ```ts
|
|
81
87
|
* const registry = new ReviewerRegistry()
|
|
82
88
|
* .with('claude', new ClaudeReviewerProvider({ executable: '/opt/bin/claude' }))
|
|
83
|
-
* .with('gemini', new GeminiReviewerProvider({ executable: '/opt/bin/gemini' }))
|
|
84
89
|
* .with('codex', new CodexReviewerProvider({ executable: '/opt/bin/codex' }));
|
|
85
90
|
* ```
|
|
86
91
|
*/
|
|
@@ -9,6 +9,16 @@
|
|
|
9
9
|
* never corrupts the accumulator.
|
|
10
10
|
*/
|
|
11
11
|
export declare function finiteToken(n: unknown): number;
|
|
12
|
+
/**
|
|
13
|
+
* Locate the FIRST balanced top-level `{...}` in `stdout` that parses to an object
|
|
14
|
+
* with `type === 'result'` — Claude may emit non-JSON warning / MCP lines before
|
|
15
|
+
* the terminal result envelope, so we scan candidate `{` positions rather than
|
|
16
|
+
* parsing the whole stdout blindly. Returns the parsed object, or null if none
|
|
17
|
+
* parses to a `result` envelope. Exported for the orchestration-shell advisory
|
|
18
|
+
* quota classifier ([#637] — the Claude usage-limit rides in this envelope's
|
|
19
|
+
* `result` field); never throws.
|
|
20
|
+
*/
|
|
21
|
+
export declare function firstResultEnvelope(stdout: string): Record<string, unknown> | null;
|
|
12
22
|
/**
|
|
13
23
|
* [P2-6] Unwrap a Claude Code `--output-format json` NON-interactive envelope into
|
|
14
24
|
* `{ text, tokens }`. The ENTIRE body is `try/catch`-guarded — ANY throw (parse
|
|
@@ -90,6 +90,9 @@ export interface ReviewerVerdict {
|
|
|
90
90
|
/** Ordered list of specific changes. **Required** when `verdict === 'REVISE'`;
|
|
91
91
|
* empty for other verdicts (enforced by the output parser). */
|
|
92
92
|
suggested_changes: string[];
|
|
93
|
+
/** Optional non-blocking risks or recommendations. These are displayed in
|
|
94
|
+
* the terminal summary but never affect consensus or trigger revision. */
|
|
95
|
+
residual_observations: string[];
|
|
93
96
|
/** Model identifier used (for cost attribution). */
|
|
94
97
|
model_used: string | null;
|
|
95
98
|
/** Tokens consumed by this reviewer. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/node_modules/@quantiya/codevibe-core/dist/session/__tests__/pending-session-create.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AppSyncClient } from '../appsync/appsync-client';
|
|
2
2
|
import { Logger } from '../logger';
|
|
3
|
+
export declare function isOwnDeviceRegistration(ownDeviceId: string, registeredDeviceId: string): boolean;
|
|
3
4
|
/**
|
|
4
5
|
* Start the device-key registration watcher for the authenticated user.
|
|
5
6
|
*
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { resumeOrCreateSession, prepareSessionEncryption } from './session-resume';
|
|
2
|
-
export type { ResumeOrCreateSessionInput, ResumeOrCreateSessionResult } from './session-resume';
|
|
1
|
+
export { resumeOrCreateSession, prepareSessionEncryption, PlannerProxyServiceKeyMissingError, SessionEncryptionPreparationError, } from './session-resume';
|
|
2
|
+
export type { ResumeOrCreateSessionInput, ResumeOrCreateSessionResult, SessionEncryptionPreparationFailureKind, } from './session-resume';
|
|
3
|
+
export { createSessionWithPendingLedger, replayPendingSessionCreateForIntent, } from './pending-session-create';
|
|
4
|
+
export type { PendingSessionCreateIntent } from './pending-session-create';
|
|
3
5
|
export { rekeySessionForNewDevices } from './session-rekey';
|
|
4
6
|
export { startDeviceKeyWatcher } from './device-key-watcher';
|
|
5
7
|
export { registerDeviceEncryptionKey } from './register-device-key';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type AppSyncClient } from '../appsync';
|
|
2
|
+
import type { Logger } from '../logger';
|
|
3
|
+
import type { CreateSessionInput, Session } from '../types';
|
|
4
|
+
interface PendingSessionCreateRecord {
|
|
5
|
+
schema: 'codevibe.pending_session_create.v2';
|
|
6
|
+
sessionId: string;
|
|
7
|
+
creationRequestId: string;
|
|
8
|
+
intentFingerprint: string;
|
|
9
|
+
input: CreateSessionInput;
|
|
10
|
+
sessionKey: string | null;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
}
|
|
13
|
+
export interface PendingSessionCreateIntent {
|
|
14
|
+
userId: string;
|
|
15
|
+
agentType: NonNullable<CreateSessionInput['agentType']>;
|
|
16
|
+
/** Plain local path. It is persisted only inside the sealed ledger. */
|
|
17
|
+
projectPath: string;
|
|
18
|
+
}
|
|
19
|
+
declare function ledgerPath(sessionId: string): string;
|
|
20
|
+
declare function fingerprintIntent(intent: PendingSessionCreateIntent): string;
|
|
21
|
+
declare function readPending(sessionId: string): Promise<PendingSessionCreateRecord | null>;
|
|
22
|
+
declare function removePending(sessionId: string, record?: PendingSessionCreateRecord): Promise<void>;
|
|
23
|
+
declare function findPendingForIntent(intent: PendingSessionCreateIntent, logger: Logger): Promise<PendingSessionCreateRecord | null>;
|
|
24
|
+
/**
|
|
25
|
+
* Persist one exact create envelope before network I/O and replay it unchanged
|
|
26
|
+
* after an ambiguous transport failure or process restart.
|
|
27
|
+
*/
|
|
28
|
+
export declare function createSessionWithPendingLedger(args: {
|
|
29
|
+
input: CreateSessionInput;
|
|
30
|
+
sessionKey: string | null;
|
|
31
|
+
intent: PendingSessionCreateIntent;
|
|
32
|
+
appSyncClient: Pick<AppSyncClient, 'createSession'>;
|
|
33
|
+
logger: Logger;
|
|
34
|
+
/**
|
|
35
|
+
* Synchronous lifecycle handoff fired immediately after the backend response
|
|
36
|
+
* is proven to match the sealed request, before keychain or ledger cleanup.
|
|
37
|
+
*/
|
|
38
|
+
onAdmitted?: (session: Session) => void;
|
|
39
|
+
}): Promise<{
|
|
40
|
+
session: Session;
|
|
41
|
+
sessionKey: string | null;
|
|
42
|
+
}>;
|
|
43
|
+
/** Replay an interrupted create before minting a new id for the same intent. */
|
|
44
|
+
export declare function replayPendingSessionCreateForIntent(args: {
|
|
45
|
+
intent: PendingSessionCreateIntent;
|
|
46
|
+
appSyncClient: Pick<AppSyncClient, 'createSession'>;
|
|
47
|
+
logger: Logger;
|
|
48
|
+
onAdmitted?: (session: Session) => void;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
session: Session;
|
|
51
|
+
sessionKey: string | null;
|
|
52
|
+
} | null>;
|
|
53
|
+
export declare const pendingSessionCreateTestSeams: {
|
|
54
|
+
ledgerPath: typeof ledgerPath;
|
|
55
|
+
readPending: typeof readPending;
|
|
56
|
+
removePending: typeof removePending;
|
|
57
|
+
findPendingForIntent: typeof findPendingForIntent;
|
|
58
|
+
fingerprintIntent: typeof fingerprintIntent;
|
|
59
|
+
setRemovalFault(fault: "after_tombstone" | null): void;
|
|
60
|
+
};
|
|
61
|
+
export {};
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { AppSyncClient } from '../appsync/appsync-client';
|
|
2
2
|
import { Logger } from '../logger';
|
|
3
|
+
export declare function registrationLeaseIsFresh(lastUsedAt: string | undefined, nowMs?: number): boolean;
|
|
4
|
+
export interface RegisterDeviceEncryptionKeyOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Publish even when the normal registration lease is fresh. Recovery paths
|
|
7
|
+
* use this to emit the mutation that wakes peer device-key subscriptions.
|
|
8
|
+
*/
|
|
9
|
+
force?: boolean;
|
|
10
|
+
/** Structured diagnostic explaining why a forced registration was needed. */
|
|
11
|
+
reason?: string;
|
|
12
|
+
}
|
|
3
13
|
/**
|
|
4
14
|
* Register the current device's ECDH public key with the backend.
|
|
5
15
|
*
|
|
@@ -10,4 +20,4 @@ import { Logger } from '../logger';
|
|
|
10
20
|
* @param appSyncClient Authenticated AppSyncClient.
|
|
11
21
|
* @param logger Plugin-specific logger so log lines are tagged correctly.
|
|
12
22
|
*/
|
|
13
|
-
export declare function registerDeviceEncryptionKey(appSyncClient: AppSyncClient, logger: Logger): Promise<void>;
|
|
23
|
+
export declare function registerDeviceEncryptionKey(appSyncClient: AppSyncClient, logger: Logger, options?: RegisterDeviceEncryptionKeyOptions): Promise<void>;
|
|
@@ -8,8 +8,8 @@ export interface RekeyOptions {
|
|
|
8
8
|
* they already have an entry in `session.encryptedKeys`. Use this
|
|
9
9
|
* when you know a specific device just re-registered — for example,
|
|
10
10
|
* when handling an `onDeviceKeyRegistered` subscription event — so
|
|
11
|
-
* a rotated public key gets a fresh wrapped entry. The
|
|
12
|
-
*
|
|
11
|
+
* a rotated public key gets a fresh wrapped entry. The backend replaces
|
|
12
|
+
* the recipient's prior entry atomically and collapses legacy duplicates.
|
|
13
13
|
*
|
|
14
14
|
* Default: empty. The bulk diff path (catch-up after disconnect,
|
|
15
15
|
* catch-up at session resume) does not pass this and relies on the
|
|
@@ -23,14 +23,14 @@ export interface RekeyOptions {
|
|
|
23
23
|
* key to any device that is missing an entry (or that the caller has
|
|
24
24
|
* explicitly marked as needing a fresh wrap via `forceDeviceIds`).
|
|
25
25
|
*
|
|
26
|
-
* Safe to call repeatedly. No-op when every registered device
|
|
27
|
-
*
|
|
28
|
-
* entries — only appends new ones via the grantSessionKey mutation.
|
|
26
|
+
* Safe to call repeatedly. No-op when every registered device has an envelope
|
|
27
|
+
* bound to its current public key and nothing is forced.
|
|
29
28
|
*
|
|
30
29
|
* @param sessionId The session to re-key.
|
|
31
|
-
* @param sessionKey The plaintext session key (base64).
|
|
32
|
-
*
|
|
33
|
-
*
|
|
30
|
+
* @param sessionKey The caller's current plaintext session key (base64).
|
|
31
|
+
* This is only an admission hint: after fetching the
|
|
32
|
+
* authoritative row, the function re-derives/loads the key
|
|
33
|
+
* for that row's exact generation before wrapping.
|
|
34
34
|
* @param appSyncClient Authenticated AppSyncClient.
|
|
35
35
|
* @param options Optional behavior knobs. See RekeyOptions.
|
|
36
36
|
* @returns The number of new grants that succeeded.
|
|
@@ -19,10 +19,24 @@ export interface ResumeOrCreateSessionInput {
|
|
|
19
19
|
metadata?: Record<string, any>;
|
|
20
20
|
}
|
|
21
21
|
export interface ResumeOrCreateSessionResult {
|
|
22
|
+
/**
|
|
23
|
+
* The authoritative backend row ID. This can differ from the requested ID
|
|
24
|
+
* when a sealed, ambiguous create is replayed for the same launch intent.
|
|
25
|
+
* Callers MUST bind subscriptions, heartbeats, and events to this value.
|
|
26
|
+
*/
|
|
27
|
+
sessionId: string;
|
|
22
28
|
/** Whether an existing session was found and reactivated */
|
|
23
29
|
resumed: boolean;
|
|
24
30
|
/** The E2E session key (for encrypting/decrypting events), or null if no encryption */
|
|
25
31
|
sessionKey: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* The session-key generation of the AUTHORITATIVE row (§4.5 key-gen binding),
|
|
34
|
+
* or null when unencrypted / the backend echoed no generation. Callers stamp
|
|
35
|
+
* this onto `expectedSessionKeyGen` so a key rotation racing an event write is
|
|
36
|
+
* rejected by the backend ConditionCheck rather than committing an
|
|
37
|
+
* undecryptable row (tool-event consolidation #229/#230).
|
|
38
|
+
*/
|
|
39
|
+
sessionKeyGen: string | null;
|
|
26
40
|
}
|
|
27
41
|
/**
|
|
28
42
|
* CP-1.b IMPL r5 H-2 — Typed error thrown by `prepareSessionEncryption()`
|
|
@@ -45,7 +59,13 @@ export interface ResumeOrCreateSessionResult {
|
|
|
45
59
|
* shell-side typed error closes the funnel at session-create time so
|
|
46
60
|
* the user never reaches a session that can't be decrypted.
|
|
47
61
|
*/
|
|
48
|
-
export
|
|
62
|
+
export type SessionEncryptionPreparationFailureKind = 'backend_unavailable' | 'local_key_unavailable';
|
|
63
|
+
export declare class SessionEncryptionPreparationError extends Error {
|
|
64
|
+
readonly kind: SessionEncryptionPreparationFailureKind;
|
|
65
|
+
readonly cause?: unknown;
|
|
66
|
+
constructor(kind: SessionEncryptionPreparationFailureKind, message: string, cause?: unknown);
|
|
67
|
+
}
|
|
68
|
+
export declare class PlannerProxyServiceKeyMissingError extends SessionEncryptionPreparationError {
|
|
49
69
|
constructor(msg: string);
|
|
50
70
|
}
|
|
51
71
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CommandResult, CommandRunner, RunnerProc } from './types';
|
|
2
|
+
import type { WorkspaceRootAuthority } from '../local-executor/workspace-authority';
|
|
2
3
|
/**
|
|
3
4
|
* The production `CommandRunner` — runs `docker` / `sandbox-exec` via
|
|
4
5
|
* `node:child_process`. No shell is used (argv is passed directly to
|
|
@@ -15,5 +16,6 @@ export declare class ChildProcessCommandRunner implements CommandRunner {
|
|
|
15
16
|
signal?: AbortSignal;
|
|
16
17
|
env?: Readonly<Record<string, string>>;
|
|
17
18
|
cwd?: string;
|
|
19
|
+
cwdAuthority?: WorkspaceRootAuthority;
|
|
18
20
|
}): RunnerProc;
|
|
19
21
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ForwarderFactory } from './forwarder';
|
|
2
2
|
import type { CommandRunner, EgressObservationHook, Substrate, SubstrateHandle, SubstrateSpec } from './types';
|
|
3
|
+
import { type WorkspaceRootAuthority, type WorkspaceRootLease } from '../local-executor/workspace-authority';
|
|
3
4
|
/** Where, inside the container, the worktree is mounted (the agent's cwd/home). */
|
|
4
5
|
export declare const CONTAINER_WORKDIR = "/workspace";
|
|
5
6
|
/** Injectable deps — default-wired to the real runtime; stubbed in unit tests. */
|
|
@@ -14,12 +15,13 @@ export interface DockerSubstrateDeps {
|
|
|
14
15
|
image?: string;
|
|
15
16
|
/**
|
|
16
17
|
* Override the host root for the per-session scratch dir (default:
|
|
17
|
-
* os.tmpdir()). The per-session dir holds ONLY the broker socket (in `uds/`)
|
|
18
|
-
* the relay script
|
|
19
|
-
* The
|
|
20
|
-
* teardown/rollback rm removes it.
|
|
18
|
+
* os.tmpdir()). The per-session dir holds ONLY the broker socket (in `uds/`)
|
|
19
|
+
* and the relay script — no secrets or repository metadata.
|
|
20
|
+
* The one teardown/rollback removal retires the complete session authority.
|
|
21
21
|
*/
|
|
22
22
|
sessionRoot?: string;
|
|
23
|
+
/** Original-handle bind source (native Linux by default; injectable for seam tests). */
|
|
24
|
+
acquireWorkdirLease?: (authority: WorkspaceRootAuthority) => Promise<WorkspaceRootLease>;
|
|
23
25
|
}
|
|
24
26
|
/** The deterministic per-session container name. */
|
|
25
27
|
export declare function containerName(id: string): string;
|
|
@@ -44,10 +46,11 @@ export declare function buildContainerEntrypoint(sanitizedEnv: Readonly<Record<s
|
|
|
44
46
|
* surface the conformance test pins:
|
|
45
47
|
* - `--network none` → STRUCTURAL default-deny (only `lo`, no egress).
|
|
46
48
|
* - `-v <workdir>:/workspace` → ONLY the worktree mounted (rw).
|
|
47
|
-
* - `-v <gitProxy>:/workspace/.git:ro` → scrubbed `.git`, read-only (if any).
|
|
48
49
|
* - `-v <relayScript>:/codevibe/relay.js:ro` → the in-container relay (ro).
|
|
49
50
|
* - `-v <udsDir>:/codevibe/broker:rw` → the bind-mounted broker UDS dir (rw,
|
|
50
51
|
* so the container's `connect()` works; the dir holds only the socket).
|
|
52
|
+
* - `-v <bootstrap>:/codevibe/agent:ro` → broker helper + token file (ro).
|
|
53
|
+
* - `-v <agentConfig>:/codevibe/agent-config:rw` → non-secret CLI config/runtime.
|
|
51
54
|
* - env via repeated `-e K=V` built EXACTLY from `spec.sanitizedEnv` (no host
|
|
52
55
|
* env passthrough; `docker run` does NOT inherit the host env). MED fix:
|
|
53
56
|
* the `-e` flags ADD to the image's baked env, so the AUTHORITATIVE wipe is
|
|
@@ -61,7 +64,6 @@ export declare function buildRunArgv(args: {
|
|
|
61
64
|
id: string;
|
|
62
65
|
image: string;
|
|
63
66
|
workdir: string;
|
|
64
|
-
gitProxyPath: string | null;
|
|
65
67
|
relayScriptPath: string;
|
|
66
68
|
udsDir: string;
|
|
67
69
|
sanitizedEnv: Readonly<Record<string, string>>;
|
|
@@ -70,6 +72,11 @@ export declare function buildRunArgv(args: {
|
|
|
70
72
|
hostDir: string;
|
|
71
73
|
sandboxDir: string;
|
|
72
74
|
};
|
|
75
|
+
/** CP-7 PART D — mutable CLI config/runtime mount (`hostDir`→`sandboxDir:rw`). */
|
|
76
|
+
agentConfig?: {
|
|
77
|
+
hostDir: string;
|
|
78
|
+
sandboxDir: string;
|
|
79
|
+
};
|
|
73
80
|
}): string[];
|
|
74
81
|
/**
|
|
75
82
|
* `docker exec [-i] <name> env -i <sanitizedEnv> <argv...>` — run the agent
|
|
@@ -94,40 +101,15 @@ export declare class DockerSubstrate implements Substrate {
|
|
|
94
101
|
private readonly onEgressDenied;
|
|
95
102
|
private readonly image;
|
|
96
103
|
private readonly sessionRoot;
|
|
104
|
+
private readonly acquireWorkdirLease;
|
|
97
105
|
constructor(deps?: DockerSubstrateDeps);
|
|
98
106
|
launch(spec: SubstrateSpec): Promise<SubstrateHandle>;
|
|
99
107
|
private rollback;
|
|
100
|
-
/**
|
|
101
|
-
* r5 HIGH-2 (Codex — NULL-vs-THROW gap). The proxy build produced no usable
|
|
102
|
-
* proxy (it returned `null` OR threw). Decide the safe outcome by whether the
|
|
103
|
-
* workdir actually HAS a `.git`:
|
|
104
|
-
*
|
|
105
|
-
* - NO `<workdir>/.git` → return `null` (a non-git workdir; the
|
|
106
|
-
* `docker run` mounts only the worktree,
|
|
107
|
-
* git reports "not a repository" — no
|
|
108
|
-
* credential surface either way).
|
|
109
|
-
* - `<workdir>/.git` EXISTS → write an EMPTY SCRUBBED `.git` overlay
|
|
110
|
-
* (a dir with ONLY a stripped synthetic
|
|
111
|
-
* `config` — NO remotes/creds/hooks) and
|
|
112
|
-
* return its path, so the `:ro` bind mount
|
|
113
|
-
* SHADOWS the real `.git`. Degraded git
|
|
114
|
-
* reads, but the credential surface is
|
|
115
|
-
* fail-closed.
|
|
116
|
-
* - overlay write ALSO fails → roll back + throw (NEVER mount the
|
|
117
|
-
* worktree with a live `.git`).
|
|
118
|
-
*
|
|
119
|
-
* Used for BOTH the null-return and the throw path so a workdir with a real
|
|
120
|
-
* but unresolvable `.git` can never reach the agent un-shadowed. `fsp.stat`
|
|
121
|
-
* (NOT `lstat`) follows a `.git` that is a symlink/dir/file alike — any of
|
|
122
|
-
* those "exists" cases must be shadowed.
|
|
123
|
-
*/
|
|
124
|
-
private ensureGitOverlayOrFailClosed;
|
|
125
108
|
private assertDockerAvailable;
|
|
126
109
|
}
|
|
127
110
|
export declare const __testing: {
|
|
128
111
|
DEFAULT_IMAGE: string;
|
|
129
112
|
CONTAINER_WORKDIR: string;
|
|
130
|
-
CONTAINER_GIT: string;
|
|
131
113
|
CONTAINER_RELAY_PATH: string;
|
|
132
114
|
CONTAINER_BROKER_DIR: string;
|
|
133
115
|
RELAY_PORT: number;
|
|
@@ -8,5 +8,4 @@ export { SubstrateUnavailableError, SubstrateLaunchError } from "./errors";
|
|
|
8
8
|
export { ChildProcessCommandRunner } from "./command-runner";
|
|
9
9
|
export { HostEgressForwarder, defaultForwarderFactory } from "./forwarder";
|
|
10
10
|
export type { ForwarderSpec, ForwarderFactory } from "./forwarder";
|
|
11
|
-
export { buildScrubbedGitProxy, resolveGitCommonDir } from "./git-proxy";
|
|
12
11
|
export { IN_CONTAINER_RELAY_SOURCE, CONTAINER_RELAY_PATH, CONTAINER_BROKER_DIR, CONTAINER_BROKER_SOCK, BROKER_SOCK_NAME, RELAY_PORT, } from "./relay-script";
|
|
@@ -62,25 +62,12 @@ export interface SandboxExecDeps {
|
|
|
62
62
|
export declare function buildSeatbeltProfile(workdir: string, execPath?: string,
|
|
63
63
|
/**
|
|
64
64
|
* CP-7 PART D — extra READ-ONLY dirs to grant (the apiKeyHelper bootstrap dir
|
|
65
|
-
* holding the helper script + broker-token file
|
|
66
|
-
* the
|
|
65
|
+
* holding the helper script + broker-token file). Read-only: the agent reads
|
|
66
|
+
* the current token; no write grant (the host owns rotation).
|
|
67
67
|
* These are explicit, scoped subpaths — NOT $HOME / /Users (the MED-fix
|
|
68
68
|
* invariant that host secrets stay unreadable still holds).
|
|
69
69
|
*/
|
|
70
70
|
extraReadDirs?: readonly string[],
|
|
71
|
-
/**
|
|
72
|
-
* Stage-2 HIGH (Codex — the `.git` credential leak). The host path of the
|
|
73
|
-
* SCRUBBED `.git` proxy (built by `git-proxy.ts`, same as A1's mount). When
|
|
74
|
-
* provided, the profile (a) GRANTS read on it (read-only — the agent runs
|
|
75
|
-
* `git` against it via `GIT_DIR`) and (b) DENIES read+write of the REAL
|
|
76
|
-
* `<workdir>/.git`, so the agent CANNOT read the host repo's credential
|
|
77
|
-
* helpers / tokenized remotes / hooks / reflogs directly. Without this the A5
|
|
78
|
-
* agent runs on the host fs and the `(allow file-read* (subpath "<wd>"))`
|
|
79
|
-
* grant would expose the real `.git`. Null/absent for a non-git workdir (the
|
|
80
|
-
* `.git` deny is still emitted — denying a non-existent path is harmless and
|
|
81
|
-
* keeps the profile shape uniform).
|
|
82
|
-
*/
|
|
83
|
-
gitProxyDir?: string | null,
|
|
84
71
|
/**
|
|
85
72
|
* r5 HIGH-1 (Codex) — the home dir to anchor the file-keychain (`~/.codevibe`)
|
|
86
73
|
* DENY at. Default `os.homedir()`; injectable for deterministic tests. The
|
|
@@ -102,7 +89,21 @@ homedir?: string,
|
|
|
102
89
|
* Null/absent → no audit deny is emitted (e.g. a unit test without a real audit
|
|
103
90
|
* tree); production always threads the resolved audit dir.
|
|
104
91
|
*/
|
|
105
|
-
auditDir?: string | null
|
|
92
|
+
auditDir?: string | null,
|
|
93
|
+
/**
|
|
94
|
+
* Extra dirs that the agent may read/write. Used only for the mutable CLI
|
|
95
|
+
* config/runtime dir; the broker-token helper stays in `extraReadDirs`.
|
|
96
|
+
*/
|
|
97
|
+
extraWriteDirs?: readonly string[],
|
|
98
|
+
/**
|
|
99
|
+
* A1d (design §8.1 — the resolver sandbox lattice). Network posture:
|
|
100
|
+
* `'loopback'` (default — the CP-7 broker tier, byte-identical profile) or
|
|
101
|
+
* `'open'` (the resolver-confinement row for a broker-less reduced-trust
|
|
102
|
+
* agent: inbound stays denied, ALL outbound is allowed so the agent's own
|
|
103
|
+
* file-authed model call reaches its vendor directly). See
|
|
104
|
+
* {@link SubstrateSpec.networkPosture}.
|
|
105
|
+
*/
|
|
106
|
+
networkPosture?: 'loopback' | 'open'): string;
|
|
106
107
|
/**
|
|
107
108
|
* A5 macOS `sandbox-exec` substrate (`egressFidelity: 'coarse'`). See file
|
|
108
109
|
* header. NOT the default — the LE selects it as the macOS Docker-fallback.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Readable, Writable } from "node:stream";
|
|
2
|
+
import type { WorkspaceRootAuthority } from "../local-executor/workspace-authority";
|
|
2
3
|
/**
|
|
3
4
|
* Isolation backend for a substrate. `firecracker` is [DEF →
|
|
4
5
|
* A3-after-C2] — declared so the union admits the hosted runner without
|
|
@@ -24,10 +25,12 @@ export type EgressFidelity = "strict" | "coarse";
|
|
|
24
25
|
export interface SubstrateSpec {
|
|
25
26
|
isolationTech: IsolationTech;
|
|
26
27
|
/**
|
|
27
|
-
* Canonical host path of the session
|
|
28
|
-
* mounted
|
|
28
|
+
* Canonical host path of the session workspace — the only mutable filesystem
|
|
29
|
+
* mounted; repository metadata is hidden by the substrate.
|
|
29
30
|
*/
|
|
30
31
|
workdir: string;
|
|
32
|
+
/** Exact host workdir incarnation for task-scoped mutable launches. */
|
|
33
|
+
workdirAuthority?: WorkspaceRootAuthority;
|
|
31
34
|
/**
|
|
32
35
|
* Where the broker actually listens on the HOST (e.g.
|
|
33
36
|
* `127.0.0.1:<ephemeral>`).
|
|
@@ -59,8 +62,7 @@ export interface SubstrateSpec {
|
|
|
59
62
|
/**
|
|
60
63
|
* CP-7 PART D (§3.3 agy-R3 bootstrap) — OPTIONAL, additive. The host
|
|
61
64
|
* directory holding the agent's `apiKeyHelper` script + the broker-token
|
|
62
|
-
* file
|
|
63
|
-
* bind-mounted READ-ONLY into the sandbox at `sandboxDir` so the wiped,
|
|
65
|
+
* file, bind-mounted READ-ONLY into the sandbox at `sandboxDir` so the wiped,
|
|
64
66
|
* `--network none` agent can read the CURRENT broker token from a file
|
|
65
67
|
* WITHOUT a network/IPC fetch. The host LE REFRESHES the token file
|
|
66
68
|
* out-of-band on rotation; the read-only mount lets the host rewrite the
|
|
@@ -71,11 +73,25 @@ export interface SubstrateSpec {
|
|
|
71
73
|
* wire; every existing `SubstrateSpec` construction still compiles.
|
|
72
74
|
*/
|
|
73
75
|
agentBootstrap?: {
|
|
74
|
-
/** Host dir holding the helper script + token file
|
|
76
|
+
/** Host dir holding the helper script + token file (0700). */
|
|
75
77
|
hostDir: string;
|
|
76
78
|
/** Read-only mount point inside the sandbox (NOT under the workdir). */
|
|
77
79
|
sandboxDir: string;
|
|
78
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* CP-7 PART D follow-up — mutable CLI config/runtime dir. Real agent CLIs
|
|
83
|
+
* create small startup/cache files beside their config (`CODEX_HOME`,
|
|
84
|
+
* `CLAUDE_CONFIG_DIR`). The broker-token helper stays in
|
|
85
|
+
* {@link agentBootstrap} and remains read-only; this separate dir is writable
|
|
86
|
+
* and contains only non-secret config/runtime state. It also lives outside the
|
|
87
|
+
* workdir so it never appears in diffs. LOCAL-ONLY; never on any wire.
|
|
88
|
+
*/
|
|
89
|
+
agentConfig?: {
|
|
90
|
+
/** Host dir holding settings/config/runtime files (0700). */
|
|
91
|
+
hostDir: string;
|
|
92
|
+
/** Writable mount/grant point inside the sandbox. */
|
|
93
|
+
sandboxDir: string;
|
|
94
|
+
};
|
|
79
95
|
/**
|
|
80
96
|
* CP-7 W3 — Stage-2 r1 HIGH (A5 audit-readability). OPTIONAL, additive. The
|
|
81
97
|
* RESOLVED per-task audit DIR (the sibling `.codevibe/audit/<group>/<track>/`
|
|
@@ -88,6 +104,22 @@ export interface SubstrateSpec {
|
|
|
88
104
|
* construction still compiles (absent → no audit deny is emitted).
|
|
89
105
|
*/
|
|
90
106
|
auditDir?: string;
|
|
107
|
+
/**
|
|
108
|
+
* A1d (design §8.1 — the write-capable resolver sandbox lattice). OPTIONAL,
|
|
109
|
+
* additive; A5-only (A1 ignores it — the docker row is never launched with an
|
|
110
|
+
* open posture). Network posture the Seatbelt profile emits:
|
|
111
|
+
* - `'loopback'` (default, absent) — deny all network, re-allow loopback
|
|
112
|
+
* only: the CP-7 broker tier (the agent's ONLY model path is the broker).
|
|
113
|
+
* - `'open'` — deny inbound, allow ALL outbound: the RESOLVER-CONFINEMENT
|
|
114
|
+
* row for a broker-less reduced-trust agent (agy/gemini) whose model call
|
|
115
|
+
* dials its vendor DIRECTLY with its own file-based auth. The confinement
|
|
116
|
+
* objective on that row is FS-WRITE confinement (writes stay strictly
|
|
117
|
+
* inside the disposable merge workspace), not egress pinning — the engage
|
|
118
|
+
* result carries a reduced-trust badge for the open egress.
|
|
119
|
+
* A LOCAL-ONLY field — never on any wire; every existing `SubstrateSpec`
|
|
120
|
+
* construction still compiles (absent → loopback, byte-identical profile).
|
|
121
|
+
*/
|
|
122
|
+
networkPosture?: "loopback" | "open";
|
|
91
123
|
}
|
|
92
124
|
/**
|
|
93
125
|
* A structural `ChildProcess` subset. The LE widens its internal child
|
|
@@ -214,5 +246,7 @@ export interface CommandRunner {
|
|
|
214
246
|
env?: Readonly<Record<string, string>>;
|
|
215
247
|
/** Child working directory. Absent → inherit the parent's cwd. */
|
|
216
248
|
cwd?: string;
|
|
249
|
+
/** Exact cwd incarnation held through native process creation. */
|
|
250
|
+
cwdAuthority?: WorkspaceRootAuthority;
|
|
217
251
|
}): RunnerProc;
|
|
218
252
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,6 +7,8 @@ export declare const CLAUDE_SETTINGS_NAME = "settings.json";
|
|
|
7
7
|
export declare const CODEX_CONFIG_NAME = "config.toml";
|
|
8
8
|
/** Where, inside the sandbox, the bootstrap dir is mounted (NOT the workdir). */
|
|
9
9
|
export declare const SANDBOX_BOOTSTRAP_DIR = "/codevibe/agent";
|
|
10
|
+
/** Where, inside the sandbox, the mutable CLI config dir is mounted. */
|
|
11
|
+
export declare const SANDBOX_AGENT_CONFIG_DIR = "/codevibe/agent-config";
|
|
10
12
|
/** The Codex model-provider id the broker config registers. */
|
|
11
13
|
export declare const CODEX_PROVIDER_ID = "codevibe_broker";
|
|
12
14
|
/** Inputs for materializing the bootstrap. */
|
|
@@ -27,12 +29,24 @@ export interface ApiKeyBootstrapInput {
|
|
|
27
29
|
* Used to bake ABSOLUTE in-sandbox paths into the helper/config.
|
|
28
30
|
*/
|
|
29
31
|
sandboxDir?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The mount point of the mutable CLI config dir INSIDE the sandbox. It holds
|
|
34
|
+
* settings/config/runtime files, not the broker token. For A1 this is a rw
|
|
35
|
+
* mount (e.g. {@link SANDBOX_AGENT_CONFIG_DIR}); for A5 use
|
|
36
|
+
* `{ configDirEqualsHostDir: true }`.
|
|
37
|
+
*/
|
|
38
|
+
sandboxConfigDir?: string;
|
|
30
39
|
/**
|
|
31
40
|
* A5 mode — the bootstrap is NOT mounted; the sandbox reads it directly from
|
|
32
41
|
* the host fs, so the in-sandbox path == the created host dir. When true,
|
|
33
42
|
* `sandboxDir` is ignored and the baked paths use the host dir.
|
|
34
43
|
*/
|
|
35
44
|
sandboxDirEqualsHostDir?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* A5 mode for the mutable config dir — sandbox path == host path. Defaults to
|
|
47
|
+
* `sandboxDirEqualsHostDir` when unset.
|
|
48
|
+
*/
|
|
49
|
+
configDirEqualsHostDir?: boolean;
|
|
36
50
|
/** Override the host root for the bootstrap dir (default os.tmpdir()). */
|
|
37
51
|
hostRoot?: string;
|
|
38
52
|
/**
|
|
@@ -54,10 +68,14 @@ export interface ApiKeyBootstrapInput {
|
|
|
54
68
|
* import('../substrate/types').SubstrateSpec.agentBootstrap} wants.
|
|
55
69
|
*/
|
|
56
70
|
export declare class ApiKeyBootstrap {
|
|
57
|
-
/** Host dir holding the helper + token file
|
|
71
|
+
/** Host dir holding the helper + token file (0700). */
|
|
58
72
|
readonly hostDir: string;
|
|
59
73
|
/** In-sandbox mount point of {@link hostDir}. */
|
|
60
74
|
readonly sandboxDir: string;
|
|
75
|
+
/** Host dir holding mutable CLI config/runtime files (0700). */
|
|
76
|
+
readonly configHostDir: string;
|
|
77
|
+
/** In-sandbox path of {@link configHostDir}. */
|
|
78
|
+
readonly configSandboxDir: string;
|
|
61
79
|
/** Host path of the token file (the LE rewrites this on rotation). */
|
|
62
80
|
private readonly tokenFileHostPath;
|
|
63
81
|
private constructor();
|
|
@@ -72,6 +90,11 @@ export declare class ApiKeyBootstrap {
|
|
|
72
90
|
hostDir: string;
|
|
73
91
|
sandboxDir: string;
|
|
74
92
|
};
|
|
93
|
+
/** The writable CLI config/runtime dir mount/grant. */
|
|
94
|
+
get configSpec(): {
|
|
95
|
+
hostDir: string;
|
|
96
|
+
sandboxDir: string;
|
|
97
|
+
};
|
|
75
98
|
/**
|
|
76
99
|
* REFRESH the broker token (rotation / on a broker 401). Atomically rewrites
|
|
77
100
|
* the token file (write a temp + rename) so the agent never reads a partial
|
|
@@ -2,6 +2,7 @@ import { type RotationHandle } from "../credential-broker";
|
|
|
2
2
|
import type { BrokerDeps } from "../credential-broker/broker";
|
|
3
3
|
import type { ModelGatewayBroker, UpstreamClient, VendorProvider } from "../credential-broker/types";
|
|
4
4
|
import type { ProcessRole } from "../local-executor/types";
|
|
5
|
+
import type { WorkspaceRootAuthority } from "../local-executor/workspace-authority";
|
|
5
6
|
import type { SubstrateHandle } from "../substrate/types";
|
|
6
7
|
import { type FallbackLadderDeps } from "./fallback-ladder";
|
|
7
8
|
/** Map the implementor agent to the broker provider (Claude+Codex only, §6 Q4). */
|
|
@@ -21,8 +22,25 @@ export interface EngageSubstrateInput {
|
|
|
21
22
|
agentKind: "CLAUDE" | "GEMINI" | "CODEX" | "ANTIGRAVITY";
|
|
22
23
|
/** Canonical host path of the session worktree (the only fs mounted). */
|
|
23
24
|
workdir: string;
|
|
25
|
+
/** Exact workdir incarnation for task-scoped mutable dispatch. */
|
|
26
|
+
workdirAuthority?: WorkspaceRootAuthority;
|
|
24
27
|
/** The implementor role marker value (always 'implementor' here). */
|
|
25
28
|
role: ProcessRole;
|
|
29
|
+
/**
|
|
30
|
+
* A1d (design §8.1 — the write-capable resolver sandbox lattice). Set by the
|
|
31
|
+
* LE when the SPAWN demands hard confinement (`SpawnArgs.requireConfined` —
|
|
32
|
+
* today only the CP-14 WB2 agentic class-2 resolver dispatch). For a
|
|
33
|
+
* BROKER-LESS reduced-trust agent (GEMINI/ANTIGRAVITY, `providerForAgent` →
|
|
34
|
+
* null) this flips the null-provider branch from an immediate
|
|
35
|
+
* `reduced_trust` return to the RESOLVER-CONFINEMENT row: an FS-write-scoped
|
|
36
|
+
* A5 sandbox (writes confined strictly to `workdir` — the disposable merge
|
|
37
|
+
* workspace) with OPEN egress + the agent's own file-based auth, no broker.
|
|
38
|
+
* When the row cannot be established (no A5 tier), `reduced_trust` is
|
|
39
|
+
* returned and the LE's `requireConfined` guard fail-closes the spawn — the
|
|
40
|
+
* design's mandatory fallback-to-human-gate. Absent/false → byte-identical
|
|
41
|
+
* legacy behavior for every existing caller.
|
|
42
|
+
*/
|
|
43
|
+
requireConfined?: boolean;
|
|
26
44
|
/** Ladder deps (injectable for tests). */
|
|
27
45
|
ladderDeps?: FallbackLadderDeps;
|
|
28
46
|
/** Broker upstream client override (tests inject a stub; default real fetch). */
|
|
@@ -74,6 +92,8 @@ export interface SubstrateEngaged {
|
|
|
74
92
|
reducedTrust: boolean;
|
|
75
93
|
reducedTrustReason?: string;
|
|
76
94
|
substrateHandle: SubstrateHandle;
|
|
95
|
+
/** In-sandbox writable CLI config dir (settings.json/config.toml). */
|
|
96
|
+
agentConfigDir: string;
|
|
77
97
|
/** The complete env the agent runs under (markers folded) — for assertions. */
|
|
78
98
|
finalEnv: Readonly<Record<string, string>>;
|
|
79
99
|
/** Rotate the broker token in the bootstrap token file (on a broker 401). */
|
|
@@ -6,6 +6,8 @@ export { buildSanitizedBaseEnv, assertNoAmbientCreds, SAFE_ENV_ALLOWLIST, SANDBO
|
|
|
6
6
|
export type { SanitizedEnvInput } from "./sanitized-env";
|
|
7
7
|
export { ApiKeyBootstrap, SANDBOX_BOOTSTRAP_DIR, HELPER_SCRIPT_NAME, TOKEN_FILE_NAME, CODEX_PROVIDER_ID, } from "./apikey-bootstrap";
|
|
8
8
|
export type { ApiKeyBootstrapInput } from "./apikey-bootstrap";
|
|
9
|
+
export { assertReviewerVendorCredential, reviewerProviderFor, withReviewerCredentialPreflight, ReviewerCredentialMissingError, REVIEWER_CREDENTIAL_MISSING, } from "./reviewer-credential-preflight";
|
|
10
|
+
export type { ReviewerCredentialStore } from "./reviewer-credential-preflight";
|
|
9
11
|
export { scrubLeEnvOrReexec, buildScrubbedLeEnv, findCredShapedKeys, isCredShapedEnvKey, LE_ENV_SCRUBBED_MARKER, } from "./le-env-scrub";
|
|
10
12
|
export type { LeEnvScrubDeps } from "./le-env-scrub";
|
|
11
13
|
export { Cp7AuditWriter, CP7_CANONICAL_FORM_VERSION, GENESIS_PREV_HASH, canonicalJson, canonicalEntryBytes, computeEntryHash, verifyChain, } from "../local-executor/cp7-audit-writer";
|