dsh-dot-life 0.10.2 → 0.10.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/package.json +1 -1
- package/src/qq/qq.js +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-dot-life",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "dot — a character who lives on her own phone, for DeepSeek Harness (dsh): an Android phone the plugin installs and runs, her own QQ, memory and a diary from real events, a life between conversations (幕间, after HDS-Interlude), an optional microVM computer with approval gates. One plugin, six components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
package/src/qq/qq.js
CHANGED
|
@@ -76,7 +76,8 @@ const SL_QQ_LOG = `${VM_HOME}/snowluma-qq.log`;
|
|
|
76
76
|
const SL_HTTP_PORT = 3000;
|
|
77
77
|
// The GUI QQ SnowLuma hooks is a clean system linuxqq at /opt/QQ — never NapCat's unpacked copy,
|
|
78
78
|
// whose launcher is patched to load NapCat (two clients inside one QQ). The installer puts it there.
|
|
79
|
-
|
|
79
|
+
// Spelled with an empty quote so a shell that names it does not itself match pgrep/pkill "[o]pt/QQ/qq".
|
|
80
|
+
const SL_QQ = 'QQ=/opt/Q""Q/qq';
|
|
80
81
|
// The linuxqq build SnowLuma's own host installer pins (SnowLuma.Docker.Framework install.sh), with
|
|
81
82
|
// its checksums: the hook tracks QQ's internals, so a known-good build rather than "latest".
|
|
82
83
|
const SL_QQ_PIN = {
|
|
@@ -85,8 +86,11 @@ const SL_QQ_PIN = {
|
|
|
85
86
|
mirror: 'https://github.com/Rodert/qq-versions/releases/download/qq-packages-20260813-1d08f1d4',
|
|
86
87
|
sha256: { amd64: 'd085dd89397225061eb9f194308f688129818ed445777e97a4a0a16e13d7b0e8', arm64: '8796ccfd66acc025ef18db37185532d40bc8c58921e17da6d28c295acbcf8f92' },
|
|
87
88
|
};
|
|
88
|
-
// The VM desktop's X display
|
|
89
|
-
|
|
89
|
+
// The VM desktop's X display, as ":N": the one the VNC server shows (that is what the 虚拟机 tab and
|
|
90
|
+
// the QR screenshot see), else any live X server, else :99. Not "first socket in /tmp/.X11-unix":
|
|
91
|
+
// NapCat's xvfb-run leaves sockets of dead servers there (:101, :102), and QQ exits on one of those.
|
|
92
|
+
const SL_DISPLAY = String.raw`D=$(ps -eo args | awk '$1 ~ /(^|\/)(Xvnc|Xtigervnc|x11vnc)$/ { for (i = 2; i <= NF; i++) if ($i ~ /^:[0-9]+$/) { print $i; exit } }'); ` +
|
|
93
|
+
String.raw`[ -n "$D" ] || D=$(ps -eo args | awk '$1 ~ /(^|\/)X[A-Za-z]*$/ { for (i = 2; i <= NF; i++) if ($i ~ /^:[0-9]+$/) { print $i; exit } }'); ` + 'D="${D:-:99}"';
|
|
90
94
|
// "[s]" keeps pgrep/pkill from matching their own shell, as "[o]pt" does for QQ.
|
|
91
95
|
const SL_PGREP = '[s]nowluma/index.mjs';
|
|
92
96
|
|