@wayai/cli 0.3.285 → 0.3.286

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
@@ -6255,10 +6255,10 @@ var init_chunk_5DGHIY7L = __esm({
6255
6255
  }
6256
6256
  });
6257
6257
 
6258
- // ../../packages/core/dist/chunk-5XEJSR22.js
6259
- var DATA_PROXY_MOUNT, DATA_PROXY_PREFIX, BASE_DESTRUCTION_MOUNT, BASE_DESTRUCTION_PREFIX, BASE_DESTRUCTION_CONFIRM_PATH, COMMUNITY_EMAIL_UNSUBSCRIBE_PATH, CONTACT_BOOK_EMAIL_UNSUBSCRIBE_PATH, AUTOMATION_WEBHOOK_MOUNT, MANAGED_AGENTS_WEBHOOK_MOUNT;
6260
- var init_chunk_5XEJSR22 = __esm({
6261
- "../../packages/core/dist/chunk-5XEJSR22.js"() {
6258
+ // ../../packages/core/dist/chunk-5FO3GNKP.js
6259
+ var DATA_PROXY_MOUNT, DATA_PROXY_PREFIX, BASE_DESTRUCTION_MOUNT, BASE_DESTRUCTION_PREFIX, BASE_DESTRUCTION_CONFIRM_PATH, COMMUNITY_EMAIL_UNSUBSCRIBE_PATH, CONTACT_BOOK_EMAIL_UNSUBSCRIBE_PATH, AUTOMATION_WEBHOOK_MOUNT, MANAGED_AGENTS_WEBHOOK_MOUNT, TELEGRAM_VAULT_WEBHOOK_PATH;
6260
+ var init_chunk_5FO3GNKP = __esm({
6261
+ "../../packages/core/dist/chunk-5FO3GNKP.js"() {
6262
6262
  "use strict";
6263
6263
  DATA_PROXY_MOUNT = "/data";
6264
6264
  DATA_PROXY_PREFIX = `/api${DATA_PROXY_MOUNT}`;
@@ -6269,10 +6269,11 @@ var init_chunk_5XEJSR22 = __esm({
6269
6269
  CONTACT_BOOK_EMAIL_UNSUBSCRIBE_PATH = "/api/contact-book/email-unsubscribe";
6270
6270
  AUTOMATION_WEBHOOK_MOUNT = "/webhooks/automations";
6271
6271
  MANAGED_AGENTS_WEBHOOK_MOUNT = "/webhooks/managed-agents";
6272
+ TELEGRAM_VAULT_WEBHOOK_PATH = "/webhooks/telegram/vault";
6272
6273
  }
6273
6274
  });
6274
6275
 
6275
- // ../../packages/core/dist/chunk-3VCB2RTC.js
6276
+ // ../../packages/core/dist/chunk-JSLX2PRT.js
6276
6277
  function matchPath(pattern, path45) {
6277
6278
  const pathSegments2 = path45.replace(/\/$/, "").split("/");
6278
6279
  const isPrefix = pattern.endsWith("/*");
@@ -6301,10 +6302,10 @@ function getEndpointConfig(path45) {
6301
6302
  return { tier: "STANDARD" };
6302
6303
  }
6303
6304
  var ENDPOINT_CONFIGS, EXCLUDED_PATHS;
6304
- var init_chunk_3VCB2RTC = __esm({
6305
- "../../packages/core/dist/chunk-3VCB2RTC.js"() {
6305
+ var init_chunk_JSLX2PRT = __esm({
6306
+ "../../packages/core/dist/chunk-JSLX2PRT.js"() {
6306
6307
  "use strict";
6307
- init_chunk_5XEJSR22();
6308
+ init_chunk_5FO3GNKP();
6308
6309
  ENDPOINT_CONFIGS = {
6309
6310
  // OAuth callbacks - strict, fail-closed (prevent brute force)
6310
6311
  "/oauth/callback/*": { tier: "STRICT", failClosed: true },
@@ -6463,6 +6464,9 @@ var init_chunk_3VCB2RTC = __esm({
6463
6464
  // vendor address carries every tenant's, so BULK. The per-connection budget is
6464
6465
  // `MANAGED_AGENTS_WEBHOOK_PER_CONNECTION_LIMIT`, counted after the delivery is verified.
6465
6466
  [`${MANAGED_AGENTS_WEBHOOK_MOUNT}/*`]: { tier: "BULK" },
6467
+ // Telegram updates the credentials vault forwards for the bots whose tokens it holds (wayai#5644):
6468
+ // the vault's egress carries every such bot's, so BULK. Its signature is checked after this.
6469
+ [TELEGRAM_VAULT_WEBHOOK_PATH]: { tier: "BULK" },
6466
6470
  // Reports (CLI → platform_report triage queue). One per-user budget covers intake
6467
6471
  // (POST), the content edit (PATCH /:id), the reporter read-back (GET, GET /:id), and the
6468
6472
  // verification loop (POST /:id/accept, /:id/contest). The limiter is path-based, so a
@@ -6781,7 +6785,7 @@ var init_chunk_3VCB2RTC = __esm({
6781
6785
  }
6782
6786
  });
6783
6787
 
6784
- // ../../packages/core/dist/chunk-S447DV3E.js
6788
+ // ../../packages/core/dist/chunk-YFHL2BKN.js
6785
6789
  function fileSnapshotChanged(run) {
6786
6790
  return run.written + run.removed > 0;
6787
6791
  }
@@ -6822,11 +6826,11 @@ async function sendWithRetry(opts, cursor) {
6822
6826
  }
6823
6827
  }
6824
6828
  var rekorFileSnapshotAnswerSchema, FILE_SNAPSHOT_MAX_PAGES, FILE_SNAPSHOT_CONFLICT_ATTEMPTS, FILE_SNAPSHOT_PAGE_SPACING_MS, FILE_SNAPSHOT_CONFLICT_STATUS;
6825
- var init_chunk_S447DV3E = __esm({
6826
- "../../packages/core/dist/chunk-S447DV3E.js"() {
6829
+ var init_chunk_YFHL2BKN = __esm({
6830
+ "../../packages/core/dist/chunk-YFHL2BKN.js"() {
6827
6831
  "use strict";
6828
- init_chunk_3VCB2RTC();
6829
- init_chunk_5XEJSR22();
6832
+ init_chunk_JSLX2PRT();
6833
+ init_chunk_5FO3GNKP();
6830
6834
  init_zod();
6831
6835
  rekorFileSnapshotAnswerSchema = external_exports.object({
6832
6836
  data: external_exports.object({
@@ -8707,7 +8711,7 @@ var init_chunk_C2UEA2KW = __esm({
8707
8711
  }
8708
8712
  });
8709
8713
 
8710
- // ../../packages/core/dist/chunk-GYSQV2DS.js
8714
+ // ../../packages/core/dist/chunk-JHUTFQDO.js
8711
8715
  function isNativeToolName(name) {
8712
8716
  return NATIVE_TOOL_NAMES.has(name);
8713
8717
  }
@@ -8726,8 +8730,8 @@ function idempotencyHeaderRefusal(value) {
8726
8730
  return null;
8727
8731
  }
8728
8732
  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;
8729
- var init_chunk_GYSQV2DS = __esm({
8730
- "../../packages/core/dist/chunk-GYSQV2DS.js"() {
8733
+ var init_chunk_JHUTFQDO = __esm({
8734
+ "../../packages/core/dist/chunk-JHUTFQDO.js"() {
8731
8735
  "use strict";
8732
8736
  init_chunk_YROEDMVZ();
8733
8737
  NATIVE_TOOL_SCHEMAS = {
@@ -10776,12 +10780,12 @@ var init_chunk_I42QJGJF = __esm({
10776
10780
  }
10777
10781
  });
10778
10782
 
10779
- // ../../packages/core/dist/chunk-VSSZVDBU.js
10783
+ // ../../packages/core/dist/chunk-DOGCOC6X.js
10780
10784
  var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
10781
- var init_chunk_VSSZVDBU = __esm({
10782
- "../../packages/core/dist/chunk-VSSZVDBU.js"() {
10785
+ var init_chunk_DOGCOC6X = __esm({
10786
+ "../../packages/core/dist/chunk-DOGCOC6X.js"() {
10783
10787
  "use strict";
10784
- init_chunk_GYSQV2DS();
10788
+ init_chunk_JHUTFQDO();
10785
10789
  init_chunk_I42QJGJF();
10786
10790
  init_chunk_MIWZOSPI();
10787
10791
  COUNTER_KEYS = Object.keys({
@@ -10905,7 +10909,7 @@ var init_chunk_L5F7ZOUJ = __esm({
10905
10909
  }
10906
10910
  });
10907
10911
 
10908
- // ../../packages/core/dist/chunk-J75LDBC2.js
10912
+ // ../../packages/core/dist/chunk-BLPYDZAO.js
10909
10913
  function normalizeDecisionsModelId(modelId) {
10910
10914
  return modelId.trim().toLowerCase();
10911
10915
  }
@@ -10976,10 +10980,10 @@ function readAgentSettingsModel(agentSettings) {
10976
10980
  return typeof model === "string" ? model : null;
10977
10981
  }
10978
10982
  var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
10979
- var init_chunk_J75LDBC2 = __esm({
10980
- "../../packages/core/dist/chunk-J75LDBC2.js"() {
10983
+ var init_chunk_BLPYDZAO = __esm({
10984
+ "../../packages/core/dist/chunk-BLPYDZAO.js"() {
10981
10985
  "use strict";
10982
- init_chunk_VSSZVDBU();
10986
+ init_chunk_DOGCOC6X();
10983
10987
  init_chunk_L5F7ZOUJ();
10984
10988
  DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
10985
10989
  DECISION_CAPABLE_AGENT_ROLES = [
@@ -10990,7 +10994,7 @@ var init_chunk_J75LDBC2 = __esm({
10990
10994
  }
10991
10995
  });
10992
10996
 
10993
- // ../../packages/core/dist/chunk-OXVMTY3G.js
10997
+ // ../../packages/core/dist/chunk-OAWG66J3.js
10994
10998
  function resolveMonitorTrigger(monitorConfig) {
10995
10999
  if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
10996
11000
  const raw = monitorConfig.trigger;
@@ -11296,15 +11300,15 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
11296
11300
  if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
11297
11301
  }
11298
11302
  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;
11299
- var init_chunk_OXVMTY3G = __esm({
11300
- "../../packages/core/dist/chunk-OXVMTY3G.js"() {
11303
+ var init_chunk_OAWG66J3 = __esm({
11304
+ "../../packages/core/dist/chunk-OAWG66J3.js"() {
11301
11305
  "use strict";
11302
11306
  init_chunk_IBL7FANV();
11303
11307
  init_chunk_KB5RK3RP();
11304
11308
  init_chunk_C2UEA2KW();
11305
11309
  init_chunk_HZ6CADSY();
11306
- init_chunk_J75LDBC2();
11307
- init_chunk_GYSQV2DS();
11310
+ init_chunk_BLPYDZAO();
11311
+ init_chunk_JHUTFQDO();
11308
11312
  init_chunk_YROEDMVZ();
11309
11313
  init_chunk_L5F7ZOUJ();
11310
11314
  init_zod();
@@ -11521,12 +11525,12 @@ var init_chunk_OXVMTY3G = __esm({
11521
11525
  }
11522
11526
  });
11523
11527
 
11524
- // ../../packages/core/dist/chunk-CQTU636K.js
11528
+ // ../../packages/core/dist/chunk-HL6QCLLK.js
11525
11529
  var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
11526
- var init_chunk_CQTU636K = __esm({
11527
- "../../packages/core/dist/chunk-CQTU636K.js"() {
11530
+ var init_chunk_HL6QCLLK = __esm({
11531
+ "../../packages/core/dist/chunk-HL6QCLLK.js"() {
11528
11532
  "use strict";
11529
- init_chunk_OXVMTY3G();
11533
+ init_chunk_OAWG66J3();
11530
11534
  init_chunk_HZ6CADSY();
11531
11535
  init_chunk_YROEDMVZ();
11532
11536
  init_zod();
@@ -12610,7 +12614,7 @@ var init_chunk_BPCNB5RT = __esm({
12610
12614
  }
12611
12615
  });
12612
12616
 
12613
- // ../../packages/core/dist/chunk-NEIVT3KL.js
12617
+ // ../../packages/core/dist/chunk-YWCYUPJV.js
12614
12618
  function toolParametersViolations(params) {
12615
12619
  try {
12616
12620
  if (containsKanbanPlaceholders(params)) return [];
@@ -12665,12 +12669,12 @@ function refineToolConfig(value, ctx) {
12665
12669
  }
12666
12670
  }
12667
12671
  var nonBlank, DEFAULT_TOOL_CONFIG_DESCRIPTION, toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
12668
- var init_chunk_NEIVT3KL = __esm({
12669
- "../../packages/core/dist/chunk-NEIVT3KL.js"() {
12672
+ var init_chunk_YWCYUPJV = __esm({
12673
+ "../../packages/core/dist/chunk-YWCYUPJV.js"() {
12670
12674
  "use strict";
12671
12675
  init_chunk_WEXVYJ5H();
12672
12676
  init_chunk_HZ6CADSY();
12673
- init_chunk_GYSQV2DS();
12677
+ init_chunk_JHUTFQDO();
12674
12678
  init_zod();
12675
12679
  nonBlank = (text4) => typeof text4 === "string" && text4.trim() !== "" ? text4 : void 0;
12676
12680
  DEFAULT_TOOL_CONFIG_DESCRIPTION = "Function description";
@@ -14036,7 +14040,7 @@ var init_chunk_7NQZRSSJ = __esm({
14036
14040
  }
14037
14041
  });
14038
14042
 
14039
- // ../../packages/core/dist/chunk-4WB5E53T.js
14043
+ // ../../packages/core/dist/chunk-VMPEOBYP.js
14040
14044
  function declaresNoConnection(agent) {
14041
14045
  return agent.connection === null && !agent.connection_id;
14042
14046
  }
@@ -14050,12 +14054,15 @@ function customToolConnectionRefusal(agentName, tool) {
14050
14054
  return `Agent "${agentName}", tool "${tool.name}": connection is required. A custom tool calls through one of the hub's connections: name it.`;
14051
14055
  }
14052
14056
  function customToolConfigObject(config) {
14053
- if (typeof config !== "string") return config;
14054
- try {
14055
- return JSON.parse(config);
14056
- } catch {
14057
- return config;
14057
+ let read = config;
14058
+ for (let layer = 0; layer < MAX_CUSTOM_TOOL_CONFIG_TEXT_LAYERS && typeof read === "string"; layer++) {
14059
+ try {
14060
+ read = JSON.parse(read);
14061
+ } catch {
14062
+ return read;
14063
+ }
14058
14064
  }
14065
+ return read;
14059
14066
  }
14060
14067
  function customToolDescriptionAfterPush(entry, row, writtenConfig) {
14061
14068
  const written = row ? writtenConfig : entry.config;
@@ -14095,27 +14102,18 @@ function refineHubAsCodeCustomTools(config, ctx) {
14095
14102
  message: `custom tool "${printableName(tool?.name)}": ${issue.path.join(".")}: ${issue.message}`
14096
14103
  });
14097
14104
  }
14098
- const raw = tool?.config;
14099
- if (raw == null) continue;
14100
- const params = extractToolParameters(raw);
14101
- if (params === void 0) {
14102
- const looksLikeObject = raw !== null && typeof raw === "object" && !Array.isArray(raw) || typeof raw === "string" && (() => {
14103
- try {
14104
- const parsed = JSON.parse(raw);
14105
- return parsed !== null && typeof parsed === "object" && !Array.isArray(parsed);
14106
- } catch {
14107
- return false;
14108
- }
14109
- })();
14110
- if (!looksLikeObject) {
14111
- ctx.addIssue({
14112
- code: external_exports.ZodIssueCode.custom,
14113
- path: ["agents", a, "tools", "custom", c, "config"],
14114
- message: `custom tool "${printableName(tool?.name)}": config must be an object`
14115
- });
14116
- }
14105
+ if (tool?.config == null) continue;
14106
+ const raw = customToolConfigObject(tool.config);
14107
+ if (!isPlainObject(raw)) {
14108
+ ctx.addIssue({
14109
+ code: external_exports.ZodIssueCode.custom,
14110
+ path: ["agents", a, "tools", "custom", c, "config"],
14111
+ message: `custom tool "${printableName(tool?.name)}": config must be an object`
14112
+ });
14117
14113
  continue;
14118
14114
  }
14115
+ const params = extractToolParameters(raw);
14116
+ if (params === void 0) continue;
14119
14117
  for (const err of toolParametersViolations(params)) {
14120
14118
  const tail = err.path.split(".").filter(Boolean);
14121
14119
  ctx.addIssue({
@@ -14717,13 +14715,7 @@ function refusedStringConfigNesting(config, ctx) {
14717
14715
  const custom2 = isPlainObject(agent) && isPlainObject(agent.tools) ? agent.tools.custom : void 0;
14718
14716
  return Array.isArray(custom2) && custom2.some((tool, t) => {
14719
14717
  if (!isPlainObject(tool) || typeof tool.config !== "string") return false;
14720
- let parsed;
14721
- try {
14722
- parsed = JSON.parse(tool.config);
14723
- } catch {
14724
- return false;
14725
- }
14726
- return refusedNesting(parsed, ["agents", a, "tools", "custom", t, "config"], ctx);
14718
+ return refusedNesting(customToolConfigObject(tool.config), ["agents", a, "tools", "custom", t, "config"], ctx);
14727
14719
  });
14728
14720
  });
14729
14721
  }
@@ -14790,11 +14782,11 @@ function skillSectionsAsResources(scope) {
14790
14782
  return out;
14791
14783
  };
14792
14784
  }
14793
- 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;
14794
- var init_chunk_4WB5E53T = __esm({
14795
- "../../packages/core/dist/chunk-4WB5E53T.js"() {
14785
+ 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_CUSTOM_TOOL_CONFIG_TEXT_LAYERS, 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;
14786
+ var init_chunk_VMPEOBYP = __esm({
14787
+ "../../packages/core/dist/chunk-VMPEOBYP.js"() {
14796
14788
  "use strict";
14797
- init_chunk_NEIVT3KL();
14789
+ init_chunk_YWCYUPJV();
14798
14790
  init_chunk_HRKVCI5A();
14799
14791
  init_chunk_CZEJR5UE();
14800
14792
  init_chunk_LBDH7LCG();
@@ -14802,13 +14794,13 @@ var init_chunk_4WB5E53T = __esm({
14802
14794
  init_chunk_7NQZRSSJ();
14803
14795
  init_chunk_X5PZZVTS();
14804
14796
  init_chunk_K5UAZWFF();
14805
- init_chunk_OXVMTY3G();
14797
+ init_chunk_OAWG66J3();
14806
14798
  init_chunk_S4VDZ7PZ();
14807
14799
  init_chunk_C2UEA2KW();
14808
14800
  init_chunk_FBV7NLKO();
14809
14801
  init_chunk_WEXVYJ5H();
14810
14802
  init_chunk_HZ6CADSY();
14811
- init_chunk_J75LDBC2();
14803
+ init_chunk_BLPYDZAO();
14812
14804
  init_chunk_YROEDMVZ();
14813
14805
  init_zod();
14814
14806
  MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
@@ -14829,6 +14821,7 @@ var init_chunk_4WB5E53T = __esm({
14829
14821
  }),
14830
14822
  html: external_exports.string().max(PAGE_HTML_MAX_BYTES, `a page's HTML is at most ${PAGE_HTML_MAX_BYTES / 1024} KiB`)
14831
14823
  }).strict()).max(PAGES_PER_HUB_MAX, `a hub holds at most ${PAGES_PER_HUB_MAX} pages`);
14824
+ MAX_CUSTOM_TOOL_CONFIG_TEXT_LAYERS = 16;
14832
14825
  MAX_CALL_OPENING_CARRIERS = 30;
14833
14826
  MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES = 8 * 1024 * 1024;
14834
14827
  HUB_AS_CODE_AGENT_TOOL_KEYS = [
@@ -15175,10 +15168,10 @@ var init_chunk_BFG4ZWR4 = __esm({
15175
15168
  }
15176
15169
  });
15177
15170
 
15178
- // ../../packages/core/dist/chunk-SAMZLA2A.js
15171
+ // ../../packages/core/dist/chunk-4J5DPB3X.js
15179
15172
  var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
15180
- var init_chunk_SAMZLA2A = __esm({
15181
- "../../packages/core/dist/chunk-SAMZLA2A.js"() {
15173
+ var init_chunk_4J5DPB3X = __esm({
15174
+ "../../packages/core/dist/chunk-4J5DPB3X.js"() {
15182
15175
  "use strict";
15183
15176
  init_zod();
15184
15177
  dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
@@ -15289,7 +15282,7 @@ var init_chunk_OMPT4ZHR = __esm({
15289
15282
  }
15290
15283
  });
15291
15284
 
15292
- // ../../packages/core/dist/chunk-3QME565M.js
15285
+ // ../../packages/core/dist/chunk-2IAHI2UA.js
15293
15286
  function refineScopedTarget(data, ctx) {
15294
15287
  if (data.scope === "org") {
15295
15288
  if (!data.org_id) {
@@ -15315,12 +15308,12 @@ function refineScopedTarget(data, ctx) {
15315
15308
  }
15316
15309
  }
15317
15310
  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;
15318
- var init_chunk_3QME565M = __esm({
15319
- "../../packages/core/dist/chunk-3QME565M.js"() {
15311
+ var init_chunk_2IAHI2UA = __esm({
15312
+ "../../packages/core/dist/chunk-2IAHI2UA.js"() {
15320
15313
  "use strict";
15321
15314
  init_chunk_FECLIZTY();
15322
15315
  init_chunk_BFG4ZWR4();
15323
- init_chunk_SAMZLA2A();
15316
+ init_chunk_4J5DPB3X();
15324
15317
  init_chunk_7NQZRSSJ();
15325
15318
  init_chunk_OMPT4ZHR();
15326
15319
  init_chunk_HZ6CADSY();
@@ -15915,16 +15908,16 @@ var init_chunk_R6Y377AW = __esm({
15915
15908
  }
15916
15909
  });
15917
15910
 
15918
- // ../../packages/core/dist/chunk-AHOE4ZHH.js
15911
+ // ../../packages/core/dist/chunk-3QU3I3BQ.js
15919
15912
  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;
15920
- var init_chunk_AHOE4ZHH = __esm({
15921
- "../../packages/core/dist/chunk-AHOE4ZHH.js"() {
15913
+ var init_chunk_3QU3I3BQ = __esm({
15914
+ "../../packages/core/dist/chunk-3QU3I3BQ.js"() {
15922
15915
  "use strict";
15923
15916
  init_chunk_R6Y377AW();
15924
15917
  init_chunk_UAOHHCW5();
15925
- init_chunk_OXVMTY3G();
15926
- init_chunk_5XEJSR22();
15927
- init_chunk_J75LDBC2();
15918
+ init_chunk_OAWG66J3();
15919
+ init_chunk_5FO3GNKP();
15920
+ init_chunk_BLPYDZAO();
15928
15921
  init_chunk_YROEDMVZ();
15929
15922
  init_zod();
15930
15923
  AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
@@ -16243,10 +16236,10 @@ var init_chunk_WFQDSQJK = __esm({
16243
16236
  }
16244
16237
  });
16245
16238
 
16246
- // ../../packages/core/dist/chunk-EV3MAOEX.js
16239
+ // ../../packages/core/dist/chunk-M53YHYIG.js
16247
16240
  var APP_ERROR_BRAND, AppError, PAGE_CUSTOMER_UNAVAILABLE_CODE, LLM_RATE_LIMIT_BRAND, LlmRateLimitError, LLM_PROVIDER_HTTP_BRAND, LlmProviderHttpError, LLM_PROVIDER_CONTENT_BRAND, LlmProviderContentError, LLM_PROVIDER_TIMEOUT_BRAND, LlmProviderTimeoutError, ExternalServiceError, CHANNEL_PROVIDER_HTTP_BRAND, ChannelProviderHttpError, MEDIA_PROVIDER_HTTP_BRAND, MediaProviderHttpError;
16248
- var init_chunk_EV3MAOEX = __esm({
16249
- "../../packages/core/dist/chunk-EV3MAOEX.js"() {
16241
+ var init_chunk_M53YHYIG = __esm({
16242
+ "../../packages/core/dist/chunk-M53YHYIG.js"() {
16250
16243
  "use strict";
16251
16244
  init_chunk_WFQDSQJK();
16252
16245
  APP_ERROR_BRAND = /* @__PURE__ */ Symbol.for("wayai.AppError");
@@ -16374,7 +16367,7 @@ var init_contracts = __esm({
16374
16367
  init_chunk_5YNUTCJ2();
16375
16368
  init_chunk_ZC6YGHNX();
16376
16369
  init_chunk_5DGHIY7L();
16377
- init_chunk_S447DV3E();
16370
+ init_chunk_YFHL2BKN();
16378
16371
  init_chunk_IPDOHAZ5();
16379
16372
  init_chunk_GPM7PE44();
16380
16373
  init_chunk_NZ6RQW6R();
@@ -16390,7 +16383,7 @@ var init_contracts = __esm({
16390
16383
  init_chunk_OPETF4GS();
16391
16384
  init_chunk_SY6PLCPK();
16392
16385
  init_chunk_KMAC3O3L();
16393
- init_chunk_CQTU636K();
16386
+ init_chunk_HL6QCLLK();
16394
16387
  init_chunk_KSTYTQ7I();
16395
16388
  init_chunk_LKBSHANA();
16396
16389
  init_chunk_Y6NC5CH5();
@@ -16408,8 +16401,8 @@ var init_contracts = __esm({
16408
16401
  init_chunk_E4DIIOOE();
16409
16402
  init_chunk_7CYHPF35();
16410
16403
  init_chunk_BPCNB5RT();
16411
- init_chunk_4WB5E53T();
16412
- init_chunk_NEIVT3KL();
16404
+ init_chunk_VMPEOBYP();
16405
+ init_chunk_YWCYUPJV();
16413
16406
  init_chunk_HRKVCI5A();
16414
16407
  init_chunk_CZEJR5UE();
16415
16408
  init_chunk_4D6K4P4K();
@@ -16418,10 +16411,10 @@ var init_contracts = __esm({
16418
16411
  init_chunk_4LXDRTO4();
16419
16412
  init_chunk_JDJ4EUOL();
16420
16413
  init_chunk_NVKU5PPQ();
16421
- init_chunk_3QME565M();
16414
+ init_chunk_2IAHI2UA();
16422
16415
  init_chunk_FECLIZTY();
16423
16416
  init_chunk_BFG4ZWR4();
16424
- init_chunk_SAMZLA2A();
16417
+ init_chunk_4J5DPB3X();
16425
16418
  init_chunk_7NQZRSSJ();
16426
16419
  init_chunk_D3EP4TDU();
16427
16420
  init_chunk_X5PZZVTS();
@@ -16429,16 +16422,16 @@ var init_contracts = __esm({
16429
16422
  init_chunk_2PZIF56U();
16430
16423
  init_chunk_UEJOG2Q7();
16431
16424
  init_chunk_JO53JB35();
16432
- init_chunk_AHOE4ZHH();
16425
+ init_chunk_3QU3I3BQ();
16433
16426
  init_chunk_R6Y377AW();
16434
16427
  init_chunk_UAOHHCW5();
16435
- init_chunk_OXVMTY3G();
16428
+ init_chunk_OAWG66J3();
16436
16429
  init_chunk_IG6QBZMA();
16437
16430
  init_chunk_OMPT4ZHR();
16438
- init_chunk_3VCB2RTC();
16431
+ init_chunk_JSLX2PRT();
16439
16432
  init_chunk_SOJMWM63();
16440
16433
  init_chunk_WTOA3ANF();
16441
- init_chunk_5XEJSR22();
16434
+ init_chunk_5FO3GNKP();
16442
16435
  init_chunk_IBL7FANV();
16443
16436
  init_chunk_S4VDZ7PZ();
16444
16437
  init_chunk_KB5RK3RP();
@@ -16455,14 +16448,14 @@ var init_contracts = __esm({
16455
16448
  init_chunk_WEXVYJ5H();
16456
16449
  init_chunk_6TSQ5HXC();
16457
16450
  init_chunk_HZ6CADSY();
16458
- init_chunk_J75LDBC2();
16459
- init_chunk_VSSZVDBU();
16460
- init_chunk_GYSQV2DS();
16451
+ init_chunk_BLPYDZAO();
16452
+ init_chunk_DOGCOC6X();
16453
+ init_chunk_JHUTFQDO();
16461
16454
  init_chunk_I42QJGJF();
16462
16455
  init_chunk_MIWZOSPI();
16463
16456
  init_chunk_YROEDMVZ();
16464
16457
  init_chunk_L5F7ZOUJ();
16465
- init_chunk_EV3MAOEX();
16458
+ init_chunk_M53YHYIG();
16466
16459
  init_chunk_WFQDSQJK();
16467
16460
  }
16468
16461
  });
@@ -16537,10 +16530,10 @@ var init_chunk_RPGBR5IN = __esm({
16537
16530
  }
16538
16531
  });
16539
16532
 
16540
- // ../../packages/core/dist/chunk-MYPAFWEY.js
16533
+ // ../../packages/core/dist/chunk-FZ7BJJW7.js
16541
16534
  var ENVELOPE_PREFIX, CREDENTIAL_REFERENCE_PREFIX;
16542
- var init_chunk_MYPAFWEY = __esm({
16543
- "../../packages/core/dist/chunk-MYPAFWEY.js"() {
16535
+ var init_chunk_FZ7BJJW7 = __esm({
16536
+ "../../packages/core/dist/chunk-FZ7BJJW7.js"() {
16544
16537
  "use strict";
16545
16538
  ENVELOPE_PREFIX = "enc:v1:";
16546
16539
  CREDENTIAL_REFERENCE_PREFIX = `${ENVELOPE_PREFIX}vault:`;
@@ -16599,10 +16592,10 @@ var UUID_RE2, WAYAI_WORKSPACE_LAYOUT;
16599
16592
  var init_dist = __esm({
16600
16593
  "../../packages/core/dist/index.js"() {
16601
16594
  "use strict";
16602
- init_chunk_3VCB2RTC();
16595
+ init_chunk_JSLX2PRT();
16603
16596
  init_chunk_SOJMWM63();
16604
16597
  init_chunk_WTOA3ANF();
16605
- init_chunk_5XEJSR22();
16598
+ init_chunk_5FO3GNKP();
16606
16599
  init_chunk_IBL7FANV();
16607
16600
  init_chunk_S4VDZ7PZ();
16608
16601
  init_chunk_KB5RK3RP();
@@ -16617,15 +16610,15 @@ var init_dist = __esm({
16617
16610
  init_chunk_WEXVYJ5H();
16618
16611
  init_chunk_6TSQ5HXC();
16619
16612
  init_chunk_HZ6CADSY();
16620
- init_chunk_MYPAFWEY();
16621
- init_chunk_J75LDBC2();
16622
- init_chunk_VSSZVDBU();
16623
- init_chunk_GYSQV2DS();
16613
+ init_chunk_FZ7BJJW7();
16614
+ init_chunk_BLPYDZAO();
16615
+ init_chunk_DOGCOC6X();
16616
+ init_chunk_JHUTFQDO();
16624
16617
  init_chunk_I42QJGJF();
16625
16618
  init_chunk_MIWZOSPI();
16626
16619
  init_chunk_YROEDMVZ();
16627
16620
  init_chunk_L5F7ZOUJ();
16628
- init_chunk_EV3MAOEX();
16621
+ init_chunk_M53YHYIG();
16629
16622
  init_chunk_WFQDSQJK();
16630
16623
  UUID_RE2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
16631
16624
  WAYAI_WORKSPACE_LAYOUT = {
@@ -21678,7 +21671,7 @@ var init_pages = __esm({
21678
21671
  init_chunk_FBV7NLKO();
21679
21672
  init_chunk_WEXVYJ5H();
21680
21673
  init_chunk_HZ6CADSY();
21681
- init_chunk_EV3MAOEX();
21674
+ init_chunk_M53YHYIG();
21682
21675
  init_chunk_WFQDSQJK();
21683
21676
  }
21684
21677
  });
@@ -22772,8 +22765,8 @@ var init_hub_materializer = __esm({
22772
22765
  var init_ci = __esm({
22773
22766
  "../../packages/core/dist/contracts/ci.js"() {
22774
22767
  "use strict";
22775
- init_chunk_4WB5E53T();
22776
- init_chunk_NEIVT3KL();
22768
+ init_chunk_VMPEOBYP();
22769
+ init_chunk_YWCYUPJV();
22777
22770
  init_chunk_HRKVCI5A();
22778
22771
  init_chunk_CZEJR5UE();
22779
22772
  init_chunk_4D6K4P4K();
@@ -22784,7 +22777,7 @@ var init_ci = __esm({
22784
22777
  init_chunk_D3EP4TDU();
22785
22778
  init_chunk_X5PZZVTS();
22786
22779
  init_chunk_K5UAZWFF();
22787
- init_chunk_OXVMTY3G();
22780
+ init_chunk_OAWG66J3();
22788
22781
  init_chunk_WTOA3ANF();
22789
22782
  init_chunk_IBL7FANV();
22790
22783
  init_chunk_S4VDZ7PZ();
@@ -22796,14 +22789,14 @@ var init_ci = __esm({
22796
22789
  init_chunk_WEXVYJ5H();
22797
22790
  init_chunk_6TSQ5HXC();
22798
22791
  init_chunk_HZ6CADSY();
22799
- init_chunk_J75LDBC2();
22800
- init_chunk_VSSZVDBU();
22801
- init_chunk_GYSQV2DS();
22792
+ init_chunk_BLPYDZAO();
22793
+ init_chunk_DOGCOC6X();
22794
+ init_chunk_JHUTFQDO();
22802
22795
  init_chunk_I42QJGJF();
22803
22796
  init_chunk_MIWZOSPI();
22804
22797
  init_chunk_YROEDMVZ();
22805
22798
  init_chunk_L5F7ZOUJ();
22806
- init_chunk_EV3MAOEX();
22799
+ init_chunk_M53YHYIG();
22807
22800
  init_chunk_WFQDSQJK();
22808
22801
  }
22809
22802
  });
@@ -39479,7 +39472,7 @@ Usage:
39479
39472
  wayai admin do tables <type> <id>
39480
39473
  wayai admin do read <type> <id> <table> [--limit N] [--id X] [--json]
39481
39474
  wayai admin do counts <hub|org> <id> [--json] Numbers, no text: a hub's toolset connections, knowledge placeholders per stored
39482
- text, summary schemas' invariant verdicts, secret columns' shapes and
39475
+ text, summary and kanban context schemas' verdicts, secret columns' shapes and
39483
39476
  (production) publish state; an org's
39484
39477
  skills, hub links, moved-knowledge registry and credentials' shapes
39485
39478