@promptbook/wizard 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.
Files changed (29) hide show
  1. package/esm/index.es.js +50 -22
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/avatars/Avatar.d.ts +7 -0
  4. package/esm/src/avatars/avatarRenderingUtils.d.ts +117 -0
  5. package/esm/src/avatars/index.d.ts +6 -0
  6. package/esm/src/avatars/renderAvatarVisual.d.ts +9 -0
  7. package/esm/src/avatars/types/AvatarDefinition.d.ts +20 -0
  8. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +96 -0
  9. package/esm/src/avatars/visuals/avatarVisualRegistry.d.ts +16 -0
  10. package/esm/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
  11. package/esm/src/avatars/visuals/octopusAvatarVisual.d.ts +7 -0
  12. package/esm/src/avatars/visuals/pixelArtAvatarVisual.d.ts +7 -0
  13. package/esm/src/commitments/STYLE/STYLE.d.ts +9 -2
  14. package/esm/src/version.d.ts +1 -1
  15. package/package.json +2 -2
  16. package/umd/index.umd.js +50 -22
  17. package/umd/index.umd.js.map +1 -1
  18. package/umd/src/avatars/Avatar.d.ts +7 -0
  19. package/umd/src/avatars/avatarRenderingUtils.d.ts +117 -0
  20. package/umd/src/avatars/index.d.ts +6 -0
  21. package/umd/src/avatars/renderAvatarVisual.d.ts +9 -0
  22. package/umd/src/avatars/types/AvatarDefinition.d.ts +20 -0
  23. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +96 -0
  24. package/umd/src/avatars/visuals/avatarVisualRegistry.d.ts +16 -0
  25. package/umd/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
  26. package/umd/src/avatars/visuals/octopusAvatarVisual.d.ts +7 -0
  27. package/umd/src/avatars/visuals/pixelArtAvatarVisual.d.ts +7 -0
  28. package/umd/src/commitments/STYLE/STYLE.d.ts +9 -2
  29. package/umd/src/version.d.ts +1 -1
package/esm/index.es.js CHANGED
@@ -38,7 +38,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
38
38
  * @generated
39
39
  * @see https://github.com/webgptorg/promptbook
40
40
  */
41
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-44';
41
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-45';
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
@@ -19259,7 +19259,7 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
19259
19259
  DELETE Casual conversational style
19260
19260
  REMOVE All emoji usage
19261
19261
  GOAL Provide professional business communications
19262
- STYLE Use formal language and proper business etiquette
19262
+ WRITING RULES Use formal language and proper business etiquette
19263
19263
  \`\`\`
19264
19264
 
19265
19265
  \`\`\`book
@@ -19270,7 +19270,7 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
19270
19270
  DISCARD Technical jargon explanations
19271
19271
  CANCEL Advanced troubleshooting procedures
19272
19272
  GOAL Help users with simple, easy-to-follow solutions
19273
- STYLE Use plain language that anyone can understand
19273
+ WRITING RULES Use plain language that anyone can understand
19274
19274
  \`\`\`
19275
19275
 
19276
19276
  \`\`\`book
@@ -19287,11 +19287,11 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
19287
19287
  Concise Information Provider
19288
19288
 
19289
19289
  PERSONA You are a helpful assistant who provides detailed explanations
19290
- STYLE Include examples, analogies, and comprehensive context
19290
+ WRITING RULES Include examples, analogies, and comprehensive context
19291
19291
  CANCEL Detailed explanation style
19292
19292
  DISCARD Examples and analogies
19293
19293
  GOAL Provide brief, direct answers without unnecessary elaboration
19294
- STYLE Be concise and to the point
19294
+ WRITING RULES Be concise and to the point
19295
19295
  \`\`\`
19296
19296
  `);
19297
19297
  }
@@ -19475,7 +19475,7 @@ class FormatCommitmentDefinition extends BaseCommitmentDefinition {
19475
19475
  PERSONA You are a data analysis expert
19476
19476
  FORMAT Present results in structured tables
19477
19477
  FORMAT Include confidence scores for all predictions
19478
- STYLE Be concise and precise in explanations
19478
+ WRITING RULES Be concise and precise in explanations
19479
19479
  \`\`\`
19480
19480
  `);
