apps 0.0.1-beta.54 → 0.0.1-beta.55

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.
Files changed (38) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-X5U5KIWQ.js → chunk-47F7VXST.js} +1 -1
  3. package/js/{chunk-PO5NPRFT.js → chunk-BTSIG4NQ.js} +4 -4
  4. package/js/{chunk-D45JTD6N.js → chunk-JK5S2N2S.js} +2 -2
  5. package/js/{chunk-QKHTRD6G.js → chunk-L4K2K22P.js} +2 -2
  6. package/js/{chunk-GDYPM7RS.js → chunk-PXXZ6ABC.js} +2 -2
  7. package/js/{chunk-SVHI6AKV.js → chunk-QEBRH5AP.js} +2 -2
  8. package/js/{chunk-JY56GVSV.js → chunk-TLWLJ7PD.js} +1076 -224
  9. package/js/{chunk-YQD2MLFY.js → chunk-XCSG7FT7.js} +2 -2
  10. package/js/contracts.js +3 -3
  11. package/js/effect.js +5 -5
  12. package/js/graphql.js +6 -6
  13. package/js/host.js +5 -5
  14. package/js/index.js +3 -3
  15. package/js/mcp/effect.js +7 -7
  16. package/js/mcp/stdio.js +7 -7
  17. package/js/mcp.js +8 -8
  18. package/js/openapi.js +4 -4
  19. package/package.json +1 -1
  20. package/runtime.json +1 -1
  21. package/types/apps/src/contracts/host.d.ts +9 -9
  22. package/types/apps/src/contracts/protocol-version.d.ts +1 -1
  23. package/types/apps/src/contracts/protocols/1.d.ts +486 -9
  24. package/types/apps/src/contracts/protocols/10.d.ts +6 -6
  25. package/types/apps/src/contracts/protocols/2.d.ts +5 -4
  26. package/types/apps/src/contracts/protocols/3.d.ts +69 -8
  27. package/types/apps/src/contracts/protocols/4.d.ts +18 -9
  28. package/types/apps/src/contracts/protocols/5.d.ts +31 -5
  29. package/types/apps/src/contracts/protocols/6.d.ts +14 -5
  30. package/types/apps/src/contracts/protocols/7.d.ts +6 -5
  31. package/types/apps/src/contracts/protocols/8.d.ts +61 -9
  32. package/types/apps/src/contracts/protocols/9.d.ts +7 -9
  33. package/types/apps/src/contracts/protocols/current.d.ts +2476 -0
  34. package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
  35. package/types/apps/src/contracts/protocols/oauth.d.ts +46 -1
  36. package/types/apps/src/implementation/router-catalog.d.ts +2 -2
  37. package/types/apps/src/implementation/webhooks.d.ts +1 -1
  38. package/types/apps/src/contracts/protocols/11.d.ts +0 -1098
@@ -4,7 +4,8 @@
4
4
  *
5
5
  * Every other message is protocol 1's, re-exported unchanged. Once released this protocol is
6
6
  * frozen like protocol 1: `bun run check` compares `protocol2` with `packages/apps/protocols/2.json`.
7
- * Define the next protocol to change it. See notes/apps-publishing.md.
7
+ * The module imports only `effect` and earlier protocol modules, so no change elsewhere can alter
8
+ * it. Define the next protocol to change it. See notes/apps-publishing.md.
8
9
  */
9
10
  import { Schema } from "effect";
10
11
  export * from "./1.js";
@@ -425,7 +426,7 @@ export declare const protocol2: {
425
426
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
426
427
  }>, Schema.Struct<{
427
428
  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("./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
+ readonly error: Schema.Union<readonly [typeof import("./1.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("./1.js").ElicitationFailed]>;
429
430
  }>]>;
430
431
  readonly requirements: Schema.Struct<{
431
432
  readonly capabilities: Schema.optionalKey<Schema.Struct<{
@@ -599,7 +600,7 @@ export declare const protocol2: {
599
600
  }>]>;
600
601
  }>, Schema.Struct<{
601
602
  readonly ok: Schema.Literal<false>;
602
- readonly error: typeof import("../elicitation.js").ElicitationFailed;
603
+ readonly error: typeof import("./1.js").ElicitationFailed;
603
604
  }>]>;
604
605
  readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
605
606
  readonly operation: Schema.Literal<"do">;
@@ -704,7 +705,7 @@ export declare const protocol2: {
704
705
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
705
706
  }>, Schema.Struct<{
706
707
  readonly ok: Schema.Literal<false>;
707
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
708
+ readonly error: typeof import("./1.js").CacheError;
708
709
  }>]>;
