@skillcap/gdh 0.1.2
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/INSTALL-BUNDLE.json +5 -0
- package/LICENSE +21 -0
- package/README.md +142 -0
- package/bin/gdh +13 -0
- package/bin/gdh.cmd +3 -0
- package/node_modules/@clack/core/CHANGELOG.md +340 -0
- package/node_modules/@clack/core/LICENSE +9 -0
- package/node_modules/@clack/core/README.md +22 -0
- package/node_modules/@clack/core/dist/index.d.mts +349 -0
- package/node_modules/@clack/core/dist/index.mjs +11 -0
- package/node_modules/@clack/core/dist/index.mjs.map +1 -0
- package/node_modules/@clack/core/package.json +60 -0
- package/node_modules/@clack/prompts/CHANGELOG.md +576 -0
- package/node_modules/@clack/prompts/LICENSE +9 -0
- package/node_modules/@clack/prompts/README.md +270 -0
- package/node_modules/@clack/prompts/dist/index.d.mts +391 -0
- package/node_modules/@clack/prompts/dist/index.mjs +137 -0
- package/node_modules/@clack/prompts/dist/index.mjs.map +1 -0
- package/node_modules/@clack/prompts/package.json +65 -0
- package/node_modules/@gdh/adapters/dist/index.d.ts +36 -0
- package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/adapters/dist/index.js +2415 -0
- package/node_modules/@gdh/adapters/dist/index.js.map +1 -0
- package/node_modules/@gdh/adapters/package.json +23 -0
- package/node_modules/@gdh/authoring/dist/cache.d.ts +23 -0
- package/node_modules/@gdh/authoring/dist/cache.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/cache.js +252 -0
- package/node_modules/@gdh/authoring/dist/cache.js.map +1 -0
- package/node_modules/@gdh/authoring/dist/index.d.ts +13 -0
- package/node_modules/@gdh/authoring/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/index.js +37 -0
- package/node_modules/@gdh/authoring/dist/index.js.map +1 -0
- package/node_modules/@gdh/authoring/dist/lsp.d.ts +15 -0
- package/node_modules/@gdh/authoring/dist/lsp.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/lsp.js +644 -0
- package/node_modules/@gdh/authoring/dist/lsp.js.map +1 -0
- package/node_modules/@gdh/authoring/dist/prepare.d.ts +16 -0
- package/node_modules/@gdh/authoring/dist/prepare.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/prepare.js +327 -0
- package/node_modules/@gdh/authoring/dist/prepare.js.map +1 -0
- package/node_modules/@gdh/authoring/dist/project.d.ts +23 -0
- package/node_modules/@gdh/authoring/dist/project.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/project.js +443 -0
- package/node_modules/@gdh/authoring/dist/project.js.map +1 -0
- package/node_modules/@gdh/authoring/dist/report.d.ts +8 -0
- package/node_modules/@gdh/authoring/dist/report.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/report.js +134 -0
- package/node_modules/@gdh/authoring/dist/report.js.map +1 -0
- package/node_modules/@gdh/authoring/dist/warmup.d.ts +8 -0
- package/node_modules/@gdh/authoring/dist/warmup.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/warmup.js +92 -0
- package/node_modules/@gdh/authoring/dist/warmup.js.map +1 -0
- package/node_modules/@gdh/authoring/package.json +17 -0
- package/node_modules/@gdh/cli/dist/cli.d.ts +3 -0
- package/node_modules/@gdh/cli/dist/cli.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/cli.js +7 -0
- package/node_modules/@gdh/cli/dist/cli.js.map +1 -0
- package/node_modules/@gdh/cli/dist/index.d.ts +7 -0
- package/node_modules/@gdh/cli/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/index.js +3766 -0
- package/node_modules/@gdh/cli/dist/index.js.map +1 -0
- package/node_modules/@gdh/cli/dist/migrate.d.ts +31 -0
- package/node_modules/@gdh/cli/dist/migrate.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/migrate.js +514 -0
- package/node_modules/@gdh/cli/dist/migrate.js.map +1 -0
- package/node_modules/@gdh/cli/dist/public-terms.d.ts +2 -0
- package/node_modules/@gdh/cli/dist/public-terms.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/public-terms.js +2 -0
- package/node_modules/@gdh/cli/dist/public-terms.js.map +1 -0
- package/node_modules/@gdh/cli/dist/setup.d.ts +37 -0
- package/node_modules/@gdh/cli/dist/setup.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/setup.js +518 -0
- package/node_modules/@gdh/cli/dist/setup.js.map +1 -0
- package/node_modules/@gdh/cli/package.json +30 -0
- package/node_modules/@gdh/core/dist/godot-docs-version.d.ts +64 -0
- package/node_modules/@gdh/core/dist/godot-docs-version.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/godot-docs-version.js +373 -0
- package/node_modules/@gdh/core/dist/godot-docs-version.js.map +1 -0
- package/node_modules/@gdh/core/dist/index.d.ts +1632 -0
- package/node_modules/@gdh/core/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/index.js +284 -0
- package/node_modules/@gdh/core/dist/index.js.map +1 -0
- package/node_modules/@gdh/core/dist/local-path-hints.d.ts +9 -0
- package/node_modules/@gdh/core/dist/local-path-hints.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/local-path-hints.js +50 -0
- package/node_modules/@gdh/core/dist/local-path-hints.js.map +1 -0
- package/node_modules/@gdh/core/dist/official-docs.d.ts +85 -0
- package/node_modules/@gdh/core/dist/official-docs.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/official-docs.js +2 -0
- package/node_modules/@gdh/core/dist/official-docs.js.map +1 -0
- package/node_modules/@gdh/core/package.json +14 -0
- package/node_modules/@gdh/docs/dist/agent-contract.d.ts +10 -0
- package/node_modules/@gdh/docs/dist/agent-contract.d.ts.map +1 -0
- package/node_modules/@gdh/docs/dist/agent-contract.js +81 -0
- package/node_modules/@gdh/docs/dist/agent-contract.js.map +1 -0
- package/node_modules/@gdh/docs/dist/files.d.ts +9 -0
- package/node_modules/@gdh/docs/dist/files.d.ts.map +1 -0
- package/node_modules/@gdh/docs/dist/files.js +18 -0
- package/node_modules/@gdh/docs/dist/files.js.map +1 -0
- package/node_modules/@gdh/docs/dist/guidance.d.ts +14 -0
- package/node_modules/@gdh/docs/dist/guidance.d.ts.map +1 -0
- package/node_modules/@gdh/docs/dist/guidance.js +327 -0
- package/node_modules/@gdh/docs/dist/guidance.js.map +1 -0
- package/node_modules/@gdh/docs/dist/index.d.ts +7 -0
- package/node_modules/@gdh/docs/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/docs/dist/index.js +13 -0
- package/node_modules/@gdh/docs/dist/index.js.map +1 -0
- package/node_modules/@gdh/docs/dist/official-docs.d.ts +4 -0
- package/node_modules/@gdh/docs/dist/official-docs.d.ts.map +1 -0
- package/node_modules/@gdh/docs/dist/official-docs.js +913 -0
- package/node_modules/@gdh/docs/dist/official-docs.js.map +1 -0
- package/node_modules/@gdh/docs/dist/query.d.ts +4 -0
- package/node_modules/@gdh/docs/dist/query.d.ts.map +1 -0
- package/node_modules/@gdh/docs/dist/query.js +157 -0
- package/node_modules/@gdh/docs/dist/query.js.map +1 -0
- package/node_modules/@gdh/docs/dist/rules.d.ts +6 -0
- package/node_modules/@gdh/docs/dist/rules.d.ts.map +1 -0
- package/node_modules/@gdh/docs/dist/rules.js +231 -0
- package/node_modules/@gdh/docs/dist/rules.js.map +1 -0
- package/node_modules/@gdh/docs/package.json +18 -0
- package/node_modules/@gdh/mcp/dist/index.d.ts +12 -0
- package/node_modules/@gdh/mcp/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/mcp/dist/index.js +1016 -0
- package/node_modules/@gdh/mcp/dist/index.js.map +1 -0
- package/node_modules/@gdh/mcp/package.json +24 -0
- package/node_modules/@gdh/observability/dist/guidance-audit.d.ts +30 -0
- package/node_modules/@gdh/observability/dist/guidance-audit.d.ts.map +1 -0
- package/node_modules/@gdh/observability/dist/guidance-audit.js +809 -0
- package/node_modules/@gdh/observability/dist/guidance-audit.js.map +1 -0
- package/node_modules/@gdh/observability/dist/index.d.ts +5 -0
- package/node_modules/@gdh/observability/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/observability/dist/index.js +11 -0
- package/node_modules/@gdh/observability/dist/index.js.map +1 -0
- package/node_modules/@gdh/observability/dist/runtime-bundles.d.ts +10 -0
- package/node_modules/@gdh/observability/dist/runtime-bundles.d.ts.map +1 -0
- package/node_modules/@gdh/observability/dist/runtime-bundles.js +332 -0
- package/node_modules/@gdh/observability/dist/runtime-bundles.js.map +1 -0
- package/node_modules/@gdh/observability/dist/runtime-corpus.d.ts +5 -0
- package/node_modules/@gdh/observability/dist/runtime-corpus.d.ts.map +1 -0
- package/node_modules/@gdh/observability/dist/runtime-corpus.js +28 -0
- package/node_modules/@gdh/observability/dist/runtime-corpus.js.map +1 -0
- package/node_modules/@gdh/observability/package.json +17 -0
- package/node_modules/@gdh/runtime/dist/bridge-surface.d.ts +25 -0
- package/node_modules/@gdh/runtime/dist/bridge-surface.d.ts.map +1 -0
- package/node_modules/@gdh/runtime/dist/bridge-surface.js +946 -0
- package/node_modules/@gdh/runtime/dist/bridge-surface.js.map +1 -0
- package/node_modules/@gdh/runtime/dist/index.d.ts +34 -0
- package/node_modules/@gdh/runtime/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/runtime/dist/index.js +1699 -0
- package/node_modules/@gdh/runtime/dist/index.js.map +1 -0
- package/node_modules/@gdh/runtime/package.json +19 -0
- package/node_modules/@gdh/scan/dist/index.d.ts +4 -0
- package/node_modules/@gdh/scan/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/scan/dist/index.js +10 -0
- package/node_modules/@gdh/scan/dist/index.js.map +1 -0
- package/node_modules/@gdh/scan/dist/onboard.d.ts +11 -0
- package/node_modules/@gdh/scan/dist/onboard.d.ts.map +1 -0
- package/node_modules/@gdh/scan/dist/onboard.js +441 -0
- package/node_modules/@gdh/scan/dist/onboard.js.map +1 -0
- package/node_modules/@gdh/scan/dist/scan.d.ts +3 -0
- package/node_modules/@gdh/scan/dist/scan.d.ts.map +1 -0
- package/node_modules/@gdh/scan/dist/scan.js +316 -0
- package/node_modules/@gdh/scan/dist/scan.js.map +1 -0
- package/node_modules/@gdh/scan/package.json +18 -0
- package/node_modules/@gdh/verify/dist/corpus.d.ts +24 -0
- package/node_modules/@gdh/verify/dist/corpus.d.ts.map +1 -0
- package/node_modules/@gdh/verify/dist/corpus.js +638 -0
- package/node_modules/@gdh/verify/dist/corpus.js.map +1 -0
- package/node_modules/@gdh/verify/dist/index.d.ts +6 -0
- package/node_modules/@gdh/verify/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/verify/dist/index.js +19 -0
- package/node_modules/@gdh/verify/dist/index.js.map +1 -0
- package/node_modules/@gdh/verify/dist/policy.d.ts +19 -0
- package/node_modules/@gdh/verify/dist/policy.d.ts.map +1 -0
- package/node_modules/@gdh/verify/dist/policy.js +455 -0
- package/node_modules/@gdh/verify/dist/policy.js.map +1 -0
- package/node_modules/@gdh/verify/dist/readiness.d.ts +6 -0
- package/node_modules/@gdh/verify/dist/readiness.d.ts.map +1 -0
- package/node_modules/@gdh/verify/dist/readiness.js +85 -0
- package/node_modules/@gdh/verify/dist/readiness.js.map +1 -0
- package/node_modules/@gdh/verify/dist/scenarios.d.ts +27 -0
- package/node_modules/@gdh/verify/dist/scenarios.d.ts.map +1 -0
- package/node_modules/@gdh/verify/dist/scenarios.js +624 -0
- package/node_modules/@gdh/verify/dist/scenarios.js.map +1 -0
- package/node_modules/@gdh/verify/package.json +23 -0
- package/node_modules/@hono/node-server/LICENSE +21 -0
- package/node_modules/@hono/node-server/README.md +358 -0
- package/node_modules/@hono/node-server/dist/conninfo.d.mts +10 -0
- package/node_modules/@hono/node-server/dist/conninfo.d.ts +10 -0
- package/node_modules/@hono/node-server/dist/conninfo.js +42 -0
- package/node_modules/@hono/node-server/dist/conninfo.mjs +17 -0
- package/node_modules/@hono/node-server/dist/globals.d.mts +2 -0
- package/node_modules/@hono/node-server/dist/globals.d.ts +2 -0
- package/node_modules/@hono/node-server/dist/globals.js +29 -0
- package/node_modules/@hono/node-server/dist/globals.mjs +5 -0
- package/node_modules/@hono/node-server/dist/index.d.mts +8 -0
- package/node_modules/@hono/node-server/dist/index.d.ts +8 -0
- package/node_modules/@hono/node-server/dist/index.js +680 -0
- package/node_modules/@hono/node-server/dist/index.mjs +640 -0
- package/node_modules/@hono/node-server/dist/listener.d.mts +13 -0
- package/node_modules/@hono/node-server/dist/listener.d.ts +13 -0
- package/node_modules/@hono/node-server/dist/listener.js +648 -0
- package/node_modules/@hono/node-server/dist/listener.mjs +613 -0
- package/node_modules/@hono/node-server/dist/request.d.mts +25 -0
- package/node_modules/@hono/node-server/dist/request.d.ts +25 -0
- package/node_modules/@hono/node-server/dist/request.js +227 -0
- package/node_modules/@hono/node-server/dist/request.mjs +195 -0
- package/node_modules/@hono/node-server/dist/response.d.mts +26 -0
- package/node_modules/@hono/node-server/dist/response.d.ts +26 -0
- package/node_modules/@hono/node-server/dist/response.js +101 -0
- package/node_modules/@hono/node-server/dist/response.mjs +74 -0
- package/node_modules/@hono/node-server/dist/serve-static.d.mts +17 -0
- package/node_modules/@hono/node-server/dist/serve-static.d.ts +17 -0
- package/node_modules/@hono/node-server/dist/serve-static.js +177 -0
- package/node_modules/@hono/node-server/dist/serve-static.mjs +152 -0
- package/node_modules/@hono/node-server/dist/server.d.mts +10 -0
- package/node_modules/@hono/node-server/dist/server.d.ts +10 -0
- package/node_modules/@hono/node-server/dist/server.js +674 -0
- package/node_modules/@hono/node-server/dist/server.mjs +638 -0
- package/node_modules/@hono/node-server/dist/types.d.mts +44 -0
- package/node_modules/@hono/node-server/dist/types.d.ts +44 -0
- package/node_modules/@hono/node-server/dist/types.js +18 -0
- package/node_modules/@hono/node-server/dist/types.mjs +0 -0
- package/node_modules/@hono/node-server/dist/utils/response/constants.d.mts +3 -0
- package/node_modules/@hono/node-server/dist/utils/response/constants.d.ts +3 -0
- package/node_modules/@hono/node-server/dist/utils/response/constants.js +30 -0
- package/node_modules/@hono/node-server/dist/utils/response/constants.mjs +5 -0
- package/node_modules/@hono/node-server/dist/utils/response.d.mts +3 -0
- package/node_modules/@hono/node-server/dist/utils/response.d.ts +3 -0
- package/node_modules/@hono/node-server/dist/utils/response.js +37 -0
- package/node_modules/@hono/node-server/dist/utils/response.mjs +10 -0
- package/node_modules/@hono/node-server/dist/utils.d.mts +9 -0
- package/node_modules/@hono/node-server/dist/utils.d.ts +9 -0
- package/node_modules/@hono/node-server/dist/utils.js +99 -0
- package/node_modules/@hono/node-server/dist/utils.mjs +71 -0
- package/node_modules/@hono/node-server/dist/vercel.d.mts +7 -0
- package/node_modules/@hono/node-server/dist/vercel.d.ts +7 -0
- package/node_modules/@hono/node-server/dist/vercel.js +655 -0
- package/node_modules/@hono/node-server/dist/vercel.mjs +618 -0
- package/node_modules/@hono/node-server/package.json +103 -0
- package/node_modules/@modelcontextprotocol/sdk/LICENSE +21 -0
- package/node_modules/@modelcontextprotocol/sdk/README.md +172 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts +190 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +299 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts +451 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +943 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts +591 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +629 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts +169 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js +252 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts +81 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js +211 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +196 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts +171 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +482 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts +17 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js +58 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts +121 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js +188 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js +68 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js +39 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts +232 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js +36 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts +170 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js +250 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts +94 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js +251 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js +28 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/package.json +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts +148 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js +202 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts +24 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js +201 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts +4 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js +21 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js +136 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js +21 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts +35 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js +75 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js +71 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts +68 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts +49 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js +159 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts +101 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js +128 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts +38 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js +48 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js +56 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts +196 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +444 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts +364 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +922 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js +80 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts +82 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js +172 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts +28 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +82 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts +122 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js +165 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +268 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +755 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts +84 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +244 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js +79 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts +23 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js +48 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts +240 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js +224 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js +25 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts +443 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +1112 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js +23 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +37 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js +97 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +89 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js +43 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts +25 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js +243 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts +2311 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js +27 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts +8168 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js +2105 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts +53 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js +94 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js +69 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js +30 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts +190 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +269 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts +451 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +918 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts +591 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +624 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts +169 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js +245 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts +81 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js +206 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +188 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts +171 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +477 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts +17 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js +54 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts +121 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +184 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js +20 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts +232 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts +170 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +246 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts +94 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js +246 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts +148 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +180 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts +24 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js +171 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts +4 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js +15 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js +71 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js +59 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js +107 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js +18 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts +35 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js +72 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts +68 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts +49 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js +155 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts +101 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js +118 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts +38 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js +50 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts +196 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +440 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts +364 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +917 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js +76 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts +82 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js +165 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts +28 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +75 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts +122 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js +161 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +268 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +751 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts +84 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +209 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts +23 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +44 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts +240 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +198 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js +22 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts +443 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1107 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +89 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +39 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts +25 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts +2311 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js +24 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts +8168 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts +53 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/package.json +164 -0
- package/node_modules/accepts/HISTORY.md +250 -0
- package/node_modules/accepts/LICENSE +23 -0
- package/node_modules/accepts/README.md +140 -0
- package/node_modules/accepts/index.js +238 -0
- package/node_modules/accepts/package.json +47 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +127 -0
- package/node_modules/ajv-formats/LICENSE +21 -0
- package/node_modules/ajv-formats/README.md +125 -0
- package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/node_modules/ajv-formats/dist/formats.js +208 -0
- package/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/node_modules/ajv-formats/dist/index.js +37 -0
- package/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/node_modules/ajv-formats/dist/limit.js +69 -0
- package/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/node_modules/ajv-formats/package.json +74 -0
- package/node_modules/ajv-formats/src/formats.ts +269 -0
- package/node_modules/ajv-formats/src/index.ts +62 -0
- package/node_modules/ajv-formats/src/limit.ts +99 -0
- package/node_modules/async-function/.eslintrc +16 -0
- package/node_modules/async-function/.github/FUNDING.yml +12 -0
- package/node_modules/async-function/.nycrc +9 -0
- package/node_modules/async-function/CHANGELOG.md +16 -0
- package/node_modules/async-function/LICENSE +21 -0
- package/node_modules/async-function/README.md +51 -0
- package/node_modules/async-function/index.d.mts +3 -0
- package/node_modules/async-function/index.d.ts +13 -0
- package/node_modules/async-function/index.js +8 -0
- package/node_modules/async-function/index.mjs +4 -0
- package/node_modules/async-function/legacy.js +18 -0
- package/node_modules/async-function/package.json +86 -0
- package/node_modules/async-function/require.mjs +5 -0
- package/node_modules/async-function/tsconfig.json +9 -0
- package/node_modules/async-generator-function/.eslintrc +26 -0
- package/node_modules/async-generator-function/.github/FUNDING.yml +12 -0
- package/node_modules/async-generator-function/.nycrc +9 -0
- package/node_modules/async-generator-function/CHANGELOG.md +15 -0
- package/node_modules/async-generator-function/LICENSE +21 -0
- package/node_modules/async-generator-function/README.md +52 -0
- package/node_modules/async-generator-function/index.d.mts +3 -0
- package/node_modules/async-generator-function/index.d.ts +22 -0
- package/node_modules/async-generator-function/index.js +8 -0
- package/node_modules/async-generator-function/index.mjs +4 -0
- package/node_modules/async-generator-function/legacy.js +18 -0
- package/node_modules/async-generator-function/package.json +87 -0
- package/node_modules/async-generator-function/require.mjs +5 -0
- package/node_modules/async-generator-function/tsconfig.json +9 -0
- package/node_modules/body-parser/LICENSE +23 -0
- package/node_modules/body-parser/README.md +494 -0
- package/node_modules/body-parser/index.js +71 -0
- package/node_modules/body-parser/lib/read.js +247 -0
- package/node_modules/body-parser/lib/types/json.js +158 -0
- package/node_modules/body-parser/lib/types/raw.js +42 -0
- package/node_modules/body-parser/lib/types/text.js +36 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +142 -0
- package/node_modules/body-parser/lib/utils.js +98 -0
- package/node_modules/body-parser/package.json +52 -0
- package/node_modules/bytes/History.md +97 -0
- package/node_modules/bytes/LICENSE +23 -0
- package/node_modules/bytes/Readme.md +152 -0
- package/node_modules/bytes/index.js +170 -0
- package/node_modules/bytes/package.json +42 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/call-bound/LICENSE +21 -0
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +94 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +141 -0
- package/node_modules/content-disposition/index.js +536 -0
- package/node_modules/content-disposition/package.json +40 -0
- package/node_modules/content-type/HISTORY.md +29 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +94 -0
- package/node_modules/content-type/index.js +225 -0
- package/node_modules/content-type/package.json +42 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +317 -0
- package/node_modules/cookie/SECURITY.md +25 -0
- package/node_modules/cookie/index.js +335 -0
- package/node_modules/cookie/package.json +44 -0
- package/node_modules/cookie-signature/History.md +70 -0
- package/node_modules/cookie-signature/LICENSE +22 -0
- package/node_modules/cookie-signature/Readme.md +23 -0
- package/node_modules/cookie-signature/index.js +47 -0
- package/node_modules/cookie-signature/package.json +24 -0
- package/node_modules/cors/LICENSE +22 -0
- package/node_modules/cors/README.md +277 -0
- package/node_modules/cors/lib/index.js +238 -0
- package/node_modules/cors/package.json +42 -0
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +89 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +91 -0
- package/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/node_modules/cross-spawn/node_modules/isexe/.npmignore +2 -0
- package/node_modules/cross-spawn/node_modules/isexe/LICENSE +15 -0
- package/node_modules/cross-spawn/node_modules/isexe/README.md +51 -0
- package/node_modules/cross-spawn/node_modules/isexe/index.js +57 -0
- package/node_modules/cross-spawn/node_modules/isexe/mode.js +41 -0
- package/node_modules/cross-spawn/node_modules/isexe/package.json +31 -0
- package/node_modules/cross-spawn/node_modules/isexe/windows.js +42 -0
- package/node_modules/cross-spawn/node_modules/which/LICENSE +15 -0
- package/node_modules/cross-spawn/node_modules/which/README.md +54 -0
- package/node_modules/cross-spawn/node_modules/which/bin/node-which +52 -0
- package/node_modules/cross-spawn/node_modules/which/package.json +43 -0
- package/node_modules/cross-spawn/node_modules/which/which.js +125 -0
- package/node_modules/cross-spawn/package.json +73 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/ee-first/LICENSE +22 -0
- package/node_modules/ee-first/README.md +80 -0
- package/node_modules/ee-first/index.js +95 -0
- package/node_modules/ee-first/package.json +29 -0
- package/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/encodeurl/README.md +109 -0
- package/node_modules/encodeurl/index.js +60 -0
- package/node_modules/encodeurl/package.json +40 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/escape-html/LICENSE +24 -0
- package/node_modules/escape-html/Readme.md +43 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/etag/HISTORY.md +83 -0
- package/node_modules/etag/LICENSE +22 -0
- package/node_modules/etag/README.md +159 -0
- package/node_modules/etag/index.js +131 -0
- package/node_modules/etag/package.json +47 -0
- package/node_modules/eventsource/LICENSE +22 -0
- package/node_modules/eventsource/README.md +167 -0
- package/node_modules/eventsource/dist/index.cjs +273 -0
- package/node_modules/eventsource/dist/index.cjs.map +1 -0
- package/node_modules/eventsource/dist/index.d.cts +332 -0
- package/node_modules/eventsource/dist/index.d.ts +332 -0
- package/node_modules/eventsource/dist/index.js +273 -0
- package/node_modules/eventsource/dist/index.js.map +1 -0
- package/node_modules/eventsource/package.json +130 -0
- package/node_modules/eventsource/src/EventSource.ts +596 -0
- package/node_modules/eventsource/src/errors.ts +141 -0
- package/node_modules/eventsource/src/index.ts +3 -0
- package/node_modules/eventsource/src/types.ts +152 -0
- package/node_modules/eventsource-parser/LICENSE +21 -0
- package/node_modules/eventsource-parser/README.md +126 -0
- package/node_modules/eventsource-parser/dist/index.cjs +106 -0
- package/node_modules/eventsource-parser/dist/index.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/index.d.cts +144 -0
- package/node_modules/eventsource-parser/dist/index.d.ts +144 -0
- package/node_modules/eventsource-parser/dist/index.js +106 -0
- package/node_modules/eventsource-parser/dist/index.js.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.cjs +28 -0
- package/node_modules/eventsource-parser/dist/stream.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.d.cts +118 -0
- package/node_modules/eventsource-parser/dist/stream.d.ts +118 -0
- package/node_modules/eventsource-parser/dist/stream.js +29 -0
- package/node_modules/eventsource-parser/dist/stream.js.map +1 -0
- package/node_modules/eventsource-parser/package.json +115 -0
- package/node_modules/eventsource-parser/src/errors.ts +44 -0
- package/node_modules/eventsource-parser/src/index.ts +3 -0
- package/node_modules/eventsource-parser/src/parse.ts +232 -0
- package/node_modules/eventsource-parser/src/stream.ts +88 -0
- package/node_modules/eventsource-parser/src/types.ts +97 -0
- package/node_modules/eventsource-parser/stream.js +2 -0
- package/node_modules/express/LICENSE +24 -0
- package/node_modules/express/Readme.md +276 -0
- package/node_modules/express/index.js +11 -0
- package/node_modules/express/lib/application.js +631 -0
- package/node_modules/express/lib/express.js +81 -0
- package/node_modules/express/lib/request.js +514 -0
- package/node_modules/express/lib/response.js +1053 -0
- package/node_modules/express/lib/utils.js +271 -0
- package/node_modules/express/lib/view.js +205 -0
- package/node_modules/express/package.json +99 -0
- package/node_modules/express-rate-limit/dist/index.cjs +975 -0
- package/node_modules/express-rate-limit/dist/index.d.cts +642 -0
- package/node_modules/express-rate-limit/dist/index.d.mts +642 -0
- package/node_modules/express-rate-limit/dist/index.d.ts +642 -0
- package/node_modules/express-rate-limit/dist/index.mjs +945 -0
- package/node_modules/express-rate-limit/license.md +20 -0
- package/node_modules/express-rate-limit/package.json +112 -0
- package/node_modules/express-rate-limit/readme.md +136 -0
- package/node_modules/express-rate-limit/tsconfig.json +8 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
- package/node_modules/fast-string-truncated-width/dist/index.js +171 -0
- package/node_modules/fast-string-truncated-width/dist/types.d.ts +22 -0
- package/node_modules/fast-string-truncated-width/dist/types.js +2 -0
- package/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
- package/node_modules/fast-string-truncated-width/dist/utils.js +15 -0
- package/node_modules/fast-string-truncated-width/license +21 -0
- package/node_modules/fast-string-truncated-width/package.json +35 -0
- package/node_modules/fast-string-truncated-width/readme.md +60 -0
- package/node_modules/fast-string-width/dist/index.d.ts +4 -0
- package/node_modules/fast-string-width/dist/index.js +14 -0
- package/node_modules/fast-string-width/license +21 -0
- package/node_modules/fast-string-width/package.json +34 -0
- package/node_modules/fast-string-width/readme.md +45 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/.stale.yml +21 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/tests_checker.yml +8 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +101 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +32 -0
- package/node_modules/fast-uri/README.md +143 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +340 -0
- package/node_modules/fast-uri/lib/schemes.js +267 -0
- package/node_modules/fast-uri/lib/utils.js +336 -0
- package/node_modules/fast-uri/package.json +69 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/fast-wrap-ansi/LICENSE +23 -0
- package/node_modules/fast-wrap-ansi/README.md +26 -0
- package/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
- package/node_modules/fast-wrap-ansi/lib/main.js +216 -0
- package/node_modules/fast-wrap-ansi/lib/main.js.map +1 -0
- package/node_modules/fast-wrap-ansi/package.json +51 -0
- package/node_modules/finalhandler/HISTORY.md +239 -0
- package/node_modules/finalhandler/LICENSE +22 -0
- package/node_modules/finalhandler/README.md +150 -0
- package/node_modules/finalhandler/index.js +293 -0
- package/node_modules/finalhandler/package.json +47 -0
- package/node_modules/forwarded/HISTORY.md +21 -0
- package/node_modules/forwarded/LICENSE +22 -0
- package/node_modules/forwarded/README.md +57 -0
- package/node_modules/forwarded/index.js +90 -0
- package/node_modules/forwarded/package.json +45 -0
- package/node_modules/fresh/HISTORY.md +80 -0
- package/node_modules/fresh/LICENSE +23 -0
- package/node_modules/fresh/README.md +117 -0
- package/node_modules/fresh/index.js +136 -0
- package/node_modules/fresh/package.json +46 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/generator-function/.eslintrc +16 -0
- package/node_modules/generator-function/.github/FUNDING.yml +12 -0
- package/node_modules/generator-function/.nycrc +9 -0
- package/node_modules/generator-function/CHANGELOG.md +27 -0
- package/node_modules/generator-function/LICENSE.md +7 -0
- package/node_modules/generator-function/README.md +51 -0
- package/node_modules/generator-function/index.d.mts +3 -0
- package/node_modules/generator-function/index.d.ts +3 -0
- package/node_modules/generator-function/index.js +8 -0
- package/node_modules/generator-function/index.mjs +4 -0
- package/node_modules/generator-function/legacy.js +18 -0
- package/node_modules/generator-function/package.json +88 -0
- package/node_modules/generator-function/require.mjs +5 -0
- package/node_modules/generator-function/tsconfig.json +9 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +193 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +373 -0
- package/node_modules/get-intrinsic/package.json +100 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/hono/LICENSE +21 -0
- package/node_modules/hono/README.md +85 -0
- package/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +24 -0
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +366 -0
- package/node_modules/hono/dist/adapter/aws-lambda/index.js +9 -0
- package/node_modules/hono/dist/adapter/aws-lambda/types.js +0 -0
- package/node_modules/hono/dist/adapter/bun/conninfo.js +27 -0
- package/node_modules/hono/dist/adapter/bun/index.js +16 -0
- package/node_modules/hono/dist/adapter/bun/serve-static.js +30 -0
- package/node_modules/hono/dist/adapter/bun/server.js +5 -0
- package/node_modules/hono/dist/adapter/bun/ssg.js +17 -0
- package/node_modules/hono/dist/adapter/bun/websocket.js +71 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +67 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +8 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +22 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +35 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +41 -0
- package/node_modules/hono/dist/adapter/deno/conninfo.js +14 -0
- package/node_modules/hono/dist/adapter/deno/deno.d.js +0 -0
- package/node_modules/hono/dist/adapter/deno/index.js +12 -0
- package/node_modules/hono/dist/adapter/deno/serve-static.js +40 -0
- package/node_modules/hono/dist/adapter/deno/ssg.js +18 -0
- package/node_modules/hono/dist/adapter/deno/websocket.js +28 -0
- package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/lambda-edge/handler.js +80 -0
- package/node_modules/hono/dist/adapter/lambda-edge/index.js +7 -0
- package/node_modules/hono/dist/adapter/netlify/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/netlify/handler.js +9 -0
- package/node_modules/hono/dist/adapter/netlify/index.js +2 -0
- package/node_modules/hono/dist/adapter/netlify/mod.js +7 -0
- package/node_modules/hono/dist/adapter/service-worker/handler.js +20 -0
- package/node_modules/hono/dist/adapter/service-worker/index.js +9 -0
- package/node_modules/hono/dist/adapter/service-worker/types.js +0 -0
- package/node_modules/hono/dist/adapter/vercel/conninfo.js +10 -0
- package/node_modules/hono/dist/adapter/vercel/handler.js +7 -0
- package/node_modules/hono/dist/adapter/vercel/index.js +7 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +46 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +397 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +34 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +15 -0
- package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +49 -0
- package/node_modules/hono/dist/cjs/adapter/bun/index.js +45 -0
- package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +52 -0
- package/node_modules/hono/dist/cjs/adapter/bun/server.js +27 -0
- package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +40 -0
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +96 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +91 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +34 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +33 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +30 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +44 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +57 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +63 -0
- package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +36 -0
- package/node_modules/hono/dist/cjs/adapter/deno/deno.d.js +0 -0
- package/node_modules/hono/dist/cjs/adapter/deno/index.js +38 -0
- package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +62 -0
- package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +41 -0
- package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +50 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +114 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +30 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/index.js +21 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +30 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +42 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +32 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +15 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +32 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +29 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/index.js +30 -0
- package/node_modules/hono/dist/cjs/client/client.js +195 -0
- package/node_modules/hono/dist/cjs/client/fetch-result-please.js +85 -0
- package/node_modules/hono/dist/cjs/client/index.js +32 -0
- package/node_modules/hono/dist/cjs/client/types.js +15 -0
- package/node_modules/hono/dist/cjs/client/utils.js +105 -0
- package/node_modules/hono/dist/cjs/compose.js +68 -0
- package/node_modules/hono/dist/cjs/context.js +435 -0
- package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +43 -0
- package/node_modules/hono/dist/cjs/helper/accepts/index.js +27 -0
- package/node_modules/hono/dist/cjs/helper/adapter/index.js +81 -0
- package/node_modules/hono/dist/cjs/helper/conninfo/index.js +15 -0
- package/node_modules/hono/dist/cjs/helper/conninfo/types.js +15 -0
- package/node_modules/hono/dist/cjs/helper/cookie/index.js +130 -0
- package/node_modules/hono/dist/cjs/helper/css/common.js +271 -0
- package/node_modules/hono/dist/cjs/helper/css/index.js +149 -0
- package/node_modules/hono/dist/cjs/helper/dev/index.js +79 -0
- package/node_modules/hono/dist/cjs/helper/factory/index.js +54 -0
- package/node_modules/hono/dist/cjs/helper/html/index.js +64 -0
- package/node_modules/hono/dist/cjs/helper/proxy/index.js +111 -0
- package/node_modules/hono/dist/cjs/helper/route/index.js +71 -0
- package/node_modules/hono/dist/cjs/helper/ssg/index.js +43 -0
- package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +73 -0
- package/node_modules/hono/dist/cjs/helper/ssg/plugins.js +70 -0
- package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +318 -0
- package/node_modules/hono/dist/cjs/helper/ssg/utils.js +93 -0
- package/node_modules/hono/dist/cjs/helper/streaming/index.js +35 -0
- package/node_modules/hono/dist/cjs/helper/streaming/sse.js +90 -0
- package/node_modules/hono/dist/cjs/helper/streaming/stream.js +56 -0
- package/node_modules/hono/dist/cjs/helper/streaming/text.js +34 -0
- package/node_modules/hono/dist/cjs/helper/streaming/utils.js +35 -0
- package/node_modules/hono/dist/cjs/helper/testing/index.js +33 -0
- package/node_modules/hono/dist/cjs/helper/websocket/index.js +81 -0
- package/node_modules/hono/dist/cjs/hono-base.js +400 -0
- package/node_modules/hono/dist/cjs/hono.js +43 -0
- package/node_modules/hono/dist/cjs/http-exception.js +57 -0
- package/node_modules/hono/dist/cjs/index.js +27 -0
- package/node_modules/hono/dist/cjs/jsx/base.js +374 -0
- package/node_modules/hono/dist/cjs/jsx/children.js +44 -0
- package/node_modules/hono/dist/cjs/jsx/components.js +201 -0
- package/node_modules/hono/dist/cjs/jsx/constants.js +42 -0
- package/node_modules/hono/dist/cjs/jsx/context.js +62 -0
- package/node_modules/hono/dist/cjs/jsx/dom/client.js +76 -0
- package/node_modules/hono/dist/cjs/jsx/dom/components.js +55 -0
- package/node_modules/hono/dist/cjs/jsx/dom/context.js +71 -0
- package/node_modules/hono/dist/cjs/jsx/dom/css.js +168 -0
- package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +74 -0
- package/node_modules/hono/dist/cjs/jsx/dom/index.js +181 -0
- package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +399 -0
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +52 -0
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +32 -0
- package/node_modules/hono/dist/cjs/jsx/dom/render.js +628 -0
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +67 -0
- package/node_modules/hono/dist/cjs/jsx/dom/utils.js +32 -0
- package/node_modules/hono/dist/cjs/jsx/hooks/index.js +370 -0
- package/node_modules/hono/dist/cjs/jsx/index.js +138 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +50 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +189 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +15 -0
- package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +41 -0
- package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +68 -0
- package/node_modules/hono/dist/cjs/jsx/streaming.js +177 -0
- package/node_modules/hono/dist/cjs/jsx/types.js +15 -0
- package/node_modules/hono/dist/cjs/jsx/utils.js +50 -0
- package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +88 -0
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +114 -0
- package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +84 -0
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +111 -0
- package/node_modules/hono/dist/cjs/middleware/combine/index.js +101 -0
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +65 -0
- package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +47 -0
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +112 -0
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +77 -0
- package/node_modules/hono/dist/cjs/middleware/etag/digest.js +55 -0
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +95 -0
- package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +146 -0
- package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +82 -0
- package/node_modules/hono/dist/cjs/middleware/jwk/index.js +27 -0
- package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +134 -0
- package/node_modules/hono/dist/cjs/middleware/jwt/index.js +38 -0
- package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +140 -0
- package/node_modules/hono/dist/cjs/middleware/language/index.js +35 -0
- package/node_modules/hono/dist/cjs/middleware/language/language.js +221 -0
- package/node_modules/hono/dist/cjs/middleware/logger/index.js +72 -0
- package/node_modules/hono/dist/cjs/middleware/method-override/index.js +104 -0
- package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +32 -0
- package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +37 -0
- package/node_modules/hono/dist/cjs/middleware/request-id/index.js +27 -0
- package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +43 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +29 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +15 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +189 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +99 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +40 -0
- package/node_modules/hono/dist/cjs/middleware/timeout/index.js +47 -0
- package/node_modules/hono/dist/cjs/middleware/timing/index.js +35 -0
- package/node_modules/hono/dist/cjs/middleware/timing/timing.js +128 -0
- package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +62 -0
- package/node_modules/hono/dist/cjs/package.json +3 -0
- package/node_modules/hono/dist/cjs/preset/quick.js +38 -0
- package/node_modules/hono/dist/cjs/preset/tiny.js +34 -0
- package/node_modules/hono/dist/cjs/request/constants.js +27 -0
- package/node_modules/hono/dist/cjs/request.js +324 -0
- package/node_modules/hono/dist/cjs/router/linear-router/index.js +27 -0
- package/node_modules/hono/dist/cjs/router/linear-router/router.js +140 -0
- package/node_modules/hono/dist/cjs/router/pattern-router/index.js +27 -0
- package/node_modules/hono/dist/cjs/router/pattern-router/router.js +70 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +34 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +48 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +134 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +166 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +208 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +81 -0
- package/node_modules/hono/dist/cjs/router/smart-router/index.js +27 -0
- package/node_modules/hono/dist/cjs/router/smart-router/router.js +80 -0
- package/node_modules/hono/dist/cjs/router/trie-router/index.js +27 -0
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +201 -0
- package/node_modules/hono/dist/cjs/router/trie-router/router.js +48 -0
- package/node_modules/hono/dist/cjs/router.js +40 -0
- package/node_modules/hono/dist/cjs/types.js +28 -0
- package/node_modules/hono/dist/cjs/utils/accept.js +245 -0
- package/node_modules/hono/dist/cjs/utils/basic-auth.js +45 -0
- package/node_modules/hono/dist/cjs/utils/body.js +97 -0
- package/node_modules/hono/dist/cjs/utils/buffer.js +102 -0
- package/node_modules/hono/dist/cjs/utils/color.js +48 -0
- package/node_modules/hono/dist/cjs/utils/compress.js +27 -0
- package/node_modules/hono/dist/cjs/utils/concurrent.js +61 -0
- package/node_modules/hono/dist/cjs/utils/constants.js +27 -0
- package/node_modules/hono/dist/cjs/utils/cookie.js +198 -0
- package/node_modules/hono/dist/cjs/utils/crypto.js +69 -0
- package/node_modules/hono/dist/cjs/utils/encode.js +54 -0
- package/node_modules/hono/dist/cjs/utils/filepath.js +58 -0
- package/node_modules/hono/dist/cjs/utils/handler.js +36 -0
- package/node_modules/hono/dist/cjs/utils/headers.js +15 -0
- package/node_modules/hono/dist/cjs/utils/html.js +150 -0
- package/node_modules/hono/dist/cjs/utils/http-status.js +15 -0
- package/node_modules/hono/dist/cjs/utils/ipaddr.js +135 -0
- package/node_modules/hono/dist/cjs/utils/jwt/index.js +28 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +42 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jws.js +215 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +213 -0
- package/node_modules/hono/dist/cjs/utils/jwt/types.js +161 -0
- package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +30 -0
- package/node_modules/hono/dist/cjs/utils/mime.js +108 -0
- package/node_modules/hono/dist/cjs/utils/stream.js +101 -0
- package/node_modules/hono/dist/cjs/utils/types.js +15 -0
- package/node_modules/hono/dist/cjs/utils/url.js +256 -0
- package/node_modules/hono/dist/cjs/validator/index.js +27 -0
- package/node_modules/hono/dist/cjs/validator/utils.js +15 -0
- package/node_modules/hono/dist/cjs/validator/validator.js +108 -0
- package/node_modules/hono/dist/client/client.js +180 -0
- package/node_modules/hono/dist/client/fetch-result-please.js +62 -0
- package/node_modules/hono/dist/client/index.js +8 -0
- package/node_modules/hono/dist/client/types.js +0 -0
- package/node_modules/hono/dist/client/utils.js +76 -0
- package/node_modules/hono/dist/compose.js +46 -0
- package/node_modules/hono/dist/context.js +412 -0
- package/node_modules/hono/dist/helper/accepts/accepts.js +20 -0
- package/node_modules/hono/dist/helper/accepts/index.js +5 -0
- package/node_modules/hono/dist/helper/adapter/index.js +56 -0
- package/node_modules/hono/dist/helper/conninfo/index.js +0 -0
- package/node_modules/hono/dist/helper/conninfo/types.js +0 -0
- package/node_modules/hono/dist/helper/cookie/index.js +102 -0
- package/node_modules/hono/dist/helper/css/common.js +234 -0
- package/node_modules/hono/dist/helper/css/index.js +132 -0
- package/node_modules/hono/dist/helper/dev/index.js +55 -0
- package/node_modules/hono/dist/helper/factory/index.js +30 -0
- package/node_modules/hono/dist/helper/html/index.js +41 -0
- package/node_modules/hono/dist/helper/proxy/index.js +89 -0
- package/node_modules/hono/dist/helper/route/index.js +46 -0
- package/node_modules/hono/dist/helper/ssg/index.js +19 -0
- package/node_modules/hono/dist/helper/ssg/middleware.js +45 -0
- package/node_modules/hono/dist/helper/ssg/plugins.js +47 -0
- package/node_modules/hono/dist/helper/ssg/ssg.js +295 -0
- package/node_modules/hono/dist/helper/ssg/utils.js +67 -0
- package/node_modules/hono/dist/helper/streaming/index.js +10 -0
- package/node_modules/hono/dist/helper/streaming/sse.js +67 -0
- package/node_modules/hono/dist/helper/streaming/stream.js +34 -0
- package/node_modules/hono/dist/helper/streaming/text.js +12 -0
- package/node_modules/hono/dist/helper/streaming/utils.js +13 -0
- package/node_modules/hono/dist/helper/testing/index.js +11 -0
- package/node_modules/hono/dist/helper/websocket/index.js +57 -0
- package/node_modules/hono/dist/hono-base.js +378 -0
- package/node_modules/hono/dist/hono.js +21 -0
- package/node_modules/hono/dist/http-exception.js +35 -0
- package/node_modules/hono/dist/index.js +5 -0
- package/node_modules/hono/dist/jsx/base.js +331 -0
- package/node_modules/hono/dist/jsx/children.js +21 -0
- package/node_modules/hono/dist/jsx/components.js +178 -0
- package/node_modules/hono/dist/jsx/constants.js +15 -0
- package/node_modules/hono/dist/jsx/context.js +38 -0
- package/node_modules/hono/dist/jsx/dom/client.js +53 -0
- package/node_modules/hono/dist/jsx/dom/components.js +32 -0
- package/node_modules/hono/dist/jsx/dom/context.js +48 -0
- package/node_modules/hono/dist/jsx/dom/css.js +150 -0
- package/node_modules/hono/dist/jsx/dom/hooks/index.js +48 -0
- package/node_modules/hono/dist/jsx/dom/index.js +142 -0
- package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +374 -0
- package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +19 -0
- package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +8 -0
- package/node_modules/hono/dist/jsx/dom/render.js +604 -0
- package/node_modules/hono/dist/jsx/dom/server.js +33 -0
- package/node_modules/hono/dist/jsx/dom/utils.js +10 -0
- package/node_modules/hono/dist/jsx/hooks/index.js +328 -0
- package/node_modules/hono/dist/jsx/index.js +103 -0
- package/node_modules/hono/dist/jsx/intrinsic-element/common.js +24 -0
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +165 -0
- package/node_modules/hono/dist/jsx/intrinsic-elements.js +0 -0
- package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +18 -0
- package/node_modules/hono/dist/jsx/jsx-runtime.js +41 -0
- package/node_modules/hono/dist/jsx/streaming.js +153 -0
- package/node_modules/hono/dist/jsx/types.js +0 -0
- package/node_modules/hono/dist/jsx/utils.js +27 -0
- package/node_modules/hono/dist/middleware/basic-auth/index.js +66 -0
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +92 -0
- package/node_modules/hono/dist/middleware/body-limit/index.js +62 -0
- package/node_modules/hono/dist/middleware/cache/index.js +89 -0
- package/node_modules/hono/dist/middleware/combine/index.js +77 -0
- package/node_modules/hono/dist/middleware/compress/index.js +43 -0
- package/node_modules/hono/dist/middleware/context-storage/index.js +23 -0
- package/node_modules/hono/dist/middleware/cors/index.js +90 -0
- package/node_modules/hono/dist/middleware/csrf/index.js +55 -0
- package/node_modules/hono/dist/middleware/etag/digest.js +33 -0
- package/node_modules/hono/dist/middleware/etag/index.js +72 -0
- package/node_modules/hono/dist/middleware/ip-restriction/index.js +131 -0
- package/node_modules/hono/dist/middleware/jsx-renderer/index.js +58 -0
- package/node_modules/hono/dist/middleware/jwk/index.js +5 -0
- package/node_modules/hono/dist/middleware/jwk/jwk.js +112 -0
- package/node_modules/hono/dist/middleware/jwt/index.js +11 -0
- package/node_modules/hono/dist/middleware/jwt/jwt.js +114 -0
- package/node_modules/hono/dist/middleware/language/index.js +15 -0
- package/node_modules/hono/dist/middleware/language/language.js +190 -0
- package/node_modules/hono/dist/middleware/logger/index.js +44 -0
- package/node_modules/hono/dist/middleware/method-override/index.js +82 -0
- package/node_modules/hono/dist/middleware/powered-by/index.js +10 -0
- package/node_modules/hono/dist/middleware/pretty-json/index.js +15 -0
- package/node_modules/hono/dist/middleware/request-id/index.js +5 -0
- package/node_modules/hono/dist/middleware/request-id/request-id.js +21 -0
- package/node_modules/hono/dist/middleware/secure-headers/index.js +6 -0
- package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +0 -0
- package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +166 -0
- package/node_modules/hono/dist/middleware/serve-static/index.js +77 -0
- package/node_modules/hono/dist/middleware/serve-static/path.js +18 -0
- package/node_modules/hono/dist/middleware/timeout/index.js +25 -0
- package/node_modules/hono/dist/middleware/timing/index.js +9 -0
- package/node_modules/hono/dist/middleware/timing/timing.js +102 -0
- package/node_modules/hono/dist/middleware/trailing-slash/index.js +39 -0
- package/node_modules/hono/dist/preset/quick.js +16 -0
- package/node_modules/hono/dist/preset/tiny.js +12 -0
- package/node_modules/hono/dist/request/constants.js +5 -0
- package/node_modules/hono/dist/request.js +301 -0
- package/node_modules/hono/dist/router/linear-router/index.js +5 -0
- package/node_modules/hono/dist/router/linear-router/router.js +118 -0
- package/node_modules/hono/dist/router/pattern-router/index.js +5 -0
- package/node_modules/hono/dist/router/pattern-router/router.js +48 -0
- package/node_modules/hono/dist/router/reg-exp-router/index.js +9 -0
- package/node_modules/hono/dist/router/reg-exp-router/matcher.js +25 -0
- package/node_modules/hono/dist/router/reg-exp-router/node.js +111 -0
- package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +142 -0
- package/node_modules/hono/dist/router/reg-exp-router/router.js +190 -0
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +59 -0
- package/node_modules/hono/dist/router/smart-router/index.js +5 -0
- package/node_modules/hono/dist/router/smart-router/router.js +58 -0
- package/node_modules/hono/dist/router/trie-router/index.js +5 -0
- package/node_modules/hono/dist/router/trie-router/node.js +179 -0
- package/node_modules/hono/dist/router/trie-router/router.js +26 -0
- package/node_modules/hono/dist/router.js +14 -0
- package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +1 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +27 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +184 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +8 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +144 -0
- package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/bun/index.d.ts +10 -0
- package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +3 -0
- package/node_modules/hono/dist/types/adapter/bun/server.d.ts +12 -0
- package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +13 -0
- package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +39 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +21 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +33 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +4 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +16 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +5 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/deno/index.d.ts +8 -0
- package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +3 -0
- package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +13 -0
- package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +87 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +21 -0
- package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +5 -0
- package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +16 -0
- package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +28 -0
- package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +12 -0
- package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +6 -0
- package/node_modules/hono/dist/types/client/client.d.ts +4 -0
- package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +35 -0
- package/node_modules/hono/dist/types/client/index.d.ts +7 -0
- package/node_modules/hono/dist/types/client/types.d.ts +229 -0
- package/node_modules/hono/dist/types/client/utils.d.ts +18 -0
- package/node_modules/hono/dist/types/compose.d.ts +14 -0
- package/node_modules/hono/dist/types/context.d.ts +455 -0
- package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +30 -0
- package/node_modules/hono/dist/types/helper/accepts/index.d.ts +5 -0
- package/node_modules/hono/dist/types/helper/adapter/index.d.ts +12 -0
- package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +5 -0
- package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +36 -0
- package/node_modules/hono/dist/types/helper/cookie/index.d.ts +24 -0
- package/node_modules/hono/dist/types/helper/css/common.d.ts +59 -0
- package/node_modules/hono/dist/types/helper/css/index.d.ts +80 -0
- package/node_modules/hono/dist/types/helper/dev/index.d.ts +20 -0
- package/node_modules/hono/dist/types/helper/factory/index.d.ts +82 -0
- package/node_modules/hono/dist/types/helper/html/index.d.ts +8 -0
- package/node_modules/hono/dist/types/helper/proxy/index.d.ts +72 -0
- package/node_modules/hono/dist/types/helper/route/index.d.ts +75 -0
- package/node_modules/hono/dist/types/helper/ssg/index.d.ts +7 -0
- package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +44 -0
- package/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +27 -0
- package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +91 -0
- package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +16 -0
- package/node_modules/hono/dist/types/helper/streaming/index.d.ts +8 -0
- package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +13 -0
- package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +3 -0
- package/node_modules/hono/dist/types/helper/streaming/text.d.ts +3 -0
- package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +1 -0
- package/node_modules/hono/dist/types/helper/testing/index.d.ts +12 -0
- package/node_modules/hono/dist/types/helper/websocket/index.d.ts +69 -0
- package/node_modules/hono/dist/types/hono-base.d.ts +220 -0
- package/node_modules/hono/dist/types/hono.d.ts +19 -0
- package/node_modules/hono/dist/types/http-exception.d.ts +59 -0
- package/node_modules/hono/dist/types/index.d.ts +36 -0
- package/node_modules/hono/dist/types/jsx/base.d.ts +58 -0
- package/node_modules/hono/dist/types/jsx/children.d.ts +9 -0
- package/node_modules/hono/dist/types/jsx/components.d.ts +15 -0
- package/node_modules/hono/dist/types/jsx/constants.d.ts +6 -0
- package/node_modules/hono/dist/types/jsx/context.d.ts +12 -0
- package/node_modules/hono/dist/types/jsx/dom/client.d.ts +31 -0
- package/node_modules/hono/dist/types/jsx/dom/components.d.ts +10 -0
- package/node_modules/hono/dist/types/jsx/dom/context.d.ts +3 -0
- package/node_modules/hono/dist/types/jsx/dom/css.d.ts +83 -0
- package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +39 -0
- package/node_modules/hono/dist/types/jsx/dom/index.d.ts +88 -0
- package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +16 -0
- package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +8 -0
- package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +7 -0
- package/node_modules/hono/dist/types/jsx/dom/render.d.ts +73 -0
- package/node_modules/hono/dist/types/jsx/dom/server.d.ts +106 -0
- package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +1 -0
- package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +45 -0
- package/node_modules/hono/dist/types/jsx/index.d.ts +75 -0
- package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +6 -0
- package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +13 -0
- package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +722 -0
- package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +8 -0
- package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +12 -0
- package/node_modules/hono/dist/types/jsx/streaming.d.ts +36 -0
- package/node_modules/hono/dist/types/jsx/types.d.ts +35 -0
- package/node_modules/hono/dist/types/jsx/utils.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +75 -0
- package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +91 -0
- package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +45 -0
- package/node_modules/hono/dist/types/middleware/cache/index.d.ts +41 -0
- package/node_modules/hono/dist/types/middleware/combine/index.d.ts +85 -0
- package/node_modules/hono/dist/types/middleware/compress/index.d.ts +29 -0
- package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +40 -0
- package/node_modules/hono/dist/types/middleware/cors/index.d.ts +55 -0
- package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +78 -0
- package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +1 -0
- package/node_modules/hono/dist/types/middleware/etag/index.d.ts +42 -0
- package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +67 -0
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +77 -0
- package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +1 -0
- package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +54 -0
- package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +8 -0
- package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +67 -0
- package/node_modules/hono/dist/types/middleware/language/index.d.ts +7 -0
- package/node_modules/hono/dist/types/middleware/language/language.d.ts +102 -0
- package/node_modules/hono/dist/types/middleware/logger/index.d.ts +24 -0
- package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +48 -0
- package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +29 -0
- package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +42 -0
- package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +7 -0
- package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +37 -0
- package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +8 -0
- package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +14 -0
- package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +109 -0
- package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +31 -0
- package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +5 -0
- package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +31 -0
- package/node_modules/hono/dist/types/middleware/timing/index.d.ts +7 -0
- package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +129 -0
- package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +78 -0
- package/node_modules/hono/dist/types/package.json +3 -0
- package/node_modules/hono/dist/types/preset/quick.d.ts +10 -0
- package/node_modules/hono/dist/types/preset/tiny.d.ts +10 -0
- package/node_modules/hono/dist/types/request/constants.d.ts +1 -0
- package/node_modules/hono/dist/types/request.d.ts +311 -0
- package/node_modules/hono/dist/types/router/linear-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/linear-router/router.d.ts +7 -0
- package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +7 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +6 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +7 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +10 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +17 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +11 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +7 -0
- package/node_modules/hono/dist/types/router/smart-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/smart-router/router.d.ts +11 -0
- package/node_modules/hono/dist/types/router/trie-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/trie-router/node.d.ts +7 -0
- package/node_modules/hono/dist/types/router/trie-router/router.d.ts +8 -0
- package/node_modules/hono/dist/types/router.d.ts +97 -0
- package/node_modules/hono/dist/types/types.d.ts +573 -0
- package/node_modules/hono/dist/types/utils/accept.d.ts +6 -0
- package/node_modules/hono/dist/types/utils/basic-auth.d.ts +5 -0
- package/node_modules/hono/dist/types/utils/body.d.ts +79 -0
- package/node_modules/hono/dist/types/utils/buffer.d.ts +17 -0
- package/node_modules/hono/dist/types/utils/color.d.ts +21 -0
- package/node_modules/hono/dist/types/utils/compress.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/concurrent.d.ts +11 -0
- package/node_modules/hono/dist/types/utils/constants.d.ts +4 -0
- package/node_modules/hono/dist/types/utils/cookie.d.ts +40 -0
- package/node_modules/hono/dist/types/utils/crypto.d.ts +15 -0
- package/node_modules/hono/dist/types/utils/encode.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/filepath.d.ts +12 -0
- package/node_modules/hono/dist/types/utils/handler.d.ts +6 -0
- package/node_modules/hono/dist/types/utils/headers.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/html.d.ts +44 -0
- package/node_modules/hono/dist/types/utils/http-status.d.ts +32 -0
- package/node_modules/hono/dist/types/utils/ipaddr.d.ts +52 -0
- package/node_modules/hono/dist/types/utils/jwt/index.d.ts +18 -0
- package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +23 -0
- package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +12 -0
- package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +43 -0
- package/node_modules/hono/dist/types/utils/jwt/types.d.ts +86 -0
- package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +6 -0
- package/node_modules/hono/dist/types/utils/mime.d.ts +70 -0
- package/node_modules/hono/dist/types/utils/stream.d.ts +31 -0
- package/node_modules/hono/dist/types/utils/types.d.ts +74 -0
- package/node_modules/hono/dist/types/utils/url.d.ts +39 -0
- package/node_modules/hono/dist/types/validator/index.d.ts +7 -0
- package/node_modules/hono/dist/types/validator/utils.d.ts +29 -0
- package/node_modules/hono/dist/types/validator/validator.d.ts +16 -0
- package/node_modules/hono/dist/types.js +6 -0
- package/node_modules/hono/dist/utils/accept.js +223 -0
- package/node_modules/hono/dist/utils/basic-auth.js +23 -0
- package/node_modules/hono/dist/utils/body.js +75 -0
- package/node_modules/hono/dist/utils/buffer.js +77 -0
- package/node_modules/hono/dist/utils/color.js +25 -0
- package/node_modules/hono/dist/utils/compress.js +5 -0
- package/node_modules/hono/dist/utils/concurrent.js +39 -0
- package/node_modules/hono/dist/utils/constants.js +5 -0
- package/node_modules/hono/dist/utils/cookie.js +173 -0
- package/node_modules/hono/dist/utils/crypto.js +44 -0
- package/node_modules/hono/dist/utils/encode.js +29 -0
- package/node_modules/hono/dist/utils/filepath.js +35 -0
- package/node_modules/hono/dist/utils/handler.js +13 -0
- package/node_modules/hono/dist/utils/headers.js +0 -0
- package/node_modules/hono/dist/utils/html.js +123 -0
- package/node_modules/hono/dist/utils/http-status.js +0 -0
- package/node_modules/hono/dist/utils/ipaddr.js +106 -0
- package/node_modules/hono/dist/utils/jwt/index.js +6 -0
- package/node_modules/hono/dist/utils/jwt/jwa.js +20 -0
- package/node_modules/hono/dist/utils/jwt/jws.js +192 -0
- package/node_modules/hono/dist/utils/jwt/jwt.js +201 -0
- package/node_modules/hono/dist/utils/jwt/types.js +124 -0
- package/node_modules/hono/dist/utils/jwt/utf8.js +7 -0
- package/node_modules/hono/dist/utils/mime.js +84 -0
- package/node_modules/hono/dist/utils/stream.js +79 -0
- package/node_modules/hono/dist/utils/types.js +0 -0
- package/node_modules/hono/dist/utils/url.js +222 -0
- package/node_modules/hono/dist/validator/index.js +5 -0
- package/node_modules/hono/dist/validator/utils.js +0 -0
- package/node_modules/hono/dist/validator/validator.js +86 -0
- package/node_modules/hono/package.json +692 -0
- package/node_modules/http-errors/HISTORY.md +186 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +290 -0
- package/node_modules/http-errors/package.json +54 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/iconv-lite/types/encodings.d.ts +423 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ip-address/LICENSE +19 -0
- package/node_modules/ip-address/README.md +105 -0
- package/node_modules/ip-address/dist/address-error.d.ts +5 -0
- package/node_modules/ip-address/dist/address-error.d.ts.map +1 -0
- package/node_modules/ip-address/dist/address-error.js +12 -0
- package/node_modules/ip-address/dist/address-error.js.map +1 -0
- package/node_modules/ip-address/dist/common.d.ts +15 -0
- package/node_modules/ip-address/dist/common.d.ts.map +1 -0
- package/node_modules/ip-address/dist/common.js +46 -0
- package/node_modules/ip-address/dist/common.js.map +1 -0
- package/node_modules/ip-address/dist/ip-address.d.ts +8 -0
- package/node_modules/ip-address/dist/ip-address.d.ts.map +1 -0
- package/node_modules/ip-address/dist/ip-address.js +35 -0
- package/node_modules/ip-address/dist/ip-address.js.map +1 -0
- package/node_modules/ip-address/dist/ipv4.d.ts +209 -0
- package/node_modules/ip-address/dist/ipv4.d.ts.map +1 -0
- package/node_modules/ip-address/dist/ipv4.js +360 -0
- package/node_modules/ip-address/dist/ipv4.js.map +1 -0
- package/node_modules/ip-address/dist/ipv6.d.ts +428 -0
- package/node_modules/ip-address/dist/ipv6.d.ts.map +1 -0
- package/node_modules/ip-address/dist/ipv6.js +1003 -0
- package/node_modules/ip-address/dist/ipv6.js.map +1 -0
- package/node_modules/ip-address/dist/v4/constants.d.ts +5 -0
- package/node_modules/ip-address/dist/v4/constants.d.ts.map +1 -0
- package/node_modules/ip-address/dist/v4/constants.js +8 -0
- package/node_modules/ip-address/dist/v4/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/constants.d.ts +45 -0
- package/node_modules/ip-address/dist/v6/constants.d.ts.map +1 -0
- package/node_modules/ip-address/dist/v6/constants.js +76 -0
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/helpers.d.ts +18 -0
- package/node_modules/ip-address/dist/v6/helpers.d.ts.map +1 -0
- package/node_modules/ip-address/dist/v6/helpers.js +45 -0
- package/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +6 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +1 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
- package/node_modules/ip-address/package.json +78 -0
- package/node_modules/ip-address/src/address-error.ts +11 -0
- package/node_modules/ip-address/src/common.ts +55 -0
- package/node_modules/ip-address/src/ip-address.ts +7 -0
- package/node_modules/ip-address/src/ipv4.ts +394 -0
- package/node_modules/ip-address/src/ipv6.ts +1212 -0
- package/node_modules/ip-address/src/v4/constants.ts +7 -0
- package/node_modules/ip-address/src/v6/constants.ts +79 -0
- package/node_modules/ip-address/src/v6/helpers.ts +48 -0
- package/node_modules/ip-address/src/v6/regular-expressions.ts +94 -0
- package/node_modules/ipaddr.js/LICENSE +19 -0
- package/node_modules/ipaddr.js/README.md +233 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/node_modules/ipaddr.js/package.json +35 -0
- package/node_modules/is-promise/LICENSE +19 -0
- package/node_modules/is-promise/index.d.ts +2 -0
- package/node_modules/is-promise/index.js +6 -0
- package/node_modules/is-promise/index.mjs +3 -0
- package/node_modules/is-promise/package.json +30 -0
- package/node_modules/is-promise/readme.md +33 -0
- package/node_modules/jose/LICENSE.md +21 -0
- package/node_modules/jose/README.md +153 -0
- package/node_modules/jose/dist/types/index.d.ts +55 -0
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +31 -0
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +65 -0
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +31 -0
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +83 -0
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +38 -0
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +74 -0
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +17 -0
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +32 -0
- package/node_modules/jose/dist/types/jwks/local.d.ts +29 -0
- package/node_modules/jose/dist/types/jwks/remote.d.ts +237 -0
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +36 -0
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +33 -0
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +42 -0
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +33 -0
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +53 -0
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +41 -0
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +35 -0
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +91 -0
- package/node_modules/jose/dist/types/jwt/sign.d.ts +43 -0
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +43 -0
- package/node_modules/jose/dist/types/jwt/verify.d.ts +37 -0
- package/node_modules/jose/dist/types/key/export.d.ts +33 -0
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +47 -0
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +35 -0
- package/node_modules/jose/dist/types/key/import.d.ts +83 -0
- package/node_modules/jose/dist/types/types.d.ts +852 -0
- package/node_modules/jose/dist/types/util/base64url.d.ts +9 -0
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +18 -0
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +17 -0
- package/node_modules/jose/dist/types/util/errors.d.ts +213 -0
- package/node_modules/jose/dist/webapi/index.js +32 -0
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +159 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +167 -0
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +182 -0
- package/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
- package/node_modules/jose/dist/webapi/jwks/local.js +119 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +89 -0
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +110 -0
- package/node_modules/jose/dist/webapi/jws/general/sign.js +70 -0
- package/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +101 -0
- package/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
- package/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/node_modules/jose/dist/webapi/key/export.js +11 -0
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
- package/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
- package/node_modules/jose/dist/webapi/key/import.js +57 -0
- package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +15 -0
- package/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
- package/node_modules/jose/dist/webapi/lib/asn1.js +243 -0
- package/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +43 -0
- package/node_modules/jose/dist/webapi/lib/check_key_type.js +122 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +217 -0
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +136 -0
- package/node_modules/jose/dist/webapi/lib/deflate.js +44 -0
- package/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
- package/node_modules/jose/dist/webapi/lib/helpers.js +19 -0
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +27 -0
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +107 -0
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +238 -0
- package/node_modules/jose/dist/webapi/lib/key_management.js +186 -0
- package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
- package/node_modules/jose/dist/webapi/lib/normalize_key.js +166 -0
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +39 -0
- package/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
- package/node_modules/jose/dist/webapi/lib/signing.js +68 -0
- package/node_modules/jose/dist/webapi/lib/type_checks.js +40 -0
- package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
- package/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +30 -0
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
- package/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/node_modules/jose/package.json +200 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-typed/LICENSE.md +57 -0
- package/node_modules/json-schema-typed/README.md +108 -0
- package/node_modules/json-schema-typed/draft_07.d.ts +882 -0
- package/node_modules/json-schema-typed/draft_07.js +328 -0
- package/node_modules/json-schema-typed/draft_2019_09.d.ts +1247 -0
- package/node_modules/json-schema-typed/draft_2019_09.js +349 -0
- package/node_modules/json-schema-typed/draft_2020_12.d.ts +1239 -0
- package/node_modules/json-schema-typed/draft_2020_12.js +352 -0
- package/node_modules/json-schema-typed/package.json +44 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/media-typer/HISTORY.md +50 -0
- package/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/media-typer/README.md +93 -0
- package/node_modules/media-typer/index.js +143 -0
- package/node_modules/media-typer/package.json +33 -0
- package/node_modules/merge-descriptors/index.d.ts +11 -0
- package/node_modules/merge-descriptors/index.js +26 -0
- package/node_modules/merge-descriptors/license +11 -0
- package/node_modules/merge-descriptors/package.json +50 -0
- package/node_modules/merge-descriptors/readme.md +55 -0
- package/node_modules/mime-db/HISTORY.md +541 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +109 -0
- package/node_modules/mime-db/db.json +9342 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +56 -0
- package/node_modules/mime-types/HISTORY.md +428 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +126 -0
- package/node_modules/mime-types/index.js +211 -0
- package/node_modules/mime-types/mimeScore.js +57 -0
- package/node_modules/mime-types/package.json +49 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/negotiator/HISTORY.md +114 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/README.md +212 -0
- package/node_modules/negotiator/index.js +83 -0
- package/node_modules/negotiator/lib/charset.js +169 -0
- package/node_modules/negotiator/lib/encoding.js +205 -0
- package/node_modules/negotiator/lib/language.js +179 -0
- package/node_modules/negotiator/lib/mediaType.js +294 -0
- package/node_modules/negotiator/package.json +43 -0
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +42 -0
- package/node_modules/object-assign/readme.md +61 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/object-inspect/index.js +544 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +105 -0
- package/node_modules/object-inspect/readme.markdown +84 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/on-finished/HISTORY.md +98 -0
- package/node_modules/on-finished/LICENSE +23 -0
- package/node_modules/on-finished/README.md +162 -0
- package/node_modules/on-finished/index.js +234 -0
- package/node_modules/on-finished/package.json +39 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/parseurl/HISTORY.md +58 -0
- package/node_modules/parseurl/LICENSE +24 -0
- package/node_modules/parseurl/README.md +133 -0
- package/node_modules/parseurl/index.js +158 -0
- package/node_modules/parseurl/package.json +40 -0
- package/node_modules/path-key/index.d.ts +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/license +9 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +61 -0
- package/node_modules/path-to-regexp/LICENSE +21 -0
- package/node_modules/path-to-regexp/Readme.md +224 -0
- package/node_modules/path-to-regexp/dist/index.d.ts +147 -0
- package/node_modules/path-to-regexp/dist/index.js +431 -0
- package/node_modules/path-to-regexp/dist/index.js.map +1 -0
- package/node_modules/path-to-regexp/package.json +64 -0
- package/node_modules/picocolors/LICENSE +15 -0
- package/node_modules/picocolors/README.md +21 -0
- package/node_modules/picocolors/package.json +25 -0
- package/node_modules/picocolors/picocolors.browser.js +4 -0
- package/node_modules/picocolors/picocolors.d.ts +5 -0
- package/node_modules/picocolors/picocolors.js +75 -0
- package/node_modules/picocolors/types.d.ts +51 -0
- package/node_modules/pkce-challenge/CHANGELOG.md +114 -0
- package/node_modules/pkce-challenge/LICENSE +21 -0
- package/node_modules/pkce-challenge/README.md +55 -0
- package/node_modules/pkce-challenge/dist/index.browser.d.ts +19 -0
- package/node_modules/pkce-challenge/dist/index.browser.js +75 -0
- package/node_modules/pkce-challenge/dist/index.node.cjs +83 -0
- package/node_modules/pkce-challenge/dist/index.node.d.cts +19 -0
- package/node_modules/pkce-challenge/dist/index.node.d.ts +19 -0
- package/node_modules/pkce-challenge/dist/index.node.js +78 -0
- package/node_modules/pkce-challenge/package.json +59 -0
- package/node_modules/proxy-addr/HISTORY.md +161 -0
- package/node_modules/proxy-addr/LICENSE +22 -0
- package/node_modules/proxy-addr/README.md +139 -0
- package/node_modules/proxy-addr/index.js +327 -0
- package/node_modules/proxy-addr/package.json +47 -0
- package/node_modules/qs/.editorconfig +46 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.github/SECURITY.md +11 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +812 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +758 -0
- package/node_modules/qs/dist/qs.js +141 -0
- package/node_modules/qs/eslint.config.mjs +56 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +373 -0
- package/node_modules/qs/lib/stringify.js +356 -0
- package/node_modules/qs/lib/utils.js +342 -0
- package/node_modules/qs/package.json +94 -0
- package/node_modules/range-parser/HISTORY.md +56 -0
- package/node_modules/range-parser/LICENSE +23 -0
- package/node_modules/range-parser/README.md +84 -0
- package/node_modules/range-parser/index.js +162 -0
- package/node_modules/range-parser/package.json +44 -0
- package/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/raw-body/README.md +223 -0
- package/node_modules/raw-body/index.d.ts +85 -0
- package/node_modules/raw-body/index.js +336 -0
- package/node_modules/raw-body/package.json +46 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/router/HISTORY.md +228 -0
- package/node_modules/router/LICENSE +23 -0
- package/node_modules/router/README.md +416 -0
- package/node_modules/router/index.js +748 -0
- package/node_modules/router/lib/layer.js +247 -0
- package/node_modules/router/lib/route.js +242 -0
- package/node_modules/router/package.json +44 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/send/LICENSE +23 -0
- package/node_modules/send/README.md +317 -0
- package/node_modules/send/index.js +997 -0
- package/node_modules/send/package.json +63 -0
- package/node_modules/serve-static/LICENSE +25 -0
- package/node_modules/serve-static/README.md +253 -0
- package/node_modules/serve-static/index.js +208 -0
- package/node_modules/serve-static/package.json +44 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +9 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/shebang-command/readme.md +34 -0
- package/node_modules/shebang-regex/index.d.ts +22 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +9 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/shebang-regex/readme.md +33 -0
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +12 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +110 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +61 -0
- package/node_modules/side-channel/index.d.ts +14 -0
- package/node_modules/side-channel/index.js +43 -0
- package/node_modules/side-channel/package.json +85 -0
- package/node_modules/side-channel/tsconfig.json +9 -0
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/CHANGELOG.md +36 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +111 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/sisteransi/license +21 -0
- package/node_modules/sisteransi/package.json +34 -0
- package/node_modules/sisteransi/readme.md +113 -0
- package/node_modules/sisteransi/src/index.js +58 -0
- package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/node_modules/statuses/HISTORY.md +87 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +139 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/type-is/HISTORY.md +292 -0
- package/node_modules/type-is/LICENSE +23 -0
- package/node_modules/type-is/README.md +198 -0
- package/node_modules/type-is/index.js +250 -0
- package/node_modules/type-is/package.json +47 -0
- package/node_modules/unpipe/HISTORY.md +4 -0
- package/node_modules/unpipe/LICENSE +22 -0
- package/node_modules/unpipe/README.md +43 -0
- package/node_modules/unpipe/index.js +69 -0
- package/node_modules/unpipe/package.json +27 -0
- package/node_modules/vary/HISTORY.md +39 -0
- package/node_modules/vary/LICENSE +22 -0
- package/node_modules/vary/README.md +101 -0
- package/node_modules/vary/index.js +149 -0
- package/node_modules/vary/package.json +43 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/ws/lib/receiver.js +706 -0
- package/node_modules/ws/lib/sender.js +602 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +554 -0
- package/node_modules/ws/lib/websocket.js +1393 -0
- package/node_modules/ws/package.json +70 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +172 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +217 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +223 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +114 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +717 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +967 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +64 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +24 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/yaml/dist/compose/composer.js +222 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +43 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +719 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +972 -0
- package/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +6 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +6 -0
- package/node_modules/zod/package.json +135 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/zod/src/v4/classic/external.ts +51 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +643 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2409 -0
- package/node_modules/zod/src/v4/core/api.ts +1798 -0
- package/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +138 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +448 -0
- package/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +667 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/zod/src/v4/core/regexes.ts +183 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +4538 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +613 -0
- package/node_modules/zod/src/v4/core/util.ts +966 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/zod/src/v4/locales/en.ts +119 -0
- package/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/zod/src/v4/locales/fr.ts +116 -0
- package/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/zod/src/v4/locales/index.ts +49 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/zod/src/v4/locales/uz.ts +116 -0
- package/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1916 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +6 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/zod/v4/classic/external.d.cts +15 -0
- package/node_modules/zod/v4/classic/external.d.ts +15 -0
- package/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +610 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +584 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/package.json +6 -0
- package/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1272 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +739 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +739 -0
- package/node_modules/zod/v4/classic/schemas.js +1157 -0
- package/node_modules/zod/v4/core/api.cjs +1222 -0
- package/node_modules/zod/v4/core/api.d.cts +304 -0
- package/node_modules/zod/v4/core/api.d.ts +304 -0
- package/node_modules/zod/v4/core/api.js +1082 -0
- package/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/zod/v4/core/core.cjs +83 -0
- package/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/zod/v4/core/core.js +76 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +213 -0
- package/node_modules/zod/v4/core/errors.d.cts +220 -0
- package/node_modules/zod/v4/core/errors.d.ts +220 -0
- package/node_modules/zod/v4/core/errors.js +182 -0
- package/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +648 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +605 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/package.json +6 -0
- package/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/zod/v4/core/regexes.cjs +166 -0
- package/node_modules/zod/v4/core/regexes.d.cts +79 -0
- package/node_modules/zod/v4/core/regexes.d.ts +79 -0
- package/node_modules/zod/v4/core/regexes.js +133 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2124 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1146 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1146 -0
- package/node_modules/zod/v4/core/schemas.js +2093 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +446 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.js +437 -0
- package/node_modules/zod/v4/core/util.cjs +710 -0
- package/node_modules/zod/v4/core/util.d.cts +199 -0
- package/node_modules/zod/v4/core/util.d.ts +199 -0
- package/node_modules/zod/v4/core/util.js +651 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/zod/v4/locales/en.cjs +136 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +109 -0
- package/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/zod/v4/locales/fr.cjs +135 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +108 -0
- package/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/zod/v4/locales/index.cjs +104 -0
- package/node_modules/zod/v4/locales/index.d.cts +49 -0
- package/node_modules/zod/v4/locales/index.d.ts +49 -0
- package/node_modules/zod/v4/locales/index.js +49 -0
- package/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/zod/v4/locales/package.json +6 -0
- package/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/zod/v4/locales/uz.cjs +136 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +109 -0
- package/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/zod/v4/mini/external.d.cts +12 -0
- package/node_modules/zod/v4/mini/external.d.ts +12 -0
- package/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +6 -0
- package/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1046 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +427 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +427 -0
- package/node_modules/zod/v4/mini/schemas.js +925 -0
- package/node_modules/zod/v4/package.json +6 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +6 -0
- package/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
- package/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
- package/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
- package/node_modules/zod-to-json-schema/LICENSE +15 -0
- package/node_modules/zod-to-json-schema/README.md +390 -0
- package/node_modules/zod-to-json-schema/changelog.md +83 -0
- package/node_modules/zod-to-json-schema/contributing.md +9 -0
- package/node_modules/zod-to-json-schema/createIndex.ts +32 -0
- package/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
- package/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
- package/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
- package/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
- package/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
- package/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
- package/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
- package/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
- package/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
- package/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
- package/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
- package/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
- package/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
- package/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
- package/node_modules/zod-to-json-schema/dist/types/Options.d.ts +37 -0
- package/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +17 -0
- package/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +15 -0
- package/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
- package/node_modules/zod-to-json-schema/dist/types/index.d.ts +40 -0
- package/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +34 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +12 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +14 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +3 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +3 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +15 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +8 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +9 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +15 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +10 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +10 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +3 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +73 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +23 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +10 -0
- package/node_modules/zod-to-json-schema/package.json +85 -0
- package/node_modules/zod-to-json-schema/postcjs.ts +3 -0
- package/node_modules/zod-to-json-schema/postesm.ts +3 -0
- package/package.json +65 -0
|
@@ -0,0 +1,3766 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import os from "node:os";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { buildGdhStatusResult, createGsdSnapshot, getSupportedAgentAdaptersStatus, installSupportedAgentAdapters, } from "@gdh/adapters";
|
|
5
|
+
import { getManagedLspStatus, hasCompleteOnboardingSurface, inspectCacheState, pruneCacheState, readProjectConfig, readWorktreeState, resolveAuthoringStatus, resolveTargetGodotDocsVersion, runAuthoringCheck, runImportRefresh, runTargetPrepare, runWarmup, } from "@gdh/authoring";
|
|
6
|
+
import { definePackageBoundary, GDH_AUTHORING_DOGFOOD_VERSION, GDH_AUTHORING_SLICE_REPORT_VERSION, GDH_PRODUCT_NAME, resolveCurrentGdhInstall, resolveGdhProductMetadata, } from "@gdh/core";
|
|
7
|
+
import { fetchOfficialGodotDoc, getGuidanceStatus, resolveGuidanceQuery, searchOfficialGodotDocs, } from "@gdh/docs";
|
|
8
|
+
import { createMcpManifest, invokeMcpTool, serveMcpOverStdio } from "@gdh/mcp";
|
|
9
|
+
import { inspectAuthoringEffectiveness, inspectAuthoringSessions, inspectGuidanceAudit, recordAuthoringSessionEvent, } from "@gdh/observability";
|
|
10
|
+
import { checkRuntimeRecipe, inspectRuntimeBridgeSurface, installRuntimeBridgeSurface, listRuntimeRecipes, removeRuntimeBridgeSurface, repairRuntimeBridgeSurface, runRuntimeRecipe, showRuntimeRecipe, } from "@gdh/runtime";
|
|
11
|
+
import { applyRepairableOnboardingWrites, onboardGodotProject, scanGodotProjectInventory, } from "@gdh/scan";
|
|
12
|
+
import { evaluateDonePolicy, exerciseRuntimeCorpusEntry, inspectRuntimeCorpusStatus, inspectRuntimeVerificationBundleState, inspectRuntimeVerificationReadiness, listRuntimeScenarios, materializeRuntimeCorpusEntry, recommendValidationForChange, recordRuntimeCorpusValidation, runRuntimeVerificationScenario, showRuntimeScenario, } from "@gdh/verify";
|
|
13
|
+
import { migrateProjectLifecycleSurface } from "./migrate.js";
|
|
14
|
+
import { presentPublicRuntimeTerms } from "./public-terms.js";
|
|
15
|
+
import { executeSetupCommand, isSetupCanceledError, renderSetupIntro, renderSetupOutro, renderSetupSummary, } from "./setup.js";
|
|
16
|
+
export const cliPackage = definePackageBoundary({
|
|
17
|
+
name: "@gdh/cli",
|
|
18
|
+
layer: "surface",
|
|
19
|
+
responsibility: "Primary automation surface and top-level composition root for the gdh command.",
|
|
20
|
+
allowedInternalDependencies: [
|
|
21
|
+
"@gdh/adapters",
|
|
22
|
+
"@gdh/core",
|
|
23
|
+
"@gdh/authoring",
|
|
24
|
+
"@gdh/docs",
|
|
25
|
+
"@gdh/mcp",
|
|
26
|
+
"@gdh/observability",
|
|
27
|
+
"@gdh/runtime",
|
|
28
|
+
"@gdh/scan",
|
|
29
|
+
"@gdh/verify",
|
|
30
|
+
],
|
|
31
|
+
});
|
|
32
|
+
export async function runCli(args, io = { stdout: process.stdout, stderr: process.stderr }) {
|
|
33
|
+
const [command, ...rest] = args;
|
|
34
|
+
if (!command || command === "--help" || command === "help") {
|
|
35
|
+
io.stdout.write(renderHelp());
|
|
36
|
+
return 0;
|
|
37
|
+
}
|
|
38
|
+
if (command === "--version" || command === "-v") {
|
|
39
|
+
io.stdout.write(`${resolveGdhProductMetadata().version}\n`);
|
|
40
|
+
return 0;
|
|
41
|
+
}
|
|
42
|
+
if (command === "version") {
|
|
43
|
+
return runVersionCommand(rest, io);
|
|
44
|
+
}
|
|
45
|
+
if (command === "setup") {
|
|
46
|
+
return runSetupCommand(rest, io);
|
|
47
|
+
}
|
|
48
|
+
if (command === "scan") {
|
|
49
|
+
return runScanCommand(rest, io);
|
|
50
|
+
}
|
|
51
|
+
if (command === "status") {
|
|
52
|
+
return runStatusCommand(rest, io);
|
|
53
|
+
}
|
|
54
|
+
if (command === "adapters") {
|
|
55
|
+
return runAdaptersCommand(rest, io);
|
|
56
|
+
}
|
|
57
|
+
if (command === "authoring") {
|
|
58
|
+
return runAuthoringCommand(rest, io);
|
|
59
|
+
}
|
|
60
|
+
if (command === "lsp") {
|
|
61
|
+
return runLspCommand(rest, io);
|
|
62
|
+
}
|
|
63
|
+
if (command === "warmup") {
|
|
64
|
+
return runWarmupCommand(rest, io);
|
|
65
|
+
}
|
|
66
|
+
if (command === "target") {
|
|
67
|
+
return runTargetCommand(rest, io);
|
|
68
|
+
}
|
|
69
|
+
if (command === "imports") {
|
|
70
|
+
return runImportsCommand(rest, io);
|
|
71
|
+
}
|
|
72
|
+
if (command === "run-config" || command === "recipe") {
|
|
73
|
+
return runRecipeCommand(rest, io);
|
|
74
|
+
}
|
|
75
|
+
if (command === "bridge") {
|
|
76
|
+
return runBridgeCommand(rest, io);
|
|
77
|
+
}
|
|
78
|
+
if (command === "verification-scenario" || command === "scenario") {
|
|
79
|
+
return runScenarioCommand(rest, io);
|
|
80
|
+
}
|
|
81
|
+
if (command === "guidance") {
|
|
82
|
+
return runGuidanceCommand(rest, io);
|
|
83
|
+
}
|
|
84
|
+
if (command === "docs") {
|
|
85
|
+
return runDocsCommand(rest, io);
|
|
86
|
+
}
|
|
87
|
+
if (command === "observability") {
|
|
88
|
+
return runObservabilityCommand(rest, io);
|
|
89
|
+
}
|
|
90
|
+
if (command === "dogfood") {
|
|
91
|
+
return runDogfoodCommand(rest, io);
|
|
92
|
+
}
|
|
93
|
+
if (command === "doctor") {
|
|
94
|
+
return runDoctorCommand(rest, io);
|
|
95
|
+
}
|
|
96
|
+
if (command === "mcp") {
|
|
97
|
+
return runMcpCommand(rest, io);
|
|
98
|
+
}
|
|
99
|
+
if (command === "verify") {
|
|
100
|
+
return runVerifyCommand(rest, io);
|
|
101
|
+
}
|
|
102
|
+
if (command === "migrate") {
|
|
103
|
+
return runMigrateCommand(rest, io);
|
|
104
|
+
}
|
|
105
|
+
if (command === "cache") {
|
|
106
|
+
return runCacheCommand(rest, io);
|
|
107
|
+
}
|
|
108
|
+
if (command === "onboard") {
|
|
109
|
+
return runOnboardCommand(rest, io);
|
|
110
|
+
}
|
|
111
|
+
io.stderr.write(`Unknown command: ${command}\n\n${renderHelp()}`);
|
|
112
|
+
return 1;
|
|
113
|
+
}
|
|
114
|
+
function writeJsonResult(io, value, options = {}) {
|
|
115
|
+
const output = options.presentRuntimeTerms ? presentPublicRuntimeTerms(value) : value;
|
|
116
|
+
io.stdout.write(`${JSON.stringify(output, null, 2)}\n`);
|
|
117
|
+
}
|
|
118
|
+
async function runScanCommand(args, io) {
|
|
119
|
+
if (args.includes("--help")) {
|
|
120
|
+
io.stdout.write([
|
|
121
|
+
`Usage: gdh scan [target]`,
|
|
122
|
+
"Usage: gdh scan --target <path>",
|
|
123
|
+
"",
|
|
124
|
+
"Scan a filesystem target for Godot project roots and print a machine-generated inventory as JSON.",
|
|
125
|
+
].join("\n") + "\n");
|
|
126
|
+
return 0;
|
|
127
|
+
}
|
|
128
|
+
const parsedTarget = parseSingleTargetPathArg(args, {
|
|
129
|
+
usage: "Usage: gdh scan [target]\nUsage: gdh scan --target <path>\n",
|
|
130
|
+
allowTargetOption: true,
|
|
131
|
+
});
|
|
132
|
+
if (parsedTarget.error !== null) {
|
|
133
|
+
io.stderr.write(parsedTarget.error);
|
|
134
|
+
return 1;
|
|
135
|
+
}
|
|
136
|
+
const targetPath = parsedTarget.targetPath;
|
|
137
|
+
try {
|
|
138
|
+
const inventory = await scanGodotProjectInventory(targetPath);
|
|
139
|
+
io.stdout.write(`${JSON.stringify(inventory, null, 2)}\n`);
|
|
140
|
+
return 0;
|
|
141
|
+
}
|
|
142
|
+
catch (error) {
|
|
143
|
+
io.stderr.write(`Failed to scan target "${targetPath}": ${formatCliError(error)}\n`);
|
|
144
|
+
return 1;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
async function runSetupCommand(args, io) {
|
|
148
|
+
if (args.includes("--help")) {
|
|
149
|
+
io.stdout.write([
|
|
150
|
+
"Usage: gdh setup [target] [--yes] [--project <relative-path>] [--agent <name>] [--all-agents] [--integration-root <path>]",
|
|
151
|
+
"",
|
|
152
|
+
"Run the interactive GDH setup wizard for the current repository or target path.",
|
|
153
|
+
"--yes skips prompts and uses detected defaults unless you override them with --project, --agent, or --all-agents.",
|
|
154
|
+
"--project selects one detected Godot project relative to the setup root when many are present.",
|
|
155
|
+
"--all-agents enables every supported agent available on this machine.",
|
|
156
|
+
"Supported agents: codex, claude, cursor",
|
|
157
|
+
].join("\n") + "\n");
|
|
158
|
+
return 0;
|
|
159
|
+
}
|
|
160
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
161
|
+
usage: "Usage: gdh setup [target] [--yes] [--project <relative-path>] [--agent <name>] [--all-agents] [--integration-root <path>]\n",
|
|
162
|
+
optionsWithValues: ["--agent", "--project", "--integration-root"],
|
|
163
|
+
booleanOptions: ["--yes", "--all-agents"],
|
|
164
|
+
});
|
|
165
|
+
if (unsupportedOptionsError !== null) {
|
|
166
|
+
io.stderr.write(unsupportedOptionsError);
|
|
167
|
+
return 1;
|
|
168
|
+
}
|
|
169
|
+
const yes = args.includes("--yes");
|
|
170
|
+
const allAgents = args.includes("--all-agents");
|
|
171
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--agent", "--project", "--integration-root"]));
|
|
172
|
+
if (positionalArgs.length > 1) {
|
|
173
|
+
io.stderr.write("Usage error: gdh setup accepts at most one positional target path.\n");
|
|
174
|
+
return 1;
|
|
175
|
+
}
|
|
176
|
+
const requestedAgents = collectAdapterNames(args);
|
|
177
|
+
if (requestedAgents === null) {
|
|
178
|
+
io.stderr.write("Usage error: --agent must be one of codex, claude, or cursor.\n");
|
|
179
|
+
return 1;
|
|
180
|
+
}
|
|
181
|
+
if (allAgents && requestedAgents.length > 0) {
|
|
182
|
+
io.stderr.write("Usage error: choose either --all-agents or one or more --agent values.\n");
|
|
183
|
+
return 1;
|
|
184
|
+
}
|
|
185
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
186
|
+
const explicitTargetPath = positionalArgs.length === 1;
|
|
187
|
+
const selectedProjectRelativePath = readSingleOptionValue(args, "--project");
|
|
188
|
+
const integrationRootPath = readSingleOptionValue(args, "--integration-root");
|
|
189
|
+
const commandStartedAtMs = Date.now();
|
|
190
|
+
const interactive = !yes &&
|
|
191
|
+
io.stdout === process.stdout &&
|
|
192
|
+
io.stderr === process.stderr &&
|
|
193
|
+
process.stdin.isTTY === true &&
|
|
194
|
+
process.stdout.isTTY === true;
|
|
195
|
+
if (!interactive && !yes) {
|
|
196
|
+
io.stderr.write("GDH setup needs an interactive terminal. Re-run `gdh setup` in a TTY or use `gdh setup --yes` with explicit defaults.\n");
|
|
197
|
+
return 1;
|
|
198
|
+
}
|
|
199
|
+
try {
|
|
200
|
+
if (interactive) {
|
|
201
|
+
renderSetupIntro();
|
|
202
|
+
}
|
|
203
|
+
const result = await executeSetupCommand({
|
|
204
|
+
targetPath,
|
|
205
|
+
explicitTargetPath,
|
|
206
|
+
yes,
|
|
207
|
+
requestedAgents,
|
|
208
|
+
allAgents,
|
|
209
|
+
selectedProjectRelativePath,
|
|
210
|
+
integrationRootPath,
|
|
211
|
+
}, { interactive });
|
|
212
|
+
await recordSessionEvent(result.scanRootPath, {
|
|
213
|
+
commandStartedAtMs,
|
|
214
|
+
kind: "onboard",
|
|
215
|
+
command: "gdh setup",
|
|
216
|
+
state: "succeeded",
|
|
217
|
+
summary: result.summary,
|
|
218
|
+
producedArtifacts: [
|
|
219
|
+
...result.onboarding.writes.map((entry) => entry.relativePath),
|
|
220
|
+
...result.repoAdapterInstall.actions
|
|
221
|
+
.map((action) => action.relativePath)
|
|
222
|
+
.filter((entry) => entry !== null),
|
|
223
|
+
...(result.codexUserInstall?.actions
|
|
224
|
+
.map((action) => action.relativePath)
|
|
225
|
+
.filter((entry) => entry !== null) ?? []),
|
|
226
|
+
...result.bridgeInstall.actions.map((action) => action.relativePath),
|
|
227
|
+
],
|
|
228
|
+
});
|
|
229
|
+
if (interactive) {
|
|
230
|
+
renderSetupOutro(result);
|
|
231
|
+
return 0;
|
|
232
|
+
}
|
|
233
|
+
io.stdout.write(`${renderSetupSummary(result)}\n`);
|
|
234
|
+
return 0;
|
|
235
|
+
}
|
|
236
|
+
catch (error) {
|
|
237
|
+
if (isSetupCanceledError(error)) {
|
|
238
|
+
await recordSessionEvent(targetPath, {
|
|
239
|
+
commandStartedAtMs,
|
|
240
|
+
kind: "onboard",
|
|
241
|
+
command: "gdh setup",
|
|
242
|
+
state: "blocked",
|
|
243
|
+
summary: "GDH setup was canceled before applying changes.",
|
|
244
|
+
});
|
|
245
|
+
return 1;
|
|
246
|
+
}
|
|
247
|
+
await recordSessionEvent(targetPath, {
|
|
248
|
+
commandStartedAtMs,
|
|
249
|
+
kind: "onboard",
|
|
250
|
+
command: "gdh setup",
|
|
251
|
+
state: "failed",
|
|
252
|
+
summary: "GDH setup failed before completing the repository handoff.",
|
|
253
|
+
errorMessage: formatCliError(error),
|
|
254
|
+
});
|
|
255
|
+
io.stderr.write(`Failed to complete GDH setup for "${targetPath}": ${formatCliError(error)}\n`);
|
|
256
|
+
return 1;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
async function runOnboardCommand(args, io) {
|
|
260
|
+
if (args.includes("--help")) {
|
|
261
|
+
io.stdout.write([
|
|
262
|
+
"Usage: gdh onboard [target] [--dry-run]",
|
|
263
|
+
"",
|
|
264
|
+
"Generate the initial GDH project surface from scan evidence and print the onboarding result as JSON.",
|
|
265
|
+
].join("\n") + "\n");
|
|
266
|
+
return 0;
|
|
267
|
+
}
|
|
268
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
269
|
+
usage: "Usage: gdh onboard [target] [--dry-run]\n",
|
|
270
|
+
booleanOptions: ["--dry-run"],
|
|
271
|
+
});
|
|
272
|
+
if (unsupportedOptionsError !== null) {
|
|
273
|
+
io.stderr.write(unsupportedOptionsError);
|
|
274
|
+
return 1;
|
|
275
|
+
}
|
|
276
|
+
const dryRun = args.includes("--dry-run");
|
|
277
|
+
const positionalArgs = extractGuidanceResolvePositionalArgs(args);
|
|
278
|
+
if (positionalArgs.length > 1) {
|
|
279
|
+
io.stderr.write("Usage error: gdh onboard accepts at most one positional target path.\n");
|
|
280
|
+
return 1;
|
|
281
|
+
}
|
|
282
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
283
|
+
const commandStartedAtMs = Date.now();
|
|
284
|
+
try {
|
|
285
|
+
const result = await onboardGodotProject(targetPath, { dryRun });
|
|
286
|
+
const adapterInstall = result.status === "ready"
|
|
287
|
+
? await installSupportedAgentAdapters(targetPath, {
|
|
288
|
+
dryRun,
|
|
289
|
+
devRepoPath: resolveCurrentGdhInstall(import.meta.url).defaultDevRepoPath,
|
|
290
|
+
})
|
|
291
|
+
: null;
|
|
292
|
+
if (!dryRun) {
|
|
293
|
+
await recordSessionEvent(targetPath, {
|
|
294
|
+
commandStartedAtMs,
|
|
295
|
+
kind: "onboard",
|
|
296
|
+
command: "gdh onboard",
|
|
297
|
+
state: "succeeded",
|
|
298
|
+
summary: result.status === "ready"
|
|
299
|
+
? "Onboarding completed durable GDH surfaces for the selected project."
|
|
300
|
+
: "Onboarding remained unresolved and surfaced human-required gaps.",
|
|
301
|
+
producedArtifacts: [
|
|
302
|
+
...result.writes.map((entry) => entry.relativePath),
|
|
303
|
+
...(adapterInstall?.actions
|
|
304
|
+
.map((action) => action.relativePath)
|
|
305
|
+
.filter((entry) => entry !== null) ?? []),
|
|
306
|
+
],
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
writeJsonResult(io, {
|
|
310
|
+
...result,
|
|
311
|
+
adapterInstall,
|
|
312
|
+
}, { presentRuntimeTerms: true });
|
|
313
|
+
return 0;
|
|
314
|
+
}
|
|
315
|
+
catch (error) {
|
|
316
|
+
if (!dryRun) {
|
|
317
|
+
await recordSessionEvent(targetPath, {
|
|
318
|
+
commandStartedAtMs,
|
|
319
|
+
kind: "onboard",
|
|
320
|
+
command: "gdh onboard",
|
|
321
|
+
state: "failed",
|
|
322
|
+
summary: "GDH onboarding failed before producing a result.",
|
|
323
|
+
errorMessage: formatCliError(error),
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
io.stderr.write(`Failed to onboard target "${targetPath}": ${formatCliError(error)}\n`);
|
|
327
|
+
return 1;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
async function runStatusCommand(args, io) {
|
|
331
|
+
if (args.includes("--help")) {
|
|
332
|
+
io.stdout.write([
|
|
333
|
+
"Usage: gdh status [target]",
|
|
334
|
+
"Usage: gdh status --target <path>",
|
|
335
|
+
"",
|
|
336
|
+
"Report explicit GDH readiness and capability availability for a target as JSON.",
|
|
337
|
+
].join("\n") + "\n");
|
|
338
|
+
return 0;
|
|
339
|
+
}
|
|
340
|
+
const parsedTarget = parseSingleTargetPathArg(args, {
|
|
341
|
+
usage: "Usage: gdh status [target]\nUsage: gdh status --target <path>\n",
|
|
342
|
+
allowTargetOption: true,
|
|
343
|
+
});
|
|
344
|
+
if (parsedTarget.error !== null) {
|
|
345
|
+
io.stderr.write(parsedTarget.error);
|
|
346
|
+
return 1;
|
|
347
|
+
}
|
|
348
|
+
const targetPath = parsedTarget.targetPath;
|
|
349
|
+
const commandStartedAtMs = Date.now();
|
|
350
|
+
try {
|
|
351
|
+
const status = await buildGdhStatusResult(targetPath);
|
|
352
|
+
await recordSessionEvent(targetPath, {
|
|
353
|
+
commandStartedAtMs,
|
|
354
|
+
kind: "status",
|
|
355
|
+
command: "gdh status",
|
|
356
|
+
state: status.readiness === "undetected" ? "blocked" : "succeeded",
|
|
357
|
+
summary: status.summary,
|
|
358
|
+
});
|
|
359
|
+
io.stdout.write(`${JSON.stringify(status, null, 2)}\n`);
|
|
360
|
+
return 0;
|
|
361
|
+
}
|
|
362
|
+
catch (error) {
|
|
363
|
+
await recordSessionEvent(targetPath, {
|
|
364
|
+
commandStartedAtMs,
|
|
365
|
+
kind: "status",
|
|
366
|
+
command: "gdh status",
|
|
367
|
+
state: "failed",
|
|
368
|
+
summary: "GDH status resolution failed before producing a result.",
|
|
369
|
+
errorMessage: formatCliError(error),
|
|
370
|
+
});
|
|
371
|
+
io.stderr.write(`Failed to resolve status for "${targetPath}": ${formatCliError(error)}\n`);
|
|
372
|
+
return 1;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
async function runVersionCommand(args, io) {
|
|
376
|
+
if (args.includes("--help")) {
|
|
377
|
+
io.stdout.write([
|
|
378
|
+
"Usage: gdh version",
|
|
379
|
+
"",
|
|
380
|
+
"Print the GDH product version, release stage, and managed project-surface versions as JSON.",
|
|
381
|
+
].join("\n") + "\n");
|
|
382
|
+
return 0;
|
|
383
|
+
}
|
|
384
|
+
if (args.length > 0) {
|
|
385
|
+
io.stderr.write("Usage error: gdh version does not accept positional arguments.\n");
|
|
386
|
+
return 1;
|
|
387
|
+
}
|
|
388
|
+
io.stdout.write(`${JSON.stringify(resolveGdhProductMetadata(), null, 2)}\n`);
|
|
389
|
+
return 0;
|
|
390
|
+
}
|
|
391
|
+
async function runAuthoringCommand(args, io) {
|
|
392
|
+
const [subcommand, ...rest] = args;
|
|
393
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
394
|
+
io.stdout.write([
|
|
395
|
+
"Usage: gdh authoring <command> [target]",
|
|
396
|
+
"",
|
|
397
|
+
"Commands:",
|
|
398
|
+
" check [target] Run the current authoring-check entrypoint and print a structured result.",
|
|
399
|
+
].join("\n") + "\n");
|
|
400
|
+
return 0;
|
|
401
|
+
}
|
|
402
|
+
if (subcommand === "check") {
|
|
403
|
+
return runAuthoringCheckCommand(rest, io);
|
|
404
|
+
}
|
|
405
|
+
io.stderr.write(`Unknown authoring command: ${subcommand}\n\nUsage: gdh authoring check [target]\n`);
|
|
406
|
+
return 1;
|
|
407
|
+
}
|
|
408
|
+
async function runLspCommand(args, io) {
|
|
409
|
+
const [subcommand, ...rest] = args;
|
|
410
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
411
|
+
io.stdout.write([
|
|
412
|
+
"Usage: gdh lsp <command> [target]",
|
|
413
|
+
"",
|
|
414
|
+
"Commands:",
|
|
415
|
+
" status [target] Resolve the managed authoring.lsp lifecycle state and print it as JSON.",
|
|
416
|
+
].join("\n") + "\n");
|
|
417
|
+
return 0;
|
|
418
|
+
}
|
|
419
|
+
if (subcommand === "status") {
|
|
420
|
+
return runLspStatusCommand(rest, io);
|
|
421
|
+
}
|
|
422
|
+
io.stderr.write(`Unknown lsp command: ${subcommand}\n\nUsage: gdh lsp status [target]\n`);
|
|
423
|
+
return 1;
|
|
424
|
+
}
|
|
425
|
+
async function runDocsCommand(args, io) {
|
|
426
|
+
const [subcommand, ...rest] = args;
|
|
427
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
428
|
+
io.stdout.write([
|
|
429
|
+
"Usage: gdh docs <command> [target]",
|
|
430
|
+
"",
|
|
431
|
+
"Commands:",
|
|
432
|
+
" version [target] [--project <relative-path>] Resolve the effective Godot docs version and official source set as JSON.",
|
|
433
|
+
" search <query> [target] [--project <relative-path>] [--limit <n>] Search official version-aware Godot docs as JSON.",
|
|
434
|
+
" fetch <ref-or-url> [target] [--project <relative-path>] Fetch one official version-aware Godot docs page or section as JSON.",
|
|
435
|
+
].join("\n") + "\n");
|
|
436
|
+
return 0;
|
|
437
|
+
}
|
|
438
|
+
if (subcommand === "version") {
|
|
439
|
+
return runDocsVersionCommand(rest, io);
|
|
440
|
+
}
|
|
441
|
+
if (subcommand === "search") {
|
|
442
|
+
return runDocsSearchCommand(rest, io);
|
|
443
|
+
}
|
|
444
|
+
if (subcommand === "fetch") {
|
|
445
|
+
return runDocsFetchCommand(rest, io);
|
|
446
|
+
}
|
|
447
|
+
io.stderr.write([
|
|
448
|
+
`Unknown docs command: ${subcommand}`,
|
|
449
|
+
"",
|
|
450
|
+
"Usage: gdh docs version [target] [--project <relative-path>]",
|
|
451
|
+
" gdh docs search <query> [target] [--project <relative-path>] [--limit <n>]",
|
|
452
|
+
" gdh docs fetch <ref-or-url> [target] [--project <relative-path>]",
|
|
453
|
+
].join("\n") + "\n");
|
|
454
|
+
return 1;
|
|
455
|
+
}
|
|
456
|
+
async function runDocsVersionCommand(args, io) {
|
|
457
|
+
if (args.includes("--help")) {
|
|
458
|
+
io.stdout.write([
|
|
459
|
+
"Usage: gdh docs version [target] [--project <relative-path>]",
|
|
460
|
+
"",
|
|
461
|
+
"Resolve the effective Godot docs version, winning hint source, and official source set for one target as JSON.",
|
|
462
|
+
].join("\n") + "\n");
|
|
463
|
+
return 0;
|
|
464
|
+
}
|
|
465
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
466
|
+
usage: "Usage: gdh docs version [target] [--project <relative-path>]\n",
|
|
467
|
+
optionsWithValues: ["--project"],
|
|
468
|
+
});
|
|
469
|
+
if (unsupportedOptionsError !== null) {
|
|
470
|
+
io.stderr.write(unsupportedOptionsError);
|
|
471
|
+
return 1;
|
|
472
|
+
}
|
|
473
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--project"]));
|
|
474
|
+
if (positionalArgs.length > 1) {
|
|
475
|
+
io.stderr.write("Usage error: gdh docs version accepts at most one positional target path.\n");
|
|
476
|
+
return 1;
|
|
477
|
+
}
|
|
478
|
+
if (args.includes("--project") && readSingleOptionValue(args, "--project") === null) {
|
|
479
|
+
io.stderr.write("Usage error: --project requires a relative project path.\n");
|
|
480
|
+
return 1;
|
|
481
|
+
}
|
|
482
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
483
|
+
const requestedProjectPath = readSingleOptionValue(args, "--project");
|
|
484
|
+
try {
|
|
485
|
+
const context = await buildAuthoringContext(targetPath);
|
|
486
|
+
const result = resolveTargetGodotDocsVersion({
|
|
487
|
+
targetPath,
|
|
488
|
+
inventory: context.inventory,
|
|
489
|
+
projectConfig: context.projectConfig,
|
|
490
|
+
requestedProjectPath,
|
|
491
|
+
});
|
|
492
|
+
writeJsonResult(io, result);
|
|
493
|
+
return 0;
|
|
494
|
+
}
|
|
495
|
+
catch (error) {
|
|
496
|
+
io.stderr.write(`Failed to resolve docs version for "${targetPath}": ${formatCliError(error)}\n`);
|
|
497
|
+
return 1;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
async function runDocsSearchCommand(args, io) {
|
|
501
|
+
if (args.includes("--help")) {
|
|
502
|
+
io.stdout.write([
|
|
503
|
+
"Usage: gdh docs search <query> [target] [--project <relative-path>] [--limit <n>]",
|
|
504
|
+
"",
|
|
505
|
+
"Search the resolved official Godot docs branch and print bounded JSON results.",
|
|
506
|
+
].join("\n") + "\n");
|
|
507
|
+
return 0;
|
|
508
|
+
}
|
|
509
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
510
|
+
usage: "Usage: gdh docs search <query> [target] [--project <relative-path>] [--limit <n>]\n",
|
|
511
|
+
optionsWithValues: ["--project", "--limit"],
|
|
512
|
+
});
|
|
513
|
+
if (unsupportedOptionsError !== null) {
|
|
514
|
+
io.stderr.write(unsupportedOptionsError);
|
|
515
|
+
return 1;
|
|
516
|
+
}
|
|
517
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--project", "--limit"]));
|
|
518
|
+
if (positionalArgs.length === 0 || positionalArgs.length > 2) {
|
|
519
|
+
io.stderr.write("Usage error: gdh docs search requires a query and accepts at most one optional target path.\n");
|
|
520
|
+
return 1;
|
|
521
|
+
}
|
|
522
|
+
if (args.includes("--project") && readSingleOptionValue(args, "--project") === null) {
|
|
523
|
+
io.stderr.write("Usage error: --project requires a relative project path.\n");
|
|
524
|
+
return 1;
|
|
525
|
+
}
|
|
526
|
+
if (args.includes("--limit") && readSingleOptionValue(args, "--limit") === null) {
|
|
527
|
+
io.stderr.write("Usage error: --limit requires a positive integer.\n");
|
|
528
|
+
return 1;
|
|
529
|
+
}
|
|
530
|
+
const limitValue = readSingleOptionValue(args, "--limit");
|
|
531
|
+
const limit = limitValue === null ? undefined : parsePositiveIntegerOptionValue(limitValue);
|
|
532
|
+
if (limitValue !== null && limit === null) {
|
|
533
|
+
io.stderr.write("Usage error: --limit must be a positive integer.\n");
|
|
534
|
+
return 1;
|
|
535
|
+
}
|
|
536
|
+
const query = positionalArgs[0];
|
|
537
|
+
const targetPath = positionalArgs[1] ?? ".";
|
|
538
|
+
const requestedProjectPath = readSingleOptionValue(args, "--project");
|
|
539
|
+
try {
|
|
540
|
+
const context = await buildAuthoringContext(targetPath);
|
|
541
|
+
const docsVersion = resolveTargetGodotDocsVersion({
|
|
542
|
+
targetPath,
|
|
543
|
+
inventory: context.inventory,
|
|
544
|
+
projectConfig: context.projectConfig,
|
|
545
|
+
requestedProjectPath,
|
|
546
|
+
});
|
|
547
|
+
const result = await searchOfficialGodotDocs({
|
|
548
|
+
docsVersion,
|
|
549
|
+
query,
|
|
550
|
+
...(limit === undefined ? {} : { limit }),
|
|
551
|
+
});
|
|
552
|
+
writeJsonResult(io, result);
|
|
553
|
+
return 0;
|
|
554
|
+
}
|
|
555
|
+
catch (error) {
|
|
556
|
+
io.stderr.write(`Failed to search official docs for "${targetPath}": ${formatCliError(error)}\n`);
|
|
557
|
+
return 1;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
async function runDocsFetchCommand(args, io) {
|
|
561
|
+
if (args.includes("--help")) {
|
|
562
|
+
io.stdout.write([
|
|
563
|
+
"Usage: gdh docs fetch <ref-or-url> [target] [--project <relative-path>]",
|
|
564
|
+
"",
|
|
565
|
+
"Fetch one official version-aware Godot docs page or section and print bounded JSON.",
|
|
566
|
+
].join("\n") + "\n");
|
|
567
|
+
return 0;
|
|
568
|
+
}
|
|
569
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
570
|
+
usage: "Usage: gdh docs fetch <ref-or-url> [target] [--project <relative-path>]\n",
|
|
571
|
+
optionsWithValues: ["--project"],
|
|
572
|
+
});
|
|
573
|
+
if (unsupportedOptionsError !== null) {
|
|
574
|
+
io.stderr.write(unsupportedOptionsError);
|
|
575
|
+
return 1;
|
|
576
|
+
}
|
|
577
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--project"]));
|
|
578
|
+
if (positionalArgs.length === 0 || positionalArgs.length > 2) {
|
|
579
|
+
io.stderr.write("Usage error: gdh docs fetch requires a ref or URL and accepts at most one optional target path.\n");
|
|
580
|
+
return 1;
|
|
581
|
+
}
|
|
582
|
+
if (args.includes("--project") && readSingleOptionValue(args, "--project") === null) {
|
|
583
|
+
io.stderr.write("Usage error: --project requires a relative project path.\n");
|
|
584
|
+
return 1;
|
|
585
|
+
}
|
|
586
|
+
const refOrUrl = positionalArgs[0];
|
|
587
|
+
const targetPath = positionalArgs[1] ?? ".";
|
|
588
|
+
const requestedProjectPath = readSingleOptionValue(args, "--project");
|
|
589
|
+
try {
|
|
590
|
+
const context = await buildAuthoringContext(targetPath);
|
|
591
|
+
const docsVersion = resolveTargetGodotDocsVersion({
|
|
592
|
+
targetPath,
|
|
593
|
+
inventory: context.inventory,
|
|
594
|
+
projectConfig: context.projectConfig,
|
|
595
|
+
requestedProjectPath,
|
|
596
|
+
});
|
|
597
|
+
const result = await fetchOfficialGodotDoc({
|
|
598
|
+
docsVersion,
|
|
599
|
+
refOrUrl,
|
|
600
|
+
});
|
|
601
|
+
writeJsonResult(io, result);
|
|
602
|
+
return 0;
|
|
603
|
+
}
|
|
604
|
+
catch (error) {
|
|
605
|
+
io.stderr.write(`Failed to fetch official docs for "${targetPath}": ${formatCliError(error)}\n`);
|
|
606
|
+
return 1;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
async function runAuthoringCheckCommand(args, io) {
|
|
610
|
+
if (args.includes("--help")) {
|
|
611
|
+
io.stdout.write([
|
|
612
|
+
"Usage: gdh authoring check [target]",
|
|
613
|
+
"Usage: gdh authoring check --target <path>",
|
|
614
|
+
"",
|
|
615
|
+
"Run the current GDH authoring-check flow and print a structured result as JSON.",
|
|
616
|
+
].join("\n") + "\n");
|
|
617
|
+
return 0;
|
|
618
|
+
}
|
|
619
|
+
const parsedTarget = parseSingleTargetPathArg(args, {
|
|
620
|
+
usage: "Usage: gdh authoring check [target]\nUsage: gdh authoring check --target <path>\n",
|
|
621
|
+
allowTargetOption: true,
|
|
622
|
+
});
|
|
623
|
+
if (parsedTarget.error !== null) {
|
|
624
|
+
io.stderr.write(parsedTarget.error);
|
|
625
|
+
return 1;
|
|
626
|
+
}
|
|
627
|
+
const targetPath = parsedTarget.targetPath;
|
|
628
|
+
const commandStartedAtMs = Date.now();
|
|
629
|
+
try {
|
|
630
|
+
const context = await buildAuthoringContext(targetPath);
|
|
631
|
+
const result = await runAuthoringCheck({
|
|
632
|
+
targetPath,
|
|
633
|
+
status: context.status,
|
|
634
|
+
projectConfig: context.projectConfig,
|
|
635
|
+
});
|
|
636
|
+
await recordSessionEvent(targetPath, {
|
|
637
|
+
commandStartedAtMs,
|
|
638
|
+
kind: "authoring_check",
|
|
639
|
+
command: "gdh authoring check",
|
|
640
|
+
state: result.status === "unavailable" ? "blocked" : "succeeded",
|
|
641
|
+
summary: result.summary,
|
|
642
|
+
validation: {
|
|
643
|
+
changedFiles: [],
|
|
644
|
+
recommendedKinds: ["authoring_check"],
|
|
645
|
+
performedKinds: result.status === "passed" ||
|
|
646
|
+
result.status === "diagnostics" ||
|
|
647
|
+
result.status === "degraded"
|
|
648
|
+
? ["authoring_check"]
|
|
649
|
+
: [],
|
|
650
|
+
},
|
|
651
|
+
});
|
|
652
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
653
|
+
return 0;
|
|
654
|
+
}
|
|
655
|
+
catch (error) {
|
|
656
|
+
await recordSessionEvent(targetPath, {
|
|
657
|
+
commandStartedAtMs,
|
|
658
|
+
kind: "authoring_check",
|
|
659
|
+
command: "gdh authoring check",
|
|
660
|
+
state: "failed",
|
|
661
|
+
summary: "GDH authoring check failed before producing a result.",
|
|
662
|
+
errorMessage: formatCliError(error),
|
|
663
|
+
});
|
|
664
|
+
io.stderr.write(`Failed to run authoring check for "${targetPath}": ${formatCliError(error)}\n`);
|
|
665
|
+
return 1;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
async function runLspStatusCommand(args, io) {
|
|
669
|
+
if (args.includes("--help")) {
|
|
670
|
+
io.stdout.write([
|
|
671
|
+
"Usage: gdh lsp status [target]",
|
|
672
|
+
"Usage: gdh lsp status --target <path>",
|
|
673
|
+
"",
|
|
674
|
+
"Resolve the managed authoring.lsp lifecycle state and print a structured result as JSON.",
|
|
675
|
+
].join("\n") + "\n");
|
|
676
|
+
return 0;
|
|
677
|
+
}
|
|
678
|
+
const parsedTarget = parseSingleTargetPathArg(args, {
|
|
679
|
+
usage: "Usage: gdh lsp status [target]\nUsage: gdh lsp status --target <path>\n",
|
|
680
|
+
allowTargetOption: true,
|
|
681
|
+
});
|
|
682
|
+
if (parsedTarget.error !== null) {
|
|
683
|
+
io.stderr.write(parsedTarget.error);
|
|
684
|
+
return 1;
|
|
685
|
+
}
|
|
686
|
+
const targetPath = parsedTarget.targetPath;
|
|
687
|
+
try {
|
|
688
|
+
const context = await buildAuthoringContext(targetPath);
|
|
689
|
+
const result = await getManagedLspStatus({
|
|
690
|
+
targetPath,
|
|
691
|
+
status: context.status,
|
|
692
|
+
projectConfig: context.projectConfig,
|
|
693
|
+
owner: "gdh lsp status",
|
|
694
|
+
});
|
|
695
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
696
|
+
return 0;
|
|
697
|
+
}
|
|
698
|
+
catch (error) {
|
|
699
|
+
io.stderr.write(`Failed to resolve lsp status for "${targetPath}": ${formatCliError(error)}\n`);
|
|
700
|
+
return 1;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
async function runWarmupCommand(args, io) {
|
|
704
|
+
if (args.includes("--help")) {
|
|
705
|
+
io.stdout.write([
|
|
706
|
+
"Usage: gdh warmup [target] [--dry-run]",
|
|
707
|
+
"",
|
|
708
|
+
"Inspect worktree-local versus reusable cache state and plan or apply authoring warmup as JSON.",
|
|
709
|
+
].join("\n") + "\n");
|
|
710
|
+
return 0;
|
|
711
|
+
}
|
|
712
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
713
|
+
usage: "Usage: gdh warmup [target] [--dry-run]\n",
|
|
714
|
+
booleanOptions: ["--dry-run"],
|
|
715
|
+
});
|
|
716
|
+
if (unsupportedOptionsError !== null) {
|
|
717
|
+
io.stderr.write(unsupportedOptionsError);
|
|
718
|
+
return 1;
|
|
719
|
+
}
|
|
720
|
+
const dryRun = args.includes("--dry-run");
|
|
721
|
+
const positionalArgs = extractGuidanceResolvePositionalArgs(args);
|
|
722
|
+
if (positionalArgs.length > 1) {
|
|
723
|
+
io.stderr.write("Usage error: gdh warmup accepts at most one positional target path.\n");
|
|
724
|
+
return 1;
|
|
725
|
+
}
|
|
726
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
727
|
+
try {
|
|
728
|
+
const context = await buildAuthoringContext(targetPath);
|
|
729
|
+
const result = await runWarmup({
|
|
730
|
+
targetPath,
|
|
731
|
+
status: context.status,
|
|
732
|
+
projectConfig: context.projectConfig,
|
|
733
|
+
dryRun,
|
|
734
|
+
});
|
|
735
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
736
|
+
return 0;
|
|
737
|
+
}
|
|
738
|
+
catch (error) {
|
|
739
|
+
io.stderr.write(`Failed to plan warmup for "${targetPath}": ${formatCliError(error)}\n`);
|
|
740
|
+
return 1;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
async function runTargetCommand(args, io) {
|
|
744
|
+
const [subcommand, ...rest] = args;
|
|
745
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
746
|
+
io.stdout.write([
|
|
747
|
+
"Usage: gdh target <command> [target]",
|
|
748
|
+
"",
|
|
749
|
+
"Commands:",
|
|
750
|
+
" prepare [target] [--source-target <path>] [--dry-run] [--no-refresh-imports]",
|
|
751
|
+
" Hydrate target-local generated state and plan or apply GDH target preparation.",
|
|
752
|
+
].join("\n") + "\n");
|
|
753
|
+
return 0;
|
|
754
|
+
}
|
|
755
|
+
if (subcommand === "prepare") {
|
|
756
|
+
return runTargetPrepareCommand(rest, io);
|
|
757
|
+
}
|
|
758
|
+
io.stderr.write([
|
|
759
|
+
`Unknown target command: ${subcommand}`,
|
|
760
|
+
"",
|
|
761
|
+
"Usage: gdh target prepare [target] [--source-target <path>] [--dry-run] [--no-refresh-imports]",
|
|
762
|
+
].join("\n") + "\n");
|
|
763
|
+
return 1;
|
|
764
|
+
}
|
|
765
|
+
async function runTargetPrepareCommand(args, io) {
|
|
766
|
+
if (args.includes("--help")) {
|
|
767
|
+
io.stdout.write([
|
|
768
|
+
"Usage: gdh target prepare [target] [--source-target <path>] [--dry-run] [--no-refresh-imports]",
|
|
769
|
+
"",
|
|
770
|
+
"Prepare a target for editor/import-sensitive work by composing GDH warmup, optional .godot hydration from a configured source target, and optional import refresh.",
|
|
771
|
+
].join("\n") + "\n");
|
|
772
|
+
return 0;
|
|
773
|
+
}
|
|
774
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
775
|
+
usage: "Usage: gdh target prepare [target] [--source-target <path>] [--dry-run] [--no-refresh-imports]\n",
|
|
776
|
+
optionsWithValues: ["--source-target"],
|
|
777
|
+
booleanOptions: ["--dry-run", "--no-refresh-imports"],
|
|
778
|
+
});
|
|
779
|
+
if (unsupportedOptionsError !== null) {
|
|
780
|
+
io.stderr.write(unsupportedOptionsError);
|
|
781
|
+
return 1;
|
|
782
|
+
}
|
|
783
|
+
const dryRun = args.includes("--dry-run");
|
|
784
|
+
const refreshImports = !args.includes("--no-refresh-imports");
|
|
785
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--source-target"]));
|
|
786
|
+
if (positionalArgs.length > 1) {
|
|
787
|
+
io.stderr.write("Usage error: gdh target prepare accepts at most one positional target path.\n");
|
|
788
|
+
return 1;
|
|
789
|
+
}
|
|
790
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
791
|
+
const sourceTargetPath = collectOptionValues(args, "--source-target")[0] ?? null;
|
|
792
|
+
const commandStartedAtMs = Date.now();
|
|
793
|
+
try {
|
|
794
|
+
const context = await buildAuthoringContext(targetPath);
|
|
795
|
+
const result = await runTargetPrepare({
|
|
796
|
+
targetPath,
|
|
797
|
+
status: context.status,
|
|
798
|
+
projectConfig: context.projectConfig,
|
|
799
|
+
sourceTargetPath,
|
|
800
|
+
refreshImports,
|
|
801
|
+
dryRun,
|
|
802
|
+
});
|
|
803
|
+
if (!dryRun) {
|
|
804
|
+
await recordSessionEvent(targetPath, {
|
|
805
|
+
commandStartedAtMs,
|
|
806
|
+
kind: "target_prepare",
|
|
807
|
+
command: "gdh target prepare",
|
|
808
|
+
state: result.state === "ready" ? "succeeded" : "blocked",
|
|
809
|
+
summary: result.summary,
|
|
810
|
+
producedArtifacts: result.actions
|
|
811
|
+
.map((action) => action.targetPath)
|
|
812
|
+
.filter((entry) => entry !== null),
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
816
|
+
return 0;
|
|
817
|
+
}
|
|
818
|
+
catch (error) {
|
|
819
|
+
if (!dryRun) {
|
|
820
|
+
await recordSessionEvent(targetPath, {
|
|
821
|
+
commandStartedAtMs,
|
|
822
|
+
kind: "target_prepare",
|
|
823
|
+
command: "gdh target prepare",
|
|
824
|
+
state: "failed",
|
|
825
|
+
summary: "Target preparation failed before producing a result.",
|
|
826
|
+
errorMessage: formatCliError(error),
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
io.stderr.write(`Failed to prepare target "${targetPath}": ${formatCliError(error)}\n`);
|
|
830
|
+
return 1;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
async function runImportsCommand(args, io) {
|
|
834
|
+
const [subcommand, ...rest] = args;
|
|
835
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
836
|
+
io.stdout.write([
|
|
837
|
+
"Usage: gdh imports <command> [target]",
|
|
838
|
+
"",
|
|
839
|
+
"Commands:",
|
|
840
|
+
" refresh [target] [--dry-run] Run or plan a headless Godot import refresh for the target's primary project path.",
|
|
841
|
+
].join("\n") + "\n");
|
|
842
|
+
return 0;
|
|
843
|
+
}
|
|
844
|
+
if (subcommand === "refresh") {
|
|
845
|
+
return runImportsRefreshCommand(rest, io);
|
|
846
|
+
}
|
|
847
|
+
io.stderr.write([
|
|
848
|
+
`Unknown imports command: ${subcommand}`,
|
|
849
|
+
"",
|
|
850
|
+
"Usage: gdh imports refresh [target] [--dry-run]",
|
|
851
|
+
].join("\n") + "\n");
|
|
852
|
+
return 1;
|
|
853
|
+
}
|
|
854
|
+
async function runImportsRefreshCommand(args, io) {
|
|
855
|
+
if (args.includes("--help")) {
|
|
856
|
+
io.stdout.write([
|
|
857
|
+
"Usage: gdh imports refresh [target] [--dry-run]",
|
|
858
|
+
"",
|
|
859
|
+
"Run or plan a headless Godot import/update pass for the configured primary project path.",
|
|
860
|
+
].join("\n") + "\n");
|
|
861
|
+
return 0;
|
|
862
|
+
}
|
|
863
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
864
|
+
usage: "Usage: gdh imports refresh [target] [--dry-run]\n",
|
|
865
|
+
booleanOptions: ["--dry-run"],
|
|
866
|
+
});
|
|
867
|
+
if (unsupportedOptionsError !== null) {
|
|
868
|
+
io.stderr.write(unsupportedOptionsError);
|
|
869
|
+
return 1;
|
|
870
|
+
}
|
|
871
|
+
const dryRun = args.includes("--dry-run");
|
|
872
|
+
const positionalArgs = extractPositionalArgs(args, new Set());
|
|
873
|
+
if (positionalArgs.length > 1) {
|
|
874
|
+
io.stderr.write("Usage error: gdh imports refresh accepts at most one positional target path.\n");
|
|
875
|
+
return 1;
|
|
876
|
+
}
|
|
877
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
878
|
+
const commandStartedAtMs = Date.now();
|
|
879
|
+
try {
|
|
880
|
+
const context = await buildAuthoringContext(targetPath);
|
|
881
|
+
const result = await runImportRefresh({
|
|
882
|
+
targetPath,
|
|
883
|
+
status: context.status,
|
|
884
|
+
projectConfig: context.projectConfig,
|
|
885
|
+
dryRun,
|
|
886
|
+
});
|
|
887
|
+
if (!dryRun) {
|
|
888
|
+
await recordSessionEvent(targetPath, {
|
|
889
|
+
commandStartedAtMs,
|
|
890
|
+
kind: "imports_refresh",
|
|
891
|
+
command: "gdh imports refresh",
|
|
892
|
+
state: result.state === "applied"
|
|
893
|
+
? "succeeded"
|
|
894
|
+
: result.state === "blocked"
|
|
895
|
+
? "blocked"
|
|
896
|
+
: "failed",
|
|
897
|
+
summary: result.summary,
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
901
|
+
return 0;
|
|
902
|
+
}
|
|
903
|
+
catch (error) {
|
|
904
|
+
if (!dryRun) {
|
|
905
|
+
await recordSessionEvent(targetPath, {
|
|
906
|
+
commandStartedAtMs,
|
|
907
|
+
kind: "imports_refresh",
|
|
908
|
+
command: "gdh imports refresh",
|
|
909
|
+
state: "failed",
|
|
910
|
+
summary: "Import refresh failed before producing a result.",
|
|
911
|
+
errorMessage: formatCliError(error),
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
io.stderr.write(`Failed to refresh imports for "${targetPath}": ${formatCliError(error)}\n`);
|
|
915
|
+
return 1;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
async function runCacheCommand(args, io) {
|
|
919
|
+
const [subcommand, ...rest] = args;
|
|
920
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
921
|
+
io.stdout.write([
|
|
922
|
+
"Usage: gdh cache <command> [target]",
|
|
923
|
+
"",
|
|
924
|
+
"Commands:",
|
|
925
|
+
" inspect [target] Inspect namespaced authoring cache state and print it as JSON.",
|
|
926
|
+
" prune [target] [--scope <scope>] Remove authoring cache state for worktree, project, or both.",
|
|
927
|
+
"",
|
|
928
|
+
"Supported scopes: worktree, project, all",
|
|
929
|
+
].join("\n") + "\n");
|
|
930
|
+
return 0;
|
|
931
|
+
}
|
|
932
|
+
if (subcommand === "inspect") {
|
|
933
|
+
return runCacheInspectCommand(rest, io);
|
|
934
|
+
}
|
|
935
|
+
if (subcommand === "prune") {
|
|
936
|
+
return runCachePruneCommand(rest, io);
|
|
937
|
+
}
|
|
938
|
+
io.stderr.write(`Unknown cache command: ${subcommand}\n\nUsage: gdh cache inspect [target]\nUsage: gdh cache prune [target] [--scope <scope>] [--dry-run]\n`);
|
|
939
|
+
return 1;
|
|
940
|
+
}
|
|
941
|
+
async function runAdaptersCommand(args, io) {
|
|
942
|
+
const [subcommand, ...rest] = args;
|
|
943
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
944
|
+
io.stdout.write([
|
|
945
|
+
"Usage: gdh adapters <command> [target]",
|
|
946
|
+
"",
|
|
947
|
+
"Commands:",
|
|
948
|
+
" status [target] [--integration-root <path>] Inspect supported-agent reinforcement status as JSON.",
|
|
949
|
+
" install [target] [--dry-run] [--agent <name>] [--user] [--dev-repo <path>] [--integration-root <path>]",
|
|
950
|
+
" Install or repair supported-agent reinforcement surfaces.",
|
|
951
|
+
" gsd snapshot [target] [--files <path>] [--performed <kind>] Export a read-mostly GSD projection as JSON.",
|
|
952
|
+
"",
|
|
953
|
+
"Supported agents: codex, claude, cursor",
|
|
954
|
+
].join("\n") + "\n");
|
|
955
|
+
return 0;
|
|
956
|
+
}
|
|
957
|
+
if (subcommand === "status") {
|
|
958
|
+
return runAdaptersStatusCommand(rest, io);
|
|
959
|
+
}
|
|
960
|
+
if (subcommand === "install") {
|
|
961
|
+
return runAdaptersInstallCommand(rest, io);
|
|
962
|
+
}
|
|
963
|
+
if (subcommand === "gsd") {
|
|
964
|
+
return runGsdAdapterCommand(rest, io);
|
|
965
|
+
}
|
|
966
|
+
io.stderr.write([
|
|
967
|
+
`Unknown adapters command: ${subcommand}`,
|
|
968
|
+
"",
|
|
969
|
+
"Usage: gdh adapters status [target] [--integration-root <path>]",
|
|
970
|
+
"Usage: gdh adapters install [target] [--dry-run] [--agent <name>] [--user] [--dev-repo <path>] [--integration-root <path>]",
|
|
971
|
+
"Usage: gdh adapters gsd snapshot [target] [--files <path>] [--performed <kind>]",
|
|
972
|
+
].join("\n") + "\n");
|
|
973
|
+
return 1;
|
|
974
|
+
}
|
|
975
|
+
async function runGsdAdapterCommand(args, io) {
|
|
976
|
+
const [subcommand, ...rest] = args;
|
|
977
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
978
|
+
io.stdout.write([
|
|
979
|
+
"Usage: gdh adapters gsd <command> [target]",
|
|
980
|
+
"",
|
|
981
|
+
"Commands:",
|
|
982
|
+
" snapshot [target] [--files <path>] [--performed <kind>] Export a read-mostly GSD projection as JSON.",
|
|
983
|
+
].join("\n") + "\n");
|
|
984
|
+
return 0;
|
|
985
|
+
}
|
|
986
|
+
if (subcommand === "snapshot") {
|
|
987
|
+
return runGsdSnapshotCommand(rest, io);
|
|
988
|
+
}
|
|
989
|
+
io.stderr.write([
|
|
990
|
+
`Unknown adapters gsd command: ${subcommand}`,
|
|
991
|
+
"",
|
|
992
|
+
"Usage: gdh adapters gsd snapshot [target] [--files <path>] [--performed <kind>]",
|
|
993
|
+
].join("\n") + "\n");
|
|
994
|
+
return 1;
|
|
995
|
+
}
|
|
996
|
+
async function runGuidanceCommand(args, io) {
|
|
997
|
+
const [subcommand, ...rest] = args;
|
|
998
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
999
|
+
io.stdout.write([
|
|
1000
|
+
"Usage: gdh guidance <command> [target]",
|
|
1001
|
+
"",
|
|
1002
|
+
"Commands:",
|
|
1003
|
+
" status [target] Inspect the current durable guidance surface and audit availability.",
|
|
1004
|
+
" resolve [target] [--task-type <type>] [--capability <id>] [--repo-state <state>] [--keyword <term>]",
|
|
1005
|
+
" Resolve which deeper guidance units are eligible for the supplied context.",
|
|
1006
|
+
" audit [target] Inspect stored machine-readable guidance-audit history.",
|
|
1007
|
+
].join("\n") + "\n");
|
|
1008
|
+
return 0;
|
|
1009
|
+
}
|
|
1010
|
+
if (subcommand === "status") {
|
|
1011
|
+
return runGuidanceStatusCommand(rest, io);
|
|
1012
|
+
}
|
|
1013
|
+
if (subcommand === "resolve") {
|
|
1014
|
+
return runGuidanceResolveCommand(rest, io);
|
|
1015
|
+
}
|
|
1016
|
+
if (subcommand === "audit") {
|
|
1017
|
+
return runGuidanceAuditCommand(rest, io);
|
|
1018
|
+
}
|
|
1019
|
+
io.stderr.write([
|
|
1020
|
+
`Unknown guidance command: ${subcommand}`,
|
|
1021
|
+
"",
|
|
1022
|
+
"Usage: gdh guidance status [target]",
|
|
1023
|
+
"Usage: gdh guidance resolve [target] [--task-type <type>] [--capability <id>] [--repo-state <state>] [--keyword <term>]",
|
|
1024
|
+
"Usage: gdh guidance audit [target]",
|
|
1025
|
+
].join("\n") + "\n");
|
|
1026
|
+
return 1;
|
|
1027
|
+
}
|
|
1028
|
+
async function runObservabilityCommand(args, io) {
|
|
1029
|
+
const [subcommand, ...rest] = args;
|
|
1030
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
1031
|
+
io.stdout.write([
|
|
1032
|
+
"Usage: gdh observability <command> [target]",
|
|
1033
|
+
"",
|
|
1034
|
+
"Commands:",
|
|
1035
|
+
" session [target] [--latest] [--session-id <id>] Inspect recorded authoring-session observability as JSON.",
|
|
1036
|
+
" effectiveness [target] [--latest] [--session-id <id>] Summarize agent effectiveness heuristics from recorded session activity.",
|
|
1037
|
+
].join("\n") + "\n");
|
|
1038
|
+
return 0;
|
|
1039
|
+
}
|
|
1040
|
+
if (subcommand === "session") {
|
|
1041
|
+
return runObservabilitySessionCommand(rest, io);
|
|
1042
|
+
}
|
|
1043
|
+
if (subcommand === "effectiveness") {
|
|
1044
|
+
return runObservabilityEffectivenessCommand(rest, io);
|
|
1045
|
+
}
|
|
1046
|
+
io.stderr.write(`Unknown observability command: ${subcommand}\n\nUsage: gdh observability session [target] [--latest] [--session-id <id>]\nUsage: gdh observability effectiveness [target] [--latest] [--session-id <id>]\n`);
|
|
1047
|
+
return 1;
|
|
1048
|
+
}
|
|
1049
|
+
async function runDogfoodCommand(args, io) {
|
|
1050
|
+
const [subcommand, ...rest] = args;
|
|
1051
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
1052
|
+
io.stdout.write([
|
|
1053
|
+
"Usage: gdh dogfood <command>",
|
|
1054
|
+
"",
|
|
1055
|
+
"Commands:",
|
|
1056
|
+
" authoring --fixtures <path> [--fixtures <path>...] [--pilot <path>]",
|
|
1057
|
+
" Exercise the current authoring-first slice against fixtures and an optional pilot target as JSON.",
|
|
1058
|
+
].join("\n") + "\n");
|
|
1059
|
+
return 0;
|
|
1060
|
+
}
|
|
1061
|
+
if (subcommand === "authoring") {
|
|
1062
|
+
return runAuthoringDogfoodCommand(rest, io);
|
|
1063
|
+
}
|
|
1064
|
+
io.stderr.write([
|
|
1065
|
+
`Unknown dogfood command: ${subcommand}`,
|
|
1066
|
+
"",
|
|
1067
|
+
"Usage: gdh dogfood authoring --fixtures <path> [--fixtures <path>...] [--pilot <path>]",
|
|
1068
|
+
].join("\n") + "\n");
|
|
1069
|
+
return 1;
|
|
1070
|
+
}
|
|
1071
|
+
async function runDoctorCommand(args, io) {
|
|
1072
|
+
const [subcommand, ...rest] = args;
|
|
1073
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
1074
|
+
io.stdout.write([
|
|
1075
|
+
"Usage: gdh doctor <command> [target]",
|
|
1076
|
+
"",
|
|
1077
|
+
"Commands:",
|
|
1078
|
+
" authoring-slice [target] Inspect whether the current authoring-first slice is healthy enough for internal use.",
|
|
1079
|
+
].join("\n") + "\n");
|
|
1080
|
+
return 0;
|
|
1081
|
+
}
|
|
1082
|
+
if (subcommand === "authoring-slice") {
|
|
1083
|
+
return runAuthoringSliceDoctorCommand(rest, io);
|
|
1084
|
+
}
|
|
1085
|
+
io.stderr.write([
|
|
1086
|
+
`Unknown doctor command: ${subcommand}`,
|
|
1087
|
+
"",
|
|
1088
|
+
"Usage: gdh doctor authoring-slice [target]",
|
|
1089
|
+
].join("\n") + "\n");
|
|
1090
|
+
return 1;
|
|
1091
|
+
}
|
|
1092
|
+
async function runMcpCommand(args, io) {
|
|
1093
|
+
const [subcommand, ...rest] = args;
|
|
1094
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
1095
|
+
io.stdout.write([
|
|
1096
|
+
"Usage: gdh mcp <command>",
|
|
1097
|
+
"",
|
|
1098
|
+
"Commands:",
|
|
1099
|
+
" manifest Print the thin GDH MCP manifest as JSON.",
|
|
1100
|
+
" serve --target <path> Run the real GDH stdio MCP server for one bound target.",
|
|
1101
|
+
" invoke <tool> [target] [--input-json <json>] Invoke one GDH MCP tool through the local registry.",
|
|
1102
|
+
].join("\n") + "\n");
|
|
1103
|
+
return 0;
|
|
1104
|
+
}
|
|
1105
|
+
if (subcommand === "manifest") {
|
|
1106
|
+
return runMcpManifestCommand(rest, io);
|
|
1107
|
+
}
|
|
1108
|
+
if (subcommand === "serve") {
|
|
1109
|
+
return runMcpServeCommand(rest, io);
|
|
1110
|
+
}
|
|
1111
|
+
if (subcommand === "invoke") {
|
|
1112
|
+
return runMcpInvokeCommand(rest, io);
|
|
1113
|
+
}
|
|
1114
|
+
io.stderr.write([
|
|
1115
|
+
`Unknown mcp command: ${subcommand}`,
|
|
1116
|
+
"",
|
|
1117
|
+
"Usage: gdh mcp manifest",
|
|
1118
|
+
"Usage: gdh mcp serve --target <path>",
|
|
1119
|
+
"Usage: gdh mcp invoke <tool> [target] [--input-json <json>]",
|
|
1120
|
+
].join("\n") + "\n");
|
|
1121
|
+
return 1;
|
|
1122
|
+
}
|
|
1123
|
+
async function runAuthoringDogfoodCommand(args, io) {
|
|
1124
|
+
if (args.includes("--help")) {
|
|
1125
|
+
io.stdout.write([
|
|
1126
|
+
"Usage: gdh dogfood authoring --fixtures <path> [--fixtures <path>...] [--pilot <path>]",
|
|
1127
|
+
"",
|
|
1128
|
+
"Run the current authoring-first slice against fixture targets and one optional pilot target as JSON.",
|
|
1129
|
+
].join("\n") + "\n");
|
|
1130
|
+
return 0;
|
|
1131
|
+
}
|
|
1132
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1133
|
+
usage: "Usage: gdh dogfood authoring --fixtures <path> [--fixtures <path>...] [--pilot <path>]\n",
|
|
1134
|
+
optionsWithValues: ["--fixtures", "--pilot"],
|
|
1135
|
+
});
|
|
1136
|
+
if (unsupportedOptionsError !== null) {
|
|
1137
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1138
|
+
return 1;
|
|
1139
|
+
}
|
|
1140
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--fixtures", "--pilot"]));
|
|
1141
|
+
if (positionalArgs.length > 0) {
|
|
1142
|
+
io.stderr.write("Usage error: gdh dogfood authoring accepts only --fixtures <path> and optional --pilot <path> targets.\n");
|
|
1143
|
+
return 1;
|
|
1144
|
+
}
|
|
1145
|
+
const fixtureTargets = collectOptionValues(args, "--fixtures");
|
|
1146
|
+
const pilotTarget = readSingleOptionValue(args, "--pilot");
|
|
1147
|
+
if (fixtureTargets.length === 0 && pilotTarget === null) {
|
|
1148
|
+
io.stderr.write("Usage error: gdh dogfood authoring requires at least one --fixtures <path> or an explicit --pilot <path> target.\n");
|
|
1149
|
+
return 1;
|
|
1150
|
+
}
|
|
1151
|
+
if (args.includes("--pilot") && pilotTarget === null) {
|
|
1152
|
+
io.stderr.write("Usage error: --pilot requires a target path.\n");
|
|
1153
|
+
return 1;
|
|
1154
|
+
}
|
|
1155
|
+
try {
|
|
1156
|
+
const result = await runAuthoringDogfood({
|
|
1157
|
+
fixtureTargets,
|
|
1158
|
+
pilotTarget,
|
|
1159
|
+
});
|
|
1160
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
1161
|
+
return result.state === "failed" ? 1 : 0;
|
|
1162
|
+
}
|
|
1163
|
+
catch (error) {
|
|
1164
|
+
io.stderr.write(`Failed to run authoring dogfood: ${formatCliError(error)}\n`);
|
|
1165
|
+
return 1;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
async function runAuthoringSliceDoctorCommand(args, io) {
|
|
1169
|
+
if (args.includes("--help")) {
|
|
1170
|
+
io.stdout.write([
|
|
1171
|
+
"Usage: gdh doctor authoring-slice [target]",
|
|
1172
|
+
"Usage: gdh doctor authoring-slice --target <path>",
|
|
1173
|
+
"",
|
|
1174
|
+
"Inspect whether the current authoring-first slice is healthy enough for internal use as JSON.",
|
|
1175
|
+
].join("\n") + "\n");
|
|
1176
|
+
return 0;
|
|
1177
|
+
}
|
|
1178
|
+
const parsedTarget = parseSingleTargetPathArg(args, {
|
|
1179
|
+
usage: "Usage: gdh doctor authoring-slice [target]\nUsage: gdh doctor authoring-slice --target <path>\n",
|
|
1180
|
+
allowTargetOption: true,
|
|
1181
|
+
});
|
|
1182
|
+
if (parsedTarget.error !== null) {
|
|
1183
|
+
io.stderr.write(parsedTarget.error);
|
|
1184
|
+
return 1;
|
|
1185
|
+
}
|
|
1186
|
+
const targetPath = parsedTarget.targetPath;
|
|
1187
|
+
try {
|
|
1188
|
+
const result = await runAuthoringSliceDoctor(targetPath);
|
|
1189
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
1190
|
+
return result.state === "failed" ? 1 : 0;
|
|
1191
|
+
}
|
|
1192
|
+
catch (error) {
|
|
1193
|
+
io.stderr.write(`Failed to inspect authoring slice readiness for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1194
|
+
return 1;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
async function runVerifyCommand(args, io) {
|
|
1198
|
+
const [subcommand, ...rest] = args;
|
|
1199
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
1200
|
+
io.stdout.write([
|
|
1201
|
+
"Usage: gdh verify <command> [target]",
|
|
1202
|
+
"",
|
|
1203
|
+
"Commands:",
|
|
1204
|
+
" run [target] <run-config-id> --verification-scenario <verification-scenario-id>",
|
|
1205
|
+
" Execute one verification scenario over a run configuration and print the structured run record as JSON.",
|
|
1206
|
+
" inspect [target] [--run-record <run-record-id>]",
|
|
1207
|
+
" Inspect the latest or selected runtime run record as JSON.",
|
|
1208
|
+
" readiness [target]",
|
|
1209
|
+
" Summarize runtime verification readiness, stale evidence, and recurring runtime feedback for one target.",
|
|
1210
|
+
" corpus <status|record>",
|
|
1211
|
+
" Inspect or record runtime corpus release-readiness evidence as JSON.",
|
|
1212
|
+
" recommend [target] --files <path> [--files <path>...]",
|
|
1213
|
+
" Recommend authoring-first validation requirements for the supplied change set.",
|
|
1214
|
+
" done [target] --files <path> [--files <path>...] [--performed <kind>]",
|
|
1215
|
+
" Evaluate whether the supplied change set is eligible to be called done.",
|
|
1216
|
+
].join("\n") + "\n");
|
|
1217
|
+
return 0;
|
|
1218
|
+
}
|
|
1219
|
+
if (subcommand === "recommend") {
|
|
1220
|
+
return runVerifyRecommendCommand(rest, io);
|
|
1221
|
+
}
|
|
1222
|
+
if (subcommand === "done") {
|
|
1223
|
+
return runVerifyDoneCommand(rest, io);
|
|
1224
|
+
}
|
|
1225
|
+
if (subcommand === "run") {
|
|
1226
|
+
return runVerifyRunCommand(rest, io);
|
|
1227
|
+
}
|
|
1228
|
+
if (subcommand === "inspect") {
|
|
1229
|
+
return runVerifyInspectCommand(rest, io);
|
|
1230
|
+
}
|
|
1231
|
+
if (subcommand === "readiness") {
|
|
1232
|
+
return runVerifyReadinessCommand(rest, io);
|
|
1233
|
+
}
|
|
1234
|
+
if (subcommand === "corpus") {
|
|
1235
|
+
return runVerifyCorpusCommand(rest, io);
|
|
1236
|
+
}
|
|
1237
|
+
io.stderr.write([
|
|
1238
|
+
`Unknown verify command: ${subcommand}`,
|
|
1239
|
+
"",
|
|
1240
|
+
"Usage: gdh verify run [target] <run-config-id> --verification-scenario <verification-scenario-id>",
|
|
1241
|
+
"Usage: gdh verify inspect [target] [--run-record <run-record-id>]",
|
|
1242
|
+
"Usage: gdh verify readiness [target]",
|
|
1243
|
+
"Usage: gdh verify corpus status [--manifest <path>] [--workspace-root <path>]",
|
|
1244
|
+
"Usage: gdh verify corpus materialize --entry <id> [--manifest <path>] [--workspace-root <path>]",
|
|
1245
|
+
"Usage: gdh verify corpus exercise --entry <id> [--manifest <path>] [--workspace-root <path>] [--no-prepare]",
|
|
1246
|
+
"Usage: gdh verify corpus record --entry <id> --target <path> [--manifest <path>] [--workspace-root <path>]",
|
|
1247
|
+
"Usage: gdh verify recommend [target] --files <path> [--files <path>...]",
|
|
1248
|
+
"Usage: gdh verify done [target] --files <path> [--files <path>...] [--performed <kind>]",
|
|
1249
|
+
].join("\n") + "\n");
|
|
1250
|
+
return 1;
|
|
1251
|
+
}
|
|
1252
|
+
async function runVerifyCorpusCommand(args, io) {
|
|
1253
|
+
const [subcommand, ...rest] = args;
|
|
1254
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
1255
|
+
io.stdout.write([
|
|
1256
|
+
"Usage: gdh verify corpus <command>",
|
|
1257
|
+
"",
|
|
1258
|
+
"Commands:",
|
|
1259
|
+
" status [--manifest <path>] [--workspace-root <path>]",
|
|
1260
|
+
" Inspect runtime corpus release-readiness evidence as JSON.",
|
|
1261
|
+
" materialize --entry <id> [--manifest <path>] [--workspace-root <path>]",
|
|
1262
|
+
" Materialize one corpus entry into GDH-managed source state as JSON.",
|
|
1263
|
+
" exercise --entry <id> [--manifest <path>] [--workspace-root <path>] [--no-prepare]",
|
|
1264
|
+
" Materialize, onboard, and exercise one corpus entry through GDH as JSON.",
|
|
1265
|
+
" record --entry <id> --target <path> [--manifest <path>] [--workspace-root <path>]",
|
|
1266
|
+
" Record current runtime verification readiness for one corpus entry as JSON.",
|
|
1267
|
+
].join("\n") + "\n");
|
|
1268
|
+
return 0;
|
|
1269
|
+
}
|
|
1270
|
+
if (subcommand === "status") {
|
|
1271
|
+
return runVerifyCorpusStatusCommand(rest, io);
|
|
1272
|
+
}
|
|
1273
|
+
if (subcommand === "materialize") {
|
|
1274
|
+
return runVerifyCorpusMaterializeCommand(rest, io);
|
|
1275
|
+
}
|
|
1276
|
+
if (subcommand === "exercise") {
|
|
1277
|
+
return runVerifyCorpusExerciseCommand(rest, io);
|
|
1278
|
+
}
|
|
1279
|
+
if (subcommand === "record") {
|
|
1280
|
+
return runVerifyCorpusRecordCommand(rest, io);
|
|
1281
|
+
}
|
|
1282
|
+
io.stderr.write([
|
|
1283
|
+
`Unknown verify corpus command: ${subcommand}`,
|
|
1284
|
+
"",
|
|
1285
|
+
"Usage: gdh verify corpus status [--manifest <path>] [--workspace-root <path>]",
|
|
1286
|
+
"Usage: gdh verify corpus materialize --entry <id> [--manifest <path>] [--workspace-root <path>]",
|
|
1287
|
+
"Usage: gdh verify corpus exercise --entry <id> [--manifest <path>] [--workspace-root <path>] [--no-prepare]",
|
|
1288
|
+
"Usage: gdh verify corpus record --entry <id> --target <path> [--manifest <path>] [--workspace-root <path>]",
|
|
1289
|
+
].join("\n") + "\n");
|
|
1290
|
+
return 1;
|
|
1291
|
+
}
|
|
1292
|
+
async function runRecipeCommand(args, io) {
|
|
1293
|
+
const [subcommand, ...rest] = args;
|
|
1294
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
1295
|
+
io.stdout.write([
|
|
1296
|
+
"Usage: gdh run-config <command> [target] [run-config-id]",
|
|
1297
|
+
"",
|
|
1298
|
+
"Commands:",
|
|
1299
|
+
" list [target] List run configurations discovered under .gdh/run-configurations as JSON.",
|
|
1300
|
+
" show [target] <run-config-id> Show one run configuration as JSON.",
|
|
1301
|
+
" check [target] <run-config-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value]",
|
|
1302
|
+
" Evaluate whether a run configuration is runnable, blocked, or misconfigured.",
|
|
1303
|
+
" run [target] <run-config-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value] [--live-workspace]",
|
|
1304
|
+
" Run one run configuration and emit structured process evidence.",
|
|
1305
|
+
].join("\n") + "\n");
|
|
1306
|
+
return 0;
|
|
1307
|
+
}
|
|
1308
|
+
if (subcommand === "list") {
|
|
1309
|
+
return runRecipeListCommand(rest, io);
|
|
1310
|
+
}
|
|
1311
|
+
if (subcommand === "show") {
|
|
1312
|
+
return runRecipeShowCommand(rest, io);
|
|
1313
|
+
}
|
|
1314
|
+
if (subcommand === "check") {
|
|
1315
|
+
return runRecipeCheckCommand(rest, io);
|
|
1316
|
+
}
|
|
1317
|
+
if (subcommand === "run") {
|
|
1318
|
+
return runRecipeRunCommand(rest, io);
|
|
1319
|
+
}
|
|
1320
|
+
io.stderr.write([
|
|
1321
|
+
`Unknown run-config command: ${subcommand}`,
|
|
1322
|
+
"",
|
|
1323
|
+
"Usage: gdh run-config list [target]",
|
|
1324
|
+
"Usage: gdh run-config show [target] <run-config-id>",
|
|
1325
|
+
"Usage: gdh run-config check [target] <run-config-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value]",
|
|
1326
|
+
"Usage: gdh run-config run [target] <run-config-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value] [--live-workspace]",
|
|
1327
|
+
].join("\n") + "\n");
|
|
1328
|
+
return 1;
|
|
1329
|
+
}
|
|
1330
|
+
async function runBridgeCommand(args, io) {
|
|
1331
|
+
const [subcommand, ...rest] = args;
|
|
1332
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
1333
|
+
io.stdout.write([
|
|
1334
|
+
"Usage: gdh bridge <command> [target]",
|
|
1335
|
+
"",
|
|
1336
|
+
"Commands:",
|
|
1337
|
+
" status [target] Inspect the managed runtime bridge lifecycle state for one target.",
|
|
1338
|
+
" doctor [target] Alias for status with the same structured bridge-health report.",
|
|
1339
|
+
" install [target] [--dry-run] Install the managed runtime bridge addon and autoload surfaces.",
|
|
1340
|
+
" repair [target] [--dry-run] Rewrite drifted GDH-managed bridge files and autoload state.",
|
|
1341
|
+
" remove [target] [--dry-run] Remove the GDH-managed bridge files and autoload entry.",
|
|
1342
|
+
].join("\n") + "\n");
|
|
1343
|
+
return 0;
|
|
1344
|
+
}
|
|
1345
|
+
if (subcommand === "status") {
|
|
1346
|
+
return runBridgeStatusCommand(rest, io);
|
|
1347
|
+
}
|
|
1348
|
+
if (subcommand === "doctor") {
|
|
1349
|
+
return runBridgeStatusCommand(rest, io);
|
|
1350
|
+
}
|
|
1351
|
+
if (subcommand === "install") {
|
|
1352
|
+
return runBridgeApplyCommand(rest, io, "install");
|
|
1353
|
+
}
|
|
1354
|
+
if (subcommand === "repair") {
|
|
1355
|
+
return runBridgeApplyCommand(rest, io, "repair");
|
|
1356
|
+
}
|
|
1357
|
+
if (subcommand === "remove") {
|
|
1358
|
+
return runBridgeApplyCommand(rest, io, "remove");
|
|
1359
|
+
}
|
|
1360
|
+
io.stderr.write([
|
|
1361
|
+
`Unknown bridge command: ${subcommand}`,
|
|
1362
|
+
"",
|
|
1363
|
+
"Usage: gdh bridge status [target]",
|
|
1364
|
+
"Usage: gdh bridge doctor [target]",
|
|
1365
|
+
"Usage: gdh bridge install [target] [--dry-run]",
|
|
1366
|
+
"Usage: gdh bridge repair [target] [--dry-run]",
|
|
1367
|
+
"Usage: gdh bridge remove [target] [--dry-run]",
|
|
1368
|
+
].join("\n") + "\n");
|
|
1369
|
+
return 1;
|
|
1370
|
+
}
|
|
1371
|
+
async function runScenarioCommand(args, io) {
|
|
1372
|
+
const [subcommand, ...rest] = args;
|
|
1373
|
+
if (!subcommand || subcommand === "--help" || subcommand === "help") {
|
|
1374
|
+
io.stdout.write([
|
|
1375
|
+
"Usage: gdh verification-scenario <command> [target] [verification-scenario-id]",
|
|
1376
|
+
"",
|
|
1377
|
+
"Commands:",
|
|
1378
|
+
" list [target] List verification scenarios discovered under .gdh/verification-scenarios as JSON.",
|
|
1379
|
+
" show [target] <verification-scenario-id> Show one verification scenario as JSON.",
|
|
1380
|
+
].join("\n") + "\n");
|
|
1381
|
+
return 0;
|
|
1382
|
+
}
|
|
1383
|
+
if (subcommand === "list") {
|
|
1384
|
+
return runScenarioListCommand(rest, io);
|
|
1385
|
+
}
|
|
1386
|
+
if (subcommand === "show") {
|
|
1387
|
+
return runScenarioShowCommand(rest, io);
|
|
1388
|
+
}
|
|
1389
|
+
io.stderr.write([
|
|
1390
|
+
`Unknown verification-scenario command: ${subcommand}`,
|
|
1391
|
+
"",
|
|
1392
|
+
"Usage: gdh verification-scenario list [target]",
|
|
1393
|
+
"Usage: gdh verification-scenario show [target] <verification-scenario-id>",
|
|
1394
|
+
].join("\n") + "\n");
|
|
1395
|
+
return 1;
|
|
1396
|
+
}
|
|
1397
|
+
async function runMigrateCommand(args, io) {
|
|
1398
|
+
if (args.includes("--help")) {
|
|
1399
|
+
io.stdout.write([
|
|
1400
|
+
"Usage: gdh migrate [target] [--apply]",
|
|
1401
|
+
"",
|
|
1402
|
+
"Plan or apply the current GDH project-surface migrations for one target.",
|
|
1403
|
+
].join("\n") + "\n");
|
|
1404
|
+
return 0;
|
|
1405
|
+
}
|
|
1406
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1407
|
+
usage: "Usage: gdh migrate [target] [--apply]\n",
|
|
1408
|
+
booleanOptions: ["--apply"],
|
|
1409
|
+
});
|
|
1410
|
+
if (unsupportedOptionsError !== null) {
|
|
1411
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1412
|
+
return 1;
|
|
1413
|
+
}
|
|
1414
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--apply"]));
|
|
1415
|
+
if (positionalArgs.length > 1) {
|
|
1416
|
+
io.stderr.write("Usage error: gdh migrate accepts at most one positional target path.\n");
|
|
1417
|
+
return 1;
|
|
1418
|
+
}
|
|
1419
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
1420
|
+
const dryRun = !args.includes("--apply");
|
|
1421
|
+
try {
|
|
1422
|
+
const result = await migrateProjectLifecycleSurface({ targetPath, dryRun });
|
|
1423
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
1424
|
+
return result.state === "blocked" ? 1 : 0;
|
|
1425
|
+
}
|
|
1426
|
+
catch (error) {
|
|
1427
|
+
io.stderr.write(`Failed to migrate "${targetPath}": ${formatCliError(error)}\n`);
|
|
1428
|
+
return 1;
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
async function runBridgeStatusCommand(args, io) {
|
|
1432
|
+
if (args.includes("--help")) {
|
|
1433
|
+
io.stdout.write([
|
|
1434
|
+
"Usage: gdh bridge status [target]",
|
|
1435
|
+
"Usage: gdh bridge doctor [target]",
|
|
1436
|
+
"",
|
|
1437
|
+
"Inspect the managed runtime bridge lifecycle state for one target.",
|
|
1438
|
+
].join("\n") + "\n");
|
|
1439
|
+
return 0;
|
|
1440
|
+
}
|
|
1441
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1442
|
+
usage: "Usage: gdh bridge status [target]\nUsage: gdh bridge doctor [target]\n",
|
|
1443
|
+
});
|
|
1444
|
+
if (unsupportedOptionsError !== null) {
|
|
1445
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1446
|
+
return 1;
|
|
1447
|
+
}
|
|
1448
|
+
const positionalArgs = extractPositionalArgs(args, new Set());
|
|
1449
|
+
if (positionalArgs.length > 1) {
|
|
1450
|
+
io.stderr.write("Usage error: gdh bridge status accepts at most one positional target path.\n");
|
|
1451
|
+
return 1;
|
|
1452
|
+
}
|
|
1453
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
1454
|
+
const commandStartedAtMs = Date.now();
|
|
1455
|
+
try {
|
|
1456
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
1457
|
+
const result = await inspectRuntimeBridgeSurface({
|
|
1458
|
+
targetPath,
|
|
1459
|
+
projectConfig,
|
|
1460
|
+
});
|
|
1461
|
+
await recordSessionEvent(targetPath, {
|
|
1462
|
+
commandStartedAtMs,
|
|
1463
|
+
kind: "bridge_status",
|
|
1464
|
+
command: "gdh bridge status",
|
|
1465
|
+
state: result.state === "ready" ? "succeeded" : "blocked",
|
|
1466
|
+
summary: result.summary,
|
|
1467
|
+
});
|
|
1468
|
+
writeJsonResult(io, result);
|
|
1469
|
+
return result.state === "ready" ? 0 : 1;
|
|
1470
|
+
}
|
|
1471
|
+
catch (error) {
|
|
1472
|
+
await recordSessionEvent(targetPath, {
|
|
1473
|
+
commandStartedAtMs,
|
|
1474
|
+
kind: "bridge_status",
|
|
1475
|
+
command: "gdh bridge status",
|
|
1476
|
+
state: "failed",
|
|
1477
|
+
summary: "Runtime bridge status inspection failed before producing a result.",
|
|
1478
|
+
errorMessage: formatCliError(error),
|
|
1479
|
+
});
|
|
1480
|
+
io.stderr.write(`Failed to inspect runtime bridge status for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1481
|
+
return 1;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
async function runBridgeApplyCommand(args, io, operation) {
|
|
1485
|
+
if (args.includes("--help")) {
|
|
1486
|
+
io.stdout.write([
|
|
1487
|
+
`Usage: gdh bridge ${operation} [target] [--dry-run]`,
|
|
1488
|
+
"",
|
|
1489
|
+
`Plan or apply the runtime bridge ${operation} flow for one target.`,
|
|
1490
|
+
].join("\n") + "\n");
|
|
1491
|
+
return 0;
|
|
1492
|
+
}
|
|
1493
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1494
|
+
usage: `Usage: gdh bridge ${operation} [target] [--dry-run]\n`,
|
|
1495
|
+
booleanOptions: ["--dry-run"],
|
|
1496
|
+
});
|
|
1497
|
+
if (unsupportedOptionsError !== null) {
|
|
1498
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1499
|
+
return 1;
|
|
1500
|
+
}
|
|
1501
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--dry-run"]));
|
|
1502
|
+
if (positionalArgs.length > 1) {
|
|
1503
|
+
io.stderr.write(`Usage error: gdh bridge ${operation} accepts at most one positional target path.\n`);
|
|
1504
|
+
return 1;
|
|
1505
|
+
}
|
|
1506
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
1507
|
+
const dryRun = args.includes("--dry-run");
|
|
1508
|
+
const commandStartedAtMs = Date.now();
|
|
1509
|
+
try {
|
|
1510
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
1511
|
+
const result = operation === "install"
|
|
1512
|
+
? await installRuntimeBridgeSurface({
|
|
1513
|
+
targetPath,
|
|
1514
|
+
projectConfig,
|
|
1515
|
+
dryRun,
|
|
1516
|
+
})
|
|
1517
|
+
: operation === "repair"
|
|
1518
|
+
? await repairRuntimeBridgeSurface({
|
|
1519
|
+
targetPath,
|
|
1520
|
+
projectConfig,
|
|
1521
|
+
dryRun,
|
|
1522
|
+
})
|
|
1523
|
+
: await removeRuntimeBridgeSurface({
|
|
1524
|
+
targetPath,
|
|
1525
|
+
projectConfig,
|
|
1526
|
+
dryRun,
|
|
1527
|
+
});
|
|
1528
|
+
await recordSessionEvent(targetPath, {
|
|
1529
|
+
commandStartedAtMs,
|
|
1530
|
+
kind: operation === "install"
|
|
1531
|
+
? "bridge_install"
|
|
1532
|
+
: operation === "repair"
|
|
1533
|
+
? "bridge_repair"
|
|
1534
|
+
: "bridge_remove",
|
|
1535
|
+
command: `gdh bridge ${operation}`,
|
|
1536
|
+
state: result.state === "blocked" ? "blocked" : "succeeded",
|
|
1537
|
+
summary: result.summary,
|
|
1538
|
+
producedArtifacts: dryRun || result.operation === "remove"
|
|
1539
|
+
? []
|
|
1540
|
+
: result.actions
|
|
1541
|
+
.filter((action) => action.kind === "write_file")
|
|
1542
|
+
.map((action) => path.join(targetPath, action.relativePath)),
|
|
1543
|
+
});
|
|
1544
|
+
writeJsonResult(io, result);
|
|
1545
|
+
return result.state === "blocked" ? 1 : 0;
|
|
1546
|
+
}
|
|
1547
|
+
catch (error) {
|
|
1548
|
+
await recordSessionEvent(targetPath, {
|
|
1549
|
+
commandStartedAtMs,
|
|
1550
|
+
kind: operation === "install"
|
|
1551
|
+
? "bridge_install"
|
|
1552
|
+
: operation === "repair"
|
|
1553
|
+
? "bridge_repair"
|
|
1554
|
+
: "bridge_remove",
|
|
1555
|
+
command: `gdh bridge ${operation}`,
|
|
1556
|
+
state: "failed",
|
|
1557
|
+
summary: `Runtime bridge ${operation} failed before producing a result.`,
|
|
1558
|
+
errorMessage: formatCliError(error),
|
|
1559
|
+
});
|
|
1560
|
+
io.stderr.write(`Failed to ${operation} runtime bridge for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1561
|
+
return 1;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
async function runRecipeListCommand(args, io) {
|
|
1565
|
+
if (args.includes("--help")) {
|
|
1566
|
+
io.stdout.write([
|
|
1567
|
+
"Usage: gdh run-config list [target]",
|
|
1568
|
+
"",
|
|
1569
|
+
"List run configurations discovered under .gdh/run-configurations and print a JSON summary.",
|
|
1570
|
+
].join("\n") + "\n");
|
|
1571
|
+
return 0;
|
|
1572
|
+
}
|
|
1573
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1574
|
+
usage: "Usage: gdh run-config list [target]\n",
|
|
1575
|
+
});
|
|
1576
|
+
if (unsupportedOptionsError !== null) {
|
|
1577
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1578
|
+
return 1;
|
|
1579
|
+
}
|
|
1580
|
+
const positionalArgs = extractRecipePositionalArgs(args);
|
|
1581
|
+
if (positionalArgs.length > 1) {
|
|
1582
|
+
io.stderr.write("Usage error: gdh run-config list accepts at most one positional target path.\n");
|
|
1583
|
+
return 1;
|
|
1584
|
+
}
|
|
1585
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
1586
|
+
const commandStartedAtMs = Date.now();
|
|
1587
|
+
try {
|
|
1588
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
1589
|
+
const result = await listRuntimeRecipes({
|
|
1590
|
+
targetPath,
|
|
1591
|
+
projectConfig,
|
|
1592
|
+
});
|
|
1593
|
+
await recordSessionEvent(targetPath, {
|
|
1594
|
+
commandStartedAtMs,
|
|
1595
|
+
kind: "recipe_list",
|
|
1596
|
+
command: "gdh run-config list",
|
|
1597
|
+
state: result.state === "ready" ? "succeeded" : "blocked",
|
|
1598
|
+
summary: result.summary,
|
|
1599
|
+
});
|
|
1600
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
1601
|
+
return 0;
|
|
1602
|
+
}
|
|
1603
|
+
catch (error) {
|
|
1604
|
+
await recordSessionEvent(targetPath, {
|
|
1605
|
+
commandStartedAtMs,
|
|
1606
|
+
kind: "recipe_list",
|
|
1607
|
+
command: "gdh run-config list",
|
|
1608
|
+
state: "failed",
|
|
1609
|
+
summary: "Run-configuration listing failed before producing a result.",
|
|
1610
|
+
errorMessage: formatCliError(error),
|
|
1611
|
+
});
|
|
1612
|
+
io.stderr.write(`Failed to list run configurations for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1613
|
+
return 1;
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
async function runRecipeShowCommand(args, io) {
|
|
1617
|
+
if (args.includes("--help")) {
|
|
1618
|
+
io.stdout.write([
|
|
1619
|
+
"Usage: gdh run-config show [target] <run-config-id>",
|
|
1620
|
+
"",
|
|
1621
|
+
"Show one run configuration and print the parsed result as JSON.",
|
|
1622
|
+
].join("\n") + "\n");
|
|
1623
|
+
return 0;
|
|
1624
|
+
}
|
|
1625
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1626
|
+
usage: "Usage: gdh run-config show [target] <run-config-id>\n",
|
|
1627
|
+
});
|
|
1628
|
+
if (unsupportedOptionsError !== null) {
|
|
1629
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1630
|
+
return 1;
|
|
1631
|
+
}
|
|
1632
|
+
const positionalArgs = extractRecipePositionalArgs(args);
|
|
1633
|
+
if (positionalArgs.length === 0 || positionalArgs.length > 2) {
|
|
1634
|
+
io.stderr.write("Usage error: gdh run-config show requires <run-config-id> and accepts at most one positional target path.\n");
|
|
1635
|
+
return 1;
|
|
1636
|
+
}
|
|
1637
|
+
const targetPath = positionalArgs.length === 1 ? "." : positionalArgs[0];
|
|
1638
|
+
const recipeId = positionalArgs.length === 1 ? positionalArgs[0] : positionalArgs[1];
|
|
1639
|
+
const commandStartedAtMs = Date.now();
|
|
1640
|
+
try {
|
|
1641
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
1642
|
+
const result = await showRuntimeRecipe({
|
|
1643
|
+
targetPath,
|
|
1644
|
+
projectConfig,
|
|
1645
|
+
recipeId,
|
|
1646
|
+
});
|
|
1647
|
+
await recordSessionEvent(targetPath, {
|
|
1648
|
+
commandStartedAtMs,
|
|
1649
|
+
kind: "recipe_show",
|
|
1650
|
+
command: "gdh run-config show",
|
|
1651
|
+
state: result.state === "ready" ? "succeeded" : "blocked",
|
|
1652
|
+
summary: result.summary,
|
|
1653
|
+
});
|
|
1654
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
1655
|
+
return result.state === "ready" ? 0 : 1;
|
|
1656
|
+
}
|
|
1657
|
+
catch (error) {
|
|
1658
|
+
await recordSessionEvent(targetPath, {
|
|
1659
|
+
commandStartedAtMs,
|
|
1660
|
+
kind: "recipe_show",
|
|
1661
|
+
command: "gdh run-config show",
|
|
1662
|
+
state: "failed",
|
|
1663
|
+
summary: "Run-configuration inspection failed before producing a result.",
|
|
1664
|
+
errorMessage: formatCliError(error),
|
|
1665
|
+
});
|
|
1666
|
+
io.stderr.write(`Failed to show run configuration "${recipeId}" for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1667
|
+
return 1;
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
async function runRecipeCheckCommand(args, io) {
|
|
1671
|
+
if (args.includes("--help")) {
|
|
1672
|
+
io.stdout.write([
|
|
1673
|
+
"Usage: gdh run-config check [target] <run-config-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value]",
|
|
1674
|
+
"",
|
|
1675
|
+
"Check whether a run configuration is runnable, blocked, or misconfigured and print the structured result as JSON.",
|
|
1676
|
+
].join("\n") + "\n");
|
|
1677
|
+
return 0;
|
|
1678
|
+
}
|
|
1679
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1680
|
+
usage: "Usage: gdh run-config check [target] <run-config-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value]\n",
|
|
1681
|
+
optionsWithValues: ["--provider", "--param", "--feature", "--no-feature", "--env"],
|
|
1682
|
+
});
|
|
1683
|
+
if (unsupportedOptionsError !== null) {
|
|
1684
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1685
|
+
return 1;
|
|
1686
|
+
}
|
|
1687
|
+
const positionalArgs = extractRecipePositionalArgs(args);
|
|
1688
|
+
if (positionalArgs.length === 0 || positionalArgs.length > 2) {
|
|
1689
|
+
io.stderr.write("Usage error: gdh run-config check requires <run-config-id> and accepts at most one positional target path.\n");
|
|
1690
|
+
return 1;
|
|
1691
|
+
}
|
|
1692
|
+
const targetPath = positionalArgs.length === 1 ? "." : positionalArgs[0];
|
|
1693
|
+
const recipeId = positionalArgs.length === 1 ? positionalArgs[0] : positionalArgs[1];
|
|
1694
|
+
const commandStartedAtMs = Date.now();
|
|
1695
|
+
try {
|
|
1696
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
1697
|
+
const result = await checkRuntimeRecipe({
|
|
1698
|
+
targetPath,
|
|
1699
|
+
projectConfig,
|
|
1700
|
+
recipeId,
|
|
1701
|
+
provider: readSingleOptionValue(args, "--provider"),
|
|
1702
|
+
parameters: collectAssignmentOptionValues(args, "--param"),
|
|
1703
|
+
enabledFeatures: collectOptionValues(args, "--feature"),
|
|
1704
|
+
disabledFeatures: collectOptionValues(args, "--no-feature"),
|
|
1705
|
+
environment: collectAssignmentOptionValues(args, "--env"),
|
|
1706
|
+
workspaceMode: "isolated_copy",
|
|
1707
|
+
});
|
|
1708
|
+
await recordSessionEvent(targetPath, {
|
|
1709
|
+
commandStartedAtMs,
|
|
1710
|
+
kind: "recipe_check",
|
|
1711
|
+
command: "gdh run-config check",
|
|
1712
|
+
state: result.state === "runnable" ? "succeeded" : "blocked",
|
|
1713
|
+
summary: result.summary,
|
|
1714
|
+
});
|
|
1715
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
1716
|
+
return result.state === "runnable" ? 0 : 1;
|
|
1717
|
+
}
|
|
1718
|
+
catch (error) {
|
|
1719
|
+
await recordSessionEvent(targetPath, {
|
|
1720
|
+
commandStartedAtMs,
|
|
1721
|
+
kind: "recipe_check",
|
|
1722
|
+
command: "gdh run-config check",
|
|
1723
|
+
state: "failed",
|
|
1724
|
+
summary: "Run-configuration readiness evaluation failed before producing a result.",
|
|
1725
|
+
errorMessage: formatCliError(error),
|
|
1726
|
+
});
|
|
1727
|
+
io.stderr.write(`Failed to check run configuration "${recipeId}" for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1728
|
+
return 1;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
async function runRecipeRunCommand(args, io) {
|
|
1732
|
+
if (args.includes("--help")) {
|
|
1733
|
+
io.stdout.write([
|
|
1734
|
+
"Usage: gdh run-config run [target] <run-config-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value] [--live-workspace]",
|
|
1735
|
+
"",
|
|
1736
|
+
"Run one run configuration and print structured process evidence as JSON.",
|
|
1737
|
+
].join("\n") + "\n");
|
|
1738
|
+
return 0;
|
|
1739
|
+
}
|
|
1740
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1741
|
+
usage: "Usage: gdh run-config run [target] <run-config-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value] [--live-workspace]\n",
|
|
1742
|
+
optionsWithValues: ["--provider", "--param", "--feature", "--no-feature", "--env"],
|
|
1743
|
+
booleanOptions: ["--live-workspace"],
|
|
1744
|
+
});
|
|
1745
|
+
if (unsupportedOptionsError !== null) {
|
|
1746
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1747
|
+
return 1;
|
|
1748
|
+
}
|
|
1749
|
+
const positionalArgs = extractRecipePositionalArgs(args);
|
|
1750
|
+
if (positionalArgs.length === 0 || positionalArgs.length > 2) {
|
|
1751
|
+
io.stderr.write("Usage error: gdh run-config run requires <run-config-id> and accepts at most one positional target path.\n");
|
|
1752
|
+
return 1;
|
|
1753
|
+
}
|
|
1754
|
+
const targetPath = positionalArgs.length === 1 ? "." : positionalArgs[0];
|
|
1755
|
+
const recipeId = positionalArgs.length === 1 ? positionalArgs[0] : positionalArgs[1];
|
|
1756
|
+
const commandStartedAtMs = Date.now();
|
|
1757
|
+
try {
|
|
1758
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
1759
|
+
const result = await runRuntimeRecipe({
|
|
1760
|
+
targetPath,
|
|
1761
|
+
projectConfig,
|
|
1762
|
+
recipeId,
|
|
1763
|
+
provider: readSingleOptionValue(args, "--provider"),
|
|
1764
|
+
parameters: collectAssignmentOptionValues(args, "--param"),
|
|
1765
|
+
enabledFeatures: collectOptionValues(args, "--feature"),
|
|
1766
|
+
disabledFeatures: collectOptionValues(args, "--no-feature"),
|
|
1767
|
+
environment: collectAssignmentOptionValues(args, "--env"),
|
|
1768
|
+
workspaceMode: args.includes("--live-workspace") ? "live_workspace" : "isolated_copy",
|
|
1769
|
+
});
|
|
1770
|
+
await recordSessionEvent(targetPath, {
|
|
1771
|
+
commandStartedAtMs,
|
|
1772
|
+
kind: "recipe_run",
|
|
1773
|
+
command: "gdh run-config run",
|
|
1774
|
+
state: result.state === "passed" ? "succeeded" : result.state === "blocked" ? "blocked" : "failed",
|
|
1775
|
+
summary: result.summary,
|
|
1776
|
+
producedArtifacts: result.artifacts.map((entry) => entry.path),
|
|
1777
|
+
});
|
|
1778
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
1779
|
+
return result.state === "passed" ? 0 : 1;
|
|
1780
|
+
}
|
|
1781
|
+
catch (error) {
|
|
1782
|
+
await recordSessionEvent(targetPath, {
|
|
1783
|
+
commandStartedAtMs,
|
|
1784
|
+
kind: "recipe_run",
|
|
1785
|
+
command: "gdh run-config run",
|
|
1786
|
+
state: "failed",
|
|
1787
|
+
summary: "Run-configuration execution failed before producing a result.",
|
|
1788
|
+
errorMessage: formatCliError(error),
|
|
1789
|
+
});
|
|
1790
|
+
io.stderr.write(`Failed to run run configuration "${recipeId}" for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1791
|
+
return 1;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
async function runScenarioListCommand(args, io) {
|
|
1795
|
+
if (args.includes("--help")) {
|
|
1796
|
+
io.stdout.write([
|
|
1797
|
+
"Usage: gdh verification-scenario list [target]",
|
|
1798
|
+
"",
|
|
1799
|
+
"List verification scenarios discovered under .gdh/verification-scenarios and print a JSON summary.",
|
|
1800
|
+
].join("\n") + "\n");
|
|
1801
|
+
return 0;
|
|
1802
|
+
}
|
|
1803
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1804
|
+
usage: "Usage: gdh verification-scenario list [target]\n",
|
|
1805
|
+
});
|
|
1806
|
+
if (unsupportedOptionsError !== null) {
|
|
1807
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1808
|
+
return 1;
|
|
1809
|
+
}
|
|
1810
|
+
const positionalArgs = extractRecipePositionalArgs(args);
|
|
1811
|
+
if (positionalArgs.length > 1) {
|
|
1812
|
+
io.stderr.write("Usage error: gdh verification-scenario list accepts at most one positional target path.\n");
|
|
1813
|
+
return 1;
|
|
1814
|
+
}
|
|
1815
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
1816
|
+
const commandStartedAtMs = Date.now();
|
|
1817
|
+
try {
|
|
1818
|
+
const result = await listRuntimeScenarios({ targetPath });
|
|
1819
|
+
await recordSessionEvent(targetPath, {
|
|
1820
|
+
commandStartedAtMs,
|
|
1821
|
+
kind: "scenario_list",
|
|
1822
|
+
command: "gdh verification-scenario list",
|
|
1823
|
+
state: result.state === "ready" ? "succeeded" : "blocked",
|
|
1824
|
+
summary: result.summary,
|
|
1825
|
+
});
|
|
1826
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
1827
|
+
return result.state === "ready" ? 0 : 1;
|
|
1828
|
+
}
|
|
1829
|
+
catch (error) {
|
|
1830
|
+
await recordSessionEvent(targetPath, {
|
|
1831
|
+
commandStartedAtMs,
|
|
1832
|
+
kind: "scenario_list",
|
|
1833
|
+
command: "gdh verification-scenario list",
|
|
1834
|
+
state: "failed",
|
|
1835
|
+
summary: "Verification-scenario listing failed before producing a result.",
|
|
1836
|
+
errorMessage: formatCliError(error),
|
|
1837
|
+
});
|
|
1838
|
+
io.stderr.write(`Failed to list verification scenarios for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1839
|
+
return 1;
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
async function runScenarioShowCommand(args, io) {
|
|
1843
|
+
if (args.includes("--help")) {
|
|
1844
|
+
io.stdout.write([
|
|
1845
|
+
"Usage: gdh verification-scenario show [target] <verification-scenario-id>",
|
|
1846
|
+
"",
|
|
1847
|
+
"Show one verification scenario and print the parsed result as JSON.",
|
|
1848
|
+
].join("\n") + "\n");
|
|
1849
|
+
return 0;
|
|
1850
|
+
}
|
|
1851
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1852
|
+
usage: "Usage: gdh verification-scenario show [target] <verification-scenario-id>\n",
|
|
1853
|
+
});
|
|
1854
|
+
if (unsupportedOptionsError !== null) {
|
|
1855
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1856
|
+
return 1;
|
|
1857
|
+
}
|
|
1858
|
+
const positionalArgs = extractRecipePositionalArgs(args);
|
|
1859
|
+
if (positionalArgs.length === 0 || positionalArgs.length > 2) {
|
|
1860
|
+
io.stderr.write("Usage error: gdh verification-scenario show requires <verification-scenario-id> and accepts at most one positional target path.\n");
|
|
1861
|
+
return 1;
|
|
1862
|
+
}
|
|
1863
|
+
const targetPath = positionalArgs.length === 1 ? "." : positionalArgs[0];
|
|
1864
|
+
const scenarioId = positionalArgs.length === 1 ? positionalArgs[0] : positionalArgs[1];
|
|
1865
|
+
const commandStartedAtMs = Date.now();
|
|
1866
|
+
try {
|
|
1867
|
+
const result = await showRuntimeScenario({
|
|
1868
|
+
targetPath,
|
|
1869
|
+
scenarioId,
|
|
1870
|
+
});
|
|
1871
|
+
await recordSessionEvent(targetPath, {
|
|
1872
|
+
commandStartedAtMs,
|
|
1873
|
+
kind: "scenario_show",
|
|
1874
|
+
command: "gdh verification-scenario show",
|
|
1875
|
+
state: result.state === "ready" ? "succeeded" : "blocked",
|
|
1876
|
+
summary: result.summary,
|
|
1877
|
+
});
|
|
1878
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
1879
|
+
return result.state === "ready" ? 0 : 1;
|
|
1880
|
+
}
|
|
1881
|
+
catch (error) {
|
|
1882
|
+
await recordSessionEvent(targetPath, {
|
|
1883
|
+
commandStartedAtMs,
|
|
1884
|
+
kind: "scenario_show",
|
|
1885
|
+
command: "gdh verification-scenario show",
|
|
1886
|
+
state: "failed",
|
|
1887
|
+
summary: "Verification-scenario inspection failed before producing a result.",
|
|
1888
|
+
errorMessage: formatCliError(error),
|
|
1889
|
+
});
|
|
1890
|
+
io.stderr.write(`Failed to show verification scenario "${scenarioId}" for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1891
|
+
return 1;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
async function runAdaptersStatusCommand(args, io) {
|
|
1895
|
+
if (args.includes("--help")) {
|
|
1896
|
+
io.stdout.write([
|
|
1897
|
+
"Usage: gdh adapters status [target] [--integration-root <path>]",
|
|
1898
|
+
"",
|
|
1899
|
+
"Inspect Codex, Claude, and Cursor reinforcement status, including repo-local and user-local MCP readiness, as JSON.",
|
|
1900
|
+
"Use --integration-root when the agent-facing repo root differs from the nested GDH target root.",
|
|
1901
|
+
].join("\n") + "\n");
|
|
1902
|
+
return 0;
|
|
1903
|
+
}
|
|
1904
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1905
|
+
usage: "Usage: gdh adapters status [target] [--integration-root <path>]\n",
|
|
1906
|
+
optionsWithValues: ["--integration-root"],
|
|
1907
|
+
});
|
|
1908
|
+
if (unsupportedOptionsError !== null) {
|
|
1909
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1910
|
+
return 1;
|
|
1911
|
+
}
|
|
1912
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--integration-root"]));
|
|
1913
|
+
if (positionalArgs.length > 1) {
|
|
1914
|
+
io.stderr.write("Usage error: gdh adapters status accepts at most one positional target path.\n");
|
|
1915
|
+
return 1;
|
|
1916
|
+
}
|
|
1917
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
1918
|
+
const integrationRootPath = readSingleOptionValue(args, "--integration-root");
|
|
1919
|
+
try {
|
|
1920
|
+
const result = await getSupportedAgentAdaptersStatus(targetPath, {
|
|
1921
|
+
integrationRootPath,
|
|
1922
|
+
});
|
|
1923
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
1924
|
+
return 0;
|
|
1925
|
+
}
|
|
1926
|
+
catch (error) {
|
|
1927
|
+
io.stderr.write(`Failed to inspect adapter status for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1928
|
+
return 1;
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
async function runAdaptersInstallCommand(args, io) {
|
|
1932
|
+
if (args.includes("--help")) {
|
|
1933
|
+
io.stdout.write([
|
|
1934
|
+
"Usage: gdh adapters install [target] [--dry-run] [--agent <name>] [--user] [--dev-repo <path>] [--integration-root <path>]",
|
|
1935
|
+
"",
|
|
1936
|
+
"Install or repair supported-agent reinforcement surfaces while keeping AGENTS.md canonical.",
|
|
1937
|
+
"--user installs user-local agent registration instead of repo-local surfaces.",
|
|
1938
|
+
"Use --integration-root when the agent-facing repo root differs from the nested GDH target root.",
|
|
1939
|
+
"Supported agents: codex, claude, cursor",
|
|
1940
|
+
].join("\n") + "\n");
|
|
1941
|
+
return 0;
|
|
1942
|
+
}
|
|
1943
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1944
|
+
usage: "Usage: gdh adapters install [target] [--dry-run] [--agent <name>] [--user] [--dev-repo <path>] [--integration-root <path>]\n",
|
|
1945
|
+
optionsWithValues: ["--agent", "--dev-repo", "--integration-root"],
|
|
1946
|
+
booleanOptions: ["--dry-run", "--user"],
|
|
1947
|
+
});
|
|
1948
|
+
if (unsupportedOptionsError !== null) {
|
|
1949
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1950
|
+
return 1;
|
|
1951
|
+
}
|
|
1952
|
+
const dryRun = args.includes("--dry-run");
|
|
1953
|
+
const user = args.includes("--user");
|
|
1954
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--agent", "--dev-repo", "--integration-root"]));
|
|
1955
|
+
if (positionalArgs.length > 1) {
|
|
1956
|
+
io.stderr.write("Usage error: gdh adapters install accepts at most one positional target path.\n");
|
|
1957
|
+
return 1;
|
|
1958
|
+
}
|
|
1959
|
+
const agents = collectAdapterNames(args);
|
|
1960
|
+
if (agents === null) {
|
|
1961
|
+
io.stderr.write("Usage error: --agent must be one of codex, claude, or cursor.\n");
|
|
1962
|
+
return 1;
|
|
1963
|
+
}
|
|
1964
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
1965
|
+
const devRepoPath = readSingleOptionValue(args, "--dev-repo");
|
|
1966
|
+
const integrationRootPath = readSingleOptionValue(args, "--integration-root");
|
|
1967
|
+
try {
|
|
1968
|
+
const result = await installSupportedAgentAdapters(targetPath, {
|
|
1969
|
+
dryRun,
|
|
1970
|
+
agents,
|
|
1971
|
+
user,
|
|
1972
|
+
devRepoPath: devRepoPath ?? resolveCurrentGdhInstall(import.meta.url).defaultDevRepoPath,
|
|
1973
|
+
integrationRootPath,
|
|
1974
|
+
});
|
|
1975
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
1976
|
+
return result.state === "blocked" ? 1 : 0;
|
|
1977
|
+
}
|
|
1978
|
+
catch (error) {
|
|
1979
|
+
io.stderr.write(`Failed to install adapters for "${targetPath}": ${formatCliError(error)}\n`);
|
|
1980
|
+
return 1;
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
async function runGsdSnapshotCommand(args, io) {
|
|
1984
|
+
if (args.includes("--help")) {
|
|
1985
|
+
io.stdout.write([
|
|
1986
|
+
"Usage: gdh adapters gsd snapshot [target] [--files <path>] [--performed <kind>]",
|
|
1987
|
+
"",
|
|
1988
|
+
"Export a read-mostly GSD projection over current GDH status, guidance, and validation surfaces as JSON.",
|
|
1989
|
+
].join("\n") + "\n");
|
|
1990
|
+
return 0;
|
|
1991
|
+
}
|
|
1992
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
1993
|
+
usage: "Usage: gdh adapters gsd snapshot [target] [--files <path>] [--performed <kind>]\n",
|
|
1994
|
+
optionsWithValues: ["--files", "--performed"],
|
|
1995
|
+
});
|
|
1996
|
+
if (unsupportedOptionsError !== null) {
|
|
1997
|
+
io.stderr.write(unsupportedOptionsError);
|
|
1998
|
+
return 1;
|
|
1999
|
+
}
|
|
2000
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--files", "--performed"]));
|
|
2001
|
+
if (positionalArgs.length > 1) {
|
|
2002
|
+
io.stderr.write("Usage error: gdh adapters gsd snapshot accepts at most one positional target path.\n");
|
|
2003
|
+
return 1;
|
|
2004
|
+
}
|
|
2005
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2006
|
+
try {
|
|
2007
|
+
const result = await createGsdSnapshot(targetPath, {
|
|
2008
|
+
files: collectOptionValues(args, "--files"),
|
|
2009
|
+
performed: collectPerformedValidationKinds(args),
|
|
2010
|
+
});
|
|
2011
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2012
|
+
return 0;
|
|
2013
|
+
}
|
|
2014
|
+
catch (error) {
|
|
2015
|
+
io.stderr.write(`Failed to create a GSD snapshot for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2016
|
+
return 1;
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
async function runMcpManifestCommand(args, io) {
|
|
2020
|
+
if (args.includes("--help")) {
|
|
2021
|
+
io.stdout.write(["Usage: gdh mcp manifest", "", "Print the thin GDH MCP manifest as JSON."].join("\n") + "\n");
|
|
2022
|
+
return 0;
|
|
2023
|
+
}
|
|
2024
|
+
io.stdout.write(`${JSON.stringify(createMcpManifest(), null, 2)}\n`);
|
|
2025
|
+
return 0;
|
|
2026
|
+
}
|
|
2027
|
+
async function runMcpServeCommand(args, io) {
|
|
2028
|
+
if (args.includes("--help")) {
|
|
2029
|
+
io.stdout.write([
|
|
2030
|
+
"Usage: gdh mcp serve --target <path>",
|
|
2031
|
+
"",
|
|
2032
|
+
"Run the real GDH stdio MCP server for one bound target path.",
|
|
2033
|
+
].join("\n") + "\n");
|
|
2034
|
+
return 0;
|
|
2035
|
+
}
|
|
2036
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2037
|
+
usage: "Usage: gdh mcp serve --target <path>\n",
|
|
2038
|
+
optionsWithValues: ["--target"],
|
|
2039
|
+
});
|
|
2040
|
+
if (unsupportedOptionsError !== null) {
|
|
2041
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2042
|
+
return 1;
|
|
2043
|
+
}
|
|
2044
|
+
const targetPath = readSingleOptionValue(args, "--target");
|
|
2045
|
+
if (targetPath === null) {
|
|
2046
|
+
io.stderr.write("Usage error: gdh mcp serve requires --target <path>.\n");
|
|
2047
|
+
return 1;
|
|
2048
|
+
}
|
|
2049
|
+
if (extractPositionalArgs(args, new Set(["--target"])).length > 0) {
|
|
2050
|
+
io.stderr.write("Usage error: gdh mcp serve accepts only --target <path>.\n");
|
|
2051
|
+
return 1;
|
|
2052
|
+
}
|
|
2053
|
+
try {
|
|
2054
|
+
await serveMcpOverStdio(targetPath);
|
|
2055
|
+
return 0;
|
|
2056
|
+
}
|
|
2057
|
+
catch (error) {
|
|
2058
|
+
io.stderr.write(`Failed to start the GDH MCP server for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2059
|
+
return 1;
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
async function runMcpInvokeCommand(args, io) {
|
|
2063
|
+
if (args.includes("--help")) {
|
|
2064
|
+
io.stdout.write([
|
|
2065
|
+
"Usage: gdh mcp invoke <tool> [target] [--input-json <json>]",
|
|
2066
|
+
"",
|
|
2067
|
+
"Invoke one GDH MCP tool through the local registry and print the result envelope as JSON.",
|
|
2068
|
+
].join("\n") + "\n");
|
|
2069
|
+
return 0;
|
|
2070
|
+
}
|
|
2071
|
+
const [toolName, ...rest] = args;
|
|
2072
|
+
if (!toolName) {
|
|
2073
|
+
io.stderr.write("Usage error: gdh mcp invoke requires a <tool> name.\n");
|
|
2074
|
+
return 1;
|
|
2075
|
+
}
|
|
2076
|
+
const manifest = createMcpManifest();
|
|
2077
|
+
if (!manifest.tools.some((tool) => tool.name === toolName)) {
|
|
2078
|
+
io.stderr.write(`Usage error: unknown MCP tool "${toolName}". Run \`gdh mcp manifest\` to inspect supported tools.\n`);
|
|
2079
|
+
return 1;
|
|
2080
|
+
}
|
|
2081
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(rest, {
|
|
2082
|
+
usage: "Usage: gdh mcp invoke <tool> [target] [--input-json <json>]\n",
|
|
2083
|
+
optionsWithValues: ["--input-json"],
|
|
2084
|
+
});
|
|
2085
|
+
if (unsupportedOptionsError !== null) {
|
|
2086
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2087
|
+
return 1;
|
|
2088
|
+
}
|
|
2089
|
+
const positionalArgs = extractPositionalArgs(rest, new Set(["--input-json"]));
|
|
2090
|
+
if (positionalArgs.length > 1) {
|
|
2091
|
+
io.stderr.write("Usage error: gdh mcp invoke accepts at most one positional target path.\n");
|
|
2092
|
+
return 1;
|
|
2093
|
+
}
|
|
2094
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2095
|
+
try {
|
|
2096
|
+
const result = await invokeMcpTool({
|
|
2097
|
+
toolName: toolName,
|
|
2098
|
+
targetPath,
|
|
2099
|
+
input: parseMcpInputJson(args),
|
|
2100
|
+
});
|
|
2101
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2102
|
+
return result.state === "succeeded" ? 0 : 1;
|
|
2103
|
+
}
|
|
2104
|
+
catch (error) {
|
|
2105
|
+
io.stderr.write(`Failed to invoke MCP tool "${toolName}": ${formatCliError(error)}\n`);
|
|
2106
|
+
return 1;
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
async function buildAuthoringContext(targetPath) {
|
|
2110
|
+
const inventory = await scanGodotProjectInventory(targetPath);
|
|
2111
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
2112
|
+
const worktreeState = await readWorktreeState(targetPath);
|
|
2113
|
+
const status = resolveAuthoringStatus({
|
|
2114
|
+
targetPath,
|
|
2115
|
+
inventory,
|
|
2116
|
+
projectConfig,
|
|
2117
|
+
worktreeState,
|
|
2118
|
+
});
|
|
2119
|
+
return {
|
|
2120
|
+
inventory,
|
|
2121
|
+
projectConfig,
|
|
2122
|
+
worktreeState,
|
|
2123
|
+
status,
|
|
2124
|
+
};
|
|
2125
|
+
}
|
|
2126
|
+
async function runVerifyRecommendCommand(args, io) {
|
|
2127
|
+
if (args.includes("--help")) {
|
|
2128
|
+
io.stdout.write([
|
|
2129
|
+
"Usage: gdh verify recommend [target] --files <path> [--files <path>...]",
|
|
2130
|
+
"",
|
|
2131
|
+
"Recommend authoring-first validation requirements for the supplied change set as JSON.",
|
|
2132
|
+
].join("\n") + "\n");
|
|
2133
|
+
return 0;
|
|
2134
|
+
}
|
|
2135
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2136
|
+
usage: "Usage: gdh verify recommend [target] --files <path> [--files <path>...]\n",
|
|
2137
|
+
optionsWithValues: ["--files"],
|
|
2138
|
+
});
|
|
2139
|
+
if (unsupportedOptionsError !== null) {
|
|
2140
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2141
|
+
return 1;
|
|
2142
|
+
}
|
|
2143
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--files"]));
|
|
2144
|
+
if (positionalArgs.length > 1) {
|
|
2145
|
+
io.stderr.write("Usage error: gdh verify recommend accepts at most one positional target path.\n");
|
|
2146
|
+
return 1;
|
|
2147
|
+
}
|
|
2148
|
+
const files = collectOptionValues(args, "--files");
|
|
2149
|
+
if (files.length === 0) {
|
|
2150
|
+
io.stderr.write("Usage error: gdh verify recommend requires at least one --files <path> argument.\n");
|
|
2151
|
+
return 1;
|
|
2152
|
+
}
|
|
2153
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2154
|
+
const commandStartedAtMs = Date.now();
|
|
2155
|
+
try {
|
|
2156
|
+
const context = await buildAuthoringContext(targetPath);
|
|
2157
|
+
const result = await recommendValidationForChange({
|
|
2158
|
+
targetPath,
|
|
2159
|
+
inventory: context.inventory,
|
|
2160
|
+
status: context.status,
|
|
2161
|
+
projectConfig: context.projectConfig,
|
|
2162
|
+
files,
|
|
2163
|
+
});
|
|
2164
|
+
await recordSessionEvent(targetPath, {
|
|
2165
|
+
commandStartedAtMs,
|
|
2166
|
+
kind: "verify_recommend",
|
|
2167
|
+
command: "gdh verify recommend",
|
|
2168
|
+
state: result.recommendations.length === 0 ? "blocked" : "succeeded",
|
|
2169
|
+
summary: result.summary,
|
|
2170
|
+
changedFiles: files,
|
|
2171
|
+
guidance: buildGuidanceSnapshot(result.guidance),
|
|
2172
|
+
validation: {
|
|
2173
|
+
changedFiles: files,
|
|
2174
|
+
recommendedKinds: result.recommendations.map((item) => item.kind),
|
|
2175
|
+
performedKinds: [],
|
|
2176
|
+
},
|
|
2177
|
+
});
|
|
2178
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2179
|
+
return 0;
|
|
2180
|
+
}
|
|
2181
|
+
catch (error) {
|
|
2182
|
+
await recordSessionEvent(targetPath, {
|
|
2183
|
+
commandStartedAtMs,
|
|
2184
|
+
kind: "verify_recommend",
|
|
2185
|
+
command: "gdh verify recommend",
|
|
2186
|
+
state: "failed",
|
|
2187
|
+
summary: "Validation recommendation failed before producing a result.",
|
|
2188
|
+
changedFiles: files,
|
|
2189
|
+
errorMessage: formatCliError(error),
|
|
2190
|
+
});
|
|
2191
|
+
io.stderr.write(`Failed to recommend validation for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2192
|
+
return 1;
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
async function runVerifyDoneCommand(args, io) {
|
|
2196
|
+
if (args.includes("--help")) {
|
|
2197
|
+
io.stdout.write([
|
|
2198
|
+
"Usage: gdh verify done [target] --files <path> [--files <path>...] [--performed <kind>]",
|
|
2199
|
+
"",
|
|
2200
|
+
"Evaluate whether the supplied change set is eligible to be called done as JSON.",
|
|
2201
|
+
].join("\n") + "\n");
|
|
2202
|
+
return 0;
|
|
2203
|
+
}
|
|
2204
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2205
|
+
usage: "Usage: gdh verify done [target] --files <path> [--files <path>...] [--performed <kind>]\n",
|
|
2206
|
+
optionsWithValues: ["--files", "--performed"],
|
|
2207
|
+
});
|
|
2208
|
+
if (unsupportedOptionsError !== null) {
|
|
2209
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2210
|
+
return 1;
|
|
2211
|
+
}
|
|
2212
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--files", "--performed"]));
|
|
2213
|
+
if (positionalArgs.length > 1) {
|
|
2214
|
+
io.stderr.write("Usage error: gdh verify done accepts at most one positional target path.\n");
|
|
2215
|
+
return 1;
|
|
2216
|
+
}
|
|
2217
|
+
const files = collectOptionValues(args, "--files");
|
|
2218
|
+
if (files.length === 0) {
|
|
2219
|
+
io.stderr.write("Usage error: gdh verify done requires at least one --files <path> argument.\n");
|
|
2220
|
+
return 1;
|
|
2221
|
+
}
|
|
2222
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2223
|
+
const commandStartedAtMs = Date.now();
|
|
2224
|
+
try {
|
|
2225
|
+
const context = await buildAuthoringContext(targetPath);
|
|
2226
|
+
const result = await evaluateDonePolicy({
|
|
2227
|
+
targetPath,
|
|
2228
|
+
inventory: context.inventory,
|
|
2229
|
+
status: context.status,
|
|
2230
|
+
projectConfig: context.projectConfig,
|
|
2231
|
+
files,
|
|
2232
|
+
performed: collectPerformedValidationKinds(args),
|
|
2233
|
+
});
|
|
2234
|
+
await recordSessionEvent(targetPath, {
|
|
2235
|
+
commandStartedAtMs,
|
|
2236
|
+
kind: "verify_done",
|
|
2237
|
+
command: "gdh verify done",
|
|
2238
|
+
state: result.status === "done" ? "succeeded" : "blocked",
|
|
2239
|
+
summary: result.summary,
|
|
2240
|
+
changedFiles: files,
|
|
2241
|
+
guidance: buildGuidanceSnapshot(result.recommendation.guidance),
|
|
2242
|
+
validation: {
|
|
2243
|
+
changedFiles: files,
|
|
2244
|
+
recommendedKinds: result.recommendation.recommendations.map((item) => item.kind),
|
|
2245
|
+
performedKinds: result.performedValidations.map((item) => item.kind),
|
|
2246
|
+
},
|
|
2247
|
+
});
|
|
2248
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2249
|
+
return 0;
|
|
2250
|
+
}
|
|
2251
|
+
catch (error) {
|
|
2252
|
+
await recordSessionEvent(targetPath, {
|
|
2253
|
+
commandStartedAtMs,
|
|
2254
|
+
kind: "verify_done",
|
|
2255
|
+
command: "gdh verify done",
|
|
2256
|
+
state: "failed",
|
|
2257
|
+
summary: "Done-policy evaluation failed before producing a result.",
|
|
2258
|
+
changedFiles: files,
|
|
2259
|
+
errorMessage: formatCliError(error),
|
|
2260
|
+
});
|
|
2261
|
+
io.stderr.write(`Failed to evaluate done policy for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2262
|
+
return 1;
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
async function runVerifyRunCommand(args, io) {
|
|
2266
|
+
if (args.includes("--help")) {
|
|
2267
|
+
io.stdout.write([
|
|
2268
|
+
"Usage: gdh verify run [target] <run-config-id> --verification-scenario <verification-scenario-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value] [--live-workspace]",
|
|
2269
|
+
"",
|
|
2270
|
+
"Execute one verification scenario over a selected run configuration and print the structured run record as JSON.",
|
|
2271
|
+
].join("\n") + "\n");
|
|
2272
|
+
return 0;
|
|
2273
|
+
}
|
|
2274
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2275
|
+
usage: "Usage: gdh verify run [target] <run-config-id> --verification-scenario <verification-scenario-id> [--provider <id>] [--param key=value] [--feature <id>] [--no-feature <id>] [--env NAME=value] [--live-workspace]\n",
|
|
2276
|
+
optionsWithValues: [
|
|
2277
|
+
"--verification-scenario",
|
|
2278
|
+
"--scenario",
|
|
2279
|
+
"--provider",
|
|
2280
|
+
"--param",
|
|
2281
|
+
"--feature",
|
|
2282
|
+
"--no-feature",
|
|
2283
|
+
"--env",
|
|
2284
|
+
],
|
|
2285
|
+
booleanOptions: ["--live-workspace"],
|
|
2286
|
+
});
|
|
2287
|
+
if (unsupportedOptionsError !== null) {
|
|
2288
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2289
|
+
return 1;
|
|
2290
|
+
}
|
|
2291
|
+
const positionalArgs = extractPositionalArgs(args, new Set([
|
|
2292
|
+
"--verification-scenario",
|
|
2293
|
+
"--scenario",
|
|
2294
|
+
"--provider",
|
|
2295
|
+
"--param",
|
|
2296
|
+
"--feature",
|
|
2297
|
+
"--no-feature",
|
|
2298
|
+
"--env",
|
|
2299
|
+
]));
|
|
2300
|
+
if (positionalArgs.length === 0 || positionalArgs.length > 2) {
|
|
2301
|
+
io.stderr.write("Usage error: gdh verify run requires <run-config-id> and accepts at most one positional target path.\n");
|
|
2302
|
+
return 1;
|
|
2303
|
+
}
|
|
2304
|
+
const scenarioId = readSingleOptionValue(args, "--verification-scenario") ??
|
|
2305
|
+
readSingleOptionValue(args, "--scenario");
|
|
2306
|
+
if (!scenarioId) {
|
|
2307
|
+
io.stderr.write("Usage error: gdh verify run requires --verification-scenario <verification-scenario-id>.\n");
|
|
2308
|
+
return 1;
|
|
2309
|
+
}
|
|
2310
|
+
const targetPath = positionalArgs.length === 1 ? "." : positionalArgs[0];
|
|
2311
|
+
const recipeId = positionalArgs.length === 1 ? positionalArgs[0] : positionalArgs[1];
|
|
2312
|
+
const commandStartedAtMs = Date.now();
|
|
2313
|
+
try {
|
|
2314
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
2315
|
+
const result = await runRuntimeVerificationScenario({
|
|
2316
|
+
targetPath,
|
|
2317
|
+
projectConfig,
|
|
2318
|
+
recipeId,
|
|
2319
|
+
scenarioId,
|
|
2320
|
+
provider: readSingleOptionValue(args, "--provider"),
|
|
2321
|
+
parameters: collectAssignmentOptionValues(args, "--param"),
|
|
2322
|
+
enabledFeatures: collectOptionValues(args, "--feature"),
|
|
2323
|
+
disabledFeatures: collectOptionValues(args, "--no-feature"),
|
|
2324
|
+
environment: collectAssignmentOptionValues(args, "--env"),
|
|
2325
|
+
workspaceMode: args.includes("--live-workspace") ? "live_workspace" : "isolated_copy",
|
|
2326
|
+
});
|
|
2327
|
+
await recordSessionEvent(targetPath, {
|
|
2328
|
+
commandStartedAtMs,
|
|
2329
|
+
kind: "verify_run",
|
|
2330
|
+
command: "gdh verify run",
|
|
2331
|
+
state: result.outcome === "passed" || result.outcome === "flaky"
|
|
2332
|
+
? "succeeded"
|
|
2333
|
+
: result.outcome === "blocked"
|
|
2334
|
+
? "blocked"
|
|
2335
|
+
: "failed",
|
|
2336
|
+
summary: result.summary,
|
|
2337
|
+
producedArtifacts: result.artifacts.map((entry) => entry.path),
|
|
2338
|
+
});
|
|
2339
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
2340
|
+
return result.outcome === "passed" || result.outcome === "flaky" ? 0 : 1;
|
|
2341
|
+
}
|
|
2342
|
+
catch (error) {
|
|
2343
|
+
await recordSessionEvent(targetPath, {
|
|
2344
|
+
commandStartedAtMs,
|
|
2345
|
+
kind: "verify_run",
|
|
2346
|
+
command: "gdh verify run",
|
|
2347
|
+
state: "failed",
|
|
2348
|
+
summary: "Verification-scenario execution failed before producing a result.",
|
|
2349
|
+
errorMessage: formatCliError(error),
|
|
2350
|
+
});
|
|
2351
|
+
io.stderr.write(`Failed to run runtime verification for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2352
|
+
return 1;
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
async function runVerifyInspectCommand(args, io) {
|
|
2356
|
+
if (args.includes("--help")) {
|
|
2357
|
+
io.stdout.write([
|
|
2358
|
+
"Usage: gdh verify inspect [target] [--run-record <run-record-id>]",
|
|
2359
|
+
"",
|
|
2360
|
+
"Inspect the latest or selected runtime run record and print the structured result as JSON.",
|
|
2361
|
+
].join("\n") + "\n");
|
|
2362
|
+
return 0;
|
|
2363
|
+
}
|
|
2364
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2365
|
+
usage: "Usage: gdh verify inspect [target] [--run-record <run-record-id>]\n",
|
|
2366
|
+
optionsWithValues: ["--run-record", "--bundle"],
|
|
2367
|
+
});
|
|
2368
|
+
if (unsupportedOptionsError !== null) {
|
|
2369
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2370
|
+
return 1;
|
|
2371
|
+
}
|
|
2372
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--run-record", "--bundle"]));
|
|
2373
|
+
if (positionalArgs.length > 1) {
|
|
2374
|
+
io.stderr.write("Usage error: gdh verify inspect accepts at most one positional target path.\n");
|
|
2375
|
+
return 1;
|
|
2376
|
+
}
|
|
2377
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2378
|
+
const commandStartedAtMs = Date.now();
|
|
2379
|
+
try {
|
|
2380
|
+
const result = await inspectRuntimeVerificationBundleState({
|
|
2381
|
+
targetPath,
|
|
2382
|
+
bundleId: readSingleOptionValue(args, "--run-record") ?? readSingleOptionValue(args, "--bundle"),
|
|
2383
|
+
});
|
|
2384
|
+
await recordSessionEvent(targetPath, {
|
|
2385
|
+
commandStartedAtMs,
|
|
2386
|
+
kind: "verify_inspect",
|
|
2387
|
+
command: "gdh verify inspect",
|
|
2388
|
+
state: result.state === "available" ? "succeeded" : "blocked",
|
|
2389
|
+
summary: result.summary,
|
|
2390
|
+
producedArtifacts: result.bundle === null ? [] : [path.join(result.bundle.bundlePath, "bundle.json")],
|
|
2391
|
+
});
|
|
2392
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
2393
|
+
return result.state === "available" ? 0 : 1;
|
|
2394
|
+
}
|
|
2395
|
+
catch (error) {
|
|
2396
|
+
await recordSessionEvent(targetPath, {
|
|
2397
|
+
commandStartedAtMs,
|
|
2398
|
+
kind: "verify_inspect",
|
|
2399
|
+
command: "gdh verify inspect",
|
|
2400
|
+
state: "failed",
|
|
2401
|
+
summary: "Runtime run-record inspection failed before producing a result.",
|
|
2402
|
+
errorMessage: formatCliError(error),
|
|
2403
|
+
});
|
|
2404
|
+
io.stderr.write(`Failed to inspect runtime verification run records for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2405
|
+
return 1;
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
async function runVerifyReadinessCommand(args, io) {
|
|
2409
|
+
if (args.includes("--help")) {
|
|
2410
|
+
io.stdout.write([
|
|
2411
|
+
"Usage: gdh verify readiness [target]",
|
|
2412
|
+
"",
|
|
2413
|
+
"Summarize runtime verification readiness, stale evidence, and recurring runtime feedback for one target as JSON.",
|
|
2414
|
+
].join("\n") + "\n");
|
|
2415
|
+
return 0;
|
|
2416
|
+
}
|
|
2417
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2418
|
+
usage: "Usage: gdh verify readiness [target]\n",
|
|
2419
|
+
});
|
|
2420
|
+
if (unsupportedOptionsError !== null) {
|
|
2421
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2422
|
+
return 1;
|
|
2423
|
+
}
|
|
2424
|
+
const positionalArgs = extractPositionalArgs(args, new Set());
|
|
2425
|
+
if (positionalArgs.length > 1) {
|
|
2426
|
+
io.stderr.write("Usage error: gdh verify readiness accepts at most one positional target path.\n");
|
|
2427
|
+
return 1;
|
|
2428
|
+
}
|
|
2429
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2430
|
+
const commandStartedAtMs = Date.now();
|
|
2431
|
+
try {
|
|
2432
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
2433
|
+
const result = await inspectRuntimeVerificationReadiness({
|
|
2434
|
+
targetPath,
|
|
2435
|
+
projectConfig,
|
|
2436
|
+
});
|
|
2437
|
+
await recordSessionEvent(targetPath, {
|
|
2438
|
+
commandStartedAtMs,
|
|
2439
|
+
kind: "verify_readiness",
|
|
2440
|
+
command: "gdh verify readiness",
|
|
2441
|
+
state: result.state === "ready" ? "succeeded" : result.state === "blocked" ? "blocked" : "failed",
|
|
2442
|
+
summary: result.summary,
|
|
2443
|
+
producedArtifacts: result.latestBundle?.bundle == null
|
|
2444
|
+
? []
|
|
2445
|
+
: [path.join(result.latestBundle.bundle.bundlePath, "bundle.json")],
|
|
2446
|
+
});
|
|
2447
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
2448
|
+
return result.state === "ready" ? 0 : 1;
|
|
2449
|
+
}
|
|
2450
|
+
catch (error) {
|
|
2451
|
+
await recordSessionEvent(targetPath, {
|
|
2452
|
+
commandStartedAtMs,
|
|
2453
|
+
kind: "verify_readiness",
|
|
2454
|
+
command: "gdh verify readiness",
|
|
2455
|
+
state: "failed",
|
|
2456
|
+
summary: "Runtime verification readiness inspection failed before producing a result.",
|
|
2457
|
+
errorMessage: formatCliError(error),
|
|
2458
|
+
});
|
|
2459
|
+
io.stderr.write(`Failed to inspect runtime verification readiness for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2460
|
+
return 1;
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
async function runVerifyCorpusStatusCommand(args, io) {
|
|
2464
|
+
if (args.includes("--help")) {
|
|
2465
|
+
io.stdout.write([
|
|
2466
|
+
"Usage: gdh verify corpus status [--manifest <path>] [--workspace-root <path>]",
|
|
2467
|
+
"",
|
|
2468
|
+
"Inspect runtime corpus release-readiness evidence and print a structured result as JSON.",
|
|
2469
|
+
].join("\n") + "\n");
|
|
2470
|
+
return 0;
|
|
2471
|
+
}
|
|
2472
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2473
|
+
usage: "Usage: gdh verify corpus status [--manifest <path>] [--workspace-root <path>]\n",
|
|
2474
|
+
optionsWithValues: ["--manifest", "--workspace-root"],
|
|
2475
|
+
});
|
|
2476
|
+
if (unsupportedOptionsError !== null) {
|
|
2477
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2478
|
+
return 1;
|
|
2479
|
+
}
|
|
2480
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--manifest", "--workspace-root"]));
|
|
2481
|
+
if (positionalArgs.length > 0) {
|
|
2482
|
+
io.stderr.write("Usage error: gdh verify corpus status only accepts --manifest <path> and --workspace-root <path>.\n");
|
|
2483
|
+
return 1;
|
|
2484
|
+
}
|
|
2485
|
+
const workspaceRoot = readSingleOptionValue(args, "--workspace-root") ?? ".";
|
|
2486
|
+
const manifestPath = readSingleOptionValue(args, "--manifest") ?? "fixtures/runtime-corpus.json";
|
|
2487
|
+
try {
|
|
2488
|
+
const result = await inspectRuntimeCorpusStatus({
|
|
2489
|
+
workspaceRoot,
|
|
2490
|
+
manifestPath,
|
|
2491
|
+
});
|
|
2492
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
2493
|
+
return result.state === "ready" ? 0 : 1;
|
|
2494
|
+
}
|
|
2495
|
+
catch (error) {
|
|
2496
|
+
io.stderr.write(`Failed to inspect runtime corpus status: ${formatCliError(error)}\n`);
|
|
2497
|
+
return 1;
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
async function runVerifyCorpusMaterializeCommand(args, io) {
|
|
2501
|
+
if (args.includes("--help")) {
|
|
2502
|
+
io.stdout.write([
|
|
2503
|
+
"Usage: gdh verify corpus materialize --entry <id> [--manifest <path>] [--workspace-root <path>]",
|
|
2504
|
+
"",
|
|
2505
|
+
"Materialize one runtime corpus entry into GDH-managed source state and print a structured result as JSON.",
|
|
2506
|
+
].join("\n") + "\n");
|
|
2507
|
+
return 0;
|
|
2508
|
+
}
|
|
2509
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2510
|
+
usage: "Usage: gdh verify corpus materialize --entry <id> [--manifest <path>] [--workspace-root <path>]\n",
|
|
2511
|
+
optionsWithValues: ["--entry", "--manifest", "--workspace-root"],
|
|
2512
|
+
});
|
|
2513
|
+
if (unsupportedOptionsError !== null) {
|
|
2514
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2515
|
+
return 1;
|
|
2516
|
+
}
|
|
2517
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--entry", "--manifest", "--workspace-root"]));
|
|
2518
|
+
if (positionalArgs.length > 0) {
|
|
2519
|
+
io.stderr.write("Usage error: gdh verify corpus materialize only accepts --entry <id>, optional --manifest <path>, and optional --workspace-root <path>.\n");
|
|
2520
|
+
return 1;
|
|
2521
|
+
}
|
|
2522
|
+
const entryId = readSingleOptionValue(args, "--entry");
|
|
2523
|
+
if (!entryId) {
|
|
2524
|
+
io.stderr.write("Usage error: gdh verify corpus materialize requires --entry <id>.\n");
|
|
2525
|
+
return 1;
|
|
2526
|
+
}
|
|
2527
|
+
const workspaceRoot = readSingleOptionValue(args, "--workspace-root") ?? ".";
|
|
2528
|
+
const manifestPath = readSingleOptionValue(args, "--manifest") ?? "fixtures/runtime-corpus.json";
|
|
2529
|
+
try {
|
|
2530
|
+
const result = await materializeRuntimeCorpusEntry({
|
|
2531
|
+
workspaceRoot,
|
|
2532
|
+
manifestPath,
|
|
2533
|
+
entryId,
|
|
2534
|
+
});
|
|
2535
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
2536
|
+
return result.state === "ready" ? 0 : 1;
|
|
2537
|
+
}
|
|
2538
|
+
catch (error) {
|
|
2539
|
+
io.stderr.write(`Failed to materialize runtime corpus entry: ${formatCliError(error)}\n`);
|
|
2540
|
+
return 1;
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
async function runVerifyCorpusExerciseCommand(args, io) {
|
|
2544
|
+
if (args.includes("--help")) {
|
|
2545
|
+
io.stdout.write([
|
|
2546
|
+
"Usage: gdh verify corpus exercise --entry <id> [--manifest <path>] [--workspace-root <path>] [--no-prepare]",
|
|
2547
|
+
"",
|
|
2548
|
+
"Materialize, onboard, and exercise one runtime corpus entry through GDH and print a structured result as JSON.",
|
|
2549
|
+
].join("\n") + "\n");
|
|
2550
|
+
return 0;
|
|
2551
|
+
}
|
|
2552
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2553
|
+
usage: "Usage: gdh verify corpus exercise --entry <id> [--manifest <path>] [--workspace-root <path>] [--no-prepare]\n",
|
|
2554
|
+
optionsWithValues: ["--entry", "--manifest", "--workspace-root"],
|
|
2555
|
+
booleanOptions: ["--no-prepare"],
|
|
2556
|
+
});
|
|
2557
|
+
if (unsupportedOptionsError !== null) {
|
|
2558
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2559
|
+
return 1;
|
|
2560
|
+
}
|
|
2561
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--entry", "--manifest", "--workspace-root", "--no-prepare"]));
|
|
2562
|
+
if (positionalArgs.length > 0) {
|
|
2563
|
+
io.stderr.write("Usage error: gdh verify corpus exercise only accepts --entry <id>, optional --manifest <path>, optional --workspace-root <path>, and optional --no-prepare.\n");
|
|
2564
|
+
return 1;
|
|
2565
|
+
}
|
|
2566
|
+
const entryId = readSingleOptionValue(args, "--entry");
|
|
2567
|
+
if (!entryId) {
|
|
2568
|
+
io.stderr.write("Usage error: gdh verify corpus exercise requires --entry <id>.\n");
|
|
2569
|
+
return 1;
|
|
2570
|
+
}
|
|
2571
|
+
const workspaceRoot = readSingleOptionValue(args, "--workspace-root") ?? ".";
|
|
2572
|
+
const manifestPath = readSingleOptionValue(args, "--manifest") ?? "fixtures/runtime-corpus.json";
|
|
2573
|
+
try {
|
|
2574
|
+
const result = await exerciseRuntimeCorpusEntry({
|
|
2575
|
+
workspaceRoot,
|
|
2576
|
+
manifestPath,
|
|
2577
|
+
entryId,
|
|
2578
|
+
skipPrepare: args.includes("--no-prepare"),
|
|
2579
|
+
});
|
|
2580
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
2581
|
+
return result.state === "ready" ? 0 : 1;
|
|
2582
|
+
}
|
|
2583
|
+
catch (error) {
|
|
2584
|
+
io.stderr.write(`Failed to exercise runtime corpus entry: ${formatCliError(error)}\n`);
|
|
2585
|
+
return 1;
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
async function runVerifyCorpusRecordCommand(args, io) {
|
|
2589
|
+
if (args.includes("--help")) {
|
|
2590
|
+
io.stdout.write([
|
|
2591
|
+
"Usage: gdh verify corpus record --entry <id> --target <path> [--manifest <path>] [--workspace-root <path>]",
|
|
2592
|
+
"",
|
|
2593
|
+
"Record the current runtime verification readiness for one corpus entry as JSON.",
|
|
2594
|
+
].join("\n") + "\n");
|
|
2595
|
+
return 0;
|
|
2596
|
+
}
|
|
2597
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2598
|
+
usage: "Usage: gdh verify corpus record --entry <id> --target <path> [--manifest <path>] [--workspace-root <path>]\n",
|
|
2599
|
+
optionsWithValues: ["--entry", "--target", "--manifest", "--workspace-root"],
|
|
2600
|
+
});
|
|
2601
|
+
if (unsupportedOptionsError !== null) {
|
|
2602
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2603
|
+
return 1;
|
|
2604
|
+
}
|
|
2605
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--entry", "--target", "--manifest", "--workspace-root"]));
|
|
2606
|
+
if (positionalArgs.length > 0) {
|
|
2607
|
+
io.stderr.write("Usage error: gdh verify corpus record only accepts --entry <id>, --target <path>, optional --manifest <path>, and optional --workspace-root <path>.\n");
|
|
2608
|
+
return 1;
|
|
2609
|
+
}
|
|
2610
|
+
const entryId = readSingleOptionValue(args, "--entry");
|
|
2611
|
+
const targetPath = readSingleOptionValue(args, "--target");
|
|
2612
|
+
if (!entryId || !targetPath) {
|
|
2613
|
+
io.stderr.write("Usage error: gdh verify corpus record requires --entry <id> and --target <path>.\n");
|
|
2614
|
+
return 1;
|
|
2615
|
+
}
|
|
2616
|
+
const workspaceRoot = readSingleOptionValue(args, "--workspace-root") ?? ".";
|
|
2617
|
+
const manifestPath = readSingleOptionValue(args, "--manifest") ?? "fixtures/runtime-corpus.json";
|
|
2618
|
+
try {
|
|
2619
|
+
const projectConfig = await readProjectConfig(targetPath);
|
|
2620
|
+
const result = await recordRuntimeCorpusValidation({
|
|
2621
|
+
workspaceRoot,
|
|
2622
|
+
manifestPath,
|
|
2623
|
+
entryId,
|
|
2624
|
+
targetPath,
|
|
2625
|
+
projectConfig,
|
|
2626
|
+
});
|
|
2627
|
+
writeJsonResult(io, result, { presentRuntimeTerms: true });
|
|
2628
|
+
return result.state === "recorded" ? 0 : 1;
|
|
2629
|
+
}
|
|
2630
|
+
catch (error) {
|
|
2631
|
+
io.stderr.write(`Failed to record runtime corpus validation: ${formatCliError(error)}\n`);
|
|
2632
|
+
return 1;
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
async function runCacheInspectCommand(args, io) {
|
|
2636
|
+
if (args.includes("--help")) {
|
|
2637
|
+
io.stdout.write([
|
|
2638
|
+
"Usage: gdh cache inspect [target]",
|
|
2639
|
+
"",
|
|
2640
|
+
"Inspect worktree-local and project-scoped authoring cache state and print a structured result as JSON.",
|
|
2641
|
+
].join("\n") + "\n");
|
|
2642
|
+
return 0;
|
|
2643
|
+
}
|
|
2644
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2645
|
+
usage: "Usage: gdh cache inspect [target]\n",
|
|
2646
|
+
});
|
|
2647
|
+
if (unsupportedOptionsError !== null) {
|
|
2648
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2649
|
+
return 1;
|
|
2650
|
+
}
|
|
2651
|
+
const positionalArgs = extractGuidanceResolvePositionalArgs(args);
|
|
2652
|
+
if (positionalArgs.length > 1) {
|
|
2653
|
+
io.stderr.write("Usage error: gdh cache inspect accepts at most one positional target path.\n");
|
|
2654
|
+
return 1;
|
|
2655
|
+
}
|
|
2656
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2657
|
+
try {
|
|
2658
|
+
const context = await buildAuthoringContext(targetPath);
|
|
2659
|
+
const result = await inspectCacheState({
|
|
2660
|
+
targetPath,
|
|
2661
|
+
status: context.status,
|
|
2662
|
+
projectConfig: context.projectConfig,
|
|
2663
|
+
});
|
|
2664
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2665
|
+
return 0;
|
|
2666
|
+
}
|
|
2667
|
+
catch (error) {
|
|
2668
|
+
io.stderr.write(`Failed to inspect cache state for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2669
|
+
return 1;
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
async function runGuidanceStatusCommand(args, io) {
|
|
2673
|
+
if (args.includes("--help")) {
|
|
2674
|
+
io.stdout.write([
|
|
2675
|
+
"Usage: gdh guidance status [target]",
|
|
2676
|
+
"",
|
|
2677
|
+
"Inspect the current durable guidance surface and guidance-audit availability as JSON.",
|
|
2678
|
+
].join("\n") + "\n");
|
|
2679
|
+
return 0;
|
|
2680
|
+
}
|
|
2681
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2682
|
+
usage: "Usage: gdh guidance status [target]\n",
|
|
2683
|
+
});
|
|
2684
|
+
if (unsupportedOptionsError !== null) {
|
|
2685
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2686
|
+
return 1;
|
|
2687
|
+
}
|
|
2688
|
+
const positionalArgs = args.filter((arg) => !arg.startsWith("--"));
|
|
2689
|
+
if (positionalArgs.length > 1) {
|
|
2690
|
+
io.stderr.write("Usage error: gdh guidance status accepts at most one positional target path.\n");
|
|
2691
|
+
return 1;
|
|
2692
|
+
}
|
|
2693
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2694
|
+
const commandStartedAtMs = Date.now();
|
|
2695
|
+
try {
|
|
2696
|
+
const context = await buildAuthoringContext(targetPath);
|
|
2697
|
+
const effectiveRepoState = deriveGuidanceRepoState(context);
|
|
2698
|
+
const [guidance, audit] = await Promise.all([
|
|
2699
|
+
getGuidanceStatus(targetPath),
|
|
2700
|
+
inspectGuidanceAudit(targetPath),
|
|
2701
|
+
]);
|
|
2702
|
+
const result = {
|
|
2703
|
+
targetPath,
|
|
2704
|
+
projectConfigPresent: context.projectConfig !== null,
|
|
2705
|
+
authoringReadiness: context.status.readiness,
|
|
2706
|
+
effectiveRepoState,
|
|
2707
|
+
guidance,
|
|
2708
|
+
audit,
|
|
2709
|
+
};
|
|
2710
|
+
await recordSessionEvent(targetPath, {
|
|
2711
|
+
commandStartedAtMs,
|
|
2712
|
+
kind: "guidance_status",
|
|
2713
|
+
command: "gdh guidance status",
|
|
2714
|
+
state: guidance.state === "missing" ? "blocked" : "succeeded",
|
|
2715
|
+
summary: guidance.summary,
|
|
2716
|
+
guidance: {
|
|
2717
|
+
effectiveRepoState,
|
|
2718
|
+
requiredUnitIds: [],
|
|
2719
|
+
recommendedUnitIds: [],
|
|
2720
|
+
},
|
|
2721
|
+
});
|
|
2722
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2723
|
+
return 0;
|
|
2724
|
+
}
|
|
2725
|
+
catch (error) {
|
|
2726
|
+
await recordSessionEvent(targetPath, {
|
|
2727
|
+
commandStartedAtMs,
|
|
2728
|
+
kind: "guidance_status",
|
|
2729
|
+
command: "gdh guidance status",
|
|
2730
|
+
state: "failed",
|
|
2731
|
+
summary: "Guidance status inspection failed before producing a result.",
|
|
2732
|
+
errorMessage: formatCliError(error),
|
|
2733
|
+
});
|
|
2734
|
+
io.stderr.write(`Failed to inspect guidance status for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2735
|
+
return 1;
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
async function runGuidanceResolveCommand(args, io) {
|
|
2739
|
+
if (args.includes("--help")) {
|
|
2740
|
+
io.stdout.write([
|
|
2741
|
+
"Usage: gdh guidance resolve [target] [--task-type <type>] [--capability <id>] [--repo-state <state>] [--keyword <term>]",
|
|
2742
|
+
"",
|
|
2743
|
+
"Resolve eligible deeper guidance units for the supplied task and repo-state context as JSON.",
|
|
2744
|
+
].join("\n") + "\n");
|
|
2745
|
+
return 0;
|
|
2746
|
+
}
|
|
2747
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2748
|
+
usage: "Usage: gdh guidance resolve [target] [--task-type <type>] [--capability <id>] [--repo-state <state>] [--keyword <term>]\n",
|
|
2749
|
+
optionsWithValues: ["--task-type", "--capability", "--repo-state", "--keyword"],
|
|
2750
|
+
});
|
|
2751
|
+
if (unsupportedOptionsError !== null) {
|
|
2752
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2753
|
+
return 1;
|
|
2754
|
+
}
|
|
2755
|
+
const positionalArgs = extractGuidanceResolvePositionalArgs(args);
|
|
2756
|
+
if (positionalArgs.length > 1) {
|
|
2757
|
+
io.stderr.write("Usage error: gdh guidance resolve accepts at most one positional target path.\n");
|
|
2758
|
+
return 1;
|
|
2759
|
+
}
|
|
2760
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2761
|
+
const commandStartedAtMs = Date.now();
|
|
2762
|
+
try {
|
|
2763
|
+
const context = await buildAuthoringContext(targetPath);
|
|
2764
|
+
const derivedRepoState = deriveGuidanceRepoState(context);
|
|
2765
|
+
const repoStateArgs = collectOptionValues(args, "--repo-state");
|
|
2766
|
+
const result = await resolveGuidanceQuery(targetPath, {
|
|
2767
|
+
taskTypes: collectOptionValues(args, "--task-type"),
|
|
2768
|
+
capabilities: collectOptionValues(args, "--capability"),
|
|
2769
|
+
repoState: repoStateArgs.length > 0 ? repoStateArgs : derivedRepoState,
|
|
2770
|
+
keywords: collectOptionValues(args, "--keyword"),
|
|
2771
|
+
});
|
|
2772
|
+
await recordSessionEvent(targetPath, {
|
|
2773
|
+
commandStartedAtMs,
|
|
2774
|
+
kind: "guidance_resolve",
|
|
2775
|
+
command: "gdh guidance resolve",
|
|
2776
|
+
state: result.requiredUnits.length > 0 || result.recommendedUnits.length > 0
|
|
2777
|
+
? "succeeded"
|
|
2778
|
+
: "blocked",
|
|
2779
|
+
summary: result.status.summary,
|
|
2780
|
+
guidance: buildGuidanceSnapshot(result),
|
|
2781
|
+
});
|
|
2782
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2783
|
+
return 0;
|
|
2784
|
+
}
|
|
2785
|
+
catch (error) {
|
|
2786
|
+
await recordSessionEvent(targetPath, {
|
|
2787
|
+
commandStartedAtMs,
|
|
2788
|
+
kind: "guidance_resolve",
|
|
2789
|
+
command: "gdh guidance resolve",
|
|
2790
|
+
state: "failed",
|
|
2791
|
+
summary: "Guidance resolution failed before producing a result.",
|
|
2792
|
+
errorMessage: formatCliError(error),
|
|
2793
|
+
});
|
|
2794
|
+
io.stderr.write(`Failed to resolve guidance for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2795
|
+
return 1;
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
async function runGuidanceAuditCommand(args, io) {
|
|
2799
|
+
if (args.includes("--help")) {
|
|
2800
|
+
io.stdout.write([
|
|
2801
|
+
"Usage: gdh guidance audit [target]",
|
|
2802
|
+
"",
|
|
2803
|
+
"Inspect machine-readable guidance-audit history as JSON.",
|
|
2804
|
+
].join("\n") + "\n");
|
|
2805
|
+
return 0;
|
|
2806
|
+
}
|
|
2807
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2808
|
+
usage: "Usage: gdh guidance audit [target]\n",
|
|
2809
|
+
});
|
|
2810
|
+
if (unsupportedOptionsError !== null) {
|
|
2811
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2812
|
+
return 1;
|
|
2813
|
+
}
|
|
2814
|
+
const positionalArgs = args.filter((arg) => !arg.startsWith("--"));
|
|
2815
|
+
if (positionalArgs.length > 1) {
|
|
2816
|
+
io.stderr.write("Usage error: gdh guidance audit accepts at most one positional target path.\n");
|
|
2817
|
+
return 1;
|
|
2818
|
+
}
|
|
2819
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2820
|
+
try {
|
|
2821
|
+
const result = await inspectGuidanceAudit(targetPath);
|
|
2822
|
+
await recordSessionEvent(targetPath, {
|
|
2823
|
+
kind: "guidance_audit",
|
|
2824
|
+
command: "gdh guidance audit",
|
|
2825
|
+
state: result.state === "available" ? "succeeded" : "blocked",
|
|
2826
|
+
summary: result.summary,
|
|
2827
|
+
});
|
|
2828
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2829
|
+
return 0;
|
|
2830
|
+
}
|
|
2831
|
+
catch (error) {
|
|
2832
|
+
await recordSessionEvent(targetPath, {
|
|
2833
|
+
kind: "guidance_audit",
|
|
2834
|
+
command: "gdh guidance audit",
|
|
2835
|
+
state: "failed",
|
|
2836
|
+
summary: "Guidance-audit inspection failed before producing a result.",
|
|
2837
|
+
errorMessage: formatCliError(error),
|
|
2838
|
+
});
|
|
2839
|
+
io.stderr.write(`Failed to inspect guidance audit for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2840
|
+
return 1;
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
async function runObservabilitySessionCommand(args, io) {
|
|
2844
|
+
if (args.includes("--help")) {
|
|
2845
|
+
io.stdout.write([
|
|
2846
|
+
"Usage: gdh observability session [target] [--latest] [--session-id <id>]",
|
|
2847
|
+
"",
|
|
2848
|
+
"Inspect recorded authoring-session observability as JSON.",
|
|
2849
|
+
].join("\n") + "\n");
|
|
2850
|
+
return 0;
|
|
2851
|
+
}
|
|
2852
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2853
|
+
usage: "Usage: gdh observability session [target] [--latest] [--session-id <id>]\n",
|
|
2854
|
+
optionsWithValues: ["--session-id"],
|
|
2855
|
+
booleanOptions: ["--latest"],
|
|
2856
|
+
});
|
|
2857
|
+
if (unsupportedOptionsError !== null) {
|
|
2858
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2859
|
+
return 1;
|
|
2860
|
+
}
|
|
2861
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--session-id"]));
|
|
2862
|
+
if (positionalArgs.length > 1) {
|
|
2863
|
+
io.stderr.write("Usage error: gdh observability session accepts at most one positional target path.\n");
|
|
2864
|
+
return 1;
|
|
2865
|
+
}
|
|
2866
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2867
|
+
const sessionId = readSingleOptionValue(args, "--session-id");
|
|
2868
|
+
try {
|
|
2869
|
+
const result = await inspectAuthoringSessions(targetPath, {
|
|
2870
|
+
latest: args.includes("--latest") || sessionId === null,
|
|
2871
|
+
sessionId,
|
|
2872
|
+
});
|
|
2873
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2874
|
+
return 0;
|
|
2875
|
+
}
|
|
2876
|
+
catch (error) {
|
|
2877
|
+
io.stderr.write(`Failed to inspect authoring-session observability for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2878
|
+
return 1;
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
async function runObservabilityEffectivenessCommand(args, io) {
|
|
2882
|
+
if (args.includes("--help")) {
|
|
2883
|
+
io.stdout.write([
|
|
2884
|
+
"Usage: gdh observability effectiveness [target] [--latest] [--session-id <id>]",
|
|
2885
|
+
"",
|
|
2886
|
+
"Summarize heuristic agent-effectiveness signals from recorded session activity as JSON.",
|
|
2887
|
+
].join("\n") + "\n");
|
|
2888
|
+
return 0;
|
|
2889
|
+
}
|
|
2890
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2891
|
+
usage: "Usage: gdh observability effectiveness [target] [--latest] [--session-id <id>]\n",
|
|
2892
|
+
optionsWithValues: ["--session-id"],
|
|
2893
|
+
booleanOptions: ["--latest"],
|
|
2894
|
+
});
|
|
2895
|
+
if (unsupportedOptionsError !== null) {
|
|
2896
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2897
|
+
return 1;
|
|
2898
|
+
}
|
|
2899
|
+
const positionalArgs = extractPositionalArgs(args, new Set(["--session-id"]));
|
|
2900
|
+
if (positionalArgs.length > 1) {
|
|
2901
|
+
io.stderr.write("Usage error: gdh observability effectiveness accepts at most one positional target path.\n");
|
|
2902
|
+
return 1;
|
|
2903
|
+
}
|
|
2904
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2905
|
+
const sessionId = readSingleOptionValue(args, "--session-id");
|
|
2906
|
+
try {
|
|
2907
|
+
const result = await inspectAuthoringEffectiveness(targetPath, {
|
|
2908
|
+
latest: args.includes("--latest") || sessionId === null,
|
|
2909
|
+
sessionId,
|
|
2910
|
+
});
|
|
2911
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2912
|
+
return 0;
|
|
2913
|
+
}
|
|
2914
|
+
catch (error) {
|
|
2915
|
+
io.stderr.write(`Failed to inspect authoring effectiveness for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2916
|
+
return 1;
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
async function runCachePruneCommand(args, io) {
|
|
2920
|
+
if (args.includes("--help")) {
|
|
2921
|
+
io.stdout.write([
|
|
2922
|
+
"Usage: gdh cache prune [target] [--scope <scope>] [--dry-run]",
|
|
2923
|
+
"",
|
|
2924
|
+
"Prune worktree-local or project-scoped authoring cache state and print a structured result as JSON.",
|
|
2925
|
+
"Supported scopes: worktree, project, all",
|
|
2926
|
+
].join("\n") + "\n");
|
|
2927
|
+
return 0;
|
|
2928
|
+
}
|
|
2929
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
2930
|
+
usage: "Usage: gdh cache prune [target] [--scope <scope>] [--dry-run]\n",
|
|
2931
|
+
optionsWithValues: ["--scope"],
|
|
2932
|
+
booleanOptions: ["--dry-run"],
|
|
2933
|
+
});
|
|
2934
|
+
if (unsupportedOptionsError !== null) {
|
|
2935
|
+
io.stderr.write(unsupportedOptionsError);
|
|
2936
|
+
return 1;
|
|
2937
|
+
}
|
|
2938
|
+
const dryRun = args.includes("--dry-run");
|
|
2939
|
+
const positionalArgs = extractCachePrunePositionalArgs(args);
|
|
2940
|
+
const scope = resolveCachePruneScope(args);
|
|
2941
|
+
if (scope === null) {
|
|
2942
|
+
io.stderr.write("Usage error: --scope must be one of worktree, project, or all.\n");
|
|
2943
|
+
return 1;
|
|
2944
|
+
}
|
|
2945
|
+
if (positionalArgs.length > 1) {
|
|
2946
|
+
io.stderr.write("Usage error: gdh cache prune accepts at most one positional target path.\n");
|
|
2947
|
+
return 1;
|
|
2948
|
+
}
|
|
2949
|
+
const targetPath = positionalArgs[0] ?? ".";
|
|
2950
|
+
try {
|
|
2951
|
+
const context = await buildAuthoringContext(targetPath);
|
|
2952
|
+
const result = await pruneCacheState({
|
|
2953
|
+
targetPath,
|
|
2954
|
+
status: context.status,
|
|
2955
|
+
projectConfig: context.projectConfig,
|
|
2956
|
+
scope,
|
|
2957
|
+
dryRun,
|
|
2958
|
+
});
|
|
2959
|
+
io.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
2960
|
+
return 0;
|
|
2961
|
+
}
|
|
2962
|
+
catch (error) {
|
|
2963
|
+
io.stderr.write(`Failed to prune cache state for "${targetPath}": ${formatCliError(error)}\n`);
|
|
2964
|
+
return 1;
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
async function runAuthoringDogfood(input) {
|
|
2968
|
+
const results = [];
|
|
2969
|
+
for (const fixtureTarget of input.fixtureTargets) {
|
|
2970
|
+
results.push(await executeAuthoringDogfoodTarget({
|
|
2971
|
+
kind: "fixture",
|
|
2972
|
+
sourcePath: fixtureTarget,
|
|
2973
|
+
}));
|
|
2974
|
+
}
|
|
2975
|
+
if (input.pilotTarget !== null) {
|
|
2976
|
+
results.push(await executeAuthoringDogfoodTarget({
|
|
2977
|
+
kind: "pilot",
|
|
2978
|
+
sourcePath: input.pilotTarget,
|
|
2979
|
+
}));
|
|
2980
|
+
}
|
|
2981
|
+
const state = summarizeAuthoringDogfoodState(results);
|
|
2982
|
+
return {
|
|
2983
|
+
version: GDH_AUTHORING_DOGFOOD_VERSION,
|
|
2984
|
+
generatedAt: new Date().toISOString(),
|
|
2985
|
+
state,
|
|
2986
|
+
summary: summarizeAuthoringDogfoodResults(results, state),
|
|
2987
|
+
fixtureTargets: input.fixtureTargets.map((target) => path.resolve(target)),
|
|
2988
|
+
pilotTarget: input.pilotTarget === null ? null : path.resolve(input.pilotTarget),
|
|
2989
|
+
results,
|
|
2990
|
+
};
|
|
2991
|
+
}
|
|
2992
|
+
async function runAuthoringSliceDoctor(targetPath) {
|
|
2993
|
+
const dogfood = await executeAuthoringDogfoodTarget({
|
|
2994
|
+
kind: "fixture",
|
|
2995
|
+
sourcePath: targetPath,
|
|
2996
|
+
});
|
|
2997
|
+
if (dogfood.state === "failed") {
|
|
2998
|
+
return {
|
|
2999
|
+
version: GDH_AUTHORING_SLICE_REPORT_VERSION,
|
|
3000
|
+
generatedAt: new Date().toISOString(),
|
|
3001
|
+
targetPath: path.resolve(targetPath),
|
|
3002
|
+
state: "failed",
|
|
3003
|
+
summary: "The authoring-first slice report failed before GDH could establish a trustworthy baseline.",
|
|
3004
|
+
failureClass: "harness_gap",
|
|
3005
|
+
reasons: dogfood.errorMessage ? [dogfood.errorMessage] : ["dogfood_failed"],
|
|
3006
|
+
adapters: null,
|
|
3007
|
+
dogfood,
|
|
3008
|
+
authoringCheck: null,
|
|
3009
|
+
donePolicy: null,
|
|
3010
|
+
};
|
|
3011
|
+
}
|
|
3012
|
+
if (dogfood.state === "blocked" ||
|
|
3013
|
+
dogfood.onboarding === null ||
|
|
3014
|
+
dogfood.status === null ||
|
|
3015
|
+
dogfood.validationRecommendation === null) {
|
|
3016
|
+
const classification = classifyBlockedDogfoodResult(dogfood);
|
|
3017
|
+
return {
|
|
3018
|
+
version: GDH_AUTHORING_SLICE_REPORT_VERSION,
|
|
3019
|
+
generatedAt: new Date().toISOString(),
|
|
3020
|
+
targetPath: path.resolve(targetPath),
|
|
3021
|
+
state: "blocked",
|
|
3022
|
+
summary: "The authoring-first slice is blocked before internal-use validation can complete.",
|
|
3023
|
+
failureClass: classification.failureClass,
|
|
3024
|
+
reasons: classification.reasons,
|
|
3025
|
+
adapters: null,
|
|
3026
|
+
dogfood,
|
|
3027
|
+
authoringCheck: null,
|
|
3028
|
+
donePolicy: null,
|
|
3029
|
+
};
|
|
3030
|
+
}
|
|
3031
|
+
const validation = await evaluateAuthoringSliceValidation(targetPath);
|
|
3032
|
+
const classification = classifyAuthoringSliceValidation({
|
|
3033
|
+
dogfood,
|
|
3034
|
+
adapters: validation.adapters,
|
|
3035
|
+
authoringCheck: validation.authoringCheck,
|
|
3036
|
+
donePolicy: validation.donePolicy,
|
|
3037
|
+
});
|
|
3038
|
+
return {
|
|
3039
|
+
version: GDH_AUTHORING_SLICE_REPORT_VERSION,
|
|
3040
|
+
generatedAt: new Date().toISOString(),
|
|
3041
|
+
targetPath: path.resolve(targetPath),
|
|
3042
|
+
state: classification.state,
|
|
3043
|
+
summary: classification.summary,
|
|
3044
|
+
failureClass: classification.failureClass,
|
|
3045
|
+
reasons: classification.reasons,
|
|
3046
|
+
adapters: validation.adapters,
|
|
3047
|
+
dogfood,
|
|
3048
|
+
authoringCheck: validation.authoringCheck,
|
|
3049
|
+
donePolicy: validation.donePolicy,
|
|
3050
|
+
};
|
|
3051
|
+
}
|
|
3052
|
+
async function executeAuthoringDogfoodTarget(input) {
|
|
3053
|
+
const sourcePath = path.resolve(input.sourcePath);
|
|
3054
|
+
const target = {
|
|
3055
|
+
kind: input.kind,
|
|
3056
|
+
sourcePath,
|
|
3057
|
+
executionStrategy: "temporary_copy",
|
|
3058
|
+
};
|
|
3059
|
+
if (!(await pathExists(sourcePath))) {
|
|
3060
|
+
const summary = input.kind === "pilot"
|
|
3061
|
+
? `The requested pilot target "${sourcePath}" is unavailable.`
|
|
3062
|
+
: `The requested fixture target "${sourcePath}" does not exist.`;
|
|
3063
|
+
return {
|
|
3064
|
+
target,
|
|
3065
|
+
state: input.kind === "pilot" ? "blocked" : "failed",
|
|
3066
|
+
summary,
|
|
3067
|
+
changedFiles: [],
|
|
3068
|
+
inventory: null,
|
|
3069
|
+
onboarding: null,
|
|
3070
|
+
status: null,
|
|
3071
|
+
guidanceStatus: null,
|
|
3072
|
+
guidanceResolve: null,
|
|
3073
|
+
validationRecommendation: null,
|
|
3074
|
+
sessionInspection: null,
|
|
3075
|
+
blockedReason: input.kind === "pilot" ? "pilot_target_missing" : "fixture_target_missing",
|
|
3076
|
+
errorMessage: null,
|
|
3077
|
+
};
|
|
3078
|
+
}
|
|
3079
|
+
const workingCopy = await createDogfoodWorkingCopy(sourcePath);
|
|
3080
|
+
const sessionId = createDogfoodSessionId(input.kind, sourcePath);
|
|
3081
|
+
try {
|
|
3082
|
+
const projectConfigPresent = await pathExists(path.join(workingCopy.targetPath, ".gdh/project.yaml"));
|
|
3083
|
+
const hasExistingOnboarding = await hasCompleteOnboardingSurface(workingCopy.targetPath);
|
|
3084
|
+
const onboarding = await onboardGodotProject(workingCopy.targetPath, {
|
|
3085
|
+
dryRun: hasExistingOnboarding || projectConfigPresent,
|
|
3086
|
+
});
|
|
3087
|
+
const repairedOnboardingSurface = projectConfigPresent && !hasExistingOnboarding;
|
|
3088
|
+
const appliedRepairWrites = repairedOnboardingSurface
|
|
3089
|
+
? await applyRepairableOnboardingWrites(onboarding.writes)
|
|
3090
|
+
: [];
|
|
3091
|
+
await recordAuthoringSessionEvent(workingCopy.targetPath, {
|
|
3092
|
+
sessionId,
|
|
3093
|
+
kind: "onboard",
|
|
3094
|
+
command: "gdh onboard",
|
|
3095
|
+
state: onboarding.status === "ready" ? "succeeded" : "blocked",
|
|
3096
|
+
summary: onboarding.status !== "ready"
|
|
3097
|
+
? "Dogfood onboarding surfaced unresolved gaps for the target."
|
|
3098
|
+
: repairedOnboardingSurface
|
|
3099
|
+
? "Dogfood repaired missing GDH surfaces without rewriting existing durable project truth."
|
|
3100
|
+
: hasExistingOnboarding
|
|
3101
|
+
? "Dogfood verified the existing GDH onboarding surfaces without rewriting durable project truth."
|
|
3102
|
+
: "Dogfood onboarding completed durable GDH surfaces for the target.",
|
|
3103
|
+
producedArtifacts: hasExistingOnboarding
|
|
3104
|
+
? []
|
|
3105
|
+
: (repairedOnboardingSurface ? appliedRepairWrites : onboarding.writes).map((entry) => entry.relativePath),
|
|
3106
|
+
});
|
|
3107
|
+
if (onboarding.status !== "ready" || onboarding.selectedProject === null) {
|
|
3108
|
+
const sessionInspection = await inspectAuthoringSessions(workingCopy.targetPath, {
|
|
3109
|
+
sessionId,
|
|
3110
|
+
});
|
|
3111
|
+
return {
|
|
3112
|
+
target,
|
|
3113
|
+
state: "blocked",
|
|
3114
|
+
summary: onboarding.status === "ready"
|
|
3115
|
+
? "Dogfood could not select a concrete Godot project root for this target."
|
|
3116
|
+
: "Dogfood onboarding remained unresolved for this target.",
|
|
3117
|
+
changedFiles: [],
|
|
3118
|
+
inventory: onboarding.inventory,
|
|
3119
|
+
onboarding,
|
|
3120
|
+
status: null,
|
|
3121
|
+
guidanceStatus: null,
|
|
3122
|
+
guidanceResolve: null,
|
|
3123
|
+
validationRecommendation: null,
|
|
3124
|
+
sessionInspection,
|
|
3125
|
+
blockedReason: onboarding.status === "ready" ? "selected_project_missing" : "onboarding_unresolved",
|
|
3126
|
+
errorMessage: null,
|
|
3127
|
+
};
|
|
3128
|
+
}
|
|
3129
|
+
const context = await buildAuthoringContext(workingCopy.targetPath);
|
|
3130
|
+
await recordAuthoringSessionEvent(workingCopy.targetPath, {
|
|
3131
|
+
sessionId,
|
|
3132
|
+
kind: "status",
|
|
3133
|
+
command: "gdh status",
|
|
3134
|
+
state: context.status.readiness === "undetected" ? "blocked" : "succeeded",
|
|
3135
|
+
summary: context.status.summary,
|
|
3136
|
+
});
|
|
3137
|
+
const guidanceStatus = await getGuidanceStatus(workingCopy.targetPath);
|
|
3138
|
+
await recordAuthoringSessionEvent(workingCopy.targetPath, {
|
|
3139
|
+
sessionId,
|
|
3140
|
+
kind: "guidance_status",
|
|
3141
|
+
command: "gdh guidance status",
|
|
3142
|
+
state: guidanceStatus.state === "ready" ? "succeeded" : "blocked",
|
|
3143
|
+
summary: guidanceStatus.summary,
|
|
3144
|
+
});
|
|
3145
|
+
const changedFiles = deriveDogfoodChangedFiles(onboarding.selectedProject);
|
|
3146
|
+
if (changedFiles.length === 0) {
|
|
3147
|
+
const sessionInspection = await inspectAuthoringSessions(workingCopy.targetPath, {
|
|
3148
|
+
sessionId,
|
|
3149
|
+
});
|
|
3150
|
+
return {
|
|
3151
|
+
target,
|
|
3152
|
+
state: "blocked",
|
|
3153
|
+
summary: "Dogfood could not derive a representative authoring change set from the detected project inventory.",
|
|
3154
|
+
changedFiles,
|
|
3155
|
+
inventory: onboarding.inventory,
|
|
3156
|
+
onboarding,
|
|
3157
|
+
status: context.status,
|
|
3158
|
+
guidanceStatus,
|
|
3159
|
+
guidanceResolve: null,
|
|
3160
|
+
validationRecommendation: null,
|
|
3161
|
+
sessionInspection,
|
|
3162
|
+
blockedReason: "no_representative_changed_files",
|
|
3163
|
+
errorMessage: null,
|
|
3164
|
+
};
|
|
3165
|
+
}
|
|
3166
|
+
const validationRecommendation = await recommendValidationForChange({
|
|
3167
|
+
targetPath: workingCopy.targetPath,
|
|
3168
|
+
inventory: context.inventory,
|
|
3169
|
+
status: context.status,
|
|
3170
|
+
projectConfig: context.projectConfig,
|
|
3171
|
+
files: changedFiles,
|
|
3172
|
+
});
|
|
3173
|
+
await recordAuthoringSessionEvent(workingCopy.targetPath, {
|
|
3174
|
+
sessionId,
|
|
3175
|
+
kind: "guidance_resolve",
|
|
3176
|
+
command: "gdh guidance resolve",
|
|
3177
|
+
state: validationRecommendation.guidance.requiredUnits.length > 0 ||
|
|
3178
|
+
validationRecommendation.guidance.recommendedUnits.length > 0
|
|
3179
|
+
? "succeeded"
|
|
3180
|
+
: "blocked",
|
|
3181
|
+
summary: validationRecommendation.guidance.status.summary,
|
|
3182
|
+
guidance: buildGuidanceSnapshot(validationRecommendation.guidance),
|
|
3183
|
+
changedFiles,
|
|
3184
|
+
});
|
|
3185
|
+
await recordAuthoringSessionEvent(workingCopy.targetPath, {
|
|
3186
|
+
sessionId,
|
|
3187
|
+
kind: "verify_recommend",
|
|
3188
|
+
command: "gdh verify recommend",
|
|
3189
|
+
state: validationRecommendation.recommendations.length > 0 ? "succeeded" : "blocked",
|
|
3190
|
+
summary: validationRecommendation.summary,
|
|
3191
|
+
changedFiles,
|
|
3192
|
+
guidance: buildGuidanceSnapshot(validationRecommendation.guidance),
|
|
3193
|
+
validation: {
|
|
3194
|
+
changedFiles,
|
|
3195
|
+
recommendedKinds: validationRecommendation.recommendations.map((item) => item.kind),
|
|
3196
|
+
performedKinds: [],
|
|
3197
|
+
},
|
|
3198
|
+
});
|
|
3199
|
+
const sessionInspection = await inspectAuthoringSessions(workingCopy.targetPath, {
|
|
3200
|
+
sessionId,
|
|
3201
|
+
});
|
|
3202
|
+
const state = isHealthyDogfoodTarget({
|
|
3203
|
+
readiness: context.status.readiness,
|
|
3204
|
+
guidanceState: guidanceStatus.state,
|
|
3205
|
+
recommendationCount: validationRecommendation.recommendations.length,
|
|
3206
|
+
sessionState: sessionInspection.state,
|
|
3207
|
+
})
|
|
3208
|
+
? "passed"
|
|
3209
|
+
: "blocked";
|
|
3210
|
+
return {
|
|
3211
|
+
target,
|
|
3212
|
+
state,
|
|
3213
|
+
summary: state === "passed"
|
|
3214
|
+
? "Dogfood exercised onboarding, readiness, guidance, validation recommendation, and session evidence successfully."
|
|
3215
|
+
: "Dogfood exercised the target, but one or more authoring-slice surfaces stayed blocked or incomplete.",
|
|
3216
|
+
changedFiles,
|
|
3217
|
+
inventory: onboarding.inventory,
|
|
3218
|
+
onboarding,
|
|
3219
|
+
status: context.status,
|
|
3220
|
+
guidanceStatus,
|
|
3221
|
+
guidanceResolve: validationRecommendation.guidance,
|
|
3222
|
+
validationRecommendation,
|
|
3223
|
+
sessionInspection,
|
|
3224
|
+
blockedReason: state === "passed" ? null : "authoring_slice_incomplete",
|
|
3225
|
+
errorMessage: null,
|
|
3226
|
+
};
|
|
3227
|
+
}
|
|
3228
|
+
catch (error) {
|
|
3229
|
+
return {
|
|
3230
|
+
target,
|
|
3231
|
+
state: "failed",
|
|
3232
|
+
summary: "Dogfood execution failed before the target report could complete.",
|
|
3233
|
+
changedFiles: [],
|
|
3234
|
+
inventory: null,
|
|
3235
|
+
onboarding: null,
|
|
3236
|
+
status: null,
|
|
3237
|
+
guidanceStatus: null,
|
|
3238
|
+
guidanceResolve: null,
|
|
3239
|
+
validationRecommendation: null,
|
|
3240
|
+
sessionInspection: null,
|
|
3241
|
+
blockedReason: null,
|
|
3242
|
+
errorMessage: formatCliError(error),
|
|
3243
|
+
};
|
|
3244
|
+
}
|
|
3245
|
+
finally {
|
|
3246
|
+
await fs.rm(workingCopy.tempRoot, { recursive: true, force: true });
|
|
3247
|
+
}
|
|
3248
|
+
}
|
|
3249
|
+
async function createDogfoodWorkingCopy(sourcePath) {
|
|
3250
|
+
const tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), "gdh-dogfood-"));
|
|
3251
|
+
const targetPath = path.join(tempRoot, "target");
|
|
3252
|
+
await fs.cp(sourcePath, targetPath, {
|
|
3253
|
+
recursive: true,
|
|
3254
|
+
verbatimSymlinks: true,
|
|
3255
|
+
filter: async (currentSourcePath) => {
|
|
3256
|
+
const relativePath = path.relative(sourcePath, currentSourcePath);
|
|
3257
|
+
return shouldCopyDisposableTargetPath(relativePath);
|
|
3258
|
+
},
|
|
3259
|
+
});
|
|
3260
|
+
return { tempRoot, targetPath };
|
|
3261
|
+
}
|
|
3262
|
+
function deriveDogfoodChangedFiles(project) {
|
|
3263
|
+
const prefix = project.relativePath === "." ? "" : `${project.relativePath}/`;
|
|
3264
|
+
const candidate = project.scenes[0]?.path ??
|
|
3265
|
+
project.autoloads[0]?.scriptPath ??
|
|
3266
|
+
project.tests[0]?.path ??
|
|
3267
|
+
path.relative(project.rootPath, project.projectFilePath);
|
|
3268
|
+
if (!candidate) {
|
|
3269
|
+
return [];
|
|
3270
|
+
}
|
|
3271
|
+
return [normalizeRelativePath(`${prefix}${candidate}`)];
|
|
3272
|
+
}
|
|
3273
|
+
function shouldCopyDisposableTargetPath(relativePath) {
|
|
3274
|
+
const normalized = normalizeRelativePath(relativePath);
|
|
3275
|
+
if (normalized === "") {
|
|
3276
|
+
return true;
|
|
3277
|
+
}
|
|
3278
|
+
if (normalized === ".gdh-state" || normalized === ".gdh-state/local-paths.json") {
|
|
3279
|
+
return true;
|
|
3280
|
+
}
|
|
3281
|
+
return !normalized.split("/").includes(".gdh-state");
|
|
3282
|
+
}
|
|
3283
|
+
async function evaluateAuthoringSliceValidation(targetPath) {
|
|
3284
|
+
const workingCopy = await createDogfoodWorkingCopy(path.resolve(targetPath));
|
|
3285
|
+
try {
|
|
3286
|
+
const projectConfigPresent = await pathExists(path.join(workingCopy.targetPath, ".gdh/project.yaml"));
|
|
3287
|
+
const hasExistingOnboarding = await hasCompleteOnboardingSurface(workingCopy.targetPath);
|
|
3288
|
+
const onboarding = await onboardGodotProject(workingCopy.targetPath, {
|
|
3289
|
+
dryRun: hasExistingOnboarding || projectConfigPresent,
|
|
3290
|
+
});
|
|
3291
|
+
if (projectConfigPresent && !hasExistingOnboarding) {
|
|
3292
|
+
await applyRepairableOnboardingWrites(onboarding.writes);
|
|
3293
|
+
}
|
|
3294
|
+
if (onboarding.status !== "ready" || onboarding.selectedProject === null) {
|
|
3295
|
+
throw new Error("Authoring-slice validation requires an onboarded target with a selected primary project.");
|
|
3296
|
+
}
|
|
3297
|
+
const context = await buildAuthoringContext(workingCopy.targetPath);
|
|
3298
|
+
const changedFiles = deriveDogfoodChangedFiles(onboarding.selectedProject);
|
|
3299
|
+
if (changedFiles.length === 0) {
|
|
3300
|
+
throw new Error("Authoring-slice validation could not derive a representative authoring change set.");
|
|
3301
|
+
}
|
|
3302
|
+
const adapters = await getSupportedAgentAdaptersStatus(workingCopy.targetPath, {
|
|
3303
|
+
includeUserLocal: false,
|
|
3304
|
+
});
|
|
3305
|
+
const authoringCheck = await runAuthoringCheck({
|
|
3306
|
+
targetPath: workingCopy.targetPath,
|
|
3307
|
+
status: context.status,
|
|
3308
|
+
projectConfig: context.projectConfig,
|
|
3309
|
+
});
|
|
3310
|
+
const donePolicy = await evaluateDonePolicy({
|
|
3311
|
+
targetPath: workingCopy.targetPath,
|
|
3312
|
+
inventory: context.inventory,
|
|
3313
|
+
status: context.status,
|
|
3314
|
+
projectConfig: context.projectConfig,
|
|
3315
|
+
files: changedFiles,
|
|
3316
|
+
performed: [],
|
|
3317
|
+
});
|
|
3318
|
+
return {
|
|
3319
|
+
adapters,
|
|
3320
|
+
authoringCheck,
|
|
3321
|
+
donePolicy,
|
|
3322
|
+
};
|
|
3323
|
+
}
|
|
3324
|
+
finally {
|
|
3325
|
+
await fs.rm(workingCopy.tempRoot, { recursive: true, force: true });
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
function classifyBlockedDogfoodResult(dogfood) {
|
|
3329
|
+
switch (dogfood.blockedReason) {
|
|
3330
|
+
case "pilot_target_missing":
|
|
3331
|
+
return {
|
|
3332
|
+
failureClass: "environment_issue",
|
|
3333
|
+
reasons: ["pilot_target_missing"],
|
|
3334
|
+
};
|
|
3335
|
+
case "onboarding_unresolved":
|
|
3336
|
+
case "selected_project_missing":
|
|
3337
|
+
return {
|
|
3338
|
+
failureClass: "project_issue",
|
|
3339
|
+
reasons: [dogfood.blockedReason],
|
|
3340
|
+
};
|
|
3341
|
+
case "no_representative_changed_files":
|
|
3342
|
+
return {
|
|
3343
|
+
failureClass: "harness_gap",
|
|
3344
|
+
reasons: [dogfood.blockedReason],
|
|
3345
|
+
};
|
|
3346
|
+
case "fixture_target_missing":
|
|
3347
|
+
return {
|
|
3348
|
+
failureClass: "harness_gap",
|
|
3349
|
+
reasons: ["fixture_target_missing"],
|
|
3350
|
+
};
|
|
3351
|
+
default:
|
|
3352
|
+
return {
|
|
3353
|
+
failureClass: "unknown",
|
|
3354
|
+
reasons: dogfood.blockedReason === null ? ["dogfood_blocked"] : [dogfood.blockedReason],
|
|
3355
|
+
};
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
function classifyAuthoringSliceValidation(input) {
|
|
3359
|
+
const codexAdapter = input.adapters.adapters.find((adapter) => adapter.agent === "codex");
|
|
3360
|
+
const codexVisibilityReady = codexAdapter !== undefined &&
|
|
3361
|
+
codexAdapter.surfaces
|
|
3362
|
+
.filter((surface) => surface.scope === "repo")
|
|
3363
|
+
.every((surface) => surface.state === "ready");
|
|
3364
|
+
if (input.adapters.guidance.state !== "ready" || !codexVisibilityReady) {
|
|
3365
|
+
return {
|
|
3366
|
+
state: "blocked",
|
|
3367
|
+
summary: "The authoring-first slice is blocked because supported-agent visibility is not ready enough for internal use.",
|
|
3368
|
+
failureClass: "harness_gap",
|
|
3369
|
+
reasons: [
|
|
3370
|
+
input.adapters.guidance.state !== "ready"
|
|
3371
|
+
? `guidance:${input.adapters.guidance.state}`
|
|
3372
|
+
: null,
|
|
3373
|
+
!codexVisibilityReady ? `adapter:codex:${codexAdapter?.state ?? "missing"}` : null,
|
|
3374
|
+
].filter((reason) => reason !== null),
|
|
3375
|
+
};
|
|
3376
|
+
}
|
|
3377
|
+
if (input.authoringCheck.status === "passed" && input.donePolicy.status === "done") {
|
|
3378
|
+
return {
|
|
3379
|
+
state: "ready",
|
|
3380
|
+
summary: "The current authoring-first slice is healthy enough for internal use on this target.",
|
|
3381
|
+
failureClass: null,
|
|
3382
|
+
reasons: [],
|
|
3383
|
+
};
|
|
3384
|
+
}
|
|
3385
|
+
if (input.authoringCheck.status === "unavailable") {
|
|
3386
|
+
return {
|
|
3387
|
+
state: "blocked",
|
|
3388
|
+
summary: "The authoring-first slice is blocked by environment setup before static validation can run reliably.",
|
|
3389
|
+
failureClass: input.authoringCheck.reasons.includes("godot_editor_not_configured")
|
|
3390
|
+
? "environment_issue"
|
|
3391
|
+
: "unknown",
|
|
3392
|
+
reasons: input.authoringCheck.reasons,
|
|
3393
|
+
};
|
|
3394
|
+
}
|
|
3395
|
+
if (input.authoringCheck.status === "diagnostics") {
|
|
3396
|
+
return {
|
|
3397
|
+
state: "blocked",
|
|
3398
|
+
summary: "The authoring-first slice is blocked because the target already reports authoring diagnostics that need to be resolved.",
|
|
3399
|
+
failureClass: "project_issue",
|
|
3400
|
+
reasons: input.authoringCheck.diagnostics.map((diagnostic) => diagnostic.message),
|
|
3401
|
+
};
|
|
3402
|
+
}
|
|
3403
|
+
if (input.donePolicy.status === "not_done") {
|
|
3404
|
+
return {
|
|
3405
|
+
state: "degraded",
|
|
3406
|
+
summary: "The authoring-first slice ran, but the work would still not be eligible to be called done with the current validation evidence.",
|
|
3407
|
+
failureClass: "agent_judgment_issue",
|
|
3408
|
+
reasons: input.donePolicy.reasons,
|
|
3409
|
+
};
|
|
3410
|
+
}
|
|
3411
|
+
if (input.donePolicy.status === "blocked") {
|
|
3412
|
+
return {
|
|
3413
|
+
state: "blocked",
|
|
3414
|
+
summary: "The authoring-first slice remains blocked because a required validation surface is still unavailable.",
|
|
3415
|
+
failureClass: "environment_issue",
|
|
3416
|
+
reasons: input.donePolicy.reasons,
|
|
3417
|
+
};
|
|
3418
|
+
}
|
|
3419
|
+
if (input.authoringCheck.status === "degraded") {
|
|
3420
|
+
return {
|
|
3421
|
+
state: "degraded",
|
|
3422
|
+
summary: "The authoring-first slice ran with degraded validation trust, so the result is not yet strong enough for internal use.",
|
|
3423
|
+
failureClass: "environment_issue",
|
|
3424
|
+
reasons: input.authoringCheck.reasons,
|
|
3425
|
+
};
|
|
3426
|
+
}
|
|
3427
|
+
return {
|
|
3428
|
+
state: "failed",
|
|
3429
|
+
summary: "The authoring-first slice reached an unexpected state that GDH cannot classify confidently yet.",
|
|
3430
|
+
failureClass: "unknown",
|
|
3431
|
+
reasons: ["authoring_slice_unclassified"],
|
|
3432
|
+
};
|
|
3433
|
+
}
|
|
3434
|
+
function normalizeRelativePath(value) {
|
|
3435
|
+
return value
|
|
3436
|
+
.split(path.sep)
|
|
3437
|
+
.filter((segment) => segment.length > 0 && segment !== ".")
|
|
3438
|
+
.join("/");
|
|
3439
|
+
}
|
|
3440
|
+
function isHealthyDogfoodTarget(input) {
|
|
3441
|
+
return (input.readiness === "authorable" &&
|
|
3442
|
+
input.guidanceState === "ready" &&
|
|
3443
|
+
input.recommendationCount > 0 &&
|
|
3444
|
+
input.sessionState === "available");
|
|
3445
|
+
}
|
|
3446
|
+
function summarizeAuthoringDogfoodState(results) {
|
|
3447
|
+
if (results.some((result) => result.state === "failed")) {
|
|
3448
|
+
return "failed";
|
|
3449
|
+
}
|
|
3450
|
+
if (results.some((result) => result.state === "blocked")) {
|
|
3451
|
+
return "degraded";
|
|
3452
|
+
}
|
|
3453
|
+
return "healthy";
|
|
3454
|
+
}
|
|
3455
|
+
function summarizeAuthoringDogfoodResults(results, state) {
|
|
3456
|
+
const passed = results.filter((result) => result.state === "passed").length;
|
|
3457
|
+
const blocked = results.filter((result) => result.state === "blocked").length;
|
|
3458
|
+
const failed = results.filter((result) => result.state === "failed").length;
|
|
3459
|
+
if (state === "healthy") {
|
|
3460
|
+
return `Authoring dogfood passed for ${passed} target(s).`;
|
|
3461
|
+
}
|
|
3462
|
+
if (state === "degraded") {
|
|
3463
|
+
return `Authoring dogfood completed with ${passed} passed and ${blocked} blocked target(s).`;
|
|
3464
|
+
}
|
|
3465
|
+
return `Authoring dogfood encountered ${failed} failed target(s), ${blocked} blocked target(s), and ${passed} passed target(s).`;
|
|
3466
|
+
}
|
|
3467
|
+
function createDogfoodSessionId(kind, sourcePath) {
|
|
3468
|
+
return [
|
|
3469
|
+
"dogfood",
|
|
3470
|
+
kind,
|
|
3471
|
+
path.basename(sourcePath).replace(/[^a-zA-Z0-9_-]+/g, "-"),
|
|
3472
|
+
Date.now().toString(36),
|
|
3473
|
+
].join("-");
|
|
3474
|
+
}
|
|
3475
|
+
async function pathExists(targetPath) {
|
|
3476
|
+
try {
|
|
3477
|
+
await fs.stat(targetPath);
|
|
3478
|
+
return true;
|
|
3479
|
+
}
|
|
3480
|
+
catch {
|
|
3481
|
+
return false;
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
function renderHelp() {
|
|
3485
|
+
return ([
|
|
3486
|
+
`${GDH_PRODUCT_NAME} CLI`,
|
|
3487
|
+
"",
|
|
3488
|
+
"Commands:",
|
|
3489
|
+
" --version Print the active GDH product version.",
|
|
3490
|
+
" version Print GDH product metadata and managed project-surface versions.",
|
|
3491
|
+
" setup [target] Run the interactive setup wizard and end with the `/gdh-onboard` handoff.",
|
|
3492
|
+
" status [target] Report explicit GDH readiness and capability availability.",
|
|
3493
|
+
" docs version [target] [--project <relative-path>] Resolve the effective Godot docs version and official source set.",
|
|
3494
|
+
" docs search <query> [target] [--project <relative-path>] [--limit <n>] Search official version-aware Godot docs.",
|
|
3495
|
+
" docs fetch <ref-or-url> [target] [--project <relative-path>] Fetch one official version-aware Godot docs page or section.",
|
|
3496
|
+
" adapters status [target] [--integration-root <path>] Inspect supported-agent reinforcement status.",
|
|
3497
|
+
" adapters install [target] [--dry-run] [--agent <name>] [--user] [--dev-repo <path>] [--integration-root <path>] Install or repair supported-agent reinforcement.",
|
|
3498
|
+
" adapters gsd snapshot [target] [--files <path>] [--performed <kind>] Export a read-only GSD projection.",
|
|
3499
|
+
" authoring check [target] Run the current authoring-check entrypoint.",
|
|
3500
|
+
" lsp status [target] Resolve the managed authoring.lsp lifecycle state.",
|
|
3501
|
+
" warmup [target] [--dry-run] Inspect or apply authoring worktree warmup.",
|
|
3502
|
+
" target prepare [target] [--source-target <path>] [--dry-run] Prepare target-local generated/import state.",
|
|
3503
|
+
" imports refresh [target] [--dry-run] Run or plan a headless Godot import refresh.",
|
|
3504
|
+
" run-config list [target] List run configurations.",
|
|
3505
|
+
" run-config show [target] <run-config-id> Show one run configuration.",
|
|
3506
|
+
" run-config check [target] <run-config-id> Evaluate run-configuration readiness.",
|
|
3507
|
+
" run-config run [target] <run-config-id> Execute one run configuration.",
|
|
3508
|
+
" bridge status [target] Inspect the managed runtime bridge lifecycle state.",
|
|
3509
|
+
" bridge doctor [target] Alias for bridge status.",
|
|
3510
|
+
" bridge install [target] [--dry-run] Install the GDH-managed runtime bridge surface.",
|
|
3511
|
+
" bridge repair [target] [--dry-run] Repair drifted GDH-managed bridge files and autoload state.",
|
|
3512
|
+
" bridge remove [target] [--dry-run] Remove the GDH-managed runtime bridge surface.",
|
|
3513
|
+
" verification-scenario list [target] List verification scenarios.",
|
|
3514
|
+
" verification-scenario show [target] <verification-scenario-id> Show one verification scenario.",
|
|
3515
|
+
" guidance status [target] Inspect durable guidance and audit availability.",
|
|
3516
|
+
" guidance resolve [target] Resolve eligible deeper guidance units.",
|
|
3517
|
+
" guidance audit [target] Inspect stored guidance-audit history.",
|
|
3518
|
+
" observability session [target] [--latest] Inspect recorded authoring-session history.",
|
|
3519
|
+
" observability effectiveness [target] [--latest] Summarize heuristic agent-effectiveness signals.",
|
|
3520
|
+
" dogfood authoring --fixtures <path> [--fixtures <path>...] [--pilot <path>] Run the authoring-first slice report.",
|
|
3521
|
+
" mcp manifest Print the thin GDH MCP manifest.",
|
|
3522
|
+
" mcp serve --target <path> Run the real GDH stdio MCP server.",
|
|
3523
|
+
" mcp invoke <tool> [target] [--input-json <json>] Invoke one GDH MCP tool.",
|
|
3524
|
+
" verify run [target] <run-config-id> --verification-scenario <verification-scenario-id> Execute one verification scenario.",
|
|
3525
|
+
" verify inspect [target] [--run-record <run-record-id>] Inspect one runtime run record.",
|
|
3526
|
+
" verify readiness [target] Summarize runtime verification readiness and recurring runtime feedback.",
|
|
3527
|
+
" verify corpus status Inspect runtime corpus release-readiness evidence.",
|
|
3528
|
+
" verify corpus materialize --entry <id> Materialize one runtime corpus entry into GDH-managed source state.",
|
|
3529
|
+
" verify corpus exercise --entry <id> Exercise one runtime corpus entry through onboarding and runtime verification.",
|
|
3530
|
+
" verify corpus record --entry <id> --target <path> Record runtime corpus evidence for one target.",
|
|
3531
|
+
" verify recommend [target] --files <path> Recommend validation requirements.",
|
|
3532
|
+
" verify done [target] --files <path> Evaluate whether a change is done.",
|
|
3533
|
+
" cache inspect [target] Inspect namespaced authoring cache state.",
|
|
3534
|
+
" cache prune [target] [--scope <scope>] Remove namespaced authoring cache state.",
|
|
3535
|
+
" migrate [target] [--apply] Plan or apply current GDH project-surface migrations.",
|
|
3536
|
+
" scan [target] Scan a filesystem target and print a machine-generated Godot inventory.",
|
|
3537
|
+
" onboard [target] Advanced: generate the low-level GDH project surface from scan evidence as JSON.",
|
|
3538
|
+
"",
|
|
3539
|
+
"Run `gdh <command> --help` for command-specific usage.",
|
|
3540
|
+
].join("\n") + "\n");
|
|
3541
|
+
}
|
|
3542
|
+
function formatCliError(error) {
|
|
3543
|
+
return error instanceof Error ? error.message : String(error);
|
|
3544
|
+
}
|
|
3545
|
+
function resolveCachePruneScope(args) {
|
|
3546
|
+
const index = args.indexOf("--scope");
|
|
3547
|
+
if (index === -1) {
|
|
3548
|
+
return "all";
|
|
3549
|
+
}
|
|
3550
|
+
const value = args[index + 1];
|
|
3551
|
+
if (value === "worktree" || value === "project" || value === "all") {
|
|
3552
|
+
return value;
|
|
3553
|
+
}
|
|
3554
|
+
return null;
|
|
3555
|
+
}
|
|
3556
|
+
function extractCachePrunePositionalArgs(args) {
|
|
3557
|
+
const positionalArgs = [];
|
|
3558
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
3559
|
+
const arg = args[index];
|
|
3560
|
+
if (!arg) {
|
|
3561
|
+
continue;
|
|
3562
|
+
}
|
|
3563
|
+
if (arg === "--scope") {
|
|
3564
|
+
index += 1;
|
|
3565
|
+
continue;
|
|
3566
|
+
}
|
|
3567
|
+
if (arg.startsWith("--")) {
|
|
3568
|
+
continue;
|
|
3569
|
+
}
|
|
3570
|
+
positionalArgs.push(arg);
|
|
3571
|
+
}
|
|
3572
|
+
return positionalArgs;
|
|
3573
|
+
}
|
|
3574
|
+
function collectOptionValues(args, optionName) {
|
|
3575
|
+
const values = [];
|
|
3576
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
3577
|
+
if (args[index] !== optionName) {
|
|
3578
|
+
continue;
|
|
3579
|
+
}
|
|
3580
|
+
const value = args[index + 1];
|
|
3581
|
+
if (!value || value.startsWith("--")) {
|
|
3582
|
+
continue;
|
|
3583
|
+
}
|
|
3584
|
+
values.push(value);
|
|
3585
|
+
index += 1;
|
|
3586
|
+
}
|
|
3587
|
+
return values;
|
|
3588
|
+
}
|
|
3589
|
+
function collectAssignmentOptionValues(args, optionName) {
|
|
3590
|
+
const assignments = {};
|
|
3591
|
+
for (const value of collectOptionValues(args, optionName)) {
|
|
3592
|
+
const separatorIndex = value.indexOf("=");
|
|
3593
|
+
if (separatorIndex <= 0 || separatorIndex === value.length - 1) {
|
|
3594
|
+
continue;
|
|
3595
|
+
}
|
|
3596
|
+
assignments[value.slice(0, separatorIndex)] = value.slice(separatorIndex + 1);
|
|
3597
|
+
}
|
|
3598
|
+
return assignments;
|
|
3599
|
+
}
|
|
3600
|
+
function readSingleOptionValue(args, optionName) {
|
|
3601
|
+
const index = args.indexOf(optionName);
|
|
3602
|
+
if (index === -1) {
|
|
3603
|
+
return null;
|
|
3604
|
+
}
|
|
3605
|
+
const value = args[index + 1];
|
|
3606
|
+
if (!value || value.startsWith("--")) {
|
|
3607
|
+
return null;
|
|
3608
|
+
}
|
|
3609
|
+
return value;
|
|
3610
|
+
}
|
|
3611
|
+
function findUnsupportedOptionsError(args, options) {
|
|
3612
|
+
const supportedOptions = new Set([
|
|
3613
|
+
...(options.optionsWithValues ?? []),
|
|
3614
|
+
...(options.booleanOptions ?? []),
|
|
3615
|
+
]);
|
|
3616
|
+
const unknownOptions = args.filter((arg) => arg.startsWith("--") && !supportedOptions.has(arg));
|
|
3617
|
+
if (unknownOptions.length === 0) {
|
|
3618
|
+
return null;
|
|
3619
|
+
}
|
|
3620
|
+
return `Usage error: unsupported option(s): ${unknownOptions.join(", ")}.\n${options.usage}`;
|
|
3621
|
+
}
|
|
3622
|
+
function parseSingleTargetPathArg(args, options) {
|
|
3623
|
+
const allowTargetOption = options.allowTargetOption ?? false;
|
|
3624
|
+
const unsupportedOptionsError = findUnsupportedOptionsError(args, {
|
|
3625
|
+
usage: options.usage,
|
|
3626
|
+
optionsWithValues: allowTargetOption ? ["--target"] : [],
|
|
3627
|
+
});
|
|
3628
|
+
if (unsupportedOptionsError !== null) {
|
|
3629
|
+
return {
|
|
3630
|
+
targetPath: ".",
|
|
3631
|
+
error: unsupportedOptionsError,
|
|
3632
|
+
};
|
|
3633
|
+
}
|
|
3634
|
+
const targetOptionValue = allowTargetOption ? readSingleOptionValue(args, "--target") : null;
|
|
3635
|
+
const positionalArgs = extractPositionalArgs(args, new Set(allowTargetOption ? ["--target"] : []));
|
|
3636
|
+
if (allowTargetOption && args.includes("--target") && targetOptionValue === null) {
|
|
3637
|
+
return {
|
|
3638
|
+
targetPath: ".",
|
|
3639
|
+
error: `Usage error: --target requires a path value.\n${options.usage}`,
|
|
3640
|
+
};
|
|
3641
|
+
}
|
|
3642
|
+
if (positionalArgs.length > 1) {
|
|
3643
|
+
return {
|
|
3644
|
+
targetPath: ".",
|
|
3645
|
+
error: `Usage error: command accepts at most one target path.\n${options.usage}`,
|
|
3646
|
+
};
|
|
3647
|
+
}
|
|
3648
|
+
if (allowTargetOption && targetOptionValue !== null && positionalArgs.length > 0) {
|
|
3649
|
+
return {
|
|
3650
|
+
targetPath: ".",
|
|
3651
|
+
error: `Usage error: choose either a positional target path or --target <path>.\n${options.usage}`,
|
|
3652
|
+
};
|
|
3653
|
+
}
|
|
3654
|
+
return {
|
|
3655
|
+
targetPath: targetOptionValue ?? positionalArgs[0] ?? ".",
|
|
3656
|
+
error: null,
|
|
3657
|
+
};
|
|
3658
|
+
}
|
|
3659
|
+
function parsePositiveIntegerOptionValue(value) {
|
|
3660
|
+
if (!/^\d+$/.test(value)) {
|
|
3661
|
+
return null;
|
|
3662
|
+
}
|
|
3663
|
+
const parsed = Number.parseInt(value, 10);
|
|
3664
|
+
return parsed > 0 ? parsed : null;
|
|
3665
|
+
}
|
|
3666
|
+
function buildGuidanceSnapshot(result) {
|
|
3667
|
+
return {
|
|
3668
|
+
effectiveRepoState: result.effectiveRepoState,
|
|
3669
|
+
requiredUnitIds: result.requiredUnits.map((unit) => unit.id),
|
|
3670
|
+
recommendedUnitIds: result.recommendedUnits.map((unit) => unit.id),
|
|
3671
|
+
};
|
|
3672
|
+
}
|
|
3673
|
+
async function recordSessionEvent(targetPath, input) {
|
|
3674
|
+
try {
|
|
3675
|
+
const { commandStartedAtMs, ...eventInput } = input;
|
|
3676
|
+
const startedAt = typeof commandStartedAtMs === "number" && Number.isFinite(commandStartedAtMs)
|
|
3677
|
+
? new Date(commandStartedAtMs).toISOString()
|
|
3678
|
+
: null;
|
|
3679
|
+
await recordAuthoringSessionEvent(targetPath, {
|
|
3680
|
+
sessionId: process.env["GDH_SESSION_ID"] ?? null,
|
|
3681
|
+
startedAt,
|
|
3682
|
+
...eventInput,
|
|
3683
|
+
});
|
|
3684
|
+
}
|
|
3685
|
+
catch {
|
|
3686
|
+
// Observability is operational state; do not break the primary command if recording fails.
|
|
3687
|
+
}
|
|
3688
|
+
}
|
|
3689
|
+
function parseMcpInputJson(args) {
|
|
3690
|
+
const value = collectOptionValues(args, "--input-json")[0];
|
|
3691
|
+
if (!value) {
|
|
3692
|
+
return {};
|
|
3693
|
+
}
|
|
3694
|
+
const parsed = JSON.parse(value);
|
|
3695
|
+
if (parsed === null || Array.isArray(parsed) || typeof parsed !== "object") {
|
|
3696
|
+
throw new Error("--input-json must parse to a JSON object.");
|
|
3697
|
+
}
|
|
3698
|
+
return parsed;
|
|
3699
|
+
}
|
|
3700
|
+
function collectAdapterNames(args) {
|
|
3701
|
+
const values = collectOptionValues(args, "--agent");
|
|
3702
|
+
if (values.length === 0) {
|
|
3703
|
+
return [];
|
|
3704
|
+
}
|
|
3705
|
+
const agents = [];
|
|
3706
|
+
for (const value of values) {
|
|
3707
|
+
if (!isSupportedAgent(value)) {
|
|
3708
|
+
return null;
|
|
3709
|
+
}
|
|
3710
|
+
agents.push(value);
|
|
3711
|
+
}
|
|
3712
|
+
return agents;
|
|
3713
|
+
}
|
|
3714
|
+
function isSupportedAgent(value) {
|
|
3715
|
+
return value === "codex" || value === "claude" || value === "cursor";
|
|
3716
|
+
}
|
|
3717
|
+
function deriveGuidanceRepoState(context) {
|
|
3718
|
+
const repoState = new Set();
|
|
3719
|
+
if (context.projectConfig !== null) {
|
|
3720
|
+
repoState.add("onboarded");
|
|
3721
|
+
}
|
|
3722
|
+
if (context.status.readiness !== "undetected") {
|
|
3723
|
+
repoState.add(context.status.readiness);
|
|
3724
|
+
}
|
|
3725
|
+
return [...repoState];
|
|
3726
|
+
}
|
|
3727
|
+
function collectPerformedValidationKinds(args) {
|
|
3728
|
+
return collectOptionValues(args, "--performed").flatMap((value) => {
|
|
3729
|
+
switch (value) {
|
|
3730
|
+
case "authoring_check":
|
|
3731
|
+
case "unit_tests":
|
|
3732
|
+
case "integration_tests":
|
|
3733
|
+
case "editor_validation":
|
|
3734
|
+
case "runtime_scenario":
|
|
3735
|
+
case "manual_review":
|
|
3736
|
+
return [value];
|
|
3737
|
+
default:
|
|
3738
|
+
return [];
|
|
3739
|
+
}
|
|
3740
|
+
});
|
|
3741
|
+
}
|
|
3742
|
+
function extractGuidanceResolvePositionalArgs(args) {
|
|
3743
|
+
return extractPositionalArgs(args, new Set(["--task-type", "--capability", "--repo-state", "--keyword"]));
|
|
3744
|
+
}
|
|
3745
|
+
function extractRecipePositionalArgs(args) {
|
|
3746
|
+
return extractPositionalArgs(args, new Set(["--provider", "--param", "--feature", "--no-feature", "--env"]));
|
|
3747
|
+
}
|
|
3748
|
+
function extractPositionalArgs(args, optionsWithValues) {
|
|
3749
|
+
const positionalArgs = [];
|
|
3750
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
3751
|
+
const arg = args[index];
|
|
3752
|
+
if (!arg) {
|
|
3753
|
+
continue;
|
|
3754
|
+
}
|
|
3755
|
+
if (optionsWithValues.has(arg)) {
|
|
3756
|
+
index += 1;
|
|
3757
|
+
continue;
|
|
3758
|
+
}
|
|
3759
|
+
if (arg.startsWith("--")) {
|
|
3760
|
+
continue;
|
|
3761
|
+
}
|
|
3762
|
+
positionalArgs.push(arg);
|
|
3763
|
+
}
|
|
3764
|
+
return positionalArgs;
|
|
3765
|
+
}
|
|
3766
|
+
//# sourceMappingURL=index.js.map
|