@needmoretruth/nmts-cli 0.52.2 → 0.52.3
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 +8 -0
- package/README.ko.md +1 -1
- package/README.md +1 -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/product.d.ts +1 -1
- package/dist/product.js +1 -1
- package/dist/s3/multipart-view.d.ts +1 -0
- package/dist/s3/multipart-view.js +24 -3
- package/package.json +1 -1
- package/server.json +2 -2
- package/vendor/nmts-crypto/nmts_crypto_wasm_bg.wasm +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.52.3 — 2026-11-08
|
|
7
|
+
|
|
8
|
+
- The crypto engine uses ml-dsa 0.1.2, whose key generation no longer branches on secret values.
|
|
9
|
+
Keys, shared identities and signatures are byte for byte the same as before.
|
|
10
|
+
- `nmts s3`: two multipart uploads of one key begun in the same millisecond could list in the wrong
|
|
11
|
+
order, and a `ListMultipartUploads` page resumed after the earlier one could skip the later one.
|
|
12
|
+
Upload ids now sort in the order the uploads began.
|
|
13
|
+
|
|
6
14
|
## 0.52.2 — 2026-11-07
|
|
7
15
|
|
|
8
16
|
- `nmts wallet activity` and `nmts wallet list` still failed on a node that keeps fewer checkpoints
|
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.52.
|
|
53
|
+
npm install -g github:needmoretruth/nmts-cli#v0.52.3 # 버전을 고정할 때
|
|
54
54
|
npm install -g https://github.com/needmoretruth/nmts-cli/releases/latest/download/nmts.tgz
|
|
55
55
|
```
|
|
56
56
|
|
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.52.
|
|
54
|
+
npm install -g github:needmoretruth/nmts-cli#v0.52.3 # a pinned version
|
|
55
55
|
npm install -g https://github.com/needmoretruth/nmts-cli/releases/latest/download/nmts.tgz
|
|
56
56
|
```
|
|
57
57
|
|
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.52.
|
|
14
|
+
export declare const WRITTEN_BY = "nmts-cli 0.52.3";
|
|
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.52.
|
|
10
|
+
/** `cli/0.52.3`, `mcp/0.52.3`, `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.52.
|
|
27
|
+
/** `cli/0.52.3`, `mcp/0.52.3`, `sdk/0.17.0`. */
|
|
28
28
|
export function clientHeaderValue() {
|
|
29
29
|
return `${kind}/${version}`;
|
|
30
30
|
}
|
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.52.
|
|
12
|
+
export declare const VERSION = "0.52.3";
|
|
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. */
|
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.52.
|
|
21
|
+
export const VERSION = "0.52.3";
|
|
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. */
|
|
@@ -42,4 +42,5 @@ export interface UploadBook {
|
|
|
42
42
|
/** Remove what nobody has touched for a day, from memory and from disk. */
|
|
43
43
|
sweepMemory(): Promise<void>;
|
|
44
44
|
}
|
|
45
|
+
export declare function newUploadId(now: number): string;
|
|
45
46
|
export declare function bucketView(book: UploadBook, bucket: string, account: UploadAccount): Staging;
|
|
@@ -21,14 +21,35 @@ function bare(etag) {
|
|
|
21
21
|
return etag.trim().replace(/^W\//, "").replace(/^"|"$/g, "");
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* A new upload id: the
|
|
24
|
+
* A new upload id: the millisecond it began, a sequence within that millisecond, then randomness,
|
|
25
|
+
* all hex, 32 characters (`multipart-sweep.ts` reads the directory name by that shape).
|
|
25
26
|
*
|
|
26
27
|
* ⛔ SORTED BY TIME AS A STRING. `ListMultipartUploads` resumes after an id, and S3 lists one key's
|
|
27
28
|
* uploads by when they began; an id that sorts the same way lets a listing resume after an id
|
|
28
29
|
* even once that upload is gone, without skipping the key's later ones.
|
|
30
|
+
* ⛔ STRICTLY INCREASING, not only by the millisecond (2026-11-08). Two uploads begun in the same
|
|
31
|
+
* millisecond used to sort by their random tail, so half the time the later one sorted first and
|
|
32
|
+
* a listing resumed after the earlier one skipped it — seen on a fast macOS runner, where the
|
|
33
|
+
* test's two `begin` calls landed in one millisecond. The sequence breaks the tie in order, and a
|
|
34
|
+
* clock that steps back keeps the last time it gave.
|
|
29
35
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
let lastMs = -1;
|
|
37
|
+
let sequence = 0;
|
|
38
|
+
export function newUploadId(now) {
|
|
39
|
+
let ms = Math.max(0, Math.floor(now));
|
|
40
|
+
if (ms <= lastMs) {
|
|
41
|
+
ms = lastMs;
|
|
42
|
+
sequence += 1;
|
|
43
|
+
if (sequence > 0xffff) {
|
|
44
|
+
ms += 1;
|
|
45
|
+
sequence = 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
sequence = 0;
|
|
50
|
+
}
|
|
51
|
+
lastMs = ms;
|
|
52
|
+
return `${ms.toString(16).padStart(12, "0")}${sequence.toString(16).padStart(4, "0")}${randomBytes(8).toString("hex")}`;
|
|
32
53
|
}
|
|
33
54
|
export function bucketView(book, bucket, account) {
|
|
34
55
|
const { inFlight, finished, clock } = book;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needmoretruth/nmts-cli",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.3",
|
|
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.52.
|
|
9
|
+
"version": "0.52.3",
|
|
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.52.
|
|
15
|
+
"version": "0.52.3",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
|
Binary file
|