@wayai/cli 0.3.283 → 0.3.284
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 +35 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14028,7 +14028,7 @@ var init_chunk_7NQZRSSJ = __esm({
|
|
|
14028
14028
|
}
|
|
14029
14029
|
});
|
|
14030
14030
|
|
|
14031
|
-
// ../../packages/core/dist/chunk-
|
|
14031
|
+
// ../../packages/core/dist/chunk-JJYZUBYV.js
|
|
14032
14032
|
function declaresNoConnection(agent) {
|
|
14033
14033
|
return agent.connection === null && !agent.connection_id;
|
|
14034
14034
|
}
|
|
@@ -14041,14 +14041,21 @@ function customToolConnectionRefusal(agentName, tool) {
|
|
|
14041
14041
|
if (tool.connection || tool.connection_id) return null;
|
|
14042
14042
|
return `Agent "${agentName}", tool "${tool.name}": connection is required. A custom tool calls through one of the hub's connections: name it.`;
|
|
14043
14043
|
}
|
|
14044
|
+
function customToolConfigObject(config) {
|
|
14045
|
+
if (typeof config !== "string") return config;
|
|
14046
|
+
try {
|
|
14047
|
+
return JSON.parse(config);
|
|
14048
|
+
} catch {
|
|
14049
|
+
return config;
|
|
14050
|
+
}
|
|
14051
|
+
}
|
|
14044
14052
|
function customToolDescriptionAfterPush(entry, row, writtenConfig) {
|
|
14045
14053
|
const written = row ? writtenConfig : entry.config;
|
|
14046
14054
|
const stated = toolConfigDescription(written);
|
|
14047
14055
|
if (stated !== void 0 && stated !== toolConfigDescription(row?.tool_config)) return { description: stated };
|
|
14048
14056
|
const keepsNoText = row !== void 0 && offeredToolDescription(row.tool_config, row.tool_description) === void 0;
|
|
14049
14057
|
const sent = entry.description === null ? "" : entry.description;
|
|
14050
|
-
|
|
14051
|
-
if (fieldCanMove && sent !== void 0 && sent !== (row?.tool_description ?? "")) {
|
|
14058
|
+
if (toolConfigDescription(entry.config) === void 0 && sent !== void 0 && sent !== (row?.tool_description ?? "")) {
|
|
14052
14059
|
const text4 = statedToolDescription(sent);
|
|
14053
14060
|
if (text4 !== void 0) return { description: text4 };
|
|
14054
14061
|
return keepsNoText ? {} : { refused: "description" };
|
|
@@ -14776,8 +14783,8 @@ function skillSectionsAsResources(scope) {
|
|
|
14776
14783
|
};
|
|
14777
14784
|
}
|
|
14778
14785
|
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, MAX_HUB_AS_CODE_DEPTH, NAMED_DEPTH_SEGMENTS, NAMED_DEPTH_KEY_CHARS, fieldName, 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;
|
|
14779
|
-
var
|
|
14780
|
-
"../../packages/core/dist/chunk-
|
|
14786
|
+
var init_chunk_JJYZUBYV = __esm({
|
|
14787
|
+
"../../packages/core/dist/chunk-JJYZUBYV.js"() {
|
|
14781
14788
|
"use strict";
|
|
14782
14789
|
init_chunk_NEIVT3KL();
|
|
14783
14790
|
init_chunk_HRKVCI5A();
|
|
@@ -15160,10 +15167,10 @@ var init_chunk_BFG4ZWR4 = __esm({
|
|
|
15160
15167
|
}
|
|
15161
15168
|
});
|
|
15162
15169
|
|
|
15163
|
-
// ../../packages/core/dist/chunk-
|
|
15170
|
+
// ../../packages/core/dist/chunk-SAMZLA2A.js
|
|
15164
15171
|
var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
|
|
15165
|
-
var
|
|
15166
|
-
"../../packages/core/dist/chunk-
|
|
15172
|
+
var init_chunk_SAMZLA2A = __esm({
|
|
15173
|
+
"../../packages/core/dist/chunk-SAMZLA2A.js"() {
|
|
15167
15174
|
"use strict";
|
|
15168
15175
|
init_zod();
|
|
15169
15176
|
dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
|
|
@@ -15274,7 +15281,7 @@ var init_chunk_OMPT4ZHR = __esm({
|
|
|
15274
15281
|
}
|
|
15275
15282
|
});
|
|
15276
15283
|
|
|
15277
|
-
// ../../packages/core/dist/chunk-
|
|
15284
|
+
// ../../packages/core/dist/chunk-ZECCDXFH.js
|
|
15278
15285
|
function refineScopedTarget(data, ctx) {
|
|
15279
15286
|
if (data.scope === "org") {
|
|
15280
15287
|
if (!data.org_id) {
|
|
@@ -15300,12 +15307,12 @@ function refineScopedTarget(data, ctx) {
|
|
|
15300
15307
|
}
|
|
15301
15308
|
}
|
|
15302
15309
|
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, adminDryRunByDefaultTargetBody, 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;
|
|
15303
|
-
var
|
|
15304
|
-
"../../packages/core/dist/chunk-
|
|
15310
|
+
var init_chunk_ZECCDXFH = __esm({
|
|
15311
|
+
"../../packages/core/dist/chunk-ZECCDXFH.js"() {
|
|
15305
15312
|
"use strict";
|
|
15306
15313
|
init_chunk_FECLIZTY();
|
|
15307
15314
|
init_chunk_BFG4ZWR4();
|
|
15308
|
-
|
|
15315
|
+
init_chunk_SAMZLA2A();
|
|
15309
15316
|
init_chunk_7NQZRSSJ();
|
|
15310
15317
|
init_chunk_OMPT4ZHR();
|
|
15311
15318
|
init_chunk_HZ6CADSY();
|
|
@@ -16385,7 +16392,7 @@ var init_contracts = __esm({
|
|
|
16385
16392
|
init_chunk_E4DIIOOE();
|
|
16386
16393
|
init_chunk_7CYHPF35();
|
|
16387
16394
|
init_chunk_BPCNB5RT();
|
|
16388
|
-
|
|
16395
|
+
init_chunk_JJYZUBYV();
|
|
16389
16396
|
init_chunk_NEIVT3KL();
|
|
16390
16397
|
init_chunk_HRKVCI5A();
|
|
16391
16398
|
init_chunk_IW7D2QOD();
|
|
@@ -16395,10 +16402,10 @@ var init_contracts = __esm({
|
|
|
16395
16402
|
init_chunk_4LXDRTO4();
|
|
16396
16403
|
init_chunk_JDJ4EUOL();
|
|
16397
16404
|
init_chunk_NVKU5PPQ();
|
|
16398
|
-
|
|
16405
|
+
init_chunk_ZECCDXFH();
|
|
16399
16406
|
init_chunk_FECLIZTY();
|
|
16400
16407
|
init_chunk_BFG4ZWR4();
|
|
16401
|
-
|
|
16408
|
+
init_chunk_SAMZLA2A();
|
|
16402
16409
|
init_chunk_7NQZRSSJ();
|
|
16403
16410
|
init_chunk_D3EP4TDU();
|
|
16404
16411
|
init_chunk_X5PZZVTS();
|
|
@@ -16514,10 +16521,13 @@ var init_chunk_RPGBR5IN = __esm({
|
|
|
16514
16521
|
}
|
|
16515
16522
|
});
|
|
16516
16523
|
|
|
16517
|
-
// ../../packages/core/dist/chunk-
|
|
16518
|
-
var
|
|
16519
|
-
|
|
16524
|
+
// ../../packages/core/dist/chunk-OMK3L45Z.js
|
|
16525
|
+
var ENVELOPE_PREFIX, CREDENTIAL_REFERENCE_PREFIX;
|
|
16526
|
+
var init_chunk_OMK3L45Z = __esm({
|
|
16527
|
+
"../../packages/core/dist/chunk-OMK3L45Z.js"() {
|
|
16520
16528
|
"use strict";
|
|
16529
|
+
ENVELOPE_PREFIX = "enc:v1:";
|
|
16530
|
+
CREDENTIAL_REFERENCE_PREFIX = `${ENVELOPE_PREFIX}vault:`;
|
|
16521
16531
|
}
|
|
16522
16532
|
});
|
|
16523
16533
|
|
|
@@ -16591,7 +16601,7 @@ var init_dist = __esm({
|
|
|
16591
16601
|
init_chunk_WEXVYJ5H();
|
|
16592
16602
|
init_chunk_6TSQ5HXC();
|
|
16593
16603
|
init_chunk_HZ6CADSY();
|
|
16594
|
-
|
|
16604
|
+
init_chunk_OMK3L45Z();
|
|
16595
16605
|
init_chunk_J75LDBC2();
|
|
16596
16606
|
init_chunk_VSSZVDBU();
|
|
16597
16607
|
init_chunk_GYSQV2DS();
|
|
@@ -22746,7 +22756,7 @@ var init_hub_materializer = __esm({
|
|
|
22746
22756
|
var init_ci = __esm({
|
|
22747
22757
|
"../../packages/core/dist/contracts/ci.js"() {
|
|
22748
22758
|
"use strict";
|
|
22749
|
-
|
|
22759
|
+
init_chunk_JJYZUBYV();
|
|
22750
22760
|
init_chunk_NEIVT3KL();
|
|
22751
22761
|
init_chunk_HRKVCI5A();
|
|
22752
22762
|
init_chunk_IW7D2QOD();
|
|
@@ -27870,7 +27880,11 @@ New hub: "${newHub.hubName}" (${hubType})`);
|
|
|
27870
27880
|
const parsed = parseHubFolder(newHub.hubFolder, { allowNewHub: true });
|
|
27871
27881
|
const refusals = (parsed.agents ?? []).flatMap((agent) => [
|
|
27872
27882
|
agentConnectionRefusal(agent),
|
|
27873
|
-
|
|
27883
|
+
// A config sent as JSON text is read as the object it holds, as the server reads it (gh #5746).
|
|
27884
|
+
...(agent.tools?.custom ?? []).flatMap((tool) => [
|
|
27885
|
+
customToolConnectionRefusal(agent.name, tool),
|
|
27886
|
+
customToolDescriptionRefusal(agent.name, { ...tool, config: customToolConfigObject(tool.config) })
|
|
27887
|
+
])
|
|
27874
27888
|
]).filter((refusal2) => refusal2 !== null);
|
|
27875
27889
|
if (refusals.length > 0) throw expected(refusals.join("\n"));
|
|
27876
27890
|
console.log("Creating hub...");
|