709
710
  };
710
711
  };
@@ -5,17 +5,78 @@
5
5
  * database budget, and declarations with a reserved database field, fail with their named error.
6
6
  *
7
7
  * This protocol is released and frozen once merged. `bun run check` compares `protocol3` with
8
- * `packages/apps/protocols/3.json`. Do not edit this file or the schemas it reaches to change the
9
- * wire format; define the next protocol instead. See notes/apps-publishing.md.
8
+ * `packages/apps/protocols/3.json`. The module imports only `effect` and earlier protocol modules,
9
+ * so no change elsewhere can alter it; define the next protocol to change the wire format.
10
+ * See notes/apps-publishing.md.
10
11
  */
11
12
  import { Schema } from "effect";
12
- import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../../app-data/src/contracts/database.js";
13
- import { OpenapiResponseError } from "../api-response-error.js";
14
- import { ElicitationFailed } from "../elicitation.js";
15
- import { WorkflowFailure } from "../workflows.js";
16
- import { HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, ProviderError, SkillLoadFailed } from "./1.js";
13
+ import { ElicitationFailed, HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, OpenapiResponseError, ProviderError, SkillLoadFailed } from "./1.js";
17
14
  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";
18
15
  export { SkillSources, SkillCatalogResponse } from "./2.js";
