apps 0.0.1-beta.26 → 0.0.1-beta.28

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 (72) hide show
  1. package/README.md +6 -6
  2. package/framework-reference.json +1 -1
  3. package/js/{chunk-AAAMPT6F.js → chunk-65SZ23BK.js} +2 -2
  4. package/js/{chunk-XBG3M64K.js → chunk-6JBTHTI5.js} +1 -1
  5. package/js/{chunk-OBXHLFGQ.js → chunk-B5YJQU45.js} +1 -1
  6. package/js/{chunk-T7WRQJUF.js → chunk-BRGF7VFN.js} +2 -2
  7. package/js/{chunk-HQKIPKM5.js → chunk-BTJMXW4I.js} +1 -1
  8. package/js/{chunk-BTRBOOTD.js → chunk-GLIAMV2R.js} +29 -23
  9. package/js/{chunk-WPKXOTKM.js → chunk-GQ7GCZ4J.js} +3 -3
  10. package/js/{chunk-EXDR4HVM.js → chunk-JN3PEGMW.js} +109 -12
  11. package/js/{chunk-DAIW2WM3.js → chunk-KQCMHI3K.js} +3 -3
  12. package/js/{chunk-HIYRKEWP.js → chunk-L76NWXM5.js} +74 -22
  13. package/js/{chunk-GH6PY5BQ.js → chunk-M2KEEOIQ.js} +1 -1
  14. package/js/{chunk-OI7OI2U3.js → chunk-MWCLJQRI.js} +2 -2
  15. package/js/{chunk-TACLXEAE.js → chunk-NSBRV4FJ.js} +1 -1
  16. package/js/{chunk-DM5U7G7V.js → chunk-NXTXZ635.js} +1842 -1840
  17. package/js/{chunk-3YN4UDPB.js → chunk-PTUZSCEV.js} +2 -2
  18. package/js/{chunk-KKGRSXUK.js → chunk-PWF2DRJ3.js} +1 -1
  19. package/js/{chunk-2TP7C25K.js → chunk-SDLIDQXG.js} +3 -3
  20. package/js/{chunk-VGEPL4BV.js → chunk-TE2HPDZG.js} +110 -5
  21. package/js/{chunk-PC5RHPUP.js → chunk-TSLG2WPA.js} +2 -2
  22. package/js/{chunk-KNJAOYV4.js → chunk-V2I3MMPM.js} +2 -2
  23. package/js/{chunk-NXO2GN2T.js → chunk-VF3X26ZO.js} +8 -8
  24. package/js/{chunk-4CMJD7AB.js → chunk-VIQQ52V7.js} +24 -8
  25. package/js/{chunk-ZVMZWXVF.js → chunk-VUVBMNKC.js} +2 -2
  26. package/js/{chunk-SUY33XAY.js → chunk-WQ5MVBTP.js} +1 -1
  27. package/js/{chunk-LPN4ONWW.js → chunk-XBQTJP76.js} +2 -2
  28. package/js/{chunk-IE6W5RNN.js → chunk-YML53Z7H.js} +2 -2
  29. package/js/{chunk-DUEZ2XCO.js → chunk-YXKXKGN6.js} +3 -3
  30. package/js/{chunk-XIRAIB3P.js → chunk-ZZOCEUTB.js} +4 -4
  31. package/js/client.js +10 -10
  32. package/js/contracts.js +19 -7
  33. package/js/effect.js +19 -19
  34. package/js/graphql.js +28 -23
  35. package/js/host.js +19 -19
  36. package/js/index.js +16 -12
  37. package/js/mcp/effect.js +23 -21
  38. package/js/mcp/stdio.js +21 -21
  39. package/js/mcp.js +29 -24
  40. package/js/openapi.js +20 -16
  41. package/js/react.js +3 -3
  42. package/js/skills/effect.js +3 -3
  43. package/js/skills.js +11 -11
  44. package/js/storage/facet.js +4 -4
  45. package/js/ui/auth/contracts.js +2 -2
  46. package/js/ui/auth.js +5 -5
  47. package/js/ui/contracts.js +4 -4
  48. package/js/ui/serving.js +8 -8
  49. package/package.json +1 -1
  50. package/runtime.json +1 -1
  51. package/types/apps/src/contracts/graphql.d.ts +2 -1
  52. package/types/apps/src/contracts/host.d.ts +1 -0
  53. package/types/apps/src/contracts/mcp.d.ts +51 -4
  54. package/types/apps/src/contracts/network.d.ts +84 -0
  55. package/types/apps/src/contracts/openapi.d.ts +2 -1
  56. package/types/apps/src/contracts/provider.d.ts +6 -0
  57. package/types/apps/src/implementation/elicitation.d.ts +8 -8
  58. package/types/apps/src/implementation/failure-detail.d.ts +3 -2
  59. package/types/apps/src/implementation/graphql.d.ts +4 -3
  60. package/types/apps/src/implementation/mcp-call.d.ts +3 -2
  61. package/types/apps/src/implementation/mcp-client.d.ts +7 -5
  62. package/types/apps/src/implementation/mcp-stdio.d.ts +1 -1
  63. package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
  64. package/types/apps/src/implementation/mcp.d.ts +16 -5
  65. package/types/apps/src/implementation/network.d.ts +16 -0
  66. package/types/apps/src/implementation/openapi-compile.d.ts +1 -1
  67. package/types/apps/src/implementation/openapi-request.d.ts +2 -1
  68. package/types/apps/src/implementation/router-catalog.d.ts +6 -6
  69. package/types/apps/src/implementation/skills.d.ts +2 -2
  70. package/types/apps/src/index.d.ts +1 -0
  71. package/types/apps/src/mcp.d.ts +20 -1
  72. package/types/apps/src/skills.d.ts +4 -4
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  appSignInCallbackPath
3
- } from "./chunk-SUY33XAY.js";
3
+ } from "./chunk-WQ5MVBTP.js";
4
4
  import {
5
5
  HttpServerResponse_exports
6
- } from "./chunk-OBXHLFGQ.js";
6
+ } from "./chunk-B5YJQU45.js";
7
7
 
