@wootsup/yt-builder-mcp 1.12.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +128 -30
- package/bin/node-floor.d.ts +28 -0
- package/bin/node-floor.js +123 -0
- package/bin/yt-builder-mcp.js +51 -10
- package/dist/auth.d.ts +3 -121
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +40 -170
- package/dist/auth.js.map +1 -1
- package/dist/catalog/build-catalog.d.ts +4 -49
- package/dist/catalog/build-catalog.d.ts.map +1 -1
- package/dist/catalog/build-catalog.js +15 -126
- package/dist/catalog/build-catalog.js.map +1 -1
- package/dist/catalog/json-schema.d.ts +3 -0
- package/dist/catalog/json-schema.d.ts.map +1 -0
- package/dist/catalog/json-schema.js +68 -0
- package/dist/catalog/json-schema.js.map +1 -0
- package/dist/catalog/output-shapes.d.ts +6 -0
- package/dist/catalog/output-shapes.d.ts.map +1 -0
- package/dist/catalog/output-shapes.js +89 -0
- package/dist/catalog/output-shapes.js.map +1 -0
- package/dist/catalog/tool-catalog-markdown.d.ts +1 -37
- package/dist/catalog/tool-catalog-markdown.d.ts.map +1 -1
- package/dist/catalog/tool-catalog-markdown.js +8 -52
- package/dist/catalog/tool-catalog-markdown.js.map +1 -1
- package/dist/cli/doctor-command.d.ts +2 -7
- package/dist/cli/doctor-command.d.ts.map +1 -1
- package/dist/cli/doctor-command.js +21 -62
- package/dist/cli/doctor-command.js.map +1 -1
- package/dist/cli/invocation-decision.d.ts +4 -52
- package/dist/cli/invocation-decision.d.ts.map +1 -1
- package/dist/cli/invocation-decision.js +45 -54
- package/dist/cli/invocation-decision.js.map +1 -1
- package/dist/client.d.ts +3 -107
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +34 -115
- package/dist/client.js.map +1 -1
- package/dist/clients/claude-code.d.ts +0 -15
- package/dist/clients/claude-code.d.ts.map +1 -1
- package/dist/clients/claude-code.js +0 -22
- package/dist/clients/claude-code.js.map +1 -1
- package/dist/clients/claude-desktop.d.ts +0 -16
- package/dist/clients/claude-desktop.d.ts.map +1 -1
- package/dist/clients/claude-desktop.js +0 -18
- package/dist/clients/claude-desktop.js.map +1 -1
- package/dist/clients/cline.d.ts +0 -23
- package/dist/clients/cline.d.ts.map +1 -1
- package/dist/clients/cline.js +0 -33
- package/dist/clients/cline.js.map +1 -1
- package/dist/clients/codex-cli.d.ts +0 -39
- package/dist/clients/codex-cli.d.ts.map +1 -1
- package/dist/clients/codex-cli.js +0 -137
- package/dist/clients/codex-cli.js.map +1 -1
- package/dist/clients/continue.d.ts +0 -10
- package/dist/clients/continue.d.ts.map +1 -1
- package/dist/clients/continue.js +0 -26
- package/dist/clients/continue.js.map +1 -1
- package/dist/clients/cursor.d.ts +0 -9
- package/dist/clients/cursor.d.ts.map +1 -1
- package/dist/clients/cursor.js +0 -11
- package/dist/clients/cursor.js.map +1 -1
- package/dist/clients/gemini-cli.d.ts +0 -15
- package/dist/clients/gemini-cli.d.ts.map +1 -1
- package/dist/clients/gemini-cli.js +0 -17
- package/dist/clients/gemini-cli.js.map +1 -1
- package/dist/clients/home.d.ts +0 -12
- package/dist/clients/home.d.ts.map +1 -1
- package/dist/clients/home.js +0 -12
- package/dist/clients/home.js.map +1 -1
- package/dist/clients/index.d.ts +0 -150
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/index.js +0 -112
- package/dist/clients/index.js.map +1 -1
- package/dist/clients/roo-code.d.ts +0 -20
- package/dist/clients/roo-code.d.ts.map +1 -1
- package/dist/clients/roo-code.js +0 -22
- package/dist/clients/roo-code.js.map +1 -1
- package/dist/clients/zed.d.ts +0 -9
- package/dist/clients/zed.d.ts.map +1 -1
- package/dist/clients/zed.js +0 -18
- package/dist/clients/zed.js.map +1 -1
- package/dist/compat-floor.d.ts +35 -0
- package/dist/compat-floor.d.ts.map +1 -0
- package/dist/compat-floor.js +84 -0
- package/dist/compat-floor.js.map +1 -0
- package/dist/compat-probe.d.ts +6 -0
- package/dist/compat-probe.d.ts.map +1 -0
- package/dist/compat-probe.js +20 -0
- package/dist/compat-probe.js.map +1 -0
- package/dist/diagnostics/ca-reexec.d.ts +0 -30
- package/dist/diagnostics/ca-reexec.d.ts.map +1 -1
- package/dist/diagnostics/ca-reexec.js +0 -62
- package/dist/diagnostics/ca-reexec.js.map +1 -1
- package/dist/diagnostics/ca-trust.d.ts +0 -22
- package/dist/diagnostics/ca-trust.d.ts.map +1 -1
- package/dist/diagnostics/ca-trust.js +3 -42
- package/dist/diagnostics/ca-trust.js.map +1 -1
- package/dist/diagnostics/diagnose-network-error.d.ts +1 -38
- package/dist/diagnostics/diagnose-network-error.d.ts.map +1 -1
- package/dist/diagnostics/diagnose-network-error.js +26 -37
- package/dist/diagnostics/diagnose-network-error.js.map +1 -1
- package/dist/diagnostics/doctor.d.ts +1 -85
- package/dist/diagnostics/doctor.d.ts.map +1 -1
- package/dist/diagnostics/doctor.js +5 -90
- package/dist/diagnostics/doctor.js.map +1 -1
- package/dist/diagnostics/startup-self-probe.d.ts +3 -25
- package/dist/diagnostics/startup-self-probe.d.ts.map +1 -1
- package/dist/diagnostics/startup-self-probe.js +11 -48
- package/dist/diagnostics/startup-self-probe.js.map +1 -1
- package/dist/errors/hints.d.ts +0 -44
- package/dist/errors/hints.d.ts.map +1 -1
- package/dist/errors/hints.js +0 -32
- package/dist/errors/hints.js.map +1 -1
- package/dist/errors/mask.d.ts +0 -31
- package/dist/errors/mask.d.ts.map +1 -1
- package/dist/errors/mask.js +0 -32
- package/dist/errors/mask.js.map +1 -1
- package/dist/errors/redact-credentials.d.ts +2 -0
- package/dist/errors/redact-credentials.d.ts.map +1 -0
- package/dist/errors/redact-credentials.js +13 -0
- package/dist/errors/redact-credentials.js.map +1 -0
- package/dist/errors/sanitize.d.ts +0 -29
- package/dist/errors/sanitize.d.ts.map +1 -1
- package/dist/errors/sanitize.js +0 -40
- package/dist/errors/sanitize.js.map +1 -1
- package/dist/errors.d.ts +6 -17
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +16 -21
- package/dist/errors.js.map +1 -1
- package/dist/gateway/advanced-read-tool.d.ts +0 -32
- package/dist/gateway/advanced-read-tool.d.ts.map +1 -1
- package/dist/gateway/advanced-read-tool.js +43 -111
- package/dist/gateway/advanced-read-tool.js.map +1 -1
- package/dist/gateway/advanced-tool/discovery.d.ts +1 -12
- package/dist/gateway/advanced-tool/discovery.d.ts.map +1 -1
- package/dist/gateway/advanced-tool/discovery.js +15 -24
- package/dist/gateway/advanced-tool/discovery.js.map +1 -1
- package/dist/gateway/advanced-tool/domains.d.ts +7 -66
- package/dist/gateway/advanced-tool/domains.d.ts.map +1 -1
- package/dist/gateway/advanced-tool/domains.js +36 -80
- package/dist/gateway/advanced-tool/domains.js.map +1 -1
- package/dist/gateway/advanced-tool/execute.d.ts +0 -25
- package/dist/gateway/advanced-tool/execute.d.ts.map +1 -1
- package/dist/gateway/advanced-tool/execute.js +13 -49
- package/dist/gateway/advanced-tool/execute.js.map +1 -1
- package/dist/gateway/advanced-tool/index.d.ts +1 -32
- package/dist/gateway/advanced-tool/index.d.ts.map +1 -1
- package/dist/gateway/advanced-tool/index.js +1 -35
- package/dist/gateway/advanced-tool/index.js.map +1 -1
- package/dist/gateway/advanced-tool/register.d.ts +0 -14
- package/dist/gateway/advanced-tool/register.d.ts.map +1 -1
- package/dist/gateway/advanced-tool/register.js +22 -58
- package/dist/gateway/advanced-tool/register.js.map +1 -1
- package/dist/gateway/advanced-tool.d.ts +0 -11
- package/dist/gateway/advanced-tool.d.ts.map +1 -1
- package/dist/gateway/advanced-tool.js +0 -11
- package/dist/gateway/advanced-tool.js.map +1 -1
- package/dist/gateway/capturing-server.d.ts +3 -88
- package/dist/gateway/capturing-server.d.ts.map +1 -1
- package/dist/gateway/capturing-server.js +0 -77
- package/dist/gateway/capturing-server.js.map +1 -1
- package/dist/gateway/essentials.d.ts +1 -63
- package/dist/gateway/essentials.d.ts.map +1 -1
- package/dist/gateway/essentials.js +9 -178
- package/dist/gateway/essentials.js.map +1 -1
- package/dist/gateway/test-support.d.ts +0 -28
- package/dist/gateway/test-support.d.ts.map +1 -1
- package/dist/gateway/test-support.js +0 -29
- package/dist/gateway/test-support.js.map +1 -1
- package/dist/health-response.d.ts +2 -0
- package/dist/health-response.d.ts.map +1 -0
- package/dist/health-response.js +7 -0
- package/dist/health-response.js.map +1 -0
- package/dist/icon-data.js +0 -3
- package/dist/icon-data.js.map +1 -1
- package/dist/index.d.ts +7 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -130
- package/dist/index.js.map +1 -1
- package/dist/install-skill.d.ts +0 -44
- package/dist/install-skill.d.ts.map +1 -1
- package/dist/install-skill.js +5 -46
- package/dist/install-skill.js.map +1 -1
- package/dist/net/extra-headers.d.ts +0 -58
- package/dist/net/extra-headers.d.ts.map +1 -1
- package/dist/net/extra-headers.js +0 -67
- package/dist/net/extra-headers.js.map +1 -1
- package/dist/net/internal-host.d.ts +0 -31
- package/dist/net/internal-host.d.ts.map +1 -1
- package/dist/net/internal-host.js +7 -65
- package/dist/net/internal-host.js.map +1 -1
- package/dist/net/proxy-dispatcher.d.ts +0 -37
- package/dist/net/proxy-dispatcher.d.ts.map +1 -1
- package/dist/net/proxy-dispatcher.js +0 -40
- package/dist/net/proxy-dispatcher.js.map +1 -1
- package/dist/net/public-fetch.d.ts +53 -0
- package/dist/net/public-fetch.d.ts.map +1 -0
- package/dist/net/public-fetch.js +143 -0
- package/dist/net/public-fetch.js.map +1 -0
- package/dist/net/public-page-report.d.ts +26 -0
- package/dist/net/public-page-report.d.ts.map +1 -0
- package/dist/net/public-page-report.js +145 -0
- package/dist/net/public-page-report.js.map +1 -0
- package/dist/net/redirect-safe-fetch.d.ts +14 -0
- package/dist/net/redirect-safe-fetch.d.ts.map +1 -0
- package/dist/net/redirect-safe-fetch.js +61 -0
- package/dist/net/redirect-safe-fetch.js.map +1 -0
- package/dist/net/session-recovery-fetch.d.ts +7 -0
- package/dist/net/session-recovery-fetch.d.ts.map +1 -0
- package/dist/net/session-recovery-fetch.js +139 -0
- package/dist/net/session-recovery-fetch.js.map +1 -0
- package/dist/net/site-basic-auth.d.ts +1 -59
- package/dist/net/site-basic-auth.d.ts.map +1 -1
- package/dist/net/site-basic-auth.js +5 -94
- package/dist/net/site-basic-auth.js.map +1 -1
- package/dist/package-version.d.ts +2 -0
- package/dist/package-version.d.ts.map +1 -0
- package/dist/package-version.js +15 -0
- package/dist/package-version.js.map +1 -0
- package/dist/platform/detect.d.ts +0 -54
- package/dist/platform/detect.d.ts.map +1 -1
- package/dist/platform/detect.js +0 -53
- package/dist/platform/detect.js.map +1 -1
- package/dist/platform/index.d.ts +0 -100
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/index.js +0 -106
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/joomla.d.ts +0 -35
- package/dist/platform/joomla.d.ts.map +1 -1
- package/dist/platform/joomla.js +0 -35
- package/dist/platform/joomla.js.map +1 -1
- package/dist/proxy/bridge.d.ts +36 -76
- package/dist/proxy/bridge.d.ts.map +1 -1
- package/dist/proxy/bridge.js +443 -136
- package/dist/proxy/bridge.js.map +1 -1
- package/dist/proxy/confirm-elicitation.d.ts +22 -0
- package/dist/proxy/confirm-elicitation.d.ts.map +1 -0
- package/dist/proxy/confirm-elicitation.js +170 -0
- package/dist/proxy/confirm-elicitation.js.map +1 -0
- package/dist/proxy/confirm-question-contract.d.ts +6 -0
- package/dist/proxy/confirm-question-contract.d.ts.map +1 -0
- package/dist/proxy/confirm-question-contract.js +9 -0
- package/dist/proxy/confirm-question-contract.js.map +1 -0
- package/dist/proxy/confirm-question.d.ts +2 -0
- package/dist/proxy/confirm-question.d.ts.map +1 -0
- package/dist/proxy/confirm-question.js +125 -0
- package/dist/proxy/confirm-question.js.map +1 -0
- package/dist/proxy/instructions.d.ts +4 -0
- package/dist/proxy/instructions.d.ts.map +1 -0
- package/dist/proxy/instructions.js +12 -0
- package/dist/proxy/instructions.js.map +1 -0
- package/dist/proxy/mode.d.ts +14 -9
- package/dist/proxy/mode.d.ts.map +1 -1
- package/dist/proxy/mode.js +58 -34
- package/dist/proxy/mode.js.map +1 -1
- package/dist/proxy/multi-site.d.ts +42 -0
- package/dist/proxy/multi-site.d.ts.map +1 -0
- package/dist/proxy/multi-site.js +134 -0
- package/dist/proxy/multi-site.js.map +1 -0
- package/dist/proxy/request-headers.d.ts +9 -0
- package/dist/proxy/request-headers.d.ts.map +1 -0
- package/dist/proxy/request-headers.js +17 -0
- package/dist/proxy/request-headers.js.map +1 -0
- package/dist/proxy/shadow-tools.d.ts +9 -0
- package/dist/proxy/shadow-tools.d.ts.map +1 -0
- package/dist/proxy/shadow-tools.js +42 -0
- package/dist/proxy/shadow-tools.js.map +1 -0
- package/dist/proxy/tools-list-cap.d.ts +7 -0
- package/dist/proxy/tools-list-cap.d.ts.map +1 -0
- package/dist/proxy/tools-list-cap.js +14 -0
- package/dist/proxy/tools-list-cap.js.map +1 -0
- package/dist/proxy/transport-uncertainty.d.ts +2 -0
- package/dist/proxy/transport-uncertainty.d.ts.map +1 -0
- package/dist/proxy/transport-uncertainty.js +8 -0
- package/dist/proxy/transport-uncertainty.js.map +1 -0
- package/dist/proxy/upstream-error.d.ts +7 -0
- package/dist/proxy/upstream-error.d.ts.map +1 -0
- package/dist/proxy/upstream-error.js +35 -0
- package/dist/proxy/upstream-error.js.map +1 -0
- package/dist/proxy/wire-dialect.d.ts +5 -0
- package/dist/proxy/wire-dialect.d.ts.map +1 -0
- package/dist/proxy/wire-dialect.js +33 -0
- package/dist/proxy/wire-dialect.js.map +1 -0
- package/dist/server.d.ts +14 -82
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +107 -203
- package/dist/server.js.map +1 -1
- package/dist/setup/banner-color.d.ts +13 -0
- package/dist/setup/banner-color.d.ts.map +1 -0
- package/dist/setup/banner-color.js +93 -0
- package/dist/setup/banner-color.js.map +1 -0
- package/dist/setup/banner.d.ts +22 -0
- package/dist/setup/banner.d.ts.map +1 -0
- package/dist/setup/banner.js +119 -0
- package/dist/setup/banner.js.map +1 -0
- package/dist/setup/ca-recovery.d.ts +20 -0
- package/dist/setup/ca-recovery.d.ts.map +1 -0
- package/dist/setup/ca-recovery.js +92 -0
- package/dist/setup/ca-recovery.js.map +1 -0
- package/dist/setup/closing.d.ts +15 -0
- package/dist/setup/closing.d.ts.map +1 -0
- package/dist/setup/closing.js +43 -0
- package/dist/setup/closing.js.map +1 -0
- package/dist/setup/corporate-ca.d.ts +16 -0
- package/dist/setup/corporate-ca.d.ts.map +1 -0
- package/dist/setup/corporate-ca.js +32 -0
- package/dist/setup/corporate-ca.js.map +1 -0
- package/dist/setup/host-platform.d.ts +8 -0
- package/dist/setup/host-platform.d.ts.map +1 -0
- package/dist/setup/host-platform.js +21 -0
- package/dist/setup/host-platform.js.map +1 -0
- package/dist/setup/install-configs.d.ts +18 -0
- package/dist/setup/install-configs.d.ts.map +1 -0
- package/dist/setup/install-configs.js +70 -0
- package/dist/setup/install-configs.js.map +1 -0
- package/dist/setup/multi-site-loop.d.ts +14 -0
- package/dist/setup/multi-site-loop.d.ts.map +1 -0
- package/dist/setup/multi-site-loop.js +20 -0
- package/dist/setup/multi-site-loop.js.map +1 -0
- package/dist/setup/phases.d.ts +18 -0
- package/dist/setup/phases.d.ts.map +1 -0
- package/dist/setup/phases.js +55 -0
- package/dist/setup/phases.js.map +1 -0
- package/dist/setup/registry-remedy.d.ts +12 -0
- package/dist/setup/registry-remedy.d.ts.map +1 -0
- package/dist/setup/registry-remedy.js +37 -0
- package/dist/setup/registry-remedy.js.map +1 -0
- package/dist/setup/resume.d.ts +28 -0
- package/dist/setup/resume.d.ts.map +1 -0
- package/dist/setup/resume.js +99 -0
- package/dist/setup/resume.js.map +1 -0
- package/dist/setup-ca-env.d.ts +0 -30
- package/dist/setup-ca-env.d.ts.map +1 -1
- package/dist/setup-ca-env.js +0 -28
- package/dist/setup-ca-env.js.map +1 -1
- package/dist/setup-ca-reprobe.d.ts +0 -25
- package/dist/setup-ca-reprobe.d.ts.map +1 -1
- package/dist/setup-ca-reprobe.js +0 -34
- package/dist/setup-ca-reprobe.js.map +1 -1
- package/dist/setup-cli-confirm.d.ts +0 -34
- package/dist/setup-cli-confirm.d.ts.map +1 -1
- package/dist/setup-cli-confirm.js +0 -36
- package/dist/setup-cli-confirm.js.map +1 -1
- package/dist/setup-cli.d.ts +6 -167
- package/dist/setup-cli.d.ts.map +1 -1
- package/dist/setup-cli.js +161 -173
- package/dist/setup-cli.js.map +1 -1
- package/dist/setup-npx-spec.d.ts +0 -36
- package/dist/setup-npx-spec.d.ts.map +1 -1
- package/dist/setup-npx-spec.js +0 -38
- package/dist/setup-npx-spec.js.map +1 -1
- package/dist/setup-prompts.d.ts +5 -70
- package/dist/setup-prompts.d.ts.map +1 -1
- package/dist/setup-prompts.js +67 -107
- package/dist/setup-prompts.js.map +1 -1
- package/dist/setup-token.d.ts +0 -34
- package/dist/setup-token.d.ts.map +1 -1
- package/dist/setup-token.js +0 -40
- package/dist/setup-token.js.map +1 -1
- package/dist/setup-wizard-defaults.d.ts +0 -36
- package/dist/setup-wizard-defaults.d.ts.map +1 -1
- package/dist/setup-wizard-defaults.js +0 -75
- package/dist/setup-wizard-defaults.js.map +1 -1
- package/dist/setup-wizard-handshake.d.ts +1 -19
- package/dist/setup-wizard-handshake.d.ts.map +1 -1
- package/dist/setup-wizard-handshake.js +8 -45
- package/dist/setup-wizard-handshake.js.map +1 -1
- package/dist/setup-wizard-types.d.ts +16 -209
- package/dist/setup-wizard-types.d.ts.map +1 -1
- package/dist/setup-wizard-types.js +0 -9
- package/dist/setup-wizard-types.js.map +1 -1
- package/dist/setup-wizard.d.ts +0 -28
- package/dist/setup-wizard.d.ts.map +1 -1
- package/dist/setup-wizard.js +167 -412
- package/dist/setup-wizard.js.map +1 -1
- package/dist/setup.d.ts +0 -15
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +0 -15
- package/dist/setup.js.map +1 -1
- package/dist/sites/bootstrap.d.ts +0 -38
- package/dist/sites/bootstrap.d.ts.map +1 -1
- package/dist/sites/bootstrap.js +0 -44
- package/dist/sites/bootstrap.js.map +1 -1
- package/dist/sites/cli/add-site.d.ts +0 -76
- package/dist/sites/cli/add-site.d.ts.map +1 -1
- package/dist/sites/cli/add-site.js +0 -71
- package/dist/sites/cli/add-site.js.map +1 -1
- package/dist/sites/cli/list-sites.d.ts +0 -31
- package/dist/sites/cli/list-sites.d.ts.map +1 -1
- package/dist/sites/cli/list-sites.js +0 -45
- package/dist/sites/cli/list-sites.js.map +1 -1
- package/dist/sites/cli/remove-site.d.ts +0 -37
- package/dist/sites/cli/remove-site.d.ts.map +1 -1
- package/dist/sites/cli/remove-site.js +0 -37
- package/dist/sites/cli/remove-site.js.map +1 -1
- package/dist/sites/cli/set-default.d.ts +0 -25
- package/dist/sites/cli/set-default.d.ts.map +1 -1
- package/dist/sites/cli/set-default.js +0 -22
- package/dist/sites/cli/set-default.js.map +1 -1
- package/dist/sites/cli/test-site.d.ts +0 -44
- package/dist/sites/cli/test-site.d.ts.map +1 -1
- package/dist/sites/cli/test-site.js +0 -39
- package/dist/sites/cli/test-site.js.map +1 -1
- package/dist/sites/client-pool.d.ts +11 -164
- package/dist/sites/client-pool.d.ts.map +1 -1
- package/dist/sites/client-pool.js +73 -194
- package/dist/sites/client-pool.js.map +1 -1
- package/dist/sites/config-problem.d.ts +2 -0
- package/dist/sites/config-problem.d.ts.map +1 -0
- package/dist/sites/config-problem.js +13 -0
- package/dist/sites/config-problem.js.map +1 -0
- package/dist/sites/env-bridge.d.ts +0 -69
- package/dist/sites/env-bridge.d.ts.map +1 -1
- package/dist/sites/env-bridge.js +2 -71
- package/dist/sites/env-bridge.js.map +1 -1
- package/dist/sites/op-inject.d.ts +23 -0
- package/dist/sites/op-inject.d.ts.map +1 -0
- package/dist/sites/op-inject.js +131 -0
- package/dist/sites/op-inject.js.map +1 -0
- package/dist/sites/paths.d.ts +0 -19
- package/dist/sites/paths.d.ts.map +1 -1
- package/dist/sites/paths.js +0 -19
- package/dist/sites/paths.js.map +1 -1
- package/dist/sites/probe.d.ts +1 -47
- package/dist/sites/probe.d.ts.map +1 -1
- package/dist/sites/probe.js +4 -46
- package/dist/sites/probe.js.map +1 -1
- package/dist/sites/registry.d.ts +4 -135
- package/dist/sites/registry.d.ts.map +1 -1
- package/dist/sites/registry.js +4 -98
- package/dist/sites/registry.js.map +1 -1
- package/dist/sites/schema.d.ts +3 -51
- package/dist/sites/schema.d.ts.map +1 -1
- package/dist/sites/schema.js +6 -52
- package/dist/sites/schema.js.map +1 -1
- package/dist/sites/secret-resolver.d.ts +6 -76
- package/dist/sites/secret-resolver.d.ts.map +1 -1
- package/dist/sites/secret-resolver.js +39 -104
- package/dist/sites/secret-resolver.js.map +1 -1
- package/dist/sites/store.d.ts +12 -69
- package/dist/sites/store.d.ts.map +1 -1
- package/dist/sites/store.js +37 -86
- package/dist/sites/store.js.map +1 -1
- package/dist/sites/substituted-registry.d.ts +11 -0
- package/dist/sites/substituted-registry.d.ts.map +1 -0
- package/dist/sites/substituted-registry.js +13 -0
- package/dist/sites/substituted-registry.js.map +1 -0
- package/dist/sites/tools/fetch-public-url.d.ts +4 -0
- package/dist/sites/tools/fetch-public-url.d.ts.map +1 -0
- package/dist/sites/tools/fetch-public-url.js +231 -0
- package/dist/sites/tools/fetch-public-url.js.map +1 -0
- package/dist/sites/tools/index.d.ts +2 -26
- package/dist/sites/tools/index.d.ts.map +1 -1
- package/dist/sites/tools/index.js +5 -28
- package/dist/sites/tools/index.js.map +1 -1
- package/dist/sites/tools/sites-list.d.ts +3 -47
- package/dist/sites/tools/sites-list.d.ts.map +1 -1
- package/dist/sites/tools/sites-list.js +65 -79
- package/dist/sites/tools/sites-list.js.map +1 -1
- package/dist/sites/tools/sites-overview.d.ts +4 -0
- package/dist/sites/tools/sites-overview.d.ts.map +1 -0
- package/dist/sites/tools/sites-overview.js +209 -0
- package/dist/sites/tools/sites-overview.js.map +1 -0
- package/dist/sites/tools/sites-test.d.ts +2 -45
- package/dist/sites/tools/sites-test.d.ts.map +1 -1
- package/dist/sites/tools/sites-test.js +0 -55
- package/dist/sites/tools/sites-test.js.map +1 -1
- package/dist/sites/tools/use-site.d.ts +2 -45
- package/dist/sites/tools/use-site.d.ts.map +1 -1
- package/dist/sites/tools/use-site.js +29 -78
- package/dist/sites/tools/use-site.js.map +1 -1
- package/dist/sites/unknown-name-result.d.ts +10 -0
- package/dist/sites/unknown-name-result.d.ts.map +1 -0
- package/dist/sites/unknown-name-result.js +13 -0
- package/dist/sites/unknown-name-result.js.map +1 -0
- package/dist/skill-instructions.d.ts +7 -0
- package/dist/skill-instructions.d.ts.map +1 -0
- package/dist/skill-instructions.js +84 -0
- package/dist/skill-instructions.js.map +1 -0
- package/dist/skill-loader.d.ts +0 -102
- package/dist/skill-loader.d.ts.map +1 -1
- package/dist/skill-loader.js +4 -142
- package/dist/skill-loader.js.map +1 -1
- package/dist/skill-manifest.d.ts +0 -20
- package/dist/skill-manifest.d.ts.map +1 -1
- package/dist/skill-manifest.js +1 -21
- package/dist/skill-manifest.js.map +1 -1
- package/dist/skill-topics.d.ts +19 -0
- package/dist/skill-topics.d.ts.map +1 -0
- package/dist/skill-topics.js +181 -0
- package/dist/skill-topics.js.map +1 -0
- package/dist/tools/active-site.d.ts +16 -0
- package/dist/tools/active-site.d.ts.map +1 -0
- package/dist/tools/active-site.js +55 -0
- package/dist/tools/active-site.js.map +1 -0
- package/dist/tools/bind-guidance.d.ts +2 -72
- package/dist/tools/bind-guidance.d.ts.map +1 -1
- package/dist/tools/bind-guidance.js +2 -72
- package/dist/tools/bind-guidance.js.map +1 -1
- package/dist/tools/budgeted-table.d.ts +14 -19
- package/dist/tools/budgeted-table.d.ts.map +1 -1
- package/dist/tools/budgeted-table.js +171 -105
- package/dist/tools/budgeted-table.js.map +1 -1
- package/dist/tools/elements/bind-output-schema.d.ts +69 -0
- package/dist/tools/elements/bind-output-schema.d.ts.map +1 -0
- package/dist/tools/elements/bind-output-schema.js +64 -0
- package/dist/tools/elements/bind-output-schema.js.map +1 -0
- package/dist/tools/elements/builders.d.ts +1 -22
- package/dist/tools/elements/builders.d.ts.map +1 -1
- package/dist/tools/elements/builders.js +147 -133
- package/dist/tools/elements/builders.js.map +1 -1
- package/dist/tools/elements/index.d.ts +0 -26
- package/dist/tools/elements/index.d.ts.map +1 -1
- package/dist/tools/elements/index.js +0 -25
- package/dist/tools/elements/index.js.map +1 -1
- package/dist/tools/elements/read-output-schemas.d.ts +121 -0
- package/dist/tools/elements/read-output-schemas.d.ts.map +1 -0
- package/dist/tools/elements/read-output-schemas.js +225 -0
- package/dist/tools/elements/read-output-schemas.js.map +1 -0
- package/dist/tools/elements/write-output-schemas.d.ts +185 -0
- package/dist/tools/elements/write-output-schemas.d.ts.map +1 -0
- package/dist/tools/elements/write-output-schemas.js +98 -0
- package/dist/tools/elements/write-output-schemas.js.map +1 -0
- package/dist/tools/elements.d.ts +0 -11
- package/dist/tools/elements.d.ts.map +1 -1
- package/dist/tools/elements.js +0 -11
- package/dist/tools/elements.js.map +1 -1
- package/dist/tools/format/health-format.d.ts +26 -43
- package/dist/tools/format/health-format.d.ts.map +1 -1
- package/dist/tools/format/health-format.js +28 -60
- package/dist/tools/format/health-format.js.map +1 -1
- package/dist/tools/format/inspection-format.d.ts +2 -54
- package/dist/tools/format/inspection-format.d.ts.map +1 -1
- package/dist/tools/format/inspection-format.js +33 -119
- package/dist/tools/format/inspection-format.js.map +1 -1
- package/dist/tools/format/pages-format.d.ts +32 -69
- package/dist/tools/format/pages-format.d.ts.map +1 -1
- package/dist/tools/format/pages-format.js +114 -139
- package/dist/tools/format/pages-format.js.map +1 -1
- package/dist/tools/format/sources-format.d.ts +5 -39
- package/dist/tools/format/sources-format.d.ts.map +1 -1
- package/dist/tools/format/sources-format.js +57 -87
- package/dist/tools/format/sources-format.js.map +1 -1
- package/dist/tools/health-output-schemas.d.ts +82 -0
- package/dist/tools/health-output-schemas.d.ts.map +1 -0
- package/dist/tools/health-output-schemas.js +130 -0
- package/dist/tools/health-output-schemas.js.map +1 -0
- package/dist/tools/health.d.ts +2 -20
- package/dist/tools/health.d.ts.map +1 -1
- package/dist/tools/health.js +46 -232
- package/dist/tools/health.js.map +1 -1
- package/dist/tools/index.d.ts +1 -26
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +12 -39
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/inspection.d.ts +4 -34
- package/dist/tools/inspection.d.ts.map +1 -1
- package/dist/tools/inspection.js +164 -536
- package/dist/tools/inspection.js.map +1 -1
- package/dist/tools/library.d.ts +115 -127
- package/dist/tools/library.d.ts.map +1 -1
- package/dist/tools/library.js +706 -454
- package/dist/tools/library.js.map +1 -1
- package/dist/tools/local-content/builders.d.ts +1 -17
- package/dist/tools/local-content/builders.d.ts.map +1 -1
- package/dist/tools/local-content/builders.js +103 -46
- package/dist/tools/local-content/builders.js.map +1 -1
- package/dist/tools/local-content/index.d.ts +0 -15
- package/dist/tools/local-content/index.d.ts.map +1 -1
- package/dist/tools/local-content/index.js +0 -14
- package/dist/tools/local-content/index.js.map +1 -1
- package/dist/tools/local-content/schemas.d.ts +31 -47
- package/dist/tools/local-content/schemas.d.ts.map +1 -1
- package/dist/tools/local-content/schemas.js +33 -62
- package/dist/tools/local-content/schemas.js.map +1 -1
- package/dist/tools/modules/builders.d.ts +4 -0
- package/dist/tools/modules/builders.d.ts.map +1 -0
- package/dist/tools/modules/builders.js +58 -0
- package/dist/tools/modules/builders.js.map +1 -0
- package/dist/tools/modules/index.d.ts +2 -0
- package/dist/tools/modules/index.d.ts.map +1 -0
- package/dist/tools/modules/index.js +2 -0
- package/dist/tools/modules/index.js.map +1 -0
- package/dist/tools/modules/module-id-schema.d.ts +4 -0
- package/dist/tools/modules/module-id-schema.d.ts.map +1 -0
- package/dist/tools/modules/module-id-schema.js +14 -0
- package/dist/tools/modules/module-id-schema.js.map +1 -0
- package/dist/tools/modules/module-type-fields.d.ts +10 -0
- package/dist/tools/modules/module-type-fields.d.ts.map +1 -0
- package/dist/tools/modules/module-type-fields.js +34 -0
- package/dist/tools/modules/module-type-fields.js.map +1 -0
- package/dist/tools/modules/modules-create.d.ts +59 -0
- package/dist/tools/modules/modules-create.d.ts.map +1 -0
- package/dist/tools/modules/modules-create.js +154 -0
- package/dist/tools/modules/modules-create.js.map +1 -0
- package/dist/tools/modules/modules-delete.d.ts +51 -0
- package/dist/tools/modules/modules-delete.d.ts.map +1 -0
- package/dist/tools/modules/modules-delete.js +180 -0
- package/dist/tools/modules/modules-delete.js.map +1 -0
- package/dist/tools/modules/modules-update.d.ts +43 -0
- package/dist/tools/modules/modules-update.d.ts.map +1 -0
- package/dist/tools/modules/modules-update.js +177 -0
- package/dist/tools/modules/modules-update.js.map +1 -0
- package/dist/tools/modules/placement-hints.d.ts +5 -0
- package/dist/tools/modules/placement-hints.d.ts.map +1 -0
- package/dist/tools/modules/placement-hints.js +90 -0
- package/dist/tools/modules/placement-hints.js.map +1 -0
- package/dist/tools/modules/placement-ways.d.ts +13 -0
- package/dist/tools/modules/placement-ways.d.ts.map +1 -0
- package/dist/tools/modules/placement-ways.js +61 -0
- package/dist/tools/modules/placement-ways.js.map +1 -0
- package/dist/tools/multi-items/builders.d.ts +1 -21
- package/dist/tools/multi-items/builders.d.ts.map +1 -1
- package/dist/tools/multi-items/builders.js +22 -65
- package/dist/tools/multi-items/builders.js.map +1 -1
- package/dist/tools/multi-items/index.d.ts +0 -15
- package/dist/tools/multi-items/index.d.ts.map +1 -1
- package/dist/tools/multi-items/index.js +0 -15
- package/dist/tools/multi-items/index.js.map +1 -1
- package/dist/tools/multi-items/item-container-map.d.ts +0 -35
- package/dist/tools/multi-items/item-container-map.d.ts.map +1 -1
- package/dist/tools/multi-items/item-container-map.js +0 -35
- package/dist/tools/multi-items/item-container-map.js.map +1 -1
- package/dist/tools/multi-items/output-schemas.d.ts +101 -0
- package/dist/tools/multi-items/output-schemas.d.ts.map +1 -0
- package/dist/tools/multi-items/output-schemas.js +74 -0
- package/dist/tools/multi-items/output-schemas.js.map +1 -0
- package/dist/tools/navigation/builders.d.ts +1 -16
- package/dist/tools/navigation/builders.d.ts.map +1 -1
- package/dist/tools/navigation/builders.js +5 -27
- package/dist/tools/navigation/builders.js.map +1 -1
- package/dist/tools/navigation/index.d.ts +0 -13
- package/dist/tools/navigation/index.d.ts.map +1 -1
- package/dist/tools/navigation/index.js +0 -12
- package/dist/tools/navigation/index.js.map +1 -1
- package/dist/tools/navigation/schemas.d.ts +0 -30
- package/dist/tools/navigation/schemas.d.ts.map +1 -1
- package/dist/tools/navigation/schemas.js +0 -30
- package/dist/tools/navigation/schemas.js.map +1 -1
- package/dist/tools/output-schema-metadata.d.ts +5 -0
- package/dist/tools/output-schema-metadata.d.ts.map +1 -0
- package/dist/tools/output-schema-metadata.js +83 -0
- package/dist/tools/output-schema-metadata.js.map +1 -0
- package/dist/tools/pages/builders.d.ts +1 -41
- package/dist/tools/pages/builders.d.ts.map +1 -1
- package/dist/tools/pages/builders.js +320 -405
- package/dist/tools/pages/builders.js.map +1 -1
- package/dist/tools/pages/header-transparency.d.ts +2 -32
- package/dist/tools/pages/header-transparency.d.ts.map +1 -1
- package/dist/tools/pages/header-transparency.js +9 -43
- package/dist/tools/pages/header-transparency.js.map +1 -1
- package/dist/tools/pages/index.d.ts +1 -19
- package/dist/tools/pages/index.d.ts.map +1 -1
- package/dist/tools/pages/index.js +1 -19
- package/dist/tools/pages/index.js.map +1 -1
- package/dist/tools/pages/schemas.d.ts +323 -241
- package/dist/tools/pages/schemas.d.ts.map +1 -1
- package/dist/tools/pages/schemas.js +514 -549
- package/dist/tools/pages/schemas.js.map +1 -1
- package/dist/tools/pages/write-output-schemas.d.ts +139 -0
- package/dist/tools/pages/write-output-schemas.d.ts.map +1 -0
- package/dist/tools/pages/write-output-schemas.js +138 -0
- package/dist/tools/pages/write-output-schemas.js.map +1 -0
- package/dist/tools/pages.d.ts +0 -11
- package/dist/tools/pages.d.ts.map +1 -1
- package/dist/tools/pages.js +0 -11
- package/dist/tools/pages.js.map +1 -1
- package/dist/tools/pool-resolve-helper.d.ts +0 -52
- package/dist/tools/pool-resolve-helper.d.ts.map +1 -1
- package/dist/tools/pool-resolve-helper.js +29 -104
- package/dist/tools/pool-resolve-helper.js.map +1 -1
- package/dist/tools/progress-phases.d.ts +0 -42
- package/dist/tools/progress-phases.d.ts.map +1 -1
- package/dist/tools/progress-phases.js +0 -44
- package/dist/tools/progress-phases.js.map +1 -1
- package/dist/tools/response-budget.d.ts +0 -69
- package/dist/tools/response-budget.d.ts.map +1 -1
- package/dist/tools/response-budget.js +0 -127
- package/dist/tools/response-budget.js.map +1 -1
- package/dist/tools/shared-schemas.d.ts +11 -65
- package/dist/tools/shared-schemas.d.ts.map +1 -1
- package/dist/tools/shared-schemas.js +40 -123
- package/dist/tools/shared-schemas.js.map +1 -1
- package/dist/tools/skill/builders.d.ts +3 -0
- package/dist/tools/skill/builders.d.ts.map +1 -0
- package/dist/tools/skill/builders.js +81 -0
- package/dist/tools/skill/builders.js.map +1 -0
- package/dist/tools/sources/builders.d.ts +1 -11
- package/dist/tools/sources/builders.d.ts.map +1 -1
- package/dist/tools/sources/builders.js +194 -170
- package/dist/tools/sources/builders.js.map +1 -1
- package/dist/tools/sources/index.d.ts +0 -17
- package/dist/tools/sources/index.d.ts.map +1 -1
- package/dist/tools/sources/index.js +0 -16
- package/dist/tools/sources/index.js.map +1 -1
- package/dist/tools/sources/read-output-schemas.d.ts +101 -0
- package/dist/tools/sources/read-output-schemas.d.ts.map +1 -0
- package/dist/tools/sources/read-output-schemas.js +105 -0
- package/dist/tools/sources/read-output-schemas.js.map +1 -0
- package/dist/tools/sources/source-name-argument.d.ts +17 -0
- package/dist/tools/sources/source-name-argument.d.ts.map +1 -0
- package/dist/tools/sources/source-name-argument.js +64 -0
- package/dist/tools/sources/source-name-argument.js.map +1 -0
- package/dist/tools/sources/write-output-schemas.d.ts +100 -0
- package/dist/tools/sources/write-output-schemas.d.ts.map +1 -0
- package/dist/tools/sources/write-output-schemas.js +61 -0
- package/dist/tools/sources/write-output-schemas.js.map +1 -0
- package/dist/tools/sources.d.ts +0 -12
- package/dist/tools/sources.d.ts.map +1 -1
- package/dist/tools/sources.js +0 -12
- package/dist/tools/sources.js.map +1 -1
- package/dist/tools/sparse-fields.d.ts +16 -232
- package/dist/tools/sparse-fields.d.ts.map +1 -1
- package/dist/tools/sparse-fields.js +178 -242
- package/dist/tools/sparse-fields.js.map +1 -1
- package/dist/tools/strict-input.d.ts +5 -0
- package/dist/tools/strict-input.d.ts.map +1 -0
- package/dist/tools/strict-input.js +55 -0
- package/dist/tools/strict-input.js.map +1 -0
- package/dist/tools/sublayout/builders.d.ts +1 -21
- package/dist/tools/sublayout/builders.d.ts.map +1 -1
- package/dist/tools/sublayout/builders.js +10 -39
- package/dist/tools/sublayout/builders.js.map +1 -1
- package/dist/tools/sublayout/index.d.ts +1 -11
- package/dist/tools/sublayout/index.d.ts.map +1 -1
- package/dist/tools/sublayout/index.js +1 -11
- package/dist/tools/sublayout/index.js.map +1 -1
- package/dist/tools/sublayout/output-schemas.d.ts +57 -0
- package/dist/tools/sublayout/output-schemas.d.ts.map +1 -0
- package/dist/tools/sublayout/output-schemas.js +51 -0
- package/dist/tools/sublayout/output-schemas.js.map +1 -0
- package/dist/tools/tool-builder/annotations.d.ts +1 -49
- package/dist/tools/tool-builder/annotations.d.ts.map +1 -1
- package/dist/tools/tool-builder/annotations.js +9 -49
- package/dist/tools/tool-builder/annotations.js.map +1 -1
- package/dist/tools/tool-builder/confirm-preview.d.ts +24 -0
- package/dist/tools/tool-builder/confirm-preview.d.ts.map +1 -0
- package/dist/tools/tool-builder/confirm-preview.js +37 -0
- package/dist/tools/tool-builder/confirm-preview.js.map +1 -0
- package/dist/tools/tool-builder/define.d.ts +6 -26
- package/dist/tools/tool-builder/define.d.ts.map +1 -1
- package/dist/tools/tool-builder/define.js +0 -25
- package/dist/tools/tool-builder/define.js.map +1 -1
- package/dist/tools/tool-builder/index.d.ts +3 -26
- package/dist/tools/tool-builder/index.d.ts.map +1 -1
- package/dist/tools/tool-builder/index.js +2 -25
- package/dist/tools/tool-builder/index.js.map +1 -1
- package/dist/tools/tool-builder/results.d.ts +4 -124
- package/dist/tools/tool-builder/results.d.ts.map +1 -1
- package/dist/tools/tool-builder/results.js +258 -263
- package/dist/tools/tool-builder/results.js.map +1 -1
- package/dist/tools/tool-builder/types.d.ts +5 -59
- package/dist/tools/tool-builder/types.d.ts.map +1 -1
- package/dist/tools/tool-builder/types.js +0 -7
- package/dist/tools/tool-builder/types.js.map +1 -1
- package/dist/tools/tool-builder.d.ts +0 -14
- package/dist/tools/tool-builder.d.ts.map +1 -1
- package/dist/tools/tool-builder.js +0 -14
- package/dist/tools/tool-builder.js.map +1 -1
- package/dist/uninstall-skill.d.ts +0 -41
- package/dist/uninstall-skill.d.ts.map +1 -1
- package/dist/uninstall-skill.js +0 -49
- package/dist/uninstall-skill.js.map +1 -1
- package/dist/uninstall.d.ts +0 -41
- package/dist/uninstall.d.ts.map +1 -1
- package/dist/uninstall.js +1 -29
- package/dist/uninstall.js.map +1 -1
- package/dist/update/update-check.d.ts +0 -26
- package/dist/update/update-check.d.ts.map +1 -1
- package/dist/update/update-check.js +0 -25
- package/dist/update/update-check.js.map +1 -1
- package/manifest.json +4 -5
- package/package.json +4 -4
- package/skills/yt-builder-mcp/SKILL.md +1857 -400
- package/dist/tools/elements/handlers-write.d.ts +0 -89
- package/dist/tools/elements/handlers-write.d.ts.map +0 -1
- package/dist/tools/elements/handlers-write.js +0 -797
- package/dist/tools/elements/handlers-write.js.map +0 -1
- package/dist/tools/elements/handlers.d.ts +0 -130
- package/dist/tools/elements/handlers.d.ts.map +0 -1
- package/dist/tools/elements/handlers.js +0 -581
- package/dist/tools/elements/handlers.js.map +0 -1
- package/dist/tools/elements/layout-hierarchy-rules.d.ts +0 -62
- package/dist/tools/elements/layout-hierarchy-rules.d.ts.map +0 -1
- package/dist/tools/elements/layout-hierarchy-rules.js +0 -154
- package/dist/tools/elements/layout-hierarchy-rules.js.map +0 -1
- package/dist/tools/elements/schema-validation.d.ts +0 -218
- package/dist/tools/elements/schema-validation.d.ts.map +0 -1
- package/dist/tools/elements/schema-validation.js +0 -685
- package/dist/tools/elements/schema-validation.js.map +0 -1
- package/dist/tools/elicitation.d.ts +0 -87
- package/dist/tools/elicitation.d.ts.map +0 -1
- package/dist/tools/elicitation.js +0 -100
- package/dist/tools/elicitation.js.map +0 -1
- package/dist/tools/format/elements-format.d.ts +0 -75
- package/dist/tools/format/elements-format.d.ts.map +0 -1
- package/dist/tools/format/elements-format.js +0 -368
- package/dist/tools/format/elements-format.js.map +0 -1
- package/dist/tools/format/source-schema-format.d.ts +0 -74
- package/dist/tools/format/source-schema-format.d.ts.map +0 -1
- package/dist/tools/format/source-schema-format.js +0 -208
- package/dist/tools/format/source-schema-format.js.map +0 -1
- package/dist/tools/layout-flatten.d.ts +0 -84
- package/dist/tools/layout-flatten.d.ts.map +0 -1
- package/dist/tools/layout-flatten.js +0 -129
- package/dist/tools/layout-flatten.js.map +0 -1
- package/dist/tools/local-content/handlers.d.ts +0 -56
- package/dist/tools/local-content/handlers.d.ts.map +0 -1
- package/dist/tools/local-content/handlers.js +0 -320
- package/dist/tools/local-content/handlers.js.map +0 -1
- package/dist/tools/multi-items/clean-implode-handler.d.ts +0 -37
- package/dist/tools/multi-items/clean-implode-handler.d.ts.map +0 -1
- package/dist/tools/multi-items/clean-implode-handler.js +0 -65
- package/dist/tools/multi-items/clean-implode-handler.js.map +0 -1
- package/dist/tools/multi-items/format/inspection-format.d.ts +0 -41
- package/dist/tools/multi-items/format/inspection-format.d.ts.map +0 -1
- package/dist/tools/multi-items/format/inspection-format.js +0 -64
- package/dist/tools/multi-items/format/inspection-format.js.map +0 -1
- package/dist/tools/multi-items/inspect-handler.d.ts +0 -97
- package/dist/tools/multi-items/inspect-handler.d.ts.map +0 -1
- package/dist/tools/multi-items/inspect-handler.js +0 -323
- package/dist/tools/multi-items/inspect-handler.js.map +0 -1
- package/dist/tools/multi-items/inspection-cache.d.ts +0 -85
- package/dist/tools/multi-items/inspection-cache.d.ts.map +0 -1
- package/dist/tools/multi-items/inspection-cache.js +0 -126
- package/dist/tools/multi-items/inspection-cache.js.map +0 -1
- package/dist/tools/navigation/handlers.d.ts +0 -30
- package/dist/tools/navigation/handlers.d.ts.map +0 -1
- package/dist/tools/navigation/handlers.js +0 -41
- package/dist/tools/navigation/handlers.js.map +0 -1
- package/dist/tools/pages/handlers-audit.d.ts +0 -140
- package/dist/tools/pages/handlers-audit.d.ts.map +0 -1
- package/dist/tools/pages/handlers-audit.js +0 -714
- package/dist/tools/pages/handlers-audit.js.map +0 -1
- package/dist/tools/pages/handlers-read.d.ts +0 -133
- package/dist/tools/pages/handlers-read.d.ts.map +0 -1
- package/dist/tools/pages/handlers-read.js +0 -1061
- package/dist/tools/pages/handlers-read.js.map +0 -1
- package/dist/tools/pages/handlers-write.d.ts +0 -212
- package/dist/tools/pages/handlers-write.d.ts.map +0 -1
- package/dist/tools/pages/handlers-write.js +0 -419
- package/dist/tools/pages/handlers-write.js.map +0 -1
- package/dist/tools/pages/target.d.ts +0 -162
- package/dist/tools/pages/target.d.ts.map +0 -1
- package/dist/tools/pages/target.js +0 -239
- package/dist/tools/pages/target.js.map +0 -1
- package/dist/tools/sources/handlers-bind.d.ts +0 -148
- package/dist/tools/sources/handlers-bind.d.ts.map +0 -1
- package/dist/tools/sources/handlers-bind.js +0 -657
- package/dist/tools/sources/handlers-bind.js.map +0 -1
- package/dist/tools/sources/handlers.d.ts +0 -116
- package/dist/tools/sources/handlers.d.ts.map +0 -1
- package/dist/tools/sources/handlers.js +0 -289
- package/dist/tools/sources/handlers.js.map +0 -1
- package/dist/tools/sublayout/inspect-sublayout-handler.d.ts +0 -95
- package/dist/tools/sublayout/inspect-sublayout-handler.d.ts.map +0 -1
- package/dist/tools/sublayout/inspect-sublayout-handler.js +0 -181
- package/dist/tools/sublayout/inspect-sublayout-handler.js.map +0 -1
package/dist/setup-cli.js
CHANGED
|
@@ -1,31 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
* Top-level CLI dispatcher for `@wootsup/yt-builder-mcp`.
|
|
4
|
-
*
|
|
5
|
-
* Round-1 audit I5 fix (2026-05-22): the wizard implementation lives in
|
|
6
|
-
* `setup-wizard.ts`; this file is the thin dispatcher (`runCli`) plus
|
|
7
|
-
* the ESM main-guard. Both have their own deps-bag (`WizardDeps` /
|
|
8
|
-
* `RunCliDeps`) so unit tests can drive them independently.
|
|
9
|
-
*
|
|
10
|
-
* Subcommands:
|
|
11
|
-
*
|
|
12
|
-
* setup (default) — runWizard (see `setup-wizard.ts`)
|
|
13
|
-
* install-skill — copy the bundled skill into ~/.claude/skills/
|
|
14
|
-
* and append a marker block to ~/AGENTS.md.
|
|
15
|
-
* --help / help — print usage.
|
|
16
|
-
* --version / -v — print the package version.
|
|
17
|
-
*
|
|
18
|
-
* Re-exports `runWizard`, `majorMinor` and the wizard public types so
|
|
19
|
-
* existing callers (and tests that already import from `./setup-cli`)
|
|
20
|
-
* keep working with a one-line import.
|
|
21
|
-
*
|
|
22
|
-
* @license MIT
|
|
23
|
-
*/
|
|
2
|
+
import { intro } from '@clack/prompts';
|
|
24
3
|
import { ALL_CLIENTS } from './clients/index.js';
|
|
25
4
|
import { installSkill as defaultInstallSkill } from './install-skill.js';
|
|
26
|
-
import { SERVER_VERSION } from './server.js';
|
|
5
|
+
import { SERVER_NAME, SERVER_VERSION } from './server.js';
|
|
27
6
|
import { confirmTTY as defaultConfirmTTY } from './setup-cli-confirm.js';
|
|
28
7
|
import { defaultUninstallPrompt } from './setup-prompts.js';
|
|
8
|
+
import { createBannerOnce } from './setup/banner.js';
|
|
9
|
+
import { printClosingBlock } from './setup/closing.js';
|
|
10
|
+
import { detectColorSupport } from './setup/banner-color.js';
|
|
11
|
+
import { confirmAnotherSite as defaultConfirmAnotherSite, runMultiSiteLoop, } from './setup/multi-site-loop.js';
|
|
12
|
+
import { registryDirIsWritable, registryRemedy, RegistryWriteFailure, } from './setup/registry-remedy.js';
|
|
13
|
+
import { clearResumeState, confirmResume as defaultConfirmResume, readResumeState, resumeFilePathFor, writeResumeState, } from './setup/resume.js';
|
|
14
|
+
import { resolveSiteId } from './sites/schema.js';
|
|
29
15
|
import { DEFAULT_WIZARD_DEPS, runWizard as runWizardImpl } from './setup-wizard.js';
|
|
30
16
|
import { detectInstalledClients as defaultDetectInstalled, DEFAULT_UNINSTALL_DEPS, runUninstall, } from './uninstall.js';
|
|
31
17
|
import { addSiteCommand, AddSiteError, DEFAULT_ADD_SITE_DEPS, } from './sites/cli/add-site.js';
|
|
@@ -34,8 +20,6 @@ import { DEFAULT_REMOVE_SITE_DEPS, removeSiteCommand, RemoveSiteError, } from '.
|
|
|
34
20
|
import { DEFAULT_SET_DEFAULT_DEPS, setDefaultCommand, SetDefaultError, } from './sites/cli/set-default.js';
|
|
35
21
|
import { DEFAULT_TEST_SITE_DEPS, renderTestSiteLines, testSiteCommand, TestSiteError, } from './sites/cli/test-site.js';
|
|
36
22
|
import { defaultSitesFilePath } from './sites/paths.js';
|
|
37
|
-
// Re-export the wizard surface so consumers that imported from
|
|
38
|
-
// `./setup-cli` before the I5 split keep working without changes.
|
|
39
23
|
export { DEFAULT_WIZARD_DEPS, majorMinor, runWizard, } from './setup-wizard.js';
|
|
40
24
|
const HELP_TEXT = `Usage: yt-builder-mcp <command> [flags]
|
|
41
25
|
|
|
@@ -147,7 +131,7 @@ Environment (when launched by an AI client):
|
|
|
147
131
|
YTB_MCP_SITE_URL Host CMS base URL (e.g. https://example.com).
|
|
148
132
|
Works for BOTH WordPress and Joomla.
|
|
149
133
|
YTB_MCP_WP_URL DEPRECATED alias for YTB_MCP_SITE_URL — still
|
|
150
|
-
honoured for
|
|
134
|
+
honoured for configurations from before the rename.
|
|
151
135
|
YTB_MCP_BEARER_TOKEN Bearer key from:
|
|
152
136
|
- WordPress: wp-admin → Tools → "YT Builder MCP"
|
|
153
137
|
- Joomla: Administrator → Components → "YT Builder MCP"
|
|
@@ -180,17 +164,8 @@ Environment (when launched by an AI client):
|
|
|
180
164
|
|
|
181
165
|
Documentation: https://wootsup.com/docs/mcp
|
|
182
166
|
`;
|
|
183
|
-
/**
|
|
184
|
-
* Parse the `setup` subcommand argv tail. Pure function; does no I/O.
|
|
185
|
-
*
|
|
186
|
-
* Accepts both `--key value` and `--key=value` styles. Unknown flags
|
|
187
|
-
* are reported as errors so typos don't silently disable validation.
|
|
188
|
-
*
|
|
189
|
-
* `env` (default `{}`, kept empty so the function stays pure) supplies the
|
|
190
|
-
* `YTB_MCP_VERSION` fallback for the `--pin` version-pin (customer gap #15):
|
|
191
|
-
* an explicit `--pin` always wins; otherwise `YTB_MCP_VERSION` is used.
|
|
192
|
-
*/
|
|
193
167
|
export function parseSetupArgs(argv, env = {}) {
|
|
168
|
+
let helpRequested = false;
|
|
194
169
|
let nonInteractive = false;
|
|
195
170
|
let url = '';
|
|
196
171
|
let token = '';
|
|
@@ -220,6 +195,12 @@ export function parseSetupArgs(argv, env = {}) {
|
|
|
220
195
|
const flag = eq >= 0 ? raw.slice(0, eq) : raw;
|
|
221
196
|
const inline = eq >= 0 ? raw.slice(eq + 1) : undefined;
|
|
222
197
|
switch (flag) {
|
|
198
|
+
case 'help':
|
|
199
|
+
case '--help':
|
|
200
|
+
case '-h': {
|
|
201
|
+
helpRequested = true;
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
223
204
|
case '--non-interactive': {
|
|
224
205
|
nonInteractive = true;
|
|
225
206
|
if (inline !== undefined) {
|
|
@@ -259,9 +240,6 @@ export function parseSetupArgs(argv, env = {}) {
|
|
|
259
240
|
break;
|
|
260
241
|
}
|
|
261
242
|
case '--ca': {
|
|
262
|
-
// Corporate TLS-inspection root CA. Two strategies:
|
|
263
|
-
// --ca=system / --ca system → OS trust store (NODE_OPTIONS=--use-system-ca)
|
|
264
|
-
// --ca <path> → .pem file (NODE_EXTRA_CA_CERTS=<path>)
|
|
265
243
|
const { value, nextIndex } = consumeValue('--ca', inline, i);
|
|
266
244
|
const v = value.trim();
|
|
267
245
|
if (v.toLowerCase() === 'system') {
|
|
@@ -274,7 +252,6 @@ export function parseSetupArgs(argv, env = {}) {
|
|
|
274
252
|
break;
|
|
275
253
|
}
|
|
276
254
|
case '--use-system-ca': {
|
|
277
|
-
// Alias for `--ca=system`: trust the OS store natively (no .pem).
|
|
278
255
|
caSystem = true;
|
|
279
256
|
if (inline !== undefined) {
|
|
280
257
|
errors.push('Flag --use-system-ca does not take a value.');
|
|
@@ -282,17 +259,12 @@ export function parseSetupArgs(argv, env = {}) {
|
|
|
282
259
|
break;
|
|
283
260
|
}
|
|
284
261
|
case '--pin': {
|
|
285
|
-
// customer gap #15 — pin the npx version (air-gapped / locked-down
|
|
286
|
-
// corp envs that forbid floating @latest installs).
|
|
287
262
|
const { value, nextIndex } = consumeValue('--pin', inline, i);
|
|
288
263
|
versionPin = value.trim();
|
|
289
264
|
i = nextIndex;
|
|
290
265
|
break;
|
|
291
266
|
}
|
|
292
267
|
case '--platform': {
|
|
293
|
-
// Explicit host platform. `auto` (or absent) → auto-detect (no
|
|
294
|
-
// hint). `wordpress` / `joomla` WINS over runtime detection so a
|
|
295
|
-
// Joomla origin-only URL is never mistaken for WordPress.
|
|
296
268
|
const { value, nextIndex } = consumeValue('--platform', inline, i);
|
|
297
269
|
const v = value.trim().toLowerCase();
|
|
298
270
|
if (v === 'wordpress' || v === 'joomla') {
|
|
@@ -312,9 +284,6 @@ export function parseSetupArgs(argv, env = {}) {
|
|
|
312
284
|
}
|
|
313
285
|
}
|
|
314
286
|
}
|
|
315
|
-
// Pickup mode validation (Wave C). Pickup pairs 1:1 with nonce; when
|
|
316
|
-
// both are present, the wizard fetches token + URL from the plugin and
|
|
317
|
-
// ignores --url/--token (with a warning so typos don't go silent).
|
|
318
287
|
const pickupMode = pickup !== '' || nonce !== '';
|
|
319
288
|
if (pickupMode) {
|
|
320
289
|
if (pickup === '')
|
|
@@ -349,15 +318,12 @@ export function parseSetupArgs(argv, env = {}) {
|
|
|
349
318
|
}
|
|
350
319
|
}
|
|
351
320
|
}
|
|
352
|
-
// A .pem path and the OS-trust-store are two mutually-exclusive ways to
|
|
353
|
-
// trust the same CA — refuse the ambiguous combination rather than silently
|
|
354
|
-
// pick one.
|
|
355
321
|
if (caSystem && caCertPath !== '') {
|
|
356
322
|
errors.push('Pass either a CA .pem path (--ca <path>) or the OS trust store (--ca=system / --use-system-ca), not both.');
|
|
357
323
|
}
|
|
358
|
-
// #15 — an explicit `--pin` wins; otherwise fall back to YTB_MCP_VERSION.
|
|
359
324
|
const resolvedPin = versionPin !== '' ? versionPin : (env.YTB_MCP_VERSION ?? '').trim();
|
|
360
325
|
return {
|
|
326
|
+
helpRequested,
|
|
361
327
|
nonInteractive,
|
|
362
328
|
url,
|
|
363
329
|
token,
|
|
@@ -372,15 +338,6 @@ export function parseSetupArgs(argv, env = {}) {
|
|
|
372
338
|
...(platform !== undefined ? { platform } : {}),
|
|
373
339
|
};
|
|
374
340
|
}
|
|
375
|
-
/**
|
|
376
|
-
* Build a `WizardDeps` bag that answers prompts from CLI flags instead
|
|
377
|
-
* of asking a human. Reuses every other dependency (probes, writes,
|
|
378
|
-
* handshake) from `DEFAULT_WIZARD_DEPS` so the wizard's exit-code
|
|
379
|
-
* contract (0/2/3/4/5) stays identical.
|
|
380
|
-
*
|
|
381
|
-
* `confirmContinue` always returns `false` — there is no human to ask,
|
|
382
|
-
* so a probe failure cleanly aborts with the documented exit code.
|
|
383
|
-
*/
|
|
384
341
|
export function buildNonInteractiveDeps(parsed, base = DEFAULT_WIZARD_DEPS) {
|
|
385
342
|
const answers = {
|
|
386
343
|
wpUrl: parsed.url,
|
|
@@ -395,31 +352,10 @@ export function buildNonInteractiveDeps(parsed, base = DEFAULT_WIZARD_DEPS) {
|
|
|
395
352
|
...base,
|
|
396
353
|
prompt: async () => answers,
|
|
397
354
|
confirmContinue: async () => false,
|
|
398
|
-
// No human to answer the interactive CA prompt — the CA comes from
|
|
399
|
-
// `--ca` / `--ca=system` flags (already in `answers`). Stripping the
|
|
400
|
-
// prompt keeps a CA-trust probe failure on the documented exit-code
|
|
401
|
-
// path instead of hanging on a prompt with no TTY.
|
|
402
355
|
promptCa: undefined,
|
|
403
|
-
// No TTY to answer the platform fallback either. When --platform is
|
|
404
|
-
// omitted AND detection ties, the wizard warns + defaults to WordPress
|
|
405
|
-
// (the documented non-interactive back-compat) rather than hanging.
|
|
406
356
|
promptPlatform: undefined,
|
|
407
357
|
};
|
|
408
358
|
}
|
|
409
|
-
/**
|
|
410
|
-
* Build a `WizardDeps` bag for the Wave-C pickup flow. The wizard's
|
|
411
|
-
* `prompt` step calls `base.fetchPickup(url, nonce)` once, then
|
|
412
|
-
* synthesises the `WizardAnswers` from the response — the actual answers
|
|
413
|
-
* (token + canonical WordPress URL) come straight from the plugin via
|
|
414
|
-
* a 256-bit one-shot nonce, never through chat history / provider logs.
|
|
415
|
-
*
|
|
416
|
-
* On `fetchPickup` failure the prompt resolves to `null` so the wizard
|
|
417
|
-
* exits cleanly with code 130 (user-cancel equivalent — we treat
|
|
418
|
-
* an unrecoverable pickup as "the conversation ends here"). The
|
|
419
|
-
* thrown error is logged via the `log` dep so the operator sees why.
|
|
420
|
-
*
|
|
421
|
-
* `confirmContinue` returns `false` (same rationale as non-interactive).
|
|
422
|
-
*/
|
|
423
359
|
export function buildPickupDeps(parsed, base = DEFAULT_WIZARD_DEPS) {
|
|
424
360
|
const pickupUrl = parsed.pickup ?? '';
|
|
425
361
|
const nonce = parsed.nonce ?? '';
|
|
@@ -456,16 +392,10 @@ export function buildPickupDeps(parsed, base = DEFAULT_WIZARD_DEPS) {
|
|
|
456
392
|
}
|
|
457
393
|
},
|
|
458
394
|
confirmContinue: async () => false,
|
|
459
|
-
// Pickup is non-interactive too — no TTY for the CA / platform prompts.
|
|
460
395
|
promptCa: undefined,
|
|
461
396
|
promptPlatform: undefined,
|
|
462
397
|
};
|
|
463
398
|
}
|
|
464
|
-
/**
|
|
465
|
-
* Parse `add-site` flags from the tail of argv. Accepts both
|
|
466
|
-
* `--key value` and `--key=value` styles. Unknown flags are reported
|
|
467
|
-
* as errors so typos never silently disable validation.
|
|
468
|
-
*/
|
|
469
399
|
export function parseAddSiteArgs(argv) {
|
|
470
400
|
let url = '';
|
|
471
401
|
let token = '';
|
|
@@ -646,12 +576,6 @@ const UNINSTALL_HELP = `Usage: yt-builder-mcp uninstall [--all] [--yes]\n` +
|
|
|
646
576
|
` yt-builder-mcp uninstall # interactive checklist\n` +
|
|
647
577
|
` yt-builder-mcp uninstall --all # remove everything, no prompts\n` +
|
|
648
578
|
` yt-builder-mcp remove --yes # interactive, no final confirm\n`;
|
|
649
|
-
/**
|
|
650
|
-
* Parse the `uninstall` / `remove` argv tail. Pure; does no I/O. Accepts
|
|
651
|
-
* only boolean flags — `--all`, `--keep-skill`, `--force`, `--yes`/`-y`,
|
|
652
|
-
* `--help`/`-h`. Any value (`--all=x`) or unknown flag is an error so typos
|
|
653
|
-
* don't silently change the destructive behaviour.
|
|
654
|
-
*/
|
|
655
579
|
export function parseUninstallArgs(argv) {
|
|
656
580
|
let all = false;
|
|
657
581
|
let yes = false;
|
|
@@ -765,11 +689,6 @@ export async function runCli(argv, deps) {
|
|
|
765
689
|
const resolveSitesPath = deps?.resolveSitesPath ?? (() => defaultSitesFilePath());
|
|
766
690
|
const addSiteDeps = deps?.addSiteDeps ?? DEFAULT_ADD_SITE_DEPS;
|
|
767
691
|
const listSitesDeps = deps?.listSitesDeps ?? DEFAULT_LIST_SITES_DEPS;
|
|
768
|
-
// W12-R2A: wire a TTY confirm hook into the destructive-subcommand
|
|
769
|
-
// deps bags. Tests that supply `removeSiteDeps`/`setDefaultDeps`
|
|
770
|
-
// directly retain full control over the confirm channel (so the
|
|
771
|
-
// existing unit-tests keep working unchanged); only the default
|
|
772
|
-
// dispatcher path gets the `defaultConfirmTTY` injection.
|
|
773
692
|
const confirmHook = deps?.confirm ?? defaultConfirmTTY;
|
|
774
693
|
const removeSiteDeps = deps?.removeSiteDeps
|
|
775
694
|
?? { ...DEFAULT_REMOVE_SITE_DEPS, confirm: confirmHook };
|
|
@@ -778,73 +697,126 @@ export async function runCli(argv, deps) {
|
|
|
778
697
|
const testSiteDeps = deps?.testSiteDeps ?? DEFAULT_TEST_SITE_DEPS;
|
|
779
698
|
const addSiteFromWizard = deps?.addSiteFromWizard
|
|
780
699
|
?? ((args, path) => addSiteCommand(args, path, addSiteDeps));
|
|
700
|
+
const confirmAnotherSite = deps?.confirmAnotherSite ?? defaultConfirmAnotherSite;
|
|
701
|
+
const loadResume = deps?.loadResume ?? ((path) => readResumeState(path));
|
|
702
|
+
const confirmResume = deps?.confirmResume ?? defaultConfirmResume;
|
|
703
|
+
const loadSiteIds = deps?.loadSiteIds
|
|
704
|
+
?? (async (path) => {
|
|
705
|
+
try {
|
|
706
|
+
const file = await listSitesDeps.load(path);
|
|
707
|
+
return file.sites.map((site) => site.site_id);
|
|
708
|
+
}
|
|
709
|
+
catch {
|
|
710
|
+
return [];
|
|
711
|
+
}
|
|
712
|
+
});
|
|
781
713
|
const uninstallDeps = deps?.uninstallDeps ?? DEFAULT_UNINSTALL_DEPS;
|
|
782
714
|
const detectInstalled = deps?.detectInstalled ?? defaultDetectInstalled;
|
|
783
715
|
const promptUninstall = deps?.promptUninstall ?? defaultUninstallPrompt;
|
|
784
716
|
const [subcommand] = argv;
|
|
785
|
-
|
|
786
|
-
// the collected WizardAnswers into an `addSiteCommand` call so the
|
|
787
|
-
// sites.json registry stays in sync with the env-var path. This is
|
|
788
|
-
// the W9 "wizard internally invokes add-site" wiring.
|
|
789
|
-
const buildPersistSite = () => {
|
|
717
|
+
const buildPersistSite = (alwaysOverwrite) => {
|
|
790
718
|
return async (answers) => {
|
|
791
|
-
const siteId = (answers.siteId
|
|
792
|
-
? answers.siteId
|
|
793
|
-
: 'default';
|
|
719
|
+
const siteId = resolveSiteId(answers.siteId);
|
|
794
720
|
const path = resolveSitesPath();
|
|
795
721
|
const args = {
|
|
796
722
|
url: answers.wpUrl,
|
|
797
723
|
token: answers.bearer,
|
|
798
724
|
siteId,
|
|
799
|
-
|
|
800
|
-
yes: true,
|
|
801
|
-
// The wizard hands us the RESOLVED platform on `answers.platform`
|
|
802
|
-
// (see runWizard's persistSite call); fall back to 'auto' only
|
|
803
|
-
// for legacy callers that never resolved one.
|
|
725
|
+
yes: alwaysOverwrite || answers.overwriteSite === true,
|
|
804
726
|
platform: answers.platform ?? 'auto',
|
|
805
727
|
};
|
|
806
|
-
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
|
-
// D1: after a SUCCESSFUL wizard (exit 0), install the skill too. A
|
|
810
|
-
// skill-install failure is NON-FATAL — warn, keep the wizard exit code.
|
|
811
|
-
const runSetupThenInstall = async (wizardDeps) => {
|
|
812
|
-
const code = await wizard(wizardDeps);
|
|
813
|
-
if (code === 0) {
|
|
728
|
+
let result;
|
|
814
729
|
try {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
730
|
+
result = await addSiteFromWizard(args, path);
|
|
731
|
+
}
|
|
732
|
+
catch (e) {
|
|
733
|
+
const message = e instanceof Error ? e.message : String(e);
|
|
734
|
+
let readable = true;
|
|
735
|
+
try {
|
|
736
|
+
await addSiteDeps.load(path);
|
|
821
737
|
}
|
|
822
|
-
|
|
823
|
-
|
|
738
|
+
catch {
|
|
739
|
+
readable = false;
|
|
824
740
|
}
|
|
741
|
+
throw new RegistryWriteFailure(message, registryRemedy({ readable, writable: await registryDirIsWritable(path) }));
|
|
825
742
|
}
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
err(`yt-builder-mcp: warning: skill install skipped (${msg}). Run 'yt-builder-mcp install-skill' manually.`);
|
|
743
|
+
if (result.overwritten) {
|
|
744
|
+
return `Site "${result.siteId}" updated in the registry.`;
|
|
829
745
|
}
|
|
746
|
+
return result.becameDefault
|
|
747
|
+
? `Site "${result.siteId}" added to the registry as your default site.`
|
|
748
|
+
: `Site "${result.siteId}" added to the registry.`;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
const installSkillStep = async () => {
|
|
752
|
+
const result = await install({ bundledVersion: SERVER_VERSION });
|
|
753
|
+
if (result.modifiedSkipped) {
|
|
754
|
+
return `Skill left untouched at ${result.skillTargetDir} (locally modified; run 'yt-builder-mcp install-skill --force' to overwrite).`;
|
|
755
|
+
}
|
|
756
|
+
if (result.markerAlreadyPresent) {
|
|
757
|
+
return `Skill installed/refreshed at ${result.skillTargetDir}.`;
|
|
830
758
|
}
|
|
831
|
-
return
|
|
759
|
+
return `Skill installed at ${result.skillTargetDir}; ${result.agentsFile} updated.`;
|
|
832
760
|
};
|
|
761
|
+
const runSetupThenInstall = async (wizardDeps) => wizard({ ...wizardDeps, installSkill: installSkillStep });
|
|
833
762
|
if (subcommand === undefined || subcommand === 'setup') {
|
|
834
763
|
const setupArgs = argv[0] === 'setup' ? argv.slice(1) : argv;
|
|
835
764
|
const parsed = parseSetupArgs(setupArgs, process.env);
|
|
836
|
-
|
|
765
|
+
if (parsed.helpRequested) {
|
|
766
|
+
out(HELP_TEXT);
|
|
767
|
+
return 0;
|
|
768
|
+
}
|
|
769
|
+
const greet = createBannerOnce(out, {
|
|
770
|
+
columns: process.stdout.columns,
|
|
771
|
+
env: process.env,
|
|
772
|
+
platform: process.platform,
|
|
773
|
+
version: SERVER_VERSION,
|
|
774
|
+
interactive: !parsed.nonInteractive,
|
|
775
|
+
color: detectColorSupport(process.env, process.stdout.isTTY === true),
|
|
776
|
+
});
|
|
777
|
+
greet();
|
|
837
778
|
for (const line of parsed.warnings)
|
|
838
779
|
err(`yt-builder-mcp: warning: ${line}`);
|
|
839
780
|
const pickupMode = (parsed.pickup ?? '') !== '' || (parsed.nonce ?? '') !== '';
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
781
|
+
function withPersist(base, alwaysOverwrite) {
|
|
782
|
+
return {
|
|
783
|
+
...base,
|
|
784
|
+
persistSite: buildPersistSite(alwaysOverwrite),
|
|
785
|
+
sitesFilePath: resolveSitesPath(),
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
function withResume(base, path) {
|
|
789
|
+
return {
|
|
790
|
+
...base,
|
|
791
|
+
saveResume: async (progress) => writeResumeState(path, progress),
|
|
792
|
+
clearResume: () => { clearResumeState(path); },
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
function withResumed(base, state) {
|
|
796
|
+
const innerPrompt = base.prompt;
|
|
797
|
+
return {
|
|
798
|
+
...base,
|
|
799
|
+
prompt: async (input) => {
|
|
800
|
+
const answers = await innerPrompt({
|
|
801
|
+
...input,
|
|
802
|
+
urlDefault: state.url,
|
|
803
|
+
clientDefaults: state.clients,
|
|
804
|
+
});
|
|
805
|
+
if (answers === null)
|
|
806
|
+
return null;
|
|
807
|
+
return parsed.platform !== undefined
|
|
808
|
+
? answers
|
|
809
|
+
: { ...answers, platform: state.platform };
|
|
810
|
+
},
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
function withSiteContext(base, context) {
|
|
814
|
+
const innerPrompt = base.prompt;
|
|
815
|
+
return {
|
|
816
|
+
...base,
|
|
817
|
+
prompt: async (input) => innerPrompt({ ...input, ...context }),
|
|
818
|
+
};
|
|
843
819
|
}
|
|
844
|
-
// #15 — when `--pin` / YTB_MCP_VERSION is set on the INTERACTIVE path,
|
|
845
|
-
// the prompt collects its own answers, so fold the pin into them after
|
|
846
|
-
// the prompt resolves. Non-interactive / pickup paths already inject the
|
|
847
|
-
// pin via their answers builders.
|
|
848
820
|
function withPin(base) {
|
|
849
821
|
if (parsed.versionPin === undefined)
|
|
850
822
|
return base;
|
|
@@ -860,14 +832,6 @@ export async function runCli(argv, deps) {
|
|
|
860
832
|
},
|
|
861
833
|
};
|
|
862
834
|
}
|
|
863
|
-
// G-D #6 — when `--use-system-ca` / `--ca=system` / `--ca <path>` is
|
|
864
|
-
// passed on the INTERACTIVE path, the prompt collects its own answers,
|
|
865
|
-
// so fold the CA choice into them after the prompt resolves (mirrors
|
|
866
|
-
// withPin). Without this fold an explicit CA flag on the default
|
|
867
|
-
// interactive run was a SILENT NO-OP: it was parsed then dropped before
|
|
868
|
-
// reaching the env block (only buildNonInteractiveDeps threaded it). The
|
|
869
|
-
// non-interactive / pickup paths already inject the CA via their answers
|
|
870
|
-
// builders, so this fold is the interactive-path counterpart.
|
|
871
835
|
function withCa(base) {
|
|
872
836
|
if (parsed.caMode === undefined && parsed.caCertPath === undefined)
|
|
873
837
|
return base;
|
|
@@ -888,13 +852,6 @@ export async function runCli(argv, deps) {
|
|
|
888
852
|
},
|
|
889
853
|
};
|
|
890
854
|
}
|
|
891
|
-
// Thread an explicit `--platform wordpress|joomla` into the interactive
|
|
892
|
-
// answers after the prompt resolves (mirrors withCa / withPin). Without
|
|
893
|
-
// this fold the flag would be a SILENT NO-OP on the default interactive
|
|
894
|
-
// run — parsed then dropped before reaching the wizard's platform
|
|
895
|
-
// resolution (only buildNonInteractiveDeps / buildPickupDeps thread it
|
|
896
|
-
// via their answers builders). `--platform auto` / absent = undefined,
|
|
897
|
-
// which lets the wizard auto-detect.
|
|
898
855
|
function withPlatform(base) {
|
|
899
856
|
if (parsed.platform === undefined)
|
|
900
857
|
return base;
|
|
@@ -917,7 +874,7 @@ export async function runCli(argv, deps) {
|
|
|
917
874
|
err(HELP_TEXT);
|
|
918
875
|
return 2;
|
|
919
876
|
}
|
|
920
|
-
return runSetupThenInstall(withPersist(buildPickupDeps(parsed)));
|
|
877
|
+
return runSetupThenInstall(withPersist(buildPickupDeps(parsed), true));
|
|
921
878
|
}
|
|
922
879
|
if (parsed.nonInteractive) {
|
|
923
880
|
if (parsed.errors.length > 0) {
|
|
@@ -926,7 +883,7 @@ export async function runCli(argv, deps) {
|
|
|
926
883
|
err(HELP_TEXT);
|
|
927
884
|
return 2;
|
|
928
885
|
}
|
|
929
|
-
return runSetupThenInstall(withPersist(buildNonInteractiveDeps(parsed)));
|
|
886
|
+
return runSetupThenInstall(withPersist(buildNonInteractiveDeps(parsed), true));
|
|
930
887
|
}
|
|
931
888
|
if (parsed.errors.length > 0) {
|
|
932
889
|
for (const line of parsed.errors)
|
|
@@ -934,7 +891,53 @@ export async function runCli(argv, deps) {
|
|
|
934
891
|
err(HELP_TEXT);
|
|
935
892
|
return 1;
|
|
936
893
|
}
|
|
937
|
-
|
|
894
|
+
intro(`${SERVER_NAME} v${SERVER_VERSION} — setup wizard`);
|
|
895
|
+
async function readClosingRegistry() {
|
|
896
|
+
try {
|
|
897
|
+
const file = await listSitesDeps.load(resolveSitesPath());
|
|
898
|
+
return {
|
|
899
|
+
siteIds: file.sites.map((site) => site.site_id),
|
|
900
|
+
defaultSiteId: file.default_site_id,
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
catch {
|
|
904
|
+
return undefined;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
const resumePath = resumeFilePathFor(resolveSitesPath());
|
|
908
|
+
const savedRun = loadResume(resumePath);
|
|
909
|
+
const resumed = savedRun !== null && (await confirmResume()) ? savedRun : null;
|
|
910
|
+
const interactiveDeps = {
|
|
911
|
+
...withPlatform(withCa(withPin(withResume(withPersist(interactiveBase, false), resumePath)))),
|
|
912
|
+
printClosing: async (summary) => {
|
|
913
|
+
const registry = await readClosingRegistry();
|
|
914
|
+
printClosingBlock({
|
|
915
|
+
...summary,
|
|
916
|
+
...(registry !== undefined ? { registry } : {}),
|
|
917
|
+
});
|
|
918
|
+
},
|
|
919
|
+
};
|
|
920
|
+
return runMultiSiteLoop({
|
|
921
|
+
runRound: async (round) => {
|
|
922
|
+
let another = false;
|
|
923
|
+
const base = {
|
|
924
|
+
...interactiveDeps,
|
|
925
|
+
confirmAnotherSite: async () => {
|
|
926
|
+
another = await confirmAnotherSite();
|
|
927
|
+
return another;
|
|
928
|
+
},
|
|
929
|
+
};
|
|
930
|
+
const withContext = withSiteContext(round.first && resumed !== null ? withResumed(base, resumed) : base, {
|
|
931
|
+
existingSiteIds: await loadSiteIds(resolveSitesPath()),
|
|
932
|
+
siteIdDefault: round.first ? 'default' : '',
|
|
933
|
+
repeatPass: !round.first,
|
|
934
|
+
});
|
|
935
|
+
const rc = round.first
|
|
936
|
+
? await runSetupThenInstall(withContext)
|
|
937
|
+
: await wizard(withContext);
|
|
938
|
+
return { rc, another };
|
|
939
|
+
},
|
|
940
|
+
});
|
|
938
941
|
}
|
|
939
942
|
switch (subcommand) {
|
|
940
943
|
case 'doctor': {
|
|
@@ -943,10 +946,6 @@ export async function runCli(argv, deps) {
|
|
|
943
946
|
}
|
|
944
947
|
case 'install-skill':
|
|
945
948
|
case 'install': {
|
|
946
|
-
// Only `--force` is accepted here (overwrite a locally-modified
|
|
947
|
-
// skill). Reject anything else so a typo'd flag isn't silently
|
|
948
|
-
// ignored — and so the `install-skill --force` remediation that
|
|
949
|
-
// the setup-path advertises actually works.
|
|
950
949
|
const tail = argv.slice(1);
|
|
951
950
|
if (tail.includes('--help') || tail.includes('-h')) {
|
|
952
951
|
out(HELP_TEXT);
|
|
@@ -1002,9 +1001,6 @@ export async function runCli(argv, deps) {
|
|
|
1002
1001
|
}
|
|
1003
1002
|
let selection;
|
|
1004
1003
|
if (parsed.all) {
|
|
1005
|
-
// Non-interactive: remove from every detected client +
|
|
1006
|
-
// the skill, no prompts. `--keep-skill` opts the skill out;
|
|
1007
|
-
// `--force` overrides the modified-protection.
|
|
1008
1004
|
selection = {
|
|
1009
1005
|
clientIds: detected.map((d) => d.id),
|
|
1010
1006
|
removeSkill: parsed.keepSkill ? false : skillInstalled,
|
|
@@ -1018,7 +1014,6 @@ export async function runCli(argv, deps) {
|
|
|
1018
1014
|
skipFinalConfirm: parsed.yes,
|
|
1019
1015
|
});
|
|
1020
1016
|
if (picked === null) {
|
|
1021
|
-
// User cancelled — clean exit (SIGINT convention).
|
|
1022
1017
|
return 130;
|
|
1023
1018
|
}
|
|
1024
1019
|
selection = {
|
|
@@ -1032,7 +1027,6 @@ export async function runCli(argv, deps) {
|
|
|
1032
1027
|
return 0;
|
|
1033
1028
|
}
|
|
1034
1029
|
const result = await runUninstall(selection, uninstallDeps);
|
|
1035
|
-
// Summary.
|
|
1036
1030
|
out('Uninstall summary:');
|
|
1037
1031
|
if (result.clientResults.length === 0) {
|
|
1038
1032
|
out(' (no AI client configs changed)');
|
|
@@ -1133,8 +1127,6 @@ export async function runCli(argv, deps) {
|
|
|
1133
1127
|
case 'list-sites': {
|
|
1134
1128
|
const tail = argv.slice(1);
|
|
1135
1129
|
const parsed = parseIdArgs(tail, false);
|
|
1136
|
-
// list-sites takes no positional id; if one slipped in it's
|
|
1137
|
-
// a usage error (parseIdArgs allows zero or one).
|
|
1138
1130
|
if (parsed.helpRequested) {
|
|
1139
1131
|
out(LIST_SITES_HELP);
|
|
1140
1132
|
return 0;
|
|
@@ -1211,9 +1203,6 @@ export async function runCli(argv, deps) {
|
|
|
1211
1203
|
}
|
|
1212
1204
|
case 'set-default': {
|
|
1213
1205
|
const tail = argv.slice(1);
|
|
1214
|
-
// W12-R2A: set-default is a routing-destructive op (every
|
|
1215
|
-
// subsequent default-routed tool call lands on a different
|
|
1216
|
-
// site). Allow --yes so CI can flip without a prompt.
|
|
1217
1206
|
const parsed = parseIdArgs(tail, true);
|
|
1218
1207
|
if (parsed.helpRequested) {
|
|
1219
1208
|
out(SET_DEFAULT_HELP);
|
|
@@ -1313,7 +1302,6 @@ export async function runCli(argv, deps) {
|
|
|
1313
1302
|
}
|
|
1314
1303
|
}
|
|
1315
1304
|
}
|
|
1316
|
-
// ── direct CLI entry ────────────────────────────────────────────────────
|
|
1317
1305
|
const isMain = typeof process !== 'undefined' &&
|
|
1318
1306
|
process.argv[1] !== undefined &&
|
|
1319
1307
|
import.meta.url === `file://${process.argv[1]}`;
|