apps 0.0.1-beta.129 → 0.0.1-beta.130

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 (47) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-DJNOADLI.js → chunk-2XDCAXAR.js} +1 -1
  3. package/js/{chunk-KKKUQPWD.js → chunk-34RH47V5.js} +2 -2
  4. package/js/{chunk-ZJ4P2ZKS.js → chunk-3ICMSVNC.js} +4 -4
  5. package/js/{chunk-6AW7FQYY.js → chunk-4SIYTPIK.js} +10 -10
  6. package/js/{chunk-67DM7ASO.js → chunk-6QZVXLF2.js} +2 -2
  7. package/js/{chunk-5CMAHXQD.js → chunk-7MPPHKRW.js} +4 -4
  8. package/js/{chunk-FKU2HRYV.js → chunk-AR22I6UO.js} +8 -8
  9. package/js/{chunk-MS3D6YMD.js → chunk-BMHEVNGF.js} +3 -3
  10. package/js/{chunk-VUGZOJJM.js → chunk-BSSBP57D.js} +6 -6
  11. package/js/{chunk-XO4Z2SP7.js → chunk-DWYOLPWT.js} +55 -35
  12. package/js/{chunk-WE4FZOSH.js → chunk-H2K7OZ47.js} +1 -1
  13. package/js/{chunk-N7HXZNBD.js → chunk-I6QAWNUM.js} +2 -2
  14. package/js/{chunk-WS76KLDL.js → chunk-J52LZT2Y.js} +2 -2
  15. package/js/{chunk-MHFRQZXP.js → chunk-JLW4LQS7.js} +6 -6
  16. package/js/{chunk-QSPLCQAZ.js → chunk-L2RUGQAM.js} +5 -5
  17. package/js/{chunk-LC6YCEVL.js → chunk-LSOHA2RH.js} +1 -1
  18. package/js/{chunk-NGL6EJL6.js → chunk-MB6L5YZE.js} +1 -1
  19. package/js/{chunk-53GRY7ZE.js → chunk-OBT33ZDK.js} +3 -3
  20. package/js/{chunk-SA7FJGUX.js → chunk-QTX7OUFH.js} +2 -2
  21. package/js/{chunk-IKGZ4OEZ.js → chunk-T7MXJSCW.js} +13 -13
  22. package/js/{chunk-FXJUHTFE.js → chunk-VX36SA7Y.js} +1 -1
  23. package/js/{chunk-CH6HAYVG.js → chunk-WX773GGX.js} +6 -6
  24. package/js/{chunk-PZBT2QO5.js → chunk-WXHRUWNT.js} +2 -2
  25. package/js/{chunk-QYHUNAWH.js → chunk-YFSOSNF3.js} +243 -223
  26. package/js/{chunk-5H5IO2NZ.js → chunk-YVN2AMAU.js} +2 -2
  27. package/js/client.js +10 -10
  28. package/js/contracts.js +7 -7
  29. package/js/effect.js +18 -18
  30. package/js/graphql.js +20 -20
  31. package/js/host.js +18 -18
  32. package/js/index.js +13 -13
  33. package/js/mcp/effect.js +19 -19
  34. package/js/mcp.js +21 -21
  35. package/js/openapi.js +16 -16
  36. package/js/react.js +2 -2
  37. package/js/skills/effect.js +6 -6
  38. package/js/skills.js +15 -15
  39. package/js/ui/auth/contracts.js +2 -2
  40. package/js/ui/auth.js +5 -5
  41. package/js/ui/contracts.js +5 -5
  42. package/js/ui/serving.js +10 -10
  43. package/package.json +1 -1
  44. package/runtime.json +1 -1
  45. package/types/telemetry/src/index.d.ts +1 -1
  46. package/types/telemetry/src/measurements.d.ts +6 -2
  47. package/types/telemetry/src/relay.d.ts +11 -3
@@ -2,7 +2,7 @@
2
2
  export { CurrentTelemetryConfig, TelemetryConfig, TelemetryTarget, telemetryConfig, } from "./config.js";
3
3
  export { telemetryLayer, telemetryFromConfig } from "./layer.js";
4
4
  export { captureTelemetry, traceHeaders, withRemoteSpan, invocationFetch, type InvocationTelemetry, } from "./context.js";
