@wayai/cli 0.3.280 → 0.3.282

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
@@ -8341,7 +8341,7 @@ var init_chunk_C2UEA2KW = __esm({
8341
8341
  }
8342
8342
  });
8343
8343
 
8344
- // ../../packages/core/dist/chunk-PCYQWDCD.js
8344
+ // ../../packages/core/dist/chunk-GYSQV2DS.js
8345
8345
  function isNativeToolName(name) {
8346
8346
  return NATIVE_TOOL_NAMES.has(name);
8347
8347
  }
@@ -8360,8 +8360,8 @@ function idempotencyHeaderRefusal(value) {
8360
8360
  return null;
8361
8361
  }
8362
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"() {
8363
+ var init_chunk_GYSQV2DS = __esm({
8364
+ "../../packages/core/dist/chunk-GYSQV2DS.js"() {
8365
8365
  "use strict";
8366
8366
  init_chunk_YROEDMVZ();
8367
8367
  NATIVE_TOOL_SCHEMAS = {
@@ -10410,12 +10410,12 @@ var init_chunk_I42QJGJF = __esm({
10410
10410
  }
10411
10411
  });
10412
10412
 
10413
- // ../../packages/core/dist/chunk-4YNFXDYH.js
10413
+ // ../../packages/core/dist/chunk-VSSZVDBU.js
10414
10414
  var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
10415
- var init_chunk_4YNFXDYH = __esm({
10416
- "../../packages/core/dist/chunk-4YNFXDYH.js"() {
10415
+ var init_chunk_VSSZVDBU = __esm({
10416
+ "../../packages/core/dist/chunk-VSSZVDBU.js"() {
10417
10417
  "use strict";
10418
- init_chunk_PCYQWDCD();
10418
+ init_chunk_GYSQV2DS();
10419
10419
  init_chunk_I42QJGJF();
10420
10420
  init_chunk_MIWZOSPI();
10421
10421
  COUNTER_KEYS = Object.keys({
@@ -10539,7 +10539,7 @@ var init_chunk_L5F7ZOUJ = __esm({
10539
10539
  }
10540
10540
  });
10541
10541
 
10542
- // ../../packages/core/dist/chunk-J24NB7RZ.js
10542
+ // ../../packages/core/dist/chunk-J75LDBC2.js
10543
10543
  function normalizeDecisionsModelId(modelId) {
10544
10544
  return modelId.trim().toLowerCase();
10545
10545
  }
@@ -10610,10 +10610,10 @@ function readAgentSettingsModel(agentSettings) {
10610
10610
  return typeof model === "string" ? model : null;
10611
10611
  }
10612
10612
  var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
10613
- var init_chunk_J24NB7RZ = __esm({
10614
- "../../packages/core/dist/chunk-J24NB7RZ.js"() {
10613
+ var init_chunk_J75LDBC2 = __esm({
10614
+ "../../packages/core/dist/chunk-J75LDBC2.js"() {
10615
10615
  "use strict";
10616
- init_chunk_4YNFXDYH();
10616
+ init_chunk_VSSZVDBU();
10617
10617
  init_chunk_L5F7ZOUJ();
10618
10618
  DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
10619
10619
  DECISION_CAPABLE_AGENT_ROLES = [
@@ -10624,7 +10624,7 @@ var init_chunk_J24NB7RZ = __esm({
10624
10624
  }
10625
10625
  });
10626
10626
 
10627
- // ../../packages/core/dist/chunk-LYHV5FZW.js
10627
+ // ../../packages/core/dist/chunk-OXVMTY3G.js
10628
10628
  function resolveMonitorTrigger(monitorConfig) {
10629
10629
  if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
10630
10630
  const raw = monitorConfig.trigger;
@@ -10930,15 +10930,15 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
10930
10930
  if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
10931
10931
  }
10932
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"() {
10933
+ var init_chunk_OXVMTY3G = __esm({
10934
+ "../../packages/core/dist/chunk-OXVMTY3G.js"() {
10935
10935
  "use strict";
10936
10936
  init_chunk_IBL7FANV();
10937
10937
  init_chunk_KB5RK3RP();
10938
10938
  init_chunk_C2UEA2KW();
10939
10939
  init_chunk_HZ6CADSY();
10940
- init_chunk_J24NB7RZ();
10941
- init_chunk_PCYQWDCD();
10940
+ init_chunk_J75LDBC2();
10941
+ init_chunk_GYSQV2DS();
10942
10942
  init_chunk_YROEDMVZ();
10943
10943
  init_chunk_L5F7ZOUJ();
10944
10944
  init_zod();
@@ -11155,12 +11155,12 @@ var init_chunk_LYHV5FZW = __esm({
11155
11155
  }
11156
11156
  });
11157
11157
 
11158
- // ../../packages/core/dist/chunk-V55QRLWX.js
11158
+ // ../../packages/core/dist/chunk-CQTU636K.js
11159
11159
  var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
11160
- var init_chunk_V55QRLWX = __esm({
11161
- "../../packages/core/dist/chunk-V55QRLWX.js"() {
11160
+ var init_chunk_CQTU636K = __esm({
11161
+ "../../packages/core/dist/chunk-CQTU636K.js"() {
11162
11162
  "use strict";
11163
- init_chunk_LYHV5FZW();
11163
+ init_chunk_OXVMTY3G();
11164
11164
  init_chunk_HZ6CADSY();
11165
11165
  init_chunk_YROEDMVZ();
11166
11166
  init_zod();
@@ -12602,7 +12602,7 @@ var init_chunk_BPCNB5RT = __esm({
12602
12602
  }
12603
12603
  });
12604
12604
 
12605
- // ../../packages/core/dist/chunk-XDGC4E7C.js
12605
+ // ../../packages/core/dist/chunk-NEIVT3KL.js
12606
12606
  function toolParametersViolations(params) {
12607
12607
  try {
12608
12608
  if (containsKanbanPlaceholders(params)) return [];
@@ -12657,12 +12657,12 @@ function refineToolConfig(value, ctx) {
12657
12657
  }
12658
12658
  }
12659
12659
  var nonBlank, DEFAULT_TOOL_CONFIG_DESCRIPTION, toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
12660
- var init_chunk_XDGC4E7C = __esm({
12661
- "../../packages/core/dist/chunk-XDGC4E7C.js"() {
12660
+ var init_chunk_NEIVT3KL = __esm({
12661
+ "../../packages/core/dist/chunk-NEIVT3KL.js"() {
12662
12662
  "use strict";
12663
12663
  init_chunk_WEXVYJ5H();
12664
12664
  init_chunk_HZ6CADSY();
12665
- init_chunk_PCYQWDCD();
12665
+ init_chunk_GYSQV2DS();
12666
12666
  init_zod();
12667
12667
  nonBlank = (text4) => typeof text4 === "string" && text4.trim() !== "" ? text4 : void 0;
12668
12668
  DEFAULT_TOOL_CONFIG_DESCRIPTION = "Function description";
@@ -14028,7 +14028,7 @@ var init_chunk_7NQZRSSJ = __esm({
14028
14028
  }
14029
14029
  });
14030
14030
 
14031
- // ../../packages/core/dist/chunk-5TCWQ5BK.js
14031
+ // ../../packages/core/dist/chunk-C5DZ3VCJ.js
14032
14032
  function declaresNoConnection(agent) {
14033
14033
  return agent.connection === null && !agent.connection_id;
14034
14034
  }
@@ -14776,10 +14776,10 @@ function skillSectionsAsResources(scope) {
14776
14776
  };
14777
14777
  }
14778
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;
14779
- var init_chunk_5TCWQ5BK = __esm({
14780
- "../../packages/core/dist/chunk-5TCWQ5BK.js"() {
14779
+ var init_chunk_C5DZ3VCJ = __esm({
14780
+ "../../packages/core/dist/chunk-C5DZ3VCJ.js"() {
14781
14781
  "use strict";
14782
- init_chunk_XDGC4E7C();
14782
+ init_chunk_NEIVT3KL();
14783
14783
  init_chunk_HRKVCI5A();
14784
14784
  init_chunk_IW7D2QOD();
14785
14785
  init_chunk_LBDH7LCG();
@@ -14787,13 +14787,13 @@ var init_chunk_5TCWQ5BK = __esm({
14787
14787
  init_chunk_7NQZRSSJ();
14788
14788
  init_chunk_X5PZZVTS();
14789
14789
  init_chunk_K5UAZWFF();
14790
- init_chunk_LYHV5FZW();
14790
+ init_chunk_OXVMTY3G();
14791
14791
  init_chunk_S4VDZ7PZ();
14792
14792
  init_chunk_C2UEA2KW();
14793
14793
  init_chunk_FBV7NLKO();
14794
14794
  init_chunk_WEXVYJ5H();
14795
14795
  init_chunk_HZ6CADSY();
14796
- init_chunk_J24NB7RZ();
14796
+ init_chunk_J75LDBC2();
14797
14797
  init_chunk_YROEDMVZ();
14798
14798
  init_zod();
14799
14799
  MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
@@ -15160,10 +15160,10 @@ var init_chunk_BFG4ZWR4 = __esm({
15160
15160
  }
15161
15161
  });
15162
15162
 
15163
- // ../../packages/core/dist/chunk-C3V6PEQ7.js
15163
+ // ../../packages/core/dist/chunk-QY26J662.js
15164
15164
  var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
15165
- var init_chunk_C3V6PEQ7 = __esm({
15166
- "../../packages/core/dist/chunk-C3V6PEQ7.js"() {
15165
+ var init_chunk_QY26J662 = __esm({
15166
+ "../../packages/core/dist/chunk-QY26J662.js"() {
15167
15167
  "use strict";
15168
15168
  init_zod();
15169
15169
  dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
@@ -15274,7 +15274,7 @@ var init_chunk_OMPT4ZHR = __esm({
15274
15274
  }
15275
15275
  });
15276
15276
 
15277
- // ../../packages/core/dist/chunk-M44PP7YM.js
15277
+ // ../../packages/core/dist/chunk-JV5JX5WA.js
15278
15278
  function refineScopedTarget(data, ctx) {
15279
15279
  if (data.scope === "org") {
15280
15280
  if (!data.org_id) {
@@ -15300,12 +15300,12 @@ function refineScopedTarget(data, ctx) {
15300
15300
  }
15301
15301
  }
15302
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"() {
15303
+ var init_chunk_JV5JX5WA = __esm({
15304
+ "../../packages/core/dist/chunk-JV5JX5WA.js"() {
15305
15305
  "use strict";
15306
15306
  init_chunk_FECLIZTY();
15307
15307
  init_chunk_BFG4ZWR4();
15308
- init_chunk_C3V6PEQ7();
15308
+ init_chunk_QY26J662();
15309
15309
  init_chunk_7NQZRSSJ();
15310
15310
  init_chunk_OMPT4ZHR();
15311
15311
  init_chunk_HZ6CADSY();
@@ -15893,16 +15893,16 @@ var init_chunk_R6Y377AW = __esm({
15893
15893
  }
15894
15894
  });
15895
15895
 
15896
- // ../../packages/core/dist/chunk-QEHQEDNV.js
15896
+ // ../../packages/core/dist/chunk-AHOE4ZHH.js
15897
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;
15898
- var init_chunk_QEHQEDNV = __esm({
15899
- "../../packages/core/dist/chunk-QEHQEDNV.js"() {
15898
+ var init_chunk_AHOE4ZHH = __esm({
15899
+ "../../packages/core/dist/chunk-AHOE4ZHH.js"() {
15900
15900
  "use strict";
15901
15901
  init_chunk_R6Y377AW();
15902
15902
  init_chunk_UAOHHCW5();
15903
- init_chunk_LYHV5FZW();
15903
+ init_chunk_OXVMTY3G();
15904
15904
  init_chunk_5XEJSR22();
15905
- init_chunk_J24NB7RZ();
15905
+ init_chunk_J75LDBC2();
15906
15906
  init_chunk_YROEDMVZ();
15907
15907
  init_zod();
15908
15908
  AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
@@ -16367,7 +16367,7 @@ var init_contracts = __esm({
16367
16367
  init_chunk_OPETF4GS();
16368
16368
  init_chunk_SY6PLCPK();
16369
16369
  init_chunk_KMAC3O3L();
16370
- init_chunk_V55QRLWX();
16370
+ init_chunk_CQTU636K();
16371
16371
  init_chunk_KSTYTQ7I();
16372
16372
  init_chunk_LKBSHANA();
16373
16373
  init_chunk_Y6NC5CH5();
@@ -16385,8 +16385,8 @@ var init_contracts = __esm({
16385
16385
  init_chunk_E4DIIOOE();
16386
16386
  init_chunk_7CYHPF35();
16387
16387
  init_chunk_BPCNB5RT();
16388
- init_chunk_5TCWQ5BK();
16389
- init_chunk_XDGC4E7C();
16388
+ init_chunk_C5DZ3VCJ();
16389
+ init_chunk_NEIVT3KL();
16390
16390
  init_chunk_HRKVCI5A();
16391
16391
  init_chunk_IW7D2QOD();
16392
16392
  init_chunk_2YEGUQR7();
@@ -16395,10 +16395,10 @@ var init_contracts = __esm({
16395
16395
  init_chunk_4LXDRTO4();
16396
16396
  init_chunk_JDJ4EUOL();
16397
16397
  init_chunk_NVKU5PPQ();
16398
- init_chunk_M44PP7YM();
16398
+ init_chunk_JV5JX5WA();
16399
16399
  init_chunk_FECLIZTY();
16400
16400
  init_chunk_BFG4ZWR4();
16401
- init_chunk_C3V6PEQ7();
16401
+ init_chunk_QY26J662();
16402
16402
  init_chunk_7NQZRSSJ();
16403
16403
  init_chunk_D3EP4TDU();
16404
16404
  init_chunk_X5PZZVTS();
@@ -16406,10 +16406,10 @@ var init_contracts = __esm({
16406
16406
  init_chunk_2PZIF56U();
16407
16407
  init_chunk_UEJOG2Q7();
16408
16408
  init_chunk_JO53JB35();
16409
- init_chunk_QEHQEDNV();
16409
+ init_chunk_AHOE4ZHH();
16410
16410
  init_chunk_R6Y377AW();
16411
16411
  init_chunk_UAOHHCW5();
16412
- init_chunk_LYHV5FZW();
16412
+ init_chunk_OXVMTY3G();
16413
16413
  init_chunk_IG6QBZMA();
16414
16414
  init_chunk_OMPT4ZHR();
16415
16415
  init_chunk_3VCB2RTC();
@@ -16432,9 +16432,9 @@ var init_contracts = __esm({
16432
16432
  init_chunk_WEXVYJ5H();
16433
16433
  init_chunk_6TSQ5HXC();
16434
16434
  init_chunk_HZ6CADSY();
16435
- init_chunk_J24NB7RZ();
16436
- init_chunk_4YNFXDYH();
16437
- init_chunk_PCYQWDCD();
16435
+ init_chunk_J75LDBC2();
16436
+ init_chunk_VSSZVDBU();
16437
+ init_chunk_GYSQV2DS();
16438
16438
  init_chunk_I42QJGJF();
16439
16439
  init_chunk_MIWZOSPI();
16440
16440
  init_chunk_YROEDMVZ();
@@ -16592,9 +16592,9 @@ var init_dist = __esm({
16592
16592
  init_chunk_6TSQ5HXC();
16593
16593
  init_chunk_HZ6CADSY();
16594
16594
  init_chunk_BF4WRSOQ();
16595
- init_chunk_J24NB7RZ();
16596
- init_chunk_4YNFXDYH();
16597
- init_chunk_PCYQWDCD();
16595
+ init_chunk_J75LDBC2();
16596
+ init_chunk_VSSZVDBU();
16597
+ init_chunk_GYSQV2DS();
16598
16598
  init_chunk_I42QJGJF();
16599
16599
  init_chunk_MIWZOSPI();
16600
16600
  init_chunk_YROEDMVZ();
@@ -22746,8 +22746,8 @@ var init_hub_materializer = __esm({
22746
22746
  var init_ci = __esm({
22747
22747
  "../../packages/core/dist/contracts/ci.js"() {
22748
22748
  "use strict";
22749
- init_chunk_5TCWQ5BK();
22750
- init_chunk_XDGC4E7C();
22749
+ init_chunk_C5DZ3VCJ();
22750
+ init_chunk_NEIVT3KL();
22751
22751
  init_chunk_HRKVCI5A();
22752
22752
  init_chunk_IW7D2QOD();
22753
22753
  init_chunk_2YEGUQR7();
@@ -22758,7 +22758,7 @@ var init_ci = __esm({
22758
22758
  init_chunk_D3EP4TDU();
22759
22759
  init_chunk_X5PZZVTS();
22760
22760
  init_chunk_K5UAZWFF();
22761
- init_chunk_LYHV5FZW();
22761
+ init_chunk_OXVMTY3G();
22762
22762
  init_chunk_WTOA3ANF();
22763
22763
  init_chunk_IBL7FANV();
22764
22764
  init_chunk_S4VDZ7PZ();
@@ -22770,9 +22770,9 @@ var init_ci = __esm({
22770
22770
  init_chunk_WEXVYJ5H();
22771
22771
  init_chunk_6TSQ5HXC();
22772
22772
  init_chunk_HZ6CADSY();
22773
- init_chunk_J24NB7RZ();
22774
- init_chunk_4YNFXDYH();
22775
- init_chunk_PCYQWDCD();
22773
+ init_chunk_J75LDBC2();
22774
+ init_chunk_VSSZVDBU();
22775
+ init_chunk_GYSQV2DS();
22776
22776
  init_chunk_I42QJGJF();
22777
22777
  init_chunk_MIWZOSPI();
22778
22778
  init_chunk_YROEDMVZ();
@@ -27461,6 +27461,7 @@ var push_exports = {};
27461
27461
  __export(push_exports, {
27462
27462
  autoRenameAgentFiles: () => autoRenameAgentFiles,
27463
27463
  createAndPushNewHub: () => createAndPushNewHub,
27464
+ mergeSkippedToolEntries: () => mergeSkippedToolEntries,
27464
27465
  printErrors: () => printErrors,
27465
27466
  printLocalFileChanges: () => printLocalFileChanges,
27466
27467
  printSyncResult: () => printSyncResult,
@@ -27709,11 +27710,63 @@ async function autoRenameAgentFiles(client, hubId, hubFolder, organizationId, re
27709
27710
  }
27710
27711
  }
27711
27712
  }
27712
- async function syncAfterPush(client, hubId, hubFolder, organizationId) {
27713
+ function resolveHeld(id, name, held) {
27714
+ if (id && held?.some((h) => h.id === id)) return id;
27715
+ return held?.find((h) => name !== void 0 && h.name === name)?.id;
27716
+ }
27717
+ function entriesWithNoRow(entries, rows, identity2, pulled) {
27718
+ const keys = entries.map((entry) => identity2.key(entry, pulled));
27719
+ const rowKeys = new Set(rows.map((row) => identity2.rowKey(row)));
27720
+ const resolvedKeys = new Set(keys.filter((key) => key !== null));
27721
+ const unresolved = entries.filter((_, i) => keys[i] === null);
27722
+ const unresolvedTaken = /* @__PURE__ */ new Set();
27723
+ for (const tool of new Set(unresolved.map((entry) => identity2.tool(entry)))) {
27724
+ const named = new Set(unresolved.filter((entry) => identity2.tool(entry) === tool).map((entry) => identity2.label(entry)));
27725
+ const freeRows = rows.filter((row) => identity2.tool(row) === tool && !resolvedKeys.has(identity2.rowKey(row)));
27726
+ if (freeRows.length >= named.size) unresolvedTaken.add(tool);
27727
+ }
27728
+ return entries.filter((entry, i) => {
27729
+ const key = keys[i];
27730
+ return key === null ? !unresolvedTaken.has(identity2.tool(entry)) : !rowKeys.has(key);
27731
+ });
27732
+ }
27733
+ function mergeSkippedToolEntries(pulled, pushed) {
27734
+ const kept = [];
27735
+ for (const local of pushed.agents ?? []) {
27736
+ const remote = (pulled.agents ?? []).find((a) => local.id !== void 0 && a.id === local.id) ?? (pulled.agents ?? []).find((a) => a.name === local.name);
27737
+ const localTools = local.tools;
27738
+ if (!remote || !localTools) continue;
27739
+ const tools = remote.tools ?? {};
27740
+ const keep = (group) => {
27741
+ const identity2 = SKIPPABLE_ENTRY_IDENTITY[group];
27742
+ const rows = tools[group] ?? [];
27743
+ const missing = entriesWithNoRow(localTools[group] ?? [], rows, identity2, pulled);
27744
+ if (missing.length === 0) return;
27745
+ const replaced = new Set(missing.map(entryId).filter((id) => id !== void 0));
27746
+ const leftRows = rows.filter((row) => {
27747
+ const id = entryId(row);
27748
+ return id === void 0 || !replaced.has(id);
27749
+ });
27750
+ tools[group] = [...leftRows, ...missing];
27751
+ kept.push(...missing.map((entry) => `${local.name}: ${identity2.label(entry)}`));
27752
+ };
27753
+ keep("native");
27754
+ keep("delegation");
27755
+ keep("mcp");
27756
+ if (Object.keys(tools).length > 0) remote.tools = tools;
27757
+ }
27758
+ return kept;
27759
+ }
27760
+ async function syncAfterPush(client, hubId, hubFolder, pushed, organizationId) {
27713
27761
  try {
27714
27762
  const remoteConfig = await client.pull(hubId, organizationId);
27763
+ const kept = mergeSkippedToolEntries(remoteConfig, pushed);
27715
27764
  const delta = await materializeHubFolder(hubFolder, remoteConfig);
27716
27765
  printLocalFileChanges(delta);
27766
+ if (kept.length > 0) {
27767
+ console.log(`Kept ${kept.length} tool ${kept.length === 1 ? "entry" : "entries"} in this folder that this push did not write; push again once ${kept.length === 1 ? "it" : "they"} can be applied:`);
27768
+ for (const line of kept) console.log(` ${line}`);
27769
+ }
27717
27770
  const finalFolder = autoRenameHubFolder(hubFolder, remoteConfig.hub.name, remoteConfig.hub_environment, hubId, remoteConfig.preview_label, remoteConfig.branch_name);
27718
27771
  if (finalFolder !== hubFolder) {
27719
27772
  console.log(`Hub folder is now ${finalFolder}`);
@@ -27767,7 +27820,7 @@ async function pushSingleHub(client, hubId, hubFolder, autoConfirm, organization
27767
27820
  console.log("Pushing changes...");
27768
27821
  const result = await client.push(hubId, wireConfig, organizationId);
27769
27822
  printSyncResult(result);
27770
- await syncAfterPush(client, hubId, hubFolder, organizationId);
27823
+ await syncAfterPush(client, hubId, hubFolder, localConfig, organizationId);
27771
27824
  seedScopeIfEmpty("hubs", hubId);
27772
27825
  return true;
27773
27826
  }
@@ -27924,7 +27977,7 @@ async function pushCommand(args2) {
27924
27977
  assertScopeAllowsCreation("hubs", resolution.target.hub.hubName);
27925
27978
  await createAndPushNewHub(client, resolution.target.hub, { autoConfirm, label: label2, organizationId });
27926
27979
  }
27927
- var LOCAL_CHANGE_LIST_CAP;
27980
+ var LOCAL_CHANGE_LIST_CAP, nativeEntryName, entryId, SKIPPABLE_ENTRY_IDENTITY;
27928
27981
  var init_push = __esm({
27929
27982
  "src/commands/push.ts"() {
27930
27983
  "use strict";
@@ -27946,6 +27999,32 @@ var init_push = __esm({
27946
27999
  init_community_workspace();
27947
28000
  init_fs_safety();
27948
28001
  LOCAL_CHANGE_LIST_CAP = 20;
28002
+ nativeEntryName = (entry) => typeof entry === "string" ? entry : entry.name;
28003
+ entryId = (entry) => typeof entry === "string" ? void 0 : entry.id;
28004
+ SKIPPABLE_ENTRY_IDENTITY = {
28005
+ native: {
28006
+ key: (entry) => nativeEntryName(entry),
28007
+ rowKey: (row) => nativeEntryName(row),
28008
+ tool: (entry) => nativeEntryName(entry),
28009
+ label: (entry) => `native tool "${nativeEntryName(entry)}"`
28010
+ },
28011
+ delegation: {
28012
+ key: (entry, pulled) => {
28013
+ const target = entry.type === "agent" ? resolveHeld(entry.target_id, entry.target, pulled.agents) : entry.type === "team" ? resolveHeld(entry.target_id, entry.target, pulled.teams) : entry.target_id;
28014
+ if (target === void 0 && entry.type === "hub") return null;
28015
+ return `${entry.tool}:${entry.type}:${target ?? `name:${entry.target}`}`;
28016
+ },
28017
+ rowKey: (row) => `${row.tool}:${row.type}:${row.target_id ?? `name:${row.target}`}`,
28018
+ tool: (entry) => `${entry.tool}:${entry.type}`,
28019
+ label: (entry) => `${entry.tool} to ${entry.type} "${entry.target}"`
28020
+ },
28021
+ mcp: {
28022
+ key: (entry, pulled) => `${resolveHeld(entry.connection_id, entry.connection, pulled.connections) ?? `name:${entry.connection}`}:${entry.name}`,
28023
+ rowKey: (row) => `${row.connection_id ?? `name:${row.connection}`}:${row.name}`,
28024
+ tool: (entry) => entry.name,
28025
+ label: (entry) => `MCP tool "${entry.name}" on "${entry.connection ?? entry.connection_id}"`
28026
+ }
28027
+ };
27949
28028
  }
27950
28029
  });
27951
28030
 
@@ -39341,7 +39420,8 @@ Usage:
39341
39420
  wayai admin do tables <type> <id>
39342
39421
  wayai admin do read <type> <id> <table> [--limit N] [--id X] [--json]
39343
39422
  wayai admin do counts <hub|org> <id> [--json] Numbers, no text: a hub's toolset connections, knowledge placeholders per stored
39344
- text, secret columns' shapes and (production) publish state; an org's
39423
+ text, summary schemas' invariant verdicts, secret columns' shapes and
39424
+ (production) publish state; an org's
39345
39425
  skills, hub links, moved-knowledge registry and credentials' shapes
39346
39426
 
39347
39427
  wayai admin analytics tables