aiblueprint-cli 1.4.91 → 1.4.92
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/dist/cli.js +19 -12
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -34045,6 +34045,7 @@ var import_fs_extra8 = __toESM(require_lib4(), 1);
|
|
|
34045
34045
|
import path12 from "path";
|
|
34046
34046
|
var GENERATED_MARKER = "# Generated by aiblueprint-cli from Markdown agents.";
|
|
34047
34047
|
var IGNORED_ENTRY_NAMES = new Set([".DS_Store", "node_modules"]);
|
|
34048
|
+
var DEFAULT_CODEX_SUBAGENT_MODEL = "gpt-5.6-terra";
|
|
34048
34049
|
function parseFrontmatterValue(rawValue) {
|
|
34049
34050
|
const value = rawValue.trim();
|
|
34050
34051
|
if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
|
|
@@ -34105,20 +34106,27 @@ function normalizeCodexAgentName(value) {
|
|
|
34105
34106
|
return `agent_${normalized}`;
|
|
34106
34107
|
return normalized;
|
|
34107
34108
|
}
|
|
34108
|
-
function
|
|
34109
|
+
function resolveCodexModelSettings(model) {
|
|
34109
34110
|
switch (model?.trim().toLowerCase()) {
|
|
34111
|
+
case "opus":
|
|
34112
|
+
return {
|
|
34113
|
+
model: DEFAULT_CODEX_SUBAGENT_MODEL,
|
|
34114
|
+
reasoningEffort: "high"
|
|
34115
|
+
};
|
|
34110
34116
|
case "haiku":
|
|
34111
|
-
return "gpt-5.4-mini";
|
|
34112
34117
|
case "sonnet":
|
|
34113
|
-
return "gpt-5.4";
|
|
34114
|
-
case "opus":
|
|
34115
|
-
return "gpt-5.5";
|
|
34116
34118
|
case "inherit":
|
|
34117
34119
|
case "":
|
|
34118
34120
|
case undefined:
|
|
34119
|
-
return
|
|
34121
|
+
return {
|
|
34122
|
+
model: DEFAULT_CODEX_SUBAGENT_MODEL,
|
|
34123
|
+
reasoningEffort: "medium"
|
|
34124
|
+
};
|
|
34120
34125
|
default:
|
|
34121
|
-
return
|
|
34126
|
+
return {
|
|
34127
|
+
model,
|
|
34128
|
+
reasoningEffort: "medium"
|
|
34129
|
+
};
|
|
34122
34130
|
}
|
|
34123
34131
|
}
|
|
34124
34132
|
function tomlString(value) {
|
|
@@ -34158,16 +34166,15 @@ function renderToml(agent) {
|
|
|
34158
34166
|
return null;
|
|
34159
34167
|
}
|
|
34160
34168
|
const name = normalizeCodexAgentName(rawName);
|
|
34161
|
-
const
|
|
34169
|
+
const modelSettings = resolveCodexModelSettings(agent.frontmatter.model);
|
|
34162
34170
|
const lines = [
|
|
34163
34171
|
GENERATED_MARKER,
|
|
34164
34172
|
`# Source: ${agent.sourcePath}`,
|
|
34165
34173
|
`name = ${tomlString(name)}`,
|
|
34166
|
-
`description = ${tomlString(description)}
|
|
34174
|
+
`description = ${tomlString(description)}`,
|
|
34175
|
+
`model = ${tomlString(modelSettings.model)}`,
|
|
34176
|
+
`model_reasoning_effort = ${tomlString(modelSettings.reasoningEffort)}`
|
|
34167
34177
|
];
|
|
34168
|
-
if (model) {
|
|
34169
|
-
lines.push(`model = ${tomlString(model)}`);
|
|
34170
|
-
}
|
|
34171
34178
|
lines.push(`developer_instructions = ${tomlMultilineLiteral(buildDeveloperInstructions(agent))}`);
|
|
34172
34179
|
lines.push("");
|
|
34173
34180
|
return {
|