@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
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { AppSyncClient } from '../appsync/appsync-client.js';
|
|
2
|
-
import { WizardSeatPick, WizardStepFailureReason } from './setup-types.js';
|
|
3
|
-
export type SaveResult = {
|
|
4
|
-
ok: true;
|
|
5
|
-
} | {
|
|
6
|
-
ok: false;
|
|
7
|
-
reason: WizardStepFailureReason;
|
|
8
|
-
/**
|
|
9
|
-
* Whether `[r] retry` makes sense for this failure. Network /
|
|
10
|
-
* 5xx / throttle are retryable (transient). auth_token_expired
|
|
11
|
-
* is NOT retryable in-process — the user must re-run `codevibe
|
|
12
|
-
* login` and start a new wizard run.
|
|
13
|
-
*/
|
|
14
|
-
recoverable: boolean;
|
|
15
|
-
};
|
|
16
|
-
export interface SaveDeps {
|
|
17
|
-
wizardRunId: string;
|
|
18
|
-
client: AppSyncClient;
|
|
19
|
-
seats: WizardSeatPick[];
|
|
20
|
-
/**
|
|
21
|
-
* Whether the user reached this step via "save anyway" after a
|
|
22
|
-
* Test My Agents warning. Drives the wizard_completed.outcome
|
|
23
|
-
* value at the wizard's terminal exit (`'ok' | 'saved_after_test_warning'`).
|
|
24
|
-
* Not used here — Step 3 just persists; the top-level wizard
|
|
25
|
-
* threads the outcome value into the final `wizard_completed` event.
|
|
26
|
-
*/
|
|
27
|
-
savedAfterTestWarning: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Run Step 3. Emits `wizard_step_started{step:'save'}` on entry,
|
|
31
|
-
* `wizard_step_completed` on success, or `wizard_step_failed` with
|
|
32
|
-
* the classified reason. Returns a SaveResult the wizard's recourse
|
|
33
|
-
* loop consumes.
|
|
34
|
-
*/
|
|
35
|
-
export declare function runSave(deps: SaveDeps): Promise<SaveResult>;
|
|
36
|
-
/**
|
|
37
|
-
* Classify a thrown error from `updateReviewerPolicy` into one of the
|
|
38
|
-
* §7 save-step reason codes. Best-effort matching against the AppSync
|
|
39
|
-
* client's error message conventions:
|
|
40
|
-
* - 401 / "Unauthorized" / "Token expired" → auth_token_expired
|
|
41
|
-
* - 429 / "Throttling" / "Rate exceeded" → update_policy_throttle
|
|
42
|
-
* - 5xx / "Internal" / "InternalServerError" → update_policy_5xx
|
|
43
|
-
* - everything else (fetch threw, ECONNRESET, DNS) → update_policy_network
|
|
44
|
-
*
|
|
45
|
-
* Exposed for tests to assert classification mapping.
|
|
46
|
-
*/
|
|
47
|
-
export declare function classifySaveError(err: unknown): WizardStepFailureReason;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import * as readline from 'readline';
|
|
2
|
-
import { WizardSeatPick, WizardRole } from './setup-types.js';
|
|
3
|
-
import type { AgentKind } from '../reviewer/types.js';
|
|
4
|
-
/**
|
|
5
|
-
* One entry in the optional `savedSeats` array — the user's previously
|
|
6
|
-
* persisted reviewer policy, threaded in by the wizard on a re-run so
|
|
7
|
-
* the picker pre-fills per-seat agent + role defaults. Stage 2 round-1
|
|
8
|
-
* Codex M2.
|
|
9
|
-
*
|
|
10
|
-
* Stale entries (agent no longer installed, role not in
|
|
11
|
-
* `WIZARD_ROLES`, role already taken by a previous seat) are silently
|
|
12
|
-
* ignored — the picker falls back to the canonical priority defaults
|
|
13
|
-
* for that seat.
|
|
14
|
-
*/
|
|
15
|
-
export interface SavedSeatHint {
|
|
16
|
-
seatId: number;
|
|
17
|
-
agent: AgentKind;
|
|
18
|
-
role: WizardRole;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Reader/writer abstraction so tests can drive the picker with
|
|
22
|
-
* scripted answers instead of an interactive readline. Production
|
|
23
|
-
* passes a Node readline.Interface; tests pass a fake.
|
|
24
|
-
*/
|
|
25
|
-
export interface PickerIO {
|
|
26
|
-
/** Render a line to the user. No newline appended; pass '\n' if needed. */
|
|
27
|
-
write: (line: string) => void;
|
|
28
|
-
/** Prompt the user and return the trimmed answer (without trailing newline). */
|
|
29
|
-
ask: (prompt: string) => Promise<string>;
|
|
30
|
-
}
|
|
31
|
-
export interface SeatPickerDeps {
|
|
32
|
-
wizardRunId: string;
|
|
33
|
-
installedAgents: AgentKind[];
|
|
34
|
-
seatBudget: number;
|
|
35
|
-
io: PickerIO;
|
|
36
|
-
/**
|
|
37
|
-
* Optional per-seat hints from the user's saved reviewer policy
|
|
38
|
-
* (Stage 2 round-1 Codex M2). When present and valid (agent
|
|
39
|
-
* installed; role still available for that seat), the picker uses
|
|
40
|
-
* the hint as the default instead of the canonical
|
|
41
|
-
* AGENT_PRIORITY / DEFAULT_ROLE_BY_SEAT priority.
|
|
42
|
-
*
|
|
43
|
-
* Indexed by `seatId` (NOT array position) — the implementation
|
|
44
|
-
* looks up `savedSeats.find(s => s.seatId === seatId)` so absent /
|
|
45
|
-
* out-of-order entries are fine.
|
|
46
|
-
*/
|
|
47
|
-
savedSeats?: ReadonlyArray<SavedSeatHint>;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Run Step 1. Returns the user's per-seat picks. Caller is
|
|
51
|
-
* responsible for closing the readline interface.
|
|
52
|
-
*/
|
|
53
|
-
export declare function runSeatPicker(deps: SeatPickerDeps): Promise<WizardSeatPick[]>;
|
|
54
|
-
/**
|
|
55
|
-
* Default-role-fallback rule (PHASE-3-A-DESIGN.md §1). Seat 0 wants
|
|
56
|
-
* `architecture`, Seat 1 wants `correctness`, Seat 2 wants `security`.
|
|
57
|
-
* If the canonical pick is gone (taken by a previous seat), fall
|
|
58
|
-
* back to the first remaining role in canonical order.
|
|
59
|
-
*
|
|
60
|
-
* Stage 2 round-1 Codex M2: when `savedRole` is provided AND that
|
|
61
|
-
* role is in `WIZARD_ROLES` AND it's still in `availableRoles` (not
|
|
62
|
-
* taken by a previous seat), use it as the default instead of the
|
|
63
|
-
* canonical-default-by-seat priority. Stale saved values (role
|
|
64
|
-
* already taken, or a non-3-role value from a 2.0.x custom-roles
|
|
65
|
-
* future expansion) are silently ignored.
|
|
66
|
-
*/
|
|
67
|
-
export declare function pickDefaultRole(seatId: number, availableRoles: ReadonlyArray<WizardRole>, savedRole?: WizardRole): WizardRole;
|
|
68
|
-
/**
|
|
69
|
-
* Build a `PickerIO` from a Node readline interface. Production
|
|
70
|
-
* callers use this; tests construct their own `PickerIO` directly.
|
|
71
|
-
*/
|
|
72
|
-
export declare function readlinePickerIO(rl: readline.Interface): PickerIO;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { WizardStep, WizardStepFailureReason, WizardAbortReason, WizardEntry, WizardTier, CountBucket, LatencyBucket } from './setup-types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Generate a fresh `wizard_run_id` for one wizard invocation. Returned
|
|
4
|
-
* by `runSetupWizard()` entry and threaded into every emit call.
|
|
5
|
-
*
|
|
6
|
-
* v4 UUID — uses Node's crypto.randomUUID when available (Node 14.17+);
|
|
7
|
-
* otherwise falls back to a manual v4 derivation. Either path produces
|
|
8
|
-
* a 36-char hex-with-dashes string suitable for the GA4 custom-dimension
|
|
9
|
-
* `wizard_run_id` registered in `register-custom-dimensions.py`.
|
|
10
|
-
*/
|
|
11
|
-
export declare function newWizardRunId(): string;
|
|
12
|
-
export declare function emitWizardStarted(args: {
|
|
13
|
-
wizardRunId: string;
|
|
14
|
-
tier: WizardTier;
|
|
15
|
-
entry: WizardEntry;
|
|
16
|
-
installedAgentsBucket: CountBucket;
|
|
17
|
-
}): Promise<void>;
|
|
18
|
-
export declare function emitWizardStepStarted(args: {
|
|
19
|
-
wizardRunId: string;
|
|
20
|
-
step: WizardStep;
|
|
21
|
-
}): Promise<void>;
|
|
22
|
-
export declare function emitWizardStepCompleted(args: {
|
|
23
|
-
wizardRunId: string;
|
|
24
|
-
step: WizardStep;
|
|
25
|
-
latencyBucket: LatencyBucket;
|
|
26
|
-
}): Promise<void>;
|
|
27
|
-
export declare function emitWizardStepFailed(args: {
|
|
28
|
-
wizardRunId: string;
|
|
29
|
-
step: WizardStep;
|
|
30
|
-
reason: WizardStepFailureReason;
|
|
31
|
-
latencyBucket: LatencyBucket;
|
|
32
|
-
}): Promise<void>;
|
|
33
|
-
export declare function emitWizardCompleted(args: {
|
|
34
|
-
wizardRunId: string;
|
|
35
|
-
outcome: 'ok' | 'saved_after_test_warning';
|
|
36
|
-
tier: WizardTier;
|
|
37
|
-
seatsBucket: CountBucket;
|
|
38
|
-
agentsDistinctBucket: CountBucket;
|
|
39
|
-
rolesDistinctBucket: CountBucket;
|
|
40
|
-
totalLatencyBucket: LatencyBucket;
|
|
41
|
-
}): Promise<void>;
|
|
42
|
-
export declare function emitWizardAborted(args: {
|
|
43
|
-
wizardRunId: string;
|
|
44
|
-
reason: WizardAbortReason;
|
|
45
|
-
lastStep: WizardStep;
|
|
46
|
-
}): Promise<void>;
|
|
47
|
-
type BeaconRecord = {
|
|
48
|
-
name: string;
|
|
49
|
-
params: Record<string, string | number>;
|
|
50
|
-
};
|
|
51
|
-
type BeaconSink = (record: BeaconRecord) => void;
|
|
52
|
-
export declare function __setBeaconSink(sink: BeaconSink): void;
|
|
53
|
-
export declare function __resetBeaconSink(): void;
|
|
54
|
-
export {};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { WizardSeatPick, WizardStepFailureReason } from './setup-types.js';
|
|
2
|
-
import type { ReviewerSpec, ReviewerVerdict } from '../reviewer/index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Canned proposal — byte-identical across all installations. Locked
|
|
5
|
-
* 2026-05-03 per PHASE-3-A-DESIGN.md §3. Do NOT edit without going
|
|
6
|
-
* through a re-review of the entire Test My Agents protocol; the
|
|
7
|
-
* prose is part of the wizard's contract test surface (the new-contract
|
|
8
|
-
* row at PHASE-3-A-DESIGN.md:495 asserts byte-identicality).
|
|
9
|
-
*
|
|
10
|
-
* The proposal is intentionally trivial + read-only. The wizard does
|
|
11
|
-
* NOT actually create /tmp/quorum_test_hello.py — APPROVE is the
|
|
12
|
-
* expected outcome from a working reviewer.
|
|
13
|
-
*/
|
|
14
|
-
export declare const CANNED_PROPOSAL = "## Problem\nAdd a one-line Python \"Hello, World\" script to a new file.\n\n## Proposal\nCreate a single Python file at /tmp/quorum_test_hello.py containing the\nsingle line: print(\"hello world\")\n\n## Implementation Plan\n1. Create the file at /tmp/quorum_test_hello.py\n2. Write print(\"hello world\") on line 1 followed by a trailing newline\n3. Make no other changes\n\n## Expected Outputs\n- /tmp/quorum_test_hello.py \u2014 exists, contains the single-line script\n";
|
|
15
|
-
/**
|
|
16
|
-
* Per-seat timeout. PHASE-3-A-DESIGN.md §6 "Timeout (60s/seat)".
|
|
17
|
-
* Conservative — gives a slow CLI room to start + respond on a
|
|
18
|
-
* cold-spawned reviewer process. Shorter would pollute the failure
|
|
19
|
-
* recourse menu with false positives on first-run latency.
|
|
20
|
-
*/
|
|
21
|
-
export declare const PER_SEAT_TIMEOUT_MS = 60000;
|
|
22
|
-
/**
|
|
23
|
-
* Per-seat outcome rendered by the wizard. Returned by
|
|
24
|
-
* `runTestMyAgents` in the `seatOutcomes` array so the recourse menu
|
|
25
|
-
* can display each seat's status individually (per §3 "per-seat
|
|
26
|
-
* outputs ... are tagged with the seat ID and rendered together").
|
|
27
|
-
*/
|
|
28
|
-
export interface SeatOutcome {
|
|
29
|
-
seatId: number;
|
|
30
|
-
agent: WizardSeatPick['agent'];
|
|
31
|
-
role: WizardSeatPick['role'];
|
|
32
|
-
/** Wall-clock seconds elapsed for this seat's evaluate() call. */
|
|
33
|
-
elapsedSeconds: number;
|
|
34
|
-
/** Discriminated outcome — APPROVE plus the 6 failure shapes. */
|
|
35
|
-
result: {
|
|
36
|
-
kind: 'approve';
|
|
37
|
-
} | {
|
|
38
|
-
kind: 'revise';
|
|
39
|
-
} | {
|
|
40
|
-
kind: 'reject';
|
|
41
|
-
} | {
|
|
42
|
-
kind: 'escalate';
|
|
43
|
-
} | {
|
|
44
|
-
kind: 'parse_failure';
|
|
45
|
-
} | {
|
|
46
|
-
kind: 'spawn_failure';
|
|
47
|
-
reason: string;
|
|
48
|
-
} | {
|
|
49
|
-
kind: 'timeout';
|
|
50
|
-
elapsedMs: number;
|
|
51
|
-
} | {
|
|
52
|
-
kind: 'unknown_error';
|
|
53
|
-
message: string;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export type TestMyAgentsResult = {
|
|
57
|
-
ok: true;
|
|
58
|
-
seatOutcomes: SeatOutcome[];
|
|
59
|
-
} | {
|
|
60
|
-
ok: false;
|
|
61
|
-
reason: WizardStepFailureReason;
|
|
62
|
-
canSaveAnyway: boolean;
|
|
63
|
-
seatOutcomes: SeatOutcome[];
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Inputs for `runTestMyAgents`. The registry factory is injected so
|
|
67
|
-
* tests can swap in a mock; production passes
|
|
68
|
-
* `createSubprocessReviewerRegistry`.
|
|
69
|
-
*/
|
|
70
|
-
export interface TestMyAgentsDeps {
|
|
71
|
-
wizardRunId: string;
|
|
72
|
-
seats: WizardSeatPick[];
|
|
73
|
-
registryFactory?: () => {
|
|
74
|
-
evaluate: (spec: ReviewerSpec, gateId: string) => Promise<ReviewerVerdict>;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Status renderer. Tests pass a buffer; production passes a function
|
|
78
|
-
* that writes to process.stdout. Each call gets one line (no
|
|
79
|
-
* trailing newline added — caller controls).
|
|
80
|
-
*/
|
|
81
|
-
write?: (line: string) => void;
|
|
82
|
-
/**
|
|
83
|
-
* Test seam: a synthetic gateId. Phase 3.a's wizard is wholly
|
|
84
|
-
* client-side (PHASE-3-A-DESIGN.md §5 "Wizard never spawns through
|
|
85
|
-
* OrchestrationClient.connect()"), so the gateId is a local
|
|
86
|
-
* synthetic UUID — providers echo it back on the verdict but the
|
|
87
|
-
* wizard does not persist it. Tests can pin a known value.
|
|
88
|
-
*/
|
|
89
|
-
gateId?: string;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Run Step 2. Emits `wizard_step_started`, dispatches all seats in
|
|
93
|
-
* parallel via Promise.allSettled, classifies each outcome, emits
|
|
94
|
-
* `wizard_step_completed` (all APPROVE) or `wizard_step_failed` with
|
|
95
|
-
* the worst-blocker reason. Returns per-seat outcomes for the
|
|
96
|
-
* wizard's recourse renderer.
|
|
97
|
-
*/
|
|
98
|
-
export declare function runTestMyAgents(deps: TestMyAgentsDeps): Promise<TestMyAgentsResult>;
|
|
99
|
-
/**
|
|
100
|
-
* Render a per-failure-kind explanatory sentence per the §6 outcome
|
|
101
|
-
* table + §1 line 140 "Display the structured error describing what
|
|
102
|
-
* failed" requirement. The wizard prints this before the recourse
|
|
103
|
-
* menu so users see WHY each non-APPROVE seat failed, not just a
|
|
104
|
-
* status line.
|
|
105
|
-
*
|
|
106
|
-
* R1 round-1 M3 (resolved 2026-05-08).
|
|
107
|
-
*/
|
|
108
|
-
export declare function humanizeStep2Failures(outcomes: SeatOutcome[]): string[];
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import type { ReviewerRole as PolicyReviewerRole } from '../reviewer/types.js';
|
|
2
|
-
import type { AgentKind } from '../reviewer/types.js';
|
|
3
|
-
import { ReviewerRole as SchemaReviewerRole } from '../types/reviewer.js';
|
|
4
|
-
/**
|
|
5
|
-
* Tier returned by `getSubscriptionStatus`. Drives seat budget +
|
|
6
|
-
* tier-gate at bootstrap.
|
|
7
|
-
*
|
|
8
|
-
* UPPERCASE wire format matches `codevibe-backend/graphql/schema.graphql:209`
|
|
9
|
-
* (`enum SubscriptionTier { FREE PRO MAX }`).
|
|
10
|
-
*/
|
|
11
|
-
export type WizardTier = 'FREE' | 'PRO' | 'MAX';
|
|
12
|
-
/**
|
|
13
|
-
* Tier-aware seat budget. Mirrors
|
|
14
|
-
* `codevibe-backend/lambda/user-management/index.ts:184-188`'s
|
|
15
|
-
* `REVIEWER_SEAT_COUNT` map. Free has no seats — orchestration is not
|
|
16
|
-
* permitted at that tier; the wizard short-circuits at bootstrap with
|
|
17
|
-
* the §6 upgrade interstitial.
|
|
18
|
-
*/
|
|
19
|
-
export declare const SEAT_BUDGET: Record<WizardTier, number | null>;
|
|
20
|
-
/**
|
|
21
|
-
* The 3-role lock from PHASE-3-A-DESIGN.md: the wizard offers ONLY
|
|
22
|
-
* `architecture` / `correctness` / `security`. The schema's
|
|
23
|
-
* `ReviewerRole` enum at `codevibe-backend/graphql/schema.graphql:167-177`
|
|
24
|
-
* still has 9 variants for backward compat / 2.0.x custom-roles
|
|
25
|
-
* (#80) — but the wizard NEVER sends a non-3-role seat to
|
|
26
|
-
* `updateReviewerPolicy`.
|
|
27
|
-
*
|
|
28
|
-
* snake_case matches `codevibe-core/src/reviewer/types.ts:52-61` (the
|
|
29
|
-
* reviewer-module wire). The wizard converts to AppSync UPPERCASE at
|
|
30
|
-
* the save boundary via `roleToAppSync()`.
|
|
31
|
-
*/
|
|
32
|
-
export declare const WIZARD_ROLES: readonly ["architecture", "correctness", "security"];
|
|
33
|
-
export type WizardRole = (typeof WIZARD_ROLES)[number];
|
|
34
|
-
/**
|
|
35
|
-
* Tier-aware default role for each seat (§1 "Default-role fallback").
|
|
36
|
-
* Seat 0 = architecture, Seat 1 = correctness, Seat 2 = security.
|
|
37
|
-
* When the canonical default is already taken by a previous seat, the
|
|
38
|
-
* wizard falls back to the first remaining role in canonical order.
|
|
39
|
-
*/
|
|
40
|
-
export declare const DEFAULT_ROLE_BY_SEAT: WizardRole[];
|
|
41
|
-
/**
|
|
42
|
-
* Canonical agent ordering used for wizard defaults. The first
|
|
43
|
-
* installed agent in this order is the default for each seat unless
|
|
44
|
-
* the user picks otherwise. AGY-2.0: antigravity ranks LAST (weakest —
|
|
45
|
-
* defaulted only on an agy-only host), mirroring TIER2_REVIEWER_RANK.
|
|
46
|
-
*/
|
|
47
|
-
export declare const AGENT_PRIORITY: AgentKind[];
|
|
48
|
-
/**
|
|
49
|
-
* The wizard's terminal outcomes. Drives `wizard_completed` /
|
|
50
|
-
* `wizard_aborted` GA4 events and the exit code.
|
|
51
|
-
*/
|
|
52
|
-
export type WizardOutcome = {
|
|
53
|
-
kind: 'ok';
|
|
54
|
-
saved: true;
|
|
55
|
-
seats: ReadonlyArray<WizardSeatPick>;
|
|
56
|
-
} | {
|
|
57
|
-
kind: 'saved_after_test_warning';
|
|
58
|
-
saved: true;
|
|
59
|
-
seats: ReadonlyArray<WizardSeatPick>;
|
|
60
|
-
} | {
|
|
61
|
-
kind: 'aborted';
|
|
62
|
-
reason: WizardAbortReason;
|
|
63
|
-
lastStep: WizardStep;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Reasons the wizard exited without saving. Mirror the
|
|
67
|
-
* `wizard_aborted.reason` taxonomy in PHASE-3-A-DESIGN.md §7.
|
|
68
|
-
*/
|
|
69
|
-
export type WizardAbortReason = 'ctrl_c' | 'tier_gate_free' | 'no_clis' | 'step_user_exit' | 'step_save_failed_exit' | 'auth_expired' | 'bootstrap_failure';
|
|
70
|
-
/**
|
|
71
|
-
* Wizard step taxonomy — used for `wizard_step_started`/`completed`/
|
|
72
|
-
* `failed` and `wizard_aborted.last_step`.
|
|
73
|
-
*/
|
|
74
|
-
export type WizardStep = 'bootstrap' | 'seat_assignment' | 'test_my_agents' | 'save';
|
|
75
|
-
/**
|
|
76
|
-
* Per-step `wizard_step_failed.reason` codes. Mirror the table in
|
|
77
|
-
* PHASE-3-A-DESIGN.md §7. Each step has its own bounded reason set;
|
|
78
|
-
* `seat_assignment` has no failure modes (the picker filters out
|
|
79
|
-
* invalid choices UI-side).
|
|
80
|
-
*/
|
|
81
|
-
export type WizardStepFailureReason = 'tier_gate_free' | 'not_signed_in' | 'subscription_status_network' | 'no_clis_installed' | 'test_revise' | 'test_reject' | 'test_escalate' | 'test_parse_failure' | 'test_spawn_failure' | 'test_timeout' | 'update_policy_network' | 'update_policy_5xx' | 'update_policy_throttle' | 'auth_token_expired';
|
|
82
|
-
/**
|
|
83
|
-
* One seat the user picked in Step 1. The wizard converts these to
|
|
84
|
-
* `ReviewerAgentSpecInput[]` at save time by uppercase-mapping role +
|
|
85
|
-
* agent (the schema's wire form).
|
|
86
|
-
*/
|
|
87
|
-
export interface WizardSeatPick {
|
|
88
|
-
seatId: number;
|
|
89
|
-
agent: AgentKind;
|
|
90
|
-
role: WizardRole;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Latency bucket for GA4 `latency_bucket_s` / `total_latency_bucket_s`
|
|
94
|
-
* dimensions. Bounded set — keeps GA4 cardinality tractable per R2
|
|
95
|
-
* round-1 MEDIUM (PHASE-3-A-DESIGN.md §7).
|
|
96
|
-
*/
|
|
97
|
-
export type LatencyBucket = '<2' | '2-5' | '5-10' | '10-30' | '30+';
|
|
98
|
-
/**
|
|
99
|
-
* Categorical bucket for "how many agents are installed" /
|
|
100
|
-
* "how many seats". Locked at "1" / "2" / "3" — there is no "4+"
|
|
101
|
-
* because Max is the ceiling.
|
|
102
|
-
*/
|
|
103
|
-
export type CountBucket = '1' | '2' | '3';
|
|
104
|
-
/**
|
|
105
|
-
* Entry point identifier — distinguishes meta CLI invocation from
|
|
106
|
-
* each plugin's alias (`codevibe-{claude,gemini,codex} orchestration setup`).
|
|
107
|
-
*/
|
|
108
|
-
export type WizardEntry = 'meta_cli' | 'claude_alias' | 'gemini_alias' | 'codex_alias';
|
|
109
|
-
/**
|
|
110
|
-
* Bucket a wall-clock duration into one of the 5 latency-bucket values.
|
|
111
|
-
* Used by telemetry for per-step + total-wizard timing dimensions.
|
|
112
|
-
*/
|
|
113
|
-
export declare function bucketLatencySeconds(seconds: number): LatencyBucket;
|
|
114
|
-
/**
|
|
115
|
-
* Bucket an integer count into "1" / "2" / "3", clamping anything
|
|
116
|
-
* higher to "3". Used for `seats_bucket`, `agents_distinct_bucket`,
|
|
117
|
-
* `roles_distinct_bucket`, `installed_agents_bucket`.
|
|
118
|
-
*/
|
|
119
|
-
export declare function bucketCount(n: number): CountBucket;
|
|
120
|
-
/**
|
|
121
|
-
* Map a wizard role (snake_case) to the reviewer-module's snake_case
|
|
122
|
-
* `ReviewerRole` literal type — used when building a `ReviewerSpec`
|
|
123
|
-
* for `createSubprocessReviewerRegistry().evaluate()`. Pass-through
|
|
124
|
-
* because `WizardRole` is a strict subset of `PolicyReviewerRole`.
|
|
125
|
-
*/
|
|
126
|
-
export declare function roleToReviewerSpec(role: WizardRole): PolicyReviewerRole;
|
|
127
|
-
/**
|
|
128
|
-
* Map a wizard role (snake_case) to the AppSync schema's UPPERCASE
|
|
129
|
-
* `ReviewerRole` enum — used when building a `ReviewerAgentSpecInput`
|
|
130
|
-
* for the `updateReviewerPolicy` mutation. The wizard locks to 3
|
|
131
|
-
* roles, so this mapping is exhaustive over `WizardRole` and never
|
|
132
|
-
* produces one of the 6 non-3-role variants.
|
|
133
|
-
*/
|
|
134
|
-
export declare function roleToAppSync(role: WizardRole): SchemaReviewerRole;
|
|
135
|
-
/**
|
|
136
|
-
* Map AgentKind (lowercase reviewer-module wire) to the UPPERCASE AppSync
|
|
137
|
-
* reviewer-agent enum. Used at save time when building the
|
|
138
|
-
* `ReviewerAgentSpecInput[]` for `updateReviewerPolicy`.
|
|
139
|
-
*
|
|
140
|
-
* The codomain is the REVIEWER-agent union
|
|
141
|
-
* (`CLAUDE | GEMINI | CODEX | ANTIGRAVITY`, per `ReviewerAgentSpecInput.agent`),
|
|
142
|
-
* NOT the session `AgentType` enum — a reviewer seat can be ANTIGRAVITY
|
|
143
|
-
* (never in `AgentType`) and can never be the CODEVIBE orchestrator, so the
|
|
144
|
-
* two enums are deliberately distinct.
|
|
145
|
-
*/
|
|
146
|
-
export declare function agentToAppSync(agent: AgentKind): 'CLAUDE' | 'GEMINI' | 'CODEX' | 'ANTIGRAVITY';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { DetectableAgent } from './detect-agents.js';
|
|
2
|
-
import { WizardEntry } from './setup-types.js';
|
|
3
|
-
import { PickerIO } from './setup-seat-picker.js';
|
|
4
|
-
import { AppSyncClient } from '../appsync/appsync-client.js';
|
|
5
|
-
import type { ReviewerSpec, ReviewerVerdict } from '../reviewer/index.js';
|
|
6
|
-
/**
|
|
7
|
-
* Parse `--entry=<value>` from argv. Defaults to `meta_cli` if absent
|
|
8
|
-
* or invalid. Plugin wrappers pass `--entry=claude_alias` /
|
|
9
|
-
* `gemini_alias` / `codex_alias` per the §4 alias contract.
|
|
10
|
-
*/
|
|
11
|
-
export declare function parseEntry(argv: string[]): WizardEntry;
|
|
12
|
-
/**
|
|
13
|
-
* Injectable dependencies for `runSetupWizardWithDeps`. Factored out
|
|
14
|
-
* so unit tests can drive the whole state machine deterministically
|
|
15
|
-
* (no real readline, no real subprocess spawn, no real network).
|
|
16
|
-
*
|
|
17
|
-
* Production callers use `runSetupWizard`, which wires the production
|
|
18
|
-
* deps + calls `process.exit(result.exitCode)`.
|
|
19
|
-
*/
|
|
20
|
-
export interface SetupWizardDeps {
|
|
21
|
-
/** Builds an authenticated AppSyncClient or returns null if unauthenticated. */
|
|
22
|
-
clientFactory: () => Promise<AppSyncClient | null>;
|
|
23
|
-
/** Returns the subset of agents present on PATH. */
|
|
24
|
-
agentDetector: () => DetectableAgent[];
|
|
25
|
-
/** Optional reviewer registry (Step 2). Default: real subprocess registry. */
|
|
26
|
-
registryFactory?: () => {
|
|
27
|
-
evaluate: (spec: ReviewerSpec, gateId: string) => Promise<ReviewerVerdict>;
|
|
28
|
-
};
|
|
29
|
-
/** Output writer — writes the line as-is (caller controls newlines). */
|
|
30
|
-
write: (line: string) => void;
|
|
31
|
-
/** Build a fresh PickerIO + close handle for the next interactive prompt. */
|
|
32
|
-
createPickerIO: () => {
|
|
33
|
-
io: PickerIO;
|
|
34
|
-
close: () => void;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Result of the wizard's state machine. The public `runSetupWizard`
|
|
39
|
-
* wrapper translates this to a `process.exit(exitCode)`.
|
|
40
|
-
*/
|
|
41
|
-
export interface SetupWizardResult {
|
|
42
|
-
exitCode: number;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Production entry point. Called from `runOrchestrationCli` when
|
|
46
|
-
* `argv[3] === 'setup'`. Builds production deps + calls process.exit
|
|
47
|
-
* with the wizard's exit code. Drives the full state machine via
|
|
48
|
-
* `runSetupWizardWithDeps`.
|
|
49
|
-
*/
|
|
50
|
-
export declare function runSetupWizard(argv: string[]): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Testable wizard core. Exits with code 0 on success or any user-
|
|
53
|
-
* initiated abort; exit 1 on a failure the user couldn't recover
|
|
54
|
-
* from in the recourse loop. SIGINT is registered + cleaned up
|
|
55
|
-
* around the call (no-op for tests when SIGINT is never fired).
|
|
56
|
-
*/
|
|
57
|
-
export declare function runSetupWizardWithDeps(argv: string[], deps: SetupWizardDeps): Promise<SetupWizardResult>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Filesystem location of the cohort-flag file (`~/.codevibe/cohort-flags.json`).
|
|
3
|
-
* Exposed as a function so test code can monkey-patch via env override.
|
|
4
|
-
*/
|
|
5
|
-
export declare function cohortFlagFilePath(): string;
|
|
6
|
-
/**
|
|
7
|
-
* Reads the named cohort flag for the given session/user. Returns
|
|
8
|
-
* `false` on every failure mode (file missing, malformed JSON, flag
|
|
9
|
-
* unset, non-boolean value). This is fail-closed by design — per §3
|
|
10
|
-
* H6 mitigation, the cohort gate MUST default off until Phase 4 flips
|
|
11
|
-
* the flag.
|
|
12
|
-
*
|
|
13
|
-
* `sessionId` is accepted in the signature for future per-session
|
|
14
|
-
* cohort overrides; CP-1.a ignores it.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getCohortFlag(name: string, _sessionId: string): Promise<boolean>;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { type ReviewerEvaluateOptions, type ReviewerProvider, type ReviewerSpec } from '../provider.js';
|
|
2
|
-
import { type SubprocessOutcome } from '../subprocess.js';
|
|
3
|
-
import type { ReviewerVerdict } from '../types.js';
|
|
4
|
-
import { type VerdictClassifier } from '../verdict-classifier.js';
|
|
5
|
-
import type { BuiltCommand } from './claude.js';
|
|
6
|
-
/** Construction options. */
|
|
7
|
-
export interface GeminiReviewerProviderOptions {
|
|
8
|
-
/** Override the `gemini` executable path. Production callers pass nothing
|
|
9
|
-
* (PATH lookup); integration tests can stub Gemini with a shell-script
|
|
10
|
-
* fixture. */
|
|
11
|
-
executable?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* JSON envelope shape emitted by `gemini --output-format json`. We only care
|
|
15
|
-
* about `response`; the other fields (`session_id`, `stats`) are consumed by
|
|
16
|
-
* the JSON deserializer but not surfaced on `ReviewerVerdict` directly.
|
|
17
|
-
*
|
|
18
|
-
* Tolerates missing or extra top-level keys for cross-version compatibility.
|
|
19
|
-
*/
|
|
20
|
-
export interface GeminiEnvelope {
|
|
21
|
-
response: string;
|
|
22
|
-
/** Gemini 0.38.2 emits this; older versions may not. */
|
|
23
|
-
session_id?: string;
|
|
24
|
-
stats?: GeminiStats;
|
|
25
|
-
}
|
|
26
|
-
export interface GeminiStats {
|
|
27
|
-
/** Map of model name → per-model stats. Token usage MUST be summed across
|
|
28
|
-
* every entry (R2 "telemetry timebomb" lesson — picking an arbitrary one
|
|
29
|
-
* via `Object.values()[0]` would under-report when Gemini reports
|
|
30
|
-
* auxiliary models). */
|
|
31
|
-
models?: Record<string, GeminiModelStats>;
|
|
32
|
-
}
|
|
33
|
-
export interface GeminiModelStats {
|
|
34
|
-
tokens?: {
|
|
35
|
-
/** Prompt + response tokens combined. Populated by Gemini's
|
|
36
|
-
* `stats.models.<name>.tokens.total`; used for cost telemetry. */
|
|
37
|
-
total?: number;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Real Gemini CLI reviewer provider. Wraps the `gemini` binary.
|
|
42
|
-
*/
|
|
43
|
-
export declare class GeminiReviewerProvider implements ReviewerProvider {
|
|
44
|
-
private readonly executable;
|
|
45
|
-
constructor(opts?: GeminiReviewerProviderOptions);
|
|
46
|
-
evaluate(spec: ReviewerSpec, gateId: string, opts?: ReviewerEvaluateOptions): Promise<ReviewerVerdict>;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Construct the Gemini CLI invocation. Split out from `evaluate` so unit
|
|
50
|
-
* tests can assert on the built arg list + env without actually spawning a
|
|
51
|
-
* process.
|
|
52
|
-
*
|
|
53
|
-
* Locked flag set:
|
|
54
|
-
* - `-p ''` — non-interactive mode, empty inline prompt so the full prompt
|
|
55
|
-
* is read from stdin (consistent with Claude path).
|
|
56
|
-
* - `--approval-mode plan` — read-only sandbox.
|
|
57
|
-
* - `--output-format json` — structured reply envelope that survives
|
|
58
|
-
* user-hook stdout pollution.
|
|
59
|
-
* - `--model <hint>` — optional; omitted when `spec.model_hint` is `null`.
|
|
60
|
-
*
|
|
61
|
-
* `spec.tool_allowlist` is **intentionally unused** for Gemini. Plan mode
|
|
62
|
-
* is the design-locked sandbox; mapping the Claude-style allowlist to
|
|
63
|
-
* Gemini's (deprecated) `--allowed-tools` flag would hit the known
|
|
64
|
-
* non-interactive bugs flagged in the module docs.
|
|
65
|
-
*
|
|
66
|
-
* # QUORUM_REVIEWER_SUBPROCESS env var
|
|
67
|
-
*
|
|
68
|
-
* Set unconditionally to `'1'` in the child's environment. The user's
|
|
69
|
-
* Gemini plugin checks this at the top of `hooks/common.sh` and
|
|
70
|
-
* short-circuits every hook — without this gate, reviewer spawns would
|
|
71
|
-
* each create a new backend session and mark the user's primary Gemini
|
|
72
|
-
* session INACTIVE (empirically observed 2026-04-21 during Phase 2c.2
|
|
73
|
-
* local testing).
|
|
74
|
-
*/
|
|
75
|
-
export declare function buildCommand(executable: string, spec: ReviewerSpec, sandboxed?: boolean): BuiltCommand;
|
|
76
|
-
/**
|
|
77
|
-
* Map the raw subprocess outcome into a `ReviewerVerdict` or throw a
|
|
78
|
-
* structured `ReviewerErrorClass`. See `claude.ts::buildVerdict` for the
|
|
79
|
-
* shared safety rule (non-zero exit overrides any parseable stdout).
|
|
80
|
-
*/
|
|
81
|
-
export declare function buildVerdict(spec: ReviewerSpec, gateId: string, outcome: SubprocessOutcome, classifyVerdict?: VerdictClassifier): Promise<ReviewerVerdict>;
|
|
82
|
-
/**
|
|
83
|
-
* Parse the FIRST complete JSON object in `stdout`, discarding any trailing
|
|
84
|
-
* bytes. User-level hooks (e.g., CodeVibe's own Gemini plugin hooks
|
|
85
|
-
* installed in `~/.gemini/settings.json`) append log lines to stdout AFTER
|
|
86
|
-
* the model's reply envelope. This walks the text byte-by-byte tracking
|
|
87
|
-
* brace depth + string escapes to find where the first JSON object ends,
|
|
88
|
-
* then `JSON.parse` that slice — the equivalent of Rust's
|
|
89
|
-
* `serde_json::Deserializer::into_iter().next()` for our purposes.
|
|
90
|
-
*
|
|
91
|
-
* Returns `null` if stdout contains no valid JSON value at all, the
|
|
92
|
-
* extracted slice fails strict JSON parsing, OR the parsed value isn't a
|
|
93
|
-
* shape-conformant `GeminiEnvelope` (i.e. missing or non-string
|
|
94
|
-
* `response`). The caller routes any of these to ParseFailure with raw
|
|
95
|
-
* stdout — matching Rust's serde-deserialization-failure path.
|
|
96
|
-
*
|
|
97
|
-
* # Why runtime shape validation
|
|
98
|
-
*
|
|
99
|
-
* Rust's `serde_json::Deserializer` rejects `{}` or `{"response":123}`
|
|
100
|
-
* during deserialization because `GeminiEnvelope { response: String, ... }`
|
|
101
|
-
* makes the field required at the type-system layer. TypeScript's
|
|
102
|
-
* `JSON.parse(slice) as GeminiEnvelope` is a compile-time-only assertion
|
|
103
|
-
* with no runtime check, so we reproduce serde's behavior with an
|
|
104
|
-
* explicit `validateGeminiEnvelope` step. Without this, a syntactically-
|
|
105
|
-
* valid-but-shape-bad envelope would land an `undefined.replace()`
|
|
106
|
-
* TypeError up the call stack instead of a structured ParseFailure
|
|
107
|
-
* (R1 finding on Phase 2f.1.b round 1).
|
|
108
|
-
*/
|
|
109
|
-
export declare function parseFirstJsonEnvelope(stdout: string): GeminiEnvelope | null;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A minimal synthetic `config` written into the proxy. Repository-format
|
|
3
|
-
* version + bare=false ONLY — explicitly NO `[remote ...]`, NO `[credential]`,
|
|
4
|
-
* NO `core.hooksPath`, NO `[user]` (which could carry a signing key path). This
|
|
5
|
-
* is the credential-scrub: the real repo's config never enters the sandbox.
|
|
6
|
-
*/
|
|
7
|
-
export declare const SCRUBBED_CONFIG: string;
|
|
8
|
-
/**
|
|
9
|
-
* Resolve the real parent `.git` directory for a worktree. In a worktree the
|
|
10
|
-
* `<workdir>/.git` is a FILE: `gitdir: /abs/path/to/parent/.git/worktrees/<n>`.
|
|
11
|
-
* The commit objects live in the parent repo's top-level `.git` (i.e. two
|
|
12
|
-
* levels up from `worktrees/<n>`). For a NON-worktree checkout `<workdir>/.git`
|
|
13
|
-
* is already the real dir. Returns the directory that holds `objects/` +
|
|
14
|
-
* `refs/`.
|
|
15
|
-
*
|
|
16
|
-
* @returns the resolved real git-common-dir, or `null` if `<workdir>/.git` is
|
|
17
|
-
* absent/unreadable (the caller skips proxying — a non-git workdir is fine).
|
|
18
|
-
*/
|
|
19
|
-
export declare function resolveGitCommonDir(workdir: string): Promise<string | null>;
|
|
20
|
-
/**
|
|
21
|
-
* Build a read-only, credential-scrubbed `.git` proxy at `destDir` from the
|
|
22
|
-
* resolved git-common-dir. **[W2-min]** — copies only {@link COPIED_GIT_ENTRIES}
|
|
23
|
-
* + a synthetic stripped {@link SCRUBBED_CONFIG}; NO remotes/creds/hooks/reflog.
|
|
24
|
-
*
|
|
25
|
-
* The substrate bind-mounts `destDir` READ-ONLY into the sandbox at
|
|
26
|
-
* `<workdir>/.git`. Returns the proxy path on success, or `null` if `workdir`
|
|
27
|
-
* is not a resolvable git checkout (the substrate then mounts only the worktree
|
|
28
|
-
* with no `.git`, and git read commands simply report "not a repository" — no
|
|
29
|
-
* ambient exposure either way).
|
|
30
|
-
*/
|
|
31
|
-
export declare function buildScrubbedGitProxy(workdir: string, destDir: string): Promise<string | null>;
|
|
32
|
-
export declare const __testing: {
|
|
33
|
-
COPIED_GIT_ENTRIES: readonly ["HEAD", "refs", "packed-refs", "objects"];
|
|
34
|
-
SCRUBBED_CONFIG: string;
|
|
35
|
-
};
|