apps 0.0.1-beta.143 → 0.0.1-beta.144

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 (57) hide show
  1. package/check-publish.mjs +0 -1
  2. package/framework-reference.json +1 -1
  3. package/js/{chunk-B54D6AN7.js → chunk-455CCO6Q.js} +7 -15
  4. package/js/{chunk-RW5EXIO6.js → chunk-5MEOL2SG.js} +6 -15
  5. package/js/{chunk-PASOVDON.js → chunk-6NRWFVK2.js} +9 -30
  6. package/js/{chunk-NXUNFV44.js → chunk-6OWHQINS.js} +9 -14
  7. package/js/{chunk-2XEQYDQY.js → chunk-A6FRLRCN.js} +0 -1
  8. package/js/{chunk-Y3QPWYHC.js → chunk-AFEMXP3F.js} +4 -5
  9. package/js/{chunk-XRNSAU62.js → chunk-B2PSDMZP.js} +2 -2
  10. package/js/{chunk-K24M6LZ7.js → chunk-B4JN2A6F.js} +2 -2
  11. package/js/{chunk-RUSVGD5N.js → chunk-BU3UOD2T.js} +2 -2
  12. package/js/{chunk-LRXY54YF.js → chunk-EXL6F456.js} +1 -1
  13. package/js/{chunk-ADG72XX3.js → chunk-JLHRRTRH.js} +6 -13
  14. package/js/{chunk-3RIEA22Q.js → chunk-OFSXKKD6.js} +24 -43
  15. package/js/{chunk-V6OUBNL4.js → chunk-QDF7PQAD.js} +4 -6
  16. package/js/{chunk-H4JK7UTH.js → chunk-T4MICYGT.js} +6 -47
  17. package/js/{chunk-XAOJP46A.js → chunk-XR7KZNKD.js} +1 -1
  18. package/js/client.js +2 -7
  19. package/js/contracts.js +2 -2
  20. package/js/effect.js +12 -12
  21. package/js/graphql.js +14 -16
  22. package/js/host.js +12 -14
  23. package/js/index.js +8 -13
  24. package/js/mcp/effect.js +13 -13
  25. package/js/mcp.js +15 -15
  26. package/js/openapi.js +12 -19
  27. package/js/skills/effect.js +2 -2
  28. package/js/skills.js +15 -21
  29. package/js/ui/serving.js +1 -1
  30. package/package.json +1 -1
  31. package/runtime.json +1 -1
  32. package/types/app-cache/src/index.d.ts +1 -40
  33. package/types/app-data/src/contracts/database.d.ts +0 -21
  34. package/types/telemetry/src/app-records.d.ts +0 -24
  35. package/types/telemetry/src/browser-operations.d.ts +0 -8
  36. package/types/telemetry/src/browser-performance.d.ts +0 -2
  37. package/types/telemetry/src/browser-request-timing.d.ts +0 -1
  38. package/types/telemetry/src/browser.d.ts +0 -10
  39. package/types/telemetry/src/config.d.ts +0 -8
  40. package/types/telemetry/src/context.d.ts +0 -6
  41. package/types/telemetry/src/index.d.ts +0 -1
  42. package/types/telemetry/src/keepalive.d.ts +0 -44
  43. package/types/telemetry/src/layer.d.ts +0 -8
  44. package/types/telemetry/src/measurements.d.ts +0 -8
  45. package/types/telemetry/src/ownership.d.ts +0 -45
  46. package/types/telemetry/src/pending-span.d.ts +0 -2
  47. package/types/telemetry/src/recorded-failure.d.ts +0 -26
  48. package/types/telemetry/src/relay.d.ts +0 -29
  49. package/types/telemetry/src/span-attributes.d.ts +0 -38
  50. package/types/telemetry/src/trace-context.d.ts +0 -6
  51. package/types/telemetry/src/transport.d.ts +0 -10
  52. package/types/utils/src/api-error.d.ts +0 -22
  53. package/types/utils/src/connection-failure.d.ts +0 -10
  54. package/types/utils/src/random-uuid.d.ts +0 -5
  55. package/types/utils/src/recorded-message.d.ts +0 -15
  56. package/types/utils/src/schema-definitions.d.ts +0 -6
  57. package/types/utils/src/user-facing-error.d.ts +0 -19
