@builder.io/dev-tools 1.28.15-dev.202602271233.f563c361b → 1.28.16-dev.202602271627.4aedad8b4

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.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Spawns a single interactive login shell to capture the user's full PATH.
3
+ *
4
+ * When the Electron app is launched from the macOS Dock, it inherits launchd's
5
+ * minimal PATH (/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin). Shell profile
6
+ * files (e.g. .zshrc, .bash_profile) are never sourced, so tools added to PATH
7
+ * by those files are invisible.
8
+ *
9
+ * This function spawns `$SHELL -i -l -c "echo <marker>$PATH<marker>"` to
10
+ * capture the fully-resolved PATH from the user's interactive shell. It uses
11
+ * unique markers to reliably extract the PATH even when the shell prints
12
+ * banners, motd messages, or other noise.
13
+ *
14
+ * Returns `null` on Windows, in cloud environments, or on any failure.
15
+ */
16
+ export declare function resolveShellEnv(): Promise<{
17
+ PATH: string;
18
+ } | null>;
19
+ /**
20
+ * Extracts a PATH string from shell output using start/end markers.
21
+ *
22
+ * Pure function. Returns the substring between the two markers,
23
+ * or `null` if the markers are not found or are in the wrong order.
24
+ */
25
+ export declare function extractPathFromOutput(stdout: string, startMarker: string, endMarker: string): string | null;
26
+ /**
27
+ * Merges two PATH strings, deduplicating entries.
28
+ *
29
+ * Resolved entries come first (higher priority). Entries from existingPath
30
+ * that are not already present in resolvedPath are appended.
31
+ */
32
+ export declare function mergePathEntries(resolvedPath: string, existingPath: string, separator?: string): string;
@@ -0,0 +1 @@
1
+ export {};
@@ -19,7 +19,7 @@ export declare function clone<T>(obj: T): T;
19
19
  export declare function shouldSkipFolder(sys: DevToolsSys, skipFolders: Set<string>, fileName: string): boolean;
20
20
  export declare function getPackageManager(): string;
21
21
  export declare function isWindows(): boolean;
22
- export declare function builderNpxPackage(): "builder.io" | "@builder.io/agent" | "\"@builder.io/dev-tools\"";
22
+ export declare function builderNpxPackage(): "@builder.io/agent" | "\"@builder.io/dev-tools\"" | "builder.io";
23
23
  /**
24
24
  * Sanitizes a component name for use in filesystem paths by replacing invalid characters with underscores
25
25
  * @param name The component name to sanitize