16
+ /** Longest failure message carried across the runtime boundary. */
17
+ export declare const maxFailureMessageLength = 2048;
18
+ /**
19
+ * `app` for errors thrown by authored code, `storage` for app data failures the host raised, and
20
+ * `service` for an external API the app called through a framework helper.
21
+ */
22
+ export declare const FailureSource: Schema.Literals<readonly ["app", "storage", "service"]>;
23
+ /** The thrown error's name, such as `TypeError`, or the host error's tag. */
24
+ export declare const FailureName: Schema.String;
25
+ /** A stable host failure code, such as an app data reason, or the thrown error's own `code`. */
26
+ export declare const FailureCode: Schema.String;
27
+ /** Bounded, with the invocation's account secrets replaced. */
28
+ export declare const FailureMessage: Schema.String;
29
+ /**
30
+ * Where and why a run failed: the failing step and the error the app's own code raised, its
31
+ * message bounded and with account secrets replaced. Runs from before these fields existed have none.
32
+ */
33
+ export declare const WorkflowFailureDetail: {
34
+ step: Schema.optionalKey<Schema.String>;
35
+ errorName: Schema.optionalKey<Schema.String>;
36
+ message: Schema.optionalKey<Schema.String>;
37
+ };
38
+ declare const WorkflowFailure_base: Schema.Class<WorkflowFailure, Schema.TaggedStruct<"WorkflowFailure", {
39
+ readonly reason: Schema.Literals<readonly ["unavailable", "not_found", "input", "output", "operation", "approval", "credentials", "terminated", "execution", "conflict", "engine"]>;
40
+ readonly retryable: Schema.Boolean;
41
+ readonly step: Schema.optionalKey<Schema.String>;
42
+ readonly errorName: Schema.optionalKey<Schema.String>;
43
+ readonly message: Schema.optionalKey<Schema.String>;
44
+ }>, import("effect/Cause").YieldableError>;
45
+ /** Failures cross host boundaries as reason codes plus the app's own bounded error detail. */
46
+ export declare class WorkflowFailure extends WorkflowFailure_base {
47
+ }
48
+ /** Protocol 3's workflow step reply, carrying the failing step and app error. */
49
+ export declare const WorkflowRpcResult: Schema.Union<readonly [Schema.Struct<{
50
+ readonly ok: Schema.Literal<true>;
51
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
52
+ }>, Schema.Struct<{
53
+ readonly ok: Schema.Literal<false>;
54
+ readonly error: typeof WorkflowFailure;
55
+ }>]>;
56
+ export type WorkflowRpcResult = typeof WorkflowRpcResult.Type;
57
+ /**
58
+ * The budget a query or mutation exhausted. `pageSize` bounds one take(n) or paginate call;
59
+ * `valueBytes` bounds one stored row; the rest accumulate across the whole invocation.
60
+ */
61
+ export declare const DatabaseLimit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
62
+ export type DatabaseLimit = typeof DatabaseLimit.Type;
63
+ declare const DatabaseLimitExceeded_base: Schema.Class<DatabaseLimitExceeded, Schema.TaggedStruct<"DatabaseLimitExceeded", {
64
+ readonly limit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
65
+ readonly maximum: Schema.Int;
66
+ readonly requested: Schema.Int;
67
+ }>, import("effect/Cause").YieldableError>;
68
+ /** A query or mutation exceeded one of its database budgets. Nothing it wrote is committed. */
69
+ export declare class DatabaseLimitExceeded extends DatabaseLimitExceeded_base {
70
+ }
71
+ /** Host-owned row metadata that authored tables cannot declare. */
72
+ export declare const reservedFieldNames: readonly ["id", "createdAt", "updatedAt"];
73
+ declare const DatabaseFieldReserved_base: Schema.Class<DatabaseFieldReserved, Schema.TaggedStruct<"DatabaseFieldReserved", {
74
+ readonly table: Schema.String;
75
+ readonly field: Schema.Literals<readonly ["id", "createdAt", "updatedAt"]>;
76
+ }>, import("effect/Cause").YieldableError>;
77
+ /** A table declared a field the host adds to every row. */
78
+ export declare class DatabaseFieldReserved extends DatabaseFieldReserved_base {
79
+ }
19
80
  declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {
20
81
  source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
21
82
  errorName: Schema.optionalKey<Schema.String>;
@@ -709,7 +770,7 @@ export declare const protocol3: {
709
770
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
710
771
  }>, Schema.Struct<{
711
772
  readonly ok: Schema.Literal<false>;
712
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
773
+ readonly error: typeof import("./1.js").CacheError;
713
774
  }>]>;
714
775
  };
715
776
  };
@@ -2,15 +2,24 @@
2
2
  * Host protocol 4: protocol 3 plus call kinds and routers. `call` carries the caller's `kind`, and
3
3
  * a bundle refuses a call whose tool has the other kind with `HostKindMismatch`. Inspection
4
4
  * answers with a catalog of tools and the routers that group them, instead of a list of tools.
5
- * Messages it does not change are protocol 3's, imported from its frozen module.
5
+ * Messages it does not change are protocol 3's, taken from its frozen module.
6
6
  *
7
7
  * Once released, this protocol is frozen like the earlier ones: `bun run check` compares
8
- * `protocol4` with `packages/apps/protocols/4.json`. See notes/apps-publishing.md.
8
+ * `protocol4` with `packages/apps/protocols/4.json`. The module imports only `effect` and earlier
9
+ * protocol modules, so no change elsewhere can alter it. See notes/apps-publishing.md.
9
10
  */
10
11
  import { Schema } from "effect";
11
- import { HostDeclarationInvalid, HostEvaluationFailed } from "./3.js";
12
12
  import { McpError, ProviderError, SkillLoadFailed } from "./1.js";
13
+ import { HostDeclarationInvalid, HostEvaluationFailed } from "./3.js";
13
14
  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
