@f-o-h/cli 0.1.78 → 0.1.80
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/README.md +1 -1
- package/dist/foh.js +23 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ AI-operator provisioning CLI for Front Of House.
|
|
|
4
4
|
|
|
5
5
|
Public mirror: https://github.com/iiko38/front-of-house-cli
|
|
6
6
|
|
|
7
|
-
Current published baseline: `@f-o-h/cli@0.1.
|
|
7
|
+
Current published baseline: `@f-o-h/cli@0.1.79`
|
|
8
8
|
|
|
9
9
|
This mirror is a generated release artifact. The private product monorepo is not
|
|
10
10
|
published here, and no open-source license is granted unless stated separately.
|
package/dist/foh.js
CHANGED
|
@@ -32987,7 +32987,7 @@ var StdioServerTransport = class {
|
|
|
32987
32987
|
};
|
|
32988
32988
|
|
|
32989
32989
|
// src/lib/cli-version.ts
|
|
32990
|
-
var CLI_VERSION = "0.1.
|
|
32990
|
+
var CLI_VERSION = "0.1.80";
|
|
32991
32991
|
|
|
32992
32992
|
// src/commands/mcp-serve.ts
|
|
32993
32993
|
var DEFAULT_TIMEOUT_MS = 12e4;
|
|
@@ -36829,6 +36829,13 @@ function registerOpsRecommendationCommands(ops) {
|
|
|
36829
36829
|
}
|
|
36830
36830
|
|
|
36831
36831
|
// src/commands/ops-reporting.ts
|
|
36832
|
+
function appendSetupPreviewContext(params, opts) {
|
|
36833
|
+
if (opts.agencyName) params.set("agency_name", String(opts.agencyName));
|
|
36834
|
+
if (opts.sourceUrl) params.set("source_url", String(opts.sourceUrl));
|
|
36835
|
+
if (opts.branchLocation) params.set("branch_location", String(opts.branchLocation));
|
|
36836
|
+
if (opts.tools) params.set("tools", String(opts.tools));
|
|
36837
|
+
if (opts.targetMode) params.set("target_mode", String(opts.targetMode));
|
|
36838
|
+
}
|
|
36832
36839
|
function registerOpsReportingCommands(reporting) {
|
|
36833
36840
|
reporting.command("kb-usage").description("Show KB usage aggregate report").requiredOption("--agent <id>", "Agent ID").option("--days <n>", "Lookback window in days", "7").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 () => {
|
|
36834
36841
|
const params = new URLSearchParams({
|
|
@@ -36875,25 +36882,27 @@ function registerOpsReportingCommands(reporting) {
|
|
|
36875
36882
|
});
|
|
36876
36883
|
format(data, { json: opts.json ?? false });
|
|
36877
36884
|
}));
|
|
36878
|
-
reporting.command("launch-packet").description("Show latest customer launch packet and grouped go-live blockers").option("--environment <value>", "Environment filter").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 () => {
|
|
36885
|
+
reporting.command("launch-packet").description("Show latest customer launch packet and grouped go-live blockers").option("--environment <value>", "Environment filter").option("--agency-name <name>", "Agency name for setup-preview fallback when no release packet exists").option("--source-url <url>", "Official source URL for setup-preview fallback").option("--branch-location <value>", "Branch/location for setup-preview fallback").option("--tools <csv>", "Requested tool surface for setup-preview fallback").option("--target-mode <mode>", "Target exposure mode for setup-preview fallback").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 () => {
|
|
36879
36886
|
const params = new URLSearchParams();
|
|
36880
36887
|
if (opts.environment) params.set("environment", String(opts.environment));
|
|
36888
|
+
appendSetupPreviewContext(params, opts);
|
|
36881
36889
|
const data = await apiFetch(withQuery("/v1/console/release-launch-packet", params), {
|
|
36882
36890
|
orgId: opts.org,
|
|
36883
36891
|
apiUrlOverride: opts.apiUrl
|
|
36884
36892
|
});
|
|
36885
36893
|
format(data, { json: opts.json ?? false });
|
|
36886
36894
|
}));
|
|
36887
|
-
reporting.command("launch-packet-skeletons").description("Generate customer launch evidence skeletons from latest launch packet blockers").option("--environment <value>", "Environment filter").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 () => {
|
|
36895
|
+
reporting.command("launch-packet-skeletons").description("Generate customer launch evidence skeletons from latest launch packet blockers").option("--environment <value>", "Environment filter").option("--agency-name <name>", "Agency name for setup-preview fallback when no release packet exists").option("--source-url <url>", "Official source URL for setup-preview fallback").option("--branch-location <value>", "Branch/location for setup-preview fallback").option("--tools <csv>", "Requested tool surface for setup-preview fallback").option("--target-mode <mode>", "Target exposure mode for setup-preview fallback").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 () => {
|
|
36888
36896
|
const params = new URLSearchParams();
|
|
36889
36897
|
if (opts.environment) params.set("environment", String(opts.environment));
|
|
36898
|
+
appendSetupPreviewContext(params, opts);
|
|
36890
36899
|
const data = await apiFetch(withQuery("/v1/console/release-launch-packet/evidence-skeletons", params), {
|
|
36891
36900
|
orgId: opts.org,
|
|
36892
36901
|
apiUrlOverride: opts.apiUrl
|
|
36893
36902
|
});
|
|
36894
36903
|
format(data, { json: opts.json ?? false });
|
|
36895
36904
|
}));
|
|
36896
|
-
reporting.command("launch-packet-evidence-check").description("Dry-run customer launch evidence before any release gate can consume it").requiredOption("--evidence <json|@file>", 'Evidence JSON object, usually { "evidence": [{ "id": "...", "payload": {...} }] }').option("--apply", "
|
|
36905
|
+
reporting.command("launch-packet-evidence-check").description("Dry-run customer launch evidence before any release gate can consume it").requiredOption("--evidence <json|@file>", 'Evidence JSON object, usually { "evidence": [{ "id": "...", "payload": {...} }] }').option("--apply", "Store completed redacted evidence through the API-owned atomic apply path").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 () => {
|
|
36897
36906
|
const parsed = await parseJsonOption(opts.evidence, "--evidence");
|
|
36898
36907
|
const body = parsed && typeof parsed === "object" && !Array.isArray(parsed) ? { ...parsed } : { evidence: parsed };
|
|
36899
36908
|
if (opts.apply) body.apply = true;
|
|
@@ -36905,6 +36914,16 @@ function registerOpsReportingCommands(reporting) {
|
|
|
36905
36914
|
});
|
|
36906
36915
|
format(data, { json: opts.json ?? false });
|
|
36907
36916
|
}));
|
|
36917
|
+
reporting.command("voice-proof-summary").description("Show operator summary for current voice proof ladder and next command").option("--environment <value>", "Environment filter").option("--agency-name <name>", "Agency name for setup-preview fallback when no release packet exists").option("--source-url <url>", "Official source URL for setup-preview fallback").option("--branch-location <value>", "Branch/location for setup-preview fallback").option("--tools <csv>", "Requested tool surface for setup-preview fallback").option("--target-mode <mode>", "Target exposure mode for setup-preview fallback").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 () => {
|
|
36918
|
+
const params = new URLSearchParams();
|
|
36919
|
+
if (opts.environment) params.set("environment", String(opts.environment));
|
|
36920
|
+
appendSetupPreviewContext(params, opts);
|
|
36921
|
+
const data = await apiFetch(withQuery("/v1/console/voice-proof-summary", params), {
|
|
36922
|
+
orgId: opts.org,
|
|
36923
|
+
apiUrlOverride: opts.apiUrl
|
|
36924
|
+
});
|
|
36925
|
+
format(data, { json: opts.json ?? false });
|
|
36926
|
+
}));
|
|
36908
36927
|
reporting.command("release-scorecard").description("Show deterministic release scorecard for an agent").requiredOption("--agent <id>", "Agent ID").option("--limit <n>", "Number of runs to include", "10").option("--api-url <url>", "API base URL override").option("--json", "Output as JSON").action(async (opts) => withCommandErrorHandling(async () => {
|
|
36909
36928
|
const limit = Math.max(1, Math.min(100, Number(opts.limit || 10) || 10));
|
|
36910
36929
|
const data = await apiFetch(`/v1/console/agents/${opts.agent}/release-scorecard?limit=${limit}`, {
|