apps 0.0.1-beta.34 → 0.0.1-beta.35

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 (78) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-PUBNIORL.js → chunk-5CQMUXW7.js} +2 -2
  3. package/js/{chunk-DSUKW6KJ.js → chunk-5KNA2Z5I.js} +13 -11
  4. package/js/{chunk-UMCMZFXW.js → chunk-73AV3JVU.js} +1 -1
  5. package/js/{chunk-6ZJ2H6P4.js → chunk-A4O72Z3A.js} +298 -190
  6. package/js/{chunk-FBBXFFFJ.js → chunk-BI45HZWM.js} +2 -2
  7. package/js/{chunk-DXGWKNTQ.js → chunk-BI6R577B.js} +2 -2
  8. package/js/{chunk-IU6OK5G2.js → chunk-ENJCQWVF.js} +3 -3
  9. package/js/{chunk-OX233L7N.js → chunk-FFTALB6S.js} +2 -2
  10. package/js/{chunk-DASNNAP4.js → chunk-HDAQBRT5.js} +391 -14
  11. package/js/{chunk-HW3DPBZR.js → chunk-I7CNZ4CM.js} +1 -1
  12. package/js/{chunk-QKVZGWGZ.js → chunk-IA3VSGR4.js} +7 -7
  13. package/js/{chunk-EXGKN554.js → chunk-IJQ5LE74.js} +9805 -9254
  14. package/js/{chunk-5JVNM3CQ.js → chunk-IU7CCCUC.js} +12 -12
  15. package/js/{chunk-Q7Q5JTRW.js → chunk-JU7F4PRK.js} +2 -2
  16. package/js/{chunk-QZD2RZ4S.js → chunk-KBXQOJYW.js} +8 -8
  17. package/js/{chunk-CJY5X26R.js → chunk-KOOJUMLR.js} +86 -50
  18. package/js/{chunk-ETLILMHY.js → chunk-KZFV3WCJ.js} +21 -19
  19. package/js/{chunk-MYH3QZ4L.js → chunk-LUROQKFP.js} +9 -9
  20. package/js/{chunk-ZOY7PDMI.js → chunk-NHCFIWN5.js} +1 -1
  21. package/js/chunk-NHUHTWAF.js +0 -0
  22. package/js/{chunk-QYM4STZW.js → chunk-PHO7HXTC.js} +149 -353
  23. package/js/{chunk-O3OAFU7Q.js → chunk-POOIHRPF.js} +2 -2
  24. package/js/{chunk-AUFVX4KM.js → chunk-RSNZDT4L.js} +2 -2
  25. package/js/{chunk-EPUWF4ZG.js → chunk-SRB2WDU7.js} +3 -3
  26. package/js/{chunk-MFHUR5SB.js → chunk-TADLIUEU.js} +4 -4
  27. package/js/{chunk-5OM6HBNU.js → chunk-UWOIEJ56.js} +18 -18
  28. package/js/chunk-V5DWGYRK.js +268 -0
  29. package/js/{chunk-QUEPZ67T.js → chunk-VBVOPW4U.js} +3 -3
  30. package/js/{chunk-GZ4UHXRT.js → chunk-WDBUOIWV.js} +3 -3
  31. package/js/{chunk-6KG4DZD7.js → chunk-Y3XN4X4Q.js} +1 -1
  32. package/js/{chunk-UKMIHP2G.js → chunk-YW333DH3.js} +4 -4
  33. package/js/{chunk-O4QOPXQT.js → chunk-YYK6GEMC.js} +11 -11
  34. package/js/client.js +12 -11
  35. package/js/contracts.js +10 -9
  36. package/js/effect.js +23 -21
  37. package/js/graphql.js +25 -23
  38. package/js/host.js +23 -21
  39. package/js/index.js +16 -14
  40. package/js/mcp/effect.js +25 -23
  41. package/js/mcp/stdio.js +25 -23
  42. package/js/mcp.js +27 -25
  43. package/js/openapi.js +22 -21
  44. package/js/react.js +3 -3
  45. package/js/skills/effect.js +6 -5
  46. package/js/skills.js +18 -16
  47. package/js/storage/facet.js +19 -345
  48. package/js/ui/auth/contracts.js +2 -2
  49. package/js/ui/auth.js +5 -5
  50. package/js/ui/contracts.js +6 -5
  51. package/js/ui/serving.js +10 -9
  52. package/package.json +3 -3
  53. package/runtime.json +1 -1
  54. package/types/app-data/src/implementation/sqlite.d.ts +1 -1
  55. package/types/apps/src/contracts/elicitation.d.ts +6 -6
  56. package/types/apps/src/contracts/protocols/1.d.ts +4 -4
  57. package/types/apps/src/contracts/protocols/2.d.ts +4 -4
  58. package/types/apps/src/contracts/protocols/3.d.ts +4 -4
  59. package/types/apps/src/contracts/protocols/4.d.ts +4 -4
  60. package/types/apps/src/contracts/protocols/5.d.ts +4 -4
  61. package/types/apps/src/contracts/protocols/6.d.ts +4 -4
  62. package/types/apps/src/contracts/protocols/7.d.ts +4 -4
  63. package/types/apps/src/contracts/protocols/8.d.ts +4 -4
  64. package/types/apps/src/contracts/ui.d.ts +1 -1
  65. package/types/apps/src/implementation/live.d.ts +2 -2
  66. package/types/apps/src/implementation/network.d.ts +1 -1
  67. package/types/apps/src/implementation/optimistic.d.ts +1 -1
  68. package/types/apps/src/implementation/query-commit.d.ts +1 -1
  69. package/types/apps/src/implementation/ui-auth.d.ts +1 -1
  70. package/types/apps/src/implementation/ui-client.d.ts +1 -1
  71. package/types/apps/src/implementation/ui-serving.d.ts +1 -1
  72. package/types/apps/src/react.d.ts +1 -1
  73. package/types/telemetry/src/browser-operations.d.ts +1 -1
  74. package/types/telemetry/src/browser.d.ts +2 -2
  75. package/types/telemetry/src/layer.d.ts +2 -2
  76. package/types/telemetry/src/relay.d.ts +2 -2
  77. package/types/telemetry/src/transport.d.ts +1 -1
  78. package/types/utils/src/api-error.d.ts +1 -1
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  folderSkillsEffect,
3
3
  skillFromFiles
