@needmoretruth/nmts-cli 0.49.0 → 0.49.1
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 +1 -1
- package/README.md +1 -1
- package/dist/artifact-about.d.ts +1 -1
- package/dist/heavy-self-pay.d.ts +4 -3
- package/dist/heavy-self-pay.js +6 -5
- package/dist/product.d.ts +1 -1
- package/dist/product.js +1 -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.49.1 — 2026-09-29
|
|
7
|
+
|
|
8
|
+
- `nmts put --tier heavy --pay evm` recorded a file's end date without the 30-day lockup the storage
|
|
9
|
+
companies are owed, so a 28-day payment was written as ending the moment it was stored and every
|
|
10
|
+
longer term came out 30 days short. The end date now counts the lockup after the deposit's runway.
|
|
11
|
+
Files already stored this way keep the storage they paid for; only the recorded date was short.
|
|
12
|
+
|
|
6
13
|
## 0.49.0 — 2026-09-28
|
|
7
14
|
|
|
8
15
|
- `nmts wallet swap` now trades SUI, WAL and USDC in all six directions:
|
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.49.
|
|
53
|
+
npm install -g github:needmoretruth/nmts-cli#v0.49.1 # 버전을 고정할 때
|
|
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.49.
|
|
54
|
+
npm install -g github:needmoretruth/nmts-cli#v0.49.1 # 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.49.
|
|
14
|
+
export declare const WRITTEN_BY = "nmts-cli 0.49.1";
|
|
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/heavy-self-pay.d.ts
CHANGED
|
@@ -73,11 +73,12 @@ export interface SelfPaySynapse {
|
|
|
73
73
|
/** The real one: the Synapse SDK, over this account on this chain. */
|
|
74
74
|
export declare function synapseSelfPay(account: Account, chain: FilecoinChain): Promise<SelfPaySynapse>;
|
|
75
75
|
/**
|
|
76
|
-
* The epoch the deposit
|
|
76
|
+
* The epoch the deposit pays through after this upload: the SDK's runway — what the deposit holds
|
|
77
|
+
* BEYOND the lockup — and then the 30-day lockup the storage companies are owed. Counting only the
|
|
78
|
+
* runway wrote a 28-day payment as ending in the epoch it was committed (mainnet, 2026-09-28).
|
|
77
79
|
*
|
|
78
80
|
* ⚠ A RATE OF ZERO HAS NO END (the SDK answers the largest uint256). That only happens when no
|
|
79
|
-
* piece is being paid for
|
|
80
|
-
* then, because it is what the storage company is owed whatever the deposit does.
|
|
81
|
+
* piece is being paid for; the lockup alone is written then.
|
|
81
82
|
*/
|
|
82
83
|
export declare function expiryFrom(runway: {
|
|
83
84
|
epoch: bigint;
|
package/dist/heavy-self-pay.js
CHANGED
|
@@ -78,15 +78,16 @@ export async function synapseSelfPay(account, chain) {
|
|
|
78
78
|
/** Filecoin epochs in 30 days — the lockup a storage company is always owed. */
|
|
79
79
|
const EPOCHS_PER_MONTH = 86400n;
|
|
80
80
|
/**
|
|
81
|
-
* The epoch the deposit
|
|
81
|
+
* The epoch the deposit pays through after this upload: the SDK's runway — what the deposit holds
|
|
82
|
+
* BEYOND the lockup — and then the 30-day lockup the storage companies are owed. Counting only the
|
|
83
|
+
* runway wrote a 28-day payment as ending in the epoch it was committed (mainnet, 2026-09-28).
|
|
82
84
|
*
|
|
83
85
|
* ⚠ A RATE OF ZERO HAS NO END (the SDK answers the largest uint256). That only happens when no
|
|
84
|
-
* piece is being paid for
|
|
85
|
-
* then, because it is what the storage company is owed whatever the deposit does.
|
|
86
|
+
* piece is being paid for; the lockup alone is written then.
|
|
86
87
|
*/
|
|
87
88
|
export function expiryFrom(runway) {
|
|
88
|
-
const
|
|
89
|
-
return Number(
|
|
89
|
+
const funded = runway.runwayInEpochs > 2n ** 40n ? 0n : runway.runwayInEpochs;
|
|
90
|
+
return Number(runway.epoch + funded + EPOCHS_PER_MONTH);
|
|
90
91
|
}
|
|
91
92
|
/** Upload these files from the key's own EVM wallet and commit each one. The caller writes the list. */
|
|
92
93
|
export async function heavySelfPut(ctx, files) {
|
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.49.
|
|
12
|
+
export declare const VERSION = "0.49.1";
|
|
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.49.
|
|
21
|
+
export const VERSION = "0.49.1";
|
|
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. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needmoretruth/nmts-cli",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.1",
|
|
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.49.
|
|
9
|
+
"version": "0.49.1",
|
|
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.49.
|
|
15
|
+
"version": "0.49.1",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|