+ /** An image a client may show beside a router, such as an MCP server's own icon. Models never read it. */
16
+ export declare const RouterIcon: Schema.Struct<{
17
+ readonly src: Schema.NonEmptyString;
18
+ readonly mimeType: Schema.optionalKey<Schema.String>;
19
+ readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
20
+ readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
21
+ }>;
22
+ export type RouterIcon = typeof RouterIcon.Type;
14
23
  /**
15
24
  * Serializable live tool metadata; executable callbacks never cross this boundary. `name` is the
16
25
  * tool's full dotted path. `router` is the path of the router that owns it, omitted at the root.
@@ -313,7 +322,7 @@ export declare class HostKindMismatch extends HostKindMismatch_base {
313
322
  * Safe error envelope. Author failures carry only their name and bounded message with account
314
323
  * secrets replaced; no source, account fields, stack or cause value is serialized.
315
324
  */
316
- export declare const HostError: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("../../../../app-data/src/contracts/database.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/contracts/database.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 HostKindMismatch]>;
325
+ export declare const HostError: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("./3.js").DatabaseLimitExceeded, typeof import("./3.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("./1.js").ElicitationFailed, typeof HostKindMismatch]>;
317
326
  /** Expected host failures. */
318
327
  export type HostError = typeof HostError.Type;
319
328
  /** Portable response envelope; callers parse the success value for their operation. */
@@ -323,7 +332,7 @@ export declare const HostResponse: Schema.Union<readonly [Schema.Struct<{
323
332
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
324
333
  }>, Schema.Struct<{
325
334
  readonly ok: Schema.Literal<false>;
326
- readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("../../../../app-data/src/contracts/database.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/contracts/database.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 HostKindMismatch]>;
335
+ readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("./3.js").DatabaseLimitExceeded, typeof import("./3.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("./1.js").ElicitationFailed, typeof HostKindMismatch]>;
327
336
  }>]>;
328
337
  /** Parsed response envelope. */
329
338
  export type HostResponse = typeof HostResponse.Type;
@@ -949,7 +958,7 @@ export declare const protocol4: {
949
958
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
950
959
  }>, Schema.Struct<{
951
960
  readonly ok: Schema.Literal<false>;
952
- readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("../../../../app-data/src/contracts/database.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/contracts/database.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 HostKindMismatch]>;
961
+ readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("./3.js").DatabaseLimitExceeded, typeof import("./3.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("./1.js").ElicitationFailed, typeof HostKindMismatch]>;
953
962
  }>]>;
954
963
  readonly requirements: Schema.Struct<{
955
964
  readonly capabilities: Schema.optionalKey<Schema.Struct<{
@@ -1186,7 +1195,7 @@ export declare const protocol4: {
1186
1195
  }>]>;
1187
1196
  }>, Schema.Struct<{
1188
1197
  readonly ok: Schema.Literal<false>;
1189
- readonly error: typeof import("../elicitation.js").ElicitationFailed;
1198
+ readonly error: typeof import("./1.js").ElicitationFailed;
1190
1199
  }>]>;
1191
1200
  readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
1192
1201
  readonly operation: Schema.Literal<"do">;
@@ -1222,7 +1231,7 @@ export declare const protocol4: {
1222
1231
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1223
1232
  }>, Schema.Struct<{
1224
1233
  readonly ok: Schema.Literal<false>;
1225
- readonly error: typeof import("../workflows.js").WorkflowFailure;
1234
+ readonly error: typeof import("./3.js").WorkflowFailure;
1226
1235
  }>]>;
1227
1236
  readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
1228
1237
  readonly operation: Schema.Literal<"start">;
@@ -1291,7 +1300,7 @@ export declare const protocol4: {
1291
1300
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1292
1301
  }>, Schema.Struct<{
1293
1302
  readonly ok: Schema.Literal<false>;
1294
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
1303
+ readonly error: typeof import("./1.js").CacheError;
1295
1304
  }>]>;
1296
1305
  };
1297
1306
  };
@@ -6,11 +6,37 @@
6
6
  * unchanged.
7
7
  *
8
8
  * Once released this protocol is frozen like the earlier ones: `bun run check` compares `protocol5` with
9
- * `packages/apps/protocols/5.json`. Define the next protocol instead of editing this file.
9
+ * `packages/apps/protocols/5.json`. The module imports only `effect` and earlier protocol modules,
10
+ * so no change elsewhere can alter it. Define the next protocol instead of editing this file.
10
11
  * See notes/apps-publishing.md.
