@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,456 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import { type Credentials } from "./credentials";
|
|
3
|
-
import type {
|
|
4
|
-
CodegenFeedback,
|
|
5
|
-
CodeGenToolMap,
|
|
6
|
-
CodegenTurn,
|
|
7
|
-
CustomInstruction,
|
|
8
|
-
FusionConfig,
|
|
9
|
-
GenerateCompletionState,
|
|
10
|
-
GenerateCompletionStep,
|
|
11
|
-
GenerateCompletionStepGit,
|
|
12
|
-
GenerateUserMessage,
|
|
13
|
-
UserContext,
|
|
14
|
-
WorkspaceConfiguration,
|
|
15
|
-
WorkspaceFolder,
|
|
16
|
-
LoadWholeSessionOptions,
|
|
17
|
-
LoadWholeSessionResult,
|
|
18
|
-
LoadHistoryResult,
|
|
19
|
-
CodeGenMode,
|
|
20
|
-
ApplyActionsResult,
|
|
21
|
-
PrivacyMode,
|
|
22
|
-
CodeGenPosition,
|
|
23
|
-
BackupGitRepoResult,
|
|
24
|
-
PushChangesArgs,
|
|
25
|
-
CodegenApiResult,
|
|
26
|
-
CodegenApiTerminal,
|
|
27
|
-
ConfigureDevOrchestratorOpts,
|
|
28
|
-
ConfigureDevOrchestratorUpdates,
|
|
29
|
-
RepoMetrics,
|
|
30
|
-
} from "$/ai-utils";
|
|
31
|
-
import prettier from "prettier";
|
|
32
|
-
import { type FusionContext, type ToolResolution } from "./code-tools";
|
|
33
|
-
import EventEmitter from "node:events";
|
|
34
|
-
import { type RunCommandOptions } from "./utils/git";
|
|
35
|
-
export interface SessionContext {
|
|
36
|
-
sessionId: string;
|
|
37
|
-
turns: CodegenTurn[];
|
|
38
|
-
customInstructions: CustomInstruction[];
|
|
39
|
-
userContext: UserContext;
|
|
40
|
-
prettierConfig: prettier.Config | null;
|
|
41
|
-
state: GenerateCompletionState;
|
|
42
|
-
title: string | undefined;
|
|
43
|
-
beforeCommit: string | undefined;
|
|
44
|
-
createdUnixTime: number;
|
|
45
|
-
updatedUnixTime: number;
|
|
46
|
-
canLoadMore: boolean;
|
|
47
|
-
}
|
|
48
|
-
export interface CodeGenSessionOptionsBase {
|
|
49
|
-
sys: DevToolsSys;
|
|
50
|
-
credentials: Credentials;
|
|
51
|
-
position: CodeGenPosition;
|
|
52
|
-
maxTokens?: number;
|
|
53
|
-
mode: CodeGenMode;
|
|
54
|
-
privacyMode?: PrivacyMode;
|
|
55
|
-
builtInCustomInstructions?: CustomInstruction[];
|
|
56
|
-
fusionContext?: FusionContext;
|
|
57
|
-
fusionConfig?: FusionConfig;
|
|
58
|
-
workingDirectory?: string;
|
|
59
|
-
mcpServers?: boolean;
|
|
60
|
-
enabledTools?: (keyof CodeGenToolMap)[];
|
|
61
|
-
modelOverride?: string;
|
|
62
|
-
}
|
|
63
|
-
export interface CodeGenSessionOptionsSession
|
|
64
|
-
extends CodeGenSessionOptionsBase {
|
|
65
|
-
sessionOrCompletionId?: string;
|
|
66
|
-
}
|
|
67
|
-
export interface CodeGenSessionOptionsInitialUrl
|
|
68
|
-
extends CodeGenSessionOptionsBase {
|
|
69
|
-
initialUrl: string;
|
|
70
|
-
}
|
|
71
|
-
export type CodeGenSessionOptions =
|
|
72
|
-
| CodeGenSessionOptionsSession
|
|
73
|
-
| CodeGenSessionOptionsInitialUrl;
|
|
74
|
-
export type CodeGenEventEmitter = EventEmitter<{
|
|
75
|
-
step: [GenerateCompletionStep];
|
|
76
|
-
idle: [];
|
|
77
|
-
}>;
|
|
78
|
-
export declare class CodeGenSession {
|
|
79
|
-
#private;
|
|
80
|
-
constructor(options: CodeGenSessionOptions);
|
|
81
|
-
get fusionConfig(): FusionConfig | undefined;
|
|
82
|
-
get gitEnabledFolder(): WorkspaceFolder | undefined;
|
|
83
|
-
get workingDirectory(): string;
|
|
84
|
-
setPrivacyMode(privacyMode: PrivacyMode | undefined): Promise<void>;
|
|
85
|
-
initializeSession(opts?: { skipSessionLoading?: boolean }): Promise<void>;
|
|
86
|
-
loadHistory(): Promise<LoadHistoryResult>;
|
|
87
|
-
loadWholeSession(
|
|
88
|
-
opts?: LoadWholeSessionOptions,
|
|
89
|
-
): Promise<LoadWholeSessionResult>;
|
|
90
|
-
loadMoreTurns(): Promise<CodegenTurn[]>;
|
|
91
|
-
setCustomInstructions(instructions: CustomInstruction[]): void;
|
|
92
|
-
pushRepoV2(repoInfo: {
|
|
93
|
-
repoFullName: string;
|
|
94
|
-
repoUrl: string;
|
|
95
|
-
}): Promise<CodegenApiResult>;
|
|
96
|
-
zipFolder(folderName: string): Promise<string>;
|
|
97
|
-
archiveProject(): Promise<string>;
|
|
98
|
-
isIdle(): boolean;
|
|
99
|
-
needsBackup(): Promise<boolean>;
|
|
100
|
-
uploadBackup(): Promise<
|
|
101
|
-
| BackupGitRepoResult
|
|
102
|
-
| {
|
|
103
|
-
success: false;
|
|
104
|
-
error: Error;
|
|
105
|
-
}
|
|
106
|
-
>;
|
|
107
|
-
getCommitMode(): import("../../../dist/ai-utils").CommitMode;
|
|
108
|
-
pushChanges(opts: PushChangesArgs): Promise<CodegenApiResult>;
|
|
109
|
-
pullLatestFromRemote(): Promise<CodegenApiResult>;
|
|
110
|
-
abortMerge(emitStatus?: boolean): Promise<CodegenApiResult>;
|
|
111
|
-
syncChangesFromRemote(): Promise<CodegenApiResult>;
|
|
112
|
-
/**
|
|
113
|
-
* Get the current commit hash
|
|
114
|
-
*/
|
|
115
|
-
getCurrentCommitHash(): Promise<string | undefined>;
|
|
116
|
-
getCurrentBranch(): Promise<string>;
|
|
117
|
-
/**
|
|
118
|
-
* Get the feature branch name
|
|
119
|
-
*/
|
|
120
|
-
getFeatureBranch(): string;
|
|
121
|
-
/**
|
|
122
|
-
* Get the AI branch name
|
|
123
|
-
*/
|
|
124
|
-
getAiBranch(): string;
|
|
125
|
-
git(args: string[], opts?: string | RunCommandOptions): Promise<string>;
|
|
126
|
-
setDebug(debug: boolean): void;
|
|
127
|
-
createTerminal(options?: {
|
|
128
|
-
terminalId?: string;
|
|
129
|
-
title?: string;
|
|
130
|
-
cwd?: string;
|
|
131
|
-
env?: Record<string, string | undefined>;
|
|
132
|
-
cols?: number;
|
|
133
|
-
rows?: number;
|
|
134
|
-
shell?: string;
|
|
135
|
-
createdBy?: string;
|
|
136
|
-
}): CodegenApiTerminal;
|
|
137
|
-
emitTerminals(): void;
|
|
138
|
-
updateTerminal({
|
|
139
|
-
terminalId,
|
|
140
|
-
cols,
|
|
141
|
-
rows,
|
|
142
|
-
title,
|
|
143
|
-
}: {
|
|
144
|
-
terminalId: string;
|
|
145
|
-
cols?: number;
|
|
146
|
-
rows?: number;
|
|
147
|
-
title?: string;
|
|
148
|
-
}): boolean;
|
|
149
|
-
writeTerminal({
|
|
150
|
-
terminalId,
|
|
151
|
-
data,
|
|
152
|
-
}: {
|
|
153
|
-
terminalId: string;
|
|
154
|
-
data: string;
|
|
155
|
-
}): boolean;
|
|
156
|
-
signalTerminal({
|
|
157
|
-
terminalId,
|
|
158
|
-
signal,
|
|
159
|
-
}: {
|
|
160
|
-
terminalId: string;
|
|
161
|
-
signal: "SIGINT" | "SIGTERM" | "SIGKILL";
|
|
162
|
-
}): boolean;
|
|
163
|
-
disposeTerminal({ terminalId }: { terminalId: string }): boolean;
|
|
164
|
-
subscribeTerminal({
|
|
165
|
-
terminalId,
|
|
166
|
-
onData,
|
|
167
|
-
onExit,
|
|
168
|
-
}: {
|
|
169
|
-
terminalId: string;
|
|
170
|
-
onData: (chunk: string) => void;
|
|
171
|
-
onExit?: (code?: number) => void;
|
|
172
|
-
}): boolean;
|
|
173
|
-
getAllFiles(options?: {
|
|
174
|
-
getDotFiles?: boolean;
|
|
175
|
-
globbyPattern?: string;
|
|
176
|
-
includePattern?: string;
|
|
177
|
-
gitignore?: boolean;
|
|
178
|
-
}): Promise<string[]>;
|
|
179
|
-
collectRepoMetrics(): Promise<RepoMetrics>;
|
|
180
|
-
getSessionId(): string;
|
|
181
|
-
getSpaceId(): string | undefined;
|
|
182
|
-
revertToCommitHash(commitHash: string): Promise<void>;
|
|
183
|
-
resetToCommitHash(commitHash: string): Promise<void>;
|
|
184
|
-
/**
|
|
185
|
-
* Core function to restore the codebase to a state that matches a predicate.
|
|
186
|
-
* This is the main function that handles both git-based and file-based restoration.
|
|
187
|
-
*
|
|
188
|
-
* @param predicate Function that takes a turn and its index and returns true if we should restore up to that turn
|
|
189
|
-
* @param dryRun If true, only simulate the restoration without making changes
|
|
190
|
-
* @returns Array of file paths that were changed
|
|
191
|
-
*/
|
|
192
|
-
restore({
|
|
193
|
-
location,
|
|
194
|
-
predicate,
|
|
195
|
-
revert,
|
|
196
|
-
dryRun,
|
|
197
|
-
forceReplay,
|
|
198
|
-
debug,
|
|
199
|
-
}: {
|
|
200
|
-
location: "before" | "after";
|
|
201
|
-
predicate: (turn: CodegenTurn | null, index: number) => boolean;
|
|
202
|
-
dryRun?: boolean;
|
|
203
|
-
revert?: boolean;
|
|
204
|
-
forceReplay?: boolean;
|
|
205
|
-
debug?: string;
|
|
206
|
-
}): Promise<{
|
|
207
|
-
undone: string[] | null;
|
|
208
|
-
message: string;
|
|
209
|
-
}>;
|
|
210
|
-
restoreFromCompletionId({
|
|
211
|
-
location,
|
|
212
|
-
completionId,
|
|
213
|
-
forceReplay,
|
|
214
|
-
}: {
|
|
215
|
-
location: "before" | "after";
|
|
216
|
-
completionId: string;
|
|
217
|
-
forceReplay?: boolean;
|
|
218
|
-
}): Promise<{
|
|
219
|
-
undone: string[] | null;
|
|
220
|
-
message: string;
|
|
221
|
-
}>;
|
|
222
|
-
restoreBeforeCompletionId(completionId: string): Promise<{
|
|
223
|
-
undone: string[] | null;
|
|
224
|
-
message: string;
|
|
225
|
-
}>;
|
|
226
|
-
/**
|
|
227
|
-
* Undo all changes back to the last user message
|
|
228
|
-
*/
|
|
229
|
-
undoLastUserMessage(dryRun?: boolean): Promise<{
|
|
230
|
-
undone: string[] | null;
|
|
231
|
-
message: string;
|
|
232
|
-
}>;
|
|
233
|
-
getLastUserCompletionId(): string | undefined;
|
|
234
|
-
getLastCompletionId(): string | undefined;
|
|
235
|
-
getCurrentState(): GenerateCompletionState;
|
|
236
|
-
getLastApplyResultsTurn(): CodegenTurn | undefined;
|
|
237
|
-
getLastTurn(): CodegenTurn | undefined;
|
|
238
|
-
getNextUrl(): string | undefined;
|
|
239
|
-
getNextMessage(): {
|
|
240
|
-
shouldWait: boolean;
|
|
241
|
-
promise: Promise<GenerateUserMessage | undefined>;
|
|
242
|
-
};
|
|
243
|
-
sendFeedback(feedback: Partial<CodegenFeedback>): Promise<void>;
|
|
244
|
-
lastTurnHasChanges(): Promise<boolean>;
|
|
245
|
-
waitUntilState(
|
|
246
|
-
state: GenerateCompletionState,
|
|
247
|
-
timeout?: number,
|
|
248
|
-
): Promise<void>;
|
|
249
|
-
clearSession(): Promise<void>;
|
|
250
|
-
sendMessage(message: GenerateUserMessage, immediate?: boolean): Promise<void>;
|
|
251
|
-
getTurns(): CodegenTurn[];
|
|
252
|
-
getSessionContext(): SessionContext;
|
|
253
|
-
runSetupCommand(): Promise<
|
|
254
|
-
import("../../../dist/ai-utils").SetupCommandResult | undefined
|
|
255
|
-
>;
|
|
256
|
-
abortSetupCommand(): void;
|
|
257
|
-
toolsRunning(): boolean;
|
|
258
|
-
abortAllTools(): void;
|
|
259
|
-
/**
|
|
260
|
-
* Fulfil a pending tool call (usually AskUser or any passThrough tool)
|
|
261
|
-
* Exposed via websocket as `toolFullfilment` for the Builder UI to send back
|
|
262
|
-
* the user's response.
|
|
263
|
-
*/
|
|
264
|
-
toolFullfilment(id: string, result: ToolResolution | string): boolean;
|
|
265
|
-
fulfillToolCall(id: string, result: ToolResolution): boolean;
|
|
266
|
-
abortToolCall(id: string): boolean;
|
|
267
|
-
acceptCode(): Promise<void>;
|
|
268
|
-
abort(cleanCurrentMessage?: boolean): Promise<boolean>;
|
|
269
|
-
stopEventLoop(): Promise<void>;
|
|
270
|
-
requestRefresh(): void;
|
|
271
|
-
configureDevOrchestrator(
|
|
272
|
-
opts: ConfigureDevOrchestratorOpts,
|
|
273
|
-
): Promise<ConfigureDevOrchestratorUpdates>;
|
|
274
|
-
close(uploadGitBackup?: boolean): Promise<void>;
|
|
275
|
-
emitGitStatus(): Promise<GenerateCompletionStepGit | null>;
|
|
276
|
-
manualCommit(options: { add: string; commitMessage: string }): Promise<void>;
|
|
277
|
-
connectToEventLoop(
|
|
278
|
-
shouldReplay: boolean,
|
|
279
|
-
onStep: (step: GenerateCompletionStep) => void,
|
|
280
|
-
): () => void;
|
|
281
|
-
waitUntilIdle(): Promise<void>;
|
|
282
|
-
waitForEventLoop(): Promise<void>;
|
|
283
|
-
commitWorkInProgress(
|
|
284
|
-
lastTurn: CodegenTurn,
|
|
285
|
-
changedFiles: string[],
|
|
286
|
-
): Promise<string | false | undefined>;
|
|
287
|
-
getChangesReport(): Promise<
|
|
288
|
-
| {
|
|
289
|
-
diff: string;
|
|
290
|
-
files: string[];
|
|
291
|
-
}
|
|
292
|
-
| undefined
|
|
293
|
-
>;
|
|
294
|
-
isCleanWorkTree(): Promise<boolean>;
|
|
295
|
-
/**
|
|
296
|
-
* Resolves a workspace file path to its actual file system path
|
|
297
|
-
* @param filePath A file path that may include a workspace prefix (e.g., "workspace1/path/to/file.js")
|
|
298
|
-
* @param forceWorkspace If true, will try the first workspace as fallback when no workspace folder is found
|
|
299
|
-
* @returns The actual file system path and the workspace folder it belongs to
|
|
300
|
-
*/
|
|
301
|
-
resolveWorkspacePath(
|
|
302
|
-
filePath: string,
|
|
303
|
-
forceWorkspace: boolean,
|
|
304
|
-
): {
|
|
305
|
-
resolvedPath: string;
|
|
306
|
-
workspaceFolder?: WorkspaceFolder;
|
|
307
|
-
};
|
|
308
|
-
/**
|
|
309
|
-
* Converts an absolute file system path to a workspace URL
|
|
310
|
-
* @param absolutePath The absolute file system path to convert
|
|
311
|
-
* @returns The workspace URL if the path can be converted, undefined otherwise
|
|
312
|
-
*/
|
|
313
|
-
absolutePathToWorkspaceUrl(absolutePath: string): string | undefined;
|
|
314
|
-
/**
|
|
315
|
-
* Reads a file from the workspace
|
|
316
|
-
* @param filePath A file path that may include a workspace prefix
|
|
317
|
-
* @returns The file content or null if the file doesn't exist
|
|
318
|
-
*/
|
|
319
|
-
readFile(filePath: string, skipAclCheck?: boolean): Promise<string | null>;
|
|
320
|
-
/**
|
|
321
|
-
* Checks if a file exists in the workspace
|
|
322
|
-
* @param filePath A file path that may include a workspace prefix
|
|
323
|
-
* @returns True if the file exists, false otherwise
|
|
324
|
-
*/
|
|
325
|
-
fileExists(filePath: string): Promise<{
|
|
326
|
-
absolutePath: string | undefined;
|
|
327
|
-
recommendedPath: string | undefined;
|
|
328
|
-
workspaceFolder: WorkspaceFolder | undefined;
|
|
329
|
-
virtual: boolean;
|
|
330
|
-
}>;
|
|
331
|
-
/**
|
|
332
|
-
* Reads a file from the workspace synchronously
|
|
333
|
-
* @param filePath A file path that may include a workspace prefix
|
|
334
|
-
* @returns The file content or null if the file doesn't exist
|
|
335
|
-
*/
|
|
336
|
-
readFileSync(filePath: string, skipAclCheck?: boolean): string | null;
|
|
337
|
-
/**
|
|
338
|
-
* Writes content to a file in the workspace
|
|
339
|
-
* @param filePath A file path that may include a workspace prefix
|
|
340
|
-
* @param content The content to write
|
|
341
|
-
* @returns True if the write was successful, false otherwise
|
|
342
|
-
*/
|
|
343
|
-
writeFile(
|
|
344
|
-
filePath: string,
|
|
345
|
-
content: string | Uint8Array,
|
|
346
|
-
skipAclCheck?: boolean,
|
|
347
|
-
): Promise<string | null>;
|
|
348
|
-
/**
|
|
349
|
-
* Lists files in a directory in the workspace
|
|
350
|
-
* @param dirPath A directory path that may include a workspace prefix
|
|
351
|
-
* @returns Array of file names in the directory or empty array if directory doesn't exist
|
|
352
|
-
*/
|
|
353
|
-
listDir(dirPath: string): Promise<string[]>;
|
|
354
|
-
/**
|
|
355
|
-
* Get stats for a file in the workspace
|
|
356
|
-
* @param filePath A file path that may include a workspace prefix
|
|
357
|
-
* @returns The file stats or null if the file doesn't exist
|
|
358
|
-
*/
|
|
359
|
-
stat(
|
|
360
|
-
filePath: string,
|
|
361
|
-
skipAclCheck?: boolean,
|
|
362
|
-
): Promise<{
|
|
363
|
-
isDirectory: () => boolean;
|
|
364
|
-
isFile: () => boolean;
|
|
365
|
-
size: number;
|
|
366
|
-
} | null>;
|
|
367
|
-
/**
|
|
368
|
-
* Deletes a file from the workspace
|
|
369
|
-
* @param filePath A file path that may include a workspace prefix
|
|
370
|
-
* @returns True if the delete was successful, false otherwise
|
|
371
|
-
*/
|
|
372
|
-
deleteFile(filePath: string, skipAclCheck?: boolean): Promise<string | null>;
|
|
373
|
-
getLinesStats(): {
|
|
374
|
-
added: number;
|
|
375
|
-
removed: number;
|
|
376
|
-
net: number;
|
|
377
|
-
};
|
|
378
|
-
/**
|
|
379
|
-
* Get git diff between current commit and remote branch
|
|
380
|
-
* If remote current branch doesn't exist, gets diff between default branch and current branch
|
|
381
|
-
* @param numberOfContextLines - Optional number of context lines to include in the diff
|
|
382
|
-
* @param includeFilesOnly - If true, only return filePath and action properties
|
|
383
|
-
* @param filePaths - Optional array of file paths to limit the diff to specific files
|
|
384
|
-
*/
|
|
385
|
-
getDiffFromRemote({
|
|
386
|
-
numberOfContextLines,
|
|
387
|
-
includeFilesOnly,
|
|
388
|
-
filePaths,
|
|
389
|
-
}: {
|
|
390
|
-
numberOfContextLines?: number;
|
|
391
|
-
includeFilesOnly?: boolean;
|
|
392
|
-
filePaths?: Array<string>;
|
|
393
|
-
}): Promise<ApplyActionsResult[]>;
|
|
394
|
-
/**
|
|
395
|
-
* Get git diff based on the specified mode
|
|
396
|
-
* @param mode - The diff mode: 'previous-commit', 'parent-branch', or 'remote'
|
|
397
|
-
* @param numberOfContextLines - Optional number of context lines to include in the diff (e.g., 999 for -U999)
|
|
398
|
-
* @param includeFilesOnly - If true, only return filePath and action properties
|
|
399
|
-
* @param filePaths - Optional array of file paths to limit the diff to specific files
|
|
400
|
-
*/
|
|
401
|
-
getDiff({
|
|
402
|
-
mode,
|
|
403
|
-
numberOfContextLines,
|
|
404
|
-
includeFilesOnly,
|
|
405
|
-
filePaths,
|
|
406
|
-
}: {
|
|
407
|
-
mode: "remote-parent-branch" | "remote-current-branch";
|
|
408
|
-
numberOfContextLines?: number;
|
|
409
|
-
includeFilesOnly?: boolean;
|
|
410
|
-
filePaths?: Array<string>;
|
|
411
|
-
}): Promise<{
|
|
412
|
-
state: "error" | "success";
|
|
413
|
-
diff?: ApplyActionsResult[];
|
|
414
|
-
error?: Error;
|
|
415
|
-
}>;
|
|
416
|
-
private getDefaultBranch;
|
|
417
|
-
private getDiffFromParentBranch;
|
|
418
|
-
}
|
|
419
|
-
export declare function getUserContext(
|
|
420
|
-
sys: DevToolsSys,
|
|
421
|
-
gitWorkingDirectory?: string,
|
|
422
|
-
): Promise<UserContext>;
|
|
423
|
-
export declare function makeAsyncIterator<T>(): readonly [
|
|
424
|
-
AsyncGenerator<T, void, void>,
|
|
425
|
-
(event: T) => void,
|
|
426
|
-
() => void,
|
|
427
|
-
];
|
|
428
|
-
/**
|
|
429
|
-
* Loads a workspace configuration from a JSON file
|
|
430
|
-
* @param sys DevToolsSys instance
|
|
431
|
-
* @param workspaceFile Path to the workspace JSON file
|
|
432
|
-
* @returns The workspace configuration and working directory
|
|
433
|
-
*/
|
|
434
|
-
export declare function loadWorkspace(
|
|
435
|
-
sys: DevToolsSys,
|
|
436
|
-
workspaceFile: string,
|
|
437
|
-
): Promise<{
|
|
438
|
-
workspace: WorkspaceConfiguration;
|
|
439
|
-
workingDirectory: string;
|
|
440
|
-
}>;
|
|
441
|
-
export declare function keepAlive(): () => void;
|
|
442
|
-
export declare class BashError extends Error {
|
|
443
|
-
readonly code: number | string | undefined;
|
|
444
|
-
readonly stdout: string;
|
|
445
|
-
readonly stderr: string;
|
|
446
|
-
readonly command: string;
|
|
447
|
-
constructor(
|
|
448
|
-
command: string,
|
|
449
|
-
code: number | string | undefined,
|
|
450
|
-
stdout: string,
|
|
451
|
-
stderr: string,
|
|
452
|
-
opts?: {
|
|
453
|
-
cause?: Error;
|
|
454
|
-
},
|
|
455
|
-
);
|
|
456
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const apiAirV2Host: string;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import type { CLIArgs } from "./index";
|
|
3
|
-
import type { Feature } from "$/ai-utils";
|
|
4
|
-
export interface CredentialsOptions {
|
|
5
|
-
forceSpaceId?: string;
|
|
6
|
-
builderPublicKey?: boolean;
|
|
7
|
-
builderPrivateKey?: boolean;
|
|
8
|
-
figmaAuth?: boolean;
|
|
9
|
-
force?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface FigmaAuth {
|
|
12
|
-
access_token: string;
|
|
13
|
-
oauth: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface BuilderCodegenUsage {
|
|
16
|
-
total: number | undefined;
|
|
17
|
-
fast: number | undefined;
|
|
18
|
-
quality: number | undefined;
|
|
19
|
-
features?: Feature[];
|
|
20
|
-
limits?: {
|
|
21
|
-
aiGeneration: number;
|
|
22
|
-
aiGenerationContextWindow: number;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export interface BuilderAuth {
|
|
26
|
-
privateKey: string;
|
|
27
|
-
spaceId: string;
|
|
28
|
-
spaceName: string;
|
|
29
|
-
userId: string;
|
|
30
|
-
}
|
|
31
|
-
export declare const isCI: (args: CLIArgs) => boolean;
|
|
32
|
-
export interface Credentials {
|
|
33
|
-
figmaAuth?: FigmaAuth;
|
|
34
|
-
builderPublicKey?: string;
|
|
35
|
-
builderPrivateKey?: string;
|
|
36
|
-
spaceName?: string;
|
|
37
|
-
userId?: string;
|
|
38
|
-
timestamp?: string;
|
|
39
|
-
}
|
|
40
|
-
export declare const readCredentials: (
|
|
41
|
-
sys: DevToolsSys,
|
|
42
|
-
args: CLIArgs,
|
|
43
|
-
) => {
|
|
44
|
-
spaceName: string | undefined;
|
|
45
|
-
userId: string | undefined;
|
|
46
|
-
builderPublicKey: string | undefined;
|
|
47
|
-
builderPrivateKey: string | undefined;
|
|
48
|
-
figmaAuth: FigmaAuth | undefined;
|
|
49
|
-
timestamp: string | undefined;
|
|
50
|
-
};
|
|
51
|
-
export declare const getCredentials: (
|
|
52
|
-
sys: DevToolsSys,
|
|
53
|
-
args: CLIArgs,
|
|
54
|
-
opts: CredentialsOptions,
|
|
55
|
-
) => Promise<Credentials>;
|
|
56
|
-
export declare function getFigmaAuth(sys: DevToolsSys): Promise<FigmaAuth>;
|
|
57
|
-
export declare function getBuilderCodegenUsage(
|
|
58
|
-
builderPublicKey: string,
|
|
59
|
-
builderPrivateKey: string,
|
|
60
|
-
): Promise<BuilderCodegenUsage>;
|
|
61
|
-
export declare function getBuilderAuth(
|
|
62
|
-
sys: DevToolsSys,
|
|
63
|
-
preferSpaceId?: string,
|
|
64
|
-
): Promise<BuilderAuth>;
|
|
65
|
-
export declare function storeCredentials(
|
|
66
|
-
sys: DevToolsSys,
|
|
67
|
-
credentials: Credentials,
|
|
68
|
-
): void;
|
|
69
|
-
export declare function clearCredentials(sys: DevToolsSys): boolean;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { CLIArgs } from "./index";
|
|
2
|
-
import type { DevToolsSys } from "../types";
|
|
3
|
-
import type { FigmaBuilderLink } from "$/ai-utils";
|
|
4
|
-
interface KVGetRequest {
|
|
5
|
-
privateKey: string;
|
|
6
|
-
spaceId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const runFigmaMigrate: (
|
|
9
|
-
sys: DevToolsSys,
|
|
10
|
-
args: CLIArgs,
|
|
11
|
-
) => Promise<undefined>;
|
|
12
|
-
export declare function getBuilderSpaceFigmaLinks(
|
|
13
|
-
kvReq: KVGetRequest,
|
|
14
|
-
): Promise<FigmaBuilderLink[]>;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function exit(code: number): Promise<never>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const safeFetch: typeof globalThis.fetch;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import type { DevTools, DevToolsSys } from "../types";
|
|
3
|
-
import type { CLIArgs } from "./index";
|
|
4
|
-
import type { FigmaBuilderLink, FigmaMapperFile } from "$/ai-utils";
|
|
5
|
-
export declare const runFigmaPublish: (
|
|
6
|
-
sys: DevToolsSys,
|
|
7
|
-
args: CLIArgs,
|
|
8
|
-
) => Promise<undefined>;
|
|
9
|
-
export declare const FIGMA_CONNECT_CALL = "figmaMapping";
|
|
10
|
-
export declare function findAllMappingFiles(
|
|
11
|
-
sys: DevToolsSys,
|
|
12
|
-
): Promise<string[]>;
|
|
13
|
-
export declare function setPublicKey(
|
|
14
|
-
sys: DevToolsSys,
|
|
15
|
-
publicKey: string,
|
|
16
|
-
devTools: DevTools | undefined,
|
|
17
|
-
ensureFigmaImportPage?: boolean,
|
|
18
|
-
): Promise<
|
|
19
|
-
| {
|
|
20
|
-
success: boolean;
|
|
21
|
-
error: string;
|
|
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;
|
|
36
|
-
}): Promise<{
|
|
37
|
-
mapperFiles: FigmaMapperFile[];
|
|
38
|
-
figmaBuilderLinks: FigmaBuilderLink[];
|
|
39
|
-
diagnostics: ts.Diagnostic[];
|
|
40
|
-
figmaLinksToResolve: string[];
|
|
41
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { type Credentials, type FigmaAuth } from "./credentials";
|
|
2
|
-
import type { DevToolsSys } from "../types";
|
|
3
|
-
import type { CLIArgs } from "./index";
|
|
4
|
-
import type { FigmaBuilderLink, FigmaComponentInfo } from "$/ai-utils";
|
|
5
|
-
type FigmaAPIOpts = {
|
|
6
|
-
auth: {
|
|
7
|
-
access_token: string;
|
|
8
|
-
oauth: boolean;
|
|
9
|
-
};
|
|
10
|
-
params?: Record<string, any>;
|
|
11
|
-
};
|
|
12
|
-
export declare const parseFigmaURL: (str: string) => {
|
|
13
|
-
fileID: string;
|
|
14
|
-
nodeId: string;
|
|
15
|
-
} | null;
|
|
16
|
-
export declare const figmaApi: <T = any>(
|
|
17
|
-
sys: DevToolsSys,
|
|
18
|
-
args: CLIArgs,
|
|
19
|
-
path: string,
|
|
20
|
-
{ auth, params }: FigmaAPIOpts,
|
|
21
|
-
) => Promise<T>;
|
|
22
|
-
export declare const getFigmaNodeData: (
|
|
23
|
-
sys: DevToolsSys,
|
|
24
|
-
args: CLIArgs,
|
|
25
|
-
auth: {
|
|
26
|
-
access_token: string;
|
|
27
|
-
oauth: boolean;
|
|
28
|
-
},
|
|
29
|
-
fileId: string,
|
|
30
|
-
nodeIds: string,
|
|
31
|
-
depth?: number | undefined,
|
|
32
|
-
) => Promise<any>;
|
|
33
|
-
export declare function getImportDataFromToken(
|
|
34
|
-
credentials: Credentials,
|
|
35
|
-
token: string,
|
|
36
|
-
verbose: boolean,
|
|
37
|
-
): Promise<(readonly [string, FigmaComponentInfo])[]>;
|
|
38
|
-
export declare function needsFigmaAuth(urls: string[]): boolean;
|
|
39
|
-
export declare function getFigmaNodeDataFromURLs(
|
|
40
|
-
sys: DevToolsSys,
|
|
41
|
-
args: CLIArgs,
|
|
42
|
-
figmaAuth:
|
|
43
|
-
| {
|
|
44
|
-
access_token: string;
|
|
45
|
-
oauth: boolean;
|
|
46
|
-
}
|
|
47
|
-
| undefined,
|
|
48
|
-
builderAuth: {
|
|
49
|
-
privateKey: string;
|
|
50
|
-
spaceId: string;
|
|
51
|
-
},
|
|
52
|
-
urls: string[],
|
|
53
|
-
): Promise<(readonly [string, FigmaComponentInfo])[]>;
|
|
54
|
-
export declare function inPlaceResolveFigmaURLs(
|
|
55
|
-
sys: DevToolsSys,
|
|
56
|
-
args: CLIArgs,
|
|
57
|
-
figmaAuth: FigmaAuth,
|
|
58
|
-
figmaBuilderLinks: FigmaBuilderLink[],
|
|
59
|
-
figmaLinksToResolve: string[],
|
|
60
|
-
): Promise<void>;
|
|
61
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import type { CLIArgs } from ".";
|
|
3
|
-
export declare const runFigmaCommand: (
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
subCommand: string,
|
|
6
|
-
args: CLIArgs,
|
|
7
|
-
) => Promise<void>;
|
|
8
|
-
export declare function askToInstallBuilder(
|
|
9
|
-
sys: DevToolsSys,
|
|
10
|
-
args: CLIArgs,
|
|
11
|
-
): Promise<void>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ComponentInfo, ComponentRegistry, DevToolsSys } from "../types";
|
|
2
|
-
import type { CLIArgs } from "./index";
|
|
3
|
-
import { type FigmaComponentInfo, type UserContext } from "$/ai-utils";
|
|
4
|
-
export declare const runFigmaGenerate: (
|
|
5
|
-
sys: DevToolsSys,
|
|
6
|
-
args: CLIArgs,
|
|
7
|
-
) => Promise<undefined>;
|
|
8
|
-
export interface MappingCodeV3 {
|
|
9
|
-
figmaNode?: FigmaComponentInfo;
|
|
10
|
-
registry?: ComponentRegistry;
|
|
11
|
-
userContext?: UserContext;
|
|
12
|
-
figmaUrl?: string;
|
|
13
|
-
docsUrl?: string;
|
|
14
|
-
registeredCmp?: ComponentInfo;
|
|
15
|
-
previousCompletion?: string;
|
|
16
|
-
userPrompt?: string;
|
|
17
|
-
token?: string;
|
|
18
|
-
pragma?: string;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function printHelp(subcommand?: string): void;
|