apps 0.0.1-beta.84 → 0.0.1-beta.85
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 +10 -12
- package/framework-reference.json +1 -1
- package/js/{chunk-JKH7ALFN.js → chunk-24IHGRND.js} +2 -2
- package/js/{chunk-HNCCRVIT.js → chunk-MHFAQ2XD.js} +1 -1
- package/js/{chunk-AIXYBMMI.js → chunk-PAUT66KY.js} +2 -2
- package/js/chunk-T6QLMX67.js +714 -0
- package/js/{chunk-NG56RPCA.js → chunk-WUPLD4VN.js} +0 -10
- package/js/{chunk-T2B6GUVY.js → chunk-Y46DFT3O.js} +2 -2
- package/js/{chunk-OHBKJ54H.js → chunk-ZKW64V6P.js} +4 -4
- package/js/contracts.js +1 -1
- package/js/effect.js +5 -5
- package/js/graphql.js +6 -6
- package/js/host.js +5 -5
- package/js/index.js +3 -3
- package/js/mcp/effect.js +6 -7
- package/js/mcp.js +11 -13
- package/js/openapi.js +4 -4
- package/package.json +1 -5
- package/runtime.json +1 -1
- package/types/apps/src/contracts/mcp.d.ts +1 -10
- package/types/apps/src/implementation/router-catalog.d.ts +2 -2
- package/js/chunk-BX2S3T2R.js +0 -348
- package/js/chunk-IGOYMUWZ.js +0 -394
- package/js/mcp/stdio.js +0 -138
- package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
- package/types/apps/src/mcp-stdio.d.ts +0 -5
package/README.md
CHANGED
|
@@ -25,17 +25,15 @@ export default defineApp({ accounts: {} }, async ({ signal }) => ({
|
|
|
25
25
|
}));
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
| Import
|
|
29
|
-
|
|
|
30
|
-
| `apps/mcp`
|
|
31
|
-
| `apps/
|
|
32
|
-
| `apps/
|
|
33
|
-
| `apps/openapi` | `liveOpenapiRouter` | None |
|
|
28
|
+
| Import | Helper | App dependency |
|
|
29
|
+
| -------------- | ------------------------ | --------------------------- |
|
|
30
|
+
| `apps/mcp` | `mcpRouter`, `mcpHealth` | `@modelcontextprotocol/sdk` |
|
|
31
|
+
| `apps/graphql` | `graphqlRouter` | `graphql` |
|
|
32
|
+
| `apps/openapi` | `liveOpenapiRouter` | None |
|
|
34
33
|
|
|
35
34
|
MCP and GraphQL are optional peers. Subpath imports isolate their module graphs;
|
|
36
|
-
optional peers keep unused libraries out of the dependency installation.
|
|
37
|
-
MCP
|
|
38
|
-
a host with process support.
|
|
35
|
+
optional peers keep unused libraries out of the dependency installation. Apps
|
|
36
|
+
reach MCP servers over HTTP; they cannot start local processes.
|
|
39
37
|
|
|
40
38
|
`defineApp` declares behavior, not a name. Package identity lives in
|
|
41
39
|
`package.json.name`; the host separately names each installed copy.
|
|
@@ -104,7 +102,7 @@ plus five minutes stale. Use `freshFor` / `staleFor` to change the windows, or
|
|
|
104
102
|
Each combined tool takes `{ accountId, input }`. `input` keeps the upstream shape;
|
|
105
103
|
`accountId` must identify a selected account that exposes that tool. Discovery
|
|
106
104
|
and validation remain specific to each account. An empty selection returns no
|
|
107
|
-
tools. This helper also works with OpenAPI
|
|
105
|
+
tools. This helper also works with OpenAPI and GraphQL operations.
|
|
108
106
|
|
|
109
107
|
Contracts live in `src/contracts/`; native operations live in `src/implementation/`.
|
|
110
108
|
Promise conversion happens at the public entry points. `apps/mcp/effect` exposes
|
|
@@ -266,8 +264,8 @@ mutation can be mounted at only one path.
|
|
|
266
264
|
|
|
267
265
|
Protocol helpers return routers, so an app mounts several sources under keys.
|
|
268
266
|
`mcpRouter` takes its title, description, icons and instructions from the
|
|
269
|
-
server, and `liveOpenapiRouter` from the document's `info` and tags. `
|
|
270
|
-
|
|
267
|
+
server, and `liveOpenapiRouter` from the document's `info` and tags. `openapiRouter`
|
|
268
|
+
and `graphqlRouter` carry no source metadata. A nested router that fails to load is reported on its own catalog entry;
|
|
271
269
|
the app's other tools still load. The root failing fails discovery.
|
|
272
270
|
|
|
273
271
|
`dynamicRouter({ list, resolve })` separates descriptions from executable
|