@wayai/cli 0.3.237 → 0.3.238
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 +22 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5022,10 +5022,10 @@ var init_chunk_SXDX4GHS = __esm({
|
|
|
5022
5022
|
}
|
|
5023
5023
|
});
|
|
5024
5024
|
|
|
5025
|
-
// ../../packages/core/dist/chunk-
|
|
5025
|
+
// ../../packages/core/dist/chunk-YVY2TZK2.js
|
|
5026
5026
|
var orgResourceIdParam, orgResourceFileIdParam, orgResourceFolderIdParam, hubOrgResourceParam, listOrgResourcesQuery, orgIdQuery, createOrgResourceBody, updateOrgResourceBody, createOrgResourceFolderBody, updateOrgResourceFolderBody, uploadOrgResourceFileBody, updateOrgResourceFileBody, uploadOrgSkillZipBody, linkOrgResourceBody;
|
|
5027
|
-
var
|
|
5028
|
-
"../../packages/core/dist/chunk-
|
|
5027
|
+
var init_chunk_YVY2TZK2 = __esm({
|
|
5028
|
+
"../../packages/core/dist/chunk-YVY2TZK2.js"() {
|
|
5029
5029
|
"use strict";
|
|
5030
5030
|
init_zod();
|
|
5031
5031
|
orgResourceIdParam = external_exports.object({
|
|
@@ -5206,10 +5206,10 @@ var init_chunk_HZ6CADSY = __esm({
|
|
|
5206
5206
|
}
|
|
5207
5207
|
});
|
|
5208
5208
|
|
|
5209
|
-
// ../../packages/core/dist/chunk-
|
|
5209
|
+
// ../../packages/core/dist/chunk-RACEDHG6.js
|
|
5210
5210
|
var resourceIdParam, listResourcesQuery, createResourceBody, updateResourceBody, syncSkillsBody, resourceFileIdParam, listResourceFilesQuery, createResourceFileBody, updateResourceFileBody, uploadResourceFileBody, uploadSkillZipBody, resourceFolderIdParam, listResourceFoldersQuery, createResourceFolderBody, updateResourceFolderBody, agentResourceQuery, hubResourceQuery, linkAgentResourceBody, updateAgentResourceBody, unlinkAgentResourceQuery;
|
|
5211
|
-
var
|
|
5212
|
-
"../../packages/core/dist/chunk-
|
|
5211
|
+
var init_chunk_RACEDHG6 = __esm({
|
|
5212
|
+
"../../packages/core/dist/chunk-RACEDHG6.js"() {
|
|
5213
5213
|
"use strict";
|
|
5214
5214
|
init_chunk_HZ6CADSY();
|
|
5215
5215
|
init_zod();
|
|
@@ -12197,7 +12197,7 @@ var init_chunk_T4Q5COKJ = __esm({
|
|
|
12197
12197
|
}
|
|
12198
12198
|
});
|
|
12199
12199
|
|
|
12200
|
-
// ../../packages/core/dist/chunk-
|
|
12200
|
+
// ../../packages/core/dist/chunk-RRRUNBRX.js
|
|
12201
12201
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
12202
12202
|
const agents = config.agents;
|
|
12203
12203
|
if (!Array.isArray(agents)) return;
|
|
@@ -12527,7 +12527,7 @@ function refineHubAsCodeResources(config, ctx) {
|
|
|
12527
12527
|
ctx.addIssue({
|
|
12528
12528
|
code: external_exports.ZodIssueCode.custom,
|
|
12529
12529
|
path: ["resources", resourceIndex, "files", fileIndex, "content_base64"],
|
|
12530
|
-
message: `
|
|
12530
|
+
message: `skill file ${typeof entry.path === "string" ? `"${entry.path}" ` : ""}exceeds the ${(MAX_RESOURCE_FILE_SIZE / 1024 / 1024).toFixed(0)}MB size limit`
|
|
12531
12531
|
});
|
|
12532
12532
|
}
|
|
12533
12533
|
}
|
|
@@ -12538,7 +12538,7 @@ function refineHubAsCodeResources(config, ctx) {
|
|
|
12538
12538
|
ctx.addIssue({
|
|
12539
12539
|
code: external_exports.ZodIssueCode.custom,
|
|
12540
12540
|
path: ["resources", resourceIndex, "files", fileIndex, "content"],
|
|
12541
|
-
message: `
|
|
12541
|
+
message: `skill file ${typeof entry.path === "string" ? `"${entry.path}" ` : ""}exceeds the ${(MAX_RESOURCE_FILE_SIZE / 1024 / 1024).toFixed(0)}MB size limit`
|
|
12542
12542
|
});
|
|
12543
12543
|
}
|
|
12544
12544
|
}
|
|
@@ -12548,7 +12548,7 @@ function refineHubAsCodeResources(config, ctx) {
|
|
|
12548
12548
|
ctx.addIssue({
|
|
12549
12549
|
code: external_exports.ZodIssueCode.custom,
|
|
12550
12550
|
path: ["resources"],
|
|
12551
|
-
message: `total
|
|
12551
|
+
message: `total skill file bytes exceed the ${(MAX_RESOURCE_AGGREGATE_ENCODED_BYTES / 1024 / 1024).toFixed(0)}MB per-push limit`
|
|
12552
12552
|
});
|
|
12553
12553
|
}
|
|
12554
12554
|
}
|
|
@@ -12781,8 +12781,8 @@ function skillSectionsAsResources(scope) {
|
|
|
12781
12781
|
};
|
|
12782
12782
|
}
|
|
12783
12783
|
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_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;
|
|
12784
|
-
var
|
|
12785
|
-
"../../packages/core/dist/chunk-
|
|
12784
|
+
var init_chunk_RRRUNBRX = __esm({
|
|
12785
|
+
"../../packages/core/dist/chunk-RRRUNBRX.js"() {
|
|
12786
12786
|
"use strict";
|
|
12787
12787
|
init_chunk_SK2X6UOC();
|
|
12788
12788
|
init_chunk_EE5FYMSX();
|
|
@@ -12834,7 +12834,7 @@ var init_chunk_KQZM7ANN = __esm({
|
|
|
12834
12834
|
// signed R2 URL (pull only)
|
|
12835
12835
|
mime_type: external_exports.string().optional(),
|
|
12836
12836
|
file_size: external_exports.number().int().nonnegative().optional(),
|
|
12837
|
-
hash: external_exports.string().regex(EVAL_ATTACHMENT_HASH_REGEX, "
|
|
12837
|
+
hash: external_exports.string().regex(EVAL_ATTACHMENT_HASH_REGEX, "skill file hash must be a lowercase SHA-256 hex digest").optional()
|
|
12838
12838
|
}).passthrough();
|
|
12839
12839
|
hubAsCodeResourceSchema = external_exports.object({
|
|
12840
12840
|
id: external_exports.string().min(1).optional(),
|
|
@@ -12857,7 +12857,7 @@ var init_chunk_KQZM7ANN = __esm({
|
|
|
12857
12857
|
if (resources.length > MAX_HUB_AS_CODE_RESOURCES) {
|
|
12858
12858
|
ctx.addIssue({
|
|
12859
12859
|
code: external_exports.ZodIssueCode.custom,
|
|
12860
|
-
message: `too many
|
|
12860
|
+
message: `too many skills (${resources.length}); the maximum is ${MAX_HUB_AS_CODE_RESOURCES}`
|
|
12861
12861
|
});
|
|
12862
12862
|
return;
|
|
12863
12863
|
}
|
|
@@ -12869,7 +12869,7 @@ var init_chunk_KQZM7ANN = __esm({
|
|
|
12869
12869
|
if (fileCount > MAX_HUB_AS_CODE_RESOURCE_FILES) {
|
|
12870
12870
|
ctx.addIssue({
|
|
12871
12871
|
code: external_exports.ZodIssueCode.custom,
|
|
12872
|
-
message: `too many
|
|
12872
|
+
message: `too many skill files; the maximum is ${MAX_HUB_AS_CODE_RESOURCE_FILES}`
|
|
12873
12873
|
});
|
|
12874
12874
|
return;
|
|
12875
12875
|
}
|
|
@@ -15059,9 +15059,9 @@ var init_contracts = __esm({
|
|
|
15059
15059
|
"use strict";
|
|
15060
15060
|
init_chunk_GK27ENTT();
|
|
15061
15061
|
init_chunk_SXDX4GHS();
|
|
15062
|
-
|
|
15062
|
+
init_chunk_YVY2TZK2();
|
|
15063
15063
|
init_chunk_VXEAR36B();
|
|
15064
|
-
|
|
15064
|
+
init_chunk_RACEDHG6();
|
|
15065
15065
|
init_chunk_Q7KIQHAZ();
|
|
15066
15066
|
init_chunk_WBFLPPDI();
|
|
15067
15067
|
init_chunk_IPXBFWUU();
|
|
@@ -15092,7 +15092,7 @@ var init_contracts = __esm({
|
|
|
15092
15092
|
init_chunk_KSTYTQ7I();
|
|
15093
15093
|
init_chunk_LKBSHANA();
|
|
15094
15094
|
init_chunk_BPCNB5RT();
|
|
15095
|
-
|
|
15095
|
+
init_chunk_RRRUNBRX();
|
|
15096
15096
|
init_chunk_SK2X6UOC();
|
|
15097
15097
|
init_chunk_EE5FYMSX();
|
|
15098
15098
|
init_chunk_JDJ4EUOL();
|
|
@@ -16763,7 +16763,7 @@ function assertResourcePayloadFitsWithoutPruning(payload, cause) {
|
|
|
16763
16763
|
}
|
|
16764
16764
|
function writeResourceFileTree(resDir, files, root, log) {
|
|
16765
16765
|
if (!ensureRealSubdirNoSymlink(root, resDir, files.length > 0)) {
|
|
16766
|
-
console.warn(` Warning: skipping
|
|
16766
|
+
console.warn(` Warning: skipping skill folder (not reachable inside the workspace without a symlink)`);
|
|
16767
16767
|
return;
|
|
16768
16768
|
}
|
|
16769
16769
|
if (files.length === 0) {
|
|
@@ -16784,7 +16784,7 @@ function writeResourceFileTree(resDir, files, root, log) {
|
|
|
16784
16784
|
if (writeFileNoFollow(resDir, filePath2, buf)) {
|
|
16785
16785
|
log?.changed.push(path7.relative(root, filePath2));
|
|
16786
16786
|
} else {
|
|
16787
|
-
console.warn(` Warning: skipping ${file.path} (destination escapes the
|
|
16787
|
+
console.warn(` Warning: skipping ${file.path} (destination escapes the skill folder via a symlink)`);
|
|
16788
16788
|
writtenPaths.delete(file.path);
|
|
16789
16789
|
}
|
|
16790
16790
|
}
|
|
@@ -16806,7 +16806,7 @@ function cleanOrphanFiles(dir, prefix, writtenPaths, root, log) {
|
|
|
16806
16806
|
}
|
|
16807
16807
|
async function downloadBinaryFiles(resDir, files, root, log) {
|
|
16808
16808
|
if (!ensureRealSubdirNoSymlink(root, resDir, true)) {
|
|
16809
|
-
console.warn(` Warning: skipping
|
|
16809
|
+
console.warn(` Warning: skipping skill file downloads (folder not reachable inside the workspace without a symlink)`);
|
|
16810
16810
|
return 0;
|
|
16811
16811
|
}
|
|
16812
16812
|
let count = 0;
|
|
@@ -16836,7 +16836,7 @@ async function downloadBinaryFiles(resDir, files, root, log) {
|
|
|
16836
16836
|
count++;
|
|
16837
16837
|
log?.changed.push(path7.relative(root, filePath2));
|
|
16838
16838
|
} else {
|
|
16839
|
-
console.warn(` Warning: skipping ${file.path} (destination escapes the
|
|
16839
|
+
console.warn(` Warning: skipping ${file.path} (destination escapes the skill folder via a symlink)`);
|
|
16840
16840
|
}
|
|
16841
16841
|
} catch (err) {
|
|
16842
16842
|
console.warn(` Warning: failed to download ${file.path} (${err instanceof Error ? err.message : String(err)})`);
|