@opencode/browse 0.0.18-dev.192 → 0.0.18-dev.193

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.
Files changed (39) hide show
  1. package/dist/{Runtime-tvxdkp60.mjs → Runtime-r9sev1rq.mjs} +1 -1
  2. package/dist/{cli-54nftqxr.mjs → cli-ekwkvvmm.mjs} +33 -29
  3. package/dist/cli.mjs +23 -13
  4. package/dist/{helpers-yksnc17b.mjs → helpers-3ycvp75a.mjs} +2 -1
  5. package/dist/{index-kmxtpxxk.mjs → index-xsb9s479.mjs} +2 -2
  6. package/dist/{legacy-runtime-e6y2jnc6.mjs → legacy-runtime-v1sdjj5h.mjs} +8 -7
  7. package/dist/log-yek648ak.mjs +9 -0
  8. package/dist/{main-dyya6jpy.mjs → main-1qwrze1y.mjs} +2 -2
  9. package/dist/{main-p8jk5985.mjs → main-2p0v71q0.mjs} +39 -37
  10. package/dist/{main-hh16893t.mjs → main-3g7fdzbh.mjs} +28 -26
  11. package/dist/{main-de0xhbg0.mjs → main-55a4gpef.mjs} +59 -67
  12. package/dist/main-693wwz19.mjs +4 -0
  13. package/dist/main-91vhk5de.mjs +38 -0
  14. package/dist/{main-4wycvga6.mjs → main-9t32k44b.mjs} +4 -3
  15. package/dist/{main-d1th6z2h.mjs → main-bv9nawja.mjs} +21 -225
  16. package/dist/main-cgnkhs2x.mjs +35 -0
  17. package/dist/{main-w6180mxa.mjs → main-esdgpebk.mjs} +3 -3
  18. package/dist/{main-z4c819pg.mjs → main-fg5awggs.mjs} +29 -27
  19. package/dist/{main-4fw36c57.mjs → main-gt2gskrq.mjs} +2 -2
  20. package/dist/{main-p8q3wrpd.mjs → main-gw77et6v.mjs} +3 -3
  21. package/dist/{main-t8hspw29.mjs → main-kcw411ep.mjs} +11 -42
  22. package/dist/{main-h65pjrag.mjs → main-nnfxg7re.mjs} +7 -7
  23. package/dist/{main-zrjcdksk.mjs → main-pcqtqhgv.mjs} +5 -3
  24. package/dist/{main-jtgan144.mjs → main-pxs5m0kb.mjs} +10 -8
  25. package/dist/main-qazf3bhk.mjs +223 -0
  26. package/dist/{main-q5w61fgh.mjs → main-sf7vaxb6.mjs} +1 -1
  27. package/dist/{main-t8xtycpr.mjs → main-stf180y1.mjs} +7 -5
  28. package/dist/{main-p44hff2a.mjs → main-zedq93ez.mjs} +5 -3
  29. package/dist/{main-c9qxrdzn.mjs → main-zzggnpf4.mjs} +2 -2
  30. package/dist/{mcp-a2jkny55.mjs → mcp-xfx04fxe.mjs} +125 -121
  31. package/dist/{migrate-p84kbr3y.mjs → migrate-4rewxqd7.mjs} +8 -7
  32. package/dist/{relay-e9q9hfc3.mjs → relay-me036e19.mjs} +562 -166
  33. package/dist/{remove-stored-secrets-c90a5h72.mjs → remove-stored-secrets-ymhge5va.mjs} +1 -1
  34. package/dist/{runtime-update-jj6pa7vd.mjs → runtime-update-hd2cvy1c.mjs} +12 -10
  35. package/dist/{setup-p86ywb7k.mjs → setup-0hmbzam5.mjs} +12 -11
  36. package/dist/{update-rh24h3m1.mjs → update-vnkjbc0e.mjs} +3 -3
  37. package/dist/{version-1p8wpyzk.mjs → version-jn0h3rmc.mjs} +1 -1
  38. package/package.json +1 -1
  39. package/dist/main-wds0wcmt.mjs +0 -4
@@ -1,160 +1,20 @@
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
- }
1
+ import {
2
+ pipeArguments,
3
+ dual,
4
+ identity,
5
+ constant,
6
+ constTrue,
7
+ constFalse,
8
+ constUndefined,
9
+ constVoid,
10
+ isString,
11
+ isNumber,
12
+ isBoolean,
13
+ isFunction,
14
+ hasProperty,
15
+ isTagged,
16
+ isIterable
17
+ } from "./main-qazf3bhk.mjs";
158
18
 
