@mattstack/rt-client 0.15.0 → 0.15.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/dist/client.d.ts CHANGED
@@ -105,10 +105,7 @@ export declare function chatWho(a: {
105
105
  }, o?: RtClientOptions): Promise<RtResponse<{
106
106
  members: ChatMember[];
107
107
  }>>;
108
- export declare function chatMark(a: {
109
- handle: string;
110
- room?: string;
111
- }, o?: RtClientOptions): Promise<RtResponse<Record<string, never>>>;
108
+ export declare function chatMark(a: Commands["chat:mark"]["payload"], o?: RtClientOptions): Promise<RtResponse<Commands["chat:mark"]["data"]>>;
112
109
  export declare function chatMessages(a: {
113
110
  room: string;
114
111
  before?: number;
@@ -869,6 +869,7 @@ export interface Commands {
869
869
  payload: {
870
870
  handle: string;
871
871
  room?: string;
872
+ upto?: number;
872
873
  };
873
874
  data: Record<string, never>;
874
875
  };
package/dist/index.js CHANGED
@@ -118,6 +118,8 @@ function chatMark(a, o = {}) {
118
118
  const payload = { handle: a.handle };
119
119
  if (a.room !== undefined)
120
120
  payload.room = a.room;
121
+ if (a.upto !== undefined)
122
+ payload.upto = a.upto;
121
123
  return rtCommand("chat:mark", payload, { sockPath: o.sockPath, timeoutMs: o.timeoutMs ?? 1e4 });
122
124
  }
123
125
  function chatMessages(a, o = {}) {
@@ -1051,6 +1053,14 @@ var REGISTRY = [
1051
1053
  merge: "deep",
1052
1054
  description: "This developer's triage user-intent flags (which triage sweeps run automatically); a sibling flat key of board.triage.doctorSkill, not its container — the board reader assembles the two independently."
1053
1055
  },
1056
+ {
1057
+ key: "board.reReview",
1058
+ type: "object",
1059
+ scopes: ["user", "team"],
1060
+ merge: "deep",
1061
+ default: { enabled: true },
1062
+ description: "Gate for the board's automatic re-review sweep ({enabled}); rt's cron.triage step installs the board-triage trigger only while this is on. A fresh key, not an ownership-latch port, so a default is fine here."
1063
+ },
1054
1064
  {
1055
1065
  key: "board.agent.account",
1056
1066
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattstack/rt-client",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
package/src/client.ts CHANGED
@@ -223,12 +223,13 @@ export function chatWho(
223
223
  }
224
224
 
225
225
  export function chatMark(
226
- a: { handle: string; room?: string },
226
+ a: Commands["chat:mark"]["payload"],
227
227
  o: RtClientOptions = {},
228
- ): Promise<RtResponse<Record<string, never>>> {
228
+ ): Promise<RtResponse<Commands["chat:mark"]["data"]>> {
229
229
  const payload: Record<string, unknown> = { handle: a.handle };
230
230
  if (a.room !== undefined) payload.room = a.room;
231
- return rtCommand<Record<string, never>>("chat:mark", payload, { sockPath: o.sockPath, timeoutMs: o.timeoutMs ?? 10_000 });
231
+ if (a.upto !== undefined) payload.upto = a.upto;
232
+ return rtCommand<Commands["chat:mark"]["data"]>("chat:mark", payload, { sockPath: o.sockPath, timeoutMs: o.timeoutMs ?? 10_000 });
232
233
  }
233
234
 
234
235
  export function chatMessages(
package/src/commands.ts CHANGED
@@ -472,7 +472,7 @@ export interface Commands {
472
472
  "chat:read": { payload: { handle: string; room?: string; limit?: number; sinceMs?: number }; data: { rooms: { room: string; messages: ChatMessage[] }[] } };
473
473
  "chat:rooms": { payload: { handle: string; includeArchived?: boolean }; data: { rooms: RoomSummary[] } };
474
474
  "chat:who": { payload: { room: string }; data: { members: ChatMember[] } };
475
- "chat:mark": { payload: { handle: string; room?: string }; data: Record<string, never> };
475
+ "chat:mark": { payload: { handle: string; room?: string; upto?: number }; data: Record<string, never> };
476
476
  "chat:messages": { payload: { room: string; before?: number; limit?: number }; data: { messages: ChatMessage[] } };
477
477
 
478
478
  // A session id keys these to one signed-in handle, not a room-membership
@@ -473,6 +473,14 @@ export const REGISTRY: readonly SettingDef[] = [
473
473
  merge: "deep",
474
474
  description: "This developer's triage user-intent flags (which triage sweeps run automatically); a sibling flat key of board.triage.doctorSkill, not its container — the board reader assembles the two independently.",
475
475
  },
476
+ {
477
+ key: "board.reReview",
478
+ type: "object",
479
+ scopes: ["user", "team"],
480
+ merge: "deep",
481
+ default: { enabled: true },
482
+ description: "Gate for the board's automatic re-review sweep ({enabled}); rt's cron.triage step installs the board-triage trigger only while this is on. A fresh key, not an ownership-latch port, so a default is fine here.",
483
+ },
476
484
 
477
485
  // --- board (machine) ---------------------------------------------------
478
486
  {