@wayai/cli 0.3.257 → 0.3.258

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
@@ -6998,10 +6998,10 @@ var init_chunk_FPSDNS2E = __esm({
6998
6998
  }
6999
6999
  });
7000
7000
 
7001
- // ../../packages/core/dist/chunk-BNHJNSAJ.js
7001
+ // ../../packages/core/dist/chunk-LVTURR5A.js
7002
7002
  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;
7003
- var init_chunk_BNHJNSAJ = __esm({
7004
- "../../packages/core/dist/chunk-BNHJNSAJ.js"() {
7003
+ var init_chunk_LVTURR5A = __esm({
7004
+ "../../packages/core/dist/chunk-LVTURR5A.js"() {
7005
7005
  "use strict";
7006
7006
  init_zod();
7007
7007
  REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
@@ -7057,7 +7057,7 @@ var init_chunk_BNHJNSAJ = __esm({
7057
7057
  }
7058
7058
  });
7059
7059
 
7060
- // ../../packages/core/dist/chunk-RCMBGK4O.js
7060
+ // ../../packages/core/dist/chunk-R3YTRHDM.js
7061
7061
  function isPersonAccessAll(lists) {
7062
7062
  return lists !== void 0 && lists.read.length === 1 && lists.read[0] === ACCESS_UNRESTRICTED && lists.write.length === 1 && lists.write[0] === ACCESS_UNRESTRICTED;
7063
7063
  }
@@ -7095,10 +7095,10 @@ function assignmentHasUnrestricted(assignment) {
7095
7095
  return Object.values(assignment).some((lists) => lists.read.includes(ACCESS_UNRESTRICTED) || lists.write.includes(ACCESS_UNRESTRICTED));
7096
7096
  }
7097
7097
  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;
7098
- var init_chunk_RCMBGK4O = __esm({
7099
- "../../packages/core/dist/chunk-RCMBGK4O.js"() {
7098
+ var init_chunk_R3YTRHDM = __esm({
7099
+ "../../packages/core/dist/chunk-R3YTRHDM.js"() {
7100
7100
  "use strict";
7101
- init_chunk_BNHJNSAJ();
7101
+ init_chunk_LVTURR5A();
7102
7102
  init_chunk_HZ6CADSY();
7103
7103
  init_chunk_YROEDMVZ();
7104
7104
  init_zod();
@@ -7189,7 +7189,7 @@ var init_chunk_RCMBGK4O = __esm({
7189
7189
  }
7190
7190
  });
7191
7191
 
7192
- // ../../packages/core/dist/chunk-LKD6ISTP.js
7192
+ // ../../packages/core/dist/chunk-ZJQGHQEQ.js
7193
7193
  function isEncodedBoundPerson(raw) {
7194
7194
  let parsed;
7195
7195
  try {
@@ -7200,11 +7200,11 @@ function isEncodedBoundPerson(raw) {
7200
7200
  return rekorBoundPersonSchema.safeParse(parsed).success;
7201
7201
  }
7202
7202
  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;
7203
- var init_chunk_LKD6ISTP = __esm({
7204
- "../../packages/core/dist/chunk-LKD6ISTP.js"() {
7203
+ var init_chunk_ZJQGHQEQ = __esm({
7204
+ "../../packages/core/dist/chunk-ZJQGHQEQ.js"() {
7205
7205
  "use strict";
7206
- init_chunk_RCMBGK4O();
7207
- init_chunk_BNHJNSAJ();
7206
+ init_chunk_R3YTRHDM();
7207
+ init_chunk_LVTURR5A();
7208
7208
  init_zod();
7209
7209
  TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
7210
7210
  REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
@@ -7843,12 +7843,12 @@ var init_chunk_VFDRJV2E = __esm({
7843
7843
  }
7844
7844
  });
7845
7845
 
7846
- // ../../packages/core/dist/chunk-6LEP2CEL.js
7846
+ // ../../packages/core/dist/chunk-MBORBRUA.js
7847
7847
  var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
7848
- var init_chunk_6LEP2CEL = __esm({
7849
- "../../packages/core/dist/chunk-6LEP2CEL.js"() {
7848
+ var init_chunk_MBORBRUA = __esm({
7849
+ "../../packages/core/dist/chunk-MBORBRUA.js"() {
7850
7850
  "use strict";
7851
- init_chunk_LKD6ISTP();
7851
+ init_chunk_ZJQGHQEQ();
7852
7852
  init_chunk_VFDRJV2E();
7853
7853
  init_chunk_HZ6CADSY();
7854
7854
  init_zod();
@@ -9380,7 +9380,7 @@ var init_chunk_EVXGKOJV = __esm({
9380
9380
  }
9381
9381
  });
9382
9382
 
9383
- // ../../packages/core/dist/chunk-DULDQXQX.js
9383
+ // ../../packages/core/dist/chunk-ECRNR7ET.js
9384
9384
  function spokenLineField(label2, description2) {
9385
9385
  return { type: "text", label: label2, maxLength: SPOKEN_LINE_MAX_CHARS, default: "", description: description2 };
9386
9386
  }
@@ -9390,8 +9390,8 @@ function byLowercaseName(a, b) {
9390
9390
  return x < y ? -1 : x > y ? 1 : 0;
9391
9391
  }
9392
9392
  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;
9393
- var init_chunk_DULDQXQX = __esm({
9394
- "../../packages/core/dist/chunk-DULDQXQX.js"() {
9393
+ var init_chunk_ECRNR7ET = __esm({
9394
+ "../../packages/core/dist/chunk-ECRNR7ET.js"() {
9395
9395
  "use strict";
9396
9396
  CALLER_LANGUAGE = "caller";
9397
9397
  GIT_CHECKOUT_MAX_LENGTH = 255;
@@ -9408,7 +9408,7 @@ var init_chunk_DULDQXQX = __esm({
9408
9408
  type: "toggle",
9409
9409
  label: "Send Images",
9410
9410
  default: false,
9411
- 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.",
9411
+ description: "Send attached images: the newest 4 from customers and team members to idle monitors and evaluators, the newest from the customer's latest messages to user_message monitors. Billed as input tokens.",
9412
9412
  ...dependsOn ? { dependsOn } : {}
9413
9413
  }
9414
9414
  });
@@ -10407,13 +10407,13 @@ var init_chunk_DULDQXQX = __esm({
10407
10407
  }
10408
10408
  });
10409
10409
 
10410
- // ../../packages/core/dist/chunk-JEWJLXAI.js
10410
+ // ../../packages/core/dist/chunk-CBSOYDZQ.js
10411
10411
  var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
10412
- var init_chunk_JEWJLXAI = __esm({
10413
- "../../packages/core/dist/chunk-JEWJLXAI.js"() {
10412
+ var init_chunk_CBSOYDZQ = __esm({
10413
+ "../../packages/core/dist/chunk-CBSOYDZQ.js"() {
10414
10414
  "use strict";
10415
10415
  init_chunk_EVXGKOJV();
10416
- init_chunk_DULDQXQX();
10416
+ init_chunk_ECRNR7ET();
10417
10417
  init_chunk_MIWZOSPI();
10418
10418
  COUNTER_KEYS = Object.keys({
10419
10419
  input_tokens: true,
@@ -10536,7 +10536,7 @@ var init_chunk_L5F7ZOUJ = __esm({
10536
10536
  }
10537
10537
  });
10538
10538
 
10539
- // ../../packages/core/dist/chunk-PI55UGBV.js
10539
+ // ../../packages/core/dist/chunk-Q3WAAJBA.js
10540
10540
  function normalizeDecisionsModelId(modelId) {
10541
10541
  return modelId.trim().toLowerCase();
10542
10542
  }
@@ -10607,10 +10607,10 @@ function readAgentSettingsModel(agentSettings) {
10607
10607
  return typeof model === "string" ? model : null;
10608
10608
  }
10609
10609
  var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
10610
- var init_chunk_PI55UGBV = __esm({
10611
- "../../packages/core/dist/chunk-PI55UGBV.js"() {
10610
+ var init_chunk_Q3WAAJBA = __esm({
10611
+ "../../packages/core/dist/chunk-Q3WAAJBA.js"() {
10612
10612
  "use strict";
10613
- init_chunk_JEWJLXAI();
10613
+ init_chunk_CBSOYDZQ();
10614
10614
  init_chunk_L5F7ZOUJ();
10615
10615
  DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
10616
10616
  DECISION_CAPABLE_AGENT_ROLES = [
@@ -10621,7 +10621,7 @@ var init_chunk_PI55UGBV = __esm({
10621
10621
  }
10622
10622
  });
10623
10623
 
10624
- // ../../packages/core/dist/chunk-DZNBZNK6.js
10624
+ // ../../packages/core/dist/chunk-5FTGVRDF.js
10625
10625
  function resolveMonitorTrigger(monitorConfig) {
10626
10626
  if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
10627
10627
  const raw = monitorConfig.trigger;
@@ -10927,14 +10927,14 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
10927
10927
  if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
10928
10928
  }
10929
10929
  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;
10930
- var init_chunk_DZNBZNK6 = __esm({
10931
- "../../packages/core/dist/chunk-DZNBZNK6.js"() {
10930
+ var init_chunk_5FTGVRDF = __esm({
10931
+ "../../packages/core/dist/chunk-5FTGVRDF.js"() {
10932
10932
  "use strict";
10933
10933
  init_chunk_IBL7FANV();
10934
10934
  init_chunk_KB5RK3RP();
10935
10935
  init_chunk_C2UEA2KW();
10936
10936
  init_chunk_HZ6CADSY();
10937
- init_chunk_PI55UGBV();
10937
+ init_chunk_Q3WAAJBA();
10938
10938
  init_chunk_EVXGKOJV();
10939
10939
  init_chunk_YROEDMVZ();
10940
10940
  init_chunk_L5F7ZOUJ();
@@ -11153,12 +11153,12 @@ var init_chunk_DZNBZNK6 = __esm({
11153
11153
  }
11154
11154
  });
11155
11155
 
11156
- // ../../packages/core/dist/chunk-WDTVVLVD.js
11156
+ // ../../packages/core/dist/chunk-OJB6LIVM.js
11157
11157
  var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
11158
- var init_chunk_WDTVVLVD = __esm({
11159
- "../../packages/core/dist/chunk-WDTVVLVD.js"() {
11158
+ var init_chunk_OJB6LIVM = __esm({
11159
+ "../../packages/core/dist/chunk-OJB6LIVM.js"() {
11160
11160
  "use strict";
11161
- init_chunk_DZNBZNK6();
11161
+ init_chunk_5FTGVRDF();
11162
11162
  init_chunk_HZ6CADSY();
11163
11163
  init_chunk_YROEDMVZ();
11164
11164
  init_zod();
@@ -11687,14 +11687,14 @@ var init_chunk_E4DIIOOE = __esm({
11687
11687
  }
11688
11688
  });
11689
11689
 
11690
- // ../../packages/core/dist/chunk-EJFKWH32.js
11690
+ // ../../packages/core/dist/chunk-UI6YFSZL.js
11691
11691
  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;
11692
- var init_chunk_EJFKWH32 = __esm({
11693
- "../../packages/core/dist/chunk-EJFKWH32.js"() {
11692
+ var init_chunk_UI6YFSZL = __esm({
11693
+ "../../packages/core/dist/chunk-UI6YFSZL.js"() {
11694
11694
  "use strict";
11695
11695
  init_chunk_E4DIIOOE();
11696
11696
  init_chunk_HZ6CADSY();
11697
- init_chunk_DULDQXQX();
11697
+ init_chunk_ECRNR7ET();
11698
11698
  init_chunk_MIWZOSPI();
11699
11699
  init_zod();
11700
11700
  evalCallInstant = timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp");
@@ -13991,7 +13991,7 @@ var init_chunk_TU4Y4MEX = __esm({
13991
13991
  }
13992
13992
  });
13993
13993
 
13994
- // ../../packages/core/dist/chunk-PTWZYQB5.js
13994
+ // ../../packages/core/dist/chunk-WJVJAWKV.js
13995
13995
  function refineHubAsCodeCustomTools(config, ctx) {
13996
13996
  const agents = config.agents;
13997
13997
  if (!Array.isArray(agents)) return;
@@ -14601,23 +14601,23 @@ function skillSectionsAsResources(scope) {
14601
14601
  };
14602
14602
  }
14603
14603
  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;
14604
- var init_chunk_PTWZYQB5 = __esm({
14605
- "../../packages/core/dist/chunk-PTWZYQB5.js"() {
14604
+ var init_chunk_WJVJAWKV = __esm({
14605
+ "../../packages/core/dist/chunk-WJVJAWKV.js"() {
14606
14606
  "use strict";
14607
14607
  init_chunk_SARVKRZB();
14608
- init_chunk_RCMBGK4O();
14608
+ init_chunk_R3YTRHDM();
14609
14609
  init_chunk_UN7QXDKQ();
14610
14610
  init_chunk_LBDH7LCG();
14611
14611
  init_chunk_4LXDRTO4();
14612
14612
  init_chunk_TU4Y4MEX();
14613
14613
  init_chunk_2KNVPV7S();
14614
14614
  init_chunk_K5UAZWFF();
14615
- init_chunk_DZNBZNK6();
14615
+ init_chunk_5FTGVRDF();
14616
14616
  init_chunk_S4VDZ7PZ();
14617
14617
  init_chunk_C2UEA2KW();
14618
14618
  init_chunk_VFDRJV2E();
14619
14619
  init_chunk_WEXVYJ5H();
14620
- init_chunk_PI55UGBV();
14620
+ init_chunk_Q3WAAJBA();
14621
14621
  init_chunk_YROEDMVZ();
14622
14622
  init_zod();
14623
14623
  MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
@@ -15696,16 +15696,16 @@ var init_chunk_WJ7THIFJ = __esm({
15696
15696
  }
15697
15697
  });
15698
15698
 
15699
- // ../../packages/core/dist/chunk-F4MBPBZX.js
15699
+ // ../../packages/core/dist/chunk-KXQZYCAO.js
15700
15700
  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;
15701
- var init_chunk_F4MBPBZX = __esm({
15702
- "../../packages/core/dist/chunk-F4MBPBZX.js"() {
15701
+ var init_chunk_KXQZYCAO = __esm({
15702
+ "../../packages/core/dist/chunk-KXQZYCAO.js"() {
15703
15703
  "use strict";
15704
15704
  init_chunk_WJ7THIFJ();
15705
15705
  init_chunk_LIDKVVXZ();
15706
- init_chunk_DZNBZNK6();
15706
+ init_chunk_5FTGVRDF();
15707
15707
  init_chunk_5XEJSR22();
15708
- init_chunk_PI55UGBV();
15708
+ init_chunk_Q3WAAJBA();
15709
15709
  init_chunk_YROEDMVZ();
15710
15710
  init_zod();
15711
15711
  AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
@@ -16165,15 +16165,15 @@ var init_contracts = __esm({
16165
16165
  init_chunk_I3O2RACG();
16166
16166
  init_chunk_34LE6P7E();
16167
16167
  init_chunk_FPSDNS2E();
16168
- init_chunk_6LEP2CEL();
16169
- init_chunk_LKD6ISTP();
16168
+ init_chunk_MBORBRUA();
16169
+ init_chunk_ZJQGHQEQ();
16170
16170
  init_chunk_OPETF4GS();
16171
16171
  init_chunk_SY6PLCPK();
16172
16172
  init_chunk_KMAC3O3L();
16173
- init_chunk_WDTVVLVD();
16173
+ init_chunk_OJB6LIVM();
16174
16174
  init_chunk_KSTYTQ7I();
16175
16175
  init_chunk_LKBSHANA();
16176
- init_chunk_EJFKWH32();
16176
+ init_chunk_UI6YFSZL();
16177
16177
  init_chunk_C4HEZ7ZI();
16178
16178
  init_chunk_IR2NOSI3();
16179
16179
  init_chunk_7LLIQ4UF();
@@ -16188,10 +16188,10 @@ var init_contracts = __esm({
16188
16188
  init_chunk_E4DIIOOE();
16189
16189
  init_chunk_7CYHPF35();
16190
16190
  init_chunk_BPCNB5RT();
16191
- init_chunk_PTWZYQB5();
16191
+ init_chunk_WJVJAWKV();
16192
16192
  init_chunk_SARVKRZB();
16193
- init_chunk_RCMBGK4O();
16194
- init_chunk_BNHJNSAJ();
16193
+ init_chunk_R3YTRHDM();
16194
+ init_chunk_LVTURR5A();
16195
16195
  init_chunk_UN7QXDKQ();
16196
16196
  init_chunk_LBDH7LCG();
16197
16197
  init_chunk_4LXDRTO4();
@@ -16208,10 +16208,10 @@ var init_contracts = __esm({
16208
16208
  init_chunk_2PZIF56U();
16209
16209
  init_chunk_UEJOG2Q7();
16210
16210
  init_chunk_JO53JB35();
16211
- init_chunk_F4MBPBZX();
16211
+ init_chunk_KXQZYCAO();
16212
16212
  init_chunk_WJ7THIFJ();
16213
16213
  init_chunk_LIDKVVXZ();
16214
- init_chunk_DZNBZNK6();
16214
+ init_chunk_5FTGVRDF();
16215
16215
  init_chunk_IG6QBZMA();
16216
16216
  init_chunk_OMPT4ZHR();
16217
16217
  init_chunk_J3UZCMO6();
@@ -16234,10 +16234,10 @@ var init_contracts = __esm({
16234
16234
  init_chunk_WEXVYJ5H();
16235
16235
  init_chunk_6TSQ5HXC();
16236
16236
  init_chunk_HZ6CADSY();
16237
- init_chunk_PI55UGBV();
16238
- init_chunk_JEWJLXAI();
16237
+ init_chunk_Q3WAAJBA();
16238
+ init_chunk_CBSOYDZQ();
16239
16239
  init_chunk_EVXGKOJV();
16240
- init_chunk_DULDQXQX();
16240
+ init_chunk_ECRNR7ET();
16241
16241
  init_chunk_MIWZOSPI();
16242
16242
  init_chunk_YROEDMVZ();
16243
16243
  init_chunk_L5F7ZOUJ();
@@ -16394,10 +16394,10 @@ var init_dist = __esm({
16394
16394
  init_chunk_6TSQ5HXC();
16395
16395
  init_chunk_HZ6CADSY();
16396
16396
  init_chunk_BF4WRSOQ();
16397
- init_chunk_PI55UGBV();
16398
- init_chunk_JEWJLXAI();
16397
+ init_chunk_Q3WAAJBA();
16398
+ init_chunk_CBSOYDZQ();
16399
16399
  init_chunk_EVXGKOJV();
16400
- init_chunk_DULDQXQX();
16400
+ init_chunk_ECRNR7ET();
16401
16401
  init_chunk_MIWZOSPI();
16402
16402
  init_chunk_YROEDMVZ();
16403
16403
  init_chunk_L5F7ZOUJ();
@@ -40623,6 +40623,11 @@ function applyTokenLifecycleOpts(body, opts) {
40623
40623
  if (expiresAt) body.expires_at = expiresAt;
40624
40624
  if (opts.description) body.description = opts.description;
40625
40625
  }
40626
+ function answeredPersons(data) {
40627
+ if (typeof data !== "object" || data === null) return void 0;
40628
+ const binding2 = data.toolset_binding;
40629
+ return typeof binding2 === "object" && binding2 !== null ? binding2.person : void 0;
40630
+ }
40626
40631
  function listAllTokens(client) {
40627
40632
  return client.collectPages(
40628
40633
  (cursor) => `/v1/tokens?limit=${TOKEN_LIST_PAGE_LIMIT}${cursor ? `&cursor=${encodeURIComponent(cursor)}` : ""}`
@@ -40659,6 +40664,9 @@ function buildBasesTokensCommand() {
40659
40664
  withBaseOption(tokens2.command("create-for-toolset <slug>")).description(
40660
40665
  "Create a toolset-bound (consumer) token whose authorization IS the toolset tool surface \u2014 it can call exactly the tools that toolset exposes (those record types + operations, relationships, batch, and sql only if enabled) and nothing else. Binds to the configured --base."
40661
40666
  ).option("--name <name>", 'Token name (default: "<slug> consumer")').option(
40667
+ "--person <ids>",
40668
+ "Bind the token to the people one session serves: comma-separated person ids (at most 16), matched literally against the base's person fields. Every call is then customer-facing, and the token expires within 24 hours."
40669
+ ).option(
40662
40670
  "--token-only",
40663
40671
  "Print only the raw rec_ token for secure command substitution (shown once)"
40664
40672
  )
@@ -40666,11 +40674,25 @@ function buildBasesTokensCommand() {
40666
40674
  const base = requireBase(this);
40667
40675
  const body = {
40668
40676
  name: opts.name ?? `${slug} consumer`,
40669
- toolset_binding: { base_id: base, toolset_id: slug }
40677
+ toolset_binding: {
40678
+ base_id: base,
40679
+ toolset_id: slug,
40680
+ // The server holds each id to its form and the list to its cap; the CLI only splits it.
40681
+ ...opts.person !== void 0 ? { person: splitList(opts.person) } : {}
40682
+ }
40670
40683
  };
40671
40684
  applyTokenLifecycleOpts(body, opts);
40672
40685
  const client = await createDataClient();
40673
40686
  const data = await client.request("POST", "/v1/tokens", body);
40687
+ if (opts.person !== void 0 && !Array.isArray(answeredPersons(data))) {
40688
+ const tokenId = data.token_id;
40689
+ if (typeof tokenId === "string" && tokenId.length > 0) {
40690
+ await client.request("DELETE", `/v1/tokens/${pathSegment(tokenId, "token id")}?force=true`);
40691
+ }
40692
+ throw expected(
40693
+ "The backend minted the token without its persons, so it was revoked. Retry once the backend supports --person."
40694
+ );
40695
+ }
40674
40696
  const output = tokenCreationOutput(this, opts);
40675
40697
  printCreatedToken(data, output);
40676
40698
  if (output === "table") {