apps 0.0.1-beta.13 → 0.0.1-beta.130
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 +60 -42
- package/framework-reference.json +1 -1
- package/js/{chunk-M3B3DE4K.js → chunk-2XDCAXAR.js} +612 -246
- package/js/{chunk-IPI4MFSN.js → chunk-34RH47V5.js} +2 -2
- package/js/chunk-3ICMSVNC.js +175 -0
- package/js/chunk-4SIYTPIK.js +724 -0
- package/js/{chunk-KUMBKVJD.js → chunk-6QZVXLF2.js} +2 -2
- package/js/chunk-7MPPHKRW.js +5418 -0
- package/js/chunk-AR22I6UO.js +1016 -0
- package/js/chunk-BMHEVNGF.js +49 -0
- package/js/{chunk-RFVIONFX.js → chunk-BSSBP57D.js} +136 -45
- package/js/{chunk-ODEIDRGW.js → chunk-DWYOLPWT.js} +1133 -503
- package/js/chunk-H2K7OZ47.js +90 -0
- package/js/chunk-I6QAWNUM.js +161 -0
- package/js/{chunk-QS6CAHKC.js → chunk-J52LZT2Y.js} +4 -3
- package/js/chunk-JLW4LQS7.js +335 -0
- package/js/chunk-L2RUGQAM.js +576 -0
- package/js/chunk-LSOHA2RH.js +88 -0
- package/js/{chunk-UK573G7W.js → chunk-MB6L5YZE.js} +1817 -632
- package/js/chunk-OBT33ZDK.js +95 -0
- package/js/chunk-OD3KFKZD.js +1617 -0
- package/js/{chunk-JU7VHODU.js → chunk-QTX7OUFH.js} +65 -10
- package/js/chunk-T7MXJSCW.js +1945 -0
- package/js/{chunk-VFZKSM3T.js → chunk-VX36SA7Y.js} +3 -3
- package/js/chunk-WX773GGX.js +449 -0
- package/js/{chunk-5T57N25Q.js → chunk-WXHRUWNT.js} +651 -70
- package/js/{chunk-CDL5PM2Q.js → chunk-YFSOSNF3.js} +17265 -12477
- package/js/{chunk-IJX4CYZO.js → chunk-YVN2AMAU.js} +976 -447
- package/js/client.js +234 -92
- package/js/contracts.js +154 -21
- package/js/effect.js +18 -19
- package/js/{es-APDZKREY.js → es-DIULA3ZF.js} +62 -1659
- package/js/graphql.js +231 -188
- package/js/host.js +138 -80
- package/js/index.js +153 -300
- package/js/mcp/effect.js +21 -21
- package/js/mcp.js +91 -57
- package/js/openapi.js +4357 -1415
- package/js/react.js +2 -3
- package/js/skills/effect.js +6 -3
- package/js/skills.js +220 -81
- package/js/storage/facet.js +1 -540
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +9 -8
- package/js/ui/serving.js +8618 -235
- package/package.json +3 -8
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +18 -0
- package/types/app-cache/src/index.d.ts +34 -2
- package/types/apps/src/contracts/api-response-error.d.ts +4 -0
- package/types/apps/src/contracts/app.d.ts +56 -11
- package/types/apps/src/contracts/cache.d.ts +20 -0
- package/types/apps/src/contracts/context.d.ts +60 -17
- package/types/apps/src/contracts/elicitation.d.ts +23 -7
- package/types/apps/src/contracts/events.d.ts +94 -0
- package/types/apps/src/contracts/failure.d.ts +30 -1
- package/types/apps/src/contracts/graphql.d.ts +40 -2
- package/types/apps/src/contracts/help-text.d.ts +31 -0
- package/types/apps/src/contracts/host.d.ts +1493 -20
- package/types/apps/src/contracts/icons.d.ts +28 -0
- package/types/apps/src/contracts/live.d.ts +2 -0
- package/types/apps/src/contracts/mcp.d.ts +81 -20
- package/types/apps/src/contracts/network.d.ts +120 -0
- package/types/apps/src/contracts/openapi-compile.d.ts +82 -3
- package/types/apps/src/contracts/openapi-document.d.ts +1 -1
- package/types/apps/src/contracts/openapi.d.ts +40 -8
- package/types/apps/src/contracts/operations.d.ts +14 -7
- package/types/apps/src/contracts/placement.d.ts +102 -0
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/1.d.ts +513 -15
- package/types/apps/src/contracts/protocols/10.d.ts +1450 -0
- package/types/apps/src/contracts/protocols/11.d.ts +1149 -0
- package/types/apps/src/contracts/protocols/12.d.ts +3310 -0
- package/types/apps/src/contracts/protocols/13.d.ts +6001 -0
- package/types/apps/src/contracts/protocols/2.d.ts +9 -8
- package/types/apps/src/contracts/protocols/3.d.ts +73 -15
- package/types/apps/src/contracts/protocols/4.d.ts +22 -15
- package/types/apps/src/contracts/protocols/5.d.ts +37 -11
- package/types/apps/src/contracts/protocols/6.d.ts +1629 -0
- package/types/apps/src/contracts/protocols/7.d.ts +1785 -0
- package/types/apps/src/contracts/protocols/8.d.ts +1182 -0
- package/types/apps/src/contracts/protocols/9.d.ts +1104 -0
- package/types/apps/src/contracts/protocols/current.d.ts +7114 -0
- package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
- package/types/apps/src/contracts/protocols/oauth.d.ts +134 -0
- package/types/apps/src/contracts/provider-error.d.ts +9 -0
- package/types/apps/src/contracts/provider.d.ts +56 -0
- package/types/apps/src/contracts/router.d.ts +2 -1
- package/types/apps/src/contracts/schedules.d.ts +7 -1
- package/types/apps/src/contracts/schema.d.ts +21 -0
- package/types/apps/src/contracts/shared-catalog.d.ts +11 -0
- package/types/apps/src/contracts/skills.d.ts +50 -13
- package/types/apps/src/contracts/sql.d.ts +63 -0
- package/types/apps/src/contracts/ui.d.ts +70 -30
- package/types/apps/src/contracts/webhooks.d.ts +24 -7
- package/types/apps/src/contracts/workflows.d.ts +56 -34
- package/types/apps/src/facet.d.ts +4 -5
- package/types/apps/src/host.d.ts +5 -0
- package/types/apps/src/implementation/account-router.d.ts +20 -3
- package/types/apps/src/implementation/app.d.ts +41 -14
- package/types/apps/src/implementation/authoring.d.ts +25 -5
- package/types/apps/src/implementation/browser-scripts.gen.d.ts +6 -0
- package/types/apps/src/implementation/cache.d.ts +29 -2
- package/types/apps/src/implementation/catalog-cache.d.ts +35 -4
- package/types/apps/src/implementation/elicitation.d.ts +16 -13
- package/types/apps/src/implementation/events.d.ts +64 -0
- package/types/apps/src/implementation/failure-detail.d.ts +28 -5
- package/types/apps/src/implementation/graphql-catalog.d.ts +3 -3
- package/types/apps/src/implementation/graphql.d.ts +4 -3
- package/types/apps/src/implementation/help-text.d.ts +5 -0
- package/types/apps/src/implementation/input-problems.d.ts +6 -2
- package/types/apps/src/implementation/invocation-timing.d.ts +18 -0
- package/types/apps/src/implementation/live.d.ts +2 -2
- package/types/apps/src/implementation/mcp-call.d.ts +6 -5
- package/types/apps/src/implementation/mcp-catalog.d.ts +6 -4
- package/types/apps/src/implementation/mcp-client.d.ts +17 -9
- package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
- package/types/apps/src/implementation/mcp.d.ts +20 -9
- package/types/apps/src/implementation/network.d.ts +16 -0
- package/types/apps/src/implementation/openapi-compile.d.ts +38 -7
- package/types/apps/src/implementation/openapi-document.d.ts +50 -20
- package/types/apps/src/implementation/openapi-names.d.ts +9 -4
- package/types/apps/src/implementation/openapi-request.d.ts +10 -2
- package/types/apps/src/implementation/openapi-source.d.ts +23 -1
- package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
- package/types/apps/src/implementation/operations.d.ts +58 -7
- package/types/apps/src/implementation/optimistic.d.ts +1 -1
- package/types/apps/src/implementation/placement.d.ts +60 -0
- package/types/apps/src/implementation/protocol-operations.d.ts +3 -0
- package/types/apps/src/implementation/provider-error.d.ts +28 -1
- package/types/apps/src/implementation/provider.d.ts +20 -4
- package/types/apps/src/implementation/query-commit.d.ts +1 -1
- package/types/apps/src/implementation/router-catalog.d.ts +22 -97
- package/types/apps/src/implementation/router.d.ts +26 -6
- package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
- package/types/apps/src/implementation/schedules.d.ts +39 -8
- package/types/apps/src/implementation/schema.d.ts +125 -17
- package/types/apps/src/implementation/skills.d.ts +18 -24
- package/types/apps/src/implementation/sql.d.ts +71 -0
- package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
- package/types/apps/src/implementation/ui-auth.d.ts +1 -1
- package/types/apps/src/implementation/ui-client.d.ts +3 -3
- package/types/apps/src/implementation/ui-document.d.ts +5 -0
- package/types/apps/src/implementation/ui-errors.d.ts +1 -1
- package/types/apps/src/implementation/ui-serving.d.ts +38 -12
- package/types/apps/src/implementation/upstream-error.d.ts +17 -0
- package/types/apps/src/implementation/webhooks.d.ts +15 -6
- package/types/apps/src/implementation/workflow-context.d.ts +6 -2
- package/types/apps/src/implementation/workflows.d.ts +11 -4
- package/types/apps/src/index.d.ts +67 -17
- package/types/apps/src/mcp.d.ts +20 -1
- package/types/apps/src/openapi.d.ts +22 -1
- package/types/apps/src/react.d.ts +1 -1
- package/types/apps/src/skills.d.ts +10 -8
- package/types/apps/src/ui-serving.d.ts +1 -2
- package/types/telemetry/src/app-records.d.ts +42 -0
- package/types/telemetry/src/browser-operations.d.ts +2 -2
- package/types/telemetry/src/browser.d.ts +8 -3
- package/types/telemetry/src/config.d.ts +2 -2
- package/types/telemetry/src/index.d.ts +3 -2
- package/types/telemetry/src/keepalive.d.ts +36 -0
- package/types/telemetry/src/layer.d.ts +10 -4
- package/types/telemetry/src/measurements.d.ts +6 -2
- package/types/telemetry/src/ownership.d.ts +60 -0
- package/types/telemetry/src/recorded-failure.d.ts +29 -0
- package/types/telemetry/src/relay.d.ts +25 -7
- package/types/telemetry/src/span-attributes.d.ts +22 -3
- package/types/telemetry/src/transport.d.ts +8 -1
- package/types/utils/src/api-error.d.ts +55 -0
- package/types/utils/src/connection-failure.d.ts +33 -0
- package/types/utils/src/legacy-keys.d.ts +20 -0
- package/types/utils/src/random-uuid.d.ts +6 -0
- package/types/utils/src/recorded-message.d.ts +18 -0
- package/types/utils/src/schema-definitions.d.ts +13 -0
- package/types/utils/src/user-facing-error.d.ts +83 -0
- package/js/chunk-27F7W2LG.js +0 -34
- package/js/chunk-4ASNKGCV.js +0 -242
- package/js/chunk-4DWF4ZWI.js +0 -1280
- package/js/chunk-57RKNWL2.js +0 -75
- package/js/chunk-6HSH75OI.js +0 -2688
- package/js/chunk-G4FT53I7.js +0 -224
- package/js/chunk-MKWZPDR6.js +0 -63
- package/js/chunk-N7YDVXYJ.js +0 -186
- package/js/chunk-NKLWZJLE.js +0 -172
- package/js/chunk-PJJ24GU7.js +0 -877
- package/js/chunk-PZB6T6KU.js +0 -19
- package/js/chunk-R3EV5FTO.js +0 -97
- package/js/chunk-S73JGVR5.js +0 -507
- package/js/chunk-TG6DOCRO.js +0 -299
- package/js/chunk-YPKG2QO5.js +0 -209
- package/js/chunk-ZQINWV4W.js +0 -630
- package/js/mcp/stdio.js +0 -128
- package/types/app-data/src/implementation/cursor.d.ts +0 -10
- package/types/app-data/src/implementation/index-key.d.ts +0 -7
- package/types/app-data/src/implementation/promise.d.ts +0 -68
- package/types/app-data/src/implementation/range.d.ts +0 -8
- package/types/app-data/src/implementation/schema.d.ts +0 -18
- package/types/app-data/src/implementation/sqlite.d.ts +0 -11
- package/types/app-data/src/index.d.ts +0 -4
- package/types/apps/src/contracts/storage.d.ts +0 -68
- package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
- package/types/apps/src/implementation/storage.d.ts +0 -15
- package/types/apps/src/implementation/ui-watch.d.ts +0 -2
- package/types/apps/src/mcp-stdio.d.ts +0 -5
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Every other message is protocol 1's, re-exported unchanged. Once released this protocol is
|
|
6
6
|
* frozen like protocol 1: `bun run check` compares `protocol2` with `packages/apps/protocols/2.json`.
|
|
7
|
-
*
|
|
7
|
+
* The module imports only `effect` and earlier protocol modules, so no change elsewhere can alter
|
|
8
|
+
* it. Define the next protocol to change it. See notes/apps-publishing.md.
|
|
8
9
|
*/
|
|
9
10
|
import { Schema } from "effect";
|
|
10
11
|
export * from "./1.js";
|
|
@@ -425,7 +426,7 @@ export declare const protocol2: {
|
|
|
425
426
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
426
427
|
}>, Schema.Struct<{
|
|
427
428
|
readonly ok: Schema.Literal<false>;
|
|
428
|
-
readonly error: Schema.Union<readonly [typeof import("
|
|
429
|
+
readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./1.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof import("./1.js").HostDeclarationInvalid, typeof import("./1.js").HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./1.js").HostOperationFailed, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("./1.js").ElicitationFailed]>;
|
|
429
430
|
}>]>;
|
|
430
431
|
readonly requirements: Schema.Struct<{
|
|
431
432
|
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
@@ -579,10 +580,10 @@ export declare const protocol2: {
|
|
|
579
580
|
readonly elicitationRequest: Schema.Struct<{
|
|
580
581
|
readonly mode: Schema.Literal<"form">;
|
|
581
582
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
582
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
583
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
583
584
|
readonly type: Schema.tag<"object">;
|
|
584
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
585
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
585
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
586
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
586
587
|
}>>;
|
|
587
588
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
588
589
|
readonly message: Schema.String;
|
|
@@ -592,14 +593,14 @@ export declare const protocol2: {
|
|
|
592
593
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
593
594
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
594
595
|
readonly action: Schema.Literal<"accept">;
|
|
595
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
596
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
596
597
|
}>, Schema.Struct<{
|
|
597
598
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
598
599
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
599
600
|
}>]>;
|
|
600
601
|
}>, Schema.Struct<{
|
|
601
602
|
readonly ok: Schema.Literal<false>;
|
|
602
|
-
readonly error: typeof import("
|
|
603
|
+
readonly error: typeof import("./1.js").ElicitationFailed;
|
|
603
604
|
}>]>;
|
|
604
605
|
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
605
606
|
readonly operation: Schema.Literal<"do">;
|
|
@@ -704,7 +705,7 @@ export declare const protocol2: {
|
|
|
704
705
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
705
706
|
}>, Schema.Struct<{
|
|
706
707
|
readonly ok: Schema.Literal<false>;
|
|
707
|
-
readonly error: typeof import("
|
|
708
|
+
readonly error: typeof import("./1.js").CacheError;
|
|
708
709
|
}>]>;
|
|
709
710
|
};
|
|
710
711
|
};
|
|
@@ -5,20 +5,78 @@
|
|
|
5
5
|
* database budget, and declarations with a reserved database field, fail with their named error.
|
|
6
6
|
*
|
|
7
7
|
* This protocol is released and frozen once merged. `bun run check` compares `protocol3` with
|
|
8
|
-
* `packages/apps/protocols/3.json`.
|
|
9
|
-
*
|
|
8
|
+
* `packages/apps/protocols/3.json`. The module imports only `effect` and earlier protocol modules,
|
|
9
|
+
* so no change elsewhere can alter it; define the next protocol to change the wire format.
|
|
10
|
+
* See notes/apps-publishing.md.
|
|
10
11
|
*/
|
|
11
12
|
import { Schema } from "effect";
|
|
12
|
-
import {
|
|
13
|
-
import { OpenapiResponseError } from "../api-response-error.js";
|
|
14
|
-
import { ElicitationFailed } from "../elicitation.js";
|
|
15
|
-
import { McpError } from "../mcp.js";
|
|
16
|
-
import { ProviderError } from "../provider-error.js";
|
|
17
|
-
import { SkillLoadFailed } from "../skills.js";
|
|
18
|
-
import { WorkflowFailure } from "../workflows.js";
|
|
19
|
-
import { HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed } from "./1.js";
|
|
13
|
+
import { ElicitationFailed, HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, OpenapiResponseError, ProviderError, SkillLoadFailed } from "./1.js";
|
|
20
14
|
export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRequest, HostRequestInvalid, HostAccountsInvalid, HostOperationNotFound, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostInvocation, } from "./1.js";
|
|
21
15
|
export { SkillSources, SkillCatalogResponse } from "./2.js";
|
|
16
|
+
/** Longest failure message carried across the runtime boundary. */
|
|
17
|
+
export declare const maxFailureMessageLength = 2048;
|
|
18
|
+
/**
|
|
19
|
+
* `app` for errors thrown by authored code, `storage` for app data failures the host raised, and
|
|
20
|
+
* `service` for an external API the app called through a framework helper.
|
|
21
|
+
*/
|
|
22
|
+
export declare const FailureSource: Schema.Literals<readonly ["app", "storage", "service"]>;
|
|
23
|
+
/** The thrown error's name, such as `TypeError`, or the host error's tag. */
|
|
24
|
+
export declare const FailureName: Schema.String;
|
|
25
|
+
/** A stable host failure code, such as an app data reason, or the thrown error's own `code`. */
|
|
26
|
+
export declare const FailureCode: Schema.String;
|
|
27
|
+
/** Bounded, with the invocation's account secrets replaced. */
|
|
28
|
+
export declare const FailureMessage: Schema.String;
|
|
29
|
+
/**
|
|
30
|
+
* Where and why a run failed: the failing step and the error the app's own code raised, its
|
|
31
|
+
* message bounded and with account secrets replaced. Runs from before these fields existed have none.
|
|
32
|
+
*/
|
|
33
|
+
export declare const WorkflowFailureDetail: {
|
|
34
|
+
step: Schema.optionalKey<Schema.String>;
|
|
35
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
36
|
+
message: Schema.optionalKey<Schema.String>;
|
|
37
|
+
};
|
|
38
|
+
declare const WorkflowFailure_base: Schema.Class<WorkflowFailure, Schema.TaggedStruct<"WorkflowFailure", {
|
|
39
|
+
readonly reason: Schema.Literals<readonly ["unavailable", "not_found", "input", "output", "operation", "approval", "credentials", "terminated", "execution", "conflict", "engine"]>;
|
|
40
|
+
readonly retryable: Schema.Boolean;
|
|
41
|
+
readonly step: Schema.optionalKey<Schema.String>;
|
|
42
|
+
readonly errorName: Schema.optionalKey<Schema.String>;
|
|
43
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
44
|
+
}>, import("effect/Cause").YieldableError>;
|
|
45
|
+
/** Failures cross host boundaries as reason codes plus the app's own bounded error detail. */
|
|
46
|
+
export declare class WorkflowFailure extends WorkflowFailure_base {
|
|
47
|
+
}
|
|
48
|
+
/** Protocol 3's workflow step reply, carrying the failing step and app error. */
|
|
49
|
+
export declare const WorkflowRpcResult: Schema.Union<readonly [Schema.Struct<{
|
|
50
|
+
readonly ok: Schema.Literal<true>;
|
|
51
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
52
|
+
}>, Schema.Struct<{
|
|
53
|
+
readonly ok: Schema.Literal<false>;
|
|
54
|
+
readonly error: typeof WorkflowFailure;
|
|
55
|
+
}>]>;
|
|
56
|
+
export type WorkflowRpcResult = typeof WorkflowRpcResult.Type;
|
|
57
|
+
/**
|
|
58
|
+
* The budget a query or mutation exhausted. `pageSize` bounds one take(n) or paginate call;
|
|
59
|
+
* `valueBytes` bounds one stored row; the rest accumulate across the whole invocation.
|
|
60
|
+
*/
|
|
61
|
+
export declare const DatabaseLimit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
|
|
62
|
+
export type DatabaseLimit = typeof DatabaseLimit.Type;
|
|
63
|
+
declare const DatabaseLimitExceeded_base: Schema.Class<DatabaseLimitExceeded, Schema.TaggedStruct<"DatabaseLimitExceeded", {
|
|
64
|
+
readonly limit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
|
|
65
|
+
readonly maximum: Schema.Int;
|
|
66
|
+
readonly requested: Schema.Int;
|
|
67
|
+
}>, import("effect/Cause").YieldableError>;
|
|
68
|
+
/** A query or mutation exceeded one of its database budgets. Nothing it wrote is committed. */
|
|
69
|
+
export declare class DatabaseLimitExceeded extends DatabaseLimitExceeded_base {
|
|
70
|
+
}
|
|
71
|
+
/** Host-owned row metadata that authored tables cannot declare. */
|
|
72
|
+
export declare const reservedFieldNames: readonly ["id", "createdAt", "updatedAt"];
|
|
73
|
+
declare const DatabaseFieldReserved_base: Schema.Class<DatabaseFieldReserved, Schema.TaggedStruct<"DatabaseFieldReserved", {
|
|
74
|
+
readonly table: Schema.String;
|
|
75
|
+
readonly field: Schema.Literals<readonly ["id", "createdAt", "updatedAt"]>;
|
|
76
|
+
}>, import("effect/Cause").YieldableError>;
|
|
77
|
+
/** A table declared a field the host adds to every row. */
|
|
78
|
+
export declare class DatabaseFieldReserved extends DatabaseFieldReserved_base {
|
|
79
|
+
}
|
|
22
80
|
declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {
|
|
23
81
|
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
24
82
|
errorName: Schema.optionalKey<Schema.String>;
|
|
@@ -587,10 +645,10 @@ export declare const protocol3: {
|
|
|
587
645
|
readonly elicitationRequest: Schema.Struct<{
|
|
588
646
|
readonly mode: Schema.Literal<"form">;
|
|
589
647
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
590
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
648
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
591
649
|
readonly type: Schema.tag<"object">;
|
|
592
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
593
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
650
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
651
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
594
652
|
}>>;
|
|
595
653
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
596
654
|
readonly message: Schema.String;
|
|
@@ -600,7 +658,7 @@ export declare const protocol3: {
|
|
|
600
658
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
601
659
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
602
660
|
readonly action: Schema.Literal<"accept">;
|
|
603
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
661
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
604
662
|
}>, Schema.Struct<{
|
|
605
663
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
606
664
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
@@ -712,7 +770,7 @@ export declare const protocol3: {
|
|
|
712
770
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
713
771
|
}>, Schema.Struct<{
|
|
714
772
|
readonly ok: Schema.Literal<false>;
|
|
715
|
-
readonly error: typeof import("
|
|
773
|
+
readonly error: typeof import("./1.js").CacheError;
|
|
716
774
|
}>]>;
|
|
717
775
|
};
|
|
718
776
|
};
|
|
@@ -2,17 +2,24 @@
|
|
|
2
2
|
* Host protocol 4: protocol 3 plus call kinds and routers. `call` carries the caller's `kind`, and
|
|
3
3
|
* a bundle refuses a call whose tool has the other kind with `HostKindMismatch`. Inspection
|
|
4
4
|
* answers with a catalog of tools and the routers that group them, instead of a list of tools.
|
|
5
|
-
* Messages it does not change are protocol 3's,
|
|
5
|
+
* Messages it does not change are protocol 3's, taken from its frozen module.
|
|
6
6
|
*
|
|
7
7
|
* Once released, this protocol is frozen like the earlier ones: `bun run check` compares
|
|
8
|
-
* `protocol4` with `packages/apps/protocols/4.json`.
|
|
8
|
+
* `protocol4` with `packages/apps/protocols/4.json`. The module imports only `effect` and earlier
|
|
9
|
+
* protocol modules, so no change elsewhere can alter it. See notes/apps-publishing.md.
|
|
9
10
|
*/
|
|
10
11
|
import { Schema } from "effect";
|
|
11
|
-
import { McpError } from "
|
|
12
|
-
import { ProviderError } from "../provider-error.js";
|
|
13
|
-
import { SkillLoadFailed } from "../skills.js";
|
|
12
|
+
import { McpError, ProviderError, SkillLoadFailed } from "./1.js";
|
|
14
13
|
import { HostDeclarationInvalid, HostEvaluationFailed } from "./3.js";
|
|
15
14
|
export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, SkillSources, SkillCatalogResponse, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, } from "./3.js";
|
|
15
|
+
/** An image a client may show beside a router, such as an MCP server's own icon. Models never read it. */
|
|
16
|
+
export declare const RouterIcon: Schema.Struct<{
|
|
17
|
+
readonly src: Schema.NonEmptyString;
|
|
18
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
19
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
20
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
21
|
+
}>;
|
|
22
|
+
export type RouterIcon = typeof RouterIcon.Type;
|
|
16
23
|
/**
|
|
17
24
|
* Serializable live tool metadata; executable callbacks never cross this boundary. `name` is the
|
|
18
25
|
* tool's full dotted path. `router` is the path of the router that owns it, omitted at the root.
|
|
@@ -315,7 +322,7 @@ export declare class HostKindMismatch extends HostKindMismatch_base {
|
|
|
315
322
|
* Safe error envelope. Author failures carry only their name and bounded message with account
|
|
316
323
|
* secrets replaced; no source, account fields, stack or cause value is serialized.
|
|
317
324
|
*/
|
|
318
|
-
export declare const HostError: Schema.Union<readonly [typeof import("
|
|
325
|
+
export declare const HostError: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("./3.js").DatabaseLimitExceeded, typeof import("./3.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("./1.js").ElicitationFailed, typeof HostKindMismatch]>;
|
|
319
326
|
/** Expected host failures. */
|
|
320
327
|
export type HostError = typeof HostError.Type;
|
|
321
328
|
/** Portable response envelope; callers parse the success value for their operation. */
|
|
@@ -325,7 +332,7 @@ export declare const HostResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
325
332
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
326
333
|
}>, Schema.Struct<{
|
|
327
334
|
readonly ok: Schema.Literal<false>;
|
|
328
|
-
readonly error: Schema.Union<readonly [typeof import("
|
|
335
|
+
readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("./3.js").DatabaseLimitExceeded, typeof import("./3.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("./1.js").ElicitationFailed, typeof HostKindMismatch]>;
|
|
329
336
|
}>]>;
|
|
330
337
|
/** Parsed response envelope. */
|
|
331
338
|
export type HostResponse = typeof HostResponse.Type;
|
|
@@ -951,7 +958,7 @@ export declare const protocol4: {
|
|
|
951
958
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
952
959
|
}>, Schema.Struct<{
|
|
953
960
|
readonly ok: Schema.Literal<false>;
|
|
954
|
-
readonly error: Schema.Union<readonly [typeof import("
|
|
961
|
+
readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("./3.js").DatabaseLimitExceeded, typeof import("./3.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("./1.js").ElicitationFailed, typeof HostKindMismatch]>;
|
|
955
962
|
}>]>;
|
|
956
963
|
readonly requirements: Schema.Struct<{
|
|
957
964
|
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
@@ -1168,10 +1175,10 @@ export declare const protocol4: {
|
|
|
1168
1175
|
readonly elicitationRequest: Schema.Struct<{
|
|
1169
1176
|
readonly mode: Schema.Literal<"form">;
|
|
1170
1177
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1171
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1178
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1172
1179
|
readonly type: Schema.tag<"object">;
|
|
1173
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
1174
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
1180
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
1181
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1175
1182
|
}>>;
|
|
1176
1183
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1177
1184
|
readonly message: Schema.String;
|
|
@@ -1181,14 +1188,14 @@ export declare const protocol4: {
|
|
|
1181
1188
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1182
1189
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1183
1190
|
readonly action: Schema.Literal<"accept">;
|
|
1184
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
1191
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
1185
1192
|
}>, Schema.Struct<{
|
|
1186
1193
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1187
1194
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
1188
1195
|
}>]>;
|
|
1189
1196
|
}>, Schema.Struct<{
|
|
1190
1197
|
readonly ok: Schema.Literal<false>;
|
|
1191
|
-
readonly error: typeof import("
|
|
1198
|
+
readonly error: typeof import("./1.js").ElicitationFailed;
|
|
1192
1199
|
}>]>;
|
|
1193
1200
|
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
1194
1201
|
readonly operation: Schema.Literal<"do">;
|
|
@@ -1224,7 +1231,7 @@ export declare const protocol4: {
|
|
|
1224
1231
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1225
1232
|
}>, Schema.Struct<{
|
|
1226
1233
|
readonly ok: Schema.Literal<false>;
|
|
1227
|
-
readonly error: typeof import("
|
|
1234
|
+
readonly error: typeof import("./3.js").WorkflowFailure;
|
|
1228
1235
|
}>]>;
|
|
1229
1236
|
readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
|
|
1230
1237
|
readonly operation: Schema.Literal<"start">;
|
|
@@ -1293,7 +1300,7 @@ export declare const protocol4: {
|
|
|
1293
1300
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1294
1301
|
}>, Schema.Struct<{
|
|
1295
1302
|
readonly ok: Schema.Literal<false>;
|
|
1296
|
-
readonly error: typeof import("
|
|
1303
|
+
readonly error: typeof import("./1.js").CacheError;
|
|
1297
1304
|
}>]>;
|
|
1298
1305
|
};
|
|
1299
1306
|
};
|
|
@@ -6,11 +6,37 @@
|
|
|
6
6
|
* unchanged.
|
|
7
7
|
*
|
|
8
8
|
* Once released this protocol is frozen like the earlier ones: `bun run check` compares `protocol5` with
|
|
9
|
-
* `packages/apps/protocols/5.json`.
|
|
9
|
+
* `packages/apps/protocols/5.json`. The module imports only `effect` and earlier protocol modules,
|
|
10
|
+
* so no change elsewhere can alter it. Define the next protocol instead of editing this file.
|
|
10
11
|
* See notes/apps-publishing.md.
|
|
11
12
|
*/
|
|
12
13
|
import { Schema } from "effect";
|
|
13
14
|
export * from "./4.js";
|
|
15
|
+
/**
|
|
16
|
+
* Upstream identity that a passing account check may report for display. Only these fields are
|
|
17
|
+
* retained; the host never stores raw provider responses.
|
|
18
|
+
*/
|
|
19
|
+
export declare const AccountInfo: Schema.Struct<{
|
|
20
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
21
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
22
|
+
readonly username: Schema.optionalKey<Schema.String>;
|
|
23
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly avatarUrl: Schema.optionalKey<Schema.String>;
|
|
25
|
+
readonly profileUrl: Schema.optionalKey<Schema.String>;
|
|
26
|
+
}>;
|
|
27
|
+
export type AccountInfo = typeof AccountInfo.Type;
|
|
28
|
+
/** A passing account check. Failures are thrown, so there is no failing variant. */
|
|
29
|
+
export declare const AccountCheckResult: Schema.Struct<{
|
|
30
|
+
readonly accountInfo: Schema.optionalKey<Schema.Struct<{
|
|
31
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
32
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
33
|
+
readonly username: Schema.optionalKey<Schema.String>;
|
|
34
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
35
|
+
readonly avatarUrl: Schema.optionalKey<Schema.String>;
|
|
36
|
+
readonly profileUrl: Schema.optionalKey<Schema.String>;
|
|
37
|
+
}>>;
|
|
38
|
+
}>;
|
|
39
|
+
export type AccountCheckResult = typeof AccountCheckResult.Type;
|
|
14
40
|
/** Account slots available without binding accounts or evaluating the app factory. */
|
|
15
41
|
export declare const DeclaredRequirements: Schema.Struct<{
|
|
16
42
|
/** Protocol support of this retained framework build, not an author-declared requirement. */
|
|
@@ -918,7 +944,7 @@ export declare const protocol5: {
|
|
|
918
944
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
919
945
|
}>, Schema.Struct<{
|
|
920
946
|
readonly ok: Schema.Literal<false>;
|
|
921
|
-
readonly error: Schema.Union<readonly [typeof import("
|
|
947
|
+
readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("./3.js").DatabaseLimitExceeded, typeof import("./3.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("./1.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
|
|
922
948
|
}>]>;
|
|
923
949
|
readonly catalog: Schema.Struct<{
|
|
924
950
|
readonly tools: Schema.$Array<Schema.Struct<{
|
|
@@ -965,7 +991,7 @@ export declare const protocol5: {
|
|
|
965
991
|
}>>>;
|
|
966
992
|
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
967
993
|
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
968
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("
|
|
994
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
969
995
|
}>>;
|
|
970
996
|
}>;
|
|
971
997
|
readonly catalogSummary: Schema.Struct<{
|
|
@@ -1010,7 +1036,7 @@ export declare const protocol5: {
|
|
|
1010
1036
|
}>>>;
|
|
1011
1037
|
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
1012
1038
|
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1013
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("
|
|
1039
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
1014
1040
|
}>>;
|
|
1015
1041
|
}>;
|
|
1016
1042
|
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1043,10 +1069,10 @@ export declare const protocol5: {
|
|
|
1043
1069
|
readonly elicitationRequest: Schema.Struct<{
|
|
1044
1070
|
readonly mode: Schema.Literal<"form">;
|
|
1045
1071
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1046
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
1072
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1047
1073
|
readonly type: Schema.tag<"object">;
|
|
1048
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/
|
|
1049
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
1074
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
1075
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1050
1076
|
}>>;
|
|
1051
1077
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1052
1078
|
readonly message: Schema.String;
|
|
@@ -1056,14 +1082,14 @@ export declare const protocol5: {
|
|
|
1056
1082
|
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1057
1083
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1058
1084
|
readonly action: Schema.Literal<"accept">;
|
|
1059
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
1085
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
1060
1086
|
}>, Schema.Struct<{
|
|
1061
1087
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1062
1088
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
1063
1089
|
}>]>;
|
|
1064
1090
|
}>, Schema.Struct<{
|
|
1065
1091
|
readonly ok: Schema.Literal<false>;
|
|
1066
|
-
readonly error: typeof import("
|
|
1092
|
+
readonly error: typeof import("./1.js").ElicitationFailed;
|
|
1067
1093
|
}>]>;
|
|
1068
1094
|
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
1069
1095
|
readonly operation: Schema.Literal<"do">;
|
|
@@ -1099,7 +1125,7 @@ export declare const protocol5: {
|
|
|
1099
1125
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1100
1126
|
}>, Schema.Struct<{
|
|
1101
1127
|
readonly ok: Schema.Literal<false>;
|
|
1102
|
-
readonly error: typeof import("
|
|
1128
|
+
readonly error: typeof import("./3.js").WorkflowFailure;
|
|
1103
1129
|
}>]>;
|
|
1104
1130
|
readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
|
|
1105
1131
|
readonly operation: Schema.Literal<"start">;
|
|
@@ -1168,7 +1194,7 @@ export declare const protocol5: {
|
|
|
1168
1194
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1169
1195
|
}>, Schema.Struct<{
|
|
1170
1196
|
readonly ok: Schema.Literal<false>;
|
|
1171
|
-
readonly error: typeof import("
|
|
1197
|
+
readonly error: typeof import("./1.js").CacheError;
|
|
1172
1198
|
}>]>;
|
|
1173
1199
|
};
|
|
1174
1200
|
};
|