@promptbook/node 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 +2 -2
- 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/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.113.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.113.0-3`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.113.0-
|
|
3
|
+
"version": "0.113.0-4",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"types": "./esm/src/_packages/node.index.d.ts",
|
|
98
98
|
"typings": "./esm/src/_packages/node.index.d.ts",
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@promptbook/core": "0.113.0-
|
|
100
|
+
"@promptbook/core": "0.113.0-4"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@mozilla/readability": "0.6.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* @generated
|
|
52
52
|
* @see https://github.com/webgptorg/promptbook
|
|
53
53
|
*/
|
|
54
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-
|
|
54
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-4';
|
|
55
55
|
/**
|
|
56
56
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
57
57
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3025,9 +3025,10 @@
|
|
|
3025
3025
|
* Builds the shell script that runs Claude Code with the prompt and coding context.
|
|
3026
3026
|
*/
|
|
3027
3027
|
function buildClaudeScript(options) {
|
|
3028
|
+
const MODEL_ARGUMENT = options.model ? ` --model ${options.model}` : '';
|
|
3028
3029
|
const THINKING_LEVEL_ARGUMENT = options.thinkingLevel ? ` --effort ${options.thinkingLevel}` : '';
|
|
3029
3030
|
return spaceTrim((block) => `
|
|
3030
|
-
claude --allowedTools "Bash,Read,Edit,Write"${THINKING_LEVEL_ARGUMENT} --output-format json --print <<'${CLAUDE_PROMPT_DELIMITER}'
|
|
3031
|
+
claude --allowedTools "Bash,Read,Edit,Write"${MODEL_ARGUMENT}${THINKING_LEVEL_ARGUMENT} --output-format json --print <<'${CLAUDE_PROMPT_DELIMITER}'
|
|
3031
3032
|
|
|
3032
3033
|
${block(options.prompt)}
|
|
3033
3034
|
|
|
@@ -3177,6 +3178,7 @@
|
|
|
3177
3178
|
async runPrompt(options) {
|
|
3178
3179
|
const scriptContent = buildClaudeScript({
|
|
3179
3180
|
prompt: options.prompt,
|
|
3181
|
+
model: this.options.model,
|
|
3180
3182
|
thinkingLevel: this.options.thinkingLevel,
|
|
3181
3183
|
});
|
|
3182
3184
|
const output = await $runGoScriptWithOutput({
|
|
@@ -4437,8 +4439,9 @@
|
|
|
4437
4439
|
}
|
|
4438
4440
|
if (agentName === 'claude-code') {
|
|
4439
4441
|
return createRunnerResolution(options, new ClaudeCodeRunner({
|
|
4442
|
+
model: options.model,
|
|
4440
4443
|
thinkingLevel: options.thinkingLevel,
|
|
4441
|
-
}));
|
|
4444
|
+
}), options.model);
|
|
4442
4445
|
}
|
|
4443
4446
|
if (agentName === 'opencode') {
|
|
4444
4447
|
return createRunnerResolution(options, new OpencodeRunner({
|
|
@@ -4512,7 +4515,7 @@
|
|
|
4512
4515
|
if (options.agentName === 'cline') {
|
|
4513
4516
|
return { runnerName, modelName: CLINE_MODEL };
|
|
4514
4517
|
}
|
|
4515
|
-
if (options.agentName === 'opencode') {
|
|
4518
|
+
if (options.agentName === 'opencode' || options.agentName === 'claude-code') {
|
|
4516
4519
|
return { runnerName, modelName: options.model };
|
|
4517
4520
|
}
|
|
4518
4521
|
return { runnerName };
|