@songsid/agend 2.4.0-beta.20 → 2.4.0-beta.22

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 (256) hide show
  1. package/dist/agent-cli-instructions.md +1 -1
  2. package/dist/backend/claude-carry.d.ts +11 -0
  3. package/dist/backend/claude-carry.js +88 -6
  4. package/dist/backend/claude-carry.js.map +1 -1
  5. package/dist/backend/claude-code.js +3 -0
  6. package/dist/backend/claude-code.js.map +1 -1
  7. package/dist/build-provenance.json +1 -1
  8. package/dist/cache-ledger.d.ts +23 -21
  9. package/dist/cache-ledger.js +70 -6
  10. package/dist/cache-ledger.js.map +1 -1
  11. package/dist/cache-prices.d.ts +8 -6
  12. package/dist/cache-prices.js +12 -5
  13. package/dist/cache-prices.js.map +1 -1
  14. package/dist/cache-service.d.ts +9 -5
  15. package/dist/cache-service.js +202 -50
  16. package/dist/cache-service.js.map +1 -1
  17. package/dist/channel/mcp-tools.js +6 -4
  18. package/dist/channel/mcp-tools.js.map +1 -1
  19. package/dist/cli-audited.js +2 -1
  20. package/dist/cli-audited.js.map +1 -1
  21. package/dist/cli.js +4 -1
  22. package/dist/cli.js.map +1 -1
  23. package/dist/contact-auth-policy.js +1 -1
  24. package/dist/contact-auth-policy.js.map +1 -1
  25. package/dist/contact-auth-service.js +8 -2
  26. package/dist/contact-auth-service.js.map +1 -1
  27. package/dist/contact-auth-store.d.ts +3 -0
  28. package/dist/contact-auth-store.js +34 -8
  29. package/dist/contact-auth-store.js.map +1 -1
  30. package/dist/contact-auth-types.d.ts +3 -2
  31. package/dist/contact-auth-types.js.map +1 -1
  32. package/dist/contact-change-proposals.d.ts +47 -0
  33. package/dist/contact-change-proposals.js +132 -0
  34. package/dist/contact-change-proposals.js.map +1 -0
  35. package/dist/daemon.d.ts +31 -0
  36. package/dist/daemon.js +149 -2
  37. package/dist/daemon.js.map +1 -1
  38. package/dist/delivery-outbox.d.ts +10 -0
  39. package/dist/delivery-outbox.js +21 -0
  40. package/dist/delivery-outbox.js.map +1 -1
  41. package/dist/fleet-manager.d.ts +65 -1
  42. package/dist/fleet-manager.js +338 -20
  43. package/dist/fleet-manager.js.map +1 -1
  44. package/dist/general-knowledge/skills/concepts/SKILL.md +2 -1
  45. package/dist/general-knowledge/skills/hub/SKILL.md +45 -5
  46. package/dist/general-knowledge/skills/task-board/SKILL.md +4 -0
  47. package/dist/general-knowledge/skills/web-appearance/SKILL.md +1 -1
  48. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +16 -6
  49. package/dist/hub/agent-pictures-model.d.ts +275 -0
  50. package/dist/hub/agent-pictures-model.js +103 -0
  51. package/dist/hub/agent-pictures-model.js.map +1 -0
  52. package/dist/hub/agent-pictures.d.ts +64 -0
  53. package/dist/hub/agent-pictures.js +255 -0
  54. package/dist/hub/agent-pictures.js.map +1 -0
  55. package/dist/hub/client.d.ts +4 -0
  56. package/dist/hub/client.js +23 -2
  57. package/dist/hub/client.js.map +1 -1
  58. package/dist/hub/compose/member.d.ts +14 -3
  59. package/dist/hub/compose/member.js +46 -10
  60. package/dist/hub/compose/member.js.map +1 -1
  61. package/dist/hub/compose/server.d.ts +6 -5
  62. package/dist/hub/compose/server.js +7 -3
  63. package/dist/hub/compose/server.js.map +1 -1
  64. package/dist/hub/direct-posts-model.d.ts +1 -0
  65. package/dist/hub/direct-posts-model.js +2 -0
  66. package/dist/hub/direct-posts-model.js.map +1 -0
  67. package/dist/hub/direct-posts.d.ts +36 -0
  68. package/dist/hub/direct-posts.js +145 -0
  69. package/dist/hub/direct-posts.js.map +1 -0
  70. package/dist/hub/http/compose.d.ts +5 -0
  71. package/dist/hub/http/compose.js +158 -20
  72. package/dist/hub/http/compose.js.map +1 -1
  73. package/dist/hub/http/core.d.ts +9 -1
  74. package/dist/hub/http/core.js +21 -1
  75. package/dist/hub/http/core.js.map +1 -1
  76. package/dist/hub/http/deps.d.ts +1 -0
  77. package/dist/hub/http/schema.js +7 -0
  78. package/dist/hub/http/schema.js.map +1 -1
  79. package/dist/hub/init/text.js +1 -1
  80. package/dist/hub/join/service.d.ts +2 -0
  81. package/dist/hub/join/service.js +7 -3
  82. package/dist/hub/join/service.js.map +1 -1
  83. package/dist/hub/member/agent-pictures.d.ts +76 -0
  84. package/dist/hub/member/agent-pictures.js +196 -0
  85. package/dist/hub/member/agent-pictures.js.map +1 -0
  86. package/dist/hub/member/direct-rooms.d.ts +9 -0
  87. package/dist/hub/member/direct-rooms.js +14 -0
  88. package/dist/hub/member/direct-rooms.js.map +1 -0
  89. package/dist/hub/member/room-ask.d.ts +22 -1
  90. package/dist/hub/member/room-ask.js +99 -5
  91. package/dist/hub/member/room-ask.js.map +1 -1
  92. package/dist/hub/member/room-asker-store.d.ts +48 -0
  93. package/dist/hub/member/room-asker-store.js +181 -0
  94. package/dist/hub/member/room-asker-store.js.map +1 -0
  95. package/dist/hub/member/room-post.d.ts +11 -10
  96. package/dist/hub/member/room-post.js +51 -7
  97. package/dist/hub/member/room-post.js.map +1 -1
  98. package/dist/hub/policy.d.ts +11 -2
  99. package/dist/hub/policy.js +60 -7
  100. package/dist/hub/policy.js.map +1 -1
  101. package/dist/hub/protocol.d.ts +254 -1
  102. package/dist/hub/protocol.js +20 -8
  103. package/dist/hub/protocol.js.map +1 -1
  104. package/dist/hub/representative.d.ts +38 -0
  105. package/dist/hub/representative.js +140 -12
  106. package/dist/hub/representative.js.map +1 -1
  107. package/dist/hub/room-asker-identity-model.d.ts +53 -0
  108. package/dist/hub/room-asker-identity-model.js +14 -0
  109. package/dist/hub/room-asker-identity-model.js.map +1 -0
  110. package/dist/hub/room-asker-identity.d.ts +22 -0
  111. package/dist/hub/room-asker-identity.js +43 -0
  112. package/dist/hub/room-asker-identity.js.map +1 -0
  113. package/dist/hub/rooms/agents.d.ts +2 -0
  114. package/dist/hub/rooms/agents.js +30 -3
  115. package/dist/hub/rooms/agents.js.map +1 -1
  116. package/dist/hub/rooms/asker-identity.d.ts +21 -0
  117. package/dist/hub/rooms/asker-identity.js +86 -0
  118. package/dist/hub/rooms/asker-identity.js.map +1 -0
  119. package/dist/hub/rooms/direct-view.d.ts +3 -2
  120. package/dist/hub/rooms/direct-view.js +23 -8
  121. package/dist/hub/rooms/direct-view.js.map +1 -1
  122. package/dist/hub/rooms/office.d.ts +27 -0
  123. package/dist/hub/rooms/office.js +12 -2
  124. package/dist/hub/rooms/office.js.map +1 -1
  125. package/dist/hub/rooms/service.d.ts +38 -1
  126. package/dist/hub/rooms/service.js +56 -3
  127. package/dist/hub/rooms/service.js.map +1 -1
  128. package/dist/hub/rooms/types.d.ts +5 -2
  129. package/dist/hub/rooms.d.ts +9 -0
  130. package/dist/hub/rooms.js +97 -26
  131. package/dist/hub/rooms.js.map +1 -1
  132. package/dist/hub/runtime.d.ts +1 -1
  133. package/dist/hub/server.js +24 -2
  134. package/dist/hub/server.js.map +1 -1
  135. package/dist/hub/session-directory-transition.d.ts +1 -0
  136. package/dist/hub/session-directory-transition.js +15 -9
  137. package/dist/hub/session-directory-transition.js.map +1 -1
  138. package/dist/hub/session-limits.d.ts +58 -0
  139. package/dist/hub/session-limits.js +121 -0
  140. package/dist/hub/session-limits.js.map +1 -0
  141. package/dist/hub/sessions.d.ts +1 -1
  142. package/dist/hub/sessions.js +13 -7
  143. package/dist/hub/sessions.js.map +1 -1
  144. package/dist/hub/settings-directory-decision.js +1 -1
  145. package/dist/hub/settings-directory-decision.js.map +1 -1
  146. package/dist/hub/types.d.ts +9 -2
  147. package/dist/hub-character-plan.d.ts +47 -0
  148. package/dist/hub-character-plan.js +70 -0
  149. package/dist/hub-character-plan.js.map +1 -0
  150. package/dist/hub-contact-windows.d.ts +13 -1
  151. package/dist/hub-contact-windows.js +35 -2
  152. package/dist/hub-contact-windows.js.map +1 -1
  153. package/dist/hub-picture-reduce.d.ts +34 -0
  154. package/dist/hub-picture-reduce.js +101 -0
  155. package/dist/hub-picture-reduce.js.map +1 -0
  156. package/dist/hub-picture-worker.d.ts +1 -0
  157. package/dist/hub-picture-worker.js +19 -0
  158. package/dist/hub-picture-worker.js.map +1 -0
  159. package/dist/hub-report-target.d.ts +6 -0
  160. package/dist/hub-report-target.js +6 -0
  161. package/dist/hub-report-target.js.map +1 -1
  162. package/dist/locale.js +357 -265
  163. package/dist/locale.js.map +1 -1
  164. package/dist/ls-rows.d.ts +2 -0
  165. package/dist/ls-rows.js.map +1 -1
  166. package/dist/needs-you.d.ts +6 -0
  167. package/dist/needs-you.js +3 -1
  168. package/dist/needs-you.js.map +1 -1
  169. package/dist/outbound-handlers.d.ts +8 -0
  170. package/dist/outbound-handlers.js +53 -6
  171. package/dist/outbound-handlers.js.map +1 -1
  172. package/dist/outbound-schemas.d.ts +2 -0
  173. package/dist/outbound-schemas.js +6 -4
  174. package/dist/outbound-schemas.js.map +1 -1
  175. package/dist/runtime-cli-install.js +4 -4
  176. package/dist/runtime-cli-install.js.map +1 -1
  177. package/dist/task-board-tool.d.ts +17 -0
  178. package/dist/task-board-tool.js +58 -6
  179. package/dist/task-board-tool.js.map +1 -1
  180. package/dist/tips.js +3 -3
  181. package/dist/tool-permissions.js +2 -2
  182. package/dist/tool-permissions.js.map +1 -1
  183. package/dist/ui/agent-export-strings.js +1 -1
  184. package/dist/ui/agent-page-strings.js +5 -5
  185. package/dist/ui/contact-auth-client.js +2 -2
  186. package/dist/ui/contact-tool-groups.js +1 -1
  187. package/dist/ui/fleet-cache.js +5 -5
  188. package/dist/ui/fleet-canvas.js +3 -2
  189. package/dist/ui/fleet-office-card.js +46 -7
  190. package/dist/ui/fleet-office-dialogue.d.ts +6 -3
  191. package/dist/ui/fleet-office-dialogue.js +13 -3
  192. package/dist/ui/fleet-office-layout.js +15 -15
  193. package/dist/ui/fleet-office-model.js +3 -2
  194. package/dist/ui/fleet-office-overview.js +1 -1
  195. package/dist/ui/fleet-office-pack.d.ts +17 -7
  196. package/dist/ui/fleet-office-pack.js +106 -38
  197. package/dist/ui/fleet-office-play.js +11 -4
  198. package/dist/ui/fleet-office-skin.js +41 -11
  199. package/dist/ui/fleet-office-store.js +10 -1
  200. package/dist/ui/fleet-office-talk.js +423 -0
  201. package/dist/ui/fleet-office-view.js +58 -17
  202. package/dist/ui/fleet-office-zones.js +20 -12
  203. package/dist/ui/fleet-office.js +250 -65
  204. package/dist/ui/fleet-org.js +3 -3
  205. package/dist/ui/fleet-task-common.js +3 -3
  206. package/dist/ui/fleet-task-sort.js +88 -0
  207. package/dist/ui/fleet-task-view.js +38 -9
  208. package/dist/ui/fleet-tasks.js +47 -15
  209. package/dist/ui/fleet-usage.js +6 -6
  210. package/dist/ui/hub-admin-overview.js +1 -1
  211. package/dist/ui/hub-chat-store.js +4 -3
  212. package/dist/ui/hub-chat-strings.js +3 -1
  213. package/dist/ui/hub-client.js +3 -0
  214. package/dist/ui/hub-my-agents-strings.js +2 -2
  215. package/dist/ui/hub-my-agents.js +3 -0
  216. package/dist/ui/hub-room-composer.js +24 -4
  217. package/dist/ui/hub-room-members.js +7 -3
  218. package/dist/ui/hub-room-office.js +71 -2
  219. package/dist/ui/hub-room-presence.js +14 -0
  220. package/dist/ui/hub-room-strings.js +18 -2
  221. package/dist/ui/hub-room-thread.js +82 -13
  222. package/dist/ui/hub-room-working.js +37 -0
  223. package/dist/ui/hub-session-limits.js +79 -0
  224. package/dist/ui/panel-fleet.js +5 -5
  225. package/dist/ui/panel-hub.js +41 -6
  226. package/dist/ui/panel-log.js +3 -3
  227. package/dist/ui/panel-needs.js +28 -2
  228. package/dist/ui/panel-runtimes.js +2 -2
  229. package/dist/ui/runtime-cli-install.js +1 -1
  230. package/dist/ui/runtime-update-status.js +1 -1
  231. package/dist/ui/settings-access-strings.js +1 -1
  232. package/dist/ui/settings-hub-setup-strings.js +1 -1
  233. package/dist/ui/settings-layout.js +2 -2
  234. package/dist/ui/settings-named-test.js +16 -16
  235. package/dist/ui/settings-public-session-strings.js +2 -2
  236. package/dist/ui/settings-revoke-strings.js +1 -1
  237. package/dist/ui/settings-shared-strings.js +2 -2
  238. package/dist/ui/settings-strings.js +40 -40
  239. package/dist/ui/shared/app-shell.js +1 -1
  240. package/dist/ui/shared/app.css +106 -6
  241. package/dist/ui/shared/chat-strings.js +9 -9
  242. package/dist/ui/shared/hub-owner.css +5 -0
  243. package/dist/ui/shared/hub-rooms-u2.css +3 -0
  244. package/dist/ui/shared/instance-nav.js +36 -2
  245. package/dist/ui/shared/office-dialogue.css +110 -0
  246. package/dist/ui/shared/task-board.css +103 -7
  247. package/dist/ui/shared/view-strings.js +27 -9
  248. package/dist/web-api.d.ts +5 -0
  249. package/dist/web-api.js +29 -0
  250. package/dist/web-api.js.map +1 -1
  251. package/dist/web-office-skins.d.ts +8 -2
  252. package/dist/web-office-skins.js +33 -14
  253. package/dist/web-office-skins.js.map +1 -1
  254. package/dist/web-office-store.js +5 -3
  255. package/dist/web-office-store.js.map +1 -1
  256. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"office.js","sourceRoot":"","sources":["../../../src/hub/rooms/office.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAE1F,6HAA6H;AAC7H,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,MAAqB,EAAW,EAAE,CAAC,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;AAEjI,+CAA+C;AAC/C,MAAM,CAAC,MAAM,aAAa,GAAG,GAAW,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAEhF,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,EAAqB;QACxH,EAAE,CAA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AAE;KAC5I,CAAC;AACJ,CAAC"}
