@log0u7/opencode-mesh 0.31.0 → 0.33.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/README.md +12 -4
  3. package/dist/lib/client.d.ts +19 -0
  4. package/dist/lib/client.d.ts.map +1 -1
  5. package/dist/lib/client.js +43 -1
  6. package/dist/lib/client.js.map +1 -1
  7. package/dist/lib/db.d.ts.map +1 -1
  8. package/dist/lib/db.js +93 -1
  9. package/dist/lib/db.js.map +1 -1
  10. package/dist/lib/fanout.d.ts.map +1 -1
  11. package/dist/lib/fanout.js +0 -11
  12. package/dist/lib/fanout.js.map +1 -1
  13. package/dist/lib/guidance.d.ts.map +1 -1
  14. package/dist/lib/guidance.js +5 -1
  15. package/dist/lib/guidance.js.map +1 -1
  16. package/dist/lib/mail.d.ts +107 -11
  17. package/dist/lib/mail.d.ts.map +1 -1
  18. package/dist/lib/mail.js +336 -53
  19. package/dist/lib/mail.js.map +1 -1
  20. package/dist/lib/outbox.d.ts +123 -0
  21. package/dist/lib/outbox.d.ts.map +1 -0
  22. package/dist/lib/outbox.js +379 -0
  23. package/dist/lib/outbox.js.map +1 -0
  24. package/dist/lib/serve.d.ts +5 -0
  25. package/dist/lib/serve.d.ts.map +1 -1
  26. package/dist/lib/serve.js +158 -1
  27. package/dist/lib/serve.js.map +1 -1
  28. package/dist/lib/sqlite.d.ts +3 -1
  29. package/dist/lib/sqlite.d.ts.map +1 -1
  30. package/dist/lib/sqlite.js +4 -2
  31. package/dist/lib/sqlite.js.map +1 -1
  32. package/dist/lib/stream.d.ts +63 -0
  33. package/dist/lib/stream.d.ts.map +1 -0
  34. package/dist/lib/stream.js +300 -0
  35. package/dist/lib/stream.js.map +1 -0
  36. package/dist/lib/version.d.ts +2 -0
  37. package/dist/lib/version.d.ts.map +1 -0
  38. package/dist/lib/version.js +20 -0
  39. package/dist/lib/version.js.map +1 -0
  40. package/dist/lib/wake.d.ts +25 -9
  41. package/dist/lib/wake.d.ts.map +1 -1
  42. package/dist/lib/wake.js +146 -43
  43. package/dist/lib/wake.js.map +1 -1
  44. package/dist/plugin-v2.d.ts.map +1 -1
  45. package/dist/plugin-v2.js +166 -11
  46. package/dist/plugin-v2.js.map +1 -1
  47. package/dist/plugin.d.ts.map +1 -1
  48. package/dist/plugin.js +5 -0
  49. package/dist/plugin.js.map +1 -1
  50. package/dist/tools.d.ts +0 -6
  51. package/dist/tools.d.ts.map +1 -1
  52. package/dist/tools.js +185 -105
  53. package/dist/tools.js.map +1 -1
  54. package/package.json +1 -1
@@ -12,6 +12,9 @@ export type Mailbox = {
12
12
  * registry pushed at its rebind) — addressing-only, never a delivery
13
13
  * target, never woken. */
14
14
  node_id: string | null;
15
+ /** The LOGICAL clock per name (the refonte 3.2): incremented at each
16
+ * rebind, the federation LWW resolves on it instead of the wall clock. */
17
+ epoch: number;
15
18
  };
