@wayai/cli 0.3.290 → 0.3.291
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/index.js +17 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38521,6 +38521,11 @@ async function runVaultImport(flagArgs) {
|
|
|
38521
38521
|
console.log("A credential with a stale row moves once `wayai admin hubs repair-credential-links --org <org_id> --apply` writes its current value.");
|
|
38522
38522
|
}
|
|
38523
38523
|
}
|
|
38524
|
+
const voiceRows = data.voice_rows ?? [];
|
|
38525
|
+
if (voiceRows.length > 0) {
|
|
38526
|
+
console.log(`GPT-Live connections this run ${data.dry_run ? "would move" : "moved"} (${voiceRows.length}): a call live on one keeps its key; one started after, or a restarted call control, goes through the vault. Live calls are not counted.`);
|
|
38527
|
+
for (const r of voiceRows) console.log(` hub=${r.hub_id}${r.preview ? " (preview)" : ""} connection=${r.connection_id}`);
|
|
38528
|
+
}
|
|
38524
38529
|
printVaultReport(data);
|
|
38525
38530
|
}
|
|
38526
38531
|
async function runVaultRevert(flagArgs) {
|
|
@@ -39083,7 +39088,7 @@ async function runGuideStatus(positional, flagArgs) {
|
|
|
39083
39088
|
}
|
|
39084
39089
|
function vaultGateConnectorName(connectorId) {
|
|
39085
39090
|
for (const [name, ids] of VAULT_GATE_CONNECTORS) if (ids.includes(connectorId)) return name;
|
|
39086
|
-
return null;
|
|
39091
|
+
return VAULT_GATE_BY_ID_ONLY.get(connectorId) ?? null;
|
|
39087
39092
|
}
|
|
39088
39093
|
function describeVaultGateEntry(connectorId) {
|
|
39089
39094
|
const name = vaultGateConnectorName(connectorId);
|
|
@@ -39111,7 +39116,10 @@ function resolveVaultGateConnector(arg, usage3) {
|
|
|
39111
39116
|
const wanted = (arg ?? "").trim().toLowerCase();
|
|
39112
39117
|
const ids = VAULT_GATE_CONNECTORS.get(wanted) ?? (vaultGateConnectorName(wanted) ? [wanted] : null);
|
|
39113
39118
|
if (!ids) {
|
|
39114
|
-
const known = [
|
|
39119
|
+
const known = [
|
|
39120
|
+
...[...VAULT_GATE_CONNECTORS].map(([name, cids]) => `${name} (${cids.join(", ")})`),
|
|
39121
|
+
...[...VAULT_GATE_BY_ID_ONLY].map(([id, name]) => `${id} (${name}, by its id only)`)
|
|
39122
|
+
].join(", ");
|
|
39115
39123
|
console.error(arg ? `Refused: the credentials vault holds nothing of connector "${arg}". It holds only: ${known}.` : "A connector is required.");
|
|
39116
39124
|
console.error(usage3);
|
|
39117
39125
|
process.exit(1);
|
|
@@ -39837,7 +39845,7 @@ Usage:
|
|
|
39837
39845
|
|
|
39838
39846
|
wayai admin vault-gate status [--json] Print the connectors whose new credentials go to the credentials vault
|
|
39839
39847
|
wayai admin vault-gate add <connector> [--yes] [--json]
|
|
39840
|
-
List a connector: a vault connector's name (e.g. telegram, or openai for
|
|
39848
|
+
List a connector: a vault connector's name (e.g. telegram, or openai for its LLM, STT and TTS ids, never GPT-Live's) or one catalog id (GPT-Live's only so); prints before and after, confirms unless --yes
|
|
39841
39849
|
wayai admin vault-gate remove <connector> [--yes] [--json]
|
|
39842
39850
|
Stop listing it: its new credentials take the existing path again
|
|
39843
39851
|
|
|
@@ -39944,7 +39952,8 @@ Sources:
|
|
|
39944
39952
|
vault_connector_ids list. A listed connector's new credentials go to the vault,
|
|
39945
39953
|
the row keeping only a reference; credentials the vault already holds stay there
|
|
39946
39954
|
whichever way the gate is set. Only connectors the vault holds anything of are
|
|
39947
|
-
taken: ${[...VAULT_GATE_CONNECTORS.keys()].join(", ")}
|
|
39955
|
+
taken: ${[...VAULT_GATE_CONNECTORS.keys()].join(", ")}, and GPT-Live (openai) by its
|
|
39956
|
+
catalog id only. Changes land within about 60 s.
|
|
39948
39957
|
|
|
39949
39958
|
Types (do): ${VALID_TYPES.join(" | ")}
|
|
39950
39959
|
Tables (analytics): ${VALID_ANALYTICS_TABLES.join(" | ")}
|
|
@@ -39982,7 +39991,7 @@ Audit + rate limit:
|
|
|
39982
39991
|
across all sources. Platform-admin grant required.
|
|
39983
39992
|
`.trim());
|
|
39984
39993
|
}
|
|
39985
|
-
var VALID_TYPES, VALID_ANALYTICS_TABLES, HARNESS_GATE, VOICE_CALLS_GATE, THREADS_GATE, COMMUNITIES_GATE, PLATFORM_CONFIG_PROPAGATION_NOTE, VAULT_GATE_CONNECTORS, VALID_NOTICE_SEVERITIES;
|
|
39994
|
+
var VALID_TYPES, VALID_ANALYTICS_TABLES, HARNESS_GATE, VOICE_CALLS_GATE, THREADS_GATE, COMMUNITIES_GATE, PLATFORM_CONFIG_PROPAGATION_NOTE, VAULT_GATE_CONNECTORS, VAULT_GATE_BY_ID_ONLY, VALID_NOTICE_SEVERITIES;
|
|
39986
39995
|
var init_admin = __esm({
|
|
39987
39996
|
"src/commands/admin.ts"() {
|
|
39988
39997
|
"use strict";
|
|
@@ -40031,6 +40040,9 @@ var init_admin = __esm({
|
|
|
40031
40040
|
"b2c3d4e5-f6a7-4b89-c012-3456789abcdf"
|
|
40032
40041
|
]]
|
|
40033
40042
|
]);
|
|
40043
|
+
VAULT_GATE_BY_ID_ONLY = /* @__PURE__ */ new Map([
|
|
40044
|
+
["01e7b19c-bc94-43f4-a780-ad5a22fb7127", "openai"]
|
|
40045
|
+
]);
|
|
40034
40046
|
VALID_NOTICE_SEVERITIES = ["critical", "warn", "info"];
|
|
40035
40047
|
}
|
|
40036
40048
|
});
|