@promptbook/cli 0.114.0-25 → 0.114.0-26

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/src/version.ts CHANGED
@@ -16,11 +16,11 @@ export const BOOK_LANGUAGE_VERSION: string_semantic_version = '2.0.0';
16
16
  * @generated
17
17
  * @see https://github.com/webgptorg/promptbook
18
18
  */
19
- export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.114.0-25';
19
+ export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.114.0-26';
20
20
 
21
21
  /**
22
22
  * Represents the version string of the Promptbook engine.
23
- * It follows semantic versioning (e.g., `0.114.0-24`).
23
+ * It follows semantic versioning (e.g., `0.114.0-25`).
24
24
  *
25
25
  * @generated
26
26
  */
package/src/versions.txt CHANGED
@@ -1201,3 +1201,4 @@
1201
1201
  0.114.0-23
1202
1202
  0.114.0-24
1203
1203
  0.114.0-25
1204
+ 0.114.0-26
package/umd/index.umd.js CHANGED
@@ -58,7 +58,7 @@
58
58
  * @generated
59
59
  * @see https://github.com/webgptorg/promptbook
60
60
  */
61
- const PROMPTBOOK_ENGINE_VERSION = '0.114.0-25';
61
+ const PROMPTBOOK_ENGINE_VERSION = '0.114.0-26';
62
62
  /**
63
63
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
64
64
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -20073,29 +20073,36 @@
20073
20073
  /**
20074
20074
  * `WRITING RULES` commitment definition.
20075
20075
  *
20076
- * It adds constraints that apply strictly to writing style and presentation
20077
- * rather than task-solving behavior.
20076
+ * The `WRITING RULES`/`WRITING RULE` commitment adds constraints that apply strictly to writing style
20077
+ * and presentation rather than task-solving behavior.
20078
+ *
20079
+ * Example usage in agent source:
20080
+ *
20081
+ * ```book
20082
+ * WRITING RULES Keep every response under 120 words
20083
+ * WRITING RULE Always end the message with an emoji
20084
+ * ```
20078
20085
  *
20079
20086
  * @private [🪔] Maybe export the commitments through some package
20080
20087
  */
20081
20088
  class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition {
20082
- constructor() {
20083
- super('WRITING RULES');
20089
+ constructor(type = 'WRITING RULES') {
20090
+ super(type);
20084
20091
  }
20085
20092
  /**
20086
- * Short one-line description of `WRITING RULES`.
20093
+ * Short one-line description of `WRITING RULES`/`WRITING RULE`.
20087
20094
  */
20088
20095
  get description() {
20089
20096
  return 'Add writing-only constraints such as tone, length, formatting, or emoji usage.';
20090
20097
  }
20091
20098
  /**
20092
- * Icon for `WRITING RULES`.
20099
+ * Icon for `WRITING RULES`/`WRITING RULE`.
20093
20100
  */
20094
20101
  get icon() {
20095
20102
  return '📝';
20096
20103
  }
20097
20104
  /**
20098
- * Markdown documentation for `WRITING RULES`.
20105
+ * Markdown documentation for `WRITING RULES`/`WRITING RULE` commitment.
20099
20106
  */
20100
20107
  get documentation() {
20101
20108
  return _spaceTrim.spaceTrim(`
@@ -20105,6 +20112,7 @@
20105
20112
 
20106
20113
  ## Key aspects
20107
20114
 
20115
+ - All writing rules are treated equally regardless of singular/plural form.
20108
20116
  - Use it for writing-only constraints such as tone, formatting, length, emoji usage, punctuation, or reading level.
20109
20117
  - Do **not** use it for problem-solving behavior, policy, tool usage, or decision-making logic. Use \`RULE\` for that.
20110
20118
  - Newer writing-rules blocks override conflicting earlier writing-rules blocks.
@@ -20303,7 +20311,8 @@
20303
20311
  new LanguageCommitmentDefinition('LANGUAGE'),
20304
20312
  new LanguageCommitmentDefinition('LANGUAGES'),
20305
20313
  new WritingSampleCommitmentDefinition(),
20306
- new WritingRulesCommitmentDefinition(),
20314
+ new WritingRulesCommitmentDefinition('WRITING RULES'),
20315
+ new WritingRulesCommitmentDefinition('WRITING RULE'),
20307
20316
  new SampleCommitmentDefinition('SAMPLE'),
20308
20317
  new SampleCommitmentDefinition('EXAMPLE'),
20309
20318
  new FormatCommitmentDefinition('FORMAT'),