16
19
  export type RegisterMailboxInput = {
17
20
  name: string;
@@ -32,6 +35,9 @@ export type DeliverInput = {
32
35
  subject: string;
33
36
  body: string;
34
37
  reply_to?: string | null;
38
+ /** notify (default) wakes per the wake rules; fyi NEVER wakes — read at
39
+ * the next drain or flash (the silent DM). */
40
+ kind?: "notify" | "fyi";
35
41
  /** Cross-host dedup: the origin message's id. When a message with this
36
42
  * origin_id already exists locally, the delivery is skipped (the fanout
37
43
  * can hand the same broadcast to a node through several paths). */
@@ -65,6 +71,10 @@ export type InboxRow = {
65
71
  };
66
72
  export declare const MESSAGE_TTL_MS: number;
67
73
  export declare const RESEND_WINDOW_MS: number;
74
+ /** The absolute collapse window (0.32.0): an identical re-send this fast is
75
+ * mechanical (the wake double-prompt), never a human ping — collapsed even
76
+ * when the original was already read. */
77
+ export declare const RESEND_ABSOLUTE_WINDOW_MS: number;
68
78
  export declare function registerMailbox(db: MeshDb, input: RegisterMailboxInput): Mailbox;
69
79
  export declare function mailboxByBindKey(db: MeshDb, bind_key: string): Mailbox[];
70
80
  export declare function mailboxBySession(db: MeshDb, session_id: string): Mailbox | null;
@@ -109,17 +119,6 @@ export declare function withTransaction<T>(db: MeshDb, fn: () => T): T;
109
119
  * restart: worse than the bug it would fix.
110
120
  */
111
121
  export declare function inboxRead(db: MeshDb, session_id: string, ack: boolean): InboxRow[];
112
- /**
113
- * First unread reply for mesh_wait, with the same atomic fetch+ack as
114
- * inboxRead (same hot-swap race, same fix, same residual window).
115
- */
116
- export declare function waitReplyRead(db: MeshDb, reply_to: string, session_id: string): InboxRow | null;
117
- /** The wait matcher (0.31.0): the exact reply_to match first, then the
118
- * sender match — ANY message from the request's recipient box that arrived
119
- * after the request. A reply that bypassed the auto-fill (a legacy wire
120
- * path, a DB-level write) still returns the waiter: the correlation no
121
- * longer depends on anyone's discipline. The matched row is acked. */
122
- export declare function waitReplyBroad(db: MeshDb, reply_to: string, session_id: string): InboxRow | null;
123
122
  /** The unread rows that do NOT answer `reply_to` — the wake-path replies
124
123
  * (bare, reply_to NULL: the flash carries the subject, not the id) that would
125
124
  * otherwise starve a mesh_wait caller to its full timeout. Listed in the
@@ -160,6 +159,9 @@ export type FederatedRegistryRow = {
160
159
  pools: string;
161
160
  primary_pool: string | null;
162
161
  registered_at: number;
162
+ /** The LOGICAL clock per name (the refonte 3.2): the LWW resolves on it
163
+ * when present; absent = a pre-3.2 peer, the legacy wall-clock rules. */
164
+ epoch?: number;
163
165
  };
164
166
  export declare function mergeFederatedRegistry(db: MeshDb, rows: FederatedRegistryRow[], senderNodeId: string): number;
165
167
  /** The pending question a reply should answer, WITHOUT agent discipline:
@@ -169,6 +171,100 @@ export declare function mergeFederatedRegistry(db: MeshDb, rows: FederatedRegist
169
171
  * root cause (bare replies invisible to the correlation) dies at the
170
172
  * source. Explicit reply_to always wins; nothing pending = NULL. */
171
173
  export declare function lastUnansweredFrom(db: MeshDb, fromBox: string, toBox: string, sinceMs?: number): string | null;
174
+ /** The flash single-flight (0.32.0): claim the box's announceable unreads
175
+ * ATOMICALLY in the shared database — the decision "already flashed" lives
176
+ * in the store every instance sees, not in per-instance memory (two plugin
177
+ * instances' wake loops each iterate ALL boxes with their own pendingPrompt
178
+ * maps: neither saw the other's gate, 6admin got prompted 13s apart and
179
+ * answered twice). Returns the claimed row count: 0 = nothing fresh (or
180
+ * another instance just claimed it) — skip the prompt. Rows whose flash is
181
+ * older than staleAfterMs are RE-claimed: that is the reminder path (the
182
+ * fatigue mute re-prompts through it), 0 = first flash only. */
183
+ export declare function claimFlash(db: MeshDb, box: string, now: number, staleAfterMs: number): {
184
+ claimed: number;
185
+ at: number;
186
+ };
187
+ /** Release a flash claim whose prompt FAILED: the rows go back to NULL so
188
+ * the next tick re-claims them — a claimed-but-never-announced delivery is
189
+ * the silent-starvation class (the flash died, the mail looks announced). */
190
+ export declare function releaseFlash(db: MeshDb, box: string, at: number): void;
191
+ /** The content-bearing flash (0.33 refonte P1.1): claim the box's
192
+ * announceable unreads AND, when the whole batch fits the character budget,
193
+ * CONSUME it in the same UPDATE (flashed_at set, status read) and return the
194
+ * payload. The wake prompt then carries the mail itself: the agent reads the
195
+ * content in the flash and skips the mesh_inbox turn — one turn per wake
196
+ * instead of two. An oversized batch claims WITHOUT content (the compact
197
+ * flash path: mesh_inbox carries the bodies at the next turn). Atomic: the
198
+ * read, the budget check and the claim+consume happen in one transaction. */
199
+ export declare function claimFlashWithContent(db: MeshDb, box: string, now: number, staleAfterMs: number, maxChars: number): {
200
+ claimed: number;
201
+ at: number;
202
+ content: string | null;
203
+ };
204
+ export type TaskState = "submitted" | "working" | "input_required" | "completed" | "failed" | "canceled";
205
+ export declare const TASK_OPEN_STATES: readonly ["submitted", "working", "input_required"];
206
+ export type TaskRow = {
207
+ id: string;
208
+ from_box: string | null;
209
+ to_box: string;
210
+ group_id: string | null;
211
+ question: string;
212
+ result: string | null;
213
+ state: TaskState;
214
+ created_at: number;
215
+ updated_at: number;
216
+ deadline: number | null;
217
+ };
218
+ /** mesh_ask: submit a task — the row lands and the responder is notified
219
+ * (a notify message carrying the task id and the reply instruction). The
220
+ * correlation is server-side: the reply comes through mesh_reply(task_id),
221
+ * reply_to is no longer part of the contract. Returns immediately. */
222
+ export declare function askTask(db: MeshDb, input: {
223
+ from_box: string | null;
224
+ to_box: string;
225
+ question: string;
226
+ group_id?: string | null;
227
+ deadline?: number | null;
228
+ }): TaskRow;
229
+ /** The task by id (or null). */
230
+ export declare function getTask(db: MeshDb, id: string): TaskRow | null;
231
+ /** mesh_reply: the responder answers a task. ONLY the task's to_box owner
232
+ * may reply. Terminal states (and input_required) notify the asker; a
233
+ * group notifies ONCE, when ALL its tasks are answered (the digest — the
234
+ * collective ask costs one wake instead of one per task). */
235
+ export declare function replyTask(db: MeshDb, taskId: string, replyingBox: string, result: string, state?: TaskState): {
236
+ ok: boolean;
237
+ error?: string;
238
+ notified: boolean;
239
+ cross?: boolean;
240
+ };
241
+ /** The deadline sweeper: expired open tasks fail WITHOUT intervention and
242
+ * the asker is notified (the group rules apply). Returns the swept count. */
243
+ export declare function sweepTasks(db: MeshDb, now: number): number;
244
+ /** mesh_tasks: the compact listing (no blocking). group filters; the caller's
245
+ * boxes see the tasks they asked OR are asked. */
246
+ export declare function listTasks(db: MeshDb, boxes: string[], groupId?: string): TaskRow[];
172
247
  /** The local registry rows this node owns (for the /registry-sync push). */
173
248
  export declare function localRegistryRows(db: MeshDb): FederatedRegistryRow[];
249
+ export declare const RETENTION_MS: number;
250
+ /** Purge the delivered history: the SENT outbox rows and the TERMINAL tasks
251
+ * older than 7 days. The queued/failed outbox rows and the open tasks stay
252
+ * (the live state). Called from the wake tick (the cheap indexed scans). */
253
+ export declare function purgeDeliveredHistory(db: MeshDb, now: number): {
254
+ outbox: number;
255
+ tasks: number;
256
+ };
257
+ export declare const BOARD_KEYS: readonly ["task", "blocker", "state", "eta"];
258
+ export type BoardKey = (typeof BOARD_KEYS)[number];
259
+ /** mesh_board_set: write ONE status key for the box. NO wake — the board is
260
+ * shared state: nobody is interrupted by an update, whoever needs it reads
261
+ * it (mesh_board_get). The keys are FIXED (the schema above) so the reads
262
+ * stay comparable across the fleet. */
263
+ export declare function boardSet(db: MeshDb, box: string, key: BoardKey, value: string, now: number): void;
264
+ /** mesh_board_get: the compact read — ONE line per box, the keys in the
265
+ * fixed order. The pool filter keeps the boxes carrying that pool. */
266
+ export declare function boardGet(db: MeshDb, pool?: string): Array<{
267
+ box: string;
268
+ line: string;
269
+ }>;
174
270
  //# sourceMappingURL=mail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["../../src/lib/mail.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQpD,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB;;8BAE0B;IAC1B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;gFAC4E;IAC5E,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;kFAC8E;IAC9E,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE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