apps 0.0.1-beta.65 → 0.0.1-beta.67

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.
@@ -1,7 +1,7 @@
1
1
  import { UpstreamError } from "../contracts/failure.js";
2
2
  /** Whether `bounded` shortened this message, so it may end partway through a secret. */
3
3
  export declare const isShortenedUpstream: (message: string) => boolean;
4
- /** The error a JSON error body states, if it uses JSON-RPC's or OAuth's error format. */
4
+ /** The error a JSON error body states, if it uses a nested error object or OAuth's format. */
5
5
  export declare const bodyUpstreamError: (json: unknown) => UpstreamError | undefined;
6
6
  /** The `error` and `error_description` of a Bearer challenge (RFC 6750, section 3). */
7
7
  export declare const challengeUpstreamError: (header: string | undefined) => UpstreamError | undefined;
@@ -2,9 +2,11 @@
2
2
  import { Effect, Schema } from "effect";
3
3
  /**
4
4
  * Forward app telemetry in the host scope without delaying an app result.
5
- * One export runs at a time, with at most sixteen pending batches. Overload and
6
- * shutdown loss are reported through the normal safe export-failure signal.
7
- * Scope release drains for the same three-second budget as the other exporters.
5
+ * Batches wait in one queue and a single sender exports everything waiting as one request per
6
+ * signal, so a burst of finished runs costs a few exports instead of one each. The queue holds at
7
+ * most eight MiB of payload and one export carries at most four. Overload and shutdown loss are
8
+ * reported through the normal safe export-failure signal. Scope release drains for the same
9
+ * three-second budget as the other exporters.
8
10
  */
9
11
  export declare const makeTelemetryForwarder: Effect.Effect<(batch: TelemetryBatch, traceId: string, source: TelemetrySource) => Effect.Effect<void, never, never>, never, import("effect/Scope").Scope>;
10
12
  /** Untrusted isolate batches are bounded before decoding; no endpoint or credential crosses back. */
@@ -33,4 +35,4 @@ export interface TelemetrySource {
33
35
  readonly app?: string | undefined;
34
36
  }
35
37
  /** Validate isolated records and export only this call's trace, using parent-owned credentials/identity. */
36
- export declare const forwardTelemetry: (batch: TelemetryBatch, traceId: string | undefined, { build, app }: TelemetrySource, service?: "executor-app" | "executor-web") => Effect.Effect<void, Schema.SchemaError | import("effect/http/HttpClientError").HttpClientError | import("effect/Cause").TimeoutError, never>;
38
+ export declare const forwardTelemetry: (batch: TelemetryBatch, traceId: string | undefined, source: TelemetrySource, service?: "executor-app" | "executor-web") => Effect.Effect<void, Schema.SchemaError | import("effect/http/HttpClientError").HttpClientError | import("effect/Cause").TimeoutError, never>;