@tinycloud/cli 1.3.0-beta.44 → 1.3.0-beta.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/cli",
3
- "version": "1.3.0-beta.44",
3
+ "version": "1.3.0-beta.46",
4
4
  "description": "TinyCloud CLI - manage data, delegations, and nodes from the terminal",
5
5
  "author": "TinyCloud, Inc.",
6
6
  "license": "EGPL",
@@ -35,11 +35,11 @@
35
35
  "dependencies": {
36
36
  "@tinycloud/share-sdk": "1.2.0-beta.6",
37
37
  "@tinycloud/share-envelope": "1.2.0-beta.0",
38
- "@tinycloud/node-sdk": "3.3.0-beta.35",
38
+ "@tinycloud/node-sdk": "3.3.0-beta.36",
39
39
  "@tinycloud/node-sdk-wasm": "1.7.8-beta.0",
40
- "@tinycloud/sdk-core": "3.3.0-beta.31",
40
+ "@tinycloud/sdk-core": "3.3.0-beta.36",
41
41
  "@tinycloud/sdk-services": "3.3.0-beta.25",
42
- "@tinycloud/operations": "0.7.0-beta.33",
42
+ "@tinycloud/operations": "0.7.0-beta.34",
43
43
  "chalk": "^5.3.0",
44
44
  "commander": "^14.0.0",
45
45
  "open": "^11.0.0",
@@ -47,7 +47,7 @@
47
47
  "siwe": "^3.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@tinycloud/courier": "0.2.0-beta.38",
50
+ "@tinycloud/courier": "0.2.0-beta.40",
51
51
  "@tinycloud/replica": "0.3.0-beta.10",
52
52
  "@types/node": "^20",
53
53
  "tsup": "^8.0.0",
@@ -279,6 +279,23 @@ threads for the same work, other channels): your human resumes it with
279
279
  `courier resume <peer> <threadId>`. A "thread paused" inform from the peer only
280
280
  means their side stopped waking; it is not a request, and needs no reply.
281
281
 
282
+ Pause notices use one fixed record per locally known thread, never records keyed
283
+ by incoming ids. Only our authored meta/message/task or a local wake/pause record
284
+ establishes a known thread; mirrored metadata does not. Newer peer notice ULIDs
285
+ within ten minutes of our clock update the peer pause latch: paused-to-resumed
286
+ clears it, resumed-to-paused queues one episode notice. Duplicate/old notices, repeated paused
287
+ states and unknown threads do not notify, across days and restarts. Every delivery
288
+ attempt, successful or failed, counts toward ten globally and ten per peer per
289
+ hour across channels; at most three attempts per notice, with persisted backoff.
290
+ Failed wake backoff starts when the attempt finishes and survives a restart;
291
+ approval wakes have a separate retry clock and never wait for message backoff.
292
+
293
+ Two fixed pending episode slots per known thread retain separate pause notices,
294
+ including across retries and restarts. Additional pauses while both slots are
295
+ occupied are included as a bounded repeated-pause count in the second notice.
296
+ The global hourly allowance reserves up to three attempts per locally paired
297
+ peer (at most the integer part of 10 divided by the peer count).
298
+
282
299
  ## Notify-only setup
283
300
 
284
301
  For the first handoff, run `courier watch --wake none`. It mirrors messages,
@@ -288,6 +305,14 @@ no wake budget and starts or messages no agent. Inbox JSON includes recent
288
305
  fixed-text notifications, even if the watcher already committed delivery
289
306
  receipts. The /courier view retains the owner's approval cards.
290
307
 
308
+ D mode preallocates one message slot and one approval slot per locally paired
309
+ peer. Each slot coalesces deliveries into a six-digit count (up to 999999+),
310
+ records its first local arrival time and latest validated thread ULID, and
311
+ keeps separate retry metadata. Arrivals during a dispatch remain pending for
312
+ another notice. The shared outbox admits and dispatches eligible peers in
313
+ round-robin order within each priority class, under the same hourly caps and
314
+ reserved shares. A message retry deadline does not delay the approval slot.
315
+
291
316
  Example only: pick your own channel (push, Telegram, email, or tail the log).
292
317
  This example appends only the fixed notice
293
318
  kind, validated peer handle and thread ID/fingerprint inside COURIER_HOME:
@@ -298,7 +323,7 @@ courier watch --wake none --notify exec --notify-exec 'printf "%s %s %s\n" "$COU
298
323
 
299
324
  `<COURIER_HOME>/notifications.jsonl` always exists after the first notification;
300
325
  it holds fixed-text status, never the peer's subject or message. Once notified,
301
- Start a session and watch it yourself. Paste this prompt (replace the
326
+ start a session and watch it yourself. Paste this prompt (replace the
302
327
  thread and peer with the IDs shown by `courier inbox`):
303
328
 
304
329
  ```text