apps 0.0.1-beta.13 → 0.0.1-beta.132

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 (205) hide show
  1. package/README.md +60 -42
  2. package/framework-reference.json +1 -1
  3. package/js/{chunk-M3B3DE4K.js → chunk-2XDCAXAR.js} +612 -246
  4. package/js/{chunk-IPI4MFSN.js → chunk-34RH47V5.js} +2 -2
  5. package/js/{chunk-RFVIONFX.js → chunk-36COQXTI.js} +136 -45
  6. package/js/{chunk-ODEIDRGW.js → chunk-3PIXIKHR.js} +1152 -504
  7. package/js/chunk-5SSWQNLR.js +449 -0
  8. package/js/{chunk-KUMBKVJD.js → chunk-6QZVXLF2.js} +2 -2
  9. package/js/chunk-7MPPHKRW.js +5418 -0
  10. package/js/chunk-AYXVIAPV.js +335 -0
  11. package/js/chunk-H2K7OZ47.js +90 -0
  12. package/js/chunk-I6QAWNUM.js +161 -0
  13. package/js/chunk-IMTTIZID.js +576 -0
  14. package/js/chunk-JYH7YLV7.js +49 -0
  15. package/js/{chunk-QS6CAHKC.js → chunk-KVZRGT5A.js} +4 -3
  16. package/js/chunk-LSOHA2RH.js +88 -0
  17. package/js/{chunk-UK573G7W.js → chunk-MB6L5YZE.js} +1817 -632
  18. package/js/chunk-OBT33ZDK.js +95 -0
  19. package/js/chunk-OD3KFKZD.js +1617 -0
  20. package/js/chunk-PZQCBLMC.js +175 -0
  21. package/js/{chunk-JU7VHODU.js → chunk-QTX7OUFH.js} +65 -10
  22. package/js/{chunk-VFZKSM3T.js → chunk-VX36SA7Y.js} +3 -3
  23. package/js/{chunk-5T57N25Q.js → chunk-WXHRUWNT.js} +651 -70
  24. package/js/chunk-XNDA3277.js +724 -0
  25. package/js/{chunk-CDL5PM2Q.js → chunk-YFSOSNF3.js} +17265 -12477
  26. package/js/chunk-YRAKYZJP.js +1945 -0
  27. package/js/{chunk-IJX4CYZO.js → chunk-YVN2AMAU.js} +976 -447
  28. package/js/chunk-YYLI5HVR.js +1016 -0
  29. package/js/client.js +234 -92
  30. package/js/contracts.js +154 -21
  31. package/js/effect.js +18 -19
  32. package/js/{es-APDZKREY.js → es-DIULA3ZF.js} +62 -1659
  33. package/js/graphql.js +231 -188
  34. package/js/host.js +138 -80
  35. package/js/index.js +153 -300
  36. package/js/mcp/effect.js +21 -21
  37. package/js/mcp.js +91 -57
  38. package/js/openapi.js +4357 -1415
  39. package/js/react.js +2 -3
  40. package/js/skills/effect.js +6 -3
  41. package/js/skills.js +220 -81
  42. package/js/storage/facet.js +1 -540
  43. package/js/ui/auth/contracts.js +2 -2
  44. package/js/ui/auth.js +5 -5
  45. package/js/ui/contracts.js +9 -8
  46. package/js/ui/serving.js +8618 -235
  47. package/package.json +3 -8
  48. package/runtime.json +1 -1
  49. package/types/app-cache/src/contracts/cache.d.ts +18 -0
  50. package/types/app-cache/src/index.d.ts +34 -2
  51. package/types/apps/src/contracts/api-response-error.d.ts +4 -0
  52. package/types/apps/src/contracts/app.d.ts +56 -11
  53. package/types/apps/src/contracts/cache.d.ts +20 -0
  54. package/types/apps/src/contracts/context.d.ts +60 -17
  55. package/types/apps/src/contracts/elicitation.d.ts +23 -7
  56. package/types/apps/src/contracts/events.d.ts +94 -0
  57. package/types/apps/src/contracts/failure.d.ts +30 -1
  58. package/types/apps/src/contracts/graphql.d.ts +40 -2
  59. package/types/apps/src/contracts/help-text.d.ts +31 -0
  60. package/types/apps/src/contracts/host.d.ts +1493 -20
  61. package/types/apps/src/contracts/icons.d.ts +28 -0
  62. package/types/apps/src/contracts/live.d.ts +2 -0
  63. package/types/apps/src/contracts/mcp.d.ts +81 -20
  64. package/types/apps/src/contracts/network.d.ts +120 -0
  65. package/types/apps/src/contracts/openapi-compile.d.ts +82 -3
  66. package/types/apps/src/contracts/openapi-document.d.ts +1 -1
  67. package/types/apps/src/contracts/openapi.d.ts +40 -8
  68. package/types/apps/src/contracts/operations.d.ts +14 -7
  69. package/types/apps/src/contracts/placement.d.ts +102 -0
  70. package/types/apps/src/contracts/protocol-version.d.ts +2 -2
  71. package/types/apps/src/contracts/protocols/1.d.ts +513 -15
  72. package/types/apps/src/contracts/protocols/10.d.ts +1450 -0
  73. package/types/apps/src/contracts/protocols/11.d.ts +1149 -0
  74. package/types/apps/src/contracts/protocols/12.d.ts +3310 -0
  75. package/types/apps/src/contracts/protocols/13.d.ts +6001 -0
  76. package/types/apps/src/contracts/protocols/2.d.ts +9 -8
  77. package/types/apps/src/contracts/protocols/3.d.ts +73 -15
  78. package/types/apps/src/contracts/protocols/4.d.ts +22 -15
  79. package/types/apps/src/contracts/protocols/5.d.ts +37 -11
  80. package/types/apps/src/contracts/protocols/6.d.ts +1629 -0
  81. package/types/apps/src/contracts/protocols/7.d.ts +1785 -0
  82. package/types/apps/src/contracts/protocols/8.d.ts +1182 -0
  83. package/types/apps/src/contracts/protocols/9.d.ts +1104 -0
  84. package/types/apps/src/contracts/protocols/current.d.ts +7114 -0
  85. package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
  86. package/types/apps/src/contracts/protocols/oauth.d.ts +134 -0
  87. package/types/apps/src/contracts/provider-error.d.ts +9 -0
  88. package/types/apps/src/contracts/provider.d.ts +56 -0
  89. package/types/apps/src/contracts/router.d.ts +2 -1
  90. package/types/apps/src/contracts/schedules.d.ts +7 -1
  91. package/types/apps/src/contracts/schema.d.ts +21 -0
  92. package/types/apps/src/contracts/shared-catalog.d.ts +11 -0
  93. package/types/apps/src/contracts/skills.d.ts +50 -13
  94. package/types/apps/src/contracts/sql.d.ts +63 -0
  95. package/types/apps/src/contracts/ui.d.ts +70 -30
  96. package/types/apps/src/contracts/webhooks.d.ts +24 -7
  97. package/types/apps/src/contracts/workflows.d.ts +56 -34
  98. package/types/apps/src/facet.d.ts +4 -5
  99. package/types/apps/src/host.d.ts +5 -0
  100. package/types/apps/src/implementation/account-router.d.ts +20 -3
  101. package/types/apps/src/implementation/app.d.ts +41 -14
  102. package/types/apps/src/implementation/authoring.d.ts +25 -5
  103. package/types/apps/src/implementation/browser-scripts.gen.d.ts +6 -0
  104. package/types/apps/src/implementation/cache.d.ts +29 -2
  105. package/types/apps/src/implementation/catalog-cache.d.ts +35 -4
  106. package/types/apps/src/implementation/elicitation.d.ts +16 -13
  107. package/types/apps/src/implementation/events.d.ts +64 -0
  108. package/types/apps/src/implementation/failure-detail.d.ts +28 -5
  109. package/types/apps/src/implementation/graphql-catalog.d.ts +3 -3
  110. package/types/apps/src/implementation/graphql.d.ts +4 -3
  111. package/types/apps/src/implementation/help-text.d.ts +5 -0
  112. package/types/apps/src/implementation/input-problems.d.ts +6 -2
  113. package/types/apps/src/implementation/invocation-timing.d.ts +18 -0
  114. package/types/apps/src/implementation/live.d.ts +2 -2
  115. package/types/apps/src/implementation/mcp-call.d.ts +6 -5
  116. package/types/apps/src/implementation/mcp-catalog.d.ts +6 -4
  117. package/types/apps/src/implementation/mcp-client.d.ts +17 -9
  118. package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
  119. package/types/apps/src/implementation/mcp.d.ts +20 -9
  120. package/types/apps/src/implementation/network.d.ts +16 -0
  121. package/types/apps/src/implementation/openapi-compile.d.ts +38 -7
  122. package/types/apps/src/implementation/openapi-document.d.ts +50 -20
  123. package/types/apps/src/implementation/openapi-names.d.ts +9 -4
  124. package/types/apps/src/implementation/openapi-request.d.ts +10 -2
  125. package/types/apps/src/implementation/openapi-source.d.ts +23 -1
  126. package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
  127. package/types/apps/src/implementation/operations.d.ts +58 -7
  128. package/types/apps/src/implementation/optimistic.d.ts +1 -1
  129. package/types/apps/src/implementation/placement.d.ts +60 -0
  130. package/types/apps/src/implementation/protocol-operations.d.ts +3 -0
  131. package/types/apps/src/implementation/provider-error.d.ts +28 -1
  132. package/types/apps/src/implementation/provider.d.ts +20 -4
  133. package/types/apps/src/implementation/query-commit.d.ts +1 -1
  134. package/types/apps/src/implementation/router-catalog.d.ts +22 -97
  135. package/types/apps/src/implementation/router.d.ts +26 -6
  136. package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
  137. package/types/apps/src/implementation/schedules.d.ts +39 -8
  138. package/types/apps/src/implementation/schema.d.ts +125 -17
  139. package/types/apps/src/implementation/skills.d.ts +18 -24
  140. package/types/apps/src/implementation/sql.d.ts +71 -0
  141. package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
  142. package/types/apps/src/implementation/ui-auth.d.ts +1 -1
  143. package/types/apps/src/implementation/ui-client.d.ts +3 -3
  144. package/types/apps/src/implementation/ui-document.d.ts +5 -0
  145. package/types/apps/src/implementation/ui-errors.d.ts +1 -1
  146. package/types/apps/src/implementation/ui-serving.d.ts +38 -12
  147. package/types/apps/src/implementation/upstream-error.d.ts +17 -0
  148. package/types/apps/src/implementation/webhooks.d.ts +15 -6
  149. package/types/apps/src/implementation/workflow-context.d.ts +6 -2
  150. package/types/apps/src/implementation/workflows.d.ts +11 -4
  151. package/types/apps/src/index.d.ts +67 -17
  152. package/types/apps/src/mcp.d.ts +20 -1
  153. package/types/apps/src/openapi.d.ts +22 -1
  154. package/types/apps/src/react.d.ts +1 -1
  155. package/types/apps/src/skills.d.ts +10 -8
  156. package/types/apps/src/ui-serving.d.ts +1 -2
  157. package/types/telemetry/src/app-records.d.ts +42 -0
  158. package/types/telemetry/src/browser-operations.d.ts +2 -2
  159. package/types/telemetry/src/browser.d.ts +8 -3
  160. package/types/telemetry/src/config.d.ts +2 -2
  161. package/types/telemetry/src/index.d.ts +3 -2
  162. package/types/telemetry/src/keepalive.d.ts +36 -0
  163. package/types/telemetry/src/layer.d.ts +10 -4
  164. package/types/telemetry/src/measurements.d.ts +6 -2
  165. package/types/telemetry/src/ownership.d.ts +60 -0
  166. package/types/telemetry/src/recorded-failure.d.ts +29 -0
  167. package/types/telemetry/src/relay.d.ts +32 -7
  168. package/types/telemetry/src/span-attributes.d.ts +22 -3
  169. package/types/telemetry/src/transport.d.ts +8 -1
  170. package/types/utils/src/api-error.d.ts +55 -0
  171. package/types/utils/src/connection-failure.d.ts +33 -0
  172. package/types/utils/src/legacy-keys.d.ts +20 -0
  173. package/types/utils/src/random-uuid.d.ts +6 -0
  174. package/types/utils/src/recorded-message.d.ts +18 -0
  175. package/types/utils/src/schema-definitions.d.ts +13 -0
  176. package/types/utils/src/user-facing-error.d.ts +83 -0
  177. package/js/chunk-27F7W2LG.js +0 -34
  178. package/js/chunk-4ASNKGCV.js +0 -242
  179. package/js/chunk-4DWF4ZWI.js +0 -1280
  180. package/js/chunk-57RKNWL2.js +0 -75
  181. package/js/chunk-6HSH75OI.js +0 -2688
  182. package/js/chunk-G4FT53I7.js +0 -224
  183. package/js/chunk-MKWZPDR6.js +0 -63
  184. package/js/chunk-N7YDVXYJ.js +0 -186
  185. package/js/chunk-NKLWZJLE.js +0 -172
  186. package/js/chunk-PJJ24GU7.js +0 -877
  187. package/js/chunk-PZB6T6KU.js +0 -19
  188. package/js/chunk-R3EV5FTO.js +0 -97
  189. package/js/chunk-S73JGVR5.js +0 -507
  190. package/js/chunk-TG6DOCRO.js +0 -299
  191. package/js/chunk-YPKG2QO5.js +0 -209
  192. package/js/chunk-ZQINWV4W.js +0 -630
  193. package/js/mcp/stdio.js +0 -128
  194. package/types/app-data/src/implementation/cursor.d.ts +0 -10
  195. package/types/app-data/src/implementation/index-key.d.ts +0 -7
  196. package/types/app-data/src/implementation/promise.d.ts +0 -68
  197. package/types/app-data/src/implementation/range.d.ts +0 -8
  198. package/types/app-data/src/implementation/schema.d.ts +0 -18
  199. package/types/app-data/src/implementation/sqlite.d.ts +0 -11
  200. package/types/app-data/src/index.d.ts +0 -4
  201. package/types/apps/src/contracts/storage.d.ts +0 -68
  202. package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
  203. package/types/apps/src/implementation/storage.d.ts +0 -15
  204. package/types/apps/src/implementation/ui-watch.d.ts +0 -2
  205. package/types/apps/src/mcp-stdio.d.ts +0 -5
