@wayai/cli 0.3.320 → 0.3.321
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 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16715,7 +16715,7 @@ var init_chunk_OMPT4ZHR = __esm({
|
|
|
16715
16715
|
}
|
|
16716
16716
|
});
|
|
16717
16717
|
|
|
16718
|
-
// ../../packages/core/dist/chunk-
|
|
16718
|
+
// ../../packages/core/dist/chunk-SL2AJJMS.js
|
|
16719
16719
|
function refineScopedTarget(data, ctx) {
|
|
16720
16720
|
if (data.scope === "org") {
|
|
16721
16721
|
if (!data.org_id) {
|
|
@@ -16741,8 +16741,8 @@ function refineScopedTarget(data, ctx) {
|
|
|
16741
16741
|
}
|
|
16742
16742
|
}
|
|
16743
16743
|
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, casesLimit, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetShape, adminScopedTargetBody, adminDryRunByDefaultTargetBody, WAYAI_HOST_TOKEN_TARGET_KINDS, WAYAI_HOST_TOKEN_MAX_TARGETS, adminClearWayaiHostTokensBody, BRANCHING_ORPHAN_ENTITY_TYPES, BRANCHING_ORPHAN_MAX_TARGETS, adminRepairBranchingOrphansBody, adminRepairLegacyOrgGrantsBody, adminRepairCredentialServicesBody, 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;
|
|
16744
|
-
var
|
|
16745
|
-
"../../packages/core/dist/chunk-
|
|
16744
|
+
var init_chunk_SL2AJJMS = __esm({
|
|
16745
|
+
"../../packages/core/dist/chunk-SL2AJJMS.js"() {
|
|
16746
16746
|
"use strict";
|
|
16747
16747
|
init_chunk_FECLIZTY();
|
|
16748
16748
|
init_chunk_BFG4ZWR4();
|
|
@@ -16903,10 +16903,11 @@ var init_chunk_5THT3WVS = __esm({
|
|
|
16903
16903
|
/** How long a native agent turn may run (`turnDeadlineSeconds`). */
|
|
16904
16904
|
turn_deadline_seconds: turnDeadlineSeconds.optional(),
|
|
16905
16905
|
/**
|
|
16906
|
-
* The catalog connectors (`connector_id`)
|
|
16907
|
-
*
|
|
16908
|
-
*
|
|
16909
|
-
*
|
|
16906
|
+
* The credentials vault's gate list (wayai#5644): catalog connectors (`connector_id`), replacing
|
|
16907
|
+
* the whole list; empty is the default. On the production Worker it decides only Instagram's gate,
|
|
16908
|
+
* every other vault gate being held open there whatever it lists; the rule, and the conditions it
|
|
16909
|
+
* holds under, are `apps/backend/src/durable-objects/platform-do/vault-gate.ts`'s. The route stores
|
|
16910
|
+
* it as JSON. An id no connector has matches nothing, so it leaves that connector off.
|
|
16910
16911
|
*/
|
|
16911
16912
|
vault_connector_ids: external_exports.array(uuidSchema).max(200).optional(),
|
|
16912
16913
|
/**
|
|
@@ -17613,7 +17614,7 @@ var init_contracts = __esm({
|
|
|
17613
17614
|
init_chunk_EPW6REOS();
|
|
17614
17615
|
init_chunk_KYBVSEJ2();
|
|
17615
17616
|
init_chunk_NVKU5PPQ();
|
|
17616
|
-
|
|
17617
|
+
init_chunk_SL2AJJMS();
|
|
17617
17618
|
init_chunk_FECLIZTY();
|
|
17618
17619
|
init_chunk_BFG4ZWR4();
|
|
17619
17620
|
init_chunk_7VJ4SOFF();
|
|
@@ -41104,7 +41105,7 @@ function describeVaultGateEntry(connectorId) {
|
|
|
41104
41105
|
return name ? `${name} (${connectorId})` : `${connectorId} (no connector the vault holds)`;
|
|
41105
41106
|
}
|
|
41106
41107
|
function describeVaultGateList(ids) {
|
|
41107
|
-
return ids.length === 0 ? "(none
|
|
41108
|
+
return ids.length === 0 ? "(none listed)" : ids.map(describeVaultGateEntry).join(", ");
|
|
41108
41109
|
}
|
|
41109
41110
|
function readVaultGateList(data) {
|
|
41110
41111
|
const raw = data.vault_connector_ids;
|
|
@@ -41185,7 +41186,8 @@ async function runVaultGateChange(change, positional, flagArgs) {
|
|
|
41185
41186
|
const next = change === "add" ? [...before, ...toChange] : before.filter((id) => !toChange.includes(id));
|
|
41186
41187
|
if (!jsonOutput) console.log(`Before: ${describeVaultGateList(before)}`);
|
|
41187
41188
|
if (!yes && !jsonOutput) {
|
|
41188
|
-
console.log(change === "add" ? `About to add ${toChange.map(describeVaultGateEntry).join(", ")}: their connections' new credentials go to the credentials vault.` : `About to remove ${toChange.map(describeVaultGateEntry).join(", ")}: their connections' new credentials
|
|
41189
|
+
console.log(change === "add" ? `About to add ${toChange.map(describeVaultGateEntry).join(", ")}: their connections' new credentials go to the credentials vault.` : `About to remove ${toChange.map(describeVaultGateEntry).join(", ")}: their connections' new credentials no longer go to the vault; ones the vault already holds stay there.`);
|
|
41190
|
+
console.log("In production only Instagram's gate reads this list: every other vault gate stays open, listed or not.");
|
|
41189
41191
|
const ok = await confirm("Proceed?");
|
|
41190
41192
|
if (!ok) {
|
|
41191
41193
|
console.log("Aborted.");
|
|
@@ -41871,11 +41873,11 @@ Usage:
|
|
|
41871
41873
|
wayai admin vault mount-credential-count --org <org_id> [--cursor <cursor>] [--json]
|
|
41872
41874
|
How many S3 mount credentials every org holds: live, expired, with no expiry, and when created. Counts only, never a key. --org is the org the read is attested under. One read per 500 credentials: by hand, never scheduled. Marks and exits non-zero on any partial result
|
|
41873
41875
|
|
|
41874
|
-
wayai admin vault-gate status [--json] Print the
|
|
41876
|
+
wayai admin vault-gate status [--json] Print the vault_connector_ids list (on production it decides only Instagram's gate: the backend's vault-gate.ts)
|
|
41875
41877
|
wayai admin vault-gate add <connector> [--yes] [--json]
|
|
41876
41878
|
List a connector: a vault connector's name (e.g. telegram, whatsapp, instagram, 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
|
|
41877
41879
|
wayai admin vault-gate remove <connector> [--yes] [--json]
|
|
41878
|
-
Stop listing it: its new credentials
|
|
41880
|
+
Stop listing it: its new credentials no longer go to the vault (on production only Instagram's gate reads the list)
|
|
41879
41881
|
|
|
41880
41882
|
Sources:
|
|
41881
41883
|
do Live DO SQLite (existing conversation, hub config, etc.).
|
|
@@ -41995,7 +41997,9 @@ Sources:
|
|
|
41995
41997
|
enrollment and hides the help entry; people already enrolled keep their row.
|
|
41996
41998
|
Changes land within about 60 s.
|
|
41997
41999
|
vault-gate The credentials vault's gate, per connector and never per org: the PLATFORM-wide
|
|
41998
|
-
vault_connector_ids list.
|
|
42000
|
+
vault_connector_ids list. In production every vault gate but Instagram's is open
|
|
42001
|
+
whatever it lists, so there it decides only Instagram's (the backend's
|
|
42002
|
+
vault-gate.ts states the rule). A listed connector's new credentials go to the vault,
|
|
41999
42003
|
the row keeping only a reference; credentials the vault already holds stay there
|
|
42000
42004
|
whichever way the gate is set. Only connectors the vault holds anything of are
|
|
42001
42005
|
taken: ${[...VAULT_GATE_CONNECTORS.keys()].join(", ")}, and GPT-Live (openai) by its
|