4
- } from "../chunk-OX233L7N.js";
5
- import "../chunk-HW3DPBZR.js";
6
- import "../chunk-QYM4STZW.js";
7
- import "../chunk-CJY5X26R.js";
8
- import "../chunk-EXGKN554.js";
4
+ } from "../chunk-FFTALB6S.js";
5
+ import "../chunk-I7CNZ4CM.js";
6
+ import "../chunk-PHO7HXTC.js";
7
+ import "../chunk-V5DWGYRK.js";
8
+ import "../chunk-KOOJUMLR.js";
9
+ import "../chunk-IJQ5LE74.js";
9
10
  import "../chunk-CZ7CSFO4.js";
10
11
  export {
11
12
  folderSkillsEffect,
package/js/skills.js CHANGED
@@ -1,24 +1,25 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-UKMIHP2G.js";
5
- import "./chunk-Q7Q5JTRW.js";
4
+ } from "./chunk-YW333DH3.js";
5
+ import "./chunk-JU7F4PRK.js";
6
6
  import {
7
7
  failOnNetworkRefusal
8
- } from "./chunk-EPUWF4ZG.js";
8
+ } from "./chunk-SRB2WDU7.js";
9
9
  import {
10
10
  folderSkillsEffect,
11
11
  skillFromFiles
12
- } from "./chunk-OX233L7N.js";
12
+ } from "./chunk-FFTALB6S.js";
13
13
  import {
14
14
  accountProviderError,
15
15
  httpProviderError
16
- } from "./chunk-IU6OK5G2.js";
16
+ } from "./chunk-ENJCQWVF.js";
17
+ import "./chunk-NHUHTWAF.js";
17
18
  import {
18
19
  NetworkRefused,
19
20
  ProviderError,
20
21
  networkRefusalStatus
21
- } from "./chunk-DXGWKNTQ.js";
22
+ } from "./chunk-BI6R577B.js";
22
23
  import {
23
24
  AppSkillMetadata,
24
25
  AppSkillSource,
@@ -28,27 +29,28 @@ import {
28
29
  SkillLoadFailed,
29
30
  SkillServiceName,
30
31
  skillLoadLimits
31
- } from "./chunk-HW3DPBZR.js";
32
- import "./chunk-ETLILMHY.js";
32
+ } from "./chunk-I7CNZ4CM.js";
33
+ import "./chunk-KZFV3WCJ.js";
33
34
  import {
34
35
  FetchHttpClient_exports
35
- } from "./chunk-MFHUR5SB.js";
36
+ } from "./chunk-TADLIUEU.js";
36
37
  import {
37
38
  wrap
38
- } from "./chunk-O3OAFU7Q.js";
39
- import "./chunk-FBBXFFFJ.js";
40
- import "./chunk-QYM4STZW.js";
39
+ } from "./chunk-POOIHRPF.js";
40
+ import "./chunk-BI45HZWM.js";
41
+ import "./chunk-PHO7HXTC.js";
42
+ import "./chunk-V5DWGYRK.js";
41
43
  import {
42
44
  HttpBody_exports,
43
45
  HttpClient_exports
44
- } from "./chunk-CJY5X26R.js";
46
+ } from "./chunk-KOOJUMLR.js";
45
47
  import {
48
+ Base64_exports,
46
49
  Effect_exports,
47
- Encoding_exports,
48
50
  Ref_exports,
49
51
  Schema_exports,
50
52
  Stream_exports
51
- } from "./chunk-EXGKN554.js";
53
+ } from "./chunk-IJQ5LE74.js";
52
54
  import "./chunk-CZ7CSFO4.js";
