apps 0.0.1-beta.34 → 0.0.1-beta.36
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.
- package/framework-reference.json +1 -1
- package/js/{chunk-OX233L7N.js → chunk-4U2VUDET.js} +2 -2
- package/js/{chunk-HW3DPBZR.js → chunk-556EWA6P.js} +3 -2
- package/js/{chunk-UMCMZFXW.js → chunk-73AV3JVU.js} +1 -1
- package/js/{chunk-QKVZGWGZ.js → chunk-A2NN45C7.js} +7 -7
- package/js/{chunk-6ZJ2H6P4.js → chunk-A4O72Z3A.js} +298 -190
- package/js/{chunk-FBBXFFFJ.js → chunk-BI45HZWM.js} +2 -2
- package/js/{chunk-DXGWKNTQ.js → chunk-BI6R577B.js} +2 -2
- package/js/{chunk-QUEPZ67T.js → chunk-BKJDZYK7.js} +3 -3
- package/js/{chunk-QZD2RZ4S.js → chunk-CZLCA2O4.js} +8 -8
- package/js/{chunk-IU6OK5G2.js → chunk-ENJCQWVF.js} +3 -3
- package/js/{chunk-DASNNAP4.js → chunk-HDAQBRT5.js} +391 -14
- package/js/{chunk-EXGKN554.js → chunk-IJQ5LE74.js} +9805 -9254
- package/js/{chunk-5JVNM3CQ.js → chunk-IU7CCCUC.js} +12 -12
- package/js/{chunk-Q7Q5JTRW.js → chunk-JU7F4PRK.js} +2 -2
- package/js/{chunk-CJY5X26R.js → chunk-KOOJUMLR.js} +86 -50
- package/js/{chunk-ETLILMHY.js → chunk-KZFV3WCJ.js} +21 -19
- package/js/{chunk-ZOY7PDMI.js → chunk-NHCFIWN5.js} +1 -1
- package/js/chunk-NHUHTWAF.js +0 -0
- package/js/{chunk-QYM4STZW.js → chunk-PHO7HXTC.js} +149 -353
- package/js/{chunk-O3OAFU7Q.js → chunk-POOIHRPF.js} +2 -2
- package/js/{chunk-AUFVX4KM.js → chunk-RSNZDT4L.js} +2 -2
- package/js/{chunk-EPUWF4ZG.js → chunk-SRB2WDU7.js} +3 -3
- package/js/{chunk-MFHUR5SB.js → chunk-TADLIUEU.js} +4 -4
- package/js/{chunk-5OM6HBNU.js → chunk-UBAKWXAJ.js} +20 -29
- package/js/chunk-V5DWGYRK.js +268 -0
- package/js/{chunk-MYH3QZ4L.js → chunk-WAGGHNWH.js} +23 -15
- package/js/{chunk-GZ4UHXRT.js → chunk-WDBUOIWV.js} +3 -3
- package/js/{chunk-PUBNIORL.js → chunk-WMVTBHGK.js} +2 -2
- package/js/{chunk-DSUKW6KJ.js → chunk-XEXUHXC3.js} +296 -174
- package/js/{chunk-6KG4DZD7.js → chunk-Y3XN4X4Q.js} +1 -1
- package/js/{chunk-UKMIHP2G.js → chunk-YW333DH3.js} +4 -4
- package/js/{chunk-O4QOPXQT.js → chunk-ZQWDOHEO.js} +31 -24
- package/js/client.js +12 -11
- package/js/contracts.js +14 -11
- package/js/effect.js +23 -21
- package/js/graphql.js +25 -23
- package/js/host.js +23 -21
- package/js/index.js +16 -14
- package/js/mcp/effect.js +25 -23
- package/js/mcp/stdio.js +25 -23
- package/js/mcp.js +27 -25
- package/js/openapi.js +22 -21
- package/js/react.js +3 -3
- package/js/skills/effect.js +6 -5
- package/js/skills.js +60 -45
- package/js/storage/facet.js +19 -345
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +6 -5
- package/js/ui/serving.js +10 -9
- package/package.json +3 -3
- package/runtime.json +1 -1
- package/types/app-data/src/implementation/sqlite.d.ts +1 -1
- package/types/apps/src/contracts/elicitation.d.ts +6 -6
- package/types/apps/src/contracts/host.d.ts +10 -6
- package/types/apps/src/contracts/mcp.d.ts +6 -1
- package/types/apps/src/contracts/openapi.d.ts +1 -1
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/1.d.ts +12 -5
- package/types/apps/src/contracts/protocols/2.d.ts +5 -5
- package/types/apps/src/contracts/protocols/3.d.ts +5 -6
- package/types/apps/src/contracts/protocols/4.d.ts +5 -6
- package/types/apps/src/contracts/protocols/5.d.ts +7 -7
- package/types/apps/src/contracts/protocols/6.d.ts +7 -7
- package/types/apps/src/contracts/protocols/7.d.ts +7 -7
- package/types/apps/src/contracts/protocols/8.d.ts +17 -6
- package/types/apps/src/contracts/protocols/9.d.ts +1106 -0
- package/types/apps/src/contracts/skills.d.ts +5 -0
- package/types/apps/src/contracts/ui.d.ts +1 -1
- package/types/apps/src/implementation/failure-detail.d.ts +4 -3
- package/types/apps/src/implementation/live.d.ts +2 -2
- package/types/apps/src/implementation/mcp-client.d.ts +1 -1
- package/types/apps/src/implementation/mcp.d.ts +1 -1
- package/types/apps/src/implementation/network.d.ts +1 -1
- package/types/apps/src/implementation/openapi-compile.d.ts +1 -1
- package/types/apps/src/implementation/optimistic.d.ts +1 -1
- package/types/apps/src/implementation/query-commit.d.ts +1 -1
- package/types/apps/src/implementation/router-catalog.d.ts +2 -3
- package/types/apps/src/implementation/skills.d.ts +8 -8
- package/types/apps/src/implementation/ui-auth.d.ts +1 -1
- package/types/apps/src/implementation/ui-client.d.ts +1 -1
- package/types/apps/src/implementation/ui-serving.d.ts +1 -1
- package/types/apps/src/react.d.ts +1 -1
- package/types/apps/src/skills.d.ts +2 -1
- package/types/telemetry/src/browser-operations.d.ts +1 -1
- package/types/telemetry/src/browser.d.ts +2 -2
- package/types/telemetry/src/layer.d.ts +2 -2
- package/types/telemetry/src/relay.d.ts +2 -2
- package/types/telemetry/src/transport.d.ts +1 -1
- package/types/utils/src/api-error.d.ts +1 -1
|
@@ -79,11 +79,16 @@ declare const SkillLoadFailed_base: Schema.Class<SkillLoadFailed, Schema.TaggedS
|
|
|
79
79
|
readonly reason: Schema.Literals<readonly ["source", "request", "rate_limited", "document", "limit", "changed", "encoding"]>;
|
|
80
80
|
readonly message: Schema.optional<Schema.String>;
|
|
81
81
|
readonly status: Schema.optional<Schema.Int>;
|
|
82
|
+
readonly missing: Schema.optional<Schema.Literals<readonly ["repository", "ref"]>>;
|
|
82
83
|
}>, import("effect/Cause").YieldableError>;
|
|
83
84
|
/**
|
|
84
85
|
* A skill loader failure shown to people. `message` is the explanation they read; write it for
|
|
85
86
|
* them and never include URLs, tokens or response bodies. `reason` selects the title and whether
|
|
86
87
|
* a retry can help. Custom loaders throw this error to get the same presentation as built-ins.
|
|
88
|
+
* With `source`, `missing` names what the service's answer points to as missing: the `repository`,
|
|
89
|
+
* or the branch or tag (`ref`). It may be missing, or not readable with the request's credentials.
|
|
90
|
+
* Without it, the source's settings or the paths it lists are not valid.
|
|
91
|
+
* These fields choose the explanation; they never show that the failure lies outside Executor.
|
|
87
92
|
*/
|
|
88
93
|
export declare class SkillLoadFailed extends SkillLoadFailed_base {
|
|
89
94
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Browser-to-host operations bind identity and authentication outside authored app code. */
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApi, HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/
|
|
3
|
+
import { HttpApi, HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
4
4
|
/** Non-secret page context injected by the serving host. */
|
|
5
5
|
export declare const UiContext: Schema.Struct<{
|
|
6
6
|
readonly deployment: Schema.NonEmptyString;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Option, Redacted } from "effect";
|
|
2
|
-
import type
|
|
3
|
-
import { McpError } from "../contracts/mcp.js";
|
|
2
|
+
import { McpError as HostMcpError, SkillLoadFailed as HostSkillLoadFailed, type ResolvedAccounts } from "../contracts/host.js";
|
|
4
3
|
import type { ProviderError } from "../contracts/provider-error.js";
|
|
5
4
|
import { type FailureFields, type FailurePhase, type UpstreamError } from "../contracts/failure.js";
|
|
6
5
|
/** Fields of `FailureDetail` as constructor input. */
|
|
@@ -34,7 +33,9 @@ export declare const leavingProviderError: (error: ProviderError, secrets: reado
|
|
|
34
33
|
* Rebuild an MCP failure's allowlisted fields, with account secrets replaced in the server's
|
|
35
34
|
* error. Absent fields have no key, as catalogs cross the boundary as JSON values.
|
|
36
35
|
*/
|
|
37
|
-
export declare const parseMcpError: (error: unknown, secrets: readonly string[]) => Option.Option<
|
|
36
|
+
export declare const parseMcpError: (error: unknown, secrets: readonly string[]) => Option.Option<HostMcpError>;
|
|
37
|
+
/** Rebuild only the allowlisted skill loader fields from an author-visible rejection. */
|
|
38
|
+
export declare const parseSkillLoadFailed: (error: unknown) => Option.Option<HostSkillLoadFailed>;
|
|
38
39
|
/** `Name: message` for any thrown value, before redaction. */
|
|
39
40
|
export declare const describeFailure: (error: unknown) => string;
|
|
40
41
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Atom } from "effect/
|
|
1
|
+
import { Atom } from "effect/reactivity";
|
|
2
2
|
import { AppQueryFailed, type OperationReference, type QueryTransport } from "../contracts/live.js";
|
|
3
3
|
import type { Operation } from "./operations.js";
|
|
4
4
|
import { type Schema } from "./schema.js";
|
|
@@ -14,5 +14,5 @@ export declare const mutationReference: <Mutation>(name: Mutation extends Operat
|
|
|
14
14
|
export declare const liveQueryAtom: <Input, Output>(reference: OperationReference<Input, Output, "query">, input: NoInfer<Input>, options: {
|
|
15
15
|
readonly output: Schema<NoInfer<Output>, boolean>;
|
|
16
16
|
readonly transport: QueryTransport;
|
|
17
|
-
}) => Atom.Atom<import("effect/
|
|
17
|
+
}) => Atom.Atom<import("effect/reactivity/AsyncResult").AsyncResult<NoInfer<Output>, import("effect/Cause").NoSuchElementError | AppQueryFailed>>;
|
|
18
18
|
export {};
|
|
@@ -46,8 +46,8 @@ export declare function mcpClient(withClient: WithMcpClient, timeoutMs: number,
|
|
|
46
46
|
readonly description?: string;
|
|
47
47
|
readonly version?: string;
|
|
48
48
|
readonly name?: string;
|
|
49
|
-
readonly title?: string;
|
|
50
49
|
readonly instructions?: string;
|
|
50
|
+
readonly title?: string;
|
|
51
51
|
readonly icons?: readonly {
|
|
52
52
|
readonly src: string;
|
|
53
53
|
readonly mimeType?: string;
|
|
@@ -30,8 +30,8 @@ export declare const mcpClientEffect: (input: McpToolsOptions, changed?: Effect.
|
|
|
30
30
|
readonly description?: string;
|
|
31
31
|
readonly version?: string;
|
|
32
32
|
readonly name?: string;
|
|
33
|
-
readonly title?: string;
|
|
34
33
|
readonly instructions?: string;
|
|
34
|
+
readonly title?: string;
|
|
35
35
|
readonly icons?: readonly {
|
|
36
36
|
readonly src: string;
|
|
37
37
|
readonly mimeType?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Typed refusals and option checks for the fetch app code receives from the framework. */
|
|
2
2
|
import { Effect } from "effect";
|
|
3
|
-
import type { HttpClientResponse } from "effect/
|
|
3
|
+
import type { HttpClientResponse } from "effect/http";
|
|
4
4
|
import { type NetworkRefused } from "../contracts/network.js";
|
|
5
5
|
type Fetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
6
6
|
/** Fail with the refusal a protocol helper's response carries, or continue to its own handling. */
|
|
@@ -68,7 +68,7 @@ export declare const compileOpenApiDocument: (entry: OpenApiImport, inputDocumen
|
|
|
68
68
|
readonly input: {
|
|
69
69
|
readonly [x: string]: Schema.Json;
|
|
70
70
|
};
|
|
71
|
-
readonly method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "
|
|
71
|
+
readonly method: "HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "QUERY";
|
|
72
72
|
readonly securitySchemes: {
|
|
73
73
|
readonly [x: string]: {
|
|
74
74
|
readonly [x: string]: Schema.Json;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** One client's mounted queries and ordered optimistic write/read handoffs. */
|
|
2
2
|
import { Effect } from "effect";
|
|
3
|
-
import { Atom, AsyncResult } from "effect/
|
|
3
|
+
import { Atom, AsyncResult } from "effect/reactivity";
|
|
4
4
|
import type { AppMutation } from "../contracts/optimistic.js";
|
|
5
5
|
import type { OperationReference } from "../contracts/live.js";
|
|
6
6
|
import { JsonValue } from "../contracts/schema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncResult } from "effect/
|
|
1
|
+
import { AsyncResult } from "effect/reactivity";
|
|
2
2
|
/** Per-result metadata follows the exact Atom registry snapshot, including concurrent mounts. */
|
|
3
3
|
export interface ObservedQueryValue<A> {
|
|
4
4
|
readonly value: A;
|
|
@@ -6,7 +6,6 @@ import { Effect, Schema } from "effect";
|
|
|
6
6
|
import { HostDeclarationInvalid, HostEvaluationFailed, type HostRouterError } from "../contracts/host.js";
|
|
7
7
|
import type { AppOperation } from "../contracts/operations.js";
|
|
8
8
|
import type { AppRouter, DynamicRouter, RouterMeta } from "../contracts/router.js";
|
|
9
|
-
import { SkillLoadFailed } from "../contracts/skills.js";
|
|
10
9
|
import type { OperationSchedule } from "../contracts/schedules.js";
|
|
11
10
|
/**
|
|
12
11
|
* Keep only a failure's safe fields. Anything unrecognized becomes an evaluation failure with the
|
|
@@ -189,7 +188,7 @@ export declare const readCatalog: (root: AppRouter | DynamicRouter | undefined,
|
|
|
189
188
|
routers: {
|
|
190
189
|
readonly path: string;
|
|
191
190
|
readonly description?: string;
|
|
192
|
-
readonly error?: import("../index.js").ProviderError |
|
|
191
|
+
readonly error?: import("../index.js").ProviderError | HostDeclarationInvalid | HostEvaluationFailed | import("../contracts/host.js").McpError | import("../contracts/host.js").SkillLoadFailed;
|
|
193
192
|
readonly title?: string;
|
|
194
193
|
readonly tags?: {
|
|
195
194
|
readonly [x: string]: string;
|
|
@@ -202,7 +201,7 @@ export declare const readCatalog: (root: AppRouter | DynamicRouter | undefined,
|
|
|
202
201
|
}[];
|
|
203
202
|
readonly skill?: string;
|
|
204
203
|
}[];
|
|
205
|
-
}, import("../index.js").ProviderError |
|
|
204
|
+
}, import("../index.js").ProviderError | HostDeclarationInvalid | HostEvaluationFailed | import("../contracts/host.js").McpError | import("../contracts/host.js").SkillLoadFailed, never>;
|
|
206
205
|
/**
|
|
207
206
|
* One skill for each router with instructions. Skills and tools fail independently: a dynamic
|
|
208
207
|
* router whose metadata cannot be read, including the root, contributes no skill and does not
|
|
@@ -4,21 +4,21 @@ import { NetworkRefused } from "../contracts/network.js";
|
|
|
4
4
|
import { ProviderError } from "../contracts/provider-error.js";
|
|
5
5
|
import { AppSkills, SkillLoadFailed, type GitHubSkillsOptions, type WellKnownSkillsOptions, type SkillTransport } from "../contracts/skills.js";
|
|
6
6
|
/** Give every failure without a message one that names the service. */
|
|
7
|
-
export declare const withService: (service: string | undefined) => <A, R>(effect: Effect.Effect<A, SkillLoadFailed, R>) => Effect.Effect<A, SkillLoadFailed, R>;
|
|
7
|
+
export declare const withService: (service: string | undefined) => <A, R>(effect: Effect.Effect<A, SkillLoadFailed | NetworkRefused, R>) => Effect.Effect<A, NetworkRefused | SkillLoadFailed, R>;
|
|
8
8
|
interface ReadRequest {
|
|
9
9
|
readonly headers?: Readonly<Record<string, string>>;
|
|
10
|
-
/** Describe a refusal by Executor's app network; defaults to the refusal
|
|
11
|
-
readonly refused?: (refused: NetworkRefused) => SkillLoadFailed;
|
|
10
|
+
/** Describe a refusal by Executor's app network; defaults to the refusal itself. */
|
|
11
|
+
readonly refused?: (refused: NetworkRefused) => SkillLoadFailed | NetworkRefused;
|
|
12
12
|
}
|
|
13
13
|
/** One loader invocation owns its byte budget and all of its network requests. */
|
|
14
14
|
export declare const reader: (transport: SkillTransport) => Effect.Effect<{
|
|
15
15
|
fetchBytes: (url: string, request?: ReadRequest & {
|
|
16
16
|
readonly body?: Uint8Array;
|
|
17
|
-
}) => Effect.Effect<Uint8Array<ArrayBuffer>, SkillLoadFailed, never>;
|
|
18
|
-
read: (url: string, request?: ReadRequest) => Effect.Effect<string, SkillLoadFailed, never>;
|
|
19
|
-
json: (url: string) => Effect.Effect<unknown, SkillLoadFailed, never>;
|
|
17
|
+
}) => Effect.Effect<Uint8Array<ArrayBuffer>, NetworkRefused | SkillLoadFailed, never>;
|
|
18
|
+
read: (url: string, request?: ReadRequest) => Effect.Effect<string, NetworkRefused | SkillLoadFailed, never>;
|
|
19
|
+
json: (url: string) => Effect.Effect<unknown, NetworkRefused | SkillLoadFailed, never>;
|
|
20
20
|
}, never, never>;
|
|
21
|
-
export declare const githubSkillsEffect: (options: GitHubSkillsOptions) => Effect.Effect<typeof AppSkills.Type, SkillLoadFailed | ProviderError>;
|
|
21
|
+
export declare const githubSkillsEffect: (options: GitHubSkillsOptions) => Effect.Effect<typeof AppSkills.Type, SkillLoadFailed | NetworkRefused | ProviderError>;
|
|
22
22
|
/** Fetch all indexed files and reject a publication whose index changes during the read. */
|
|
23
23
|
export declare const wellKnownSkillsEffect: (options: WellKnownSkillsOptions) => Effect.Effect<readonly {
|
|
24
24
|
readonly description: string;
|
|
@@ -33,5 +33,5 @@ export declare const wellKnownSkillsEffect: (options: WellKnownSkillsOptions) =>
|
|
|
33
33
|
readonly [x: string]: string;
|
|
34
34
|
};
|
|
35
35
|
readonly "allowed-tools"?: string;
|
|
36
|
-
}[], SkillLoadFailed, never>;
|
|
36
|
+
}[], NetworkRefused | SkillLoadFailed, never>;
|
|
37
37
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Host responses around app sign-in. They carry no script and never contain product credentials. */
|
|
2
|
-
import { HttpServerResponse } from "effect/
|
|
2
|
+
import { HttpServerResponse } from "effect/http";
|
|
3
3
|
import { type AppSignInId } from "../contracts/ui-auth.js";
|
|
4
4
|
/** Private app responses must not leak authentication URLs through caches or referrers. */
|
|
5
5
|
export declare const appPrivateHeaders: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncResult, Atom } from "effect/
|
|
1
|
+
import { AsyncResult, Atom } from "effect/reactivity";
|
|
2
2
|
import { type OperationReference } from "../contracts/live.js";
|
|
3
3
|
import { type Schema } from "./schema.js";
|
|
4
4
|
/** A scoped page client. Host-injected context carries only the deployment, never credentials. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import { HttpServerRequest, HttpServerResponse } from "effect/
|
|
2
|
+
import { HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
3
3
|
import { UiForbidden, type AppUiAsset, type UiAccountNotice } from "../contracts/ui.js";
|
|
4
4
|
/**
|
|
5
5
|
* Render an authorized deployment with a host-owned deployment watcher. Account problems that stop
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncResult, type Atom } from "effect/
|
|
1
|
+
import { AsyncResult, type Atom } from "effect/reactivity";
|
|
2
2
|
/** Subscribe for the component lifetime. Each mount owns and disposes its registry, including StrictMode remounts. */
|
|
3
3
|
export declare const useAppQuery: <A, E>(atom: Atom.Atom<AsyncResult.AsyncResult<A, E>>) => {
|
|
4
4
|
data: A | undefined;
|
|
@@ -66,7 +66,8 @@ export declare const folderSkills: (options: FolderSkillsOptions) => Promise<rea
|
|
|
66
66
|
}[]>;
|
|
67
67
|
/**
|
|
68
68
|
* Read files for a custom remote skill loader, such as one for GitLab. Reads share one byte
|
|
69
|
-
* budget and reject with the same safe SkillLoadFailed errors as githubSkills, naming `service
|
|
69
|
+
* budget and reject with the same safe SkillLoadFailed errors as githubSkills, naming `service`,
|
|
70
|
+
* or with `NetworkRefused` when Executor's network refuses a request.
|
|
70
71
|
*/
|
|
71
72
|
export declare const skillReader: (options: SkillReaderOptions) => {
|
|
72
73
|
/** Fetch one UTF-8 text file. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Correlate transport and decoded outcomes without exporting response bodies or errors. */
|
|
2
2
|
import { Effect, Schema, Tracer } from "effect";
|
|
3
|
-
import { HttpClient, HttpClientError } from "effect/
|
|
3
|
+
import { HttpClient, HttpClientError } from "effect/http";
|
|
4
4
|
/**
|
|
5
5
|
* A random identity for the current browser document. It is never an authentication or user
|
|
6
6
|
* identifier. Server renders have no document, so they get none instead of sharing one per isolate.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Browser-owned Effect telemetry, shared by Promise calls and Atom runtimes. */
|
|
2
2
|
import { Context, Effect, Layer, ManagedRuntime } from "effect";
|
|
3
|
-
import { OtlpExporter } from "effect/
|
|
4
|
-
import { Atom } from "effect/
|
|
3
|
+
import { OtlpExporter } from "effect/observability";
|
|
4
|
+
import { Atom } from "effect/reactivity";
|
|
5
5
|
import type { TelemetryConfig } from "./config.js";
|
|
6
6
|
declare const BrowserTelemetry_base: Context.ServiceClass<BrowserTelemetry, "executor/BrowserTelemetry", {
|
|
7
7
|
readonly navigation: (event: {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { Layer, Logger } from "effect";
|
|
3
3
|
import { type TelemetryConfig } from "./config.js";
|
|
4
4
|
/** Build one tracer per runtime. Event mode defers export until Worker scope finalization. */
|
|
5
|
-
export declare const telemetryLayer: (config: TelemetryConfig, lifetime?: "process" | "event", logger?: Logger.Logger<unknown, void>) => Layer.Layer<import("effect/
|
|
5
|
+
export declare const telemetryLayer: (config: TelemetryConfig, lifetime?: "process" | "event", logger?: Logger.Logger<unknown, void>) => Layer.Layer<import("effect/observability/OtlpExporter").Flusher, never, never>;
|
|
6
6
|
/** Node/local entry points resolve telemetry once and share it for their process lifetime. */
|
|
7
|
-
export declare const telemetryFromConfig: (service: string) => Layer.Layer<import("effect/
|
|
7
|
+
export declare const telemetryFromConfig: (service: string) => Layer.Layer<import("effect/observability/OtlpExporter").Flusher, import("effect/Schema").SchemaError | import("effect/Config").ConfigError, never>;
|
|
@@ -23,6 +23,6 @@ export declare const collectTelemetry: <A, E, R>(effect: Effect.Effect<A, E, R>)
|
|
|
23
23
|
logs: string[];
|
|
24
24
|
dropped: number;
|
|
25
25
|
};
|
|
26
|
-
}, E, Exclude<Exclude<R, import("effect/
|
|
26
|
+
}, E, Exclude<Exclude<R, import("effect/observability/OtlpExporter").Flusher>, never>>;
|
|
27
27
|
/** Validate isolated records and export only this call's trace, using parent-owned credentials/identity. */
|
|
28
|
-
export declare const forwardTelemetry: (batch: TelemetryBatch, traceId: string | undefined, build: string | undefined, service?: "executor-app" | "executor-web") => Effect.Effect<void, Schema.SchemaError | import("effect/
|
|
28
|
+
export declare const forwardTelemetry: (batch: TelemetryBatch, traceId: string | undefined, build: string | undefined, service?: "executor-app" | "executor-web") => Effect.Effect<void, Schema.SchemaError | import("effect/http/HttpClientError").HttpClientError | import("effect/Cause").TimeoutError, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, Layer } from "effect";
|
|
2
|
-
import { HttpClient } from "effect/
|
|
2
|
+
import { HttpClient } from "effect/http";
|
|
3
3
|
/** Local collector discovery can resolve its destination when an export runs. */
|
|
4
4
|
export declare const CurrentTelemetryClient: Context.Reference<HttpClient.HttpClient | undefined>;
|
|
5
5
|
/** Telemetry consumers inspect status and headers; release response I/O inside each export scope. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema, type Cause } from "effect";
|
|
2
|
-
import "effect/
|
|
2
|
+
import "effect/http-api";
|
|
3
3
|
/**
|
|
4
4
|
* Encode the class's `message` getter as a required wire string. Decoding validates the field,
|
|
5
5
|
* then omits it, so the class derives its own message from the parsed payload and a supplied
|