@wayai/cli 0.3.254 → 0.3.255
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 +182 -103
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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-
|
|
5556
|
+
// ../../packages/core/dist/chunk-JOPEQ3WP.js
|
|
5557
5557
|
var accessExplainQuery;
|
|
5558
|
-
var
|
|
5559
|
-
"../../packages/core/dist/chunk-
|
|
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-
|
|
6784
|
+
// ../../packages/core/dist/chunk-Z2DCDLGA.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
|
|
6787
|
-
"../../packages/core/dist/chunk-
|
|
6786
|
+
var init_chunk_Z2DCDLGA = __esm({
|
|
6787
|
+
"../../packages/core/dist/chunk-Z2DCDLGA.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-
|
|
6843
|
+
// ../../packages/core/dist/chunk-4WAW72DX.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
|
|
6882
|
-
"../../packages/core/dist/chunk-
|
|
6881
|
+
var init_chunk_4WAW72DX = __esm({
|
|
6882
|
+
"../../packages/core/dist/chunk-4WAW72DX.js"() {
|
|
6883
6883
|
"use strict";
|
|
6884
|
-
|
|
6884
|
+
init_chunk_Z2DCDLGA();
|
|
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-
|
|
6975
|
+
// ../../packages/core/dist/chunk-FTMUTHML.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
|
|
6987
|
-
"../../packages/core/dist/chunk-
|
|
6986
|
+
var init_chunk_FTMUTHML = __esm({
|
|
6987
|
+
"../../packages/core/dist/chunk-FTMUTHML.js"() {
|
|
6988
6988
|
"use strict";
|
|
6989
|
-
|
|
6990
|
-
|
|
6989
|
+
init_chunk_4WAW72DX();
|
|
6990
|
+
init_chunk_Z2DCDLGA();
|
|
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,7 @@ 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 staff call's reads and writes of a person-ruled record type to its parties.
|
|
7137
7137
|
*/
|
|
7138
7138
|
[REKOR_BOUND_PERSON_HEADER]: external_exports.string().max(REKOR_MAX_PERSON_HEADER_LENGTH).refine(isEncodedBoundPerson, {
|
|
7139
7139
|
message: "Not the persons a bound call is for"
|
|
@@ -7625,12 +7625,12 @@ var init_chunk_VFDRJV2E = __esm({
|
|
|
7625
7625
|
}
|
|
7626
7626
|
});
|
|
7627
7627
|
|
|
7628
|
-
// ../../packages/core/dist/chunk-
|
|
7628
|
+
// ../../packages/core/dist/chunk-7PYRMHTA.js
|
|
7629
7629
|
var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
|
|
7630
|
-
var
|
|
7631
|
-
"../../packages/core/dist/chunk-
|
|
7630
|
+
var init_chunk_7PYRMHTA = __esm({
|
|
7631
|
+
"../../packages/core/dist/chunk-7PYRMHTA.js"() {
|
|
7632
7632
|
"use strict";
|
|
7633
|
-
|
|
7633
|
+
init_chunk_FTMUTHML();
|
|
7634
7634
|
init_chunk_VFDRJV2E();
|
|
7635
7635
|
init_chunk_HZ6CADSY();
|
|
7636
7636
|
init_zod();
|
|
@@ -8124,7 +8124,7 @@ var init_chunk_C2UEA2KW = __esm({
|
|
|
8124
8124
|
}
|
|
8125
8125
|
});
|
|
8126
8126
|
|
|
8127
|
-
// ../../packages/core/dist/chunk-
|
|
8127
|
+
// ../../packages/core/dist/chunk-EVXGKOJV.js
|
|
8128
8128
|
function catalogToolSideEffects(toolName) {
|
|
8129
8129
|
const sideEffects = CATALOG_SIDE_EFFECTS.get(toolName);
|
|
8130
8130
|
if (sideEffects === void 0) return "unknown";
|
|
@@ -8140,8 +8140,8 @@ function idempotencyHeaderRefusal(value) {
|
|
|
8140
8140
|
return null;
|
|
8141
8141
|
}
|
|
8142
8142
|
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
|
|
8144
|
-
"../../packages/core/dist/chunk-
|
|
8143
|
+
var init_chunk_EVXGKOJV = __esm({
|
|
8144
|
+
"../../packages/core/dist/chunk-EVXGKOJV.js"() {
|
|
8145
8145
|
"use strict";
|
|
8146
8146
|
init_chunk_YROEDMVZ();
|
|
8147
8147
|
NATIVE_TOOL_SCHEMAS = {
|
|
@@ -8456,6 +8456,29 @@ var init_chunk_FCYMUE6O = __esm({
|
|
|
8456
8456
|
},
|
|
8457
8457
|
"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
8458
|
},
|
|
8459
|
+
"open_page": {
|
|
8460
|
+
"tool_config": {
|
|
8461
|
+
"name": "open_page",
|
|
8462
|
+
"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.",
|
|
8463
|
+
"strict": false,
|
|
8464
|
+
"parameters": {
|
|
8465
|
+
"type": "object",
|
|
8466
|
+
"properties": {
|
|
8467
|
+
"page": {
|
|
8468
|
+
"type": "string",
|
|
8469
|
+
"description": "The page's slug, from the listing. Omit it to list the pages."
|
|
8470
|
+
},
|
|
8471
|
+
"params": {
|
|
8472
|
+
"type": "object",
|
|
8473
|
+
"description": "Values the page opens with, as its params schema in the listing declares them. Others are dropped."
|
|
8474
|
+
}
|
|
8475
|
+
},
|
|
8476
|
+
"required": [],
|
|
8477
|
+
"additionalProperties": false
|
|
8478
|
+
}
|
|
8479
|
+
},
|
|
8480
|
+
"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."
|
|
8481
|
+
},
|
|
8459
8482
|
"open_pull_request": {
|
|
8460
8483
|
"tool_config": {
|
|
8461
8484
|
"name": "open_pull_request",
|
|
@@ -9095,7 +9118,14 @@ var init_chunk_FCYMUE6O = __esm({
|
|
|
9095
9118
|
// model names the branch, the base, the title and the body, never the repository. Any other agent is
|
|
9096
9119
|
// refused at the call. `reconcile`, not `keyed`: a re-run after a first run that opened it is refused by
|
|
9097
9120
|
// 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 }
|
|
9121
|
+
{ 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
|
+
// A page card (wayai#5333 decision 11, row 7.2): one interactive agent message whose slot names one of
|
|
9123
|
+
// the hub's pages (`{ kind: 'page', page, params }`), written through the turn's interactive message op
|
|
9124
|
+
// (wayai#4751 row 1.2), for a page the conversation's person can open. Side effects: it sends to the
|
|
9125
|
+
// contact. `keyed`: the card takes the id its key derives, and the op stores and sends nothing its first
|
|
9126
|
+
// run did. Not hosted, as `send_files` is not (decision 69). The pilot track only: no other role's turn
|
|
9127
|
+
// addresses the customer (it is internal or a consult, which the op refuses, or the role runs none).
|
|
9128
|
+
{ 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
9129
|
];
|
|
9100
9130
|
NATIVE_TOOLS = BASE_NATIVE_TOOLS.map((base) => {
|
|
9101
9131
|
const schema = NATIVE_TOOL_SCHEMAS[base.tool_name];
|
|
@@ -9132,7 +9162,7 @@ var init_chunk_FCYMUE6O = __esm({
|
|
|
9132
9162
|
}
|
|
9133
9163
|
});
|
|
9134
9164
|
|
|
9135
|
-
// ../../packages/core/dist/chunk-
|
|
9165
|
+
// ../../packages/core/dist/chunk-DULDQXQX.js
|
|
9136
9166
|
function spokenLineField(label2, description2) {
|
|
9137
9167
|
return { type: "text", label: label2, maxLength: SPOKEN_LINE_MAX_CHARS, default: "", description: description2 };
|
|
9138
9168
|
}
|
|
@@ -9141,9 +9171,9 @@ function byLowercaseName(a, b) {
|
|
|
9141
9171
|
const y = b.connector_name.toLowerCase();
|
|
9142
9172
|
return x < y ? -1 : x > y ? 1 : 0;
|
|
9143
9173
|
}
|
|
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
|
|
9146
|
-
"../../packages/core/dist/chunk-
|
|
9174
|
+
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;
|
|
9175
|
+
var init_chunk_DULDQXQX = __esm({
|
|
9176
|
+
"../../packages/core/dist/chunk-DULDQXQX.js"() {
|
|
9147
9177
|
"use strict";
|
|
9148
9178
|
CALLER_LANGUAGE = "caller";
|
|
9149
9179
|
GIT_CHECKOUT_MAX_LENGTH = 255;
|
|
@@ -9155,6 +9185,15 @@ var init_chunk_F3Z4V7VQ = __esm({
|
|
|
9155
9185
|
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
9186
|
}
|
|
9157
9187
|
};
|
|
9188
|
+
decisionsImageInputField = (dependsOn) => ({
|
|
9189
|
+
image_input: {
|
|
9190
|
+
type: "toggle",
|
|
9191
|
+
label: "Send Images",
|
|
9192
|
+
default: false,
|
|
9193
|
+
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.",
|
|
9194
|
+
...dependsOn ? { dependsOn } : {}
|
|
9195
|
+
}
|
|
9196
|
+
});
|
|
9158
9197
|
COPILOT_TRIGGER_FIELD = {
|
|
9159
9198
|
copilot_trigger: {
|
|
9160
9199
|
type: "select",
|
|
@@ -9512,7 +9551,9 @@ var init_chunk_F3Z4V7VQ = __esm({
|
|
|
9512
9551
|
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
9552
|
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
9553
|
...SANDBOX_AGENT_FIELDS,
|
|
9515
|
-
...COPILOT_TRIGGER_FIELD
|
|
9554
|
+
...COPILOT_TRIGGER_FIELD,
|
|
9555
|
+
// `typesafe/jev-latest` too: a monitor saved on it before #4486 still stores it, and is still served on it.
|
|
9556
|
+
...decisionsImageInputField({ field: "model", values: ["jev-latest", "typesafe/jev-1.13", "typesafe/jev-latest"] })
|
|
9516
9557
|
},
|
|
9517
9558
|
channel_settings_schema: null,
|
|
9518
9559
|
tool_settings_schema: null,
|
|
@@ -9580,7 +9621,8 @@ var init_chunk_F3Z4V7VQ = __esm({
|
|
|
9580
9621
|
enabled: true,
|
|
9581
9622
|
connector_settings_schema: null,
|
|
9582
9623
|
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 }
|
|
9624
|
+
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
|
+
...decisionsImageInputField()
|
|
9584
9626
|
},
|
|
9585
9627
|
channel_settings_schema: null,
|
|
9586
9628
|
tool_settings_schema: null,
|
|
@@ -10147,13 +10189,13 @@ var init_chunk_F3Z4V7VQ = __esm({
|
|
|
10147
10189
|
}
|
|
10148
10190
|
});
|
|
10149
10191
|
|
|
10150
|
-
// ../../packages/core/dist/chunk-
|
|
10192
|
+
// ../../packages/core/dist/chunk-JEWJLXAI.js
|
|
10151
10193
|
var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
|
|
10152
|
-
var
|
|
10153
|
-
"../../packages/core/dist/chunk-
|
|
10194
|
+
var init_chunk_JEWJLXAI = __esm({
|
|
10195
|
+
"../../packages/core/dist/chunk-JEWJLXAI.js"() {
|
|
10154
10196
|
"use strict";
|
|
10155
|
-
|
|
10156
|
-
|
|
10197
|
+
init_chunk_EVXGKOJV();
|
|
10198
|
+
init_chunk_DULDQXQX();
|
|
10157
10199
|
init_chunk_MIWZOSPI();
|
|
10158
10200
|
COUNTER_KEYS = Object.keys({
|
|
10159
10201
|
input_tokens: true,
|
|
@@ -10276,7 +10318,7 @@ var init_chunk_L5F7ZOUJ = __esm({
|
|
|
10276
10318
|
}
|
|
10277
10319
|
});
|
|
10278
10320
|
|
|
10279
|
-
// ../../packages/core/dist/chunk-
|
|
10321
|
+
// ../../packages/core/dist/chunk-PI55UGBV.js
|
|
10280
10322
|
function normalizeDecisionsModelId(modelId) {
|
|
10281
10323
|
return modelId.trim().toLowerCase();
|
|
10282
10324
|
}
|
|
@@ -10347,10 +10389,10 @@ function readAgentSettingsModel(agentSettings) {
|
|
|
10347
10389
|
return typeof model === "string" ? model : null;
|
|
10348
10390
|
}
|
|
10349
10391
|
var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
|
|
10350
|
-
var
|
|
10351
|
-
"../../packages/core/dist/chunk-
|
|
10392
|
+
var init_chunk_PI55UGBV = __esm({
|
|
10393
|
+
"../../packages/core/dist/chunk-PI55UGBV.js"() {
|
|
10352
10394
|
"use strict";
|
|
10353
|
-
|
|
10395
|
+
init_chunk_JEWJLXAI();
|
|
10354
10396
|
init_chunk_L5F7ZOUJ();
|
|
10355
10397
|
DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
|
|
10356
10398
|
DECISION_CAPABLE_AGENT_ROLES = [
|
|
@@ -10361,7 +10403,7 @@ var init_chunk_NKTCDZYV = __esm({
|
|
|
10361
10403
|
}
|
|
10362
10404
|
});
|
|
10363
10405
|
|
|
10364
|
-
// ../../packages/core/dist/chunk-
|
|
10406
|
+
// ../../packages/core/dist/chunk-DZNBZNK6.js
|
|
10365
10407
|
function resolveMonitorTrigger(monitorConfig) {
|
|
10366
10408
|
if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
|
|
10367
10409
|
const raw = monitorConfig.trigger;
|
|
@@ -10667,15 +10709,15 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
|
|
|
10667
10709
|
if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
|
|
10668
10710
|
}
|
|
10669
10711
|
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
|
|
10671
|
-
"../../packages/core/dist/chunk-
|
|
10712
|
+
var init_chunk_DZNBZNK6 = __esm({
|
|
10713
|
+
"../../packages/core/dist/chunk-DZNBZNK6.js"() {
|
|
10672
10714
|
"use strict";
|
|
10673
10715
|
init_chunk_IBL7FANV();
|
|
10674
10716
|
init_chunk_KB5RK3RP();
|
|
10675
10717
|
init_chunk_C2UEA2KW();
|
|
10676
10718
|
init_chunk_HZ6CADSY();
|
|
10677
|
-
|
|
10678
|
-
|
|
10719
|
+
init_chunk_PI55UGBV();
|
|
10720
|
+
init_chunk_EVXGKOJV();
|
|
10679
10721
|
init_chunk_YROEDMVZ();
|
|
10680
10722
|
init_chunk_L5F7ZOUJ();
|
|
10681
10723
|
init_zod();
|
|
@@ -10893,12 +10935,12 @@ var init_chunk_KZIKA2QR = __esm({
|
|
|
10893
10935
|
}
|
|
10894
10936
|
});
|
|
10895
10937
|
|
|
10896
|
-
// ../../packages/core/dist/chunk-
|
|
10938
|
+
// ../../packages/core/dist/chunk-WDTVVLVD.js
|
|
10897
10939
|
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
|
|
10899
|
-
"../../packages/core/dist/chunk-
|
|
10940
|
+
var init_chunk_WDTVVLVD = __esm({
|
|
10941
|
+
"../../packages/core/dist/chunk-WDTVVLVD.js"() {
|
|
10900
10942
|
"use strict";
|
|
10901
|
-
|
|
10943
|
+
init_chunk_DZNBZNK6();
|
|
10902
10944
|
init_chunk_HZ6CADSY();
|
|
10903
10945
|
init_chunk_YROEDMVZ();
|
|
10904
10946
|
init_zod();
|
|
@@ -11427,14 +11469,14 @@ var init_chunk_E4DIIOOE = __esm({
|
|
|
11427
11469
|
}
|
|
11428
11470
|
});
|
|
11429
11471
|
|
|
11430
|
-
// ../../packages/core/dist/chunk-
|
|
11472
|
+
// ../../packages/core/dist/chunk-EJFKWH32.js
|
|
11431
11473
|
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
|
|
11433
|
-
"../../packages/core/dist/chunk-
|
|
11474
|
+
var init_chunk_EJFKWH32 = __esm({
|
|
11475
|
+
"../../packages/core/dist/chunk-EJFKWH32.js"() {
|
|
11434
11476
|
"use strict";
|
|
11435
11477
|
init_chunk_E4DIIOOE();
|
|
11436
11478
|
init_chunk_HZ6CADSY();
|
|
11437
|
-
|
|
11479
|
+
init_chunk_DULDQXQX();
|
|
11438
11480
|
init_chunk_MIWZOSPI();
|
|
11439
11481
|
init_zod();
|
|
11440
11482
|
evalCallInstant = timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp");
|
|
@@ -12525,7 +12567,7 @@ var init_chunk_BPCNB5RT = __esm({
|
|
|
12525
12567
|
}
|
|
12526
12568
|
});
|
|
12527
12569
|
|
|
12528
|
-
// ../../packages/core/dist/chunk-
|
|
12570
|
+
// ../../packages/core/dist/chunk-SARVKRZB.js
|
|
12529
12571
|
function refineToolConfig(value, ctx) {
|
|
12530
12572
|
const raw = value.tool_config;
|
|
12531
12573
|
if (raw == null) return;
|
|
@@ -12561,12 +12603,12 @@ function refineToolConfig(value, ctx) {
|
|
|
12561
12603
|
}
|
|
12562
12604
|
}
|
|
12563
12605
|
var toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
|
|
12564
|
-
var
|
|
12565
|
-
"../../packages/core/dist/chunk-
|
|
12606
|
+
var init_chunk_SARVKRZB = __esm({
|
|
12607
|
+
"../../packages/core/dist/chunk-SARVKRZB.js"() {
|
|
12566
12608
|
"use strict";
|
|
12567
12609
|
init_chunk_WEXVYJ5H();
|
|
12568
12610
|
init_chunk_HZ6CADSY();
|
|
12569
|
-
|
|
12611
|
+
init_chunk_EVXGKOJV();
|
|
12570
12612
|
init_zod();
|
|
12571
12613
|
toolIdParam = external_exports.object({ id: uuidSchema });
|
|
12572
12614
|
listToolsQuery = external_exports.object({ agent_id: uuidSchema, hub_id: uuidSchema });
|
|
@@ -13209,10 +13251,10 @@ var init_chunk_LBDH7LCG = __esm({
|
|
|
13209
13251
|
}
|
|
13210
13252
|
});
|
|
13211
13253
|
|
|
13212
|
-
// ../../packages/core/dist/chunk-
|
|
13254
|
+
// ../../packages/core/dist/chunk-D3EP4TDU.js
|
|
13213
13255
|
var primaryRegionSchema, placementSourceSchema, orgIdParam, orgAdminIdParam, createOrganizationBody, updateOrganizationBody, addOrgAdminBody;
|
|
13214
|
-
var
|
|
13215
|
-
"../../packages/core/dist/chunk-
|
|
13256
|
+
var init_chunk_D3EP4TDU = __esm({
|
|
13257
|
+
"../../packages/core/dist/chunk-D3EP4TDU.js"() {
|
|
13216
13258
|
"use strict";
|
|
13217
13259
|
init_chunk_HZ6CADSY();
|
|
13218
13260
|
init_zod();
|
|
@@ -13692,7 +13734,7 @@ var init_chunk_K5UAZWFF = __esm({
|
|
|
13692
13734
|
}
|
|
13693
13735
|
});
|
|
13694
13736
|
|
|
13695
|
-
// ../../packages/core/dist/chunk-
|
|
13737
|
+
// ../../packages/core/dist/chunk-TU4Y4MEX.js
|
|
13696
13738
|
function refineLaneReferences(val, ctx) {
|
|
13697
13739
|
const lanes = val.lanes;
|
|
13698
13740
|
const statuses = val.kanban_statuses;
|
|
@@ -13716,10 +13758,10 @@ function describeSyncWarning(warning) {
|
|
|
13716
13758
|
return `${label2}: ${parts.join("; ")}. Promote the base so production's tools match the preview's.`;
|
|
13717
13759
|
}
|
|
13718
13760
|
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
|
|
13720
|
-
"../../packages/core/dist/chunk-
|
|
13761
|
+
var init_chunk_TU4Y4MEX = __esm({
|
|
13762
|
+
"../../packages/core/dist/chunk-TU4Y4MEX.js"() {
|
|
13721
13763
|
"use strict";
|
|
13722
|
-
|
|
13764
|
+
init_chunk_D3EP4TDU();
|
|
13723
13765
|
init_chunk_2KNVPV7S();
|
|
13724
13766
|
init_chunk_K5UAZWFF();
|
|
13725
13767
|
init_chunk_HZ6CADSY();
|
|
@@ -13916,7 +13958,7 @@ var init_chunk_MHIPTVKS = __esm({
|
|
|
13916
13958
|
}
|
|
13917
13959
|
});
|
|
13918
13960
|
|
|
13919
|
-
// ../../packages/core/dist/chunk-
|
|
13961
|
+
// ../../packages/core/dist/chunk-5MXHAKHC.js
|
|
13920
13962
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
13921
13963
|
const agents = config.agents;
|
|
13922
13964
|
if (!Array.isArray(agents)) return;
|
|
@@ -14526,23 +14568,23 @@ function skillSectionsAsResources(scope) {
|
|
|
14526
14568
|
};
|
|
14527
14569
|
}
|
|
14528
14570
|
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
|
|
14530
|
-
"../../packages/core/dist/chunk-
|
|
14571
|
+
var init_chunk_5MXHAKHC = __esm({
|
|
14572
|
+
"../../packages/core/dist/chunk-5MXHAKHC.js"() {
|
|
14531
14573
|
"use strict";
|
|
14532
|
-
|
|
14533
|
-
|
|
14574
|
+
init_chunk_SARVKRZB();
|
|
14575
|
+
init_chunk_4WAW72DX();
|
|
14534
14576
|
init_chunk_UN7QXDKQ();
|
|
14535
14577
|
init_chunk_LBDH7LCG();
|
|
14536
14578
|
init_chunk_4LXDRTO4();
|
|
14537
|
-
|
|
14579
|
+
init_chunk_TU4Y4MEX();
|
|
14538
14580
|
init_chunk_2KNVPV7S();
|
|
14539
14581
|
init_chunk_K5UAZWFF();
|
|
14540
|
-
|
|
14582
|
+
init_chunk_DZNBZNK6();
|
|
14541
14583
|
init_chunk_S4VDZ7PZ();
|
|
14542
14584
|
init_chunk_C2UEA2KW();
|
|
14543
14585
|
init_chunk_VFDRJV2E();
|
|
14544
14586
|
init_chunk_WEXVYJ5H();
|
|
14545
|
-
|
|
14587
|
+
init_chunk_PI55UGBV();
|
|
14546
14588
|
init_chunk_YROEDMVZ();
|
|
14547
14589
|
init_zod();
|
|
14548
14590
|
MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
|
|
@@ -15002,7 +15044,7 @@ var init_chunk_OMPT4ZHR = __esm({
|
|
|
15002
15044
|
}
|
|
15003
15045
|
});
|
|
15004
15046
|
|
|
15005
|
-
// ../../packages/core/dist/chunk-
|
|
15047
|
+
// ../../packages/core/dist/chunk-XMG3GA2R.js
|
|
15006
15048
|
function refineScopedTarget(data, ctx) {
|
|
15007
15049
|
if (data.scope === "org") {
|
|
15008
15050
|
if (!data.org_id) {
|
|
@@ -15028,13 +15070,13 @@ function refineScopedTarget(data, ctx) {
|
|
|
15028
15070
|
}
|
|
15029
15071
|
}
|
|
15030
15072
|
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
|
|
15032
|
-
"../../packages/core/dist/chunk-
|
|
15073
|
+
var init_chunk_XMG3GA2R = __esm({
|
|
15074
|
+
"../../packages/core/dist/chunk-XMG3GA2R.js"() {
|
|
15033
15075
|
"use strict";
|
|
15034
15076
|
init_chunk_FECLIZTY();
|
|
15035
15077
|
init_chunk_BFG4ZWR4();
|
|
15036
15078
|
init_chunk_YZAIZJTO();
|
|
15037
|
-
|
|
15079
|
+
init_chunk_TU4Y4MEX();
|
|
15038
15080
|
init_chunk_OMPT4ZHR();
|
|
15039
15081
|
init_chunk_HZ6CADSY();
|
|
15040
15082
|
init_chunk_MIWZOSPI();
|
|
@@ -15621,16 +15663,16 @@ var init_chunk_PBE4O572 = __esm({
|
|
|
15621
15663
|
}
|
|
15622
15664
|
});
|
|
15623
15665
|
|
|
15624
|
-
// ../../packages/core/dist/chunk-
|
|
15666
|
+
// ../../packages/core/dist/chunk-5PEVI432.js
|
|
15625
15667
|
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
|
|
15627
|
-
"../../packages/core/dist/chunk-
|
|
15668
|
+
var init_chunk_5PEVI432 = __esm({
|
|
15669
|
+
"../../packages/core/dist/chunk-5PEVI432.js"() {
|
|
15628
15670
|
"use strict";
|
|
15629
15671
|
init_chunk_PBE4O572();
|
|
15630
15672
|
init_chunk_THM6ALTK();
|
|
15631
|
-
|
|
15673
|
+
init_chunk_DZNBZNK6();
|
|
15632
15674
|
init_chunk_5XEJSR22();
|
|
15633
|
-
|
|
15675
|
+
init_chunk_PI55UGBV();
|
|
15634
15676
|
init_chunk_YROEDMVZ();
|
|
15635
15677
|
init_zod();
|
|
15636
15678
|
AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
|
|
@@ -16074,7 +16116,7 @@ var init_contracts = __esm({
|
|
|
16074
16116
|
init_chunk_WL5QGKHN();
|
|
16075
16117
|
init_chunk_YVY2TZK2();
|
|
16076
16118
|
init_chunk_ACKF2MVU();
|
|
16077
|
-
|
|
16119
|
+
init_chunk_JOPEQ3WP();
|
|
16078
16120
|
init_chunk_HA7CRZMX();
|
|
16079
16121
|
init_chunk_MF2VVXBR();
|
|
16080
16122
|
init_chunk_IPDOHAZ5();
|
|
@@ -16089,15 +16131,15 @@ var init_contracts = __esm({
|
|
|
16089
16131
|
init_chunk_I3O2RACG();
|
|
16090
16132
|
init_chunk_34LE6P7E();
|
|
16091
16133
|
init_chunk_FPSDNS2E();
|
|
16092
|
-
|
|
16093
|
-
|
|
16134
|
+
init_chunk_7PYRMHTA();
|
|
16135
|
+
init_chunk_FTMUTHML();
|
|
16094
16136
|
init_chunk_OPETF4GS();
|
|
16095
16137
|
init_chunk_SY6PLCPK();
|
|
16096
16138
|
init_chunk_KMAC3O3L();
|
|
16097
|
-
|
|
16139
|
+
init_chunk_WDTVVLVD();
|
|
16098
16140
|
init_chunk_KSTYTQ7I();
|
|
16099
16141
|
init_chunk_LKBSHANA();
|
|
16100
|
-
|
|
16142
|
+
init_chunk_EJFKWH32();
|
|
16101
16143
|
init_chunk_C4HEZ7ZI();
|
|
16102
16144
|
init_chunk_IR2NOSI3();
|
|
16103
16145
|
init_chunk_FUIWYKHJ();
|
|
@@ -16112,30 +16154,30 @@ var init_contracts = __esm({
|
|
|
16112
16154
|
init_chunk_E4DIIOOE();
|
|
16113
16155
|
init_chunk_7CYHPF35();
|
|
16114
16156
|
init_chunk_BPCNB5RT();
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16157
|
+
init_chunk_5MXHAKHC();
|
|
16158
|
+
init_chunk_SARVKRZB();
|
|
16159
|
+
init_chunk_4WAW72DX();
|
|
16160
|
+
init_chunk_Z2DCDLGA();
|
|
16119
16161
|
init_chunk_UN7QXDKQ();
|
|
16120
16162
|
init_chunk_LBDH7LCG();
|
|
16121
16163
|
init_chunk_4LXDRTO4();
|
|
16122
16164
|
init_chunk_JDJ4EUOL();
|
|
16123
16165
|
init_chunk_NVKU5PPQ();
|
|
16124
|
-
|
|
16166
|
+
init_chunk_XMG3GA2R();
|
|
16125
16167
|
init_chunk_FECLIZTY();
|
|
16126
16168
|
init_chunk_BFG4ZWR4();
|
|
16127
16169
|
init_chunk_YZAIZJTO();
|
|
16128
|
-
|
|
16129
|
-
|
|
16170
|
+
init_chunk_TU4Y4MEX();
|
|
16171
|
+
init_chunk_D3EP4TDU();
|
|
16130
16172
|
init_chunk_2KNVPV7S();
|
|
16131
16173
|
init_chunk_K5UAZWFF();
|
|
16132
16174
|
init_chunk_2PZIF56U();
|
|
16133
16175
|
init_chunk_UEJOG2Q7();
|
|
16134
16176
|
init_chunk_JO53JB35();
|
|
16135
|
-
|
|
16177
|
+
init_chunk_5PEVI432();
|
|
16136
16178
|
init_chunk_PBE4O572();
|
|
16137
16179
|
init_chunk_THM6ALTK();
|
|
16138
|
-
|
|
16180
|
+
init_chunk_DZNBZNK6();
|
|
16139
16181
|
init_chunk_IG6QBZMA();
|
|
16140
16182
|
init_chunk_OMPT4ZHR();
|
|
16141
16183
|
init_chunk_Z2SC7EVO();
|
|
@@ -16158,10 +16200,10 @@ var init_contracts = __esm({
|
|
|
16158
16200
|
init_chunk_WEXVYJ5H();
|
|
16159
16201
|
init_chunk_6TSQ5HXC();
|
|
16160
16202
|
init_chunk_HZ6CADSY();
|
|
16161
|
-
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16203
|
+
init_chunk_PI55UGBV();
|
|
16204
|
+
init_chunk_JEWJLXAI();
|
|
16205
|
+
init_chunk_EVXGKOJV();
|
|
16206
|
+
init_chunk_DULDQXQX();
|
|
16165
16207
|
init_chunk_MIWZOSPI();
|
|
16166
16208
|
init_chunk_YROEDMVZ();
|
|
16167
16209
|
init_chunk_L5F7ZOUJ();
|
|
@@ -16318,10 +16360,10 @@ var init_dist = __esm({
|
|
|
16318
16360
|
init_chunk_6TSQ5HXC();
|
|
16319
16361
|
init_chunk_HZ6CADSY();
|
|
16320
16362
|
init_chunk_BF4WRSOQ();
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16363
|
+
init_chunk_PI55UGBV();
|
|
16364
|
+
init_chunk_JEWJLXAI();
|
|
16365
|
+
init_chunk_EVXGKOJV();
|
|
16366
|
+
init_chunk_DULDQXQX();
|
|
16325
16367
|
init_chunk_MIWZOSPI();
|
|
16326
16368
|
init_chunk_YROEDMVZ();
|
|
16327
16369
|
init_chunk_L5F7ZOUJ();
|
|
@@ -35741,6 +35783,29 @@ function layerLines(values) {
|
|
|
35741
35783
|
if (dimensions.length === 0) return ["reaches nothing (unset, or no dimension)"];
|
|
35742
35784
|
return dimensions.map(([dimension, { read, write }]) => `${text2(dimension)}: read ${list(read)}; write ${list(write)}`);
|
|
35743
35785
|
}
|
|
35786
|
+
function partyLine(party) {
|
|
35787
|
+
const who = party.customer ? "the conversation's customer" : "the person";
|
|
35788
|
+
if (party.all) return `${who}: $person, every person's records`;
|
|
35789
|
+
if (party.person_id_count === 0) return `${who}: no person id, so no person's records`;
|
|
35790
|
+
if (party.person_ids === null) {
|
|
35791
|
+
return `${who}: ${party.person_id_count} person id${party.person_id_count === 1 ? "" : "s"} (shown to organization admins only)`;
|
|
35792
|
+
}
|
|
35793
|
+
return `${who}: ${list(party.person_ids)}`;
|
|
35794
|
+
}
|
|
35795
|
+
function personsLines(data) {
|
|
35796
|
+
if (!data.persons) return [];
|
|
35797
|
+
const lines = ["", "Persons each call is for (matched on record types with person entries):"];
|
|
35798
|
+
for (const persons of data.persons) {
|
|
35799
|
+
const audience = persons.audience === REKOR_PERSON_AUDIENCE_STAFF ? "a call for team members" : "customer-facing";
|
|
35800
|
+
lines.push(` ${TURN_NAMES[persons.turn]}: ${audience}${persons.full_reach ? ", full reach" : ""}`);
|
|
35801
|
+
if (persons.parties.length === 0) {
|
|
35802
|
+
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");
|
|
35803
|
+
}
|
|
35804
|
+
for (const party of persons.parties) lines.push(` ${partyLine(party)}`);
|
|
35805
|
+
}
|
|
35806
|
+
lines.push(" Person entries are matched only on calls for team members: a customer-facing call reaches none of their records.");
|
|
35807
|
+
return lines;
|
|
35808
|
+
}
|
|
35744
35809
|
function formatExplanation(data) {
|
|
35745
35810
|
const lines = [];
|
|
35746
35811
|
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 +35837,7 @@ function formatExplanation(data) {
|
|
|
35772
35837
|
}
|
|
35773
35838
|
}
|
|
35774
35839
|
lines.push("", "This set filters records only on record types a base enforces (x-access in enforce mode).");
|
|
35840
|
+
lines.push(...personsLines(data));
|
|
35775
35841
|
return lines;
|
|
35776
35842
|
}
|
|
35777
35843
|
function failure3(err) {
|
|
@@ -35803,7 +35869,7 @@ async function accessCommand(args2) {
|
|
|
35803
35869
|
}
|
|
35804
35870
|
console.log(values.json ? JSON.stringify(data, null, 2) : formatExplanation(data).join("\n"));
|
|
35805
35871
|
}
|
|
35806
|
-
var USAGE6, LAYER_NAMES, kindName, text2, list;
|
|
35872
|
+
var USAGE6, LAYER_NAMES, kindName, text2, list, TURN_NAMES;
|
|
35807
35873
|
var init_access = __esm({
|
|
35808
35874
|
"src/commands/access.ts"() {
|
|
35809
35875
|
"use strict";
|
|
@@ -35841,6 +35907,14 @@ email: once they redeem one, its values apply.
|
|
|
35841
35907
|
These sets filter records only on record types a base enforces (x-access in enforce mode);
|
|
35842
35908
|
a record type in report mode only counts what enforcing would hide.
|
|
35843
35909
|
|
|
35910
|
+
Beside the set, it prints the persons each call is for, which record types with person
|
|
35911
|
+
entries are matched against: for a person, their message in their own conversation (where
|
|
35912
|
+
they are its customer and never hold $person) and their message with no customer in the
|
|
35913
|
+
turn (a team send or a consult they start); with no person, a turn for no one. For each:
|
|
35914
|
+
whether the call is for team members or customer-facing, each person's id (or $person),
|
|
35915
|
+
and whether the call has full reach. Person ids are shown to organization admins only;
|
|
35916
|
+
anyone else sees how many ids each person has.
|
|
35917
|
+
|
|
35844
35918
|
The hub is --hub, else this workspace's. --user for anyone but yourself needs an
|
|
35845
35919
|
organization admin.
|
|
35846
35920
|
`.trim();
|
|
@@ -35860,6 +35934,11 @@ organization admin.
|
|
|
35860
35934
|
kindName = (kind) => kind === "public" ? "everyone else" : LAYER_NAMES[kind];
|
|
35861
35935
|
text2 = (value) => sanitizeTerminalText(value);
|
|
35862
35936
|
list = (ids) => ids.length === 0 ? "nothing" : ids.map(text2).join(" ");
|
|
35937
|
+
TURN_NAMES = {
|
|
35938
|
+
own_conversation: "Their message in their own conversation",
|
|
35939
|
+
team_send: "Their message with no customer in the turn (a team send or a consult they start)",
|
|
35940
|
+
no_party: "A turn for no one (a hub automation's own)"
|
|
35941
|
+
};
|
|
35863
35942
|
}
|
|
35864
35943
|
});
|
|
35865
35944
|
|