@promptbook/cli 0.112.0-108 → 0.112.0-109
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 +14 -3
- 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 +512 -1283
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +14 -3
- package/umd/index.umd.js.map +1 -1
- package/umd/src/version.d.ts +1 -1
package/esm/index.es.js
CHANGED
|
@@ -58,7 +58,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
58
58
|
* @generated
|
|
59
59
|
* @see https://github.com/webgptorg/promptbook
|
|
60
60
|
*/
|
|
61
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
61
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-109';
|
|
62
62
|
/**
|
|
63
63
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
64
64
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -34176,7 +34176,14 @@ function buildCodexScript(options) {
|
|
|
34176
34176
|
var _a;
|
|
34177
34177
|
const delimiter = 'CODEX_PROMPT';
|
|
34178
34178
|
const projectPath = toPosixPath(options.projectPath);
|
|
34179
|
-
const loginMethodConfig = options.allowCredits
|
|
34179
|
+
const loginMethodConfig = options.allowCredits
|
|
34180
|
+
? 'CODEX_LOGIN_METHOD_ARGUMENTS=()'
|
|
34181
|
+
: spaceTrim(`
|
|
34182
|
+
CODEX_LOGIN_METHOD_ARGUMENTS=(-c forced_login_method=chatgpt)
|
|
34183
|
+
if [ "\${PTBK_OPENAI_CODEX_USE_API_KEY:-0}" = "1" ] && [ -n "\${OPENAI_API_KEY:-}" ]; then
|
|
34184
|
+
CODEX_LOGIN_METHOD_ARGUMENTS=()
|
|
34185
|
+
fi
|
|
34186
|
+
`);
|
|
34180
34187
|
const thinkingLevel = (_a = options.thinkingLevel) !== null && _a !== void 0 ? _a : DEFAULT_CODEX_THINKING_LEVEL;
|
|
34181
34188
|
const modelReasoningEffortConfig = ` -c model_reasoning_effort="${thinkingLevel}" \\`;
|
|
34182
34189
|
return spaceTrim((block) => `
|
|
@@ -34187,11 +34194,15 @@ function buildCodexScript(options) {
|
|
|
34187
34194
|
set +a
|
|
34188
34195
|
fi
|
|
34189
34196
|
|
|
34197
|
+
${loginMethodConfig}
|
|
34198
|
+
|
|
34199
|
+
if [ "\${PTBK_OPENAI_CODEX_USE_API_KEY:-0}" != "1" ] || [ -z "\${OPENAI_API_KEY:-}" ]; then
|
|
34190
34200
|
unset OPENAI_API_KEY
|
|
34191
34201
|
unset OPENAI_BASE_URL
|
|
34202
|
+
fi
|
|
34192
34203
|
|
|
34193
34204
|
${options.codexCommand} \\
|
|
34194
|
-
|
|
34205
|
+
"\${CODEX_LOGIN_METHOD_ARGUMENTS[@]}" \\
|
|
34195
34206
|
${modelReasoningEffortConfig}
|
|
34196
34207
|
--ask-for-approval ${options.askForApproval} \\
|
|
34197
34208
|
exec --model ${options.model} \\
|