@promptbook/remote-server 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/esm/index.es.js CHANGED
@@ -34,7 +34,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
34
34
  * @generated
35
35
  * @see https://github.com/webgptorg/promptbook
36
36
  */
37
- const PROMPTBOOK_ENGINE_VERSION = '0.114.0-25';
37
+ const PROMPTBOOK_ENGINE_VERSION = '0.114.0-26';
38
38
  /**
39
39
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
40
40
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -24406,29 +24406,36 @@ class UseUserLocationCommitmentDefinition extends BaseCommitmentDefinition {
24406
24406
  /**
24407
24407
  * `WRITING RULES` commitment definition.
24408
24408
  *
24409
- * It adds constraints that apply strictly to writing style and presentation
24410
- * rather than task-solving behavior.
24409
+ * The `WRITING RULES`/`WRITING RULE` commitment adds constraints that apply strictly to writing style
24410
+ * and presentation rather than task-solving behavior.
24411
+ *
24412
+ * Example usage in agent source:
24413
+ *
24414
+ * ```book
24415
+ * WRITING RULES Keep every response under 120 words
24416
+ * WRITING RULE Always end the message with an emoji
24417
+ * ```
24411
24418
  *
24412
24419
  * @private [🪔] Maybe export the commitments through some package
24413
24420
  */
24414
24421
  class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition {
24415
- constructor() {
24416
- super('WRITING RULES');
24422
+ constructor(type = 'WRITING RULES') {
24423
+ super(type);
24417
24424
  }
24418
24425
  /**
24419
- * Short one-line description of `WRITING RULES`.
24426
+ * Short one-line description of `WRITING RULES`/`WRITING RULE`.
24420
24427
  */
24421
24428
  get description() {
24422
24429
  return 'Add writing-only constraints such as tone, length, formatting, or emoji usage.';
24423
24430
  }
24424
24431
  /**
24425
- * Icon for `WRITING RULES`.
24432
+ * Icon for `WRITING RULES`/`WRITING RULE`.
24426
24433
  */
24427
24434
  get icon() {
24428
24435
  return '📝';
24429
24436
  }
24430
24437
  /**
24431
- * Markdown documentation for `WRITING RULES`.
24438
+ * Markdown documentation for `WRITING RULES`/`WRITING RULE` commitment.
24432
24439
  */
24433
24440
  get documentation() {
24434
24441
  return spaceTrim$1(`
@@ -24438,6 +24445,7 @@ class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition {
24438
24445
 
24439
24446
  ## Key aspects
24440
24447
 
24448
+ - All writing rules are treated equally regardless of singular/plural form.
24441
24449
  - Use it for writing-only constraints such as tone, formatting, length, emoji usage, punctuation, or reading level.
24442
24450
  - Do **not** use it for problem-solving behavior, policy, tool usage, or decision-making logic. Use \`RULE\` for that.
24443
24451
  - Newer writing-rules blocks override conflicting earlier writing-rules blocks.
@@ -24636,7 +24644,8 @@ const COMMITMENT_REGISTRY = [
24636
24644
  new LanguageCommitmentDefinition('LANGUAGE'),
24637
24645
  new LanguageCommitmentDefinition('LANGUAGES'),
24638
24646
  new WritingSampleCommitmentDefinition(),
24639
- new WritingRulesCommitmentDefinition(),
24647
+ new WritingRulesCommitmentDefinition('WRITING RULES'),
24648
+ new WritingRulesCommitmentDefinition('WRITING RULE'),
24640
24649
  new SampleCommitmentDefinition('SAMPLE'),
24641
24650
  new SampleCommitmentDefinition('EXAMPLE'),
24642
24651
  new FormatCommitmentDefinition('FORMAT'),