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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-X5U5KIWQ.js → chunk-47F7VXST.js} +1 -1
  3. package/js/{chunk-PO5NPRFT.js → chunk-BTSIG4NQ.js} +4 -4
  4. package/js/{chunk-D45JTD6N.js → chunk-JK5S2N2S.js} +2 -2
  5. package/js/{chunk-QKHTRD6G.js → chunk-L4K2K22P.js} +2 -2
  6. package/js/{chunk-GDYPM7RS.js → chunk-PXXZ6ABC.js} +2 -2
  7. package/js/{chunk-SVHI6AKV.js → chunk-QEBRH5AP.js} +2 -2
  8. package/js/{chunk-JY56GVSV.js → chunk-TLWLJ7PD.js} +1076 -224
  9. package/js/{chunk-YQD2MLFY.js → chunk-XCSG7FT7.js} +2 -2
  10. package/js/contracts.js +3 -3
  11. package/js/effect.js +5 -5
  12. package/js/graphql.js +6 -6
  13. package/js/host.js +5 -5
  14. package/js/index.js +3 -3
  15. package/js/mcp/effect.js +7 -7
  16. package/js/mcp/stdio.js +7 -7
  17. package/js/mcp.js +8 -8
  18. package/js/openapi.js +4 -4
  19. package/package.json +1 -1
  20. package/runtime.json +1 -1
  21. package/types/apps/src/contracts/host.d.ts +9 -9
  22. package/types/apps/src/contracts/protocol-version.d.ts +1 -1
  23. package/types/apps/src/contracts/protocols/1.d.ts +486 -9
  24. package/types/apps/src/contracts/protocols/10.d.ts +6 -6
  25. package/types/apps/src/contracts/protocols/2.d.ts +5 -4
  26. package/types/apps/src/contracts/protocols/3.d.ts +69 -8
  27. package/types/apps/src/contracts/protocols/4.d.ts +18 -9
  28. package/types/apps/src/contracts/protocols/5.d.ts +31 -5
  29. package/types/apps/src/contracts/protocols/6.d.ts +14 -5
  30. package/types/apps/src/contracts/protocols/7.d.ts +6 -5
  31. package/types/apps/src/contracts/protocols/8.d.ts +61 -9
  32. package/types/apps/src/contracts/protocols/9.d.ts +7 -9
  33. package/types/apps/src/contracts/protocols/current.d.ts +2476 -0
  34. package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
  35. package/types/apps/src/contracts/protocols/oauth.d.ts +46 -1
  36. package/types/apps/src/implementation/router-catalog.d.ts +2 -2
  37. package/types/apps/src/implementation/webhooks.d.ts +1 -1
  38. package/types/apps/src/contracts/protocols/11.d.ts +0 -1098
@@ -1,11 +1,9 @@
1
1
  import {
2
2
  CacheCommand,
3
3
  CacheReply,
4
- FailureCode,
5
4
  FailureDetail,
6
5
  FailureMessage,
7
6
  FailureName,
8
- FailureSource,
9
7
  ProviderError,
10
8
  UpstreamError
11
9
  } from "./chunk-MWKHKOTL.js";
@@ -2188,6 +2186,16 @@ var ManyAccounts = class extends Data_exports.TaggedClass("many") {
2188
2186
  var frameworkProtocol = 11;
2189
2187
 
2190
2188
  // src/contracts/protocols/oauth.ts
2189
+ var HttpUrl2 = Schema_exports.String.check(
2190
+ Schema_exports.makeFilter((value) => {
2191
+ try {
2192
+ const url = new URL(value);
2193
+ return url.protocol === "https:" || url.protocol === "http:";
2194
+ } catch {
2195
+ return false;
2196
+ }
2197
+ })
2198
+ );
2191
2199
  var OAuthClientAuth2 = Schema_exports.Literals([
2192
2200
  "none",
2193
2201
  "client_secret_post",
@@ -2263,12 +2271,12 @@ var oauthOptions2 = {
2263
2271
  authorizationParams: Schema_exports.optionalKey(OAuthAuthorizationParams2),
2264
2272
  tokenEndpointAuthMethod: Schema_exports.optionalKey(OAuthClientAuth2),
2265
2273
  /** Omitted uses discovery; null explicitly suppresses the resource parameter. */
2266
- resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl))
2274
+ resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl2))
2267
2275
  };
2268
2276
  var OAuth2Config2 = Schema_exports.Union([
2269
2277
  Schema_exports.Struct({
2270
2278
  ...oauthOptions2,
2271
- discover: HttpUrl,
2279
+ discover: HttpUrl2,
2272
2280
  authorizationUrl: Schema_exports.optionalKey(Schema_exports.Never),
2273
2281
  tokenUrl: Schema_exports.optionalKey(Schema_exports.Never),
2274
2282
  revocationUrl: Schema_exports.optionalKey(Schema_exports.Never),
@@ -2277,47 +2285,161 @@ var OAuth2Config2 = Schema_exports.Union([
2277
2285
  Schema_exports.Struct({
2278
2286
  ...oauthOptions2,
2279
2287
  /** Its query is kept; it cannot set protocol parameters or repeat `authorizationParams`. */
2280
- authorizationUrl: HttpUrl,
2281
- tokenUrl: HttpUrl,
2282
- revocationUrl: Schema_exports.optionalKey(HttpUrl),
2288
+ authorizationUrl: HttpUrl2,
2289
+ tokenUrl: HttpUrl2,
2290
+ revocationUrl: Schema_exports.optionalKey(HttpUrl2),
2283
2291
  scopes: Schema_exports.Array(Schema_exports.String),
2284
2292
  /** RFC 8414 issuer identifier. Declared issuers are checked against the callback's `iss`. */
2285
- issuer: Schema_exports.optionalKey(HttpUrl),
2293
+ issuer: Schema_exports.optionalKey(HttpUrl2),
2286
2294
  discover: Schema_exports.optionalKey(Schema_exports.Never)
2287
2295
  }).check(declaredAuthorizationQuery2),
2288
2296
  Schema_exports.Struct({
2289
2297
  grant: Schema_exports.Literal("client_credentials"),
2290
- discover: HttpUrl,
2298
+ discover: HttpUrl2,
2291
2299
  authorizationUrl: Schema_exports.optionalKey(Schema_exports.Never),
2292
2300
  tokenUrl: Schema_exports.optionalKey(Schema_exports.Never),
2293
2301
  revocationUrl: Schema_exports.optionalKey(Schema_exports.Never),
2294
2302
  scopes: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.String)),
2295
2303
  ...tokenRequestOptions2,
2296
2304
  tokenEndpointAuthMethod: OAuthSecretClientAuth2,
2297
- resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl))
2305
+ resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl2))
2298
2306
  }),
2299
2307
  Schema_exports.Struct({
2300
2308
  grant: Schema_exports.Literal("client_credentials"),
2301
- tokenUrl: HttpUrl,
2302
- revocationUrl: Schema_exports.optionalKey(HttpUrl),
2309
+ tokenUrl: HttpUrl2,
2310
+ revocationUrl: Schema_exports.optionalKey(HttpUrl2),
2303
2311
  scopes: Schema_exports.Array(Schema_exports.String),
2304
2312
  ...tokenRequestOptions2,
2305
2313
  tokenEndpointAuthMethod: OAuthSecretClientAuth2,
2306
- resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl)),
2314
+ resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl2)),
2307
2315
  authorizationUrl: Schema_exports.optionalKey(Schema_exports.Never),
2308
2316
  discover: Schema_exports.optionalKey(Schema_exports.Never)
2309
2317
  })
2310
2318
  ]);
2311
2319
 
2312
- // src/contracts/schedules.ts
2313
- var minimumIntervalMilliseconds = 6e4;
2314
- var count2 = Schema_exports.Int.check(Schema_exports.isGreaterThan(0));
2315
- var absent = Schema_exports.optionalKey(Schema_exports.Never);
2316
- var Interval = Schema_exports.Union([
2317
- Schema_exports.Struct({ seconds: count2, minutes: absent, hours: absent }),
2318
- Schema_exports.Struct({ seconds: absent, minutes: count2, hours: absent }),
2319
- Schema_exports.Struct({ seconds: absent, minutes: absent, hours: count2 })
2320
+ // src/contracts/protocols/1.ts
2321
+ var JsonValue2 = Schema_exports.Json;
2322
+ var JsonObject3 = Schema_exports.Record(Schema_exports.String, JsonValue2);
2323
+ var AccountId2 = Schema_exports.String.pipe(
2324
+ Schema_exports.check(Schema_exports.isStartingWith("acc_"), Schema_exports.isMinLength(5)),
2325
+ Schema_exports.brand("acc")
2326
+ );
2327
+ var CacheError = class extends Schema_exports.TaggedError()("CacheError", {
2328
+ reason: Schema_exports.Literals(["unavailable", "storage", "invalid", "capacity", "timeout"])
2329
+ }) {
2330
+ };
2331
+ var Key = Schema_exports.String.check(Schema_exports.isPattern(/^[a-f0-9]{64}$/));
2332
+ var Time = Schema_exports.Finite.check(Schema_exports.isGreaterThanOrEqualTo(0));
2333
+ var CacheEntry = Schema_exports.Struct({
2334
+ value: Schema_exports.Json,
2335
+ version: Schema_exports.String,
2336
+ freshUntil: Time,
2337
+ staleUntil: Time
2338
+ });
2339
+ var CacheCommand2 = Schema_exports.Union([
2340
+ Schema_exports.Struct({ operation: Schema_exports.Literal("read"), keys: Schema_exports.Array(Key) }),
2341
+ Schema_exports.Struct({
2342
+ operation: Schema_exports.Literal("acquire"),
2343
+ key: Key,
2344
+ /** Claim even a fresh entry, as an explicit refresh does. */
2345
+ refresh: Schema_exports.Boolean,
2346
+ /** Claim only while the entry still has this version. Absent accepts the current one. */
2347
+ version: Schema_exports.optionalKey(Schema_exports.NullOr(Schema_exports.String))
2348
+ }),
2349
+ Schema_exports.Struct({
2350
+ operation: Schema_exports.Literal("claim"),
2351
+ key: Key,
2352
+ version: Schema_exports.NullOr(Schema_exports.String)
2353
+ }),
2354
+ Schema_exports.Struct({
2355
+ operation: Schema_exports.Literal("publish"),
2356
+ key: Key,
2357
+ lease: Schema_exports.String,
2358
+ entry: CacheEntry
2359
+ }),
2360
+ Schema_exports.Struct({ operation: Schema_exports.Literal("release"), key: Key, lease: Schema_exports.String }),
2361
+ /** Extend a lease its holder still owns. Replies false once the lease lapsed or was replaced. */
2362
+ Schema_exports.Struct({ operation: Schema_exports.Literal("renew"), key: Key, lease: Schema_exports.String }),
2363
+ Schema_exports.Struct({
2364
+ operation: Schema_exports.Literal("write"),
2365
+ entries: Schema_exports.Array(Schema_exports.Struct({ key: Key, entry: CacheEntry }))
2366
+ }),
2367
+ Schema_exports.Struct({ operation: Schema_exports.Literal("invalidate"), key: Key })
2368
+ ]);
2369
+ var CacheReply2 = Schema_exports.Union([
2370
+ Schema_exports.Struct({ ok: Schema_exports.Literal(true), value: Schema_exports.Json }),
2371
+ Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: CacheError })
2372
+ ]);
2373
+ var DataName2 = Schema_exports.String.check(
2374
+ Schema_exports.makeFilter((value) => /^[A-Za-z][A-Za-z0-9_]*$/.test(value) && value.length <= 128)
2375
+ );
2376
+ var Scalar2 = Schema_exports.Union([Schema_exports.String, Schema_exports.Finite, Schema_exports.Boolean]);
2377
+ var Field2 = Schema_exports.Struct({
2378
+ kind: Schema_exports.Literals(["string", "number", "boolean", "id", "userId"]),
2379
+ optional: Schema_exports.optional(Schema_exports.Boolean),
2380
+ default: Schema_exports.optional(Scalar2),
2381
+ references: Schema_exports.optional(DataName2)
2382
+ });
2383
+ var Index2 = Schema_exports.Struct({ name: DataName2, fields: Schema_exports.NonEmptyArray(DataName2) });
2384
+ var Table2 = Schema_exports.Struct({
2385
+ fields: Schema_exports.Record(DataName2, Field2),
2386
+ indexes: Schema_exports.Array(Index2)
2387
+ });
2388
+ var DatabaseSchema2 = Schema_exports.Record(DataName2, Table2);
2389
+ var maxApiErrorInstructionsLength2 = 4096;
2390
+ var ApiErrorRecovery2 = Schema_exports.Struct({
2391
+ action: Schema_exports.NonEmptyString.check(Schema_exports.isMaxLength(1024)),
2392
+ instructions: Schema_exports.NonEmptyString.check(Schema_exports.isMaxLength(maxApiErrorInstructionsLength2))
2393
+ });
2394
+ var maxApiErrorMessageLength2 = 4096;
2395
+ var ApiErrorResponse2 = Schema_exports.Struct({
2396
+ code: Schema_exports.NonEmptyString.check(Schema_exports.isMaxLength(128)),
2397
+ status: Schema_exports.Int.check(Schema_exports.isBetween({ minimum: 400, maximum: 599 })),
2398
+ message: Schema_exports.NonEmptyString.check(Schema_exports.isMaxLength(maxApiErrorMessageLength2)),
2399
+ recovery: Schema_exports.optionalKey(ApiErrorRecovery2)
2400
+ });
2401
+ var OpenapiResponseError2 = class extends Schema_exports.TaggedError()(
2402
+ "OpenapiResponseError",
2403
+ ApiErrorResponse2.fields
2404
+ ) {
2405
+ };
2406
+ var FormElicitation2 = Schema_exports.Struct({
2407
+ ...ElicitRequestFormParams.fields,
2408
+ mode: Schema_exports.Literal("form"),
2409
+ requestedSchema: Schema_exports.toEncoded(ElicitRequestFormParams.fields.requestedSchema),
2410
+ _meta: Schema_exports.optional(JsonObject3)
2411
+ });
2412
+ var ElicitationResponse2 = Schema_exports.Union([
2413
+ Schema_exports.Struct({ ...ElicitAcceptResult.fields, _meta: Schema_exports.optional(JsonObject3) }),
2414
+ Schema_exports.Struct({ ...ElicitDeclineResult.fields, _meta: Schema_exports.optional(JsonObject3) })
2415
+ ]);
2416
+ var ElicitationFailed2 = class extends Schema_exports.TaggedError()(
2417
+ "ElicitationFailed",
2418
+ {
2419
+ reason: Schema_exports.Literals([
2420
+ "unavailable",
2421
+ "transaction",
2422
+ "invalid-request",
2423
+ "invalid-response",
2424
+ "transport",
2425
+ "expired",
2426
+ "forbidden"
2427
+ ])
2428
+ }
2429
+ ) {
2430
+ };
2431
+ var ElicitationReply2 = Schema_exports.Union([
2432
+ Schema_exports.Struct({ ok: Schema_exports.Literal(true), response: ElicitationResponse2 }),
2433
+ Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: ElicitationFailed2 })
2320
2434
  ]);