5
- export { collectTelemetry, forwardTelemetry, makeTelemetryForwarder, TelemetryBatch, } from "./relay.js";
5
+ export { collectTelemetry, forwardTelemetry, makeTelemetryForwarder, TelemetryDrainScope, TelemetryBatch, } from "./relay.js";
6
6
  export { TraceContext, currentTraceContext, externalTrace, traceLinks } from "./trace-context.js";
7
7
  export { pendingSpan } from "./pending-span.js";
8
8
  export { makeOwnershipAccounting, measuredSpan, owned, ownedBy, ownerAttribute, type Owner, type SpanMeasure, } from "./ownership.js";
@@ -2,7 +2,11 @@
2
2
  import { Effect } from "effect";
3
3
  /** Classify URLs into a fixed set before attaching attributes; raw paths and query strings are never labels. */
4
4
  export declare const recordResponseReady: (path: string | undefined, method: string, status: number, milliseconds: number) => Effect.Effect<void, never, never>;
5
- /** Fixed failure metadata goes to both local/native logs and the metric registry, even when the remote exporter is down. */
6
- export declare const recordExportFailure: (path: string, reason: "transport" | "interrupted" | "partial-success" | "capacity" | "acknowledgement" | "timeout" | "relay" | "shutdown", records?: number) => Effect.Effect<void, never, never>;
5
+ /**
6
+ * Count and log one failed export. `elapsedMs`, when known, is how long its request had run when
7
+ * it failed: an interruption at an exporter's deadline, such as the relay's three seconds, shows
8
+ * that deadline.
9
+ */
10
+ export declare const recordExportFailure: (path: string, reason: "transport" | "interrupted" | "partial-success" | "capacity" | "acknowledgement" | "timeout" | "relay" | "shutdown", records?: number, elapsedMs?: number) => Effect.Effect<void, never, never>;
7
11
  /** Record provider-owned invocation totals separately from response-ready timing. */
8
12
  export declare const recordWorkerMeasurements: (worker: string, outcome: string, cpu: number, wall: number) => Effect.Effect<void, never, never>;
@@ -1,14 +1,22 @@
1
1
  /** Bounded OTLP return channel for credential-free app isolates. The parent owns export. */
2
- import { Effect, Schema } from "effect";
2
+ import { Context, Effect, Schema, Scope } from "effect";
3
+ /**
4
+ * The scope a host gives telemetry it waits for when a request ends: the forwarder's queue and
5
+ * its drain. A host that closes this scope after the request's other resources, such as its
6
+ * database connections, never holds them while it waits on a telemetry endpoint. Unset, the
7
+ * forwarder lives in the scope it is built in. The host may close this scope's finalizers in
8
+ * parallel; each user keeps its own order in a scope of its own.
9
+ */
10
+ export declare const TelemetryDrainScope: Context.Reference<Scope.Scope | undefined>;
3
11
  /**
4
12
  * Forward app telemetry in the host scope without delaying an app result.
5
13
  * Batches wait in one queue and a single sender exports everything waiting as one request per
6
14
  * signal, so a burst of finished runs costs a few exports instead of one each. The queue holds at
7
15
  * most eight MiB of payload and one export carries at most four. Overload and shutdown loss are
8
16
  * reported through the normal safe export-failure signal. Scope release drains for the same
9
- * three-second budget as the other exporters.
17
+ * three-second budget as the other exporters, in {@link TelemetryDrainScope} when the host sets it.
10
18
  */
11
- export declare const makeTelemetryForwarder: Effect.Effect<(batch: TelemetryBatch, traceId: string, source: TelemetrySource) => Effect.Effect<void, never, never>, never, import("effect/Scope").Scope>;
19
+ export declare const makeTelemetryForwarder: Effect.Effect<(batch: TelemetryBatch, traceId: string, source: TelemetrySource) => Effect.Effect<void, never, never>, never, Scope.Scope>;
12
20
  /** Untrusted isolate batches are bounded before decoding; no endpoint or credential crosses back. */
13
21
  export declare const TelemetryBatch: Schema.Struct<{
14
22
  readonly traces: Schema.$Array<Schema.String>;