@builder.io/dev-tools 1.17.24-dev.202511131347.7305ffc47 → 1.17.24-dev.202511131623.844feace3
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 +355 -622
- package/cli/index.cjs.map +4 -4
- 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 +10 -3
- package/server/index.mjs +10 -3
- 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/codegen.d.ts +12 -2
- 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/index.d.ts +0 -3
- 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/helpers.d.ts +8 -15
- 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/git-detector.d.ts +10 -10
- 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/component-discovery.d.ts +12 -21
- package/types/cli/repo-indexing/icons.d.ts +1 -1
- package/types/cli/repo-indexing/repo-indexing-utils.d.ts +1 -2
- 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-indexing/types.d.ts +1 -6
- 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/convert-values.d.ts +8 -40
- 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/errors.d.ts +22 -40
- 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 +8 -35
- 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/repo-indexing/installation.d.ts +0 -12
- package/types/cli/utils/agent-discovery.d.ts +0 -22
- package/types/cli/utils/agent-parser.d.ts +0 -41
- package/types/cli/utils/agent-parser.test.d.ts +0 -1
- package/types/cli/utils/browser-testing-agent.d.ts +0 -2
- package/types/cli/utils/codegen-utils.d.ts +0 -70
- 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/rules-discovery.d.ts +0 -26
- package/types/cli/utils/rules-parser.d.ts +0 -17
- package/types/cli/utils/rules-parser.test.d.ts +0 -1
- package/types/cli/utils/sudo-helper.d.ts +0 -21
- package/types/cli/utils/yaml-frontmatter.d.ts +0 -32
- package/types/cli/utils/yaml-frontmatter.test.d.ts +0 -1
- 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/vite/main.d.ts
CHANGED
package/types/webpack/main.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare class BuilderDevToolsPlugin {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
private readonly opts;
|
|
3
|
+
constructor(opts?: WebpackBuilderDevToolsOptions);
|
|
4
|
+
apply(c: any): void;
|
|
5
5
|
}
|
|
6
6
|
export interface WebpackBuilderDevToolsOptions {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
devToolsServerPort?: number;
|
|
9
9
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../../types";
|
|
2
|
-
import type { Credentials } from "../credentials";
|
|
3
|
-
import type { WorkspaceConfiguration } from "$/ai-utils";
|
|
4
|
-
export declare const discoverInstallation: (sys: DevToolsSys, credentials: Credentials, sessionId: string, opts: {
|
|
5
|
-
designSystemId: string;
|
|
6
|
-
designSystemPackage?: string;
|
|
7
|
-
designSystemVersion?: string;
|
|
8
|
-
workspaceConfig?: WorkspaceConfiguration;
|
|
9
|
-
debug?: boolean;
|
|
10
|
-
}) => Promise<{
|
|
11
|
-
hash: string;
|
|
12
|
-
} | undefined>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent discovery utilities
|
|
3
|
-
* Handles finding and loading custom agent definitions from the filesystem
|
|
4
|
-
*/
|
|
5
|
-
import type { DevToolsSys } from "../../types";
|
|
6
|
-
import { type SubAgent } from "./agent-parser";
|
|
7
|
-
export type { SubAgent };
|
|
8
|
-
/**
|
|
9
|
-
* Get custom agents from the filesystem
|
|
10
|
-
* Searches for agent definitions in .claude/agents, .builder/agents, and .cursor/agents
|
|
11
|
-
* @param sys - System utilities
|
|
12
|
-
* @param projectDir - Project directory (used for relative paths)
|
|
13
|
-
* @param currentDir - Starting directory for search
|
|
14
|
-
* @param rootDir - Root directory to stop search
|
|
15
|
-
* @returns Array of discovered agents
|
|
16
|
-
*/
|
|
17
|
-
export declare function getCustomAgents({ sys, projectDir, currentDir, rootDir, }: {
|
|
18
|
-
sys: DevToolsSys;
|
|
19
|
-
projectDir: string;
|
|
20
|
-
currentDir: string;
|
|
21
|
-
rootDir: string;
|
|
22
|
-
}): Promise<SubAgent[]>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent definition parsing utilities
|
|
3
|
-
* Handles parsing of custom agent definition files
|
|
4
|
-
*/
|
|
5
|
-
import type { CodeGenMode } from "$/ai-utils";
|
|
6
|
-
export interface SubAgent {
|
|
7
|
-
name: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
systemPrompt?: string;
|
|
10
|
-
tools?: string[];
|
|
11
|
-
model?: string;
|
|
12
|
-
mode?: CodeGenMode;
|
|
13
|
-
filePath?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Resolves model shortcut to full model name
|
|
17
|
-
* @param modelOrShortcut - Model name or shortcut
|
|
18
|
-
* @returns Resolved model name or undefined
|
|
19
|
-
*/
|
|
20
|
-
export declare function resolveModelShortcut(modelOrShortcut?: string): string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Parses an agent definition file (Markdown with YAML frontmatter)
|
|
23
|
-
* Expected format (following Claude Code sub-agents format):
|
|
24
|
-
* ```yaml
|
|
25
|
-
* ---
|
|
26
|
-
* name: Agent Name
|
|
27
|
-
* description: Description of what the agent does
|
|
28
|
-
* model: sonnet # Optional: supports shortcuts like sonnet, opus, haiku, mini
|
|
29
|
-
* tools: # Optional: list of tools to enable
|
|
30
|
-
* - Read
|
|
31
|
-
* - Grep
|
|
32
|
-
* - WebSearch
|
|
33
|
-
* mode: quality-v4-agent # Optional: agent mode
|
|
34
|
-
* ---
|
|
35
|
-
* System prompt content here (Markdown)
|
|
36
|
-
* ```
|
|
37
|
-
* @param fileContent - The raw file content
|
|
38
|
-
* @param filePath - The file path (used for fallback name)
|
|
39
|
-
* @returns Parsed SubAgent or null if parsing fails
|
|
40
|
-
*/
|
|
41
|
-
export declare function parseAgentFile(fileContent: string, filePath: string): SubAgent | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../../core";
|
|
2
|
-
import { type Credentials } from "../credentials";
|
|
3
|
-
export { getCustomInstructions } from "./rules-discovery";
|
|
4
|
-
import type { CodeGenInputOptions, CodegenSetLastCompletion, CodegenTurn, GenerateCodeEvent, GenerateUserMessage, GetSessionTurnsResult, UserContext, WorkspaceConfiguration, EnvironmentVariable, PushChangesArgs } from "$/ai-utils";
|
|
5
|
-
import type { SessionContext } from "../codegen";
|
|
6
|
-
export declare const DEFAULT_MAX_COMPLETIONS = 30;
|
|
7
|
-
/**
|
|
8
|
-
* Merges and deduplicates items by name.
|
|
9
|
-
* Built-in items come first, discovered items can override them by name.
|
|
10
|
-
* @param builtIn - Built-in items
|
|
11
|
-
* @param discovered - Discovered items from project
|
|
12
|
-
* @returns Deduplicated array with discovered overriding built-in
|
|
13
|
-
*/
|
|
14
|
-
export declare function mergeByName<T extends {
|
|
15
|
-
name: string;
|
|
16
|
-
}>(builtIn: T[], discovered: T[]): T[];
|
|
17
|
-
export declare function getLastGoodTurn(sessionContext: SessionContext): CodegenTurn | undefined;
|
|
18
|
-
export declare function getLastUserTurn(sessionContext: SessionContext): CodegenTurn | undefined;
|
|
19
|
-
export declare function getLastApplyResultsTurn(sessionContext: SessionContext): CodegenTurn | undefined;
|
|
20
|
-
export declare function getLastOne<T>(array: T[]): T | undefined;
|
|
21
|
-
export declare function inPlaceRemovePendingTurns(turns: CodegenTurn[]): void;
|
|
22
|
-
export declare function restoreConsumedCredit(sys: DevToolsSys, credentials: Credentials, sessionId: string, restoreCredits: number): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* Analyzes the payload to identify what's making it large
|
|
25
|
-
*/
|
|
26
|
-
export declare function analyzePayloadBreakdown(body: CodeGenInputOptions, jsonString: string): Record<string, any>;
|
|
27
|
-
export declare function completionStream(sys: DevToolsSys, credentials: Credentials, body: CodeGenInputOptions, signal: AbortSignal): AsyncGenerator<GenerateCodeEvent, void, unknown>;
|
|
28
|
-
export declare function codegenEndpoint(sys: DevToolsSys, credentials: Credentials, endpoint: string, body: Record<string, any>): Promise<boolean>;
|
|
29
|
-
export declare function setLastCompletionOfSession(sys: DevToolsSys, credentials: Credentials, data: CodegenSetLastCompletion, _verbose: boolean): Promise<boolean>;
|
|
30
|
-
export declare function getTurnsBySessionId(sys: DevToolsSys, credentials: Credentials, sessionId: string, linear: boolean, completionIdCursor?: string): Promise<GetSessionTurnsResult>;
|
|
31
|
-
export declare const parseCLIURL: (url: string | undefined) => {
|
|
32
|
-
id: undefined;
|
|
33
|
-
isInitial: boolean;
|
|
34
|
-
} | {
|
|
35
|
-
isInitial: boolean;
|
|
36
|
-
id: string;
|
|
37
|
-
};
|
|
38
|
-
export declare function getUserContext(sys: DevToolsSys, gitWorkingDirectory?: string): Promise<UserContext>;
|
|
39
|
-
export declare function makeAsyncIterator<T>(): readonly [AsyncGenerator<T, void, void>, (event: T) => void, () => void];
|
|
40
|
-
export declare function isAGENTSFile(filePath: string): boolean;
|
|
41
|
-
export declare function isBaseImportantFile(filePath: string): boolean;
|
|
42
|
-
export declare function hasBuildError(text: string): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Loads a workspace configuration from a JSON file
|
|
45
|
-
* @param sys DevToolsSys instance
|
|
46
|
-
* @param workspaceFile Path to the workspace JSON file
|
|
47
|
-
* @returns The workspace configuration and working directory
|
|
48
|
-
*/
|
|
49
|
-
export declare function loadWorkspace(sys: DevToolsSys, workspaceFile: string): Promise<{
|
|
50
|
-
workspace: WorkspaceConfiguration;
|
|
51
|
-
workingDirectory: string;
|
|
52
|
-
}>;
|
|
53
|
-
export declare function mergeUserMessages(currentMessage: GenerateUserMessage, newMessage: GenerateUserMessage): GenerateUserMessage;
|
|
54
|
-
export declare function keepAlive(): () => void;
|
|
55
|
-
export declare function parseAheadBehind(line: string): {
|
|
56
|
-
ahead: number;
|
|
57
|
-
behind: number;
|
|
58
|
-
};
|
|
59
|
-
export declare class BashError extends Error {
|
|
60
|
-
readonly code: number | string | undefined;
|
|
61
|
-
readonly stdout: string;
|
|
62
|
-
readonly stderr: string;
|
|
63
|
-
readonly command: string;
|
|
64
|
-
constructor(command: string, code: number | string | undefined, stdout: string, stderr: string, opts?: {
|
|
65
|
-
cause?: Error;
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
export declare function mergeEnvironmentVariables(envVariables: EnvironmentVariable[], extraEnvVariables: EnvironmentVariable[]): EnvironmentVariable[];
|
|
69
|
-
export declare function processPushChangesArgs(opts: PushChangesArgs): import("$/ai-utils").PushChangesOptions;
|
|
70
|
-
export declare function getErrorMessage(err: unknown): string;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
/**
|
|
3
|
-
* Check if an environment variable key should be filtered out
|
|
4
|
-
* @param key - The environment variable key to check
|
|
5
|
-
* @returns true if the variable should be filtered out, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare function shouldFilterEnvVar(key: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Filter out unwanted environment variables from process.env
|
|
10
|
-
* @param env - The environment object to filter (defaults to process.env)
|
|
11
|
-
* @returns Filtered environment variables
|
|
12
|
-
*/
|
|
13
|
-
export declare function filterEnvVars(
|
|
14
|
-
env?: Record<string, string | undefined>,
|
|
15
|
-
): Record<string, string>;
|
|
16
|
-
/**
|
|
17
|
-
* Load environment variables from .env files in the working directory.
|
|
18
|
-
* Checks multiple .env file variants in order of priority.
|
|
19
|
-
*
|
|
20
|
-
* @param sys - DevToolsSys instance for file system access
|
|
21
|
-
* @param workingDirectory - Directory to look for .env files (defaults to cwd)
|
|
22
|
-
* @param envFiles - Array of .env file names to check (defaults to standard .env files)
|
|
23
|
-
* @returns Object containing environment variables from .env files
|
|
24
|
-
*/
|
|
25
|
-
export declare function loadDotEnvVars(
|
|
26
|
-
sys: DevToolsSys,
|
|
27
|
-
workingDirectory?: string,
|
|
28
|
-
envFiles?: string[],
|
|
29
|
-
): Promise<Record<string, string>>;
|
|
30
|
-
/**
|
|
31
|
-
* Get a combined environment object with:
|
|
32
|
-
* 1. Filtered process.env (excluding npm_*, IDE variables, etc.)
|
|
33
|
-
* 2. .env file variables (highest priority)
|
|
34
|
-
*
|
|
35
|
-
* @param sys - DevToolsSys instance
|
|
36
|
-
* @param workingDirectory - Directory to look for .env files
|
|
37
|
-
* @returns Combined and filtered environment variables
|
|
38
|
-
*/
|
|
39
|
-
export declare function getFilteredEnvWithDotEnv(
|
|
40
|
-
sys: DevToolsSys,
|
|
41
|
-
workingDirectory?: string,
|
|
42
|
-
): Promise<Record<string, string>>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Example demonstrating the lock file conflict behaviors
|
|
3
|
-
*
|
|
4
|
-
* This script demonstrates three different conflict behaviors:
|
|
5
|
-
* - 'exit': Exits with code -10 if lock exists (default)
|
|
6
|
-
* - 'replace': Overwrites existing lock file
|
|
7
|
-
* - 'kill': Kills the existing process and overwrites lock file
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
* ```bash
|
|
11
|
-
* # Example 1: Exit behavior (default)
|
|
12
|
-
* # First run - creates lock file and waits
|
|
13
|
-
* ts-node lock-file-example.ts exit
|
|
14
|
-
* # Second run (in another terminal) - exits with code -10
|
|
15
|
-
* ts-node lock-file-example.ts exit
|
|
16
|
-
*
|
|
17
|
-
* # Example 2: Replace behavior
|
|
18
|
-
* # First run - creates lock file and waits
|
|
19
|
-
* ts-node lock-file-example.ts replace
|
|
20
|
-
* # Second run - replaces the lock file (first process still runs)
|
|
21
|
-
* ts-node lock-file-example.ts replace
|
|
22
|
-
*
|
|
23
|
-
* # Example 3: Kill behavior
|
|
24
|
-
* # First run - creates lock file and waits
|
|
25
|
-
* ts-node lock-file-example.ts kill
|
|
26
|
-
* # Second run - kills the first process and takes over
|
|
27
|
-
* ts-node lock-file-example.ts kill
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom instruction/rules discovery utilities
|
|
3
|
-
* Handles finding and loading custom instructions from the filesystem
|
|
4
|
-
*/
|
|
5
|
-
import type { DevToolsSys } from "../../types";
|
|
6
|
-
import type { CustomInstruction } from "$/ai-utils";
|
|
7
|
-
/**
|
|
8
|
-
* Get custom instructions from the filesystem
|
|
9
|
-
* Searches for instruction files in:
|
|
10
|
-
* - .cursor/rules/
|
|
11
|
-
* - .builder/rules/
|
|
12
|
-
* - .cursorrules, .builderrules, .windsurfrules
|
|
13
|
-
* - .github/copilot-instructions.md
|
|
14
|
-
*
|
|
15
|
-
* @param sys - System utilities
|
|
16
|
-
* @param projectDir - Project directory (used for relative paths)
|
|
17
|
-
* @param currentDir - Starting directory for search
|
|
18
|
-
* @param rootDir - Root directory to stop search
|
|
19
|
-
* @returns Array of discovered custom instructions
|
|
20
|
-
*/
|
|
21
|
-
export declare function getCustomInstructions({ sys, projectDir, currentDir, rootDir, }: {
|
|
22
|
-
sys: DevToolsSys;
|
|
23
|
-
projectDir: string;
|
|
24
|
-
currentDir: string;
|
|
25
|
-
rootDir: string;
|
|
26
|
-
}): Promise<CustomInstruction[]>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom instruction/rules parsing utilities
|
|
3
|
-
* Handles parsing of custom instruction files (.mdc, .cursorrules, etc.)
|
|
4
|
-
*/
|
|
5
|
-
import type { CustomInstruction } from "$/ai-utils";
|
|
6
|
-
/**
|
|
7
|
-
* Parse a custom instruction file
|
|
8
|
-
* Supports both:
|
|
9
|
-
* - .mdc files with YAML frontmatter
|
|
10
|
-
* - Plain text files (.cursorrules, .builderrules, etc.)
|
|
11
|
-
*
|
|
12
|
-
* @param fileContent - Raw file content
|
|
13
|
-
* @param filePath - File path (for generating name and id)
|
|
14
|
-
* @param hashFunction - Optional hash function for generating unique IDs
|
|
15
|
-
* @returns Parsed CustomInstruction or null
|
|
16
|
-
*/
|
|
17
|
-
export declare function parseCustomInstructionFile(fileContent: string, filePath: string, hashFunction?: (content: string) => string): CustomInstruction | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
/**
|
|
3
|
-
* Detects if a command contains "sudo"
|
|
4
|
-
* @param command The command string to check
|
|
5
|
-
* @returns true if the command contains "sudo", false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare function detectSudoInCommand(command: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Executes a command with sudo using sudo-prompt
|
|
10
|
-
* @param command The command to execute
|
|
11
|
-
* @param sys DevToolsSys instance for logging
|
|
12
|
-
* @returns Promise with the execution result
|
|
13
|
-
*/
|
|
14
|
-
export declare function executeSudoCommand(
|
|
15
|
-
command: string,
|
|
16
|
-
sys: DevToolsSys,
|
|
17
|
-
): Promise<{
|
|
18
|
-
stdout: string;
|
|
19
|
-
stderr: string;
|
|
20
|
-
error?: Error;
|
|
21
|
-
}>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic YAML frontmatter parser for Markdown files
|
|
3
|
-
* Supports both simple key-value pairs and arrays
|
|
4
|
-
*/
|
|
5
|
-
export interface YamlFrontmatterResult<T = Record<string, any>> {
|
|
6
|
-
frontmatter: T;
|
|
7
|
-
body: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Checks if content has YAML frontmatter
|
|
11
|
-
*/
|
|
12
|
-
export declare function hasYamlFrontmatter(content: string): boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Parses YAML frontmatter from a string
|
|
15
|
-
* Handles simple YAML: key-value pairs, arrays, and comments
|
|
16
|
-
*/
|
|
17
|
-
export declare function parseYamlFrontmatter(yamlContent: string): Record<string, any>;
|
|
18
|
-
/**
|
|
19
|
-
* Extracts YAML frontmatter and body from Markdown content
|
|
20
|
-
* @param content - The raw Markdown content with frontmatter
|
|
21
|
-
* @returns Object with frontmatter and body, or null if no frontmatter found
|
|
22
|
-
*/
|
|
23
|
-
export declare function extractYamlFrontmatter(content: string): {
|
|
24
|
-
frontmatterContent: string;
|
|
25
|
-
body: string;
|
|
26
|
-
} | null;
|
|
27
|
-
/**
|
|
28
|
-
* Parse Markdown file with YAML frontmatter
|
|
29
|
-
* @param content - The raw file content
|
|
30
|
-
* @returns Parsed frontmatter and body
|
|
31
|
-
*/
|
|
32
|
-
export declare function parseMarkdownWithYaml<T = Record<string, any>>(content: string): YamlFrontmatterResult<T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { type ExpectStatic } from "vitest";
|
|
2
|
-
interface CLI {
|
|
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
|
-
}
|
|
30
|
-
export declare function testCLI(
|
|
31
|
-
name: string,
|
|
32
|
-
template: string | undefined,
|
|
33
|
-
handler: (cli: Handler, expect: ExpectStatic) => Promise<void>,
|
|
34
|
-
timeout?: number,
|
|
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>;
|
|
48
|
-
/**
|
|
49
|
-
* A snapshot maps a file's relative path to its hash.
|
|
50
|
-
*/
|
|
51
|
-
type Snapshot = {
|
|
52
|
-
cwd: string;
|
|
53
|
-
hashes: {
|
|
54
|
-
[file: string]: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function builderDevTools(): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import type { Credentials } from "./credentials";
|
|
3
|
-
import {
|
|
4
|
-
type GitBackupUploadUrlResult,
|
|
5
|
-
type GitBackupUploadUrlOptions,
|
|
6
|
-
type GitBackupRecordOptions,
|
|
7
|
-
type GitBackupRecordResult,
|
|
8
|
-
type BackupMetadata,
|
|
9
|
-
type WorkspaceConfiguration,
|
|
10
|
-
type CodegenRuntimeStatus,
|
|
11
|
-
type BackupGitRepoResult,
|
|
12
|
-
} from "$/ai-utils";
|
|
13
|
-
interface BackupGitRepoOptions {
|
|
14
|
-
sys: DevToolsSys;
|
|
15
|
-
credentials: Credentials;
|
|
16
|
-
projectId: string;
|
|
17
|
-
branchName: string;
|
|
18
|
-
repoPath: string;
|
|
19
|
-
aiBranch: string;
|
|
20
|
-
featureBranch: string;
|
|
21
|
-
workspace: WorkspaceConfiguration | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* If true, the system is connected to the git provider.
|
|
24
|
-
* If false, the system is offline and will not fetch any branches from origin.
|
|
25
|
-
*/
|
|
26
|
-
isConnectedToProvider: boolean;
|
|
27
|
-
debug: boolean;
|
|
28
|
-
forcedFullBackup: boolean;
|
|
29
|
-
canAbortMerge: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Creates a backup of git repository changes made by the AI system.
|
|
33
|
-
*
|
|
34
|
-
* This function handles both partial and full backups:
|
|
35
|
-
* - Partial backups: Only include commits created locally (on aiBranch) that aren't in upstream.
|
|
36
|
-
* This keeps backups small and doesn't store the entire repo's code. Requires a clone from
|
|
37
|
-
* upstream plus applying the backup to restore.
|
|
38
|
-
* - Full backups: Complete repo backup that can be directly cloned from.
|
|
39
|
-
*
|
|
40
|
-
* The aiBranch is where the AI creates commits as work progresses, while featureBranch
|
|
41
|
-
* is the base branch where work started (usually "main").
|
|
42
|
-
*/
|
|
43
|
-
export declare function backupGitRepo({
|
|
44
|
-
sys,
|
|
45
|
-
credentials,
|
|
46
|
-
projectId,
|
|
47
|
-
branchName,
|
|
48
|
-
repoPath,
|
|
49
|
-
aiBranch,
|
|
50
|
-
featureBranch,
|
|
51
|
-
workspace,
|
|
52
|
-
isConnectedToProvider,
|
|
53
|
-
debug,
|
|
54
|
-
forcedFullBackup,
|
|
55
|
-
canAbortMerge,
|
|
56
|
-
}: BackupGitRepoOptions): Promise<BackupGitRepoResult>;
|
|
57
|
-
type InitialCommitHashResult =
|
|
58
|
-
| {
|
|
59
|
-
initialBranch: string;
|
|
60
|
-
initialCommitHash: string | undefined;
|
|
61
|
-
partial: false;
|
|
62
|
-
forcedFullBackup: true;
|
|
63
|
-
}
|
|
64
|
-
| {
|
|
65
|
-
initialBranch: string;
|
|
66
|
-
initialCommitHash: string;
|
|
67
|
-
partial: boolean;
|
|
68
|
-
forcedFullBackup: false;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Determines the initial commit hash and whether to create a partial or full backup.
|
|
72
|
-
*
|
|
73
|
-
* Partial backups are preferred to keep backup sizes small, but full backups are needed when:
|
|
74
|
-
* - The repo is an example/starter template (users can't push to origin, need to fork)
|
|
75
|
-
* - There's no origin remote configured
|
|
76
|
-
*
|
|
77
|
-
* For partial backups, we fetch the latest state of the chosen upstream branch from origin
|
|
78
|
-
* to ensure the backup has the correct commit range reference.
|
|
79
|
-
*/
|
|
80
|
-
export declare function getInitialCommitHash({
|
|
81
|
-
sys,
|
|
82
|
-
repoPath,
|
|
83
|
-
featureBranch,
|
|
84
|
-
debug,
|
|
85
|
-
workspace,
|
|
86
|
-
isConnectedToProvider,
|
|
87
|
-
forcedFullBackup,
|
|
88
|
-
credentials,
|
|
89
|
-
projectId,
|
|
90
|
-
}: {
|
|
91
|
-
sys: DevToolsSys;
|
|
92
|
-
repoPath: string;
|
|
93
|
-
featureBranch: string;
|
|
94
|
-
debug: boolean;
|
|
95
|
-
workspace: WorkspaceConfiguration | undefined;
|
|
96
|
-
isConnectedToProvider: boolean;
|
|
97
|
-
forcedFullBackup: boolean;
|
|
98
|
-
credentials: Credentials;
|
|
99
|
-
projectId: string;
|
|
100
|
-
}): Promise<InitialCommitHashResult>;
|
|
101
|
-
/**
|
|
102
|
-
* Requests a signed upload URL for git backup
|
|
103
|
-
*/
|
|
104
|
-
export declare function requestSignedUploadUrl(
|
|
105
|
-
credentials: Credentials,
|
|
106
|
-
body: GitBackupUploadUrlOptions,
|
|
107
|
-
): Promise<GitBackupUploadUrlResult | null>;
|
|
108
|
-
/**
|
|
109
|
-
* Records a successful git backup in Firebase
|
|
110
|
-
*/
|
|
111
|
-
export declare function recordBackup(
|
|
112
|
-
credentials: Credentials,
|
|
113
|
-
body: GitBackupRecordOptions,
|
|
114
|
-
): Promise<GitBackupRecordResult>;
|
|
115
|
-
export interface GitBackupDownloadResultValid {
|
|
116
|
-
success: true;
|
|
117
|
-
partial: boolean;
|
|
118
|
-
bundlePath: string | undefined;
|
|
119
|
-
bundleSize: number;
|
|
120
|
-
gitBranchName: string;
|
|
121
|
-
lastCommitHash: string;
|
|
122
|
-
}
|
|
123
|
-
export interface GitBackupDownloadResultInvalid {
|
|
124
|
-
success: false;
|
|
125
|
-
error: Error;
|
|
126
|
-
}
|
|
127
|
-
export type GitBackupDownloadResult =
|
|
128
|
-
| GitBackupDownloadResultValid
|
|
129
|
-
| GitBackupDownloadResultInvalid;
|
|
130
|
-
/**
|
|
131
|
-
* Downloads a git backup bundle from remote storage.
|
|
132
|
-
* Handles both empty backups (no bundle file) and regular backups with bundle files.
|
|
133
|
-
* @returns The path to the downloaded bundle file, or undefined if it's an empty backup
|
|
134
|
-
*/
|
|
135
|
-
export declare function downloadGitBackup(
|
|
136
|
-
sys: DevToolsSys,
|
|
137
|
-
response: BackupMetadata,
|
|
138
|
-
): Promise<GitBackupDownloadResult>;
|
|
139
|
-
/**
|
|
140
|
-
* Uploads a file stream to a signed URL (Google Cloud Storage).
|
|
141
|
-
* Uses MD5 hash for content verification as required by GCS.
|
|
142
|
-
*/
|
|
143
|
-
export declare function uploadFileStream(
|
|
144
|
-
filePath: string,
|
|
145
|
-
signedUrl: string,
|
|
146
|
-
size: number,
|
|
147
|
-
contentMd5: string,
|
|
148
|
-
): Promise<Response>;
|
|
149
|
-
export declare function computeMD5Hash(bundlePath: string): Promise<{
|
|
150
|
-
contentMd5: string;
|
|
151
|
-
size: number;
|
|
152
|
-
}>;
|
|
153
|
-
/**
|
|
154
|
-
* Updates the last commit hash in the database for tracking purposes.
|
|
155
|
-
* This is called frequently throughout the codebase (after every commit creation)
|
|
156
|
-
* to track the current state and determine if backups are up-to-date.
|
|
157
|
-
*/
|
|
158
|
-
export declare function setRuntimeStatus(
|
|
159
|
-
sys: DevToolsSys,
|
|
160
|
-
credentials: Credentials,
|
|
161
|
-
data: CodegenRuntimeStatus,
|
|
162
|
-
): Promise<any>;
|
|
163
|
-
/**
|
|
164
|
-
* Computes a unique backup reference string that combines version, repo URL, and commit hash.
|
|
165
|
-
* This reference can be used to identify and retrieve specific backups.
|
|
166
|
-
*/
|
|
167
|
-
export declare function computeBackupRef(input: {
|
|
168
|
-
version: string | undefined;
|
|
169
|
-
originalRepoUrl: string | undefined;
|
|
170
|
-
commitHash: string | undefined;
|
|
171
|
-
}): string | undefined;
|
|
172
|
-
export {};
|