@happyvertical/smrt-template-sveltekit 0.40.62 → 0.40.63

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
@@ -17,6 +17,16 @@ It is the ground-up alternative to `smrt-saas-starter`.
17
17
  - Directly used `@happyvertical/smrt-*` packages share one current release range.
18
18
  - `@happyvertical/smrt-cli` is a direct dev dependency because scripts/docs use
19
19
  its binary. `@happyvertical/smrt-web` stays opt-in until a page imports it.
20
+ - The generated MCP server resolves its imports from the scaffolded app, not
21
+ from the CLI, so every specifier `generate-mcp` emits must be declared here.
22
+ `@modelcontextprotocol/server` (plus its `/stdio` subpath),
23
+ `@happyvertical/smrt-core`, and `@happyvertical/smrt-config` are always
24
+ emitted and are always dependencies. `@happyvertical/smrt-jobs` (task actions)
25
+ and `@happyvertical/smrt-tenancy` (tenant-scoped objects) are conditional;
26
+ tenancy is already a dependency for other reasons, and jobs is documented in
27
+ the template README as an add-when-needed. Do not assume pnpm exposes the
28
+ CLI's or core's transitive dependencies to the app root — its strict layout
29
+ does not (#2297).
20
30
  - `smrtConsumer()` explicitly consumes profiles, tenancy, and users manifests;
21
31
  `smrtPlugin()` scans `src/lib/objects`, generates Vite virtual definitions,
22
32
  SvelteKit routes, runtime registration, and knowledge artifacts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-template-sveltekit",
3
- "version": "0.40.62",
3
+ "version": "0.40.63",
4
4
  "description": "Minimal SvelteKit project template with s-m-r-t framework integration",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -29,12 +29,12 @@
29
29
  "directory": "packages/template-sveltekit"
30
30
  },
31
31
  "peerDependencies": {
32
- "@happyvertical/smrt-core": "0.40.62"
32
+ "@happyvertical/smrt-core": "0.40.63"
33
33
  },
34
34
  "devDependencies": {
35
35
  "vitest": "4.1.10",
36
- "@happyvertical/smrt-tenancy": "0.40.62",
37
- "@happyvertical/smrt-users": "0.40.62"
36
+ "@happyvertical/smrt-tenancy": "0.40.63",
37
+ "@happyvertical/smrt-users": "0.40.63"
38
38
  },
39
39
  "publishConfig": {
40
40
  "registry": "https://registry.npmjs.org",
@@ -227,7 +227,27 @@ Generate a standalone MCP server when you are ready to configure a transport:
227
227
  pnpm smrt generate-mcp --no-config --no-readme
228
228
  ```
229
229
 
230
- The output is `.smrt/mcp-server/index.js`. It is generated and ignored.
230
+ The output is `.smrt/mcp-server/index.js`. It is generated and ignored. Run it
231
+ with:
232
+
233
+ ```bash
234
+ node .smrt/mcp-server/index.js
235
+ ```
236
+
237
+ The generated entry resolves its imports from this project, not from the CLI, so
238
+ every module it imports must be a dependency here. `@modelcontextprotocol/server`,
239
+ `@happyvertical/smrt-core`, and `@happyvertical/smrt-config` are always imported
240
+ and are already declared. Two more are emitted only when your objects need them,
241
+ and you must add them yourself:
242
+
243
+ | Emitted when | Dependency | Already declared? |
244
+ | --- | --- | --- |
245
+ | An exposed object declares task actions (`@smrt({ mcp: { tasks: true } })`) | `@happyvertical/smrt-jobs` | No — add it |
246
+ | An exposed object is tenant-scoped | `@happyvertical/smrt-tenancy` | Yes |
247
+
248
+ Add the jobs package on the same release line as the other
249
+ `@happyvertical/smrt-*` pins in `package.json`, then reinstall. Missing one of
250
+ these fails at startup with `ERR_MODULE_NOT_FOUND` naming the package to add.
231
251
 
232
252
  WebMCP is opt-in per browser surface. First add the browser runtime, then put
233
253
  registration in a dedicated page that actually exposes tools:
@@ -25,14 +25,16 @@
25
25
  "svelte-check": "^4.7.2",
26
26
  "typescript": "^6.0.3",
27
27
  "vite": "^8.1.4",
28
- "@happyvertical/smrt-cli": "^0.40.62"
28
+ "@happyvertical/smrt-cli": "^0.40.63"
29
29
  },
30
30
  "dependencies": {
31
- "@happyvertical/smrt-core": "^0.40.62",
32
- "@happyvertical/smrt-profiles": "^0.40.62",
33
- "@happyvertical/smrt-svelte": "^0.40.62",
34
- "@happyvertical/smrt-tenancy": "^0.40.62",
35
- "@happyvertical/smrt-ui": "^0.40.62",
36
- "@happyvertical/smrt-users": "^0.40.62"
31
+ "@happyvertical/smrt-config": "^0.40.63",
32
+ "@happyvertical/smrt-core": "^0.40.63",
33
+ "@happyvertical/smrt-profiles": "^0.40.63",
34
+ "@happyvertical/smrt-svelte": "^0.40.63",
35
+ "@happyvertical/smrt-tenancy": "^0.40.63",
36
+ "@happyvertical/smrt-ui": "^0.40.63",
37
+ "@happyvertical/smrt-users": "^0.40.63",
38
+ "@modelcontextprotocol/server": "^2.0.0"
37
39
  }
38
40
  }