apps 0.0.1-beta.35 → 0.0.1-beta.37
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-KZFV3WCJ.js → chunk-24EIFQYZ.js} +377 -50
- package/js/chunk-2FWXCU5I.js +16 -0
- package/js/{chunk-YYK6GEMC.js → chunk-3LRFKLUX.js} +24 -17
- package/js/{chunk-VBVOPW4U.js → chunk-7KEKFBV7.js} +1 -1
- package/js/{chunk-FFTALB6S.js → chunk-BWUHMKHQ.js} +1 -1
- package/js/{chunk-KBXQOJYW.js → chunk-CAOHGMNW.js} +2 -2
- package/js/{chunk-SRB2WDU7.js → chunk-D45FU4TZ.js} +1 -1
- package/js/{chunk-UWOIEJ56.js → chunk-GHDZEEPO.js} +26 -31
- package/js/{chunk-I7CNZ4CM.js → chunk-KEZ4YZSP.js} +18 -4
- package/js/{chunk-5KNA2Z5I.js → chunk-LQBR7AI7.js} +294 -164
- package/js/{chunk-LUROQKFP.js → chunk-QQKHJ72Y.js} +18 -10
- package/js/{chunk-IA3VSGR4.js → chunk-U74JVKTQ.js} +3 -3
- package/js/{chunk-5CQMUXW7.js → chunk-UCOMVHGW.js} +2 -2
- package/js/client.js +2 -1
- package/js/contracts.js +7 -4
- package/js/effect.js +10 -9
- package/js/graphql.js +11 -10
- package/js/host.js +10 -9
- package/js/index.js +5 -4
- package/js/mcp/effect.js +12 -11
- package/js/mcp/stdio.js +12 -11
- package/js/mcp.js +13 -12
- package/js/openapi.js +9 -8
- package/js/skills/effect.js +3 -2
- package/js/skills.js +47 -33
- package/js/ui/serving.js +2 -1
- package/package.json +1 -1
- package/runtime.json +1 -1
- 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 +8 -1
- package/types/apps/src/contracts/protocols/2.d.ts +1 -1
- package/types/apps/src/contracts/protocols/3.d.ts +1 -2
- package/types/apps/src/contracts/protocols/4.d.ts +1 -2
- package/types/apps/src/contracts/protocols/5.d.ts +3 -3
- package/types/apps/src/contracts/protocols/6.d.ts +3 -3
- package/types/apps/src/contracts/protocols/7.d.ts +3 -3
- package/types/apps/src/contracts/protocols/8.d.ts +13 -2
- 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/workflows.d.ts +6 -0
- package/types/apps/src/implementation/failure-detail.d.ts +4 -3
- 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/openapi-compile.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/skills.d.ts +2 -1
- package/types/telemetry/src/app-records.d.ts +42 -0
- package/types/telemetry/src/recorded-failure.d.ts +20 -0
- package/types/utils/src/api-error.d.ts +5 -0
- package/types/utils/src/recorded-message.d.ts +15 -0
|
@@ -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;
|
|
@@ -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<{
|
|
@@ -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", {
|
|
@@ -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
|
|
@@ -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<{
|
|
@@ -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<{
|
|
@@ -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<{
|
|
@@ -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>;
|