@builder.io/dev-tools 1.21.16-dev.202601302342.7af7ffd7f → 1.22.0-dev.202602021245.ba8683d35

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.
Files changed (51) hide show
  1. package/cli/index.cjs +455 -314
  2. package/cli/index.cjs.map +4 -4
  3. package/core/index.cjs +1 -1
  4. package/core/index.mjs +1 -1
  5. package/node/index.cjs +1 -1
  6. package/node/index.mjs +1 -1
  7. package/package.json +1 -1
  8. package/server/index.cjs +2 -2
  9. package/server/index.mjs +2 -2
  10. package/types/cli/codegen.d.ts +3 -7
  11. package/types/cli/indexing.d.ts +5 -0
  12. package/types/cli/launch/InitStateMachine.d.ts +1 -6
  13. package/types/cli/launch/github.d.ts +3 -0
  14. package/types/cli/repo-indexing.d.ts +17 -0
  15. package/types/cli/repo-indexing.mock.d.ts +5 -0
  16. package/types/cli/utils/git-snapshot.d.ts +17 -0
  17. package/types/cli/utils/git-snapshot.test.d.ts +1 -0
  18. package/types/cli/utils/git.d.ts +1 -2
  19. package/types/cli/utils/repo-indexing-group-prompts.d.ts +1 -0
  20. package/types/common/ast/component-input-types.d.ts +1 -1
  21. package/types/common/ast/convert-values.d.ts +1 -1
  22. package/types/scripts/analyze-projects.d.ts +18 -0
  23. package/types/scripts/call-ensure-container.d.ts +4 -0
  24. package/types/scripts/check-backup.d.ts +1 -0
  25. package/types/scripts/cli.d.ts +1 -0
  26. package/types/scripts/download-projects.d.ts +12 -0
  27. package/types/scripts/utils/db.d.ts +3 -0
  28. package/types/scripts/utils/ensure-container.d.ts +7 -0
  29. package/types/scripts/utils/remove-machine-and-volume.d.ts +5 -0
  30. package/types/tsconfig.tsbuildinfo +1 -1
  31. package/cli/index.mjs +0 -4905
  32. package/cli/index.mjs.map +0 -7
  33. package/cli/main.mjs +0 -26
  34. package/types/cli/builder-ink.d.ts +0 -9
  35. package/types/cli/repo-indexing/lsp-references.d.ts +0 -17
  36. package/types/cli/ui/App.d.ts +0 -15
  37. package/types/cli/ui/AppWrapper.d.ts +0 -8
  38. package/types/cli/ui/AsciiLogo.d.ts +0 -1
  39. package/types/cli/ui/ComponentDiscoveryPhase.d.ts +0 -5
  40. package/types/cli/ui/ComponentIndexingPhase.d.ts +0 -5
  41. package/types/cli/ui/DesignSystemCRUD.d.ts +0 -16
  42. package/types/cli/ui/DesignSystemCreationComplete.d.ts +0 -5
  43. package/types/cli/ui/DesignSystemCreationPrompt.d.ts +0 -12
  44. package/types/cli/ui/DesignSystemDetail.d.ts +0 -7
  45. package/types/cli/ui/DesignSystemsTable.d.ts +0 -10
  46. package/types/cli/ui/GradientBorder.d.ts +0 -7
  47. package/types/cli/ui/InkDemo.d.ts +0 -6
  48. package/types/cli/ui/MainMenu.d.ts +0 -12
  49. package/types/cli/ui/SpaceSelector.d.ts +0 -14
  50. package/types/cli/ui/types.d.ts +0 -16
  51. /package/types/cli/{code.test.d.ts → codegen-git-snapshot.test.d.ts} +0 -0
