@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
package/dist/hub/http/compose.js
CHANGED
|
@@ -9,6 +9,7 @@ import { HubPreviousAccess } from "../sharing-previous-access.js";
|
|
|
9
9
|
import { HubAgentIntros } from "../agent-intro.js";
|
|
10
10
|
import { HubSharingRequests } from "../sharing-requests.js";
|
|
11
11
|
import { HubAgentCatalogs } from "../agent-catalog.js";
|
|
12
|
+
import { HubAgentPictures } from "../agent-pictures.js";
|
|
12
13
|
import { hubAdminOverviewPermit } from "../roles/overview.js";
|
|
13
14
|
import { HUB_ROOM_CONTEXT_CAPABILITY } from "../room-context-model.js";
|
|
14
15
|
/**
|
|
@@ -28,6 +29,7 @@ import { HUB_ROOM_CONTEXT_CAPABILITY } from "../room-context-model.js";
|
|
|
28
29
|
*/
|
|
29
30
|
import { HubAdminDashboard } from "../admin-dashboard.js";
|
|
30
31
|
import { HubVersionRecommendations, HubRecommendationRefusal } from "../recommendations.js";
|
|
32
|
+
import { HubSessionLimitSettings, HubSessionLimitRefusal } from "../session-limits.js";
|
|
31
33
|
import { HubFleetUpdates, HubFleetUpdateRefusal } from "../fleet-updates.js";
|
|
32
34
|
import { HubFleetVersions } from "../fleet-versions.js";
|
|
33
35
|
import { HubGroupPolicyError } from "../group-policy/errors.js";
|
|
@@ -50,6 +52,7 @@ import { HubRoomAdmin } from "../rooms/admin.js";
|
|
|
50
52
|
import { HubGroupRooms, HubRoomRefusal } from "../rooms/service.js";
|
|
51
53
|
import { HUB_ROOM_OFFICE_FEATURE } from "../rooms/office.js";
|
|
52
54
|
import { SHARE_MODULES } from "../../office-share-page.js";
|
|
55
|
+
import { HubDirectPosts, HUB_DIRECT_POST_CAPABILITY } from "../direct-posts.js";
|
|
53
56
|
import { directMessages, directRoomView, directUnread, markDirectRead } from "../rooms/direct-view.js";
|
|
54
57
|
import { HubAttachmentRefused } from "../attachments/store.js";
|
|
55
58
|
import { HubQuotaService } from "../quota.js";
|
|
@@ -100,7 +103,9 @@ export const HUB_UI_MODULES = Object.freeze(["panel-hub.js", "hub-personal-agent
|
|
|
100
103
|
// M-3137: Fleet versions (Connected fleets' columns and summary, the older-Fleet banner) with its own words.
|
|
101
104
|
"hub-fleet-versions.js",
|
|
102
105
|
// M-3162: Administration → Overview (the counts dashboard), its own words.
|
|
103
|
-
"hub-admin-overview.js", "hub-ai-apps.js", "hub-ai-apps-strings.js", "hub-room-source.js", "hub-room-source-strings.js"
|
|
106
|
+
"hub-admin-overview.js", "hub-ai-apps.js", "hub-ai-apps-strings.js", "hub-room-source.js", "hub-room-source-strings.js",
|
|
107
|
+
// M-3592: Administration → Sign-in.
|
|
108
|
+
"hub-session-limits.js"]);
|
|
104
109
|
const BODY_LIMIT = 96 * 1024;
|
|
105
110
|
const UPLOADS_PER_SESSION = 2, UPLOADS_TOTAL = 8;
|
|
106
111
|
const UUID = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
|
|
@@ -208,7 +213,8 @@ export function createHubHttp(deps, sql) {
|
|
|
208
213
|
const personal = personalFactory?.(core);
|
|
209
214
|
if (personal)
|
|
210
215
|
Object.defineProperty(mountedDeps, "personal", { value: personal.turns });
|
|
211
|
-
const
|
|
216
|
+
const sessionLimits = new HubSessionLimitSettings(core);
|
|
217
|
+
const sessions = new HubSessions(core), catalog = new HubCatalogService(core, publishSharingSettlement), policy = new HubPolicyService(core, deps.log);
|
|
212
218
|
const grantSearch = new HubGrantSearch(core);
|
|
213
219
|
const ownerIntro = (e) => {
|
|
214
220
|
const value = intros.projection(e.id), report = e.fleetId ? agentCatalogs.reportOf(e.fleetId) : null;
|
|
@@ -217,6 +223,25 @@ export function createHubHttp(deps, sql) {
|
|
|
217
223
|
};
|
|
218
224
|
const rooms = new HubRoomsService(core, policy);
|
|
219
225
|
const groupRooms = new HubGroupRooms(core, deps.roomOffice === true);
|
|
226
|
+
const directPosts = new HubDirectPosts(core, (roomId, asker, id) => {
|
|
227
|
+
if (id) {
|
|
228
|
+
groupRooms.publish({ type: "message.added", roomId, data: { roomId, messageId: id }, audiencePerson: asker });
|
|
229
|
+
groupRooms.publish({ type: "unread.changed", roomId, data: { roomId }, audiencePerson: asker });
|
|
230
|
+
}
|
|
231
|
+
else
|
|
232
|
+
groupRooms.publish({ type: "room.changed", roomId, data: { roomId }, audiencePerson: asker });
|
|
233
|
+
});
|
|
234
|
+
/**
|
|
235
|
+
* M-3596: a 1:1 room's agent as its asker sees it. The room's own presence (offline, paused, held) wins; on a current link
|
|
236
|
+
* the agent's reported state (agent.state: working, or paused with a reason) says whether it is busy right now.
|
|
237
|
+
*/
|
|
238
|
+
const directPresence = (exposureId) => {
|
|
239
|
+
const own = rooms.presence(exposureId);
|
|
240
|
+
if (own !== "idle")
|
|
241
|
+
return own;
|
|
242
|
+
const reported = groupRooms.agents.presence(exposureId).presence;
|
|
243
|
+
return reported === "working" || reported === "paused" ? reported : own;
|
|
244
|
+
};
|
|
220
245
|
const mcp = new HubMcpDoor(core, sessions, { groups: groupRooms, direct: rooms, catalog });
|
|
221
246
|
const invitations = deps.roomInvitations?.(core, groupRooms.invitationHost());
|
|
222
247
|
const roomAgentRequests = deps.roomAgentRequests?.(core, groupRooms.invitationHost());
|
|
@@ -226,11 +251,30 @@ export function createHubHttp(deps, sql) {
|
|
|
226
251
|
const fleetVersions = new HubFleetVersions(core);
|
|
227
252
|
const agentCatalogs = new HubAgentCatalogs(core);
|
|
228
253
|
// M-3533 R2a: a room office draws each shared agent in its owner's colour and emoji, from the owner's catalog rows.
|
|
254
|
+
// M-3533 R2b: and its pictures (the sidebar's disc, the identity card's portrait) as its Fleet last reported them.
|
|
255
|
+
const agentPictures = new HubAgentPictures(core);
|
|
229
256
|
groupRooms.looks = (fleetId) => {
|
|
230
|
-
const report = agentCatalogs.reportOf(fleetId);
|
|
231
|
-
if (!report)
|
|
257
|
+
const report = agentCatalogs.reportOf(fleetId), pictures = agentPictures.looksOf(fleetId);
|
|
258
|
+
if (!report && !pictures.size)
|
|
232
259
|
return null;
|
|
233
|
-
|
|
260
|
+
const out = new Map(report ? report.catalog.agents.filter((a) => a.exposure && a.avatar).map((a) => [a.exposure.id, { color: a.avatar.color, emoji: a.avatar.emoji }]) : []);
|
|
261
|
+
for (const [id, p] of pictures)
|
|
262
|
+
if (p.disc || p.portrait || p.character)
|
|
263
|
+
out.set(id, { ...(out.get(id) ?? { color: null, emoji: null }), ...(p.disc ? { disc: p.disc } : {}),
|
|
264
|
+
...(p.portrait ? { portrait: p.portrait } : {}), ...(p.character ? { character: p.character } : {}) });
|
|
265
|
+
return out;
|
|
266
|
+
};
|
|
267
|
+
groupRooms.pictureFile = (sha256) => agentPictures.file(sha256);
|
|
268
|
+
agentPictures.changed = (ids) => { if (live())
|
|
269
|
+
groupRooms.lookChanged(ids); };
|
|
270
|
+
agentPictures.start();
|
|
271
|
+
/** The owner's own view: which of a Fleet's agents have a picture too large to show (My agents says so; nobody else sees it). */
|
|
272
|
+
const picturesTooLarge = (fleetId) => {
|
|
273
|
+
const out = Object.create(null);
|
|
274
|
+
for (const [id, p] of agentPictures.looksOf(fleetId))
|
|
275
|
+
if (p.tooLarge?.length)
|
|
276
|
+
out[id] = p.tooLarge;
|
|
277
|
+
return Object.keys(out).length ? out : null;
|
|
234
278
|
};
|
|
235
279
|
const previousAccess = new HubPreviousAccess(core, agentCatalogs);
|
|
236
280
|
const sharingRequests = new HubSharingRequests(core, agentCatalogs, publishSharingSettlement);
|
|
@@ -387,7 +431,10 @@ export function createHubHttp(deps, sql) {
|
|
|
387
431
|
if (query.size)
|
|
388
432
|
throw new HubProtocolError("invalid");
|
|
389
433
|
signedIn();
|
|
390
|
-
return send(res, 200, await guard(() =>
|
|
434
|
+
return send(res, 200, await guard(async () => {
|
|
435
|
+
const view = await agentCatalogs.view(ctx);
|
|
436
|
+
return { ...view, fleets: view.fleets.map(f => { const tooLarge = picturesTooLarge(f.id); return tooLarge ? { ...f, picturesTooLarge: tooLarge } : f; }) };
|
|
437
|
+
}));
|
|
391
438
|
}
|
|
392
439
|
// Composed routes, not enrollment authority or the administrator's on/off switch. Older Hubs omit unsupported cards.
|
|
393
440
|
const offered = ["agent-intro-defaults-v1", "agent-sharing-v1", "agent-intros-v1", "admin-dashboard-v1", "rooms-v1", "room-purpose-v1", "room-pins-v1", "person-prefs-v1", ...(roomAgentRequests ? ["room-owner-requests-v1"] : []), ...(roomDiscovery ? ["room-agent-discovery-v1"] : []), ...(personal ? ["personal-agents-v1"] : []), ...(teams ? ["teams-v1"] : []), ...(deps.roleAdmin ? ["role-settings-v1"] : []), ...(deps.roomAssistant && deps.assistantAdmin ? ["room-assistant-v1"] : []), ...(deps.refreshAuthorization ? ["sharing-pause-v1"] : []), ...(deps.groupHttp ? [GROUP_POLICY_FEATURE, ...(deps.pairingNotices ? ["quick-pairing-v1"] : [])] : []), ...(grantSubjectsOffered() ? ["grant-subjects-v1"] : []),
|
|
@@ -1115,7 +1162,7 @@ export function createHubHttp(deps, sql) {
|
|
|
1115
1162
|
if (event.type === "unread.changed")
|
|
1116
1163
|
data = { roomId: event.roomId, unread: directUnread(core, view) };
|
|
1117
1164
|
else if (event.type === "room.changed")
|
|
1118
|
-
data = { roomId: event.roomId, room: directRoomView(view,
|
|
1165
|
+
data = { roomId: event.roomId, room: directRoomView(view, directPresence(view.exposureId), directUnread(core, view), intros.projection(view.exposureId), groupRooms.agents.reported(view.exposureId)) };
|
|
1119
1166
|
else {
|
|
1120
1167
|
const page = await rooms.readPage(ctx, event.roomId, 0, streamSession.sessionId, { before: null, limit: 100 });
|
|
1121
1168
|
const message = directMessages(page.room, page.entries, streamSession.displayName).find(m => m.id === event.data.messageId);
|
|
@@ -1196,7 +1243,7 @@ export function createHubHttp(deps, sql) {
|
|
|
1196
1243
|
const groups = await guard(() => groupRooms.list(ctx));
|
|
1197
1244
|
const pending = invitations ? await guard(() => invitations.pending(ctx)) : null;
|
|
1198
1245
|
const ownerRequests = roomAgentRequests && query.get("ownerRequests") === "1" ? await guard(() => roomAgentRequests.pendingCount(ctx)) : 0;
|
|
1199
|
-
return send(res, 200, { ...groups, invitations: (pending?.invitations.length ?? 0) + ownerRequests, rooms: [...groups.rooms, ...view.rooms.map(room => ({ ...directRoomView(room,
|
|
1246
|
+
return send(res, 200, { ...groups, invitations: (pending?.invitations.length ?? 0) + ownerRequests, rooms: [...groups.rooms, ...view.rooms.map(room => ({ ...directRoomView(room, directPresence(room.exposureId), directUnread(core, room), intros.projection(room.exposureId), groupRooms.agents.reported(room.exposureId)), ...quota.roomProjection(room, view.grantProof) }))] });
|
|
1200
1247
|
}
|
|
1201
1248
|
if (method === "POST") {
|
|
1202
1249
|
csrf();
|
|
@@ -1227,12 +1274,22 @@ export function createHubHttp(deps, sql) {
|
|
|
1227
1274
|
return send(res, 200, await guard(() => groupRooms.patch(ctx, roomId, b)));
|
|
1228
1275
|
}
|
|
1229
1276
|
}
|
|
1277
|
+
else if (method === "PATCH") {
|
|
1278
|
+
csrf();
|
|
1279
|
+
const b = await body();
|
|
1280
|
+
if (Object.keys(b).length !== 1 || typeof b.directMessagesMuted !== "boolean")
|
|
1281
|
+
throw new HubProtocolError("invalid");
|
|
1282
|
+
const room = await guard(() => rooms.view(ctx, roomId));
|
|
1283
|
+
await ctx.current();
|
|
1284
|
+
directPosts.setMuted(roomId, personKeyString(room.asker), b.directMessagesMuted);
|
|
1285
|
+
return send(res, 200, { ok: true });
|
|
1286
|
+
}
|
|
1230
1287
|
else if (method === "GET") {
|
|
1231
1288
|
const room = await guard(() => rooms.view(ctx, roomId));
|
|
1232
1289
|
const person = personKeyString(room.asker), name = signedIn().displayName;
|
|
1233
|
-
return send(res, 200, { room: directRoomView(room,
|
|
1290
|
+
return send(res, 200, { room: directRoomView(room, directPresence(room.exposureId), directUnread(core, room), intros.projection(room.exposureId), groupRooms.agents.reported(room.exposureId)), me: { id: person, role: "member" },
|
|
1234
1291
|
members: [{ id: person, kind: "person", name, role: "member", presence: "online" }, { id: room.exposureId, kind: "agent", name: room.exposureName,
|
|
1235
|
-
...(room.answerOnly ? { answerOnly: true } : {}), owner: { name: room.ownerName }, role: "member", presence:
|
|
1292
|
+
...(room.answerOnly ? { answerOnly: true } : {}), owner: { name: room.ownerName }, role: "member", presence: directPresence(room.exposureId), canAsk: room.state === "active" }],
|
|
1236
1293
|
settings: { allMention: false, historyForNew: "all" }, invited: [] });
|
|
1237
1294
|
}
|
|
1238
1295
|
throw new HttpError(405, "method");
|
|
@@ -1351,8 +1408,15 @@ export function createHubHttp(deps, sql) {
|
|
|
1351
1408
|
csrf();
|
|
1352
1409
|
const b = await body();
|
|
1353
1410
|
const files = b.files === undefined ? [] : Array.isArray(b.files) && b.files.length <= 10 ? b.files.map(uuid) : (() => { throw new HubProtocolError("invalid"); })();
|
|
1354
|
-
if (b.mentions !== undefined && (!Array.isArray(b.mentions) || b.mentions.length))
|
|
1411
|
+
if (b.mentions !== undefined && (!Array.isArray(b.mentions) || b.mentions.length > 64))
|
|
1355
1412
|
throw new HubProtocolError("invalid");
|
|
1413
|
+
if (b.mentions?.length) {
|
|
1414
|
+
// M-3604: the shared room composer names the room's own agent when the text @-mentions it ("@Desk …"). In a 1:1
|
|
1415
|
+
// that agent is the only one, so the mention changes nothing: the question goes as written. Anything else stays refused.
|
|
1416
|
+
const own = (await guard(() => rooms.view(ctx, roomId))).exposureId;
|
|
1417
|
+
if (!b.mentions.every((x) => x === own || x === "all"))
|
|
1418
|
+
throw new HubProtocolError("invalid");
|
|
1419
|
+
}
|
|
1356
1420
|
const receipt = await guard(() => rooms.ask(ctx, roomId, uuid(b.idempotencyKey), typeof b.text === "string" ? b.text : "", files));
|
|
1357
1421
|
const room = await guard(() => rooms.view(ctx, roomId));
|
|
1358
1422
|
groupRooms.publish({ type: "message.added", roomId, data: { roomId, messageId: receipt.messageId }, audiencePerson: personKeyString(room.asker) });
|
|
@@ -1405,6 +1469,20 @@ export function createHubHttp(deps, sql) {
|
|
|
1405
1469
|
}
|
|
1406
1470
|
}
|
|
1407
1471
|
// `/inline` (a plain path, as the shared thread's renderer takes it) is the same as `?inline=1`: images only.
|
|
1472
|
+
// M-3533 R2b: a room agent's disc or portrait, for the room's members. `?v=` is the hash the room showed: kept while it matches.
|
|
1473
|
+
// M-3533 R2c: and one pose of its own character (its strip's PNG), the same way.
|
|
1474
|
+
if ((r = m(/^\/hub\/v1\/rooms\/([^/]+)\/agents\/([^/]+)\/(?:picture\/(disc|portrait)|character\/([A-Za-z]{1,16}))$/))) {
|
|
1475
|
+
if (method !== "GET")
|
|
1476
|
+
throw new HttpError(405, "method");
|
|
1477
|
+
const roomId = uuid(r[1]), exposureId = uuid(r[2]);
|
|
1478
|
+
signedIn();
|
|
1479
|
+
const file = await guard(() => r[3] ? groupRooms.picture(ctx, roomId, exposureId, r[3]) : groupRooms.characterStrip(ctx, roomId, exposureId, r[4]));
|
|
1480
|
+
res.writeHead(200, { "Content-Type": file.mime, "Content-Length": String(file.bytes.length), "X-Content-Type-Options": "nosniff",
|
|
1481
|
+
"Content-Security-Policy": "default-src 'none'; sandbox", "Cache-Control": query.get("v") === file.sha256 ? "private, max-age=86400" : "private, no-cache",
|
|
1482
|
+
ETag: `"${file.sha256}"`, "Referrer-Policy": "no-referrer", "Cross-Origin-Resource-Policy": "same-origin" });
|
|
1483
|
+
res.end(file.bytes);
|
|
1484
|
+
return;
|
|
1485
|
+
}
|
|
1408
1486
|
if ((r = m(/^\/hub\/v1\/rooms\/([^/]+)\/files\/([^/]+)(\/inline)?$/))) {
|
|
1409
1487
|
if (method !== "GET")
|
|
1410
1488
|
throw new HttpError(405, "method");
|
|
@@ -1476,6 +1554,27 @@ export function createHubHttp(deps, sql) {
|
|
|
1476
1554
|
}
|
|
1477
1555
|
async function admin(req, res, path, ctx, method, signedIn, csrf, body, guard) {
|
|
1478
1556
|
let r;
|
|
1557
|
+
// M-3592: how long a sign-in lasts (absolute and idle), the administrator's.
|
|
1558
|
+
if (path === "/hub/v1/admin/session-limits") {
|
|
1559
|
+
if ((req.url ?? "").includes("?"))
|
|
1560
|
+
throw new HubProtocolError("invalid");
|
|
1561
|
+
if (method !== "GET" && method !== "PUT")
|
|
1562
|
+
throw new HttpError(405, "method");
|
|
1563
|
+
try {
|
|
1564
|
+
if (method === "GET") {
|
|
1565
|
+
signedIn();
|
|
1566
|
+
return send(res, 200, await guard(() => sessionLimits.settings(ctx)));
|
|
1567
|
+
}
|
|
1568
|
+
csrf();
|
|
1569
|
+
const input = await body();
|
|
1570
|
+
return send(res, 200, await guard(() => sessionLimits.save(ctx, input)));
|
|
1571
|
+
}
|
|
1572
|
+
catch (error) {
|
|
1573
|
+
if (!(error instanceof HubSessionLimitRefusal))
|
|
1574
|
+
throw error;
|
|
1575
|
+
return send(res, error.status, { code: error.code });
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1479
1578
|
if (path === "/hub/v1/admin/recommended-version" || path === "/hub/v1/admin/recommended-version/preview") {
|
|
1480
1579
|
try {
|
|
1481
1580
|
if (path.endsWith("/preview")) {
|
|
@@ -1676,6 +1775,17 @@ export function createHubHttp(deps, sql) {
|
|
|
1676
1775
|
return servePublicAsset(res, path.slice("/assets/".length));
|
|
1677
1776
|
return false;
|
|
1678
1777
|
}
|
|
1778
|
+
/** M-3533 R2b: a pictures exchange refused for the link's state answers so; a malformed or unnegotiated frame stays an error. */
|
|
1779
|
+
function pictureCall(fn) {
|
|
1780
|
+
try {
|
|
1781
|
+
return fn();
|
|
1782
|
+
}
|
|
1783
|
+
catch (error) {
|
|
1784
|
+
if (!(error instanceof HubProtocolError) || error.code === "incompatible" || error.code === "invalid")
|
|
1785
|
+
throw error;
|
|
1786
|
+
return { ok: false, code: error.code === "stale" || error.code === "revoked" ? error.code : "unavailable" };
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1679
1789
|
function roomPostCode(error) {
|
|
1680
1790
|
switch (error.code) {
|
|
1681
1791
|
case "invalid":
|
|
@@ -1704,8 +1814,12 @@ export function createHubHttp(deps, sql) {
|
|
|
1704
1814
|
return;
|
|
1705
1815
|
case "agent.catalog":
|
|
1706
1816
|
agentCatalogs.report(frame.payload, link);
|
|
1817
|
+
rooms.shareLapsesChanged(link.fleetId);
|
|
1818
|
+
groupRooms.agents.publicationChanged(link.fleetId);
|
|
1707
1819
|
sharingRequests.wake();
|
|
1708
1820
|
return;
|
|
1821
|
+
case "agent.pictures": return { ...reply, type: "agent.pictures-result", payload: pictureCall(() => agentPictures.report(frame.payload, link)) };
|
|
1822
|
+
case "agent.picture": return { ...reply, type: "agent.picture-result", payload: pictureCall(() => agentPictures.chunk(frame.payload, link)) };
|
|
1709
1823
|
case "exposure.request-result":
|
|
1710
1824
|
sharingRequests.result(frame.requestId, frame.payload, link);
|
|
1711
1825
|
return { ...reply, type: "exposure.request-ack", payload: { ok: true } };
|
|
@@ -1721,7 +1835,8 @@ export function createHubHttp(deps, sql) {
|
|
|
1721
1835
|
return;
|
|
1722
1836
|
case "room.list":
|
|
1723
1837
|
try {
|
|
1724
|
-
return { ...reply, type: "room.list-result", payload: await groupRooms.agentRooms(frame.payload, link)
|
|
1838
|
+
return { ...reply, type: "room.list-result", payload: await (async () => { const result = await groupRooms.agentRooms(frame.payload, link); if (!result.ok || !link.features.has(HUB_DIRECT_POST_CAPABILITY))
|
|
1839
|
+
return result; const all = [...result.rooms, ...await directPosts.rooms(frame.payload.exposureId, link)]; return { ...result, rooms: all.slice(0, 200), ...(all.length > 200 ? { truncated: true } : {}) }; })() };
|
|
1725
1840
|
}
|
|
1726
1841
|
catch (error) {
|
|
1727
1842
|
if (!(error instanceof HubProtocolError))
|
|
@@ -1738,7 +1853,7 @@ export function createHubHttp(deps, sql) {
|
|
|
1738
1853
|
catch (error) {
|
|
1739
1854
|
if (!(error instanceof HubProtocolError))
|
|
1740
1855
|
throw error;
|
|
1741
|
-
return { ...reply, type: "room.members-result", payload: { ok: false, code: roomPostCode(error) } };
|
|
1856
|
+
return { ...reply, type: "room.members-result", payload: { ok: false, code: roomPostCode(error), } };
|
|
1742
1857
|
}
|
|
1743
1858
|
case "people.search":
|
|
1744
1859
|
try {
|
|
@@ -1747,16 +1862,16 @@ export function createHubHttp(deps, sql) {
|
|
|
1747
1862
|
catch (error) {
|
|
1748
1863
|
if (!(error instanceof HubProtocolError))
|
|
1749
1864
|
throw error;
|
|
1750
|
-
return { ...reply, type: "people.search-result", payload: { ok: false, code: roomPostCode(error) } };
|
|
1865
|
+
return { ...reply, type: "people.search-result", payload: { ok: false, code: roomPostCode(error), } };
|
|
1751
1866
|
}
|
|
1752
1867
|
case "room.post":
|
|
1753
1868
|
try {
|
|
1754
|
-
return { ...reply, type: "room.post-result", payload: await groupRooms.agentPost(frame.payload, link) };
|
|
1869
|
+
return { ...reply, type: "room.post-result", payload: await (frame.payload.direct ? directPosts.post(frame.payload, link) : groupRooms.agentPost(frame.payload, link)) };
|
|
1755
1870
|
}
|
|
1756
1871
|
catch (error) {
|
|
1757
1872
|
if (!(error instanceof HubProtocolError))
|
|
1758
1873
|
throw error;
|
|
1759
|
-
return { ...reply, type: "room.post-result", payload: { ok: false, code: roomPostCode(error) } };
|
|
1874
|
+
return { ...reply, type: "room.post-result", payload: { ok: false, code: roomPostCode(error), ...(frame.payload.direct ? { message: error.code === "stale" ? "The sharing or sending connection changed; check hub_room_list before trying again." : "The person is no longer allowed to ask this agent, or their permission expired." } : {}) } };
|
|
1760
1875
|
}
|
|
1761
1876
|
case "room.context-state": return { ...reply, type: "room.context-state-result", payload: groupRooms.agents.contextState(frame.payload, link) };
|
|
1762
1877
|
case "room.context-input": return { ...reply, type: "room.context-input-result", payload: groupRooms.agents.contextInput(frame.payload, link) };
|
|
@@ -1772,6 +1887,7 @@ export function createHubHttp(deps, sql) {
|
|
|
1772
1887
|
}
|
|
1773
1888
|
case "agent.state":
|
|
1774
1889
|
groupRooms.agents.state(frame.payload, link);
|
|
1890
|
+
directAgentChanged(frame.payload.exposureId);
|
|
1775
1891
|
return;
|
|
1776
1892
|
// M-3127 (agent reactions, on room-answer-buttons-v1): an agent's reaction to the room question it was asked; the result says why not.
|
|
1777
1893
|
case "room.react":
|
|
@@ -1785,6 +1901,10 @@ export function createHubHttp(deps, sql) {
|
|
|
1785
1901
|
}
|
|
1786
1902
|
case "exposure.snapshot":
|
|
1787
1903
|
await catalog.receiveSnapshot(frame.payload, link, frame.requestId);
|
|
1904
|
+
try {
|
|
1905
|
+
agentPictures.prune();
|
|
1906
|
+
}
|
|
1907
|
+
catch { /* the periodic sweep */ }
|
|
1788
1908
|
await sharingRequests.snapshot(link);
|
|
1789
1909
|
quota.prune();
|
|
1790
1910
|
groupRooms.agents.publicationChanged(link.fleetId);
|
|
@@ -1807,7 +1927,13 @@ export function createHubHttp(deps, sql) {
|
|
|
1807
1927
|
directChanged(payload.messageId, true);
|
|
1808
1928
|
return { ...reply, type: "receipt", payload };
|
|
1809
1929
|
}
|
|
1810
|
-
case "authorize.request":
|
|
1930
|
+
case "authorize.request": {
|
|
1931
|
+
const payload = await policy.authorize(frame.payload, link);
|
|
1932
|
+
// M-3596: a begin lease is the hand-off to the agent: the asker's question now reads "working on it".
|
|
1933
|
+
if (payload.ok && frame.payload.phase === "begin")
|
|
1934
|
+
directStarted(frame.payload.messageId);
|
|
1935
|
+
return { ...reply, type: "authorize.result", payload };
|
|
1936
|
+
}
|
|
1811
1937
|
case "reconcile": {
|
|
1812
1938
|
const page = rooms.reconcile(frame.payload, link);
|
|
1813
1939
|
// The link becomes ready once S1 has sent this last page; questions follow it (retrying briefly until it is).
|
|
@@ -1829,6 +1955,18 @@ export function createHubHttp(deps, sql) {
|
|
|
1829
1955
|
}
|
|
1830
1956
|
groupRooms.agents.publicationSettled(settlement.group);
|
|
1831
1957
|
}
|
|
1958
|
+
/** M-3596: the agent of these 1:1 rooms changed state (working, idle, paused): each asker's room view is read again. */
|
|
1959
|
+
function directAgentChanged(exposureId) {
|
|
1960
|
+
const rows = core.atomic(db => db.prepare("SELECT id,asker FROM hub_rooms WHERE exposure_id=? AND state='active'").all(exposureId));
|
|
1961
|
+
for (const r of rows)
|
|
1962
|
+
groupRooms.publish({ type: "room.changed", roomId: r.id, data: { roomId: r.id }, audiencePerson: r.asker });
|
|
1963
|
+
}
|
|
1964
|
+
/** M-3596: the question was handed to its agent — its pending answer row reads "working" now (the asker only). */
|
|
1965
|
+
function directStarted(messageId) {
|
|
1966
|
+
const row = core.atomic(db => db.prepare("SELECT room_id,asker FROM hub_messages WHERE id=?").get(messageId));
|
|
1967
|
+
if (row)
|
|
1968
|
+
groupRooms.publish({ type: "message.updated", roomId: row.room_id, data: { roomId: row.room_id, messageId: `${messageId}:answer` }, audiencePerson: row.asker });
|
|
1969
|
+
}
|
|
1832
1970
|
function directChanged(messageId, answer) {
|
|
1833
1971
|
const row = core.atomic(db => db.prepare("SELECT room_id,asker FROM hub_messages WHERE id=?").get(messageId));
|
|
1834
1972
|
if (!row)
|
|
@@ -1858,10 +1996,10 @@ export function createHubHttp(deps, sql) {
|
|
|
1858
1996
|
prepareDirectoryRotation: (token, actor) => sessions.prepareDirectoryRotation(token, actor),
|
|
1859
1997
|
completeDirectoryRotation: (rotation, operationId) => sessions.completeDirectoryRotation(rotation, operationId),
|
|
1860
1998
|
}),
|
|
1861
|
-
handle, receive, memberReady: link => { recommendations.ready(link); fleetUpdates.ready(link); }, memberConnected: link => { fleetVersions.connected(link); agentCatalogs.connected(link); }, memberClosed: fleetId => { if (live())
|
|
1862
|
-
groupRooms.agents.disconnected(fleetId); }, agentIntroV1: true, agentCatalogV1: true, exposureRequestsV1: true, features: Object.freeze(["agent-intro-defaults-v1", "agent-sharing-v1", "agent-intros-v1", "admin-dashboard-v1", "fleet-update-v1", "rooms-v1", "room-purpose-v1", "room-ask-v1", "room-post-v1", HUB_ROOM_CONTEXT_CAPABILITY, HUB_ROOM_BRIEF_CAPABILITY, HUB_ROOM_MEMBERS_CAPABILITY, HUB_ROOM_ANSWER_STATUS_CAPABILITY, "person-prefs-v1", ...(roomAgentRequests ? ["room-owner-requests-v1"] : []), ...(roomDiscovery ? ["room-agent-discovery-v1"] : []), ...(personal ? ["personal-agents-v1"] : []), ...(teams ? ["teams-v1"] : []), ...(deps.roleAdmin ? ["role-settings-v1"] : []), ...(deps.roomAssistant && deps.assistantAdmin ? ["room-assistant-v1"] : []), ...(deps.refreshAuthorization ? ["sharing-pause-v1"] : []), ...(deps.groupHttp ? [GROUP_POLICY_FEATURE, ...(deps.pairingNotices ? ["quick-pairing-v1"] : [])] : []), ...(grantSubjectsOffered() ? ["grant-subjects-v1"] : []),
|
|
1999
|
+
handle, receive, ...(deps.issuer.signRoomAsker ? { roomAskerIdentityV1: true } : {}), memberReady: link => { recommendations.ready(link); fleetUpdates.ready(link); }, memberConnected: link => { fleetVersions.connected(link); agentCatalogs.connected(link); }, memberClosed: fleetId => { if (live())
|
|
2000
|
+
groupRooms.agents.disconnected(fleetId); }, agentIntroV1: true, agentCatalogV1: true, agentPicturesV1: true, agentCharactersV1: true, exposureRequestsV1: true, features: Object.freeze(["agent-intro-defaults-v1", "agent-sharing-v1", "agent-intros-v1", "admin-dashboard-v1", "fleet-update-v1", "rooms-v1", "room-purpose-v1", "room-ask-v1", "room-post-v1", HUB_DIRECT_POST_CAPABILITY, HUB_ROOM_CONTEXT_CAPABILITY, HUB_ROOM_BRIEF_CAPABILITY, HUB_ROOM_MEMBERS_CAPABILITY, HUB_ROOM_ANSWER_STATUS_CAPABILITY, "person-prefs-v1", ...(roomAgentRequests ? ["room-owner-requests-v1"] : []), ...(roomDiscovery ? ["room-agent-discovery-v1"] : []), ...(personal ? ["personal-agents-v1"] : []), ...(teams ? ["teams-v1"] : []), ...(deps.roleAdmin ? ["role-settings-v1"] : []), ...(deps.roomAssistant && deps.assistantAdmin ? ["room-assistant-v1"] : []), ...(deps.refreshAuthorization ? ["sharing-pause-v1"] : []), ...(deps.groupHttp ? [GROUP_POLICY_FEATURE, ...(deps.pairingNotices ? ["quick-pairing-v1"] : [])] : []), ...(grantSubjectsOffered() ? ["grant-subjects-v1"] : []),
|
|
1863
2001
|
...(deps.directoryNotices ? ["directory-security-notices-v1"] : []), ...(deps.memberAddressNotices ? ["member-address-notices-v1"] : []), ...(deps.directorySettings ? [HUB_DIRECTORY_SETTINGS_FEATURE, HUB_DIRECTORY_CA_FEATURE, HUB_DIRECTORY_EDITOR_FEATURE] : [])]),
|
|
1864
|
-
async close() { closed = true; sharingRequests.close(); agentCatalogs.close(); personal?.owner.close(); await personal?.turns.close(); fleetUpdates.close(); recommendations.close(); fleetVersions.close(); grantSearch.close(); for (const end of streams)
|
|
2002
|
+
async close() { closed = true; sharingRequests.close(); agentCatalogs.close(); agentPictures.close(); personal?.owner.close(); await personal?.turns.close(); fleetUpdates.close(); recommendations.close(); fleetVersions.close(); grantSearch.close(); for (const end of streams)
|
|
1865
2003
|
end(); await mcp.close(); await groupRooms.close(); await rooms.buttons.close(); rooms.forget(); quota.close(); },
|
|
1866
2004
|
};
|
|
1867
2005
|
}
|