8
8
  // src/implementation/ui-auth.ts
9
9
  var appPrivateHeaders = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Schema_exports
3
- } from "./chunk-DM5U7G7V.js";
3
+ } from "./chunk-NXTXZ635.js";
4
4
 
5
5
  // src/contracts/schema.ts
6
6
  var JsonValue = Schema_exports.Json;
@@ -19,10 +19,10 @@ import {
19
19
  text,
20
20
  uint8Array,
21
21
  urlParams
22
- } from "./chunk-OBXHLFGQ.js";
22
+ } from "./chunk-B5YJQU45.js";
23
23
  import {
24
24
  JsonValue
25
- } from "./chunk-KKGRSXUK.js";
25
+ } from "./chunk-PWF2DRJ3.js";
26
26
  import {
27
27
  Cause,
28
28
  Defect,
@@ -118,7 +118,7 @@ import {
118
118
  transformEffect,
119
119
  transformPull,
120
120
  void_2 as void_
121
- } from "./chunk-DM5U7G7V.js";
121
+ } from "./chunk-NXTXZ635.js";
122
122
  import {
123
123
  __export
124
124
  } from "./chunk-CZ7CSFO4.js";
@@ -2,7 +2,7 @@ import {
2
2
  DatabaseFieldReserved,
3
3
  DatabaseLimitExceeded,
4
4
  DatabaseSchema
5
- } from "./chunk-GH6PY5BQ.js";
5
+ } from "./chunk-M2KEEOIQ.js";
6
6
  import {
7
7
  CacheCommand,
8
8
  CacheReply,
@@ -13,18 +13,18 @@ import {
13
13
  FailureSource,
14
14
  ProviderError,
15
15
  UpstreamError
16
- } from "./chunk-T7WRQJUF.js";
16
+ } from "./chunk-BRGF7VFN.js";
17
17
  import {
18
18
  AppSkillName,
19
19
  AppSkills,
20
20
  SkillLoadFailed
21
- } from "./chunk-TACLXEAE.js";
21
+ } from "./chunk-NSBRV4FJ.js";
22
22
  import {
23
23
  AccountId,
24
24
  HttpUrl,
25
25
  JsonObject as JsonObject2,
26
26
  JsonValue
27
- } from "./chunk-KKGRSXUK.js";
27
+ } from "./chunk-PWF2DRJ3.js";
28
28
  import {
29
29
  Any,
30
30
  ArraySchema,
@@ -78,7 +78,7 @@ import {
78
78
  transformOptional,
79
79
  withConstructorDefault,
80
80
  withDefault
81
- } from "./chunk-DM5U7G7V.js";
81
+ } from "./chunk-NXTXZ635.js";
82
82
 
