@needmoretruth/nmts-cli 0.49.0 → 0.50.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/AGENTS.md CHANGED
@@ -55,7 +55,7 @@ Four things need a person, all at the beginning. If you are being set up, hand t
55
55
 
56
56
  | Step | Who | Where | How often |
57
57
  |---|---|---|---|
58
- | 1. Make the account | a person | nmts.me, or `nmts create` at a terminal (it makes the NMTS key on that machine and hands the person a one-time link to finish in a browser) | once |
58
+ | 1. Make the account | a person — or you, with a one-time pass | nmts.me, or `nmts create` at a terminal (it makes the NMTS key on that machine and hands the person a one-time link to finish in a browser). **With a pass**: the person takes it at nmts.me/ai (passing the check and accepting the Terms and Privacy Policy there), and within sixty minutes you run `nmts create` with the pass in the environment variable `NMTS_AGENT_PASS`, which keeps the NMTS key in this tool's file, makes step 2's key (read, write, spend) and starts step 3 live; with no shell, open `https://nmts.me/create#pass=<pass>`. The pass works once and never goes on a command line | once |
59
59
  | 2. Make an API key for you | a person | the account screen at nmts.me, or `nmts key new` on a machine that holds the NMTS key (`key list` and `key revoke` live there too) | once, and again if it is revoked |
60
60
  | 3. Pass the check that says a person is here | a person | nmts.me, one short code | **every twelve weeks**, and only for step 1, step 4 and sharing |
61
61
  | 4. Get credits into the account | you, for the free trial (`nmts trial apply`, while step 3 is live) — a person, for a funded wallet | a terminal, or nmts.me | once, then as they run out |
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.50.0 — 2026-10-01
7
+
8
+ - `nmts create` can spend a one-time pass taken from the environment variable `NMTS_AGENT_PASS`. It
9
+ makes the NMTS key on this machine, registers the account with the pass in place of the browser
10
+ step, makes an API key (read, write, spend) and stores both in the credentials file. A pass works
11
+ once and for an hour. If this machine already keeps a key, `create` refuses before spending the pass.
12
+
13
+ ## 0.49.1 — 2026-09-29
14
+
15
+ - `nmts put --tier heavy --pay evm` recorded a file's end date without the 30-day lockup the storage
16
+ companies are owed, so a 28-day payment was written as ending the moment it was stored and every
17
+ longer term came out 30 days short. The end date now counts the lockup after the deposit's runway.
18
+ Files already stored this way keep the storage they paid for; only the recorded date was short.
19
+
6
20
  ## 0.49.0 — 2026-09-28
7
21
 
8
22
  - `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.0 # 버전을 고정할 때
53
+ npm install -g github:needmoretruth/nmts-cli#v0.50.0 # 버전을 고정할 때
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.0 # a pinned version
54
+ npm install -g github:needmoretruth/nmts-cli#v0.50.0 # a pinned version
55
55
  npm install -g https://github.com/needmoretruth/nmts-cli/releases/latest/download/nmts.tgz
56
56
  ```
57
57
 