53
55
 
54
56
  // src/implementation/inflate.ts
@@ -715,7 +717,7 @@ var githubRequests = (remote, repo, token) => {
715
717
  body,
716
718
  headers: {
717
719
  ...gitRequestHeaders,
718
- ...token === void 0 ? {} : { Authorization: `Basic ${Encoding_exports.encodeBase64(`x-access-token:${token}`)}` }
720
+ ...token === void 0 ? {} : { Authorization: `Basic ${Base64_exports.encode(`x-access-token:${token}`)}` }
719
721
  },
720
722
  refused: refused(githubHosts[0])
721
723
  });
@@ -1,23 +1,25 @@
1
1
  import {
2
2
  SqlClient,
3
+ SqlError,
4
+ UnknownError,
5
+ classifySqliteError,
3
6
  defaultTransforms,
4
7
  layer,
5
8
  make as make3,
6
9
  makeCompilerSqlite
7
- } from "../chunk-DASNNAP4.js";
10
+ } from "../chunk-HDAQBRT5.js";
8
11
  import {
9
12
  makeSqliteDatabase
10
- } from "../chunk-5JVNM3CQ.js";
11
- import "../chunk-UMCMZFXW.js";
13
+ } from "../chunk-IU7CCCUC.js";
14
+ import "../chunk-NHUHTWAF.js";
15
+ import "../chunk-73AV3JVU.js";
16
+ import "../chunk-V5DWGYRK.js";
12
17
  import {
13
- Defect,
14
18
  Effect_exports,
19
+ PreventSchedulerYield,
15
20
  Scope,
16
21
  Semaphore_exports,
17
22
  Service,
18
- String,
19
- TaggedError2 as TaggedError,
20
- Union,
21
23
  add,
22
24
  addFinalizer,
23
25
  as,
@@ -37,18 +39,17 @@ import {
37
39
  getCurrent,
38
40
  getOption,
39
41
  getUnsafe,
40
- hasProperty,
41
42
  identity,
42
43
  isFailure2 as isFailure,
43
44
  make,
44
- make5 as make2,
45
+ make6 as make2,
45
46
  map3 as map,
46
47
  mapArray,
47
48
  onExit,
48
- optional,
49
49
  promise,
50
50
  provide2 as provide,
51
51
  provideContext,
52
+ provideService,
52
53
  succeed4 as succeed,
53
54
  suspend,
54
55
  suspend2,
@@ -57,346 +58,16 @@ import {
57
58
  uninterruptibleMask,
58
59
  void_,
59
60
  withFiber
60
- } from "../chunk-EXGKN554.js";
61
+ } from "../chunk-IJQ5LE74.js";
61
62
  import "../chunk-CZ7CSFO4.js";
62
63
 
63
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/sql/SqlError.js
64
- var TypeId = "~effect/sql/SqlError";
65
- var ReasonTypeId = "~effect/sql/SqlError/Reason";
66
- var ReasonFields = {
67
- cause: /* @__PURE__ */ Defect(),
68
- message: /* @__PURE__ */ optional(String),
69
- operation: /* @__PURE__ */ optional(String)
70
- };
71
- var ConnectionError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/ConnectionError")("ConnectionError", ReasonFields)) {
72
- /**
73
- * Marks this value as a structured SQL error reason for runtime guards.
74
- *
75
- * @since 4.0.0
76
- */
77
- [ReasonTypeId] = ReasonTypeId;
78
- /**
79
- * Indicates whether retrying the failed SQL operation may succeed.
80
- *
81
- * @since 4.0.0
82
- */
83
- get isRetryable() {
84
- return true;
85
- }
86
- };
87
- var AuthenticationError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/AuthenticationError")("AuthenticationError", ReasonFields)) {
88
- /**
89
- * Marks this value as a structured SQL error reason for runtime guards.
90
- *
91
- * @since 4.0.0
92
- */
93
- [ReasonTypeId] = ReasonTypeId;
94
- /**
95
- * Indicates whether retrying the failed SQL operation may succeed.
96
- *
97
- * @since 4.0.0
98
- */
99
- get isRetryable() {
100
- return false;
101
- }
102
- };
103
- var AuthorizationError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/AuthorizationError")("AuthorizationError", ReasonFields)) {
104
- /**
105
- * Marks this value as a structured SQL error reason for runtime guards.
106
- *
107
- * @since 4.0.0
108
- */
109
- [ReasonTypeId] = ReasonTypeId;
110
- /**
111
- * Indicates whether retrying the failed SQL operation may succeed.
112
- *
113
- * @since 4.0.0
114
- */
115
- get isRetryable() {
116
- return false;
117
- }
118
- };
119
- var SqlSyntaxError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/SqlSyntaxError")("SqlSyntaxError", ReasonFields)) {
120
- /**
121
- * Marks this value as a structured SQL error reason for runtime guards.
122
- *
123
- * @since 4.0.0
124
- */
125
- [ReasonTypeId] = ReasonTypeId;
126
- /**
127
- * Indicates whether retrying the failed SQL operation may succeed.
128
- *
129
- * @since 4.0.0
130
- */
131
- get isRetryable() {
132
- return false;
133
- }
134
- };
135
- var UniqueViolationFields = {
136
- ...ReasonFields,
137
- constraint: String
138
- };
139
- var UniqueViolation = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/UniqueViolation")("UniqueViolation", UniqueViolationFields)) {
140
- /**
141
- * Marks this value as a structured SQL error reason for runtime guards.
142
- *
143
- * @since 4.0.0
144
- */
145
- [ReasonTypeId] = ReasonTypeId;
146
- /**
147
- * Indicates whether retrying the failed SQL operation may succeed.
148
- *
149
- * @since 4.0.0
150
- */
151
- get isRetryable() {
152
- return false;
153
- }
154
- };
155
- var ConstraintError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/ConstraintError")("ConstraintError", ReasonFields)) {
156
- /**
157
- * Marks this value as a structured SQL error reason for runtime guards.
158
- *
159
- * @since 4.0.0
160
- */
161
- [ReasonTypeId] = ReasonTypeId;
162
- /**
163
- * Indicates whether retrying the failed SQL operation may succeed.
164
- *
165
- * @since 4.0.0
166
- */
167
- get isRetryable() {
168
- return false;
169
- }
170
- };
171
- var DeadlockError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/DeadlockError")("DeadlockError", ReasonFields)) {
172
- /**
173
- * Marks this value as a structured SQL error reason for runtime guards.
174
- *
175
- * @since 4.0.0
176
- */
177
- [ReasonTypeId] = ReasonTypeId;
178
- /**
179
- * Indicates whether retrying the failed SQL operation may succeed.
180
- *
181
- * @since 4.0.0
182
- */
183
- get isRetryable() {
184
- return true;
185
- }
186
- };
187
- var SerializationError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/SerializationError")("SerializationError", ReasonFields)) {
188
- /**
189
- * Marks this value as a structured SQL error reason for runtime guards.
190
- *
191
- * @since 4.0.0
192
- */
193
- [ReasonTypeId] = ReasonTypeId;
194
- /**
195
- * Indicates whether retrying the failed SQL operation may succeed.
196
- *
197
- * @since 4.0.0
198
- */
199
- get isRetryable() {
200
- return true;
201
- }
202
- };
203
- var LockTimeoutError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/LockTimeoutError")("LockTimeoutError", ReasonFields)) {
204
- /**
205
- * Marks this value as a structured SQL error reason for runtime guards.
206
- *
207
- * @since 4.0.0
208
- */
209
- [ReasonTypeId] = ReasonTypeId;
210
- /**
211
- * Indicates whether retrying the failed SQL operation may succeed.
212
- *
213
- * @since 4.0.0
214
- */
215
- get isRetryable() {
216
- return true;
217
- }
218
- };
219
- var StatementTimeoutError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/StatementTimeoutError")("StatementTimeoutError", ReasonFields)) {
220
- /**
221
- * Marks this value as a structured SQL error reason for runtime guards.
222
- *
223
- * @since 4.0.0
224
- */
225
- [ReasonTypeId] = ReasonTypeId;
226
- /**
227
- * Indicates whether retrying the failed SQL operation may succeed.
228
- *
229
- * @since 4.0.0
230
- */
231
- get isRetryable() {
232
- return true;
233
- }
234
- };
235
- var UnknownError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError/UnknownError")("UnknownError", ReasonFields)) {
236
- /**
237
- * Marks this value as a structured SQL error reason for runtime guards.
238
- *
239
- * @since 4.0.0
240
- */
241
- [ReasonTypeId] = ReasonTypeId;
242
- /**
243
- * Indicates whether retrying the failed SQL operation may succeed.
244
- *
245
- * @since 4.0.0
246
- */
247
- get isRetryable() {
248
- return false;
249
- }
250
- };
251
- var SqlErrorReason = /* @__PURE__ */ Union([ConnectionError, AuthenticationError, AuthorizationError, SqlSyntaxError, UniqueViolation, ConstraintError, DeadlockError, SerializationError, LockTimeoutError, StatementTimeoutError, UnknownError]);
252
- var SqlError = class extends (/* @__PURE__ */ TaggedError("effect/sql/SqlError")("SqlError", {
253
- reason: SqlErrorReason
254
- })) {
255
- /**
256
- * Marks this value as the top-level SQL error wrapper for runtime guards.
257
- *
258
- * @since 4.0.0
259
- */
260
- [TypeId] = TypeId;
261
- /**
262
- * Exposes the structured SQL reason as the JavaScript error cause.
263
- *
264
- * @since 4.0.0
265
- */
266
- cause = this.reason;
267
- /**
268
- * Uses the reason message when present, otherwise falls back to the reason tag.
269
- *
270
- * @since 4.0.0
271
- */
272
- get message() {
273
- return this.reason.message || this.reason._tag;
274
- }
275
- /**
276
- * Delegates retryability to the underlying SQL error reason.
277
- *
278
- * @since 4.0.0
279
- */
280
- get isRetryable() {
281
- return this.reason.isRetryable;
282
- }
283
- };
284
- var sqliteCodeFromCause = (cause) => {
285
- if (!hasProperty(cause, "code")) {
286
- return void 0;
287
- }
288
- const code = cause.code;
289
- return typeof code === "string" || typeof code === "number" ? code : void 0;
290
- };
291
- var sqliteNumericCodeFromCause = (cause) => {
292
- const code = sqliteCodeFromCause(cause);
293
- if (typeof code === "number") {
294
- return code;
295
- }
296
- if (!hasProperty(cause, "errno")) {
297
- return void 0;
298
- }
299
- const errno = cause.errno;
300
- return typeof errno === "number" ? errno : void 0;
301
- };
302
- var matchesSqliteNumericCode = (cause, expected) => {
303
- const code = sqliteCodeFromCause(cause);
304
- if (code === expected) {
305
- return true;
306
- }
307
- if (!hasProperty(cause, "errno")) {
308
- return false;
309
- }
310
- return cause.errno === expected;
311
- };
312
- var matchesSqliteCode = (code, expected) => code === expected || code.startsWith(expected + "_");
313
- var UNKNOWN_CONSTRAINT = "unknown";
314
- var SQLITE_CONSTRAINT_UNIQUE = "SQLITE_CONSTRAINT_UNIQUE";
315
- var SQLITE_CONSTRAINT_UNIQUE_CODE = 2067;
316
- var normalizeConstraintIdentifier = (identifier) => {
317
- if (typeof identifier !== "string") {
318
- return UNKNOWN_CONSTRAINT;
319
- }
320
- const trimmed = identifier.trim();
321
- return trimmed.length === 0 ? UNKNOWN_CONSTRAINT : trimmed;
322
- };
323
- var sqliteUniqueConstraintFromCause = (cause) => {
324
- if (hasProperty(cause, "constraint")) {
325
- return normalizeConstraintIdentifier(cause.constraint);
326
- }
327
- if (!hasProperty(cause, "message")) {
328
- return UNKNOWN_CONSTRAINT;
329
- }
330
- const message = cause.message;
331
- if (typeof message !== "string") {
332
- return UNKNOWN_CONSTRAINT;
333
- }
334
- const prefix = "UNIQUE constraint failed:";
335
- const index = message.indexOf(prefix);
336
- return index === -1 ? UNKNOWN_CONSTRAINT : normalizeConstraintIdentifier(message.slice(index + prefix.length));
337
- };
338
- var classifySqliteError = (cause, {
339
- message,
340
- operation
341
- } = {}) => {
342
- const props = {
343
- cause,
344
- message,
345
- operation
346
- };
347
- const code = sqliteCodeFromCause(cause);
348
- const numericCode = sqliteNumericCodeFromCause(cause);
349
- if (code === SQLITE_CONSTRAINT_UNIQUE || matchesSqliteNumericCode(cause, SQLITE_CONSTRAINT_UNIQUE_CODE)) {
350
- return new UniqueViolation({
351
- ...props,
352
- constraint: sqliteUniqueConstraintFromCause(cause)
353
- });
354
- }
355
- if (typeof code === "string") {
356
- if (matchesSqliteCode(code, "SQLITE_AUTH")) {
357
- return new AuthenticationError(props);
358
- }
359
- if (matchesSqliteCode(code, "SQLITE_PERM")) {
360
- return new AuthorizationError(props);
361
- }
362
- if (matchesSqliteCode(code, "SQLITE_CONSTRAINT")) {
363
- return new ConstraintError(props);
364
- }
365
- if (matchesSqliteCode(code, "SQLITE_BUSY") || matchesSqliteCode(code, "SQLITE_LOCKED")) {
366
- return new LockTimeoutError(props);
367
- }
368
- if (matchesSqliteCode(code, "SQLITE_CANTOPEN")) {
369
- return new ConnectionError(props);
370
- }
371
- }
372
- if (typeof numericCode === "number") {
373
- const code2 = numericCode & 255;
374
- switch (code2) {
375
- case 23:
376
- return new AuthenticationError(props);
377
- case 3:
378
- return new AuthorizationError(props);
379
- case 19:
380
- return new ConstraintError(props);
381
- case 5:
382
- case 6:
383
- return new LockTimeoutError(props);
384
- case 14:
385
- return new ConnectionError(props);
386
- default:
387
- return new UnknownError(props);
388
- }
389
- }
390
- return new UnknownError(props);
391
- };
392
-
393
- // ../../node_modules/.bun/@effect+sql-sqlite-do@https+++pkg.pr.new+Effect-TS+effect+@effect+sql-sqlite-do@c7d1f+993bf1acf30d9933+e4138e778cda3d8b/node_modules/@effect/sql-sqlite-do/dist/SqliteClient.js
64
+ // ../../node_modules/.bun/@effect+sql-sqlite-do@4.0.1+ff18a43d1df18ff8/node_modules/@effect/sql-sqlite-do/dist/SqliteClient.js
394
65
  var ATTR_DB_SYSTEM_NAME = "db.system.name";
