@promptbook/cli 0.113.0-2 → 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/esm/index.es.js +7 -4
- package/esm/index.es.js.map +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/other/templates/getTemplatesPipelineCollection.ts +1096 -769
- package/src/version.ts +2 -2
- package/src/versions.txt +2 -1
- package/umd/index.umd.js +7 -4
- package/umd/index.umd.js.map +1 -1
- package/umd/src/version.d.ts +1 -1
package/esm/index.es.js
CHANGED
|
@@ -59,7 +59,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
59
59
|
* @generated
|
|
60
60
|
* @see https://github.com/webgptorg/promptbook
|
|
61
61
|
*/
|
|
62
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-
|
|
62
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-4';
|
|
63
63
|
/**
|
|
64
64
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
65
65
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -28463,9 +28463,10 @@ const CLAUDE_PROMPT_DELIMITER = 'CLAUDE_PROMPT';
|
|
|
28463
28463
|
* Builds the shell script that runs Claude Code with the prompt and coding context.
|
|
28464
28464
|
*/
|
|
28465
28465
|
function buildClaudeScript(options) {
|
|
28466
|
+
const MODEL_ARGUMENT = options.model ? ` --model ${options.model}` : '';
|
|
28466
28467
|
const THINKING_LEVEL_ARGUMENT = options.thinkingLevel ? ` --effort ${options.thinkingLevel}` : '';
|
|
28467
28468
|
return spaceTrim((block) => `
|
|
28468
|
-
claude --allowedTools "Bash,Read,Edit,Write"${THINKING_LEVEL_ARGUMENT} --output-format json --print <<'${CLAUDE_PROMPT_DELIMITER}'
|
|
28469
|
+
claude --allowedTools "Bash,Read,Edit,Write"${MODEL_ARGUMENT}${THINKING_LEVEL_ARGUMENT} --output-format json --print <<'${CLAUDE_PROMPT_DELIMITER}'
|
|
28469
28470
|
|
|
28470
28471
|
${block(options.prompt)}
|
|
28471
28472
|
|
|
@@ -28615,6 +28616,7 @@ class ClaudeCodeRunner {
|
|
|
28615
28616
|
async runPrompt(options) {
|
|
28616
28617
|
const scriptContent = buildClaudeScript({
|
|
28617
28618
|
prompt: options.prompt,
|
|
28619
|
+
model: this.options.model,
|
|
28618
28620
|
thinkingLevel: this.options.thinkingLevel,
|
|
28619
28621
|
});
|
|
28620
28622
|
const output = await $runGoScriptWithOutput({
|
|
@@ -29798,8 +29800,9 @@ function resolvePromptRunner(options) {
|
|
|
29798
29800
|
}
|
|
29799
29801
|
if (agentName === 'claude-code') {
|
|
29800
29802
|
return createRunnerResolution(options, new ClaudeCodeRunner({
|
|
29803
|
+
model: options.model,
|
|
29801
29804
|
thinkingLevel: options.thinkingLevel,
|
|
29802
|
-
}));
|
|
29805
|
+
}), options.model);
|
|
29803
29806
|
}
|
|
29804
29807
|
if (agentName === 'opencode') {
|
|
29805
29808
|
return createRunnerResolution(options, new OpencodeRunner({
|
|
@@ -29873,7 +29876,7 @@ function getRunnerMetadata(options, actualRunnerModel) {
|
|
|
29873
29876
|
if (options.agentName === 'cline') {
|
|
29874
29877
|
return { runnerName, modelName: CLINE_MODEL };
|
|
29875
29878
|
}
|
|
29876
|
-
if (options.agentName === 'opencode') {
|
|
29879
|
+
if (options.agentName === 'opencode' || options.agentName === 'claude-code') {
|
|
29877
29880
|
return { runnerName, modelName: options.model };
|
|
29878
29881
|
}
|
|
29879
29882
|
return { runnerName };
|