@@ -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.0";
14
+ export declare const WRITTEN_BY = "nmts-cli 0.50.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
  /**
@@ -0,0 +1,12 @@
1
+ export interface CreatePassOptions {
2
+ server: string;
3
+ network: string;
4
+ /** The pass, as read from `NMTS_AGENT_PASS`. Never from argv. */
5
+ pass: string;
6
+ json?: boolean;
7
+ /** Typed by a PERSON only, as on every create path. A pass usually carries their acceptance. */
8
+ acceptTerms?: string | undefined;
9
+ acceptPrivacy?: string | undefined;
10
+ write?: ((line: string) => void) | undefined;
11
+ }
12
+ export declare function createWithPass(options: CreatePassOptions): Promise<number>;
@@ -0,0 +1,214 @@
1
+ // `nmts create` with a one-time pass: an agent makes its own account, with no browser.
2
+ //
3
+ // ⛔ WHY THIS PATH EXISTS (D19g ⑥ · owner 2026-10-01). The other two paths both end at a person:
4
+ // the key path needs an account a person verified, and the link path prints an address a person
5
+ // finishes in a browser. Here the person has ALREADY done their part — they solved the human
6
+ // check on nmts.me/ai and handed the pass to their agent inside a prompt — so this run makes the
7
+ // NMTS key, makes the account with the pass, keeps the key on this machine, makes an API key,
8
+ // and is done.
9
+ //
10
+ // ⛔ THE PASS COMES FROM THE ENVIRONMENT AND NEVER FROM ARGV. `args.ts` holds that no secret is an
11
+ // option (any process can read another's command line, and the shell records it), and a pass is
12
+ // a live account-making ticket for an hour. `NMTS_AGENT_PASS` is the one way in.
13
+ //
14
+ // ⛔ THE KEY IS WRITTEN BEFORE THE ACCOUNT IS ASKED FOR — `create.ts`'s rule. A full disk or a
15
+ // folder that cannot be written must fail while there is nothing to lose. A refusal the server
16
+ // ANSWERED means nothing exists, so the file goes again; a request that died on the way back
17
+ // leaves the question open, so the file is KEPT and the doubt is said out loud.
18
+ //
19
+ // ⛔ IT NEVER REPLACES A KEY THIS MACHINE ALREADY KEEPS. That file may hold the only copy of
20
+ // somebody's account; this run refuses before it spends the pass, and names the folder setting
21
+ // that keeps the new account apart.
22
+ //
23
+ // ⚠ HOW THE KEY IS KEPT. Sealed under `NMTS_PASSPHRASE` when that is set, the shape `login` uses by
24
+ // default. Without it, in the clear at mode 600 — the same exposure `create --out` has always had
25
+ // for a new key, with no agreement asked, because an unattended agent has nowhere to type a
26
+ // passphrase and a key that is not kept is an account that is lost. Where this filesystem cannot
27
+ // keep the mode, the `unsafe-code-storage` agreement is asked, exactly as `login --plain` asks it.
28
+ import { rmSync } from "node:fs";
29
+ import { request, ServerError } from "../api.js";
30
+ import { lockCode } from "../code-vault.js";
31
+ import { requireConsent } from "../consent.js";
32
+ import { PASSPHRASE_ENV_VAR, codeStorageIsPrivate, credentialsPath, readCredentialsFile, writeCredentials, } from "../credentials.js";
33
+ import { AGENT_PASS_ENV_VAR } from "../env-vars.js";
34
+ import { NmtsError } from "../errors.js";
35
+ import { isRecord } from "../guards.js";
36
+ import { BINARY_NAME, HOME_URL } from "../product.js";
37
+ import { newAccountCode, registrationProofOf } from "../registration.js";
38
+ /** read · write · spend — the whole account is the agent's, and so are its credits. */
39
+ const KEY_SCOPES = 7;
40
+ /**
41
+ * Days asked for. ⚠ The server clamps a request at its own ceiling and answers the date it gave
42
+ * (`api_keys.rs` · `IssueReq::lifetime_days`), so asking for a year is how to get the longest key
43
+ * the server allows without a second copy of its number here.
44
+ */
45
+ const KEY_DAYS = 365;
46
+ export async function createWithPass(options) {
47
+ const say = options.write ?? ((line) => process.stdout.write(`${line}\n`));
48
+ const { server, network } = options;
49
+ // ── Every refusal that needs no network, first ───────────────────────────────────────────
50
+ if (readCredentialsFile() !== null)
51
+ throw machineIsTaken();
52
+ const passphrase = process.env[PASSPHRASE_ENV_VAR] ?? "";
53
+ if (passphrase === "" && !codeStorageIsPrivate())
54
+ requireConsent("unsafe-code-storage");
55
+ // ── The key, kept before the account is asked for ────────────────────────────────────────
56
+ const code = await newAccountCode();
57
+ const proof = await registrationProofOf(code);
58
+ const kept = {
59
+ ...(passphrase === "" ? { accountCode: code } : { lockedCode: lockCode(code, passphrase) }),
60
+ server,
61
+ network,
62
+ };
63
+ writeCredentials(kept);
64
+ // ── The account ──────────────────────────────────────────────────────────────────────────
65
+ let answer;
66
+ try {
67
+ answer = await request(server, "/v1/accounts", {
68
+ method: "POST",
69
+ body: {
70
+ account_id: proof.accountId,
71
+ auth_secret: proof.authSecret,
72
+ agent_pass: options.pass.trim(),
73
+ ...(options.acceptTerms === undefined ? {} : { terms_version: options.acceptTerms }),
74
+ ...(options.acceptPrivacy === undefined ? {} : { privacy_version: options.acceptPrivacy }),
75
+ },
76
+ });
77
+ }
78
+ catch (error) {
79
+ if (error instanceof ServerError) {
80
+ rmSync(credentialsPath(), { force: true });
81
+ throw explain(error);
82
+ }
83
+ throw uncertain(error);
84
+ }
85
+ const createdAt = field(isRecord(answer) ? answer["account"] : null, "created_at");
86
+ // ── The API key, from the code alone ─────────────────────────────────────────────────────
87
+ // ⚠ A FAILURE HERE DOES NOT UNDO ANYTHING. The account exists and its key is kept; what is
88
+ // missing is one credential that `nmts key new` makes at any time from the same key.
89
+ let issued = null;
90
+ let keyError = null;
91
+ try {
92
+ const reply = await request(server, "/v1/account/api-keys/by-code", {
93
+ method: "POST",
94
+ body: {
95
+ account_id: proof.accountId,
96
+ auth_secret: proof.authSecret,
97
+ scopes: KEY_SCOPES,
98
+ lifetime_days: KEY_DAYS,
99
+ },
100
+ // ⛔ NOT REPEATED ON A TIMEOUT — `key.ts` says why: a retry can spend the second live key.
101
+ retryBudgetMs: 0,
102
+ });
103
+ const key = field(reply, "key");
104
+ const keyId = field(reply, "key_id");
105
+ const expiresAt = field(reply, "expires_at");
106
+ if (key !== null && keyId !== null && expiresAt !== null)
107
+ issued = { key, keyId, expiresAt };
108
+ else
109
+ keyError = "the server described the key in a shape this version cannot read";
110
+ }
111
+ catch (error) {
112
+ keyError = error instanceof Error ? error.message : String(error);
113
+ }
114
+ if (issued !== null)
115
+ writeCredentials({ ...kept, apiKey: issued.key });
116
+ if (options.json === true) {
117
+ // ⛔ NO SECRET IN IT: not the NMTS key, not the API key, not the pass.
118
+ say(JSON.stringify({
119
+ account_id: proof.accountId,
120
+ created_at: createdAt,
121
+ credentials: credentialsPath(),
122
+ sealed: passphrase !== "",
123
+ server,
124
+ network,
125
+ api_key: issued === null ? null : { key_id: issued.keyId, scopes: ["read", "write", "spend"], expires_at: issued.expiresAt },
126
+ }));
127
+ return 0;
128
+ }
129
+ say(`A new account exists on ${server} (${network}).`);
130
+ say(``);
131
+ say(` account id ${proof.accountId}`);
132
+ say(``);
133
+ say(`⛔ ITS NMTS KEY IS KEPT IN ONE FILE ON THIS MACHINE, AND NOWHERE ELSE:`);
134
+ say(` ${credentialsPath()}`);
135
+ say(passphrase === ""
136
+ ? ` In the clear, readable by this user alone (mode 600).`
137
+ : ` Sealed under the passphrase in ${PASSPHRASE_ENV_VAR}; opening it needs that passphrase.`);
138
+ say(` NMTS keeps a verifier and never the NMTS key. It cannot be reset, resent or replaced.`);
139
+ say(` A person should keep a copy somewhere else.`);
140
+ say(``);
141
+ if (issued !== null) {
142
+ say(`API key ${issued.keyId} made and stored in the same file (read, write, spend; stops ${issued.expiresAt}).`);
143
+ }
144
+ else {
145
+ say(`⚠ No API key was made: ${keyError ?? "unknown"}.`);
146
+ say(` \`${BINARY_NAME} key new --scopes read,write,spend\` makes one from the kept NMTS key.`);
147
+ }
148
+ say(``);
149
+ say(`Next:`);
150
+ say(` ${BINARY_NAME} trial apply the free trial's credits, if this week has places left`);
151
+ say(` ${BINARY_NAME} put <file> store a file`);
152
+ say(` ${BINARY_NAME} mcp serve this account to an MCP client (\`${BINARY_NAME} help mcp\`)`);
153
+ return 0;
154
+ }
155
+ /** One string field of a JSON object the server sent, or null. */
156
+ function field(value, name) {
157
+ if (!isRecord(value))
158
+ return null;
159
+ const found = value[name];
160
+ return typeof found === "string" && found.length > 0 ? found : null;
161
+ }
162
+ function machineIsTaken() {
163
+ return new NmtsError("This machine already keeps an NMTS key, and a new account will not replace it.", {
164
+ exitCode: 4,
165
+ nextStep: `Nothing was created and the pass was not spent. ${credentialsPath()} may hold the only copy ` +
166
+ `of that account's NMTS key. To keep the new account apart, run this again with ` +
167
+ `NMTS_CONFIG_DIR set to a new folder, and set it the same way for every later command.`,
168
+ });
169
+ }
170
+ /** The refusals a pass run can hear, each with what to do about it. */
171
+ function explain(error) {
172
+ if (error.code === "AGENT_PASS_INVALID") {
173
+ return new NmtsError("The pass did not open the door: it is mistyped, past its hour, or already used.", {
174
+ exitCode: 4,
175
+ nextStep: `Nothing was created and nothing was kept here. A pass works once, for sixty minutes. ` +
176
+ `Ask the person for a new one at ${HOME_URL}/ai and put it in ${AGENT_PASS_ENV_VAR}.`,
177
+ });
178
+ }
179
+ if (error.code === "TERMS_VERSION_MISMATCH") {
180
+ return new NmtsError("The documents in force were not accepted for this account.", {
181
+ // 5 — waiting on a person's agreement, as everywhere else in `create`.
182
+ exitCode: 5,
183
+ nextStep: `Nothing was created and the pass was not spent. The person who takes a pass on ${HOME_URL}/ai ` +
184
+ `accepts the Terms and the Privacy Policy for the account it makes; this pass carries no ` +
185
+ `acceptance, or the documents changed since it was taken. Ask the person for a new pass.`,
186
+ });
187
+ }
188
+ if (error.code === "ACCOUNT_EXISTS") {
189
+ return new NmtsError("An account with this id already exists.", {
190
+ exitCode: 1,
191
+ nextStep: `Nothing was created, and the pass is spent: one pass answers one question about an ` +
192
+ `account. A freshly drawn NMTS key cannot collide by chance, so ask the person for a new pass.`,
193
+ });
194
+ }
195
+ return error;
196
+ }
197
+ /**
198
+ * The server never answered, so nobody here knows whether the account exists.
199
+ *
200
+ * ⛔ THE FILE IS KEPT AND THE DOUBT IS SAID OUT LOUD — `create.ts`'s `uncertain`, for this path.
201
+ */
202
+ function uncertain(cause) {
203
+ return new NmtsError(`The server did not answer, so whether the account was created is not known here.`, {
204
+ exitCode: 1,
205
+ nextStep: [
206
+ `${credentialsPath()} was KEPT, and it holds the only NMTS key that account would have.`,
207
+ ``,
208
+ `\`${BINARY_NAME} whoami\` asks the server about it once it answers again. If the account was`,
209
+ `not made, the pass may still work: run this again after moving that file away.`,
210
+ ``,
211
+ `Cause: ${cause instanceof Error ? cause.message : String(cause)}`,
212
+ ].join("\n"),
213
+ });
214
+ }
@@ -41,6 +41,7 @@
41
41
  import { rmSync } from "node:fs";