83
83
  // src/contracts/router.ts
84
84
  var reservedRouterKeys = /* @__PURE__ */ new Set([
@@ -141,6 +141,12 @@ var McpToolsOptions = Schema_exports.Struct({
141
141
  )
142
142
  )
143
143
  });
144
+ var McpHealthInput = Schema_exports.Struct({
145
+ ...McpToolsOptions.fields,
146
+ headers: Schema_exports.Record(Schema_exports.String, Schema_exports.String),
147
+ deadline: Schema_exports.optional(Schema_exports.Finite)
148
+ });
149
+ var mcpHealthReserveMs = 2 * defaultMcpClientLimits.cleanupTimeoutMs + 250;
144
150
  var McpToolResult = Schema_exports.Struct({
145
151
  content: Schema_exports.Array(JsonObject2),
146
152
  structuredContent: Schema_exports.optionalKey(JsonObject2),
@@ -178,6 +184,11 @@ var McpError = class extends Schema_exports.TaggedError()("McpError", {
178
184
  upstream: Schema_exports.optional(UpstreamError)
179
185
  }) {
180
186
  };
187
+ var McpCredentialsUnverified = class extends Schema_exports.TaggedError()(
188
+ "McpCredentialsUnverified",
189
+ { anonymous: Schema_exports.Union([Schema_exports.Literal("answered"), McpError, ProviderError]) }
190
+ ) {
191
+ };
181
192
  var ProcessConfig = Schema_exports.Struct({
182
193
  command: Schema_exports.NonEmptyString,
183
194
  args: Schema_exports.Array(Schema_exports.String),
@@ -215,6 +226,88 @@ var defaultOpenapiErrorLimits = OpenapiErrorLimits.make({
215
226
  readTimeoutMs: 2e3
216
227
  });
217
228
 
229
+ // src/contracts/network.ts
230
+ var NetworkRefusal = Schema_exports.Union([
231
+ Schema_exports.Struct({ reason: Schema_exports.Literal("private_address") }),
232
+ Schema_exports.Struct({
233
+ reason: Schema_exports.Literal("credential_host"),
234
+ /** The provider of the credential handle the request carried. */
235
+ provider: Schema_exports.String,
236
+ /** The hosts that provider's credentials may reach; empty when it declares none. */
237
+ allowedHosts: Schema_exports.Array(Schema_exports.String)
238
+ }),
239
+ Schema_exports.Struct({ reason: Schema_exports.Literal("credential_app") }),
240
+ Schema_exports.Struct({
241
+ reason: Schema_exports.Literal("credential_expired"),
242
+ /** The provider of the expired credential handle. */
243
+ provider: Schema_exports.String
244
+ })
245
+ ]);
246
+ var NetworkRefused = class extends Schema_exports.TaggedError()("NetworkRefused", {
247
+ /** The refused destination, with its port when the URL names one. */
248
+ host: Schema_exports.String,
249
+ refusal: NetworkRefusal
250
+ }) {
251
+ get message() {
252
+ const refusal = this.refusal;
253
+ switch (refusal.reason) {
254
+ case "private_address":
255
+ return `Executor refused a request to ${this.host}: apps on this instance can reach only public addresses, and ${this.host} is a private, loopback or internal address. The request was not sent.`;
256
+ case "credential_host":
257
+ return refusal.allowedHosts.length === 0 ? `Executor refused this request: ${refusal.provider} credentials cannot be sent to ${this.host}: the provider declares no hosts.` : `Executor refused this request: ${refusal.provider} credentials cannot be sent to ${this.host}. The provider allows: ${refusal.allowedHosts.join(", ")}.`;
258
+ case "credential_app":
259
+ return "Executor refused this request: it carries a credential handle that is not valid for this app. Use the account fields this invocation received.";
260
+ case "credential_expired":
261
+ return `Executor refused this request: it carries an expired ${refusal.provider} credential handle. Use the account fields this invocation received.`;
262
+ }
263
+ }
264
+ };
265
+ var networkRefusalStatus = 421;
266
+ var networkRefusalHeader = "x-executor-refused";
267
+ var NetworkRefusedHeader = Schema_exports.StringFromUriComponent.pipe(
268
+ Schema_exports.decodeTo(Schema_exports.fromJsonString(NetworkRefused))
269
+ );
270
+ var encodeRefusal = Schema_exports.encodeSync(NetworkRefused);
271
+ var encodeRefusalHeader = Schema_exports.encodeSync(NetworkRefusedHeader);
272
+ var networkRefusalResponse = (refused) => new Response(JSON.stringify({ ...encodeRefusal(refused), message: refused.message }), {
273
+ status: networkRefusalStatus,
274
+ statusText: "Refused by Executor",
275
+ headers: {
276
+ "content-type": "application/json; charset=utf-8",
277
+ [networkRefusalHeader]: encodeRefusalHeader(refused)
278
+ }
279
+ });
280
+ var RestrictedFetchOption = Schema_exports.Literals(["redirect", "cache", "integrity"]);
281
+ var supportedFetchOptions = {
282
+ redirect: ["follow", "manual"],
283
+ cache: ["no-store", "no-cache"],
284
+ integrity: [""]
285
+ };
286
+ var FetchOptionUnsupported = class extends Schema_exports.TaggedError()(
287
+ "FetchOptionUnsupported",
288
+ {
289
+ option: RestrictedFetchOption,
290
+ value: Schema_exports.String,
291
+ supported: Schema_exports.Array(Schema_exports.String)
292
+ }
293
+ ) {
294
+ get message() {
295
+ const supported = this.supported.map((value) => JSON.stringify(value)).join(" or ");
296
+ return `fetch option ${this.option}: ${JSON.stringify(this.value)} is not supported by Executor's app runtime. Use ${supported}, or omit ${this.option}.${this.advice}`;
297
+ }
298
+ /** What to do instead, when the standard value has an equivalent the runtime supports. */
299
+ get advice() {
300
+ switch (this.option) {
301
+ case "redirect":
302
+ return this.value === "error" ? ` To reject redirects, send redirect: "manual" and treat a 3xx response as the error.` : "";
303
+ case "cache":
304
+ return "";
305
+ case "integrity":
306
+ return " To check a digest, read the body and hash it with crypto.subtle.digest.";
307
+ }
308
+ }
309
+ };
310
+
218
311
  // src/contracts/workflows.ts
219
312
  var WorkflowRunId = Schema_exports.NonEmptyString.pipe(Schema_exports.brand("wfr"));
220
313
  var WorkflowName = Schema_exports.NonEmptyString.check(Schema_exports.isMaxLength(200));
@@ -2924,6 +3017,15 @@ var ToolResultObservation = Context_exports.Reference(
2924
3017
  );
2925
3018
 
2926
3019
  export {
3020
+ NetworkRefusal,
3021
+ NetworkRefused,
3022
+ networkRefusalStatus,
3023
+ networkRefusalHeader,
3024
+ NetworkRefusedHeader,
3025
+ networkRefusalResponse,
3026
+ RestrictedFetchOption,
3027
+ supportedFetchOptions,
3028
+ FetchOptionUnsupported,
2927
3029
  SecretsMethod,
2928
3030
  OAuthClientAuth,
2929
3031
  OAuthSecretClientAuth,
@@ -2945,10 +3047,13 @@ export {
2945
3047
  defaultMcpClientLimits,
2946
3048
  mcpSdkTimerCeilingMs,
2947
3049
  McpToolsOptions,
3050
+ McpHealthInput,
3051
+ mcpHealthReserveMs,
2948
3052
  McpToolResult,
2949
3053
  McpToolMetadata,
2950
3054
  McpServerHeader,
2951
3055
  McpError,
3056
+ McpCredentialsUnverified,
2952
3057
  ProcessConfig,
2953
3058
  maxApiErrorInstructionsLength,
2954
3059
  ApiErrorRecovery,
@@ -5,11 +5,11 @@ import {
5
5
  SkillDefinitionInvalid,
6
6
  SkillFile,
7
7
  SkillFilePath
8
- } from "./chunk-TACLXEAE.js";
8
+ } from "./chunk-NSBRV4FJ.js";
9
9
  import {
10
10
  Effect_exports,
11
11
  Schema_exports
12
- } from "./chunk-DM5U7G7V.js";
12
+ } from "./chunk-NXTXZ635.js";
13
13
 
14
14
  // src/implementation/skill-files.ts
15
15
  var skillFromFiles = (input, source = {}) => Effect_exports.gen(function* () {
@@ -4,7 +4,7 @@ import {
4
4
  fromWeb,
5
5
  layerMergedContext,
6
6
  make2 as make
7
- } from "./chunk-OBXHLFGQ.js";
7
+ } from "./chunk-B5YJQU45.js";
8
8
  import {
9
9
  Reference,
10
10
  Service,
@@ -17,7 +17,7 @@ import {
17
17
  succeed4 as succeed,
18
18
  toReadableStreamEffect,
19
19
  tryPromise
20
- } from "./chunk-DM5U7G7V.js";
20
+ } from "./chunk-NXTXZ635.js";
21
21
  import {
22
22
  __export
23
23
  } from "./chunk-CZ7CSFO4.js";
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  promiseTable
3
- } from "./chunk-LPN4ONWW.js";
3
+ } from "./chunk-XBQTJP76.js";
4
4
  import {
5
5
  declaredOperations,
6
6
  fromPromise,
7
7
  nativeOperation,
8
8
  nativeRouter
9
- } from "./chunk-WPKXOTKM.js";
9
+ } from "./chunk-GQ7GCZ4J.js";
10
10
  import {
11
11
  ScheduleTiming
12
- } from "./chunk-VGEPL4BV.js";
12
+ } from "./chunk-TE2HPDZG.js";
13
13
  import {
14
14
  DatabaseSchema
15
- } from "./chunk-GH6PY5BQ.js";
15
+ } from "./chunk-M2KEEOIQ.js";
16
16
  import {
17
17
  decoderOf,
18
18
  isSchema,
19
19
  storageFieldOf
20
- } from "./chunk-IE6W5RNN.js";
20
+ } from "./chunk-YML53Z7H.js";
21
21
  import {
22
22
  AppStorageUnavailable
23
- } from "./chunk-HQKIPKM5.js";
23
+ } from "./chunk-BTJMXW4I.js";
24
24
  import {
25
25
  JsonValue
26
- } from "./chunk-KKGRSXUK.js";
26
+ } from "./chunk-PWF2DRJ3.js";
27
27
  import {
28
28
  Effect_exports,
29
29
  Schema_exports
30
- } from "./chunk-DM5U7G7V.js";
30
+ } from "./chunk-NXTXZ635.js";
31
31
 
