polfan-server-js-client 0.3.1 → 0.3.3
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/.idea/shelf/Uncommitted_changes_before_rebase_[Changes]/shelved.patch +18 -0
- package/.idea/shelf/Uncommitted_changes_before_rebase__Changes_.xml +4 -0
- package/.idea/workspace.xml +73 -61
- package/build/index.cjs.js +416 -212
- package/build/index.cjs.js.map +1 -1
- package/build/index.umd.js +1 -1
- package/build/index.umd.js.map +1 -1
- package/build/types/Permissions.d.ts +1 -1
- package/build/types/state-tracker/RoomMessagesHistory.d.ts +15 -4
- package/build/types/state-tracker/TopicHistoryWindow.d.ts +48 -0
- package/build/types/types/src/schemes/RoomMember.d.ts +1 -0
- package/build/types/types/src/schemes/SpaceMember.d.ts +1 -0
- package/build/types/types/src/schemes/commands/UpdateRoomMember.d.ts +1 -0
- package/build/types/types/src/schemes/commands/UpdateSpaceMember.d.ts +1 -0
- package/package.json +1 -1
- package/src/Permissions.ts +1 -1
- package/src/state-tracker/RoomMessagesHistory.ts +27 -9
- package/src/state-tracker/RoomsManager.ts +1 -0
- package/src/state-tracker/TopicHistoryWindow.ts +133 -1
- package/src/types/src/schemes/RoomMember.ts +1 -0
- package/src/types/src/schemes/SpaceMember.ts +1 -0
- package/src/types/src/schemes/commands/UpdateRoomMember.ts +1 -0
- package/src/types/src/schemes/commands/UpdateSpaceMember.ts +1 -0
- package/tests/history-window.test.ts +131 -0
- package/tests/state-reconnect.test.ts +260 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Index: package.json
|
|
2
|
+
IDEA additional info:
|
|
3
|
+
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
|
|
4
|
+
<+>{\n \"name\": \"polfan-server-js-client\",\n \"version\": \"0.3.1\",\n \"description\": \"JavaScript client library for handling communication with Polfan chat server.\",\n \"author\": \"Jarosław Żak\",\n \"license\": \"MIT\",\n \"main\": \"build/index.cjs.js\",\n \"browser\": \"build/index.umd.js\",\n \"types\": \"build/types/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./build/types/index.d.ts\",\n \"require\": \"./build/index.cjs.js\",\n \"browser\": \"./build/index.umd.js\",\n \"default\": \"./build/index.cjs.js\"\n }\n },\n \"scripts\": {\n \"build\": \"npm run build:node && npm run build:browser && tsc\",\n \"build:node\": \"webpack --config webpack.config.node.js\",\n \"build:browser\": \"webpack --config webpack.config.browser.js\",\n \"test\": \"jest\",\n \"coverage\": \"npm run test -- --coverage\",\n \"trypublish\": \"npm publish || true\"\n },\n \"devDependencies\": {\n \"@babel/cli\": \"^7.28.3\",\n \"@babel/core\": \"^7.28.5\",\n \"@babel/preset-env\": \"^7.28.5\",\n \"@babel/preset-typescript\": \"^7.28.5\",\n \"@types/jest\": \"^29.5.14\",\n \"babel-loader\": \"^9.2.1\",\n \"file-loader\": \"^6.2.0\",\n \"jest\": \"^29.7.0\",\n \"ts-node\": \"^10.9.2\",\n \"typescript\": \"^4.9.5\",\n \"webpack\": \"^5.103.0\",\n \"webpack-cli\": \"^5.1.4\"\n },\n \"dependencies\": {\n \"terser-webpack-plugin\": \"^5.3.14\"\n }\n}\n
|
|
5
|
+
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
|
6
|
+
<+>UTF-8
|
|
7
|
+
===================================================================
|
|
8
|
+
diff --git a/package.json b/package.json
|
|
9
|
+
--- a/package.json (revision d974e79c5de0f1238eda4bf6d13f7e38ca819d90)
|
|
10
|
+
+++ b/package.json (date 1785593595442)
|
|
11
|
+
@@ -1,6 +1,6 @@
|
|
12
|
+
{
|
|
13
|
+
"name": "polfan-server-js-client",
|
|
14
|
+
- "version": "0.3.1",
|
|
15
|
+
+ "version": "0.3.2",
|
|
16
|
+
"description": "JavaScript client library for handling communication with Polfan chat server.",
|
|
17
|
+
"author": "Jarosław Żak",
|
|
18
|
+
"license": "MIT",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<changelist name="Uncommitted_changes_before_rebase_[Changes]" date="1785593598500" recycled="true" deleted="true">
|
|
2
|
+
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_rebase_[Changes]/shelved.patch" />
|
|
3
|
+
<option name="DESCRIPTION" value="Uncommitted changes before rebase [Changes]" />
|
|
4
|
+
</changelist>
|
package/.idea/workspace.xml
CHANGED
|
@@ -4,13 +4,7 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/src/AbstractChatClient.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/AbstractChatClient.ts" afterDir="false" />
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/src/Permissions.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/Permissions.ts" afterDir="false" />
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" afterDir="false" />
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/src/state-tracker/SpacesManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/SpacesManager.ts" afterDir="false" />
|
|
12
|
-
<change beforePath="$PROJECT_DIR$/src/types" beforeDir="false" afterPath="$PROJECT_DIR$/src/types" afterDir="false" />
|
|
13
|
-
</list>
|
|
7
|
+
<list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Custom avatars support" />
|
|
14
8
|
<option name="SHOW_DIALOG" value="false" />
|
|
15
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
16
10
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -20,7 +14,7 @@
|
|
|
20
14
|
<execution />
|
|
21
15
|
</component>
|
|
22
16
|
<component name="EmbeddingIndexingInfo">
|
|
23
|
-
<option name="cachedIndexableFilesCount" value="
|
|
17
|
+
<option name="cachedIndexableFilesCount" value="212" />
|
|
24
18
|
</component>
|
|
25
19
|
<component name="Git.Rebase.Settings">
|
|
26
20
|
<option name="NEW_BASE" value="origin/main" />
|
|
@@ -28,11 +22,11 @@
|
|
|
28
22
|
<component name="Git.Settings">
|
|
29
23
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
|
30
24
|
<map>
|
|
31
|
-
<entry key="$PROJECT_DIR$" value="claude/
|
|
32
|
-
<entry key="$PROJECT_DIR$/src/types" value="
|
|
25
|
+
<entry key="$PROJECT_DIR$" value="claude/avatars-room-space-support-bvrcaz" />
|
|
26
|
+
<entry key="$PROJECT_DIR$/src/types" value="main" />
|
|
33
27
|
</map>
|
|
34
28
|
</option>
|
|
35
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR
|
|
29
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/src/types" />
|
|
36
30
|
<option name="ROOT_SYNC" value="DONT_SYNC" />
|
|
37
31
|
</component>
|
|
38
32
|
<component name="GitHubPullRequestSearchHistory">{
|
|
@@ -41,6 +35,16 @@
|
|
|
41
35
|
"assignee": "szado"
|
|
42
36
|
}
|
|
43
37
|
}</component>
|
|
38
|
+
<component name="GitRewordedCommitMessages">
|
|
39
|
+
<option name="commitMessagesMapping">
|
|
40
|
+
<RewordedCommitMessageMapping>
|
|
41
|
+
<option name="originalMessage" value="Custom avatars support" />
|
|
42
|
+
<option name="rewordedMessage" value="Custom avatars support" />
|
|
43
|
+
</RewordedCommitMessageMapping>
|
|
44
|
+
</option>
|
|
45
|
+
<option name="currentCommit" value="1" />
|
|
46
|
+
<option name="onto" value="6a2d671a2ea3742ea3977b1d035f4d4bed40c7eb" />
|
|
47
|
+
</component>
|
|
44
48
|
<component name="GithubPullRequestsUISettings">{
|
|
45
49
|
"selectedUrlAndAccountId": {
|
|
46
50
|
"url": "https://github.com/szado/pserv-ts-types",
|
|
@@ -63,34 +67,34 @@
|
|
|
63
67
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
64
68
|
<option name="showLibraryContents" value="true" />
|
|
65
69
|
</component>
|
|
66
|
-
<component name="PropertiesComponent"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
70
|
+
<component name="PropertiesComponent">{
|
|
71
|
+
"keyToString": {
|
|
72
|
+
"RunOnceActivity.MCP Project settings loaded": "true",
|
|
73
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
74
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
|
|
75
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
|
76
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
77
|
+
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
78
|
+
"codeWithMe.voiceChat.enabledByDefault": "false",
|
|
79
|
+
"com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true",
|
|
80
|
+
"git-widget-placeholder": "main",
|
|
81
|
+
"git.auto.fetch.suggestion.counter": "3",
|
|
82
|
+
"ignore.virus.scanning.warn.message": "true",
|
|
83
|
+
"junie.onboarding.icon.badge.shown": "true",
|
|
84
|
+
"last_opened_file_path": "//wsl.localhost/Debian/home/jarek/polfan-js-client-library",
|
|
85
|
+
"node.js.detected.package.eslint": "true",
|
|
86
|
+
"node.js.detected.package.tslint": "true",
|
|
87
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
88
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
89
|
+
"nodejs_package_manager_path": "npm",
|
|
90
|
+
"npm.build:node.executor": "Run",
|
|
91
|
+
"settings.editor.selected.configurable": "com.github.copilot.settings.chat.ChatConfigurable",
|
|
92
|
+
"to.speed.mode.migration.done": "true",
|
|
93
|
+
"ts.external.directory.path": "\\\\wsl.localhost\\Debian\\home\\jarek\\polfan-js-client-library\\node_modules\\typescript\\lib",
|
|
94
|
+
"vcs.patch.to.clipboard": "true",
|
|
95
|
+
"vue.rearranger.settings.migration": "true"
|
|
92
96
|
}
|
|
93
|
-
}
|
|
97
|
+
}</component>
|
|
94
98
|
<component name="RunManager">
|
|
95
99
|
<configuration name="build:node" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
|
96
100
|
<package-json value="$PROJECT_DIR$/package.json" />
|
|
@@ -107,6 +111,7 @@
|
|
|
107
111
|
<item itemvalue="npm.build:node" />
|
|
108
112
|
<item itemvalue="npm.build:node" />
|
|
109
113
|
<item itemvalue="npm.build:node" />
|
|
114
|
+
<item itemvalue="npm.build:node" />
|
|
110
115
|
</list>
|
|
111
116
|
</recent_temporary>
|
|
112
117
|
</component>
|
|
@@ -235,23 +240,9 @@
|
|
|
235
240
|
<workItem from="1783939298935" duration="21428000" />
|
|
236
241
|
<workItem from="1784102649250" duration="12484000" />
|
|
237
242
|
<workItem from="1784524117686" duration="79000" />
|
|
238
|
-
<workItem from="1784562428378" duration="
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
<option name="closed" value="true" />
|
|
242
|
-
<created>1763587170120</created>
|
|
243
|
-
<option name="number" value="00063" />
|
|
244
|
-
<option name="presentableId" value="LOCAL-00063" />
|
|
245
|
-
<option name="project" value="LOCAL" />
|
|
246
|
-
<updated>1763587170121</updated>
|
|
247
|
-
</task>
|
|
248
|
-
<task id="LOCAL-00064" summary="Align to custom colors and nicks protocol changes">
|
|
249
|
-
<option name="closed" value="true" />
|
|
250
|
-
<created>1764688847485</created>
|
|
251
|
-
<option name="number" value="00064" />
|
|
252
|
-
<option name="presentableId" value="LOCAL-00064" />
|
|
253
|
-
<option name="project" value="LOCAL" />
|
|
254
|
-
<updated>1764688847485</updated>
|
|
243
|
+
<workItem from="1784562428378" duration="25143000" />
|
|
244
|
+
<workItem from="1785316847947" duration="4816000" />
|
|
245
|
+
<workItem from="1785689068542" duration="2232000" />
|
|
255
246
|
</task>
|
|
256
247
|
<task id="LOCAL-00065" summary="Align to custom colors and nicks protocol changes">
|
|
257
248
|
<option name="closed" value="true" />
|
|
@@ -629,7 +620,23 @@
|
|
|
629
620
|
<option name="project" value="LOCAL" />
|
|
630
621
|
<updated>1785167989175</updated>
|
|
631
622
|
</task>
|
|
632
|
-
<
|
|
623
|
+
<task id="LOCAL-00112" summary="Introduce room invitations and manual member adding">
|
|
624
|
+
<option name="closed" value="true" />
|
|
625
|
+
<created>1785177501237</created>
|
|
626
|
+
<option name="number" value="00112" />
|
|
627
|
+
<option name="presentableId" value="LOCAL-00112" />
|
|
628
|
+
<option name="project" value="LOCAL" />
|
|
629
|
+
<updated>1785177501238</updated>
|
|
630
|
+
</task>
|
|
631
|
+
<task id="LOCAL-00113" summary="Custom avatars support">
|
|
632
|
+
<option name="closed" value="true" />
|
|
633
|
+
<created>1785594413374</created>
|
|
634
|
+
<option name="number" value="00113" />
|
|
635
|
+
<option name="presentableId" value="LOCAL-00113" />
|
|
636
|
+
<option name="project" value="LOCAL" />
|
|
637
|
+
<updated>1785594413375</updated>
|
|
638
|
+
</task>
|
|
639
|
+
<option name="localTasksCounter" value="114" />
|
|
633
640
|
<servers />
|
|
634
641
|
</component>
|
|
635
642
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -643,7 +650,7 @@
|
|
|
643
650
|
<list>
|
|
644
651
|
<RecentGroup>
|
|
645
652
|
<option name="FILTER_VALUES">
|
|
646
|
-
<option value="claude/
|
|
653
|
+
<option value="claude/avatars-room-space-support-bvrcaz" />
|
|
647
654
|
</option>
|
|
648
655
|
</RecentGroup>
|
|
649
656
|
<RecentGroup>
|
|
@@ -651,6 +658,11 @@
|
|
|
651
658
|
<option value="master" />
|
|
652
659
|
</option>
|
|
653
660
|
</RecentGroup>
|
|
661
|
+
<RecentGroup>
|
|
662
|
+
<option name="FILTER_VALUES">
|
|
663
|
+
<option value="claude/add-members-invite-rooms-1nphsj" />
|
|
664
|
+
</option>
|
|
665
|
+
</RecentGroup>
|
|
654
666
|
<RecentGroup>
|
|
655
667
|
<option name="FILTER_VALUES">
|
|
656
668
|
<option value="origin/claude/chat-state-tracker-reconnect-6s4eha" />
|
|
@@ -676,7 +688,7 @@
|
|
|
676
688
|
<entry key="branch">
|
|
677
689
|
<value>
|
|
678
690
|
<list>
|
|
679
|
-
<option value="claude/
|
|
691
|
+
<option value="claude/avatars-room-space-support-bvrcaz" />
|
|
680
692
|
</list>
|
|
681
693
|
</value>
|
|
682
694
|
</entry>
|
|
@@ -689,8 +701,6 @@
|
|
|
689
701
|
</option>
|
|
690
702
|
</component>
|
|
691
703
|
<component name="VcsManagerConfiguration">
|
|
692
|
-
<MESSAGE value="Fix emitting event with deleted topics" />
|
|
693
|
-
<MESSAGE value="Adjust to ban changes" />
|
|
694
704
|
<MESSAGE value="TopicHistoryWindow retainRatio and event handling improvements" />
|
|
695
705
|
<MESSAGE value="Remove removed message from Topic last message" />
|
|
696
706
|
<MESSAGE value="Update Topic on redacted message" />
|
|
@@ -714,7 +724,9 @@
|
|
|
714
724
|
<MESSAGE value="Reconcile tracked state on reconnect" />
|
|
715
725
|
<MESSAGE value="Introduce UserData support" />
|
|
716
726
|
<MESSAGE value="Add members to rooms and invitation only rooms support" />
|
|
717
|
-
<
|
|
727
|
+
<MESSAGE value="Introduce room invitations and manual member adding" />
|
|
728
|
+
<MESSAGE value="Custom avatars support" />
|
|
729
|
+
<option name="LAST_COMMIT_MESSAGE" value="Custom avatars support" />
|
|
718
730
|
</component>
|
|
719
731
|
<component name="XSLT-Support.FileAssociations.UIState">
|
|
720
732
|
<expand />
|