apps 0.0.1-beta.0 → 0.0.1-beta.10

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 (141) hide show
  1. package/README.md +145 -30
  2. package/framework-reference.json +1 -1
  3. package/js/browser-XIPJGLH2.js +65 -0
  4. package/js/{chunk-36DNRFZQ.js → chunk-27F7W2LG.js} +1 -1
  5. package/js/{chunk-VFUZI3NY.js → chunk-57RKNWL2.js} +4 -4
  6. package/js/{chunk-BPEFS4YF.js → chunk-5T57N25Q.js} +122 -18
  7. package/js/chunk-72JNVHPK.js +41 -0
  8. package/js/{chunk-2OTCEKL2.js → chunk-CDL5PM2Q.js} +2643 -1646
  9. package/js/{chunk-KWTCHVLT.js → chunk-CRDWFA74.js} +69 -54
  10. package/js/chunk-CZ7CSFO4.js +39 -0
  11. package/js/{chunk-WIDTG42X.js → chunk-EPT3ZP52.js} +79 -26
  12. package/js/chunk-FL2QR3XW.js +507 -0
  13. package/js/{chunk-3ANFZFCV.js → chunk-IJX4CYZO.js} +15 -18
  14. package/js/chunk-IPI4MFSN.js +78 -0
  15. package/js/chunk-JU7VHODU.js +104 -0
  16. package/js/chunk-KUMBKVJD.js +39 -0
  17. package/js/{chunk-YDR4CPJA.js → chunk-M3B3DE4K.js} +8 -8
  18. package/js/chunk-MKWZPDR6.js +63 -0
  19. package/js/{chunk-7JXHF5IF.js → chunk-N7YDVXYJ.js} +49 -1
  20. package/js/chunk-NKLWZJLE.js +172 -0
  21. package/js/{chunk-OWD2YICM.js → chunk-ODEIDRGW.js} +116 -88
  22. package/js/{chunk-D6BKYP2L.js → chunk-PJJ24GU7.js} +4 -4
  23. package/js/{chunk-EP6AEUZO.js → chunk-PZB6T6KU.js} +1 -1
  24. package/js/chunk-R3EV5FTO.js +97 -0
  25. package/js/chunk-RFVIONFX.js +189 -0
  26. package/js/{chunk-W7Q5EOTS.js → chunk-UK573G7W.js} +32 -32
  27. package/js/chunk-UVL56Z6E.js +6641 -0
  28. package/js/{chunk-Q2FD5IBM.js → chunk-V5KNQVCT.js} +505 -124
  29. package/js/{chunk-SBKHUC5L.js → chunk-VFZKSM3T.js} +5 -25
  30. package/js/{chunk-HP7E42X6.js → chunk-WLE7WX2U.js} +1158 -232
  31. package/js/{chunk-X3YBZCJW.js → chunk-YXQHV65J.js} +58 -62
  32. package/js/chunk-Z5M2LQOZ.js +209 -0
  33. package/js/{chunk-R6JMJSVT.js → chunk-ZQINWV4W.js} +60 -20
  34. package/js/client.js +11 -27
  35. package/js/contracts.js +138 -27
  36. package/js/effect.js +20 -15
  37. package/js/es-APDZKREY.js +40968 -0
  38. package/js/graphql.js +220 -123
  39. package/js/host.js +75 -19
  40. package/js/index.js +261 -117
  41. package/js/mcp/effect.js +24 -17
  42. package/js/mcp/stdio.js +26 -21
  43. package/js/mcp.js +127 -26
  44. package/js/openapi.js +3048 -150
  45. package/js/operations/approval.js +1 -1
  46. package/js/react.js +4 -4
  47. package/js/skills/effect.js +11 -0
  48. package/js/skills.js +893 -0
  49. package/js/storage/facet.js +7 -7
  50. package/js/ui/auth/contracts.js +9 -10
  51. package/js/ui/auth.js +17 -15
  52. package/js/ui/contracts.js +5 -5
  53. package/js/ui/serving.js +14 -13
  54. package/package.json +9 -1
  55. package/runtime.json +1 -1
  56. package/types/app-cache/src/contracts/cache.d.ts +119 -0
  57. package/types/app-cache/src/index.d.ts +93 -0
  58. package/types/app-data/src/contracts/database.d.ts +33 -6
  59. package/types/app-data/src/implementation/schema.d.ts +2 -17
  60. package/types/apps/src/contracts/api-response-error.d.ts +43 -0
  61. package/types/apps/src/contracts/app.d.ts +16 -4
  62. package/types/apps/src/contracts/cache.d.ts +44 -0
  63. package/types/apps/src/contracts/dynamic-skills.d.ts +10 -0
  64. package/types/apps/src/contracts/failure.d.ts +25 -0
  65. package/types/apps/src/contracts/graphql.d.ts +18 -1
  66. package/types/apps/src/contracts/host.d.ts +76 -528
  67. package/types/apps/src/contracts/mcp.d.ts +19 -1
  68. package/types/apps/src/contracts/openapi-compile.d.ts +11 -0
  69. package/types/apps/src/contracts/openapi-document.d.ts +53 -0
  70. package/types/apps/src/contracts/openapi.d.ts +160 -30
  71. package/types/apps/src/contracts/operations.d.ts +0 -5
  72. package/types/apps/src/contracts/protocol-version.d.ts +6 -0
  73. package/types/apps/src/contracts/protocols/1.d.ts +1589 -0
  74. package/types/apps/src/contracts/protocols/2.d.ts +668 -0
  75. package/types/apps/src/contracts/protocols/3.d.ts +676 -0
  76. package/types/apps/src/contracts/protocols/4.d.ts +1229 -0
  77. package/types/apps/src/contracts/protocols/5.d.ts +1090 -0
  78. package/types/apps/src/contracts/provider-error.d.ts +15 -0
  79. package/types/apps/src/contracts/provider.d.ts +69 -6
  80. package/types/apps/src/contracts/router.d.ts +59 -0
  81. package/types/apps/src/contracts/skills.d.ts +122 -0
  82. package/types/apps/src/contracts/storage.d.ts +3 -3
  83. package/types/apps/src/contracts/swagger-client.d.ts +29 -0
  84. package/types/apps/src/contracts/ui-auth.d.ts +6 -14
  85. package/types/apps/src/contracts/workflows.d.ts +34 -3
  86. package/types/apps/src/graphql.d.ts +5 -7
  87. package/types/apps/src/host.d.ts +1 -0
  88. package/types/apps/src/implementation/account-router.d.ts +12 -0
  89. package/types/apps/src/implementation/app.d.ts +5 -4
  90. package/types/apps/src/implementation/cache-session.d.ts +7 -0
  91. package/types/apps/src/implementation/cache.d.ts +8 -0
  92. package/types/apps/src/implementation/catalog-cache.d.ts +36 -0
  93. package/types/apps/src/implementation/dynamic-skills.d.ts +7 -0
  94. package/types/apps/src/implementation/elicitation.d.ts +13 -13
  95. package/types/apps/src/implementation/failure-detail.d.ts +25 -0
  96. package/types/apps/src/implementation/git.d.ts +25 -0
  97. package/types/apps/src/implementation/graphql-catalog.d.ts +7 -0
  98. package/types/apps/src/implementation/graphql.d.ts +81 -3
  99. package/types/apps/src/implementation/inflate.d.ts +16 -0
  100. package/types/apps/src/implementation/input-problems.d.ts +3 -0
  101. package/types/apps/src/implementation/mcp-call.d.ts +3 -2
  102. package/types/apps/src/implementation/mcp-catalog.d.ts +9 -0
  103. package/types/apps/src/implementation/mcp-client.d.ts +39 -22
  104. package/types/apps/src/implementation/mcp-stdio.d.ts +1 -1
  105. package/types/apps/src/implementation/mcp-tools.d.ts +6 -3
  106. package/types/apps/src/implementation/mcp.d.ts +55 -2
  107. package/types/apps/src/implementation/openapi-compile.d.ts +120 -0
  108. package/types/apps/src/implementation/openapi-document.d.ts +51 -0
  109. package/types/apps/src/implementation/openapi-names.d.ts +18 -0
  110. package/types/apps/src/implementation/openapi-request.d.ts +10 -4
  111. package/types/apps/src/implementation/openapi-source.d.ts +36 -0
  112. package/types/apps/src/implementation/openapi.d.ts +39 -3
  113. package/types/apps/src/implementation/operations.d.ts +26 -3
  114. package/types/apps/src/implementation/protocol-operations.d.ts +3 -4
  115. package/types/apps/src/implementation/provider-error.d.ts +10 -0
  116. package/types/apps/src/implementation/provider.d.ts +9 -4
  117. package/types/apps/src/implementation/router-catalog.d.ts +225 -0
  118. package/types/apps/src/implementation/router.d.ts +59 -0
  119. package/types/apps/src/implementation/schema.d.ts +11 -6
  120. package/types/apps/src/implementation/skill-files.d.ts +10 -0
  121. package/types/apps/src/implementation/skills.d.ts +43 -0
  122. package/types/apps/src/implementation/storage.d.ts +5 -3
  123. package/types/apps/src/implementation/swagger-client.d.ts +28 -0
  124. package/types/apps/src/implementation/ui-auth.d.ts +11 -5
  125. package/types/apps/src/implementation/ui-serving.d.ts +4 -2
  126. package/types/apps/src/implementation/webhooks.d.ts +1 -1
  127. package/types/apps/src/implementation/workflow-context.d.ts +11 -3
  128. package/types/apps/src/index.d.ts +11 -3
  129. package/types/apps/src/mcp-stdio.d.ts +2 -5
  130. package/types/apps/src/mcp.d.ts +8 -7
  131. package/types/apps/src/openapi.d.ts +8 -6
  132. package/types/apps/src/skills.d.ts +75 -0
  133. package/types/apps/src/ui-auth.d.ts +2 -2
  134. package/types/telemetry/src/browser-operations.d.ts +5 -2
  135. package/types/telemetry/src/config.d.ts +2 -0
  136. package/js/chunk-22WRQZT7.js +0 -389
  137. package/js/chunk-BKVL7XAJ.js +0 -47
  138. package/js/chunk-C24KEZXR.js +0 -59
  139. package/js/chunk-LOKGDT6B.js +0 -28
  140. package/js/chunk-MLKGABMK.js +0 -9
  141. package/types/apps/src/implementation/account-operations.d.ts +0 -32