11
12
  */
12
13
  import { Schema } from "effect";
13
14
  export * from "./4.js";
15
+ /**
16
+ * Upstream identity that a passing account check may report for display. Only these fields are
17
+ * retained; the host never stores raw provider responses.
18
+ */
19
+ export declare const AccountInfo: Schema.Struct<{
20
+ readonly externalId: Schema.optionalKey<Schema.String>;
21
+ readonly displayName: Schema.optionalKey<Schema.String>;
22
+ readonly username: Schema.optionalKey<Schema.String>;
23
+ readonly email: Schema.optionalKey<Schema.String>;
24
+ readonly avatarUrl: Schema.optionalKey<Schema.String>;
25
+ readonly profileUrl: Schema.optionalKey<Schema.String>;
26
+ }>;
27
+ export type AccountInfo = typeof AccountInfo.Type;
28
+ /** A passing account check. Failures are thrown, so there is no failing variant. */
29
+ export declare const AccountCheckResult: Schema.Struct<{
30
+ readonly accountInfo: Schema.optionalKey<Schema.Struct<{
31
+ readonly externalId: Schema.optionalKey<Schema.String>;
32
+ readonly displayName: Schema.optionalKey<Schema.String>;
33
+ readonly username: Schema.optionalKey<Schema.String>;
34
+ readonly email: Schema.optionalKey<Schema.String>;
35
+ readonly avatarUrl: Schema.optionalKey<Schema.String>;
36
+ readonly profileUrl: Schema.optionalKey<Schema.String>;
37
+ }>>;
38
+ }>;
39
+ export type AccountCheckResult = typeof AccountCheckResult.Type;
14
40
  /** Account slots available without binding accounts or evaluating the app factory. */
15
41
  export declare const DeclaredRequirements: Schema.Struct<{
16
42
  /** Protocol support of this retained framework build, not an author-declared requirement. */
@@ -918,7 +944,7 @@ export declare const protocol5: {
918
944
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
919
945
  }>, Schema.Struct<{
920
946
  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("./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/contracts/database.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/contracts/database.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]>;
947
+ readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.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("./3.js").DatabaseLimitExceeded, typeof import("./3.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("./1.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
922
948
  }>]>;
923
949
  readonly catalog: Schema.Struct<{
924
950
  readonly tools: Schema.$Array<Schema.Struct<{
@@ -1063,7 +1089,7 @@ export declare const protocol5: {
1063
1089
  }>]>;
1064
1090
  }>, Schema.Struct<{
1065
1091
  readonly ok: Schema.Literal<false>;
1066
- readonly error: typeof import("../elicitation.js").ElicitationFailed;
1092
+ readonly error: typeof import("./1.js").ElicitationFailed;
1067
1093
  }>]>;
1068
1094
  readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
1069
1095
  readonly operation: Schema.Literal<"do">;
@@ -1099,7 +1125,7 @@ export declare const protocol5: {
1099
1125
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1100
1126
  }>, Schema.Struct<{
1101
1127
  readonly ok: Schema.Literal<false>;
1102
- readonly error: typeof import("../workflows.js").WorkflowFailure;
1128
+ readonly error: typeof import("./3.js").WorkflowFailure;
1103
1129
  }>]>;
1104
1130
  readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
1105
1131
  readonly operation: Schema.Literal<"start">;
@@ -1168,7 +1194,7 @@ export declare const protocol5: {
1168
1194
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1169
1195
  }>, Schema.Struct<{
1170
1196
  readonly ok: Schema.Literal<false>;
1171
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
1197
+ readonly error: typeof import("./1.js").CacheError;
1172
1198
  }>]>;
1173
1199
  };
1174
1200
  };