32
32
  // src/contracts/http.ts
33
33
  var ResponseStatusError = class extends Schema_exports.TaggedError()(
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  prepareElicitation
3
- } from "./chunk-BTRBOOTD.js";
3
+ } from "./chunk-GLIAMV2R.js";
4
4
  import {
5
5
  fromPromise
6
- } from "./chunk-WPKXOTKM.js";
6
+ } from "./chunk-GQ7GCZ4J.js";
7
7
  import {
8
8
  bodyUpstreamError
9
- } from "./chunk-DAIW2WM3.js";
9
+ } from "./chunk-KQCMHI3K.js";
10
10
  import {
11
11
  ElicitationFailed,
12
12
  McpError,
@@ -18,15 +18,15 @@ import {
18
18
  defaultElicitationLimits,
19
19
  defaultMcpClientLimits,
20
20
  mcpSdkTimerCeilingMs
21
- } from "./chunk-VGEPL4BV.js";
21
+ } from "./chunk-TE2HPDZG.js";
22
22
  import {
23
23
  jsonSchemaDecoder,
24
24
  nestJsonSchema,
25
25
  preparedJsonSchemaDecoder
26
- } from "./chunk-IE6W5RNN.js";
26
+ } from "./chunk-YML53Z7H.js";
27
27
  import {
28
28
  JsonObject
29
- } from "./chunk-KKGRSXUK.js";
29
+ } from "./chunk-PWF2DRJ3.js";
30
30
  import {
31
31
  Clock_exports,
32
32
  Deferred_exports,
@@ -35,7 +35,7 @@ import {
35
35
  Option_exports,
36
36
  Queue_exports,
37
37
  Schema_exports
38
- } from "./chunk-DM5U7G7V.js";
38
+ } from "./chunk-NXTXZ635.js";
39
39
 