@@ -0,0 +1,189 @@
1
+ import {
2
+ CacheError
3
+ } from "./chunk-R3EV5FTO.js";
4
+ import {
5
+ wrap
6
+ } from "./chunk-5T57N25Q.js";
7
+ import {
8
+ JsonObject
9
+ } from "./chunk-27F7W2LG.js";
10
+ import {
11
+ Duration_exports,
12
+ Effect_exports,
13
+ Schema_exports
14
+ } from "./chunk-CDL5PM2Q.js";
15
+
16
+ // src/implementation/catalog-cache.ts
17
+ var schema = (decoder) => wrap(decoder, false);
18
+ var Manifest = Schema_exports.Struct({
19
+ revision: Schema_exports.String,
20
+ pages: Schema_exports.Int,
21
+ summaries: Schema_exports.Int,
22
+ header: Schema_exports.optionalKey(JsonObject)
23
+ });
24
+ var invoke = (work) => Effect_exports.tryPromise({ try: work, catch: (error) => error });
25
+ var catalogCache = (options) => Effect_exports.gen(function* () {
26
+ const cache = options.cache;
27
+ const key = [...options.prefix, "current"];
28
+ const part = (revision, kind, name) => [
29
+ ...options.prefix,
30
+ revision,
31
+ kind,
32
+ name
33
+ ];
34
+ const freshFor = options.freshFor ?? "5 minutes";
35
+ const staleFor = options.staleFor ?? "1 day";
36
+ const retention = Duration_exports.toMillis(Duration_exports.fromInputUnsafe(freshFor)) + Duration_exports.toMillis(Duration_exports.fromInputUnsafe(staleFor)) + 3e5;
37
+ const local = yield* Effect_exports.cached(options.load());
38
+ const refresh = (context) => Effect_exports.gen(function* () {
39
+ const { tools, header } = yield* options.load(context);
40
+ const digest = yield* invoke(
41
+ () => crypto.subtle.digest(
42
+ "SHA-256",
43
+ new TextEncoder().encode(JSON.stringify({ tools, header: header ?? null }))
44
+ )
45
+ );
46
+ const revision = Array.from(
47
+ new Uint8Array(digest),
48
+ (byte) => byte.toString(16).padStart(2, "0")
49
+ ).join("");
50
+ let pages2 = 0;
51
+ let page = [];
52
+ let pageBytes = 0;
53
+ let summaries = 0;
54
+ let summary = [];
55
+ let summaryBytes = 0;
56
+ let batch = [];
57
+ let batchBytes = 0;
58
+ let flushes = 0;
59
+ const flush = () => Effect_exports.suspend(() => {
60
+ const entries = batch;
61
+ const bytes = batchBytes;
62
+ batch = [];
63
+ batchBytes = 0;
64
+ if (!entries.length) return Effect_exports.void;
65
+ return invoke(() => context.cache.write(entries, retention)).pipe(
66
+ Effect_exports.withSpan("app.cache.flush", {
67
+ attributes: {
68
+ "cache.flush.index": flushes++,
69
+ "cache.flush.entries": entries.length,
70
+ "cache.flush.bytes": bytes
71
+ }
72
+ })
73
+ );
74
+ });
75
+ const append = (entry) => Effect_exports.gen(function* () {
76
+ const bytes = new TextEncoder().encode(JSON.stringify(entry)).byteLength;
77
+ if (batch.length && (batch.length >= 64 || batchBytes + bytes > 4e6))
78
+ yield* flush();
79
+ batch.push(entry);
80
+ batchBytes += bytes;
81
+ });
82
+ const pageOut = () => Effect_exports.gen(function* () {
83
+ if (!page.length) return;
84
+ yield* append({ key: part(revision, "page", pages2++), value: page });
85
+ page = [];
86
+ pageBytes = 0;
87
+ });
88
+ const summaryOut = () => Effect_exports.gen(function* () {
89
+ if (!summary.length) return;
90
+ yield* append({ key: part(revision, "summary", summaries++), value: summary });
91
+ summary = [];
92
+ summaryBytes = 0;
93
+ });
94
+ const json = (value) => Schema_exports.decodeUnknownEffect(Schema_exports.fromJsonString(JsonObject))(JSON.stringify(value));
95
+ for (const tool of tools) {
96
+ const value = yield* json(tool);
97
+ const bytes = new TextEncoder().encode(JSON.stringify(value)).byteLength;
98
+ if (page.length && (page.length >= 64 || pageBytes + bytes > 5e5)) yield* pageOut();
99
+ yield* append({ key: part(revision, "tool", tool.name), value });
100
+ page.push(value);
101
+ pageBytes += bytes;
102
+ const brief = yield* json(options.summary.of(tool));
103
+ const briefBytes = new TextEncoder().encode(JSON.stringify(brief)).byteLength;
104
+ if (summary.length && summaryBytes + briefBytes > 5e5) yield* summaryOut();
105
+ summary.push(brief);
106
+ summaryBytes += briefBytes;
107
+ }
108
+ yield* pageOut();
109
+ yield* summaryOut();
110
+ yield* flush();
111
+ return {
112
+ revision,
113
+ pages: pages2,
114
+ summaries,
115
+ ...header === void 0 ? {} : { header: yield* json(header) }
116
+ };
117
+ });
118
+ const getOptions = {
119
+ key,
120
+ schema: schema(Manifest),
121
+ freshFor,
122
+ staleFor,
123
+ load: (context) => Effect_exports.runPromise(refresh(context), { signal: context.signal })
124
+ };
125
+ let reading;
126
+ const current = () => cache === void 0 ? Effect_exports.fail(new CacheError({ reason: "unavailable" })) : invoke(
127
+ () => reading ??= cache.get(getOptions).finally(() => {
128
+ reading = void 0;
129
+ })
130
+ );
131
+ if (options.revalidate) {
132
+ if (cache === void 0) yield* local;
133
+ else yield* invoke(() => cache.revalidate(getOptions));
134
+ }
135
+ const pages = (cache2, revision, kind, count, decoder) => Effect_exports.gen(function* () {
136
+ const batches = yield* Effect_exports.forEach(
137
+ Array.from({ length: Math.ceil(count / 4) }, (_, batch) => batch * 4),
138
+ (offset) => invoke(
139
+ () => cache2.readMany(
140
+ Array.from(
141
+ { length: Math.min(4, count - offset) },
142
+ (_, index) => part(revision, kind, offset + index)
143
+ ),
144
+ schema(Schema_exports.Array(decoder))
145
+ )
146
+ ),
147
+ { concurrency: "unbounded" }
148
+ );
149
+ const values = [];
150
+ for (const page of batches.flat()) {
151
+ if (page === void 0) return yield* new CacheError({ reason: "unavailable" });
152
+ values.push(...page);
153
+ }
154
+ return values;
155
+ });
156
+ const metadata = () => Effect_exports.gen(function* () {
157
+ if (cache === void 0) return (yield* local).tools;
158
+ const manifest = yield* current();
159
+ return yield* pages(cache, manifest.revision, "page", manifest.pages, options.schema);
160
+ });
161
+ return {
162
+ list: metadata,
163
+ /** The record stored with the current revision, if the source supplied one. */
164
+ header: () => cache === void 0 ? local.pipe(Effect_exports.map(({ header }) => header)) : current().pipe(Effect_exports.map((manifest) => manifest.header)),
165
+ summaries: () => Effect_exports.gen(function* () {
166
+ if (cache === void 0)
167
+ return (yield* local).tools.map((tool) => options.summary.of(tool));
168
+ const manifest = yield* current();
169
+ return yield* pages(
170
+ cache,
171
+ manifest.revision,
172
+ "summary",
173
+ manifest.summaries,
174
+ options.summary.schema
175
+ );
176
+ }),
177
+ resolve: (name) => cache === void 0 ? local.pipe(Effect_exports.map(({ tools }) => tools.find((tool) => tool.name === name))) : current().pipe(
178
+ Effect_exports.flatMap(
179
+ (manifest) => invoke(
180
+ () => cache.read(part(manifest.revision, "tool", name), schema(options.schema))
181
+ )
182
+ )
183
+ )
184
+ };
185
+ });
186
+
187
+ export {
188
+ catalogCache
189
+ };
@@ -211,12 +211,12 @@ import {
211
211
  withFiber,
212
212
  withParentSpan,
213
213
  zero2 as zero
214
- } from "./chunk-2OTCEKL2.js";
214
+ } from "./chunk-CDL5PM2Q.js";
215
215
  import {
216
216
  __export
217
- } from "./chunk-MLKGABMK.js";
217
+ } from "./chunk-CZ7CSFO4.js";
218
218
 
