ext-apps/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik 9d68315720
feat(app): default Zod to jitless; add allowUnsafeEval opt-out (#618)
Zod v4's object parser compiles a fast path with `new Function()`, which
violates CSP without `unsafe-eval`. Hosts that enforce the spec's default
CSP (e.g. VS Code) cannot load any View that parses an incoming message —
the SDK's generated schemas trip this on the very first ui/initialize
roundtrip.

The App constructor now sets `z.config({ jitless: true })` by default so
Views work out of the box under strict CSP. New `AppOptions.allowUnsafeEval`
(default false) skips this for Views that know their host permits
`unsafe-eval` and want Zod's faster JIT path.

Addresses #374. Also relevant to #199 (threejs-server has a separate
`new Function()` use in its own shader compiler that this does not fix).
2026-04-21 14:49:09 +01:00
..
generated docs(types): drop stale resourceUri JSDoc referencing deprecated flat key (#626) 2026-04-21 14:48:52 +01:00
react feat(react): forward autoResize from useApp to App (#622) 2026-04-21 11:51:04 +01:00
server spec: Add tool registration for Apps, to be called by Host (WebMCP-style!) (#72) 2026-04-21 13:46:13 +01:00
app-bridge.examples.ts feat: MCP app sampling support via stock SDK types (alt to #477) (#530) 2026-04-21 13:29:09 +01:00
app-bridge.test.ts spec: Add tool registration for Apps, to be called by Host (WebMCP-style!) (#72) 2026-04-21 13:46:13 +01:00
app-bridge.ts chore: drop GitHub issue URLs from pre-handshake guard log messages (#625) 2026-04-21 13:50:10 +01:00
app.examples.ts spec: Add tool registration for Apps, to be called by Host (WebMCP-style!) (#72) 2026-04-21 13:46:13 +01:00
app.ts feat(app): default Zod to jitless; add allowUnsafeEval opt-out (#618) 2026-04-21 14:49:09 +01:00
events.ts Add addEventListener/removeEventListener with DOM-model on* semantics (#573) 2026-03-30 18:48:33 +01:00
message-transport.examples.ts docs: standardize UI terminology to use "view" consistently (#325) 2026-01-23 04:36:52 +02:00
message-transport.ts fix: skip debug log for high-frequency tool-input-partial notifications 2026-03-10 17:25:12 +00:00
spec.types.ts docs(types): drop stale resourceUri JSDoc referencing deprecated flat key (#626) 2026-04-21 14:48:52 +01:00
standard-schema.ts spec: Add tool registration for Apps, to be called by Host (WebMCP-style!) (#72) 2026-04-21 13:46:13 +01:00
styles.examples.ts Improve patterns guide with concrete examples and safe area insets 2026-01-27 17:32:41 -06:00
styles.ts Improve patterns guide with concrete examples and safe area insets 2026-01-27 17:32:41 -06:00
types.ts feat: MCP app sampling support via stock SDK types (alt to #477) (#530) 2026-04-21 13:29:09 +01:00