create-rsc-kit 0.29.6 → 0.29.7

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.
@@ -42,6 +42,11 @@ export declare const configFile: (_o: Options) => string;
42
42
  * combines with the stock scripts and only steps aside for a script somebody
43
43
  * wrote themselves.
44
44
  */
45
+ /**
46
+ * Another of the lockstep packages, at the same version as the engine: the
47
+ * same range, or - for a local checkout - its folder beside packages/core.
48
+ */
49
+ export declare function sibling(core: string, dir: 'cli' | 'mcp'): string;
45
50
  export declare function scripts(o: Options): Record<string, string>;
46
51
  export declare function packageJson(o: Options): string;
47
52
  /** One server per app, so it needs no qualifier. */
package/dist/templates.js CHANGED
@@ -48,6 +48,13 @@ export const configFile = (_o) => 'vite.config.ts';
48
48
  * combines with the stock scripts and only steps aside for a script somebody
49
49
  * wrote themselves.
50
50
  */
51
+ /**
52
+ * Another of the lockstep packages, at the same version as the engine: the
53
+ * same range, or - for a local checkout - its folder beside packages/core.
54
+ */
55
+ export function sibling(core, dir) {
56
+ return core.startsWith('file:') ? core.replace(/packages[\\/]core\/?$/, `packages/${dir}`) : core;
57
+ }
51
58
  export function scripts(o) {
52
59
  if (o.host === 'laravel') {
53
60
  return {
@@ -154,6 +161,14 @@ export function packageJson(o) {
154
161
  // and the build fails on a specifier nothing in the app depends on.
155
162
  '@vitejs/plugin-rsc': '^0.5.34',
156
163
  };
164
+ // The CLI and the MCP server, at the engine's own version. Not installed,
165
+ // bunx and npx fetched the newest of each: rsc-kit agents wrote a newer
166
+ // version's rules into AGENTS.md, the MCP server answered how_to and rules
167
+ // for features this app does not have, and rsc-kit info described a build
168
+ // the installed engine would not make. Installed, the local copy runs, and
169
+ // upgrading rsc-kit upgrades all three together.
170
+ dev['rsc-kit'] = sibling(o.core, 'cli');
171
+ dev['@rsc-kit/mcp'] = sibling(o.core, 'mcp');
157
172
  if (o.host !== 'node')
158
173
  dev['@types/bun'] = '^1.4.0';
159
174
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsc-kit",
3
- "version": "0.29.6",
3
+ "version": "0.29.7",
4
4
  "type": "module",
5
5
  "description": "Scaffold an RSC app on Bun, Hono, Elysia or Node.",
6
6
  "bin": {