40
40
  // src/implementation/mcp-tools.ts
41
41
  var resultFields = {
@@ -353,10 +353,26 @@ function mcpClient(withClient, timeoutMs, failure) {
353
353
  };
354
354
  })
355
355
  ).pipe(Effect_exports.withSpan("provider.mcp.discover"));
356
+ const check = withClient(
357
+ "discover",
358
+ (client) => Effect_exports.tryPromise({
359
+ try: (signal) => client.request({ method: "tools/list", params: {} }, ListToolsResultSchema, {
360
+ signal,
361
+ timeout: timeoutMs
362
+ }),
363
+ catch: (error) => failure("discover", error)
364
+ }).pipe(
365
+ Effect_exports.asVoid,
366
+ Effect_exports.withSpan("provider.mcp.request", {
367
+ kind: "client",
368
+ attributes: { "rpc.system.name": "jsonrpc", "rpc.method": "tools/list" }
369
+ })
370
+ )
371
+ ).pipe(Effect_exports.withSpan("provider.mcp.check"));
356
372
  const call = (name, input, context) => withClient("call", (client) => mcpCall(client, name, input, context, timeoutMs, failure)).pipe(
357
373
  Effect_exports.withSpan("provider.mcp.call", { attributes: { "mcp.tool.name": name } })
358
374
  );
