@wayai/cli 0.3.220 → 0.3.221

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
@@ -7544,15 +7544,15 @@ var init_chunk_MH4O3YEX = __esm({
7544
7544
  }
7545
7545
  });
7546
7546
 
7547
- // ../../packages/core/dist/chunk-QCQUZL4L.js
7547
+ // ../../packages/core/dist/chunk-LDSABSRL.js
7548
7548
  function catalogToolSideEffects(toolName) {
7549
7549
  const sideEffects = CATALOG_SIDE_EFFECTS.get(toolName);
7550
7550
  if (sideEffects === void 0) return "unknown";
7551
7551
  return sideEffects ? "side_effects" : "none";
7552
7552
  }
7553
7553
  var NATIVE_TOOL_SCHEMAS, WAYAI_CONNECTOR, SANDBOX_AGENT_ROLES, BASE_NATIVE_TOOLS, NATIVE_TOOLS, CATALOG_SIDE_EFFECTS;
7554
- var init_chunk_QCQUZL4L = __esm({
7555
- "../../packages/core/dist/chunk-QCQUZL4L.js"() {
7554
+ var init_chunk_LDSABSRL = __esm({
7555
+ "../../packages/core/dist/chunk-LDSABSRL.js"() {
7556
7556
  "use strict";
7557
7557
  init_chunk_DHPUPI4Y();
7558
7558
  NATIVE_TOOL_SCHEMAS = {
@@ -8442,7 +8442,7 @@ var init_chunk_QCQUZL4L = __esm({
8442
8442
  { tool_native_id: "nt-008", tool_name: "get_state", tool_display_name: "Get State", tool_description: "Retrieve conversation or user state values", connector_id: WAYAI_CONNECTOR, operation: "get_state", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: false, replay: "rerun" },
8443
8443
  { tool_native_id: "nt-009", tool_name: "reset_state", tool_display_name: "Reset State", tool_description: "Reset conversation or user state to initial values", connector_id: WAYAI_CONNECTOR, operation: "reset_state", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: false, replay: "rerun" },
8444
8444
  { tool_native_id: "nt-010", tool_name: "set_state_path", tool_display_name: "Set State Path", tool_description: "Set a specific path within state object", connector_id: WAYAI_CONNECTOR, operation: "set_state_path", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: false, replay: "rerun" },
8445
- { tool_native_id: "nt-011", tool_name: "consult_agent", tool_display_name: "Consult Agent", tool_description: "Consult an advisor agent for advice without transferring", connector_id: WAYAI_CONNECTOR, operation: "consult_agent", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: false, replay: "reconcile" },
8445
+ { tool_native_id: "nt-011", tool_name: "consult_agent", tool_display_name: "Consult Agent", tool_description: "Consult an advisor agent for advice without transferring", connector_id: WAYAI_CONNECTOR, operation: "consult_agent", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: false, replay: "keyed" },
8446
8446
  { tool_native_id: "nt-013", tool_name: "read_skill", tool_display_name: "Read Skill", tool_description: "Read the full specification of a skill", connector_id: WAYAI_CONNECTOR, operation: "read_skill", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: false, replay: "rerun" },
8447
8447
  { tool_native_id: "nt-014", tool_name: "read_skill_file", tool_display_name: "Read Skill File", tool_description: "Read a specific file within a skill", connector_id: WAYAI_CONNECTOR, operation: "read_skill_file", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: false, replay: "rerun" },
8448
8448
  { tool_native_id: "nt-015", tool_name: "read_file", tool_display_name: "Read File", tool_description: "Read the contents of a resource file", connector_id: WAYAI_CONNECTOR, operation: "read_file", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: false, replay: "rerun" },
@@ -8490,7 +8490,7 @@ var init_chunk_QCQUZL4L = __esm({
8490
8490
  // collect (and, for a consultant target, the `allow_consultant_chain` opt-in). A
8491
8491
  // live button that only ever errors is worse than no button. Assign via `wayai push`
8492
8492
  // until the picker ships.
8493
- { tool_native_id: "nt-026", tool_name: "start_consult_thread", tool_display_name: "Start Consult Thread", tool_description: "Ask a configured consultant (or partner hub) a question in a visible consult thread", connector_id: WAYAI_CONNECTOR, operation: "start_consult_thread", tool_method: "internal", tool_group: "Native Tools", is_delegation: true, is_auto_set: false, execution_config: null, side_effects: true, replay: "reconcile", ui_assignable: false },
8493
+ { tool_native_id: "nt-026", tool_name: "start_consult_thread", tool_display_name: "Start Consult Thread", tool_description: "Ask a configured consultant (or partner hub) a question in a visible consult thread", connector_id: WAYAI_CONNECTOR, operation: "start_consult_thread", tool_method: "internal", tool_group: "Native Tools", is_delegation: true, is_auto_set: false, execution_config: null, side_effects: true, replay: "keyed", ui_assignable: false },
8494
8494
  // One drill-down listing for every file namespace, replacing `list_resource_files`
8495
8495
  // (nt-016) and `list_resource_folders` (nt-017). Fully visible: it needs no
8496
8496
  // configuration the Add dialog cannot collect — the mounts an agent may browse
@@ -8764,7 +8764,7 @@ var init_chunk_T7KQKDET = __esm({
8764
8764
  }
8765
8765
  });
8766
8766
 
8767
- // ../../packages/core/dist/chunk-BQWVW6JO.js
8767
+ // ../../packages/core/dist/chunk-7EGDXEYG.js
8768
8768
  function resolveMonitorTrigger(monitorConfig) {
8769
8769
  if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
8770
8770
  const raw = monitorConfig.trigger;
@@ -9070,10 +9070,10 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
9070
9070
  if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
9071
9071
  }
9072
9072
  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;
9073
- var init_chunk_BQWVW6JO = __esm({
9074
- "../../packages/core/dist/chunk-BQWVW6JO.js"() {
9073
+ var init_chunk_7EGDXEYG = __esm({
9074
+ "../../packages/core/dist/chunk-7EGDXEYG.js"() {
9075
9075
  "use strict";
9076
- init_chunk_QCQUZL4L();
9076
+ init_chunk_LDSABSRL();
9077
9077
  init_chunk_IBL7FANV();
9078
9078
  init_chunk_PFDZEKDE();
9079
9079
  init_chunk_HZ6CADSY();
@@ -9296,12 +9296,12 @@ var init_chunk_BQWVW6JO = __esm({
9296
9296
  }
9297
9297
  });
9298
9298
 
9299
- // ../../packages/core/dist/chunk-SPE6FAYO.js
9299
+ // ../../packages/core/dist/chunk-3OWAWA5B.js
9300
9300
  var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
9301
- var init_chunk_SPE6FAYO = __esm({
9302
- "../../packages/core/dist/chunk-SPE6FAYO.js"() {
9301
+ var init_chunk_3OWAWA5B = __esm({
9302
+ "../../packages/core/dist/chunk-3OWAWA5B.js"() {
9303
9303
  "use strict";
9304
- init_chunk_BQWVW6JO();
9304
+ init_chunk_7EGDXEYG();
9305
9305
  init_chunk_HZ6CADSY();
9306
9306
  init_chunk_DHPUPI4Y();
9307
9307
  init_zod();
@@ -9757,7 +9757,7 @@ var init_chunk_BPCNB5RT = __esm({
9757
9757
  }
9758
9758
  });
9759
9759
 
9760
- // ../../packages/core/dist/chunk-LM3FU67F.js
9760
+ // ../../packages/core/dist/chunk-ROS7PLDY.js
9761
9761
  function idempotencyHeaderRefusal(value) {
9762
9762
  if (typeof value !== "string" || !/^[A-Za-z0-9][A-Za-z0-9-]{0,63}$/.test(value)) {
9763
9763
  return "idempotency_header must be a header name: letters, digits and dashes, at most 64";
@@ -9768,10 +9768,10 @@ function idempotencyHeaderRefusal(value) {
9768
9768
  return null;
9769
9769
  }
9770
9770
  var CATALOG_REPLAY, REPLAY_OVERRIDES, RESERVED_HEADERS;
9771
- var init_chunk_LM3FU67F = __esm({
9772
- "../../packages/core/dist/chunk-LM3FU67F.js"() {
9771
+ var init_chunk_ROS7PLDY = __esm({
9772
+ "../../packages/core/dist/chunk-ROS7PLDY.js"() {
9773
9773
  "use strict";
9774
- init_chunk_QCQUZL4L();
9774
+ init_chunk_LDSABSRL();
9775
9775
  CATALOG_REPLAY = new Map(
9776
9776
  NATIVE_TOOLS.map((tool) => [tool.tool_name, tool.replay])
9777
9777
  );
@@ -10004,7 +10004,7 @@ var init_chunk_WEXVYJ5H = __esm({
10004
10004
  }
10005
10005
  });
10006
10006
 
10007
- // ../../packages/core/dist/chunk-GEYJNCIJ.js
10007
+ // ../../packages/core/dist/chunk-AFIQ3FEW.js
10008
10008
  function refineToolConfig(value, ctx) {
10009
10009
  const raw = value.tool_config;
10010
10010
  if (raw == null) return;
@@ -10040,10 +10040,10 @@ function refineToolConfig(value, ctx) {
10040
10040
  }
10041
10041
  }
10042
10042
  var toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
10043
- var init_chunk_GEYJNCIJ = __esm({
10044
- "../../packages/core/dist/chunk-GEYJNCIJ.js"() {
10043
+ var init_chunk_AFIQ3FEW = __esm({
10044
+ "../../packages/core/dist/chunk-AFIQ3FEW.js"() {
10045
10045
  "use strict";
10046
- init_chunk_LM3FU67F();
10046
+ init_chunk_ROS7PLDY();
10047
10047
  init_chunk_WEXVYJ5H();
10048
10048
  init_chunk_HZ6CADSY();
10049
10049
  init_zod();
@@ -10154,7 +10154,7 @@ var init_chunk_2ISUBJG7 = __esm({
10154
10154
  }
10155
10155
  });
10156
10156
 
10157
- // ../../packages/core/dist/chunk-7MRZJN4O.js
10157
+ // ../../packages/core/dist/chunk-623SRYWZ.js
10158
10158
  function describeRole(role) {
10159
10159
  if (typeof role === "string") {
10160
10160
  return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
@@ -10328,8 +10328,8 @@ function terminalRunCount(counts) {
10328
10328
  return counts.successful_runs + counts.failed_runs;
10329
10329
  }
10330
10330
  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, evalCustomerContactIdSchema, 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;
10331
- var init_chunk_7MRZJN4O = __esm({
10332
- "../../packages/core/dist/chunk-7MRZJN4O.js"() {
10331
+ var init_chunk_623SRYWZ = __esm({
10332
+ "../../packages/core/dist/chunk-623SRYWZ.js"() {
10333
10333
  "use strict";
10334
10334
  init_chunk_4LXDRTO4();
10335
10335
  init_chunk_LZDVDC2S();
@@ -11415,7 +11415,7 @@ var init_chunk_6NI5RAM4 = __esm({
11415
11415
  }
11416
11416
  });
11417
11417
 
11418
- // ../../packages/core/dist/chunk-54QBGDXF.js
11418
+ // ../../packages/core/dist/chunk-NYIIBG23.js
11419
11419
  function refineHubAsCodeCustomTools(config, ctx) {
11420
11420
  const agents = config.agents;
11421
11421
  if (!Array.isArray(agents)) return;
@@ -11559,14 +11559,22 @@ function refineHubAsCodeEvals(config, ctx) {
11559
11559
  message: `eval "${entry?.name ?? "<unnamed>"}": ${initialStateError}`
11560
11560
  });
11561
11561
  }
11562
- const customerError = evalCustomerContactIdError(entry);
11563
- if (customerError) {
11564
- ctx.addIssue({
11565
- code: external_exports.ZodIssueCode.custom,
11566
- path: ["evals", e, "customer_contact_id"],
11567
- message: `eval "${entry?.name ?? "<unnamed>"}": ${customerError}`
11568
- });
11569
- }
11562
+ }
11563
+ }
11564
+ function refineHubAsCodeCustomers(config, ctx) {
11565
+ for (const [key, kind] of [["evals", "eval"], ["journeys", "journey"]]) {
11566
+ const entries = config[key];
11567
+ if (!Array.isArray(entries)) continue;
11568
+ entries.forEach((entry, i) => {
11569
+ const error = evalCustomerContactIdError(entry);
11570
+ if (error) {
11571
+ ctx.addIssue({
11572
+ code: external_exports.ZodIssueCode.custom,
11573
+ path: [key, i, "customer_contact_id"],
11574
+ message: `${kind} "${entry?.name ?? "<unnamed>"}": ${error}`
11575
+ });
11576
+ }
11577
+ });
11570
11578
  }
11571
11579
  }
11572
11580
  function refineHubAsCodeEvalAttachments(config, ctx) {
@@ -11943,12 +11951,12 @@ function refineHubAsCodeMonitorRulesOutput(config, ctx) {
11943
11951
  });
11944
11952
  }
11945
11953
  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_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, boundedHubAsCodeResourcesSchema, 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;
11946
- var init_chunk_54QBGDXF = __esm({
11947
- "../../packages/core/dist/chunk-54QBGDXF.js"() {
11954
+ var init_chunk_NYIIBG23 = __esm({
11955
+ "../../packages/core/dist/chunk-NYIIBG23.js"() {
11948
11956
  "use strict";
11949
- init_chunk_GEYJNCIJ();
11950
- init_chunk_7MRZJN4O();
11951
- init_chunk_BQWVW6JO();
11957
+ init_chunk_AFIQ3FEW();
11958
+ init_chunk_623SRYWZ();
11959
+ init_chunk_7EGDXEYG();
11952
11960
  init_chunk_LBDH7LCG();
11953
11961
  init_chunk_4LXDRTO4();
11954
11962
  init_chunk_T4Q5COKJ();
@@ -12052,6 +12060,7 @@ var init_chunk_54QBGDXF = __esm({
12052
12060
  refineHubAsCodeLanes(config, ctx);
12053
12061
  refineHubAsCodePresentation(config, ctx);
12054
12062
  refineHubAsCodeEvals(config, ctx);
12063
+ refineHubAsCodeCustomers(config, ctx);
12055
12064
  refineHubAsCodeEvalAttachments(config, ctx);
12056
12065
  refineHubAsCodeCallOpenings(config, ctx);
12057
12066
  refineHubAsCodeResources(config, ctx);
@@ -12788,10 +12797,10 @@ var init_chunk_YULHXJ5M = __esm({
12788
12797
  }
12789
12798
  });
12790
12799
 
12791
- // ../../packages/core/dist/chunk-3O5XTDI2.js
12800
+ // ../../packages/core/dist/chunk-V4FRPRH5.js
12792
12801
  var CONSULT_THREAD_STATUSES, consultThreadStatus, CONSULT_THREAD_TITLE_MAX, consultThreadTitle, consultThreadSummary, listConsultThreadsQuery, listConsultThreadsResponse, createConsultThreadBody, createConsultThreadResponse, consultThreadIdParam, updateConsultThreadBody, updateConsultThreadResponse, CONSULT_AWAIT_TIMEOUT_MS;
12793
- var init_chunk_3O5XTDI2 = __esm({
12794
- "../../packages/core/dist/chunk-3O5XTDI2.js"() {
12802
+ var init_chunk_V4FRPRH5 = __esm({
12803
+ "../../packages/core/dist/chunk-V4FRPRH5.js"() {
12795
12804
  "use strict";
12796
12805
  init_zod();
12797
12806
  CONSULT_THREAD_STATUSES = ["open", "awaiting", "resolved", "cancelled_at_close"];
@@ -12972,13 +12981,13 @@ var init_chunk_F3JHI4Y4 = __esm({
12972
12981
  }
12973
12982
  });
12974
12983
 
12975
- // ../../packages/core/dist/chunk-MTQ6G7VB.js
12984
+ // ../../packages/core/dist/chunk-GCKAPAPC.js
12976
12985
  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;
12977
- var init_chunk_MTQ6G7VB = __esm({
12978
- "../../packages/core/dist/chunk-MTQ6G7VB.js"() {
12986
+ var init_chunk_GCKAPAPC = __esm({
12987
+ "../../packages/core/dist/chunk-GCKAPAPC.js"() {
12979
12988
  "use strict";
12980
12989
  init_chunk_LQY2OCQL();
12981
- init_chunk_BQWVW6JO();
12990
+ init_chunk_7EGDXEYG();
12982
12991
  init_chunk_3HSB6J4J();
12983
12992
  init_chunk_F3JHI4Y4();
12984
12993
  init_chunk_DHPUPI4Y();
@@ -14252,24 +14261,24 @@ var init_contracts = __esm({
14252
14261
  init_chunk_LWMLR2WI();
14253
14262
  init_chunk_ACGAI25T();
14254
14263
  init_chunk_MH4O3YEX();
14255
- init_chunk_SPE6FAYO();
14264
+ init_chunk_3OWAWA5B();
14256
14265
  init_chunk_KSTYTQ7I();
14257
14266
  init_chunk_LKBSHANA();
14258
14267
  init_chunk_BPCNB5RT();
14259
- init_chunk_54QBGDXF();
14260
- init_chunk_GEYJNCIJ();
14261
- init_chunk_7MRZJN4O();
14268
+ init_chunk_NYIIBG23();
14269
+ init_chunk_AFIQ3FEW();
14270
+ init_chunk_623SRYWZ();
14262
14271
  init_chunk_JDJ4EUOL();
14263
14272
  init_chunk_3KYTITOR();
14264
14273
  init_chunk_XCDUP42J();
14265
14274
  init_chunk_6J742GLA();
14266
14275
  init_chunk_ZVXO3XL6();
14267
14276
  init_chunk_YULHXJ5M();
14268
- init_chunk_3O5XTDI2();
14277
+ init_chunk_V4FRPRH5();
14269
14278
  init_chunk_ZHJEQBXJ();
14270
- init_chunk_MTQ6G7VB();
14279
+ init_chunk_GCKAPAPC();
14271
14280
  init_chunk_LQY2OCQL();
14272
- init_chunk_BQWVW6JO();
14281
+ init_chunk_7EGDXEYG();
14273
14282
  init_chunk_3HSB6J4J();
14274
14283
  init_chunk_IG6QBZMA();
14275
14284
  init_chunk_ZJJ5ODOD();
@@ -14279,8 +14288,8 @@ var init_contracts = __esm({
14279
14288
  init_chunk_E4DIIOOE();
14280
14289
  init_chunk_7CYHPF35();
14281
14290
  init_chunk_FMXFEZN4();
14282
- init_chunk_LM3FU67F();
14283
- init_chunk_QCQUZL4L();
14291
+ init_chunk_ROS7PLDY();
14292
+ init_chunk_LDSABSRL();
14284
14293
  init_chunk_NVKU5PPQ();
14285
14294
  init_chunk_2FCLSQSQ();
14286
14295
  init_chunk_FECLIZTY();
@@ -20412,6 +20421,13 @@ function parseJourneyYaml(filePath2, relPath, hubFolder, bytesByHash) {
20412
20421
  }
20413
20422
  const variables = parseVariablesMap(data.variables, `Journey "${journeyName}" in ${relPath}`);
20414
20423
  if (variables) journeyEntry.variables = variables;
20424
+ const customer = parseFixtureField(
20425
+ data.customer_contact_id,
20426
+ `Journey "${journeyName}" in ${relPath}`,
20427
+ "customer_contact_id",
20428
+ "the customer's contact id"
20429
+ );
20430
+ if (customer) journeyEntry.customer_contact_id = customer;
20415
20431
  const fixture = parseFixtureField(data.fixture, `Journey "${journeyName}" in ${relPath}`, "fixture");
20416
20432
  if (fixture) journeyEntry.fixture = fixture;
20417
20433
  const targetBase = parseFixtureField(data.target_base, `Journey "${journeyName}" in ${relPath}`, "target_base");
@@ -20794,6 +20810,9 @@ function buildJourneyYamlObject(journeyEntry, slug) {
20794
20810
  if (typeof journeyEntry.target_base === "string" && journeyEntry.target_base.trim()) {
20795
20811
  out.target_base = journeyEntry.target_base.trim();
20796
20812
  }
20813
+ if (typeof journeyEntry.customer_contact_id === "string" && journeyEntry.customer_contact_id) {
20814
+ out.customer_contact_id = journeyEntry.customer_contact_id;
20815
+ }
20797
20816
  if (journeyEntry.variables && Object.keys(journeyEntry.variables).length > 0) {
20798
20817
  out.variables = journeyEntry.variables;
20799
20818
  }