@@ -2,11 +2,11 @@ import {
2
2
  declaredOperations,
3
3
  nativeOperation,
4
4
  nativeRouter
5
- } from "./chunk-B54D6AN7.js";
5
+ } from "./chunk-455CCO6Q.js";
6
6
  import {
7
7
  fromPromise,
8
8
  method
9
- } from "./chunk-RUSVGD5N.js";
9
+ } from "./chunk-BU3UOD2T.js";
10
10
  import {
11
11
  EmittedEvent,
12
12
  EventName,
@@ -17,13 +17,13 @@ import {
17
17
  normalizePlacements,
18
18
  placementFields,
19
19
  renderPlacement
20
- } from "./chunk-LRXY54YF.js";
20
+ } from "./chunk-EXL6F456.js";
21
21
  import {
22
22
  decoderOf,
23
23
  isSchema,
24
24
  jsonSchemaDocument,
25
25
  schemaArgument
26
- } from "./chunk-ADG72XX3.js";
26
+ } from "./chunk-JLHRRTRH.js";
27
27
  import {
28
28
  JsonValue
29
29
  } from "./chunk-7A4ZSEM3.js";
@@ -205,7 +205,6 @@ var workflow = (options, run) => ({
205
205
  input: decoderOf(schemaArgument(options.input, "The workflow input")),
206
206
  ...options.output === void 0 ? {} : { output: decoderOf(schemaArgument(options.output, "The workflow output")) },
207
207
  ...options.description === void 0 ? {} : { description: options.description },
208
- // SAFETY: defineApp checks required context; the host supplies the pinned run's capabilities.
209
208
  run: (context, input) => fromPromise(run, "workflow")(context, input)
210
209
  }
211
210
  });
