@builder.io/dev-tools 1.18.11-dev.202511202319.621aec6ae → 1.18.11-dev.202511210323.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
package/types/_tests_/utils.d.ts
CHANGED
|
@@ -1,57 +1,44 @@
|
|
|
1
1
|
import { type ExpectStatic } from "vitest";
|
|
2
2
|
interface CLI {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
3
|
+
output(): string;
|
|
4
|
+
consumeOutput(): string;
|
|
5
|
+
inputText(text: string): Promise<void>;
|
|
6
|
+
inputEnter(text?: string): Promise<void>;
|
|
7
|
+
inputArrowUp(): Promise<void>;
|
|
8
|
+
inputArrowDown(): Promise<void>;
|
|
9
|
+
inputArrowRight(): Promise<void>;
|
|
10
|
+
inputArrowLeft(): Promise<void>;
|
|
11
|
+
inputCtrlC(): Promise<void>;
|
|
12
|
+
inputSpace(): Promise<void>;
|
|
13
|
+
waitUntilText(text: string, timeout?: number): Promise<void>;
|
|
14
|
+
waitUntilExit(): Promise<number>;
|
|
15
|
+
wait(ms: number): Promise<void>;
|
|
16
|
+
getProjectPath(): string;
|
|
17
|
+
writeFile(path: string, content: string): Promise<void>;
|
|
18
|
+
readFile(path: string): string;
|
|
19
|
+
exists(path: string): boolean;
|
|
20
|
+
readdir(path: string): string[];
|
|
21
|
+
fsSnapshot(path: string): Promise<Snapshot>;
|
|
22
|
+
fsDiff(oldSnap: Snapshot): Promise<{
|
|
23
|
+
added: string[];
|
|
24
|
+
removed: string[];
|
|
25
|
+
modified: string[];
|
|
26
|
+
}>;
|
|
27
|
+
npm(...args: string[]): Promise<number>;
|
|
28
|
+
spawn(command: string, args: string[]): Promise<number>;
|
|
29
29
|
}
|
|
30
|
-
export declare function testCLI(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
skip?: boolean,
|
|
36
|
-
): void;
|
|
37
|
-
type Handler = (
|
|
38
|
-
cmd: "builderio" | "create-builderio",
|
|
39
|
-
args: string[],
|
|
40
|
-
options?: {
|
|
41
|
-
debug?: boolean;
|
|
42
|
-
},
|
|
43
|
-
) => CLI;
|
|
44
|
-
export declare function createCLI(
|
|
45
|
-
template: string | undefined,
|
|
46
|
-
handler: (cli: Handler) => Promise<void>,
|
|
47
|
-
): Promise<void>;
|
|
30
|
+
export declare function testCLI(name: string, template: string | undefined, handler: (cli: Handler, expect: ExpectStatic) => Promise<void>, timeout?: number, skip?: boolean): void;
|
|
31
|
+
type Handler = (cmd: "builderio" | "create-builderio", args: string[], options?: {
|
|
32
|
+
debug?: boolean;
|
|
33
|
+
}) => CLI;
|
|
34
|
+
export declare function createCLI(template: string | undefined, handler: (cli: Handler) => Promise<void>): Promise<void>;
|
|
48
35
|
/**
|
|
49
36
|
* A snapshot maps a file's relative path to its hash.
|
|
50
37
|
*/
|
|
51
38
|
type Snapshot = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
39
|
+
cwd: string;
|
|
40
|
+
hashes: {
|
|
41
|
+
[file: string]: string;
|
|
42
|
+
};
|
|
56
43
|
};
|
|
57
44
|
export {};
|
package/types/cli/auth/auth.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../../types";
|
|
2
2
|
import type { CLIArgs } from "../index";
|
|
3
|
-
export declare const runAuthCommand: (
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
subCommand: string,
|
|
6
|
-
args: CLIArgs,
|
|
7
|
-
) => Promise<void>;
|
|
3
|
+
export declare const runAuthCommand: (sys: DevToolsSys, subCommand: string, args: CLIArgs) => Promise<void>;
|
package/types/cli/backup.d.ts
CHANGED
|
@@ -1,32 +1,23 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../types";
|
|
2
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";
|
|
3
|
+
import { type GitBackupUploadUrlResult, type GitBackupUploadUrlOptions, type GitBackupRecordOptions, type GitBackupRecordResult, type BackupMetadata, type WorkspaceConfiguration, type CodegenRuntimeStatus, type BackupGitRepoResult } from "$/ai-utils";
|
|
13
4
|
interface BackupGitRepoOptions {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
5
|
+
sys: DevToolsSys;
|
|
6
|
+
credentials: Credentials;
|
|
7
|
+
projectId: string;
|
|
8
|
+
branchName: string;
|
|
9
|
+
repoPath: string;
|
|
10
|
+
aiBranch: string;
|
|
11
|
+
featureBranch: string;
|
|
12
|
+
workspace: WorkspaceConfiguration | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* If true, the system is connected to the git provider.
|
|
15
|
+
* If false, the system is offline and will not fetch any branches from origin.
|
|
16
|
+
*/
|
|
17
|
+
isConnectedToProvider: boolean;
|
|
18
|
+
debug: boolean;
|
|
19
|
+
forcedFullBackup: boolean;
|
|
20
|
+
canAbortMerge: boolean;
|
|
30
21
|
}
|
|
31
22
|
/**
|
|
32
23
|
* Creates a backup of git repository changes made by the AI system.
|
|
@@ -40,33 +31,18 @@ interface BackupGitRepoOptions {
|
|
|
40
31
|
* The aiBranch is where the AI creates commits as work progresses, while featureBranch
|
|
41
32
|
* is the base branch where work started (usually "main").
|
|
42
33
|
*/
|
|
43
|
-
export declare function backupGitRepo({
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
};
|
|
34
|
+
export declare function backupGitRepo({ sys, credentials, projectId, branchName, repoPath, aiBranch, featureBranch, workspace, isConnectedToProvider, debug, forcedFullBackup, canAbortMerge, }: BackupGitRepoOptions): Promise<BackupGitRepoResult>;
|
|
35
|
+
type InitialCommitHashResult = {
|
|
36
|
+
initialBranch: string;
|
|
37
|
+
initialCommitHash: string | undefined;
|
|
38
|
+
partial: false;
|
|
39
|
+
forcedFullBackup: true;
|
|
40
|
+
} | {
|
|
41
|
+
initialBranch: string;
|
|
42
|
+
initialCommitHash: string;
|
|
43
|
+
partial: boolean;
|
|
44
|
+
forcedFullBackup: false;
|
|
45
|
+
};
|
|
70
46
|
/**
|
|
71
47
|
* Determines the initial commit hash and whether to create a partial or full backup.
|
|
72
48
|
*
|
|
@@ -77,96 +53,66 @@ type InitialCommitHashResult =
|
|
|
77
53
|
* For partial backups, we fetch the latest state of the chosen upstream branch from origin
|
|
78
54
|
* to ensure the backup has the correct commit range reference.
|
|
79
55
|
*/
|
|
80
|
-
export declare function getInitialCommitHash({
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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;
|
|
56
|
+
export declare function getInitialCommitHash({ sys, repoPath, featureBranch, debug, workspace, isConnectedToProvider, forcedFullBackup, credentials, projectId, }: {
|
|
57
|
+
sys: DevToolsSys;
|
|
58
|
+
repoPath: string;
|
|
59
|
+
featureBranch: string;
|
|
60
|
+
debug: boolean;
|
|
61
|
+
workspace: WorkspaceConfiguration | undefined;
|
|
62
|
+
isConnectedToProvider: boolean;
|
|
63
|
+
forcedFullBackup: boolean;
|
|
64
|
+
credentials: Credentials;
|
|
65
|
+
projectId: string;
|
|
100
66
|
}): Promise<InitialCommitHashResult>;
|
|
101
67
|
/**
|
|
102
68
|
* Requests a signed upload URL for git backup
|
|
103
69
|
*/
|
|
104
|
-
export declare function requestSignedUploadUrl(
|
|
105
|
-
credentials: Credentials,
|
|
106
|
-
body: GitBackupUploadUrlOptions,
|
|
107
|
-
): Promise<GitBackupUploadUrlResult | null>;
|
|
70
|
+
export declare function requestSignedUploadUrl(credentials: Credentials, body: GitBackupUploadUrlOptions): Promise<GitBackupUploadUrlResult | null>;
|
|
108
71
|
/**
|
|
109
72
|
* Records a successful git backup in Firebase
|
|
110
73
|
*/
|
|
111
|
-
export declare function recordBackup(
|
|
112
|
-
credentials: Credentials,
|
|
113
|
-
body: GitBackupRecordOptions,
|
|
114
|
-
): Promise<GitBackupRecordResult>;
|
|
74
|
+
export declare function recordBackup(credentials: Credentials, body: GitBackupRecordOptions): Promise<GitBackupRecordResult>;
|
|
115
75
|
export interface GitBackupDownloadResultValid {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
76
|
+
success: true;
|
|
77
|
+
partial: boolean;
|
|
78
|
+
bundlePath: string | undefined;
|
|
79
|
+
bundleSize: number;
|
|
80
|
+
gitBranchName: string;
|
|
81
|
+
lastCommitHash: string;
|
|
122
82
|
}
|
|
123
83
|
export interface GitBackupDownloadResultInvalid {
|
|
124
|
-
|
|
125
|
-
|
|
84
|
+
success: false;
|
|
85
|
+
error: Error;
|
|
126
86
|
}
|
|
127
|
-
export type GitBackupDownloadResult =
|
|
128
|
-
| GitBackupDownloadResultValid
|
|
129
|
-
| GitBackupDownloadResultInvalid;
|
|
87
|
+
export type GitBackupDownloadResult = GitBackupDownloadResultValid | GitBackupDownloadResultInvalid;
|
|
130
88
|
/**
|
|
131
89
|
* Downloads a git backup bundle from remote storage.
|
|
132
90
|
* Handles both empty backups (no bundle file) and regular backups with bundle files.
|
|
133
91
|
* @returns The path to the downloaded bundle file, or undefined if it's an empty backup
|
|
134
92
|
*/
|
|
135
|
-
export declare function downloadGitBackup(
|
|
136
|
-
sys: DevToolsSys,
|
|
137
|
-
response: BackupMetadata,
|
|
138
|
-
): Promise<GitBackupDownloadResult>;
|
|
93
|
+
export declare function downloadGitBackup(sys: DevToolsSys, response: BackupMetadata): Promise<GitBackupDownloadResult>;
|
|
139
94
|
/**
|
|
140
95
|
* Uploads a file stream to a signed URL (Google Cloud Storage).
|
|
141
96
|
* Uses MD5 hash for content verification as required by GCS.
|
|
142
97
|
*/
|
|
143
|
-
export declare function uploadFileStream(
|
|
144
|
-
filePath: string,
|
|
145
|
-
signedUrl: string,
|
|
146
|
-
size: number,
|
|
147
|
-
contentMd5: string,
|
|
148
|
-
): Promise<Response>;
|
|
98
|
+
export declare function uploadFileStream(filePath: string, signedUrl: string, size: number, contentMd5: string): Promise<Response>;
|
|
149
99
|
export declare function computeMD5Hash(bundlePath: string): Promise<{
|
|
150
|
-
|
|
151
|
-
|
|
100
|
+
contentMd5: string;
|
|
101
|
+
size: number;
|
|
152
102
|
}>;
|
|
153
103
|
/**
|
|
154
104
|
* Updates the last commit hash in the database for tracking purposes.
|
|
155
105
|
* This is called frequently throughout the codebase (after every commit creation)
|
|
156
106
|
* to track the current state and determine if backups are up-to-date.
|
|
157
107
|
*/
|
|
158
|
-
export declare function setRuntimeStatus(
|
|
159
|
-
sys: DevToolsSys,
|
|
160
|
-
credentials: Credentials,
|
|
161
|
-
data: CodegenRuntimeStatus,
|
|
162
|
-
): Promise<any>;
|
|
108
|
+
export declare function setRuntimeStatus(sys: DevToolsSys, credentials: Credentials, data: CodegenRuntimeStatus): Promise<any>;
|
|
163
109
|
/**
|
|
164
110
|
* Computes a unique backup reference string that combines version, repo URL, and commit hash.
|
|
165
111
|
* This reference can be used to identify and retrieve specific backups.
|
|
166
112
|
*/
|
|
167
113
|
export declare function computeBackupRef(input: {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
114
|
+
version: string | undefined;
|
|
115
|
+
originalRepoUrl: string | undefined;
|
|
116
|
+
commitHash: string | undefined;
|
|
171
117
|
}): string | undefined;
|
|
172
118
|
export {};
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
FileNode,
|
|
4
|
-
FolderNode,
|
|
5
|
-
Snippet,
|
|
6
|
-
SyncInfo,
|
|
7
|
-
} from "../../types";
|
|
8
|
-
export declare function addCommand(
|
|
9
|
-
opts: AddCliOptions,
|
|
10
|
-
): Promise<SyncInfo | undefined>;
|
|
1
|
+
import type { AddCliOptions, FileNode, FolderNode, Snippet, SyncInfo } from "../../types";
|
|
2
|
+
export declare function addCommand(opts: AddCliOptions): Promise<SyncInfo | undefined>;
|
|
11
3
|
export declare function fetchSnippet(id: string): Promise<Snippet | null>;
|
|
12
|
-
export declare function writeFiles(
|
|
13
|
-
|
|
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;
|
|
4
|
+
export declare function writeFiles(appRootDir: string, snippet: Snippet, files: Array<FileNode | FolderNode>, rootPath: string, addSessionLink: boolean): Promise<FileNode[]>;
|
|
5
|
+
export declare function suggestRootPath(appRootDir: string, framework: string): string;
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../types";
|
|
2
2
|
import type { Credentials } from "./credentials";
|
|
3
3
|
import type { CodebaseSearchOptions, CodebaseSearchResponse } from "$/ai-utils";
|
|
4
|
-
export declare function shouldIncludeFile(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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>;
|
|
4
|
+
export declare function shouldIncludeFile(inputFile: string, ctx: {
|
|
5
|
+
foundFiles: string[];
|
|
6
|
+
allFiles: string[];
|
|
7
|
+
selectedFilePaths: Map<string, number>;
|
|
8
|
+
cwd: string;
|
|
9
|
+
appRootDir: string;
|
|
10
|
+
fallbackImportance: number | 0;
|
|
11
|
+
}): number | 0;
|
|
12
|
+
export declare function searchCodeBase(sys: DevToolsSys, credentials: Credentials, signal: AbortSignal | undefined, body: CodebaseSearchOptions): Promise<CodebaseSearchResponse | null>;
|
package/types/cli/code.d.ts
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../types";
|
|
2
2
|
import type { CLIArgs } from "./index";
|
|
3
3
|
import { type UserContext } from "$/ai-utils";
|
|
4
|
-
export declare const runCodeCommand: (
|
|
5
|
-
|
|
6
|
-
|
|
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>;
|
|
4
|
+
export declare const runCodeCommand: (sys: DevToolsSys, subCommand: string, args: CLIArgs) => Promise<void>;
|
|
5
|
+
export declare const runCodeGen: (sys: DevToolsSys, args: CLIArgs) => Promise<undefined>;
|
|
6
|
+
export declare function checkProjectRoot(sys: DevToolsSys, interactive: boolean): Promise<void>;
|
|
17
7
|
export declare function getUserContext(sys: DevToolsSys): Promise<UserContext>;
|
|
@@ -2,77 +2,61 @@ import type { DevToolsSys } from "../types";
|
|
|
2
2
|
import type { CLIArgs } from "./index";
|
|
3
3
|
import type { Feature } from "$/ai-utils";
|
|
4
4
|
export interface CredentialsOptions {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
forceSpaceId?: string;
|
|
6
|
+
builderPublicKey?: boolean;
|
|
7
|
+
builderPrivateKey?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* `always`: Figma auth will be required even if Figma credentials have already been set.
|
|
10
|
+
* `if-unset`: Figma auth will be required only if Figma credentials have not been set.
|
|
11
|
+
* `undefined` (default): Figma auth will never be required.
|
|
12
|
+
* */
|
|
13
|
+
requireFigmaAuth?: "always" | "if-unset";
|
|
14
|
+
/**
|
|
15
|
+
* If `true`, Builder.io auth will be required even if Builder.io credentials have
|
|
16
|
+
* already been set.
|
|
17
|
+
*/
|
|
18
|
+
force?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export interface FigmaAuth {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
access_token: string;
|
|
22
|
+
oauth: boolean;
|
|
23
23
|
}
|
|
24
24
|
export interface BuilderCodegenUsage {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
total: number | undefined;
|
|
26
|
+
fast: number | undefined;
|
|
27
|
+
quality: number | undefined;
|
|
28
|
+
features?: Feature[];
|
|
29
|
+
limits?: {
|
|
30
|
+
aiGeneration: number;
|
|
31
|
+
aiGenerationContextWindow: number;
|
|
32
|
+
};
|
|
33
33
|
}
|
|
34
34
|
export interface BuilderAuth {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
privateKey: string;
|
|
36
|
+
spaceId: string;
|
|
37
|
+
spaceName: string;
|
|
38
|
+
userId: string;
|
|
39
39
|
}
|
|
40
40
|
export declare const isCI: (args: CLIArgs) => boolean;
|
|
41
41
|
export interface Credentials {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
figmaAuth?: FigmaAuth;
|
|
43
|
+
builderPublicKey?: string;
|
|
44
|
+
builderPrivateKey?: string;
|
|
45
|
+
spaceName?: string;
|
|
46
|
+
userId?: string;
|
|
47
|
+
timestamp?: string;
|
|
48
48
|
}
|
|
49
|
-
export declare const readCredentials: (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
builderPrivateKey: string | undefined;
|
|
57
|
-
figmaAuth: FigmaAuth | undefined;
|
|
58
|
-
timestamp: string | undefined;
|
|
49
|
+
export declare const readCredentials: (sys: DevToolsSys, args: CLIArgs) => {
|
|
50
|
+
spaceName: string | undefined;
|
|
51
|
+
userId: string | undefined;
|
|
52
|
+
builderPublicKey: string | undefined;
|
|
53
|
+
builderPrivateKey: string | undefined;
|
|
54
|
+
figmaAuth: FigmaAuth | undefined;
|
|
55
|
+
timestamp: string | undefined;
|
|
59
56
|
};
|
|
60
|
-
export declare const getCredentials: (
|
|
61
|
-
sys: DevToolsSys,
|
|
62
|
-
args: CLIArgs,
|
|
63
|
-
opts: CredentialsOptions,
|
|
64
|
-
) => Promise<Credentials>;
|
|
57
|
+
export declare const getCredentials: (sys: DevToolsSys, args: CLIArgs, opts: CredentialsOptions) => Promise<Credentials>;
|
|
65
58
|
export declare function getFigmaAuth(sys: DevToolsSys): Promise<FigmaAuth>;
|
|
66
|
-
export declare function getBuilderCodegenUsage(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
): Promise<BuilderCodegenUsage>;
|
|
70
|
-
export declare function getBuilderAuth(
|
|
71
|
-
sys: DevToolsSys,
|
|
72
|
-
preferSpaceId?: string,
|
|
73
|
-
): Promise<BuilderAuth>;
|
|
74
|
-
export declare function storeCredentials(
|
|
75
|
-
sys: DevToolsSys,
|
|
76
|
-
credentials: Credentials,
|
|
77
|
-
): void;
|
|
59
|
+
export declare function getBuilderCodegenUsage(builderPublicKey: string, builderPrivateKey: string): Promise<BuilderCodegenUsage>;
|
|
60
|
+
export declare function getBuilderAuth(sys: DevToolsSys, preferSpaceId?: string): Promise<BuilderAuth>;
|
|
61
|
+
export declare function storeCredentials(sys: DevToolsSys, credentials: Credentials): void;
|
|
78
62
|
export declare function clearCredentials(sys: DevToolsSys): boolean;
|
package/types/cli/download.d.ts
CHANGED
|
@@ -2,14 +2,9 @@ import type { CLIArgs } from "./index";
|
|
|
2
2
|
import type { DevToolsSys } from "../types";
|
|
3
3
|
import type { FigmaBuilderLink } from "$/ai-utils";
|
|
4
4
|
interface KVGetRequest {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
privateKey: string;
|
|
6
|
+
spaceId: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const runFigmaMigrate: (
|
|
9
|
-
|
|
10
|
-
args: CLIArgs,
|
|
11
|
-
) => Promise<undefined>;
|
|
12
|
-
export declare function getBuilderSpaceFigmaLinks(
|
|
13
|
-
kvReq: KVGetRequest,
|
|
14
|
-
): Promise<FigmaBuilderLink[]>;
|
|
8
|
+
export declare const runFigmaMigrate: (sys: DevToolsSys, args: CLIArgs) => Promise<undefined>;
|
|
9
|
+
export declare function getBuilderSpaceFigmaLinks(kvReq: KVGetRequest): Promise<FigmaBuilderLink[]>;
|
|
15
10
|
export {};
|
|
@@ -2,40 +2,23 @@ import ts from "typescript";
|
|
|
2
2
|
import type { DevTools, DevToolsSys } from "../types";
|
|
3
3
|
import type { CLIArgs } from "./index";
|
|
4
4
|
import type { FigmaBuilderLink, FigmaMapperFile } from "$/ai-utils";
|
|
5
|
-
export declare const runFigmaPublish: (
|
|
6
|
-
sys: DevToolsSys,
|
|
7
|
-
args: CLIArgs,
|
|
8
|
-
) => Promise<undefined>;
|
|
5
|
+
export declare const runFigmaPublish: (sys: DevToolsSys, args: CLIArgs) => Promise<undefined>;
|
|
9
6
|
export declare const FIGMA_CONNECT_CALL = "figmaMapping";
|
|
10
|
-
export declare function findAllMappingFiles(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
| {
|
|
24
|
-
success: boolean;
|
|
25
|
-
error?: undefined;
|
|
26
|
-
}
|
|
27
|
-
>;
|
|
28
|
-
export declare function findMappingsFromFiles({
|
|
29
|
-
sys,
|
|
30
|
-
mappingFiles,
|
|
31
|
-
typeCheck,
|
|
32
|
-
}: {
|
|
33
|
-
mappingFiles: string[];
|
|
34
|
-
sys: DevToolsSys;
|
|
35
|
-
typeCheck?: boolean;
|
|
7
|
+
export declare function findAllMappingFiles(sys: DevToolsSys): Promise<string[]>;
|
|
8
|
+
export declare function setPublicKey(sys: DevToolsSys, publicKey: string, devTools: DevTools | undefined, ensureFigmaImportPage?: boolean): Promise<{
|
|
9
|
+
success: boolean;
|
|
10
|
+
error: string;
|
|
11
|
+
} | {
|
|
12
|
+
success: boolean;
|
|
13
|
+
error?: undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function findMappingsFromFiles({ sys, mappingFiles, typeCheck, }: {
|
|
16
|
+
mappingFiles: string[];
|
|
17
|
+
sys: DevToolsSys;
|
|
18
|
+
typeCheck?: boolean;
|
|
36
19
|
}): Promise<{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
20
|
+
mapperFiles: FigmaMapperFile[];
|
|
21
|
+
figmaBuilderLinks: FigmaBuilderLink[];
|
|
22
|
+
diagnostics: ts.Diagnostic[];
|
|
23
|
+
figmaLinksToResolve: string[];
|
|
41
24
|
}>;
|