@wayai/cli 0.3.274 → 0.3.275

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
@@ -12595,7 +12595,17 @@ var init_chunk_BPCNB5RT = __esm({
12595
12595
  }
12596
12596
  });
12597
12597
 
12598
- // ../../packages/core/dist/chunk-SARVKRZB.js
12598
+ // ../../packages/core/dist/chunk-6HXH56R4.js
12599
+ function toolParametersViolations(params) {
12600
+ try {
12601
+ if (containsKanbanPlaceholders(params)) return [];
12602
+ const result = validateToolInputSchema(params);
12603
+ return result.ok ? [] : result.errors;
12604
+ } catch (error) {
12605
+ if (!(error instanceof RangeError)) throw error;
12606
+ return [{ path: "", message: "parameters are nested too deeply to serialize" }];
12607
+ }
12608
+ }
12599
12609
  function refineToolConfig(value, ctx) {
12600
12610
  const raw = value.tool_config;
12601
12611
  if (raw == null) return;
@@ -12618,21 +12628,17 @@ function refineToolConfig(value, ctx) {
12618
12628
  }
12619
12629
  return;
12620
12630
  }
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
- }
12631
+ for (const err of toolParametersViolations(params)) {
12632
+ ctx.addIssue({
12633
+ code: external_exports.ZodIssueCode.custom,
12634
+ path: ["tool_config", "parameters", ...err.path.split(".").filter(Boolean)],
12635
+ message: err.suggestion ? `${err.message} \u2014 ${err.suggestion}` : err.message
12636
+ });
12631
12637
  }
12632
12638
  }
12633
12639
  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"() {
