apps 0.0.1-beta.1 → 0.0.1-beta.10
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 +65 -43
- package/framework-reference.json +1 -1
- package/js/browser-XIPJGLH2.js +65 -0
- package/js/{chunk-SATWJKN6.js → chunk-27F7W2LG.js} +1 -1
- package/js/{chunk-HDJH3RPR.js → chunk-57RKNWL2.js} +2 -2
- package/js/{chunk-2HHMABB6.js → chunk-5T57N25Q.js} +61 -13
- package/js/{chunk-6IIO4NPI.js → chunk-72JNVHPK.js} +21 -9
- package/js/{chunk-FW5HBOIK.js → chunk-CDL5PM2Q.js} +307 -169
- package/js/{chunk-X7SFGU4Q.js → chunk-CRDWFA74.js} +28 -9
- package/js/{chunk-G7IE6BKC.js → chunk-EPT3ZP52.js} +8 -8
- package/js/chunk-FL2QR3XW.js +507 -0
- package/js/{chunk-OHRT55C4.js → chunk-IJX4CYZO.js} +3 -6
- package/js/{chunk-ZTFQHGEB.js → chunk-IPI4MFSN.js} +3 -5
- package/js/{chunk-YEJOQEII.js → chunk-JU7VHODU.js} +1 -1
- package/js/chunk-KUMBKVJD.js +39 -0
- package/js/{chunk-EVJUVWN2.js → chunk-M3B3DE4K.js} +2 -2
- package/js/{chunk-ZJWDMTE3.js → chunk-MKWZPDR6.js} +3 -3
- package/js/{chunk-BMOIAIVR.js → chunk-N7YDVXYJ.js} +49 -1
- package/js/chunk-NKLWZJLE.js +172 -0
- package/js/{chunk-ZCAMUXSG.js → chunk-ODEIDRGW.js} +3 -4
- package/js/{chunk-M6ZRRIBI.js → chunk-PJJ24GU7.js} +1 -1
- package/js/{chunk-FZJOYIZO.js → chunk-PZB6T6KU.js} +1 -1
- package/js/chunk-R3EV5FTO.js +97 -0
- package/js/{chunk-6YBRWRK3.js → chunk-RFVIONFX.js} +43 -14
- package/js/{chunk-QKHR7BMF.js → chunk-UK573G7W.js} +1 -1
- package/js/{chunk-NCYXZN2G.js → chunk-UVL56Z6E.js} +390 -23
- package/js/{chunk-KOXMLKTM.js → chunk-V5KNQVCT.js} +308 -316
- package/js/{chunk-4LPG6RCH.js → chunk-VFZKSM3T.js} +5 -25
- package/js/{chunk-IHQ4ML7K.js → chunk-WLE7WX2U.js} +554 -102
- package/js/{chunk-RBAC33PQ.js → chunk-YXQHV65J.js} +58 -83
- package/js/chunk-Z5M2LQOZ.js +209 -0
- package/js/{chunk-PLCMJREA.js → chunk-ZQINWV4W.js} +60 -20
- package/js/client.js +10 -26
- package/js/contracts.js +70 -15
- package/js/effect.js +19 -19
- package/js/es-APDZKREY.js +40968 -0
- package/js/graphql.js +34 -39
- package/js/host.js +23 -23
- package/js/index.js +199 -195
- package/js/mcp/effect.js +21 -21
- package/js/mcp/stdio.js +25 -25
- package/js/mcp.js +60 -44
- package/js/openapi.js +826 -41682
- package/js/react.js +3 -3
- package/js/skills/effect.js +3 -4
- package/js/skills.js +53 -17
- package/js/storage/facet.js +4 -4
- package/js/ui/auth/contracts.js +8 -9
- package/js/ui/auth.js +16 -14
- package/js/ui/contracts.js +4 -4
- package/js/ui/serving.js +9 -8
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +42 -2
- package/types/app-cache/src/index.d.ts +59 -1
- package/types/app-data/src/contracts/database.d.ts +33 -6
- package/types/app-data/src/implementation/schema.d.ts +2 -17
- package/types/apps/src/contracts/app.d.ts +7 -6
- package/types/apps/src/contracts/cache.d.ts +4 -1
- package/types/apps/src/contracts/failure.d.ts +25 -0
- package/types/apps/src/contracts/host.d.ts +34 -679
- package/types/apps/src/contracts/mcp.d.ts +16 -0
- package/types/apps/src/contracts/openapi.d.ts +11 -1
- package/types/apps/src/contracts/operations.d.ts +0 -5
- package/types/apps/src/contracts/protocol-version.d.ts +6 -0
- package/types/apps/src/contracts/protocols/1.d.ts +1589 -0
- package/types/apps/src/contracts/protocols/2.d.ts +668 -0
- package/types/apps/src/contracts/protocols/3.d.ts +676 -0
- package/types/apps/src/contracts/protocols/4.d.ts +1229 -0
- package/types/apps/src/contracts/protocols/5.d.ts +1090 -0
- package/types/apps/src/contracts/provider.d.ts +51 -5
- package/types/apps/src/contracts/router.d.ts +59 -0
- package/types/apps/src/contracts/skills.d.ts +17 -8
- package/types/apps/src/contracts/storage.d.ts +3 -3
- package/types/apps/src/contracts/ui-auth.d.ts +6 -14
- package/types/apps/src/contracts/workflows.d.ts +34 -3
- package/types/apps/src/graphql.d.ts +1 -3
- package/types/apps/src/implementation/account-router.d.ts +12 -0
- package/types/apps/src/implementation/app.d.ts +5 -4
- package/types/apps/src/implementation/cache.d.ts +3 -1
- package/types/apps/src/implementation/catalog-cache.d.ts +9 -2
- package/types/apps/src/implementation/elicitation.d.ts +1 -1
- package/types/apps/src/implementation/failure-detail.d.ts +25 -0
- package/types/apps/src/implementation/graphql-catalog.d.ts +1 -4
- package/types/apps/src/implementation/mcp-catalog.d.ts +1 -4
- package/types/apps/src/implementation/mcp-client.d.ts +35 -19
- package/types/apps/src/implementation/mcp.d.ts +35 -19
- package/types/apps/src/implementation/openapi-compile.d.ts +3 -2
- package/types/apps/src/implementation/openapi-document.d.ts +0 -2
- package/types/apps/src/implementation/openapi-names.d.ts +18 -0
- package/types/apps/src/implementation/openapi-request.d.ts +0 -1
- package/types/apps/src/implementation/openapi-source.d.ts +7 -7
- package/types/apps/src/implementation/operations.d.ts +26 -3
- package/types/apps/src/implementation/protocol-operations.d.ts +3 -4
- package/types/apps/src/implementation/provider.d.ts +9 -4
- package/types/apps/src/implementation/router-catalog.d.ts +225 -0
- package/types/apps/src/implementation/router.d.ts +59 -0
- package/types/apps/src/implementation/schema.d.ts +5 -6
- package/types/apps/src/implementation/storage.d.ts +5 -3
- package/types/apps/src/implementation/swagger-client.d.ts +28 -0
- package/types/apps/src/implementation/ui-auth.d.ts +11 -5
- package/types/apps/src/implementation/ui-serving.d.ts +4 -2
- package/types/apps/src/implementation/webhooks.d.ts +1 -1
- package/types/apps/src/implementation/workflow-context.d.ts +11 -3
- package/types/apps/src/index.d.ts +5 -4
- package/types/apps/src/mcp-stdio.d.ts +2 -5
- package/types/apps/src/mcp.d.ts +5 -4
- package/types/apps/src/openapi.d.ts +6 -6
- package/types/apps/src/skills.d.ts +6 -3
- package/types/apps/src/ui-auth.d.ts +2 -2
- package/types/telemetry/src/browser-operations.d.ts +5 -2
- package/js/chunk-PZ36XMXW.js +0 -93
- package/js/chunk-SWPD52J7.js +0 -35
- package/js/chunk-TE4KO4HI.js +0 -47
- package/js/chunk-W7D7WVSY.js +0 -18
- package/types/apps/src/contracts/dynamic-tools.d.ts +0 -13
- package/types/apps/src/implementation/account-operations.d.ts +0 -151
- package/types/apps/src/implementation/dynamic-tools.d.ts +0 -8
|
@@ -63,6 +63,22 @@ export declare const McpToolMetadata: Schema.Struct<{
|
|
|
63
63
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
64
64
|
}>;
|
|
65
65
|
export type McpToolMetadata = typeof McpToolMetadata.Type;
|
|
66
|
+
/** What a server reports about itself when a session initializes. Icons are for display only. */
|
|
67
|
+
export declare const McpServerHeader: Schema.Struct<{
|
|
68
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
69
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
70
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
71
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
72
|
+
readonly websiteUrl: Schema.optionalKey<Schema.String>;
|
|
73
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
74
|
+
readonly src: Schema.NonEmptyString;
|
|
75
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
76
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
77
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
78
|
+
}>>>;
|
|
79
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
80
|
+
}>;
|
|
81
|
+
export type McpServerHeader = typeof McpServerHeader.Type;
|
|
66
82
|
/** Direct callers can omit interaction capabilities. A server that asks for input then fails explicitly. */
|
|
67
83
|
export interface McpToolContext {
|
|
68
84
|
readonly elicit?: Elicit;
|
|
@@ -40,7 +40,10 @@ export declare const OpenapiRequestBody: Schema.Struct<{
|
|
|
40
40
|
}>;
|
|
41
41
|
/** Credential-free operation data emitted by the OpenAPI importer. */
|
|
42
42
|
export declare const OpenapiOperation: Schema.Struct<{
|
|
43
|
+
/** The tool name after `queries.` or `mutations.`, grouped as `<group>.<leaf>`. */
|
|
43
44
|
readonly name: Schema.NonEmptyString;
|
|
45
|
+
/** The document's operationId, when it declares one. `kinds` overrides are keyed by it. */
|
|
46
|
+
readonly operationId: Schema.optionalKey<Schema.String>;
|
|
44
47
|
readonly description: Schema.String;
|
|
45
48
|
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
46
49
|
readonly path: Schema.String;
|
|
@@ -72,6 +75,8 @@ export declare const OpenapiOperation: Schema.Struct<{
|
|
|
72
75
|
}>;
|
|
73
76
|
/** Streams remain in the metadata but cannot run through a single-result tool call. */
|
|
74
77
|
readonly streaming: Schema.optionalKey<Schema.Literal<true>>;
|
|
78
|
+
/** The operation's OpenAPI tags, shown to agents as labels within its router. */
|
|
79
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
75
80
|
readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
76
81
|
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
77
82
|
readonly errorResponses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
@@ -115,7 +120,10 @@ export type OpenapiParameterDefaults = typeof OpenapiParameterDefaults.Type;
|
|
|
115
120
|
/** Parsed options for one account's evaluation. */
|
|
116
121
|
export declare const OpenapiToolsOptions: Schema.Struct<{
|
|
117
122
|
readonly operations: Schema.$Array<Schema.Struct<{
|
|
123
|
+
/** The tool name after `queries.` or `mutations.`, grouped as `<group>.<leaf>`. */
|
|
118
124
|
readonly name: Schema.NonEmptyString;
|
|
125
|
+
/** The document's operationId, when it declares one. `kinds` overrides are keyed by it. */
|
|
126
|
+
readonly operationId: Schema.optionalKey<Schema.String>;
|
|
119
127
|
readonly description: Schema.String;
|
|
120
128
|
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
121
129
|
readonly path: Schema.String;
|
|
@@ -147,6 +155,8 @@ export declare const OpenapiToolsOptions: Schema.Struct<{
|
|
|
147
155
|
}>;
|
|
148
156
|
/** Streams remain in the metadata but cannot run through a single-result tool call. */
|
|
149
157
|
readonly streaming: Schema.optionalKey<Schema.Literal<true>>;
|
|
158
|
+
/** The operation's OpenAPI tags, shown to agents as labels within its router. */
|
|
159
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
150
160
|
readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
151
161
|
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
152
162
|
readonly errorResponses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
@@ -221,5 +231,5 @@ export declare const isOpenapiFileSchema: (shape: Readonly<Record<string, unknow
|
|
|
221
231
|
/** JSON-safe binary result, independent of the host's file storage. */
|
|
222
232
|
export declare const openapiBinaryResultSchema: JsonObject;
|
|
223
233
|
/** Classify request media for JSON-safe tool arguments; Swagger owns wire serialization. */
|
|
224
|
-
export declare const openapiMediaKind: (type: string) => "form" | "
|
|
234
|
+
export declare const openapiMediaKind: (type: string) => "form" | "binary" | "json" | "multipart" | "text";
|
|
225
235
|
export {};
|
|
@@ -23,8 +23,3 @@ export interface AppOperation<Input = unknown, Output = unknown> {
|
|
|
23
23
|
readonly approval?: Approval<Input>;
|
|
24
24
|
readonly run: (context: OperationContext, input: Input) => Effect.Effect<Output, unknown>;
|
|
25
25
|
}
|
|
26
|
-
/** Agent tool names carry the operation kind; catalogs may reuse the same local name. */
|
|
27
|
-
export declare const OperationToolPrefixes: {
|
|
28
|
-
readonly query: "queries.";
|
|
29
|
-
readonly mutate: "mutations.";
|
|
30
|
-
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The host protocol this framework speaks. It is written into `runtime.json` and every host
|
|
3
|
+
* snapshot. Released protocols are frozen: see `protocols/4.ts` and notes/apps-publishing.md.
|
|
4
|
+
* This file has no imports so the package build script can read it directly.
|
|
5
|
+
*/
|
|
6
|
+
export declare const frameworkProtocol = 5;
|