19481
19481
  }
@@ -19869,7 +19869,7 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
19869
19869
 
19870
19870
  GOAL Help students understand mathematical concepts clearly
19871
19871
  GOAL Ensure all explanations are age-appropriate and accessible
19872
- STYLE Use simple language and provide step-by-step explanations
19872
+ WRITING RULES Use simple language and provide step-by-step explanations
19873
19873
  \`\`\`
19874
19874
 
19875
19875
  \`\`\`book
@@ -20147,7 +20147,7 @@ class KnowledgeCommitmentDefinition extends BaseCommitmentDefinition {
20147
20147
  KNOWLEDGE Academic research requires careful citation and verification
20148
20148
  KNOWLEDGE https://example.com/research-guidelines.pdf
20149
20149
  ACTION Can help with literature reviews and data analysis
20150
- STYLE Present information in clear, academic format
20150
+ WRITING RULES Present information in clear, academic format
20151
20151
  \`\`\`
20152
20152
  `);
20153
20153
  }
@@ -21794,7 +21794,7 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
21794
21794
 
21795
21795
  META IMAGE https://example.com/professional-avatar.jpg
21796
21796
  PERSONA You are a professional business assistant
21797
- STYLE Maintain a formal and courteous tone
21797
+ WRITING RULES Maintain a formal and courteous tone
21798
21798
  \`\`\`
21799
21799
 
21800
21800
  \`\`\`book
@@ -21802,7 +21802,7 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
21802
21802
 
21803
21803
  META IMAGE /assets/creative-bot-avatar.png
21804
21804
  PERSONA You are a creative and inspiring assistant
21805
- STYLE Be enthusiastic and encouraging
21805
+ WRITING RULES Be enthusiastic and encouraging
21806
21806
  ACTION Can help with brainstorming and ideation
21807
21807
  \`\`\`
21808
21808
  `);
@@ -21961,7 +21961,7 @@ class MetaLinkCommitmentDefinition extends BaseCommitmentDefinition {
21961
21961
  META LINK https://twitter.com/devhandle
21962
21962
  PERSONA You are an experienced open source developer
21963
21963
  ACTION Can help with code reviews and architecture decisions
21964
- STYLE Be direct and technical in explanations
21964
+ WRITING RULES Be direct and technical in explanations
21965
21965
  \`\`\`
21966
21966
  `);
21967
21967
  }
@@ -22167,7 +22167,7 @@ class ModelCommitmentDefinition extends BaseCommitmentDefinition {
22167
22167
  MODEL TEMPERATURE 0.8
22168
22168
  MODEL TOP_P 0.9
22169
22169
  MODEL MAX_TOKENS 2048
22170
- STYLE Be imaginative and expressive
22170
+ WRITING RULES Be imaginative and expressive
22171
22171
  ACTION Can help with storytelling and character development
22172
22172
  \`\`\`
22173
22173
 
@@ -22379,7 +22379,7 @@ class NoteCommitmentDefinition extends BaseCommitmentDefinition {
22379
22379
  NOTE Uses RAG for accessing latest research papers
22380
22380
  PERSONA You are a knowledgeable research assistant
22381
22381
  ACTION Can help with literature reviews and citations
22382
- STYLE Present information in academic format
22382
+ WRITING RULES Present information in academic format
22383
22383
  \`\`\`
22384
22384
  `);
22385
22385
  }
@@ -22673,7 +22673,7 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
22673
22673
  RULE Always ask for clarification if the user's request is ambiguous
22674
22674
  RULE Be polite and professional in all interactions
22675
22675
  RULES Never provide medical or legal advice
