@f-o-h/cli 0.1.80 → 0.1.81
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 +15 -10
- package/package.json +1 -1
package/dist/foh.js
CHANGED
|
@@ -14550,8 +14550,8 @@ function registerAgent(program3) {
|
|
|
14550
14550
|
});
|
|
14551
14551
|
format(data, { json: opts.json ?? false });
|
|
14552
14552
|
}));
|
|
14553
|
-
agent.command("show").description("Show agent config and status").requiredOption("--agent <id>", "Agent ID").option("--api-url <url>", "API base URL override").option("--json", "Output as JSON").action(async (opts) => withCommandErrorHandling(async () => {
|
|
14554
|
-
const data = await apiFetch(`/v1/console/agents/${opts.agent}`, { apiUrlOverride: opts.apiUrl });
|
|
14553
|
+
agent.command("show").description("Show agent config and status").requiredOption("--agent <id>", "Agent ID").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 () => {
|
|
14554
|
+
const data = await apiFetch(`/v1/console/agents/${opts.agent}`, { orgId: opts.org, apiUrlOverride: opts.apiUrl });
|
|
14555
14555
|
format(data, { json: opts.json ?? false });
|
|
14556
14556
|
}));
|
|
14557
14557
|
agent.command("replay").description("Create a replay/debug packet from a trace or conversation").option("--trace <id>", "Trace event ID to replay through the server trace replay endpoint").option("--conversation <id>", "Conversation ID to package with transcript and traces").option("--file <path>", "Local transcript/replay artifact JSON to package without API access").option("--agent <id>", "Agent ID").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 () => {
|
|
@@ -14645,7 +14645,7 @@ function registerAgent(program3) {
|
|
|
14645
14645
|
}));
|
|
14646
14646
|
registerAgentPreviewCommands(agent);
|
|
14647
14647
|
registerAgentValidationCommands(agent);
|
|
14648
|
-
agent.command("rollout").description("Configure progressive rollout for a published policy version").requiredOption("--agent <id>", "Agent ID").requiredOption("--percentage <n>", "Rollout percentage (0-100)").option("--baseline-version <n>", "Optional baseline version").option("--candidate-version <n>", "Optional candidate version").option("--enabled <value>", "Optional boolean override: true|false").option("--api-url <url>", "API base URL override").option("--json", "Output as JSON").action(async (opts) => withCommandErrorHandling(async () => {
|
|
14648
|
+
agent.command("rollout").description("Configure progressive rollout for a published policy version").requiredOption("--agent <id>", "Agent ID").requiredOption("--percentage <n>", "Rollout percentage (0-100)").option("--baseline-version <n>", "Optional baseline version").option("--candidate-version <n>", "Optional candidate version").option("--enabled <value>", "Optional boolean override: true|false").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 () => {
|
|
14649
14649
|
const percentage = Number(opts.percentage);
|
|
14650
14650
|
if (!Number.isFinite(percentage) || percentage < 0 || percentage > 100) {
|
|
14651
14651
|
throw new FohError({
|
|
@@ -14675,40 +14675,45 @@ function registerAgent(program3) {
|
|
|
14675
14675
|
const data = await apiFetch(`/v1/console/agents/${opts.agent}/rollout`, {
|
|
14676
14676
|
method: "POST",
|
|
14677
14677
|
body: JSON.stringify(body),
|
|
14678
|
+
orgId: opts.org,
|
|
14678
14679
|
apiUrlOverride: opts.apiUrl
|
|
14679
14680
|
});
|
|
14680
14681
|
format(data, { json: opts.json ?? false });
|
|
14681
14682
|
}));
|
|
14682
|
-
agent.command("rollback").description("Roll back an agent to a previous version").requiredOption("--agent <id>", "Agent ID").option("--version <versionId>", "Target version ID (defaults to previous)").option("--api-url <url>", "API base URL override").option("--json", "Output as JSON").action(async (opts) => withCommandErrorHandling(async () => {
|
|
14683
|
+
agent.command("rollback").description("Roll back an agent to a previous version").requiredOption("--agent <id>", "Agent ID").option("--version <versionId>", "Target version ID (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 () => {
|
|
14683
14684
|
const body = opts.version ? { version_id: opts.version } : {};
|
|
14684
14685
|
const data = await apiFetch(`/v1/console/agents/${opts.agent}/rollback`, {
|
|
14685
14686
|
method: "POST",
|
|
14686
14687
|
body: JSON.stringify(body),
|
|
14688
|
+
orgId: opts.org,
|
|
14687
14689
|
apiUrlOverride: opts.apiUrl
|
|
14688
14690
|
});
|
|
14689
14691
|
format(data, { json: opts.json ?? false });
|
|
14690
14692
|
}));
|
|
14691
|
-
agent.command("versions").description("List agent versions").requiredOption("--agent <id>", "Agent ID").option("--api-url <url>", "API base URL override").option("--json", "Output as JSON").action(async (opts) => withCommandErrorHandling(async () => {
|
|
14692
|
-
const data = await apiFetch(`/v1/console/agents/${opts.agent}/versions`, { apiUrlOverride: opts.apiUrl });
|
|
14693
|
+
agent.command("versions").description("List agent versions").requiredOption("--agent <id>", "Agent ID").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 () => {
|
|
14694
|
+
const data = await apiFetch(`/v1/console/agents/${opts.agent}/versions`, { orgId: opts.org, apiUrlOverride: opts.apiUrl });
|
|
14693
14695
|
format(data, { json: opts.json ?? false });
|
|
14694
14696
|
}));
|
|
14695
|
-
agent.command("version-diff").description("Diff one version snapshot against another").requiredOption("--agent <id>", "Agent ID").requiredOption("--version <id>", "Version ID to inspect").option("--compare-with <id>", "Optional baseline version to compare against").option("--api-url <url>", "API base URL override").option("--json", "Output as JSON").action(async (opts) => withCommandErrorHandling(async () => {
|
|
14697
|
+
agent.command("version-diff").description("Diff one version snapshot against another").requiredOption("--agent <id>", "Agent ID").requiredOption("--version <id>", "Version ID to inspect").option("--compare-with <id>", "Optional baseline version to compare against").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 () => {
|
|
14696
14698
|
const query = opts.compareWith ? `?compareWith=${encodeURIComponent(String(opts.compareWith))}` : "";
|
|
14697
14699
|
const data = await apiFetch(`/v1/console/agents/${opts.agent}/versions/${opts.version}/diff${query}`, {
|
|
14700
|
+
orgId: opts.org,
|
|
14698
14701
|
apiUrlOverride: opts.apiUrl
|
|
14699
14702
|
});
|
|
14700
14703
|
format(data, { json: opts.json ?? false });
|
|
14701
14704
|
}));
|
|
14702
|
-
agent.command("version-activate").description("Activate a historical version as the current release").requiredOption("--agent <id>", "Agent ID").requiredOption("--version <id>", "Version ID").option("--api-url <url>", "API base URL override").option("--json", "Output as JSON").action(async (opts) => withCommandErrorHandling(async () => {
|
|
14705
|
+
agent.command("version-activate").description("Activate a historical version as the current release").requiredOption("--agent <id>", "Agent ID").requiredOption("--version <id>", "Version ID").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 () => {
|
|
14703
14706
|
const data = await apiFetch(`/v1/console/agents/${opts.agent}/versions/${opts.version}/activate`, {
|
|
14704
14707
|
method: "POST",
|
|
14705
14708
|
body: JSON.stringify({}),
|
|
14709
|
+
orgId: opts.org,
|
|
14706
14710
|
apiUrlOverride: opts.apiUrl
|
|
14707
14711
|
});
|
|
14708
14712
|
format(data, { json: opts.json ?? false });
|
|
14709
14713
|
}));
|
|
14710
|
-
agent.command("candidate-lineage").description("Show candidate lineage graph and latest decisions").requiredOption("--agent <id>", "Agent ID").option("--api-url <url>", "API base URL override").option("--json", "Output as JSON").action(async (opts) => withCommandErrorHandling(async () => {
|
|
14714
|
+
agent.command("candidate-lineage").description("Show candidate lineage graph and latest decisions").requiredOption("--agent <id>", "Agent ID").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 () => {
|
|
14711
14715
|
const data = await apiFetch(`/v1/console/agents/${opts.agent}/candidates/lineage`, {
|
|
14716
|
+
orgId: opts.org,
|
|
14712
14717
|
apiUrlOverride: opts.apiUrl
|
|
14713
14718
|
});
|
|
14714
14719
|
format(data, { json: opts.json ?? false });
|
|
@@ -32987,7 +32992,7 @@ var StdioServerTransport = class {
|
|
|
32987
32992
|
};
|
|
32988
32993
|
|
|
32989
32994
|
// src/lib/cli-version.ts
|
|
32990
|
-
var CLI_VERSION = "0.1.
|
|
32995
|
+
var CLI_VERSION = "0.1.81";
|
|
32991
32996
|
|
|
32992
32997
|
// src/commands/mcp-serve.ts
|
|
32993
32998
|
var DEFAULT_TIMEOUT_MS = 12e4;
|