@promptbook/cli 0.113.0-3 → 0.113.0-4

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.113.0-3';
19
+ export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.113.0-4';
20
20
 
21
21
  /**
22
22
  * Represents the version string of the Promptbook engine.
23
- * It follows semantic versioning (e.g., `0.113.0-1`).
23
+ * It follows semantic versioning (e.g., `0.113.0-3`).
24
24
  *
25
25
  * @generated
26
26
  */
package/src/versions.txt CHANGED
@@ -1169,3 +1169,4 @@
1169
1169
  0.113.0-0
1170
1170
  0.113.0-1
1171
1171
  0.113.0-3
1172
+ 0.113.0-4
package/umd/index.umd.js CHANGED
@@ -63,7 +63,7 @@
63
63
  * @generated
64
64
  * @see https://github.com/webgptorg/promptbook
65
65
  */
66
- const PROMPTBOOK_ENGINE_VERSION = '0.113.0-3';
66
+ const PROMPTBOOK_ENGINE_VERSION = '0.113.0-4';
67
67
  /**
68
68
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
69
69
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -28467,9 +28467,10 @@
28467
28467
  * Builds the shell script that runs Claude Code with the prompt and coding context.
28468
28468
  */
28469
28469
  function buildClaudeScript(options) {
28470
+ const MODEL_ARGUMENT = options.model ? ` --model ${options.model}` : '';
28470
28471
  const THINKING_LEVEL_ARGUMENT = options.thinkingLevel ? ` --effort ${options.thinkingLevel}` : '';
28471
28472
  return spaceTrim((block) => `
28472
- claude --allowedTools "Bash,Read,Edit,Write"${THINKING_LEVEL_ARGUMENT} --output-format json --print <<'${CLAUDE_PROMPT_DELIMITER}'
28473
+ claude --allowedTools "Bash,Read,Edit,Write"${MODEL_ARGUMENT}${THINKING_LEVEL_ARGUMENT} --output-format json --print <<'${CLAUDE_PROMPT_DELIMITER}'
28473
28474
 
28474
28475
  ${block(options.prompt)}
28475
28476
 
@@ -28619,6 +28620,7 @@
28619
28620
  async runPrompt(options) {
28620
28621
  const scriptContent = buildClaudeScript({
28621
28622
  prompt: options.prompt,
28623
+ model: this.options.model,
28622
28624
  thinkingLevel: this.options.thinkingLevel,
28623
28625
  });
28624
28626
  const output = await $runGoScriptWithOutput({
@@ -29802,8 +29804,9 @@
29802
29804
  }
29803
29805
  if (agentName === 'claude-code') {
29804
29806
  return createRunnerResolution(options, new ClaudeCodeRunner({
29807
+ model: options.model,
29805
29808
  thinkingLevel: options.thinkingLevel,
29806
- }));
29809
+ }), options.model);
29807
29810
  }
29808
29811
  if (agentName === 'opencode') {
29809
29812
  return createRunnerResolution(options, new OpencodeRunner({
@@ -29877,7 +29880,7 @@
29877
29880
  if (options.agentName === 'cline') {
29878
29881
  return { runnerName, modelName: CLINE_MODEL };
29879
29882
  }
29880
- if (options.agentName === 'opencode') {
29883
+ if (options.agentName === 'opencode' || options.agentName === 'claude-code') {
29881
29884
  return { runnerName, modelName: options.model };
29882
29885
  }
29883
29886
  return { runnerName };