@wayai/cli 0.3.274 → 0.3.276

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
@@ -7130,7 +7130,7 @@ var init_chunk_2YEGUQR7 = __esm({
7130
7130
  }
7131
7131
  });
7132
7132
 
7133
- // ../../packages/core/dist/chunk-S5SVBLGT.js
7133
+ // ../../packages/core/dist/chunk-UAOHHCW5.js
7134
7134
  function normalizeContactPhone(raw) {
7135
7135
  const compact = raw.trim().replace(/[\s\-.()]/g, "");
7136
7136
  const withPlus = compact.startsWith("00") ? `+${compact.slice(2)}` : compact;
@@ -7143,8 +7143,8 @@ function importRowLabels(row, batchLabels) {
7143
7143
  return [.../* @__PURE__ */ new Set([...row.labels ?? [], ...batchLabels ?? []])];
7144
7144
  }
7145
7145
  var CONTACT_ENVIRONMENTS, CONTACT_NAME_MAX, CONTACT_EMAIL_MAX, CONTACT_PHONE_INPUT_MAX, CONTACT_INSTAGRAM_SID_MAX, CONTACT_METADATA_MAX_BYTES, CONTACT_LABEL_MAX, CONTACT_LABELS_MAX, CONTACT_SCOPE_TAGS_MAX, CONTACT_PAGE_MAX, CONTACT_IMPORT_BATCH_MAX, CONTACT_SEARCH_MAX, CONTACT_LIST_NAME_MAX, CONTACT_LIST_NAME_REGEX, CONTACT_LIST_DESCRIPTION_MAX, CONTACT_LIST_FILTER_MAX, CONTACT_LIST_PINS_PER_REQUEST_MAX, SUPPRESSION_SCOPES, SUPPRESSION_ID_REGEX, contactName, contactPhone, contactEmail, contactInstagramSid, contactLabel, contactLabels, contactMetadata, scopeTagIds, contactVisibilitySchema, hasIdentity, IDENTITY_REQUIRED, contactBookOrgQuery, contactBookContactParam, contactBookListParam, contactBookHubParam, contactBookPageQuery, listContactBookContactsQuery, listHubContactBookContactsQuery, contactBookLinkCandidatesQuery, listContactBookListMembersQuery, contactRowFields, createContactBookContactBody, updateContactBookContactBody, contactImportRowSchema, importContactBookContactsBody, linkContactBookContactBody, listName, contactListFilterSchema, createContactBookListBody, updateContactBookListBody, updateContactBookListPinsBody, suppressionIdentitySchema, createContactBookSuppressionBody, contactBookSuppressionParam, listContactBookSuppressionsQuery, contactBookEmailUnsubscribeTokenSchema, contactBookEmailUnsubscribeQuery, orgListReferenceSchema;
7146
- var init_chunk_S5SVBLGT = __esm({
7147
- "../../packages/core/dist/chunk-S5SVBLGT.js"() {
7146
+ var init_chunk_UAOHHCW5 = __esm({
7147
+ "../../packages/core/dist/chunk-UAOHHCW5.js"() {
7148
7148
  "use strict";
7149
7149
  init_zod();
7150
7150
  CONTACT_ENVIRONMENTS = ["production", "preview", "all"];
@@ -7179,10 +7179,13 @@ var init_chunk_S5SVBLGT = __esm({
7179
7179
  contactInstagramSid = external_exports.string().trim().min(1).max(CONTACT_INSTAGRAM_SID_MAX);
7180
7180
  contactLabel = external_exports.string().max(CONTACT_LABEL_MAX).transform(normalizeContactLabel).refine((label2) => label2.length > 0, "A label cannot be empty").refine((label2) => !label2.includes(","), "A label cannot contain a comma");
7181
7181
  contactLabels = external_exports.array(contactLabel).max(CONTACT_LABELS_MAX).transform((labels) => [...new Set(labels)]);
7182
- contactMetadata = external_exports.record(external_exports.unknown()).refine(
7183
- (metadata) => new TextEncoder().encode(JSON.stringify(metadata)).length <= CONTACT_METADATA_MAX_BYTES,
7184
- `Metadata must serialize to at most ${CONTACT_METADATA_MAX_BYTES} bytes`
7185
- );
7182
+ contactMetadata = external_exports.record(external_exports.unknown()).refine((metadata) => {
7183
+ try {
7184
+ return new TextEncoder().encode(JSON.stringify(metadata)).length <= CONTACT_METADATA_MAX_BYTES;
7185
+ } catch {
7186
+ return false;
7187
+ }
7188
+ }, `Metadata must serialize to at most ${CONTACT_METADATA_MAX_BYTES} bytes`);
7186
7189
  scopeTagIds = external_exports.array(external_exports.string().uuid()).min(1).max(CONTACT_SCOPE_TAGS_MAX).transform((ids) => [...new Set(ids)]);
7187
7190
  contactVisibilitySchema = external_exports.discriminatedUnion("scope", [
7188
7191
  external_exports.object({ scope: external_exports.literal("all_hubs") }).strict(),
@@ -7305,13 +7308,13 @@ var init_chunk_S5SVBLGT = __esm({
7305
7308
  }
7306
7309
  });
7307
7310
 
7308
- // ../../packages/core/dist/chunk-YNK5TWWS.js
7311
+ // ../../packages/core/dist/chunk-MGBAXT5Y.js
7309
7312
  var PERSON_LINKS_MAX, PERSON_DENY_PAGE_MAX, personParam, personLinkParam, deniedPersonParam, listDeniedPersonsQuery, conversationCustomerPersonParam;
7310
- var init_chunk_YNK5TWWS = __esm({
7311
- "../../packages/core/dist/chunk-YNK5TWWS.js"() {
7313
+ var init_chunk_MGBAXT5Y = __esm({
7314
+ "../../packages/core/dist/chunk-MGBAXT5Y.js"() {
7312
7315
  "use strict";
7313
7316
  init_chunk_2YEGUQR7();
7314
- init_chunk_S5SVBLGT();
7317
+ init_chunk_UAOHHCW5();
7315
7318
  init_zod();
7316
7319
  PERSON_LINKS_MAX = 15;
7317
7320
  PERSON_DENY_PAGE_MAX = 100;
@@ -12020,12 +12023,12 @@ var init_chunk_6J742GLA = __esm({
12020
12023
  }
12021
12024
  });
12022
12025
 
12023
- // ../../packages/core/dist/chunk-LCBRIVIN.js
12026
+ // ../../packages/core/dist/chunk-6AYIXGDT.js
12024
12027
  var COMMUNITIES_PER_ORG_MAX, COMMUNITY_NAME_MAX_LENGTH, COMMUNITY_REGISTRY_CLOSED_REASON, COMMUNITY_MEMBERS_MAX, COMMUNITY_ADMISSIONS, COMMUNITY_ACCESS_MAX, COMMUNITY_ACCESS_ADD_MAX, COMMUNITY_ACCESS_FULL_REASON, COMMUNITY_JOIN_SOURCE_MAX_LENGTH, COMMUNITY_JOIN_FLOW_TOKEN_MAX_LENGTH, COMMUNITY_ROOMS_MAX, COMMUNITY_ROOM_NAME_MAX_LENGTH, COMMUNITY_MESSAGE_MAX_LENGTH, COMMUNITY_MESSAGES_PAGE_SIZE, COMMUNITY_ATTACHMENT_URLS_MAX, COMMUNITY_POST_TITLE_MAX_LENGTH, COMMUNITY_POST_SEARCH_MAX_LENGTH, COMMUNITY_MEMBER_STATUSES, COMMUNITY_RULES_MAX_LENGTH, COMMUNITY_SLOW_MODE_MAX_SECONDS, COMMUNITY_COURSES_LABEL_MAX_LENGTH, COMMUNITY_LIVE_TICKET_PREFIX, COMMUNITY_STATS_DAYS, communityNameSchema, adminCreateCommunityBody, communityIdParam, communityJoinTokenSchema, communityJoinSourceSchema, communityJoinPreviewQuery, communityJoinBody, communityRoomKindSchema, communityRoomNameSchema, communityRoomIdParam, communityMessageIdParam, communityRoomCreateBody, communityRoomUpdateBody, communityMessagesQuery, communityMessageBodySchema, communityPostTitleSchema, communityAttachmentUploadSchema, communitySendBody, communityEditBody, communityPostIdParam, communityPostsQuery, communityAnswerBody, communityReadBody, communityAttachmentUrlsBody, communityPersonParam, communityOrgParam, communityPeopleQuery, communityCoursesLabelSchema, communityAdmissionSchema, communitySettingsBody, communityAccessEmailSchema, communityAccessAddBody, communityAccessQuery, communityAccessIdParam, communityBanBody, communityLockBody, communityPinBody, communityModLogQuery, communityReportsQuery, communityReportIdParam, communityLiveTicketSchema, communityLiveQuery, communityMuteBody, communityEmailUnsubscribeTokenSchema, communityEmailUnsubscribeQuery;
12025
- var init_chunk_LCBRIVIN = __esm({
12026
- "../../packages/core/dist/chunk-LCBRIVIN.js"() {
12028
+ var init_chunk_6AYIXGDT = __esm({
12029
+ "../../packages/core/dist/chunk-6AYIXGDT.js"() {
12027
12030
  "use strict";
12028
- init_chunk_S5SVBLGT();
12031
+ init_chunk_UAOHHCW5();
12029
12032
  init_chunk_6J742GLA();
12030
12033
  init_chunk_ZVXO3XL6();
12031
12034
  init_chunk_HZ6CADSY();
@@ -12129,7 +12132,7 @@ var init_chunk_LCBRIVIN = __esm({
12129
12132
  }
12130
12133
  });
12131
12134
 
12132
- // ../../packages/core/dist/chunk-MT4ITTI4.js
12135
+ // ../../packages/core/dist/chunk-47LPEX74.js
12133
12136
  function parseCommunityLessonVideoUrl(url) {
12134
12137
  const parts = /^https?:\/\/([^/?#]+)([^?#]*)(?:\?([^#]*))?(?:#.*)?$/i.exec(url.trim());
12135
12138
  if (!parts) return null;
@@ -12155,10 +12158,10 @@ function communityLessonVideoWatchUrl(video) {
12155
12158
  }
12156
12159
  }
12157
12160
  var COMMUNITY_COURSES_MAX, COMMUNITY_COURSE_MODULES_MAX, COMMUNITY_COURSE_LESSONS_MAX, COMMUNITY_LESSONS_MAX, COMMUNITY_COURSE_TITLE_MAX_LENGTH, COMMUNITY_COURSE_DESCRIPTION_MAX_LENGTH, COMMUNITY_LESSON_BODY_MAX_LENGTH, COMMUNITY_LESSON_LINKS_MAX, COMMUNITY_LESSON_URL_MAX_LENGTH, YOUTUBE_ID, YOUTUBE_HOSTS, YOUTU_BE, YOUTUBE_ID_PATH, communityCourseIdParam, communityCourseModuleIdParam, communityLessonIdParam, communityCourseTitleSchema, communityCourseDescriptionSchema, communityCoursePositionSchema, communityLessonVideoUrlSchema, communityLessonLinkSchema, communityLessonLinksSchema, communityLessonBodySchema, communityCourseCreateBody, communityCourseUpdateBody, communityModuleCreateBody, communityModuleUpdateBody, communityLessonCreateBody, communityLessonUpdateBody;
12158
- var init_chunk_MT4ITTI4 = __esm({
12159
- "../../packages/core/dist/chunk-MT4ITTI4.js"() {
12161
+ var init_chunk_47LPEX74 = __esm({
12162
+ "../../packages/core/dist/chunk-47LPEX74.js"() {
12160
12163
  "use strict";
12161
- init_chunk_LCBRIVIN();
12164
+ init_chunk_6AYIXGDT();
12162
12165
  init_chunk_HZ6CADSY();
12163
12166
  init_zod();
12164
12167
  COMMUNITY_COURSES_MAX = 20;
@@ -12595,7 +12598,17 @@ var init_chunk_BPCNB5RT = __esm({
12595
12598
  }
12596
12599
  });
12597
12600
 
12598
- // ../../packages/core/dist/chunk-SARVKRZB.js
12601
+ // ../../packages/core/dist/chunk-6HXH56R4.js
12602
+ function toolParametersViolations(params) {
12603
+ try {
12604
+ if (containsKanbanPlaceholders(params)) return [];
12605
+ const result = validateToolInputSchema(params);
12606
+ return result.ok ? [] : result.errors;
12607
+ } catch (error) {
12608
+ if (!(error instanceof RangeError)) throw error;
12609
+ return [{ path: "", message: "parameters are nested too deeply to serialize" }];
12610
+ }
12611
+ }
12599
12612
  function refineToolConfig(value, ctx) {
12600
12613
  const raw = value.tool_config;
12601
12614
  if (raw == null) return;
@@ -12618,21 +12631,17 @@ function refineToolConfig(value, ctx) {
12618
12631
  }
12619
12632
  return;
12620
12633
  }
12621
- if (containsKanbanPlaceholders(params)) return;
12622
- const result = validateToolInputSchema(params);
12623
- if (!result.ok) {
12624
- for (const err of result.errors) {
12625
- ctx.addIssue({
12626
- code: external_exports.ZodIssueCode.custom,
12627
- path: ["tool_config", "parameters", ...err.path.split(".").filter(Boolean)],
12628
- message: err.suggestion ? `${err.message} \u2014 ${err.suggestion}` : err.message
12629
- });
12630
- }
12634
+ for (const err of toolParametersViolations(params)) {
12635
+ ctx.addIssue({
12636
+ code: external_exports.ZodIssueCode.custom,
12637
+ path: ["tool_config", "parameters", ...err.path.split(".").filter(Boolean)],
12638
+ message: err.suggestion ? `${err.message} \u2014 ${err.suggestion}` : err.message
12639
+ });
12631
12640
  }
12632
12641
  }
12633
12642
  var toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
12634
- var init_chunk_SARVKRZB = __esm({
12635
- "../../packages/core/dist/chunk-SARVKRZB.js"() {
12643
+ var init_chunk_6HXH56R4 = __esm({
12644
+ "../../packages/core/dist/chunk-6HXH56R4.js"() {
12636
12645
  "use strict";
12637
12646
  init_chunk_WEXVYJ5H();
12638
12647
  init_chunk_HZ6CADSY();
@@ -12743,7 +12752,7 @@ var init_chunk_2ISUBJG7 = __esm({
12743
12752
  }
12744
12753
  });
12745
12754
 
12746
- // ../../packages/core/dist/chunk-ICE6SQZO.js
12755
+ // ../../packages/core/dist/chunk-IW7D2QOD.js
12747
12756
  function describeRole(role) {
12748
12757
  if (typeof role === "string") {
12749
12758
  return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
@@ -12785,7 +12794,7 @@ function evalTurnAttachmentsError(turn) {
12785
12794
  if (attachments.length > MAX_ATTACHMENTS_PER_MESSAGE) {
12786
12795
  return `attachments must have at most ${MAX_ATTACHMENTS_PER_MESSAGE} items`;
12787
12796
  }
12788
- if (!turnMayCarryAttachments({ role: String(record.role), attachments })) {
12797
+ if (!turnMayCarryAttachments({ role: record.role, attachments })) {
12789
12798
  return ATTACHMENTS_USER_ONLY_MESSAGE;
12790
12799
  }
12791
12800
  for (let i = 0; i < attachments.length; i++) {
@@ -12922,8 +12931,8 @@ function terminalRunCount(counts) {
12922
12931
  return counts.successful_runs + counts.failed_runs;
12923
12932
  }
12924
12933
  var evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, runJourneyQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, EVAL_PERSON_MAX, evalPersonSchema, EVAL_PERSON_ALIAS_RETIRED, EVAL_PERSON_ALIAS_REFUSED, evalBody, EVAL_LIST_MAX_LIMIT, evalListLimit, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, EVAL_MAX_SELECTED_SCENARIOS, evalScenarioSelectionEntrySchema, evalScenarioSelectionSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, evalAttachmentRef, turnMayCarryAttachments, ATTACHMENTS_USER_ONLY_MESSAGE, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, fixtureField, createJourneyBody, updateJourneyBody, evalSessionConfigResponseSchema, evalSessionResponseSchema, evalSessionListConfigSchema, evalSessionListItemSchema, seedReleaseStatusSchema, EVAL_SESSION_NOT_QUIESCENT;
12925
- var init_chunk_ICE6SQZO = __esm({
12926
- "../../packages/core/dist/chunk-ICE6SQZO.js"() {
12934
+ var init_chunk_IW7D2QOD = __esm({
12935
+ "../../packages/core/dist/chunk-IW7D2QOD.js"() {
12927
12936
  "use strict";
12928
12937
  init_chunk_2YEGUQR7();
12929
12938
  init_chunk_4D6K4P4K();
@@ -13340,7 +13349,7 @@ var init_chunk_D3EP4TDU = __esm({
13340
13349
  }
13341
13350
  });
13342
13351
 
13343
- // ../../packages/core/dist/chunk-2KNVPV7S.js
13352
+ // ../../packages/core/dist/chunk-X5PZZVTS.js
13344
13353
  function isEventRelativeFollowupType(type) {
13345
13354
  return typeof type === "string" && EVENT_RELATIVE_FOLLOWUP_TYPES.includes(type);
13346
13355
  }
@@ -13405,14 +13414,18 @@ function validateFollowupLinks(followups, label2, ctx) {
13405
13414
  });
13406
13415
  }
13407
13416
  }
13417
+ function printableName(value) {
13418
+ return typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? value : "<unnamed>";
13419
+ }
13408
13420
  function validateLaneReferences(lanes, statuses) {
13409
13421
  const issues = [];
13410
13422
  if (!Array.isArray(statuses) || statuses.length === 0) return issues;
13411
13423
  const declared = new Set((Array.isArray(lanes) ? lanes : []).map((l) => l.slug).filter(Boolean));
13412
13424
  statuses.forEach((s, i) => {
13425
+ if (s === null) return;
13413
13426
  const lane = s.lane_slug;
13414
13427
  if (typeof lane !== "string" || lane.length === 0) return;
13415
- const label2 = s.slug ? `"${s.slug}"` : `[${i}]`;
13428
+ const label2 = s.slug ? `"${printableName(s.slug)}"` : `[${i}]`;
13416
13429
  if (s.isInitialStatus === true) {
13417
13430
  issues.push({
13418
13431
  path: [i, "lane_slug"],
@@ -13430,8 +13443,8 @@ function validateLaneReferences(lanes, statuses) {
13430
13443
  return issues;
13431
13444
  }
13432
13445
  var MAX_KANBAN_STATUSES, MAX_FOLLOWUPS_PER_STATUS, MAX_LANES, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES, RESERVED_TEMPLATE_DUMP_NAME, kanbanStatusSlugSchema, followupTypeSchema, EVENT_RELATIVE_FOLLOWUP_TYPES, followupTimeUnitSchema, followupIdSchema, SELECTABLE_FOLLOWUP_TYPES, MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS, followupSchema, MAX_OUTCOMES_PER_STATUS, kanbanOutcomeSchema, EXCLUSIVE_FLAG_PAIRS, kanbanStatusSchema, kanbanStatusesArraySchema, laneSchema, lanesArraySchema;
13433
- var init_chunk_2KNVPV7S = __esm({
13434
- "../../packages/core/dist/chunk-2KNVPV7S.js"() {
13446
+ var init_chunk_X5PZZVTS = __esm({
13447
+ "../../packages/core/dist/chunk-X5PZZVTS.js"() {
13435
13448
  "use strict";
13436
13449
  init_chunk_6TSQ5HXC();
13437
13450
  init_chunk_HZ6CADSY();
@@ -13772,7 +13785,7 @@ var init_chunk_K5UAZWFF = __esm({
13772
13785
  }
13773
13786
  });
13774
13787
 
13775
- // ../../packages/core/dist/chunk-TU4Y4MEX.js
13788
+ // ../../packages/core/dist/chunk-7NQZRSSJ.js
13776
13789
  function refineLaneReferences(val, ctx) {
13777
13790
  const lanes = val.lanes;
13778
13791
  const statuses = val.kanban_statuses;
@@ -13796,11 +13809,11 @@ function describeSyncWarning(warning) {
13796
13809
  return `${label2}: ${parts.join("; ")}. Promote the base so production's tools match the preview's.`;
13797
13810
  }
13798
13811
  var hubIdParam, hubAdminIdParam, hubUserIdParam, hubAgentIdParam, hubIdentityIdParam, hubTeamIdParam, hubTeamUserDeleteParam, hubSchemaQuery, HUB_USERS_PAGE_SIZE_MAX, HUB_USERS_SEARCH_MAX, HUB_USERS_CHANNEL_TYPES, getHubUsersQuery, PREVIEW_LABEL_MAX_LENGTH, MAX_ENDED_INDEX_RETENTION_DAYS, MAX_EVAL_RETENTION_DAYS, MAX_END_USER_DAILY_MESSAGE_LIMIT, endUserDailyMessageLimitField, previewLabelField, hubTagsField, createHubBody, updateHubBody, HUB_TAG_CHANGE_REFUSED, hubTagChangeRefusalSchema, addHubAdminBody, addHubIdentityAuthorizationBody, contactDecisionBody, approveContactBody, CONTACT_ACCESS_PAGE_SIZE_MAX, listContactAccessQuery, createHubTeamBody, updateHubTeamBody, addHubTeamUserBody, reassignHubUserBody, replicatePreviewBody, HUB_DIFF_SECTION_SET, HUB_DIFF_SECTIONS, updateChannelTestIdentitiesBody, claimCodeChannelParam, claimCodeDeleteParam;
13799
- var init_chunk_TU4Y4MEX = __esm({
13800
- "../../packages/core/dist/chunk-TU4Y4MEX.js"() {
13812
+ var init_chunk_7NQZRSSJ = __esm({
13813
+ "../../packages/core/dist/chunk-7NQZRSSJ.js"() {
13801
13814
  "use strict";
13802
13815
  init_chunk_D3EP4TDU();
13803
- init_chunk_2KNVPV7S();
13816
+ init_chunk_X5PZZVTS();
13804
13817
  init_chunk_K5UAZWFF();
13805
13818
  init_chunk_HZ6CADSY();
13806
13819
  init_zod();
@@ -13996,7 +14009,7 @@ var init_chunk_TU4Y4MEX = __esm({
13996
14009
  }
13997
14010
  });
13998
14011
 
13999
- // ../../packages/core/dist/chunk-LBKP4XCU.js
14012
+ // ../../packages/core/dist/chunk-VNGEV62J.js
14000
14013
  function refineHubAsCodeCustomTools(config, ctx) {
14001
14014
  const agents = config.agents;
14002
14015
  if (!Array.isArray(agents)) return;
@@ -14011,7 +14024,7 @@ function refineHubAsCodeCustomTools(config, ctx) {
14011
14024
  ctx.addIssue({
14012
14025
  code: external_exports.ZodIssueCode.custom,
14013
14026
  path: ["agents", a, "tools", "custom", c, ...issue.path],
14014
- message: `custom tool "${tool?.name ?? "<unnamed>"}": ${issue.path.join(".")}: ${issue.message}`
14027
+ message: `custom tool "${printableName(tool?.name)}": ${issue.path.join(".")}: ${issue.message}`
14015
14028
  });
14016
14029
  }
14017
14030
  const raw = tool?.config;
@@ -14030,22 +14043,18 @@ function refineHubAsCodeCustomTools(config, ctx) {
14030
14043
  ctx.addIssue({
14031
14044
  code: external_exports.ZodIssueCode.custom,
14032
14045
  path: ["agents", a, "tools", "custom", c, "config"],
14033
- message: `custom tool "${tool?.name ?? "<unnamed>"}": config must be an object`
14046
+ message: `custom tool "${printableName(tool?.name)}": config must be an object`
14034
14047
  });
14035
14048
  }
14036
14049
  continue;
14037
14050
  }
14038
- if (containsKanbanPlaceholders(params)) continue;
14039
- const result = validateToolInputSchema(params);
14040
- if (!result.ok) {
14041
- for (const err of result.errors) {
14042
- const tail = err.path.split(".").filter(Boolean);
14043
- ctx.addIssue({
14044
- code: external_exports.ZodIssueCode.custom,
14045
- path: ["agents", a, "tools", "custom", c, "config", "parameters", ...tail],
14046
- message: `custom tool "${tool?.name ?? "<unnamed>"}": ${err.message}${err.suggestion ? ` \u2014 ${err.suggestion}` : ""}`
14047
- });
14048
- }
14051
+ for (const err of toolParametersViolations(params)) {
14052
+ const tail = err.path.split(".").filter(Boolean);
14053
+ ctx.addIssue({
14054
+ code: external_exports.ZodIssueCode.custom,
14055
+ path: ["agents", a, "tools", "custom", c, "config", "parameters", ...tail],
14056
+ message: `custom tool "${printableName(tool?.name)}": ${err.message}${err.suggestion ? ` \u2014 ${err.suggestion}` : ""}`
14057
+ });
14049
14058
  }
14050
14059
  }
14051
14060
  }
@@ -14129,7 +14138,7 @@ function refineHubAsCodeEvals(config, ctx) {
14129
14138
  code: external_exports.ZodIssueCode.custom,
14130
14139
  path: ["evals", e, "input", "role"],
14131
14140
  // Named, not just indexed — the YAML author has files, not an array.
14132
- message: `eval "${entry?.name ?? "<unnamed>"}": ${error}`
14141
+ message: `eval "${printableName(entry?.name)}": ${error}`
14133
14142
  });
14134
14143
  }
14135
14144
  const initialStateError = evalInitialStateError(entry);
@@ -14137,7 +14146,7 @@ function refineHubAsCodeEvals(config, ctx) {
14137
14146
  ctx.addIssue({
14138
14147
  code: external_exports.ZodIssueCode.custom,
14139
14148
  path: ["evals", e, "initial_state"],
14140
- message: `eval "${entry?.name ?? "<unnamed>"}": ${initialStateError}`
14149
+ message: `eval "${printableName(entry?.name)}": ${initialStateError}`
14141
14150
  });
14142
14151
  }
14143
14152
  }
@@ -14152,7 +14161,7 @@ function refineHubAsCodePersons(config, ctx) {
14152
14161
  ctx.addIssue({
14153
14162
  code: external_exports.ZodIssueCode.custom,
14154
14163
  path: [key, i, issue.key],
14155
- message: `${kind} "${entry?.name ?? "<unnamed>"}": ${issue.message}`
14164
+ message: `${kind} "${printableName(entry?.name)}": ${issue.message}`
14156
14165
  });
14157
14166
  }
14158
14167
  });
@@ -14172,7 +14181,7 @@ function refineHubAsCodeEvalAttachments(config, ctx) {
14172
14181
  if (Array.isArray(cfg.evals)) {
14173
14182
  cfg.evals.forEach((entry, e) => {
14174
14183
  const ev = entry;
14175
- const name = `eval "${ev?.name ?? "<unnamed>"}"`;
14184
+ const name = `eval "${printableName(ev?.name)}"`;
14176
14185
  addTurnIssue(["evals", e, "input"], ev?.input, name);
14177
14186
  if (Array.isArray(ev?.history)) {
14178
14187
  ev.history.forEach((turn, h) => addTurnIssue(["evals", e, "history", h], turn, name));
@@ -14182,7 +14191,7 @@ function refineHubAsCodeEvalAttachments(config, ctx) {
14182
14191
  if (Array.isArray(cfg.journeys)) {
14183
14192
  cfg.journeys.forEach((entry, j) => {
14184
14193
  const jr = entry;
14185
- const name = `journey "${jr?.name ?? "<unnamed>"}"`;
14194
+ const name = `journey "${printableName(jr?.name)}"`;
14186
14195
  if (Array.isArray(jr?.transcript)) {
14187
14196
  jr.transcript.forEach((turn, t) => addTurnIssue(["journeys", j, "transcript", t], turn, name));
14188
14197
  }
@@ -14380,10 +14389,19 @@ function refineHubAsCodeResources(config, ctx) {
14380
14389
  function refineHubAsCodeDelegation(config, ctx) {
14381
14390
  const agents = config?.agents;
14382
14391
  if (!Array.isArray(agents)) return;
14392
+ const got = (value) => printableName(value ?? String(value));
14383
14393
  agents.forEach((agent, agentIndex) => {
14384
14394
  const delegation = agent?.tools?.delegation;
14385
14395
  if (!Array.isArray(delegation)) return;
14386
14396
  delegation.forEach((entry, delIndex) => {
14397
+ if (entry === null) {
14398
+ ctx.addIssue({
14399
+ code: external_exports.ZodIssueCode.custom,
14400
+ path: ["agents", agentIndex, "tools", "delegation", delIndex],
14401
+ message: `Agent "${printableName(agent.name)}": a delegation entry must be an object`
14402
+ });
14403
+ return;
14404
+ }
14387
14405
  const del = entry;
14388
14406
  if (del.allow_consultant_chain !== void 0) {
14389
14407
  const chainPath = ["agents", agentIndex, "tools", "delegation", delIndex, "allow_consultant_chain"];
@@ -14397,7 +14415,7 @@ function refineHubAsCodeDelegation(config, ctx) {
14397
14415
  ctx.addIssue({
14398
14416
  code: external_exports.ZodIssueCode.custom,
14399
14417
  path: chainPath,
14400
- message: `allow_consultant_chain applies only to \`tool: start_consult_thread\` (got "${String(del.tool)}")`
14418
+ message: `allow_consultant_chain applies only to \`tool: start_consult_thread\` (got "${got(del.tool)}")`
14401
14419
  });
14402
14420
  }
14403
14421
  }
@@ -14407,7 +14425,7 @@ function refineHubAsCodeDelegation(config, ctx) {
14407
14425
  ctx.addIssue({
14408
14426
  code: external_exports.ZodIssueCode.custom,
14409
14427
  path: path45,
14410
- message: `context_boundary applies only to \`type: hub\` delegations (got type "${String(del.type)}")`
14428
+ message: `context_boundary applies only to \`type: hub\` delegations (got type "${got(del.type)}")`
14411
14429
  });
14412
14430
  return;
14413
14431
  }
@@ -14430,15 +14448,15 @@ function refuseNonBooleanFlag(ctx, subject, entry, key, path45) {
14430
14448
  function refineHubAsCodeFlags(config, ctx) {
14431
14449
  const { agents, connections, evals, journeys, teams } = config;
14432
14450
  flagEntriesOf(agents).forEach((agent, agentIndex) => {
14433
- const subject = `Agent "${flagEntryName(agent.name)}"`;
14451
+ const subject = `Agent "${printableName(agent.name)}"`;
14434
14452
  const at = ["agents", agentIndex];
14435
14453
  refuseNonBooleanFlag(ctx, subject, agent, "enabled", at);
14436
14454
  flagEntriesOf(agent.resources).forEach((link, linkIndex) => {
14437
- refuseNonBooleanFlag(ctx, `${subject}, skill "${flagEntryName(link.name)}"`, link, "enabled", [...at, "resources", linkIndex]);
14455
+ refuseNonBooleanFlag(ctx, `${subject}, skill "${printableName(link.name)}"`, link, "enabled", [...at, "resources", linkIndex]);
14438
14456
  });
14439
14457
  for (const group of HUB_AS_CODE_AGENT_TOOL_KEYS) {
14440
14458
  flagEntriesOf(agent.tools?.[group]).forEach((entry, entryIndex) => {
14441
- const tool = `${subject}, tool "${flagEntryName(entry.name ?? entry.tool)}"`;
14459
+ const tool = `${subject}, tool "${printableName(entry.name ?? entry.tool)}"`;
14442
14460
  const entryAt = [...at, "tools", group, entryIndex];
14443
14461
  refuseNonBooleanFlag(ctx, tool, entry, "enabled", entryAt);
14444
14462
  if (group === "custom" || group === "native") refuseNonBooleanFlag(ctx, tool, entry, "expose_schema_to_llm", entryAt);
@@ -14452,7 +14470,7 @@ function refineHubAsCodeFlags(config, ctx) {
14452
14470
  ["teams", "Team", teams, ["display_only_if_claimed"]]
14453
14471
  ]) {
14454
14472
  flagEntriesOf(list2).forEach((entry, index) => {
14455
- for (const key of keys) refuseNonBooleanFlag(ctx, `${noun} "${flagEntryName(entry.name)}"`, entry, key, [section, index]);
14473
+ for (const key of keys) refuseNonBooleanFlag(ctx, `${noun} "${printableName(entry.name)}"`, entry, key, [section, index]);
14456
14474
  });
14457
14475
  }
14458
14476
  }
@@ -14596,6 +14614,70 @@ function resourcesSectionRefusal(scope, subject) {
14596
14614
  const pull = scope === "org" ? "wayai org pull" : "wayai pull";
14597
14615
  return `${subject} \`resources\` is no longer accepted: skills are named under \`skills\`. Update the CLI to \`@wayai/cli\` ${MIN_SKILLS_LAYOUT_CLI} or later (\`wayai update\`), then run \`${pull}\` once to convert the folder.`;
14598
14616
  }
14617
+ function pathPastDepth(root, levels) {
14618
+ if (root === null || typeof root !== "object") return null;
14619
+ const childrenOf = (node) => ({ node, children: Array.isArray(node) ? node : Object.values(node), next: 0 });
14620
+ const frames = [childrenOf(root)];
14621
+ while (frames.length > 0) {
14622
+ const top = frames[frames.length - 1];
14623
+ if (top.next === top.children.length) {
14624
+ frames.pop();
14625
+ continue;
14626
+ }
14627
+ const child = top.children[top.next++];
14628
+ if (child === null || typeof child !== "object") continue;
14629
+ if (frames.length === levels) return frames.map(({ node, next }) => Array.isArray(node) ? next - 1 : Object.keys(node)[next - 1]);
14630
+ frames.push(childrenOf(child));
14631
+ }
14632
+ return null;
14633
+ }
14634
+ function refusedNesting(value, at, ctx) {
14635
+ const past = pathPastDepth(value, MAX_HUB_AS_CODE_DEPTH - at.length);
14636
+ if (!past) return false;
14637
+ const path45 = [...at, ...past].slice(0, NAMED_DEPTH_SEGMENTS).map((key) => typeof key === "string" ? key.slice(0, NAMED_DEPTH_KEY_CHARS) : key);
14638
+ ctx.addIssue({
14639
+ code: external_exports.ZodIssueCode.custom,
14640
+ path: path45,
14641
+ message: `${fieldName(path45)}\u2026 nests deeper than ${MAX_HUB_AS_CODE_DEPTH} levels of arrays and objects`,
14642
+ fatal: true
14643
+ });
14644
+ return true;
14645
+ }
14646
+ function refusedStringConfigNesting(config, ctx) {
14647
+ const agents = isPlainObject(config) && Array.isArray(config.agents) ? config.agents : [];
14648
+ return agents.some((agent, a) => {
14649
+ const custom2 = isPlainObject(agent) && isPlainObject(agent.tools) ? agent.tools.custom : void 0;
14650
+ return Array.isArray(custom2) && custom2.some((tool, t) => {
14651
+ if (!isPlainObject(tool) || typeof tool.config !== "string") return false;
14652
+ let parsed;
14653
+ try {
14654
+ parsed = JSON.parse(tool.config);
14655
+ } catch {
14656
+ return false;
14657
+ }
14658
+ return refusedNesting(parsed, ["agents", a, "tools", "custom", t, "config"], ctx);
14659
+ });
14660
+ });
14661
+ }
14662
+ function refusedUnreadableSection(config, ctx) {
14663
+ if (!isPlainObject(config)) return false;
14664
+ const refused = (path45, must) => {
14665
+ ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: path45, message: `${fieldName(path45)} must ${must}`, fatal: true });
14666
+ return true;
14667
+ };
14668
+ const badList = (value, path45, reads = {}) => {
14669
+ if (value === void 0 || value === null && reads.nullSection !== false) return false;
14670
+ if (!Array.isArray(value)) return refused(path45, "be an array");
14671
+ const nullAt = reads.nullEntries ? -1 : value.indexOf(null);
14672
+ return nullAt !== -1 && refused([...path45, nullAt], "not be null");
14673
+ };
14674
+ const entries = (section) => Array.isArray(section) ? section : [];
14675
+ return ["connections", "teams", "evals", "journeys", "agents", "eval_attachment_files", "call_opening_files"].some((section) => badList(config[section], [section])) || isPlainObject(config.hub) && badList(config.hub.tags, ["hub", "tags"], { nullEntries: true }) || [["evals", "history"], ["journeys", "transcript"]].some(([section, turns]) => entries(config[section]).some((entry, index) => isPlainObject(entry) && badList(entry[turns], [section, index, turns], { nullEntries: true }))) || entries(config.agents).some((agent, index) => {
14676
+ if (!isPlainObject(agent)) return false;
14677
+ const { tools } = agent;
14678
+ return badList(agent.skills, ["agents", index, "skills"]) || badList(agent.evaluation_variables, ["agents", index, "evaluation_variables"], { nullSection: false }) || isPlainObject(tools) && HUB_AS_CODE_AGENT_TOOL_KEYS.some((kind) => badList(tools[kind], ["agents", index, "tools", kind], { nullEntries: kind === "delegation" }));
14679
+ });
14680
+ }
14599
14681
  function skillSectionsAsResources(scope) {
14600
14682
  return (config, ctx) => {
14601
14683
  if (!isPlainObject(config)) return config;
@@ -14640,23 +14722,24 @@ function skillSectionsAsResources(scope) {
14640
14722
  return out;
14641
14723
  };
14642
14724
  }
14643
- 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, flagEntryName, 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;
14644
- var init_chunk_LBKP4XCU = __esm({
14645
- "../../packages/core/dist/chunk-LBKP4XCU.js"() {
14725
+ 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;
14726
+ var init_chunk_VNGEV62J = __esm({
14727
+ "../../packages/core/dist/chunk-VNGEV62J.js"() {
14646
14728
  "use strict";
14647
- init_chunk_SARVKRZB();
14729
+ init_chunk_6HXH56R4();
14648
14730
  init_chunk_HRKVCI5A();
14649
- init_chunk_ICE6SQZO();
14731
+ init_chunk_IW7D2QOD();
14650
14732
  init_chunk_LBDH7LCG();
14651
14733
  init_chunk_4LXDRTO4();
14652
- init_chunk_TU4Y4MEX();
14653
- init_chunk_2KNVPV7S();
14734
+ init_chunk_7NQZRSSJ();
14735
+ init_chunk_X5PZZVTS();
14654
14736
  init_chunk_K5UAZWFF();
14655
14737
  init_chunk_MBXNS7SI();
14656
14738
  init_chunk_S4VDZ7PZ();
14657
14739
  init_chunk_C2UEA2KW();
14658
14740
  init_chunk_FBV7NLKO();
14659
14741
  init_chunk_WEXVYJ5H();
14742
+ init_chunk_HZ6CADSY();
14660
14743
  init_chunk_G4HTKQCL();
14661
14744
  init_chunk_YROEDMVZ();
14662
14745
  init_zod();
@@ -14672,7 +14755,7 @@ var init_chunk_LBKP4XCU = __esm({
14672
14755
  MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS = 64 * 1024;
14673
14756
  hubAsCodePagesSchema = external_exports.array(external_exports.object({
14674
14757
  manifest: external_exports.record(external_exports.unknown()).superRefine((manifest, ctx) => {
14675
- if (JSON.stringify(manifest).length > MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS) {
14758
+ if (!withinJsonLength(manifest, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS)) {
14676
14759
  ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: `a page manifest is at most ${MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS} characters of JSON` });
14677
14760
  }
14678
14761
  }),
@@ -14731,7 +14814,6 @@ var init_chunk_LBKP4XCU = __esm({
14731
14814
  uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
14732
14815
  ciUuidSchema = external_exports.string().regex(uuidPattern, "must be a valid UUID");
14733
14816
  flagEntriesOf = (list2) => Array.isArray(list2) ? list2.map((entry) => entry ?? {}) : [];
14734
- flagEntryName = (name) => typeof name === "string" || typeof name === "number" ? name : "<unnamed>";
14735
14817
  boundedHubAsCodeResourcesSchema = external_exports.unknown().superRefine((resources, ctx) => {
14736
14818
  if (!Array.isArray(resources)) return;
14737
14819
  if (resources.length > MAX_HUB_AS_CODE_RESOURCES) {
@@ -14742,7 +14824,7 @@ var init_chunk_LBKP4XCU = __esm({
14742
14824
  return;
14743
14825
  }
14744
14826
  flagEntriesOf(resources).forEach((skill, index) => {
14745
- refuseNonBooleanFlag(ctx, `Skill "${flagEntryName(skill.name)}"`, skill, "enabled", [index]);
14827
+ refuseNonBooleanFlag(ctx, `Skill "${printableName(skill.name)}"`, skill, "enabled", [index]);
14746
14828
  });
14747
14829
  let fileCount = 0;
14748
14830
  for (const resource of resources) {
@@ -14760,7 +14842,17 @@ var init_chunk_LBKP4XCU = __esm({
14760
14842
  }).pipe(external_exports.array(hubAsCodeResourceSchema));
14761
14843
  isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
14762
14844
  MIN_SKILLS_LAYOUT_CLI = "0.3.234";
14763
- hubAsCodeConfigSchema = external_exports.preprocess(skillSectionsAsResources("hub"), external_exports.object({
14845
+ MAX_HUB_AS_CODE_DEPTH = 128;
14846
+ NAMED_DEPTH_SEGMENTS = 12;
14847
+ NAMED_DEPTH_KEY_CHARS = 64;
14848
+ fieldName = (path45) => path45.reduce(
14849
+ (name, key) => typeof key === "number" ? `${name}[${key}]` : name ? `${name}.${key}` : key,
14850
+ ""
14851
+ );
14852
+ hubAsCodeConfigSchema = external_exports.preprocess((config, ctx) => {
14853
+ if (refusedNesting(config, [], ctx) || refusedStringConfigNesting(config, ctx) || refusedUnreadableSection(config, ctx)) return config;
14854
+ return skillSectionsAsResources("hub")(config, ctx);
14855
+ }, external_exports.object({
14764
14856
  version: external_exports.literal(1),
14765
14857
  hub: external_exports.object({
14766
14858
  name: external_exports.string().min(1, "config.hub.name is required"),
@@ -15015,10 +15107,10 @@ var init_chunk_BFG4ZWR4 = __esm({
15015
15107
  }
15016
15108
  });
15017
15109
 
15018
- // ../../packages/core/dist/chunk-YZAIZJTO.js
15110
+ // ../../packages/core/dist/chunk-C3V6PEQ7.js
15019
15111
  var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
15020
- var init_chunk_YZAIZJTO = __esm({
15021
- "../../packages/core/dist/chunk-YZAIZJTO.js"() {
15112
+ var init_chunk_C3V6PEQ7 = __esm({
15113
+ "../../packages/core/dist/chunk-C3V6PEQ7.js"() {
15022
15114
  "use strict";
15023
15115
  init_zod();
15024
15116
  dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
@@ -15129,7 +15221,7 @@ var init_chunk_OMPT4ZHR = __esm({
15129
15221
  }
15130
15222
  });
15131
15223
 
15132
- // ../../packages/core/dist/chunk-XMG3GA2R.js
15224
+ // ../../packages/core/dist/chunk-6AIZYKDD.js
15133
15225
  function refineScopedTarget(data, ctx) {
15134
15226
  if (data.scope === "org") {
15135
15227
  if (!data.org_id) {
@@ -15155,13 +15247,13 @@ function refineScopedTarget(data, ctx) {
15155
15247
  }
15156
15248
  }
15157
15249
  var adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, PRICING_PLAN_ID_RE, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, MAX_VOICE_CALL_MINUTE_OPS, voiceCallMinuteOps, AUTOMATION_GATE_EVALUATIONS_PER_OPERATION_BOUND, automationGateEvaluationsPerOperation, AUTOMATION_RUN_RETENTION_DAYS_MAX, automationRunRetentionDays, turnDeadlineSeconds, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetShape, adminScopedTargetBody, adminRepairKnowledgeBlobsBody, BRANCHING_ORPHAN_ENTITY_TYPES, BRANCHING_ORPHAN_MAX_TARGETS, adminRepairBranchingOrphansBody, adminRepairLegacyOrgGrantsBody, adminRepairCompedPlansBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, dataExplorerDebugCountsDoType, dataExplorerDebugCountsParam, debugHubConvParam, debugMessageIdQuery;
15158
- var init_chunk_XMG3GA2R = __esm({
15159
- "../../packages/core/dist/chunk-XMG3GA2R.js"() {
15250
+ var init_chunk_6AIZYKDD = __esm({
15251
+ "../../packages/core/dist/chunk-6AIZYKDD.js"() {
15160
15252
  "use strict";
15161
15253
  init_chunk_FECLIZTY();
15162
15254
  init_chunk_BFG4ZWR4();
15163
- init_chunk_YZAIZJTO();
15164
- init_chunk_TU4Y4MEX();
15255
+ init_chunk_C3V6PEQ7();
15256
+ init_chunk_7NQZRSSJ();
15165
15257
  init_chunk_OMPT4ZHR();
15166
15258
  init_chunk_HZ6CADSY();
15167
15259
  init_chunk_MIWZOSPI();
@@ -15714,15 +15806,15 @@ var init_chunk_JO53JB35 = __esm({
15714
15806
  }
15715
15807
  });
15716
15808
 
15717
- // ../../packages/core/dist/chunk-ZU2FJGU3.js
15809
+ // ../../packages/core/dist/chunk-R6Y377AW.js
15718
15810
  function filterNamesAnything(filter) {
15719
15811
  return filter.labels.length + filter.scope_tag_ids.length > 0;
15720
15812
  }
15721
15813
  var hubListNameSchema, HUB_LIST_FILTER_REQUIRED, hubContactListFilterSchema, hubContactListIdParam, hubContactListHubQuery, description, createHubContactListBody, updateHubContactListBody;
15722
- var init_chunk_ZU2FJGU3 = __esm({
15723
- "../../packages/core/dist/chunk-ZU2FJGU3.js"() {
15814
+ var init_chunk_R6Y377AW = __esm({
15815
+ "../../packages/core/dist/chunk-R6Y377AW.js"() {
15724
15816
  "use strict";
15725
- init_chunk_S5SVBLGT();
15817
+ init_chunk_UAOHHCW5();
15726
15818
  init_zod();
15727
15819
  hubListNameSchema = orgListReferenceSchema;
15728
15820
  HUB_LIST_FILTER_REQUIRED = "A hub list names at least one label or scope tag";
@@ -15748,13 +15840,13 @@ var init_chunk_ZU2FJGU3 = __esm({
15748
15840
  }
15749
15841
  });
15750
15842
 
15751
- // ../../packages/core/dist/chunk-QUW6OYZR.js
15843
+ // ../../packages/core/dist/chunk-DJKJMVH5.js
15752
15844
  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;
15753
- var init_chunk_QUW6OYZR = __esm({
15754
- "../../packages/core/dist/chunk-QUW6OYZR.js"() {
15845
+ var init_chunk_DJKJMVH5 = __esm({
15846
+ "../../packages/core/dist/chunk-DJKJMVH5.js"() {
15755
15847
  "use strict";
15756
- init_chunk_ZU2FJGU3();
15757
- init_chunk_S5SVBLGT();
15848
+ init_chunk_R6Y377AW();
15849
+ init_chunk_UAOHHCW5();
15758
15850
  init_chunk_MBXNS7SI();
15759
15851
  init_chunk_5XEJSR22();
15760
15852
  init_chunk_G4HTKQCL();
@@ -16212,7 +16304,7 @@ var init_contracts = __esm({
16212
16304
  init_chunk_VEERWOZ6();
16213
16305
  init_chunk_ZXK6N2HN();
16214
16306
  init_chunk_Y7CFCYX4();
16215
- init_chunk_YNK5TWWS();
16307
+ init_chunk_MGBAXT5Y();
16216
16308
  init_chunk_YUZFHVB2();
16217
16309
  init_chunk_I3O2RACG();
16218
16310
  init_chunk_34LE6P7E();
@@ -16228,8 +16320,8 @@ var init_contracts = __esm({
16228
16320
  init_chunk_Y6NC5CH5();
16229
16321
  init_chunk_C4HEZ7ZI();
16230
16322
  init_chunk_IR2NOSI3();
16231
- init_chunk_MT4ITTI4();
16232
- init_chunk_LCBRIVIN();
16323
+ init_chunk_47LPEX74();
16324
+ init_chunk_6AYIXGDT();
16233
16325
  init_chunk_YULHXJ5M();
16234
16326
  init_chunk_V4FRPRH5();
16235
16327
  init_chunk_LWMLR2WI();
@@ -16240,30 +16332,30 @@ var init_contracts = __esm({
16240
16332
  init_chunk_E4DIIOOE();
16241
16333
  init_chunk_7CYHPF35();
16242
16334
  init_chunk_BPCNB5RT();
16243
- init_chunk_LBKP4XCU();
16244
- init_chunk_SARVKRZB();
16335
+ init_chunk_VNGEV62J();
16336
+ init_chunk_6HXH56R4();
16245
16337
  init_chunk_HRKVCI5A();
16246
- init_chunk_ICE6SQZO();
16338
+ init_chunk_IW7D2QOD();
16247
16339
  init_chunk_2YEGUQR7();
16248
16340
  init_chunk_4D6K4P4K();
16249
16341
  init_chunk_LBDH7LCG();
16250
16342
  init_chunk_4LXDRTO4();
16251
16343
  init_chunk_JDJ4EUOL();
16252
16344
  init_chunk_NVKU5PPQ();
16253
- init_chunk_XMG3GA2R();
16345
+ init_chunk_6AIZYKDD();
16254
16346
  init_chunk_FECLIZTY();
16255
16347
  init_chunk_BFG4ZWR4();
16256
- init_chunk_YZAIZJTO();
16257
- init_chunk_TU4Y4MEX();
16348
+ init_chunk_C3V6PEQ7();
16349
+ init_chunk_7NQZRSSJ();
16258
16350
  init_chunk_D3EP4TDU();
16259
- init_chunk_2KNVPV7S();
16351
+ init_chunk_X5PZZVTS();
16260
16352
  init_chunk_K5UAZWFF();
16261
16353
  init_chunk_2PZIF56U();
16262
16354
  init_chunk_UEJOG2Q7();
16263
16355
  init_chunk_JO53JB35();
16264
- init_chunk_QUW6OYZR();
16265
- init_chunk_ZU2FJGU3();
16266
- init_chunk_S5SVBLGT();
16356
+ init_chunk_DJKJMVH5();
16357
+ init_chunk_R6Y377AW();
16358
+ init_chunk_UAOHHCW5();
16267
16359
  init_chunk_MBXNS7SI();
16268
16360
  init_chunk_IG6QBZMA();
16269
16361
  init_chunk_OMPT4ZHR();
@@ -18877,7 +18969,7 @@ var init_api_client = __esm({
18877
18969
  `/api/admin/data-explorer/debug/do/${doType}/${encodeURIComponent(doId)}/tables/${encodeURIComponent(table)}/rows${qs}`
18878
18970
  );
18879
18971
  }
18880
- /** A hub's or an organization's knowledge as numbers: the admin census's counts (no text). */
18972
+ /** A hub's or an organization's knowledge and stored secrets as numbers: the admin census's counts (no text). */
18881
18973
  async debugCounts(doType, doId) {
18882
18974
  return this.request("GET", `/api/admin/data-explorer/debug/do/${doType}/${encodeURIComponent(doId)}/counts`);
18883
18975
  }
@@ -21568,7 +21660,7 @@ var init_pages2 = __esm({
21568
21660
  var init_evals = __esm({
21569
21661
  "../../packages/core/dist/contracts/evals.js"() {
21570
21662
  "use strict";
21571
- init_chunk_ICE6SQZO();
21663
+ init_chunk_IW7D2QOD();
21572
21664
  init_chunk_2YEGUQR7();
21573
21665
  init_chunk_4D6K4P4K();
21574
21666
  init_chunk_4LXDRTO4();
@@ -39099,8 +39191,8 @@ Usage:
39099
39191
  wayai admin do tables <type> <id>
39100
39192
  wayai admin do read <type> <id> <table> [--limit N] [--id X] [--json]
39101
39193
  wayai admin do counts <hub|org> <id> [--json] Numbers, no text: a hub's toolset connections, knowledge placeholders per stored
39102
- text and (production) publish state; an org's skills, hub links and
39103
- moved-knowledge registry
39194
+ text, secret columns' shapes and (production) publish state; an org's
39195
+ skills, hub links, moved-knowledge registry and credentials' shapes
39104
39196
 
39105
39197
  wayai admin analytics tables
39106
39198
  wayai admin analytics read <table> [--conversation-id X] [--hub-id Y] [--message-id Z] [--limit N] [--json]