@builder.io/dev-tools 1.33.4-dev.202603162056.8d256d4d6 → 1.33.4-dev.202603171926.1b0bdeec3

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.
@@ -1,2 +0,0 @@
1
- import type { CustomAgentDefinition } from "$/ai-utils";
2
- export declare const BROWSER_TESTING_AGENT: CustomAgentDefinition;
@@ -1,2 +0,0 @@
1
- import type { CustomAgentDefinition } from "$/ai-utils";
2
- export declare const PROJECT_CONFIGURATION_AGENT: CustomAgentDefinition;
@@ -1,33 +0,0 @@
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 "printf <marker>; printenv PATH; printf <marker>"`
10
- * to capture the fully-resolved PATH from the user's interactive shell. It uses
11
- * `printenv` instead of `$PATH` to avoid issues with shells like fish where
12
- * `$PATH` is a list variable. Unique markers reliably extract the PATH even
13
- * when the shell prints banners, motd messages, or other noise.
14
- *
15
- * Returns `null` on Windows, in cloud environments, or on any failure.
16
- */
17
- export declare function resolveShellEnv(): Promise<{
18
- PATH: string;
19
- } | null>;
20
- /**
21
- * Extracts a PATH string from shell output using start/end markers.
22
- *
23
- * Pure function. Returns the substring between the two markers,
24
- * or `null` if the markers are not found or are in the wrong order.
25
- */
26
- export declare function extractPathFromOutput(stdout: string, startMarker: string, endMarker: string): string | null;
27
- /**
28
- * Merges two PATH strings, deduplicating entries.
29
- *
30
- * Primary entries come first (higher priority). Entries from secondaryPath
31
- * that are not already present in primaryPath are appended.
32
- */
33
- export declare function mergePathEntries(primaryPath: string, secondaryPath: string, separator?: string): string;
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- /**
2
- * Custom instruction/rules parsing utilities
3
- * Handles parsing of custom instruction files (.mdc, .cursorrules, etc.)
4
- */
5
- import type { CustomInstruction } from "$/ai-utils";
6
- /**
7
- * Parse a custom instruction file
8
- * Supports both:
9
- * - .mdc files with YAML frontmatter
10
- * - Plain text files (.cursorrules, .builderrules, etc.)
11
- *
12
- * @param fileContent - Raw file content
13
- * @param filePath - File path (for generating name and id)
14
- * @param hashFunction - Optional hash function for generating unique IDs
15
- * @returns Parsed CustomInstruction or null
16
- */
17
- export declare function parseCustomInstructionFile(fileContent: string, filePath: string, hashFunction?: (content: string) => string): CustomInstruction | null;
@@ -1 +0,0 @@
1
- export {};
@@ -1,32 +0,0 @@
1
- /**
2
- * Generic YAML frontmatter parser for Markdown files
3
- * Supports both simple key-value pairs and arrays
4
- */
5
- export interface YamlFrontmatterResult<T = Record<string, any>> {
6
- frontmatter: T;
7
- body: string;
8
- }
9
- /**
10
- * Checks if content has YAML frontmatter
11
- */
12
- export declare function hasYamlFrontmatter(content: string): boolean;
13
- /**
14
- * Parses YAML frontmatter from a string
15
- * Handles simple YAML: key-value pairs, arrays, and comments
16
- */
17
- export declare function parseYamlFrontmatter(yamlContent: string): Record<string, any>;
18
- /**
19
- * Extracts YAML frontmatter and body from Markdown content
20
- * @param content - The raw Markdown content with frontmatter
21
- * @returns Object with frontmatter and body, or null if no frontmatter found
22
- */
23
- export declare function extractYamlFrontmatter(content: string): {
24
- frontmatterContent: string;
25
- body: string;
26
- } | null;
27
- /**
28
- * Parse Markdown file with YAML frontmatter
29
- * @param content - The raw file content
30
- * @returns Parsed frontmatter and body
31
- */
32
- export declare function parseMarkdownWithYaml<T = Record<string, any>>(content: string): YamlFrontmatterResult<T>;
@@ -1 +0,0 @@
1
- export {};