22676
- STYLE Maintain a friendly and helpful tone
22676
+ WRITING RULES Maintain a friendly and helpful tone
22677
22677
  \`\`\`
22678
22678
 
22679
22679
  \`\`\`book
@@ -22942,8 +22942,8 @@ class ScenarioCommitmentDefinition extends BaseCommitmentDefinition {
22942
22942
  /**
22943
22943
  * STYLE commitment definition
22944
22944
  *
22945
- * The STYLE commitment defines how the agent should format and present its responses.
22946
- * This includes tone, writing style, formatting preferences, and communication patterns.
22945
+ * Deprecated legacy writing-style commitment kept for backward compatibility.
22946
+ * New books should prefer `WRITING RULES` for writing-only constraints.
22947
22947
  *
22948
22948
  * Example usage in agent source:
22949
22949
  *
@@ -22962,7 +22962,16 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
22962
22962
  * Short one-line description of STYLE.
22963
22963
  */
22964
22964
  get description() {
22965
- return 'Control the tone and writing style of responses.';
22965
+ return 'Deprecated legacy writing-style commitment. Prefer `WRITING RULES` for new books.';
22966
+ }
22967
+ /**
22968
+ * Optional UI/docs-only deprecation metadata.
22969
+ */
22970
+ get deprecation() {
22971
+ return {
22972
+ message: 'Use `WRITING RULES` for writing-only constraints such as tone, length, formatting, or emoji usage.',
22973
+ replacedBy: ['WRITING RULES'],
22974
+ };
22966
22975
  }
22967
22976
  /**
22968
22977
  * Icon for this commitment.
@@ -22977,15 +22986,34 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
22977
22986
  return spaceTrim$1(`
22978
22987
  # ${this.type}
22979
22988
 
22980
- Defines how the agent should format and present its responses (tone, writing style, formatting).
22989
+ Deprecated legacy commitment for writing and presentation instructions.
22990
+
22991
+ ## Migration
22992
+
22993
+ - Existing \`${this.type}\` books still parse and compile.
22994
+ - New books should prefer \`WRITING RULES\`.
22995
+ - Use \`WRITING SAMPLE\` when you want to anchor voice by example instead of stating constraints directly.
22996
+ - The plural alias \`STYLES\` is the same legacy commitment family.
22981
22997
 
22982
22998
  ## Key aspects
22983
22999
 
22984
- - Both terms work identically and can be used interchangeably.
23000
+ - \`${this.type}\` remains functional for backward compatibility only.
22985
23001
  - Later style instructions can override earlier ones.
22986
23002
  - Style affects both tone and presentation format.
22987
23003
 
22988
- ## Examples
23004
+ ## Preferred replacement
23005
+
23006
+ \`\`\`book
23007
+ Technical Writer
23008
+
23009
+ GOAL Help the user understand technical topics with practical, accurate guidance.
23010
+ WRITING RULES Write in a professional but friendly tone.
23011
+ WRITING RULES Use bullet points for lists.
23012
+ WRITING RULES Always provide code examples when explaining programming concepts.
23013
+ FORMAT Use markdown formatting with clear headings
23014
+ \`\`\`
23015
+
23016
+ ## Legacy compatibility examples
22989
23017
 
22990
23018
  \`\`\`book
22991
23019
  Technical Writer
@@ -23726,7 +23754,7 @@ class TemplateCommitmentDefinition extends BaseCommitmentDefinition {
23726
23754
 
23727
23755
  PERSONA You are a helpful customer support representative
23728
23756
  TEMPLATE Always structure your response with: 1) Acknowledgment, 2) Solution, 3) Follow-up question
23729
- STYLE Be professional and empathetic
23757
+ WRITING RULES Be professional and empathetic
23730
23758
  \`\`\`
23731
23759
 
23732
23760
  \`\`\`book
@@ -24170,7 +24198,7 @@ class UseBrowserCommitmentDefinition extends BaseCommitmentDefinition {
24170
24198
 
24171
24199
  PERSONA You are a news analyst who stays up-to-date with current events
24172
24200
  USE BROWSER
24173
- STYLE Present news in a balanced and objective manner
24201
+ WRITING RULES Present news in a balanced and objective manner
24174
24202
  ACTION Can search for and summarize news articles
24175
24203
  \`\`\`
24176
24204