@opencode/browse 0.0.17-dev.179 → 0.0.17-dev.181
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Runtime-jrg7sc9p.mjs → Runtime-xss8qan1.mjs} +1 -1
- package/dist/{cli-ndjnhr9r.mjs → cli-1bdh4p0a.mjs} +60 -46
- package/dist/cli.mjs +14 -14
- package/dist/{helpers-tnqjatbp.mjs → helpers-bbaa1vjs.mjs} +1 -3
- package/dist/{index-j79y2me1.mjs → index-gjq7chrk.mjs} +2 -2
- package/dist/{legacy-runtime-we32g1pw.mjs → legacy-runtime-yjsm0xpg.mjs} +30 -17
- package/dist/{main-5hymrtzq.mjs → main-32bwyqja.mjs} +4 -4
- package/dist/{main-f98q5tcf.mjs → main-6hvv25x8.mjs} +27 -29
- package/dist/{main-tr20hmvg.mjs → main-6qfvnjxc.mjs} +7 -9
- package/dist/{main-3mhynene.mjs → main-9frwnsnf.mjs} +3 -5
- package/dist/{main-048kx59h.mjs → main-akpa411k.mjs} +6 -8
- package/dist/main-bt237ys7.mjs +1012 -0
- package/dist/main-d5ke1bpm.mjs +4 -0
- package/dist/{main-s3g4jwx5.mjs → main-jeta10c6.mjs} +23 -25
- package/dist/{main-wpt5ha44.mjs → main-m45zegrn.mjs} +371 -167
- package/dist/{main-46fba60d.mjs → main-pq962g72.mjs} +7 -4
- package/dist/main-q4typx7c.mjs +213 -0
- package/dist/{main-nesqaw1p.mjs → main-qccyxwg8.mjs} +3 -5
- package/dist/{main-zw20hm01.mjs → main-rb7dermc.mjs} +117 -4
- package/dist/{main-g131p1r6.mjs → main-reh7k0hv.mjs} +199 -989
- package/dist/{main-8jd0y17d.mjs → main-rvn834gn.mjs} +2 -2
- package/dist/{main-9fev890k.mjs → main-sfxkq31s.mjs} +16 -18
- package/dist/{main-thhv62x3.mjs → main-tg0r67xj.mjs} +8 -10
- package/dist/{main-rpzzm8dd.mjs → main-tk2thty0.mjs} +8 -7
- package/dist/{mcp-g9gatach.mjs → mcp-rjpmt73q.mjs} +31 -32
- package/dist/{migrate-9dmw3qm4.mjs → migrate-hggn66v2.mjs} +5 -6
- package/dist/{relay-bgmpqtc8.mjs → relay-fm6q9hnx.mjs} +128 -64
- package/dist/{runtime-update-6r9m6y2b.mjs → runtime-update-vdw1eajx.mjs} +9 -9
- package/dist/{setup-3be5gs2p.mjs → setup-wyrpwq4c.mjs} +196 -129
- package/dist/{supervisor-a9hk630y.mjs → supervisor-nbce8yhg.mjs} +10 -6
- package/dist/{update-xy15yz2m.mjs → update-be8dfw51.mjs} +3 -4
- package/dist/{version-5gnas829.mjs → version-6j8cdg2k.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-4h7rfhhr.mjs +0 -61
- package/dist/main-b3jrctcx.mjs +0 -114
- package/dist/main-qazf3bhk.mjs +0 -223
- package/dist/main-x0s8gad5.mjs +0 -4
|
@@ -1,20 +1,160 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
// node_modules/effect/dist/Pipeable.js
|
|
2
|
+
var pipeArguments = (self, args) => {
|
|
3
|
+
switch (args.length) {
|
|
4
|
+
case 0:
|
|
5
|
+
return self;
|
|
6
|
+
case 1:
|
|
7
|
+
return args[0](self);
|
|
8
|
+
case 2:
|
|
9
|
+
return args[1](args[0](self));
|
|
10
|
+
case 3:
|
|
11
|
+
return args[2](args[1](args[0](self)));
|
|
12
|
+
case 4:
|
|
13
|
+
return args[3](args[2](args[1](args[0](self))));
|
|
14
|
+
case 5:
|
|
15
|
+
return args[4](args[3](args[2](args[1](args[0](self)))));
|
|
16
|
+
case 6:
|
|
17
|
+
return args[5](args[4](args[3](args[2](args[1](args[0](self))))));
|
|
18
|
+
case 7:
|
|
19
|
+
return args[6](args[5](args[4](args[3](args[2](args[1](args[0](self)))))));
|
|
20
|
+
case 8:
|
|
21
|
+
return args[7](args[6](args[5](args[4](args[3](args[2](args[1](args[0](self))))))));
|
|
22
|
+
case 9:
|
|
23
|
+
return args[8](args[7](args[6](args[5](args[4](args[3](args[2](args[1](args[0](self)))))))));
|
|
24
|
+
default: {
|
|
25
|
+
let ret = self;
|
|
26
|
+
for (let i = 0, len = args.length;i < len; i++) {
|
|
27
|
+
ret = args[i](ret);
|
|
28
|
+
}
|
|
29
|
+
return ret;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var Prototype = {
|
|
34
|
+
pipe() {
|
|
35
|
+
return pipeArguments(this, arguments);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var Class3 = /* @__PURE__ */ function() {
|
|
39
|
+
function PipeableBase() {}
|
|
40
|
+
PipeableBase.prototype = Prototype;
|
|
41
|
+
return PipeableBase;
|
|
42
|
+
}();
|
|
43
|
+
|
|
44
|
+
// node_modules/effect/dist/Function.js
|
|
45
|
+
var dual = function(arity, body) {
|
|
46
|
+
if (typeof arity === "function") {
|
|
47
|
+
return function() {
|
|
48
|
+
return arity(arguments) ? body.apply(this, arguments) : (self) => body(self, ...arguments);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
switch (arity) {
|
|
52
|
+
case 0:
|
|
53
|
+
case 1:
|
|
54
|
+
throw new RangeError(`Invalid arity ${arity}`);
|
|
55
|
+
case 2:
|
|
56
|
+
return function(a, b) {
|
|
57
|
+
if (arguments.length >= 2) {
|
|
58
|
+
return body(a, b);
|
|
59
|
+
}
|
|
60
|
+
return function(self) {
|
|
61
|
+
return body(self, a);
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
case 3:
|
|
65
|
+
return function(a, b, c) {
|
|
66
|
+
if (arguments.length >= 3) {
|
|
67
|
+
return body(a, b, c);
|
|
68
|
+
}
|
|
69
|
+
return function(self) {
|
|
70
|
+
return body(self, a, b);
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
default:
|
|
74
|
+
return function() {
|
|
75
|
+
if (arguments.length >= arity) {
|
|
76
|
+
return body.apply(this, arguments);
|
|
77
|
+
}
|
|
78
|
+
const args = arguments;
|
|
79
|
+
return function(self) {
|
|
80
|
+
return body(self, ...args);
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var identity = (a) => a;
|
|
86
|
+
var constant = (value) => () => value;
|
|
87
|
+
var constTrue = /* @__PURE__ */ constant(true);
|
|
88
|
+
var constFalse = /* @__PURE__ */ constant(false);
|
|
89
|
+
var constUndefined = /* @__PURE__ */ constant(undefined);
|
|
90
|
+
var constVoid = constUndefined;
|
|
91
|
+
function pipe(a, ...args) {
|
|
92
|
+
return pipeArguments(a, args);
|
|
93
|
+
}
|
|
94
|
+
function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
95
|
+
switch (arguments.length) {
|
|
96
|
+
case 1:
|
|
97
|
+
return ab;
|
|
98
|
+
case 2:
|
|
99
|
+
return function() {
|
|
100
|
+
return bc(ab.apply(this, arguments));
|
|
101
|
+
};
|
|
102
|
+
case 3:
|
|
103
|
+
return function() {
|
|
104
|
+
return cd(bc(ab.apply(this, arguments)));
|
|
105
|
+
};
|
|
106
|
+
case 4:
|
|
107
|
+
return function() {
|
|
108
|
+
return de(cd(bc(ab.apply(this, arguments))));
|
|
109
|
+
};
|
|
110
|
+
case 5:
|
|
111
|
+
return function() {
|
|
112
|
+
return ef(de(cd(bc(ab.apply(this, arguments)))));
|
|
113
|
+
};
|
|
114
|
+
case 6:
|
|
115
|
+
return function() {
|
|
116
|
+
return fg(ef(de(cd(bc(ab.apply(this, arguments))))));
|
|
117
|
+
};
|
|
118
|
+
case 7:
|
|
119
|
+
return function() {
|
|
120
|
+
return gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))));
|
|
121
|
+
};
|
|
122
|
+
case 8:
|
|
123
|
+
return function() {
|
|
124
|
+
return hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments))))))));
|
|
125
|
+
};
|
|
126
|
+
case 9:
|
|
127
|
+
return function() {
|
|
128
|
+
return ij(hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))))));
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
function memoize(f) {
|
|
134
|
+
const cache = new WeakMap;
|
|
135
|
+
return (a) => {
|
|
136
|
+
const cached = cache.get(a);
|
|
137
|
+
if (cached !== undefined)
|
|
138
|
+
return cached;
|
|
139
|
+
const result = f(a);
|
|
140
|
+
cache.set(a, result);
|
|
141
|
+
return result;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function memoizeIdempotent(f) {
|
|
145
|
+
const cache = new WeakMap;
|
|
146
|
+
return (a) => {
|
|
147
|
+
const cached = cache.get(a);
|
|
148
|
+
if (cached !== undefined)
|
|
149
|
+
return cached;
|
|
150
|
+
const result = f(a);
|
|
151
|
+
cache.set(a, result);
|
|
152
|
+
if (result !== a) {
|
|
153
|
+
cache.set(result, result);
|
|
154
|
+
}
|
|
155
|
+
return result;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
18
158
|
|
|
19
159
|
// node_modules/effect/dist/internal/equal.js
|
|
20
160
|
var getAllObjectKeys = (obj) => {
|
|
@@ -47,6 +187,70 @@ var addBackEdge = () => {
|
|
|
47
187
|
backEdges++;
|
|
48
188
|
};
|
|
49
189
|
|
|
190
|
+
// node_modules/effect/dist/Predicate.js
|
|
191
|
+
function isString(input) {
|
|
192
|
+
return typeof input === "string";
|
|
193
|
+
}
|
|
194
|
+
function isNumber(input) {
|
|
195
|
+
return typeof input === "number";
|
|
196
|
+
}
|
|
197
|
+
function isBoolean(input) {
|
|
198
|
+
return typeof input === "boolean";
|
|
199
|
+
}
|
|
200
|
+
function isBigInt(input) {
|
|
201
|
+
return typeof input === "bigint";
|
|
202
|
+
}
|
|
203
|
+
function isSymbol(input) {
|
|
204
|
+
return typeof input === "symbol";
|
|
205
|
+
}
|
|
206
|
+
function isPropertyKey(u) {
|
|
207
|
+
return isString(u) || isNumber(u) || isSymbol(u);
|
|
208
|
+
}
|
|
209
|
+
function isFunction(input) {
|
|
210
|
+
return typeof input === "function";
|
|
211
|
+
}
|
|
212
|
+
function isUndefined(input) {
|
|
213
|
+
return input === undefined;
|
|
214
|
+
}
|
|
215
|
+
function isNotUndefined(input) {
|
|
216
|
+
return input !== undefined;
|
|
217
|
+
}
|
|
218
|
+
function isNotNull(input) {
|
|
219
|
+
return input !== null;
|
|
220
|
+
}
|
|
221
|
+
function isNullish(input) {
|
|
222
|
+
return input === null || input === undefined;
|
|
223
|
+
}
|
|
224
|
+
function isNotNullish(input) {
|
|
225
|
+
return input != null;
|
|
226
|
+
}
|
|
227
|
+
function isNever(_) {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
function isUnknown(_) {
|
|
231
|
+
return true;
|
|
232
|
+
}
|
|
233
|
+
function isObjectOrArray(input) {
|
|
234
|
+
return typeof input === "object" && input !== null;
|
|
235
|
+
}
|
|
236
|
+
function isObject(input) {
|
|
237
|
+
return typeof input === "object" && input !== null && !Array.isArray(input);
|
|
238
|
+
}
|
|
239
|
+
function isReadonlyObject(input) {
|
|
240
|
+
return isObject(input);
|
|
241
|
+
}
|
|
242
|
+
function isObjectKeyword(input) {
|
|
243
|
+
return typeof input === "object" && input !== null || isFunction(input);
|
|
244
|
+
}
|
|
245
|
+
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObjectKeyword(self) && (property in self));
|
|
246
|
+
var isTagged = /* @__PURE__ */ dual(2, (self, tag) => hasProperty(self, "_tag") && self["_tag"] === tag);
|
|
247
|
+
function isError(input) {
|
|
248
|
+
return input instanceof Error;
|
|
249
|
+
}
|
|
250
|
+
function isIterable(input) {
|
|
251
|
+
return hasProperty(input, Symbol.iterator) || isString(input);
|
|
252
|
+
}
|
|
253
|
+
|
|
50
254
|
// node_modules/effect/dist/Hash.js
|
|
51
255
|
var symbol2 = "~effect/Hash";
|
|
52
256
|
var hash = (self) => {
|
|
@@ -529,7 +733,7 @@ var BaseProto = {
|
|
|
529
733
|
}
|
|
530
734
|
};
|
|
531
735
|
|
|
532
|
-
class
|
|
736
|
+
class Class4 {
|
|
533
737
|
[NodeInspectSymbol]() {
|
|
534
738
|
return this.toJSON();
|
|
535
739
|
}
|
|
@@ -1019,7 +1223,7 @@ var done3 = (value) => {
|
|
|
1019
1223
|
};
|
|
1020
1224
|
|
|
1021
1225
|
// node_modules/effect/dist/Effectable.js
|
|
1022
|
-
var
|
|
1226
|
+
var Prototype2 = (options) => makePrimitiveProto({
|
|
1023
1227
|
op: options.label,
|
|
1024
1228
|
[evaluate]: options.evaluate
|
|
1025
1229
|
});
|
|
@@ -1246,7 +1450,7 @@ var Service2 = function() {
|
|
|
1246
1450
|
};
|
|
1247
1451
|
var ServiceProto = {
|
|
1248
1452
|
[ServiceTypeId]: ServiceTypeId,
|
|
1249
|
-
.../* @__PURE__ */
|
|
1453
|
+
.../* @__PURE__ */ Prototype2({
|
|
1250
1454
|
label: "Service",
|
|
1251
1455
|
evaluate(fiber) {
|
|
1252
1456
|
return exitSucceed(get2(fiber.context, this));
|
|
@@ -1436,6 +1640,126 @@ var mergeAll2 = (...ctxs) => {
|
|
|
1436
1640
|
};
|
|
1437
1641
|
var Reference = Service2;
|
|
1438
1642
|
|
|
1643
|
+
// node_modules/effect/dist/internal/array.js
|
|
1644
|
+
var isArrayNonEmpty2 = (self) => self.length > 0;
|
|
1645
|
+
|
|
1646
|
+
// node_modules/effect/dist/internal/count.js
|
|
1647
|
+
var normalize = (n) => n > 0 ? Math.floor(n) : 0;
|
|
1648
|
+
|
|
1649
|
+
// node_modules/effect/dist/Result.js
|
|
1650
|
+
var succeed = succeed7;
|
|
1651
|
+
var fail2 = fail;
|
|
1652
|
+
var try_ = (evaluate) => {
|
|
1653
|
+
if (isFunction(evaluate)) {
|
|
1654
|
+
try {
|
|
1655
|
+
return succeed(evaluate());
|
|
1656
|
+
} catch (e) {
|
|
1657
|
+
return fail2(e);
|
|
1658
|
+
}
|
|
1659
|
+
} else {
|
|
1660
|
+
try {
|
|
1661
|
+
return succeed(evaluate.try());
|
|
1662
|
+
} catch (e) {
|
|
1663
|
+
return fail2(evaluate.catch(e));
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
};
|
|
1667
|
+
var isResult = isResult2;
|
|
1668
|
+
var isFailure = isFailure3;
|
|
1669
|
+
var isSuccess = isSuccess3;
|
|
1670
|
+
var mapError = /* @__PURE__ */ dual(2, (self, f) => isFailure(self) ? fail2(f(self.failure)) : self);
|
|
1671
|
+
var map3 = /* @__PURE__ */ dual(2, (self, f) => isSuccess(self) ? succeed(f(self.success)) : self);
|
|
1672
|
+
var match2 = /* @__PURE__ */ dual(2, (self, {
|
|
1673
|
+
onFailure,
|
|
1674
|
+
onSuccess
|
|
1675
|
+
}) => isFailure(self) ? onFailure(self.failure) : onSuccess(self.success));
|
|
1676
|
+
|
|
1677
|
+
// node_modules/effect/dist/Iterable.js
|
|
1678
|
+
var findFirst2 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
1679
|
+
let i = 0;
|
|
1680
|
+
for (const a of self) {
|
|
1681
|
+
const o = f(a, i);
|
|
1682
|
+
if (isBoolean(o)) {
|
|
1683
|
+
if (o) {
|
|
1684
|
+
return some(a);
|
|
1685
|
+
}
|
|
1686
|
+
} else {
|
|
1687
|
+
if (isSome(o)) {
|
|
1688
|
+
return o;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
i++;
|
|
1692
|
+
}
|
|
1693
|
+
return none();
|
|
1694
|
+
});
|
|
1695
|
+
var constEmpty = {
|
|
1696
|
+
[Symbol.iterator]() {
|
|
1697
|
+
return constEmptyIterator;
|
|
1698
|
+
}
|
|
1699
|
+
};
|
|
1700
|
+
var constEmptyIterator = {
|
|
1701
|
+
next() {
|
|
1702
|
+
return {
|
|
1703
|
+
done: true,
|
|
1704
|
+
value: undefined
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
// node_modules/effect/dist/Array.js
|
|
1710
|
+
var Array2 = globalThis.Array;
|
|
1711
|
+
var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
|
|
1712
|
+
var match3 = /* @__PURE__ */ dual(2, (self, {
|
|
1713
|
+
onEmpty,
|
|
1714
|
+
onNonEmpty
|
|
1715
|
+
}) => isReadonlyArrayNonEmpty(self) ? onNonEmpty(self) : onEmpty());
|
|
1716
|
+
var append2 = /* @__PURE__ */ dual(2, (self, last) => [...self, last]);
|
|
1717
|
+
var isArray = Array2.isArray;
|
|
1718
|
+
var isArrayNonEmpty = isArrayNonEmpty2;
|
|
1719
|
+
var isReadonlyArrayNonEmpty = isArrayNonEmpty2;
|
|
1720
|
+
function isCanonicalArrayIndex(key) {
|
|
1721
|
+
const index = Number(key);
|
|
1722
|
+
return String(index) === key && Number.isInteger(index) && index >= 0 && index < 2 ** 32 - 1;
|
|
1723
|
+
}
|
|
1724
|
+
var clampCount = (n, length) => Math.min(normalize(n), length);
|
|
1725
|
+
var take3 = /* @__PURE__ */ dual(2, (self, n) => {
|
|
1726
|
+
const input = fromIterable(self);
|
|
1727
|
+
return input.slice(0, clampCount(n, input.length));
|
|
1728
|
+
});
|
|
1729
|
+
var findFirstIndex = /* @__PURE__ */ dual(2, (self, predicate) => {
|
|
1730
|
+
let i = 0;
|
|
1731
|
+
for (const a of self) {
|
|
1732
|
+
if (predicate(a, i)) {
|
|
1733
|
+
return some(i);
|
|
1734
|
+
}
|
|
1735
|
+
i++;
|
|
1736
|
+
}
|
|
1737
|
+
return none();
|
|
1738
|
+
});
|
|
1739
|
+
var findFirst = findFirst2;
|
|
1740
|
+
var findLast = /* @__PURE__ */ dual(2, (self, f) => {
|
|
1741
|
+
const input = fromIterable(self);
|
|
1742
|
+
for (let i = input.length - 1;i >= 0; i--) {
|
|
1743
|
+
const a = input[i];
|
|
1744
|
+
const o = f(a, i);
|
|
1745
|
+
if (typeof o === "boolean") {
|
|
1746
|
+
if (o) {
|
|
1747
|
+
return some(a);
|
|
1748
|
+
}
|
|
1749
|
+
} else {
|
|
1750
|
+
if (isSome(o)) {
|
|
1751
|
+
return o;
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
return none();
|
|
1756
|
+
});
|
|
1757
|
+
var empty5 = () => [];
|
|
1758
|
+
var of = (a) => [a];
|
|
1759
|
+
var map4 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
|
|
1760
|
+
var reduce = /* @__PURE__ */ dual(3, (self, b, f) => fromIterable(self).reduce((b, a, i) => f(b, a, i), b));
|
|
1761
|
+
var makeEquivalence = Array_;
|
|
1762
|
+
|
|
1439
1763
|
// node_modules/effect/dist/Duration.js
|
|
1440
1764
|
var TypeId4 = "~effect/Duration";
|
|
1441
1765
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
@@ -1816,126 +2140,6 @@ var format2 = (self) => {
|
|
|
1816
2140
|
return pieces.join(" ");
|
|
1817
2141
|
};
|
|
1818
2142
|
|
|
1819
|
-
// node_modules/effect/dist/internal/array.js
|
|
1820
|
-
var isArrayNonEmpty2 = (self) => self.length > 0;
|
|
1821
|
-
|
|
1822
|
-
// node_modules/effect/dist/internal/count.js
|
|
1823
|
-
var normalize = (n) => n > 0 ? Math.floor(n) : 0;
|
|
1824
|
-
|
|
1825
|
-
// node_modules/effect/dist/Result.js
|
|
1826
|
-
var succeed = succeed7;
|
|
1827
|
-
var fail2 = fail;
|
|
1828
|
-
var try_ = (evaluate) => {
|
|
1829
|
-
if (isFunction(evaluate)) {
|
|
1830
|
-
try {
|
|
1831
|
-
return succeed(evaluate());
|
|
1832
|
-
} catch (e) {
|
|
1833
|
-
return fail2(e);
|
|
1834
|
-
}
|
|
1835
|
-
} else {
|
|
1836
|
-
try {
|
|
1837
|
-
return succeed(evaluate.try());
|
|
1838
|
-
} catch (e) {
|
|
1839
|
-
return fail2(evaluate.catch(e));
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
};
|
|
1843
|
-
var isResult = isResult2;
|
|
1844
|
-
var isFailure = isFailure3;
|
|
1845
|
-
var isSuccess = isSuccess3;
|
|
1846
|
-
var mapError = /* @__PURE__ */ dual(2, (self, f) => isFailure(self) ? fail2(f(self.failure)) : self);
|
|
1847
|
-
var map3 = /* @__PURE__ */ dual(2, (self, f) => isSuccess(self) ? succeed(f(self.success)) : self);
|
|
1848
|
-
var match2 = /* @__PURE__ */ dual(2, (self, {
|
|
1849
|
-
onFailure,
|
|
1850
|
-
onSuccess
|
|
1851
|
-
}) => isFailure(self) ? onFailure(self.failure) : onSuccess(self.success));
|
|
1852
|
-
|
|
1853
|
-
// node_modules/effect/dist/Iterable.js
|
|
1854
|
-
var findFirst2 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
1855
|
-
let i = 0;
|
|
1856
|
-
for (const a of self) {
|
|
1857
|
-
const o = f(a, i);
|
|
1858
|
-
if (isBoolean(o)) {
|
|
1859
|
-
if (o) {
|
|
1860
|
-
return some(a);
|
|
1861
|
-
}
|
|
1862
|
-
} else {
|
|
1863
|
-
if (isSome(o)) {
|
|
1864
|
-
return o;
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
i++;
|
|
1868
|
-
}
|
|
1869
|
-
return none();
|
|
1870
|
-
});
|
|
1871
|
-
var constEmpty = {
|
|
1872
|
-
[Symbol.iterator]() {
|
|
1873
|
-
return constEmptyIterator;
|
|
1874
|
-
}
|
|
1875
|
-
};
|
|
1876
|
-
var constEmptyIterator = {
|
|
1877
|
-
next() {
|
|
1878
|
-
return {
|
|
1879
|
-
done: true,
|
|
1880
|
-
value: undefined
|
|
1881
|
-
};
|
|
1882
|
-
}
|
|
1883
|
-
};
|
|
1884
|
-
|
|
1885
|
-
// node_modules/effect/dist/Array.js
|
|
1886
|
-
var Array2 = globalThis.Array;
|
|
1887
|
-
var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
|
|
1888
|
-
var match3 = /* @__PURE__ */ dual(2, (self, {
|
|
1889
|
-
onEmpty,
|
|
1890
|
-
onNonEmpty
|
|
1891
|
-
}) => isReadonlyArrayNonEmpty(self) ? onNonEmpty(self) : onEmpty());
|
|
1892
|
-
var append2 = /* @__PURE__ */ dual(2, (self, last) => [...self, last]);
|
|
1893
|
-
var isArray = Array2.isArray;
|
|
1894
|
-
var isArrayNonEmpty = isArrayNonEmpty2;
|
|
1895
|
-
var isReadonlyArrayNonEmpty = isArrayNonEmpty2;
|
|
1896
|
-
function isCanonicalArrayIndex(key) {
|
|
1897
|
-
const index = Number(key);
|
|
1898
|
-
return String(index) === key && Number.isInteger(index) && index >= 0 && index < 2 ** 32 - 1;
|
|
1899
|
-
}
|
|
1900
|
-
var clampCount = (n, length) => Math.min(normalize(n), length);
|
|
1901
|
-
var take3 = /* @__PURE__ */ dual(2, (self, n) => {
|
|
1902
|
-
const input = fromIterable(self);
|
|
1903
|
-
return input.slice(0, clampCount(n, input.length));
|
|
1904
|
-
});
|
|
1905
|
-
var findFirstIndex = /* @__PURE__ */ dual(2, (self, predicate) => {
|
|
1906
|
-
let i = 0;
|
|
1907
|
-
for (const a of self) {
|
|
1908
|
-
if (predicate(a, i)) {
|
|
1909
|
-
return some(i);
|
|
1910
|
-
}
|
|
1911
|
-
i++;
|
|
1912
|
-
}
|
|
1913
|
-
return none();
|
|
1914
|
-
});
|
|
1915
|
-
var findFirst = findFirst2;
|
|
1916
|
-
var findLast = /* @__PURE__ */ dual(2, (self, f) => {
|
|
1917
|
-
const input = fromIterable(self);
|
|
1918
|
-
for (let i = input.length - 1;i >= 0; i--) {
|
|
1919
|
-
const a = input[i];
|
|
1920
|
-
const o = f(a, i);
|
|
1921
|
-
if (typeof o === "boolean") {
|
|
1922
|
-
if (o) {
|
|
1923
|
-
return some(a);
|
|
1924
|
-
}
|
|
1925
|
-
} else {
|
|
1926
|
-
if (isSome(o)) {
|
|
1927
|
-
return o;
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
return none();
|
|
1932
|
-
});
|
|
1933
|
-
var empty5 = () => [];
|
|
1934
|
-
var of = (a) => [a];
|
|
1935
|
-
var map4 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
|
|
1936
|
-
var reduce = /* @__PURE__ */ dual(3, (self, b, f) => fromIterable(self).reduce((b, a, i) => f(b, a, i), b));
|
|
1937
|
-
var makeEquivalence = Array_;
|
|
1938
|
-
|
|
1939
2143
|
// node_modules/effect/dist/Scheduler.js
|
|
1940
2144
|
var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
|
|
1941
2145
|
fiberCached: true,
|
|
@@ -4629,6 +4833,32 @@ var reportCauseUnsafe = (fiber, cause, defectsOnly) => {
|
|
|
4629
4833
|
reporters.forEach((reporter) => reporter.report(opts));
|
|
4630
4834
|
};
|
|
4631
4835
|
|
|
4836
|
+
// node_modules/effect/dist/Cause.js
|
|
4837
|
+
var isCause = isCause2;
|
|
4838
|
+
var isReason = isCauseReason;
|
|
4839
|
+
var isFailReason = isFailReason2;
|
|
4840
|
+
var fromReasons = causeFromReasons;
|
|
4841
|
+
var fail3 = causeFail;
|
|
4842
|
+
var die = causeDie;
|
|
4843
|
+
var makeFailReason = (error) => new Fail(error);
|
|
4844
|
+
var makeDieReason = (defect) => new Die(defect);
|
|
4845
|
+
var makeInterruptReason = makeInterruptReason2;
|
|
4846
|
+
var hasInterruptsOnly = hasInterruptsOnly2;
|
|
4847
|
+
var map5 = causeMap;
|
|
4848
|
+
var squash = causeSquash;
|
|
4849
|
+
var findError = findError2;
|
|
4850
|
+
var hasDies = hasDies2;
|
|
4851
|
+
var hasInterrupts = hasInterrupts3;
|
|
4852
|
+
var interruptors = causeInterruptors;
|
|
4853
|
+
var isDone3 = isDone2;
|
|
4854
|
+
var Done2 = Done;
|
|
4855
|
+
var done = done3;
|
|
4856
|
+
var IllegalArgumentError = IllegalArgumentError2;
|
|
4857
|
+
var ExceededCapacityError = ExceededCapacityError2;
|
|
4858
|
+
var UnknownError = UnknownError2;
|
|
4859
|
+
class StackTrace extends (/* @__PURE__ */ Service2()("effect/Cause/StackTrace")) {
|
|
4860
|
+
}
|
|
4861
|
+
|
|
4632
4862
|
// node_modules/effect/dist/Exit.js
|
|
4633
4863
|
var isExit = isExit2;
|
|
4634
4864
|
var succeed3 = exitSucceed;
|
|
@@ -4838,32 +5068,6 @@ var provide2 = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, i
|
|
|
4838
5068
|
var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, (self, that) => merge2(that, self)));
|
|
4839
5069
|
var launch = (self) => scoped2(andThen(build(self), never2));
|
|
4840
5070
|
|
|
4841
|
-
// node_modules/effect/dist/Cause.js
|
|
4842
|
-
var isCause = isCause2;
|
|
4843
|
-
var isReason = isCauseReason;
|
|
4844
|
-
var isFailReason = isFailReason2;
|
|
4845
|
-
var fromReasons = causeFromReasons;
|
|
4846
|
-
var fail3 = causeFail;
|
|
4847
|
-
var die = causeDie;
|
|
4848
|
-
var makeFailReason = (error) => new Fail(error);
|
|
4849
|
-
var makeDieReason = (defect) => new Die(defect);
|
|
4850
|
-
var makeInterruptReason = makeInterruptReason2;
|
|
4851
|
-
var hasInterruptsOnly = hasInterruptsOnly2;
|
|
4852
|
-
var map5 = causeMap;
|
|
4853
|
-
var squash = causeSquash;
|
|
4854
|
-
var findError = findError2;
|
|
4855
|
-
var hasDies = hasDies2;
|
|
4856
|
-
var hasInterrupts = hasInterrupts3;
|
|
4857
|
-
var interruptors = causeInterruptors;
|
|
4858
|
-
var isDone3 = isDone2;
|
|
4859
|
-
var Done2 = Done;
|
|
4860
|
-
var done = done3;
|
|
4861
|
-
var IllegalArgumentError = IllegalArgumentError2;
|
|
4862
|
-
var ExceededCapacityError = ExceededCapacityError2;
|
|
4863
|
-
var UnknownError = UnknownError2;
|
|
4864
|
-
class StackTrace extends (/* @__PURE__ */ Service2()("effect/Cause/StackTrace")) {
|
|
4865
|
-
}
|
|
4866
|
-
|
|
4867
5071
|
// node_modules/effect/dist/Pull.js
|
|
4868
5072
|
var catchDone = /* @__PURE__ */ dual(2, (effect, f) => catchCauseFilter(effect, filterDoneLeftover, (l) => f(l)));
|
|
4869
5073
|
var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
|
|
@@ -5193,4 +5397,4 @@ var flatMapEager = flatMapEager2;
|
|
|
5193
5397
|
var catchEager = catchEager2;
|
|
5194
5398
|
var fnUntracedEager = fnUntracedEager2;
|
|
5195
5399
|
|
|
5196
|
-
export { symbol2, hash, structure, array, symbol3, equals, symbolRedactable, redact, format, formatPropertyKey, formatPath, formatJson, NodeInspectSymbol, toJson, BaseProto,
|
|
5400
|
+
export { pipeArguments, Prototype, Class3, dual, identity, constant, constTrue, constFalse, constUndefined, constVoid, pipe, flow, memoize, memoizeIdempotent, isString, isNumber, isBoolean, isBigInt, isSymbol, isPropertyKey, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isNotNullish, isNever, isUnknown, isObjectOrArray, isObject, isReadonlyObject, isObjectKeyword, hasProperty, isTagged, isError, symbol2, hash, structure, array, symbol3, equals, symbolRedactable, redact, format, formatPropertyKey, formatPath, formatJson, NodeInspectSymbol, toJson, BaseProto, Class4, getStackTraceLimit, setStackTraceLimit, assignProperty, assignProperties, args, PipeInspectableProto, causeFail, exitSucceed, exitFailCause, exitFail, withFiber, Error4, TaggedError3, Done, Prototype2, make9, strictEqual, Tuple2, Number3, isLessThan, isGreaterThan2, isLessThanOrEqualTo, isGreaterThanOrEqualTo2, none, some, isNone, isSome, match, getOrElse, fromNullishOr, fromUndefinedOr, getOrUndefined, map2, flatMap, filter2, exists, Service2, makeUnsafe3, empty4, make10, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get2, merge2, Reference, normalize, succeed, fail2, try_, isResult, isFailure, isSuccess, mapError, map3, match2, fromIterable, match3, append2, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, take3, findFirstIndex, findFirst, findLast, empty5, of, map4, reduce, makeEquivalence, fromInputUnsafe, isFinite2, isZero, zero, millis, seconds, toMillis, Scheduler, ParentSpan, externalSpan, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend, succeedNone, void_, callback, asSome, andThen, flatMap2, effectIsExit, exitInterrupt, exitVoid, exitZipRight, onExitPrimitive, uninterruptibleMask, resolveConcurrency, iterateEager, iterateConcurrent, fiberRunIn, makeLatchUnsafe, ClockRef, currentTimeMillis2, ConsoleRef, LogLevelOrder, reportCauseUnsafe, isCause, isReason, isFailReason, fromReasons, fail3, die, makeFailReason, makeDieReason, makeInterruptReason, hasInterruptsOnly, map5, squash, findError, hasDies, hasInterrupts, interruptors, Done2, done, IllegalArgumentError, ExceededCapacityError, UnknownError, StackTrace, isExit, succeed3, failCause2, fail4, die2, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts2, asVoid, isDeferred, makeUnsafe4, make11, _await, done2, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, CurrentLogLevel, MinimumLogLevel, Scope, make12, makeUnsafe5, provide, addFinalizerExit, addFinalizer, fork, forkUnsafe, close, closeUnsafe, use, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, launch, catchDone, isDoneCause, doneExitFromCause, matchEffect, modifyDelay, spaced, setInputType, isEffect, all, forEach, whileLoop, promise, tryPromise, succeed6, succeedNone2, suspend2, sync2, void_3, callback2, never, gen, fail6, failCause3, failCauseSync, die3, try_2, withFiber2, fromResult, flatMap3, andThen2, tap, result, option2, exit, map6, as, asVoid2, zipWith, catch_, catchTag, catchTags, catchCause, catchDefect, catchIf, catchFilter, catchCauseIf, mapError2, orDie, tapError, tapCause, retry, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, sleep, race, raceFirst, when2, match4, matchCauseEffect, matchEffect2, context2, contextWith, provide3, provideContext2, serviceOption, updateContext, provideService, scope, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runSync, runSyncExit, fnUntraced, fn, clockWith, logFatal, logError, logDebug, annotateLogs, effectify, mapEager, mapErrorEager, mapBothEager, flatMapEager, catchEager, fnUntracedEager };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-bt237ys7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
stateRoot
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-rb7dermc.mjs";
|
|
8
8
|
|
|
9
9
|
// src/relay/browser-pairing.ts
|
|
10
10
|
import crypto from "node:crypto";
|
|
@@ -69,8 +69,11 @@ function recordPairingFailure(root = stateRoot(), now = Date.now()) {
|
|
|
69
69
|
writePendingCodes(root, exhausted ? { codes: [], failures: 0 } : { codes: pending.codes, failures });
|
|
70
70
|
return exhausted && pending.codes.length > 0;
|
|
71
71
|
}
|
|
72
|
-
function writeExtensionPairing(extensionDirectory, code) {
|
|
73
|
-
writePrivateJsonFileSync(path.join(extensionDirectory, extensionPairingFileName), {
|
|
72
|
+
function writeExtensionPairing(extensionDirectory, code, port) {
|
|
73
|
+
writePrivateJsonFileSync(path.join(extensionDirectory, extensionPairingFileName), {
|
|
74
|
+
code,
|
|
75
|
+
...port === undefined ? {} : { port }
|
|
76
|
+
});
|
|
74
77
|
}
|
|
75
78
|
function readBrowserPairings(root = dataRoot()) {
|
|
76
79
|
try {
|