@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,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var fs = require('fs');
|
|
4
|
+
var {flock} = require('./');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Function that locks the current file
|
|
8
|
+
* for `timeout` miliseconds
|
|
9
|
+
*
|
|
10
|
+
* The `counter` represents an index of how many
|
|
11
|
+
* times the function has been called so far
|
|
12
|
+
* (it acts as an id)
|
|
13
|
+
*
|
|
14
|
+
* The callback `cb` is optional
|
|
15
|
+
*/
|
|
16
|
+
function getCurrentFileSize(counter, timeout, cb) {
|
|
17
|
+
var fd = fs.openSync(__filename, 'r');
|
|
18
|
+
|
|
19
|
+
console.log("Trying to aquire lock for the %s time", counter);
|
|
20
|
+
|
|
21
|
+
flock(fd, 'exnb', function(err) {
|
|
22
|
+
if (err) {
|
|
23
|
+
return console.log("Couldn't lock file", counter);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
console.log('Aquired lock', counter);
|
|
27
|
+
|
|
28
|
+
// unlock after `timeout`
|
|
29
|
+
setTimeout(function() {
|
|
30
|
+
flock(fd, 'un', function(err) {
|
|
31
|
+
if (err) {
|
|
32
|
+
return console.log("Couldn't unlock file", counter);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (cb) { cb(); }
|
|
36
|
+
});
|
|
37
|
+
}, timeout);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
getCurrentFileSize(1, 300, function() {
|
|
42
|
+
// this will succeed because we're calling the function
|
|
43
|
+
// after unlock
|
|
44
|
+
getCurrentFileSize(3, 2000);
|
|
45
|
+
});
|
|
46
|
+
// this will fail because #1 locks the file first
|
|
47
|
+
getCurrentFileSize(2, 1000);
|
|
48
|
+
|
|
49
|
+
// The output should be:
|
|
50
|
+
/*
|
|
51
|
+
Trying to aquire lock for the 1 time
|
|
52
|
+
Trying to aquire lock for the 2 time
|
|
53
|
+
Aquired lock 1
|
|
54
|
+
Couldn't lock file 2
|
|
55
|
+
Trying to aquire lock for the 3 time
|
|
56
|
+
Aquired lock 3
|
|
57
|
+
*/
|
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
2
|
+
// copy of this software and associated documentation files (the
|
|
3
|
+
// "Software"), to deal in the Software without restriction, including
|
|
4
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
5
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
6
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
7
|
+
// following conditions:
|
|
8
|
+
//
|
|
9
|
+
// The above copyright notice and this permission notice shall be included
|
|
10
|
+
// in all copies or substantial portions of the Software.
|
|
11
|
+
//
|
|
12
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
13
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
14
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
15
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
16
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
17
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
18
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
19
|
+
|
|
20
|
+
#include <node.h>
|
|
21
|
+
#ifndef _WIN32
|
|
22
|
+
#include <fcntl.h>
|
|
23
|
+
#endif
|
|
24
|
+
#include <errno.h>
|
|
25
|
+
#include <stdio.h>
|
|
26
|
+
#include <sys/types.h>
|
|
27
|
+
#include <stdlib.h>
|
|
28
|
+
#include <string.h>
|
|
29
|
+
#include <nan.h>
|
|
30
|
+
|
|
31
|
+
#ifndef _WIN32
|
|
32
|
+
#include <sys/file.h>
|
|
33
|
+
#include <unistd.h>
|
|
34
|
+
#include <sys/statvfs.h>
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
#ifdef _WIN32
|
|
38
|
+
#include <io.h>
|
|
39
|
+
#include <windows.h>
|
|
40
|
+
#define off_t LONGLONG
|
|
41
|
+
#define _LARGEFILE_SOURCE
|
|
42
|
+
#endif
|
|
43
|
+
|
|
44
|
+
using namespace v8;
|
|
45
|
+
using namespace node;
|
|
46
|
+
|
|
47
|
+
#define THROW_BAD_ARGS Nan::ThrowTypeError("Bad argument")
|
|
48
|
+
|
|
49
|
+
struct store_data_t {
|
|
50
|
+
Nan::Callback *cb;
|
|
51
|
+
int fs_op; // operation type within this module
|
|
52
|
+
int fd;
|
|
53
|
+
int oper;
|
|
54
|
+
int arg;
|
|
55
|
+
off_t offset;
|
|
56
|
+
#ifndef _WIN32
|
|
57
|
+
struct statvfs statvfs_buf;
|
|
58
|
+
#endif
|
|
59
|
+
char *path;
|
|
60
|
+
int error;
|
|
61
|
+
int result;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
#ifndef _WIN32
|
|
65
|
+
static Nan::Persistent<String> f_namemax_symbol;
|
|
66
|
+
static Nan::Persistent<String> f_bsize_symbol;
|
|
67
|
+
static Nan::Persistent<String> f_frsize_symbol;
|
|
68
|
+
|
|
69
|
+
static Nan::Persistent<String> f_blocks_symbol;
|
|
70
|
+
static Nan::Persistent<String> f_bavail_symbol;
|
|
71
|
+
static Nan::Persistent<String> f_bfree_symbol;
|
|
72
|
+
|
|
73
|
+
static Nan::Persistent<String> f_files_symbol;
|
|
74
|
+
static Nan::Persistent<String> f_favail_symbol;
|
|
75
|
+
static Nan::Persistent<String> f_ffree_symbol;
|
|
76
|
+
#endif
|
|
77
|
+
|
|
78
|
+
#ifdef _WIN32
|
|
79
|
+
#define LOCK_SH 1
|
|
80
|
+
#define LOCK_EX 2
|
|
81
|
+
#define LOCK_NB 4
|
|
82
|
+
#define LOCK_UN 8
|
|
83
|
+
#endif
|
|
84
|
+
|
|
85
|
+
enum
|
|
86
|
+
{
|
|
87
|
+
FS_OP_FLOCK,
|
|
88
|
+
FS_OP_SEEK,
|
|
89
|
+
FS_OP_STATVFS,
|
|
90
|
+
#ifndef _WIN32
|
|
91
|
+
FS_OP_FCNTL,
|
|
92
|
+
#endif
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
static void EIO_After(uv_work_t *req) {
|
|
96
|
+
Nan::HandleScope scope;
|
|
97
|
+
|
|
98
|
+
store_data_t *store_data = static_cast<store_data_t *>(req->data);
|
|
99
|
+
|
|
100
|
+
// there is always at least one argument. "error"
|
|
101
|
+
int argc = 1;
|
|
102
|
+
|
|
103
|
+
// Allocate space for two args: error plus possible additional result
|
|
104
|
+
Local<Value> argv[2];
|
|
105
|
+
Local<Object> statvfs_result;
|
|
106
|
+
// NOTE: This may need to be changed if something returns a -1
|
|
107
|
+
// for a success, which is possible.
|
|
108
|
+
if (store_data->result == -1) {
|
|
109
|
+
// If the request doesn't have a path parameter set.
|
|
110
|
+
argv[0] = Nan::ErrnoException(store_data->error, "EIO_After", "");
|
|
111
|
+
} else {
|
|
112
|
+
// error value is empty or null for non-error.
|
|
113
|
+
argv[0] = Nan::Null();
|
|
114
|
+
|
|
115
|
+
switch (store_data->fs_op) {
|
|
116
|
+
// These operations have no data to pass other than "error".
|
|
117
|
+
case FS_OP_FLOCK:
|
|
118
|
+
argc = 1;
|
|
119
|
+
break;
|
|
120
|
+
|
|
121
|
+
case FS_OP_SEEK:
|
|
122
|
+
argc = 2;
|
|
123
|
+
argv[1] = Nan::New<Number>(static_cast<double>(store_data->offset));
|
|
124
|
+
break;
|
|
125
|
+
case FS_OP_STATVFS:
|
|
126
|
+
#ifndef _WIN32
|
|
127
|
+
argc = 2;
|
|
128
|
+
statvfs_result = Nan::New<Object>();
|
|
129
|
+
argv[1] = statvfs_result;
|
|
130
|
+
Nan::Set(statvfs_result, Nan::New<String>(f_namemax_symbol), Nan::New<Integer>(static_cast<uint32_t>(store_data->statvfs_buf.f_namemax)));
|
|
131
|
+
Nan::Set(statvfs_result, Nan::New<String>(f_bsize_symbol), Nan::New<Integer>(static_cast<uint32_t>(store_data->statvfs_buf.f_bsize)));
|
|
132
|
+
Nan::Set(statvfs_result, Nan::New<String>(f_frsize_symbol), Nan::New<Integer>(static_cast<uint32_t>(store_data->statvfs_buf.f_frsize)));
|
|
133
|
+
Nan::Set(statvfs_result, Nan::New<String>(f_blocks_symbol), Nan::New<Number>(store_data->statvfs_buf.f_blocks));
|
|
134
|
+
Nan::Set(statvfs_result, Nan::New<String>(f_bavail_symbol), Nan::New<Number>(store_data->statvfs_buf.f_bavail));
|
|
135
|
+
Nan::Set(statvfs_result, Nan::New<String>(f_bfree_symbol), Nan::New<Number>(store_data->statvfs_buf.f_bfree));
|
|
136
|
+
Nan::Set(statvfs_result, Nan::New<String>(f_files_symbol), Nan::New<Number>(store_data->statvfs_buf.f_files));
|
|
137
|
+
Nan::Set(statvfs_result, Nan::New<String>(f_favail_symbol), Nan::New<Number>(store_data->statvfs_buf.f_favail));
|
|
138
|
+
Nan::Set(statvfs_result, Nan::New<String>(f_ffree_symbol), Nan::New<Number>(store_data->statvfs_buf.f_ffree));
|
|
139
|
+
#else
|
|
140
|
+
argc = 1;
|
|
141
|
+
#endif
|
|
142
|
+
break;
|
|
143
|
+
#ifndef _WIN32
|
|
144
|
+
case FS_OP_FCNTL:
|
|
145
|
+
argc = 2;
|
|
146
|
+
argv[1] = Nan::New<Number>(store_data->result);
|
|
147
|
+
break;
|
|
148
|
+
#endif
|
|
149
|
+
default:
|
|
150
|
+
assert(0 && "Unhandled op type value");
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
Nan::TryCatch try_catch;
|
|
155
|
+
|
|
156
|
+
Nan::AsyncResource async_resource("fs-ext:EIO_After");
|
|
157
|
+
store_data->cb->Call(argc, argv, &async_resource);
|
|
158
|
+
|
|
159
|
+
if (try_catch.HasCaught()) {
|
|
160
|
+
Nan::FatalException(try_catch);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Dispose of the persistent handle
|
|
164
|
+
delete store_data->cb;
|
|
165
|
+
delete store_data;
|
|
166
|
+
delete req;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
static void EIO_StatVFS(uv_work_t *req) {
|
|
170
|
+
store_data_t* statvfs_data = static_cast<store_data_t *>(req->data);
|
|
171
|
+
statvfs_data->result = 0;
|
|
172
|
+
#ifndef _WIN32
|
|
173
|
+
struct statvfs *data = &(statvfs_data->statvfs_buf);
|
|
174
|
+
if (statvfs(statvfs_data->path, data)) {
|
|
175
|
+
statvfs_data->result = -1;
|
|
176
|
+
memset(data, 0, sizeof(struct statvfs));
|
|
177
|
+
};
|
|
178
|
+
#endif
|
|
179
|
+
free(statvfs_data->path);
|
|
180
|
+
;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
#ifdef _WIN32
|
|
184
|
+
static off_t _win32_lseek(int fd, off_t offset, int whence) {
|
|
185
|
+
HANDLE fh;
|
|
186
|
+
LARGE_INTEGER new_offset;
|
|
187
|
+
|
|
188
|
+
fh = (HANDLE)uv_get_osfhandle(fd);
|
|
189
|
+
if (fh == (HANDLE)-1) {
|
|
190
|
+
errno = EBADF;
|
|
191
|
+
return -1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
DWORD method;
|
|
195
|
+
switch (whence) {
|
|
196
|
+
case SEEK_SET:
|
|
197
|
+
method = FILE_BEGIN;
|
|
198
|
+
break;
|
|
199
|
+
case SEEK_CUR:
|
|
200
|
+
method = FILE_CURRENT;
|
|
201
|
+
break;
|
|
202
|
+
case SEEK_END:
|
|
203
|
+
method = FILE_END;
|
|
204
|
+
break;
|
|
205
|
+
default:
|
|
206
|
+
errno = EINVAL;
|
|
207
|
+
return -1;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
LARGE_INTEGER distance;
|
|
211
|
+
distance.QuadPart = offset;
|
|
212
|
+
|
|
213
|
+
if (SetFilePointerEx(fh, distance, &new_offset, method)) {
|
|
214
|
+
return new_offset.QuadPart;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
errno = EINVAL;
|
|
218
|
+
return -1;
|
|
219
|
+
}
|
|
220
|
+
#endif
|
|
221
|
+
|
|
222
|
+
static void EIO_Seek(uv_work_t *req) {
|
|
223
|
+
store_data_t* seek_data = static_cast<store_data_t *>(req->data);
|
|
224
|
+
|
|
225
|
+
#ifdef _WIN32
|
|
226
|
+
off_t offs = _win32_lseek(seek_data->fd, seek_data->offset, seek_data->oper);
|
|
227
|
+
#else
|
|
228
|
+
off_t offs = lseek(seek_data->fd, seek_data->offset, seek_data->oper);
|
|
229
|
+
#endif
|
|
230
|
+
|
|
231
|
+
if (offs == -1) {
|
|
232
|
+
seek_data->result = -1;
|
|
233
|
+
seek_data->error = errno;
|
|
234
|
+
} else {
|
|
235
|
+
seek_data->offset = offs;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
#ifndef _WIN32
|
|
241
|
+
static void EIO_Fcntl(uv_work_t *req) {
|
|
242
|
+
store_data_t* data = static_cast<store_data_t *>(req->data);
|
|
243
|
+
|
|
244
|
+
struct flock lk;
|
|
245
|
+
lk.l_start = 0;
|
|
246
|
+
lk.l_len = 0;
|
|
247
|
+
lk.l_type = 0;
|
|
248
|
+
lk.l_whence = 0;
|
|
249
|
+
lk.l_pid = 0;
|
|
250
|
+
|
|
251
|
+
int result = -1;
|
|
252
|
+
if (data->oper == F_GETLK || data->oper == F_SETLK || data->oper == F_SETLKW) {
|
|
253
|
+
if (data->oper == F_SETLK || data->oper == F_SETLKW) {
|
|
254
|
+
lk.l_whence = SEEK_SET;
|
|
255
|
+
lk.l_type = data->arg;
|
|
256
|
+
}
|
|
257
|
+
data->result = result = fcntl(data->fd, data->oper, &lk);
|
|
258
|
+
} else {
|
|
259
|
+
data->result = result = fcntl(data->fd, data->oper, data->arg);
|
|
260
|
+
}
|
|
261
|
+
if (result == -1) {
|
|
262
|
+
data->error = errno;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
#endif
|
|
266
|
+
|
|
267
|
+
#ifdef _WIN32
|
|
268
|
+
|
|
269
|
+
static void uv__crt_invalid_parameter_handler(const wchar_t* expression,
|
|
270
|
+
const wchar_t* function, const wchar_t * file, unsigned int line,
|
|
271
|
+
uintptr_t reserved) {
|
|
272
|
+
/* No-op. */
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
#define LK_LEN 0xffff0000
|
|
276
|
+
|
|
277
|
+
static int _win32_flock(int fd, int oper) {
|
|
278
|
+
OVERLAPPED o;
|
|
279
|
+
HANDLE fh;
|
|
280
|
+
|
|
281
|
+
int i = -1;
|
|
282
|
+
|
|
283
|
+
fh = (HANDLE)uv_get_osfhandle(fd);
|
|
284
|
+
if (fh == (HANDLE)-1) {
|
|
285
|
+
errno = EBADF;
|
|
286
|
+
return -1;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
memset(&o, 0, sizeof(o));
|
|
290
|
+
|
|
291
|
+
switch(oper) {
|
|
292
|
+
case LOCK_SH: /* shared lock */
|
|
293
|
+
if (LockFileEx(fh, 0, 0, LK_LEN, 0, &o))
|
|
294
|
+
i = 0;
|
|
295
|
+
break;
|
|
296
|
+
case LOCK_EX: /* exclusive lock */
|
|
297
|
+
if (LockFileEx(fh, LOCKFILE_EXCLUSIVE_LOCK, 0, LK_LEN, 0, &o))
|
|
298
|
+
i = 0;
|
|
299
|
+
break;
|
|
300
|
+
case LOCK_SH|LOCK_NB: /* non-blocking shared lock */
|
|
301
|
+
if (LockFileEx(fh, LOCKFILE_FAIL_IMMEDIATELY, 0, LK_LEN, 0, &o))
|
|
302
|
+
i = 0;
|
|
303
|
+
break;
|
|
304
|
+
case LOCK_EX|LOCK_NB: /* non-blocking exclusive lock */
|
|
305
|
+
if (LockFileEx(fh, LOCKFILE_EXCLUSIVE_LOCK|LOCKFILE_FAIL_IMMEDIATELY,
|
|
306
|
+
0, LK_LEN, 0, &o))
|
|
307
|
+
i = 0;
|
|
308
|
+
break;
|
|
309
|
+
case LOCK_UN: /* unlock lock */
|
|
310
|
+
if (UnlockFileEx(fh, 0, LK_LEN, 0, &o) ||
|
|
311
|
+
GetLastError() == ERROR_NOT_LOCKED)
|
|
312
|
+
i = 0;
|
|
313
|
+
break;
|
|
314
|
+
default: /* unknown */
|
|
315
|
+
errno = EINVAL;
|
|
316
|
+
return -1;
|
|
317
|
+
}
|
|
318
|
+
if (i == -1) {
|
|
319
|
+
if (GetLastError() == ERROR_LOCK_VIOLATION)
|
|
320
|
+
errno = EWOULDBLOCK;
|
|
321
|
+
else
|
|
322
|
+
errno = EINVAL;
|
|
323
|
+
}
|
|
324
|
+
return i;
|
|
325
|
+
}
|
|
326
|
+
#endif
|
|
327
|
+
|
|
328
|
+
static void EIO_Flock(uv_work_t *req) {
|
|
329
|
+
store_data_t* flock_data = static_cast<store_data_t *>(req->data);
|
|
330
|
+
|
|
331
|
+
#ifdef _WIN32
|
|
332
|
+
int i = _win32_flock(flock_data->fd, flock_data->oper);
|
|
333
|
+
#else
|
|
334
|
+
int i = flock(flock_data->fd, flock_data->oper);
|
|
335
|
+
#endif
|
|
336
|
+
|
|
337
|
+
flock_data->result = i;
|
|
338
|
+
flock_data->error = errno;
|
|
339
|
+
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
static NAN_METHOD(Flock) {
|
|
343
|
+
if (info.Length() < 2 || !info[0]->IsInt32() || !info[1]->IsInt32()) {
|
|
344
|
+
return THROW_BAD_ARGS;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
store_data_t* flock_data = new store_data_t();
|
|
348
|
+
|
|
349
|
+
flock_data->fs_op = FS_OP_FLOCK;
|
|
350
|
+
flock_data->fd = info[0].As<v8::Int32>()->Value();
|
|
351
|
+
flock_data->oper = info[1].As<v8::Int32>()->Value();
|
|
352
|
+
|
|
353
|
+
if (info[2]->IsFunction()) {
|
|
354
|
+
flock_data->cb = new Nan::Callback((Local<Function>) info[2].As<Function>());
|
|
355
|
+
uv_work_t *req = new uv_work_t;
|
|
356
|
+
req->data = flock_data;
|
|
357
|
+
uv_queue_work(uv_default_loop(), req, EIO_Flock, (uv_after_work_cb)EIO_After);
|
|
358
|
+
info.GetReturnValue().SetUndefined();
|
|
359
|
+
} else {
|
|
360
|
+
#ifdef _WIN32
|
|
361
|
+
int i = _win32_flock(flock_data->fd, flock_data->oper);
|
|
362
|
+
#else
|
|
363
|
+
int i = flock(flock_data->fd, flock_data->oper);
|
|
364
|
+
#endif
|
|
365
|
+
delete flock_data;
|
|
366
|
+
if (i != 0) return Nan::ThrowError(Nan::ErrnoException(errno, "Flock", ""));
|
|
367
|
+
info.GetReturnValue().SetUndefined();
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
#ifdef _LARGEFILE_SOURCE
|
|
373
|
+
static inline int IsInt64(double x) {
|
|
374
|
+
return x == static_cast<double>(static_cast<int64_t>(x));
|
|
375
|
+
}
|
|
376
|
+
#endif
|
|
377
|
+
|
|
378
|
+
#ifndef _LARGEFILE_SOURCE
|
|
379
|
+
#define ASSERT_OFFSET(a) \
|
|
380
|
+
if (!(a)->IsUndefined() && !(a)->IsNull() && !(a)->IsInt32()) { \
|
|
381
|
+
return Nan::ThrowTypeError("Not an integer"); \
|
|
382
|
+
}
|
|
383
|
+
#define GET_OFFSET(a) ((a)->IsInt32() ? (a).As<v8::Int32>()->Value() : -1)
|
|
384
|
+
#else
|
|
385
|
+
#define ASSERT_OFFSET(a) \
|
|
386
|
+
if (!(a)->IsUndefined() && !(a)->IsNull() && !((a)->IsNumber() && IsInt64((a).As<v8::Number>()->Value()))) { \
|
|
387
|
+
return Nan::ThrowTypeError("Not an integer"); \
|
|
388
|
+
}
|
|
389
|
+
#define GET_OFFSET(a) ((a)->IsNumber() ? static_cast<int64_t>((a).As<v8::Number>()->Value()) : -1)
|
|
390
|
+
#endif
|
|
391
|
+
|
|
392
|
+
// fs.seek(fd, position, whence [, callback] )
|
|
393
|
+
|
|
394
|
+
static NAN_METHOD(Seek) {
|
|
395
|
+
if (info.Length() < 3 ||
|
|
396
|
+
!info[0]->IsInt32() ||
|
|
397
|
+
!info[2]->IsInt32()) {
|
|
398
|
+
return THROW_BAD_ARGS;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
int fd = info[0].As<v8::Int32>()->Value();
|
|
402
|
+
ASSERT_OFFSET(info[1]);
|
|
403
|
+
off_t offs = GET_OFFSET(info[1]);
|
|
404
|
+
int whence = info[2].As<v8::Int32>()->Value();
|
|
405
|
+
|
|
406
|
+
if ( ! info[3]->IsFunction()) {
|
|
407
|
+
#ifdef _WIN32
|
|
408
|
+
off_t offs_result = _win32_lseek(fd, offs, whence);
|
|
409
|
+
#else
|
|
410
|
+
off_t offs_result = lseek(fd, offs, whence);
|
|
411
|
+
#endif
|
|
412
|
+
if (offs_result == -1) return Nan::ThrowError(Nan::ErrnoException(errno, "Seek", ""));
|
|
413
|
+
info.GetReturnValue().Set(Nan::New<Number>(static_cast<double>(offs_result)));
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
store_data_t* seek_data = new store_data_t();
|
|
418
|
+
|
|
419
|
+
seek_data->cb = new Nan::Callback((Local<Function>) info[3].As<Function>());
|
|
420
|
+
seek_data->fs_op = FS_OP_SEEK;
|
|
421
|
+
seek_data->fd = fd;
|
|
422
|
+
seek_data->offset = offs;
|
|
423
|
+
seek_data->oper = whence;
|
|
424
|
+
|
|
425
|
+
uv_work_t *req = new uv_work_t;
|
|
426
|
+
req->data = seek_data;
|
|
427
|
+
uv_queue_work(uv_default_loop(), req, EIO_Seek, (uv_after_work_cb)EIO_After);
|
|
428
|
+
|
|
429
|
+
info.GetReturnValue().SetUndefined();
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// fs.fcntl(fd, cmd, [arg])
|
|
433
|
+
|
|
434
|
+
#ifndef _WIN32
|
|
435
|
+
static NAN_METHOD(Fcntl) {
|
|
436
|
+
if (info.Length() < 3 ||
|
|
437
|
+
!info[0]->IsInt32() ||
|
|
438
|
+
!info[1]->IsInt32() ||
|
|
439
|
+
!info[2]->IsInt32()) {
|
|
440
|
+
return THROW_BAD_ARGS;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
int fd = info[0].As<v8::Int32>()->Value();
|
|
444
|
+
int cmd = info[1].As<v8::Int32>()->Value();
|
|
445
|
+
int arg = info[2].As<v8::Int32>()->Value();
|
|
446
|
+
|
|
447
|
+
if ( ! info[3]->IsFunction()) {
|
|
448
|
+
int result = fcntl(fd, cmd, arg);
|
|
449
|
+
if (result == -1) return Nan::ThrowError(Nan::ErrnoException(errno, "Fcntl", ""));
|
|
450
|
+
info.GetReturnValue().Set(Nan::New<Number>(result));
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
store_data_t* data = new store_data_t();
|
|
455
|
+
|
|
456
|
+
data->cb = new Nan::Callback((Local<Function>) info[3].As<Function>());
|
|
457
|
+
data->fs_op = FS_OP_FCNTL;
|
|
458
|
+
data->fd = fd;
|
|
459
|
+
data->oper = cmd;
|
|
460
|
+
data->arg = arg;
|
|
461
|
+
|
|
462
|
+
uv_work_t *req = new uv_work_t;
|
|
463
|
+
req->data = data;
|
|
464
|
+
uv_queue_work(uv_default_loop(), req, EIO_Fcntl, (uv_after_work_cb)EIO_After);
|
|
465
|
+
|
|
466
|
+
info.GetReturnValue().SetUndefined();
|
|
467
|
+
}
|
|
468
|
+
#endif
|
|
469
|
+
|
|
470
|
+
// Wrapper for statvfs(2).
|
|
471
|
+
// fs.statVFS( path, [callback] )
|
|
472
|
+
|
|
473
|
+
static NAN_METHOD(StatVFS) {
|
|
474
|
+
if (info.Length() < 1 ||
|
|
475
|
+
!info[0]->IsString() ) {
|
|
476
|
+
return THROW_BAD_ARGS;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
Nan::Utf8String path(info[0]);
|
|
480
|
+
|
|
481
|
+
// Synchronous call needs much less work
|
|
482
|
+
if (!info[1]->IsFunction()) {
|
|
483
|
+
#ifndef _WIN32
|
|
484
|
+
struct statvfs buf;
|
|
485
|
+
int ret = statvfs(*path, &buf);
|
|
486
|
+
if (ret != 0) return Nan::ThrowError(Nan::ErrnoException(errno, "statvfs", "", *path));
|
|
487
|
+
Local<Object> result = Nan::New<Object>();
|
|
488
|
+
Nan::Set(result, Nan::New<String>(f_namemax_symbol), Nan::New<Integer>(static_cast<uint32_t>(buf.f_namemax)));
|
|
489
|
+
Nan::Set(result, Nan::New<String>(f_bsize_symbol), Nan::New<Integer>(static_cast<uint32_t>(buf.f_bsize)));
|
|
490
|
+
Nan::Set(result, Nan::New<String>(f_frsize_symbol), Nan::New<Integer>(static_cast<uint32_t>(buf.f_frsize)));
|
|
491
|
+
|
|
492
|
+
Nan::Set(result, Nan::New<String>(f_blocks_symbol), Nan::New<Number>(buf.f_blocks));
|
|
493
|
+
Nan::Set(result, Nan::New<String>(f_bavail_symbol), Nan::New<Number>(buf.f_bavail));
|
|
494
|
+
Nan::Set(result, Nan::New<String>(f_bfree_symbol), Nan::New<Number>(buf.f_bfree));
|
|
495
|
+
|
|
496
|
+
Nan::Set(result, Nan::New<String>(f_files_symbol), Nan::New<Number>(buf.f_files));
|
|
497
|
+
Nan::Set(result, Nan::New<String>(f_favail_symbol), Nan::New<Number>(buf.f_favail));
|
|
498
|
+
Nan::Set(result, Nan::New<String>(f_ffree_symbol), Nan::New<Number>(buf.f_ffree));
|
|
499
|
+
info.GetReturnValue().Set(result);
|
|
500
|
+
#else
|
|
501
|
+
info.GetReturnValue().SetUndefined();
|
|
502
|
+
#endif
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
store_data_t* statvfs_data = new store_data_t();
|
|
507
|
+
|
|
508
|
+
statvfs_data->cb = new Nan::Callback((Local<Function>) info[1].As<Function>());
|
|
509
|
+
statvfs_data->fs_op = FS_OP_STATVFS;
|
|
510
|
+
statvfs_data->path = strdup(*path);
|
|
511
|
+
|
|
512
|
+
uv_work_t *req = new uv_work_t;
|
|
513
|
+
req->data = statvfs_data;
|
|
514
|
+
uv_queue_work(uv_default_loop(), req, EIO_StatVFS,(uv_after_work_cb)EIO_After);
|
|
515
|
+
|
|
516
|
+
info.GetReturnValue().SetUndefined();
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
extern "C"
|
|
520
|
+
NAN_MODULE_INIT(init)
|
|
521
|
+
{
|
|
522
|
+
Nan::HandleScope scope;
|
|
523
|
+
|
|
524
|
+
#ifdef _WIN32
|
|
525
|
+
_set_invalid_parameter_handler(uv__crt_invalid_parameter_handler);
|
|
526
|
+
#endif
|
|
527
|
+
|
|
528
|
+
v8::Local<v8::Object> constants = Nan::New<v8::Object>();
|
|
529
|
+
|
|
530
|
+
#ifdef SEEK_SET
|
|
531
|
+
NODE_DEFINE_CONSTANT(constants, SEEK_SET);
|
|
532
|
+
#endif
|
|
533
|
+
|
|
534
|
+
#ifdef SEEK_CUR
|
|
535
|
+
NODE_DEFINE_CONSTANT(constants, SEEK_CUR);
|
|
536
|
+
#endif
|
|
537
|
+
|
|
538
|
+
#ifdef SEEK_END
|
|
539
|
+
NODE_DEFINE_CONSTANT(constants, SEEK_END);
|
|
540
|
+
#endif
|
|
541
|
+
|
|
542
|
+
#ifdef LOCK_SH
|
|
543
|
+
NODE_DEFINE_CONSTANT(constants, LOCK_SH);
|
|
544
|
+
#endif
|
|
545
|
+
|
|
546
|
+
#ifdef LOCK_EX
|
|
547
|
+
NODE_DEFINE_CONSTANT(constants, LOCK_EX);
|
|
548
|
+
#endif
|
|
549
|
+
|
|
550
|
+
#ifdef LOCK_NB
|
|
551
|
+
NODE_DEFINE_CONSTANT(constants, LOCK_NB);
|
|
552
|
+
#endif
|
|
553
|
+
|
|
554
|
+
#ifdef LOCK_UN
|
|
555
|
+
NODE_DEFINE_CONSTANT(constants, LOCK_UN);
|
|
556
|
+
#endif
|
|
557
|
+
|
|
558
|
+
#ifdef F_GETFD
|
|
559
|
+
NODE_DEFINE_CONSTANT(constants, F_GETFD);
|
|
560
|
+
#endif
|
|
561
|
+
|
|
562
|
+
#ifdef F_SETFD
|
|
563
|
+
NODE_DEFINE_CONSTANT(constants, F_SETFD);
|
|
564
|
+
#endif
|
|
565
|
+
|
|
566
|
+
#ifdef FD_CLOEXEC
|
|
567
|
+
NODE_DEFINE_CONSTANT(constants, FD_CLOEXEC);
|
|
568
|
+
#endif
|
|
569
|
+
|
|
570
|
+
#ifdef F_RDLCK
|
|
571
|
+
NODE_DEFINE_CONSTANT(constants, F_RDLCK);
|
|
572
|
+
#endif
|
|
573
|
+
|
|
574
|
+
#ifdef F_WRLCK
|
|
575
|
+
NODE_DEFINE_CONSTANT(constants, F_WRLCK);
|
|
576
|
+
#endif
|
|
577
|
+
|
|
578
|
+
#ifdef F_UNLCK
|
|
579
|
+
NODE_DEFINE_CONSTANT(constants, F_UNLCK);
|
|
580
|
+
#endif
|
|
581
|
+
|
|
582
|
+
#ifdef F_SETLK
|
|
583
|
+
NODE_DEFINE_CONSTANT(constants, F_SETLK);
|
|
584
|
+
#endif
|
|
585
|
+
|
|
586
|
+
#ifdef F_GETLK
|
|
587
|
+
NODE_DEFINE_CONSTANT(constants, F_GETLK);
|
|
588
|
+
#endif
|
|
589
|
+
|
|
590
|
+
#ifdef F_SETLKW
|
|
591
|
+
NODE_DEFINE_CONSTANT(constants, F_SETLKW);
|
|
592
|
+
#endif
|
|
593
|
+
|
|
594
|
+
Nan::Set(target, Nan::New("constants").ToLocalChecked(), constants);
|
|
595
|
+
|
|
596
|
+
Export(target, "seek", Seek);
|
|
597
|
+
#ifndef _WIN32
|
|
598
|
+
Export(target, "fcntl", Fcntl);
|
|
599
|
+
#endif
|
|
600
|
+
Export(target, "flock", Flock);
|
|
601
|
+
Export(target, "statVFS", StatVFS);
|
|
602
|
+
|
|
603
|
+
#ifndef _WIN32
|
|
604
|
+
f_namemax_symbol.Reset(Nan::New<String>("f_namemax").ToLocalChecked());
|
|
605
|
+
f_bsize_symbol.Reset(Nan::New<String>("f_bsize").ToLocalChecked());
|
|
606
|
+
f_frsize_symbol.Reset(Nan::New<String>("f_frsize").ToLocalChecked());
|
|
607
|
+
|
|
608
|
+
f_blocks_symbol.Reset(Nan::New<String>("f_blocks").ToLocalChecked());
|
|
609
|
+
f_bavail_symbol.Reset(Nan::New<String>("f_bavail").ToLocalChecked());
|
|
610
|
+
f_bfree_symbol.Reset(Nan::New<String>("f_bfree").ToLocalChecked());
|
|
611
|
+
|
|
612
|
+
f_files_symbol.Reset(Nan::New<String>("f_files").ToLocalChecked());
|
|
613
|
+
f_favail_symbol.Reset(Nan::New<String>("f_favail").ToLocalChecked());
|
|
614
|
+
f_ffree_symbol.Reset(Nan::New<String>("f_ffree").ToLocalChecked());
|
|
615
|
+
#endif
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
#if NODE_MODULE_VERSION > 1
|
|
619
|
+
NODE_MODULE_INIT() {
|
|
620
|
+
init(exports);
|
|
621
|
+
}
|
|
622
|
+
#endif
|