@solidrt/cli 0.0.34 → 0.0.35
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/package.json +7 -7
- package/scaffold/package.json +4 -4
- package/server/cache.ts +1 -1
- package/server/control.ts +1 -1
- package/server/main.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidrt/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Antoine van Wel",
|
|
6
6
|
"type": "module",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"zod": "^4.4.3"
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|
|
31
|
-
"@solidrt/darwin-arm64": "0.0.
|
|
32
|
-
"@solidrt/linux-arm64-gnu": "0.0.
|
|
33
|
-
"@solidrt/linux-x64-gnu": "0.0.
|
|
34
|
-
"@solidrt/win32-x64-msvc": "0.0.
|
|
31
|
+
"@solidrt/darwin-arm64": "0.0.35",
|
|
32
|
+
"@solidrt/linux-arm64-gnu": "0.0.35",
|
|
33
|
+
"@solidrt/linux-x64-gnu": "0.0.35",
|
|
34
|
+
"@solidrt/win32-x64-msvc": "0.0.35"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@solidrt/core": "0.0.
|
|
37
|
+
"@solidrt/core": "0.0.35",
|
|
38
38
|
"typescript": "^7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@solidrt/flux-types": "0.0.
|
|
41
|
+
"@solidrt/flux-types": "0.0.35",
|
|
42
42
|
"@types/bun": "latest"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/scaffold/package.json
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"android": "srt client --android"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@solidrt/core": "0.0.
|
|
13
|
-
"@solidrt/components": "0.0.
|
|
12
|
+
"@solidrt/core": "0.0.35",
|
|
13
|
+
"@solidrt/components": "0.0.35"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@solidrt/cli": "0.0.
|
|
17
|
-
"@solidrt/flux-types": "0.0.
|
|
16
|
+
"@solidrt/cli": "0.0.35",
|
|
17
|
+
"@solidrt/flux-types": "0.0.35",
|
|
18
18
|
"typescript": "^7"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/server/cache.ts
CHANGED
|
@@ -31,7 +31,7 @@ let enabled = false
|
|
|
31
31
|
|
|
32
32
|
export async function initCache(opts: { dir: string }) {
|
|
33
33
|
await dir(opts.dir).create()
|
|
34
|
-
let d = await Database.
|
|
34
|
+
let d = await Database.open(join(opts.dir, CACHE_FILE), "rw+")
|
|
35
35
|
await d.exec(`CREATE TABLE IF NOT EXISTS entries (
|
|
36
36
|
key TEXT PRIMARY KEY,
|
|
37
37
|
method TEXT NOT NULL,
|
package/server/control.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function clientList(withAddress = false) {
|
|
|
61
61
|
version: info.version,
|
|
62
62
|
profile: info.profile,
|
|
63
63
|
capabilities: info.capabilities,
|
|
64
|
-
...(withAddress ? { address: ws.
|
|
64
|
+
...(withAddress ? { address: ws.remoteAddr ?? null } : {}),
|
|
65
65
|
}))
|
|
66
66
|
}
|
|
67
67
|
|
package/server/main.ts
CHANGED
|
@@ -218,7 +218,7 @@ serve({
|
|
|
218
218
|
open(ws) {
|
|
219
219
|
let id = state.nextClientId++
|
|
220
220
|
state.clients.set(ws, { platform: "unknown", version: "unknown", profile: "unknown", id, capabilities: [] })
|
|
221
|
-
console.log(`[cli] Client connected ${ws.
|
|
221
|
+
console.log(`[cli] Client connected ${ws.remoteAddr ?? "unknown"}`)
|
|
222
222
|
// Advertise our real LAN address so clients dialed over a loopback hop
|
|
223
223
|
// can show/remember the directly reachable address (see connection.rs).
|
|
224
224
|
ws.send(
|
|
@@ -245,7 +245,7 @@ serve({
|
|
|
245
245
|
id: existing?.id ?? state.nextClientId++,
|
|
246
246
|
capabilities: Array.isArray(data.capabilities) ? data.capabilities.map(String) : [],
|
|
247
247
|
})
|
|
248
|
-
console.log(`[cli] Client info ${ws.
|
|
248
|
+
console.log(`[cli] Client info ${ws.remoteAddr ?? "unknown"} ${data.platform} (${data.version})`)
|
|
249
249
|
} else if (data.type === "log") {
|
|
250
250
|
// Forwarded console output / runtime errors from the client's
|
|
251
251
|
// engine logger, buffered for the control API (see control.ts).
|