359
- return { list, call };
375
+ return { list, check, call };
360
376
  }
361
377
 
362
378
  export {
@@ -3,14 +3,14 @@ import {
3
3
  CacheEntry,
4
4
  CacheError,
5
5
  cacheLimits
6
- } from "./chunk-T7WRQJUF.js";
6
+ } from "./chunk-BRGF7VFN.js";
7
7
  import {
8
8
  Clock_exports,
9
9
  Duration_exports,
10
10
  Effect_exports,
11
11
  Exit_exports,
12
12
  Schema_exports
13
- } from "./chunk-DM5U7G7V.js";
13
+ } from "./chunk-NXTXZ635.js";
14
14
 
15
15
  // ../app-cache/src/index.ts
16
16
  var canonical = (value) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Schema_exports
3
- } from "./chunk-DM5U7G7V.js";
3
+ } from "./chunk-NXTXZ635.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(
@@ -12,7 +12,7 @@ import {
12
12
  defaultDatabaseLimits,
13
13
  defaultDatabaseRuntimeLimits,
14
14
  reservedFieldNames
15
- } from "./chunk-GH6PY5BQ.js";
15
+ } from "./chunk-M2KEEOIQ.js";
16
16
  import {
17
17
  Cause_exports,
18
18
  Clock_exports,
@@ -20,7 +20,7 @@ import {
20
20
  Encoding_exports,
21
21
  Schema_exports,
22
22
  Semaphore_exports
23
- } from "./chunk-DM5U7G7V.js";
23
+ } from "./chunk-NXTXZ635.js";
24
24
 
25
25
  // ../app-data/src/implementation/schema.ts
26
26
  var metadata = new Set(reservedFieldNames);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  JsonObject,
3
3
  ValidationError
4
- } from "./chunk-KKGRSXUK.js";
4
+ } from "./chunk-PWF2DRJ3.js";
5
5
  import {
6
6
  Cause_exports,
7
7
  Effect_exports,
@@ -10,7 +10,7 @@ import {
10
10
  SchemaIssue_exports,
11
11
  SchemaParser_exports,
12
12
  Schema_exports
13
- } from "./chunk-DM5U7G7V.js";
13
+ } from "./chunk-NXTXZ635.js";
14
14
 
