@f-o-h/cli 0.1.82 → 0.1.83
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 +3 -3
- package/package.json +1 -1
package/dist/foh.js
CHANGED
|
@@ -14680,8 +14680,8 @@ function registerAgent(program3) {
|
|
|
14680
14680
|
});
|
|
14681
14681
|
format(data, { json: opts.json ?? false });
|
|
14682
14682
|
}));
|
|
14683
|
-
agent.command("rollback").description("Roll back an agent to a previous version").requiredOption("--agent <id>", "Agent ID").option("--version <
|
|
14684
|
-
const body = opts.
|
|
14683
|
+
agent.command("rollback").description("Roll back an agent to a previous version").requiredOption("--agent <id>", "Agent ID").option("--target-version <n>", "Target policy version number (defaults to previous)").option("--org <id>", "Org ID (default: stored org from foh org use)").option("--api-url <url>", "API base URL override").option("--json", "Output as JSON").action(async (opts) => withCommandErrorHandling(async () => {
|
|
14684
|
+
const body = opts.targetVersion ? { version: Number(opts.targetVersion) } : {};
|
|
14685
14685
|
const data = await apiFetch(`/v1/console/agents/${opts.agent}/rollback`, {
|
|
14686
14686
|
method: "POST",
|
|
14687
14687
|
body: JSON.stringify(body),
|
|
@@ -32992,7 +32992,7 @@ var StdioServerTransport = class {
|
|
|
32992
32992
|
};
|
|
32993
32993
|
|
|
32994
32994
|
// src/lib/cli-version.ts
|
|
32995
|
-
var CLI_VERSION = "0.1.
|
|
32995
|
+
var CLI_VERSION = "0.1.83";
|
|
32996
32996
|
|
|
32997
32997
|
// src/commands/mcp-serve.ts
|
|
32998
32998
|
var DEFAULT_TIMEOUT_MS = 12e4;
|