@promptbook/wizard 0.100.0-15 → 0.100.0-18

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,42 +0,0 @@
1
- /**
2
- * Branded type for agent source strings
3
- *
4
- * This ensures type safety when working with agent source data throughout the application.
5
- * Agent source strings contain structured data in a specific format:
6
- * - First line: Agent name
7
- * - PERSONA line: Agent persona/description (optional)
8
- * - META IMAGE line: Profile image URL (optional)
9
- * - Remaining content: System message (after removing META IMAGE line)
10
- */
11
- export type string_agent_source = string & {
12
- readonly __brand: 'agent_source';
13
- };
14
- /**
15
- * Type guard to check if a string is a valid agent source
16
- *
17
- * @public exported from `@promptbook/core`
18
- */
19
- export declare function isAgentSource(value: string): value is string_agent_source;
20
- /**
21
- * Creates a branded agent source string from a regular string
22
- * Performs basic validation to ensure the string is suitable as agent source
23
- *
24
- * @private
25
- * @deprecated Use `validateAgentSource` instead - these functions are now equivalent
26
- */
27
- export declare function createAgentSource(source: string): string_agent_source;
28
- /**
29
- * Safely converts a string to agent source with fallback
30
- *
31
- * @private
32
- * @deprecated Use `validateAgentSource` instead - these functions are now equivalent
33
- */
34
- export declare function toAgentSource(source: string, fallback?: string): string_agent_source;
35
- /**
36
- * Validates and converts a string to agent source branded type
37
- * This function should be used when you have a string that you know represents agent source
38
- * but need to convert it to the branded type for type safety
39
- *
40
- * @public exported from `@promptbook/core`
41
- */
42
- export declare function validateAgentSource(source: string): string_agent_source;