@kevisual/cnb 0.0.40 → 0.0.42
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/agent/app.ts +0 -1
- package/agent/routes/build/docker.ts +66 -0
- package/agent/routes/build/index.ts +1 -0
- package/agent/routes/index.ts +1 -0
- package/agent/routes/issues/comments.ts +167 -0
- package/agent/routes/issues/index.ts +2 -1
- package/agent/routes/issues/list.ts +2 -2
- package/dist/cli.js +439 -101
- package/dist/keep.js +34 -16
- package/dist/opencode.js +435 -97
- package/dist/routes.d.ts +59 -1
- package/dist/routes.js +430 -92
- package/package.json +1 -1
- package/src/index.ts +14 -1
- package/src/issue/index.ts +58 -2
- package/src/issue/npc/env.ts +417 -0
package/dist/cli.js
CHANGED
|
@@ -4,30 +4,48 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
7
12
|
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
8
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
21
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
22
|
for (let key of __getOwnPropNames(mod))
|
|
11
23
|
if (!__hasOwnProp.call(to, key))
|
|
12
24
|
__defProp(to, key, {
|
|
13
|
-
get: (
|
|
25
|
+
get: __accessProp.bind(mod, key),
|
|
14
26
|
enumerable: true
|
|
15
27
|
});
|
|
28
|
+
if (canCache)
|
|
29
|
+
cache.set(mod, to);
|
|
16
30
|
return to;
|
|
17
31
|
};
|
|
18
32
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
33
|
+
var __returnValue = (v) => v;
|
|
34
|
+
function __exportSetter(name, newValue) {
|
|
35
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
36
|
+
}
|
|
19
37
|
var __export = (target, all) => {
|
|
20
38
|
for (var name in all)
|
|
21
39
|
__defProp(target, name, {
|
|
22
40
|
get: all[name],
|
|
23
41
|
enumerable: true,
|
|
24
42
|
configurable: true,
|
|
25
|
-
set: (
|
|
43
|
+
set: __exportSetter.bind(all, name)
|
|
26
44
|
});
|
|
27
45
|
};
|
|
28
46
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
29
47
|
|
|
30
|
-
// node_modules
|
|
48
|
+
// node_modules/dayjs/dayjs.min.js
|
|
31
49
|
var require_dayjs_min = __commonJS((exports, module) => {
|
|
32
50
|
(function(t, e) {
|
|
33
51
|
typeof exports == "object" && typeof module != "undefined" ? module.exports = e() : typeof define == "function" && define.amd ? define(e) : (t = typeof globalThis != "undefined" ? globalThis : t || self).dayjs = e();
|
|
@@ -318,7 +336,7 @@ var require_dayjs_min = __commonJS((exports, module) => {
|
|
|
318
336
|
});
|
|
319
337
|
});
|
|
320
338
|
|
|
321
|
-
// node_modules
|
|
339
|
+
// node_modules/commander/lib/error.js
|
|
322
340
|
var require_error = __commonJS((exports) => {
|
|
323
341
|
class CommanderError extends Error {
|
|
324
342
|
constructor(exitCode, code2, message) {
|
|
@@ -342,7 +360,7 @@ var require_error = __commonJS((exports) => {
|
|
|
342
360
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
343
361
|
});
|
|
344
362
|
|
|
345
|
-
// node_modules
|
|
363
|
+
// node_modules/commander/lib/argument.js
|
|
346
364
|
var require_argument = __commonJS((exports) => {
|
|
347
365
|
var { InvalidArgumentError } = require_error();
|
|
348
366
|
|
|
@@ -422,7 +440,7 @@ var require_argument = __commonJS((exports) => {
|
|
|
422
440
|
exports.humanReadableArgName = humanReadableArgName;
|
|
423
441
|
});
|
|
424
442
|
|
|
425
|
-
// node_modules
|
|
443
|
+
// node_modules/commander/lib/help.js
|
|
426
444
|
var require_help = __commonJS((exports) => {
|
|
427
445
|
var { humanReadableArgName } = require_argument();
|
|
428
446
|
|
|
@@ -779,7 +797,7 @@ ${itemIndentStr}`);
|
|
|
779
797
|
exports.stripColor = stripColor;
|
|
780
798
|
});
|
|
781
799
|
|
|
782
|
-
// node_modules
|
|
800
|
+
// node_modules/commander/lib/option.js
|
|
783
801
|
var require_option = __commonJS((exports) => {
|
|
784
802
|
var { InvalidArgumentError } = require_error();
|
|
785
803
|
|
|
@@ -963,7 +981,7 @@ var require_option = __commonJS((exports) => {
|
|
|
963
981
|
exports.DualOptions = DualOptions;
|
|
964
982
|
});
|
|
965
983
|
|
|
966
|
-
// node_modules
|
|
984
|
+
// node_modules/commander/lib/suggestSimilar.js
|
|
967
985
|
var require_suggestSimilar = __commonJS((exports) => {
|
|
968
986
|
var maxDistance = 3;
|
|
969
987
|
function editDistance(a, b) {
|
|
@@ -1036,7 +1054,7 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
|
1036
1054
|
exports.suggestSimilar = suggestSimilar;
|
|
1037
1055
|
});
|
|
1038
1056
|
|
|
1039
|
-
// node_modules
|
|
1057
|
+
// node_modules/commander/lib/command.js
|
|
1040
1058
|
var require_command = __commonJS((exports) => {
|
|
1041
1059
|
var EventEmitter4 = __require("node:events").EventEmitter;
|
|
1042
1060
|
var childProcess = __require("node:child_process");
|
|
@@ -2391,7 +2409,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2391
2409
|
exports.useColor = useColor;
|
|
2392
2410
|
});
|
|
2393
2411
|
|
|
2394
|
-
// node_modules
|
|
2412
|
+
// node_modules/commander/index.js
|
|
2395
2413
|
var require_commander = __commonJS((exports) => {
|
|
2396
2414
|
var { Argument } = require_argument();
|
|
2397
2415
|
var { Command } = require_command();
|
|
@@ -2411,7 +2429,7 @@ var require_commander = __commonJS((exports) => {
|
|
|
2411
2429
|
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
2412
2430
|
});
|
|
2413
2431
|
|
|
2414
|
-
// node_modules
|
|
2432
|
+
// node_modules/@kevisual/router/dist/router.js
|
|
2415
2433
|
import { createRequire as createRequire2 } from "node:module";
|
|
2416
2434
|
import { webcrypto as crypto2 } from "node:crypto";
|
|
2417
2435
|
import url2 from "node:url";
|
|
@@ -20199,7 +20217,7 @@ var import_sender = __toESM2(require_sender(), 1);
|
|
|
20199
20217
|
var import_websocket = __toESM2(require_websocket(), 1);
|
|
20200
20218
|
var import_websocket_server = __toESM2(require_websocket_server(), 1);
|
|
20201
20219
|
|
|
20202
|
-
// node_modules
|
|
20220
|
+
// node_modules/@kevisual/context/dist/app.js
|
|
20203
20221
|
var isBrowser2 = typeof window !== "undefined" && typeof document !== "undefined";
|
|
20204
20222
|
var isBrowser22 = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
20205
20223
|
function getDefaultExportFromCjs(x) {
|
|
@@ -20781,7 +20799,7 @@ var useKey = (envKey, initKey = "context") => {
|
|
|
20781
20799
|
return null;
|
|
20782
20800
|
};
|
|
20783
20801
|
|
|
20784
|
-
// node_modules
|
|
20802
|
+
// node_modules/@kevisual/use-config/dist/app.js
|
|
20785
20803
|
import { createRequire as createRequire3 } from "node:module";
|
|
20786
20804
|
import fs from "node:fs";
|
|
20787
20805
|
import path from "node:path";
|
|
@@ -22270,6 +22288,82 @@ function extractAliveInfo(html) {
|
|
|
22270
22288
|
}
|
|
22271
22289
|
}
|
|
22272
22290
|
|
|
22291
|
+
// src/issue/npc/env.ts
|
|
22292
|
+
function useNPCEnv() {
|
|
22293
|
+
const npcSlug = useKey("CNB_NPC_SLUG");
|
|
22294
|
+
const npcName = useKey("CNB_NPC_NAME");
|
|
22295
|
+
const npcSha = useKey("CNB_NPC_SHA");
|
|
22296
|
+
const npcPrompt = useKey("CNB_NPC_PROMPT");
|
|
22297
|
+
const npcAvatar = useKey("CNB_NPC_AVATAR");
|
|
22298
|
+
const npcEnableThinking = useKey("CNB_NPC_ENABLE_THINKING");
|
|
22299
|
+
return {
|
|
22300
|
+
npcSlug,
|
|
22301
|
+
npcName,
|
|
22302
|
+
npcSha,
|
|
22303
|
+
npcPrompt,
|
|
22304
|
+
npcAvatar,
|
|
22305
|
+
npcEnableThinking
|
|
22306
|
+
};
|
|
22307
|
+
}
|
|
22308
|
+
function useCommentEnv() {
|
|
22309
|
+
const commentId = useKey("CNB_COMMENT_ID");
|
|
22310
|
+
const commentBody = useKey("CNB_COMMENT_BODY");
|
|
22311
|
+
const commentType = useKey("CNB_COMMENT_TYPE");
|
|
22312
|
+
const commentFilePath = useKey("CNB_COMMENT_FILE_PATH");
|
|
22313
|
+
const commentRange = useKey("CNB_COMMENT_RANGE");
|
|
22314
|
+
const reviewId = useKey("CNB_REVIEW_ID");
|
|
22315
|
+
return {
|
|
22316
|
+
commentId,
|
|
22317
|
+
commentBody,
|
|
22318
|
+
commentType,
|
|
22319
|
+
commentFilePath,
|
|
22320
|
+
commentRange,
|
|
22321
|
+
reviewId
|
|
22322
|
+
};
|
|
22323
|
+
}
|
|
22324
|
+
var usePullRequestEnv = () => {
|
|
22325
|
+
const pullRequest = useKey("CNB_PULL_REQUEST");
|
|
22326
|
+
const pullRequestLike = useKey("CNB_PULL_REQUEST_LIKE");
|
|
22327
|
+
const pullRequestProposer = useKey("CNB_PULL_REQUEST_PROPOSER");
|
|
22328
|
+
const pullRequestTitle = useKey("CNB_PULL_REQUEST_TITLE");
|
|
22329
|
+
const pullRequestBranch = useKey("CNB_PULL_REQUEST_BRANCH");
|
|
22330
|
+
const pullRequestSha = useKey("CNB_PULL_REQUEST_SHA");
|
|
22331
|
+
const pullRequestTargetSha = useKey("CNB_PULL_REQUEST_TARGET_SHA");
|
|
22332
|
+
const pullRequestMergeSha = useKey("CNB_PULL_REQUEST_MERGE_SHA");
|
|
22333
|
+
const pullRequestSlug = useKey("CNB_PULL_REQUEST_SLUG");
|
|
22334
|
+
const pullRequestAction = useKey("CNB_PULL_REQUEST_ACTION");
|
|
22335
|
+
const pullRequestId = useKey("CNB_PULL_REQUEST_ID");
|
|
22336
|
+
return {
|
|
22337
|
+
pullRequest,
|
|
22338
|
+
pullRequestLike,
|
|
22339
|
+
pullRequestProposer,
|
|
22340
|
+
pullRequestTitle,
|
|
22341
|
+
pullRequestBranch,
|
|
22342
|
+
pullRequestSha,
|
|
22343
|
+
pullRequestTargetSha,
|
|
22344
|
+
pullRequestMergeSha,
|
|
22345
|
+
pullRequestSlug,
|
|
22346
|
+
pullRequestAction,
|
|
22347
|
+
pullRequestId
|
|
22348
|
+
};
|
|
22349
|
+
};
|
|
22350
|
+
var useRepoInfoEnv = () => {
|
|
22351
|
+
const repoSlug = useKey("CNB_REPO_SLUG");
|
|
22352
|
+
const repoSlugLowercase = useKey("CNB_REPO_SLUG_LOWERCASE");
|
|
22353
|
+
const repoName = useKey("CNB_REPO_NAME");
|
|
22354
|
+
const repoNameLowercase = useKey("CNB_REPO_NAME_LOWERCASE");
|
|
22355
|
+
const repoId = useKey("CNB_REPO_ID");
|
|
22356
|
+
const repoUrlHttps = useKey("CNB_REPO_URL_HTTPS");
|
|
22357
|
+
return {
|
|
22358
|
+
repoSlug,
|
|
22359
|
+
repoSlugLowercase,
|
|
22360
|
+
repoName,
|
|
22361
|
+
repoNameLowercase,
|
|
22362
|
+
repoId,
|
|
22363
|
+
repoUrlHttps
|
|
22364
|
+
};
|
|
22365
|
+
};
|
|
22366
|
+
|
|
22273
22367
|
// src/issue/index.ts
|
|
22274
22368
|
class Issue extends CNBCore {
|
|
22275
22369
|
constructor(options) {
|
|
@@ -22308,12 +22402,33 @@ class Issue extends CNBCore {
|
|
|
22308
22402
|
}
|
|
22309
22403
|
});
|
|
22310
22404
|
}
|
|
22311
|
-
getCommentList(repo, issueNumber) {
|
|
22405
|
+
getCommentList(repo, issueNumber, params) {
|
|
22312
22406
|
const url3 = `/${repo}/-/issues/${issueNumber}/comments`;
|
|
22407
|
+
return this.get({
|
|
22408
|
+
url: url3,
|
|
22409
|
+
params
|
|
22410
|
+
});
|
|
22411
|
+
}
|
|
22412
|
+
getComment(repo, issueNumber, commentId) {
|
|
22413
|
+
const url3 = `/${repo}/-/issues/${issueNumber}/comments/${commentId}`;
|
|
22313
22414
|
return this.get({
|
|
22314
22415
|
url: url3
|
|
22315
22416
|
});
|
|
22316
22417
|
}
|
|
22418
|
+
createComment(repo, issueNumber, body) {
|
|
22419
|
+
const url3 = `/${repo}/-/issues/${issueNumber}/comments`;
|
|
22420
|
+
return this.post({
|
|
22421
|
+
url: url3,
|
|
22422
|
+
data: { body }
|
|
22423
|
+
});
|
|
22424
|
+
}
|
|
22425
|
+
updateComment(repo, issueNumber, commentId, body) {
|
|
22426
|
+
const url3 = `/${repo}/-/issues/${issueNumber}/comments/${commentId}`;
|
|
22427
|
+
return this.patch({
|
|
22428
|
+
url: url3,
|
|
22429
|
+
data: { body }
|
|
22430
|
+
});
|
|
22431
|
+
}
|
|
22317
22432
|
setIssueProperty(repo, issueNumber, properties) {
|
|
22318
22433
|
const url3 = `/${repo}/-/issues/${issueNumber}/property`;
|
|
22319
22434
|
let postData = {
|
|
@@ -22360,6 +22475,18 @@ class Issue extends CNBCore {
|
|
|
22360
22475
|
}
|
|
22361
22476
|
};
|
|
22362
22477
|
}
|
|
22478
|
+
useNPCEnv() {
|
|
22479
|
+
return useNPCEnv();
|
|
22480
|
+
}
|
|
22481
|
+
useCommentEnv() {
|
|
22482
|
+
return useCommentEnv();
|
|
22483
|
+
}
|
|
22484
|
+
usePullRequestEnv() {
|
|
22485
|
+
return usePullRequestEnv();
|
|
22486
|
+
}
|
|
22487
|
+
useRepoInfoEnv() {
|
|
22488
|
+
return useRepoInfoEnv();
|
|
22489
|
+
}
|
|
22363
22490
|
}
|
|
22364
22491
|
|
|
22365
22492
|
// src/mission/index.ts
|
|
@@ -22611,11 +22738,10 @@ var notCNBCheck = (ctx) => {
|
|
|
22611
22738
|
const isCNB = useKey2("CNB");
|
|
22612
22739
|
if (!isCNB) {
|
|
22613
22740
|
ctx.throw(400, "当前环境非 cnb-board 环境,无法获取 live 内容");
|
|
22614
|
-
return true;
|
|
22615
22741
|
}
|
|
22616
22742
|
return false;
|
|
22617
22743
|
};
|
|
22618
|
-
// node_modules
|
|
22744
|
+
// node_modules/zod/v4/classic/external.js
|
|
22619
22745
|
var exports_external2 = {};
|
|
22620
22746
|
__export(exports_external2, {
|
|
22621
22747
|
xor: () => xor2,
|
|
@@ -22856,7 +22982,7 @@ __export(exports_external2, {
|
|
|
22856
22982
|
$brand: () => $brand2
|
|
22857
22983
|
});
|
|
22858
22984
|
|
|
22859
|
-
// node_modules
|
|
22985
|
+
// node_modules/zod/v4/core/index.js
|
|
22860
22986
|
var exports_core3 = {};
|
|
22861
22987
|
__export(exports_core3, {
|
|
22862
22988
|
version: () => version2,
|
|
@@ -23134,7 +23260,7 @@ __export(exports_core3, {
|
|
|
23134
23260
|
$ZodAny: () => $ZodAny2
|
|
23135
23261
|
});
|
|
23136
23262
|
|
|
23137
|
-
// node_modules
|
|
23263
|
+
// node_modules/zod/v4/core/core.js
|
|
23138
23264
|
var NEVER2 = Object.freeze({
|
|
23139
23265
|
status: "aborted"
|
|
23140
23266
|
});
|
|
@@ -23210,7 +23336,7 @@ function config2(newConfig) {
|
|
|
23210
23336
|
Object.assign(globalConfig2, newConfig);
|
|
23211
23337
|
return globalConfig2;
|
|
23212
23338
|
}
|
|
23213
|
-
// node_modules
|
|
23339
|
+
// node_modules/zod/v4/core/util.js
|
|
23214
23340
|
var exports_util2 = {};
|
|
23215
23341
|
__export(exports_util2, {
|
|
23216
23342
|
unwrapMessage: () => unwrapMessage2,
|
|
@@ -23884,7 +24010,7 @@ class Class2 {
|
|
|
23884
24010
|
constructor(..._args) {}
|
|
23885
24011
|
}
|
|
23886
24012
|
|
|
23887
|
-
// node_modules
|
|
24013
|
+
// node_modules/zod/v4/core/errors.js
|
|
23888
24014
|
var initializer3 = (inst, def) => {
|
|
23889
24015
|
inst.name = "$ZodError";
|
|
23890
24016
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -24021,7 +24147,7 @@ function prettifyError2(error48) {
|
|
|
24021
24147
|
`);
|
|
24022
24148
|
}
|
|
24023
24149
|
|
|
24024
|
-
// node_modules
|
|
24150
|
+
// node_modules/zod/v4/core/parse.js
|
|
24025
24151
|
var _parse2 = (_Err) => (schema, value, _ctx, _params) => {
|
|
24026
24152
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
24027
24153
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -24108,7 +24234,7 @@ var _safeDecodeAsync2 = (_Err) => async (schema, value, _ctx) => {
|
|
|
24108
24234
|
return _safeParseAsync2(_Err)(schema, value, _ctx);
|
|
24109
24235
|
};
|
|
24110
24236
|
var safeDecodeAsync3 = /* @__PURE__ */ _safeDecodeAsync2($ZodRealError2);
|
|
24111
|
-
// node_modules
|
|
24237
|
+
// node_modules/zod/v4/core/regexes.js
|
|
24112
24238
|
var exports_regexes2 = {};
|
|
24113
24239
|
__export(exports_regexes2, {
|
|
24114
24240
|
xid: () => xid3,
|
|
@@ -24265,7 +24391,7 @@ var sha512_hex2 = /^[0-9a-fA-F]{128}$/;
|
|
|
24265
24391
|
var sha512_base642 = /* @__PURE__ */ fixedBase642(86, "==");
|
|
24266
24392
|
var sha512_base64url2 = /* @__PURE__ */ fixedBase64url2(86);
|
|
24267
24393
|
|
|
24268
|
-
// node_modules
|
|
24394
|
+
// node_modules/zod/v4/core/checks.js
|
|
24269
24395
|
var $ZodCheck2 = /* @__PURE__ */ $constructor2("$ZodCheck", (inst, def) => {
|
|
24270
24396
|
var _a2;
|
|
24271
24397
|
inst._zod ?? (inst._zod = {});
|
|
@@ -24812,7 +24938,7 @@ var $ZodCheckOverwrite2 = /* @__PURE__ */ $constructor2("$ZodCheckOverwrite", (i
|
|
|
24812
24938
|
};
|
|
24813
24939
|
});
|
|
24814
24940
|
|
|
24815
|
-
// node_modules
|
|
24941
|
+
// node_modules/zod/v4/core/doc.js
|
|
24816
24942
|
class Doc2 {
|
|
24817
24943
|
constructor(args = []) {
|
|
24818
24944
|
this.content = [];
|
|
@@ -24850,14 +24976,14 @@ class Doc2 {
|
|
|
24850
24976
|
}
|
|
24851
24977
|
}
|
|
24852
24978
|
|
|
24853
|
-
// node_modules
|
|
24979
|
+
// node_modules/zod/v4/core/versions.js
|
|
24854
24980
|
var version2 = {
|
|
24855
24981
|
major: 4,
|
|
24856
24982
|
minor: 3,
|
|
24857
24983
|
patch: 6
|
|
24858
24984
|
};
|
|
24859
24985
|
|
|
24860
|
-
// node_modules
|
|
24986
|
+
// node_modules/zod/v4/core/schemas.js
|
|
24861
24987
|
var $ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => {
|
|
24862
24988
|
var _a2;
|
|
24863
24989
|
inst ?? (inst = {});
|
|
@@ -26819,7 +26945,7 @@ function handleRefineResult2(result, payload, input, inst) {
|
|
|
26819
26945
|
payload.issues.push(issue3(_iss));
|
|
26820
26946
|
}
|
|
26821
26947
|
}
|
|
26822
|
-
// node_modules
|
|
26948
|
+
// node_modules/zod/v4/locales/index.js
|
|
26823
26949
|
var exports_locales2 = {};
|
|
26824
26950
|
__export(exports_locales2, {
|
|
26825
26951
|
zhTW: () => zh_TW_default2,
|
|
@@ -26873,7 +26999,7 @@ __export(exports_locales2, {
|
|
|
26873
26999
|
ar: () => ar_default2
|
|
26874
27000
|
});
|
|
26875
27001
|
|
|
26876
|
-
// node_modules
|
|
27002
|
+
// node_modules/zod/v4/locales/ar.js
|
|
26877
27003
|
var error48 = () => {
|
|
26878
27004
|
const Sizable = {
|
|
26879
27005
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
@@ -26979,7 +27105,7 @@ function ar_default2() {
|
|
|
26979
27105
|
localeError: error48()
|
|
26980
27106
|
};
|
|
26981
27107
|
}
|
|
26982
|
-
// node_modules
|
|
27108
|
+
// node_modules/zod/v4/locales/az.js
|
|
26983
27109
|
var error50 = () => {
|
|
26984
27110
|
const Sizable = {
|
|
26985
27111
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
@@ -27084,7 +27210,7 @@ function az_default2() {
|
|
|
27084
27210
|
localeError: error50()
|
|
27085
27211
|
};
|
|
27086
27212
|
}
|
|
27087
|
-
// node_modules
|
|
27213
|
+
// node_modules/zod/v4/locales/be.js
|
|
27088
27214
|
function getBelarusianPlural2(count, one, few, many) {
|
|
27089
27215
|
const absCount = Math.abs(count);
|
|
27090
27216
|
const lastDigit = absCount % 10;
|
|
@@ -27240,7 +27366,7 @@ function be_default2() {
|
|
|
27240
27366
|
localeError: error51()
|
|
27241
27367
|
};
|
|
27242
27368
|
}
|
|
27243
|
-
// node_modules
|
|
27369
|
+
// node_modules/zod/v4/locales/bg.js
|
|
27244
27370
|
var error52 = () => {
|
|
27245
27371
|
const Sizable = {
|
|
27246
27372
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -27360,7 +27486,7 @@ function bg_default2() {
|
|
|
27360
27486
|
localeError: error52()
|
|
27361
27487
|
};
|
|
27362
27488
|
}
|
|
27363
|
-
// node_modules
|
|
27489
|
+
// node_modules/zod/v4/locales/ca.js
|
|
27364
27490
|
var error53 = () => {
|
|
27365
27491
|
const Sizable = {
|
|
27366
27492
|
string: { unit: "caràcters", verb: "contenir" },
|
|
@@ -27467,7 +27593,7 @@ function ca_default2() {
|
|
|
27467
27593
|
localeError: error53()
|
|
27468
27594
|
};
|
|
27469
27595
|
}
|
|
27470
|
-
// node_modules
|
|
27596
|
+
// node_modules/zod/v4/locales/cs.js
|
|
27471
27597
|
var error54 = () => {
|
|
27472
27598
|
const Sizable = {
|
|
27473
27599
|
string: { unit: "znaků", verb: "mít" },
|
|
@@ -27578,7 +27704,7 @@ function cs_default2() {
|
|
|
27578
27704
|
localeError: error54()
|
|
27579
27705
|
};
|
|
27580
27706
|
}
|
|
27581
|
-
// node_modules
|
|
27707
|
+
// node_modules/zod/v4/locales/da.js
|
|
27582
27708
|
var error55 = () => {
|
|
27583
27709
|
const Sizable = {
|
|
27584
27710
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -27693,7 +27819,7 @@ function da_default2() {
|
|
|
27693
27819
|
localeError: error55()
|
|
27694
27820
|
};
|
|
27695
27821
|
}
|
|
27696
|
-
// node_modules
|
|
27822
|
+
// node_modules/zod/v4/locales/de.js
|
|
27697
27823
|
var error56 = () => {
|
|
27698
27824
|
const Sizable = {
|
|
27699
27825
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -27801,7 +27927,7 @@ function de_default2() {
|
|
|
27801
27927
|
localeError: error56()
|
|
27802
27928
|
};
|
|
27803
27929
|
}
|
|
27804
|
-
// node_modules
|
|
27930
|
+
// node_modules/zod/v4/locales/en.js
|
|
27805
27931
|
var error57 = () => {
|
|
27806
27932
|
const Sizable = {
|
|
27807
27933
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -27907,7 +28033,7 @@ function en_default2() {
|
|
|
27907
28033
|
localeError: error57()
|
|
27908
28034
|
};
|
|
27909
28035
|
}
|
|
27910
|
-
// node_modules
|
|
28036
|
+
// node_modules/zod/v4/locales/eo.js
|
|
27911
28037
|
var error58 = () => {
|
|
27912
28038
|
const Sizable = {
|
|
27913
28039
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -28016,7 +28142,7 @@ function eo_default2() {
|
|
|
28016
28142
|
localeError: error58()
|
|
28017
28143
|
};
|
|
28018
28144
|
}
|
|
28019
|
-
// node_modules
|
|
28145
|
+
// node_modules/zod/v4/locales/es.js
|
|
28020
28146
|
var error59 = () => {
|
|
28021
28147
|
const Sizable = {
|
|
28022
28148
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -28148,7 +28274,7 @@ function es_default2() {
|
|
|
28148
28274
|
localeError: error59()
|
|
28149
28275
|
};
|
|
28150
28276
|
}
|
|
28151
|
-
// node_modules
|
|
28277
|
+
// node_modules/zod/v4/locales/fa.js
|
|
28152
28278
|
var error60 = () => {
|
|
28153
28279
|
const Sizable = {
|
|
28154
28280
|
string: { unit: "کاراکتر", verb: "داشته باشد" },
|
|
@@ -28262,7 +28388,7 @@ function fa_default2() {
|
|
|
28262
28388
|
localeError: error60()
|
|
28263
28389
|
};
|
|
28264
28390
|
}
|
|
28265
|
-
// node_modules
|
|
28391
|
+
// node_modules/zod/v4/locales/fi.js
|
|
28266
28392
|
var error61 = () => {
|
|
28267
28393
|
const Sizable = {
|
|
28268
28394
|
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
@@ -28374,7 +28500,7 @@ function fi_default2() {
|
|
|
28374
28500
|
localeError: error61()
|
|
28375
28501
|
};
|
|
28376
28502
|
}
|
|
28377
|
-
// node_modules
|
|
28503
|
+
// node_modules/zod/v4/locales/fr.js
|
|
28378
28504
|
var error62 = () => {
|
|
28379
28505
|
const Sizable = {
|
|
28380
28506
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -28482,7 +28608,7 @@ function fr_default2() {
|
|
|
28482
28608
|
localeError: error62()
|
|
28483
28609
|
};
|
|
28484
28610
|
}
|
|
28485
|
-
// node_modules
|
|
28611
|
+
// node_modules/zod/v4/locales/fr-CA.js
|
|
28486
28612
|
var error63 = () => {
|
|
28487
28613
|
const Sizable = {
|
|
28488
28614
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -28589,7 +28715,7 @@ function fr_CA_default2() {
|
|
|
28589
28715
|
localeError: error63()
|
|
28590
28716
|
};
|
|
28591
28717
|
}
|
|
28592
|
-
// node_modules
|
|
28718
|
+
// node_modules/zod/v4/locales/he.js
|
|
28593
28719
|
var error64 = () => {
|
|
28594
28720
|
const TypeNames = {
|
|
28595
28721
|
string: { label: "מחרוזת", gender: "f" },
|
|
@@ -28782,7 +28908,7 @@ function he_default2() {
|
|
|
28782
28908
|
localeError: error64()
|
|
28783
28909
|
};
|
|
28784
28910
|
}
|
|
28785
|
-
// node_modules
|
|
28911
|
+
// node_modules/zod/v4/locales/hu.js
|
|
28786
28912
|
var error65 = () => {
|
|
28787
28913
|
const Sizable = {
|
|
28788
28914
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -28890,7 +29016,7 @@ function hu_default2() {
|
|
|
28890
29016
|
localeError: error65()
|
|
28891
29017
|
};
|
|
28892
29018
|
}
|
|
28893
|
-
// node_modules
|
|
29019
|
+
// node_modules/zod/v4/locales/hy.js
|
|
28894
29020
|
function getArmenianPlural2(count, one, many) {
|
|
28895
29021
|
return Math.abs(count) === 1 ? one : many;
|
|
28896
29022
|
}
|
|
@@ -29037,7 +29163,7 @@ function hy_default2() {
|
|
|
29037
29163
|
localeError: error66()
|
|
29038
29164
|
};
|
|
29039
29165
|
}
|
|
29040
|
-
// node_modules
|
|
29166
|
+
// node_modules/zod/v4/locales/id.js
|
|
29041
29167
|
var error67 = () => {
|
|
29042
29168
|
const Sizable = {
|
|
29043
29169
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -29143,7 +29269,7 @@ function id_default2() {
|
|
|
29143
29269
|
localeError: error67()
|
|
29144
29270
|
};
|
|
29145
29271
|
}
|
|
29146
|
-
// node_modules
|
|
29272
|
+
// node_modules/zod/v4/locales/is.js
|
|
29147
29273
|
var error68 = () => {
|
|
29148
29274
|
const Sizable = {
|
|
29149
29275
|
string: { unit: "stafi", verb: "að hafa" },
|
|
@@ -29252,7 +29378,7 @@ function is_default2() {
|
|
|
29252
29378
|
localeError: error68()
|
|
29253
29379
|
};
|
|
29254
29380
|
}
|
|
29255
|
-
// node_modules
|
|
29381
|
+
// node_modules/zod/v4/locales/it.js
|
|
29256
29382
|
var error69 = () => {
|
|
29257
29383
|
const Sizable = {
|
|
29258
29384
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -29360,7 +29486,7 @@ function it_default2() {
|
|
|
29360
29486
|
localeError: error69()
|
|
29361
29487
|
};
|
|
29362
29488
|
}
|
|
29363
|
-
// node_modules
|
|
29489
|
+
// node_modules/zod/v4/locales/ja.js
|
|
29364
29490
|
var error70 = () => {
|
|
29365
29491
|
const Sizable = {
|
|
29366
29492
|
string: { unit: "文字", verb: "である" },
|
|
@@ -29467,7 +29593,7 @@ function ja_default2() {
|
|
|
29467
29593
|
localeError: error70()
|
|
29468
29594
|
};
|
|
29469
29595
|
}
|
|
29470
|
-
// node_modules
|
|
29596
|
+
// node_modules/zod/v4/locales/ka.js
|
|
29471
29597
|
var error71 = () => {
|
|
29472
29598
|
const Sizable = {
|
|
29473
29599
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
@@ -29579,7 +29705,7 @@ function ka_default2() {
|
|
|
29579
29705
|
localeError: error71()
|
|
29580
29706
|
};
|
|
29581
29707
|
}
|
|
29582
|
-
// node_modules
|
|
29708
|
+
// node_modules/zod/v4/locales/km.js
|
|
29583
29709
|
var error72 = () => {
|
|
29584
29710
|
const Sizable = {
|
|
29585
29711
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
@@ -29690,11 +29816,11 @@ function km_default2() {
|
|
|
29690
29816
|
};
|
|
29691
29817
|
}
|
|
29692
29818
|
|
|
29693
|
-
// node_modules
|
|
29819
|
+
// node_modules/zod/v4/locales/kh.js
|
|
29694
29820
|
function kh_default2() {
|
|
29695
29821
|
return km_default2();
|
|
29696
29822
|
}
|
|
29697
|
-
// node_modules
|
|
29823
|
+
// node_modules/zod/v4/locales/ko.js
|
|
29698
29824
|
var error73 = () => {
|
|
29699
29825
|
const Sizable = {
|
|
29700
29826
|
string: { unit: "문자", verb: "to have" },
|
|
@@ -29805,7 +29931,7 @@ function ko_default2() {
|
|
|
29805
29931
|
localeError: error73()
|
|
29806
29932
|
};
|
|
29807
29933
|
}
|
|
29808
|
-
// node_modules
|
|
29934
|
+
// node_modules/zod/v4/locales/lt.js
|
|
29809
29935
|
var capitalizeFirstCharacter2 = (text) => {
|
|
29810
29936
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
29811
29937
|
};
|
|
@@ -30008,7 +30134,7 @@ function lt_default2() {
|
|
|
30008
30134
|
localeError: error74()
|
|
30009
30135
|
};
|
|
30010
30136
|
}
|
|
30011
|
-
// node_modules
|
|
30137
|
+
// node_modules/zod/v4/locales/mk.js
|
|
30012
30138
|
var error75 = () => {
|
|
30013
30139
|
const Sizable = {
|
|
30014
30140
|
string: { unit: "знаци", verb: "да имаат" },
|
|
@@ -30117,7 +30243,7 @@ function mk_default2() {
|
|
|
30117
30243
|
localeError: error75()
|
|
30118
30244
|
};
|
|
30119
30245
|
}
|
|
30120
|
-
// node_modules
|
|
30246
|
+
// node_modules/zod/v4/locales/ms.js
|
|
30121
30247
|
var error76 = () => {
|
|
30122
30248
|
const Sizable = {
|
|
30123
30249
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -30224,7 +30350,7 @@ function ms_default2() {
|
|
|
30224
30350
|
localeError: error76()
|
|
30225
30351
|
};
|
|
30226
30352
|
}
|
|
30227
|
-
// node_modules
|
|
30353
|
+
// node_modules/zod/v4/locales/nl.js
|
|
30228
30354
|
var error77 = () => {
|
|
30229
30355
|
const Sizable = {
|
|
30230
30356
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -30334,7 +30460,7 @@ function nl_default2() {
|
|
|
30334
30460
|
localeError: error77()
|
|
30335
30461
|
};
|
|
30336
30462
|
}
|
|
30337
|
-
// node_modules
|
|
30463
|
+
// node_modules/zod/v4/locales/no.js
|
|
30338
30464
|
var error78 = () => {
|
|
30339
30465
|
const Sizable = {
|
|
30340
30466
|
string: { unit: "tegn", verb: "å ha" },
|
|
@@ -30442,7 +30568,7 @@ function no_default2() {
|
|
|
30442
30568
|
localeError: error78()
|
|
30443
30569
|
};
|
|
30444
30570
|
}
|
|
30445
|
-
// node_modules
|
|
30571
|
+
// node_modules/zod/v4/locales/ota.js
|
|
30446
30572
|
var error79 = () => {
|
|
30447
30573
|
const Sizable = {
|
|
30448
30574
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
@@ -30551,7 +30677,7 @@ function ota_default2() {
|
|
|
30551
30677
|
localeError: error79()
|
|
30552
30678
|
};
|
|
30553
30679
|
}
|
|
30554
|
-
// node_modules
|
|
30680
|
+
// node_modules/zod/v4/locales/ps.js
|
|
30555
30681
|
var error80 = () => {
|
|
30556
30682
|
const Sizable = {
|
|
30557
30683
|
string: { unit: "توکي", verb: "ولري" },
|
|
@@ -30665,7 +30791,7 @@ function ps_default2() {
|
|
|
30665
30791
|
localeError: error80()
|
|
30666
30792
|
};
|
|
30667
30793
|
}
|
|
30668
|
-
// node_modules
|
|
30794
|
+
// node_modules/zod/v4/locales/pl.js
|
|
30669
30795
|
var error81 = () => {
|
|
30670
30796
|
const Sizable = {
|
|
30671
30797
|
string: { unit: "znaków", verb: "mieć" },
|
|
@@ -30774,7 +30900,7 @@ function pl_default2() {
|
|
|
30774
30900
|
localeError: error81()
|
|
30775
30901
|
};
|
|
30776
30902
|
}
|
|
30777
|
-
// node_modules
|
|
30903
|
+
// node_modules/zod/v4/locales/pt.js
|
|
30778
30904
|
var error82 = () => {
|
|
30779
30905
|
const Sizable = {
|
|
30780
30906
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -30882,7 +31008,7 @@ function pt_default2() {
|
|
|
30882
31008
|
localeError: error82()
|
|
30883
31009
|
};
|
|
30884
31010
|
}
|
|
30885
|
-
// node_modules
|
|
31011
|
+
// node_modules/zod/v4/locales/ru.js
|
|
30886
31012
|
function getRussianPlural2(count, one, few, many) {
|
|
30887
31013
|
const absCount = Math.abs(count);
|
|
30888
31014
|
const lastDigit = absCount % 10;
|
|
@@ -31038,7 +31164,7 @@ function ru_default2() {
|
|
|
31038
31164
|
localeError: error83()
|
|
31039
31165
|
};
|
|
31040
31166
|
}
|
|
31041
|
-
// node_modules
|
|
31167
|
+
// node_modules/zod/v4/locales/sl.js
|
|
31042
31168
|
var error84 = () => {
|
|
31043
31169
|
const Sizable = {
|
|
31044
31170
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -31147,7 +31273,7 @@ function sl_default2() {
|
|
|
31147
31273
|
localeError: error84()
|
|
31148
31274
|
};
|
|
31149
31275
|
}
|
|
31150
|
-
// node_modules
|
|
31276
|
+
// node_modules/zod/v4/locales/sv.js
|
|
31151
31277
|
var error85 = () => {
|
|
31152
31278
|
const Sizable = {
|
|
31153
31279
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -31257,7 +31383,7 @@ function sv_default2() {
|
|
|
31257
31383
|
localeError: error85()
|
|
31258
31384
|
};
|
|
31259
31385
|
}
|
|
31260
|
-
// node_modules
|
|
31386
|
+
// node_modules/zod/v4/locales/ta.js
|
|
31261
31387
|
var error86 = () => {
|
|
31262
31388
|
const Sizable = {
|
|
31263
31389
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -31367,7 +31493,7 @@ function ta_default2() {
|
|
|
31367
31493
|
localeError: error86()
|
|
31368
31494
|
};
|
|
31369
31495
|
}
|
|
31370
|
-
// node_modules
|
|
31496
|
+
// node_modules/zod/v4/locales/th.js
|
|
31371
31497
|
var error87 = () => {
|
|
31372
31498
|
const Sizable = {
|
|
31373
31499
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
@@ -31477,7 +31603,7 @@ function th_default2() {
|
|
|
31477
31603
|
localeError: error87()
|
|
31478
31604
|
};
|
|
31479
31605
|
}
|
|
31480
|
-
// node_modules
|
|
31606
|
+
// node_modules/zod/v4/locales/tr.js
|
|
31481
31607
|
var error88 = () => {
|
|
31482
31608
|
const Sizable = {
|
|
31483
31609
|
string: { unit: "karakter", verb: "olmalı" },
|
|
@@ -31582,7 +31708,7 @@ function tr_default2() {
|
|
|
31582
31708
|
localeError: error88()
|
|
31583
31709
|
};
|
|
31584
31710
|
}
|
|
31585
|
-
// node_modules
|
|
31711
|
+
// node_modules/zod/v4/locales/uk.js
|
|
31586
31712
|
var error89 = () => {
|
|
31587
31713
|
const Sizable = {
|
|
31588
31714
|
string: { unit: "символів", verb: "матиме" },
|
|
@@ -31691,11 +31817,11 @@ function uk_default2() {
|
|
|
31691
31817
|
};
|
|
31692
31818
|
}
|
|
31693
31819
|
|
|
31694
|
-
// node_modules
|
|
31820
|
+
// node_modules/zod/v4/locales/ua.js
|
|
31695
31821
|
function ua_default2() {
|
|
31696
31822
|
return uk_default2();
|
|
31697
31823
|
}
|
|
31698
|
-
// node_modules
|
|
31824
|
+
// node_modules/zod/v4/locales/ur.js
|
|
31699
31825
|
var error90 = () => {
|
|
31700
31826
|
const Sizable = {
|
|
31701
31827
|
string: { unit: "حروف", verb: "ہونا" },
|
|
@@ -31805,7 +31931,7 @@ function ur_default2() {
|
|
|
31805
31931
|
localeError: error90()
|
|
31806
31932
|
};
|
|
31807
31933
|
}
|
|
31808
|
-
// node_modules
|
|
31934
|
+
// node_modules/zod/v4/locales/uz.js
|
|
31809
31935
|
var error91 = () => {
|
|
31810
31936
|
const Sizable = {
|
|
31811
31937
|
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
@@ -31914,7 +32040,7 @@ function uz_default2() {
|
|
|
31914
32040
|
localeError: error91()
|
|
31915
32041
|
};
|
|
31916
32042
|
}
|
|
31917
|
-
// node_modules
|
|
32043
|
+
// node_modules/zod/v4/locales/vi.js
|
|
31918
32044
|
var error92 = () => {
|
|
31919
32045
|
const Sizable = {
|
|
31920
32046
|
string: { unit: "ký tự", verb: "có" },
|
|
@@ -32022,7 +32148,7 @@ function vi_default2() {
|
|
|
32022
32148
|
localeError: error92()
|
|
32023
32149
|
};
|
|
32024
32150
|
}
|
|
32025
|
-
// node_modules
|
|
32151
|
+
// node_modules/zod/v4/locales/zh-CN.js
|
|
32026
32152
|
var error93 = () => {
|
|
32027
32153
|
const Sizable = {
|
|
32028
32154
|
string: { unit: "字符", verb: "包含" },
|
|
@@ -32131,7 +32257,7 @@ function zh_CN_default2() {
|
|
|
32131
32257
|
localeError: error93()
|
|
32132
32258
|
};
|
|
32133
32259
|
}
|
|
32134
|
-
// node_modules
|
|
32260
|
+
// node_modules/zod/v4/locales/zh-TW.js
|
|
32135
32261
|
var error94 = () => {
|
|
32136
32262
|
const Sizable = {
|
|
32137
32263
|
string: { unit: "字元", verb: "擁有" },
|
|
@@ -32238,7 +32364,7 @@ function zh_TW_default2() {
|
|
|
32238
32364
|
localeError: error94()
|
|
32239
32365
|
};
|
|
32240
32366
|
}
|
|
32241
|
-
// node_modules
|
|
32367
|
+
// node_modules/zod/v4/locales/yo.js
|
|
32242
32368
|
var error95 = () => {
|
|
32243
32369
|
const Sizable = {
|
|
32244
32370
|
string: { unit: "àmi", verb: "ní" },
|
|
@@ -32345,7 +32471,7 @@ function yo_default2() {
|
|
|
32345
32471
|
localeError: error95()
|
|
32346
32472
|
};
|
|
32347
32473
|
}
|
|
32348
|
-
// node_modules
|
|
32474
|
+
// node_modules/zod/v4/core/registries.js
|
|
32349
32475
|
var _a2;
|
|
32350
32476
|
var $output2 = Symbol("ZodOutput");
|
|
32351
32477
|
var $input2 = Symbol("ZodInput");
|
|
@@ -32395,7 +32521,7 @@ function registry2() {
|
|
|
32395
32521
|
}
|
|
32396
32522
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry2());
|
|
32397
32523
|
var globalRegistry2 = globalThis.__zod_globalRegistry;
|
|
32398
|
-
// node_modules
|
|
32524
|
+
// node_modules/zod/v4/core/api.js
|
|
32399
32525
|
function _string2(Class3, params) {
|
|
32400
32526
|
return new Class3({
|
|
32401
32527
|
type: "string",
|
|
@@ -33315,7 +33441,7 @@ function _stringFormat2(Class3, format, fnOrRegex, _params = {}) {
|
|
|
33315
33441
|
const inst = new Class3(def);
|
|
33316
33442
|
return inst;
|
|
33317
33443
|
}
|
|
33318
|
-
// node_modules
|
|
33444
|
+
// node_modules/zod/v4/core/to-json-schema.js
|
|
33319
33445
|
function initializeContext2(params) {
|
|
33320
33446
|
let target = params?.target ?? "draft-2020-12";
|
|
33321
33447
|
if (target === "draft-4")
|
|
@@ -33660,7 +33786,7 @@ var createStandardJSONSchemaMethod2 = (schema, io, processors = {}) => (params)
|
|
|
33660
33786
|
extractDefs2(ctx, schema);
|
|
33661
33787
|
return finalize2(ctx, schema);
|
|
33662
33788
|
};
|
|
33663
|
-
// node_modules
|
|
33789
|
+
// node_modules/zod/v4/core/json-schema-processors.js
|
|
33664
33790
|
var formatMap2 = {
|
|
33665
33791
|
guid: "uuid",
|
|
33666
33792
|
url: "uri",
|
|
@@ -34205,7 +34331,7 @@ function toJSONSchema4(input, params) {
|
|
|
34205
34331
|
extractDefs2(ctx, input);
|
|
34206
34332
|
return finalize2(ctx, input);
|
|
34207
34333
|
}
|
|
34208
|
-
// node_modules
|
|
34334
|
+
// node_modules/zod/v4/core/json-schema-generator.js
|
|
34209
34335
|
class JSONSchemaGenerator2 {
|
|
34210
34336
|
get metadataRegistry() {
|
|
34211
34337
|
return this.ctx.metadataRegistry;
|
|
@@ -34264,9 +34390,9 @@ class JSONSchemaGenerator2 {
|
|
|
34264
34390
|
return plainResult;
|
|
34265
34391
|
}
|
|
34266
34392
|
}
|
|
34267
|
-
// node_modules
|
|
34393
|
+
// node_modules/zod/v4/core/json-schema.js
|
|
34268
34394
|
var exports_json_schema2 = {};
|
|
34269
|
-
// node_modules
|
|
34395
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
34270
34396
|
var exports_schemas3 = {};
|
|
34271
34397
|
__export(exports_schemas3, {
|
|
34272
34398
|
xor: () => xor2,
|
|
@@ -34435,7 +34561,7 @@ __export(exports_schemas3, {
|
|
|
34435
34561
|
ZodAny: () => ZodAny2
|
|
34436
34562
|
});
|
|
34437
34563
|
|
|
34438
|
-
// node_modules
|
|
34564
|
+
// node_modules/zod/v4/classic/checks.js
|
|
34439
34565
|
var exports_checks3 = {};
|
|
34440
34566
|
__export(exports_checks3, {
|
|
34441
34567
|
uppercase: () => _uppercase2,
|
|
@@ -34469,7 +34595,7 @@ __export(exports_checks3, {
|
|
|
34469
34595
|
endsWith: () => _endsWith2
|
|
34470
34596
|
});
|
|
34471
34597
|
|
|
34472
|
-
// node_modules
|
|
34598
|
+
// node_modules/zod/v4/classic/iso.js
|
|
34473
34599
|
var exports_iso2 = {};
|
|
34474
34600
|
__export(exports_iso2, {
|
|
34475
34601
|
time: () => time5,
|
|
@@ -34510,7 +34636,7 @@ function duration5(params) {
|
|
|
34510
34636
|
return _isoDuration2(ZodISODuration2, params);
|
|
34511
34637
|
}
|
|
34512
34638
|
|
|
34513
|
-
// node_modules
|
|
34639
|
+
// node_modules/zod/v4/classic/errors.js
|
|
34514
34640
|
var initializer5 = (inst, issues) => {
|
|
34515
34641
|
$ZodError2.init(inst, issues);
|
|
34516
34642
|
inst.name = "ZodError";
|
|
@@ -34545,7 +34671,7 @@ var ZodRealError2 = $constructor2("ZodError", initializer5, {
|
|
|
34545
34671
|
Parent: Error
|
|
34546
34672
|
});
|
|
34547
34673
|
|
|
34548
|
-
// node_modules
|
|
34674
|
+
// node_modules/zod/v4/classic/parse.js
|
|
34549
34675
|
var parse6 = /* @__PURE__ */ _parse2(ZodRealError2);
|
|
34550
34676
|
var parseAsync5 = /* @__PURE__ */ _parseAsync2(ZodRealError2);
|
|
34551
34677
|
var safeParse5 = /* @__PURE__ */ _safeParse2(ZodRealError2);
|
|
@@ -34559,7 +34685,7 @@ var safeDecode5 = /* @__PURE__ */ _safeDecode2(ZodRealError2);
|
|
|
34559
34685
|
var safeEncodeAsync5 = /* @__PURE__ */ _safeEncodeAsync2(ZodRealError2);
|
|
34560
34686
|
var safeDecodeAsync5 = /* @__PURE__ */ _safeDecodeAsync2(ZodRealError2);
|
|
34561
34687
|
|
|
34562
|
-
// node_modules
|
|
34688
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
34563
34689
|
var ZodType2 = /* @__PURE__ */ $constructor2("ZodType", (inst, def) => {
|
|
34564
34690
|
$ZodType2.init(inst, def);
|
|
34565
34691
|
Object.assign(inst["~standard"], {
|
|
@@ -35635,7 +35761,7 @@ function json2(params) {
|
|
|
35635
35761
|
function preprocess2(fn, schema) {
|
|
35636
35762
|
return pipe2(transform2(fn), schema);
|
|
35637
35763
|
}
|
|
35638
|
-
// node_modules
|
|
35764
|
+
// node_modules/zod/v4/classic/compat.js
|
|
35639
35765
|
var ZodIssueCode2 = {
|
|
35640
35766
|
invalid_type: "invalid_type",
|
|
35641
35767
|
too_big: "too_big",
|
|
@@ -35659,7 +35785,7 @@ function getErrorMap2() {
|
|
|
35659
35785
|
}
|
|
35660
35786
|
var ZodFirstPartyTypeKind2;
|
|
35661
35787
|
(function(ZodFirstPartyTypeKind3) {})(ZodFirstPartyTypeKind2 || (ZodFirstPartyTypeKind2 = {}));
|
|
35662
|
-
// node_modules
|
|
35788
|
+
// node_modules/zod/v4/classic/from-json-schema.js
|
|
35663
35789
|
var z2 = {
|
|
35664
35790
|
...exports_schemas3,
|
|
35665
35791
|
...exports_checks3,
|
|
@@ -36120,7 +36246,7 @@ function fromJSONSchema4(schema, params) {
|
|
|
36120
36246
|
};
|
|
36121
36247
|
return convertSchema2(schema, ctx);
|
|
36122
36248
|
}
|
|
36123
|
-
// node_modules
|
|
36249
|
+
// node_modules/zod/v4/classic/coerce.js
|
|
36124
36250
|
var exports_coerce2 = {};
|
|
36125
36251
|
__export(exports_coerce2, {
|
|
36126
36252
|
string: () => string7,
|
|
@@ -36145,12 +36271,12 @@ function date9(params) {
|
|
|
36145
36271
|
return _coercedDate2(ZodDate2, params);
|
|
36146
36272
|
}
|
|
36147
36273
|
|
|
36148
|
-
// node_modules
|
|
36274
|
+
// node_modules/zod/v4/classic/external.js
|
|
36149
36275
|
config2(en_default2());
|
|
36150
|
-
// node_modules
|
|
36276
|
+
// node_modules/zod/index.js
|
|
36151
36277
|
var zod_default = exports_external2;
|
|
36152
36278
|
|
|
36153
|
-
// node_modules
|
|
36279
|
+
// node_modules/@opencode-ai/plugin/dist/tool.js
|
|
36154
36280
|
function tool2(input) {
|
|
36155
36281
|
return input;
|
|
36156
36282
|
}
|
|
@@ -36655,7 +36781,7 @@ app.route({
|
|
|
36655
36781
|
const branch = ctx.query?.branch || "main";
|
|
36656
36782
|
const config3 = ctx.query?.config;
|
|
36657
36783
|
const event = ctx.query?.event || "api_trigger_event";
|
|
36658
|
-
const
|
|
36784
|
+
const env2 = ctx.query?.env ?? {};
|
|
36659
36785
|
if (!repo2) {
|
|
36660
36786
|
ctx.throw(400, "缺少参数 repo");
|
|
36661
36787
|
}
|
|
@@ -36663,7 +36789,7 @@ app.route({
|
|
|
36663
36789
|
branch,
|
|
36664
36790
|
config: config3,
|
|
36665
36791
|
event,
|
|
36666
|
-
env
|
|
36792
|
+
env: env2
|
|
36667
36793
|
});
|
|
36668
36794
|
ctx.forward(res);
|
|
36669
36795
|
}).addTo(app);
|
|
@@ -37012,7 +37138,7 @@ app.route({
|
|
|
37012
37138
|
ctx.body = { content: `当前cnb工作空间的cookie环境变量为:${cookie2}` };
|
|
37013
37139
|
}).addTo(app);
|
|
37014
37140
|
|
|
37015
|
-
// node_modules
|
|
37141
|
+
// node_modules/@kevisual/ai/dist/ai-provider-browser.js
|
|
37016
37142
|
var __create4 = Object.create;
|
|
37017
37143
|
var __getProtoOf4 = Object.getPrototypeOf;
|
|
37018
37144
|
var __defProp4 = Object.defineProperty;
|
|
@@ -57041,7 +57167,7 @@ app.route({
|
|
|
57041
57167
|
skill: "list-issues",
|
|
57042
57168
|
title: "查询 Issue 列表",
|
|
57043
57169
|
args: {
|
|
57044
|
-
repo: tool.schema.string().describe("代码仓库名称, 如 my-user/my-repo"),
|
|
57170
|
+
repo: tool.schema.string().optional().describe("代码仓库名称, 如 my-user/my-repo"),
|
|
57045
57171
|
state: tool.schema.string().optional().describe("Issue 状态:open 或 closed"),
|
|
57046
57172
|
keyword: tool.schema.string().optional().describe("问题搜索关键词"),
|
|
57047
57173
|
labels: tool.schema.string().optional().describe("问题标签,多个用逗号分隔"),
|
|
@@ -57054,7 +57180,7 @@ app.route({
|
|
|
57054
57180
|
}
|
|
57055
57181
|
}).define(async (ctx) => {
|
|
57056
57182
|
const cnb2 = await cnbManager.getContext(ctx);
|
|
57057
|
-
|
|
57183
|
+
let repo2 = ctx.query?.repo || useKey("CNB_REPO_SLUG_LOWERCASE");
|
|
57058
57184
|
const state = ctx.query?.state;
|
|
57059
57185
|
const keyword = ctx.query?.keyword;
|
|
57060
57186
|
const labels = ctx.query?.labels;
|
|
@@ -57157,6 +57283,157 @@ app.route({
|
|
|
57157
57283
|
ctx.forward(res);
|
|
57158
57284
|
}).addTo(app);
|
|
57159
57285
|
|
|
57286
|
+
// agent/routes/issues/comments.ts
|
|
57287
|
+
app.route({
|
|
57288
|
+
path: "cnb",
|
|
57289
|
+
key: "list-issue-comments",
|
|
57290
|
+
description: "查询 Issue 评论列表, 参数 repo, issueNumber, page, page_size",
|
|
57291
|
+
middleware: ["auth"],
|
|
57292
|
+
metadata: {
|
|
57293
|
+
tags: ["opencode"],
|
|
57294
|
+
...createSkill({
|
|
57295
|
+
skill: "list-issue-comments",
|
|
57296
|
+
title: "查询 Issue 评论列表",
|
|
57297
|
+
args: {
|
|
57298
|
+
repo: tool.schema.string().optional().describe("代码仓库名称, 如 my-user/my-repo"),
|
|
57299
|
+
issueNumber: tool.schema.number().describe("Issue 编号"),
|
|
57300
|
+
page: tool.schema.number().optional().describe("分页页码,默认: 1"),
|
|
57301
|
+
page_size: tool.schema.number().optional().describe("分页每页大小,默认: 30")
|
|
57302
|
+
},
|
|
57303
|
+
summary: "查询 Issue 评论列表"
|
|
57304
|
+
})
|
|
57305
|
+
}
|
|
57306
|
+
}).define(async (ctx) => {
|
|
57307
|
+
const cnb2 = await cnbManager.getContext(ctx);
|
|
57308
|
+
let repo2 = ctx.query?.repo || useKey("CNB_REPO_SLUG_LOWERCASE");
|
|
57309
|
+
const issueNumber = ctx.query?.issueNumber;
|
|
57310
|
+
const page = ctx.query?.page ? Number(ctx.query.page) : undefined;
|
|
57311
|
+
const page_size = ctx.query?.page_size ? Number(ctx.query.page_size) : undefined;
|
|
57312
|
+
if (!repo2) {
|
|
57313
|
+
ctx.throw(400, "缺少参数 repo");
|
|
57314
|
+
}
|
|
57315
|
+
if (!issueNumber) {
|
|
57316
|
+
ctx.throw(400, "缺少参数 issueNumber");
|
|
57317
|
+
}
|
|
57318
|
+
const params = {};
|
|
57319
|
+
if (page)
|
|
57320
|
+
params.page = page;
|
|
57321
|
+
if (page_size)
|
|
57322
|
+
params.page_size = page_size;
|
|
57323
|
+
const res = await cnb2.issue.getCommentList(repo2, issueNumber, params);
|
|
57324
|
+
ctx.forward(res);
|
|
57325
|
+
}).addTo(app);
|
|
57326
|
+
app.route({
|
|
57327
|
+
path: "cnb",
|
|
57328
|
+
key: "create-issue-comment",
|
|
57329
|
+
description: "创建 Issue 评论, 参数 repo, issueNumber, body",
|
|
57330
|
+
middleware: ["auth"],
|
|
57331
|
+
metadata: {
|
|
57332
|
+
tags: ["opencode"],
|
|
57333
|
+
...createSkill({
|
|
57334
|
+
skill: "create-issue-comment",
|
|
57335
|
+
title: "创建 Issue 评论",
|
|
57336
|
+
args: {
|
|
57337
|
+
repo: tool.schema.string().optional().describe("代码仓库名称, 如 my-user/my-repo"),
|
|
57338
|
+
issueNumber: tool.schema.number().describe("Issue 编号"),
|
|
57339
|
+
body: tool.schema.string().describe("评论内容")
|
|
57340
|
+
},
|
|
57341
|
+
summary: "创建 Issue 评论"
|
|
57342
|
+
})
|
|
57343
|
+
}
|
|
57344
|
+
}).define(async (ctx) => {
|
|
57345
|
+
const cnb2 = await cnbManager.getContext(ctx);
|
|
57346
|
+
let repo2 = ctx.query?.repo || useKey("CNB_REPO_SLUG_LOWERCASE");
|
|
57347
|
+
const issueNumber = ctx.query?.issueNumber;
|
|
57348
|
+
const body = ctx.query?.body;
|
|
57349
|
+
if (!repo2) {
|
|
57350
|
+
ctx.throw(400, "缺少参数 repo");
|
|
57351
|
+
}
|
|
57352
|
+
if (!issueNumber) {
|
|
57353
|
+
ctx.throw(400, "缺少参数 issueNumber");
|
|
57354
|
+
}
|
|
57355
|
+
if (!body) {
|
|
57356
|
+
ctx.throw(400, "缺少参数 body");
|
|
57357
|
+
}
|
|
57358
|
+
const res = await cnb2.issue.createComment(repo2, issueNumber, body);
|
|
57359
|
+
ctx.forward(res);
|
|
57360
|
+
}).addTo(app);
|
|
57361
|
+
app.route({
|
|
57362
|
+
path: "cnb",
|
|
57363
|
+
key: "get-issue-comment",
|
|
57364
|
+
description: "获取 Issue 指定评论, 参数 repo, issueNumber, commentId",
|
|
57365
|
+
middleware: ["auth"],
|
|
57366
|
+
metadata: {
|
|
57367
|
+
tags: ["opencode"],
|
|
57368
|
+
...createSkill({
|
|
57369
|
+
skill: "get-issue-comment",
|
|
57370
|
+
title: "获取 Issue 评论",
|
|
57371
|
+
args: {
|
|
57372
|
+
repo: tool.schema.string().optional().describe("代码仓库名称, 如 my-user/my-repo"),
|
|
57373
|
+
issueNumber: tool.schema.number().describe("Issue 编号"),
|
|
57374
|
+
commentId: tool.schema.number().describe("评论 ID")
|
|
57375
|
+
},
|
|
57376
|
+
summary: "获取 Issue 评论"
|
|
57377
|
+
})
|
|
57378
|
+
}
|
|
57379
|
+
}).define(async (ctx) => {
|
|
57380
|
+
const cnb2 = await cnbManager.getContext(ctx);
|
|
57381
|
+
let repo2 = ctx.query?.repo || useKey("CNB_REPO_SLUG_LOWERCASE");
|
|
57382
|
+
const issueNumber = ctx.query?.issueNumber;
|
|
57383
|
+
const commentId = ctx.query?.commentId;
|
|
57384
|
+
if (!repo2) {
|
|
57385
|
+
ctx.throw(400, "缺少参数 repo");
|
|
57386
|
+
}
|
|
57387
|
+
if (!issueNumber) {
|
|
57388
|
+
ctx.throw(400, "缺少参数 issueNumber");
|
|
57389
|
+
}
|
|
57390
|
+
if (!commentId) {
|
|
57391
|
+
ctx.throw(400, "缺少参数 commentId");
|
|
57392
|
+
}
|
|
57393
|
+
const res = await cnb2.issue.getComment(repo2, issueNumber, commentId);
|
|
57394
|
+
ctx.forward(res);
|
|
57395
|
+
}).addTo(app);
|
|
57396
|
+
app.route({
|
|
57397
|
+
path: "cnb",
|
|
57398
|
+
key: "update-issue-comment",
|
|
57399
|
+
description: "修改 Issue 评论, 参数 repo, issueNumber, commentId, body",
|
|
57400
|
+
middleware: ["auth"],
|
|
57401
|
+
metadata: {
|
|
57402
|
+
tags: ["opencode"],
|
|
57403
|
+
...createSkill({
|
|
57404
|
+
skill: "update-issue-comment",
|
|
57405
|
+
title: "修改 Issue 评论",
|
|
57406
|
+
args: {
|
|
57407
|
+
repo: tool.schema.string().optional().describe("代码仓库名称, 如 my-user/my-repo"),
|
|
57408
|
+
issueNumber: tool.schema.number().describe("Issue 编号"),
|
|
57409
|
+
commentId: tool.schema.number().describe("评论 ID"),
|
|
57410
|
+
body: tool.schema.string().describe("评论内容")
|
|
57411
|
+
},
|
|
57412
|
+
summary: "修改 Issue 评论"
|
|
57413
|
+
})
|
|
57414
|
+
}
|
|
57415
|
+
}).define(async (ctx) => {
|
|
57416
|
+
const cnb2 = await cnbManager.getContext(ctx);
|
|
57417
|
+
let repo2 = ctx.query?.repo || useKey("CNB_REPO_SLUG_LOWERCASE");
|
|
57418
|
+
const issueNumber = ctx.query?.issueNumber;
|
|
57419
|
+
const commentId = ctx.query?.commentId;
|
|
57420
|
+
const body = ctx.query?.body;
|
|
57421
|
+
if (!repo2) {
|
|
57422
|
+
ctx.throw(400, "缺少参数 repo");
|
|
57423
|
+
}
|
|
57424
|
+
if (!issueNumber) {
|
|
57425
|
+
ctx.throw(400, "缺少参数 issueNumber");
|
|
57426
|
+
}
|
|
57427
|
+
if (!commentId) {
|
|
57428
|
+
ctx.throw(400, "缺少参数 commentId");
|
|
57429
|
+
}
|
|
57430
|
+
if (!body) {
|
|
57431
|
+
ctx.throw(400, "缺少参数 body");
|
|
57432
|
+
}
|
|
57433
|
+
const res = await cnb2.issue.updateComment(repo2, issueNumber, commentId, body);
|
|
57434
|
+
ctx.forward(res);
|
|
57435
|
+
}).addTo(app);
|
|
57436
|
+
|
|
57160
57437
|
// agent/routes/cnb-board/live/live-content.ts
|
|
57161
57438
|
var import_dayjs = __toESM(require_dayjs_min(), 1);
|
|
57162
57439
|
import os2 from "node:os";
|
|
@@ -57980,6 +58257,67 @@ app.route({
|
|
|
57980
58257
|
};
|
|
57981
58258
|
}).addTo(app);
|
|
57982
58259
|
|
|
58260
|
+
// agent/routes/build/docker.ts
|
|
58261
|
+
import { execSync as execSync3 } from "child_process";
|
|
58262
|
+
app.route({
|
|
58263
|
+
path: "cnb",
|
|
58264
|
+
key: "docker-sync",
|
|
58265
|
+
middleware: ["auth"],
|
|
58266
|
+
metadata: {
|
|
58267
|
+
tag: ["opencode"],
|
|
58268
|
+
skill: "cnb-docker-sync",
|
|
58269
|
+
title: "CNB Docker 镜像同步",
|
|
58270
|
+
args: {
|
|
58271
|
+
image: exports_external2.string().describe("Docker 同步的具体的镜像名称."),
|
|
58272
|
+
toVersion: exports_external2.string().optional().describe("修改后的版本号.")
|
|
58273
|
+
}
|
|
58274
|
+
}
|
|
58275
|
+
}).define(async (ctx) => {
|
|
58276
|
+
const { image, toVersion } = ctx.args;
|
|
58277
|
+
notCNBCheck(ctx);
|
|
58278
|
+
if (!image) {
|
|
58279
|
+
ctx.body = {
|
|
58280
|
+
message: "请提供 Docker 镜像名称.",
|
|
58281
|
+
data: null
|
|
58282
|
+
};
|
|
58283
|
+
return;
|
|
58284
|
+
}
|
|
58285
|
+
const config3 = {
|
|
58286
|
+
registry: "docker.cnb.cool/kevisual/dev-env",
|
|
58287
|
+
dockers: [{ image, toVersion }]
|
|
58288
|
+
};
|
|
58289
|
+
const run = async () => {
|
|
58290
|
+
const dockers = config3.dockers;
|
|
58291
|
+
for (const { image: image2, toVersion: toVersion2 } of dockers) {
|
|
58292
|
+
const imageName = image2.split(":")[0].split("/").slice(-1)[0];
|
|
58293
|
+
const tag = image2.split(":")[1];
|
|
58294
|
+
const newImage = `${config3.registry}/${imageName}:${toVersion2 || tag}`;
|
|
58295
|
+
const shell = `docker pull ${image2} && docker tag ${image2} ${newImage} && docker push ${newImage}`;
|
|
58296
|
+
console.log(shell);
|
|
58297
|
+
console.log(`
|
|
58298
|
+
-------------new---------------------------------
|
|
58299
|
+
`);
|
|
58300
|
+
console.log(`${newImage}`);
|
|
58301
|
+
console.log(`
|
|
58302
|
+
--------------------------------------------------
|
|
58303
|
+
`);
|
|
58304
|
+
try {
|
|
58305
|
+
execSync3(shell, { stdio: "inherit" });
|
|
58306
|
+
} catch (error49) {
|
|
58307
|
+
console.error(`Error: ${error49}`);
|
|
58308
|
+
}
|
|
58309
|
+
}
|
|
58310
|
+
};
|
|
58311
|
+
run().then(() => {});
|
|
58312
|
+
ctx.body = {
|
|
58313
|
+
message: "Docker 镜像同步任务中,请稍后在目标仓库查看.",
|
|
58314
|
+
data: {
|
|
58315
|
+
registry: config3.registry,
|
|
58316
|
+
dockers: config3.dockers
|
|
58317
|
+
}
|
|
58318
|
+
};
|
|
58319
|
+
}).addTo(app);
|
|
58320
|
+
|
|
57983
58321
|
// agent/routes/index.ts
|
|
57984
58322
|
var checkAppId = (ctx, appId) => {
|
|
57985
58323
|
const _appId = ctx?.app?.appId;
|
|
@@ -58015,7 +58353,7 @@ app.route({
|
|
|
58015
58353
|
}
|
|
58016
58354
|
}).addTo(app, { overwrite: false });
|
|
58017
58355
|
|
|
58018
|
-
// node_modules
|
|
58356
|
+
// node_modules/commander/esm.mjs
|
|
58019
58357
|
var import__2 = __toESM(require_commander(), 1);
|
|
58020
58358
|
var {
|
|
58021
58359
|
program,
|
|
@@ -58031,7 +58369,7 @@ var {
|
|
|
58031
58369
|
Help
|
|
58032
58370
|
} = import__2.default;
|
|
58033
58371
|
|
|
58034
|
-
// node_modules
|
|
58372
|
+
// node_modules/@kevisual/router/src/commander.ts
|
|
58035
58373
|
var groupByPath = (routes) => {
|
|
58036
58374
|
return routes.reduce((acc, route) => {
|
|
58037
58375
|
const path3 = route.path || "default";
|