159
19
  // node_modules/effect/dist/internal/equal.js
160
20
  var getAllObjectKeys = (obj) => {
@@ -187,70 +47,6 @@ var addBackEdge = () => {
187
47
  backEdges++;
188
48
  };
189
49
 
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
-
254
50
  // node_modules/effect/dist/Hash.js
255
51
  var symbol2 = "~effect/Hash";
256
52
  var hash = (self) => {
@@ -733,7 +529,7 @@ var BaseProto = {
733
529
  }
734
530
  };
735
531
 
736
- class Class4 {
532
+ class Class3 {
737
533
  [NodeInspectSymbol]() {
738
534
  return this.toJSON();
739
535
  }
@@ -1223,7 +1019,7 @@ var done3 = (value) => {
1223
1019
  };
1224
1020
 
1225
1021
  // node_modules/effect/dist/Effectable.js
1226
- var Prototype2 = (options) => makePrimitiveProto({
1022
+ var Prototype = (options) => makePrimitiveProto({
1227
1023
  op: options.label,
1228
1024
  [evaluate]: options.evaluate
1229
1025
  });
@@ -1450,7 +1246,7 @@ var Service2 = function() {
1450
1246
  };
1451
1247
  var ServiceProto = {
1452
1248
  [ServiceTypeId]: ServiceTypeId,
1453
- .../* @__PURE__ */ Prototype2({
1249
+ .../* @__PURE__ */ Prototype({
1454
1250
  label: "Service",
1455
1251
  evaluate(fiber) {
1456
1252
  return exitSucceed(get2(fiber.context, this));
@@ -5392,4 +5188,4 @@ var flatMapEager = flatMapEager2;
5392
5188
  var catchEager = catchEager2;
5393
5189
  var fnUntracedEager = fnUntracedEager2;
5394
5190
 
5395
- 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, isGreaterThan, 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, 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 };
5191
+ export { symbol2, hash, structure, array, symbol3, equals, symbolRedactable, redact, format, formatPropertyKey, formatPath, formatJson, NodeInspectSymbol, toJson, BaseProto, Class3, getStackTraceLimit, setStackTraceLimit, assignProperty, assignProperties, args, PipeInspectableProto, causeFail, exitSucceed, exitFailCause, exitFail, withFiber, Error4, TaggedError3, Done, Prototype, make9, strictEqual, Tuple2, Number3, isLessThan, isGreaterThan, 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, 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 };
@@ -0,0 +1,35 @@
1
+ import {
2
+ ensurePrivateDirectorySync
3
+ } from "./main-91vhk5de.mjs";
4
+ import {
5
+ stateRoot
6
+ } from "./main-1qwrze1y.mjs";
7
+
8
+ // src/relay/log.ts
9
+ import fs from "node:fs";
10
+ import os from "node:os";
11
+ import path from "node:path";
12
+ var maxLogBytes = 1e6;
13
+ var maxEntryCharacters = 64000;
14
+ function managedRelayLogPath(home = os.homedir()) {
15
+ return path.join(stateRoot(home), "logs", "relay.log");
16
+ }
17
+ function appendManagedRelayProcessLog2(message, home = os.homedir()) {
18
+ try {
19
+ const logPath = managedRelayLogPath(home);
20
+ ensurePrivateDirectorySync(path.dirname(logPath));
21
+ const entry = `${new Date().toISOString()} ${message.slice(0, maxEntryCharacters)}
22
+ `;
23
+ const stat = fs.statSync(logPath, { throwIfNoEntry: false });
24
+ if (stat && stat.size + Buffer.byteLength(entry) > maxLogBytes)
25
+ fs.renameSync(logPath, `${logPath}.1`);
26
+ fs.appendFileSync(logPath, entry, { encoding: "utf8", mode: 384 });
27
+ fs.chmodSync(logPath, 384);
28
+ } catch {}
29
+ }
30
+ function relayLog2(event, fields = {}) {
31
+ const detail = Object.entries(fields).filter(([, value]) => value !== undefined).map(([key, value]) => `${key}=${typeof value === "string" && !/\s/.test(value) ? value : JSON.stringify(value)}`).join(" ");
32
+ appendManagedRelayProcessLog2(detail ? `${event} ${detail}` : event);
33
+ }
34
+
35
+ export { appendManagedRelayProcessLog2, relayLog2 };
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  writePrivateJsonFileSync
3
- } from "./main-t8hspw29.mjs";
3
+ } from "./main-91vhk5de.mjs";
4
4
  import {
5
5
  bundledPairingCodeTtlMs,
6
6
  mintPairingCode,
7
7
  writeExtensionPairing
8
- } from "./main-4fw36c57.mjs";
8
+ } from "./main-gt2gskrq.mjs";
9
9
  import {
10
10
  configRoot2,
11
11
  cacheRoot,
12
12
  devExtensionUrl,
13
13
  devExtensionFolder
14
- } from "./main-dyya6jpy.mjs";
14
+ } from "./main-1qwrze1y.mjs";
15
15
 
16
16
  // src/setup/dev-extension.ts
17
17
  import { createHash } from "node:crypto";
@@ -1,25 +1,4 @@
1
1
  import {
2
- pipeArguments,
3
- Prototype,
4
- Class3,
5
- dual,
6
- identity,
7
- memoize,
8
- memoizeIdempotent,
9
- isString,
10
- isNumber,
11
- isBoolean,
12
- isPropertyKey,
13
- isFunction,
14
- isNotUndefined,
15
- isNotNullish,
16
- isNever,
17
- isUnknown,
18
- isObject,
19
- isObjectKeyword,
20
- hasProperty,
21
- isTagged,
22
- isError,
23
2
  equals,
24
3
  format,
25
4
  formatPropertyKey,
@@ -86,10 +65,33 @@ import {
86
65
  mapBothEager,
87
66
  flatMapEager,
88
67
  fnUntracedEager
89
- } from "./main-d1th6z2h.mjs";
68
+ } from "./main-bv9nawja.mjs";
69
+ import {
70
+ pipeArguments,
71
+ Prototype2,
72
+ Class4,
73
+ dual,
74
+ identity,
75
+ memoize,
76
+ memoizeIdempotent,
77
+ isString,
78
+ isNumber,
79
+ isBoolean,
80
+ isPropertyKey,
81
+ isFunction,
82
+ isNotUndefined,
83
+ isNotNullish,
84
+ isNever,
85
+ isUnknown,
86
+ isObject,
87
+ isObjectKeyword,
88
+ hasProperty,
89
+ isTagged,
90
+ isError
91
+ } from "./main-qazf3bhk.mjs";
90
92
 
91
93
  // node_modules/effect/dist/Data.js
92
- var Class = class extends Class3 {
94
+ var Class = class extends Class4 {
93
95
  constructor(props) {
94
96
  super();
95
97
  if (props) {
@@ -507,7 +509,7 @@ function getSchemaIssueOrThrow(cause, message) {
507
509
  }
508
510
 
509
511
  // node_modules/effect/dist/SchemaGetter.js
510
- var makeGetter = (fields) => Object.assign(Object.create(Prototype), fields);
512
+ var makeGetter = (fields) => Object.assign(Object.create(Prototype2), fields);
511
513
  var passthrough_ = /* @__PURE__ */ makeGetter({
512
514
  _tag: "Passthrough"
513
515
  });
@@ -561,7 +563,7 @@ function decodeBase64() {
561
563
 
562
564
  // node_modules/effect/dist/SchemaTransformation.js
563
565
  var TypeId2 = "~effect/SchemaTransformation/Transformation";
564
- var Transformation = class extends Class3 {
566
+ var Transformation = class extends Class4 {
565
567
  [TypeId2] = TypeId2;
566
568
  _tag = "Transformation";
567
569
  decode;
@@ -1984,7 +1986,7 @@ function formatIsMutable(isMutable) {
1984
1986
  function formatIsOptional(isOptional) {
1985
1987
  return isOptional ? "?" : "";
1986
1988
  }
1987
- var Filter2 = class extends Class3 {
1989
+ var Filter2 = class extends Class4 {
1988
1990
  _tag = "Filter";
1989
1991
  run;
1990
1992
  annotations;
@@ -2008,7 +2010,7 @@ var Filter2 = class extends Class3 {
2008
2010
  return new FilterGroup([this, other], annotations);
2009
2011
  }
2010
2012
  };
2011
- var FilterGroup = class extends Class3 {
2013
+ var FilterGroup = class extends Class4 {
2012
2014
  _tag = "FilterGroup";
2013
2015
  checks;
2014
2016
  annotations;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  writePrivateJsonFileSync
3
- } from "./main-t8hspw29.mjs";
3
+ } from "./main-91vhk5de.mjs";
4
4
  import {
5
5
  dataRoot,
6
6
  stateRoot
7
- } from "./main-dyya6jpy.mjs";
7
+ } from "./main-1qwrze1y.mjs";
8
8
 
9
9
  // src/relay/browser-pairing.ts
10
10
  import crypto from "node:crypto";
@@ -3,13 +3,13 @@ import {
3
3
  installedRuntime2,
4
4
  autoUpdateStatus,
5
5
  updateAvailable
6
- } from "./main-4wycvga6.mjs";
6
+ } from "./main-9t32k44b.mjs";
7
7
  import {
8
8
  cacheRoot,
9
9
  compiledBinary,
10
10
  checkoutRoot,
11
11
  cliCommand
12
- } from "./main-dyya6jpy.mjs";
12
+ } from "./main-1qwrze1y.mjs";
13
13
 
14
14
  // src/update.ts
15
15
  import { execFile, spawnSync } from "node:child_process";
@@ -315,7 +315,7 @@ function runUpdate(args, deps) {
315
315
  async function runUpdateCommand2(args) {
316
316
  const log = (line) => process.stdout.write(line + `
317
317
  `);
318
- const { runInstalledUpdate } = await import("./runtime-update-jj6pa7vd.mjs");
318
+ const { runInstalledUpdate } = await import("./runtime-update-hd2cvy1c.mjs");
319
319
  if (await runInstalledUpdate(args))
320
320
  return;
321
321
  if (compiledBinary()) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unpackedExtensionId,
3
3
  parseJsonObject
4
- } from "./main-4wycvga6.mjs";
4
+ } from "./main-9t32k44b.mjs";
5
5
  import {
6
6
  decodeUnknownOption,
7
7
  optionalKey,
@@ -27,11 +27,8 @@ import {
27
27
  NonEmptyString,
28
28
  TaggedError2,
29
29
  Json
30
- } from "./main-z4c819pg.mjs";
30
+ } from "./main-fg5awggs.mjs";
31
31
  import {
32
- isString,
33
- isNumber,
34
- isObject,
35
32
  isNone,
36
33
  match,
37
34
  succeed6,
@@ -40,40 +37,12 @@ import {
40
37
  callback2,
41
38
  fail6,
42
39
  catch_
43
- } from "./main-d1th6z2h.mjs";
44
- // src/fs-durability.ts
45
- import crypto from "node:crypto";
46
- import fsSync from "node:fs";
47
- import path from "node:path";
48
- var unsupportedDirectorySyncCodes = new Set(["EPERM", "EINVAL", "ENOTSUP"]);
49
- function isNodeError(error) {
50
- return error instanceof Error && "code" in error;
51
- }
52
- function isUnsupportedDirectorySyncError(error) {
53
- return isNodeError(error) && isString(error.code) && unsupportedDirectorySyncCodes.has(error.code);
54
- }
55
- function ensurePrivateDirectorySync(directory) {
56
- fsSync.mkdirSync(directory, { recursive: true, mode: 448 });
57
- if (process.platform !== "win32")
58
- fsSync.chmodSync(directory, 448);
59
- }
60
- function writePrivateJsonFileSync(filePath, value, options = {}) {
61
- if (options.ensureParent)
62
- ensurePrivateDirectorySync(path.dirname(filePath));
63
- const temporaryPath = `${filePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
64
- let renamed = false;
65
- try {
66
- fsSync.writeFileSync(temporaryPath, `${JSON.stringify(value, null, 2)}
67
- `, { mode: 384 });
68
- fsSync.renameSync(temporaryPath, filePath);
69
- renamed = true;
70
- if (process.platform !== "win32")
71
- fsSync.chmodSync(filePath, 384);
72
- } finally {
73
- if (!renamed)
74
- fsSync.rmSync(temporaryPath, { force: true });
75
- }
76
- }
40
+ } from "./main-bv9nawja.mjs";
41
+ import {
42
+ isString,
43
+ isNumber,
44
+ isObject
45
+ } from "./main-qazf3bhk.mjs";
77
46
 
78
47
  // src/relay/schema.ts
79
48
  var SessionHandoff = Struct({
@@ -635,12 +604,12 @@ function readJsonBody2(request) {
635
604
  }
636
605
 
637
606
  // src/relay/origins.ts
638
- import crypto2 from "node:crypto";
607
+ import crypto from "node:crypto";
639
608
  var stableUnpackedExtensionOrigin2 = `chrome-extension://${unpackedExtensionId}`;
640
609
  function chromeExtensionOriginForPath2(extensionPath, platform = process.platform) {
641
610
  const normalizedPath = platform === "win32" && /^[a-z]:/.test(extensionPath) ? extensionPath.charAt(0).toUpperCase() + extensionPath.slice(1) : extensionPath;
642
611
  const pathBytes = platform === "win32" ? Buffer.from(normalizedPath, "utf16le") : normalizedPath;
643
- const digest = crypto2.createHash("sha256").update(pathBytes).digest();
612
+ const digest = crypto.createHash("sha256").update(pathBytes).digest();
644
613
  let extensionId = "";
645
614
  for (const byte of digest.subarray(0, 16)) {
646
615
  extensionId += String.fromCharCode(97 + (byte >> 4), 97 + (byte & 15));
@@ -919,4 +888,4 @@ async function dataUrlDocument2(url) {
919
888
  return;
920
889
  }
921
890
 
922
- export { isNodeError, isUnsupportedDirectorySyncError, ensurePrivateDirectorySync, writePrivateJsonFileSync, SessionContainer, SessionsContainer, SessionDeleted, SessionResetResponse, ExecuteRequest, SessionAdoptRequest, SessionNewRequest, SessionEnsureRequest, SessionIdRequest, SessionAllowlistRequest, SessionAdoptResponse, ExecuteLogEntry, ExecuteLogSummary, ExecuteAftermath, ExecuteResponse, AuthenticatedJsonRequest, AuthenticatedJsonOutcome, TargetSummaries, ExtensionStatus, RelayVersion, RelayShutdownRequest, RelayShutdownResponse, NetworkStartRequest, NetworkSessionRequest, NetworkStatusResponse, NetworkStopRequest, NetworkStopResponse, NetworkCancelResponse, RecordingQuality, RecordingTargetRequest, RecordingStartRequest, RecordingStartResponse, RecordingStopResponse, RecordingStatusResponse, TabsCleanupResponse, SettingsGetResponse, SettingsSetResponse, RecordingCancelResponse, RelayErrorCode, ErrorEnvelope, HttpRouteError2, formatHostForUrl2, listenHttpServer2, closeHttpServer2, closeWebSocketServer2, logCloseError2, sendJson2, readJsonBody2, stableUnpackedExtensionOrigin2, chromeExtensionOriginForPath2, parseAdditionalExtensionOrigins2, validateHostHeader2, validateBrowserFetchSite2, validateWebSocketOrigin2, defaultHost2, defaultPort2, optionalSessionId2, isValidSessionId2, requiredSessionId2, parseTargetSelection2, generateSessionId2, sendCdpResponse2, sendCdpEvent2, getObject2, getString2, createTargetUrl2, getNumber2, getIdText2, headerValue2, getTargetInfo2, isRestrictedTarget2, isRestrictedUrl2, dataUrlDocument2 };
891
+ export { SessionContainer, SessionsContainer, SessionDeleted, SessionResetResponse, ExecuteRequest, SessionAdoptRequest, SessionNewRequest, SessionEnsureRequest, SessionIdRequest, SessionAllowlistRequest, SessionAdoptResponse, ExecuteLogEntry, ExecuteLogSummary, ExecuteAftermath, ExecuteResponse, AuthenticatedJsonRequest, AuthenticatedJsonOutcome, TargetSummaries, ExtensionStatus, RelayVersion, RelayShutdownRequest, RelayShutdownResponse, NetworkStartRequest, NetworkSessionRequest, NetworkStatusResponse, NetworkStopRequest, NetworkStopResponse, NetworkCancelResponse, RecordingQuality, RecordingTargetRequest, RecordingStartRequest, RecordingStartResponse, RecordingStopResponse, RecordingStatusResponse, TabsCleanupResponse, SettingsGetResponse, SettingsSetResponse, RecordingCancelResponse, RelayErrorCode, ErrorEnvelope, HttpRouteError2, formatHostForUrl2, listenHttpServer2, closeHttpServer2, closeWebSocketServer2, logCloseError2, sendJson2, readJsonBody2, stableUnpackedExtensionOrigin2, chromeExtensionOriginForPath2, parseAdditionalExtensionOrigins2, validateHostHeader2, validateBrowserFetchSite2, validateWebSocketOrigin2, defaultHost2, defaultPort2, optionalSessionId2, isValidSessionId2, requiredSessionId2, parseTargetSelection2, generateSessionId2, sendCdpResponse2, sendCdpEvent2, getObject2, getString2, createTargetUrl2, getNumber2, getIdText2, headerValue2, getTargetInfo2, isRestrictedTarget2, isRestrictedUrl2, dataUrlDocument2 };
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  opencodeBrowserVersion2
3
- } from "./main-wds0wcmt.mjs";
3
+ } from "./main-693wwz19.mjs";
4
4
  import {
5
5
  unpackedExtensionId,
6
6
  npmGlobalRoot,
7
7
  installedVersion,
8
8
  runCommand
9
- } from "./main-4wycvga6.mjs";
9
+ } from "./main-9t32k44b.mjs";
10
10
  import {
11
11
  writeStdout
12
12
  } from "./main-tk4axre7.mjs";
13
- import {
14
- defaultPort2
15
- } from "./main-t8hspw29.mjs";
16
13
  import {
17
14
  formatPairingCode
18
- } from "./main-4fw36c57.mjs";
15
+ } from "./main-gt2gskrq.mjs";
16
+ import {
17
+ defaultPort2
18
+ } from "./main-kcw411ep.mjs";
19
19
  import {
20
20
  configRoot2,
21
21
  dataRoot,
@@ -33,7 +33,7 @@ import {
33
33
  devExtension,
34
34
  devExtensionFolder,
35
35
  storeUrl
36
- } from "./main-dyya6jpy.mjs";
36
+ } from "./main-1qwrze1y.mjs";
37
37
  import {
38
38
  __toESM,
39
39
  __commonJS,
@@ -1,6 +1,4 @@
1
1
  import {
2
- dual,
3
- constVoid,
4
2
  hasInterruptsOnly,
5
3
  squash,
6
4
  isSuccess2,
@@ -9,7 +7,11 @@ import {
9
7
  tapCause,
10
8
  runFork,
11
9
  logError
12
- } from "./main-d1th6z2h.mjs";
10
+ } from "./main-bv9nawja.mjs";
11
+ import {
12
+ dual,
13
+ constVoid
14
+ } from "./main-qazf3bhk.mjs";
13
15
 
14
16
  // node_modules/effect/dist/Runtime.js
15
17
  var defaultTeardown2 = (exit, onExit) => {
@@ -1,9 +1,4 @@
1
1
  import {
2
- pipeArguments,
3
- identity,
4
- isString,
5
- isNumber,
6
- isBoolean,
7
2
  withFiber,
8
3
  succeed,
9
4
  fail2,
@@ -22,7 +17,14 @@ import {
22
17
  uninterruptibleMask,
23
18
  ClockRef,
24
19
  currentTimeMillis2
25
- } from "./main-d1th6z2h.mjs";
20
+ } from "./main-bv9nawja.mjs";
21
+ import {
22
+ pipeArguments,
23
+ identity,
24
+ isString,
25
+ isNumber,
26
+ isBoolean
27
+ } from "./main-qazf3bhk.mjs";
26
28
 
27
29
  // node_modules/effect/dist/Clock.js
28
30
  var Clock = ClockRef;
@@ -130,7 +132,7 @@ class SemaphoreImpl {
130
132
  });
131
133
  }
132
134
  }
133
- var make = (permits) => sync(() => new SemaphoreImpl(permits));
135
+ var make3 = (permits) => sync(() => new SemaphoreImpl(permits));
134
136
 
135
137
  // node_modules/effect/dist/internal/matcher.js
136
138
  var TypeId = "~effect/Match/Matcher";
@@ -324,4 +326,4 @@ var boolean = isBoolean;
324
326
  var orElse = orElse2;
325
327
  var exhaustive = exhaustive2;
326
328
 
327
- export { Clock, currentTimeMillis, makeUnsafe, make, type, value, when, tag, tags, is, string, number, boolean, orElse, exhaustive };
329
+ export { Clock, currentTimeMillis, makeUnsafe, make3, type, value, when, tag, tags, is, string, number, boolean, orElse, exhaustive };