@codeforbreakfast/commy-mcp 0.25.4 → 0.26.0
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/package.json +1 -1
- package/server.js +625 -376
package/server.js
CHANGED
|
@@ -3037,7 +3037,7 @@ var require_data = __commonJS(function(exports, module) {
|
|
|
3037
3037
|
};
|
|
3038
3038
|
});
|
|
3039
3039
|
|
|
3040
|
-
// node_modules/.bun/fast-uri@4.2.
|
|
3040
|
+
// node_modules/.bun/fast-uri@4.2.2/node_modules/fast-uri/lib/utils.js
|
|
3041
3041
|
var require_utils = __commonJS(function(exports, module) {
|
|
3042
3042
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3043
3043
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -3047,6 +3047,8 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
3047
3047
|
var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
|
|
3048
3048
|
var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
|
|
3049
3049
|
var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
|
|
3050
|
+
var isRegNameCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=]$/u);
|
|
3051
|
+
var isLiteralRegName = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=]*$/u);
|
|
3050
3052
|
function stringArrayToHexStripped(input) {
|
|
3051
3053
|
let acc = "";
|
|
3052
3054
|
let code = 0;
|
|
@@ -3276,13 +3278,16 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
3276
3278
|
}
|
|
3277
3279
|
return output.join("");
|
|
3278
3280
|
}
|
|
3279
|
-
var
|
|
3280
|
-
var
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3281
|
+
var IP_HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23" };
|
|
3282
|
+
var IP_HOST_DELIM_RE = /[@/?#]/g;
|
|
3283
|
+
function encodeHost(host, isIP, allowNonAscii = false) {
|
|
3284
|
+
if (!isIP) {
|
|
3285
|
+
if (isLiteralRegName(host))
|
|
3286
|
+
return host;
|
|
3287
|
+
return encodeComponent(host, isRegNameCharacter, allowNonAscii);
|
|
3288
|
+
}
|
|
3289
|
+
IP_HOST_DELIM_RE.lastIndex = 0;
|
|
3290
|
+
return host.replace(IP_HOST_DELIM_RE, (ch) => IP_HOST_DELIMS[ch]);
|
|
3286
3291
|
}
|
|
3287
3292
|
function normalizePercentEncoding(input, decodeUnreserved = false) {
|
|
3288
3293
|
if (input.indexOf("%") === -1) {
|
|
@@ -3448,7 +3453,7 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
3448
3453
|
}
|
|
3449
3454
|
return output;
|
|
3450
3455
|
}
|
|
3451
|
-
function encodeComponent(input, isAllowed) {
|
|
3456
|
+
function encodeComponent(input, isAllowed, allowNonAscii = false) {
|
|
3452
3457
|
let output = "";
|
|
3453
3458
|
for (let i = 0;i < input.length; i++) {
|
|
3454
3459
|
const ch = input[i];
|
|
@@ -3467,17 +3472,17 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
3467
3472
|
if (code < 128) {
|
|
3468
3473
|
output += BYTE_HEX[code];
|
|
3469
3474
|
} else if (code < 55296 || code > 57343) {
|
|
3470
|
-
output += percentEncodeNonAscii(code);
|
|
3475
|
+
output += allowNonAscii ? ch : percentEncodeNonAscii(code);
|
|
3471
3476
|
} else if (code <= 56319 && i + 1 < input.length) {
|
|
3472
3477
|
const low = input.charCodeAt(i + 1);
|
|
3473
3478
|
if (low >= 56320 && low <= 57343) {
|
|
3474
|
-
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3479
|
+
output += allowNonAscii ? ch + input[i + 1] : percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3475
3480
|
i++;
|
|
3476
3481
|
} else {
|
|
3477
|
-
output += percentEncodeNonAscii(65533);
|
|
3482
|
+
output += allowNonAscii ? "�" : percentEncodeNonAscii(65533);
|
|
3478
3483
|
}
|
|
3479
3484
|
} else {
|
|
3480
|
-
output += percentEncodeNonAscii(65533);
|
|
3485
|
+
output += allowNonAscii ? "�" : percentEncodeNonAscii(65533);
|
|
3481
3486
|
}
|
|
3482
3487
|
}
|
|
3483
3488
|
}
|
|
@@ -3539,7 +3544,7 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
3539
3544
|
}
|
|
3540
3545
|
return;
|
|
3541
3546
|
}
|
|
3542
|
-
function recomposeAuthority(component) {
|
|
3547
|
+
function recomposeAuthority(component, allowNonAscii = false) {
|
|
3543
3548
|
const uriTokens = [];
|
|
3544
3549
|
if (component.userinfo !== undefined) {
|
|
3545
3550
|
uriTokens.push(encodeUserinfo(component.userinfo));
|
|
@@ -3560,7 +3565,7 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
3560
3565
|
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
|
|
3561
3566
|
host = `[${ipV6res.escapedHost}]`;
|
|
3562
3567
|
} else {
|
|
3563
|
-
host =
|
|
3568
|
+
host = encodeHost(host, false, allowNonAscii);
|
|
3564
3569
|
}
|
|
3565
3570
|
}
|
|
3566
3571
|
}
|
|
@@ -3582,7 +3587,7 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
3582
3587
|
nonSimpleDomain,
|
|
3583
3588
|
nonSimpleMailtoDomain,
|
|
3584
3589
|
recomposeAuthority,
|
|
3585
|
-
|
|
3590
|
+
encodeHost,
|
|
3586
3591
|
normalizePercentEncoding,
|
|
3587
3592
|
normalizePathEncoding,
|
|
3588
3593
|
serializePathEncoding,
|
|
@@ -3599,7 +3604,7 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
3599
3604
|
};
|
|
3600
3605
|
});
|
|
3601
3606
|
|
|
3602
|
-
// node_modules/.bun/fast-uri@4.2.
|
|
3607
|
+
// node_modules/.bun/fast-uri@4.2.2/node_modules/fast-uri/lib/schemes.js
|
|
3603
3608
|
var require_schemes = __commonJS(function(exports, module) {
|
|
3604
3609
|
var { isUUID, BYTE_HEX, percentEncodeNonAscii, nonSimpleMailtoDomain } = require_utils();
|
|
3605
3610
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -3747,7 +3752,8 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
3747
3752
|
scheme: "urn",
|
|
3748
3753
|
parse: urnParse,
|
|
3749
3754
|
serialize: urnSerialize,
|
|
3750
|
-
skipNormalize: true
|
|
3755
|
+
skipNormalize: true,
|
|
3756
|
+
absolutePath: true
|
|
3751
3757
|
};
|
|
3752
3758
|
var urnuuid = {
|
|
3753
3759
|
scheme: "urn:uuid",
|
|
@@ -4024,9 +4030,9 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
4024
4030
|
};
|
|
4025
4031
|
});
|
|
4026
4032
|
|
|
4027
|
-
// node_modules/.bun/fast-uri@4.2.
|
|
4033
|
+
// node_modules/.bun/fast-uri@4.2.2/node_modules/fast-uri/index.js
|
|
4028
4034
|
var require_fast_uri = __commonJS(function(exports, module) {
|
|
4029
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment,
|
|
4035
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, encodeHost, isIPv4, nonSimpleDomain } = require_utils();
|
|
4030
4036
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
4031
4037
|
var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
|
|
4032
4038
|
var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
|
|
@@ -4050,6 +4056,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4050
4056
|
const {
|
|
4051
4057
|
parsed: baseParsed,
|
|
4052
4058
|
malformedAuthorityOrPort: baseMalformed,
|
|
4059
|
+
malformedReferenceEdge: baseMalformedReferenceEdge,
|
|
4053
4060
|
malformedPercentEncoding: baseMalformedPercentEncoding,
|
|
4054
4061
|
malformedSchemeSpecific: baseMalformedSchemeSpecific,
|
|
4055
4062
|
malformedHost: baseMalformedHost,
|
|
@@ -4058,17 +4065,21 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4058
4065
|
const {
|
|
4059
4066
|
parsed: relativeParsed,
|
|
4060
4067
|
malformedAuthorityOrPort: relativeMalformed,
|
|
4068
|
+
malformedReferenceEdge: relativeMalformedReferenceEdge,
|
|
4061
4069
|
malformedPercentEncoding: relativeMalformedPercentEncoding,
|
|
4062
4070
|
malformedSchemeSpecific: relativeMalformedSchemeSpecific,
|
|
4063
4071
|
malformedHost: relativeMalformedHost,
|
|
4064
4072
|
malformedScheme: relativeMalformedScheme
|
|
4065
4073
|
} = parseWithStatus(relativeURI, schemelessOptions);
|
|
4066
|
-
if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
|
|
4074
|
+
if (baseMalformed || relativeMalformed || baseMalformedReferenceEdge || relativeMalformedReferenceEdge || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
|
|
4067
4075
|
throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
|
|
4068
4076
|
}
|
|
4069
4077
|
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
|
|
4070
4078
|
const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
|
|
4071
4079
|
const resolvedHost = resolved.host;
|
|
4080
|
+
if ((resolved.scheme === "http" || resolved.scheme === "https") && !resolvedHost) {
|
|
4081
|
+
throw new Error("HTTP URIs must have a host.");
|
|
4082
|
+
}
|
|
4072
4083
|
const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
|
|
4073
4084
|
canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
|
|
4074
4085
|
const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
|
|
@@ -4076,6 +4087,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4076
4087
|
throw new Error(resolved.error);
|
|
4077
4088
|
}
|
|
4078
4089
|
schemelessOptions.skipEscape = true;
|
|
4090
|
+
if (resolvedSchemeHandler && resolvedSchemeHandler.absolutePath) {
|
|
4091
|
+
schemelessOptions.absolutePath = true;
|
|
4092
|
+
}
|
|
4079
4093
|
return serialize(resolved, schemelessOptions);
|
|
4080
4094
|
}
|
|
4081
4095
|
function copyHost(target, source) {
|
|
@@ -4096,7 +4110,8 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4096
4110
|
target.userinfo = relative.userinfo;
|
|
4097
4111
|
copyHost(target, relative);
|
|
4098
4112
|
target.port = relative.port;
|
|
4099
|
-
|
|
4113
|
+
const relativeSchemeHandler = getSchemeHandler(relative.scheme);
|
|
4114
|
+
target.path = relativeSchemeHandler && relativeSchemeHandler.absolutePath ? relative.path || "" : removeDotSegments(relative.path || "");
|
|
4100
4115
|
target.query = relative.query;
|
|
4101
4116
|
} else {
|
|
4102
4117
|
if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
|
|
@@ -4185,7 +4200,8 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4185
4200
|
component.scheme = decodeValidScheme(component.scheme);
|
|
4186
4201
|
uriTokens.push(component.scheme, ":");
|
|
4187
4202
|
}
|
|
4188
|
-
const
|
|
4203
|
+
const allowNonAsciiHost = options.unicodeSupport === true || Boolean(schemeHandler && schemeHandler.unicodeSupport);
|
|
4204
|
+
const authority = recomposeAuthority(component, allowNonAsciiHost);
|
|
4189
4205
|
if (authority !== undefined) {
|
|
4190
4206
|
if (options.reference !== "suffix") {
|
|
4191
4207
|
uriTokens.push("//");
|
|
@@ -4271,6 +4287,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4271
4287
|
fragment: undefined
|
|
4272
4288
|
};
|
|
4273
4289
|
let malformedAuthorityOrPort = false;
|
|
4290
|
+
const malformedReferenceEdge = uri.length !== 0 && (uri.charCodeAt(0) <= 32 || uri.charCodeAt(uri.length - 1) <= 32);
|
|
4274
4291
|
let malformedPercentEncoding = false;
|
|
4275
4292
|
let malformedSchemeSpecific = false;
|
|
4276
4293
|
let malformedHost = false;
|
|
@@ -4303,6 +4320,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4303
4320
|
}
|
|
4304
4321
|
}
|
|
4305
4322
|
}
|
|
4323
|
+
if (malformedReferenceEdge) {
|
|
4324
|
+
parsed.error = parsed.error || "URI must not contain leading or trailing C0 controls or spaces.";
|
|
4325
|
+
}
|
|
4306
4326
|
const matches = uri.match(URI_PARSE);
|
|
4307
4327
|
if (matches) {
|
|
4308
4328
|
parsed.scheme = matches[1];
|
|
@@ -4369,12 +4389,18 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4369
4389
|
if (!malformedIPLiteral) {
|
|
4370
4390
|
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
|
|
4371
4391
|
}
|
|
4372
|
-
if (
|
|
4373
|
-
let host =
|
|
4374
|
-
if (!isIP) {
|
|
4392
|
+
if (parsed.host !== undefined && !malformedIPLiteral) {
|
|
4393
|
+
let host = parsed.host;
|
|
4394
|
+
if (uri.indexOf("%") !== -1 && !isIP) {
|
|
4395
|
+
host = normalizePercentEncoding(host, true);
|
|
4375
4396
|
host = normalizePercentEncoding(host.toLowerCase());
|
|
4376
4397
|
}
|
|
4377
|
-
|
|
4398
|
+
if (options.scheme !== "null") {
|
|
4399
|
+
const allowNonAsciiHost = options.unicodeSupport === true || Boolean(schemeHandler && schemeHandler.unicodeSupport);
|
|
4400
|
+
parsed.host = encodeHost(host, isIP, allowNonAsciiHost);
|
|
4401
|
+
} else {
|
|
4402
|
+
parsed.host = host;
|
|
4403
|
+
}
|
|
4378
4404
|
}
|
|
4379
4405
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4380
4406
|
if (parsed.path) {
|
|
@@ -4396,7 +4422,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4396
4422
|
} else {
|
|
4397
4423
|
parsed.error = parsed.error || "URI can not be parsed.";
|
|
4398
4424
|
}
|
|
4399
|
-
return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
|
|
4425
|
+
return { parsed, malformedAuthorityOrPort, malformedReferenceEdge, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
|
|
4400
4426
|
}
|
|
4401
4427
|
function parse(uri, opts) {
|
|
4402
4428
|
return parseWithStatus(uri, opts).parsed;
|
|
@@ -4405,10 +4431,11 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4405
4431
|
return normalizeStringWithStatus(uri, opts).normalized;
|
|
4406
4432
|
}
|
|
4407
4433
|
function normalizeStringWithStatus(uri, opts) {
|
|
4408
|
-
const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
|
|
4434
|
+
const { parsed, malformedAuthorityOrPort, malformedReferenceEdge, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
|
|
4409
4435
|
return {
|
|
4410
|
-
normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
|
|
4436
|
+
normalized: malformedAuthorityOrPort || malformedReferenceEdge || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
|
|
4411
4437
|
malformedAuthorityOrPort,
|
|
4438
|
+
malformedReferenceEdge,
|
|
4412
4439
|
malformedPercentEncoding,
|
|
4413
4440
|
malformedSchemeSpecific,
|
|
4414
4441
|
malformedHost,
|
|
@@ -4425,8 +4452,8 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
4425
4452
|
} catch {
|
|
4426
4453
|
return;
|
|
4427
4454
|
}
|
|
4428
|
-
const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
|
|
4429
|
-
return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? undefined : normalized;
|
|
4455
|
+
const { normalized, malformedAuthorityOrPort, malformedReferenceEdge, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
|
|
4456
|
+
return malformedAuthorityOrPort || malformedReferenceEdge || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? undefined : normalized;
|
|
4430
4457
|
}
|
|
4431
4458
|
var fastUri = {
|
|
4432
4459
|
SCHEMES,
|
|
@@ -7233,8 +7260,8 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
7233
7260
|
});
|
|
7234
7261
|
|
|
7235
7262
|
// packages/mcp/server.ts
|
|
7236
|
-
import { basename as basename3, join as join9 } from "node:path";
|
|
7237
|
-
// node_modules/.bun/effect@3.22.
|
|
7263
|
+
import { basename as basename3, isAbsolute, join as join9, relative, sep } from "node:path";
|
|
7264
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Function.js
|
|
7238
7265
|
var isFunction = (input) => typeof input === "function";
|
|
7239
7266
|
var dual = function(arity, body) {
|
|
7240
7267
|
if (typeof arity === "function") {
|
|
@@ -7334,7 +7361,7 @@ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
|
|
|
7334
7361
|
}
|
|
7335
7362
|
}
|
|
7336
7363
|
|
|
7337
|
-
// node_modules/.bun/effect@3.22.
|
|
7364
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Equivalence.js
|
|
7338
7365
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
7339
7366
|
var isStrictEquivalent = (x, y) => x === y;
|
|
7340
7367
|
var strict = () => isStrictEquivalent;
|
|
@@ -7355,7 +7382,7 @@ var array = (item) => make((self, that) => {
|
|
|
7355
7382
|
return true;
|
|
7356
7383
|
});
|
|
7357
7384
|
|
|
7358
|
-
// node_modules/.bun/effect@3.22.
|
|
7385
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/doNotation.js
|
|
7359
7386
|
var bindTo = (map) => dual(2, (self, name) => map(self, (a) => ({
|
|
7360
7387
|
[name]: a
|
|
7361
7388
|
})));
|
|
@@ -7364,7 +7391,7 @@ var bind = (map, flatMap) => dual(3, (self, name, f) => flatMap(self, (a) => map
|
|
|
7364
7391
|
[name]: b
|
|
7365
7392
|
}))));
|
|
7366
7393
|
|
|
7367
|
-
// node_modules/.bun/effect@3.22.
|
|
7394
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/GlobalValue.js
|
|
7368
7395
|
var globalStoreId = `effect/GlobalValue`;
|
|
7369
7396
|
var globalStore;
|
|
7370
7397
|
var globalValue = (id, compute) => {
|
|
@@ -7378,7 +7405,7 @@ var globalValue = (id, compute) => {
|
|
|
7378
7405
|
return globalStore.get(id);
|
|
7379
7406
|
};
|
|
7380
7407
|
|
|
7381
|
-
// node_modules/.bun/effect@3.22.
|
|
7408
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Predicate.js
|
|
7382
7409
|
var isString = (input) => typeof input === "string";
|
|
7383
7410
|
var isNumber = (input) => typeof input === "number";
|
|
7384
7411
|
var isBoolean = (input) => typeof input === "boolean";
|
|
@@ -7399,10 +7426,10 @@ var isIterable = (input) => typeof input === "string" || hasProperty(input, Symb
|
|
|
7399
7426
|
var isRecord = (input) => isRecordOrArray(input) && !Array.isArray(input);
|
|
7400
7427
|
var isPromiseLike = (input) => hasProperty(input, "then") && isFunction2(input.then);
|
|
7401
7428
|
|
|
7402
|
-
// node_modules/.bun/effect@3.22.
|
|
7429
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/errors.js
|
|
7403
7430
|
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
7404
7431
|
|
|
7405
|
-
// node_modules/.bun/effect@3.22.
|
|
7432
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Utils.js
|
|
7406
7433
|
class SingleShotGen {
|
|
7407
7434
|
self;
|
|
7408
7435
|
called = false;
|
|
@@ -7559,7 +7586,7 @@ var isNotOptimizedAway = /* @__PURE__ */ standard.effect_internal_function(() =>
|
|
|
7559
7586
|
var internalCall = isNotOptimizedAway ? standard.effect_internal_function : forced.effect_internal_function;
|
|
7560
7587
|
var genConstructor = function* () {}.constructor;
|
|
7561
7588
|
|
|
7562
|
-
// node_modules/.bun/effect@3.22.
|
|
7589
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Hash.js
|
|
7563
7590
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
|
|
7564
7591
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
7565
7592
|
var hash = (self) => {
|
|
@@ -7668,7 +7695,7 @@ var cached = function() {
|
|
|
7668
7695
|
return hash;
|
|
7669
7696
|
};
|
|
7670
7697
|
|
|
7671
|
-
// node_modules/.bun/effect@3.22.
|
|
7698
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Equal.js
|
|
7672
7699
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
7673
7700
|
function equals() {
|
|
7674
7701
|
if (arguments.length === 1) {
|
|
@@ -7727,7 +7754,7 @@ function compareBoth(self, that) {
|
|
|
7727
7754
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
7728
7755
|
var equivalence = () => equals;
|
|
7729
7756
|
|
|
7730
|
-
// node_modules/.bun/effect@3.22.
|
|
7757
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Inspectable.js
|
|
7731
7758
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
7732
7759
|
var toJSON = (x) => {
|
|
7733
7760
|
try {
|
|
@@ -7887,7 +7914,7 @@ var redact = (u) => {
|
|
|
7887
7914
|
return u;
|
|
7888
7915
|
};
|
|
7889
7916
|
|
|
7890
|
-
// node_modules/.bun/effect@3.22.
|
|
7917
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Pipeable.js
|
|
7891
7918
|
var pipeArguments = (self, args) => {
|
|
7892
7919
|
switch (args.length) {
|
|
7893
7920
|
case 0:
|
|
@@ -7920,7 +7947,7 @@ var pipeArguments = (self, args) => {
|
|
|
7920
7947
|
}
|
|
7921
7948
|
};
|
|
7922
7949
|
|
|
7923
|
-
// node_modules/.bun/effect@3.22.
|
|
7950
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/effect.js
|
|
7924
7951
|
var OP_ASYNC = "Async";
|
|
7925
7952
|
var OP_COMMIT = "Commit";
|
|
7926
7953
|
var OP_FAILURE = "Failure";
|
|
@@ -7937,11 +7964,11 @@ var OP_WITH_RUNTIME = "WithRuntime";
|
|
|
7937
7964
|
var OP_YIELD = "Yield";
|
|
7938
7965
|
var OP_REVERT_FLAGS = "RevertFlags";
|
|
7939
7966
|
|
|
7940
|
-
// node_modules/.bun/effect@3.22.
|
|
7941
|
-
var moduleVersion = "3.22.
|
|
7967
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/version.js
|
|
7968
|
+
var moduleVersion = "3.22.3";
|
|
7942
7969
|
var getCurrentVersion = () => moduleVersion;
|
|
7943
7970
|
|
|
7944
|
-
// node_modules/.bun/effect@3.22.
|
|
7971
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/effectable.js
|
|
7945
7972
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
7946
7973
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
7947
7974
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -8018,7 +8045,7 @@ var Base = /* @__PURE__ */ function() {
|
|
|
8018
8045
|
return Base;
|
|
8019
8046
|
}();
|
|
8020
8047
|
|
|
8021
|
-
// node_modules/.bun/effect@3.22.
|
|
8048
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/option.js
|
|
8022
8049
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
8023
8050
|
var CommonProto = {
|
|
8024
8051
|
...EffectPrototype,
|
|
@@ -8076,7 +8103,7 @@ var some = (value) => {
|
|
|
8076
8103
|
return a;
|
|
8077
8104
|
};
|
|
8078
8105
|
|
|
8079
|
-
// node_modules/.bun/effect@3.22.
|
|
8106
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/either.js
|
|
8080
8107
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
8081
8108
|
var CommonProto2 = {
|
|
8082
8109
|
...EffectPrototype,
|
|
@@ -8140,7 +8167,7 @@ var right = (right) => {
|
|
|
8140
8167
|
var getRight = (self) => isLeft(self) ? none : some(self.right);
|
|
8141
8168
|
var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? left(onNone()) : right(self.value));
|
|
8142
8169
|
|
|
8143
|
-
// node_modules/.bun/effect@3.22.
|
|
8170
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Either.js
|
|
8144
8171
|
var right2 = right;
|
|
8145
8172
|
var left2 = left;
|
|
8146
8173
|
var fromOption2 = fromOption;
|
|
@@ -8188,10 +8215,10 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onLeft) => {
|
|
|
8188
8215
|
});
|
|
8189
8216
|
var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a Left"));
|
|
8190
8217
|
|
|
8191
|
-
// node_modules/.bun/effect@3.22.
|
|
8218
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/array.js
|
|
8192
8219
|
var isNonEmptyArray = (self) => self.length > 0;
|
|
8193
8220
|
|
|
8194
|
-
// node_modules/.bun/effect@3.22.
|
|
8221
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Order.js
|
|
8195
8222
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
8196
8223
|
var number3 = /* @__PURE__ */ make2((self, that) => self < that ? -1 : 1);
|
|
8197
8224
|
var reverse = (O) => make2((self, that) => O(that, self));
|
|
@@ -8199,7 +8226,7 @@ var mapInput2 = /* @__PURE__ */ dual(2, (self, f) => make2((b1, b2) => self(f(b1
|
|
|
8199
8226
|
var greaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
8200
8227
|
var min = (O) => dual(2, (self, that) => self === that || O(self, that) < 1 ? self : that);
|
|
8201
8228
|
|
|
8202
|
-
// node_modules/.bun/effect@3.22.
|
|
8229
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Option.js
|
|
8203
8230
|
var none2 = () => none;
|
|
8204
8231
|
var some2 = some;
|
|
8205
8232
|
var isOption2 = isOption;
|
|
@@ -8249,10 +8276,10 @@ var mergeWith = (f) => (o1, o2) => {
|
|
|
8249
8276
|
return some2(f(o1.value, o2.value));
|
|
8250
8277
|
};
|
|
8251
8278
|
|
|
8252
|
-
// node_modules/.bun/effect@3.22.
|
|
8279
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Tuple.js
|
|
8253
8280
|
var make3 = (...elements) => elements;
|
|
8254
8281
|
|
|
8255
|
-
// node_modules/.bun/effect@3.22.
|
|
8282
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Iterable.js
|
|
8256
8283
|
var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
8257
8284
|
let i = 0;
|
|
8258
8285
|
for (const a of self) {
|
|
@@ -8285,7 +8312,7 @@ var constEmptyIterator = {
|
|
|
8285
8312
|
};
|
|
8286
8313
|
var empty = () => constEmpty;
|
|
8287
8314
|
|
|
8288
|
-
// node_modules/.bun/effect@3.22.
|
|
8315
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Record.js
|
|
8289
8316
|
var fromEntries = Object.fromEntries;
|
|
8290
8317
|
var has = /* @__PURE__ */ dual(2, (self, key) => Object.prototype.hasOwnProperty.call(self, key));
|
|
8291
8318
|
var remove = /* @__PURE__ */ dual(2, (self, key) => {
|
|
@@ -8311,7 +8338,7 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
8311
8338
|
});
|
|
8312
8339
|
var keys = (self) => Object.keys(self);
|
|
8313
8340
|
|
|
8314
|
-
// node_modules/.bun/effect@3.22.
|
|
8341
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Array.js
|
|
8315
8342
|
var allocate = (n) => new Array(n);
|
|
8316
8343
|
var makeBy = /* @__PURE__ */ dual(2, (n, f) => {
|
|
8317
8344
|
const max = Math.max(1, Math.floor(n));
|
|
@@ -8493,7 +8520,7 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
8493
8520
|
});
|
|
8494
8521
|
var dedupe = (self) => dedupeWith(self, equivalence());
|
|
8495
8522
|
var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable(self).join(sep));
|
|
8496
|
-
// node_modules/.bun/effect@3.22.
|
|
8523
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Chunk.js
|
|
8497
8524
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Chunk");
|
|
8498
8525
|
function copy2(src, srcPos, dest, destPos, len) {
|
|
8499
8526
|
for (let i = srcPos;i < Math.min(src.length, srcPos + len); i++) {
|
|
@@ -8871,14 +8898,14 @@ var tailNonEmpty2 = (self) => drop2(self, 1);
|
|
|
8871
8898
|
var takeRight2 = /* @__PURE__ */ dual(2, (self, n) => drop2(self, self.length - n));
|
|
8872
8899
|
var reduce2 = reduce;
|
|
8873
8900
|
|
|
8874
|
-
// node_modules/.bun/effect@3.22.
|
|
8901
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/hashMap/config.js
|
|
8875
8902
|
var SIZE = 5;
|
|
8876
8903
|
var BUCKET_SIZE = /* @__PURE__ */ Math.pow(2, SIZE);
|
|
8877
8904
|
var MASK = BUCKET_SIZE - 1;
|
|
8878
8905
|
var MAX_INDEX_NODE = BUCKET_SIZE / 2;
|
|
8879
8906
|
var MIN_ARRAY_NODE = BUCKET_SIZE / 4;
|
|
8880
8907
|
|
|
8881
|
-
// node_modules/.bun/effect@3.22.
|
|
8908
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/hashMap/bitwise.js
|
|
8882
8909
|
function popcount(x) {
|
|
8883
8910
|
x -= x >> 1 & 1431655765;
|
|
8884
8911
|
x = (x & 858993459) + (x >> 2 & 858993459);
|
|
@@ -8897,13 +8924,13 @@ function fromBitmap(bitmap, bit) {
|
|
|
8897
8924
|
return popcount(bitmap & bit - 1);
|
|
8898
8925
|
}
|
|
8899
8926
|
|
|
8900
|
-
// node_modules/.bun/effect@3.22.
|
|
8927
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/stack.js
|
|
8901
8928
|
var make5 = (value, previous) => ({
|
|
8902
8929
|
value,
|
|
8903
8930
|
previous
|
|
8904
8931
|
});
|
|
8905
8932
|
|
|
8906
|
-
// node_modules/.bun/effect@3.22.
|
|
8933
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/hashMap/array.js
|
|
8907
8934
|
function arrayUpdate(mutate, at, v, arr) {
|
|
8908
8935
|
let out = arr;
|
|
8909
8936
|
if (!mutate) {
|
|
@@ -8954,7 +8981,7 @@ function arraySpliceIn(mutate, at, v, arr) {
|
|
|
8954
8981
|
return out;
|
|
8955
8982
|
}
|
|
8956
8983
|
|
|
8957
|
-
// node_modules/.bun/effect@3.22.
|
|
8984
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/hashMap/node.js
|
|
8958
8985
|
class EmptyNode {
|
|
8959
8986
|
_tag = "EmptyNode";
|
|
8960
8987
|
modify(edit, _shift, f, hash, key, size) {
|
|
@@ -9206,7 +9233,7 @@ function mergeLeaves(edit, shift, h1, n1, h2, n2) {
|
|
|
9206
9233
|
}
|
|
9207
9234
|
}
|
|
9208
9235
|
|
|
9209
|
-
// node_modules/.bun/effect@3.22.
|
|
9236
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/hashMap.js
|
|
9210
9237
|
var HashMapSymbolKey = "effect/HashMap";
|
|
9211
9238
|
var HashMapTypeId = /* @__PURE__ */ Symbol.for(HashMapSymbolKey);
|
|
9212
9239
|
var HashMapProto = {
|
|
@@ -9435,7 +9462,7 @@ var reduce3 = /* @__PURE__ */ dual(3, (self, zero, f) => {
|
|
|
9435
9462
|
return zero;
|
|
9436
9463
|
});
|
|
9437
9464
|
|
|
9438
|
-
// node_modules/.bun/effect@3.22.
|
|
9465
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/hashSet.js
|
|
9439
9466
|
var HashSetSymbolKey = "effect/HashSet";
|
|
9440
9467
|
var HashSetTypeId = /* @__PURE__ */ Symbol.for(HashSetSymbolKey);
|
|
9441
9468
|
var HashSetProto = {
|
|
@@ -9541,7 +9568,7 @@ var filter4 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
9541
9568
|
});
|
|
9542
9569
|
});
|
|
9543
9570
|
|
|
9544
|
-
// node_modules/.bun/effect@3.22.
|
|
9571
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/HashSet.js
|
|
9545
9572
|
var empty6 = empty5;
|
|
9546
9573
|
var fromIterable5 = fromIterable4;
|
|
9547
9574
|
var make7 = make6;
|
|
@@ -9555,7 +9582,7 @@ var union3 = union2;
|
|
|
9555
9582
|
var reduce5 = reduce4;
|
|
9556
9583
|
var filter5 = filter4;
|
|
9557
9584
|
|
|
9558
|
-
// node_modules/.bun/effect@3.22.
|
|
9585
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/cause.js
|
|
9559
9586
|
var OP_DIE = "Die";
|
|
9560
9587
|
var OP_EMPTY = "Empty";
|
|
9561
9588
|
var OP_FAIL = "Fail";
|
|
@@ -9563,7 +9590,7 @@ var OP_INTERRUPT = "Interrupt";
|
|
|
9563
9590
|
var OP_PARALLEL = "Parallel";
|
|
9564
9591
|
var OP_SEQUENTIAL = "Sequential";
|
|
9565
9592
|
|
|
9566
|
-
// node_modules/.bun/effect@3.22.
|
|
9593
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/cause.js
|
|
9567
9594
|
var CauseSymbolKey = "effect/Cause";
|
|
9568
9595
|
var CauseTypeId = /* @__PURE__ */ Symbol.for(CauseSymbolKey);
|
|
9569
9596
|
var variance = {
|
|
@@ -10144,7 +10171,7 @@ var prettyErrors = (cause) => reduceWithContext(cause, undefined, {
|
|
|
10144
10171
|
sequentialCase: (_, l, r) => [...l, ...r]
|
|
10145
10172
|
});
|
|
10146
10173
|
|
|
10147
|
-
// node_modules/.bun/effect@3.22.
|
|
10174
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/context.js
|
|
10148
10175
|
var TagTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Tag");
|
|
10149
10176
|
var ReferenceTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Reference");
|
|
10150
10177
|
var STMSymbolKey = "effect/STM";
|
|
@@ -10351,7 +10378,7 @@ var omit = (...tags) => (self) => {
|
|
|
10351
10378
|
return makeContext(newEnv);
|
|
10352
10379
|
};
|
|
10353
10380
|
|
|
10354
|
-
// node_modules/.bun/effect@3.22.
|
|
10381
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Context.js
|
|
10355
10382
|
var GenericTag = makeGenericTag;
|
|
10356
10383
|
var isContext2 = isContext;
|
|
10357
10384
|
var isTag2 = isTag;
|
|
@@ -10367,7 +10394,7 @@ var omit2 = omit;
|
|
|
10367
10394
|
var Tag2 = Tag;
|
|
10368
10395
|
var Reference2 = Reference;
|
|
10369
10396
|
|
|
10370
|
-
// node_modules/.bun/effect@3.22.
|
|
10397
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Duration.js
|
|
10371
10398
|
var TypeId5 = /* @__PURE__ */ Symbol.for("effect/Duration");
|
|
10372
10399
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
10373
10400
|
var bigint24 = /* @__PURE__ */ BigInt(24);
|
|
@@ -10653,7 +10680,7 @@ var format2 = (self) => {
|
|
|
10653
10680
|
return pieces.join(" ");
|
|
10654
10681
|
};
|
|
10655
10682
|
|
|
10656
|
-
// node_modules/.bun/effect@3.22.
|
|
10683
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/MutableRef.js
|
|
10657
10684
|
var TypeId6 = /* @__PURE__ */ Symbol.for("effect/MutableRef");
|
|
10658
10685
|
var MutableRefProto = {
|
|
10659
10686
|
[TypeId6]: TypeId6,
|
|
@@ -10691,7 +10718,7 @@ var set2 = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
10691
10718
|
return self;
|
|
10692
10719
|
});
|
|
10693
10720
|
|
|
10694
|
-
// node_modules/.bun/effect@3.22.
|
|
10721
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/fiberId.js
|
|
10695
10722
|
var FiberIdSymbolKey = "effect/FiberId";
|
|
10696
10723
|
var FiberIdTypeId = /* @__PURE__ */ Symbol.for(FiberIdSymbolKey);
|
|
10697
10724
|
var OP_NONE = "None";
|
|
@@ -10833,7 +10860,7 @@ var unsafeMake = () => {
|
|
|
10833
10860
|
return new Runtime(id, Date.now());
|
|
10834
10861
|
};
|
|
10835
10862
|
|
|
10836
|
-
// node_modules/.bun/effect@3.22.
|
|
10863
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/FiberId.js
|
|
10837
10864
|
var none4 = none3;
|
|
10838
10865
|
var runtime2 = runtime;
|
|
10839
10866
|
var composite2 = composite;
|
|
@@ -10844,7 +10871,7 @@ var make13 = make12;
|
|
|
10844
10871
|
var threadName2 = threadName;
|
|
10845
10872
|
var unsafeMake2 = unsafeMake;
|
|
10846
10873
|
|
|
10847
|
-
// node_modules/.bun/effect@3.22.
|
|
10874
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/HashMap.js
|
|
10848
10875
|
var empty10 = empty4;
|
|
10849
10876
|
var fromIterable6 = fromIterable3;
|
|
10850
10877
|
var isEmpty4 = isEmpty2;
|
|
@@ -10860,7 +10887,7 @@ var map10 = map6;
|
|
|
10860
10887
|
var forEach3 = forEach;
|
|
10861
10888
|
var reduce7 = reduce3;
|
|
10862
10889
|
|
|
10863
|
-
// node_modules/.bun/effect@3.22.
|
|
10890
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/List.js
|
|
10864
10891
|
var TypeId7 = /* @__PURE__ */ Symbol.for("effect/List");
|
|
10865
10892
|
var toArray3 = (self) => fromIterable(self);
|
|
10866
10893
|
var getEquivalence4 = (isEquivalent) => mapInput(getEquivalence2(isEquivalent), toArray3);
|
|
@@ -11010,7 +11037,7 @@ var reverse4 = (self) => {
|
|
|
11010
11037
|
return result;
|
|
11011
11038
|
};
|
|
11012
11039
|
|
|
11013
|
-
// node_modules/.bun/effect@3.22.
|
|
11040
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/data.js
|
|
11014
11041
|
var ArrayProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Array.prototype), {
|
|
11015
11042
|
[symbol]() {
|
|
11016
11043
|
return cached(this, array2(this));
|
|
@@ -11034,7 +11061,7 @@ var Structural = /* @__PURE__ */ function() {
|
|
|
11034
11061
|
}();
|
|
11035
11062
|
var struct = (as) => Object.assign(Object.create(StructuralPrototype), as);
|
|
11036
11063
|
|
|
11037
|
-
// node_modules/.bun/effect@3.22.
|
|
11064
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/differ/contextPatch.js
|
|
11038
11065
|
var ContextPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferContextPatch");
|
|
11039
11066
|
function variance2(a) {
|
|
11040
11067
|
return a;
|
|
@@ -11160,7 +11187,7 @@ var patch = /* @__PURE__ */ dual(2, (self, context) => {
|
|
|
11160
11187
|
return makeContext(map);
|
|
11161
11188
|
});
|
|
11162
11189
|
|
|
11163
|
-
// node_modules/.bun/effect@3.22.
|
|
11190
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/differ/hashSetPatch.js
|
|
11164
11191
|
var HashSetPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferHashSetPatch");
|
|
11165
11192
|
function variance3(a) {
|
|
11166
11193
|
return a;
|
|
@@ -11245,7 +11272,7 @@ var patch2 = /* @__PURE__ */ dual(2, (self, oldValue) => {
|
|
|
11245
11272
|
return set;
|
|
11246
11273
|
});
|
|
11247
11274
|
|
|
11248
|
-
// node_modules/.bun/effect@3.22.
|
|
11275
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
|
|
11249
11276
|
var ReadonlyArrayPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferReadonlyArrayPatch");
|
|
11250
11277
|
function variance4(a) {
|
|
11251
11278
|
return a;
|
|
@@ -11359,7 +11386,7 @@ var patch3 = /* @__PURE__ */ dual(3, (self, oldValue, differ) => {
|
|
|
11359
11386
|
return readonlyArray;
|
|
11360
11387
|
});
|
|
11361
11388
|
|
|
11362
|
-
// node_modules/.bun/effect@3.22.
|
|
11389
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/differ.js
|
|
11363
11390
|
var DifferTypeId = /* @__PURE__ */ Symbol.for("effect/Differ");
|
|
11364
11391
|
var DifferProto = {
|
|
11365
11392
|
[DifferTypeId]: {
|
|
@@ -11421,7 +11448,7 @@ var updateWith = (f) => make15({
|
|
|
11421
11448
|
patch: (patch, oldValue) => f(oldValue, patch(oldValue))
|
|
11422
11449
|
});
|
|
11423
11450
|
|
|
11424
|
-
// node_modules/.bun/effect@3.22.
|
|
11451
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/runtimeFlagsPatch.js
|
|
11425
11452
|
var BIT_MASK = 255;
|
|
11426
11453
|
var BIT_SHIFT = 8;
|
|
11427
11454
|
var active = (patch) => patch & BIT_MASK;
|
|
@@ -11434,7 +11461,7 @@ var exclude = /* @__PURE__ */ dual(2, (self, flag) => make16(active(self) & ~fla
|
|
|
11434
11461
|
var andThen = /* @__PURE__ */ dual(2, (self, that) => self | that);
|
|
11435
11462
|
var invert = (n) => ~n >>> 0 & BIT_MASK;
|
|
11436
11463
|
|
|
11437
|
-
// node_modules/.bun/effect@3.22.
|
|
11464
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/runtimeFlags.js
|
|
11438
11465
|
var None2 = 0;
|
|
11439
11466
|
var Interruption = 1 << 0;
|
|
11440
11467
|
var OpSupervision = 1 << 1;
|
|
@@ -11460,12 +11487,12 @@ var differ = /* @__PURE__ */ make15({
|
|
|
11460
11487
|
patch: (_patch, oldValue) => patch4(oldValue, _patch)
|
|
11461
11488
|
});
|
|
11462
11489
|
|
|
11463
|
-
// node_modules/.bun/effect@3.22.
|
|
11490
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/RuntimeFlagsPatch.js
|
|
11464
11491
|
var enable3 = enable;
|
|
11465
11492
|
var disable3 = disable;
|
|
11466
11493
|
var exclude2 = exclude;
|
|
11467
11494
|
|
|
11468
|
-
// node_modules/.bun/effect@3.22.
|
|
11495
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/blockedRequests.js
|
|
11469
11496
|
var par = (self, that) => ({
|
|
11470
11497
|
_tag: "Par",
|
|
11471
11498
|
left: self,
|
|
@@ -11608,11 +11635,11 @@ var sequentialCollectionCombine = (self, that) => new SequentialImpl(reduce7(tha
|
|
|
11608
11635
|
var sequentialCollectionKeys = (self) => Array.from(keys3(self.map));
|
|
11609
11636
|
var sequentialCollectionToChunk = (self) => Array.from(self.map);
|
|
11610
11637
|
|
|
11611
|
-
// node_modules/.bun/effect@3.22.
|
|
11638
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/deferred.js
|
|
11612
11639
|
var OP_STATE_PENDING = "Pending";
|
|
11613
11640
|
var OP_STATE_DONE = "Done";
|
|
11614
11641
|
|
|
11615
|
-
// node_modules/.bun/effect@3.22.
|
|
11642
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/deferred.js
|
|
11616
11643
|
var DeferredSymbolKey = "effect/Deferred";
|
|
11617
11644
|
var DeferredTypeId = /* @__PURE__ */ Symbol.for(DeferredSymbolKey);
|
|
11618
11645
|
var deferredVariance = {
|
|
@@ -11632,7 +11659,7 @@ var done = (effect) => {
|
|
|
11632
11659
|
};
|
|
11633
11660
|
};
|
|
11634
11661
|
|
|
11635
|
-
// node_modules/.bun/effect@3.22.
|
|
11662
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/singleShotGen.js
|
|
11636
11663
|
class SingleShotGen2 {
|
|
11637
11664
|
self;
|
|
11638
11665
|
called = false;
|
|
@@ -11662,7 +11689,7 @@ class SingleShotGen2 {
|
|
|
11662
11689
|
}
|
|
11663
11690
|
}
|
|
11664
11691
|
|
|
11665
|
-
// node_modules/.bun/effect@3.22.
|
|
11692
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/core.js
|
|
11666
11693
|
var blocked = (blockedRequests, _continue) => {
|
|
11667
11694
|
const effect = new EffectPrimitive("Blocked");
|
|
11668
11695
|
effect.effect_instruction_i0 = blockedRequests;
|
|
@@ -12703,7 +12730,7 @@ var NoopSpanProto = {
|
|
|
12703
12730
|
};
|
|
12704
12731
|
var noopSpan = (options) => Object.assign(Object.create(NoopSpanProto), options);
|
|
12705
12732
|
|
|
12706
|
-
// node_modules/.bun/effect@3.22.
|
|
12733
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Cause.js
|
|
12707
12734
|
var empty16 = empty7;
|
|
12708
12735
|
var fail3 = fail;
|
|
12709
12736
|
var die3 = die;
|
|
@@ -12724,7 +12751,7 @@ var reduceWithContext2 = reduceWithContext;
|
|
|
12724
12751
|
var NoSuchElementException2 = NoSuchElementException;
|
|
12725
12752
|
var isTimeoutException2 = isTimeoutException;
|
|
12726
12753
|
var pretty2 = pretty;
|
|
12727
|
-
// node_modules/.bun/effect@3.22.
|
|
12754
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/clock.js
|
|
12728
12755
|
var ClockSymbolKey = "effect/Clock";
|
|
12729
12756
|
var ClockTypeId = /* @__PURE__ */ Symbol.for(ClockSymbolKey);
|
|
12730
12757
|
var clockTag = /* @__PURE__ */ GenericTag("effect/Clock");
|
|
@@ -12790,17 +12817,17 @@ class ClockImpl {
|
|
|
12790
12817
|
}
|
|
12791
12818
|
var make19 = () => new ClockImpl;
|
|
12792
12819
|
|
|
12793
|
-
// node_modules/.bun/effect@3.22.
|
|
12820
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Number.js
|
|
12794
12821
|
var Order = number3;
|
|
12795
12822
|
var nextPow2 = (n) => {
|
|
12796
12823
|
const nextPow = Math.ceil(Math.log(n) / Math.log(2));
|
|
12797
12824
|
return Math.max(Math.pow(2, nextPow), 2);
|
|
12798
12825
|
};
|
|
12799
12826
|
|
|
12800
|
-
// node_modules/.bun/effect@3.22.
|
|
12827
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/RegExp.js
|
|
12801
12828
|
var escape = (string) => string.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
12802
12829
|
|
|
12803
|
-
// node_modules/.bun/effect@3.22.
|
|
12830
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/configError.js
|
|
12804
12831
|
var OP_AND = "And";
|
|
12805
12832
|
var OP_OR = "Or";
|
|
12806
12833
|
var OP_INVALID_DATA = "InvalidData";
|
|
@@ -12808,7 +12835,7 @@ var OP_MISSING_DATA = "MissingData";
|
|
|
12808
12835
|
var OP_SOURCE_UNAVAILABLE = "SourceUnavailable";
|
|
12809
12836
|
var OP_UNSUPPORTED = "Unsupported";
|
|
12810
12837
|
|
|
12811
|
-
// node_modules/.bun/effect@3.22.
|
|
12838
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/configError.js
|
|
12812
12839
|
var ConfigErrorSymbolKey = "effect/ConfigError";
|
|
12813
12840
|
var ConfigErrorTypeId = /* @__PURE__ */ Symbol.for(ConfigErrorSymbolKey);
|
|
12814
12841
|
var proto2 = {
|
|
@@ -13024,7 +13051,7 @@ var reduceWithContext3 = /* @__PURE__ */ dual(3, (self, context, reducer) => {
|
|
|
13024
13051
|
});
|
|
13025
13052
|
var isMissingDataOnly = (self) => reduceWithContext3(self, undefined, IsMissingDataOnlyReducer);
|
|
13026
13053
|
|
|
13027
|
-
// node_modules/.bun/effect@3.22.
|
|
13054
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
|
|
13028
13055
|
var empty17 = {
|
|
13029
13056
|
_tag: "Empty"
|
|
13030
13057
|
};
|
|
@@ -13067,7 +13094,7 @@ var patch5 = /* @__PURE__ */ dual(2, (path, patch) => {
|
|
|
13067
13094
|
return right2(output);
|
|
13068
13095
|
});
|
|
13069
13096
|
|
|
13070
|
-
// node_modules/.bun/effect@3.22.
|
|
13097
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/config.js
|
|
13071
13098
|
var OP_CONSTANT = "Constant";
|
|
13072
13099
|
var OP_FAIL2 = "Fail";
|
|
13073
13100
|
var OP_FALLBACK = "Fallback";
|
|
@@ -13081,7 +13108,7 @@ var OP_SEQUENCE = "Sequence";
|
|
|
13081
13108
|
var OP_HASHMAP = "HashMap";
|
|
13082
13109
|
var OP_ZIP_WITH = "ZipWith";
|
|
13083
13110
|
|
|
13084
|
-
// node_modules/.bun/effect@3.22.
|
|
13111
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/configProvider.js
|
|
13085
13112
|
var concat = (l, r) => [...l, ...r];
|
|
13086
13113
|
var ConfigProviderSymbolKey = "effect/ConfigProvider";
|
|
13087
13114
|
var ConfigProviderTypeId = /* @__PURE__ */ Symbol.for(ConfigProviderSymbolKey);
|
|
@@ -13297,7 +13324,7 @@ var parseInteger = (str) => {
|
|
|
13297
13324
|
return Number.isNaN(parsedIndex) ? none2() : some2(parsedIndex);
|
|
13298
13325
|
};
|
|
13299
13326
|
|
|
13300
|
-
// node_modules/.bun/effect@3.22.
|
|
13327
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/defaultServices/console.js
|
|
13301
13328
|
var TypeId8 = /* @__PURE__ */ Symbol.for("effect/Console");
|
|
13302
13329
|
var consoleTag = /* @__PURE__ */ GenericTag("effect/Console");
|
|
13303
13330
|
var defaultConsole = {
|
|
@@ -13385,7 +13412,7 @@ var defaultConsole = {
|
|
|
13385
13412
|
unsafe: console
|
|
13386
13413
|
};
|
|
13387
13414
|
|
|
13388
|
-
// node_modules/.bun/effect@3.22.
|
|
13415
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/random.js
|
|
13389
13416
|
var RandomSymbolKey = "effect/Random";
|
|
13390
13417
|
var RandomTypeId = /* @__PURE__ */ Symbol.for(RandomSymbolKey);
|
|
13391
13418
|
var randomTag = /* @__PURE__ */ GenericTag("effect/Random");
|
|
@@ -13434,7 +13461,7 @@ var swap = (buffer, index1, index2) => {
|
|
|
13434
13461
|
};
|
|
13435
13462
|
var make22 = (seed) => new RandomImpl(hash(seed));
|
|
13436
13463
|
|
|
13437
|
-
// node_modules/.bun/effect@3.22.
|
|
13464
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/tracer.js
|
|
13438
13465
|
var TracerTypeId = /* @__PURE__ */ Symbol.for("effect/Tracer");
|
|
13439
13466
|
var make23 = (options) => ({
|
|
13440
13467
|
[TracerTypeId]: TracerTypeId,
|
|
@@ -13537,7 +13564,7 @@ var DisablePropagation = /* @__PURE__ */ Reference2()("effect/Tracer/DisableProp
|
|
|
13537
13564
|
defaultValue: constFalse
|
|
13538
13565
|
});
|
|
13539
13566
|
|
|
13540
|
-
// node_modules/.bun/effect@3.22.
|
|
13567
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/defaultServices.js
|
|
13541
13568
|
var liveServices = /* @__PURE__ */ pipe(/* @__PURE__ */ empty9(), /* @__PURE__ */ add4(clockTag, /* @__PURE__ */ make19()), /* @__PURE__ */ add4(consoleTag, defaultConsole), /* @__PURE__ */ add4(randomTag, /* @__PURE__ */ make22(/* @__PURE__ */ Math.random())), /* @__PURE__ */ add4(configProviderTag, /* @__PURE__ */ fromEnv()), /* @__PURE__ */ add4(tracerTag, nativeTracer));
|
|
13542
13569
|
var currentServices = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/DefaultServices/currentServices"), () => fiberRefUnsafeMakeContext(liveServices));
|
|
13543
13570
|
var sleep = (duration) => {
|
|
@@ -13550,16 +13577,17 @@ var currentTimeMillis = /* @__PURE__ */ clockWith((clock) => clock.currentTimeMi
|
|
|
13550
13577
|
var configProviderWith = (f) => defaultServicesWith((services) => f(services.unsafeMap.get(configProviderTag.key)));
|
|
13551
13578
|
var config = (config) => configProviderWith((_) => _.load(config));
|
|
13552
13579
|
|
|
13553
|
-
// node_modules/.bun/effect@3.22.
|
|
13580
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Clock.js
|
|
13554
13581
|
var sleep2 = sleep;
|
|
13555
13582
|
var currentTimeMillis2 = currentTimeMillis;
|
|
13583
|
+
var clockWith2 = clockWith;
|
|
13556
13584
|
var Clock = clockTag;
|
|
13557
|
-
// node_modules/.bun/effect@3.22.
|
|
13585
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/ConfigError.js
|
|
13558
13586
|
var MissingData2 = MissingData;
|
|
13559
13587
|
var InvalidData2 = InvalidData;
|
|
13560
13588
|
var isMissingDataOnly2 = isMissingDataOnly;
|
|
13561
13589
|
|
|
13562
|
-
// node_modules/.bun/effect@3.22.
|
|
13590
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/redacted.js
|
|
13563
13591
|
var RedactedSymbolKey = "effect/Redacted";
|
|
13564
13592
|
var redactedRegistry = /* @__PURE__ */ globalValue("effect/Redacted/redactedRegistry", () => new WeakMap);
|
|
13565
13593
|
var RedactedTypeId = /* @__PURE__ */ Symbol.for(RedactedSymbolKey);
|
|
@@ -13600,7 +13628,7 @@ var value = (self) => {
|
|
|
13600
13628
|
}
|
|
13601
13629
|
};
|
|
13602
13630
|
|
|
13603
|
-
// node_modules/.bun/effect@3.22.
|
|
13631
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/config.js
|
|
13604
13632
|
var ConfigSymbolKey = "effect/Config";
|
|
13605
13633
|
var ConfigTypeId = /* @__PURE__ */ Symbol.for(ConfigSymbolKey);
|
|
13606
13634
|
var configVariance = {
|
|
@@ -13740,7 +13768,7 @@ var zipWith3 = /* @__PURE__ */ dual(3, (self, that, f) => {
|
|
|
13740
13768
|
return zipWith;
|
|
13741
13769
|
});
|
|
13742
13770
|
|
|
13743
|
-
// node_modules/.bun/effect@3.22.
|
|
13771
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Config.js
|
|
13744
13772
|
var all3 = all2;
|
|
13745
13773
|
var map14 = map13;
|
|
13746
13774
|
var mapOrFail2 = mapOrFail;
|
|
@@ -13751,9 +13779,9 @@ var string4 = string3;
|
|
|
13751
13779
|
var nonEmptyString2 = nonEmptyString;
|
|
13752
13780
|
var validate2 = validate;
|
|
13753
13781
|
var withDefault2 = withDefault;
|
|
13754
|
-
// node_modules/.bun/effect@3.22.
|
|
13782
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/ConfigProvider.js
|
|
13755
13783
|
var fromEnv2 = fromEnv;
|
|
13756
|
-
// node_modules/.bun/effect@3.22.
|
|
13784
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Data.js
|
|
13757
13785
|
var struct3 = struct;
|
|
13758
13786
|
var tagged = (tag) => (args) => {
|
|
13759
13787
|
const value = args === undefined ? Object.create(StructuralPrototype) : struct3(args);
|
|
@@ -13816,7 +13844,7 @@ var TaggedError = (tag) => {
|
|
|
13816
13844
|
O.BaseEffectError.prototype.name = tag;
|
|
13817
13845
|
return O.BaseEffectError;
|
|
13818
13846
|
};
|
|
13819
|
-
// node_modules/.bun/effect@3.22.
|
|
13847
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Deferred.js
|
|
13820
13848
|
var DeferredTypeId2 = DeferredTypeId;
|
|
13821
13849
|
var make25 = deferredMake;
|
|
13822
13850
|
var _await = deferredAwait;
|
|
@@ -13829,13 +13857,13 @@ var isDone = deferredIsDone;
|
|
|
13829
13857
|
var poll = deferredPoll;
|
|
13830
13858
|
var succeed3 = deferredSucceed;
|
|
13831
13859
|
var unsafeDone = deferredUnsafeDone;
|
|
13832
|
-
// node_modules/.bun/effect@3.22.
|
|
13860
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Effectable.js
|
|
13833
13861
|
var EffectPrototype2 = EffectPrototype;
|
|
13834
13862
|
var Base2 = Base;
|
|
13835
13863
|
class Class2 extends Base2 {
|
|
13836
13864
|
}
|
|
13837
13865
|
|
|
13838
|
-
// node_modules/.bun/effect@3.22.
|
|
13866
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/executionStrategy.js
|
|
13839
13867
|
var OP_SEQUENTIAL2 = "Sequential";
|
|
13840
13868
|
var OP_PARALLEL2 = "Parallel";
|
|
13841
13869
|
var OP_PARALLEL_N = "ParallelN";
|
|
@@ -13852,12 +13880,12 @@ var parallelN = (parallelism) => ({
|
|
|
13852
13880
|
var isSequential = (self) => self._tag === OP_SEQUENTIAL2;
|
|
13853
13881
|
var isParallel = (self) => self._tag === OP_PARALLEL2;
|
|
13854
13882
|
|
|
13855
|
-
// node_modules/.bun/effect@3.22.
|
|
13883
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/ExecutionStrategy.js
|
|
13856
13884
|
var sequential4 = sequential3;
|
|
13857
13885
|
var parallel4 = parallel3;
|
|
13858
13886
|
var parallelN2 = parallelN;
|
|
13859
13887
|
|
|
13860
|
-
// node_modules/.bun/effect@3.22.
|
|
13888
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/fiberRefs.js
|
|
13861
13889
|
function unsafeMake3(fiberRefLocals) {
|
|
13862
13890
|
return new FiberRefsImpl(fiberRefLocals);
|
|
13863
13891
|
}
|
|
@@ -14025,14 +14053,14 @@ var updateManyAs = /* @__PURE__ */ dual(2, (self, {
|
|
|
14025
14053
|
return new FiberRefsImpl(locals);
|
|
14026
14054
|
});
|
|
14027
14055
|
|
|
14028
|
-
// node_modules/.bun/effect@3.22.
|
|
14056
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/FiberRefs.js
|
|
14029
14057
|
var get9 = get8;
|
|
14030
14058
|
var getOrDefault2 = getOrDefault;
|
|
14031
14059
|
var updateAs2 = updateAs;
|
|
14032
14060
|
var updateManyAs2 = updateManyAs;
|
|
14033
14061
|
var empty19 = empty18;
|
|
14034
14062
|
|
|
14035
|
-
// node_modules/.bun/effect@3.22.
|
|
14063
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
|
|
14036
14064
|
var OP_EMPTY2 = "Empty";
|
|
14037
14065
|
var OP_ADD = "Add";
|
|
14038
14066
|
var OP_REMOVE = "Remove";
|
|
@@ -14122,11 +14150,11 @@ var patch6 = /* @__PURE__ */ dual(3, (self, fiberId, oldValue) => {
|
|
|
14122
14150
|
return fiberRefs;
|
|
14123
14151
|
});
|
|
14124
14152
|
|
|
14125
|
-
// node_modules/.bun/effect@3.22.
|
|
14153
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/FiberRefsPatch.js
|
|
14126
14154
|
var diff6 = diff5;
|
|
14127
14155
|
var patch7 = patch6;
|
|
14128
14156
|
|
|
14129
|
-
// node_modules/.bun/effect@3.22.
|
|
14157
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/fiberStatus.js
|
|
14130
14158
|
var FiberStatusSymbolKey = "effect/FiberStatus";
|
|
14131
14159
|
var FiberStatusTypeId = /* @__PURE__ */ Symbol.for(FiberStatusSymbolKey);
|
|
14132
14160
|
var OP_DONE = "Done";
|
|
@@ -14182,13 +14210,13 @@ var suspended = (runtimeFlags, blockingOn) => new Suspended(runtimeFlags, blocki
|
|
|
14182
14210
|
var isFiberStatus = (u) => hasProperty(u, FiberStatusTypeId);
|
|
14183
14211
|
var isDone2 = (self) => self._tag === OP_DONE;
|
|
14184
14212
|
|
|
14185
|
-
// node_modules/.bun/effect@3.22.
|
|
14213
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/FiberStatus.js
|
|
14186
14214
|
var done4 = done3;
|
|
14187
14215
|
var running2 = running;
|
|
14188
14216
|
var suspended2 = suspended;
|
|
14189
14217
|
var isDone3 = isDone2;
|
|
14190
14218
|
|
|
14191
|
-
// node_modules/.bun/effect@3.22.
|
|
14219
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/LogLevel.js
|
|
14192
14220
|
var All = logLevelAll;
|
|
14193
14221
|
var Fatal = logLevelFatal;
|
|
14194
14222
|
var Error3 = logLevelError;
|
|
@@ -14220,7 +14248,7 @@ var fromLiteral = (literal) => {
|
|
|
14220
14248
|
}
|
|
14221
14249
|
};
|
|
14222
14250
|
|
|
14223
|
-
// node_modules/.bun/effect@3.22.
|
|
14251
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Micro.js
|
|
14224
14252
|
var TypeId9 = /* @__PURE__ */ Symbol.for("effect/Micro");
|
|
14225
14253
|
var MicroExitTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroExit");
|
|
14226
14254
|
var MicroCauseTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroCause");
|
|
@@ -14671,7 +14699,7 @@ var runFork = (effect, options) => {
|
|
|
14671
14699
|
return fiber;
|
|
14672
14700
|
};
|
|
14673
14701
|
|
|
14674
|
-
// node_modules/.bun/effect@3.22.
|
|
14702
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Readable.js
|
|
14675
14703
|
var TypeId10 = /* @__PURE__ */ Symbol.for("effect/Readable");
|
|
14676
14704
|
var Proto = {
|
|
14677
14705
|
[TypeId10]: TypeId10,
|
|
@@ -14680,7 +14708,7 @@ var Proto = {
|
|
|
14680
14708
|
}
|
|
14681
14709
|
};
|
|
14682
14710
|
|
|
14683
|
-
// node_modules/.bun/effect@3.22.
|
|
14711
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/ref.js
|
|
14684
14712
|
var RefTypeId = /* @__PURE__ */ Symbol.for("effect/Ref");
|
|
14685
14713
|
var refVariance = {
|
|
14686
14714
|
_A: (_) => _
|
|
@@ -14718,7 +14746,7 @@ var getAndSet = /* @__PURE__ */ dual(2, (self, value) => self.modify((a) => [a,
|
|
|
14718
14746
|
var modify3 = /* @__PURE__ */ dual(2, (self, f) => self.modify(f));
|
|
14719
14747
|
var update2 = /* @__PURE__ */ dual(2, (self, f) => self.modify((a) => [undefined, f(a)]));
|
|
14720
14748
|
|
|
14721
|
-
// node_modules/.bun/effect@3.22.
|
|
14749
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Ref.js
|
|
14722
14750
|
var make27 = make26;
|
|
14723
14751
|
var get11 = get10;
|
|
14724
14752
|
var getAndSet2 = getAndSet;
|
|
@@ -14726,7 +14754,7 @@ var modify4 = modify3;
|
|
|
14726
14754
|
var set5 = set4;
|
|
14727
14755
|
var update3 = update2;
|
|
14728
14756
|
|
|
14729
|
-
// node_modules/.bun/effect@3.22.
|
|
14757
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Scheduler.js
|
|
14730
14758
|
class SchedulerRunner {
|
|
14731
14759
|
scheduleDrain;
|
|
14732
14760
|
running = false;
|
|
@@ -14847,10 +14875,10 @@ class SyncScheduler {
|
|
|
14847
14875
|
}
|
|
14848
14876
|
var currentScheduler = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentScheduler"), () => fiberRefUnsafeMake(defaultScheduler));
|
|
14849
14877
|
|
|
14850
|
-
// node_modules/.bun/effect@3.22.
|
|
14878
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/completedRequestMap.js
|
|
14851
14879
|
var currentRequestMap = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentRequestMap"), () => fiberRefUnsafeMake(new Map));
|
|
14852
14880
|
|
|
14853
|
-
// node_modules/.bun/effect@3.22.
|
|
14881
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/concurrency.js
|
|
14854
14882
|
var match7 = (concurrency, sequential, unbounded, bounded) => {
|
|
14855
14883
|
switch (concurrency) {
|
|
14856
14884
|
case undefined:
|
|
@@ -14864,17 +14892,17 @@ var match7 = (concurrency, sequential, unbounded, bounded) => {
|
|
|
14864
14892
|
}
|
|
14865
14893
|
};
|
|
14866
14894
|
|
|
14867
|
-
// node_modules/.bun/effect@3.22.
|
|
14895
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/logSpan.js
|
|
14868
14896
|
var formatLabel = (key) => key.replace(/[\s="]/g, "_");
|
|
14869
14897
|
var render = (now) => (self) => {
|
|
14870
14898
|
const label = formatLabel(self.label);
|
|
14871
14899
|
return `${label}=${now - self.startTime}ms`;
|
|
14872
14900
|
};
|
|
14873
14901
|
|
|
14874
|
-
// node_modules/.bun/effect@3.22.
|
|
14902
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Tracer.js
|
|
14875
14903
|
var ParentSpan = spanTag;
|
|
14876
14904
|
|
|
14877
|
-
// node_modules/.bun/effect@3.22.
|
|
14905
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/metric/label.js
|
|
14878
14906
|
var MetricLabelSymbolKey = "effect/MetricLabel";
|
|
14879
14907
|
var MetricLabelTypeId = /* @__PURE__ */ Symbol.for(MetricLabelSymbolKey);
|
|
14880
14908
|
|
|
@@ -14903,7 +14931,7 @@ var make28 = (key, value) => {
|
|
|
14903
14931
|
};
|
|
14904
14932
|
var isMetricLabel = (u) => hasProperty(u, MetricLabelTypeId);
|
|
14905
14933
|
|
|
14906
|
-
// node_modules/.bun/effect@3.22.
|
|
14934
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/core-effect.js
|
|
14907
14935
|
var annotateLogs = /* @__PURE__ */ dual((args) => isEffect(args[0]), function() {
|
|
14908
14936
|
const args = arguments;
|
|
14909
14937
|
return fiberRefLocallyWith(args[0], currentLogAnnotations, typeof args[1] === "string" ? set3(args[1], args[2]) : (annotations) => Object.entries(args[1]).reduce((acc, [key, value]) => set3(acc, key, value), annotations));
|
|
@@ -14963,6 +14991,7 @@ var catchTags = /* @__PURE__ */ dual(2, (self, cases) => {
|
|
|
14963
14991
|
return hasProperty(e, "_tag") && isString(e["_tag"]) && keys.includes(e["_tag"]);
|
|
14964
14992
|
}, (e) => cases[e["_tag"]](e));
|
|
14965
14993
|
});
|
|
14994
|
+
var clockWith3 = clockWith2;
|
|
14966
14995
|
var diffFiberRefs = (self) => summarized(self, fiberRefs2, diff5);
|
|
14967
14996
|
var diffFiberRefsAndRuntimeFlags = (self) => summarized(self, zip2(fiberRefs2, runtimeFlags), ([refs, flags], [refsNew, flagsNew]) => [diff5(refs, refsNew), diff4(flags, flagsNew)]);
|
|
14968
14997
|
var bind2 = /* @__PURE__ */ bind(map11, flatMap7);
|
|
@@ -15160,7 +15189,7 @@ var useSpan = (name, ...args) => {
|
|
|
15160
15189
|
};
|
|
15161
15190
|
var withParentSpan = /* @__PURE__ */ dual(2, (self, span) => provideService(self, spanTag, span));
|
|
15162
15191
|
|
|
15163
|
-
// node_modules/.bun/effect@3.22.
|
|
15192
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Exit.js
|
|
15164
15193
|
var isFailure2 = exitIsFailure;
|
|
15165
15194
|
var isSuccess = exitIsSuccess;
|
|
15166
15195
|
var all4 = exitCollectAll;
|
|
@@ -15175,7 +15204,7 @@ var void_3 = exitVoid;
|
|
|
15175
15204
|
var zip4 = exitZip;
|
|
15176
15205
|
var zipRight2 = exitZipRight;
|
|
15177
15206
|
|
|
15178
|
-
// node_modules/.bun/effect@3.22.
|
|
15207
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/fiberMessage.js
|
|
15179
15208
|
var OP_INTERRUPT_SIGNAL = "InterruptSignal";
|
|
15180
15209
|
var OP_STATEFUL = "Stateful";
|
|
15181
15210
|
var OP_RESUME = "Resume";
|
|
@@ -15196,7 +15225,7 @@ var yieldNow3 = () => ({
|
|
|
15196
15225
|
_tag: OP_YIELD_NOW
|
|
15197
15226
|
});
|
|
15198
15227
|
|
|
15199
|
-
// node_modules/.bun/effect@3.22.
|
|
15228
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/fiberScope.js
|
|
15200
15229
|
var FiberScopeSymbolKey = "effect/FiberScope";
|
|
15201
15230
|
var FiberScopeTypeId = /* @__PURE__ */ Symbol.for(FiberScopeSymbolKey);
|
|
15202
15231
|
|
|
@@ -15234,7 +15263,7 @@ var unsafeMake5 = (fiber) => {
|
|
|
15234
15263
|
};
|
|
15235
15264
|
var globalScope = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberScope/Global"), () => new Global);
|
|
15236
15265
|
|
|
15237
|
-
// node_modules/.bun/effect@3.22.
|
|
15266
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/fiber.js
|
|
15238
15267
|
var FiberSymbolKey = "effect/Fiber";
|
|
15239
15268
|
var FiberTypeId = /* @__PURE__ */ Symbol.for(FiberSymbolKey);
|
|
15240
15269
|
var fiberVariance2 = {
|
|
@@ -15283,7 +15312,7 @@ var _never = {
|
|
|
15283
15312
|
};
|
|
15284
15313
|
var currentFiberURI = "effect/FiberCurrent";
|
|
15285
15314
|
|
|
15286
|
-
// node_modules/.bun/effect@3.22.
|
|
15315
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/logger.js
|
|
15287
15316
|
var LoggerSymbolKey = "effect/Logger";
|
|
15288
15317
|
var LoggerTypeId = /* @__PURE__ */ Symbol.for(LoggerSymbolKey);
|
|
15289
15318
|
var loggerVariance = {
|
|
@@ -15531,7 +15560,7 @@ var prettyLoggerBrowser = (options) => {
|
|
|
15531
15560
|
};
|
|
15532
15561
|
var prettyLoggerDefault = /* @__PURE__ */ globalValue("effect/Logger/prettyLoggerDefault", () => prettyLogger());
|
|
15533
15562
|
|
|
15534
|
-
// node_modules/.bun/effect@3.22.
|
|
15563
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/metric/boundaries.js
|
|
15535
15564
|
var MetricBoundariesSymbolKey = "effect/MetricBoundaries";
|
|
15536
15565
|
var MetricBoundariesTypeId = /* @__PURE__ */ Symbol.for(MetricBoundariesSymbolKey);
|
|
15537
15566
|
|
|
@@ -15560,7 +15589,7 @@ var fromIterable7 = (iterable) => {
|
|
|
15560
15589
|
};
|
|
15561
15590
|
var exponential = (options) => pipe(makeBy(options.count - 1, (i) => options.start * Math.pow(options.factor, i)), unsafeFromArray, fromIterable7);
|
|
15562
15591
|
|
|
15563
|
-
// node_modules/.bun/effect@3.22.
|
|
15592
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/metric/keyType.js
|
|
15564
15593
|
var MetricKeyTypeSymbolKey = "effect/MetricKeyType";
|
|
15565
15594
|
var MetricKeyTypeTypeId = /* @__PURE__ */ Symbol.for(MetricKeyTypeSymbolKey);
|
|
15566
15595
|
var CounterKeyTypeSymbolKey = "effect/MetricKeyType/Counter";
|
|
@@ -15628,7 +15657,7 @@ var isGaugeKey = (u) => hasProperty(u, GaugeKeyTypeTypeId);
|
|
|
15628
15657
|
var isHistogramKey = (u) => hasProperty(u, HistogramKeyTypeTypeId);
|
|
15629
15658
|
var isSummaryKey = (u) => hasProperty(u, SummaryKeyTypeTypeId);
|
|
15630
15659
|
|
|
15631
|
-
// node_modules/.bun/effect@3.22.
|
|
15660
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/metric/key.js
|
|
15632
15661
|
var MetricKeySymbolKey = "effect/MetricKey";
|
|
15633
15662
|
var MetricKeyTypeId = /* @__PURE__ */ Symbol.for(MetricKeySymbolKey);
|
|
15634
15663
|
var metricKeyVariance = {
|
|
@@ -15665,7 +15694,7 @@ var counter2 = (name, options) => new MetricKeyImpl(name, counter(options), from
|
|
|
15665
15694
|
var histogram2 = (name, boundaries, description) => new MetricKeyImpl(name, histogram(boundaries), fromNullable(description));
|
|
15666
15695
|
var taggedWithLabels = /* @__PURE__ */ dual(2, (self, extraTags) => extraTags.length === 0 ? self : new MetricKeyImpl(self.name, self.keyType, self.description, union(self.tags, extraTags)));
|
|
15667
15696
|
|
|
15668
|
-
// node_modules/.bun/effect@3.22.
|
|
15697
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/MutableHashMap.js
|
|
15669
15698
|
var TypeId11 = /* @__PURE__ */ Symbol.for("effect/MutableHashMap");
|
|
15670
15699
|
var MutableHashMapProto = {
|
|
15671
15700
|
[TypeId11]: TypeId11,
|
|
@@ -15794,7 +15823,7 @@ var removeFromBucket = (self, bucket, key) => {
|
|
|
15794
15823
|
}
|
|
15795
15824
|
};
|
|
15796
15825
|
|
|
15797
|
-
// node_modules/.bun/effect@3.22.
|
|
15826
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/metric/state.js
|
|
15798
15827
|
var MetricStateSymbolKey = "effect/MetricState";
|
|
15799
15828
|
var MetricStateTypeId = /* @__PURE__ */ Symbol.for(MetricStateSymbolKey);
|
|
15800
15829
|
var CounterStateSymbolKey = "effect/MetricState/Counter";
|
|
@@ -15933,7 +15962,7 @@ var isGaugeState = (u) => hasProperty(u, GaugeStateTypeId);
|
|
|
15933
15962
|
var isHistogramState = (u) => hasProperty(u, HistogramStateTypeId);
|
|
15934
15963
|
var isSummaryState = (u) => hasProperty(u, SummaryStateTypeId);
|
|
15935
15964
|
|
|
15936
|
-
// node_modules/.bun/effect@3.22.
|
|
15965
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/metric/hook.js
|
|
15937
15966
|
var MetricHookSymbolKey = "effect/MetricHook";
|
|
15938
15967
|
var MetricHookTypeId = /* @__PURE__ */ Symbol.for(MetricHookSymbolKey);
|
|
15939
15968
|
var metricHookVariance = {
|
|
@@ -16226,7 +16255,7 @@ var resolveQuantile = (error, sampleCount, current, consumed, quantile, rest) =>
|
|
|
16226
16255
|
throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
16227
16256
|
};
|
|
16228
16257
|
|
|
16229
|
-
// node_modules/.bun/effect@3.22.
|
|
16258
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/metric/pair.js
|
|
16230
16259
|
var MetricPairSymbolKey = "effect/MetricPair";
|
|
16231
16260
|
var MetricPairTypeId = /* @__PURE__ */ Symbol.for(MetricPairSymbolKey);
|
|
16232
16261
|
var metricPairVariance = {
|
|
@@ -16243,7 +16272,7 @@ var unsafeMake6 = (metricKey, metricState) => {
|
|
|
16243
16272
|
};
|
|
16244
16273
|
};
|
|
16245
16274
|
|
|
16246
|
-
// node_modules/.bun/effect@3.22.
|
|
16275
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/metric/registry.js
|
|
16247
16276
|
var MetricRegistrySymbolKey = "effect/MetricRegistry";
|
|
16248
16277
|
var MetricRegistryTypeId = /* @__PURE__ */ Symbol.for(MetricRegistrySymbolKey);
|
|
16249
16278
|
|
|
@@ -16340,7 +16369,7 @@ var make30 = () => {
|
|
|
16340
16369
|
return new MetricRegistryImpl;
|
|
16341
16370
|
};
|
|
16342
16371
|
|
|
16343
|
-
// node_modules/.bun/effect@3.22.
|
|
16372
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/metric.js
|
|
16344
16373
|
var MetricSymbolKey = "effect/Metric";
|
|
16345
16374
|
var MetricTypeId = /* @__PURE__ */ Symbol.for(MetricSymbolKey);
|
|
16346
16375
|
var metricVariance = {
|
|
@@ -16395,7 +16424,7 @@ var taggedWithLabels2 = /* @__PURE__ */ dual(2, (self, extraTags) => {
|
|
|
16395
16424
|
});
|
|
16396
16425
|
var update4 = /* @__PURE__ */ dual(2, (self, input) => fiberRefGetWith(currentMetricLabels, (tags) => sync(() => self.unsafeUpdate(input, tags))));
|
|
16397
16426
|
|
|
16398
|
-
// node_modules/.bun/effect@3.22.
|
|
16427
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/request.js
|
|
16399
16428
|
var RequestSymbolKey = "effect/Request";
|
|
16400
16429
|
var RequestTypeId = /* @__PURE__ */ Symbol.for(RequestSymbolKey);
|
|
16401
16430
|
var requestVariance = {
|
|
@@ -16416,7 +16445,7 @@ var complete2 = /* @__PURE__ */ dual(2, (self, result) => fiberRefGetWith(curren
|
|
|
16416
16445
|
}
|
|
16417
16446
|
})));
|
|
16418
16447
|
|
|
16419
|
-
// node_modules/.bun/effect@3.22.
|
|
16448
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/supervisor.js
|
|
16420
16449
|
var SupervisorSymbolKey = "effect/Supervisor";
|
|
16421
16450
|
var SupervisorTypeId = /* @__PURE__ */ Symbol.for(SupervisorSymbolKey);
|
|
16422
16451
|
var supervisorVariance = {
|
|
@@ -16526,10 +16555,10 @@ var fromEffect = (effect) => {
|
|
|
16526
16555
|
};
|
|
16527
16556
|
var none7 = /* @__PURE__ */ globalValue("effect/Supervisor/none", () => fromEffect(void_));
|
|
16528
16557
|
|
|
16529
|
-
// node_modules/.bun/effect@3.22.
|
|
16558
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Differ.js
|
|
16530
16559
|
var make32 = make15;
|
|
16531
16560
|
|
|
16532
|
-
// node_modules/.bun/effect@3.22.
|
|
16561
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/supervisor/patch.js
|
|
16533
16562
|
var OP_EMPTY3 = "Empty";
|
|
16534
16563
|
var OP_ADD_SUPERVISOR = "AddSupervisor";
|
|
16535
16564
|
var OP_REMOVE_SUPERVISOR = "RemoveSupervisor";
|
|
@@ -16620,7 +16649,7 @@ var differ2 = /* @__PURE__ */ make32({
|
|
|
16620
16649
|
diff: diff7
|
|
16621
16650
|
});
|
|
16622
16651
|
|
|
16623
|
-
// node_modules/.bun/effect@3.22.
|
|
16652
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/fiberRuntime.js
|
|
16624
16653
|
var fiberStarted = /* @__PURE__ */ counter5("effect_fiber_started", {
|
|
16625
16654
|
incremental: true
|
|
16626
16655
|
});
|
|
@@ -17514,10 +17543,12 @@ var addFinalizer = (finalizer) => withFiberRuntime((runtime) => {
|
|
|
17514
17543
|
return flatMap7(scope, (scope) => scopeAddFinalizerExit(scope, (exit) => withFiberRuntime((runtimeFinalizer) => {
|
|
17515
17544
|
const preRefs = runtimeFinalizer.getFiberRefs();
|
|
17516
17545
|
const preFlags = runtimeFinalizer.currentRuntimeFlags;
|
|
17546
|
+
const interruptedCause = runtimeFinalizer.getFiberRef(currentInterruptedCause);
|
|
17517
17547
|
const patchRefs = diff6(preRefs, acquireRefs);
|
|
17518
17548
|
const patchFlags = diff4(preFlags, acquireFlags);
|
|
17519
17549
|
const inverseRefs = diff6(acquireRefs, preRefs);
|
|
17520
17550
|
runtimeFinalizer.setFiberRefs(patch7(patchRefs, runtimeFinalizer.id(), acquireRefs));
|
|
17551
|
+
runtimeFinalizer.setFiberRef(currentInterruptedCause, interruptedCause);
|
|
17521
17552
|
return ensuring(withRuntimeFlags(finalizer(exit), patchFlags), sync(() => {
|
|
17522
17553
|
runtimeFinalizer.setFiberRefs(patch7(inverseRefs, runtimeFinalizer.id(), runtimeFinalizer.getFiberRefs()));
|
|
17523
17554
|
}));
|
|
@@ -18052,7 +18083,7 @@ var invokeWithInterrupt = (self, entries, onInterrupt) => fiberIdWith((id) => en
|
|
|
18052
18083
|
return forEachSequentialDiscard(residual, (entry) => complete2(entry.request, exitInterrupt(id)));
|
|
18053
18084
|
})));
|
|
18054
18085
|
|
|
18055
|
-
// node_modules/.bun/effect@3.22.
|
|
18086
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/schedule/interval.js
|
|
18056
18087
|
var IntervalSymbolKey = "effect/ScheduleInterval";
|
|
18057
18088
|
var IntervalTypeId = /* @__PURE__ */ Symbol.for(IntervalSymbolKey);
|
|
18058
18089
|
var empty24 = {
|
|
@@ -18099,7 +18130,7 @@ var after = (startMilliseconds) => {
|
|
|
18099
18130
|
return make33(startMilliseconds, Number.POSITIVE_INFINITY);
|
|
18100
18131
|
};
|
|
18101
18132
|
|
|
18102
|
-
// node_modules/.bun/effect@3.22.
|
|
18133
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/ScheduleInterval.js
|
|
18103
18134
|
var make34 = make33;
|
|
18104
18135
|
var empty25 = empty24;
|
|
18105
18136
|
var lessThan3 = lessThan2;
|
|
@@ -18108,7 +18139,7 @@ var intersect2 = intersect;
|
|
|
18108
18139
|
var size7 = size6;
|
|
18109
18140
|
var after2 = after;
|
|
18110
18141
|
|
|
18111
|
-
// node_modules/.bun/effect@3.22.
|
|
18142
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/schedule/intervals.js
|
|
18112
18143
|
var IntervalsSymbolKey = "effect/ScheduleIntervals";
|
|
18113
18144
|
var IntervalsTypeId = /* @__PURE__ */ Symbol.for(IntervalsSymbolKey);
|
|
18114
18145
|
var make35 = (intervals) => {
|
|
@@ -18209,7 +18240,7 @@ var isNonEmpty3 = (self) => {
|
|
|
18209
18240
|
return isNonEmpty(self.intervals);
|
|
18210
18241
|
};
|
|
18211
18242
|
|
|
18212
|
-
// node_modules/.bun/effect@3.22.
|
|
18243
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/ScheduleIntervals.js
|
|
18213
18244
|
var make36 = make35;
|
|
18214
18245
|
var union7 = union6;
|
|
18215
18246
|
var intersect4 = intersect3;
|
|
@@ -18218,7 +18249,7 @@ var end2 = end;
|
|
|
18218
18249
|
var lessThan5 = lessThan4;
|
|
18219
18250
|
var isNonEmpty4 = isNonEmpty3;
|
|
18220
18251
|
|
|
18221
|
-
// node_modules/.bun/effect@3.22.
|
|
18252
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/schedule/decision.js
|
|
18222
18253
|
var OP_CONTINUE = "Continue";
|
|
18223
18254
|
var OP_DONE2 = "Done";
|
|
18224
18255
|
var _continue = (intervals) => {
|
|
@@ -18243,14 +18274,14 @@ var isDone4 = (self) => {
|
|
|
18243
18274
|
return self._tag === OP_DONE2;
|
|
18244
18275
|
};
|
|
18245
18276
|
|
|
18246
|
-
// node_modules/.bun/effect@3.22.
|
|
18277
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/ScheduleDecision.js
|
|
18247
18278
|
var _continue2 = _continue;
|
|
18248
18279
|
var continueWith2 = continueWith;
|
|
18249
18280
|
var done6 = done5;
|
|
18250
18281
|
var isContinue2 = isContinue;
|
|
18251
18282
|
var isDone5 = isDone4;
|
|
18252
18283
|
|
|
18253
|
-
// node_modules/.bun/effect@3.22.
|
|
18284
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Scope.js
|
|
18254
18285
|
var Scope = scopeTag;
|
|
18255
18286
|
var addFinalizer2 = scopeAddFinalizer;
|
|
18256
18287
|
var addFinalizerExit = scopeAddFinalizerExit;
|
|
@@ -18259,7 +18290,7 @@ var extend2 = scopeExtend;
|
|
|
18259
18290
|
var fork2 = scopeFork;
|
|
18260
18291
|
var make37 = scopeMake;
|
|
18261
18292
|
|
|
18262
|
-
// node_modules/.bun/effect@3.22.
|
|
18293
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/effect/circular.js
|
|
18263
18294
|
class Semaphore {
|
|
18264
18295
|
permits;
|
|
18265
18296
|
waiters = /* @__PURE__ */ new Set;
|
|
@@ -18402,6 +18433,26 @@ class Latch extends Class2 {
|
|
|
18402
18433
|
};
|
|
18403
18434
|
}
|
|
18404
18435
|
var unsafeMakeLatch = (open) => new Latch(open ?? false);
|
|
18436
|
+
var cachedInvalidateWithTTL = /* @__PURE__ */ dual(2, (self, timeToLive) => {
|
|
18437
|
+
const duration = decode(timeToLive);
|
|
18438
|
+
return flatMap7(context(), (env) => map11(makeSynchronized(none2()), (cache) => [provideContext(getCachedValue(self, duration, cache), env), invalidateCache(cache)]));
|
|
18439
|
+
});
|
|
18440
|
+
var computeCachedValue = (self, timeToLive, start) => {
|
|
18441
|
+
const timeToLiveMillis = toMillis(decode(timeToLive));
|
|
18442
|
+
return pipe(deferredMake(), tap((deferred) => intoDeferred(self, deferred)), map11((deferred) => some2([start + timeToLiveMillis, deferred])));
|
|
18443
|
+
};
|
|
18444
|
+
var getCachedValue = (self, timeToLive, cache) => uninterruptibleMask((restore) => pipe(clockWith3((clock) => clock.currentTimeMillis), flatMap7((time) => updateSomeAndGetEffectSynchronized(cache, (option) => {
|
|
18445
|
+
switch (option._tag) {
|
|
18446
|
+
case "None": {
|
|
18447
|
+
return some2(computeCachedValue(self, timeToLive, time));
|
|
18448
|
+
}
|
|
18449
|
+
case "Some": {
|
|
18450
|
+
const [end] = option.value;
|
|
18451
|
+
return end - time <= 0 ? some2(computeCachedValue(self, timeToLive, time)) : none2();
|
|
18452
|
+
}
|
|
18453
|
+
}
|
|
18454
|
+
})), flatMap7((option) => isNone2(option) ? dieMessage("BUG: Effect.cachedInvalidate - please report an issue at https://github.com/Effect-TS/effect/issues") : restore(deferredAwait(option.value[1])))));
|
|
18455
|
+
var invalidateCache = (cache) => set4(cache, none2());
|
|
18405
18456
|
var forkIn = /* @__PURE__ */ dual(2, (self, scope) => withFiberRuntime((parent, parentStatus) => {
|
|
18406
18457
|
const scopeImpl = scope;
|
|
18407
18458
|
const fiber = unsafeFork(self, parent, parentStatus.runtimeFlags, globalScope);
|
|
@@ -18495,11 +18546,22 @@ var unsafeMakeSynchronized = (value) => {
|
|
|
18495
18546
|
const sem = unsafeMakeSemaphore(1);
|
|
18496
18547
|
return new SynchronizedImpl(ref, sem.withPermits(1));
|
|
18497
18548
|
};
|
|
18549
|
+
var updateSomeAndGetEffectSynchronized = /* @__PURE__ */ dual(2, (self, pf) => self.modifyEffect((value) => {
|
|
18550
|
+
const result = pf(value);
|
|
18551
|
+
switch (result._tag) {
|
|
18552
|
+
case "None": {
|
|
18553
|
+
return succeed([value, value]);
|
|
18554
|
+
}
|
|
18555
|
+
case "Some": {
|
|
18556
|
+
return map11(result.value, (a) => [a, a]);
|
|
18557
|
+
}
|
|
18558
|
+
}
|
|
18559
|
+
}));
|
|
18498
18560
|
|
|
18499
|
-
// node_modules/.bun/effect@3.22.
|
|
18561
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/managedRuntime/circular.js
|
|
18500
18562
|
var TypeId12 = /* @__PURE__ */ Symbol.for("effect/ManagedRuntime");
|
|
18501
18563
|
|
|
18502
|
-
// node_modules/.bun/effect@3.22.
|
|
18564
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/layer.js
|
|
18503
18565
|
var OP_FOLD = "Fold";
|
|
18504
18566
|
var OP_FRESH = "Fresh";
|
|
18505
18567
|
var OP_FROM_EFFECT = "FromEffect";
|
|
@@ -18509,7 +18571,7 @@ var OP_PROVIDE = "Provide";
|
|
|
18509
18571
|
var OP_PROVIDE_MERGE = "ProvideMerge";
|
|
18510
18572
|
var OP_MERGE_ALL = "MergeAll";
|
|
18511
18573
|
|
|
18512
|
-
// node_modules/.bun/effect@3.22.
|
|
18574
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Fiber.js
|
|
18513
18575
|
var _await3 = _await2;
|
|
18514
18576
|
var inheritAll2 = inheritAll;
|
|
18515
18577
|
var interrupt5 = interruptFiber;
|
|
@@ -18517,7 +18579,7 @@ var interruptAs = interruptAsFiber;
|
|
|
18517
18579
|
var interruptAllAs2 = interruptAllAs;
|
|
18518
18580
|
var join3 = join2;
|
|
18519
18581
|
|
|
18520
|
-
// node_modules/.bun/effect@3.22.
|
|
18582
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/runtime.js
|
|
18521
18583
|
var makeDual = (f) => function() {
|
|
18522
18584
|
if (arguments.length === 1) {
|
|
18523
18585
|
const runtime = arguments[0];
|
|
@@ -18719,12 +18781,12 @@ var unsafeRunPromiseEffect = /* @__PURE__ */ unsafeRunPromise(defaultRuntime);
|
|
|
18719
18781
|
var unsafeRunPromiseExitEffect = /* @__PURE__ */ unsafeRunPromiseExit(defaultRuntime);
|
|
18720
18782
|
var unsafeRunSyncEffect = /* @__PURE__ */ unsafeRunSync(defaultRuntime);
|
|
18721
18783
|
|
|
18722
|
-
// node_modules/.bun/effect@3.22.
|
|
18784
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/synchronizedRef.js
|
|
18723
18785
|
var modify5 = /* @__PURE__ */ dual(2, (self, f) => self.modify(f));
|
|
18724
18786
|
var modifyEffect = /* @__PURE__ */ dual(2, (self, f) => self.modifyEffect(f));
|
|
18725
18787
|
var updateEffect = /* @__PURE__ */ dual(2, (self, f) => self.modifyEffect((value) => map11(f(value), (result) => [undefined, result])));
|
|
18726
18788
|
|
|
18727
|
-
// node_modules/.bun/effect@3.22.
|
|
18789
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/layer.js
|
|
18728
18790
|
var LayerSymbolKey = "effect/Layer";
|
|
18729
18791
|
var LayerTypeId = /* @__PURE__ */ Symbol.for(LayerSymbolKey);
|
|
18730
18792
|
var layerVariance = {
|
|
@@ -18991,11 +19053,11 @@ var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
|
|
|
18991
19053
|
}
|
|
18992
19054
|
});
|
|
18993
19055
|
|
|
18994
|
-
// node_modules/.bun/effect@3.22.
|
|
19056
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/String.js
|
|
18995
19057
|
var trim = (self) => self.trim();
|
|
18996
19058
|
var isEmpty8 = (self) => self.length === 0;
|
|
18997
19059
|
|
|
18998
|
-
// node_modules/.bun/effect@3.22.
|
|
19060
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/schedule.js
|
|
18999
19061
|
var ScheduleSymbolKey = "effect/Schedule";
|
|
19000
19062
|
var ScheduleTypeId = /* @__PURE__ */ Symbol.for(ScheduleSymbolKey);
|
|
19001
19063
|
var isSchedule = (u) => hasProperty(u, ScheduleTypeId);
|
|
@@ -19267,7 +19329,7 @@ var retryOrElse_EffectLoop = (self, driver, orElse) => {
|
|
|
19267
19329
|
};
|
|
19268
19330
|
var forever2 = /* @__PURE__ */ unfold2(0, (n) => n + 1);
|
|
19269
19331
|
|
|
19270
|
-
// node_modules/.bun/effect@3.22.
|
|
19332
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/MutableList.js
|
|
19271
19333
|
var TypeId13 = /* @__PURE__ */ Symbol.for("effect/MutableList");
|
|
19272
19334
|
var MutableListProto = {
|
|
19273
19335
|
[TypeId13]: TypeId13,
|
|
@@ -19378,7 +19440,7 @@ var remove7 = (self, node) => {
|
|
|
19378
19440
|
}
|
|
19379
19441
|
};
|
|
19380
19442
|
|
|
19381
|
-
// node_modules/.bun/effect@3.22.
|
|
19443
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/MutableQueue.js
|
|
19382
19444
|
var TypeId14 = /* @__PURE__ */ Symbol.for("effect/MutableQueue");
|
|
19383
19445
|
var EmptyMutableQueue = /* @__PURE__ */ Symbol.for("effect/mutable/MutableQueue/Empty");
|
|
19384
19446
|
var MutableQueueProto = {
|
|
@@ -19455,8 +19517,9 @@ var pollUpTo = /* @__PURE__ */ dual(2, (self, n) => {
|
|
|
19455
19517
|
return reverse3(result);
|
|
19456
19518
|
});
|
|
19457
19519
|
|
|
19458
|
-
// node_modules/.bun/effect@3.22.
|
|
19520
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Effect.js
|
|
19459
19521
|
var isEffect2 = isEffect;
|
|
19522
|
+
var cachedInvalidateWithTTL2 = cachedInvalidateWithTTL;
|
|
19460
19523
|
var cached3 = memoize;
|
|
19461
19524
|
var all6 = all5;
|
|
19462
19525
|
var forEach5 = forEach4;
|
|
@@ -19569,10 +19632,22 @@ var useSpan2 = useSpan;
|
|
|
19569
19632
|
var withParentSpan2 = withParentSpan;
|
|
19570
19633
|
var transposeMapOption = /* @__PURE__ */ dual(2, (self, f) => isNone(self) ? succeedNone2 : map18(f(self.value), some));
|
|
19571
19634
|
var fnUntraced2 = fnUntraced;
|
|
19572
|
-
// node_modules/.bun/effect@3.22.
|
|
19635
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/encoding/common.js
|
|
19636
|
+
var DecodeExceptionTypeId = /* @__PURE__ */ Symbol.for("effect/Encoding/errors/Decode");
|
|
19637
|
+
var DecodeException = (input, message) => {
|
|
19638
|
+
const out = {
|
|
19639
|
+
_tag: "DecodeException",
|
|
19640
|
+
[DecodeExceptionTypeId]: DecodeExceptionTypeId,
|
|
19641
|
+
input
|
|
19642
|
+
};
|
|
19643
|
+
if (isString(message)) {
|
|
19644
|
+
out.message = message;
|
|
19645
|
+
}
|
|
19646
|
+
return out;
|
|
19647
|
+
};
|
|
19573
19648
|
var encoder = /* @__PURE__ */ new TextEncoder;
|
|
19574
19649
|
|
|
19575
|
-
// node_modules/.bun/effect@3.22.
|
|
19650
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/encoding/base64.js
|
|
19576
19651
|
var encode = (bytes) => {
|
|
19577
19652
|
const length = bytes.length;
|
|
19578
19653
|
let result = "";
|
|
@@ -19598,21 +19673,26 @@ var encode = (bytes) => {
|
|
|
19598
19673
|
};
|
|
19599
19674
|
var base64abc = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/"];
|
|
19600
19675
|
|
|
19601
|
-
// node_modules/.bun/effect@3.22.
|
|
19676
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Encoding.js
|
|
19602
19677
|
var encodeBase64 = (input) => typeof input === "string" ? encode(encoder.encode(input)) : encode(input);
|
|
19603
|
-
|
|
19678
|
+
var decodeUriComponent = (str) => try_({
|
|
19679
|
+
try: () => decodeURIComponent(str),
|
|
19680
|
+
catch: (e) => DecodeException2(str, e instanceof Error ? e.message : "Invalid input")
|
|
19681
|
+
});
|
|
19682
|
+
var DecodeException2 = DecodeException;
|
|
19683
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/FiberRef.js
|
|
19604
19684
|
var unsafeMake7 = fiberRefUnsafeMake;
|
|
19605
19685
|
var get13 = fiberRefGet;
|
|
19606
19686
|
var currentContext2 = currentContext;
|
|
19607
19687
|
var currentLoggers2 = currentLoggers;
|
|
19608
19688
|
var currentTracerEnabled2 = currentTracerEnabled;
|
|
19609
|
-
// node_modules/.bun/effect@3.22.
|
|
19689
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/layer/circular.js
|
|
19610
19690
|
var addLogger = (logger) => scopedDiscard(fiberRefLocallyScopedWith(currentLoggers, add2(logger)));
|
|
19611
19691
|
var removeLogger = (logger) => scopedDiscard(fiberRefLocallyScopedWith(currentLoggers, remove5(logger)));
|
|
19612
19692
|
var replaceLogger = /* @__PURE__ */ dual(2, (self, that) => flatMap9(removeLogger(self), () => addLogger(that)));
|
|
19613
19693
|
var setConfigProvider = (configProvider) => scopedDiscard(withConfigProviderScoped(configProvider));
|
|
19614
19694
|
|
|
19615
|
-
// node_modules/.bun/effect@3.22.
|
|
19695
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Layer.js
|
|
19616
19696
|
var effect = fromEffect3;
|
|
19617
19697
|
var mergeAll5 = mergeAll3;
|
|
19618
19698
|
var scoped3 = scoped;
|
|
@@ -19620,13 +19700,13 @@ var succeed9 = succeed7;
|
|
|
19620
19700
|
var provide3 = provide;
|
|
19621
19701
|
var provideMerge2 = provideMerge;
|
|
19622
19702
|
var setConfigProvider2 = setConfigProvider;
|
|
19623
|
-
// node_modules/.bun/effect@3.22.
|
|
19703
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Logger.js
|
|
19624
19704
|
var withConsoleError = loggerWithConsoleError;
|
|
19625
19705
|
var replace = replaceLogger;
|
|
19626
19706
|
var defaultLogger2 = defaultLogger;
|
|
19627
19707
|
var logfmtLogger2 = logfmtLogger;
|
|
19628
19708
|
var prettyLoggerDefault2 = prettyLoggerDefault;
|
|
19629
|
-
// node_modules/.bun/effect@3.22.
|
|
19709
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/matcher.js
|
|
19630
19710
|
var TypeId15 = /* @__PURE__ */ Symbol.for("@effect/matcher/Matcher");
|
|
19631
19711
|
var TypeMatcherProto = {
|
|
19632
19712
|
[TypeId15]: {
|
|
@@ -19793,14 +19873,14 @@ var exhaustive = (self) => {
|
|
|
19793
19873
|
};
|
|
19794
19874
|
};
|
|
19795
19875
|
|
|
19796
|
-
// node_modules/.bun/effect@3.22.
|
|
19876
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Match.js
|
|
19797
19877
|
var value3 = value2;
|
|
19798
19878
|
var when4 = when3;
|
|
19799
19879
|
var discriminatorsExhaustive2 = discriminatorsExhaustive;
|
|
19800
19880
|
var tag2 = tag;
|
|
19801
19881
|
var orElse9 = orElse8;
|
|
19802
19882
|
var exhaustive2 = exhaustive;
|
|
19803
|
-
// node_modules/.bun/effect@3.22.
|
|
19883
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/schema/util.js
|
|
19804
19884
|
var getKeysForIndexSignature = (input, parameter) => {
|
|
19805
19885
|
switch (parameter._tag) {
|
|
19806
19886
|
case "StringKeyword":
|
|
@@ -19829,7 +19909,7 @@ var isSingle = (x) => !Array.isArray(x);
|
|
|
19829
19909
|
var formatPathKey = (key) => `[${formatPropertyKey(key)}]`;
|
|
19830
19910
|
var formatPath = (path) => isNonEmpty5(path) ? path.map(formatPathKey).join("") : formatPathKey(path);
|
|
19831
19911
|
|
|
19832
|
-
// node_modules/.bun/effect@3.22.
|
|
19912
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/schema/errors.js
|
|
19833
19913
|
var getErrorMessage = (reason, details, path, ast) => {
|
|
19834
19914
|
let out = reason;
|
|
19835
19915
|
if (path && isNonEmptyReadonlyArray(path)) {
|
|
@@ -19855,7 +19935,7 @@ var getASTRequiredElementFollowinAnOptionalElementErrorMessage = /* @__PURE__ */
|
|
|
19855
19935
|
var getASTDuplicatePropertySignatureTransformationErrorMessage = (key) => getErrorMessage("Duplicate property signature transformation", `Duplicate key ${formatUnknown(key)}`);
|
|
19856
19936
|
var getASTDuplicatePropertySignatureErrorMessage = (key) => getErrorMessage("Duplicate property signature", `Duplicate key ${formatUnknown(key)}`);
|
|
19857
19937
|
|
|
19858
|
-
// node_modules/.bun/effect@3.22.
|
|
19938
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/SchemaAST.js
|
|
19859
19939
|
var TypeConstructorAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/TypeConstructor");
|
|
19860
19940
|
var BrandAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Brand");
|
|
19861
19941
|
var SchemaIdAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/SchemaId");
|
|
@@ -20955,7 +21035,7 @@ function getBrands(ast) {
|
|
|
20955
21035
|
var getOrElseExpected = (ast) => getTitleAnnotation(ast).pipe(orElse(() => getDescriptionAnnotation(ast)), orElse(() => getAutoTitleAnnotation(ast)), map2((s) => s + getBrands(ast)));
|
|
20956
21036
|
var getExpected = (ast) => orElse(getIdentifierAnnotation(ast), () => getOrElseExpected(ast));
|
|
20957
21037
|
|
|
20958
|
-
// node_modules/.bun/effect@3.22.
|
|
21038
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/ParseResult.js
|
|
20959
21039
|
class Pointer {
|
|
20960
21040
|
path;
|
|
20961
21041
|
actual;
|
|
@@ -22042,7 +22122,7 @@ var formatTree = (issue) => {
|
|
|
22042
22122
|
});
|
|
22043
22123
|
}
|
|
22044
22124
|
};
|
|
22045
|
-
// node_modules/.bun/effect@3.22.
|
|
22125
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/queue.js
|
|
22046
22126
|
var EnqueueSymbolKey = "effect/QueueEnqueue";
|
|
22047
22127
|
var EnqueueTypeId = /* @__PURE__ */ Symbol.for(EnqueueSymbolKey);
|
|
22048
22128
|
var DequeueSymbolKey = "effect/QueueDequeue";
|
|
@@ -22435,7 +22515,7 @@ var unsafeCompleteTakers = (strategy, queue, takers) => {
|
|
|
22435
22515
|
}
|
|
22436
22516
|
};
|
|
22437
22517
|
|
|
22438
|
-
// node_modules/.bun/effect@3.22.
|
|
22518
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/pubsub.js
|
|
22439
22519
|
var AbsentValue = /* @__PURE__ */ Symbol.for("effect/PubSub/AbsentValue");
|
|
22440
22520
|
var addSubscribers = (subscription, pollers) => (subscribers) => {
|
|
22441
22521
|
if (!subscribers.has(subscription)) {
|
|
@@ -23346,27 +23426,27 @@ var emptyReplayWindow = {
|
|
|
23346
23426
|
takeAll: () => empty3()
|
|
23347
23427
|
};
|
|
23348
23428
|
|
|
23349
|
-
// node_modules/.bun/effect@3.22.
|
|
23429
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/PubSub.js
|
|
23350
23430
|
var dropping3 = dropping2;
|
|
23351
23431
|
var shutdown3 = shutdown2;
|
|
23352
23432
|
var publish2 = publish;
|
|
23353
23433
|
var subscribe2 = subscribe;
|
|
23354
|
-
// node_modules/.bun/effect@3.22.
|
|
23434
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Redacted.js
|
|
23355
23435
|
var make41 = make24;
|
|
23356
23436
|
var value4 = value;
|
|
23357
|
-
// node_modules/.bun/effect@3.22.
|
|
23437
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Schedule.js
|
|
23358
23438
|
var makeWithState2 = makeWithState;
|
|
23359
23439
|
var either6 = either3;
|
|
23360
23440
|
var exponential3 = exponential2;
|
|
23361
23441
|
var spaced2 = spaced;
|
|
23362
23442
|
var union9 = union8;
|
|
23363
|
-
// node_modules/.bun/effect@3.22.
|
|
23443
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/schema/schemaId.js
|
|
23364
23444
|
var DateFromSelfSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/DateFromSelf");
|
|
23365
23445
|
var GreaterThanOrEqualToSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/GreaterThanOrEqualTo");
|
|
23366
23446
|
var IntSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/Int");
|
|
23367
23447
|
var MinLengthSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/MinLength");
|
|
23368
23448
|
|
|
23369
|
-
// node_modules/.bun/effect@3.22.
|
|
23449
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Struct.js
|
|
23370
23450
|
var pick2 = /* @__PURE__ */ dual((args) => isObject(args[0]), (s, ...keys) => {
|
|
23371
23451
|
const out = {};
|
|
23372
23452
|
for (const k of keys) {
|
|
@@ -23386,7 +23466,7 @@ var omit3 = /* @__PURE__ */ dual((args) => isObject(args[0]), (s, ...keys) => {
|
|
|
23386
23466
|
return out;
|
|
23387
23467
|
});
|
|
23388
23468
|
|
|
23389
|
-
// node_modules/.bun/effect@3.22.
|
|
23469
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Schema.js
|
|
23390
23470
|
var TypeId16 = /* @__PURE__ */ Symbol.for("effect/Schema");
|
|
23391
23471
|
function make42(ast) {
|
|
23392
23472
|
return class SchemaClass {
|
|
@@ -24665,7 +24745,7 @@ class Defect extends (/* @__PURE__ */ transform2(Unknown, Unknown, {
|
|
|
24665
24745
|
identifier: "Defect"
|
|
24666
24746
|
})) {
|
|
24667
24747
|
}
|
|
24668
|
-
// node_modules/.bun/effect@3.22.
|
|
24748
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Queue.js
|
|
24669
24749
|
var bounded4 = bounded2;
|
|
24670
24750
|
var dropping4 = dropping;
|
|
24671
24751
|
var sliding3 = sliding;
|
|
@@ -24677,12 +24757,12 @@ var offer3 = offer2;
|
|
|
24677
24757
|
var take3 = take2;
|
|
24678
24758
|
var takeBetween2 = takeBetween;
|
|
24679
24759
|
|
|
24680
|
-
// node_modules/.bun/effect@3.22.
|
|
24760
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/channelChildExecutorDecision.js
|
|
24681
24761
|
var OP_CONTINUE2 = "Continue";
|
|
24682
24762
|
var OP_CLOSE = "Close";
|
|
24683
24763
|
var OP_YIELD2 = "Yield";
|
|
24684
24764
|
|
|
24685
|
-
// node_modules/.bun/effect@3.22.
|
|
24765
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/childExecutorDecision.js
|
|
24686
24766
|
var ChildExecutorDecisionSymbolKey = "effect/ChannelChildExecutorDecision";
|
|
24687
24767
|
var ChildExecutorDecisionTypeId = /* @__PURE__ */ Symbol.for(ChildExecutorDecisionSymbolKey);
|
|
24688
24768
|
var proto6 = {
|
|
@@ -24694,11 +24774,11 @@ var Continue = (_) => {
|
|
|
24694
24774
|
return op;
|
|
24695
24775
|
};
|
|
24696
24776
|
|
|
24697
|
-
// node_modules/.bun/effect@3.22.
|
|
24777
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/continuation.js
|
|
24698
24778
|
var OP_CONTINUATION_K = "ContinuationK";
|
|
24699
24779
|
var OP_CONTINUATION_FINALIZER = "ContinuationFinalizer";
|
|
24700
24780
|
|
|
24701
|
-
// node_modules/.bun/effect@3.22.
|
|
24781
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/continuation.js
|
|
24702
24782
|
var ContinuationTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelContinuation");
|
|
24703
24783
|
var continuationVariance = {
|
|
24704
24784
|
_Env: (_) => _,
|
|
@@ -24735,11 +24815,11 @@ class ContinuationFinalizerImpl {
|
|
|
24735
24815
|
}
|
|
24736
24816
|
}
|
|
24737
24817
|
|
|
24738
|
-
// node_modules/.bun/effect@3.22.
|
|
24818
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js
|
|
24739
24819
|
var OP_PULL_AFTER_NEXT = "PullAfterNext";
|
|
24740
24820
|
var OP_PULL_AFTER_ALL_ENQUEUED = "PullAfterAllEnqueued";
|
|
24741
24821
|
|
|
24742
|
-
// node_modules/.bun/effect@3.22.
|
|
24822
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/upstreamPullStrategy.js
|
|
24743
24823
|
var UpstreamPullStrategySymbolKey = "effect/ChannelUpstreamPullStrategy";
|
|
24744
24824
|
var UpstreamPullStrategyTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullStrategySymbolKey);
|
|
24745
24825
|
var upstreamPullStrategyVariance = {
|
|
@@ -24755,7 +24835,7 @@ var PullAfterNext = (emitSeparator) => {
|
|
|
24755
24835
|
return op;
|
|
24756
24836
|
};
|
|
24757
24837
|
|
|
24758
|
-
// node_modules/.bun/effect@3.22.
|
|
24838
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/channel.js
|
|
24759
24839
|
var OP_BRACKET_OUT = "BracketOut";
|
|
24760
24840
|
var OP_BRIDGE = "Bridge";
|
|
24761
24841
|
var OP_CONCAT_ALL = "ConcatAll";
|
|
@@ -24771,7 +24851,7 @@ var OP_SUCCEED = "Succeed";
|
|
|
24771
24851
|
var OP_SUCCEED_NOW = "SucceedNow";
|
|
24772
24852
|
var OP_SUSPEND2 = "Suspend";
|
|
24773
24853
|
|
|
24774
|
-
// node_modules/.bun/effect@3.22.
|
|
24854
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/core-stream.js
|
|
24775
24855
|
var ChannelSymbolKey = "effect/Channel";
|
|
24776
24856
|
var ChannelTypeId2 = /* @__PURE__ */ Symbol.for(ChannelSymbolKey);
|
|
24777
24857
|
var channelVariance2 = {
|
|
@@ -24916,13 +24996,13 @@ var write = (out) => {
|
|
|
24916
24996
|
return op;
|
|
24917
24997
|
};
|
|
24918
24998
|
|
|
24919
|
-
// node_modules/.bun/effect@3.22.
|
|
24999
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/channelState.js
|
|
24920
25000
|
var OP_DONE3 = "Done";
|
|
24921
25001
|
var OP_EMIT2 = "Emit";
|
|
24922
25002
|
var OP_FROM_EFFECT3 = "FromEffect";
|
|
24923
25003
|
var OP_READ2 = "Read";
|
|
24924
25004
|
|
|
24925
|
-
// node_modules/.bun/effect@3.22.
|
|
25005
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/channelState.js
|
|
24926
25006
|
var ChannelStateTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelState");
|
|
24927
25007
|
var channelStateVariance = {
|
|
24928
25008
|
_E: (_) => _,
|
|
@@ -24960,7 +25040,7 @@ var isFromEffect = (self) => self._tag === OP_FROM_EFFECT3;
|
|
|
24960
25040
|
var effect2 = (self) => isFromEffect(self) ? self.effect : _void;
|
|
24961
25041
|
var effectOrUndefinedIgnored = (self) => isFromEffect(self) ? ignore2(self.effect) : undefined;
|
|
24962
25042
|
|
|
24963
|
-
// node_modules/.bun/effect@3.22.
|
|
25043
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/subexecutor.js
|
|
24964
25044
|
var OP_PULL_FROM_CHILD = "PullFromChild";
|
|
24965
25045
|
var OP_PULL_FROM_UPSTREAM = "PullFromUpstream";
|
|
24966
25046
|
var OP_DRAIN_CHILD_EXECUTORS = "DrainChildExecutors";
|
|
@@ -25091,11 +25171,11 @@ class Emit2 {
|
|
|
25091
25171
|
}
|
|
25092
25172
|
}
|
|
25093
25173
|
|
|
25094
|
-
// node_modules/.bun/effect@3.22.
|
|
25174
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullRequest.js
|
|
25095
25175
|
var OP_PULLED = "Pulled";
|
|
25096
25176
|
var OP_NO_UPSTREAM = "NoUpstream";
|
|
25097
25177
|
|
|
25098
|
-
// node_modules/.bun/effect@3.22.
|
|
25178
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/upstreamPullRequest.js
|
|
25099
25179
|
var UpstreamPullRequestSymbolKey = "effect/ChannelUpstreamPullRequest";
|
|
25100
25180
|
var UpstreamPullRequestTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullRequestSymbolKey);
|
|
25101
25181
|
var upstreamPullRequestVariance = {
|
|
@@ -25117,7 +25197,7 @@ var NoUpstream = (activeDownstreamCount) => {
|
|
|
25117
25197
|
return op;
|
|
25118
25198
|
};
|
|
25119
25199
|
|
|
25120
|
-
// node_modules/.bun/effect@3.22.
|
|
25200
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/channelExecutor.js
|
|
25121
25201
|
class ChannelExecutor {
|
|
25122
25202
|
_activeSubexecutor = undefined;
|
|
25123
25203
|
_cancelled = undefined;
|
|
@@ -25733,11 +25813,11 @@ var runScopedInterpret = (channelState, exec) => {
|
|
|
25733
25813
|
}
|
|
25734
25814
|
};
|
|
25735
25815
|
|
|
25736
|
-
// node_modules/.bun/effect@3.22.
|
|
25816
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/channelMergeDecision.js
|
|
25737
25817
|
var OP_DONE4 = "Done";
|
|
25738
25818
|
var OP_AWAIT = "Await";
|
|
25739
25819
|
|
|
25740
|
-
// node_modules/.bun/effect@3.22.
|
|
25820
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/mergeDecision.js
|
|
25741
25821
|
var MergeDecisionSymbolKey = "effect/ChannelMergeDecision";
|
|
25742
25822
|
var MergeDecisionTypeId = /* @__PURE__ */ Symbol.for(MergeDecisionSymbolKey);
|
|
25743
25823
|
var proto11 = {
|
|
@@ -25756,12 +25836,12 @@ var Await = (f) => {
|
|
|
25756
25836
|
return op;
|
|
25757
25837
|
};
|
|
25758
25838
|
|
|
25759
|
-
// node_modules/.bun/effect@3.22.
|
|
25839
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/channelMergeState.js
|
|
25760
25840
|
var OP_BOTH_RUNNING = "BothRunning";
|
|
25761
25841
|
var OP_LEFT_DONE = "LeftDone";
|
|
25762
25842
|
var OP_RIGHT_DONE = "RightDone";
|
|
25763
25843
|
|
|
25764
|
-
// node_modules/.bun/effect@3.22.
|
|
25844
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/mergeState.js
|
|
25765
25845
|
var MergeStateSymbolKey = "effect/ChannelMergeState";
|
|
25766
25846
|
var MergeStateTypeId = /* @__PURE__ */ Symbol.for(MergeStateSymbolKey);
|
|
25767
25847
|
var proto12 = {
|
|
@@ -25787,11 +25867,11 @@ var RightDone = (f) => {
|
|
|
25787
25867
|
return op;
|
|
25788
25868
|
};
|
|
25789
25869
|
|
|
25790
|
-
// node_modules/.bun/effect@3.22.
|
|
25870
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/opCodes/channelMergeStrategy.js
|
|
25791
25871
|
var OP_BACK_PRESSURE = "BackPressure";
|
|
25792
25872
|
var OP_BUFFER_SLIDING = "BufferSliding";
|
|
25793
25873
|
|
|
25794
|
-
// node_modules/.bun/effect@3.22.
|
|
25874
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/mergeStrategy.js
|
|
25795
25875
|
var MergeStrategySymbolKey = "effect/ChannelMergeStrategy";
|
|
25796
25876
|
var MergeStrategyTypeId = /* @__PURE__ */ Symbol.for(MergeStrategySymbolKey);
|
|
25797
25877
|
var proto13 = {
|
|
@@ -25821,7 +25901,7 @@ var match13 = /* @__PURE__ */ dual(2, (self, {
|
|
|
25821
25901
|
}
|
|
25822
25902
|
});
|
|
25823
25903
|
|
|
25824
|
-
// node_modules/.bun/effect@3.22.
|
|
25904
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel/singleProducerAsyncInput.js
|
|
25825
25905
|
var OP_STATE_EMPTY = "Empty";
|
|
25826
25906
|
var OP_STATE_EMIT = "Emit";
|
|
25827
25907
|
var OP_STATE_ERROR = "Error";
|
|
@@ -25953,7 +26033,7 @@ class SingleProducerAsyncInputImpl {
|
|
|
25953
26033
|
}
|
|
25954
26034
|
var make43 = () => pipe(make25(), flatMap10((deferred) => make27(stateEmpty(deferred))), map18((ref) => new SingleProducerAsyncInputImpl(ref)));
|
|
25955
26035
|
|
|
25956
|
-
// node_modules/.bun/effect@3.22.
|
|
26036
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/channel.js
|
|
25957
26037
|
var acquireUseRelease3 = (acquire, use, release) => flatMap12(fromEffect4(make27(() => _void)), (ref) => pipe(fromEffect4(uninterruptible2(tap2(acquire, (a) => set5(ref, (exit) => release(a, exit))))), flatMap12(use), ensuringWith((exit) => flatMap10(get11(ref), (f) => f(exit)))));
|
|
25958
26038
|
var concatMap = /* @__PURE__ */ dual(2, (self, f) => concatMapWith(self, f, () => {
|
|
25959
26039
|
return;
|
|
@@ -26288,7 +26368,7 @@ var ChannelException = (error) => ({
|
|
|
26288
26368
|
});
|
|
26289
26369
|
var isChannelException = (u) => hasProperty(u, ChannelExceptionTypeId);
|
|
26290
26370
|
|
|
26291
|
-
// node_modules/.bun/effect@3.22.
|
|
26371
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/rcRef.js
|
|
26292
26372
|
var TypeId17 = /* @__PURE__ */ Symbol.for("effect/RcRef");
|
|
26293
26373
|
var stateEmpty2 = {
|
|
26294
26374
|
_tag: "Empty"
|
|
@@ -26392,16 +26472,16 @@ var get14 = (self_) => {
|
|
|
26392
26472
|
}) => state.value));
|
|
26393
26473
|
};
|
|
26394
26474
|
|
|
26395
|
-
// node_modules/.bun/effect@3.22.
|
|
26475
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/RcRef.js
|
|
26396
26476
|
var make45 = make44;
|
|
26397
26477
|
var get15 = get14;
|
|
26398
26478
|
|
|
26399
|
-
// node_modules/.bun/effect@3.22.
|
|
26479
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Runtime.js
|
|
26400
26480
|
var runFork3 = unsafeFork2;
|
|
26401
26481
|
var runPromiseExit2 = unsafeRunPromiseExit;
|
|
26402
26482
|
var updateContext3 = updateContext2;
|
|
26403
26483
|
|
|
26404
|
-
// node_modules/.bun/effect@3.22.
|
|
26484
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/sink.js
|
|
26405
26485
|
var SinkTypeId2 = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
26406
26486
|
var sinkVariance2 = {
|
|
26407
26487
|
_A: (_) => _,
|
|
@@ -26464,7 +26544,7 @@ var fromEffect6 = (effect) => new SinkImpl(fromEffect4(effect));
|
|
|
26464
26544
|
var toChannel = (self) => isEffect2(self) ? toChannel(fromEffect6(self)) : self.channel;
|
|
26465
26545
|
var unwrapScoped3 = (effect) => new SinkImpl(unwrapScoped2(effect.pipe(map18((sink) => toChannel(sink)))));
|
|
26466
26546
|
|
|
26467
|
-
// node_modules/.bun/effect@3.22.
|
|
26547
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/mailbox.js
|
|
26468
26548
|
var TypeId18 = /* @__PURE__ */ Symbol.for("effect/Mailbox");
|
|
26469
26549
|
var ReadonlyTypeId = /* @__PURE__ */ Symbol.for("effect/Mailbox/ReadonlyMailbox");
|
|
26470
26550
|
var empty29 = /* @__PURE__ */ empty3();
|
|
@@ -26887,7 +26967,7 @@ var toChannel2 = (self) => {
|
|
|
26887
26967
|
return loop;
|
|
26888
26968
|
};
|
|
26889
26969
|
|
|
26890
|
-
// node_modules/.bun/effect@3.22.
|
|
26970
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/stream/emit.js
|
|
26891
26971
|
var make47 = (emit) => {
|
|
26892
26972
|
const ops = {
|
|
26893
26973
|
chunk(as) {
|
|
@@ -26930,7 +27010,7 @@ var make47 = (emit) => {
|
|
|
26930
27010
|
return Object.assign(emit, ops);
|
|
26931
27011
|
};
|
|
26932
27012
|
|
|
26933
|
-
// node_modules/.bun/effect@3.22.
|
|
27013
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/take.js
|
|
26934
27014
|
var TakeSymbolKey = "effect/Take";
|
|
26935
27015
|
var TakeTypeId = /* @__PURE__ */ Symbol.for(TakeSymbolKey);
|
|
26936
27016
|
var takeVariance = {
|
|
@@ -26971,11 +27051,11 @@ var match14 = /* @__PURE__ */ dual(2, (self, {
|
|
|
26971
27051
|
onSuccess
|
|
26972
27052
|
}));
|
|
26973
27053
|
|
|
26974
|
-
// node_modules/.bun/effect@3.22.
|
|
27054
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/stream/pull.js
|
|
26975
27055
|
var end4 = () => fail9(none2());
|
|
26976
27056
|
var failCause10 = (cause) => mapError2(failCause7(cause), some2);
|
|
26977
27057
|
|
|
26978
|
-
// node_modules/.bun/effect@3.22.
|
|
27058
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/internal/stream.js
|
|
26979
27059
|
var StreamSymbolKey = "effect/Stream";
|
|
26980
27060
|
var StreamTypeId2 = /* @__PURE__ */ Symbol.for(StreamSymbolKey);
|
|
26981
27061
|
var streamVariance = {
|
|
@@ -27263,7 +27343,7 @@ var unfoldChunkEffect = (s, f) => suspend8(() => {
|
|
|
27263
27343
|
var unwrap3 = (effect) => flatten10(fromEffect7(effect));
|
|
27264
27344
|
var unwrapScoped4 = (effect) => flatten10(scoped5(effect));
|
|
27265
27345
|
|
|
27266
|
-
// node_modules/.bun/effect@3.22.
|
|
27346
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Stream.js
|
|
27267
27347
|
var asyncScoped2 = asyncScoped;
|
|
27268
27348
|
var bufferChunks2 = bufferChunks;
|
|
27269
27349
|
var ensuring6 = ensuring5;
|
|
@@ -27283,7 +27363,7 @@ var transduce2 = transduce;
|
|
|
27283
27363
|
var unfoldChunkEffect2 = unfoldChunkEffect;
|
|
27284
27364
|
var unwrap4 = unwrap3;
|
|
27285
27365
|
var unwrapScoped5 = unwrapScoped4;
|
|
27286
|
-
// node_modules/.bun/effect@3.22.
|
|
27366
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/SynchronizedRef.js
|
|
27287
27367
|
var make49 = makeSynchronized;
|
|
27288
27368
|
var get16 = get10;
|
|
27289
27369
|
var modify6 = modify5;
|
|
@@ -27362,6 +27442,7 @@ var mentionsIdentity = (mentions, identity) => mentions.some(Mention.$match({
|
|
|
27362
27442
|
GroupMention: () => false
|
|
27363
27443
|
}));
|
|
27364
27444
|
var mentionedIdentities = (mentions) => mentions.filter(Mention.$is("UserMention")).map((m) => m.identity);
|
|
27445
|
+
var notifiesIdentity = (mentions, identity, holdsChannel) => holdsChannel ? mentionsIdentity(mentions, identity) : mentionedIdentities(mentions).some((m) => m.id === identity);
|
|
27365
27446
|
|
|
27366
27447
|
class DirectoryError extends TaggedError("DirectoryError") {
|
|
27367
27448
|
get message() {
|
|
@@ -27387,6 +27468,12 @@ class ChannelDescriptionRejected extends TaggedError("ChannelDescriptionRejected
|
|
|
27387
27468
|
}
|
|
27388
27469
|
}
|
|
27389
27470
|
|
|
27471
|
+
class MessageRejected extends TaggedError("MessageRejected") {
|
|
27472
|
+
get message() {
|
|
27473
|
+
return `${this.operation} failed — ${this.substrate} rejected the message: ${this.detail}`;
|
|
27474
|
+
}
|
|
27475
|
+
}
|
|
27476
|
+
|
|
27390
27477
|
class UnresolvedMention extends TaggedError("UnresolvedMention") {
|
|
27391
27478
|
get message() {
|
|
27392
27479
|
return `${this.operation} failed — ${this.substrate} substrate has no identity for mention ${this.tokens.map((t) => `@**${t}**`).join(", ")}; the message would notify nobody. Fix the name or list_agents/list_humans to find the live form.`;
|
|
@@ -27432,7 +27519,7 @@ class AttachmentError extends TaggedError("AttachmentError") {
|
|
|
27432
27519
|
return messageOf(this.cause);
|
|
27433
27520
|
}
|
|
27434
27521
|
}
|
|
27435
|
-
// node_modules/.bun/effect@3.22.
|
|
27522
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Brand.js
|
|
27436
27523
|
var RefinedConstructorsTypeId = /* @__PURE__ */ Symbol.for("effect/Brand/Refined");
|
|
27437
27524
|
var nominal = () => {
|
|
27438
27525
|
return Object.assign((args) => args, {
|
|
@@ -27443,14 +27530,14 @@ var nominal = () => {
|
|
|
27443
27530
|
});
|
|
27444
27531
|
};
|
|
27445
27532
|
|
|
27446
|
-
// node_modules/.bun/effect@3.22.
|
|
27533
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Sink.js
|
|
27447
27534
|
var drain4 = drain2;
|
|
27448
27535
|
var foldLeftChunks2 = foldLeftChunks;
|
|
27449
27536
|
var forEach7 = forEach6;
|
|
27450
27537
|
var fromChannel4 = fromChannel;
|
|
27451
27538
|
var unwrapScoped6 = unwrapScoped3;
|
|
27452
27539
|
|
|
27453
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
27540
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/commandExecutor.js
|
|
27454
27541
|
var TypeId19 = /* @__PURE__ */ Symbol.for("@effect/platform/CommandExecutor");
|
|
27455
27542
|
var ProcessTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Process");
|
|
27456
27543
|
var ExitCode = /* @__PURE__ */ nominal();
|
|
@@ -27484,7 +27571,7 @@ var collectUint8Array = /* @__PURE__ */ foldLeftChunks2(/* @__PURE__ */ new Uint
|
|
|
27484
27571
|
return newArray;
|
|
27485
27572
|
}));
|
|
27486
27573
|
|
|
27487
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
27574
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/command.js
|
|
27488
27575
|
var CommandTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Command");
|
|
27489
27576
|
var isCommand = (u) => typeof u === "object" && u != null && (CommandTypeId in u);
|
|
27490
27577
|
var flatten11 = (self) => Array.from(flattenLoop(self));
|
|
@@ -27584,19 +27671,19 @@ var stdin = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
27584
27671
|
});
|
|
27585
27672
|
var string5 = /* @__PURE__ */ dual((args) => isCommand(args[0]), (command, encoding) => flatMap10(CommandExecutor, (executor) => executor.string(command, encoding)));
|
|
27586
27673
|
|
|
27587
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
27674
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Command.js
|
|
27588
27675
|
var flatten12 = flatten11;
|
|
27589
27676
|
var make51 = make50;
|
|
27590
27677
|
var string6 = string5;
|
|
27591
27678
|
var stderr2 = stderr;
|
|
27592
27679
|
var stdin2 = stdin;
|
|
27593
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
27680
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/CommandExecutor.js
|
|
27594
27681
|
var CommandExecutor2 = CommandExecutor;
|
|
27595
27682
|
var ProcessTypeId2 = ProcessTypeId;
|
|
27596
27683
|
var ExitCode2 = ExitCode;
|
|
27597
27684
|
var ProcessId2 = ProcessId;
|
|
27598
27685
|
var makeExecutor2 = makeExecutor;
|
|
27599
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
27686
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Headers.js
|
|
27600
27687
|
var HeadersTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Headers");
|
|
27601
27688
|
var Proto3 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
27602
27689
|
[HeadersTypeId]: HeadersTypeId,
|
|
@@ -27695,7 +27782,7 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
27695
27782
|
});
|
|
27696
27783
|
var currentRedactedNames = /* @__PURE__ */ globalValue("@effect/platform/Headers/currentRedactedNames", () => unsafeMake7(["authorization", "cookie", "set-cookie", "x-api-key"]));
|
|
27697
27784
|
|
|
27698
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
27785
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Error.js
|
|
27699
27786
|
var TypeId20 = /* @__PURE__ */ Symbol.for("@effect/platform/Error");
|
|
27700
27787
|
var TypeIdError = (typeId, tag) => {
|
|
27701
27788
|
class Base extends Error2 {
|
|
@@ -27735,10 +27822,10 @@ class SystemError extends (/* @__PURE__ */ TaggedError2("@effect/platform/Error/
|
|
|
27735
27822
|
}
|
|
27736
27823
|
}
|
|
27737
27824
|
|
|
27738
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
27825
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/httpClientError.js
|
|
27739
27826
|
var TypeId21 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientError");
|
|
27740
27827
|
|
|
27741
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
27828
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/HttpClientError.js
|
|
27742
27829
|
var TypeId22 = TypeId21;
|
|
27743
27830
|
class RequestError extends (/* @__PURE__ */ TypeIdError(TypeId22, "RequestError")) {
|
|
27744
27831
|
get methodAndUrl() {
|
|
@@ -27759,7 +27846,7 @@ class ResponseError extends (/* @__PURE__ */ TypeIdError(TypeId22, "ResponseErro
|
|
|
27759
27846
|
}
|
|
27760
27847
|
}
|
|
27761
27848
|
|
|
27762
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
27849
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Cookies.js
|
|
27763
27850
|
var TypeId23 = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies");
|
|
27764
27851
|
var CookieTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies/Cookie");
|
|
27765
27852
|
var Proto4 = {
|
|
@@ -27942,7 +28029,7 @@ var tryDecodeURIComponent = (str) => {
|
|
|
27942
28029
|
}
|
|
27943
28030
|
};
|
|
27944
28031
|
|
|
27945
|
-
// node_modules/.bun/effect@3.22.
|
|
28032
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Channel.js
|
|
27946
28033
|
var acquireUseRelease4 = acquireUseRelease3;
|
|
27947
28034
|
var embedInput2 = embedInput;
|
|
27948
28035
|
var ensuring8 = ensuring4;
|
|
@@ -27952,7 +28039,7 @@ var suspend10 = suspend6;
|
|
|
27952
28039
|
var void_7 = void_5;
|
|
27953
28040
|
var write2 = write;
|
|
27954
28041
|
|
|
27955
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28042
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/fileSystem.js
|
|
27956
28043
|
var tag3 = /* @__PURE__ */ GenericTag("@effect/platform/FileSystem");
|
|
27957
28044
|
var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
|
|
27958
28045
|
var bigint1024 = /* @__PURE__ */ BigInt(1024);
|
|
@@ -28010,7 +28097,7 @@ var stream2 = (file, {
|
|
|
28010
28097
|
});
|
|
28011
28098
|
};
|
|
28012
28099
|
|
|
28013
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28100
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/FileSystem.js
|
|
28014
28101
|
var Size2 = Size;
|
|
28015
28102
|
var FileSystem = tag3;
|
|
28016
28103
|
var make54 = make53;
|
|
@@ -28023,7 +28110,7 @@ var WatchEventRemove = /* @__PURE__ */ tagged("Remove");
|
|
|
28023
28110
|
class WatchBackend extends (/* @__PURE__ */ Tag2("@effect/platform/FileSystem/WatchBackend")()) {
|
|
28024
28111
|
}
|
|
28025
28112
|
|
|
28026
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28113
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/UrlParams.js
|
|
28027
28114
|
var fromInput3 = (input) => {
|
|
28028
28115
|
const parsed = fromInputNested(input);
|
|
28029
28116
|
const out = [];
|
|
@@ -28097,7 +28184,7 @@ var baseUrl = () => {
|
|
|
28097
28184
|
return;
|
|
28098
28185
|
};
|
|
28099
28186
|
|
|
28100
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28187
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
|
|
28101
28188
|
var TypeId24 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpIncomingMessage");
|
|
28102
28189
|
var inspect = (self, that) => {
|
|
28103
28190
|
const contentType = self.headers["content-type"] ?? "";
|
|
@@ -28122,13 +28209,13 @@ var inspect = (self, that) => {
|
|
|
28122
28209
|
return obj;
|
|
28123
28210
|
};
|
|
28124
28211
|
|
|
28125
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28212
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
|
|
28126
28213
|
var toHeaders = (span) => unsafeFromRecord({
|
|
28127
28214
|
b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${span.parent._tag === "Some" ? `-${span.parent.value.spanId}` : ""}`,
|
|
28128
28215
|
traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
|
|
28129
28216
|
});
|
|
28130
28217
|
|
|
28131
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28218
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/httpBody.js
|
|
28132
28219
|
var TypeId25 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpBody");
|
|
28133
28220
|
class BodyBase {
|
|
28134
28221
|
[TypeId25];
|
|
@@ -28196,7 +28283,7 @@ class FormDataImpl extends BodyBase {
|
|
|
28196
28283
|
}
|
|
28197
28284
|
var formData = (body) => new FormDataImpl(body);
|
|
28198
28285
|
|
|
28199
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28286
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
|
|
28200
28287
|
var TypeId26 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientRequest");
|
|
28201
28288
|
var Proto5 = {
|
|
28202
28289
|
[TypeId26]: TypeId26,
|
|
@@ -28304,7 +28391,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
28304
28391
|
});
|
|
28305
28392
|
var bodyUrlParams = /* @__PURE__ */ dual(2, (self, body) => setBody(self, text(toString(fromInput3(body)), "application/x-www-form-urlencoded")));
|
|
28306
28393
|
|
|
28307
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28394
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
|
|
28308
28395
|
var TypeId27 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientResponse");
|
|
28309
28396
|
var fromWeb = (request, source) => new ClientResponseImpl(request, source);
|
|
28310
28397
|
|
|
@@ -28416,7 +28503,7 @@ class ClientResponseImpl extends Class {
|
|
|
28416
28503
|
}
|
|
28417
28504
|
}
|
|
28418
28505
|
|
|
28419
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28506
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/httpClient.js
|
|
28420
28507
|
var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
|
|
28421
28508
|
var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
|
|
28422
28509
|
var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
|
|
@@ -28662,7 +28749,7 @@ var mapRequest = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
28662
28749
|
});
|
|
28663
28750
|
var layerMergedContext = (effect2) => effect(tag4, flatMap10(context3(), (context) => map18(effect2, (client) => transformResponse(client, mapInputContext2((input) => merge3(context, input))))));
|
|
28664
28751
|
|
|
28665
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28752
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
|
|
28666
28753
|
var fetchTagKey = "@effect/platform/FetchHttpClient/Fetch";
|
|
28667
28754
|
var requestInitTagKey = "@effect/platform/FetchHttpClient/FetchOptions";
|
|
28668
28755
|
var fetch = /* @__PURE__ */ make56((request, url, signal, fiber) => {
|
|
@@ -28701,14 +28788,14 @@ var fetch = /* @__PURE__ */ make56((request, url, signal, fiber) => {
|
|
|
28701
28788
|
});
|
|
28702
28789
|
var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed8(fetch));
|
|
28703
28790
|
|
|
28704
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28791
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/FetchHttpClient.js
|
|
28705
28792
|
var layer2 = layer;
|
|
28706
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28793
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/HttpBody.js
|
|
28707
28794
|
var formData2 = formData;
|
|
28708
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28795
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/HttpClient.js
|
|
28709
28796
|
var HttpClient = tag4;
|
|
28710
28797
|
var mapRequest2 = mapRequest;
|
|
28711
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
28798
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
|
|
28712
28799
|
var get20 = get18;
|
|
28713
28800
|
var post3 = post;
|
|
28714
28801
|
var patch11 = patch9;
|
|
@@ -28717,10 +28804,10 @@ var setHeaders2 = setHeaders;
|
|
|
28717
28804
|
var setUrlParams2 = setUrlParams;
|
|
28718
28805
|
var toUrl2 = toUrl;
|
|
28719
28806
|
var bodyUrlParams2 = bodyUrlParams;
|
|
28720
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
28807
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js
|
|
28721
28808
|
import * as ChildProcess from "node:child_process";
|
|
28722
28809
|
|
|
28723
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
28810
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/internal/error.js
|
|
28724
28811
|
var handleErrnoException = (module, method) => (err, [path]) => {
|
|
28725
28812
|
let reason = "Unknown";
|
|
28726
28813
|
switch (err.code) {
|
|
@@ -28757,7 +28844,7 @@ var handleErrnoException = (module, method) => (err, [path]) => {
|
|
|
28757
28844
|
});
|
|
28758
28845
|
};
|
|
28759
28846
|
|
|
28760
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
28847
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/internal/stream.js
|
|
28761
28848
|
var fromReadable = (evaluate, onError, options) => fromChannel3(fromReadableChannel(evaluate, onError, options));
|
|
28762
28849
|
var fromReadableChannel = (evaluate, onError, options) => suspend10(() => unsafeReadableRead(evaluate(), onError, make11(undefined), options));
|
|
28763
28850
|
var writeInput = (writable, onFailure, {
|
|
@@ -28845,7 +28932,7 @@ var unsafeReadableRead = (readable, onError, exit, options) => {
|
|
|
28845
28932
|
}));
|
|
28846
28933
|
};
|
|
28847
28934
|
|
|
28848
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
28935
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/internal/sink.js
|
|
28849
28936
|
var fromWritable = (evaluate, onError, options) => fromChannel4(fromWritableChannel(evaluate, onError, options));
|
|
28850
28937
|
var fromWritableChannel = (writable, onError, options) => flatMap16(zip6(sync4(() => writable()), make25()), ([writable, deferred]) => embedInput2(writableOutput(writable, deferred, onError), writeInput(writable, (cause) => failCause2(deferred, cause), options, complete(deferred, _void))));
|
|
28851
28938
|
var writableOutput = (writable, deferred, onError) => suspend4(() => {
|
|
@@ -28858,7 +28945,7 @@ var writableOutput = (writable, deferred, onError) => suspend4(() => {
|
|
|
28858
28945
|
}));
|
|
28859
28946
|
});
|
|
28860
28947
|
|
|
28861
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
28948
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js
|
|
28862
28949
|
var inputToStdioOption = (stdin) => typeof stdin === "string" ? stdin : "pipe";
|
|
28863
28950
|
var outputToStdioOption = (output) => typeof output === "string" ? output : "pipe";
|
|
28864
28951
|
var toError = (err) => err instanceof globalThis.Error ? err : new globalThis.Error(String(err));
|
|
@@ -28978,10 +29065,10 @@ var runCommand = (fileSystem) => (command) => {
|
|
|
28978
29065
|
};
|
|
28979
29066
|
var layer3 = /* @__PURE__ */ effect(CommandExecutor2, /* @__PURE__ */ pipe(FileSystem, /* @__PURE__ */ map18((fileSystem) => makeExecutor2(runCommand(fileSystem)))));
|
|
28980
29067
|
|
|
28981
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
29068
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.js
|
|
28982
29069
|
var layer4 = layer3;
|
|
28983
29070
|
|
|
28984
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
29071
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/effectify.js
|
|
28985
29072
|
var effectify = (fn, onError, onSyncError) => (...args) => async((resume) => {
|
|
28986
29073
|
try {
|
|
28987
29074
|
fn(...args, (err, result) => {
|
|
@@ -28996,10 +29083,10 @@ var effectify = (fn, onError, onSyncError) => (...args) => async((resume) => {
|
|
|
28996
29083
|
}
|
|
28997
29084
|
});
|
|
28998
29085
|
|
|
28999
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
29086
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Effectify.js
|
|
29000
29087
|
var effectify2 = effectify;
|
|
29001
29088
|
|
|
29002
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
29089
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/internal/fileSystem.js
|
|
29003
29090
|
import * as Crypto from "node:crypto";
|
|
29004
29091
|
import * as NFS from "node:fs";
|
|
29005
29092
|
import * as OS from "node:os";
|
|
@@ -29359,10 +29446,10 @@ var makeFileSystem = /* @__PURE__ */ map18(/* @__PURE__ */ serviceOption2(WatchB
|
|
|
29359
29446
|
}));
|
|
29360
29447
|
var layer5 = /* @__PURE__ */ effect(FileSystem, makeFileSystem);
|
|
29361
29448
|
|
|
29362
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
29449
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/NodeFileSystem.js
|
|
29363
29450
|
var layer6 = layer5;
|
|
29364
29451
|
|
|
29365
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
29452
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/path.js
|
|
29366
29453
|
var TypeId29 = /* @__PURE__ */ Symbol.for("@effect/platform/Path");
|
|
29367
29454
|
var Path3 = /* @__PURE__ */ GenericTag("@effect/platform/Path");
|
|
29368
29455
|
function normalizeStringPosix(path, allowAboveRoot) {
|
|
@@ -29846,11 +29933,11 @@ var posixImpl = /* @__PURE__ */ Path3.of({
|
|
|
29846
29933
|
toNamespacedPath: identity
|
|
29847
29934
|
});
|
|
29848
29935
|
|
|
29849
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
29936
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Path.js
|
|
29850
29937
|
var TypeId30 = TypeId29;
|
|
29851
29938
|
var Path4 = Path3;
|
|
29852
29939
|
|
|
29853
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
29940
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/internal/path.js
|
|
29854
29941
|
import * as NodePath from "node:path";
|
|
29855
29942
|
import * as NodeUrl from "node:url";
|
|
29856
29943
|
var fromFileUrl2 = (url) => try_3({
|
|
@@ -29890,22 +29977,22 @@ var layer8 = /* @__PURE__ */ succeed9(Path4, /* @__PURE__ */ Path4.of({
|
|
|
29890
29977
|
toFileUrl: toFileUrl2
|
|
29891
29978
|
}));
|
|
29892
29979
|
|
|
29893
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
29980
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/NodePath.js
|
|
29894
29981
|
var layer9 = layer8;
|
|
29895
29982
|
|
|
29896
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
29983
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/terminal.js
|
|
29897
29984
|
var tag5 = /* @__PURE__ */ GenericTag("@effect/platform/Terminal");
|
|
29898
29985
|
|
|
29899
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
29986
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Terminal.js
|
|
29900
29987
|
var Terminal2 = tag5;
|
|
29901
29988
|
|
|
29902
|
-
// node_modules/.bun/effect@3.22.
|
|
29989
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/Mailbox.js
|
|
29903
29990
|
var TypeId31 = TypeId18;
|
|
29904
29991
|
var isMailbox = (u) => hasProperty(u, TypeId31);
|
|
29905
29992
|
var make57 = make46;
|
|
29906
29993
|
var toChannel4 = toChannel2;
|
|
29907
29994
|
|
|
29908
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
29995
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/internal/terminal.js
|
|
29909
29996
|
import * as readline from "node:readline";
|
|
29910
29997
|
var defaultShouldQuit = (input) => input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
|
|
29911
29998
|
var make58 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQuit) {
|
|
@@ -29978,10 +30065,10 @@ var make58 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
29978
30065
|
});
|
|
29979
30066
|
var layer10 = /* @__PURE__ */ scoped3(Terminal2, /* @__PURE__ */ make58(defaultShouldQuit));
|
|
29980
30067
|
|
|
29981
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
30068
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/NodeTerminal.js
|
|
29982
30069
|
var layer11 = layer10;
|
|
29983
30070
|
|
|
29984
|
-
// node_modules/.bun/effect@3.22.
|
|
30071
|
+
// node_modules/.bun/effect@3.22.3/node_modules/effect/dist/esm/FiberSet.js
|
|
29985
30072
|
var TypeId32 = /* @__PURE__ */ Symbol.for("effect/FiberSet");
|
|
29986
30073
|
var isFiberSet = (u) => hasProperty(u, TypeId32);
|
|
29987
30074
|
var Proto6 = {
|
|
@@ -30057,7 +30144,7 @@ var unsafeAdd = /* @__PURE__ */ dual((args) => isFiberSet(args[0]), (self, fiber
|
|
|
30057
30144
|
});
|
|
30058
30145
|
var join5 = (self) => _await(self.deferred);
|
|
30059
30146
|
|
|
30060
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
30147
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Transferable.js
|
|
30061
30148
|
class Collector extends (/* @__PURE__ */ Tag2("@effect/platform/Transferable/Collector")()) {
|
|
30062
30149
|
}
|
|
30063
30150
|
var unsafeMakeCollector = () => {
|
|
@@ -30081,10 +30168,10 @@ var unsafeMakeCollector = () => {
|
|
|
30081
30168
|
});
|
|
30082
30169
|
};
|
|
30083
30170
|
|
|
30084
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
30171
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/workerError.js
|
|
30085
30172
|
var WorkerErrorTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/WorkerError");
|
|
30086
30173
|
|
|
30087
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
30174
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/WorkerError.js
|
|
30088
30175
|
var WorkerErrorTypeId2 = WorkerErrorTypeId;
|
|
30089
30176
|
class WorkerError2 extends (/* @__PURE__ */ TaggedError2()("WorkerError", {
|
|
30090
30177
|
reason: /* @__PURE__ */ Literal2("spawn", "decode", "send", "unknown", "encode"),
|
|
@@ -30113,7 +30200,7 @@ class WorkerError2 extends (/* @__PURE__ */ TaggedError2()("WorkerError", {
|
|
|
30113
30200
|
}
|
|
30114
30201
|
}
|
|
30115
30202
|
|
|
30116
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
30203
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/internal/worker.js
|
|
30117
30204
|
var PlatformWorkerTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Worker/PlatformWorker");
|
|
30118
30205
|
var PlatformWorker = /* @__PURE__ */ GenericTag("@effect/platform/Worker/PlatformWorker");
|
|
30119
30206
|
var WorkerManagerTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Worker/WorkerManager");
|
|
@@ -30270,12 +30357,12 @@ var makePlatform = () => (options) => PlatformWorker.of({
|
|
|
30270
30357
|
}
|
|
30271
30358
|
});
|
|
30272
30359
|
|
|
30273
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
30360
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Worker.js
|
|
30274
30361
|
var makePlatform2 = makePlatform;
|
|
30275
30362
|
var PlatformWorker2 = PlatformWorker;
|
|
30276
30363
|
var layerManager2 = layerManager;
|
|
30277
30364
|
|
|
30278
|
-
// node_modules/.bun/@effect+platform-node@0.108.
|
|
30365
|
+
// node_modules/.bun/@effect+platform-node@0.108.3+a85e8f93d979f007/node_modules/@effect/platform-node/dist/esm/internal/worker.js
|
|
30279
30366
|
var platformWorkerImpl = /* @__PURE__ */ makePlatform2()({
|
|
30280
30367
|
setup({
|
|
30281
30368
|
scope,
|
|
@@ -30336,12 +30423,12 @@ var platformWorkerImpl = /* @__PURE__ */ makePlatform2()({
|
|
|
30336
30423
|
var layerWorker = /* @__PURE__ */ succeed9(PlatformWorker2, platformWorkerImpl);
|
|
30337
30424
|
var layerManager3 = /* @__PURE__ */ provide3(layerManager2, layerWorker);
|
|
30338
30425
|
|
|
30339
|
-
// node_modules/.bun/@effect+platform-node@0.108.
|
|
30426
|
+
// node_modules/.bun/@effect+platform-node@0.108.3+a85e8f93d979f007/node_modules/@effect/platform-node/dist/esm/NodeWorker.js
|
|
30340
30427
|
var layerManager4 = layerManager3;
|
|
30341
30428
|
|
|
30342
|
-
// node_modules/.bun/@effect+platform-node@0.108.
|
|
30429
|
+
// node_modules/.bun/@effect+platform-node@0.108.3+a85e8f93d979f007/node_modules/@effect/platform-node/dist/esm/NodeContext.js
|
|
30343
30430
|
var layer13 = /* @__PURE__ */ pipe(/* @__PURE__ */ mergeAll5(layer9, layer4, layer11, layerManager4), /* @__PURE__ */ provideMerge2(layer6));
|
|
30344
|
-
// node_modules/.bun/@effect+platform@0.97.2+
|
|
30431
|
+
// node_modules/.bun/@effect+platform@0.97.2+b7d12001b80ce2c7/node_modules/@effect/platform/dist/esm/Runtime.js
|
|
30345
30432
|
var defaultTeardown = (exit, onExit) => {
|
|
30346
30433
|
onExit(isFailure2(exit) && !isInterruptedOnly2(exit.cause) ? 1 : 0);
|
|
30347
30434
|
};
|
|
@@ -30374,7 +30461,7 @@ var makeRunMain = (f) => dual((args) => isEffect2(args[0]), (effect, options) =>
|
|
|
30374
30461
|
});
|
|
30375
30462
|
});
|
|
30376
30463
|
|
|
30377
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
30464
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/internal/runtime.js
|
|
30378
30465
|
var runMain = /* @__PURE__ */ makeRunMain(({
|
|
30379
30466
|
fiber,
|
|
30380
30467
|
teardown
|
|
@@ -30403,15 +30490,15 @@ var runMain = /* @__PURE__ */ makeRunMain(({
|
|
|
30403
30490
|
process.on("SIGTERM", onSigint);
|
|
30404
30491
|
});
|
|
30405
30492
|
|
|
30406
|
-
// node_modules/.bun/@effect+platform-node-shared@0.61.1+
|
|
30493
|
+
// node_modules/.bun/@effect+platform-node-shared@0.61.1+a85e8f93d979f007/node_modules/@effect/platform-node-shared/dist/esm/NodeRuntime.js
|
|
30407
30494
|
var runMain2 = runMain;
|
|
30408
30495
|
|
|
30409
|
-
// node_modules/.bun/@effect+platform-node@0.108.
|
|
30496
|
+
// node_modules/.bun/@effect+platform-node@0.108.3+a85e8f93d979f007/node_modules/@effect/platform-node/dist/esm/NodeRuntime.js
|
|
30410
30497
|
var runMain3 = runMain2;
|
|
30411
30498
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
30412
30499
|
import process2 from "node:process";
|
|
30413
30500
|
|
|
30414
|
-
// node_modules/.bun/zod@4.6.
|
|
30501
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/util.js
|
|
30415
30502
|
function getEnumValues(entries) {
|
|
30416
30503
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
30417
30504
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -30757,6 +30844,18 @@ function prefixIssues(path, issues) {
|
|
|
30757
30844
|
function unwrapMessage(message) {
|
|
30758
30845
|
return typeof message === "string" ? message : message?.message;
|
|
30759
30846
|
}
|
|
30847
|
+
function sizeCaps(defChecks) {
|
|
30848
|
+
const caps = [];
|
|
30849
|
+
for (const ch of defChecks ?? []) {
|
|
30850
|
+
const d = ch._zod.def;
|
|
30851
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
30852
|
+
break;
|
|
30853
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
30854
|
+
if (max >= 0)
|
|
30855
|
+
caps.push([max, ch]);
|
|
30856
|
+
}
|
|
30857
|
+
return caps;
|
|
30858
|
+
}
|
|
30760
30859
|
function attachSchema(issues, start, inst) {
|
|
30761
30860
|
var _a;
|
|
30762
30861
|
for (let i = start;i < issues.length; i++) {
|
|
@@ -30954,7 +31053,7 @@ function constantCatch(value) {
|
|
|
30954
31053
|
return fn;
|
|
30955
31054
|
}
|
|
30956
31055
|
|
|
30957
|
-
// node_modules/.bun/zod@4.6.
|
|
31056
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/core.js
|
|
30958
31057
|
var _a;
|
|
30959
31058
|
var _zodDesc = { value: undefined, enumerable: false };
|
|
30960
31059
|
var _E = "captureStackTrace" in Error ? Error : null;
|
|
@@ -31072,7 +31171,7 @@ function config2(newConfig) {
|
|
|
31072
31171
|
Object.assign(globalConfig, newConfig);
|
|
31073
31172
|
return globalConfig;
|
|
31074
31173
|
}
|
|
31075
|
-
// node_modules/.bun/zod@4.6.
|
|
31174
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/errors.js
|
|
31076
31175
|
function _getMessage() {
|
|
31077
31176
|
const internals = this._zod;
|
|
31078
31177
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -31187,7 +31286,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
31187
31286
|
return fieldErrors;
|
|
31188
31287
|
}
|
|
31189
31288
|
|
|
31190
|
-
// node_modules/.bun/zod@4.6.
|
|
31289
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/parse.js
|
|
31191
31290
|
function finalizeParams(callee, params) {
|
|
31192
31291
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
31193
31292
|
}
|
|
@@ -31335,7 +31434,7 @@ var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
31335
31434
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
31336
31435
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
31337
31436
|
};
|
|
31338
|
-
// node_modules/.bun/zod@4.6.
|
|
31437
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/regexes.js
|
|
31339
31438
|
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
31340
31439
|
var cuid2 = /^[0-9a-z]+$/;
|
|
31341
31440
|
var ulid = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
@@ -31394,7 +31493,7 @@ var _null = /^null$/i;
|
|
|
31394
31493
|
var lowercase = /^[^A-Z]*$/;
|
|
31395
31494
|
var uppercase = /^[^a-z]*$/;
|
|
31396
31495
|
|
|
31397
|
-
// node_modules/.bun/zod@4.6.
|
|
31496
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/checks.js
|
|
31398
31497
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
31399
31498
|
var _a;
|
|
31400
31499
|
inst._zod ?? (inst._zod = {});
|
|
@@ -31710,7 +31809,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
31710
31809
|
};
|
|
31711
31810
|
});
|
|
31712
31811
|
|
|
31713
|
-
// node_modules/.bun/zod@4.6.
|
|
31812
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/doc.js
|
|
31714
31813
|
class Doc {
|
|
31715
31814
|
constructor(args = [], closed = {}) {
|
|
31716
31815
|
this.content = [];
|
|
@@ -31752,14 +31851,14 @@ ${content.join(`
|
|
|
31752
31851
|
}
|
|
31753
31852
|
}
|
|
31754
31853
|
|
|
31755
|
-
// node_modules/.bun/zod@4.6.
|
|
31854
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/versions.js
|
|
31756
31855
|
var version = {
|
|
31757
31856
|
major: 4,
|
|
31758
31857
|
minor: 6,
|
|
31759
|
-
patch:
|
|
31858
|
+
patch: 6
|
|
31760
31859
|
};
|
|
31761
31860
|
|
|
31762
|
-
// node_modules/.bun/zod@4.6.
|
|
31861
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/schemas.js
|
|
31763
31862
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
31764
31863
|
var _a;
|
|
31765
31864
|
inst ?? (inst = {});
|
|
@@ -32325,6 +32424,29 @@ var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
32325
32424
|
return payload;
|
|
32326
32425
|
};
|
|
32327
32426
|
});
|
|
32427
|
+
function capSize(inst, size) {
|
|
32428
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
32429
|
+
if (!caps.length)
|
|
32430
|
+
return;
|
|
32431
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
32432
|
+
const parse = inst._zod.parse;
|
|
32433
|
+
inst._zod.parse = (payload, ctx) => {
|
|
32434
|
+
const n = size(payload.value);
|
|
32435
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
32436
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
32437
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
32438
|
+
const start = payload.issues.length;
|
|
32439
|
+
ch._zod.check(payload);
|
|
32440
|
+
payload.issues[start].continue = false;
|
|
32441
|
+
attachSchema(payload.issues, start, inst);
|
|
32442
|
+
return payload;
|
|
32443
|
+
}
|
|
32444
|
+
}
|
|
32445
|
+
}
|
|
32446
|
+
return parse(payload, ctx);
|
|
32447
|
+
};
|
|
32448
|
+
}
|
|
32449
|
+
var arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
32328
32450
|
function handleArrayResult(result, final, index) {
|
|
32329
32451
|
if (result.issues.length) {
|
|
32330
32452
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -32368,6 +32490,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
32368
32490
|
}
|
|
32369
32491
|
return payload;
|
|
32370
32492
|
};
|
|
32493
|
+
capSize(inst, arraySize);
|
|
32371
32494
|
});
|
|
32372
32495
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
32373
32496
|
const isPresent = key in input;
|
|
@@ -33391,7 +33514,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
33391
33514
|
payload.issues.push(issue(_iss));
|
|
33392
33515
|
}
|
|
33393
33516
|
}
|
|
33394
|
-
// node_modules/.bun/zod@4.6.
|
|
33517
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/memoizer.js
|
|
33395
33518
|
class $ZodCyclicError extends Error {
|
|
33396
33519
|
constructor() {
|
|
33397
33520
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -33660,7 +33783,7 @@ function isBackEdge(ctx, value) {
|
|
|
33660
33783
|
const backEdges = ctx[STATE]?.backEdges;
|
|
33661
33784
|
return backEdges !== undefined && isRef(value) && backEdges.has(value);
|
|
33662
33785
|
}
|
|
33663
|
-
// node_modules/.bun/zod@4.6.
|
|
33786
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/locales/en.js
|
|
33664
33787
|
var error = () => {
|
|
33665
33788
|
const Sizable = {
|
|
33666
33789
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -33782,7 +33905,7 @@ function en_default() {
|
|
|
33782
33905
|
localeError: error()
|
|
33783
33906
|
};
|
|
33784
33907
|
}
|
|
33785
|
-
// node_modules/.bun/zod@4.6.
|
|
33908
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/registries.js
|
|
33786
33909
|
var _a2;
|
|
33787
33910
|
class $ZodRegistry {
|
|
33788
33911
|
constructor() {
|
|
@@ -33829,7 +33952,7 @@ function registry() {
|
|
|
33829
33952
|
}
|
|
33830
33953
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
33831
33954
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
33832
|
-
// node_modules/.bun/zod@4.6.
|
|
33955
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/api.js
|
|
33833
33956
|
function snapshotChecks(def) {
|
|
33834
33957
|
if (def.checks)
|
|
33835
33958
|
def.checks = [...def.checks];
|
|
@@ -34294,7 +34417,7 @@ function _check(fn, params) {
|
|
|
34294
34417
|
ch._zod.check = fn;
|
|
34295
34418
|
return ch;
|
|
34296
34419
|
}
|
|
34297
|
-
// node_modules/.bun/zod@4.6.
|
|
34420
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/to-json-schema.js
|
|
34298
34421
|
function assignProps(target, ...sources) {
|
|
34299
34422
|
for (const source of sources) {
|
|
34300
34423
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -34817,7 +34940,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
34817
34940
|
extractDefs(ctx, schema);
|
|
34818
34941
|
return finalize(ctx, schema);
|
|
34819
34942
|
};
|
|
34820
|
-
// node_modules/.bun/zod@4.6.
|
|
34943
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
34821
34944
|
var narrowMin = (agg, key, value) => {
|
|
34822
34945
|
if (agg[key] === undefined || value > agg[key])
|
|
34823
34946
|
agg[key] = value;
|
|
@@ -35351,7 +35474,7 @@ var optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
35351
35474
|
const seen = ctx.seen.get(schema);
|
|
35352
35475
|
seen.ref = def.innerType;
|
|
35353
35476
|
};
|
|
35354
|
-
// node_modules/.bun/zod@4.6.
|
|
35477
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/errors.js
|
|
35355
35478
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
35356
35479
|
function _lazyMethod(proto, key, make) {
|
|
35357
35480
|
Object.defineProperty(proto, key, {
|
|
@@ -35396,7 +35519,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, undefi
|
|
|
35396
35519
|
Parent: Error
|
|
35397
35520
|
});
|
|
35398
35521
|
|
|
35399
|
-
// node_modules/.bun/zod@4.6.
|
|
35522
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/parse.js
|
|
35400
35523
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
35401
35524
|
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
35402
35525
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -35410,7 +35533,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
35410
35533
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
35411
35534
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
35412
35535
|
|
|
35413
|
-
// node_modules/.bun/zod@4.6.
|
|
35536
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/schemas.js
|
|
35414
35537
|
function _ensureDefaultLocale() {
|
|
35415
35538
|
if (!globalConfig.localeError)
|
|
35416
35539
|
config2(en_default());
|
|
@@ -36340,7 +36463,7 @@ function preprocess(fn, schema) {
|
|
|
36340
36463
|
out: schema
|
|
36341
36464
|
});
|
|
36342
36465
|
}
|
|
36343
|
-
// node_modules/.bun/zod@4.6.
|
|
36466
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/iso.js
|
|
36344
36467
|
function datetime2(params) {
|
|
36345
36468
|
return _isoDateTime(ZodISODateTime, params);
|
|
36346
36469
|
}
|
|
@@ -37415,9 +37538,10 @@ var mentionTokens = (content) => {
|
|
|
37415
37538
|
var resolveUser = (token, directory) => {
|
|
37416
37539
|
const disambiguated = DISAMBIGUATED.exec(token);
|
|
37417
37540
|
if (disambiguated?.groups !== undefined) {
|
|
37418
|
-
|
|
37541
|
+
const name = disambiguated.groups["name"] ?? "";
|
|
37542
|
+
return fromNullable(directory.byUserId(Number(disambiguated.groups["id"]))).pipe(filter((identity) => name === "" || identity.name === name));
|
|
37419
37543
|
}
|
|
37420
|
-
return fromNullable(directory.byName.get(token));
|
|
37544
|
+
return fromNullable(directory.byName.get(token.toLowerCase()));
|
|
37421
37545
|
};
|
|
37422
37546
|
var unresolvedMentions = (content, directory) => dedupe(filterMap2(mentionTokens(content), (token) => value3(token).pipe(tag2("UserToken", ({ token: name }) => isNone2(resolveUser(name, directory)) ? some2(name) : none2()), orElse9(() => none2()))));
|
|
37423
37547
|
|
|
@@ -37601,7 +37725,7 @@ var decodeSenderIdentity = (message, directory) => {
|
|
|
37601
37725
|
return gen2(function* () {
|
|
37602
37726
|
const id = yield* decodeIdentityId(String(message.sender_id));
|
|
37603
37727
|
const name = yield* decodeDisplayName(message.sender_full_name);
|
|
37604
|
-
return { id, name, kind: "
|
|
37728
|
+
return { id, name, kind: "unknown" };
|
|
37605
37729
|
});
|
|
37606
37730
|
};
|
|
37607
37731
|
var messageToInboundEvents = (message, directory, boundIdentity, base, renderedFor) => gen2(function* () {
|
|
@@ -37645,7 +37769,7 @@ var decodeReactionIdentity = (reaction, directory) => {
|
|
|
37645
37769
|
return gen2(function* () {
|
|
37646
37770
|
const id = yield* decodeIdentityId(String(reaction.user_id));
|
|
37647
37771
|
const name = yield* decodeDisplayName(`user-${reaction.user_id}`);
|
|
37648
|
-
return { id, name, kind: "
|
|
37772
|
+
return { id, name, kind: "unknown" };
|
|
37649
37773
|
});
|
|
37650
37774
|
};
|
|
37651
37775
|
var reactionToInboundEvent = (reaction, directory, target) => gen2(function* () {
|
|
@@ -37937,7 +38061,17 @@ var envelopeSchema = Struct({
|
|
|
37937
38061
|
var decodeEnvelope = decodeUnknownEither2(parseJson(envelopeSchema), {
|
|
37938
38062
|
onExcessProperty: "preserve"
|
|
37939
38063
|
});
|
|
37940
|
-
var
|
|
38064
|
+
var isPlainSegment = (segment) => match(decodeUriComponent(segment), {
|
|
38065
|
+
onLeft: () => false,
|
|
38066
|
+
onRight: (name) => !/[/\\]/.test(name)
|
|
38067
|
+
});
|
|
38068
|
+
var decodePath = (path) => getRight2(decodeUriComponent(path));
|
|
38069
|
+
var isPlainPath = (raw) => {
|
|
38070
|
+
const written = decodePath(raw);
|
|
38071
|
+
const sent = fromNullable(URL.parse(raw, "http://realm.invalid")).pipe(flatMap((url) => decodePath(url.pathname)));
|
|
38072
|
+
return isSome2(written) && equals(written, sent) && raw.split("/").every(isPlainSegment);
|
|
38073
|
+
};
|
|
38074
|
+
var UserUploadPathSchema = NonEmptyString.pipe(pattern(/^\/user_uploads\//), filter9(isPlainPath, { message: () => "a plain path under /user_uploads/" }), brand("UserUploadPath"));
|
|
37941
38075
|
var decodeUserUploadPath = (raw) => decodeUnknown2(UserUploadPathSchema)(raw);
|
|
37942
38076
|
var uploadResponseSchema = Struct({
|
|
37943
38077
|
url: String$,
|
|
@@ -37983,6 +38117,7 @@ var classifyEnvelope = (text, status, url) => {
|
|
|
37983
38117
|
})) : right2(text)
|
|
37984
38118
|
});
|
|
37985
38119
|
};
|
|
38120
|
+
var isCredentialRejected = (err) => err.status === 401;
|
|
37986
38121
|
var TRANSPORT_FAILURE_STATUS = 0;
|
|
37987
38122
|
var isTransientZulipError = (err) => err.status === TRANSPORT_FAILURE_STATUS || err.status === 429 || err.status === 502 || err.status === 503 || err.status === 504;
|
|
37988
38123
|
var transportError = (url, cause) => new ZulipApiError({
|
|
@@ -38008,6 +38143,23 @@ var makeZulipHttp = (config) => gen2(function* () {
|
|
|
38008
38143
|
ResponseError: (cause) => fail9(transportError(url, cause))
|
|
38009
38144
|
}));
|
|
38010
38145
|
const sendWithRetry = (url, request) => attempt(url, request).pipe(retry({ schedule: rateLimitSchedule() }));
|
|
38146
|
+
const attemptDownload = (realmPath, url, request) => httpClient.execute(request).pipe(flatMap10((response) => {
|
|
38147
|
+
if (response.status < 200 || response.status >= 300) {
|
|
38148
|
+
return response.text.pipe(mapError2((cause) => transportError(url, cause)), flatMap10((text) => fail9(new ZulipApiError({
|
|
38149
|
+
message: `download ${realmPath}: HTTP ${response.status}`,
|
|
38150
|
+
status: response.status,
|
|
38151
|
+
code: undefined,
|
|
38152
|
+
retryAfter: parseEnvelope(text).pipe(flatMap((env) => fromNullable(env["retry-after"])), getOrUndefined2)
|
|
38153
|
+
}))));
|
|
38154
|
+
}
|
|
38155
|
+
return response.arrayBuffer.pipe(map18((buf) => ({
|
|
38156
|
+
data: new Uint8Array(buf),
|
|
38157
|
+
contentType: response.headers["content-type"] ?? "application/octet-stream"
|
|
38158
|
+
})), mapError2((cause) => transportError(url, cause)));
|
|
38159
|
+
}), catchTags2({
|
|
38160
|
+
RequestError: (cause) => fail9(transportError(url, cause)),
|
|
38161
|
+
ResponseError: (cause) => fail9(transportError(url, cause))
|
|
38162
|
+
}));
|
|
38011
38163
|
const sendJson = (url, request, schema) => {
|
|
38012
38164
|
const decode = decodeUnknown2(parseJson(schema));
|
|
38013
38165
|
return sendWithRetry(url, request).pipe(flatMap10(decode));
|
|
@@ -38024,23 +38176,7 @@ var makeZulipHttp = (config) => gen2(function* () {
|
|
|
38024
38176
|
downloadRaw: (realmPath) => realmPath.startsWith("/") ? (() => {
|
|
38025
38177
|
const url = realmRoot + realmPath;
|
|
38026
38178
|
const request = get20(url);
|
|
38027
|
-
return
|
|
38028
|
-
if (response.status < 200 || response.status >= 300) {
|
|
38029
|
-
return fail9(new ZulipApiError({
|
|
38030
|
-
message: `download ${realmPath}: HTTP ${response.status}`,
|
|
38031
|
-
status: response.status,
|
|
38032
|
-
code: undefined,
|
|
38033
|
-
retryAfter: undefined
|
|
38034
|
-
}));
|
|
38035
|
-
}
|
|
38036
|
-
return response.arrayBuffer.pipe(map18((buf) => ({
|
|
38037
|
-
data: new Uint8Array(buf),
|
|
38038
|
-
contentType: response.headers["content-type"] ?? "application/octet-stream"
|
|
38039
|
-
})), mapError2((cause) => transportError(url, cause)));
|
|
38040
|
-
}), catchTags2({
|
|
38041
|
-
RequestError: (cause) => fail9(transportError(url, cause)),
|
|
38042
|
-
ResponseError: (cause) => fail9(transportError(url, cause))
|
|
38043
|
-
}));
|
|
38179
|
+
return attemptDownload(realmPath, url, request).pipe(retry({ schedule: rateLimitSchedule() }));
|
|
38044
38180
|
})() : die5(new TypeError(`ZulipHttp realmPath must start with '/' — received: ${JSON.stringify(realmPath)}`)),
|
|
38045
38181
|
uploadRaw: (filename, data) => resolvePath("/user_uploads").pipe(flatMap10((url) => {
|
|
38046
38182
|
const form = new FormData;
|
|
@@ -38052,6 +38188,20 @@ var makeZulipHttp = (config) => gen2(function* () {
|
|
|
38052
38188
|
};
|
|
38053
38189
|
});
|
|
38054
38190
|
|
|
38191
|
+
// packages/zulip/message-length.ts
|
|
38192
|
+
var messageLimitStateSchema = Struct({
|
|
38193
|
+
queue_id: String$,
|
|
38194
|
+
max_message_length: Int
|
|
38195
|
+
});
|
|
38196
|
+
var overlongBodyRejection = (operation, body, limit) => {
|
|
38197
|
+
const length = [...body].length;
|
|
38198
|
+
return length > limit ? some2(new MessageRejected({
|
|
38199
|
+
operation,
|
|
38200
|
+
substrate: "zulip",
|
|
38201
|
+
detail: `message is too long (limit: ${limit} characters, got ${length})`
|
|
38202
|
+
})) : none2();
|
|
38203
|
+
};
|
|
38204
|
+
|
|
38055
38205
|
// packages/zulip/user-ref.ts
|
|
38056
38206
|
var ZulipUserRef = (userId) => userId;
|
|
38057
38207
|
var senderNarrow = (ref) => ({
|
|
@@ -38108,6 +38258,10 @@ var sentMessageSchema = Struct({
|
|
|
38108
38258
|
result: Literal2("success"),
|
|
38109
38259
|
id: Int
|
|
38110
38260
|
});
|
|
38261
|
+
var storedMessageSchema = Struct({
|
|
38262
|
+
result: Literal2("success"),
|
|
38263
|
+
message: Struct({ subject: String$ })
|
|
38264
|
+
});
|
|
38111
38265
|
var successSchema = Struct({ result: Literal2("success") });
|
|
38112
38266
|
var renderedSchema = Struct({
|
|
38113
38267
|
result: Literal2("success"),
|
|
@@ -38181,6 +38335,7 @@ var senderMessagesResponseSchema = Struct({
|
|
|
38181
38335
|
});
|
|
38182
38336
|
var RECENT_THREADS_DEFAULT_LIMIT = 10;
|
|
38183
38337
|
var RECENT_THREADS_FETCH_LIMIT = 50;
|
|
38338
|
+
var OUTBOUND_DIRECTORY_TTL = minutes(1);
|
|
38184
38339
|
var HISTORY_DEFAULT_LIMIT = 100;
|
|
38185
38340
|
var HISTORY_MAX_PAGES = 20;
|
|
38186
38341
|
var realmEditingStateSchema = Struct({
|
|
@@ -38230,6 +38385,15 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38230
38385
|
const httpClient = yield* HttpClient;
|
|
38231
38386
|
const minterHttp = yield* makeZulipHttp(buildHttpConfig(config.realmUrl, config.minterEmail, value4(config.minterApiKey), config.hostHeader));
|
|
38232
38387
|
const boundRef = yield* make49(none2());
|
|
38388
|
+
const credentialRejectedRef = yield* make27(false);
|
|
38389
|
+
const recordRejection = (call) => call.pipe(tapError2((e) => e instanceof ZulipApiError && isCredentialRejected(e) ? set5(credentialRejectedRef, true) : _void));
|
|
38390
|
+
const watchBoundHttp = (inner) => ({
|
|
38391
|
+
get: (path, schema, params) => recordRejection(inner.get(path, schema, params)),
|
|
38392
|
+
post: (path, schema, body) => recordRejection(inner.post(path, schema, body)),
|
|
38393
|
+
patch: (path, schema, body) => recordRejection(inner.patch(path, schema, body)),
|
|
38394
|
+
delete: (path, schema, body) => recordRejection(inner.delete(path, schema, body)),
|
|
38395
|
+
uploadRaw: (filename, data) => recordRejection(inner.uploadRaw(filename, data))
|
|
38396
|
+
});
|
|
38233
38397
|
const requireBound = () => get16(boundRef).pipe(map18(getOrThrowWith2(() => new Error("zulipAdapter: not acquired — call identity.acquire(name) first"))));
|
|
38234
38398
|
const bindOnDemand = config.bindOnDemand ?? get16(boundRef).pipe(flatMap10(match2({
|
|
38235
38399
|
onNone: () => fail9(new UnboundEphemeralSession({
|
|
@@ -38258,7 +38422,10 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38258
38422
|
for (const u of members) {
|
|
38259
38423
|
const ident = yield* toIdentity(u);
|
|
38260
38424
|
byId.set(ZulipUserRef(u.user_id), ident);
|
|
38261
|
-
|
|
38425
|
+
const name = u.full_name.toLowerCase();
|
|
38426
|
+
const held = byName.get(name);
|
|
38427
|
+
if (held === undefined || u.is_active || !active.has(held.id))
|
|
38428
|
+
byName.set(name, ident);
|
|
38262
38429
|
byIdentityId.set(ident.id, ZulipUserRef(u.user_id));
|
|
38263
38430
|
if (u.is_active)
|
|
38264
38431
|
active.add(ident.id);
|
|
@@ -38276,6 +38443,8 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38276
38443
|
return lookup;
|
|
38277
38444
|
});
|
|
38278
38445
|
const buildDirectoryLookup = () => fetchMembers().pipe(flatMap10(directoryOf));
|
|
38446
|
+
const [recentDirectoryLookup, forgetDirectoryLookup] = yield* cachedInvalidateWithTTL2(buildDirectoryLookup(), OUTBOUND_DIRECTORY_TTL);
|
|
38447
|
+
const cachedDirectoryLookup = recentDirectoryLookup.pipe(tapError2(() => forgetDirectoryLookup));
|
|
38279
38448
|
const recipientDirectory = () => buildDirectoryLookup().pipe(map18((lookup) => ({
|
|
38280
38449
|
byId: new Map([...lookup.byId.entries()].map(([id, ident]) => [id, { kind: ident.kind }]))
|
|
38281
38450
|
})));
|
|
@@ -38294,10 +38463,23 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38294
38463
|
}
|
|
38295
38464
|
};
|
|
38296
38465
|
};
|
|
38297
|
-
const
|
|
38466
|
+
const messageLimitRef = yield* make27(none2());
|
|
38467
|
+
const messageLimit = get11(messageLimitRef).pipe(flatMap10(match2({
|
|
38468
|
+
onSome: succeed8,
|
|
38469
|
+
onNone: () => minterHttp.post("/register", messageLimitStateSchema, {
|
|
38470
|
+
event_types: JSON.stringify([]),
|
|
38471
|
+
fetch_event_types: JSON.stringify(["realm"])
|
|
38472
|
+
}).pipe(tap2((res) => minterHttp.delete("/events", successSchema, { queue_id: res.queue_id }).pipe(ignore2)), map18((res) => res.max_message_length), tap2((limit) => set5(messageLimitRef, some2(limit))))
|
|
38473
|
+
})));
|
|
38474
|
+
const refuseOverlongBody = (operation, body) => messageLimit.pipe(flatMap10((limit) => match2(overlongBodyRejection(operation, body, limit), {
|
|
38475
|
+
onNone: () => _void,
|
|
38476
|
+
onSome: fail9
|
|
38477
|
+
})));
|
|
38478
|
+
const deadMentionsAfterFreshRead = (body) => buildDirectoryLookup().pipe(flatMap10((directory) => {
|
|
38298
38479
|
const dead = unresolvedMentions(body, notifiableMentionDirectory(directory));
|
|
38299
38480
|
return isEmptyReadonlyArray(dead) ? succeed8(dead) : renderedMentionIds(body).pipe(flatMap10(directory.cover), map18((covered) => unresolvedMentions(body, notifiableMentionDirectory(covered))));
|
|
38300
|
-
})
|
|
38481
|
+
}));
|
|
38482
|
+
const validateOutboundMentions = (operation, body) => !mentionTokens(body).some(MentionToken.$is("UserToken")) ? _void : cachedDirectoryLookup.pipe(map18((directory) => unresolvedMentions(body, notifiableMentionDirectory(directory))), filterOrElse2(isEmptyReadonlyArray, () => forgetDirectoryLookup.pipe(zipRight3(deadMentionsAfterFreshRead(body)))), flatMap10((dead) => isEmptyReadonlyArray(dead) ? _void : fail9(new UnresolvedMention({ operation, tokens: dead, substrate: "zulip" }))));
|
|
38301
38483
|
const mapHistoricalReactions = (raw, directory) => gen2(function* () {
|
|
38302
38484
|
const byEmoji = new Map;
|
|
38303
38485
|
for (const r of raw) {
|
|
@@ -38410,6 +38592,7 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38410
38592
|
};
|
|
38411
38593
|
const identity = {
|
|
38412
38594
|
currentIdentity: () => requireBound().pipe(map18((b) => b.identity)),
|
|
38595
|
+
credentialRejected: () => get11(credentialRejectedRef),
|
|
38413
38596
|
acquire: (name) => modifyEffect2(boundRef, (current) => match2(current, {
|
|
38414
38597
|
onSome: (existing) => {
|
|
38415
38598
|
if (existing.acquiredName === name) {
|
|
@@ -38426,7 +38609,7 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38426
38609
|
},
|
|
38427
38610
|
onNone: () => provideMintedFor(name).pipe(timeout2(ACQUIRE_MINT_TIMEOUT), flatMap10((minted) => gen2(function* () {
|
|
38428
38611
|
const innerHttp = yield* makeZulipHttp(buildHttpConfig(config.realmUrl, minted.email, minted.apiKey, config.hostHeader)).pipe(provideService2(HttpClient, httpClient));
|
|
38429
|
-
const http = wrapBotHttp(innerHttp, recipientDirectory, minted.userId);
|
|
38612
|
+
const http = watchBoundHttp(wrapBotHttp(innerHttp, recipientDirectory, minted.userId));
|
|
38430
38613
|
const ident = {
|
|
38431
38614
|
id: yield* decodeIdentityId(String(minted.userId)),
|
|
38432
38615
|
name: yield* decodeDisplayName(name),
|
|
@@ -38446,6 +38629,7 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38446
38629
|
http,
|
|
38447
38630
|
origin: minted.origin
|
|
38448
38631
|
};
|
|
38632
|
+
yield* set5(credentialRejectedRef, false);
|
|
38449
38633
|
return [
|
|
38450
38634
|
{ identity: ident, credentials, origin: minted.origin },
|
|
38451
38635
|
some2(next)
|
|
@@ -38494,6 +38678,7 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38494
38678
|
result: Literal2("success"),
|
|
38495
38679
|
subscriptions: Array$(Struct({ name: NonEmptyString }))
|
|
38496
38680
|
});
|
|
38681
|
+
const readSubscribedChannels = (http) => http.get("/users/me/subscriptions", mySubscriptionsResponseSchema).pipe(flatMap10((res) => forEach5(res.subscriptions, (row) => decodeChannelName(row.name))));
|
|
38497
38682
|
const streamsListResponseSchema = Struct({
|
|
38498
38683
|
result: Literal2("success"),
|
|
38499
38684
|
streams: Array$(Struct({ name: NonEmptyString, stream_id: Int }))
|
|
@@ -38558,10 +38743,10 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38558
38743
|
}))));
|
|
38559
38744
|
const setThreadResolved = (channel, thread, resolved) => {
|
|
38560
38745
|
const operation = resolved ? "resolveThread" : "unresolveThread";
|
|
38561
|
-
const sourceTopic = applyResolvedPrefix(thread,
|
|
38746
|
+
const sourceTopic = resolved ? thread : applyResolvedPrefix(thread, true);
|
|
38562
38747
|
const targetTopic = applyResolvedPrefix(thread, resolved);
|
|
38563
38748
|
return boundHttp().pipe(flatMap10((http) => findNewestInTopic(channel, sourceTopic).pipe(flatMap10(match2({
|
|
38564
|
-
onSome: (id) => http.patch(`/messages/${encodeURIComponent(id)}`, successSchema, {
|
|
38749
|
+
onSome: (id) => sourceTopic === targetTopic ? _void : http.patch(`/messages/${encodeURIComponent(id)}`, successSchema, {
|
|
38565
38750
|
topic: targetTopic,
|
|
38566
38751
|
propagate_mode: "change_all"
|
|
38567
38752
|
}).pipe(asVoid2),
|
|
@@ -38587,16 +38772,25 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38587
38772
|
const publisher = {
|
|
38588
38773
|
post: (channel, body, opts) => {
|
|
38589
38774
|
const thread = opts?.thread;
|
|
38590
|
-
return boundHttp().pipe(flatMap10((http) =>
|
|
38775
|
+
return boundHttp().pipe(flatMap10((http) => refuseOverlongBody("post", body).pipe(zipRight3(validateOutboundMentions("post", body)), zipRight3(resolvePublishChannel(channel)), flatMap10((effective) => (thread === undefined ? succeed8({ topic: "(no topic)", resolved: false }) : addressThread(effective.name, thread)).pipe(flatMap10((addressed) => http.post("/messages", sentMessageSchema, {
|
|
38591
38776
|
type: "channel",
|
|
38592
38777
|
to: effective.name,
|
|
38593
38778
|
content: body,
|
|
38594
38779
|
topic: addressed.topic
|
|
38595
|
-
}).pipe(flatMap10((sent) =>
|
|
38780
|
+
}).pipe(flatMap10((sent) => all6({
|
|
38781
|
+
id: decodeMessageId(String(sent.id)),
|
|
38782
|
+
stored: transposeMapOption(fromNullable(thread), () => http.get(`/messages/${encodeURIComponent(sent.id)}`, storedMessageSchema).pipe(flatMap10(({ message }) => {
|
|
38783
|
+
const { name, resolved } = splitTopic(message.subject);
|
|
38784
|
+
return decodeThreadName(name).pipe(map18((storedName) => ({
|
|
38785
|
+
name: storedName,
|
|
38786
|
+
resolved
|
|
38787
|
+
})));
|
|
38788
|
+
})))
|
|
38789
|
+
}).pipe(map18(({ id, stored }) => decorateMessageRef(id, effective, getOrUndefined2(stored))))))))), mapError2((cause) => cause instanceof UnknownChannel || cause instanceof UnresolvedMention || cause instanceof MessageRejected ? cause : new PublisherError({ operation: "post", cause })))));
|
|
38596
38790
|
},
|
|
38597
|
-
edit: (message, body) => boundHttp().pipe(flatMap10((http) =>
|
|
38791
|
+
edit: (message, body) => boundHttp().pipe(flatMap10((http) => refuseOverlongBody("edit", body).pipe(zipRight3(validateOutboundMentions("edit", body)), zipRight3(http.patch(`/messages/${encodeURIComponent(message.id)}`, successSchema, {
|
|
38598
38792
|
content: body
|
|
38599
|
-
})), asVoid2, mapError2((cause) => cause instanceof UnresolvedMention ? cause : classifyEditFailure(cause))))),
|
|
38793
|
+
})), asVoid2, mapError2((cause) => cause instanceof UnresolvedMention || cause instanceof MessageRejected ? cause : classifyEditFailure(cause))))),
|
|
38600
38794
|
editingAvailable: () => minterHttp.post("/register", realmEditingStateSchema, {
|
|
38601
38795
|
event_types: JSON.stringify([]),
|
|
38602
38796
|
fetch_event_types: JSON.stringify(["realm"])
|
|
@@ -38670,7 +38864,7 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38670
38864
|
return subscribeRemote.pipe(andThen4(ensureQueueRegistered(http)));
|
|
38671
38865
|
}));
|
|
38672
38866
|
}).pipe(mapError2((cause) => new InboxError({ operation: "subscribe", cause }))))),
|
|
38673
|
-
subscriptions: () => boundHttp().pipe(flatMap10((http) => http
|
|
38867
|
+
subscriptions: () => boundHttp().pipe(flatMap10((http) => readSubscribedChannels(http).pipe(mapError2((cause) => new InboxError({ operation: "subscribe", cause }))))),
|
|
38674
38868
|
unsubscribe: (target) => boundHttp().pipe(flatMap10((http) => suspend4(() => {
|
|
38675
38869
|
const channel = channelOf(target);
|
|
38676
38870
|
return modify6(inboxRef, (state) => {
|
|
@@ -38730,6 +38924,10 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38730
38924
|
fork3(buildDirectoryLookup()),
|
|
38731
38925
|
get16(boundRef)
|
|
38732
38926
|
]);
|
|
38927
|
+
const seatChannels = yield* match2(current, {
|
|
38928
|
+
onNone: () => succeed8(empty6()),
|
|
38929
|
+
onSome: (bound) => readSubscribedChannels(bound.http).pipe(map18(fromIterable5))
|
|
38930
|
+
});
|
|
38733
38931
|
const perMessage = yield* readWindow({
|
|
38734
38932
|
query: { narrow: replayNarrow, apply_markdown: false },
|
|
38735
38933
|
window: { since },
|
|
@@ -38754,7 +38952,7 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38754
38952
|
messageRefCache.set(ev.message.ref.id, ev.message.ref);
|
|
38755
38953
|
}
|
|
38756
38954
|
}
|
|
38757
|
-
out.push(...mapped);
|
|
38955
|
+
out.push(...mapped.filter((ev) => ev.kind !== "mention-received" || exists(current, (bound) => notifiesIdentity(ev.mentions, bound.identity.id, has4(seatChannels, ev.message.ref.channel.name)))));
|
|
38758
38956
|
}
|
|
38759
38957
|
return out;
|
|
38760
38958
|
}).pipe(mapError2((cause) => new InboxError({ operation: "replay", cause })));
|
|
@@ -38785,7 +38983,8 @@ var zulipAdapter = (config) => gen2(function* () {
|
|
|
38785
38983
|
}).pipe(flatMap10((res) => gen2(function* () {
|
|
38786
38984
|
const threadKey = (channel, thread) => struct3({ channel, thread });
|
|
38787
38985
|
let seen = empty10();
|
|
38788
|
-
|
|
38986
|
+
const newestFirst = reverse2(res.messages);
|
|
38987
|
+
for (const m of newestFirst) {
|
|
38789
38988
|
const channel = yield* decodeChannelName(m.display_recipient);
|
|
38790
38989
|
const thread = yield* decodeThreadName(splitTopic(m.subject).name);
|
|
38791
38990
|
const key = threadKey(channel, thread);
|
|
@@ -39080,7 +39279,8 @@ var envConfig = all3({
|
|
|
39080
39279
|
project: optionalNonEmpty("COMMY_PROJECT"),
|
|
39081
39280
|
catchupWindowSeconds: optionalNonNegativeInt("COMMY_CATCHUP_WINDOW_SECONDS"),
|
|
39082
39281
|
queueIdleTimeoutSecs: queueIdleTimeoutSecs("COMMY_QUEUE_IDLE_TIMEOUT_SECS"),
|
|
39083
|
-
downloadDir: optionalNonEmpty("COMMY_DOWNLOAD_DIR")
|
|
39282
|
+
downloadDir: optionalNonEmpty("COMMY_DOWNLOAD_DIR"),
|
|
39283
|
+
uploadDir: optionalNonEmpty("COMMY_UPLOAD_DIR")
|
|
39084
39284
|
}).pipe(mapOrFail2((raw) => {
|
|
39085
39285
|
if (isSome2(raw.botApiKey) && isNone2(raw.botName)) {
|
|
39086
39286
|
return left2(InvalidData2(["COMMY_BOT_API_KEY"], "COMMY_BOT_API_KEY requires COMMY_BOT_NAME — the key identifies which provisioned persona to attach to"));
|
|
@@ -39105,6 +39305,10 @@ var envConfig = all3({
|
|
|
39105
39305
|
...match2(raw.downloadDir, {
|
|
39106
39306
|
onNone: () => ({}),
|
|
39107
39307
|
onSome: (downloadDir) => ({ downloadDir })
|
|
39308
|
+
}),
|
|
39309
|
+
...match2(raw.uploadDir, {
|
|
39310
|
+
onNone: () => ({}),
|
|
39311
|
+
onSome: (uploadDir) => ({ uploadDir })
|
|
39108
39312
|
})
|
|
39109
39313
|
});
|
|
39110
39314
|
}));
|
|
@@ -39601,9 +39805,9 @@ function isTerminal(status) {
|
|
|
39601
39805
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
39602
39806
|
}
|
|
39603
39807
|
|
|
39604
|
-
// node_modules/.bun/zod-to-json-schema@3.25.2+
|
|
39808
|
+
// node_modules/.bun/zod-to-json-schema@3.25.2+fd89d974ba0fd62b/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
39605
39809
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
39606
|
-
// node_modules/.bun/zod-to-json-schema@3.25.2+
|
|
39810
|
+
// node_modules/.bun/zod-to-json-schema@3.25.2+fd89d974ba0fd62b/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
39607
39811
|
var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
|
|
39608
39812
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
39609
39813
|
function getMethodLiteral(schema) {
|
|
@@ -40967,7 +41171,7 @@ class Server extends Protocol {
|
|
|
40967
41171
|
}
|
|
40968
41172
|
|
|
40969
41173
|
// packages/mcp/mcp-server.ts
|
|
40970
|
-
var PLUGIN_VERSION = "0.
|
|
41174
|
+
var PLUGIN_VERSION = "0.26.0";
|
|
40971
41175
|
var COMMY_INSTRUCTIONS = `**Substrate.** commy is the inter-agent channel: agents and humans coordinate here. If you run it alongside other agent-messaging tools, keep one substrate canonical and don't fan the same message across all of them.
|
|
40972
41176
|
|
|
40973
41177
|
**Channels.** Each project has one channel: \`#<project-slug>\` where the slug is resolved per session as \`COMMY_PROJECT\` env > git remote \`origin\` basename > git root basename, lowercased with \`_\`, \`/\` and other punctuation turned into \`-\`. The slug is the whole name and is never shortened; your bot name may carry a shortened form of it, so don't read your channel off your bot name. Sessions launched outside a git repo (e.g. \`/tmp\`, \`$HOME\`) have no project channel and should post to \`#general\` instead. Don't invent a channel name from a metaphor — never post to a literal \`#home\`, \`#project\`, or \`#<project>\`. Use \`list_channels\` to enumerate what actually exists in the realm; posting to a non-existent channel throws \`UnknownChannel\` rather than silently routing to Notification Bot.
|
|
@@ -40978,7 +41182,7 @@ var COMMY_INSTRUCTIONS = `**Substrate.** commy is the inter-agent channel: agent
|
|
|
40978
41182
|
|
|
40979
41183
|
**Links.** Every ref the substrate hands you carries a ready-to-click \`permalink\` — on \`post\` results, \`read_channel\`/\`read_thread\` messages (message \`permalink\` plus \`channel.permalink\` and \`thread.permalink\`), \`list_channels\` (channel \`permalink\`), and inbound \`<channel source="commy">\` frames (\`permalink\` / \`channel_permalink\` / \`thread_permalink\` meta, \`target_permalink\` on reaction frames). **Whenever you show a human a message, channel, or topic reference, render it as that clickable permalink — never a bare name or numeric id.** A human can click a permalink straight to the message; a bare \`#channel > topic\` or message number makes them hunt. When you hold only a message id (e.g. one cited elsewhere, with no permalink to hand), \`message_link(message_id, channel_name?, thread?)\` returns its \`{permalink}\`.
|
|
40980
41184
|
|
|
40981
|
-
**Tools.** \`post\` (channel; optionally thread or reply), \`react\`/\`unreact\` (emoji on a message), \`subscribe\`/\`unsubscribe\` (live target), \`read_channel\`/\`read_thread\` (history within a range), \`list_channels\` (enumerate channels in the realm), \`message_link\` (canonical permalink for a message id), \`resolve\` (identity by name), \`current_identity\` (passive — never acquires), \`download_file\` (fetch a \`/user_uploads/...\` attachment to a temp file — rooted under the operator-set \`COMMY_DOWNLOAD_DIR\` when configured so it lands somewhere you can Read, else \`$TMPDIR\`; use Read on the returned path to view images), \`upload_file\` (upload a local file by absolute path; returns a \`reference\` string to embed in a \`post\` body).`;
|
|
41185
|
+
**Tools.** \`post\` (channel; optionally thread or reply), \`react\`/\`unreact\` (emoji on a message), \`subscribe\`/\`unsubscribe\` (live target), \`read_channel\`/\`read_thread\` (history within a range), \`list_channels\` (enumerate channels in the realm), \`message_link\` (canonical permalink for a message id), \`resolve\` (identity by name), \`current_identity\` (passive — never acquires), \`download_file\` (fetch a \`/user_uploads/...\` attachment to a temp file — rooted under the operator-set \`COMMY_DOWNLOAD_DIR\` when configured so it lands somewhere you can Read, else \`$TMPDIR\`; use Read on the returned path to view images), \`upload_file\` (upload a local file by absolute path, which must sit under the operator-set \`COMMY_UPLOAD_DIR\` — every path is refused when it is unset; returns a \`reference\` string to embed in a \`post\` body).`;
|
|
40982
41186
|
var buildMcpServer = () => new Server({ name: "commy", version: PLUGIN_VERSION }, {
|
|
40983
41187
|
capabilities: {
|
|
40984
41188
|
tools: { listChanged: true },
|
|
@@ -41046,6 +41250,7 @@ var createNarrowSet = () => {
|
|
|
41046
41250
|
if (recording)
|
|
41047
41251
|
pending.push({ op: "remove", key });
|
|
41048
41252
|
},
|
|
41253
|
+
has: (intent) => has4(intents, intentKey(intent)),
|
|
41049
41254
|
size: () => size3(intents),
|
|
41050
41255
|
intents: () => fromIterable(intents).map(keyToIntent),
|
|
41051
41256
|
beginBuffering: () => {
|
|
@@ -41127,7 +41332,7 @@ var createFileSubscriptionStore = (deps) => {
|
|
|
41127
41332
|
const { dir, fs, owner } = deps;
|
|
41128
41333
|
const pathFor = (key) => join8(dir, subscriptionFilename(key));
|
|
41129
41334
|
const read = () => flatMap10(owner, (key) => readSubscriptions(fs, key, pathFor(key)));
|
|
41130
|
-
const write = (intents) => flatMap10(owner, (key) => fs.makeDirectory(dir, { recursive: true })
|
|
41335
|
+
const write = (intents) => flatMap10(owner, (key) => encode2(SubscriptionsFileSchema)(intents).pipe(orDie2, tap2(() => fs.makeDirectory(dir, { recursive: true })), flatMap10((raw) => fs.writeFileString(pathFor(key), raw))));
|
|
41131
41336
|
return { read, write };
|
|
41132
41337
|
};
|
|
41133
41338
|
var STATE_SEGMENT3 = "commy";
|
|
@@ -41214,13 +41419,6 @@ var reconstructMessageRef = (cache, rawId, channelNameArg) => gen2(function* ()
|
|
|
41214
41419
|
const channel = yield* addressChannel(cache, yield* decodeChannelName(channelNameArg));
|
|
41215
41420
|
return { id, channel, thread: none2(), permalink: yield* decodeMessagePermalink(id) };
|
|
41216
41421
|
});
|
|
41217
|
-
var resolveMentions = (cache, mentionIds) => forEach5(mentionIds, (raw) => gen2(function* () {
|
|
41218
|
-
const identity = cache.identityById.get(yield* decodeIdentityId(raw));
|
|
41219
|
-
if (identity === undefined) {
|
|
41220
|
-
return yield* new UnknownIdentityError({ id: raw });
|
|
41221
|
-
}
|
|
41222
|
-
return identity;
|
|
41223
|
-
}));
|
|
41224
41422
|
var encodeThreadFacet = encode2(OptionFromNullOr(ObservedThreadSchema));
|
|
41225
41423
|
var encodeChannel = encode2(ChannelRefSchema);
|
|
41226
41424
|
var encodeMessagePermalink = encode2(MessagePermalinkSchema);
|
|
@@ -41282,7 +41480,6 @@ var PostArgs = Struct({
|
|
|
41282
41480
|
channel_name: String$,
|
|
41283
41481
|
body: String$,
|
|
41284
41482
|
thread: optional(String$),
|
|
41285
|
-
mentions: optional(Array$(String$)),
|
|
41286
41483
|
reply_to: optional(String$)
|
|
41287
41484
|
});
|
|
41288
41485
|
var EditMessageArgs = Struct({
|
|
@@ -41345,6 +41542,11 @@ var buildToolDefs = (deps, cache) => {
|
|
|
41345
41542
|
project: getOrUndefined2(project)
|
|
41346
41543
|
}))))));
|
|
41347
41544
|
};
|
|
41545
|
+
const narrowWhileSubscribing = (intent, substrateSubscribe) => suspend4(() => {
|
|
41546
|
+
const alreadyHeld = narrowSet.has(intent);
|
|
41547
|
+
narrowSet.add(intent);
|
|
41548
|
+
return substrateSubscribe.pipe(onError2(() => sync4(() => !alreadyHeld && narrowSet.remove(intent))));
|
|
41549
|
+
});
|
|
41348
41550
|
const stickyThreadEngagement = async (run, channel, threadName) => {
|
|
41349
41551
|
if (isNone2(threadName))
|
|
41350
41552
|
return;
|
|
@@ -41353,13 +41555,12 @@ var buildToolDefs = (deps, cache) => {
|
|
|
41353
41555
|
channelName: channel.name,
|
|
41354
41556
|
threadName: threadName.value
|
|
41355
41557
|
};
|
|
41356
|
-
|
|
41357
|
-
await run(adapter.inbox.subscribe(intentToTarget(intent)).pipe(zipRight3(deps.persistSessionSubscriptions ?? _void)));
|
|
41558
|
+
await run(narrowWhileSubscribing(intent, adapter.inbox.subscribe(intentToTarget(intent))).pipe(zipRight3(deps.persistSessionSubscriptions ?? _void)));
|
|
41358
41559
|
};
|
|
41359
41560
|
const coreTools = [
|
|
41360
41561
|
{
|
|
41361
41562
|
name: "current_identity",
|
|
41362
|
-
description: 'Return the identity this session is bound to. Passive — never triggers acquire. Returns {state: "unbound", identity: null} for ephemeral sessions that have not yet performed an attribution-producing action; {state: "bound", identity: {id, name, kind}, recent_threads?} once acquire has resolved. recent_threads is a best-effort orientation list of {channel, thread, last_post_ts, last_post_body} for the threads this identity most recently posted in; it is omitted when the enrichment lookup fails — the binding self-check itself never fails on it.',
|
|
41563
|
+
description: 'Return the identity this session is bound to. Passive — never triggers acquire. Returns {state: "unbound", identity: null} for ephemeral sessions that have not yet performed an attribution-producing action; {state: "bound", identity: {id, name, kind}, recent_threads?} once acquire has resolved; {state: "credential_rejected", identity, message} when the realm has refused the bound credential as invalid, so writes fail and inbound events stop until the seat restarts. recent_threads is a best-effort orientation list of {channel, thread, last_post_ts, last_post_body} for the threads this identity most recently posted in; it is omitted when the enrichment lookup fails — the binding self-check itself never fails on it.',
|
|
41363
41564
|
inputSchema: {
|
|
41364
41565
|
type: "object",
|
|
41365
41566
|
properties: { cwd: cwdField },
|
|
@@ -41374,6 +41575,13 @@ var buildToolDefs = (deps, cache) => {
|
|
|
41374
41575
|
return { state: "unbound", identity: null };
|
|
41375
41576
|
}
|
|
41376
41577
|
cache.rememberIdentity(current.identity);
|
|
41578
|
+
if (await run(adapter.identity.credentialRejected())) {
|
|
41579
|
+
return {
|
|
41580
|
+
state: "credential_rejected",
|
|
41581
|
+
identity: identityShape(current.identity),
|
|
41582
|
+
message: "The realm has refused this seat's credential as invalid. Writes will keep failing and inbound events are not being delivered. Restart the seat to bind a fresh credential."
|
|
41583
|
+
};
|
|
41584
|
+
}
|
|
41377
41585
|
const bound = { state: "bound", identity: identityShape(current.identity) };
|
|
41378
41586
|
try {
|
|
41379
41587
|
const threads = await run(adapter.history.recentThreads(current.identity.id));
|
|
@@ -41449,21 +41657,16 @@ var buildToolDefs = (deps, cache) => {
|
|
|
41449
41657
|
},
|
|
41450
41658
|
{
|
|
41451
41659
|
name: "post",
|
|
41452
|
-
description: "Post a message to a channel by name. Optional thread (topic)
|
|
41660
|
+
description: "Post a message to a channel by name. Optional thread (topic) and reply_to (message id). To ping someone, write the @**Name** markup inline in body where you want it rendered. A body longer than the realm stores whole is refused with an error naming the limit; split it across several posts. Returns {message_id, channel_id, channel_name, thread, permalink}. When you show a human this message afterwards, link it by the returned permalink — never a bare name or message id.",
|
|
41453
41661
|
inputSchema: {
|
|
41454
41662
|
type: "object",
|
|
41455
41663
|
properties: {
|
|
41456
41664
|
channel_name: { type: "string", description: "Channel to post into" },
|
|
41457
41665
|
body: {
|
|
41458
41666
|
type: "string",
|
|
41459
|
-
description: "Message body, written verbatim. Include @**Name** markup inline to trigger Zulip @-mention pings
|
|
41667
|
+
description: "Message body, written verbatim. Include @**Name** markup inline to trigger Zulip @-mention pings."
|
|
41460
41668
|
},
|
|
41461
41669
|
thread: { type: "string", description: "Thread / topic name (optional)" },
|
|
41462
|
-
mentions: {
|
|
41463
|
-
type: "array",
|
|
41464
|
-
items: { type: "string" },
|
|
41465
|
-
description: "Identity ids to notify (metadata-only — does not modify body). Useful for substrates with a separate notification primitive. Ids must be cached via resolve/list_*/inbound events first."
|
|
41466
|
-
},
|
|
41467
41670
|
reply_to: {
|
|
41468
41671
|
type: "string",
|
|
41469
41672
|
description: "Message id of a prior message to reply to"
|
|
@@ -41477,16 +41680,13 @@ var buildToolDefs = (deps, cache) => {
|
|
|
41477
41680
|
handler: async (args) => {
|
|
41478
41681
|
const run = runFor(args);
|
|
41479
41682
|
const ref = await run(gen2(function* () {
|
|
41480
|
-
const { channel_name, body, thread,
|
|
41683
|
+
const { channel_name, body, thread, reply_to } = yield* decodeUnknown2(PostArgs)(args);
|
|
41481
41684
|
const channel = yield* decodeChannelName(channel_name);
|
|
41482
41685
|
const messageBody = yield* decodeMessageBody(body);
|
|
41483
41686
|
const opts = {};
|
|
41484
41687
|
if (thread !== undefined) {
|
|
41485
41688
|
opts.thread = yield* decodeThreadName(thread);
|
|
41486
41689
|
}
|
|
41487
|
-
if (mentions !== undefined) {
|
|
41488
|
-
opts.mentions = yield* resolveMentions(cache, mentions);
|
|
41489
|
-
}
|
|
41490
41690
|
if (reply_to !== undefined) {
|
|
41491
41691
|
opts.replyTo = yield* reconstructMessageRef(cache, reply_to, channel_name);
|
|
41492
41692
|
}
|
|
@@ -41628,7 +41828,7 @@ var buildToolDefs = (deps, cache) => {
|
|
|
41628
41828
|
if (sessionId !== undefined && deps.ensureSessionSubscriptions !== undefined) {
|
|
41629
41829
|
yield* deps.ensureSessionSubscriptions(sessionId, getOrUndefined2(yield* projectForArgs(args)));
|
|
41630
41830
|
}
|
|
41631
|
-
yield*
|
|
41831
|
+
yield* narrowWhileSubscribing(intent, adapter.inbox.subscribe(intentToTarget(intent)));
|
|
41632
41832
|
if (deps.persistSessionSubscriptions !== undefined) {
|
|
41633
41833
|
yield* deps.persistSessionSubscriptions;
|
|
41634
41834
|
}
|
|
@@ -41669,6 +41869,41 @@ var buildToolDefs = (deps, cache) => {
|
|
|
41669
41869
|
return {};
|
|
41670
41870
|
}
|
|
41671
41871
|
},
|
|
41872
|
+
{
|
|
41873
|
+
name: "list_subscriptions",
|
|
41874
|
+
description: `Read back this session's own live subscriptions, so "will a post to X reach me?" has an answer. Passive — never triggers acquire. Returns {state: "unbound"} for an ephemeral session with no bot yet (there is no seat, which is not the same as no subscriptions). Once bound, returns {state: "bound", channels, narrows, not_in_realm}. channels is read from the realm: the channels it delivers to this bot, and the authority on delivery. narrows is read from this running process: the topic-level narrows ({kind: "thread", channel, thread} or {kind: "new-topics", channel}) that a realm subscription cannot express. not_in_realm lists channels this process holds an intent for but the realm does not deliver, such as after a failed subscribe — a post there will NOT reach you. Both come from live state, never from COMMY_SUBSCRIBE, so a stale process shows what it actually holds. Mentions of the bot always arrive and are not part of this set.`,
|
|
41875
|
+
inputSchema: {
|
|
41876
|
+
type: "object",
|
|
41877
|
+
properties: { cwd: cwdField },
|
|
41878
|
+
additionalProperties: false
|
|
41879
|
+
},
|
|
41880
|
+
hostSuppliedArgs: hostSuppliedSessionId,
|
|
41881
|
+
handler: async (args) => {
|
|
41882
|
+
const run = runFor(args);
|
|
41883
|
+
return run(gen2(function* () {
|
|
41884
|
+
const ctx = yield* currentSessionContext;
|
|
41885
|
+
const ensureBound = yield* identityCache.ensureBoundFor(ctx.sessionId, ctx.project);
|
|
41886
|
+
if (ensureBound.current() === undefined)
|
|
41887
|
+
return { state: "unbound" };
|
|
41888
|
+
const realm = fromIterable5(yield* adapter.inbox.subscriptions());
|
|
41889
|
+
const intents = narrowSet.intents();
|
|
41890
|
+
return {
|
|
41891
|
+
state: "bound",
|
|
41892
|
+
channels: fromIterable(realm),
|
|
41893
|
+
narrows: filterMap2(intents, (intent) => value3(intent).pipe(discriminatorsExhaustive2("kind")({
|
|
41894
|
+
channel: () => none2(),
|
|
41895
|
+
thread: (i) => some2({
|
|
41896
|
+
kind: "thread",
|
|
41897
|
+
channel: i.channelName,
|
|
41898
|
+
thread: i.threadName
|
|
41899
|
+
}),
|
|
41900
|
+
"new-topics-in-channel": (i) => some2({ kind: "new-topics", channel: i.channelName })
|
|
41901
|
+
}))),
|
|
41902
|
+
not_in_realm: dedupe(intents.map((i) => i.channelName).filter((c) => !has4(realm, c)))
|
|
41903
|
+
};
|
|
41904
|
+
}));
|
|
41905
|
+
}
|
|
41906
|
+
},
|
|
41672
41907
|
{
|
|
41673
41908
|
name: "read_channel",
|
|
41674
41909
|
description: "Read messages from a channel by name. Returns {messages: Message[]}. since/until name a window and are read out of history, so a window further back than the newest messages still comes back; limit then caps the result and cuts from the window's old end. Each message carries a clickable permalink (and channel.permalink / thread.permalink) — when you cite one of these to a human, render it as that permalink, not a bare name or id.",
|
|
@@ -41911,7 +42146,7 @@ var buildToolDefs = (deps, cache) => {
|
|
|
41911
42146
|
const upload = deps.upload;
|
|
41912
42147
|
optionalTools.push({
|
|
41913
42148
|
name: "upload_file",
|
|
41914
|
-
description: "Upload a local file to the realm so it can be referenced in a message. Takes an absolute path, returns {reference, filename, size}. The `reference` is a ready-to-embed string — drop it into a post body wherever you want the attachment to render (same as writing @**Name** markup yourself).",
|
|
42149
|
+
description: "Upload a local file to the realm so it can be referenced in a message. Takes an absolute path that must sit under the operator-set COMMY_UPLOAD_DIR (every path is refused when the operator has not set it), returns {reference, filename, size}. The `reference` is a ready-to-embed string — drop it into a post body wherever you want the attachment to render (same as writing @**Name** markup yourself).",
|
|
41915
42150
|
inputSchema: {
|
|
41916
42151
|
type: "object",
|
|
41917
42152
|
properties: {
|
|
@@ -42042,13 +42277,17 @@ var makeProgram = (params = {}) => scoped2(gen2(function* () {
|
|
|
42042
42277
|
yield* reportNothingToResume;
|
|
42043
42278
|
const feedSessionId = (sessionId) => succeed3(sessionIdDeferred, sessionId).pipe(asVoid2);
|
|
42044
42279
|
const fs = yield* FileSystem;
|
|
42045
|
-
|
|
42046
|
-
|
|
42047
|
-
|
|
42048
|
-
|
|
42049
|
-
|
|
42050
|
-
|
|
42051
|
-
|
|
42280
|
+
for (const [name, base] of [
|
|
42281
|
+
["COMMY_DOWNLOAD_DIR", parsed.downloadDir],
|
|
42282
|
+
["COMMY_UPLOAD_DIR", parsed.uploadDir]
|
|
42283
|
+
]) {
|
|
42284
|
+
if (base !== undefined) {
|
|
42285
|
+
const baseStat = yield* fs.stat(base).pipe(option4);
|
|
42286
|
+
if (isNone2(baseStat) || baseStat.value.type !== "Directory") {
|
|
42287
|
+
return yield* envConfigError([
|
|
42288
|
+
`${name} is set to ${base} but is not an existing directory`
|
|
42289
|
+
]);
|
|
42290
|
+
}
|
|
42052
42291
|
}
|
|
42053
42292
|
}
|
|
42054
42293
|
const loggerLayer = params.loggerLayer ?? stderrLoggerLayer;
|
|
@@ -42141,7 +42380,17 @@ var makeProgram = (params = {}) => scoped2(gen2(function* () {
|
|
|
42141
42380
|
return { filePath, contentType: result.contentType, size: result.data.byteLength };
|
|
42142
42381
|
}),
|
|
42143
42382
|
upload: (path) => gen2(function* () {
|
|
42144
|
-
const
|
|
42383
|
+
const refuse = (why) => new AttachmentError({ operation: "upload", cause: new Error(`upload_file: ${why}`) });
|
|
42384
|
+
if (parsed.uploadDir === undefined) {
|
|
42385
|
+
return yield* refuse("uploads are disabled — the operator has not set COMMY_UPLOAD_DIR");
|
|
42386
|
+
}
|
|
42387
|
+
const root = yield* fs.realPath(parsed.uploadDir);
|
|
42388
|
+
const real = yield* fs.realPath(path);
|
|
42389
|
+
const fromRoot = relative(root, real);
|
|
42390
|
+
if (fromRoot === ".." || fromRoot.startsWith(`..${sep}`) || isAbsolute(fromRoot)) {
|
|
42391
|
+
return yield* refuse(`${path} is outside the operator's COMMY_UPLOAD_DIR`);
|
|
42392
|
+
}
|
|
42393
|
+
const data = yield* fs.readFile(real);
|
|
42145
42394
|
const result = yield* adapter.uploadFile(basename3(path), data);
|
|
42146
42395
|
return {
|
|
42147
42396
|
reference: result.reference,
|