@@ -1,4 +1,13 @@
1
- /** Host protocol 6 adds an explicit authorization-server metadata URL to OAuth discovery. */
1
+ /**
2
+ * Host protocol 6: protocol 5 plus an explicit authorization-server metadata URL on OAuth
3
+ * discovery, in both requirements and resolved account bindings. Every other message is protocol
4
+ * 5's, re-exported unchanged.
5
+ *
6
+ * Once released this protocol is frozen like the earlier ones: `bun run check` compares `protocol6`
7
+ * with `packages/apps/protocols/6.json`. The module imports only `effect` and earlier protocol
8
+ * modules, so no change elsewhere can alter it. Define the next protocol instead of editing this
9
+ * file. See notes/apps-publishing.md.
10
+ */
2
11
  import { Schema } from "effect";
3
12
  export * from "./5.js";
4
13
  /** Serializable authentication declarations interpreted by the trusted host. */
@@ -1364,7 +1373,7 @@ export declare const protocol6: {
1364
1373
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
1365
1374
  }>, Schema.Struct<{
1366
1375
  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("./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/contracts/database.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/contracts/database.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]>;
1376
+ readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.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("./3.js").DatabaseLimitExceeded, typeof import("./3.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("./1.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
1368
1377
  }>]>;
1369
1378
  readonly catalog: Schema.Struct<{
1370
1379
  readonly tools: Schema.$Array<Schema.Struct<{
@@ -1509,7 +1518,7 @@ export declare const protocol6: {
1509
1518
  }>]>;
1510
1519
  }>, Schema.Struct<{
1511
1520
  readonly ok: Schema.Literal<false>;
1512
- readonly error: typeof import("../elicitation.js").ElicitationFailed;
1521
+ readonly error: typeof import("./1.js").ElicitationFailed;
1513
1522
  }>]>;
1514
1523
  readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
1515
1524
  readonly operation: Schema.Literal<"do">;
@@ -1545,7 +1554,7 @@ export declare const protocol6: {
1545
1554
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1546
1555
  }>, Schema.Struct<{
1547
1556
  readonly ok: Schema.Literal<false>;
1548
- readonly error: typeof import("../workflows.js").WorkflowFailure;
1557
+ readonly error: typeof import("./3.js").WorkflowFailure;
1549
1558
  }>]>;
1550
1559
  readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
1551
1560
  readonly operation: Schema.Literal<"start">;
@@ -1614,7 +1623,7 @@ export declare const protocol6: {
1614
1623
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1615
1624
  }>, Schema.Struct<{
1616
1625
  readonly ok: Schema.Literal<false>;
1617
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
1626
+ readonly error: typeof import("./1.js").CacheError;
1618
1627
  }>]>;
1619
1628
  };
1620
1629
  };
@@ -10,7 +10,8 @@
10
10
  * message is protocol 6's, re-exported unchanged.
11
11
  *
12
12
  * Once released this protocol is frozen like the earlier ones: `bun run check` compares `protocol7` with
13
- * `packages/apps/protocols/7.json`. Define the next protocol instead of editing this file.
13
+ * `packages/apps/protocols/7.json`. The module imports only `effect` and earlier protocol modules,
14
+ * so no change elsewhere can alter it. Define the next protocol instead of editing this file.
14
15
  * See notes/apps-publishing.md.
15
16
  */
16
17
  import { Schema } from "effect";
@@ -1528,7 +1529,7 @@ export declare const protocol7: {
1528
1529
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
1529
1530
  }>, Schema.Struct<{
1530
1531
  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("./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/contracts/database.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/contracts/database.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
+ readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.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("./3.js").DatabaseLimitExceeded, typeof import("./3.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("./1.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
1532
1533
  }>]>;
1533
1534
  readonly catalog: Schema.Struct<{
1534
1535
  readonly tools: Schema.$Array<Schema.Struct<{
@@ -1673,7 +1674,7 @@ export declare const protocol7: {
1673
1674
  }>]>;
1674
1675
  }>, Schema.Struct<{
1675
1676
  readonly ok: Schema.Literal<false>;
1676
- readonly error: typeof import("../elicitation.js").ElicitationFailed;
1677
+ readonly error: typeof import("./1.js").ElicitationFailed;
1677
1678
  }>]>;
1678
1679
  readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
1679
1680
  readonly operation: Schema.Literal<"do">;