15
15
  // ../../node_modules/.bun/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js
16
16
  function deepCompareStrict(a, b) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FetchHttpClient_exports
3
- } from "./chunk-KNJAOYV4.js";
3
+ } from "./chunk-V2I3MMPM.js";
4
4
  import {
5
5
  HttpBody_exports,
6
6
  HttpClient,
@@ -18,7 +18,7 @@ import {
18
18
  setBody,
19
19
  transformResponse,
20
20
  uint8Array
21
- } from "./chunk-OBXHLFGQ.js";
21
+ } from "./chunk-B5YJQU45.js";
22
22
  import {
23
23
  Array as Array2,
24
24
  Boolean2 as Boolean,
@@ -125,7 +125,7 @@ import {
125
125
  withDefault2 as withDefault,
126
126
  withTracerEnabled,
127
127
  zero
128
- } from "./chunk-DM5U7G7V.js";
128
+ } from "./chunk-NXTXZ635.js";
129
129
  import {
130
130
  __export
131
131
  } from "./chunk-CZ7CSFO4.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  CacheError
3
- } from "./chunk-T7WRQJUF.js";
3
+ } from "./chunk-BRGF7VFN.js";
4
4
  import {
5
5
  wrap
6
- } from "./chunk-IE6W5RNN.js";
6
+ } from "./chunk-YML53Z7H.js";
7
7
  import {
8
8
  JsonObject
9
- } from "./chunk-KKGRSXUK.js";
9
+ } from "./chunk-PWF2DRJ3.js";
10
10
  import {
11
11
  Duration_exports,
12
12
  Effect_exports,
13
13
  Schema_exports
14
- } from "./chunk-DM5U7G7V.js";
14
+ } from "./chunk-NXTXZ635.js";
15
15
 
16
16
  // src/implementation/catalog-cache.ts
17
17
  var catalogScope = (options, invalid) => {
package/js/client.js CHANGED
@@ -4,36 +4,36 @@ import {
4
4
  UiContext,
5
5
  UiDeploymentChanged,
6
6
  UiFailed
7
- } from "./chunk-2TP7C25K.js";
7
+ } from "./chunk-SDLIDQXG.js";
8
8
  import {
9
9
  AsyncResult_exports,
10
10
  AtomRegistry_exports,
11
11
  Atom_exports,
12
12
  queryResult
13
- } from "./chunk-AAAMPT6F.js";
14
- import "./chunk-XBG3M64K.js";
13
+ } from "./chunk-65SZ23BK.js";
14
+ import "./chunk-6JBTHTI5.js";
15
15
  import {
16
16
  OtlpExporter_exports,
17
17
  externalTrace,
18
18
  pendingSpan,
19
19
  telemetryLayer,
20
20
  traceLinks
21
- } from "./chunk-DUEZ2XCO.js";
21
+ } from "./chunk-YXKXKGN6.js";
22
22
  import {
23
23
  FetchHttpClient_exports
24
- } from "./chunk-KNJAOYV4.js";
24
+ } from "./chunk-V2I3MMPM.js";
25
25
  import {
26
26
  HttpClientError_exports
27
- } from "./chunk-OBXHLFGQ.js";
27
+ } from "./chunk-B5YJQU45.js";
28
28
  import {
29
29
  decoderOf
30
- } from "./chunk-IE6W5RNN.js";
30
+ } from "./chunk-YML53Z7H.js";
31
31
  import {
32
32
  StorageName
33
- } from "./chunk-HQKIPKM5.js";
33
+ } from "./chunk-BTJMXW4I.js";
34
34
  import {
35
35
  JsonValue
36
- } from "./chunk-KKGRSXUK.js";
36
+ } from "./chunk-PWF2DRJ3.js";
37
37
  import {
38
38
  Cause_exports,
39
39
  Clock_exports,
@@ -52,7 +52,7 @@ import {
52
52
  Semaphore_exports,
53
53
  Stream_exports,
54
54
  Tracer_exports
55
- } from "./chunk-DM5U7G7V.js";
55
+ } from "./chunk-NXTXZ635.js";
56
56
  import "./chunk-CZ7CSFO4.js";
