@happyvertical/smrt-template-sveltekit 0.61.3 → 0.61.4

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 CHANGED
@@ -198,63 +198,7 @@ because the optional PostgreSQL suites share one disposable database.
198
198
 
199
199
  ## M5 browser gate
200
200
 
201
- `e2e/` holds the milestone-M5 acceptance gate (#2579): a Playwright pass that
202
- provisions a fresh copy of the generated app into a temporary root, runs its
203
- own `app:setup` build/migrate/bootstrap, serves it on an ephemeral loopback
204
- port, and drives WebMCP discovery, execution, authorization, consent, disposal,
205
- and redaction in a real browser. The only fabricated thing is
206
- `document.modelContext`, which no headless browser exposes; database,
207
- collections, handlers, session, and every registration are the application's
208
- own. Never add a mocked REST handler, an in-memory database, or DOM automation
209
- presented as WebMCP execution.
210
-
211
- - `@happyvertical/smrt-cli` is a devDependency **because the gate needs it**:
212
- the harness runs the app's own `smrt app setup` and `smrt app dev` from the
213
- linked CLI, and setup's `pnpm build` is `smrt app build`. The copied app
214
- deliberately never runs `pnpm install`, so `smrt` has to arrive through the
215
- linked `node_modules`. The harness pins the app's own `.bin` ahead of `PATH`
216
- and fails with a named error if the binary is missing, so a host-global
217
- `smrt` cannot make a local run pass where CI fails. Identity and state-root
218
- values it checks come from `@happyvertical/smrt-app-runtime`.
219
- - `pnpm test:e2e` runs the browser half. `e2e/typecheck.spec.ts` also runs the
220
- copied app's own `svelte-kit sync` + `svelte-check` after setup, because the
221
- package `typecheck` (`tsc` over `tsconfig.fixture.json`) never sees the
222
- template's `.svelte` files; `svelte-check` is a devDependency so the harness
223
- links it into the copy (#3860).
224
- - `pnpm test:m5` runs the whole aggregate gate through
225
- `e2e/support/gate.mjs`, which requires a PostgreSQL service and fails when a
226
- required profile case is missing rather than merely absent from the log.
227
- - Tracing, video, and screenshots stay off: onboarding carries a single-use
228
- bootstrap token in a URL.
229
- - `m5-gate-summary.json` is the one file the gate writes inside the package;
230
- it is gitignored, overwritten every run, and is what CI uploads. Everything
231
- else it generates stays in a test-owned temporary root. Playwright's
232
- `outputDir` is `$TMPDIR/smrt-m5-artifacts`, emptied by
233
- `e2e/support/globalTeardown.ts`; `e2e/redaction.spec.ts` reads that path back
234
- from `testInfo.project.outputDir` and asserts it is outside the repository.
235
- The harness gives the copied app a real `node_modules` directory of
236
- individually symlinked entries rather than one symlink to this package's, so
237
- the served app's `node_modules/.vite` cache cannot land in the checkout.
238
- Scope directories (`@happyvertical/`) and `.bin/` are real directories of
239
- per-entry links too: the copy ships `pnpm-workspace.yaml` and setup runs
240
- `pnpm build` in it, so anything pnpm relinks must land in the copy, never in
241
- this package's `node_modules`. Never replace either loop with a
242
- whole-directory symlink.
243
- - `e2e/` is outside `biome.json`'s include globs, as every package's `e2e/` is,
244
- so a green `Lint` job says nothing about this tree. `pnpm typecheck` covers
245
- the `.ts` files (`tsconfig.fixture.json` includes `e2e/**/*.ts`) but NOT
246
- `e2e/support/gate.mjs`, which no static analysis reaches. Its `emit()`
247
- vocabulary guard is the runtime backstop; edit it carefully and run
248
- `pnpm test:m5` after any change to it.
249
-
250
- See [the M5 reference fixture gate](../../docs/content/m5-reference-fixture.md)
251
- for what the milestone proves, what it does not, and the recovery commands.
252
-
253
- Runtime report confirmation mounts the reports-owned Fetch handler at
254
- `/api/_reports/runtime/confirm`. It passes verified locals and the request's
255
- collection database; smrt-app-runtime has no reports dependency. The template
256
- consumes the reports manifest for migrations and explicitly hosts only
257
- `@happyvertical/smrt-reports:RuntimeReport` through the Vite preset’s `expose` option. Apps enabling
258
- `reports.runtime` configure `packages.reports.runtime.sources`; the default
259
- empty allow-list exposes no report sources. The authored route is preserved by
260
- the template's `.gitignore` exception.
201
+ `e2e/` holds the milestone-M5 acceptance gate (#2579), run against a fresh copy
202
+ of the generated app with its own database, handlers and registrations. Rules
203
+ for the harness, `pnpm test:e2e`, `pnpm test:m5` and its artifacts:
204
+ [agents/m5-browser-gate.md](agents/m5-browser-gate.md).
@@ -0,0 +1,62 @@
1
+ # M5 browser gate (#2579)
2
+
3
+ `e2e/` holds the milestone-M5 acceptance gate (#2579): a Playwright pass that
4
+ provisions a fresh copy of the generated app into a temporary root, runs its
5
+ own `app:setup` build/migrate/bootstrap, serves it on an ephemeral loopback
6
+ port, and drives WebMCP discovery, execution, authorization, consent, disposal,
7
+ and redaction in a real browser. The only fabricated thing is
8
+ `document.modelContext`, which no headless browser exposes; database,
9
+ collections, handlers, session, and every registration are the application's
10
+ own. Never add a mocked REST handler, an in-memory database, or DOM automation
11
+ presented as WebMCP execution.
12
+
13
+ - `@happyvertical/smrt-cli` is a devDependency **because the gate needs it**:
14
+ the harness runs the app's own `smrt app setup` and `smrt app dev` from the
15
+ linked CLI, and setup's `pnpm build` is `smrt app build`. The copied app
16
+ deliberately never runs `pnpm install`, so `smrt` has to arrive through the
17
+ linked `node_modules`. The harness pins the app's own `.bin` ahead of `PATH`
18
+ and fails with a named error if the binary is missing, so a host-global
19
+ `smrt` cannot make a local run pass where CI fails. Identity and state-root
20
+ values it checks come from `@happyvertical/smrt-app-runtime`.
21
+ - `pnpm test:e2e` runs the browser half. `e2e/typecheck.spec.ts` also runs the
22
+ copied app's own `svelte-kit sync` + `svelte-check` after setup, because the
23
+ package `typecheck` (`tsc` over `tsconfig.fixture.json`) never sees the
24
+ template's `.svelte` files; `svelte-check` is a devDependency so the harness
25
+ links it into the copy (#3860).
26
+ - `pnpm test:m5` runs the whole aggregate gate through
27
+ `e2e/support/gate.mjs`, which requires a PostgreSQL service and fails when a
28
+ required profile case is missing rather than merely absent from the log.
29
+ - Tracing, video, and screenshots stay off: onboarding carries a single-use
30
+ bootstrap token in a URL.
31
+ - `m5-gate-summary.json` is the one file the gate writes inside the package;
32
+ it is gitignored, overwritten every run, and is what CI uploads. Everything
33
+ else it generates stays in a test-owned temporary root. Playwright's
34
+ `outputDir` is `$TMPDIR/smrt-m5-artifacts`, emptied by
35
+ `e2e/support/globalTeardown.ts`; `e2e/redaction.spec.ts` reads that path back
36
+ from `testInfo.project.outputDir` and asserts it is outside the repository.
37
+ The harness gives the copied app a real `node_modules` directory of
38
+ individually symlinked entries rather than one symlink to this package's, so
39
+ the served app's `node_modules/.vite` cache cannot land in the checkout.
40
+ Scope directories (`@happyvertical/`) and `.bin/` are real directories of
41
+ per-entry links too: the copy ships `pnpm-workspace.yaml` and setup runs
42
+ `pnpm build` in it, so anything pnpm relinks must land in the copy, never in
43
+ this package's `node_modules`. Never replace either loop with a
44
+ whole-directory symlink.
45
+ - `e2e/` is outside `biome.json`'s include globs, as every package's `e2e/` is,
46
+ so a green `Lint` job says nothing about this tree. `pnpm typecheck` covers
47
+ the `.ts` files (`tsconfig.fixture.json` includes `e2e/**/*.ts`) but NOT
48
+ `e2e/support/gate.mjs`, which no static analysis reaches. Its `emit()`
49
+ vocabulary guard is the runtime backstop; edit it carefully and run
50
+ `pnpm test:m5` after any change to it.
51
+
52
+ See [the M5 reference fixture gate](../../docs/content/m5-reference-fixture.md)
53
+ for what the milestone proves, what it does not, and the recovery commands.
54
+
55
+ Runtime report confirmation mounts the reports-owned Fetch handler at
56
+ `/api/_reports/runtime/confirm`. It passes verified locals and the request's
57
+ collection database; smrt-app-runtime has no reports dependency. The template
58
+ consumes the reports manifest for migrations and explicitly hosts only
59
+ `@happyvertical/smrt-reports:RuntimeReport` through the Vite preset’s `expose` option. Apps enabling
60
+ `reports.runtime` configure `packages.reports.runtime.sources`; the default
61
+ empty allow-list exposes no report sources. The authored route is preserved by
62
+ the template's `.gitignore` exception.
@@ -5,10 +5,10 @@ description: "Minimal SvelteKit project template with s-m-r-t framework integrat
5
5
  status: "stable"
6
6
  generated:
7
7
  by: "smrt/scripts/generate-knowledge-okf.ts"
8
- at: "2026-11-13T18:39:16Z"
8
+ at: "2026-11-13T21:20:20Z"
9
9
  audience: "internal"
10
10
  evidence_level: "source-inspected"
11
- source_revision: "sha256:88fb150d9a1cce3485fec1af3e5c4c5f3c90b9efbe845151f9badefa1be3c73e"
11
+ source_revision: "sha256:718f91ad0fbb7d47d0f98df0aa4899244b5a36532e4fa028a7a443f0b8c00d3a"
12
12
  sources:
13
13
  - id: "manifest"
14
14
  resource: "https://github.com/happyvertical/smrt/blob/main/packages/template-sveltekit/package.json"
@@ -19,6 +19,9 @@ sources:
19
19
  - id: "agents-2"
20
20
  resource: "https://github.com/happyvertical/smrt/blob/main/packages/template-sveltekit/agents/cookbook-host.md"
21
21
  title: "@happyvertical/smrt-template-sveltekit packages/template-sveltekit/agents/cookbook-host.md"
22
+ - id: "agents-3"
23
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/template-sveltekit/agents/m5-browser-gate.md"
24
+ title: "@happyvertical/smrt-template-sveltekit packages/template-sveltekit/agents/m5-browser-gate.md"
22
25
  ---
23
26
 
24
27
  # @happyvertical/smrt-template-sveltekit
@@ -34,6 +37,7 @@ sources:
34
37
 
35
38
  - `packages/template-sveltekit/AGENTS.md`
36
39
  - `packages/template-sveltekit/agents/cookbook-host.md`
40
+ - `packages/template-sveltekit/agents/m5-browser-gate.md`
37
41
 
38
42
  ## Framework dependencies
39
43
 
@@ -1,4 +1,4 @@
1
1
  {
2
- "@happyvertical/smrt-app-mcp": "^0.61.3",
3
- "@happyvertical/smrt-mcp-openai": "^0.61.3"
2
+ "@happyvertical/smrt-app-mcp": "^0.61.4",
3
+ "@happyvertical/smrt-mcp-openai": "^0.61.4"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-template-sveltekit",
3
- "version": "0.61.3",
3
+ "version": "0.61.4",
4
4
  "description": "Minimal SvelteKit project template with s-m-r-t framework integration",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -86,45 +86,45 @@
86
86
  "directory": "packages/template-sveltekit"
87
87
  },
88
88
  "peerDependencies": {
89
- "@happyvertical/smrt-core": "0.61.3",
90
- "@happyvertical/smrt-agents": "0.61.3",
91
- "@happyvertical/smrt-app-runtime": "0.61.3",
92
- "@happyvertical/smrt-app-mcp": "0.61.3",
93
- "@happyvertical/smrt-chat": "0.61.3",
94
- "@happyvertical/smrt-inference": "0.61.3",
95
- "@happyvertical/smrt-preferences": "0.61.3",
96
- "@happyvertical/smrt-svelte": "0.61.3",
97
- "@happyvertical/smrt-tenancy": "0.61.3",
98
- "@happyvertical/smrt-types": "0.61.3",
99
- "@happyvertical/smrt-ui": "0.61.3",
100
- "@happyvertical/smrt-users": "0.61.3",
89
+ "@happyvertical/smrt-core": "0.61.4",
90
+ "@happyvertical/smrt-agents": "0.61.4",
91
+ "@happyvertical/smrt-app-runtime": "0.61.4",
92
+ "@happyvertical/smrt-app-mcp": "0.61.4",
93
+ "@happyvertical/smrt-chat": "0.61.4",
94
+ "@happyvertical/smrt-inference": "0.61.4",
95
+ "@happyvertical/smrt-preferences": "0.61.4",
96
+ "@happyvertical/smrt-svelte": "0.61.4",
97
+ "@happyvertical/smrt-tenancy": "0.61.4",
98
+ "@happyvertical/smrt-types": "0.61.4",
99
+ "@happyvertical/smrt-ui": "0.61.4",
100
+ "@happyvertical/smrt-users": "0.61.4",
101
101
  "@sveltejs/kit": "^2.70.3",
102
102
  "svelte": "^5.57.1",
103
103
  "@happyvertical/sql": ">=0.89.12",
104
- "@happyvertical/smrt-jobs": "0.61.3"
104
+ "@happyvertical/smrt-jobs": "0.61.4"
105
105
  },
106
106
  "devDependencies": {
107
- "@happyvertical/smrt-app-cli": "0.61.3",
108
- "@happyvertical/smrt-app-mcp": "0.61.3",
109
- "@happyvertical/smrt-app-runtime": "0.61.3",
110
- "@happyvertical/smrt-assets": "0.61.3",
111
- "@happyvertical/smrt-chat": "0.61.3",
112
- "@happyvertical/smrt-cli": "0.61.3",
113
- "@happyvertical/smrt-config": "0.61.3",
114
- "@happyvertical/smrt-inference": "0.61.3",
115
- "@happyvertical/smrt-jobs": "0.61.3",
116
- "@happyvertical/smrt-mcp-openai": "0.61.3",
117
- "@happyvertical/smrt-playbooks": "0.61.3",
118
- "@happyvertical/smrt-preferences": "0.61.3",
119
- "@happyvertical/smrt-profiles": "0.61.3",
120
- "@happyvertical/smrt-prompts": "0.61.3",
121
- "@happyvertical/smrt-scanner": "0.61.3",
122
- "@happyvertical/smrt-secrets": "0.61.3",
123
- "@happyvertical/smrt-svelte": "0.61.3",
124
- "@happyvertical/smrt-tenancy": "0.61.3",
125
- "@happyvertical/smrt-ui": "0.61.3",
126
- "@happyvertical/smrt-users": "0.61.3",
127
- "@happyvertical/smrt-web": "0.61.3",
107
+ "@happyvertical/smrt-app-cli": "0.61.4",
108
+ "@happyvertical/smrt-app-mcp": "0.61.4",
109
+ "@happyvertical/smrt-app-runtime": "0.61.4",
110
+ "@happyvertical/smrt-assets": "0.61.4",
111
+ "@happyvertical/smrt-chat": "0.61.4",
112
+ "@happyvertical/smrt-cli": "0.61.4",
113
+ "@happyvertical/smrt-config": "0.61.4",
114
+ "@happyvertical/smrt-inference": "0.61.4",
115
+ "@happyvertical/smrt-jobs": "0.61.4",
116
+ "@happyvertical/smrt-mcp-openai": "0.61.4",
117
+ "@happyvertical/smrt-playbooks": "0.61.4",
118
+ "@happyvertical/smrt-preferences": "0.61.4",
119
+ "@happyvertical/smrt-profiles": "0.61.4",
120
+ "@happyvertical/smrt-prompts": "0.61.4",
121
+ "@happyvertical/smrt-scanner": "0.61.4",
122
+ "@happyvertical/smrt-secrets": "0.61.4",
123
+ "@happyvertical/smrt-svelte": "0.61.4",
124
+ "@happyvertical/smrt-tenancy": "0.61.4",
125
+ "@happyvertical/smrt-ui": "0.61.4",
126
+ "@happyvertical/smrt-users": "0.61.4",
127
+ "@happyvertical/smrt-web": "0.61.4",
128
128
  "@happyvertical/sql": "^0.89.12",
129
129
  "@modelcontextprotocol/client": "2.3.1",
130
130
  "@modelcontextprotocol/server": "^2.3.1",
@@ -138,20 +138,20 @@
138
138
  "typescript": "6.0.3",
139
139
  "vite": "8.1.6",
140
140
  "vitest": "4.1.10",
141
- "@happyvertical/smrt-reports": "0.61.3",
142
- "@happyvertical/smrt-agents": "0.61.3",
143
- "@happyvertical/smrt-types": "0.61.3",
144
- "@happyvertical/smrt-commerce": "0.61.3",
145
- "@happyvertical/smrt-events": "0.61.3",
146
- "@happyvertical/smrt-inventory": "0.61.3"
141
+ "@happyvertical/smrt-reports": "0.61.4",
142
+ "@happyvertical/smrt-agents": "0.61.4",
143
+ "@happyvertical/smrt-types": "0.61.4",
144
+ "@happyvertical/smrt-commerce": "0.61.4",
145
+ "@happyvertical/smrt-events": "0.61.4",
146
+ "@happyvertical/smrt-inventory": "0.61.4"
147
147
  },
148
148
  "publishConfig": {
149
149
  "registry": "https://registry.npmjs.org",
150
150
  "access": "public"
151
151
  },
152
152
  "dependencies": {
153
- "@happyvertical/smrt-app-cli": "0.61.3",
154
- "@happyvertical/smrt-desktop": "0.61.3",
153
+ "@happyvertical/smrt-app-cli": "0.61.4",
154
+ "@happyvertical/smrt-desktop": "0.61.4",
155
155
  "ajv": "^8.20.0"
156
156
  },
157
157
  "scripts": {
@@ -5,6 +5,7 @@
5
5
 
6
6
  - Framework reference: `.agents/smrt-framework.md`
7
7
  - Intent index: `.agents/smrt-knowledge/intents/index.md`
8
+ - Data shape rules (what smrt requires of a field, how to harden a smrt class in this app): the "Data shape rules" section of the framework reference.
8
9
  - Before adding infrastructure, utility or integration code, read the intent index.
9
10
  - If smrt has the home package but lacks the behaviour, or lacks it entirely, file an issue on happyvertical/smrt and mark any local shim temporary: framework first, no glue.
10
11
  - Refresh this block and the references: `smrt docs:agents`.
@@ -41,26 +41,26 @@
41
41
  "svelte-check": "^4.7.6",
42
42
  "typescript": "6.0.3",
43
43
  "vite": "8.3.3",
44
- "@happyvertical/smrt-cli": "^0.61.3"
44
+ "@happyvertical/smrt-cli": "^0.61.4"
45
45
  },
46
46
  "dependencies": {
47
- "@happyvertical/smrt-app-runtime": "^0.61.3",
48
- "@happyvertical/smrt-config": "^0.61.3",
49
- "@happyvertical/smrt-core": "^0.61.3",
50
- "@happyvertical/smrt-inference": "^0.61.3",
51
- "@happyvertical/smrt-jobs": "^0.61.3",
52
- "@happyvertical/smrt-preferences": "^0.61.3",
53
- "@happyvertical/smrt-profiles": "^0.61.3",
54
- "@happyvertical/smrt-prompts": "^0.61.3",
55
- "@happyvertical/smrt-svelte": "^0.61.3",
56
- "@happyvertical/smrt-tenancy": "^0.61.3",
57
- "@happyvertical/smrt-ui": "^0.61.3",
58
- "@happyvertical/smrt-users": "^0.61.3",
59
- "@happyvertical/smrt-web": "^0.61.3",
47
+ "@happyvertical/smrt-app-runtime": "^0.61.4",
48
+ "@happyvertical/smrt-config": "^0.61.4",
49
+ "@happyvertical/smrt-core": "^0.61.4",
50
+ "@happyvertical/smrt-inference": "^0.61.4",
51
+ "@happyvertical/smrt-jobs": "^0.61.4",
52
+ "@happyvertical/smrt-preferences": "^0.61.4",
53
+ "@happyvertical/smrt-profiles": "^0.61.4",
54
+ "@happyvertical/smrt-prompts": "^0.61.4",
55
+ "@happyvertical/smrt-svelte": "^0.61.4",
56
+ "@happyvertical/smrt-tenancy": "^0.61.4",
57
+ "@happyvertical/smrt-ui": "^0.61.4",
58
+ "@happyvertical/smrt-users": "^0.61.4",
59
+ "@happyvertical/smrt-web": "^0.61.4",
60
60
  "@happyvertical/sql": "^0.89.12",
61
61
  "@modelcontextprotocol/server": "^2.3.1",
62
- "@happyvertical/smrt-reports": "^0.61.3",
63
- "@happyvertical/smrt-secrets": "^0.61.3",
64
- "@happyvertical/smrt-template-sveltekit": "^0.61.3"
62
+ "@happyvertical/smrt-reports": "^0.61.4",
63
+ "@happyvertical/smrt-secrets": "^0.61.4",
64
+ "@happyvertical/smrt-template-sveltekit": "^0.61.4"
65
65
  }
66
66
  }
@@ -19,28 +19,28 @@ export default {
19
19
 
20
20
  // Dependencies to add to generated project
21
21
  dependencies: {
22
- '@happyvertical/smrt-app-runtime': '^0.61.3',
23
- '@happyvertical/smrt-config': '^0.61.3',
24
- '@happyvertical/smrt-core': '^0.61.3',
25
- '@happyvertical/smrt-inference': '^0.61.3',
26
- '@happyvertical/smrt-jobs': '^0.61.3',
27
- '@happyvertical/smrt-preferences': '^0.61.3',
28
- '@happyvertical/smrt-profiles': '^0.61.3',
29
- '@happyvertical/smrt-prompts': '^0.61.3',
30
- '@happyvertical/smrt-reports': '^0.61.3',
31
- '@happyvertical/smrt-secrets': '^0.61.3',
32
- '@happyvertical/smrt-svelte': '^0.61.3',
33
- '@happyvertical/smrt-template-sveltekit': '^0.61.3',
34
- '@happyvertical/smrt-tenancy': '^0.61.3',
35
- '@happyvertical/smrt-ui': '^0.61.3',
36
- '@happyvertical/smrt-users': '^0.61.3',
37
- '@happyvertical/smrt-web': '^0.61.3',
22
+ '@happyvertical/smrt-app-runtime': '^0.61.4',
23
+ '@happyvertical/smrt-config': '^0.61.4',
24
+ '@happyvertical/smrt-core': '^0.61.4',
25
+ '@happyvertical/smrt-inference': '^0.61.4',
26
+ '@happyvertical/smrt-jobs': '^0.61.4',
27
+ '@happyvertical/smrt-preferences': '^0.61.4',
28
+ '@happyvertical/smrt-profiles': '^0.61.4',
29
+ '@happyvertical/smrt-prompts': '^0.61.4',
30
+ '@happyvertical/smrt-reports': '^0.61.4',
31
+ '@happyvertical/smrt-secrets': '^0.61.4',
32
+ '@happyvertical/smrt-svelte': '^0.61.4',
33
+ '@happyvertical/smrt-template-sveltekit': '^0.61.4',
34
+ '@happyvertical/smrt-tenancy': '^0.61.4',
35
+ '@happyvertical/smrt-ui': '^0.61.4',
36
+ '@happyvertical/smrt-users': '^0.61.4',
37
+ '@happyvertical/smrt-web': '^0.61.4',
38
38
  '@happyvertical/sql': '^0.89.12',
39
39
  '@modelcontextprotocol/server': '^2.3.1',
40
40
  },
41
41
 
42
42
  devDependencies: {
43
- '@happyvertical/smrt-cli': '^0.61.3',
43
+ '@happyvertical/smrt-cli': '^0.61.4',
44
44
  '@sveltejs/adapter-node': '^5.5.7',
45
45
  '@sveltejs/kit': '2.70.3',
46
46
  '@sveltejs/vite-plugin-svelte': '^7.3.0',