package/cli/main.mjs DELETED
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- var version = process.version;
4
- var [majorVersion, minorVersion] = version.replace("v", "").split(".");
5
- if (Number(majorVersion) < 18) {
6
- console.error(
7
- "Builder.io Dev Tools requires Node.js 18.11 or higher. You are currently running Node.js " +
8
- version,
9
- );
10
- process.exit(1);
11
- } else if (Number(majorVersion) === 18) {
12
- if (Number(minorVersion) < 4) {
13
- console.error(
14
- "Builder.io Dev Tools requires Node.js 18.4 or higher. You are currently running Node.js" +
15
- version,
16
- );
17
- process.exit(1);
18
- } else if (Number(minorVersion) < 11) {
19
- console.error(
20
- "Node.js 18.11 or higher is REQUIRED. From Node 18.0.0 to 18.11.0, there is a bug preventing correct behaviour of Builder.io. You are currently running Node.js " +
21
- version,
22
- );
23
- }
24
- }
25
-
26
- import("./index.mjs");
@@ -1,9 +0,0 @@
1
- declare let Box: typeof import("ink").Box;
2
- declare let Text: typeof import("ink").Text;
3
- declare let useApp: typeof import("ink").useApp;
4
- declare let useInput: typeof import("ink").useInput;
5
- declare let render: typeof import("ink").render;
6
- declare let Newline: typeof import("ink").Newline;
7
- declare let Spinner: typeof import("ink-spinner").default;
8
- declare let TextInput: typeof import("ink-text-input").default;
9
- export { Box, Text, useApp, useInput, render, Newline, Spinner, TextInput };
@@ -1,17 +0,0 @@
1
- import type { DevToolsSys } from "../../types";
2
- export type ProjectLanguage = "typescript" | "javascript" | "swift";
3
- export interface ComponentReference {
4
- filePath: string;
5
- line: number;
6
- column: number;
7
- context: string;
8
- isDeclaration: boolean;
9
- }
10
- /**
11
- * Detect the primary language of a project based on file extensions
12
- */
13
- export declare function detectProjectLanguage(sys: DevToolsSys, relevantFiles: string[]): ProjectLanguage;
14
- /**
15
- * Find all references to a component using TypeScript compiler API
16
- */
17
- export declare function findComponentReferences(sys: DevToolsSys, componentName: string, declarationFile: string, relevantFiles: string[], debug?: boolean): Promise<ComponentReference[]>;
@@ -1,15 +0,0 @@
1
- import type { Credentials } from '../credentials.js';
2
- import type { DevToolsSys } from '@builder.io/dev-tools/core';
3
- import type { CLIArgs } from '../index.js';
4
- type Props = {
5
- sys: DevToolsSys;
6
- credentials: Credentials;
7
- args: CLIArgs;
8
- };
9
- export type Space = {
10
- id: string;
11
- name: string;
12
- code: string;
13
- };
14
- export declare function App({ sys, credentials, args }: Props): import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1,8 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- type Props = {
3
- children: ReactNode;
4
- showLogo?: boolean;
5
- useGradientBorder?: boolean;
6
- };
7
- export declare function AppWrapper({ children, showLogo, useGradientBorder }: Props): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1 +0,0 @@
1
- export declare function AsciiLogo(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- type Props = {
2
- onDiscoveryComplete: () => void;
3
- };
4
- export declare function ComponentDiscoveryPhase({ onDiscoveryComplete }: Props): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,5 +0,0 @@
1
- type Props = {
2
- onIndexingComplete: () => void;
3
- };
4
- export declare function ComponentIndexingPhase({ onIndexingComplete }: Props): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import type { DesignSystem } from './types.js';
3
- import type { DevToolsSys } from '@builder.io/dev-tools/core';
4
- import type { Credentials } from '../credentials.js';
5
- import type { CLIArgs } from '../index.js';
6
- interface DesignSystemCRUDProps {
7
- sys: DevToolsSys;
8
- credentials: Credentials;
9
- args: CLIArgs;
10
- onBack: () => void;
11
- onDesignSystemCreated?: (designSystem: DesignSystem) => void;
12
- onDesignSystemUpdated?: (designSystem: DesignSystem) => void;
13
- onDesignSystemDeleted?: (designSystemId: string) => void;
14
- }
15
- export declare const DesignSystemCRUD: React.FC<DesignSystemCRUDProps>;
16
- export {};
@@ -1,5 +0,0 @@
1
- type Props = {
2
- onFinish: () => void;
3
- };
4
- export declare function DesignSystemCreationComplete({ onFinish }: Props): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,12 +0,0 @@
1
- import type { DevToolsSys } from '@builder.io/dev-tools/core';
2
- type Props = {
3
- sys: DevToolsSys;
4
- onConfirm: (config: {
5
- name?: string;
6
- packageName?: string;
7
- includeDirectories?: string;
8
- }) => void;
9
- onCancel: () => void;
10
- };
11
- export declare function DesignSystemCreationPrompt({ sys, onConfirm, onCancel }: Props): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,7 +0,0 @@
1
- import type { DesignSystem } from './types.js';
2
- type Props = {
3
- designSystem: DesignSystem;
4
- onBack: () => void;
5
- };
6
- export declare function DesignSystemDetail({ designSystem, onBack }: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,10 +0,0 @@
1
- import type { DesignSystem } from './types.js';
2
- import type { DevToolsSys } from '@builder.io/dev-tools/core';
3
- import type { Credentials } from '../credentials.js';
4
- type Props = {
5
- sys: DevToolsSys;
6
- credentials: Credentials;
7
- onDesignSystemSelect: (designSystem: DesignSystem) => void;
8
- };
9
- export declare function DesignSystemsTable({ sys, credentials, onDesignSystemSelect }: Props): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- children: React.ReactNode;
4
- title?: string;
5
- };
6
- export declare function GradientBorder({ children }: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- interface InkDemoProps {
3
- title?: string;
4
- }
5
- export declare const InkDemo: React.FC<InkDemoProps>;
6
- export {};
@@ -1,12 +0,0 @@
1
- import type { DevToolsSys } from '@builder.io/dev-tools/core';
2
- import type { Credentials } from '../credentials.js';
3
- type Props = {
4
- onOptionSelect: (option: string) => void;
5
- spaceName?: string;
6
- spaceCode?: string;
7
- userName?: string;
8
- sys: DevToolsSys;
9
- credentials: Credentials;
10
- };
11
- export declare function MainMenu({ onOptionSelect, spaceName, spaceCode, userName, sys, credentials }: Props): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,14 +0,0 @@
1
- import type { DevToolsSys } from '@builder.io/dev-tools/core';
2
- import type { Credentials } from '../credentials.js';
3
- export type Space = {
4
- id: string;
5
- name: string;
6
- code: string;
7
- };
8
- type Props = {
9
- sys: DevToolsSys;
10
- credentials: Credentials;
11
- onSpaceSelect: (space: Space) => void;
12
- };
13
- export declare function SpaceSelector({ sys, credentials, onSpaceSelect }: Props): import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1,16 +0,0 @@
1
- export interface DesignSystem {
2
- id: string;
3
- designSystemName: string;
4
- designSystemPackage?: string;
5
- designSystemVersion?: string;
6
- scope: 'space' | 'organization' | 'public';
7
- docCount: number;
8
- status?: 'active' | 'in-progress' | 'failed' | 'completed';
9
- createdDate?: {
10
- _seconds: number;
11
- _nanoseconds: number;
12
- };
13
- createdByUserId?: string;
14
- designSystemId?: string;
15
- spaceId?: string;
16
- }