@promptbook/core 0.112.0-44 → 0.112.0-45
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 +50 -22
- package/esm/index.es.js.map +1 -1
- package/esm/src/avatars/Avatar.d.ts +7 -0
- package/esm/src/avatars/avatarRenderingUtils.d.ts +117 -0
- package/esm/src/avatars/index.d.ts +6 -0
- package/esm/src/avatars/renderAvatarVisual.d.ts +9 -0
- package/esm/src/avatars/types/AvatarDefinition.d.ts +20 -0
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +96 -0
- package/esm/src/avatars/visuals/avatarVisualRegistry.d.ts +16 -0
- package/esm/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/octopusAvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/pixelArtAvatarVisual.d.ts +7 -0
- package/esm/src/commitments/STYLE/STYLE.d.ts +9 -2
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +50 -22
- package/umd/index.umd.js.map +1 -1
- package/umd/src/avatars/Avatar.d.ts +7 -0
- package/umd/src/avatars/avatarRenderingUtils.d.ts +117 -0
- package/umd/src/avatars/index.d.ts +6 -0
- package/umd/src/avatars/renderAvatarVisual.d.ts +9 -0
- package/umd/src/avatars/types/AvatarDefinition.d.ts +20 -0
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +96 -0
- package/umd/src/avatars/visuals/avatarVisualRegistry.d.ts +16 -0
- package/umd/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/octopusAvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/pixelArtAvatarVisual.d.ts +7 -0
- package/umd/src/commitments/STYLE/STYLE.d.ts +9 -2
- package/umd/src/version.d.ts +1 -1
package/esm/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-45';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -8343,7 +8343,7 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8343
8343
|
DELETE Casual conversational style
|
|
8344
8344
|
REMOVE All emoji usage
|
|
8345
8345
|
GOAL Provide professional business communications
|
|
8346
|
-
|
|
8346
|
+
WRITING RULES Use formal language and proper business etiquette
|
|
8347
8347
|
\`\`\`
|
|
8348
8348
|
|
|
8349
8349
|
\`\`\`book
|
|
@@ -8354,7 +8354,7 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8354
8354
|
DISCARD Technical jargon explanations
|
|
8355
8355
|
CANCEL Advanced troubleshooting procedures
|
|
8356
8356
|
GOAL Help users with simple, easy-to-follow solutions
|
|
8357
|
-
|
|
8357
|
+
WRITING RULES Use plain language that anyone can understand
|
|
8358
8358
|
\`\`\`
|
|
8359
8359
|
|
|
8360
8360
|
\`\`\`book
|
|
@@ -8371,11 +8371,11 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8371
8371
|
Concise Information Provider
|
|
8372
8372
|
|
|
8373
8373
|
PERSONA You are a helpful assistant who provides detailed explanations
|
|
8374
|
-
|
|
8374
|
+
WRITING RULES Include examples, analogies, and comprehensive context
|
|
8375
8375
|
CANCEL Detailed explanation style
|
|
8376
8376
|
DISCARD Examples and analogies
|
|
8377
8377
|
GOAL Provide brief, direct answers without unnecessary elaboration
|
|
8378
|
-
|
|
8378
|
+
WRITING RULES Be concise and to the point
|
|
8379
8379
|
\`\`\`
|
|
8380
8380
|
`);
|
|
8381
8381
|
}
|
|
@@ -8559,7 +8559,7 @@ class FormatCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8559
8559
|
PERSONA You are a data analysis expert
|
|
8560
8560
|
FORMAT Present results in structured tables
|
|
8561
8561
|
FORMAT Include confidence scores for all predictions
|
|
8562
|
-
|
|
8562
|
+
WRITING RULES Be concise and precise in explanations
|
|
8563
8563
|
\`\`\`
|
|
8564
8564
|
`);
|
|
8565
8565
|
}
|
|
@@ -11455,7 +11455,7 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
11455
11455
|
|
|
11456
11456
|
GOAL Help students understand mathematical concepts clearly
|
|
11457
11457
|
GOAL Ensure all explanations are age-appropriate and accessible
|
|
11458
|
-
|
|
11458
|
+
WRITING RULES Use simple language and provide step-by-step explanations
|
|
11459
11459
|
\`\`\`
|
|
11460
11460
|
|
|
11461
11461
|
\`\`\`book
|
|
@@ -11869,7 +11869,7 @@ class KnowledgeCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
11869
11869
|
KNOWLEDGE Academic research requires careful citation and verification
|
|
11870
11870
|
KNOWLEDGE https://example.com/research-guidelines.pdf
|
|
11871
11871
|
ACTION Can help with literature reviews and data analysis
|
|
11872
|
-
|
|
11872
|
+
WRITING RULES Present information in clear, academic format
|
|
11873
11873
|
\`\`\`
|
|
11874
11874
|
`);
|
|
11875
11875
|
}
|
|
@@ -13620,7 +13620,7 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13620
13620
|
|
|
13621
13621
|
META IMAGE https://example.com/professional-avatar.jpg
|
|
13622
13622
|
PERSONA You are a professional business assistant
|
|
13623
|
-
|
|
13623
|
+
WRITING RULES Maintain a formal and courteous tone
|
|
13624
13624
|
\`\`\`
|
|
13625
13625
|
|
|
13626
13626
|
\`\`\`book
|
|
@@ -13628,7 +13628,7 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13628
13628
|
|
|
13629
13629
|
META IMAGE /assets/creative-bot-avatar.png
|
|
13630
13630
|
PERSONA You are a creative and inspiring assistant
|
|
13631
|
-
|
|
13631
|
+
WRITING RULES Be enthusiastic and encouraging
|
|
13632
13632
|
ACTION Can help with brainstorming and ideation
|
|
13633
13633
|
\`\`\`
|
|
13634
13634
|
`);
|
|
@@ -13787,7 +13787,7 @@ class MetaLinkCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13787
13787
|
META LINK https://twitter.com/devhandle
|
|
13788
13788
|
PERSONA You are an experienced open source developer
|
|
13789
13789
|
ACTION Can help with code reviews and architecture decisions
|
|
13790
|
-
|
|
13790
|
+
WRITING RULES Be direct and technical in explanations
|
|
13791
13791
|
\`\`\`
|
|
13792
13792
|
`);
|
|
13793
13793
|
}
|
|
@@ -13993,7 +13993,7 @@ class ModelCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13993
13993
|
MODEL TEMPERATURE 0.8
|
|
13994
13994
|
MODEL TOP_P 0.9
|
|
13995
13995
|
MODEL MAX_TOKENS 2048
|
|
13996
|
-
|
|
13996
|
+
WRITING RULES Be imaginative and expressive
|
|
13997
13997
|
ACTION Can help with storytelling and character development
|
|
13998
13998
|
\`\`\`
|
|
13999
13999
|
|
|
@@ -14205,7 +14205,7 @@ class NoteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14205
14205
|
NOTE Uses RAG for accessing latest research papers
|
|
14206
14206
|
PERSONA You are a knowledgeable research assistant
|
|
14207
14207
|
ACTION Can help with literature reviews and citations
|
|
14208
|
-
|
|
14208
|
+
WRITING RULES Present information in academic format
|
|
14209
14209
|
\`\`\`
|
|
14210
14210
|
`);
|
|
14211
14211
|
}
|
|
@@ -14499,7 +14499,7 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14499
14499
|
RULE Always ask for clarification if the user's request is ambiguous
|
|
14500
14500
|
RULE Be polite and professional in all interactions
|
|
14501
14501
|
RULES Never provide medical or legal advice
|
|
14502
|
-
|
|
14502
|
+
WRITING RULES Maintain a friendly and helpful tone
|
|
14503
14503
|
\`\`\`
|
|
14504
14504
|
|
|
14505
14505
|
\`\`\`book
|
|
@@ -14768,8 +14768,8 @@ class ScenarioCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14768
14768
|
/**
|
|
14769
14769
|
* STYLE commitment definition
|
|
14770
14770
|
*
|
|
14771
|
-
*
|
|
14772
|
-
*
|
|
14771
|
+
* Deprecated legacy writing-style commitment kept for backward compatibility.
|
|
14772
|
+
* New books should prefer `WRITING RULES` for writing-only constraints.
|
|
14773
14773
|
*
|
|
14774
14774
|
* Example usage in agent source:
|
|
14775
14775
|
*
|
|
@@ -14788,7 +14788,16 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14788
14788
|
* Short one-line description of STYLE.
|
|
14789
14789
|
*/
|
|
14790
14790
|
get description() {
|
|
14791
|
-
return '
|
|
14791
|
+
return 'Deprecated legacy writing-style commitment. Prefer `WRITING RULES` for new books.';
|
|
14792
|
+
}
|
|
14793
|
+
/**
|
|
14794
|
+
* Optional UI/docs-only deprecation metadata.
|
|
14795
|
+
*/
|
|
14796
|
+
get deprecation() {
|
|
14797
|
+
return {
|
|
14798
|
+
message: 'Use `WRITING RULES` for writing-only constraints such as tone, length, formatting, or emoji usage.',
|
|
14799
|
+
replacedBy: ['WRITING RULES'],
|
|
14800
|
+
};
|
|
14792
14801
|
}
|
|
14793
14802
|
/**
|
|
14794
14803
|
* Icon for this commitment.
|
|
@@ -14803,15 +14812,34 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14803
14812
|
return spaceTrim$1(`
|
|
14804
14813
|
# ${this.type}
|
|
14805
14814
|
|
|
14806
|
-
|
|
14815
|
+
Deprecated legacy commitment for writing and presentation instructions.
|
|
14816
|
+
|
|
14817
|
+
## Migration
|
|
14818
|
+
|
|
14819
|
+
- Existing \`${this.type}\` books still parse and compile.
|
|
14820
|
+
- New books should prefer \`WRITING RULES\`.
|
|
14821
|
+
- Use \`WRITING SAMPLE\` when you want to anchor voice by example instead of stating constraints directly.
|
|
14822
|
+
- The plural alias \`STYLES\` is the same legacy commitment family.
|
|
14807
14823
|
|
|
14808
14824
|
## Key aspects
|
|
14809
14825
|
|
|
14810
|
-
-
|
|
14826
|
+
- \`${this.type}\` remains functional for backward compatibility only.
|
|
14811
14827
|
- Later style instructions can override earlier ones.
|
|
14812
14828
|
- Style affects both tone and presentation format.
|
|
14813
14829
|
|
|
14814
|
-
##
|
|
14830
|
+
## Preferred replacement
|
|
14831
|
+
|
|
14832
|
+
\`\`\`book
|
|
14833
|
+
Technical Writer
|
|
14834
|
+
|
|
14835
|
+
GOAL Help the user understand technical topics with practical, accurate guidance.
|
|
14836
|
+
WRITING RULES Write in a professional but friendly tone.
|
|
14837
|
+
WRITING RULES Use bullet points for lists.
|
|
14838
|
+
WRITING RULES Always provide code examples when explaining programming concepts.
|
|
14839
|
+
FORMAT Use markdown formatting with clear headings
|
|
14840
|
+
\`\`\`
|
|
14841
|
+
|
|
14842
|
+
## Legacy compatibility examples
|
|
14815
14843
|
|
|
14816
14844
|
\`\`\`book
|
|
14817
14845
|
Technical Writer
|
|
@@ -15552,7 +15580,7 @@ class TemplateCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15552
15580
|
|
|
15553
15581
|
PERSONA You are a helpful customer support representative
|
|
15554
15582
|
TEMPLATE Always structure your response with: 1) Acknowledgment, 2) Solution, 3) Follow-up question
|
|
15555
|
-
|
|
15583
|
+
WRITING RULES Be professional and empathetic
|
|
15556
15584
|
\`\`\`
|
|
15557
15585
|
|
|
15558
15586
|
\`\`\`book
|
|
@@ -15996,7 +16024,7 @@ class UseBrowserCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15996
16024
|
|
|
15997
16025
|
PERSONA You are a news analyst who stays up-to-date with current events
|
|
15998
16026
|
USE BROWSER
|
|
15999
|
-
|
|
16027
|
+
WRITING RULES Present news in a balanced and objective manner
|
|
16000
16028
|
ACTION Can search for and summarize news articles
|
|
16001
16029
|
\`\`\`
|
|
16002
16030
|
|