apps 0.0.1-beta.34 → 0.0.1-beta.35
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-PUBNIORL.js → chunk-5CQMUXW7.js} +2 -2
- package/js/{chunk-DSUKW6KJ.js → chunk-5KNA2Z5I.js} +13 -11
- package/js/{chunk-UMCMZFXW.js → chunk-73AV3JVU.js} +1 -1
- 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-IU6OK5G2.js → chunk-ENJCQWVF.js} +3 -3
- package/js/{chunk-OX233L7N.js → chunk-FFTALB6S.js} +2 -2
- package/js/{chunk-DASNNAP4.js → chunk-HDAQBRT5.js} +391 -14
- package/js/{chunk-HW3DPBZR.js → chunk-I7CNZ4CM.js} +1 -1
- package/js/{chunk-QKVZGWGZ.js → chunk-IA3VSGR4.js} +7 -7
- 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-QZD2RZ4S.js → chunk-KBXQOJYW.js} +8 -8
- package/js/{chunk-CJY5X26R.js → chunk-KOOJUMLR.js} +86 -50
- package/js/{chunk-ETLILMHY.js → chunk-KZFV3WCJ.js} +21 -19
- package/js/{chunk-MYH3QZ4L.js → chunk-LUROQKFP.js} +9 -9
- 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-UWOIEJ56.js} +18 -18
- package/js/chunk-V5DWGYRK.js +268 -0
- package/js/{chunk-QUEPZ67T.js → chunk-VBVOPW4U.js} +3 -3
- package/js/{chunk-GZ4UHXRT.js → chunk-WDBUOIWV.js} +3 -3
- 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-YYK6GEMC.js} +11 -11
- package/js/client.js +12 -11
- package/js/contracts.js +10 -9
- 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 +18 -16
- 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/protocols/1.d.ts +4 -4
- package/types/apps/src/contracts/protocols/2.d.ts +4 -4
- package/types/apps/src/contracts/protocols/3.d.ts +4 -4
- package/types/apps/src/contracts/protocols/4.d.ts +4 -4
- package/types/apps/src/contracts/protocols/5.d.ts +4 -4
- package/types/apps/src/contracts/protocols/6.d.ts +4 -4
- package/types/apps/src/contracts/protocols/7.d.ts +4 -4
- package/types/apps/src/contracts/protocols/8.d.ts +4 -4
- package/types/apps/src/contracts/ui.d.ts +1 -1
- package/types/apps/src/implementation/live.d.ts +2 -2
- package/types/apps/src/implementation/network.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/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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Shared SQLite engine. Drivers, persistent paths and app ownership belong to the host. */
|
|
2
2
|
import { Effect } from "effect";
|
|
3
|
-
import type { SqlClient } from "effect/
|
|
3
|
+
import type { SqlClient } from "effect/sql/SqlClient";
|
|
4
4
|
import { AppDatabaseError, DatabaseLimits, type AppDatabase } from "../contracts/database.js";
|
|
5
5
|
/** Open a database whose storage is owned by exactly one configured app. Schema changes fail closed. */
|
|
6
6
|
export declare const makeSqliteDatabase: (options: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Shared MCP elicitation data. Delivery belongs to the host, independently of its transport. */
|
|
2
2
|
import { Schema, type Effect } from "effect";
|
|
3
|
-
import * as McpSchema from "effect/
|
|
3
|
+
import * as McpSchema from "effect/ai/McpSchema";
|
|
4
4
|
import { type JsonValue } from "./schema.js";
|
|
5
5
|
/** Maximum human-input wait, separate from active provider execution time. */
|
|
6
6
|
export declare const ElicitationLimits: Schema.Struct<{
|
|
@@ -15,10 +15,10 @@ export declare const defaultElicitationLimits: {
|
|
|
15
15
|
export declare const FormElicitation: Schema.Struct<{
|
|
16
16
|
readonly mode: Schema.Literal<"form">;
|
|
17
17
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
18
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
18
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
19
19
|
readonly type: Schema.tag<"object">;
|
|
20
20
|
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof McpSchema.LegacyTitledEnum, Schema.Union<readonly [typeof McpSchema.UntitledSingleSelectEnum, typeof McpSchema.TitledSingleSelectEnum]>, Schema.Union<readonly [typeof McpSchema.UntitledMultiSelectEnum, typeof McpSchema.TitledMultiSelectEnum]>]>, typeof McpSchema.ElicitationString, typeof McpSchema.ElicitationNumber, typeof McpSchema.ElicitationBoolean]>>;
|
|
21
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
21
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
22
22
|
}>>;
|
|
23
23
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
24
24
|
readonly message: Schema.String;
|
|
@@ -28,7 +28,7 @@ export type FormElicitation = typeof FormElicitation.Type;
|
|
|
28
28
|
export declare const ElicitationResponse: Schema.Union<readonly [Schema.Struct<{
|
|
29
29
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
30
30
|
readonly action: Schema.Literal<"accept">;
|
|
31
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
31
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
32
32
|
}>, Schema.Struct<{
|
|
33
33
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
34
34
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -50,7 +50,7 @@ export declare const ElicitationReply: Schema.Union<readonly [Schema.Struct<{
|
|
|
50
50
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
51
51
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
52
52
|
readonly action: Schema.Literal<"accept">;
|
|
53
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
53
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
54
54
|
}>, Schema.Struct<{
|
|
55
55
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
56
56
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -75,7 +75,7 @@ export type ApprovalElicitation = typeof ApprovalElicitation.Type;
|
|
|
75
75
|
export declare const ApprovalResponse: Schema.Union<readonly [Schema.Struct<{
|
|
76
76
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
77
77
|
readonly action: Schema.Literal<"accept">;
|
|
78
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
78
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
79
79
|
}>, Schema.Struct<{
|
|
80
80
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
81
81
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -1625,10 +1625,10 @@ export declare const protocol1: {
|
|
|
1625
1625
|
readonly elicitationRequest: Schema.Struct<{
|
|
1626
1626
|
readonly mode: Schema.Literal<"form">;
|
|
1627
1627
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1628
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1628
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1629
1629
|
readonly type: Schema.tag<"object">;
|
|
1630
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
1631
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
1630
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
1631
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1632
1632
|
}>>;
|
|
1633
1633
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1634
1634
|
readonly message: Schema.String;
|
|
@@ -1638,7 +1638,7 @@ export declare const protocol1: {
|
|
|
1638
1638
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1639
1639
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1640
1640
|
readonly action: Schema.Literal<"accept">;
|
|
1641
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
1641
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
1642
1642
|
}>, Schema.Struct<{
|
|
1643
1643
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1644
1644
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -579,10 +579,10 @@ export declare const protocol2: {
|
|
|
579
579
|
readonly elicitationRequest: Schema.Struct<{
|
|
580
580
|
readonly mode: Schema.Literal<"form">;
|
|
581
581
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
582
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
582
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
583
583
|
readonly type: Schema.tag<"object">;
|
|
584
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
585
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
584
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
585
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
586
586
|
}>>;
|
|
587
587
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
588
588
|
readonly message: Schema.String;
|
|
@@ -592,7 +592,7 @@ export declare const protocol2: {
|
|
|
592
592
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
593
593
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
594
594
|
readonly action: Schema.Literal<"accept">;
|
|
595
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
595
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
596
596
|
}>, Schema.Struct<{
|
|
597
597
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
598
598
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -585,10 +585,10 @@ export declare const protocol3: {
|
|
|
585
585
|
readonly elicitationRequest: Schema.Struct<{
|
|
586
586
|
readonly mode: Schema.Literal<"form">;
|
|
587
587
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
588
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
588
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
589
589
|
readonly type: Schema.tag<"object">;
|
|
590
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
591
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
590
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
591
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
592
592
|
}>>;
|
|
593
593
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
594
594
|
readonly message: Schema.String;
|
|
@@ -598,7 +598,7 @@ export declare const protocol3: {
|
|
|
598
598
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
599
599
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
600
600
|
readonly action: Schema.Literal<"accept">;
|
|
601
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
601
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
602
602
|
}>, Schema.Struct<{
|
|
603
603
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
604
604
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -1167,10 +1167,10 @@ export declare const protocol4: {
|
|
|
1167
1167
|
readonly elicitationRequest: Schema.Struct<{
|
|
1168
1168
|
readonly mode: Schema.Literal<"form">;
|
|
1169
1169
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1170
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1170
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1171
1171
|
readonly type: Schema.tag<"object">;
|
|
1172
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
1173
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
1172
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
1173
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1174
1174
|
}>>;
|
|
1175
1175
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1176
1176
|
readonly message: Schema.String;
|
|
@@ -1180,7 +1180,7 @@ export declare const protocol4: {
|
|
|
1180
1180
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1181
1181
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1182
1182
|
readonly action: Schema.Literal<"accept">;
|
|
1183
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
1183
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
1184
1184
|
}>, Schema.Struct<{
|
|
1185
1185
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1186
1186
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -1043,10 +1043,10 @@ export declare const protocol5: {
|
|
|
1043
1043
|
readonly elicitationRequest: Schema.Struct<{
|
|
1044
1044
|
readonly mode: Schema.Literal<"form">;
|
|
1045
1045
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1046
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1046
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1047
1047
|
readonly type: Schema.tag<"object">;
|
|
1048
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
1049
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
1048
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
1049
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1050
1050
|
}>>;
|
|
1051
1051
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1052
1052
|
readonly message: Schema.String;
|
|
@@ -1056,7 +1056,7 @@ export declare const protocol5: {
|
|
|
1056
1056
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1057
1057
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1058
1058
|
readonly action: Schema.Literal<"accept">;
|
|
1059
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
1059
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
1060
1060
|
}>, Schema.Struct<{
|
|
1061
1061
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1062
1062
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -1489,10 +1489,10 @@ export declare const protocol6: {
|
|
|
1489
1489
|
readonly elicitationRequest: Schema.Struct<{
|
|
1490
1490
|
readonly mode: Schema.Literal<"form">;
|
|
1491
1491
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1492
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1492
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1493
1493
|
readonly type: Schema.tag<"object">;
|
|
1494
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
1495
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
1494
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
1495
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1496
1496
|
}>>;
|
|
1497
1497
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1498
1498
|
readonly message: Schema.String;
|
|
@@ -1502,7 +1502,7 @@ export declare const protocol6: {
|
|
|
1502
1502
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1503
1503
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1504
1504
|
readonly action: Schema.Literal<"accept">;
|
|
1505
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
1505
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
1506
1506
|
}>, Schema.Struct<{
|
|
1507
1507
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1508
1508
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -1653,10 +1653,10 @@ export declare const protocol7: {
|
|
|
1653
1653
|
readonly elicitationRequest: Schema.Struct<{
|
|
1654
1654
|
readonly mode: Schema.Literal<"form">;
|
|
1655
1655
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1656
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1656
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1657
1657
|
readonly type: Schema.tag<"object">;
|
|
1658
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
1659
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
1658
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
1659
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1660
1660
|
}>>;
|
|
1661
1661
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1662
1662
|
readonly message: Schema.String;
|
|
@@ -1666,7 +1666,7 @@ export declare const protocol7: {
|
|
|
1666
1666
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1667
1667
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1668
1668
|
readonly action: Schema.Literal<"accept">;
|
|
1669
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
1669
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
1670
1670
|
}>, Schema.Struct<{
|
|
1671
1671
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1672
1672
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -988,10 +988,10 @@ export declare const protocol8: {
|
|
|
988
988
|
readonly elicitationRequest: Schema.Struct<{
|
|
989
989
|
readonly mode: Schema.Literal<"form">;
|
|
990
990
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
991
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
991
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
992
992
|
readonly type: Schema.tag<"object">;
|
|
993
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
994
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
993
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
994
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
995
995
|
}>>;
|
|
996
996
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
997
997
|
readonly message: Schema.String;
|
|
@@ -1001,7 +1001,7 @@ export declare const protocol8: {
|
|
|
1001
1001
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1002
1002
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1003
1003
|
readonly action: Schema.Literal<"accept">;
|
|
1004
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
1004
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
1005
1005
|
}>, Schema.Struct<{
|
|
1006
1006
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1007
1007
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -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,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 {};
|
|
@@ -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. */
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|