@@ -306,7 +305,6 @@ function rejectCatalogs(definition) {
306
305
  function adaptDefinition(definition) {
307
306
  rejectCatalogs(definition);
308
307
  const webhooks = definition.webhooks === void 0 ? {} : {
309
- // SAFETY: `Required` only where the optional method was just checked to be present.
310
308
  webhooks: Object.fromEntries(
311
309
  Object.entries(definition.webhooks).map(([name, webhook]) => [
312
310
  name,
@@ -233,7 +233,6 @@ var makeOwnershipAccounting = (origin, owner) => {
233
233
  const declared = inBackground ? "background" : declaredOwner(options.annotations);
234
234
  const boundary = {
235
235
  owner: declared ?? enclosingBoundary?.owner ?? owner,
236
- // Background work runs beside its caller, which stays innermost meanwhile.
237
236
  parent: declared === "background" ? void 0 : enclosingBoundary,
238
237
  open: true,
239
238
  children: 0
@@ -288,15 +287,10 @@ var makeOwnershipAccounting = (origin, owner) => {
288
287
  }
289
288
  });
290
289
  return {
291
- /** Run `effect` with the spans it opens observed, including spans it hands to later work. */
292
290
  observe: (effect2) => Effect_exports.gen(function* () {
293
291
  const tracer = yield* Tracer_exports.Tracer;
294
292
  return yield* effect2.pipe(Effect_exports.provideService(Tracer_exports.Tracer, observed(tracer)));
295
293
  }),
296
- /**
297
- * Close the window at `end` and return its milliseconds by owner, each instant counted once.
298
- * Spans still open count up to `end`; spans that open or end afterwards are ignored.
299
- */
300
294
  read: (end) => {
301
295
  if (!done) advance(end);
302
296
  done = true;
@@ -907,11 +901,7 @@ var CurrentTelemetryClient = Context_exports.Reference(
907
901
  var selectedClient = Layer_exports.unwrap(
908
902
  CurrentTelemetryClient.pipe(
909
903
  Effect_exports.map(
910
- (client) => (
911
- // Export-only RequestInit options, such as browser keepalive, must not
912
- // enter product clients that share the page's Layer memo map.
913
- client === void 0 ? Layer_exports.fresh(FetchHttpClient_exports.layer) : Layer_exports.succeed(HttpClient_exports.HttpClient, client)
914
- )
904
+ (client) => client === void 0 ? Layer_exports.fresh(FetchHttpClient_exports.layer) : Layer_exports.succeed(HttpClient_exports.HttpClient, client)
915
905
  )
916
906
  )
917
907
  );
@@ -1111,20 +1101,14 @@ var httpSpanAttributeAllowlist = /* @__PURE__ */ new Set([
1111
1101
  "http.response.status_code",
1112
1102
  "server.address",
1113
1103
  "url.scheme",
1114
- // Path only. `url.full` and `url.query` carry the query string, so neither is listed.
1115
- // Once a route is recorded, the path is that route's template (`allowlistedSpan`).
1116
1104
  "url.path",
1117
- // The router's matched path template, such as `/api/organizations/:organization`; no values.
1118
1105
  "http.route",
1119
1106
  "http.request.header.content-type",
1120
1107
  "http.request.header.content-length",
1121
1108
  "http.request.header.user-agent",
1122
1109
  "http.response.header.content-type",
1123
1110
  "http.response.header.content-length",
1124
- // The server tracer records the user agent a second time under its own name.
1125
1111
  "user_agent.original",
1126
- // The server tracer's remote address: the peer the host saw, or on Cloud the address
1127
- // Cloudflare saw (`cf-connecting-ip`, which Cloudflare overwrites on every incoming request).
1128
1112
  "client.address"
1129
1113
  ]);
1130
1114
  var spanAttributeAllowed = (key) => {
@@ -1167,9 +1151,6 @@ var allowlistedSpan = (span, ended) => {
1167
1151
  get kind() {
1168
1152
  return span.kind;
1169
1153
  },
1170
- // A successful transport can carry a failed domain operation. The producer
1171
- // explicitly marks that outcome; arbitrary result payloads are never inspected.
1172
- // A failure records the fixed message an error declares in place of an app's text.
1173
1154
  end: (endTime, exit) => {
1174
1155
  span.end(
1175
1156
  endTime,
@@ -2442,24 +2423,16 @@ var telemetryLayer = (config, lifetime = "process", logger = Logger_exports.with
2442
2423
  url: target.url,
2443
2424
  resource,
2444
2425
  ...target.headers === void 0 ? {} : { headers: Redacted_exports.value(target.headers) },
2445
- // An event exports when its scope closes. With no interval the exporter runs no loop, so a
2446
- // span or log recorded from another event never resumes a fiber of this one.
2447
2426
  exportInterval: lifetime === "event" ? Duration_exports.infinity : "1 second",
2448
2427
  shutdownTimeout: shutdownTimeouts[name] ?? "3 seconds"
2449
2428
  });
2450
2429
  const console = Logger_exports.layer([logger]);
2451
2430
  return Layer_exports.mergeAll(
2452
2431
  Layer_exports.succeed(CurrentTelemetryConfig, config),
2453
- config.traces === void 0 ? Layer_exports.empty : (
2454
- // Credentials travel in provider headers and query strings this product does
2455
- // not choose, so every exported span records only allowlisted HTTP attributes.
2456
- // Record every operation. Caller-supplied sampling is correlation metadata,
2457
- // not authority to suppress server diagnostics.
2458
- spanAttributes(config.clock, true).pipe(
2459
- Layer_exports.provideMerge(
2460
- OtlpTracer_exports.layer(signal(config.traces, "traces")).pipe(
2461
- Layer_exports.provide(OtlpSerialization_exports.layerJson)
2462
- )
2432
+ config.traces === void 0 ? Layer_exports.empty : spanAttributes(config.clock, true).pipe(
2433
+ Layer_exports.provideMerge(
2434
+ OtlpTracer_exports.layer(signal(config.traces, "traces")).pipe(
2435
+ Layer_exports.provide(OtlpSerialization_exports.layerJson)
2463
2436
  )
2464
2437
  )
2465
2438
  ),
@@ -2478,10 +2451,7 @@ var telemetryLayer = (config, lifetime = "process", logger = Logger_exports.with
2478
2451
  )
2479
2452
  ).pipe(
2480
2453
  Layer_exports.provide(telemetryHttpClient),
2481
- // Export fibers capture services during construction. Their failure evidence
2482
- // must reach the host logger even after the remote log exporter is closed.
2483
2454
  Layer_exports.provide(console),
2484
- // Each event exports only its own measurements; process hosts share a process registry.
2485
2455
  Layer_exports.provideMerge(Layer_exports.sync(Metric_exports.MetricRegistry, () => /* @__PURE__ */ new Map()))
2486
2456
  );
2487
2457
  };
@@ -2621,13 +2591,11 @@ var errorKinds = /* @__PURE__ */ new Set([
2621
2591
  "function"
2622
2592
  ]);
2623
2593
  var failureCodes = /* @__PURE__ */ new Set([
2624
- // CacheError
2625
2594
  "unavailable",
2626
2595
  "storage",
2627
2596
  "invalid",
2628
2597
  "capacity",
2629
2598
  "timeout",
2630
- // AppDatabaseError
2631
2599
  "schema",
2632
2600
  "schema_changed",
2633
2601
  "table",
@@ -2639,18 +2607,15 @@ var failureCodes = /* @__PURE__ */ new Set([
2639
2607
  "limit",
2640
2608
  "closed",
2641
2609
  "replay",
2642
- // OpenapiError
2643
2610
  "invalid_definition",
2644
2611
  "invalid_input",
2645
2612
  "request",
2646
- // McpError, McpCredentialsUnverified and ProviderError
2647
2613
  "unauthorized",
2648
2614
  "invalid_response",
2649
2615
  "forbidden",
2650
2616
  "rate_limited",
2651
2617
  "rejected",
2652
2618
  "anonymous_access",
2653
- // NetworkRefused and FetchOptionUnsupported
2654
2619
  "private_address",
2655
2620
  "credential_host",
2656
2621
  "credential_app",
@@ -2729,8 +2694,6 @@ var spanAttributes2 = {
2729
2694
  "http.request.method": oneOf(...httpMethods),
2730
2695
  "http.response.status_code": status,
2731
2696
  "url.scheme": oneOf("http", "https"),
2732
- // Effect 4.1 marks an interrupted span with `effect.fiber.interrupted`; apps built on an
2733
- // earlier Effect still send the label and `status.interrupted`.
2734
2697
  "effect.fiber.interrupted": flag,
2735
2698
  "span.label": oneOf("\u26A0\uFE0E Interrupted"),
2736
2699
  "status.interrupted": flag,
@@ -2903,11 +2866,7 @@ var TelemetryDrainScope = Context_exports.Reference(
2903
2866
  );
2904
2867
  var makeTelemetryForwarder = Effect_exports.flatMap(
2905
2868
  TelemetryDrainScope,
2906
- (scope) => scope === void 0 ? forwarder : (
2907
- // A scope of its own: its drain runs before its queue is interrupted, even when the host's
2908
- // scope closes its finalizers in parallel.
2909
- Effect_exports.flatMap(Scope_exports.fork(scope, "sequential"), (own) => Scope_exports.provide(forwarder, own))
2910
- )
2869
+ (scope) => scope === void 0 ? forwarder : Effect_exports.flatMap(Scope_exports.fork(scope, "sequential"), (own) => Scope_exports.provide(forwarder, own))
2911
2870
  );
2912
2871
  var queueBudget = 8 * 1048576;
2913
2872
  var exportBudget2 = 4 * 1048576;
@@ -5,7 +5,7 @@ import {
5
5
  SkillDefinitionInvalid,
6
6
  SkillFile,
7
7
  SkillFilePath
8
- } from "./chunk-2XEQYDQY.js";
8
+ } from "./chunk-A6FRLRCN.js";
9
9
  import {
10
10
  Effect_exports,
11
11
  Schema_exports
package/js/client.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-W6V5OIHB.js";
13
13
  import {
14
14
  decoderOf
15
- } from "./chunk-ADG72XX3.js";
15
+ } from "./chunk-JLHRRTRH.js";
16
16
  import {
17
17
  OtlpExporter_exports,
18
18
  TraceContext,
@@ -20,7 +20,7 @@ import {
20
20
  pendingSpan,
21
21
  telemetryLayer,
22
22
  traceLinks
23
- } from "./chunk-H4JK7UTH.js";
23
+ } from "./chunk-T4MICYGT.js";
24
24
  import {
25
25
  FetchHttpClient_exports
26
26
  } from "./chunk-2OGVSUNI.js";
@@ -687,7 +687,6 @@ var browserTelemetryLayer = (settings) => Layer_exports.unwrap(
687
687
  navigation = current;
688
688
  run(
689
689
  Deferred_exports.await(current.done).pipe(
690
- // Record visibility however the navigation ends, including when a later one interrupts it.
691
690
  Effect_exports.ensuring(
692
691
  Effect_exports.suspend(
693
692
  () => Effect_exports.annotateCurrentSpan("executor.navigation.hidden", current.hidden)
@@ -770,7 +769,6 @@ var makeOptimisticClient = (transport) => {
770
769
  return structuredClone(next.get(keyOf(reference.name, json(input))));
771
770
  },
772
771
  getAllQueries: (reference) => [...entries].filter(([, entry]) => entry.name === reference.name).map(([key, entry]) => ({
773
- // SAFETY: input is validated JSON; the referenced operation and each query decoder bind these types.
774
772
  input: structuredClone(entry.input),
775
773
  value: structuredClone(next.get(key))
776
774
  })),
@@ -1163,8 +1161,6 @@ var createAppClient = () => {
1163
1161
  );
1164
1162
  })
1165
1163
  ).pipe(
1166
- // Keep the last snapshot while the watcher replaces the document.
1167
- // Unmount or client disposal interrupts the version-change wait.
1168
1164
  Stream_exports.catch(
1169
1165
  (error) => Schema_exports.is(UiVersionChanged)(error) ? Stream_exports.unwrap(versionChanged.pipe(Effect_exports.as(Stream_exports.never))) : Stream_exports.fail(error)
1170
1166
  ),
@@ -1189,7 +1185,6 @@ var createAppClient = () => {
1189
1185
  )
1190
1186
  )
1191
1187
  ),
1192
- // Shown outside the retried stream, so they do not reset its delay.
1193
1188
  Stream_exports.fromQueue(retrying),
1194
1189
  { haltStrategy: "left" }
1195
1190
  );
package/js/contracts.js CHANGED
@@ -187,7 +187,7 @@ import {
187
187
  skillsCommand,
188
188
  withoutHelp,
189
189
  workflowDurationMillis
190
- } from "./chunk-LRXY54YF.js";
190
+ } from "./chunk-EXL6F456.js";
191
191
  import {
192
192
  AppSkillMetadata,
193
193
  AppSkillName,
@@ -199,7 +199,7 @@ import {
199
199
  SkillServiceName,
200
200
  skillFormatLimits,
201
201
  skillLoadLimits
202
- } from "./chunk-2XEQYDQY.js";
202
+ } from "./chunk-A6FRLRCN.js";
203
203
  import "./chunk-6XBOKQ4E.js";
204
204
  import {
205
205
  AccountId,
package/js/effect.js CHANGED
@@ -3,25 +3,25 @@ import {
3
3
  ApprovalDecision,
4
4
  createAppHandler,
5
5
  prepareElicitation
6
- } from "./chunk-3RIEA22Q.js";
7
- import "./chunk-PASOVDON.js";
8
- import "./chunk-NXUNFV44.js";
9
- import "./chunk-K24M6LZ7.js";
10
- import "./chunk-XAOJP46A.js";
11
- import "./chunk-V6OUBNL4.js";
12
- import "./chunk-B54D6AN7.js";
13
- import "./chunk-RUSVGD5N.js";
6
+ } from "./chunk-OFSXKKD6.js";
7
+ import "./chunk-6NRWFVK2.js";
8
+ import "./chunk-6OWHQINS.js";
9
+ import "./chunk-B4JN2A6F.js";
10
+ import "./chunk-XR7KZNKD.js";
11
+ import "./chunk-QDF7PQAD.js";
12
+ import "./chunk-455CCO6Q.js";
13
+ import "./chunk-BU3UOD2T.js";
14
14
  import {
15
15
  ToolAnnotations
16
- } from "./chunk-LRXY54YF.js";
17
- import "./chunk-2XEQYDQY.js";
16
+ } from "./chunk-EXL6F456.js";
17
+ import "./chunk-A6FRLRCN.js";
18
18
  import {
19
19
  compileJsonSchemaDecoder,
20
20
  decoderOf,
21
21
  jsonSchemaDecoder,
22
22
  wrap
23
- } from "./chunk-ADG72XX3.js";
24
- import "./chunk-H4JK7UTH.js";
23
+ } from "./chunk-JLHRRTRH.js";
24
+ import "./chunk-T4MICYGT.js";
25
25
  import "./chunk-2OGVSUNI.js";
26
26
  import "./chunk-6XBOKQ4E.js";
27
27
  import {
package/js/graphql.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-Y3QPWYHC.js";
4
+ } from "./chunk-AFEMXP3F.js";
5
5
  import {
6
6
  protocolOperations
7
- } from "./chunk-XRNSAU62.js";
7
+ } from "./chunk-B2PSDMZP.js";
8
8
  import "./chunk-BCSNKUAC.js";
9
- import "./chunk-3RIEA22Q.js";
9
+ import "./chunk-OFSXKKD6.js";
10
10
  import {
11
11
  cacheKey
12
- } from "./chunk-PASOVDON.js";
12
+ } from "./chunk-6NRWFVK2.js";
13
13
  import {
14
14
  GraphqlError,
15
15
  GraphqlIntrospection,
@@ -20,36 +20,36 @@ import {
20
20
  maxGraphqlStatedErrors,
21
21
  maxGraphqlStatedExtensions,
22
22
  maxGraphqlStatedFieldLength
23
- } from "./chunk-NXUNFV44.js";
23
+ } from "./chunk-6OWHQINS.js";
24
24
  import {
25
25
  failOnNetworkRefusal
26
- } from "./chunk-K24M6LZ7.js";
27
- import "./chunk-XAOJP46A.js";
28
- import "./chunk-V6OUBNL4.js";
26
+ } from "./chunk-B4JN2A6F.js";
27
+ import "./chunk-XR7KZNKD.js";
28
+ import "./chunk-QDF7PQAD.js";
29
29
  import {
30
30
  nativeOperation,
31
31
  routerDeclaration
32
- } from "./chunk-B54D6AN7.js";
32
+ } from "./chunk-455CCO6Q.js";
33
33
  import {
34
34
  accountProviderError,
35
35
  boundStated,
36
36
  graphqlProviderError,
37
37
  httpProviderError
38
- } from "./chunk-RUSVGD5N.js";
38
+ } from "./chunk-BU3UOD2T.js";
39
39
  import {
40
40
  FailureFieldName,
41
41
  NetworkRefused,
42
42
  ProviderError,
43
43
  defaultOpenapiErrorLimits,
44
44
  maxUpstreamMessageLength
45
- } from "./chunk-LRXY54YF.js";
46
- import "./chunk-2XEQYDQY.js";
45
+ } from "./chunk-EXL6F456.js";
46
+ import "./chunk-A6FRLRCN.js";
47
47
  import {
48
48
  jsonSchemaDecoder
49
- } from "./chunk-ADG72XX3.js";
49
+ } from "./chunk-JLHRRTRH.js";
50
50
  import {
51
51
  owned
52
- } from "./chunk-H4JK7UTH.js";
52
+ } from "./chunk-T4MICYGT.js";
53
53
  import {
54
54
  FetchHttpClient_exports
55
55
  } from "./chunk-2OGVSUNI.js";
@@ -271,7 +271,6 @@ var graphqlClientEffect = (input) => Effect_exports.gen(function* () {
271
271
  const client = yield* HttpClient_exports.HttpClient;
272
272
  const response = yield* HttpClient_exports.withScope(client).execute(
273
273
  HttpClientRequest_exports.post(url.href).pipe(
274
- // GitHub requires this header; Workers do not supply one by default.
275
274
  HttpClientRequest_exports.setHeader("user-agent", "Executor"),
276
275
  HttpClientRequest_exports.setHeaders(Redacted_exports.value(headers)),
277
276
  HttpClientRequest_exports.bodyJsonUnsafe({ query, variables })
@@ -498,7 +497,6 @@ var graphqlCatalog = (options, kinds) => Effect_exports.gen(function* () {
498
497
  name: tool.name,
499
498
  description: tool.description,
500
499
  readOnly: kindOf(tool) === "query",
501
- // The app's `kinds`, or the GraphQL operation type Executor sends.
502
500
  kindConfirmed: true
503
501
  });
504
502
  const describe = (tool) => ({
package/js/host.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createAppHandler
3
- } from "./chunk-3RIEA22Q.js";
4
- import "./chunk-PASOVDON.js";
5
- import "./chunk-NXUNFV44.js";
6
- import "./chunk-K24M6LZ7.js";
7
- import "./chunk-XAOJP46A.js";
8
- import "./chunk-V6OUBNL4.js";
9
- import "./chunk-B54D6AN7.js";
10
- import "./chunk-RUSVGD5N.js";
3
+ } from "./chunk-OFSXKKD6.js";
4
+ import "./chunk-6NRWFVK2.js";
5
+ import "./chunk-6OWHQINS.js";
6
+ import "./chunk-B4JN2A6F.js";
7
+ import "./chunk-XR7KZNKD.js";
8
+ import "./chunk-QDF7PQAD.js";
9
+ import "./chunk-455CCO6Q.js";
10
+ import "./chunk-BU3UOD2T.js";
11
11
  import {
12
12
  CacheCommand,
13
13
  CacheError,
@@ -25,13 +25,13 @@ import {
25
25
  WorkflowRun,
26
26
  WorkflowRunId,
27
27
  WorkflowRunPage
28
- } from "./chunk-LRXY54YF.js";
29
- import "./chunk-2XEQYDQY.js";
30
- import "./chunk-ADG72XX3.js";
28
+ } from "./chunk-EXL6F456.js";
29
+ import "./chunk-A6FRLRCN.js";
30
+ import "./chunk-JLHRRTRH.js";
31
31
  import {
32
32
  collectTelemetry,
33
33
  withRemoteSpan
34
- } from "./chunk-H4JK7UTH.js";
34
+ } from "./chunk-T4MICYGT.js";
35
35
  import "./chunk-2OGVSUNI.js";
36
36
  import "./chunk-6XBOKQ4E.js";
37
37
  import "./chunk-7A4ZSEM3.js";
@@ -270,8 +270,6 @@ var createIsolatedAppHandler = (app) => {
270
270
  }),
271
271
  {
272
272
  signal: request.signal,
273
- // workerd delivers timers in order. A scheduler timer outside a transaction
274
- // can block timers inside its closed input gate; microtasks avoid that queue.
275
273
  scheduler: new Scheduler_exports.MixedScheduler("sync")
276
274
  }
277
275
  );
package/js/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  query,
12
12
  t,
13
13
  workflow
14
- } from "./chunk-V6OUBNL4.js";
14
+ } from "./chunk-QDF7PQAD.js";
15
15
  import {
16
16
  accountRouter,
17
17
  dynamicRouter,
@@ -23,10 +23,10 @@ import {
23
23
  toolAnnotations,
24
24
  withApproval,
25
25
  withApprovals
26
- } from "./chunk-B54D6AN7.js";
26
+ } from "./chunk-455CCO6Q.js";
27
27
  import {
28
28
  fromPromise
29
- } from "./chunk-RUSVGD5N.js";
29
+ } from "./chunk-BU3UOD2T.js";
30
30
  import {
31
31
  CacheError,
32
32
  CalendarSchedule,
@@ -43,8 +43,8 @@ import {
43
43
  ScheduleTiming,
44
44
  SecretsMethod,
45
45
  WorkflowFailure
46
- } from "./chunk-LRXY54YF.js";
47
- import "./chunk-2XEQYDQY.js";
46
+ } from "./chunk-EXL6F456.js";
47
+ import "./chunk-A6FRLRCN.js";
48
48
  import {
49
49
  array,
50
50
  boolean,
@@ -63,8 +63,8 @@ import {
63
63
  record,
64
64
  string,
65
65
  wrap
66
- } from "./chunk-ADG72XX3.js";
67
- import "./chunk-H4JK7UTH.js";
66
+ } from "./chunk-JLHRRTRH.js";
67
+ import "./chunk-T4MICYGT.js";
68
68
  import "./chunk-2OGVSUNI.js";
69
69
  import "./chunk-6XBOKQ4E.js";
70
70
  import {
@@ -163,10 +163,7 @@ var appCron = (calendar, operation, input) => declaration("app", cronTiming(cale
163
163
 
164
164
  // src/index.ts
165
165
  var isFields = (value) => typeof value === "object" && value !== null && Object.values(value).every(isSchema);
166
- var accountDecoder = (schema) => (
167
- // SAFETY: the brand exists only in types; secret values are strings at runtime.
168
- decoderOf(schema)
169
- );
166
+ var accountDecoder = (schema) => decoderOf(schema);
170
167
  var exposureOf = (schema) => {
171
168
  const marked = "fields" in schema && isFields(schema.fields) ? fieldExposure(schema.fields) : {};
172
169
  return Object.keys(marked).length === 0 ? {} : { exposure: marked };
@@ -186,7 +183,6 @@ var secrets2 = (options) => secrets({
186
183
  ...options.guide === void 0 ? {} : { guide: options.guide },
187
184
  fields: accountDecoder(options.fields),
188
185
  ...exposureOf(options.fields),
189
- // SAFETY: the callback receives references named by the schema's own keys.
190
186
  ...placementsOf(
191
187
  `"${options.label}"`,
192
188
  options.fields,
@@ -200,7 +196,6 @@ function oauth22(options) {
200
196
  config,
201
197
  accountDecoder(response),
202
198
  exposureOf(response).exposure,
203
- // SAFETY: the callback receives references named by the response projection's own keys.
204
199
  placementsOf("OAuth", response, request).request,
205
200
  clientGuide
206
201
  )
package/js/mcp/effect.js CHANGED
@@ -2,20 +2,20 @@ import {
2
2
  mcpClientEffect,
3
3
  mcpHealthEffect,
4
4
  mcpToolsEffect
5
- } from "../chunk-RW5EXIO6.js";
5
+ } from "../chunk-5MEOL2SG.js";
6
6
  import "../chunk-BCSNKUAC.js";
7
- import "../chunk-3RIEA22Q.js";
8
- import "../chunk-PASOVDON.js";
9
- import "../chunk-NXUNFV44.js";
10
- import "../chunk-K24M6LZ7.js";
11
- import "../chunk-XAOJP46A.js";
12
- import "../chunk-V6OUBNL4.js";
13
- import "../chunk-B54D6AN7.js";
14
- import "../chunk-RUSVGD5N.js";
15
- import "../chunk-LRXY54YF.js";
16
- import "../chunk-2XEQYDQY.js";
17
- import "../chunk-ADG72XX3.js";
18
- import "../chunk-H4JK7UTH.js";
7
+ import "../chunk-OFSXKKD6.js";
8
+ import "../chunk-6NRWFVK2.js";
9
+ import "../chunk-6OWHQINS.js";
10
+ import "../chunk-B4JN2A6F.js";
11
+ import "../chunk-XR7KZNKD.js";
12
+ import "../chunk-QDF7PQAD.js";
13
+ import "../chunk-455CCO6Q.js";
14
+ import "../chunk-BU3UOD2T.js";
15
+ import "../chunk-EXL6F456.js";
16
+ import "../chunk-A6FRLRCN.js";
17
+ import "../chunk-JLHRRTRH.js";
18
+ import "../chunk-T4MICYGT.js";
19
19
  import "../chunk-2OGVSUNI.js";
20
20
  import "../chunk-6XBOKQ4E.js";
21
21
  import "../chunk-7A4ZSEM3.js";
package/js/mcp.js CHANGED
@@ -1,44 +1,44 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-Y3QPWYHC.js";
4
+ } from "./chunk-AFEMXP3F.js";
5
5
  import {
6
6
  protocolOperations
7
- } from "./chunk-XRNSAU62.js";
7
+ } from "./chunk-B2PSDMZP.js";
8
8
  import {
9
9
  adaptMcpTool,
10
10
  mcpClientEffect,
11
11
  mcpHealthEffect
12
- } from "./chunk-RW5EXIO6.js";
12
+ } from "./chunk-5MEOL2SG.js";
13
13
  import "./chunk-BCSNKUAC.js";
14
- import "./chunk-3RIEA22Q.js";
14
+ import "./chunk-OFSXKKD6.js";
15
15
  import {
16
16
  cacheKey
17
- } from "./chunk-PASOVDON.js";
17
+ } from "./chunk-6NRWFVK2.js";
18
18
  import {
19
19
  operationDescription
20
- } from "./chunk-NXUNFV44.js";
21
- import "./chunk-K24M6LZ7.js";
22
- import "./chunk-XAOJP46A.js";
23
- import "./chunk-V6OUBNL4.js";
20
+ } from "./chunk-6OWHQINS.js";
21
+ import "./chunk-B4JN2A6F.js";
22
+ import "./chunk-XR7KZNKD.js";
23
+ import "./chunk-QDF7PQAD.js";
24
24
  import {
25
25
  nativeOperation,
26
26
  routerDeclaration
27
- } from "./chunk-B54D6AN7.js";
27
+ } from "./chunk-455CCO6Q.js";
28
28
  import {
29
29
  fromPromise,
30
30
  method
31
- } from "./chunk-RUSVGD5N.js";
31
+ } from "./chunk-BU3UOD2T.js";
32
32
  import {
33
33
  McpCredentialsUnverified,
34
34
  McpError,
35
35
  McpServerHeader,
36
36
  McpToolMetadata,
37
37
  McpToolsOptions
38
- } from "./chunk-LRXY54YF.js";
39
- import "./chunk-2XEQYDQY.js";
40
- import "./chunk-ADG72XX3.js";
41
- import "./chunk-H4JK7UTH.js";
38
+ } from "./chunk-EXL6F456.js";
39
+ import "./chunk-A6FRLRCN.js";
40
+ import "./chunk-JLHRRTRH.js";
41
+ import "./chunk-T4MICYGT.js";
42
42
  import "./chunk-2OGVSUNI.js";
43
43
  import "./chunk-6XBOKQ4E.js";
44
44
  import "./chunk-7A4ZSEM3.js";