@promptbook/remote-server 0.112.0-44 → 0.112.0-46
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/avatarVisualRegistry.test.d.ts +1 -0
- package/esm/src/avatars/visuals/fractalAvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/octopus2AvatarVisual.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 +4 -3
- 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/avatarVisualRegistry.test.d.ts +1 -0
- package/umd/src/avatars/visuals/fractalAvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/octopus2AvatarVisual.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
|
@@ -40,7 +40,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
40
40
|
* @generated
|
|
41
41
|
* @see https://github.com/webgptorg/promptbook
|
|
42
42
|
*/
|
|
43
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
43
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-46';
|
|
44
44
|
/**
|
|
45
45
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
46
46
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -11618,7 +11618,7 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
11618
11618
|
DELETE Casual conversational style
|
|
11619
11619
|
REMOVE All emoji usage
|
|
11620
11620
|
GOAL Provide professional business communications
|
|
11621
|
-
|
|
11621
|
+
WRITING RULES Use formal language and proper business etiquette
|
|
11622
11622
|
\`\`\`
|
|
11623
11623
|
|
|
11624
11624
|
\`\`\`book
|
|
@@ -11629,7 +11629,7 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
11629
11629
|
DISCARD Technical jargon explanations
|
|
11630
11630
|
CANCEL Advanced troubleshooting procedures
|
|
11631
11631
|
GOAL Help users with simple, easy-to-follow solutions
|
|
11632
|
-
|
|
11632
|
+
WRITING RULES Use plain language that anyone can understand
|
|
11633
11633
|
\`\`\`
|
|
11634
11634
|
|
|
11635
11635
|
\`\`\`book
|
|
@@ -11646,11 +11646,11 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
11646
11646
|
Concise Information Provider
|
|
11647
11647
|
|
|
11648
11648
|
PERSONA You are a helpful assistant who provides detailed explanations
|
|
11649
|
-
|
|
11649
|
+
WRITING RULES Include examples, analogies, and comprehensive context
|
|
11650
11650
|
CANCEL Detailed explanation style
|
|
11651
11651
|
DISCARD Examples and analogies
|
|
11652
11652
|
GOAL Provide brief, direct answers without unnecessary elaboration
|
|
11653
|
-
|
|
11653
|
+
WRITING RULES Be concise and to the point
|
|
11654
11654
|
\`\`\`
|
|
11655
11655
|
`);
|
|
11656
11656
|
}
|
|
@@ -11834,7 +11834,7 @@ class FormatCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
11834
11834
|
PERSONA You are a data analysis expert
|
|
11835
11835
|
FORMAT Present results in structured tables
|
|
11836
11836
|
FORMAT Include confidence scores for all predictions
|
|
11837
|
-
|
|
11837
|
+
WRITING RULES Be concise and precise in explanations
|
|
11838
11838
|
\`\`\`
|
|
11839
11839
|
`);
|
|
11840
11840
|
}
|
|
@@ -12228,7 +12228,7 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
12228
12228
|
|
|
12229
12229
|
GOAL Help students understand mathematical concepts clearly
|
|
12230
12230
|
GOAL Ensure all explanations are age-appropriate and accessible
|
|
12231
|
-
|
|
12231
|
+
WRITING RULES Use simple language and provide step-by-step explanations
|
|
12232
12232
|
\`\`\`
|
|
12233
12233
|
|
|
12234
12234
|
\`\`\`book
|
|
@@ -12642,7 +12642,7 @@ class KnowledgeCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
12642
12642
|
KNOWLEDGE Academic research requires careful citation and verification
|
|
12643
12643
|
KNOWLEDGE https://example.com/research-guidelines.pdf
|
|
12644
12644
|
ACTION Can help with literature reviews and data analysis
|
|
12645
|
-
|
|
12645
|
+
WRITING RULES Present information in clear, academic format
|
|
12646
12646
|
\`\`\`
|
|
12647
12647
|
`);
|
|
12648
12648
|
}
|
|
@@ -14393,7 +14393,7 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14393
14393
|
|
|
14394
14394
|
META IMAGE https://example.com/professional-avatar.jpg
|
|
14395
14395
|
PERSONA You are a professional business assistant
|
|
14396
|
-
|
|
14396
|
+
WRITING RULES Maintain a formal and courteous tone
|
|
14397
14397
|
\`\`\`
|
|
14398
14398
|
|
|
14399
14399
|
\`\`\`book
|
|
@@ -14401,7 +14401,7 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14401
14401
|
|
|
14402
14402
|
META IMAGE /assets/creative-bot-avatar.png
|
|
14403
14403
|
PERSONA You are a creative and inspiring assistant
|
|
14404
|
-
|
|
14404
|
+
WRITING RULES Be enthusiastic and encouraging
|
|
14405
14405
|
ACTION Can help with brainstorming and ideation
|
|
14406
14406
|
\`\`\`
|
|
14407
14407
|
`);
|
|
@@ -14560,7 +14560,7 @@ class MetaLinkCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14560
14560
|
META LINK https://twitter.com/devhandle
|
|
14561
14561
|
PERSONA You are an experienced open source developer
|
|
14562
14562
|
ACTION Can help with code reviews and architecture decisions
|
|
14563
|
-
|
|
14563
|
+
WRITING RULES Be direct and technical in explanations
|
|
14564
14564
|
\`\`\`
|
|
14565
14565
|
`);
|
|
14566
14566
|
}
|
|
@@ -14766,7 +14766,7 @@ class ModelCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14766
14766
|
MODEL TEMPERATURE 0.8
|
|
14767
14767
|
MODEL TOP_P 0.9
|
|
14768
14768
|
MODEL MAX_TOKENS 2048
|
|
14769
|
-
|
|
14769
|
+
WRITING RULES Be imaginative and expressive
|
|
14770
14770
|
ACTION Can help with storytelling and character development
|
|
14771
14771
|
\`\`\`
|
|
14772
14772
|
|
|
@@ -14978,7 +14978,7 @@ class NoteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14978
14978
|
NOTE Uses RAG for accessing latest research papers
|
|
14979
14979
|
PERSONA You are a knowledgeable research assistant
|
|
14980
14980
|
ACTION Can help with literature reviews and citations
|
|
14981
|
-
|
|
14981
|
+
WRITING RULES Present information in academic format
|
|
14982
14982
|
\`\`\`
|
|
14983
14983
|
`);
|
|
14984
14984
|
}
|
|
@@ -15272,7 +15272,7 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15272
15272
|
RULE Always ask for clarification if the user's request is ambiguous
|
|
15273
15273
|
RULE Be polite and professional in all interactions
|
|
15274
15274
|
RULES Never provide medical or legal advice
|
|
15275
|
-
|
|
15275
|
+
WRITING RULES Maintain a friendly and helpful tone
|
|
15276
15276
|
\`\`\`
|
|
15277
15277
|
|
|
15278
15278
|
\`\`\`book
|
|
@@ -15541,8 +15541,8 @@ class ScenarioCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15541
15541
|
/**
|
|
15542
15542
|
* STYLE commitment definition
|
|
15543
15543
|
*
|
|
15544
|
-
*
|
|
15545
|
-
*
|
|
15544
|
+
* Deprecated legacy writing-style commitment kept for backward compatibility.
|
|
15545
|
+
* New books should prefer `WRITING RULES` for writing-only constraints.
|
|
15546
15546
|
*
|
|
15547
15547
|
* Example usage in agent source:
|
|
15548
15548
|
*
|
|
@@ -15561,7 +15561,16 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15561
15561
|
* Short one-line description of STYLE.
|
|
15562
15562
|
*/
|
|
15563
15563
|
get description() {
|
|
15564
|
-
return '
|
|
15564
|
+
return 'Deprecated legacy writing-style commitment. Prefer `WRITING RULES` for new books.';
|
|
15565
|
+
}
|
|
15566
|
+
/**
|
|
15567
|
+
* Optional UI/docs-only deprecation metadata.
|
|
15568
|
+
*/
|
|
15569
|
+
get deprecation() {
|
|
15570
|
+
return {
|
|
15571
|
+
message: 'Use `WRITING RULES` for writing-only constraints such as tone, length, formatting, or emoji usage.',
|
|
15572
|
+
replacedBy: ['WRITING RULES'],
|
|
15573
|
+
};
|
|
15565
15574
|
}
|
|
15566
15575
|
/**
|
|
15567
15576
|
* Icon for this commitment.
|
|
@@ -15576,15 +15585,34 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15576
15585
|
return spaceTrim$1(`
|
|
15577
15586
|
# ${this.type}
|
|
15578
15587
|
|
|
15579
|
-
|
|
15588
|
+
Deprecated legacy commitment for writing and presentation instructions.
|
|
15589
|
+
|
|
15590
|
+
## Migration
|
|
15591
|
+
|
|
15592
|
+
- Existing \`${this.type}\` books still parse and compile.
|
|
15593
|
+
- New books should prefer \`WRITING RULES\`.
|
|
15594
|
+
- Use \`WRITING SAMPLE\` when you want to anchor voice by example instead of stating constraints directly.
|
|
15595
|
+
- The plural alias \`STYLES\` is the same legacy commitment family.
|
|
15580
15596
|
|
|
15581
15597
|
## Key aspects
|
|
15582
15598
|
|
|
15583
|
-
-
|
|
15599
|
+
- \`${this.type}\` remains functional for backward compatibility only.
|
|
15584
15600
|
- Later style instructions can override earlier ones.
|
|
15585
15601
|
- Style affects both tone and presentation format.
|
|
15586
15602
|
|
|
15587
|
-
##
|
|
15603
|
+
## Preferred replacement
|
|
15604
|
+
|
|
15605
|
+
\`\`\`book
|
|
15606
|
+
Technical Writer
|
|
15607
|
+
|
|
15608
|
+
GOAL Help the user understand technical topics with practical, accurate guidance.
|
|
15609
|
+
WRITING RULES Write in a professional but friendly tone.
|
|
15610
|
+
WRITING RULES Use bullet points for lists.
|
|
15611
|
+
WRITING RULES Always provide code examples when explaining programming concepts.
|
|
15612
|
+
FORMAT Use markdown formatting with clear headings
|
|
15613
|
+
\`\`\`
|
|
15614
|
+
|
|
15615
|
+
## Legacy compatibility examples
|
|
15588
15616
|
|
|
15589
15617
|
\`\`\`book
|
|
15590
15618
|
Technical Writer
|
|
@@ -16325,7 +16353,7 @@ class TemplateCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
16325
16353
|
|
|
16326
16354
|
PERSONA You are a helpful customer support representative
|
|
16327
16355
|
TEMPLATE Always structure your response with: 1) Acknowledgment, 2) Solution, 3) Follow-up question
|
|
16328
|
-
|
|
16356
|
+
WRITING RULES Be professional and empathetic
|
|
16329
16357
|
\`\`\`
|
|
16330
16358
|
|
|
16331
16359
|
\`\`\`book
|
|
@@ -16769,7 +16797,7 @@ class UseBrowserCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
16769
16797
|
|
|
16770
16798
|
PERSONA You are a news analyst who stays up-to-date with current events
|
|
16771
16799
|
USE BROWSER
|
|
16772
|
-
|
|
16800
|
+
WRITING RULES Present news in a balanced and objective manner
|
|
16773
16801
|
ACTION Can search for and summarize news articles
|
|
16774
16802
|
\`\`\`
|
|
16775
16803
|
|