apps 0.0.1-beta.0 → 0.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -4
- package/framework-reference.json +1 -1
- package/js/{chunk-BPEFS4YF.js → chunk-2HHMABB6.js} +70 -14
- package/js/{chunk-SBKHUC5L.js → chunk-4LPG6RCH.js} +2 -2
- package/js/{chunk-LOKGDT6B.js → chunk-6IIO4NPI.js} +5 -4
- package/js/chunk-6YBRWRK3.js +160 -0
- package/js/{chunk-7JXHF5IF.js → chunk-BMOIAIVR.js} +1 -1
- package/js/chunk-CZ7CSFO4.js +39 -0
- package/js/{chunk-YDR4CPJA.js → chunk-EVJUVWN2.js} +8 -8
- package/js/{chunk-2OTCEKL2.js → chunk-FW5HBOIK.js} +2352 -1493
- package/js/{chunk-EP6AEUZO.js → chunk-FZJOYIZO.js} +1 -1
- package/js/{chunk-WIDTG42X.js → chunk-G7IE6BKC.js} +79 -26
- package/js/{chunk-VFUZI3NY.js → chunk-HDJH3RPR.js} +4 -4
- package/js/{chunk-HP7E42X6.js → chunk-IHQ4ML7K.js} +693 -219
- package/js/{chunk-Q2FD5IBM.js → chunk-KOXMLKTM.js} +430 -41
- package/js/{chunk-D6BKYP2L.js → chunk-M6ZRRIBI.js} +4 -4
- package/js/chunk-NCYXZN2G.js +6274 -0
- package/js/{chunk-3ANFZFCV.js → chunk-OHRT55C4.js} +15 -15
- package/js/{chunk-R6JMJSVT.js → chunk-PLCMJREA.js} +2 -2
- package/js/{chunk-C24KEZXR.js → chunk-PZ36XMXW.js} +36 -2
- package/js/{chunk-W7Q5EOTS.js → chunk-QKHR7BMF.js} +32 -32
- package/js/{chunk-X3YBZCJW.js → chunk-RBAC33PQ.js} +59 -38
- package/js/{chunk-36DNRFZQ.js → chunk-SATWJKN6.js} +1 -1
- package/js/chunk-SWPD52J7.js +35 -0
- package/js/{chunk-BKVL7XAJ.js → chunk-TE4KO4HI.js} +1 -1
- package/js/chunk-W7D7WVSY.js +18 -0
- package/js/{chunk-KWTCHVLT.js → chunk-X7SFGU4Q.js} +47 -51
- package/js/chunk-YEJOQEII.js +104 -0
- package/js/{chunk-OWD2YICM.js → chunk-ZCAMUXSG.js} +116 -87
- package/js/chunk-ZJWDMTE3.js +63 -0
- package/js/chunk-ZTFQHGEB.js +80 -0
- package/js/client.js +11 -11
- package/js/contracts.js +81 -25
- package/js/effect.js +20 -15
- package/js/graphql.js +223 -121
- package/js/host.js +75 -19
- package/js/index.js +191 -51
- package/js/mcp/effect.js +24 -17
- package/js/mcp/stdio.js +22 -17
- package/js/mcp.js +109 -24
- package/js/openapi.js +43897 -143
- package/js/operations/approval.js +1 -1
- package/js/react.js +4 -4
- package/js/skills/effect.js +12 -0
- package/js/skills.js +857 -0
- package/js/storage/facet.js +7 -7
- package/js/ui/auth/contracts.js +6 -6
- package/js/ui/auth.js +8 -8
- package/js/ui/contracts.js +5 -5
- package/js/ui/serving.js +12 -12
- package/package.json +9 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +79 -0
- package/types/app-cache/src/index.d.ts +35 -0
- package/types/apps/src/contracts/api-response-error.d.ts +43 -0
- package/types/apps/src/contracts/app.d.ts +11 -0
- package/types/apps/src/contracts/cache.d.ts +41 -0
- package/types/apps/src/contracts/dynamic-skills.d.ts +10 -0
- package/types/apps/src/contracts/dynamic-tools.d.ts +13 -0
- package/types/apps/src/contracts/graphql.d.ts +18 -1
- package/types/apps/src/contracts/host.d.ts +200 -7
- package/types/apps/src/contracts/mcp.d.ts +3 -1
- package/types/apps/src/contracts/openapi-compile.d.ts +11 -0
- package/types/apps/src/contracts/openapi-document.d.ts +53 -0
- package/types/apps/src/contracts/openapi.d.ts +150 -30
- package/types/apps/src/contracts/provider-error.d.ts +15 -0
- package/types/apps/src/contracts/provider.d.ts +18 -1
- package/types/apps/src/contracts/skills.d.ts +113 -0
- package/types/apps/src/contracts/swagger-client.d.ts +29 -0
- package/types/apps/src/graphql.d.ts +6 -6
- package/types/apps/src/host.d.ts +1 -0
- package/types/apps/src/implementation/account-operations.d.ts +122 -3
- package/types/apps/src/implementation/app.d.ts +1 -1
- package/types/apps/src/implementation/cache-session.d.ts +7 -0
- package/types/apps/src/implementation/cache.d.ts +6 -0
- package/types/apps/src/implementation/catalog-cache.d.ts +29 -0
- package/types/apps/src/implementation/dynamic-skills.d.ts +7 -0
- package/types/apps/src/implementation/dynamic-tools.d.ts +8 -0
- package/types/apps/src/implementation/elicitation.d.ts +12 -12
- package/types/apps/src/implementation/git.d.ts +25 -0
- package/types/apps/src/implementation/graphql-catalog.d.ts +10 -0
- package/types/apps/src/implementation/graphql.d.ts +81 -3
- package/types/apps/src/implementation/inflate.d.ts +16 -0
- package/types/apps/src/implementation/input-problems.d.ts +3 -0
- package/types/apps/src/implementation/mcp-call.d.ts +3 -2
- package/types/apps/src/implementation/mcp-catalog.d.ts +12 -0
- package/types/apps/src/implementation/mcp-client.d.ts +9 -8
- package/types/apps/src/implementation/mcp-stdio.d.ts +1 -1
- package/types/apps/src/implementation/mcp-tools.d.ts +6 -3
- package/types/apps/src/implementation/mcp.d.ts +39 -2
- package/types/apps/src/implementation/openapi-compile.d.ts +119 -0
- package/types/apps/src/implementation/openapi-document.d.ts +53 -0
- package/types/apps/src/implementation/openapi-request.d.ts +11 -4
- package/types/apps/src/implementation/openapi-source.d.ts +36 -0
- package/types/apps/src/implementation/openapi.d.ts +39 -3
- package/types/apps/src/implementation/provider-error.d.ts +10 -0
- package/types/apps/src/implementation/schema.d.ts +11 -5
- package/types/apps/src/implementation/skill-files.d.ts +10 -0
- package/types/apps/src/implementation/skills.d.ts +43 -0
- package/types/apps/src/index.d.ts +7 -0
- package/types/apps/src/mcp.d.ts +5 -5
- package/types/apps/src/openapi.d.ts +3 -1
- package/types/apps/src/skills.d.ts +72 -0
- package/types/telemetry/src/config.d.ts +2 -0
- package/js/chunk-22WRQZT7.js +0 -389
- package/js/chunk-MLKGABMK.js +0 -9
package/js/chunk-22WRQZT7.js
DELETED
|
@@ -1,389 +0,0 @@
|
|
|
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
|
-
};
|