@wayai/cli 0.3.273 → 0.3.275
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +102 -82
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12595,7 +12595,17 @@ var init_chunk_BPCNB5RT = __esm({
|
|
|
12595
12595
|
}
|
|
12596
12596
|
});
|
|
12597
12597
|
|
|
12598
|
-
// ../../packages/core/dist/chunk-
|
|
12598
|
+
// ../../packages/core/dist/chunk-6HXH56R4.js
|
|
12599
|
+
function toolParametersViolations(params) {
|
|
12600
|
+
try {
|
|
12601
|
+
if (containsKanbanPlaceholders(params)) return [];
|
|
12602
|
+
const result = validateToolInputSchema(params);
|
|
12603
|
+
return result.ok ? [] : result.errors;
|
|
12604
|
+
} catch (error) {
|
|
12605
|
+
if (!(error instanceof RangeError)) throw error;
|
|
12606
|
+
return [{ path: "", message: "parameters are nested too deeply to serialize" }];
|
|
12607
|
+
}
|
|
12608
|
+
}
|
|
12599
12609
|
function refineToolConfig(value, ctx) {
|
|
12600
12610
|
const raw = value.tool_config;
|
|
12601
12611
|
if (raw == null) return;
|
|
@@ -12618,21 +12628,17 @@ function refineToolConfig(value, ctx) {
|
|
|
12618
12628
|
}
|
|
12619
12629
|
return;
|
|
12620
12630
|
}
|
|
12621
|
-
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
path: ["tool_config", "parameters", ...err.path.split(".").filter(Boolean)],
|
|
12628
|
-
message: err.suggestion ? `${err.message} \u2014 ${err.suggestion}` : err.message
|
|
12629
|
-
});
|
|
12630
|
-
}
|
|
12631
|
+
for (const err of toolParametersViolations(params)) {
|
|
12632
|
+
ctx.addIssue({
|
|
12633
|
+
code: external_exports.ZodIssueCode.custom,
|
|
12634
|
+
path: ["tool_config", "parameters", ...err.path.split(".").filter(Boolean)],
|
|
12635
|
+
message: err.suggestion ? `${err.message} \u2014 ${err.suggestion}` : err.message
|
|
12636
|
+
});
|
|
12631
12637
|
}
|
|
12632
12638
|
}
|
|
12633
12639
|
var toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
|
|
12634
|
-
var
|
|
12635
|
-
"../../packages/core/dist/chunk-
|
|
12640
|
+
var init_chunk_6HXH56R4 = __esm({
|
|
12641
|
+
"../../packages/core/dist/chunk-6HXH56R4.js"() {
|
|
12636
12642
|
"use strict";
|
|
12637
12643
|
init_chunk_WEXVYJ5H();
|
|
12638
12644
|
init_chunk_HZ6CADSY();
|
|
@@ -12743,7 +12749,7 @@ var init_chunk_2ISUBJG7 = __esm({
|
|
|
12743
12749
|
}
|
|
12744
12750
|
});
|
|
12745
12751
|
|
|
12746
|
-
// ../../packages/core/dist/chunk-
|
|
12752
|
+
// ../../packages/core/dist/chunk-IW7D2QOD.js
|
|
12747
12753
|
function describeRole(role) {
|
|
12748
12754
|
if (typeof role === "string") {
|
|
12749
12755
|
return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
|
|
@@ -12785,7 +12791,7 @@ function evalTurnAttachmentsError(turn) {
|
|
|
12785
12791
|
if (attachments.length > MAX_ATTACHMENTS_PER_MESSAGE) {
|
|
12786
12792
|
return `attachments must have at most ${MAX_ATTACHMENTS_PER_MESSAGE} items`;
|
|
12787
12793
|
}
|
|
12788
|
-
if (!turnMayCarryAttachments({ role:
|
|
12794
|
+
if (!turnMayCarryAttachments({ role: record.role, attachments })) {
|
|
12789
12795
|
return ATTACHMENTS_USER_ONLY_MESSAGE;
|
|
12790
12796
|
}
|
|
12791
12797
|
for (let i = 0; i < attachments.length; i++) {
|
|
@@ -12922,8 +12928,8 @@ function terminalRunCount(counts) {
|
|
|
12922
12928
|
return counts.successful_runs + counts.failed_runs;
|
|
12923
12929
|
}
|
|
12924
12930
|
var evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, runJourneyQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, EVAL_PERSON_MAX, evalPersonSchema, EVAL_PERSON_ALIAS_RETIRED, EVAL_PERSON_ALIAS_REFUSED, evalBody, EVAL_LIST_MAX_LIMIT, evalListLimit, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, EVAL_MAX_SELECTED_SCENARIOS, evalScenarioSelectionEntrySchema, evalScenarioSelectionSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, evalAttachmentRef, turnMayCarryAttachments, ATTACHMENTS_USER_ONLY_MESSAGE, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, fixtureField, createJourneyBody, updateJourneyBody, evalSessionConfigResponseSchema, evalSessionResponseSchema, evalSessionListConfigSchema, evalSessionListItemSchema, seedReleaseStatusSchema, EVAL_SESSION_NOT_QUIESCENT;
|
|
12925
|
-
var
|
|
12926
|
-
"../../packages/core/dist/chunk-
|
|
12931
|
+
var init_chunk_IW7D2QOD = __esm({
|
|
12932
|
+
"../../packages/core/dist/chunk-IW7D2QOD.js"() {
|
|
12927
12933
|
"use strict";
|
|
12928
12934
|
init_chunk_2YEGUQR7();
|
|
12929
12935
|
init_chunk_4D6K4P4K();
|
|
@@ -13340,7 +13346,7 @@ var init_chunk_D3EP4TDU = __esm({
|
|
|
13340
13346
|
}
|
|
13341
13347
|
});
|
|
13342
13348
|
|
|
13343
|
-
// ../../packages/core/dist/chunk-
|
|
13349
|
+
// ../../packages/core/dist/chunk-X5PZZVTS.js
|
|
13344
13350
|
function isEventRelativeFollowupType(type) {
|
|
13345
13351
|
return typeof type === "string" && EVENT_RELATIVE_FOLLOWUP_TYPES.includes(type);
|
|
13346
13352
|
}
|
|
@@ -13405,14 +13411,18 @@ function validateFollowupLinks(followups, label2, ctx) {
|
|
|
13405
13411
|
});
|
|
13406
13412
|
}
|
|
13407
13413
|
}
|
|
13414
|
+
function printableName(value) {
|
|
13415
|
+
return typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? value : "<unnamed>";
|
|
13416
|
+
}
|
|
13408
13417
|
function validateLaneReferences(lanes, statuses) {
|
|
13409
13418
|
const issues = [];
|
|
13410
13419
|
if (!Array.isArray(statuses) || statuses.length === 0) return issues;
|
|
13411
13420
|
const declared = new Set((Array.isArray(lanes) ? lanes : []).map((l) => l.slug).filter(Boolean));
|
|
13412
13421
|
statuses.forEach((s, i) => {
|
|
13422
|
+
if (s === null) return;
|
|
13413
13423
|
const lane = s.lane_slug;
|
|
13414
13424
|
if (typeof lane !== "string" || lane.length === 0) return;
|
|
13415
|
-
const label2 = s.slug ? `"${s.slug}"` : `[${i}]`;
|
|
13425
|
+
const label2 = s.slug ? `"${printableName(s.slug)}"` : `[${i}]`;
|
|
13416
13426
|
if (s.isInitialStatus === true) {
|
|
13417
13427
|
issues.push({
|
|
13418
13428
|
path: [i, "lane_slug"],
|
|
@@ -13430,8 +13440,8 @@ function validateLaneReferences(lanes, statuses) {
|
|
|
13430
13440
|
return issues;
|
|
13431
13441
|
}
|
|
13432
13442
|
var MAX_KANBAN_STATUSES, MAX_FOLLOWUPS_PER_STATUS, MAX_LANES, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES, RESERVED_TEMPLATE_DUMP_NAME, kanbanStatusSlugSchema, followupTypeSchema, EVENT_RELATIVE_FOLLOWUP_TYPES, followupTimeUnitSchema, followupIdSchema, SELECTABLE_FOLLOWUP_TYPES, MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS, followupSchema, MAX_OUTCOMES_PER_STATUS, kanbanOutcomeSchema, EXCLUSIVE_FLAG_PAIRS, kanbanStatusSchema, kanbanStatusesArraySchema, laneSchema, lanesArraySchema;
|
|
13433
|
-
var
|
|
13434
|
-
"../../packages/core/dist/chunk-
|
|
13443
|
+
var init_chunk_X5PZZVTS = __esm({
|
|
13444
|
+
"../../packages/core/dist/chunk-X5PZZVTS.js"() {
|
|
13435
13445
|
"use strict";
|
|
13436
13446
|
init_chunk_6TSQ5HXC();
|
|
13437
13447
|
init_chunk_HZ6CADSY();
|
|
@@ -13772,7 +13782,7 @@ var init_chunk_K5UAZWFF = __esm({
|
|
|
13772
13782
|
}
|
|
13773
13783
|
});
|
|
13774
13784
|
|
|
13775
|
-
// ../../packages/core/dist/chunk-
|
|
13785
|
+
// ../../packages/core/dist/chunk-7NQZRSSJ.js
|
|
13776
13786
|
function refineLaneReferences(val, ctx) {
|
|
13777
13787
|
const lanes = val.lanes;
|
|
13778
13788
|
const statuses = val.kanban_statuses;
|
|
@@ -13796,11 +13806,11 @@ function describeSyncWarning(warning) {
|
|
|
13796
13806
|
return `${label2}: ${parts.join("; ")}. Promote the base so production's tools match the preview's.`;
|
|
13797
13807
|
}
|
|
13798
13808
|
var hubIdParam, hubAdminIdParam, hubUserIdParam, hubAgentIdParam, hubIdentityIdParam, hubTeamIdParam, hubTeamUserDeleteParam, hubSchemaQuery, HUB_USERS_PAGE_SIZE_MAX, HUB_USERS_SEARCH_MAX, HUB_USERS_CHANNEL_TYPES, getHubUsersQuery, PREVIEW_LABEL_MAX_LENGTH, MAX_ENDED_INDEX_RETENTION_DAYS, MAX_EVAL_RETENTION_DAYS, MAX_END_USER_DAILY_MESSAGE_LIMIT, endUserDailyMessageLimitField, previewLabelField, hubTagsField, createHubBody, updateHubBody, HUB_TAG_CHANGE_REFUSED, hubTagChangeRefusalSchema, addHubAdminBody, addHubIdentityAuthorizationBody, contactDecisionBody, approveContactBody, CONTACT_ACCESS_PAGE_SIZE_MAX, listContactAccessQuery, createHubTeamBody, updateHubTeamBody, addHubTeamUserBody, reassignHubUserBody, replicatePreviewBody, HUB_DIFF_SECTION_SET, HUB_DIFF_SECTIONS, updateChannelTestIdentitiesBody, claimCodeChannelParam, claimCodeDeleteParam;
|
|
13799
|
-
var
|
|
13800
|
-
"../../packages/core/dist/chunk-
|
|
13809
|
+
var init_chunk_7NQZRSSJ = __esm({
|
|
13810
|
+
"../../packages/core/dist/chunk-7NQZRSSJ.js"() {
|
|
13801
13811
|
"use strict";
|
|
13802
13812
|
init_chunk_D3EP4TDU();
|
|
13803
|
-
|
|
13813
|
+
init_chunk_X5PZZVTS();
|
|
13804
13814
|
init_chunk_K5UAZWFF();
|
|
13805
13815
|
init_chunk_HZ6CADSY();
|
|
13806
13816
|
init_zod();
|
|
@@ -13996,7 +14006,7 @@ var init_chunk_TU4Y4MEX = __esm({
|
|
|
13996
14006
|
}
|
|
13997
14007
|
});
|
|
13998
14008
|
|
|
13999
|
-
// ../../packages/core/dist/chunk-
|
|
14009
|
+
// ../../packages/core/dist/chunk-YFQXT7IT.js
|
|
14000
14010
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
14001
14011
|
const agents = config.agents;
|
|
14002
14012
|
if (!Array.isArray(agents)) return;
|
|
@@ -14011,7 +14021,7 @@ function refineHubAsCodeCustomTools(config, ctx) {
|
|
|
14011
14021
|
ctx.addIssue({
|
|
14012
14022
|
code: external_exports.ZodIssueCode.custom,
|
|
14013
14023
|
path: ["agents", a, "tools", "custom", c, ...issue.path],
|
|
14014
|
-
message: `custom tool "${tool?.name
|
|
14024
|
+
message: `custom tool "${printableName(tool?.name)}": ${issue.path.join(".")}: ${issue.message}`
|
|
14015
14025
|
});
|
|
14016
14026
|
}
|
|
14017
14027
|
const raw = tool?.config;
|
|
@@ -14030,22 +14040,18 @@ function refineHubAsCodeCustomTools(config, ctx) {
|
|
|
14030
14040
|
ctx.addIssue({
|
|
14031
14041
|
code: external_exports.ZodIssueCode.custom,
|
|
14032
14042
|
path: ["agents", a, "tools", "custom", c, "config"],
|
|
14033
|
-
message: `custom tool "${tool?.name
|
|
14043
|
+
message: `custom tool "${printableName(tool?.name)}": config must be an object`
|
|
14034
14044
|
});
|
|
14035
14045
|
}
|
|
14036
14046
|
continue;
|
|
14037
14047
|
}
|
|
14038
|
-
|
|
14039
|
-
|
|
14040
|
-
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
|
|
14044
|
-
|
|
14045
|
-
path: ["agents", a, "tools", "custom", c, "config", "parameters", ...tail],
|
|
14046
|
-
message: `custom tool "${tool?.name ?? "<unnamed>"}": ${err.message}${err.suggestion ? ` \u2014 ${err.suggestion}` : ""}`
|
|
14047
|
-
});
|
|
14048
|
-
}
|
|
14048
|
+
for (const err of toolParametersViolations(params)) {
|
|
14049
|
+
const tail = err.path.split(".").filter(Boolean);
|
|
14050
|
+
ctx.addIssue({
|
|
14051
|
+
code: external_exports.ZodIssueCode.custom,
|
|
14052
|
+
path: ["agents", a, "tools", "custom", c, "config", "parameters", ...tail],
|
|
14053
|
+
message: `custom tool "${printableName(tool?.name)}": ${err.message}${err.suggestion ? ` \u2014 ${err.suggestion}` : ""}`
|
|
14054
|
+
});
|
|
14049
14055
|
}
|
|
14050
14056
|
}
|
|
14051
14057
|
}
|
|
@@ -14129,7 +14135,7 @@ function refineHubAsCodeEvals(config, ctx) {
|
|
|
14129
14135
|
code: external_exports.ZodIssueCode.custom,
|
|
14130
14136
|
path: ["evals", e, "input", "role"],
|
|
14131
14137
|
// Named, not just indexed — the YAML author has files, not an array.
|
|
14132
|
-
message: `eval "${entry?.name
|
|
14138
|
+
message: `eval "${printableName(entry?.name)}": ${error}`
|
|
14133
14139
|
});
|
|
14134
14140
|
}
|
|
14135
14141
|
const initialStateError = evalInitialStateError(entry);
|
|
@@ -14137,7 +14143,7 @@ function refineHubAsCodeEvals(config, ctx) {
|
|
|
14137
14143
|
ctx.addIssue({
|
|
14138
14144
|
code: external_exports.ZodIssueCode.custom,
|
|
14139
14145
|
path: ["evals", e, "initial_state"],
|
|
14140
|
-
message: `eval "${entry?.name
|
|
14146
|
+
message: `eval "${printableName(entry?.name)}": ${initialStateError}`
|
|
14141
14147
|
});
|
|
14142
14148
|
}
|
|
14143
14149
|
}
|
|
@@ -14152,7 +14158,7 @@ function refineHubAsCodePersons(config, ctx) {
|
|
|
14152
14158
|
ctx.addIssue({
|
|
14153
14159
|
code: external_exports.ZodIssueCode.custom,
|
|
14154
14160
|
path: [key, i, issue.key],
|
|
14155
|
-
message: `${kind} "${entry?.name
|
|
14161
|
+
message: `${kind} "${printableName(entry?.name)}": ${issue.message}`
|
|
14156
14162
|
});
|
|
14157
14163
|
}
|
|
14158
14164
|
});
|
|
@@ -14172,7 +14178,7 @@ function refineHubAsCodeEvalAttachments(config, ctx) {
|
|
|
14172
14178
|
if (Array.isArray(cfg.evals)) {
|
|
14173
14179
|
cfg.evals.forEach((entry, e) => {
|
|
14174
14180
|
const ev = entry;
|
|
14175
|
-
const name = `eval "${ev?.name
|
|
14181
|
+
const name = `eval "${printableName(ev?.name)}"`;
|
|
14176
14182
|
addTurnIssue(["evals", e, "input"], ev?.input, name);
|
|
14177
14183
|
if (Array.isArray(ev?.history)) {
|
|
14178
14184
|
ev.history.forEach((turn, h) => addTurnIssue(["evals", e, "history", h], turn, name));
|
|
@@ -14182,7 +14188,7 @@ function refineHubAsCodeEvalAttachments(config, ctx) {
|
|
|
14182
14188
|
if (Array.isArray(cfg.journeys)) {
|
|
14183
14189
|
cfg.journeys.forEach((entry, j) => {
|
|
14184
14190
|
const jr = entry;
|
|
14185
|
-
const name = `journey "${jr?.name
|
|
14191
|
+
const name = `journey "${printableName(jr?.name)}"`;
|
|
14186
14192
|
if (Array.isArray(jr?.transcript)) {
|
|
14187
14193
|
jr.transcript.forEach((turn, t) => addTurnIssue(["journeys", j, "transcript", t], turn, name));
|
|
14188
14194
|
}
|
|
@@ -14380,10 +14386,19 @@ function refineHubAsCodeResources(config, ctx) {
|
|
|
14380
14386
|
function refineHubAsCodeDelegation(config, ctx) {
|
|
14381
14387
|
const agents = config?.agents;
|
|
14382
14388
|
if (!Array.isArray(agents)) return;
|
|
14389
|
+
const got = (value) => printableName(value ?? String(value));
|
|
14383
14390
|
agents.forEach((agent, agentIndex) => {
|
|
14384
14391
|
const delegation = agent?.tools?.delegation;
|
|
14385
14392
|
if (!Array.isArray(delegation)) return;
|
|
14386
14393
|
delegation.forEach((entry, delIndex) => {
|
|
14394
|
+
if (entry === null) {
|
|
14395
|
+
ctx.addIssue({
|
|
14396
|
+
code: external_exports.ZodIssueCode.custom,
|
|
14397
|
+
path: ["agents", agentIndex, "tools", "delegation", delIndex],
|
|
14398
|
+
message: `Agent "${printableName(agent.name)}": a delegation entry must be an object`
|
|
14399
|
+
});
|
|
14400
|
+
return;
|
|
14401
|
+
}
|
|
14387
14402
|
const del = entry;
|
|
14388
14403
|
if (del.allow_consultant_chain !== void 0) {
|
|
14389
14404
|
const chainPath = ["agents", agentIndex, "tools", "delegation", delIndex, "allow_consultant_chain"];
|
|
@@ -14397,7 +14412,7 @@ function refineHubAsCodeDelegation(config, ctx) {
|
|
|
14397
14412
|
ctx.addIssue({
|
|
14398
14413
|
code: external_exports.ZodIssueCode.custom,
|
|
14399
14414
|
path: chainPath,
|
|
14400
|
-
message: `allow_consultant_chain applies only to \`tool: start_consult_thread\` (got "${
|
|
14415
|
+
message: `allow_consultant_chain applies only to \`tool: start_consult_thread\` (got "${got(del.tool)}")`
|
|
14401
14416
|
});
|
|
14402
14417
|
}
|
|
14403
14418
|
}
|
|
@@ -14407,7 +14422,7 @@ function refineHubAsCodeDelegation(config, ctx) {
|
|
|
14407
14422
|
ctx.addIssue({
|
|
14408
14423
|
code: external_exports.ZodIssueCode.custom,
|
|
14409
14424
|
path: path45,
|
|
14410
|
-
message: `context_boundary applies only to \`type: hub\` delegations (got type "${
|
|
14425
|
+
message: `context_boundary applies only to \`type: hub\` delegations (got type "${got(del.type)}")`
|
|
14411
14426
|
});
|
|
14412
14427
|
return;
|
|
14413
14428
|
}
|
|
@@ -14428,26 +14443,31 @@ function refuseNonBooleanFlag(ctx, subject, entry, key, path45) {
|
|
|
14428
14443
|
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [...path45, key], message: `${subject}: ${key} must be true or false, got ${shown3}` });
|
|
14429
14444
|
}
|
|
14430
14445
|
function refineHubAsCodeFlags(config, ctx) {
|
|
14431
|
-
const { agents, connections, evals, journeys } = config;
|
|
14446
|
+
const { agents, connections, evals, journeys, teams } = config;
|
|
14432
14447
|
flagEntriesOf(agents).forEach((agent, agentIndex) => {
|
|
14433
|
-
const subject = `Agent "${
|
|
14448
|
+
const subject = `Agent "${printableName(agent.name)}"`;
|
|
14434
14449
|
const at = ["agents", agentIndex];
|
|
14435
14450
|
refuseNonBooleanFlag(ctx, subject, agent, "enabled", at);
|
|
14436
14451
|
flagEntriesOf(agent.resources).forEach((link, linkIndex) => {
|
|
14437
|
-
refuseNonBooleanFlag(ctx, `${subject}, skill "${
|
|
14452
|
+
refuseNonBooleanFlag(ctx, `${subject}, skill "${printableName(link.name)}"`, link, "enabled", [...at, "resources", linkIndex]);
|
|
14438
14453
|
});
|
|
14439
14454
|
for (const group of HUB_AS_CODE_AGENT_TOOL_KEYS) {
|
|
14440
14455
|
flagEntriesOf(agent.tools?.[group]).forEach((entry, entryIndex) => {
|
|
14441
|
-
const tool = `${subject}, tool "${
|
|
14456
|
+
const tool = `${subject}, tool "${printableName(entry.name ?? entry.tool)}"`;
|
|
14442
14457
|
const entryAt = [...at, "tools", group, entryIndex];
|
|
14443
14458
|
refuseNonBooleanFlag(ctx, tool, entry, "enabled", entryAt);
|
|
14444
|
-
if (group === "custom") refuseNonBooleanFlag(ctx, tool, entry, "expose_schema_to_llm", entryAt);
|
|
14459
|
+
if (group === "custom" || group === "native") refuseNonBooleanFlag(ctx, tool, entry, "expose_schema_to_llm", entryAt);
|
|
14445
14460
|
});
|
|
14446
14461
|
}
|
|
14447
14462
|
});
|
|
14448
|
-
for (const [section, noun, list2
|
|
14463
|
+
for (const [section, noun, list2, keys] of [
|
|
14464
|
+
["connections", "Connection", connections, ["enabled", "sync_credentials_to_production", "no_auth"]],
|
|
14465
|
+
["evals", "Eval", evals, ["enabled"]],
|
|
14466
|
+
["journeys", "Journey", journeys, ["enabled"]],
|
|
14467
|
+
["teams", "Team", teams, ["display_only_if_claimed"]]
|
|
14468
|
+
]) {
|
|
14449
14469
|
flagEntriesOf(list2).forEach((entry, index) => {
|
|
14450
|
-
refuseNonBooleanFlag(ctx, `${noun} "${
|
|
14470
|
+
for (const key of keys) refuseNonBooleanFlag(ctx, `${noun} "${printableName(entry.name)}"`, entry, key, [section, index]);
|
|
14451
14471
|
});
|
|
14452
14472
|
}
|
|
14453
14473
|
}
|
|
@@ -14635,23 +14655,24 @@ function skillSectionsAsResources(scope) {
|
|
|
14635
14655
|
return out;
|
|
14636
14656
|
};
|
|
14637
14657
|
}
|
|
14638
|
-
var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, HUB_AS_CODE_AGENT_TOOL_KEYS, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, flagEntriesOf,
|
|
14639
|
-
var
|
|
14640
|
-
"../../packages/core/dist/chunk-
|
|
14658
|
+
var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, HUB_AS_CODE_AGENT_TOOL_KEYS, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, flagEntriesOf, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema;
|
|
14659
|
+
var init_chunk_YFQXT7IT = __esm({
|
|
14660
|
+
"../../packages/core/dist/chunk-YFQXT7IT.js"() {
|
|
14641
14661
|
"use strict";
|
|
14642
|
-
|
|
14662
|
+
init_chunk_6HXH56R4();
|
|
14643
14663
|
init_chunk_HRKVCI5A();
|
|
14644
|
-
|
|
14664
|
+
init_chunk_IW7D2QOD();
|
|
14645
14665
|
init_chunk_LBDH7LCG();
|
|
14646
14666
|
init_chunk_4LXDRTO4();
|
|
14647
|
-
|
|
14648
|
-
|
|
14667
|
+
init_chunk_7NQZRSSJ();
|
|
14668
|
+
init_chunk_X5PZZVTS();
|
|
14649
14669
|
init_chunk_K5UAZWFF();
|
|
14650
14670
|
init_chunk_MBXNS7SI();
|
|
14651
14671
|
init_chunk_S4VDZ7PZ();
|
|
14652
14672
|
init_chunk_C2UEA2KW();
|
|
14653
14673
|
init_chunk_FBV7NLKO();
|
|
14654
14674
|
init_chunk_WEXVYJ5H();
|
|
14675
|
+
init_chunk_HZ6CADSY();
|
|
14655
14676
|
init_chunk_G4HTKQCL();
|
|
14656
14677
|
init_chunk_YROEDMVZ();
|
|
14657
14678
|
init_zod();
|
|
@@ -14667,7 +14688,7 @@ var init_chunk_JR6ZYRSI = __esm({
|
|
|
14667
14688
|
MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS = 64 * 1024;
|
|
14668
14689
|
hubAsCodePagesSchema = external_exports.array(external_exports.object({
|
|
14669
14690
|
manifest: external_exports.record(external_exports.unknown()).superRefine((manifest, ctx) => {
|
|
14670
|
-
if (
|
|
14691
|
+
if (!withinJsonLength(manifest, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS)) {
|
|
14671
14692
|
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: `a page manifest is at most ${MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS} characters of JSON` });
|
|
14672
14693
|
}
|
|
14673
14694
|
}),
|
|
@@ -14726,7 +14747,6 @@ var init_chunk_JR6ZYRSI = __esm({
|
|
|
14726
14747
|
uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
14727
14748
|
ciUuidSchema = external_exports.string().regex(uuidPattern, "must be a valid UUID");
|
|
14728
14749
|
flagEntriesOf = (list2) => Array.isArray(list2) ? list2.map((entry) => entry ?? {}) : [];
|
|
14729
|
-
flagEntryName = (name) => typeof name === "string" || typeof name === "number" ? name : "<unnamed>";
|
|
14730
14750
|
boundedHubAsCodeResourcesSchema = external_exports.unknown().superRefine((resources, ctx) => {
|
|
14731
14751
|
if (!Array.isArray(resources)) return;
|
|
14732
14752
|
if (resources.length > MAX_HUB_AS_CODE_RESOURCES) {
|
|
@@ -14737,7 +14757,7 @@ var init_chunk_JR6ZYRSI = __esm({
|
|
|
14737
14757
|
return;
|
|
14738
14758
|
}
|
|
14739
14759
|
flagEntriesOf(resources).forEach((skill, index) => {
|
|
14740
|
-
refuseNonBooleanFlag(ctx, `Skill "${
|
|
14760
|
+
refuseNonBooleanFlag(ctx, `Skill "${printableName(skill.name)}"`, skill, "enabled", [index]);
|
|
14741
14761
|
});
|
|
14742
14762
|
let fileCount = 0;
|
|
14743
14763
|
for (const resource of resources) {
|
|
@@ -15010,10 +15030,10 @@ var init_chunk_BFG4ZWR4 = __esm({
|
|
|
15010
15030
|
}
|
|
15011
15031
|
});
|
|
15012
15032
|
|
|
15013
|
-
// ../../packages/core/dist/chunk-
|
|
15033
|
+
// ../../packages/core/dist/chunk-C3V6PEQ7.js
|
|
15014
15034
|
var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
|
|
15015
|
-
var
|
|
15016
|
-
"../../packages/core/dist/chunk-
|
|
15035
|
+
var init_chunk_C3V6PEQ7 = __esm({
|
|
15036
|
+
"../../packages/core/dist/chunk-C3V6PEQ7.js"() {
|
|
15017
15037
|
"use strict";
|
|
15018
15038
|
init_zod();
|
|
15019
15039
|
dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
|
|
@@ -15124,7 +15144,7 @@ var init_chunk_OMPT4ZHR = __esm({
|
|
|
15124
15144
|
}
|
|
15125
15145
|
});
|
|
15126
15146
|
|
|
15127
|
-
// ../../packages/core/dist/chunk-
|
|
15147
|
+
// ../../packages/core/dist/chunk-6AIZYKDD.js
|
|
15128
15148
|
function refineScopedTarget(data, ctx) {
|
|
15129
15149
|
if (data.scope === "org") {
|
|
15130
15150
|
if (!data.org_id) {
|
|
@@ -15150,13 +15170,13 @@ function refineScopedTarget(data, ctx) {
|
|
|
15150
15170
|
}
|
|
15151
15171
|
}
|
|
15152
15172
|
var adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, PRICING_PLAN_ID_RE, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, MAX_VOICE_CALL_MINUTE_OPS, voiceCallMinuteOps, AUTOMATION_GATE_EVALUATIONS_PER_OPERATION_BOUND, automationGateEvaluationsPerOperation, AUTOMATION_RUN_RETENTION_DAYS_MAX, automationRunRetentionDays, turnDeadlineSeconds, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetShape, adminScopedTargetBody, adminRepairKnowledgeBlobsBody, BRANCHING_ORPHAN_ENTITY_TYPES, BRANCHING_ORPHAN_MAX_TARGETS, adminRepairBranchingOrphansBody, adminRepairLegacyOrgGrantsBody, adminRepairCompedPlansBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, dataExplorerDebugCountsDoType, dataExplorerDebugCountsParam, debugHubConvParam, debugMessageIdQuery;
|
|
15153
|
-
var
|
|
15154
|
-
"../../packages/core/dist/chunk-
|
|
15173
|
+
var init_chunk_6AIZYKDD = __esm({
|
|
15174
|
+
"../../packages/core/dist/chunk-6AIZYKDD.js"() {
|
|
15155
15175
|
"use strict";
|
|
15156
15176
|
init_chunk_FECLIZTY();
|
|
15157
15177
|
init_chunk_BFG4ZWR4();
|
|
15158
|
-
|
|
15159
|
-
|
|
15178
|
+
init_chunk_C3V6PEQ7();
|
|
15179
|
+
init_chunk_7NQZRSSJ();
|
|
15160
15180
|
init_chunk_OMPT4ZHR();
|
|
15161
15181
|
init_chunk_HZ6CADSY();
|
|
15162
15182
|
init_chunk_MIWZOSPI();
|
|
@@ -16235,23 +16255,23 @@ var init_contracts = __esm({
|
|
|
16235
16255
|
init_chunk_E4DIIOOE();
|
|
16236
16256
|
init_chunk_7CYHPF35();
|
|
16237
16257
|
init_chunk_BPCNB5RT();
|
|
16238
|
-
|
|
16239
|
-
|
|
16258
|
+
init_chunk_YFQXT7IT();
|
|
16259
|
+
init_chunk_6HXH56R4();
|
|
16240
16260
|
init_chunk_HRKVCI5A();
|
|
16241
|
-
|
|
16261
|
+
init_chunk_IW7D2QOD();
|
|
16242
16262
|
init_chunk_2YEGUQR7();
|
|
16243
16263
|
init_chunk_4D6K4P4K();
|
|
16244
16264
|
init_chunk_LBDH7LCG();
|
|
16245
16265
|
init_chunk_4LXDRTO4();
|
|
16246
16266
|
init_chunk_JDJ4EUOL();
|
|
16247
16267
|
init_chunk_NVKU5PPQ();
|
|
16248
|
-
|
|
16268
|
+
init_chunk_6AIZYKDD();
|
|
16249
16269
|
init_chunk_FECLIZTY();
|
|
16250
16270
|
init_chunk_BFG4ZWR4();
|
|
16251
|
-
|
|
16252
|
-
|
|
16271
|
+
init_chunk_C3V6PEQ7();
|
|
16272
|
+
init_chunk_7NQZRSSJ();
|
|
16253
16273
|
init_chunk_D3EP4TDU();
|
|
16254
|
-
|
|
16274
|
+
init_chunk_X5PZZVTS();
|
|
16255
16275
|
init_chunk_K5UAZWFF();
|
|
16256
16276
|
init_chunk_2PZIF56U();
|
|
16257
16277
|
init_chunk_UEJOG2Q7();
|
|
@@ -18872,7 +18892,7 @@ var init_api_client = __esm({
|
|
|
18872
18892
|
`/api/admin/data-explorer/debug/do/${doType}/${encodeURIComponent(doId)}/tables/${encodeURIComponent(table)}/rows${qs}`
|
|
18873
18893
|
);
|
|
18874
18894
|
}
|
|
18875
|
-
/** A hub's or an organization's knowledge as numbers: the admin census's counts (no text). */
|
|
18895
|
+
/** A hub's or an organization's knowledge and stored secrets as numbers: the admin census's counts (no text). */
|
|
18876
18896
|
async debugCounts(doType, doId) {
|
|
18877
18897
|
return this.request("GET", `/api/admin/data-explorer/debug/do/${doType}/${encodeURIComponent(doId)}/counts`);
|
|
18878
18898
|
}
|
|
@@ -21563,7 +21583,7 @@ var init_pages2 = __esm({
|
|
|
21563
21583
|
var init_evals = __esm({
|
|
21564
21584
|
"../../packages/core/dist/contracts/evals.js"() {
|
|
21565
21585
|
"use strict";
|
|
21566
|
-
|
|
21586
|
+
init_chunk_IW7D2QOD();
|
|
21567
21587
|
init_chunk_2YEGUQR7();
|
|
21568
21588
|
init_chunk_4D6K4P4K();
|
|
21569
21589
|
init_chunk_4LXDRTO4();
|
|
@@ -39094,8 +39114,8 @@ Usage:
|
|
|
39094
39114
|
wayai admin do tables <type> <id>
|
|
39095
39115
|
wayai admin do read <type> <id> <table> [--limit N] [--id X] [--json]
|
|
39096
39116
|
wayai admin do counts <hub|org> <id> [--json] Numbers, no text: a hub's toolset connections, knowledge placeholders per stored
|
|
39097
|
-
text and (production) publish state; an org's
|
|
39098
|
-
moved-knowledge registry
|
|
39117
|
+
text, secret columns' shapes and (production) publish state; an org's
|
|
39118
|
+
skills, hub links, moved-knowledge registry and credentials' shapes
|
|
39099
39119
|
|
|
39100
39120
|
wayai admin analytics tables
|
|
39101
39121
|
wayai admin analytics read <table> [--conversation-id X] [--hub-id Y] [--message-id Z] [--limit N] [--json]
|