@wayai/cli 0.3.290 → 0.3.292

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 CHANGED
@@ -15162,10 +15162,10 @@ var init_chunk_BFG4ZWR4 = __esm({
15162
15162
  }
15163
15163
  });
15164
15164
 
15165
- // ../../packages/core/dist/chunk-HNVURBF4.js
15165
+ // ../../packages/core/dist/chunk-SCNEG45C.js
15166
15166
  var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
15167
- var init_chunk_HNVURBF4 = __esm({
15168
- "../../packages/core/dist/chunk-HNVURBF4.js"() {
15167
+ var init_chunk_SCNEG45C = __esm({
15168
+ "../../packages/core/dist/chunk-SCNEG45C.js"() {
15169
15169
  "use strict";
15170
15170
  init_zod();
15171
15171
  dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
@@ -15276,7 +15276,7 @@ var init_chunk_OMPT4ZHR = __esm({
15276
15276
  }
15277
15277
  });
15278
15278
 
15279
- // ../../packages/core/dist/chunk-GMCS4EDW.js
15279
+ // ../../packages/core/dist/chunk-M3GIFKJL.js
15280
15280
  function refineScopedTarget(data, ctx) {
15281
15281
  if (data.scope === "org") {
15282
15282
  if (!data.org_id) {
@@ -15302,12 +15302,12 @@ function refineScopedTarget(data, ctx) {
15302
15302
  }
15303
15303
  }
15304
15304
  var adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, PRICING_PLAN_ID_RE, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, MAX_VOICE_CALL_MINUTE_OPS, voiceCallMinuteOps, AUTOMATION_GATE_EVALUATIONS_PER_OPERATION_BOUND, automationGateEvaluationsPerOperation, AUTOMATION_RUN_RETENTION_DAYS_MAX, automationRunRetentionDays, turnDeadlineSeconds, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetShape, adminScopedTargetBody, adminDryRunByDefaultTargetBody, BRANCHING_ORPHAN_ENTITY_TYPES, BRANCHING_ORPHAN_MAX_TARGETS, adminRepairBranchingOrphansBody, adminRepairLegacyOrgGrantsBody, adminRepairCompedPlansBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, dataExplorerDebugCountsDoType, dataExplorerDebugCountsParam, debugHubConvParam, debugMessageIdQuery;
15305
- var init_chunk_GMCS4EDW = __esm({
15306
- "../../packages/core/dist/chunk-GMCS4EDW.js"() {
15305
+ var init_chunk_M3GIFKJL = __esm({
15306
+ "../../packages/core/dist/chunk-M3GIFKJL.js"() {
15307
15307
  "use strict";
15308
15308
  init_chunk_FECLIZTY();
15309
15309
  init_chunk_BFG4ZWR4();
15310
- init_chunk_HNVURBF4();
15310
+ init_chunk_SCNEG45C();
15311
15311
  init_chunk_MO23HUAX();
15312
15312
  init_chunk_OMPT4ZHR();
15313
15313
  init_chunk_HZ6CADSY();
@@ -16405,10 +16405,10 @@ var init_contracts = __esm({
16405
16405
  init_chunk_4LXDRTO4();
16406
16406
  init_chunk_JDJ4EUOL();
16407
16407
  init_chunk_NVKU5PPQ();
16408
- init_chunk_GMCS4EDW();
16408
+ init_chunk_M3GIFKJL();
16409
16409
  init_chunk_FECLIZTY();
16410
16410
  init_chunk_BFG4ZWR4();
16411
- init_chunk_HNVURBF4();
16411
+ init_chunk_SCNEG45C();
16412
16412
  init_chunk_MO23HUAX();
16413
16413
  init_chunk_X5PZZVTS();
16414
16414
  init_chunk_D3EP4TDU();
@@ -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 = [...VAULT_GATE_CONNECTORS].map(([name, cids]) => `${name} (${cids.join(", ")})`).join(", ");
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);
@@ -39746,8 +39754,8 @@ Usage:
39746
39754
  wayai admin do tables <type> <id>
39747
39755
  wayai admin do read <type> <id> <table> [--limit N] [--id X] [--json]
39748
39756
  wayai admin do counts <hub|org> <id> [--json] Numbers, no text: a hub's toolset connections, knowledge placeholders per stored
39749
- text, summary and kanban context schemas' verdicts, secret columns' shapes and
39750
- (production) publish state; an org's
39757
+ text, summary and kanban context schemas' verdicts (kanban: also by W and
39758
+ expanded size), secret columns' shapes and (production) publish state; an org's
39751
39759
  skills, hub links, moved-knowledge registry and credentials' shapes
39752
39760
 
39753
39761
  wayai admin analytics tables
@@ -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 each of its catalog ids) or one catalog id; prints before and after, confirms unless --yes
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(", ")}. Changes land within about 60 s.
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
  });