apps 0.0.1-beta.34 → 0.0.1-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework-reference.json +1 -1
- package/js/{chunk-OX233L7N.js → chunk-4U2VUDET.js} +2 -2
- package/js/{chunk-HW3DPBZR.js → chunk-556EWA6P.js} +3 -2
- package/js/{chunk-UMCMZFXW.js → chunk-73AV3JVU.js} +1 -1
- package/js/{chunk-QKVZGWGZ.js → chunk-A2NN45C7.js} +7 -7
- package/js/{chunk-6ZJ2H6P4.js → chunk-A4O72Z3A.js} +298 -190
- package/js/{chunk-FBBXFFFJ.js → chunk-BI45HZWM.js} +2 -2
- package/js/{chunk-DXGWKNTQ.js → chunk-BI6R577B.js} +2 -2
- package/js/{chunk-QUEPZ67T.js → chunk-BKJDZYK7.js} +3 -3
- package/js/{chunk-QZD2RZ4S.js → chunk-CZLCA2O4.js} +8 -8
- package/js/{chunk-IU6OK5G2.js → chunk-ENJCQWVF.js} +3 -3
- package/js/{chunk-DASNNAP4.js → chunk-HDAQBRT5.js} +391 -14
- package/js/{chunk-EXGKN554.js → chunk-IJQ5LE74.js} +9805 -9254
- package/js/{chunk-5JVNM3CQ.js → chunk-IU7CCCUC.js} +12 -12
- package/js/{chunk-Q7Q5JTRW.js → chunk-JU7F4PRK.js} +2 -2
- package/js/{chunk-CJY5X26R.js → chunk-KOOJUMLR.js} +86 -50
- package/js/{chunk-ETLILMHY.js → chunk-KZFV3WCJ.js} +21 -19
- package/js/{chunk-ZOY7PDMI.js → chunk-NHCFIWN5.js} +1 -1
- package/js/chunk-NHUHTWAF.js +0 -0
- package/js/{chunk-QYM4STZW.js → chunk-PHO7HXTC.js} +149 -353
- package/js/{chunk-O3OAFU7Q.js → chunk-POOIHRPF.js} +2 -2
- package/js/{chunk-AUFVX4KM.js → chunk-RSNZDT4L.js} +2 -2
- package/js/{chunk-EPUWF4ZG.js → chunk-SRB2WDU7.js} +3 -3
- package/js/{chunk-MFHUR5SB.js → chunk-TADLIUEU.js} +4 -4
- package/js/{chunk-5OM6HBNU.js → chunk-UBAKWXAJ.js} +20 -29
- package/js/chunk-V5DWGYRK.js +268 -0
- package/js/{chunk-MYH3QZ4L.js → chunk-WAGGHNWH.js} +23 -15
- package/js/{chunk-GZ4UHXRT.js → chunk-WDBUOIWV.js} +3 -3
- package/js/{chunk-PUBNIORL.js → chunk-WMVTBHGK.js} +2 -2
- package/js/{chunk-DSUKW6KJ.js → chunk-XEXUHXC3.js} +296 -174
- package/js/{chunk-6KG4DZD7.js → chunk-Y3XN4X4Q.js} +1 -1
- package/js/{chunk-UKMIHP2G.js → chunk-YW333DH3.js} +4 -4
- package/js/{chunk-O4QOPXQT.js → chunk-ZQWDOHEO.js} +31 -24
- package/js/client.js +12 -11
- package/js/contracts.js +14 -11
- package/js/effect.js +23 -21
- package/js/graphql.js +25 -23
- package/js/host.js +23 -21
- package/js/index.js +16 -14
- package/js/mcp/effect.js +25 -23
- package/js/mcp/stdio.js +25 -23
- package/js/mcp.js +27 -25
- package/js/openapi.js +22 -21
- package/js/react.js +3 -3
- package/js/skills/effect.js +6 -5
- package/js/skills.js +60 -45
- package/js/storage/facet.js +19 -345
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +6 -5
- package/js/ui/serving.js +10 -9
- package/package.json +3 -3
- package/runtime.json +1 -1
- package/types/app-data/src/implementation/sqlite.d.ts +1 -1
- package/types/apps/src/contracts/elicitation.d.ts +6 -6
- package/types/apps/src/contracts/host.d.ts +10 -6
- package/types/apps/src/contracts/mcp.d.ts +6 -1
- package/types/apps/src/contracts/openapi.d.ts +1 -1
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/1.d.ts +12 -5
- package/types/apps/src/contracts/protocols/2.d.ts +5 -5
- package/types/apps/src/contracts/protocols/3.d.ts +5 -6
- package/types/apps/src/contracts/protocols/4.d.ts +5 -6
- package/types/apps/src/contracts/protocols/5.d.ts +7 -7
- package/types/apps/src/contracts/protocols/6.d.ts +7 -7
- package/types/apps/src/contracts/protocols/7.d.ts +7 -7
- package/types/apps/src/contracts/protocols/8.d.ts +17 -6
- package/types/apps/src/contracts/protocols/9.d.ts +1106 -0
- package/types/apps/src/contracts/skills.d.ts +5 -0
- package/types/apps/src/contracts/ui.d.ts +1 -1
- package/types/apps/src/implementation/failure-detail.d.ts +4 -3
- package/types/apps/src/implementation/live.d.ts +2 -2
- package/types/apps/src/implementation/mcp-client.d.ts +1 -1
- package/types/apps/src/implementation/mcp.d.ts +1 -1
- package/types/apps/src/implementation/network.d.ts +1 -1
- package/types/apps/src/implementation/openapi-compile.d.ts +1 -1
- package/types/apps/src/implementation/optimistic.d.ts +1 -1
- package/types/apps/src/implementation/query-commit.d.ts +1 -1
- package/types/apps/src/implementation/router-catalog.d.ts +2 -3
- package/types/apps/src/implementation/skills.d.ts +8 -8
- package/types/apps/src/implementation/ui-auth.d.ts +1 -1
- package/types/apps/src/implementation/ui-client.d.ts +1 -1
- package/types/apps/src/implementation/ui-serving.d.ts +1 -1
- package/types/apps/src/react.d.ts +1 -1
- package/types/apps/src/skills.d.ts +2 -1
- package/types/telemetry/src/browser-operations.d.ts +1 -1
- package/types/telemetry/src/browser.d.ts +2 -2
- package/types/telemetry/src/layer.d.ts +2 -2
- package/types/telemetry/src/relay.d.ts +2 -2
- package/types/telemetry/src/transport.d.ts +1 -1
- package/types/utils/src/api-error.d.ts +1 -1
|
@@ -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"]>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
export * from "./skills.js";
|
|
2
|
-
import {
|
|
2
|
+
import { type SkillFile } from "./skills.js";
|
|
3
3
|
import { ProviderError } from "./provider-error.js";
|
|
4
|
-
import { McpError } from "./mcp.js";
|
|
5
4
|
import { OpenapiResponseError } from "./api-response-error.js";
|
|
6
5
|
export { ApiErrorResponse, maxApiErrorInstructionsLength, maxApiErrorMessageLength, OpenapiResponseError, } from "./api-response-error.js";
|
|
7
6
|
export { ProviderError } from "./provider-error.js";
|
|
8
|
-
export { McpError } from "./mcp.js";
|
|
9
7
|
export { FetchOptionUnsupported, NetworkRefusal, NetworkRefused, networkRefusalHeader, networkRefusalResponse, networkRefusalStatus, } from "./network.js";
|
|
10
8
|
import { WorkflowFailure, type WorkflowExecution, type WorkflowReplay, type WorkflowHostControls } from "./workflows.js";
|
|
11
9
|
export * from "./workflows.js";
|
|
@@ -36,10 +34,16 @@ export { protocol5 } from "./protocols/5.js";
|
|
|
36
34
|
export { protocol6 } from "./protocols/6.js";
|
|
37
35
|
export { protocol7, AccountCheckCommand, CredentialHost } from "./protocols/7.js";
|
|
38
36
|
export { protocol8 } from "./protocols/8.js";
|
|
37
|
+
export { protocol9 } from "./protocols/9.js";
|
|
39
38
|
export { AccountCheckResult, AccountInfo } from "./provider.js";
|
|
40
|
-
import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostKindMismatch, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, SkillSources, type InvocationDeadline, ResolvedAccounts, type SkillCatalogResponse, type TrustedToolApproval } from "./protocols/
|
|
41
|
-
export { DeclaredRequirements, HostRequest } from "./protocols/
|
|
42
|
-
|
|
39
|
+
import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostKindMismatch, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, SkillLoadFailed, SkillSources, type InvocationDeadline, ResolvedAccounts, type SkillCatalogResponse, type TrustedToolApproval } from "./protocols/9.js";
|
|
40
|
+
export { DeclaredRequirements, HostRequest } from "./protocols/9.js";
|
|
41
|
+
/**
|
|
42
|
+
* The MCP and skill loader failures as they cross the host boundary. Apps throw the author-facing
|
|
43
|
+
* classes from `apps/mcp` and `apps/skills`.
|
|
44
|
+
*/
|
|
45
|
+
export { McpError, SkillLoadFailed } from "./protocols/9.js";
|
|
46
|
+
export { DeclaredAuthMethod, DeclaredProvider, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRouterError, HostedRouter, HostedCatalog, HostedCatalogSummary, SkillSources, SkillCatalogResponse, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, HostKindMismatch, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostError, HostResponse, HostInvocation, } from "./protocols/9.js";
|
|
43
47
|
/** Raw host inputs; the host boundary parses and redacts these immediately. */
|
|
44
48
|
export type ResolvedAccountsInput = typeof ResolvedAccounts.Encoded;
|
|
45
49
|
/** Trusted invocation context, supplied separately from the Request. */
|
|
@@ -144,13 +144,18 @@ declare const McpError_base: Schema.Class<McpError, Schema.TaggedStruct<"McpErro
|
|
|
144
144
|
readonly code: Schema.Union<readonly [Schema.Int, Schema.String]>;
|
|
145
145
|
readonly message: Schema.optionalKey<Schema.String>;
|
|
146
146
|
}>>;
|
|
147
|
+
readonly session: Schema.optional<Schema.Literal<true>>;
|
|
147
148
|
}>, import("effect/Cause").YieldableError>;
|
|
148
149
|
/**
|
|
149
150
|
* Safe protocol/transport failure; no raw upstream payloads or credentials. `status` is the HTTP
|
|
150
151
|
* status a `request` failure was redirected or refused with. Without one, a `request` failure in
|
|
151
152
|
* the `transport` phase never reached the server; in another phase it may be a JSON-RPC error the
|
|
152
153
|
* server answered with. `upstream` is that JSON-RPC error, bounded and with account secrets
|
|
153
|
-
* replaced. A response that is not MCP is `invalid_response`.
|
|
154
|
+
* replaced. A response that is not MCP is `invalid_response`. `session` is set when the refused
|
|
155
|
+
* request carried the session ID the server issued at initialization.
|
|
156
|
+
*
|
|
157
|
+
* These fields describe the failure for whoever reads it. App code can set any of them, so they
|
|
158
|
+
* never show that the failure lies outside Executor.
|
|
154
159
|
*/
|
|
155
160
|
export declare class McpError extends McpError_base {
|
|
156
161
|
}
|
|
@@ -96,7 +96,7 @@ export declare const OpenapiOperation: Schema.Struct<{
|
|
|
96
96
|
}>;
|
|
97
97
|
export type OpenapiOperation = typeof OpenapiOperation.Type;
|
|
98
98
|
/** Safe methods, whose operations are queries unless `kinds` says otherwise. QUERY is OpenAPI 3.2's. */
|
|
99
|
-
export declare const isOpenapiReadMethod: (method: OpenapiOperation["method"]) => method is "
|
|
99
|
+
export declare const isOpenapiReadMethod: (method: OpenapiOperation["method"]) => method is "HEAD" | "GET" | "OPTIONS" | "QUERY";
|
|
100
100
|
/** Map a selected account field to one Swagger credential value. */
|
|
101
101
|
export declare const CredentialBinding: Schema.Struct<{
|
|
102
102
|
readonly scheme: Schema.String;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The host protocol this framework speaks. It is written into `runtime.json` and every host
|
|
3
|
-
* snapshot. Released protocols are frozen: see `protocols/
|
|
3
|
+
* snapshot. Released protocols are frozen: see `protocols/9.ts` and notes/apps-publishing.md.
|
|
4
4
|
* This file has no imports so the package build script can read it directly.
|
|
5
5
|
*/
|
|
6
|
-
export declare const frameworkProtocol =
|
|
6
|
+
export declare const frameworkProtocol = 9;
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { Schema } from "effect";
|
|
13
13
|
import { OpenapiResponseError } from "../api-response-error.js";
|
|
14
14
|
import { ElicitationFailed } from "../elicitation.js";
|
|
15
|
-
import { SkillLoadFailed } from "../skills.js";
|
|
16
15
|
declare const ProviderError_base: Schema.Class<ProviderError, Schema.TaggedStruct<"ProviderError", {
|
|
17
16
|
readonly reason: Schema.Literals<readonly ["unauthorized", "forbidden", "rate_limited", "unavailable", "rejected"]>;
|
|
18
17
|
readonly status: Schema.optional<Schema.Int>;
|
|
@@ -29,6 +28,14 @@ declare const McpError_base: Schema.Class<McpError, Schema.TaggedStruct<"McpErro
|
|
|
29
28
|
/** Protocol 1's MCP failure, as released: a phase, a reason and an HTTP status. */
|
|
30
29
|
export declare class McpError extends McpError_base {
|
|
31
30
|
}
|
|
31
|
+
declare const SkillLoadFailed_base: Schema.Class<SkillLoadFailed, Schema.TaggedStruct<"SkillLoadFailed", {
|
|
32
|
+
readonly reason: Schema.Literals<readonly ["source", "request", "rate_limited", "document", "limit", "changed", "encoding"]>;
|
|
33
|
+
readonly message: Schema.optional<Schema.String>;
|
|
34
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
35
|
+
}>, import("effect/Cause").YieldableError>;
|
|
36
|
+
/** Protocols 1 to 8's skill loader failure, as released: a reason, a message and an HTTP status. */
|
|
37
|
+
export declare class SkillLoadFailed extends SkillLoadFailed_base {
|
|
38
|
+
}
|
|
32
39
|
declare const WorkflowFailure_base: Schema.Class<WorkflowFailure, Schema.TaggedStruct<"WorkflowFailure", {
|
|
33
40
|
readonly reason: Schema.Literals<readonly ["unavailable", "not_found", "input", "output", "operation", "approval", "credentials", "terminated", "execution", "conflict", "engine"]>;
|
|
34
41
|
readonly retryable: Schema.Boolean;
|
|
@@ -1625,10 +1632,10 @@ export declare const protocol1: {
|
|
|
1625
1632
|
readonly elicitationRequest: Schema.Struct<{
|
|
1626
1633
|
readonly mode: Schema.Literal<"form">;
|
|
1627
1634
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1628
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1635
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1629
1636
|
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
|
|
1637
|
+
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]>>;
|
|
1638
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1632
1639
|
}>>;
|
|
1633
1640
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1634
1641
|
readonly message: Schema.String;
|
|
@@ -1638,7 +1645,7 @@ export declare const protocol1: {
|
|
|
1638
1645
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1639
1646
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1640
1647
|
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>]
|
|
1648
|
+
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
1649
|
}>, Schema.Struct<{
|
|
1643
1650
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1644
1651
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -425,7 +425,7 @@ export declare const protocol2: {
|
|
|
425
425
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
426
426
|
}>, Schema.Struct<{
|
|
427
427
|
readonly ok: Schema.Literal<false>;
|
|
428
|
-
readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
428
|
+
readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./1.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof import("./1.js").HostDeclarationInvalid, typeof import("./1.js").HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./1.js").HostOperationFailed, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("../elicitation.js").ElicitationFailed]>;
|
|
429
429
|
}>]>;
|
|
430
430
|
readonly requirements: Schema.Struct<{
|
|
431
431
|
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
@@ -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"]>;
|
|
@@ -12,9 +12,8 @@ import { Schema } from "effect";
|
|
|
12
12
|
import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../../app-data/src/contracts/database.js";
|
|
13
13
|
import { OpenapiResponseError } from "../api-response-error.js";
|
|
14
14
|
import { ElicitationFailed } from "../elicitation.js";
|
|
15
|
-
import { SkillLoadFailed } from "../skills.js";
|
|
16
15
|
import { WorkflowFailure } from "../workflows.js";
|
|
17
|
-
import { HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, ProviderError } from "./1.js";
|
|
16
|
+
import { HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, ProviderError, SkillLoadFailed } from "./1.js";
|
|
18
17
|
export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRequest, HostRequestInvalid, HostAccountsInvalid, HostOperationNotFound, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostInvocation, } from "./1.js";
|
|
19
18
|
export { SkillSources, SkillCatalogResponse } from "./2.js";
|
|
20
19
|
declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {
|
|
@@ -585,10 +584,10 @@ export declare const protocol3: {
|
|
|
585
584
|
readonly elicitationRequest: Schema.Struct<{
|
|
586
585
|
readonly mode: Schema.Literal<"form">;
|
|
587
586
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
588
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
587
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
589
588
|
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
|
|
589
|
+
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]>>;
|
|
590
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
592
591
|
}>>;
|
|
593
592
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
594
593
|
readonly message: Schema.String;
|
|
@@ -598,7 +597,7 @@ export declare const protocol3: {
|
|
|
598
597
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
599
598
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
600
599
|
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>]
|
|
600
|
+
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
601
|
}>, Schema.Struct<{
|
|
603
602
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
604
603
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
* `protocol4` with `packages/apps/protocols/4.json`. See notes/apps-publishing.md.
|
|
9
9
|
*/
|
|
10
10
|
import { Schema } from "effect";
|
|
11
|
-
import { SkillLoadFailed } from "../skills.js";
|
|
12
11
|
import { HostDeclarationInvalid, HostEvaluationFailed } from "./3.js";
|
|
13
|
-
import { McpError, ProviderError } from "./1.js";
|
|
12
|
+
import { McpError, ProviderError, SkillLoadFailed } from "./1.js";
|
|
14
13
|
export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, SkillSources, SkillCatalogResponse, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, } from "./3.js";
|
|
15
14
|
/**
|
|
16
15
|
* Serializable live tool metadata; executable callbacks never cross this boundary. `name` is the
|
|
@@ -1167,10 +1166,10 @@ export declare const protocol4: {
|
|
|
1167
1166
|
readonly elicitationRequest: Schema.Struct<{
|
|
1168
1167
|
readonly mode: Schema.Literal<"form">;
|
|
1169
1168
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1170
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1169
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1171
1170
|
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
|
|
1171
|
+
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]>>;
|
|
1172
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1174
1173
|
}>>;
|
|
1175
1174
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1176
1175
|
readonly message: Schema.String;
|
|
@@ -1180,7 +1179,7 @@ export declare const protocol4: {
|
|
|
1180
1179
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1181
1180
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1182
1181
|
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>]
|
|
1182
|
+
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
1183
|
}>, Schema.Struct<{
|
|
1185
1184
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1186
1185
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -918,7 +918,7 @@ export declare const protocol5: {
|
|
|
918
918
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
919
919
|
}>, Schema.Struct<{
|
|
920
920
|
readonly ok: Schema.Literal<false>;
|
|
921
|
-
readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
921
|
+
readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("../../../../app-data/src/index.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/index.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("../elicitation.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
|
|
922
922
|
}>]>;
|
|
923
923
|
readonly catalog: Schema.Struct<{
|
|
924
924
|
readonly tools: Schema.$Array<Schema.Struct<{
|
|
@@ -965,7 +965,7 @@ export declare const protocol5: {
|
|
|
965
965
|
}>>>;
|
|
966
966
|
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
967
967
|
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
968
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
968
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
969
969
|
}>>;
|
|
970
970
|
}>;
|
|
971
971
|
readonly catalogSummary: Schema.Struct<{
|
|
@@ -1010,7 +1010,7 @@ export declare const protocol5: {
|
|
|
1010
1010
|
}>>>;
|
|
1011
1011
|
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
1012
1012
|
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1013
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
1013
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
1014
1014
|
}>>;
|
|
1015
1015
|
}>;
|
|
1016
1016
|
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -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"]>;
|
|
@@ -1364,7 +1364,7 @@ export declare const protocol6: {
|
|
|
1364
1364
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
1365
1365
|
}>, Schema.Struct<{
|
|
1366
1366
|
readonly ok: Schema.Literal<false>;
|
|
1367
|
-
readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
1367
|
+
readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("../../../../app-data/src/index.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/index.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("../elicitation.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
|
|
1368
1368
|
}>]>;
|
|
1369
1369
|
readonly catalog: Schema.Struct<{
|
|
1370
1370
|
readonly tools: Schema.$Array<Schema.Struct<{
|
|
@@ -1411,7 +1411,7 @@ export declare const protocol6: {
|
|
|
1411
1411
|
}>>>;
|
|
1412
1412
|
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
1413
1413
|
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1414
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
1414
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
1415
1415
|
}>>;
|
|
1416
1416
|
}>;
|
|
1417
1417
|
readonly catalogSummary: Schema.Struct<{
|
|
@@ -1456,7 +1456,7 @@ export declare const protocol6: {
|
|
|
1456
1456
|
}>>>;
|
|
1457
1457
|
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
1458
1458
|
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1459
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
1459
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
1460
1460
|
}>>;
|
|
1461
1461
|
}>;
|
|
1462
1462
|
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -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"]>;
|
|
@@ -1528,7 +1528,7 @@ export declare const protocol7: {
|
|
|
1528
1528
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
1529
1529
|
}>, Schema.Struct<{
|
|
1530
1530
|
readonly ok: Schema.Literal<false>;
|
|
1531
|
-
readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
1531
|
+
readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("../../../../app-data/src/index.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/index.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("../elicitation.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
|
|
1532
1532
|
}>]>;
|
|
1533
1533
|
readonly catalog: Schema.Struct<{
|
|
1534
1534
|
readonly tools: Schema.$Array<Schema.Struct<{
|
|
@@ -1575,7 +1575,7 @@ export declare const protocol7: {
|
|
|
1575
1575
|
}>>>;
|
|
1576
1576
|
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
1577
1577
|
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1578
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
1578
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
1579
1579
|
}>>;
|
|
1580
1580
|
}>;
|
|
1581
1581
|
readonly catalogSummary: Schema.Struct<{
|
|
@@ -1620,7 +1620,7 @@ export declare const protocol7: {
|
|
|
1620
1620
|
}>>>;
|
|
1621
1621
|
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
1622
1622
|
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1623
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("
|
|
1623
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
1624
1624
|
}>>;
|
|
1625
1625
|
}>;
|
|
1626
1626
|
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -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"]>;
|
|
@@ -16,12 +16,23 @@ import { Schema } from "effect";
|
|
|
16
16
|
import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../../app-data/src/contracts/database.js";
|
|
17
17
|
import { OpenapiResponseError } from "../api-response-error.js";
|
|
18
18
|
import { ElicitationFailed } from "../elicitation.js";
|
|
19
|
-
import { McpError } from "../mcp.js";
|
|
20
19
|
import { ProviderError } from "../provider-error.js";
|
|
21
|
-
import { SkillLoadFailed } from "../skills.js";
|
|
22
20
|
import { WorkflowFailure } from "../workflows.js";
|
|
23
21
|
import { HostAccountsInvalid, HostInputInvalid, HostKindMismatch, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed } from "./7.js";
|
|
22
|
+
import { SkillLoadFailed } from "./1.js";
|
|
24
23
|
export * from "./7.js";
|
|
24
|
+
declare const McpError_base: Schema.Class<McpError, Schema.TaggedStruct<"McpError", {
|
|
25
|
+
readonly phase: Schema.Literals<readonly ["connect", "discover", "call", "schema", "transport"]>;
|
|
26
|
+
readonly reason: Schema.Literals<readonly ["request", "unauthorized", "invalid_response", "timeout", "invalid_input"]>;
|
|
27
|
+
readonly status: Schema.optional<Schema.Number>;
|
|
28
|
+
readonly upstream: Schema.optional<Schema.Struct<{
|
|
29
|
+
readonly code: Schema.Union<readonly [Schema.Int, Schema.String]>;
|
|
30
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
31
|
+
}>>;
|
|
32
|
+
}>, import("effect/Cause").YieldableError>;
|
|
33
|
+
/** Protocol 8's MCP failure, as released: protocol 1's with the JSON-RPC error the server stated. */
|
|
34
|
+
export declare class McpError extends McpError_base {
|
|
35
|
+
}
|
|
25
36
|
declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {
|
|
26
37
|
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
27
38
|
errorName: Schema.optionalKey<Schema.String>;
|
|
@@ -988,10 +999,10 @@ export declare const protocol8: {
|
|
|
988
999
|
readonly elicitationRequest: Schema.Struct<{
|
|
989
1000
|
readonly mode: Schema.Literal<"form">;
|
|
990
1001
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
991
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1002
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
992
1003
|
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
|
|
1004
|
+
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]>>;
|
|
1005
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
995
1006
|
}>>;
|
|
996
1007
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
997
1008
|
readonly message: Schema.String;
|
|
@@ -1001,7 +1012,7 @@ export declare const protocol8: {
|
|
|
1001
1012
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1002
1013
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1003
1014
|
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>]
|
|
1015
|
+
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
1016
|
}>, Schema.Struct<{
|
|
1006
1017
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1007
1018
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|