@vpxa/aikit 0.1.59 → 0.1.60
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 +38 -3
- package/package.json +2 -1
- package/packages/aikit-client/dist/index.d.ts +146 -4
- package/packages/aikit-client/dist/index.js +5 -1
- package/packages/analyzers/dist/index.d.ts +309 -11
- package/packages/analyzers/dist/index.js +54 -1
- package/packages/chunker/dist/index.d.ts +451 -18
- package/packages/chunker/dist/index.js +24 -1
- package/packages/cli/dist/{commands/init/constants.js → constants-D3v4VDf0.js} +1 -1
- package/packages/cli/dist/index.js +15 -2
- package/packages/cli/dist/init-D0CiV9PX.js +7 -0
- package/packages/cli/dist/scaffold-CJwkHf-q.js +2 -0
- package/packages/cli/dist/{commands/init/templates.js → templates-DJ7EC5vw.js} +1 -1
- package/packages/cli/dist/user-HmJYNt5b.js +5 -0
- package/packages/core/dist/index.d.ts +357 -6
- package/packages/core/dist/index.js +1 -1
- package/packages/dashboard/dist/assets/{index-Cdke3KDK.js → index-C6D-PCp0.js} +7 -7
- package/packages/dashboard/dist/assets/index-C6D-PCp0.js.map +1 -0
- package/packages/dashboard/dist/index.html +1 -1
- package/packages/elicitation/dist/index.d.ts +139 -4
- package/packages/elicitation/dist/index.js +1 -1
- package/packages/embeddings/dist/index.d.ts +45 -2
- package/packages/embeddings/dist/index.js +1 -1
- package/packages/enterprise-bridge/dist/index.d.ts +275 -7
- package/packages/enterprise-bridge/dist/index.js +1 -1
- package/packages/flows/dist/index.d.ts +345 -12
- package/packages/flows/dist/index.js +15 -1
- package/packages/indexer/dist/index.d.ts +196 -6
- package/packages/indexer/dist/index.js +1 -1
- package/packages/present/dist/index.html +314 -313
- package/packages/server/dist/curated-manager-DX-_oJg0.js +5 -0
- package/packages/server/dist/index.d.ts +139 -1
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/server-eMZ64H9b.js +1274 -0
- package/packages/store/dist/index.d.ts +316 -5
- package/packages/store/dist/index.js +90 -1
- package/packages/store/dist/lance-store-jdHZp-V4.js +1 -0
- package/packages/tools/dist/index.d.ts +2161 -61
- package/packages/tools/dist/index.js +117 -1
- package/packages/tui/dist/{App-CoMyn2kt.js → App-DobfqTPH.js} +1 -1
- package/packages/tui/dist/App.d.ts +1 -1
- package/packages/tui/dist/App.js +1 -1
- package/packages/tui/dist/{LogPanel-CDItCD0E.js → LogPanel-DGeptKim.js} +3 -3
- package/packages/tui/dist/hooks/useKBClient.d.ts +1 -1
- package/packages/tui/dist/{index-MXJeXmCf.d.ts → index-floZQwfo.d.ts} +2 -1
- package/packages/tui/dist/index.d.ts +1 -1
- package/packages/tui/dist/index.js +1 -1
- package/packages/tui/dist/panels/LogPanel.js +1 -1
- package/scaffold/definitions/bodies.mjs +47 -0
- package/scaffold/definitions/protocols.mjs +9 -0
- package/scaffold/definitions/tools.mjs +15 -0
- package/scaffold/general/agents/Debugger.agent.md +9 -0
- package/scaffold/general/agents/Documenter.agent.md +9 -0
- package/scaffold/general/agents/Frontend.agent.md +9 -0
- package/scaffold/general/agents/Implementer.agent.md +9 -0
- package/scaffold/general/agents/Orchestrator.agent.md +47 -0
- package/scaffold/general/agents/Planner.agent.md +9 -0
- package/scaffold/general/agents/Refactor.agent.md +9 -0
- package/scaffold/general/agents/Security.agent.md +9 -0
- package/scaffold/general/agents/_shared/code-agent-base.md +9 -0
- package/scaffold/general/skills/aikit/SKILL.md +71 -7
- package/packages/aikit-client/dist/direct-client.d.ts +0 -37
- package/packages/aikit-client/dist/direct-client.js +0 -1
- package/packages/aikit-client/dist/mcp-client.d.ts +0 -19
- package/packages/aikit-client/dist/mcp-client.js +0 -4
- package/packages/aikit-client/dist/parsers.d.ts +0 -35
- package/packages/aikit-client/dist/parsers.js +0 -2
- package/packages/aikit-client/dist/types.d.ts +0 -62
- package/packages/aikit-client/dist/types.js +0 -1
- package/packages/analyzers/dist/blast-radius-analyzer.d.ts +0 -19
- package/packages/analyzers/dist/blast-radius-analyzer.js +0 -6
- package/packages/analyzers/dist/dependency-analyzer.d.ts +0 -32
- package/packages/analyzers/dist/dependency-analyzer.js +0 -8
- package/packages/analyzers/dist/diagram-generator.d.ts +0 -16
- package/packages/analyzers/dist/diagram-generator.js +0 -2
- package/packages/analyzers/dist/entry-point-analyzer.d.ts +0 -40
- package/packages/analyzers/dist/entry-point-analyzer.js +0 -4
- package/packages/analyzers/dist/knowledge-producer.d.ts +0 -40
- package/packages/analyzers/dist/knowledge-producer.js +0 -26
- package/packages/analyzers/dist/pattern-analyzer.d.ts +0 -15
- package/packages/analyzers/dist/pattern-analyzer.js +0 -2
- package/packages/analyzers/dist/regex-call-graph.d.ts +0 -10
- package/packages/analyzers/dist/regex-call-graph.js +0 -1
- package/packages/analyzers/dist/structure-analyzer.d.ts +0 -19
- package/packages/analyzers/dist/structure-analyzer.js +0 -4
- package/packages/analyzers/dist/symbol-analyzer.d.ts +0 -14
- package/packages/analyzers/dist/symbol-analyzer.js +0 -9
- package/packages/analyzers/dist/ts-call-graph.d.ts +0 -29
- package/packages/analyzers/dist/ts-call-graph.js +0 -1
- package/packages/analyzers/dist/types.d.ts +0 -110
- package/packages/analyzers/dist/types.js +0 -1
- package/packages/chunker/dist/call-graph-extractor.d.ts +0 -25
- package/packages/chunker/dist/call-graph-extractor.js +0 -1
- package/packages/chunker/dist/chunker-factory.d.ts +0 -19
- package/packages/chunker/dist/chunker-factory.js +0 -1
- package/packages/chunker/dist/chunker.interface.d.ts +0 -13
- package/packages/chunker/dist/chunker.interface.js +0 -1
- package/packages/chunker/dist/code-chunker.d.ts +0 -17
- package/packages/chunker/dist/code-chunker.js +0 -11
- package/packages/chunker/dist/extractors/call-extractor.d.ts +0 -24
- package/packages/chunker/dist/extractors/call-extractor.js +0 -1
- package/packages/chunker/dist/extractors/entry-point-detector.d.ts +0 -14
- package/packages/chunker/dist/extractors/entry-point-detector.js +0 -1
- package/packages/chunker/dist/extractors/import-extractor.d.ts +0 -14
- package/packages/chunker/dist/extractors/import-extractor.js +0 -1
- package/packages/chunker/dist/extractors/pattern-detector.d.ts +0 -14
- package/packages/chunker/dist/extractors/pattern-detector.js +0 -1
- package/packages/chunker/dist/extractors/scope-resolver.d.ts +0 -26
- package/packages/chunker/dist/extractors/scope-resolver.js +0 -1
- package/packages/chunker/dist/extractors/symbol-extractor.d.ts +0 -14
- package/packages/chunker/dist/extractors/symbol-extractor.js +0 -3
- package/packages/chunker/dist/extractors/types.d.ts +0 -44
- package/packages/chunker/dist/extractors/types.js +0 -1
- package/packages/chunker/dist/generic-chunker.d.ts +0 -15
- package/packages/chunker/dist/generic-chunker.js +0 -5
- package/packages/chunker/dist/markdown-chunker.d.ts +0 -17
- package/packages/chunker/dist/markdown-chunker.js +0 -3
- package/packages/chunker/dist/wasm/languages.d.ts +0 -18
- package/packages/chunker/dist/wasm/languages.js +0 -1
- package/packages/chunker/dist/wasm/query-executor.d.ts +0 -70
- package/packages/chunker/dist/wasm/query-executor.js +0 -1
- package/packages/chunker/dist/wasm/runtime.d.ts +0 -44
- package/packages/chunker/dist/wasm/runtime.js +0 -1
- package/packages/chunker/dist/wasm/types.d.ts +0 -84
- package/packages/chunker/dist/wasm/types.js +0 -1
- package/packages/chunker/dist/wasm-chunker.d.ts +0 -23
- package/packages/chunker/dist/wasm-chunker.js +0 -6
- package/packages/cli/dist/aikit-init.d.ts +0 -59
- package/packages/cli/dist/aikit-init.js +0 -1
- package/packages/cli/dist/commands/analyze.d.ts +0 -6
- package/packages/cli/dist/commands/analyze.js +0 -2
- package/packages/cli/dist/commands/context-cmds.d.ts +0 -6
- package/packages/cli/dist/commands/context-cmds.js +0 -1
- package/packages/cli/dist/commands/environment.d.ts +0 -6
- package/packages/cli/dist/commands/environment.js +0 -1
- package/packages/cli/dist/commands/execution.d.ts +0 -6
- package/packages/cli/dist/commands/execution.js +0 -1
- package/packages/cli/dist/commands/flow.d.ts +0 -6
- package/packages/cli/dist/commands/flow.js +0 -1
- package/packages/cli/dist/commands/graph.d.ts +0 -6
- package/packages/cli/dist/commands/graph.js +0 -6
- package/packages/cli/dist/commands/init/adapters.d.ts +0 -28
- package/packages/cli/dist/commands/init/adapters.js +0 -1
- package/packages/cli/dist/commands/init/config.d.ts +0 -10
- package/packages/cli/dist/commands/init/config.js +0 -3
- package/packages/cli/dist/commands/init/constants.d.ts +0 -46
- package/packages/cli/dist/commands/init/curated.d.ts +0 -7
- package/packages/cli/dist/commands/init/curated.js +0 -1
- package/packages/cli/dist/commands/init/frontmatter.d.ts +0 -79
- package/packages/cli/dist/commands/init/frontmatter.js +0 -2
- package/packages/cli/dist/commands/init/index.d.ts +0 -36
- package/packages/cli/dist/commands/init/index.js +0 -5
- package/packages/cli/dist/commands/init/manifest.d.ts +0 -72
- package/packages/cli/dist/commands/init/manifest.js +0 -1
- package/packages/cli/dist/commands/init/scaffold.d.ts +0 -58
- package/packages/cli/dist/commands/init/scaffold.js +0 -1
- package/packages/cli/dist/commands/init/templates.d.ts +0 -9
- package/packages/cli/dist/commands/init/user.d.ts +0 -61
- package/packages/cli/dist/commands/init/user.js +0 -5
- package/packages/cli/dist/commands/knowledge.d.ts +0 -6
- package/packages/cli/dist/commands/knowledge.js +0 -1
- package/packages/cli/dist/commands/search.d.ts +0 -6
- package/packages/cli/dist/commands/search.js +0 -1
- package/packages/cli/dist/commands/system.d.ts +0 -6
- package/packages/cli/dist/commands/system.js +0 -4
- package/packages/cli/dist/commands/upgrade.d.ts +0 -6
- package/packages/cli/dist/commands/upgrade.js +0 -1
- package/packages/cli/dist/commands/workspace.d.ts +0 -6
- package/packages/cli/dist/commands/workspace.js +0 -1
- package/packages/cli/dist/context.d.ts +0 -7
- package/packages/cli/dist/context.js +0 -1
- package/packages/cli/dist/helpers.d.ts +0 -55
- package/packages/cli/dist/helpers.js +0 -5
- package/packages/cli/dist/types.d.ts +0 -9
- package/packages/cli/dist/types.js +0 -1
- package/packages/core/dist/constants.d.ts +0 -74
- package/packages/core/dist/constants.js +0 -1
- package/packages/core/dist/content-detector.d.ts +0 -13
- package/packages/core/dist/content-detector.js +0 -1
- package/packages/core/dist/errors.d.ts +0 -20
- package/packages/core/dist/errors.js +0 -1
- package/packages/core/dist/global-registry.d.ts +0 -69
- package/packages/core/dist/global-registry.js +0 -1
- package/packages/core/dist/logger.d.ts +0 -32
- package/packages/core/dist/logger.js +0 -1
- package/packages/core/dist/types.d.ts +0 -149
- package/packages/core/dist/types.js +0 -1
- package/packages/dashboard/dist/assets/index-Cdke3KDK.js.map +0 -1
- package/packages/elicitation/dist/build.d.ts +0 -14
- package/packages/elicitation/dist/build.js +0 -1
- package/packages/elicitation/dist/fields.d.ts +0 -32
- package/packages/elicitation/dist/fields.js +0 -1
- package/packages/elicitation/dist/normalize.d.ts +0 -15
- package/packages/elicitation/dist/normalize.js +0 -1
- package/packages/elicitation/dist/types.d.ts +0 -88
- package/packages/elicitation/dist/types.js +0 -1
- package/packages/embeddings/dist/embedder.interface.d.ts +0 -26
- package/packages/embeddings/dist/embedder.interface.js +0 -1
- package/packages/embeddings/dist/onnx-embedder.d.ts +0 -23
- package/packages/embeddings/dist/onnx-embedder.js +0 -1
- package/packages/enterprise-bridge/dist/cache.d.ts +0 -28
- package/packages/enterprise-bridge/dist/cache.js +0 -1
- package/packages/enterprise-bridge/dist/er-client.d.ts +0 -37
- package/packages/enterprise-bridge/dist/er-client.js +0 -1
- package/packages/enterprise-bridge/dist/evolution-collector.d.ts +0 -62
- package/packages/enterprise-bridge/dist/evolution-collector.js +0 -1
- package/packages/enterprise-bridge/dist/policy-store.d.ts +0 -45
- package/packages/enterprise-bridge/dist/policy-store.js +0 -1
- package/packages/enterprise-bridge/dist/push-adapter.d.ts +0 -23
- package/packages/enterprise-bridge/dist/push-adapter.js +0 -1
- package/packages/enterprise-bridge/dist/result-merger.d.ts +0 -14
- package/packages/enterprise-bridge/dist/result-merger.js +0 -1
- package/packages/enterprise-bridge/dist/types.d.ts +0 -81
- package/packages/enterprise-bridge/dist/types.js +0 -1
- package/packages/flows/dist/adapters/claude-plugin.d.ts +0 -25
- package/packages/flows/dist/adapters/claude-plugin.js +0 -3
- package/packages/flows/dist/adapters/copilot.d.ts +0 -12
- package/packages/flows/dist/adapters/copilot.js +0 -1
- package/packages/flows/dist/adapters/index.d.ts +0 -12
- package/packages/flows/dist/adapters/index.js +0 -1
- package/packages/flows/dist/adapters/native.d.ts +0 -10
- package/packages/flows/dist/adapters/native.js +0 -1
- package/packages/flows/dist/adapters/openspec.d.ts +0 -40
- package/packages/flows/dist/adapters/openspec.js +0 -1
- package/packages/flows/dist/builtins.d.ts +0 -16
- package/packages/flows/dist/builtins.js +0 -1
- package/packages/flows/dist/foundation.d.ts +0 -20
- package/packages/flows/dist/foundation.js +0 -11
- package/packages/flows/dist/git.d.ts +0 -53
- package/packages/flows/dist/git.js +0 -2
- package/packages/flows/dist/loader.d.ts +0 -13
- package/packages/flows/dist/loader.js +0 -2
- package/packages/flows/dist/registry.d.ts +0 -23
- package/packages/flows/dist/registry.js +0 -1
- package/packages/flows/dist/state-machine.d.ts +0 -23
- package/packages/flows/dist/state-machine.js +0 -1
- package/packages/flows/dist/symlinks.d.ts +0 -17
- package/packages/flows/dist/symlinks.js +0 -1
- package/packages/flows/dist/types.d.ts +0 -127
- package/packages/flows/dist/types.js +0 -1
- package/packages/indexer/dist/file-hasher.d.ts +0 -13
- package/packages/indexer/dist/file-hasher.js +0 -1
- package/packages/indexer/dist/filesystem-crawler.d.ts +0 -29
- package/packages/indexer/dist/filesystem-crawler.js +0 -1
- package/packages/indexer/dist/graph-extractor.d.ts +0 -22
- package/packages/indexer/dist/graph-extractor.js +0 -1
- package/packages/indexer/dist/hash-cache.d.ts +0 -24
- package/packages/indexer/dist/hash-cache.js +0 -1
- package/packages/indexer/dist/incremental-indexer.d.ts +0 -73
- package/packages/indexer/dist/incremental-indexer.js +0 -1
- package/packages/indexer/dist/smart-index-scheduler.d.ts +0 -47
- package/packages/indexer/dist/smart-index-scheduler.js +0 -1
- package/packages/server/dist/api.d.ts +0 -3
- package/packages/server/dist/api.js +0 -1
- package/packages/server/dist/auto-gc.d.ts +0 -30
- package/packages/server/dist/auto-gc.js +0 -1
- package/packages/server/dist/background-task.d.ts +0 -47
- package/packages/server/dist/background-task.js +0 -1
- package/packages/server/dist/completions.d.ts +0 -14
- package/packages/server/dist/completions.js +0 -1
- package/packages/server/dist/compression-interceptor.d.ts +0 -12
- package/packages/server/dist/compression-interceptor.js +0 -1
- package/packages/server/dist/config.d.ts +0 -16
- package/packages/server/dist/cross-workspace.d.ts +0 -43
- package/packages/server/dist/cross-workspace.js +0 -1
- package/packages/server/dist/curated-manager.d.ts +0 -92
- package/packages/server/dist/curated-manager.js +0 -5
- package/packages/server/dist/dashboard-static.d.ts +0 -27
- package/packages/server/dist/elicitor.d.ts +0 -18
- package/packages/server/dist/elicitor.js +0 -1
- package/packages/server/dist/idle-timer.d.ts +0 -33
- package/packages/server/dist/idle-timer.js +0 -1
- package/packages/server/dist/mcp-logging.d.ts +0 -11
- package/packages/server/dist/mcp-logging.js +0 -1
- package/packages/server/dist/memory-monitor.d.ts +0 -37
- package/packages/server/dist/memory-monitor.js +0 -1
- package/packages/server/dist/output-schemas.d.ts +0 -244
- package/packages/server/dist/output-schemas.js +0 -1
- package/packages/server/dist/prompts.d.ts +0 -13
- package/packages/server/dist/prompts.js +0 -13
- package/packages/server/dist/replay-interceptor.d.ts +0 -23
- package/packages/server/dist/replay-interceptor.js +0 -1
- package/packages/server/dist/resource-links.d.ts +0 -34
- package/packages/server/dist/resource-links.js +0 -1
- package/packages/server/dist/resources/curated-resources.d.ts +0 -13
- package/packages/server/dist/resources/curated-resources.js +0 -2
- package/packages/server/dist/resources/resource-notifier.d.ts +0 -45
- package/packages/server/dist/resources/resource-notifier.js +0 -1
- package/packages/server/dist/resources/resources.d.ts +0 -8
- package/packages/server/dist/resources/resources.js +0 -2
- package/packages/server/dist/sampling.d.ts +0 -41
- package/packages/server/dist/sampling.js +0 -2
- package/packages/server/dist/server.d.ts +0 -63
- package/packages/server/dist/server.js +0 -3
- package/packages/server/dist/structured-content-guard.d.ts +0 -28
- package/packages/server/dist/structured-content-guard.js +0 -1
- package/packages/server/dist/task-manager.d.ts +0 -40
- package/packages/server/dist/task-manager.js +0 -1
- package/packages/server/dist/tool-metadata.d.ts +0 -38
- package/packages/server/dist/tool-metadata.js +0 -1
- package/packages/server/dist/tool-prefix.d.ts +0 -12
- package/packages/server/dist/tool-prefix.js +0 -1
- package/packages/server/dist/tool-timeout.d.ts +0 -27
- package/packages/server/dist/tool-timeout.js +0 -1
- package/packages/server/dist/tools/analyze.tools.d.ts +0 -14
- package/packages/server/dist/tools/analyze.tools.js +0 -8
- package/packages/server/dist/tools/audit.tool.d.ts +0 -8
- package/packages/server/dist/tools/audit.tool.js +0 -1
- package/packages/server/dist/tools/brainstorm.tool.d.ts +0 -7
- package/packages/server/dist/tools/brainstorm.tool.js +0 -9
- package/packages/server/dist/tools/bridge.tools.d.ts +0 -34
- package/packages/server/dist/tools/bridge.tools.js +0 -15
- package/packages/server/dist/tools/config.tool.d.ts +0 -8
- package/packages/server/dist/tools/config.tool.js +0 -12
- package/packages/server/dist/tools/context.tools.d.ts +0 -15
- package/packages/server/dist/tools/context.tools.js +0 -10
- package/packages/server/dist/tools/evolution.tools.d.ts +0 -7
- package/packages/server/dist/tools/evolution.tools.js +0 -5
- package/packages/server/dist/tools/execution.tools.d.ts +0 -14
- package/packages/server/dist/tools/execution.tools.js +0 -4
- package/packages/server/dist/tools/flow.tools.d.ts +0 -7
- package/packages/server/dist/tools/flow.tools.js +0 -16
- package/packages/server/dist/tools/forge.tools.d.ts +0 -13
- package/packages/server/dist/tools/forge.tools.js +0 -10
- package/packages/server/dist/tools/forget.tool.d.ts +0 -8
- package/packages/server/dist/tools/forget.tool.js +0 -1
- package/packages/server/dist/tools/graph.tool.d.ts +0 -7
- package/packages/server/dist/tools/graph.tool.js +0 -29
- package/packages/server/dist/tools/infra.tools.d.ts +0 -10
- package/packages/server/dist/tools/infra.tools.js +0 -5
- package/packages/server/dist/tools/list.tool.d.ts +0 -7
- package/packages/server/dist/tools/list.tool.js +0 -2
- package/packages/server/dist/tools/lookup.tool.d.ts +0 -7
- package/packages/server/dist/tools/lookup.tool.js +0 -3
- package/packages/server/dist/tools/manipulation.tools.d.ts +0 -10
- package/packages/server/dist/tools/manipulation.tools.js +0 -4
- package/packages/server/dist/tools/onboard.tool.d.ts +0 -12
- package/packages/server/dist/tools/onboard.tool.js +0 -2
- package/packages/server/dist/tools/persistence.tools.d.ts +0 -10
- package/packages/server/dist/tools/persistence.tools.js +0 -5
- package/packages/server/dist/tools/policy.tools.d.ts +0 -7
- package/packages/server/dist/tools/policy.tools.js +0 -3
- package/packages/server/dist/tools/present/browser.d.ts +0 -4
- package/packages/server/dist/tools/present/browser.js +0 -93
- package/packages/server/dist/tools/present/helpers.d.ts +0 -19
- package/packages/server/dist/tools/present/helpers.js +0 -16
- package/packages/server/dist/tools/present/html.d.ts +0 -18
- package/packages/server/dist/tools/present/html.js +0 -5
- package/packages/server/dist/tools/present/index.d.ts +0 -2
- package/packages/server/dist/tools/present/index.js +0 -1
- package/packages/server/dist/tools/present/markdown.d.ts +0 -32
- package/packages/server/dist/tools/present/markdown.js +0 -11
- package/packages/server/dist/tools/present/templates.d.ts +0 -14
- package/packages/server/dist/tools/present/templates.js +0 -472
- package/packages/server/dist/tools/present/tool.d.ts +0 -27
- package/packages/server/dist/tools/present/tool.js +0 -39
- package/packages/server/dist/tools/present-blocks.d.ts +0 -46
- package/packages/server/dist/tools/present-blocks.js +0 -27
- package/packages/server/dist/tools/present-charts.d.ts +0 -31
- package/packages/server/dist/tools/present-charts.js +0 -34
- package/packages/server/dist/tools/present-theme.d.ts +0 -14
- package/packages/server/dist/tools/present-theme.js +0 -396
- package/packages/server/dist/tools/present-utils.d.ts +0 -11
- package/packages/server/dist/tools/present-utils.js +0 -1
- package/packages/server/dist/tools/present.tool.d.ts +0 -2
- package/packages/server/dist/tools/present.tool.js +0 -1
- package/packages/server/dist/tools/produce.tool.d.ts +0 -7
- package/packages/server/dist/tools/produce.tool.js +0 -4
- package/packages/server/dist/tools/read.tool.d.ts +0 -7
- package/packages/server/dist/tools/read.tool.js +0 -2
- package/packages/server/dist/tools/reindex.tool.d.ts +0 -11
- package/packages/server/dist/tools/reindex.tool.js +0 -9
- package/packages/server/dist/tools/remember.tool.d.ts +0 -9
- package/packages/server/dist/tools/remember.tool.js +0 -4
- package/packages/server/dist/tools/replay.tool.d.ts +0 -6
- package/packages/server/dist/tools/replay.tool.js +0 -3
- package/packages/server/dist/tools/restore.tool.d.ts +0 -6
- package/packages/server/dist/tools/restore.tool.js +0 -3
- package/packages/server/dist/tools/search.tool.d.ts +0 -11
- package/packages/server/dist/tools/search.tool.js +0 -10
- package/packages/server/dist/tools/status.tool.d.ts +0 -28
- package/packages/server/dist/tools/status.tool.js +0 -3
- package/packages/server/dist/tools/update.tool.d.ts +0 -8
- package/packages/server/dist/tools/update.tool.js +0 -1
- package/packages/server/dist/tools/utility.tools.d.ts +0 -15
- package/packages/server/dist/tools/utility.tools.js +0 -13
- package/packages/server/dist/version-check.d.ts +0 -32
- package/packages/store/dist/graph-store.interface.d.ts +0 -159
- package/packages/store/dist/graph-store.interface.js +0 -1
- package/packages/store/dist/lance-store.d.ts +0 -46
- package/packages/store/dist/lance-store.js +0 -1
- package/packages/store/dist/sqlite-graph-store.d.ts +0 -57
- package/packages/store/dist/sqlite-graph-store.js +0 -90
- package/packages/store/dist/store-factory.d.ts +0 -12
- package/packages/store/dist/store-factory.js +0 -1
- package/packages/store/dist/store.interface.d.ts +0 -54
- package/packages/store/dist/store.interface.js +0 -1
- package/packages/tools/dist/audit.d.ts +0 -65
- package/packages/tools/dist/audit.js +0 -6
- package/packages/tools/dist/batch.d.ts +0 -23
- package/packages/tools/dist/batch.js +0 -1
- package/packages/tools/dist/changelog.d.ts +0 -36
- package/packages/tools/dist/changelog.js +0 -2
- package/packages/tools/dist/check.d.ts +0 -48
- package/packages/tools/dist/check.js +0 -2
- package/packages/tools/dist/checkpoint.d.ts +0 -19
- package/packages/tools/dist/checkpoint.js +0 -1
- package/packages/tools/dist/codemod.d.ts +0 -39
- package/packages/tools/dist/codemod.js +0 -2
- package/packages/tools/dist/compact.d.ts +0 -47
- package/packages/tools/dist/compact.js +0 -3
- package/packages/tools/dist/compress-output.d.ts +0 -38
- package/packages/tools/dist/compress-output.js +0 -1
- package/packages/tools/dist/compression/delta-cache.d.ts +0 -29
- package/packages/tools/dist/compression/delta-cache.js +0 -1
- package/packages/tools/dist/compression/engine.d.ts +0 -34
- package/packages/tools/dist/compression/engine.js +0 -4
- package/packages/tools/dist/compression/litm.d.ts +0 -20
- package/packages/tools/dist/compression/litm.js +0 -1
- package/packages/tools/dist/compression/mmr.d.ts +0 -24
- package/packages/tools/dist/compression/mmr.js +0 -1
- package/packages/tools/dist/compression/rules/docker.d.ts +0 -11
- package/packages/tools/dist/compression/rules/docker.js +0 -3
- package/packages/tools/dist/compression/rules/generic.d.ts +0 -11
- package/packages/tools/dist/compression/rules/generic.js +0 -3
- package/packages/tools/dist/compression/rules/git.d.ts +0 -11
- package/packages/tools/dist/compression/rules/git.js +0 -3
- package/packages/tools/dist/compression/rules/index.d.ts +0 -14
- package/packages/tools/dist/compression/rules/index.js +0 -1
- package/packages/tools/dist/compression/rules/kubectl.d.ts +0 -11
- package/packages/tools/dist/compression/rules/kubectl.js +0 -3
- package/packages/tools/dist/compression/rules/lint.d.ts +0 -11
- package/packages/tools/dist/compression/rules/lint.js +0 -3
- package/packages/tools/dist/compression/rules/npm.d.ts +0 -11
- package/packages/tools/dist/compression/rules/npm.js +0 -3
- package/packages/tools/dist/compression/rules/test-runner.d.ts +0 -11
- package/packages/tools/dist/compression/rules/test-runner.js +0 -3
- package/packages/tools/dist/compression/scoring.d.ts +0 -26
- package/packages/tools/dist/compression/scoring.js +0 -1
- package/packages/tools/dist/compression/types.d.ts +0 -61
- package/packages/tools/dist/compression/types.js +0 -1
- package/packages/tools/dist/config-extractor.d.ts +0 -9
- package/packages/tools/dist/config-extractor.js +0 -7
- package/packages/tools/dist/data-transform.d.ts +0 -12
- package/packages/tools/dist/data-transform.js +0 -1
- package/packages/tools/dist/dead-symbols.d.ts +0 -28
- package/packages/tools/dist/dead-symbols.js +0 -2
- package/packages/tools/dist/delegate.d.ts +0 -36
- package/packages/tools/dist/delegate.js +0 -1
- package/packages/tools/dist/diagram-builder.d.ts +0 -9
- package/packages/tools/dist/diagram-builder.js +0 -9
- package/packages/tools/dist/diff-parse.d.ts +0 -28
- package/packages/tools/dist/diff-parse.js +0 -3
- package/packages/tools/dist/digest.d.ts +0 -55
- package/packages/tools/dist/digest.js +0 -6
- package/packages/tools/dist/dogfood-log.d.ts +0 -49
- package/packages/tools/dist/dogfood-log.js +0 -2
- package/packages/tools/dist/encode.d.ts +0 -16
- package/packages/tools/dist/encode.js +0 -1
- package/packages/tools/dist/env-info.d.ts +0 -30
- package/packages/tools/dist/env-info.js +0 -1
- package/packages/tools/dist/eval.d.ts +0 -15
- package/packages/tools/dist/eval.js +0 -2
- package/packages/tools/dist/evidence-map.d.ts +0 -92
- package/packages/tools/dist/evidence-map.js +0 -2
- package/packages/tools/dist/file-cache.d.ts +0 -41
- package/packages/tools/dist/file-cache.js +0 -3
- package/packages/tools/dist/file-summary.d.ts +0 -52
- package/packages/tools/dist/file-summary.js +0 -2
- package/packages/tools/dist/file-walk.d.ts +0 -6
- package/packages/tools/dist/file-walk.js +0 -1
- package/packages/tools/dist/find-examples.d.ts +0 -29
- package/packages/tools/dist/find-examples.js +0 -3
- package/packages/tools/dist/find.d.ts +0 -49
- package/packages/tools/dist/find.js +0 -1
- package/packages/tools/dist/forge-classify.d.ts +0 -44
- package/packages/tools/dist/forge-classify.js +0 -2
- package/packages/tools/dist/forge-ground.d.ts +0 -61
- package/packages/tools/dist/forge-ground.js +0 -1
- package/packages/tools/dist/git-context.d.ts +0 -25
- package/packages/tools/dist/git-context.js +0 -3
- package/packages/tools/dist/graph-query.d.ts +0 -98
- package/packages/tools/dist/graph-query.js +0 -1
- package/packages/tools/dist/guide.d.ts +0 -25
- package/packages/tools/dist/guide.js +0 -1
- package/packages/tools/dist/health.d.ts +0 -16
- package/packages/tools/dist/health.js +0 -2
- package/packages/tools/dist/http-request.d.ts +0 -25
- package/packages/tools/dist/http-request.js +0 -1
- package/packages/tools/dist/lane.d.ts +0 -41
- package/packages/tools/dist/lane.js +0 -6
- package/packages/tools/dist/measure.d.ts +0 -42
- package/packages/tools/dist/measure.js +0 -2
- package/packages/tools/dist/onboard-utils.d.ts +0 -12
- package/packages/tools/dist/onboard-utils.js +0 -1
- package/packages/tools/dist/onboard.d.ts +0 -50
- package/packages/tools/dist/onboard.js +0 -18
- package/packages/tools/dist/parse-output.d.ts +0 -84
- package/packages/tools/dist/parse-output.js +0 -2
- package/packages/tools/dist/path-resolver.d.ts +0 -14
- package/packages/tools/dist/path-resolver.js +0 -1
- package/packages/tools/dist/process-manager.d.ts +0 -20
- package/packages/tools/dist/process-manager.js +0 -1
- package/packages/tools/dist/queue.d.ts +0 -40
- package/packages/tools/dist/queue.js +0 -1
- package/packages/tools/dist/regex-test.d.ts +0 -33
- package/packages/tools/dist/regex-test.js +0 -1
- package/packages/tools/dist/regex-utils.d.ts +0 -8
- package/packages/tools/dist/regex-utils.js +0 -1
- package/packages/tools/dist/rename.d.ts +0 -31
- package/packages/tools/dist/rename.js +0 -2
- package/packages/tools/dist/replay.d.ts +0 -59
- package/packages/tools/dist/replay.js +0 -4
- package/packages/tools/dist/response-envelope.d.ts +0 -43
- package/packages/tools/dist/response-envelope.js +0 -1
- package/packages/tools/dist/restore-points.d.ts +0 -22
- package/packages/tools/dist/restore-points.js +0 -1
- package/packages/tools/dist/schema-validate.d.ts +0 -25
- package/packages/tools/dist/schema-validate.js +0 -1
- package/packages/tools/dist/scope-map.d.ts +0 -51
- package/packages/tools/dist/scope-map.js +0 -1
- package/packages/tools/dist/snippet.d.ts +0 -35
- package/packages/tools/dist/snippet.js +0 -1
- package/packages/tools/dist/stash.d.ts +0 -14
- package/packages/tools/dist/stash.js +0 -1
- package/packages/tools/dist/stratum-card.d.ts +0 -30
- package/packages/tools/dist/stratum-card.js +0 -4
- package/packages/tools/dist/symbol.d.ts +0 -45
- package/packages/tools/dist/symbol.js +0 -3
- package/packages/tools/dist/synthesis-engine.d.ts +0 -13
- package/packages/tools/dist/synthesis-engine.js +0 -6
- package/packages/tools/dist/test-run.d.ts +0 -28
- package/packages/tools/dist/test-run.js +0 -2
- package/packages/tools/dist/text-utils.d.ts +0 -24
- package/packages/tools/dist/text-utils.js +0 -2
- package/packages/tools/dist/time-utils.d.ts +0 -20
- package/packages/tools/dist/time-utils.js +0 -1
- package/packages/tools/dist/trace.d.ts +0 -43
- package/packages/tools/dist/trace.js +0 -2
- package/packages/tools/dist/truncation.d.ts +0 -66
- package/packages/tools/dist/truncation.js +0 -11
- package/packages/tools/dist/watch.d.ts +0 -32
- package/packages/tools/dist/watch.js +0 -1
- package/packages/tools/dist/web-fetch.d.ts +0 -47
- package/packages/tools/dist/web-fetch.js +0 -8
- package/packages/tools/dist/web-search.d.ts +0 -25
- package/packages/tools/dist/web-search.js +0 -1
- package/packages/tools/dist/workset.d.ts +0 -47
- package/packages/tools/dist/workset.js +0 -1
- package/scaffold/__tests__/copilot-inline-shared-protocols.test.mjs +0 -39
- /package/packages/server/dist/{config.js → config-C5IU9Lau.js} +0 -0
- /package/packages/server/dist/{dashboard-static.js → dashboard-static-BfIe0Si1.js} +0 -0
- /package/packages/server/dist/{version-check.js → version-check-D4j0Pykd.js} +0 -0
|
@@ -1,19 +1,452 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { ChunkMetadata, RawChunk } from "../../core/dist/index.js";
|
|
2
|
+
|
|
3
|
+
//#region packages/chunker/src/call-graph-extractor.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Call-graph extractor using tree-sitter AST.
|
|
6
|
+
*
|
|
7
|
+
* Extracts function-level call sites from parsed code, producing
|
|
8
|
+
* caller→callee edges for blast-radius and dependency analysis.
|
|
9
|
+
*/
|
|
10
|
+
interface CallEdge$1 {
|
|
11
|
+
/** File containing the call */
|
|
12
|
+
callerFile: string;
|
|
13
|
+
/** Function/method making the call (or '<module>' for top-level) */
|
|
14
|
+
callerName: string;
|
|
15
|
+
/** Name of the function/method being called */
|
|
16
|
+
calleeName: string;
|
|
17
|
+
/** 1-based line number of the call site */
|
|
18
|
+
line: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Extract call edges from a source file using tree-sitter AST.
|
|
22
|
+
* Prefers WASM runtime; falls back to native tree-sitter.
|
|
23
|
+
* Returns null if neither runtime is available or doesn't support the language.
|
|
24
|
+
*/
|
|
25
|
+
declare function extractCallEdges(content: string, filePath: string): CallEdge$1[] | null;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region packages/chunker/src/chunker.interface.d.ts
|
|
28
|
+
/**
|
|
29
|
+
* Interface for content chunkers.
|
|
30
|
+
* Each chunker splits a specific content type into searchable chunks.
|
|
31
|
+
*/
|
|
32
|
+
interface IChunker {
|
|
33
|
+
/** Split content into chunks */
|
|
34
|
+
chunk(content: string, metadata: ChunkMetadata): RawChunk[];
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region packages/chunker/src/chunker-factory.d.ts
|
|
38
|
+
/**
|
|
39
|
+
* Create the appropriate chunker for a file extension.
|
|
40
|
+
*
|
|
41
|
+
* Uses WASM tree-sitter AST-based chunking when available.
|
|
42
|
+
* Falls back to regex-based CodeChunker.
|
|
43
|
+
*
|
|
44
|
+
* **Breaking change**: Now returns `Promise<IChunker>` because WASM init is async.
|
|
45
|
+
*/
|
|
46
|
+
declare function createChunker(fileExtension: string): Promise<IChunker>;
|
|
47
|
+
/**
|
|
48
|
+
* Create a chunker synchronously (legacy API).
|
|
49
|
+
* Uses whatever runtime is already initialized.
|
|
50
|
+
*/
|
|
51
|
+
declare function createChunkerSync(fileExtension: string): IChunker;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region packages/chunker/src/code-chunker.d.ts
|
|
54
|
+
declare class CodeChunker implements IChunker {
|
|
55
|
+
private readonly maxChunkSize;
|
|
56
|
+
constructor(options?: {
|
|
57
|
+
maxChunkSize?: number;
|
|
58
|
+
});
|
|
59
|
+
chunk(content: string, metadata: ChunkMetadata): RawChunk[];
|
|
60
|
+
private findDeclarationBoundaries;
|
|
61
|
+
private fallbackChunk;
|
|
62
|
+
private splitByLines;
|
|
63
|
+
private getLineNumber;
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region packages/chunker/src/extractors/call-extractor.d.ts
|
|
67
|
+
/**
|
|
68
|
+
* AST-based call extractor.
|
|
69
|
+
*
|
|
70
|
+
* Replaces regex-based call graph analysis with tree-sitter AST queries.
|
|
71
|
+
* Returns `CallEdge[]` compatible with the existing call-graph-extractor.
|
|
72
|
+
*/
|
|
73
|
+
interface CallEdge {
|
|
74
|
+
callerFile: string;
|
|
75
|
+
callerName: string;
|
|
76
|
+
calleeName: string;
|
|
77
|
+
line: number;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Extract call edges from source code using AST queries.
|
|
81
|
+
*
|
|
82
|
+
* @param content - The source code to analyze.
|
|
83
|
+
* @param ext - The file extension (e.g., `.ts`, `.py`).
|
|
84
|
+
* @param filePath - The file path for the returned CallEdge records.
|
|
85
|
+
* @returns Array of extracted call edges, or empty array if language unsupported.
|
|
86
|
+
*/
|
|
87
|
+
declare function extractCalls(content: string, ext: string, filePath?: string): Promise<CallEdge[]>;
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region packages/chunker/src/extractors/types.d.ts
|
|
90
|
+
/**
|
|
91
|
+
* Shared type definitions for AST extractors.
|
|
92
|
+
*
|
|
93
|
+
* These types match the interfaces in `@aikit/analyzers/types.ts` so that
|
|
94
|
+
* downstream consumers can seamlessly switch from regex-based to AST-based extraction.
|
|
95
|
+
*/
|
|
96
|
+
interface SymbolInfo {
|
|
97
|
+
name: string;
|
|
98
|
+
kind: 'function' | 'class' | 'interface' | 'type' | 'const' | 'enum' | 'variable' | 'method';
|
|
99
|
+
exported: boolean;
|
|
100
|
+
filePath: string;
|
|
101
|
+
line: number;
|
|
102
|
+
signature?: string;
|
|
103
|
+
/** Return type annotation (e.g. "Promise<void>", "string") */
|
|
104
|
+
returnType?: string;
|
|
105
|
+
/** First line of JSDoc/docstring */
|
|
106
|
+
jsdoc?: string;
|
|
107
|
+
/** Decorator names (e.g. ["@Controller('/api')", "@Injectable"]) */
|
|
108
|
+
decorators?: string[];
|
|
109
|
+
/** Condensed body for interfaces/types (e.g. "{ id: string; name: string }") */
|
|
110
|
+
typeBody?: string;
|
|
111
|
+
}
|
|
112
|
+
interface ImportInfo {
|
|
113
|
+
source: string;
|
|
114
|
+
specifiers: string[];
|
|
115
|
+
filePath: string;
|
|
116
|
+
isExternal: boolean;
|
|
117
|
+
confidence: 'high' | 'medium' | 'low';
|
|
118
|
+
}
|
|
119
|
+
interface PatternMatch {
|
|
120
|
+
pattern: string;
|
|
121
|
+
description: string;
|
|
122
|
+
locations: string[];
|
|
123
|
+
confidence: 'high' | 'medium' | 'low';
|
|
124
|
+
}
|
|
125
|
+
interface EntryPoint {
|
|
126
|
+
name: string;
|
|
127
|
+
type: 'lambda-handler' | 'main' | 'bin' | 'server' | 'cli' | 'test' | 'cdk-construct';
|
|
128
|
+
filePath: string;
|
|
129
|
+
trigger?: string;
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region packages/chunker/src/extractors/entry-point-detector.d.ts
|
|
133
|
+
/**
|
|
134
|
+
* Detect entry points from source code using AST queries.
|
|
135
|
+
*
|
|
136
|
+
* @param content - The source code to analyze.
|
|
137
|
+
* @param ext - The file extension (e.g., `.ts`, `.py`).
|
|
138
|
+
* @param filePath - The file path for the returned EntryPoint records.
|
|
139
|
+
* @returns Array of detected entry points, or empty array if language unsupported.
|
|
140
|
+
*/
|
|
141
|
+
declare function detectEntryPoints(content: string, ext: string, filePath?: string): Promise<EntryPoint[]>;
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region packages/chunker/src/extractors/import-extractor.d.ts
|
|
144
|
+
/**
|
|
145
|
+
* Extract imports from source code using AST queries.
|
|
146
|
+
*
|
|
147
|
+
* @param content - The source code to analyze.
|
|
148
|
+
* @param ext - The file extension (e.g., `.ts`, `.py`).
|
|
149
|
+
* @param filePath - The file path for the returned ImportInfo records.
|
|
150
|
+
* @returns Array of extracted imports, or empty array if language unsupported.
|
|
151
|
+
*/
|
|
152
|
+
declare function extractImports(content: string, ext: string, filePath?: string): Promise<ImportInfo[]>;
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region packages/chunker/src/extractors/pattern-detector.d.ts
|
|
155
|
+
/**
|
|
156
|
+
* Detect design patterns from source code using AST queries.
|
|
157
|
+
*
|
|
158
|
+
* @param content - The source code to analyze.
|
|
159
|
+
* @param ext - The file extension (e.g., `.ts`, `.py`).
|
|
160
|
+
* @param filePath - The file path for location info.
|
|
161
|
+
* @returns Array of detected patterns, or empty array if language unsupported.
|
|
162
|
+
*/
|
|
163
|
+
declare function detectPatterns(content: string, ext: string, filePath?: string): Promise<PatternMatch[]>;
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region packages/chunker/src/extractors/scope-resolver.d.ts
|
|
166
|
+
/**
|
|
167
|
+
* AST-based scope resolver.
|
|
168
|
+
*
|
|
169
|
+
* NEW capability: resolves the enclosing scope (function/class/module) for any
|
|
170
|
+
* AST node. Used by other extractors to determine caller context.
|
|
171
|
+
*/
|
|
172
|
+
interface ScopeInfo {
|
|
173
|
+
/** Name of the enclosing scope (or '<module>' for top-level). */
|
|
174
|
+
name: string;
|
|
175
|
+
/** The scope type (function, class, module). */
|
|
176
|
+
type: 'function' | 'class' | 'module';
|
|
177
|
+
/** 1-based start line of the scope. */
|
|
178
|
+
line: number;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Resolve the enclosing scope chain for a given line in source code.
|
|
182
|
+
*
|
|
183
|
+
* @param content - The source code to analyze.
|
|
184
|
+
* @param ext - The file extension.
|
|
185
|
+
* @param targetLine - 1-based line number to resolve scope for.
|
|
186
|
+
* @returns Array of scopes from innermost to outermost, ending with module.
|
|
187
|
+
*/
|
|
188
|
+
declare function resolveScopes(content: string, ext: string, targetLine: number): Promise<ScopeInfo[]>;
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region packages/chunker/src/extractors/symbol-extractor.d.ts
|
|
191
|
+
/**
|
|
192
|
+
* Extract symbols from source code using AST queries.
|
|
193
|
+
*
|
|
194
|
+
* @param content - The source code to analyze.
|
|
195
|
+
* @param ext - The file extension (e.g., `.ts`, `.py`).
|
|
196
|
+
* @param filePath - The file path for the returned SymbolInfo records.
|
|
197
|
+
* @returns Array of extracted symbols, or empty array if language unsupported.
|
|
198
|
+
*/
|
|
199
|
+
declare function extractSymbols(content: string, ext: string, filePath?: string): Promise<SymbolInfo[]>;
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region packages/chunker/src/generic-chunker.d.ts
|
|
202
|
+
declare class GenericChunker implements IChunker {
|
|
203
|
+
private readonly maxChunkSize;
|
|
204
|
+
private readonly overlap;
|
|
205
|
+
constructor(options?: {
|
|
206
|
+
maxChunkSize?: number;
|
|
207
|
+
overlap?: number;
|
|
208
|
+
});
|
|
209
|
+
chunk(content: string, metadata: ChunkMetadata): RawChunk[];
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region packages/chunker/src/markdown-chunker.d.ts
|
|
213
|
+
declare class MarkdownChunker implements IChunker {
|
|
214
|
+
private readonly maxChunkSize;
|
|
215
|
+
private readonly minChunkSize;
|
|
216
|
+
constructor(options?: {
|
|
217
|
+
maxChunkSize?: number;
|
|
218
|
+
minChunkSize?: number;
|
|
219
|
+
});
|
|
220
|
+
chunk(content: string, metadata: ChunkMetadata): RawChunk[];
|
|
221
|
+
private splitByHeadings;
|
|
222
|
+
private splitByParagraphs;
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region packages/chunker/src/wasm/languages.d.ts
|
|
226
|
+
/**
|
|
227
|
+
* Language registry for web-tree-sitter WASM grammars.
|
|
228
|
+
*
|
|
229
|
+
* Maps file extensions to vendored .wasm grammar file names
|
|
230
|
+
* and resolves their absolute paths on disk.
|
|
231
|
+
*/
|
|
232
|
+
/** All supported extensions. */
|
|
233
|
+
declare const SUPPORTED_EXTENSIONS: Set<string>;
|
|
234
|
+
/**
|
|
235
|
+
* Resolve the absolute path to a vendored .wasm grammar file for a given extension.
|
|
236
|
+
* Returns null if the extension is not supported or the file doesn't exist.
|
|
237
|
+
*/
|
|
238
|
+
declare function resolveGrammarPath(ext: string): string | null;
|
|
239
|
+
/** Resolve the parser runtime WASM path. */
|
|
240
|
+
declare function resolveParserWasmPath(): string | null;
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region packages/chunker/src/wasm/types.d.ts
|
|
243
|
+
/**
|
|
244
|
+
* Minimal type definitions for web-tree-sitter 0.24.x.
|
|
245
|
+
*
|
|
246
|
+
* web-tree-sitter uses `export = Parser` (CJS-style) which doesn't interop
|
|
247
|
+
* cleanly with ESM `import type` under `moduleResolution: NodeNext` without
|
|
248
|
+
* `esModuleInterop`. We define our own interfaces for the subset we use.
|
|
249
|
+
*/
|
|
250
|
+
interface WasmPoint {
|
|
251
|
+
row: number;
|
|
252
|
+
column: number;
|
|
253
|
+
}
|
|
254
|
+
interface WasmSyntaxNode {
|
|
255
|
+
type: string;
|
|
256
|
+
text: string;
|
|
257
|
+
startPosition: WasmPoint;
|
|
258
|
+
endPosition: WasmPoint;
|
|
259
|
+
startIndex: number;
|
|
260
|
+
endIndex: number;
|
|
261
|
+
children: WasmSyntaxNode[];
|
|
262
|
+
namedChildren: WasmSyntaxNode[];
|
|
263
|
+
childCount: number;
|
|
264
|
+
namedChildCount: number;
|
|
265
|
+
parent: WasmSyntaxNode | null;
|
|
266
|
+
nextSibling: WasmSyntaxNode | null;
|
|
267
|
+
previousSibling: WasmSyntaxNode | null;
|
|
268
|
+
nextNamedSibling: WasmSyntaxNode | null;
|
|
269
|
+
previousNamedSibling: WasmSyntaxNode | null;
|
|
270
|
+
isNamed: boolean;
|
|
271
|
+
firstChild: WasmSyntaxNode | null;
|
|
272
|
+
lastChild: WasmSyntaxNode | null;
|
|
273
|
+
firstNamedChild: WasmSyntaxNode | null;
|
|
274
|
+
lastNamedChild: WasmSyntaxNode | null;
|
|
275
|
+
childForFieldName(fieldName: string): WasmSyntaxNode | null;
|
|
276
|
+
descendantsOfType(types: string | string[], startPosition?: WasmPoint, endPosition?: WasmPoint): WasmSyntaxNode[];
|
|
277
|
+
}
|
|
278
|
+
interface WasmTree {
|
|
279
|
+
rootNode: WasmSyntaxNode;
|
|
280
|
+
delete(): void;
|
|
281
|
+
}
|
|
282
|
+
interface WasmLanguage {
|
|
283
|
+
query(source: string): WasmQuery;
|
|
284
|
+
readonly version: number;
|
|
285
|
+
readonly fieldCount: number;
|
|
286
|
+
}
|
|
287
|
+
interface WasmQuery {
|
|
288
|
+
matches(rootNode: WasmSyntaxNode, options?: {
|
|
289
|
+
startPosition?: WasmPoint;
|
|
290
|
+
endPosition?: WasmPoint;
|
|
291
|
+
matchLimit?: number;
|
|
292
|
+
}): WasmQueryMatch[];
|
|
293
|
+
captures(rootNode: WasmSyntaxNode, options?: {
|
|
294
|
+
startPosition?: WasmPoint;
|
|
295
|
+
endPosition?: WasmPoint;
|
|
296
|
+
matchLimit?: number;
|
|
297
|
+
}): WasmQueryCapture[];
|
|
298
|
+
captureNames: string[];
|
|
299
|
+
delete(): void;
|
|
300
|
+
}
|
|
301
|
+
interface WasmQueryMatch {
|
|
302
|
+
pattern: number;
|
|
303
|
+
captures: WasmQueryCapture[];
|
|
304
|
+
}
|
|
305
|
+
interface WasmQueryCapture {
|
|
306
|
+
name: string;
|
|
307
|
+
node: WasmSyntaxNode;
|
|
308
|
+
}
|
|
309
|
+
interface WasmParser {
|
|
310
|
+
parse(input: string): WasmTree;
|
|
311
|
+
setLanguage(language: WasmLanguage | null): void;
|
|
312
|
+
delete(): void;
|
|
313
|
+
}
|
|
314
|
+
/** The Parser constructor + statics as returned by web-tree-sitter. */
|
|
315
|
+
interface WasmParserModule {
|
|
316
|
+
new (): WasmParser;
|
|
317
|
+
init(moduleOptions?: {
|
|
318
|
+
locateFile?: (scriptName: string, scriptDirectory: string) => string;
|
|
319
|
+
}): Promise<void>;
|
|
320
|
+
Language: {
|
|
321
|
+
load(input: string | Uint8Array): Promise<WasmLanguage>;
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region packages/chunker/src/wasm/query-executor.d.ts
|
|
326
|
+
/** Known query types that can be loaded. */
|
|
327
|
+
type QueryType = 'symbols' | 'imports' | 'calls' | 'patterns' | 'entry-points';
|
|
328
|
+
/** Structured result from a single query match. */
|
|
329
|
+
interface QueryResult {
|
|
330
|
+
/** The pattern index within the .scm file that matched. */
|
|
331
|
+
pattern: number;
|
|
332
|
+
/** All captures in this match, keyed by capture name → node info. */
|
|
333
|
+
captures: Map<string, CaptureInfo>;
|
|
334
|
+
}
|
|
335
|
+
/** Information about a single captured node. */
|
|
336
|
+
interface CaptureInfo {
|
|
337
|
+
/** The capture name (e.g., 'name', 'node', 'kind'). */
|
|
338
|
+
name: string;
|
|
339
|
+
/** The captured node's text content. */
|
|
340
|
+
text: string;
|
|
341
|
+
/** AST node type (e.g., 'function_declaration', 'identifier'). */
|
|
342
|
+
nodeType: string;
|
|
343
|
+
/** 0-based start line. */
|
|
344
|
+
startLine: number;
|
|
345
|
+
/** 0-based end line. */
|
|
346
|
+
endLine: number;
|
|
347
|
+
/** 0-based start column. */
|
|
348
|
+
startColumn: number;
|
|
349
|
+
/** 0-based end column. */
|
|
350
|
+
endColumn: number;
|
|
351
|
+
/** The raw AST node (for advanced traversal). */
|
|
352
|
+
node: WasmSyntaxNode;
|
|
353
|
+
}
|
|
354
|
+
declare class QueryExecutor {
|
|
355
|
+
/** Cache: `"typescript:symbols"` → compiled WasmQuery */
|
|
356
|
+
private queryCache;
|
|
357
|
+
/** Cache: loaded .scm source text to avoid re-reading disk. */
|
|
358
|
+
private scmCache;
|
|
359
|
+
/**
|
|
360
|
+
* Execute a query type against a parsed AST tree.
|
|
361
|
+
*
|
|
362
|
+
* @param rootNode - The root node of a parsed AST tree.
|
|
363
|
+
* @param language - The Language object for the parsed file.
|
|
364
|
+
* @param ext - The file extension (e.g., `.ts`).
|
|
365
|
+
* @param queryType - Which query to execute (e.g., `'symbols'`).
|
|
366
|
+
* @returns Array of structured results, or empty array if query not found.
|
|
367
|
+
*/
|
|
368
|
+
execute(rootNode: WasmSyntaxNode, language: WasmLanguage, ext: string, queryType: QueryType): QueryResult[];
|
|
369
|
+
/**
|
|
370
|
+
* Execute a query and return flat captures instead of grouped matches.
|
|
371
|
+
* Useful when you care about individual nodes, not match grouping.
|
|
372
|
+
*/
|
|
373
|
+
executeCaptures(rootNode: WasmSyntaxNode, language: WasmLanguage, ext: string, queryType: QueryType): CaptureInfo[];
|
|
374
|
+
/**
|
|
375
|
+
* Execute a raw .scm query string (not from file) against a tree.
|
|
376
|
+
* Useful for ad-hoc queries and testing.
|
|
377
|
+
*/
|
|
378
|
+
executeRaw(rootNode: WasmSyntaxNode, language: WasmLanguage, scmSource: string): QueryResult[];
|
|
379
|
+
/**
|
|
380
|
+
* Get (or compile and cache) a query for the given language + type.
|
|
381
|
+
* Returns null if the .scm file doesn't exist.
|
|
382
|
+
*/
|
|
383
|
+
private getOrCompile;
|
|
384
|
+
/** Load .scm file content, cached. Returns null if file not found. */
|
|
385
|
+
private loadScm;
|
|
386
|
+
/** Clear all caches. */
|
|
387
|
+
dispose(): void;
|
|
388
|
+
/** Resolve the directory path for a language's queries. */
|
|
389
|
+
static resolveQueryDir(langDir: string): string;
|
|
390
|
+
}
|
|
391
|
+
//#endregion
|
|
392
|
+
//#region packages/chunker/src/wasm/runtime.d.ts
|
|
393
|
+
declare class WasmRuntime {
|
|
394
|
+
private static instance;
|
|
395
|
+
private parser;
|
|
396
|
+
private languages;
|
|
397
|
+
/** Track which grammar files have been loaded (by path) to avoid re-loading. */
|
|
398
|
+
private loadedGrammars;
|
|
399
|
+
/** Initialize the singleton runtime. Returns the instance or null on failure. */
|
|
400
|
+
static initialize(): Promise<WasmRuntime | null>;
|
|
401
|
+
/** Get the current runtime (null if not initialized). */
|
|
402
|
+
static get(): WasmRuntime | null;
|
|
403
|
+
/** Ensure the runtime is initialized, initializing if needed. */
|
|
404
|
+
static ensure(): Promise<WasmRuntime>;
|
|
405
|
+
/** Reset the singleton (for testing). */
|
|
406
|
+
static dispose(): void;
|
|
407
|
+
private init;
|
|
408
|
+
/**
|
|
409
|
+
* Load a language grammar for a file extension (lazy, cached).
|
|
410
|
+
* Returns the Language object or null if unsupported/unavailable.
|
|
411
|
+
*/
|
|
412
|
+
loadLanguage(ext: string): Promise<WasmLanguage | null>;
|
|
413
|
+
/**
|
|
414
|
+
* Parse source code and return the AST tree.
|
|
415
|
+
* Lazily loads the grammar on first use for the given extension.
|
|
416
|
+
*/
|
|
417
|
+
parse(content: string, ext: string): Promise<WasmTree | null>;
|
|
418
|
+
/** Check if a grammar is available (loaded or loadable) for the given extension. */
|
|
419
|
+
hasLanguage(ext: string): boolean;
|
|
420
|
+
/** Check if a grammar is already loaded for the given extension. */
|
|
421
|
+
isLanguageLoaded(ext: string): boolean;
|
|
422
|
+
/** Get the underlying parser instance (for advanced query usage). */
|
|
423
|
+
getParser(): WasmParser | null;
|
|
424
|
+
/** Get a loaded language by extension (null if not loaded yet). */
|
|
425
|
+
getLanguage(ext: string): WasmLanguage | null;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Initialize the WASM runtime. Call once at startup.
|
|
429
|
+
* Returns true if the runtime is available, false otherwise.
|
|
430
|
+
*/
|
|
431
|
+
declare function initializeWasm(): Promise<boolean>;
|
|
432
|
+
//#endregion
|
|
433
|
+
//#region packages/chunker/src/wasm-chunker.d.ts
|
|
434
|
+
declare class WasmChunker implements IChunker {
|
|
435
|
+
private readonly maxChunkSize;
|
|
436
|
+
constructor(options?: {
|
|
437
|
+
maxChunkSize?: number;
|
|
438
|
+
});
|
|
439
|
+
chunk(content: string, metadata: ChunkMetadata): RawChunk[];
|
|
440
|
+
/** Find declaration boundaries from AST top-level children. */
|
|
441
|
+
private findAstBoundaries;
|
|
442
|
+
/** Build RawChunk[] from AST boundaries, grouping consecutive preamble items. */
|
|
443
|
+
private buildChunks;
|
|
444
|
+
/** Split text by lines respecting max chunk size. */
|
|
445
|
+
private splitByLines;
|
|
446
|
+
/** Extract file extension from path. */
|
|
447
|
+
private extractExt;
|
|
448
|
+
/** Fallback: return the whole content as a single chunk. */
|
|
449
|
+
private singleChunk;
|
|
450
|
+
}
|
|
451
|
+
//#endregion
|
|
19
452
|
export { type CallEdge as AstCallEdge, type CallEdge$1 as CallEdge, type CaptureInfo, CodeChunker, type EntryPoint, GenericChunker, type IChunker, type ImportInfo, MarkdownChunker, type PatternMatch, QueryExecutor, type QueryResult, type QueryType, SUPPORTED_EXTENSIONS, type ScopeInfo, type SymbolInfo, WasmChunker, type WasmLanguage, type WasmParser, type WasmParserModule, type WasmPoint, type WasmQuery, type WasmQueryCapture, type WasmQueryMatch, WasmRuntime, type WasmSyntaxNode, type WasmTree, createChunker, createChunkerSync, detectEntryPoints, detectPatterns, extractCallEdges, extractCalls, extractImports, extractSymbols, initializeWasm, resolveGrammarPath, resolveParserWasmPath, resolveScopes };
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{dirname as e,extname as t,join as n}from"node:path";import{CHUNK_SIZES as r,createLogger as i}from"../../core/dist/index.js";import{existsSync as a,readFileSync as o}from"node:fs";import{fileURLToPath as s}from"node:url";const c=n(e(s(import.meta.url)),`..`,`..`,`wasm`),l={".ts":`tree-sitter-typescript.wasm`,".tsx":`tree-sitter-typescript.wasm`,".mts":`tree-sitter-typescript.wasm`,".cts":`tree-sitter-typescript.wasm`,".js":`tree-sitter-javascript.wasm`,".jsx":`tree-sitter-javascript.wasm`,".mjs":`tree-sitter-javascript.wasm`,".cjs":`tree-sitter-javascript.wasm`,".py":`tree-sitter-python.wasm`,".go":`tree-sitter-go.wasm`,".rs":`tree-sitter-rust.wasm`,".java":`tree-sitter-java.wasm`,".kt":`tree-sitter-kotlin.wasm`,".kts":`tree-sitter-kotlin.wasm`,".scala":`tree-sitter-scala.wasm`,".sc":`tree-sitter-scala.wasm`,".c":`tree-sitter-c.wasm`,".h":`tree-sitter-c.wasm`,".cpp":`tree-sitter-cpp.wasm`,".cc":`tree-sitter-cpp.wasm`,".cxx":`tree-sitter-cpp.wasm`,".hpp":`tree-sitter-cpp.wasm`,".hxx":`tree-sitter-cpp.wasm`,".cs":`tree-sitter-c_sharp.wasm`,".swift":`tree-sitter-swift.wasm`,".rb":`tree-sitter-ruby.wasm`,".php":`tree-sitter-php.wasm`},u=new Set(Object.keys(l));function d(e){let t=l[e];if(!t)return null;let r=n(c,t);return a(r)?r:null}function f(){let e=n(c,`tree-sitter.wasm`);return a(e)?e:null}const p=i(`wasm-runtime`);async function m(){let e=await import(`web-tree-sitter`),t=typeof e.default?.init==`function`?e.default:e.Parser;if(!t||typeof t.init!=`function`)throw Error(`Unsupported web-tree-sitter export shape: ${Object.keys(e).join(`, `)}`);return t}var h=class e{static instance=null;parser=null;languages=new Map;loadedGrammars=new Map;static async initialize(){if(e.instance)return e.instance;let t=new e;return await t.init()?(e.instance=t,t):null}static get(){return e.instance}static async ensure(){let t=e.get();if(t)return t;let n=await e.initialize();if(!n)throw Error(`Failed to initialize WASM tree-sitter runtime`);return n}static dispose(){e.instance&&=(e.instance.parser?.delete(),e.instance.parser=null,e.instance.languages.clear(),e.instance.loadedGrammars.clear(),null)}async init(){try{let e=f();if(!e)return p.warn(`Parser WASM file not found`),!1;let t=await m();return await t.init({locateFile:()=>e}),this.parser=new t,p.info(`WASM tree-sitter parser initialized`),!0}catch(e){return p.warn(`Failed to initialize WASM tree-sitter`,{error:String(e)}),!1}}async loadLanguage(e){let t=this.languages.get(e);if(t)return t;let n=d(e);if(!n)return null;let r=this.loadedGrammars.get(n);if(r)return this.languages.set(e,r),r;try{let t=await(await m()).Language.load(n);return this.loadedGrammars.set(n,t),this.languages.set(e,t),p.info(`Loaded grammar`,{ext:e}),t}catch(t){return p.warn(`Failed to load grammar`,{ext:e,error:String(t)}),null}}async parse(e,t){if(!this.parser)return null;let n=await this.loadLanguage(t);return n?(this.parser.setLanguage(n),this.parser.parse(e)):null}hasLanguage(e){return u.has(e)}isLanguageLoaded(e){return this.languages.has(e)}getParser(){return this.parser}getLanguage(e){return this.languages.get(e)??null}};async function ee(){return await h.initialize()!==null}const g=new Set([`function_declaration`,`method_definition`,`arrow_function`,`function_definition`,`function_declaration`,`method_declaration`,`function_item`,`method_declaration`,`constructor_declaration`]),_=new Set([`call_expression`,`new_expression`,`call`]);function v(e,n){let r=t(n).toLowerCase(),i=h.get();if(i?.isLanguageLoaded(r)){let t=i.getParser(),a=i.getLanguage(r);if(t&&a){t.setLanguage(a);let r=t.parse(e);if(r){let e=[];return y(r.rootNode,n,`<module>`,e),e}}}return null}function y(e,t,n,r){if(!e)return;let i=n;if(g.has(e.type)&&(i=te(e)??n),_.has(e.type)){let n=b(e);n&&r.push({callerFile:t,callerName:i,calleeName:n,line:(e.startPosition?.row??0)+1})}for(let n=0;n<(e.childCount??0);n++){let a=e.child(n);a&&y(a,t,i,r)}}function te(e){for(let t=0;t<(e.childCount??0);t++){let n=e.child(t);if(n&&(n.type===`identifier`||n.type===`property_identifier`||n.type===`name`))return n.text??null}return null}function b(e){let t=e.childForFieldName?.(`function`)??e.child(0);return t?t.type===`identifier`||t.type===`name`?t.text??null:t.type===`member_expression`||t.type===`attribute`?(t.childForFieldName?.(`property`)??t.childForFieldName?.(`attribute`))?.text??null:e.type===`new_expression`?e.child(1)?.text??null:null:null}var x=class{maxChunkSize;constructor(e){this.maxChunkSize=e?.maxChunkSize??r.code.max}chunk(e,t){let n=this.findDeclarationBoundaries(e);if(n.length===0)return this.fallbackChunk(e,t);let r=[];for(let i=0;i<n.length;i++){let a=n[i].offset,o=i+1<n.length?n[i+1].offset:e.length,s=e.slice(a,o).trim();if(s=`// File: ${t.sourcePath}\n`+s,s.length>this.maxChunkSize){let n=this.splitByLines(s,this.maxChunkSize),i=this.getLineNumber(e,a);for(let e of n){let n=e.split(`
|
|
2
|
+
`).length;r.push({text:e,sourcePath:t.sourcePath,contentType:t.contentType,chunkIndex:r.length,totalChunks:0,startLine:i,endLine:i+n-1}),i+=n}}else{let n=this.getLineNumber(e,a);r.push({text:s,sourcePath:t.sourcePath,contentType:t.contentType,chunkIndex:r.length,totalChunks:0,startLine:n,endLine:n+s.split(`
|
|
3
|
+
`).length-1})}}if(n[0].offset>0){let i=e.slice(0,n[0].offset).trim();i.length>0&&r.unshift({text:`// File: ${t.sourcePath}\n${i}`,sourcePath:t.sourcePath,contentType:t.contentType,chunkIndex:0,totalChunks:0,startLine:1,endLine:this.getLineNumber(e,n[0].offset)-1})}return r.map((e,t)=>({...e,chunkIndex:t,totalChunks:r.length}))}findDeclarationBoundaries(e){let t=/^(?:export\s+)?(?:default\s+)?(?:async\s+)?(?:function|class|interface|type|const|enum|abstract\s+class)\s+(\w+)/gm,n=[],r;for(;(r=t.exec(e))!==null;){let t=e.lastIndexOf(`
|
|
4
|
+
`,r.index-1)+1,i=t,a=e.slice(0,t).split(`
|
|
5
|
+
`),o=a.length-1;for(;o>=0;){let e=a[o].trim();if(e===``||e.startsWith(`//`)||e.startsWith(`*`)||e.startsWith(`/*`)||e.startsWith(`*/`)||e.startsWith(`@`))o--;else break}o<a.length-1&&(i=a.slice(0,o+1).join(`
|
|
6
|
+
`).length+1),n.push({offset:i,name:r[1]})}return n}fallbackChunk(e,t){return[{text:`// File: ${t.sourcePath}\n`+e,sourcePath:t.sourcePath,contentType:t.contentType,chunkIndex:0,totalChunks:1,startLine:1,endLine:e.split(`
|
|
7
|
+
`).length}]}splitByLines(e,t){let n=e.split(`
|
|
8
|
+
`),r=[],i=[],a=0;for(let e of n)a+e.length+1>t&&i.length>0?(r.push(i.join(`
|
|
9
|
+
`)),i=[e],a=e.length):(i.push(e),a+=e.length+1);return i.length>0&&r.push(i.join(`
|
|
10
|
+
`)),r}getLineNumber(e,t){return e.slice(0,t).split(`
|
|
11
|
+
`).length}},S=class{maxChunkSize;overlap;constructor(e){this.maxChunkSize=e?.maxChunkSize??r.default.max,this.overlap=e?.overlap??r.default.overlap}chunk(e,t){if(e.length<=this.maxChunkSize)return[{text:e,sourcePath:t.sourcePath,contentType:t.contentType,chunkIndex:0,totalChunks:1,startLine:1,endLine:e.split(`
|
|
12
|
+
`).length}];let n=e.split(`
|
|
13
|
+
`),r=[],i=[],a=0,o=1;for(let e=0;e<n.length;e++){let s=n[e];if(a+s.length+1>this.maxChunkSize&&i.length>0){r.push({text:i.join(`
|
|
14
|
+
`),sourcePath:t.sourcePath,contentType:t.contentType,chunkIndex:r.length,totalChunks:0,startLine:o,endLine:o+i.length-1});let e=[],n=0;for(let t=i.length-1;t>=0&&!(n+i[t].length+1>this.overlap);t--)e.unshift(i[t]),n+=i[t].length+1;o=o+i.length-e.length,i=[...e,s],a=n+s.length+1}else i.push(s),a+=s.length+1}return i.length>0&&r.push({text:i.join(`
|
|
15
|
+
`),sourcePath:t.sourcePath,contentType:t.contentType,chunkIndex:r.length,totalChunks:0,startLine:o,endLine:o+i.length-1}),r.map((e,t)=>({...e,chunkIndex:t,totalChunks:r.length}))}},C=class{maxChunkSize;minChunkSize;constructor(e){this.maxChunkSize=e?.maxChunkSize??r.markdown.max,this.minChunkSize=e?.minChunkSize??r.markdown.min}chunk(e,t){let n=this.splitByHeadings(e),r=[];for(let e of n){if(e.text.trim().length<this.minChunkSize&&r.length>0){let t=r[r.length-1];t.text+=`\n\n${e.text}`,t.endLine=e.endLine;continue}if(e.text.length>this.maxChunkSize){let n=this.splitByParagraphs(e.text,this.maxChunkSize),i=e.startLine;for(let a of n){let n=a.split(`
|
|
16
|
+
`).length;r.push({text:a,sourcePath:t.sourcePath,contentType:t.contentType,headingPath:e.headingPath,chunkIndex:r.length,totalChunks:0,startLine:i,endLine:i+n-1}),i+=n}}else r.push({text:e.text,sourcePath:t.sourcePath,contentType:t.contentType,headingPath:e.headingPath,chunkIndex:r.length,totalChunks:0,startLine:e.startLine,endLine:e.endLine})}return r.map((e,t)=>({...e,chunkIndex:t,totalChunks:r.length}))}splitByHeadings(e){let t=e.split(`
|
|
17
|
+
`),n=[],r=null,i=[],a=!1;for(let e=0;e<t.length;e++){/^```/.test(t[e])&&(a=!a);let o=a?null:t[e].match(/^(#{1,6})\s+(.+)/);if(o){r&&n.push(r);let a=o[1].length,s=o[2].trim();for(;i.length>=a;)i.pop();i.push(`${`#`.repeat(a)} ${s}`),r={text:t[e],headingPath:i.join(` > `),startLine:e+1,endLine:e+1}}else r?(r.text+=`\n${t[e]}`,r.endLine=e+1):r={text:t[e],headingPath:`(intro)`,startLine:e+1,endLine:e+1}}return r&&n.push(r),n}splitByParagraphs(e,t){let n=e.split(/\n\n+/),r=[],i=``;for(let e of n)`${i}\n\n${e}`.length>t&&i.length>0?(r.push(i.trim()),i=e):i=i?`${i}\n\n${e}`:e;return i.trim()&&r.push(i.trim()),r}};const w=new Set([`function_declaration`,`class_declaration`,`interface_declaration`,`type_alias_declaration`,`enum_declaration`,`lexical_declaration`,`variable_declaration`,`export_statement`,`function_definition`,`class_definition`,`decorated_definition`,`class_declaration`,`interface_declaration`,`enum_declaration`,`function_declaration`,`method_declaration`,`type_declaration`,`function_item`,`struct_item`,`enum_item`,`trait_item`,`impl_item`,`const_item`,`static_item`,`type_item`]),T=new Set([`import_statement`,`import_from_statement`,`import_declaration`,`package_declaration`,`use_declaration`,`extern_crate_declaration`,`import_spec`,`package_clause`]);var E=class{maxChunkSize;constructor(e){this.maxChunkSize=e?.maxChunkSize??r.code.max}chunk(e,t){let n=h.get();if(!n)return this.singleChunk(e,t);let r=this.extractExt(t.sourcePath),i=n.getLanguage(r);if(!i)return this.singleChunk(e,t);let a=n.getParser();if(!a)return this.singleChunk(e,t);a.setLanguage(i);let o=a.parse(e);if(!o)return this.singleChunk(e,t);let s=this.findAstBoundaries(o.rootNode,e);return s.length===0?this.singleChunk(e,t):this.buildChunks(s,e,t)}findAstBoundaries(e,t){let n=[];for(let t of e.children){if(!t.isNamed)continue;let e=w.has(t.type),r=T.has(t.type);(e||r)&&n.push({startOffset:t.startIndex,endOffset:t.endIndex,startLine:t.startPosition.row+1,endLine:t.endPosition.row+1,isPreamble:r})}return n}buildChunks(e,t,n){let r=[],i=null,a=0,o=0;for(let s of e){if(s.isPreamble){i===null&&(i=s.startLine),a=s.endOffset,o=s.endLine;continue}if(i!==null){let e=t.slice(0,a).trim();e.length>0&&r.push({text:`// File: ${n.sourcePath}\n${e}`,sourcePath:n.sourcePath,contentType:n.contentType,chunkIndex:0,totalChunks:0,startLine:i,endLine:o}),i=null}let e=t.slice(s.startOffset,s.endOffset).trim();if(e=`// File: ${n.sourcePath}\n`+e,e.length>this.maxChunkSize){let t=this.splitByLines(e,this.maxChunkSize),i=s.startLine;for(let e of t){let t=e.split(`
|
|
18
|
+
`).length;r.push({text:e,sourcePath:n.sourcePath,contentType:n.contentType,chunkIndex:0,totalChunks:0,startLine:i,endLine:i+t-1}),i+=t}}else r.push({text:e,sourcePath:n.sourcePath,contentType:n.contentType,chunkIndex:0,totalChunks:0,startLine:s.startLine,endLine:s.endLine})}if(i!==null){let e=t.slice(0,a).trim();e.length>0&&r.push({text:`// File: ${n.sourcePath}\n${e}`,sourcePath:n.sourcePath,contentType:n.contentType,chunkIndex:0,totalChunks:0,startLine:i,endLine:o})}return r.map((e,t)=>({...e,chunkIndex:t,totalChunks:r.length}))}splitByLines(e,t){let n=e.split(`
|
|
19
|
+
`),r=[],i=[],a=0;for(let e of n)a+e.length+1>t&&i.length>0&&(r.push(i.join(`
|
|
20
|
+
`)),i=[],a=0),i.push(e),a+=e.length+1;return i.length>0&&r.push(i.join(`
|
|
21
|
+
`)),r}extractExt(e){let t=e.lastIndexOf(`.`);return t>=0?e.slice(t).toLowerCase():``}singleChunk(e,t){return[{text:`// File: ${t.sourcePath}\n${e}`,sourcePath:t.sourcePath,contentType:t.contentType,chunkIndex:0,totalChunks:1,startLine:1,endLine:e.split(`
|
|
22
|
+
`).length}]}};async function ne(e){let t=e.toLowerCase();switch(t){case`.md`:case`.mdx`:return new C;case`.ts`:case`.tsx`:case`.mts`:case`.cts`:case`.js`:case`.jsx`:case`.mjs`:case`.cjs`:case`.py`:case`.go`:case`.rs`:case`.java`:if(u.has(t)){let e=await h.initialize();if(e)return await e.loadLanguage(t),new E}return new x;default:return new S}}function re(e){let t=e.toLowerCase();switch(t){case`.md`:case`.mdx`:return new C;case`.ts`:case`.tsx`:case`.mts`:case`.cts`:case`.js`:case`.jsx`:case`.mjs`:case`.cjs`:case`.py`:case`.go`:case`.rs`:case`.java`:return h.get()?.isLanguageLoaded(t)?new E:new x;default:return new S}}const D=i(`query-executor`),O=e(s(import.meta.url));function k(){let e=n(O,`..`,`queries`);if(a(e))return e;let t=n(O,`..`,`..`,`src`,`queries`);return a(t)?t:e}const A=k(),j={".ts":`typescript`,".tsx":`typescript`,".mts":`typescript`,".cts":`typescript`,".js":`javascript`,".jsx":`javascript`,".mjs":`javascript`,".cjs":`javascript`,".py":`python`,".go":`go`,".rs":`rust`,".java":`java`};var M=class{queryCache=new Map;scmCache=new Map;execute(e,t,n,r){let i=this.getOrCompile(t,n,r);return i?i.matches(e).map(e=>N(e)):[]}executeCaptures(e,t,n,r){let i=this.getOrCompile(t,n,r);return i?i.captures(e).map(e=>P(e)):[]}executeRaw(e,t,n){return t.query(n).matches(e).map(e=>N(e))}getOrCompile(e,t,n){let r=j[t];if(!r)return null;let i=`${r}:${n}`,a=this.queryCache.get(i);if(a)return a;let o=this.loadScm(r,n);if(!o)return null;try{let t=e.query(o);return this.queryCache.set(i,t),t}catch(e){throw D.warn(`Failed to compile query`,{langDir:r,queryType:n,error:String(e)}),Error(`Failed to compile ${r}/${n}.scm: ${String(e)}`)}}loadScm(e,t){let r=`${e}:${t}`,i=this.scmCache.get(r);if(i!==void 0)return i;let a=n(A,e,`${t}.scm`);try{let e=o(a,`utf-8`);return this.scmCache.set(r,e),e}catch{return D.info(`Query file not found (graceful skip)`,{langDir:e,queryType:t}),null}}dispose(){this.queryCache.clear(),this.scmCache.clear()}static resolveQueryDir(e){return n(A,e)}};function N(e){let t=new Map;for(let n of e.captures)t.set(n.name,P(n));return{pattern:e.pattern,captures:t}}function P(e){let{node:t}=e;return{name:e.name,text:t.text,nodeType:t.type,startLine:t.startPosition.row,endLine:t.endPosition.row,startColumn:t.startPosition.column,endColumn:t.endPosition.column,node:t}}const F=new M,I=new Set([`function_declaration`,`method_definition`,`arrow_function`,`function_definition`,`method_declaration`,`constructor_declaration`,`function_declaration`,`method_declaration`,`function_item`]);async function L(e,t,n=``){let r=await h.ensure(),i=await r.parse(e,t);if(!i)return[];let a=r.getLanguage(t);return a?F.execute(i.rootNode,a,t,`calls`).map(e=>R(e,i.rootNode,n)).filter(e=>e!==null):[]}function R(e,t,n){let r=e.captures.get(`callee`);if(!r)return null;let i=e.captures.get(`node`);return{callerFile:n,callerName:z(i?.node??r.node),calleeName:r.text,line:(i?.startLine??r.startLine)+1}}function z(e){let t=e.parent;for(;t;){if(I.has(t.type)){let e=B(t);if(e)return e}t=t.parent}return`<module>`}function B(e){let t=e.childForFieldName(`name`);if(t)return t.text;for(let t of e.children)if(t.type===`identifier`||t.type===`property_identifier`||t.type===`field_identifier`)return t.text;return null}const V=new M,H={handler:`lambda-handler`,lambdaHandler:`lambda-handler`,main:`main`,__name__:`main`,app:`server`,server:`server`,router:`server`,urlpatterns:`server`,init:`main`},U={SpringBootApplication:`server`,RestController:`server`,Controller:`server`};async function W(e,t,n=``){let r=await h.ensure(),i=await r.parse(e,t);if(!i)return[];let a=r.getLanguage(t);if(!a)return[];let o=V.execute(i.rootNode,a,t,`entry-points`),s=[],c=new Set;for(let e of o){let r=G(e,t,n);if(r){let e=`${r.name}:${r.type}`;c.has(e)||(c.add(e),s.push(r))}}return s}function G(e,t,n){let r=e.captures.get(`name`);if(!r)return null;let i=r.text,a=e.captures.get(`_parent`);if(a){let e=a.text;if([`Construct`,`Stack`,`NestedStack`,`Stage`].includes(e))return{name:i,type:`cdk-construct`,filePath:n}}let o=e.captures.get(`_ann`);if(o){let e=U[o.text];if(e)return{name:i,type:e,filePath:n}}let s=H[i];return s?{name:i,type:s,filePath:n}:t===`.go`&&i.toLowerCase().startsWith(`handle`)?{name:i,type:`server`,filePath:n,trigger:`HTTP handler`}:{name:i,type:`main`,filePath:n}}const K=new M;async function q(e,t,n=``){let r=await h.ensure(),i=await r.parse(e,t);if(!i)return[];let a=r.getLanguage(t);if(!a)return[];let o=K.execute(i.rootNode,a,t,`imports`),s=[];for(let e of o){let r=e.captures.get(`source`);if(!r){let r=e.captures.get(`node`);if(r){let e=ie(r.text,t);e&&s.push({source:e.source,specifiers:e.specifiers,filePath:n,isExternal:Y(e.source,t),confidence:`high`})}continue}let i=r.text,a=J(i,t),o=X(e.captures.get(`node`)?.text??``,t,a);s.push({source:a,specifiers:o,filePath:n,isExternal:Y(a,t),confidence:`high`})}return s}function J(e,t){let n=e.replace(/^['"`]|['"`]$/g,``);return t===`.go`&&(n=n.replace(/^"|"$/g,``)),n}function Y(e,t){return t===`.py`?!e.startsWith(`.`):t===`.go`?e.includes(`/`)||e.includes(`.`):t===`.java`?!0:t===`.rs`?!e.startsWith(`self`)&&!e.startsWith(`super`)&&!e.startsWith(`crate`):!e.startsWith(`.`)&&!e.startsWith(`/`)}function X(e,t,n){if(!e)return[n];if(t===`.py`){let t=e.match(/import\s+(.+)$/m);return t?t[1].split(`,`).map(e=>e.trim().split(/\s+as\s+/)[0].trim()).filter(Boolean):[n]}if(t===`.java`){let e=n.split(`.`);return[e[e.length-1]]}if(t===`.go`){let e=n.split(`/`);return[e[e.length-1]]}if(t===`.rs`){if(n.includes(`{`)){let e=n.match(/\{([^}]+)\}/);if(e)return e[1].split(`,`).map(e=>e.trim()).filter(Boolean)}let e=n.split(`::`);return[e[e.length-1]]}let r=e.match(/\{([^}]+)\}/);if(r)return r[1].split(`,`).map(e=>e.trim().split(/\s+as\s+/)[0].trim()).filter(Boolean);let i=e.match(/import\s+(\w+)/);return i?[i[1]]:[n]}function ie(e,t){if(t===`.py`){let t=e.match(/^import\s+([\w.]+)/);if(t)return{source:t[1],specifiers:[t[1]]}}return null}const ae=new M;async function oe(e,t,n=``){let r=await h.ensure(),i=await r.parse(e,t);if(!i)return[];let a=r.getLanguage(t);if(!a)return[];let o=ae.execute(i.rootNode,a,t,`patterns`),s=new Map;for(let e of o){let r=se(e,t);if(!r)continue;let i=e.captures.get(`name`),a=`${n}:${(e.captures.get(`node`)?.startLine??i?.startLine??0)+1}`,o=s.get(r.pattern);o?o.locations.push(a):s.set(r.pattern,{description:r.description,locations:[a]})}let c=[];for(let[e,{description:t,locations:n}]of s)c.push({pattern:e,description:t,locations:n,confidence:`high`});return c}function se(e,t){let n=e.captures.get(`name`)?.text;if(!n)return null;let r=e.captures.get(`node`)?.nodeType??``;if(/^(create|build)[A-Z]/.test(n)||/^(of|from|new)[A-Z]/.test(n))return{pattern:`factory`,description:`Factory function/method`};if(/^(register|bind)$/.test(n))return{pattern:`dependency-injection`,description:`DI container registration`};if(/^(Injectable|Component|Service|Controller|Module|Singleton|Repository|Bean)$/.test(n))return{pattern:`dependency-injection`,description:`Framework DI annotation`};if(/^(Map|WeakMap|Set)$/.test(n))return{pattern:`cached-instance`,description:`Cached Map/Set instance`};if(t===`.py`){if(n===`__new__`)return{pattern:`singleton`,description:`Singleton pattern (__new__ override)`};if(n===`__enter__`)return{pattern:`context-manager`,description:`Context manager pattern`};if(r===`decorated_definition`)return{pattern:`decorator`,description:`Decorator usage`}}if(t===`.go`){if(r===`type_declaration`)return{pattern:`interface`,description:`Interface definition`};if(r===`go_statement`)return{pattern:`concurrency`,description:`Goroutine concurrency pattern`};if(n===`make`)return{pattern:`concurrency`,description:`Channel/make pattern`}}if(t===`.rs`){if(r===`impl_item`)return{pattern:`trait-impl`,description:`Trait implementation`};if(r===`attribute_item`){if(n===`derive`)return{pattern:`derive`,description:`Derive macro attribute`};if(n===`test`)return{pattern:`test`,description:`Test attribute`}}}if(t===`.java`){if(r===`class_declaration`)return{pattern:`singleton`,description:`Singleton pattern (private constructor)`};if(r===`marker_annotation`)return{pattern:`dependency-injection`,description:`Framework DI annotation`}}if(/\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/.test(t)){if(r===`class_declaration`)return{pattern:`singleton`,description:`Singleton pattern (private constructor)`};if(r===`decorator`)return{pattern:`decorator`,description:`Framework decorator pattern`}}return{pattern:r||`unknown`,description:`Detected pattern: ${n}`}}const ce=new Set([`function_declaration`,`method_definition`,`arrow_function`,`class_declaration`,`function_definition`,`class_definition`,`method_declaration`,`constructor_declaration`,`class_declaration`,`function_declaration`,`method_declaration`,`function_item`,`impl_item`]);async function le(e,t,n){let r=await(await h.ensure()).parse(e,t);if(!r)return[{name:`<module>`,type:`module`,line:1}];let i=ue(r.rootNode,n-1);if(!i)return[{name:`<module>`,type:`module`,line:1}];let a=[];return de(i,a),a.push({name:`<module>`,type:`module`,line:1}),a}function ue(e,t){let n=null;function r(e){if(e.startPosition.row<=t&&e.endPosition.row>=t){n=e;for(let t of e.children)r(t)}}return r(e),n}function de(e,t){let n=e.parent;for(;n;){if(ce.has(n.type)){let e=fe(n),r=pe(n.type);t.push({name:e??`<anonymous>`,type:r,line:n.startPosition.row+1})}n=n.parent}}function fe(e){let t=e.childForFieldName(`name`);if(t)return t.text;for(let t of e.children)if(t.type===`identifier`||t.type===`type_identifier`||t.type===`property_identifier`||t.type===`field_identifier`)return t.text;return null}function pe(e){return e.includes(`class`)||e===`impl_item`?`class`:`function`}const me=new M,he={function_declaration:`function`,class_declaration:`class`,interface_declaration:`interface`,type_alias_declaration:`type`,enum_declaration:`enum`,lexical_declaration:`const`,method_definition:`method`,public_field_definition:`variable`,field_definition:`variable`,function_definition:`function`,class_definition:`class`,expression_statement:`variable`,method_declaration:`method`,constructor_declaration:`method`,field_declaration:`variable`,type_spec:`type`,type_declaration:`type`,const_spec:`const`,var_spec:`variable`,function_item:`function`,struct_item:`class`,enum_item:`enum`,trait_item:`interface`,impl_item:`type`,const_item:`const`,static_item:`variable`,type_item:`type`};async function ge(e,t,n=``){let r=await h.ensure(),i=await r.parse(e,t);if(!i)return[];let a=r.getLanguage(t);return a?_e(me.execute(i.rootNode,a,t,`symbols`),t,n):[]}function _e(e,t,n){let r=new Map;for(let n of e){let e=n.captures.get(`name`);if(!e)continue;let i=`${e.text}:${(n.captures.get(`node`)?.startLine??e.startLine)+1}`,a=ve(n,t),o=r.get(i);(!o||!o.exported&&a)&&r.set(i,{match:n,exported:a})}let i=[];for(let{match:e,exported:a}of r.values()){let r=e.captures.get(`name`),o=e.captures.get(`node`);if(!r)continue;let s=he[o?.nodeType??r.nodeType]??`variable`,c=(o?.startLine??r.startLine)+1,l=ye(s,o?.node,t),u=o?.node??r.node;i.push({name:r.text,kind:l,exported:a,filePath:n,line:c,signature:be(o?.node,l),returnType:$(o?.node,l),jsdoc:we(u),decorators:Te(u),typeBody:Ee(o?.node,l)})}return i}function ve(e,t){if(e.captures.has(`exported`))return!0;let n=e.captures.get(`name`)?.text;if(!n)return!1;if(t===`.py`)return!n.startsWith(`_`);if(t===`.go`)return/^[A-Z]/.test(n);if(t===`.java`){let t=e.captures.get(`node`)?.text??``;return/\bpublic\b/.test(t)}return!1}function ye(e,t,n){if(n===`.go`&&e===`type`&&t?.children){let e=t.type===`type_declaration`?t.children.flatMap(e=>e.children??[]):t.children;for(let t of e){if(t.type===`interface_type`)return`interface`;if(t.type===`struct_type`)return`class`}}return e}function be(e,t){if(e){if(t===`function`||t===`method`)return xe(e);if(t===`class`)return Se(e);if(t===`interface`)return Ce(e)}}function xe(e){let t=e.childForFieldName(`parameters`)??e.childForFieldName(`parameter_list`),n=e.childForFieldName(`return_type`)??e.childForFieldName(`type`),r=e.childForFieldName(`result`);if(!t){for(let t of e.children)if(t.type===`formal_parameters`||t.type===`parameter_list`||t.type===`parameters`){let e=t.text;return n&&(e+=n.text),r&&(e+=` ${r.text}`),e.length>120?`${e.slice(0,117)}...`:e}return}let i=t.text;return n&&(i+=n.text),r&&(i+=` ${r.text}`),i.length>120?`${i.slice(0,117)}...`:i}function Se(e){let t=e.childForFieldName(`body`)??e.childForFieldName(`field_declaration_list`);if(!t){for(let t of e.children)if(t.type===`struct_type`||t.type===`class_body`)return Z(t);return}return Z(t)}function Z(e){let t=[];for(let n of e.children){if(n.type===`method_definition`){let e=n.childForFieldName(`name`);e&&t.push(e.text)}if(n.type===`method_declaration`){let e=n.childForFieldName(`name`);e&&t.push(e.text)}if(n.type===`field_declaration`){let e=n.childForFieldName(`name`);e&&t.push(e.text)}if(n.type===`function_definition`){let e=n.childForFieldName(`name`);e&&t.push(e.text)}}if(t.length===0)return;let n=t.join(`, `);return n.length>120?`${n.slice(0,117)}...`:n}function Ce(e){let t=e.childForFieldName(`body`);if(!t){for(let t of e.children)if(t.type===`interface_type`)return Q(t);return}return Q(t)}function Q(e){let t=[];for(let n of e.children){if(n.type===`property_signature`||n.type===`method_signature`){let e=n.childForFieldName(`name`);e&&t.push(e.text)}if(n.type===`method_declaration`){let e=n.childForFieldName(`name`);e&&t.push(e.text)}if(n.type===`method_spec`){let e=n.childForFieldName(`name`);e&&t.push(e.text)}if(n.type===`function_signature_item`||n.type===`declaration_list`){let e=n.childForFieldName(`name`);e&&t.push(e.text)}}if(t.length===0)return;let n=t.join(`, `);return n.length>120?`${n.slice(0,117)}...`:n}function $(e,t){if(!e||t!==`function`&&t!==`method`)return;let n=e.childForFieldName(`return_type`)??e.childForFieldName(`type`);if(n){let e=n.text.replace(/^:\s*/,``).trim();return e.length>200?`${e.slice(0,200)}…`:e}let r=e.childForFieldName(`result`);if(r)return r.text.trim()}function we(e){let t=e.parent;if(!t?.children)return;let n=t.children.indexOf(e);if(n<=0)return;let r=t.children[n-1];if(r){if(r.type===`comment`||r.type===`block_comment`||r.type===`doc_comment`)return r.text.replace(/^\/\*\*?\s*|\s*\*\/$/g,``).split(`
|
|
23
|
+
`).map(e=>e.replace(/^\s*\*\s?/,``).trim()).filter(e=>e.length>0&&!e.startsWith(`@`))[0]?.slice(0,200)||void 0;if(e.children[0]?.type===`expression_statement`){let t=e.children[0].children[0];if(t&&(t.type===`string`||t.type===`concatenated_string`))return t.text.replace(/^['"`]{1,3}|['"`]{1,3}$/g,``).trim().split(`
|
|
24
|
+
`)[0]?.trim()?.slice(0,200)||void 0}}}function Te(e){let t=e.parent;if(!t?.children)return;let n=t.children.indexOf(e),r=[];for(let e=n-1;e>=0;e--){let n=t.children[e];if(n.type===`decorator`||n.type===`annotation`||n.type===`marker_annotation`){let e=n.text.trim();r.unshift(e.length>100?`${e.slice(0,100)}…`:e)}else if(n.type!==`comment`&&n.type!==`block_comment`&&n.type!==`doc_comment`)break}return r.length>0?r:void 0}function Ee(e,t){if(!e||t!==`interface`&&t!==`type`)return;let n=e.childForFieldName(`body`)??e.childForFieldName(`value`)??e.children.find(e=>e.type===`object_type`||e.type===`interface_body`||e.type===`type_body`);if(!n)return;let r=n.text.replace(/\n\s*/g,` `).replace(/\s+/g,` `).trim();return r.length>500?`${r.slice(0,500)}…`:r}export{x as CodeChunker,S as GenericChunker,C as MarkdownChunker,M as QueryExecutor,u as SUPPORTED_EXTENSIONS,E as WasmChunker,h as WasmRuntime,ne as createChunker,re as createChunkerSync,W as detectEntryPoints,oe as detectPatterns,v as extractCallEdges,L as extractCalls,q as extractImports,ge as extractSymbols,ee as initializeWasm,d as resolveGrammarPath,f as resolveParserWasmPath,le as resolveScopes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=`aikit`,t={type:`stdio`,command:`npx`,args:[`-y`,`@vpxa/aikit`,`serve`]},n=[`aikit`,`brainstorming`,`multi-agents-development`,`session-handoff`,`requirements-clarity`,`lesson-learned`,`c4-architecture`,`adr-skill`,`present`,`frontend-design`,`react`,`typescript`],r=[`aikit-basic`,`aikit-advanced`],i={"chat.agentFilesLocations":{"~/.claude/agents":!1},"github.copilot.chat.copilotMemory.enabled":!0,"chat.customAgentInSubagent.enabled":!0,"chat.useNestedAgentsMdFiles":!0,"chat.useAgentSkills":!0,"github.copilot.chat.switchAgent.enabled":!0,"workbench.browser.enableChatTools":!0,"chat.mcp.apps.enabled":!0,"chat.instructionsFilesLocations":{"~/.copilot/instructions":!0,".github/instructions":!0}};export{
|
|
1
|
+
const e=`aikit`,t={type:`stdio`,command:`npx`,args:[`-y`,`@vpxa/aikit`,`serve`]},n=[`aikit`,`brainstorming`,`multi-agents-development`,`session-handoff`,`requirements-clarity`,`lesson-learned`,`c4-architecture`,`adr-skill`,`present`,`frontend-design`,`react`,`typescript`],r=[`aikit-basic`,`aikit-advanced`],i={"chat.agentFilesLocations":{"~/.claude/agents":!1},"github.copilot.chat.copilotMemory.enabled":!0,"chat.customAgentInSubagent.enabled":!0,"chat.useNestedAgentsMdFiles":!0,"chat.useAgentSkills":!0,"github.copilot.chat.switchAgent.enabled":!0,"workbench.browser.enableChatTools":!0,"chat.mcp.apps.enabled":!0,"chat.instructionsFilesLocations":{"~/.copilot/instructions":!0,".github/instructions":!0}};export{i as a,n as i,t as n,e as r,r as t};
|