apps 0.0.1-beta.142 → 0.0.1-beta.144
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/check-publish.mjs +0 -1
- package/framework-reference.json +1 -1
- package/js/{chunk-I6QAWNUM.js → chunk-2OGVSUNI.js} +2 -2
- package/js/{chunk-RIOLCZAV.js → chunk-455CCO6Q.js} +9 -17
- package/js/{chunk-W2C3IOZJ.js → chunk-5MEOL2SG.js} +32 -29
- package/js/{chunk-PQKQIH3T.js → chunk-6NRWFVK2.js} +10 -31
- package/js/{chunk-WZ36P57R.js → chunk-6OWHQINS.js} +11 -16
- package/js/{chunk-LSOHA2RH.js → chunk-6XBOKQ4E.js} +1 -1
- package/js/{chunk-H2K7OZ47.js → chunk-7A4ZSEM3.js} +1 -1
- package/js/{chunk-QTX7OUFH.js → chunk-A6FRLRCN.js} +2 -3
- package/js/{chunk-ZQVWMEH6.js → chunk-AFEMXP3F.js} +6 -7
- package/js/{chunk-Z5O7ON6S.js → chunk-B2PSDMZP.js} +2 -2
- package/js/{chunk-Q7PE4PLU.js → chunk-B4JN2A6F.js} +3 -3
- package/js/{chunk-VX36SA7Y.js → chunk-BHSWVS3Q.js} +1 -1
- package/js/{chunk-APPCHQHK.js → chunk-BU3UOD2T.js} +4 -4
- package/js/{chunk-HMYAZUNZ.js → chunk-EXL6F456.js} +6 -4
- package/js/{chunk-6QZVXLF2.js → chunk-INQON4A2.js} +2 -2
- package/js/{chunk-MB6L5YZE.js → chunk-IWLFLMIL.js} +1 -1
- package/js/{chunk-EKXBHVMR.js → chunk-JLHRRTRH.js} +8 -15
- package/js/{chunk-YFSOSNF3.js → chunk-NXEGROI6.js} +116 -116
- package/js/{chunk-ICIVU5SQ.js → chunk-OFSXKKD6.js} +27 -42
- package/js/{chunk-63DHI5Y4.js → chunk-QDF7PQAD.js} +6 -8
- package/js/{chunk-YVN2AMAU.js → chunk-QLUWYCOT.js} +2 -2
- package/js/{chunk-JH3MOQZR.js → chunk-T4MICYGT.js} +10 -51
- package/js/{chunk-OBT33ZDK.js → chunk-TMYRAFMC.js} +3 -3
- package/js/{chunk-2XDCAXAR.js → chunk-W6V5OIHB.js} +1 -1
- package/js/{chunk-34RH47V5.js → chunk-XR7KZNKD.js} +2 -2
- package/js/client.js +10 -15
- package/js/contracts.js +9 -7
- package/js/effect.js +18 -18
- package/js/graphql.js +20 -22
- package/js/host.js +18 -20
- package/js/index.js +14 -19
- package/js/mcp/effect.js +19 -19
- package/js/mcp.js +21 -21
- package/js/openapi.js +18 -25
- package/js/react.js +2 -2
- package/js/skills/effect.js +6 -6
- package/js/skills.js +21 -27
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +5 -5
- package/js/ui/serving.js +10 -10
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/index.d.ts +1 -40
- package/types/app-data/src/contracts/database.d.ts +0 -21
- package/types/apps/src/contracts/host.d.ts +6 -0
- package/types/telemetry/src/app-records.d.ts +0 -24
- package/types/telemetry/src/browser-operations.d.ts +0 -8
- package/types/telemetry/src/browser-performance.d.ts +0 -2
- package/types/telemetry/src/browser-request-timing.d.ts +0 -1
- package/types/telemetry/src/browser.d.ts +0 -10
- package/types/telemetry/src/config.d.ts +0 -8
- package/types/telemetry/src/context.d.ts +0 -6
- package/types/telemetry/src/index.d.ts +0 -1
- package/types/telemetry/src/keepalive.d.ts +0 -44
- package/types/telemetry/src/layer.d.ts +0 -8
- package/types/telemetry/src/measurements.d.ts +0 -8
- package/types/telemetry/src/ownership.d.ts +0 -45
- package/types/telemetry/src/pending-span.d.ts +0 -2
- package/types/telemetry/src/recorded-failure.d.ts +0 -26
- package/types/telemetry/src/relay.d.ts +0 -29
- package/types/telemetry/src/span-attributes.d.ts +0 -38
- package/types/telemetry/src/trace-context.d.ts +0 -6
- package/types/telemetry/src/transport.d.ts +0 -10
- package/types/utils/src/api-error.d.ts +0 -22
- package/types/utils/src/connection-failure.d.ts +0 -10
- package/types/utils/src/random-uuid.d.ts +0 -5
- package/types/utils/src/recorded-message.d.ts +0 -15
- package/types/utils/src/schema-definitions.d.ts +0 -6
- package/types/utils/src/user-facing-error.d.ts +0 -19
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DeclarationInvalid,
|
|
3
3
|
JsonObject,
|
|
4
4
|
ValidationError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7A4ZSEM3.js";
|
|
6
6
|
import {
|
|
7
7
|
Cause_exports,
|
|
8
8
|
Effect_exports,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
SchemaIssue_exports,
|
|
12
12
|
SchemaParser_exports,
|
|
13
13
|
Schema_exports
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NXEGROI6.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/.bun/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js
|
|
17
17
|
function deepCompareStrict(a, b) {
|
|
@@ -1186,7 +1186,6 @@ function object(fields) {
|
|
|
1186
1186
|
]
|
|
1187
1187
|
);
|
|
1188
1188
|
const decoder = entries.length === 0 ? withJsonSchemaDocument(
|
|
1189
|
-
// Native Struct({}) accepts every non-null value and retains undeclared fields.
|
|
1190
1189
|
Schema_exports.Record(Schema_exports.String, Schema_exports.Unknown).pipe(
|
|
1191
1190
|
Schema_exports.decodeTo(Schema_exports.Record(Schema_exports.String, Schema_exports.Never), {
|
|
1192
1191
|
decode: SchemaGetter_exports.transform(() => ({})),
|
|
@@ -1199,15 +1198,12 @@ function object(fields) {
|
|
|
1199
1198
|
}
|
|
1200
1199
|
var Exposure = /* @__PURE__ */ Symbol("apps.FieldExposure");
|
|
1201
1200
|
var exposureOf = (schema) => Exposure in schema && (schema[Exposure] === "plain" || schema[Exposure] === "raw") ? schema[Exposure] : void 0;
|
|
1202
|
-
var expose = (schema, exposure) => (
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
default: (value) => expose(schema.default(value), exposure)
|
|
1209
|
-
}
|
|
1210
|
-
);
|
|
1201
|
+
var expose = (schema, exposure) => ({
|
|
1202
|
+
...schema,
|
|
1203
|
+
[Exposure]: exposure,
|
|
1204
|
+
optional: () => expose(schema.optional(), exposure),
|
|
1205
|
+
default: (value) => expose(schema.default(value), exposure)
|
|
1206
|
+
});
|
|
1211
1207
|
var plain = (schema) => expose(schema, "plain");
|
|
1212
1208
|
var raw = (schema) => expose(schema, "raw");
|
|
1213
1209
|
var fieldExposure = (fields) => Object.fromEntries(
|
|
@@ -1635,8 +1631,6 @@ var constraintProblem = (keyword, node) => {
|
|
|
1635
1631
|
if (keyword === "uniqueItems") return "Expected an array without repeated items";
|
|
1636
1632
|
if (typeof value !== "number") return void 0;
|
|
1637
1633
|
switch (keyword) {
|
|
1638
|
-
// Draft 4's boolean `exclusiveMinimum` is not applied: imported schemas validate as draft 7
|
|
1639
|
-
// or 2020-12, where `minimum` and `maximum` always include their bound.
|
|
1640
1634
|
case "minimum":
|
|
1641
1635
|
return `Expected a number of at least ${value}`;
|
|
1642
1636
|
case "maximum":
|
|
@@ -1952,7 +1946,6 @@ var lazyCompiledDecoder = (document) => {
|
|
|
1952
1946
|
let compiled;
|
|
1953
1947
|
const compile = Effect_exports.suspend(
|
|
1954
1948
|
() => compiled ?? compileJsonSchemaDecoder(read()).pipe(
|
|
1955
|
-
// An interrupted compilation is not a result; the next decode compiles again.
|
|
1956
1949
|
Effect_exports.onExit(
|
|
1957
1950
|
(exit) => Effect_exports.sync(() => {
|
|
1958
1951
|
if (Exit_exports.isSuccess(exit) || !Cause_exports.hasInterrupts(exit.cause)) compiled = exit;
|
|
@@ -2356,31 +2356,36 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
|
|
|
2356
2356
|
defaultValue: () => false
|
|
2357
2357
|
});
|
|
2358
2358
|
|
|
2359
|
-
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/
|
|
2360
|
-
var
|
|
2361
|
-
__export(
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
completeWith: () => completeWith,
|
|
2359
|
+
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Exit.js
|
|
2360
|
+
var Exit_exports = {};
|
|
2361
|
+
__export(Exit_exports, {
|
|
2362
|
+
asVoid: () => asVoid3,
|
|
2363
|
+
asVoidAll: () => asVoidAll,
|
|
2365
2364
|
die: () => die2,
|
|
2366
|
-
dieSync: () => dieSync,
|
|
2367
|
-
done: () => done2,
|
|
2368
|
-
doneUnsafe: () => doneUnsafe,
|
|
2369
2365
|
fail: () => fail4,
|
|
2370
2366
|
failCause: () => failCause2,
|
|
2371
|
-
|
|
2372
|
-
|
|
2367
|
+
filterCause: () => filterCause,
|
|
2368
|
+
filterFailure: () => filterFailure,
|
|
2369
|
+
filterSuccess: () => filterSuccess,
|
|
2370
|
+
filterValue: () => filterValue,
|
|
2371
|
+
findDefect: () => findDefect2,
|
|
2372
|
+
findError: () => findError2,
|
|
2373
|
+
findErrorOption: () => findErrorOption2,
|
|
2374
|
+
getCause: () => getCause,
|
|
2375
|
+
getSuccess: () => getSuccess4,
|
|
2376
|
+
hasDies: () => hasDies2,
|
|
2377
|
+
hasFails: () => hasFails2,
|
|
2378
|
+
hasInterrupts: () => hasInterrupts2,
|
|
2373
2379
|
interrupt: () => interrupt2,
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
poll: () => poll,
|
|
2380
|
+
isExit: () => isExit2,
|
|
2381
|
+
isFailure: () => isFailure4,
|
|
2382
|
+
isSuccess: () => isSuccess4,
|
|
2383
|
+
map: () => map6,
|
|
2384
|
+
mapBoth: () => mapBoth3,
|
|
2385
|
+
mapError: () => mapError3,
|
|
2386
|
+
match: () => match5,
|
|
2382
2387
|
succeed: () => succeed4,
|
|
2383
|
-
|
|
2388
|
+
void: () => void_4
|
|
2384
2389
|
});
|
|
2385
2390
|
|
|
2386
2391
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/internal/array.js
|
|
@@ -6839,7 +6844,61 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
|
|
|
6839
6844
|
reporters.forEach((reporter) => reporter.report(opts));
|
|
6840
6845
|
};
|
|
6841
6846
|
|
|
6847
|
+
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Exit.js
|
|
6848
|
+
var isExit2 = isExit;
|
|
6849
|
+
var succeed4 = exitSucceed;
|
|
6850
|
+
var failCause2 = exitFailCause;
|
|
6851
|
+
var fail4 = exitFail;
|
|
6852
|
+
var die2 = exitDie;
|
|
6853
|
+
var interrupt2 = exitInterrupt;
|
|
6854
|
+
var void_4 = exitVoid;
|
|
6855
|
+
var isSuccess4 = exitIsSuccess;
|
|
6856
|
+
var isFailure4 = exitIsFailure;
|
|
6857
|
+
var hasFails2 = exitHasFails;
|
|
6858
|
+
var hasDies2 = exitHasDies;
|
|
6859
|
+
var hasInterrupts2 = exitHasInterrupts;
|
|
6860
|
+
var filterSuccess = exitFilterSuccess;
|
|
6861
|
+
var filterValue = exitFilterValue;
|
|
6862
|
+
var filterFailure = exitFilterFailure;
|
|
6863
|
+
var filterCause = exitFilterCause;
|
|
6864
|
+
var findError2 = exitFindError;
|
|
6865
|
+
var findDefect2 = exitFindDefect;
|
|
6866
|
+
var match5 = exitMatch;
|
|
6867
|
+
var map6 = exitMap;
|
|
6868
|
+
var mapError3 = exitMapError;
|
|
6869
|
+
var mapBoth3 = exitMapBoth;
|
|
6870
|
+
var asVoid3 = exitAsVoid;
|
|
6871
|
+
var asVoidAll = exitAsVoidAll;
|
|
6872
|
+
var getSuccess4 = exitGetSuccess;
|
|
6873
|
+
var getCause = exitGetCause;
|
|
6874
|
+
var findErrorOption2 = exitFindErrorOption;
|
|
6875
|
+
|
|
6842
6876
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Deferred.js
|
|
6877
|
+
var Deferred_exports = {};
|
|
6878
|
+
__export(Deferred_exports, {
|
|
6879
|
+
await: () => _await,
|
|
6880
|
+
complete: () => complete,
|
|
6881
|
+
completeWith: () => completeWith,
|
|
6882
|
+
die: () => die3,
|
|
6883
|
+
dieSync: () => dieSync,
|
|
6884
|
+
done: () => done2,
|
|
6885
|
+
doneUnsafe: () => doneUnsafe,
|
|
6886
|
+
fail: () => fail5,
|
|
6887
|
+
failCause: () => failCause3,
|
|
6888
|
+
failCauseSync: () => failCauseSync2,
|
|
6889
|
+
failSync: () => failSync2,
|
|
6890
|
+
interrupt: () => interrupt3,
|
|
6891
|
+
interruptWith: () => interruptWith,
|
|
6892
|
+
into: () => into,
|
|
6893
|
+
isDeferred: () => isDeferred,
|
|
6894
|
+
isDone: () => isDone2,
|
|
6895
|
+
isDoneUnsafe: () => isDoneUnsafe,
|
|
6896
|
+
make: () => make8,
|
|
6897
|
+
makeUnsafe: () => makeUnsafe2,
|
|
6898
|
+
poll: () => poll,
|
|
6899
|
+
succeed: () => succeed5,
|
|
6900
|
+
sync: () => sync2
|
|
6901
|
+
});
|
|
6843
6902
|
var TypeId5 = "~effect/Deferred";
|
|
6844
6903
|
var isDeferred = (u) => hasProperty(u, TypeId5);
|
|
6845
6904
|
var DeferredProto = {
|
|
@@ -6872,21 +6931,21 @@ var _await = (self) => callback((resume) => {
|
|
|
6872
6931
|
var complete = /* @__PURE__ */ dual(2, (self, effect2) => suspend(() => self.effect ? succeed3(false) : into(effect2, self)));
|
|
6873
6932
|
var completeWith = /* @__PURE__ */ dual(2, (self, effect2) => sync(() => doneUnsafe(self, effect2)));
|
|
6874
6933
|
var done2 = completeWith;
|
|
6875
|
-
var
|
|
6876
|
-
var failSync2 = /* @__PURE__ */ dual(2, (self, evaluate2) => suspend(() =>
|
|
6877
|
-
var
|
|
6878
|
-
var failCauseSync2 = /* @__PURE__ */ dual(2, (self, evaluate2) => suspend(() =>
|
|
6879
|
-
var
|
|
6880
|
-
var dieSync = /* @__PURE__ */ dual(2, (self, evaluate2) => suspend(() =>
|
|
6881
|
-
var
|
|
6882
|
-
var interruptWith = /* @__PURE__ */ dual(2, (self, fiberId3) =>
|
|
6934
|
+
var fail5 = /* @__PURE__ */ dual(2, (self, error) => done2(self, exitFail(error)));
|
|
6935
|
+
var failSync2 = /* @__PURE__ */ dual(2, (self, evaluate2) => suspend(() => fail5(self, evaluate2())));
|
|
6936
|
+
var failCause3 = /* @__PURE__ */ dual(2, (self, cause) => done2(self, exitFailCause(cause)));
|
|
6937
|
+
var failCauseSync2 = /* @__PURE__ */ dual(2, (self, evaluate2) => suspend(() => failCause3(self, evaluate2())));
|
|
6938
|
+
var die3 = /* @__PURE__ */ dual(2, (self, defect) => done2(self, exitDie(defect)));
|
|
6939
|
+
var dieSync = /* @__PURE__ */ dual(2, (self, evaluate2) => suspend(() => die3(self, evaluate2())));
|
|
6940
|
+
var interrupt3 = (self) => withFiber((fiber3) => interruptWith(self, fiber3.id));
|
|
6941
|
+
var interruptWith = /* @__PURE__ */ dual(2, (self, fiberId3) => failCause3(self, causeInterrupt(fiberId3)));
|
|
6883
6942
|
var isDone2 = (self) => sync(() => isDoneUnsafe(self));
|
|
6884
6943
|
var isDoneUnsafe = (self) => self.effect !== void 0;
|
|
6885
6944
|
function poll(self) {
|
|
6886
6945
|
return sync(() => fromUndefinedOr(self.effect));
|
|
6887
6946
|
}
|
|
6888
|
-
var
|
|
6889
|
-
var sync2 = /* @__PURE__ */ dual(2, (self, evaluate2) => suspend(() =>
|
|
6947
|
+
var succeed5 = /* @__PURE__ */ dual(2, (self, value6) => done2(self, exitSucceed(value6)));
|
|
6948
|
+
var sync2 = /* @__PURE__ */ dual(2, (self, evaluate2) => suspend(() => succeed5(self, evaluate2())));
|
|
6890
6949
|
var doneUnsafe = (self, effect2) => {
|
|
6891
6950
|
if (self.effect) return false;
|
|
6892
6951
|
self.effect = effect2;
|
|
@@ -7150,65 +7209,6 @@ __export(Effect_exports, {
|
|
|
7150
7209
|
zipWith: () => zipWith3
|
|
7151
7210
|
});
|
|
7152
7211
|
|
|
7153
|
-
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Exit.js
|
|
7154
|
-
var Exit_exports = {};
|
|
7155
|
-
__export(Exit_exports, {
|
|
7156
|
-
asVoid: () => asVoid3,
|
|
7157
|
-
asVoidAll: () => asVoidAll,
|
|
7158
|
-
die: () => die3,
|
|
7159
|
-
fail: () => fail5,
|
|
7160
|
-
failCause: () => failCause3,
|
|
7161
|
-
filterCause: () => filterCause,
|
|
7162
|
-
filterFailure: () => filterFailure,
|
|
7163
|
-
filterSuccess: () => filterSuccess,
|
|
7164
|
-
filterValue: () => filterValue,
|
|
7165
|
-
findDefect: () => findDefect2,
|
|
7166
|
-
findError: () => findError2,
|
|
7167
|
-
findErrorOption: () => findErrorOption2,
|
|
7168
|
-
getCause: () => getCause,
|
|
7169
|
-
getSuccess: () => getSuccess4,
|
|
7170
|
-
hasDies: () => hasDies2,
|
|
7171
|
-
hasFails: () => hasFails2,
|
|
7172
|
-
hasInterrupts: () => hasInterrupts2,
|
|
7173
|
-
interrupt: () => interrupt3,
|
|
7174
|
-
isExit: () => isExit2,
|
|
7175
|
-
isFailure: () => isFailure4,
|
|
7176
|
-
isSuccess: () => isSuccess4,
|
|
7177
|
-
map: () => map6,
|
|
7178
|
-
mapBoth: () => mapBoth3,
|
|
7179
|
-
mapError: () => mapError3,
|
|
7180
|
-
match: () => match5,
|
|
7181
|
-
succeed: () => succeed5,
|
|
7182
|
-
void: () => void_4
|
|
7183
|
-
});
|
|
7184
|
-
var isExit2 = isExit;
|
|
7185
|
-
var succeed5 = exitSucceed;
|
|
7186
|
-
var failCause3 = exitFailCause;
|
|
7187
|
-
var fail5 = exitFail;
|
|
7188
|
-
var die3 = exitDie;
|
|
7189
|
-
var interrupt3 = exitInterrupt;
|
|
7190
|
-
var void_4 = exitVoid;
|
|
7191
|
-
var isSuccess4 = exitIsSuccess;
|
|
7192
|
-
var isFailure4 = exitIsFailure;
|
|
7193
|
-
var hasFails2 = exitHasFails;
|
|
7194
|
-
var hasDies2 = exitHasDies;
|
|
7195
|
-
var hasInterrupts2 = exitHasInterrupts;
|
|
7196
|
-
var filterSuccess = exitFilterSuccess;
|
|
7197
|
-
var filterValue = exitFilterValue;
|
|
7198
|
-
var filterFailure = exitFilterFailure;
|
|
7199
|
-
var filterCause = exitFilterCause;
|
|
7200
|
-
var findError2 = exitFindError;
|
|
7201
|
-
var findDefect2 = exitFindDefect;
|
|
7202
|
-
var match5 = exitMatch;
|
|
7203
|
-
var map6 = exitMap;
|
|
7204
|
-
var mapError3 = exitMapError;
|
|
7205
|
-
var mapBoth3 = exitMapBoth;
|
|
7206
|
-
var asVoid3 = exitAsVoid;
|
|
7207
|
-
var asVoidAll = exitAsVoidAll;
|
|
7208
|
-
var getSuccess4 = exitGetSuccess;
|
|
7209
|
-
var getCause = exitGetCause;
|
|
7210
|
-
var findErrorOption2 = exitFindErrorOption;
|
|
7211
|
-
|
|
7212
7212
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Layer.js
|
|
7213
7213
|
var Layer_exports = {};
|
|
7214
7214
|
__export(Layer_exports, {
|
|
@@ -8902,7 +8902,7 @@ var filterDoneLeftover = (cause) => {
|
|
|
8902
8902
|
};
|
|
8903
8903
|
var doneExitFromCause = (cause) => {
|
|
8904
8904
|
const halt = filterDone(cause);
|
|
8905
|
-
return !isFailure2(halt) ?
|
|
8905
|
+
return !isFailure2(halt) ? succeed4(halt.success.value) : failCause2(halt.failure);
|
|
8906
8906
|
};
|
|
8907
8907
|
var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(self, {
|
|
8908
8908
|
onSuccess: options.onSuccess,
|
|
@@ -15654,7 +15654,7 @@ __export(SchemaIssue_exports, {
|
|
|
15654
15654
|
|
|
15655
15655
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/internal/schema/parser.js
|
|
15656
15656
|
var missing = /* @__PURE__ */ Symbol.for("effect/schema/parser/missing");
|
|
15657
|
-
var succeed8 =
|
|
15657
|
+
var succeed8 = succeed4;
|
|
15658
15658
|
var missingExit = /* @__PURE__ */ succeed8(missing);
|
|
15659
15659
|
var sameExit = /* @__PURE__ */ Object.assign(/* @__PURE__ */ succeed8(missing), {
|
|
15660
15660
|
[missing]: true
|
|
@@ -17543,7 +17543,7 @@ function stepArray(s, item, exit3, i) {
|
|
|
17543
17543
|
if (s.issues) s.issues.push(issue);
|
|
17544
17544
|
else s.issues = [issue];
|
|
17545
17545
|
} else {
|
|
17546
|
-
return
|
|
17546
|
+
return fail4(new Composite(s.ast, [issue], s.input, s.options));
|
|
17547
17547
|
}
|
|
17548
17548
|
}
|
|
17549
17549
|
}
|
|
@@ -17562,14 +17562,14 @@ var wrapPropertyKeyIssue = (s, ast, key5, exit3) => {
|
|
|
17562
17562
|
}
|
|
17563
17563
|
const issue = getSchemaIssue(exit3.cause);
|
|
17564
17564
|
if (issue === void 0) {
|
|
17565
|
-
return
|
|
17565
|
+
return failCause2(map7(exit3.cause, (issue2) => new Composite(ast, [new Pointer([key5], issue2)], s.input, s.options)));
|
|
17566
17566
|
}
|
|
17567
17567
|
const pointer = new Pointer([key5], issue);
|
|
17568
17568
|
if (s.options.errors === "all") {
|
|
17569
17569
|
if (s.issues) s.issues.push(pointer);
|
|
17570
17570
|
else s.issues = [pointer];
|
|
17571
17571
|
} else {
|
|
17572
|
-
return
|
|
17572
|
+
return fail4(new Composite(ast, [pointer], s.input, s.options));
|
|
17573
17573
|
}
|
|
17574
17574
|
};
|
|
17575
17575
|
var FINITE_PATTERN = "[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?";
|
|
@@ -17907,7 +17907,7 @@ function stepProperty(s, p, exit3) {
|
|
|
17907
17907
|
else s.issues = [issue];
|
|
17908
17908
|
return;
|
|
17909
17909
|
} else {
|
|
17910
|
-
return
|
|
17910
|
+
return fail4(new Composite(s.ast, [issue], s.input, s.options));
|
|
17911
17911
|
}
|
|
17912
17912
|
}
|
|
17913
17913
|
}
|
|
@@ -18286,8 +18286,8 @@ var Union = class extends ASTNodeImpl {
|
|
|
18286
18286
|
};
|
|
18287
18287
|
function failSingleUnionCandidate(ast, cause, input, options) {
|
|
18288
18288
|
const issue = getSchemaIssue(cause);
|
|
18289
|
-
if (!issue) return
|
|
18290
|
-
return
|
|
18289
|
+
if (!issue) return failCause2(cause);
|
|
18290
|
+
return fail4(new AnyOf(ast, [issue], input, options));
|
|
18291
18291
|
}
|
|
18292
18292
|
function catchSingleUnionCandidate(ast, result6, input, options) {
|
|
18293
18293
|
return catchCause3(result6, (cause) => failSingleUnionCandidate(ast, cause, input, options));
|
|
@@ -18336,7 +18336,7 @@ var parseUnion = /* @__PURE__ */ iterateEager()({
|
|
|
18336
18336
|
} else {
|
|
18337
18337
|
if (s.out && s.successes) {
|
|
18338
18338
|
s.successes.push(s.ast.types[i]);
|
|
18339
|
-
return
|
|
18339
|
+
return fail4(new OneOf(s.ast, s.successes, s.input, s.options));
|
|
18340
18340
|
}
|
|
18341
18341
|
s.out = exit3;
|
|
18342
18342
|
if (s.successes) {
|
|
@@ -24348,7 +24348,7 @@ function fromIssueEffect(self) {
|
|
|
24348
24348
|
return catchCause3(self, (cause) => failCauseSync3(() => map7(cause, (issue) => new SchemaError(issue))));
|
|
24349
24349
|
}
|
|
24350
24350
|
function fromIssueExit(exit3) {
|
|
24351
|
-
return isSuccess4(exit3) ? exit3 :
|
|
24351
|
+
return isSuccess4(exit3) ? exit3 : failCause2(map7(exit3.cause, (issue) => new SchemaError(issue)));
|
|
24352
24352
|
}
|
|
24353
24353
|
function getSchemaErrorOrThrow(cause, message) {
|
|
24354
24354
|
let schemaError;
|
|
@@ -27535,12 +27535,12 @@ function Exit(value6, error, defect) {
|
|
|
27535
27535
|
switch (input._tag) {
|
|
27536
27536
|
case "Success":
|
|
27537
27537
|
return mapBothEager2(decodeUnknownEffect(value7)(input.value, options), {
|
|
27538
|
-
onSuccess:
|
|
27538
|
+
onSuccess: succeed4,
|
|
27539
27539
|
onFailure: (issue) => makeCompositeAtKey(ast, "value", issue, input, options)
|
|
27540
27540
|
});
|
|
27541
27541
|
case "Failure":
|
|
27542
27542
|
return mapBothEager2(decodeUnknownEffect(cause)(input.cause, options), {
|
|
27543
|
-
onSuccess:
|
|
27543
|
+
onSuccess: failCause2,
|
|
27544
27544
|
onFailure: (issue) => makeCompositeAtKey(ast, "cause", issue, input, options)
|
|
27545
27545
|
});
|
|
27546
27546
|
}
|
|
@@ -27565,7 +27565,7 @@ function Exit(value6, error, defect) {
|
|
|
27565
27565
|
_tag: Literal2("Failure"),
|
|
27566
27566
|
cause: Cause(error2, defect2)
|
|
27567
27567
|
})]), transform3({
|
|
27568
|
-
decode: (e) => e._tag === "Success" ?
|
|
27568
|
+
decode: (e) => e._tag === "Success" ? succeed4(e.value) : failCause2(e.cause),
|
|
27569
27569
|
encode: (exit3) => isSuccess4(exit3) ? {
|
|
27570
27570
|
_tag: "Success",
|
|
27571
27571
|
value: exit3.value
|
|
@@ -28909,7 +28909,7 @@ var makeAtomicUnbounded = (options) => {
|
|
|
28909
28909
|
};
|
|
28910
28910
|
var shutdown = (self) => uninterruptible2(withFiber2((fiber3) => {
|
|
28911
28911
|
set7(self.shutdownFlag, true);
|
|
28912
|
-
return close(self.scope,
|
|
28912
|
+
return close(self.scope, interrupt2(fiber3.id)).pipe(andThen4(self.strategy.shutdown), when2(self.shutdownHook.open), asVoid4);
|
|
28913
28913
|
}));
|
|
28914
28914
|
var end = /* @__PURE__ */ dual(2, (self, value6) => sync4(() => endUnsafe(self, value6)));
|
|
28915
28915
|
var endUnsafe = /* @__PURE__ */ dual(2, (self, value6) => {
|
|
@@ -28917,10 +28917,10 @@ var endUnsafe = /* @__PURE__ */ dual(2, (self, value6) => {
|
|
|
28917
28917
|
set7(self.ended, some3(value6));
|
|
28918
28918
|
if (self.strategy instanceof BackPressureStrategy) {
|
|
28919
28919
|
for (const [_, deferred, last] of takeAll(self.strategy.publishers)) {
|
|
28920
|
-
if (last) doneUnsafe(deferred,
|
|
28920
|
+
if (last) doneUnsafe(deferred, succeed4(false));
|
|
28921
28921
|
}
|
|
28922
28922
|
}
|
|
28923
|
-
const exit3 =
|
|
28923
|
+
const exit3 = succeed4(value6);
|
|
28924
28924
|
for (const pollersSet of self.subscribers.values()) {
|
|
28925
28925
|
for (const pollers of pollersSet) {
|
|
28926
28926
|
let poller;
|
|
@@ -29779,7 +29779,7 @@ var BackPressureStrategy = class {
|
|
|
29779
29779
|
const published = pubsub.publish(value6);
|
|
29780
29780
|
if (!published) prepend(this.publishers, publisher);
|
|
29781
29781
|
this.completeSubscribersUnsafe(pubsub, subscribers);
|
|
29782
|
-
if (published && last) doneUnsafe(deferred,
|
|
29782
|
+
if (published && last) doneUnsafe(deferred, succeed4(true));
|
|
29783
29783
|
}
|
|
29784
29784
|
}
|
|
29785
29785
|
}
|
|
@@ -29878,7 +29878,7 @@ var strategyCompletePollersUnsafe = (strategy, pubsub, subscribers, subscription
|
|
|
29878
29878
|
if (pollResult === Empty) {
|
|
29879
29879
|
prepend(pollers, poller);
|
|
29880
29880
|
} else {
|
|
29881
|
-
doneUnsafe(poller,
|
|
29881
|
+
doneUnsafe(poller, succeed4(pollResult));
|
|
29882
29882
|
strategy.onPubSubEmptySpaceUnsafe(pubsub, subscribers);
|
|
29883
29883
|
}
|
|
29884
29884
|
}
|
|
@@ -30820,7 +30820,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced2
|
|
|
30820
30820
|
return offer(effects, join(fiber3));
|
|
30821
30821
|
}), forever4({
|
|
30822
30822
|
disableYield: true
|
|
30823
|
-
}), catchCause3((cause) => offer(effects,
|
|
30823
|
+
}), catchCause3((cause) => offer(effects, failCause2(cause)).pipe(andThen4(failCause5(effects, cause)))), forkIn2(forkedScope));
|
|
30824
30824
|
}
|
|
30825
30825
|
return take3(queue);
|
|
30826
30826
|
}));
|
|
@@ -30880,7 +30880,7 @@ var orElseIfEmpty = /* @__PURE__ */ dual(2, (self, f) => fromTransform((upstream
|
|
|
30880
30880
|
const next2 = pull.pipe(tap6(() => {
|
|
30881
30881
|
currentPull = pull;
|
|
30882
30882
|
return void_5;
|
|
30883
|
-
}), catchDone((leftover) => close(forkedScope,
|
|
30883
|
+
}), catchDone((leftover) => close(forkedScope, succeed4(leftover)).pipe(andThen4(toTransform(f(leftover))(upstream, scope3)), flatMap5((pull2) => {
|
|
30884
30884
|
currentPull = pull2;
|
|
30885
30885
|
return pull2;
|
|
30886
30886
|
}))));
|
|
@@ -31039,7 +31039,7 @@ var catchCause4 = /* @__PURE__ */ dual(2, (self, f) => fromTransform((upstream,
|
|
|
31039
31039
|
}
|
|
31040
31040
|
const toClose = forkedScope;
|
|
31041
31041
|
forkedScope = forkUnsafe2(scope3);
|
|
31042
|
-
return close(toClose,
|
|
31042
|
+
return close(toClose, failCause2(cause)).pipe(andThen4(toTransform(f(cause))(upstream, forkedScope)), flatMap5((childPull) => {
|
|
31043
31043
|
currentPull = childPull;
|
|
31044
31044
|
return childPull;
|
|
31045
31045
|
}));
|
|
@@ -31161,7 +31161,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
|
|
|
31161
31161
|
fibers.delete(fiber4);
|
|
31162
31162
|
if (fibers.size === 0) yield* doneLatch.open;
|
|
31163
31163
|
yield* interrupt6(fiber4);
|
|
31164
|
-
yield* ignoreCause2(close(fiberScope,
|
|
31164
|
+
yield* ignoreCause2(close(fiberScope, interrupt2()));
|
|
31165
31165
|
}
|
|
31166
31166
|
const fiber3 = yield* childPull.pipe(tap6(() => yieldNow2), flatMap5((value6) => offer(queue, value6)), forever4({
|
|
31167
31167
|
disableYield: true
|
|
@@ -33034,7 +33034,7 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
|
|
|
33034
33034
|
}
|
|
33035
33035
|
return upstream;
|
|
33036
33036
|
}).pipe(catch_3((error) => {
|
|
33037
|
-
done4 =
|
|
33037
|
+
done4 = fail4(error);
|
|
33038
33038
|
return done3();
|
|
33039
33039
|
}));
|
|
33040
33040
|
const pull = map9(suspend3(() => sink.transform(upstreamWithLeftover, scope3)), ([value6, leftover_]) => {
|
|
@@ -33440,7 +33440,7 @@ var toAsyncIterableWith = /* @__PURE__ */ dual(2, (self, context3) => ({
|
|
|
33440
33440
|
return close2(void_4);
|
|
33441
33441
|
},
|
|
33442
33442
|
async throw(error) {
|
|
33443
|
-
await closeAndReportError(
|
|
33443
|
+
await closeAndReportError(die2(error));
|
|
33444
33444
|
throw error;
|
|
33445
33445
|
}
|
|
33446
33446
|
};
|
|
@@ -34866,9 +34866,9 @@ export {
|
|
|
34866
34866
|
StackTrace,
|
|
34867
34867
|
Cause_exports,
|
|
34868
34868
|
isExit2 as isExit,
|
|
34869
|
-
|
|
34870
|
-
|
|
34871
|
-
|
|
34869
|
+
succeed4 as succeed2,
|
|
34870
|
+
failCause2 as failCause,
|
|
34871
|
+
fail4 as fail3,
|
|
34872
34872
|
void_4 as void_,
|
|
34873
34873
|
isSuccess4 as isSuccess2,
|
|
34874
34874
|
isFailure4 as isFailure2,
|