@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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { VendorProvider } from "../credential-broker";
|
|
2
|
+
/**
|
|
3
|
+
* Typed marker for the missing-credential failure so the loop can surface the
|
|
4
|
+
* remediation on the user-facing NOTIFICATION channel (Stage-2 r2 Codex MED-1)
|
|
5
|
+
* without string-matching. Identified by `name` (survives bundling) — callers
|
|
6
|
+
* check `err.name === REVIEWER_CREDENTIAL_MISSING` rather than instanceof.
|
|
7
|
+
*/
|
|
8
|
+
export declare const REVIEWER_CREDENTIAL_MISSING = "ReviewerCredentialMissingError";
|
|
9
|
+
export declare class ReviewerCredentialMissingError extends Error {
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The minimal store surface the preflight needs (structurally satisfied by
|
|
14
|
+
* `KeychainVendorKeyStore`); narrow so tests can stub it without keychain IO.
|
|
15
|
+
*/
|
|
16
|
+
export interface ReviewerCredentialStore {
|
|
17
|
+
getVendorKey(provider: VendorProvider): Promise<string | null>;
|
|
18
|
+
getVendorOAuthBundle(provider: VendorProvider): Promise<unknown | null>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Map a reviewer agent kind (lowercase, as the loop's engager input carries it)
|
|
22
|
+
* to its broker vendor provider. Non-Trusted agents (gemini/antigravity) have
|
|
23
|
+
* no broker provider — they never sandbox, so the preflight is a no-op for
|
|
24
|
+
* them (the loop pre-routes them to legacy+badge before engaging anyway).
|
|
25
|
+
*/
|
|
26
|
+
export declare function reviewerProviderFor(agent: string): VendorProvider | null;
|
|
27
|
+
/**
|
|
28
|
+
* Throw (fail-closed) when a Trusted reviewer is about to substrate-engage but
|
|
29
|
+
* no vendor credential exists for its provider. The message is the user-facing
|
|
30
|
+
* remediation — it propagates verbatim through the loop's engage-failure
|
|
31
|
+
* ESCALATE (`spawnOneSeat`) and the Wave-B fall-through WARN.
|
|
32
|
+
*/
|
|
33
|
+
export declare function assertReviewerVendorCredential(agent: string, store: ReviewerCredentialStore): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Wrap a reviewer substrate engager with the credential preflight, ordered
|
|
36
|
+
* AFTER tier selection (Stage-2 r2 Codex MED-2): the underlying engage runs
|
|
37
|
+
* first, and the credential check applies ONLY when the ladder actually chose
|
|
38
|
+
* the `substrate` (broker) mode — a `reduced_trust` selection never consults
|
|
39
|
+
* credentials, preserving the pre-flip legacy-plus-badge fallback on hosts
|
|
40
|
+
* with no establishable sandbox tier. On substrate + missing credential the
|
|
41
|
+
* engaged substrate is torn down and the actionable
|
|
42
|
+
* `ReviewerCredentialMissingError` propagates (fail-closed, no ambient
|
|
43
|
+
* fallback).
|
|
44
|
+
*/
|
|
45
|
+
export declare function withReviewerCredentialPreflight<I extends {
|
|
46
|
+
agent: string;
|
|
47
|
+
}, R extends {
|
|
48
|
+
mode: string;
|
|
49
|
+
teardown: () => Promise<void>;
|
|
50
|
+
}>(engage: (input: I) => Promise<R>, store: ReviewerCredentialStore): (input: I) => Promise<R>;
|
|
@@ -29,12 +29,12 @@ export interface SanitizedEnvInput {
|
|
|
29
29
|
*/
|
|
30
30
|
sandboxHome: string;
|
|
31
31
|
/**
|
|
32
|
-
* The IN-SANDBOX path of the
|
|
32
|
+
* The IN-SANDBOX path of the mutable agent config dir (PART D). The agent
|
|
33
33
|
* config (`settings.json` for Claude / `config.toml` for Codex) lives HERE,
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* discovery env, or the agent never reads the helper and the
|
|
37
|
-
* loop is fake (Stage-2 M-1):
|
|
34
|
+
* while the broker-token helper it references lives in the separate read-only
|
|
35
|
+
* bootstrap dir. We MUST point the agent at this dir via the CLI's native
|
|
36
|
+
* config-discovery env, or the agent never reads the helper and the
|
|
37
|
+
* "creditless" loop is fake (Stage-2 M-1):
|
|
38
38
|
* - Claude → `CLAUDE_CONFIG_DIR` (SPIKE-FINDINGS §1 method: isolated
|
|
39
39
|
* `HOME` + `CLAUDE_CONFIG_DIR` is the discovery path the spike used).
|
|
40
40
|
* - Codex → `CODEX_HOME` (SPIKE-FINDINGS §2 empirical: clean `HOME` +
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/consolidator.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/replay-cursor.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/node_modules/@quantiya/codevibe-core/dist/tool-activity/__tests__/session-map.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
/** Marker infix used by every temp file so restart sweeps can find them. */
|
|
3
|
+
export declare const TEMP_INFIX = ".tmp.";
|
|
4
|
+
/**
|
|
5
|
+
* fsync a directory so a preceding `rename` into it is durable across a crash.
|
|
6
|
+
* Best-effort (skipped on Windows / filesystems that reject a dir fsync).
|
|
7
|
+
*/
|
|
8
|
+
export declare function fsyncDir(dir: string): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Crash-atomic write of one file: temp(`O_EXCL`) → write → fsync → chmod 0600 →
|
|
11
|
+
* atomic `rename` → dir-fsync (§4.5 — Stage-2 Codex H2). `rename` provides
|
|
12
|
+
* atomicity; it needs no no-replace semantics (a verbatim re-write of the same
|
|
13
|
+
* content is a harmless self-replace). The temp lives in the SAME directory so
|
|
14
|
+
* the rename is intra-filesystem, and carries the `.tmp.` infix + pid + random
|
|
15
|
+
* suffix so a restart sweep recognizes an interrupted write.
|
|
16
|
+
*/
|
|
17
|
+
export declare function atomicWriteFileSync(finalPath: string, bytes: string): Promise<void>;
|
|
18
|
+
/** Crash-atomic write of a JSON value (schema-validated before writing). */
|
|
19
|
+
export declare function atomicWriteJson<T>(finalPath: string, schema: z.ZodType<T>, value: T): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Read + schema-validate a crash-atomic JSON state file. Returns `null` when the
|
|
22
|
+
* file is ABSENT, unreadable, non-JSON, or fails the schema — the caller then
|
|
23
|
+
* reconstructs from the transcript (the file is a rebuildable cache, never a
|
|
24
|
+
* uniqueness authority; §4.5). `onInvalid` fires (for a CRITICAL log) only when a
|
|
25
|
+
* PRESENT file failed to parse/validate, distinguishing corruption from absence.
|
|
26
|
+
*/
|
|
27
|
+
export declare function readValidatedJson<T>(filePath: string, schema: z.ZodType<T>, onInvalid?: (reason: string) => void): Promise<T | null>;
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import type { Logger } from '../logger';
|
|
2
|
+
import type { ToolActivityOutbox } from './outbox';
|
|
3
|
+
import type { ToolActivityLedger } from './ledger';
|
|
4
|
+
import type { ToolActivityOutboxEnvelope } from './types';
|
|
5
|
+
/** An observed tool occurrence handed to {@link ToolActivityConsolidator.observe}. */
|
|
6
|
+
/**
|
|
7
|
+
* The ATOMIC (under-lock) outcome of {@link ToolActivityConsolidator.observe}, so the
|
|
8
|
+
* transcript backstop's cursor-hold decision uses the SAME dedup evaluation that
|
|
9
|
+
* decided the no-op (closing the check-then-observe TOCTOU, Stage-2 Codex):
|
|
10
|
+
* - `observed` — appended to the open window (fresh occurrence).
|
|
11
|
+
* - `known-durable` — a sealed/acked/legacy-owned id (permanent no-op → advance).
|
|
12
|
+
* - `deferred-in-flight` — a TRANSIENT legacy in-flight id (no-op → the cursor HOLDS).
|
|
13
|
+
* - `live-open-dup` — already in the current open window (no-op → advance).
|
|
14
|
+
* - `sealed-terminal` — a post-shutdown late occurrence DURABLY captured to the outbox
|
|
15
|
+
* by {@link ToolActivityConsolidator.captureTerminal} (no-op for
|
|
16
|
+
* the cursor → advance; the caller SUPPRESSES the legacy row).
|
|
17
|
+
* - `closed` — the consolidator has shut down AND terminal capture was not
|
|
18
|
+
* done / failed (no-op; the caller may best-effort legacy-emit).
|
|
19
|
+
* Only `deferred-in-flight` holds the cursor; everything else advances.
|
|
20
|
+
*/
|
|
21
|
+
export type ObserveDisposition = 'observed' | 'known-durable' | 'deferred-in-flight' | 'live-open-dup' | 'sealed-terminal' | 'closed';
|
|
22
|
+
export interface ObservedOccurrence {
|
|
23
|
+
/** Native reproducible id (claude `toolu_…`, codex `call_id`) — the dedup key. */
|
|
24
|
+
id: string;
|
|
25
|
+
tool: string;
|
|
26
|
+
/** Optional grouping key within the window (e.g. a normalized file path). */
|
|
27
|
+
normalizedTarget?: string;
|
|
28
|
+
/** Best-available occurrence time (display fidelity; ISO-8601). */
|
|
29
|
+
ts: string;
|
|
30
|
+
/** Source transcript position (finding G) — stored in the ledger for a rewind. */
|
|
31
|
+
byteOffset: number;
|
|
32
|
+
/** `digestOf(toolInput)` (§0) — becomes the group's `detail[].digest`. Omit if no input. */
|
|
33
|
+
digest?: string;
|
|
34
|
+
}
|
|
35
|
+
/** Encrypt-at-send transport — throws on a retryable failure; returns on ack. */
|
|
36
|
+
export interface ToolActivityTransport {
|
|
37
|
+
send(sessionId: string, envelope: ToolActivityOutboxEnvelope): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* True when a failed TOOL_ACTIVITY `createEvent` is the backend's TYPED
|
|
41
|
+
* `SessionKeyStale` rejection (§4.5 step 4 — the session's `sessionKeyGen`
|
|
42
|
+
* ConditionCheck failed because the session was RECREATED under a new generation,
|
|
43
|
+
* so the manifest was encrypted + stamped with a now-stale key/generation).
|
|
44
|
+
* Surfaces as `AppSyncGraphQLError.errorType === 'SessionKeyStale'`; the message
|
|
45
|
+
* fallback (`SESSION_KEY_STALE`) covers any transport that drops `errorType`. The
|
|
46
|
+
* plugin transport catches this to REFRESH the session key + generation,
|
|
47
|
+
* RE-ENCRYPT under the fresh key, and retry — instead of re-sending the same
|
|
48
|
+
* undecryptable generation forever (a liveness/G2 failure on key rotation).
|
|
49
|
+
*/
|
|
50
|
+
export declare function isSessionKeyStaleError(err: unknown): boolean;
|
|
51
|
+
export interface ToolActivityConsolidatorOptions {
|
|
52
|
+
agent: string;
|
|
53
|
+
/** The backend session id bound into each window's envelope (X2a routing). */
|
|
54
|
+
sessionId: string;
|
|
55
|
+
logger: Logger;
|
|
56
|
+
outbox: ToolActivityOutbox;
|
|
57
|
+
ledger: ToolActivityLedger;
|
|
58
|
+
transport: ToolActivityTransport;
|
|
59
|
+
/** Seal the open window after this much wall-clock (default 3000ms). */
|
|
60
|
+
windowMs?: number;
|
|
61
|
+
/** Seal (with `continues`) once the open window reaches this many occurrences (default 50). */
|
|
62
|
+
maxOccurrences?: number;
|
|
63
|
+
/** Max windows in flight to the transport at once — back-pressure (default 4). */
|
|
64
|
+
maxInFlight?: number;
|
|
65
|
+
/** Retry backoff ceiling for a failed send (default 30000ms). */
|
|
66
|
+
maxBackoffMs?: number;
|
|
67
|
+
/** Injectable clock (default Date.now). */
|
|
68
|
+
now?: () => number;
|
|
69
|
+
/** Injectable timer (default setTimeout) — tests pass a controllable fake. */
|
|
70
|
+
scheduleTimer?: (fn: () => void, ms: number) => ReturnType<typeof setTimeout>;
|
|
71
|
+
clearTimer?: (t: ReturnType<typeof setTimeout>) => void;
|
|
72
|
+
/** Injectable window-id minter (default ulid) — the clientEventId. */
|
|
73
|
+
mintClientEventId?: () => string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Clamp a DISPLAY-only string to a UTF-8 byte budget, appending an ellipsis marker when it
|
|
77
|
+
* had to be cut. Binary-searches the longest char prefix that fits `maxBytes` (accounting for
|
|
78
|
+
* the marker) so the result is always ≤ `maxBytes` and never splits a multi-byte codepoint at
|
|
79
|
+
* the budget boundary in a way that inflates the byte count. Display-only: truncating here
|
|
80
|
+
* never drops a tool invocation (the occurrence id/ts/count are separate + preserved).
|
|
81
|
+
*/
|
|
82
|
+
export declare function clampDisplayBytes(s: string, maxBytes: number): string;
|
|
83
|
+
export declare class ToolActivityConsolidator {
|
|
84
|
+
private readonly agent;
|
|
85
|
+
private readonly sessionId;
|
|
86
|
+
private readonly logger;
|
|
87
|
+
private readonly outbox;
|
|
88
|
+
private readonly ledger;
|
|
89
|
+
private readonly transport;
|
|
90
|
+
private readonly windowMs;
|
|
91
|
+
private readonly maxOccurrences;
|
|
92
|
+
private readonly maxInFlight;
|
|
93
|
+
private readonly maxBackoffMs;
|
|
94
|
+
private readonly now;
|
|
95
|
+
private readonly scheduleTimer;
|
|
96
|
+
private readonly clearTimer;
|
|
97
|
+
private readonly mintClientEventId;
|
|
98
|
+
private open;
|
|
99
|
+
private sealTimer;
|
|
100
|
+
/** FIFO of windows awaiting delivery, keyed by clientEventId for dedup. */
|
|
101
|
+
private readonly queue;
|
|
102
|
+
private readonly queued;
|
|
103
|
+
private inFlight;
|
|
104
|
+
/** Windows currently in backoff-limbo (neither queued nor in flight). */
|
|
105
|
+
private retrying;
|
|
106
|
+
private closed;
|
|
107
|
+
/**
|
|
108
|
+
* §4.5(b)/#232 — waiters woken by {@link deliver}'s finally so a bounded drain
|
|
109
|
+
* ({@link drainSends} at session end, {@link captureTerminal} for a post-shutdown late
|
|
110
|
+
* tool) resolves once the queue empties. A SET (not a single slot) so concurrent late-tool
|
|
111
|
+
* terminal captures each get their own wake-up instead of clobbering one another.
|
|
112
|
+
*/
|
|
113
|
+
private readonly drainWaiters;
|
|
114
|
+
/**
|
|
115
|
+
* Single-flight lock serializing every OPEN-WINDOW mutation — observe, the seal
|
|
116
|
+
* timer, boundary/backstop flush, and shutdown. Without it, an observe() appending
|
|
117
|
+
* to the window while a seal() awaits `outbox.persist` would be marked
|
|
118
|
+
* durably-outboxed in the ledger yet be ABSENT from the persisted manifest → a
|
|
119
|
+
* permanent skip (Stage-2 H2). All mutators route through {@link runExclusive}, so a
|
|
120
|
+
* window is snapshot + sealed atomically w.r.t. any concurrent append.
|
|
121
|
+
*/
|
|
122
|
+
private mutationChain;
|
|
123
|
+
constructor(opts: ToolActivityConsolidatorOptions);
|
|
124
|
+
/**
|
|
125
|
+
* Load the ledger, rebuild its durably-outboxed mappings from the surviving
|
|
126
|
+
* outbox (a lost ledger never skips), and re-enqueue every still-`pending`
|
|
127
|
+
* outbox entry for delivery. Quarantined entries are left for the caller's
|
|
128
|
+
* transcript rescan to re-observe.
|
|
129
|
+
*/
|
|
130
|
+
init(): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* §4.5 N4 startup cross-check + crash-ordered repair (V3/W2). A window the ledger
|
|
133
|
+
* records as `durably-outboxed` but whose outbox file did NOT survive (lost or
|
|
134
|
+
* quarantined) is a SKIP hazard: it will never be re-sent (no pending file) and
|
|
135
|
+
* never be re-observed (the ledger suppresses its native ids as durably-outboxed
|
|
136
|
+
* no-ops). Detect every such lost window by cross-checking the ledger's
|
|
137
|
+
* durably-outboxed clientEventIds against the surviving valid outbox files, then
|
|
138
|
+
* repair in the load-bearing order:
|
|
139
|
+
* (1) rewind the replay cursor to the safe lower bound over the lost windows —
|
|
140
|
+
* BEFORE invalidation, so the transcript rescan re-reads their frames;
|
|
141
|
+
* (2) invalidate the lost windows' ledger mappings, so the re-read occurrences
|
|
142
|
+
* are RE-OBSERVED (not suppressed) and re-sealed into fresh windows.
|
|
143
|
+
* A crash between (1) and (2) rescans-but-suppresses (harmless, repaired next
|
|
144
|
+
* start); the reverse order would strand the window past the advanced cursor.
|
|
145
|
+
*
|
|
146
|
+
* The replay cursor is OWNED by the plugin integration (the core stays transcript-
|
|
147
|
+
* agnostic), so it is injected here and this runs once the cursor is loaded — in
|
|
148
|
+
* the integration's start()/transcript-bind, AFTER {@link init}. gemini + agy are
|
|
149
|
+
* EXEMPT (no cursor, no ledger) and never call this.
|
|
150
|
+
*/
|
|
151
|
+
repairLostWindows(cursor: {
|
|
152
|
+
rewindTo(byteOffset: number): Promise<void>;
|
|
153
|
+
}): Promise<void>;
|
|
154
|
+
/**
|
|
155
|
+
* Observe one tool occurrence. Deduped against the OPEN window (live-open) and
|
|
156
|
+
* the ledger (durably-outboxed / acked / legacy-owned / in-flight) by native id —
|
|
157
|
+
* a re-observe of an already-seen occurrence is a no-op (the mobile still
|
|
158
|
+
* render-dedups as the ultimate authority). A fresh occurrence joins the open
|
|
159
|
+
* window and (re)arms the seal timer / triggers an overflow seal.
|
|
160
|
+
*
|
|
161
|
+
* RETURNS a {@link ObserveDisposition} decided ATOMICALLY (under the lock) with the
|
|
162
|
+
* dedup — the transcript backstop uses it to decide the cursor HOLD: a
|
|
163
|
+
* `deferred-in-flight` occurrence must NOT be checkpointed past (its persistence is
|
|
164
|
+
* undecided; if it clears it must be re-derivable), whereas `known-durable` /
|
|
165
|
+
* `observed` / `live-open-dup` advance freely. Returning the disposition (instead of
|
|
166
|
+
* the backstop doing its OWN pre-check) closes the check-then-observe TOCTOU: a mark
|
|
167
|
+
* landing between a separate pre-check and this dedup would otherwise leave the
|
|
168
|
+
* occurrence neither held nor sealed → a skip (Stage-2 Codex).
|
|
169
|
+
*
|
|
170
|
+
* `opts.includeInFlight` (the session-end FINAL sweep) treats an in-flight id as
|
|
171
|
+
* OBSERVABLE (seals it) so a late mark can't defer a tool that has no later pass to
|
|
172
|
+
* re-read it — trading a possible cosmetic double-render for a skip (§4.8).
|
|
173
|
+
*/
|
|
174
|
+
observe(occ: ObservedOccurrence, opts?: {
|
|
175
|
+
includeInFlight?: boolean;
|
|
176
|
+
}): Promise<ObserveDisposition>;
|
|
177
|
+
/** Seal the open window immediately (session end / turn boundary / explicit flush). */
|
|
178
|
+
flush(): Promise<void>;
|
|
179
|
+
/** Flush + stop timers (session end). Does NOT drain in-flight sends synchronously. */
|
|
180
|
+
shutdown(): Promise<void>;
|
|
181
|
+
/**
|
|
182
|
+
* §4.5(b)/#232 — BOUNDED session-end send drain. Seal the open window, then deliver
|
|
183
|
+
* every pending window (with retries armed — MUST be called BEFORE {@link shutdown}
|
|
184
|
+
* sets `closed`) until the queue empties OR `timeoutMs` elapses. A force-sealed
|
|
185
|
+
* session-end window (§4.8) is otherwise only delivered on the NEXT daemon start's
|
|
186
|
+
* re-drain — fine for claude (same backend id on resume) but NOT for codex (fresh id
|
|
187
|
+
* per start → its outbox is never re-scanned), so it would strand. Draining here
|
|
188
|
+
* delivers it while the session key is still live. Bounded so a persistently-failing
|
|
189
|
+
* network can't hang shutdown; a window that misses the deadline stays DURABLE in the
|
|
190
|
+
* outbox (recovered on resume for claude; the codex cross-restart strand is the
|
|
191
|
+
* documented #232 residual — never a data loss, only a delayed/absent manifest).
|
|
192
|
+
*/
|
|
193
|
+
drainSends(timeoutMs: number): Promise<void>;
|
|
194
|
+
/**
|
|
195
|
+
* Await the send queue emptying OR `timeoutMs` elapsing — whichever first (BOUNDED, never
|
|
196
|
+
* hangs). Each caller registers its own waiter in {@link drainWaiters} (woken by
|
|
197
|
+
* {@link deliver}'s finally) and its own timer, and settles exactly once. A window that
|
|
198
|
+
* misses the deadline stays DURABLE in the outbox (recovered on the next start), never lost.
|
|
199
|
+
*/
|
|
200
|
+
private awaitDrain;
|
|
201
|
+
/**
|
|
202
|
+
* §4.8 shutdown-boundary TERMINAL capture + DELIVER. A tool occurrence observed AFTER
|
|
203
|
+
* {@link shutdown} (a hook/JSONL line landing in the window between shutdown() completing
|
|
204
|
+
* and the plugin nulling the integration) makes {@link observe} return `'closed'` and be
|
|
205
|
+
* DROPPED — and routing it to the plugin's fire-and-forget legacy `createEvent` is unsafe:
|
|
206
|
+
* a per-session/account throttle SYNTHETIC (non-persisted) or a network throw loses it
|
|
207
|
+
* with NO later backstop pass, a permanent G2 skip (Stage-2 Codex). Instead: durably SEAL
|
|
208
|
+
* a ONE-occurrence manifest to the outbox, then ENQUEUE + PUMP + await a BOUNDED
|
|
209
|
+
* {@link awaitDrain} so it is actually DELIVERED THIS process while the session key is still
|
|
210
|
+
* live. Persist-only would strand it — a closed send loop never runs, codex mints a fresh
|
|
211
|
+
* id per start so its outbox is never re-scanned, and claude only re-drains on resume — so
|
|
212
|
+
* on a HEALTHY network the tool would reach mobile only on a later resume that may never
|
|
213
|
+
* happen (Stage-2 Codex HIGH). A single send attempt: on success the window is acked +
|
|
214
|
+
* pruned; on a transient failure a closed consolidator does NOT re-arm retries, so the
|
|
215
|
+
* window stays DURABLE in the outbox for the next start's re-drain (claude same-id; the
|
|
216
|
+
* codex fresh-id strand is the documented #232 residual) — never a silent hard loss. The
|
|
217
|
+
* persist + enqueue run under the mutation lock; the drain awaits outside it. Idempotent: a
|
|
218
|
+
* `known-durable` id enqueues nothing new (claude's two sources / codex hook+JSONL both
|
|
219
|
+
* landing post-close capture it ONCE). Returns true when durably captured (caller SUPPRESSES
|
|
220
|
+
* the legacy row), false when the outbox write itself failed (caller may best-effort
|
|
221
|
+
* legacy-emit as a last resort).
|
|
222
|
+
*/
|
|
223
|
+
captureTerminal(occ: ObservedOccurrence, drainTimeoutMs: number): Promise<boolean>;
|
|
224
|
+
/**
|
|
225
|
+
* Serialize a window mutation behind every prior one (success OR failure), and
|
|
226
|
+
* return this op's own result. The chain is the single writer of `this.open`.
|
|
227
|
+
*/
|
|
228
|
+
private runExclusive;
|
|
229
|
+
private armSealTimer;
|
|
230
|
+
/**
|
|
231
|
+
* Turn the open window into a durable outbox entry, in the load-bearing order:
|
|
232
|
+
* build manifest → outbox.persist (DURABLE) → ledger.markDurablyOutboxed (AFTER
|
|
233
|
+
* the outbox) → enqueue for send. MUST be called ONLY under {@link runExclusive}
|
|
234
|
+
* (name suffix `Locked`): it DETACHES `this.open` and snapshots every field BEFORE
|
|
235
|
+
* the first `await`, so no concurrent observe can append to the window being sealed
|
|
236
|
+
* (a late append would be ledger-mapped durably-outboxed yet absent from the
|
|
237
|
+
* persisted manifest = a skip, Stage-2 H2). A post-seal observe opens a FRESH window.
|
|
238
|
+
*/
|
|
239
|
+
private sealLocked;
|
|
240
|
+
/**
|
|
241
|
+
* Group occurrences by `(tool, target)`, preserving first-seen order (§4.1).
|
|
242
|
+
* `occurrences[]` stays the minimal `{ts,id}` dedup shape; a per-occurrence
|
|
243
|
+
* `digestOf(toolInput)` (when the observer supplied one) becomes an entry in the
|
|
244
|
+
* group's `detail[]`, indexed by position into that group's `occurrences[]`.
|
|
245
|
+
*/
|
|
246
|
+
private buildGroups;
|
|
247
|
+
private enqueue;
|
|
248
|
+
/** Start as many sends as back-pressure allows. */
|
|
249
|
+
private pump;
|
|
250
|
+
private deliver;
|
|
251
|
+
/** Test/diagnostic: windows still awaiting delivery (queued + in flight + backoff-limbo). */
|
|
252
|
+
pendingCount(): number;
|
|
253
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Stable stringify — sort object keys at every depth (arrays keep order). */
|
|
2
|
+
export declare function stableStringify(value: unknown): string;
|
|
3
|
+
/** `sha256:` + hex(sha256(stableStringify(toolInput))) — matches hook-bridge.ts (§0). */
|
|
4
|
+
export declare function digestOf(toolInput: unknown): string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { Logger } from '../logger';
|
|
2
|
+
import type { RolloutLock, RolloutOwnership } from './session-map';
|
|
3
|
+
/** `flock(2)` flags as accepted by `fs-ext.flockSync`. */
|
|
4
|
+
export type FlockFlag = 'ex' | 'exnb' | 'sh' | 'shnb' | 'un';
|
|
5
|
+
/** The one `fs-ext` primitive this backend needs: a synchronous `flock(fd, flag)`. */
|
|
6
|
+
export type FlockSyncFn = (fd: number, flag: FlockFlag) => void;
|
|
7
|
+
export interface FlockRolloutLockOptions {
|
|
8
|
+
agent: string;
|
|
9
|
+
logger: Logger;
|
|
10
|
+
/** Injected synchronous `flock` (production: `fs-ext`; tests: a controllable fake). */
|
|
11
|
+
flockSync: FlockSyncFn;
|
|
12
|
+
/** Session-map root; the lockfile is `<root>/<encode(R)>.lock` (matches session-map.lockPath). */
|
|
13
|
+
root?: string;
|
|
14
|
+
/** Base retry backoff while a LIVE owner holds `R` (default 25ms, capped 1s). */
|
|
15
|
+
backoffMs?: number;
|
|
16
|
+
/** Max total wait before {@link acquireOwnership} throws (default 60000ms) — a RETRYABLE re-observe, never a skip. */
|
|
17
|
+
maxWaitMs?: number;
|
|
18
|
+
/** Injectable clock (default Date.now). */
|
|
19
|
+
now?: () => number;
|
|
20
|
+
/** Injectable delay (default setTimeout). */
|
|
21
|
+
delay?: (ms: number) => Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export declare class FlockRolloutLock implements RolloutLock {
|
|
24
|
+
private readonly agent;
|
|
25
|
+
private readonly logger;
|
|
26
|
+
private readonly flockSync;
|
|
27
|
+
private readonly rootDir;
|
|
28
|
+
private readonly backoffMs;
|
|
29
|
+
private readonly maxWaitMs;
|
|
30
|
+
private readonly now;
|
|
31
|
+
private readonly delayFn;
|
|
32
|
+
constructor(opts: FlockRolloutLockOptions);
|
|
33
|
+
/** The stable, never-unlinked lockfile for `R` — identical to session-map.lockPath. */
|
|
34
|
+
lockPath(rollout: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* Block (bounded) until this process holds an exclusive `flock` on `R`'s stable
|
|
37
|
+
* lockfile, then return an ownership handle whose {@link RolloutOwnership.release}
|
|
38
|
+
* drops the `flock` and closes the fd. Throws after maxWaitMs if a LIVE owner keeps
|
|
39
|
+
* `R` — the caller's per-call barrier then throws, a RETRYABLE re-observe (§4.5 ①).
|
|
40
|
+
*/
|
|
41
|
+
acquireOwnership(rollout: string): Promise<RolloutOwnership>;
|
|
42
|
+
}
|
|
43
|
+
export interface CreateRolloutLockOptions {
|
|
44
|
+
agent: string;
|
|
45
|
+
logger: Logger;
|
|
46
|
+
/** Session-map root (shared with the injected {@link ToolActivitySessionMap}). */
|
|
47
|
+
root?: string;
|
|
48
|
+
/** Filesystem-socket dir for the fallback backend (tests). */
|
|
49
|
+
socketDir?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Test seam: force a backend. `'flock'` requires a loadable binding; `'socket'`
|
|
52
|
+
* forces the fallback even where `fs-ext` would load. Default: auto-detect `fs-ext`.
|
|
53
|
+
*/
|
|
54
|
+
prefer?: 'auto' | 'flock' | 'socket';
|
|
55
|
+
/**
|
|
56
|
+
* Test seam: replace the `fs-ext` loader entirely so tests do NOT depend on whether the
|
|
57
|
+
* optional native dep is installed on the host. Return a fake `flockSync` to exercise the
|
|
58
|
+
* flock backend, or `null` to deterministically force the no-binding path.
|
|
59
|
+
*/
|
|
60
|
+
loaderForTest?: () => FlockSyncFn | null;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Resolve the codex rollout-lock backend (§4.5 X3-AMEND-1 HYBRID): the real
|
|
64
|
+
* `flock` backend when the OPTIONAL native `fs-ext` binding loads, else the
|
|
65
|
+
* pure-Node socket fallback. A failed optional build NEVER breaks install — it
|
|
66
|
+
* degrades to the fallback (logged once so the residual is observable).
|
|
67
|
+
*/
|
|
68
|
+
export declare function createRolloutLock(opts: CreateRolloutLockOptions): RolloutLock;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './digest';
|
|
3
|
+
export * from './outbox';
|
|
4
|
+
export * from './ledger';
|
|
5
|
+
export * from './replay-cursor';
|
|
6
|
+
export * from './session-map';
|
|
7
|
+
export * from './socket-rollout-lock';
|
|
8
|
+
export * from './flock-rollout-lock';
|
|
9
|
+
export * from './consolidator';
|