42
42
  import { request, ServerError } from "../api.js";
43
43
  import { readCredentialsFile, resolveApiKey } from "../credentials.js";
44
+ import { AGENT_PASS_ENV_VAR } from "../env-vars.js";
44
45
  import { NmtsError } from "../errors.js";
45
46
  import { isRecord } from "../guards.js";
46
47
  import { humanCheck } from "../human-check.js";
@@ -52,6 +53,11 @@ import { codeFileTarget, jsonNeedsAFile, writeCodeFile } from "./create-code-fil
52
53
  import { attachWalletToNewAccount, refuseIfWalletIsTaken, sayWalletAttached } from "./openers-attach.js";
53
54
  export async function create(options = {}) {
54
55
  const say = options.write ?? ((line) => process.stdout.write(`${line}\n`));
56
+ // ⛔ A PASS IN THE ENVIRONMENT IS A THIRD PATH, and it is taken before the other two look at
57
+ // anything: a person already did their part on nmts.me/ai (`create-pass.ts`).
58
+ const pass = process.env[AGENT_PASS_ENV_VAR]?.trim() ?? "";
59
+ if (pass !== "")
60
+ return await throughPass(pass, options);
55
61
  const held = resolveApiKey();
56
62
  const stored = readCredentialsFile();
57
63
  const server = resolveServer(options.server ?? stored?.server);
@@ -149,6 +155,26 @@ export async function create(options = {}) {
149
155
  }
150
156
  return 0;
151
157
  }
