apps 0.0.1-beta.4 → 0.0.1-beta.5

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 (67) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-SATWJKN6.js → chunk-27F7W2LG.js} +1 -1
  3. package/js/{chunk-PYUYJRSK.js → chunk-3XKZDQLM.js} +2 -2
  4. package/js/chunk-4M277YTM.js +136 -0
  5. package/js/{chunk-HDJH3RPR.js → chunk-57RKNWL2.js} +2 -2
  6. package/js/{chunk-EQB7JMAL.js → chunk-67EVWIGJ.js} +8 -8
  7. package/js/{chunk-DHUDODG5.js → chunk-C3VAOK5B.js} +11 -9
  8. package/js/{chunk-FW5HBOIK.js → chunk-CDL5PM2Q.js} +307 -169
  9. package/js/{chunk-D47C7KG5.js → chunk-CYYBFC2K.js} +2 -2
  10. package/js/{chunk-3M2MEDNL.js → chunk-DQAZTA4I.js} +145 -20
  11. package/js/{chunk-WFSQXYUT.js → chunk-FWQC6I3C.js} +2 -2
  12. package/js/{chunk-ZJWDMTE3.js → chunk-G7T27IWB.js} +3 -3
  13. package/js/{chunk-G7ZIRKMK.js → chunk-IJX4CYZO.js} +3 -3
  14. package/js/{chunk-FDNTX5QJ.js → chunk-IPI4MFSN.js} +2 -2
  15. package/js/{chunk-YEJOQEII.js → chunk-JU7VHODU.js} +1 -1
  16. package/js/{chunk-NQ3OMCA5.js → chunk-KUMBKVJD.js} +2 -2
  17. package/js/{chunk-6VRYO2BG.js → chunk-LUVSFETN.js} +235 -58
  18. package/js/{chunk-EVJUVWN2.js → chunk-M3B3DE4K.js} +2 -2
  19. package/js/{chunk-BMOIAIVR.js → chunk-N7YDVXYJ.js} +49 -1
  20. package/js/{chunk-M6ZRRIBI.js → chunk-PJJ24GU7.js} +1 -1
  21. package/js/{chunk-FZJOYIZO.js → chunk-PZB6T6KU.js} +1 -1
  22. package/js/{chunk-ZCAMUXSG.js → chunk-RJDDBDSN.js} +3 -3
  23. package/js/{chunk-W7D7WVSY.js → chunk-SB3V4YVR.js} +2 -2
  24. package/js/{chunk-Z5NMEGJN.js → chunk-TDNYXSIX.js} +1 -1
  25. package/js/{chunk-2VPJHFOU.js → chunk-UDDE5KOR.js} +6 -6
  26. package/js/{chunk-QKHR7BMF.js → chunk-UK573G7W.js} +1 -1
  27. package/js/{chunk-T2LAZCAD.js → chunk-VFZKSM3T.js} +1 -1
  28. package/js/{chunk-SWPD52J7.js → chunk-W4DMKWAB.js} +1 -1
  29. package/js/{chunk-5MQZEB6Y.js → chunk-XHO2ZX6W.js} +4 -4
  30. package/js/{chunk-LGIYBDWA.js → chunk-YEPYT6SD.js} +1 -1
  31. package/js/{chunk-PLCMJREA.js → chunk-ZQINWV4W.js} +60 -20
  32. package/js/client.js +10 -10
  33. package/js/contracts.js +32 -9
  34. package/js/effect.js +21 -20
  35. package/js/graphql.js +23 -22
  36. package/js/host.js +21 -20
  37. package/js/index.js +14 -14
  38. package/js/mcp/effect.js +23 -22
  39. package/js/mcp/stdio.js +23 -22
  40. package/js/mcp.js +25 -24
  41. package/js/openapi.js +23 -123
  42. package/js/react.js +3 -3
  43. package/js/skills/effect.js +3 -3
  44. package/js/skills.js +12 -12
  45. package/js/storage/facet.js +4 -4
  46. package/js/ui/auth/contracts.js +2 -2
  47. package/js/ui/auth.js +5 -5
  48. package/js/ui/contracts.js +4 -4
  49. package/js/ui/serving.js +8 -8
  50. package/package.json +1 -1
  51. package/runtime.json +1 -1
  52. package/types/app-data/src/contracts/database.d.ts +33 -6
  53. package/types/app-data/src/implementation/schema.d.ts +2 -17
  54. package/types/apps/src/contracts/failure.d.ts +25 -0
  55. package/types/apps/src/contracts/host.d.ts +11 -6
  56. package/types/apps/src/contracts/openapi.d.ts +1 -1
  57. package/types/apps/src/contracts/protocol-version.d.ts +2 -2
  58. package/types/apps/src/contracts/protocols/1.d.ts +15 -1
  59. package/types/apps/src/contracts/protocols/2.d.ts +2 -2
  60. package/types/apps/src/contracts/protocols/3.d.ts +676 -0
  61. package/types/apps/src/contracts/storage.d.ts +3 -3
  62. package/types/apps/src/contracts/workflows.d.ts +34 -3
  63. package/types/apps/src/implementation/elicitation.d.ts +1 -1
  64. package/types/apps/src/implementation/failure-detail.d.ts +25 -0
  65. package/types/apps/src/implementation/storage.d.ts +5 -3
  66. package/types/apps/src/implementation/webhooks.d.ts +1 -1
  67. package/types/apps/src/implementation/workflow-context.d.ts +11 -3