2435
+ var ApprovalElicitation2 = Schema_exports.Struct({
2436
+ ...FormElicitation2.fields,
2437
+ requestedSchema: Schema_exports.Struct({
2438
+ type: Schema_exports.Literal("object"),
2439
+ properties: Schema_exports.Record(Schema_exports.String, Schema_exports.Never)
2440
+ })
2441
+ });
2442
+ var minimumIntervalMilliseconds = 6e4;
2321
2443
  var CalendarSchedule = Schema_exports.Struct({
2322
2444
  expression: Schema_exports.NonEmptyString,
2323
2445
  timezone: Schema_exports.NonEmptyString
@@ -2341,14 +2463,202 @@ var ScheduleTiming = Schema_exports.Union([
2341
2463
  var OperationSchedule = Schema_exports.Struct({
2342
2464
  name: Schema_exports.NonEmptyString,
2343
2465
  timing: ScheduleTiming,
2344
- input: JsonValue
2466
+ input: JsonValue2
2345
2467
  });
2346
-
2347
- // src/contracts/protocols/1.ts
2468
+ var SkillFilePath = Schema_exports.NonEmptyString.check(
2469
+ Schema_exports.makeFilter(
2470
+ (path) => !path.startsWith("/") && !path.includes("\\") && !path.includes("\0") && path.split("/").every((part) => part !== "" && part !== "." && part !== "..")
2471
+ )
2472
+ );
2473
+ var SkillFile = Schema_exports.Struct({ path: SkillFilePath, content: Schema_exports.String });
2474
+ var skillFormatLimits = {
2475
+ nameCharacters: 64,
2476
+ descriptionCharacters: 1024,
2477
+ compatibilityCharacters: 500
2478
+ };
2479
+ var AppSkillName2 = Schema_exports.NonEmptyString.check(
2480
+ Schema_exports.makeFilter(
2481
+ (value) => value === value.toLowerCase() && /^[\p{L}\p{N}]+(?:-[\p{L}\p{N}]+)*$/u.test(value) && [...value].length <= skillFormatLimits.nameCharacters
2482
+ )
2483
+ );
2484
+ var AppSkillMetadata = Schema_exports.Struct({
2485
+ name: AppSkillName2,
2486
+ description: Schema_exports.String.check(
2487
+ Schema_exports.makeFilter(
2488
+ (value) => value.trim().length > 0 && [...value].length <= skillFormatLimits.descriptionCharacters
2489
+ )
2490
+ ),
2491
+ license: Schema_exports.optionalKey(Schema_exports.String),
2492
+ compatibility: Schema_exports.optionalKey(
2493
+ Schema_exports.String.check(
2494
+ Schema_exports.makeFilter(
2495
+ (value) => value.trim().length > 0 && [...value].length <= skillFormatLimits.compatibilityCharacters
2496
+ )
2497
+ )
2498
+ ),
2499
+ metadata: Schema_exports.optionalKey(Schema_exports.Record(Schema_exports.String, Schema_exports.String)),
2500
+ "allowed-tools": Schema_exports.optionalKey(Schema_exports.String)
2501
+ });
2502
+ var AppSkillSource = Schema_exports.Struct({
2503
+ ...AppSkillMetadata.fields,
2504
+ files: Schema_exports.Array(SkillFile).check(
2505
+ Schema_exports.makeFilter(
2506
+ (files) => files.some((file) => file.path === "SKILL.md") && new Set(files.map((file) => file.path)).size === files.length
2507
+ )
2508
+ )
2509
+ });
2510
+ var AppSkills2 = Schema_exports.Array(AppSkillSource).check(
2511
+ Schema_exports.makeFilter((skills) => new Set(skills.map((skill) => skill.name)).size === skills.length)
2512
+ );
2513
+ var ToolAnnotations3 = Schema_exports.Struct({
2514
+ title: Schema_exports.optionalKey(Schema_exports.String),
2515
+ readOnlyHint: Schema_exports.optionalKey(Schema_exports.Boolean),
2516
+ destructiveHint: Schema_exports.optionalKey(Schema_exports.Boolean),
2517
+ idempotentHint: Schema_exports.optionalKey(Schema_exports.Boolean),
2518
+ openWorldHint: Schema_exports.optionalKey(Schema_exports.Boolean)
2519
+ });
2520
+ var WebhookTransportLimits2 = Schema_exports.Struct({
2521
+ maxBodyBytes: Schema_exports.Int.check(Schema_exports.isGreaterThan(0))
2522
+ });
2523
+ var defaultWebhookTransportLimits2 = WebhookTransportLimits2.make({
2524
+ maxBodyBytes: 1024 * 1024
2525
+ });
2526
+ var encodedBodyChars2 = 4 * Math.ceil(defaultWebhookTransportLimits2.maxBodyBytes / 3);
2527
+ var WebhookRequestData2 = Schema_exports.Struct({
2528
+ url: HttpUrl2,
2529
+ method: Schema_exports.Literals(["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]),
2530
+ headers: Schema_exports.Record(Schema_exports.String, Schema_exports.String),
2531
+ body: Schema_exports.String.check(Schema_exports.isMaxLength(encodedBodyChars2))
2532
+ });
2533
+ var identity2 = {
2534
+ name: Schema_exports.NonEmptyString,
2535
+ subscriptionId: Schema_exports.NonEmptyString,
2536
+ sourceAccount: AccountId2,
2537
+ callbackUrl: HttpUrl2,
2538
+ secret: Schema_exports.String,
2539
+ config: JsonValue2
2540
+ };
2541
+ var WebhookCommand2 = Schema_exports.Union([
2542
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhooks") }),
2543
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhook-validate"), ...identity2 }),
2544
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhook-complete"), ...identity2, state: JsonValue2 }),
2545
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhook-register"), ...identity2 }),
2546
+ Schema_exports.Struct({ operation: Schema_exports.Literal("webhook-unregister"), ...identity2, state: JsonValue2 }),
2547
+ Schema_exports.Struct({
2548
+ operation: Schema_exports.Literal("webhook-handle"),
2549
+ ...identity2,
2550
+ state: JsonValue2,
2551
+ request: WebhookRequestData2
2552
+ })
2553
+ ]);
2554
+ var WorkflowRunId2 = Schema_exports.NonEmptyString.pipe(Schema_exports.brand("wfr"));
2555
+ var WorkflowName2 = Schema_exports.NonEmptyString.check(Schema_exports.isMaxLength(200));
2556
+ var durationUnits2 = {
2557
+ millisecond: 1,
2558
+ milliseconds: 1,
2559
+ second: 1e3,
2560
+ seconds: 1e3,
2561
+ minute: 6e4,
2562
+ minutes: 6e4,
2563
+ hour: 36e5,
2564
+ hours: 36e5,
2565
+ day: 864e5,
2566
+ days: 864e5,
2567
+ week: 6048e5,
2568
+ weeks: 6048e5
2569
+ };
2570
+ var workflowDurationMillis2 = (value) => {
2571
+ if (typeof value === "number") return Number.isFinite(value) && value >= 0 ? value : void 0;
2572
+ const match = /^(\d+(?:\.\d+)?) (milliseconds?|seconds?|minutes?|hours?|days?|weeks?)$/.exec(
2573
+ value
2574
+ );
2575
+ const unit = match?.[2] === void 0 ? void 0 : durationUnits2[match[2]];
2576
+ if (unit === void 0) return void 0;
2577
+ const result = Number(match?.[1]) * unit;
2578
+ return Number.isFinite(result) ? result : void 0;
2579
+ };
2580
+ var WorkflowDuration2 = Schema_exports.Union([
2581
+ Schema_exports.Finite.check(Schema_exports.isGreaterThanOrEqualTo(0)),
2582
+ Schema_exports.NonEmptyString
2583
+ ]).check(Schema_exports.makeFilter((value) => workflowDurationMillis2(value) !== void 0));
2584
+ var WorkflowStepOptions2 = Schema_exports.Struct({
2585
+ retries: Schema_exports.optionalKey(
2586
+ Schema_exports.Struct({
2587
+ limit: Schema_exports.Int.check(Schema_exports.isGreaterThanOrEqualTo(0)),
2588
+ delay: WorkflowDuration2,
2589
+ backoff: Schema_exports.optionalKey(Schema_exports.Literals(["constant", "linear", "exponential"]))
2590
+ })
2591
+ ),
2592
+ timeout: Schema_exports.optionalKey(WorkflowDuration2)
2593
+ });
2594
+ var WorkflowValue2 = JsonValue2.check(
2595
+ Schema_exports.makeFilter(
2596
+ (value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 1024 * 1024
2597
+ )
2598
+ );
2599
+ var WorkflowReplay2 = Schema_exports.Struct({
2600
+ key: Schema_exports.NonEmptyString,
2601
+ fingerprint: Schema_exports.NonEmptyString
2602
+ });
2603
+ var WorkflowCommand2 = Schema_exports.Union([
2604
+ Schema_exports.Struct({ operation: Schema_exports.Literal("workflows") }),
2605
+ Schema_exports.Struct({
2606
+ operation: Schema_exports.Literal("workflow-validate"),
2607
+ name: WorkflowName2,
2608
+ input: JsonValue2
2609
+ }),
2610
+ Schema_exports.Struct({
2611
+ operation: Schema_exports.Literal("workflow-run"),
2612
+ name: WorkflowName2,
2613
+ input: JsonValue2
2614
+ })
2615
+ ]);
2616
+ var WorkflowRpcCommand2 = Schema_exports.Union([
2617
+ Schema_exports.Struct({
2618
+ operation: Schema_exports.Literal("do"),
2619
+ name: WorkflowName2,
2620
+ options: WorkflowStepOptions2
2621
+ }),
2622
+ Schema_exports.Struct({
2623
+ operation: Schema_exports.Literal("sleep"),
2624
+ name: WorkflowName2,
2625
+ duration: WorkflowDuration2
2626
+ }),
2627
+ Schema_exports.Struct({
2628
+ operation: Schema_exports.Literal("until"),
2629
+ name: WorkflowName2,
2630
+ timestamp: Schema_exports.Finite
2631
+ }),
2632
+ Schema_exports.Struct({ operation: Schema_exports.Literal("context") }),
2633
+ Schema_exports.Struct({
2634
+ operation: Schema_exports.Literal("invoke"),
2635
+ kind: Schema_exports.Literals(["query", "mutation"]),
2636
+ name: Schema_exports.NonEmptyString,
2637
+ input: JsonValue2,
2638
+ stepId: Schema_exports.NonEmptyString,
2639
+ timeout: Schema_exports.Finite.check(Schema_exports.isGreaterThanOrEqualTo(0))
2640
+ })
2641
+ ]);
2642
+ var WorkflowControlCommand2 = Schema_exports.Union([
2643
+ Schema_exports.Struct({
2644
+ operation: Schema_exports.Literal("start"),
2645
+ workflow: WorkflowName2,
2646
+ input: WorkflowValue2,
2647
+ key: Schema_exports.optionalKey(Schema_exports.NonEmptyString.check(Schema_exports.isMaxLength(128)))
2648
+ }),
2649
+ Schema_exports.Struct({ operation: Schema_exports.Literal("get"), run: WorkflowRunId2 }),
2650
+ Schema_exports.Struct({
2651
+ operation: Schema_exports.Literal("list"),
2652
+ workflow: Schema_exports.optionalKey(WorkflowName2),
2653
+ cursor: Schema_exports.optionalKey(WorkflowRunId2),
2654
+ limit: Schema_exports.optionalKey(Schema_exports.Int.check(Schema_exports.isBetween({ minimum: 1, maximum: 100 })))
2655
+ }),
2656
+ Schema_exports.Struct({ operation: Schema_exports.Literal("terminate"), run: WorkflowRunId2 })
2657
+ ]);
2348
2658
  var ProviderError2 = class extends Schema_exports.TaggedError()("ProviderError", {
2349
2659
  reason: Schema_exports.Literals(["unauthorized", "forbidden", "rate_limited", "unavailable", "rejected"]),
2350
2660
  status: Schema_exports.optional(Schema_exports.Int.check(Schema_exports.isBetween({ minimum: 100, maximum: 599 }))),
2351
- accountId: Schema_exports.optional(AccountId)
2661
+ accountId: Schema_exports.optional(AccountId2)
2352
2662
  }) {
2353
2663
  };
2354
2664
  var McpError3 = class extends Schema_exports.TaggedError()("McpError", {
@@ -2395,30 +2705,30 @@ var WorkflowFailure2 = class extends Schema_exports.TaggedError()("WorkflowFailu
2395
2705
  }) {
2396
2706
  };
2397
2707
  var WorkflowRpcResult2 = Schema_exports.Union([
2398
- Schema_exports.Struct({ ok: Schema_exports.Literal(true), value: JsonValue }),
2708
+ Schema_exports.Struct({ ok: Schema_exports.Literal(true), value: JsonValue2 }),
2399
2709
  Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: WorkflowFailure2 })
2400
2710
  ]);
2401
2711
  var DeclaredAuthMethod = Schema_exports.Union([
2402
- Schema_exports.Struct({ type: Schema_exports.Literal("secrets"), label: Schema_exports.String, fields: JsonObject2 }),
2712
+ Schema_exports.Struct({ type: Schema_exports.Literal("secrets"), label: Schema_exports.String, fields: JsonObject3 }),
2403
2713
  Schema_exports.Struct({
2404
2714
  type: Schema_exports.Literal("oauth2"),
2405
2715
  ...OAuth2Config2.members[0].fields,
2406
- response: JsonObject2
2716
+ response: JsonObject3
2407
2717
  }),
2408
2718
  Schema_exports.Struct({
2409
2719
  type: Schema_exports.Literal("oauth2"),
2410
2720
  ...OAuth2Config2.members[1].fields,
2411
- response: JsonObject2
2721
+ response: JsonObject3
2412
2722
  }),
2413
2723
  Schema_exports.Struct({
2414
2724
  type: Schema_exports.Literal("oauth2"),
2415
2725
  ...OAuth2Config2.members[2].fields,
2416
- response: JsonObject2
2726
+ response: JsonObject3
2417
2727
  }),
2418
2728
  Schema_exports.Struct({
2419
2729
  type: Schema_exports.Literal("oauth2"),
2420
2730
  ...OAuth2Config2.members[3].fields,
2421
- response: JsonObject2
2731
+ response: JsonObject3
2422
2732
  })
2423
2733
  ]);
2424
2734
  var DeclaredProvider = Schema_exports.Struct({
@@ -2438,7 +2748,7 @@ var DeclaredRequirements = Schema_exports.Struct({
2438
2748
  scheduledTools: Schema_exports.optionalKey(Schema_exports.Literal(true))
2439
2749
  })
2440
2750
  ),
2441
- database: Schema_exports.optionalKey(DatabaseSchema),
2751
+ database: Schema_exports.optionalKey(DatabaseSchema2),
2442
2752
  accounts: Schema_exports.Record(
2443
2753
  Schema_exports.NonEmptyString,
2444
2754
  Schema_exports.Struct({
@@ -2448,7 +2758,7 @@ var DeclaredRequirements = Schema_exports.Struct({
2448
2758
  )
2449
2759
  });
2450
2760
  var ResolvedAccount = Schema_exports.Struct({
2451
- id: AccountId,
2761
+ id: AccountId2,
2452
2762
  provider: DeclaredProvider,
2453
2763
  method: Schema_exports.NonEmptyString,
2454
2764
  /**
@@ -2456,33 +2766,33 @@ var ResolvedAccount = Schema_exports.Struct({
2456
2766
  * send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
2457
2767
  */
2458
2768
  generation: Schema_exports.optionalKey(Schema_exports.Int),
2459
- fields: JsonObject2
2769
+ fields: JsonObject3
2460
2770
  });
2461
2771
  var ResolvedAccounts = Schema_exports.Record(
2462
2772
  Schema_exports.NonEmptyString,
2463
2773
  Schema_exports.Union([ResolvedAccount, Schema_exports.Array(ResolvedAccount)])
2464
2774
  );
2465
- var TrustedToolApproval = Schema_exports.Struct({ tool: Schema_exports.NonEmptyString, input: JsonValue });
2775
+ var TrustedToolApproval = Schema_exports.Struct({ tool: Schema_exports.NonEmptyString, input: JsonValue2 });
2466
2776
  var InvocationDeadline = Schema_exports.Finite.check(Schema_exports.isGreaterThanOrEqualTo(0));
2467
2777
  var HostedTool = Schema_exports.Struct({
2468
2778
  schedules: Schema_exports.optionalKey(Schema_exports.Array(OperationSchedule)),
2469
2779
  name: Schema_exports.NonEmptyString,
2470
2780
  description: Schema_exports.String,
2471
- inputSchema: JsonObject2,
2781
+ inputSchema: JsonObject3,
2472
2782
  readOnly: Schema_exports.optionalKey(Schema_exports.Boolean),
2473
2783
  title: Schema_exports.optionalKey(Schema_exports.String),
2474
- outputSchema: Schema_exports.optionalKey(JsonObject2),
2475
- annotations: Schema_exports.optionalKey(ToolAnnotations2),
2476
- _meta: Schema_exports.optionalKey(JsonObject2)
2784
+ outputSchema: Schema_exports.optionalKey(JsonObject3),
2785
+ annotations: Schema_exports.optionalKey(ToolAnnotations3),
2786
+ _meta: Schema_exports.optionalKey(JsonObject3)
2477
2787
  });
2478
2788
  var HostedToolSummary = HostedTool.mapFields(
2479
2789
  ({ inputSchema: _input, outputSchema: _output, _meta, ...fields }) => fields
2480
2790
  );
2481
- var SkillSources = Schema_exports.Struct({ skills: AppSkills, dynamic: Schema_exports.Boolean });
2482
- var SkillCatalogResponse = Schema_exports.Union([SkillSources, AppSkills]);
2791
+ var SkillSources = Schema_exports.Struct({ skills: AppSkills2, dynamic: Schema_exports.Boolean });
2792
+ var SkillCatalogResponse = Schema_exports.Union([SkillSources, AppSkills2]);
2483
2793
  var HostRequest = Schema_exports.Union([
2484
- WorkflowCommand,
2485
- WebhookCommand,
2794
+ WorkflowCommand2,
2795
+ WebhookCommand2,
2486
2796
  Schema_exports.Struct({ operation: Schema_exports.Literal("requirements") }),
2487
2797
  Schema_exports.Struct({
2488
2798
  operation: Schema_exports.Literal("inspect"),
@@ -2504,17 +2814,17 @@ var HostRequest = Schema_exports.Union([
2504
2814
  Schema_exports.Struct({
2505
2815
  operation: Schema_exports.Literal("query"),
2506
2816
  name: Schema_exports.NonEmptyString,
2507
- input: JsonValue
2817
+ input: JsonValue2
2508
2818
  }),
2509
2819
  Schema_exports.Struct({
2510
2820
  operation: Schema_exports.Literal("mutate"),
2511
2821
  name: Schema_exports.NonEmptyString,
2512
- input: JsonValue
2822
+ input: JsonValue2
2513
2823
  }),
2514
2824
  Schema_exports.Struct({
2515
2825
  operation: Schema_exports.Literal("call"),
2516
2826
  tool: Schema_exports.NonEmptyString,
2517
- input: JsonValue
2827
+ input: JsonValue2
2518
2828
  })
2519
2829
  ]);
2520
2830
  var HostRequestInvalid = class extends Schema_exports.TaggedError()(
@@ -2564,7 +2874,7 @@ var HostToolBlocked = class extends Schema_exports.TaggedError()("HostToolBlocke
2564
2874
  };
2565
2875
  var HostToolApprovalRequired = class extends Schema_exports.TaggedError()(
2566
2876
  "HostToolApprovalRequired",
2567
- { input: JsonValue, elicitation: ApprovalElicitation }
2877
+ { input: JsonValue2, elicitation: ApprovalElicitation2 }
2568
2878
  ) {
2569
2879
  };
2570
2880
  var HostToolPolicyFailed = class extends Schema_exports.TaggedError()(
@@ -2578,7 +2888,7 @@ var HostOutputInvalid = class extends Schema_exports.TaggedError()(
2578
2888
  ) {
2579
2889
  };
2580
2890
  var HostError = Schema_exports.Union([
2581
- OpenapiResponseError,
2891
+ OpenapiResponseError2,
2582
2892
  ProviderError2,
2583
2893
  McpError3,
2584
2894
  SkillLoadFailed,
@@ -2595,12 +2905,12 @@ var HostError = Schema_exports.Union([
2595
2905
  HostToolBlocked,
2596
2906
  HostToolApprovalRequired,
2597
2907
  HostToolPolicyFailed,
2598
- ElicitationFailed
2908
+ ElicitationFailed2
2599
2909
  ]);
2600
2910
  var HostResponse = Schema_exports.Union([
2601
2911
  Schema_exports.Struct({
2602
2912
  ok: Schema_exports.Literal(true),
2603
- value: JsonValue,
2913
+ value: JsonValue2,
2604
2914
  toolError: Schema_exports.optionalKey(Schema_exports.Literal(true))
2605
2915
  }),
2606
2916
  Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: HostError })
@@ -2609,9 +2919,9 @@ var HostInvocation = Schema_exports.Struct({
2609
2919
  command: HostRequest,
2610
2920
  accounts: ResolvedAccounts,
2611
2921
  approval: Schema_exports.optionalKey(TrustedToolApproval),
2612
- replay: Schema_exports.optionalKey(WorkflowReplay),
2922
+ replay: Schema_exports.optionalKey(WorkflowReplay2),
2613
2923
  deadline: Schema_exports.optionalKey(InvocationDeadline),
2614
- workflowRun: Schema_exports.optionalKey(WorkflowRunId)
2924
+ workflowRun: Schema_exports.optionalKey(WorkflowRunId2)
2615
2925
  });
2616
2926
  var protocol1 = {
2617
2927
  version: 1,
@@ -2623,38 +2933,98 @@ var protocol1 = {
2623
2933
  tools: Schema_exports.Array(HostedTool),
2624
2934
  toolSummaries: Schema_exports.Array(HostedToolSummary),
2625
2935
  skills: SkillCatalogResponse,
2626
- elicitationRequest: FormElicitation,
2627
- elicitationReply: ElicitationReply,
2628
- workflowStep: WorkflowRpcCommand,
2936
+ elicitationRequest: FormElicitation2,
2937
+ elicitationReply: ElicitationReply2,
2938
+ workflowStep: WorkflowRpcCommand2,
2629
2939
  workflowStepReply: WorkflowRpcResult2,
2630
- workflowControl: WorkflowControlCommand,
2631
- cacheCommand: CacheCommand,
2632
- cacheReply: CacheReply
2940
+ workflowControl: WorkflowControlCommand2,
2941
+ cacheCommand: CacheCommand2,
2942
+ cacheReply: CacheReply2
2633
2943
  }
2634
2944
  };
2635
2945
 
2636
2946
  // src/contracts/protocols/2.ts
2637
2947
  var SkillSources2 = Schema_exports.Struct({
2638
- skills: AppSkills,
2948
+ skills: AppSkills2,
2639
2949
  dynamic: Schema_exports.Boolean,
2640
2950
  cached: Schema_exports.optionalKey(Schema_exports.Boolean)
2641
2951
  });
2642
- var SkillCatalogResponse2 = Schema_exports.Union([SkillSources2, AppSkills]);
2952
+ var SkillCatalogResponse2 = Schema_exports.Union([SkillSources2, AppSkills2]);
2643
2953
  var protocol2 = {
2644
2954
  version: 2,
2645
2955
  schemas: { ...protocol1.schemas, skills: SkillCatalogResponse2 }
2646
2956
  };
2647
2957
 
2648
2958
  // src/contracts/protocols/3.ts
2649
- var FailureDetail2 = {
2650
- source: Schema_exports.optionalKey(FailureSource),
2651
- errorName: Schema_exports.optionalKey(FailureName),
2652
- code: Schema_exports.optionalKey(FailureCode),
2653
- message: Schema_exports.optionalKey(FailureMessage)
2959
+ var maxFailureMessageLength = 2048;
2960
+ var FailureSource = Schema_exports.Literals(["app", "storage", "service"]);
2961
+ var FailureName2 = Schema_exports.String.check(Schema_exports.isMaxLength(128));
2962
+ var FailureCode = Schema_exports.String.check(Schema_exports.isMaxLength(128));
2963
+ var FailureMessage2 = Schema_exports.String.check(Schema_exports.isMaxLength(maxFailureMessageLength));
2964
+ var WorkflowFailureDetail2 = {
2965
+ step: Schema_exports.optionalKey(Schema_exports.String.check(Schema_exports.isMaxLength(200))),
2966
+ errorName: Schema_exports.optionalKey(FailureName2),
2967
+ message: Schema_exports.optionalKey(FailureMessage2)
2654
2968
  };
2655
- var HostDeclarationInvalid2 = class extends Schema_exports.TaggedError()(
2656
- "HostDeclarationInvalid",
2657
- FailureDetail2
2969
+ var WorkflowFailure3 = class extends Schema_exports.TaggedError()("WorkflowFailure", {
2970
+ ...WorkflowFailureDetail2,
2971
+ reason: Schema_exports.Literals([
2972
+ "unavailable",
2973
+ "not_found",
2974
+ "input",
2975
+ "output",
2976
+ "operation",
2977
+ "approval",
2978
+ "credentials",
2979
+ "terminated",
2980
+ "execution",
2981
+ "conflict",
2982
+ "engine"
2983
+ ]),
2984
+ retryable: Schema_exports.Boolean
2985
+ }) {
2986
+ };
2987
+ var WorkflowRpcResult3 = Schema_exports.Union([
2988
+ Schema_exports.Struct({ ok: Schema_exports.Literal(true), value: JsonValue2 }),
2989
+ Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: WorkflowFailure3 })
2990
+ ]);
2991
+ var DatabaseLimit2 = Schema_exports.Literals([
2992
+ "scanCalls",
2993
+ "directGets",
2994
+ "rowsRead",
2995
+ "rowsReturned",
2996
+ "pageSize",
2997
+ "bytesRead",
2998
+ "writes",
2999
+ "valueBytes"
3000
+ ]);
3001
+ var DatabaseLimitExceeded2 = class extends Schema_exports.TaggedError()(
3002
+ "DatabaseLimitExceeded",
3003
+ {
3004
+ limit: DatabaseLimit2,
3005
+ maximum: Schema_exports.Int,
3006
+ requested: Schema_exports.Int
3007
+ }
3008
+ ) {
3009
+ };
3010
+ var reservedFieldNames2 = ["id", "createdAt", "updatedAt"];
3011
+ var DatabaseFieldReserved2 = class extends Schema_exports.TaggedError()(
3012
+ "DatabaseFieldReserved",
3013
+ {
3014
+ table: Schema_exports.String,
3015
+ field: Schema_exports.Literals(reservedFieldNames2)
3016
+ }
3017
+ ) {
3018
+ };
3019
+ var FailureDetail2 = {
3020
+ source: Schema_exports.optionalKey(FailureSource),
3021
+ errorName: Schema_exports.optionalKey(FailureName2),
3022
+ code: Schema_exports.optionalKey(FailureCode),
3023
+ message: Schema_exports.optionalKey(FailureMessage2)
3024
+ };
3025
+ var HostDeclarationInvalid2 = class extends Schema_exports.TaggedError()(
3026
+ "HostDeclarationInvalid",
3027
+ FailureDetail2
2658
3028
  ) {
2659
3029
  };
2660
3030
  var HostEvaluationFailed2 = class extends Schema_exports.TaggedError()(
@@ -2668,31 +3038,31 @@ var HostOperationFailed2 = class extends Schema_exports.TaggedError()(
2668
3038
  ) {
2669
3039
  };
2670
3040
  var HostError2 = Schema_exports.Union([
2671
- OpenapiResponseError,
3041
+ OpenapiResponseError2,
2672
3042
  ProviderError2,
2673
3043
  McpError3,
2674
3044
  SkillLoadFailed,
2675
- WorkflowFailure,
3045
+ WorkflowFailure3,
2676
3046
  HostRequestInvalid,
2677
3047
  HostAccountsInvalid,
2678
3048
  HostDeclarationInvalid2,
2679
3049
  HostEvaluationFailed2,
2680
3050
  HostOperationNotFound,
2681
3051
  HostOperationFailed2,
2682
- DatabaseLimitExceeded,
2683
- DatabaseFieldReserved,
3052
+ DatabaseLimitExceeded2,
3053
+ DatabaseFieldReserved2,
2684
3054
  HostToolNotFound,
2685
3055
  HostInputInvalid,
2686
3056
  HostOutputInvalid,
2687
3057
  HostToolBlocked,
2688
3058
  HostToolApprovalRequired,
2689
3059
  HostToolPolicyFailed,
2690
- ElicitationFailed
3060
+ ElicitationFailed2
2691
3061
  ]);
2692
3062
  var HostResponse2 = Schema_exports.Union([
2693
3063
  Schema_exports.Struct({
2694
3064
  ok: Schema_exports.Literal(true),
2695
- value: JsonValue,
3065
+ value: JsonValue2,
2696
3066
  toolError: Schema_exports.optionalKey(Schema_exports.Literal(true))
2697
3067
  }),
2698
3068
  Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: HostError2 })
@@ -2704,32 +3074,38 @@ var protocol3 = {
2704
3074
  request: HostRequest,
2705
3075
  response: HostResponse2,
2706
3076
  requirements: DeclaredRequirements,
2707
- tools: Schema_exports.Array(HostedTool),
2708
- toolSummaries: Schema_exports.Array(HostedToolSummary),
3077
+ tools: protocol1.schemas.tools,
3078
+ toolSummaries: protocol1.schemas.toolSummaries,
2709
3079
  skills: SkillCatalogResponse2,
2710
- elicitationRequest: FormElicitation,
2711
- elicitationReply: ElicitationReply,
2712
- workflowStep: WorkflowRpcCommand,
2713
- workflowStepReply: WorkflowRpcResult,
2714
- workflowControl: WorkflowControlCommand,
2715
- cacheCommand: CacheCommand,
2716
- cacheReply: CacheReply
3080
+ elicitationRequest: FormElicitation2,
3081
+ elicitationReply: ElicitationReply2,
3082
+ workflowStep: WorkflowRpcCommand2,
3083
+ workflowStepReply: WorkflowRpcResult3,
3084
+ workflowControl: WorkflowControlCommand2,
3085
+ cacheCommand: CacheCommand2,
3086
+ cacheReply: CacheReply2
2717
3087
  }
2718
3088
  };
2719
3089
 
2720
3090
  // src/contracts/protocols/4.ts
3091
+ var RouterIcon2 = Schema_exports.Struct({
3092
+ src: Schema_exports.NonEmptyString,
3093
+ mimeType: Schema_exports.optionalKey(Schema_exports.String),
3094
+ sizes: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.String)),
3095
+ theme: Schema_exports.optionalKey(Schema_exports.Literals(["light", "dark"]))
3096
+ });
2721
3097
  var HostedTool2 = Schema_exports.Struct({
2722
3098
  schedules: Schema_exports.optionalKey(Schema_exports.Array(OperationSchedule)),
2723
3099
  name: Schema_exports.NonEmptyString,
2724
3100
  router: Schema_exports.optionalKey(Schema_exports.NonEmptyString),
2725
3101
  tags: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.NonEmptyString)),
2726
3102
  description: Schema_exports.String,
2727
- inputSchema: JsonObject2,
3103
+ inputSchema: JsonObject3,
2728
3104
  readOnly: Schema_exports.optionalKey(Schema_exports.Boolean),
2729
3105
  title: Schema_exports.optionalKey(Schema_exports.String),
2730
- outputSchema: Schema_exports.optionalKey(JsonObject2),
2731
- annotations: Schema_exports.optionalKey(ToolAnnotations2),
2732
- _meta: Schema_exports.optionalKey(JsonObject2)
3106
+ outputSchema: Schema_exports.optionalKey(JsonObject3),
3107
+ annotations: Schema_exports.optionalKey(ToolAnnotations3),
3108
+ _meta: Schema_exports.optionalKey(JsonObject3)
2733
3109
  });
2734
3110
  var HostedToolSummary2 = HostedTool2.mapFields(
2735
3111
  ({ inputSchema: _input, outputSchema: _output, _meta, ...fields }) => fields
@@ -2745,9 +3121,9 @@ var HostedRouter = Schema_exports.Struct({
2745
3121
  path: Schema_exports.String,
2746
3122
  title: Schema_exports.optionalKey(Schema_exports.String),
2747
3123
  description: Schema_exports.optionalKey(Schema_exports.String),
2748
- icons: Schema_exports.optionalKey(Schema_exports.Array(RouterIcon)),
3124
+ icons: Schema_exports.optionalKey(Schema_exports.Array(RouterIcon2)),
2749
3125
  tags: Schema_exports.optionalKey(Schema_exports.Record(Schema_exports.NonEmptyString, Schema_exports.String)),
2750
- skill: Schema_exports.optionalKey(AppSkillName),
3126
+ skill: Schema_exports.optionalKey(AppSkillName2),
2751
3127
  error: Schema_exports.optionalKey(HostRouterError)
2752
3128
  });
2753
3129
  var HostedCatalog = Schema_exports.Struct({
@@ -2760,8 +3136,8 @@ var HostedCatalogSummary = Schema_exports.Struct({
2760
3136
  });
2761
3137
  var ToolKind = Schema_exports.Literals(["query", "mutation"]);
2762
3138
  var HostRequest2 = Schema_exports.Union([
2763
- WorkflowCommand,
2764
- WebhookCommand,
3139
+ WorkflowCommand2,
3140
+ WebhookCommand2,
2765
3141
  Schema_exports.Struct({ operation: Schema_exports.Literal("requirements") }),
2766
3142
  Schema_exports.Struct({
2767
3143
  operation: Schema_exports.Literal("inspect"),
@@ -2783,12 +3159,12 @@ var HostRequest2 = Schema_exports.Union([
2783
3159
  Schema_exports.Struct({
2784
3160
  operation: Schema_exports.Literal("query"),
2785
3161
  name: Schema_exports.NonEmptyString,
2786
- input: JsonValue
3162
+ input: JsonValue2
2787
3163
  }),
2788
3164
  Schema_exports.Struct({
2789
3165
  operation: Schema_exports.Literal("mutate"),
2790
3166
  name: Schema_exports.NonEmptyString,
2791
- input: JsonValue
3167
+ input: JsonValue2
2792
3168
  }),
2793
3169
  Schema_exports.Struct({
2794
3170
  operation: Schema_exports.Literal("call"),
@@ -2798,7 +3174,7 @@ var HostRequest2 = Schema_exports.Union([
2798
3174
  * it for a tool its catalog does not list, and then opens storage for writing.
2799
3175
  */
2800
3176
  kind: Schema_exports.optionalKey(ToolKind),
2801
- input: JsonValue
3177
+ input: JsonValue2
2802
3178
  })
2803
3179
  ]);
2804
3180
  var HostKindMismatch = class extends Schema_exports.TaggedError()("HostKindMismatch", {
@@ -2811,7 +3187,7 @@ var HostError3 = Schema_exports.Union([...HostError2.members, HostKindMismatch])
2811
3187
  var HostResponse3 = Schema_exports.Union([
2812
3188
  Schema_exports.Struct({
2813
3189
  ok: Schema_exports.Literal(true),
2814
- value: JsonValue,
3190
+ value: JsonValue2,
2815
3191
  toolError: Schema_exports.optionalKey(Schema_exports.Literal(true))
2816
3192
  }),
2817
3193
  Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: HostError3 })
@@ -2820,9 +3196,9 @@ var HostInvocation2 = Schema_exports.Struct({
2820
3196
  command: HostRequest2,
2821
3197
  accounts: ResolvedAccounts,
2822
3198
  approval: Schema_exports.optionalKey(TrustedToolApproval),
2823
- replay: Schema_exports.optionalKey(WorkflowReplay),
3199
+ replay: Schema_exports.optionalKey(WorkflowReplay2),
2824
3200
  deadline: Schema_exports.optionalKey(InvocationDeadline),
2825
- workflowRun: Schema_exports.optionalKey(WorkflowRunId)
3201
+ workflowRun: Schema_exports.optionalKey(WorkflowRunId2)
2826
3202
  });
2827
3203
  var protocol4 = {
2828
3204
  version: 4,
@@ -2830,21 +3206,31 @@ var protocol4 = {
2830
3206
  invocation: HostInvocation2,
2831
3207
  request: HostRequest2,
2832
3208
  response: HostResponse3,
2833
- requirements: DeclaredRequirements,
3209
+ requirements: protocol3.schemas.requirements,
2834
3210
  catalog: HostedCatalog,
2835
3211
  catalogSummary: HostedCatalogSummary,
2836
- skills: SkillCatalogResponse2,
2837
- elicitationRequest: FormElicitation,
2838
- elicitationReply: ElicitationReply,
2839
- workflowStep: WorkflowRpcCommand,
2840
- workflowStepReply: WorkflowRpcResult,
2841
- workflowControl: WorkflowControlCommand,
2842
- cacheCommand: CacheCommand,
2843
- cacheReply: CacheReply
3212
+ skills: protocol3.schemas.skills,
3213
+ elicitationRequest: protocol3.schemas.elicitationRequest,
3214
+ elicitationReply: protocol3.schemas.elicitationReply,
3215
+ workflowStep: protocol3.schemas.workflowStep,
3216
+ workflowStepReply: protocol3.schemas.workflowStepReply,
3217
+ workflowControl: protocol3.schemas.workflowControl,
3218
+ cacheCommand: protocol3.schemas.cacheCommand,
3219
+ cacheReply: protocol3.schemas.cacheReply
2844
3220
  }
2845
3221
  };
2846
3222
 
2847
3223
  // src/contracts/protocols/5.ts
3224
+ var displayText2 = Schema_exports.String.check(Schema_exports.isMinLength(1), Schema_exports.isMaxLength(255));
3225
+ var AccountInfo2 = Schema_exports.Struct({
3226
+ externalId: Schema_exports.optionalKey(displayText2),
3227
+ displayName: Schema_exports.optionalKey(displayText2),
3228
+ username: Schema_exports.optionalKey(displayText2),
3229
+ email: Schema_exports.optionalKey(displayText2),
3230
+ avatarUrl: Schema_exports.optionalKey(HttpUrl2),
3231
+ profileUrl: Schema_exports.optionalKey(HttpUrl2)
3232
+ });
3233
+ var AccountCheckResult2 = Schema_exports.Struct({ accountInfo: Schema_exports.optionalKey(AccountInfo2) });
2848
3234
  var DeclaredRequirements2 = Schema_exports.Struct({
2849
3235
  /** Protocol support of this retained framework build, not an author-declared requirement. */
2850
3236
  capabilities: Schema_exports.optionalKey(
@@ -2855,7 +3241,7 @@ var DeclaredRequirements2 = Schema_exports.Struct({
2855
3241
  scheduledTools: Schema_exports.optionalKey(Schema_exports.Literal(true))
2856
3242
  })
2857
3243
  ),
2858
- database: Schema_exports.optionalKey(DatabaseSchema),
3244
+ database: Schema_exports.optionalKey(DatabaseSchema2),
2859
3245
  accounts: Schema_exports.Record(
2860
3246
  Schema_exports.NonEmptyString,
2861
3247
  Schema_exports.Struct({
@@ -2881,9 +3267,9 @@ var HostInvocation3 = Schema_exports.Struct({
2881
3267
  command: HostRequest3,
2882
3268
  accounts: ResolvedAccounts,
2883
3269
  approval: Schema_exports.optionalKey(TrustedToolApproval),
2884
- replay: Schema_exports.optionalKey(WorkflowReplay),
3270
+ replay: Schema_exports.optionalKey(WorkflowReplay2),
2885
3271
  deadline: Schema_exports.optionalKey(InvocationDeadline),
2886
- workflowRun: Schema_exports.optionalKey(WorkflowRunId)
3272
+ workflowRun: Schema_exports.optionalKey(WorkflowRunId2)
2887
3273
  });
2888
3274
  var protocol5 = {
2889
3275
  version: 5,
@@ -2892,32 +3278,83 @@ var protocol5 = {
2892
3278
  invocation: HostInvocation3,
2893
3279
  request: HostRequest3,
2894
3280
  requirements: DeclaredRequirements2,
2895
- accountCheck: AccountCheckResult
3281
+ accountCheck: AccountCheckResult2
2896
3282
  }
2897
3283
  };
2898
3284
 
3285
+ // src/contracts/protocols/oauth-6.ts
3286
+ var OAuth2Config3 = Schema_exports.Union([
3287
+ Schema_exports.Struct({
3288
+ ...oauthOptions2,
3289
+ discover: HttpUrl2,
3290
+ /** Fetch this exact metadata document and verify its issuer against discovery. */
3291
+ authorizationServerMetadataUrl: Schema_exports.optionalKey(HttpUrl2),
3292
+ authorizationUrl: Schema_exports.optionalKey(Schema_exports.Never),
3293
+ tokenUrl: Schema_exports.optionalKey(Schema_exports.Never),
3294
+ revocationUrl: Schema_exports.optionalKey(Schema_exports.Never),
3295
+ scopes: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.String))
3296
+ }),
3297
+ Schema_exports.Struct({
3298
+ ...oauthOptions2,
3299
+ /** Its query is kept; it cannot set protocol parameters or repeat `authorizationParams`. */
3300
+ authorizationUrl: HttpUrl2,
3301
+ tokenUrl: HttpUrl2,
3302
+ revocationUrl: Schema_exports.optionalKey(HttpUrl2),
3303
+ scopes: Schema_exports.Array(Schema_exports.String),
3304
+ /** RFC 8414 issuer identifier. Declared issuers are checked against the callback's `iss`. */
3305
+ issuer: Schema_exports.optionalKey(HttpUrl2),
3306
+ discover: Schema_exports.optionalKey(Schema_exports.Never),
3307
+ authorizationServerMetadataUrl: Schema_exports.optionalKey(Schema_exports.Never)
3308
+ }).check(declaredAuthorizationQuery2),
3309
+ Schema_exports.Struct({
3310
+ grant: Schema_exports.Literal("client_credentials"),
3311
+ discover: HttpUrl2,
3312
+ /** Fetch this exact metadata document and verify its issuer against discovery. */
3313
+ authorizationServerMetadataUrl: Schema_exports.optionalKey(HttpUrl2),
3314
+ authorizationUrl: Schema_exports.optionalKey(Schema_exports.Never),
3315
+ tokenUrl: Schema_exports.optionalKey(Schema_exports.Never),
3316
+ revocationUrl: Schema_exports.optionalKey(Schema_exports.Never),
3317
+ scopes: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.String)),
3318
+ ...tokenRequestOptions2,
3319
+ tokenEndpointAuthMethod: OAuthSecretClientAuth2,
3320
+ resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl2))
3321
+ }),
3322
+ Schema_exports.Struct({
3323
+ grant: Schema_exports.Literal("client_credentials"),
3324
+ tokenUrl: HttpUrl2,
3325
+ revocationUrl: Schema_exports.optionalKey(HttpUrl2),
3326
+ scopes: Schema_exports.Array(Schema_exports.String),
3327
+ ...tokenRequestOptions2,
3328
+ tokenEndpointAuthMethod: OAuthSecretClientAuth2,
3329
+ resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl2)),
3330
+ authorizationUrl: Schema_exports.optionalKey(Schema_exports.Never),
3331
+ discover: Schema_exports.optionalKey(Schema_exports.Never),
3332
+ authorizationServerMetadataUrl: Schema_exports.optionalKey(Schema_exports.Never)
3333
+ })
3334
+ ]);
3335
+
2899
3336
  // src/contracts/protocols/6.ts
2900
3337
  var DeclaredAuthMethod2 = Schema_exports.Union([
2901
- Schema_exports.Struct({ type: Schema_exports.Literal("secrets"), label: Schema_exports.String, fields: JsonObject2 }),
3338
+ Schema_exports.Struct({ type: Schema_exports.Literal("secrets"), label: Schema_exports.String, fields: JsonObject3 }),
2902
3339
  Schema_exports.Struct({
2903
3340
  type: Schema_exports.Literal("oauth2"),
2904
- ...OAuth2Config.members[0].fields,
2905
- response: JsonObject2
3341
+ ...OAuth2Config3.members[0].fields,
3342
+ response: JsonObject3
2906
3343
  }),
2907
3344
  Schema_exports.Struct({
2908
3345
  type: Schema_exports.Literal("oauth2"),
2909
- ...OAuth2Config.members[1].fields,
2910
- response: JsonObject2
3346
+ ...OAuth2Config3.members[1].fields,
3347
+ response: JsonObject3
2911
3348
  }),
2912
3349
  Schema_exports.Struct({
2913
3350
  type: Schema_exports.Literal("oauth2"),
2914
- ...OAuth2Config.members[2].fields,
2915
- response: JsonObject2
3351
+ ...OAuth2Config3.members[2].fields,
3352
+ response: JsonObject3
2916
3353
  }),
2917
3354
  Schema_exports.Struct({
2918
3355
  type: Schema_exports.Literal("oauth2"),
2919
- ...OAuth2Config.members[3].fields,
2920
- response: JsonObject2
3356
+ ...OAuth2Config3.members[3].fields,
3357
+ response: JsonObject3
2921
3358
  })
2922
3359
  ]);
2923
3360
  var DeclaredProvider2 = Schema_exports.Struct({
@@ -2973,31 +3410,31 @@ var DeclaredAuthMethod3 = Schema_exports.Union([
2973
3410
  Schema_exports.Struct({
2974
3411
  type: Schema_exports.Literal("secrets"),
2975
3412
  label: Schema_exports.String,
2976
- fields: JsonObject2,
3413
+ fields: JsonObject3,
2977
3414
  ...exposure
2978
3415
  }),
2979
3416
  Schema_exports.Struct({
2980
3417
  type: Schema_exports.Literal("oauth2"),
2981
- ...OAuth2Config.members[0].fields,
2982
- response: JsonObject2,
3418
+ ...OAuth2Config3.members[0].fields,
3419
+ response: JsonObject3,
2983
3420
  ...exposure
2984
3421
  }),
2985
3422
  Schema_exports.Struct({
2986
3423
  type: Schema_exports.Literal("oauth2"),
2987
- ...OAuth2Config.members[1].fields,
2988
- response: JsonObject2,
3424
+ ...OAuth2Config3.members[1].fields,
3425
+ response: JsonObject3,
2989
3426
  ...exposure
2990
3427
  }),
2991
3428
  Schema_exports.Struct({
2992
3429
  type: Schema_exports.Literal("oauth2"),
2993
- ...OAuth2Config.members[2].fields,
2994
- response: JsonObject2,
3430
+ ...OAuth2Config3.members[2].fields,
3431
+ response: JsonObject3,
2995
3432
  ...exposure
2996
3433
  }),
2997
3434
  Schema_exports.Struct({
2998
3435
  type: Schema_exports.Literal("oauth2"),
2999
- ...OAuth2Config.members[3].fields,
3000
- response: JsonObject2,
3436
+ ...OAuth2Config3.members[3].fields,
3437
+ response: JsonObject3,
3001
3438
  ...exposure
3002
3439
  })
3003
3440
  ]);
@@ -3040,6 +3477,43 @@ var protocol7 = {
3040
3477
  };
3041
3478
 
3042
3479
  // src/contracts/protocols/8.ts
3480
+ var maxFailureFields = 8;
3481
+ var maxFailureFieldLength = 256;
3482
+ var FailureFieldName = Schema_exports.String.check(
3483
+ Schema_exports.isPattern(/^[A-Za-z_$][A-Za-z0-9_$]{0,63}$/)
3484
+ );
3485
+ var FailureFieldValue = Schema_exports.Union([
3486
+ Schema_exports.String.check(Schema_exports.isMaxLength(maxFailureFieldLength)),
3487
+ Schema_exports.Finite,
3488
+ Schema_exports.Boolean
3489
+ ]);
3490
+ var FailureFields = Schema_exports.Record(FailureFieldName, FailureFieldValue).check(
3491
+ Schema_exports.isMaxProperties(maxFailureFields)
3492
+ );
3493
+ var FailureDetail3 = {
3494
+ source: Schema_exports.optionalKey(FailureSource),
3495
+ errorName: Schema_exports.optionalKey(FailureName2),
3496
+ code: Schema_exports.optionalKey(FailureCode),
3497
+ message: Schema_exports.optionalKey(FailureMessage2),
3498
+ fields: Schema_exports.optionalKey(FailureFields)
3499
+ };
3500
+ var maxUpstreamMessageLength = 1024;
3501
+ var UpstreamError2 = Schema_exports.Struct({
3502
+ code: Schema_exports.Union([
3503
+ Schema_exports.Int,
3504
+ Schema_exports.String.check(Schema_exports.isMinLength(1), Schema_exports.isMaxLength(128))
3505
+ ]),
3506
+ message: Schema_exports.optionalKey(Schema_exports.String.check(Schema_exports.isMaxLength(maxUpstreamMessageLength)))
3507
+ });
3508
+ var FailurePhase = Schema_exports.Literals(["connect", "discover", "call"]);
3509
+ var ProviderError3 = class extends Schema_exports.TaggedError()("ProviderError", {
3510
+ reason: Schema_exports.Literals(["unauthorized", "forbidden", "rate_limited", "unavailable", "rejected"]),
3511
+ status: Schema_exports.optional(Schema_exports.Int.check(Schema_exports.isBetween({ minimum: 100, maximum: 599 }))),
3512
+ accountId: Schema_exports.optional(AccountId2),
3513
+ phase: Schema_exports.optional(FailurePhase),
3514
+ upstream: Schema_exports.optional(UpstreamError2)
3515
+ }) {
3516
+ };
3043
3517
  var McpError4 = class extends Schema_exports.TaggedError()("McpError", {
3044
3518
  phase: Schema_exports.Literals(["connect", "discover", "call", "schema", "transport"]),
3045
3519
  reason: Schema_exports.Literals([
@@ -3050,26 +3524,26 @@ var McpError4 = class extends Schema_exports.TaggedError()("McpError", {
3050
3524
  "invalid_input"
3051
3525
  ]),
3052
3526
  status: Schema_exports.optional(Schema_exports.Number),
3053
- upstream: Schema_exports.optional(UpstreamError)
3527
+ upstream: Schema_exports.optional(UpstreamError2)
3054
3528
  }) {
3055
3529
  };
3056
3530
  var HostDeclarationInvalid3 = class extends Schema_exports.TaggedError()(
3057
3531
  "HostDeclarationInvalid",
3058
- FailureDetail
3532
+ FailureDetail3
3059
3533
  ) {
3060
3534
  };
3061
3535
  var HostEvaluationFailed3 = class extends Schema_exports.TaggedError()(
3062
3536
  "HostEvaluationFailed",
3063
- FailureDetail
3537
+ FailureDetail3
3064
3538
  ) {
3065
3539
  };
3066
3540
  var HostOperationFailed3 = class extends Schema_exports.TaggedError()(
3067
3541
  "HostOperationFailed",
3068
- FailureDetail
3542
+ FailureDetail3
3069
3543
  ) {
3070
3544
  };
3071
3545
  var HostRouterError2 = Schema_exports.Union([
3072
- ProviderError,
3546
+ ProviderError3,
3073
3547
  McpError4,
3074
3548
  SkillLoadFailed,
3075
3549
  HostDeclarationInvalid3,
@@ -3088,32 +3562,32 @@ var HostedCatalogSummary2 = Schema_exports.Struct({
3088
3562
  routers: Schema_exports.Array(HostedRouter2)
3089
3563
  });
3090
3564
  var HostError4 = Schema_exports.Union([
3091
- OpenapiResponseError,
3092
- ProviderError,
3565
+ OpenapiResponseError2,
3566
+ ProviderError3,
3093
3567
  McpError4,
3094
3568
  SkillLoadFailed,
3095
- WorkflowFailure,
3569
+ WorkflowFailure3,
3096
3570
  HostRequestInvalid,
3097
3571
  HostAccountsInvalid,
3098
3572
  HostDeclarationInvalid3,
3099
3573
  HostEvaluationFailed3,
3100
3574
  HostOperationNotFound,
3101
3575
  HostOperationFailed3,
3102
- DatabaseLimitExceeded,
3103
- DatabaseFieldReserved,
3576
+ DatabaseLimitExceeded2,
3577
+ DatabaseFieldReserved2,
3104
3578
  HostToolNotFound,
3105
3579
  HostInputInvalid,
3106
3580
  HostOutputInvalid,
3107
3581
  HostToolBlocked,
3108
3582
  HostToolApprovalRequired,
3109
3583
  HostToolPolicyFailed,
3110
- ElicitationFailed,
3584
+ ElicitationFailed2,
3111
3585
  HostKindMismatch
3112
3586
  ]);
3113
3587
  var HostResponse4 = Schema_exports.Union([
3114
3588
  Schema_exports.Struct({
3115
3589
  ok: Schema_exports.Literal(true),
3116
- value: JsonValue,
3590
+ value: JsonValue2,
3117
3591
  toolError: Schema_exports.optionalKey(Schema_exports.Literal(true))
3118
3592
  }),
3119
3593
  Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: HostError4 })
@@ -3139,7 +3613,7 @@ var McpError5 = class extends Schema_exports.TaggedError()("McpError", {
3139
3613
  "invalid_input"
3140
3614
  ]),
3141
3615
  status: Schema_exports.optional(Schema_exports.Number),
3142
- upstream: Schema_exports.optional(UpstreamError),
3616
+ upstream: Schema_exports.optional(UpstreamError2),
3143
3617
  session: Schema_exports.optional(Schema_exports.Literal(true))
3144
3618
  }) {
3145
3619
  };
@@ -3159,7 +3633,7 @@ var SkillLoadFailed2 = class extends Schema_exports.TaggedError()("SkillLoadFail
3159
3633
  }) {
3160
3634
  };
3161
3635
  var HostRouterError3 = Schema_exports.Union([
3162
- ProviderError,
3636
+ ProviderError3,
3163
3637
  McpError5,
3164
3638
  SkillLoadFailed2,
3165
3639
  HostDeclarationInvalid3,
@@ -3178,32 +3652,32 @@ var HostedCatalogSummary3 = Schema_exports.Struct({
3178
3652
  routers: Schema_exports.Array(HostedRouter3)
3179
3653
  });
3180
3654
  var HostError5 = Schema_exports.Union([
3181
- OpenapiResponseError,
3182
- ProviderError,
3655
+ OpenapiResponseError2,
3656
+ ProviderError3,
3183
3657
  McpError5,
3184
3658
  SkillLoadFailed2,
3185
- WorkflowFailure,
3659
+ WorkflowFailure3,
3186
3660
  HostRequestInvalid,
3187
3661
  HostAccountsInvalid,
3188
3662
  HostDeclarationInvalid3,
3189
3663
  HostEvaluationFailed3,
3190
3664
  HostOperationNotFound,
3191
3665
  HostOperationFailed3,
3192
- DatabaseLimitExceeded,
3193
- DatabaseFieldReserved,
3666
+ DatabaseLimitExceeded2,
3667
+ DatabaseFieldReserved2,
3194
3668
  HostToolNotFound,
3195
3669
  HostInputInvalid,
3196
3670
  HostOutputInvalid,
3197
3671
  HostToolBlocked,
3198
3672
  HostToolApprovalRequired,
3199
3673
  HostToolPolicyFailed,
3200
- ElicitationFailed,
3674
+ ElicitationFailed2,
3201
3675
  HostKindMismatch
3202
3676
  ]);
3203
3677
  var HostResponse5 = Schema_exports.Union([
3204
3678
  Schema_exports.Struct({
3205
3679
  ok: Schema_exports.Literal(true),
3206
- value: JsonValue,
3680
+ value: JsonValue2,
3207
3681
  toolError: Schema_exports.optionalKey(Schema_exports.Literal(true))
3208
3682
  }),
3209
3683
  Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: HostError5 })
@@ -3243,32 +3717,410 @@ var protocol10 = {
3243
3717
  }
3244
3718
  };
3245
3719
 
3246
- // src/contracts/protocols/11.ts
3720
+ // src/contracts/schedules.ts
3721
+ var minimumIntervalMilliseconds2 = 6e4;
3722
+ var count2 = Schema_exports.Int.check(Schema_exports.isGreaterThan(0));
3723
+ var absent = Schema_exports.optionalKey(Schema_exports.Never);
3724
+ var Interval = Schema_exports.Union([
3725
+ Schema_exports.Struct({ seconds: count2, minutes: absent, hours: absent }),
3726
+ Schema_exports.Struct({ seconds: absent, minutes: count2, hours: absent }),
3727
+ Schema_exports.Struct({ seconds: absent, minutes: absent, hours: count2 })
3728
+ ]);
3729
+ var CalendarSchedule2 = Schema_exports.Struct({
3730
+ expression: Schema_exports.NonEmptyString,
3731
+ timezone: Schema_exports.NonEmptyString
3732
+ }).check(
3733
+ Schema_exports.makeFilter(
3734
+ (value) => value.expression.trim().split(/\s+/).length === 5 && Result_exports.isSuccess(Cron_exports.parse(value.expression, value.timezone))
3735
+ )
3736
+ );
3737
+ var ScheduleTiming2 = Schema_exports.Union([
3738
+ Schema_exports.Struct({
3739
+ kind: Schema_exports.Literal("interval"),
3740
+ milliseconds: Schema_exports.Int.check(
3741
+ Schema_exports.makeFilter((value) => value >= minimumIntervalMilliseconds2, {
3742
+ message: "Schedule intervals must be at least 60 seconds"
3743
+ }),
3744
+ Schema_exports.isLessThanOrEqualTo(Number.MAX_SAFE_INTEGER)
3745
+ )
3746
+ }),
3747
+ Schema_exports.Struct({ kind: Schema_exports.Literal("cron"), calendar: CalendarSchedule2 })
3748
+ ]);
3749
+ var OperationSchedule2 = Schema_exports.Struct({
3750
+ name: Schema_exports.NonEmptyString,
3751
+ timing: ScheduleTiming2,
3752
+ input: JsonValue
3753
+ });
3754
+
3755
+ // src/contracts/protocols/current.ts
3756
+ var McpError6 = class extends Schema_exports.TaggedError()("McpError", {
3757
+ phase: Schema_exports.Literals(["connect", "discover", "call", "schema", "transport"]),
3758
+ reason: Schema_exports.Literals([
3759
+ "request",
3760
+ "unauthorized",
3761
+ "invalid_response",
3762
+ "timeout",
3763
+ "invalid_input"
3764
+ ]),
3765
+ status: Schema_exports.optional(Schema_exports.Number),
3766
+ /** The JSON-RPC error the server stated. */
3767
+ upstream: Schema_exports.optional(UpstreamError),
3768
+ /**
3769
+ * The refused request carried the session ID the server issued at initialization, so a 404 reads
3770
+ * as a session the server may have lost. Chooses the explanation only; the host never decides from
3771
+ * it whose side a failure is on.
3772
+ */
3773
+ session: Schema_exports.optional(Schema_exports.Literal(true))
3774
+ }) {
3775
+ };
3776
+ var SkillLoadFailed3 = class extends Schema_exports.TaggedError()("SkillLoadFailed", {
3777
+ reason: Schema_exports.Literals([
3778
+ "source",
3779
+ "request",
3780
+ "rate_limited",
3781
+ "document",
3782
+ "limit",
3783
+ "changed",
3784
+ "encoding"
3785
+ ]),
3786
+ message: Schema_exports.optional(Schema_exports.String.check(Schema_exports.isMaxLength(500))),
3787
+ status: Schema_exports.optional(Schema_exports.Int.check(Schema_exports.isBetween({ minimum: 100, maximum: 599 }))),
3788
+ /** What the service's answer points to as missing: the repository, or the branch or tag. */
3789
+ missing: Schema_exports.optional(Schema_exports.Literals(["repository", "ref"]))
3790
+ }) {
3791
+ };
3792
+ var CredentialHost2 = Schema_exports.String.check(
3793
+ Schema_exports.isPattern(
3794
+ /^(\*\.)?[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*(?::[0-9]{1,5})?$/
3795
+ )
3796
+ );
3797
+ var exposure2 = {
3798
+ /** Not secret: app code reads the real value and forms show it. */
3799
+ plain: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.NonEmptyString)),
3800
+ /** Secret, but app code reads the real value, for signing and similar uses. */
3801
+ raw: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.NonEmptyString))
3802
+ };
3803
+ var DeclaredAuthMethod4 = Schema_exports.Union([
3804
+ Schema_exports.Struct({
3805
+ type: Schema_exports.Literal("secrets"),
3806
+ label: Schema_exports.String,
3807
+ fields: JsonObject2,
3808
+ ...exposure2
3809
+ }),
3810
+ Schema_exports.Struct({
3811
+ type: Schema_exports.Literal("oauth2"),
3812
+ ...OAuth2Config.members[0].fields,
3813
+ response: JsonObject2,
3814
+ ...exposure2
3815
+ }),
3816
+ Schema_exports.Struct({
3817
+ type: Schema_exports.Literal("oauth2"),
3818
+ ...OAuth2Config.members[1].fields,
3819
+ response: JsonObject2,
3820
+ ...exposure2
3821
+ }),
3822
+ Schema_exports.Struct({
3823
+ type: Schema_exports.Literal("oauth2"),
3824
+ ...OAuth2Config.members[2].fields,
3825
+ response: JsonObject2,
3826
+ ...exposure2
3827
+ }),
3828
+ Schema_exports.Struct({
3829
+ type: Schema_exports.Literal("oauth2"),
3830
+ ...OAuth2Config.members[3].fields,
3831
+ response: JsonObject2,
3832
+ ...exposure2
3833
+ })
3834
+ ]);
3835
+ var DeclaredProvider4 = Schema_exports.Struct({
3836
+ name: Schema_exports.NonEmptyString,
3837
+ auth: Schema_exports.Record(Schema_exports.NonEmptyString, DeclaredAuthMethod4),
3838
+ hosts: Schema_exports.optionalKey(Schema_exports.Array(CredentialHost2))
3839
+ });
3247
3840
  var DeclaredRequirements6 = Schema_exports.Struct({
3248
- ...DeclaredRequirements5.fields,
3841
+ /** Protocol support of this retained framework build, not an author-declared requirement. */
3842
+ capabilities: Schema_exports.optionalKey(
3843
+ Schema_exports.Struct({
3844
+ skills: Schema_exports.Literal(true),
3845
+ /** Accepts inspect detail and tools. Earlier builds reject both as excess fields. */
3846
+ toolIndex: Schema_exports.optionalKey(Schema_exports.Literal(true)),
3847
+ /** Accepts skills sources and reports whether the catalog includes a live loader. */
3848
+ skillSources: Schema_exports.optionalKey(Schema_exports.Literal(true)),
3849
+ /** Accepts scheduled inspection. Earlier builds reject it as an excess field. */
3850
+ scheduledTools: Schema_exports.optionalKey(Schema_exports.Literal(true))
3851
+ })
3852
+ ),
3853
+ /**
3854
+ * The document database an app of protocol 9 or earlier declared. Apps of this protocol declare
3855
+ * `sql` instead; the field remains so requirements read from older retained builds keep their meaning.
3856
+ */
3857
+ database: Schema_exports.optionalKey(DatabaseSchema),
3858
+ accounts: Schema_exports.Record(
3859
+ Schema_exports.NonEmptyString,
3860
+ Schema_exports.Struct({
3861
+ definition: DeclaredProvider4,
3862
+ cardinality: Schema_exports.Literals(["one", "many"]),
3863
+ /**
3864
+ * The slot's provider defines an account check. Kept beside the definition, not in it, so
3865
+ * adding or editing a check never changes the provider's identity.
3866
+ */
3867
+ health: Schema_exports.optionalKey(Schema_exports.Literal(true))
3868
+ })
3869
+ ),
3870
+ /** The build has SQL files in `migrations/` and owns a raw SQLite database. */
3871
+ sql: Schema_exports.optionalKey(Schema_exports.Literal(true)),
3872
+ /** The events the app declares, so a host lists them without evaluating the app. */
3249
3873
  events: Schema_exports.optionalKey(DeclaredEvents)
3250
3874
  });
3875
+ var ResolvedAccount4 = Schema_exports.Struct({
3876
+ id: AccountId,
3877
+ provider: DeclaredProvider4,
3878
+ method: Schema_exports.NonEmptyString,
3879
+ /**
3880
+ * Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
3881
+ * send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
3882
+ */
3883
+ generation: Schema_exports.optionalKey(Schema_exports.Int),
3884
+ fields: JsonObject2
3885
+ });
3886
+ var ResolvedAccounts4 = Schema_exports.Record(
3887
+ Schema_exports.NonEmptyString,
3888
+ Schema_exports.Union([ResolvedAccount4, Schema_exports.Array(ResolvedAccount4)])
3889
+ );
3890
+ var TrustedToolApproval2 = Schema_exports.Struct({ tool: Schema_exports.NonEmptyString, input: JsonValue });
3891
+ var InvocationDeadline2 = Schema_exports.Finite.check(Schema_exports.isGreaterThanOrEqualTo(0));
3892
+ var HostedTool3 = Schema_exports.Struct({
3893
+ schedules: Schema_exports.optionalKey(Schema_exports.Array(OperationSchedule2)),
3894
+ name: Schema_exports.NonEmptyString,
3895
+ router: Schema_exports.optionalKey(Schema_exports.NonEmptyString),
3896
+ tags: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.NonEmptyString)),
3897
+ description: Schema_exports.String,
3898
+ inputSchema: JsonObject2,
3899
+ readOnly: Schema_exports.optionalKey(Schema_exports.Boolean),
3900
+ title: Schema_exports.optionalKey(Schema_exports.String),
3901
+ outputSchema: Schema_exports.optionalKey(JsonObject2),
3902
+ annotations: Schema_exports.optionalKey(ToolAnnotations2),
3903
+ _meta: Schema_exports.optionalKey(JsonObject2)
3904
+ });
3905
+ var HostedToolSummary3 = HostedTool3.mapFields(
3906
+ ({ inputSchema: _input, outputSchema: _output, _meta, ...fields }) => fields
3907
+ );
3908
+ var HostDeclarationInvalid4 = class extends Schema_exports.TaggedError()(
3909
+ "HostDeclarationInvalid",
3910
+ FailureDetail
3911
+ ) {
3912
+ };
3913
+ var HostEvaluationFailed4 = class extends Schema_exports.TaggedError()(
3914
+ "HostEvaluationFailed",
3915
+ FailureDetail
3916
+ ) {
3917
+ };
3918
+ var HostRouterError4 = Schema_exports.Union([
3919
+ ProviderError,
3920
+ McpError6,
3921
+ SkillLoadFailed3,
3922
+ HostDeclarationInvalid4,
3923
+ HostEvaluationFailed4
3924
+ ]);
3925
+ var HostedRouter4 = Schema_exports.Struct({
3926
+ path: Schema_exports.String,
3927
+ title: Schema_exports.optionalKey(Schema_exports.String),
3928
+ description: Schema_exports.optionalKey(Schema_exports.String),
3929
+ icons: Schema_exports.optionalKey(Schema_exports.Array(RouterIcon)),
3930
+ tags: Schema_exports.optionalKey(Schema_exports.Record(Schema_exports.NonEmptyString, Schema_exports.String)),
3931
+ skill: Schema_exports.optionalKey(AppSkillName),
3932
+ error: Schema_exports.optionalKey(HostRouterError4)
3933
+ });
3934
+ var HostedCatalog4 = Schema_exports.Struct({
3935
+ tools: Schema_exports.Array(HostedTool3),
3936
+ routers: Schema_exports.Array(HostedRouter4)
3937
+ });
3938
+ var HostedCatalogSummary4 = Schema_exports.Struct({
3939
+ tools: Schema_exports.Array(HostedToolSummary3),
3940
+ routers: Schema_exports.Array(HostedRouter4)
3941
+ });
3942
+ var SkillSources3 = Schema_exports.Struct({
3943
+ skills: AppSkills,
3944
+ dynamic: Schema_exports.Boolean,
3945
+ cached: Schema_exports.optionalKey(Schema_exports.Boolean)
3946
+ });
3947
+ var SkillCatalogResponse3 = Schema_exports.Union([SkillSources3, AppSkills]);
3948
+ var ToolKind2 = Schema_exports.Literals(["query", "mutation"]);
3949
+ var AccountCheckCommand2 = Schema_exports.Struct({
3950
+ operation: Schema_exports.Literal("account-check"),
3951
+ requirement: Schema_exports.NonEmptyString
3952
+ });
3953
+ var MigrateCommand2 = Schema_exports.Struct({ operation: Schema_exports.Literal("migrate") });
3954
+ var MigrateResult2 = Schema_exports.Array(
3955
+ Schema_exports.Struct({ id: Schema_exports.Int, name: Schema_exports.NonEmptyString })
3956
+ );
3957
+ var HostRequest5 = Schema_exports.Union([
3958
+ WorkflowCommand,
3959
+ WebhookCommand,
3960
+ Schema_exports.Struct({ operation: Schema_exports.Literal("requirements") }),
3961
+ Schema_exports.Struct({
3962
+ operation: Schema_exports.Literal("inspect"),
3963
+ /** Omit schemas. Only builds that declare the toolIndex capability accept this. */
3964
+ detail: Schema_exports.optionalKey(Schema_exports.Literal("summary")),
3965
+ /** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
3966
+ tools: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.NonEmptyString)),
3967
+ /**
3968
+ * Describe only declared operations that have schedules, without dynamic tool discovery.
3969
+ * Only builds that declare the scheduledTools capability accept this.
3970
+ */
3971
+ scheduled: Schema_exports.optionalKey(Schema_exports.Literal(true))
3972
+ }),
3973
+ Schema_exports.Struct({
3974
+ operation: Schema_exports.Literal("skills"),
3975
+ /** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
3976
+ sources: Schema_exports.optionalKey(Schema_exports.Literal(true))
3977
+ }),
3978
+ Schema_exports.Struct({
3979
+ operation: Schema_exports.Literal("query"),
3980
+ name: Schema_exports.NonEmptyString,
3981
+ input: JsonValue
3982
+ }),
3983
+ Schema_exports.Struct({
3984
+ operation: Schema_exports.Literal("mutate"),
3985
+ name: Schema_exports.NonEmptyString,
3986
+ input: JsonValue
3987
+ }),
3988
+ Schema_exports.Struct({
3989
+ operation: Schema_exports.Literal("call"),
3990
+ tool: Schema_exports.NonEmptyString,
3991
+ /**
3992
+ * The caller's claim; the bundle rejects a call whose tool has the other kind. The host omits
3993
+ * it for a tool its catalog does not list, and then opens storage for writing.
3994
+ */
3995
+ kind: Schema_exports.optionalKey(ToolKind2),
3996
+ input: JsonValue
3997
+ }),
3998
+ AccountCheckCommand2,
3999
+ MigrateCommand2
4000
+ ]);
4001
+ var HostRequestInvalid2 = class extends Schema_exports.TaggedError()(
4002
+ "HostRequestInvalid",
4003
+ {}
4004
+ ) {
4005
+ };
4006
+ var HostAccountsInvalid2 = class extends Schema_exports.TaggedError()(
4007
+ "HostAccountsInvalid",
4008
+ {}
4009
+ ) {
4010
+ };
4011
+ var HostOperationNotFound2 = class extends Schema_exports.TaggedError()(
4012
+ "HostOperationNotFound",
4013
+ {}
4014
+ ) {
4015
+ };
4016
+ var HostOperationFailed4 = class extends Schema_exports.TaggedError()(
4017
+ "HostOperationFailed",
4018
+ FailureDetail
4019
+ ) {
4020
+ };
4021
+ var HostToolNotFound2 = class extends Schema_exports.TaggedError()(
4022
+ "HostToolNotFound",
4023
+ {}
4024
+ ) {
4025
+ };
4026
+ var HostKindMismatch2 = class extends Schema_exports.TaggedError()("HostKindMismatch", {
4027
+ tool: Schema_exports.NonEmptyString,
4028
+ requested: ToolKind2,
4029
+ actual: ToolKind2
4030
+ }) {
4031
+ };
4032
+ var InputProblem2 = Schema_exports.String.check(Schema_exports.isMaxLength(512));
4033
+ var maxInputProblems2 = 10;
4034
+ var HostInputInvalid2 = class extends Schema_exports.TaggedError()("HostInputInvalid", {
4035
+ problems: Schema_exports.optionalKey(
4036
+ Schema_exports.Array(InputProblem2).check(Schema_exports.isMaxLength(maxInputProblems2))
4037
+ )
4038
+ }) {
4039
+ };
4040
+ var HostToolBlocked2 = class extends Schema_exports.TaggedError()("HostToolBlocked", {}) {
4041
+ };
4042
+ var HostToolApprovalRequired2 = class extends Schema_exports.TaggedError()(
4043
+ "HostToolApprovalRequired",
4044
+ { input: JsonValue, elicitation: ApprovalElicitation }
4045
+ ) {
4046
+ };
4047
+ var HostToolPolicyFailed2 = class extends Schema_exports.TaggedError()(
4048
+ "HostToolPolicyFailed",
4049
+ {}
4050
+ ) {
4051
+ };
4052
+ var HostOutputInvalid2 = class extends Schema_exports.TaggedError()(
4053
+ "HostOutputInvalid",
4054
+ {}
4055
+ ) {
4056
+ };
4057
+ var HostError6 = Schema_exports.Union([
4058
+ OpenapiResponseError,
4059
+ ProviderError,
4060
+ McpError6,
4061
+ SkillLoadFailed3,
4062
+ WorkflowFailure,
4063
+ HostRequestInvalid2,
4064
+ HostAccountsInvalid2,
4065
+ HostDeclarationInvalid4,
4066
+ HostEvaluationFailed4,
4067
+ HostOperationNotFound2,
4068
+ HostOperationFailed4,
4069
+ DatabaseLimitExceeded,
4070
+ DatabaseFieldReserved,
4071
+ HostToolNotFound2,
4072
+ HostInputInvalid2,
4073
+ HostOutputInvalid2,
4074
+ HostToolBlocked2,
4075
+ HostToolApprovalRequired2,
4076
+ HostToolPolicyFailed2,
4077
+ ElicitationFailed,
4078
+ HostKindMismatch2
4079
+ ]);
3251
4080
  var HostResponse6 = Schema_exports.Union([
3252
4081
  Schema_exports.Struct({
3253
4082
  ok: Schema_exports.Literal(true),
3254
4083
  value: JsonValue,
3255
4084
  toolError: Schema_exports.optionalKey(Schema_exports.Literal(true)),
4085
+ /** The occurrences this invocation emitted, kept only because it succeeded. */
3256
4086
  events: Schema_exports.optionalKey(EmittedEvents)
3257
4087
  }),
3258
- Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: HostError5 })
4088
+ Schema_exports.Struct({ ok: Schema_exports.Literal(false), error: HostError6 })
3259
4089
  ]);
3260
- var protocol11 = {
3261
- version: 11,
4090
+ var HostInvocation7 = Schema_exports.Struct({
4091
+ command: HostRequest5,
4092
+ accounts: ResolvedAccounts4,
4093
+ approval: Schema_exports.optionalKey(TrustedToolApproval2),
4094
+ replay: Schema_exports.optionalKey(WorkflowReplay),
4095
+ deadline: Schema_exports.optionalKey(InvocationDeadline2),
4096
+ workflowRun: Schema_exports.optionalKey(WorkflowRunId)
4097
+ });
4098
+ var current = {
4099
+ version: frameworkProtocol,
3262
4100
  schemas: {
3263
- ...protocol10.schemas,
4101
+ invocation: HostInvocation7,
4102
+ request: HostRequest5,
4103
+ response: HostResponse6,
3264
4104
  requirements: DeclaredRequirements6,
3265
- response: HostResponse6
4105
+ catalog: HostedCatalog4,
4106
+ catalogSummary: HostedCatalogSummary4,
4107
+ skills: SkillCatalogResponse3,
4108
+ elicitationRequest: FormElicitation,
4109
+ elicitationReply: ElicitationReply,
4110
+ workflowStep: WorkflowRpcCommand,
4111
+ workflowStepReply: WorkflowRpcResult,
4112
+ workflowControl: WorkflowControlCommand,
4113
+ cacheCommand: CacheCommand,
4114
+ cacheReply: CacheReply,
4115
+ accountCheck: AccountCheckResult,
4116
+ accounts: ResolvedAccounts4,
4117
+ migrate: MigrateResult2
3266
4118
  }
3267
4119
  };
3268
4120
 
3269
4121
  // src/contracts/host.ts
3270
4122
  var skillsCommand = (sources) => sources ? { operation: "skills", sources: true } : { operation: "skills" };
3271
- var skillCatalog = (response) => Schema_exports.is(SkillSources2)(response) ? response : { skills: response };
4123
+ var skillCatalog = (response) => Schema_exports.is(SkillSources3)(response) ? response : { skills: response };
3272
4124
  var inspectCommand = (tools, scheduled) => ({
3273
4125
  operation: "inspect",
3274
4126
  ...tools === void 0 ? {} : { tools: [...tools] },
@@ -3277,44 +4129,44 @@ var inspectCommand = (tools, scheduled) => ({
3277
4129
  var indexCommand = { operation: "inspect", detail: "summary" };
3278
4130
  var selectTools = (tools) => (catalog) => tools === void 0 ? catalog : { ...catalog, tools: catalog.tools.filter((tool) => tools.includes(tool.name)) };
3279
4131
  var HostRequirementsError = Schema_exports.Union([
3280
- HostRequestInvalid,
3281
- HostDeclarationInvalid3,
4132
+ HostRequestInvalid2,
4133
+ HostDeclarationInvalid4,
3282
4134
  DatabaseFieldReserved
3283
4135
  ]);
3284
4136
  var HostInspectError = Schema_exports.Union([
3285
4137
  ProviderError,
3286
- McpError5,
3287
- SkillLoadFailed2,
3288
- HostRequestInvalid,
3289
- HostDeclarationInvalid3,
3290
- HostAccountsInvalid,
3291
- HostEvaluationFailed3
4138
+ McpError6,
4139
+ SkillLoadFailed3,
4140
+ HostRequestInvalid2,
4141
+ HostDeclarationInvalid4,
4142
+ HostAccountsInvalid2,
4143
+ HostEvaluationFailed4
3292
4144
  ]);
3293
4145
  var HostCallError = Schema_exports.Union([
3294
4146
  OpenapiResponseError,
3295
4147
  WorkflowFailure,
3296
4148
  HostInspectError,
3297
- HostToolNotFound,
3298
- HostOperationNotFound,
3299
- HostKindMismatch,
3300
- HostOperationFailed3,
4149
+ HostToolNotFound2,
4150
+ HostOperationNotFound2,
4151
+ HostKindMismatch2,
4152
+ HostOperationFailed4,
3301
4153
  DatabaseLimitExceeded,
3302
- HostInputInvalid,
3303
- HostOutputInvalid,
3304
- HostToolBlocked,
3305
- HostToolApprovalRequired,
3306
- HostToolPolicyFailed,
4154
+ HostInputInvalid2,
4155
+ HostOutputInvalid2,
4156
+ HostToolBlocked2,
4157
+ HostToolApprovalRequired2,
4158
+ HostToolPolicyFailed2,
3307
4159
  ElicitationFailed
3308
4160
  ]);
3309
4161
  var HostAccountCheckError = Schema_exports.Union([
3310
4162
  ProviderError,
3311
4163
  WorkflowFailure,
3312
- HostRequestInvalid,
3313
- HostDeclarationInvalid3,
3314
- HostAccountsInvalid,
3315
- HostOperationNotFound,
3316
- HostOperationFailed3,
3317
- HostOutputInvalid
4164
+ HostRequestInvalid2,
4165
+ HostDeclarationInvalid4,
4166
+ HostAccountsInvalid2,
4167
+ HostOperationNotFound2,
4168
+ HostOperationFailed4,
4169
+ HostOutputInvalid2
3318
4170
  ]);
3319
4171
  var HostDataError = HostCallError;
3320
4172
  var ToolResultObservation = Context_exports.Reference(
@@ -3418,62 +4270,62 @@ export {
3418
4270
  EmittedEvent,
3419
4271
  EmittedEvents,
3420
4272
  frameworkProtocol,
3421
- minimumIntervalMilliseconds,
3422
- Interval,
3423
- CalendarSchedule,
3424
- ScheduleTiming,
3425
- OperationSchedule,
3426
- TrustedToolApproval,
3427
- InvocationDeadline,
3428
- HostRequestInvalid,
3429
- HostAccountsInvalid,
3430
- HostOperationNotFound,
3431
- HostToolNotFound,
3432
- InputProblem,
3433
- maxInputProblems,
3434
- HostInputInvalid,
3435
- HostToolBlocked,
3436
- HostToolApprovalRequired,
3437
- HostToolPolicyFailed,
3438
- HostOutputInvalid,
3439
4273
  protocol1,
3440
- SkillSources2 as SkillSources,
3441
- SkillCatalogResponse2 as SkillCatalogResponse,
3442
4274
  protocol2,
3443
4275
  protocol3,
3444
- HostedTool2 as HostedTool,
3445
- HostedToolSummary2 as HostedToolSummary,
3446
- HostKindMismatch,
3447
4276
  protocol4,
3448
- AccountCheckCommand,
3449
4277
  protocol5,
3450
4278
  protocol6,
3451
- CredentialHost,
3452
- DeclaredAuthMethod3 as DeclaredAuthMethod,
3453
- DeclaredProvider3 as DeclaredProvider,
3454
- ResolvedAccount3 as ResolvedAccount,
3455
- ResolvedAccounts3 as ResolvedAccounts,
3456
4279
  protocol7,
3457
- HostDeclarationInvalid3 as HostDeclarationInvalid,
3458
- HostEvaluationFailed3 as HostEvaluationFailed,
3459
- HostOperationFailed3 as HostOperationFailed,
3460
4280
  protocol8,
3461
- McpError5 as McpError2,
3462
- SkillLoadFailed2 as SkillLoadFailed,
3463
- HostRouterError3 as HostRouterError,
3464
- HostedRouter3 as HostedRouter,
3465
- HostedCatalog3 as HostedCatalog,
3466
- HostedCatalogSummary3 as HostedCatalogSummary,
3467
- HostError5 as HostError,
3468
4281
  protocol9,
3469
- MigrateCommand,
3470
- MigrateResult,
3471
- HostRequest4 as HostRequest,
3472
- HostInvocation6 as HostInvocation,
3473
4282
  protocol10,
4283
+ minimumIntervalMilliseconds2 as minimumIntervalMilliseconds,
4284
+ Interval,
4285
+ CalendarSchedule2 as CalendarSchedule,
4286
+ ScheduleTiming2 as ScheduleTiming,
4287
+ OperationSchedule2 as OperationSchedule,
4288
+ McpError6 as McpError2,
4289
+ SkillLoadFailed3 as SkillLoadFailed,
4290
+ CredentialHost2 as CredentialHost,
4291
+ DeclaredAuthMethod4 as DeclaredAuthMethod,
4292
+ DeclaredProvider4 as DeclaredProvider,
3474
4293
  DeclaredRequirements6 as DeclaredRequirements,
4294
+ ResolvedAccount4 as ResolvedAccount,
4295
+ ResolvedAccounts4 as ResolvedAccounts,
4296
+ TrustedToolApproval2 as TrustedToolApproval,
4297
+ InvocationDeadline2 as InvocationDeadline,
4298
+ HostedTool3 as HostedTool,
4299
+ HostedToolSummary3 as HostedToolSummary,
4300
+ HostDeclarationInvalid4 as HostDeclarationInvalid,
4301
+ HostEvaluationFailed4 as HostEvaluationFailed,
4302
+ HostRouterError4 as HostRouterError,
4303
+ HostedRouter4 as HostedRouter,
4304
+ HostedCatalog4 as HostedCatalog,
4305
+ HostedCatalogSummary4 as HostedCatalogSummary,
4306
+ SkillSources3 as SkillSources,
4307
+ SkillCatalogResponse3 as SkillCatalogResponse,
4308
+ AccountCheckCommand2 as AccountCheckCommand,
4309
+ MigrateCommand2 as MigrateCommand,
4310
+ MigrateResult2 as MigrateResult,
4311
+ HostRequest5 as HostRequest,
4312
+ HostRequestInvalid2 as HostRequestInvalid,
4313
+ HostAccountsInvalid2 as HostAccountsInvalid,
4314
+ HostOperationNotFound2 as HostOperationNotFound,
4315
+ HostOperationFailed4 as HostOperationFailed,
4316
+ HostToolNotFound2 as HostToolNotFound,
4317
+ HostKindMismatch2 as HostKindMismatch,
4318
+ InputProblem2 as InputProblem,
4319
+ maxInputProblems2 as maxInputProblems,
4320
+ HostInputInvalid2 as HostInputInvalid,
4321
+ HostToolBlocked2 as HostToolBlocked,
4322
+ HostToolApprovalRequired2 as HostToolApprovalRequired,
4323
+ HostToolPolicyFailed2 as HostToolPolicyFailed,
4324
+ HostOutputInvalid2 as HostOutputInvalid,
4325
+ HostError6 as HostError,
3475
4326
  HostResponse6 as HostResponse,
3476
- protocol11,
4327
+ HostInvocation7 as HostInvocation,
4328
+ current,
3477
4329
  skillsCommand,
3478
4330
  skillCatalog,
3479
4331
  inspectCommand,