@wayai/cli 0.3.276 → 0.3.277
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 +68 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12598,7 +12598,7 @@ var init_chunk_BPCNB5RT = __esm({
|
|
|
12598
12598
|
}
|
|
12599
12599
|
});
|
|
12600
12600
|
|
|
12601
|
-
// ../../packages/core/dist/chunk-
|
|
12601
|
+
// ../../packages/core/dist/chunk-RVMCS37E.js
|
|
12602
12602
|
function toolParametersViolations(params) {
|
|
12603
12603
|
try {
|
|
12604
12604
|
if (containsKanbanPlaceholders(params)) return [];
|
|
@@ -12640,8 +12640,8 @@ function refineToolConfig(value, ctx) {
|
|
|
12640
12640
|
}
|
|
12641
12641
|
}
|
|
12642
12642
|
var toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
|
|
12643
|
-
var
|
|
12644
|
-
"../../packages/core/dist/chunk-
|
|
12643
|
+
var init_chunk_RVMCS37E = __esm({
|
|
12644
|
+
"../../packages/core/dist/chunk-RVMCS37E.js"() {
|
|
12645
12645
|
"use strict";
|
|
12646
12646
|
init_chunk_WEXVYJ5H();
|
|
12647
12647
|
init_chunk_HZ6CADSY();
|
|
@@ -14009,7 +14009,19 @@ var init_chunk_7NQZRSSJ = __esm({
|
|
|
14009
14009
|
}
|
|
14010
14010
|
});
|
|
14011
14011
|
|
|
14012
|
-
// ../../packages/core/dist/chunk-
|
|
14012
|
+
// ../../packages/core/dist/chunk-QUJTSOZO.js
|
|
14013
|
+
function declaresNoConnection(agent) {
|
|
14014
|
+
return agent.connection === null && !agent.connection_id;
|
|
14015
|
+
}
|
|
14016
|
+
function agentConnectionRefusal(agent) {
|
|
14017
|
+
if (agent.connection || declaresNoConnection(agent)) return null;
|
|
14018
|
+
const heldNot = agent.connection_id ? ` Its connection_id "${agent.connection_id}" is not one of this hub's.` : "";
|
|
14019
|
+
return `Agent "${agent.name}": connection is required. Name one of the hub's connections, or write \`connection: null\` for an agent with none.${heldNot}`;
|
|
14020
|
+
}
|
|
14021
|
+
function customToolConnectionRefusal(agentName, tool) {
|
|
14022
|
+
if (tool.connection || tool.connection_id) return null;
|
|
14023
|
+
return `Agent "${agentName}", tool "${tool.name}": connection is required. A custom tool calls through one of the hub's connections: name it.`;
|
|
14024
|
+
}
|
|
14013
14025
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
14014
14026
|
const agents = config.agents;
|
|
14015
14027
|
if (!Array.isArray(agents)) return;
|
|
@@ -14723,10 +14735,10 @@ function skillSectionsAsResources(scope) {
|
|
|
14723
14735
|
};
|
|
14724
14736
|
}
|
|
14725
14737
|
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;
|
|
14726
|
-
var
|
|
14727
|
-
"../../packages/core/dist/chunk-
|
|
14738
|
+
var init_chunk_QUJTSOZO = __esm({
|
|
14739
|
+
"../../packages/core/dist/chunk-QUJTSOZO.js"() {
|
|
14728
14740
|
"use strict";
|
|
14729
|
-
|
|
14741
|
+
init_chunk_RVMCS37E();
|
|
14730
14742
|
init_chunk_HRKVCI5A();
|
|
14731
14743
|
init_chunk_IW7D2QOD();
|
|
14732
14744
|
init_chunk_LBDH7LCG();
|
|
@@ -16332,8 +16344,8 @@ var init_contracts = __esm({
|
|
|
16332
16344
|
init_chunk_E4DIIOOE();
|
|
16333
16345
|
init_chunk_7CYHPF35();
|
|
16334
16346
|
init_chunk_BPCNB5RT();
|
|
16335
|
-
|
|
16336
|
-
|
|
16347
|
+
init_chunk_QUJTSOZO();
|
|
16348
|
+
init_chunk_RVMCS37E();
|
|
16337
16349
|
init_chunk_HRKVCI5A();
|
|
16338
16350
|
init_chunk_IW7D2QOD();
|
|
16339
16351
|
init_chunk_2YEGUQR7();
|
|
@@ -22684,6 +22696,46 @@ var init_hub_materializer = __esm({
|
|
|
22684
22696
|
}
|
|
22685
22697
|
});
|
|
22686
22698
|
|
|
22699
|
+
// ../../packages/core/dist/contracts/ci.js
|
|
22700
|
+
var init_ci = __esm({
|
|
22701
|
+
"../../packages/core/dist/contracts/ci.js"() {
|
|
22702
|
+
"use strict";
|
|
22703
|
+
init_chunk_QUJTSOZO();
|
|
22704
|
+
init_chunk_RVMCS37E();
|
|
22705
|
+
init_chunk_HRKVCI5A();
|
|
22706
|
+
init_chunk_IW7D2QOD();
|
|
22707
|
+
init_chunk_2YEGUQR7();
|
|
22708
|
+
init_chunk_4D6K4P4K();
|
|
22709
|
+
init_chunk_LBDH7LCG();
|
|
22710
|
+
init_chunk_4LXDRTO4();
|
|
22711
|
+
init_chunk_7NQZRSSJ();
|
|
22712
|
+
init_chunk_D3EP4TDU();
|
|
22713
|
+
init_chunk_X5PZZVTS();
|
|
22714
|
+
init_chunk_K5UAZWFF();
|
|
22715
|
+
init_chunk_MBXNS7SI();
|
|
22716
|
+
init_chunk_WTOA3ANF();
|
|
22717
|
+
init_chunk_IBL7FANV();
|
|
22718
|
+
init_chunk_S4VDZ7PZ();
|
|
22719
|
+
init_chunk_KB5RK3RP();
|
|
22720
|
+
init_chunk_CJ3L46X6();
|
|
22721
|
+
init_chunk_2ISUBJG7();
|
|
22722
|
+
init_chunk_C2UEA2KW();
|
|
22723
|
+
init_chunk_FBV7NLKO();
|
|
22724
|
+
init_chunk_WEXVYJ5H();
|
|
22725
|
+
init_chunk_6TSQ5HXC();
|
|
22726
|
+
init_chunk_HZ6CADSY();
|
|
22727
|
+
init_chunk_G4HTKQCL();
|
|
22728
|
+
init_chunk_ZUKC6A2W();
|
|
22729
|
+
init_chunk_EVXGKOJV();
|
|
22730
|
+
init_chunk_I42QJGJF();
|
|
22731
|
+
init_chunk_MIWZOSPI();
|
|
22732
|
+
init_chunk_YROEDMVZ();
|
|
22733
|
+
init_chunk_L5F7ZOUJ();
|
|
22734
|
+
init_chunk_EV3MAOEX();
|
|
22735
|
+
init_chunk_WFQDSQJK();
|
|
22736
|
+
}
|
|
22737
|
+
});
|
|
22738
|
+
|
|
22687
22739
|
// src/lib/eval-format.ts
|
|
22688
22740
|
function runNotes(unproven, inProgress) {
|
|
22689
22741
|
return [
|
|
@@ -27709,7 +27761,12 @@ New hub: "${newHub.hubName}" (${hubType})`);
|
|
|
27709
27761
|
}
|
|
27710
27762
|
const content = readRealFileOrThrow(newHub.hubFolder, hubYamlPath) ?? "";
|
|
27711
27763
|
assertSkillsLayout(newHub.hubFolder);
|
|
27712
|
-
parseHubFolder(newHub.hubFolder, { allowNewHub: true });
|
|
27764
|
+
const parsed = parseHubFolder(newHub.hubFolder, { allowNewHub: true });
|
|
27765
|
+
const refusals = (parsed.agents ?? []).flatMap((agent) => [
|
|
27766
|
+
agentConnectionRefusal(agent),
|
|
27767
|
+
...(agent.tools?.custom ?? []).map((tool) => customToolConnectionRefusal(agent.name, tool))
|
|
27768
|
+
]).filter((refusal2) => refusal2 !== null);
|
|
27769
|
+
if (refusals.length > 0) throw expected(refusals.join("\n"));
|
|
27713
27770
|
console.log("Creating hub...");
|
|
27714
27771
|
const createResult = await client.createHub(opts.organizationId, {
|
|
27715
27772
|
hubName: newHub.hubName,
|
|
@@ -27825,6 +27882,7 @@ var LOCAL_CHANGE_LIST_CAP;
|
|
|
27825
27882
|
var init_push = __esm({
|
|
27826
27883
|
"src/commands/push.ts"() {
|
|
27827
27884
|
"use strict";
|
|
27885
|
+
init_ci();
|
|
27828
27886
|
init_auth();
|
|
27829
27887
|
init_api_client();
|
|
27830
27888
|
init_expected();
|