@f-o-h/cli 0.1.56 → 0.1.57
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/foh.js +29 -4
- package/package.json +1 -1
package/dist/foh.js
CHANGED
|
@@ -32853,7 +32853,7 @@ var StdioServerTransport = class {
|
|
|
32853
32853
|
};
|
|
32854
32854
|
|
|
32855
32855
|
// src/lib/cli-version.ts
|
|
32856
|
-
var CLI_VERSION = "0.1.
|
|
32856
|
+
var CLI_VERSION = "0.1.57";
|
|
32857
32857
|
|
|
32858
32858
|
// src/commands/mcp-serve.ts
|
|
32859
32859
|
var DEFAULT_TIMEOUT_MS = 12e4;
|
|
@@ -40253,6 +40253,33 @@ function externalAgentSummaryCommand2(root) {
|
|
|
40253
40253
|
quoteArg(reportPath)
|
|
40254
40254
|
].join(" ");
|
|
40255
40255
|
}
|
|
40256
|
+
function executorRecoveryCommands(reasonCode, runner) {
|
|
40257
|
+
const normalizedRunner = String(runner || "codex").trim().toLowerCase();
|
|
40258
|
+
if (reasonCode === "external_agent_runner_binary_missing") {
|
|
40259
|
+
if (normalizedRunner === "gemini") {
|
|
40260
|
+
return [
|
|
40261
|
+
"gemini --version",
|
|
40262
|
+
"gemini --help",
|
|
40263
|
+
"Install and authenticate Gemini CLI on the isolated eval host, then rerun the same `foh eval external-agent execute --runner gemini --dry-run --json` command."
|
|
40264
|
+
];
|
|
40265
|
+
}
|
|
40266
|
+
return [
|
|
40267
|
+
"codex --version",
|
|
40268
|
+
"codex exec --help",
|
|
40269
|
+
"Run `codex login` on the isolated eval host if the binary is installed but not usable, then rerun the dry-run executor plan."
|
|
40270
|
+
];
|
|
40271
|
+
}
|
|
40272
|
+
if (reasonCode === "external_agent_runner_required_flags_missing" || reasonCode === "external_agent_runner_help_unavailable") {
|
|
40273
|
+
return [
|
|
40274
|
+
`${normalizedRunner} --version`,
|
|
40275
|
+
`${normalizedRunner} --help`,
|
|
40276
|
+
"Upgrade or reinstall the runner CLI on the isolated eval host, then rerun the dry-run executor plan."
|
|
40277
|
+
];
|
|
40278
|
+
}
|
|
40279
|
+
return [
|
|
40280
|
+
"Fix the executor plan input or workspace path and rerun with --dry-run."
|
|
40281
|
+
];
|
|
40282
|
+
}
|
|
40256
40283
|
function parseModelSpec(raw) {
|
|
40257
40284
|
const [provider, ...nameParts] = String(raw || "").split("/");
|
|
40258
40285
|
const name = nameParts.join("/");
|
|
@@ -40636,9 +40663,7 @@ Exit the shell to finalize run.json.
|
|
|
40636
40663
|
status: "blocked",
|
|
40637
40664
|
reasonCode: error2.reasonCode,
|
|
40638
40665
|
summary: error2.message,
|
|
40639
|
-
nextCommands:
|
|
40640
|
-
"Fix the executor plan input or workspace path and rerun with --dry-run."
|
|
40641
|
-
]
|
|
40666
|
+
nextCommands: executorRecoveryCommands(error2.reasonCode, String(opts.runner || "codex"))
|
|
40642
40667
|
}), { json: Boolean(opts.json) });
|
|
40643
40668
|
process.exitCode = 1;
|
|
40644
40669
|
return;
|