@nowline/cli 0.9.0 → 0.10.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/dist/cli/help.js +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +2 -1
- package/dist/commands/mcp.js.map +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.d.ts.map +1 -1
- package/dist/generated/version.js +2 -2
- package/dist/generated/version.js.map +1 -1
- package/man/fr/nowline.1 +5 -3
- package/man/nowline.1 +4 -2
- package/package.json +14 -14
- package/src/cli/help.ts +1 -1
- package/src/commands/mcp.ts +2 -1
- package/src/generated/version.ts +2 -2
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
|
|
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,
|
|
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"}
|
package/dist/commands/mcp.js
CHANGED
|
@@ -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
|
-
|
|
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);
|
package/dist/commands/mcp.js.map
CHANGED
|
@@ -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,
|
|
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;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CAAC,CAAC,CAAC;IACP,CAAC;SAAM,CAAC;QACJ,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;QAC7C,MAAM,eAAe,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAChE,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;YAChC,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;QAChC,CAAC,CAAC,CAAC;IACP,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,MAAM,WAAW,QAAQ;IACrB,wEAAwE;IACxE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,4DAA4D;IAC5D,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,SAAS,EAAE,QAIvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC;AAWpC,MAAM,CAAC,MAAM,SAAS,GAAa;IAC/B,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,KAAK;CACnB,CAAC"}
|
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:
|
|
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
|
|
443
|
-
|
|
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
|
|
421
|
-
|
|
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.
|
|
3
|
+
"version": "0.10.0",
|
|
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.
|
|
37
|
-
"@nowline/core": "0.
|
|
38
|
-
"@nowline/export": "0.
|
|
39
|
-
"@nowline/export-core": "0.
|
|
40
|
-
"@nowline/export-html": "0.
|
|
41
|
-
"@nowline/export-mermaid": "0.
|
|
42
|
-
"@nowline/export-msproj": "0.
|
|
43
|
-
"@nowline/export-pdf": "0.
|
|
44
|
-
"@nowline/export-png": "0.
|
|
45
|
-
"@nowline/export-xlsx": "0.
|
|
46
|
-
"@nowline/layout": "0.
|
|
47
|
-
"@nowline/mcp": "0.
|
|
48
|
-
"@nowline/renderer": "0.
|
|
36
|
+
"@nowline/config": "0.10.0",
|
|
37
|
+
"@nowline/core": "0.10.0",
|
|
38
|
+
"@nowline/export": "0.10.0",
|
|
39
|
+
"@nowline/export-core": "0.10.0",
|
|
40
|
+
"@nowline/export-html": "0.10.0",
|
|
41
|
+
"@nowline/export-mermaid": "0.10.0",
|
|
42
|
+
"@nowline/export-msproj": "0.10.0",
|
|
43
|
+
"@nowline/export-pdf": "0.10.0",
|
|
44
|
+
"@nowline/export-png": "0.10.0",
|
|
45
|
+
"@nowline/export-xlsx": "0.10.0",
|
|
46
|
+
"@nowline/layout": "0.10.0",
|
|
47
|
+
"@nowline/mcp": "0.10.0",
|
|
48
|
+
"@nowline/renderer": "0.10.0",
|
|
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
|
|
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
|
package/src/commands/mcp.ts
CHANGED
|
@@ -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
|
-
|
|
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) {
|
package/src/generated/version.ts
CHANGED
|
@@ -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.
|
|
3
|
+
export const CLI_VERSION = "0.10.0";
|
|
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": "
|
|
15
|
+
"sha": "b869f72",
|
|
16
16
|
"isRelease": true,
|
|
17
17
|
"isDirty": false
|
|
18
18
|
};
|