@happyvertical/smrt-template-sveltekit 0.72.0 → 0.73.0

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
@@ -200,5 +200,6 @@ because the optional PostgreSQL suites share one disposable database.
200
200
 
201
201
  `e2e/` holds the milestone-M5 acceptance gate (#2579), run against a fresh copy
202
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:
203
+ for the harness, `pnpm test:e2e`, `pnpm test:m5`, the per-part
204
+ `pnpm test:m5:part <id>` CI runs and the artifacts:
204
205
  [agents/m5-browser-gate.md](agents/m5-browser-gate.md).
@@ -1,6 +1,6 @@
1
1
  # Local cookbook host
2
2
 
3
- The real-HTTP CLI fixture in `__tests__/cookbookHost.test.ts` models a compatible
3
+ The real-HTTP CLI fixture in `__tests__/cookbookHost.part*.test.ts` (one suite in four files, see below) models a compatible
4
4
  app-tool host for both stream protocols: it accepts the secured flags, preflights
5
5
  successfully, and calls the app MCP endpoint. Claude has built-ins absent; native
6
6
  Codex 0.162.1 now enables its necessary code-mode host and confines incidental
@@ -16,6 +16,16 @@ next fixture's catalog. Native CLI approval tests await the actual streamed hold
16
16
  revocation tests gate the real persisted MCP response before delivering it to the
17
17
  stub. They do not depend on CLI startup completing within a polling interval.
18
18
 
19
+ The host suite is split over `cookbookHost.part1..4.test.ts` so the M5 gate can
20
+ run them on different runners (#5694). The four files keep the original
21
+ `describe` titles, so every test's full name is unchanged and the gate's name
22
+ matching still holds. Each file repeats the `vi.mock('@happyvertical/smrt-workflows')`
23
+ registration, the module state and the top-level and inner `beforeEach`/`afterEach`
24
+ (tests reassign `host`, `permissions` and `response`, which an imported binding
25
+ cannot do); only stateless fixtures live in `__tests__/support/cookbookHost*.ts`.
26
+ A new test goes in the part that is lightest in `e2e/support/gateSpec.mjs`'s
27
+ `SPLIT_FILE_MINIMUMS`, and a change to the shared setup must be made in all four.
28
+
19
29
  Cookbook/app workflow results return both text content and the same object as
20
30
  `structuredContent`, matching the bridge's declared object `outputSchema`.
21
31
  Current Claude Code and Codex clients reject text-only successful results when
@@ -151,7 +161,7 @@ collections. `assistant-fixture.svelte` only observes injected dock props.
151
161
  | `host/InferenceSettingsPage.svelte` | MCP template review; `rg` InferenceSettingsPanel/settings page in template and inference. Moves the existing template page to a reusable data-prop component backed by the same panel. |
152
162
 
153
163
  `cookbookSubclasses.test.ts` is a filesystem fixture proving regeneration preserves
154
- app edits and refuses path escapes. `cookbookHost.test.ts` reuses the inference stub
164
+ app edits and refuses path escapes. `cookbookHost.part*.test.ts` reuses the inference stub
155
165
  CLI, runtime principal branding, users collections and SQLite.
156
166
 
157
167
  ## SQLite lazy host and live model publication
@@ -315,7 +325,7 @@ standalone component/recipe/intent search endpoints.
315
325
  | `cookbook-template/.pnpmfile.cjs` | The CLI-owned checkout hook; returns config unchanged for published installation. |
316
326
  | `cli/scripts/source-checkout.cjs` | Moved the existing product checkout integration intact except enabling the published-config path. `rg SMRT_ROOT/local checkout/npm_execpath` found no existing source-link service; build forwarding reuses createPackageManagerRunner. |
317
327
 
318
- New test `template-sveltekit/__tests__/cookbookApply.test.ts` uses the existing
328
+ New tests `template-sveltekit/__tests__/cookbookApply.<name>.test.ts` use the existing
319
329
  apply engine and actual adapter Server with offline packages; it is not a new
320
330
  runtime or domain helper. ProfileIdentityRecipe extends SmrtRecipe in the
321
331
  existing profiles recipe file and reuses Profile/ProfileType; CustomersRecipe
@@ -93,7 +93,7 @@ with claim fencing, scripted step): admission before execution, owner
93
93
  isolation, three checked steps on the registered prompt with the pinned
94
94
  schema, repair, an unready final proposal, cooperative stop and resume, a
95
95
  changed live schema, registration after runner start.
96
- `__tests__/cookbookHost.test.ts` covers the routes: run status by thread,
96
+ `__tests__/cookbookHost.part*.test.ts` covers the routes: run status by thread,
97
97
  native approval holds (preview on/off, destructive, denied, several holds of
98
98
  one proposal), approval while stopped then Resume, budget stop and resume,
99
99
  schema repair without effects, and crash recovery with a second real runner
@@ -26,16 +26,30 @@ presented as WebMCP execution.
26
26
  - `pnpm test:m5` runs the whole aggregate gate through
27
27
  `e2e/support/gate.mjs`, which requires a PostgreSQL service and fails when a
28
28
  required profile case is missing rather than merely absent from the log.
29
- Its Vitest half runs this package's whole suite in two passes: files named
30
- `*.postgres.optional.test.ts` share the gate's one disposable database and
31
- run one at a time; every other file runs two at a time. A test that connects
32
- to that database must carry the `.postgres.optional` name.
29
+ CI runs the gate as five parallel part jobs and one aggregator (#5694):
30
+ `template-1`, `template-2` and `template-3` (this package's vitest suite in
31
+ three file shards, two files at a time), `postgres` (the
32
+ `*.postgres.optional.test.ts` files, which share the gate's one disposable
33
+ database and run one at a time, plus the cli and app-runtime files; the only
34
+ part that owns the PostgreSQL service and reports `postgres-service`) and
35
+ `browser`. `pnpm test:m5:part <id>` runs one part into `m5-part-<id>.json`;
36
+ `gate.mjs verdict` is the aggregator's check, and `pnpm test:m5` runs every
37
+ part in sequence and then the same verdict. Never run two parts concurrently
38
+ in one checkout (the vitest global setup writes and removes
39
+ `template/.svelte-kit/`). What must run lives in `e2e/support/gateSpec.mjs`:
40
+ the shard assignment (`template-3` is "every other file", so a new test file
41
+ can never fall out of every shard, and the verdict also proves the shards'
42
+ files are exactly the include glob, each once), the required cases and the
43
+ per-file floors for the split `cookbookHost.part*` and `cookbookApply.<name>`
44
+ files. A test that connects to the database must carry the
45
+ `.postgres.optional` name.
33
46
  - Tracing, video, and screenshots stay off: onboarding carries a single-use
34
47
  bootstrap token in a URL.
35
- - `m5-gate-summary.json` is the one file the gate writes inside the package;
36
- it is gitignored, overwritten every run, and is what CI uploads. Everything
37
- else it generates stays in a test-owned temporary root. Playwright's
38
- `outputDir` is `$TMPDIR/smrt-m5-artifacts`, emptied by
48
+ - `m5-part-<id>.json` and `m5-gate-summary.json` are the only files the gate
49
+ writes inside the package; they are gitignored, overwritten every run, and
50
+ are what CI uploads. Everything else it generates stays in a test-owned
51
+ temporary root. Playwright's `outputDir` is
52
+ `$TMPDIR/smrt-m5-artifacts-<part>` (`smrt-m5-artifacts` outside the gate), emptied by
39
53
  `e2e/support/globalTeardown.ts`; `e2e/redaction.spec.ts` reads that path back
40
54
  from `testInfo.project.outputDir` and asserts it is outside the repository.
41
55
  The harness gives the copied app a real `node_modules` directory of
@@ -49,9 +63,10 @@ presented as WebMCP execution.
49
63
  - `e2e/` is outside `biome.json`'s include globs, as every package's `e2e/` is,
50
64
  so a green `Lint` job says nothing about this tree. `pnpm typecheck` covers
51
65
  the `.ts` files (`tsconfig.fixture.json` includes `e2e/**/*.ts`) but NOT
52
- `e2e/support/gate.mjs`, which no static analysis reaches. Its `emit()`
53
- vocabulary guard is the runtime backstop; edit it carefully and run
54
- `pnpm test:m5` after any change to it.
66
+ `e2e/support/gate.mjs` or `gateSpec.mjs`, which no static analysis reaches.
67
+ `scripts/m5-gate-verdict.test.mjs` (run by `pnpm test:ci-scripts`) covers the
68
+ verdict, and the `vocabularyViolations()` guard is the runtime backstop;
69
+ edit them carefully and run `pnpm test:m5` after any change.
55
70
 
56
71
  See [the M5 reference fixture gate](../../docs/content/m5-reference-fixture.md)
57
72
  for what the milestone proves, what it does not, and the recovery commands.
@@ -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-16T22:54:06Z"
8
+ at: "2026-11-26T19:54:41Z"
9
9
  audience: "internal"
10
10
  evidence_level: "source-inspected"
11
- source_revision: "sha256:d82b0db0575317de29882bd042b1f6d678e5c75adf61d28e16021c336acf8a56"
11
+ source_revision: "sha256:5e9459132fb6640722265f189a59311d54cd80d063cc805a2934c4b99a7f32bb"
12
12
  sources:
13
13
  - id: "manifest"
14
14
  resource: "https://github.com/happyvertical/smrt/blob/main/packages/template-sveltekit/package.json"
@@ -1,4 +1,4 @@
1
1
  {
2
- "@happyvertical/smrt-app-mcp": "^0.72.0",
3
- "@happyvertical/smrt-mcp-openai": "^0.72.0"
2
+ "@happyvertical/smrt-app-mcp": "^0.73.0",
3
+ "@happyvertical/smrt-mcp-openai": "^0.73.0"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-template-sveltekit",
3
- "version": "0.72.0",
3
+ "version": "0.73.0",
4
4
  "description": "Minimal SvelteKit project template with s-m-r-t framework integration",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -86,48 +86,48 @@
86
86
  "directory": "packages/template-sveltekit"
87
87
  },
88
88
  "peerDependencies": {
89
- "@happyvertical/smrt-core": "0.72.0",
90
- "@happyvertical/smrt-agents": "0.72.0",
91
- "@happyvertical/smrt-app-runtime": "0.72.0",
92
- "@happyvertical/smrt-app-mcp": "0.72.0",
93
- "@happyvertical/smrt-chat": "0.72.0",
94
- "@happyvertical/smrt-inference": "0.72.0",
95
- "@happyvertical/smrt-preferences": "0.72.0",
96
- "@happyvertical/smrt-svelte": "0.72.0",
97
- "@happyvertical/smrt-tenancy": "0.72.0",
98
- "@happyvertical/smrt-types": "0.72.0",
99
- "@happyvertical/smrt-ui": "0.72.0",
100
- "@happyvertical/smrt-users": "0.72.0",
89
+ "@happyvertical/smrt-core": "0.73.0",
90
+ "@happyvertical/smrt-agents": "0.73.0",
91
+ "@happyvertical/smrt-app-runtime": "0.73.0",
92
+ "@happyvertical/smrt-app-mcp": "0.73.0",
93
+ "@happyvertical/smrt-chat": "0.73.0",
94
+ "@happyvertical/smrt-inference": "0.73.0",
95
+ "@happyvertical/smrt-preferences": "0.73.0",
96
+ "@happyvertical/smrt-svelte": "0.73.0",
97
+ "@happyvertical/smrt-tenancy": "0.73.0",
98
+ "@happyvertical/smrt-types": "0.73.0",
99
+ "@happyvertical/smrt-ui": "0.73.0",
100
+ "@happyvertical/smrt-users": "0.73.0",
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.72.0",
105
- "@happyvertical/smrt-prompts": "0.72.0",
106
- "@happyvertical/smrt-workflows": "0.72.0"
104
+ "@happyvertical/smrt-jobs": "0.73.0",
105
+ "@happyvertical/smrt-prompts": "0.73.0",
106
+ "@happyvertical/smrt-workflows": "0.73.0"
107
107
  },
108
108
  "devDependencies": {
109
- "@happyvertical/smrt-app-cli": "0.72.0",
110
- "@happyvertical/smrt-app-mcp": "0.72.0",
111
- "@happyvertical/smrt-app-runtime": "0.72.0",
112
- "@happyvertical/smrt-assets": "0.72.0",
113
- "@happyvertical/smrt-chat": "0.72.0",
114
- "@happyvertical/smrt-cli": "0.72.0",
115
- "@happyvertical/smrt-config": "0.72.0",
116
- "@happyvertical/smrt-inference": "0.72.0",
117
- "@happyvertical/smrt-jobs": "0.72.0",
118
- "@happyvertical/smrt-mcp-openai": "0.72.0",
119
- "@happyvertical/smrt-playbooks": "0.72.0",
120
- "@happyvertical/smrt-preferences": "0.72.0",
121
- "@happyvertical/smrt-profiles": "0.72.0",
122
- "@happyvertical/smrt-prompts": "0.72.0",
123
- "@happyvertical/smrt-scanner": "0.72.0",
124
- "@happyvertical/smrt-secrets": "0.72.0",
125
- "@happyvertical/smrt-svelte": "0.72.0",
126
- "@happyvertical/smrt-tenancy": "0.72.0",
127
- "@happyvertical/smrt-ui": "0.72.0",
128
- "@happyvertical/smrt-users": "0.72.0",
129
- "@happyvertical/smrt-web": "0.72.0",
130
- "@happyvertical/smrt-workflows": "0.72.0",
109
+ "@happyvertical/smrt-app-cli": "0.73.0",
110
+ "@happyvertical/smrt-app-mcp": "0.73.0",
111
+ "@happyvertical/smrt-app-runtime": "0.73.0",
112
+ "@happyvertical/smrt-assets": "0.73.0",
113
+ "@happyvertical/smrt-chat": "0.73.0",
114
+ "@happyvertical/smrt-cli": "0.73.0",
115
+ "@happyvertical/smrt-config": "0.73.0",
116
+ "@happyvertical/smrt-inference": "0.73.0",
117
+ "@happyvertical/smrt-jobs": "0.73.0",
118
+ "@happyvertical/smrt-mcp-openai": "0.73.0",
119
+ "@happyvertical/smrt-playbooks": "0.73.0",
120
+ "@happyvertical/smrt-preferences": "0.73.0",
121
+ "@happyvertical/smrt-profiles": "0.73.0",
122
+ "@happyvertical/smrt-prompts": "0.73.0",
123
+ "@happyvertical/smrt-scanner": "0.73.0",
124
+ "@happyvertical/smrt-secrets": "0.73.0",
125
+ "@happyvertical/smrt-svelte": "0.73.0",
126
+ "@happyvertical/smrt-tenancy": "0.73.0",
127
+ "@happyvertical/smrt-ui": "0.73.0",
128
+ "@happyvertical/smrt-users": "0.73.0",
129
+ "@happyvertical/smrt-web": "0.73.0",
130
+ "@happyvertical/smrt-workflows": "0.73.0",
131
131
  "@happyvertical/sql": "^0.89.12",
132
132
  "@modelcontextprotocol/client": "2.3.1",
133
133
  "@modelcontextprotocol/server": "^2.3.1",
@@ -141,20 +141,20 @@
141
141
  "typescript": "6.0.3",
142
142
  "vite": "8.1.6",
143
143
  "vitest": "4.1.10",
144
- "@happyvertical/smrt-reports": "0.72.0",
145
- "@happyvertical/smrt-agents": "0.72.0",
146
- "@happyvertical/smrt-types": "0.72.0",
147
- "@happyvertical/smrt-commerce": "0.72.0",
148
- "@happyvertical/smrt-events": "0.72.0",
149
- "@happyvertical/smrt-inventory": "0.72.0"
144
+ "@happyvertical/smrt-reports": "0.73.0",
145
+ "@happyvertical/smrt-agents": "0.73.0",
146
+ "@happyvertical/smrt-types": "0.73.0",
147
+ "@happyvertical/smrt-commerce": "0.73.0",
148
+ "@happyvertical/smrt-events": "0.73.0",
149
+ "@happyvertical/smrt-inventory": "0.73.0"
150
150
  },
151
151
  "publishConfig": {
152
152
  "registry": "https://registry.npmjs.org",
153
153
  "access": "public"
154
154
  },
155
155
  "dependencies": {
156
- "@happyvertical/smrt-app-cli": "0.72.0",
157
- "@happyvertical/smrt-desktop": "0.72.0",
156
+ "@happyvertical/smrt-app-cli": "0.73.0",
157
+ "@happyvertical/smrt-desktop": "0.73.0",
158
158
  "ajv": "^8.20.0"
159
159
  },
160
160
  "scripts": {
@@ -162,6 +162,8 @@
162
162
  "test": "vitest run",
163
163
  "test:e2e": "pnpm exec playwright test --config playwright.config.ts",
164
164
  "test:m5": "node ../../scripts/run-with-ci-postgres.mjs -- node e2e/support/gate.mjs",
165
+ "test:m5:part": "node e2e/support/gate.mjs part",
166
+ "test:m5:part:postgres": "node ../../scripts/run-with-ci-postgres.mjs -- node e2e/support/gate.mjs part postgres",
165
167
  "test:postgres": "node ../../scripts/run-with-ci-postgres.mjs -- pnpm exec vitest run --no-file-parallelism __tests__/*.postgres.optional.test.ts",
166
168
  "test:watch": "vitest",
167
169
  "typecheck": "node ../../scripts/write-source-typecheck-config.mjs tsconfig.fixture.json .smrt/tsconfig.fixture-typecheck.json && tsc -p .smrt/tsconfig.fixture-typecheck.json && tsc -p tsconfig.host-typecheck.json"
@@ -25,6 +25,8 @@ src/routes/api/**/+server.ts
25
25
  # The runtime readiness endpoint is authored infrastructure, not generated API
26
26
  # output, and must remain in the installable scaffold.
27
27
  !src/routes/api/_runtime/health/+server.ts
28
+ # Authored by a desktop app (`smrt-desktop.json` `sidecar.ownerClaimRoute`).
29
+ !src/routes/api/_runtime/owner-link/+server.ts
28
30
  !src/routes/api/_reports/runtime/confirm/+server.ts
29
31
  src/lib/server/smrt-register.ts
30
32
  src/lib/types/smrt-generated/
@@ -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.72.0"
44
+ "@happyvertical/smrt-cli": "^0.73.0"
45
45
  },
46
46
  "dependencies": {
47
- "@happyvertical/smrt-app-runtime": "^0.72.0",
48
- "@happyvertical/smrt-config": "^0.72.0",
49
- "@happyvertical/smrt-core": "^0.72.0",
50
- "@happyvertical/smrt-inference": "^0.72.0",
51
- "@happyvertical/smrt-jobs": "^0.72.0",
52
- "@happyvertical/smrt-preferences": "^0.72.0",
53
- "@happyvertical/smrt-profiles": "^0.72.0",
54
- "@happyvertical/smrt-prompts": "^0.72.0",
55
- "@happyvertical/smrt-svelte": "^0.72.0",
56
- "@happyvertical/smrt-tenancy": "^0.72.0",
57
- "@happyvertical/smrt-ui": "^0.72.0",
58
- "@happyvertical/smrt-users": "^0.72.0",
59
- "@happyvertical/smrt-web": "^0.72.0",
47
+ "@happyvertical/smrt-app-runtime": "^0.73.0",
48
+ "@happyvertical/smrt-config": "^0.73.0",
49
+ "@happyvertical/smrt-core": "^0.73.0",
50
+ "@happyvertical/smrt-inference": "^0.73.0",
51
+ "@happyvertical/smrt-jobs": "^0.73.0",
52
+ "@happyvertical/smrt-preferences": "^0.73.0",
53
+ "@happyvertical/smrt-profiles": "^0.73.0",
54
+ "@happyvertical/smrt-prompts": "^0.73.0",
55
+ "@happyvertical/smrt-svelte": "^0.73.0",
56
+ "@happyvertical/smrt-tenancy": "^0.73.0",
57
+ "@happyvertical/smrt-ui": "^0.73.0",
58
+ "@happyvertical/smrt-users": "^0.73.0",
59
+ "@happyvertical/smrt-web": "^0.73.0",
60
60
  "@happyvertical/sql": "^0.89.12",
61
61
  "@modelcontextprotocol/server": "^2.3.1",
62
- "@happyvertical/smrt-reports": "^0.72.0",
63
- "@happyvertical/smrt-secrets": "^0.72.0",
64
- "@happyvertical/smrt-template-sveltekit": "^0.72.0"
62
+ "@happyvertical/smrt-reports": "^0.73.0",
63
+ "@happyvertical/smrt-secrets": "^0.73.0",
64
+ "@happyvertical/smrt-template-sveltekit": "^0.73.0"
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.72.0',
23
- '@happyvertical/smrt-config': '^0.72.0',
24
- '@happyvertical/smrt-core': '^0.72.0',
25
- '@happyvertical/smrt-inference': '^0.72.0',
26
- '@happyvertical/smrt-jobs': '^0.72.0',
27
- '@happyvertical/smrt-preferences': '^0.72.0',
28
- '@happyvertical/smrt-profiles': '^0.72.0',
29
- '@happyvertical/smrt-prompts': '^0.72.0',
30
- '@happyvertical/smrt-reports': '^0.72.0',
31
- '@happyvertical/smrt-secrets': '^0.72.0',
32
- '@happyvertical/smrt-svelte': '^0.72.0',
33
- '@happyvertical/smrt-template-sveltekit': '^0.72.0',
34
- '@happyvertical/smrt-tenancy': '^0.72.0',
35
- '@happyvertical/smrt-ui': '^0.72.0',
36
- '@happyvertical/smrt-users': '^0.72.0',
37
- '@happyvertical/smrt-web': '^0.72.0',
22
+ '@happyvertical/smrt-app-runtime': '^0.73.0',
23
+ '@happyvertical/smrt-config': '^0.73.0',
24
+ '@happyvertical/smrt-core': '^0.73.0',
25
+ '@happyvertical/smrt-inference': '^0.73.0',
26
+ '@happyvertical/smrt-jobs': '^0.73.0',
27
+ '@happyvertical/smrt-preferences': '^0.73.0',
28
+ '@happyvertical/smrt-profiles': '^0.73.0',
29
+ '@happyvertical/smrt-prompts': '^0.73.0',
30
+ '@happyvertical/smrt-reports': '^0.73.0',
31
+ '@happyvertical/smrt-secrets': '^0.73.0',
32
+ '@happyvertical/smrt-svelte': '^0.73.0',
33
+ '@happyvertical/smrt-template-sveltekit': '^0.73.0',
34
+ '@happyvertical/smrt-tenancy': '^0.73.0',
35
+ '@happyvertical/smrt-ui': '^0.73.0',
36
+ '@happyvertical/smrt-users': '^0.73.0',
37
+ '@happyvertical/smrt-web': '^0.73.0',
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.72.0',
43
+ '@happyvertical/smrt-cli': '^0.73.0',
44
44
  '@sveltejs/adapter-node': '^5.5.7',
45
45
  '@sveltejs/kit': '2.70.3',
46
46
  '@sveltejs/vite-plugin-svelte': '^7.3.0',