@builder.io/dev-tools 1.17.2-dev.202510281637.65b31df66 → 1.17.3-dev.202510281822.f967e53db
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 +241 -288
- 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 +4 -13
- package/server/index.mjs +4 -13
- package/types/cli/codegen.d.ts +0 -4
- package/types/cli/credentials.d.ts +10 -1
- package/types/cli/utils/process-tracker.d.ts +0 -1
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/cli/utils/env-capture.d.ts +0 -89
- package/types/cli/utils/env-capture.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,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options for capturing environment variables from a setup command
|
|
3
|
-
*/
|
|
4
|
-
export interface EnvCaptureOptions {
|
|
5
|
-
/** The command to wrap with env capture */
|
|
6
|
-
command: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Result of environment capture
|
|
10
|
-
*/
|
|
11
|
-
export interface EnvCaptureResult {
|
|
12
|
-
/** The modified command that includes env capture */
|
|
13
|
-
command: string;
|
|
14
|
-
/** Path to the temporary file where env will be captured */
|
|
15
|
-
envFilePath: string;
|
|
16
|
-
/**
|
|
17
|
-
* Function to get the captured environment variables.
|
|
18
|
-
* This will read, parse, and cleanup the env file in one call.
|
|
19
|
-
* Returns undefined if the env file couldn't be read.
|
|
20
|
-
*/
|
|
21
|
-
getCapturedEnv: () => Promise<Record<string, string> | undefined>;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Wraps a command with environment variable capture at the end.
|
|
25
|
-
* The environment is captured to a temporary file that can be parsed later.
|
|
26
|
-
*
|
|
27
|
-
* @param options - Configuration for env capture
|
|
28
|
-
* @returns The modified command and a function to retrieve the captured env
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```typescript
|
|
32
|
-
* const { command, getCapturedEnv } = wrapCommandWithEnvCapture({
|
|
33
|
-
* command: 'npm install',
|
|
34
|
-
* });
|
|
35
|
-
*
|
|
36
|
-
* // Execute command...
|
|
37
|
-
* // Later, get the captured environment (reads, parses, and cleans up automatically):
|
|
38
|
-
* const env = await getCapturedEnv();
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export declare function wrapCommandWithEnvCapture(options: EnvCaptureOptions): EnvCaptureResult;
|
|
42
|
-
/**
|
|
43
|
-
* Parses an environment file into a key-value object.
|
|
44
|
-
* Handles multi-line values and empty lines.
|
|
45
|
-
*
|
|
46
|
-
* @param filePath - Path to the environment file
|
|
47
|
-
* @returns A promise that resolves to the parsed environment variables
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```typescript
|
|
51
|
-
* const env = await parseEnvFile('/tmp/env.txt');
|
|
52
|
-
* console.log(env.PATH); // "/usr/bin:/bin"
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare function parseEnvFile(filePath: string): Promise<Record<string, string>>;
|
|
56
|
-
/**
|
|
57
|
-
* Parses environment variable content into a key-value object.
|
|
58
|
-
* This is the core parsing logic extracted for easier testing.
|
|
59
|
-
*
|
|
60
|
-
* Environment format is: KEY=VALUE
|
|
61
|
-
* Each line represents one variable.
|
|
62
|
-
*
|
|
63
|
-
* @param content - The raw content from an env file
|
|
64
|
-
* @returns The parsed environment variables
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```typescript
|
|
68
|
-
* const env = parseEnvContent('PATH=/usr/bin\nHOME=/home/user');
|
|
69
|
-
* // { PATH: '/usr/bin', HOME: '/home/user' }
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
export declare function parseEnvContent(content: string): Record<string, string>;
|
|
73
|
-
/**
|
|
74
|
-
* Cleans up the environment capture file.
|
|
75
|
-
* Call this after parsing to remove temporary files.
|
|
76
|
-
*
|
|
77
|
-
* @param filePath - Path to the environment file to clean up
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```typescript
|
|
81
|
-
* try {
|
|
82
|
-
* const env = await parseEnvFile(envFilePath);
|
|
83
|
-
* // Use env...
|
|
84
|
-
* } finally {
|
|
85
|
-
* await cleanupEnvFile(envFilePath);
|
|
86
|
-
* }
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
export declare function cleanupEnvFile(filePath: string): Promise<void>;
|
|
@@ -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 {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import type { CLIArgs } from "./index";
|
|
3
|
-
import { type UserContext } from "$/ai-utils";
|
|
4
|
-
export declare const runCodeCommand: (sys: DevToolsSys, subCommand: string, args: CLIArgs) => Promise<void>;
|
|
5
|
-
export declare const runCodeGen: (sys: DevToolsSys, args: CLIArgs) => Promise<undefined>;
|
|
6
|
-
export declare function checkProjectRoot(sys: DevToolsSys, interactive: boolean): Promise<void>;
|
|
7
|
-
export declare function getUserContext(sys: DevToolsSys): Promise<UserContext>;
|