@@ -63,6 +63,25 @@ export declare class HubGroupRooms {
63
63
  * composition (agent-catalog.ts); none: the room office draws no look.
64
64
  */
65
65
  looks: ((fleetId: string) => Map<string, RoomOfficeLook> | null) | null;
66
+ /** M-3533 R2b: a held picture's bytes by its hash (agent-pictures.ts), set by the composition; none: no picture is served. */
67
+ pictureFile: ((sha256: string) => {
68
+ mime: string;
69
+ bytes: Buffer;
70
+ } | null) | null;
71
+ /** M-3533 R2b: a room agent's disc or portrait, for the room's members only — the hash the room shows for it now. */
72
+ picture(ctx: HubRequestContext, id: string, exposureId: string, slot: "disc" | "portrait"): Promise<{
73
+ mime: string;
74
+ bytes: Buffer;
75
+ sha256: string;
76
+ }>;
77
+ /** M-3533 R2c: one pose of a room agent's own character, for the room's members only — the strip the room shows for it now. */
78
+ characterStrip(ctx: HubRequestContext, id: string, exposureId: string, pose: string): Promise<{
79
+ mime: string;
80
+ bytes: Buffer;
81
+ sha256: string;
82
+ }>;
83
+ /** M-3533 R2b: these agents' pictures changed — every room holding one re-reads its members (open pages follow). */
84
+ lookChanged(exposureIds: readonly string[]): void;
66
85
  constructor(core: HubCore, office?: boolean);
67
86
  has(id: string): boolean;
68
87
  subscribe(listener: (event: RoomEvent) => void): () => void;
@@ -173,10 +192,10 @@ export declare class HubGroupRooms {
173
192
  introBy?: "owner" | "agent" | "default";
174
193
  introAt?: number;
175
194
  }[] | {
195
+ kind: string;
176
196
  id: string;
177
197
  name: string;
178
198
  people: number;
179
- kind: string;
180
199
  }[]>;
181
200
  private candidateAllowed;
182
201
  private groupSelection;
@@ -277,6 +296,8 @@ export declare class HubGroupRooms {
277
296
  look?: {
278
297
  color?: string;
279
298
  emoji?: string;
299
+ disc?: string;
300
+ portrait?: string;
280
301
  } | undefined;
281
302
  role: "manager" | "member";
282
303
  agentKind?: "fleet" | "personal" | undefined;
@@ -300,6 +321,8 @@ export declare class HubGroupRooms {
300
321
  look?: {
301
322
  color?: string;
302
323
  emoji?: string;
324
+ disc?: string;
325
+ portrait?: string;
303
326
  } | undefined;
304
327
  role: "manager" | "member";
305
328
  agentKind?: "fleet" | "personal" | undefined;
@@ -324,6 +347,8 @@ export declare class HubGroupRooms {
324
347
  look?: {
325
348
  color?: string;
326
349
  emoji?: string;
350
+ disc?: string;
351
+ portrait?: string;
327
352
  } | undefined;
328
353
  role: "manager" | "member";
329
354
  agentKind?: "fleet" | "personal" | undefined;
@@ -414,6 +439,8 @@ export declare class HubGroupRooms {
414
439
  look?: {
415
440
  color?: string;
416
441
  emoji?: string;
442
+ disc?: string;
443
+ portrait?: string;
417
444
  } | undefined;
418
445
  role: "manager" | "member";
419
446
  agentKind?: "fleet" | "personal" | undefined;
@@ -437,6 +464,8 @@ export declare class HubGroupRooms {
437
464
  look?: {
438
465
  color?: string;
439
466
  emoji?: string;
467
+ disc?: string;
468
+ portrait?: string;
440
469
  } | undefined;
441
470
  role: "manager" | "member";
442
471
  agentKind?: "fleet" | "personal" | undefined;
@@ -461,6 +490,8 @@ export declare class HubGroupRooms {
461
490
  look?: {
462
491
  color?: string;
463
492
  emoji?: string;
493
+ disc?: string;
494
+ portrait?: string;
464
495
  } | undefined;
465
496
  role: "manager" | "member";
466
497
  agentKind?: "fleet" | "personal" | undefined;
@@ -551,6 +582,8 @@ export declare class HubGroupRooms {
551
582
  look?: {
552
583
  color?: string;
553
584
  emoji?: string;
585
+ disc?: string;
586
+ portrait?: string;
554
587
  } | undefined;
555
588
  role: "manager" | "member";
556
589
  agentKind?: "fleet" | "personal" | undefined;
@@ -574,6 +607,8 @@ export declare class HubGroupRooms {
574
607
  look?: {
575
608
  color?: string;
576
609
  emoji?: string;
610
+ disc?: string;
611
+ portrait?: string;
577
612
  } | undefined;
578
613
  role: "manager" | "member";
579
614
  agentKind?: "fleet" | "personal" | undefined;
@@ -598,6 +633,8 @@ export declare class HubGroupRooms {
598
633
  look?: {
599
634
  color?: string;
600
635
  emoji?: string;
636
+ disc?: string;
637
+ portrait?: string;
601
638
  } | undefined;
602
639
  role: "manager" | "member";
603
640
  agentKind?: "fleet" | "personal" | undefined;
@@ -120,6 +120,54 @@ export class HubGroupRooms {
120
120
  * composition (agent-catalog.ts); none: the room office draws no look.
121
121
  */
122
122
  looks = null;
123
+ /** M-3533 R2b: a held picture's bytes by its hash (agent-pictures.ts), set by the composition; none: no picture is served. */
124
+ pictureFile = null;
125
+ /** M-3533 R2b: a room agent's disc or portrait, for the room's members only — the hash the room shows for it now. */
126
+ async picture(ctx, id, exposureId, slot) {
127
+ const me = await this.who(ctx);
128
+ const sha256 = this.core.atomic(db => {
129
+ this.member(db, id, me);
130
+ if (!db.prepare("SELECT 1 FROM hub_room_members WHERE room_id=? AND kind='agent' AND subject=?").get(id, exposureId))
131
+ throw new HubRoomRefusal(404, "not-found");
132
+ const e = readExposure(db, exposureId);
133
+ const h = e?.fleet_id && this.looks ? this.looks(e.fleet_id)?.get(exposureId)?.[slot] : undefined;
134
+ if (!h)
135
+ throw new HubRoomRefusal(404, "not-found");
136
+ return h;
137
+ }, this.fence(ctx));
138
+ const file = this.pictureFile?.(sha256);
139
+ if (!file)
140
+ throw new HubRoomRefusal(404, "not-found");
141
+ return { sha256, ...file };
142
+ }
143
+ /** M-3533 R2c: one pose of a room agent's own character, for the room's members only — the strip the room shows for it now. */
144
+ async characterStrip(ctx, id, exposureId, pose) {
145
+ const me = await this.who(ctx);
146
+ const sha256 = this.core.atomic(db => {
147
+ this.member(db, id, me);
148
+ if (!db.prepare("SELECT 1 FROM hub_room_members WHERE room_id=? AND kind='agent' AND subject=?").get(id, exposureId))
149
+ throw new HubRoomRefusal(404, "not-found");
150
+ const e = readExposure(db, exposureId);
151
+ const character = e?.fleet_id && this.looks ? this.looks(e.fleet_id)?.get(exposureId)?.character : undefined;
152
+ const h = character && Object.hasOwn(character, pose) ? character[pose]?.sha256 : undefined;
153
+ if (!h)
154
+ throw new HubRoomRefusal(404, "not-found");
155
+ return h;
156
+ }, this.fence(ctx));
157
+ const file = this.pictureFile?.(sha256);
158
+ if (!file)
159
+ throw new HubRoomRefusal(404, "not-found");
160
+ return { sha256, ...file };
161
+ }
162
+ /** M-3533 R2b: these agents' pictures changed — every room holding one re-reads its members (open pages follow). */
163
+ lookChanged(exposureIds) {
164
+ const ids = [...new Set(exposureIds)].slice(0, 512);
165
+ if (!ids.length)
166
+ return;
167
+ const rooms = this.core.atomic(db => db.prepare(`SELECT DISTINCT room_id FROM hub_room_members WHERE kind='agent' AND subject IN (${ids.map(() => "?").join(",")})`).all(...ids));
168
+ for (const { room_id: roomId } of rooms)
169
+ this.emit({ type: "member.changed", roomId, data: { roomId } });
170
+ }
123
171
  constructor(core, office = false) {
124
172
  this.core = core;
125
173
  this.office = office;
@@ -271,8 +319,9 @@ export class HubGroupRooms {
271
319
  .get(row.answer_to, row.room_id) : undefined;
272
320
  const stopped = row.delivery_id && row.stage === "not-answered" ? db.prepare("SELECT 1 FROM hub_room_deliveries WHERE id=? AND reason_code='owner-stopped-sharing'").get(row.delivery_id) : null;
273
321
  const missing = row.delivery_id && row.stage === "not-answered" ? db.prepare("SELECT 1 FROM hub_room_deliveries WHERE id=? AND reason_code='finished-without-answer'").get(row.delivery_id) : null;
322
+ const lapsed = row.delivery_id && row.stage === "not-answered" ? db.prepare("SELECT 1 FROM hub_room_deliveries WHERE id=? AND reason_code='share-needs-reshare'").get(row.delivery_id) : null;
274
323
  const reactions = this.reactions(db, row.id), buttons = row.author_kind === "agent" ? this.buttons.view(db, row.id, id => this.memberName(db, id)) : undefined;
275
- return { ...(missing ? { reasonCode: "finished-without-answer" } : {}), ...(stopped ? { reasonCode: "owner-stopped-sharing" } : {}), ...(ask ? { ask } : {}), ...(asker ? { askedBy: asker.id } : {}), ...(this.assistant.warning(db, row.id) ? { warning: "assistant-unavailable" } : {}), ...(reactions.length ? { reactions } : {}), ...(buttons ? { buttons } : {}) };
324
+ return { ...(lapsed ? { reasonCode: "share-needs-reshare" } : {}), ...(missing ? { reasonCode: "finished-without-answer" } : {}), ...(stopped ? { reasonCode: "owner-stopped-sharing" } : {}), ...(ask ? { ask } : {}), ...(asker ? { askedBy: asker.id } : {}), ...(this.assistant.warning(db, row.id) ? { warning: "assistant-unavailable" } : {}), ...(reactions.length ? { reactions } : {}), ...(buttons ? { buttons } : {}) };
276
325
  }) };
277
326
  }
278
327
  /** M-3127: a post's reactions, each emoji in the order it first appeared, its members in the order they reacted. */
@@ -456,7 +505,9 @@ export class HubGroupRooms {
456
505
  const e = readExposure(db, m.subject);
457
506
  return { id: m.subject, kind: m.kind, name: e?.display_name ?? m.subject, presence: this.agents.presence(m.subject).presence, owner: { name: this.name(db, m.owner_at_join ?? "") }, intro: agentIntro(db, m.subject).intro };
458
507
  }
459
- return { id: m.id, kind: m.kind, name: this.name(db, m.subject), presence: db.prepare("SELECT 1 FROM hub_sessions WHERE person=? AND state='active' AND expires_at>?").get(m.subject, this.core.now()) ? "online" : "offline" };
508
+ // M-3594: a person's id is their stable Hub person id (realm/objectId, as a 1:1 question's asker id), not this
509
+ // room's membership row, so an agent can tell one person apart across rooms and private questions.
510
+ return { id: m.subject, kind: m.kind, name: this.name(db, m.subject), presence: db.prepare("SELECT 1 FROM hub_sessions WHERE person=? AND state='active' AND expires_at>?").get(m.subject, this.core.now()) ? "online" : "offline" };
460
511
  });
461
512
  return pageRoomMembers(room.id, roomRow.purpose, roster, body, JSON.stringify([source.id, source.owner]));
462
513
  }
@@ -467,7 +518,7 @@ export class HubGroupRooms {
467
518
  const e = readExposure(db, m.subject);
468
519
  return { id: m.subject, kind: m.kind, name: e?.display_name ?? m.subject, owner: { name: this.name(db, m.owner_at_join ?? "") }, ...this.agents.presence(m.subject) };
469
520
  }
470
- return { id: m.id, kind: m.kind, name: this.name(db, m.subject), presence: db.prepare("SELECT 1 FROM hub_sessions WHERE person=? AND state='active' AND expires_at>?").get(m.subject, this.core.now()) ? "online" : "offline" };
521
+ return { id: m.subject, kind: m.kind, name: this.name(db, m.subject), presence: db.prepare("SELECT 1 FROM hub_sessions WHERE person=? AND state='active' AND expires_at>?").get(m.subject, this.core.now()) ? "online" : "offline" };
471
522
  });
472
523
  if (members.length > 200)
473
524
  throw new HubProtocolError("backpressure");
@@ -500,6 +551,8 @@ export class HubGroupRooms {
500
551
  }
501
552
  async agentPost(input, link) {
502
553
  const body = validated(roomPostSchema, input), { source, fence } = await this.agentSource(body.exposureId, link);
554
+ if (body.direct || body.attachments)
555
+ throw new HubProtocolError("incompatible");
503
556
  if (body.mentionFeedback && !link.features.has(HUB_ROOM_MENTION_FEEDBACK_CAPABILITY))
504
557
  throw new HubProtocolError("incompatible");
505
558
  const { mentionFeedback: _feedback, ...operation } = body;