apps 0.0.1-beta.0

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 (135) hide show
  1. package/README.md +191 -0
  2. package/check-publish.mjs +10 -0
  3. package/framework-reference.json +1 -0
  4. package/js/chunk-22WRQZT7.js +389 -0
  5. package/js/chunk-2OTCEKL2.js +29480 -0
  6. package/js/chunk-36DNRFZQ.js +34 -0
  7. package/js/chunk-3ANFZFCV.js +1799 -0
  8. package/js/chunk-7JXHF5IF.js +138 -0
  9. package/js/chunk-BCSNKUAC.js +0 -0
  10. package/js/chunk-BKVL7XAJ.js +47 -0
  11. package/js/chunk-BPEFS4YF.js +1323 -0
  12. package/js/chunk-C24KEZXR.js +59 -0
  13. package/js/chunk-D6BKYP2L.js +877 -0
  14. package/js/chunk-EP6AEUZO.js +19 -0
  15. package/js/chunk-HP7E42X6.js +1719 -0
  16. package/js/chunk-KWTCHVLT.js +284 -0
  17. package/js/chunk-LOKGDT6B.js +28 -0
  18. package/js/chunk-MLKGABMK.js +9 -0
  19. package/js/chunk-OWD2YICM.js +2486 -0
  20. package/js/chunk-Q2FD5IBM.js +899 -0
  21. package/js/chunk-R6JMJSVT.js +590 -0
  22. package/js/chunk-SBKHUC5L.js +56 -0
  23. package/js/chunk-VFUZI3NY.js +75 -0
  24. package/js/chunk-W7Q5EOTS.js +4375 -0
  25. package/js/chunk-WIDTG42X.js +171 -0
  26. package/js/chunk-X3YBZCJW.js +246 -0
  27. package/js/chunk-YDR4CPJA.js +2357 -0
  28. package/js/client.js +1023 -0
  29. package/js/contracts.js +163 -0
  30. package/js/effect.js +44 -0
  31. package/js/graphql.js +392 -0
  32. package/js/host.js +193 -0
  33. package/js/index.js +284 -0
  34. package/js/mcp/effect.js +23 -0
  35. package/js/mcp/stdio.js +123 -0
  36. package/js/mcp.js +37 -0
  37. package/js/openapi.js +246 -0
  38. package/js/operations/approval.js +9 -0
  39. package/js/react.js +37 -0
  40. package/js/storage/facet.js +546 -0
  41. package/js/ui/auth/contracts.js +19 -0
  42. package/js/ui/auth.js +28 -0
  43. package/js/ui/contracts.js +24 -0
  44. package/js/ui/serving.js +286 -0
  45. package/package.json +116 -0
  46. package/runtime.json +1 -0
  47. package/types/app-data/src/contracts/database.d.ts +193 -0
  48. package/types/app-data/src/implementation/cursor.d.ts +10 -0
  49. package/types/app-data/src/implementation/index-key.d.ts +7 -0
  50. package/types/app-data/src/implementation/promise.d.ts +68 -0
  51. package/types/app-data/src/implementation/range.d.ts +8 -0
  52. package/types/app-data/src/implementation/schema.d.ts +33 -0
  53. package/types/app-data/src/implementation/sqlite.d.ts +11 -0
  54. package/types/app-data/src/index.d.ts +4 -0
  55. package/types/apps/src/approval.d.ts +10 -0
  56. package/types/apps/src/client.d.ts +5 -0
  57. package/types/apps/src/contracts/app.d.ts +58 -0
  58. package/types/apps/src/contracts/approval.d.ts +14 -0
  59. package/types/apps/src/contracts/context.d.ts +25 -0
  60. package/types/apps/src/contracts/elicitation.d.ts +86 -0
  61. package/types/apps/src/contracts/graphql.d.ts +102 -0
  62. package/types/apps/src/contracts/host.d.ts +568 -0
  63. package/types/apps/src/contracts/http.d.ts +20 -0
  64. package/types/apps/src/contracts/live.d.ts +26 -0
  65. package/types/apps/src/contracts/mcp.d.ts +93 -0
  66. package/types/apps/src/contracts/openapi.d.ts +105 -0
  67. package/types/apps/src/contracts/operations.d.ts +30 -0
  68. package/types/apps/src/contracts/optimistic.d.ts +22 -0
  69. package/types/apps/src/contracts/provider.d.ts +96 -0
  70. package/types/apps/src/contracts/schedules.d.ts +51 -0
  71. package/types/apps/src/contracts/schema.d.ts +20 -0
  72. package/types/apps/src/contracts/storage.d.ts +68 -0
  73. package/types/apps/src/contracts/tools.d.ts +11 -0
  74. package/types/apps/src/contracts/ui-auth.d.ts +28 -0
  75. package/types/apps/src/contracts/ui.d.ts +90 -0
  76. package/types/apps/src/contracts/webhook-protocol.d.ts +102 -0
  77. package/types/apps/src/contracts/webhooks.d.ts +53 -0
  78. package/types/apps/src/contracts/workflows.d.ts +277 -0
  79. package/types/apps/src/effect.d.ts +10 -0
  80. package/types/apps/src/facet.d.ts +5 -0
  81. package/types/apps/src/graphql.d.ts +10 -0
  82. package/types/apps/src/host.d.ts +16 -0
  83. package/types/apps/src/implementation/account-operations.d.ts +32 -0
  84. package/types/apps/src/implementation/app.d.ts +40 -0
  85. package/types/apps/src/implementation/authoring.d.ts +12 -0
  86. package/types/apps/src/implementation/elicitation.d.ts +103 -0
  87. package/types/apps/src/implementation/graphql.d.ts +5 -0
  88. package/types/apps/src/implementation/host.d.ts +3 -0
  89. package/types/apps/src/implementation/http.d.ts +5 -0
  90. package/types/apps/src/implementation/live.d.ts +18 -0
  91. package/types/apps/src/implementation/mcp-call.d.ts +19 -0
  92. package/types/apps/src/implementation/mcp-client.d.ts +50 -0
  93. package/types/apps/src/implementation/mcp-stdio.d.ts +4 -0
  94. package/types/apps/src/implementation/mcp-tools.d.ts +6 -0
  95. package/types/apps/src/implementation/mcp.d.ts +4 -0
  96. package/types/apps/src/implementation/openapi-request.d.ts +11 -0
  97. package/types/apps/src/implementation/openapi.d.ts +5 -0
  98. package/types/apps/src/implementation/operations.d.ts +65 -0
  99. package/types/apps/src/implementation/optimistic.d.ts +30 -0
  100. package/types/apps/src/implementation/protocol-operations.d.ts +24 -0
  101. package/types/apps/src/implementation/provider.d.ts +16 -0
  102. package/types/apps/src/implementation/query-commit.d.ts +10 -0
  103. package/types/apps/src/implementation/schedules.d.ts +16 -0
  104. package/types/apps/src/implementation/schema.d.ts +93 -0
  105. package/types/apps/src/implementation/storage.d.ts +13 -0
  106. package/types/apps/src/implementation/ui-auth.d.ts +13 -0
  107. package/types/apps/src/implementation/ui-client.d.ts +16 -0
  108. package/types/apps/src/implementation/ui-errors.d.ts +2 -0
  109. package/types/apps/src/implementation/ui-serving.d.ts +16 -0
  110. package/types/apps/src/implementation/ui-watch.d.ts +2 -0
  111. package/types/apps/src/implementation/webhooks.d.ts +29 -0
  112. package/types/apps/src/implementation/workflow-context.d.ts +8 -0
  113. package/types/apps/src/implementation/workflow-rpc.d.ts +5 -0
  114. package/types/apps/src/implementation/workflows.d.ts +27 -0
  115. package/types/apps/src/index.d.ts +58 -0
  116. package/types/apps/src/mcp-stdio.d.ts +8 -0
  117. package/types/apps/src/mcp.d.ts +10 -0
  118. package/types/apps/src/openapi.d.ts +10 -0
  119. package/types/apps/src/react.d.ts +7 -0
  120. package/types/apps/src/ui-auth.d.ts +3 -0
  121. package/types/apps/src/ui-serving.d.ts +3 -0
  122. package/types/telemetry/src/browser-operations.d.ts +16 -0
  123. package/types/telemetry/src/browser-performance.d.ts +11 -0
  124. package/types/telemetry/src/browser-request-timing.d.ts +2 -0
  125. package/types/telemetry/src/browser.d.ts +27 -0
  126. package/types/telemetry/src/config.d.ts +83 -0
  127. package/types/telemetry/src/context.d.ts +14 -0
  128. package/types/telemetry/src/index.d.ts +9 -0
  129. package/types/telemetry/src/layer.d.ts +7 -0
  130. package/types/telemetry/src/measurements.d.ts +8 -0
  131. package/types/telemetry/src/pending-span.d.ts +7 -0
  132. package/types/telemetry/src/relay.d.ts +28 -0
  133. package/types/telemetry/src/span-attributes.d.ts +29 -0
  134. package/types/telemetry/src/trace-context.d.ts +20 -0
  135. package/types/telemetry/src/transport.d.ts +6 -0
