@happyvertical/smrt-web 0.43.4 → 0.43.5
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/AGENTS.md +14 -0
- package/package.json +4 -2
package/AGENTS.md
CHANGED
|
@@ -107,3 +107,17 @@ different request id — before they reach a UI surface.
|
|
|
107
107
|
|
|
108
108
|
`packages/products` consumes the runtime as its reference store across npm,
|
|
109
109
|
federation, and standalone modes (see the smrt-web track, PRD #1755).
|
|
110
|
+
|
|
111
|
+
## WebMCP integration fixture
|
|
112
|
+
|
|
113
|
+
`src/webmcp-e2e.integration.test.ts` is the production-shaped composition
|
|
114
|
+
fixture for generated WebMCP tools. It uses `smrtVitestPlugin()`, a real
|
|
115
|
+
in-memory SQLite database, and generated REST handlers. Only the browser
|
|
116
|
+
`document.modelContext` and external AI boundary are doubled. Keep this fixture
|
|
117
|
+
focused on the WebMCP contract: auth failures, effect/exposure policy,
|
|
118
|
+
tool-only fetches, custom actions, relationship cache invalidation, and
|
|
119
|
+
registration disposal. Its descriptors come from the OXC manifest adapter so
|
|
120
|
+
the test follows the same generation path as the virtual WebMCP module; the
|
|
121
|
+
Vitest config excludes test files from the package manifest to avoid exposing
|
|
122
|
+
fixture-only classes to package discovery. The integration model is documented in
|
|
123
|
+
`docs/content/webmcp-integration.md`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-web",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.5",
|
|
4
4
|
"description": "SMRT browser client data runtime: typed collection factory wrapping the client-data engine over generated REST clients",
|
|
5
5
|
"author": "HappyVertical",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,9 @@
|
|
|
32
32
|
"fake-indexeddb": "^6.2.5",
|
|
33
33
|
"typescript": "5.9.3",
|
|
34
34
|
"vite": "8.1.4",
|
|
35
|
-
"vitest": "4.1.10"
|
|
35
|
+
"vitest": "4.1.10",
|
|
36
|
+
"@happyvertical/smrt-core": "0.43.5",
|
|
37
|
+
"@happyvertical/smrt-scanner": "0.43.5"
|
|
36
38
|
},
|
|
37
39
|
"publishConfig": {
|
|
38
40
|
"registry": "https://registry.npmjs.org",
|