@builder.io/dev-tools 1.18.11-dev.202511202258.80563b8f8 → 1.18.11-dev.202511202316.621aec6ae
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/cli/index.cjs +114 -86
- package/cli/index.cjs.map +3 -3
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +2 -2
- package/server/index.mjs +2 -2
- package/types/_tests_/utils.d.ts +48 -35
- package/types/cli/abort-signal-any.d.ts +3 -1
- package/types/cli/auth/auth-utils.d.ts +3 -1
- package/types/cli/auth/auth.d.ts +5 -1
- package/types/cli/backup.d.ts +112 -58
- package/types/cli/builder-add/interface.d.ts +21 -4
- package/types/cli/code-file-utils.d.ts +17 -9
- package/types/cli/code.d.ts +13 -3
- package/types/cli/credentials.d.ts +61 -45
- package/types/cli/download.d.ts +9 -4
- package/types/cli/env-substitution.d.ts +22 -0
- package/types/cli/env-substitution.test.d.ts +1 -0
- package/types/cli/figma-publish.d.ts +34 -17
- package/types/cli/figma-utils.d.ts +51 -21
- package/types/cli/figma.d.ts +9 -2
- package/types/cli/generate.d.ts +14 -11
- package/types/cli/incremental-tsc.d.ts +19 -7
- package/types/cli/launch/config.d.ts +13 -3
- package/types/cli/launch/dry-run-backup.d.ts +14 -7
- package/types/cli/launch/errors.d.ts +7 -2
- package/types/cli/launch/github.d.ts +8 -2
- package/types/cli/launch/grafana.d.ts +5 -1
- package/types/cli/launch/machine-health.d.ts +8 -3
- package/types/cli/launch/proxy.d.ts +6 -3
- package/types/cli/launch/server.d.ts +16 -10
- package/types/cli/launch.d.ts +102 -99
- package/types/cli/prettier.d.ts +9 -2
- package/types/cli/repo-connect/env-collector.d.ts +16 -11
- package/types/cli/repo-connect/file-collector.d.ts +22 -15
- package/types/cli/repo-connect/install-runner.d.ts +8 -5
- package/types/cli/repo-connect/package-detector.d.ts +12 -8
- package/types/cli/repo-connect/repo-connect.d.ts +4 -1
- package/types/cli/repo-indexing/repo-indexing.d.ts +37 -17
- package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
- package/types/cli/repo-metrics.d.ts +4 -1
- package/types/cli/report/figma-report.d.ts +63 -36
- package/types/cli/server-ws.d.ts +40 -32
- package/types/cli/spinner.d.ts +4 -4
- package/types/cli/sync-utils.d.ts +39 -16
- package/types/cli/track.d.ts +4 -1
- package/types/cli/utils/component-group-mdx-prompt.d.ts +2 -1
- package/types/cli/utils/dev-server-url-parser.d.ts +6 -3
- package/types/cli/utils/env-capture.d.ts +21 -15
- package/types/cli/utils/env-filter.d.ts +42 -0
- package/types/cli/utils/feature-flags.d.ts +3 -1
- package/types/cli/utils/file-overrides-manager.d.ts +39 -23
- package/types/cli/utils/git.d.ts +28 -16
- package/types/cli/utils/hosts-file-manager.d.ts +7 -4
- package/types/cli/utils/lock-file-example.d.ts +30 -0
- package/types/cli/utils/lock-file.d.ts +10 -7
- package/types/cli/utils/parseGitDiff.d.ts +4 -1
- package/types/cli/utils/process-tracker.d.ts +85 -51
- package/types/cli/utils/repo-indexing-agent-prompt.d.ts +2 -1
- package/types/cli/utils/sudo-helper.d.ts +21 -0
- package/types/cli/utils/terminal-buffer.d.ts +23 -23
- package/types/cli/utils/workspace-path-resolver.d.ts +23 -16
- package/types/client/client-api.d.ts +42 -10
- package/types/client/edit-button/document-listeners.d.ts +3 -1
- package/types/client/edit-button/index.d.ts +6 -6
- package/types/client/menu/index.d.ts +3 -3
- package/types/client/menu/pages/component-detail.d.ts +8 -2
- package/types/client/menu/pages/component-input.d.ts +5 -1
- package/types/client/menu/pages/component-list.d.ts +4 -1
- package/types/client/menu/toggle/menu-toggle.d.ts +4 -1
- package/types/client/setup-ui/overview.d.ts +2 -2
- package/types/client/tracking.d.ts +11 -11
- package/types/client/utils.d.ts +5 -3
- package/types/common/ast/app-dependencies.d.ts +8 -2
- package/types/common/ast/component-info.d.ts +26 -6
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/common/ast/component-registry.d.ts +23 -8
- package/types/common/ast/ensure-array-statement.d.ts +7 -3
- package/types/common/ast/ensure-comments.d.ts +5 -1
- package/types/common/ast/ensure-imports.d.ts +10 -5
- package/types/common/ast/exported-statements.d.ts +8 -4
- package/types/common/ast/imported-statements.d.ts +5 -1
- package/types/common/ast/normalize-statements.d.ts +12 -3
- package/types/common/ast/remove-unused-imports.d.ts +4 -1
- package/types/common/ast/transform.d.ts +13 -3
- package/types/common/ast/utils.d.ts +42 -19
- package/types/common/builder/builder-api.d.ts +32 -23
- package/types/common/builder/builder-sdks.d.ts +10 -8
- package/types/common/builder/content-generation.d.ts +10 -7
- package/types/common/builder/content-ids.d.ts +2 -1
- package/types/common/cache.d.ts +4 -1
- package/types/common/constants.d.ts +2 -1
- package/types/common/dotenv.d.ts +24 -5
- package/types/common/fs.d.ts +17 -4
- package/types/common/interactive-select-files.d.ts +16 -2
- package/types/common/mem-sys.d.ts +7 -5
- package/types/common/node-request.d.ts +4 -4
- package/types/common/path.d.ts +1 -3
- package/types/common/test-utils.d.ts +21 -7
- package/types/common/typescript.d.ts +26 -7
- package/types/common/utils.d.ts +1 -1
- package/types/core/adapters/angular/angular-api-key.d.ts +29 -6
- package/types/core/adapters/angular/angular-app-module-imports.d.ts +12 -2
- package/types/core/adapters/angular/angular-app-routes-update.d.ts +6 -1
- package/types/core/adapters/angular/angular-components.d.ts +40 -12
- package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +9 -3
- package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +16 -4
- package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +3 -1
- package/types/core/adapters/angular/angular-registry-parse.d.ts +22 -10
- package/types/core/adapters/angular/angular-registry.d.ts +15 -2
- package/types/core/adapters/angular/angular-test-utils.d.ts +8 -4
- package/types/core/adapters/angular/index.d.ts +20 -12
- package/types/core/adapters/angular/types.d.ts +5 -5
- package/types/core/adapters/next/index.d.ts +26 -18
- package/types/core/adapters/next/next-api-key.d.ts +4 -1
- package/types/core/adapters/next/next-component-info.d.ts +9 -2
- package/types/core/adapters/next/next-components.d.ts +4 -1
- package/types/core/adapters/next/next-ensure-builder-setup.d.ts +6 -2
- package/types/core/adapters/next/next-ensure-config-plugin.d.ts +5 -1
- package/types/core/adapters/next/next-registry-parse.d.ts +21 -8
- package/types/core/adapters/next/next-registry.d.ts +15 -2
- package/types/core/adapters/next/next-test-utils.d.ts +21 -11
- package/types/core/adapters/qwik-city/index.d.ts +14 -6
- package/types/core/adapters/qwik-city/qwik-api-key.d.ts +4 -1
- package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +4 -1
- package/types/core/adapters/qwik-city/qwik-components.d.ts +23 -8
- package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +6 -2
- package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +5 -1
- package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +22 -10
- package/types/core/adapters/qwik-city/qwik-registry.d.ts +15 -2
- package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +8 -4
- package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +3 -1
- package/types/core/adapters/react/index.d.ts +19 -11
- package/types/core/adapters/react/react-api-key.d.ts +4 -1
- package/types/core/adapters/react/react-builder-sdk-setup.d.ts +3 -1
- package/types/core/adapters/react/react-component-info.d.ts +9 -2
- package/types/core/adapters/react/react-components.d.ts +37 -11
- package/types/core/adapters/react/react-ensure-builder-setup.d.ts +6 -2
- package/types/core/adapters/react/react-registry-parse.d.ts +21 -8
- package/types/core/adapters/react/react-registry.d.ts +15 -2
- package/types/core/adapters/react/react-test-utils.d.ts +11 -5
- package/types/core/adapters/react/react-ts-program.d.ts +3 -1
- package/types/core/adapters/remix/index.d.ts +19 -11
- package/types/core/adapters/remix/remix-api-key.d.ts +4 -1
- package/types/core/adapters/remix/remix-components.d.ts +4 -1
- package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +9 -3
- package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +5 -1
- package/types/core/adapters/remix/remix-registry-parse.d.ts +22 -10
- package/types/core/adapters/remix/remix-registry.d.ts +15 -2
- package/types/core/adapters/remix/remix-test-utils.d.ts +11 -5
- package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +12 -2
- package/types/core/adapters/vue/index.d.ts +20 -12
- package/types/core/adapters/vue/vue-api-key.d.ts +4 -1
- package/types/core/adapters/vue/vue-components.d.ts +10 -2
- package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +7 -3
- package/types/core/adapters/vue/vue-registry-parse.d.ts +19 -9
- package/types/core/adapters/vue/vue-registry.d.ts +6 -3
- package/types/core/adapters/webpack/webpack-config-helpers.d.ts +8 -3
- package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +5 -1
- package/types/core/create-dev-tools.d.ts +4 -1
- package/types/core/detect-frameworks.d.ts +7 -2
- package/types/core/ensure-config-plugin.d.ts +6 -2
- package/types/core/find-dependencies.d.ts +6 -3
- package/types/core/import-export-registry.d.ts +9 -2
- package/types/core/index.d.ts +18 -3
- package/types/figma/index.d.ts +95 -64
- package/types/node/node-sys.d.ts +13 -6
- package/types/packages/dev-tools/_tests_/code.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/create-builder.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/dev-tools.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/figma-generate.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/figma-publish.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/fusionInit.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/help.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/launch.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/repo-indexing.test.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/sync-utils.test.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/utils.d.ts +57 -0
- package/types/packages/dev-tools/_tests_/vitest.config.d.ts +2 -0
- package/types/packages/dev-tools/_tests_/workspace.e2e.d.ts +1 -0
- package/types/packages/dev-tools/angular/index.d.ts +1 -0
- package/types/packages/dev-tools/cli/__tests__/isLikelyFixedString.spec.d.ts +1 -0
- package/types/packages/dev-tools/cli/__tests__/parseGitDiffToApplyActions.spec.d.ts +1 -0
- package/types/packages/dev-tools/cli/abort-signal-any.d.ts +3 -0
- package/types/packages/dev-tools/cli/auth/auth-utils.d.ts +4 -0
- package/types/packages/dev-tools/cli/auth/auth.d.ts +7 -0
- package/types/packages/dev-tools/cli/auth/status.d.ts +3 -0
- package/types/packages/dev-tools/cli/backup.d.ts +172 -0
- package/types/packages/dev-tools/cli/builder-add/interface.d.ts +22 -0
- package/types/packages/dev-tools/cli/builder-add/options.d.ts +2 -0
- package/types/packages/dev-tools/cli/code-file-utils.d.ts +20 -0
- package/types/packages/dev-tools/cli/code-file-utils.unit.d.ts +1 -0
- package/types/packages/dev-tools/cli/code-tools.d.ts +131 -0
- package/types/packages/dev-tools/cli/code.d.ts +17 -0
- package/types/packages/dev-tools/cli/codegen.d.ts +456 -0
- package/types/packages/dev-tools/cli/constants.d.ts +1 -0
- package/types/packages/dev-tools/cli/credentials.d.ts +69 -0
- package/types/packages/dev-tools/cli/download.d.ts +15 -0
- package/types/packages/dev-tools/cli/exit.d.ts +1 -0
- package/types/packages/dev-tools/cli/fetch.d.ts +1 -0
- package/types/packages/dev-tools/cli/figma-publish.d.ts +41 -0
- package/types/packages/dev-tools/cli/figma-publish.spec.d.ts +1 -0
- package/types/packages/dev-tools/cli/figma-utils.d.ts +61 -0
- package/types/packages/dev-tools/cli/figma.d.ts +11 -0
- package/types/packages/dev-tools/cli/generate.d.ts +19 -0
- package/types/packages/dev-tools/cli/help.d.ts +1 -0
- package/types/packages/dev-tools/cli/incremental-tsc.d.ts +42 -0
- package/types/packages/dev-tools/cli/index.d.ts +97 -0
- package/types/packages/dev-tools/cli/indexing.d.ts +11 -0
- package/types/packages/dev-tools/cli/launch/InitStateMachine.d.ts +142 -0
- package/types/packages/dev-tools/cli/launch/config.d.ts +15 -0
- package/types/packages/dev-tools/cli/launch/dev-server-orchestrator.d.ts +114 -0
- package/types/packages/dev-tools/cli/launch/dry-run-backup.d.ts +16 -0
- package/types/packages/dev-tools/cli/launch/errors.d.ts +8 -0
- package/types/packages/dev-tools/cli/launch/github.d.ts +9 -0
- package/types/packages/dev-tools/cli/launch/grafana.d.ts +8 -0
- package/types/packages/dev-tools/cli/launch/helpers.d.ts +42 -0
- package/types/packages/dev-tools/cli/launch/helpers.test.d.ts +1 -0
- package/types/packages/dev-tools/cli/launch/machine-health.d.ts +17 -0
- package/types/packages/dev-tools/cli/launch/proxy.d.ts +6 -0
- package/types/packages/dev-tools/cli/launch/server.d.ts +26 -0
- package/types/packages/dev-tools/cli/launch.d.ts +93 -0
- package/types/packages/dev-tools/cli/prettier.d.ts +10 -0
- package/types/packages/dev-tools/cli/prettier.integration.test.d.ts +1 -0
- package/types/packages/dev-tools/cli/repo-indexing/component-discovery.d.ts +21 -0
- package/types/packages/dev-tools/cli/repo-indexing/component-indexing.d.ts +34 -0
- package/types/packages/dev-tools/cli/repo-indexing/icons.d.ts +32 -0
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing-utils.d.ts +109 -0
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.d.ts +41 -0
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.mock.d.ts +5 -0
- package/types/packages/dev-tools/cli/repo-indexing/types.d.ts +12 -0
- package/types/packages/dev-tools/cli/repo-metrics.d.ts +9 -0
- package/types/packages/dev-tools/cli/report/figma-report.d.ts +81 -0
- package/types/packages/dev-tools/cli/server-ws.d.ts +60 -0
- package/types/packages/dev-tools/cli/spinner.d.ts +6 -0
- package/types/packages/dev-tools/cli/sync-utils.d.ts +45 -0
- package/types/packages/dev-tools/cli/track.d.ts +8 -0
- package/types/packages/dev-tools/cli/utils/component-group-mdx-prompt.d.ts +2 -0
- package/types/packages/dev-tools/cli/utils/dev-server-url-parser.d.ts +15 -0
- package/types/packages/dev-tools/cli/utils/dev-server-url-parser.test.d.ts +1 -0
- package/types/packages/dev-tools/cli/utils/feature-flags.d.ts +4 -0
- package/types/packages/dev-tools/cli/utils/git.d.ts +34 -0
- package/types/packages/dev-tools/cli/utils/open.d.ts +1 -0
- package/types/packages/dev-tools/cli/utils/parseGitDiff.d.ts +11 -0
- package/types/packages/dev-tools/cli/utils/repo-indexing-agent-prompt.d.ts +2 -0
- package/types/packages/dev-tools/cli/utils/repo-indexing-group-prompt.d.ts +1 -0
- package/types/packages/dev-tools/cli/utils/signals.d.ts +2 -0
- package/types/packages/dev-tools/cli/utils/terminal-buffer.d.ts +29 -0
- package/types/packages/dev-tools/cli/utils/terminal-buffer.spec.d.ts +1 -0
- package/types/packages/dev-tools/cli/utils/workspace-path-resolver.d.ts +99 -0
- package/types/packages/dev-tools/cli/utils/workspace-path-resolver.unit.d.ts +1 -0
- package/types/packages/dev-tools/cli/version.d.ts +1 -0
- package/types/packages/dev-tools/client/client-api.d.ts +44 -0
- package/types/packages/dev-tools/client/edit-button/document-listeners.d.ts +4 -0
- package/types/packages/dev-tools/client/edit-button/index.d.ts +8 -0
- package/types/packages/dev-tools/client/index.d.ts +1 -0
- package/types/packages/dev-tools/client/menu/index.d.ts +5 -0
- package/types/packages/dev-tools/client/menu/pages/component-detail.d.ts +10 -0
- package/types/packages/dev-tools/client/menu/pages/component-input.d.ts +7 -0
- package/types/packages/dev-tools/client/menu/pages/component-list.d.ts +7 -0
- package/types/packages/dev-tools/client/menu/pages/home.d.ts +1 -0
- package/types/packages/dev-tools/client/menu/pages/settings.d.ts +1 -0
- package/types/packages/dev-tools/client/menu/toggle/menu-toggle.d.ts +5 -0
- package/types/packages/dev-tools/client/setup-ui/connected.d.ts +1 -0
- package/types/packages/dev-tools/client/setup-ui/index.d.ts +1 -0
- package/types/packages/dev-tools/client/setup-ui/overview.d.ts +4 -0
- package/types/packages/dev-tools/client/tracking.d.ts +22 -0
- package/types/packages/dev-tools/client/utils.d.ts +16 -0
- package/types/packages/dev-tools/common/ast/app-dependencies.d.ts +10 -0
- package/types/packages/dev-tools/common/ast/component-info.d.ts +29 -0
- package/types/packages/dev-tools/common/ast/component-input-types.d.ts +43 -0
- package/types/packages/dev-tools/common/ast/component-registry.d.ts +24 -0
- package/types/packages/dev-tools/common/ast/convert-values.d.ts +43 -0
- package/types/packages/dev-tools/common/ast/convert-values.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/ensure-array-statement.d.ts +11 -0
- package/types/packages/dev-tools/common/ast/ensure-array-statement.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/ensure-comments.d.ts +5 -0
- package/types/packages/dev-tools/common/ast/ensure-imports.d.ts +14 -0
- package/types/packages/dev-tools/common/ast/ensure-imports.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/exported-statements.d.ts +12 -0
- package/types/packages/dev-tools/common/ast/exported-statements.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/imported-statements.d.ts +8 -0
- package/types/packages/dev-tools/common/ast/imported-statements.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/normalize-statements.d.ts +16 -0
- package/types/packages/dev-tools/common/ast/normalize-statements.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/remove-unused-imports.d.ts +6 -0
- package/types/packages/dev-tools/common/ast/remove-unused-imports.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/transform.d.ts +15 -0
- package/types/packages/dev-tools/common/ast/utils.d.ts +49 -0
- package/types/packages/dev-tools/common/ast/utils.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/builder/builder-api.d.ts +36 -0
- package/types/packages/dev-tools/common/builder/builder-sdks.d.ts +12 -0
- package/types/packages/dev-tools/common/builder/content-generation.d.ts +11 -0
- package/types/packages/dev-tools/common/builder/content-ids.d.ts +4 -0
- package/types/packages/dev-tools/common/cache.d.ts +6 -0
- package/types/packages/dev-tools/common/constants.d.ts +17 -0
- package/types/packages/dev-tools/common/dotenv.d.ts +25 -0
- package/types/packages/dev-tools/common/dotenv.test.d.ts +1 -0
- package/types/packages/dev-tools/common/errors.d.ts +50 -0
- package/types/packages/dev-tools/common/estimate-code-tokens.d.ts +1 -0
- package/types/packages/dev-tools/common/fs.d.ts +19 -0
- package/types/packages/dev-tools/common/interactive-select-files.d.ts +17 -0
- package/types/packages/dev-tools/common/mem-sys.d.ts +10 -0
- package/types/packages/dev-tools/common/node-request.d.ts +7 -0
- package/types/packages/dev-tools/common/path.d.ts +2 -0
- package/types/packages/dev-tools/common/test-utils.d.ts +23 -0
- package/types/packages/dev-tools/common/typescript.d.ts +28 -0
- package/types/packages/dev-tools/common/utils.d.ts +55 -0
- package/types/packages/dev-tools/common/utils.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-api-key.d.ts +33 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-api-key.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.d.ts +13 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-components.d.ts +46 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-components.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-builder-setup.d.ts +11 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.d.ts +21 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-fix-tsconfig.d.ts +4 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.d.ts +28 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-test-utils.d.ts +10 -0
- package/types/packages/dev-tools/core/adapters/angular/index.d.ts +22 -0
- package/types/packages/dev-tools/core/adapters/angular/types.d.ts +11 -0
- package/types/packages/dev-tools/core/adapters/next/index.d.ts +36 -0
- package/types/packages/dev-tools/core/adapters/next/next-api-key.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/next/next-component-info.d.ts +12 -0
- package/types/packages/dev-tools/core/adapters/next/next-component-info.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-component-inputs.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-component-source-inputs.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-components.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/next/next-ensure-builder-setup.d.ts +8 -0
- package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-registry-parse.d.ts +26 -0
- package/types/packages/dev-tools/core/adapters/next/next-registry-parse.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/next/next-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-test-utils.d.ts +26 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/index.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-api-key.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +6 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.d.ts +30 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +8 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +6 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.d.ts +28 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-test-utils.d.ts +10 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ts-program.d.ts +4 -0
- package/types/packages/dev-tools/core/adapters/react/index.d.ts +21 -0
- package/types/packages/dev-tools/core/adapters/react/react-api-key.d.ts +9 -0
- package/types/packages/dev-tools/core/adapters/react/react-builder-sdk-setup.d.ts +4 -0
- package/types/packages/dev-tools/core/adapters/react/react-component-info.d.ts +12 -0
- package/types/packages/dev-tools/core/adapters/react/react-components.d.ts +44 -0
- package/types/packages/dev-tools/core/adapters/react/react-components.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/react/react-ensure-builder-setup.d.ts +8 -0
- package/types/packages/dev-tools/core/adapters/react/react-registry-parse.d.ts +26 -0
- package/types/packages/dev-tools/core/adapters/react/react-registry-parse.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/react/react-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/react/react-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/react/react-test-utils.d.ts +13 -0
- package/types/packages/dev-tools/core/adapters/react/react-ts-program.d.ts +4 -0
- package/types/packages/dev-tools/core/adapters/remix/index.d.ts +21 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-api-key.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-components.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-builder-setup.d.ts +11 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-registry-parse.d.ts +28 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-test-utils.d.ts +13 -0
- package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.d.ts +17 -0
- package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/vue/index.d.ts +22 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-api-key.d.ts +9 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-components.d.ts +12 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-ensure-builder-setup.d.ts +11 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-registry-parse.d.ts +26 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-registry.d.ts +8 -0
- package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +7 -0
- package/types/packages/dev-tools/core/client-script.d.ts +1 -0
- package/types/packages/dev-tools/core/create-dev-tools.d.ts +4 -0
- package/types/packages/dev-tools/core/detect-frameworks.d.ts +9 -0
- package/types/packages/dev-tools/core/ensure-config-plugin.d.ts +7 -0
- package/types/packages/dev-tools/core/find-dependencies.d.ts +10 -0
- package/types/packages/dev-tools/core/import-export-registry.d.ts +10 -0
- package/types/packages/dev-tools/core/index.d.ts +23 -0
- package/types/packages/dev-tools/figma/index.d.ts +119 -0
- package/types/packages/dev-tools/node/index.d.ts +2 -0
- package/types/packages/dev-tools/node/node-sys.d.ts +21 -0
- package/types/packages/dev-tools/remix/index.d.ts +8 -0
- package/types/packages/dev-tools/server/auth.d.ts +5 -0
- package/types/packages/dev-tools/server/builder-connect.d.ts +21 -0
- package/types/packages/dev-tools/server/client-script.d.ts +7 -0
- package/types/packages/dev-tools/server/create-dev-tools-server.d.ts +4 -0
- package/types/packages/dev-tools/server/dev-tools-api.d.ts +5 -0
- package/types/packages/dev-tools/server/dev-tools-http-server.d.ts +4 -0
- package/types/packages/dev-tools/server/index.d.ts +30 -0
- package/types/packages/dev-tools/server/request-handler.d.ts +8 -0
- package/types/packages/dev-tools/types/codegen-server.d.ts +14 -0
- package/types/packages/dev-tools/types/connection-tracker.d.ts +41 -0
- package/types/packages/dev-tools/types/proxy-middleware.d.ts +41 -0
- package/types/packages/dev-tools/types/websocket-types.d.ts +19 -0
- package/types/packages/dev-tools/types.d.ts +554 -0
- package/types/packages/dev-tools/vite/main.d.ts +7 -0
- package/types/packages/dev-tools/vitest.config.d.ts +2 -0
- package/types/packages/dev-tools/webpack/main.d.ts +9 -0
- package/types/remix/index.d.ts +5 -3
- package/types/server/auth.d.ts +4 -1
- package/types/server/builder-connect.d.ts +21 -6
- package/types/server/client-script.d.ts +6 -2
- package/types/server/create-dev-tools-server.d.ts +3 -1
- package/types/server/dev-tools-api.d.ts +4 -1
- package/types/server/dev-tools-http-server.d.ts +3 -1
- package/types/server/index.d.ts +28 -1
- package/types/server/request-handler.d.ts +6 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/types/codegen-server.d.ts +1 -1
- package/types/types/connection-tracker.d.ts +34 -34
- package/types/types/proxy-middleware.d.ts +24 -14
- package/types/types/websocket-types.d.ts +9 -7
- package/types/types.d.ts +387 -358
- package/types/vite/main.d.ts +1 -1
- package/types/webpack/main.d.ts +5 -5
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import type { DevToolsSys } from "../types";
|
|
2
|
+
import type { Credentials } from "./credentials";
|
|
3
|
+
import {
|
|
4
|
+
type GitBackupUploadUrlResult,
|
|
5
|
+
type GitBackupUploadUrlOptions,
|
|
6
|
+
type GitBackupRecordOptions,
|
|
7
|
+
type GitBackupRecordResult,
|
|
8
|
+
type BackupMetadata,
|
|
9
|
+
type WorkspaceConfiguration,
|
|
10
|
+
type CodegenRuntimeStatus,
|
|
11
|
+
type BackupGitRepoResult,
|
|
12
|
+
} from "$/ai-utils";
|
|
13
|
+
interface BackupGitRepoOptions {
|
|
14
|
+
sys: DevToolsSys;
|
|
15
|
+
credentials: Credentials;
|
|
16
|
+
projectId: string;
|
|
17
|
+
branchName: string;
|
|
18
|
+
repoPath: string;
|
|
19
|
+
aiBranch: string;
|
|
20
|
+
featureBranch: string;
|
|
21
|
+
workspace: WorkspaceConfiguration | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* If true, the system is connected to the git provider.
|
|
24
|
+
* If false, the system is offline and will not fetch any branches from origin.
|
|
25
|
+
*/
|
|
26
|
+
isConnectedToProvider: boolean;
|
|
27
|
+
debug: boolean;
|
|
28
|
+
forcedFullBackup: boolean;
|
|
29
|
+
canAbortMerge: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Creates a backup of git repository changes made by the AI system.
|
|
33
|
+
*
|
|
34
|
+
* This function handles both partial and full backups:
|
|
35
|
+
* - Partial backups: Only include commits created locally (on aiBranch) that aren't in upstream.
|
|
36
|
+
* This keeps backups small and doesn't store the entire repo's code. Requires a clone from
|
|
37
|
+
* upstream plus applying the backup to restore.
|
|
38
|
+
* - Full backups: Complete repo backup that can be directly cloned from.
|
|
39
|
+
*
|
|
40
|
+
* The aiBranch is where the AI creates commits as work progresses, while featureBranch
|
|
41
|
+
* is the base branch where work started (usually "main").
|
|
42
|
+
*/
|
|
43
|
+
export declare function backupGitRepo({
|
|
44
|
+
sys,
|
|
45
|
+
credentials,
|
|
46
|
+
projectId,
|
|
47
|
+
branchName,
|
|
48
|
+
repoPath,
|
|
49
|
+
aiBranch,
|
|
50
|
+
featureBranch,
|
|
51
|
+
workspace,
|
|
52
|
+
isConnectedToProvider,
|
|
53
|
+
debug,
|
|
54
|
+
forcedFullBackup,
|
|
55
|
+
canAbortMerge,
|
|
56
|
+
}: BackupGitRepoOptions): Promise<BackupGitRepoResult>;
|
|
57
|
+
type InitialCommitHashResult =
|
|
58
|
+
| {
|
|
59
|
+
initialBranch: string;
|
|
60
|
+
initialCommitHash: string | undefined;
|
|
61
|
+
partial: false;
|
|
62
|
+
forcedFullBackup: true;
|
|
63
|
+
}
|
|
64
|
+
| {
|
|
65
|
+
initialBranch: string;
|
|
66
|
+
initialCommitHash: string;
|
|
67
|
+
partial: boolean;
|
|
68
|
+
forcedFullBackup: false;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Determines the initial commit hash and whether to create a partial or full backup.
|
|
72
|
+
*
|
|
73
|
+
* Partial backups are preferred to keep backup sizes small, but full backups are needed when:
|
|
74
|
+
* - The repo is an example/starter template (users can't push to origin, need to fork)
|
|
75
|
+
* - There's no origin remote configured
|
|
76
|
+
*
|
|
77
|
+
* For partial backups, we fetch the latest state of the chosen upstream branch from origin
|
|
78
|
+
* to ensure the backup has the correct commit range reference.
|
|
79
|
+
*/
|
|
80
|
+
export declare function getInitialCommitHash({
|
|
81
|
+
sys,
|
|
82
|
+
repoPath,
|
|
83
|
+
featureBranch,
|
|
84
|
+
debug,
|
|
85
|
+
workspace,
|
|
86
|
+
isConnectedToProvider,
|
|
87
|
+
forcedFullBackup,
|
|
88
|
+
credentials,
|
|
89
|
+
projectId,
|
|
90
|
+
}: {
|
|
91
|
+
sys: DevToolsSys;
|
|
92
|
+
repoPath: string;
|
|
93
|
+
featureBranch: string;
|
|
94
|
+
debug: boolean;
|
|
95
|
+
workspace: WorkspaceConfiguration | undefined;
|
|
96
|
+
isConnectedToProvider: boolean;
|
|
97
|
+
forcedFullBackup: boolean;
|
|
98
|
+
credentials: Credentials;
|
|
99
|
+
projectId: string;
|
|
100
|
+
}): Promise<InitialCommitHashResult>;
|
|
101
|
+
/**
|
|
102
|
+
* Requests a signed upload URL for git backup
|
|
103
|
+
*/
|
|
104
|
+
export declare function requestSignedUploadUrl(
|
|
105
|
+
credentials: Credentials,
|
|
106
|
+
body: GitBackupUploadUrlOptions,
|
|
107
|
+
): Promise<GitBackupUploadUrlResult | null>;
|
|
108
|
+
/**
|
|
109
|
+
* Records a successful git backup in Firebase
|
|
110
|
+
*/
|
|
111
|
+
export declare function recordBackup(
|
|
112
|
+
credentials: Credentials,
|
|
113
|
+
body: GitBackupRecordOptions,
|
|
114
|
+
): Promise<GitBackupRecordResult>;
|
|
115
|
+
export interface GitBackupDownloadResultValid {
|
|
116
|
+
success: true;
|
|
117
|
+
partial: boolean;
|
|
118
|
+
bundlePath: string | undefined;
|
|
119
|
+
bundleSize: number;
|
|
120
|
+
gitBranchName: string;
|
|
121
|
+
lastCommitHash: string;
|
|
122
|
+
}
|
|
123
|
+
export interface GitBackupDownloadResultInvalid {
|
|
124
|
+
success: false;
|
|
125
|
+
error: Error;
|
|
126
|
+
}
|
|
127
|
+
export type GitBackupDownloadResult =
|
|
128
|
+
| GitBackupDownloadResultValid
|
|
129
|
+
| GitBackupDownloadResultInvalid;
|
|
130
|
+
/**
|
|
131
|
+
* Downloads a git backup bundle from remote storage.
|
|
132
|
+
* Handles both empty backups (no bundle file) and regular backups with bundle files.
|
|
133
|
+
* @returns The path to the downloaded bundle file, or undefined if it's an empty backup
|
|
134
|
+
*/
|
|
135
|
+
export declare function downloadGitBackup(
|
|
136
|
+
sys: DevToolsSys,
|
|
137
|
+
response: BackupMetadata,
|
|
138
|
+
): Promise<GitBackupDownloadResult>;
|
|
139
|
+
/**
|
|
140
|
+
* Uploads a file stream to a signed URL (Google Cloud Storage).
|
|
141
|
+
* Uses MD5 hash for content verification as required by GCS.
|
|
142
|
+
*/
|
|
143
|
+
export declare function uploadFileStream(
|
|
144
|
+
filePath: string,
|
|
145
|
+
signedUrl: string,
|
|
146
|
+
size: number,
|
|
147
|
+
contentMd5: string,
|
|
148
|
+
): Promise<Response>;
|
|
149
|
+
export declare function computeMD5Hash(bundlePath: string): Promise<{
|
|
150
|
+
contentMd5: string;
|
|
151
|
+
size: number;
|
|
152
|
+
}>;
|
|
153
|
+
/**
|
|
154
|
+
* Updates the last commit hash in the database for tracking purposes.
|
|
155
|
+
* This is called frequently throughout the codebase (after every commit creation)
|
|
156
|
+
* to track the current state and determine if backups are up-to-date.
|
|
157
|
+
*/
|
|
158
|
+
export declare function setRuntimeStatus(
|
|
159
|
+
sys: DevToolsSys,
|
|
160
|
+
credentials: Credentials,
|
|
161
|
+
data: CodegenRuntimeStatus,
|
|
162
|
+
): Promise<any>;
|
|
163
|
+
/**
|
|
164
|
+
* Computes a unique backup reference string that combines version, repo URL, and commit hash.
|
|
165
|
+
* This reference can be used to identify and retrieve specific backups.
|
|
166
|
+
*/
|
|
167
|
+
export declare function computeBackupRef(input: {
|
|
168
|
+
version: string | undefined;
|
|
169
|
+
originalRepoUrl: string | undefined;
|
|
170
|
+
commitHash: string | undefined;
|
|
171
|
+
}): string | undefined;
|
|
172
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AddCliOptions,
|
|
3
|
+
FileNode,
|
|
4
|
+
FolderNode,
|
|
5
|
+
Snippet,
|
|
6
|
+
SyncInfo,
|
|
7
|
+
} from "../../types";
|
|
8
|
+
export declare function addCommand(
|
|
9
|
+
opts: AddCliOptions,
|
|
10
|
+
): Promise<SyncInfo | undefined>;
|
|
11
|
+
export declare function fetchSnippet(id: string): Promise<Snippet | null>;
|
|
12
|
+
export declare function writeFiles(
|
|
13
|
+
appRootDir: string,
|
|
14
|
+
snippet: Snippet,
|
|
15
|
+
files: Array<FileNode | FolderNode>,
|
|
16
|
+
rootPath: string,
|
|
17
|
+
addSessionLink: boolean,
|
|
18
|
+
): Promise<FileNode[]>;
|
|
19
|
+
export declare function suggestRootPath(
|
|
20
|
+
appRootDir: string,
|
|
21
|
+
framework: string,
|
|
22
|
+
): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DevToolsSys } from "../types";
|
|
2
|
+
import type { Credentials } from "./credentials";
|
|
3
|
+
import type { CodebaseSearchOptions, CodebaseSearchResponse } from "$/ai-utils";
|
|
4
|
+
export declare function shouldIncludeFile(
|
|
5
|
+
inputFile: string,
|
|
6
|
+
ctx: {
|
|
7
|
+
foundFiles: string[];
|
|
8
|
+
allFiles: string[];
|
|
9
|
+
selectedFilePaths: Map<string, number>;
|
|
10
|
+
cwd: string;
|
|
11
|
+
appRootDir: string;
|
|
12
|
+
fallbackImportance: number | 0;
|
|
13
|
+
},
|
|
14
|
+
): number | 0;
|
|
15
|
+
export declare function searchCodeBase(
|
|
16
|
+
sys: DevToolsSys,
|
|
17
|
+
credentials: Credentials,
|
|
18
|
+
signal: AbortSignal | undefined,
|
|
19
|
+
body: CodebaseSearchOptions,
|
|
20
|
+
): Promise<CodebaseSearchResponse | null>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AccessResult,
|
|
3
|
+
CodeGenPosition,
|
|
4
|
+
CodeGenTools,
|
|
5
|
+
CodegenTurn,
|
|
6
|
+
ContentMessageItemToolResult,
|
|
7
|
+
FusionConfig,
|
|
8
|
+
GenerateCompletionStep,
|
|
9
|
+
Permission,
|
|
10
|
+
ProjectFile,
|
|
11
|
+
UserSource,
|
|
12
|
+
WorkspaceFolder,
|
|
13
|
+
} from "$/ai-utils";
|
|
14
|
+
import type { DevToolsSys } from "../core";
|
|
15
|
+
import { type DevServerOrchestrator } from "./launch/dev-server-orchestrator";
|
|
16
|
+
import type { CodeGenEventEmitter } from "./codegen";
|
|
17
|
+
import type { Credentials } from "./credentials";
|
|
18
|
+
export interface LLMToolCalls {
|
|
19
|
+
name: CodeGenTools;
|
|
20
|
+
input: Record<string, any>;
|
|
21
|
+
id: string;
|
|
22
|
+
abortController: AbortController;
|
|
23
|
+
}
|
|
24
|
+
export interface ToolResolution {
|
|
25
|
+
toolResult: string;
|
|
26
|
+
isError: boolean;
|
|
27
|
+
title?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface FusionContext {
|
|
30
|
+
devServerOrchestrator?: DevServerOrchestrator;
|
|
31
|
+
git: boolean;
|
|
32
|
+
gitRemote?: string;
|
|
33
|
+
gitAutoInit?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface ToolContext extends Partial<FusionContext> {
|
|
36
|
+
sys: DevToolsSys;
|
|
37
|
+
credentials: Credentials;
|
|
38
|
+
files: ProjectFile[];
|
|
39
|
+
user: UserSource;
|
|
40
|
+
position: CodeGenPosition;
|
|
41
|
+
emitter: CodeGenEventEmitter;
|
|
42
|
+
fusionConfig: FusionConfig | undefined;
|
|
43
|
+
canCollapseWorkspace: boolean;
|
|
44
|
+
signal: AbortSignal;
|
|
45
|
+
workingDirectory: string;
|
|
46
|
+
allowedCommands: RegExp[];
|
|
47
|
+
getAllFiles: (options: {
|
|
48
|
+
getDotFiles?: boolean;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
}) => Promise<string[]>;
|
|
51
|
+
restore: (options: {
|
|
52
|
+
location: "before" | "after";
|
|
53
|
+
predicate: (turn: CodegenTurn | null, index: number) => boolean;
|
|
54
|
+
dryRun?: boolean;
|
|
55
|
+
revert?: boolean;
|
|
56
|
+
forceReplay?: boolean;
|
|
57
|
+
debug?: string;
|
|
58
|
+
}) => Promise<{
|
|
59
|
+
undone: string[] | null;
|
|
60
|
+
message: string;
|
|
61
|
+
}>;
|
|
62
|
+
bashWorkingDirectory: string;
|
|
63
|
+
filterText: (text: string) => string;
|
|
64
|
+
resolveWorkspacePath: (
|
|
65
|
+
path: string,
|
|
66
|
+
forceWorkspace: boolean,
|
|
67
|
+
) => {
|
|
68
|
+
resolvedPath: string;
|
|
69
|
+
workspaceFolder?: WorkspaceFolder;
|
|
70
|
+
};
|
|
71
|
+
absolutePathToWorkspaceUrl: (absolutePath: string) => string | undefined;
|
|
72
|
+
workspaceFolders: Array<{
|
|
73
|
+
path: string;
|
|
74
|
+
name?: string;
|
|
75
|
+
}>;
|
|
76
|
+
patchFusionConfig: (patch: Partial<FusionConfig>) => void;
|
|
77
|
+
passThrough: (
|
|
78
|
+
toolCall: LLMToolCalls,
|
|
79
|
+
signal: AbortSignal,
|
|
80
|
+
) => Promise<ToolResolution>;
|
|
81
|
+
readFile: (filePath: string) => Promise<string | null>;
|
|
82
|
+
writeFile: (
|
|
83
|
+
filePath: string,
|
|
84
|
+
content: string | Uint8Array,
|
|
85
|
+
) => Promise<string | null>;
|
|
86
|
+
deleteFile: (filePath: string) => Promise<string | null>;
|
|
87
|
+
fileExists: (filePath: string) => Promise<{
|
|
88
|
+
absolutePath: string | undefined;
|
|
89
|
+
recommendedPath: string | undefined;
|
|
90
|
+
workspaceFolder: WorkspaceFolder | undefined;
|
|
91
|
+
virtual: boolean;
|
|
92
|
+
}>;
|
|
93
|
+
listDir: (dirPath: string) => Promise<string[]>;
|
|
94
|
+
evaluateAccess: (resource: string, permission: Permission) => AccessResult;
|
|
95
|
+
stat: (filePath: string) => Promise<{
|
|
96
|
+
isDirectory: () => boolean;
|
|
97
|
+
isFile: () => boolean;
|
|
98
|
+
size: number;
|
|
99
|
+
} | null>;
|
|
100
|
+
}
|
|
101
|
+
export declare function resolveToolCalls(
|
|
102
|
+
toolContext: ToolContext,
|
|
103
|
+
toolCalls: LLMToolCalls[],
|
|
104
|
+
existingToolResults: ContentMessageItemToolResult[] | undefined,
|
|
105
|
+
onStep: (step: GenerateCompletionStep) => void,
|
|
106
|
+
): Promise<ContentMessageItemToolResult[]>;
|
|
107
|
+
interface RipgrepMatch {
|
|
108
|
+
path: string;
|
|
109
|
+
lineNumber: number;
|
|
110
|
+
lineContent: string;
|
|
111
|
+
}
|
|
112
|
+
interface RipgrepResult {
|
|
113
|
+
matches: RipgrepMatch[];
|
|
114
|
+
}
|
|
115
|
+
export declare function runRipgrep(
|
|
116
|
+
sys: DevToolsSys,
|
|
117
|
+
bashWorkingDirectory: string,
|
|
118
|
+
pattern: string,
|
|
119
|
+
includeGlob?: string,
|
|
120
|
+
excludeGlob?: string,
|
|
121
|
+
): Promise<RipgrepResult>;
|
|
122
|
+
/**
|
|
123
|
+
* Returns true if query is likely a string literal rather than a regex.
|
|
124
|
+
* Returns false otherwise.
|
|
125
|
+
* This is intended to ensure that queries such as "import {" do not get
|
|
126
|
+
* interpreted as invalid regex values by ripgrep.
|
|
127
|
+
* @param query - The query to check
|
|
128
|
+
*/
|
|
129
|
+
export declare const isLikelyFixedString: (query: string) => boolean;
|
|
130
|
+
export declare function newAbortError(): Error;
|
|
131
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DevToolsSys } from "../types";
|
|
2
|
+
import type { CLIArgs } from "./index";
|
|
3
|
+
import { type UserContext } from "$/ai-utils";
|
|
4
|
+
export declare const runCodeCommand: (
|
|
5
|
+
sys: DevToolsSys,
|
|
6
|
+
subCommand: string,
|
|
7
|
+
args: CLIArgs,
|
|
8
|
+
) => Promise<void>;
|
|
9
|
+
export declare const runCodeGen: (
|
|
10
|
+
sys: DevToolsSys,
|
|
11
|
+
args: CLIArgs,
|
|
12
|
+
) => Promise<undefined>;
|
|
13
|
+
export declare function checkProjectRoot(
|
|
14
|
+
sys: DevToolsSys,
|
|
15
|
+
interactive: boolean,
|
|
16
|
+
): Promise<void>;
|
|
17
|
+
export declare function getUserContext(sys: DevToolsSys): Promise<UserContext>;
|