@needmoretruth/nmts-cli 0.47.0 → 0.48.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 +14 -0
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/dist/artifact-about.d.ts +1 -1
- package/dist/commands/links.d.ts +7 -0
- package/dist/commands/links.js +71 -0
- package/dist/commands/share-dispatch.js +5 -1
- package/dist/help.js +2 -0
- package/dist/links.d.ts +9 -0
- package/dist/links.js +20 -0
- package/dist/main.js +3 -4
- package/dist/portable.d.ts +1 -1
- package/dist/portable.js +1 -1
- package/dist/product.d.ts +1 -1
- package/dist/product.js +1 -1
- package/dist/risk.d.ts +11 -0
- package/dist/risk.js +6 -0
- package/docs/commands/link.md +9 -2
- package/package.json +1 -1
- package/server.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.48.1 — 2026-09-28
|
|
7
|
+
|
|
8
|
+
- 0.48.0 was tagged but never reached npm: one test named the public code file by hand and failed
|
|
9
|
+
whenever a random code held a character a file name drops. The test now builds the name the way
|
|
10
|
+
the command does. 0.48.1 carries 0.48.0's changes below.
|
|
11
|
+
|
|
12
|
+
## 0.48.0 — 2026-09-28
|
|
13
|
+
|
|
14
|
+
- **Every public link in one list.** `nmts links` prints every link of yours that still opens a
|
|
15
|
+
file, newest first, with the file's path, download count and end date (`--json` for programs).
|
|
16
|
+
`nmts links revoke <id>` cuts one and `nmts links revoke-all` cuts them all in one request;
|
|
17
|
+
copies already downloaded stay with whoever has them. The SDK has `allLinks()` and
|
|
18
|
+
`revokeAllLinks()`.
|
|
19
|
+
|
|
6
20
|
## 0.47.0 — 2026-09-27
|
|
7
21
|
|
|
8
22
|
- **Public links.** `nmts link make <path>` makes a link to one file that anyone can open without
|
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.48.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.
|
|
54
|
+
npm install -g github:needmoretruth/nmts-cli#v0.48.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.
|
|
14
|
+
export declare const WRITTEN_BY = "nmts-cli 0.48.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
|
/**
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface LinksOptions {
|
|
2
|
+
server?: string | undefined;
|
|
3
|
+
network?: string | undefined;
|
|
4
|
+
json?: boolean;
|
|
5
|
+
write?: (line: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function links(sub: string | undefined, operand: string | undefined, options?: LinksOptions): Promise<number>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// `nmts links` · `nmts links revoke <id>` · `nmts links revoke-all` — every live public link this
|
|
2
|
+
// account holds, across all its files, and the two ways to cut them (NCF-3 §5.8), so a person who
|
|
3
|
+
// handed out many links can take them all back without going file by file.
|
|
4
|
+
//
|
|
5
|
+
// ⛔ THE SERVER NAMES FILES BY ID. The path beside each link comes from this account's own sealed
|
|
6
|
+
// file list, opened here; a link whose file is not in that list prints `(not in the file list)`.
|
|
7
|
+
//
|
|
8
|
+
// ⛔ `revoke-all` IS ONE REQUEST, ALL OR NONE. It sits beside `link revoke` in the gate's `low` tier:
|
|
9
|
+
// it only takes something back, and no copy already downloaded is reached.
|
|
10
|
+
import { buildIndex, fullPathOf } from "../drive-paths.js";
|
|
11
|
+
import { NmtsError } from "../errors.js";
|
|
12
|
+
import { listLiveLinks, revokeAllLinks, revokeLink } from "../links.js";
|
|
13
|
+
import { readFileList } from "../manifest.js";
|
|
14
|
+
import { BINARY_NAME } from "../product.js";
|
|
15
|
+
import { openSession } from "../session.js";
|
|
16
|
+
const USAGE = `\`${BINARY_NAME} links\` · \`${BINARY_NAME} links revoke <id>\` · \`${BINARY_NAME} links revoke-all\``;
|
|
17
|
+
export async function links(sub, operand, options = {}) {
|
|
18
|
+
const say = options.write ?? ((line) => process.stdout.write(`${line}\n`));
|
|
19
|
+
if (sub !== undefined && sub !== "revoke" && sub !== "revoke-all") {
|
|
20
|
+
throw new NmtsError("Say nothing to list, or `revoke <id>`, or `revoke-all`.", { exitCode: 2, nextStep: USAGE });
|
|
21
|
+
}
|
|
22
|
+
if (sub === "revoke" && (operand === undefined || operand === "")) {
|
|
23
|
+
throw new NmtsError("Say which link id.", { exitCode: 2, nextStep: USAGE });
|
|
24
|
+
}
|
|
25
|
+
const session = await openSession({ server: options.server, network: options.network });
|
|
26
|
+
const account = { server: session.server, bearer: session.apiKey, code: session.code };
|
|
27
|
+
if (sub === "revoke" && operand !== undefined) {
|
|
28
|
+
await revokeLink(account, operand);
|
|
29
|
+
say(options.json === true ? JSON.stringify({ id: operand, cut: true }) : `${operand} cut`);
|
|
30
|
+
return 0;
|
|
31
|
+
}
|
|
32
|
+
if (sub === "revoke-all") {
|
|
33
|
+
const cut = await revokeAllLinks(account);
|
|
34
|
+
say(options.json === true ? JSON.stringify({ cut }) : `${cut} ${cut === 1 ? "link" : "links"} cut`);
|
|
35
|
+
return 0;
|
|
36
|
+
}
|
|
37
|
+
const rows = await listLiveLinks(account);
|
|
38
|
+
const paths = await pathsOf(session, rows);
|
|
39
|
+
if (options.json === true) {
|
|
40
|
+
say(JSON.stringify({ links: rows.map((row) => ({ ...row, path: paths.get(row.itemId) ?? null })) }));
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
43
|
+
if (rows.length === 0) {
|
|
44
|
+
say("No live public links.");
|
|
45
|
+
return 0;
|
|
46
|
+
}
|
|
47
|
+
for (const row of rows) {
|
|
48
|
+
const path = paths.get(row.itemId) ?? "(not in the file list)";
|
|
49
|
+
const ends = row.expiresAt === null ? "" : ` expires ${row.expiresAt}`;
|
|
50
|
+
say(`${row.id} ${path} made ${row.createdAt} downloads ${row.downloads}${ends}`);
|
|
51
|
+
if (row.link !== null)
|
|
52
|
+
say(` ${row.link}`);
|
|
53
|
+
}
|
|
54
|
+
return 0;
|
|
55
|
+
}
|
|
56
|
+
/** Each linked file's path, from the account's own sealed list. Nothing to look up, nothing read. */
|
|
57
|
+
async function pathsOf(session, rows) {
|
|
58
|
+
const found = new Map();
|
|
59
|
+
if (rows.length === 0)
|
|
60
|
+
return found;
|
|
61
|
+
const list = await readFileList(session.server, session.apiKey, session.code, session.accountId);
|
|
62
|
+
if (list.manifest === null)
|
|
63
|
+
return found;
|
|
64
|
+
const index = buildIndex(list.manifest.entries);
|
|
65
|
+
for (const row of rows) {
|
|
66
|
+
const entry = index.byId.get(row.itemId);
|
|
67
|
+
if (entry !== undefined)
|
|
68
|
+
found.set(row.itemId, fullPathOf(index, entry));
|
|
69
|
+
}
|
|
70
|
+
return found;
|
|
71
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The share verbs (share · shares · unshare · receive · link), dispatched here rather than in `main.ts`.
|
|
1
|
+
// The share verbs (share · shares · unshare · receive · link · links), dispatched here rather than in `main.ts`.
|
|
2
2
|
//
|
|
3
3
|
// ⛔ WHY A SECOND SWITCH. `main.ts` is measured (`check:size`) and had no room for `nmts support`;
|
|
4
4
|
// this block shares a file and an option shape, so it moved as one piece with its comments.
|
|
@@ -53,6 +53,10 @@ export async function runShare(command, args) {
|
|
|
53
53
|
json: args.json,
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
+
case "links": {
|
|
57
|
+
const { links } = await import("./links.js");
|
|
58
|
+
return await links(args.operands[0], args.operands[1], { server: args.server, network: args.network, json: args.json });
|
|
59
|
+
}
|
|
56
60
|
default:
|
|
57
61
|
throw new Error(`not a share verb: ${command}`);
|
|
58
62
|
}
|
package/dist/help.js
CHANGED
|
@@ -131,6 +131,8 @@ export function helpText(version) {
|
|
|
131
131
|
` link make <path> Make a public link to a file`,
|
|
132
132
|
` link list <path> List a file's public links`,
|
|
133
133
|
` link revoke <id> Cut a public link`,
|
|
134
|
+
` links List every live public link this account holds, with each file's path`,
|
|
135
|
+
` links revoke-all Cut every live public link at once`,
|
|
134
136
|
` link open <link> Download and decrypt a file from a public link, without logging in`,
|
|
135
137
|
` env What this machine is, and what it means for the NMTS key`,
|
|
136
138
|
` unlock [name] What this machine has unlocked; \`unlock <name>\` opens one — a person,`,
|
package/dist/links.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export interface MadeLink {
|
|
|
18
18
|
}
|
|
19
19
|
export interface ListedLink {
|
|
20
20
|
id: string;
|
|
21
|
+
/** The server's id for the file the link opens. */
|
|
22
|
+
itemId: string;
|
|
21
23
|
/** The whole link again, or null when it is cut (or its sealed secret did not open). */
|
|
22
24
|
link: string | null;
|
|
23
25
|
showsName: boolean;
|
|
@@ -36,6 +38,13 @@ export declare function makeLink(account: LinkAccount, entry: ManifestEntry, opt
|
|
|
36
38
|
}): Promise<MadeLink>;
|
|
37
39
|
/** Every link the account made to one file, newest first, cut ones included. */
|
|
38
40
|
export declare function listLinks(account: LinkAccount, itemId: string): Promise<ListedLink[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Every LIVE link the account holds, across all its files, newest first. Each names its file by
|
|
43
|
+
* `itemId`; the file's name is in the account's own sealed list, which the server cannot read.
|
|
44
|
+
*/
|
|
45
|
+
export declare function listLiveLinks(account: LinkAccount): Promise<ListedLink[]>;
|
|
46
|
+
/** Cut every live link the account holds, in one request: all or none. Returns how many were cut. */
|
|
47
|
+
export declare function revokeAllLinks(account: LinkAccount): Promise<number>;
|
|
39
48
|
/** Cut one of the account's links. Cutting one that is already cut is not an error. */
|
|
40
49
|
export declare function revokeLink(account: LinkAccount, id: string): Promise<void>;
|
|
41
50
|
export interface OpenedLinkFile {
|
package/dist/links.js
CHANGED
|
@@ -89,6 +89,25 @@ export async function listLinks(account, itemId) {
|
|
|
89
89
|
const answer = await request(account.server, `/v1/share-links?item_id=${encodeURIComponent(itemId)}`, {
|
|
90
90
|
token: account.bearer,
|
|
91
91
|
});
|
|
92
|
+
return listedFrom(account, answer);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Every LIVE link the account holds, across all its files, newest first. Each names its file by
|
|
96
|
+
* `itemId`; the file's name is in the account's own sealed list, which the server cannot read.
|
|
97
|
+
*/
|
|
98
|
+
export async function listLiveLinks(account) {
|
|
99
|
+
return listedFrom(account, await request(account.server, "/v1/share-links/live", { token: account.bearer }));
|
|
100
|
+
}
|
|
101
|
+
/** Cut every live link the account holds, in one request: all or none. Returns how many were cut. */
|
|
102
|
+
export async function revokeAllLinks(account) {
|
|
103
|
+
const answer = await request(account.server, "/v1/share-links", { method: "DELETE", token: account.bearer });
|
|
104
|
+
const cut = isRecord(answer) ? answer["cut"] : null;
|
|
105
|
+
if (typeof cut !== "number")
|
|
106
|
+
throw new NmtsError("The server's answer did not say how many links were cut.");
|
|
107
|
+
return cut;
|
|
108
|
+
}
|
|
109
|
+
/** A list answer's rows, each with its whole link rebuilt from the owner's sealed copy of `S`. */
|
|
110
|
+
async function listedFrom(account, answer) {
|
|
92
111
|
const rows = isRecord(answer) ? answer["links"] : null;
|
|
93
112
|
if (!Array.isArray(rows))
|
|
94
113
|
throw new NmtsError("The server listed the links in a shape this version cannot read.");
|
|
@@ -113,6 +132,7 @@ export async function listLinks(account, itemId) {
|
|
|
113
132
|
}
|
|
114
133
|
return {
|
|
115
134
|
id,
|
|
135
|
+
itemId: text(row["item_id"]) ?? "",
|
|
116
136
|
link,
|
|
117
137
|
showsName: row["disclosed_name"] === true,
|
|
118
138
|
createdAt: text(row["created_at"]) ?? "",
|
package/dist/main.js
CHANGED
|
@@ -99,10 +99,8 @@ export async function run(argv) {
|
|
|
99
99
|
sort: args.sort, desc: args.desc, long: args.long, media: args.media,
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
case "usage":
|
|
103
|
-
|
|
104
|
-
return await usage({ server: args.server, network: args.network, json: args.json });
|
|
105
|
-
}
|
|
102
|
+
case "usage":
|
|
103
|
+
return await (await import("./commands/usage.js")).usage({ server: args.server, network: args.network, json: args.json });
|
|
106
104
|
case "balance": {
|
|
107
105
|
const { balance } = await import("./commands/balance.js");
|
|
108
106
|
return await balance({ server: args.server, network: args.network, json: args.json });
|
|
@@ -296,6 +294,7 @@ export async function run(argv) {
|
|
|
296
294
|
case "shares":
|
|
297
295
|
case "unshare":
|
|
298
296
|
case "link":
|
|
297
|
+
case "links":
|
|
299
298
|
case "receive": {
|
|
300
299
|
const { runShare } = await import("./commands/share-dispatch.js");
|
|
301
300
|
return await runShare(args.command, args);
|
package/dist/portable.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export type { PlaintextSink } from "./download-sink.ts";
|
|
|
57
57
|
export { AGGREGATOR_ENV_VAR, readBlob, RELAY_ENV_VAR, SUI_RPC_ENV_VAR } from "./walrus.ts";
|
|
58
58
|
export { relayHost, storageNodesThrough, suiRpcHosts } from "./walrus.ts";
|
|
59
59
|
export type { ReadOptions } from "./walrus.ts";
|
|
60
|
-
export { listLinks, makeLink, openLink, revokeLink } from "./links.ts";
|
|
60
|
+
export { listLinks, listLiveLinks, makeLink, openLink, revokeAllLinks, revokeLink } from "./links.ts";
|
|
61
61
|
export type { LinkAccount, ListedLink, MadeLink, OpenedLinkFile } from "./links.ts";
|
|
62
62
|
export { coinAmount, readBalances, walCoinType, walletAddress } from "./wallet.ts";
|
|
63
63
|
export type { ChainReader, CoinBalance, WalletBalances } from "./wallet.ts";
|
package/dist/portable.js
CHANGED
|
@@ -82,7 +82,7 @@ export { AGGREGATOR_ENV_VAR, readBlob, RELAY_ENV_VAR, SUI_RPC_ENV_VAR } from "./
|
|
|
82
82
|
// caller said first, then the environment, then the network's own.
|
|
83
83
|
export { relayHost, storageNodesThrough, suiRpcHosts } from "./walrus.js";
|
|
84
84
|
// Public links (NCF-3 §5.8): make, list, cut, and open without an account — `nmts link`'s four.
|
|
85
|
-
export { listLinks, makeLink, openLink, revokeLink } from "./links.js";
|
|
85
|
+
export { listLinks, listLiveLinks, makeLink, openLink, revokeAllLinks, revokeLink } from "./links.js";
|
|
86
86
|
// The wallet the NMTS key derives: reading it, and signing with it.
|
|
87
87
|
export { coinAmount, readBalances, walCoinType, walletAddress } from "./wallet.js";
|
|
88
88
|
export { chainReader } from "./wallet-chain.js";
|
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.48.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.
|
|
21
|
+
export const VERSION = "0.48.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/dist/risk.d.ts
CHANGED
|
@@ -65,6 +65,9 @@ export declare const ACTS: {
|
|
|
65
65
|
readonly link: {
|
|
66
66
|
readonly tier: "none";
|
|
67
67
|
};
|
|
68
|
+
readonly links: {
|
|
69
|
+
readonly tier: "none";
|
|
70
|
+
};
|
|
68
71
|
readonly wallet: {
|
|
69
72
|
readonly tier: "none";
|
|
70
73
|
};
|
|
@@ -189,6 +192,14 @@ export declare const ACTS: {
|
|
|
189
192
|
readonly tier: "low";
|
|
190
193
|
readonly what: "Cut a public link.";
|
|
191
194
|
};
|
|
195
|
+
readonly "links.revoke": {
|
|
196
|
+
readonly tier: "low";
|
|
197
|
+
readonly what: "Cut a public link.";
|
|
198
|
+
};
|
|
199
|
+
readonly "links.revoke-all": {
|
|
200
|
+
readonly tier: "low";
|
|
201
|
+
readonly what: "Cut every public link this account holds.";
|
|
202
|
+
};
|
|
192
203
|
readonly tip: {
|
|
193
204
|
readonly tier: "none";
|
|
194
205
|
};
|
package/dist/risk.js
CHANGED
|
@@ -46,6 +46,8 @@ export const ACTS = {
|
|
|
46
46
|
// Listing this file's public links, and opening somebody's link (no account). `link.make` is under
|
|
47
47
|
// `high` beside `share`; `link.revoke` is under `low` beside `unshare`.
|
|
48
48
|
link: { tier: "none" },
|
|
49
|
+
// Listing every live link the account holds. Its two cuts are under `low` beside `link.revoke`.
|
|
50
|
+
links: { tier: "none" },
|
|
49
51
|
wallet: { tier: "none" },
|
|
50
52
|
get: { tier: "none" },
|
|
51
53
|
pull: { tier: "none" },
|
|
@@ -91,6 +93,8 @@ export const ACTS = {
|
|
|
91
93
|
restore: { tier: "low", what: "Bring these back out of the trash." },
|
|
92
94
|
unshare: { tier: "low", what: "Withdraw this share. Whoever had it cannot download it again." },
|
|
93
95
|
"link.revoke": { tier: "low", what: "Cut a public link." },
|
|
96
|
+
"links.revoke": { tier: "low", what: "Cut a public link." },
|
|
97
|
+
"links.revoke-all": { tier: "low", what: "Cut every public link this account holds." },
|
|
94
98
|
tip: { tier: "none" },
|
|
95
99
|
"tip.set": { tier: "none" },
|
|
96
100
|
"on-collision.set": { tier: "low", what: "Change what an upload does when its name is already taken." },
|
|
@@ -268,6 +272,8 @@ export function actOf(args) {
|
|
|
268
272
|
return sub === "make" ? "handover.make" : "handover";
|
|
269
273
|
case "link":
|
|
270
274
|
return sub === "make" ? "link.make" : sub === "revoke" ? "link.revoke" : "link";
|
|
275
|
+
case "links":
|
|
276
|
+
return sub === "revoke" ? "links.revoke" : sub === "revoke-all" ? "links.revoke-all" : "links";
|
|
271
277
|
case "support":
|
|
272
278
|
return sub === "send" || sub === "reply" ? "support.send" : "support";
|
|
273
279
|
case "platform":
|
package/docs/commands/link.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# nmts link — public links to one file
|
|
2
2
|
|
|
3
|
-
Commands: link
|
|
4
|
-
Tiers: link=none · link.make=high(share) · link.revoke=low
|
|
3
|
+
Commands: link, links
|
|
4
|
+
Tiers: link=none · link.make=high(share) · link.revoke=low · links=none · links.revoke=low · links.revoke-all=low
|
|
5
5
|
|
|
6
6
|
`link make <path>` makes a public link to one file of your drive and prints it:
|
|
7
7
|
`https://nmts.me/l/<token>#<secret>`. Anyone with the link can open this file. Cutting the link stops
|
|
@@ -25,3 +25,10 @@ and checks the whole file against the hash the owner sealed; a file that does no
|
|
|
25
25
|
written. Without `--out` the file is saved in the current directory under the name the owner
|
|
26
26
|
showed, reduced to its last segment, or `nmts-link-<token>` when the name was hidden; `--force`
|
|
27
27
|
replaces a file that is already there. A cut, expired or unknown link is refused.
|
|
28
|
+
|
|
29
|
+
`links` prints every live public link this account holds, across all its files, newest first: the
|
|
30
|
+
id, the file's path (read from this account's own file list; the server has file ids, not names),
|
|
31
|
+
when it was made, how many times it was downloaded, when it expires if it does, and the whole link.
|
|
32
|
+
`links revoke <id>` cuts one, as `link revoke` does. `links revoke-all` cuts every live link in one
|
|
33
|
+
request — all or none — and prints how many were cut; asking again cuts none. Copies already
|
|
34
|
+
downloaded stay with whoever has them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needmoretruth/nmts-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.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.
|
|
9
|
+
"version": "0.48.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.
|
|
15
|
+
"version": "0.48.1",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|