apps 0.0.1-beta.9 → 0.0.1-beta.91
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/README.md +56 -38
- package/framework-reference.json +1 -1
- package/js/chunk-3LEVTFD4.js +712 -0
- package/js/chunk-5FHWNLCI.js +88 -0
- package/js/{chunk-FL2QR3XW.js → chunk-5MDA7MKL.js} +338 -73
- package/js/chunk-6XQLA5NC.js +5047 -0
- package/js/{chunk-M3B3DE4K.js → chunk-74YVXBKY.js} +463 -218
- package/js/chunk-7PHHWYV4.js +335 -0
- package/js/chunk-DADXWWRZ.js +449 -0
- package/js/{chunk-27F7W2LG.js → chunk-DDHBUKXX.js} +18 -2
- package/js/{chunk-UK573G7W.js → chunk-EOPQ727L.js} +87 -51
- package/js/{chunk-5T57N25Q.js → chunk-GQ33QSNB.js} +583 -69
- package/js/{chunk-JU7VHODU.js → chunk-H72MEDMN.js} +65 -10
- package/js/chunk-I5C7FD5Z.js +171 -0
- package/js/{chunk-CDL5PM2Q.js → chunk-IFJU5SYQ.js} +19082 -18402
- package/js/{chunk-VFZKSM3T.js → chunk-JPEUKEV4.js} +3 -3
- package/js/{chunk-KUMBKVJD.js → chunk-KLYSEHUD.js} +2 -2
- package/js/{chunk-RFVIONFX.js → chunk-KUCCHNVY.js} +123 -44
- package/js/chunk-OD3KFKZD.js +1617 -0
- package/js/{chunk-57RKNWL2.js → chunk-PD6I2SDG.js} +4 -4
- package/js/{chunk-72JNVHPK.js → chunk-PYQLOLOC.js} +4 -3
- package/js/{chunk-ODEIDRGW.js → chunk-QWQM3CLH.js} +795 -176
- package/js/{chunk-IJX4CYZO.js → chunk-TUMGL2OC.js} +228 -264
- package/js/{chunk-IPI4MFSN.js → chunk-XBG7HHXC.js} +2 -2
- package/js/chunk-XPRZTLHD.js +1915 -0
- package/js/chunk-YNJ5CZMJ.js +93 -0
- package/js/chunk-YRGL4QEF.js +49 -0
- package/js/{chunk-Z5M2LQOZ.js → chunk-YWFUWTUJ.js} +113 -58
- package/js/client.js +142 -78
- package/js/contracts.js +142 -21
- package/js/effect.js +18 -19
- package/js/{es-APDZKREY.js → es-DIULA3ZF.js} +62 -1659
- package/js/graphql.js +49 -40
- package/js/host.js +85 -62
- package/js/index.js +165 -70
- package/js/mcp/effect.js +21 -21
- package/js/mcp.js +76 -56
- package/js/openapi.js +4189 -1411
- package/js/react.js +2 -3
- package/js/skills/effect.js +6 -3
- package/js/skills.js +208 -81
- package/js/storage/facet.js +1 -540
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +5 -4
- package/js/ui/serving.js +8605 -225
- package/package.json +3 -8
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +18 -0
- package/types/app-cache/src/index.d.ts +34 -2
- package/types/apps/src/contracts/api-response-error.d.ts +4 -0
- package/types/apps/src/contracts/app.d.ts +60 -11
- package/types/apps/src/contracts/cache.d.ts +20 -0
- package/types/apps/src/contracts/context.d.ts +60 -17
- package/types/apps/src/contracts/elicitation.d.ts +23 -7
- package/types/apps/src/contracts/events.d.ts +94 -0
- package/types/apps/src/contracts/failure.d.ts +30 -1
- package/types/apps/src/contracts/graphql.d.ts +2 -1
- package/types/apps/src/contracts/host.d.ts +1446 -17
- package/types/apps/src/contracts/icons.d.ts +28 -0
- package/types/apps/src/contracts/live.d.ts +2 -0
- package/types/apps/src/contracts/mcp.d.ts +81 -20
- package/types/apps/src/contracts/network.d.ts +120 -0
- package/types/apps/src/contracts/openapi-compile.d.ts +82 -3
- package/types/apps/src/contracts/openapi.d.ts +41 -9
- package/types/apps/src/contracts/operations.d.ts +14 -7
- package/types/apps/src/contracts/placement.d.ts +102 -0
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/1.d.ts +733 -81
- package/types/apps/src/contracts/protocols/10.d.ts +1450 -0
- package/types/apps/src/contracts/protocols/11.d.ts +1149 -0
- package/types/apps/src/contracts/protocols/12.d.ts +3310 -0
- package/types/apps/src/contracts/protocols/2.d.ts +69 -26
- package/types/apps/src/contracts/protocols/3.d.ts +133 -33
- package/types/apps/src/contracts/protocols/4.d.ts +122 -45
- package/types/apps/src/contracts/protocols/5.d.ts +157 -47
- package/types/apps/src/contracts/protocols/6.d.ts +1629 -0
- package/types/apps/src/contracts/protocols/7.d.ts +1785 -0
- package/types/apps/src/contracts/protocols/8.d.ts +1182 -0
- package/types/apps/src/contracts/protocols/9.d.ts +1104 -0
- package/types/apps/src/contracts/protocols/current.d.ts +6669 -0
- package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
- package/types/apps/src/contracts/protocols/oauth.d.ts +134 -0
- package/types/apps/src/contracts/provider-error.d.ts +9 -0
- package/types/apps/src/contracts/provider.d.ts +90 -6
- package/types/apps/src/contracts/schedules.d.ts +7 -1
- package/types/apps/src/contracts/schema.d.ts +21 -0
- package/types/apps/src/contracts/skills.d.ts +50 -13
- package/types/apps/src/contracts/sql.d.ts +63 -0
- package/types/apps/src/contracts/ui.d.ts +44 -14
- package/types/apps/src/contracts/webhooks.d.ts +24 -7
- package/types/apps/src/contracts/workflows.d.ts +19 -17
- package/types/apps/src/facet.d.ts +4 -5
- package/types/apps/src/host.d.ts +5 -0
- package/types/apps/src/implementation/account-router.d.ts +4 -3
- package/types/apps/src/implementation/app.d.ts +41 -14
- package/types/apps/src/implementation/authoring.d.ts +25 -5
- package/types/apps/src/implementation/browser-scripts.gen.d.ts +6 -0
- package/types/apps/src/implementation/cache.d.ts +29 -2
- package/types/apps/src/implementation/catalog-cache.d.ts +35 -4
- package/types/apps/src/implementation/elicitation.d.ts +18 -15
- package/types/apps/src/implementation/events.d.ts +64 -0
- package/types/apps/src/implementation/failure-detail.d.ts +28 -5
- package/types/apps/src/implementation/graphql-catalog.d.ts +3 -3
- package/types/apps/src/implementation/graphql.d.ts +4 -3
- package/types/apps/src/implementation/input-problems.d.ts +6 -2
- package/types/apps/src/implementation/invocation-timing.d.ts +18 -0
- package/types/apps/src/implementation/live.d.ts +2 -2
- package/types/apps/src/implementation/mcp-call.d.ts +6 -5
- package/types/apps/src/implementation/mcp-catalog.d.ts +6 -4
- package/types/apps/src/implementation/mcp-client.d.ts +17 -9
- package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
- package/types/apps/src/implementation/mcp.d.ts +20 -9
- package/types/apps/src/implementation/network.d.ts +16 -0
- package/types/apps/src/implementation/openapi-compile.d.ts +28 -7
- package/types/apps/src/implementation/openapi-document.d.ts +46 -19
- package/types/apps/src/implementation/openapi-names.d.ts +9 -4
- package/types/apps/src/implementation/openapi-request.d.ts +10 -2
- package/types/apps/src/implementation/openapi-source.d.ts +23 -1
- package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
- package/types/apps/src/implementation/operations.d.ts +57 -7
- package/types/apps/src/implementation/optimistic.d.ts +1 -1
- package/types/apps/src/implementation/placement.d.ts +60 -0
- package/types/apps/src/implementation/protocol-operations.d.ts +3 -0
- package/types/apps/src/implementation/provider-error.d.ts +28 -1
- package/types/apps/src/implementation/provider.d.ts +19 -4
- package/types/apps/src/implementation/query-commit.d.ts +1 -1
- package/types/apps/src/implementation/router-catalog.d.ts +20 -18
- package/types/apps/src/implementation/router.d.ts +24 -5
- package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
- package/types/apps/src/implementation/schedules.d.ts +39 -8
- package/types/apps/src/implementation/schema.d.ts +98 -11
- package/types/apps/src/implementation/skills.d.ts +18 -24
- package/types/apps/src/implementation/sql.d.ts +71 -0
- package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
- package/types/apps/src/implementation/ui-auth.d.ts +1 -1
- package/types/apps/src/implementation/ui-client.d.ts +2 -2
- package/types/apps/src/implementation/ui-document.d.ts +5 -0
- package/types/apps/src/implementation/ui-errors.d.ts +1 -1
- package/types/apps/src/implementation/ui-serving.d.ts +26 -9
- package/types/apps/src/implementation/ui-watch.d.ts +1 -1
- package/types/apps/src/implementation/upstream-error.d.ts +7 -0
- package/types/apps/src/implementation/webhooks.d.ts +15 -6
- package/types/apps/src/implementation/workflow-context.d.ts +6 -2
- package/types/apps/src/implementation/workflows.d.ts +11 -4
- package/types/apps/src/index.d.ts +68 -19
- package/types/apps/src/mcp.d.ts +20 -1
- package/types/apps/src/openapi.d.ts +6 -1
- package/types/apps/src/react.d.ts +1 -1
- package/types/apps/src/skills.d.ts +10 -8
- package/types/apps/src/ui-serving.d.ts +1 -1
- package/types/telemetry/src/app-records.d.ts +42 -0
- package/types/telemetry/src/browser-operations.d.ts +2 -2
- package/types/telemetry/src/browser.d.ts +8 -3
- package/types/telemetry/src/config.d.ts +2 -2
- package/types/telemetry/src/index.d.ts +2 -1
- package/types/telemetry/src/layer.d.ts +10 -4
- package/types/telemetry/src/measurements.d.ts +1 -1
- package/types/telemetry/src/ownership.d.ts +60 -0
- package/types/telemetry/src/recorded-failure.d.ts +29 -0
- package/types/telemetry/src/relay.d.ts +16 -6
- package/types/telemetry/src/span-attributes.d.ts +17 -1
- package/types/telemetry/src/transport.d.ts +8 -1
- package/types/utils/src/api-error.d.ts +55 -0
- package/types/utils/src/connection-failure.d.ts +33 -0
- package/types/utils/src/recorded-message.d.ts +18 -0
- package/types/utils/src/user-facing-error.d.ts +83 -0
- package/js/chunk-7EK2JDX4.js +0 -299
- package/js/chunk-IKS2C5MQ.js +0 -224
- package/js/chunk-MKWZPDR6.js +0 -63
- package/js/chunk-N7YDVXYJ.js +0 -186
- package/js/chunk-NKLWZJLE.js +0 -172
- package/js/chunk-PJJ24GU7.js +0 -877
- package/js/chunk-PZB6T6KU.js +0 -19
- package/js/chunk-R3EV5FTO.js +0 -97
- package/js/chunk-SJFZCGXG.js +0 -1243
- package/js/chunk-WLE7WX2U.js +0 -2645
- package/js/chunk-YXQHV65J.js +0 -242
- package/js/chunk-ZQINWV4W.js +0 -630
- package/js/mcp/stdio.js +0 -128
- package/types/app-data/src/implementation/cursor.d.ts +0 -10
- package/types/app-data/src/implementation/index-key.d.ts +0 -7
- package/types/app-data/src/implementation/promise.d.ts +0 -68
- package/types/app-data/src/implementation/range.d.ts +0 -8
- package/types/app-data/src/implementation/schema.d.ts +0 -18
- package/types/app-data/src/implementation/sqlite.d.ts +0 -11
- package/types/app-data/src/index.d.ts +0 -4
- package/types/apps/src/contracts/storage.d.ts +0 -68
- package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
- package/types/apps/src/implementation/storage.d.ts +0 -15
- package/types/apps/src/mcp-stdio.d.ts +0 -5
|
@@ -58,9 +58,9 @@ import {
|
|
|
58
58
|
effectDiscard,
|
|
59
59
|
empty,
|
|
60
60
|
empty2,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
empty3,
|
|
62
|
+
empty4,
|
|
63
|
+
empty5,
|
|
64
64
|
empty7 as empty6,
|
|
65
65
|
encodeText,
|
|
66
66
|
encodeUnknownEffect,
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
fromTransform,
|
|
107
107
|
gen,
|
|
108
108
|
get,
|
|
109
|
-
|
|
109
|
+
get2,
|
|
110
110
|
get4 as get3,
|
|
111
111
|
getCurrent,
|
|
112
112
|
getOrElse,
|
|
@@ -160,20 +160,20 @@ import {
|
|
|
160
160
|
pipeThroughChannel,
|
|
161
161
|
provide,
|
|
162
162
|
provide2,
|
|
163
|
-
|
|
163
|
+
provideContext,
|
|
164
164
|
provideMerge,
|
|
165
165
|
redact,
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
remove,
|
|
167
|
+
remove2,
|
|
168
168
|
repeat,
|
|
169
169
|
retry,
|
|
170
170
|
run,
|
|
171
171
|
runForEach,
|
|
172
172
|
runSync,
|
|
173
173
|
seconds,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
set,
|
|
175
|
+
set2,
|
|
176
|
+
set3,
|
|
177
177
|
setAll,
|
|
178
178
|
setAll2,
|
|
179
179
|
setAll3,
|
|
@@ -211,12 +211,12 @@ import {
|
|
|
211
211
|
withFiber,
|
|
212
212
|
withParentSpan,
|
|
213
213
|
zero2 as zero
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
215
215
|
import {
|
|
216
216
|
__export
|
|
217
217
|
} from "./chunk-CZ7CSFO4.js";
|
|
218
218
|
|
|
219
|
-
// ../../node_modules/.bun/effect@
|
|
219
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpClientRequest.js
|
|
220
220
|
var HttpClientRequest_exports = {};
|
|
221
221
|
__export(HttpClientRequest_exports, {
|
|
222
222
|
accept: () => accept,
|
|
@@ -269,7 +269,7 @@ __export(HttpClientRequest_exports, {
|
|
|
269
269
|
updateUrl: () => updateUrl
|
|
270
270
|
});
|
|
271
271
|
|
|
272
|
-
// ../../node_modules/.bun/effect@
|
|
272
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpBody.js
|
|
273
273
|
var HttpBody_exports = {};
|
|
274
274
|
__export(HttpBody_exports, {
|
|
275
275
|
Empty: () => Empty,
|
|
@@ -284,6 +284,7 @@ __export(HttpBody_exports, {
|
|
|
284
284
|
formData: () => formData,
|
|
285
285
|
formDataRecord: () => formDataRecord,
|
|
286
286
|
isHttpBody: () => isHttpBody,
|
|
287
|
+
isHttpBodyError: () => isHttpBodyError,
|
|
287
288
|
json: () => json,
|
|
288
289
|
jsonSchema: () => jsonSchema,
|
|
289
290
|
jsonUnsafe: () => jsonUnsafe,
|
|
@@ -300,10 +301,12 @@ var HttpBodyError = class extends (/* @__PURE__ */ TaggedError("HttpBodyError"))
|
|
|
300
301
|
/**
|
|
301
302
|
* Marks this value as an HTTP body error for runtime guards.
|
|
302
303
|
*
|
|
304
|
+
* @stability unstable
|
|
303
305
|
* @since 4.0.0
|
|
304
306
|
*/
|
|
305
307
|
[HttpBodyErrorTypeId] = HttpBodyErrorTypeId;
|
|
306
308
|
};
|
|
309
|
+
var isHttpBodyError = (u) => hasProperty(u, HttpBodyErrorTypeId);
|
|
307
310
|
var Proto = class {
|
|
308
311
|
[TypeId];
|
|
309
312
|
constructor() {
|
|
@@ -500,11 +503,11 @@ var fileContentLength = /* @__PURE__ */ fnUntraced(function* (size, method, opti
|
|
|
500
503
|
var file = (path, options3) => flatMap(FileSystem, (fs) => flatMap(fs.stat(path), (info) => map(fileContentLength(info.size, "file", options3), (contentLength) => stream(fs.stream(path, options3), options3?.contentType, contentLength))));
|
|
501
504
|
var fileFromInfo = (path, info, options3) => flatMap(FileSystem, (fs) => map(fileContentLength(info.size, "fileFromInfo", options3), (contentLength) => stream(fs.stream(path, options3), options3?.contentType, contentLength)));
|
|
502
505
|
|
|
503
|
-
// ../../node_modules/.bun/effect@
|
|
506
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpMethod.js
|
|
504
507
|
var hasBody = (method) => method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE";
|
|
505
508
|
var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"], ["QUERY", "query"]];
|
|
506
509
|
|
|
507
|
-
// ../../node_modules/.bun/effect@
|
|
510
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/internal/httpBody.js
|
|
508
511
|
var updateHeaders = (headers, body) => {
|
|
509
512
|
if (body._tag === "Empty" || body._tag === "FormData") {
|
|
510
513
|
return remove2(remove2(headers, "content-type"), "content-length");
|
|
@@ -520,7 +523,7 @@ var parseContentLength = (contentLength) => {
|
|
|
520
523
|
return Number.isSafeInteger(parsed) ? parsed : void 0;
|
|
521
524
|
};
|
|
522
525
|
|
|
523
|
-
// ../../node_modules/.bun/effect@
|
|
526
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/Url.js
|
|
524
527
|
var UrlError = class extends (/* @__PURE__ */ TaggedError("UrlError")) {
|
|
525
528
|
};
|
|
526
529
|
var make = (url, params, hash) => try_({
|
|
@@ -548,7 +551,7 @@ var baseUrl = () => {
|
|
|
548
551
|
return void 0;
|
|
549
552
|
};
|
|
550
553
|
|
|
551
|
-
// ../../node_modules/.bun/effect@
|
|
554
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpClientRequest.js
|
|
552
555
|
var TypeId2 = "~effect/http/HttpClientRequest";
|
|
553
556
|
var isHttpClientRequest = (u) => hasProperty(u, TypeId2);
|
|
554
557
|
var Proto2 = {
|
|
@@ -739,7 +742,7 @@ var toWebResult = (self, options3) => {
|
|
|
739
742
|
break;
|
|
740
743
|
}
|
|
741
744
|
case "Stream": {
|
|
742
|
-
requestInit.body = toReadableStreamWith(self.body.stream, options3?.context ??
|
|
745
|
+
requestInit.body = toReadableStreamWith(self.body.stream, options3?.context ?? empty());
|
|
743
746
|
requestInit.duplex = "half";
|
|
744
747
|
break;
|
|
745
748
|
}
|
|
@@ -758,7 +761,7 @@ var toWeb = (self, options3) => contextWith((context2) => fromResult(toWebResult
|
|
|
758
761
|
signal: options3?.signal
|
|
759
762
|
})));
|
|
760
763
|
|
|
761
|
-
// ../../node_modules/.bun/effect@
|
|
764
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpClient.js
|
|
762
765
|
var HttpClient_exports = {};
|
|
763
766
|
__export(HttpClient_exports, {
|
|
764
767
|
HttpClient: () => HttpClient,
|
|
@@ -803,7 +806,7 @@ __export(HttpClient_exports, {
|
|
|
803
806
|
withScope: () => withScope
|
|
804
807
|
});
|
|
805
808
|
|
|
806
|
-
// ../../node_modules/.bun/effect@
|
|
809
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpClientError.js
|
|
807
810
|
var HttpClientError_exports = {};
|
|
808
811
|
__export(HttpClientError_exports, {
|
|
809
812
|
DecodeError: () => DecodeError,
|
|
@@ -832,12 +835,14 @@ var HttpClientError = class extends (/* @__PURE__ */ TaggedError("HttpClientErro
|
|
|
832
835
|
/**
|
|
833
836
|
* Marks this value as an HTTP client error for runtime guards.
|
|
834
837
|
*
|
|
838
|
+
* @stability unstable
|
|
835
839
|
* @since 4.0.0
|
|
836
840
|
*/
|
|
837
841
|
[TypeId3] = TypeId3;
|
|
838
842
|
/**
|
|
839
843
|
* HTTP request associated with the client failure.
|
|
840
844
|
*
|
|
845
|
+
* @stability unstable
|
|
841
846
|
* @since 4.0.0
|
|
842
847
|
*/
|
|
843
848
|
get request() {
|
|
@@ -846,6 +851,7 @@ var HttpClientError = class extends (/* @__PURE__ */ TaggedError("HttpClientErro
|
|
|
846
851
|
/**
|
|
847
852
|
* HTTP response associated with the client failure, when one was received.
|
|
848
853
|
*
|
|
854
|
+
* @stability unstable
|
|
849
855
|
* @since 4.0.0
|
|
850
856
|
*/
|
|
851
857
|
get response() {
|
|
@@ -861,6 +867,7 @@ var TransportError = class extends (/* @__PURE__ */ TaggedError("TransportError"
|
|
|
861
867
|
/**
|
|
862
868
|
* Formats the request method and URL for transport error messages.
|
|
863
869
|
*
|
|
870
|
+
* @stability unstable
|
|
864
871
|
* @since 4.0.0
|
|
865
872
|
*/
|
|
866
873
|
get methodAndUrl() {
|
|
@@ -869,6 +876,7 @@ var TransportError = class extends (/* @__PURE__ */ TaggedError("TransportError"
|
|
|
869
876
|
/**
|
|
870
877
|
* Builds the transport error message from the optional description and request details.
|
|
871
878
|
*
|
|
879
|
+
* @stability unstable
|
|
872
880
|
* @since 4.0.0
|
|
873
881
|
*/
|
|
874
882
|
get message() {
|
|
@@ -879,6 +887,7 @@ var EncodeError = class extends (/* @__PURE__ */ TaggedError("EncodeError")) {
|
|
|
879
887
|
/**
|
|
880
888
|
* Formats the request method and URL for request encoding error messages.
|
|
881
889
|
*
|
|
890
|
+
* @stability unstable
|
|
882
891
|
* @since 4.0.0
|
|
883
892
|
*/
|
|
884
893
|
get methodAndUrl() {
|
|
@@ -887,6 +896,7 @@ var EncodeError = class extends (/* @__PURE__ */ TaggedError("EncodeError")) {
|
|
|
887
896
|
/**
|
|
888
897
|
* Builds the request encoding error message from the optional description and request details.
|
|
889
898
|
*
|
|
899
|
+
* @stability unstable
|
|
890
900
|
* @since 4.0.0
|
|
891
901
|
*/
|
|
892
902
|
get message() {
|
|
@@ -897,6 +907,7 @@ var InvalidUrlError = class extends (/* @__PURE__ */ TaggedError("InvalidUrlErro
|
|
|
897
907
|
/**
|
|
898
908
|
* Formats the request method and URL for invalid URL error messages.
|
|
899
909
|
*
|
|
910
|
+
* @stability unstable
|
|
900
911
|
* @since 4.0.0
|
|
901
912
|
*/
|
|
902
913
|
get methodAndUrl() {
|
|
@@ -905,6 +916,7 @@ var InvalidUrlError = class extends (/* @__PURE__ */ TaggedError("InvalidUrlErro
|
|
|
905
916
|
/**
|
|
906
917
|
* Builds the invalid URL error message from the optional description and request details.
|
|
907
918
|
*
|
|
919
|
+
* @stability unstable
|
|
908
920
|
* @since 4.0.0
|
|
909
921
|
*/
|
|
910
922
|
get message() {
|
|
@@ -915,6 +927,7 @@ var StatusCodeError = class extends (/* @__PURE__ */ TaggedError("StatusCodeErro
|
|
|
915
927
|
/**
|
|
916
928
|
* Formats the request method and URL for status code error messages.
|
|
917
929
|
*
|
|
930
|
+
* @stability unstable
|
|
918
931
|
* @since 4.0.0
|
|
919
932
|
*/
|
|
920
933
|
get methodAndUrl() {
|
|
@@ -923,6 +936,7 @@ var StatusCodeError = class extends (/* @__PURE__ */ TaggedError("StatusCodeErro
|
|
|
923
936
|
/**
|
|
924
937
|
* Builds the status code error message from the response status, optional description, and request details.
|
|
925
938
|
*
|
|
939
|
+
* @stability unstable
|
|
926
940
|
* @since 4.0.0
|
|
927
941
|
*/
|
|
928
942
|
get message() {
|
|
@@ -934,6 +948,7 @@ var DecodeError = class extends (/* @__PURE__ */ TaggedError("DecodeError")) {
|
|
|
934
948
|
/**
|
|
935
949
|
* Formats the request method and URL for response decoding error messages.
|
|
936
950
|
*
|
|
951
|
+
* @stability unstable
|
|
937
952
|
* @since 4.0.0
|
|
938
953
|
*/
|
|
939
954
|
get methodAndUrl() {
|
|
@@ -942,6 +957,7 @@ var DecodeError = class extends (/* @__PURE__ */ TaggedError("DecodeError")) {
|
|
|
942
957
|
/**
|
|
943
958
|
* Builds the response decoding error message from the response status, optional description, and request details.
|
|
944
959
|
*
|
|
960
|
+
* @stability unstable
|
|
945
961
|
* @since 4.0.0
|
|
946
962
|
*/
|
|
947
963
|
get message() {
|
|
@@ -953,6 +969,7 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError("EmptyBodyError"
|
|
|
953
969
|
/**
|
|
954
970
|
* Formats the request method and URL for empty response body error messages.
|
|
955
971
|
*
|
|
972
|
+
* @stability unstable
|
|
956
973
|
* @since 4.0.0
|
|
957
974
|
*/
|
|
958
975
|
get methodAndUrl() {
|
|
@@ -961,6 +978,7 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError("EmptyBodyError"
|
|
|
961
978
|
/**
|
|
962
979
|
* Builds the empty body error message from the response status, optional description, and request details.
|
|
963
980
|
*
|
|
981
|
+
* @stability unstable
|
|
964
982
|
* @since 4.0.0
|
|
965
983
|
*/
|
|
966
984
|
get message() {
|
|
@@ -976,6 +994,7 @@ var HttpClientErrorSchema = class _HttpClientErrorSchema extends (/* @__PURE__ *
|
|
|
976
994
|
/**
|
|
977
995
|
* Builds the serializable schema representation for an HTTP client error.
|
|
978
996
|
*
|
|
997
|
+
* @stability unstable
|
|
979
998
|
* @since 4.0.0
|
|
980
999
|
*/
|
|
981
1000
|
static fromHttpClientError(error) {
|
|
@@ -987,7 +1006,7 @@ var HttpClientErrorSchema = class _HttpClientErrorSchema extends (/* @__PURE__ *
|
|
|
987
1006
|
}
|
|
988
1007
|
};
|
|
989
1008
|
|
|
990
|
-
// ../../node_modules/.bun/effect@
|
|
1009
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
991
1010
|
var TypeId4 = "~effect/http/HttpIncomingMessage";
|
|
992
1011
|
var schemaBodyJson2 = (schema, options3) => {
|
|
993
1012
|
const decode = decodeEffect(toCodecJson(schema));
|
|
@@ -1026,7 +1045,7 @@ var inspect = (self, that) => {
|
|
|
1026
1045
|
return obj;
|
|
1027
1046
|
};
|
|
1028
1047
|
|
|
1029
|
-
// ../../node_modules/.bun/effect@
|
|
1048
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpClientResponse.js
|
|
1030
1049
|
var TypeId5 = "~effect/http/HttpClientResponse";
|
|
1031
1050
|
var fromWeb2 = (request, source) => new WebHttpClientResponse(request, source);
|
|
1032
1051
|
var filterStatus = /* @__PURE__ */ dual(2, (self, f) => suspend(() => f(self.status) ? succeed2(self) : fail3(new HttpClientError({
|
|
@@ -1166,7 +1185,7 @@ var WebHttpClientResponse = class extends Class {
|
|
|
1166
1185
|
}
|
|
1167
1186
|
};
|
|
1168
1187
|
|
|
1169
|
-
// ../../node_modules/.bun/effect@
|
|
1188
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpTraceContext.js
|
|
1170
1189
|
var HttpTraceContext_exports = {};
|
|
1171
1190
|
__export(HttpTraceContext_exports, {
|
|
1172
1191
|
b3: () => b3,
|
|
@@ -1204,7 +1223,7 @@ var b3 = (headers) => {
|
|
|
1204
1223
|
return some(externalSpan({
|
|
1205
1224
|
traceId: parts[0],
|
|
1206
1225
|
spanId: parts[1],
|
|
1207
|
-
sampled: parts[2] ? parts[2] === "1" : true
|
|
1226
|
+
sampled: parts[2] ? parts[2] === "1" || parts[2] === "d" : true
|
|
1208
1227
|
}));
|
|
1209
1228
|
};
|
|
1210
1229
|
var xb3 = (headers) => {
|
|
@@ -1214,7 +1233,7 @@ var xb3 = (headers) => {
|
|
|
1214
1233
|
return some(externalSpan({
|
|
1215
1234
|
traceId: headers["x-b3-traceid"],
|
|
1216
1235
|
spanId: headers["x-b3-spanid"],
|
|
1217
|
-
sampled: headers["x-b3-sampled"] ? headers["x-b3-sampled"] === "1" : true
|
|
1236
|
+
sampled: headers["x-b3-flags"] === "1" || (headers["x-b3-sampled"] ? headers["x-b3-sampled"] === "1" || headers["x-b3-sampled"] === "true" : true)
|
|
1218
1237
|
}));
|
|
1219
1238
|
};
|
|
1220
1239
|
var w3cTraceId = /^[0-9a-f]{32}$/i;
|
|
@@ -1230,7 +1249,7 @@ var w3c = (headers) => {
|
|
|
1230
1249
|
const [version, traceId, spanId, flags] = parts;
|
|
1231
1250
|
switch (version) {
|
|
1232
1251
|
case "00": {
|
|
1233
|
-
if (w3cTraceId.test(traceId) === false || w3cSpanId.test(spanId) === false) {
|
|
1252
|
+
if (w3cTraceId.test(traceId) === false || w3cSpanId.test(spanId) === false || traceId === "00000000000000000000000000000000" || spanId === "0000000000000000") {
|
|
1234
1253
|
return none();
|
|
1235
1254
|
}
|
|
1236
1255
|
return some(externalSpan({
|
|
@@ -1245,7 +1264,7 @@ var w3c = (headers) => {
|
|
|
1245
1264
|
}
|
|
1246
1265
|
};
|
|
1247
1266
|
|
|
1248
|
-
// ../../node_modules/.bun/effect@
|
|
1267
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpClient.js
|
|
1249
1268
|
var TypeId6 = "~effect/http/HttpClient";
|
|
1250
1269
|
var isHttpClient = (u) => hasProperty(u, TypeId6);
|
|
1251
1270
|
var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
|
|
@@ -1745,7 +1764,7 @@ var isTransientHttpError = (error) => isHttpClientError(error) && (error.reason.
|
|
|
1745
1764
|
var isTooManyRequestsHttpClientError = (error) => isHttpClientError(error) && error.reason._tag === "StatusCodeError" && error.reason.response.status === 429;
|
|
1746
1765
|
var isTransientResponse = (response) => response.status === 408 || response.status === 429 || response.status === 500 || response.status === 502 || response.status === 503 || response.status === 504;
|
|
1747
1766
|
|
|
1748
|
-
// ../../node_modules/.bun/effect@
|
|
1767
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/Template.js
|
|
1749
1768
|
function make4(strings, ...args) {
|
|
1750
1769
|
const argsLength = args.length;
|
|
1751
1770
|
const values = new Array(argsLength);
|
|
@@ -1839,7 +1858,7 @@ function isSuccess2(u) {
|
|
|
1839
1858
|
return isExit(u) && u._tag === "Success";
|
|
1840
1859
|
}
|
|
1841
1860
|
|
|
1842
|
-
// ../../node_modules/.bun/effect@
|
|
1861
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpServerResponse.js
|
|
1843
1862
|
var HttpServerResponse_exports = {};
|
|
1844
1863
|
__export(HttpServerResponse_exports, {
|
|
1845
1864
|
empty: () => empty9,
|
|
@@ -1881,11 +1900,11 @@ __export(HttpServerResponse_exports, {
|
|
|
1881
1900
|
urlParams: () => urlParams2
|
|
1882
1901
|
});
|
|
1883
1902
|
|
|
1884
|
-
// ../../node_modules/.bun/effect@
|
|
1903
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/internal/headers.js
|
|
1885
1904
|
var Proto4 = /* @__PURE__ */ Object.getPrototypeOf(empty4);
|
|
1886
1905
|
var emptyMutableUnsafe = () => Object.create(Proto4);
|
|
1887
1906
|
|
|
1888
|
-
// ../../node_modules/.bun/effect@
|
|
1907
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpServerResponse.js
|
|
1889
1908
|
var TypeId7 = "~effect/http/HttpServerResponse";
|
|
1890
1909
|
var isHttpServerResponse = (u) => hasProperty(u, TypeId7);
|
|
1891
1910
|
var empty9 = (options3) => makeResponse({
|
|
@@ -2153,7 +2172,7 @@ var toWeb2 = (response, options3) => {
|
|
|
2153
2172
|
});
|
|
2154
2173
|
}
|
|
2155
2174
|
case "Stream": {
|
|
2156
|
-
return new Response(toReadableStreamWith(body.stream, options3?.context ??
|
|
2175
|
+
return new Response(toReadableStreamWith(body.stream, options3?.context ?? empty()), {
|
|
2157
2176
|
status: response.status,
|
|
2158
2177
|
statusText: response.statusText,
|
|
2159
2178
|
headers
|
|
@@ -2413,10 +2432,10 @@ var fromWeb3 = (response) => {
|
|
|
2413
2432
|
return self;
|
|
2414
2433
|
};
|
|
2415
2434
|
|
|
2416
|
-
// ../../node_modules/.bun/effect@
|
|
2435
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpServerRespondable.js
|
|
2417
2436
|
var symbol = "~effect/http/HttpServerRespondable";
|
|
2418
2437
|
|
|
2419
|
-
// ../../node_modules/.bun/effect@
|
|
2438
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpServerError.js
|
|
2420
2439
|
var TypeId8 = "~effect/http/HttpServerError";
|
|
2421
2440
|
var HttpServerError = class extends (/* @__PURE__ */ TaggedError("HttpServerError")) {
|
|
2422
2441
|
constructor(props) {
|
|
@@ -2451,6 +2470,7 @@ var RequestParseError = class extends (/* @__PURE__ */ TaggedError("RequestParse
|
|
|
2451
2470
|
/**
|
|
2452
2471
|
* Converts the request error into a `400 Bad Request` response.
|
|
2453
2472
|
*
|
|
2473
|
+
* @stability unstable
|
|
2454
2474
|
* @since 4.0.0
|
|
2455
2475
|
*/
|
|
2456
2476
|
[symbol]() {
|
|
@@ -2483,6 +2503,7 @@ var InternalError = class extends (/* @__PURE__ */ TaggedError("InternalError"))
|
|
|
2483
2503
|
/**
|
|
2484
2504
|
* Converts the server error into a `500 Internal Server Error` response.
|
|
2485
2505
|
*
|
|
2506
|
+
* @stability unstable
|
|
2486
2507
|
* @since 4.0.0
|
|
2487
2508
|
*/
|
|
2488
2509
|
[symbol]() {
|
|
@@ -2516,7 +2537,7 @@ var formatRequestMessage = (reason, description, info) => {
|
|
|
2516
2537
|
return description ? `${prefix}: ${description}` : prefix;
|
|
2517
2538
|
};
|
|
2518
2539
|
|
|
2519
|
-
// ../../node_modules/.bun/effect@
|
|
2540
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/MultipartParser/internal/contentType.js
|
|
2520
2541
|
var paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u{10ffff}]|\\[\v\u0020-\u{10ffff}])*"|[!#$%&'*+.^\w`|~-]+) */gu;
|
|
2521
2542
|
var quotedPairRE = /\\([\v\u0020-\u{10ffff}])/gu;
|
|
2522
2543
|
var mediaTypeRE = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;
|
|
@@ -2567,7 +2588,7 @@ function parse(header, withoutSlash = false) {
|
|
|
2567
2588
|
return result;
|
|
2568
2589
|
}
|
|
2569
2590
|
|
|
2570
|
-
// ../../node_modules/.bun/effect@
|
|
2591
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/MultipartParser/internal/headers.js
|
|
2571
2592
|
var constMaxPairs = 100;
|
|
2572
2593
|
var constMaxSize = 16 * 1024;
|
|
2573
2594
|
var State = {
|
|
@@ -2772,7 +2793,7 @@ function make5() {
|
|
|
2772
2793
|
};
|
|
2773
2794
|
}
|
|
2774
2795
|
|
|
2775
|
-
// ../../node_modules/.bun/effect@
|
|
2796
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/MultipartParser/internal/search.js
|
|
2776
2797
|
function makeState(needle_) {
|
|
2777
2798
|
const needle = new TextEncoder().encode(needle_);
|
|
2778
2799
|
const needleLength = needle.length;
|
|
@@ -2892,7 +2913,7 @@ function make6(needle, callback2, seed, minimumChunkLength) {
|
|
|
2892
2913
|
};
|
|
2893
2914
|
}
|
|
2894
2915
|
|
|
2895
|
-
// ../../node_modules/.bun/effect@
|
|
2916
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/MultipartParser/internal/multipart.js
|
|
2896
2917
|
var State2 = {
|
|
2897
2918
|
headers: 0,
|
|
2898
2919
|
body: 1
|
|
@@ -3136,15 +3157,15 @@ function decodeField(info, value) {
|
|
|
3136
3157
|
return getDecoder(info.contentTypeParameters.charset ?? "utf-8").decode(value);
|
|
3137
3158
|
}
|
|
3138
3159
|
|
|
3139
|
-
// ../../node_modules/.bun/effect@
|
|
3160
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/MultipartParser.js
|
|
3140
3161
|
var make8 = make7;
|
|
3141
3162
|
var defaultIsFile2 = defaultIsFile;
|
|
3142
3163
|
var decodeField2 = decodeField;
|
|
3143
3164
|
|
|
3144
|
-
// ../../node_modules/.bun/effect@
|
|
3165
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/Multipart.js
|
|
3145
3166
|
var TypeId9 = "~effect/http/Multipart";
|
|
3146
3167
|
var MultipartErrorTypeId = "~effect/http/Multipart/MultipartError";
|
|
3147
|
-
var toMultipartError = (cause) =>
|
|
3168
|
+
var toMultipartError = (cause) => isMultipartError(cause) ? cause : MultipartError.fromReason("InternalError", cause);
|
|
3148
3169
|
var MultipartErrorReason = class extends Error2 {
|
|
3149
3170
|
};
|
|
3150
3171
|
var responseStatusByReason = {
|
|
@@ -3159,6 +3180,7 @@ var MultipartError = class _MultipartError extends (/* @__PURE__ */ TaggedError(
|
|
|
3159
3180
|
/**
|
|
3160
3181
|
* Creates a multipart error from a reason tag and optional cause.
|
|
3161
3182
|
*
|
|
3183
|
+
* @stability unstable
|
|
3162
3184
|
* @since 4.0.0
|
|
3163
3185
|
*/
|
|
3164
3186
|
static fromReason(reason, cause) {
|
|
@@ -3172,6 +3194,7 @@ var MultipartError = class _MultipartError extends (/* @__PURE__ */ TaggedError(
|
|
|
3172
3194
|
/**
|
|
3173
3195
|
* Marks this value as a multipart error for runtime guards.
|
|
3174
3196
|
*
|
|
3197
|
+
* @stability unstable
|
|
3175
3198
|
* @since 4.0.0
|
|
3176
3199
|
*/
|
|
3177
3200
|
[MultipartErrorTypeId] = MultipartErrorTypeId;
|
|
@@ -3184,6 +3207,7 @@ var MultipartError = class _MultipartError extends (/* @__PURE__ */ TaggedError(
|
|
|
3184
3207
|
* Parse errors produce `400`, size and part-count limits produce `413`, and
|
|
3185
3208
|
* internal errors produce `500`.
|
|
3186
3209
|
*
|
|
3210
|
+
* @stability unstable
|
|
3187
3211
|
* @since 4.0.0
|
|
3188
3212
|
*/
|
|
3189
3213
|
[symbol]() {
|
|
@@ -3194,12 +3218,14 @@ var MultipartError = class _MultipartError extends (/* @__PURE__ */ TaggedError(
|
|
|
3194
3218
|
/**
|
|
3195
3219
|
* Uses the concrete multipart error reason as the public message.
|
|
3196
3220
|
*
|
|
3221
|
+
* @stability unstable
|
|
3197
3222
|
* @since 4.0.0
|
|
3198
3223
|
*/
|
|
3199
3224
|
get message() {
|
|
3200
3225
|
return this.reason._tag;
|
|
3201
3226
|
}
|
|
3202
3227
|
};
|
|
3228
|
+
var isMultipartError = (u) => hasProperty(u, MultipartErrorTypeId);
|
|
3203
3229
|
var schemaPersisted = (schema) => decodeUnknownEffect(schema);
|
|
3204
3230
|
var schemaJson2 = (schema, options3) => {
|
|
3205
3231
|
const fromJson = fromJsonString(schema, options3);
|
|
@@ -3278,7 +3304,7 @@ var makeChannel = (headers) => fromTransform((upstream) => map(makeConfig(header
|
|
|
3278
3304
|
}
|
|
3279
3305
|
return void_2;
|
|
3280
3306
|
}));
|
|
3281
|
-
return
|
|
3307
|
+
return suspend(function loop() {
|
|
3282
3308
|
if (!isReadonlyArrayNonEmpty(partsBuffer)) {
|
|
3283
3309
|
if (isSome(exit2)) {
|
|
3284
3310
|
return exit2.value;
|
|
@@ -3288,7 +3314,7 @@ var makeChannel = (headers) => fromTransform((upstream) => map(makeConfig(header
|
|
|
3288
3314
|
const parts = partsBuffer;
|
|
3289
3315
|
partsBuffer = [];
|
|
3290
3316
|
return succeed2(parts);
|
|
3291
|
-
})
|
|
3317
|
+
});
|
|
3292
3318
|
}));
|
|
3293
3319
|
function convertError(cause) {
|
|
3294
3320
|
switch (cause._tag) {
|
|
@@ -3443,7 +3469,7 @@ var FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeT
|
|
|
3443
3469
|
defaultValue: /* @__PURE__ */ constant(["application/json"])
|
|
3444
3470
|
});
|
|
3445
3471
|
|
|
3446
|
-
// ../../node_modules/.bun/effect@
|
|
3472
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpServerRequest.js
|
|
3447
3473
|
var HttpServerRequest_exports = {};
|
|
3448
3474
|
__export(HttpServerRequest_exports, {
|
|
3449
3475
|
HttpServerRequest: () => HttpServerRequest,
|
|
@@ -3468,7 +3494,7 @@ __export(HttpServerRequest_exports, {
|
|
|
3468
3494
|
upgradeChannel: () => upgradeChannel
|
|
3469
3495
|
});
|
|
3470
3496
|
|
|
3471
|
-
// ../../node_modules/.bun/effect@
|
|
3497
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/socket/Socket.js
|
|
3472
3498
|
var encoder2 = /* @__PURE__ */ new TextEncoder();
|
|
3473
3499
|
var readerBytes = (self) => map(self.reader, ({
|
|
3474
3500
|
pull
|
|
@@ -3490,6 +3516,7 @@ var CloseEvent = class {
|
|
|
3490
3516
|
/**
|
|
3491
3517
|
* Marks this value as a socket close event for runtime guards.
|
|
3492
3518
|
*
|
|
3519
|
+
* @stability unstable
|
|
3493
3520
|
* @since 4.0.0
|
|
3494
3521
|
*/
|
|
3495
3522
|
[CloseEventTypeId];
|
|
@@ -3503,6 +3530,7 @@ var CloseEvent = class {
|
|
|
3503
3530
|
/**
|
|
3504
3531
|
* Formats the close code and optional reason for display.
|
|
3505
3532
|
*
|
|
3533
|
+
* @stability unstable
|
|
3506
3534
|
* @since 4.0.0
|
|
3507
3535
|
*/
|
|
3508
3536
|
toString() {
|
|
@@ -3519,6 +3547,7 @@ var SocketReadError = class extends (/* @__PURE__ */ Error3("effect/socket/Socke
|
|
|
3519
3547
|
/**
|
|
3520
3548
|
* Default message used for socket read failures.
|
|
3521
3549
|
*
|
|
3550
|
+
* @stability unstable
|
|
3522
3551
|
* @since 4.0.0
|
|
3523
3552
|
*/
|
|
3524
3553
|
message = `An error occurred during Read`;
|
|
@@ -3530,6 +3559,7 @@ var SocketWriteError = class extends (/* @__PURE__ */ Error3("effect/socket/Sock
|
|
|
3530
3559
|
/**
|
|
3531
3560
|
* Default message used for socket write failures.
|
|
3532
3561
|
*
|
|
3562
|
+
* @stability unstable
|
|
3533
3563
|
* @since 4.0.0
|
|
3534
3564
|
*/
|
|
3535
3565
|
message = `An error occurred during Write`;
|
|
@@ -3542,6 +3572,7 @@ var SocketOpenError = class extends (/* @__PURE__ */ Error3("effect/socket/Socke
|
|
|
3542
3572
|
/**
|
|
3543
3573
|
* Formats timeout and unknown open failures for display.
|
|
3544
3574
|
*
|
|
3575
|
+
* @stability unstable
|
|
3545
3576
|
* @since 4.0.0
|
|
3546
3577
|
*/
|
|
3547
3578
|
get message() {
|
|
@@ -3556,6 +3587,7 @@ var SocketUpgradeError = class _SocketUpgradeError extends (/* @__PURE__ */ Erro
|
|
|
3556
3587
|
* An upgrade implementation for transports that cannot wrap the connection
|
|
3557
3588
|
* with TLS.
|
|
3558
3589
|
*
|
|
3590
|
+
* @stability unstable
|
|
3559
3591
|
* @since 4.0.0
|
|
3560
3592
|
*/
|
|
3561
3593
|
static unsupported = () => fail3(new SocketError({
|
|
@@ -3596,12 +3628,14 @@ var SocketError = class extends (/* @__PURE__ */ TaggedError2(SocketErrorTypeId)
|
|
|
3596
3628
|
/**
|
|
3597
3629
|
* Marks this value as a socket error wrapper for runtime guards.
|
|
3598
3630
|
*
|
|
3631
|
+
* @stability unstable
|
|
3599
3632
|
* @since 4.0.0
|
|
3600
3633
|
*/
|
|
3601
3634
|
[SocketErrorTypeId] = SocketErrorTypeId;
|
|
3602
3635
|
/**
|
|
3603
3636
|
* Returns `true` when the value is a `SocketError`.
|
|
3604
3637
|
*
|
|
3638
|
+
* @stability unstable
|
|
3605
3639
|
* @since 4.0.0
|
|
3606
3640
|
*/
|
|
3607
3641
|
static is(u) {
|
|
@@ -3639,7 +3673,7 @@ var toChannel = (self) => toChannelWithReader(self, readerBytes(self));
|
|
|
3639
3673
|
var toChannelWith = () => (self) => toChannel(self);
|
|
3640
3674
|
var defaultHighWaterMark = 64 * 1024;
|
|
3641
3675
|
|
|
3642
|
-
// ../../node_modules/.bun/effect@
|
|
3676
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpServerRequest.js
|
|
3643
3677
|
var TypeId10 = "~effect/http/HttpServerRequest";
|
|
3644
3678
|
var HttpServerRequest = /* @__PURE__ */ Service("effect/http/HttpServerRequest");
|
|
3645
3679
|
var ParsedSearchParams = class extends (/* @__PURE__ */ Service()("effect/http/ParsedSearchParams")) {
|
|
@@ -4166,7 +4200,7 @@ var toWebResult2 = (self, options3) => {
|
|
|
4166
4200
|
requestInit.signal = options3.signal;
|
|
4167
4201
|
}
|
|
4168
4202
|
if (hasBody(self.method)) {
|
|
4169
|
-
requestInit.body = toReadableStreamWith(self.stream, options3?.context ??
|
|
4203
|
+
requestInit.body = toReadableStreamWith(self.stream, options3?.context ?? empty());
|
|
4170
4204
|
requestInit.duplex = "half";
|
|
4171
4205
|
}
|
|
4172
4206
|
return succeed(new Request(url.value, requestInit));
|
|
@@ -4176,7 +4210,7 @@ var toWeb3 = (self, options3) => contextWith((context2) => fromResult(toWebResul
|
|
|
4176
4210
|
signal: options3?.signal
|
|
4177
4211
|
})));
|
|
4178
4212
|
|
|
4179
|
-
// ../../node_modules/.bun/effect@
|
|
4213
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpMiddleware.js
|
|
4180
4214
|
var loggerDisabledRequests = /* @__PURE__ */ new WeakSet();
|
|
4181
4215
|
var withLoggerDisabled = (self) => withFiber((fiber) => {
|
|
4182
4216
|
const request = getUnsafe(fiber.context, HttpServerRequest);
|
|
@@ -4184,7 +4218,7 @@ var withLoggerDisabled = (self) => withFiber((fiber) => {
|
|
|
4184
4218
|
return self;
|
|
4185
4219
|
});
|
|
4186
4220
|
|
|
4187
|
-
// ../../node_modules/.bun/effect@
|
|
4221
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpRouter.js
|
|
4188
4222
|
var HttpRouter = /* @__PURE__ */ Service("effect/http/HttpRouter");
|
|
4189
4223
|
var removeTrailingSlash = (path) => path.endsWith("/") ? path.slice(0, -1) : path;
|
|
4190
4224
|
var prefixPath = /* @__PURE__ */ dual(2, (self, prefix) => {
|
|
@@ -4238,7 +4272,7 @@ var middlewareCache = /* @__PURE__ */ new WeakMap();
|
|
|
4238
4272
|
var getMiddleware = (context2) => {
|
|
4239
4273
|
let arr = middlewareCache.get(context2);
|
|
4240
4274
|
if (arr) return arr;
|
|
4241
|
-
const topLevel =
|
|
4275
|
+
const topLevel = empty2();
|
|
4242
4276
|
let maxLength = 0;
|
|
4243
4277
|
for (const [key, value] of context2.mapUnsafe) {
|
|
4244
4278
|
if (key.startsWith("effect/http/HttpRouter/Middleware-")) {
|
|
@@ -4266,7 +4300,7 @@ var getMiddleware = (context2) => {
|
|
|
4266
4300
|
};
|
|
4267
4301
|
var disableLogger = middleware(withLoggerDisabled).layer;
|
|
4268
4302
|
|
|
4269
|
-
// ../../node_modules/.bun/effect@
|
|
4303
|
+
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/HttpStatus.js
|
|
4270
4304
|
var codeByLiteral = {
|
|
4271
4305
|
Continue: 100,
|
|
4272
4306
|
SwitchingProtocols: 101,
|
|
@@ -4365,6 +4399,8 @@ export {
|
|
|
4365
4399
|
make3 as make2,
|
|
4366
4400
|
mapRequest,
|
|
4367
4401
|
retryTransient,
|
|
4402
|
+
tap2 as tap,
|
|
4403
|
+
tapError2 as tapError,
|
|
4368
4404
|
TracerPropagationEnabled,
|
|
4369
4405
|
layerMergedContext,
|
|
4370
4406
|
HttpClient_exports,
|