@wayai/cli 0.3.278 → 0.3.280

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
@@ -6207,7 +6207,7 @@ var init_chunk_5XEJSR22 = __esm({
6207
6207
  }
6208
6208
  });
6209
6209
 
6210
- // ../../packages/core/dist/chunk-D7SSWNL3.js
6210
+ // ../../packages/core/dist/chunk-3VCB2RTC.js
6211
6211
  function matchPath(pattern, path45) {
6212
6212
  const pathSegments2 = path45.replace(/\/$/, "").split("/");
6213
6213
  const isPrefix = pattern.endsWith("/*");
@@ -6236,8 +6236,8 @@ function getEndpointConfig(path45) {
6236
6236
  return { tier: "STANDARD" };
6237
6237
  }
6238
6238
  var ENDPOINT_CONFIGS, EXCLUDED_PATHS;
6239
- var init_chunk_D7SSWNL3 = __esm({
6240
- "../../packages/core/dist/chunk-D7SSWNL3.js"() {
6239
+ var init_chunk_3VCB2RTC = __esm({
6240
+ "../../packages/core/dist/chunk-3VCB2RTC.js"() {
6241
6241
  "use strict";
6242
6242
  init_chunk_5XEJSR22();
6243
6243
  ENDPOINT_CONFIGS = {
@@ -6559,6 +6559,7 @@ var init_chunk_D7SSWNL3 = __esm({
6559
6559
  // Knowledge-blob repair (#5142 step 5 C1) — deletes R2 objects across every hub of a scope, so it
6560
6560
  // takes the same strict, fail-closed budget as the other hub repairs. Exact path, for the same reason.
6561
6561
  "/api/admin/hubs/repair-knowledge-blobs": { tier: "STRICT", userLimit: 10, userWindow: 3600, failClosed: true },
6562
+ "/api/admin/hubs/repair-credential-links": { tier: "STRICT", userLimit: 10, userWindow: 3600, failClosed: true },
6562
6563
  // CI/GitOps endpoints - standard with user limits. 500 because `wayai push` makes four requests
6563
6564
  // (pull, diff, push, pull) and a GitOps job may push every hub at once with one token; when
6564
6565
  // each path held its own 100, that ran to 100 hubs a minute.
@@ -6715,7 +6716,7 @@ var init_chunk_D7SSWNL3 = __esm({
6715
6716
  }
6716
6717
  });
6717
6718
 
6718
- // ../../packages/core/dist/chunk-7QJBCQR3.js
6719
+ // ../../packages/core/dist/chunk-S447DV3E.js
6719
6720
  function fileSnapshotChanged(run) {
6720
6721
  return run.written + run.removed > 0;
6721
6722
  }
@@ -6756,10 +6757,10 @@ async function sendWithRetry(opts, cursor) {
6756
6757
  }
6757
6758
  }
6758
6759
  var rekorFileSnapshotAnswerSchema, FILE_SNAPSHOT_MAX_PAGES, FILE_SNAPSHOT_CONFLICT_ATTEMPTS, FILE_SNAPSHOT_PAGE_SPACING_MS, FILE_SNAPSHOT_CONFLICT_STATUS;
6759
- var init_chunk_7QJBCQR3 = __esm({
6760
- "../../packages/core/dist/chunk-7QJBCQR3.js"() {
6760
+ var init_chunk_S447DV3E = __esm({
6761
+ "../../packages/core/dist/chunk-S447DV3E.js"() {
6761
6762
  "use strict";
6762
- init_chunk_D7SSWNL3();
6763
+ init_chunk_3VCB2RTC();
6763
6764
  init_chunk_5XEJSR22();
6764
6765
  init_zod();
6765
6766
  rekorFileSnapshotAnswerSchema = external_exports.object({
@@ -8340,7 +8341,10 @@ var init_chunk_C2UEA2KW = __esm({
8340
8341
  }
8341
8342
  });
8342
8343
 
8343
- // ../../packages/core/dist/chunk-EVXGKOJV.js
8344
+ // ../../packages/core/dist/chunk-PCYQWDCD.js
8345
+ function isNativeToolName(name) {
8346
+ return NATIVE_TOOL_NAMES.has(name);
8347
+ }
8344
8348
  function catalogToolSideEffects(toolName) {
8345
8349
  const sideEffects = CATALOG_SIDE_EFFECTS.get(toolName);
8346
8350
  if (sideEffects === void 0) return "unknown";
@@ -8355,9 +8359,9 @@ function idempotencyHeaderRefusal(value) {
8355
8359
  }
8356
8360
  return null;
8357
8361
  }
8358
- var NATIVE_TOOL_SCHEMAS, WAYAI_CONNECTOR, SANDBOX_AGENT_ROLES, BASE_NATIVE_TOOLS, NATIVE_TOOLS, CATALOG_SIDE_EFFECTS, CATALOG_REPLAY, REPLAY_OVERRIDES, RESERVED_HEADERS;
8359
- var init_chunk_EVXGKOJV = __esm({
8360
- "../../packages/core/dist/chunk-EVXGKOJV.js"() {
8362
+ var NATIVE_TOOL_SCHEMAS, WAYAI_CONNECTOR, SANDBOX_AGENT_ROLES, BASE_NATIVE_TOOLS, NATIVE_TOOLS, NATIVE_TOOL_NAMES, CATALOG_SIDE_EFFECTS, CATALOG_REPLAY, REPLAY_OVERRIDES, RESERVED_HEADERS;
8363
+ var init_chunk_PCYQWDCD = __esm({
8364
+ "../../packages/core/dist/chunk-PCYQWDCD.js"() {
8361
8365
  "use strict";
8362
8366
  init_chunk_YROEDMVZ();
8363
8367
  NATIVE_TOOL_SCHEMAS = {
@@ -9356,6 +9360,7 @@ var init_chunk_EVXGKOJV = __esm({
9356
9360
  tool_instructions: schema.tool_instructions
9357
9361
  };
9358
9362
  });
9363
+ NATIVE_TOOL_NAMES = new Set(NATIVE_TOOLS.map((tool) => tool.tool_name));
9359
9364
  CATALOG_SIDE_EFFECTS = new Map(
9360
9365
  NATIVE_TOOLS.map((tool) => [tool.tool_name, tool.side_effects])
9361
9366
  );
@@ -10405,12 +10410,12 @@ var init_chunk_I42QJGJF = __esm({
10405
10410
  }
10406
10411
  });
10407
10412
 
10408
- // ../../packages/core/dist/chunk-ZUKC6A2W.js
10413
+ // ../../packages/core/dist/chunk-4YNFXDYH.js
10409
10414
  var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
10410
- var init_chunk_ZUKC6A2W = __esm({
10411
- "../../packages/core/dist/chunk-ZUKC6A2W.js"() {
10415
+ var init_chunk_4YNFXDYH = __esm({
10416
+ "../../packages/core/dist/chunk-4YNFXDYH.js"() {
10412
10417
  "use strict";
10413
- init_chunk_EVXGKOJV();
10418
+ init_chunk_PCYQWDCD();
10414
10419
  init_chunk_I42QJGJF();
10415
10420
  init_chunk_MIWZOSPI();
10416
10421
  COUNTER_KEYS = Object.keys({
@@ -10534,7 +10539,7 @@ var init_chunk_L5F7ZOUJ = __esm({
10534
10539
  }
10535
10540
  });
10536
10541
 
10537
- // ../../packages/core/dist/chunk-G4HTKQCL.js
10542
+ // ../../packages/core/dist/chunk-J24NB7RZ.js
10538
10543
  function normalizeDecisionsModelId(modelId) {
10539
10544
  return modelId.trim().toLowerCase();
10540
10545
  }
@@ -10605,10 +10610,10 @@ function readAgentSettingsModel(agentSettings) {
10605
10610
  return typeof model === "string" ? model : null;
10606
10611
  }
10607
10612
  var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
10608
- var init_chunk_G4HTKQCL = __esm({
10609
- "../../packages/core/dist/chunk-G4HTKQCL.js"() {
10613
+ var init_chunk_J24NB7RZ = __esm({
10614
+ "../../packages/core/dist/chunk-J24NB7RZ.js"() {
10610
10615
  "use strict";
10611
- init_chunk_ZUKC6A2W();
10616
+ init_chunk_4YNFXDYH();
10612
10617
  init_chunk_L5F7ZOUJ();
10613
10618
  DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
10614
10619
  DECISION_CAPABLE_AGENT_ROLES = [
@@ -10619,7 +10624,7 @@ var init_chunk_G4HTKQCL = __esm({
10619
10624
  }
10620
10625
  });
10621
10626
 
10622
- // ../../packages/core/dist/chunk-MBXNS7SI.js
10627
+ // ../../packages/core/dist/chunk-LYHV5FZW.js
10623
10628
  function resolveMonitorTrigger(monitorConfig) {
10624
10629
  if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
10625
10630
  const raw = monitorConfig.trigger;
@@ -10779,7 +10784,7 @@ function isCallRefusedToolName(toolName) {
10779
10784
  return toolName === INSERT_NOTE_TOOL_NAME || catalogToolSideEffects(toolName) !== "none";
10780
10785
  }
10781
10786
  function isRefusedNativeToolName(toolName, trigger) {
10782
- if (!NATIVE_TOOL_NAMES.has(toolName)) return false;
10787
+ if (!isNativeToolName(toolName)) return false;
10783
10788
  if (!MONITOR_RULE_ALLOWED_NATIVE_TOOLS.includes(toolName)) return true;
10784
10789
  if (trigger === "call_utterance") return isCallRefusedToolName(toolName);
10785
10790
  return trigger === "assistant_reply" && isReplyGateRefusedToolName(toolName);
@@ -10924,20 +10929,19 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
10924
10929
  const refusal2 = monitorRulesStructuredOutputRefusal(body);
10925
10930
  if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
10926
10931
  }
10927
- var NATIVE_TOOL_NAMES, previousConversationsCountField, summarizationThresholdField, flagConditionSchema, MONITOR_TRIGGERS, monitorTriggerSchema, AUTOMATION_GATE_TRIGGERS, NON_FIRING_TRIGGERS, MONITOR_FIRING_TRIGGERS, MONITOR_DELAY_SECONDS_MIN, MONITOR_IDLE_DELAY_REQUIRED_MESSAGE, MONITOR_HISTORY_MESSAGES_MAX, monitorHistoryMessagesSchema, monitorIncludeToolResultsSchema, MONITOR_INPUT_SHAPING_KEYS, MONITOR_INPUT_SHAPING_SCHEMAS, MONITOR_INPUT_SHAPING_IDLE_MESSAGE, monitorArgumentSourceSchema, MONITOR_NOTE_TEMPLATE_MAX, MONITOR_STEER_NOTE_MAX, MONITOR_GATE_AGENT_NAME_MAX, monitorActionSchema, monitorRuleSchema, MONITOR_RULE_KEYS, MONITOR_RULE_SCHEMAS, MONITOR_RULE_TRIGGERS, MONITOR_RULE_TRIGGER_MESSAGE, CALL_UTTERANCE_SPEAKERS, callUtteranceSpeakerSchema, MONITOR_CALL_KEYS, MONITOR_CALL_SCHEMAS, MONITOR_CALL_KEY_MESSAGE, CALL_STEERING_MIN_CONFIDENCE, CALL_UTTERANCE_RULE_NOT_CONFIDENT_MESSAGE, CALL_UTTERANCE_FALLBACK_MESSAGE, CALL_UTTERANCE_FLAG_CONDITIONS_MESSAGE, CALL_STEER_NOTE_BLANK_MESSAGE, MONITOR_USER_MESSAGE_ACTION_KINDS, MONITOR_ASSISTANT_REPLY_ACTION_KINDS, MONITOR_CALL_UTTERANCE_ACTION_KINDS, MONITOR_AUTOMATION_FIRE_ACTION_KINDS, MONITOR_AUTOMATION_ITEM_ACTION_KINDS, INSERT_NOTE_TOOL_NAME, RUN_MONITOR_TOOL_NAME, MONITOR_RULE_ALLOWED_NATIVE_TOOLS, MONITOR_RULE_REENTRY_TOOLS, MONITOR_RULE_REENTRY_TRACKS, AUTOMATION_FIRE_FLAG_CONDITIONS_MESSAGE, AUTOMATION_FIRE_INPUT_SHAPING_MESSAGE, AUTOMATION_ITEM_FLAG_CONDITIONS_MESSAGE, AUTOMATION_ITEM_INPUT_SHAPING_MESSAGE, AUTOMATION_GATE_KEY_MESSAGES, monitorConfigField, flagConditionsField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody;
10928
- var init_chunk_MBXNS7SI = __esm({
10929
- "../../packages/core/dist/chunk-MBXNS7SI.js"() {
10932
+ var previousConversationsCountField, summarizationThresholdField, flagConditionSchema, MONITOR_TRIGGERS, monitorTriggerSchema, AUTOMATION_GATE_TRIGGERS, NON_FIRING_TRIGGERS, MONITOR_FIRING_TRIGGERS, MONITOR_DELAY_SECONDS_MIN, MONITOR_IDLE_DELAY_REQUIRED_MESSAGE, MONITOR_HISTORY_MESSAGES_MAX, monitorHistoryMessagesSchema, monitorIncludeToolResultsSchema, MONITOR_INPUT_SHAPING_KEYS, MONITOR_INPUT_SHAPING_SCHEMAS, MONITOR_INPUT_SHAPING_IDLE_MESSAGE, monitorArgumentSourceSchema, MONITOR_NOTE_TEMPLATE_MAX, MONITOR_STEER_NOTE_MAX, MONITOR_GATE_AGENT_NAME_MAX, monitorActionSchema, monitorRuleSchema, MONITOR_RULE_KEYS, MONITOR_RULE_SCHEMAS, MONITOR_RULE_TRIGGERS, MONITOR_RULE_TRIGGER_MESSAGE, CALL_UTTERANCE_SPEAKERS, callUtteranceSpeakerSchema, MONITOR_CALL_KEYS, MONITOR_CALL_SCHEMAS, MONITOR_CALL_KEY_MESSAGE, CALL_STEERING_MIN_CONFIDENCE, CALL_UTTERANCE_RULE_NOT_CONFIDENT_MESSAGE, CALL_UTTERANCE_FALLBACK_MESSAGE, CALL_UTTERANCE_FLAG_CONDITIONS_MESSAGE, CALL_STEER_NOTE_BLANK_MESSAGE, MONITOR_USER_MESSAGE_ACTION_KINDS, MONITOR_ASSISTANT_REPLY_ACTION_KINDS, MONITOR_CALL_UTTERANCE_ACTION_KINDS, MONITOR_AUTOMATION_FIRE_ACTION_KINDS, MONITOR_AUTOMATION_ITEM_ACTION_KINDS, INSERT_NOTE_TOOL_NAME, RUN_MONITOR_TOOL_NAME, MONITOR_RULE_ALLOWED_NATIVE_TOOLS, MONITOR_RULE_REENTRY_TOOLS, MONITOR_RULE_REENTRY_TRACKS, AUTOMATION_FIRE_FLAG_CONDITIONS_MESSAGE, AUTOMATION_FIRE_INPUT_SHAPING_MESSAGE, AUTOMATION_ITEM_FLAG_CONDITIONS_MESSAGE, AUTOMATION_ITEM_INPUT_SHAPING_MESSAGE, AUTOMATION_GATE_KEY_MESSAGES, monitorConfigField, flagConditionsField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody;
10933
+ var init_chunk_LYHV5FZW = __esm({
10934
+ "../../packages/core/dist/chunk-LYHV5FZW.js"() {
10930
10935
  "use strict";
10931
10936
  init_chunk_IBL7FANV();
10932
10937
  init_chunk_KB5RK3RP();
10933
10938
  init_chunk_C2UEA2KW();
10934
10939
  init_chunk_HZ6CADSY();
10935
- init_chunk_G4HTKQCL();
10936
- init_chunk_EVXGKOJV();
10940
+ init_chunk_J24NB7RZ();
10941
+ init_chunk_PCYQWDCD();
10937
10942
  init_chunk_YROEDMVZ();
10938
10943
  init_chunk_L5F7ZOUJ();
10939
10944
  init_zod();
10940
- NATIVE_TOOL_NAMES = new Set(NATIVE_TOOLS.map((t) => t.tool_name));
10941
10945
  previousConversationsCountField = external_exports.number().int().min(0).max(PREVIOUS_CONVERSATIONS_MAX).nullable().optional();
10942
10946
  summarizationThresholdField = external_exports.number().int().min(SUMMARIZATION_THRESHOLD_MIN).max(SUMMARIZATION_THRESHOLD_MAX).nullable().optional();
10943
10947
  flagConditionSchema = external_exports.object({
@@ -11151,12 +11155,12 @@ var init_chunk_MBXNS7SI = __esm({
11151
11155
  }
11152
11156
  });
11153
11157
 
11154
- // ../../packages/core/dist/chunk-YGDHKCKK.js
11158
+ // ../../packages/core/dist/chunk-V55QRLWX.js
11155
11159
  var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
11156
- var init_chunk_YGDHKCKK = __esm({
11157
- "../../packages/core/dist/chunk-YGDHKCKK.js"() {
11160
+ var init_chunk_V55QRLWX = __esm({
11161
+ "../../packages/core/dist/chunk-V55QRLWX.js"() {
11158
11162
  "use strict";
11159
- init_chunk_MBXNS7SI();
11163
+ init_chunk_LYHV5FZW();
11160
11164
  init_chunk_HZ6CADSY();
11161
11165
  init_chunk_YROEDMVZ();
11162
11166
  init_zod();
@@ -12598,7 +12602,7 @@ var init_chunk_BPCNB5RT = __esm({
12598
12602
  }
12599
12603
  });
12600
12604
 
12601
- // ../../packages/core/dist/chunk-TXQWDP2F.js
12605
+ // ../../packages/core/dist/chunk-XDGC4E7C.js
12602
12606
  function toolParametersViolations(params) {
12603
12607
  try {
12604
12608
  if (containsKanbanPlaceholders(params)) return [];
@@ -12653,12 +12657,12 @@ function refineToolConfig(value, ctx) {
12653
12657
  }
12654
12658
  }
12655
12659
  var nonBlank, DEFAULT_TOOL_CONFIG_DESCRIPTION, toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
12656
- var init_chunk_TXQWDP2F = __esm({
12657
- "../../packages/core/dist/chunk-TXQWDP2F.js"() {
12660
+ var init_chunk_XDGC4E7C = __esm({
12661
+ "../../packages/core/dist/chunk-XDGC4E7C.js"() {
12658
12662
  "use strict";
12659
12663
  init_chunk_WEXVYJ5H();
12660
12664
  init_chunk_HZ6CADSY();
12661
- init_chunk_EVXGKOJV();
12665
+ init_chunk_PCYQWDCD();
12662
12666
  init_zod();
12663
12667
  nonBlank = (text4) => typeof text4 === "string" && text4.trim() !== "" ? text4 : void 0;
12664
12668
  DEFAULT_TOOL_CONFIG_DESCRIPTION = "Function description";
@@ -14024,7 +14028,7 @@ var init_chunk_7NQZRSSJ = __esm({
14024
14028
  }
14025
14029
  });
14026
14030
 
14027
- // ../../packages/core/dist/chunk-NAW4LACQ.js
14031
+ // ../../packages/core/dist/chunk-5TCWQ5BK.js
14028
14032
  function declaresNoConnection(agent) {
14029
14033
  return agent.connection === null && !agent.connection_id;
14030
14034
  }
@@ -14772,10 +14776,10 @@ function skillSectionsAsResources(scope) {
14772
14776
  };
14773
14777
  }
14774
14778
  var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, HUB_AS_CODE_AGENT_TOOL_KEYS, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, flagEntriesOf, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, MAX_HUB_AS_CODE_DEPTH, NAMED_DEPTH_SEGMENTS, NAMED_DEPTH_KEY_CHARS, fieldName, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema;
14775
- var init_chunk_NAW4LACQ = __esm({
14776
- "../../packages/core/dist/chunk-NAW4LACQ.js"() {
14779
+ var init_chunk_5TCWQ5BK = __esm({
14780
+ "../../packages/core/dist/chunk-5TCWQ5BK.js"() {
14777
14781
  "use strict";
14778
- init_chunk_TXQWDP2F();
14782
+ init_chunk_XDGC4E7C();
14779
14783
  init_chunk_HRKVCI5A();
14780
14784
  init_chunk_IW7D2QOD();
14781
14785
  init_chunk_LBDH7LCG();
@@ -14783,13 +14787,13 @@ var init_chunk_NAW4LACQ = __esm({
14783
14787
  init_chunk_7NQZRSSJ();
14784
14788
  init_chunk_X5PZZVTS();
14785
14789
  init_chunk_K5UAZWFF();
14786
- init_chunk_MBXNS7SI();
14790
+ init_chunk_LYHV5FZW();
14787
14791
  init_chunk_S4VDZ7PZ();
14788
14792
  init_chunk_C2UEA2KW();
14789
14793
  init_chunk_FBV7NLKO();
14790
14794
  init_chunk_WEXVYJ5H();
14791
14795
  init_chunk_HZ6CADSY();
14792
- init_chunk_G4HTKQCL();
14796
+ init_chunk_J24NB7RZ();
14793
14797
  init_chunk_YROEDMVZ();
14794
14798
  init_zod();
14795
14799
  MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
@@ -15270,7 +15274,7 @@ var init_chunk_OMPT4ZHR = __esm({
15270
15274
  }
15271
15275
  });
15272
15276
 
15273
- // ../../packages/core/dist/chunk-6AIZYKDD.js
15277
+ // ../../packages/core/dist/chunk-M44PP7YM.js
15274
15278
  function refineScopedTarget(data, ctx) {
15275
15279
  if (data.scope === "org") {
15276
15280
  if (!data.org_id) {
@@ -15295,9 +15299,9 @@ function refineScopedTarget(data, ctx) {
15295
15299
  }
15296
15300
  }
15297
15301
  }
15298
- 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, adminRepairKnowledgeBlobsBody, 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;
15299
- var init_chunk_6AIZYKDD = __esm({
15300
- "../../packages/core/dist/chunk-6AIZYKDD.js"() {
15302
+ 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;
15303
+ var init_chunk_M44PP7YM = __esm({
15304
+ "../../packages/core/dist/chunk-M44PP7YM.js"() {
15301
15305
  "use strict";
15302
15306
  init_chunk_FECLIZTY();
15303
15307
  init_chunk_BFG4ZWR4();
@@ -15464,7 +15468,7 @@ var init_chunk_6AIZYKDD = __esm({
15464
15468
  dry_run: external_exports.boolean().optional().default(false)
15465
15469
  });
15466
15470
  adminScopedTargetBody = adminScopedTargetShape.strict().superRefine(refineScopedTarget);
15467
- adminRepairKnowledgeBlobsBody = adminScopedTargetShape.extend({ dry_run: external_exports.boolean().optional().default(true) }).strict().superRefine(refineScopedTarget);
15471
+ adminDryRunByDefaultTargetBody = adminScopedTargetShape.extend({ dry_run: external_exports.boolean().optional().default(true) }).strict().superRefine(refineScopedTarget);
15468
15472
  BRANCHING_ORPHAN_ENTITY_TYPES = [
15469
15473
  "agent",
15470
15474
  "agent_parameter",
@@ -15889,16 +15893,16 @@ var init_chunk_R6Y377AW = __esm({
15889
15893
  }
15890
15894
  });
15891
15895
 
15892
- // ../../packages/core/dist/chunk-DJKJMVH5.js
15896
+ // ../../packages/core/dist/chunk-QEHQEDNV.js
15893
15897
  var AUTOMATION_TRIGGER_TYPES, AUTOMATION_EVENT_TYPES, AUTOMATION_TARGET_TYPES, AUTOMATION_ACTION_TYPES, AUTOMATION_CHANNEL_TYPES, AUTOMATION_PURPOSES, AUTOMATION_NAME_MAX, AUTOMATION_DESCRIPTION_MAX, AUTOMATION_INSTRUCTIONS_MAX, AUTOMATION_TEXT_MAX, AUTOMATION_CRON_MAX, AUTOMATION_WEBHOOK_AUTHS, AUTOMATION_WEBHOOK_HEADERS, AUTOMATION_WEBHOOK_BODY_MAX_BYTES, AUTOMATION_WEBHOOK_HEADER_NAME_MAX, WEBHOOK_RESERVED_HEADERS, automationTriggerSchema, automationTargetSchema, automationActionSchema, automationGateSchema, automationName, automationDescription, automationIdParam, automationHubQuery, automationWebhookParams, AUTOMATION_RUNS_PAGE_MAX, listAutomationRunsQuery, createAutomationBody, updateAutomationBody, AUTOMATION_ALERT_CATEGORIES, AUTOMATION_BLOCKED_ALERT_CATEGORY, automationEventSubscriberParam;
15894
- var init_chunk_DJKJMVH5 = __esm({
15895
- "../../packages/core/dist/chunk-DJKJMVH5.js"() {
15898
+ var init_chunk_QEHQEDNV = __esm({
15899
+ "../../packages/core/dist/chunk-QEHQEDNV.js"() {
15896
15900
  "use strict";
15897
15901
  init_chunk_R6Y377AW();
15898
15902
  init_chunk_UAOHHCW5();
15899
- init_chunk_MBXNS7SI();
15903
+ init_chunk_LYHV5FZW();
15900
15904
  init_chunk_5XEJSR22();
15901
- init_chunk_G4HTKQCL();
15905
+ init_chunk_J24NB7RZ();
15902
15906
  init_chunk_YROEDMVZ();
15903
15907
  init_zod();
15904
15908
  AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
@@ -16347,7 +16351,7 @@ var init_contracts = __esm({
16347
16351
  init_chunk_ZC6YGHNX();
16348
16352
  init_chunk_HIGKBEPF();
16349
16353
  init_chunk_5DGHIY7L();
16350
- init_chunk_7QJBCQR3();
16354
+ init_chunk_S447DV3E();
16351
16355
  init_chunk_IPDOHAZ5();
16352
16356
  init_chunk_GPM7PE44();
16353
16357
  init_chunk_VEERWOZ6();
@@ -16363,7 +16367,7 @@ var init_contracts = __esm({
16363
16367
  init_chunk_OPETF4GS();
16364
16368
  init_chunk_SY6PLCPK();
16365
16369
  init_chunk_KMAC3O3L();
16366
- init_chunk_YGDHKCKK();
16370
+ init_chunk_V55QRLWX();
16367
16371
  init_chunk_KSTYTQ7I();
16368
16372
  init_chunk_LKBSHANA();
16369
16373
  init_chunk_Y6NC5CH5();
@@ -16381,8 +16385,8 @@ var init_contracts = __esm({
16381
16385
  init_chunk_E4DIIOOE();
16382
16386
  init_chunk_7CYHPF35();
16383
16387
  init_chunk_BPCNB5RT();
16384
- init_chunk_NAW4LACQ();
16385
- init_chunk_TXQWDP2F();
16388
+ init_chunk_5TCWQ5BK();
16389
+ init_chunk_XDGC4E7C();
16386
16390
  init_chunk_HRKVCI5A();
16387
16391
  init_chunk_IW7D2QOD();
16388
16392
  init_chunk_2YEGUQR7();
@@ -16391,7 +16395,7 @@ var init_contracts = __esm({
16391
16395
  init_chunk_4LXDRTO4();
16392
16396
  init_chunk_JDJ4EUOL();
16393
16397
  init_chunk_NVKU5PPQ();
16394
- init_chunk_6AIZYKDD();
16398
+ init_chunk_M44PP7YM();
16395
16399
  init_chunk_FECLIZTY();
16396
16400
  init_chunk_BFG4ZWR4();
16397
16401
  init_chunk_C3V6PEQ7();
@@ -16402,13 +16406,13 @@ var init_contracts = __esm({
16402
16406
  init_chunk_2PZIF56U();
16403
16407
  init_chunk_UEJOG2Q7();
16404
16408
  init_chunk_JO53JB35();
16405
- init_chunk_DJKJMVH5();
16409
+ init_chunk_QEHQEDNV();
16406
16410
  init_chunk_R6Y377AW();
16407
16411
  init_chunk_UAOHHCW5();
16408
- init_chunk_MBXNS7SI();
16412
+ init_chunk_LYHV5FZW();
16409
16413
  init_chunk_IG6QBZMA();
16410
16414
  init_chunk_OMPT4ZHR();
16411
- init_chunk_D7SSWNL3();
16415
+ init_chunk_3VCB2RTC();
16412
16416
  init_chunk_SOJMWM63();
16413
16417
  init_chunk_WTOA3ANF();
16414
16418
  init_chunk_5XEJSR22();
@@ -16428,9 +16432,9 @@ var init_contracts = __esm({
16428
16432
  init_chunk_WEXVYJ5H();
16429
16433
  init_chunk_6TSQ5HXC();
16430
16434
  init_chunk_HZ6CADSY();
16431
- init_chunk_G4HTKQCL();
16432
- init_chunk_ZUKC6A2W();
16433
- init_chunk_EVXGKOJV();
16435
+ init_chunk_J24NB7RZ();
16436
+ init_chunk_4YNFXDYH();
16437
+ init_chunk_PCYQWDCD();
16434
16438
  init_chunk_I42QJGJF();
16435
16439
  init_chunk_MIWZOSPI();
16436
16440
  init_chunk_YROEDMVZ();
@@ -16569,7 +16573,7 @@ var UUID_RE2, WAYAI_WORKSPACE_LAYOUT;
16569
16573
  var init_dist = __esm({
16570
16574
  "../../packages/core/dist/index.js"() {
16571
16575
  "use strict";
16572
- init_chunk_D7SSWNL3();
16576
+ init_chunk_3VCB2RTC();
16573
16577
  init_chunk_SOJMWM63();
16574
16578
  init_chunk_WTOA3ANF();
16575
16579
  init_chunk_5XEJSR22();
@@ -16588,9 +16592,9 @@ var init_dist = __esm({
16588
16592
  init_chunk_6TSQ5HXC();
16589
16593
  init_chunk_HZ6CADSY();
16590
16594
  init_chunk_BF4WRSOQ();
16591
- init_chunk_G4HTKQCL();
16592
- init_chunk_ZUKC6A2W();
16593
- init_chunk_EVXGKOJV();
16595
+ init_chunk_J24NB7RZ();
16596
+ init_chunk_4YNFXDYH();
16597
+ init_chunk_PCYQWDCD();
16594
16598
  init_chunk_I42QJGJF();
16595
16599
  init_chunk_MIWZOSPI();
16596
16600
  init_chunk_YROEDMVZ();
@@ -17810,6 +17814,7 @@ var init_utils = __esm({
17810
17814
  ["admin skill install", { positionals: 1 }],
17811
17815
  ["admin hubs repair-team-orphans", { positionals: 0, values: ["--org", "--hub"], dryRun: true }],
17812
17816
  ["admin hubs repair-branching-orphans", { positionals: 0, values: ["--org", "--hub", "--id"], dryRun: true }],
17817
+ ["admin hubs repair-credential-links", { positionals: 0, values: ["--org", "--hub"], dryRun: true }],
17813
17818
  ["admin hubs repair-knowledge-blobs", { positionals: 0, values: ["--org", "--hub"], dryRun: true }],
17814
17819
  ["admin orgs repair-legacy-grants", { positionals: 0, values: ["--org"], dryRun: true }],
17815
17820
  ["admin harness mass-destroy", { positionals: 0, values: ["--org", "--hub"], dryRun: true }],
@@ -18326,6 +18331,10 @@ var init_api_client = __esm({
18326
18331
  async adminRepairKnowledgeBlobs(body) {
18327
18332
  return this.request("POST", "/api/admin/hubs/repair-knowledge-blobs", body);
18328
18333
  }
18334
+ // Used by `wayai admin hubs repair-credential-links` (platform-admin gated).
18335
+ async adminRepairCredentialLinks(body) {
18336
+ return this.request("POST", "/api/admin/hubs/repair-credential-links", body);
18337
+ }
18329
18338
  // Report twin candidates, or delete named production rows no preview maps (#4577).
18330
18339
  // Used by `wayai admin hubs repair-branching-orphans` (platform-admin gated).
18331
18340
  async adminRepairBranchingOrphans(body) {
@@ -21824,7 +21833,7 @@ function parseHubFolder(hubFolder, opts) {
21824
21833
  if (config.states && config.states.length > 0) {
21825
21834
  payload.states = config.states;
21826
21835
  }
21827
- if (config.teams && config.teams.length > 0) {
21836
+ if (config.teams !== void 0 && config.teams !== null) {
21828
21837
  payload.teams = config.teams;
21829
21838
  }
21830
21839
  if (Array.isArray(config.connections)) {
@@ -22737,8 +22746,8 @@ var init_hub_materializer = __esm({
22737
22746
  var init_ci = __esm({
22738
22747
  "../../packages/core/dist/contracts/ci.js"() {
22739
22748
  "use strict";
22740
- init_chunk_NAW4LACQ();
22741
- init_chunk_TXQWDP2F();
22749
+ init_chunk_5TCWQ5BK();
22750
+ init_chunk_XDGC4E7C();
22742
22751
  init_chunk_HRKVCI5A();
22743
22752
  init_chunk_IW7D2QOD();
22744
22753
  init_chunk_2YEGUQR7();
@@ -22749,7 +22758,7 @@ var init_ci = __esm({
22749
22758
  init_chunk_D3EP4TDU();
22750
22759
  init_chunk_X5PZZVTS();
22751
22760
  init_chunk_K5UAZWFF();
22752
- init_chunk_MBXNS7SI();
22761
+ init_chunk_LYHV5FZW();
22753
22762
  init_chunk_WTOA3ANF();
22754
22763
  init_chunk_IBL7FANV();
22755
22764
  init_chunk_S4VDZ7PZ();
@@ -22761,9 +22770,9 @@ var init_ci = __esm({
22761
22770
  init_chunk_WEXVYJ5H();
22762
22771
  init_chunk_6TSQ5HXC();
22763
22772
  init_chunk_HZ6CADSY();
22764
- init_chunk_G4HTKQCL();
22765
- init_chunk_ZUKC6A2W();
22766
- init_chunk_EVXGKOJV();
22773
+ init_chunk_J24NB7RZ();
22774
+ init_chunk_4YNFXDYH();
22775
+ init_chunk_PCYQWDCD();
22767
22776
  init_chunk_I42QJGJF();
22768
22777
  init_chunk_MIWZOSPI();
22769
22778
  init_chunk_YROEDMVZ();
@@ -37636,6 +37645,9 @@ async function adminCommand(args2) {
37636
37645
  case "repair-branching-orphans":
37637
37646
  await runRepairBranchingOrphans(flagArgs);
37638
37647
  return;
37648
+ case "repair-credential-links":
37649
+ await runRepairCredentialLinks(flagArgs);
37650
+ return;
37639
37651
  case "repair-knowledge-blobs":
37640
37652
  await runRepairKnowledgeBlobs(flagArgs);
37641
37653
  return;
@@ -38148,18 +38160,19 @@ async function runRepairTeamOrphans(flagArgs) {
38148
38160
  console.log(`${d.hub_id} | ${d.dangling_team_ids.join(",")} | ${d.team_users_removed}`);
38149
38161
  }
38150
38162
  }
38151
- async function runRepairKnowledgeBlobs(flagArgs) {
38152
- const USAGE8 = "wayai admin hubs repair-knowledge-blobs --all | --org <org_id> | --hub <hub_id> [--apply] [--yes] [--json]";
38163
+ function parseApplyTargetFlags(flagArgs, usage3) {
38153
38164
  const apply = flagArgs.includes("--apply");
38154
- const { body, targetLabel, dryRun, yes, jsonOutput } = parseScopedTargetFlags(
38155
- flagArgs.filter((arg) => arg !== "--apply"),
38156
- USAGE8
38157
- );
38158
- if (apply && dryRun) {
38165
+ const target = parseScopedTargetFlags(flagArgs.filter((arg) => arg !== "--apply"), usage3);
38166
+ if (apply && target.dryRun) {
38159
38167
  console.error("--apply and --dry-run contradict each other: a run is a dry run unless --apply is given.");
38160
- console.error(USAGE8);
38168
+ console.error(usage3);
38161
38169
  process.exit(1);
38162
38170
  }
38171
+ return { ...target, apply };
38172
+ }
38173
+ async function runRepairKnowledgeBlobs(flagArgs) {
38174
+ const USAGE8 = "wayai admin hubs repair-knowledge-blobs --all | --org <org_id> | --hub <hub_id> [--apply] [--yes] [--json]";
38175
+ const { body, targetLabel, apply, yes, jsonOutput } = parseApplyTargetFlags(flagArgs, USAGE8);
38163
38176
  const input = { ...body, dry_run: !apply };
38164
38177
  if (apply && !yes && !jsonOutput) {
38165
38178
  console.log(`About to DELETE the R2 objects no file row holds in: ${targetLabel}.`);
@@ -38206,6 +38219,48 @@ async function runRepairKnowledgeBlobs(flagArgs) {
38206
38219
  for (const key of d.keys) console.log(` ${key}`);
38207
38220
  }
38208
38221
  }
38222
+ async function runRepairCredentialLinks(flagArgs) {
38223
+ const USAGE8 = "wayai admin hubs repair-credential-links --all | --org <org_id> | --hub <hub_id> [--apply] [--yes] [--json]";
38224
+ const { body, targetLabel, apply, yes, jsonOutput } = parseApplyTargetFlags(flagArgs, USAGE8);
38225
+ if (apply && !yes && !jsonOutput) {
38226
+ console.log(`About to WRITE org credential links and current secrets to production connections in: ${targetLabel}.`);
38227
+ console.log("Run without --apply first to see what would change.");
38228
+ const ok = await confirm("Proceed?");
38229
+ if (!ok) {
38230
+ console.log("Aborted.");
38231
+ return;
38232
+ }
38233
+ }
38234
+ const { config, accessToken } = await requireAuth();
38235
+ const client = new ApiClient({ apiUrl: config.api_url, accessToken });
38236
+ let response;
38237
+ try {
38238
+ response = await client.adminRepairCredentialLinks({ ...body, dry_run: !apply });
38239
+ } catch (err) {
38240
+ exitOnApiError(err);
38241
+ throw err;
38242
+ }
38243
+ const data = response.data;
38244
+ if (jsonOutput) {
38245
+ console.log(JSON.stringify(data, null, 2));
38246
+ return;
38247
+ }
38248
+ const mode = data.dry_run ? "DRY RUN \u2014 nothing written" : "written";
38249
+ console.log(
38250
+ `repair-credential-links (${data.scope}) \u2014 ${mode}: hubs_scanned=${data.hubs_scanned} links_added=${data.links_added} secrets_updated=${data.secrets_updated}`
38251
+ );
38252
+ if (data.hubs_errored > 0 || data.orgs_errored > 0) {
38253
+ console.log(
38254
+ `WARNING: ${data.orgs_errored} org(s) and ${data.hubs_errored} hub(s) errored and were SKIPPED \u2014 re-run to cover them.`
38255
+ );
38256
+ }
38257
+ for (const r of data.results) {
38258
+ const reason = r.reason ? ` (${r.reason})` : "";
38259
+ const stale = r.secret_stale ? " secret_stale" : "";
38260
+ const written = r.secret_written ? " secret_written" : "";
38261
+ console.log(` hub=${r.hub_id} connection=${r.connection_id} credential=${r.credential_id}: ${r.outcome}${reason}${stale}${written}`);
38262
+ }
38263
+ }
38209
38264
  async function runRepairBranchingOrphans(flagArgs) {
38210
38265
  const USAGE8 = "wayai admin hubs repair-branching-orphans --all | --org <org_id> | --hub <hub_id> [--id <type>:<id> ...] [--dry-run] [--yes] [--json]";
38211
38266
  const targets = [];
@@ -39330,6 +39385,9 @@ Usage:
39330
39385
  wayai admin hubs repair-branching-orphans --all | --org <org_id> | --hub <hub_id> [--id <type>:<id> ...] [--dry-run] [--yes] [--json]
39331
39386
  Without --id: report unmapped production rows that duplicate a mapped one (#4577). With --id: delete exactly those rows of one production hub, each only if no live preview maps it and nothing references it
39332
39387
 
39388
+ wayai admin hubs repair-credential-links --all | --org <org_id> | --hub <hub_id> [--apply] [--yes] [--json]
39389
+ Report, or with --apply give each production connection copied before publish carried org credential links its links and their current secrets, and write the current secret into a linked connection that does not hold it (#5423). Idempotent \u2014 run without --apply first
39390
+
39333
39391
  wayai admin hubs repair-knowledge-blobs --all | --org <org_id> | --hub <hub_id> [--apply] [--yes] [--json]
39334
39392
  Report, or with --apply delete, the R2 objects under each hub no file row holds (retired knowledge's, #5142), older than a day; never eval attachments or call openings. A dry run by default. Run it once the deploy that retired knowledge is fully live: a hub on older code stops on its first page, as errored
39335
39393
 
@@ -39415,6 +39473,12 @@ Sources:
39415
39473
  diff sees them. It never picks rows itself \u2014 a deleted preview leaves live
39416
39474
  rows unmapped too \u2014 so without --id it only reports candidates, and with
39417
39475
  --id it deletes the named rows that pass its checks.
39476
+ \`repair-credential-links\` backfills org credential links on production
39477
+ connections copied before publish carried them: a key update skips such a
39478
+ connection, which keeps the old key until its next publish. It links only
39479
+ what a preview's own link supports, also writes the current key into a linked
39480
+ connection that does not hold it, leaves a connection two credentials could
39481
+ supply with a reason, and writes only with --apply.
39418
39482
  \`repair-knowledge-blobs\` sweeps the R2 objects retired hub knowledge left
39419
39483
  behind once its rows were deleted: keys no file row holds, older than a
39420
39484
  day. It reports by default and deletes only with --apply.