codex-lens 0.1.30 → 0.1.32
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/LICENSE +21 -21
- package/dist/aggregator.js +4 -1
- package/package.json +1 -1
- package/src/aggregator.js +6 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 AdonisZeng
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AdonisZeng
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/aggregator.js
CHANGED
|
@@ -150,12 +150,15 @@ class Aggregator {
|
|
|
150
150
|
return { httpPort: HTTP_PORT, proxyPort };
|
|
151
151
|
}
|
|
152
152
|
setupMainWebSocket() {
|
|
153
|
-
this.wss.on("connection", (ws) => {
|
|
153
|
+
this.wss.on("connection", async (ws) => {
|
|
154
154
|
logger.info("API client connected");
|
|
155
155
|
this.clients.add(ws);
|
|
156
156
|
const fileTree = scanDirectory(this.projectRoot);
|
|
157
157
|
logger.info(`Sending file_tree with ${fileTree.length} top-level items`);
|
|
158
158
|
ws.send(JSON.stringify({ type: "file_tree", data: fileTree }));
|
|
159
|
+
if (this.gitManager?.isGitRepo()) {
|
|
160
|
+
await this.gitManager.broadcastUpdate();
|
|
161
|
+
}
|
|
159
162
|
ws.on("close", () => {
|
|
160
163
|
logger.info("API client disconnected");
|
|
161
164
|
this.clients.delete(ws);
|
package/package.json
CHANGED
package/src/aggregator.js
CHANGED
|
@@ -178,7 +178,7 @@ class Aggregator {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
setupMainWebSocket() {
|
|
181
|
-
this.wss.on('connection', (ws) => {
|
|
181
|
+
this.wss.on('connection', async (ws) => {
|
|
182
182
|
logger.info('API client connected');
|
|
183
183
|
this.clients.add(ws);
|
|
184
184
|
|
|
@@ -186,6 +186,11 @@ class Aggregator {
|
|
|
186
186
|
logger.info(`Sending file_tree with ${fileTree.length} top-level items`);
|
|
187
187
|
ws.send(JSON.stringify({ type: 'file_tree', data: fileTree }));
|
|
188
188
|
|
|
189
|
+
// Send initial git status if available
|
|
190
|
+
if (this.gitManager?.isGitRepo()) {
|
|
191
|
+
await this.gitManager.broadcastUpdate();
|
|
192
|
+
}
|
|
193
|
+
|
|
189
194
|
ws.on('close', () => {
|
|
190
195
|
logger.info('API client disconnected');
|
|
191
196
|
this.clients.delete(ws);
|