@ours.network/cli 1.0.0 → 2.0.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/README.md +16 -4
- package/dist/{boot-35BOHNSZ.js → boot-LJ2V4NSS.js} +1 -1
- package/dist/{chunk-ZFE47KH3.js → chunk-FKSRG5UJ.js} +3 -3
- package/dist/{chunk-MHVYJY3H.js → chunk-LJ35FDQH.js} +1500 -1023
- package/dist/{chunk-QRNZFPNJ.js → chunk-MS4TDUZY.js} +41 -42
- package/dist/{chunk-QZIL3IT7.js → chunk-NRPPG3WH.js} +1 -1
- package/dist/{chunk-SDNTPCKW.js → chunk-NWRXKQBD.js} +10 -12
- package/dist/commands.d.ts +10 -12
- package/dist/commands.js +1 -1
- package/dist/{daemon-UUG6P6GK.js → daemon-YCC24SVU.js} +2 -2
- package/dist/help.js +3 -3
- package/dist/lifecycle.js +1 -1
- package/dist/main.js +5 -5
- package/dist/mufl_code/351F16D444E6DAA252D4A8D829D17204360D9015FEF670ACE68FB4747BB3B14E.muflo +0 -0
- package/dist/operations.d.ts +32 -57
- package/dist/operations.js +1 -1
- package/dist/{server-TDJBEWTU.js → server-2RIEOKDA.js} +198 -145
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -114,9 +114,9 @@ identity create | create-root | create-temporary | close-temporary
|
|
|
114
114
|
profile set-bio | set-persona
|
|
115
115
|
invite create | list | revoke | accept
|
|
116
116
|
contact list | local | policy | remove | rename | respond
|
|
117
|
-
message send | list | get
|
|
118
|
-
file send | list | get | fetch
|
|
119
|
-
|
|
117
|
+
message send | list | get
|
|
118
|
+
file send | list | get | fetch
|
|
119
|
+
history list | get | files | file-info
|
|
120
120
|
daemon info | identities | unread | watch
|
|
121
121
|
```
|
|
122
122
|
|
|
@@ -128,13 +128,25 @@ ours profile set-bio --identity BuildBot --bio= # clear the bio
|
|
|
128
128
|
ours profile set-persona --identity BuildBot --persona= # clear the persona
|
|
129
129
|
ours message send --identity BuildBot --contact Peer --text "done" --json
|
|
130
130
|
ours file get --identity BuildBot --wire-ids ID1,ID2 --json
|
|
131
|
-
ours
|
|
131
|
+
ours history list --identity Human --limit 25 --json
|
|
132
|
+
ours history files --identity Human --peer-cid PEER_CID --json
|
|
132
133
|
```
|
|
133
134
|
|
|
134
135
|
An explicit file retrieval accepts 1–32 unique 64-hex wire IDs. `daemon watch`
|
|
135
136
|
first binds its `--identity` without force, changing the CLI lease; it can fail
|
|
136
137
|
with `BOUND_ELSEWHERE` when another live session holds that identity.
|
|
137
138
|
|
|
139
|
+
Message and file payloads live in identity-scoped SQLite/blob storage, not in
|
|
140
|
+
the MUFL packet. `message get` and `file get` consume only the selected unread
|
|
141
|
+
rows; the `history` group provides the persistent read-only view. There is no
|
|
142
|
+
defer, conversation-policy, or manual mark-read command.
|
|
143
|
+
|
|
144
|
+
This storage epoch requires a clean reset. Old daemon state is not migrated:
|
|
145
|
+
startup refuses it without modifying it. Stop applications, optionally copy the
|
|
146
|
+
old state as a manual backup, remove it yourself, and start clean. Old
|
|
147
|
+
identities, contacts, invites, pending payloads, and history are not carried
|
|
148
|
+
forward, and the installer never removes state automatically.
|
|
149
|
+
|
|
138
150
|
Malformed JSON, unknown input fields, invalid booleans/integers, and incomplete
|
|
139
151
|
file inputs fail closed before the request. Destructive identity/contact/invite
|
|
140
152
|
operations require `--yes`.
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
isOperationName,
|
|
4
4
|
operationNames,
|
|
5
5
|
operationSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MS4TDUZY.js";
|
|
7
7
|
import {
|
|
8
8
|
CliUsageError
|
|
9
9
|
} from "./chunk-6NFATG6P.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
IDENTITY_PREBIND_EXCEPTIONS,
|
|
14
14
|
commandSpec,
|
|
15
15
|
isCommandGroup
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NWRXKQBD.js";
|
|
17
17
|
|
|
18
18
|
// src/help.ts
|
|
19
19
|
var pad = (value, width = 32) => value.length >= width ? `${value} ` : value.padEnd(width);
|
|
@@ -71,7 +71,7 @@ function cliExample(group, action, command) {
|
|
|
71
71
|
const rendered = Array.isArray(value) ? value.join(",") : String(value);
|
|
72
72
|
args.push(fieldFlag(name), shellQuote(rendered));
|
|
73
73
|
}
|
|
74
|
-
if (["profile", "invite", "contact", "message", "file", "
|
|
74
|
+
if (["profile", "invite", "contact", "message", "file", "history"].includes(group) && command.operation !== "list-local-contact-book") {
|
|
75
75
|
args.push("--identity", "BuildBot");
|
|
76
76
|
}
|
|
77
77
|
if (group === "identity" && ["show", "release"].includes(action)) args.push("--identity", "BuildBot");
|