@opencode/browse 0.0.6-dev.28 → 0.0.6-dev.33
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/THIRD_PARTY_NOTICES.txt +310 -0
- package/dist/Undici-88kyhfpm.mjs +25295 -0
- package/dist/cli-s4954jgx.mjs +6694 -0
- package/dist/cli.mjs +10 -10
- package/dist/{helpers-3fm1nwkt.mjs → helpers-4jb4qta2.mjs} +2 -1
- package/dist/index-yghakpfn.mjs +12 -0
- package/dist/{main-x8w3s3rv.mjs → main-65pye947.mjs} +5 -4
- package/dist/{main-tfkqwwrb.mjs → main-77k4dyzb.mjs} +30 -20
- package/dist/{main-xg3r1ze3.mjs → main-78n1x4vq.mjs} +9 -9
- package/dist/main-9z6jbwdp.mjs +14661 -0
- package/dist/main-bdc6msax.mjs +4 -0
- package/dist/main-brs53cap.mjs +205 -0
- package/dist/{main-rsqahh12.mjs → main-ddt4pgtc.mjs} +1416 -97
- package/dist/main-hdmb6het.mjs +1775 -0
- package/dist/{main-scyv26xb.mjs → main-n7hjyqhg.mjs} +2 -2
- package/dist/main-yf9xhpn4.mjs +290 -0
- package/dist/{main-8ncff5jp.mjs → main-yvbhdcvb.mjs} +2 -2
- package/dist/mcp-zm4qfav8.mjs +8515 -0
- package/dist/{relay-epeqzmcr.mjs → relay-3avxv30v.mjs} +739 -693
- package/dist/{runtime-update-3925nwpw.mjs → runtime-update-npa8nssg.mjs} +22 -11
- package/dist/{setup-ys0qf6by.mjs → setup-b2jagcnz.mjs} +10 -40
- package/dist/{supervisor-yb615ygt.mjs → supervisor-wgmvh6ke.mjs} +3 -3
- package/dist/{update-wjkqfk5f.mjs → update-vc2t5k9x.mjs} +3 -3
- package/dist/{version-rh26jqa2.mjs → version-5v1w84se.mjs} +1 -1
- package/package.json +4 -3
- package/dist/cli-wgxfjgb3.mjs +0 -1796
- package/dist/main-4t3a1fw9.mjs +0 -4
- package/dist/main-8h1nwn45.mjs +0 -1410
- package/dist/mcp-7jjntfwf.mjs +0 -905
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import {
|
|
2
|
+
succeed,
|
|
3
|
+
fail,
|
|
4
|
+
isResult,
|
|
5
|
+
isSuccess,
|
|
6
|
+
ClockRef,
|
|
7
|
+
currentTimeMillis
|
|
8
|
+
} from "./main-9z6jbwdp.mjs";
|
|
9
|
+
import {
|
|
10
|
+
pipeArguments,
|
|
11
|
+
identity
|
|
12
|
+
} from "./main-yf9xhpn4.mjs";
|
|
13
|
+
|
|
14
|
+
// node_modules/effect/dist/Clock.js
|
|
15
|
+
var Clock = ClockRef;
|
|
16
|
+
var currentTimeMillis2 = currentTimeMillis;
|
|
17
|
+
|
|
18
|
+
// node_modules/effect/dist/internal/matcher.js
|
|
19
|
+
var TypeId = "~effect/Match/Matcher";
|
|
20
|
+
var TypeMatcherProto = {
|
|
21
|
+
[TypeId]: {
|
|
22
|
+
_input: identity,
|
|
23
|
+
_filters: identity,
|
|
24
|
+
_remaining: identity,
|
|
25
|
+
_result: identity,
|
|
26
|
+
_return: identity,
|
|
27
|
+
_args: identity
|
|
28
|
+
},
|
|
29
|
+
_tag: "TypeMatcher",
|
|
30
|
+
add(_case) {
|
|
31
|
+
return makeTypeMatcher(this.select, [...this.cases, _case]);
|
|
32
|
+
},
|
|
33
|
+
pipe() {
|
|
34
|
+
return pipeArguments(this, arguments);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function makeTypeMatcher(select, cases) {
|
|
38
|
+
const matcher = Object.create(TypeMatcherProto);
|
|
39
|
+
matcher.select = select;
|
|
40
|
+
matcher.cases = cases;
|
|
41
|
+
return matcher;
|
|
42
|
+
}
|
|
43
|
+
var ValueMatcherProto = {
|
|
44
|
+
[TypeId]: {
|
|
45
|
+
_input: identity,
|
|
46
|
+
_filters: identity,
|
|
47
|
+
_result: identity,
|
|
48
|
+
_return: identity,
|
|
49
|
+
_flavor: identity
|
|
50
|
+
},
|
|
51
|
+
_tag: "ValueMatcher",
|
|
52
|
+
add(_case) {
|
|
53
|
+
if (isSuccess(this.value)) {
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
if (_case._tag === "When" && _case.guard(this.provided) === true) {
|
|
57
|
+
return makeValueMatcher(this.provided, succeed(_case.evaluate(this.provided)));
|
|
58
|
+
} else if (_case._tag === "Not" && _case.guard(this.provided) === false) {
|
|
59
|
+
return makeValueMatcher(this.provided, succeed(_case.evaluate(this.provided)));
|
|
60
|
+
}
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
pipe() {
|
|
64
|
+
return pipeArguments(this, arguments);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
function makeValueMatcher(provided, value) {
|
|
68
|
+
const matcher = Object.create(ValueMatcherProto);
|
|
69
|
+
matcher.provided = provided;
|
|
70
|
+
matcher.value = value;
|
|
71
|
+
return matcher;
|
|
72
|
+
}
|
|
73
|
+
var makeWhen = (guard, evaluate) => ({
|
|
74
|
+
_tag: "When",
|
|
75
|
+
guard,
|
|
76
|
+
evaluate
|
|
77
|
+
});
|
|
78
|
+
var makePredicate = (pattern) => {
|
|
79
|
+
if (typeof pattern === "function") {
|
|
80
|
+
return pattern;
|
|
81
|
+
} else if (Array.isArray(pattern)) {
|
|
82
|
+
const predicates = pattern.map(makePredicate);
|
|
83
|
+
const len = predicates.length;
|
|
84
|
+
return (u) => {
|
|
85
|
+
if (!Array.isArray(u)) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
for (let i = 0;i < len; i++) {
|
|
89
|
+
if (predicates[i](u[i]) === false) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return true;
|
|
94
|
+
};
|
|
95
|
+
} else if (pattern !== null && typeof pattern === "object") {
|
|
96
|
+
const keysAndPredicates = Reflect.ownKeys(pattern).map((key) => [key, makePredicate(pattern[key])]);
|
|
97
|
+
const len = keysAndPredicates.length;
|
|
98
|
+
return (u) => {
|
|
99
|
+
if (typeof u !== "object" || u === null) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
for (let i = 0;i < len; i++) {
|
|
103
|
+
const [key, predicate] = keysAndPredicates[i];
|
|
104
|
+
if (!(key in u) || predicate(u[key]) === false) {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return true;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
return (u) => u === pattern;
|
|
112
|
+
};
|
|
113
|
+
var value = (i) => makeValueMatcher(i, fail(i));
|
|
114
|
+
var when = (pattern, f) => (self) => self.add(makeWhen(makePredicate(pattern), f));
|
|
115
|
+
var discriminator = (field) => (...pattern) => {
|
|
116
|
+
const f = pattern[pattern.length - 1];
|
|
117
|
+
const values = pattern.slice(0, -1);
|
|
118
|
+
const pred = values.length === 1 ? (_) => _ != null && _[field] === values[0] : (_) => _ != null && values.includes(_[field]);
|
|
119
|
+
return (self) => self.add(makeWhen(pred, f));
|
|
120
|
+
};
|
|
121
|
+
var discriminators = (field) => (fields) => {
|
|
122
|
+
const predicate = makeWhen((arg) => arg != null && Object.hasOwn(fields, arg[field]), (data) => fields[data[field]](data));
|
|
123
|
+
return (self) => self.add(predicate);
|
|
124
|
+
};
|
|
125
|
+
var tag = /* @__PURE__ */ discriminator("_tag");
|
|
126
|
+
var tags2 = /* @__PURE__ */ discriminators("_tag");
|
|
127
|
+
var is = (...literals) => {
|
|
128
|
+
const len = literals.length;
|
|
129
|
+
return (u) => {
|
|
130
|
+
for (let i = 0;i < len; i++) {
|
|
131
|
+
if (u === literals[i]) {
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return false;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
var orElse2 = (f) => (self) => {
|
|
139
|
+
const toResult = result(self);
|
|
140
|
+
if (isResult(toResult)) {
|
|
141
|
+
return toResult._tag === "Success" ? toResult.success : f(toResult.failure);
|
|
142
|
+
}
|
|
143
|
+
return (...args) => {
|
|
144
|
+
const a = toResult(...args);
|
|
145
|
+
return isSuccess(a) ? a.success : f(a.failure, ...args);
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
var result = (self) => {
|
|
149
|
+
if (self._tag === "ValueMatcher") {
|
|
150
|
+
return self.value;
|
|
151
|
+
}
|
|
152
|
+
const len = self.cases.length;
|
|
153
|
+
if (len === 1) {
|
|
154
|
+
const _case = self.cases[0];
|
|
155
|
+
return (...args) => {
|
|
156
|
+
const input = self.select(...args);
|
|
157
|
+
if (_case._tag === "When" && _case.guard(input) === true) {
|
|
158
|
+
return succeed(_case.evaluate(input, ...args));
|
|
159
|
+
} else if (_case._tag === "Not" && _case.guard(input) === false) {
|
|
160
|
+
return succeed(_case.evaluate(input, ...args));
|
|
161
|
+
}
|
|
162
|
+
return fail(input);
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
return (...args) => {
|
|
166
|
+
const input = self.select(...args);
|
|
167
|
+
for (let i = 0;i < len; i++) {
|
|
168
|
+
const _case = self.cases[i];
|
|
169
|
+
if (_case._tag === "When" && _case.guard(input) === true) {
|
|
170
|
+
return succeed(_case.evaluate(input, ...args));
|
|
171
|
+
} else if (_case._tag === "Not" && _case.guard(input) === false) {
|
|
172
|
+
return succeed(_case.evaluate(input, ...args));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return fail(input);
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
var getExhaustiveAbsurdErrorMessage = "effect/match/Match/exhaustive: absurd";
|
|
179
|
+
var exhaustive2 = (self) => {
|
|
180
|
+
const toResult = result(self);
|
|
181
|
+
if (isResult(toResult)) {
|
|
182
|
+
if (isSuccess(toResult)) {
|
|
183
|
+
return toResult.success;
|
|
184
|
+
}
|
|
185
|
+
throw new Error(getExhaustiveAbsurdErrorMessage);
|
|
186
|
+
}
|
|
187
|
+
return (...args) => {
|
|
188
|
+
const result = toResult(...args);
|
|
189
|
+
if (isSuccess(result)) {
|
|
190
|
+
return result.success;
|
|
191
|
+
}
|
|
192
|
+
throw new Error(getExhaustiveAbsurdErrorMessage);
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
// node_modules/effect/dist/Match.js
|
|
197
|
+
var value2 = value;
|
|
198
|
+
var when2 = when;
|
|
199
|
+
var tag2 = tag;
|
|
200
|
+
var tags = tags2;
|
|
201
|
+
var is2 = is;
|
|
202
|
+
var orElse = orElse2;
|
|
203
|
+
var exhaustive = exhaustive2;
|
|
204
|
+
|
|
205
|
+
export { Clock, currentTimeMillis2, value2, when2, tag2, tags, is2, orElse, exhaustive };
|