@@ -0,0 +1,389 @@
1
+ import {
2
+ ApprovalElicitation,
3
+ ElicitationFailed,
4
+ OAuth2Config,
5
+ OperationSchedule,
6
+ WorkflowCommand,
7
+ WorkflowFailure
8
+ } from "./chunk-HP7E42X6.js";
9
+ import {
10
+ DatabaseSchema
11
+ } from "./chunk-7JXHF5IF.js";
12
+ import {
13
+ AccountId,
14
+ HttpUrl,
15
+ JsonObject,
16
+ JsonValue
17
+ } from "./chunk-36DNRFZQ.js";
18
+ import {
19
+ Context_exports,
20
+ Schema_exports
21
+ } from "./chunk-2OTCEKL2.js";
22
+
23
+ // src/contracts/tools.ts
24
+ var ToolAnnotations = Schema_exports.Struct({
25
+ title: Schema_exports.optionalKey(Schema_exports.String),
26
+ readOnlyHint: Schema_exports.optionalKey(Schema_exports.Boolean),
27
+ destructiveHint: Schema_exports.optionalKey(Schema_exports.Boolean),
28
+ idempotentHint: Schema_exports.optionalKey(Schema_exports.Boolean),
29
+ openWorldHint: Schema_exports.optionalKey(Schema_exports.Boolean)
30
+ });
31
+
32
+ // src/contracts/mcp.ts
33
+ var McpClientLimits = Schema_exports.Struct({
34
+ timeoutMs: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
35
+ maxTimeoutMs: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
36
+ maxTools: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
37
+ maxPaginationCursors: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
38
+ cleanupTimeoutMs: Schema_exports.Int.check(Schema_exports.isGreaterThan(0))
39
+ });
40
+ var defaultMcpClientLimits = McpClientLimits.make({
41
+ timeoutMs: 3e4,
42
+ maxTimeoutMs: 3e5,
43
+ maxTools: 5e4,
44
+ maxPaginationCursors: 1e3,
45
+ cleanupTimeoutMs: 1e3
46
+ });
47
+ var mcpSdkTimerCeilingMs = 2147483647;
48
+ var McpToolsOptions = Schema_exports.Struct({
49
+ url: HttpUrl,
50
+ headers: Schema_exports.optional(Schema_exports.Record(Schema_exports.String, Schema_exports.String)),
51
+ signal: Schema_exports.optional(Schema_exports.instanceOf(AbortSignal)),
52
+ timeoutMs: Schema_exports.optional(
53
+ Schema_exports.Number.check(
54
+ Schema_exports.isInt(),
55
+ Schema_exports.isBetween({ minimum: 1, maximum: defaultMcpClientLimits.maxTimeoutMs })
56
+ )
57
+ )
58
+ });
59
+ var McpToolResult = Schema_exports.Struct({
60
+ content: Schema_exports.Array(JsonObject),
61
+ structuredContent: Schema_exports.optional(JsonObject),
62
+ isError: Schema_exports.optional(Schema_exports.Boolean),
63
+ _meta: Schema_exports.optional(JsonObject)
64
+ });
65
+ var McpToolMetadata = Schema_exports.Struct({
66
+ name: Schema_exports.String,
67
+ title: Schema_exports.optional(Schema_exports.String),
68
+ description: Schema_exports.optional(Schema_exports.String),
69
+ inputSchema: JsonObject,
70
+ outputSchema: Schema_exports.optional(JsonObject),
71
+ annotations: Schema_exports.optional(ToolAnnotations),
72
+ _meta: Schema_exports.optional(JsonObject)
73
+ });
74
+ var McpError = class extends Schema_exports.TaggedError()("McpError", {
75
+ phase: Schema_exports.Literals(["connect", "discover", "call", "schema", "transport"]),
76
+ reason: Schema_exports.Literals([
77
+ "request",
78
+ "unauthorized",
79
+ "invalid_response",
80
+ "timeout",
81
+ "invalid_input"
82
+ ]),
83
+ status: Schema_exports.optional(Schema_exports.Number)
84
+ }) {
85
+ };
86
+ var ProcessConfig = Schema_exports.Struct({
87
+ command: Schema_exports.NonEmptyString,
88
+ args: Schema_exports.Array(Schema_exports.String),
89
+ cwd: Schema_exports.optional(Schema_exports.String),
90
+ env: Schema_exports.Record(Schema_exports.String, Schema_exports.String),
91
+ timeoutMs: Schema_exports.Int.check(
92
+ Schema_exports.isBetween({ minimum: 1, maximum: defaultMcpClientLimits.maxTimeoutMs })
93
+ )
94
+ });
95
+
96
+ // src/contracts/webhook-protocol.ts
97
+ var WebhookTransportLimits = Schema_exports.Struct({
98
+ maxBodyBytes: Schema_exports.Int.check(Schema_exports.isGreaterThan(0))
99
+ });
100
+ var defaultWebhookTransportLimits = WebhookTransportLimits.make({
101
+ maxBodyBytes: 1024 * 1024
102
+ });
103
+ var encodedBodyChars = 4 * Math.ceil(defaultWebhookTransportLimits.maxBodyBytes / 3);
104
+ var WebhookRequestData = Schema_exports.Struct({
105
+ url: HttpUrl,
106
+ method: Schema_exports.Literals(["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]),
107
+ headers: Schema_exports.Record(Schema_exports.String, Schema_exports.String),
108
+ body: Schema_exports.String.check(Schema_exports.isMaxLength(encodedBodyChars))
109
+ });
110
+ var WebhookResponseData = Schema_exports.Struct({
111
+ status: Schema_exports.Int.check(Schema_exports.isBetween({ minimum: 200, maximum: 599 })),
112
+ headers: Schema_exports.Record(Schema_exports.String, Schema_exports.String),
113
+ body: Schema_exports.String.check(Schema_exports.isMaxLength(encodedBodyChars))
114
+ });
115
+ var ManualWebhookSetup = Schema_exports.Struct({
116
+ instructions: Schema_exports.NonEmptyString,
117
+ signingSecret: Schema_exports.Literals(["executor", "provider"])
118
+ });
119
+ var ManualWebhookDescriptor = Schema_exports.Struct({
120
+ ...ManualWebhookSetup.fields,
121
+ stateSchema: JsonObject
122
+ });
123
+ var HostedWebhook = Schema_exports.Struct({
124
+ name: Schema_exports.NonEmptyString,
125
+ account: Schema_exports.NonEmptyString,
126
+ configSchema: JsonObject,
127
+ setup: Schema_exports.optionalKey(ManualWebhookDescriptor)
128
+ });
129
+ var identity = {
130
+ name: Schema_exports.NonEmptyString,
131
+ subscriptionId: Schema_exports.NonEmptyString,
132
+ sourceAccount: AccountId,
133
+ callbackUrl: HttpUrl,
134
+ secret: Schema_exports.String,
135
+ config: JsonValue
136
+ };
137
+ var WebhookCommand = Schema_exports.Union([
138
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhooks") }),
139
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhook-validate"), ...identity }),
140
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhook-complete"), ...identity, state: JsonValue }),
141
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhook-register"), ...identity }),
142
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhook-unregister"), ...identity, state: JsonValue }),
143
+ Schema_exports.Struct({
144
+ operation: Schema_exports.Literal("webhook-handle"),
145
+ ...identity,
146
+ state: JsonValue,
147
+ request: WebhookRequestData
148
+ })
149
+ ]);
150
+
151
+ // src/contracts/operations.ts
152
+ var OperationToolPrefixes = { query: "queries.", mutate: "mutations." };
153
+
154
+ // src/contracts/host.ts
155
+ var DeclaredAuthMethod = Schema_exports.Union([
156
+ Schema_exports.Struct({ type: Schema_exports.Literal("secrets"), label: Schema_exports.String, fields: JsonObject }),
157
+ Schema_exports.Struct({
158
+ type: Schema_exports.Literal("oauth2"),
159
+ ...OAuth2Config.members[0].fields,
160
+ response: JsonObject
161
+ }),
162
+ Schema_exports.Struct({
163
+ type: Schema_exports.Literal("oauth2"),
164
+ ...OAuth2Config.members[1].fields,
165
+ response: JsonObject
166
+ }),
167
+ Schema_exports.Struct({
168
+ type: Schema_exports.Literal("oauth2"),
169
+ ...OAuth2Config.members[2].fields,
170
+ response: JsonObject
171
+ }),
172
+ Schema_exports.Struct({
173
+ type: Schema_exports.Literal("oauth2"),
174
+ ...OAuth2Config.members[3].fields,
175
+ response: JsonObject
176
+ })
177
+ ]);
178
+ var DeclaredProvider = Schema_exports.Struct({
179
+ name: Schema_exports.NonEmptyString,
180
+ auth: Schema_exports.Record(Schema_exports.NonEmptyString, DeclaredAuthMethod)
181
+ });
182
+ var DeclaredRequirements = Schema_exports.Struct({
183
+ database: Schema_exports.optionalKey(DatabaseSchema),
184
+ accounts: Schema_exports.Record(
185
+ Schema_exports.NonEmptyString,
186
+ Schema_exports.Struct({
187
+ definition: DeclaredProvider,
188
+ cardinality: Schema_exports.Literals(["one", "many"])
189
+ })
190
+ )
191
+ });
192
+ var ResolvedAccount = Schema_exports.Struct({
193
+ id: AccountId,
194
+ provider: DeclaredProvider,
195
+ method: Schema_exports.NonEmptyString,
196
+ fields: JsonObject
197
+ });
198
+ var ResolvedAccounts = Schema_exports.Record(
199
+ Schema_exports.NonEmptyString,
200
+ Schema_exports.Union([ResolvedAccount, Schema_exports.Array(ResolvedAccount)])
201
+ );
202
+ var TrustedToolApproval = Schema_exports.Struct({ tool: Schema_exports.NonEmptyString, input: JsonValue });
203
+ var HostedTool = Schema_exports.Struct({
204
+ schedules: Schema_exports.optionalKey(Schema_exports.Array(OperationSchedule)),
205
+ name: Schema_exports.NonEmptyString,
206
+ description: Schema_exports.String,
207
+ inputSchema: JsonObject,
208
+ readOnly: Schema_exports.optionalKey(Schema_exports.Boolean),
209
+ title: Schema_exports.optionalKey(Schema_exports.String),
210
+ outputSchema: Schema_exports.optionalKey(JsonObject),
211
+ annotations: Schema_exports.optionalKey(ToolAnnotations),
212
+ _meta: Schema_exports.optionalKey(JsonObject)
213
+ });
214
+ var HostRequest = Schema_exports.Union([
215
+ WorkflowCommand,
216
+ WebhookCommand,
217
+ Schema_exports.Struct({ operation: Schema_exports.Literal("requirements") }),
218
+ Schema_exports.Struct({ operation: Schema_exports.Literal("inspect") }),
219
+ Schema_exports.Struct({
220
+ operation: Schema_exports.Literal("query"),
221
+ name: Schema_exports.NonEmptyString,
222
+ input: JsonValue
223
+ }),
224
+ Schema_exports.Struct({
225
+ operation: Schema_exports.Literal("mutate"),
226
+ name: Schema_exports.NonEmptyString,
227
+ input: JsonValue
228
+ }),
229
+ Schema_exports.Struct({
230
+ operation: Schema_exports.Literal("call"),
231
+ tool: Schema_exports.NonEmptyString,
232
+ input: JsonValue
233
+ })
234
+ ]);
235
+ var HostRequestInvalid = class extends Schema_exports.TaggedError()(
236
+ "HostRequestInvalid",
237
+ {}
238
+ ) {
239
+ };
240
+ var HostAccountsInvalid = class extends Schema_exports.TaggedError()(
241
+ "HostAccountsInvalid",
242
+ {}
243
+ ) {
244
+ };
245
+ var HostDeclarationInvalid = class extends Schema_exports.TaggedError()(
246
+ "HostDeclarationInvalid",
247
+ {}
248
+ ) {
249
+ };
250
+ var HostEvaluationFailed = class extends Schema_exports.TaggedError()(
251
+ "HostEvaluationFailed",
252
+ {}
253
+ ) {
254
+ };
255
+ var HostOperationNotFound = class extends Schema_exports.TaggedError()(
256
+ "HostOperationNotFound",
257
+ {}
258
+ ) {
259
+ };
260
+ var HostOperationFailed = class extends Schema_exports.TaggedError()(
261
+ "HostOperationFailed",
262
+ {}
263
+ ) {
264
+ };
265
+ var HostToolNotFound = class extends Schema_exports.TaggedError()(
266
+ "HostToolNotFound",
267
+ {}
268
+ ) {
269
+ };
270
+ var HostInputInvalid = class extends Schema_exports.TaggedError()(
271
+ "HostInputInvalid",
272
+ {}
273
+ ) {
274
+ };
275
+ var HostToolBlocked = class extends Schema_exports.TaggedError()("HostToolBlocked", {}) {
276
+ };
277
+ var HostToolApprovalRequired = class extends Schema_exports.TaggedError()(
278
+ "HostToolApprovalRequired",
279
+ { input: JsonValue, elicitation: ApprovalElicitation }
280
+ ) {
281
+ };
282
+ var HostToolPolicyFailed = class extends Schema_exports.TaggedError()(
283
+ "HostToolPolicyFailed",
284
+ {}
285
+ ) {
286
+ };
287
+ var HostOutputInvalid = class extends Schema_exports.TaggedError()(
288
+ "HostOutputInvalid",
289
+ {}
290
+ ) {
291
+ };
292
+ var HostRequirementsError = Schema_exports.Union([HostRequestInvalid, HostDeclarationInvalid]);
293
+ var HostInspectError = Schema_exports.Union([
294
+ HostRequestInvalid,
295
+ HostDeclarationInvalid,
296
+ HostAccountsInvalid,
297
+ HostEvaluationFailed
298
+ ]);
299
+ var HostCallError = Schema_exports.Union([
300
+ WorkflowFailure,
301
+ HostInspectError,
302
+ HostToolNotFound,
303
+ HostOperationNotFound,
304
+ HostOperationFailed,
305
+ HostInputInvalid,
306
+ HostOutputInvalid,
307
+ HostToolBlocked,
308
+ HostToolApprovalRequired,
309
+ HostToolPolicyFailed,
310
+ ElicitationFailed
311
+ ]);
312
+ var HostDataError = HostCallError;
313
+ var HostError = Schema_exports.Union([
314
+ WorkflowFailure,
315
+ HostRequestInvalid,
316
+ HostAccountsInvalid,
317
+ HostDeclarationInvalid,
318
+ HostEvaluationFailed,
319
+ HostOperationNotFound,
320
+ HostOperationFailed,
321
+ HostToolNotFound,
322
+ HostInputInvalid,
323
+ HostOutputInvalid,
324
+ HostToolBlocked,
325
+ HostToolApprovalRequired,
326
+ HostToolPolicyFailed,
327
+ ElicitationFailed
328
+ ]);
329
+ var ToolResultObservation = Context_exports.Reference(
330
+ "apps/ToolResultObservation",
331
+ { defaultValue: () => ({ failed: () => {
332
+ } }) }
333
+ );
334
+ var HostResponse = Schema_exports.Union([
335
+ Schema_exports.Struct({
336
+ ok: Schema_exports.Literal(true),
337
+ value: JsonValue,
338
+ toolError: Schema_exports.optionalKey(Schema_exports.Literal(true))
339
+ }),
340
+ Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: HostError })
341
+ ]);
342
+
343
+ export {
344
+ ToolAnnotations,
345
+ McpClientLimits,
346
+ defaultMcpClientLimits,
347
+ mcpSdkTimerCeilingMs,
348
+ McpToolsOptions,
349
+ McpToolResult,
350
+ McpToolMetadata,
351
+ McpError,
352
+ ProcessConfig,
353
+ WebhookTransportLimits,
354
+ defaultWebhookTransportLimits,
355
+ WebhookRequestData,
356
+ WebhookResponseData,
357
+ ManualWebhookSetup,
358
+ ManualWebhookDescriptor,
359
+ HostedWebhook,
360
+ WebhookCommand,
361
+ OperationToolPrefixes,
362
+ DeclaredAuthMethod,
363
+ DeclaredProvider,
364
+ DeclaredRequirements,
365
+ ResolvedAccount,
366
+ ResolvedAccounts,
367
+ TrustedToolApproval,
368
+ HostedTool,
369
+ HostRequest,
370
+ HostRequestInvalid,
371
+ HostAccountsInvalid,
372
+ HostDeclarationInvalid,
373
+ HostEvaluationFailed,
374
+ HostOperationNotFound,
375
+ HostOperationFailed,
376
+ HostToolNotFound,
377
+ HostInputInvalid,
378
+ HostToolBlocked,
379
+ HostToolApprovalRequired,
380
+ HostToolPolicyFailed,
381
+ HostOutputInvalid,
382
+ HostRequirementsError,
383
+ HostInspectError,
384
+ HostCallError,
385
+ HostDataError,
386
+ HostError,
387
+ ToolResultObservation,
388
+ HostResponse
389
+ };