create-nifra 1.0.0-beta.3 → 1.0.0-beta.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/dist/agent-files.d.ts +14 -1
- package/dist/agent-files.d.ts.map +1 -1
- package/dist/agent-files.js +14 -1
- package/dist/agent-files.js.map +1 -1
- package/package.json +1 -1
- package/template/package.json +3 -3
- package/template-isr/package.json +5 -5
- package/template-site/package.json +8 -8
- package/template-site-preact/package.json +8 -8
- package/template-site-solid/package.json +8 -8
- package/template-site-svelte/package.json +8 -8
- package/template-site-vue/package.json +8 -8
package/dist/agent-files.d.ts
CHANGED
|
@@ -24,7 +24,20 @@
|
|
|
24
24
|
/** The MCP launch command, shared by `.mcp.json` and `.cursor/mcp.json`. See the module header for why
|
|
25
25
|
* the package is named explicitly rather than relying on the bare `nifra` bin. */
|
|
26
26
|
export declare const MCP_SERVER_COMMAND: "bunx";
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* The `@nifrajs/cli` version the launch command pins to. Kept in lockstep with the published
|
|
29
|
+
* `@nifrajs/cli` version by `scripts/version.ts` (alongside the cli.ts / mcp-http.ts constants).
|
|
30
|
+
*
|
|
31
|
+
* Why pin at all instead of `bunx @nifrajs/cli mcp`: `bunx` keys its cache on the exact version spec.
|
|
32
|
+
* An UNPINNED spec resolves to the `latest` tag once, then `bunx` reuses that cached copy on every
|
|
33
|
+
* later spawn WITHOUT re-checking the registry — so an editor that once launched an older `@nifrajs/cli`
|
|
34
|
+
* keeps respawning the stale binary even after a newer one is published (the MCP server silently runs
|
|
35
|
+
* old code). Pinning the exact version makes the version part of the cache key, so each release fetches
|
|
36
|
+
* fresh and a stale cache can never shadow it. The cost: an already-scaffolded app's `.mcp.json` freezes
|
|
37
|
+
* at its scaffold-time version until `nifra init-agents` is re-run — an acceptable, deterministic trade.
|
|
38
|
+
*/
|
|
39
|
+
export declare const MCP_CLI_VERSION: "1.0.0-beta.4";
|
|
40
|
+
export declare const MCP_SERVER_ARGS: readonly ["@nifrajs/cli@1.0.0-beta.4", "mcp"];
|
|
28
41
|
/** The server entry registered under the `nifra` key in both Claude Code's and Cursor's MCP config. */
|
|
29
42
|
export interface McpServerConfig {
|
|
30
43
|
readonly command: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-files.d.ts","sourceRoot":"","sources":["../src/agent-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;kFACkF;AAClF,eAAO,MAAM,kBAAkB,EAAG,MAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"agent-files.d.ts","sourceRoot":"","sources":["../src/agent-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;kFACkF;AAClF,eAAO,MAAM,kBAAkB,EAAG,MAAe,CAAA;AAEjD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAG,cAAuB,CAAA;AACtD,eAAO,MAAM,eAAe,+CAAsD,CAAA;AAElF,uGAAuG;AACvG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;CACjC;AAED,mFAAmF;AACnF,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAA;CAC/D;AAED,2FAA2F;AAC3F,eAAO,MAAM,UAAU,EAAE,SAIxB,CAAA;AAED;qFACqF;AACrF,wBAAgB,OAAO,IAAI,MAAM,CAEhC;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,IAAI,MAAM,CAoBjC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAYzC;AAED;4GAC4G;AAC5G,MAAM,WAAW,aAAa;IAC5B,sFAAsF;IACtF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED;uGACuG;AACvG,eAAO,MAAM,aAAa,cAAc,CAAA;AACxC,eAAO,MAAM,oBAAoB,qBAAqB,CAAA;AACtD,eAAO,MAAM,cAAc,cAAc,CAAA;AACzC,eAAO,MAAM,cAAc,cAAc,CAAA"}
|
package/dist/agent-files.js
CHANGED
|
@@ -24,7 +24,20 @@
|
|
|
24
24
|
/** The MCP launch command, shared by `.mcp.json` and `.cursor/mcp.json`. See the module header for why
|
|
25
25
|
* the package is named explicitly rather than relying on the bare `nifra` bin. */
|
|
26
26
|
export const MCP_SERVER_COMMAND = "bunx";
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* The `@nifrajs/cli` version the launch command pins to. Kept in lockstep with the published
|
|
29
|
+
* `@nifrajs/cli` version by `scripts/version.ts` (alongside the cli.ts / mcp-http.ts constants).
|
|
30
|
+
*
|
|
31
|
+
* Why pin at all instead of `bunx @nifrajs/cli mcp`: `bunx` keys its cache on the exact version spec.
|
|
32
|
+
* An UNPINNED spec resolves to the `latest` tag once, then `bunx` reuses that cached copy on every
|
|
33
|
+
* later spawn WITHOUT re-checking the registry — so an editor that once launched an older `@nifrajs/cli`
|
|
34
|
+
* keeps respawning the stale binary even after a newer one is published (the MCP server silently runs
|
|
35
|
+
* old code). Pinning the exact version makes the version part of the cache key, so each release fetches
|
|
36
|
+
* fresh and a stale cache can never shadow it. The cost: an already-scaffolded app's `.mcp.json` freezes
|
|
37
|
+
* at its scaffold-time version until `nifra init-agents` is re-run — an acceptable, deterministic trade.
|
|
38
|
+
*/
|
|
39
|
+
export const MCP_CLI_VERSION = "1.0.0-beta.4";
|
|
40
|
+
export const MCP_SERVER_ARGS = [`@nifrajs/cli@${MCP_CLI_VERSION}`, "mcp"];
|
|
28
41
|
/** The one canonical MCP config object both registries serialize — the anti-drift seam. */
|
|
29
42
|
export const MCP_CONFIG = {
|
|
30
43
|
mcpServers: {
|
package/dist/agent-files.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-files.js","sourceRoot":"","sources":["../src/agent-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;kFACkF;AAClF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"agent-files.js","sourceRoot":"","sources":["../src/agent-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;kFACkF;AAClF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAe,CAAA;AAEjD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,cAAuB,CAAA;AACtD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,gBAAgB,eAAe,EAAE,EAAE,KAAK,CAAU,CAAA;AAalF,2FAA2F;AAC3F,MAAM,CAAC,MAAM,UAAU,GAAc;IACnC,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,GAAG,eAAe,CAAC,EAAE;KACnE;CACF,CAAA;AAED;qFACqF;AACrF,MAAM,UAAU,OAAO;IACrB,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAA;AACnD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO;;;IAGL,kBAAkB,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;CAelD,CAAA;AACD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;+DAEsD,kBAAkB,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC;;;;;;;;2FAQnB,CAAA;AAC3F,CAAC;AAWD;uGACuG;AACvG,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAA;AACxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,kBAAkB,CAAA;AACtD,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAA;AACzC,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAA"}
|
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"typecheck": "tsc --noEmit"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@nifrajs/client": "^
|
|
14
|
-
"@nifrajs/core": "^
|
|
15
|
-
"@nifrajs/schema": "^
|
|
13
|
+
"@nifrajs/client": "^1.0.0-beta.3",
|
|
14
|
+
"@nifrajs/core": "^1.0.0-beta.3",
|
|
15
|
+
"@nifrajs/schema": "^1.0.0-beta.3"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/bun": "latest",
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"dev:bun": "bun run server.ts"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@nifrajs/client": "^
|
|
13
|
-
"@nifrajs/core": "^
|
|
14
|
-
"@nifrajs/schema": "^
|
|
15
|
-
"@nifrajs/web": "^
|
|
16
|
-
"@nifrajs/web-react": "^
|
|
12
|
+
"@nifrajs/client": "^1.0.0-beta.3",
|
|
13
|
+
"@nifrajs/core": "^1.0.0-beta.3",
|
|
14
|
+
"@nifrajs/schema": "^1.0.0-beta.3",
|
|
15
|
+
"@nifrajs/web": "^1.0.0-beta.3",
|
|
16
|
+
"@nifrajs/web-react": "^1.0.0-beta.3",
|
|
17
17
|
"react": "^19.0.0",
|
|
18
18
|
"react-dom": "^19.0.0"
|
|
19
19
|
},
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
"deploy:vercel": "vercel deploy --prebuilt"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@nifrajs/client": "^
|
|
21
|
-
"@nifrajs/core": "^
|
|
22
|
-
"@nifrajs/schema": "^
|
|
23
|
-
"@nifrajs/deno": "^
|
|
24
|
-
"@nifrajs/node": "^
|
|
25
|
-
"@nifrajs/web": "^
|
|
26
|
-
"@nifrajs/web-react": "^
|
|
20
|
+
"@nifrajs/client": "^1.0.0-beta.3",
|
|
21
|
+
"@nifrajs/core": "^1.0.0-beta.3",
|
|
22
|
+
"@nifrajs/schema": "^1.0.0-beta.3",
|
|
23
|
+
"@nifrajs/deno": "^1.0.0-beta.3",
|
|
24
|
+
"@nifrajs/node": "^1.0.0-beta.3",
|
|
25
|
+
"@nifrajs/web": "^1.0.0-beta.3",
|
|
26
|
+
"@nifrajs/web-react": "^1.0.0-beta.3",
|
|
27
27
|
"react": "^19.0.0",
|
|
28
28
|
"react-dom": "^19.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/react": "^19.0.0",
|
|
32
32
|
"@types/react-dom": "^19.0.0",
|
|
33
|
-
"@nifrajs/cli": "^
|
|
33
|
+
"@nifrajs/cli": "^1.0.0-beta.3",
|
|
34
34
|
"@vitejs/plugin-react": "^4.3.0",
|
|
35
35
|
"typescript": "^6.0.3",
|
|
36
36
|
"vite": "^8.0.0"
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"deploy:vercel": "vercel deploy --prebuilt"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@nifrajs/client": "^
|
|
21
|
-
"@nifrajs/core": "^
|
|
22
|
-
"@nifrajs/schema": "^
|
|
23
|
-
"@nifrajs/deno": "^
|
|
24
|
-
"@nifrajs/node": "^
|
|
25
|
-
"@nifrajs/web": "^
|
|
26
|
-
"@nifrajs/web-preact": "^
|
|
20
|
+
"@nifrajs/client": "^1.0.0-beta.3",
|
|
21
|
+
"@nifrajs/core": "^1.0.0-beta.3",
|
|
22
|
+
"@nifrajs/schema": "^1.0.0-beta.3",
|
|
23
|
+
"@nifrajs/deno": "^1.0.0-beta.3",
|
|
24
|
+
"@nifrajs/node": "^1.0.0-beta.3",
|
|
25
|
+
"@nifrajs/web": "^1.0.0-beta.3",
|
|
26
|
+
"@nifrajs/web-preact": "^1.0.0-beta.3",
|
|
27
27
|
"preact": "^10.25.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@preact/preset-vite": "^2.9.0",
|
|
31
|
-
"@nifrajs/cli": "^
|
|
31
|
+
"@nifrajs/cli": "^1.0.0-beta.3",
|
|
32
32
|
"typescript": "^6.0.3",
|
|
33
33
|
"vite": "^8.0.0"
|
|
34
34
|
}
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"deploy:vercel": "vercel deploy --prebuilt"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@nifrajs/client": "^
|
|
21
|
-
"@nifrajs/core": "^
|
|
22
|
-
"@nifrajs/schema": "^
|
|
23
|
-
"@nifrajs/deno": "^
|
|
24
|
-
"@nifrajs/node": "^
|
|
25
|
-
"@nifrajs/web": "^
|
|
26
|
-
"@nifrajs/web-solid": "^
|
|
20
|
+
"@nifrajs/client": "^1.0.0-beta.3",
|
|
21
|
+
"@nifrajs/core": "^1.0.0-beta.3",
|
|
22
|
+
"@nifrajs/schema": "^1.0.0-beta.3",
|
|
23
|
+
"@nifrajs/deno": "^1.0.0-beta.3",
|
|
24
|
+
"@nifrajs/node": "^1.0.0-beta.3",
|
|
25
|
+
"@nifrajs/web": "^1.0.0-beta.3",
|
|
26
|
+
"@nifrajs/web-solid": "^1.0.0-beta.3",
|
|
27
27
|
"solid-js": "^1.9.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@nifrajs/cli": "^
|
|
30
|
+
"@nifrajs/cli": "^1.0.0-beta.3",
|
|
31
31
|
"typescript": "^6.0.3",
|
|
32
32
|
"vite": "^8.0.0",
|
|
33
33
|
"vite-plugin-solid": "^2.10.0"
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"deploy:vercel": "vercel deploy --prebuilt"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@nifrajs/client": "^
|
|
21
|
-
"@nifrajs/core": "^
|
|
22
|
-
"@nifrajs/schema": "^
|
|
23
|
-
"@nifrajs/deno": "^
|
|
24
|
-
"@nifrajs/node": "^
|
|
25
|
-
"@nifrajs/web": "^
|
|
26
|
-
"@nifrajs/web-svelte": "^
|
|
20
|
+
"@nifrajs/client": "^1.0.0-beta.3",
|
|
21
|
+
"@nifrajs/core": "^1.0.0-beta.3",
|
|
22
|
+
"@nifrajs/schema": "^1.0.0-beta.3",
|
|
23
|
+
"@nifrajs/deno": "^1.0.0-beta.3",
|
|
24
|
+
"@nifrajs/node": "^1.0.0-beta.3",
|
|
25
|
+
"@nifrajs/web": "^1.0.0-beta.3",
|
|
26
|
+
"@nifrajs/web-svelte": "^1.0.0-beta.3",
|
|
27
27
|
"svelte": "^5.3.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
|
31
|
-
"@nifrajs/cli": "^
|
|
31
|
+
"@nifrajs/cli": "^1.0.0-beta.3",
|
|
32
32
|
"typescript": "^6.0.3",
|
|
33
33
|
"vite": "^8.0.0"
|
|
34
34
|
}
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"deploy:vercel": "vercel deploy --prebuilt"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@nifrajs/client": "^
|
|
21
|
-
"@nifrajs/core": "^
|
|
22
|
-
"@nifrajs/schema": "^
|
|
23
|
-
"@nifrajs/deno": "^
|
|
24
|
-
"@nifrajs/node": "^
|
|
25
|
-
"@nifrajs/web": "^
|
|
26
|
-
"@nifrajs/web-vue": "^
|
|
20
|
+
"@nifrajs/client": "^1.0.0-beta.3",
|
|
21
|
+
"@nifrajs/core": "^1.0.0-beta.3",
|
|
22
|
+
"@nifrajs/schema": "^1.0.0-beta.3",
|
|
23
|
+
"@nifrajs/deno": "^1.0.0-beta.3",
|
|
24
|
+
"@nifrajs/node": "^1.0.0-beta.3",
|
|
25
|
+
"@nifrajs/web": "^1.0.0-beta.3",
|
|
26
|
+
"@nifrajs/web-vue": "^1.0.0-beta.3",
|
|
27
27
|
"vue": "^3.5.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@nifrajs/cli": "^
|
|
30
|
+
"@nifrajs/cli": "^1.0.0-beta.3",
|
|
31
31
|
"@vitejs/plugin-vue": "^5.2.0",
|
|
32
32
|
"@vue/compiler-sfc": "^3.5.0",
|
|
33
33
|
"typescript": "^6.0.3",
|