@aroman22/codegraph-vba-darwin-arm64 1.3.3
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/bin/codegraph +14 -0
- package/lib/dist/bin/codegraph.d.ts +26 -0
- package/lib/dist/bin/codegraph.d.ts.map +1 -0
- package/lib/dist/bin/codegraph.js +2018 -0
- package/lib/dist/bin/codegraph.js.map +1 -0
- package/lib/dist/bin/command-supervision.d.ts +12 -0
- package/lib/dist/bin/command-supervision.d.ts.map +1 -0
- package/lib/dist/bin/command-supervision.js +76 -0
- package/lib/dist/bin/command-supervision.js.map +1 -0
- package/lib/dist/bin/fatal-handler.d.ts +20 -0
- package/lib/dist/bin/fatal-handler.d.ts.map +1 -0
- package/lib/dist/bin/fatal-handler.js +118 -0
- package/lib/dist/bin/fatal-handler.js.map +1 -0
- package/lib/dist/bin/node-version-check.d.ts +37 -0
- package/lib/dist/bin/node-version-check.d.ts.map +1 -0
- package/lib/dist/bin/node-version-check.js +79 -0
- package/lib/dist/bin/node-version-check.js.map +1 -0
- package/lib/dist/bin/uninstall.d.ts +14 -0
- package/lib/dist/bin/uninstall.d.ts.map +1 -0
- package/lib/dist/bin/uninstall.js +36 -0
- package/lib/dist/bin/uninstall.js.map +1 -0
- package/lib/dist/context/formatter.d.ts +30 -0
- package/lib/dist/context/formatter.d.ts.map +1 -0
- package/lib/dist/context/formatter.js +263 -0
- package/lib/dist/context/formatter.js.map +1 -0
- package/lib/dist/context/index.d.ts +119 -0
- package/lib/dist/context/index.d.ts.map +1 -0
- package/lib/dist/context/index.js +1296 -0
- package/lib/dist/context/index.js.map +1 -0
- package/lib/dist/context/markers.d.ts +19 -0
- package/lib/dist/context/markers.d.ts.map +1 -0
- package/lib/dist/context/markers.js +22 -0
- package/lib/dist/context/markers.js.map +1 -0
- package/lib/dist/db/index.d.ts +122 -0
- package/lib/dist/db/index.d.ts.map +1 -0
- package/lib/dist/db/index.js +296 -0
- package/lib/dist/db/index.js.map +1 -0
- package/lib/dist/db/migrations.d.ts +44 -0
- package/lib/dist/db/migrations.d.ts.map +1 -0
- package/lib/dist/db/migrations.js +140 -0
- package/lib/dist/db/migrations.js.map +1 -0
- package/lib/dist/db/queries.d.ts +402 -0
- package/lib/dist/db/queries.d.ts.map +1 -0
- package/lib/dist/db/queries.js +1626 -0
- package/lib/dist/db/queries.js.map +1 -0
- package/lib/dist/db/schema.sql +152 -0
- package/lib/dist/db/sqlite-adapter.d.ts +53 -0
- package/lib/dist/db/sqlite-adapter.d.ts.map +1 -0
- package/lib/dist/db/sqlite-adapter.js +117 -0
- package/lib/dist/db/sqlite-adapter.js.map +1 -0
- package/lib/dist/directory.d.ts +179 -0
- package/lib/dist/directory.d.ts.map +1 -0
- package/lib/dist/directory.js +625 -0
- package/lib/dist/directory.js.map +1 -0
- package/lib/dist/errors.d.ts +136 -0
- package/lib/dist/errors.d.ts.map +1 -0
- package/lib/dist/errors.js +219 -0
- package/lib/dist/errors.js.map +1 -0
- package/lib/dist/extraction/astro-extractor.d.ts +79 -0
- package/lib/dist/extraction/astro-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/astro-extractor.js +320 -0
- package/lib/dist/extraction/astro-extractor.js.map +1 -0
- package/lib/dist/extraction/dfm-extractor.d.ts +31 -0
- package/lib/dist/extraction/dfm-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/dfm-extractor.js +151 -0
- package/lib/dist/extraction/dfm-extractor.js.map +1 -0
- package/lib/dist/extraction/extraction-version.d.ts +25 -0
- package/lib/dist/extraction/extraction-version.d.ts.map +1 -0
- package/lib/dist/extraction/extraction-version.js +28 -0
- package/lib/dist/extraction/extraction-version.js.map +1 -0
- package/lib/dist/extraction/function-ref.d.ts +118 -0
- package/lib/dist/extraction/function-ref.d.ts.map +1 -0
- package/lib/dist/extraction/function-ref.js +727 -0
- package/lib/dist/extraction/function-ref.js.map +1 -0
- package/lib/dist/extraction/generated-detection.d.ts +30 -0
- package/lib/dist/extraction/generated-detection.d.ts.map +1 -0
- package/lib/dist/extraction/generated-detection.js +83 -0
- package/lib/dist/extraction/generated-detection.js.map +1 -0
- package/lib/dist/extraction/grammars.d.ts +128 -0
- package/lib/dist/extraction/grammars.d.ts.map +1 -0
- package/lib/dist/extraction/grammars.js +537 -0
- package/lib/dist/extraction/grammars.js.map +1 -0
- package/lib/dist/extraction/index.d.ts +187 -0
- package/lib/dist/extraction/index.d.ts.map +1 -0
- package/lib/dist/extraction/index.js +1951 -0
- package/lib/dist/extraction/index.js.map +1 -0
- package/lib/dist/extraction/languages/c-cpp.d.ts +12 -0
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -0
- package/lib/dist/extraction/languages/c-cpp.js +275 -0
- package/lib/dist/extraction/languages/c-cpp.js.map +1 -0
- package/lib/dist/extraction/languages/csharp.d.ts +25 -0
- package/lib/dist/extraction/languages/csharp.d.ts.map +1 -0
- package/lib/dist/extraction/languages/csharp.js +175 -0
- package/lib/dist/extraction/languages/csharp.js.map +1 -0
- package/lib/dist/extraction/languages/dart.d.ts +3 -0
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -0
- package/lib/dist/extraction/languages/dart.js +374 -0
- package/lib/dist/extraction/languages/dart.js.map +1 -0
- package/lib/dist/extraction/languages/go.d.ts +3 -0
- package/lib/dist/extraction/languages/go.d.ts.map +1 -0
- package/lib/dist/extraction/languages/go.js +111 -0
- package/lib/dist/extraction/languages/go.js.map +1 -0
- package/lib/dist/extraction/languages/index.d.ts +10 -0
- package/lib/dist/extraction/languages/index.d.ts.map +1 -0
- package/lib/dist/extraction/languages/index.js +53 -0
- package/lib/dist/extraction/languages/index.js.map +1 -0
- package/lib/dist/extraction/languages/java.d.ts +3 -0
- package/lib/dist/extraction/languages/java.d.ts.map +1 -0
- package/lib/dist/extraction/languages/java.js +315 -0
- package/lib/dist/extraction/languages/java.js.map +1 -0
- package/lib/dist/extraction/languages/javascript.d.ts +3 -0
- package/lib/dist/extraction/languages/javascript.d.ts.map +1 -0
- package/lib/dist/extraction/languages/javascript.js +106 -0
- package/lib/dist/extraction/languages/javascript.js.map +1 -0
- package/lib/dist/extraction/languages/kotlin.d.ts +3 -0
- package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -0
- package/lib/dist/extraction/languages/kotlin.js +379 -0
- package/lib/dist/extraction/languages/kotlin.js.map +1 -0
- package/lib/dist/extraction/languages/lua.d.ts +3 -0
- package/lib/dist/extraction/languages/lua.d.ts.map +1 -0
- package/lib/dist/extraction/languages/lua.js +150 -0
- package/lib/dist/extraction/languages/lua.js.map +1 -0
- package/lib/dist/extraction/languages/luau.d.ts +3 -0
- package/lib/dist/extraction/languages/luau.d.ts.map +1 -0
- package/lib/dist/extraction/languages/luau.js +37 -0
- package/lib/dist/extraction/languages/luau.js.map +1 -0
- package/lib/dist/extraction/languages/objc.d.ts +3 -0
- package/lib/dist/extraction/languages/objc.d.ts.map +1 -0
- package/lib/dist/extraction/languages/objc.js +175 -0
- package/lib/dist/extraction/languages/objc.js.map +1 -0
- package/lib/dist/extraction/languages/pascal.d.ts +3 -0
- package/lib/dist/extraction/languages/pascal.d.ts.map +1 -0
- package/lib/dist/extraction/languages/pascal.js +77 -0
- package/lib/dist/extraction/languages/pascal.js.map +1 -0
- package/lib/dist/extraction/languages/php.d.ts +3 -0
- package/lib/dist/extraction/languages/php.d.ts.map +1 -0
- package/lib/dist/extraction/languages/php.js +196 -0
- package/lib/dist/extraction/languages/php.js.map +1 -0
- package/lib/dist/extraction/languages/python.d.ts +3 -0
- package/lib/dist/extraction/languages/python.d.ts.map +1 -0
- package/lib/dist/extraction/languages/python.js +56 -0
- package/lib/dist/extraction/languages/python.js.map +1 -0
- package/lib/dist/extraction/languages/r.d.ts +3 -0
- package/lib/dist/extraction/languages/r.d.ts.map +1 -0
- package/lib/dist/extraction/languages/r.js +314 -0
- package/lib/dist/extraction/languages/r.js.map +1 -0
- package/lib/dist/extraction/languages/ruby.d.ts +3 -0
- package/lib/dist/extraction/languages/ruby.d.ts.map +1 -0
- package/lib/dist/extraction/languages/ruby.js +149 -0
- package/lib/dist/extraction/languages/ruby.js.map +1 -0
- package/lib/dist/extraction/languages/rust.d.ts +3 -0
- package/lib/dist/extraction/languages/rust.d.ts.map +1 -0
- package/lib/dist/extraction/languages/rust.js +142 -0
- package/lib/dist/extraction/languages/rust.js.map +1 -0
- package/lib/dist/extraction/languages/scala.d.ts +3 -0
- package/lib/dist/extraction/languages/scala.d.ts.map +1 -0
- package/lib/dist/extraction/languages/scala.js +209 -0
- package/lib/dist/extraction/languages/scala.js.map +1 -0
- package/lib/dist/extraction/languages/swift.d.ts +3 -0
- package/lib/dist/extraction/languages/swift.d.ts.map +1 -0
- package/lib/dist/extraction/languages/swift.js +152 -0
- package/lib/dist/extraction/languages/swift.js.map +1 -0
- package/lib/dist/extraction/languages/typescript.d.ts +16 -0
- package/lib/dist/extraction/languages/typescript.d.ts.map +1 -0
- package/lib/dist/extraction/languages/typescript.js +167 -0
- package/lib/dist/extraction/languages/typescript.js.map +1 -0
- package/lib/dist/extraction/liquid-extractor.d.ts +59 -0
- package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/liquid-extractor.js +357 -0
- package/lib/dist/extraction/liquid-extractor.js.map +1 -0
- package/lib/dist/extraction/mybatis-extractor.d.ts +48 -0
- package/lib/dist/extraction/mybatis-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/mybatis-extractor.js +198 -0
- package/lib/dist/extraction/mybatis-extractor.js.map +1 -0
- package/lib/dist/extraction/parse-pool.d.ts +126 -0
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -0
- package/lib/dist/extraction/parse-pool.js +319 -0
- package/lib/dist/extraction/parse-pool.js.map +1 -0
- package/lib/dist/extraction/parse-worker.d.ts +8 -0
- package/lib/dist/extraction/parse-worker.d.ts.map +1 -0
- package/lib/dist/extraction/parse-worker.js +97 -0
- package/lib/dist/extraction/parse-worker.js.map +1 -0
- package/lib/dist/extraction/razor-extractor.d.ts +42 -0
- package/lib/dist/extraction/razor-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/razor-extractor.js +285 -0
- package/lib/dist/extraction/razor-extractor.js.map +1 -0
- package/lib/dist/extraction/sql-query-extractor.d.ts +25 -0
- package/lib/dist/extraction/sql-query-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/sql-query-extractor.js +177 -0
- package/lib/dist/extraction/sql-query-extractor.js.map +1 -0
- package/lib/dist/extraction/svelte-extractor.d.ts +56 -0
- package/lib/dist/extraction/svelte-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/svelte-extractor.js +275 -0
- package/lib/dist/extraction/svelte-extractor.js.map +1 -0
- package/lib/dist/extraction/tree-sitter-helpers.d.ts +28 -0
- package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -0
- package/lib/dist/extraction/tree-sitter-helpers.js +152 -0
- package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -0
- package/lib/dist/extraction/tree-sitter-types.d.ts +239 -0
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -0
- package/lib/dist/extraction/tree-sitter-types.js +10 -0
- package/lib/dist/extraction/tree-sitter-types.js.map +1 -0
- package/lib/dist/extraction/tree-sitter.d.ts +647 -0
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -0
- package/lib/dist/extraction/tree-sitter.js +5647 -0
- package/lib/dist/extraction/tree-sitter.js.map +1 -0
- package/lib/dist/extraction/vba-extractor.d.ts +394 -0
- package/lib/dist/extraction/vba-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/vba-extractor.js +1716 -0
- package/lib/dist/extraction/vba-extractor.js.map +1 -0
- package/lib/dist/extraction/vba-form-extractor.d.ts +89 -0
- package/lib/dist/extraction/vba-form-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/vba-form-extractor.js +367 -0
- package/lib/dist/extraction/vba-form-extractor.js.map +1 -0
- package/lib/dist/extraction/vba-preprocess.d.ts +81 -0
- package/lib/dist/extraction/vba-preprocess.d.ts.map +1 -0
- package/lib/dist/extraction/vba-preprocess.js +287 -0
- package/lib/dist/extraction/vba-preprocess.js.map +1 -0
- package/lib/dist/extraction/vue-extractor.d.ts +51 -0
- package/lib/dist/extraction/vue-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/vue-extractor.js +254 -0
- package/lib/dist/extraction/vue-extractor.js.map +1 -0
- package/lib/dist/extraction/wasm/tree-sitter-c_sharp.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-lua.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-luau.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-r.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts +38 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts.map +1 -0
- package/lib/dist/extraction/wasm-runtime-flags.js +106 -0
- package/lib/dist/extraction/wasm-runtime-flags.js.map +1 -0
- package/lib/dist/graph/index.d.ts +8 -0
- package/lib/dist/graph/index.d.ts.map +1 -0
- package/lib/dist/graph/index.js +13 -0
- package/lib/dist/graph/index.js.map +1 -0
- package/lib/dist/graph/queries.d.ts +106 -0
- package/lib/dist/graph/queries.d.ts.map +1 -0
- package/lib/dist/graph/queries.js +339 -0
- package/lib/dist/graph/queries.js.map +1 -0
- package/lib/dist/graph/traversal.d.ts +127 -0
- package/lib/dist/graph/traversal.d.ts.map +1 -0
- package/lib/dist/graph/traversal.js +540 -0
- package/lib/dist/graph/traversal.js.map +1 -0
- package/lib/dist/index.d.ts +563 -0
- package/lib/dist/index.d.ts.map +1 -0
- package/lib/dist/index.js +1041 -0
- package/lib/dist/index.js.map +1 -0
- package/lib/dist/installer/config-writer.d.ts +28 -0
- package/lib/dist/installer/config-writer.d.ts.map +1 -0
- package/lib/dist/installer/config-writer.js +91 -0
- package/lib/dist/installer/config-writer.js.map +1 -0
- package/lib/dist/installer/index.d.ts +100 -0
- package/lib/dist/installer/index.d.ts.map +1 -0
- package/lib/dist/installer/index.js +524 -0
- package/lib/dist/installer/index.js.map +1 -0
- package/lib/dist/installer/instructions-template.d.ts +41 -0
- package/lib/dist/installer/instructions-template.d.ts.map +1 -0
- package/lib/dist/installer/instructions-template.js +53 -0
- package/lib/dist/installer/instructions-template.js.map +1 -0
- package/lib/dist/installer/targets/antigravity.d.ts +57 -0
- package/lib/dist/installer/targets/antigravity.d.ts.map +1 -0
- package/lib/dist/installer/targets/antigravity.js +308 -0
- package/lib/dist/installer/targets/antigravity.js.map +1 -0
- package/lib/dist/installer/targets/claude.d.ts +62 -0
- package/lib/dist/installer/targets/claude.d.ts.map +1 -0
- package/lib/dist/installer/targets/claude.js +454 -0
- package/lib/dist/installer/targets/claude.js.map +1 -0
- package/lib/dist/installer/targets/codex.d.ts +18 -0
- package/lib/dist/installer/targets/codex.d.ts.map +1 -0
- package/lib/dist/installer/targets/codex.js +185 -0
- package/lib/dist/installer/targets/codex.js.map +1 -0
- package/lib/dist/installer/targets/cursor.d.ts +35 -0
- package/lib/dist/installer/targets/cursor.d.ts.map +1 -0
- package/lib/dist/installer/targets/cursor.js +254 -0
- package/lib/dist/installer/targets/cursor.js.map +1 -0
- package/lib/dist/installer/targets/gemini.d.ts +26 -0
- package/lib/dist/installer/targets/gemini.d.ts.map +1 -0
- package/lib/dist/installer/targets/gemini.js +165 -0
- package/lib/dist/installer/targets/gemini.js.map +1 -0
- package/lib/dist/installer/targets/hermes.d.ts +18 -0
- package/lib/dist/installer/targets/hermes.d.ts.map +1 -0
- package/lib/dist/installer/targets/hermes.js +359 -0
- package/lib/dist/installer/targets/hermes.js.map +1 -0
- package/lib/dist/installer/targets/kiro.d.ts +27 -0
- package/lib/dist/installer/targets/kiro.d.ts.map +1 -0
- package/lib/dist/installer/targets/kiro.js +178 -0
- package/lib/dist/installer/targets/kiro.js.map +1 -0
- package/lib/dist/installer/targets/opencode.d.ts +38 -0
- package/lib/dist/installer/targets/opencode.d.ts.map +1 -0
- package/lib/dist/installer/targets/opencode.js +307 -0
- package/lib/dist/installer/targets/opencode.js.map +1 -0
- package/lib/dist/installer/targets/registry.d.ts +35 -0
- package/lib/dist/installer/targets/registry.d.ts.map +1 -0
- package/lib/dist/installer/targets/registry.js +91 -0
- package/lib/dist/installer/targets/registry.js.map +1 -0
- package/lib/dist/installer/targets/shared.d.ts +101 -0
- package/lib/dist/installer/targets/shared.d.ts.map +1 -0
- package/lib/dist/installer/targets/shared.js +264 -0
- package/lib/dist/installer/targets/shared.js.map +1 -0
- package/lib/dist/installer/targets/toml.d.ts +52 -0
- package/lib/dist/installer/targets/toml.d.ts.map +1 -0
- package/lib/dist/installer/targets/toml.js +147 -0
- package/lib/dist/installer/targets/toml.js.map +1 -0
- package/lib/dist/installer/targets/types.d.ts +108 -0
- package/lib/dist/installer/targets/types.d.ts.map +1 -0
- package/lib/dist/installer/targets/types.js +16 -0
- package/lib/dist/installer/targets/types.js.map +1 -0
- package/lib/dist/mcp/daemon-manager.d.ts +42 -0
- package/lib/dist/mcp/daemon-manager.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-manager.js +129 -0
- package/lib/dist/mcp/daemon-manager.js.map +1 -0
- package/lib/dist/mcp/daemon-paths.d.ts +73 -0
- package/lib/dist/mcp/daemon-paths.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-paths.js +165 -0
- package/lib/dist/mcp/daemon-paths.js.map +1 -0
- package/lib/dist/mcp/daemon-registry.d.ts +47 -0
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-registry.js +233 -0
- package/lib/dist/mcp/daemon-registry.js.map +1 -0
- package/lib/dist/mcp/daemon.d.ts +258 -0
- package/lib/dist/mcp/daemon.d.ts.map +1 -0
- package/lib/dist/mcp/daemon.js +770 -0
- package/lib/dist/mcp/daemon.js.map +1 -0
- package/lib/dist/mcp/dynamic-boundaries.d.ts +41 -0
- package/lib/dist/mcp/dynamic-boundaries.d.ts.map +1 -0
- package/lib/dist/mcp/dynamic-boundaries.js +359 -0
- package/lib/dist/mcp/dynamic-boundaries.js.map +1 -0
- package/lib/dist/mcp/engine.d.ts +122 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -0
- package/lib/dist/mcp/engine.js +350 -0
- package/lib/dist/mcp/engine.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +113 -0
- package/lib/dist/mcp/index.d.ts.map +1 -0
- package/lib/dist/mcp/index.js +481 -0
- package/lib/dist/mcp/index.js.map +1 -0
- package/lib/dist/mcp/liveness-watchdog.d.ts +18 -0
- package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -0
- package/lib/dist/mcp/liveness-watchdog.js +207 -0
- package/lib/dist/mcp/liveness-watchdog.js.map +1 -0
- package/lib/dist/mcp/ppid-watchdog.d.ts +62 -0
- package/lib/dist/mcp/ppid-watchdog.d.ts.map +1 -0
- package/lib/dist/mcp/ppid-watchdog.js +64 -0
- package/lib/dist/mcp/ppid-watchdog.js.map +1 -0
- package/lib/dist/mcp/proxy.d.ts +87 -0
- package/lib/dist/mcp/proxy.d.ts.map +1 -0
- package/lib/dist/mcp/proxy.js +641 -0
- package/lib/dist/mcp/proxy.js.map +1 -0
- package/lib/dist/mcp/query-pool.d.ts +94 -0
- package/lib/dist/mcp/query-pool.d.ts.map +1 -0
- package/lib/dist/mcp/query-pool.js +297 -0
- package/lib/dist/mcp/query-pool.js.map +1 -0
- package/lib/dist/mcp/query-worker.d.ts +24 -0
- package/lib/dist/mcp/query-worker.d.ts.map +1 -0
- package/lib/dist/mcp/query-worker.js +87 -0
- package/lib/dist/mcp/query-worker.js.map +1 -0
- package/lib/dist/mcp/server-instructions.d.ts +34 -0
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -0
- package/lib/dist/mcp/server-instructions.js +126 -0
- package/lib/dist/mcp/server-instructions.js.map +1 -0
- package/lib/dist/mcp/session.d.ts +79 -0
- package/lib/dist/mcp/session.d.ts.map +1 -0
- package/lib/dist/mcp/session.js +330 -0
- package/lib/dist/mcp/session.js.map +1 -0
- package/lib/dist/mcp/stdin-teardown.d.ts +27 -0
- package/lib/dist/mcp/stdin-teardown.d.ts.map +1 -0
- package/lib/dist/mcp/stdin-teardown.js +49 -0
- package/lib/dist/mcp/stdin-teardown.js.map +1 -0
- package/lib/dist/mcp/tools.d.ts +591 -0
- package/lib/dist/mcp/tools.d.ts.map +1 -0
- package/lib/dist/mcp/tools.js +4211 -0
- package/lib/dist/mcp/tools.js.map +1 -0
- package/lib/dist/mcp/transport.d.ts +188 -0
- package/lib/dist/mcp/transport.d.ts.map +1 -0
- package/lib/dist/mcp/transport.js +359 -0
- package/lib/dist/mcp/transport.js.map +1 -0
- package/lib/dist/mcp/version.d.ts +19 -0
- package/lib/dist/mcp/version.d.ts.map +1 -0
- package/lib/dist/mcp/version.js +71 -0
- package/lib/dist/mcp/version.js.map +1 -0
- package/lib/dist/project-config.d.ts +56 -0
- package/lib/dist/project-config.d.ts.map +1 -0
- package/lib/dist/project-config.js +297 -0
- package/lib/dist/project-config.js.map +1 -0
- package/lib/dist/reasoning/config.d.ts +45 -0
- package/lib/dist/reasoning/config.d.ts.map +1 -0
- package/lib/dist/reasoning/config.js +171 -0
- package/lib/dist/reasoning/config.js.map +1 -0
- package/lib/dist/reasoning/credentials.d.ts +5 -0
- package/lib/dist/reasoning/credentials.d.ts.map +1 -0
- package/lib/dist/reasoning/credentials.js +83 -0
- package/lib/dist/reasoning/credentials.js.map +1 -0
- package/lib/dist/reasoning/login.d.ts +21 -0
- package/lib/dist/reasoning/login.d.ts.map +1 -0
- package/lib/dist/reasoning/login.js +85 -0
- package/lib/dist/reasoning/login.js.map +1 -0
- package/lib/dist/reasoning/reasoner.d.ts +43 -0
- package/lib/dist/reasoning/reasoner.d.ts.map +1 -0
- package/lib/dist/reasoning/reasoner.js +308 -0
- package/lib/dist/reasoning/reasoner.js.map +1 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.d.ts +5 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.js +1038 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts +15 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.js +2926 -0
- package/lib/dist/resolution/callback-synthesizer.js.map +1 -0
- package/lib/dist/resolution/frameworks/astro.d.ts +9 -0
- package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/astro.js +169 -0
- package/lib/dist/resolution/frameworks/astro.js.map +1 -0
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts +18 -0
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/cargo-workspace.js +225 -0
- package/lib/dist/resolution/frameworks/cargo-workspace.js.map +1 -0
- package/lib/dist/resolution/frameworks/csharp.d.ts +8 -0
- package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/csharp.js +241 -0
- package/lib/dist/resolution/frameworks/csharp.js.map +1 -0
- package/lib/dist/resolution/frameworks/drupal.d.ts +51 -0
- package/lib/dist/resolution/frameworks/drupal.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/drupal.js +367 -0
- package/lib/dist/resolution/frameworks/drupal.js.map +1 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts +3 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/expo-modules.js +148 -0
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -0
- package/lib/dist/resolution/frameworks/express.d.ts +8 -0
- package/lib/dist/resolution/frameworks/express.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/express.js +308 -0
- package/lib/dist/resolution/frameworks/express.js.map +1 -0
- package/lib/dist/resolution/frameworks/fabric.d.ts +3 -0
- package/lib/dist/resolution/frameworks/fabric.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/fabric.js +354 -0
- package/lib/dist/resolution/frameworks/fabric.js.map +1 -0
- package/lib/dist/resolution/frameworks/go.d.ts +8 -0
- package/lib/dist/resolution/frameworks/go.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/go.js +161 -0
- package/lib/dist/resolution/frameworks/go.js.map +1 -0
- package/lib/dist/resolution/frameworks/goframe.d.ts +41 -0
- package/lib/dist/resolution/frameworks/goframe.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/goframe.js +112 -0
- package/lib/dist/resolution/frameworks/goframe.js.map +1 -0
- package/lib/dist/resolution/frameworks/index.d.ts +50 -0
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/index.js +169 -0
- package/lib/dist/resolution/frameworks/index.js.map +1 -0
- package/lib/dist/resolution/frameworks/java.d.ts +8 -0
- package/lib/dist/resolution/frameworks/java.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/java.js +509 -0
- package/lib/dist/resolution/frameworks/java.js.map +1 -0
- package/lib/dist/resolution/frameworks/laravel.d.ts +13 -0
- package/lib/dist/resolution/frameworks/laravel.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/laravel.js +257 -0
- package/lib/dist/resolution/frameworks/laravel.js.map +1 -0
- package/lib/dist/resolution/frameworks/nestjs.d.ts +26 -0
- package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/nestjs.js +698 -0
- package/lib/dist/resolution/frameworks/nestjs.js.map +1 -0
- package/lib/dist/resolution/frameworks/play.d.ts +19 -0
- package/lib/dist/resolution/frameworks/play.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/play.js +111 -0
- package/lib/dist/resolution/frameworks/play.js.map +1 -0
- package/lib/dist/resolution/frameworks/python.d.ts +10 -0
- package/lib/dist/resolution/frameworks/python.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/python.js +400 -0
- package/lib/dist/resolution/frameworks/python.js.map +1 -0
- package/lib/dist/resolution/frameworks/react-native.d.ts +3 -0
- package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/react-native.js +410 -0
- package/lib/dist/resolution/frameworks/react-native.js.map +1 -0
- package/lib/dist/resolution/frameworks/react.d.ts +8 -0
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/react.js +334 -0
- package/lib/dist/resolution/frameworks/react.js.map +1 -0
- package/lib/dist/resolution/frameworks/ruby.d.ts +8 -0
- package/lib/dist/resolution/frameworks/ruby.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/ruby.js +302 -0
- package/lib/dist/resolution/frameworks/ruby.js.map +1 -0
- package/lib/dist/resolution/frameworks/rust.d.ts +8 -0
- package/lib/dist/resolution/frameworks/rust.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/rust.js +304 -0
- package/lib/dist/resolution/frameworks/rust.js.map +1 -0
- package/lib/dist/resolution/frameworks/svelte.d.ts +9 -0
- package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/svelte.js +253 -0
- package/lib/dist/resolution/frameworks/svelte.js.map +1 -0
- package/lib/dist/resolution/frameworks/swift-objc.d.ts +37 -0
- package/lib/dist/resolution/frameworks/swift-objc.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/swift-objc.js +252 -0
- package/lib/dist/resolution/frameworks/swift-objc.js.map +1 -0
- package/lib/dist/resolution/frameworks/swift.d.ts +10 -0
- package/lib/dist/resolution/frameworks/swift.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/swift.js +400 -0
- package/lib/dist/resolution/frameworks/swift.js.map +1 -0
- package/lib/dist/resolution/frameworks/vue.d.ts +9 -0
- package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/vue.js +303 -0
- package/lib/dist/resolution/frameworks/vue.js.map +1 -0
- package/lib/dist/resolution/go-module.d.ts +26 -0
- package/lib/dist/resolution/go-module.d.ts.map +1 -0
- package/lib/dist/resolution/go-module.js +78 -0
- package/lib/dist/resolution/go-module.js.map +1 -0
- package/lib/dist/resolution/goframe-synthesizer.d.ts +28 -0
- package/lib/dist/resolution/goframe-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/goframe-synthesizer.js +158 -0
- package/lib/dist/resolution/goframe-synthesizer.js.map +1 -0
- package/lib/dist/resolution/import-resolver.d.ts +78 -0
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -0
- package/lib/dist/resolution/import-resolver.js +1849 -0
- package/lib/dist/resolution/import-resolver.js.map +1 -0
- package/lib/dist/resolution/index.d.ts +196 -0
- package/lib/dist/resolution/index.d.ts.map +1 -0
- package/lib/dist/resolution/index.js +1328 -0
- package/lib/dist/resolution/index.js.map +1 -0
- package/lib/dist/resolution/lru-cache.d.ts +24 -0
- package/lib/dist/resolution/lru-cache.d.ts.map +1 -0
- package/lib/dist/resolution/lru-cache.js +62 -0
- package/lib/dist/resolution/lru-cache.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +93 -0
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -0
- package/lib/dist/resolution/name-matcher.js +1256 -0
- package/lib/dist/resolution/name-matcher.js.map +1 -0
- package/lib/dist/resolution/path-aliases.d.ts +68 -0
- package/lib/dist/resolution/path-aliases.d.ts.map +1 -0
- package/lib/dist/resolution/path-aliases.js +238 -0
- package/lib/dist/resolution/path-aliases.js.map +1 -0
- package/lib/dist/resolution/strip-comments.d.ts +27 -0
- package/lib/dist/resolution/strip-comments.d.ts.map +1 -0
- package/lib/dist/resolution/strip-comments.js +443 -0
- package/lib/dist/resolution/strip-comments.js.map +1 -0
- package/lib/dist/resolution/swift-objc-bridge.d.ts +134 -0
- package/lib/dist/resolution/swift-objc-bridge.d.ts.map +1 -0
- package/lib/dist/resolution/swift-objc-bridge.js +256 -0
- package/lib/dist/resolution/swift-objc-bridge.js.map +1 -0
- package/lib/dist/resolution/types.d.ts +233 -0
- package/lib/dist/resolution/types.d.ts.map +1 -0
- package/lib/dist/resolution/types.js +8 -0
- package/lib/dist/resolution/types.js.map +1 -0
- package/lib/dist/resolution/workspace-packages.d.ts +48 -0
- package/lib/dist/resolution/workspace-packages.d.ts.map +1 -0
- package/lib/dist/resolution/workspace-packages.js +208 -0
- package/lib/dist/resolution/workspace-packages.js.map +1 -0
- package/lib/dist/search/query-parser.d.ts +57 -0
- package/lib/dist/search/query-parser.d.ts.map +1 -0
- package/lib/dist/search/query-parser.js +177 -0
- package/lib/dist/search/query-parser.js.map +1 -0
- package/lib/dist/search/query-utils.d.ts +87 -0
- package/lib/dist/search/query-utils.d.ts.map +1 -0
- package/lib/dist/search/query-utils.js +449 -0
- package/lib/dist/search/query-utils.js.map +1 -0
- package/lib/dist/sync/git-hooks.d.ts +45 -0
- package/lib/dist/sync/git-hooks.d.ts.map +1 -0
- package/lib/dist/sync/git-hooks.js +225 -0
- package/lib/dist/sync/git-hooks.js.map +1 -0
- package/lib/dist/sync/index.d.ts +19 -0
- package/lib/dist/sync/index.d.ts.map +1 -0
- package/lib/dist/sync/index.js +35 -0
- package/lib/dist/sync/index.js.map +1 -0
- package/lib/dist/sync/watch-policy.d.ts +48 -0
- package/lib/dist/sync/watch-policy.d.ts.map +1 -0
- package/lib/dist/sync/watch-policy.js +124 -0
- package/lib/dist/sync/watch-policy.js.map +1 -0
- package/lib/dist/sync/watcher.d.ts +358 -0
- package/lib/dist/sync/watcher.d.ts.map +1 -0
- package/lib/dist/sync/watcher.js +829 -0
- package/lib/dist/sync/watcher.js.map +1 -0
- package/lib/dist/sync/worktree.d.ts +54 -0
- package/lib/dist/sync/worktree.d.ts.map +1 -0
- package/lib/dist/sync/worktree.js +145 -0
- package/lib/dist/sync/worktree.js.map +1 -0
- package/lib/dist/telemetry/index.d.ts +143 -0
- package/lib/dist/telemetry/index.d.ts.map +1 -0
- package/lib/dist/telemetry/index.js +541 -0
- package/lib/dist/telemetry/index.js.map +1 -0
- package/lib/dist/types.d.ts +409 -0
- package/lib/dist/types.d.ts.map +1 -0
- package/lib/dist/types.js +101 -0
- package/lib/dist/types.js.map +1 -0
- package/lib/dist/ui/glyphs.d.ts +42 -0
- package/lib/dist/ui/glyphs.d.ts.map +1 -0
- package/lib/dist/ui/glyphs.js +78 -0
- package/lib/dist/ui/glyphs.js.map +1 -0
- package/lib/dist/ui/shimmer-progress.d.ts +11 -0
- package/lib/dist/ui/shimmer-progress.d.ts.map +1 -0
- package/lib/dist/ui/shimmer-progress.js +90 -0
- package/lib/dist/ui/shimmer-progress.js.map +1 -0
- package/lib/dist/ui/shimmer-worker.d.ts +2 -0
- package/lib/dist/ui/shimmer-worker.d.ts.map +1 -0
- package/lib/dist/ui/shimmer-worker.js +118 -0
- package/lib/dist/ui/shimmer-worker.js.map +1 -0
- package/lib/dist/ui/types.d.ts +17 -0
- package/lib/dist/ui/types.d.ts.map +1 -0
- package/lib/dist/ui/types.js +3 -0
- package/lib/dist/ui/types.js.map +1 -0
- package/lib/dist/upgrade/index.d.ts +132 -0
- package/lib/dist/upgrade/index.d.ts.map +1 -0
- package/lib/dist/upgrade/index.js +576 -0
- package/lib/dist/upgrade/index.js.map +1 -0
- package/lib/dist/utils.d.ts +224 -0
- package/lib/dist/utils.d.ts.map +1 -0
- package/lib/dist/utils.js +583 -0
- package/lib/dist/utils.js.map +1 -0
- package/lib/node_modules/.modules.yaml +45 -0
- package/lib/node_modules/.pnpm/lock.yaml +126 -0
- package/lib/node_modules/.pnpm-workspace-state-v1.json +25 -0
- package/lib/node_modules/@clack/core/CHANGELOG.md +397 -0
- package/lib/node_modules/@clack/core/LICENSE +9 -0
- package/lib/node_modules/@clack/core/README.md +22 -0
- package/lib/node_modules/@clack/core/dist/index.d.mts +469 -0
- package/lib/node_modules/@clack/core/dist/index.mjs +981 -0
- package/lib/node_modules/@clack/core/package.json +64 -0
- package/lib/node_modules/@clack/prompts/CHANGELOG.md +672 -0
- package/lib/node_modules/@clack/prompts/LICENSE +9 -0
- package/lib/node_modules/@clack/prompts/README.md +396 -0
- package/lib/node_modules/@clack/prompts/dist/index.d.mts +928 -0
- package/lib/node_modules/@clack/prompts/dist/index.mjs +1398 -0
- package/lib/node_modules/@clack/prompts/package.json +68 -0
- package/lib/node_modules/commander/LICENSE +22 -0
- package/lib/node_modules/commander/Readme.md +1176 -0
- package/lib/node_modules/commander/esm.mjs +16 -0
- package/lib/node_modules/commander/index.js +24 -0
- package/lib/node_modules/commander/lib/argument.js +150 -0
- package/lib/node_modules/commander/lib/command.js +2777 -0
- package/lib/node_modules/commander/lib/error.js +39 -0
- package/lib/node_modules/commander/lib/help.js +747 -0
- package/lib/node_modules/commander/lib/option.js +380 -0
- package/lib/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/lib/node_modules/commander/package-support.json +19 -0
- package/lib/node_modules/commander/package.json +82 -0
- package/lib/node_modules/commander/typings/esm.d.mts +3 -0
- package/lib/node_modules/commander/typings/index.d.ts +1113 -0
- package/lib/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
- package/lib/node_modules/fast-string-truncated-width/dist/index.js +111 -0
- package/lib/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
- package/lib/node_modules/fast-string-truncated-width/dist/types.js +2 -0
- package/lib/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
- package/lib/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
- package/lib/node_modules/fast-string-truncated-width/license +21 -0
- package/lib/node_modules/fast-string-truncated-width/package.json +35 -0
- package/lib/node_modules/fast-string-truncated-width/readme.md +59 -0
- package/lib/node_modules/fast-string-width/dist/index.d.ts +4 -0
- package/lib/node_modules/fast-string-width/dist/index.js +14 -0
- package/lib/node_modules/fast-string-width/license +21 -0
- package/lib/node_modules/fast-string-width/package.json +34 -0
- package/lib/node_modules/fast-string-width/readme.md +42 -0
- package/lib/node_modules/fast-wrap-ansi/LICENSE +23 -0
- package/lib/node_modules/fast-wrap-ansi/README.md +26 -0
- package/lib/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
- package/lib/node_modules/fast-wrap-ansi/lib/main.js +218 -0
- package/lib/node_modules/fast-wrap-ansi/package.json +51 -0
- package/lib/node_modules/ignore/LICENSE-MIT +21 -0
- package/lib/node_modules/ignore/README.md +452 -0
- package/lib/node_modules/ignore/index.d.ts +81 -0
- package/lib/node_modules/ignore/index.js +784 -0
- package/lib/node_modules/ignore/legacy.js +681 -0
- package/lib/node_modules/ignore/package.json +87 -0
- package/lib/node_modules/jsonc-parser/CHANGELOG.md +76 -0
- package/lib/node_modules/jsonc-parser/LICENSE.md +21 -0
- package/lib/node_modules/jsonc-parser/README.md +364 -0
- package/lib/node_modules/jsonc-parser/SECURITY.md +41 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/edit.js +185 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/format.js +261 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/parser.js +659 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/scanner.js +443 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +29 -0
- package/lib/node_modules/jsonc-parser/lib/esm/main.d.ts +351 -0
- package/lib/node_modules/jsonc-parser/lib/esm/main.js +178 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/edit.js +201 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/format.js +275 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/parser.js +682 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/scanner.js +456 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
- package/lib/node_modules/jsonc-parser/lib/umd/main.d.ts +351 -0
- package/lib/node_modules/jsonc-parser/lib/umd/main.js +194 -0
- package/lib/node_modules/jsonc-parser/package.json +37 -0
- package/lib/node_modules/picomatch/LICENSE +21 -0
- package/lib/node_modules/picomatch/README.md +749 -0
- package/lib/node_modules/picomatch/index.js +17 -0
- package/lib/node_modules/picomatch/lib/constants.js +184 -0
- package/lib/node_modules/picomatch/lib/parse.js +1386 -0
- package/lib/node_modules/picomatch/lib/picomatch.js +349 -0
- package/lib/node_modules/picomatch/lib/scan.js +391 -0
- package/lib/node_modules/picomatch/lib/utils.js +72 -0
- package/lib/node_modules/picomatch/package.json +82 -0
- package/lib/node_modules/picomatch/posix.js +3 -0
- package/lib/node_modules/sisteransi/license +21 -0
- package/lib/node_modules/sisteransi/package.json +34 -0
- package/lib/node_modules/sisteransi/readme.md +113 -0
- package/lib/node_modules/sisteransi/src/index.js +58 -0
- package/lib/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/lib/node_modules/tree-sitter-wasms/LICENSE +24 -0
- package/lib/node_modules/tree-sitter-wasms/README.md +23 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-bash.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-c.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-c_sharp.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-cpp.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-css.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-dart.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-elisp.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-elixir.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-elm.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-embedded_template.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-go.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-html.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-java.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-javascript.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-json.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-kotlin.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-lua.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-objc.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-ocaml.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-php.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-python.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-ql.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-rescript.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-ruby.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-rust.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-scala.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-solidity.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-swift.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-systemrdl.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-tlaplus.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-toml.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-tsx.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-typescript.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-vue.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-yaml.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-zig.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/package.json +64 -0
- package/lib/node_modules/web-tree-sitter/LICENSE +21 -0
- package/lib/node_modules/web-tree-sitter/README.md +269 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.cjs +4558 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.cjs.map +7 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.js +4516 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.js.map +7 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.wasm +0 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.wasm.map +31 -0
- package/lib/node_modules/web-tree-sitter/lib/alloc.c +48 -0
- package/lib/node_modules/web-tree-sitter/lib/alloc.h +41 -0
- package/lib/node_modules/web-tree-sitter/lib/array.h +291 -0
- package/lib/node_modules/web-tree-sitter/lib/atomic.h +68 -0
- package/lib/node_modules/web-tree-sitter/lib/clock.h +146 -0
- package/lib/node_modules/web-tree-sitter/lib/error_costs.h +11 -0
- package/lib/node_modules/web-tree-sitter/lib/get_changed_ranges.c +523 -0
- package/lib/node_modules/web-tree-sitter/lib/get_changed_ranges.h +36 -0
- package/lib/node_modules/web-tree-sitter/lib/host.h +21 -0
- package/lib/node_modules/web-tree-sitter/lib/language.c +293 -0
- package/lib/node_modules/web-tree-sitter/lib/language.h +293 -0
- package/lib/node_modules/web-tree-sitter/lib/length.h +52 -0
- package/lib/node_modules/web-tree-sitter/lib/lexer.c +483 -0
- package/lib/node_modules/web-tree-sitter/lib/lexer.h +54 -0
- package/lib/node_modules/web-tree-sitter/lib/lib.c +12 -0
- package/lib/node_modules/web-tree-sitter/lib/node.c +875 -0
- package/lib/node_modules/web-tree-sitter/lib/parser.c +2297 -0
- package/lib/node_modules/web-tree-sitter/lib/parser.h +286 -0
- package/lib/node_modules/web-tree-sitter/lib/point.h +48 -0
- package/lib/node_modules/web-tree-sitter/lib/query.c +4347 -0
- package/lib/node_modules/web-tree-sitter/lib/reduce_action.h +34 -0
- package/lib/node_modules/web-tree-sitter/lib/reusable_node.h +95 -0
- package/lib/node_modules/web-tree-sitter/lib/stack.c +912 -0
- package/lib/node_modules/web-tree-sitter/lib/stack.h +133 -0
- package/lib/node_modules/web-tree-sitter/lib/subtree.c +1034 -0
- package/lib/node_modules/web-tree-sitter/lib/subtree.h +399 -0
- package/lib/node_modules/web-tree-sitter/lib/tree-sitter.c +987 -0
- package/lib/node_modules/web-tree-sitter/lib/tree-sitter.cjs +2988 -0
- package/lib/node_modules/web-tree-sitter/lib/tree-sitter.wasm +0 -0
- package/lib/node_modules/web-tree-sitter/lib/tree-sitter.wasm.map +1 -0
- package/lib/node_modules/web-tree-sitter/lib/tree.c +170 -0
- package/lib/node_modules/web-tree-sitter/lib/tree.h +31 -0
- package/lib/node_modules/web-tree-sitter/lib/tree_cursor.c +716 -0
- package/lib/node_modules/web-tree-sitter/lib/tree_cursor.h +48 -0
- package/lib/node_modules/web-tree-sitter/lib/ts_assert.h +11 -0
- package/lib/node_modules/web-tree-sitter/lib/unicode.h +75 -0
- package/lib/node_modules/web-tree-sitter/lib/wasm_store.c +1937 -0
- package/lib/node_modules/web-tree-sitter/lib/wasm_store.h +31 -0
- package/lib/node_modules/web-tree-sitter/package.json +98 -0
- package/lib/node_modules/web-tree-sitter/src/bindings.ts +26 -0
- package/lib/node_modules/web-tree-sitter/src/constants.ts +133 -0
- package/lib/node_modules/web-tree-sitter/src/index.ts +31 -0
- package/lib/node_modules/web-tree-sitter/src/language.ts +291 -0
- package/lib/node_modules/web-tree-sitter/src/lookahead_iterator.ts +75 -0
- package/lib/node_modules/web-tree-sitter/src/marshal.ts +176 -0
- package/lib/node_modules/web-tree-sitter/src/node.ts +646 -0
- package/lib/node_modules/web-tree-sitter/src/parser.ts +325 -0
- package/lib/node_modules/web-tree-sitter/src/query.ts +973 -0
- package/lib/node_modules/web-tree-sitter/src/tree.ts +145 -0
- package/lib/node_modules/web-tree-sitter/src/tree_cursor.ts +318 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.cjs +4031 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.cjs.map +7 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.js +3980 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.js.map +7 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.wasm +0 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.wasm.map +30 -0
- package/lib/node_modules/web-tree-sitter/web-tree-sitter.d.ts +1030 -0
- package/lib/node_modules/web-tree-sitter/web-tree-sitter.d.ts.map +56 -0
- package/lib/package.json +57 -0
- package/node +0 -0
- package/package.json +17 -0
|
@@ -0,0 +1,928 @@
|
|
|
1
|
+
import { State, AutocompletePrompt, Validate, DateFormat } from '@clack/core';
|
|
2
|
+
export { ClackSettings, DateFormat, isCancel, settings, updateSettings } from '@clack/core';
|
|
3
|
+
import { Readable, Writable } from 'node:stream';
|
|
4
|
+
|
|
5
|
+
declare const unicode: boolean;
|
|
6
|
+
declare const isCI: () => boolean;
|
|
7
|
+
declare const isTTY: (output: Writable) => boolean;
|
|
8
|
+
declare const unicodeOr: (c: string, fallback: string) => string;
|
|
9
|
+
declare const S_STEP_ACTIVE: string;
|
|
10
|
+
declare const S_STEP_CANCEL: string;
|
|
11
|
+
declare const S_STEP_ERROR: string;
|
|
12
|
+
declare const S_STEP_SUBMIT: string;
|
|
13
|
+
declare const S_BAR_START: string;
|
|
14
|
+
declare const S_BAR: string;
|
|
15
|
+
declare const S_BAR_END: string;
|
|
16
|
+
declare const S_BAR_START_RIGHT: string;
|
|
17
|
+
declare const S_BAR_END_RIGHT: string;
|
|
18
|
+
declare const S_RADIO_ACTIVE: string;
|
|
19
|
+
declare const S_RADIO_INACTIVE: string;
|
|
20
|
+
declare const S_CHECKBOX_ACTIVE: string;
|
|
21
|
+
declare const S_CHECKBOX_SELECTED: string;
|
|
22
|
+
declare const S_CHECKBOX_INACTIVE: string;
|
|
23
|
+
declare const S_PASSWORD_MASK: string;
|
|
24
|
+
declare const S_BAR_H: string;
|
|
25
|
+
declare const S_CORNER_TOP_RIGHT: string;
|
|
26
|
+
declare const S_CONNECT_LEFT: string;
|
|
27
|
+
declare const S_CORNER_BOTTOM_RIGHT: string;
|
|
28
|
+
declare const S_CORNER_BOTTOM_LEFT: string;
|
|
29
|
+
declare const S_CORNER_TOP_LEFT: string;
|
|
30
|
+
declare const S_INFO: string;
|
|
31
|
+
declare const S_SUCCESS: string;
|
|
32
|
+
declare const S_WARN: string;
|
|
33
|
+
declare const S_ERROR: string;
|
|
34
|
+
declare const symbol: (state: State) => string;
|
|
35
|
+
declare const symbolBar: (state: State) => string;
|
|
36
|
+
interface CommonOptions {
|
|
37
|
+
input?: Readable;
|
|
38
|
+
output?: Writable;
|
|
39
|
+
signal?: AbortSignal;
|
|
40
|
+
withGuide?: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare function formatInstructionFooter(instructions: string[], hasGuide: boolean): string[];
|
|
43
|
+
|
|
44
|
+
declare const SELECT_INSTRUCTIONS: string[];
|
|
45
|
+
type Primitive = Readonly<string | boolean | number>;
|
|
46
|
+
type Option<Value> = Value extends Primitive ? {
|
|
47
|
+
/**
|
|
48
|
+
* Internal data for this option.
|
|
49
|
+
*/
|
|
50
|
+
value: Value;
|
|
51
|
+
/**
|
|
52
|
+
* The optional, user-facing text for this option.
|
|
53
|
+
*
|
|
54
|
+
* By default, the `value` is converted to a string.
|
|
55
|
+
*/
|
|
56
|
+
label?: string;
|
|
57
|
+
/**
|
|
58
|
+
* An optional hint to display to the user when
|
|
59
|
+
* this option might be selected.
|
|
60
|
+
*
|
|
61
|
+
* By default, no `hint` is displayed.
|
|
62
|
+
*/
|
|
63
|
+
hint?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Whether this option is disabled.
|
|
66
|
+
* Disabled options are visible but cannot be selected.
|
|
67
|
+
*
|
|
68
|
+
* By default, options are not disabled.
|
|
69
|
+
*/
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
} : {
|
|
72
|
+
/**
|
|
73
|
+
* Internal data for this option.
|
|
74
|
+
*/
|
|
75
|
+
value: Value;
|
|
76
|
+
/**
|
|
77
|
+
* Required. The user-facing text for this option.
|
|
78
|
+
*/
|
|
79
|
+
label: string;
|
|
80
|
+
/**
|
|
81
|
+
* An optional hint to display to the user when
|
|
82
|
+
* this option might be selected.
|
|
83
|
+
*
|
|
84
|
+
* By default, no `hint` is displayed.
|
|
85
|
+
*/
|
|
86
|
+
hint?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Whether this option is disabled.
|
|
89
|
+
* Disabled options are visible but cannot be selected.
|
|
90
|
+
*
|
|
91
|
+
* By default, options are not disabled.
|
|
92
|
+
*/
|
|
93
|
+
disabled?: boolean;
|
|
94
|
+
};
|
|
95
|
+
interface SelectOptions<Value> extends CommonOptions {
|
|
96
|
+
message: string;
|
|
97
|
+
options: Option<Value>[];
|
|
98
|
+
initialValue?: Value;
|
|
99
|
+
maxItems?: number;
|
|
100
|
+
}
|
|
101
|
+
declare const select: <Value>(opts: SelectOptions<Value>) => Promise<Value | symbol>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Options for the {@link autocomplete} prompt.
|
|
105
|
+
*/
|
|
106
|
+
interface AutocompleteSharedOptions<Value> extends CommonOptions {
|
|
107
|
+
/**
|
|
108
|
+
* The message or question shown to the user above the input.
|
|
109
|
+
*/
|
|
110
|
+
message: string;
|
|
111
|
+
/**
|
|
112
|
+
* The options to present, or a function that returns the options to present
|
|
113
|
+
* allowing for custom search/filtering.
|
|
114
|
+
*
|
|
115
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#dynamic-options-getter
|
|
116
|
+
*/
|
|
117
|
+
options: Option<Value>[] | ((this: AutocompletePrompt<Option<Value>>) => Option<Value>[]);
|
|
118
|
+
/**
|
|
119
|
+
* The maximum number of items/options to display in the autocomplete list at once.
|
|
120
|
+
*/
|
|
121
|
+
maxItems?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Placeholder text displayed when the search field is empty. When set, pressing
|
|
124
|
+
* tab copies the placeholder into the input.
|
|
125
|
+
*/
|
|
126
|
+
placeholder?: string;
|
|
127
|
+
/**
|
|
128
|
+
* A function or a [Standard Schema](https://github.com/standard-schema/standard-schema)
|
|
129
|
+
* that validates user input. If a custom function is given, you should return a `string` or `Error`
|
|
130
|
+
* to show as a validation error, or `undefined` to accept the result.
|
|
131
|
+
*/
|
|
132
|
+
validate?: Validate<Value | Value[]>;
|
|
133
|
+
/**
|
|
134
|
+
* Custom filter function to match options against the search input.
|
|
135
|
+
*/
|
|
136
|
+
filter?: (search: string, option: Option<Value>) => boolean;
|
|
137
|
+
}
|
|
138
|
+
interface AutocompleteOptions<Value> extends AutocompleteSharedOptions<Value> {
|
|
139
|
+
/**
|
|
140
|
+
* The initially selected option from the list.
|
|
141
|
+
*/
|
|
142
|
+
initialValue?: Value;
|
|
143
|
+
/**
|
|
144
|
+
* The starting value shown in the users input box.
|
|
145
|
+
*/
|
|
146
|
+
initialUserInput?: string;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* The `autocomplete` prompt combines a text input with a searchable list of options.
|
|
150
|
+
* It's perfect for when you have a large list of options and want to help users
|
|
151
|
+
* find what they're looking for quickly.
|
|
152
|
+
*
|
|
153
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#autocomplete
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```ts
|
|
157
|
+
* import { autocomplete } from '@clack/prompts';
|
|
158
|
+
*
|
|
159
|
+
* const framework = await autocomplete({
|
|
160
|
+
* message: 'Search for a framework',
|
|
161
|
+
* options: [
|
|
162
|
+
* { value: 'next', label: 'Next.js', hint: 'React framework' },
|
|
163
|
+
* { value: 'astro', label: 'Astro', hint: 'Content-focused' },
|
|
164
|
+
* { value: 'svelte', label: 'SvelteKit', hint: 'Compile-time framework' },
|
|
165
|
+
* { value: 'remix', label: 'Remix', hint: 'Full stack framework' },
|
|
166
|
+
* { value: 'nuxt', label: 'Nuxt', hint: 'Vue framework' },
|
|
167
|
+
* ],
|
|
168
|
+
* placeholder: 'Type to search...',
|
|
169
|
+
* maxItems: 5,
|
|
170
|
+
* });
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
declare const autocomplete: <Value>(opts: AutocompleteOptions<Value>) => Promise<Value | symbol>;
|
|
174
|
+
/**
|
|
175
|
+
* Options for the {@link autocompleteMultiselect} prompt
|
|
176
|
+
*/
|
|
177
|
+
interface AutocompleteMultiSelectOptions<Value> extends AutocompleteSharedOptions<Value> {
|
|
178
|
+
/**
|
|
179
|
+
* The initially selected option(s) from the list.
|
|
180
|
+
*/
|
|
181
|
+
initialValues?: Value[];
|
|
182
|
+
/**
|
|
183
|
+
* When `true` at least one option must be selected.
|
|
184
|
+
* @default false
|
|
185
|
+
*/
|
|
186
|
+
required?: boolean;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* The `autocompleteMultiselect` prompt combines the search functionality of autocomplete
|
|
190
|
+
* with the ability to select multiple options.
|
|
191
|
+
*
|
|
192
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#autocomplete-multiselect
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* ```ts
|
|
196
|
+
* import { autocompleteMultiselect } from '@clack/prompts';
|
|
197
|
+
*
|
|
198
|
+
* const frameworks = await autocompleteMultiselect({
|
|
199
|
+
* message: 'Select frameworks',
|
|
200
|
+
* options: [
|
|
201
|
+
* { value: 'next', label: 'Next.js', hint: 'React framework' },
|
|
202
|
+
* { value: 'astro', label: 'Astro', hint: 'Content-focused' },
|
|
203
|
+
* { value: 'svelte', label: 'SvelteKit', hint: 'Compile-time framework' },
|
|
204
|
+
* { value: 'remix', label: 'Remix', hint: 'Full stack framework' },
|
|
205
|
+
* { value: 'nuxt', label: 'Nuxt', hint: 'Vue framework' },
|
|
206
|
+
* ],
|
|
207
|
+
* placeholder: 'Type to search...',
|
|
208
|
+
* maxItems: 5,
|
|
209
|
+
* });
|
|
210
|
+
* ```
|
|
211
|
+
*/
|
|
212
|
+
declare const autocompleteMultiselect: <Value>(opts: AutocompleteMultiSelectOptions<Value>) => Promise<Value[] | symbol>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Alignment for content or titles within the box.
|
|
216
|
+
*/
|
|
217
|
+
type BoxAlignment = 'left' | 'center' | 'right';
|
|
218
|
+
/**
|
|
219
|
+
* Options for the {@link box} prompt.
|
|
220
|
+
*/
|
|
221
|
+
interface BoxOptions extends CommonOptions {
|
|
222
|
+
/**
|
|
223
|
+
* Alignment of the content (`'left'`, `'center'`, or `'right'`).
|
|
224
|
+
* @default 'left'
|
|
225
|
+
*/
|
|
226
|
+
contentAlign?: BoxAlignment;
|
|
227
|
+
/**
|
|
228
|
+
* Alignment of the title (`'left'`, `'center'`, or `'right'`).
|
|
229
|
+
* @default 'left'
|
|
230
|
+
*/
|
|
231
|
+
titleAlign?: BoxAlignment;
|
|
232
|
+
/**
|
|
233
|
+
* The width of the box, either `'auto'` to fit the content or a number for a fixed width.
|
|
234
|
+
* @default 'auto'
|
|
235
|
+
*/
|
|
236
|
+
width?: number | 'auto';
|
|
237
|
+
/**
|
|
238
|
+
* Padding around the title.
|
|
239
|
+
* @default 1
|
|
240
|
+
*/
|
|
241
|
+
titlePadding?: number;
|
|
242
|
+
/**
|
|
243
|
+
* Padding around the content.
|
|
244
|
+
* @default 2
|
|
245
|
+
*/
|
|
246
|
+
contentPadding?: number;
|
|
247
|
+
/**
|
|
248
|
+
* Use rounded corners when `true`, square corners when `false`.
|
|
249
|
+
* @default true
|
|
250
|
+
*/
|
|
251
|
+
rounded?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Custom function to style the border characters.
|
|
254
|
+
*/
|
|
255
|
+
formatBorder?: (text: string) => string;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Renders a customizable box around text content. It's similar to {@link note} but offers
|
|
259
|
+
* more styling options.
|
|
260
|
+
*
|
|
261
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#box
|
|
262
|
+
*
|
|
263
|
+
* @param message - The content to display inside the box.
|
|
264
|
+
* @param title - The title to display in the top border of the box.
|
|
265
|
+
* @param opts - Optional configuration for the box styling and behavior.
|
|
266
|
+
*
|
|
267
|
+
* @example
|
|
268
|
+
* ```ts
|
|
269
|
+
* import { box } from '@clack/prompts';
|
|
270
|
+
*
|
|
271
|
+
* box('This is the content of the box', 'Box Title', {
|
|
272
|
+
* contentAlign: 'center',
|
|
273
|
+
* titleAlign: 'center',
|
|
274
|
+
* width: 'auto',
|
|
275
|
+
* rounded: true,
|
|
276
|
+
* });
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
declare const box: (message?: string, title?: string, opts?: BoxOptions) => void;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Options for the {@link confirm} prompt.
|
|
283
|
+
*/
|
|
284
|
+
interface ConfirmOptions extends CommonOptions {
|
|
285
|
+
/**
|
|
286
|
+
* The message or question shown to the user above the input.
|
|
287
|
+
*/
|
|
288
|
+
message: string;
|
|
289
|
+
/**
|
|
290
|
+
* The label to use for the active (true) option.
|
|
291
|
+
* @default 'Yes'
|
|
292
|
+
*/
|
|
293
|
+
active?: string;
|
|
294
|
+
/**
|
|
295
|
+
* The label to use for the inactive (false) option.
|
|
296
|
+
* @default 'No'
|
|
297
|
+
*/
|
|
298
|
+
inactive?: string;
|
|
299
|
+
/**
|
|
300
|
+
* The initial selected value (true or false).
|
|
301
|
+
* @default true
|
|
302
|
+
*/
|
|
303
|
+
initialValue?: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Whether to render the options vertically instead of horizontally.
|
|
306
|
+
* @default false
|
|
307
|
+
*/
|
|
308
|
+
vertical?: boolean;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* The `confirm` prompt accepts a yes or no choice, returning a boolean value
|
|
312
|
+
* corresponding to the user's selection.
|
|
313
|
+
*
|
|
314
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#confirmation
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* ```ts
|
|
318
|
+
* import { confirm } from '@clack/prompts';
|
|
319
|
+
*
|
|
320
|
+
* const shouldProceed = await confirm({
|
|
321
|
+
* message: 'Do you want to continue?',
|
|
322
|
+
* });
|
|
323
|
+
* ```
|
|
324
|
+
*/
|
|
325
|
+
declare const confirm: (opts: ConfirmOptions) => Promise<boolean | symbol>;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Options for the {@link date} prompt.
|
|
329
|
+
*/
|
|
330
|
+
interface DateOptions extends CommonOptions {
|
|
331
|
+
/**
|
|
332
|
+
* The message or question shown to the user above the input.
|
|
333
|
+
*/
|
|
334
|
+
message: string;
|
|
335
|
+
/**
|
|
336
|
+
* The date format for the input segments.
|
|
337
|
+
* @deafult based on locale
|
|
338
|
+
*/
|
|
339
|
+
format?: DateFormat;
|
|
340
|
+
/**
|
|
341
|
+
* The BCP 47 language tag to use for formatting
|
|
342
|
+
* @see https://developer.mozilla.org/en-US/docs/Glossary/BCP_47_language_tag
|
|
343
|
+
* @example "en-GB"
|
|
344
|
+
*/
|
|
345
|
+
locale?: string;
|
|
346
|
+
/**
|
|
347
|
+
* The default value returned when the user doesn't select a date.
|
|
348
|
+
*/
|
|
349
|
+
defaultValue?: Date;
|
|
350
|
+
/**
|
|
351
|
+
* The starting date shown when the prompt first renders.
|
|
352
|
+
* Users can edit this value before submitting.
|
|
353
|
+
*/
|
|
354
|
+
initialValue?: Date;
|
|
355
|
+
/**
|
|
356
|
+
* The minimum allowed date for validation.
|
|
357
|
+
*/
|
|
358
|
+
minDate?: Date;
|
|
359
|
+
/**
|
|
360
|
+
* The maximum allowed date for validation.
|
|
361
|
+
*/
|
|
362
|
+
maxDate?: Date;
|
|
363
|
+
/**
|
|
364
|
+
* A function or a [Standard Schema](https://github.com/standard-schema/standard-schema)
|
|
365
|
+
* that validates user input. If a custom function is given, you should return a `string` or `Error`
|
|
366
|
+
* to show as a validation error, or `undefined` to accept the result.
|
|
367
|
+
*/
|
|
368
|
+
validate?: Validate<Date>;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* The `date` prompt provides an interactive date picker, allowing users
|
|
372
|
+
* to navigate between year, month, and day segments and
|
|
373
|
+
* increment/decrement values using keyboard controls.
|
|
374
|
+
*
|
|
375
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#date-input
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* ```ts
|
|
379
|
+
* import { date } from '@clack/prompts';
|
|
380
|
+
*
|
|
381
|
+
* const birthday = await date({
|
|
382
|
+
* message: 'Pick your birthday',
|
|
383
|
+
* minDate: new Date('1900-01-01'),
|
|
384
|
+
* initialValue: new Date(),
|
|
385
|
+
* maxDate: new Date(),
|
|
386
|
+
* });
|
|
387
|
+
* ```
|
|
388
|
+
*/
|
|
389
|
+
declare const date: (opts: DateOptions) => Promise<Date | symbol>;
|
|
390
|
+
|
|
391
|
+
type Prettify<T> = {
|
|
392
|
+
[P in keyof T]: T[P];
|
|
393
|
+
} & {};
|
|
394
|
+
/**
|
|
395
|
+
* The return type of a {@link PromptGroup}.
|
|
396
|
+
* Resolves all prompt results, excluding the cancel symbol.
|
|
397
|
+
*/
|
|
398
|
+
type PromptGroupAwaitedReturn<T> = {
|
|
399
|
+
[P in keyof T]: Exclude<Awaited<T[P]>, symbol>;
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* Options for the {@link group} utility.
|
|
403
|
+
*/
|
|
404
|
+
interface PromptGroupOptions<T> {
|
|
405
|
+
/**
|
|
406
|
+
* Called when any one of the prompts is canceled.
|
|
407
|
+
*/
|
|
408
|
+
onCancel?: (opts: {
|
|
409
|
+
results: Prettify<Partial<PromptGroupAwaitedReturn<T>>>;
|
|
410
|
+
}) => void;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* A group of prompts to be displayed sequentially, with each prompt receiving
|
|
414
|
+
* the results of all previous prompts in the group.
|
|
415
|
+
*/
|
|
416
|
+
type PromptGroup<T> = {
|
|
417
|
+
[P in keyof T]: (opts: {
|
|
418
|
+
results: Prettify<Partial<PromptGroupAwaitedReturn<Omit<T, P>>>>;
|
|
419
|
+
}) => undefined | Promise<T[P] | undefined>;
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* The `group` utility provides a consistent way to combine a series of prompts,
|
|
423
|
+
* combining each answer into one object. Each prompt receives the results of
|
|
424
|
+
* all previously completed prompts, and are displayed sequentially.
|
|
425
|
+
*
|
|
426
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#group
|
|
427
|
+
*
|
|
428
|
+
* @example
|
|
429
|
+
* ```ts
|
|
430
|
+
* import { group, text, password } from '@clack/prompts';
|
|
431
|
+
*
|
|
432
|
+
* const account = await group({
|
|
433
|
+
* email: () => text({
|
|
434
|
+
* message: 'What is your email address?',
|
|
435
|
+
* }),
|
|
436
|
+
* username: ({ results }) => text({
|
|
437
|
+
* message: 'What is your username?',
|
|
438
|
+
* placeholder: results.email?.replace(/@.+$/, '').toLowerCase() ?? '',
|
|
439
|
+
* }),
|
|
440
|
+
* password: () => password({
|
|
441
|
+
* message: 'Define your password',
|
|
442
|
+
* }),
|
|
443
|
+
* });
|
|
444
|
+
* ```
|
|
445
|
+
*/
|
|
446
|
+
declare const group: <T>(prompts: PromptGroup<T>, opts?: PromptGroupOptions<T>) => Promise<Prettify<PromptGroupAwaitedReturn<T>>>;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Options for the {@link groupMultiselect} prompt.
|
|
450
|
+
*/
|
|
451
|
+
interface GroupMultiSelectOptions<Value> extends CommonOptions {
|
|
452
|
+
/**
|
|
453
|
+
* The message or question shown to the user above the input.
|
|
454
|
+
*/
|
|
455
|
+
message: string;
|
|
456
|
+
/**
|
|
457
|
+
* Grouped options to display. Each key is a group label, and each value is an array of options.
|
|
458
|
+
*/
|
|
459
|
+
options: Record<string, Option<Value>[]>;
|
|
460
|
+
/**
|
|
461
|
+
* The initially selected option(s).
|
|
462
|
+
*/
|
|
463
|
+
initialValues?: Value[];
|
|
464
|
+
/**
|
|
465
|
+
* The maximum number of items/options to display at once.
|
|
466
|
+
*/
|
|
467
|
+
maxItems?: number;
|
|
468
|
+
/**
|
|
469
|
+
* When `true` at least one option must be selected.
|
|
470
|
+
* @default true
|
|
471
|
+
*/
|
|
472
|
+
required?: boolean;
|
|
473
|
+
/**
|
|
474
|
+
* The value the cursor should be positioned at initially.
|
|
475
|
+
*/
|
|
476
|
+
cursorAt?: Value;
|
|
477
|
+
/**
|
|
478
|
+
* Whether entire groups can be selected at once.
|
|
479
|
+
* @default true
|
|
480
|
+
*/
|
|
481
|
+
selectableGroups?: boolean;
|
|
482
|
+
/**
|
|
483
|
+
* Number of blank lines between groups.
|
|
484
|
+
* @default 0
|
|
485
|
+
*/
|
|
486
|
+
groupSpacing?: number;
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* The `groupMultiselect` prompt extends the {@link multiselect} prompt to allow
|
|
490
|
+
* arranging distinct Multi-Selects, whilst keeping all of them interactive.
|
|
491
|
+
*
|
|
492
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#group-multiselect
|
|
493
|
+
*
|
|
494
|
+
* @example
|
|
495
|
+
* ```ts
|
|
496
|
+
* import { groupMultiselect } from '@clack/prompts';
|
|
497
|
+
*
|
|
498
|
+
* const result = await groupMultiselect({
|
|
499
|
+
* message: 'Define your project',
|
|
500
|
+
* options: {
|
|
501
|
+
* 'Testing': [
|
|
502
|
+
* { value: 'Jest', hint: 'JavaScript testing framework' },
|
|
503
|
+
* { value: 'Playwright', hint: 'End-to-end testing' },
|
|
504
|
+
* ],
|
|
505
|
+
* 'Language': [
|
|
506
|
+
* { value: 'js', label: 'JavaScript', hint: 'Dynamic typing' },
|
|
507
|
+
* { value: 'ts', label: 'TypeScript', hint: 'Static typing' },
|
|
508
|
+
* ],
|
|
509
|
+
* },
|
|
510
|
+
* });
|
|
511
|
+
* ```
|
|
512
|
+
*
|
|
513
|
+
* @param opts The options for the group multiselect prompt
|
|
514
|
+
*/
|
|
515
|
+
declare const groupMultiselect: <Value>(opts: GroupMultiSelectOptions<Value>) => Promise<Value[] | symbol>;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Options for the {@link limitOptions} function.
|
|
519
|
+
*/
|
|
520
|
+
interface LimitOptionsParams<TOption> extends CommonOptions {
|
|
521
|
+
/**
|
|
522
|
+
* The list of options to display.
|
|
523
|
+
*/
|
|
524
|
+
options: TOption[];
|
|
525
|
+
/**
|
|
526
|
+
* The index of the currently active/selected option.
|
|
527
|
+
*/
|
|
528
|
+
cursor: number;
|
|
529
|
+
/**
|
|
530
|
+
* A function that styles the given option string.
|
|
531
|
+
*
|
|
532
|
+
* @param option - The option string to style.
|
|
533
|
+
* @param active - Whether the option is currently selected.
|
|
534
|
+
*/
|
|
535
|
+
style: (option: TOption, active: boolean) => string;
|
|
536
|
+
/**
|
|
537
|
+
* Maximum number of options to display at once.
|
|
538
|
+
* @default Infinity
|
|
539
|
+
*/
|
|
540
|
+
maxItems?: number;
|
|
541
|
+
/**
|
|
542
|
+
* Number of columns to reserve for padding.
|
|
543
|
+
* @default 0
|
|
544
|
+
*/
|
|
545
|
+
columnPadding?: number;
|
|
546
|
+
/**
|
|
547
|
+
* Number of rows to reserve for padding.
|
|
548
|
+
* @default 4
|
|
549
|
+
*/
|
|
550
|
+
rowPadding?: number;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Trims an option list to what fits the terminal, while keeping the active
|
|
554
|
+
* option (cursor) visible using a Clack style sliding window.
|
|
555
|
+
*
|
|
556
|
+
* @returns The lines to render.
|
|
557
|
+
*
|
|
558
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#limitoptions
|
|
559
|
+
*
|
|
560
|
+
* @example
|
|
561
|
+
* ```ts
|
|
562
|
+
* import { limitOptions } from '@clack/prompts';
|
|
563
|
+
* import { styleText } from 'node:util';
|
|
564
|
+
*
|
|
565
|
+
* const options = ['apple', 'banana', 'cherry', 'date'];
|
|
566
|
+
* const lines = limitOptions({
|
|
567
|
+
* options,
|
|
568
|
+
* cursor: 2,
|
|
569
|
+
* maxItems: 8,
|
|
570
|
+
* style: (opt, active) =>
|
|
571
|
+
* active ? styleText('cyan', opt) : styleText('dim', opt),
|
|
572
|
+
* });
|
|
573
|
+
* ```
|
|
574
|
+
*/
|
|
575
|
+
declare const limitOptions: <TOption>({ cursor, options, style, output, maxItems, columnPadding, rowPadding, }: LimitOptionsParams<TOption>) => string[];
|
|
576
|
+
|
|
577
|
+
interface LogMessageOptions extends CommonOptions {
|
|
578
|
+
symbol?: string;
|
|
579
|
+
spacing?: number;
|
|
580
|
+
secondarySymbol?: string;
|
|
581
|
+
}
|
|
582
|
+
declare const log: {
|
|
583
|
+
message: (message?: string | string[], { symbol, secondarySymbol, output, spacing, withGuide, }?: LogMessageOptions) => void;
|
|
584
|
+
info: (message: string, opts?: LogMessageOptions) => void;
|
|
585
|
+
success: (message: string, opts?: LogMessageOptions) => void;
|
|
586
|
+
step: (message: string, opts?: LogMessageOptions) => void;
|
|
587
|
+
warn: (message: string, opts?: LogMessageOptions) => void;
|
|
588
|
+
/** alias for `log.warn()`. */
|
|
589
|
+
warning: (message: string, opts?: LogMessageOptions) => void;
|
|
590
|
+
error: (message: string, opts?: LogMessageOptions) => void;
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* The `cancel` function defines an interruption of an interaction
|
|
595
|
+
* and therefore its end.
|
|
596
|
+
*
|
|
597
|
+
* @param title Optional closing message to be displayed.
|
|
598
|
+
* @param opts Additional configuration options.
|
|
599
|
+
*
|
|
600
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#cancel
|
|
601
|
+
*
|
|
602
|
+
* @example
|
|
603
|
+
* ```ts
|
|
604
|
+
* import { cancel } from '@clack/prompts';
|
|
605
|
+
* import process from 'node:process';
|
|
606
|
+
*
|
|
607
|
+
* cancel('Installation canceled');
|
|
608
|
+
* process.exit(1);
|
|
609
|
+
* ```
|
|
610
|
+
*/
|
|
611
|
+
declare const cancel: (message?: string, opts?: CommonOptions) => void;
|
|
612
|
+
/**
|
|
613
|
+
* The `intro` function defines the beginning of an interaction.
|
|
614
|
+
*
|
|
615
|
+
* @param title Optional title to be displayed.
|
|
616
|
+
* @param opts Additional configuration options.
|
|
617
|
+
*
|
|
618
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#intro
|
|
619
|
+
*
|
|
620
|
+
* @example
|
|
621
|
+
* ```ts
|
|
622
|
+
* import { intro } from '@clack/prompts';
|
|
623
|
+
*
|
|
624
|
+
* intro('Welcome to clack');
|
|
625
|
+
* ```
|
|
626
|
+
*/
|
|
627
|
+
declare const intro: (title?: string, opts?: CommonOptions) => void;
|
|
628
|
+
/**
|
|
629
|
+
* The `outro` function defines the end of an interaction.
|
|
630
|
+
*
|
|
631
|
+
* @param title Optional closing message to be displayed.
|
|
632
|
+
* @param opts Additional configuration options.
|
|
633
|
+
*
|
|
634
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#outro
|
|
635
|
+
*
|
|
636
|
+
* @example
|
|
637
|
+
* ```ts
|
|
638
|
+
* import { outro } from '@clack/prompts';
|
|
639
|
+
*
|
|
640
|
+
* outro('All operations are finished');
|
|
641
|
+
* ```
|
|
642
|
+
*/
|
|
643
|
+
declare const outro: (message?: string, opts?: CommonOptions) => void;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Options for the {@link text} prompt
|
|
647
|
+
*/
|
|
648
|
+
interface TextOptions extends CommonOptions {
|
|
649
|
+
/**
|
|
650
|
+
* The prompt message or question shown to the user above the input.
|
|
651
|
+
*/
|
|
652
|
+
message: string;
|
|
653
|
+
/**
|
|
654
|
+
* A visual hint shown when the field has no content.
|
|
655
|
+
*/
|
|
656
|
+
placeholder?: string;
|
|
657
|
+
/**
|
|
658
|
+
* A fallback value returned when the user provides nothing (empty input).
|
|
659
|
+
*/
|
|
660
|
+
defaultValue?: string;
|
|
661
|
+
/**
|
|
662
|
+
* The starting value shown when the prompt first renders.
|
|
663
|
+
* Users can edit this value before submitting.
|
|
664
|
+
*/
|
|
665
|
+
initialValue?: string;
|
|
666
|
+
/**
|
|
667
|
+
* A function or a [Standard Schema](https://github.com/standard-schema/standard-schema)
|
|
668
|
+
* that validates user input. If a custom function is given, you should return a `string` or `Error`
|
|
669
|
+
* to show as a validation error, or `undefined` to accept the result.
|
|
670
|
+
*/
|
|
671
|
+
validate?: Validate<string>;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* The text prompt accepts a single line of text.
|
|
675
|
+
*
|
|
676
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#text-input
|
|
677
|
+
*
|
|
678
|
+
* @example
|
|
679
|
+
* ```ts
|
|
680
|
+
* import { text } from '@clack/prompts';
|
|
681
|
+
*
|
|
682
|
+
* const name = await text({
|
|
683
|
+
* message: 'What is your name?',
|
|
684
|
+
* placeholder: 'John Doe',
|
|
685
|
+
* validate: (value) => {
|
|
686
|
+
* if (!value || value.length < 2) return 'Name must be at least 2 characters';
|
|
687
|
+
* return undefined;
|
|
688
|
+
* },
|
|
689
|
+
* });
|
|
690
|
+
* ```
|
|
691
|
+
*/
|
|
692
|
+
declare const text: (opts: TextOptions) => Promise<string | symbol>;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Options for the {@link multiline} prompt
|
|
696
|
+
*/
|
|
697
|
+
interface MultiLineOptions extends TextOptions {
|
|
698
|
+
/**
|
|
699
|
+
* When enabled it shows a `[ submit ]` button that can be focused with tab.
|
|
700
|
+
* By default, pressing `Enter` twice submits the input
|
|
701
|
+
*
|
|
702
|
+
* @default false
|
|
703
|
+
*/
|
|
704
|
+
showSubmit?: boolean;
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* The multi-line prompt accepts multiple lines of text input.
|
|
708
|
+
* By default, pressing `Enter` twice submits the input.
|
|
709
|
+
*
|
|
710
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#multi-line-text
|
|
711
|
+
*
|
|
712
|
+
* @example
|
|
713
|
+
* ```ts
|
|
714
|
+
* import { multiline } from '@clack/prompts';
|
|
715
|
+
*
|
|
716
|
+
* const bio = await multiline({
|
|
717
|
+
* message: 'Enter your bio',
|
|
718
|
+
* placeholder: 'Tell us about yourself...',
|
|
719
|
+
* showSubmit: true,
|
|
720
|
+
* });
|
|
721
|
+
* ```
|
|
722
|
+
*/
|
|
723
|
+
declare const multiline: (opts: MultiLineOptions) => Promise<string | symbol>;
|
|
724
|
+
|
|
725
|
+
declare const MULTISELECT_INSTRUCTIONS: string[];
|
|
726
|
+
interface MultiSelectOptions<Value> extends CommonOptions {
|
|
727
|
+
message: string;
|
|
728
|
+
options: Option<Value>[];
|
|
729
|
+
initialValues?: Value[];
|
|
730
|
+
maxItems?: number;
|
|
731
|
+
required?: boolean;
|
|
732
|
+
cursorAt?: Value;
|
|
733
|
+
}
|
|
734
|
+
declare const multiselect: <Value>(opts: MultiSelectOptions<Value>) => Promise<Value[] | symbol>;
|
|
735
|
+
|
|
736
|
+
type FormatFn = (line: string) => string;
|
|
737
|
+
interface NoteOptions extends CommonOptions {
|
|
738
|
+
format?: FormatFn;
|
|
739
|
+
}
|
|
740
|
+
declare const note: (message?: string, title?: string, opts?: NoteOptions) => void;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Options for the {@link password} prompt
|
|
744
|
+
*/
|
|
745
|
+
interface PasswordOptions extends CommonOptions {
|
|
746
|
+
/**
|
|
747
|
+
* The prompt message or question shown to the user above the input.
|
|
748
|
+
*/
|
|
749
|
+
message: string;
|
|
750
|
+
/**
|
|
751
|
+
* Character to use for masking input.
|
|
752
|
+
* @default ▪/•
|
|
753
|
+
*/
|
|
754
|
+
mask?: string;
|
|
755
|
+
/**
|
|
756
|
+
* A function or a [Standard Schema](https://github.com/standard-schema/standard-schema)
|
|
757
|
+
* that validates user input. If a custom function is given, you should return a `string` or `Error`
|
|
758
|
+
* to show as a validation error, or `undefined` to accept the result.
|
|
759
|
+
*/
|
|
760
|
+
validate?: Validate<string>;
|
|
761
|
+
/**
|
|
762
|
+
* When enabled it causes the input to be cleared if/when validation fails.
|
|
763
|
+
* @default false
|
|
764
|
+
*/
|
|
765
|
+
clearOnError?: boolean;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* The password prompt behaves like the {@link text} prompt, but the input is masked.
|
|
769
|
+
*
|
|
770
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#password-input
|
|
771
|
+
*
|
|
772
|
+
* @example
|
|
773
|
+
* ```ts
|
|
774
|
+
* import { password } from '@clack/prompts';
|
|
775
|
+
*
|
|
776
|
+
* const result = await password({
|
|
777
|
+
* message: 'Enter your password',
|
|
778
|
+
* });
|
|
779
|
+
* ```
|
|
780
|
+
*/
|
|
781
|
+
declare const password: (opts: PasswordOptions) => Promise<string | symbol>;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Options for the {@link path} prompt.
|
|
785
|
+
*/
|
|
786
|
+
interface PathOptions extends CommonOptions {
|
|
787
|
+
/**
|
|
788
|
+
* The message or question shown to the user above the input.
|
|
789
|
+
*/
|
|
790
|
+
message: string;
|
|
791
|
+
/**
|
|
792
|
+
* The starting directory for path suggestions (defaults to current working directory).
|
|
793
|
+
*/
|
|
794
|
+
root?: string;
|
|
795
|
+
/**
|
|
796
|
+
* When `true` only **directories** appear in suggestions while you navigate.
|
|
797
|
+
*/
|
|
798
|
+
directory?: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* The starting path shown when the prompt first renders, which users can edit
|
|
801
|
+
* before submitting. If not provided it will fall back to the given `root`,
|
|
802
|
+
* or the current working directory.
|
|
803
|
+
*
|
|
804
|
+
* In `directory` mode, if the initial value points to a directory that exists,
|
|
805
|
+
* pressing enter will submit the input instead of jumping to the first child.
|
|
806
|
+
*/
|
|
807
|
+
initialValue?: string;
|
|
808
|
+
/**
|
|
809
|
+
* A function or a [Standard Schema](https://github.com/standard-schema/standard-schema)
|
|
810
|
+
* that validates user input. If a custom function is given, you should return a `string` or `Error`
|
|
811
|
+
* to show as a validation error, or `undefined` to accept the result.
|
|
812
|
+
*/
|
|
813
|
+
validate?: Validate<string>;
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* The `path` prompt extends `autocomplete` to provide file and directory suggestions.
|
|
817
|
+
*
|
|
818
|
+
* @see https://bomb.sh/docs/clack/packages/prompts/#path-selection
|
|
819
|
+
*
|
|
820
|
+
* @example
|
|
821
|
+
* ```ts
|
|
822
|
+
* import { path } from '@clack/prompts';
|
|
823
|
+
*
|
|
824
|
+
* const result = await path({
|
|
825
|
+
* message: 'Select a file:',
|
|
826
|
+
* root: process.cwd(),
|
|
827
|
+
* directory: false,
|
|
828
|
+
* });
|
|
829
|
+
* ```
|
|
830
|
+
*/
|
|
831
|
+
declare const path: (opts: PathOptions) => Promise<string | symbol>;
|
|
832
|
+
|
|
833
|
+
interface SpinnerOptions extends CommonOptions {
|
|
834
|
+
indicator?: 'dots' | 'timer';
|
|
835
|
+
onCancel?: () => void;
|
|
836
|
+
cancelMessage?: string;
|
|
837
|
+
errorMessage?: string;
|
|
838
|
+
frames?: string[];
|
|
839
|
+
delay?: number;
|
|
840
|
+
styleFrame?: (frame: string) => string;
|
|
841
|
+
}
|
|
842
|
+
interface SpinnerResult {
|
|
843
|
+
start(msg?: string): void;
|
|
844
|
+
stop(msg?: string): void;
|
|
845
|
+
cancel(msg?: string): void;
|
|
846
|
+
error(msg?: string): void;
|
|
847
|
+
message(msg?: string): void;
|
|
848
|
+
clear(): void;
|
|
849
|
+
readonly isCancelled: boolean;
|
|
850
|
+
}
|
|
851
|
+
declare const spinner: ({ indicator, onCancel, output, cancelMessage, errorMessage, frames, delay, signal, ...opts }?: SpinnerOptions) => SpinnerResult;
|
|
852
|
+
|
|
853
|
+
interface ProgressOptions extends SpinnerOptions {
|
|
854
|
+
style?: 'light' | 'heavy' | 'block';
|
|
855
|
+
max?: number;
|
|
856
|
+
size?: number;
|
|
857
|
+
}
|
|
858
|
+
interface ProgressResult extends SpinnerResult {
|
|
859
|
+
advance(step?: number, msg?: string): void;
|
|
860
|
+
}
|
|
861
|
+
declare function progress({ style, max: userMax, size: userSize, ...spinnerOptions }?: ProgressOptions): ProgressResult;
|
|
862
|
+
|
|
863
|
+
interface SelectKeyOptions<Value extends string> extends CommonOptions {
|
|
864
|
+
message: string;
|
|
865
|
+
options: Option<Value>[];
|
|
866
|
+
initialValue?: Value;
|
|
867
|
+
caseSensitive?: boolean;
|
|
868
|
+
}
|
|
869
|
+
declare const selectKey: <Value extends string>(opts: SelectKeyOptions<Value>) => Promise<Value | symbol>;
|
|
870
|
+
|
|
871
|
+
declare const stream: {
|
|
872
|
+
message: (iterable: Iterable<string> | AsyncIterable<string>, { symbol }?: LogMessageOptions) => Promise<void>;
|
|
873
|
+
info: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
874
|
+
success: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
875
|
+
step: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
876
|
+
warn: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
877
|
+
/** alias for `log.warn()`. */
|
|
878
|
+
warning: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
879
|
+
error: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
type Task = {
|
|
883
|
+
/**
|
|
884
|
+
* Task title
|
|
885
|
+
*/
|
|
886
|
+
title: string;
|
|
887
|
+
/**
|
|
888
|
+
* Task function
|
|
889
|
+
*/
|
|
890
|
+
task: (message: (string: string) => void) => string | Promise<string> | void | Promise<void>;
|
|
891
|
+
/**
|
|
892
|
+
* If enabled === false the task will be skipped
|
|
893
|
+
*/
|
|
894
|
+
enabled?: boolean;
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* Define a group of tasks to be executed
|
|
898
|
+
*/
|
|
899
|
+
declare const tasks: (tasks: Task[], opts?: CommonOptions) => Promise<void>;
|
|
900
|
+
|
|
901
|
+
interface TaskLogOptions extends CommonOptions {
|
|
902
|
+
title: string;
|
|
903
|
+
limit?: number;
|
|
904
|
+
spacing?: number;
|
|
905
|
+
retainLog?: boolean;
|
|
906
|
+
}
|
|
907
|
+
interface TaskLogMessageOptions {
|
|
908
|
+
raw?: boolean;
|
|
909
|
+
}
|
|
910
|
+
interface TaskLogCompletionOptions {
|
|
911
|
+
showLog?: boolean;
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* Renders a log which clears on success and remains on failure
|
|
915
|
+
*/
|
|
916
|
+
declare const taskLog: (opts: TaskLogOptions) => {
|
|
917
|
+
message(msg: string, mopts?: TaskLogMessageOptions): void;
|
|
918
|
+
group(name: string): {
|
|
919
|
+
message(msg: string, mopts?: TaskLogMessageOptions): void;
|
|
920
|
+
error(message: string): void;
|
|
921
|
+
success(message: string): void;
|
|
922
|
+
};
|
|
923
|
+
error(message: string, opts?: TaskLogCompletionOptions): void;
|
|
924
|
+
success(message: string, opts?: TaskLogCompletionOptions): void;
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
export { MULTISELECT_INSTRUCTIONS, SELECT_INSTRUCTIONS, S_BAR, S_BAR_END, S_BAR_END_RIGHT, S_BAR_H, S_BAR_START, S_BAR_START_RIGHT, S_CHECKBOX_ACTIVE, S_CHECKBOX_INACTIVE, S_CHECKBOX_SELECTED, S_CONNECT_LEFT, S_CORNER_BOTTOM_LEFT, S_CORNER_BOTTOM_RIGHT, S_CORNER_TOP_LEFT, S_CORNER_TOP_RIGHT, S_ERROR, S_INFO, S_PASSWORD_MASK, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_ERROR, S_STEP_SUBMIT, S_SUCCESS, S_WARN, autocomplete, autocompleteMultiselect, box, cancel, confirm, date, formatInstructionFooter, group, groupMultiselect, intro, isCI, isTTY, limitOptions, log, multiline, multiselect, note, outro, password, path, progress, select, selectKey, spinner, stream, symbol, symbolBar, taskLog, tasks, text, unicode, unicodeOr };
|
|
928
|
+
export type { AutocompleteMultiSelectOptions, AutocompleteOptions, BoxAlignment, BoxOptions, CommonOptions, ConfirmOptions, DateOptions, GroupMultiSelectOptions, LimitOptionsParams, LogMessageOptions, MultiLineOptions, MultiSelectOptions, NoteOptions, Option, PasswordOptions, PathOptions, ProgressOptions, ProgressResult, PromptGroup, PromptGroupAwaitedReturn, PromptGroupOptions, SelectKeyOptions, SelectOptions, SpinnerOptions, SpinnerResult, Task, TaskLogCompletionOptions, TaskLogMessageOptions, TaskLogOptions, TextOptions };
|