@flyingrobots/graft 0.7.0 → 0.8.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/CHANGELOG.md +153 -0
- package/README.md +33 -17
- package/bin/graft.js +26 -26
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -1
- package/dist/cli/cli-error.d.ts.map +1 -1
- package/dist/cli/cli-error.js +22 -3
- package/dist/cli/cli-error.js.map +1 -1
- package/dist/cli/command-parser.d.ts.map +1 -1
- package/dist/cli/command-parser.js +62 -6
- package/dist/cli/command-parser.js.map +1 -1
- package/dist/cli/dead-symbols-render.d.ts +2 -0
- package/dist/cli/dead-symbols-render.d.ts.map +1 -0
- package/dist/cli/dead-symbols-render.js +23 -0
- package/dist/cli/dead-symbols-render.js.map +1 -0
- package/dist/cli/doctor-render.d.ts +2 -0
- package/dist/cli/doctor-render.d.ts.map +1 -0
- package/dist/cli/doctor-render.js +80 -0
- package/dist/cli/doctor-render.js.map +1 -0
- package/dist/cli/entrypoint.d.ts +1 -0
- package/dist/cli/entrypoint.d.ts.map +1 -1
- package/dist/cli/entrypoint.js +1 -0
- package/dist/cli/entrypoint.js.map +1 -1
- package/dist/cli/git-graft-enhance-model.d.ts +33 -3
- package/dist/cli/git-graft-enhance-model.d.ts.map +1 -1
- package/dist/cli/git-graft-enhance-model.js +38 -0
- package/dist/cli/git-graft-enhance-model.js.map +1 -1
- package/dist/cli/git-graft-enhance-render.d.ts.map +1 -1
- package/dist/cli/git-graft-enhance-render.js +13 -0
- package/dist/cli/git-graft-enhance-render.js.map +1 -1
- package/dist/cli/git-graft-enhance.d.ts.map +1 -1
- package/dist/cli/git-graft-enhance.js +44 -1
- package/dist/cli/git-graft-enhance.js.map +1 -1
- package/dist/cli/index-cmd.d.ts +1 -0
- package/dist/cli/index-cmd.d.ts.map +1 -1
- package/dist/cli/index-cmd.js +3 -0
- package/dist/cli/index-cmd.js.map +1 -1
- package/dist/cli/init-client-config.d.ts.map +1 -1
- package/dist/cli/init-client-config.js +40 -4
- package/dist/cli/init-client-config.js.map +1 -1
- package/dist/cli/init-model.js +2 -2
- package/dist/cli/init-model.js.map +1 -1
- package/dist/cli/json-document.d.ts +1 -0
- package/dist/cli/json-document.d.ts.map +1 -1
- package/dist/cli/json-document.js +3 -0
- package/dist/cli/json-document.js.map +1 -1
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +24 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/peer-command.d.ts.map +1 -1
- package/dist/cli/peer-command.js +25 -0
- package/dist/cli/peer-command.js.map +1 -1
- package/dist/cli/review-cooldown.d.ts +15 -0
- package/dist/cli/review-cooldown.d.ts.map +1 -0
- package/dist/cli/review-cooldown.js +136 -0
- package/dist/cli/review-cooldown.js.map +1 -0
- package/dist/cli/structural-blame-render.d.ts +2 -0
- package/dist/cli/structural-blame-render.d.ts.map +1 -0
- package/dist/cli/structural-blame-render.js +39 -0
- package/dist/cli/structural-blame-render.js.map +1 -0
- package/dist/cli/structural-review-render.d.ts +2 -0
- package/dist/cli/structural-review-render.d.ts.map +1 -0
- package/dist/cli/structural-review-render.js +56 -0
- package/dist/cli/structural-review-render.js.map +1 -0
- package/dist/cli/structural-test-coverage-render.d.ts +2 -0
- package/dist/cli/structural-test-coverage-render.d.ts.map +1 -0
- package/dist/cli/structural-test-coverage-render.js +46 -0
- package/dist/cli/structural-test-coverage-render.js.map +1 -0
- package/dist/contracts/capabilities.d.ts +9 -6
- package/dist/contracts/capabilities.d.ts.map +1 -1
- package/dist/contracts/capabilities.js +40 -1
- package/dist/contracts/capabilities.js.map +1 -1
- package/dist/contracts/causal-ontology.d.ts +17 -17
- package/dist/contracts/output-schema-cli.d.ts +103 -41
- package/dist/contracts/output-schema-cli.d.ts.map +1 -1
- package/dist/contracts/output-schema-cli.js +29 -0
- package/dist/contracts/output-schema-cli.js.map +1 -1
- package/dist/contracts/output-schema-fragments.d.ts +76 -76
- package/dist/contracts/output-schema-mcp.d.ts +87 -62
- package/dist/contracts/output-schema-mcp.d.ts.map +1 -1
- package/dist/contracts/output-schema-mcp.js +43 -21
- package/dist/contracts/output-schema-mcp.js.map +1 -1
- package/dist/contracts/output-schema-meta.d.ts +2 -2
- package/dist/contracts/output-schema-meta.d.ts.map +1 -1
- package/dist/contracts/output-schemas.d.ts +7 -7
- package/dist/contracts/output-schemas.d.ts.map +1 -1
- package/dist/contracts/output-schemas.js +69 -1
- package/dist/contracts/output-schemas.js.map +1 -1
- package/dist/git/version-guard.d.ts +17 -0
- package/dist/git/version-guard.d.ts.map +1 -0
- package/dist/git/version-guard.js +51 -0
- package/dist/git/version-guard.js.map +1 -0
- package/dist/hooks/posttooluse-read.js +3 -3
- package/dist/hooks/posttooluse-read.js.map +1 -1
- package/dist/hooks/pretooluse-read.js +1 -1
- package/dist/hooks/pretooluse-read.js.map +1 -1
- package/dist/mcp/burden.d.ts.map +1 -1
- package/dist/mcp/burden.js +2 -0
- package/dist/mcp/burden.js.map +1 -1
- package/dist/mcp/daemon-server.d.ts.map +1 -1
- package/dist/mcp/daemon-server.js +2 -0
- package/dist/mcp/daemon-server.js.map +1 -1
- package/dist/mcp/daemon-worker-child-pool.d.ts +2 -0
- package/dist/mcp/daemon-worker-child-pool.d.ts.map +1 -1
- package/dist/mcp/daemon-worker-child-pool.js +10 -3
- package/dist/mcp/daemon-worker-child-pool.js.map +1 -1
- package/dist/mcp/daemon-worker-pool.d.ts +1 -1
- package/dist/mcp/daemon-worker-pool.d.ts.map +1 -1
- package/dist/mcp/daemon-worker-pool.js +1 -1
- package/dist/mcp/daemon-worker-pool.js.map +1 -1
- package/dist/mcp/persisted-local-history-graph.d.ts.map +1 -1
- package/dist/mcp/persisted-local-history-graph.js +2 -1
- package/dist/mcp/persisted-local-history-graph.js.map +1 -1
- package/dist/mcp/persisted-local-history.d.ts +5 -5
- package/dist/mcp/repo-tool-job.d.ts.map +1 -1
- package/dist/mcp/repo-tool-job.js +2 -0
- package/dist/mcp/repo-tool-job.js.map +1 -1
- package/dist/mcp/server-invocation.d.ts.map +1 -1
- package/dist/mcp/server-invocation.js +206 -147
- package/dist/mcp/server-invocation.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +184 -116
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/stdio-server.d.ts.map +1 -1
- package/dist/mcp/stdio-server.js +2 -0
- package/dist/mcp/stdio-server.js.map +1 -1
- package/dist/mcp/tool-registry.d.ts.map +1 -1
- package/dist/mcp/tool-registry.js +4 -0
- package/dist/mcp/tool-registry.js.map +1 -1
- package/dist/mcp/tools/changed-since.d.ts.map +1 -1
- package/dist/mcp/tools/changed-since.js +10 -3
- package/dist/mcp/tools/changed-since.js.map +1 -1
- package/dist/mcp/tools/dead-symbols.d.ts +3 -0
- package/dist/mcp/tools/dead-symbols.d.ts.map +1 -0
- package/dist/mcp/tools/dead-symbols.js +33 -0
- package/dist/mcp/tools/dead-symbols.js.map +1 -0
- package/dist/mcp/tools/map.d.ts.map +1 -1
- package/dist/mcp/tools/map.js +2 -0
- package/dist/mcp/tools/map.js.map +1 -1
- package/dist/mcp/tools/precision-warp.d.ts.map +1 -1
- package/dist/mcp/tools/precision-warp.js +2 -6
- package/dist/mcp/tools/precision-warp.js.map +1 -1
- package/dist/mcp/tools/refactor-difficulty.d.ts.map +1 -1
- package/dist/mcp/tools/refactor-difficulty.js +2 -0
- package/dist/mcp/tools/refactor-difficulty.js.map +1 -1
- package/dist/mcp/tools/safe-read.d.ts.map +1 -1
- package/dist/mcp/tools/safe-read.js +10 -105
- package/dist/mcp/tools/safe-read.js.map +1 -1
- package/dist/mcp/tools/structural-test-coverage.d.ts +3 -0
- package/dist/mcp/tools/structural-test-coverage.d.ts.map +1 -0
- package/dist/mcp/tools/structural-test-coverage.js +35 -0
- package/dist/mcp/tools/structural-test-coverage.js.map +1 -0
- package/dist/operations/cached-file.d.ts +6 -2
- package/dist/operations/cached-file.d.ts.map +1 -1
- package/dist/operations/cached-file.js +30 -6
- package/dist/operations/cached-file.js.map +1 -1
- package/dist/operations/export-surface-diff.d.ts.map +1 -1
- package/dist/operations/export-surface-diff.js +2 -0
- package/dist/operations/export-surface-diff.js.map +1 -1
- package/dist/operations/file-outline.js +2 -2
- package/dist/operations/file-outline.js.map +1 -1
- package/dist/operations/graft-diff.d.ts.map +1 -1
- package/dist/operations/graft-diff.js +2 -0
- package/dist/operations/graft-diff.js.map +1 -1
- package/dist/operations/projection-safety.d.ts.map +1 -1
- package/dist/operations/projection-safety.js +2 -0
- package/dist/operations/projection-safety.js.map +1 -1
- package/dist/operations/repo-workspace.d.ts.map +1 -1
- package/dist/operations/repo-workspace.js +26 -8
- package/dist/operations/repo-workspace.js.map +1 -1
- package/dist/operations/review-cooldown-status.d.ts +27 -0
- package/dist/operations/review-cooldown-status.d.ts.map +1 -0
- package/dist/operations/review-cooldown-status.js +115 -0
- package/dist/operations/review-cooldown-status.js.map +1 -0
- package/dist/operations/safe-read.js +2 -2
- package/dist/operations/safe-read.js.map +1 -1
- package/dist/operations/sludge-detector.d.ts.map +1 -1
- package/dist/operations/sludge-detector.js +2 -1
- package/dist/operations/sludge-detector.js.map +1 -1
- package/dist/operations/structural-review.js +8 -8
- package/dist/operations/structural-review.js.map +1 -1
- package/dist/operations/structural-test-coverage-map.d.ts +44 -0
- package/dist/operations/structural-test-coverage-map.d.ts.map +1 -0
- package/dist/operations/structural-test-coverage-map.js +331 -0
- package/dist/operations/structural-test-coverage-map.js.map +1 -0
- package/dist/operations/structured-buffer-compare.d.ts.map +1 -1
- package/dist/operations/structured-buffer-compare.js +4 -1
- package/dist/operations/structured-buffer-compare.js.map +1 -1
- package/dist/operations/structured-buffer-model.d.ts +15 -13
- package/dist/operations/structured-buffer-model.d.ts.map +1 -1
- package/dist/operations/structured-buffer-model.js +24 -5
- package/dist/operations/structured-buffer-model.js.map +1 -1
- package/dist/operations/structured-buffer-query.d.ts.map +1 -1
- package/dist/operations/structured-buffer-query.js +21 -12
- package/dist/operations/structured-buffer-query.js.map +1 -1
- package/dist/parser/extractors/common.d.ts +16 -0
- package/dist/parser/extractors/common.d.ts.map +1 -0
- package/dist/parser/extractors/common.js +23 -0
- package/dist/parser/extractors/common.js.map +1 -0
- package/dist/parser/extractors/go.d.ts +18 -0
- package/dist/parser/extractors/go.d.ts.map +1 -0
- package/dist/parser/extractors/go.js +200 -0
- package/dist/parser/extractors/go.js.map +1 -0
- package/dist/parser/extractors/graphql.d.ts +26 -0
- package/dist/parser/extractors/graphql.d.ts.map +1 -0
- package/dist/parser/extractors/graphql.js +239 -0
- package/dist/parser/extractors/graphql.js.map +1 -0
- package/dist/parser/extractors/index.d.ts +4 -0
- package/dist/parser/extractors/index.d.ts.map +1 -0
- package/dist/parser/extractors/index.js +26 -0
- package/dist/parser/extractors/index.js.map +1 -0
- package/dist/parser/extractors/json.d.ts +10 -0
- package/dist/parser/extractors/json.d.ts.map +1 -0
- package/dist/parser/extractors/json.js +75 -0
- package/dist/parser/extractors/json.js.map +1 -0
- package/dist/parser/extractors/python.d.ts +16 -0
- package/dist/parser/extractors/python.d.ts.map +1 -0
- package/dist/parser/extractors/python.js +145 -0
- package/dist/parser/extractors/python.js.map +1 -0
- package/dist/parser/extractors/rust.d.ts +12 -0
- package/dist/parser/extractors/rust.d.ts.map +1 -0
- package/dist/parser/extractors/rust.js +122 -0
- package/dist/parser/extractors/rust.js.map +1 -0
- package/dist/parser/extractors/toml.d.ts +10 -0
- package/dist/parser/extractors/toml.d.ts.map +1 -0
- package/dist/parser/extractors/toml.js +74 -0
- package/dist/parser/extractors/toml.js.map +1 -0
- package/dist/parser/extractors/typescript.d.ts +13 -0
- package/dist/parser/extractors/typescript.d.ts.map +1 -0
- package/dist/parser/extractors/typescript.js +179 -0
- package/dist/parser/extractors/typescript.js.map +1 -0
- package/dist/parser/extractors/yaml.d.ts +13 -0
- package/dist/parser/extractors/yaml.d.ts.map +1 -0
- package/dist/parser/extractors/yaml.js +93 -0
- package/dist/parser/extractors/yaml.js.map +1 -0
- package/dist/parser/lang.d.ts +2 -2
- package/dist/parser/lang.d.ts.map +1 -1
- package/dist/parser/lang.js +19 -1
- package/dist/parser/lang.js.map +1 -1
- package/dist/parser/outline.d.ts +4 -0
- package/dist/parser/outline.d.ts.map +1 -1
- package/dist/parser/outline.js +32 -221
- package/dist/parser/outline.js.map +1 -1
- package/dist/parser/runtime.d.ts +7 -0
- package/dist/parser/runtime.d.ts.map +1 -1
- package/dist/parser/runtime.js +99 -10
- package/dist/parser/runtime.js.map +1 -1
- package/dist/parser/types.d.ts +1 -1
- package/dist/parser/types.d.ts.map +1 -1
- package/dist/parser/types.js.map +1 -1
- package/dist/ports/provenance-timeline.d.ts +10 -0
- package/dist/ports/provenance-timeline.d.ts.map +1 -0
- package/dist/ports/provenance-timeline.js +17 -0
- package/dist/ports/provenance-timeline.js.map +1 -0
- package/dist/ports/semantic-enrichment.d.ts +47 -0
- package/dist/ports/semantic-enrichment.d.ts.map +1 -0
- package/dist/ports/semantic-enrichment.js +2 -0
- package/dist/ports/semantic-enrichment.js.map +1 -0
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +3 -1
- package/dist/version.js.map +1 -1
- package/dist/warp/ast-import-resolver.d.ts.map +1 -1
- package/dist/warp/ast-import-resolver.js +2 -1
- package/dist/warp/ast-import-resolver.js.map +1 -1
- package/dist/warp/dead-symbols.d.ts.map +1 -1
- package/dist/warp/dead-symbols.js +4 -7
- package/dist/warp/dead-symbols.js.map +1 -1
- package/dist/warp/index-head.d.ts +4 -0
- package/dist/warp/index-head.d.ts.map +1 -1
- package/dist/warp/index-head.js +255 -22
- package/dist/warp/index-head.js.map +1 -1
- package/dist/warp/observers.d.ts.map +1 -1
- package/dist/warp/observers.js +3 -2
- package/dist/warp/observers.js.map +1 -1
- package/dist/warp/refactor-difficulty.d.ts.map +1 -1
- package/dist/warp/refactor-difficulty.js +4 -9
- package/dist/warp/refactor-difficulty.js.map +1 -1
- package/dist/warp/references.d.ts.map +1 -1
- package/dist/warp/references.js +2 -1
- package/dist/warp/references.js.map +1 -1
- package/dist/warp/semantic-enrichment.d.ts +14 -0
- package/dist/warp/semantic-enrichment.d.ts.map +1 -0
- package/dist/warp/semantic-enrichment.js +55 -0
- package/dist/warp/semantic-enrichment.js.map +1 -0
- package/dist/warp/structural-queries.d.ts.map +1 -1
- package/dist/warp/structural-queries.js +7 -14
- package/dist/warp/structural-queries.js.map +1 -1
- package/dist/warp/sym-id-codec.d.ts +14 -0
- package/dist/warp/sym-id-codec.d.ts.map +1 -0
- package/dist/warp/sym-id-codec.js +47 -0
- package/dist/warp/sym-id-codec.js.map +1 -0
- package/dist/warp/symbol-timeline.d.ts.map +1 -1
- package/dist/warp/symbol-timeline.js +6 -14
- package/dist/warp/symbol-timeline.js.map +1 -1
- package/dist/warp/warp-structural-churn.d.ts.map +1 -1
- package/dist/warp/warp-structural-churn.js +6 -10
- package/dist/warp/warp-structural-churn.js.map +1 -1
- package/dist/warp/warp-structural-log.d.ts.map +1 -1
- package/dist/warp/warp-structural-log.js +8 -10
- package/dist/warp/warp-structural-log.js.map +1 -1
- package/docs/CLI.md +63 -5
- package/docs/MCP.md +2 -1
- package/docs/SETUP.md +11 -7
- package/package.json +12 -4
- package/src/adapters/canonical-json.ts +0 -56
- package/src/adapters/json-text-decoder.ts +0 -11
- package/src/adapters/node-fs.ts +0 -43
- package/src/adapters/node-git.ts +0 -47
- package/src/adapters/node-paths.ts +0 -35
- package/src/adapters/node-process-runner.ts +0 -27
- package/src/adapters/repo-paths.ts +0 -63
- package/src/adapters/rotating-ndjson-log.ts +0 -66
- package/src/api/index.ts +0 -107
- package/src/api/repo-local-graft.ts +0 -21
- package/src/api/repo-workspace.ts +0 -34
- package/src/api/tool-bridge.ts +0 -22
- package/src/cli/activity-render.ts +0 -112
- package/src/cli/cli-error.ts +0 -192
- package/src/cli/command-parser.ts +0 -484
- package/src/cli/daemon-status-model.ts +0 -238
- package/src/cli/daemon-status-render.ts +0 -102
- package/src/cli/daemon-status.ts +0 -100
- package/src/cli/entrypoint.ts +0 -18
- package/src/cli/git-graft-enhance-model.ts +0 -131
- package/src/cli/git-graft-enhance-render.ts +0 -33
- package/src/cli/git-graft-enhance.ts +0 -54
- package/src/cli/index-cmd.ts +0 -90
- package/src/cli/index-model.ts +0 -75
- package/src/cli/init-bootstrap.ts +0 -47
- package/src/cli/init-client-config.ts +0 -428
- package/src/cli/init-model.ts +0 -284
- package/src/cli/init-render.ts +0 -54
- package/src/cli/init-target-hooks.ts +0 -93
- package/src/cli/init.ts +0 -124
- package/src/cli/json-document.ts +0 -155
- package/src/cli/local-history-dag-model.ts +0 -437
- package/src/cli/local-history-dag-render.ts +0 -133
- package/src/cli/local-history-dag.ts +0 -103
- package/src/cli/main.ts +0 -197
- package/src/cli/migrate-local-history.ts +0 -119
- package/src/cli/peer-command.ts +0 -60
- package/src/contracts/capabilities.ts +0 -540
- package/src/contracts/causal-ontology.ts +0 -627
- package/src/contracts/causal-surface-next-action.ts +0 -18
- package/src/contracts/json-object.ts +0 -18
- package/src/contracts/mcp-runtime.ts +0 -16
- package/src/contracts/output-schema-cli.ts +0 -103
- package/src/contracts/output-schema-fragments.ts +0 -881
- package/src/contracts/output-schema-mcp.ts +0 -501
- package/src/contracts/output-schema-meta.ts +0 -119
- package/src/contracts/output-schemas.ts +0 -1524
- package/src/git/diff.ts +0 -161
- package/src/git/target-git-hook-bootstrap.ts +0 -56
- package/src/guards/stream-boundary.ts +0 -110
- package/src/hooks/posttooluse-read.ts +0 -54
- package/src/hooks/pretooluse-read.ts +0 -52
- package/src/hooks/read-governor.ts +0 -95
- package/src/hooks/read-messages.ts +0 -53
- package/src/hooks/shared.ts +0 -168
- package/src/index.ts +0 -1
- package/src/mcp/burden.ts +0 -132
- package/src/mcp/cache.ts +0 -7
- package/src/mcp/cached-file.ts +0 -1
- package/src/mcp/context.ts +0 -150
- package/src/mcp/control-plane/authz-storage.ts +0 -129
- package/src/mcp/control-plane/session-registry.ts +0 -115
- package/src/mcp/control-plane/status-projection.ts +0 -76
- package/src/mcp/control-plane/types.ts +0 -144
- package/src/mcp/daemon-bootstrap.ts +0 -100
- package/src/mcp/daemon-control-plane.ts +0 -310
- package/src/mcp/daemon-job-scheduler.ts +0 -279
- package/src/mcp/daemon-repos.ts +0 -99
- package/src/mcp/daemon-server.ts +0 -172
- package/src/mcp/daemon-session-host.ts +0 -234
- package/src/mcp/daemon-stdio-bridge.ts +0 -262
- package/src/mcp/daemon-worker-child-pool.ts +0 -213
- package/src/mcp/daemon-worker-inline-pool.ts +0 -46
- package/src/mcp/daemon-worker-pool.ts +0 -7
- package/src/mcp/daemon-worker-process.ts +0 -52
- package/src/mcp/daemon-worker-types.ts +0 -66
- package/src/mcp/metrics.ts +0 -176
- package/src/mcp/monitor-health.ts +0 -83
- package/src/mcp/monitor-persistence.ts +0 -54
- package/src/mcp/monitor-tick-job.ts +0 -153
- package/src/mcp/monitor-types.ts +0 -103
- package/src/mcp/persisted-local-history-graph.ts +0 -592
- package/src/mcp/persisted-local-history-policy.ts +0 -501
- package/src/mcp/persisted-local-history-views.ts +0 -250
- package/src/mcp/persisted-local-history.ts +0 -1621
- package/src/mcp/persistent-monitor-runtime.ts +0 -482
- package/src/mcp/policy.ts +0 -75
- package/src/mcp/receipt.ts +0 -201
- package/src/mcp/repo-concurrency.ts +0 -392
- package/src/mcp/repo-overview/filter.ts +0 -44
- package/src/mcp/repo-overview/types.ts +0 -63
- package/src/mcp/repo-overview/view-projection.ts +0 -90
- package/src/mcp/repo-state-git.ts +0 -247
- package/src/mcp/repo-state-observation.ts +0 -203
- package/src/mcp/repo-state-transition.ts +0 -151
- package/src/mcp/repo-state-types.ts +0 -107
- package/src/mcp/repo-state.ts +0 -146
- package/src/mcp/repo-tool-job.ts +0 -102
- package/src/mcp/repo-tool-worker-context.ts +0 -215
- package/src/mcp/repo-workspace.ts +0 -21
- package/src/mcp/run-capture-config.ts +0 -33
- package/src/mcp/runtime-causal-context.ts +0 -72
- package/src/mcp/runtime-observability.ts +0 -217
- package/src/mcp/runtime-staged-target.ts +0 -161
- package/src/mcp/runtime-workspace-overlay.ts +0 -255
- package/src/mcp/secret-scrub.ts +0 -89
- package/src/mcp/semantic-transition-guidance.ts +0 -60
- package/src/mcp/semantic-transition-summary.ts +0 -130
- package/src/mcp/server-context.ts +0 -236
- package/src/mcp/server-invocation.ts +0 -388
- package/src/mcp/server-tool-access.ts +0 -148
- package/src/mcp/server.ts +0 -270
- package/src/mcp/stdio-server.ts +0 -26
- package/src/mcp/stdio.ts +0 -3
- package/src/mcp/tool-registry.ts +0 -98
- package/src/mcp/tools/activity-view.ts +0 -325
- package/src/mcp/tools/budget.ts +0 -23
- package/src/mcp/tools/causal-attach.ts +0 -67
- package/src/mcp/tools/causal-status.ts +0 -58
- package/src/mcp/tools/changed-since.ts +0 -71
- package/src/mcp/tools/code-find.ts +0 -192
- package/src/mcp/tools/code-refs.ts +0 -470
- package/src/mcp/tools/code-show.ts +0 -289
- package/src/mcp/tools/daemon-monitors.ts +0 -14
- package/src/mcp/tools/daemon-repos.ts +0 -22
- package/src/mcp/tools/daemon-sessions.ts +0 -14
- package/src/mcp/tools/daemon-status.ts +0 -12
- package/src/mcp/tools/diagnostic-models.ts +0 -97
- package/src/mcp/tools/doctor.ts +0 -83
- package/src/mcp/tools/explain.ts +0 -84
- package/src/mcp/tools/export-surface-diff.ts +0 -26
- package/src/mcp/tools/file-outline.ts +0 -67
- package/src/mcp/tools/git-files.ts +0 -73
- package/src/mcp/tools/graft-diff.ts +0 -35
- package/src/mcp/tools/graft-edit.ts +0 -276
- package/src/mcp/tools/knowledge-map.ts +0 -34
- package/src/mcp/tools/map-collector.ts +0 -338
- package/src/mcp/tools/map.ts +0 -185
- package/src/mcp/tools/monitor-nudge.ts +0 -19
- package/src/mcp/tools/monitor-pause.ts +0 -18
- package/src/mcp/tools/monitor-resume.ts +0 -18
- package/src/mcp/tools/monitor-start.ts +0 -20
- package/src/mcp/tools/monitor-stop.ts +0 -18
- package/src/mcp/tools/precision-live.ts +0 -158
- package/src/mcp/tools/precision-match.ts +0 -54
- package/src/mcp/tools/precision-paths.ts +0 -59
- package/src/mcp/tools/precision-query.ts +0 -127
- package/src/mcp/tools/precision-show.ts +0 -86
- package/src/mcp/tools/precision-visibility.ts +0 -44
- package/src/mcp/tools/precision-warp.ts +0 -101
- package/src/mcp/tools/precision.ts +0 -21
- package/src/mcp/tools/read-range.ts +0 -28
- package/src/mcp/tools/refactor-difficulty.ts +0 -42
- package/src/mcp/tools/run-capture.ts +0 -149
- package/src/mcp/tools/safe-read.ts +0 -148
- package/src/mcp/tools/since.ts +0 -53
- package/src/mcp/tools/state.ts +0 -39
- package/src/mcp/tools/stats.ts +0 -24
- package/src/mcp/tools/structural-blame.ts +0 -55
- package/src/mcp/tools/structural-churn.ts +0 -28
- package/src/mcp/tools/structural-log.ts +0 -41
- package/src/mcp/tools/structural-review.ts +0 -63
- package/src/mcp/tools/workspace-authorizations.ts +0 -14
- package/src/mcp/tools/workspace-authorize.ts +0 -20
- package/src/mcp/tools/workspace-bind.ts +0 -25
- package/src/mcp/tools/workspace-rebind.ts +0 -25
- package/src/mcp/tools/workspace-revoke.ts +0 -18
- package/src/mcp/tools/workspace-status.ts +0 -12
- package/src/mcp/warp-pool.ts +0 -36
- package/src/mcp/workspace-read-observation-model.ts +0 -48
- package/src/mcp/workspace-read-observation.ts +0 -103
- package/src/mcp/workspace-router-capability.ts +0 -32
- package/src/mcp/workspace-router-history.ts +0 -233
- package/src/mcp/workspace-router-model.ts +0 -131
- package/src/mcp/workspace-router-resolution.ts +0 -71
- package/src/mcp/workspace-router-runtime.ts +0 -246
- package/src/mcp/workspace-router.ts +0 -688
- package/src/metrics/logger.ts +0 -40
- package/src/metrics/types.ts +0 -40
- package/src/operations/adaptive-projection.ts +0 -54
- package/src/operations/agent-handoff.ts +0 -59
- package/src/operations/cached-file.ts +0 -40
- package/src/operations/capture-range.ts +0 -64
- package/src/operations/conversation-primer.ts +0 -82
- package/src/operations/cross-session-resume.ts +0 -104
- package/src/operations/deterministic-replay.ts +0 -143
- package/src/operations/diff-identity.ts +0 -127
- package/src/operations/export-surface-diff.ts +0 -355
- package/src/operations/file-outline.ts +0 -48
- package/src/operations/footprint-parallelism.ts +0 -98
- package/src/operations/graft-diff.ts +0 -169
- package/src/operations/horizon-of-readability.ts +0 -60
- package/src/operations/import-reference-impact.ts +0 -143
- package/src/operations/knowledge-map.ts +0 -96
- package/src/operations/observation-cache.ts +0 -165
- package/src/operations/projection-safety.ts +0 -111
- package/src/operations/read-range.ts +0 -64
- package/src/operations/repo-workspace.ts +0 -339
- package/src/operations/result-dto.ts +0 -23
- package/src/operations/safe-read.ts +0 -118
- package/src/operations/semantic-drift.ts +0 -70
- package/src/operations/session-filtration.ts +0 -76
- package/src/operations/session-replay.ts +0 -73
- package/src/operations/sludge-detector.ts +0 -356
- package/src/operations/state.ts +0 -66
- package/src/operations/structural-blame.ts +0 -197
- package/src/operations/structural-review.ts +0 -317
- package/src/operations/structured-buffer-compare.ts +0 -429
- package/src/operations/structured-buffer-model.ts +0 -456
- package/src/operations/structured-buffer-query.ts +0 -794
- package/src/operations/structured-buffer.ts +0 -181
- package/src/operations/teaching-hints.ts +0 -52
- package/src/parser/diff.ts +0 -320
- package/src/parser/lang.ts +0 -71
- package/src/parser/markdown.ts +0 -197
- package/src/parser/outline.ts +0 -316
- package/src/parser/runtime.ts +0 -71
- package/src/parser/types.ts +0 -75
- package/src/policy/evaluate.ts +0 -178
- package/src/policy/graftignore.ts +0 -6
- package/src/policy/types.ts +0 -87
- package/src/ports/codec.ts +0 -13
- package/src/ports/filesystem.ts +0 -18
- package/src/ports/git.ts +0 -16
- package/src/ports/guards.ts +0 -68
- package/src/ports/paths.ts +0 -22
- package/src/ports/process-runner.ts +0 -22
- package/src/release/security-gate.ts +0 -102
- package/src/session/tracker.ts +0 -145
- package/src/session/types.ts +0 -23
- package/src/version.ts +0 -3
- package/src/warp/ast-emitter.ts +0 -133
- package/src/warp/ast-import-resolver.ts +0 -333
- package/src/warp/commit-meta.ts +0 -19
- package/src/warp/context.ts +0 -48
- package/src/warp/dead-symbols.ts +0 -174
- package/src/warp/drift-sentinel.ts +0 -101
- package/src/warp/index-head.ts +0 -348
- package/src/warp/observers.ts +0 -101
- package/src/warp/open.ts +0 -67
- package/src/warp/outline-diff-trailer.ts +0 -100
- package/src/warp/plumbing.d.ts +0 -24
- package/src/warp/refactor-difficulty.ts +0 -257
- package/src/warp/references.ts +0 -77
- package/src/warp/stale-docs.ts +0 -210
- package/src/warp/structural-drift-detection.ts +0 -97
- package/src/warp/structural-queries.ts +0 -258
- package/src/warp/symbol-timeline.ts +0 -209
- package/src/warp/traverse-hydrate.ts +0 -61
- package/src/warp/warp-reference-count.ts +0 -47
- package/src/warp/warp-structural-blame.ts +0 -65
- package/src/warp/warp-structural-churn.ts +0 -309
- package/src/warp/warp-structural-log.ts +0 -149
- package/src/warp/writer-id.ts +0 -30
package/dist/parser/outline.js
CHANGED
|
@@ -1,153 +1,7 @@
|
|
|
1
1
|
import { detectStructuredFormat } from "./lang.js";
|
|
2
|
-
import {
|
|
3
|
-
import { parseStructuredTree } from "./runtime.js";
|
|
2
|
+
import { parseStructuredTree, parseStructuredTreeAsync, } from "./runtime.js";
|
|
4
3
|
import { extractMarkdownOutline } from "./markdown.js";
|
|
5
|
-
|
|
6
|
-
// ---------------------------------------------------------------------------
|
|
7
|
-
// Signature helpers
|
|
8
|
-
// ---------------------------------------------------------------------------
|
|
9
|
-
/** Compact object-literal default values: `= { ... }` becomes `= {…}`. */
|
|
10
|
-
function compactObjectDefaults(sig) {
|
|
11
|
-
return sig.replace(/=\s*\{[^}]*\}/g, "= {…}");
|
|
12
|
-
}
|
|
13
|
-
/** Truncate a signature to fit within MAX_SIGNATURE_LENGTH. */
|
|
14
|
-
function boundSignature(raw) {
|
|
15
|
-
let sig = compactObjectDefaults(raw);
|
|
16
|
-
if (sig.length >= MAX_SIGNATURE_LENGTH) {
|
|
17
|
-
sig = sig.slice(0, MAX_SIGNATURE_LENGTH - 1) + "…";
|
|
18
|
-
}
|
|
19
|
-
return sig;
|
|
20
|
-
}
|
|
21
|
-
function nodeKind(nodeType) {
|
|
22
|
-
switch (nodeType) {
|
|
23
|
-
case "function_declaration":
|
|
24
|
-
case "generator_function_declaration":
|
|
25
|
-
return "function";
|
|
26
|
-
case "class_declaration":
|
|
27
|
-
return "class";
|
|
28
|
-
case "method_definition":
|
|
29
|
-
return "method";
|
|
30
|
-
case "interface_declaration":
|
|
31
|
-
return "interface";
|
|
32
|
-
case "type_alias_declaration":
|
|
33
|
-
return "type";
|
|
34
|
-
case "enum_declaration":
|
|
35
|
-
return "enum";
|
|
36
|
-
default:
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
// ---------------------------------------------------------------------------
|
|
41
|
-
// Tree-sitter extraction helpers
|
|
42
|
-
// ---------------------------------------------------------------------------
|
|
43
|
-
function extractFunctionSignature(node) {
|
|
44
|
-
const nameNode = node.childForFieldName("name");
|
|
45
|
-
if (!nameNode)
|
|
46
|
-
return undefined;
|
|
47
|
-
const params = node.childForFieldName("parameters");
|
|
48
|
-
const returnType = node.childForFieldName("return_type");
|
|
49
|
-
let sig = nameNode.text;
|
|
50
|
-
if (params) {
|
|
51
|
-
sig += params.text;
|
|
52
|
-
}
|
|
53
|
-
if (returnType) {
|
|
54
|
-
// return_type node text includes the leading `: ` in some grammars
|
|
55
|
-
const rt = returnType.text.replace(/^:\s*/, "");
|
|
56
|
-
sig += ": " + rt;
|
|
57
|
-
}
|
|
58
|
-
return boundSignature(sig);
|
|
59
|
-
}
|
|
60
|
-
function extractName(node) {
|
|
61
|
-
const nameNode = node.childForFieldName("name");
|
|
62
|
-
return nameNode?.text;
|
|
63
|
-
}
|
|
64
|
-
function extractClassChildren(node) {
|
|
65
|
-
const body = node.childForFieldName("body");
|
|
66
|
-
if (!body)
|
|
67
|
-
return [];
|
|
68
|
-
const children = [];
|
|
69
|
-
for (const child of body.namedChildren) {
|
|
70
|
-
if (child.type === "method_definition") {
|
|
71
|
-
const name = extractName(child);
|
|
72
|
-
if (!name)
|
|
73
|
-
continue;
|
|
74
|
-
const sig = extractFunctionSignature(child);
|
|
75
|
-
children.push(new OutlineEntry({
|
|
76
|
-
kind: "method",
|
|
77
|
-
name,
|
|
78
|
-
exported: false,
|
|
79
|
-
...(sig !== undefined ? { signature: sig } : {}),
|
|
80
|
-
}));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return children;
|
|
84
|
-
}
|
|
85
|
-
function processDeclaration(node, exported) {
|
|
86
|
-
const kind = nodeKind(node.type);
|
|
87
|
-
if (!kind)
|
|
88
|
-
return undefined;
|
|
89
|
-
const name = extractName(node);
|
|
90
|
-
if (!name)
|
|
91
|
-
return undefined;
|
|
92
|
-
const sig = kind === "function" ? extractFunctionSignature(node) : undefined;
|
|
93
|
-
const children = kind === "class" ? extractClassChildren(node) : undefined;
|
|
94
|
-
return new OutlineEntry({
|
|
95
|
-
kind,
|
|
96
|
-
name,
|
|
97
|
-
exported,
|
|
98
|
-
...(sig !== undefined ? { signature: sig } : {}),
|
|
99
|
-
...(children !== undefined && children.length > 0 ? { children } : {}),
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function extractArrowSignature(name, arrowNode) {
|
|
103
|
-
const params = arrowNode.childForFieldName("parameters");
|
|
104
|
-
const returnType = arrowNode.childForFieldName("return_type");
|
|
105
|
-
let sig = name;
|
|
106
|
-
if (params) {
|
|
107
|
-
sig += params.text;
|
|
108
|
-
}
|
|
109
|
-
if (returnType) {
|
|
110
|
-
const rt = returnType.text.replace(/^:\s*/, "");
|
|
111
|
-
sig += ": " + rt;
|
|
112
|
-
}
|
|
113
|
-
return boundSignature(sig);
|
|
114
|
-
}
|
|
115
|
-
function processLexicalExport(node) {
|
|
116
|
-
const entries = [];
|
|
117
|
-
for (const child of node.namedChildren) {
|
|
118
|
-
if (child.type === "variable_declarator") {
|
|
119
|
-
const name = extractName(child);
|
|
120
|
-
if (!name)
|
|
121
|
-
continue;
|
|
122
|
-
// Check if the value is an arrow function or function expression
|
|
123
|
-
const value = child.childForFieldName("value");
|
|
124
|
-
if (value && (value.type === "arrow_function" || value.type === "function")) {
|
|
125
|
-
const sig = extractArrowSignature(name, value);
|
|
126
|
-
entries.push(new OutlineEntry({
|
|
127
|
-
kind: "function",
|
|
128
|
-
name,
|
|
129
|
-
exported: true,
|
|
130
|
-
...(sig !== undefined ? { signature: sig } : {}),
|
|
131
|
-
}));
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
entries.push(new OutlineEntry({ kind: "export", name, exported: true }));
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return entries;
|
|
139
|
-
}
|
|
140
|
-
// ---------------------------------------------------------------------------
|
|
141
|
-
// Jump table builder
|
|
142
|
-
// ---------------------------------------------------------------------------
|
|
143
|
-
function buildJumpEntry(name, kind, node) {
|
|
144
|
-
return new JumpEntry({
|
|
145
|
-
symbol: name,
|
|
146
|
-
kind,
|
|
147
|
-
start: node.startPosition.row + 1,
|
|
148
|
-
end: node.endPosition.row + 1,
|
|
149
|
-
});
|
|
150
|
-
}
|
|
4
|
+
import { getExtractor } from "./extractors/index.js";
|
|
151
5
|
// ---------------------------------------------------------------------------
|
|
152
6
|
// Main extraction
|
|
153
7
|
// ---------------------------------------------------------------------------
|
|
@@ -163,84 +17,34 @@ export function extractOutline(source, lang = "ts") {
|
|
|
163
17
|
return extractMarkdownOutline(source);
|
|
164
18
|
}
|
|
165
19
|
const parsed = parseStructuredTree(lang, source);
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
const jumpTable = [];
|
|
169
|
-
const hasError = root.hasError();
|
|
170
|
-
for (const child of root.children) {
|
|
171
|
-
if (child.type === "export_statement") {
|
|
172
|
-
// export_statement wraps a declaration
|
|
173
|
-
const inner = child.namedChildren.find((c) => c.type === "function_declaration" ||
|
|
174
|
-
c.type === "generator_function_declaration" ||
|
|
175
|
-
c.type === "class_declaration" ||
|
|
176
|
-
c.type === "interface_declaration" ||
|
|
177
|
-
c.type === "type_alias_declaration" ||
|
|
178
|
-
c.type === "enum_declaration");
|
|
179
|
-
if (inner) {
|
|
180
|
-
const entry = processDeclaration(inner, true);
|
|
181
|
-
if (entry) {
|
|
182
|
-
entries.push(entry);
|
|
183
|
-
jumpTable.push(buildJumpEntry(entry.name, entry.kind, child));
|
|
184
|
-
}
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
// Check for lexical declaration (const/let exports)
|
|
188
|
-
const lexical = child.namedChildren.find((c) => c.type === "lexical_declaration");
|
|
189
|
-
if (lexical) {
|
|
190
|
-
const lexEntries = processLexicalExport(lexical);
|
|
191
|
-
for (const entry of lexEntries) {
|
|
192
|
-
entries.push(entry);
|
|
193
|
-
jumpTable.push(buildJumpEntry(entry.name, entry.kind, child));
|
|
194
|
-
}
|
|
195
|
-
continue;
|
|
196
|
-
}
|
|
197
|
-
// Re-exports: export { A, B } from './x'
|
|
198
|
-
const exportClause = child.namedChildren.find((c) => c.type === "export_clause");
|
|
199
|
-
if (exportClause) {
|
|
200
|
-
for (const spec of exportClause.namedChildren) {
|
|
201
|
-
if (spec.type === "export_specifier") {
|
|
202
|
-
const nameNode = spec.childForFieldName("alias") ?? spec.childForFieldName("name");
|
|
203
|
-
if (nameNode) {
|
|
204
|
-
entries.push(new OutlineEntry({ kind: "export", name: nameNode.text, exported: true }));
|
|
205
|
-
jumpTable.push(buildJumpEntry(nameNode.text, "export", child));
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
continue;
|
|
210
|
-
}
|
|
211
|
-
// Wildcard re-export: export * from './x'
|
|
212
|
-
const moduleSpecifier = child.namedChildren.find((c) => c.type === "string");
|
|
213
|
-
const hasWildcard = child.children.some((c) => c.type === "*" || c.type === "namespace_export");
|
|
214
|
-
if (hasWildcard && moduleSpecifier) {
|
|
215
|
-
const name = `* from ${moduleSpecifier.text}`;
|
|
216
|
-
entries.push(new OutlineEntry({ kind: "export", name, exported: true }));
|
|
217
|
-
jumpTable.push(buildJumpEntry(name, "export", child));
|
|
218
|
-
continue;
|
|
219
|
-
}
|
|
220
|
-
// Other export forms — skip
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
// Non-exported top-level declaration
|
|
224
|
-
const kind = nodeKind(child.type);
|
|
225
|
-
if (kind) {
|
|
226
|
-
const entry = processDeclaration(child, false);
|
|
227
|
-
if (entry) {
|
|
228
|
-
entries.push(entry);
|
|
229
|
-
jumpTable.push(buildJumpEntry(entry.name, entry.kind, child));
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
20
|
+
try {
|
|
21
|
+
return extractOutlineFromParsedTree(parsed);
|
|
233
22
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
23
|
+
finally {
|
|
24
|
+
parsed.delete();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function extractOutlineFromParsedTree(parsed) {
|
|
28
|
+
const lang = parsed.format;
|
|
29
|
+
const extractor = getExtractor(lang);
|
|
30
|
+
const result = extractor.extract(parsed.root);
|
|
31
|
+
if (parsed.root.hasError()) {
|
|
240
32
|
result.partial = true;
|
|
241
33
|
}
|
|
242
34
|
return result;
|
|
243
35
|
}
|
|
36
|
+
export async function extractOutlineAsync(source, lang = "ts") {
|
|
37
|
+
if (lang === "md") {
|
|
38
|
+
return extractMarkdownOutline(source);
|
|
39
|
+
}
|
|
40
|
+
const parsed = await parseStructuredTreeAsync(lang, source);
|
|
41
|
+
try {
|
|
42
|
+
return extractOutlineFromParsedTree(parsed);
|
|
43
|
+
}
|
|
44
|
+
finally {
|
|
45
|
+
parsed.delete();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
244
48
|
export function extractOutlineForFile(filePath, source) {
|
|
245
49
|
const lang = detectStructuredFormat(filePath);
|
|
246
50
|
if (lang === null) {
|
|
@@ -248,4 +52,11 @@ export function extractOutlineForFile(filePath, source) {
|
|
|
248
52
|
}
|
|
249
53
|
return extractOutline(source, lang);
|
|
250
54
|
}
|
|
55
|
+
export async function extractOutlineForFileAsync(filePath, source) {
|
|
56
|
+
const lang = detectStructuredFormat(filePath);
|
|
57
|
+
if (lang === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return extractOutlineAsync(source, lang);
|
|
61
|
+
}
|
|
251
62
|
//# sourceMappingURL=outline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outline.js","sourceRoot":"","sources":["../../src/parser/outline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"outline.js","sourceRoot":"","sources":["../../src/parser/outline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGnD,OAAO,EAEL,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,8EAA8E;AAC9E,kBAAkB;AAClB,8EAA8E;AAE9E;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAc,EACd,OAAkC,IAAI;IAEtC,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAClB,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,MAAM,GAAG,mBAAmB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACjD,IAAI,CAAC;QACH,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;YAAS,CAAC;QAC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;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC3C,CAAC"}
|
package/dist/parser/runtime.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import Parser from "web-tree-sitter";
|
|
2
2
|
import type { SupportedLang } from "./lang.js";
|
|
3
|
+
export declare class ParserRuntimeNotReadyError extends Error {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
3
6
|
export interface ParsedTree {
|
|
4
7
|
readonly format: SupportedLang;
|
|
5
8
|
readonly parser: Parser;
|
|
@@ -8,6 +11,10 @@ export interface ParsedTree {
|
|
|
8
11
|
readonly source: string;
|
|
9
12
|
delete(): void;
|
|
10
13
|
}
|
|
14
|
+
export declare function ensureParserReady(): Promise<void>;
|
|
15
|
+
export declare function isParserReady(): boolean;
|
|
11
16
|
export declare function parseStructuredTree(format: SupportedLang, source: string): ParsedTree;
|
|
17
|
+
export declare function parseStructuredTreeAsync(format: SupportedLang, source: string): Promise<ParsedTree>;
|
|
12
18
|
export declare function parseStructuredTreeForFile(filePath: string, source: string): ParsedTree | null;
|
|
19
|
+
export declare function parseStructuredTreeForFileAsync(filePath: string, source: string): Promise<ParsedTree | null>;
|
|
13
20
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/parser/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/parser/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAoB/C,qBAAa,0BAA2B,SAAQ,KAAK;;CAOpD;AAoHD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,MAAM,IAAI,IAAI,CAAC;CAChB;AAyBD,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEvD;AAED,wBAAgB,aAAa,IAAI,OAAO,CAEvC;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,GACb,UAAU,CAEZ;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,UAAU,CAAC,CAErB;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,UAAU,GAAG,IAAI,CAMnB;AAED,wBAAsB,+BAA+B,CACnD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAM5B"}
|
package/dist/parser/runtime.js
CHANGED
|
@@ -2,23 +2,93 @@ import Parser from "web-tree-sitter";
|
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { detectLang } from "./lang.js";
|
|
4
4
|
const esmRequire = createRequire(import.meta.url);
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
let parserRuntime = null;
|
|
6
|
+
let parserRuntimePromise = null;
|
|
7
|
+
export class ParserRuntimeNotReadyError extends Error {
|
|
8
|
+
constructor() {
|
|
9
|
+
super("Parser runtime is not ready; await ensureParserReady() before synchronous structured parsing.");
|
|
10
|
+
this.name = "ParserRuntimeNotReadyError";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
async function loadParserRuntime() {
|
|
14
|
+
if (parserRuntime !== null) {
|
|
15
|
+
return parserRuntime;
|
|
16
|
+
}
|
|
17
|
+
if (parserRuntimePromise !== null) {
|
|
18
|
+
return parserRuntimePromise;
|
|
19
|
+
}
|
|
20
|
+
parserRuntimePromise = (async () => {
|
|
21
|
+
await Parser.init();
|
|
22
|
+
const [tsLang, tsxLang, jsLang, rustLang, graphqlLang, pythonLang, goLang, jsonLang, tomlLang, yamlLang,] = await Promise.all([
|
|
23
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-wasms/out/tree-sitter-typescript.wasm")),
|
|
24
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-wasms/out/tree-sitter-tsx.wasm")),
|
|
25
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-wasms/out/tree-sitter-javascript.wasm")),
|
|
26
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-wasms/out/tree-sitter-rust.wasm")),
|
|
27
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-graphql-grammar-wasm/grammar.wasm")),
|
|
28
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-wasms/out/tree-sitter-python.wasm")),
|
|
29
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-wasms/out/tree-sitter-go.wasm")),
|
|
30
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-wasms/out/tree-sitter-json.wasm")),
|
|
31
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-wasms/out/tree-sitter-toml.wasm")),
|
|
32
|
+
Parser.Language.load(esmRequire.resolve("tree-sitter-wasms/out/tree-sitter-yaml.wasm")),
|
|
33
|
+
]);
|
|
34
|
+
return {
|
|
35
|
+
tsLang,
|
|
36
|
+
tsxLang,
|
|
37
|
+
jsLang,
|
|
38
|
+
rustLang,
|
|
39
|
+
graphqlLang,
|
|
40
|
+
pythonLang,
|
|
41
|
+
goLang,
|
|
42
|
+
jsonLang,
|
|
43
|
+
tomlLang,
|
|
44
|
+
yamlLang,
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
try {
|
|
48
|
+
parserRuntime = await parserRuntimePromise;
|
|
49
|
+
return parserRuntime;
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
parserRuntimePromise = null;
|
|
53
|
+
throw error;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function requireParserRuntime() {
|
|
57
|
+
if (parserRuntime === null) {
|
|
58
|
+
void loadParserRuntime().catch(() => {
|
|
59
|
+
// Best-effort warmup: awaited parser entry points surface init errors.
|
|
60
|
+
});
|
|
61
|
+
throw new ParserRuntimeNotReadyError();
|
|
62
|
+
}
|
|
63
|
+
return parserRuntime;
|
|
64
|
+
}
|
|
65
|
+
function languageFor(runtime, format) {
|
|
10
66
|
switch (format) {
|
|
11
67
|
case "ts":
|
|
12
|
-
return tsLang;
|
|
68
|
+
return runtime.tsLang;
|
|
13
69
|
case "tsx":
|
|
14
|
-
return tsxLang;
|
|
70
|
+
return runtime.tsxLang;
|
|
15
71
|
case "js":
|
|
16
|
-
return jsLang;
|
|
72
|
+
return runtime.jsLang;
|
|
73
|
+
case "rust":
|
|
74
|
+
return runtime.rustLang;
|
|
75
|
+
case "graphql":
|
|
76
|
+
return runtime.graphqlLang;
|
|
77
|
+
case "python":
|
|
78
|
+
return runtime.pythonLang;
|
|
79
|
+
case "go":
|
|
80
|
+
return runtime.goLang;
|
|
81
|
+
case "json":
|
|
82
|
+
return runtime.jsonLang;
|
|
83
|
+
case "toml":
|
|
84
|
+
return runtime.tomlLang;
|
|
85
|
+
case "yaml":
|
|
86
|
+
return runtime.yamlLang;
|
|
17
87
|
}
|
|
18
88
|
}
|
|
19
|
-
|
|
89
|
+
function parseStructuredTreeWithRuntime(runtime, format, source) {
|
|
20
90
|
const parser = new Parser();
|
|
21
|
-
parser.setLanguage(languageFor(format));
|
|
91
|
+
parser.setLanguage(languageFor(runtime, format));
|
|
22
92
|
const tree = parser.parse(source);
|
|
23
93
|
const root = tree.rootNode;
|
|
24
94
|
return {
|
|
@@ -33,6 +103,18 @@ export function parseStructuredTree(format, source) {
|
|
|
33
103
|
},
|
|
34
104
|
};
|
|
35
105
|
}
|
|
106
|
+
export async function ensureParserReady() {
|
|
107
|
+
await loadParserRuntime();
|
|
108
|
+
}
|
|
109
|
+
export function isParserReady() {
|
|
110
|
+
return parserRuntime !== null;
|
|
111
|
+
}
|
|
112
|
+
export function parseStructuredTree(format, source) {
|
|
113
|
+
return parseStructuredTreeWithRuntime(requireParserRuntime(), format, source);
|
|
114
|
+
}
|
|
115
|
+
export async function parseStructuredTreeAsync(format, source) {
|
|
116
|
+
return parseStructuredTreeWithRuntime(await loadParserRuntime(), format, source);
|
|
117
|
+
}
|
|
36
118
|
export function parseStructuredTreeForFile(filePath, source) {
|
|
37
119
|
const format = detectLang(filePath);
|
|
38
120
|
if (format === null) {
|
|
@@ -40,4 +122,11 @@ export function parseStructuredTreeForFile(filePath, source) {
|
|
|
40
122
|
}
|
|
41
123
|
return parseStructuredTree(format, source);
|
|
42
124
|
}
|
|
125
|
+
export async function parseStructuredTreeForFileAsync(filePath, source) {
|
|
126
|
+
const format = detectLang(filePath);
|
|
127
|
+
if (format === null) {
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
return parseStructuredTreeAsync(format, source);
|
|
131
|
+
}
|
|
43
132
|
//# sourceMappingURL=runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/parser/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,C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;IAC3B,OAAO,aAAa,KAAK,IAAI,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,mBAAmB,CACjC,MAAqB,EACrB,MAAc;IAEd,OAAO,8BAA8B,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,MAAqB,EACrB,MAAc;IAEd,OAAO,8BAA8B,CAAC,MAAM,iBAAiB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACnF,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,QAAgB,EAChB,MAAc;IAEd,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACpC,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,QAAgB,EAChB,MAAc;IAEd,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACpC,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAClD,CAAC"}
|
package/dist/parser/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** The kind of a top-level or member declaration. */
|
|
2
|
-
export type EntryKind = "function" | "class" | "method" | "interface" | "type" | "enum" | "export" | "heading";
|
|
2
|
+
export type EntryKind = "function" | "class" | "method" | "interface" | "type" | "enum" | "export" | "object" | "field" | "input" | "input_field" | "scalar" | "union" | "directive" | "operation" | "fragment" | "schema" | "enum_value" | "constant" | "variable" | "package" | "section" | "heading";
|
|
3
3
|
/** A single entry in a file outline. */
|
|
4
4
|
export declare class OutlineEntry {
|
|
5
5
|
/** @internal Brand prevents structural forgery from plain objects. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/parser/types.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,MAAM,MAAM,SAAS,GACjB,UAAU,GACV,OAAO,GACP,QAAQ,GACR,WAAW,GACX,MAAM,GACN,MAAM,GACN,QAAQ,GACR,SAAS,CAAC;AAEd,wCAAwC;AACxC,qBAAa,YAAY;IACvB,sEAAsE;IACtE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;gBAEhC,IAAI,EAAE;QAChB,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;KACpC;CAWF;AAED,qEAAqE;AACrE,qBAAa,SAAS;IACpB,sEAAsE;IACtE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAC/C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;gBAET,IAAI,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb;CAaF;AAED,oCA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,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;gBAET,IAAI,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb;CAaF;AAED,oCAAoC;AACpC,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
package/dist/parser/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/parser/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/parser/types.ts"],"names":[],"mappings":"AA0BA,wCAAwC;AACxC,MAAM,OAAO,YAAY;IACvB,sEAAsE;IACrD,MAAM,GAAG,cAAuB,CAAC;IACzC,IAAI,CAAY;IAChB,IAAI,CAAS;IACb,SAAS,CAAU;IACnB,QAAQ,CAAU;IAClB,QAAQ,CAA2B;IAE5C,YAAY,IAMX;QACC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAC1D,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;YAAE,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAClE,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS;YAAE,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QACnF,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACF;AAED,qEAAqE;AACrE,MAAM,OAAO,SAAS;IACpB,sEAAsE;IACrD,MAAM,GAAG,WAAoB,CAAC;IACtC,MAAM,CAAS;IACf,IAAI,CAAS;IACb,KAAK,CAAS,CAAC,eAAe;IAC9B,GAAG,CAAS,CAAC,eAAe;IAErC,YAAY,IAKX;QACC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;QAC9D,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;YACzD,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;QAChE,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ProvenanceTimelinePatch {
|
|
2
|
+
readonly lamport: number;
|
|
3
|
+
readonly ops: readonly unknown[];
|
|
4
|
+
}
|
|
5
|
+
export interface ProvenanceTimelinePort {
|
|
6
|
+
readonly patchesFor: (entityId: string) => Promise<readonly string[]>;
|
|
7
|
+
readonly loadPatchBySha: (sha: string) => Promise<ProvenanceTimelinePatch>;
|
|
8
|
+
}
|
|
9
|
+
export declare function assertProvenanceTimelinePort(impl: unknown): asserts impl is ProvenanceTimelinePort;
|
|
10
|
+
//# sourceMappingURL=provenance-timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provenance-timeline.d.ts","sourceRoot":"","sources":["../../src/ports/provenance-timeline.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,SAAS,OAAO,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IACtE,QAAQ,CAAC,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC5E;AAED,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,IAAI,IAAI,sBAAsB,CAmBxC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// ProvenanceTimeline port - narrow boundary for patch-history reads
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
export function assertProvenanceTimelinePort(impl) {
|
|
5
|
+
if (impl === null || typeof impl !== "object") {
|
|
6
|
+
throw new TypeError(`ProvenanceTimeline adapter must be an object (got ${impl === null ? "null" : typeof impl})`);
|
|
7
|
+
}
|
|
8
|
+
const candidate = impl;
|
|
9
|
+
if (typeof candidate.patchesFor !== "function") {
|
|
10
|
+
throw new TypeError(`ProvenanceTimeline adapter missing method: patchesFor (got ${typeof candidate.patchesFor})`);
|
|
11
|
+
}
|
|
12
|
+
if (typeof candidate.loadPatchBySha !== "function") {
|
|
13
|
+
throw new TypeError(`ProvenanceTimeline adapter missing method: loadPatchBySha ` +
|
|
14
|
+
`(got ${typeof candidate.loadPatchBySha})`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=provenance-timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provenance-timeline.js","sourceRoot":"","sources":["../../src/ports/provenance-timeline.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,oEAAoE;AACpE,8EAA8E;AAY9E,MAAM,UAAU,4BAA4B,CAC1C,IAAa;IAEb,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC9C,MAAM,IAAI,SAAS,CACjB,qDAAqD,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,IAAI,GAAG,CAC7F,CAAC;IACJ,CAAC;IAED,MAAM,SAAS,GAAG,IAA8D,CAAC;IACjF,IAAI,OAAO,SAAS,CAAC,UAAU,KAAK,UAAU,EAAE,CAAC;QAC/C,MAAM,IAAI,SAAS,CACjB,8DAA8D,OAAO,SAAS,CAAC,UAAU,GAAG,CAC7F,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,SAAS,CAAC,cAAc,KAAK,UAAU,EAAE,CAAC;QACnD,MAAM,IAAI,SAAS,CACjB,4DAA4D;YAC1D,QAAQ,OAAO,SAAS,CAAC,cAAc,GAAG,CAC7C,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const DEFAULT_SEMANTIC_FACT_LIMIT = 64;
|
|
2
|
+
export type SemanticEnrichmentStatus = "not_configured" | "skipped_not_explicit" | "available" | "unavailable";
|
|
3
|
+
export type SemanticEnrichmentLanguage = "ts" | "tsx" | "js" | "rust" | "graphql" | "python" | "go" | "json" | "toml" | "yaml";
|
|
4
|
+
export interface SemanticEnrichmentRequest {
|
|
5
|
+
readonly repoRoot: string;
|
|
6
|
+
readonly filePath: string;
|
|
7
|
+
readonly language: SemanticEnrichmentLanguage;
|
|
8
|
+
readonly content: string;
|
|
9
|
+
readonly headSha: string;
|
|
10
|
+
readonly maxFacts: number;
|
|
11
|
+
}
|
|
12
|
+
export interface SemanticCallFact {
|
|
13
|
+
readonly kind: "call";
|
|
14
|
+
readonly fromSymbolId: string;
|
|
15
|
+
readonly toSymbolId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SemanticTypeofFact {
|
|
18
|
+
readonly kind: "typeof";
|
|
19
|
+
readonly symbolId: string;
|
|
20
|
+
readonly typeName: string;
|
|
21
|
+
}
|
|
22
|
+
export type SemanticEnrichmentFact = SemanticCallFact | SemanticTypeofFact;
|
|
23
|
+
export interface SemanticEnrichmentAvailableResult {
|
|
24
|
+
readonly status: "available";
|
|
25
|
+
readonly facts: readonly SemanticEnrichmentFact[];
|
|
26
|
+
readonly factsRejected?: number | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface SemanticEnrichmentUnavailableResult {
|
|
29
|
+
readonly status: "unavailable";
|
|
30
|
+
readonly reason: string;
|
|
31
|
+
}
|
|
32
|
+
export type SemanticEnrichmentProviderResult = SemanticEnrichmentAvailableResult | SemanticEnrichmentUnavailableResult;
|
|
33
|
+
export interface SemanticEnrichmentProvider {
|
|
34
|
+
enrichFile(request: SemanticEnrichmentRequest): SemanticEnrichmentProviderResult | Promise<SemanticEnrichmentProviderResult>;
|
|
35
|
+
}
|
|
36
|
+
export interface SemanticEnrichmentUnavailableFile {
|
|
37
|
+
readonly filePath: string;
|
|
38
|
+
readonly reason: string;
|
|
39
|
+
}
|
|
40
|
+
export interface SemanticEnrichmentSummary {
|
|
41
|
+
readonly status: SemanticEnrichmentStatus;
|
|
42
|
+
readonly filesAttempted: number;
|
|
43
|
+
readonly factsAccepted: number;
|
|
44
|
+
readonly factsRejected: number;
|
|
45
|
+
readonly unavailable: readonly SemanticEnrichmentUnavailableFile[];
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=semantic-enrichment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semantic-enrichment.d.ts","sourceRoot":"","sources":["../../src/ports/semantic-enrichment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAE9C,MAAM,MAAM,wBAAwB,GAChC,gBAAgB,GAChB,sBAAsB,GACtB,WAAW,GACX,aAAa,CAAC;AAElB,MAAM,MAAM,0BAA0B,GAClC,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,MAAM,GACN,SAAS,GACT,QAAQ,GACR,IAAI,GACJ,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;AAE3E,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAClD,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7C;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,gCAAgC,GACxC,iCAAiC,GACjC,mCAAmC,CAAC;AAExC,MAAM,WAAW,0BAA0B;IACzC,UAAU,CACR,OAAO,EAAE,yBAAyB,GACjC,gCAAgC,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;CACjF;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,SAAS,iCAAiC,EAAE,CAAC;CACpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semantic-enrichment.js","sourceRoot":"","sources":["../../src/ports/semantic-enrichment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,CAAC"}
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,QAAsB,CAAC"}
|
package/dist/version.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
const require = createRequire(import.meta.url);
|
|
3
|
+
const packageJson = require("../package.json");
|
|
2
4
|
export const GRAFT_VERSION = packageJson.version;
|
|
3
5
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAwB,CAAC;AAEtE,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast-import-resolver.d.ts","sourceRoot":"","sources":["../../src/warp/ast-import-resolver.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ast-import-resolver.d.ts","sourceRoot":"","sources":["../../src/warp/ast-import-resolver.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,KAAK,MAAM,GAAG,OAAO,iBAAiB,EAAE,UAAU,CAAC;AA0LnD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,IAAI,CAWN"}
|