12640
+ var init_chunk_6HXH56R4 = __esm({
12641
+ "../../packages/core/dist/chunk-6HXH56R4.js"() {
12636
12642
  "use strict";
12637
12643
  init_chunk_WEXVYJ5H();
12638
12644
  init_chunk_HZ6CADSY();
@@ -12743,7 +12749,7 @@ var init_chunk_2ISUBJG7 = __esm({
12743
12749
  }
12744
12750
  });
12745
12751
 
12746
- // ../../packages/core/dist/chunk-ICE6SQZO.js
12752
+ // ../../packages/core/dist/chunk-IW7D2QOD.js
12747
12753
  function describeRole(role) {
12748
12754
  if (typeof role === "string") {
12749
12755
  return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
@@ -12785,7 +12791,7 @@ function evalTurnAttachmentsError(turn) {
12785
12791
  if (attachments.length > MAX_ATTACHMENTS_PER_MESSAGE) {
12786
12792
  return `attachments must have at most ${MAX_ATTACHMENTS_PER_MESSAGE} items`;
12787
12793
  }
12788
- if (!turnMayCarryAttachments({ role: String(record.role), attachments })) {
12794
+ if (!turnMayCarryAttachments({ role: record.role, attachments })) {
12789
12795
  return ATTACHMENTS_USER_ONLY_MESSAGE;
12790
12796
  }
12791
12797
  for (let i = 0; i < attachments.length; i++) {
@@ -12922,8 +12928,8 @@ function terminalRunCount(counts) {
12922
12928
  return counts.successful_runs + counts.failed_runs;
12923
12929
  }
12924
12930
  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"() {
12931
+ var init_chunk_IW7D2QOD = __esm({
12932
+ "../../packages/core/dist/chunk-IW7D2QOD.js"() {
12927
12933
  "use strict";
12928
12934
  init_chunk_2YEGUQR7();
12929
12935
  init_chunk_4D6K4P4K();
@@ -13340,7 +13346,7 @@ var init_chunk_D3EP4TDU = __esm({
13340
13346
  }
13341
13347
  });
13342
13348
 
13343
- // ../../packages/core/dist/chunk-2KNVPV7S.js
13349
+ // ../../packages/core/dist/chunk-X5PZZVTS.js
13344
13350
  function isEventRelativeFollowupType(type) {
13345
13351
  return typeof type === "string" && EVENT_RELATIVE_FOLLOWUP_TYPES.includes(type);
13346
13352
  }
@@ -13405,14 +13411,18 @@ function validateFollowupLinks(followups, label2, ctx) {
13405
13411
  });
13406
13412
  }
13407
13413
  }
13414
+ function printableName(value) {
13415
+ return typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? value : "<unnamed>";
13416
+ }
13408
13417
  function validateLaneReferences(lanes, statuses) {
13409
13418
  const issues = [];
13410
13419
  if (!Array.isArray(statuses) || statuses.length === 0) return issues;
13411
13420
  const declared = new Set((Array.isArray(lanes) ? lanes : []).map((l) => l.slug).filter(Boolean));
13412
13421
  statuses.forEach((s, i) => {
13422
+ if (s === null) return;
13413
13423
  const lane = s.lane_slug;
13414
13424
  if (typeof lane !== "string" || lane.length === 0) return;
13415
- const label2 = s.slug ? `"${s.slug}"` : `[${i}]`;
13425
+ const label2 = s.slug ? `"${printableName(s.slug)}"` : `[${i}]`;
13416
13426
  if (s.isInitialStatus === true) {
13417
13427
  issues.push({
13418
13428
  path: [i, "lane_slug"],
@@ -13430,8 +13440,8 @@ function validateLaneReferences(lanes, statuses) {
13430
13440
  return issues;
13431
13441
  }
13432
13442
  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"() {
13443
+ var init_chunk_X5PZZVTS = __esm({
13444
+ "../../packages/core/dist/chunk-X5PZZVTS.js"() {
13435
13445
  "use strict";
13436
13446
  init_chunk_6TSQ5HXC();
13437
13447
  init_chunk_HZ6CADSY();
@@ -13772,7 +13782,7 @@ var init_chunk_K5UAZWFF = __esm({
13772
13782
  }
13773
13783
  });
13774
13784
 
13775
- // ../../packages/core/dist/chunk-TU4Y4MEX.js
13785
+ // ../../packages/core/dist/chunk-7NQZRSSJ.js
13776
13786
  function refineLaneReferences(val, ctx) {
13777
13787
  const lanes = val.lanes;
13778
13788
  const statuses = val.kanban_statuses;
@@ -13796,11 +13806,11 @@ function describeSyncWarning(warning) {
13796
13806
  return `${label2}: ${parts.join("; ")}. Promote the base so production's tools match the preview's.`;
13797
13807
  }
13798
13808
  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"() {
13809
+ var init_chunk_7NQZRSSJ = __esm({
13810
+ "../../packages/core/dist/chunk-7NQZRSSJ.js"() {
13801
13811
  "use strict";
13802
13812
  init_chunk_D3EP4TDU();
13803
- init_chunk_2KNVPV7S();
13813
+ init_chunk_X5PZZVTS();
13804
13814
  init_chunk_K5UAZWFF();
13805
13815
  init_chunk_HZ6CADSY();
13806
13816
  init_zod();
@@ -13996,7 +14006,7 @@ var init_chunk_TU4Y4MEX = __esm({
13996
14006
  }
13997
14007
  });
13998
14008
 
13999
- // ../../packages/core/dist/chunk-LBKP4XCU.js
14009
+ // ../../packages/core/dist/chunk-YFQXT7IT.js
14000
14010
  function refineHubAsCodeCustomTools(config, ctx) {
14001
14011
  const agents = config.agents;
14002
14012
  if (!Array.isArray(agents)) return;
@@ -14011,7 +14021,7 @@ function refineHubAsCodeCustomTools(config, ctx) {
14011
14021
  ctx.addIssue({
14012
14022
  code: external_exports.ZodIssueCode.custom,
14013
14023
  path: ["agents", a, "tools", "custom", c, ...issue.path],
14014
- message: `custom tool "${tool?.name ?? "<unnamed>"}": ${issue.path.join(".")}: ${issue.message}`
14024
+ message: `custom tool "${printableName(tool?.name)}": ${issue.path.join(".")}: ${issue.message}`
14015
14025
  });
14016
14026
  }
14017
14027
  const raw = tool?.config;
@@ -14030,22 +14040,18 @@ function refineHubAsCodeCustomTools(config, ctx) {
14030
14040
  ctx.addIssue({
14031
14041
  code: external_exports.ZodIssueCode.custom,
14032
14042
  path: ["agents", a, "tools", "custom", c, "config"],
14033
- message: `custom tool "${tool?.name ?? "<unnamed>"}": config must be an object`
14043
+ message: `custom tool "${printableName(tool?.name)}": config must be an object`
14034
14044
  });
14035
14045
  }
14036
14046
  continue;
14037
14047
  }
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
- }
14048
+ for (const err of toolParametersViolations(params)) {
14049
+ const tail = err.path.split(".").filter(Boolean);
14050
+ ctx.addIssue({
14051
+ code: external_exports.ZodIssueCode.custom,
14052
+ path: ["agents", a, "tools", "custom", c, "config", "parameters", ...tail],
14053
+ message: `custom tool "${printableName(tool?.name)}": ${err.message}${err.suggestion ? ` \u2014 ${err.suggestion}` : ""}`
14054
+ });
14049
14055
  }
14050
14056
  }
14051
14057
  }
@@ -14129,7 +14135,7 @@ function refineHubAsCodeEvals(config, ctx) {
14129
14135
  code: external_exports.ZodIssueCode.custom,
14130
14136
  path: ["evals", e, "input", "role"],
14131
14137
  // Named, not just indexed — the YAML author has files, not an array.
14132
- message: `eval "${entry?.name ?? "<unnamed>"}": ${error}`
14138
+ message: `eval "${printableName(entry?.name)}": ${error}`
14133
14139
  });
14134
14140
  }
14135
14141
  const initialStateError = evalInitialStateError(entry);
@@ -14137,7 +14143,7 @@ function refineHubAsCodeEvals(config, ctx) {
14137
14143
  ctx.addIssue({
14138
14144
  code: external_exports.ZodIssueCode.custom,
14139
14145
  path: ["evals", e, "initial_state"],
14140
- message: `eval "${entry?.name ?? "<unnamed>"}": ${initialStateError}`
14146
+ message: `eval "${printableName(entry?.name)}": ${initialStateError}`
14141
14147
  });
14142
14148
  }
14143
14149
  }
@@ -14152,7 +14158,7 @@ function refineHubAsCodePersons(config, ctx) {
14152
14158
  ctx.addIssue({
14153
14159
  code: external_exports.ZodIssueCode.custom,
14154
14160
  path: [key, i, issue.key],
14155
- message: `${kind} "${entry?.name ?? "<unnamed>"}": ${issue.message}`
14161
+ message: `${kind} "${printableName(entry?.name)}": ${issue.message}`
14156
14162
  });
14157
14163
  }
14158
14164
  });
@@ -14172,7 +14178,7 @@ function refineHubAsCodeEvalAttachments(config, ctx) {
14172
14178
  if (Array.isArray(cfg.evals)) {
14173
14179
  cfg.evals.forEach((entry, e) => {
14174
14180
  const ev = entry;
14175
- const name = `eval "${ev?.name ?? "<unnamed>"}"`;
14181
+ const name = `eval "${printableName(ev?.name)}"`;
14176
14182
  addTurnIssue(["evals", e, "input"], ev?.input, name);
14177
14183
  if (Array.isArray(ev?.history)) {
14178
14184
  ev.history.forEach((turn, h) => addTurnIssue(["evals", e, "history", h], turn, name));
@@ -14182,7 +14188,7 @@ function refineHubAsCodeEvalAttachments(config, ctx) {
14182
14188
  if (Array.isArray(cfg.journeys)) {
14183
14189
  cfg.journeys.forEach((entry, j) => {
14184
14190
  const jr = entry;
14185
- const name = `journey "${jr?.name ?? "<unnamed>"}"`;
14191
+ const name = `journey "${printableName(jr?.name)}"`;
14186
14192
  if (Array.isArray(jr?.transcript)) {
14187
14193
  jr.transcript.forEach((turn, t) => addTurnIssue(["journeys", j, "transcript", t], turn, name));
14188
14194
  }
@@ -14380,10 +14386,19 @@ function refineHubAsCodeResources(config, ctx) {
14380
14386
  function refineHubAsCodeDelegation(config, ctx) {
14381
14387
  const agents = config?.agents;
14382
14388
  if (!Array.isArray(agents)) return;
14389
+ const got = (value) => printableName(value ?? String(value));
14383
14390
  agents.forEach((agent, agentIndex) => {
14384
14391
  const delegation = agent?.tools?.delegation;
14385
14392
  if (!Array.isArray(delegation)) return;
14386
14393
  delegation.forEach((entry, delIndex) => {
14394
+ if (entry === null) {
14395
+ ctx.addIssue({
14396
+ code: external_exports.ZodIssueCode.custom,
14397
+ path: ["agents", agentIndex, "tools", "delegation", delIndex],
14398
+ message: `Agent "${printableName(agent.name)}": a delegation entry must be an object`
14399
+ });
14400
+ return;
14401
+ }
14387
14402
  const del = entry;
14388
14403
  if (del.allow_consultant_chain !== void 0) {
14389
14404
  const chainPath = ["agents", agentIndex, "tools", "delegation", delIndex, "allow_consultant_chain"];
@@ -14397,7 +14412,7 @@ function refineHubAsCodeDelegation(config, ctx) {
14397
14412
  ctx.addIssue({
14398
14413
  code: external_exports.ZodIssueCode.custom,
14399
14414
  path: chainPath,
14400
- message: `allow_consultant_chain applies only to \`tool: start_consult_thread\` (got "${String(del.tool)}")`
14415
+ message: `allow_consultant_chain applies only to \`tool: start_consult_thread\` (got "${got(del.tool)}")`
14401
14416
  });
14402
14417
  }
14403
14418
  }
@@ -14407,7 +14422,7 @@ function refineHubAsCodeDelegation(config, ctx) {
14407
14422
  ctx.addIssue({
14408
14423
  code: external_exports.ZodIssueCode.custom,
14409
14424
  path: path45,
14410
- message: `context_boundary applies only to \`type: hub\` delegations (got type "${String(del.type)}")`
14425
+ message: `context_boundary applies only to \`type: hub\` delegations (got type "${got(del.type)}")`
14411
14426
  });
14412
14427
  return;
14413
14428
  }
@@ -14430,15 +14445,15 @@ function refuseNonBooleanFlag(ctx, subject, entry, key, path45) {
14430
14445
  function refineHubAsCodeFlags(config, ctx) {
14431
14446
  const { agents, connections, evals, journeys, teams } = config;
14432
14447
  flagEntriesOf(agents).forEach((agent, agentIndex) => {
14433
- const subject = `Agent "${flagEntryName(agent.name)}"`;
14448
+ const subject = `Agent "${printableName(agent.name)}"`;
14434
14449
  const at = ["agents", agentIndex];
14435
14450
  refuseNonBooleanFlag(ctx, subject, agent, "enabled", at);
14436
14451
  flagEntriesOf(agent.resources).forEach((link, linkIndex) => {
14437
- refuseNonBooleanFlag(ctx, `${subject}, skill "${flagEntryName(link.name)}"`, link, "enabled", [...at, "resources", linkIndex]);
14452
+ refuseNonBooleanFlag(ctx, `${subject}, skill "${printableName(link.name)}"`, link, "enabled", [...at, "resources", linkIndex]);
14438
14453
  });
14439
14454
  for (const group of HUB_AS_CODE_AGENT_TOOL_KEYS) {
14440
14455
  flagEntriesOf(agent.tools?.[group]).forEach((entry, entryIndex) => {
14441
- const tool = `${subject}, tool "${flagEntryName(entry.name ?? entry.tool)}"`;
14456
+ const tool = `${subject}, tool "${printableName(entry.name ?? entry.tool)}"`;
14442
14457
  const entryAt = [...at, "tools", group, entryIndex];
14443
14458
  refuseNonBooleanFlag(ctx, tool, entry, "enabled", entryAt);
14444
14459
  if (group === "custom" || group === "native") refuseNonBooleanFlag(ctx, tool, entry, "expose_schema_to_llm", entryAt);
@@ -14452,7 +14467,7 @@ function refineHubAsCodeFlags(config, ctx) {
14452
14467
  ["teams", "Team", teams, ["display_only_if_claimed"]]
14453
14468
  ]) {
14454
14469
  flagEntriesOf(list2).forEach((entry, index) => {
14455
- for (const key of keys) refuseNonBooleanFlag(ctx, `${noun} "${flagEntryName(entry.name)}"`, entry, key, [section, index]);
14470
+ for (const key of keys) refuseNonBooleanFlag(ctx, `${noun} "${printableName(entry.name)}"`, entry, key, [section, index]);
14456
14471
  });
14457
14472
  }
14458
14473
  }
@@ -14640,23 +14655,24 @@ function skillSectionsAsResources(scope) {
14640
14655
  return out;
14641
14656
  };
14642
14657
  }
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"() {
14658
+ 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, 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;
14659
+ var init_chunk_YFQXT7IT = __esm({
14660
+ "../../packages/core/dist/chunk-YFQXT7IT.js"() {
14646
14661
  "use strict";
14647
- init_chunk_SARVKRZB();
14662
+ init_chunk_6HXH56R4();
14648
14663
  init_chunk_HRKVCI5A();
14649
- init_chunk_ICE6SQZO();
14664
+ init_chunk_IW7D2QOD();
14650
14665
  init_chunk_LBDH7LCG();
14651
14666
  init_chunk_4LXDRTO4();
14652
- init_chunk_TU4Y4MEX();
14653
- init_chunk_2KNVPV7S();
14667
+ init_chunk_7NQZRSSJ();
14668
+ init_chunk_X5PZZVTS();
14654
14669
  init_chunk_K5UAZWFF();
14655
14670
  init_chunk_MBXNS7SI();
14656
14671
  init_chunk_S4VDZ7PZ();
14657
14672
  init_chunk_C2UEA2KW();
14658
14673
  init_chunk_FBV7NLKO();
14659
14674
  init_chunk_WEXVYJ5H();
14675
+ init_chunk_HZ6CADSY();
14660
14676
  init_chunk_G4HTKQCL();
14661
14677
  init_chunk_YROEDMVZ();
14662
14678
  init_zod();
@@ -14672,7 +14688,7 @@ var init_chunk_LBKP4XCU = __esm({
14672
14688
  MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS = 64 * 1024;
14673
14689
  hubAsCodePagesSchema = external_exports.array(external_exports.object({
14674
14690
  manifest: external_exports.record(external_exports.unknown()).superRefine((manifest, ctx) => {
14675
- if (JSON.stringify(manifest).length > MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS) {
14691
+ if (!withinJsonLength(manifest, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS)) {
14676
14692
  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
14693
  }
14678
14694
  }),
@@ -14731,7 +14747,6 @@ var init_chunk_LBKP4XCU = __esm({
14731
14747
  uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
14732
14748
  ciUuidSchema = external_exports.string().regex(uuidPattern, "must be a valid UUID");
14733
14749
  flagEntriesOf = (list2) => Array.isArray(list2) ? list2.map((entry) => entry ?? {}) : [];
14734
- flagEntryName = (name) => typeof name === "string" || typeof name === "number" ? name : "<unnamed>";
14735
14750
  boundedHubAsCodeResourcesSchema = external_exports.unknown().superRefine((resources, ctx) => {
14736
14751
  if (!Array.isArray(resources)) return;
14737
14752
  if (resources.length > MAX_HUB_AS_CODE_RESOURCES) {
@@ -14742,7 +14757,7 @@ var init_chunk_LBKP4XCU = __esm({
14742
14757
  return;
14743
14758
  }
14744
14759
  flagEntriesOf(resources).forEach((skill, index) => {
14745
- refuseNonBooleanFlag(ctx, `Skill "${flagEntryName(skill.name)}"`, skill, "enabled", [index]);
14760
+ refuseNonBooleanFlag(ctx, `Skill "${printableName(skill.name)}"`, skill, "enabled", [index]);
14746
14761
  });
14747
14762
  let fileCount = 0;
14748
14763
  for (const resource of resources) {
@@ -15015,10 +15030,10 @@ var init_chunk_BFG4ZWR4 = __esm({
15015
15030
  }
15016
15031
  });
15017
15032
 
15018
- // ../../packages/core/dist/chunk-YZAIZJTO.js
15033
+ // ../../packages/core/dist/chunk-C3V6PEQ7.js
15019
15034
  var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
15020
- var init_chunk_YZAIZJTO = __esm({
15021
- "../../packages/core/dist/chunk-YZAIZJTO.js"() {
15035
+ var init_chunk_C3V6PEQ7 = __esm({
15036
+ "../../packages/core/dist/chunk-C3V6PEQ7.js"() {
15022
15037
  "use strict";
15023
15038
  init_zod();
15024
15039
  dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
@@ -15129,7 +15144,7 @@ var init_chunk_OMPT4ZHR = __esm({
15129
15144
  }
15130
15145
  });
15131
15146
 
15132
- // ../../packages/core/dist/chunk-XMG3GA2R.js
15147
+ // ../../packages/core/dist/chunk-6AIZYKDD.js
15133
15148
  function refineScopedTarget(data, ctx) {
15134
15149
  if (data.scope === "org") {
15135
15150
  if (!data.org_id) {
@@ -15155,13 +15170,13 @@ function refineScopedTarget(data, ctx) {
15155
15170
  }
15156
15171
  }
15157
15172
  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"() {
15173
+ var init_chunk_6AIZYKDD = __esm({
15174
+ "../../packages/core/dist/chunk-6AIZYKDD.js"() {
15160
15175
  "use strict";
15161
15176
  init_chunk_FECLIZTY();
15162
15177
  init_chunk_BFG4ZWR4();
15163
- init_chunk_YZAIZJTO();
15164
- init_chunk_TU4Y4MEX();
15178
+ init_chunk_C3V6PEQ7();
15179
+ init_chunk_7NQZRSSJ();
15165
15180
  init_chunk_OMPT4ZHR();
15166
15181
  init_chunk_HZ6CADSY();
15167
15182
  init_chunk_MIWZOSPI();
@@ -16240,23 +16255,23 @@ var init_contracts = __esm({
16240
16255
  init_chunk_E4DIIOOE();
16241
16256
  init_chunk_7CYHPF35();
16242
16257
  init_chunk_BPCNB5RT();
16243
- init_chunk_LBKP4XCU();
16244
- init_chunk_SARVKRZB();
16258
+ init_chunk_YFQXT7IT();
16259
+ init_chunk_6HXH56R4();
16245
16260
  init_chunk_HRKVCI5A();
16246
- init_chunk_ICE6SQZO();
16261
+ init_chunk_IW7D2QOD();
16247
16262
  init_chunk_2YEGUQR7();
16248
16263
  init_chunk_4D6K4P4K();
16249
16264
  init_chunk_LBDH7LCG();
16250
16265
  init_chunk_4LXDRTO4();
16251
16266
  init_chunk_JDJ4EUOL();
16252
16267
  init_chunk_NVKU5PPQ();
16253
- init_chunk_XMG3GA2R();
16268
+ init_chunk_6AIZYKDD();
16254
16269
  init_chunk_FECLIZTY();
16255
16270
  init_chunk_BFG4ZWR4();
16256
- init_chunk_YZAIZJTO();
16257
- init_chunk_TU4Y4MEX();
16271
+ init_chunk_C3V6PEQ7();
16272
+ init_chunk_7NQZRSSJ();
16258
16273
  init_chunk_D3EP4TDU();
16259
- init_chunk_2KNVPV7S();
16274
+ init_chunk_X5PZZVTS();
16260
16275
  init_chunk_K5UAZWFF();
16261
16276
  init_chunk_2PZIF56U();
16262
16277
  init_chunk_UEJOG2Q7();
@@ -18877,7 +18892,7 @@ var init_api_client = __esm({
18877
18892
  `/api/admin/data-explorer/debug/do/${doType}/${encodeURIComponent(doId)}/tables/${encodeURIComponent(table)}/rows${qs}`
18878
18893
  );
18879
18894
  }
18880
- /** A hub's or an organization's knowledge as numbers: the admin census's counts (no text). */
18895
+ /** A hub's or an organization's knowledge and stored secrets as numbers: the admin census's counts (no text). */
18881
18896
  async debugCounts(doType, doId) {
18882
18897
  return this.request("GET", `/api/admin/data-explorer/debug/do/${doType}/${encodeURIComponent(doId)}/counts`);
18883
18898
  }
@@ -21568,7 +21583,7 @@ var init_pages2 = __esm({
21568
21583
  var init_evals = __esm({
21569
21584
  "../../packages/core/dist/contracts/evals.js"() {
21570
21585
  "use strict";
21571
- init_chunk_ICE6SQZO();
21586
+ init_chunk_IW7D2QOD();
21572
21587
  init_chunk_2YEGUQR7();
21573
21588
  init_chunk_4D6K4P4K();
21574
21589
  init_chunk_4LXDRTO4();
@@ -39099,8 +39114,8 @@ Usage:
39099
39114
  wayai admin do tables <type> <id>
39100
39115
  wayai admin do read <type> <id> <table> [--limit N] [--id X] [--json]
39101
39116
  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
39117
+ text, secret columns' shapes and (production) publish state; an org's
39118
+ skills, hub links, moved-knowledge registry and credentials' shapes
39104
39119
 
39105
39120
  wayai admin analytics tables
39106
39121
  wayai admin analytics read <table> [--conversation-id X] [--hub-id Y] [--message-id Z] [--limit N] [--json]