@@ -3,18 +3,514 @@
3
3
  *
4
4
  * This protocol is released and frozen. Retained builds and published `apps` versions speak it,
5
5
  * and every later host must keep running and rebuilding them unchanged. `bun run check` compares
6
- * `protocol1` with `packages/apps/protocols/1.json` and fails on any difference, including changes
7
- * to the schemas it imports. Do not edit this file or the schemas it reaches to change the wire
8
- * format. Define the next protocol instead and give the host an adapter for this one. If a
9
- * referenced schema must change for other reasons, first copy its current definition here.
10
- * See notes/apps-publishing.md.
6
+ * `protocol1` with `packages/apps/protocols/1.json` and fails on any difference. The module imports
7
+ * only `effect` and the frozen OAuth sibling `./oauth.ts`, so no change elsewhere in the repository
8
+ * can alter it. Do not edit it to change the wire format: define the next protocol instead and
9
+ * give the host an adapter for this one. See notes/apps-publishing.md.
11
10
  */
12
11
  import { Schema } from "effect";
13
- import { OpenapiResponseError } from "../api-response-error.js";
14
- import { ElicitationFailed } from "../elicitation.js";
15
- import { McpError } from "../mcp.js";
16
- import { ProviderError } from "../provider-error.js";
17
- import { SkillLoadFailed } from "../skills.js";
12
+ import * as McpSchema from "effect/ai/McpSchema";
13
+ /** JSON values carried by remote protocols such as MCP. */
14
+ export declare const JsonValue: Schema.Codec<Schema.Json, Schema.Json, never, never>;
15
+ export type JsonValue = Schema.Json;
16
+ /** A JSON object, distinct from an authored value schema. */
17
+ export declare const JsonObject: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
18
+ export type JsonObject = typeof JsonObject.Type;
19
+ /** Stable saved account identity supplied by a host, unchanged across refreshes. */
20
+ export declare const AccountId: Schema.brand<Schema.String, "acc">;
21
+ /** Parsed saved account identity. */
22
+ export type AccountId = typeof AccountId.Type;
23
+ declare const CacheError_base: Schema.Class<CacheError, Schema.TaggedStruct<"CacheError", {
24
+ readonly reason: Schema.Literals<readonly ["unavailable", "storage", "invalid", "capacity", "timeout"]>;
25
+ }>, import("effect/Cause").YieldableError>;
26
+ /** Expected cache failures never include keys, values or upstream exception text. */
27
+ export declare class CacheError extends CacheError_base {
28
+ }
29
+ /** Stored values carry a version independent of their freshness clock. */
30
+ export declare const CacheEntry: Schema.Struct<{
31
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
32
+ readonly version: Schema.String;
33
+ readonly freshUntil: Schema.Finite;
34
+ readonly staleUntil: Schema.Finite;
35
+ }>;
36
+ /** Decoded cache value envelope. */
37
+ export type CacheEntry = typeof CacheEntry.Type;
38
+ /**
39
+ * Publication requires the lease acquired against the previously observed version.
40
+ * `acquire` reads one entry and claims its load in the same transaction, so a cache
41
+ * miss costs one round trip. `read` and `claim` remain for builds retained before it.
42
+ */
43
+ export declare const CacheCommand: Schema.Union<readonly [Schema.Struct<{
44
+ readonly operation: Schema.Literal<"read">;
45
+ readonly keys: Schema.$Array<Schema.String>;
46
+ }>, Schema.Struct<{
47
+ readonly operation: Schema.Literal<"acquire">;
48
+ readonly key: Schema.String;
49
+ /** Claim even a fresh entry, as an explicit refresh does. */
50
+ readonly refresh: Schema.Boolean;
51
+ /** Claim only while the entry still has this version. Absent accepts the current one. */
52
+ readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
53
+ }>, Schema.Struct<{
54
+ readonly operation: Schema.Literal<"claim">;
55
+ readonly key: Schema.String;
56
+ readonly version: Schema.NullOr<Schema.String>;
57
+ }>, Schema.Struct<{
58
+ readonly operation: Schema.Literal<"publish">;
59
+ readonly key: Schema.String;
60
+ readonly lease: Schema.String;
61
+ readonly entry: Schema.Struct<{
62
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
63
+ readonly version: Schema.String;
64
+ readonly freshUntil: Schema.Finite;
65
+ readonly staleUntil: Schema.Finite;
66
+ }>;
67
+ }>, Schema.Struct<{
68
+ readonly operation: Schema.Literal<"release">;
69
+ readonly key: Schema.String;
70
+ readonly lease: Schema.String;
71
+ }>, Schema.Struct<{
72
+ readonly operation: Schema.Literal<"renew">;
73
+ readonly key: Schema.String;
74
+ readonly lease: Schema.String;
75
+ }>, Schema.Struct<{
76
+ readonly operation: Schema.Literal<"write">;
77
+ readonly entries: Schema.$Array<Schema.Struct<{
78
+ readonly key: Schema.String;
79
+ readonly entry: Schema.Struct<{
80
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
81
+ readonly version: Schema.String;
82
+ readonly freshUntil: Schema.Finite;
83
+ readonly staleUntil: Schema.Finite;
84
+ }>;
85
+ }>>;
86
+ }>, Schema.Struct<{
87
+ readonly operation: Schema.Literal<"invalidate">;
88
+ readonly key: Schema.String;
89
+ }>]>;
90
+ /** Parsed host command; namespaces cannot be selected by app code. */
91
+ export type CacheCommand = typeof CacheCommand.Type;
92
+ /** Safe protocol envelope used at process boundaries. */
93
+ export declare const CacheReply: Schema.Union<readonly [Schema.Struct<{
94
+ readonly ok: Schema.Literal<true>;
95
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
96
+ }>, Schema.Struct<{
97
+ readonly ok: Schema.Literal<false>;
98
+ readonly error: typeof CacheError;
99
+ }>]>;
100
+ /** Names have Lakebed's identifier shape and are always bound SQL values, never raw SQL. */
101
+ export declare const DataName: Schema.String;
102
+ /** Stored fields and index terms use finite scalar values; absent optional fields are represented by null in transport. */
103
+ export declare const Scalar: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
104
+ export type Scalar = typeof Scalar.Type;
105
+ export declare const Field: Schema.Struct<{
106
+ readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
107
+ readonly optional: Schema.optional<Schema.Boolean>;
108
+ readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
109
+ readonly references: Schema.optional<Schema.String>;
110
+ }>;
111
+ export type Field = typeof Field.Type;
112
+ export declare const Index: Schema.Struct<{
113
+ readonly name: Schema.String;
114
+ readonly fields: Schema.NonEmptyArray<Schema.String>;
115
+ }>;
116
+ export declare const Table: Schema.Struct<{
117
+ readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
118
+ readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
119
+ readonly optional: Schema.optional<Schema.Boolean>;
120
+ readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
121
+ readonly references: Schema.optional<Schema.String>;
122
+ }>>;
123
+ readonly indexes: Schema.$Array<Schema.Struct<{
124
+ readonly name: Schema.String;
125
+ readonly fields: Schema.NonEmptyArray<Schema.String>;
126
+ }>>;
127
+ }>;
128
+ export type Table = typeof Table.Type;
129
+ export declare const DatabaseSchema: Schema.$Record<Schema.String, Schema.Struct<{
130
+ readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
131
+ readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
132
+ readonly optional: Schema.optional<Schema.Boolean>;
133
+ readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
134
+ readonly references: Schema.optional<Schema.String>;
135
+ }>>;
136
+ readonly indexes: Schema.$Array<Schema.Struct<{
137
+ readonly name: Schema.String;
138
+ readonly fields: Schema.NonEmptyArray<Schema.String>;
139
+ }>>;
140
+ }>>;
141
+ export type DatabaseSchema = typeof DatabaseSchema.Type;
142
+ /** Longest agent guidance an API error's recovery carries. */
143
+ export declare const maxApiErrorInstructionsLength = 4096;
144
+ /** Bounded recovery a declared API error published for its caller: a short next step and agent guidance. */
145
+ export declare const ApiErrorRecovery: Schema.Struct<{
146
+ readonly action: Schema.NonEmptyString;
147
+ readonly instructions: Schema.NonEmptyString;
148
+ }>;
149
+ /** Recovery copied from an error response body; extra keys are dropped on decode. */
150
+ export type ApiErrorRecovery = typeof ApiErrorRecovery.Type;
151
+ /** Longest message an API error response carries. */
152
+ export declare const maxApiErrorMessageLength = 4096;
153
+ /** Bounded public fields from a response matching its declared API error schema. */
154
+ export declare const ApiErrorResponse: Schema.Struct<{
155
+ readonly code: Schema.NonEmptyString;
156
+ readonly status: Schema.Int;
157
+ readonly message: Schema.NonEmptyString;
158
+ readonly recovery: Schema.optionalKey<Schema.Struct<{
159
+ readonly action: Schema.NonEmptyString;
160
+ readonly instructions: Schema.NonEmptyString;
161
+ }>>;
162
+ }>;
163
+ /** Safe projection of a response matching a declared API error schema. */
164
+ export type ApiErrorResponse = typeof ApiErrorResponse.Type;
165
+ declare const OpenapiResponseError_base: Schema.Class<OpenapiResponseError, Schema.TaggedStruct<"OpenapiResponseError", {
166
+ readonly code: Schema.NonEmptyString;
167
+ readonly status: Schema.Int;
168
+ readonly message: Schema.NonEmptyString;
169
+ readonly recovery: Schema.optionalKey<Schema.Struct<{
170
+ readonly action: Schema.NonEmptyString;
171
+ readonly instructions: Schema.NonEmptyString;
172
+ }>>;
173
+ }>, import("effect/Cause").YieldableError>;
174
+ /** A validated OpenAPI failure with its declared message or static schema explanation. */
175
+ export declare class OpenapiResponseError extends OpenapiResponseError_base {
176
+ }
177
+ /** Plain-data form request derived from the pinned MCP protocol schema. */
178
+ export declare const FormElicitation: Schema.Struct<{
179
+ readonly mode: Schema.Literal<"form">;
180
+ readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
181
+ readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
182
+ readonly type: Schema.tag<"object">;
183
+ readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof McpSchema.LegacyTitledEnum, Schema.Union<readonly [typeof McpSchema.UntitledSingleSelectEnum, typeof McpSchema.TitledSingleSelectEnum]>, Schema.Union<readonly [typeof McpSchema.UntitledMultiSelectEnum, typeof McpSchema.TitledMultiSelectEnum]>]>, typeof McpSchema.ElicitationString, typeof McpSchema.ElicitationNumber, typeof McpSchema.ElicitationBoolean]>>;
184
+ readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
185
+ }>>;
186
+ readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
187
+ readonly message: Schema.String;
188
+ }>;
189
+ export type FormElicitation = typeof FormElicitation.Type;
190
+ /** MCP accept/decline/cancel response, without imposing a client or transport on app code. */
191
+ export declare const ElicitationResponse: Schema.Union<readonly [Schema.Struct<{
192
+ readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
193
+ readonly action: Schema.Literal<"accept">;
194
+ readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
195
+ }>, Schema.Struct<{
196
+ readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
197
+ readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
198
+ }>]>;
199
+ export type ElicitationResponse = typeof ElicitationResponse.Type;
200
+ declare const ElicitationFailed_base: Schema.Class<ElicitationFailed, Schema.TaggedStruct<"ElicitationFailed", {
201
+ readonly reason: Schema.Literals<readonly ["unavailable", "transaction", "invalid-request", "invalid-response", "transport", "expired", "forbidden"]>;
202
+ }>, import("effect/Cause").YieldableError>;
203
+ /** A tool interaction could not be delivered or its request/response was invalid. No private payload is retained. */
204
+ export declare class ElicitationFailed extends ElicitationFailed_base {
205
+ }
206
+ /** Safe reply for a runtime that crosses an RPC boundary. */
207
+ export declare const ElicitationReply: Schema.Union<readonly [Schema.Struct<{
208
+ readonly ok: Schema.Literal<true>;
209
+ readonly response: Schema.Union<readonly [Schema.Struct<{
210
+ readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
211
+ readonly action: Schema.Literal<"accept">;
212
+ readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
213
+ }>, Schema.Struct<{
214
+ readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
215
+ readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
216
+ }>]>;
217
+ }>, Schema.Struct<{
218
+ readonly ok: Schema.Literal<false>;
219
+ readonly error: typeof ElicitationFailed;
220
+ }>]>;
221
+ export type ElicitationReply = typeof ElicitationReply.Type;
222
+ /** Invocation consent requests no additional fields; arguments are reviewed, never edited in the form. */
223
+ export declare const ApprovalElicitation: Schema.Struct<{
224
+ readonly requestedSchema: Schema.Struct<{
225
+ readonly type: Schema.Literal<"object">;
226
+ readonly properties: Schema.$Record<Schema.String, Schema.Never>;
227
+ }>;
228
+ readonly mode: Schema.Literal<"form">;
229
+ readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
230
+ readonly message: Schema.String;
231
+ }>;
232
+ export type ApprovalElicitation = typeof ApprovalElicitation.Type;
233
+ /** Dispatch coalesces overdue ticks, so sub-minute intervals promise a cadence the runner cannot keep. */
234
+ export declare const minimumIntervalMilliseconds = 60000;
235
+ /** Calendar schedules use five cron fields and an explicit IANA time zone. */
236
+ export declare const CalendarSchedule: Schema.Struct<{
237
+ readonly expression: Schema.NonEmptyString;
238
+ readonly timezone: Schema.NonEmptyString;
239
+ }>;
240
+ /** Validated timing crosses all runtime and persistence boundaries as data. */
241
+ export declare const ScheduleTiming: Schema.Union<readonly [Schema.Struct<{
242
+ readonly kind: Schema.Literal<"interval">;
243
+ readonly milliseconds: Schema.Int;
244
+ }>, Schema.Struct<{
245
+ readonly kind: Schema.Literal<"cron">;
246
+ readonly calendar: Schema.Struct<{
247
+ readonly expression: Schema.NonEmptyString;
248
+ readonly timezone: Schema.NonEmptyString;
249
+ }>;
250
+ }>]>;
251
+ export type ScheduleTiming = typeof ScheduleTiming.Type;
252
+ /** A named trigger attached to the mutation it invokes, including schema-validated arguments. */
253
+ export declare const OperationSchedule: Schema.Struct<{
254
+ readonly name: Schema.NonEmptyString;
255
+ readonly timing: Schema.Union<readonly [Schema.Struct<{
256
+ readonly kind: Schema.Literal<"interval">;
257
+ readonly milliseconds: Schema.Int;
258
+ }>, Schema.Struct<{
259
+ readonly kind: Schema.Literal<"cron">;
260
+ readonly calendar: Schema.Struct<{
261
+ readonly expression: Schema.NonEmptyString;
262
+ readonly timezone: Schema.NonEmptyString;
263
+ }>;
264
+ }>]>;
265
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
266
+ }>;
267
+ export type OperationSchedule = typeof OperationSchedule.Type;
268
+ /** Canonical resource path within one skill. */
269
+ export declare const SkillFilePath: Schema.NonEmptyString;
270
+ /** UTF-8 text resource. Reading a resource never executes it. */
271
+ export declare const SkillFile: Schema.Struct<{
272
+ readonly path: Schema.NonEmptyString;
273
+ readonly content: Schema.String;
274
+ }>;
275
+ export type SkillFile = typeof SkillFile.Type;
276
+ /** Agent Skills format constraints, not Executor execution or storage budgets. */
277
+ export declare const skillFormatLimits: {
278
+ readonly nameCharacters: 64;
279
+ readonly descriptionCharacters: 1024;
280
+ readonly compatibilityCharacters: 500;
281
+ };
282
+ /** A lowercase alphanumeric skill directory name with single separating hyphens. */
283
+ export declare const AppSkillName: Schema.NonEmptyString;
284
+ /** Frontmatter is metadata only. In particular, allowed-tools never grants execution authority. */
285
+ export declare const AppSkillMetadata: Schema.Struct<{
286
+ readonly name: Schema.NonEmptyString;
287
+ readonly description: Schema.String;
288
+ readonly license: Schema.optionalKey<Schema.String>;
289
+ readonly compatibility: Schema.optionalKey<Schema.String>;
290
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
291
+ readonly "allowed-tools": Schema.optionalKey<Schema.String>;
292
+ }>;
293
+ export type AppSkillMetadata = typeof AppSkillMetadata.Type;
294
+ /** Files use paths relative to this skill directory; reading one never executes its contents. */
295
+ export declare const AppSkillSource: Schema.Struct<{
296
+ readonly files: Schema.$Array<Schema.Struct<{
297
+ readonly path: Schema.NonEmptyString;
298
+ readonly content: Schema.String;
299
+ }>>;
300
+ readonly name: Schema.NonEmptyString;
301
+ readonly description: Schema.String;
302
+ readonly license: Schema.optionalKey<Schema.String>;
303
+ readonly compatibility: Schema.optionalKey<Schema.String>;
304
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
305
+ readonly "allowed-tools": Schema.optionalKey<Schema.String>;
306
+ }>;
307
+ export type AppSkillSource = typeof AppSkillSource.Type;
308
+ /** One evaluated catalog cannot contain ambiguous names. */
309
+ export declare const AppSkills: Schema.$Array<Schema.Struct<{
310
+ readonly files: Schema.$Array<Schema.Struct<{
311
+ readonly path: Schema.NonEmptyString;
312
+ readonly content: Schema.String;
313
+ }>>;
314
+ readonly name: Schema.NonEmptyString;
315
+ readonly description: Schema.String;
316
+ readonly license: Schema.optionalKey<Schema.String>;
317
+ readonly compatibility: Schema.optionalKey<Schema.String>;
318
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
319
+ readonly "allowed-tools": Schema.optionalKey<Schema.String>;
320
+ }>>;
321
+ /** Advisory tool hints; neither the framework nor these declarations enforce access. */
322
+ export declare const ToolAnnotations: Schema.Struct<{
323
+ readonly title: Schema.optionalKey<Schema.String>;
324
+ readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
325
+ readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
326
+ readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
327
+ readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
328
+ }>;
329
+ export type ToolAnnotations = typeof ToolAnnotations.Type;
330
+ /** Raw-byte ceiling shared by callback HTTP, app execution and the encoded host protocol. */
331
+ export declare const WebhookTransportLimits: Schema.Struct<{
332
+ readonly maxBodyBytes: Schema.Int;
333
+ }>;
334
+ export type WebhookTransportLimits = typeof WebhookTransportLimits.Type;
335
+ /** Requests and responses use the same existing transport bound. */
336
+ export declare const defaultWebhookTransportLimits: {
337
+ readonly maxBodyBytes: number;
338
+ };
339
+ /** Bounded callback transport. Headers and base64 bytes preserve the provider signature input. */
340
+ export declare const WebhookRequestData: Schema.Struct<{
341
+ readonly url: Schema.String;
342
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
343
+ readonly headers: Schema.$Record<Schema.String, Schema.String>;
344
+ readonly body: Schema.String;
345
+ }>;
346
+ /** Each command runs with a fresh factory and the subscription's saved account selections. */
347
+ export declare const WebhookCommand: Schema.Union<readonly [Schema.Struct<{
348
+ readonly operation: Schema.Literal<"webhooks">;
349
+ }>, Schema.Struct<{
350
+ readonly name: Schema.NonEmptyString;
351
+ readonly subscriptionId: Schema.NonEmptyString;
352
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
353
+ readonly callbackUrl: Schema.String;
354
+ readonly secret: Schema.String;
355
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
356
+ readonly operation: Schema.Literal<"webhook-validate">;
357
+ }>, Schema.Struct<{
358
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
359
+ readonly name: Schema.NonEmptyString;
360
+ readonly subscriptionId: Schema.NonEmptyString;
361
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
362
+ readonly callbackUrl: Schema.String;
363
+ readonly secret: Schema.String;
364
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
365
+ readonly operation: Schema.Literal<"webhook-complete">;
366
+ }>, Schema.Struct<{
367
+ readonly name: Schema.NonEmptyString;
368
+ readonly subscriptionId: Schema.NonEmptyString;
369
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
370
+ readonly callbackUrl: Schema.String;
371
+ readonly secret: Schema.String;
372
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
373
+ readonly operation: Schema.Literal<"webhook-register">;
374
+ }>, Schema.Struct<{
375
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
376
+ readonly name: Schema.NonEmptyString;
377
+ readonly subscriptionId: Schema.NonEmptyString;
378
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
379
+ readonly callbackUrl: Schema.String;
380
+ readonly secret: Schema.String;
381
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
382
+ readonly operation: Schema.Literal<"webhook-unregister">;
383
+ }>, Schema.Struct<{
384
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
385
+ readonly request: Schema.Struct<{
386
+ readonly url: Schema.String;
387
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
388
+ readonly headers: Schema.$Record<Schema.String, Schema.String>;
389
+ readonly body: Schema.String;
390
+ }>;
391
+ readonly name: Schema.NonEmptyString;
392
+ readonly subscriptionId: Schema.NonEmptyString;
393
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
394
+ readonly callbackUrl: Schema.String;
395
+ readonly secret: Schema.String;
396
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
397
+ readonly operation: Schema.Literal<"webhook-handle">;
398
+ }>]>;
399
+ /** Parsed framework command; contains private host inputs and must not be logged. */
400
+ export type WebhookCommand = typeof WebhookCommand.Type;
401
+ /** Run identity is opaque and shared by author and SDK interfaces. */
402
+ export declare const WorkflowRunId: Schema.brand<Schema.NonEmptyString, "wfr">;
403
+ export type WorkflowRunId = typeof WorkflowRunId.Type;
404
+ /** Stable names identify declarations and replay steps. */
405
+ export declare const WorkflowName: Schema.NonEmptyString;
406
+ /** Convert portable duration syntax to milliseconds; invalid or overflowing values are rejected. */
407
+ export declare const workflowDurationMillis: (value: number | string) => number | undefined;
408
+ /** Numbers are milliseconds; strings use a quantity and full unit, such as "5 minutes". */
409
+ export declare const WorkflowDuration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
410
+ export type WorkflowDuration = typeof WorkflowDuration.Type;
411
+ /** Author retry and timeout options are passed to the durable engine. */
412
+ export declare const WorkflowStepOptions: Schema.Struct<{
413
+ readonly retries: Schema.optionalKey<Schema.Struct<{
414
+ readonly limit: Schema.Int;
415
+ readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
416
+ readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
417
+ }>>;
418
+ readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
419
+ }>;
420
+ export type WorkflowStepOptions = typeof WorkflowStepOptions.Type;
421
+ /** Step outputs must fit the engine's persisted JSON result limit. */
422
+ export declare const WorkflowValue: Schema.Codec<Schema.Json, Schema.Json, never, never>;
423
+ /** Private replay metadata is attached by the host, never accepted in author input. */
424
+ export declare const WorkflowReplay: Schema.Struct<{
425
+ readonly key: Schema.NonEmptyString;
426
+ readonly fingerprint: Schema.NonEmptyString;
427
+ }>;
428
+ export type WorkflowReplay = typeof WorkflowReplay.Type;
429
+ /** Portable discovery, input validation and execution commands. */
430
+ export declare const WorkflowCommand: Schema.Union<readonly [Schema.Struct<{
431
+ readonly operation: Schema.Literal<"workflows">;
432
+ }>, Schema.Struct<{
433
+ readonly operation: Schema.Literal<"workflow-validate">;
434
+ readonly name: Schema.NonEmptyString;
435
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
436
+ }>, Schema.Struct<{
437
+ readonly operation: Schema.Literal<"workflow-run">;
438
+ readonly name: Schema.NonEmptyString;
439
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
440
+ }>]>;
441
+ export type WorkflowCommand = typeof WorkflowCommand.Type;
442
+ /** Private invocation RPC protocol shared by the host and isolated app bundle. */
443
+ export declare const WorkflowRpcCommand: Schema.Union<readonly [Schema.Struct<{
444
+ readonly operation: Schema.Literal<"do">;
445
+ readonly name: Schema.NonEmptyString;
446
+ readonly options: Schema.Struct<{
447
+ readonly retries: Schema.optionalKey<Schema.Struct<{
448
+ readonly limit: Schema.Int;
449
+ readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
450
+ readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
451
+ }>>;
452
+ readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
453
+ }>;
454
+ }>, Schema.Struct<{
455
+ readonly operation: Schema.Literal<"sleep">;
456
+ readonly name: Schema.NonEmptyString;
457
+ readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
458
+ }>, Schema.Struct<{
459
+ readonly operation: Schema.Literal<"until">;
460
+ readonly name: Schema.NonEmptyString;
461
+ readonly timestamp: Schema.Finite;
462
+ }>, Schema.Struct<{
463
+ readonly operation: Schema.Literal<"context">;
464
+ }>, Schema.Struct<{
465
+ readonly operation: Schema.Literal<"invoke">;
466
+ readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
467
+ readonly name: Schema.NonEmptyString;
468
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
469
+ readonly stepId: Schema.NonEmptyString;
470
+ readonly timeout: Schema.Finite;
471
+ }>]>;
472
+ /** Serializable requests do not contain an app ID; authority is captured in the supplied capability. */
473
+ export declare const WorkflowControlCommand: Schema.Union<readonly [Schema.Struct<{
474
+ readonly operation: Schema.Literal<"start">;
475
+ readonly workflow: Schema.NonEmptyString;
476
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
477
+ readonly key: Schema.optionalKey<Schema.NonEmptyString>;
478
+ }>, Schema.Struct<{
479
+ readonly operation: Schema.Literal<"get">;
480
+ readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
481
+ }>, Schema.Struct<{
482
+ readonly operation: Schema.Literal<"list">;
483
+ readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
484
+ readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
485
+ readonly limit: Schema.optionalKey<Schema.Int>;
486
+ }>, Schema.Struct<{
487
+ readonly operation: Schema.Literal<"terminate">;
488
+ readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
489
+ }>]>;
490
+ declare const ProviderError_base: Schema.Class<ProviderError, Schema.TaggedStruct<"ProviderError", {
491
+ readonly reason: Schema.Literals<readonly ["unauthorized", "forbidden", "rate_limited", "unavailable", "rejected"]>;
492
+ readonly status: Schema.optional<Schema.Int>;
493
+ readonly accountId: Schema.optional<Schema.brand<Schema.String, "acc">>;
494
+ }>, import("effect/Cause").YieldableError>;
495
+ /** Protocol 1's provider failure, as released: a reason, an HTTP status and the account used. */
496
+ export declare class ProviderError extends ProviderError_base {
497
+ }
498
+ declare const McpError_base: Schema.Class<McpError, Schema.TaggedStruct<"McpError", {
499
+ readonly phase: Schema.Literals<readonly ["connect", "discover", "call", "schema", "transport"]>;
500
+ readonly reason: Schema.Literals<readonly ["request", "unauthorized", "invalid_response", "timeout", "invalid_input"]>;
501
+ readonly status: Schema.optional<Schema.Number>;
502
+ }>, import("effect/Cause").YieldableError>;
503
+ /** Protocol 1's MCP failure, as released: a phase, a reason and an HTTP status. */
504
+ export declare class McpError extends McpError_base {
505
+ }
506
+ declare const SkillLoadFailed_base: Schema.Class<SkillLoadFailed, Schema.TaggedStruct<"SkillLoadFailed", {
507
+ readonly reason: Schema.Literals<readonly ["source", "request", "rate_limited", "document", "limit", "changed", "encoding"]>;
508
+ readonly message: Schema.optional<Schema.String>;
509
+ readonly status: Schema.optional<Schema.Int>;
510
+ }>, import("effect/Cause").YieldableError>;
511
+ /** Protocols 1 to 8's skill loader failure, as released: a reason, a message and an HTTP status. */
512
+ export declare class SkillLoadFailed extends SkillLoadFailed_base {
513
+ }
18
514
  declare const WorkflowFailure_base: Schema.Class<WorkflowFailure, Schema.TaggedStruct<"WorkflowFailure", {
19
515
  readonly reason: Schema.Literals<readonly ["unavailable", "not_found", "input", "output", "operation", "approval", "credentials", "terminated", "execution", "conflict", "engine"]>;
20
516
  readonly retryable: Schema.Boolean;
@@ -1611,10 +2107,10 @@ export declare const protocol1: {
1611
2107
  readonly elicitationRequest: Schema.Struct<{
1612
2108
  readonly mode: Schema.Literal<"form">;
1613
2109
  readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
1614
- readonly $schema: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
2110
+ readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1615
2111
  readonly type: Schema.tag<"object">;
1616
- readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/unstable/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/unstable/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/unstable/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/unstable/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/unstable/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/unstable/ai/McpSchema").ElicitationString, typeof import("effect/unstable/ai/McpSchema").ElicitationNumber, typeof import("effect/unstable/ai/McpSchema").ElicitationBoolean]>>;
1617
- readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
2112
+ readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof McpSchema.LegacyTitledEnum, Schema.Union<readonly [typeof McpSchema.UntitledSingleSelectEnum, typeof McpSchema.TitledSingleSelectEnum]>, Schema.Union<readonly [typeof McpSchema.UntitledMultiSelectEnum, typeof McpSchema.TitledMultiSelectEnum]>]>, typeof McpSchema.ElicitationString, typeof McpSchema.ElicitationNumber, typeof McpSchema.ElicitationBoolean]>>;
2113
+ readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
1618
2114
  }>>;
