@needmoretruth/nmts-cli 0.52.3 → 0.53.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/CHANGELOG.md +7 -0
- package/README.ko.md +4 -1
- package/README.md +4 -1
- package/dist/artifact-about.d.ts +1 -1
- package/dist/client-id.d.ts +1 -1
- package/dist/client-id.js +1 -1
- package/dist/exit.d.ts +14 -0
- package/dist/exit.js +31 -1
- package/dist/main.js +2 -2
- package/dist/product.d.ts +6 -1
- package/dist/product.js +6 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
Each version's entry is what changed for the person or the program using `nmts`. The product's own
|
|
4
4
|
update history, which covers the site and the server too, is at https://nmts.me/updates.
|
|
5
5
|
|
|
6
|
+
## 0.53.0 — 2026-11-08
|
|
7
|
+
|
|
8
|
+
- A command that fails for a reason other than how it was typed now ends its error with one line
|
|
9
|
+
that points to the NMTS Discord: `Stuck? Ask in the NMTS Discord: https://discord.gg/HtrUwhb2Mz
|
|
10
|
+
(the developer answers in English and Korean)`. Usage errors, `--json` output and `nmts mcp` do
|
|
11
|
+
not get it, and every error sentence and exit code is as before.
|
|
12
|
+
|
|
6
13
|
## 0.52.3 — 2026-11-08
|
|
7
14
|
|
|
8
15
|
- The crypto engine uses ml-dsa 0.1.2, whose key generation no longer branches on secret values.
|
package/README.ko.md
CHANGED
|
@@ -50,7 +50,7 @@ nmts --help
|
|
|
50
50
|
|
|
51
51
|
```sh
|
|
52
52
|
npm install -g github:needmoretruth/nmts-cli # 기본 브랜치
|
|
53
|
-
npm install -g github:needmoretruth/nmts-cli#v0.
|
|
53
|
+
npm install -g github:needmoretruth/nmts-cli#v0.53.0 # 버전을 고정할 때
|
|
54
54
|
npm install -g https://github.com/needmoretruth/nmts-cli/releases/latest/download/nmts.tgz
|
|
55
55
|
```
|
|
56
56
|
|
|
@@ -560,6 +560,9 @@ auto 모드 둘에서 거절됩니다. 모드가 켜져 있는 동안 모든 명
|
|
|
560
560
|
|
|
561
561
|
도구 자체가 돌지 않으면 **nmts@nmts.me**로, 무엇을 돌렸고 무엇이 찍혔는지 적어 보내십시오.
|
|
562
562
|
|
|
563
|
+
공개된 곳에서 묻고 싶으면, 실패한 명령 끝에 나오는 NMTS 디스코드 링크로 오십시오. 개발자가 영어와
|
|
564
|
+
한국어로 답합니다: https://discord.gg/HtrUwhb2Mz
|
|
565
|
+
|
|
563
566
|
## 이 위에 만드셨습니까?
|
|
564
567
|
|
|
565
568
|
이 코드 위에 무엇을 만드셨다면 — 서비스, 포크, 다른 언어로의 이식, 더 가벼운 클라이언트 —
|
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ default branch, from a pinned version, or from the tarball attached to the
|
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
npm install -g github:needmoretruth/nmts-cli # the default branch
|
|
54
|
-
npm install -g github:needmoretruth/nmts-cli#v0.
|
|
54
|
+
npm install -g github:needmoretruth/nmts-cli#v0.53.0 # a pinned version
|
|
55
55
|
npm install -g https://github.com/needmoretruth/nmts-cli/releases/latest/download/nmts.tgz
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -606,6 +606,9 @@ preferred; Korean is read too.
|
|
|
606
606
|
|
|
607
607
|
If the tool itself cannot run, write to **nmts@nmts.me** with what you ran and what it said.
|
|
608
608
|
|
|
609
|
+
To ask in public instead, a failed command ends with a link to the NMTS Discord, where the developer
|
|
610
|
+
answers in English and Korean: https://discord.gg/HtrUwhb2Mz
|
|
611
|
+
|
|
609
612
|
## Built on this?
|
|
610
613
|
|
|
611
614
|
If you built something on this code — a service, a fork, a port to another language, a lighter
|
package/dist/artifact-about.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const CRYPTO_SPEC_URL = "https://github.com/needmoretruth/nmts-re
|
|
|
11
11
|
* is the field's own contract — what the writer says about itself — and a person holding two
|
|
12
12
|
* copies of one account's artefacts can then tell which program made each.
|
|
13
13
|
*/
|
|
14
|
-
export declare const WRITTEN_BY = "nmts-cli 0.
|
|
14
|
+
export declare const WRITTEN_BY = "nmts-cli 0.53.0";
|
|
15
15
|
/** Which of the three artefacts a wrapper is. A reader holding several can sort them. */
|
|
16
16
|
export type ArtifactKind = "recovery-list" | "file-list" | "recovery-kit";
|
|
17
17
|
/**
|
package/dist/client-id.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export type ClientKind = "cli" | "mcp" | "sdk";
|
|
|
7
7
|
* points with `"sdk"` and the SDK's own version.
|
|
8
8
|
*/
|
|
9
9
|
export declare function identifyClient(next: ClientKind, nextVersion?: string): void;
|
|
10
|
-
/** `cli/0.
|
|
10
|
+
/** `cli/0.53.0`, `mcp/0.53.0`, `sdk/0.17.0`. */
|
|
11
11
|
export declare function clientHeaderValue(): string;
|
package/dist/client-id.js
CHANGED
|
@@ -24,7 +24,7 @@ export function identifyClient(next, nextVersion = VERSION) {
|
|
|
24
24
|
kind = next;
|
|
25
25
|
version = nextVersion;
|
|
26
26
|
}
|
|
27
|
-
/** `cli/0.
|
|
27
|
+
/** `cli/0.53.0`, `mcp/0.53.0`, `sdk/0.17.0`. */
|
|
28
28
|
export function clientHeaderValue() {
|
|
29
29
|
return `${kind}/${version}`;
|
|
30
30
|
}
|
package/dist/exit.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
/** The exit code a failure asks for, or the generic one. */
|
|
2
2
|
export declare function exitCodeFor(error: unknown): number;
|
|
3
|
+
/** The last line of a failure a person could be stuck on (owner 2026-11-07 · E2, E3). */
|
|
4
|
+
export declare const STUCK_LINE = "Stuck? Ask in the NMTS Discord: https://discord.gg/HtrUwhb2Mz (the developer answers in English and Korean)";
|
|
5
|
+
/**
|
|
6
|
+
* What follows the rendered failure on stderr: {@link STUCK_LINE} and a newline, or nothing.
|
|
7
|
+
*
|
|
8
|
+
* ⛔ NOT UNDER THE CALLER'S OWN INPUT. A mistyped command or option, a key in the wrong shape (2),
|
|
9
|
+
* no key on this machine (3), an agreement still to give (5), a cancel (130) and an announced
|
|
10
|
+
* but unbuilt command each name the next keystroke; "stuck?" would be the wrong sentence there.
|
|
11
|
+
* What is left is 1 (something went wrong) and 4 (it could not be done), and unknown failures.
|
|
12
|
+
* ⛔ NOT IN A MODE THAT PRINTS JSON (`--json`, `mcp`): whatever reads that output parses it, and a
|
|
13
|
+
* sentence is not part of the contract. A command line that cannot be read is a usage error.
|
|
14
|
+
* ⛔ `renderError` STAYS AS IT WAS: the MCP server returns its text to an agent as the tool result.
|
|
15
|
+
*/
|
|
16
|
+
export declare function stuckLineFor(error: unknown, argv: readonly string[]): string;
|
|
3
17
|
/**
|
|
4
18
|
* Stop a closed pipe from becoming a crash.
|
|
5
19
|
*
|
package/dist/exit.js
CHANGED
|
@@ -8,13 +8,43 @@
|
|
|
8
8
|
// one, whether it was the program at all, and the last line it prints.
|
|
9
9
|
import { realpathSync } from "node:fs";
|
|
10
10
|
import { parseArgs } from "./args.js";
|
|
11
|
-
import { NmtsError, UNKNOWN_FAILURE_EXIT } from "./errors.js";
|
|
11
|
+
import { NmtsError, NotBuiltYetError, UNKNOWN_FAILURE_EXIT } from "./errors.js";
|
|
12
|
+
import { DISCORD_HELP_URL } from "./product.js";
|
|
12
13
|
/** The exit code a failure asks for, or the generic one. */
|
|
13
14
|
export function exitCodeFor(error) {
|
|
14
15
|
if (error instanceof NmtsError)
|
|
15
16
|
return error.exitCode;
|
|
16
17
|
return UNKNOWN_FAILURE_EXIT;
|
|
17
18
|
}
|
|
19
|
+
/** The last line of a failure a person could be stuck on (owner 2026-11-07 · E2, E3). */
|
|
20
|
+
export const STUCK_LINE = `Stuck? Ask in the NMTS Discord: ${DISCORD_HELP_URL} (the developer answers in English and Korean)`;
|
|
21
|
+
/**
|
|
22
|
+
* What follows the rendered failure on stderr: {@link STUCK_LINE} and a newline, or nothing.
|
|
23
|
+
*
|
|
24
|
+
* ⛔ NOT UNDER THE CALLER'S OWN INPUT. A mistyped command or option, a key in the wrong shape (2),
|
|
25
|
+
* no key on this machine (3), an agreement still to give (5), a cancel (130) and an announced
|
|
26
|
+
* but unbuilt command each name the next keystroke; "stuck?" would be the wrong sentence there.
|
|
27
|
+
* What is left is 1 (something went wrong) and 4 (it could not be done), and unknown failures.
|
|
28
|
+
* ⛔ NOT IN A MODE THAT PRINTS JSON (`--json`, `mcp`): whatever reads that output parses it, and a
|
|
29
|
+
* sentence is not part of the contract. A command line that cannot be read is a usage error.
|
|
30
|
+
* ⛔ `renderError` STAYS AS IT WAS: the MCP server returns its text to an agent as the tool result.
|
|
31
|
+
*/
|
|
32
|
+
export function stuckLineFor(error, argv) {
|
|
33
|
+
if (error instanceof NotBuiltYetError)
|
|
34
|
+
return "";
|
|
35
|
+
const code = exitCodeFor(error);
|
|
36
|
+
if (code !== 1 && code !== 4)
|
|
37
|
+
return "";
|
|
38
|
+
try {
|
|
39
|
+
const args = parseArgs(argv);
|
|
40
|
+
if (args.json || args.command === "mcp")
|
|
41
|
+
return "";
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
return "";
|
|
45
|
+
}
|
|
46
|
+
return `${STUCK_LINE}\n`;
|
|
47
|
+
}
|
|
18
48
|
/**
|
|
19
49
|
* Stop a closed pipe from becoming a crash.
|
|
20
50
|
*
|
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
// whole command surface can be driven from a test without ending the test runner.
|
|
27
27
|
import { parseArgs } from "./args.js";
|
|
28
28
|
import { NmtsError, NotBuiltYetError, renderError } from "./errors.js";
|
|
29
|
-
import { endQuietlyOnClosedPipe, exitCodeFor, invokedDirectly, noteUpdateAfter } from "./exit.js";
|
|
29
|
+
import { endQuietlyOnClosedPipe, exitCodeFor, invokedDirectly, noteUpdateAfter, stuckLineFor } from "./exit.js";
|
|
30
30
|
import { printHelp } from "./help.js";
|
|
31
31
|
import { BINARY_NAME, VERSION } from "./product.js";
|
|
32
32
|
/**
|
|
@@ -375,7 +375,7 @@ async function main() {
|
|
|
375
375
|
process.exitCode = await run(argv);
|
|
376
376
|
}
|
|
377
377
|
catch (error) {
|
|
378
|
-
process.stderr.write(`${renderError(error, BINARY_NAME)}\n`);
|
|
378
|
+
process.stderr.write(`${renderError(error, BINARY_NAME)}\n${stuckLineFor(error, argv)}`);
|
|
379
379
|
process.exitCode = exitCodeFor(error);
|
|
380
380
|
failed = error instanceof Error ? error.message : String(error);
|
|
381
381
|
}
|
package/dist/product.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const BINARY_NAME = "nmts";
|
|
|
9
9
|
* beside it. Here rather than in `main.ts` because the MCP server has to say it too, and a
|
|
10
10
|
* command importing the entry point is a cycle waiting to bite.
|
|
11
11
|
*/
|
|
12
|
-
export declare const VERSION = "0.
|
|
12
|
+
export declare const VERSION = "0.53.0";
|
|
13
13
|
/** Where the product lives, for messages that need to send somebody somewhere real. */
|
|
14
14
|
export declare const HOME_URL = "https://nmts.me";
|
|
15
15
|
/** The source, so a person holding only the built program can find what it was built from. */
|
|
@@ -25,5 +25,10 @@ export declare const COPYRIGHT = "Copyright 2026 needmoretruth";
|
|
|
25
25
|
* invisible from here.
|
|
26
26
|
*/
|
|
27
27
|
export declare const SUPPORT_EMAIL = "nmts@nmts.me";
|
|
28
|
+
/**
|
|
29
|
+
* The NMTS Discord's #help forum, a permanent invite (owner 2026-11-07). The web drive links the
|
|
30
|
+
* same address under its failure sentences (`web/src/lib/discord.ts`); this is the CLI's copy.
|
|
31
|
+
*/
|
|
32
|
+
export declare const DISCORD_HELP_URL = "https://discord.gg/HtrUwhb2Mz";
|
|
28
33
|
/** The document in the source repository that is written for an agent rather than for a person. */
|
|
29
34
|
export declare const AGENTS_DOC = "AGENTS.md";
|
package/dist/product.js
CHANGED
|
@@ -18,7 +18,7 @@ export const BINARY_NAME = "nmts";
|
|
|
18
18
|
* beside it. Here rather than in `main.ts` because the MCP server has to say it too, and a
|
|
19
19
|
* command importing the entry point is a cycle waiting to bite.
|
|
20
20
|
*/
|
|
21
|
-
export const VERSION = "0.
|
|
21
|
+
export const VERSION = "0.53.0";
|
|
22
22
|
/** Where the product lives, for messages that need to send somebody somewhere real. */
|
|
23
23
|
export const HOME_URL = "https://nmts.me";
|
|
24
24
|
/** The source, so a person holding only the built program can find what it was built from. */
|
|
@@ -34,5 +34,10 @@ export const COPYRIGHT = "Copyright 2026 needmoretruth";
|
|
|
34
34
|
* invisible from here.
|
|
35
35
|
*/
|
|
36
36
|
export const SUPPORT_EMAIL = "nmts@nmts.me";
|
|
37
|
+
/**
|
|
38
|
+
* The NMTS Discord's #help forum, a permanent invite (owner 2026-11-07). The web drive links the
|
|
39
|
+
* same address under its failure sentences (`web/src/lib/discord.ts`); this is the CLI's copy.
|
|
40
|
+
*/
|
|
41
|
+
export const DISCORD_HELP_URL = "https://discord.gg/HtrUwhb2Mz";
|
|
37
42
|
/** The document in the source repository that is written for an agent rather than for a person. */
|
|
38
43
|
export const AGENTS_DOC = "AGENTS.md";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needmoretruth/nmts-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "Command-line and MCP access to NMTS (NeedMoreTruthStorage, https://nmts.me): open-source, end-to-end encrypted storage on the Walrus network. No fee to NMTS; you pay the network from your own wallet. For people and for their agents.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
package/server.json
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
"url": "https://github.com/needmoretruth/nmts-cli",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.53.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
14
14
|
"identifier": "@needmoretruth/nmts-cli",
|
|
15
|
-
"version": "0.
|
|
15
|
+
"version": "0.53.0",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|