apps 0.0.1-beta.3 → 0.0.1-beta.5

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 (67) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-SATWJKN6.js → chunk-27F7W2LG.js} +1 -1
  3. package/js/{chunk-PYUYJRSK.js → chunk-3XKZDQLM.js} +2 -2
  4. package/js/chunk-4M277YTM.js +136 -0
  5. package/js/{chunk-HDJH3RPR.js → chunk-57RKNWL2.js} +2 -2
  6. package/js/{chunk-HDTGZWP2.js → chunk-67EVWIGJ.js} +8 -8
  7. package/js/{chunk-JN55AYQH.js → chunk-C3VAOK5B.js} +11 -9
  8. package/js/{chunk-FW5HBOIK.js → chunk-CDL5PM2Q.js} +307 -169
  9. package/js/{chunk-D47C7KG5.js → chunk-CYYBFC2K.js} +2 -2
  10. package/js/{chunk-MYYEW3RA.js → chunk-DQAZTA4I.js} +160 -22
  11. package/js/{chunk-WFSQXYUT.js → chunk-FWQC6I3C.js} +2 -2
  12. package/js/{chunk-ZJWDMTE3.js → chunk-G7T27IWB.js} +3 -3
  13. package/js/{chunk-G7ZIRKMK.js → chunk-IJX4CYZO.js} +3 -3
  14. package/js/{chunk-FDNTX5QJ.js → chunk-IPI4MFSN.js} +2 -2
  15. package/js/{chunk-YEJOQEII.js → chunk-JU7VHODU.js} +1 -1
  16. package/js/{chunk-NQ3OMCA5.js → chunk-KUMBKVJD.js} +2 -2
  17. package/js/{chunk-J7O55ZV7.js → chunk-LUVSFETN.js} +247 -60
  18. package/js/{chunk-EVJUVWN2.js → chunk-M3B3DE4K.js} +2 -2
  19. package/js/{chunk-BMOIAIVR.js → chunk-N7YDVXYJ.js} +49 -1
  20. package/js/{chunk-M6ZRRIBI.js → chunk-PJJ24GU7.js} +1 -1
  21. package/js/{chunk-FZJOYIZO.js → chunk-PZB6T6KU.js} +1 -1
  22. package/js/{chunk-ZCAMUXSG.js → chunk-RJDDBDSN.js} +3 -3
  23. package/js/{chunk-W7D7WVSY.js → chunk-SB3V4YVR.js} +2 -2
  24. package/js/{chunk-Z5NMEGJN.js → chunk-TDNYXSIX.js} +1 -1
  25. package/js/{chunk-RN2MXB4R.js → chunk-UDDE5KOR.js} +6 -6
  26. package/js/{chunk-QKHR7BMF.js → chunk-UK573G7W.js} +1 -1
  27. package/js/{chunk-T2LAZCAD.js → chunk-VFZKSM3T.js} +1 -1
  28. package/js/{chunk-SWPD52J7.js → chunk-W4DMKWAB.js} +1 -1
  29. package/js/{chunk-5MQZEB6Y.js → chunk-XHO2ZX6W.js} +4 -4
  30. package/js/{chunk-LGIYBDWA.js → chunk-YEPYT6SD.js} +1 -1
  31. package/js/{chunk-PLCMJREA.js → chunk-ZQINWV4W.js} +60 -20
  32. package/js/client.js +10 -10
  33. package/js/contracts.js +34 -9
  34. package/js/effect.js +21 -20
  35. package/js/graphql.js +23 -22
  36. package/js/host.js +21 -20
  37. package/js/index.js +14 -14
  38. package/js/mcp/effect.js +23 -22
  39. package/js/mcp/stdio.js +23 -22
  40. package/js/mcp.js +25 -24
  41. package/js/openapi.js +23 -123
  42. package/js/react.js +3 -3
  43. package/js/skills/effect.js +3 -3
  44. package/js/skills.js +12 -12
  45. package/js/storage/facet.js +4 -4
  46. package/js/ui/auth/contracts.js +2 -2
  47. package/js/ui/auth.js +5 -5
  48. package/js/ui/contracts.js +4 -4
  49. package/js/ui/serving.js +8 -8
  50. package/package.json +1 -1
  51. package/runtime.json +1 -1
  52. package/types/app-data/src/contracts/database.d.ts +33 -6
  53. package/types/app-data/src/implementation/schema.d.ts +2 -17
  54. package/types/apps/src/contracts/failure.d.ts +25 -0
  55. package/types/apps/src/contracts/host.d.ts +13 -6
  56. package/types/apps/src/contracts/openapi.d.ts +1 -1
  57. package/types/apps/src/contracts/protocol-version.d.ts +2 -2
  58. package/types/apps/src/contracts/protocols/1.d.ts +15 -1
  59. package/types/apps/src/contracts/protocols/2.d.ts +668 -0
  60. package/types/apps/src/contracts/protocols/3.d.ts +676 -0
  61. package/types/apps/src/contracts/storage.d.ts +3 -3
  62. package/types/apps/src/contracts/workflows.d.ts +34 -3
  63. package/types/apps/src/implementation/elicitation.d.ts +1 -1
  64. package/types/apps/src/implementation/failure-detail.d.ts +25 -0
  65. package/types/apps/src/implementation/storage.d.ts +5 -3
  66. package/types/apps/src/implementation/webhooks.d.ts +1 -1
  67. package/types/apps/src/implementation/workflow-context.d.ts +11 -3
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AccountId
3
- } from "./chunk-SATWJKN6.js";
3
+ } from "./chunk-27F7W2LG.js";
4
4
  import {
5
5
  Schema_exports
6
- } from "./chunk-FW5HBOIK.js";
6
+ } from "./chunk-CDL5PM2Q.js";
7
7
 