@@ -1709,7 +1710,7 @@ export declare const protocol7: {
1709
1710
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1710
1711
  }>, Schema.Struct<{
1711
1712
  readonly ok: Schema.Literal<false>;
1712
- readonly error: typeof import("../workflows.js").WorkflowFailure;
1713
+ readonly error: typeof import("./3.js").WorkflowFailure;
1713
1714
  }>]>;
1714
1715
  readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
1715
1716
  readonly operation: Schema.Literal<"start">;
@@ -1778,7 +1779,7 @@ export declare const protocol7: {
1778
1779
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1779
1780
  }>, Schema.Struct<{
1780
1781
  readonly ok: Schema.Literal<false>;
1781
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
1782
+ readonly error: typeof import("./1.js").CacheError;
1782
1783
  }>]>;
1783
1784
  };
1784
1785
  };
@@ -9,18 +9,70 @@
9
9
  * protocol 7's, re-exported unchanged.
10
10
  *
11
11
  * Once released this protocol is frozen like the earlier ones: `bun run check` compares `protocol8`
12
- * with `packages/apps/protocols/8.json`. Define the next protocol instead of editing this file.
13
- * See notes/apps-publishing.md.
12
+ * with `packages/apps/protocols/8.json`. The module imports only `effect` and earlier protocol
13
+ * modules, so no change elsewhere can alter it. Define the next protocol instead of editing this
14
+ * file. See notes/apps-publishing.md.
14
15
  */
15
16
  import { Schema } from "effect";
16
- import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../../app-data/src/contracts/database.js";
17
- import { OpenapiResponseError } from "../api-response-error.js";
18
- import { ElicitationFailed } from "../elicitation.js";
19
- import { ProviderError } from "../provider-error.js";
20
- import { WorkflowFailure } from "../workflows.js";
17
+ import { ElicitationFailed, OpenapiResponseError, SkillLoadFailed } from "./1.js";
18
+ import { DatabaseFieldReserved, DatabaseLimitExceeded, WorkflowFailure } from "./3.js";
21
19
  import { HostAccountsInvalid, HostInputInvalid, HostKindMismatch, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed } from "./7.js";
22
- import { SkillLoadFailed } from "./1.js";
23
20
  export * from "./7.js";
