@untangle-code/cli 0.0.0-stage → 0.1.1
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/LICENSE +661 -0
- package/NOTICE +90 -0
- package/README.md +451 -2
- package/THIRD_PARTY_LICENSES.md +152 -0
- package/dist/cli/args.d.ts +48 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +167 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/command.d.ts +69 -0
- package/dist/cli/command.d.ts.map +1 -0
- package/dist/cli/command.js +82 -0
- package/dist/cli/command.js.map +1 -0
- package/dist/cli/deadline.d.ts +33 -0
- package/dist/cli/deadline.d.ts.map +1 -0
- package/dist/cli/deadline.js +49 -0
- package/dist/cli/deadline.js.map +1 -0
- package/dist/cli/embedder-deadline.d.ts +72 -0
- package/dist/cli/embedder-deadline.d.ts.map +1 -0
- package/dist/cli/embedder-deadline.js +117 -0
- package/dist/cli/embedder-deadline.js.map +1 -0
- package/dist/cli/exit.d.ts +71 -0
- package/dist/cli/exit.d.ts.map +1 -0
- package/dist/cli/exit.js +81 -0
- package/dist/cli/exit.js.map +1 -0
- package/dist/cli/graphs.d.ts +65 -0
- package/dist/cli/graphs.d.ts.map +1 -0
- package/dist/cli/graphs.js +108 -0
- package/dist/cli/graphs.js.map +1 -0
- package/dist/cli/index-freshness.d.ts +13 -0
- package/dist/cli/index-freshness.d.ts.map +1 -0
- package/dist/cli/index-freshness.js +226 -0
- package/dist/cli/index-freshness.js.map +1 -0
- package/dist/cli/index-refresh.d.ts +10 -0
- package/dist/cli/index-refresh.d.ts.map +1 -0
- package/dist/cli/index-refresh.js +76 -0
- package/dist/cli/index-refresh.js.map +1 -0
- package/dist/cli/index-state.d.ts +184 -0
- package/dist/cli/index-state.d.ts.map +1 -0
- package/dist/cli/index-state.js +852 -0
- package/dist/cli/index-state.js.map +1 -0
- package/dist/cli/io.d.ts +29 -0
- package/dist/cli/io.d.ts.map +1 -0
- package/dist/cli/io.js +42 -0
- package/dist/cli/io.js.map +1 -0
- package/dist/cli/language-support.d.ts +77 -0
- package/dist/cli/language-support.d.ts.map +1 -0
- package/dist/cli/language-support.js +152 -0
- package/dist/cli/language-support.js.map +1 -0
- package/dist/cli/renewing-lease.d.ts +26 -0
- package/dist/cli/renewing-lease.d.ts.map +1 -0
- package/dist/cli/renewing-lease.js +102 -0
- package/dist/cli/renewing-lease.js.map +1 -0
- package/dist/cli/search-graph-enrichment.d.ts +16 -0
- package/dist/cli/search-graph-enrichment.d.ts.map +1 -0
- package/dist/cli/search-graph-enrichment.js +428 -0
- package/dist/cli/search-graph-enrichment.js.map +1 -0
- package/dist/cli/system.d.ts +34 -0
- package/dist/cli/system.d.ts.map +1 -0
- package/dist/cli/system.js +89 -0
- package/dist/cli/system.js.map +1 -0
- package/dist/cli/vector-store-policy.d.ts +116 -0
- package/dist/cli/vector-store-policy.d.ts.map +1 -0
- package/dist/cli/vector-store-policy.js +160 -0
- package/dist/cli/vector-store-policy.js.map +1 -0
- package/dist/cli/version.d.ts +3 -0
- package/dist/cli/version.d.ts.map +1 -0
- package/dist/cli/version.js +3 -0
- package/dist/cli/version.js.map +1 -0
- package/dist/cli/workspace.d.ts +105 -0
- package/dist/cli/workspace.d.ts.map +1 -0
- package/dist/cli/workspace.js +215 -0
- package/dist/cli/workspace.js.map +1 -0
- package/dist/commands/complexity.d.ts +72 -0
- package/dist/commands/complexity.d.ts.map +1 -0
- package/dist/commands/complexity.js +580 -0
- package/dist/commands/complexity.js.map +1 -0
- package/dist/commands/doctor.d.ts +66 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +764 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/doctor.languages.d.ts +37 -0
- package/dist/commands/doctor.languages.d.ts.map +1 -0
- package/dist/commands/doctor.languages.js +143 -0
- package/dist/commands/doctor.languages.js.map +1 -0
- package/dist/commands/doctor.storage.d.ts +17 -0
- package/dist/commands/doctor.storage.d.ts.map +1 -0
- package/dist/commands/doctor.storage.js +91 -0
- package/dist/commands/doctor.storage.js.map +1 -0
- package/dist/commands/extensions/add.d.ts +10 -0
- package/dist/commands/extensions/add.d.ts.map +1 -0
- package/dist/commands/extensions/add.js +213 -0
- package/dist/commands/extensions/add.js.map +1 -0
- package/dist/commands/extensions/configure.d.ts +5 -0
- package/dist/commands/extensions/configure.d.ts.map +1 -0
- package/dist/commands/extensions/configure.js +58 -0
- package/dist/commands/extensions/configure.js.map +1 -0
- package/dist/commands/extensions/container.d.ts +15 -0
- package/dist/commands/extensions/container.d.ts.map +1 -0
- package/dist/commands/extensions/container.js +135 -0
- package/dist/commands/extensions/container.js.map +1 -0
- package/dist/commands/extensions/context.d.ts +37 -0
- package/dist/commands/extensions/context.d.ts.map +1 -0
- package/dist/commands/extensions/context.js +72 -0
- package/dist/commands/extensions/context.js.map +1 -0
- package/dist/commands/extensions/enable.d.ts +6 -0
- package/dist/commands/extensions/enable.d.ts.map +1 -0
- package/dist/commands/extensions/enable.js +180 -0
- package/dist/commands/extensions/enable.js.map +1 -0
- package/dist/commands/extensions/environment.d.ts +74 -0
- package/dist/commands/extensions/environment.d.ts.map +1 -0
- package/dist/commands/extensions/environment.js +168 -0
- package/dist/commands/extensions/environment.js.map +1 -0
- package/dist/commands/extensions/feature-scan.d.ts +48 -0
- package/dist/commands/extensions/feature-scan.d.ts.map +1 -0
- package/dist/commands/extensions/feature-scan.js +156 -0
- package/dist/commands/extensions/feature-scan.js.map +1 -0
- package/dist/commands/extensions/invoke.d.ts +60 -0
- package/dist/commands/extensions/invoke.d.ts.map +1 -0
- package/dist/commands/extensions/invoke.js +275 -0
- package/dist/commands/extensions/invoke.js.map +1 -0
- package/dist/commands/extensions/list.d.ts +5 -0
- package/dist/commands/extensions/list.d.ts.map +1 -0
- package/dist/commands/extensions/list.js +125 -0
- package/dist/commands/extensions/list.js.map +1 -0
- package/dist/commands/extensions/logs.d.ts +5 -0
- package/dist/commands/extensions/logs.d.ts.map +1 -0
- package/dist/commands/extensions/logs.js +74 -0
- package/dist/commands/extensions/logs.js.map +1 -0
- package/dist/commands/extensions/provision.d.ts +36 -0
- package/dist/commands/extensions/provision.d.ts.map +1 -0
- package/dist/commands/extensions/provision.js +137 -0
- package/dist/commands/extensions/provision.js.map +1 -0
- package/dist/commands/extensions/remove.d.ts +5 -0
- package/dist/commands/extensions/remove.d.ts.map +1 -0
- package/dist/commands/extensions/remove.js +77 -0
- package/dist/commands/extensions/remove.js.map +1 -0
- package/dist/commands/extensions/render.d.ts +16 -0
- package/dist/commands/extensions/render.d.ts.map +1 -0
- package/dist/commands/extensions/render.js +25 -0
- package/dist/commands/extensions/render.js.map +1 -0
- package/dist/commands/extensions/run.d.ts +30 -0
- package/dist/commands/extensions/run.d.ts.map +1 -0
- package/dist/commands/extensions/run.js +292 -0
- package/dist/commands/extensions/run.js.map +1 -0
- package/dist/commands/extensions/secret-store.d.ts +15 -0
- package/dist/commands/extensions/secret-store.d.ts.map +1 -0
- package/dist/commands/extensions/secret-store.js +164 -0
- package/dist/commands/extensions/secret-store.js.map +1 -0
- package/dist/commands/extensions/setup.d.ts +17 -0
- package/dist/commands/extensions/setup.d.ts.map +1 -0
- package/dist/commands/extensions/setup.js +94 -0
- package/dist/commands/extensions/setup.js.map +1 -0
- package/dist/commands/extensions/source.d.ts +47 -0
- package/dist/commands/extensions/source.d.ts.map +1 -0
- package/dist/commands/extensions/source.js +142 -0
- package/dist/commands/extensions/source.js.map +1 -0
- package/dist/commands/extensions/state.d.ts +62 -0
- package/dist/commands/extensions/state.d.ts.map +1 -0
- package/dist/commands/extensions/state.js +177 -0
- package/dist/commands/extensions/state.js.map +1 -0
- package/dist/commands/extensions/status.d.ts +9 -0
- package/dist/commands/extensions/status.d.ts.map +1 -0
- package/dist/commands/extensions/status.js +239 -0
- package/dist/commands/extensions/status.js.map +1 -0
- package/dist/commands/extensions.d.ts +3 -0
- package/dist/commands/extensions.d.ts.map +1 -0
- package/dist/commands/extensions.js +223 -0
- package/dist/commands/extensions.js.map +1 -0
- package/dist/commands/flow/index.d.ts +3 -0
- package/dist/commands/flow/index.d.ts.map +1 -0
- package/dist/commands/flow/index.js +295 -0
- package/dist/commands/flow/index.js.map +1 -0
- package/dist/commands/flow/limits.d.ts +12 -0
- package/dist/commands/flow/limits.d.ts.map +1 -0
- package/dist/commands/flow/limits.js +13 -0
- package/dist/commands/flow/limits.js.map +1 -0
- package/dist/commands/flow/output.d.ts +8 -0
- package/dist/commands/flow/output.d.ts.map +1 -0
- package/dist/commands/flow/output.js +11 -0
- package/dist/commands/flow/output.js.map +1 -0
- package/dist/commands/flow/render.d.ts +51 -0
- package/dist/commands/flow/render.d.ts.map +1 -0
- package/dist/commands/flow/render.js +220 -0
- package/dist/commands/flow/render.js.map +1 -0
- package/dist/commands/flow/select.d.ts +31 -0
- package/dist/commands/flow/select.d.ts.map +1 -0
- package/dist/commands/flow/select.js +62 -0
- package/dist/commands/flow/select.js.map +1 -0
- package/dist/commands/graph/boundaries-input.d.ts +26 -0
- package/dist/commands/graph/boundaries-input.d.ts.map +1 -0
- package/dist/commands/graph/boundaries-input.js +54 -0
- package/dist/commands/graph/boundaries-input.js.map +1 -0
- package/dist/commands/graph/boundaries.d.ts +4 -0
- package/dist/commands/graph/boundaries.d.ts.map +1 -0
- package/dist/commands/graph/boundaries.js +141 -0
- package/dist/commands/graph/boundaries.js.map +1 -0
- package/dist/commands/graph/bounds.d.ts +16 -0
- package/dist/commands/graph/bounds.d.ts.map +1 -0
- package/dist/commands/graph/bounds.js +22 -0
- package/dist/commands/graph/bounds.js.map +1 -0
- package/dist/commands/graph/category-clusters.d.ts +20 -0
- package/dist/commands/graph/category-clusters.d.ts.map +1 -0
- package/dist/commands/graph/category-clusters.js +158 -0
- package/dist/commands/graph/category-clusters.js.map +1 -0
- package/dist/commands/graph/feature-3d.d.ts +22 -0
- package/dist/commands/graph/feature-3d.d.ts.map +1 -0
- package/dist/commands/graph/feature-3d.js +114 -0
- package/dist/commands/graph/feature-3d.js.map +1 -0
- package/dist/commands/graph/feature-clusters.d.ts +17 -0
- package/dist/commands/graph/feature-clusters.d.ts.map +1 -0
- package/dist/commands/graph/feature-clusters.js +94 -0
- package/dist/commands/graph/feature-clusters.js.map +1 -0
- package/dist/commands/graph/feature-html.d.ts +26 -0
- package/dist/commands/graph/feature-html.d.ts.map +1 -0
- package/dist/commands/graph/feature-html.js +314 -0
- package/dist/commands/graph/feature-html.js.map +1 -0
- package/dist/commands/graph/feature-map.d.ts +31 -0
- package/dist/commands/graph/feature-map.d.ts.map +1 -0
- package/dist/commands/graph/feature-map.js +217 -0
- package/dist/commands/graph/feature-map.js.map +1 -0
- package/dist/commands/graph/feature-model.d.ts +55 -0
- package/dist/commands/graph/feature-model.d.ts.map +1 -0
- package/dist/commands/graph/feature-model.js +167 -0
- package/dist/commands/graph/feature-model.js.map +1 -0
- package/dist/commands/graph/feature-untangle-motion.d.ts +33 -0
- package/dist/commands/graph/feature-untangle-motion.d.ts.map +1 -0
- package/dist/commands/graph/feature-untangle-motion.js +155 -0
- package/dist/commands/graph/feature-untangle-motion.js.map +1 -0
- package/dist/commands/graph/index.d.ts +3 -0
- package/dist/commands/graph/index.d.ts.map +1 -0
- package/dist/commands/graph/index.js +414 -0
- package/dist/commands/graph/index.js.map +1 -0
- package/dist/commands/graph/render.d.ts +63 -0
- package/dist/commands/graph/render.d.ts.map +1 -0
- package/dist/commands/graph/render.js +352 -0
- package/dist/commands/graph/render.js.map +1 -0
- package/dist/commands/graph/select.d.ts +34 -0
- package/dist/commands/graph/select.d.ts.map +1 -0
- package/dist/commands/graph/select.js +55 -0
- package/dist/commands/graph/select.js.map +1 -0
- package/dist/commands/index/index.d.ts +6 -0
- package/dist/commands/index/index.d.ts.map +1 -0
- package/dist/commands/index/index.js +461 -0
- package/dist/commands/index/index.js.map +1 -0
- package/dist/commands/index/render.d.ts +53 -0
- package/dist/commands/index/render.d.ts.map +1 -0
- package/dist/commands/index/render.js +205 -0
- package/dist/commands/index/render.js.map +1 -0
- package/dist/commands/index/target.d.ts +34 -0
- package/dist/commands/index/target.d.ts.map +1 -0
- package/dist/commands/index/target.js +97 -0
- package/dist/commands/index/target.js.map +1 -0
- package/dist/commands/index-watch.d.ts +30 -0
- package/dist/commands/index-watch.d.ts.map +1 -0
- package/dist/commands/index-watch.js +138 -0
- package/dist/commands/index-watch.js.map +1 -0
- package/dist/commands/init/command.d.ts +25 -0
- package/dist/commands/init/command.d.ts.map +1 -0
- package/dist/commands/init/command.js +198 -0
- package/dist/commands/init/command.js.map +1 -0
- package/dist/commands/init/config-draft.d.ts +48 -0
- package/dist/commands/init/config-draft.d.ts.map +1 -0
- package/dist/commands/init/config-draft.js +201 -0
- package/dist/commands/init/config-draft.js.map +1 -0
- package/dist/commands/init/diff.d.ts +33 -0
- package/dist/commands/init/diff.d.ts.map +1 -0
- package/dist/commands/init/diff.js +109 -0
- package/dist/commands/init/diff.js.map +1 -0
- package/dist/commands/init/http-probe.d.ts +26 -0
- package/dist/commands/init/http-probe.d.ts.map +1 -0
- package/dist/commands/init/http-probe.js +144 -0
- package/dist/commands/init/http-probe.js.map +1 -0
- package/dist/commands/init/ignore-rules.d.ts +70 -0
- package/dist/commands/init/ignore-rules.d.ts.map +1 -0
- package/dist/commands/init/ignore-rules.js +146 -0
- package/dist/commands/init/ignore-rules.js.map +1 -0
- package/dist/commands/init/index.d.ts +33 -0
- package/dist/commands/init/index.d.ts.map +1 -0
- package/dist/commands/init/index.js +32 -0
- package/dist/commands/init/index.js.map +1 -0
- package/dist/commands/init/integrations-apply.d.ts +50 -0
- package/dist/commands/init/integrations-apply.d.ts.map +1 -0
- package/dist/commands/init/integrations-apply.js +452 -0
- package/dist/commands/init/integrations-apply.js.map +1 -0
- package/dist/commands/init/integrations-plan.d.ts +68 -0
- package/dist/commands/init/integrations-plan.d.ts.map +1 -0
- package/dist/commands/init/integrations-plan.js +515 -0
- package/dist/commands/init/integrations-plan.js.map +1 -0
- package/dist/commands/init/integrations.d.ts +5 -0
- package/dist/commands/init/integrations.d.ts.map +1 -0
- package/dist/commands/init/integrations.js +4 -0
- package/dist/commands/init/integrations.js.map +1 -0
- package/dist/commands/init/languages.d.ts +55 -0
- package/dist/commands/init/languages.d.ts.map +1 -0
- package/dist/commands/init/languages.js +245 -0
- package/dist/commands/init/languages.js.map +1 -0
- package/dist/commands/init/product-context.d.ts +63 -0
- package/dist/commands/init/product-context.d.ts.map +1 -0
- package/dist/commands/init/product-context.js +390 -0
- package/dist/commands/init/product-context.js.map +1 -0
- package/dist/commands/init/render.d.ts +38 -0
- package/dist/commands/init/render.d.ts.map +1 -0
- package/dist/commands/init/render.js +501 -0
- package/dist/commands/init/render.js.map +1 -0
- package/dist/commands/init/report.d.ts +24 -0
- package/dist/commands/init/report.d.ts.map +1 -0
- package/dist/commands/init/report.js +163 -0
- package/dist/commands/init/report.js.map +1 -0
- package/dist/commands/init/run.d.ts +71 -0
- package/dist/commands/init/run.d.ts.map +1 -0
- package/dist/commands/init/run.js +253 -0
- package/dist/commands/init/run.js.map +1 -0
- package/dist/commands/init/services.d.ts +82 -0
- package/dist/commands/init/services.d.ts.map +1 -0
- package/dist/commands/init/services.js +209 -0
- package/dist/commands/init/services.js.map +1 -0
- package/dist/commands/init/storage.d.ts +8 -0
- package/dist/commands/init/storage.d.ts.map +1 -0
- package/dist/commands/init/storage.js +102 -0
- package/dist/commands/init/storage.js.map +1 -0
- package/dist/commands/init/toml.d.ts +65 -0
- package/dist/commands/init/toml.d.ts.map +1 -0
- package/dist/commands/init/toml.js +159 -0
- package/dist/commands/init/toml.js.map +1 -0
- package/dist/commands/init/topology.d.ts +54 -0
- package/dist/commands/init/topology.d.ts.map +1 -0
- package/dist/commands/init/topology.js +146 -0
- package/dist/commands/init/topology.js.map +1 -0
- package/dist/commands/init/types.d.ts +334 -0
- package/dist/commands/init/types.d.ts.map +1 -0
- package/dist/commands/init/types.js +31 -0
- package/dist/commands/init/types.js.map +1 -0
- package/dist/commands/init/wizard-terminal.d.ts +36 -0
- package/dist/commands/init/wizard-terminal.d.ts.map +1 -0
- package/dist/commands/init/wizard-terminal.js +163 -0
- package/dist/commands/init/wizard-terminal.js.map +1 -0
- package/dist/commands/init/wizard.d.ts +25 -0
- package/dist/commands/init/wizard.d.ts.map +1 -0
- package/dist/commands/init/wizard.js +358 -0
- package/dist/commands/init/wizard.js.map +1 -0
- package/dist/commands/mcp.d.ts +4 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/mcp.js +111 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/product-test-runner.d.ts +4 -0
- package/dist/commands/product-test-runner.d.ts.map +1 -0
- package/dist/commands/product-test-runner.js +85 -0
- package/dist/commands/product-test-runner.js.map +1 -0
- package/dist/commands/product.d.ts +16 -0
- package/dist/commands/product.d.ts.map +1 -0
- package/dist/commands/product.js +262 -0
- package/dist/commands/product.js.map +1 -0
- package/dist/commands/query.d.ts +114 -0
- package/dist/commands/query.d.ts.map +1 -0
- package/dist/commands/query.js +783 -0
- package/dist/commands/query.js.map +1 -0
- package/dist/commands/scan.d.ts +10 -0
- package/dist/commands/scan.d.ts.map +1 -0
- package/dist/commands/scan.js +302 -0
- package/dist/commands/scan.js.map +1 -0
- package/dist/commands/sdd.d.ts +24 -0
- package/dist/commands/sdd.d.ts.map +1 -0
- package/dist/commands/sdd.js +195 -0
- package/dist/commands/sdd.js.map +1 -0
- package/dist/commands/unavailable.d.ts +40 -0
- package/dist/commands/unavailable.d.ts.map +1 -0
- package/dist/commands/unavailable.js +73 -0
- package/dist/commands/unavailable.js.map +1 -0
- package/dist/commands/watch/analyze.d.ts +69 -0
- package/dist/commands/watch/analyze.d.ts.map +1 -0
- package/dist/commands/watch/analyze.js +402 -0
- package/dist/commands/watch/analyze.js.map +1 -0
- package/dist/commands/watch/cli.d.ts +8 -0
- package/dist/commands/watch/cli.d.ts.map +1 -0
- package/dist/commands/watch/cli.js +97 -0
- package/dist/commands/watch/cli.js.map +1 -0
- package/dist/commands/watch/delta.d.ts +46 -0
- package/dist/commands/watch/delta.d.ts.map +1 -0
- package/dist/commands/watch/delta.js +170 -0
- package/dist/commands/watch/delta.js.map +1 -0
- package/dist/commands/watch/events.d.ts +214 -0
- package/dist/commands/watch/events.d.ts.map +1 -0
- package/dist/commands/watch/events.js +13 -0
- package/dist/commands/watch/events.js.map +1 -0
- package/dist/commands/watch/index.d.ts +19 -0
- package/dist/commands/watch/index.d.ts.map +1 -0
- package/dist/commands/watch/index.js +15 -0
- package/dist/commands/watch/index.js.map +1 -0
- package/dist/commands/watch/options.d.ts +43 -0
- package/dist/commands/watch/options.d.ts.map +1 -0
- package/dist/commands/watch/options.js +193 -0
- package/dist/commands/watch/options.js.map +1 -0
- package/dist/commands/watch/render.d.ts +26 -0
- package/dist/commands/watch/render.d.ts.map +1 -0
- package/dist/commands/watch/render.js +175 -0
- package/dist/commands/watch/render.js.map +1 -0
- package/dist/commands/watch/run.d.ts +14 -0
- package/dist/commands/watch/run.d.ts.map +1 -0
- package/dist/commands/watch/run.js +460 -0
- package/dist/commands/watch/run.js.map +1 -0
- package/dist/commands/watch/runtime.d.ts +67 -0
- package/dist/commands/watch/runtime.d.ts.map +1 -0
- package/dist/commands/watch/runtime.js +149 -0
- package/dist/commands/watch/runtime.js.map +1 -0
- package/dist/commands/watch-command.d.ts +3 -0
- package/dist/commands/watch-command.d.ts.map +1 -0
- package/dist/commands/watch-command.js +273 -0
- package/dist/commands/watch-command.js.map +1 -0
- package/dist/entry-point.d.ts +11 -0
- package/dist/entry-point.d.ts.map +1 -0
- package/dist/entry-point.js +65 -0
- package/dist/entry-point.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +245 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/boundaries-schema.d.ts +262 -0
- package/dist/mcp/boundaries-schema.d.ts.map +1 -0
- package/dist/mcp/boundaries-schema.js +183 -0
- package/dist/mcp/boundaries-schema.js.map +1 -0
- package/dist/mcp/default-runtime.d.ts +16 -0
- package/dist/mcp/default-runtime.d.ts.map +1 -0
- package/dist/mcp/default-runtime.js +718 -0
- package/dist/mcp/default-runtime.js.map +1 -0
- package/dist/mcp/envelope.d.ts +13 -0
- package/dist/mcp/envelope.d.ts.map +1 -0
- package/dist/mcp/envelope.js +29 -0
- package/dist/mcp/envelope.js.map +1 -0
- package/dist/mcp/index.d.ts +8 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +8 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/output-schemas.d.ts +5928 -0
- package/dist/mcp/output-schemas.d.ts.map +1 -0
- package/dist/mcp/output-schemas.js +2814 -0
- package/dist/mcp/output-schemas.js.map +1 -0
- package/dist/mcp/path-sandbox.d.ts +35 -0
- package/dist/mcp/path-sandbox.d.ts.map +1 -0
- package/dist/mcp/path-sandbox.js +128 -0
- package/dist/mcp/path-sandbox.js.map +1 -0
- package/dist/mcp/server.d.ts +155 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +257 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/stdio.d.ts +20 -0
- package/dist/mcp/stdio.d.ts.map +1 -0
- package/dist/mcp/stdio.js +71 -0
- package/dist/mcp/stdio.js.map +1 -0
- package/dist/mcp/tools.d.ts +355 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +319 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/mcp/types.d.ts +15 -0
- package/dist/mcp/types.d.ts.map +1 -0
- package/dist/mcp/types.js +45 -0
- package/dist/mcp/types.js.map +1 -0
- package/package.json +99 -3
- package/src/cli/args.ts +231 -0
- package/src/cli/command.ts +146 -0
- package/src/cli/deadline.ts +56 -0
- package/src/cli/embedder-deadline.ts +187 -0
- package/src/cli/exit.ts +94 -0
- package/src/cli/graphs.ts +191 -0
- package/src/cli/index-freshness.ts +303 -0
- package/src/cli/index-refresh.ts +125 -0
- package/src/cli/index-state.ts +1217 -0
- package/src/cli/io.ts +56 -0
- package/src/cli/language-support.ts +203 -0
- package/src/cli/renewing-lease.ts +121 -0
- package/src/cli/search-graph-enrichment.ts +639 -0
- package/src/cli/system.ts +94 -0
- package/src/cli/vector-store-policy.ts +213 -0
- package/src/cli/version.ts +2 -0
- package/src/cli/workspace.ts +324 -0
- package/src/commands/complexity.ts +776 -0
- package/src/commands/doctor.languages.ts +187 -0
- package/src/commands/doctor.storage.ts +124 -0
- package/src/commands/doctor.ts +946 -0
- package/src/commands/extensions/add.ts +312 -0
- package/src/commands/extensions/configure.ts +82 -0
- package/src/commands/extensions/container.ts +209 -0
- package/src/commands/extensions/context.ts +109 -0
- package/src/commands/extensions/enable.ts +237 -0
- package/src/commands/extensions/environment.ts +218 -0
- package/src/commands/extensions/feature-scan.ts +232 -0
- package/src/commands/extensions/invoke.ts +368 -0
- package/src/commands/extensions/list.ts +158 -0
- package/src/commands/extensions/logs.ts +104 -0
- package/src/commands/extensions/provision.ts +206 -0
- package/src/commands/extensions/remove.ts +110 -0
- package/src/commands/extensions/render.ts +32 -0
- package/src/commands/extensions/run.ts +386 -0
- package/src/commands/extensions/secret-store.ts +223 -0
- package/src/commands/extensions/setup.ts +140 -0
- package/src/commands/extensions/source.ts +189 -0
- package/src/commands/extensions/state.ts +252 -0
- package/src/commands/extensions/status.ts +320 -0
- package/src/commands/extensions.ts +280 -0
- package/src/commands/flow/index.ts +402 -0
- package/src/commands/flow/limits.ts +14 -0
- package/src/commands/flow/output.ts +16 -0
- package/src/commands/flow/render.ts +318 -0
- package/src/commands/flow/select.ts +101 -0
- package/src/commands/graph/boundaries-input.ts +63 -0
- package/src/commands/graph/boundaries.ts +182 -0
- package/src/commands/graph/bounds.ts +25 -0
- package/src/commands/graph/category-clusters.ts +194 -0
- package/src/commands/graph/feature-3d.ts +141 -0
- package/src/commands/graph/feature-clusters.ts +125 -0
- package/src/commands/graph/feature-html.ts +336 -0
- package/src/commands/graph/feature-map.ts +270 -0
- package/src/commands/graph/feature-model.ts +234 -0
- package/src/commands/graph/feature-untangle-motion.ts +192 -0
- package/src/commands/graph/index.ts +562 -0
- package/src/commands/graph/render.ts +503 -0
- package/src/commands/graph/select.ts +77 -0
- package/src/commands/index/index.ts +595 -0
- package/src/commands/index/render.ts +325 -0
- package/src/commands/index/target.ts +136 -0
- package/src/commands/index-watch.ts +206 -0
- package/src/commands/init/command.ts +238 -0
- package/src/commands/init/config-draft.ts +235 -0
- package/src/commands/init/diff.ts +117 -0
- package/src/commands/init/http-probe.ts +150 -0
- package/src/commands/init/ignore-rules.ts +170 -0
- package/src/commands/init/index.ts +63 -0
- package/src/commands/init/integrations-apply.ts +618 -0
- package/src/commands/init/integrations-plan.ts +634 -0
- package/src/commands/init/integrations.ts +8 -0
- package/src/commands/init/languages.ts +320 -0
- package/src/commands/init/product-context.ts +576 -0
- package/src/commands/init/render.ts +598 -0
- package/src/commands/init/report.ts +204 -0
- package/src/commands/init/run.ts +349 -0
- package/src/commands/init/services.ts +271 -0
- package/src/commands/init/storage.ts +136 -0
- package/src/commands/init/toml.ts +174 -0
- package/src/commands/init/topology.ts +192 -0
- package/src/commands/init/types.ts +366 -0
- package/src/commands/init/wizard-terminal.ts +206 -0
- package/src/commands/init/wizard.ts +450 -0
- package/src/commands/mcp.ts +123 -0
- package/src/commands/product-test-runner.ts +80 -0
- package/src/commands/product.ts +331 -0
- package/src/commands/query.ts +1032 -0
- package/src/commands/scan.ts +360 -0
- package/src/commands/sdd.ts +243 -0
- package/src/commands/unavailable.ts +92 -0
- package/src/commands/watch/README.md +160 -0
- package/src/commands/watch/analyze.ts +600 -0
- package/src/commands/watch/cli.ts +108 -0
- package/src/commands/watch/delta.ts +186 -0
- package/src/commands/watch/events.ts +235 -0
- package/src/commands/watch/index.ts +53 -0
- package/src/commands/watch/options.ts +234 -0
- package/src/commands/watch/render.ts +240 -0
- package/src/commands/watch/run.ts +553 -0
- package/src/commands/watch/runtime.ts +167 -0
- package/src/commands/watch-command.ts +294 -0
- package/src/entry-point.ts +67 -0
- package/src/index.ts +291 -0
- package/src/mcp/boundaries-schema.ts +193 -0
- package/src/mcp/default-runtime.ts +1034 -0
- package/src/mcp/envelope.ts +57 -0
- package/src/mcp/index.ts +28 -0
- package/src/mcp/output-schemas.ts +3071 -0
- package/src/mcp/path-sandbox.ts +156 -0
- package/src/mcp/server.ts +358 -0
- package/src/mcp/stdio.ts +92 -0
- package/src/mcp/tools.ts +563 -0
- package/src/mcp/types.ts +66 -0
package/src/mcp/tools.ts
ADDED
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MAX_SEARCH_JOURNEY_EXECUTION_CONTEXT_LENGTH,
|
|
3
|
+
MAX_SEARCH_JOURNEY_FEATURE_ID_LENGTH,
|
|
4
|
+
MAX_SEARCH_JOURNEY_LOCATOR_LENGTH,
|
|
5
|
+
MAX_SEARCH_JOURNEY_REASON_LENGTH,
|
|
6
|
+
MAX_SEARCH_JOURNEY_TEXT_LENGTH,
|
|
7
|
+
MAX_SEARCH_JOURNEY_TOOL_NAME_LENGTH,
|
|
8
|
+
SEARCH_JOURNEY_ABANDON_REASON_CODES,
|
|
9
|
+
} from "@untangle-code/domain";
|
|
10
|
+
import { MAX_MAX_EDGES, MAX_MAX_NODES } from "@untangle-code/graph-explorer";
|
|
11
|
+
import * as z from "zod/v4";
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
MAX_FLOW_DEPTH,
|
|
15
|
+
MAX_FLOW_EDGES,
|
|
16
|
+
MAX_FLOW_NODES,
|
|
17
|
+
MAX_FLOW_RESULT_LIMIT,
|
|
18
|
+
MAX_GRAPH_QUERY_DEPTH,
|
|
19
|
+
MAX_GRAPH_QUERY_EDGES,
|
|
20
|
+
MAX_GRAPH_QUERY_NODES,
|
|
21
|
+
} from "../commands/flow/limits.js";
|
|
22
|
+
|
|
23
|
+
import {
|
|
24
|
+
UNTANGLE_MCP_SUCCESS_DATA_SCHEMAS,
|
|
25
|
+
type UntangleMcpSuccessDataByOperation,
|
|
26
|
+
} from "./output-schemas.js";
|
|
27
|
+
import type { UntangleMcpToolName } from "./types.js";
|
|
28
|
+
|
|
29
|
+
const nonEmpty = z.string().trim().min(1).max(4_096);
|
|
30
|
+
const optionalScope = {
|
|
31
|
+
workspaceId: nonEmpty.optional(),
|
|
32
|
+
root: nonEmpty.optional(),
|
|
33
|
+
};
|
|
34
|
+
const requiredScope = {
|
|
35
|
+
workspaceId: nonEmpty.optional(),
|
|
36
|
+
root: nonEmpty,
|
|
37
|
+
};
|
|
38
|
+
const positiveInt = z.number().int().positive();
|
|
39
|
+
const nonNegativeInt = z.number().int().nonnegative();
|
|
40
|
+
const journeyText = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_TEXT_LENGTH);
|
|
41
|
+
const journeyLocator = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_LOCATOR_LENGTH);
|
|
42
|
+
const journeyReason = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_REASON_LENGTH);
|
|
43
|
+
const journeyToolName = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_TOOL_NAME_LENGTH);
|
|
44
|
+
const featureId = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_FEATURE_ID_LENGTH);
|
|
45
|
+
const executionLabel = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_EXECUTION_CONTEXT_LENGTH);
|
|
46
|
+
const executionContext = z
|
|
47
|
+
.object({
|
|
48
|
+
agentModel: executionLabel,
|
|
49
|
+
harness: executionLabel,
|
|
50
|
+
searchStrategy: executionLabel,
|
|
51
|
+
taskClass: executionLabel,
|
|
52
|
+
taskMix: executionLabel.optional(),
|
|
53
|
+
priorContext: executionLabel.optional(),
|
|
54
|
+
})
|
|
55
|
+
.strict();
|
|
56
|
+
|
|
57
|
+
export interface McpToolDefinition<
|
|
58
|
+
Name extends UntangleMcpToolName = UntangleMcpToolName,
|
|
59
|
+
InputSchema extends z.ZodType<Record<string, unknown>> = z.ZodType<Record<string, unknown>>,
|
|
60
|
+
> {
|
|
61
|
+
readonly name: Name;
|
|
62
|
+
readonly description: string;
|
|
63
|
+
readonly inputSchema: InputSchema;
|
|
64
|
+
readonly successDataSchema: (typeof UNTANGLE_MCP_SUCCESS_DATA_SCHEMAS)[Name];
|
|
65
|
+
readonly pathFields: readonly string[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function define<
|
|
69
|
+
Name extends UntangleMcpToolName,
|
|
70
|
+
InputSchema extends z.ZodType<Record<string, unknown>>,
|
|
71
|
+
>(
|
|
72
|
+
name: Name,
|
|
73
|
+
description: string,
|
|
74
|
+
inputSchema: InputSchema,
|
|
75
|
+
pathFields: readonly string[] = [],
|
|
76
|
+
): McpToolDefinition<Name, InputSchema> {
|
|
77
|
+
return {
|
|
78
|
+
name,
|
|
79
|
+
description,
|
|
80
|
+
inputSchema,
|
|
81
|
+
successDataSchema: UNTANGLE_MCP_SUCCESS_DATA_SCHEMAS[name],
|
|
82
|
+
pathFields,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const empty = z.object({}).strict();
|
|
87
|
+
const readScope = z.object(optionalScope).strict();
|
|
88
|
+
const searchJourneyTarget = z
|
|
89
|
+
.object({
|
|
90
|
+
repoId: journeyLocator.optional(),
|
|
91
|
+
refId: journeyLocator.optional(),
|
|
92
|
+
filePath: journeyLocator.optional(),
|
|
93
|
+
chunkId: journeyLocator.optional(),
|
|
94
|
+
symbolId: journeyLocator.optional(),
|
|
95
|
+
embeddingProfileId: journeyLocator.optional(),
|
|
96
|
+
indexGeneration: journeyLocator.optional(),
|
|
97
|
+
})
|
|
98
|
+
.strict()
|
|
99
|
+
.superRefine((target, ctx) => {
|
|
100
|
+
if (
|
|
101
|
+
target.filePath === undefined &&
|
|
102
|
+
target.chunkId === undefined &&
|
|
103
|
+
target.symbolId === undefined
|
|
104
|
+
) {
|
|
105
|
+
ctx.addIssue({
|
|
106
|
+
code: "custom",
|
|
107
|
+
message: "target requires filePath, chunkId or symbolId",
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
/** Stable specified tool order, with additive product evidence inspection. */
|
|
113
|
+
export const UNTANGLE_MCP_TOOLS = [
|
|
114
|
+
define(
|
|
115
|
+
"untangle_index",
|
|
116
|
+
"Index one explicit repository target. Registered honestly even when the MCP adapter cannot execute it yet.",
|
|
117
|
+
z
|
|
118
|
+
.object({ ...requiredScope, repositoryId: nonEmpty, background: z.boolean().optional() })
|
|
119
|
+
.strict(),
|
|
120
|
+
["root"],
|
|
121
|
+
),
|
|
122
|
+
define(
|
|
123
|
+
"untangle_update",
|
|
124
|
+
"Update one explicit repository target from changed paths.",
|
|
125
|
+
z
|
|
126
|
+
.object({
|
|
127
|
+
...requiredScope,
|
|
128
|
+
repositoryId: nonEmpty,
|
|
129
|
+
paths: z.array(nonEmpty).min(1),
|
|
130
|
+
background: z.boolean().optional(),
|
|
131
|
+
})
|
|
132
|
+
.strict(),
|
|
133
|
+
["root", "paths"],
|
|
134
|
+
),
|
|
135
|
+
define(
|
|
136
|
+
"untangle_stop",
|
|
137
|
+
"Stop one explicitly named Untangle job.",
|
|
138
|
+
z.object({ workspaceId: nonEmpty, jobId: nonEmpty }).strict(),
|
|
139
|
+
),
|
|
140
|
+
define(
|
|
141
|
+
"untangle_watch",
|
|
142
|
+
"Start watching one explicit repository target.",
|
|
143
|
+
z.object({ ...requiredScope, repositoryId: nonEmpty }).strict(),
|
|
144
|
+
["root"],
|
|
145
|
+
),
|
|
146
|
+
define(
|
|
147
|
+
"untangle_status",
|
|
148
|
+
"Read workspace or job status without mutating it.",
|
|
149
|
+
z.object({ ...optionalScope, jobId: nonEmpty.optional() }).strict(),
|
|
150
|
+
["root"],
|
|
151
|
+
),
|
|
152
|
+
define(
|
|
153
|
+
"untangle_health",
|
|
154
|
+
"Run Untangle's configuration, storage, embedding and index health checks.",
|
|
155
|
+
z
|
|
156
|
+
.object({
|
|
157
|
+
...optionalScope,
|
|
158
|
+
skipEmbeddings: z.boolean().optional(),
|
|
159
|
+
timeoutMs: positiveInt.optional(),
|
|
160
|
+
})
|
|
161
|
+
.strict(),
|
|
162
|
+
["root"],
|
|
163
|
+
),
|
|
164
|
+
define("untangle_projects", "List configured repositories/projects.", readScope, ["root"]),
|
|
165
|
+
define(
|
|
166
|
+
"untangle_search",
|
|
167
|
+
"Search the indexed workspace with profile-separated, evidence-bearing results.",
|
|
168
|
+
z
|
|
169
|
+
.object({
|
|
170
|
+
...optionalScope,
|
|
171
|
+
query: journeyText,
|
|
172
|
+
limit: positiveInt.max(1_000).optional(),
|
|
173
|
+
mode: z.enum(["hybrid", "semantic", "lexical", "symbol"]).optional(),
|
|
174
|
+
abstention: z.enum(["strict", "evidence"]).optional(),
|
|
175
|
+
requireFresh: z.boolean().optional(),
|
|
176
|
+
repositories: z.array(nonEmpty).optional(),
|
|
177
|
+
refs: z.array(nonEmpty).optional(),
|
|
178
|
+
pathGlob: z.array(nonEmpty).optional(),
|
|
179
|
+
languages: z.array(nonEmpty).optional(),
|
|
180
|
+
symbolNames: z.array(nonEmpty).optional(),
|
|
181
|
+
includeContent: z.boolean().optional(),
|
|
182
|
+
includeContext: z.boolean().optional(),
|
|
183
|
+
includeLinked: z.boolean().optional(),
|
|
184
|
+
explain: z.boolean().optional(),
|
|
185
|
+
session: z
|
|
186
|
+
.object({ id: nonEmpty, step: positiveInt.max(128).optional() })
|
|
187
|
+
.strict()
|
|
188
|
+
.optional(),
|
|
189
|
+
})
|
|
190
|
+
.strict(),
|
|
191
|
+
["root"],
|
|
192
|
+
),
|
|
193
|
+
define(
|
|
194
|
+
"untangle_search_session",
|
|
195
|
+
"Start, inspect, annotate or complete a local task-scoped search journey, or report Dynamic Product Complexity.",
|
|
196
|
+
z.discriminatedUnion("action", [
|
|
197
|
+
z
|
|
198
|
+
.object({
|
|
199
|
+
...optionalScope,
|
|
200
|
+
action: z.literal("start"),
|
|
201
|
+
goal: journeyText,
|
|
202
|
+
featureId: featureId.optional(),
|
|
203
|
+
retainText: z.boolean().optional(),
|
|
204
|
+
executionContext: executionContext.optional(),
|
|
205
|
+
})
|
|
206
|
+
.strict(),
|
|
207
|
+
z.object({ ...optionalScope, action: z.literal("get"), sessionId: nonEmpty }).strict(),
|
|
208
|
+
z
|
|
209
|
+
.object({
|
|
210
|
+
...optionalScope,
|
|
211
|
+
action: z.literal("observe"),
|
|
212
|
+
sessionId: nonEmpty,
|
|
213
|
+
kind: z.enum(["open-file", "open-symbol", "graph-query", "other-tool"]),
|
|
214
|
+
toolName: journeyToolName.optional(),
|
|
215
|
+
target: searchJourneyTarget.optional(),
|
|
216
|
+
})
|
|
217
|
+
.strict(),
|
|
218
|
+
z
|
|
219
|
+
.object({
|
|
220
|
+
...optionalScope,
|
|
221
|
+
action: z.literal("complete"),
|
|
222
|
+
sessionId: nonEmpty,
|
|
223
|
+
target: searchJourneyTarget,
|
|
224
|
+
acceptedAttemptId: journeyLocator.optional(),
|
|
225
|
+
})
|
|
226
|
+
.strict(),
|
|
227
|
+
z
|
|
228
|
+
.object({
|
|
229
|
+
...optionalScope,
|
|
230
|
+
action: z.literal("abandon"),
|
|
231
|
+
sessionId: nonEmpty,
|
|
232
|
+
reasonCode: z.enum(SEARCH_JOURNEY_ABANDON_REASON_CODES).optional(),
|
|
233
|
+
reason: journeyReason.optional(),
|
|
234
|
+
})
|
|
235
|
+
.strict(),
|
|
236
|
+
z.object({ ...optionalScope, action: z.literal("report") }).strict(),
|
|
237
|
+
]),
|
|
238
|
+
["root"],
|
|
239
|
+
),
|
|
240
|
+
define("untangle_context_list", "List configured context artifacts.", readScope, ["root"]),
|
|
241
|
+
define(
|
|
242
|
+
"untangle_context_index",
|
|
243
|
+
"Index explicitly selected context artifacts.",
|
|
244
|
+
z.object({ ...requiredScope, artifactNames: z.array(nonEmpty).min(1) }).strict(),
|
|
245
|
+
["root"],
|
|
246
|
+
),
|
|
247
|
+
define(
|
|
248
|
+
"untangle_context_search",
|
|
249
|
+
"Search context artifacts.",
|
|
250
|
+
z.object({ ...optionalScope, query: nonEmpty, limit: positiveInt.optional() }).strict(),
|
|
251
|
+
["root"],
|
|
252
|
+
),
|
|
253
|
+
define(
|
|
254
|
+
"untangle_context_remove",
|
|
255
|
+
"Remove one explicitly named context artifact target.",
|
|
256
|
+
z.object({ ...requiredScope, target: nonEmpty }).strict(),
|
|
257
|
+
["root"],
|
|
258
|
+
),
|
|
259
|
+
define(
|
|
260
|
+
"untangle_graph_build",
|
|
261
|
+
"Build the graph for one explicit workspace target.",
|
|
262
|
+
z.object({ ...requiredScope, repositoryId: nonEmpty.optional() }).strict(),
|
|
263
|
+
["root"],
|
|
264
|
+
),
|
|
265
|
+
define("untangle_graph_status", "Read the persisted workspace graph status.", readScope, [
|
|
266
|
+
"root",
|
|
267
|
+
]),
|
|
268
|
+
define(
|
|
269
|
+
"untangle_graph_query",
|
|
270
|
+
"Query a file node and its dependency/dependent neighborhood.",
|
|
271
|
+
z
|
|
272
|
+
.object({
|
|
273
|
+
...optionalScope,
|
|
274
|
+
file: nonEmpty,
|
|
275
|
+
direction: z.enum(["both", "dependencies", "dependents"]).optional(),
|
|
276
|
+
depth: positiveInt.max(MAX_GRAPH_QUERY_DEPTH).optional(),
|
|
277
|
+
maxNodes: positiveInt.max(MAX_GRAPH_QUERY_NODES).optional(),
|
|
278
|
+
maxEdges: positiveInt.max(MAX_GRAPH_QUERY_EDGES).optional(),
|
|
279
|
+
})
|
|
280
|
+
.strict(),
|
|
281
|
+
["root"],
|
|
282
|
+
),
|
|
283
|
+
define("untangle_graph_stats", "Return persisted file-graph metrics and provenance.", readScope, [
|
|
284
|
+
"root",
|
|
285
|
+
]),
|
|
286
|
+
define(
|
|
287
|
+
"untangle_graph_cycles",
|
|
288
|
+
"List persisted file-graph cycles without breaking them.",
|
|
289
|
+
z.object({ ...optionalScope, limit: nonNegativeInt.optional() }).strict(),
|
|
290
|
+
["root"],
|
|
291
|
+
),
|
|
292
|
+
define(
|
|
293
|
+
"untangle_graph_visualize",
|
|
294
|
+
"Write a deterministic, self-contained offline HTML graph explorer.",
|
|
295
|
+
z
|
|
296
|
+
.object({
|
|
297
|
+
...optionalScope,
|
|
298
|
+
out: nonEmpty,
|
|
299
|
+
layout: z.enum(["repository-lanes", "grid", "circle"]).optional(),
|
|
300
|
+
maxNodes: positiveInt.max(MAX_MAX_NODES).optional(),
|
|
301
|
+
maxEdges: positiveInt.max(MAX_MAX_EDGES).optional(),
|
|
302
|
+
})
|
|
303
|
+
.strict(),
|
|
304
|
+
["root", "out"],
|
|
305
|
+
),
|
|
306
|
+
define(
|
|
307
|
+
"untangle_graph_remove",
|
|
308
|
+
"Remove one explicitly identified graph generation.",
|
|
309
|
+
z.object({ ...requiredScope, target: nonEmpty }).strict(),
|
|
310
|
+
["root"],
|
|
311
|
+
),
|
|
312
|
+
define(
|
|
313
|
+
"untangle_symbols",
|
|
314
|
+
"List persisted symbol nodes with deterministic ordering.",
|
|
315
|
+
z
|
|
316
|
+
.object({ ...optionalScope, query: nonEmpty.optional(), limit: positiveInt.optional() })
|
|
317
|
+
.strict(),
|
|
318
|
+
["root"],
|
|
319
|
+
),
|
|
320
|
+
define(
|
|
321
|
+
"untangle_symbol",
|
|
322
|
+
"Resolve one unambiguous persisted symbol and show callers/callees.",
|
|
323
|
+
z.object({ ...optionalScope, symbol: nonEmpty }).strict(),
|
|
324
|
+
["root"],
|
|
325
|
+
),
|
|
326
|
+
define(
|
|
327
|
+
"untangle_flow",
|
|
328
|
+
"Find persisted call paths between two unambiguous symbols.",
|
|
329
|
+
z
|
|
330
|
+
.object({
|
|
331
|
+
...optionalScope,
|
|
332
|
+
from: nonEmpty,
|
|
333
|
+
to: nonEmpty.optional(),
|
|
334
|
+
depth: positiveInt.max(MAX_FLOW_DEPTH).optional(),
|
|
335
|
+
limit: positiveInt.max(MAX_FLOW_RESULT_LIMIT).optional(),
|
|
336
|
+
maxNodes: positiveInt.max(MAX_FLOW_NODES).optional(),
|
|
337
|
+
maxEdges: positiveInt.max(MAX_FLOW_EDGES).optional(),
|
|
338
|
+
})
|
|
339
|
+
.strict(),
|
|
340
|
+
["root"],
|
|
341
|
+
),
|
|
342
|
+
define(
|
|
343
|
+
"untangle_impact",
|
|
344
|
+
"Analyze callers affected by one persisted symbol.",
|
|
345
|
+
z
|
|
346
|
+
.object({
|
|
347
|
+
...optionalScope,
|
|
348
|
+
symbol: nonEmpty,
|
|
349
|
+
depth: positiveInt.max(MAX_FLOW_DEPTH).optional(),
|
|
350
|
+
limit: positiveInt.max(MAX_FLOW_RESULT_LIMIT).optional(),
|
|
351
|
+
maxNodes: positiveInt.max(MAX_FLOW_NODES).optional(),
|
|
352
|
+
maxEdges: positiveInt.max(MAX_FLOW_EDGES).optional(),
|
|
353
|
+
minConfidence: z.number().min(0).max(1).optional(),
|
|
354
|
+
})
|
|
355
|
+
.strict(),
|
|
356
|
+
["root"],
|
|
357
|
+
),
|
|
358
|
+
define(
|
|
359
|
+
"untangle_cross_repo_impact",
|
|
360
|
+
"Analyze impact across repositories from a workspace graph snapshot.",
|
|
361
|
+
z.object({ ...optionalScope, symbol: nonEmpty, depth: positiveInt.optional() }).strict(),
|
|
362
|
+
["root"],
|
|
363
|
+
),
|
|
364
|
+
define(
|
|
365
|
+
"untangle_complexity",
|
|
366
|
+
"Measure code complexity directly from workspace files, without an index.",
|
|
367
|
+
z
|
|
368
|
+
.object({
|
|
369
|
+
...optionalScope,
|
|
370
|
+
top: nonNegativeInt.optional(),
|
|
371
|
+
includeNested: z.boolean().optional(),
|
|
372
|
+
prose: z.boolean().optional(),
|
|
373
|
+
})
|
|
374
|
+
.strict(),
|
|
375
|
+
["root"],
|
|
376
|
+
),
|
|
377
|
+
define(
|
|
378
|
+
"untangle_complexity_explain",
|
|
379
|
+
"Explain the contribution sites of one complexity scope.",
|
|
380
|
+
z.object({ ...optionalScope, symbol: nonEmpty, path: nonEmpty.optional() }).strict(),
|
|
381
|
+
["root", "path"],
|
|
382
|
+
),
|
|
383
|
+
define(
|
|
384
|
+
"untangle_hotspots",
|
|
385
|
+
"List the highest measured complexity hotspots.",
|
|
386
|
+
z
|
|
387
|
+
.object({ ...optionalScope, limit: nonNegativeInt.optional(), prose: z.boolean().optional() })
|
|
388
|
+
.strict(),
|
|
389
|
+
["root"],
|
|
390
|
+
),
|
|
391
|
+
define(
|
|
392
|
+
"untangle_complexity_diff",
|
|
393
|
+
"Compare complexity between two explicit revisions.",
|
|
394
|
+
z.object({ ...optionalScope, base: nonEmpty, head: nonEmpty }).strict(),
|
|
395
|
+
["root"],
|
|
396
|
+
),
|
|
397
|
+
define(
|
|
398
|
+
"untangle_changes",
|
|
399
|
+
"Analyze changes between two explicit revisions.",
|
|
400
|
+
z.object({ ...optionalScope, base: nonEmpty, head: nonEmpty }).strict(),
|
|
401
|
+
["root"],
|
|
402
|
+
),
|
|
403
|
+
define(
|
|
404
|
+
"untangle_change_search",
|
|
405
|
+
"Search persisted change history.",
|
|
406
|
+
z.object({ ...optionalScope, query: nonEmpty, limit: positiveInt.optional() }).strict(),
|
|
407
|
+
["root"],
|
|
408
|
+
),
|
|
409
|
+
define(
|
|
410
|
+
"untangle_quality_gate",
|
|
411
|
+
"Evaluate a delta-first quality gate between two explicit revisions.",
|
|
412
|
+
z.object({ ...optionalScope, base: nonEmpty, head: nonEmpty }).strict(),
|
|
413
|
+
["root"],
|
|
414
|
+
),
|
|
415
|
+
define("untangle_about", "Return version, license, source and capability truth.", empty),
|
|
416
|
+
define(
|
|
417
|
+
"untangle_portfolio_scan",
|
|
418
|
+
"Scan an explicit portfolio workspace.",
|
|
419
|
+
z
|
|
420
|
+
.object({
|
|
421
|
+
...optionalScope,
|
|
422
|
+
repositories: z.array(nonEmpty).optional(),
|
|
423
|
+
refreshHistory: z.boolean().optional(),
|
|
424
|
+
background: z.boolean().optional(),
|
|
425
|
+
})
|
|
426
|
+
.strict(),
|
|
427
|
+
["root"],
|
|
428
|
+
),
|
|
429
|
+
define(
|
|
430
|
+
"untangle_stack_matrix",
|
|
431
|
+
"Read a portfolio technology stack matrix.",
|
|
432
|
+
z
|
|
433
|
+
.object({
|
|
434
|
+
...optionalScope,
|
|
435
|
+
categories: z.array(nonEmpty).optional(),
|
|
436
|
+
includeTransitive: z.boolean().optional(),
|
|
437
|
+
minAdoptionShare: z.number().min(0).max(1).optional(),
|
|
438
|
+
generationId: nonEmpty.optional(),
|
|
439
|
+
})
|
|
440
|
+
.strict(),
|
|
441
|
+
["root"],
|
|
442
|
+
),
|
|
443
|
+
define(
|
|
444
|
+
"untangle_who_uses",
|
|
445
|
+
"Find repositories using one technology.",
|
|
446
|
+
z
|
|
447
|
+
.object({
|
|
448
|
+
...optionalScope,
|
|
449
|
+
technology: nonEmpty,
|
|
450
|
+
versionRange: nonEmpty.optional(),
|
|
451
|
+
includeDepth: z.boolean().optional(),
|
|
452
|
+
includeDeclaredOnly: z.boolean().optional(),
|
|
453
|
+
})
|
|
454
|
+
.strict(),
|
|
455
|
+
["root"],
|
|
456
|
+
),
|
|
457
|
+
define(
|
|
458
|
+
"untangle_conventions",
|
|
459
|
+
"Read detected repository conventions with evidence.",
|
|
460
|
+
z
|
|
461
|
+
.object({
|
|
462
|
+
...optionalScope,
|
|
463
|
+
kinds: z.array(nonEmpty).optional(),
|
|
464
|
+
minConfidence: z.number().min(0).max(1).optional(),
|
|
465
|
+
includeCounterexamples: z.boolean().optional(),
|
|
466
|
+
})
|
|
467
|
+
.strict(),
|
|
468
|
+
["root"],
|
|
469
|
+
),
|
|
470
|
+
define(
|
|
471
|
+
"untangle_archetypes",
|
|
472
|
+
"Read deterministic project archetype assignments.",
|
|
473
|
+
z
|
|
474
|
+
.object({
|
|
475
|
+
...optionalScope,
|
|
476
|
+
repositories: z.array(nonEmpty).optional(),
|
|
477
|
+
explain: z.boolean().optional(),
|
|
478
|
+
})
|
|
479
|
+
.strict(),
|
|
480
|
+
["root"],
|
|
481
|
+
),
|
|
482
|
+
define(
|
|
483
|
+
"untangle_tech_radar",
|
|
484
|
+
"Read the evidence-backed portfolio technology radar.",
|
|
485
|
+
z
|
|
486
|
+
.object({
|
|
487
|
+
...optionalScope,
|
|
488
|
+
rings: z.array(z.enum(["adopt", "maintain", "consolidate", "retire"])).optional(),
|
|
489
|
+
categories: z.array(nonEmpty).optional(),
|
|
490
|
+
problemDomain: nonEmpty.optional(),
|
|
491
|
+
})
|
|
492
|
+
.strict(),
|
|
493
|
+
["root"],
|
|
494
|
+
),
|
|
495
|
+
define(
|
|
496
|
+
"untangle_blueprint",
|
|
497
|
+
"Generate or apply an evidence-backed project blueprint.",
|
|
498
|
+
z
|
|
499
|
+
.object({
|
|
500
|
+
...optionalScope,
|
|
501
|
+
kind: z.enum(["api-service", "worker", "cli", "library", "web-app", "mcp-server"]),
|
|
502
|
+
language: nonEmpty.optional(),
|
|
503
|
+
topics: z.array(nonEmpty).optional(),
|
|
504
|
+
targetDir: nonEmpty.optional(),
|
|
505
|
+
apply: z.boolean().optional(),
|
|
506
|
+
showContent: z.boolean().optional(),
|
|
507
|
+
})
|
|
508
|
+
.strict()
|
|
509
|
+
.superRefine((value, ctx) => {
|
|
510
|
+
if (value.apply === true && value.targetDir === undefined) {
|
|
511
|
+
ctx.addIssue({
|
|
512
|
+
code: "custom",
|
|
513
|
+
path: ["targetDir"],
|
|
514
|
+
message: "targetDir is required when apply=true",
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
}),
|
|
518
|
+
["root", "targetDir"],
|
|
519
|
+
),
|
|
520
|
+
define(
|
|
521
|
+
"untangle_product",
|
|
522
|
+
"Resolve a search result's repository-relative path to declared features, ownership, full feature complexity and supplied test evidence. Works offline; no test execution or independent semantic proof.",
|
|
523
|
+
z
|
|
524
|
+
.object({
|
|
525
|
+
...optionalScope,
|
|
526
|
+
manifest: nonEmpty.optional(),
|
|
527
|
+
testEvidence: nonEmpty.optional(),
|
|
528
|
+
featureId: nonEmpty.optional(),
|
|
529
|
+
path: nonEmpty.optional(),
|
|
530
|
+
maxCognitive: z.number().finite().nonnegative().optional(),
|
|
531
|
+
requireComplete: z.boolean().optional(),
|
|
532
|
+
})
|
|
533
|
+
.strict(),
|
|
534
|
+
["root", "manifest", "testEvidence"],
|
|
535
|
+
),
|
|
536
|
+
define(
|
|
537
|
+
"untangle_boundaries",
|
|
538
|
+
"Read current Vue/TS/JS import context and HTTP dependencies to mounted FastAPI routes, with explicit service bindings and declared feature ownership. No index, network, project execution or inferred synchronous calls.",
|
|
539
|
+
z
|
|
540
|
+
.object({
|
|
541
|
+
...optionalScope,
|
|
542
|
+
path: nonEmpty.optional(),
|
|
543
|
+
servicesFile: nonEmpty.optional(),
|
|
544
|
+
maxRelations: z.number().int().min(1).max(1000).optional(),
|
|
545
|
+
})
|
|
546
|
+
.strict(),
|
|
547
|
+
["root", "servicesFile"],
|
|
548
|
+
),
|
|
549
|
+
] as const satisfies readonly McpToolDefinition[];
|
|
550
|
+
|
|
551
|
+
export type UntangleMcpInputByOperation = {
|
|
552
|
+
[Name in UntangleMcpToolName]: z.output<
|
|
553
|
+
Extract<(typeof UNTANGLE_MCP_TOOLS)[number], { readonly name: Name }>["inputSchema"]
|
|
554
|
+
>;
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
/** Compile-time operation map shared by typed MCP adapters and contract tests. */
|
|
558
|
+
export type UntangleMcpOperationMap = {
|
|
559
|
+
[Name in UntangleMcpToolName]: {
|
|
560
|
+
input: UntangleMcpInputByOperation[Name];
|
|
561
|
+
output: UntangleMcpSuccessDataByOperation[Name];
|
|
562
|
+
};
|
|
563
|
+
};
|
package/src/mcp/types.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ToolResponseEnvelopeV1 } from "@untangle-code/domain";
|
|
2
|
+
|
|
3
|
+
export interface McpInvocationContext {
|
|
4
|
+
readonly cwd: string;
|
|
5
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
6
|
+
readonly signal: AbortSignal;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** Application boundary used by the MCP adapter. */
|
|
10
|
+
export interface UntangleMcpRuntime {
|
|
11
|
+
invoke(
|
|
12
|
+
operation: UntangleMcpToolName,
|
|
13
|
+
input: Readonly<Record<string, unknown>>,
|
|
14
|
+
context: McpInvocationContext,
|
|
15
|
+
): Promise<ToolResponseEnvelopeV1<unknown>>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const UNTANGLE_MCP_TOOL_NAMES = [
|
|
19
|
+
"untangle_index",
|
|
20
|
+
"untangle_update",
|
|
21
|
+
"untangle_stop",
|
|
22
|
+
"untangle_watch",
|
|
23
|
+
"untangle_status",
|
|
24
|
+
"untangle_health",
|
|
25
|
+
"untangle_projects",
|
|
26
|
+
"untangle_search",
|
|
27
|
+
"untangle_search_session",
|
|
28
|
+
"untangle_context_list",
|
|
29
|
+
"untangle_context_index",
|
|
30
|
+
"untangle_context_search",
|
|
31
|
+
"untangle_context_remove",
|
|
32
|
+
"untangle_graph_build",
|
|
33
|
+
"untangle_graph_status",
|
|
34
|
+
"untangle_graph_query",
|
|
35
|
+
"untangle_graph_stats",
|
|
36
|
+
"untangle_graph_cycles",
|
|
37
|
+
"untangle_graph_visualize",
|
|
38
|
+
"untangle_graph_remove",
|
|
39
|
+
"untangle_symbols",
|
|
40
|
+
"untangle_symbol",
|
|
41
|
+
"untangle_flow",
|
|
42
|
+
"untangle_impact",
|
|
43
|
+
"untangle_cross_repo_impact",
|
|
44
|
+
"untangle_complexity",
|
|
45
|
+
"untangle_complexity_explain",
|
|
46
|
+
"untangle_hotspots",
|
|
47
|
+
"untangle_complexity_diff",
|
|
48
|
+
"untangle_changes",
|
|
49
|
+
"untangle_change_search",
|
|
50
|
+
"untangle_quality_gate",
|
|
51
|
+
"untangle_about",
|
|
52
|
+
"untangle_portfolio_scan",
|
|
53
|
+
"untangle_stack_matrix",
|
|
54
|
+
"untangle_who_uses",
|
|
55
|
+
"untangle_conventions",
|
|
56
|
+
"untangle_archetypes",
|
|
57
|
+
"untangle_tech_radar",
|
|
58
|
+
"untangle_blueprint",
|
|
59
|
+
"untangle_product",
|
|
60
|
+
"untangle_boundaries",
|
|
61
|
+
] as const;
|
|
62
|
+
|
|
63
|
+
export type UntangleMcpToolName = (typeof UNTANGLE_MCP_TOOL_NAMES)[number];
|
|
64
|
+
|
|
65
|
+
export type { UntangleMcpInputByOperation, UntangleMcpOperationMap } from "./tools.js";
|
|
66
|
+
export type { UntangleMcpSuccessDataByOperation } from "./output-schemas.js";
|