8
8
  // src/contracts/provider-error.ts
9
9
  var ProviderError = class extends Schema_exports.TaggedError()("ProviderError", {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  operationDeclaration
3
- } from "./chunk-PYUYJRSK.js";
3
+ } from "./chunk-3XKZDQLM.js";
4
4
 
5
5
  // src/implementation/protocol-operations.ts
6
6
  var protocolOperations = (operations, kinds = {}) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  prepareElicitation
3
- } from "./chunk-J7O55ZV7.js";
3
+ } from "./chunk-LUVSFETN.js";
4
4
  import {
5
5
  fromPromise
6
- } from "./chunk-PYUYJRSK.js";
6
+ } from "./chunk-3XKZDQLM.js";
7
7
  import {
8
8
  ElicitationFailed,
9
9
  McpError,
@@ -13,14 +13,14 @@ import {
13
13
  defaultElicitationLimits,
14
14
  defaultMcpClientLimits,
15
15
  mcpSdkTimerCeilingMs
16
- } from "./chunk-MYYEW3RA.js";
16
+ } from "./chunk-DQAZTA4I.js";
17
17
  import {
18
18
  compileJsonSchemaDecoder,
19
19
  jsonSchemaDecoder
20
- } from "./chunk-WFSQXYUT.js";
20
+ } from "./chunk-FWQC6I3C.js";
21
21
  import {
22
22
  JsonObject
23
- } from "./chunk-SATWJKN6.js";
23
+ } from "./chunk-27F7W2LG.js";
24
24
  import {
25
25
  Clock_exports,
26
26
  Deferred_exports,
@@ -29,7 +29,7 @@ import {
29
29
  Option_exports,
30
30
  Queue_exports,
31
31
  Schema_exports
32
- } from "./chunk-FW5HBOIK.js";
32
+ } from "./chunk-CDL5PM2Q.js";
33
33
 
34
34
  // src/implementation/mcp-tools.ts
35
35
  var adaptMcpTool = (client, tool) => Effect_exports.gen(function* () {
@@ -211,7 +211,7 @@ import {
211
211
  withFiber,
212
212
  withParentSpan,
213
213
  zero2 as zero
214
- } from "./chunk-FW5HBOIK.js";
214
+ } from "./chunk-CDL5PM2Q.js";
215
215
  import {
216
216
  __export
217
217
  } from "./chunk-CZ7CSFO4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Schema_exports
3
- } from "./chunk-FW5HBOIK.js";
3
+ } from "./chunk-CDL5PM2Q.js";
4
4
 
5
5
  // src/contracts/ui-auth.ts
6
6
  var AppSignInId = Schema_exports.String.check(Schema_exports.isPattern(/^[a-f0-9]{64}$/)).pipe(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Schema_exports
3
- } from "./chunk-FW5HBOIK.js";
3
+ } from "./chunk-CDL5PM2Q.js";
4
4
 
5
5
  // src/contracts/api-response-error.ts
