@builder.io/dev-tools 1.17.5-dev.202510300849.f412af03a → 1.17.6-dev.202510301013.264a2981d
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 +20 -13
- package/cli/index.cjs.map +2 -2
- 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 +61 -37
- package/server/index.mjs +61 -37
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/common/ast/convert-values.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/cli/repo-connect/env-collector.d.ts +0 -27
- package/types/cli/repo-connect/file-collector.d.ts +0 -33
- package/types/cli/repo-connect/git-detector.d.ts +0 -21
- package/types/cli/repo-connect/install-runner.d.ts +0 -10
- package/types/cli/repo-connect/package-detector.d.ts +0 -21
- package/types/cli/repo-connect/repo-connect.d.ts +0 -6
- package/types/cli/utils/env-filter.d.ts +0 -33
- package/types/cli/utils/file-overrides-manager.d.ts +0 -77
- package/types/cli/utils/file-overrides-manager.test.d.ts +0 -1
- package/types/cli/utils/lock-file-example.d.ts +0 -30
- package/types/cli/utils/sudo-helper.d.ts +0 -18
- 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 -44
- 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 -1
- package/types/packages/dev-tools/cli/auth/auth-utils.d.ts +0 -2
- package/types/packages/dev-tools/cli/auth/auth.d.ts +0 -3
- package/types/packages/dev-tools/cli/auth/status.d.ts +0 -3
- package/types/packages/dev-tools/cli/backup.d.ts +0 -118
- package/types/packages/dev-tools/cli/builder-add/interface.d.ts +0 -5
- 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 -12
- 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 -99
- package/types/packages/dev-tools/cli/code.d.ts +0 -7
- package/types/packages/dev-tools/cli/codegen.d.ts +0 -350
- package/types/packages/dev-tools/cli/constants.d.ts +0 -1
- package/types/packages/dev-tools/cli/credentials.d.ts +0 -53
- package/types/packages/dev-tools/cli/download.d.ts +0 -10
- 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 -24
- package/types/packages/dev-tools/cli/figma-publish.spec.d.ts +0 -1
- package/types/packages/dev-tools/cli/figma-utils.d.ts +0 -31
- package/types/packages/dev-tools/cli/figma.d.ts +0 -4
- package/types/packages/dev-tools/cli/generate.d.ts +0 -16
- package/types/packages/dev-tools/cli/help.d.ts +0 -1
- package/types/packages/dev-tools/cli/incremental-tsc.d.ts +0 -30
- package/types/packages/dev-tools/cli/index.d.ts +0 -97
- package/types/packages/dev-tools/cli/indexing.d.ts +0 -5
- package/types/packages/dev-tools/cli/launch/InitStateMachine.d.ts +0 -77
- package/types/packages/dev-tools/cli/launch/config.d.ts +0 -6
- package/types/packages/dev-tools/cli/launch/dev-server-orchestrator.d.ts +0 -85
- package/types/packages/dev-tools/cli/launch/dry-run-backup.d.ts +0 -9
- package/types/packages/dev-tools/cli/launch/errors.d.ts +0 -3
- package/types/packages/dev-tools/cli/launch/github.d.ts +0 -3
- package/types/packages/dev-tools/cli/launch/grafana.d.ts +0 -4
- package/types/packages/dev-tools/cli/launch/helpers.d.ts +0 -29
- 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 -12
- package/types/packages/dev-tools/cli/launch/proxy.d.ts +0 -3
- package/types/packages/dev-tools/cli/launch/server.d.ts +0 -20
- package/types/packages/dev-tools/cli/launch.d.ts +0 -90
- package/types/packages/dev-tools/cli/prettier.d.ts +0 -3
- 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 -15
- package/types/packages/dev-tools/cli/repo-indexing/component-indexing.d.ts +0 -19
- package/types/packages/dev-tools/cli/repo-indexing/icons.d.ts +0 -23
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing-utils.d.ts +0 -56
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.d.ts +0 -24
- 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 -6
- package/types/packages/dev-tools/cli/report/figma-report.d.ts +0 -54
- package/types/packages/dev-tools/cli/server-ws.d.ts +0 -50
- package/types/packages/dev-tools/cli/spinner.d.ts +0 -6
- package/types/packages/dev-tools/cli/sync-utils.d.ts +0 -22
- package/types/packages/dev-tools/cli/track.d.ts +0 -5
- package/types/packages/dev-tools/cli/utils/component-group-mdx-prompt.d.ts +0 -1
- package/types/packages/dev-tools/cli/utils/dev-server-url-parser.d.ts +0 -12
- 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 -2
- package/types/packages/dev-tools/cli/utils/git.d.ts +0 -22
- package/types/packages/dev-tools/cli/utils/open.d.ts +0 -1
- package/types/packages/dev-tools/cli/utils/parseGitDiff.d.ts +0 -8
- package/types/packages/dev-tools/cli/utils/repo-indexing-agent-prompt.d.ts +0 -1
- 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 -92
- 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 -12
- package/types/packages/dev-tools/client/edit-button/document-listeners.d.ts +0 -2
- 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 -4
- package/types/packages/dev-tools/client/menu/pages/component-input.d.ts +0 -3
- package/types/packages/dev-tools/client/menu/pages/component-list.d.ts +0 -4
- 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 -2
- 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 -14
- package/types/packages/dev-tools/common/ast/app-dependencies.d.ts +0 -4
- package/types/packages/dev-tools/common/ast/component-info.d.ts +0 -9
- package/types/packages/dev-tools/common/ast/component-input-types.d.ts +0 -24
- package/types/packages/dev-tools/common/ast/component-registry.d.ts +0 -9
- package/types/packages/dev-tools/common/ast/convert-values.d.ts +0 -11
- 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 -7
- 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 -1
- package/types/packages/dev-tools/common/ast/ensure-imports.d.ts +0 -9
- 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 -8
- 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 -4
- 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 -7
- 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 -3
- 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 -5
- package/types/packages/dev-tools/common/ast/utils.d.ts +0 -26
- 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 -27
- package/types/packages/dev-tools/common/builder/builder-sdks.d.ts +0 -10
- package/types/packages/dev-tools/common/builder/content-generation.d.ts +0 -8
- package/types/packages/dev-tools/common/builder/content-ids.d.ts +0 -3
- package/types/packages/dev-tools/common/cache.d.ts +0 -3
- package/types/packages/dev-tools/common/constants.d.ts +0 -16
- package/types/packages/dev-tools/common/dotenv.d.ts +0 -6
- package/types/packages/dev-tools/common/dotenv.test.d.ts +0 -1
- package/types/packages/dev-tools/common/errors.d.ts +0 -32
- package/types/packages/dev-tools/common/estimate-code-tokens.d.ts +0 -1
- package/types/packages/dev-tools/common/fs.d.ts +0 -6
- package/types/packages/dev-tools/common/interactive-select-files.d.ts +0 -3
- package/types/packages/dev-tools/common/mem-sys.d.ts +0 -8
- package/types/packages/dev-tools/common/node-request.d.ts +0 -7
- package/types/packages/dev-tools/common/path.d.ts +0 -4
- package/types/packages/dev-tools/common/test-utils.d.ts +0 -9
- package/types/packages/dev-tools/common/typescript.d.ts +0 -9
- package/types/packages/dev-tools/common/utils.d.ts +0 -28
- 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 -10
- 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 -3
- 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 -2
- 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 -18
- 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 -5
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.d.ts +0 -9
- 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 -2
- package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.d.ts +0 -16
- 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 -3
- 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 -6
- package/types/packages/dev-tools/core/adapters/angular/index.d.ts +0 -14
- 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 -28
- package/types/packages/dev-tools/core/adapters/next/next-api-key.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/next/next-component-info.d.ts +0 -5
- 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 -4
- package/types/packages/dev-tools/core/adapters/next/next-ensure-builder-setup.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.d.ts +0 -3
- 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 -13
- 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 -3
- 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 -16
- package/types/packages/dev-tools/core/adapters/qwik-city/index.d.ts +0 -8
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-api-key.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +0 -3
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.d.ts +0 -15
- 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 -4
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +0 -2
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.d.ts +0 -16
- 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 -3
- 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 -6
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ts-program.d.ts +0 -2
- package/types/packages/dev-tools/core/adapters/react/index.d.ts +0 -13
- package/types/packages/dev-tools/core/adapters/react/react-api-key.d.ts +0 -6
- package/types/packages/dev-tools/core/adapters/react/react-builder-sdk-setup.d.ts +0 -2
- package/types/packages/dev-tools/core/adapters/react/react-component-info.d.ts +0 -5
- package/types/packages/dev-tools/core/adapters/react/react-components.d.ts +0 -18
- 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 -4
- package/types/packages/dev-tools/core/adapters/react/react-registry-parse.d.ts +0 -13
- 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 -3
- 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 -7
- package/types/packages/dev-tools/core/adapters/react/react-ts-program.d.ts +0 -2
- package/types/packages/dev-tools/core/adapters/remix/index.d.ts +0 -13
- package/types/packages/dev-tools/core/adapters/remix/remix-api-key.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/remix/remix-components.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-builder-setup.d.ts +0 -5
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.d.ts +0 -3
- 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 -16
- package/types/packages/dev-tools/core/adapters/remix/remix-registry.d.ts +0 -3
- 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 -7
- package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.d.ts +0 -7
- 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 -14
- package/types/packages/dev-tools/core/adapters/vue/vue-api-key.d.ts +0 -6
- package/types/packages/dev-tools/core/adapters/vue/vue-components.d.ts +0 -4
- package/types/packages/dev-tools/core/adapters/vue/vue-ensure-builder-setup.d.ts +0 -7
- package/types/packages/dev-tools/core/adapters/vue/vue-registry-parse.d.ts +0 -16
- package/types/packages/dev-tools/core/adapters/vue/vue-registry.d.ts +0 -5
- package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.d.ts +0 -11
- 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 -3
- package/types/packages/dev-tools/core/client-script.d.ts +0 -1
- package/types/packages/dev-tools/core/create-dev-tools.d.ts +0 -2
- package/types/packages/dev-tools/core/detect-frameworks.d.ts +0 -4
- package/types/packages/dev-tools/core/ensure-config-plugin.d.ts +0 -3
- package/types/packages/dev-tools/core/find-dependencies.d.ts +0 -7
- package/types/packages/dev-tools/core/import-export-registry.d.ts +0 -3
- package/types/packages/dev-tools/core/index.d.ts +0 -8
- package/types/packages/dev-tools/figma/index.d.ts +0 -88
- package/types/packages/dev-tools/node/index.d.ts +0 -2
- package/types/packages/dev-tools/node/node-sys.d.ts +0 -14
- package/types/packages/dev-tools/remix/index.d.ts +0 -6
- package/types/packages/dev-tools/server/auth.d.ts +0 -2
- package/types/packages/dev-tools/server/builder-connect.d.ts +0 -6
- package/types/packages/dev-tools/server/client-script.d.ts +0 -3
- package/types/packages/dev-tools/server/create-dev-tools-server.d.ts +0 -2
- package/types/packages/dev-tools/server/dev-tools-api.d.ts +0 -2
- package/types/packages/dev-tools/server/dev-tools-http-server.d.ts +0 -2
- package/types/packages/dev-tools/server/index.d.ts +0 -3
- package/types/packages/dev-tools/server/request-handler.d.ts +0 -3
- 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 -31
- package/types/packages/dev-tools/types/websocket-types.d.ts +0 -17
- package/types/packages/dev-tools/types.d.ts +0 -525
- 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,27 +0,0 @@
|
|
|
1
|
-
import type { EnvironmentVariable } from "$/ai-utils";
|
|
2
|
-
import type { DevToolsSys } from "../../types";
|
|
3
|
-
interface CategorizedEnvVar {
|
|
4
|
-
key: string;
|
|
5
|
-
value: string;
|
|
6
|
-
category: string;
|
|
7
|
-
isSecret: boolean;
|
|
8
|
-
shouldPreselect: boolean;
|
|
9
|
-
fromDotEnv?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Filter and categorize environment variables
|
|
13
|
-
*/
|
|
14
|
-
export declare function filterAndCategorizeEnvVars(dotEnvVars?: Record<string, string>): CategorizedEnvVar[];
|
|
15
|
-
/**
|
|
16
|
-
* Present multiselect UI for environment variables
|
|
17
|
-
*/
|
|
18
|
-
export declare function selectEnvironmentVariables(sys: DevToolsSys, gitRoot: string): Promise<EnvironmentVariable[] | null>;
|
|
19
|
-
/**
|
|
20
|
-
* Format environment variables summary
|
|
21
|
-
*/
|
|
22
|
-
export declare function formatEnvSummary(envVars: EnvironmentVariable[]): {
|
|
23
|
-
total: number;
|
|
24
|
-
secrets: number;
|
|
25
|
-
public: number;
|
|
26
|
-
};
|
|
27
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../../types";
|
|
2
|
-
import type { FileOverride } from "$/ai-utils";
|
|
3
|
-
export interface CollectedFiles {
|
|
4
|
-
projectNpmrc?: {
|
|
5
|
-
path: string;
|
|
6
|
-
content: string;
|
|
7
|
-
};
|
|
8
|
-
userNpmrc?: {
|
|
9
|
-
path: string;
|
|
10
|
-
content: string;
|
|
11
|
-
};
|
|
12
|
-
etcHosts?: {
|
|
13
|
-
path: string;
|
|
14
|
-
content: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Collect configuration files from the project and system
|
|
19
|
-
*/
|
|
20
|
-
export declare function collectConfigFiles(sys: DevToolsSys, gitRoot: string): Promise<CollectedFiles>;
|
|
21
|
-
/**
|
|
22
|
-
* Convert collected files to FileOverride array with proper path conventions
|
|
23
|
-
*
|
|
24
|
-
* Path conventions:
|
|
25
|
-
* - ./ prefix = relative to git repository root
|
|
26
|
-
* - ~/ prefix = relative to home directory
|
|
27
|
-
* - absolute paths = only for well-known system files
|
|
28
|
-
*/
|
|
29
|
-
export declare function filesToFileOverrides(collected: CollectedFiles): FileOverride[];
|
|
30
|
-
/**
|
|
31
|
-
* Format collected files summary
|
|
32
|
-
*/
|
|
33
|
-
export declare function formatFilesSummary(collected: CollectedFiles): string[];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../../types";
|
|
2
|
-
export interface GitInfo {
|
|
3
|
-
gitRoot: string;
|
|
4
|
-
recommendedRoot?: string;
|
|
5
|
-
originUrl: string;
|
|
6
|
-
repoProvider: "github" | "gitlab" | "bitbucket" | "azure" | "custom";
|
|
7
|
-
repoProtocol: "https" | "ssh";
|
|
8
|
-
repoFullName: string;
|
|
9
|
-
repoOwner: string;
|
|
10
|
-
repoName: string;
|
|
11
|
-
isPrivate: boolean;
|
|
12
|
-
projectName: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Detect git repository information
|
|
16
|
-
*/
|
|
17
|
-
export declare function detectGitInfo(sys: DevToolsSys): Promise<GitInfo>;
|
|
18
|
-
/**
|
|
19
|
-
* Display git info in a user-friendly format
|
|
20
|
-
*/
|
|
21
|
-
export declare function formatGitInfo(info: GitInfo): string[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface InstallResult {
|
|
2
|
-
success: boolean;
|
|
3
|
-
command: string;
|
|
4
|
-
exitCode?: number;
|
|
5
|
-
skipped: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Run install command with live output and retry logic
|
|
9
|
-
*/
|
|
10
|
-
export declare function runInstallCommand(cwd: string, initialCommand?: string): Promise<InstallResult>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { SetupMiseDependency } from "$/ai-utils";
|
|
2
|
-
export interface PackageVersions {
|
|
3
|
-
node?: string;
|
|
4
|
-
npm?: string;
|
|
5
|
-
pnpm?: string;
|
|
6
|
-
yarn?: string;
|
|
7
|
-
bun?: string;
|
|
8
|
-
deno?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Detect versions of installed package managers and runtimes
|
|
12
|
-
*/
|
|
13
|
-
export declare function detectPackageVersions(): Promise<PackageVersions>;
|
|
14
|
-
/**
|
|
15
|
-
* Convert package versions to SetupMiseDependency array
|
|
16
|
-
*/
|
|
17
|
-
export declare function packagesToSetupDependencies(versions: PackageVersions): SetupMiseDependency[];
|
|
18
|
-
/**
|
|
19
|
-
* Format package versions for display
|
|
20
|
-
*/
|
|
21
|
-
export declare function formatPackageVersions(versions: PackageVersions): string;
|
|
@@ -1,33 +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(env?: Record<string, string | undefined>): Record<string, string>;
|
|
14
|
-
/**
|
|
15
|
-
* Load environment variables from .env files in the working directory.
|
|
16
|
-
* Checks multiple .env file variants in order of priority.
|
|
17
|
-
*
|
|
18
|
-
* @param sys - DevToolsSys instance for file system access
|
|
19
|
-
* @param workingDirectory - Directory to look for .env files (defaults to cwd)
|
|
20
|
-
* @param envFiles - Array of .env file names to check (defaults to standard .env files)
|
|
21
|
-
* @returns Object containing environment variables from .env files
|
|
22
|
-
*/
|
|
23
|
-
export declare function loadDotEnvVars(sys: DevToolsSys, workingDirectory?: string, envFiles?: string[]): Promise<Record<string, string>>;
|
|
24
|
-
/**
|
|
25
|
-
* Get a combined environment object with:
|
|
26
|
-
* 1. Filtered process.env (excluding npm_*, IDE variables, etc.)
|
|
27
|
-
* 2. .env file variables (highest priority)
|
|
28
|
-
*
|
|
29
|
-
* @param sys - DevToolsSys instance
|
|
30
|
-
* @param workingDirectory - Directory to look for .env files
|
|
31
|
-
* @returns Combined and filtered environment variables
|
|
32
|
-
*/
|
|
33
|
-
export declare function getFilteredEnvWithDotEnv(sys: DevToolsSys, workingDirectory?: string): Promise<Record<string, string>>;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export interface FileOverride {
|
|
2
|
-
/**
|
|
3
|
-
* Path where the file should be written.
|
|
4
|
-
* - Absolute paths: "/app/.env", "/etc/config/app.conf"
|
|
5
|
-
* - Tilde expansion: "~/.config/app.json" (expands to home directory)
|
|
6
|
-
* - Relative paths: "./file.txt", "config.json" (resolved against working directory)
|
|
7
|
-
*/
|
|
8
|
-
path: string;
|
|
9
|
-
/**
|
|
10
|
-
* Content to write to the file.
|
|
11
|
-
*/
|
|
12
|
-
content: string;
|
|
13
|
-
}
|
|
14
|
-
export interface SentryLike {
|
|
15
|
-
captureException: (error: unknown) => void;
|
|
16
|
-
}
|
|
17
|
-
export interface ApplyFileOverridesResult {
|
|
18
|
-
success: boolean;
|
|
19
|
-
appliedFiles: string[];
|
|
20
|
-
failedFiles: Array<{
|
|
21
|
-
path: string;
|
|
22
|
-
error: string;
|
|
23
|
-
}>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Expand tilde (~) in file path to home directory
|
|
27
|
-
* @param filePath - The file path that may contain tilde
|
|
28
|
-
* @returns Expanded path with home directory
|
|
29
|
-
*/
|
|
30
|
-
export declare function expandTildePath(filePath: string): string;
|
|
31
|
-
/**
|
|
32
|
-
* Resolve a file path to an absolute path.
|
|
33
|
-
* Handles tilde expansion, relative paths, and absolute paths.
|
|
34
|
-
* @param filePath - The file path to resolve
|
|
35
|
-
* @param workingDirectory - Optional working directory for resolving relative paths
|
|
36
|
-
* @returns Resolved absolute path
|
|
37
|
-
*/
|
|
38
|
-
export declare function resolveFilePath(filePath: string, workingDirectory?: string): string;
|
|
39
|
-
/**
|
|
40
|
-
* Validate that a file path can be resolved to an absolute path
|
|
41
|
-
* Supports tilde (~) expansion and relative paths (when workingDirectory is provided)
|
|
42
|
-
* @param filePath - The file path to validate
|
|
43
|
-
* @param workingDirectory - Optional working directory for resolving relative paths
|
|
44
|
-
* @returns true if valid, false otherwise
|
|
45
|
-
*/
|
|
46
|
-
export declare function isValidFilePath(filePath: string, workingDirectory?: string): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Apply multiple file overrides to the filesystem.
|
|
49
|
-
* This function will:
|
|
50
|
-
* 1. Validate each file path
|
|
51
|
-
* 2. Resolve relative paths against working directory
|
|
52
|
-
* 3. Create directories as needed
|
|
53
|
-
* 4. Write files with the provided content
|
|
54
|
-
* 5. Return detailed results for success/failure of each file
|
|
55
|
-
*
|
|
56
|
-
* @param overrides - Array of file overrides to apply
|
|
57
|
-
* @param workingDirectory - Optional working directory for resolving relative paths
|
|
58
|
-
* @param sentry - Optional Sentry instance for error logging
|
|
59
|
-
* @returns Object with overall success status and details for each file
|
|
60
|
-
*/
|
|
61
|
-
export declare function applyFileOverrides(overrides: FileOverride[], workingDirectory?: string, sentry?: SentryLike): ApplyFileOverridesResult;
|
|
62
|
-
/**
|
|
63
|
-
* Read a file and return its content
|
|
64
|
-
* Supports tilde (~) expansion and relative paths.
|
|
65
|
-
* @param filePath - The path to the file to read
|
|
66
|
-
* @param workingDirectory - Optional working directory for resolving relative paths
|
|
67
|
-
* @returns The file content or null if it cannot be read
|
|
68
|
-
*/
|
|
69
|
-
export declare function readFileOverride(filePath: string, workingDirectory?: string): string | null;
|
|
70
|
-
/**
|
|
71
|
-
* Check if a file exists at the given path
|
|
72
|
-
* Supports tilde (~) expansion and relative paths.
|
|
73
|
-
* @param filePath - The path to check
|
|
74
|
-
* @param workingDirectory - Optional working directory for resolving relative paths
|
|
75
|
-
* @returns true if the file exists, false otherwise
|
|
76
|
-
*/
|
|
77
|
-
export declare function fileOverrideExists(filePath: string, workingDirectory?: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -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,18 +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(command: string, sys: DevToolsSys): Promise<{
|
|
15
|
-
stdout: string;
|
|
16
|
-
stderr: string;
|
|
17
|
-
error?: Error;
|
|
18
|
-
}>;
|
|
@@ -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,44 +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(name: string, template: string | undefined, handler: (cli: Handler, expect: ExpectStatic) => Promise<void>, timeout?: number, skip?: boolean): void;
|
|
31
|
-
type Handler = (cmd: "builderio" | "create-builderio", args: string[], options?: {
|
|
32
|
-
debug?: boolean;
|
|
33
|
-
}) => CLI;
|
|
34
|
-
export declare function createCLI(template: string | undefined, handler: (cli: Handler) => Promise<void>): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* A snapshot maps a file's relative path to its hash.
|
|
37
|
-
*/
|
|
38
|
-
type Snapshot = {
|
|
39
|
-
cwd: string;
|
|
40
|
-
hashes: {
|
|
41
|
-
[file: string]: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
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 +0,0 @@
|
|
|
1
|
-
export declare function abortSignalAny(input: (AbortSignal | undefined)[]): AbortSignal;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import type { Credentials } from "./credentials";
|
|
3
|
-
import { type GitBackupUploadUrlResult, type GitBackupUploadUrlOptions, type GitBackupRecordOptions, type GitBackupRecordResult, type BackupMetadata, type WorkspaceConfiguration, type CodegenRuntimeStatus, type BackupGitRepoResult } from "$/ai-utils";
|
|
4
|
-
interface BackupGitRepoOptions {
|
|
5
|
-
sys: DevToolsSys;
|
|
6
|
-
credentials: Credentials;
|
|
7
|
-
projectId: string;
|
|
8
|
-
branchName: string;
|
|
9
|
-
repoPath: string;
|
|
10
|
-
aiBranch: string;
|
|
11
|
-
featureBranch: string;
|
|
12
|
-
workspace: WorkspaceConfiguration | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* If true, the system is connected to the git provider.
|
|
15
|
-
* If false, the system is offline and will not fetch any branches from origin.
|
|
16
|
-
*/
|
|
17
|
-
isConnectedToProvider: boolean;
|
|
18
|
-
debug: boolean;
|
|
19
|
-
forcedFullBackup: boolean;
|
|
20
|
-
canAbortMerge: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Creates a backup of git repository changes made by the AI system.
|
|
24
|
-
*
|
|
25
|
-
* This function handles both partial and full backups:
|
|
26
|
-
* - Partial backups: Only include commits created locally (on aiBranch) that aren't in upstream.
|
|
27
|
-
* This keeps backups small and doesn't store the entire repo's code. Requires a clone from
|
|
28
|
-
* upstream plus applying the backup to restore.
|
|
29
|
-
* - Full backups: Complete repo backup that can be directly cloned from.
|
|
30
|
-
*
|
|
31
|
-
* The aiBranch is where the AI creates commits as work progresses, while featureBranch
|
|
32
|
-
* is the base branch where work started (usually "main").
|
|
33
|
-
*/
|
|
34
|
-
export declare function backupGitRepo({ sys, credentials, projectId, branchName, repoPath, aiBranch, featureBranch, workspace, isConnectedToProvider, debug, forcedFullBackup, canAbortMerge }: BackupGitRepoOptions): Promise<BackupGitRepoResult>;
|
|
35
|
-
type InitialCommitHashResult = {
|
|
36
|
-
initialBranch: string;
|
|
37
|
-
initialCommitHash: string | undefined;
|
|
38
|
-
partial: false;
|
|
39
|
-
forcedFullBackup: true;
|
|
40
|
-
} | {
|
|
41
|
-
initialBranch: string;
|
|
42
|
-
initialCommitHash: string;
|
|
43
|
-
partial: boolean;
|
|
44
|
-
forcedFullBackup: false;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Determines the initial commit hash and whether to create a partial or full backup.
|
|
48
|
-
*
|
|
49
|
-
* Partial backups are preferred to keep backup sizes small, but full backups are needed when:
|
|
50
|
-
* - The repo is an example/starter template (users can't push to origin, need to fork)
|
|
51
|
-
* - There's no origin remote configured
|
|
52
|
-
*
|
|
53
|
-
* For partial backups, we fetch the latest state of the chosen upstream branch from origin
|
|
54
|
-
* to ensure the backup has the correct commit range reference.
|
|
55
|
-
*/
|
|
56
|
-
export declare function getInitialCommitHash({ sys, repoPath, featureBranch, debug, workspace, isConnectedToProvider, forcedFullBackup, credentials, projectId }: {
|
|
57
|
-
sys: DevToolsSys;
|
|
58
|
-
repoPath: string;
|
|
59
|
-
featureBranch: string;
|
|
60
|
-
debug: boolean;
|
|
61
|
-
workspace: WorkspaceConfiguration | undefined;
|
|
62
|
-
isConnectedToProvider: boolean;
|
|
63
|
-
forcedFullBackup: boolean;
|
|
64
|
-
credentials: Credentials;
|
|
65
|
-
projectId: string;
|
|
66
|
-
}): Promise<InitialCommitHashResult>;
|
|
67
|
-
/**
|
|
68
|
-
* Requests a signed upload URL for git backup
|
|
69
|
-
*/
|
|
70
|
-
export declare function requestSignedUploadUrl(credentials: Credentials, body: GitBackupUploadUrlOptions): Promise<GitBackupUploadUrlResult | null>;
|
|
71
|
-
/**
|
|
72
|
-
* Records a successful git backup in Firebase
|
|
73
|
-
*/
|
|
74
|
-
export declare function recordBackup(credentials: Credentials, body: GitBackupRecordOptions): Promise<GitBackupRecordResult>;
|
|
75
|
-
export interface GitBackupDownloadResultValid {
|
|
76
|
-
success: true;
|
|
77
|
-
partial: boolean;
|
|
78
|
-
bundlePath: string | undefined;
|
|
79
|
-
bundleSize: number;
|
|
80
|
-
gitBranchName: string;
|
|
81
|
-
lastCommitHash: string;
|
|
82
|
-
}
|
|
83
|
-
export interface GitBackupDownloadResultInvalid {
|
|
84
|
-
success: false;
|
|
85
|
-
error: Error;
|
|
86
|
-
}
|
|
87
|
-
export type GitBackupDownloadResult = GitBackupDownloadResultValid | GitBackupDownloadResultInvalid;
|
|
88
|
-
/**
|
|
89
|
-
* Downloads a git backup bundle from remote storage.
|
|
90
|
-
* Handles both empty backups (no bundle file) and regular backups with bundle files.
|
|
91
|
-
* @returns The path to the downloaded bundle file, or undefined if it's an empty backup
|
|
92
|
-
*/
|
|
93
|
-
export declare function downloadGitBackup(sys: DevToolsSys, response: BackupMetadata): Promise<GitBackupDownloadResult>;
|
|
94
|
-
/**
|
|
95
|
-
* Uploads a file stream to a signed URL (Google Cloud Storage).
|
|
96
|
-
* Uses MD5 hash for content verification as required by GCS.
|
|
97
|
-
*/
|
|
98
|
-
export declare function uploadFileStream(filePath: string, signedUrl: string, size: number, contentMd5: string): Promise<Response>;
|
|
99
|
-
export declare function computeMD5Hash(bundlePath: string): Promise<{
|
|
100
|
-
contentMd5: string;
|
|
101
|
-
size: number;
|
|
102
|
-
}>;
|
|
103
|
-
/**
|
|
104
|
-
* Updates the last commit hash in the database for tracking purposes.
|
|
105
|
-
* This is called frequently throughout the codebase (after every commit creation)
|
|
106
|
-
* to track the current state and determine if backups are up-to-date.
|
|
107
|
-
*/
|
|
108
|
-
export declare function setRuntimeStatus(sys: DevToolsSys, credentials: Credentials, data: CodegenRuntimeStatus): Promise<any>;
|
|
109
|
-
/**
|
|
110
|
-
* Computes a unique backup reference string that combines version, repo URL, and commit hash.
|
|
111
|
-
* This reference can be used to identify and retrieve specific backups.
|
|
112
|
-
*/
|
|
113
|
-
export declare function computeBackupRef(input: {
|
|
114
|
-
version: string | undefined;
|
|
115
|
-
originalRepoUrl: string | undefined;
|
|
116
|
-
commitHash: string | undefined;
|
|
117
|
-
}): string | undefined;
|
|
118
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { AddCliOptions, FileNode, FolderNode, Snippet, SyncInfo } from "../../types";
|
|
2
|
-
export declare function addCommand(opts: AddCliOptions): Promise<SyncInfo | undefined>;
|
|
3
|
-
export declare function fetchSnippet(id: string): Promise<Snippet | null>;
|
|
4
|
-
export declare function writeFiles(appRootDir: string, snippet: Snippet, files: Array<FileNode | FolderNode>, rootPath: string, addSessionLink: boolean): Promise<FileNode[]>;
|
|
5
|
-
export declare function suggestRootPath(appRootDir: string, framework: string): string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import type { Credentials } from "./credentials";
|
|
3
|
-
import type { CodebaseSearchOptions, CodebaseSearchResponse } from "$/ai-utils";
|
|
4
|
-
export declare function shouldIncludeFile(inputFile: string, ctx: {
|
|
5
|
-
foundFiles: string[];
|
|
6
|
-
allFiles: string[];
|
|
7
|
-
selectedFilePaths: Map<string, number>;
|
|
8
|
-
cwd: string;
|
|
9
|
-
appRootDir: string;
|
|
10
|
-
fallbackImportance: number | 0;
|
|
11
|
-
}): number | 0;
|
|
12
|
-
export declare function searchCodeBase(sys: DevToolsSys, credentials: Credentials, signal: AbortSignal | undefined, body: CodebaseSearchOptions): Promise<CodebaseSearchResponse | null>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type { AccessResult, CodeGenPosition, CodeGenTools, CodegenTurn, ContentMessageItemToolResult, FusionConfig, GenerateCompletionStep, Permission, ProjectFile, UserSource, WorkspaceFolder } from "$/ai-utils";
|
|
2
|
-
import type { DevToolsSys } from "../core";
|
|
3
|
-
import { type DevServerOrchestrator } from "./launch/dev-server-orchestrator";
|
|
4
|
-
import type { CodeGenEventEmitter } from "./codegen";
|
|
5
|
-
import type { Credentials } from "./credentials";
|
|
6
|
-
export interface LLMToolCalls {
|
|
7
|
-
name: CodeGenTools;
|
|
8
|
-
input: Record<string, any>;
|
|
9
|
-
id: string;
|
|
10
|
-
abortController: AbortController;
|
|
11
|
-
}
|
|
12
|
-
export interface ToolResolution {
|
|
13
|
-
toolResult: string;
|
|
14
|
-
isError: boolean;
|
|
15
|
-
title?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface FusionContext {
|
|
18
|
-
devServerOrchestrator?: DevServerOrchestrator;
|
|
19
|
-
git: boolean;
|
|
20
|
-
gitRemote?: string;
|
|
21
|
-
gitAutoInit?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface ToolContext extends Partial<FusionContext> {
|
|
24
|
-
sys: DevToolsSys;
|
|
25
|
-
credentials: Credentials;
|
|
26
|
-
files: ProjectFile[];
|
|
27
|
-
user: UserSource;
|
|
28
|
-
position: CodeGenPosition;
|
|
29
|
-
emitter: CodeGenEventEmitter;
|
|
30
|
-
fusionConfig: FusionConfig | undefined;
|
|
31
|
-
canCollapseWorkspace: boolean;
|
|
32
|
-
signal: AbortSignal;
|
|
33
|
-
workingDirectory: string;
|
|
34
|
-
allowedCommands: RegExp[];
|
|
35
|
-
getAllFiles: (options: {
|
|
36
|
-
getDotFiles?: boolean;
|
|
37
|
-
pattern?: string;
|
|
38
|
-
}) => Promise<string[]>;
|
|
39
|
-
restore: (options: {
|
|
40
|
-
location: "before" | "after";
|
|
41
|
-
predicate: (turn: CodegenTurn | null, index: number) => boolean;
|
|
42
|
-
dryRun?: boolean;
|
|
43
|
-
revert?: boolean;
|
|
44
|
-
forceReplay?: boolean;
|
|
45
|
-
debug?: string;
|
|
46
|
-
}) => Promise<{
|
|
47
|
-
undone: string[] | null;
|
|
48
|
-
message: string;
|
|
49
|
-
}>;
|
|
50
|
-
bashWorkingDirectory: string;
|
|
51
|
-
filterText: (text: string) => string;
|
|
52
|
-
resolveWorkspacePath: (path: string, forceWorkspace: boolean) => {
|
|
53
|
-
resolvedPath: string;
|
|
54
|
-
workspaceFolder?: WorkspaceFolder;
|
|
55
|
-
};
|
|
56
|
-
absolutePathToWorkspaceUrl: (absolutePath: string) => string | undefined;
|
|
57
|
-
workspaceFolders: Array<{
|
|
58
|
-
path: string;
|
|
59
|
-
name?: string;
|
|
60
|
-
}>;
|
|
61
|
-
patchFusionConfig: (patch: Partial<FusionConfig>) => void;
|
|
62
|
-
passThrough: (toolCall: LLMToolCalls, signal: AbortSignal) => Promise<ToolResolution>;
|
|
63
|
-
readFile: (filePath: string) => Promise<string | null>;
|
|
64
|
-
writeFile: (filePath: string, content: string | Uint8Array) => Promise<string | null>;
|
|
65
|
-
deleteFile: (filePath: string) => Promise<string | null>;
|
|
66
|
-
fileExists: (filePath: string) => Promise<{
|
|
67
|
-
absolutePath: string | undefined;
|
|
68
|
-
recommendedPath: string | undefined;
|
|
69
|
-
workspaceFolder: WorkspaceFolder | undefined;
|
|
70
|
-
virtual: boolean;
|
|
71
|
-
}>;
|
|
72
|
-
listDir: (dirPath: string) => Promise<string[]>;
|
|
73
|
-
evaluateAccess: (resource: string, permission: Permission) => AccessResult;
|
|
74
|
-
stat: (filePath: string) => Promise<{
|
|
75
|
-
isDirectory: () => boolean;
|
|
76
|
-
isFile: () => boolean;
|
|
77
|
-
size: number;
|
|
78
|
-
} | null>;
|
|
79
|
-
}
|
|
80
|
-
export declare function resolveToolCalls(toolContext: ToolContext, toolCalls: LLMToolCalls[], existingToolResults: ContentMessageItemToolResult[] | undefined, onStep: (step: GenerateCompletionStep) => void): Promise<ContentMessageItemToolResult[]>;
|
|
81
|
-
interface RipgrepMatch {
|
|
82
|
-
path: string;
|
|
83
|
-
lineNumber: number;
|
|
84
|
-
lineContent: string;
|
|
85
|
-
}
|
|
86
|
-
interface RipgrepResult {
|
|
87
|
-
matches: RipgrepMatch[];
|
|
88
|
-
}
|
|
89
|
-
export declare function runRipgrep(sys: DevToolsSys, bashWorkingDirectory: string, pattern: string, includeGlob?: string, excludeGlob?: string): Promise<RipgrepResult>;
|
|
90
|
-
/**
|
|
91
|
-
* Returns true if query is likely a string literal rather than a regex.
|
|
92
|
-
* Returns false otherwise.
|
|
93
|
-
* This is intended to ensure that queries such as "import {" do not get
|
|
94
|
-
* interpreted as invalid regex values by ripgrep.
|
|
95
|
-
* @param query - The query to check
|
|
96
|
-
*/
|
|
97
|
-
export declare const isLikelyFixedString: (query: string) => boolean;
|
|
98
|
-
export declare function newAbortError(): Error;
|
|
99
|
-
export {};
|