395
66
  var classifyError = (cause, message, operation) => classifySqliteError(cause, {
396
67
  message,
397
68
  operation
398
69
  });
399
- var TypeId2 = "~@effect/sql-sqlite-do/SqliteClient";
70
+ var TypeId = "~@effect/sql-sqlite-do/SqliteClient";
400
71
  var SqliteClient = /* @__PURE__ */ Service("@effect/sql-sqlite-do/SqliteClient");
401
72
  var SqliteTransaction = /* @__PURE__ */ Service("@effect/sql-sqlite-do/SqliteClient/SqliteTransaction");
402
73
  var unsupportedTransaction = (message, operation) => new SqlError({
@@ -439,7 +110,10 @@ var makeStorageBackedWithTransaction = (storage, connection, semaphore) => (effe
439
110
  });
440
111
  });
441
112
  return connOption._tag === "Some" ? transaction : semaphore.withPermits(1)(transaction);
442
- });
113
+ }).pipe(
114
+ // The storage transaction closes the input gate, blocking dispatcher tasks until it completes.
115
+ provideService(PreventSchedulerYield, true)
116
+ );
443
117
  var make4 = (options) => gen(function* () {
444
118
  const compiler = makeCompilerSqlite(options.transformQueryNames);
445
119
  const transformRows = options.transformResultNames ? defaultTransforms(options.transformResultNames).array : void 0;
@@ -524,7 +198,7 @@ var make4 = (options) => gen(function* () {
524
198
  transformRows
525
199
  });
526
200
  return Object.assign(client, {
527
- [TypeId2]: TypeId2,
201
+ [TypeId]: TypeId,
528
202
  config: options,
529
203
  withTransaction: options.storage ? makeStorageBackedWithTransaction(options.storage, connection, semaphore) : makeUnsupportedWithTransaction("Transactions require Durable Object storage; pass ctx.storage as the storage option")
530
204
  });
@@ -5,8 +5,8 @@ import {
5
5
  AppSignInFailure,
6
6
  AppSignInId,
7
7
  appSignInCallbackPath
8
- } from "../../chunk-ZOY7PDMI.js";
9
- import "../../chunk-EXGKN554.js";
8
+ } from "../../chunk-NHCFIWN5.js";
9
+ import "../../chunk-IJQ5LE74.js";
10
10
  import "../../chunk-CZ7CSFO4.js";
11
11
  export {
12
12
  AppReturnPath,
package/js/ui/auth.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  appRedirect,
4
4
  appSignInCallback,
5
5
  appSignInFailed
6
- } from "../chunk-AUFVX4KM.js";
6
+ } from "../chunk-RSNZDT4L.js";
7
7
  import {
8
8
  AppReturnPath,
9
9
  AppSignInCallback,
@@ -11,10 +11,10 @@ import {
11
11
  AppSignInFailure,
12
12
  AppSignInId,
13
13
  appSignInCallbackPath
14
- } from "../chunk-ZOY7PDMI.js";
15
- import "../chunk-MFHUR5SB.js";
16
- import "../chunk-CJY5X26R.js";
17
- import "../chunk-EXGKN554.js";
14
+ } from "../chunk-NHCFIWN5.js";
15
+ import "../chunk-TADLIUEU.js";
16
+ import "../chunk-KOOJUMLR.js";
17
+ import "../chunk-IJQ5LE74.js";
18
18
  import "../chunk-CZ7CSFO4.js";