6
6
  var ApiErrorRecovery = Schema_exports.Struct({
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  CacheError
3
- } from "./chunk-LGIYBDWA.js";
3
+ } from "./chunk-YEPYT6SD.js";
4
4
  import {
5
5
  wrap
6
- } from "./chunk-WFSQXYUT.js";
6
+ } from "./chunk-FWQC6I3C.js";
7
7
  import {
8
8
  JsonObject
9
- } from "./chunk-SATWJKN6.js";
9
+ } from "./chunk-27F7W2LG.js";
10
10
  import {
11
11
  Duration_exports,
12
12
  Effect_exports,
13
13
  Schema_exports
14
- } from "./chunk-FW5HBOIK.js";
14
+ } from "./chunk-CDL5PM2Q.js";
15
15
 
16
16
  // src/implementation/catalog-cache.ts
17
17
  var schema = (decoder) => wrap(decoder, false);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Schema_exports
3
- } from "./chunk-FW5HBOIK.js";
3
+ } from "./chunk-CDL5PM2Q.js";
4
4
 
5
5
  // ../app-cache/src/contracts/cache.ts
6
6
  var CacheError = class extends Schema_exports.TaggedError()("CacheError", {
@@ -1,5 +1,7 @@
1
1
  import {
2
2
  AppDatabaseError,
3
+ DatabaseFieldReserved,
4
+ DatabaseLimitExceeded,
3
5
  DatabaseLimits,
4
6
  DatabaseOperation,
5
7
  DatabaseSchema,
@@ -8,18 +10,21 @@ import {
8
10
  Row,
9
11
  RowMetadata,
10
12
  defaultDatabaseLimits,
11
- defaultDatabaseRuntimeLimits
12
- } from "./chunk-BMOIAIVR.js";
13
+ defaultDatabaseRuntimeLimits,
14
+ reservedFieldNames
15
+ } from "./chunk-N7YDVXYJ.js";
13
16
  import {
17
+ Cause_exports,
14
18
  Clock_exports,
15
19
  Effect_exports,
16
20
  Encoding_exports,
17
21
  Schema_exports,
18
22
  Semaphore_exports
19
- } from "./chunk-FW5HBOIK.js";
23
+ } from "./chunk-CDL5PM2Q.js";
20
24
 
21
25
  // ../app-data/src/implementation/schema.ts
22
- var metadata = /* @__PURE__ */ new Set(["id", "createdAt", "updatedAt"]);
26
+ var metadata = new Set(reservedFieldNames);
27
+ var reserved = (name) => metadata.has(name);
23
28
  var indexesFor = (table) => [{ name: "by_creation", fields: [] }, ...table.indexes].map((index) => ({
24
29
  name: index.name,
25
30
  fields: [
@@ -33,23 +38,25 @@ var validScalar = (field, value) => field.kind === "number" ? typeof value === "
33
38
  return point !== void 0 && point >= 55296 && point <= 57343;
34
39
  });
35
40
  var parseDatabaseSchema = (input) => Schema_exports.decodeUnknownEffect(DatabaseSchema)(input).pipe(
41
+ Effect_exports.mapError(() => new AppDatabaseError({ reason: "schema" })),
36
42
  Effect_exports.flatMap(
37
43
  (schema) => Effect_exports.gen(function* () {
38
- for (const table of Object.values(schema)) {
39
- if (Object.keys(table.fields).some((name) => metadata.has(name)) || new Set(table.indexes.map((index) => index.name)).size !== table.indexes.length)
44
+ for (const [name, table] of Object.entries(schema)) {
45
+ const field = Object.keys(table.fields).find(reserved);
46
+ if (field !== void 0) return yield* new DatabaseFieldReserved({ table: name, field });
47
+ if (new Set(table.indexes.map((index) => index.name)).size !== table.indexes.length)
40
48
  return yield* new AppDatabaseError({ reason: "schema" });
41
- for (const field of Object.values(table.fields)) {
42
- if ((field.kind === "id" ? field.references === void 0 : field.references !== void 0) || field.default !== void 0 && !validScalar(field, field.default) || field.references !== void 0 && !Object.hasOwn(schema, field.references))
49
+ for (const field2 of Object.values(table.fields)) {
50
+ if ((field2.kind === "id" ? field2.references === void 0 : field2.references !== void 0) || field2.default !== void 0 && !validScalar(field2, field2.default) || field2.references !== void 0 && !Object.hasOwn(schema, field2.references))
43
51
  return yield* new AppDatabaseError({ reason: "schema" });
44
52
  }
45
53
  for (const index of table.indexes)
46
- if (index.name === "by_creation" || new Set(index.fields).size !== index.fields.length || index.fields.some((name) => fieldFor(table, name) === void 0))
54
+ if (index.name === "by_creation" || new Set(index.fields).size !== index.fields.length || index.fields.some((name2) => fieldFor(table, name2) === void 0))
47
55
  return yield* new AppDatabaseError({ reason: "schema" });
48
56
  }
49
57
  return schema;
50
58
  })
51
- ),
52
- Effect_exports.mapError(() => new AppDatabaseError({ reason: "schema" }))
59
+ )
53
60
  );
54
61
  var canonicalSchema = (schema) => JSON.stringify(
55
62
  Object.fromEntries(
@@ -248,7 +255,12 @@ var decodeBody = Schema_exports.decodeUnknownEffect(Schema_exports.fromJsonStrin
248
255
  var storageError = () => new AppDatabaseError({ reason: "storage" });
249
256
  var makeSqliteDatabase = (options) => Effect_exports.gen(function* () {
250
257
  const { sql, crypto } = options;
251
- const schema = yield* parseDatabaseSchema(options.schema);
258
+ const schema = yield* parseDatabaseSchema(options.schema).pipe(
259
+ Effect_exports.catchTag(
260
+ "DatabaseFieldReserved",
261
+ () => Effect_exports.fail(new AppDatabaseError({ reason: "schema" }))
262
+ )
263
+ );
252
264
  const limits = yield* Schema_exports.decodeUnknownEffect(DatabaseLimits)(
253
265
  options.limits ?? defaultDatabaseLimits
254
266
  ).pipe(Effect_exports.mapError(() => new AppDatabaseError({ reason: "limit" })));
@@ -295,7 +307,13 @@ var makeSqliteDatabase = (options) => Effect_exports.gen(function* () {
295
307
  };
296
308
  const charge = (name, amount) => Effect_exports.suspend(() => {
297
309
  used[name] += amount;
298
- return used[name] > limits[name] ? Effect_exports.fail(new AppDatabaseError({ reason: "limit" })) : Effect_exports.void;
310
+ return used[name] > limits[name] ? Effect_exports.fail(
311
+ new DatabaseLimitExceeded({
312
+ limit: name,
313
+ maximum: limits[name],
314
+ requested: used[name]
315
+ })
316
+ ) : Effect_exports.void;
299
317
  });
300
318
  const get = (table, id) => Effect_exports.gen(function* () {
301
319
  yield* charge("directGets", 1);
@@ -312,8 +330,13 @@ var makeSqliteDatabase = (options) => Effect_exports.gen(function* () {
312
330
  const store = (tableName, table, row) => Effect_exports.gen(function* () {
313
331
  const meta = yield* Schema_exports.decodeUnknownEffect(RowMetadata)(row);
314
332
  const body = JSON.stringify(row);
315
- if (new TextEncoder().encode(body).length > limits.valueBytes)
316
- return yield* new AppDatabaseError({ reason: "limit" });
333
+ const bytes = new TextEncoder().encode(body).length;
334
+ if (bytes > limits.valueBytes)
335
+ return yield* new DatabaseLimitExceeded({
336
+ limit: "valueBytes",
337
+ maximum: limits.valueBytes,
338
+ requested: bytes
339
+ });
317
340
  const keys = yield* Effect_exports.forEach(
318
341
  indexesFor(table),
319
342
  (index) => encodeIndexKey(
@@ -384,9 +407,14 @@ var makeSqliteDatabase = (options) => Effect_exports.gen(function* () {
384
407
  const bounds = yield* queryBounds(table, plan, limits.indexBytes);
385
408
  reads.add(tableName);
386
409
  yield* charge("scanCalls", 1);
387
- const maximum = terminal.kind === "count" ? limits.rowsRead - used.rowsRead : limits.rowsReturned - used.rowsReturned;
388
- const count = terminal.kind === "first" ? 1 : terminal.kind === "take" ? terminal.count : terminal.kind === "paginate" ? terminal.numItems : maximum;
389
- if (count > maximum) return yield* new AppDatabaseError({ reason: "limit" });
410
+ const remaining = terminal.kind === "count" ? limits.rowsRead - used.rowsRead : limits.rowsReturned - used.rowsReturned;
411
+ const count = terminal.kind === "first" ? 1 : terminal.kind === "take" ? terminal.count : terminal.kind === "paginate" ? terminal.numItems : remaining;
412
+ if ((terminal.kind === "take" || terminal.kind === "paginate") && count > limits.rowsReturned)
413
+ return yield* new DatabaseLimitExceeded({
414
+ limit: "pageSize",
415
+ maximum: limits.rowsReturned,
416
+ requested: count
417
+ });
390
418
  if (count === 0 && terminal.kind === "take") return [];
391
419
  const query = yield* fingerprint(
392
420
  crypto,
@@ -412,7 +440,10 @@ var makeSqliteDatabase = (options) => Effect_exports.gen(function* () {
412
440
  plan.order === "asc" ? sql`i.sort_key > ${position}` : sql`i.sort_key < ${position}`
413
441
  );
414
442
  const direction = plan.order === "asc" ? sql.literal("ASC") : sql.literal("DESC");
415
- const limit = terminal.kind === "first" || terminal.kind === "take" ? count : count + 1;
443
+ const limit = Math.min(
444
+ terminal.kind === "first" || terminal.kind === "take" ? count : count + 1,
445
+ remaining + 1
446
+ );
416
447
  if (terminal.kind === "count") {
417
448
  const rows2 = yield* sql`SELECT i.sort_key FROM app_indexes i WHERE ${sql.and(predicates)} ORDER BY i.sort_key ${direction} LIMIT ${limit}`.pipe(
418
449
  Effect_exports.flatMap(Schema_exports.decodeUnknownEffect(Schema_exports.Array(CountRow)))
@@ -436,7 +467,11 @@ var makeSqliteDatabase = (options) => Effect_exports.gen(function* () {
436
467
  )
437
468
  );
438
469
  if (terminal.kind === "collect" && rows.length > count)
439
- return yield* new AppDatabaseError({ reason: "limit" });
470
+ return yield* new DatabaseLimitExceeded({
471
+ limit: "rowsReturned",
472
+ maximum: limits.rowsReturned,
473
+ requested: used.rowsReturned + rows.length
474
+ });
440
475
  const page = rows.slice(0, count);
441
476
  yield* charge("rowsReturned", page.length);
442
477
  const values = yield* Effect_exports.forEach(page, (row) => decodeBody(row.body));
@@ -502,6 +537,11 @@ var makeSqliteDatabase = (options) => Effect_exports.gen(function* () {
502
537
  })
503
538
  };
504
539
  return yield* Effect_exports.suspend(() => work(session)).pipe(
540
+ // A failed database call poisons the session. Report that failure even when
541
+ // authored code caught it or threw something else in its place.
542
+ Effect_exports.catchCause(
543
+ (cause) => failed === void 0 || Cause_exports.hasInterrupts(cause) ? Effect_exports.failCause(cause) : Effect_exports.fail(failed)
544
+ ),
505
545
  Effect_exports.tap(
506
546
  () => gate.withPermits(1)(
507
547
  Effect_exports.suspend(() => failed === void 0 ? Effect_exports.void : Effect_exports.fail(failed))
package/js/client.js CHANGED
@@ -4,14 +4,14 @@ import {
4
4
  UiContext,
5
5
  UiDeploymentChanged,
6
6
  UiFailed
7
- } from "./chunk-G7ZIRKMK.js";
7
+ } from "./chunk-IJX4CYZO.js";
8
8
  import {
9
9
  AsyncResult_exports,
10
10
  AtomRegistry_exports,
11
11
  Atom_exports,
12
12
  queryResult
13
- } from "./chunk-EVJUVWN2.js";
14
- import "./chunk-M6ZRRIBI.js";
13
+ } from "./chunk-M3B3DE4K.js";
14
+ import "./chunk-PJJ24GU7.js";
15
15
  import {
16
16
  OtlpExporter_exports,
17
17
  TraceContext,
@@ -19,22 +19,22 @@ import {
19
19
  pendingSpan,
20
20
  telemetryLayer,
21
21
  traceLinks
22
- } from "./chunk-ZCAMUXSG.js";
22
+ } from "./chunk-RJDDBDSN.js";
23
23
  import {
24
24
  FetchHttpClient_exports
25
- } from "./chunk-HDJH3RPR.js";
25
+ } from "./chunk-57RKNWL2.js";
26
26
  import {
27
27
  HttpClientError_exports
28
- } from "./chunk-QKHR7BMF.js";
28
+ } from "./chunk-UK573G7W.js";
29
29
  import {
30
30
  decoderOf
31
- } from "./chunk-WFSQXYUT.js";
31
+ } from "./chunk-FWQC6I3C.js";
32
32
  import {
33
33
  StorageName
34
- } from "./chunk-FZJOYIZO.js";
34
+ } from "./chunk-PZB6T6KU.js";
35
35
  import {
36
36
  JsonValue
37
- } from "./chunk-SATWJKN6.js";
37
+ } from "./chunk-27F7W2LG.js";
38
38
  import {
39
39
  Cause_exports,
40
40
  Clock_exports,
@@ -52,7 +52,7 @@ import {
52
52
  Semaphore_exports,
53
53
  Stream_exports,
54
54
  Tracer_exports
55
- } from "./chunk-FW5HBOIK.js";
55
+ } from "./chunk-CDL5PM2Q.js";
56
56
  import "./chunk-CZ7CSFO4.js";
57
57
 
58
58
  // src/contracts/live.ts
package/js/contracts.js CHANGED
@@ -9,6 +9,11 @@ import {
9
9
  ElicitationLimits,
10
10
  ElicitationReply,
11
11
  ElicitationResponse,
12
+ FailureCode,
13
+ FailureDetail,
14
+ FailureMessage,
15
+ FailureName,
16
+ FailureSource,
12
17
  FormElicitation,
13
18
  HostAccountsInvalid,
14
19
  HostCallError,
@@ -61,11 +66,13 @@ import {
61
66
  WorkflowControlCommand,
62
67
  WorkflowDuration,
63
68
  WorkflowFailure,
69
+ WorkflowFailureDetail,
64
70
  WorkflowName,
65
71
  WorkflowReplay,
66
72
  WorkflowRpcCommand,
67
73
  WorkflowRpcResult,
68
74
  WorkflowRun,
75
+ WorkflowRunFailure,
69
76
  WorkflowRunId,
70
77
  WorkflowRunPage,
71
78
  WorkflowStepOptions,
@@ -77,16 +84,22 @@ import {
77
84
  frameworkProtocol,
78
85
  indexCommand,
79
86
  inspectCommand,
87
+ maxFailureMessageLength,
80
88
  maxInputProblems,
81
89
  minimumIntervalMilliseconds,
82
90
  protocol1,
91
+ protocol2,
92
+ protocol3,
83
93
  selectTools,
84
94
  skillCatalog,
85
95
  skillsCommand,
86
96
  workflowDurationMillis
87
- } from "./chunk-MYYEW3RA.js";
88
- import "./chunk-BMOIAIVR.js";
89
- import "./chunk-LGIYBDWA.js";
97
+ } from "./chunk-DQAZTA4I.js";
98
+ import {
99
+ DatabaseFieldReserved,
100
+ DatabaseLimitExceeded
101
+ } from "./chunk-N7YDVXYJ.js";
102
+ import "./chunk-YEPYT6SD.js";
90
103
  import {
91
104
  AppSkillMetadata,
92
105
  AppSkillName,
@@ -99,24 +112,24 @@ import {
99
112
  SkillServiceName,
100
113
  skillFormatLimits,
101
114
  skillLoadLimits
102
- } from "./chunk-YEJOQEII.js";
115
+ } from "./chunk-JU7VHODU.js";
103
116
  import {
104
117
  ApiErrorResponse,
105
118
  OpenapiResponseError
106
- } from "./chunk-SWPD52J7.js";
119
+ } from "./chunk-W4DMKWAB.js";
107
120
  import {
108
121
  ProviderError
109
- } from "./chunk-W7D7WVSY.js";
122
+ } from "./chunk-SB3V4YVR.js";
110
123
  import {
111
124
  AppStorageError,
112
125
  AppStorageUnavailable,
113
126
  StorageName
114
- } from "./chunk-FZJOYIZO.js";
127
+ } from "./chunk-PZB6T6KU.js";
115
128
  import {
116
129
  AccountId,
117
130
  HttpUrl
118
- } from "./chunk-SATWJKN6.js";
119
- import "./chunk-FW5HBOIK.js";
131
+ } from "./chunk-27F7W2LG.js";
132
+ import "./chunk-CDL5PM2Q.js";
120
133
  import "./chunk-CZ7CSFO4.js";
121
134
  export {
122
135
  AccountId,
@@ -130,6 +143,8 @@ export {
130
143
  ApprovalElicitation,
131
144
  ApprovalResponse,
132
145
  CalendarSchedule,
146
+ DatabaseFieldReserved,
147
+ DatabaseLimitExceeded,
133
148
  DeclaredAuthMethod,
134
149
  DeclaredProvider,
135
150
  DeclaredRequirements,
@@ -137,6 +152,11 @@ export {
137
152
  ElicitationLimits,
138
153
  ElicitationReply,
139
154
  ElicitationResponse,
155
+ FailureCode,
156
+ FailureDetail,
157
+ FailureMessage,
158
+ FailureName,
159
+ FailureSource,
140
160
  FormElicitation,
141
161
  HostAccountsInvalid,
142
162
  HostCallError,
@@ -198,11 +218,13 @@ export {
198
218
  WorkflowControlCommand,
199
219
  WorkflowDuration,
200
220
  WorkflowFailure,
221
+ WorkflowFailureDetail,
201
222
  WorkflowName,
202
223
  WorkflowReplay,
203
224
  WorkflowRpcCommand,
204
225
  WorkflowRpcResult,
205
226
  WorkflowRun,
227
+ WorkflowRunFailure,
206
228
  WorkflowRunId,
207
229
  WorkflowRunPage,
208
230
  WorkflowStepOptions,
@@ -214,9 +236,12 @@ export {
214
236
  frameworkProtocol,
215
237
  indexCommand,
216
238
  inspectCommand,
239
+ maxFailureMessageLength,
217
240
  maxInputProblems,
218
241
  minimumIntervalMilliseconds,
219
242
  protocol1,
243
+ protocol2,
244
+ protocol3,
220
245
  selectTools,
221
246
  skillCatalog,
222
247
  skillFormatLimits,
package/js/effect.js CHANGED
@@ -3,37 +3,38 @@ import {
3
3
  ApprovalDecision,
4
4
  createAppHandler,
5
5
  prepareElicitation
6
- } from "./chunk-J7O55ZV7.js";
7
- import "./chunk-D47C7KG5.js";
8
- import "./chunk-FDNTX5QJ.js";
9
- import "./chunk-JN55AYQH.js";
10
- import "./chunk-PLCMJREA.js";
11
- import "./chunk-PYUYJRSK.js";
12
- import "./chunk-ZJWDMTE3.js";
6
+ } from "./chunk-LUVSFETN.js";
7
+ import "./chunk-CYYBFC2K.js";
8
+ import "./chunk-IPI4MFSN.js";
9
+ import "./chunk-4M277YTM.js";
10
+ import "./chunk-C3VAOK5B.js";
11
+ import "./chunk-ZQINWV4W.js";
12
+ import "./chunk-3XKZDQLM.js";
13
+ import "./chunk-G7T27IWB.js";
13
14
  import {
14
15
  ToolAnnotations
15
- } from "./chunk-MYYEW3RA.js";
16
- import "./chunk-BMOIAIVR.js";
17
- import "./chunk-LGIYBDWA.js";
18
- import "./chunk-YEJOQEII.js";
19
- import "./chunk-SWPD52J7.js";
20
- import "./chunk-W7D7WVSY.js";
21
- import "./chunk-ZCAMUXSG.js";
22
- import "./chunk-HDJH3RPR.js";
23
- import "./chunk-QKHR7BMF.js";
16
+ } from "./chunk-DQAZTA4I.js";
17
+ import "./chunk-N7YDVXYJ.js";
18
+ import "./chunk-YEPYT6SD.js";
19
+ import "./chunk-JU7VHODU.js";
20
+ import "./chunk-W4DMKWAB.js";
21
+ import "./chunk-SB3V4YVR.js";
22
+ import "./chunk-RJDDBDSN.js";
23
+ import "./chunk-57RKNWL2.js";
24
+ import "./chunk-UK573G7W.js";
24
25
  import {
25
26
  compileJsonSchemaDecoder,
26
27
  decoderOf,
27
28
  jsonSchemaDecoder,
28
29
  wrap
29
- } from "./chunk-WFSQXYUT.js";
30
- import "./chunk-FZJOYIZO.js";
30
+ } from "./chunk-FWQC6I3C.js";
31
+ import "./chunk-PZB6T6KU.js";
31
32
  import {
32
33
  HttpUrl,
33
34
  JsonObject,
34
35
  ValidationError
35
- } from "./chunk-SATWJKN6.js";
36
- import "./chunk-FW5HBOIK.js";
36
+ } from "./chunk-27F7W2LG.js";
37
+ import "./chunk-CDL5PM2Q.js";
37
38
  import "./chunk-CZ7CSFO4.js";
38
39
  export {
39
40
  ApprovalDecision,
package/js/graphql.js CHANGED
@@ -1,55 +1,56 @@
1
1
  import {
2
2
  catalogCache
3
- } from "./chunk-5MQZEB6Y.js";
3
+ } from "./chunk-XHO2ZX6W.js";
4
4
  import {
5
5
  protocolOperations
6
- } from "./chunk-Z5NMEGJN.js";
6
+ } from "./chunk-TDNYXSIX.js";
7
7
  import "./chunk-BCSNKUAC.js";
8
- import "./chunk-J7O55ZV7.js";
8
+ import "./chunk-LUVSFETN.js";
9
9
  import {
10
10
  cacheKey
11
- } from "./chunk-D47C7KG5.js";
12
- import "./chunk-FDNTX5QJ.js";
13
- import "./chunk-JN55AYQH.js";
14
- import "./chunk-PLCMJREA.js";
11
+ } from "./chunk-CYYBFC2K.js";
12
+ import "./chunk-IPI4MFSN.js";
13
+ import "./chunk-4M277YTM.js";
14
+ import "./chunk-C3VAOK5B.js";
15
+ import "./chunk-ZQINWV4W.js";
15
16
  import {
16
17
  nativeOperation
17
- } from "./chunk-PYUYJRSK.js";
18
+ } from "./chunk-3XKZDQLM.js";
18
19
  import {
19
20
  accountProviderError,
20
21
  graphqlProviderError,
21
22
  httpProviderError
22
- } from "./chunk-ZJWDMTE3.js";
23
- import "./chunk-MYYEW3RA.js";
24
- import "./chunk-BMOIAIVR.js";
25
- import "./chunk-LGIYBDWA.js";
26
- import "./chunk-YEJOQEII.js";
27
- import "./chunk-SWPD52J7.js";
23
+ } from "./chunk-G7T27IWB.js";
24
+ import "./chunk-DQAZTA4I.js";
25
+ import "./chunk-N7YDVXYJ.js";
26
+ import "./chunk-YEPYT6SD.js";
27
+ import "./chunk-JU7VHODU.js";
28
+ import "./chunk-W4DMKWAB.js";
28
29
  import {
29
30
  ProviderError
30
- } from "./chunk-W7D7WVSY.js";
31
- import "./chunk-ZCAMUXSG.js";
31
+ } from "./chunk-SB3V4YVR.js";
32
+ import "./chunk-RJDDBDSN.js";
32
33
  import {
33
34
  FetchHttpClient_exports
34
- } from "./chunk-HDJH3RPR.js";
35
+ } from "./chunk-57RKNWL2.js";
35
36
  import {
36
37
  HttpClientRequest_exports,
37
38
  HttpClient_exports
38
- } from "./chunk-QKHR7BMF.js";
39
+ } from "./chunk-UK573G7W.js";
39
40
  import {
40
41
  jsonSchemaDecoder
41
- } from "./chunk-WFSQXYUT.js";
42
- import "./chunk-FZJOYIZO.js";
42
+ } from "./chunk-FWQC6I3C.js";
43
+ import "./chunk-PZB6T6KU.js";
43
44
  import {
44
45
  AccountId,
45
46
  HttpUrl,
46
47
  JsonObject
47
- } from "./chunk-SATWJKN6.js";
48
+ } from "./chunk-27F7W2LG.js";
48
49
  import {
49
50
  Effect_exports,
50
51
  Redacted_exports,
51
52
  Schema_exports
52
- } from "./chunk-FW5HBOIK.js";
53
+ } from "./chunk-CDL5PM2Q.js";
53
54
  import "./chunk-CZ7CSFO4.js";
54
55
 
55
56
  // src/contracts/graphql.ts