@wayai/cli 0.3.312 → 0.3.313

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
@@ -5827,10 +5827,10 @@ var init_chunk_HA7CRZMX = __esm({
5827
5827
  }
5828
5828
  });
5829
5829
 
5830
- // ../../packages/core/dist/chunk-GPM7PE44.js
5830
+ // ../../packages/core/dist/chunk-WE4KMHZK.js
5831
5831
  var bootstrapQuery;
5832
- var init_chunk_GPM7PE44 = __esm({
5833
- "../../packages/core/dist/chunk-GPM7PE44.js"() {
5832
+ var init_chunk_WE4KMHZK = __esm({
5833
+ "../../packages/core/dist/chunk-WE4KMHZK.js"() {
5834
5834
  "use strict";
5835
5835
  init_zod();
5836
5836
  bootstrapQuery = external_exports.object({
@@ -12804,10 +12804,10 @@ var init_chunk_YWZFB34T = __esm({
12804
12804
  }
12805
12805
  });
12806
12806
 
12807
- // ../../packages/core/dist/chunk-EEUXUSMH.js
12807
+ // ../../packages/core/dist/chunk-GAANFFN7.js
12808
12808
  var CASE_SPACE_NAME_MAX_LENGTH, CASE_TEAM_NAME_MAX_LENGTH, CASE_TEAM_MEMBERS_MAX, CASE_MEMBERS_PAGE_MAX, CASE_PAGE_CURSOR_MAX_LENGTH, CASE_LEVELS, CASE_REGISTRY_CLOSED_REASON, caseSpaceNameSchema, adminCreateCaseSpaceBody, caseOrgParam, caseSpaceParam, caseMemberParam, caseAdministratorParam, caseTeamParam, casePageQuery, saveCaseMemberBody, caseTeamScopeSchema, caseTeamMemberInput, caseTeamFields, createCaseTeamBody, updateCaseTeamBody;
12809
- var init_chunk_EEUXUSMH = __esm({
12810
- "../../packages/core/dist/chunk-EEUXUSMH.js"() {
12809
+ var init_chunk_GAANFFN7 = __esm({
12810
+ "../../packages/core/dist/chunk-GAANFFN7.js"() {
12811
12811
  "use strict";
12812
12812
  init_chunk_ZVXO3XL6();
12813
12813
  init_chunk_HZ6CADSY();
@@ -15688,7 +15688,7 @@ var init_chunk_OMPT4ZHR = __esm({
15688
15688
  }
15689
15689
  });
15690
15690
 
15691
- // ../../packages/core/dist/chunk-377XFDXA.js
15691
+ // ../../packages/core/dist/chunk-4KGSO7DL.js
15692
15692
  function refineScopedTarget(data, ctx) {
15693
15693
  if (data.scope === "org") {
15694
15694
  if (!data.org_id) {
@@ -15714,8 +15714,8 @@ function refineScopedTarget(data, ctx) {
15714
15714
  }
15715
15715
  }
15716
15716
  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, 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;
15717
- var init_chunk_377XFDXA = __esm({
15718
- "../../packages/core/dist/chunk-377XFDXA.js"() {
15717
+ var init_chunk_4KGSO7DL = __esm({
15718
+ "../../packages/core/dist/chunk-4KGSO7DL.js"() {
15719
15719
  "use strict";
15720
15720
  init_chunk_FECLIZTY();
15721
15721
  init_chunk_BFG4ZWR4();
@@ -15907,7 +15907,7 @@ var init_chunk_377XFDXA = __esm({
15907
15907
  });
15908
15908
  adminScopedTargetBody = adminScopedTargetShape.strict().superRefine(refineScopedTarget);
15909
15909
  adminDryRunByDefaultTargetBody = adminScopedTargetShape.extend({ dry_run: external_exports.boolean().optional().default(true) }).strict().superRefine(refineScopedTarget);
15910
- WAYAI_HOST_TOKEN_TARGET_KINDS = ["toolset", "seed", "connection", "credential"];
15910
+ WAYAI_HOST_TOKEN_TARGET_KINDS = ["toolset", "seed", "connection", "tool", "credential"];
15911
15911
  WAYAI_HOST_TOKEN_MAX_TARGETS = 50;
15912
15912
  adminClearWayaiHostTokensBody = adminScopedTargetShape.extend({
15913
15913
  dry_run: external_exports.boolean().optional().default(true),
@@ -16518,7 +16518,7 @@ var init_contracts = __esm({
16518
16518
  init_chunk_HIGKBEPF();
16519
16519
  init_chunk_HA7CRZMX();
16520
16520
  init_chunk_MF2VVXBR();
16521
- init_chunk_GPM7PE44();
16521
+ init_chunk_WE4KMHZK();
16522
16522
  init_chunk_P5GJNS5R();
16523
16523
  init_chunk_JW6QQD5K();
16524
16524
  init_chunk_ZC6YGHNX();
@@ -16555,7 +16555,7 @@ var init_contracts = __esm({
16555
16555
  init_chunk_YWZFB34T();
16556
16556
  init_chunk_PZPOUXJR();
16557
16557
  init_chunk_E4DIIOOE();
16558
- init_chunk_EEUXUSMH();
16558
+ init_chunk_GAANFFN7();
16559
16559
  init_chunk_7CYHPF35();
16560
16560
  init_chunk_NETRUHZF();
16561
16561
  init_chunk_Z6H7PHIF();
@@ -16568,7 +16568,7 @@ var init_contracts = __esm({
16568
16568
  init_chunk_4LXDRTO4();
16569
16569
  init_chunk_JDJ4EUOL();
16570
16570
  init_chunk_NVKU5PPQ();
16571
- init_chunk_377XFDXA();
16571
+ init_chunk_4KGSO7DL();
16572
16572
  init_chunk_FECLIZTY();
16573
16573
  init_chunk_BFG4ZWR4();
16574
16574
  init_chunk_2R5D4TEX();
@@ -38963,6 +38963,7 @@ async function runClearWayaiHostTokens(flagArgs) {
38963
38963
  c.referenced_by.length > 0 ? `referenced_by=${c.referenced_by.join(",")}` : null
38964
38964
  ].filter(Boolean).join(" ");
38965
38965
  console.log(` ${c.target} org=${c.org_id} hub=${c.hub_id} ${facts} -> ${c.action ?? `none (${c.reason})`}`);
38966
+ if (c.tool_targets?.length) console.log(` tool targets first: ${c.tool_targets.map((t) => `--id ${t}`).join(" ")}`);
38966
38967
  }
38967
38968
  for (const c of data.credentials) {
38968
38969
  console.log(
@@ -40641,9 +40642,10 @@ Sources:
40641
40642
  day. It reports by default and deletes only with --apply.
40642
40643
  \`clear-wayai-host-tokens\` clears the WayAI tokens hub connections still store
40643
40644
  (#5644): it lists every candidate and what it would do, and acts only on
40644
- the targets --id names, with --apply. A seed's token goes only once it records
40645
- its binding; a production row goes only once no preview maps it and nothing
40646
- points at it.
40645
+ the targets --id names, with --apply. A seed's token goes once it records its
40646
+ binding, and a seed recording none is deleted; a production row goes only once
40647
+ no preview maps it and nothing points at it, and a production tool pointing at
40648
+ it (tool:<id>, listed under the row) can be named first to free it.
40647
40649
  orgs Org roster repair. \`repair-legacy-grants\` fixes member_grant rows the
40648
40650
  platform-admin org-admin add wrote before #3922: the email landed in the
40649
40651
  user_id column with user_email NULL. Auth reads UserDO, never member_grant,