run402 4.40.0 → 4.42.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/README.md +7 -4
- package/cli.mjs +10 -2
- package/lib/argparse.mjs +1 -1
- package/lib/assets.mjs +10 -14
- package/lib/command-manifest.mjs +58 -49
- package/lib/deploy-v2.mjs +7 -10
- package/lib/doctor.mjs +12 -5
- package/lib/gitvault-scaffold.mjs +1 -1
- package/lib/gitvault-target.mjs +7 -9
- package/lib/gitvault.mjs +117 -1163
- package/lib/init.mjs +2 -2
- package/lib/notifications.mjs +4 -8
- package/lib/operator.mjs +1 -1
- package/lib/org.mjs +3 -3
- package/lib/repos.mjs +1261 -249
- package/lib/rooms-context.mjs +2 -3
- package/lib/rooms.mjs +11 -14
- package/lib/update-check.mjs +6 -8
- package/package.json +1 -1
- package/sdk/dist/errors.d.ts +5 -2
- package/sdk/dist/errors.d.ts.map +1 -1
- package/sdk/dist/errors.js.map +1 -1
- package/sdk/dist/namespaces/admin.d.ts +1 -1
- package/sdk/dist/namespaces/admin.js +1 -1
- package/sdk/dist/namespaces/deploy.types.d.ts +2 -2
- package/sdk/dist/namespaces/gitvault.crypto.d.ts +10 -0
- package/sdk/dist/namespaces/gitvault.crypto.d.ts.map +1 -1
- package/sdk/dist/namespaces/gitvault.crypto.js +11 -1
- package/sdk/dist/namespaces/gitvault.crypto.js.map +1 -1
- package/sdk/dist/namespaces/gitvault.d.ts +267 -31
- package/sdk/dist/namespaces/gitvault.d.ts.map +1 -1
- package/sdk/dist/namespaces/gitvault.js +299 -51
- package/sdk/dist/namespaces/gitvault.js.map +1 -1
- package/sdk/dist/namespaces/projects.d.ts +1 -1
- package/sdk/dist/namespaces/projects.js +1 -1
- package/sdk/dist/namespaces/projects.types.d.ts +1 -1
- package/sdk/dist/namespaces/projects.types.d.ts.map +1 -1
- package/sdk/dist/node/gitvault-apply.d.ts +1 -1
- package/sdk/dist/node/gitvault-apply.d.ts.map +1 -1
- package/sdk/dist/node/gitvault-apply.js +6 -6
- package/sdk/dist/node/gitvault-apply.js.map +1 -1
- package/sdk/dist/node/gitvault-creation-journal.js +1 -1
- package/sdk/dist/node/gitvault-creation-journal.js.map +1 -1
- package/sdk/dist/node/gitvault-deploy.js +2 -2
- package/sdk/dist/node/gitvault-deploy.js.map +1 -1
- package/sdk/dist/node/gitvault-mirror-backend.js +1 -1
- package/sdk/dist/node/gitvault-mirror-backend.js.map +1 -1
- package/sdk/dist/node/gitvault-mirror.js +1 -1
- package/sdk/dist/node/gitvault-mirror.js.map +1 -1
- package/sdk/dist/node/gitvault-publication.d.ts +70 -20
- package/sdk/dist/node/gitvault-publication.d.ts.map +1 -1
- package/sdk/dist/node/gitvault-publication.js +44 -17
- package/sdk/dist/node/gitvault-publication.js.map +1 -1
- package/sdk/dist/node/gitvault-recover.d.ts +15 -1
- package/sdk/dist/node/gitvault-recover.d.ts.map +1 -1
- package/sdk/dist/node/gitvault-recover.js +8 -4
- package/sdk/dist/node/gitvault-recover.js.map +1 -1
- package/sdk/dist/scoped.d.ts +2 -2
- package/sdk/dist/scoped.js +1 -1
package/lib/init.mjs
CHANGED
|
@@ -57,8 +57,8 @@ Output:
|
|
|
57
57
|
project the gitvault scaffold acted on.
|
|
58
58
|
|
|
59
59
|
init scaffolds the git remote only. It does NOT allocate the vault — that is
|
|
60
|
-
\`run402
|
|
61
|
-
therefore stays an explicit step.
|
|
60
|
+
\`run402 repos create --project <id>\`, which mints key material and a
|
|
61
|
+
recovery receipt and therefore stays an explicit step.
|
|
62
62
|
|
|
63
63
|
Steps (idempotent when re-run with the same rail; pass --switch-rail to change rails):
|
|
64
64
|
1. Creates config directory (~/.config/run402)
|
package/lib/notifications.mjs
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `run402 notifications` —
|
|
3
|
-
*
|
|
4
|
-
* The group was two nouns in one coat: `list`/`get` read delivery RECORDS
|
|
5
|
-
* while `preferences`/`channels`/`rules` were the CONFIGURATION producing
|
|
6
|
-
* them. It has been split along that line:
|
|
2
|
+
* `run402 notifications` — tombstone dispatcher. Delivery RECORDS and the
|
|
3
|
+
* CONFIGURATION producing them live under separate nouns:
|
|
7
4
|
*
|
|
8
5
|
* notifications list|get -> deliveries list|get
|
|
9
6
|
* notifications channels -> contacts (merged with escalations contacts)
|
|
10
7
|
* notifications rules -> subscriptions
|
|
11
8
|
* notifications preferences -> contacts preferences
|
|
12
9
|
*
|
|
13
|
-
* Reserved, not aliased
|
|
14
|
-
*
|
|
15
|
-
* one forever.
|
|
10
|
+
* Reserved, not aliased: each subcommand names its successor so one failed
|
|
11
|
+
* call teaches the new model, where an alias would teach the old one forever.
|
|
16
12
|
*/
|
|
17
13
|
import { fail } from "./sdk-errors.mjs";
|
|
18
14
|
import { hasHelp } from "./argparse.mjs";
|
package/lib/operator.mjs
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* Agent-first: JSON to stdout. `login` additionally prints the verification URL
|
|
16
16
|
* + user code to stderr (human-in-the-loop) and degrades gracefully when not a
|
|
17
|
-
* TTY. Gated on the gateway device-auth bridge
|
|
17
|
+
* TTY. Gated on the gateway device-auth bridge.
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
import { setTimeout as sleep } from "node:timers/promises";
|
package/lib/org.mjs
CHANGED
|
@@ -438,9 +438,9 @@ async function payoutWallet(args) {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
/**
|
|
441
|
-
* `run402 org slug <slug>` — claim or rename the org's address-form slug
|
|
442
|
-
*
|
|
443
|
-
*
|
|
441
|
+
* `run402 org slug <slug>` — claim or rename the org's address-form slug.
|
|
442
|
+
* Owner-only, and a genesis claim spends a one-time claim fee — this is a
|
|
443
|
+
* PAID, side-effecting mutation, so it
|
|
444
444
|
* requires `Idempotency-Key`; the SDK generates one client-side when
|
|
445
445
|
* `--idempotency-key` is omitted, so a retried call after a dropped response
|
|
446
446
|
* can never double-bill.
|