219
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpClientRequest.js
219
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/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@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpBody.js
272
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpBody.js
273
273
  var HttpBody_exports = {};
274
274
  __export(HttpBody_exports, {
275
275
  Empty: () => Empty,
@@ -500,11 +500,11 @@ var fileContentLength = /* @__PURE__ */ fnUntraced(function* (size, method, opti
500
500
  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
501
  var fileFromInfo = (path, info, options3) => flatMap(FileSystem, (fs) => map(fileContentLength(info.size, "fileFromInfo", options3), (contentLength) => stream(fs.stream(path, options3), options3?.contentType, contentLength)));
502
502
 
503
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpMethod.js
503
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpMethod.js
504
504
  var hasBody = (method) => method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE";
505
505
  var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"], ["QUERY", "query"]];
506
506
 
507
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/internal/httpBody.js
507
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/internal/httpBody.js
508
508
  var updateHeaders = (headers, body) => {
509
509
  if (body._tag === "Empty" || body._tag === "FormData") {
510
510
  return remove2(remove2(headers, "content-type"), "content-length");
@@ -520,7 +520,7 @@ var parseContentLength = (contentLength) => {
520
520
  return Number.isSafeInteger(parsed) ? parsed : void 0;
521
521
  };
522
522
 
523
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/Url.js
523
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/Url.js
524
524
  var UrlError = class extends (/* @__PURE__ */ TaggedError("UrlError")) {
525
525
  };
526
526
  var make = (url, params, hash) => try_({
@@ -548,7 +548,7 @@ var baseUrl = () => {
548
548
  return void 0;
549
549
  };
550
550
 
551
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpClientRequest.js
551
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpClientRequest.js
552
552
  var TypeId2 = "~effect/http/HttpClientRequest";
553
553
  var isHttpClientRequest = (u) => hasProperty(u, TypeId2);
554
554
  var Proto2 = {
@@ -758,7 +758,7 @@ var toWeb = (self, options3) => contextWith((context2) => fromResult(toWebResult
758
758
  signal: options3?.signal
759
759
  })));
760
760
 
761
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpClient.js
761
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpClient.js
762
762
  var HttpClient_exports = {};
763
763
  __export(HttpClient_exports, {
764
764
  HttpClient: () => HttpClient,
@@ -803,7 +803,7 @@ __export(HttpClient_exports, {
803
803
  withScope: () => withScope
804
804
  });
805
805
 
806
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpClientError.js
806
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpClientError.js
807
807
  var HttpClientError_exports = {};
808
808
  __export(HttpClientError_exports, {
809
809
  DecodeError: () => DecodeError,
@@ -987,7 +987,7 @@ var HttpClientErrorSchema = class _HttpClientErrorSchema extends (/* @__PURE__ *
987
987
  }
988
988
  };
989
989
 
990
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
990
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
991
991
  var TypeId4 = "~effect/http/HttpIncomingMessage";
992
992
  var schemaBodyJson2 = (schema, options3) => {
993
993
  const decode = decodeEffect(toCodecJson(schema));
@@ -1026,7 +1026,7 @@ var inspect = (self, that) => {
1026
1026
  return obj;
1027
1027
  };
1028
1028
 
1029
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpClientResponse.js
1029
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpClientResponse.js
1030
1030
  var TypeId5 = "~effect/http/HttpClientResponse";
1031
1031
  var fromWeb2 = (request, source) => new WebHttpClientResponse(request, source);
1032
1032
  var filterStatus = /* @__PURE__ */ dual(2, (self, f) => suspend(() => f(self.status) ? succeed2(self) : fail3(new HttpClientError({
@@ -1166,7 +1166,7 @@ var WebHttpClientResponse = class extends Class {
1166
1166
  }
1167
1167
  };
1168
1168
 
1169
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpTraceContext.js
1169
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpTraceContext.js
1170
1170
  var HttpTraceContext_exports = {};
1171
1171
  __export(HttpTraceContext_exports, {
1172
1172
  b3: () => b3,
@@ -1245,7 +1245,7 @@ var w3c = (headers) => {
1245
1245
  }
1246
1246
  };
1247
1247
 
1248
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpClient.js
1248
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpClient.js
1249
1249
  var TypeId6 = "~effect/http/HttpClient";
1250
1250
  var isHttpClient = (u) => hasProperty(u, TypeId6);
1251
1251
  var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
@@ -1745,7 +1745,7 @@ var isTransientHttpError = (error) => isHttpClientError(error) && (error.reason.
1745
1745
  var isTooManyRequestsHttpClientError = (error) => isHttpClientError(error) && error.reason._tag === "StatusCodeError" && error.reason.response.status === 429;
1746
1746
  var isTransientResponse = (response) => response.status === 408 || response.status === 429 || response.status === 500 || response.status === 502 || response.status === 503 || response.status === 504;
1747
1747
 
1748
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/Template.js
1748
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/Template.js
1749
1749
  function make4(strings, ...args) {
1750
1750
  const argsLength = args.length;
1751
1751
  const values = new Array(argsLength);
@@ -1839,7 +1839,7 @@ function isSuccess2(u) {
1839
1839
  return isExit(u) && u._tag === "Success";
1840
1840
  }
1841
1841
 
1842
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpServerResponse.js
1842
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpServerResponse.js
1843
1843
  var HttpServerResponse_exports = {};
1844
1844
  __export(HttpServerResponse_exports, {
1845
1845
  empty: () => empty9,
@@ -1881,11 +1881,11 @@ __export(HttpServerResponse_exports, {
1881
1881
  urlParams: () => urlParams2
1882
1882
  });
1883
1883
 
1884
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/internal/headers.js
1884
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/internal/headers.js
1885
1885
  var Proto4 = /* @__PURE__ */ Object.getPrototypeOf(empty4);
1886
1886
  var emptyMutableUnsafe = () => Object.create(Proto4);
1887
1887
 
1888
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpServerResponse.js
1888
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpServerResponse.js
1889
1889
  var TypeId7 = "~effect/http/HttpServerResponse";
1890
1890
  var isHttpServerResponse = (u) => hasProperty(u, TypeId7);
1891
1891
  var empty9 = (options3) => makeResponse({
@@ -2413,10 +2413,10 @@ var fromWeb3 = (response) => {
2413
2413
  return self;
2414
2414
  };
2415
2415
 
2416
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
2416
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
2417
2417
  var symbol = "~effect/http/HttpServerRespondable";
2418
2418
 
2419
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpServerError.js
2419
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpServerError.js
2420
2420
  var TypeId8 = "~effect/http/HttpServerError";
2421
2421
  var HttpServerError = class extends (/* @__PURE__ */ TaggedError("HttpServerError")) {
2422
2422
  constructor(props) {
@@ -2516,7 +2516,7 @@ var formatRequestMessage = (reason, description, info) => {
2516
2516
  return description ? `${prefix}: ${description}` : prefix;
2517
2517
  };
2518
2518
 
2519
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/MultipartParser/internal/contentType.js
2519
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/MultipartParser/internal/contentType.js
2520
2520
  var paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u{10ffff}]|\\[\v\u0020-\u{10ffff}])*"|[!#$%&'*+.^\w`|~-]+) */gu;
2521
2521
  var quotedPairRE = /\\([\v\u0020-\u{10ffff}])/gu;
2522
2522
  var mediaTypeRE = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;
@@ -2567,7 +2567,7 @@ function parse(header, withoutSlash = false) {
2567
2567
  return result;
2568
2568
  }
2569
2569
 
2570
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/MultipartParser/internal/headers.js
2570
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/MultipartParser/internal/headers.js
2571
2571
  var constMaxPairs = 100;
2572
2572
  var constMaxSize = 16 * 1024;
2573
2573
  var State = {
@@ -2772,7 +2772,7 @@ function make5() {
2772
2772
  };
2773
2773
  }
2774
2774
 
2775
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/MultipartParser/internal/search.js
2775
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/MultipartParser/internal/search.js
2776
2776
  function makeState(needle_) {
2777
2777
  const needle = new TextEncoder().encode(needle_);
2778
2778
  const needleLength = needle.length;
@@ -2892,7 +2892,7 @@ function make6(needle, callback2, seed, minimumChunkLength) {
2892
2892
  };
2893
2893
  }
2894
2894
 
2895
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/MultipartParser/internal/multipart.js
2895
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/MultipartParser/internal/multipart.js
2896
2896
  var State2 = {
2897
2897
  headers: 0,
2898
2898
  body: 1
@@ -3136,12 +3136,12 @@ function decodeField(info, value) {
3136
3136
  return getDecoder(info.contentTypeParameters.charset ?? "utf-8").decode(value);
3137
3137
  }
3138
3138
 
3139
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/MultipartParser.js
3139
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/MultipartParser.js
3140
3140
  var make8 = make7;
3141
3141
  var defaultIsFile2 = defaultIsFile;
3142
3142
  var decodeField2 = decodeField;
3143
3143
 
3144
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/Multipart.js
3144
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/Multipart.js
3145
3145
  var TypeId9 = "~effect/http/Multipart";
3146
3146
  var MultipartErrorTypeId = "~effect/http/Multipart/MultipartError";
3147
3147
  var toMultipartError = (cause) => hasProperty(cause, MultipartErrorTypeId) ? cause : MultipartError.fromReason("InternalError", cause);
@@ -3443,7 +3443,7 @@ var FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeT
3443
3443
  defaultValue: /* @__PURE__ */ constant(["application/json"])
3444
3444
  });
3445
3445
 
3446
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpServerRequest.js
3446
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpServerRequest.js
3447
3447
  var HttpServerRequest_exports = {};
3448
3448
  __export(HttpServerRequest_exports, {
3449
3449
  HttpServerRequest: () => HttpServerRequest,
@@ -3468,7 +3468,7 @@ __export(HttpServerRequest_exports, {
3468
3468
  upgradeChannel: () => upgradeChannel
3469
3469
  });
3470
3470
 
3471
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/socket/Socket.js
3471
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/socket/Socket.js
3472
3472
  var encoder2 = /* @__PURE__ */ new TextEncoder();
3473
3473
  var readerBytes = (self) => map(self.reader, ({
3474
3474
  pull
@@ -3639,7 +3639,7 @@ var toChannel = (self) => toChannelWithReader(self, readerBytes(self));
3639
3639
  var toChannelWith = () => (self) => toChannel(self);
3640
3640
  var defaultHighWaterMark = 64 * 1024;
3641
3641
 
3642
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpServerRequest.js
3642
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpServerRequest.js
3643
3643
  var TypeId10 = "~effect/http/HttpServerRequest";
3644
3644
  var HttpServerRequest = /* @__PURE__ */ Service("effect/http/HttpServerRequest");
3645
3645
  var ParsedSearchParams = class extends (/* @__PURE__ */ Service()("effect/http/ParsedSearchParams")) {
@@ -4176,7 +4176,7 @@ var toWeb3 = (self, options3) => contextWith((context2) => fromResult(toWebResul
4176
4176
  signal: options3?.signal
4177
4177
  })));
4178
4178
 
4179
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpMiddleware.js
4179
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpMiddleware.js
4180
4180
  var loggerDisabledRequests = /* @__PURE__ */ new WeakSet();
4181
4181
  var withLoggerDisabled = (self) => withFiber((fiber) => {
4182
4182
  const request = getUnsafe(fiber.context, HttpServerRequest);
@@ -4184,7 +4184,7 @@ var withLoggerDisabled = (self) => withFiber((fiber) => {
4184
4184
  return self;
4185
4185
  });
4186
4186
 
4187
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpRouter.js
4187
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpRouter.js
4188
4188
  var HttpRouter = /* @__PURE__ */ Service("effect/http/HttpRouter");
4189
4189
  var removeTrailingSlash = (path) => path.endsWith("/") ? path.slice(0, -1) : path;
4190
4190
  var prefixPath = /* @__PURE__ */ dual(2, (self, prefix) => {
@@ -4266,7 +4266,7 @@ var getMiddleware = (context2) => {
4266
4266
  };
4267
4267
  var disableLogger = middleware(withLoggerDisabled).layer;
4268
4268
 
4269
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d/node_modules/effect/dist/unstable/http/HttpStatus.js
4269
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/http/HttpStatus.js
4270
4270
  var codeByLiteral = {
4271
4271
  Continue: 100,
4272
4272
  SwitchingProtocols: 101,