@axiom-lattice/protocols 4.1.4 → 4.2.0
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +16 -0
- package/dist/index.d.mts +61 -6
- package/dist/index.d.ts +61 -6
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/McpLatticeProtocol.ts +7 -1
- package/src/McpServerConfigStoreProtocol.ts +2 -1
- package/src/ProjectRoomMessageStoreProtocol.ts +8 -0
- package/src/ProjectRoomReadStateProtocol.ts +20 -0
- package/src/ProjectRoomRealtimeProtocol.ts +28 -3
- package/src/__tests__/ProjectRoomReadStateProtocol.test.ts +16 -0
- package/src/__tests__/ProjectRoomStores.test.ts +4 -0
- package/src/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -629,6 +629,11 @@ function parseProjectRoomEventId(value) {
|
|
|
629
629
|
function isProjectRoomEventId(value) {
|
|
630
630
|
return parseProjectRoomEventId(value) !== void 0;
|
|
631
631
|
}
|
|
632
|
+
var PROJECT_ROOM_USER_CHANNEL_PROJECT = "__user_channel__";
|
|
633
|
+
function projectRoomUserEventScope(tenantId, userId) {
|
|
634
|
+
if (!tenantId || !userId) throw new TypeError("Project Room user scope requires non-empty identifiers");
|
|
635
|
+
return { tenantId, roomId: `__user__:${userId}`, projectId: PROJECT_ROOM_USER_CHANNEL_PROJECT };
|
|
636
|
+
}
|
|
632
637
|
function isoDate(value) {
|
|
633
638
|
if (typeof value !== "object" || value === null) return void 0;
|
|
634
639
|
try {
|
|
@@ -865,6 +870,7 @@ export {
|
|
|
865
870
|
McpMessageType,
|
|
866
871
|
MemoryType,
|
|
867
872
|
MessageChunkTypes,
|
|
873
|
+
PROJECT_ROOM_USER_CHANNEL_PROJECT,
|
|
868
874
|
PROJECT_TASK_LIFECYCLE_ACTIONS,
|
|
869
875
|
ProjectRoomBrokerCapacityError,
|
|
870
876
|
ProjectRoomCursorError,
|
|
@@ -893,6 +899,7 @@ export {
|
|
|
893
899
|
parseTaskBeliefState,
|
|
894
900
|
parseTrustedRunContext,
|
|
895
901
|
projectAgentWebAppChunk,
|
|
902
|
+
projectRoomUserEventScope,
|
|
896
903
|
replaceTaskBeliefState,
|
|
897
904
|
requireProjectTaskWorkItemStore,
|
|
898
905
|
snapshotExactArray,
|