@@ -157,6 +157,33 @@ export declare const DatabaseLimits: Schema.Struct<{
157
157
  export type DatabaseLimits = typeof DatabaseLimits.Type;
158
158
  /** Current per-invocation budgets, shared by every database adapter. */
159
159
  export declare const defaultDatabaseLimits: DatabaseLimits;
160
+ /**
161
+ * The budget a query or mutation exhausted. `pageSize` bounds one take(n) or paginate call;
162
+ * `valueBytes` bounds one stored row; the rest accumulate across the whole invocation.
163
+ */
164
+ export declare const DatabaseLimit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
165
+ export type DatabaseLimit = typeof DatabaseLimit.Type;
166
+ declare const DatabaseLimitExceeded_base: Schema.Class<DatabaseLimitExceeded, Schema.TaggedStruct<"DatabaseLimitExceeded", {
167
+ readonly limit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
168
+ readonly maximum: Schema.Int;
169
+ readonly requested: Schema.Int;
170
+ }>, import("effect/Cause").YieldableError>;
171
+ /** A query or mutation exceeded one of its database budgets. Nothing it wrote is committed. */
172
+ export declare class DatabaseLimitExceeded extends DatabaseLimitExceeded_base {
173
+ get message(): string;
174
+ }
175
+ /** Host-owned row metadata that authored tables cannot declare. */
176
+ export declare const reservedFieldNames: readonly ["id", "createdAt", "updatedAt"];
177
+ declare const DatabaseFieldReserved_base: Schema.Class<DatabaseFieldReserved, Schema.TaggedStruct<"DatabaseFieldReserved", {
178
+ readonly table: Schema.String;
179
+ readonly field: Schema.Literals<readonly ["id", "createdAt", "updatedAt"]>;
180
+ }>, import("effect/Cause").YieldableError>;
181
+ /** A table declared a field the host adds to every row. */
182
+ export declare class DatabaseFieldReserved extends DatabaseFieldReserved_base {
183
+ get message(): string;
184
+ }
185
+ /** Failures a database session reports to authored code and its host. */
186
+ export type DatabaseError = AppDatabaseError | DatabaseLimitExceeded;
160
187
  /** Host resource bounds outside an individual database transaction. Durations are milliseconds. */
161
188
  export declare const DatabaseRuntimeLimits: Schema.Struct<{
162
189
  readonly maxCursorChars: Schema.Int;
@@ -173,21 +200,21 @@ export declare const defaultDatabaseRuntimeLimits: {
173
200
  /** The host binds one database and read/write authority for the entire invocation. */
174
201
  export interface DatabaseSession {
175
202
  /** Host-only idempotency receipt, committed atomically with the mutation and validated result. */
176
- readonly once: <E, R>(key: string, fingerprint: string, work: () => Effect.Effect<Schema.Json, E, R>) => Effect.Effect<Schema.Json, E | AppDatabaseError, R>;
203
+ readonly once: <E, R>(key: string, fingerprint: string, work: () => Effect.Effect<Schema.Json, E, R>) => Effect.Effect<Schema.Json, E | DatabaseError, R>;
177
204
  readonly readTables: ReadonlySet<string>;
178
205
  readonly changedTables: ReadonlySet<string>;
179
- readonly execute: (operation: DatabaseOperation) => Effect.Effect<OperationResult, AppDatabaseError>;
206
+ readonly execute: (operation: DatabaseOperation) => Effect.Effect<OperationResult, DatabaseError>;
180
207
  }
181
208
  /** Native operation scope owns snapshot consistency, write rollback and commit notifications. */
182
209
  export interface AppDatabase {
183
210
  readonly schema: DatabaseSchema;
184
211
  readonly schemaHash: string;
185
- readonly read: <A, E, R>(work: (session: DatabaseSession) => Effect.Effect<A, E, R>) => Effect.Effect<A, E | AppDatabaseError, R>;
186
- readonly mutate: <A, E, R>(work: (session: DatabaseSession) => Effect.Effect<A, E, R>) => Effect.Effect<A, E | AppDatabaseError, R>;
212
+ readonly read: <A, E, R>(work: (session: DatabaseSession) => Effect.Effect<A, E, R>) => Effect.Effect<A, E | DatabaseError, R>;
213
+ readonly mutate: <A, E, R>(work: (session: DatabaseSession) => Effect.Effect<A, E, R>) => Effect.Effect<A, E | DatabaseError, R>;
187
214
  }
188
215
  /** Product-independent app partitions. A host supplies persistent storage; callers never choose filenames. */
189
216
  export interface AppDatabases {
190
- readonly read: <A, E>(app: string, schema: DatabaseSchema, work: (session: DatabaseSession) => Effect.Effect<A, E>) => Effect.Effect<A, E | AppDatabaseError>;
191
- readonly mutate: <A, E>(app: string, schema: DatabaseSchema, work: (session: DatabaseSession) => Effect.Effect<A, E>) => Effect.Effect<A, E | AppDatabaseError>;
217
+ readonly read: <A, E>(app: string, schema: DatabaseSchema, work: (session: DatabaseSession) => Effect.Effect<A, E>) => Effect.Effect<A, E | DatabaseError>;
218
+ readonly mutate: <A, E>(app: string, schema: DatabaseSchema, work: (session: DatabaseSession) => Effect.Effect<A, E>) => Effect.Effect<A, E | DatabaseError>;
192
219
  }
193
220
  export {};
@@ -1,6 +1,6 @@
1
1
  /** Validate declarations and write values before touching SQLite. */
2
2
  import { Effect } from "effect";
3
- import { AppDatabaseError, DatabaseSchema, RowMetadata, type Field, type Row, type Scalar, type Table } from "../contracts/database.js";
3
+ import { AppDatabaseError, DatabaseFieldReserved, DatabaseSchema, RowMetadata, type Field, type Row, type Scalar, type Table } from "../contracts/database.js";
4
4
  /** Built-in creation ordering and stable tie-breakers apply to every index. */
5
5
  export declare const indexesFor: (table: Table) => {
6
6
  name: string;
@@ -11,22 +11,7 @@ export declare const fieldFor: (table: Table, name: string) => Field | undefined
11
11
  /** Finite numbers and well-formed strings keep JSON and index ordering consistent. */
12
12
  export declare const validScalar: (field: Field, value: unknown) => value is Scalar;
13
13
  /** Parse the whole schema, including references and composite-index definitions. */
14
- export declare const parseDatabaseSchema: (input: unknown) => Effect.Effect<{
15
- readonly [x: string]: {
16
- readonly fields: {
17
- readonly [x: string]: {
18
- readonly kind: "string" | "number" | "boolean" | "id" | "userId";
19
- readonly optional?: boolean | undefined;
20
- readonly default?: string | number | boolean | undefined;
21
- readonly references?: string | undefined;
22
- };
23
- };
24
- readonly indexes: readonly {
25
- readonly name: string;
26
- readonly fields: readonly [string, ...string[]];
27
- }[];
28
- };
29
- }, AppDatabaseError, never>;
14
+ export declare const parseDatabaseSchema: (input: unknown) => Effect.Effect<DatabaseSchema, AppDatabaseError | DatabaseFieldReserved>;
30
15
  /** Canonical ordering for schema fingerprints and query-bound cursors. */
31
16
  export declare const canonicalSchema: (schema: DatabaseSchema) => string;
32
17
  /** Inserts apply declared defaults; updates reject unknown/metadata fields and clear optional values with null. */
@@ -0,0 +1,25 @@
1
+ /** Failure detail that crosses the runtime boundary to the app's own caller. */
2
+ import { Schema } from "effect";
3
+ /** Longest failure message carried across the runtime boundary. */
4
+ export declare const maxFailureMessageLength = 2048;
5
+ /**
6
+ * `app` for errors thrown by authored code, `storage` for app data failures the host raised, and
7
+ * `service` for an external API the app called through a framework helper.
8
+ */
9
+ export declare const FailureSource: Schema.Literals<readonly ["app", "storage", "service"]>;
10
+ /** The thrown error's name, such as `TypeError`, or the host error's tag. */
11
+ export declare const FailureName: Schema.String;
12
+ /** A stable host failure code, such as an app data reason. */
13
+ export declare const FailureCode: Schema.String;
14
+ /** Bounded, with the invocation's account secrets replaced. */
15
+ export declare const FailureMessage: Schema.String;
16
+ /**
17
+ * The error an app's own code raised, or the specific host failure it hit. Stacks and cause
18
+ * values stay private. Builds from before these fields existed send none.
19
+ */
20
+ export declare const FailureDetail: {
21
+ source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
22
+ errorName: Schema.optionalKey<Schema.String>;
23
+ code: Schema.optionalKey<Schema.String>;
24
+ message: Schema.optionalKey<Schema.String>;
25
+ };
@@ -8,6 +8,9 @@ export { ProviderError } from "./provider-error.js";
8
8
  export { McpError } from "./mcp.js";
9
9
  import { WorkflowFailure, type WorkflowExecution, type WorkflowReplay, type WorkflowHostControls } from "./workflows.js";
10
10
  export * from "./workflows.js";
11
+ export * from "./failure.js";
12
+ import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../app-data/src/contracts/database.js";
13
+ export { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../app-data/src/contracts/database.js";
11
14
  /** Portable framework dispatch contracts. Requests never carry account bindings. */
12
15
  import { Context, Schema, type Effect, type Redacted } from "effect";
13
16
  import type { AppStorage } from "./storage.js";
@@ -26,8 +29,9 @@ export { OAuthClientAuth, OAuthSecretClientAuth } from "./provider.js";
26
29
  export { frameworkProtocol } from "./protocol-version.js";
27
30
  export { protocol1 } from "./protocols/1.js";
28
31
  export { protocol2 } from "./protocols/2.js";
29
- import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, SkillSources, type InvocationDeadline, ResolvedAccounts, type SkillCatalogResponse, type TrustedToolApproval } from "./protocols/2.js";
30
- export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, SkillSources, SkillCatalogResponse, HostRequest, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostError, HostResponse, HostInvocation, } from "./protocols/2.js";
32
+ export { protocol3 } from "./protocols/3.js";
33
+ import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, SkillSources, type InvocationDeadline, ResolvedAccounts, type SkillCatalogResponse, type TrustedToolApproval } from "./protocols/3.js";
34
+ export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, SkillSources, SkillCatalogResponse, HostRequest, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostError, HostResponse, HostInvocation, } from "./protocols/3.js";
31
35
  /** Raw host inputs; the host boundary parses and redacts these immediately. */
32
36
  export type ResolvedAccountsInput = typeof ResolvedAccounts.Encoded;
33
37
  /** Trusted invocation context, supplied separately from the Request. */
@@ -80,14 +84,15 @@ export declare const indexCommand: {
80
84
  export declare const selectTools: (tools?: readonly string[]) => <A extends {
81
85
  readonly name: string;
82
86
  }>(all: readonly A[]) => readonly A[];
83
- /** Declaration reads do not bind accounts or evaluate the app factory. */
84
- export declare const HostRequirementsError: Schema.Union<readonly [typeof HostRequestInvalid, typeof HostDeclarationInvalid]>;
87
+ /** Declaration reads do not bind accounts or evaluate the app factory. A named declaration
88
+ * problem, such as a reserved database field, is reported so the deploy can explain it. */
89
+ export declare const HostRequirementsError: Schema.Union<readonly [typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof DatabaseFieldReserved]>;
85
90
  /** Inspection can fail while binding accounts or evaluating the live definition. */
86
91
  export declare const HostInspectError: Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>;
87
92
  /** Tool invocation adds lookup, input, execution and output failures to inspection. */
88
- export declare const HostCallError: Schema.Union<readonly [typeof OpenapiResponseError, typeof WorkflowFailure, Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>, typeof HostToolNotFound, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
93
+ export declare const HostCallError: Schema.Union<readonly [typeof OpenapiResponseError, typeof WorkflowFailure, Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>, typeof HostToolNotFound, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
89
94
  /** Queries, mutations and agent calls use the same operation failures. */
90
- export declare const HostDataError: Schema.Union<readonly [typeof OpenapiResponseError, typeof WorkflowFailure, Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>, typeof HostToolNotFound, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
95
+ export declare const HostDataError: Schema.Union<readonly [typeof OpenapiResponseError, typeof WorkflowFailure, Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>, typeof HostToolNotFound, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
91
96
  /** Invocation-owned outcome sink. Framework adapters report semantic failures
92
97
  * independently of successful JSON transport; customer output is never inspected. */
93
98
  export declare const ToolResultObservation: Context.Reference<{
@@ -227,5 +227,5 @@ export declare const isOpenapiFileSchema: (shape: Readonly<Record<string, unknow
227
227
  /** JSON-safe binary result, independent of the host's file storage. */
228
228
  export declare const openapiBinaryResultSchema: JsonObject;
229
229
  /** Classify request media for JSON-safe tool arguments; Swagger owns wire serialization. */
230
- export declare const openapiMediaKind: (type: string) => "form" | "text" | "binary" | "json" | "multipart";
230
+ export declare const openapiMediaKind: (type: string) => "form" | "binary" | "json" | "multipart" | "text";
231
231
  export {};
@@ -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/1.ts` and notes/apps-publishing.md.
3
+ * snapshot. Released protocols are frozen: see `protocols/3.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 = 2;
6
+ export declare const frameworkProtocol = 3;
@@ -15,7 +15,21 @@ import { ElicitationFailed } from "../elicitation.js";
15
15
  import { McpError } from "../mcp.js";
16
16
  import { ProviderError } from "../provider-error.js";
17
17
  import { SkillLoadFailed } from "../skills.js";
18
- import { WorkflowFailure } from "../workflows.js";
18
+ declare const WorkflowFailure_base: Schema.Class<WorkflowFailure, Schema.TaggedStruct<"WorkflowFailure", {
19
+ readonly reason: Schema.Literals<readonly ["unavailable", "not_found", "input", "output", "operation", "approval", "credentials", "terminated", "execution", "conflict", "engine"]>;
20
+ readonly retryable: Schema.Boolean;
21
+ }>, import("effect/Cause").YieldableError>;
22
+ /** Protocol 1's workflow failure: a reason code only, as released. */
23
+ export declare class WorkflowFailure extends WorkflowFailure_base {
24
+ }
25
+ /** Protocol 1's workflow step reply, carrying its own failure. */
26
+ export declare const WorkflowRpcResult: Schema.Union<readonly [Schema.Struct<{
27
+ readonly ok: Schema.Literal<true>;
28
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
29
+ }>, Schema.Struct<{
30
+ readonly ok: Schema.Literal<false>;
31
+ readonly error: typeof WorkflowFailure;
32
+ }>]>;
19
33
  /** Serializable auth methods shared with SDK hosts; protocol configuration has one schema. */
20
34
  export declare const DeclaredAuthMethod: Schema.Union<readonly [Schema.Struct<{
21
35
  readonly type: Schema.Literal<"secrets">;
@@ -397,7 +397,7 @@ export declare const protocol2: {
397
397
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
398
398
  }>, Schema.Struct<{
399
399
  readonly ok: Schema.Literal<false>;
400
- readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("../provider-error.js").ProviderError, typeof import("../mcp.js").McpError, typeof import("../skills.js").SkillLoadFailed, typeof import("../workflows.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]>;
400
+ readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("../provider-error.js").ProviderError, typeof import("../mcp.js").McpError, typeof import("../skills.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]>;
401
401
  }>]>;
402
402
  readonly requirements: Schema.Struct<{
403
403
  readonly capabilities: Schema.optionalKey<Schema.Struct<{
@@ -593,7 +593,7 @@ export declare const protocol2: {
593
593
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
594
594
  }>, Schema.Struct<{
595
595
  readonly ok: Schema.Literal<false>;
596
- readonly error: typeof import("../workflows.js").WorkflowFailure;
596
+ readonly error: typeof import("./1.js").WorkflowFailure;
597
597
  }>]>;
598
598
  readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
599
599
  readonly operation: Schema.Literal<"start">;