1619
2115
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1620
2116
  readonly message: Schema.String;
@@ -1624,7 +2120,7 @@ export declare const protocol1: {
1624
2120
  readonly response: Schema.Union<readonly [Schema.Struct<{
1625
2121
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1626
2122
  readonly action: Schema.Literal<"accept">;
1627
- readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
2123
+ readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
1628
2124
  }>, Schema.Struct<{
1629
2125
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1630
2126
  readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
@@ -1692,7 +2188,9 @@ export declare const protocol1: {
1692
2188
  }>, Schema.Struct<{
1693
2189
  readonly operation: Schema.Literal<"acquire">;
1694
2190
  readonly key: Schema.String;
2191
+ /** Claim even a fresh entry, as an explicit refresh does. */
1695
2192
  readonly refresh: Schema.Boolean;
2193
+ /** Claim only while the entry still has this version. Absent accepts the current one. */
1696
2194
  readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1697
2195
  }>, Schema.Struct<{
1698
2196
  readonly operation: Schema.Literal<"claim">;
@@ -1736,7 +2234,7 @@ export declare const protocol1: {
1736
2234
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1737
2235
  }>, Schema.Struct<{
1738
2236
  readonly ok: Schema.Literal<false>;
1739
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
2237
+ readonly error: typeof CacheError;
1740
2238
  }>]>;
1741
2239
  };
1742
2240
  };