@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.
- package/dist/agent-cli-instructions.md +1 -1
- package/dist/backend/claude-carry.d.ts +11 -0
- package/dist/backend/claude-carry.js +88 -6
- package/dist/backend/claude-carry.js.map +1 -1
- package/dist/backend/claude-code.js +3 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/cache-ledger.d.ts +23 -21
- package/dist/cache-ledger.js +70 -6
- package/dist/cache-ledger.js.map +1 -1
- package/dist/cache-prices.d.ts +8 -6
- package/dist/cache-prices.js +12 -5
- package/dist/cache-prices.js.map +1 -1
- package/dist/cache-service.d.ts +9 -5
- package/dist/cache-service.js +202 -50
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/mcp-tools.js +6 -4
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/cli-audited.js +2 -1
- package/dist/cli-audited.js.map +1 -1
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +1 -1
- package/dist/contact-auth-policy.js +1 -1
- package/dist/contact-auth-policy.js.map +1 -1
- package/dist/contact-auth-service.js +8 -2
- package/dist/contact-auth-service.js.map +1 -1
- package/dist/contact-auth-store.d.ts +3 -0
- package/dist/contact-auth-store.js +34 -8
- package/dist/contact-auth-store.js.map +1 -1
- package/dist/contact-auth-types.d.ts +3 -2
- package/dist/contact-auth-types.js.map +1 -1
- package/dist/contact-change-proposals.d.ts +47 -0
- package/dist/contact-change-proposals.js +132 -0
- package/dist/contact-change-proposals.js.map +1 -0
- package/dist/daemon.d.ts +31 -0
- package/dist/daemon.js +149 -2
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +10 -0
- package/dist/delivery-outbox.js +21 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-manager.d.ts +65 -1
- package/dist/fleet-manager.js +338 -20
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +2 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +45 -5
- package/dist/general-knowledge/skills/task-board/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +1 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +16 -6
- package/dist/hub/agent-pictures-model.d.ts +275 -0
- package/dist/hub/agent-pictures-model.js +103 -0
- package/dist/hub/agent-pictures-model.js.map +1 -0
- package/dist/hub/agent-pictures.d.ts +64 -0
- package/dist/hub/agent-pictures.js +255 -0
- package/dist/hub/agent-pictures.js.map +1 -0
- package/dist/hub/client.d.ts +4 -0
- package/dist/hub/client.js +23 -2
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +14 -3
- package/dist/hub/compose/member.js +46 -10
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +6 -5
- package/dist/hub/compose/server.js +7 -3
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/direct-posts-model.d.ts +1 -0
- package/dist/hub/direct-posts-model.js +2 -0
- package/dist/hub/direct-posts-model.js.map +1 -0
- package/dist/hub/direct-posts.d.ts +36 -0
- package/dist/hub/direct-posts.js +145 -0
- package/dist/hub/direct-posts.js.map +1 -0
- package/dist/hub/http/compose.d.ts +5 -0
- package/dist/hub/http/compose.js +158 -20
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.d.ts +9 -1
- package/dist/hub/http/core.js +21 -1
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +1 -0
- package/dist/hub/http/schema.js +7 -0
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/init/text.js +1 -1
- package/dist/hub/join/service.d.ts +2 -0
- package/dist/hub/join/service.js +7 -3
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/member/agent-pictures.d.ts +76 -0
- package/dist/hub/member/agent-pictures.js +196 -0
- package/dist/hub/member/agent-pictures.js.map +1 -0
- package/dist/hub/member/direct-rooms.d.ts +9 -0
- package/dist/hub/member/direct-rooms.js +14 -0
- package/dist/hub/member/direct-rooms.js.map +1 -0
- package/dist/hub/member/room-ask.d.ts +22 -1
- package/dist/hub/member/room-ask.js +99 -5
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-asker-store.d.ts +48 -0
- package/dist/hub/member/room-asker-store.js +181 -0
- package/dist/hub/member/room-asker-store.js.map +1 -0
- package/dist/hub/member/room-post.d.ts +11 -10
- package/dist/hub/member/room-post.js +51 -7
- package/dist/hub/member/room-post.js.map +1 -1
- package/dist/hub/policy.d.ts +11 -2
- package/dist/hub/policy.js +60 -7
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +254 -1
- package/dist/hub/protocol.js +20 -8
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/representative.d.ts +38 -0
- package/dist/hub/representative.js +140 -12
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/room-asker-identity-model.d.ts +53 -0
- package/dist/hub/room-asker-identity-model.js +14 -0
- package/dist/hub/room-asker-identity-model.js.map +1 -0
- package/dist/hub/room-asker-identity.d.ts +22 -0
- package/dist/hub/room-asker-identity.js +43 -0
- package/dist/hub/room-asker-identity.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +2 -0
- package/dist/hub/rooms/agents.js +30 -3
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/asker-identity.d.ts +21 -0
- package/dist/hub/rooms/asker-identity.js +86 -0
- package/dist/hub/rooms/asker-identity.js.map +1 -0
- package/dist/hub/rooms/direct-view.d.ts +3 -2
- package/dist/hub/rooms/direct-view.js +23 -8
- package/dist/hub/rooms/direct-view.js.map +1 -1
- package/dist/hub/rooms/office.d.ts +27 -0
- package/dist/hub/rooms/office.js +12 -2
- package/dist/hub/rooms/office.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +38 -1
- package/dist/hub/rooms/service.js +56 -3
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +5 -2
- package/dist/hub/rooms.d.ts +9 -0
- package/dist/hub/rooms.js +97 -26
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +1 -1
- package/dist/hub/server.js +24 -2
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +1 -0
- package/dist/hub/session-directory-transition.js +15 -9
- package/dist/hub/session-directory-transition.js.map +1 -1
- package/dist/hub/session-limits.d.ts +58 -0
- package/dist/hub/session-limits.js +121 -0
- package/dist/hub/session-limits.js.map +1 -0
- package/dist/hub/sessions.d.ts +1 -1
- package/dist/hub/sessions.js +13 -7
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-directory-decision.js +1 -1
- package/dist/hub/settings-directory-decision.js.map +1 -1
- package/dist/hub/types.d.ts +9 -2
- package/dist/hub-character-plan.d.ts +47 -0
- package/dist/hub-character-plan.js +70 -0
- package/dist/hub-character-plan.js.map +1 -0
- package/dist/hub-contact-windows.d.ts +13 -1
- package/dist/hub-contact-windows.js +35 -2
- package/dist/hub-contact-windows.js.map +1 -1
- package/dist/hub-picture-reduce.d.ts +34 -0
- package/dist/hub-picture-reduce.js +101 -0
- package/dist/hub-picture-reduce.js.map +1 -0
- package/dist/hub-picture-worker.d.ts +1 -0
- package/dist/hub-picture-worker.js +19 -0
- package/dist/hub-picture-worker.js.map +1 -0
- package/dist/hub-report-target.d.ts +6 -0
- package/dist/hub-report-target.js +6 -0
- package/dist/hub-report-target.js.map +1 -1
- package/dist/locale.js +357 -265
- package/dist/locale.js.map +1 -1
- package/dist/ls-rows.d.ts +2 -0
- package/dist/ls-rows.js.map +1 -1
- package/dist/needs-you.d.ts +6 -0
- package/dist/needs-you.js +3 -1
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +8 -0
- package/dist/outbound-handlers.js +53 -6
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +2 -0
- package/dist/outbound-schemas.js +6 -4
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/runtime-cli-install.js +4 -4
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/task-board-tool.d.ts +17 -0
- package/dist/task-board-tool.js +58 -6
- package/dist/task-board-tool.js.map +1 -1
- package/dist/tips.js +3 -3
- package/dist/tool-permissions.js +2 -2
- package/dist/tool-permissions.js.map +1 -1
- package/dist/ui/agent-export-strings.js +1 -1
- package/dist/ui/agent-page-strings.js +5 -5
- package/dist/ui/contact-auth-client.js +2 -2
- package/dist/ui/contact-tool-groups.js +1 -1
- package/dist/ui/fleet-cache.js +5 -5
- package/dist/ui/fleet-canvas.js +3 -2
- package/dist/ui/fleet-office-card.js +46 -7
- package/dist/ui/fleet-office-dialogue.d.ts +6 -3
- package/dist/ui/fleet-office-dialogue.js +13 -3
- package/dist/ui/fleet-office-layout.js +15 -15
- package/dist/ui/fleet-office-model.js +3 -2
- package/dist/ui/fleet-office-overview.js +1 -1
- package/dist/ui/fleet-office-pack.d.ts +17 -7
- package/dist/ui/fleet-office-pack.js +106 -38
- package/dist/ui/fleet-office-play.js +11 -4
- package/dist/ui/fleet-office-skin.js +41 -11
- package/dist/ui/fleet-office-store.js +10 -1
- package/dist/ui/fleet-office-talk.js +423 -0
- package/dist/ui/fleet-office-view.js +58 -17
- package/dist/ui/fleet-office-zones.js +20 -12
- package/dist/ui/fleet-office.js +250 -65
- package/dist/ui/fleet-org.js +3 -3
- package/dist/ui/fleet-task-common.js +3 -3
- package/dist/ui/fleet-task-sort.js +88 -0
- package/dist/ui/fleet-task-view.js +38 -9
- package/dist/ui/fleet-tasks.js +47 -15
- package/dist/ui/fleet-usage.js +6 -6
- package/dist/ui/hub-admin-overview.js +1 -1
- package/dist/ui/hub-chat-store.js +4 -3
- package/dist/ui/hub-chat-strings.js +3 -1
- package/dist/ui/hub-client.js +3 -0
- package/dist/ui/hub-my-agents-strings.js +2 -2
- package/dist/ui/hub-my-agents.js +3 -0
- package/dist/ui/hub-room-composer.js +24 -4
- package/dist/ui/hub-room-members.js +7 -3
- package/dist/ui/hub-room-office.js +71 -2
- package/dist/ui/hub-room-presence.js +14 -0
- package/dist/ui/hub-room-strings.js +18 -2
- package/dist/ui/hub-room-thread.js +82 -13
- package/dist/ui/hub-room-working.js +37 -0
- package/dist/ui/hub-session-limits.js +79 -0
- package/dist/ui/panel-fleet.js +5 -5
- package/dist/ui/panel-hub.js +41 -6
- package/dist/ui/panel-log.js +3 -3
- package/dist/ui/panel-needs.js +28 -2
- package/dist/ui/panel-runtimes.js +2 -2
- package/dist/ui/runtime-cli-install.js +1 -1
- package/dist/ui/runtime-update-status.js +1 -1
- package/dist/ui/settings-access-strings.js +1 -1
- package/dist/ui/settings-hub-setup-strings.js +1 -1
- package/dist/ui/settings-layout.js +2 -2
- package/dist/ui/settings-named-test.js +16 -16
- package/dist/ui/settings-public-session-strings.js +2 -2
- package/dist/ui/settings-revoke-strings.js +1 -1
- package/dist/ui/settings-shared-strings.js +2 -2
- package/dist/ui/settings-strings.js +40 -40
- package/dist/ui/shared/app-shell.js +1 -1
- package/dist/ui/shared/app.css +106 -6
- package/dist/ui/shared/chat-strings.js +9 -9
- package/dist/ui/shared/hub-owner.css +5 -0
- package/dist/ui/shared/hub-rooms-u2.css +3 -0
- package/dist/ui/shared/instance-nav.js +36 -2
- package/dist/ui/shared/office-dialogue.css +110 -0
- package/dist/ui/shared/task-board.css +103 -7
- package/dist/ui/shared/view-strings.js +27 -9
- package/dist/web-api.d.ts +5 -0
- package/dist/web-api.js +29 -0
- package/dist/web-api.js.map +1 -1
- package/dist/web-office-skins.d.ts +8 -2
- package/dist/web-office-skins.js +33 -14
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-office-store.js +5 -3
- package/dist/web-office-store.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"office.js","sourceRoot":"","sources":["../../../src/hub/rooms/office.ts"],"names":[],"mapp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
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
|
-
|
|
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.
|
|
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;
|