@untangle-code/cli 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/NOTICE +90 -0
- package/README.md +424 -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
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { UNTANGLE_MCP_SUCCESS_DATA_SCHEMAS, type UntangleMcpSuccessDataByOperation } from "./output-schemas.js";
|
|
3
|
+
import type { UntangleMcpToolName } from "./types.js";
|
|
4
|
+
export interface McpToolDefinition<Name extends UntangleMcpToolName = UntangleMcpToolName, InputSchema extends z.ZodType<Record<string, unknown>> = z.ZodType<Record<string, unknown>>> {
|
|
5
|
+
readonly name: Name;
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly inputSchema: InputSchema;
|
|
8
|
+
readonly successDataSchema: (typeof UNTANGLE_MCP_SUCCESS_DATA_SCHEMAS)[Name];
|
|
9
|
+
readonly pathFields: readonly string[];
|
|
10
|
+
}
|
|
11
|
+
/** Stable specified tool order, with additive product evidence inspection. */
|
|
12
|
+
export declare const UNTANGLE_MCP_TOOLS: readonly [McpToolDefinition<"untangle_index", z.ZodObject<{
|
|
13
|
+
repositoryId: z.ZodString;
|
|
14
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
root: z.ZodString;
|
|
17
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_update", z.ZodObject<{
|
|
18
|
+
repositoryId: z.ZodString;
|
|
19
|
+
paths: z.ZodArray<z.ZodString>;
|
|
20
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
root: z.ZodString;
|
|
23
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_stop", z.ZodObject<{
|
|
24
|
+
workspaceId: z.ZodString;
|
|
25
|
+
jobId: z.ZodString;
|
|
26
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_watch", z.ZodObject<{
|
|
27
|
+
repositoryId: z.ZodString;
|
|
28
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
root: z.ZodString;
|
|
30
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_status", z.ZodObject<{
|
|
31
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
32
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
root: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_health", z.ZodObject<{
|
|
35
|
+
skipEmbeddings: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
38
|
+
root: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_projects", z.ZodObject<{
|
|
40
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
root: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_search", z.ZodObject<{
|
|
43
|
+
query: z.ZodString;
|
|
44
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
symbol: "symbol";
|
|
47
|
+
hybrid: "hybrid";
|
|
48
|
+
semantic: "semantic";
|
|
49
|
+
lexical: "lexical";
|
|
50
|
+
}>>;
|
|
51
|
+
abstention: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
evidence: "evidence";
|
|
53
|
+
strict: "strict";
|
|
54
|
+
}>>;
|
|
55
|
+
requireFresh: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
repositories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
+
refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
pathGlob: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
symbolNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
includeContent: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
includeContext: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
explain: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
70
|
+
root: z.ZodOptional<z.ZodString>;
|
|
71
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_search_session", z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
72
|
+
action: z.ZodLiteral<"start">;
|
|
73
|
+
goal: z.ZodString;
|
|
74
|
+
featureId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
retainText: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
executionContext: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
agentModel: z.ZodString;
|
|
78
|
+
harness: z.ZodString;
|
|
79
|
+
searchStrategy: z.ZodString;
|
|
80
|
+
taskClass: z.ZodString;
|
|
81
|
+
taskMix: z.ZodOptional<z.ZodString>;
|
|
82
|
+
priorContext: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
root: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
action: z.ZodLiteral<"get">;
|
|
88
|
+
sessionId: z.ZodString;
|
|
89
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
root: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
+
action: z.ZodLiteral<"observe">;
|
|
93
|
+
sessionId: z.ZodString;
|
|
94
|
+
kind: z.ZodEnum<{
|
|
95
|
+
"open-file": "open-file";
|
|
96
|
+
"open-symbol": "open-symbol";
|
|
97
|
+
"graph-query": "graph-query";
|
|
98
|
+
"other-tool": "other-tool";
|
|
99
|
+
}>;
|
|
100
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
101
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
repoId: z.ZodOptional<z.ZodString>;
|
|
103
|
+
refId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
105
|
+
chunkId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
symbolId: z.ZodOptional<z.ZodString>;
|
|
107
|
+
embeddingProfileId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
indexGeneration: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strict>>;
|
|
110
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
root: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
113
|
+
action: z.ZodLiteral<"complete">;
|
|
114
|
+
sessionId: z.ZodString;
|
|
115
|
+
target: z.ZodObject<{
|
|
116
|
+
repoId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
refId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
119
|
+
chunkId: z.ZodOptional<z.ZodString>;
|
|
120
|
+
symbolId: z.ZodOptional<z.ZodString>;
|
|
121
|
+
embeddingProfileId: z.ZodOptional<z.ZodString>;
|
|
122
|
+
indexGeneration: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
acceptedAttemptId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
126
|
+
root: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
128
|
+
action: z.ZodLiteral<"abandon">;
|
|
129
|
+
sessionId: z.ZodString;
|
|
130
|
+
reasonCode: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
cancelled: "cancelled";
|
|
132
|
+
other: "other";
|
|
133
|
+
"target-not-found": "target-not-found";
|
|
134
|
+
"task-changed": "task-changed";
|
|
135
|
+
"retrieval-unavailable": "retrieval-unavailable";
|
|
136
|
+
}>>;
|
|
137
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
138
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
root: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
141
|
+
action: z.ZodLiteral<"report">;
|
|
142
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
143
|
+
root: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strict>], "action">>, McpToolDefinition<"untangle_context_list", z.ZodObject<{
|
|
145
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
146
|
+
root: z.ZodOptional<z.ZodString>;
|
|
147
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_context_index", z.ZodObject<{
|
|
148
|
+
artifactNames: z.ZodArray<z.ZodString>;
|
|
149
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
root: z.ZodString;
|
|
151
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_context_search", z.ZodObject<{
|
|
152
|
+
query: z.ZodString;
|
|
153
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
155
|
+
root: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_context_remove", z.ZodObject<{
|
|
157
|
+
target: z.ZodString;
|
|
158
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
159
|
+
root: z.ZodString;
|
|
160
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_graph_build", z.ZodObject<{
|
|
161
|
+
repositoryId: z.ZodOptional<z.ZodString>;
|
|
162
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
163
|
+
root: z.ZodString;
|
|
164
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_graph_status", z.ZodObject<{
|
|
165
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
166
|
+
root: z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_graph_query", z.ZodObject<{
|
|
168
|
+
file: z.ZodString;
|
|
169
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
dependencies: "dependencies";
|
|
171
|
+
dependents: "dependents";
|
|
172
|
+
both: "both";
|
|
173
|
+
}>>;
|
|
174
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
maxNodes: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
maxEdges: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
178
|
+
root: z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_graph_stats", z.ZodObject<{
|
|
180
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
181
|
+
root: z.ZodOptional<z.ZodString>;
|
|
182
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_graph_cycles", z.ZodObject<{
|
|
183
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
185
|
+
root: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_graph_visualize", z.ZodObject<{
|
|
187
|
+
out: z.ZodString;
|
|
188
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
189
|
+
"repository-lanes": "repository-lanes";
|
|
190
|
+
grid: "grid";
|
|
191
|
+
circle: "circle";
|
|
192
|
+
}>>;
|
|
193
|
+
maxNodes: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
maxEdges: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
196
|
+
root: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_graph_remove", z.ZodObject<{
|
|
198
|
+
target: z.ZodString;
|
|
199
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
200
|
+
root: z.ZodString;
|
|
201
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_symbols", z.ZodObject<{
|
|
202
|
+
query: z.ZodOptional<z.ZodString>;
|
|
203
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
205
|
+
root: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_symbol", z.ZodObject<{
|
|
207
|
+
symbol: z.ZodString;
|
|
208
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
209
|
+
root: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_flow", z.ZodObject<{
|
|
211
|
+
from: z.ZodString;
|
|
212
|
+
to: z.ZodOptional<z.ZodString>;
|
|
213
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
214
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
maxNodes: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
maxEdges: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
218
|
+
root: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_impact", z.ZodObject<{
|
|
220
|
+
symbol: z.ZodString;
|
|
221
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
223
|
+
maxNodes: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
maxEdges: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
227
|
+
root: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_cross_repo_impact", z.ZodObject<{
|
|
229
|
+
symbol: z.ZodString;
|
|
230
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
232
|
+
root: z.ZodOptional<z.ZodString>;
|
|
233
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_complexity", z.ZodObject<{
|
|
234
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
includeNested: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
prose: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
238
|
+
root: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_complexity_explain", z.ZodObject<{
|
|
240
|
+
symbol: z.ZodString;
|
|
241
|
+
path: z.ZodOptional<z.ZodString>;
|
|
242
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
243
|
+
root: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_hotspots", z.ZodObject<{
|
|
245
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
prose: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
248
|
+
root: z.ZodOptional<z.ZodString>;
|
|
249
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_complexity_diff", z.ZodObject<{
|
|
250
|
+
base: z.ZodString;
|
|
251
|
+
head: z.ZodString;
|
|
252
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
253
|
+
root: z.ZodOptional<z.ZodString>;
|
|
254
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_changes", z.ZodObject<{
|
|
255
|
+
base: z.ZodString;
|
|
256
|
+
head: z.ZodString;
|
|
257
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
258
|
+
root: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_change_search", z.ZodObject<{
|
|
260
|
+
query: z.ZodString;
|
|
261
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
263
|
+
root: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_quality_gate", z.ZodObject<{
|
|
265
|
+
base: z.ZodString;
|
|
266
|
+
head: z.ZodString;
|
|
267
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
268
|
+
root: z.ZodOptional<z.ZodString>;
|
|
269
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_about", z.ZodObject<{}, z.core.$strict>>, McpToolDefinition<"untangle_portfolio_scan", z.ZodObject<{
|
|
270
|
+
repositories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
271
|
+
refreshHistory: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
274
|
+
root: z.ZodOptional<z.ZodString>;
|
|
275
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_stack_matrix", z.ZodObject<{
|
|
276
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
277
|
+
includeTransitive: z.ZodOptional<z.ZodBoolean>;
|
|
278
|
+
minAdoptionShare: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
generationId: z.ZodOptional<z.ZodString>;
|
|
280
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
281
|
+
root: z.ZodOptional<z.ZodString>;
|
|
282
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_who_uses", z.ZodObject<{
|
|
283
|
+
technology: z.ZodString;
|
|
284
|
+
versionRange: z.ZodOptional<z.ZodString>;
|
|
285
|
+
includeDepth: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
+
includeDeclaredOnly: z.ZodOptional<z.ZodBoolean>;
|
|
287
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
288
|
+
root: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_conventions", z.ZodObject<{
|
|
290
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
291
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
includeCounterexamples: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
294
|
+
root: z.ZodOptional<z.ZodString>;
|
|
295
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_archetypes", z.ZodObject<{
|
|
296
|
+
repositories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
297
|
+
explain: z.ZodOptional<z.ZodBoolean>;
|
|
298
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
299
|
+
root: z.ZodOptional<z.ZodString>;
|
|
300
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_tech_radar", z.ZodObject<{
|
|
301
|
+
rings: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
302
|
+
adopt: "adopt";
|
|
303
|
+
maintain: "maintain";
|
|
304
|
+
consolidate: "consolidate";
|
|
305
|
+
retire: "retire";
|
|
306
|
+
}>>>;
|
|
307
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
308
|
+
problemDomain: z.ZodOptional<z.ZodString>;
|
|
309
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
310
|
+
root: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_blueprint", z.ZodObject<{
|
|
312
|
+
kind: z.ZodEnum<{
|
|
313
|
+
cli: "cli";
|
|
314
|
+
worker: "worker";
|
|
315
|
+
library: "library";
|
|
316
|
+
"api-service": "api-service";
|
|
317
|
+
"web-app": "web-app";
|
|
318
|
+
"mcp-server": "mcp-server";
|
|
319
|
+
}>;
|
|
320
|
+
language: z.ZodOptional<z.ZodString>;
|
|
321
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
322
|
+
targetDir: z.ZodOptional<z.ZodString>;
|
|
323
|
+
apply: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
+
showContent: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
326
|
+
root: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_product", z.ZodObject<{
|
|
328
|
+
manifest: z.ZodOptional<z.ZodString>;
|
|
329
|
+
testEvidence: z.ZodOptional<z.ZodString>;
|
|
330
|
+
featureId: z.ZodOptional<z.ZodString>;
|
|
331
|
+
path: z.ZodOptional<z.ZodString>;
|
|
332
|
+
maxCognitive: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
requireComplete: z.ZodOptional<z.ZodBoolean>;
|
|
334
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
335
|
+
root: z.ZodOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strict>>, McpToolDefinition<"untangle_boundaries", z.ZodObject<{
|
|
337
|
+
path: z.ZodOptional<z.ZodString>;
|
|
338
|
+
servicesFile: z.ZodOptional<z.ZodString>;
|
|
339
|
+
maxRelations: z.ZodOptional<z.ZodNumber>;
|
|
340
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
341
|
+
root: z.ZodOptional<z.ZodString>;
|
|
342
|
+
}, z.core.$strict>>];
|
|
343
|
+
export type UntangleMcpInputByOperation = {
|
|
344
|
+
[Name in UntangleMcpToolName]: z.output<Extract<(typeof UNTANGLE_MCP_TOOLS)[number], {
|
|
345
|
+
readonly name: Name;
|
|
346
|
+
}>["inputSchema"]>;
|
|
347
|
+
};
|
|
348
|
+
/** Compile-time operation map shared by typed MCP adapters and contract tests. */
|
|
349
|
+
export type UntangleMcpOperationMap = {
|
|
350
|
+
[Name in UntangleMcpToolName]: {
|
|
351
|
+
input: UntangleMcpInputByOperation[Name];
|
|
352
|
+
output: UntangleMcpSuccessDataByOperation[Name];
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/mcp/tools.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAY5B,OAAO,EACL,iCAAiC,EACjC,KAAK,iCAAiC,EACvC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA8BtD,MAAM,WAAW,iBAAiB,CAChC,IAAI,SAAS,mBAAmB,GAAG,mBAAmB,EACtD,WAAW,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE3F,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,OAAO,iCAAiC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7E,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AA8CD,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAobkB,CAAC;AAElD,MAAM,MAAM,2BAA2B,GAAG;KACvC,IAAI,IAAI,mBAAmB,GAAG,CAAC,CAAC,MAAM,CACrC,OAAO,CAAC,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC,aAAa,CAAC,CACrF;CACF,CAAC;AAEF,kFAAkF;AAClF,MAAM,MAAM,uBAAuB,GAAG;KACnC,IAAI,IAAI,mBAAmB,GAAG;QAC7B,KAAK,EAAE,2BAA2B,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,EAAE,iCAAiC,CAAC,IAAI,CAAC,CAAC;KACjD;CACF,CAAC"}
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { MAX_SEARCH_JOURNEY_EXECUTION_CONTEXT_LENGTH, MAX_SEARCH_JOURNEY_FEATURE_ID_LENGTH, MAX_SEARCH_JOURNEY_LOCATOR_LENGTH, MAX_SEARCH_JOURNEY_REASON_LENGTH, MAX_SEARCH_JOURNEY_TEXT_LENGTH, MAX_SEARCH_JOURNEY_TOOL_NAME_LENGTH, SEARCH_JOURNEY_ABANDON_REASON_CODES, } from "@untangle-code/domain";
|
|
2
|
+
import { MAX_MAX_EDGES, MAX_MAX_NODES } from "@untangle-code/graph-explorer";
|
|
3
|
+
import * as z from "zod/v4";
|
|
4
|
+
import { MAX_FLOW_DEPTH, MAX_FLOW_EDGES, MAX_FLOW_NODES, MAX_FLOW_RESULT_LIMIT, MAX_GRAPH_QUERY_DEPTH, MAX_GRAPH_QUERY_EDGES, MAX_GRAPH_QUERY_NODES, } from "../commands/flow/limits.js";
|
|
5
|
+
import { UNTANGLE_MCP_SUCCESS_DATA_SCHEMAS, } from "./output-schemas.js";
|
|
6
|
+
const nonEmpty = z.string().trim().min(1).max(4_096);
|
|
7
|
+
const optionalScope = {
|
|
8
|
+
workspaceId: nonEmpty.optional(),
|
|
9
|
+
root: nonEmpty.optional(),
|
|
10
|
+
};
|
|
11
|
+
const requiredScope = {
|
|
12
|
+
workspaceId: nonEmpty.optional(),
|
|
13
|
+
root: nonEmpty,
|
|
14
|
+
};
|
|
15
|
+
const positiveInt = z.number().int().positive();
|
|
16
|
+
const nonNegativeInt = z.number().int().nonnegative();
|
|
17
|
+
const journeyText = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_TEXT_LENGTH);
|
|
18
|
+
const journeyLocator = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_LOCATOR_LENGTH);
|
|
19
|
+
const journeyReason = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_REASON_LENGTH);
|
|
20
|
+
const journeyToolName = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_TOOL_NAME_LENGTH);
|
|
21
|
+
const featureId = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_FEATURE_ID_LENGTH);
|
|
22
|
+
const executionLabel = z.string().trim().min(1).max(MAX_SEARCH_JOURNEY_EXECUTION_CONTEXT_LENGTH);
|
|
23
|
+
const executionContext = z
|
|
24
|
+
.object({
|
|
25
|
+
agentModel: executionLabel,
|
|
26
|
+
harness: executionLabel,
|
|
27
|
+
searchStrategy: executionLabel,
|
|
28
|
+
taskClass: executionLabel,
|
|
29
|
+
taskMix: executionLabel.optional(),
|
|
30
|
+
priorContext: executionLabel.optional(),
|
|
31
|
+
})
|
|
32
|
+
.strict();
|
|
33
|
+
function define(name, description, inputSchema, pathFields = []) {
|
|
34
|
+
return {
|
|
35
|
+
name,
|
|
36
|
+
description,
|
|
37
|
+
inputSchema,
|
|
38
|
+
successDataSchema: UNTANGLE_MCP_SUCCESS_DATA_SCHEMAS[name],
|
|
39
|
+
pathFields,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const empty = z.object({}).strict();
|
|
43
|
+
const readScope = z.object(optionalScope).strict();
|
|
44
|
+
const searchJourneyTarget = z
|
|
45
|
+
.object({
|
|
46
|
+
repoId: journeyLocator.optional(),
|
|
47
|
+
refId: journeyLocator.optional(),
|
|
48
|
+
filePath: journeyLocator.optional(),
|
|
49
|
+
chunkId: journeyLocator.optional(),
|
|
50
|
+
symbolId: journeyLocator.optional(),
|
|
51
|
+
embeddingProfileId: journeyLocator.optional(),
|
|
52
|
+
indexGeneration: journeyLocator.optional(),
|
|
53
|
+
})
|
|
54
|
+
.strict()
|
|
55
|
+
.superRefine((target, ctx) => {
|
|
56
|
+
if (target.filePath === undefined &&
|
|
57
|
+
target.chunkId === undefined &&
|
|
58
|
+
target.symbolId === undefined) {
|
|
59
|
+
ctx.addIssue({
|
|
60
|
+
code: "custom",
|
|
61
|
+
message: "target requires filePath, chunkId or symbolId",
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
/** Stable specified tool order, with additive product evidence inspection. */
|
|
66
|
+
export const UNTANGLE_MCP_TOOLS = [
|
|
67
|
+
define("untangle_index", "Index one explicit repository target. Registered honestly even when the MCP adapter cannot execute it yet.", z
|
|
68
|
+
.object({ ...requiredScope, repositoryId: nonEmpty, background: z.boolean().optional() })
|
|
69
|
+
.strict(), ["root"]),
|
|
70
|
+
define("untangle_update", "Update one explicit repository target from changed paths.", z
|
|
71
|
+
.object({
|
|
72
|
+
...requiredScope,
|
|
73
|
+
repositoryId: nonEmpty,
|
|
74
|
+
paths: z.array(nonEmpty).min(1),
|
|
75
|
+
background: z.boolean().optional(),
|
|
76
|
+
})
|
|
77
|
+
.strict(), ["root", "paths"]),
|
|
78
|
+
define("untangle_stop", "Stop one explicitly named Untangle job.", z.object({ workspaceId: nonEmpty, jobId: nonEmpty }).strict()),
|
|
79
|
+
define("untangle_watch", "Start watching one explicit repository target.", z.object({ ...requiredScope, repositoryId: nonEmpty }).strict(), ["root"]),
|
|
80
|
+
define("untangle_status", "Read workspace or job status without mutating it.", z.object({ ...optionalScope, jobId: nonEmpty.optional() }).strict(), ["root"]),
|
|
81
|
+
define("untangle_health", "Run Untangle's configuration, storage, embedding and index health checks.", z
|
|
82
|
+
.object({
|
|
83
|
+
...optionalScope,
|
|
84
|
+
skipEmbeddings: z.boolean().optional(),
|
|
85
|
+
timeoutMs: positiveInt.optional(),
|
|
86
|
+
})
|
|
87
|
+
.strict(), ["root"]),
|
|
88
|
+
define("untangle_projects", "List configured repositories/projects.", readScope, ["root"]),
|
|
89
|
+
define("untangle_search", "Search the indexed workspace with profile-separated, evidence-bearing results.", z
|
|
90
|
+
.object({
|
|
91
|
+
...optionalScope,
|
|
92
|
+
query: journeyText,
|
|
93
|
+
limit: positiveInt.max(1_000).optional(),
|
|
94
|
+
mode: z.enum(["hybrid", "semantic", "lexical", "symbol"]).optional(),
|
|
95
|
+
abstention: z.enum(["strict", "evidence"]).optional(),
|
|
96
|
+
requireFresh: z.boolean().optional(),
|
|
97
|
+
repositories: z.array(nonEmpty).optional(),
|
|
98
|
+
refs: z.array(nonEmpty).optional(),
|
|
99
|
+
pathGlob: z.array(nonEmpty).optional(),
|
|
100
|
+
languages: z.array(nonEmpty).optional(),
|
|
101
|
+
symbolNames: z.array(nonEmpty).optional(),
|
|
102
|
+
includeContent: z.boolean().optional(),
|
|
103
|
+
includeContext: z.boolean().optional(),
|
|
104
|
+
includeLinked: z.boolean().optional(),
|
|
105
|
+
explain: z.boolean().optional(),
|
|
106
|
+
session: z
|
|
107
|
+
.object({ id: nonEmpty, step: positiveInt.max(128).optional() })
|
|
108
|
+
.strict()
|
|
109
|
+
.optional(),
|
|
110
|
+
})
|
|
111
|
+
.strict(), ["root"]),
|
|
112
|
+
define("untangle_search_session", "Start, inspect, annotate or complete a local task-scoped search journey, or report Dynamic Product Complexity.", z.discriminatedUnion("action", [
|
|
113
|
+
z
|
|
114
|
+
.object({
|
|
115
|
+
...optionalScope,
|
|
116
|
+
action: z.literal("start"),
|
|
117
|
+
goal: journeyText,
|
|
118
|
+
featureId: featureId.optional(),
|
|
119
|
+
retainText: z.boolean().optional(),
|
|
120
|
+
executionContext: executionContext.optional(),
|
|
121
|
+
})
|
|
122
|
+
.strict(),
|
|
123
|
+
z.object({ ...optionalScope, action: z.literal("get"), sessionId: nonEmpty }).strict(),
|
|
124
|
+
z
|
|
125
|
+
.object({
|
|
126
|
+
...optionalScope,
|
|
127
|
+
action: z.literal("observe"),
|
|
128
|
+
sessionId: nonEmpty,
|
|
129
|
+
kind: z.enum(["open-file", "open-symbol", "graph-query", "other-tool"]),
|
|
130
|
+
toolName: journeyToolName.optional(),
|
|
131
|
+
target: searchJourneyTarget.optional(),
|
|
132
|
+
})
|
|
133
|
+
.strict(),
|
|
134
|
+
z
|
|
135
|
+
.object({
|
|
136
|
+
...optionalScope,
|
|
137
|
+
action: z.literal("complete"),
|
|
138
|
+
sessionId: nonEmpty,
|
|
139
|
+
target: searchJourneyTarget,
|
|
140
|
+
acceptedAttemptId: journeyLocator.optional(),
|
|
141
|
+
})
|
|
142
|
+
.strict(),
|
|
143
|
+
z
|
|
144
|
+
.object({
|
|
145
|
+
...optionalScope,
|
|
146
|
+
action: z.literal("abandon"),
|
|
147
|
+
sessionId: nonEmpty,
|
|
148
|
+
reasonCode: z.enum(SEARCH_JOURNEY_ABANDON_REASON_CODES).optional(),
|
|
149
|
+
reason: journeyReason.optional(),
|
|
150
|
+
})
|
|
151
|
+
.strict(),
|
|
152
|
+
z.object({ ...optionalScope, action: z.literal("report") }).strict(),
|
|
153
|
+
]), ["root"]),
|
|
154
|
+
define("untangle_context_list", "List configured context artifacts.", readScope, ["root"]),
|
|
155
|
+
define("untangle_context_index", "Index explicitly selected context artifacts.", z.object({ ...requiredScope, artifactNames: z.array(nonEmpty).min(1) }).strict(), ["root"]),
|
|
156
|
+
define("untangle_context_search", "Search context artifacts.", z.object({ ...optionalScope, query: nonEmpty, limit: positiveInt.optional() }).strict(), ["root"]),
|
|
157
|
+
define("untangle_context_remove", "Remove one explicitly named context artifact target.", z.object({ ...requiredScope, target: nonEmpty }).strict(), ["root"]),
|
|
158
|
+
define("untangle_graph_build", "Build the graph for one explicit workspace target.", z.object({ ...requiredScope, repositoryId: nonEmpty.optional() }).strict(), ["root"]),
|
|
159
|
+
define("untangle_graph_status", "Read the persisted workspace graph status.", readScope, [
|
|
160
|
+
"root",
|
|
161
|
+
]),
|
|
162
|
+
define("untangle_graph_query", "Query a file node and its dependency/dependent neighborhood.", z
|
|
163
|
+
.object({
|
|
164
|
+
...optionalScope,
|
|
165
|
+
file: nonEmpty,
|
|
166
|
+
direction: z.enum(["both", "dependencies", "dependents"]).optional(),
|
|
167
|
+
depth: positiveInt.max(MAX_GRAPH_QUERY_DEPTH).optional(),
|
|
168
|
+
maxNodes: positiveInt.max(MAX_GRAPH_QUERY_NODES).optional(),
|
|
169
|
+
maxEdges: positiveInt.max(MAX_GRAPH_QUERY_EDGES).optional(),
|
|
170
|
+
})
|
|
171
|
+
.strict(), ["root"]),
|
|
172
|
+
define("untangle_graph_stats", "Return persisted file-graph metrics and provenance.", readScope, [
|
|
173
|
+
"root",
|
|
174
|
+
]),
|
|
175
|
+
define("untangle_graph_cycles", "List persisted file-graph cycles without breaking them.", z.object({ ...optionalScope, limit: nonNegativeInt.optional() }).strict(), ["root"]),
|
|
176
|
+
define("untangle_graph_visualize", "Write a deterministic, self-contained offline HTML graph explorer.", z
|
|
177
|
+
.object({
|
|
178
|
+
...optionalScope,
|
|
179
|
+
out: nonEmpty,
|
|
180
|
+
layout: z.enum(["repository-lanes", "grid", "circle"]).optional(),
|
|
181
|
+
maxNodes: positiveInt.max(MAX_MAX_NODES).optional(),
|
|
182
|
+
maxEdges: positiveInt.max(MAX_MAX_EDGES).optional(),
|
|
183
|
+
})
|
|
184
|
+
.strict(), ["root", "out"]),
|
|
185
|
+
define("untangle_graph_remove", "Remove one explicitly identified graph generation.", z.object({ ...requiredScope, target: nonEmpty }).strict(), ["root"]),
|
|
186
|
+
define("untangle_symbols", "List persisted symbol nodes with deterministic ordering.", z
|
|
187
|
+
.object({ ...optionalScope, query: nonEmpty.optional(), limit: positiveInt.optional() })
|
|
188
|
+
.strict(), ["root"]),
|
|
189
|
+
define("untangle_symbol", "Resolve one unambiguous persisted symbol and show callers/callees.", z.object({ ...optionalScope, symbol: nonEmpty }).strict(), ["root"]),
|
|
190
|
+
define("untangle_flow", "Find persisted call paths between two unambiguous symbols.", z
|
|
191
|
+
.object({
|
|
192
|
+
...optionalScope,
|
|
193
|
+
from: nonEmpty,
|
|
194
|
+
to: nonEmpty.optional(),
|
|
195
|
+
depth: positiveInt.max(MAX_FLOW_DEPTH).optional(),
|
|
196
|
+
limit: positiveInt.max(MAX_FLOW_RESULT_LIMIT).optional(),
|
|
197
|
+
maxNodes: positiveInt.max(MAX_FLOW_NODES).optional(),
|
|
198
|
+
maxEdges: positiveInt.max(MAX_FLOW_EDGES).optional(),
|
|
199
|
+
})
|
|
200
|
+
.strict(), ["root"]),
|
|
201
|
+
define("untangle_impact", "Analyze callers affected by one persisted symbol.", z
|
|
202
|
+
.object({
|
|
203
|
+
...optionalScope,
|
|
204
|
+
symbol: nonEmpty,
|
|
205
|
+
depth: positiveInt.max(MAX_FLOW_DEPTH).optional(),
|
|
206
|
+
limit: positiveInt.max(MAX_FLOW_RESULT_LIMIT).optional(),
|
|
207
|
+
maxNodes: positiveInt.max(MAX_FLOW_NODES).optional(),
|
|
208
|
+
maxEdges: positiveInt.max(MAX_FLOW_EDGES).optional(),
|
|
209
|
+
minConfidence: z.number().min(0).max(1).optional(),
|
|
210
|
+
})
|
|
211
|
+
.strict(), ["root"]),
|
|
212
|
+
define("untangle_cross_repo_impact", "Analyze impact across repositories from a workspace graph snapshot.", z.object({ ...optionalScope, symbol: nonEmpty, depth: positiveInt.optional() }).strict(), ["root"]),
|
|
213
|
+
define("untangle_complexity", "Measure code complexity directly from workspace files, without an index.", z
|
|
214
|
+
.object({
|
|
215
|
+
...optionalScope,
|
|
216
|
+
top: nonNegativeInt.optional(),
|
|
217
|
+
includeNested: z.boolean().optional(),
|
|
218
|
+
prose: z.boolean().optional(),
|
|
219
|
+
})
|
|
220
|
+
.strict(), ["root"]),
|
|
221
|
+
define("untangle_complexity_explain", "Explain the contribution sites of one complexity scope.", z.object({ ...optionalScope, symbol: nonEmpty, path: nonEmpty.optional() }).strict(), ["root", "path"]),
|
|
222
|
+
define("untangle_hotspots", "List the highest measured complexity hotspots.", z
|
|
223
|
+
.object({ ...optionalScope, limit: nonNegativeInt.optional(), prose: z.boolean().optional() })
|
|
224
|
+
.strict(), ["root"]),
|
|
225
|
+
define("untangle_complexity_diff", "Compare complexity between two explicit revisions.", z.object({ ...optionalScope, base: nonEmpty, head: nonEmpty }).strict(), ["root"]),
|
|
226
|
+
define("untangle_changes", "Analyze changes between two explicit revisions.", z.object({ ...optionalScope, base: nonEmpty, head: nonEmpty }).strict(), ["root"]),
|
|
227
|
+
define("untangle_change_search", "Search persisted change history.", z.object({ ...optionalScope, query: nonEmpty, limit: positiveInt.optional() }).strict(), ["root"]),
|
|
228
|
+
define("untangle_quality_gate", "Evaluate a delta-first quality gate between two explicit revisions.", z.object({ ...optionalScope, base: nonEmpty, head: nonEmpty }).strict(), ["root"]),
|
|
229
|
+
define("untangle_about", "Return version, license, source and capability truth.", empty),
|
|
230
|
+
define("untangle_portfolio_scan", "Scan an explicit portfolio workspace.", z
|
|
231
|
+
.object({
|
|
232
|
+
...optionalScope,
|
|
233
|
+
repositories: z.array(nonEmpty).optional(),
|
|
234
|
+
refreshHistory: z.boolean().optional(),
|
|
235
|
+
background: z.boolean().optional(),
|
|
236
|
+
})
|
|
237
|
+
.strict(), ["root"]),
|
|
238
|
+
define("untangle_stack_matrix", "Read a portfolio technology stack matrix.", z
|
|
239
|
+
.object({
|
|
240
|
+
...optionalScope,
|
|
241
|
+
categories: z.array(nonEmpty).optional(),
|
|
242
|
+
includeTransitive: z.boolean().optional(),
|
|
243
|
+
minAdoptionShare: z.number().min(0).max(1).optional(),
|
|
244
|
+
generationId: nonEmpty.optional(),
|
|
245
|
+
})
|
|
246
|
+
.strict(), ["root"]),
|
|
247
|
+
define("untangle_who_uses", "Find repositories using one technology.", z
|
|
248
|
+
.object({
|
|
249
|
+
...optionalScope,
|
|
250
|
+
technology: nonEmpty,
|
|
251
|
+
versionRange: nonEmpty.optional(),
|
|
252
|
+
includeDepth: z.boolean().optional(),
|
|
253
|
+
includeDeclaredOnly: z.boolean().optional(),
|
|
254
|
+
})
|
|
255
|
+
.strict(), ["root"]),
|
|
256
|
+
define("untangle_conventions", "Read detected repository conventions with evidence.", z
|
|
257
|
+
.object({
|
|
258
|
+
...optionalScope,
|
|
259
|
+
kinds: z.array(nonEmpty).optional(),
|
|
260
|
+
minConfidence: z.number().min(0).max(1).optional(),
|
|
261
|
+
includeCounterexamples: z.boolean().optional(),
|
|
262
|
+
})
|
|
263
|
+
.strict(), ["root"]),
|
|
264
|
+
define("untangle_archetypes", "Read deterministic project archetype assignments.", z
|
|
265
|
+
.object({
|
|
266
|
+
...optionalScope,
|
|
267
|
+
repositories: z.array(nonEmpty).optional(),
|
|
268
|
+
explain: z.boolean().optional(),
|
|
269
|
+
})
|
|
270
|
+
.strict(), ["root"]),
|
|
271
|
+
define("untangle_tech_radar", "Read the evidence-backed portfolio technology radar.", z
|
|
272
|
+
.object({
|
|
273
|
+
...optionalScope,
|
|
274
|
+
rings: z.array(z.enum(["adopt", "maintain", "consolidate", "retire"])).optional(),
|
|
275
|
+
categories: z.array(nonEmpty).optional(),
|
|
276
|
+
problemDomain: nonEmpty.optional(),
|
|
277
|
+
})
|
|
278
|
+
.strict(), ["root"]),
|
|
279
|
+
define("untangle_blueprint", "Generate or apply an evidence-backed project blueprint.", z
|
|
280
|
+
.object({
|
|
281
|
+
...optionalScope,
|
|
282
|
+
kind: z.enum(["api-service", "worker", "cli", "library", "web-app", "mcp-server"]),
|
|
283
|
+
language: nonEmpty.optional(),
|
|
284
|
+
topics: z.array(nonEmpty).optional(),
|
|
285
|
+
targetDir: nonEmpty.optional(),
|
|
286
|
+
apply: z.boolean().optional(),
|
|
287
|
+
showContent: z.boolean().optional(),
|
|
288
|
+
})
|
|
289
|
+
.strict()
|
|
290
|
+
.superRefine((value, ctx) => {
|
|
291
|
+
if (value.apply === true && value.targetDir === undefined) {
|
|
292
|
+
ctx.addIssue({
|
|
293
|
+
code: "custom",
|
|
294
|
+
path: ["targetDir"],
|
|
295
|
+
message: "targetDir is required when apply=true",
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
}), ["root", "targetDir"]),
|
|
299
|
+
define("untangle_product", "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.", z
|
|
300
|
+
.object({
|
|
301
|
+
...optionalScope,
|
|
302
|
+
manifest: nonEmpty.optional(),
|
|
303
|
+
testEvidence: nonEmpty.optional(),
|
|
304
|
+
featureId: nonEmpty.optional(),
|
|
305
|
+
path: nonEmpty.optional(),
|
|
306
|
+
maxCognitive: z.number().finite().nonnegative().optional(),
|
|
307
|
+
requireComplete: z.boolean().optional(),
|
|
308
|
+
})
|
|
309
|
+
.strict(), ["root", "manifest", "testEvidence"]),
|
|
310
|
+
define("untangle_boundaries", "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.", z
|
|
311
|
+
.object({
|
|
312
|
+
...optionalScope,
|
|
313
|
+
path: nonEmpty.optional(),
|
|
314
|
+
servicesFile: nonEmpty.optional(),
|
|
315
|
+
maxRelations: z.number().int().min(1).max(1000).optional(),
|
|
316
|
+
})
|
|
317
|
+
.strict(), ["root", "servicesFile"]),
|
|
318
|
+
];
|
|
319
|
+
//# sourceMappingURL=tools.js.map
|