@wayai/cli 0.3.254 → 0.3.256

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
@@ -5553,10 +5553,10 @@ var init_chunk_ACKF2MVU = __esm({
5553
5553
  }
5554
5554
  });
5555
5555
 
5556
- // ../../packages/core/dist/chunk-K2UY4M4E.js
5556
+ // ../../packages/core/dist/chunk-JOPEQ3WP.js
5557
5557
  var accessExplainQuery;
5558
- var init_chunk_K2UY4M4E = __esm({
5559
- "../../packages/core/dist/chunk-K2UY4M4E.js"() {
5558
+ var init_chunk_JOPEQ3WP = __esm({
5559
+ "../../packages/core/dist/chunk-JOPEQ3WP.js"() {
5560
5560
  "use strict";
5561
5561
  init_chunk_HZ6CADSY();
5562
5562
  init_zod();
@@ -6781,10 +6781,10 @@ var init_chunk_FPSDNS2E = __esm({
6781
6781
  }
6782
6782
  });
6783
6783
 
6784
- // ../../packages/core/dist/chunk-UE4KTV2N.js
6784
+ // ../../packages/core/dist/chunk-BNHJNSAJ.js
6785
6785
  var REKOR_ACTOR_TYPE_HEADER, REKOR_ACTOR_ID_HEADER, REKOR_ACTOR_LABEL_HEADER, REKOR_ACTOR_ORG_HEADER, REKOR_ACTOR_ADMIN_HEADER, REKOR_CLIENT_HEADER, REKOR_TOOL_ID_HEADER, REKOR_CLIENTS, rekorClientSchema, MAX_REKOR_TOOL_ID_LENGTH, rekorToolIdSchema, REKOR_V1_PREFIX, DATA_PROXY_ORG_QUERY_PARAM, MAX_PROVISIONING_BODY_BYTES, dataProxyQuery, rekorAttestation, REQUIRED_REKOR_ATTESTATION_HEADERS, REKOR_BOUND_BASE_HEADER, REKOR_BOUND_TOOLSET_HEADER, REKOR_BOUND_TOKEN_HEADER, REKOR_BOUND_CUSTOMER_HEADER, REKOR_BOUND_ACCESS_HEADER, REKOR_BOUND_ACCESS_SCOPE_HEADER, REKOR_BOUND_PAGE_HEADER, REKOR_BOUND_PERSON_HEADER, REKOR_PERSON_AUDIENCE_STAFF, REKOR_PERSON_AUDIENCE_CUSTOMER, REKOR_PERSON_ALL, REKOR_ACCESS_SCOPE_CUSTOMER, DATA_BASE_GENERATION_HEADER, REKOR_MAX_ACTOR_ID_LENGTH, REKOR_MAX_ACTOR_LABEL_LENGTH, REKOR_MAX_ACCESS_DIMENSIONS, REKOR_MAX_ACCESS_VALUES, REKOR_MAX_ACCESS_ID_LENGTH, REKOR_MAX_ACCESS_HEADER_LENGTH, REKOR_MAX_PERSON_PARTIES, REKOR_MAX_PERSON_IDS, REKOR_MAX_PERSON_ID_LENGTH, REKOR_MAX_PERSON_HEADER_LENGTH;
6786
- var init_chunk_UE4KTV2N = __esm({
6787
- "../../packages/core/dist/chunk-UE4KTV2N.js"() {
6786
+ var init_chunk_BNHJNSAJ = __esm({
6787
+ "../../packages/core/dist/chunk-BNHJNSAJ.js"() {
6788
6788
  "use strict";
6789
6789
  init_zod();
6790
6790
  REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
@@ -6840,7 +6840,7 @@ var init_chunk_UE4KTV2N = __esm({
6840
6840
  }
6841
6841
  });
6842
6842
 
6843
- // ../../packages/core/dist/chunk-QZYUKIXK.js
6843
+ // ../../packages/core/dist/chunk-RCMBGK4O.js
6844
6844
  function isPersonAccessAll(lists) {
6845
6845
  return lists !== void 0 && lists.read.length === 1 && lists.read[0] === ACCESS_UNRESTRICTED && lists.write.length === 1 && lists.write[0] === ACCESS_UNRESTRICTED;
6846
6846
  }
@@ -6878,10 +6878,10 @@ function assignmentHasUnrestricted(assignment) {
6878
6878
  return Object.values(assignment).some((lists) => lists.read.includes(ACCESS_UNRESTRICTED) || lists.write.includes(ACCESS_UNRESTRICTED));
6879
6879
  }
6880
6880
  var ACCESS_UNRESTRICTED, ACCESS_ID_REGEX, ACCESS_ID_MAX_LENGTH, MAX_ACCESS_DIMENSIONS_PER_ORG, MAX_ACCESS_VALUES_PER_DIMENSION, ACCESS_LABEL_MAX_LENGTH, accessIdSchema, accessLabelSchema, accessValueListSchema, accessListsSchema, accessAssignmentSchema, PERSON_ACCESS_KEY, heldAccessKeySchema, heldAccessAssignmentSchema, AGENT_PERSON_ACCESS_REFUSAL, accessSetSchema, accessDimensionParam, accessValueParam, orgMemberParam, orgHubParam, createAccessDimensionBody, updateAccessDimensionBody, createAccessValueBody, updateAccessValueBody, setMemberAccessValuesBody, HUB_PERSON_KINDS, ACCESS_PERSON_KINDS, setHubUserAccessValuesBody, setHubAccessValuesBody, setAgentAccessValuesBody;
6881
- var init_chunk_QZYUKIXK = __esm({
6882
- "../../packages/core/dist/chunk-QZYUKIXK.js"() {
6881
+ var init_chunk_RCMBGK4O = __esm({
6882
+ "../../packages/core/dist/chunk-RCMBGK4O.js"() {
6883
6883
  "use strict";
6884
- init_chunk_UE4KTV2N();
6884
+ init_chunk_BNHJNSAJ();
6885
6885
  init_chunk_HZ6CADSY();
6886
6886
  init_chunk_YROEDMVZ();
6887
6887
  init_zod();
@@ -6972,7 +6972,7 @@ var init_chunk_QZYUKIXK = __esm({
6972
6972
  }
6973
6973
  });
6974
6974
 
6975
- // ../../packages/core/dist/chunk-YHSNCKJ4.js
6975
+ // ../../packages/core/dist/chunk-LKD6ISTP.js
6976
6976
  function isEncodedBoundPerson(raw) {
6977
6977
  let parsed;
6978
6978
  try {
@@ -6983,11 +6983,11 @@ function isEncodedBoundPerson(raw) {
6983
6983
  return rekorBoundPersonSchema.safeParse(parsed).success;
6984
6984
  }
6985
6985
  var TOOLSET_SLUG_PATTERN, REKOR_STRUCTURAL_ID_PATTERN, baseEnvironmentSchema, toolsetFileToolSchema, toolsetSurfaceSchema, toolsetConnectionBindingSchema, rekorToolsetToolsSchema, rekorPersonIdSchema, rekorPersonAudienceSchema, rekorBoundPersonSchema, rekorBoundAttestation, rekorResolvedToolsetSchema, REKOR_TOOL_KINDS_PARAM, REKOR_TOOL_KINDS_RESOLVE_SEARCH, resolvedRecordTypeSchema, reviewWritersSchema, sharedScopeSchema, resolvedFileToolSchema, rekorToolsetFileSchema, rekorToolsetFileUrlAnswerSchema, rekorToolsetFileListSchema, rekorToolsetFileGetSchema, rekorToolsetFilePutSchema, TOOLSET_CUSTOMER_FACING_REFUSAL_MARK, TOOLSET_CUSTOMER_FACING_REFUSAL;
6986
- var init_chunk_YHSNCKJ4 = __esm({
6987
- "../../packages/core/dist/chunk-YHSNCKJ4.js"() {
6986
+ var init_chunk_LKD6ISTP = __esm({
6987
+ "../../packages/core/dist/chunk-LKD6ISTP.js"() {
6988
6988
  "use strict";
6989
- init_chunk_QZYUKIXK();
6990
- init_chunk_UE4KTV2N();
6989
+ init_chunk_RCMBGK4O();
6990
+ init_chunk_BNHJNSAJ();
6991
6991
  init_zod();
6992
6992
  TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
6993
6993
  REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
@@ -7133,7 +7133,8 @@ var init_chunk_YHSNCKJ4 = __esm({
7133
7133
  /**
7134
7134
  * The persons the call is for (#5473 §9): their header text (`encodeBoundPerson`), within the far side's
7135
7135
  * header cap. Every tool call carries it beside its access set (`apps/backend/src/rekor/access-set.ts`); the
7136
- * config reads do not. The far side holds a staff call's reads of a person-ruled record type to its parties.
7136
+ * config reads do not. The far side holds a call's reads and writes of a person-ruled record type to its parties,
7137
+ * whatever its audience, and a customer-facing call to its audience gate (#5473 2a).
7137
7138
  */
7138
7139
  [REKOR_BOUND_PERSON_HEADER]: external_exports.string().max(REKOR_MAX_PERSON_HEADER_LENGTH).refine(isEncodedBoundPerson, {
7139
7140
  message: "Not the persons a bound call is for"
@@ -7625,12 +7626,12 @@ var init_chunk_VFDRJV2E = __esm({
7625
7626
  }
7626
7627
  });
7627
7628
 
7628
- // ../../packages/core/dist/chunk-ISFGB4IC.js
7629
+ // ../../packages/core/dist/chunk-6LEP2CEL.js
7629
7630
  var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
7630
- var init_chunk_ISFGB4IC = __esm({
7631
- "../../packages/core/dist/chunk-ISFGB4IC.js"() {
7631
+ var init_chunk_6LEP2CEL = __esm({
7632
+ "../../packages/core/dist/chunk-6LEP2CEL.js"() {
7632
7633
  "use strict";
7633
- init_chunk_YHSNCKJ4();
7634
+ init_chunk_LKD6ISTP();
7634
7635
  init_chunk_VFDRJV2E();
7635
7636
  init_chunk_HZ6CADSY();
7636
7637
  init_zod();
@@ -8124,7 +8125,7 @@ var init_chunk_C2UEA2KW = __esm({
8124
8125
  }
8125
8126
  });
8126
8127
 
8127
- // ../../packages/core/dist/chunk-FCYMUE6O.js
8128
+ // ../../packages/core/dist/chunk-EVXGKOJV.js
8128
8129
  function catalogToolSideEffects(toolName) {
8129
8130
  const sideEffects = CATALOG_SIDE_EFFECTS.get(toolName);
8130
8131
  if (sideEffects === void 0) return "unknown";
@@ -8140,8 +8141,8 @@ function idempotencyHeaderRefusal(value) {
8140
8141
  return null;
8141
8142
  }
8142
8143
  var NATIVE_TOOL_SCHEMAS, WAYAI_CONNECTOR, SANDBOX_AGENT_ROLES, BASE_NATIVE_TOOLS, NATIVE_TOOLS, CATALOG_SIDE_EFFECTS, CATALOG_REPLAY, REPLAY_OVERRIDES, RESERVED_HEADERS;
8143
- var init_chunk_FCYMUE6O = __esm({
8144
- "../../packages/core/dist/chunk-FCYMUE6O.js"() {
8144
+ var init_chunk_EVXGKOJV = __esm({
8145
+ "../../packages/core/dist/chunk-EVXGKOJV.js"() {
8145
8146
  "use strict";
8146
8147
  init_chunk_YROEDMVZ();
8147
8148
  NATIVE_TOOL_SCHEMAS = {
@@ -8456,6 +8457,29 @@ var init_chunk_FCYMUE6O = __esm({
8456
8457
  },
8457
8458
  "tool_instructions": "Use to change part of a document under data/: read it with read_file, then pass the exact text, its replacement and the version you read."
8458
8459
  },
8460
+ "open_page": {
8461
+ "tool_config": {
8462
+ "name": "open_page",
8463
+ "description": "Send the person you are talking to a card that opens one of this hub's pages, a small app over the chat. Without page, it lists the pages they can open; with page, it sends the card.",
8464
+ "strict": false,
8465
+ "parameters": {
8466
+ "type": "object",
8467
+ "properties": {
8468
+ "page": {
8469
+ "type": "string",
8470
+ "description": "The page's slug, from the listing. Omit it to list the pages."
8471
+ },
8472
+ "params": {
8473
+ "type": "object",
8474
+ "description": "Values the page opens with, as its params schema in the listing declares them. Others are dropped."
8475
+ }
8476
+ },
8477
+ "required": [],
8478
+ "additionalProperties": false
8479
+ }
8480
+ },
8481
+ "tool_instructions": "Use when a page suits what the person wants to do better than text. List the pages first: there are none for a customer outside the WayAI app. Also say in your reply what the page is for."
8482
+ },
8459
8483
  "open_pull_request": {
8460
8484
  "tool_config": {
8461
8485
  "name": "open_pull_request",
@@ -9095,7 +9119,14 @@ var init_chunk_FCYMUE6O = __esm({
9095
9119
  // model names the branch, the base, the title and the body, never the repository. Any other agent is
9096
9120
  // refused at the call. `reconcile`, not `keyed`: a re-run after a first run that opened it is refused by
9097
9121
  // GitHub (one open pull request per branch and base), never opened twice, but answers that refusal.
9098
- { tool_native_id: "nt-035", tool_name: "open_pull_request", tool_display_name: "Open Pull Request", tool_description: "Open a pull request on a hosted repository agent's repository, from the branch it pushed", connector_id: WAYAI_CONNECTOR, operation: "open_pull_request", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: true, replay: "reconcile", hosted: true }
9122
+ { tool_native_id: "nt-035", tool_name: "open_pull_request", tool_display_name: "Open Pull Request", tool_description: "Open a pull request on a hosted repository agent's repository, from the branch it pushed", connector_id: WAYAI_CONNECTOR, operation: "open_pull_request", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: true, replay: "reconcile", hosted: true },
9123
+ // A page card (wayai#5333 decision 11, row 7.2): one interactive agent message whose slot names one of
9124
+ // the hub's pages (`{ kind: 'page', page, params }`), written through the turn's interactive message op
9125
+ // (wayai#4751 row 1.2), for a page the conversation's person can open. Side effects: it sends to the
9126
+ // contact. `keyed`: the card takes the id its key derives, and the op stores and sends nothing its first
9127
+ // run did. Not hosted, as `send_files` is not (decision 69). The pilot track only: no other role's turn
9128
+ // addresses the customer (it is internal or a consult, which the op refuses, or the role runs none).
9129
+ { tool_native_id: "nt-036", tool_name: "open_page", tool_display_name: "Open Page", tool_description: "Send the conversation's person a card that opens one of the hub's pages", connector_id: WAYAI_CONNECTOR, operation: "open_page", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: true, replay: "keyed", hosted: false, assignable_roles: PILOT_TRACK_ROLES }
9099
9130
  ];
9100
9131
  NATIVE_TOOLS = BASE_NATIVE_TOOLS.map((base) => {
9101
9132
  const schema = NATIVE_TOOL_SCHEMAS[base.tool_name];
@@ -9132,7 +9163,7 @@ var init_chunk_FCYMUE6O = __esm({
9132
9163
  }
9133
9164
  });
9134
9165
 
9135
- // ../../packages/core/dist/chunk-F3Z4V7VQ.js
9166
+ // ../../packages/core/dist/chunk-DULDQXQX.js
9136
9167
  function spokenLineField(label2, description2) {
9137
9168
  return { type: "text", label: label2, maxLength: SPOKEN_LINE_MAX_CHARS, default: "", description: description2 };
9138
9169
  }
@@ -9141,9 +9172,9 @@ function byLowercaseName(a, b) {
9141
9172
  const y = b.connector_name.toLowerCase();
9142
9173
  return x < y ? -1 : x > y ? 1 : 0;
9143
9174
  }
9144
- var CALLER_LANGUAGE, GIT_CHECKOUT_MAX_LENGTH, TTS_VOICE_REPLY_ENABLED_FIELD, COPILOT_TRIGGER_FIELD, SANDBOX_AGENT_FIELDS, AUDIO_LANGUAGE_OPTIONS, whatsapp, instagram, resend, telegram, API_CHANNEL_DELIVERY_EVENTS, apiChannel, OPENAI_REASONING_MODELS, openai, anthropic, googleAiStudio, openRouter, xai, typesafe, groqStt, openaiStt, elevenLabsStt, openaiTts, groqTts, elevenLabsTts, GEMINI_TTS_VOICES, googleTts, wayai, externalResources, restApiTool, mcpServer, REKOR_TOOLSET_SERVICE_NAME, rekorToolset, CLAUDE_HARNESS_MODELS, CLAUDE_HARNESS_MODEL_OPTIONS, HARNESS_EGRESS_FIELDS, claudeManagedAgents, SPOKEN_LINE_MAX_CHARS, gptLive, CONNECTORS;
9145
- var init_chunk_F3Z4V7VQ = __esm({
9146
- "../../packages/core/dist/chunk-F3Z4V7VQ.js"() {
9175
+ var CALLER_LANGUAGE, GIT_CHECKOUT_MAX_LENGTH, TTS_VOICE_REPLY_ENABLED_FIELD, decisionsImageInputField, COPILOT_TRIGGER_FIELD, SANDBOX_AGENT_FIELDS, AUDIO_LANGUAGE_OPTIONS, whatsapp, instagram, resend, telegram, API_CHANNEL_DELIVERY_EVENTS, apiChannel, OPENAI_REASONING_MODELS, openai, anthropic, googleAiStudio, openRouter, xai, typesafe, groqStt, openaiStt, elevenLabsStt, openaiTts, groqTts, elevenLabsTts, GEMINI_TTS_VOICES, googleTts, wayai, externalResources, restApiTool, mcpServer, REKOR_TOOLSET_SERVICE_NAME, rekorToolset, CLAUDE_HARNESS_MODELS, CLAUDE_HARNESS_MODEL_OPTIONS, HARNESS_EGRESS_FIELDS, claudeManagedAgents, SPOKEN_LINE_MAX_CHARS, gptLive, CONNECTORS;
9176
+ var init_chunk_DULDQXQX = __esm({
9177
+ "../../packages/core/dist/chunk-DULDQXQX.js"() {
9147
9178
  "use strict";
9148
9179
  CALLER_LANGUAGE = "caller";
9149
9180
  GIT_CHECKOUT_MAX_LENGTH = 255;
@@ -9155,6 +9186,15 @@ var init_chunk_F3Z4V7VQ = __esm({
9155
9186
  description: "When a user sends a voice message, reply with synthesized audio on channels that support it (WhatsApp, Instagram, Telegram, and the app). Turn this off to always reply in text \u2014 no audio is generated and no TTS usage is billed. Replies to text messages are always text."
9156
9187
  }
9157
9188
  };
9189
+ decisionsImageInputField = (dependsOn) => ({
9190
+ image_input: {
9191
+ type: "toggle",
9192
+ label: "Send Images",
9193
+ default: false,
9194
+ description: "Send the newest images customers and team members attached (up to 4) with each idle-monitor or conversation-evaluator decision. The provider bills images as input tokens.",
9195
+ ...dependsOn ? { dependsOn } : {}
9196
+ }
9197
+ });
9158
9198
  COPILOT_TRIGGER_FIELD = {
9159
9199
  copilot_trigger: {
9160
9200
  type: "select",
@@ -9512,7 +9552,9 @@ var init_chunk_F3Z4V7VQ = __esm({
9512
9552
  file_handling_mode: { type: "select", label: "File handling", options: [{ value: "always_attach", label: "Attach files" }, { value: "metadata_only", label: "Metadata only (retrieve on demand)" }], default: "always_attach", description: "No longer changes what the model receives \u2014 a conversation's earlier files are always announced by path, never re-sent as content. metadata_only still auto-enables read_file so the agent can open one of those paths on demand." },
9513
9553
  max_attachment_size_mb: { type: "number", label: "Max attachment size (MB)", min: 1, description: "No longer has any effect: earlier files are announced by path rather than attached, so there is no attachment size to cap." },
9514
9554
  ...SANDBOX_AGENT_FIELDS,
9515
- ...COPILOT_TRIGGER_FIELD
9555
+ ...COPILOT_TRIGGER_FIELD,
9556
+ // `typesafe/jev-latest` too: a monitor saved on it before #4486 still stores it, and is still served on it.
9557
+ ...decisionsImageInputField({ field: "model", values: ["jev-latest", "typesafe/jev-1.13", "typesafe/jev-latest"] })
9516
9558
  },
9517
9559
  channel_settings_schema: null,
9518
9560
  tool_settings_schema: null,
@@ -9580,7 +9622,8 @@ var init_chunk_F3Z4V7VQ = __esm({
9580
9622
  enabled: true,
9581
9623
  connector_settings_schema: null,
9582
9624
  agent_settings_schema: {
9583
- model: { type: "select", label: "Model", allowCustomValue: true, options: [{ value: "jev-latest", label: "Jev Latest (decisions)", deprecated: false }, { value: "jev-1.14.0", label: "Jev 1.14 (decisions)", deprecated: false }, { value: "jev-1.13.0", label: "Jev 1.13 (decisions)", deprecated: false }], default: "jev-latest", description: "Decisions model to use. Serves closed-set monitors and automation gates only.", required: true }
9625
+ model: { type: "select", label: "Model", allowCustomValue: true, options: [{ value: "jev-latest", label: "Jev Latest (decisions)", deprecated: false }, { value: "jev-1.14.0", label: "Jev 1.14 (decisions)", deprecated: false }, { value: "jev-1.13.0", label: "Jev 1.13 (decisions)", deprecated: false }], default: "jev-latest", description: "Decisions model to use. Serves closed-set monitors and automation gates only.", required: true },
9626
+ ...decisionsImageInputField()
9584
9627
  },
9585
9628
  channel_settings_schema: null,
9586
9629
  tool_settings_schema: null,
@@ -10147,13 +10190,13 @@ var init_chunk_F3Z4V7VQ = __esm({
10147
10190
  }
10148
10191
  });
10149
10192
 
10150
- // ../../packages/core/dist/chunk-54MY7RGF.js
10193
+ // ../../packages/core/dist/chunk-JEWJLXAI.js
10151
10194
  var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
10152
- var init_chunk_54MY7RGF = __esm({
10153
- "../../packages/core/dist/chunk-54MY7RGF.js"() {
10195
+ var init_chunk_JEWJLXAI = __esm({
10196
+ "../../packages/core/dist/chunk-JEWJLXAI.js"() {
10154
10197
  "use strict";
10155
- init_chunk_FCYMUE6O();
10156
- init_chunk_F3Z4V7VQ();
10198
+ init_chunk_EVXGKOJV();
10199
+ init_chunk_DULDQXQX();
10157
10200
  init_chunk_MIWZOSPI();
10158
10201
  COUNTER_KEYS = Object.keys({
10159
10202
  input_tokens: true,
@@ -10276,7 +10319,7 @@ var init_chunk_L5F7ZOUJ = __esm({
10276
10319
  }
10277
10320
  });
10278
10321
 
10279
- // ../../packages/core/dist/chunk-NKTCDZYV.js
10322
+ // ../../packages/core/dist/chunk-PI55UGBV.js
10280
10323
  function normalizeDecisionsModelId(modelId) {
10281
10324
  return modelId.trim().toLowerCase();
10282
10325
  }
@@ -10347,10 +10390,10 @@ function readAgentSettingsModel(agentSettings) {
10347
10390
  return typeof model === "string" ? model : null;
10348
10391
  }
10349
10392
  var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
10350
- var init_chunk_NKTCDZYV = __esm({
10351
- "../../packages/core/dist/chunk-NKTCDZYV.js"() {
10393
+ var init_chunk_PI55UGBV = __esm({
10394
+ "../../packages/core/dist/chunk-PI55UGBV.js"() {
10352
10395
  "use strict";
10353
- init_chunk_54MY7RGF();
10396
+ init_chunk_JEWJLXAI();
10354
10397
  init_chunk_L5F7ZOUJ();
10355
10398
  DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
10356
10399
  DECISION_CAPABLE_AGENT_ROLES = [
@@ -10361,7 +10404,7 @@ var init_chunk_NKTCDZYV = __esm({
10361
10404
  }
10362
10405
  });
10363
10406
 
10364
- // ../../packages/core/dist/chunk-KZIKA2QR.js
10407
+ // ../../packages/core/dist/chunk-DZNBZNK6.js
10365
10408
  function resolveMonitorTrigger(monitorConfig) {
10366
10409
  if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
10367
10410
  const raw = monitorConfig.trigger;
@@ -10667,15 +10710,15 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
10667
10710
  if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
10668
10711
  }
10669
10712
  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;
10670
- var init_chunk_KZIKA2QR = __esm({
10671
- "../../packages/core/dist/chunk-KZIKA2QR.js"() {
10713
+ var init_chunk_DZNBZNK6 = __esm({
10714
+ "../../packages/core/dist/chunk-DZNBZNK6.js"() {
10672
10715
  "use strict";
10673
10716
  init_chunk_IBL7FANV();
10674
10717
  init_chunk_KB5RK3RP();
10675
10718
  init_chunk_C2UEA2KW();
10676
10719
  init_chunk_HZ6CADSY();
10677
- init_chunk_NKTCDZYV();
10678
- init_chunk_FCYMUE6O();
10720
+ init_chunk_PI55UGBV();
10721
+ init_chunk_EVXGKOJV();
10679
10722
  init_chunk_YROEDMVZ();
10680
10723
  init_chunk_L5F7ZOUJ();
10681
10724
  init_zod();
@@ -10893,12 +10936,12 @@ var init_chunk_KZIKA2QR = __esm({
10893
10936
  }
10894
10937
  });
10895
10938
 
10896
- // ../../packages/core/dist/chunk-WB3GJRD4.js
10939
+ // ../../packages/core/dist/chunk-WDTVVLVD.js
10897
10940
  var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
10898
- var init_chunk_WB3GJRD4 = __esm({
10899
- "../../packages/core/dist/chunk-WB3GJRD4.js"() {
10941
+ var init_chunk_WDTVVLVD = __esm({
10942
+ "../../packages/core/dist/chunk-WDTVVLVD.js"() {
10900
10943
  "use strict";
10901
- init_chunk_KZIKA2QR();
10944
+ init_chunk_DZNBZNK6();
10902
10945
  init_chunk_HZ6CADSY();
10903
10946
  init_chunk_YROEDMVZ();
10904
10947
  init_zod();
@@ -11427,14 +11470,14 @@ var init_chunk_E4DIIOOE = __esm({
11427
11470
  }
11428
11471
  });
11429
11472
 
11430
- // ../../packages/core/dist/chunk-Q6AXOQH6.js
11473
+ // ../../packages/core/dist/chunk-EJFKWH32.js
11431
11474
  var evalCallInstant, EVAL_CALL_MIN_SECONDS, EVAL_CALL_MAX_SECONDS, EVAL_CALL_SPOKEN_LINE_MAX_CHARS, hubScoped2, createEvalCallBody, createEvalCallResponse, evalCallConversationQuery, evalCallRecordQuery, evalCallSpeaker, evalCallUtterance, evalCallTurn, evalCallRecording, evalCallRecordResponse, evalCallFinishResponse;
11432
- var init_chunk_Q6AXOQH6 = __esm({
11433
- "../../packages/core/dist/chunk-Q6AXOQH6.js"() {
11475
+ var init_chunk_EJFKWH32 = __esm({
11476
+ "../../packages/core/dist/chunk-EJFKWH32.js"() {
11434
11477
  "use strict";
11435
11478
  init_chunk_E4DIIOOE();
11436
11479
  init_chunk_HZ6CADSY();
11437
- init_chunk_F3Z4V7VQ();
11480
+ init_chunk_DULDQXQX();
11438
11481
  init_chunk_MIWZOSPI();
11439
11482
  init_zod();
11440
11483
  evalCallInstant = timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp");
@@ -12525,7 +12568,7 @@ var init_chunk_BPCNB5RT = __esm({
12525
12568
  }
12526
12569
  });
12527
12570
 
12528
- // ../../packages/core/dist/chunk-PPMXGOUS.js
12571
+ // ../../packages/core/dist/chunk-SARVKRZB.js
12529
12572
  function refineToolConfig(value, ctx) {
12530
12573
  const raw = value.tool_config;
12531
12574
  if (raw == null) return;
@@ -12561,12 +12604,12 @@ function refineToolConfig(value, ctx) {
12561
12604
  }
12562
12605
  }
12563
12606
  var toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
12564
- var init_chunk_PPMXGOUS = __esm({
12565
- "../../packages/core/dist/chunk-PPMXGOUS.js"() {
12607
+ var init_chunk_SARVKRZB = __esm({
12608
+ "../../packages/core/dist/chunk-SARVKRZB.js"() {
12566
12609
  "use strict";
12567
12610
  init_chunk_WEXVYJ5H();
12568
12611
  init_chunk_HZ6CADSY();
12569
- init_chunk_FCYMUE6O();
12612
+ init_chunk_EVXGKOJV();
12570
12613
  init_zod();
12571
12614
  toolIdParam = external_exports.object({ id: uuidSchema });
12572
12615
  listToolsQuery = external_exports.object({ agent_id: uuidSchema, hub_id: uuidSchema });
@@ -13209,10 +13252,10 @@ var init_chunk_LBDH7LCG = __esm({
13209
13252
  }
13210
13253
  });
13211
13254
 
13212
- // ../../packages/core/dist/chunk-2ATLBDFP.js
13255
+ // ../../packages/core/dist/chunk-D3EP4TDU.js
13213
13256
  var primaryRegionSchema, placementSourceSchema, orgIdParam, orgAdminIdParam, createOrganizationBody, updateOrganizationBody, addOrgAdminBody;
13214
- var init_chunk_2ATLBDFP = __esm({
13215
- "../../packages/core/dist/chunk-2ATLBDFP.js"() {
13257
+ var init_chunk_D3EP4TDU = __esm({
13258
+ "../../packages/core/dist/chunk-D3EP4TDU.js"() {
13216
13259
  "use strict";
13217
13260
  init_chunk_HZ6CADSY();
13218
13261
  init_zod();
@@ -13692,7 +13735,7 @@ var init_chunk_K5UAZWFF = __esm({
13692
13735
  }
13693
13736
  });
13694
13737
 
13695
- // ../../packages/core/dist/chunk-MHIPTVKS.js
13738
+ // ../../packages/core/dist/chunk-TU4Y4MEX.js
13696
13739
  function refineLaneReferences(val, ctx) {
13697
13740
  const lanes = val.lanes;
13698
13741
  const statuses = val.kanban_statuses;
@@ -13716,10 +13759,10 @@ function describeSyncWarning(warning) {
13716
13759
  return `${label2}: ${parts.join("; ")}. Promote the base so production's tools match the preview's.`;
13717
13760
  }
13718
13761
  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;
13719
- var init_chunk_MHIPTVKS = __esm({
13720
- "../../packages/core/dist/chunk-MHIPTVKS.js"() {
13762
+ var init_chunk_TU4Y4MEX = __esm({
13763
+ "../../packages/core/dist/chunk-TU4Y4MEX.js"() {
13721
13764
  "use strict";
13722
- init_chunk_2ATLBDFP();
13765
+ init_chunk_D3EP4TDU();
13723
13766
  init_chunk_2KNVPV7S();
13724
13767
  init_chunk_K5UAZWFF();
13725
13768
  init_chunk_HZ6CADSY();
@@ -13916,7 +13959,7 @@ var init_chunk_MHIPTVKS = __esm({
13916
13959
  }
13917
13960
  });
13918
13961
 
13919
- // ../../packages/core/dist/chunk-PIQ6WU37.js
13962
+ // ../../packages/core/dist/chunk-PTWZYQB5.js
13920
13963
  function refineHubAsCodeCustomTools(config, ctx) {
13921
13964
  const agents = config.agents;
13922
13965
  if (!Array.isArray(agents)) return;
@@ -14526,23 +14569,23 @@ function skillSectionsAsResources(scope) {
14526
14569
  };
14527
14570
  }
14528
14571
  var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema;
14529
- var init_chunk_PIQ6WU37 = __esm({
14530
- "../../packages/core/dist/chunk-PIQ6WU37.js"() {
14572
+ var init_chunk_PTWZYQB5 = __esm({
14573
+ "../../packages/core/dist/chunk-PTWZYQB5.js"() {
14531
14574
  "use strict";
14532
- init_chunk_PPMXGOUS();
14533
- init_chunk_QZYUKIXK();
14575
+ init_chunk_SARVKRZB();
14576
+ init_chunk_RCMBGK4O();
14534
14577
  init_chunk_UN7QXDKQ();
14535
14578
  init_chunk_LBDH7LCG();
14536
14579
  init_chunk_4LXDRTO4();
14537
- init_chunk_MHIPTVKS();
14580
+ init_chunk_TU4Y4MEX();
14538
14581
  init_chunk_2KNVPV7S();
14539
14582
  init_chunk_K5UAZWFF();
14540
- init_chunk_KZIKA2QR();
14583
+ init_chunk_DZNBZNK6();
14541
14584
  init_chunk_S4VDZ7PZ();
14542
14585
  init_chunk_C2UEA2KW();
14543
14586
  init_chunk_VFDRJV2E();
14544
14587
  init_chunk_WEXVYJ5H();
14545
- init_chunk_NKTCDZYV();
14588
+ init_chunk_PI55UGBV();
14546
14589
  init_chunk_YROEDMVZ();
14547
14590
  init_zod();
14548
14591
  MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
@@ -15002,7 +15045,7 @@ var init_chunk_OMPT4ZHR = __esm({
15002
15045
  }
15003
15046
  });
15004
15047
 
15005
- // ../../packages/core/dist/chunk-SPV2K7RA.js
15048
+ // ../../packages/core/dist/chunk-XMG3GA2R.js
15006
15049
  function refineScopedTarget(data, ctx) {
15007
15050
  if (data.scope === "org") {
15008
15051
  if (!data.org_id) {
@@ -15028,13 +15071,13 @@ function refineScopedTarget(data, ctx) {
15028
15071
  }
15029
15072
  }
15030
15073
  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;
15031
- var init_chunk_SPV2K7RA = __esm({
15032
- "../../packages/core/dist/chunk-SPV2K7RA.js"() {
15074
+ var init_chunk_XMG3GA2R = __esm({
15075
+ "../../packages/core/dist/chunk-XMG3GA2R.js"() {
15033
15076
  "use strict";
15034
15077
  init_chunk_FECLIZTY();
15035
15078
  init_chunk_BFG4ZWR4();
15036
15079
  init_chunk_YZAIZJTO();
15037
- init_chunk_MHIPTVKS();
15080
+ init_chunk_TU4Y4MEX();
15038
15081
  init_chunk_OMPT4ZHR();
15039
15082
  init_chunk_HZ6CADSY();
15040
15083
  init_chunk_MIWZOSPI();
@@ -15621,16 +15664,16 @@ var init_chunk_PBE4O572 = __esm({
15621
15664
  }
15622
15665
  });
15623
15666
 
15624
- // ../../packages/core/dist/chunk-VWP2ANXT.js
15667
+ // ../../packages/core/dist/chunk-5PEVI432.js
15625
15668
  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;
15626
- var init_chunk_VWP2ANXT = __esm({
15627
- "../../packages/core/dist/chunk-VWP2ANXT.js"() {
15669
+ var init_chunk_5PEVI432 = __esm({
15670
+ "../../packages/core/dist/chunk-5PEVI432.js"() {
15628
15671
  "use strict";
15629
15672
  init_chunk_PBE4O572();
15630
15673
  init_chunk_THM6ALTK();
15631
- init_chunk_KZIKA2QR();
15674
+ init_chunk_DZNBZNK6();
15632
15675
  init_chunk_5XEJSR22();
15633
- init_chunk_NKTCDZYV();
15676
+ init_chunk_PI55UGBV();
15634
15677
  init_chunk_YROEDMVZ();
15635
15678
  init_zod();
15636
15679
  AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
@@ -16074,7 +16117,7 @@ var init_contracts = __esm({
16074
16117
  init_chunk_WL5QGKHN();
16075
16118
  init_chunk_YVY2TZK2();
16076
16119
  init_chunk_ACKF2MVU();
16077
- init_chunk_K2UY4M4E();
16120
+ init_chunk_JOPEQ3WP();
16078
16121
  init_chunk_HA7CRZMX();
16079
16122
  init_chunk_MF2VVXBR();
16080
16123
  init_chunk_IPDOHAZ5();
@@ -16089,15 +16132,15 @@ var init_contracts = __esm({
16089
16132
  init_chunk_I3O2RACG();
16090
16133
  init_chunk_34LE6P7E();
16091
16134
  init_chunk_FPSDNS2E();
16092
- init_chunk_ISFGB4IC();
16093
- init_chunk_YHSNCKJ4();
16135
+ init_chunk_6LEP2CEL();
16136
+ init_chunk_LKD6ISTP();
16094
16137
  init_chunk_OPETF4GS();
16095
16138
  init_chunk_SY6PLCPK();
16096
16139
  init_chunk_KMAC3O3L();
16097
- init_chunk_WB3GJRD4();
16140
+ init_chunk_WDTVVLVD();
16098
16141
  init_chunk_KSTYTQ7I();
16099
16142
  init_chunk_LKBSHANA();
16100
- init_chunk_Q6AXOQH6();
16143
+ init_chunk_EJFKWH32();
16101
16144
  init_chunk_C4HEZ7ZI();
16102
16145
  init_chunk_IR2NOSI3();
16103
16146
  init_chunk_FUIWYKHJ();
@@ -16112,30 +16155,30 @@ var init_contracts = __esm({
16112
16155
  init_chunk_E4DIIOOE();
16113
16156
  init_chunk_7CYHPF35();
16114
16157
  init_chunk_BPCNB5RT();
16115
- init_chunk_PIQ6WU37();
16116
- init_chunk_PPMXGOUS();
16117
- init_chunk_QZYUKIXK();
16118
- init_chunk_UE4KTV2N();
16158
+ init_chunk_PTWZYQB5();
16159
+ init_chunk_SARVKRZB();
16160
+ init_chunk_RCMBGK4O();
16161
+ init_chunk_BNHJNSAJ();
16119
16162
  init_chunk_UN7QXDKQ();
16120
16163
  init_chunk_LBDH7LCG();
16121
16164
  init_chunk_4LXDRTO4();
16122
16165
  init_chunk_JDJ4EUOL();
16123
16166
  init_chunk_NVKU5PPQ();
16124
- init_chunk_SPV2K7RA();
16167
+ init_chunk_XMG3GA2R();
16125
16168
  init_chunk_FECLIZTY();
16126
16169
  init_chunk_BFG4ZWR4();
16127
16170
  init_chunk_YZAIZJTO();
16128
- init_chunk_MHIPTVKS();
16129
- init_chunk_2ATLBDFP();
16171
+ init_chunk_TU4Y4MEX();
16172
+ init_chunk_D3EP4TDU();
16130
16173
  init_chunk_2KNVPV7S();
16131
16174
  init_chunk_K5UAZWFF();
16132
16175
  init_chunk_2PZIF56U();
16133
16176
  init_chunk_UEJOG2Q7();
16134
16177
  init_chunk_JO53JB35();
16135
- init_chunk_VWP2ANXT();
16178
+ init_chunk_5PEVI432();
16136
16179
  init_chunk_PBE4O572();
16137
16180
  init_chunk_THM6ALTK();
16138
- init_chunk_KZIKA2QR();
16181
+ init_chunk_DZNBZNK6();
16139
16182
  init_chunk_IG6QBZMA();
16140
16183
  init_chunk_OMPT4ZHR();
16141
16184
  init_chunk_Z2SC7EVO();
@@ -16158,10 +16201,10 @@ var init_contracts = __esm({
16158
16201
  init_chunk_WEXVYJ5H();
16159
16202
  init_chunk_6TSQ5HXC();
16160
16203
  init_chunk_HZ6CADSY();
16161
- init_chunk_NKTCDZYV();
16162
- init_chunk_54MY7RGF();
16163
- init_chunk_FCYMUE6O();
16164
- init_chunk_F3Z4V7VQ();
16204
+ init_chunk_PI55UGBV();
16205
+ init_chunk_JEWJLXAI();
16206
+ init_chunk_EVXGKOJV();
16207
+ init_chunk_DULDQXQX();
16165
16208
  init_chunk_MIWZOSPI();
16166
16209
  init_chunk_YROEDMVZ();
16167
16210
  init_chunk_L5F7ZOUJ();
@@ -16318,10 +16361,10 @@ var init_dist = __esm({
16318
16361
  init_chunk_6TSQ5HXC();
16319
16362
  init_chunk_HZ6CADSY();
16320
16363
  init_chunk_BF4WRSOQ();
16321
- init_chunk_NKTCDZYV();
16322
- init_chunk_54MY7RGF();
16323
- init_chunk_FCYMUE6O();
16324
- init_chunk_F3Z4V7VQ();
16364
+ init_chunk_PI55UGBV();
16365
+ init_chunk_JEWJLXAI();
16366
+ init_chunk_EVXGKOJV();
16367
+ init_chunk_DULDQXQX();
16325
16368
  init_chunk_MIWZOSPI();
16326
16369
  init_chunk_YROEDMVZ();
16327
16370
  init_chunk_L5F7ZOUJ();
@@ -35741,6 +35784,29 @@ function layerLines(values) {
35741
35784
  if (dimensions.length === 0) return ["reaches nothing (unset, or no dimension)"];
35742
35785
  return dimensions.map(([dimension, { read, write }]) => `${text2(dimension)}: read ${list(read)}; write ${list(write)}`);
35743
35786
  }
35787
+ function partyLine(party) {
35788
+ const who = party.customer ? "the conversation's customer" : "the person";
35789
+ if (party.all) return `${who}: $person, every person's records`;
35790
+ if (party.person_id_count === 0) return `${who}: no person id, so no person's records`;
35791
+ if (party.person_ids === null) {
35792
+ return `${who}: ${party.person_id_count} person id${party.person_id_count === 1 ? "" : "s"} (shown to organization admins only)`;
35793
+ }
35794
+ return `${who}: ${list(party.person_ids)}`;
35795
+ }
35796
+ function personsLines(data) {
35797
+ if (!data.persons) return [];
35798
+ const lines = ["", "Persons each call is for (matched on record types with person entries):"];
35799
+ for (const persons of data.persons) {
35800
+ const audience = persons.audience === REKOR_PERSON_AUDIENCE_STAFF ? "a call for team members" : "customer-facing";
35801
+ lines.push(` ${TURN_NAMES[persons.turn]}: ${audience}${persons.full_reach ? ", full reach" : ""}`);
35802
+ if (persons.parties.length === 0) {
35803
+ lines.push(persons.agent_all ? " no person; the agent holds $person: every person's records" : " no person; the agent does not hold $person: no person's records");
35804
+ }
35805
+ for (const party of persons.parties) lines.push(` ${partyLine(party)}`);
35806
+ }
35807
+ lines.push(" Person entries are matched on calls for team members and customer-facing calls alike; a customer-facing call also reaches only record types with person entries in enforce or marked shared.");
35808
+ return lines;
35809
+ }
35744
35810
  function formatExplanation(data) {
35745
35811
  const lines = [];
35746
35812
  const who = data.user_id === null ? "no person: the hub's \u2229 the agent's" : `person ${text2(data.user_id)}, ${data.kind ? kindName(data.kind) : "unknown kind"}`;
@@ -35772,6 +35838,7 @@ function formatExplanation(data) {
35772
35838
  }
35773
35839
  }
35774
35840
  lines.push("", "This set filters records only on record types a base enforces (x-access in enforce mode).");
35841
+ lines.push(...personsLines(data));
35775
35842
  return lines;
35776
35843
  }
35777
35844
  function failure3(err) {
@@ -35803,7 +35870,7 @@ async function accessCommand(args2) {
35803
35870
  }
35804
35871
  console.log(values.json ? JSON.stringify(data, null, 2) : formatExplanation(data).join("\n"));
35805
35872
  }
35806
- var USAGE6, LAYER_NAMES, kindName, text2, list;
35873
+ var USAGE6, LAYER_NAMES, kindName, text2, list, TURN_NAMES;
35807
35874
  var init_access = __esm({
35808
35875
  "src/commands/access.ts"() {
35809
35876
  "use strict";
@@ -35841,6 +35908,14 @@ email: once they redeem one, its values apply.
35841
35908
  These sets filter records only on record types a base enforces (x-access in enforce mode);
35842
35909
  a record type in report mode only counts what enforcing would hide.
35843
35910
 
35911
+ Beside the set, it prints the persons each call is for, which record types with person
35912
+ entries are matched against: for a person, their message in their own conversation (where
35913
+ they are its customer and never hold $person) and their message with no customer in the
35914
+ turn (a team send or a consult they start); with no person, a turn for no one. For each:
35915
+ whether the call is for team members or customer-facing, each person's id (or $person),
35916
+ and whether the call has full reach. Person ids are shown to organization admins only;
35917
+ anyone else sees how many ids each person has.
35918
+
35844
35919
  The hub is --hub, else this workspace's. --user for anyone but yourself needs an
35845
35920
  organization admin.
35846
35921
  `.trim();
@@ -35860,6 +35935,11 @@ organization admin.
35860
35935
  kindName = (kind) => kind === "public" ? "everyone else" : LAYER_NAMES[kind];
35861
35936
  text2 = (value) => sanitizeTerminalText(value);
35862
35937
  list = (ids) => ids.length === 0 ? "nothing" : ids.map(text2).join(" ");
35938
+ TURN_NAMES = {
35939
+ own_conversation: "Their message in their own conversation",
35940
+ team_send: "Their message with no customer in the turn (a team send or a consult they start)",
35941
+ no_party: "A turn for no one (a hub automation's own)"
35942
+ };
35863
35943
  }
35864
35944
  });
35865
35945