clawtool 0.1.4 → 0.1.5
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/server.js +2 -0
- package/package.json +9 -1
package/dist/server.js
CHANGED
|
@@ -24,6 +24,7 @@ function createApp() {
|
|
|
24
24
|
});
|
|
25
25
|
app.get('/api/diagnose', (req, res) => {
|
|
26
26
|
const sessionId = Date.now().toString();
|
|
27
|
+
const lang = typeof req.query.lang === 'string' ? req.query.lang : 'en';
|
|
27
28
|
res.setHeader('Content-Type', 'text/event-stream; charset=utf-8');
|
|
28
29
|
res.setHeader('Cache-Control', 'no-cache');
|
|
29
30
|
res.setHeader('Connection', 'keep-alive');
|
|
@@ -33,6 +34,7 @@ function createApp() {
|
|
|
33
34
|
res.write(`data: ${payload}\n\n`);
|
|
34
35
|
};
|
|
35
36
|
const loop = new loop_1.DoctorLoop((event) => sendEvent(event));
|
|
37
|
+
loop.setLang(lang);
|
|
36
38
|
activeSessions.set(sessionId, { loop, res });
|
|
37
39
|
loop.start().catch((error) => {
|
|
38
40
|
sendEvent({ type: 'error', data: { message: error.message } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawtool",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Local-first OpenClaw diagnose and repair tool",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,6 +28,14 @@
|
|
|
28
28
|
"repair",
|
|
29
29
|
"local"
|
|
30
30
|
],
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/tunanet/clawtool.git"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/tunanet/clawtool/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/tunanet/clawtool#readme",
|
|
31
39
|
"license": "MIT",
|
|
32
40
|
"dependencies": {
|
|
33
41
|
"express": "^4.21.2",
|