@promptbook/cli 0.114.0-40 → 0.114.0-41
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 +1016 -1066
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/runners/gemini/GeminiRunner.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/runners/qwen-code/QwenCodeRunner.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/harness/HARNESS_DEFAULT_MODELS.d.ts +25 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.ts +1 -1
- package/src/cli/cli-commands/common/harness/HARNESS_DEFAULT_MODELS.ts +37 -0
- package/src/cli/cli-commands/common/promptRunnerCliOptions.ts +18 -10
- package/src/other/templates/getTemplatesPipelineCollection.ts +843 -666
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +1016 -1066
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/runners/gemini/GeminiRunner.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/runners/qwen-code/QwenCodeRunner.d.ts +1 -1
- package/umd/src/cli/cli-commands/common/harness/HARNESS_DEFAULT_MODELS.d.ts +25 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -5,7 +5,7 @@ import type { GeminiRunnerOptions } from './GeminiRunnerOptions';
|
|
|
5
5
|
/**
|
|
6
6
|
* Default Gemini model used by the coding runner.
|
|
7
7
|
*/
|
|
8
|
-
export declare const DEFAULT_GEMINI_MODEL
|
|
8
|
+
export declare const DEFAULT_GEMINI_MODEL: "gemini-3.8-flash";
|
|
9
9
|
/**
|
|
10
10
|
* Runs prompts via the Gemini CLI.
|
|
11
11
|
*/
|
|
@@ -5,7 +5,7 @@ import type { QwenCodeRunnerOptions } from './QwenCodeRunnerOptions';
|
|
|
5
5
|
/**
|
|
6
6
|
* Default Qwen Code model used by the coding runner.
|
|
7
7
|
*/
|
|
8
|
-
export declare const DEFAULT_QWEN_CODE_MODEL
|
|
8
|
+
export declare const DEFAULT_QWEN_CODE_MODEL: "qwen3.8-max";
|
|
9
9
|
/**
|
|
10
10
|
* Runs prompts via the Qwen Code CLI.
|
|
11
11
|
*/
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [🕕] Default models shared by CLI execution, project initialization and the coder landing page.
|
|
3
|
+
*
|
|
4
|
+
* Checked against provider documentation on 2026-09-21:
|
|
5
|
+
* - https://developers.openai.com/codex/models
|
|
6
|
+
* - https://github.blog/changelog/2026-09-04-gpt-6-astra-is-generally-available-in-github-copilot/
|
|
7
|
+
* - https://code.claude.com/docs/en/model-config
|
|
8
|
+
* - https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash
|
|
9
|
+
* - https://qwenlm.github.io/qwen-code-docs/en/blog/updates/weekly-update-2026-08-27/
|
|
10
|
+
*
|
|
11
|
+
* Claude's `fable` alias follows its current flagship. OpenCode needs a provider-qualified model;
|
|
12
|
+
* the Cline adapter uses Google's provider and therefore needs a Gemini model ID.
|
|
13
|
+
* Keep this module free of runtime dependencies so the landing page can consume the same defaults.
|
|
14
|
+
*
|
|
15
|
+
* @private internal configuration of CLI harness integrations
|
|
16
|
+
*/
|
|
17
|
+
export declare const HARNESS_DEFAULT_MODELS: {
|
|
18
|
+
readonly 'openai-codex': "gpt-6-astra";
|
|
19
|
+
readonly 'github-copilot': "gpt-6-astra";
|
|
20
|
+
readonly 'claude-code': "fable";
|
|
21
|
+
readonly gemini: "gemini-3.8-flash";
|
|
22
|
+
readonly 'qwen-code': "qwen3.8-max";
|
|
23
|
+
readonly opencode: "openai/gpt-6-astra";
|
|
24
|
+
readonly cline: "gemini-3.8-flash";
|
|
25
|
+
};
|
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.114.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.114.0-40`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@ const DEFAULT_CODER_PACKAGE_JSON_SCRIPT_DEFINITIONS: ReadonlyArray<CoderPackageJ
|
|
|
52
52
|
{
|
|
53
53
|
scriptName: 'coder:run',
|
|
54
54
|
scriptCommand: [
|
|
55
|
-
'npx ptbk coder run --harness openai-codex --
|
|
55
|
+
'npx ptbk coder run --harness openai-codex --thinking-level max',
|
|
56
56
|
`--agent ${formatDisplayPath(CODER_DEVELOPER_AGENT_FILE_PATH)}`,
|
|
57
57
|
`--context ${formatDisplayPath(AGENTS_FILE_PATH)}`,
|
|
58
58
|
`--test "npm run ${CODER_TEST_SCRIPT_NAME}" --test-before yes-and-fix`,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { PromptRunnerHarnessName } from '../promptRunnerCliOptions';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Latest OpenAI flagship used by harnesses which support OpenAI models.
|
|
5
|
+
*/
|
|
6
|
+
const OPENAI_FLAGSHIP_MODEL = 'gpt-6-astra';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Latest Gemini model for coding and long-running agent tasks.
|
|
10
|
+
*/
|
|
11
|
+
const GEMINI_FLAGSHIP_MODEL = 'gemini-3.8-flash';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* [🕕] Default models shared by CLI execution, project initialization and the coder landing page.
|
|
15
|
+
*
|
|
16
|
+
* Checked against provider documentation on 2026-09-21:
|
|
17
|
+
* - https://developers.openai.com/codex/models
|
|
18
|
+
* - https://github.blog/changelog/2026-09-04-gpt-6-astra-is-generally-available-in-github-copilot/
|
|
19
|
+
* - https://code.claude.com/docs/en/model-config
|
|
20
|
+
* - https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash
|
|
21
|
+
* - https://qwenlm.github.io/qwen-code-docs/en/blog/updates/weekly-update-2026-08-27/
|
|
22
|
+
*
|
|
23
|
+
* Claude's `fable` alias follows its current flagship. OpenCode needs a provider-qualified model;
|
|
24
|
+
* the Cline adapter uses Google's provider and therefore needs a Gemini model ID.
|
|
25
|
+
* Keep this module free of runtime dependencies so the landing page can consume the same defaults.
|
|
26
|
+
*
|
|
27
|
+
* @private internal configuration of CLI harness integrations
|
|
28
|
+
*/
|
|
29
|
+
export const HARNESS_DEFAULT_MODELS = {
|
|
30
|
+
'openai-codex': OPENAI_FLAGSHIP_MODEL,
|
|
31
|
+
'github-copilot': OPENAI_FLAGSHIP_MODEL,
|
|
32
|
+
'claude-code': 'fable',
|
|
33
|
+
gemini: GEMINI_FLAGSHIP_MODEL,
|
|
34
|
+
'qwen-code': 'qwen3.8-max',
|
|
35
|
+
opencode: `openai/${OPENAI_FLAGSHIP_MODEL}`,
|
|
36
|
+
cline: GEMINI_FLAGSHIP_MODEL,
|
|
37
|
+
} as const satisfies Readonly<Record<PromptRunnerHarnessName, string>>;
|
|
@@ -14,6 +14,7 @@ import type { GitChangesMode } from '../coder/GitChangesMode';
|
|
|
14
14
|
import { DEFAULT_GIT_CHANGES_MODE, GIT_CHANGES_MODE_VALUES } from '../coder/GitChangesMode';
|
|
15
15
|
import type { ThinkingLevel } from '../coder/ThinkingLevel';
|
|
16
16
|
import { THINKING_LEVEL_VALUES } from '../coder/ThinkingLevel';
|
|
17
|
+
import { HARNESS_DEFAULT_MODELS } from './harness/HARNESS_DEFAULT_MODELS';
|
|
17
18
|
|
|
18
19
|
export { PTBK_HARNESS_ENV, PTBK_MODEL_ENV, PTBK_THINKING_LEVEL_ENV };
|
|
19
20
|
|
|
@@ -94,13 +95,15 @@ export type NormalizedPromptRunnerSelectionCliOptions = Pick<
|
|
|
94
95
|
*/
|
|
95
96
|
export const PROMPT_RUNNER_DESCRIPTION = spaceTrim(`
|
|
96
97
|
Runners:
|
|
97
|
-
- openai-codex: OpenAI Codex integration
|
|
98
|
+
- openai-codex: OpenAI Codex integration
|
|
98
99
|
- github-copilot: GitHub Copilot CLI integration
|
|
99
100
|
- cline: Cline CLI integration
|
|
100
101
|
- claude-code: Claude Code integration
|
|
101
102
|
- opencode: Opencode integration
|
|
102
|
-
- gemini: Google Gemini CLI integration
|
|
103
|
-
- qwen-code: Qwen Code CLI integration
|
|
103
|
+
- gemini: Google Gemini CLI integration
|
|
104
|
+
- qwen-code: Qwen Code CLI integration
|
|
105
|
+
|
|
106
|
+
Each harness automatically uses its current flagship model unless --model or PTBK_MODEL overrides it.
|
|
104
107
|
`);
|
|
105
108
|
|
|
106
109
|
/**
|
|
@@ -124,15 +127,20 @@ export const PROMPT_RUNNER_HARNESS_OPTION_HINT = `--harness <${PROMPT_RUNNER_HAR
|
|
|
124
127
|
*
|
|
125
128
|
* @private internal utility of `promptbookCli`
|
|
126
129
|
*/
|
|
127
|
-
export const PROMPT_RUNNER_MODEL_OPTION_DESCRIPTION = spaceTrim(
|
|
128
|
-
|
|
130
|
+
export const PROMPT_RUNNER_MODEL_OPTION_DESCRIPTION = spaceTrim(
|
|
131
|
+
(block) => `
|
|
132
|
+
Model to use or filter by (optional; execution defaults to the current flagship of the selected harness)
|
|
129
133
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
${block(
|
|
135
|
+
Object.entries(HARNESS_DEFAULT_MODELS)
|
|
136
|
+
.map(([harnessName, modelName]) => `${harnessName}: ${modelName}`)
|
|
137
|
+
.join('\n'),
|
|
138
|
+
)}
|
|
133
139
|
|
|
134
|
-
|
|
135
|
-
|
|
140
|
+
"default" keeps the model configured in Codex, Copilot, Claude Code or OpenCode itself.
|
|
141
|
+
For Gemini, Qwen Code and Cline, "default" selects the flagship above.
|
|
142
|
+
`,
|
|
143
|
+
);
|
|
136
144
|
|
|
137
145
|
/**
|
|
138
146
|
* Commander description for the `--git-changes` option.
|