@promptbook/wizard 0.100.0-22 → 0.100.0-23
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/esm/index.es.js +1 -1
- package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/META_IMAGE/META_IMAGE.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/META_LINK/META_LINK.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/RULE/RULE.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/SAMPLE/SAMPLE.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +5 -1
- package/esm/typings/src/book-2.0/commitments/_base/BaseCommitmentDefinition.d.ts +6 -1
- package/esm/typings/src/book-2.0/commitments/_base/CommitmentDefinition.d.ts +6 -1
- package/esm/typings/src/book-2.0/commitments/_base/NotYetImplementedCommitmentDefinition.d.ts +5 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
package/esm/index.es.js
CHANGED
@@ -38,7 +38,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
38
38
|
* @generated
|
39
39
|
* @see https://github.com/webgptorg/promptbook
|
40
40
|
*/
|
41
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
41
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-23';
|
42
42
|
/**
|
43
43
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
44
44
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
@@ -18,9 +18,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
18
18
|
export declare class ActionCommitmentDefinition extends BaseCommitmentDefinition<'ACTION'> {
|
19
19
|
constructor();
|
20
20
|
/**
|
21
|
-
*
|
21
|
+
* Short one-line description of ACTION.
|
22
22
|
*/
|
23
23
|
get description(): string;
|
24
|
+
/**
|
25
|
+
* Markdown documentation for ACTION commitment.
|
26
|
+
*/
|
27
|
+
get documentation(): string;
|
24
28
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
25
29
|
}
|
26
30
|
/**
|
@@ -19,9 +19,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
19
19
|
export declare class FormatCommitmentDefinition extends BaseCommitmentDefinition<'FORMAT'> {
|
20
20
|
constructor();
|
21
21
|
/**
|
22
|
-
*
|
22
|
+
* Short one-line description of FORMAT.
|
23
23
|
*/
|
24
24
|
get description(): string;
|
25
|
+
/**
|
26
|
+
* Markdown documentation for FORMAT commitment.
|
27
|
+
*/
|
28
|
+
get documentation(): string;
|
25
29
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
26
30
|
}
|
27
31
|
/**
|
@@ -23,9 +23,13 @@ export declare class KnowledgeCommitmentDefinition extends BaseCommitmentDefinit
|
|
23
23
|
private ragService;
|
24
24
|
constructor();
|
25
25
|
/**
|
26
|
-
*
|
26
|
+
* Short one-line description of KNOWLEDGE.
|
27
27
|
*/
|
28
28
|
get description(): string;
|
29
|
+
/**
|
30
|
+
* Markdown documentation for KNOWLEDGE commitment.
|
31
|
+
*/
|
32
|
+
get documentation(): string;
|
29
33
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
30
34
|
/**
|
31
35
|
* Check if content is a URL
|
@@ -19,9 +19,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
19
19
|
export declare class MetaImageCommitmentDefinition extends BaseCommitmentDefinition<'META IMAGE'> {
|
20
20
|
constructor();
|
21
21
|
/**
|
22
|
-
*
|
22
|
+
* Short one-line description of META IMAGE.
|
23
23
|
*/
|
24
24
|
get description(): string;
|
25
|
+
/**
|
26
|
+
* Markdown documentation for META IMAGE commitment.
|
27
|
+
*/
|
28
|
+
get documentation(): string;
|
25
29
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
26
30
|
/**
|
27
31
|
* Extracts the profile image URL from the content
|
@@ -27,9 +27,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
27
27
|
export declare class MetaLinkCommitmentDefinition extends BaseCommitmentDefinition<'META LINK'> {
|
28
28
|
constructor();
|
29
29
|
/**
|
30
|
-
*
|
30
|
+
* Short one-line description of META LINK.
|
31
31
|
*/
|
32
32
|
get description(): string;
|
33
|
+
/**
|
34
|
+
* Markdown documentation for META LINK commitment.
|
35
|
+
*/
|
36
|
+
get documentation(): string;
|
33
37
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
34
38
|
/**
|
35
39
|
* Extracts the profile link URL from the content
|
@@ -19,9 +19,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
19
19
|
export declare class ModelCommitmentDefinition extends BaseCommitmentDefinition<'MODEL'> {
|
20
20
|
constructor();
|
21
21
|
/**
|
22
|
-
*
|
22
|
+
* Short one-line description of MODEL.
|
23
23
|
*/
|
24
24
|
get description(): string;
|
25
|
+
/**
|
26
|
+
* Markdown documentation for MODEL commitment.
|
27
|
+
*/
|
28
|
+
get documentation(): string;
|
25
29
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
26
30
|
}
|
27
31
|
/**
|
@@ -29,9 +29,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
29
29
|
export declare class NoteCommitmentDefinition extends BaseCommitmentDefinition<'NOTE'> {
|
30
30
|
constructor();
|
31
31
|
/**
|
32
|
-
*
|
32
|
+
* Short one-line description of NOTE.
|
33
33
|
*/
|
34
34
|
get description(): string;
|
35
|
+
/**
|
36
|
+
* Markdown documentation for NOTE commitment.
|
37
|
+
*/
|
38
|
+
get documentation(): string;
|
35
39
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
36
40
|
}
|
37
41
|
/**
|
@@ -26,9 +26,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
26
26
|
export declare class PersonaCommitmentDefinition extends BaseCommitmentDefinition<'PERSONA'> {
|
27
27
|
constructor();
|
28
28
|
/**
|
29
|
-
*
|
29
|
+
* Short one-line description of PERSONA.
|
30
30
|
*/
|
31
31
|
get description(): string;
|
32
|
+
/**
|
33
|
+
* Markdown documentation for PERSONA commitment.
|
34
|
+
*/
|
35
|
+
get documentation(): string;
|
32
36
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
33
37
|
}
|
34
38
|
/**
|
@@ -18,9 +18,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
18
18
|
export declare class RuleCommitmentDefinition extends BaseCommitmentDefinition<'RULE' | 'RULES'> {
|
19
19
|
constructor(type?: 'RULE' | 'RULES');
|
20
20
|
/**
|
21
|
-
*
|
21
|
+
* Short one-line description of RULE/RULES.
|
22
22
|
*/
|
23
23
|
get description(): string;
|
24
|
+
/**
|
25
|
+
* Markdown documentation for RULE/RULES commitment.
|
26
|
+
*/
|
27
|
+
get documentation(): string;
|
24
28
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
25
29
|
}
|
26
30
|
/**
|
@@ -18,9 +18,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
18
18
|
export declare class SampleCommitmentDefinition extends BaseCommitmentDefinition<'SAMPLE' | 'EXAMPLE'> {
|
19
19
|
constructor(type?: 'SAMPLE' | 'EXAMPLE');
|
20
20
|
/**
|
21
|
-
*
|
21
|
+
* Short one-line description of SAMPLE/EXAMPLE.
|
22
22
|
*/
|
23
23
|
get description(): string;
|
24
|
+
/**
|
25
|
+
* Markdown documentation for SAMPLE/EXAMPLE commitment.
|
26
|
+
*/
|
27
|
+
get documentation(): string;
|
24
28
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
25
29
|
}
|
26
30
|
/**
|
@@ -18,9 +18,13 @@ import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
|
|
18
18
|
export declare class StyleCommitmentDefinition extends BaseCommitmentDefinition<'STYLE'> {
|
19
19
|
constructor();
|
20
20
|
/**
|
21
|
-
*
|
21
|
+
* Short one-line description of STYLE.
|
22
22
|
*/
|
23
23
|
get description(): string;
|
24
|
+
/**
|
25
|
+
* Markdown documentation for STYLE commitment.
|
26
|
+
*/
|
27
|
+
get documentation(): string;
|
24
28
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
25
29
|
}
|
26
30
|
/**
|
@@ -10,10 +10,15 @@ export declare abstract class BaseCommitmentDefinition<TBookCommitment extends s
|
|
10
10
|
readonly type: TBookCommitment;
|
11
11
|
constructor(type: TBookCommitment);
|
12
12
|
/**
|
13
|
-
*
|
13
|
+
* Short one-line markdown description; concise, may use inline **markdown**.
|
14
14
|
* Must be implemented by each concrete commitment.
|
15
15
|
*/
|
16
16
|
abstract get description(): string;
|
17
|
+
/**
|
18
|
+
* Human-readable markdown documentation for this commitment, available at runtime.
|
19
|
+
* Must be implemented by each concrete commitment.
|
20
|
+
*/
|
21
|
+
abstract get documentation(): string;
|
17
22
|
/**
|
18
23
|
* Creates a regex pattern to match this commitment in agent source
|
19
24
|
* Uses the existing createCommitmentRegex function as internal helper
|
@@ -11,12 +11,17 @@ export interface CommitmentDefinition {
|
|
11
11
|
* The type/name of this commitment (e.g., 'PERSONA', 'KNOWLEDGE', etc.)
|
12
12
|
*/
|
13
13
|
readonly type: string;
|
14
|
+
/**
|
15
|
+
* Short one-line markdown description of this commitment (no lists or code blocks).
|
16
|
+
* Keep it concise; may use inline markdown like **bold** or *italic*.
|
17
|
+
*/
|
18
|
+
readonly description: string;
|
14
19
|
/**
|
15
20
|
* Human-readable markdown documentation for this commitment.
|
16
21
|
* Should explain what the commitment does and include example usage.
|
17
22
|
* This is available at runtime for UIs, docs, and tooling.
|
18
23
|
*/
|
19
|
-
readonly
|
24
|
+
readonly documentation: string;
|
20
25
|
/**
|
21
26
|
* Creates a regex pattern to match this commitment in agent source
|
22
27
|
* This regex should capture the commitment content in a 'contents' named group
|
package/esm/typings/src/book-2.0/commitments/_base/NotYetImplementedCommitmentDefinition.d.ts
CHANGED
@@ -11,8 +11,12 @@ import { BaseCommitmentDefinition } from './BaseCommitmentDefinition';
|
|
11
11
|
export declare class NotYetImplementedCommitmentDefinition<TBookCommitment extends string> extends BaseCommitmentDefinition<TBookCommitment> {
|
12
12
|
constructor(type: TBookCommitment);
|
13
13
|
/**
|
14
|
-
*
|
14
|
+
* Short one-line description of a placeholder commitment.
|
15
15
|
*/
|
16
16
|
get description(): string;
|
17
|
+
/**
|
18
|
+
* Markdown documentation available at runtime.
|
19
|
+
*/
|
20
|
+
get documentation(): string;
|
17
21
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
18
22
|
}
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
16
16
|
/**
|
17
17
|
* Represents the version string of the Promptbook engine.
|
18
|
-
* It follows semantic versioning (e.g., `0.100.0-
|
18
|
+
* It follows semantic versioning (e.g., `0.100.0-22`).
|
19
19
|
*
|
20
20
|
* @generated
|
21
21
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@promptbook/wizard",
|
3
|
-
"version": "0.100.0-
|
3
|
+
"version": "0.100.0-23",
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
5
5
|
"private": false,
|
6
6
|
"sideEffects": false,
|
@@ -95,7 +95,7 @@
|
|
95
95
|
"module": "./esm/index.es.js",
|
96
96
|
"typings": "./esm/typings/src/_packages/wizard.index.d.ts",
|
97
97
|
"peerDependencies": {
|
98
|
-
"@promptbook/core": "0.100.0-
|
98
|
+
"@promptbook/core": "0.100.0-23"
|
99
99
|
},
|
100
100
|
"dependencies": {
|
101
101
|
"@ai-sdk/deepseek": "0.1.6",
|
package/umd/index.umd.js
CHANGED
@@ -49,7 +49,7 @@
|
|
49
49
|
* @generated
|
50
50
|
* @see https://github.com/webgptorg/promptbook
|
51
51
|
*/
|
52
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
52
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-23';
|
53
53
|
/**
|
54
54
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
55
55
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|