19
19
  export {
20
20
  AppReturnPath,
@@ -7,11 +7,12 @@ import {
7
7
  UiOperation,
8
8
  UiSnapshot,
9
9
  UiUnauthorized
10
- } from "../chunk-GZ4UHXRT.js";
11
- import "../chunk-FBBXFFFJ.js";
12
- import "../chunk-QYM4STZW.js";
13
- import "../chunk-CJY5X26R.js";
14
- import "../chunk-EXGKN554.js";
10
+ } from "../chunk-WDBUOIWV.js";
11
+ import "../chunk-BI45HZWM.js";
12
+ import "../chunk-PHO7HXTC.js";
13
+ import "../chunk-V5DWGYRK.js";
14
+ import "../chunk-KOOJUMLR.js";
15
+ import "../chunk-IJQ5LE74.js";
15
16
  import "../chunk-CZ7CSFO4.js";
16
17
  export {
17
18
  AppUiApi,
package/js/ui/serving.js CHANGED
@@ -1,23 +1,24 @@
1
1
  import {
2
2
  appPrivateHeaders
3
- } from "../chunk-AUFVX4KM.js";
4
- import "../chunk-ZOY7PDMI.js";
3
+ } from "../chunk-RSNZDT4L.js";
4
+ import "../chunk-NHCFIWN5.js";
5
5
  import {
6
6
  UiForbidden
7
- } from "../chunk-GZ4UHXRT.js";
7
+ } from "../chunk-WDBUOIWV.js";
8
8
  import {
9
9
  CurrentTelemetryConfig
10
- } from "../chunk-ETLILMHY.js";
11
- import "../chunk-MFHUR5SB.js";
12
- import "../chunk-FBBXFFFJ.js";
13
- import "../chunk-QYM4STZW.js";
10
+ } from "../chunk-KZFV3WCJ.js";
11
+ import "../chunk-TADLIUEU.js";
12
+ import "../chunk-BI45HZWM.js";
13
+ import "../chunk-PHO7HXTC.js";
14
+ import "../chunk-V5DWGYRK.js";
14
15
  import {
15
16
  HttpServerRequest_exports,
16
17
  HttpServerResponse_exports
17
- } from "../chunk-CJY5X26R.js";
18
+ } from "../chunk-KOOJUMLR.js";
18
19
  import {
19
20
  Effect_exports
20
- } from "../chunk-EXGKN554.js";
21
+ } from "../chunk-IJQ5LE74.js";
21
22
  import "../chunk-CZ7CSFO4.js";
22
23
 
23
24
  // src/implementation/browser-scripts.gen.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps",
3
- "version": "0.0.1-beta.34",
3
+ "version": "0.0.1-beta.35",
4
4
  "description": "TypeScript apps with typed tools, accounts, storage, and UI.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -94,8 +94,8 @@
94
94
  "README.md"
95
95
  ],
96
96
  "dependencies": {
97
- "effect": "https://pkg.pr.new/Effect-TS/effect/effect@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d",
98
- "@effect/sql-sqlite-do": "https://pkg.pr.new/Effect-TS/effect/@effect/sql-sqlite-do@c7d1ffff31a3e2ae0b0b0796b742bddeb797269d",
97
+ "effect": "4.0.1",
98
+ "@effect/sql-sqlite-do": "4.0.1",
99
99
  "@cloudflare/workers-types": "5.20260729.1"
100
100
  },
101
101
  "peerDependencies": {