@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 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 | defer
118
- file send | list | get | fetch | defer
119
- conversation show | receipts | mark-read | policy
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 conversation policy --identity Human --keep-history true
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`.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  bootWrapper,
3
3
  wrapperBooted
4
- } from "./chunk-MHVYJY3H.js";
4
+ } from "./chunk-LJ35FDQH.js";
5
5
  import "./chunk-FXKFSNKS.js";
6
6
  export {
7
7
  bootWrapper,
@@ -3,7 +3,7 @@ import {
3
3
  isOperationName,
4
4
  operationNames,
5
5
  operationSpec
6
- } from "./chunk-QRNZFPNJ.js";
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-SDNTPCKW.js";
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", "conversation"].includes(group) && command.operation !== "list-local-contact-book") {
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");