@nowline/cli 0.0.0-dev.20261024002016.g23feb2a → 0.0.0-dev.20261024220201.gcf97dae

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/cli/help.js CHANGED
@@ -143,7 +143,7 @@ EXAMPLES
143
143
  nowline roadmap.nowline --dry-run # validate-only
144
144
  nowline roadmap.nowline --serve -p 8080 # live preview
145
145
  nowline --init my-project # scaffold ./my-project.nowline
146
- nowline --mcp # start MCP stdio server in cwd
146
+ nowline --mcp # start MCP stdio server
147
147
  nowline --mcp --root ./roadmaps # MCP server with custom root
148
148
  nowline --mcp-install # register with every agent found
149
149
  nowline --mcp-install cursor --scope project -n # preview .cursor/mcp.json
@@ -1 +1 @@
1
- {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD;;;;;;;;;;;GAWG;AACH,wBAAsB,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAiC9E"}
1
+ {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD;;;;;;;;;;;GAWG;AACH,wBAAsB,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAkC9E"}
@@ -16,7 +16,8 @@ import { createLog } from '../io/log.js';
16
16
  * Runs until the process receives SIGINT/SIGTERM or the client closes stdin.
17
17
  */
18
18
  export async function mcpHandler({ args }) {
19
- const root = args.root ?? process.cwd();
19
+ // Without --root the server follows the client's MCP roots, else cwd.
20
+ const root = args.root;
20
21
  const portStr = args.port;
21
22
  if (portStr !== undefined) {
22
23
  const port = parseInt(portStr, 10);
@@ -1 +1 @@
1
- {"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAAE,IAAI,EAAwB;IAC3D,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAExC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC;IAC1B,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACnC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,KAAK,EAAE,CAAC;YACrD,MAAM,IAAI,KAAK,CACX,6DAA6D,OAAO,IAAI,CAC3E,CAAC;QACN,CAAC;QAED,MAAM,UAAU,GAAG,YAAY,CAC3B,oBAAoB,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CACrE,CAAC;QAEF,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;YAChC,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE;gBACtC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAC3B,8D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const CLI_VERSION = "0.0.0-dev.20261024002016.g23feb2a";
1
+ export declare const CLI_VERSION = "0.0.0-dev.20261024220201.gcf97dae";
2
2
  export interface CliBuild {
3
3
  /** Short git SHA at build time, or empty when not in a git checkout. */
4
4
  readonly sha: string;
@@ -1,7 +1,7 @@
1
1
  // Auto-generated by scripts/bundle-templates.mjs. Do not edit by hand.
2
- export const CLI_VERSION = "0.0.0-dev.20261024002016.g23feb2a";
2
+ export const CLI_VERSION = "0.0.0-dev.20261024220201.gcf97dae";
3
3
  export const CLI_BUILD = {
4
- "sha": "23feb2a",
4
+ "sha": "cf97dae",
5
5
  "isRelease": false,
6
6
  "isDirty": true
7
7
  };
package/man/fr/nowline.1 CHANGED
@@ -5,7 +5,7 @@
5
5
  .\" Empreinte de la page anglaise relue pour cette traduction. Après avoir
6
6
  .\" reporté une modification de la page anglaise, remplacez-la par la ligne
7
7
  .\" qu'affiche packages/cli/test/man/translation-parity.test.ts.
8
- .\" translated-from: nowline.1 sha256:3fc6d77fadcf4ba2add7f127da8cff257262ed010f253a1b0a0e7801b56f0d4f
8
+ .\" translated-from: nowline.1 sha256:032668f06f1c5fa404d9e94021ed15b045372a5d155f3eac56cec4daffaf6630
9
9
  .Dd $Mdocdate$
10
10
  .Dt NOWLINE 1
11
11
  .Os
@@ -439,8 +439,10 @@ Ouvre le navigateur au démarrage.
439
439
  .Sh OPTIONS MCP
440
440
  .Bl -tag -width Fl
441
441
  .It Fl -root Ar rép
442
- Répertoire que les outils de fichiers MCP peuvent lire et écrire (par
443
- défaut\ : le répertoire courant).
442
+ Répertoire que les outils de fichiers MCP peuvent lire et écrire.
443
+ Sans cette option, le serveur utilise les racines que le client annonce
444
+ via MCP (les chemins relatifs sont résolus par rapport à la première), ou
445
+ le répertoire courant si le client n'en annonce aucune.
444
446
  Avec
445
447
  .Fl -mcp-install ,
446
448
  il est inscrit dans la commande enregistrée sous forme de chemin absolu.
package/man/nowline.1 CHANGED
@@ -417,8 +417,10 @@ Open the browser on start.
417
417
  .Sh MCP OPTIONS
418
418
  .Bl -tag -width Fl
419
419
  .It Fl -root Ar dir
420
- Directory the MCP file tools may read and write (default: the current
421
- directory).
420
+ Directory the MCP file tools may read and write.
421
+ Without it, the server uses the roots the client advertises over MCP
422
+ (relative paths resolve against the first), or the current directory
423
+ when the client has none.
422
424
  With
423
425
  .Fl -mcp-install ,
424
426
  it is written into the registered command as an absolute path.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nowline/cli",
3
- "version": "0.0.0-dev.20261024002016.g23feb2a",
3
+ "version": "0.0.0-dev.20261024220201.gcf97dae",
4
4
  "description": "Command-line tool to check, convert, and create Nowline roadmaps.",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -33,19 +33,19 @@
33
33
  "@babel/code-frame": "^8.0.6",
34
34
  "@clack/prompts": "^1.8.1",
35
35
  "@modelcontextprotocol/server": "^2.3.1",
36
- "@nowline/config": "0.0.0-dev.20261024002016.g23feb2a",
37
- "@nowline/core": "0.0.0-dev.20261024002016.g23feb2a",
38
- "@nowline/export": "0.0.0-dev.20261024002016.g23feb2a",
39
- "@nowline/export-core": "0.0.0-dev.20261024002016.g23feb2a",
40
- "@nowline/export-html": "0.0.0-dev.20261024002016.g23feb2a",
41
- "@nowline/export-mermaid": "0.0.0-dev.20261024002016.g23feb2a",
42
- "@nowline/export-msproj": "0.0.0-dev.20261024002016.g23feb2a",
43
- "@nowline/export-pdf": "0.0.0-dev.20261024002016.g23feb2a",
44
- "@nowline/export-png": "0.0.0-dev.20261024002016.g23feb2a",
45
- "@nowline/export-xlsx": "0.0.0-dev.20261024002016.g23feb2a",
46
- "@nowline/layout": "0.0.0-dev.20261024002016.g23feb2a",
47
- "@nowline/mcp": "0.0.0-dev.20261024002016.g23feb2a",
48
- "@nowline/renderer": "0.0.0-dev.20261024002016.g23feb2a",
36
+ "@nowline/config": "0.0.0-dev.20261024220201.gcf97dae",
37
+ "@nowline/core": "0.0.0-dev.20261024220201.gcf97dae",
38
+ "@nowline/export": "0.0.0-dev.20261024220201.gcf97dae",
39
+ "@nowline/export-core": "0.0.0-dev.20261024220201.gcf97dae",
40
+ "@nowline/export-html": "0.0.0-dev.20261024220201.gcf97dae",
41
+ "@nowline/export-mermaid": "0.0.0-dev.20261024220201.gcf97dae",
42
+ "@nowline/export-msproj": "0.0.0-dev.20261024220201.gcf97dae",
43
+ "@nowline/export-pdf": "0.0.0-dev.20261024220201.gcf97dae",
44
+ "@nowline/export-png": "0.0.0-dev.20261024220201.gcf97dae",
45
+ "@nowline/export-xlsx": "0.0.0-dev.20261024220201.gcf97dae",
46
+ "@nowline/layout": "0.0.0-dev.20261024220201.gcf97dae",
47
+ "@nowline/mcp": "0.0.0-dev.20261024220201.gcf97dae",
48
+ "@nowline/renderer": "0.0.0-dev.20261024220201.gcf97dae",
49
49
  "chalk": "^6.0.1",
50
50
  "citty": "^0.2.2",
51
51
  "consola": "^3.4.2",
package/src/cli/help.ts CHANGED
@@ -144,7 +144,7 @@ EXAMPLES
144
144
  nowline roadmap.nowline --dry-run # validate-only
145
145
  nowline roadmap.nowline --serve -p 8080 # live preview
146
146
  nowline --init my-project # scaffold ./my-project.nowline
147
- nowline --mcp # start MCP stdio server in cwd
147
+ nowline --mcp # start MCP stdio server
148
148
  nowline --mcp --root ./roadmaps # MCP server with custom root
149
149
  nowline --mcp-install # register with every agent found
150
150
  nowline --mcp-install cursor --scope project -n # preview .cursor/mcp.json
@@ -18,7 +18,8 @@ import { createLog } from '../io/log.js';
18
18
  * Runs until the process receives SIGINT/SIGTERM or the client closes stdin.
19
19
  */
20
20
  export async function mcpHandler({ args }: { args: ParsedArgs }): Promise<void> {
21
- const root = args.root ?? process.cwd();
21
+ // Without --root the server follows the client's MCP roots, else cwd.
22
+ const root = args.root;
22
23
 
23
24
  const portStr = args.port;
24
25
  if (portStr !== undefined) {
@@ -1,6 +1,6 @@
1
1
  // Auto-generated by scripts/bundle-templates.mjs. Do not edit by hand.
2
2
 
3
- export const CLI_VERSION = "0.0.0-dev.20261024002016.g23feb2a";
3
+ export const CLI_VERSION = "0.0.0-dev.20261024220201.gcf97dae";
4
4
 
5
5
  export interface CliBuild {
6
6
  /** Short git SHA at build time, or empty when not in a git checkout. */
@@ -12,7 +12,7 @@ export interface CliBuild {
12
12
  }
13
13
 
14
14
  export const CLI_BUILD: CliBuild = {
15
- "sha": "23feb2a",
15
+ "sha": "cf97dae",
16
16
  "isRelease": false,
17
17
  "isDirty": true
18
18
  };