@promptbook/wizard 0.100.0-16 → 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.
- package/README.md +1 -0
- package/esm/index.es.js +14 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +6 -4
- package/esm/typings/src/_packages/types.index.d.ts +2 -2
- package/esm/typings/src/book-2.0/agent-source/parseAgentSource.d.ts +2 -2
- package/esm/typings/src/book-2.0/agent-source/string_book.d.ts +26 -0
- package/esm/typings/src/book-2.0/commitments/_misc/createAgentModelRequirements.d.ts +7 -7
- package/esm/typings/src/book-2.0/commitments/_misc/createAgentModelRequirementsWithCommitments.d.ts +4 -4
- package/esm/typings/src/book-2.0/commitments/_misc/parseAgentSourceWithCommitments.d.ts +4 -4
- package/esm/typings/src/pipeline/book-notation.d.ts +2 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +14 -2
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/book-2.0/agent-source/string_agent_source.d.ts +0 -42
@@ -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;
|