@wayai/cli 0.3.273 → 0.3.274
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 +13 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13996,7 +13996,7 @@ var init_chunk_TU4Y4MEX = __esm({
|
|
|
13996
13996
|
}
|
|
13997
13997
|
});
|
|
13998
13998
|
|
|
13999
|
-
// ../../packages/core/dist/chunk-
|
|
13999
|
+
// ../../packages/core/dist/chunk-LBKP4XCU.js
|
|
14000
14000
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
14001
14001
|
const agents = config.agents;
|
|
14002
14002
|
if (!Array.isArray(agents)) return;
|
|
@@ -14428,7 +14428,7 @@ function refuseNonBooleanFlag(ctx, subject, entry, key, path45) {
|
|
|
14428
14428
|
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [...path45, key], message: `${subject}: ${key} must be true or false, got ${shown3}` });
|
|
14429
14429
|
}
|
|
14430
14430
|
function refineHubAsCodeFlags(config, ctx) {
|
|
14431
|
-
const { agents, connections, evals, journeys } = config;
|
|
14431
|
+
const { agents, connections, evals, journeys, teams } = config;
|
|
14432
14432
|
flagEntriesOf(agents).forEach((agent, agentIndex) => {
|
|
14433
14433
|
const subject = `Agent "${flagEntryName(agent.name)}"`;
|
|
14434
14434
|
const at = ["agents", agentIndex];
|
|
@@ -14441,13 +14441,18 @@ function refineHubAsCodeFlags(config, ctx) {
|
|
|
14441
14441
|
const tool = `${subject}, tool "${flagEntryName(entry.name ?? entry.tool)}"`;
|
|
14442
14442
|
const entryAt = [...at, "tools", group, entryIndex];
|
|
14443
14443
|
refuseNonBooleanFlag(ctx, tool, entry, "enabled", entryAt);
|
|
14444
|
-
if (group === "custom") refuseNonBooleanFlag(ctx, tool, entry, "expose_schema_to_llm", entryAt);
|
|
14444
|
+
if (group === "custom" || group === "native") refuseNonBooleanFlag(ctx, tool, entry, "expose_schema_to_llm", entryAt);
|
|
14445
14445
|
});
|
|
14446
14446
|
}
|
|
14447
14447
|
});
|
|
14448
|
-
for (const [section, noun, list2
|
|
14448
|
+
for (const [section, noun, list2, keys] of [
|
|
14449
|
+
["connections", "Connection", connections, ["enabled", "sync_credentials_to_production", "no_auth"]],
|
|
14450
|
+
["evals", "Eval", evals, ["enabled"]],
|
|
14451
|
+
["journeys", "Journey", journeys, ["enabled"]],
|
|
14452
|
+
["teams", "Team", teams, ["display_only_if_claimed"]]
|
|
14453
|
+
]) {
|
|
14449
14454
|
flagEntriesOf(list2).forEach((entry, index) => {
|
|
14450
|
-
refuseNonBooleanFlag(ctx, `${noun} "${flagEntryName(entry.name)}"`, entry,
|
|
14455
|
+
for (const key of keys) refuseNonBooleanFlag(ctx, `${noun} "${flagEntryName(entry.name)}"`, entry, key, [section, index]);
|
|
14451
14456
|
});
|
|
14452
14457
|
}
|
|
14453
14458
|
}
|
|
@@ -14636,8 +14641,8 @@ function skillSectionsAsResources(scope) {
|
|
|
14636
14641
|
};
|
|
14637
14642
|
}
|
|
14638
14643
|
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, flagEntryName, 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;
|
|
14639
|
-
var
|
|
14640
|
-
"../../packages/core/dist/chunk-
|
|
14644
|
+
var init_chunk_LBKP4XCU = __esm({
|
|
14645
|
+
"../../packages/core/dist/chunk-LBKP4XCU.js"() {
|
|
14641
14646
|
"use strict";
|
|
14642
14647
|
init_chunk_SARVKRZB();
|
|
14643
14648
|
init_chunk_HRKVCI5A();
|
|
@@ -16235,7 +16240,7 @@ var init_contracts = __esm({
|
|
|
16235
16240
|
init_chunk_E4DIIOOE();
|
|
16236
16241
|
init_chunk_7CYHPF35();
|
|
16237
16242
|
init_chunk_BPCNB5RT();
|
|
16238
|
-
|
|
16243
|
+
init_chunk_LBKP4XCU();
|
|
16239
16244
|
init_chunk_SARVKRZB();
|
|
16240
16245
|
init_chunk_HRKVCI5A();
|
|
16241
16246
|
init_chunk_ICE6SQZO();
|