@f-o-h/cli 0.1.33 → 0.1.34
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 +15 -3
- 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.34`
|
|
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
|
@@ -32698,7 +32698,7 @@ var StdioServerTransport = class {
|
|
|
32698
32698
|
};
|
|
32699
32699
|
|
|
32700
32700
|
// src/lib/cli-version.ts
|
|
32701
|
-
var CLI_VERSION = "0.1.
|
|
32701
|
+
var CLI_VERSION = "0.1.34";
|
|
32702
32702
|
|
|
32703
32703
|
// src/commands/mcp-serve.ts
|
|
32704
32704
|
var DEFAULT_TIMEOUT_MS = 12e4;
|
|
@@ -37155,14 +37155,20 @@ function registerProve(program3) {
|
|
|
37155
37155
|
apiUrlOverride: opts.apiUrl
|
|
37156
37156
|
});
|
|
37157
37157
|
const phoneNumber = typeof onboarding.phone_number === "string" && onboarding.phone_number.trim() ? onboarding.phone_number.trim() : null;
|
|
37158
|
+
const provisioningStatus = typeof onboarding.provisioning_status === "string" ? onboarding.provisioning_status : null;
|
|
37158
37159
|
if (phoneNumber) {
|
|
37159
37160
|
checks.push(pass("contact_channel", "Contact phone number is provisioned.", {
|
|
37160
37161
|
phone_number_present: true,
|
|
37161
|
-
provisioning_status:
|
|
37162
|
+
provisioning_status: provisioningStatus
|
|
37163
|
+
}));
|
|
37164
|
+
} else if (provisioningStatus === "failed" && (opts.requirePhone || mission === "voice")) {
|
|
37165
|
+
checks.push(hold("contact_channel", "contact_phone_provisioning_failed", "Phone/contact provisioning failed for this org.", `foh provision status --org ${ctx.orgId} --json`, {
|
|
37166
|
+
provisioning_status: provisioningStatus,
|
|
37167
|
+
mission
|
|
37162
37168
|
}));
|
|
37163
37169
|
} else if (opts.requirePhone || mission === "voice") {
|
|
37164
37170
|
checks.push(hold("contact_channel", "contact_phone_missing", "No phone/contact number is provisioned for this org.", `foh provision buy --org ${ctx.orgId} --json`, {
|
|
37165
|
-
provisioning_status:
|
|
37171
|
+
provisioning_status: provisioningStatus,
|
|
37166
37172
|
mission
|
|
37167
37173
|
}));
|
|
37168
37174
|
} else {
|
|
@@ -39043,6 +39049,9 @@ function classifyRun(input) {
|
|
|
39043
39049
|
...Array.isArray(record2.check_reason_codes) ? record2.check_reason_codes.map((code) => String(code || "")) : []
|
|
39044
39050
|
]).filter(Boolean);
|
|
39045
39051
|
const hasCommandReason = (pattern) => commandReasonCodes.some((reason) => pattern.test(reason));
|
|
39052
|
+
if (hasCommandReason(/contact_phone_provisioning_failed/i)) {
|
|
39053
|
+
return { status: "hold", reasonCode: "voice_contact_phone_provisioning_failed" };
|
|
39054
|
+
}
|
|
39046
39055
|
if (hasCommandReason(/contact_phone_missing/i)) {
|
|
39047
39056
|
return { status: "hold", reasonCode: "voice_contact_phone_missing" };
|
|
39048
39057
|
}
|
|
@@ -39071,6 +39080,9 @@ ${stderr}`;
|
|
|
39071
39080
|
if (/ENV_NETWORK_DNS_BLOCK|Could not resolve host|npm ping.*timeout|NO_EXECUTABLE_INSTALL/i.test(combined)) {
|
|
39072
39081
|
return { status: "hold", reasonCode: "codex_network_dns_blocked" };
|
|
39073
39082
|
}
|
|
39083
|
+
if (/contact_phone_provisioning_failed/i.test(combined)) {
|
|
39084
|
+
return { status: "hold", reasonCode: "voice_contact_phone_provisioning_failed" };
|
|
39085
|
+
}
|
|
39074
39086
|
if (/contact_phone_missing/i.test(combined)) {
|
|
39075
39087
|
return { status: "hold", reasonCode: "voice_contact_phone_missing" };
|
|
39076
39088
|
}
|