57
57
 
58
58
  // src/contracts/live.ts
package/js/contracts.js CHANGED
@@ -14,6 +14,7 @@ import {
14
14
  ElicitationLimits,
15
15
  ElicitationReply,
16
16
  ElicitationResponse,
17
+ FetchOptionUnsupported,
17
18
  FormElicitation,
18
19
  HostAccountCheckError,
19
20
  HostAccountsInvalid,
@@ -52,6 +53,8 @@ import {
52
53
  ManualWebhookSetup,
53
54
  McpClientLimits,
54
55
  McpError,
56
+ NetworkRefusal,
57
+ NetworkRefused,
55
58
  NonRetryableError,
56
59
  OAuthClientAuth,
57
60
  OAuthSecretClientAuth,
@@ -99,6 +102,9 @@ import {
99
102
  maxApiErrorMessageLength,
100
103
  maxInputProblems,
101
104
  minimumIntervalMilliseconds,
105
+ networkRefusalHeader,
106
+ networkRefusalResponse,
107
+ networkRefusalStatus,
102
108
  protocol1,
103
109
  protocol2,
104
110
  protocol3,
@@ -111,11 +117,11 @@ import {
111
117
  skillCatalog,
112
118
  skillsCommand,
113
119
  workflowDurationMillis
114
- } from "./chunk-VGEPL4BV.js";
120
+ } from "./chunk-TE2HPDZG.js";
115
121
  import {
116
122
  DatabaseFieldReserved,
117
123
  DatabaseLimitExceeded
118
- } from "./chunk-GH6PY5BQ.js";
124
+ } from "./chunk-M2KEEOIQ.js";
119
125
  import {
120
126
  FailureCode,
121
127
  FailureDetail,
@@ -132,7 +138,7 @@ import {
132
138
  maxFailureFields,
133
139
  maxFailureMessageLength,
134
140
  maxUpstreamMessageLength
135
- } from "./chunk-T7WRQJUF.js";
141
+ } from "./chunk-BRGF7VFN.js";
136
142
  import {
137
143
  AppSkillMetadata,
138
144
  AppSkillName,
@@ -145,17 +151,17 @@ import {
145
151
  SkillServiceName,
146
152
  skillFormatLimits,
147
153
  skillLoadLimits
148
- } from "./chunk-TACLXEAE.js";
154
+ } from "./chunk-NSBRV4FJ.js";
149
155
  import {
150
156
  AppStorageError,
151
157
  AppStorageUnavailable,
152
158
  StorageName
153
- } from "./chunk-HQKIPKM5.js";
159
+ } from "./chunk-BTJMXW4I.js";
154
160
  import {
155
161
  AccountId,
156
162
  HttpUrl
157
- } from "./chunk-KKGRSXUK.js";
158
- import "./chunk-DM5U7G7V.js";
163
+ } from "./chunk-PWF2DRJ3.js";
164
+ import "./chunk-NXTXZ635.js";
159
165
  import "./chunk-CZ7CSFO4.js";
160
166
  export {
161
167
  AccountCheckCommand,
@@ -191,6 +197,7 @@ export {
191
197
  FailureName,
192
198
  FailurePhase,
193
199
  FailureSource,
200
+ FetchOptionUnsupported,
194
201
  FormElicitation,
195
202
  HostAccountCheckError,
196
203
  HostAccountsInvalid,
@@ -230,6 +237,8 @@ export {
230
237
  ManualWebhookSetup,
231
238
  McpClientLimits,
232
239
  McpError,
240
+ NetworkRefusal,
241
+ NetworkRefused,
233
242
  NonRetryableError,
234
243
  OAuthClientAuth,
235
244
  OAuthSecretClientAuth,
@@ -289,6 +298,9 @@ export {
289
298
  maxInputProblems,
290
299
  maxUpstreamMessageLength,
291
300
  minimumIntervalMilliseconds,
301
+ networkRefusalHeader,
302
+ networkRefusalResponse,
303
+ networkRefusalStatus,
292
304
  protocol1,
293
305
  protocol2,
294
306
  protocol3,