replica-bridge 0.3.19 → 0.3.20
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 +1 -1
- package/src/bridge/board.js +7 -3
package/package.json
CHANGED
package/src/bridge/board.js
CHANGED
|
@@ -39,13 +39,17 @@ const REC = "[A-Za-z0-9_.:-]+";
|
|
|
39
39
|
/**
|
|
40
40
|
* GETs (#367). /session also writes TASK.md in the task's working folder, which is what 开工 asks for; /share and /me
|
|
41
41
|
* only read. From 0.3.16 also one item, a task's source (`?offset=` pages its text), as the backend's own page opens it.
|
|
42
|
-
*
|
|
42
|
+
* From 0.3.20 also the change log, which unlike the task reads marks nothing seen: the phone counts new tasks from it
|
|
43
|
+
* for the sidebar while 看板 is closed; and the read state every client shares (agens-backend 0.15.0), which the phone
|
|
44
|
+
* reads and writes so what was looked at on the desktop is not new again on the phone.
|
|
45
|
+
* Not /assist, /mcp, /search, /context, /changes/stream (the bridge's own) or anything under /ui.
|
|
43
46
|
*/
|
|
44
47
|
const READS = [/^\/v1\/status$/, /^\/v1\/today$/, /^\/v1\/recommendations$/, new RegExp(`^/v1/recommendations/${REC}$`),
|
|
45
|
-
new RegExp(`^/v1/recommendations/${REC}/(share|session)$`), /^\/v1\/me$/, new RegExp(`^/v1/items/${REC}$`)
|
|
48
|
+
new RegExp(`^/v1/recommendations/${REC}/(share|session)$`), /^\/v1\/me$/, new RegExp(`^/v1/items/${REC}$`), /^\/v1\/changes$/,
|
|
49
|
+
/^\/v1\/me\/read-state$/];
|
|
46
50
|
|
|
47
51
|
/** POSTs (#367): a task's follow-up actions, cancelling its preparation note, and muting a conversation. Nothing else. */
|
|
48
|
-
const WRITES = [new RegExp(`^/v1/recommendations/${REC}/actions$`), new RegExp(`^/v1/recommendations/${REC}/prep/cancel$`), /^\/v1\/me\/muted$/];
|
|
52
|
+
const WRITES = [new RegExp(`^/v1/recommendations/${REC}/actions$`), new RegExp(`^/v1/recommendations/${REC}/prep/cancel$`), /^\/v1\/me\/muted$/, /^\/v1\/me\/read-state$/];
|
|
49
53
|
/** agens-backend src/recs.mjs ACTIONS. */
|
|
50
54
|
export const BOARD_ACTIONS = ["accept", "snooze", "delegate", "dismiss", "done", "reopen"] ;
|
|
51
55
|
|