@promptbook/remote-server 0.114.0-24 → 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/README.md CHANGED
@@ -473,7 +473,7 @@ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treate
473
473
 
474
474
  #### Features
475
475
 
476
- - **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`
476
+ - **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`, `qwen-code`
477
477
  - **Context injection:** `--agent agents/coding/developer.book --context AGENTS.md` or inline extra instructions
478
478
  - **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
479
479
  - **Unattended or interactive runs:** default auto mode, or `--no-auto` to wait for user confirmation before each prompt
@@ -550,7 +550,7 @@ ptbk coder verify
550
550
  | Flag | Purpose |
551
551
  | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
552
552
  | `--harness <name>` | Selects the coding harness. |
553
- | `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
553
+ | `--model <model>` | Chooses the runner model; required for `openai-codex`, `gemini` and `qwen-code`, optional for `github-copilot`. |
554
554
  | `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
555
555
  | `--test <command>` | Runs a verification command after each prompt attempt and feeds failing output back for retries. |
556
556
  | `--test-before <mode>` | Runs tests before coding: `no` (default), `yes-and-fail` (stop with results), or `yes-and-fix` (create one repair prompt first); defaults to `npm test` when enabled without `--test`. |
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-24';
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'),