@builder.io/dev-tools 1.18.11-dev.202511202316.621aec6ae → 1.18.11-dev.202511210301.98709336d
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 +76 -107
- 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 +35 -48
- package/types/cli/abort-signal-any.d.ts +1 -3
- package/types/cli/auth/auth-utils.d.ts +1 -3
- package/types/cli/auth/auth.d.ts +1 -5
- package/types/cli/backup.d.ts +58 -112
- package/types/cli/builder-add/interface.d.ts +4 -21
- package/types/cli/code-file-utils.d.ts +9 -17
- package/types/cli/code.d.ts +3 -13
- package/types/cli/credentials.d.ts +45 -61
- package/types/cli/download.d.ts +4 -9
- package/types/cli/figma-publish.d.ts +17 -34
- package/types/cli/figma-utils.d.ts +21 -51
- package/types/cli/figma.d.ts +2 -9
- package/types/cli/generate.d.ts +11 -14
- package/types/cli/incremental-tsc.d.ts +7 -19
- package/types/cli/launch/config.d.ts +3 -13
- package/types/cli/launch/dry-run-backup.d.ts +7 -14
- package/types/cli/launch/errors.d.ts +2 -7
- package/types/cli/launch/github.d.ts +2 -8
- package/types/cli/launch/grafana.d.ts +1 -5
- package/types/cli/launch/machine-health.d.ts +3 -8
- package/types/cli/launch/proxy.d.ts +3 -6
- package/types/cli/launch/server.d.ts +10 -16
- package/types/cli/launch.d.ts +99 -102
- package/types/cli/prettier.d.ts +2 -9
- package/types/cli/repo-connect/env-collector.d.ts +11 -16
- package/types/cli/repo-connect/file-collector.d.ts +15 -22
- package/types/cli/repo-connect/install-runner.d.ts +5 -8
- package/types/cli/repo-connect/package-detector.d.ts +8 -12
- package/types/cli/repo-connect/repo-connect.d.ts +1 -4
- package/types/cli/repo-indexing/repo-indexing.d.ts +17 -37
- package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
- package/types/cli/repo-metrics.d.ts +1 -4
- package/types/cli/report/figma-report.d.ts +36 -63
- package/types/cli/server-ws.d.ts +32 -40
- package/types/cli/spinner.d.ts +4 -4
- package/types/cli/sync-utils.d.ts +16 -39
- package/types/cli/track.d.ts +1 -4
- package/types/cli/utils/component-group-mdx-prompt.d.ts +1 -2
- package/types/cli/utils/dev-server-url-parser.d.ts +3 -6
- package/types/cli/utils/env-capture.d.ts +15 -21
- package/types/cli/utils/feature-flags.d.ts +1 -3
- package/types/cli/utils/file-overrides-manager.d.ts +23 -39
- package/types/cli/utils/git.d.ts +16 -28
- package/types/cli/utils/hosts-file-manager.d.ts +4 -7
- package/types/cli/utils/lock-file.d.ts +7 -10
- package/types/cli/utils/parseGitDiff.d.ts +1 -4
- package/types/cli/utils/process-tracker.d.ts +51 -85
- package/types/cli/utils/repo-indexing-agent-prompt.d.ts +1 -2
- package/types/cli/utils/terminal-buffer.d.ts +23 -23
- package/types/cli/utils/workspace-path-resolver.d.ts +16 -23
- package/types/client/client-api.d.ts +10 -42
- package/types/client/edit-button/document-listeners.d.ts +1 -3
- 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 +2 -8
- package/types/client/menu/pages/component-input.d.ts +1 -5
- package/types/client/menu/pages/component-list.d.ts +1 -4
- package/types/client/menu/toggle/menu-toggle.d.ts +1 -4
- package/types/client/setup-ui/overview.d.ts +2 -2
- package/types/client/tracking.d.ts +11 -11
- package/types/client/utils.d.ts +3 -5
- package/types/common/ast/app-dependencies.d.ts +2 -8
- package/types/common/ast/component-info.d.ts +6 -26
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/common/ast/component-registry.d.ts +8 -23
- package/types/common/ast/ensure-array-statement.d.ts +3 -7
- package/types/common/ast/ensure-comments.d.ts +1 -5
- package/types/common/ast/ensure-imports.d.ts +5 -10
- package/types/common/ast/exported-statements.d.ts +4 -8
- package/types/common/ast/imported-statements.d.ts +1 -5
- package/types/common/ast/normalize-statements.d.ts +3 -12
- package/types/common/ast/remove-unused-imports.d.ts +1 -4
- package/types/common/ast/transform.d.ts +3 -13
- package/types/common/ast/utils.d.ts +19 -42
- package/types/common/builder/builder-api.d.ts +23 -32
- package/types/common/builder/builder-sdks.d.ts +8 -10
- package/types/common/builder/content-generation.d.ts +7 -10
- package/types/common/builder/content-ids.d.ts +1 -2
- package/types/common/cache.d.ts +1 -4
- package/types/common/constants.d.ts +1 -2
- package/types/common/dotenv.d.ts +5 -24
- package/types/common/fs.d.ts +4 -17
- package/types/common/interactive-select-files.d.ts +2 -16
- package/types/common/mem-sys.d.ts +5 -7
- package/types/common/node-request.d.ts +4 -4
- package/types/common/path.d.ts +3 -1
- package/types/common/test-utils.d.ts +7 -21
- package/types/common/typescript.d.ts +7 -26
- package/types/common/utils.d.ts +1 -1
- package/types/core/adapters/angular/angular-api-key.d.ts +6 -29
- package/types/core/adapters/angular/angular-app-module-imports.d.ts +2 -12
- package/types/core/adapters/angular/angular-app-routes-update.d.ts +1 -6
- package/types/core/adapters/angular/angular-components.d.ts +12 -40
- package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +3 -9
- package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +4 -16
- package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +1 -3
- package/types/core/adapters/angular/angular-registry-parse.d.ts +10 -22
- package/types/core/adapters/angular/angular-registry.d.ts +2 -15
- package/types/core/adapters/angular/angular-test-utils.d.ts +4 -8
- package/types/core/adapters/angular/index.d.ts +12 -20
- package/types/core/adapters/angular/types.d.ts +5 -5
- package/types/core/adapters/next/index.d.ts +18 -26
- package/types/core/adapters/next/next-api-key.d.ts +1 -4
- package/types/core/adapters/next/next-component-info.d.ts +2 -9
- package/types/core/adapters/next/next-components.d.ts +1 -4
- package/types/core/adapters/next/next-ensure-builder-setup.d.ts +2 -6
- package/types/core/adapters/next/next-ensure-config-plugin.d.ts +1 -5
- package/types/core/adapters/next/next-registry-parse.d.ts +8 -21
- package/types/core/adapters/next/next-registry.d.ts +2 -15
- package/types/core/adapters/next/next-test-utils.d.ts +11 -21
- package/types/core/adapters/qwik-city/index.d.ts +6 -14
- package/types/core/adapters/qwik-city/qwik-api-key.d.ts +1 -4
- package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +1 -4
- package/types/core/adapters/qwik-city/qwik-components.d.ts +8 -23
- package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +2 -6
- package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +1 -5
- package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +10 -22
- package/types/core/adapters/qwik-city/qwik-registry.d.ts +2 -15
- package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +4 -8
- package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +1 -3
- package/types/core/adapters/react/index.d.ts +11 -19
- package/types/core/adapters/react/react-api-key.d.ts +1 -4
- package/types/core/adapters/react/react-builder-sdk-setup.d.ts +1 -3
- package/types/core/adapters/react/react-component-info.d.ts +2 -9
- package/types/core/adapters/react/react-components.d.ts +11 -37
- package/types/core/adapters/react/react-ensure-builder-setup.d.ts +2 -6
- package/types/core/adapters/react/react-registry-parse.d.ts +8 -21
- package/types/core/adapters/react/react-registry.d.ts +2 -15
- package/types/core/adapters/react/react-test-utils.d.ts +5 -11
- package/types/core/adapters/react/react-ts-program.d.ts +1 -3
- package/types/core/adapters/remix/index.d.ts +11 -19
- package/types/core/adapters/remix/remix-api-key.d.ts +1 -4
- package/types/core/adapters/remix/remix-components.d.ts +1 -4
- package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +3 -9
- package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +1 -5
- package/types/core/adapters/remix/remix-registry-parse.d.ts +10 -22
- package/types/core/adapters/remix/remix-registry.d.ts +2 -15
- package/types/core/adapters/remix/remix-test-utils.d.ts +5 -11
- package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +2 -12
- package/types/core/adapters/vue/index.d.ts +12 -20
- package/types/core/adapters/vue/vue-api-key.d.ts +1 -4
- package/types/core/adapters/vue/vue-components.d.ts +2 -10
- package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +3 -7
- package/types/core/adapters/vue/vue-registry-parse.d.ts +9 -19
- package/types/core/adapters/vue/vue-registry.d.ts +3 -6
- package/types/core/adapters/webpack/webpack-config-helpers.d.ts +3 -8
- package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +1 -5
- package/types/core/create-dev-tools.d.ts +1 -4
- package/types/core/detect-frameworks.d.ts +2 -7
- package/types/core/ensure-config-plugin.d.ts +2 -6
- package/types/core/find-dependencies.d.ts +3 -6
- package/types/core/import-export-registry.d.ts +2 -9
- package/types/core/index.d.ts +3 -18
- package/types/figma/index.d.ts +64 -95
- package/types/node/node-sys.d.ts +6 -13
- package/types/remix/index.d.ts +3 -5
- package/types/server/auth.d.ts +1 -4
- package/types/server/builder-connect.d.ts +6 -21
- package/types/server/client-script.d.ts +2 -6
- package/types/server/create-dev-tools-server.d.ts +1 -3
- package/types/server/dev-tools-api.d.ts +1 -4
- package/types/server/dev-tools-http-server.d.ts +1 -3
- package/types/server/index.d.ts +1 -28
- package/types/server/request-handler.d.ts +1 -6
- 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 +14 -24
- package/types/types/websocket-types.d.ts +7 -9
- package/types/types.d.ts +358 -387
- package/types/vite/main.d.ts +1 -1
- package/types/webpack/main.d.ts +5 -5
- package/types/cli/env-substitution.d.ts +0 -22
- package/types/cli/env-substitution.test.d.ts +0 -1
- package/types/cli/utils/env-filter.d.ts +0 -42
- package/types/cli/utils/lock-file-example.d.ts +0 -30
- package/types/cli/utils/sudo-helper.d.ts +0 -21
- package/types/packages/dev-tools/_tests_/code.e2e.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/create-builder.e2e.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/dev-tools.e2e.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/figma-generate.e2e.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/figma-publish.e2e.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/fusionInit.e2e.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/help.e2e.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/launch.e2e.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/repo-indexing.test.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/sync-utils.test.d.ts +0 -1
- package/types/packages/dev-tools/_tests_/utils.d.ts +0 -57
- package/types/packages/dev-tools/_tests_/vitest.config.d.ts +0 -2
- package/types/packages/dev-tools/_tests_/workspace.e2e.d.ts +0 -1
- package/types/packages/dev-tools/angular/index.d.ts +0 -1
- package/types/packages/dev-tools/cli/__tests__/isLikelyFixedString.spec.d.ts +0 -1
- package/types/packages/dev-tools/cli/__tests__/parseGitDiffToApplyActions.spec.d.ts +0 -1
- package/types/packages/dev-tools/cli/abort-signal-any.d.ts +0 -3
- package/types/packages/dev-tools/cli/auth/auth-utils.d.ts +0 -4
- package/types/packages/dev-tools/cli/auth/auth.d.ts +0 -7
- package/types/packages/dev-tools/cli/auth/status.d.ts +0 -3
- package/types/packages/dev-tools/cli/backup.d.ts +0 -172
- package/types/packages/dev-tools/cli/builder-add/interface.d.ts +0 -22
- package/types/packages/dev-tools/cli/builder-add/options.d.ts +0 -2
- package/types/packages/dev-tools/cli/code-file-utils.d.ts +0 -20
- package/types/packages/dev-tools/cli/code-file-utils.unit.d.ts +0 -1
- package/types/packages/dev-tools/cli/code-tools.d.ts +0 -131
- package/types/packages/dev-tools/cli/code.d.ts +0 -17
- package/types/packages/dev-tools/cli/codegen.d.ts +0 -456
- package/types/packages/dev-tools/cli/constants.d.ts +0 -1
- package/types/packages/dev-tools/cli/credentials.d.ts +0 -69
- package/types/packages/dev-tools/cli/download.d.ts +0 -15
- package/types/packages/dev-tools/cli/exit.d.ts +0 -1
- package/types/packages/dev-tools/cli/fetch.d.ts +0 -1
- package/types/packages/dev-tools/cli/figma-publish.d.ts +0 -41
- package/types/packages/dev-tools/cli/figma-publish.spec.d.ts +0 -1
- package/types/packages/dev-tools/cli/figma-utils.d.ts +0 -61
- package/types/packages/dev-tools/cli/figma.d.ts +0 -11
- package/types/packages/dev-tools/cli/generate.d.ts +0 -19
- package/types/packages/dev-tools/cli/help.d.ts +0 -1
- package/types/packages/dev-tools/cli/incremental-tsc.d.ts +0 -42
- package/types/packages/dev-tools/cli/index.d.ts +0 -97
- package/types/packages/dev-tools/cli/indexing.d.ts +0 -11
- package/types/packages/dev-tools/cli/launch/InitStateMachine.d.ts +0 -142
- package/types/packages/dev-tools/cli/launch/config.d.ts +0 -15
- package/types/packages/dev-tools/cli/launch/dev-server-orchestrator.d.ts +0 -114
- package/types/packages/dev-tools/cli/launch/dry-run-backup.d.ts +0 -16
- package/types/packages/dev-tools/cli/launch/errors.d.ts +0 -8
- package/types/packages/dev-tools/cli/launch/github.d.ts +0 -9
- package/types/packages/dev-tools/cli/launch/grafana.d.ts +0 -8
- package/types/packages/dev-tools/cli/launch/helpers.d.ts +0 -42
- package/types/packages/dev-tools/cli/launch/helpers.test.d.ts +0 -1
- package/types/packages/dev-tools/cli/launch/machine-health.d.ts +0 -17
- package/types/packages/dev-tools/cli/launch/proxy.d.ts +0 -6
- package/types/packages/dev-tools/cli/launch/server.d.ts +0 -26
- package/types/packages/dev-tools/cli/launch.d.ts +0 -93
- package/types/packages/dev-tools/cli/prettier.d.ts +0 -10
- package/types/packages/dev-tools/cli/prettier.integration.test.d.ts +0 -1
- package/types/packages/dev-tools/cli/repo-indexing/component-discovery.d.ts +0 -21
- package/types/packages/dev-tools/cli/repo-indexing/component-indexing.d.ts +0 -34
- package/types/packages/dev-tools/cli/repo-indexing/icons.d.ts +0 -32
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing-utils.d.ts +0 -109
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.d.ts +0 -41
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.mock.d.ts +0 -5
- package/types/packages/dev-tools/cli/repo-indexing/types.d.ts +0 -12
- package/types/packages/dev-tools/cli/repo-metrics.d.ts +0 -9
- package/types/packages/dev-tools/cli/report/figma-report.d.ts +0 -81
- package/types/packages/dev-tools/cli/server-ws.d.ts +0 -60
- package/types/packages/dev-tools/cli/spinner.d.ts +0 -6
- package/types/packages/dev-tools/cli/sync-utils.d.ts +0 -45
- package/types/packages/dev-tools/cli/track.d.ts +0 -8
- package/types/packages/dev-tools/cli/utils/component-group-mdx-prompt.d.ts +0 -2
- package/types/packages/dev-tools/cli/utils/dev-server-url-parser.d.ts +0 -15
- package/types/packages/dev-tools/cli/utils/dev-server-url-parser.test.d.ts +0 -1
- package/types/packages/dev-tools/cli/utils/feature-flags.d.ts +0 -4
- package/types/packages/dev-tools/cli/utils/git.d.ts +0 -34
- package/types/packages/dev-tools/cli/utils/open.d.ts +0 -1
- package/types/packages/dev-tools/cli/utils/parseGitDiff.d.ts +0 -11
- package/types/packages/dev-tools/cli/utils/repo-indexing-agent-prompt.d.ts +0 -2
- package/types/packages/dev-tools/cli/utils/repo-indexing-group-prompt.d.ts +0 -1
- package/types/packages/dev-tools/cli/utils/signals.d.ts +0 -2
- package/types/packages/dev-tools/cli/utils/terminal-buffer.d.ts +0 -29
- package/types/packages/dev-tools/cli/utils/terminal-buffer.spec.d.ts +0 -1
- package/types/packages/dev-tools/cli/utils/workspace-path-resolver.d.ts +0 -99
- package/types/packages/dev-tools/cli/utils/workspace-path-resolver.unit.d.ts +0 -1
- package/types/packages/dev-tools/cli/version.d.ts +0 -1
- package/types/packages/dev-tools/client/client-api.d.ts +0 -44
- package/types/packages/dev-tools/client/edit-button/document-listeners.d.ts +0 -4
- package/types/packages/dev-tools/client/edit-button/index.d.ts +0 -8
- package/types/packages/dev-tools/client/index.d.ts +0 -1
- package/types/packages/dev-tools/client/menu/index.d.ts +0 -5
- package/types/packages/dev-tools/client/menu/pages/component-detail.d.ts +0 -10
- package/types/packages/dev-tools/client/menu/pages/component-input.d.ts +0 -7
- package/types/packages/dev-tools/client/menu/pages/component-list.d.ts +0 -7
- package/types/packages/dev-tools/client/menu/pages/home.d.ts +0 -1
- package/types/packages/dev-tools/client/menu/pages/settings.d.ts +0 -1
- package/types/packages/dev-tools/client/menu/toggle/menu-toggle.d.ts +0 -5
- package/types/packages/dev-tools/client/setup-ui/connected.d.ts +0 -1
- package/types/packages/dev-tools/client/setup-ui/index.d.ts +0 -1
- package/types/packages/dev-tools/client/setup-ui/overview.d.ts +0 -4
- package/types/packages/dev-tools/client/tracking.d.ts +0 -22
- package/types/packages/dev-tools/client/utils.d.ts +0 -16
- package/types/packages/dev-tools/common/ast/app-dependencies.d.ts +0 -10
- package/types/packages/dev-tools/common/ast/component-info.d.ts +0 -29
- package/types/packages/dev-tools/common/ast/component-input-types.d.ts +0 -43
- package/types/packages/dev-tools/common/ast/component-registry.d.ts +0 -24
- package/types/packages/dev-tools/common/ast/convert-values.d.ts +0 -43
- package/types/packages/dev-tools/common/ast/convert-values.unit.d.ts +0 -1
- package/types/packages/dev-tools/common/ast/ensure-array-statement.d.ts +0 -11
- package/types/packages/dev-tools/common/ast/ensure-array-statement.unit.d.ts +0 -1
- package/types/packages/dev-tools/common/ast/ensure-comments.d.ts +0 -5
- package/types/packages/dev-tools/common/ast/ensure-imports.d.ts +0 -14
- package/types/packages/dev-tools/common/ast/ensure-imports.unit.d.ts +0 -1
- package/types/packages/dev-tools/common/ast/exported-statements.d.ts +0 -12
- package/types/packages/dev-tools/common/ast/exported-statements.unit.d.ts +0 -1
- package/types/packages/dev-tools/common/ast/imported-statements.d.ts +0 -8
- package/types/packages/dev-tools/common/ast/imported-statements.unit.d.ts +0 -1
- package/types/packages/dev-tools/common/ast/normalize-statements.d.ts +0 -16
- package/types/packages/dev-tools/common/ast/normalize-statements.unit.d.ts +0 -1
- package/types/packages/dev-tools/common/ast/remove-unused-imports.d.ts +0 -6
- package/types/packages/dev-tools/common/ast/remove-unused-imports.unit.d.ts +0 -1
- package/types/packages/dev-tools/common/ast/transform.d.ts +0 -15
- package/types/packages/dev-tools/common/ast/utils.d.ts +0 -49
- package/types/packages/dev-tools/common/ast/utils.unit.d.ts +0 -1
- package/types/packages/dev-tools/common/builder/builder-api.d.ts +0 -36
- package/types/packages/dev-tools/common/builder/builder-sdks.d.ts +0 -12
- package/types/packages/dev-tools/common/builder/content-generation.d.ts +0 -11
- package/types/packages/dev-tools/common/builder/content-ids.d.ts +0 -4
- package/types/packages/dev-tools/common/cache.d.ts +0 -6
- package/types/packages/dev-tools/common/constants.d.ts +0 -17
- package/types/packages/dev-tools/common/dotenv.d.ts +0 -25
- package/types/packages/dev-tools/common/dotenv.test.d.ts +0 -1
- package/types/packages/dev-tools/common/errors.d.ts +0 -50
- package/types/packages/dev-tools/common/estimate-code-tokens.d.ts +0 -1
- package/types/packages/dev-tools/common/fs.d.ts +0 -19
- package/types/packages/dev-tools/common/interactive-select-files.d.ts +0 -17
- package/types/packages/dev-tools/common/mem-sys.d.ts +0 -10
- package/types/packages/dev-tools/common/node-request.d.ts +0 -7
- package/types/packages/dev-tools/common/path.d.ts +0 -2
- package/types/packages/dev-tools/common/test-utils.d.ts +0 -23
- package/types/packages/dev-tools/common/typescript.d.ts +0 -28
- package/types/packages/dev-tools/common/utils.d.ts +0 -55
- package/types/packages/dev-tools/common/utils.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/angular/angular-api-key.d.ts +0 -33
- package/types/packages/dev-tools/core/adapters/angular/angular-api-key.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.d.ts +0 -13
- package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.d.ts +0 -7
- package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/angular/angular-components.d.ts +0 -46
- package/types/packages/dev-tools/core/adapters/angular/angular-components.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-builder-setup.d.ts +0 -11
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.d.ts +0 -21
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/angular/angular-fix-tsconfig.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.d.ts +0 -28
- package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/angular/angular-registry.d.ts +0 -16
- package/types/packages/dev-tools/core/adapters/angular/angular-registry.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/angular/angular-test-utils.d.ts +0 -10
- package/types/packages/dev-tools/core/adapters/angular/index.d.ts +0 -22
- package/types/packages/dev-tools/core/adapters/angular/types.d.ts +0 -11
- package/types/packages/dev-tools/core/adapters/next/index.d.ts +0 -36
- package/types/packages/dev-tools/core/adapters/next/next-api-key.d.ts +0 -7
- package/types/packages/dev-tools/core/adapters/next/next-component-info.d.ts +0 -12
- package/types/packages/dev-tools/core/adapters/next/next-component-info.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/next/next-component-inputs.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/next/next-component-source-inputs.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/next/next-components.d.ts +0 -7
- package/types/packages/dev-tools/core/adapters/next/next-ensure-builder-setup.d.ts +0 -8
- package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.d.ts +0 -7
- package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/next/next-registry-parse.d.ts +0 -26
- package/types/packages/dev-tools/core/adapters/next/next-registry-parse.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/next/next-registry.d.ts +0 -16
- package/types/packages/dev-tools/core/adapters/next/next-registry.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/next/next-test-utils.d.ts +0 -26
- package/types/packages/dev-tools/core/adapters/qwik-city/index.d.ts +0 -16
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-api-key.d.ts +0 -7
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +0 -6
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.d.ts +0 -30
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +0 -8
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +0 -6
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.d.ts +0 -28
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.d.ts +0 -16
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-test-utils.d.ts +0 -10
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ts-program.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/react/index.d.ts +0 -21
- package/types/packages/dev-tools/core/adapters/react/react-api-key.d.ts +0 -9
- package/types/packages/dev-tools/core/adapters/react/react-builder-sdk-setup.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/react/react-component-info.d.ts +0 -12
- package/types/packages/dev-tools/core/adapters/react/react-components.d.ts +0 -44
- package/types/packages/dev-tools/core/adapters/react/react-components.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/react/react-ensure-builder-setup.d.ts +0 -8
- package/types/packages/dev-tools/core/adapters/react/react-registry-parse.d.ts +0 -26
- package/types/packages/dev-tools/core/adapters/react/react-registry-parse.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/react/react-registry.d.ts +0 -16
- package/types/packages/dev-tools/core/adapters/react/react-registry.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/react/react-test-utils.d.ts +0 -13
- package/types/packages/dev-tools/core/adapters/react/react-ts-program.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/remix/index.d.ts +0 -21
- package/types/packages/dev-tools/core/adapters/remix/remix-api-key.d.ts +0 -7
- package/types/packages/dev-tools/core/adapters/remix/remix-components.d.ts +0 -7
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-builder-setup.d.ts +0 -11
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.d.ts +0 -7
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/remix/remix-registry-parse.d.ts +0 -28
- package/types/packages/dev-tools/core/adapters/remix/remix-registry.d.ts +0 -16
- package/types/packages/dev-tools/core/adapters/remix/remix-registry.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/remix/remix-test-utils.d.ts +0 -13
- package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.d.ts +0 -17
- package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/vue/index.d.ts +0 -22
- package/types/packages/dev-tools/core/adapters/vue/vue-api-key.d.ts +0 -9
- package/types/packages/dev-tools/core/adapters/vue/vue-components.d.ts +0 -12
- package/types/packages/dev-tools/core/adapters/vue/vue-ensure-builder-setup.d.ts +0 -11
- package/types/packages/dev-tools/core/adapters/vue/vue-registry-parse.d.ts +0 -26
- package/types/packages/dev-tools/core/adapters/vue/vue-registry.d.ts +0 -8
- package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.d.ts +0 -16
- package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.unit.d.ts +0 -1
- package/types/packages/dev-tools/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +0 -7
- package/types/packages/dev-tools/core/client-script.d.ts +0 -1
- package/types/packages/dev-tools/core/create-dev-tools.d.ts +0 -4
- package/types/packages/dev-tools/core/detect-frameworks.d.ts +0 -9
- package/types/packages/dev-tools/core/ensure-config-plugin.d.ts +0 -7
- package/types/packages/dev-tools/core/find-dependencies.d.ts +0 -10
- package/types/packages/dev-tools/core/import-export-registry.d.ts +0 -10
- package/types/packages/dev-tools/core/index.d.ts +0 -23
- package/types/packages/dev-tools/figma/index.d.ts +0 -119
- package/types/packages/dev-tools/node/index.d.ts +0 -2
- package/types/packages/dev-tools/node/node-sys.d.ts +0 -21
- package/types/packages/dev-tools/remix/index.d.ts +0 -8
- package/types/packages/dev-tools/server/auth.d.ts +0 -5
- package/types/packages/dev-tools/server/builder-connect.d.ts +0 -21
- package/types/packages/dev-tools/server/client-script.d.ts +0 -7
- package/types/packages/dev-tools/server/create-dev-tools-server.d.ts +0 -4
- package/types/packages/dev-tools/server/dev-tools-api.d.ts +0 -5
- package/types/packages/dev-tools/server/dev-tools-http-server.d.ts +0 -4
- package/types/packages/dev-tools/server/index.d.ts +0 -30
- package/types/packages/dev-tools/server/request-handler.d.ts +0 -8
- package/types/packages/dev-tools/types/codegen-server.d.ts +0 -14
- package/types/packages/dev-tools/types/connection-tracker.d.ts +0 -41
- package/types/packages/dev-tools/types/proxy-middleware.d.ts +0 -41
- package/types/packages/dev-tools/types/websocket-types.d.ts +0 -19
- package/types/packages/dev-tools/types.d.ts +0 -554
- package/types/packages/dev-tools/vite/main.d.ts +0 -7
- package/types/packages/dev-tools/vitest.config.d.ts +0 -2
- package/types/packages/dev-tools/webpack/main.d.ts +0 -9
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as ts from "typescript";
|
|
2
|
-
/**
|
|
3
|
-
* Performs an incremental type-check (no emit) for the given project directory.
|
|
4
|
-
* It reads tsconfig.json (just like the tsc CLI does) and enforces the `noEmit` flag.
|
|
5
|
-
*
|
|
6
|
-
* @param projectDir - The path to the project (where tsconfig.json is located).
|
|
7
|
-
* @param oldProgram - Optionally, the previous builder program for incremental builds.
|
|
8
|
-
* @returns An object containing the new builder program and collected diagnostics.
|
|
9
|
-
*/
|
|
10
|
-
export interface CheckpointData {
|
|
11
|
-
program: ts.EmitAndSemanticDiagnosticsBuilderProgram;
|
|
12
|
-
diagnostics: ts.Diagnostic[];
|
|
13
|
-
}
|
|
14
|
-
export type Checkpoint = CheckpointData | null;
|
|
15
|
-
export declare function runCheckpoint(
|
|
16
|
-
projectDir: string,
|
|
17
|
-
oldProgram?: ts.EmitAndSemanticDiagnosticsBuilderProgram,
|
|
18
|
-
): Checkpoint;
|
|
19
|
-
export declare function filterDiagnostic(c: ts.Diagnostic): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Given a new list of diagnostics and a baseline list, filter out diagnostics
|
|
22
|
-
* that were already present in the baseline.
|
|
23
|
-
*/
|
|
24
|
-
export declare function filterBaselineDiagnostics(
|
|
25
|
-
baselineFingerprints: Set<string>,
|
|
26
|
-
checkpoint: Checkpoint,
|
|
27
|
-
): ts.Diagnostic[];
|
|
28
|
-
export declare function createFingerprintSet(
|
|
29
|
-
checkpoint: Checkpoint,
|
|
30
|
-
): Set<string>;
|
|
31
|
-
/**
|
|
32
|
-
* Pretty prints diagnostics as a plain text string.
|
|
33
|
-
*
|
|
34
|
-
* @param diagnostics - An array of ts.Diagnostic objects.
|
|
35
|
-
* @returns A formatted string that describes the diagnostics.
|
|
36
|
-
*/
|
|
37
|
-
export declare function prettyPrintDiagnostics(
|
|
38
|
-
diagnostics: ts.Diagnostic[],
|
|
39
|
-
): string;
|
|
40
|
-
export declare function prettyPrintDiagnosticsWithContext(
|
|
41
|
-
diagnostics: ts.Diagnostic[],
|
|
42
|
-
): string;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
export interface CLIArgs {
|
|
2
|
-
/** Figma access token */
|
|
3
|
-
figmaToken?: string;
|
|
4
|
-
/** GitHub access token */
|
|
5
|
-
githubToken?: string;
|
|
6
|
-
/** Run in CI mode without interactive prompts */
|
|
7
|
-
ci?: boolean;
|
|
8
|
-
/** Show help text */
|
|
9
|
-
help?: boolean;
|
|
10
|
-
/** Force operation even if there are warnings */
|
|
11
|
-
force?: boolean;
|
|
12
|
-
/** Print output as JSON */
|
|
13
|
-
verbose?: boolean;
|
|
14
|
-
/** Run in dry-run mode without making changes */
|
|
15
|
-
dryrun?: boolean;
|
|
16
|
-
/** Auto-confirm all prompts */
|
|
17
|
-
yes?: boolean;
|
|
18
|
-
/** Builder.io space ID */
|
|
19
|
-
spaceId?: string;
|
|
20
|
-
/** Component name to use */
|
|
21
|
-
componentName?: string;
|
|
22
|
-
/** Mapping directory to use */
|
|
23
|
-
mappingOutput?: string;
|
|
24
|
-
/** Skip package installation step */
|
|
25
|
-
skipInstallation?: boolean;
|
|
26
|
-
/** Skip detailed grouping in repo indexing */
|
|
27
|
-
skipDetailedGrouping?: boolean;
|
|
28
|
-
/** Skip display of header in repo indexing */
|
|
29
|
-
skipHeader?: boolean;
|
|
30
|
-
/** NPM package name to index */
|
|
31
|
-
designSystemPackage?: string;
|
|
32
|
-
/**
|
|
33
|
-
* A user-friendly design system name to index.
|
|
34
|
-
*
|
|
35
|
-
* This can be used in conjunction with designSystemPackage to index components
|
|
36
|
-
* where the design system name is different than the npm package name.
|
|
37
|
-
* Example: --designSystemPackage=@adobe/react-spectrum --designSystemName="Adobe React Spectrum"
|
|
38
|
-
*
|
|
39
|
-
* This flag can also be used with includeDirectories to specify a name for design systems
|
|
40
|
-
* that are not npm packages.
|
|
41
|
-
* Example: --includeDirectories="path/to/swift/ui/components" --designSystemName="Native UI"
|
|
42
|
-
**/
|
|
43
|
-
designSystemName?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Comma separated string of directories to look in for repo indexing.
|
|
46
|
-
* Use this when component implementations live in a different place
|
|
47
|
-
* than the workspace package you are indexing.
|
|
48
|
-
* Example: --includeDirectories "packages/foo, packages/bar"
|
|
49
|
-
**/
|
|
50
|
-
includeDirectories?: string;
|
|
51
|
-
/** Token to use for figma */
|
|
52
|
-
token?: string;
|
|
53
|
-
/** Url to start from */
|
|
54
|
-
url?: string;
|
|
55
|
-
/** Node ID from Figma URL */
|
|
56
|
-
nodeId?: string;
|
|
57
|
-
/** Prompt text for non-interactive mode */
|
|
58
|
-
prompt?: string;
|
|
59
|
-
/** Generation mode */
|
|
60
|
-
mode?: "quality" | "quality-v3";
|
|
61
|
-
/** Working directory to run commands from */
|
|
62
|
-
cwd?: string;
|
|
63
|
-
/** Debug mode */
|
|
64
|
-
debug?: boolean;
|
|
65
|
-
/** Raw command line arguments */
|
|
66
|
-
_: string[];
|
|
67
|
-
/** Builder private key, used for authentication. */
|
|
68
|
-
builderPrivateKey?: string;
|
|
69
|
-
/** Builder public key, used for authentication. */
|
|
70
|
-
builderPublicKey?: string;
|
|
71
|
-
/** Builder user ID, used for authentication. */
|
|
72
|
-
builderUserId?: string;
|
|
73
|
-
/** Path to workspace configuration file */
|
|
74
|
-
workspace?: string;
|
|
75
|
-
/** Output structured JSON data instead of human-readable logs */
|
|
76
|
-
jsonOutput?: boolean;
|
|
77
|
-
/** Local mode */
|
|
78
|
-
local?: boolean;
|
|
79
|
-
/** Inlined to builder.config.json file */
|
|
80
|
-
configJson?: string;
|
|
81
|
-
/** Server URL */
|
|
82
|
-
serverUrl?: string;
|
|
83
|
-
/** Remove all mappings from the space, publishing zero mappings even if mapper files exist */
|
|
84
|
-
clearMappings?: boolean;
|
|
85
|
-
/** Enabled tools, list of strings separated by commas */
|
|
86
|
-
enabledTools?: string;
|
|
87
|
-
/** If true run brief indexing before running code generation */
|
|
88
|
-
index?: boolean;
|
|
89
|
-
/** If true list indexed repositories */
|
|
90
|
-
listIndexedRepos?: boolean;
|
|
91
|
-
/** Disable MCP support */
|
|
92
|
-
disableMcp?: boolean;
|
|
93
|
-
/** Enable privacy mode for codegen */
|
|
94
|
-
privacyMode?: boolean;
|
|
95
|
-
/** Clear all stored credentials (logout) */
|
|
96
|
-
reset?: boolean;
|
|
97
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import type { CLIArgs } from "./index";
|
|
3
|
-
import { type Credentials } from "./credentials";
|
|
4
|
-
export declare const runCodeIndexing: (
|
|
5
|
-
_sys: DevToolsSys,
|
|
6
|
-
_args: CLIArgs,
|
|
7
|
-
) => Promise<void>;
|
|
8
|
-
export declare const codeIndexing: (
|
|
9
|
-
sys: DevToolsSys,
|
|
10
|
-
credentials: Credentials,
|
|
11
|
-
) => Promise<void>;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
import {
|
|
3
|
-
type FusionConfig,
|
|
4
|
-
type WorkspaceFolder,
|
|
5
|
-
type InitState,
|
|
6
|
-
type InitStateStep,
|
|
7
|
-
type InitStatusLog,
|
|
8
|
-
} from "$/ai-utils";
|
|
9
|
-
type ValidatedWorkspaceFolder = WorkspaceFolder &
|
|
10
|
-
Required<Pick<WorkspaceFolder, "name" | "path">>;
|
|
11
|
-
type WorkspaceFolderWithRepoInfo = ValidatedWorkspaceFolder &
|
|
12
|
-
Required<Pick<WorkspaceFolder, "repoName" | "repoUrl">>;
|
|
13
|
-
import type { Credentials } from "../credentials";
|
|
14
|
-
import { type GitBackupDownloadResult } from "../backup";
|
|
15
|
-
export interface InitConfig {
|
|
16
|
-
fusionConfig: FusionConfig;
|
|
17
|
-
credentials: Credentials;
|
|
18
|
-
sys: DevToolsSys;
|
|
19
|
-
debug?: boolean;
|
|
20
|
-
sentryTags?: Record<string, string>;
|
|
21
|
-
}
|
|
22
|
-
export interface InitStatus {
|
|
23
|
-
message: string;
|
|
24
|
-
error?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare class InitStateMachine {
|
|
27
|
-
logIdCounter: number;
|
|
28
|
-
initStatusLogs: InitStatusLog[];
|
|
29
|
-
sys: DevToolsSys;
|
|
30
|
-
config: InitConfig;
|
|
31
|
-
debug: boolean;
|
|
32
|
-
initState: InitState;
|
|
33
|
-
constructor(config: InitConfig);
|
|
34
|
-
checkout(branchName: string, ref: string, repoPath: string): Promise<boolean>;
|
|
35
|
-
execAsync(
|
|
36
|
-
exec: string,
|
|
37
|
-
args: string[],
|
|
38
|
-
cwd?: string,
|
|
39
|
-
retry?: number,
|
|
40
|
-
): Promise<string>;
|
|
41
|
-
git(args: string[], cwd?: string, retry?: number): Promise<string>;
|
|
42
|
-
performBackup({
|
|
43
|
-
sys,
|
|
44
|
-
credentials,
|
|
45
|
-
fusionConfig,
|
|
46
|
-
volumePath,
|
|
47
|
-
repositories,
|
|
48
|
-
isConnectedToProvider,
|
|
49
|
-
forcedFullBackup,
|
|
50
|
-
}: {
|
|
51
|
-
sys: DevToolsSys;
|
|
52
|
-
credentials: Credentials;
|
|
53
|
-
fusionConfig: FusionConfig;
|
|
54
|
-
volumePath: string;
|
|
55
|
-
repositories: ValidatedWorkspaceFolder[];
|
|
56
|
-
isConnectedToProvider: boolean;
|
|
57
|
-
forcedFullBackup: boolean;
|
|
58
|
-
}): Promise<void>;
|
|
59
|
-
performRegularBackup(
|
|
60
|
-
args: Omit<
|
|
61
|
-
Parameters<typeof this.performBackup>[0],
|
|
62
|
-
"isConnectedToProvider" | "forcedFullBackup"
|
|
63
|
-
>,
|
|
64
|
-
): Promise<void>;
|
|
65
|
-
performOfflineBackup(
|
|
66
|
-
args: Omit<
|
|
67
|
-
Parameters<typeof this.performBackup>[0],
|
|
68
|
-
"isConnectedToProvider" | "forcedFullBackup"
|
|
69
|
-
>,
|
|
70
|
-
): Promise<void>;
|
|
71
|
-
performForcedFullBackup(
|
|
72
|
-
args: Omit<
|
|
73
|
-
Parameters<typeof this.performBackup>[0],
|
|
74
|
-
"isConnectedToProvider" | "forcedFullBackup"
|
|
75
|
-
>,
|
|
76
|
-
): Promise<void>;
|
|
77
|
-
init(): Promise<boolean>;
|
|
78
|
-
addInitLog(
|
|
79
|
-
type: "status" | "log" | "error" | "complete",
|
|
80
|
-
message: string,
|
|
81
|
-
options?: {
|
|
82
|
-
step?: InitStateStep;
|
|
83
|
-
error?: string;
|
|
84
|
-
success?: boolean;
|
|
85
|
-
},
|
|
86
|
-
): void;
|
|
87
|
-
clearInitLogs(): void;
|
|
88
|
-
hasFilesButNoGit(repoPath: string): Promise<boolean>;
|
|
89
|
-
step1CheckDirectories(
|
|
90
|
-
volumePath: string,
|
|
91
|
-
repositories: ValidatedWorkspaceFolder[],
|
|
92
|
-
): Promise<void>;
|
|
93
|
-
step2ConfigureGitRepositories(
|
|
94
|
-
volumePath: string,
|
|
95
|
-
repositories: ValidatedWorkspaceFolder[],
|
|
96
|
-
): Promise<void>;
|
|
97
|
-
step3ConfigureGitUser(
|
|
98
|
-
volumePath: string,
|
|
99
|
-
repositories: ValidatedWorkspaceFolder[],
|
|
100
|
-
): Promise<void>;
|
|
101
|
-
step4StashChanges(
|
|
102
|
-
volumePath: string,
|
|
103
|
-
repositories: ValidatedWorkspaceFolder[],
|
|
104
|
-
): Promise<void>;
|
|
105
|
-
step5CollectRepoInfo(
|
|
106
|
-
config: InitConfig,
|
|
107
|
-
volumePath: string,
|
|
108
|
-
repositories: ValidatedWorkspaceFolder[],
|
|
109
|
-
): Promise<void>;
|
|
110
|
-
private isGitConfigured;
|
|
111
|
-
private getGitRemoteUrl;
|
|
112
|
-
private sanitizeGitRemoteUrl;
|
|
113
|
-
private cleanupLockFiles;
|
|
114
|
-
validateGitRepo(repoPath: string): Promise<void>;
|
|
115
|
-
private restoreFromPartialBackup;
|
|
116
|
-
private initializeGitRepo;
|
|
117
|
-
private refreshRepoConfig;
|
|
118
|
-
runInitializationCommand({
|
|
119
|
-
repo,
|
|
120
|
-
tempCloningDir,
|
|
121
|
-
repoPath,
|
|
122
|
-
initCommand,
|
|
123
|
-
}: {
|
|
124
|
-
repo: ValidatedWorkspaceFolder;
|
|
125
|
-
tempCloningDir: string;
|
|
126
|
-
repoPath: string;
|
|
127
|
-
initCommand: string;
|
|
128
|
-
}): Promise<{
|
|
129
|
-
outcome: boolean;
|
|
130
|
-
error?: Error;
|
|
131
|
-
}>;
|
|
132
|
-
cloneRepository({
|
|
133
|
-
repo,
|
|
134
|
-
repoPath,
|
|
135
|
-
backupResult,
|
|
136
|
-
}: {
|
|
137
|
-
repo: WorkspaceFolderWithRepoInfo;
|
|
138
|
-
repoPath: string;
|
|
139
|
-
backupResult: GitBackupDownloadResult | undefined;
|
|
140
|
-
}): Promise<boolean>;
|
|
141
|
-
}
|
|
142
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type FusionConfig } from "$/ai-utils";
|
|
2
|
-
import type { LaunchArgs } from "../launch";
|
|
3
|
-
import type { DevToolsSys } from "../../types";
|
|
4
|
-
export declare function getFusionConfig(
|
|
5
|
-
sys: DevToolsSys,
|
|
6
|
-
args: LaunchArgs,
|
|
7
|
-
): Promise<FusionConfig>;
|
|
8
|
-
export declare function saveFusionConfig(
|
|
9
|
-
sys: DevToolsSys,
|
|
10
|
-
fusionConfig: FusionConfig,
|
|
11
|
-
): Promise<void>;
|
|
12
|
-
export declare function trackConfigData(
|
|
13
|
-
sys: DevToolsSys,
|
|
14
|
-
fusionConfig: FusionConfig,
|
|
15
|
-
): void;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
import type { ProxyMiddleware } from "../../types/proxy-middleware";
|
|
3
|
-
import type {
|
|
4
|
-
DevCommandState,
|
|
5
|
-
EnvironmentVariable,
|
|
6
|
-
HttpServerState,
|
|
7
|
-
SetupCommandResult,
|
|
8
|
-
} from "$/ai-utils";
|
|
9
|
-
import EventEmitter from "events";
|
|
10
|
-
import { ChildProcess } from "node:child_process";
|
|
11
|
-
import type { FusionConfig, SetupCommandState } from "$/ai-utils";
|
|
12
|
-
export type DevServerState = Exclude<
|
|
13
|
-
SetupCommandState | DevCommandState,
|
|
14
|
-
"installed" | "starting"
|
|
15
|
-
>;
|
|
16
|
-
export interface DevCommandProcess {
|
|
17
|
-
type: "devCommandProcess";
|
|
18
|
-
getPid: () => number | undefined;
|
|
19
|
-
getExitCode: () => number | null;
|
|
20
|
-
kill: (signal?: NodeJS.Signals) => boolean;
|
|
21
|
-
onSpawn: (listener: () => void) => void;
|
|
22
|
-
onError: (listener: (err: Error) => void) => void;
|
|
23
|
-
onClose: (
|
|
24
|
-
listener: (code: number | null, signal: NodeJS.Signals | null) => void,
|
|
25
|
-
) => void;
|
|
26
|
-
stdout: {
|
|
27
|
-
on: (event: "data", callback: (data: Buffer) => void) => void;
|
|
28
|
-
};
|
|
29
|
-
stderr: {
|
|
30
|
-
on: (event: "data", callback: (data: Buffer) => void) => void;
|
|
31
|
-
};
|
|
32
|
-
removeAllListeners: () => void;
|
|
33
|
-
}
|
|
34
|
-
export interface DevCommandProcessOptions {
|
|
35
|
-
command: string;
|
|
36
|
-
shell: string;
|
|
37
|
-
cwd: string | undefined;
|
|
38
|
-
env: Record<string, string>;
|
|
39
|
-
}
|
|
40
|
-
export interface DevServerOrchestrator {
|
|
41
|
-
devCommand: string;
|
|
42
|
-
setupCommand: string | undefined;
|
|
43
|
-
setupState: SetupCommandState;
|
|
44
|
-
lastServerBody: string | undefined;
|
|
45
|
-
lastServerStatus: number | undefined;
|
|
46
|
-
devState: DevCommandState;
|
|
47
|
-
httpServerState: HttpServerState;
|
|
48
|
-
state: DevServerState;
|
|
49
|
-
proxyTarget: string | undefined;
|
|
50
|
-
proxyPort: number | undefined;
|
|
51
|
-
environmentVariables: EnvironmentVariable[];
|
|
52
|
-
envVars: Record<string, string>;
|
|
53
|
-
proxyMiddleware: ProxyMiddleware | undefined;
|
|
54
|
-
pid: number | undefined;
|
|
55
|
-
autoDetectedUrl: string | undefined;
|
|
56
|
-
abortSetupCommand: () => void;
|
|
57
|
-
clearEnvVariables: () => void;
|
|
58
|
-
setEnvVariable: (key: string, value: string | undefined) => boolean;
|
|
59
|
-
ensureDevCommand: (abortSignal?: AbortSignal) => Promise<boolean>;
|
|
60
|
-
ensureSetupCommand: (abortSignal?: AbortSignal) => Promise<boolean>;
|
|
61
|
-
setupCommandPromise: Promise<SetupCommandResult> | undefined;
|
|
62
|
-
runSetupCommand: (signal?: AbortSignal) => Promise<SetupCommandResult>;
|
|
63
|
-
setSetupCommand: (
|
|
64
|
-
newCommand: string | undefined,
|
|
65
|
-
forceRestart?: boolean,
|
|
66
|
-
signal?: AbortSignal,
|
|
67
|
-
) => Promise<SetupCommandResult | null>;
|
|
68
|
-
setDevCommand: (
|
|
69
|
-
newCommand: string | undefined,
|
|
70
|
-
forceRestart?: boolean,
|
|
71
|
-
signal?: AbortSignal,
|
|
72
|
-
) => Promise<boolean>;
|
|
73
|
-
setProxyServer: (newProxyServer: string) => Promise<boolean>;
|
|
74
|
-
setPort: (newPort: number) => Promise<boolean>;
|
|
75
|
-
addCheckpoint: () => void;
|
|
76
|
-
getOpenPorts: () => Promise<number[]>;
|
|
77
|
-
getCheckpoints: (n: number, mode: "all" | "out" | "err") => string;
|
|
78
|
-
getAllStdout: () => string;
|
|
79
|
-
getAllStderr: () => string;
|
|
80
|
-
getOutput: () => string;
|
|
81
|
-
getSetupWrite: () => string;
|
|
82
|
-
getDevWrite: () => string;
|
|
83
|
-
getSetupOutput: () => string;
|
|
84
|
-
waitUntilIdle: (initialWaitMs?: number, idleTimeMs?: number) => Promise<void>;
|
|
85
|
-
onClose: (callback: (code: number | null) => void) => void;
|
|
86
|
-
restart: (abortSignal?: AbortSignal) => Promise<void>;
|
|
87
|
-
emitter: EventEmitter<{
|
|
88
|
-
close: [number | null];
|
|
89
|
-
stdout: [string];
|
|
90
|
-
stderr: [string];
|
|
91
|
-
installStdout: [string];
|
|
92
|
-
installStderr: [string];
|
|
93
|
-
setupState: [SetupCommandState];
|
|
94
|
-
devState: [DevCommandState];
|
|
95
|
-
httpServerState: [HttpServerState];
|
|
96
|
-
urlDetected: [string];
|
|
97
|
-
}>;
|
|
98
|
-
close: () => Promise<void>;
|
|
99
|
-
}
|
|
100
|
-
export declare const importPty: (
|
|
101
|
-
sys: DevToolsSys,
|
|
102
|
-
) => typeof import("@lydell/node-pty") | undefined;
|
|
103
|
-
export declare function devServerOrchestrator(
|
|
104
|
-
sys: DevToolsSys,
|
|
105
|
-
fusionConfig: FusionConfig,
|
|
106
|
-
initialSetupState: "installed" | "not-installed" | "install-failed" | "unset",
|
|
107
|
-
): Promise<DevServerOrchestrator>;
|
|
108
|
-
export declare const checkPortsListenedByPid: (pid: number) => number[];
|
|
109
|
-
export declare function killProcess(
|
|
110
|
-
sys: DevToolsSys,
|
|
111
|
-
proc: ChildProcess | DevCommandProcess | undefined,
|
|
112
|
-
abortSignal?: AbortSignal,
|
|
113
|
-
timeout?: number,
|
|
114
|
-
): Promise<boolean>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type InitConfig } from "./InitStateMachine";
|
|
2
|
-
import type { InitState } from "$/ai-utils";
|
|
3
|
-
export declare const attemptDryRunBackupGit: (
|
|
4
|
-
initConfig: InitConfig,
|
|
5
|
-
realInitState: InitState,
|
|
6
|
-
) => Promise<
|
|
7
|
-
| {
|
|
8
|
-
success: boolean;
|
|
9
|
-
error: string;
|
|
10
|
-
}
|
|
11
|
-
| {
|
|
12
|
-
error?: undefined;
|
|
13
|
-
success: boolean;
|
|
14
|
-
}
|
|
15
|
-
| null
|
|
16
|
-
>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const isGitHubAuthError: (errorMessage: string) => boolean;
|
|
2
|
-
export declare const getGitHubAuthErrorMessage: (
|
|
3
|
-
repoName: string,
|
|
4
|
-
hasGhToken: boolean,
|
|
5
|
-
) => string;
|
|
6
|
-
export declare const getUserMessageForNpmInstallErrors: (
|
|
7
|
-
errorOutput: string,
|
|
8
|
-
) => string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const getKVHiddenComment: (key: string, value: string) => string;
|
|
2
|
-
export declare const getPreviewUrl: (
|
|
3
|
-
projectId: string,
|
|
4
|
-
branchName: string,
|
|
5
|
-
) => string;
|
|
6
|
-
export declare const getInitialDescription: (
|
|
7
|
-
projectId: string,
|
|
8
|
-
branchName: string,
|
|
9
|
-
) => string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { FusionMetrics } from "$/ai-utils";
|
|
2
|
-
import type { Credentials } from "../credentials";
|
|
3
|
-
import type { DevToolsSys } from "../../types";
|
|
4
|
-
export declare function pushMetrics(
|
|
5
|
-
sys: DevToolsSys,
|
|
6
|
-
credentials: Credentials,
|
|
7
|
-
body: FusionMetrics,
|
|
8
|
-
): Promise<void>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { FusionConfig } from "$/ai-utils";
|
|
2
|
-
import type { DevToolsSys } from "../../types";
|
|
3
|
-
export declare const getTempFolder: () => string;
|
|
4
|
-
export declare const cleanupTempFolder: () => boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Detects if a command is multi-line (contains newlines)
|
|
7
|
-
*/
|
|
8
|
-
export declare const isMultiLineCommand: (command: string) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Creates a temporary script file for multi-line commands
|
|
11
|
-
*/
|
|
12
|
-
export declare const createTempScript: (
|
|
13
|
-
command: string,
|
|
14
|
-
shell: string,
|
|
15
|
-
) => string;
|
|
16
|
-
/**
|
|
17
|
-
* Cleans up a temporary script file
|
|
18
|
-
*/
|
|
19
|
-
export declare const cleanupTempScript: (scriptPath: string) => void;
|
|
20
|
-
export declare const getCommandWithShellArgs: (
|
|
21
|
-
command: string,
|
|
22
|
-
shell: string,
|
|
23
|
-
) => string[];
|
|
24
|
-
export declare const isInRemoteContainer: () => boolean;
|
|
25
|
-
export declare const getVolumePath: (fusionConfig: FusionConfig) => string;
|
|
26
|
-
export declare function computeAIBranchName(
|
|
27
|
-
featureBranch: string,
|
|
28
|
-
sessionId: string,
|
|
29
|
-
): string;
|
|
30
|
-
export declare const getAndParseGitRepoInfo: ({
|
|
31
|
-
sys,
|
|
32
|
-
gitWorkingDirectory,
|
|
33
|
-
strict,
|
|
34
|
-
}: {
|
|
35
|
-
sys: DevToolsSys;
|
|
36
|
-
gitWorkingDirectory: string;
|
|
37
|
-
strict: boolean;
|
|
38
|
-
}) => Promise<{
|
|
39
|
-
currentBranch: string;
|
|
40
|
-
featureBranch: string;
|
|
41
|
-
sessionId: string | undefined;
|
|
42
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
import type { Credentials } from "../credentials";
|
|
3
|
-
import type { FusionConfig, LaunchServerStatus } from "$/ai-utils";
|
|
4
|
-
interface FusionStatusMonitor {
|
|
5
|
-
start: () => void;
|
|
6
|
-
stop: () => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Creates a fusion status monitor that pings the status endpoint periodically
|
|
10
|
-
*/
|
|
11
|
-
export declare function createFusionStatusMonitor(
|
|
12
|
-
sys: DevToolsSys,
|
|
13
|
-
credentials: Credentials,
|
|
14
|
-
fusionConfig: FusionConfig,
|
|
15
|
-
sharedState: LaunchServerStatus,
|
|
16
|
-
): FusionStatusMonitor | null;
|
|
17
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Express } from "express";
|
|
2
|
-
import type { LaunchServerStatus } from "$/ai-utils";
|
|
3
|
-
export declare const BUILDER_ENDPOINT_PREFIX = "/_builder.io";
|
|
4
|
-
export declare const BUILDER_API_ENDPOINT_PREFIX: string;
|
|
5
|
-
/**
|
|
6
|
-
* Endpoints that are not authenticated because they are used by the fly.io health check.
|
|
7
|
-
*/
|
|
8
|
-
export declare const NON_AUTHENTICATED_ENDPOINTS: {
|
|
9
|
-
readonly STATUS: "/status";
|
|
10
|
-
readonly PROXY_STATUS: "/proxy-status";
|
|
11
|
-
readonly STATUS_V2: "/status-v2";
|
|
12
|
-
readonly INIT_LOGS: "/init-logs";
|
|
13
|
-
};
|
|
14
|
-
export declare const configureServer: ({
|
|
15
|
-
app,
|
|
16
|
-
validBuilderPrivateKey,
|
|
17
|
-
authenticateProxy,
|
|
18
|
-
isLocal,
|
|
19
|
-
sharedState,
|
|
20
|
-
}: {
|
|
21
|
-
app: Express;
|
|
22
|
-
validBuilderPrivateKey: string | undefined;
|
|
23
|
-
authenticateProxy: boolean;
|
|
24
|
-
isLocal: boolean;
|
|
25
|
-
sharedState: LaunchServerStatus;
|
|
26
|
-
}) => void;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
import type { CLIArgs } from "./index";
|
|
3
|
-
/**
|
|
4
|
-
* Large random-ish port number that is unlikely to be used
|
|
5
|
-
*/
|
|
6
|
-
export declare const PROXY_PORT = 48752;
|
|
7
|
-
export interface LaunchArgs extends CLIArgs {
|
|
8
|
-
/** Project ID for the dev server. Only needed when running in a remote container. */
|
|
9
|
-
projectId?: string;
|
|
10
|
-
/** Branch name for the dev server. Only needed when running in a remote container. */
|
|
11
|
-
branchName?: string;
|
|
12
|
-
/** Silent mode for launch command */
|
|
13
|
-
silent?: boolean;
|
|
14
|
-
/** Port number for the dev server */
|
|
15
|
-
port?: number;
|
|
16
|
-
/** Port number for the dev server (shorthand) */
|
|
17
|
-
p?: number;
|
|
18
|
-
/** Dev server command to execute */
|
|
19
|
-
command?: string;
|
|
20
|
-
/** Install command to execute */
|
|
21
|
-
installCommand?: string;
|
|
22
|
-
/** Dev server command to execute (shorthand) */
|
|
23
|
-
c?: string;
|
|
24
|
-
/** Dev server URL to proxy to (alternative to command + port) */
|
|
25
|
-
serverUrl?: string;
|
|
26
|
-
/** Use development server instead of production for launch command */
|
|
27
|
-
dev?: boolean;
|
|
28
|
-
/** Use native builder:// protocol instead of https:// */
|
|
29
|
-
app?: boolean;
|
|
30
|
-
/** Skip browser auto-open (flag form) */
|
|
31
|
-
open?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* If true, CLI will run the init command instead of the launch command.
|
|
34
|
-
*
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
|
-
fusionInit?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* If true, CLI will be interactive and prompt the user for input.
|
|
40
|
-
*
|
|
41
|
-
* @default true
|
|
42
|
-
*/
|
|
43
|
-
interactive?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Decides whether to skip authentication for the user's proxy server.
|
|
46
|
-
* Our own _builder.io/ endpoitns are always authenticated.
|
|
47
|
-
*
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
authenticateProxy?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Indicates the type of docker image the CLI is running on.
|
|
53
|
-
*
|
|
54
|
-
* @default "node"
|
|
55
|
-
*/
|
|
56
|
-
dockerImageType?: "fusion-starter" | "node";
|
|
57
|
-
/**
|
|
58
|
-
* Output structured JSON data.
|
|
59
|
-
* Useful for programmatic consumption (e.g., VSCode extensions).
|
|
60
|
-
*
|
|
61
|
-
* @default false
|
|
62
|
-
*/
|
|
63
|
-
jsonOutput?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Enable local development mode with port availability checking.
|
|
66
|
-
* When enabled, automatically finds an available port if the default is in use.
|
|
67
|
-
*
|
|
68
|
-
* @default false
|
|
69
|
-
*/
|
|
70
|
-
local?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Enable privacy mode for codegen.
|
|
73
|
-
* When enabled, encrypts sensitive data in communication with the AI service.
|
|
74
|
-
*
|
|
75
|
-
* @default false
|
|
76
|
-
*/
|
|
77
|
-
privacyMode?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Auto-detect dev server URL and port from command output.
|
|
80
|
-
* When enabled, the system will parse the dev server output to automatically
|
|
81
|
-
* detect the server URL and port instead of requiring manual configuration.
|
|
82
|
-
*
|
|
83
|
-
* @default false
|
|
84
|
-
*/
|
|
85
|
-
autoDetectDevServer?: boolean;
|
|
86
|
-
}
|
|
87
|
-
export declare function runFusionCommand({
|
|
88
|
-
sys,
|
|
89
|
-
args,
|
|
90
|
-
}: {
|
|
91
|
-
sys: DevToolsSys;
|
|
92
|
-
args: LaunchArgs;
|
|
93
|
-
}): Promise<void>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import builtInPrettier from "prettier";
|
|
2
|
-
export declare function loadPrettier(
|
|
3
|
-
absoluteFilePath: string | undefined,
|
|
4
|
-
): typeof builtInPrettier;
|
|
5
|
-
export declare function prettierFormat(
|
|
6
|
-
workingDirectory: string,
|
|
7
|
-
code: string,
|
|
8
|
-
parser: string | undefined,
|
|
9
|
-
filePath: string | undefined,
|
|
10
|
-
): Promise<string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|