apps 0.0.1-beta.33 → 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-TEV5IMOM.js → chunk-5CQMUXW7.js} +2 -2
- package/js/{chunk-N72RKJ5E.js → chunk-5KNA2Z5I.js} +13 -102
- 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-5DLG2FVN.js → chunk-BI6R577B.js} +93 -2
- package/js/{chunk-4OKYLVU4.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-GMMS4BY3.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-AYM2FUI5.js → chunk-JU7F4PRK.js} +2 -2
- package/js/{chunk-E6C2DUIA.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-AKKJDDOT.js → chunk-LUROQKFP.js} +10 -10
- 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-SRB2WDU7.js +49 -0
- package/js/{chunk-MFHUR5SB.js → chunk-TADLIUEU.js} +4 -4
- package/js/{chunk-3BHBWZLD.js → chunk-UWOIEJ56.js} +20 -18
- package/js/chunk-V5DWGYRK.js +268 -0
- package/js/{chunk-75JKK3ZE.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-WWSRAE5Y.js → chunk-YW333DH3.js} +11 -8
- package/js/{chunk-2SRLJHPM.js → chunk-YYK6GEMC.js} +14 -53
- package/js/client.js +12 -11
- package/js/contracts.js +17 -16
- package/js/effect.js +23 -20
- package/js/graphql.js +27 -25
- package/js/host.js +23 -20
- package/js/index.js +18 -16
- package/js/mcp/effect.js +25 -22
- package/js/mcp/stdio.js +25 -22
- package/js/mcp.js +28 -25
- package/js/openapi.js +25 -22
- package/js/react.js +3 -3
- package/js/skills/effect.js +6 -5
- package/js/skills.js +119 -49
- 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/cache.d.ts +14 -0
- 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/skills.d.ts +16 -4
- package/types/apps/src/contracts/ui.d.ts +1 -1
- package/types/apps/src/implementation/catalog-cache.d.ts +14 -17
- 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/skills.d.ts +13 -19
- 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 +4 -3
- 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: {
|
|
@@ -37,6 +37,20 @@ export interface AppCache {
|
|
|
37
37
|
readonly id: string;
|
|
38
38
|
}) => AppCache;
|
|
39
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* A credential a remote read sends, and the account it belongs to. A public source takes neither.
|
|
42
|
+
* A credential comes only with its account, so the read is cached in that account's scope.
|
|
43
|
+
*/
|
|
44
|
+
export type AccountCredential<Credential extends object> = ({
|
|
45
|
+
readonly account?: undefined;
|
|
46
|
+
} & {
|
|
47
|
+
readonly [Field in keyof Credential]?: undefined;
|
|
48
|
+
}) | ({
|
|
49
|
+
/** The selected account, as `accounts.<slot>` provides it. */
|
|
50
|
+
readonly account: {
|
|
51
|
+
readonly id: string;
|
|
52
|
+
};
|
|
53
|
+
} & Credential);
|
|
40
54
|
/** Trusted storage and background ownership; never accepted from request JSON. */
|
|
41
55
|
export interface HostCache {
|
|
42
56
|
readonly transport: CacheTransport;
|
|
@@ -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"]>;
|
|
@@ -115,14 +115,26 @@ export interface SkillCacheOptions {
|
|
|
115
115
|
readonly staleFor?: import("effect").Duration.Input;
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
118
|
+
* Whose access reads the repository. A public repository needs neither field. A private one takes
|
|
119
|
+
* a GitHub account and its token, sent on every request of this read. The token comes only with
|
|
120
|
+
* its account, so the catalog is cached in that account's scope and failures name the account.
|
|
120
121
|
*/
|
|
121
|
-
export
|
|
122
|
+
export type GitHubSkillsAccount = import("./cache.js").AccountCredential<{
|
|
123
|
+
/**
|
|
124
|
+
* The account's token or its handle, such as `account.fields.token`. Its provider declares
|
|
125
|
+
* hosts `github.com` and `raw.githubusercontent.com`, so app code never holds the value.
|
|
126
|
+
*/
|
|
127
|
+
readonly token: string;
|
|
128
|
+
}>;
|
|
129
|
+
/**
|
|
130
|
+
* A GitHub repository and an optional immutable commit, tag or branch. With a cache, a branch or
|
|
131
|
+
* tag is resolved again when the catalog refreshes, and each commit's file list is kept.
|
|
132
|
+
*/
|
|
133
|
+
export type GitHubSkillsOptions = SkillTransport & SkillCacheOptions & GitHubSkillsAccount & {
|
|
122
134
|
readonly repo: string;
|
|
123
135
|
readonly path?: string;
|
|
124
136
|
readonly ref?: string;
|
|
125
|
-
}
|
|
137
|
+
};
|
|
126
138
|
/** A published directory index, including its listed skill documents and text references. */
|
|
127
139
|
export interface WellKnownSkillsOptions extends SkillTransport, SkillCacheOptions {
|
|
128
140
|
readonly url: string;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import { Duration, Effect, Schema } from "effect";
|
|
2
|
-
import type { AppCache, CacheLoadContext } from "../contracts/cache.js";
|
|
2
|
+
import type { AccountCredential, AppCache, CacheLoadContext } from "../contracts/cache.js";
|
|
3
3
|
import { JsonObject, type JsonValue } from "../contracts/schema.js";
|
|
4
4
|
export interface CatalogCacheOptions {
|
|
5
5
|
/** The app's cache. An account's catalog is kept in that account's scope. */
|
|
@@ -11,27 +11,24 @@ export interface CatalogCacheOptions {
|
|
|
11
11
|
/** Await a fresh revision at an explicit logical connection or refresh boundary. */
|
|
12
12
|
readonly revalidate?: boolean;
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
* come only with the account they belong to, so an authenticated catalog always has its account.
|
|
17
|
-
*/
|
|
18
|
-
export type CatalogAccount = {
|
|
19
|
-
readonly account?: undefined;
|
|
20
|
-
readonly headers?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
/** The selected account, as `accounts.<slot>` provides it. */
|
|
23
|
-
readonly account: {
|
|
24
|
-
readonly id: string;
|
|
25
|
-
};
|
|
14
|
+
/** Whose catalog a remote router reads, and the headers, such as credentials, it sends. */
|
|
15
|
+
export type CatalogAccount = AccountCredential<{
|
|
26
16
|
/** Headers for this account's requests, such as its credentials. */
|
|
27
17
|
readonly headers?: Readonly<Record<string, string>>;
|
|
28
|
-
}
|
|
18
|
+
}>;
|
|
19
|
+
/** Why a read cannot use its account's scope. */
|
|
20
|
+
export type CatalogScopeProblem = "missing-account" | "unselected-account";
|
|
29
21
|
/**
|
|
30
22
|
* The cache an account's catalog lives in: the account's own scope, which token renewals keep.
|
|
31
|
-
*
|
|
32
|
-
* given,
|
|
23
|
+
* `credential` is what the read sends, such as headers or a token; it never enters a key. A
|
|
24
|
+
* credential without an account, or an account the app was not given, fails with `invalid`.
|
|
33
25
|
*/
|
|
34
|
-
export declare const catalogScope: <E>(options:
|
|
26
|
+
export declare const catalogScope: <E>(options: {
|
|
27
|
+
readonly cache?: AppCache | undefined;
|
|
28
|
+
readonly account?: {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
} | undefined;
|
|
31
|
+
}, credential: unknown, invalid: (problem: CatalogScopeProblem) => E) => Effect.Effect<AppCache | undefined, E>;
|
|
35
32
|
/** One load: the tools, and optionally a record describing the whole catalog. */
|
|
36
33
|
export interface CatalogLoad<A> {
|
|
37
34
|
readonly tools: readonly A[];
|
|
@@ -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,31 +1,24 @@
|
|
|
1
1
|
/** Remote skill readers return complete portable bundles, never installed host files. */
|
|
2
2
|
import { Effect } from "effect";
|
|
3
|
-
import {
|
|
3
|
+
import { NetworkRefused } from "../contracts/network.js";
|
|
4
|
+
import { ProviderError } from "../contracts/provider-error.js";
|
|
5
|
+
import { AppSkills, SkillLoadFailed, type GitHubSkillsOptions, type WellKnownSkillsOptions, type SkillTransport } from "../contracts/skills.js";
|
|
4
6
|
/** Give every failure without a message one that names the service. */
|
|
5
7
|
export declare const withService: (service: string | undefined) => <A, R>(effect: Effect.Effect<A, SkillLoadFailed, R>) => Effect.Effect<A, SkillLoadFailed, R>;
|
|
8
|
+
interface ReadRequest {
|
|
9
|
+
readonly headers?: Readonly<Record<string, string>>;
|
|
10
|
+
/** Describe a refusal by Executor's app network; defaults to the refusal's own message. */
|
|
11
|
+
readonly refused?: (refused: NetworkRefused) => SkillLoadFailed;
|
|
12
|
+
}
|
|
6
13
|
/** One loader invocation owns its byte budget and all of its network requests. */
|
|
7
14
|
export declare const reader: (transport: SkillTransport) => Effect.Effect<{
|
|
8
|
-
fetchBytes: (url: string,
|
|
9
|
-
readonly body
|
|
10
|
-
readonly headers: Record<string, string>;
|
|
15
|
+
fetchBytes: (url: string, request?: ReadRequest & {
|
|
16
|
+
readonly body?: Uint8Array;
|
|
11
17
|
}) => Effect.Effect<Uint8Array<ArrayBuffer>, SkillLoadFailed, never>;
|
|
12
|
-
read: (url: string) => Effect.Effect<string, SkillLoadFailed, never>;
|
|
18
|
+
read: (url: string, request?: ReadRequest) => Effect.Effect<string, SkillLoadFailed, never>;
|
|
13
19
|
json: (url: string) => Effect.Effect<unknown, SkillLoadFailed, never>;
|
|
14
20
|
}, never, never>;
|
|
15
|
-
export declare const githubSkillsEffect: (options: GitHubSkillsOptions) => Effect.Effect<
|
|
16
|
-
readonly description: string;
|
|
17
|
-
readonly name: string;
|
|
18
|
-
readonly files: readonly {
|
|
19
|
-
readonly path: string;
|
|
20
|
-
readonly content: string;
|
|
21
|
-
}[];
|
|
22
|
-
readonly license?: string;
|
|
23
|
-
readonly compatibility?: string;
|
|
24
|
-
readonly metadata?: {
|
|
25
|
-
readonly [x: string]: string;
|
|
26
|
-
};
|
|
27
|
-
readonly "allowed-tools"?: string;
|
|
28
|
-
}[], SkillLoadFailed, never>;
|
|
21
|
+
export declare const githubSkillsEffect: (options: GitHubSkillsOptions) => Effect.Effect<typeof AppSkills.Type, SkillLoadFailed | ProviderError>;
|
|
29
22
|
/** Fetch all indexed files and reject a publication whose index changes during the read. */
|
|
30
23
|
export declare const wellKnownSkillsEffect: (options: WellKnownSkillsOptions) => Effect.Effect<readonly {
|
|
31
24
|
readonly description: string;
|
|
@@ -41,3 +34,4 @@ export declare const wellKnownSkillsEffect: (options: WellKnownSkillsOptions) =>
|
|
|
41
34
|
};
|
|
42
35
|
readonly "allowed-tools"?: string;
|
|
43
36
|
}[], SkillLoadFailed, never>;
|
|
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;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type FolderSkillsOptions, type GitHubSkillsOptions, type SkillReaderOptions, type WellKnownSkillsOptions, type SkillFile } from "./contracts/skills.js";
|
|
2
|
-
export { SkillLoadFailed, SkillDefinitionInvalid, SkillServiceName, type SkillReaderOptions, type FolderSkillsOptions, type AppSkillSource as Skill, type SkillFile, type GitHubSkillsOptions, type SkillCacheOptions, type WellKnownSkillsOptions, } from "./contracts/skills.js";
|
|
2
|
+
export { SkillLoadFailed, SkillDefinitionInvalid, SkillServiceName, type SkillReaderOptions, type FolderSkillsOptions, type AppSkillSource as Skill, type SkillFile, type GitHubSkillsAccount, type GitHubSkillsOptions, type SkillCacheOptions, type WellKnownSkillsOptions, } from "./contracts/skills.js";
|
|
3
3
|
/**
|
|
4
|
-
* Fetch a
|
|
5
|
-
* the catalog; without it, mutable refs resolve
|
|
4
|
+
* Fetch a GitHub skill collection from one resolved commit. A private repository takes `account`
|
|
5
|
+
* and its `token`. Pass `cache: ctx.cache` to reuse the catalog; without it, mutable refs resolve
|
|
6
|
+
* again on each call.
|
|
6
7
|
*/
|
|
7
8
|
export declare const githubSkills: (options: GitHubSkillsOptions) => Promise<readonly {
|
|
8
9
|
readonly description: string;
|
|
@@ -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. */
|