21
+ /** Most fields of one thrown error carried across the runtime boundary. */
22
+ export declare const maxFailureFields = 8;
23
+ /** Longest text field value carried across the runtime boundary. */
24
+ export declare const maxFailureFieldLength = 256;
25
+ /** A field name as the error's code spells it, such as `reason` or `pointer`. */
26
+ export declare const FailureFieldName: Schema.String;
27
+ /** Bounded text with account secrets replaced, a finite number, or a boolean. */
28
+ export declare const FailureFieldValue: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
29
+ /**
30
+ * The thrown error's own scalar fields beside its name, code and message, such as the `reason`
31
+ * and `pointer` a spec compiler sets. Nested values, stacks and causes are never carried.
32
+ */
33
+ export declare const FailureFields: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
34
+ export type FailureFields = typeof FailureFields.Type;
35
+ /**
36
+ * The error an app's own code raised, or the specific host failure it hit. Stacks and cause
37
+ * values stay private. Builds from before these fields existed send none.
38
+ */
39
+ export declare const FailureDetail: {
40
+ source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
41
+ errorName: Schema.optionalKey<Schema.String>;
42
+ code: Schema.optionalKey<Schema.String>;
43
+ message: Schema.optionalKey<Schema.String>;
44
+ fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>>;
45
+ };
46
+ /** Longest error message a service stated, as carried across the runtime boundary. */
47
+ export declare const maxUpstreamMessageLength = 1024;
48
+ /**
49
+ * The error a service stated in its own response: a JSON-RPC error's code and message, or an
50
+ * OAuth Bearer error code and description. Bounded, with the invocation's account secrets replaced.
51
+ */
52
+ export declare const UpstreamError: Schema.Struct<{
53
+ readonly code: Schema.Union<readonly [Schema.Int, Schema.String]>;
54
+ readonly message: Schema.optionalKey<Schema.String>;
55
+ }>;
56
+ export type UpstreamError = typeof UpstreamError.Type;
57
+ /** Where a service failed: setting up a session, listing tools, or running one. */
58
+ export declare const FailurePhase: Schema.Literals<readonly ["connect", "discover", "call"]>;
59
+ export type FailurePhase = typeof FailurePhase.Type;
60
+ declare const ProviderError_base: Schema.Class<ProviderError, Schema.TaggedStruct<"ProviderError", {
61
+ readonly reason: Schema.Literals<readonly ["unauthorized", "forbidden", "rate_limited", "unavailable", "rejected"]>;
62
+ readonly status: Schema.optional<Schema.Int>;
63
+ readonly accountId: Schema.optional<Schema.brand<Schema.String, "acc">>;
64
+ readonly phase: Schema.optional<Schema.Literals<readonly ["connect", "discover", "call"]>>;
65
+ readonly upstream: Schema.optional<Schema.Struct<{
66
+ readonly code: Schema.Union<readonly [Schema.Int, Schema.String]>;
67
+ readonly message: Schema.optionalKey<Schema.String>;
68
+ }>>;
69
+ }>, import("effect/Cause").YieldableError>;
70
+ /**
71
+ * Protocol 8's provider failure, as released: protocol 1's with the phase the failure happened in
72
+ * and the error code and description the service stated. Account secrets in that text are replaced.
73
+ */
74
+ export declare class ProviderError extends ProviderError_base {
75
+ }
24
76
  declare const McpError_base: Schema.Class<McpError, Schema.TaggedStruct<"McpError", {
25
77
  readonly phase: Schema.Literals<readonly ["connect", "discover", "call", "schema", "transport"]>;
26
78
  readonly reason: Schema.Literals<readonly ["request", "unauthorized", "invalid_response", "timeout", "invalid_input"]>;
@@ -1124,7 +1176,7 @@ export declare const protocol8: {
1124
1176
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1125
1177
  }>, Schema.Struct<{
1126
1178
  readonly ok: Schema.Literal<false>;
1127
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
1179
+ readonly error: typeof import("./1.js").CacheError;
1128
1180
  }>]>;
1129
1181
  };
1130
1182
  };
@@ -9,16 +9,14 @@
9
9
  * is protocol 8's, re-exported unchanged.
10
10
  *
11
11
  * Once released this protocol is frozen like the earlier ones: `bun run check` compares `protocol9`
12
- * with `packages/apps/protocols/9.json`. Define the next protocol instead of editing this file.
13
- * See notes/apps-publishing.md.
12
+ * with `packages/apps/protocols/9.json`. The module imports only `effect` and earlier protocol
13
+ * modules, so no change elsewhere can alter it. Define the next protocol instead of editing this
14
+ * file. See notes/apps-publishing.md.
14
15
  */
15
16
  import { Schema } from "effect";
16
- import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../../app-data/src/contracts/database.js";
17
- import { OpenapiResponseError } from "../api-response-error.js";
18
- import { ElicitationFailed } from "../elicitation.js";
19
- import { ProviderError } from "../provider-error.js";
20
- import { WorkflowFailure } from "../workflows.js";
21
- import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostKindMismatch, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed } from "./8.js";
17
+ import { ElicitationFailed, OpenapiResponseError } from "./1.js";
18
+ import { DatabaseFieldReserved, DatabaseLimitExceeded, WorkflowFailure } from "./3.js";
19
+ import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostKindMismatch, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, ProviderError } from "./8.js";
22
20
  export * from "./8.js";
23
21
  declare const McpError_base: Schema.Class<McpError, Schema.TaggedStruct<"McpError", {
24
22
  readonly phase: Schema.Literals<readonly ["connect", "discover", "call", "schema", "transport"]>;
@@ -1100,7 +1098,7 @@ export declare const protocol9: {
1100
1098
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1101
1099
  }>, Schema.Struct<{
1102
1100
  readonly ok: Schema.Literal<false>;
1103
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
1101
+ readonly error: typeof import("./1.js").CacheError;
1104
1102
  }>]>;
1105
1103
  };
1106
1104
  };