158
+ /** The pass path. ⚠ `--out` and `--wallet` belong to the other two and are refused, not dropped. */
159
+ async function throughPass(pass, options) {
160
+ if (options.out !== undefined || options.wallet !== undefined || options.noWait === true) {
161
+ throw new NmtsError(`--out, --wallet and --no-wait do not go with ${AGENT_PASS_ENV_VAR}.`, {
162
+ exitCode: 2,
163
+ nextStep: `Nothing was created. With a pass the NMTS key is kept in this tool's own file.`,
164
+ });
165
+ }
166
+ const server = resolveServer(options.server);
167
+ const { createWithPass } = await import("./create-pass.js");
168
+ return await createWithPass({
169
+ server,
170
+ network: resolveNetwork(server, options.network),
171
+ pass,
172
+ json: options.json === true,
173
+ acceptTerms: options.acceptTerms,
174
+ acceptPrivacy: options.acceptPrivacy,
175
+ write: options.write,
176
+ });
177
+ }
152
178
  /** What documents this server is enforcing, read from the one route a key may ask. */
153
179
  async function termsInForce(server, apiKey) {
154
180
  const answer = await request(server, "/v1/account/summary", { token: apiKey });
@@ -18,3 +18,9 @@ export declare const AGGREGATOR_ENV_VAR = "NMTS_AGGREGATOR";
18
18
  export declare const RELAY_ENV_VAR = "NMTS_RELAY";
19
19
  /** Ask a different Sui JSON-RPC node the shard-count question. */
20
20
  export declare const SUI_RPC_ENV_VAR = "NMTS_SUI_RPC";
21
+ /**
22
+ * The one-time pass a person took on nmts.me/ai for their agent (D19g ⑥). `nmts create` spends it.
23
+ *
24
+ * ⛔ AN ENVIRONMENT VARIABLE AND NEVER AN OPTION: `args.ts` holds that no secret is one.
25
+ */
26
+ export declare const AGENT_PASS_ENV_VAR = "NMTS_AGENT_PASS";
package/dist/env-vars.js CHANGED
@@ -25,3 +25,9 @@ export const AGGREGATOR_ENV_VAR = "NMTS_AGGREGATOR";
25
25
  export const RELAY_ENV_VAR = "NMTS_RELAY";
26
26
  /** Ask a different Sui JSON-RPC node the shard-count question. */
27
27
  export const SUI_RPC_ENV_VAR = "NMTS_SUI_RPC";
28
+ /**
29
+ * The one-time pass a person took on nmts.me/ai for their agent (D19g ⑥). `nmts create` spends it.
30
+ *
31
+ * ⛔ AN ENVIRONMENT VARIABLE AND NEVER AN OPTION: `args.ts` holds that no secret is one.
32
+ */
33
+ export const AGENT_PASS_ENV_VAR = "NMTS_AGENT_PASS";
@@ -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 reaches at the rate the account pays after this upload.
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, which after a successful upload it is; the 30-day lockup is written
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;
@@ -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 reaches at the rate the account pays after this upload.
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, which after a successful upload it is; the 30-day lockup is written
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 end = runway.runwayInEpochs > 2n ** 40n ? runway.epoch + EPOCHS_PER_MONTH : runway.epoch + runway.runwayInEpochs;
89
- return Number(end);
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.0";
12
+ export declare const VERSION = "0.50.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. */
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.0";
21
+ export const VERSION = "0.50.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. */
@@ -15,3 +15,12 @@ one" — and without them it is refused. With `--json` the NMTS key does not go
15
15
  `--out <file>` is required and the JSON carries the path. A new account starts with no credits,
16
16
  and the free trial runs its own human check on every application. It stores nothing on this
17
17
  machine and switches nothing over.
18
+
19
+ With a one-time pass in `NMTS_AGENT_PASS` it needs no key and no browser. A person takes the pass
20
+ at nmts.me/ai by passing the human check there, and accepts the Terms and the Privacy Policy for
21
+ the account it makes. The pass makes one account, once, within sixty minutes. The new NMTS key is
22
+ kept in this tool's own file — sealed under `NMTS_PASSPHRASE` when that is set, otherwise in the
23
+ clear at mode 600 — and an API key with read, write and spend is made and kept beside it. The
24
+ account starts with its human check live, so `nmts trial apply` works at once. It refuses, before
25
+ spending the pass, when this machine already keeps an NMTS key; set `NMTS_CONFIG_DIR` to a new
26
+ folder for the new account. The pass is never an option on the command line.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needmoretruth/nmts-cli",
3
- "version": "0.49.0",
3
+ "version": "0.50.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.49.0",
9
+ "version": "0.50.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.49.0",
15
+ "version": "0.50.0",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },