@wayai/cli 0.3.270 → 0.3.272

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
@@ -4888,37 +4888,6 @@ var init_fs_safety = __esm({
4888
4888
  }
4889
4889
  });
4890
4890
 
4891
- // ../../packages/core/dist/chunk-NKLVUTFO.js
4892
- var BASE_CREDENTIAL_MANAGED_BY, BASE_CREDENTIAL_NAME_MAX, BASE_CREDENTIAL_NAME_PATTERN, BASE_CREDENTIAL_NAME_CHARSET, baseCredentialNameSchema, createBaseCredentialLinkBody, baseCredentialLinkParams, baseCredentialLinkQuery;
4893
- var init_chunk_NKLVUTFO = __esm({
4894
- "../../packages/core/dist/chunk-NKLVUTFO.js"() {
4895
- "use strict";
4896
- init_zod();
4897
- BASE_CREDENTIAL_MANAGED_BY = {
4898
- DIRECT: "direct",
4899
- ORG_LINK: "org-link"
4900
- };
4901
- BASE_CREDENTIAL_NAME_MAX = 100;
4902
- BASE_CREDENTIAL_NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._:@+~=-]*$/;
4903
- BASE_CREDENTIAL_NAME_CHARSET = "letters, digits and '. _ : @ + ~ = -', starting with a letter or digit";
4904
- baseCredentialNameSchema = external_exports.string().min(1).max(BASE_CREDENTIAL_NAME_MAX).regex(BASE_CREDENTIAL_NAME_PATTERN, `name must use ${BASE_CREDENTIAL_NAME_CHARSET}`);
4905
- createBaseCredentialLinkBody = external_exports.object({
4906
- organization_id: external_exports.string().uuid(),
4907
- base_id: external_exports.string().min(1),
4908
- /** Defaults to a slug derived from the credential's display name. */
4909
- name: baseCredentialNameSchema.optional()
4910
- });
4911
- baseCredentialLinkParams = external_exports.object({
4912
- id: external_exports.string().uuid(),
4913
- base_credential_id: external_exports.string().min(1)
4914
- });
4915
- baseCredentialLinkQuery = external_exports.object({
4916
- organization_id: external_exports.string().uuid(),
4917
- base_id: external_exports.string().min(1)
4918
- });
4919
- }
4920
- });
4921
-
4922
4891
  // ../../packages/core/dist/chunk-HZ6CADSY.js
4923
4892
  function optionalTrimmedText(max) {
4924
4893
  return external_exports.string().trim().max(max).optional().transform((value) => value ? value : void 0);
@@ -5447,19 +5416,6 @@ var init_chunk_Q7KIQHAZ = __esm({
5447
5416
  }
5448
5417
  });
5449
5418
 
5450
- // ../../packages/core/dist/chunk-HIGKBEPF.js
5451
- var accessExplainQuery;
5452
- var init_chunk_HIGKBEPF = __esm({
5453
- "../../packages/core/dist/chunk-HIGKBEPF.js"() {
5454
- "use strict";
5455
- init_chunk_HZ6CADSY();
5456
- init_zod();
5457
- accessExplainQuery = external_exports.object({
5458
- user_id: external_exports.string().regex(USER_ID_REGEX).optional()
5459
- });
5460
- }
5461
- });
5462
-
5463
5419
  // ../../packages/core/dist/chunk-HA7CRZMX.js
5464
5420
  var connectionIdParam, connectorIdParam, listConnectionsQuery, deleteConnectionQuery, addConnectionBody, editConnectionBody, PRODUCTION_DIRECT_FIELDS, BESIDE_LINK_FIELDS, setProductionCredentialBody, registerWhatsappQuery, registerWhatsappBody, retryProvisioningQuery, resendDomainStatusQuery;
5465
5421
  var init_chunk_HA7CRZMX = __esm({
@@ -5611,6 +5567,37 @@ var init_chunk_IPXBFWUU = __esm({
5611
5567
  }
5612
5568
  });
5613
5569
 
5570
+ // ../../packages/core/dist/chunk-NKLVUTFO.js
5571
+ var BASE_CREDENTIAL_MANAGED_BY, BASE_CREDENTIAL_NAME_MAX, BASE_CREDENTIAL_NAME_PATTERN, BASE_CREDENTIAL_NAME_CHARSET, baseCredentialNameSchema, createBaseCredentialLinkBody, baseCredentialLinkParams, baseCredentialLinkQuery;
5572
+ var init_chunk_NKLVUTFO = __esm({
5573
+ "../../packages/core/dist/chunk-NKLVUTFO.js"() {
5574
+ "use strict";
5575
+ init_zod();
5576
+ BASE_CREDENTIAL_MANAGED_BY = {
5577
+ DIRECT: "direct",
5578
+ ORG_LINK: "org-link"
5579
+ };
5580
+ BASE_CREDENTIAL_NAME_MAX = 100;
5581
+ BASE_CREDENTIAL_NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._:@+~=-]*$/;
5582
+ BASE_CREDENTIAL_NAME_CHARSET = "letters, digits and '. _ : @ + ~ = -', starting with a letter or digit";
5583
+ baseCredentialNameSchema = external_exports.string().min(1).max(BASE_CREDENTIAL_NAME_MAX).regex(BASE_CREDENTIAL_NAME_PATTERN, `name must use ${BASE_CREDENTIAL_NAME_CHARSET}`);
5584
+ createBaseCredentialLinkBody = external_exports.object({
5585
+ organization_id: external_exports.string().uuid(),
5586
+ base_id: external_exports.string().min(1),
5587
+ /** Defaults to a slug derived from the credential's display name. */
5588
+ name: baseCredentialNameSchema.optional()
5589
+ });
5590
+ baseCredentialLinkParams = external_exports.object({
5591
+ id: external_exports.string().uuid(),
5592
+ base_credential_id: external_exports.string().min(1)
5593
+ });
5594
+ baseCredentialLinkQuery = external_exports.object({
5595
+ organization_id: external_exports.string().uuid(),
5596
+ base_id: external_exports.string().min(1)
5597
+ });
5598
+ }
5599
+ });
5600
+
5614
5601
  // ../../packages/core/dist/chunk-4D6K4P4K.js
5615
5602
  var REKOR_ACTOR_TYPE_HEADER, REKOR_ACTOR_ID_HEADER, REKOR_ACTOR_LABEL_HEADER, REKOR_ACTOR_ORG_HEADER, REKOR_ACTOR_ADMIN_HEADER, REKOR_CLIENT_HEADER, REKOR_TOOL_ID_HEADER, REKOR_CLIENTS, rekorClientSchema, MAX_REKOR_TOOL_ID_LENGTH, rekorToolIdSchema, REKOR_V1_PREFIX, DATA_PROXY_ORG_QUERY_PARAM, MAX_PROVISIONING_BODY_BYTES, dataProxyQuery, rekorAttestation, REQUIRED_REKOR_ATTESTATION_HEADERS, REKOR_BOUND_BASE_HEADER, REKOR_BOUND_TOOLSET_HEADER, REKOR_BOUND_TOKEN_HEADER, REKOR_BOUND_ACCESS_HEADER, REKOR_BOUND_PAGE_HEADER, REKOR_BOUND_PERSON_HEADER, REKOR_PERSON_AUDIENCE_STAFF, REKOR_PERSON_AUDIENCE_CUSTOMER, REKOR_PERSON_ALL, DATA_BASE_GENERATION_HEADER, REKOR_MAX_ACTOR_ID_LENGTH, REKOR_MAX_ACTOR_LABEL_LENGTH, REKOR_MAX_ACCESS_DIMENSIONS, REKOR_MAX_ACCESS_VALUES, REKOR_MAX_ACCESS_ID_LENGTH, REKOR_MAX_ACCESS_HEADER_LENGTH, REKOR_MAX_PERSON_PARTIES, REKOR_MAX_PERSON_IDS, REKOR_MAX_PERSON_ID_LENGTH, REKOR_MAX_PERSON_HEADER_LENGTH;
5616
5603
  var init_chunk_4D6K4P4K = __esm({
@@ -6163,35 +6150,16 @@ var init_chunk_ZC6YGHNX = __esm({
6163
6150
  }
6164
6151
  });
6165
6152
 
6166
- // ../../packages/core/dist/chunk-ACKF2MVU.js
6167
- var MAX_NAME_LENGTH, MAX_VALUE_LENGTH, MAX_TAGS, MAX_TAG_LENGTH, MAX_SCOPE_HUBS, MAX_SCOPE_TAGS, vaultSecretScopeSchema, vaultCreateBody, vaultUpdateBody;
6168
- var init_chunk_ACKF2MVU = __esm({
6169
- "../../packages/core/dist/chunk-ACKF2MVU.js"() {
6153
+ // ../../packages/core/dist/chunk-HIGKBEPF.js
6154
+ var accessExplainQuery;
6155
+ var init_chunk_HIGKBEPF = __esm({
6156
+ "../../packages/core/dist/chunk-HIGKBEPF.js"() {
6170
6157
  "use strict";
6171
6158
  init_chunk_HZ6CADSY();
6172
6159
  init_zod();
6173
- MAX_NAME_LENGTH = 100;
6174
- MAX_VALUE_LENGTH = 32 * 1024;
6175
- MAX_TAGS = 20;
6176
- MAX_TAG_LENGTH = 50;
6177
- MAX_SCOPE_HUBS = 100;
6178
- MAX_SCOPE_TAGS = 50;
6179
- vaultSecretScopeSchema = external_exports.object({
6180
- hubs: external_exports.array(external_exports.string().min(1)).max(MAX_SCOPE_HUBS).optional(),
6181
- tags: external_exports.array(external_exports.string().min(1).max(MAX_TAG_LENGTH)).max(MAX_SCOPE_TAGS).optional()
6182
- }).strict();
6183
- vaultCreateBody = external_exports.object({
6184
- name: external_exports.string().trim().min(1, "name is required").max(MAX_NAME_LENGTH, `name must be ${MAX_NAME_LENGTH} characters or fewer`),
6185
- value: external_exports.string().min(1, "value is required").max(MAX_VALUE_LENGTH, `value must be ${MAX_VALUE_LENGTH} characters or fewer`),
6186
- tags: external_exports.array(external_exports.string().min(1).max(MAX_TAG_LENGTH, `Tag must be ${MAX_TAG_LENGTH} characters or fewer`)).max(MAX_TAGS, `Maximum ${MAX_TAGS} tags allowed`).optional().default([]),
6187
- scope: vaultSecretScopeSchema.optional().default({})
6188
- }).strict();
6189
- vaultUpdateBody = external_exports.object({
6190
- name: external_exports.string().trim().min(1).max(MAX_NAME_LENGTH).optional(),
6191
- value: external_exports.string().min(1).max(MAX_VALUE_LENGTH).optional(),
6192
- tags: external_exports.array(external_exports.string().min(1).max(MAX_TAG_LENGTH)).max(MAX_TAGS).optional(),
6193
- scope: vaultSecretScopeSchema.optional()
6194
- }).strict();
6160
+ accessExplainQuery = external_exports.object({
6161
+ user_id: external_exports.string().regex(USER_ID_REGEX).optional()
6162
+ });
6195
6163
  }
6196
6164
  });
6197
6165
 
@@ -7001,14 +6969,14 @@ var init_chunk_5VL6LBFD = __esm({
7001
6969
  });
7002
6970
 
7003
6971
  // ../../packages/core/dist/chunk-VEERWOZ6.js
7004
- var MAX_NAME_LENGTH2, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam;
6972
+ var MAX_NAME_LENGTH, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam;
7005
6973
  var init_chunk_VEERWOZ6 = __esm({
7006
6974
  "../../packages/core/dist/chunk-VEERWOZ6.js"() {
7007
6975
  "use strict";
7008
6976
  init_chunk_5VL6LBFD();
7009
6977
  init_chunk_HZ6CADSY();
7010
6978
  init_zod();
7011
- MAX_NAME_LENGTH2 = 100;
6979
+ MAX_NAME_LENGTH = 100;
7012
6980
  MAX_HUBS_PER_GRANT = 50;
7013
6981
  MAX_HUB_TAGS_PER_GRANT = 20;
7014
6982
  MAX_GRANTS = 20;
@@ -7030,7 +6998,7 @@ var init_chunk_VEERWOZ6 = __esm({
7030
6998
  permissions: external_exports.array(permissionEnum).min(1, "Each grant must have permissions as a non-empty array")
7031
6999
  }).strict();
7032
7000
  createTokenBody = external_exports.object({
7033
- name: external_exports.string().trim().min(1, "name is required").max(MAX_NAME_LENGTH2, `name must be ${MAX_NAME_LENGTH2} characters or fewer`),
7001
+ name: external_exports.string().trim().min(1, "name is required").max(MAX_NAME_LENGTH, `name must be ${MAX_NAME_LENGTH} characters or fewer`),
7034
7002
  grants: external_exports.array(grantSchema).min(1, "grants must be a non-empty array").max(MAX_GRANTS),
7035
7003
  expires_at: external_exports.string().datetime({ message: "expires_at must be a valid ISO 8601 date" }).refine(
7036
7004
  (s) => new Date(s).getTime() > Date.now(),
@@ -9407,7 +9375,7 @@ var init_chunk_EVXGKOJV = __esm({
9407
9375
  }
9408
9376
  });
9409
9377
 
9410
- // ../../packages/core/dist/chunk-ECRNR7ET.js
9378
+ // ../../packages/core/dist/chunk-I42QJGJF.js
9411
9379
  function spokenLineField(label2, description2) {
9412
9380
  return { type: "text", label: label2, maxLength: SPOKEN_LINE_MAX_CHARS, default: "", description: description2 };
9413
9381
  }
@@ -9417,8 +9385,8 @@ function byLowercaseName(a, b) {
9417
9385
  return x < y ? -1 : x > y ? 1 : 0;
9418
9386
  }
9419
9387
  var CALLER_LANGUAGE, GIT_CHECKOUT_MAX_LENGTH, TTS_VOICE_REPLY_ENABLED_FIELD, decisionsImageInputField, COPILOT_TRIGGER_FIELD, SANDBOX_AGENT_FIELDS, AUDIO_LANGUAGE_OPTIONS, whatsapp, instagram, resend, telegram, API_CHANNEL_DELIVERY_EVENTS, apiChannel, OPENAI_REASONING_MODELS, openai, anthropic, googleAiStudio, openRouter, xai, typesafe, groqStt, openaiStt, elevenLabsStt, openaiTts, groqTts, elevenLabsTts, GEMINI_TTS_VOICES, googleTts, wayai, externalResources, restApiTool, mcpServer, REKOR_TOOLSET_SERVICE_NAME, rekorToolset, CLAUDE_HARNESS_MODELS, CLAUDE_HARNESS_MODEL_OPTIONS, HARNESS_EGRESS_FIELDS, claudeManagedAgents, SPOKEN_LINE_MAX_CHARS, gptLive, CONNECTORS;
9420
- var init_chunk_ECRNR7ET = __esm({
9421
- "../../packages/core/dist/chunk-ECRNR7ET.js"() {
9388
+ var init_chunk_I42QJGJF = __esm({
9389
+ "../../packages/core/dist/chunk-I42QJGJF.js"() {
9422
9390
  "use strict";
9423
9391
  CALLER_LANGUAGE = "caller";
9424
9392
  GIT_CHECKOUT_MAX_LENGTH = 255;
@@ -10188,20 +10156,20 @@ var init_chunk_ECRNR7ET = __esm({
10188
10156
  base_url: { type: "text", label: "Base URL", placeholder: "https://api.example.com", description: "Base URL for the API connection (used as prefix for all tool paths)" },
10189
10157
  api_key: { type: "password", label: "API Key", placeholder: "Enter your API key", required: true, maskInEdit: true, useExistingPlaceholder: "__USE_EXISTING_API_KEY__" },
10190
10158
  access_token: { type: "password", label: "Access Token / Service Key (Optional)", placeholder: "Enter if your API requires a second credential", description: "Optional: Some APIs require both an API key and an access token/service key", maskInEdit: true, useExistingPlaceholder: "__USE_EXISTING_ACCESS_TOKEN__" },
10191
- connection_headers: { type: "custom", component: "KeyValueGrid", label: "Connection Headers", description: "Headers to include in all requests for this connection" }
10159
+ connection_headers: { type: "custom", component: "KeyValueGrid", label: "Connection Headers", description: "Sent to the base URL's origin, else to a tool's fixed host" }
10192
10160
  },
10193
10161
  basic_auth: {
10194
10162
  connection_display_name: { type: "text", label: "Connection Name", placeholder: "Enter a name for this connection", description: "This name will be used to identify the connection in the system", required: true },
10195
10163
  base_url: { type: "text", label: "Base URL", placeholder: "https://api.example.com", description: "Base URL for the API connection (used as prefix for all tool paths)" },
10196
10164
  username: { type: "text", label: "Username", placeholder: "Enter username", required: true },
10197
10165
  password: { type: "password", label: "Password", placeholder: "Enter password", required: true, maskInEdit: true, useExistingPlaceholder: "__USE_EXISTING_PASSWORD__" },
10198
- connection_headers: { type: "custom", component: "KeyValueGrid", label: "Connection Headers", description: "Headers to include in all requests for this connection" }
10166
+ connection_headers: { type: "custom", component: "KeyValueGrid", label: "Connection Headers", description: "Sent to the base URL's origin, else to a tool's fixed host" }
10199
10167
  },
10200
10168
  bearer: {
10201
10169
  connection_display_name: { type: "text", label: "Connection Name", placeholder: "Enter a name for this connection", description: "This name will be used to identify the connection in the system", required: true },
10202
10170
  base_url: { type: "text", label: "Base URL", placeholder: "https://api.example.com", description: "Base URL for the API connection (used as prefix for all tool paths)" },
10203
10171
  access_token: { type: "password", label: "Bearer Token", placeholder: "Enter your bearer token", required: true, maskInEdit: true, useExistingPlaceholder: "__USE_EXISTING_ACCESS_TOKEN__" },
10204
- connection_headers: { type: "custom", component: "KeyValueGrid", label: "Connection Headers", description: "Headers to include in all requests for this connection", defaultValue: { Authorization: "Bearer {{access_token}}" } }
10172
+ connection_headers: { type: "custom", component: "KeyValueGrid", label: "Connection Headers", description: "Sent to the base URL's origin, else to a tool's fixed host", defaultValue: { Authorization: "Bearer {{access_token}}" } }
10205
10173
  }
10206
10174
  },
10207
10175
  token_refresh_config: { api_key: { strategy: "none" }, basic_auth: { strategy: "none" }, bearer: { strategy: "none" } },
@@ -10434,13 +10402,13 @@ var init_chunk_ECRNR7ET = __esm({
10434
10402
  }
10435
10403
  });
10436
10404
 
10437
- // ../../packages/core/dist/chunk-CBSOYDZQ.js
10405
+ // ../../packages/core/dist/chunk-ZUKC6A2W.js
10438
10406
  var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
10439
- var init_chunk_CBSOYDZQ = __esm({
10440
- "../../packages/core/dist/chunk-CBSOYDZQ.js"() {
10407
+ var init_chunk_ZUKC6A2W = __esm({
10408
+ "../../packages/core/dist/chunk-ZUKC6A2W.js"() {
10441
10409
  "use strict";
10442
10410
  init_chunk_EVXGKOJV();
10443
- init_chunk_ECRNR7ET();
10411
+ init_chunk_I42QJGJF();
10444
10412
  init_chunk_MIWZOSPI();
10445
10413
  COUNTER_KEYS = Object.keys({
10446
10414
  input_tokens: true,
@@ -10563,7 +10531,7 @@ var init_chunk_L5F7ZOUJ = __esm({
10563
10531
  }
10564
10532
  });
10565
10533
 
10566
- // ../../packages/core/dist/chunk-Q3WAAJBA.js
10534
+ // ../../packages/core/dist/chunk-G4HTKQCL.js
10567
10535
  function normalizeDecisionsModelId(modelId) {
10568
10536
  return modelId.trim().toLowerCase();
10569
10537
  }
@@ -10634,10 +10602,10 @@ function readAgentSettingsModel(agentSettings) {
10634
10602
  return typeof model === "string" ? model : null;
10635
10603
  }
10636
10604
  var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
10637
- var init_chunk_Q3WAAJBA = __esm({
10638
- "../../packages/core/dist/chunk-Q3WAAJBA.js"() {
10605
+ var init_chunk_G4HTKQCL = __esm({
10606
+ "../../packages/core/dist/chunk-G4HTKQCL.js"() {
10639
10607
  "use strict";
10640
- init_chunk_CBSOYDZQ();
10608
+ init_chunk_ZUKC6A2W();
10641
10609
  init_chunk_L5F7ZOUJ();
10642
10610
  DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
10643
10611
  DECISION_CAPABLE_AGENT_ROLES = [
@@ -10648,7 +10616,7 @@ var init_chunk_Q3WAAJBA = __esm({
10648
10616
  }
10649
10617
  });
10650
10618
 
10651
- // ../../packages/core/dist/chunk-5FTGVRDF.js
10619
+ // ../../packages/core/dist/chunk-MBXNS7SI.js
10652
10620
  function resolveMonitorTrigger(monitorConfig) {
10653
10621
  if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
10654
10622
  const raw = monitorConfig.trigger;
@@ -10954,14 +10922,14 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
10954
10922
  if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
10955
10923
  }
10956
10924
  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;
10957
- var init_chunk_5FTGVRDF = __esm({
10958
- "../../packages/core/dist/chunk-5FTGVRDF.js"() {
10925
+ var init_chunk_MBXNS7SI = __esm({
10926
+ "../../packages/core/dist/chunk-MBXNS7SI.js"() {
10959
10927
  "use strict";
10960
10928
  init_chunk_IBL7FANV();
10961
10929
  init_chunk_KB5RK3RP();
10962
10930
  init_chunk_C2UEA2KW();
10963
10931
  init_chunk_HZ6CADSY();
10964
- init_chunk_Q3WAAJBA();
10932
+ init_chunk_G4HTKQCL();
10965
10933
  init_chunk_EVXGKOJV();
10966
10934
  init_chunk_YROEDMVZ();
10967
10935
  init_chunk_L5F7ZOUJ();
@@ -11180,12 +11148,12 @@ var init_chunk_5FTGVRDF = __esm({
11180
11148
  }
11181
11149
  });
11182
11150
 
11183
- // ../../packages/core/dist/chunk-OJB6LIVM.js
11151
+ // ../../packages/core/dist/chunk-YGDHKCKK.js
11184
11152
  var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
11185
- var init_chunk_OJB6LIVM = __esm({
11186
- "../../packages/core/dist/chunk-OJB6LIVM.js"() {
11153
+ var init_chunk_YGDHKCKK = __esm({
11154
+ "../../packages/core/dist/chunk-YGDHKCKK.js"() {
11187
11155
  "use strict";
11188
- init_chunk_5FTGVRDF();
11156
+ init_chunk_MBXNS7SI();
11189
11157
  init_chunk_HZ6CADSY();
11190
11158
  init_chunk_YROEDMVZ();
11191
11159
  init_zod();
@@ -11714,14 +11682,14 @@ var init_chunk_E4DIIOOE = __esm({
11714
11682
  }
11715
11683
  });
11716
11684
 
11717
- // ../../packages/core/dist/chunk-UI6YFSZL.js
11685
+ // ../../packages/core/dist/chunk-Y6NC5CH5.js
11718
11686
  var evalCallInstant, EVAL_CALL_MIN_SECONDS, EVAL_CALL_MAX_SECONDS, EVAL_CALL_SPOKEN_LINE_MAX_CHARS, hubScoped2, createEvalCallBody, createEvalCallResponse, evalCallConversationQuery, evalCallRecordQuery, evalCallSpeaker, evalCallUtterance, evalCallTurn, evalCallRecording, evalCallRecordResponse, evalCallFinishResponse;
11719
- var init_chunk_UI6YFSZL = __esm({
11720
- "../../packages/core/dist/chunk-UI6YFSZL.js"() {
11687
+ var init_chunk_Y6NC5CH5 = __esm({
11688
+ "../../packages/core/dist/chunk-Y6NC5CH5.js"() {
11721
11689
  "use strict";
11722
11690
  init_chunk_E4DIIOOE();
11723
11691
  init_chunk_HZ6CADSY();
11724
- init_chunk_ECRNR7ET();
11692
+ init_chunk_I42QJGJF();
11725
11693
  init_chunk_MIWZOSPI();
11726
11694
  init_zod();
11727
11695
  evalCallInstant = timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp");
@@ -14028,7 +13996,7 @@ var init_chunk_TU4Y4MEX = __esm({
14028
13996
  }
14029
13997
  });
14030
13998
 
14031
- // ../../packages/core/dist/chunk-KY3JYP4A.js
13999
+ // ../../packages/core/dist/chunk-D7EMMHYQ.js
14032
14000
  function refineHubAsCodeCustomTools(config, ctx) {
14033
14001
  const agents = config.agents;
14034
14002
  if (!Array.isArray(agents)) return;
@@ -14453,6 +14421,27 @@ function refineHubAsCodeDelegation(config, ctx) {
14453
14421
  });
14454
14422
  });
14455
14423
  }
14424
+ function refineHubAsCodeToolEnabled(config, ctx) {
14425
+ const agents = config?.agents;
14426
+ if (!Array.isArray(agents)) return;
14427
+ const label2 = (name) => typeof name === "string" || typeof name === "number" ? name : "<unnamed>";
14428
+ agents.forEach((agent, agentIndex) => {
14429
+ const { name: agentName, tools } = agent ?? {};
14430
+ for (const group of HUB_AS_CODE_AGENT_TOOL_KEYS) {
14431
+ const entries = tools?.[group];
14432
+ if (!Array.isArray(entries)) continue;
14433
+ entries.forEach((entry, entryIndex) => {
14434
+ const { enabled, name, tool } = entry ?? {};
14435
+ if (enabled === void 0 || typeof enabled === "boolean") return;
14436
+ ctx.addIssue({
14437
+ code: external_exports.ZodIssueCode.custom,
14438
+ path: ["agents", agentIndex, "tools", group, entryIndex, "enabled"],
14439
+ message: `Agent "${label2(agentName)}", tool "${label2(name ?? tool)}": enabled must be true or false, got ${JSON.stringify(enabled).slice(0, 40)}`
14440
+ });
14441
+ });
14442
+ }
14443
+ });
14444
+ }
14456
14445
  function refineHubAsCodeFlagConditions(config, ctx) {
14457
14446
  const agents = config?.agents;
14458
14447
  if (!Array.isArray(agents)) return;
@@ -14637,9 +14626,9 @@ function skillSectionsAsResources(scope) {
14637
14626
  return out;
14638
14627
  };
14639
14628
  }
14640
- 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, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, 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;
14641
- var init_chunk_KY3JYP4A = __esm({
14642
- "../../packages/core/dist/chunk-KY3JYP4A.js"() {
14629
+ 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, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, 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;
14630
+ var init_chunk_D7EMMHYQ = __esm({
14631
+ "../../packages/core/dist/chunk-D7EMMHYQ.js"() {
14643
14632
  "use strict";
14644
14633
  init_chunk_SARVKRZB();
14645
14634
  init_chunk_HRKVCI5A();
@@ -14649,12 +14638,12 @@ var init_chunk_KY3JYP4A = __esm({
14649
14638
  init_chunk_TU4Y4MEX();
14650
14639
  init_chunk_2KNVPV7S();
14651
14640
  init_chunk_K5UAZWFF();
14652
- init_chunk_5FTGVRDF();
14641
+ init_chunk_MBXNS7SI();
14653
14642
  init_chunk_S4VDZ7PZ();
14654
14643
  init_chunk_C2UEA2KW();
14655
14644
  init_chunk_FBV7NLKO();
14656
14645
  init_chunk_WEXVYJ5H();
14657
- init_chunk_Q3WAAJBA();
14646
+ init_chunk_G4HTKQCL();
14658
14647
  init_chunk_YROEDMVZ();
14659
14648
  init_zod();
14660
14649
  MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
@@ -14677,6 +14666,12 @@ var init_chunk_KY3JYP4A = __esm({
14677
14666
  }).strict()).max(PAGES_PER_HUB_MAX, `a hub holds at most ${PAGES_PER_HUB_MAX} pages`);
14678
14667
  MAX_CALL_OPENING_CARRIERS = 30;
14679
14668
  MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES = 8 * 1024 * 1024;
14669
+ HUB_AS_CODE_AGENT_TOOL_KEYS = [
14670
+ "native",
14671
+ "delegation",
14672
+ "custom",
14673
+ "mcp"
14674
+ ];
14680
14675
  hubAsCodeStateSchema = external_exports.object({
14681
14676
  id: external_exports.string().min(1).optional(),
14682
14677
  slug: external_exports.string().optional(),
@@ -14768,6 +14763,7 @@ var init_chunk_KY3JYP4A = __esm({
14768
14763
  refineHubAsCodeAccessValues(config, ctx);
14769
14764
  refineHubAsCodeResources(config, ctx);
14770
14765
  refineHubAsCodeDelegation(config, ctx);
14766
+ refineHubAsCodeToolEnabled(config, ctx);
14771
14767
  refineHubAsCodeFlagConditions(config, ctx);
14772
14768
  refineHubAsCodeMonitorConfig(config, ctx);
14773
14769
  refineHubAsCodeDecisionsModel(config, ctx);
@@ -15733,16 +15729,16 @@ var init_chunk_ZU2FJGU3 = __esm({
15733
15729
  }
15734
15730
  });
15735
15731
 
15736
- // ../../packages/core/dist/chunk-CL2SULM6.js
15732
+ // ../../packages/core/dist/chunk-QUW6OYZR.js
15737
15733
  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;
15738
- var init_chunk_CL2SULM6 = __esm({
15739
- "../../packages/core/dist/chunk-CL2SULM6.js"() {
15734
+ var init_chunk_QUW6OYZR = __esm({
15735
+ "../../packages/core/dist/chunk-QUW6OYZR.js"() {
15740
15736
  "use strict";
15741
15737
  init_chunk_ZU2FJGU3();
15742
15738
  init_chunk_S5SVBLGT();
15743
- init_chunk_5FTGVRDF();
15739
+ init_chunk_MBXNS7SI();
15744
15740
  init_chunk_5XEJSR22();
15745
- init_chunk_Q3WAAJBA();
15741
+ init_chunk_G4HTKQCL();
15746
15742
  init_chunk_YROEDMVZ();
15747
15743
  init_zod();
15748
15744
  AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
@@ -16178,19 +16174,18 @@ var init_chunk_EV3MAOEX = __esm({
16178
16174
  var init_contracts = __esm({
16179
16175
  "../../packages/core/dist/contracts/index.js"() {
16180
16176
  "use strict";
16181
- init_chunk_NKLVUTFO();
16182
16177
  init_chunk_WL5QGKHN();
16183
16178
  init_chunk_YVY2TZK2();
16184
16179
  init_chunk_VXEAR36B();
16185
16180
  init_chunk_RACEDHG6();
16186
16181
  init_chunk_Q7KIQHAZ();
16187
- init_chunk_HIGKBEPF();
16188
16182
  init_chunk_HA7CRZMX();
16189
16183
  init_chunk_MF2VVXBR();
16190
16184
  init_chunk_IPXBFWUU();
16185
+ init_chunk_NKLVUTFO();
16191
16186
  init_chunk_5YNUTCJ2();
16192
16187
  init_chunk_ZC6YGHNX();
16193
- init_chunk_ACKF2MVU();
16188
+ init_chunk_HIGKBEPF();
16194
16189
  init_chunk_5DGHIY7L();
16195
16190
  init_chunk_7QJBCQR3();
16196
16191
  init_chunk_IPDOHAZ5();
@@ -16208,10 +16203,10 @@ var init_contracts = __esm({
16208
16203
  init_chunk_OPETF4GS();
16209
16204
  init_chunk_SY6PLCPK();
16210
16205
  init_chunk_KMAC3O3L();
16211
- init_chunk_OJB6LIVM();
16206
+ init_chunk_YGDHKCKK();
16212
16207
  init_chunk_KSTYTQ7I();
16213
16208
  init_chunk_LKBSHANA();
16214
- init_chunk_UI6YFSZL();
16209
+ init_chunk_Y6NC5CH5();
16215
16210
  init_chunk_C4HEZ7ZI();
16216
16211
  init_chunk_IR2NOSI3();
16217
16212
  init_chunk_MT4ITTI4();
@@ -16226,7 +16221,7 @@ var init_contracts = __esm({
16226
16221
  init_chunk_E4DIIOOE();
16227
16222
  init_chunk_7CYHPF35();
16228
16223
  init_chunk_BPCNB5RT();
16229
- init_chunk_KY3JYP4A();
16224
+ init_chunk_D7EMMHYQ();
16230
16225
  init_chunk_SARVKRZB();
16231
16226
  init_chunk_HRKVCI5A();
16232
16227
  init_chunk_ICE6SQZO();
@@ -16247,10 +16242,10 @@ var init_contracts = __esm({
16247
16242
  init_chunk_2PZIF56U();
16248
16243
  init_chunk_UEJOG2Q7();
16249
16244
  init_chunk_JO53JB35();
16250
- init_chunk_CL2SULM6();
16245
+ init_chunk_QUW6OYZR();
16251
16246
  init_chunk_ZU2FJGU3();
16252
16247
  init_chunk_S5SVBLGT();
16253
- init_chunk_5FTGVRDF();
16248
+ init_chunk_MBXNS7SI();
16254
16249
  init_chunk_IG6QBZMA();
16255
16250
  init_chunk_OMPT4ZHR();
16256
16251
  init_chunk_D7SSWNL3();
@@ -16273,10 +16268,10 @@ var init_contracts = __esm({
16273
16268
  init_chunk_WEXVYJ5H();
16274
16269
  init_chunk_6TSQ5HXC();
16275
16270
  init_chunk_HZ6CADSY();
16276
- init_chunk_Q3WAAJBA();
16277
- init_chunk_CBSOYDZQ();
16271
+ init_chunk_G4HTKQCL();
16272
+ init_chunk_ZUKC6A2W();
16278
16273
  init_chunk_EVXGKOJV();
16279
- init_chunk_ECRNR7ET();
16274
+ init_chunk_I42QJGJF();
16280
16275
  init_chunk_MIWZOSPI();
16281
16276
  init_chunk_YROEDMVZ();
16282
16277
  init_chunk_L5F7ZOUJ();
@@ -16433,10 +16428,10 @@ var init_dist = __esm({
16433
16428
  init_chunk_6TSQ5HXC();
16434
16429
  init_chunk_HZ6CADSY();
16435
16430
  init_chunk_BF4WRSOQ();
16436
- init_chunk_Q3WAAJBA();
16437
- init_chunk_CBSOYDZQ();
16431
+ init_chunk_G4HTKQCL();
16432
+ init_chunk_ZUKC6A2W();
16438
16433
  init_chunk_EVXGKOJV();
16439
- init_chunk_ECRNR7ET();
16434
+ init_chunk_I42QJGJF();
16440
16435
  init_chunk_MIWZOSPI();
16441
16436
  init_chunk_YROEDMVZ();
16442
16437
  init_chunk_L5F7ZOUJ();