tea-rags 1.43.0 → 1.44.0
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 +15 -14
- package/build/bootstrap/codegraph-daemon-restart.d.ts +46 -0
- package/build/bootstrap/codegraph-daemon-restart.d.ts.map +1 -0
- package/build/bootstrap/codegraph-daemon-restart.js +55 -0
- package/build/bootstrap/codegraph-daemon-restart.js.map +1 -0
- package/build/bootstrap/config/defaults.d.ts.map +1 -1
- package/build/bootstrap/config/defaults.js +2 -0
- package/build/bootstrap/config/defaults.js.map +1 -1
- package/build/bootstrap/factory.d.ts.map +1 -1
- package/build/bootstrap/factory.js +23 -3
- package/build/bootstrap/factory.js.map +1 -1
- package/build/cli/commands/doctor.d.ts +18 -0
- package/build/cli/commands/doctor.d.ts.map +1 -1
- package/build/cli/commands/doctor.js +59 -0
- package/build/cli/commands/doctor.js.map +1 -1
- package/build/cli/index-progress/status-format.d.ts +18 -0
- package/build/cli/index-progress/status-format.d.ts.map +1 -1
- package/build/cli/index-progress/status-format.js +6 -3
- package/build/cli/index-progress/status-format.js.map +1 -1
- package/build/cli/prime/format.js +58 -8
- package/build/cli/prime/format.js.map +1 -1
- package/build/core/adapters/duckdb/codegraph-db-files.d.ts +11 -0
- package/build/core/adapters/duckdb/codegraph-db-files.d.ts.map +1 -1
- package/build/core/adapters/duckdb/codegraph-db-files.js +37 -6
- package/build/core/adapters/duckdb/codegraph-db-files.js.map +1 -1
- package/build/core/adapters/duckdb/daemon/entry.d.ts +26 -0
- package/build/core/adapters/duckdb/daemon/entry.d.ts.map +1 -1
- package/build/core/adapters/duckdb/daemon/entry.js +62 -11
- package/build/core/adapters/duckdb/daemon/entry.js.map +1 -1
- package/build/core/adapters/duckdb/daemon/index.d.ts +1 -1
- package/build/core/adapters/duckdb/daemon/index.d.ts.map +1 -1
- package/build/core/adapters/duckdb/daemon/index.js +1 -1
- package/build/core/adapters/duckdb/daemon/index.js.map +1 -1
- package/build/core/adapters/duckdb/daemon/lifecycle.d.ts +94 -5
- package/build/core/adapters/duckdb/daemon/lifecycle.d.ts.map +1 -1
- package/build/core/adapters/duckdb/daemon/lifecycle.js +158 -15
- package/build/core/adapters/duckdb/daemon/lifecycle.js.map +1 -1
- package/build/core/adapters/duckdb/daemon/protocol.d.ts.map +1 -1
- package/build/core/adapters/duckdb/daemon/protocol.js +4 -1
- package/build/core/adapters/duckdb/daemon/protocol.js.map +1 -1
- package/build/core/adapters/duckdb/daemon/server.d.ts +7 -7
- package/build/core/adapters/duckdb/daemon/server.d.ts.map +1 -1
- package/build/core/adapters/duckdb/daemon/server.js +18 -16
- package/build/core/adapters/duckdb/daemon/server.js.map +1 -1
- package/build/core/adapters/duckdb/errors.d.ts +40 -1
- package/build/core/adapters/duckdb/errors.d.ts.map +1 -1
- package/build/core/adapters/duckdb/errors.js +66 -0
- package/build/core/adapters/duckdb/errors.js.map +1 -1
- package/build/core/adapters/duckdb/file-graph-store.d.ts.map +1 -1
- package/build/core/adapters/duckdb/file-graph-store.js +24 -10
- package/build/core/adapters/duckdb/file-graph-store.js.map +1 -1
- package/build/core/adapters/duckdb/method-edge-reader.d.ts +7 -0
- package/build/core/adapters/duckdb/method-edge-reader.d.ts.map +1 -1
- package/build/core/adapters/duckdb/method-edge-reader.js +13 -1
- package/build/core/adapters/duckdb/method-edge-reader.js.map +1 -1
- package/build/core/adapters/duckdb/pool.d.ts +93 -0
- package/build/core/adapters/duckdb/pool.d.ts.map +1 -1
- package/build/core/adapters/duckdb/pool.js +198 -7
- package/build/core/adapters/duckdb/pool.js.map +1 -1
- package/build/core/adapters/errors.d.ts +1 -1
- package/build/core/adapters/errors.d.ts.map +1 -1
- package/build/core/adapters/errors.js +2 -0
- package/build/core/adapters/errors.js.map +1 -1
- package/build/core/adapters/qdrant/schema-manager.d.ts +18 -0
- package/build/core/adapters/qdrant/schema-manager.d.ts.map +1 -1
- package/build/core/adapters/qdrant/schema-manager.js +25 -0
- package/build/core/adapters/qdrant/schema-manager.js.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/client.d.ts +6 -21
- package/build/core/adapters/vcs/git/git-cli/client.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/client.js +10 -10
- package/build/core/adapters/vcs/git/git-cli/client.js.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/parsers.d.ts +21 -2
- package/build/core/adapters/vcs/git/git-cli/parsers.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/parsers.js +135 -3
- package/build/core/adapters/vcs/git/git-cli/parsers.js.map +1 -1
- package/build/core/adapters/vcs/types.d.ts +26 -4
- package/build/core/adapters/vcs/types.d.ts.map +1 -1
- package/build/core/api/internal/composition.d.ts +15 -0
- package/build/core/api/internal/composition.d.ts.map +1 -1
- package/build/core/api/internal/composition.js +19 -0
- package/build/core/api/internal/composition.js.map +1 -1
- package/build/core/api/internal/facades/ingest-facade.d.ts.map +1 -1
- package/build/core/api/internal/facades/ingest-facade.js +5 -1
- package/build/core/api/internal/facades/ingest-facade.js.map +1 -1
- package/build/core/api/internal/ingest-dependencies.d.ts +4 -1
- package/build/core/api/internal/ingest-dependencies.d.ts.map +1 -1
- package/build/core/api/internal/ingest-dependencies.js +14 -4
- package/build/core/api/internal/ingest-dependencies.js.map +1 -1
- package/build/core/api/internal/ops/explore-ops.d.ts.map +1 -1
- package/build/core/api/internal/ops/explore-ops.js +9 -1
- package/build/core/api/internal/ops/explore-ops.js.map +1 -1
- package/build/core/api/public/dto/explore.d.ts +1 -0
- package/build/core/api/public/dto/explore.d.ts.map +1 -1
- package/build/core/contracts/signal-utils.d.ts +25 -0
- package/build/core/contracts/signal-utils.d.ts.map +1 -1
- package/build/core/contracts/signal-utils.js +57 -0
- package/build/core/contracts/signal-utils.js.map +1 -1
- package/build/core/contracts/types/chunker.d.ts +30 -0
- package/build/core/contracts/types/chunker.d.ts.map +1 -1
- package/build/core/contracts/types/chunker.js +15 -1
- package/build/core/contracts/types/chunker.js.map +1 -1
- package/build/core/contracts/types/filter-preset.d.ts +7 -2
- package/build/core/contracts/types/filter-preset.d.ts.map +1 -1
- package/build/core/contracts/types/provider.d.ts +10 -1
- package/build/core/contracts/types/provider.d.ts.map +1 -1
- package/build/core/contracts/types/reranker.d.ts +43 -0
- package/build/core/contracts/types/reranker.d.ts.map +1 -1
- package/build/core/contracts/types/trajectory.d.ts +160 -16
- package/build/core/contracts/types/trajectory.d.ts.map +1 -1
- package/build/core/domains/explore/label-resolver.d.ts +29 -1
- package/build/core/domains/explore/label-resolver.d.ts.map +1 -1
- package/build/core/domains/explore/label-resolver.js +66 -12
- package/build/core/domains/explore/label-resolver.js.map +1 -1
- package/build/core/domains/explore/queries/index-metrics.d.ts.map +1 -1
- package/build/core/domains/explore/queries/index-metrics.js +14 -6
- package/build/core/domains/explore/queries/index-metrics.js.map +1 -1
- package/build/core/domains/explore/reranker.d.ts +129 -22
- package/build/core/domains/explore/reranker.d.ts.map +1 -1
- package/build/core/domains/explore/reranker.js +275 -59
- package/build/core/domains/explore/reranker.js.map +1 -1
- package/build/core/domains/explore/signal-floors.d.ts +21 -0
- package/build/core/domains/explore/signal-floors.d.ts.map +1 -1
- package/build/core/domains/explore/signal-floors.js +27 -0
- package/build/core/domains/explore/signal-floors.js.map +1 -1
- package/build/core/domains/ingest/infra/collection-stats.d.ts +2 -1
- package/build/core/domains/ingest/infra/collection-stats.d.ts.map +1 -1
- package/build/core/domains/ingest/infra/collection-stats.js +221 -39
- package/build/core/domains/ingest/infra/collection-stats.js.map +1 -1
- package/build/core/domains/ingest/infra/stats-recompute.js +3 -3
- package/build/core/domains/ingest/infra/stats-recompute.js.map +1 -1
- package/build/core/domains/ingest/pipeline/chunker/config.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/chunker/config.js +36 -0
- package/build/core/domains/ingest/pipeline/chunker/config.js.map +1 -1
- package/build/core/domains/ingest/pipeline/chunker/hooks/types.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/chunker/hooks/types.js +1 -0
- package/build/core/domains/ingest/pipeline/chunker/hooks/types.js.map +1 -1
- package/build/core/domains/ingest/pipeline/chunker/tree-sitter.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/chunker/tree-sitter.js +11 -4
- package/build/core/domains/ingest/pipeline/chunker/tree-sitter.js.map +1 -1
- package/build/core/domains/ingest/pipeline/ignore-defaults.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/ignore-defaults.js +22 -0
- package/build/core/domains/ingest/pipeline/ignore-defaults.js.map +1 -1
- package/build/core/domains/language/capability/readme.d.ts.map +1 -1
- package/build/core/domains/language/capability/readme.js +1 -0
- package/build/core/domains/language/capability/readme.js.map +1 -1
- package/build/core/domains/language/capability/rule.d.ts.map +1 -1
- package/build/core/domains/language/capability/rule.js +1 -0
- package/build/core/domains/language/capability/rule.js.map +1 -1
- package/build/core/domains/language/factory.d.ts.map +1 -1
- package/build/core/domains/language/factory.js +8 -0
- package/build/core/domains/language/factory.js.map +1 -1
- package/build/core/domains/language/go/capability.d.ts.map +1 -1
- package/build/core/domains/language/go/capability.js +11 -3
- package/build/core/domains/language/go/capability.js.map +1 -1
- package/build/core/domains/language/go/naming.d.ts +8 -0
- package/build/core/domains/language/go/naming.d.ts.map +1 -1
- package/build/core/domains/language/go/naming.js +14 -4
- package/build/core/domains/language/go/naming.js.map +1 -1
- package/build/core/domains/language/go/resolver/go-project-type.d.ts +1 -2
- package/build/core/domains/language/go/resolver/go-project-type.d.ts.map +1 -1
- package/build/core/domains/language/go/resolver/go-project-type.js +5 -6
- package/build/core/domains/language/go/resolver/go-project-type.js.map +1 -1
- package/build/core/domains/language/go/resolver/strategies/shared.d.ts +12 -11
- package/build/core/domains/language/go/resolver/strategies/shared.d.ts.map +1 -1
- package/build/core/domains/language/go/resolver/strategies/shared.js +18 -13
- package/build/core/domains/language/go/resolver/strategies/shared.js.map +1 -1
- package/build/core/domains/language/go/type-name.d.ts +18 -2
- package/build/core/domains/language/go/type-name.d.ts.map +1 -1
- package/build/core/domains/language/go/type-name.js +24 -2
- package/build/core/domains/language/go/type-name.js.map +1 -1
- package/build/core/domains/language/go/walker/name-of.d.ts.map +1 -1
- package/build/core/domains/language/go/walker/name-of.js +13 -1
- package/build/core/domains/language/go/walker/name-of.js.map +1 -1
- package/build/core/domains/language/go/walker/walker.js +28 -16
- package/build/core/domains/language/go/walker/walker.js.map +1 -1
- package/build/core/domains/language/javascript/capability.d.ts.map +1 -1
- package/build/core/domains/language/javascript/capability.js +8 -1
- package/build/core/domains/language/javascript/capability.js.map +1 -1
- package/build/core/domains/language/javascript/chunking/index.d.ts +12 -1
- package/build/core/domains/language/javascript/chunking/index.d.ts.map +1 -1
- package/build/core/domains/language/javascript/chunking/index.js +5 -1
- package/build/core/domains/language/javascript/chunking/index.js.map +1 -1
- package/build/core/domains/language/javascript/chunking/test-dsl-filter.d.ts +36 -0
- package/build/core/domains/language/javascript/chunking/test-dsl-filter.d.ts.map +1 -0
- package/build/core/domains/language/javascript/chunking/test-dsl-filter.js +90 -0
- package/build/core/domains/language/javascript/chunking/test-dsl-filter.js.map +1 -0
- package/build/core/domains/language/javascript/chunking/test-scope-chunker.d.ts +60 -0
- package/build/core/domains/language/javascript/chunking/test-scope-chunker.d.ts.map +1 -0
- package/build/core/domains/language/javascript/chunking/test-scope-chunker.js +368 -0
- package/build/core/domains/language/javascript/chunking/test-scope-chunker.js.map +1 -0
- package/build/core/domains/language/javascript/index.d.ts.map +1 -1
- package/build/core/domains/language/javascript/index.js +9 -5
- package/build/core/domains/language/javascript/index.js.map +1 -1
- package/build/core/domains/language/ruby/capability.js +1 -1
- package/build/core/domains/language/ruby/walker/name-of.d.ts.map +1 -1
- package/build/core/domains/language/ruby/walker/name-of.js +71 -1
- package/build/core/domains/language/ruby/walker/name-of.js.map +1 -1
- package/build/core/domains/language/swift/capability.d.ts +3 -0
- package/build/core/domains/language/swift/capability.d.ts.map +1 -0
- package/build/core/domains/language/swift/capability.js +81 -0
- package/build/core/domains/language/swift/capability.js.map +1 -0
- package/build/core/domains/language/swift/chunking/container-body-chunker.d.ts +57 -0
- package/build/core/domains/language/swift/chunking/container-body-chunker.d.ts.map +1 -0
- package/build/core/domains/language/swift/chunking/container-body-chunker.js +120 -0
- package/build/core/domains/language/swift/chunking/container-body-chunker.js.map +1 -0
- package/build/core/domains/language/swift/chunking/doc-comment-capture.d.ts +51 -0
- package/build/core/domains/language/swift/chunking/doc-comment-capture.d.ts.map +1 -0
- package/build/core/domains/language/swift/chunking/doc-comment-capture.js +98 -0
- package/build/core/domains/language/swift/chunking/doc-comment-capture.js.map +1 -0
- package/build/core/domains/language/swift/chunking/index.d.ts +26 -0
- package/build/core/domains/language/swift/chunking/index.d.ts.map +1 -0
- package/build/core/domains/language/swift/chunking/index.js +36 -0
- package/build/core/domains/language/swift/chunking/index.js.map +1 -0
- package/build/core/domains/language/swift/chunking/nested-function-filter.d.ts +40 -0
- package/build/core/domains/language/swift/chunking/nested-function-filter.d.ts.map +1 -0
- package/build/core/domains/language/swift/chunking/nested-function-filter.js +58 -0
- package/build/core/domains/language/swift/chunking/nested-function-filter.js.map +1 -0
- package/build/core/domains/language/swift/chunking/quick-dsl.d.ts +55 -0
- package/build/core/domains/language/swift/chunking/quick-dsl.d.ts.map +1 -0
- package/build/core/domains/language/swift/chunking/quick-dsl.js +96 -0
- package/build/core/domains/language/swift/chunking/quick-dsl.js.map +1 -0
- package/build/core/domains/language/swift/chunking/quick-scope-chunker.d.ts +122 -0
- package/build/core/domains/language/swift/chunking/quick-scope-chunker.d.ts.map +1 -0
- package/build/core/domains/language/swift/chunking/quick-scope-chunker.js +385 -0
- package/build/core/domains/language/swift/chunking/quick-scope-chunker.js.map +1 -0
- package/build/core/domains/language/swift/chunking/suite-recognition.d.ts +97 -0
- package/build/core/domains/language/swift/chunking/suite-recognition.d.ts.map +1 -0
- package/build/core/domains/language/swift/chunking/suite-recognition.js +246 -0
- package/build/core/domains/language/swift/chunking/suite-recognition.js.map +1 -0
- package/build/core/domains/language/swift/index.d.ts +78 -0
- package/build/core/domains/language/swift/index.d.ts.map +1 -0
- package/build/core/domains/language/swift/index.js +129 -0
- package/build/core/domains/language/swift/index.js.map +1 -0
- package/build/core/domains/language/swift/kernel.d.ts +34 -0
- package/build/core/domains/language/swift/kernel.d.ts.map +1 -0
- package/build/core/domains/language/swift/kernel.js +41 -0
- package/build/core/domains/language/swift/kernel.js.map +1 -0
- package/build/core/domains/language/swift/resolver/index.d.ts +3 -0
- package/build/core/domains/language/swift/resolver/index.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/index.js +3 -0
- package/build/core/domains/language/swift/resolver/index.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/index.d.ts +11 -0
- package/build/core/domains/language/swift/resolver/strategies/index.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/index.js +11 -0
- package/build/core/domains/language/swift/resolver/strategies/index.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/shared.d.ts +73 -0
- package/build/core/domains/language/swift/resolver/strategies/shared.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/shared.js +82 -0
- package/build/core/domains/language/swift/resolver/strategies/shared.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-chained-receiver-type.d.ts +84 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-chained-receiver-type.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-chained-receiver-type.js +96 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-chained-receiver-type.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-enclosing-bare-call.d.ts +21 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-enclosing-bare-call.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-enclosing-bare-call.js +26 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-enclosing-bare-call.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-extension-scope-member.d.ts +32 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-extension-scope-member.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-extension-scope-member.js +40 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-extension-scope-member.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-global-short-name.d.ts +38 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-global-short-name.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-global-short-name.js +47 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-global-short-name.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-local-binding.d.ts +25 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-local-binding.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-local-binding.js +34 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-local-binding.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-scoped-type-receiver.d.ts +70 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-scoped-type-receiver.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-scoped-type-receiver.js +88 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-scoped-type-receiver.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-self-member.d.ts +25 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-self-member.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-self-member.js +30 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-self-member.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-stored-property-type.d.ts +46 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-stored-property-type.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-stored-property-type.js +62 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-stored-property-type.js.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-super.d.ts +46 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-super.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-super.js +68 -0
- package/build/core/domains/language/swift/resolver/strategies/swift-super.js.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-ancestor-policy.d.ts +34 -0
- package/build/core/domains/language/swift/resolver/swift-ancestor-policy.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-ancestor-policy.js +43 -0
- package/build/core/domains/language/swift/resolver/swift-ancestor-policy.js.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-member-type-lookup.d.ts +51 -0
- package/build/core/domains/language/swift/resolver/swift-member-type-lookup.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-member-type-lookup.js +66 -0
- package/build/core/domains/language/swift/resolver/swift-member-type-lookup.js.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-receiver-type-ports.d.ts +44 -0
- package/build/core/domains/language/swift/resolver/swift-receiver-type-ports.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-receiver-type-ports.js +130 -0
- package/build/core/domains/language/swift/resolver/swift-receiver-type-ports.js.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-resolver.d.ts +120 -0
- package/build/core/domains/language/swift/resolver/swift-resolver.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-resolver.js +152 -0
- package/build/core/domains/language/swift/resolver/swift-resolver.js.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-symbol-lookup.d.ts +33 -0
- package/build/core/domains/language/swift/resolver/swift-symbol-lookup.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-symbol-lookup.js +80 -0
- package/build/core/domains/language/swift/resolver/swift-symbol-lookup.js.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-type-field-index.d.ts +71 -0
- package/build/core/domains/language/swift/resolver/swift-type-field-index.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-type-field-index.js +110 -0
- package/build/core/domains/language/swift/resolver/swift-type-field-index.js.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-type-name.d.ts +55 -0
- package/build/core/domains/language/swift/resolver/swift-type-name.d.ts.map +1 -0
- package/build/core/domains/language/swift/resolver/swift-type-name.js +75 -0
- package/build/core/domains/language/swift/resolver/swift-type-name.js.map +1 -0
- package/build/core/domains/language/swift/signal-floors.d.ts +9 -0
- package/build/core/domains/language/swift/signal-floors.d.ts.map +1 -0
- package/build/core/domains/language/swift/signal-floors.js +12 -0
- package/build/core/domains/language/swift/signal-floors.js.map +1 -0
- package/build/core/domains/language/swift/type-field-address.d.ts +44 -0
- package/build/core/domains/language/swift/type-field-address.d.ts.map +1 -0
- package/build/core/domains/language/swift/type-field-address.js +49 -0
- package/build/core/domains/language/swift/type-field-address.js.map +1 -0
- package/build/core/domains/language/swift/walker/index.d.ts +10 -0
- package/build/core/domains/language/swift/walker/index.d.ts.map +1 -0
- package/build/core/domains/language/swift/walker/index.js +10 -0
- package/build/core/domains/language/swift/walker/index.js.map +1 -0
- package/build/core/domains/language/swift/walker/name-of.d.ts +42 -0
- package/build/core/domains/language/swift/walker/name-of.d.ts.map +1 -0
- package/build/core/domains/language/swift/walker/name-of.js +58 -0
- package/build/core/domains/language/swift/walker/name-of.js.map +1 -0
- package/build/core/domains/language/swift/walker/passes.d.ts +15 -0
- package/build/core/domains/language/swift/walker/passes.d.ts.map +1 -0
- package/build/core/domains/language/swift/walker/passes.js +14 -0
- package/build/core/domains/language/swift/walker/passes.js.map +1 -0
- package/build/core/domains/language/swift/walker/walker.d.ts +148 -0
- package/build/core/domains/language/swift/walker/walker.d.ts.map +1 -0
- package/build/core/domains/language/swift/walker/walker.js +948 -0
- package/build/core/domains/language/swift/walker/walker.js.map +1 -0
- package/build/core/domains/language/typescript/capability.d.ts.map +1 -1
- package/build/core/domains/language/typescript/capability.js +40 -2
- package/build/core/domains/language/typescript/capability.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/shared.d.ts +10 -1
- package/build/core/domains/language/typescript/resolver/strategies/shared.d.ts.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/shared.js +18 -3
- package/build/core/domains/language/typescript/resolver/strategies/shared.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-cone-type-locator.js +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-cone-type-locator.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-global-short-name.d.ts +8 -6
- package/build/core/domains/language/typescript/resolver/strategies/ts-global-short-name.d.ts.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-global-short-name.js +8 -6
- package/build/core/domains/language/typescript/resolver/strategies/ts-global-short-name.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-import-narrowed-fallback.d.ts.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-import-narrowed-fallback.js +11 -2
- package/build/core/domains/language/typescript/resolver/strategies/ts-import-narrowed-fallback.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-receiver-symbol.js +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-receiver-symbol.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-this-member.d.ts +8 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-this-member.d.ts.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-this-member.js +26 -7
- package/build/core/domains/language/typescript/resolver/strategies/ts-this-member.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-fallback.d.ts +16 -6
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-fallback.d.ts.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-fallback.js +10 -5
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-fallback.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-jsx-component.d.ts +10 -10
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-jsx-component.js +10 -10
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-return-type-inference.d.ts +8 -4
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-return-type-inference.d.ts.map +1 -1
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-return-type-inference.js +10 -5
- package/build/core/domains/language/typescript/resolver/strategies/ts-type-checker-return-type-inference.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/ts-receiver-member-evidence.d.ts +70 -3
- package/build/core/domains/language/typescript/resolver/ts-receiver-member-evidence.d.ts.map +1 -1
- package/build/core/domains/language/typescript/resolver/ts-receiver-member-evidence.js +126 -9
- package/build/core/domains/language/typescript/resolver/ts-receiver-member-evidence.js.map +1 -1
- package/build/core/domains/language/typescript/resolver/ts-resolver.js +2 -2
- package/build/core/domains/language/typescript/resolver/ts-resolver.js.map +1 -1
- package/build/core/domains/language/typescript/walker/call-valued-export.d.ts +6 -3
- package/build/core/domains/language/typescript/walker/call-valued-export.d.ts.map +1 -1
- package/build/core/domains/language/typescript/walker/call-valued-export.js +6 -3
- package/build/core/domains/language/typescript/walker/call-valued-export.js.map +1 -1
- package/build/core/domains/maintenance/drift/index.d.ts +2 -0
- package/build/core/domains/maintenance/drift/index.d.ts.map +1 -1
- package/build/core/domains/maintenance/drift/index.js +2 -0
- package/build/core/domains/maintenance/drift/index.js.map +1 -1
- package/build/core/domains/maintenance/drift/monitor.d.ts +2 -2
- package/build/core/domains/maintenance/drift/monitor.d.ts.map +1 -1
- package/build/core/domains/maintenance/drift/report.d.ts.map +1 -1
- package/build/core/domains/maintenance/drift/report.js +1 -0
- package/build/core/domains/maintenance/drift/report.js.map +1 -1
- package/build/core/domains/maintenance/drift/stats-contract-drift-monitor.d.ts +27 -0
- package/build/core/domains/maintenance/drift/stats-contract-drift-monitor.d.ts.map +1 -0
- package/build/core/domains/maintenance/drift/stats-contract-drift-monitor.js +45 -0
- package/build/core/domains/maintenance/drift/stats-contract-drift-monitor.js.map +1 -0
- package/build/core/domains/maintenance/drift/stats-contract-drift.d.ts +48 -0
- package/build/core/domains/maintenance/drift/stats-contract-drift.d.ts.map +1 -0
- package/build/core/domains/maintenance/drift/stats-contract-drift.js +76 -0
- package/build/core/domains/maintenance/drift/stats-contract-drift.js.map +1 -0
- package/build/core/domains/maintenance/migration/adapters/stats-store-adapter.d.ts +48 -1
- package/build/core/domains/maintenance/migration/adapters/stats-store-adapter.d.ts.map +1 -1
- package/build/core/domains/maintenance/migration/adapters/stats-store-adapter.js +65 -2
- package/build/core/domains/maintenance/migration/adapters/stats-store-adapter.js.map +1 -1
- package/build/core/domains/maintenance/migration/database/migrations/026-cg-method-edges-nullable-target.d.ts +57 -0
- package/build/core/domains/maintenance/migration/database/migrations/026-cg-method-edges-nullable-target.d.ts.map +1 -0
- package/build/core/domains/maintenance/migration/database/migrations/026-cg-method-edges-nullable-target.js +87 -0
- package/build/core/domains/maintenance/migration/database/migrations/026-cg-method-edges-nullable-target.js.map +1 -0
- package/build/core/domains/maintenance/migration/database/migrations/index.d.ts.map +1 -1
- package/build/core/domains/maintenance/migration/database/migrations/index.js +2 -0
- package/build/core/domains/maintenance/migration/database/migrations/index.js.map +1 -1
- package/build/core/domains/maintenance/migration/schema-migrator.d.ts +1 -1
- package/build/core/domains/maintenance/migration/schema-migrator.d.ts.map +1 -1
- package/build/core/domains/maintenance/migration/schema-migrator.js +2 -1
- package/build/core/domains/maintenance/migration/schema-migrator.js.map +1 -1
- package/build/core/domains/maintenance/migration/schema_migrations/index.d.ts +1 -0
- package/build/core/domains/maintenance/migration/schema_migrations/index.d.ts.map +1 -1
- package/build/core/domains/maintenance/migration/schema_migrations/index.js +1 -0
- package/build/core/domains/maintenance/migration/schema_migrations/index.js.map +1 -1
- package/build/core/domains/maintenance/migration/schema_migrations/schema-v18-recent-authors-index.d.ts +28 -0
- package/build/core/domains/maintenance/migration/schema_migrations/schema-v18-recent-authors-index.d.ts.map +1 -0
- package/build/core/domains/maintenance/migration/schema_migrations/schema-v18-recent-authors-index.js +38 -0
- package/build/core/domains/maintenance/migration/schema_migrations/schema-v18-recent-authors-index.js.map +1 -0
- package/build/core/domains/maintenance/migration/stats-migrator.d.ts +11 -0
- package/build/core/domains/maintenance/migration/stats-migrator.d.ts.map +1 -1
- package/build/core/domains/maintenance/migration/stats-migrator.js +19 -5
- package/build/core/domains/maintenance/migration/stats-migrator.js.map +1 -1
- package/build/core/domains/maintenance/migration/stats_migrations/index.d.ts +1 -0
- package/build/core/domains/maintenance/migration/stats_migrations/index.d.ts.map +1 -1
- package/build/core/domains/maintenance/migration/stats_migrations/index.js +1 -0
- package/build/core/domains/maintenance/migration/stats_migrations/index.js.map +1 -1
- package/build/core/domains/maintenance/migration/stats_migrations/stats-v7-sampling-contract.d.ts +34 -0
- package/build/core/domains/maintenance/migration/stats_migrations/stats-v7-sampling-contract.d.ts.map +1 -0
- package/build/core/domains/maintenance/migration/stats_migrations/stats-v7-sampling-contract.js +43 -0
- package/build/core/domains/maintenance/migration/stats_migrations/stats-v7-sampling-contract.js.map +1 -0
- package/build/core/domains/maintenance/migration/types.d.ts +16 -0
- package/build/core/domains/maintenance/migration/types.d.ts.map +1 -1
- package/build/core/domains/trajectory/codegraph/symbols/file-extractor.d.ts.map +1 -1
- package/build/core/domains/trajectory/codegraph/symbols/file-extractor.js +13 -0
- package/build/core/domains/trajectory/codegraph/symbols/file-extractor.js.map +1 -1
- package/build/core/domains/trajectory/codegraph/symbols/payload-signals.d.ts.map +1 -1
- package/build/core/domains/trajectory/codegraph/symbols/payload-signals.js +7 -5
- package/build/core/domains/trajectory/codegraph/symbols/payload-signals.js.map +1 -1
- package/build/core/domains/trajectory/filter-presets/compiler.d.ts +6 -1
- package/build/core/domains/trajectory/filter-presets/compiler.d.ts.map +1 -1
- package/build/core/domains/trajectory/filter-presets/compiler.js +38 -3
- package/build/core/domains/trajectory/filter-presets/compiler.js.map +1 -1
- package/build/core/domains/trajectory/git/age-derivation.d.ts +90 -0
- package/build/core/domains/trajectory/git/age-derivation.d.ts.map +1 -0
- package/build/core/domains/trajectory/git/age-derivation.js +140 -0
- package/build/core/domains/trajectory/git/age-derivation.js.map +1 -0
- package/build/core/domains/trajectory/git/filters.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/filters.js +12 -0
- package/build/core/domains/trajectory/git/filters.js.map +1 -1
- package/build/core/domains/trajectory/git/index.d.ts +1 -0
- package/build/core/domains/trajectory/git/index.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/index.js +1 -0
- package/build/core/domains/trajectory/git/index.js.map +1 -1
- package/build/core/domains/trajectory/git/infra/churn-walk/protocol.d.ts +7 -6
- package/build/core/domains/trajectory/git/infra/churn-walk/protocol.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/commit-discovery-store.d.ts +16 -1
- package/build/core/domains/trajectory/git/infra/commit-discovery-store.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/commit-discovery-store.js +112 -22
- package/build/core/domains/trajectory/git/infra/commit-discovery-store.js.map +1 -1
- package/build/core/domains/trajectory/git/infra/commit-discovery.d.ts +11 -4
- package/build/core/domains/trajectory/git/infra/commit-discovery.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/commit-discovery.js +5 -3
- package/build/core/domains/trajectory/git/infra/commit-discovery.js.map +1 -1
- package/build/core/domains/trajectory/git/infra/file-churn-discovery-store.d.ts +15 -1
- package/build/core/domains/trajectory/git/infra/file-churn-discovery-store.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/file-churn-discovery-store.js +120 -27
- package/build/core/domains/trajectory/git/infra/file-churn-discovery-store.js.map +1 -1
- package/build/core/domains/trajectory/git/infra/file-churn-discovery.d.ts +8 -2
- package/build/core/domains/trajectory/git/infra/file-churn-discovery.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/file-churn-discovery.js.map +1 -1
- package/build/core/domains/trajectory/git/infra/walk-commits.d.ts +2 -5
- package/build/core/domains/trajectory/git/infra/walk-commits.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/walk-commits.js +13 -4
- package/build/core/domains/trajectory/git/infra/walk-commits.js.map +1 -1
- package/build/core/domains/trajectory/git/payload-signals.d.ts +6 -0
- package/build/core/domains/trajectory/git/payload-signals.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/payload-signals.js +126 -25
- package/build/core/domains/trajectory/git/payload-signals.js.map +1 -1
- package/build/core/domains/trajectory/git/provider.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/provider.js.map +1 -1
- package/build/core/domains/trajectory/git/rerank/derived-signals/age.d.ts +7 -3
- package/build/core/domains/trajectory/git/rerank/derived-signals/age.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/rerank/derived-signals/age.js +11 -7
- package/build/core/domains/trajectory/git/rerank/derived-signals/age.js.map +1 -1
- package/build/core/domains/trajectory/git/rerank/derived-signals/recency.d.ts +7 -3
- package/build/core/domains/trajectory/git/rerank/derived-signals/recency.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/rerank/derived-signals/recency.js +11 -7
- package/build/core/domains/trajectory/git/rerank/derived-signals/recency.js.map +1 -1
- package/build/core/infra/stats-cache.d.ts +13 -0
- package/build/core/infra/stats-cache.d.ts.map +1 -1
- package/build/core/infra/stats-cache.js +29 -4
- package/build/core/infra/stats-cache.js.map +1 -1
- package/build/core/infra/symbolid/classify.d.ts.map +1 -1
- package/build/core/infra/symbolid/classify.js +55 -0
- package/build/core/infra/symbolid/classify.js.map +1 -1
- package/build/mcp/resources/registry.d.ts +16 -1
- package/build/mcp/resources/registry.d.ts.map +1 -1
- package/build/mcp/resources/registry.js +47 -12
- package/build/mcp/resources/registry.js.map +1 -1
- package/build/mcp/tools/schemas.d.ts +4 -0
- package/build/mcp/tools/schemas.d.ts.map +1 -1
- package/build/mcp/tools/schemas.js +6 -0
- package/build/mcp/tools/schemas.js.map +1 -1
- package/package.json +11 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;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AQ,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAqB,CAAC;AAChF,CAAC;AAED,iGAAiG;AACjG,KAAK,UAAU,IAAI;IACjB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,SAAS,CAAC,2BAA2B,EAAE,CAAC,CAAC;IACpE,KAAK,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAU,EAAE,CAAC;QACjD,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE;YACnB,KAAK,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED,4EAA4E;AAC5E,8EAA8E;AAC9E,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/E,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;QACjC,2EAA2E;QAC3E,2EAA2E;QAC3E,2EAA2E;QAC3E,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,uCAAwC,GAAa,EAAE,KAAK,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACtG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC;AACD,oBAAoB"}
|
|
@@ -10,7 +10,7 @@ export { DaemonGraphDbClient, UnsupportedDaemonReadError } from "./client.js";
|
|
|
10
10
|
export { computeAndPersistCyclesAndSignals } from "./graph-analysis.js";
|
|
11
11
|
export { DAEMON_OP_COMMANDS, type DaemonOpCommand, type DaemonOpContext } from "./op-commands.js";
|
|
12
12
|
export { CodegraphDaemonServer } from "./server.js";
|
|
13
|
-
export { type CodegraphDaemonPaths, DAEMON_LOG_MAX_BYTES, IDLE_SHUTDOWN_MS, decrementRefs, getDaemonLogPath, getDaemonPaths, getStorageDir, incrementRefs, openDaemonLogFd, readRefs, scheduleIdleWatcher, } from "./lifecycle.js";
|
|
13
|
+
export { type CodegraphDaemonPaths, type DaemonKeyDirStatus, DAEMON_LOG_MAX_BYTES, IDLE_SHUTDOWN_MS, daemonPathsForKeyDir, decrementRefs, getBuildKey, getDaemonLogPath, getDaemonPaths, getLegacyDaemonPaths, getStorageDir, incrementRefs, isDaemonPidAlive, listDaemonKeyDirs, openDaemonLogFd, readRefs, scheduleIdleWatcher, sweepOrphanedDaemonKeyDirs, unlinkDaemonFiles, waitForDaemonExit, } from "./lifecycle.js";
|
|
14
14
|
export { createConnectionHandler, createIdleShutdown, runDaemon, type DaemonRuntimeOptions } from "./entry.js";
|
|
15
15
|
export { DaemonMemoryGovernor, DEFAULT_MEMORY_LIMIT_BASE, DEFAULT_MEMORY_LIMIT_MAX, type DaemonMemoryGovernorOptions, } from "./memory-governor.js";
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EACL,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,aAAa,EACb,eAAe,EACf,QAAQ,EACR,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,mBAAmB,EACnB,0BAA0B,EAC1B,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC/G,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,KAAK,2BAA2B,GACjC,MAAM,sBAAsB,CAAC"}
|
|
@@ -10,7 +10,7 @@ export { DaemonGraphDbClient, UnsupportedDaemonReadError } from "./client.js";
|
|
|
10
10
|
export { computeAndPersistCyclesAndSignals } from "./graph-analysis.js";
|
|
11
11
|
export { DAEMON_OP_COMMANDS } from "./op-commands.js";
|
|
12
12
|
export { CodegraphDaemonServer } from "./server.js";
|
|
13
|
-
export { DAEMON_LOG_MAX_BYTES, IDLE_SHUTDOWN_MS, decrementRefs, getDaemonLogPath, getDaemonPaths, getStorageDir, incrementRefs, openDaemonLogFd, readRefs, scheduleIdleWatcher, } from "./lifecycle.js";
|
|
13
|
+
export { DAEMON_LOG_MAX_BYTES, IDLE_SHUTDOWN_MS, daemonPathsForKeyDir, decrementRefs, getBuildKey, getDaemonLogPath, getDaemonPaths, getLegacyDaemonPaths, getStorageDir, incrementRefs, isDaemonPidAlive, listDaemonKeyDirs, openDaemonLogFd, readRefs, scheduleIdleWatcher, sweepOrphanedDaemonKeyDirs, unlinkDaemonFiles, waitForDaemonExit, } from "./lifecycle.js";
|
|
14
14
|
export { createConnectionHandler, createIdleShutdown, runDaemon } from "./entry.js";
|
|
15
15
|
export { DaemonMemoryGovernor, DEFAULT_MEMORY_LIMIT_BASE, DEFAULT_MEMORY_LIMIT_MAX, } from "./memory-governor.js";
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAA0D,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAA8C,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAA0D,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAA8C,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAGL,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,mBAAmB,EACnB,0BAA0B,EAC1B,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,SAAS,EAA6B,MAAM,YAAY,CAAC;AAC/G,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,GAEzB,MAAM,sBAAsB,CAAC"}
|
|
@@ -7,7 +7,18 @@ export { IDLE_SHUTDOWN_MS };
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const DAEMON_LOG_MAX_BYTES: number;
|
|
9
9
|
export interface CodegraphDaemonPaths {
|
|
10
|
+
/**
|
|
11
|
+
* The base storage dir `getDaemonPaths` was called with (bd
|
|
12
|
+
* tea-rags-mcp-42hno). NOT the directory the files sit in — that is
|
|
13
|
+
* `buildDir`. For the legacy and for-key-dir views the two coincide.
|
|
14
|
+
*/
|
|
10
15
|
storageDir: string;
|
|
16
|
+
/**
|
|
17
|
+
* The directory the lifecycle files actually sit in: `<storageDir>/<build
|
|
18
|
+
* key>` for the keyed view, the plain dir for the legacy / for-key-dir
|
|
19
|
+
* views. A daemon's cleanup and the orphan sweep remove THIS directory.
|
|
20
|
+
*/
|
|
21
|
+
buildDir: string;
|
|
11
22
|
socketPath: string;
|
|
12
23
|
pidFile: string;
|
|
13
24
|
portFile: string;
|
|
@@ -17,17 +28,55 @@ export interface CodegraphDaemonPaths {
|
|
|
17
28
|
logFile: string;
|
|
18
29
|
}
|
|
19
30
|
/**
|
|
20
|
-
* Resolve the on-disk directory that holds the codegraph daemon's
|
|
21
|
-
*
|
|
22
|
-
*
|
|
31
|
+
* Resolve the on-disk directory that holds the codegraph daemon's per-build
|
|
32
|
+
* key directories. Honors TEA_RAGS_CODEGRAPH_DAEMON_DIR for test/CI
|
|
33
|
+
* overrides; otherwise nests `codegraph/` under the app-data dir.
|
|
23
34
|
*/
|
|
24
35
|
export declare function getStorageDir(appDataPath?: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* The per-build key directory name under the storage dir (bd
|
|
38
|
+
* tea-rags-mcp-42hno): `b-` plus 8 hex chars of SHA-256 over the build
|
|
39
|
+
* fingerprint. The fingerprint is a long, path-bearing string — unusable as a
|
|
40
|
+
* directory name — so the hash is the stable short form. The name is kept
|
|
41
|
+
* SHORT on purpose: a unix socket path is bounded by the 104-byte `sun_path`
|
|
42
|
+
* on macOS, the key dir sits between the storage dir and
|
|
43
|
+
* `codegraph-daemon.sock`, and the storage dir itself can be a deep tmp path.
|
|
44
|
+
* Eight hex chars distinguish the handful of builds live on one machine with
|
|
45
|
+
* a collision probability far below anything observable; even a collision
|
|
46
|
+
* merely merges two builds onto one daemon, where the retained handshake
|
|
47
|
+
* still arbitrates. Builds normally never share a key, so they never share a
|
|
48
|
+
* daemon socket: `npm link` re-pointed at another checkout, or a rebuild,
|
|
49
|
+
* addresses a DIFFERENT daemon instead of draining a shared one.
|
|
50
|
+
*/
|
|
51
|
+
export declare function getBuildKey(fingerprint?: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* The lifecycle-file layout for ONE daemon whose files sit in `keyDir` — the
|
|
54
|
+
* single place that knows the layout. `getDaemonPaths` (own build),
|
|
55
|
+
* `getLegacyDaemonPaths` (pre-keying migration) and the pool's
|
|
56
|
+
* `drainStaleDaemon` (recovered from a socket path) all resolve through it.
|
|
57
|
+
*/
|
|
58
|
+
export declare function daemonPathsForKeyDir(keyDir: string): CodegraphDaemonPaths;
|
|
59
|
+
/**
|
|
60
|
+
* THIS build's lifecycle files (bd tea-rags-mcp-42hno): the five lifecycle
|
|
61
|
+
* files plus the log nest under the per-build key directory, so the spawner,
|
|
62
|
+
* the daemon and every client pool that call THIS function address the same
|
|
63
|
+
* daemon. `storageDir` stays the base so the value can ride the spawn env
|
|
64
|
+
* (`TEA_RAGS_CODEGRAPH_DAEMON_DIR`) without re-keying on the daemon side.
|
|
65
|
+
*/
|
|
25
66
|
export declare function getDaemonPaths(storageDir: string): CodegraphDaemonPaths;
|
|
67
|
+
/**
|
|
68
|
+
* The pre-keying (42hno) layout: lifecycle files directly in the storage dir.
|
|
69
|
+
* The one-time migration in the pool reads a legacy daemon through this view —
|
|
70
|
+
* drain it if alive, then unlink — after which the layout is gone for good.
|
|
71
|
+
*/
|
|
72
|
+
export declare function getLegacyDaemonPaths(storageDir: string): CodegraphDaemonPaths;
|
|
26
73
|
/**
|
|
27
74
|
* The daemon log sits next to the socket, which is what lets a client derive it
|
|
28
|
-
* from the socket path alone when it has to name the file in an error.
|
|
75
|
+
* from the socket path alone when it has to name the file in an error. The arg
|
|
76
|
+
* is the directory the lifecycle files sit in (the build-key dir for a keyed
|
|
77
|
+
* daemon).
|
|
29
78
|
*/
|
|
30
|
-
export declare function getDaemonLogPath(
|
|
79
|
+
export declare function getDaemonLogPath(keyDir: string): string;
|
|
31
80
|
/**
|
|
32
81
|
* Open the daemon log for the spawner to hand to the child as stdout + stderr.
|
|
33
82
|
* Appends, so the output of a spawn that died is still there after the next one
|
|
@@ -57,6 +106,46 @@ export declare const DEFAULT_EXIT_TIMEOUT_MS = 10000;
|
|
|
57
106
|
* Resolves true on exit, false when `timeoutMs` elapses first.
|
|
58
107
|
*/
|
|
59
108
|
export declare function waitForDaemonExit(paths: CodegraphDaemonPaths, stalePid: number | undefined, opts?: DaemonExitWaitOptions): Promise<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Signal-0 liveness probe for a recorded daemon pid, with EPERM counted as
|
|
111
|
+
* ALIVE (mirrors the `DaemonLock` probe): the pid is taken by a process this
|
|
112
|
+
* user may not signal — a live daemon is not ours to sweep. Only ESRCH counts
|
|
113
|
+
* as gone.
|
|
114
|
+
*/
|
|
115
|
+
export declare function isDaemonPidAlive(pid: number): boolean;
|
|
116
|
+
/** What one build-key directory says about the daemon that owns it. */
|
|
117
|
+
export interface DaemonKeyDirStatus {
|
|
118
|
+
/** The key directory itself (`<storageDir>/build-<hash>`). */
|
|
119
|
+
keyDir: string;
|
|
120
|
+
/** The daemon's lifecycle paths resolved through `daemonPathsForKeyDir`. */
|
|
121
|
+
paths: CodegraphDaemonPaths;
|
|
122
|
+
/** The recorded pid; undefined when the dir holds no readable pid file. */
|
|
123
|
+
pid: number | undefined;
|
|
124
|
+
/** Whether that pid still accepts signal 0. */
|
|
125
|
+
alive: boolean;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Enumerate the build-key directories under `storageDir` (bd
|
|
129
|
+
* tea-rags-mcp-42hno). A dir that holds no readable pid reports
|
|
130
|
+
* `pid: undefined, alive: false` — the shape a crashed-before-listen spawn
|
|
131
|
+
* leaves, and an orphan to the sweep.
|
|
132
|
+
*/
|
|
133
|
+
export declare function listDaemonKeyDirs(storageDir: string): DaemonKeyDirStatus[];
|
|
134
|
+
/**
|
|
135
|
+
* Remove every build-key directory under `storageDir` whose daemon pid is
|
|
136
|
+
* dead or absent (bd tea-rags-mcp-42hno). Run by the spawn path so builds
|
|
137
|
+
* that come and go do not litter key dirs, and by `doctor --restart` as the
|
|
138
|
+
* orphan sweep. Returns the removed directories; a live daemon's dir is never
|
|
139
|
+
* touched, and a dead-pid dir whose spawn lock is held is skipped.
|
|
140
|
+
*/
|
|
141
|
+
export declare function sweepOrphanedDaemonKeyDirs(storageDir: string): string[];
|
|
142
|
+
/**
|
|
143
|
+
* Unlink the five lifecycle files of ONE daemon (its own key only — the
|
|
144
|
+
* layout makes "only its own" automatic, 42hno). Idempotent: missing-file
|
|
145
|
+
* errors are swallowed. Shared by the daemon's shutdown cleanup and the
|
|
146
|
+
* pool's legacy-layout migration.
|
|
147
|
+
*/
|
|
148
|
+
export declare function unlinkDaemonFiles(paths: CodegraphDaemonPaths): void;
|
|
60
149
|
/**
|
|
61
150
|
* Poll the refs file every 5s; once it has stayed at <= 0 for IDLE_SHUTDOWN_MS,
|
|
62
151
|
* clear the interval and invoke onShutdown so the daemon releases the RW DuckDB
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/lifecycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/lifecycle.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,gBAAgB,QAAS,CAAC;AAGhC,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAAc,CAAC;AAEhD,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;CACjB;AAOD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,WAAW,CAAC,EAAE,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OAAO,CAOrD;AAED,uEAAuE;AACvE,MAAM,WAAW,kBAAkB;IACjC,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,KAAK,EAAE,oBAAoB,CAAC;IAC5B,2EAA2E;IAC3E,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,+CAA+C;IAC/C,KAAK,EAAE,OAAO,CAAC;CAChB;AAKD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAc1E;AAuBD;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAOvE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAQnE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAkBvG"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { mkdirSync, openSync, readdirSync, readFileSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
2
3
|
import { homedir } from "node:os";
|
|
3
4
|
import { dirname, join } from "node:path";
|
|
4
5
|
import { DaemonLock } from "../../qdrant/embedded/daemon-lock.js";
|
|
6
|
+
import { getBuildFingerprint } from "./build-fingerprint.js";
|
|
5
7
|
const daemonLock = new DaemonLock();
|
|
6
8
|
const IDLE_SHUTDOWN_MS = 30_000;
|
|
7
9
|
const IDLE_POLL_INTERVAL_MS = 5_000;
|
|
@@ -17,30 +19,76 @@ function fallbackAppDataDir() {
|
|
|
17
19
|
return join(homedir(), ".tea-rags");
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
|
-
* Resolve the on-disk directory that holds the codegraph daemon's
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* Resolve the on-disk directory that holds the codegraph daemon's per-build
|
|
23
|
+
* key directories. Honors TEA_RAGS_CODEGRAPH_DAEMON_DIR for test/CI
|
|
24
|
+
* overrides; otherwise nests `codegraph/` under the app-data dir.
|
|
23
25
|
*/
|
|
24
26
|
export function getStorageDir(appDataPath) {
|
|
25
27
|
return process.env.TEA_RAGS_CODEGRAPH_DAEMON_DIR ?? join(appDataPath ?? fallbackAppDataDir(), "codegraph");
|
|
26
28
|
}
|
|
27
|
-
|
|
29
|
+
/**
|
|
30
|
+
* The per-build key directory name under the storage dir (bd
|
|
31
|
+
* tea-rags-mcp-42hno): `b-` plus 8 hex chars of SHA-256 over the build
|
|
32
|
+
* fingerprint. The fingerprint is a long, path-bearing string — unusable as a
|
|
33
|
+
* directory name — so the hash is the stable short form. The name is kept
|
|
34
|
+
* SHORT on purpose: a unix socket path is bounded by the 104-byte `sun_path`
|
|
35
|
+
* on macOS, the key dir sits between the storage dir and
|
|
36
|
+
* `codegraph-daemon.sock`, and the storage dir itself can be a deep tmp path.
|
|
37
|
+
* Eight hex chars distinguish the handful of builds live on one machine with
|
|
38
|
+
* a collision probability far below anything observable; even a collision
|
|
39
|
+
* merely merges two builds onto one daemon, where the retained handshake
|
|
40
|
+
* still arbitrates. Builds normally never share a key, so they never share a
|
|
41
|
+
* daemon socket: `npm link` re-pointed at another checkout, or a rebuild,
|
|
42
|
+
* addresses a DIFFERENT daemon instead of draining a shared one.
|
|
43
|
+
*/
|
|
44
|
+
export function getBuildKey(fingerprint = getBuildFingerprint()) {
|
|
45
|
+
return `b-${createHash("sha256").update(fingerprint).digest("hex").slice(0, 8)}`;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The lifecycle-file layout for ONE daemon whose files sit in `keyDir` — the
|
|
49
|
+
* single place that knows the layout. `getDaemonPaths` (own build),
|
|
50
|
+
* `getLegacyDaemonPaths` (pre-keying migration) and the pool's
|
|
51
|
+
* `drainStaleDaemon` (recovered from a socket path) all resolve through it.
|
|
52
|
+
*/
|
|
53
|
+
export function daemonPathsForKeyDir(keyDir) {
|
|
28
54
|
return {
|
|
29
|
-
storageDir,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
55
|
+
storageDir: keyDir,
|
|
56
|
+
buildDir: keyDir,
|
|
57
|
+
socketPath: join(keyDir, "codegraph-daemon.sock"),
|
|
58
|
+
pidFile: join(keyDir, "codegraph-daemon.pid"),
|
|
59
|
+
portFile: join(keyDir, "codegraph-daemon.port"),
|
|
60
|
+
refsFile: join(keyDir, "codegraph-daemon.refs"),
|
|
61
|
+
lockFile: join(keyDir, "codegraph-daemon.lock"),
|
|
62
|
+
logFile: join(keyDir, "codegraph-daemon.log"),
|
|
36
63
|
};
|
|
37
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* THIS build's lifecycle files (bd tea-rags-mcp-42hno): the five lifecycle
|
|
67
|
+
* files plus the log nest under the per-build key directory, so the spawner,
|
|
68
|
+
* the daemon and every client pool that call THIS function address the same
|
|
69
|
+
* daemon. `storageDir` stays the base so the value can ride the spawn env
|
|
70
|
+
* (`TEA_RAGS_CODEGRAPH_DAEMON_DIR`) without re-keying on the daemon side.
|
|
71
|
+
*/
|
|
72
|
+
export function getDaemonPaths(storageDir) {
|
|
73
|
+
const buildDir = join(storageDir, getBuildKey());
|
|
74
|
+
return { ...daemonPathsForKeyDir(buildDir), storageDir };
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The pre-keying (42hno) layout: lifecycle files directly in the storage dir.
|
|
78
|
+
* The one-time migration in the pool reads a legacy daemon through this view —
|
|
79
|
+
* drain it if alive, then unlink — after which the layout is gone for good.
|
|
80
|
+
*/
|
|
81
|
+
export function getLegacyDaemonPaths(storageDir) {
|
|
82
|
+
return daemonPathsForKeyDir(storageDir);
|
|
83
|
+
}
|
|
38
84
|
/**
|
|
39
85
|
* The daemon log sits next to the socket, which is what lets a client derive it
|
|
40
|
-
* from the socket path alone when it has to name the file in an error.
|
|
86
|
+
* from the socket path alone when it has to name the file in an error. The arg
|
|
87
|
+
* is the directory the lifecycle files sit in (the build-key dir for a keyed
|
|
88
|
+
* daemon).
|
|
41
89
|
*/
|
|
42
|
-
export function getDaemonLogPath(
|
|
43
|
-
return join(
|
|
90
|
+
export function getDaemonLogPath(keyDir) {
|
|
91
|
+
return join(keyDir, "codegraph-daemon.log");
|
|
44
92
|
}
|
|
45
93
|
/**
|
|
46
94
|
* Open the daemon log for the spawner to hand to the child as stdout + stderr.
|
|
@@ -139,6 +187,101 @@ function isPidAlive(pid) {
|
|
|
139
187
|
return false;
|
|
140
188
|
}
|
|
141
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* Signal-0 liveness probe for a recorded daemon pid, with EPERM counted as
|
|
192
|
+
* ALIVE (mirrors the `DaemonLock` probe): the pid is taken by a process this
|
|
193
|
+
* user may not signal — a live daemon is not ours to sweep. Only ESRCH counts
|
|
194
|
+
* as gone.
|
|
195
|
+
*/
|
|
196
|
+
export function isDaemonPidAlive(pid) {
|
|
197
|
+
try {
|
|
198
|
+
process.kill(pid, 0);
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
catch (err) {
|
|
202
|
+
return err.code === "EPERM";
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/** Key-directory shape `getBuildKey` produces — anything else is not ours to sweep. */
|
|
206
|
+
const BUILD_KEY_DIR_PATTERN = /^b-[0-9a-f]{8}$/;
|
|
207
|
+
/**
|
|
208
|
+
* Enumerate the build-key directories under `storageDir` (bd
|
|
209
|
+
* tea-rags-mcp-42hno). A dir that holds no readable pid reports
|
|
210
|
+
* `pid: undefined, alive: false` — the shape a crashed-before-listen spawn
|
|
211
|
+
* leaves, and an orphan to the sweep.
|
|
212
|
+
*/
|
|
213
|
+
export function listDaemonKeyDirs(storageDir) {
|
|
214
|
+
let entries;
|
|
215
|
+
try {
|
|
216
|
+
entries = readdirSync(storageDir, { withFileTypes: true })
|
|
217
|
+
.filter((e) => e.isDirectory() && BUILD_KEY_DIR_PATTERN.test(e.name))
|
|
218
|
+
.map((e) => e.name);
|
|
219
|
+
}
|
|
220
|
+
catch {
|
|
221
|
+
return [];
|
|
222
|
+
}
|
|
223
|
+
return entries.map((name) => {
|
|
224
|
+
const paths = daemonPathsForKeyDir(join(storageDir, name));
|
|
225
|
+
const pid = readDaemonPid(paths);
|
|
226
|
+
return { keyDir: paths.buildDir, paths, pid, alive: pid !== undefined && isDaemonPidAlive(pid) };
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Remove a build-key directory whose daemon is gone: lifecycle files, log and
|
|
231
|
+
* all. Refuses (returns false) when the spawn lock inside it is still held —
|
|
232
|
+
* a concurrent spawner may be mid-flight into that dir, and yanking the lock
|
|
233
|
+
* file out from under it would break the single-flight guard. Acquiring the
|
|
234
|
+
* lock first is what excludes that race; the release's unlink then finds the
|
|
235
|
+
* dir already gone and is swallowed.
|
|
236
|
+
*/
|
|
237
|
+
function removeDeadKeyDir(status) {
|
|
238
|
+
const lock = daemonLock.acquire(status.paths.lockFile);
|
|
239
|
+
if (!lock)
|
|
240
|
+
return false;
|
|
241
|
+
try {
|
|
242
|
+
rmSync(status.keyDir, { recursive: true, force: true });
|
|
243
|
+
return true;
|
|
244
|
+
}
|
|
245
|
+
catch {
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
finally {
|
|
249
|
+
daemonLock.release(lock.fd); // swallows the ENOENT once the dir (and lock file) is gone
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Remove every build-key directory under `storageDir` whose daemon pid is
|
|
254
|
+
* dead or absent (bd tea-rags-mcp-42hno). Run by the spawn path so builds
|
|
255
|
+
* that come and go do not litter key dirs, and by `doctor --restart` as the
|
|
256
|
+
* orphan sweep. Returns the removed directories; a live daemon's dir is never
|
|
257
|
+
* touched, and a dead-pid dir whose spawn lock is held is skipped.
|
|
258
|
+
*/
|
|
259
|
+
export function sweepOrphanedDaemonKeyDirs(storageDir) {
|
|
260
|
+
const swept = [];
|
|
261
|
+
for (const status of listDaemonKeyDirs(storageDir)) {
|
|
262
|
+
if (status.alive)
|
|
263
|
+
continue;
|
|
264
|
+
if (removeDeadKeyDir(status))
|
|
265
|
+
swept.push(status.keyDir);
|
|
266
|
+
}
|
|
267
|
+
return swept;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Unlink the five lifecycle files of ONE daemon (its own key only — the
|
|
271
|
+
* layout makes "only its own" automatic, 42hno). Idempotent: missing-file
|
|
272
|
+
* errors are swallowed. Shared by the daemon's shutdown cleanup and the
|
|
273
|
+
* pool's legacy-layout migration.
|
|
274
|
+
*/
|
|
275
|
+
export function unlinkDaemonFiles(paths) {
|
|
276
|
+
for (const f of [paths.socketPath, paths.pidFile, paths.portFile, paths.refsFile, paths.lockFile]) {
|
|
277
|
+
try {
|
|
278
|
+
unlinkSync(f);
|
|
279
|
+
}
|
|
280
|
+
catch {
|
|
281
|
+
/* ignore */
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
142
285
|
/**
|
|
143
286
|
* Poll the refs file every 5s; once it has stayed at <= 0 for IDLE_SHUTDOWN_MS,
|
|
144
287
|
* clear the interval and invoke onShutdown so the daemon releases the RW DuckDB
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.js","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"lifecycle.js","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAA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AAM,EAAE,CAAC,EAAE,CAAA;KAAE,GAC/E;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAA;KAAE,GACjD;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,EAAE,CAAA;KAAE,GAClD;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,qBAAqB,CAAA;KAAE,GACpD;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED,MAAM,MAAM,cAAc,GACtB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GACzC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAExE,wGAAwG;AACxG,wBAAgB,WAAW,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,GAAG,MAAM,CAEvE;AAED,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAI/E"}
|
|
@@ -16,7 +16,10 @@ export const DAEMON_OPS = [
|
|
|
16
16
|
// Graceful drain+exit requested by a client whose build fingerprint differs
|
|
17
17
|
// from the daemon's (bd tea-rags-mcp-ji56r). Handled by the TRANSPORT layer
|
|
18
18
|
// (daemon/entry.ts) — acked first, then the daemon reuses the idle-watcher
|
|
19
|
-
// drain/exit path — so it never reaches the request dispatcher.
|
|
19
|
+
// drain/exit path — so it never reaches the request dispatcher. A drain that
|
|
20
|
+
// would cut another connection's in-flight write is REFUSED instead with a
|
|
21
|
+
// typed `CodegraphDaemonDrainRefusedError` response (bd tea-rags-mcp-zgcmo);
|
|
22
|
+
// retrying belongs to the draining side.
|
|
20
23
|
"shutdown",
|
|
21
24
|
// Liveness probe (bd tea-rags-mcp-f924y): a client with calls pending sends it
|
|
22
25
|
// when the daemon has gone quiet. Any answer proves the daemon alive — even the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/protocol.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,WAAW;IACX,4EAA4E;IAC5E,4EAA4E;IAC5E,2EAA2E;IAC3E,
|
|
1
|
+
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/protocol.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,WAAW;IACX,4EAA4E;IAC5E,4EAA4E;IAC5E,2EAA2E;IAC3E,6EAA6E;IAC7E,2EAA2E;IAC3E,6EAA6E;IAC7E,yCAAyC;IACzC,UAAU;IACV,+EAA+E;IAC/E,gFAAgF;IAChF,8EAA8E;IAC9E,qDAAqD;IACrD,MAAM;IACN,iBAAiB;IACjB,eAAe;IACf,YAAY;IACZ,YAAY;IACZ,sBAAsB;IACtB,eAAe;IACf,mBAAmB;IACnB,iBAAiB;IACjB,sBAAsB;IACtB,0BAA0B;IAC1B,eAAe;IACf,kBAAkB;IAClB,YAAY;IACZ,4BAA4B;IAC5B,gBAAgB;IAChB,4EAA4E;IAC5E,2EAA2E;IAC3E,yDAAyD;IACzD,wBAAwB;IACxB,mCAAmC;IACnC,8EAA8E;IAC9E,2EAA2E;IAC3E,0BAA0B;IAC1B,2EAA2E;IAC3E,0EAA0E;IAC1E,0BAA0B;IAC1B,UAAU;IACV,aAAa;IACb,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,6BAA6B;IAC7B,gBAAgB;IAChB,sBAAsB;IACtB,mBAAmB;IACnB,kBAAkB;IAClB,kBAAkB;IAClB,qBAAqB;IACrB,SAAS;IACT,aAAa;IACb,yBAAyB;IACzB,gBAAgB;IAChB,wBAAwB;IACxB,uBAAuB;IACvB,qBAAqB;IACrB,oBAAoB;IACpB,YAAY;IACZ,eAAe;IACf,aAAa;IACb,iBAAiB;IACjB,wEAAwE;IACxE,+EAA+E;IAC/E,2EAA2E;IAC3E,yBAAyB;IACzB,2EAA2E;IAC3E,uDAAuD;IACvD,mBAAmB;IACnB,+CAA+C;IAC/C,eAAe;IACf,aAAa;IACb,uBAAuB;IACvB,uBAAuB;CACf,CAAC;AAoDX,wGAAwG;AACxG,MAAM,UAAU,WAAW,CAAC,GAAmC;IAC7D,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;AACpC,CAAC;AAED,0FAA0F;AAC1F,MAAM,UAAU,YAAY,CAAC,MAAc;IACzC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;IAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAC"}
|
|
@@ -66,13 +66,6 @@ export declare class CodegraphDaemonServer {
|
|
|
66
66
|
* inject a trimmed table to stand in for a daemon from an older build.
|
|
67
67
|
*/
|
|
68
68
|
commands?: DaemonOpCommandTable);
|
|
69
|
-
/**
|
|
70
|
-
* Acquire the pooled handle for a WRITE op and notify the memory governor
|
|
71
|
-
* (`onWrite` is a no-op for already-raised collections — one live SET per
|
|
72
|
-
* burst). `finalizeReindex` does NOT route through here: it only unlinks the
|
|
73
|
-
* superseded DB file, so there is no open handle to govern.
|
|
74
|
-
*/
|
|
75
|
-
private acquireForWrite;
|
|
76
69
|
/**
|
|
77
70
|
* `signal` is the requesting connection's, aborted when its socket closes
|
|
78
71
|
* (bd tea-rags-mcp-f924y). The transport always passes one; a caller that
|
|
@@ -86,6 +79,13 @@ export declare class CodegraphDaemonServer {
|
|
|
86
79
|
* and gives the daemon the one point where a write has not started yet.
|
|
87
80
|
*/
|
|
88
81
|
private readonly writeTails;
|
|
82
|
+
/**
|
|
83
|
+
* Whether at least one write is admitted but not yet settled — queued behind
|
|
84
|
+
* an earlier write to its collection or running. THE in-flight-write state:
|
|
85
|
+
* `admitWrite` owns the entries and this only reads them, so the shutdown
|
|
86
|
+
* drain guard (bd tea-rags-mcp-zgcmo) adds no tracking of its own.
|
|
87
|
+
*/
|
|
88
|
+
hasWritesInFlight(): boolean;
|
|
89
89
|
/**
|
|
90
90
|
* Run a write once every earlier write to the collection has settled — and
|
|
91
91
|
* drop it instead, with `CodegraphDaemonRequestAbortedError`, when its
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/server.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/server.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAA4C,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACvG,OAAO,KAAK,EAAY,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE7E;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,qBAAqB;IAK9B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAC1B;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAzB3B,mFAAmF;IACnF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;gBAGhC,IAAI,EAAE,iBAAiB;IACxC;;;;;OAKG;IACc,gBAAgB,GAAE,MAA8B;IACjE;;;;;OAKG;IACc,QAAQ,CAAC,EAAE,oBAAoB,YAAA;IAChD;;;;;OAKG;IACc,QAAQ,GAAE,oBAAyC;IAKtE;;;;OAIG;IACG,MAAM,CAAC,GAAG,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC;IAU/E;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoD;IAE/E;;;;;OAKG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;;;;OAMG;YACW,UAAU;YAuBV,QAAQ;CAmCvB"}
|
|
@@ -54,17 +54,6 @@ export class CodegraphDaemonServer {
|
|
|
54
54
|
this.commands = commands;
|
|
55
55
|
this.supportedOps = Object.keys(commands);
|
|
56
56
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Acquire the pooled handle for a WRITE op and notify the memory governor
|
|
59
|
-
* (`onWrite` is a no-op for already-raised collections — one live SET per
|
|
60
|
-
* burst). `finalizeReindex` does NOT route through here: it only unlinks the
|
|
61
|
-
* superseded DB file, so there is no open handle to govern.
|
|
62
|
-
*/
|
|
63
|
-
async acquireForWrite(collection) {
|
|
64
|
-
const handle = await this.pool.acquire(collection);
|
|
65
|
-
await this.governor?.onWrite(collection, handle.graphDb);
|
|
66
|
-
return handle;
|
|
67
|
-
}
|
|
68
57
|
/**
|
|
69
58
|
* `signal` is the requesting connection's, aborted when its socket closes
|
|
70
59
|
* (bd tea-rags-mcp-f924y). The transport always passes one; a caller that
|
|
@@ -87,6 +76,15 @@ export class CodegraphDaemonServer {
|
|
|
87
76
|
* and gives the daemon the one point where a write has not started yet.
|
|
88
77
|
*/
|
|
89
78
|
writeTails = new Map();
|
|
79
|
+
/**
|
|
80
|
+
* Whether at least one write is admitted but not yet settled — queued behind
|
|
81
|
+
* an earlier write to its collection or running. THE in-flight-write state:
|
|
82
|
+
* `admitWrite` owns the entries and this only reads them, so the shutdown
|
|
83
|
+
* drain guard (bd tea-rags-mcp-zgcmo) adds no tracking of its own.
|
|
84
|
+
*/
|
|
85
|
+
hasWritesInFlight() {
|
|
86
|
+
return this.writeTails.size > 0;
|
|
87
|
+
}
|
|
90
88
|
/**
|
|
91
89
|
* Run a write once every earlier write to the collection has settled — and
|
|
92
90
|
* drop it instead, with `CodegraphDaemonRequestAbortedError`, when its
|
|
@@ -131,13 +129,17 @@ export class CodegraphDaemonServer {
|
|
|
131
129
|
// The client held a PhysicalCollectionName; the wire erased the brand.
|
|
132
130
|
const collection = physicalCollectionNameFromDaemonRequest(p.collection);
|
|
133
131
|
if (command.access === "write") {
|
|
134
|
-
return this.admitWrite(collection, req.op, signal, async () => {
|
|
135
|
-
|
|
132
|
+
return this.admitWrite(collection, req.op, signal, async () => this.pool.runCollectionOp(collection, async ({ graphDb }) => {
|
|
133
|
+
// The FIRST write of a burst raises memory_limit to the governor
|
|
134
|
+
// ceiling (`onWrite` is a no-op for already-raised collections — one
|
|
135
|
+
// live SET per burst). `finalizeReindex` does NOT route through here:
|
|
136
|
+
// it only unlinks the superseded DB file, so there is no open handle
|
|
137
|
+
// to govern.
|
|
138
|
+
await this.governor?.onWrite(collection, graphDb);
|
|
136
139
|
return command.run(graphDb, p, signal);
|
|
137
|
-
});
|
|
140
|
+
}));
|
|
138
141
|
}
|
|
139
|
-
|
|
140
|
-
return command.run(graphDb, p, signal);
|
|
142
|
+
return this.pool.runCollectionOp(collection, async ({ graphDb }) => command.run(graphDb, p, signal));
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
//# sourceMappingURL=server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uCAAuC,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,kBAAkB,EAAmD,MAAM,kBAAkB,CAAC;AAGvG;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,qBAAqB;IAKb;IAOA;IAOA;IAOA;IAzBnB,mFAAmF;IAClE,YAAY,CAAsB;IAEnD,YACmB,IAAuB;IACxC;;;;;OAKG;IACc,mBAA2B,mBAAmB,EAAE;IACjE;;;;;OAKG;IACc,QAA+B;IAChD;;;;;OAKG;IACc,WAAiC,kBAAkB;QArBnD,SAAI,GAAJ,IAAI,CAAmB;QAOvB,qBAAgB,GAAhB,gBAAgB,CAAgC;QAOhD,aAAQ,GAAR,QAAQ,CAAuB;QAO/B,aAAQ,GAAR,QAAQ,CAA2C;QAEpE,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAe,CAAC;IAC1D,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../../src/core/adapters/duckdb/daemon/server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uCAAuC,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,kBAAkB,E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