@kevisual/cnb 0.0.25 → 0.0.27
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/keep.d.ts +2 -0
- package/dist/keep.js +2947 -32
- package/dist/opencode.js +271 -155
- package/dist/routes.d.ts +19 -0
- package/dist/routes.js +270 -154
- package/package.json +3 -3
- package/src/cnb-core.ts +1 -1
- package/src/issue/index.ts +59 -0
- package/src/issue/issue-alive/issue-alive.md +24 -0
- package/src/issue/issue-alive/issues-alive.html +2 -0
- package/src/issue/issue-alive.ts +15 -0
- package/src/workspace/keep-live.ts +91 -31
package/dist/routes.js
CHANGED
|
@@ -25,9 +25,10 @@ var __export = (target, all) => {
|
|
|
25
25
|
set: (newValue) => all[name] = () => newValue
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
28
29
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
29
30
|
|
|
30
|
-
// node_modules
|
|
31
|
+
// node_modules/dayjs/dayjs.min.js
|
|
31
32
|
var require_dayjs_min = __commonJS((exports, module) => {
|
|
32
33
|
(function(t, e) {
|
|
33
34
|
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 +319,7 @@ var require_dayjs_min = __commonJS((exports, module) => {
|
|
|
318
319
|
});
|
|
319
320
|
});
|
|
320
321
|
|
|
321
|
-
// node_modules
|
|
322
|
+
// node_modules/ws/lib/constants.js
|
|
322
323
|
var require_constants = __commonJS((exports, module) => {
|
|
323
324
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
324
325
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -338,7 +339,7 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
338
339
|
};
|
|
339
340
|
});
|
|
340
341
|
|
|
341
|
-
// node_modules
|
|
342
|
+
// node_modules/ws/lib/buffer-util.js
|
|
342
343
|
var require_buffer_util = __commonJS((exports, module) => {
|
|
343
344
|
var { EMPTY_BUFFER } = require_constants();
|
|
344
345
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -399,7 +400,7 @@ var require_buffer_util = __commonJS((exports, module) => {
|
|
|
399
400
|
};
|
|
400
401
|
});
|
|
401
402
|
|
|
402
|
-
// node_modules
|
|
403
|
+
// node_modules/ws/lib/limiter.js
|
|
403
404
|
var require_limiter = __commonJS((exports, module) => {
|
|
404
405
|
var kDone = Symbol("kDone");
|
|
405
406
|
var kRun = Symbol("kRun");
|
|
@@ -431,7 +432,7 @@ var require_limiter = __commonJS((exports, module) => {
|
|
|
431
432
|
module.exports = Limiter;
|
|
432
433
|
});
|
|
433
434
|
|
|
434
|
-
// node_modules
|
|
435
|
+
// node_modules/ws/lib/permessage-deflate.js
|
|
435
436
|
var require_permessage_deflate = __commonJS((exports, module) => {
|
|
436
437
|
var zlib = __require("zlib");
|
|
437
438
|
var bufferUtil2 = require_buffer_util();
|
|
@@ -695,7 +696,7 @@ var require_permessage_deflate = __commonJS((exports, module) => {
|
|
|
695
696
|
}
|
|
696
697
|
});
|
|
697
698
|
|
|
698
|
-
// node_modules
|
|
699
|
+
// node_modules/ws/lib/validation.js
|
|
699
700
|
var require_validation = __commonJS((exports, module) => {
|
|
700
701
|
var { isUtf8 } = __require("buffer");
|
|
701
702
|
var { hasBlob } = require_constants();
|
|
@@ -875,7 +876,7 @@ var require_validation = __commonJS((exports, module) => {
|
|
|
875
876
|
}
|
|
876
877
|
});
|
|
877
878
|
|
|
878
|
-
// node_modules
|
|
879
|
+
// node_modules/ws/lib/receiver.js
|
|
879
880
|
var require_receiver = __commonJS((exports, module) => {
|
|
880
881
|
var { Writable } = __require("stream");
|
|
881
882
|
var PerMessageDeflate = require_permessage_deflate();
|
|
@@ -1256,7 +1257,7 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1256
1257
|
module.exports = Receiver;
|
|
1257
1258
|
});
|
|
1258
1259
|
|
|
1259
|
-
// node_modules
|
|
1260
|
+
// node_modules/ws/lib/sender.js
|
|
1260
1261
|
var require_sender = __commonJS((exports, module) => {
|
|
1261
1262
|
var { Duplex } = __require("stream");
|
|
1262
1263
|
var { randomFillSync } = __require("crypto");
|
|
@@ -1610,7 +1611,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
1610
1611
|
}
|
|
1611
1612
|
});
|
|
1612
1613
|
|
|
1613
|
-
// node_modules
|
|
1614
|
+
// node_modules/ws/lib/event-target.js
|
|
1614
1615
|
var require_event_target = __commonJS((exports, module) => {
|
|
1615
1616
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
1616
1617
|
var kCode = Symbol("kCode");
|
|
@@ -1761,7 +1762,7 @@ var require_event_target = __commonJS((exports, module) => {
|
|
|
1761
1762
|
}
|
|
1762
1763
|
});
|
|
1763
1764
|
|
|
1764
|
-
// node_modules
|
|
1765
|
+
// node_modules/ws/lib/extension.js
|
|
1765
1766
|
var require_extension = __commonJS((exports, module) => {
|
|
1766
1767
|
var { tokenChars } = require_validation();
|
|
1767
1768
|
function push(dest, name, elem) {
|
|
@@ -1926,7 +1927,7 @@ var require_extension = __commonJS((exports, module) => {
|
|
|
1926
1927
|
module.exports = { format, parse: parse6 };
|
|
1927
1928
|
});
|
|
1928
1929
|
|
|
1929
|
-
// node_modules
|
|
1930
|
+
// node_modules/ws/lib/websocket.js
|
|
1930
1931
|
var require_websocket = __commonJS((exports, module) => {
|
|
1931
1932
|
var EventEmitter4 = __require("events");
|
|
1932
1933
|
var https = __require("https");
|
|
@@ -2437,9 +2438,9 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
2437
2438
|
emitErrorAndClose(websocket2, err);
|
|
2438
2439
|
});
|
|
2439
2440
|
req.on("response", (res) => {
|
|
2440
|
-
const
|
|
2441
|
+
const location = res.headers.location;
|
|
2441
2442
|
const statusCode = res.statusCode;
|
|
2442
|
-
if (
|
|
2443
|
+
if (location && opts.followRedirects && statusCode >= 300 && statusCode < 400) {
|
|
2443
2444
|
if (++websocket2._redirects > opts.maxRedirects) {
|
|
2444
2445
|
abortHandshake(websocket2, req, "Maximum redirects exceeded");
|
|
2445
2446
|
return;
|
|
@@ -2447,9 +2448,9 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
2447
2448
|
req.abort();
|
|
2448
2449
|
let addr;
|
|
2449
2450
|
try {
|
|
2450
|
-
addr = new URL2(
|
|
2451
|
+
addr = new URL2(location, address);
|
|
2451
2452
|
} catch (e) {
|
|
2452
|
-
const err = new SyntaxError(`Invalid URL: ${
|
|
2453
|
+
const err = new SyntaxError(`Invalid URL: ${location}`);
|
|
2453
2454
|
emitErrorAndClose(websocket2, err);
|
|
2454
2455
|
return;
|
|
2455
2456
|
}
|
|
@@ -2688,7 +2689,7 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
2688
2689
|
}
|
|
2689
2690
|
});
|
|
2690
2691
|
|
|
2691
|
-
// node_modules
|
|
2692
|
+
// node_modules/ws/lib/stream.js
|
|
2692
2693
|
var require_stream = __commonJS((exports, module) => {
|
|
2693
2694
|
var WebSocket = require_websocket();
|
|
2694
2695
|
var { Duplex } = __require("stream");
|
|
@@ -2791,7 +2792,7 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
2791
2792
|
module.exports = createWebSocketStream;
|
|
2792
2793
|
});
|
|
2793
2794
|
|
|
2794
|
-
// node_modules
|
|
2795
|
+
// node_modules/ws/lib/subprotocol.js
|
|
2795
2796
|
var require_subprotocol = __commonJS((exports, module) => {
|
|
2796
2797
|
var { tokenChars } = require_validation();
|
|
2797
2798
|
function parse6(header) {
|
|
@@ -2836,7 +2837,7 @@ var require_subprotocol = __commonJS((exports, module) => {
|
|
|
2836
2837
|
module.exports = { parse: parse6 };
|
|
2837
2838
|
});
|
|
2838
2839
|
|
|
2839
|
-
// node_modules
|
|
2840
|
+
// node_modules/ws/lib/websocket-server.js
|
|
2840
2841
|
var require_websocket_server = __commonJS((exports, module) => {
|
|
2841
2842
|
var EventEmitter4 = __require("events");
|
|
2842
2843
|
var http = __require("http");
|
|
@@ -3138,7 +3139,27 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
3138
3139
|
}
|
|
3139
3140
|
});
|
|
3140
3141
|
|
|
3141
|
-
// node_modules
|
|
3142
|
+
// node_modules/ws/wrapper.mjs
|
|
3143
|
+
var exports_wrapper = {};
|
|
3144
|
+
__export(exports_wrapper, {
|
|
3145
|
+
default: () => wrapper_default,
|
|
3146
|
+
createWebSocketStream: () => import_stream.default,
|
|
3147
|
+
WebSocketServer: () => import_websocket_server.default,
|
|
3148
|
+
WebSocket: () => import_websocket.default,
|
|
3149
|
+
Sender: () => import_sender.default,
|
|
3150
|
+
Receiver: () => import_receiver.default
|
|
3151
|
+
});
|
|
3152
|
+
var import_stream, import_receiver, import_sender, import_websocket, import_websocket_server, wrapper_default;
|
|
3153
|
+
var init_wrapper = __esm(() => {
|
|
3154
|
+
import_stream = __toESM(require_stream(), 1);
|
|
3155
|
+
import_receiver = __toESM(require_receiver(), 1);
|
|
3156
|
+
import_sender = __toESM(require_sender(), 1);
|
|
3157
|
+
import_websocket = __toESM(require_websocket(), 1);
|
|
3158
|
+
import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
3159
|
+
wrapper_default = import_websocket.default;
|
|
3160
|
+
});
|
|
3161
|
+
|
|
3162
|
+
// node_modules/@kevisual/router/dist/router.js
|
|
3142
3163
|
import require$$1, { webcrypto } from "node:crypto";
|
|
3143
3164
|
import require$$2 from "node:http";
|
|
3144
3165
|
import require$$1$1 from "node:https";
|
|
@@ -20177,9 +20198,9 @@ function requireWebsocket() {
|
|
|
20177
20198
|
emitErrorAndClose(websocket2, err);
|
|
20178
20199
|
});
|
|
20179
20200
|
req.on("response", (res) => {
|
|
20180
|
-
const
|
|
20201
|
+
const location = res.headers.location;
|
|
20181
20202
|
const statusCode = res.statusCode;
|
|
20182
|
-
if (
|
|
20203
|
+
if (location && opts.followRedirects && statusCode >= 300 && statusCode < 400) {
|
|
20183
20204
|
if (++websocket2._redirects > opts.maxRedirects) {
|
|
20184
20205
|
abortHandshake(websocket2, req, "Maximum redirects exceeded");
|
|
20185
20206
|
return;
|
|
@@ -20187,9 +20208,9 @@ function requireWebsocket() {
|
|
|
20187
20208
|
req.abort();
|
|
20188
20209
|
let addr;
|
|
20189
20210
|
try {
|
|
20190
|
-
addr = new URL2(
|
|
20211
|
+
addr = new URL2(location, address);
|
|
20191
20212
|
} catch (e) {
|
|
20192
|
-
const err = new SyntaxError(`Invalid URL: ${
|
|
20213
|
+
const err = new SyntaxError(`Invalid URL: ${location}`);
|
|
20193
20214
|
emitErrorAndClose(websocket2, err);
|
|
20194
20215
|
return;
|
|
20195
20216
|
}
|
|
@@ -20893,8 +20914,7 @@ function requireWebsocketServer() {
|
|
|
20893
20914
|
}
|
|
20894
20915
|
var websocketServerExports = requireWebsocketServer();
|
|
20895
20916
|
|
|
20896
|
-
// node_modules
|
|
20897
|
-
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
20917
|
+
// node_modules/@kevisual/context/dist/app.js
|
|
20898
20918
|
function getDefaultExportFromCjs2(x) {
|
|
20899
20919
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
20900
20920
|
}
|
|
@@ -21427,6 +21447,7 @@ var useConfigKey = (key, init, isNew) => {
|
|
|
21427
21447
|
}
|
|
21428
21448
|
return useEnvKey(key, init, "config");
|
|
21429
21449
|
};
|
|
21450
|
+
|
|
21430
21451
|
class InitEnv {
|
|
21431
21452
|
static isInit = false;
|
|
21432
21453
|
static init(opts) {
|
|
@@ -21444,7 +21465,7 @@ class InitEnv {
|
|
|
21444
21465
|
}
|
|
21445
21466
|
InitEnv.init();
|
|
21446
21467
|
|
|
21447
|
-
// node_modules
|
|
21468
|
+
// node_modules/@kevisual/use-config/dist/app.js
|
|
21448
21469
|
import { createRequire as createRequire2 } from "node:module";
|
|
21449
21470
|
import fs from "node:fs";
|
|
21450
21471
|
import path from "node:path";
|
|
@@ -21957,7 +21978,7 @@ var useKey = (key, opts) => {
|
|
|
21957
21978
|
}
|
|
21958
21979
|
return v;
|
|
21959
21980
|
};
|
|
21960
|
-
var
|
|
21981
|
+
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
21961
21982
|
function getDefaultExportFromCjs3(x) {
|
|
21962
21983
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
21963
21984
|
}
|
|
@@ -22567,6 +22588,7 @@ class CNBCore {
|
|
|
22567
22588
|
}
|
|
22568
22589
|
delete _headers.Authorization;
|
|
22569
22590
|
}
|
|
22591
|
+
console.log("Request URL:", url2, data, _headers);
|
|
22570
22592
|
const response = await fetch(url2 || "", {
|
|
22571
22593
|
method,
|
|
22572
22594
|
headers: _headers,
|
|
@@ -22875,6 +22897,22 @@ class Build extends CNBCore {
|
|
|
22875
22897
|
}
|
|
22876
22898
|
}
|
|
22877
22899
|
|
|
22900
|
+
// src/issue/issue-alive.ts
|
|
22901
|
+
function extractAliveInfo(html) {
|
|
22902
|
+
const match = html.match(/<script[^>]*id="__NEXT_DATA__"[^>]*>([\s\S]*?)<\/script>/);
|
|
22903
|
+
if (!match || !match[1]) {
|
|
22904
|
+
return { aliveSessionID: null, aliveChannelID: null };
|
|
22905
|
+
}
|
|
22906
|
+
try {
|
|
22907
|
+
const data = JSON.parse(match[1]);
|
|
22908
|
+
const aliveSessionID = data?.props?.pageProps?.aliveSessionID ?? null;
|
|
22909
|
+
const aliveChannelID = data?.props?.pageProps?.aliveChannelID ?? null;
|
|
22910
|
+
return { aliveSessionID, aliveChannelID };
|
|
22911
|
+
} catch {
|
|
22912
|
+
return { aliveSessionID: null, aliveChannelID: null };
|
|
22913
|
+
}
|
|
22914
|
+
}
|
|
22915
|
+
|
|
22878
22916
|
// src/issue/index.ts
|
|
22879
22917
|
class Issue extends CNBCore {
|
|
22880
22918
|
constructor(options) {
|
|
@@ -22926,6 +22964,45 @@ class Issue extends CNBCore {
|
|
|
22926
22964
|
};
|
|
22927
22965
|
return this.post({ url: url2, data: postData });
|
|
22928
22966
|
}
|
|
22967
|
+
async getAliveMetadata(repo, issueNumber) {
|
|
22968
|
+
const url2 = this.hackURL + `/${repo}/-/issues/${issueNumber}`;
|
|
22969
|
+
const resHtml = await this.get({
|
|
22970
|
+
url: url2,
|
|
22971
|
+
useCookie: true,
|
|
22972
|
+
headers: {
|
|
22973
|
+
"Content-Type": "text/html; charset=utf-8",
|
|
22974
|
+
Accept: "text/html; charset=utf-8"
|
|
22975
|
+
}
|
|
22976
|
+
});
|
|
22977
|
+
if (resHtml.code !== 200) {
|
|
22978
|
+
return resHtml;
|
|
22979
|
+
}
|
|
22980
|
+
const html = resHtml.data;
|
|
22981
|
+
const { aliveSessionID, aliveChannelID } = extractAliveInfo(html);
|
|
22982
|
+
if (!aliveSessionID || !aliveChannelID) {
|
|
22983
|
+
return {
|
|
22984
|
+
code: 500,
|
|
22985
|
+
message: "Failed to extract alive metadata",
|
|
22986
|
+
data: null
|
|
22987
|
+
};
|
|
22988
|
+
}
|
|
22989
|
+
const off = Date.now();
|
|
22990
|
+
return {
|
|
22991
|
+
code: 200,
|
|
22992
|
+
message: "success",
|
|
22993
|
+
data: {
|
|
22994
|
+
aliveSessionID,
|
|
22995
|
+
aliveChannelID,
|
|
22996
|
+
domain: "alive.cnb.cool",
|
|
22997
|
+
subscriptions: [
|
|
22998
|
+
{ event: "subscribe", data: { id: `${aliveChannelID}--issue:info-update`, off } },
|
|
22999
|
+
{ event: "subscribe", data: { id: `${aliveChannelID}--issue:add-comment`, off } },
|
|
23000
|
+
{ event: "subscribe", data: { id: `${aliveChannelID}--issue:comment-update`, off } },
|
|
23001
|
+
{ event: "subscribe", data: { id: `${aliveChannelID}--issue:invisible`, off } }
|
|
23002
|
+
]
|
|
23003
|
+
}
|
|
23004
|
+
};
|
|
23005
|
+
}
|
|
22929
23006
|
}
|
|
22930
23007
|
|
|
22931
23008
|
// src/mission/index.ts
|
|
@@ -23068,7 +23145,7 @@ var cnb = useContextKey("cnb", () => {
|
|
|
23068
23145
|
var app = useContextKey("app", () => {
|
|
23069
23146
|
return new QueryRouterServer({});
|
|
23070
23147
|
});
|
|
23071
|
-
// node_modules
|
|
23148
|
+
// node_modules/zod/v4/classic/external.js
|
|
23072
23149
|
var exports_external = {};
|
|
23073
23150
|
__export(exports_external, {
|
|
23074
23151
|
xor: () => xor2,
|
|
@@ -23309,7 +23386,7 @@ __export(exports_external, {
|
|
|
23309
23386
|
$brand: () => $brand2
|
|
23310
23387
|
});
|
|
23311
23388
|
|
|
23312
|
-
// node_modules
|
|
23389
|
+
// node_modules/zod/v4/core/index.js
|
|
23313
23390
|
var exports_core2 = {};
|
|
23314
23391
|
__export(exports_core2, {
|
|
23315
23392
|
version: () => version2,
|
|
@@ -23587,7 +23664,7 @@ __export(exports_core2, {
|
|
|
23587
23664
|
$ZodAny: () => $ZodAny2
|
|
23588
23665
|
});
|
|
23589
23666
|
|
|
23590
|
-
// node_modules
|
|
23667
|
+
// node_modules/zod/v4/core/core.js
|
|
23591
23668
|
var NEVER2 = Object.freeze({
|
|
23592
23669
|
status: "aborted"
|
|
23593
23670
|
});
|
|
@@ -23663,7 +23740,7 @@ function config3(newConfig) {
|
|
|
23663
23740
|
Object.assign(globalConfig2, newConfig);
|
|
23664
23741
|
return globalConfig2;
|
|
23665
23742
|
}
|
|
23666
|
-
// node_modules
|
|
23743
|
+
// node_modules/zod/v4/core/util.js
|
|
23667
23744
|
var exports_util = {};
|
|
23668
23745
|
__export(exports_util, {
|
|
23669
23746
|
unwrapMessage: () => unwrapMessage2,
|
|
@@ -24337,7 +24414,7 @@ class Class2 {
|
|
|
24337
24414
|
constructor(..._args) {}
|
|
24338
24415
|
}
|
|
24339
24416
|
|
|
24340
|
-
// node_modules
|
|
24417
|
+
// node_modules/zod/v4/core/errors.js
|
|
24341
24418
|
var initializer2 = (inst, def) => {
|
|
24342
24419
|
inst.name = "$ZodError";
|
|
24343
24420
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -24474,7 +24551,7 @@ function prettifyError2(error2) {
|
|
|
24474
24551
|
`);
|
|
24475
24552
|
}
|
|
24476
24553
|
|
|
24477
|
-
// node_modules
|
|
24554
|
+
// node_modules/zod/v4/core/parse.js
|
|
24478
24555
|
var _parse2 = (_Err) => (schema, value, _ctx, _params) => {
|
|
24479
24556
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
24480
24557
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -24561,7 +24638,7 @@ var _safeDecodeAsync2 = (_Err) => async (schema, value, _ctx) => {
|
|
|
24561
24638
|
return _safeParseAsync2(_Err)(schema, value, _ctx);
|
|
24562
24639
|
};
|
|
24563
24640
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync2($ZodRealError2);
|
|
24564
|
-
// node_modules
|
|
24641
|
+
// node_modules/zod/v4/core/regexes.js
|
|
24565
24642
|
var exports_regexes = {};
|
|
24566
24643
|
__export(exports_regexes, {
|
|
24567
24644
|
xid: () => xid2,
|
|
@@ -24718,7 +24795,7 @@ var sha512_hex2 = /^[0-9a-fA-F]{128}$/;
|
|
|
24718
24795
|
var sha512_base642 = /* @__PURE__ */ fixedBase642(86, "==");
|
|
24719
24796
|
var sha512_base64url2 = /* @__PURE__ */ fixedBase64url2(86);
|
|
24720
24797
|
|
|
24721
|
-
// node_modules
|
|
24798
|
+
// node_modules/zod/v4/core/checks.js
|
|
24722
24799
|
var $ZodCheck2 = /* @__PURE__ */ $constructor2("$ZodCheck", (inst, def) => {
|
|
24723
24800
|
var _a2;
|
|
24724
24801
|
inst._zod ?? (inst._zod = {});
|
|
@@ -25265,7 +25342,7 @@ var $ZodCheckOverwrite2 = /* @__PURE__ */ $constructor2("$ZodCheckOverwrite", (i
|
|
|
25265
25342
|
};
|
|
25266
25343
|
});
|
|
25267
25344
|
|
|
25268
|
-
// node_modules
|
|
25345
|
+
// node_modules/zod/v4/core/doc.js
|
|
25269
25346
|
class Doc2 {
|
|
25270
25347
|
constructor(args = []) {
|
|
25271
25348
|
this.content = [];
|
|
@@ -25303,14 +25380,14 @@ class Doc2 {
|
|
|
25303
25380
|
}
|
|
25304
25381
|
}
|
|
25305
25382
|
|
|
25306
|
-
// node_modules
|
|
25383
|
+
// node_modules/zod/v4/core/versions.js
|
|
25307
25384
|
var version2 = {
|
|
25308
25385
|
major: 4,
|
|
25309
25386
|
minor: 3,
|
|
25310
25387
|
patch: 6
|
|
25311
25388
|
};
|
|
25312
25389
|
|
|
25313
|
-
// node_modules
|
|
25390
|
+
// node_modules/zod/v4/core/schemas.js
|
|
25314
25391
|
var $ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => {
|
|
25315
25392
|
var _a2;
|
|
25316
25393
|
inst ?? (inst = {});
|
|
@@ -27272,7 +27349,7 @@ function handleRefineResult2(result, payload, input, inst) {
|
|
|
27272
27349
|
payload.issues.push(issue3(_iss));
|
|
27273
27350
|
}
|
|
27274
27351
|
}
|
|
27275
|
-
// node_modules
|
|
27352
|
+
// node_modules/zod/v4/locales/index.js
|
|
27276
27353
|
var exports_locales = {};
|
|
27277
27354
|
__export(exports_locales, {
|
|
27278
27355
|
zhTW: () => zh_TW_default,
|
|
@@ -27326,7 +27403,7 @@ __export(exports_locales, {
|
|
|
27326
27403
|
ar: () => ar_default
|
|
27327
27404
|
});
|
|
27328
27405
|
|
|
27329
|
-
// node_modules
|
|
27406
|
+
// node_modules/zod/v4/locales/ar.js
|
|
27330
27407
|
var error2 = () => {
|
|
27331
27408
|
const Sizable = {
|
|
27332
27409
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
@@ -27432,7 +27509,7 @@ function ar_default() {
|
|
|
27432
27509
|
localeError: error2()
|
|
27433
27510
|
};
|
|
27434
27511
|
}
|
|
27435
|
-
// node_modules
|
|
27512
|
+
// node_modules/zod/v4/locales/az.js
|
|
27436
27513
|
var error3 = () => {
|
|
27437
27514
|
const Sizable = {
|
|
27438
27515
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
@@ -27537,7 +27614,7 @@ function az_default() {
|
|
|
27537
27614
|
localeError: error3()
|
|
27538
27615
|
};
|
|
27539
27616
|
}
|
|
27540
|
-
// node_modules
|
|
27617
|
+
// node_modules/zod/v4/locales/be.js
|
|
27541
27618
|
function getBelarusianPlural2(count, one, few, many) {
|
|
27542
27619
|
const absCount = Math.abs(count);
|
|
27543
27620
|
const lastDigit = absCount % 10;
|
|
@@ -27693,7 +27770,7 @@ function be_default() {
|
|
|
27693
27770
|
localeError: error4()
|
|
27694
27771
|
};
|
|
27695
27772
|
}
|
|
27696
|
-
// node_modules
|
|
27773
|
+
// node_modules/zod/v4/locales/bg.js
|
|
27697
27774
|
var error5 = () => {
|
|
27698
27775
|
const Sizable = {
|
|
27699
27776
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -27813,7 +27890,7 @@ function bg_default() {
|
|
|
27813
27890
|
localeError: error5()
|
|
27814
27891
|
};
|
|
27815
27892
|
}
|
|
27816
|
-
// node_modules
|
|
27893
|
+
// node_modules/zod/v4/locales/ca.js
|
|
27817
27894
|
var error6 = () => {
|
|
27818
27895
|
const Sizable = {
|
|
27819
27896
|
string: { unit: "caràcters", verb: "contenir" },
|
|
@@ -27920,7 +27997,7 @@ function ca_default() {
|
|
|
27920
27997
|
localeError: error6()
|
|
27921
27998
|
};
|
|
27922
27999
|
}
|
|
27923
|
-
// node_modules
|
|
28000
|
+
// node_modules/zod/v4/locales/cs.js
|
|
27924
28001
|
var error7 = () => {
|
|
27925
28002
|
const Sizable = {
|
|
27926
28003
|
string: { unit: "znaků", verb: "mít" },
|
|
@@ -28031,7 +28108,7 @@ function cs_default() {
|
|
|
28031
28108
|
localeError: error7()
|
|
28032
28109
|
};
|
|
28033
28110
|
}
|
|
28034
|
-
// node_modules
|
|
28111
|
+
// node_modules/zod/v4/locales/da.js
|
|
28035
28112
|
var error8 = () => {
|
|
28036
28113
|
const Sizable = {
|
|
28037
28114
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -28146,7 +28223,7 @@ function da_default() {
|
|
|
28146
28223
|
localeError: error8()
|
|
28147
28224
|
};
|
|
28148
28225
|
}
|
|
28149
|
-
// node_modules
|
|
28226
|
+
// node_modules/zod/v4/locales/de.js
|
|
28150
28227
|
var error9 = () => {
|
|
28151
28228
|
const Sizable = {
|
|
28152
28229
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -28254,7 +28331,7 @@ function de_default() {
|
|
|
28254
28331
|
localeError: error9()
|
|
28255
28332
|
};
|
|
28256
28333
|
}
|
|
28257
|
-
// node_modules
|
|
28334
|
+
// node_modules/zod/v4/locales/en.js
|
|
28258
28335
|
var error10 = () => {
|
|
28259
28336
|
const Sizable = {
|
|
28260
28337
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -28360,7 +28437,7 @@ function en_default() {
|
|
|
28360
28437
|
localeError: error10()
|
|
28361
28438
|
};
|
|
28362
28439
|
}
|
|
28363
|
-
// node_modules
|
|
28440
|
+
// node_modules/zod/v4/locales/eo.js
|
|
28364
28441
|
var error11 = () => {
|
|
28365
28442
|
const Sizable = {
|
|
28366
28443
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -28469,7 +28546,7 @@ function eo_default() {
|
|
|
28469
28546
|
localeError: error11()
|
|
28470
28547
|
};
|
|
28471
28548
|
}
|
|
28472
|
-
// node_modules
|
|
28549
|
+
// node_modules/zod/v4/locales/es.js
|
|
28473
28550
|
var error12 = () => {
|
|
28474
28551
|
const Sizable = {
|
|
28475
28552
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -28601,7 +28678,7 @@ function es_default() {
|
|
|
28601
28678
|
localeError: error12()
|
|
28602
28679
|
};
|
|
28603
28680
|
}
|
|
28604
|
-
// node_modules
|
|
28681
|
+
// node_modules/zod/v4/locales/fa.js
|
|
28605
28682
|
var error13 = () => {
|
|
28606
28683
|
const Sizable = {
|
|
28607
28684
|
string: { unit: "کاراکتر", verb: "داشته باشد" },
|
|
@@ -28715,7 +28792,7 @@ function fa_default() {
|
|
|
28715
28792
|
localeError: error13()
|
|
28716
28793
|
};
|
|
28717
28794
|
}
|
|
28718
|
-
// node_modules
|
|
28795
|
+
// node_modules/zod/v4/locales/fi.js
|
|
28719
28796
|
var error14 = () => {
|
|
28720
28797
|
const Sizable = {
|
|
28721
28798
|
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
@@ -28827,7 +28904,7 @@ function fi_default() {
|
|
|
28827
28904
|
localeError: error14()
|
|
28828
28905
|
};
|
|
28829
28906
|
}
|
|
28830
|
-
// node_modules
|
|
28907
|
+
// node_modules/zod/v4/locales/fr.js
|
|
28831
28908
|
var error15 = () => {
|
|
28832
28909
|
const Sizable = {
|
|
28833
28910
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -28935,7 +29012,7 @@ function fr_default() {
|
|
|
28935
29012
|
localeError: error15()
|
|
28936
29013
|
};
|
|
28937
29014
|
}
|
|
28938
|
-
// node_modules
|
|
29015
|
+
// node_modules/zod/v4/locales/fr-CA.js
|
|
28939
29016
|
var error16 = () => {
|
|
28940
29017
|
const Sizable = {
|
|
28941
29018
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -29042,7 +29119,7 @@ function fr_CA_default() {
|
|
|
29042
29119
|
localeError: error16()
|
|
29043
29120
|
};
|
|
29044
29121
|
}
|
|
29045
|
-
// node_modules
|
|
29122
|
+
// node_modules/zod/v4/locales/he.js
|
|
29046
29123
|
var error17 = () => {
|
|
29047
29124
|
const TypeNames = {
|
|
29048
29125
|
string: { label: "מחרוזת", gender: "f" },
|
|
@@ -29235,7 +29312,7 @@ function he_default() {
|
|
|
29235
29312
|
localeError: error17()
|
|
29236
29313
|
};
|
|
29237
29314
|
}
|
|
29238
|
-
// node_modules
|
|
29315
|
+
// node_modules/zod/v4/locales/hu.js
|
|
29239
29316
|
var error18 = () => {
|
|
29240
29317
|
const Sizable = {
|
|
29241
29318
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -29343,7 +29420,7 @@ function hu_default() {
|
|
|
29343
29420
|
localeError: error18()
|
|
29344
29421
|
};
|
|
29345
29422
|
}
|
|
29346
|
-
// node_modules
|
|
29423
|
+
// node_modules/zod/v4/locales/hy.js
|
|
29347
29424
|
function getArmenianPlural2(count, one, many) {
|
|
29348
29425
|
return Math.abs(count) === 1 ? one : many;
|
|
29349
29426
|
}
|
|
@@ -29490,7 +29567,7 @@ function hy_default() {
|
|
|
29490
29567
|
localeError: error19()
|
|
29491
29568
|
};
|
|
29492
29569
|
}
|
|
29493
|
-
// node_modules
|
|
29570
|
+
// node_modules/zod/v4/locales/id.js
|
|
29494
29571
|
var error20 = () => {
|
|
29495
29572
|
const Sizable = {
|
|
29496
29573
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -29596,7 +29673,7 @@ function id_default() {
|
|
|
29596
29673
|
localeError: error20()
|
|
29597
29674
|
};
|
|
29598
29675
|
}
|
|
29599
|
-
// node_modules
|
|
29676
|
+
// node_modules/zod/v4/locales/is.js
|
|
29600
29677
|
var error21 = () => {
|
|
29601
29678
|
const Sizable = {
|
|
29602
29679
|
string: { unit: "stafi", verb: "að hafa" },
|
|
@@ -29705,7 +29782,7 @@ function is_default() {
|
|
|
29705
29782
|
localeError: error21()
|
|
29706
29783
|
};
|
|
29707
29784
|
}
|
|
29708
|
-
// node_modules
|
|
29785
|
+
// node_modules/zod/v4/locales/it.js
|
|
29709
29786
|
var error22 = () => {
|
|
29710
29787
|
const Sizable = {
|
|
29711
29788
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -29813,7 +29890,7 @@ function it_default() {
|
|
|
29813
29890
|
localeError: error22()
|
|
29814
29891
|
};
|
|
29815
29892
|
}
|
|
29816
|
-
// node_modules
|
|
29893
|
+
// node_modules/zod/v4/locales/ja.js
|
|
29817
29894
|
var error23 = () => {
|
|
29818
29895
|
const Sizable = {
|
|
29819
29896
|
string: { unit: "文字", verb: "である" },
|
|
@@ -29920,7 +29997,7 @@ function ja_default() {
|
|
|
29920
29997
|
localeError: error23()
|
|
29921
29998
|
};
|
|
29922
29999
|
}
|
|
29923
|
-
// node_modules
|
|
30000
|
+
// node_modules/zod/v4/locales/ka.js
|
|
29924
30001
|
var error24 = () => {
|
|
29925
30002
|
const Sizable = {
|
|
29926
30003
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
@@ -30032,7 +30109,7 @@ function ka_default() {
|
|
|
30032
30109
|
localeError: error24()
|
|
30033
30110
|
};
|
|
30034
30111
|
}
|
|
30035
|
-
// node_modules
|
|
30112
|
+
// node_modules/zod/v4/locales/km.js
|
|
30036
30113
|
var error25 = () => {
|
|
30037
30114
|
const Sizable = {
|
|
30038
30115
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
@@ -30143,11 +30220,11 @@ function km_default() {
|
|
|
30143
30220
|
};
|
|
30144
30221
|
}
|
|
30145
30222
|
|
|
30146
|
-
// node_modules
|
|
30223
|
+
// node_modules/zod/v4/locales/kh.js
|
|
30147
30224
|
function kh_default() {
|
|
30148
30225
|
return km_default();
|
|
30149
30226
|
}
|
|
30150
|
-
// node_modules
|
|
30227
|
+
// node_modules/zod/v4/locales/ko.js
|
|
30151
30228
|
var error26 = () => {
|
|
30152
30229
|
const Sizable = {
|
|
30153
30230
|
string: { unit: "문자", verb: "to have" },
|
|
@@ -30258,7 +30335,7 @@ function ko_default() {
|
|
|
30258
30335
|
localeError: error26()
|
|
30259
30336
|
};
|
|
30260
30337
|
}
|
|
30261
|
-
// node_modules
|
|
30338
|
+
// node_modules/zod/v4/locales/lt.js
|
|
30262
30339
|
var capitalizeFirstCharacter2 = (text) => {
|
|
30263
30340
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
30264
30341
|
};
|
|
@@ -30461,7 +30538,7 @@ function lt_default() {
|
|
|
30461
30538
|
localeError: error27()
|
|
30462
30539
|
};
|
|
30463
30540
|
}
|
|
30464
|
-
// node_modules
|
|
30541
|
+
// node_modules/zod/v4/locales/mk.js
|
|
30465
30542
|
var error28 = () => {
|
|
30466
30543
|
const Sizable = {
|
|
30467
30544
|
string: { unit: "знаци", verb: "да имаат" },
|
|
@@ -30570,7 +30647,7 @@ function mk_default() {
|
|
|
30570
30647
|
localeError: error28()
|
|
30571
30648
|
};
|
|
30572
30649
|
}
|
|
30573
|
-
// node_modules
|
|
30650
|
+
// node_modules/zod/v4/locales/ms.js
|
|
30574
30651
|
var error29 = () => {
|
|
30575
30652
|
const Sizable = {
|
|
30576
30653
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -30677,7 +30754,7 @@ function ms_default() {
|
|
|
30677
30754
|
localeError: error29()
|
|
30678
30755
|
};
|
|
30679
30756
|
}
|
|
30680
|
-
// node_modules
|
|
30757
|
+
// node_modules/zod/v4/locales/nl.js
|
|
30681
30758
|
var error30 = () => {
|
|
30682
30759
|
const Sizable = {
|
|
30683
30760
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -30787,7 +30864,7 @@ function nl_default() {
|
|
|
30787
30864
|
localeError: error30()
|
|
30788
30865
|
};
|
|
30789
30866
|
}
|
|
30790
|
-
// node_modules
|
|
30867
|
+
// node_modules/zod/v4/locales/no.js
|
|
30791
30868
|
var error31 = () => {
|
|
30792
30869
|
const Sizable = {
|
|
30793
30870
|
string: { unit: "tegn", verb: "å ha" },
|
|
@@ -30895,7 +30972,7 @@ function no_default() {
|
|
|
30895
30972
|
localeError: error31()
|
|
30896
30973
|
};
|
|
30897
30974
|
}
|
|
30898
|
-
// node_modules
|
|
30975
|
+
// node_modules/zod/v4/locales/ota.js
|
|
30899
30976
|
var error32 = () => {
|
|
30900
30977
|
const Sizable = {
|
|
30901
30978
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
@@ -31004,7 +31081,7 @@ function ota_default() {
|
|
|
31004
31081
|
localeError: error32()
|
|
31005
31082
|
};
|
|
31006
31083
|
}
|
|
31007
|
-
// node_modules
|
|
31084
|
+
// node_modules/zod/v4/locales/ps.js
|
|
31008
31085
|
var error33 = () => {
|
|
31009
31086
|
const Sizable = {
|
|
31010
31087
|
string: { unit: "توکي", verb: "ولري" },
|
|
@@ -31118,7 +31195,7 @@ function ps_default() {
|
|
|
31118
31195
|
localeError: error33()
|
|
31119
31196
|
};
|
|
31120
31197
|
}
|
|
31121
|
-
// node_modules
|
|
31198
|
+
// node_modules/zod/v4/locales/pl.js
|
|
31122
31199
|
var error34 = () => {
|
|
31123
31200
|
const Sizable = {
|
|
31124
31201
|
string: { unit: "znaków", verb: "mieć" },
|
|
@@ -31227,7 +31304,7 @@ function pl_default() {
|
|
|
31227
31304
|
localeError: error34()
|
|
31228
31305
|
};
|
|
31229
31306
|
}
|
|
31230
|
-
// node_modules
|
|
31307
|
+
// node_modules/zod/v4/locales/pt.js
|
|
31231
31308
|
var error35 = () => {
|
|
31232
31309
|
const Sizable = {
|
|
31233
31310
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -31335,7 +31412,7 @@ function pt_default() {
|
|
|
31335
31412
|
localeError: error35()
|
|
31336
31413
|
};
|
|
31337
31414
|
}
|
|
31338
|
-
// node_modules
|
|
31415
|
+
// node_modules/zod/v4/locales/ru.js
|
|
31339
31416
|
function getRussianPlural2(count, one, few, many) {
|
|
31340
31417
|
const absCount = Math.abs(count);
|
|
31341
31418
|
const lastDigit = absCount % 10;
|
|
@@ -31491,7 +31568,7 @@ function ru_default() {
|
|
|
31491
31568
|
localeError: error36()
|
|
31492
31569
|
};
|
|
31493
31570
|
}
|
|
31494
|
-
// node_modules
|
|
31571
|
+
// node_modules/zod/v4/locales/sl.js
|
|
31495
31572
|
var error37 = () => {
|
|
31496
31573
|
const Sizable = {
|
|
31497
31574
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -31600,7 +31677,7 @@ function sl_default() {
|
|
|
31600
31677
|
localeError: error37()
|
|
31601
31678
|
};
|
|
31602
31679
|
}
|
|
31603
|
-
// node_modules
|
|
31680
|
+
// node_modules/zod/v4/locales/sv.js
|
|
31604
31681
|
var error38 = () => {
|
|
31605
31682
|
const Sizable = {
|
|
31606
31683
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -31710,7 +31787,7 @@ function sv_default() {
|
|
|
31710
31787
|
localeError: error38()
|
|
31711
31788
|
};
|
|
31712
31789
|
}
|
|
31713
|
-
// node_modules
|
|
31790
|
+
// node_modules/zod/v4/locales/ta.js
|
|
31714
31791
|
var error39 = () => {
|
|
31715
31792
|
const Sizable = {
|
|
31716
31793
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -31820,7 +31897,7 @@ function ta_default() {
|
|
|
31820
31897
|
localeError: error39()
|
|
31821
31898
|
};
|
|
31822
31899
|
}
|
|
31823
|
-
// node_modules
|
|
31900
|
+
// node_modules/zod/v4/locales/th.js
|
|
31824
31901
|
var error40 = () => {
|
|
31825
31902
|
const Sizable = {
|
|
31826
31903
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
@@ -31930,7 +32007,7 @@ function th_default() {
|
|
|
31930
32007
|
localeError: error40()
|
|
31931
32008
|
};
|
|
31932
32009
|
}
|
|
31933
|
-
// node_modules
|
|
32010
|
+
// node_modules/zod/v4/locales/tr.js
|
|
31934
32011
|
var error41 = () => {
|
|
31935
32012
|
const Sizable = {
|
|
31936
32013
|
string: { unit: "karakter", verb: "olmalı" },
|
|
@@ -32035,7 +32112,7 @@ function tr_default() {
|
|
|
32035
32112
|
localeError: error41()
|
|
32036
32113
|
};
|
|
32037
32114
|
}
|
|
32038
|
-
// node_modules
|
|
32115
|
+
// node_modules/zod/v4/locales/uk.js
|
|
32039
32116
|
var error42 = () => {
|
|
32040
32117
|
const Sizable = {
|
|
32041
32118
|
string: { unit: "символів", verb: "матиме" },
|
|
@@ -32144,11 +32221,11 @@ function uk_default() {
|
|
|
32144
32221
|
};
|
|
32145
32222
|
}
|
|
32146
32223
|
|
|
32147
|
-
// node_modules
|
|
32224
|
+
// node_modules/zod/v4/locales/ua.js
|
|
32148
32225
|
function ua_default() {
|
|
32149
32226
|
return uk_default();
|
|
32150
32227
|
}
|
|
32151
|
-
// node_modules
|
|
32228
|
+
// node_modules/zod/v4/locales/ur.js
|
|
32152
32229
|
var error43 = () => {
|
|
32153
32230
|
const Sizable = {
|
|
32154
32231
|
string: { unit: "حروف", verb: "ہونا" },
|
|
@@ -32258,7 +32335,7 @@ function ur_default() {
|
|
|
32258
32335
|
localeError: error43()
|
|
32259
32336
|
};
|
|
32260
32337
|
}
|
|
32261
|
-
// node_modules
|
|
32338
|
+
// node_modules/zod/v4/locales/uz.js
|
|
32262
32339
|
var error44 = () => {
|
|
32263
32340
|
const Sizable = {
|
|
32264
32341
|
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
@@ -32367,7 +32444,7 @@ function uz_default() {
|
|
|
32367
32444
|
localeError: error44()
|
|
32368
32445
|
};
|
|
32369
32446
|
}
|
|
32370
|
-
// node_modules
|
|
32447
|
+
// node_modules/zod/v4/locales/vi.js
|
|
32371
32448
|
var error45 = () => {
|
|
32372
32449
|
const Sizable = {
|
|
32373
32450
|
string: { unit: "ký tự", verb: "có" },
|
|
@@ -32475,7 +32552,7 @@ function vi_default() {
|
|
|
32475
32552
|
localeError: error45()
|
|
32476
32553
|
};
|
|
32477
32554
|
}
|
|
32478
|
-
// node_modules
|
|
32555
|
+
// node_modules/zod/v4/locales/zh-CN.js
|
|
32479
32556
|
var error46 = () => {
|
|
32480
32557
|
const Sizable = {
|
|
32481
32558
|
string: { unit: "字符", verb: "包含" },
|
|
@@ -32584,7 +32661,7 @@ function zh_CN_default() {
|
|
|
32584
32661
|
localeError: error46()
|
|
32585
32662
|
};
|
|
32586
32663
|
}
|
|
32587
|
-
// node_modules
|
|
32664
|
+
// node_modules/zod/v4/locales/zh-TW.js
|
|
32588
32665
|
var error47 = () => {
|
|
32589
32666
|
const Sizable = {
|
|
32590
32667
|
string: { unit: "字元", verb: "擁有" },
|
|
@@ -32691,7 +32768,7 @@ function zh_TW_default() {
|
|
|
32691
32768
|
localeError: error47()
|
|
32692
32769
|
};
|
|
32693
32770
|
}
|
|
32694
|
-
// node_modules
|
|
32771
|
+
// node_modules/zod/v4/locales/yo.js
|
|
32695
32772
|
var error48 = () => {
|
|
32696
32773
|
const Sizable = {
|
|
32697
32774
|
string: { unit: "àmi", verb: "ní" },
|
|
@@ -32798,7 +32875,7 @@ function yo_default() {
|
|
|
32798
32875
|
localeError: error48()
|
|
32799
32876
|
};
|
|
32800
32877
|
}
|
|
32801
|
-
// node_modules
|
|
32878
|
+
// node_modules/zod/v4/core/registries.js
|
|
32802
32879
|
var _a2;
|
|
32803
32880
|
var $output2 = Symbol("ZodOutput");
|
|
32804
32881
|
var $input2 = Symbol("ZodInput");
|
|
@@ -32848,7 +32925,7 @@ function registry2() {
|
|
|
32848
32925
|
}
|
|
32849
32926
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry2());
|
|
32850
32927
|
var globalRegistry2 = globalThis.__zod_globalRegistry;
|
|
32851
|
-
// node_modules
|
|
32928
|
+
// node_modules/zod/v4/core/api.js
|
|
32852
32929
|
function _string2(Class3, params) {
|
|
32853
32930
|
return new Class3({
|
|
32854
32931
|
type: "string",
|
|
@@ -33768,7 +33845,7 @@ function _stringFormat2(Class3, format, fnOrRegex, _params = {}) {
|
|
|
33768
33845
|
const inst = new Class3(def);
|
|
33769
33846
|
return inst;
|
|
33770
33847
|
}
|
|
33771
|
-
// node_modules
|
|
33848
|
+
// node_modules/zod/v4/core/to-json-schema.js
|
|
33772
33849
|
function initializeContext2(params) {
|
|
33773
33850
|
let target = params?.target ?? "draft-2020-12";
|
|
33774
33851
|
if (target === "draft-4")
|
|
@@ -34113,7 +34190,7 @@ var createStandardJSONSchemaMethod2 = (schema, io, processors = {}) => (params)
|
|
|
34113
34190
|
extractDefs2(ctx, schema);
|
|
34114
34191
|
return finalize2(ctx, schema);
|
|
34115
34192
|
};
|
|
34116
|
-
// node_modules
|
|
34193
|
+
// node_modules/zod/v4/core/json-schema-processors.js
|
|
34117
34194
|
var formatMap2 = {
|
|
34118
34195
|
guid: "uuid",
|
|
34119
34196
|
url: "uri",
|
|
@@ -34658,7 +34735,7 @@ function toJSONSchema2(input, params) {
|
|
|
34658
34735
|
extractDefs2(ctx, input);
|
|
34659
34736
|
return finalize2(ctx, input);
|
|
34660
34737
|
}
|
|
34661
|
-
// node_modules
|
|
34738
|
+
// node_modules/zod/v4/core/json-schema-generator.js
|
|
34662
34739
|
class JSONSchemaGenerator2 {
|
|
34663
34740
|
get metadataRegistry() {
|
|
34664
34741
|
return this.ctx.metadataRegistry;
|
|
@@ -34717,9 +34794,9 @@ class JSONSchemaGenerator2 {
|
|
|
34717
34794
|
return plainResult;
|
|
34718
34795
|
}
|
|
34719
34796
|
}
|
|
34720
|
-
// node_modules
|
|
34797
|
+
// node_modules/zod/v4/core/json-schema.js
|
|
34721
34798
|
var exports_json_schema = {};
|
|
34722
|
-
// node_modules
|
|
34799
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
34723
34800
|
var exports_schemas2 = {};
|
|
34724
34801
|
__export(exports_schemas2, {
|
|
34725
34802
|
xor: () => xor2,
|
|
@@ -34888,7 +34965,7 @@ __export(exports_schemas2, {
|
|
|
34888
34965
|
ZodAny: () => ZodAny2
|
|
34889
34966
|
});
|
|
34890
34967
|
|
|
34891
|
-
// node_modules
|
|
34968
|
+
// node_modules/zod/v4/classic/checks.js
|
|
34892
34969
|
var exports_checks2 = {};
|
|
34893
34970
|
__export(exports_checks2, {
|
|
34894
34971
|
uppercase: () => _uppercase2,
|
|
@@ -34922,7 +34999,7 @@ __export(exports_checks2, {
|
|
|
34922
34999
|
endsWith: () => _endsWith2
|
|
34923
35000
|
});
|
|
34924
35001
|
|
|
34925
|
-
// node_modules
|
|
35002
|
+
// node_modules/zod/v4/classic/iso.js
|
|
34926
35003
|
var exports_iso = {};
|
|
34927
35004
|
__export(exports_iso, {
|
|
34928
35005
|
time: () => time3,
|
|
@@ -34963,7 +35040,7 @@ function duration3(params) {
|
|
|
34963
35040
|
return _isoDuration2(ZodISODuration2, params);
|
|
34964
35041
|
}
|
|
34965
35042
|
|
|
34966
|
-
// node_modules
|
|
35043
|
+
// node_modules/zod/v4/classic/errors.js
|
|
34967
35044
|
var initializer3 = (inst, issues) => {
|
|
34968
35045
|
$ZodError2.init(inst, issues);
|
|
34969
35046
|
inst.name = "ZodError";
|
|
@@ -34998,7 +35075,7 @@ var ZodRealError2 = $constructor2("ZodError", initializer3, {
|
|
|
34998
35075
|
Parent: Error
|
|
34999
35076
|
});
|
|
35000
35077
|
|
|
35001
|
-
// node_modules
|
|
35078
|
+
// node_modules/zod/v4/classic/parse.js
|
|
35002
35079
|
var parse4 = /* @__PURE__ */ _parse2(ZodRealError2);
|
|
35003
35080
|
var parseAsync3 = /* @__PURE__ */ _parseAsync2(ZodRealError2);
|
|
35004
35081
|
var safeParse3 = /* @__PURE__ */ _safeParse2(ZodRealError2);
|
|
@@ -35012,7 +35089,7 @@ var safeDecode3 = /* @__PURE__ */ _safeDecode2(ZodRealError2);
|
|
|
35012
35089
|
var safeEncodeAsync3 = /* @__PURE__ */ _safeEncodeAsync2(ZodRealError2);
|
|
35013
35090
|
var safeDecodeAsync3 = /* @__PURE__ */ _safeDecodeAsync2(ZodRealError2);
|
|
35014
35091
|
|
|
35015
|
-
// node_modules
|
|
35092
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
35016
35093
|
var ZodType2 = /* @__PURE__ */ $constructor2("ZodType", (inst, def) => {
|
|
35017
35094
|
$ZodType2.init(inst, def);
|
|
35018
35095
|
Object.assign(inst["~standard"], {
|
|
@@ -36088,7 +36165,7 @@ function json2(params) {
|
|
|
36088
36165
|
function preprocess2(fn, schema) {
|
|
36089
36166
|
return pipe2(transform2(fn), schema);
|
|
36090
36167
|
}
|
|
36091
|
-
// node_modules
|
|
36168
|
+
// node_modules/zod/v4/classic/compat.js
|
|
36092
36169
|
var ZodIssueCode2 = {
|
|
36093
36170
|
invalid_type: "invalid_type",
|
|
36094
36171
|
too_big: "too_big",
|
|
@@ -36112,7 +36189,7 @@ function getErrorMap2() {
|
|
|
36112
36189
|
}
|
|
36113
36190
|
var ZodFirstPartyTypeKind2;
|
|
36114
36191
|
(function(ZodFirstPartyTypeKind3) {})(ZodFirstPartyTypeKind2 || (ZodFirstPartyTypeKind2 = {}));
|
|
36115
|
-
// node_modules
|
|
36192
|
+
// node_modules/zod/v4/classic/from-json-schema.js
|
|
36116
36193
|
var z2 = {
|
|
36117
36194
|
...exports_schemas2,
|
|
36118
36195
|
...exports_checks2,
|
|
@@ -36573,7 +36650,7 @@ function fromJSONSchema2(schema, params) {
|
|
|
36573
36650
|
};
|
|
36574
36651
|
return convertSchema2(schema, ctx);
|
|
36575
36652
|
}
|
|
36576
|
-
// node_modules
|
|
36653
|
+
// node_modules/zod/v4/classic/coerce.js
|
|
36577
36654
|
var exports_coerce = {};
|
|
36578
36655
|
__export(exports_coerce, {
|
|
36579
36656
|
string: () => string4,
|
|
@@ -36598,12 +36675,12 @@ function date5(params) {
|
|
|
36598
36675
|
return _coercedDate2(ZodDate2, params);
|
|
36599
36676
|
}
|
|
36600
36677
|
|
|
36601
|
-
// node_modules
|
|
36678
|
+
// node_modules/zod/v4/classic/external.js
|
|
36602
36679
|
config3(en_default());
|
|
36603
|
-
// node_modules
|
|
36680
|
+
// node_modules/zod/index.js
|
|
36604
36681
|
var zod_default = exports_external;
|
|
36605
36682
|
|
|
36606
|
-
// node_modules
|
|
36683
|
+
// node_modules/@opencode-ai/plugin/dist/tool.js
|
|
36607
36684
|
function tool2(input) {
|
|
36608
36685
|
return input;
|
|
36609
36686
|
}
|
|
@@ -36826,13 +36903,13 @@ app.route({
|
|
|
36826
36903
|
ctx.forward({ code: 200, message: "已关闭的工作空间删除完成", data: results });
|
|
36827
36904
|
}).addTo(app);
|
|
36828
36905
|
|
|
36829
|
-
// node_modules
|
|
36906
|
+
// node_modules/nanoid/index.js
|
|
36830
36907
|
import { webcrypto as crypto2 } from "node:crypto";
|
|
36831
36908
|
|
|
36832
|
-
// node_modules
|
|
36909
|
+
// node_modules/nanoid/url-alphabet/index.js
|
|
36833
36910
|
var urlAlphabet2 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
36834
36911
|
|
|
36835
|
-
// node_modules
|
|
36912
|
+
// node_modules/nanoid/index.js
|
|
36836
36913
|
var POOL_SIZE_MULTIPLIER2 = 128;
|
|
36837
36914
|
var pool2;
|
|
36838
36915
|
var poolOffset2;
|
|
@@ -36859,15 +36936,15 @@ function nanoid4(size = 21) {
|
|
|
36859
36936
|
// agent/routes/workspace/keep.ts
|
|
36860
36937
|
var import_dayjs = __toESM(require_dayjs_min(), 1);
|
|
36861
36938
|
|
|
36862
|
-
// node_modules/.pnpm/@kevisual+ws@8.19.0/node_modules/@kevisual/ws/wrapper.mjs
|
|
36863
|
-
var import_stream = __toESM(require_stream(), 1);
|
|
36864
|
-
var import_receiver = __toESM(require_receiver(), 1);
|
|
36865
|
-
var import_sender = __toESM(require_sender(), 1);
|
|
36866
|
-
var import_websocket = __toESM(require_websocket(), 1);
|
|
36867
|
-
var import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
36868
|
-
var wrapper_default = import_websocket.default;
|
|
36869
|
-
|
|
36870
36939
|
// src/workspace/keep-live.ts
|
|
36940
|
+
var WebSocketModule;
|
|
36941
|
+
if (typeof Bun !== "undefined") {
|
|
36942
|
+
WebSocketModule = { WebSocket: globalThis.WebSocket };
|
|
36943
|
+
} else {
|
|
36944
|
+
WebSocketModule = await Promise.resolve().then(() => (init_wrapper(), exports_wrapper));
|
|
36945
|
+
}
|
|
36946
|
+
var WebSocket2 = WebSocketModule.WebSocket;
|
|
36947
|
+
|
|
36871
36948
|
class WSKeepAlive {
|
|
36872
36949
|
ws = null;
|
|
36873
36950
|
config;
|
|
@@ -36875,6 +36952,7 @@ class WSKeepAlive {
|
|
|
36875
36952
|
pingTimer = null;
|
|
36876
36953
|
messageHandlers = new Set;
|
|
36877
36954
|
url;
|
|
36955
|
+
isBun;
|
|
36878
36956
|
constructor(config4) {
|
|
36879
36957
|
this.config = {
|
|
36880
36958
|
wsUrl: config4.wsUrl,
|
|
@@ -36891,6 +36969,7 @@ class WSKeepAlive {
|
|
|
36891
36969
|
debug: config4.debug ?? false
|
|
36892
36970
|
};
|
|
36893
36971
|
this.url = new URL(this.config.wsUrl);
|
|
36972
|
+
this.isBun = typeof Bun !== "undefined";
|
|
36894
36973
|
}
|
|
36895
36974
|
log(message) {
|
|
36896
36975
|
if (!this.config.debug)
|
|
@@ -36929,7 +37008,7 @@ class WSKeepAlive {
|
|
|
36929
37008
|
connect() {
|
|
36930
37009
|
const { wsUrl, cookie, debug } = this.config;
|
|
36931
37010
|
this.log(`Connecting to ${wsUrl}...`);
|
|
36932
|
-
this.ws = new
|
|
37011
|
+
this.ws = new WebSocket2(wsUrl, {
|
|
36933
37012
|
headers: {
|
|
36934
37013
|
Origin: this.url.origin,
|
|
36935
37014
|
Cookie: cookie,
|
|
@@ -36940,40 +37019,77 @@ class WSKeepAlive {
|
|
|
36940
37019
|
"Sec-WebSocket-Extensions": "permessage-deflate"
|
|
36941
37020
|
}
|
|
36942
37021
|
});
|
|
36943
|
-
this.
|
|
36944
|
-
|
|
36945
|
-
|
|
36946
|
-
|
|
36947
|
-
|
|
36948
|
-
|
|
36949
|
-
|
|
36950
|
-
|
|
36951
|
-
|
|
36952
|
-
|
|
36953
|
-
|
|
36954
|
-
|
|
36955
|
-
|
|
36956
|
-
|
|
36957
|
-
|
|
36958
|
-
|
|
36959
|
-
|
|
36960
|
-
|
|
36961
|
-
|
|
36962
|
-
|
|
36963
|
-
|
|
36964
|
-
|
|
36965
|
-
|
|
36966
|
-
|
|
36967
|
-
|
|
36968
|
-
|
|
36969
|
-
|
|
36970
|
-
|
|
37022
|
+
if (this.isBun) {
|
|
37023
|
+
const ws = this.ws;
|
|
37024
|
+
ws.onopen = () => {
|
|
37025
|
+
debug && this.log("Connected!");
|
|
37026
|
+
this.reconnectAttempts = 0;
|
|
37027
|
+
this.config.onConnect();
|
|
37028
|
+
this.startPing();
|
|
37029
|
+
};
|
|
37030
|
+
ws.onmessage = async (event) => {
|
|
37031
|
+
let data;
|
|
37032
|
+
if (event.data instanceof Blob) {
|
|
37033
|
+
data = Buffer.from(await event.data.arrayBuffer());
|
|
37034
|
+
} else if (event.data instanceof ArrayBuffer) {
|
|
37035
|
+
data = Buffer.from(event.data);
|
|
37036
|
+
} else if (typeof event.data === "string") {
|
|
37037
|
+
data = event.data;
|
|
37038
|
+
} else {
|
|
37039
|
+
data = Buffer.from(event.data);
|
|
37040
|
+
}
|
|
37041
|
+
this.handleMessage(data);
|
|
37042
|
+
};
|
|
37043
|
+
ws.onclose = (event) => {
|
|
37044
|
+
debug && this.log(`Disconnected (code: ${event.code})`);
|
|
37045
|
+
this.stopPing();
|
|
37046
|
+
this.config.onDisconnect(event.code);
|
|
37047
|
+
this.handleReconnect();
|
|
37048
|
+
};
|
|
37049
|
+
ws.onerror = (event) => {
|
|
37050
|
+
debug && this.log(`Error: ${event}`);
|
|
37051
|
+
this.config.onError(new Error("WebSocket error"));
|
|
37052
|
+
};
|
|
37053
|
+
} else {
|
|
37054
|
+
const ws = this.ws;
|
|
37055
|
+
ws.on("open", () => {
|
|
37056
|
+
debug && this.log("Connected!");
|
|
37057
|
+
this.reconnectAttempts = 0;
|
|
37058
|
+
this.config.onConnect();
|
|
37059
|
+
this.startPing();
|
|
37060
|
+
});
|
|
37061
|
+
ws.on("message", (data) => {
|
|
37062
|
+
this.handleMessage(data);
|
|
37063
|
+
});
|
|
37064
|
+
ws.on("close", (code) => {
|
|
37065
|
+
debug && this.log(`Disconnected (code: ${code})`);
|
|
37066
|
+
this.stopPing();
|
|
37067
|
+
this.config.onDisconnect(code);
|
|
37068
|
+
this.handleReconnect();
|
|
37069
|
+
});
|
|
37070
|
+
ws.on("error", (err) => {
|
|
37071
|
+
debug && this.log(`Error: ${err.message}`);
|
|
37072
|
+
this.config.onError(err);
|
|
37073
|
+
});
|
|
37074
|
+
}
|
|
37075
|
+
}
|
|
37076
|
+
handleMessage(data) {
|
|
37077
|
+
if (Buffer.isBuffer(data)) {
|
|
37078
|
+
const parsed = this.parseMessage(data);
|
|
37079
|
+
this.config.onMessage(parsed?.raw ?? data);
|
|
37080
|
+
this.messageHandlers.forEach((handler) => {
|
|
37081
|
+
if (parsed)
|
|
37082
|
+
handler(parsed);
|
|
37083
|
+
});
|
|
37084
|
+
} else {
|
|
37085
|
+
this.config.onMessage(data);
|
|
37086
|
+
}
|
|
36971
37087
|
}
|
|
36972
37088
|
startPing() {
|
|
36973
37089
|
this.stopPing();
|
|
36974
37090
|
this.pingTimer = setInterval(() => {
|
|
36975
|
-
if (this.ws && this.ws.readyState ===
|
|
36976
|
-
this.ws.ping();
|
|
37091
|
+
if (this.ws && this.ws.readyState === WebSocket2.OPEN) {
|
|
37092
|
+
this.ws.send(JSON.stringify({ type: "ping", timestamp: Date.now() }));
|
|
36977
37093
|
this.log("Sent ping");
|
|
36978
37094
|
}
|
|
36979
37095
|
}, this.config.pingInterval);
|
|
@@ -37527,7 +37643,7 @@ app.route({
|
|
|
37527
37643
|
ctx.body = { content: `当前cnb工作空间的cookie环境变量为:${cookie}` };
|
|
37528
37644
|
}).addTo(app);
|
|
37529
37645
|
|
|
37530
|
-
// node_modules
|
|
37646
|
+
// node_modules/@kevisual/ai/dist/ai-provider-browser.js
|
|
37531
37647
|
var __create3 = Object.create;
|
|
37532
37648
|
var __getProtoOf3 = Object.getPrototypeOf;
|
|
37533
37649
|
var __defProp3 = Object.defineProperty;
|
|
@@ -37569,7 +37685,7 @@ var __export2 = (target, all) => {
|
|
|
37569
37685
|
set: (newValue) => all[name] = () => newValue
|
|
37570
37686
|
});
|
|
37571
37687
|
};
|
|
37572
|
-
var
|
|
37688
|
+
var __esm2 = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
37573
37689
|
var exports_buffer = {};
|
|
37574
37690
|
__export2(exports_buffer, {
|
|
37575
37691
|
transcode: () => transcode,
|
|
@@ -38284,7 +38400,7 @@ var isAscii = (str) => {
|
|
|
38284
38400
|
};
|
|
38285
38401
|
var transcode;
|
|
38286
38402
|
var buffer_default;
|
|
38287
|
-
var init_buffer =
|
|
38403
|
+
var init_buffer = __esm2(() => {
|
|
38288
38404
|
lookup = [];
|
|
38289
38405
|
revLookup = [];
|
|
38290
38406
|
for (i = 0, len = code.length;i < len; ++i)
|
|
@@ -39278,7 +39394,7 @@ var promisify;
|
|
|
39278
39394
|
var TextEncoder;
|
|
39279
39395
|
var TextDecoder2;
|
|
39280
39396
|
var util_default;
|
|
39281
|
-
var init_util =
|
|
39397
|
+
var init_util = __esm2(() => {
|
|
39282
39398
|
formatRegExp = /%[sdj%]/g;
|
|
39283
39399
|
debuglog = ((debugs = {}, debugEnvRegex = {}, debugEnv) => ((debugEnv = typeof process < "u" && false) && (debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase()), debugEnvRegex = new RegExp("^" + debugEnv + "$", "i"), (set3) => {
|
|
39284
39400
|
if (set3 = set3.toUpperCase(), !debugs[set3])
|
|
@@ -39578,7 +39694,7 @@ var emitWithRejectionCapture = function(type2, ...args) {
|
|
|
39578
39694
|
};
|
|
39579
39695
|
var AbortError;
|
|
39580
39696
|
var events_default;
|
|
39581
|
-
var init_events =
|
|
39697
|
+
var init_events = __esm2(() => {
|
|
39582
39698
|
SymbolFor = Symbol.for;
|
|
39583
39699
|
kCapture = Symbol("kCapture");
|
|
39584
39700
|
kErrorMonitor = SymbolFor("events.errorMonitor");
|
|
@@ -43903,7 +44019,7 @@ var randomUUID = () => {
|
|
|
43903
44019
|
var hardcoded_curves;
|
|
43904
44020
|
var webcrypto2;
|
|
43905
44021
|
var crypto_default;
|
|
43906
|
-
var init_crypto =
|
|
44022
|
+
var init_crypto = __esm2(() => {
|
|
43907
44023
|
__create22 = Object.create;
|
|
43908
44024
|
({ getPrototypeOf: __getProtoOf22, defineProperty: __defProp22, getOwnPropertyNames: __getOwnPropNames22 } = Object);
|
|
43909
44025
|
__hasOwnProp22 = Object.prototype.hasOwnProperty;
|