dsh-dot-life 0.23.1 → 0.23.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/README.en.md +71 -43
- package/README.md +115 -63
- package/cordis.patch.yml +3 -2
- package/docs/DESIGN.md +54 -0
- package/docs/DOT-PAGE.md +9 -0
- package/docs/SETTINGS.md +25 -3
- package/docs/computer.md +2 -2
- package/docs/phone.md +5 -4
- package/docs/prompts.md +1 -1
- package/docs/qq.md +2 -0
- package/package.json +1 -1
- package/scripts/prompts.mjs +3 -3
- package/src/computer/backends/docker.js +5 -0
- package/src/computer/backends/microsandbox.js +6 -0
- package/src/computer/backends/proxy.js +2 -2
- package/src/computer/docker.js +1 -1
- package/src/computer/subprocess.js +2 -1
- package/src/computer/vm.js +64 -12
- package/src/dot/core.js +148 -21
- package/src/interlude/core.js +121 -43
- package/src/llm-gate.js +474 -0
- package/src/memory/memory.js +24 -4
- package/src/page/api.js +17 -2
- package/src/page/page.js +56 -5
- package/src/phone/mcp-entry.cjs +31 -0
- package/src/phone/phone.js +39 -9
- package/src/prompts/dot.owner-words.txt +1 -0
- package/src/prompts/dot.owner-words.unsent.txt +3 -0
- package/src/prompts/interlude.round.not-kept.txt +1 -0
- package/src/prompts/interlude.round.refresh.txt +1 -1
- package/src/prompts/interlude.round.txt +3 -2
- package/src/qq/qq.js +99 -14
- package/src/reset.js +129 -0
- package/src/settings-schema.js +11 -2
package/README.en.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
# ◎ dsh-dot
|
|
4
4
|
|
|
5
|
-
**
|
|
5
|
+
**Turn your [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) into dot · a character with a persona, a memory and a life of her own**
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
Once installed, you are no longer talking to an agent. You are talking to her.<br>
|
|
8
|
+
She remembers you, keeps living between your conversations, and has her own phone and computer.
|
|
9
9
|
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-dot-life)
|
|
11
11
|
[](LICENSE)
|
|
@@ -18,7 +18,7 @@ Between your conversations, she keeps living.
|
|
|
18
18
|
|
|
19
19
|
[简体中文](README.md) · **English**
|
|
20
20
|
|
|
21
|
-
[
|
|
21
|
+
[Who she is](#-who-she-is) · [What she has](#-what-she-has) · [Quick start](#-quick-start) · [Settings](#%EF%B8%8F-settings) · [Architecture](#-architecture) · [Commands](#%EF%B8%8F-commands) · [Coexistence](#-coexisting-with-other-plugins)
|
|
22
22
|
|
|
23
23
|
<img src="docs/demo.gif" alt="dsh-dot demo" width="820">
|
|
24
24
|
|
|
@@ -26,20 +26,36 @@ Between your conversations, she keeps living.
|
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
29
|
-
## ✨
|
|
29
|
+
## ✨ Who she is
|
|
30
30
|
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
-
|
|
31
|
+
dsh runs the conversation, calls the tools and carries the IM. dsh-dot decides **who is in that conversation**. In her sessions (the `~/dot` workspace and sessions opened by IM bots), dsh's own "You are an AI agent" opening is removed and replaced by her persona, her memory and the stretch of life she has just lived. In any other workspace dsh stays the dsh you know.
|
|
32
|
+
|
|
33
|
+
- 🎭 **A persona and a voice** — the Canon is the first section of the system prompt: import an HDSI preset from [typ0.space](https://typ0.space) by share code, or write `canon.json` yourself. Every prompt she receives is plain text; `/dot prompts` opens an editor page.
|
|
34
34
|
- 🧠 **Memory** — the words are the evidence, three short notes hold what stays true: every time she wakes, the past turns that bear on it (vector + BM25 candidates, reranked on your machine) come back to her by date; what she knows about you, about herself and what is not over yet is a small note; one card per person. Handoff at 150k tokens, a diary every night at 23:30.
|
|
35
|
-
-
|
|
36
|
-
-
|
|
35
|
+
- 🌙 **A life between conversations** — the interlude, an idea from [HDS-Interlude](https://github.com/REcklessNOLOve117/HDS-Interlude), implemented independently: she writes down her days, keeps intents and goes to look at what she is curious about. Reaching out to you is off by default and passes four gates when on.
|
|
36
|
+
- 🌱 **She grows** — two stretches of her own time a day, with no task, a token budget and a folder that is hers alone. She tries things she has not done, keeps her own notes on each app, and keeps a ledger of what she did, what it cost and what you said about it. Every Sunday she reviews the week and rewrites her self-portrait; every version is kept and can be rolled back.
|
|
37
|
+
|
|
38
|
+
## 🧰 What she has
|
|
39
|
+
|
|
40
|
+
- 📱 **A phone** — the plugin downloads, builds and boots an Android emulator (no Java / Android Studio, no window of its own; you watch it inside dsh). No app store: **she installs her own apps**. A notification from any app wakes her; she browses, likes, comments, follows and now and then posts.
|
|
41
|
+
- 🖥️ **A computer** — a bundled microVM (no Docker): shell, browser, desktop, live view, approval gates, audit log. Her commands run in the VM, not on your machine. It can be turned off.
|
|
42
|
+
- 💬 **A QQ account** — NapCat or SnowLuma (OneBot 11) inside her computer, same account as on her phone. Your message wakes her in **1–2 s**; she replies in several short messages and sends stickers.
|
|
43
|
+
|
|
44
|
+
The phone and the computer each have a power switch (`/phone off`, `/computer off`, or the top of the dot settings page); off stays off across dsh restarts.
|
|
37
45
|
|
|
38
46
|
> [!NOTE]
|
|
39
|
-
> **She can look, but never act behind your back.** Looking is read-only; anything with consequences (installing,
|
|
47
|
+
> **She can look, but never act behind your back.** Looking is read-only; anything with consequences (installing, payments, messaging strangers) goes through approval or isn't allowed at all. Every step she takes is logged.
|
|
40
48
|
|
|
41
49
|
## 🚀 Quick start
|
|
42
50
|
|
|
51
|
+
**Easiest: install from [DSH Market](https://dsh.market/).** With the market installed, open Settings → Plugin Market in dsh, search `dsh-dot` and click install:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
dsh plugin --profile web add dshmarket
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Without the market, use the command line below.
|
|
58
|
+
|
|
43
59
|
Requires dsh ≥ 0.2.1 and hardware virtualization (Apple silicon / Intel Mac, Linux with KVM, Windows with WHPX). Quit the dsh desktop app first:
|
|
44
60
|
|
|
45
61
|
```bash
|
|
@@ -56,21 +72,25 @@ Requires dsh ≥ 0.2.1 and hardware virtualization (Apple silicon / Intel Mac, L
|
|
|
56
72
|
|
|
57
73
|
Web: `dsh plugin --profile web add dsh-dot-life`. From source: use `github:Kevinwu901113/dsh-dot`.
|
|
58
74
|
|
|
59
|
-
|
|
75
|
+
Reopen dsh and click **"dot 设置" (dot settings)** in the left sidebar. It walks you through it: check this machine → pick components → phone → computer → persona → QQ. Settings, the doctor (with one-click fixes) and a diagnostics export live on the same page.
|
|
76
|
+
|
|
77
|
+
The same thing as commands:
|
|
60
78
|
|
|
61
79
|
```text
|
|
62
|
-
|
|
63
|
-
/phone doctor # check this machine
|
|
80
|
+
/interlude preset 6QA0-1PD6 # who she is: import an HDSI persona from typ0.space
|
|
81
|
+
/phone doctor # check this machine: virtualization, disk, memory, ports, downloads, the phone network (one-click fixes: /phone doctor fix <id>)
|
|
64
82
|
/phone accept # accept the Android SDK license; the phone installs itself (~2 GB)
|
|
65
|
-
/interlude preset 6QA0-1PD6 # import an HDSI persona from typ0.space
|
|
66
83
|
/qq install → /qq account <alt account> → /qq start → /qq qr
|
|
67
84
|
```
|
|
68
85
|
|
|
69
86
|
**Use alt accounts.** No platform's terms allow automation.
|
|
70
87
|
|
|
88
|
+
> [!TIP]
|
|
89
|
+
> **No character, just a phone and a computer for dsh?** Turn off the dot / memory / interlude / qq components on the plugins page; the rest keeps running and the tools are still `mcp__dot-phone__*` / `mcp__dot-vm__*`.
|
|
90
|
+
|
|
71
91
|
## ⚙️ Settings
|
|
72
92
|
|
|
73
|
-
Every personal setting lives in **one file**: `~/.dsh/dsh-dot.json` (Windows: `%USERPROFILE%\.dsh\dsh-dot.json`), one section per component. Upgrades never overwrite it
|
|
93
|
+
Every personal setting lives in **one file**: `~/.dsh/dsh-dot.json` (Windows: `%USERPROFILE%\.dsh\dsh-dot.json`), one section per component. Upgrades never overwrite it. The dot settings page edits this same file; after editing it by hand, restart dsh.
|
|
74
94
|
|
|
75
95
|
```json
|
|
76
96
|
{
|
|
@@ -82,57 +102,65 @@ Every personal setting lives in **one file**: `~/.dsh/dsh-dot.json` (Windows: `%
|
|
|
82
102
|
|
|
83
103
|
Every key, which ones only apply to a newly created phone / VM, and rules for agents editing the file: **[docs/SETTINGS.md](docs/SETTINGS.md)** (Chinese). Or just ask dsh: "follow docs/SETTINGS.md and set dsh-dot's phone storage to 32 GB".
|
|
84
104
|
|
|
105
|
+
The model requests of her background life (interlude, memory consolidation, errands) wait behind your ongoing conversation so they do not use up its requests-per-minute budget; if a chat still gets a 429, lower `llm.backgroundRpm`.
|
|
106
|
+
|
|
85
107
|
## 🧩 Architecture
|
|
86
108
|
|
|
87
|
-
One plugin, seven components. Each can be turned off on its own; the rest keep running.
|
|
109
|
+
One plugin, seven components: three are her, three are her things, one is for living next to other plugins. Each can be turned off on its own; the rest keep running.
|
|
88
110
|
|
|
89
111
|
```mermaid
|
|
90
112
|
flowchart LR
|
|
91
113
|
you(["👤 You<br/>QQ / WeChat / Feishu"])
|
|
92
|
-
subgraph
|
|
114
|
+
subgraph self["her"]
|
|
115
|
+
direction TB
|
|
116
|
+
interlude["interlude<br/>persona · life · growth"]
|
|
117
|
+
memory["memory<br/>transcript · notes · diary"]
|
|
118
|
+
contact["dot<br/>wake · errands · notices"]
|
|
119
|
+
end
|
|
120
|
+
session(["dot's session<br/>run by dsh"])
|
|
121
|
+
subgraph things["her things"]
|
|
93
122
|
direction TB
|
|
94
|
-
contact["dot<br/>contact layer"]
|
|
95
|
-
interlude["interlude<br/>life between chats"]
|
|
96
|
-
memory["memory<br/>memory · recall · diary"]
|
|
97
123
|
phone["phone<br/>Android emulator"]
|
|
124
|
+
computer["computer<br/>microVM"]
|
|
98
125
|
qq["qq<br/>NapCat / SnowLuma"]
|
|
99
|
-
computer["computer<br/>microVM (optional)"]
|
|
100
126
|
end
|
|
101
|
-
session(["her session<br/>run by dsh"])
|
|
102
127
|
|
|
103
128
|
you <-->|messages| qq
|
|
104
129
|
you <-->|dsh-im| contact
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
memory -->|profile + recall| session
|
|
130
|
+
interlude -->|persona + her days| session
|
|
131
|
+
memory -->|notes + recall| session
|
|
132
|
+
contact -->|wake · rules| session
|
|
109
133
|
session -->|mcp__dot-phone__*| phone
|
|
110
134
|
session -->|mcp__dot-vm__*| computer
|
|
135
|
+
session -->|qq_send| qq
|
|
136
|
+
phone -->|notifications wake| session
|
|
137
|
+
qq -->|wake in 1–2 s| session
|
|
111
138
|
qq -.runs in.-> computer
|
|
112
139
|
```
|
|
113
140
|
|
|
114
|
-
| Component | What it is | Off switch |
|
|
115
|
-
|
|
116
|
-
| **`
|
|
117
|
-
| **`
|
|
118
|
-
| **`
|
|
119
|
-
| **`
|
|
120
|
-
| **`
|
|
121
|
-
| **`
|
|
122
|
-
| **`compat`** | Living next to other plugins: whose session is this, which tools it sees, where its commands run; knows [qq-bridge](https://github.com/Derpyu520/qq-bridge) today · [docs (zh)](docs/qq-bridge.md) | `DSH_DOT_COMPAT=off` |
|
|
141
|
+
| | Component | What it is | Off switch |
|
|
142
|
+
|---|---|---|---|
|
|
143
|
+
| her | **`interlude`** | Canon persona and voice; the interlude: script, continuity, intents, read-only looking, play, tries, her own time, weekly growth, optional proactive contact · [docs](docs/interlude.md) | `DSH_DOT_INTERLUDE=off` |
|
|
144
|
+
| her | **`memory`** | Transcript + auto-recall (local multilingual-e5-small + bge-reranker-base; SiliconFlow / DashScope optional), three notes (about you / herself / not over yet), people cards, diary, handoff · [docs](docs/memory.md) | `DSH_DOT_MEMORY=off` |
|
|
145
|
+
| her | **`dot`** | The contact layer: notifications and schedules wake her, the errand session, scheduled results → IM, approval and device notices, working rules, her per-app notes, sidebar status panel | `DSH_DOT_CONTACT=off` |
|
|
146
|
+
| her things | **`phone`** | Android emulator exposed as `mcp__dot-phone__*` via [mobile-mcp](https://github.com/mobile-next/mobile-mcp) · [docs](docs/phone.md) | `DSH_DOT_PHONE=off` |
|
|
147
|
+
| her things | **`computer`** | Bundled microVM ([microsandbox](https://github.com/zerocore-ai/microsandbox)) or Docker, exposed as `mcp__dot-vm__*` · [docs](docs/computer.md) | `DSH_DOT_COMPUTER=off` |
|
|
148
|
+
| her things | **`qq`** | Her QQ inside the computer VM, same account as her phone · [docs](docs/qq.md) | `DSH_DOT_QQ=off` |
|
|
149
|
+
| neighbours | **`compat`** | Living next to other plugins: whose session is this, which tools it sees, where its commands run; knows [qq-bridge](https://github.com/Derpyu520/qq-bridge) today · [docs (zh)](docs/qq-bridge.md) | `DSH_DOT_COMPAT=off` |
|
|
123
150
|
|
|
124
151
|
## ⌨️ Commands
|
|
125
152
|
|
|
126
153
|
```text
|
|
127
|
-
/
|
|
128
|
-
/interlude [now|advance|seed|preset <code>|canon]
|
|
129
|
-
/dot [test|check|doctor|prompts [stop]]
|
|
154
|
+
/dot [doctor|test|check|prompts [stop]|howto [app]]
|
|
130
155
|
/dot memory [now|diary|handoff|recall …]
|
|
131
|
-
/dot people [approve <id>|
|
|
132
|
-
/
|
|
156
|
+
/dot people [approve <id>|merge <a> <b>|forget <name>]
|
|
157
|
+
/interlude [now|advance|seed|preset <code>|canon|doings|feedback [#id] <text>|free|growth [now|<week>|rollback <week>]]
|
|
158
|
+
/phone [on|off|doctor [fix <id>]|accept [GB]|size <GB>|number <digits>|restart|retry|screenshot|notifications|notify [mute|wake <pkg>]]
|
|
159
|
+
/computer [on|off]
|
|
160
|
+
/qq [install [snowluma]|backend|account|owner|start|stop|qr|log|clean [napcat]|stickers [sync]|group <mention|all|none|score>]
|
|
133
161
|
```
|
|
134
162
|
|
|
135
|
-
|
|
163
|
+
Two pages: "dot 设置" in the left sidebar is for setup, settings, the doctor and diagnostics; the **◎** button at the top of a conversation opens the dot panel in the right sidebar, which is her life: device status, handoff progress, what she's doing now, today's tokens, and her **last 30 scenes**.
|
|
136
164
|
|
|
137
165
|
## 🤝 Coexisting with other plugins
|
|
138
166
|
|
|
@@ -146,7 +174,7 @@ See the [Chinese README](README.md#-与其他插件共存) for injected message
|
|
|
146
174
|
|
|
147
175
|
## 📄 License
|
|
148
176
|
|
|
149
|
-
[MIT](LICENSE). Versions 0.3 through 0.22 were released under AGPL-3.0-only (the interlude then used a translation of HDS-Interlude's prompts) and stay AGPL; from
|
|
177
|
+
[MIT](LICENSE). Versions 0.3 through 0.22 were released under AGPL-3.0-only (the interlude then used a translation of HDS-Interlude's prompts) and stay AGPL; from 0.23 on the interlude prompts are rewritten from scratch, nothing of HDS-Interlude's code or text is included, and the whole package is MIT.
|
|
150
178
|
|
|
151
179
|
<div align="center">
|
|
152
180
|
|
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
# ◎ dsh-dot
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**让你的 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 成为 dot · 一个有人设、有记忆、自己过日子的角色**
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
装上之后,和你说话的不再是一个 agent,是她。<br>
|
|
8
|
+
她记得你,你们不聊天的时候也在过日子,还有自己的手机和电脑。
|
|
9
9
|
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-dot-life)
|
|
11
11
|
[](LICENSE)
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
**简体中文** · [English](README.en.md)
|
|
20
20
|
|
|
21
|
-
[
|
|
21
|
+
[她是谁](#-她是谁) · [她有什么](#-她有什么) · [快速开始](#-快速开始) · [设置](#%EF%B8%8F-设置) · [架构](#-架构) · [命令](#%EF%B8%8F-命令与文件) · [共存](#-与其他插件共存) · [路线图](docs/ROADMAP.md)
|
|
22
22
|
|
|
23
23
|
<img src="docs/demo.gif" alt="dsh-dot demo" width="820">
|
|
24
24
|
|
|
@@ -26,20 +26,22 @@
|
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
29
|
-
## ✨
|
|
29
|
+
## ✨ 她是谁
|
|
30
|
+
|
|
31
|
+
dsh 负责跑对话、调工具、接 IM;dsh-dot 决定**这段对话里的人是谁**。在她的会话里(`~/dot` 工作区和 IM 机器人开的会话),dsh 自带的「You are an AI agent」开场白被拿掉,换成她的人设、她的记忆和她刚过完的这段日子。别的工作区里,dsh 还是原来的 dsh。
|
|
30
32
|
|
|
31
33
|
<table>
|
|
32
34
|
<tr>
|
|
33
35
|
<td width="50%" valign="top">
|
|
34
36
|
|
|
35
|
-
###
|
|
36
|
-
|
|
37
|
+
### 🎭 有自己的人设和说话方式
|
|
38
|
+
人设(Canon)是系统提示的第一段:用分享码从 [typ0.space](https://typ0.space) 导入一份 HDSI 预设,或者自己写 `canon.json`。口癖、长度、标点跟着人设走,每轮最后再提醒她一次怎么说话。她收到的每段话都是纯文本,`/dot prompts` 打开网页就能改。
|
|
37
39
|
|
|
38
40
|
</td>
|
|
39
41
|
<td width="50%" valign="top">
|
|
40
42
|
|
|
41
|
-
###
|
|
42
|
-
|
|
43
|
+
### 🧠 记得你,也记得她遇到的人
|
|
44
|
+
原话负责证据,三栏笔记负责长期状态:每次被叫醒,相关的旧原话(向量 + BM25 候选,本机重排)按日期翻到她面前;关于你、她自己、还没了的事记在一份小笔记里;每个人一张卡。15 万 token 交班,每天 23:30 写日记。
|
|
43
45
|
|
|
44
46
|
</td>
|
|
45
47
|
</tr>
|
|
@@ -47,37 +49,58 @@ NapCat / SnowLuma(OneBot 11)和她手机上同一个账号。你发消息 **
|
|
|
47
49
|
<td valign="top">
|
|
48
50
|
|
|
49
51
|
### 🌙 两次对话之间也在生活
|
|
50
|
-
「幕间」的想法来自 [HDS-Interlude](https://github.com/REcklessNOLOve117/HDS-Interlude)
|
|
52
|
+
「幕间」的想法来自 [HDS-Interlude](https://github.com/REcklessNOLOve117/HDS-Interlude),这里是独立实现:对话安静下来,她写下这段时间的日子、记下打算、去看她好奇的东西。主动找你默认关着,打开后也要过四道闸才发得出去。
|
|
51
53
|
|
|
52
54
|
</td>
|
|
53
55
|
<td valign="top">
|
|
54
56
|
|
|
55
|
-
###
|
|
56
|
-
|
|
57
|
+
### 🌱 会自己长
|
|
58
|
+
每天两段「自己的时间」,不给任务,有 token 预算,还有一个只属于她的文件夹。她会试没做过的事,每个 App 用熟了自己记笔记;做过什么、花了多少、你怎么说,都记在她自己的账上。每周日回顾一次,由她重写「她现在的样子」,每一版都留着,可以回退。
|
|
57
59
|
|
|
58
60
|
</td>
|
|
59
61
|
</tr>
|
|
62
|
+
</table>
|
|
63
|
+
|
|
64
|
+
## 🧰 她有什么
|
|
65
|
+
|
|
66
|
+
<table>
|
|
60
67
|
<tr>
|
|
61
|
-
<td valign="top">
|
|
68
|
+
<td width="33%" valign="top">
|
|
62
69
|
|
|
63
|
-
###
|
|
64
|
-
|
|
70
|
+
### 📱 一部手机
|
|
71
|
+
插件自己下载、建好、开机一台 Android 模拟器,不需要 Java / Android Studio,也不弹窗口,画面在 dsh 里看。App 和登录态都在里面,重启不丢。没有应用商店,**App 她自己装**。任何 App 的通知都能叫醒她;她在上面逛、点赞、评论、关注、偶尔发帖。
|
|
65
72
|
|
|
66
73
|
</td>
|
|
67
|
-
<td valign="top">
|
|
74
|
+
<td width="33%" valign="top">
|
|
68
75
|
|
|
69
|
-
### 🖥️
|
|
70
|
-
|
|
76
|
+
### 🖥️ 一台电脑
|
|
77
|
+
自带的 microVM(不需要 Docker):shell、浏览器、桌面、实时画面、审批闸门、审计日志。她的命令在虚拟机里跑,不在你的机器上跑。定时任务有结果推到 IM,没有就安静。不要可以关。
|
|
78
|
+
|
|
79
|
+
</td>
|
|
80
|
+
<td width="33%" valign="top">
|
|
81
|
+
|
|
82
|
+
### 💬 一个 QQ 号
|
|
83
|
+
NapCat / SnowLuma(OneBot 11)跑在她的电脑里,和手机上是同一个号。你发消息 **1–2 秒叫醒她**,她分条回、会发表情包、会存别人发的图。群消息什么时候叫醒她可以选。
|
|
71
84
|
|
|
72
85
|
</td>
|
|
73
86
|
</tr>
|
|
74
87
|
</table>
|
|
75
88
|
|
|
89
|
+
手机和电脑各有一个电源开关(`/phone off`、`/computer off`,或 dot 设置页顶部),关了重启 dsh 也保持关着。
|
|
90
|
+
|
|
76
91
|
> [!NOTE]
|
|
77
|
-
> **她只能看,不能瞒着你动。** 「去看」是只读的;装 App
|
|
92
|
+
> **她只能看,不能瞒着你动。** 「去看」是只读的;装 App、花钱、给陌生人发消息这类有后果的动作,要么走审批,要么根本不给。她做过的每一步都有记录。
|
|
78
93
|
|
|
79
94
|
## 🚀 快速开始
|
|
80
95
|
|
|
96
|
+
**最省事:从 [DSH Market](https://dsh.market/) 装。** 装好插件市场后,在 dsh 的「设置 → 插件市场」里搜 `dsh-dot`,点一下安装:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
dsh plugin --profile web add dshmarket
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
不用插件市场就走下面的命令行。
|
|
103
|
+
|
|
81
104
|
需要 dsh ≥ 0.2.1,以及硬件虚拟化(Apple silicon / Intel Mac;Linux 需 KVM;Windows 需 WHPX)。先退出 dsh 桌面版:
|
|
82
105
|
|
|
83
106
|
<details open>
|
|
@@ -108,34 +131,36 @@ dsh plugin --profile desktop add github:Kevinwu901113/dsh-dot # 源码
|
|
|
108
131
|
```
|
|
109
132
|
</details>
|
|
110
133
|
|
|
111
|
-
|
|
134
|
+
重新打开 dsh,点左侧栏的 **「dot 设置」**,照着一步步点完:检查这台电脑 → 选组件 → 手机 → 电脑 → 人设 → QQ。设置、体检(能修的一键修)、导出诊断包也都在这一页。
|
|
135
|
+
|
|
136
|
+
喜欢敲命令的话,等价的是:
|
|
112
137
|
|
|
113
138
|
```text
|
|
114
|
-
#
|
|
115
|
-
/phone doctor #
|
|
139
|
+
/interlude preset 6QA0-1PD6 # 她是谁:从 typ0.space 导入一份 HDSI 人设,换成你喜欢的分享码
|
|
140
|
+
/phone doctor # 体检这台电脑:虚拟化、磁盘、内存、端口、下载源、手机网络;能一键修的给 /phone doctor fix <id>
|
|
116
141
|
/phone accept # 接受 Android SDK 许可,手机开始自己装(约 2 GB;/phone accept 32 给 32 GB 存储)
|
|
117
|
-
/interlude preset 6QA0-1PD6 # 从 typ0.space 导入一份 HDSI 人设,换成你喜欢的分享码
|
|
118
142
|
/qq install → /qq account <小号> → /qq start → /qq qr # 她用手机摄像头扫码登录电脑 QQ
|
|
119
143
|
```
|
|
120
144
|
|
|
121
145
|
<details>
|
|
122
146
|
<summary><b>第一次设置的完整说明</b></summary>
|
|
123
147
|
|
|
124
|
-
1.
|
|
125
|
-
2.
|
|
126
|
-
3.
|
|
127
|
-
4. **她逛什么**:不用配。常见社区 App 的站点 → 包名表是内置的,只对她**自己装了**的 App 生效。其他 App
|
|
148
|
+
1. **人设**:`/interlude preset <分享码>`,或把 [`examples/canon.example.json`](examples/canon.example.json) 放到 `~/dot/interlude/canon.json`。`/interlude canon` 看当前人设,`/interlude seed` 给空剧本写一个开场。
|
|
149
|
+
2. **手机**:`/phone accept` 后插件下载模拟器、platform-tools、系统镜像(约 2 GB,常见 10–30 分钟;进度在 `/phone` 和 dot 设置页里),装完自动开机;手机不弹自己的窗口,画面在 dsh 里看(dot 设置页顶部的「看画面」,或右侧栏的手机标签),她会自己跟你说一声。装的过程中照常聊天,她不会等。存储大小建好后不能再改(`/phone size <GB>` 要在建之前设)。
|
|
150
|
+
3. **装 App、登录**:在手机画面里像真手机一样操作,或者让她自己装(`mobile_install_app` 会弹审批)。登录、验证码、人脸由你亲手过,她遇到会停下来叫你。**用小号**,各平台条款都不允许自动化。
|
|
151
|
+
4. **她逛什么**:不用配。常见社区 App 的站点 → 包名表是内置的,只对她**自己装了**的 App 生效。其他 App 在设置里给 `interlude` 加 `phoneApps` / `playApps`。
|
|
128
152
|
5. **QQ**:详见 [docs/qq.md](docs/qq.md)。不想用协议端,也可以按 dsh-im 的说明接官方机器人。
|
|
129
|
-
6.
|
|
153
|
+
6. **电脑**:默认装上并启动;不要就设 `DSH_DOT_COMPUTER=off`。公网看实时画面见 [docs/computer.md](docs/computer.md)。
|
|
130
154
|
|
|
131
155
|
</details>
|
|
132
156
|
|
|
133
157
|
> [!TIP]
|
|
134
|
-
>
|
|
158
|
+
> **不要角色,只想给 dsh 一部手机和一台电脑?** 在插件页把 dot / memory / interlude / qq 四个组件关掉,剩下的照常跑,工具还是 `mcp__dot-phone__*` / `mcp__dot-vm__*`。<br>
|
|
159
|
+
> **已经在用 [qq-bridge](https://github.com/Derpyu520/qq-bridge)?** 直接装,什么都不用配:插件会认出 qq-bridge,它的会话里不出现 dot 的工具,它的目录不进虚拟机,它的机器人号她不回;把 qq-bridge 切到 closed-agent 模式,管理员私聊就能用她的手机和电脑。细节在 [docs/qq-bridge.md](docs/qq-bridge.md)。
|
|
135
160
|
|
|
136
161
|
## ⚙️ 设置
|
|
137
162
|
|
|
138
|
-
所有个人设置都在**一个文件**:`~/.dsh/dsh-dot.json`(Windows:`%USERPROFILE%\.dsh\dsh-dot.json
|
|
163
|
+
所有个人设置都在**一个文件**:`~/.dsh/dsh-dot.json`(Windows:`%USERPROFILE%\.dsh\dsh-dot.json`),按组件分段,升级插件不会覆盖。左侧栏的「dot 设置」页改的就是这个文件,每一项都标了什么时候生效;手改的话改完重启 dsh。
|
|
139
164
|
|
|
140
165
|
```json
|
|
141
166
|
{
|
|
@@ -145,48 +170,67 @@ dsh plugin --profile desktop add github:Kevinwu901113/dsh-dot # 源码
|
|
|
145
170
|
}
|
|
146
171
|
```
|
|
147
172
|
|
|
148
|
-
存储、作息、主动联系、群聊规则、省 token
|
|
173
|
+
存储、作息、主动联系、群聊规则、省 token、网络镜像、后台请求限速……每一项怎么改、哪些只在新建手机 / 虚拟机时生效,都在 **[docs/SETTINGS.md](docs/SETTINGS.md)**。
|
|
174
|
+
|
|
175
|
+
她在后台过日子(幕间、整理记忆、跑腿)发出的模型请求,都排在你正在进行的对话后面,不抢你的每分钟请求额度;聊天时还是报 429,就调 `llm.backgroundRpm`。
|
|
149
176
|
|
|
150
177
|
> [!TIP]
|
|
151
178
|
> 懒得自己改?直接对 dsh 说「按 docs/SETTINGS.md 把 dsh-dot 的手机存储改成 32 GB」。文档里有写给 agent 的规则,dsh 或其他 agent 照着就能改对。
|
|
152
179
|
|
|
153
180
|
## 🧩 架构
|
|
154
181
|
|
|
155
|
-
|
|
182
|
+
一个插件,七个组件:三个是她自己,三个是她的东西,一个管和别的插件共处。每个都能单独关,缺了哪个其余照常跑。
|
|
156
183
|
|
|
157
184
|
```mermaid
|
|
158
185
|
flowchart LR
|
|
159
186
|
you(["👤 你<br/>QQ / 微信 / 飞书"])
|
|
160
|
-
subgraph
|
|
187
|
+
subgraph self["她自己"]
|
|
188
|
+
direction TB
|
|
189
|
+
interlude["interlude<br/>人设 · 幕间 · 成长"]
|
|
190
|
+
memory["memory<br/>原话 · 笔记 · 日记"]
|
|
191
|
+
contact["dot<br/>叫醒 · 跑腿 · 提醒"]
|
|
192
|
+
end
|
|
193
|
+
session(["dot 的会话<br/>dsh 跑对话"])
|
|
194
|
+
subgraph things["她的东西"]
|
|
161
195
|
direction TB
|
|
162
|
-
contact["dot<br/>联系人层"]
|
|
163
|
-
interlude["interlude<br/>幕间生活"]
|
|
164
|
-
memory["memory<br/>记忆 · 召回 · 日记"]
|
|
165
196
|
phone["phone<br/>Android 模拟器"]
|
|
197
|
+
computer["computer<br/>microVM"]
|
|
166
198
|
qq["qq<br/>NapCat / SnowLuma"]
|
|
167
|
-
computer["computer<br/>microVM(可选)"]
|
|
168
199
|
end
|
|
169
|
-
session(["她的会话<br/>dsh 跑对话"])
|
|
170
200
|
|
|
171
201
|
you <-->|消息| qq
|
|
172
202
|
you <-->|dsh-im| contact
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
memory -->|笔记 + 召回注入| session
|
|
203
|
+
interlude -->|人设 + 这段日子| session
|
|
204
|
+
memory -->|笔记 + 召回| session
|
|
205
|
+
contact -->|叫醒 · 规则| session
|
|
177
206
|
session -->|mcp__dot-phone__*| phone
|
|
178
207
|
session -->|mcp__dot-vm__*| computer
|
|
208
|
+
session -->|qq_send| qq
|
|
209
|
+
phone -->|通知叫醒| session
|
|
210
|
+
qq -->|1–2 s 叫醒| session
|
|
179
211
|
qq -.运行在.-> computer
|
|
180
212
|
```
|
|
181
213
|
|
|
214
|
+
**她自己**
|
|
215
|
+
|
|
182
216
|
| 组件 | 是什么 | 依赖 | 关掉 |
|
|
183
217
|
|---|---|---|---|
|
|
184
|
-
| **`
|
|
185
|
-
| **`interlude`** 🌙 | 幕间:Canon 人设、剧本、连续性、打算、只读的「去看」、可选的主动联系 · [文档](docs/interlude.md) | — | `DSH_DOT_INTERLUDE=off` |
|
|
186
|
-
| **`qq`** 💬 | 她电脑 VM 里的 QQ,和手机同号;`qq_send` 回复、表情包 · [文档](docs/qq.md) | computer | `DSH_DOT_QQ=off` |
|
|
218
|
+
| **`interlude`** 🌙 | 人设(Canon)和说话方式;幕间:剧本、连续性、打算、只读的「去看」、玩、试新的、自己的时间、每周成长、可选的主动联系 · [文档](docs/interlude.md) | — | `DSH_DOT_INTERLUDE=off` |
|
|
187
219
|
| **`memory`** 🧠 | 原话库 + 自动召回(本机 multilingual-e5-small + bge-reranker-base,可切 SiliconFlow / DashScope);三栏笔记(关于你 / 她自己 / 还没了的事);人物卡;日记;15 万 token 交班 · [文档](docs/memory.md) | — | `DSH_DOT_MEMORY=off` |
|
|
188
|
-
| **`dot`** ◎ |
|
|
189
|
-
|
|
220
|
+
| **`dot`** ◎ | 联系人层:通知和定时把她叫醒、跑腿会话、定时结果 → IM、审批与设备提醒、工作规则、她在每个 App 里攒的用法笔记、右侧栏状态面板 | [dsh-im](https://github.com/xmanrui/dsh-im) | `DSH_DOT_CONTACT=off` |
|
|
221
|
+
|
|
222
|
+
**她的东西**
|
|
223
|
+
|
|
224
|
+
| 组件 | 是什么 | 依赖 | 关掉 |
|
|
225
|
+
|---|---|---|---|
|
|
226
|
+
| **`phone`** 📱 | Android 模拟器,以 `mcp__dot-phone__*` 暴露([mobile-mcp](https://github.com/mobile-next/mobile-mcp) 走 adb);任何 App 的通知都能叫醒她,可以按 App 静音 · [文档](docs/phone.md) | 硬件虚拟化 | `DSH_DOT_PHONE=off` |
|
|
227
|
+
| **`computer`** 🖥️ | 自带 microVM,以 `mcp__dot-vm__*` 暴露:shell、浏览器、桌面、实时画面、审批、审计 · [文档](docs/computer.md) | [microsandbox](https://github.com/zerocore-ai/microsandbox)(自带)或 Docker | `DSH_DOT_COMPUTER=off` |
|
|
228
|
+
| **`qq`** 💬 | 她电脑 VM 里的 QQ,和手机同号;`qq_send` 回复、表情包 · [文档](docs/qq.md) | computer | `DSH_DOT_QQ=off` |
|
|
229
|
+
|
|
230
|
+
**共处**
|
|
231
|
+
|
|
232
|
+
| 组件 | 是什么 | 依赖 | 关掉 |
|
|
233
|
+
|---|---|---|---|
|
|
190
234
|
| **`compat`** 🤝 | 和别的插件共处:每个会话归谁、看得见哪些工具、命令在哪跑;今天认 [qq-bridge](https://github.com/Derpyu520/qq-bridge) · [文档](docs/qq-bridge.md) | — | `DSH_DOT_COMPAT=off` |
|
|
191
235
|
|
|
192
236
|
## 🕰️ 她的一天
|
|
@@ -196,33 +240,39 @@ flowchart LR
|
|
|
196
240
|
| **你找她** | QQ 消息 1–2 秒叫醒她的对话;她忙时来的消息攒到那轮结束一起处理,回复按行拆成多条 |
|
|
197
241
|
| **手机响了** | 任何 App 的新通知叫醒她:`[11-04 04:52 手机通知] QQ · 宽:在吗`。她自己去回,或者不理 |
|
|
198
242
|
| **拿起手机** | 没响也会隔一阵(默认 30 分钟)看一眼,有没回的就回,没事就放下 |
|
|
199
|
-
| **安静下来** |
|
|
200
|
-
| **去看 ·
|
|
201
|
-
|
|
|
243
|
+
| **安静下来** | 跑一轮**幕间**:写下这段日子、更新打算、想去看点什么、想玩点什么、想试点什么 |
|
|
244
|
+
| **去看 · 玩 · 试** | 在独立的「跑腿」会话里用手机或电脑去做;截图不进你们的对话,只留一句「刚才拿起手机看了一眼」。做了什么、花了多少记进她的账 |
|
|
245
|
+
| **自己的时间** | 每天两次(默认),活跃时段里随机挑时刻,你们正在聊天时不开;只告诉她「这段时间是你自己的」 |
|
|
246
|
+
| **想找你** | 过了活跃时段、意愿值、每日上限、投递目标四道闸,才发消息给你(`interlude.speak`,默认关) |
|
|
202
247
|
| **23:30** | 写今天的日记 |
|
|
248
|
+
| **周日 21:00** | 回顾这一周,重写「她现在的样子」 |
|
|
203
249
|
|
|
204
250
|
## ⌨️ 命令与文件
|
|
205
251
|
|
|
206
252
|
```text
|
|
207
|
-
/
|
|
208
|
-
/interlude [now|advance|seed|preset <code>|canon]
|
|
209
|
-
/dot [test|check|doctor|prompts [stop]]
|
|
253
|
+
/dot [doctor|test|check|prompts [stop]|howto [app]]
|
|
210
254
|
/dot memory [now|diary|handoff|recall …]
|
|
211
|
-
/dot people [approve <id>|
|
|
212
|
-
/
|
|
255
|
+
/dot people [approve <id>|merge <a> <b>|forget <名字>]
|
|
256
|
+
/interlude [now|advance|seed|preset <code>|canon|doings|feedback [#id] <一句话>|free|growth [now|<周>|rollback <周>]]
|
|
257
|
+
/phone [on|off|doctor [fix <id>]|accept [GB]|size <GB>|number <号码>|restart|retry|screenshot|notifications|notify [mute|wake <包名>]]
|
|
258
|
+
/computer [on|off]
|
|
259
|
+
/qq [install [snowluma]|backend|account|owner|start|stop|qr|log|clean [napcat]|stickers [sync]|group <mention|all|none|score>]
|
|
213
260
|
```
|
|
214
261
|
|
|
215
|
-
|
|
262
|
+
**两个页面**:左侧栏的「dot 设置」是装、设、查、导(初始化步骤、设置表单、体检、诊断包);会话顶部 ◎ 按钮打开的右侧栏 dot 标签页是她的生活——设备状态、交班进度、她此刻在做什么、今天的 token,以及**最近 30 场**(每次被叫醒到结束是一场,展开看她做了什么、说了什么)。
|
|
216
263
|
|
|
217
|
-
|
|
264
|
+
**改提示词和人设**:在 dsh 里发 `/dot prompts`,回一个本机网址(默认 http://127.0.0.1:7870/),打开就能改,第一项是人设 `canon.json`;`/dot prompts stop` 关掉。她收到的每段话都是 `src/prompts/` 里的纯文本,页面保存到 `~/dot/prompts/` 覆盖内置版本。开发时在仓库里 `npm run prompts` 也行,见 [docs/prompts.md](docs/prompts.md)。
|
|
218
265
|
|
|
219
266
|
<details>
|
|
220
267
|
<summary><b>数据都在哪</b></summary>
|
|
221
268
|
|
|
222
269
|
| 路径 | 内容 |
|
|
223
270
|
|---|---|
|
|
224
|
-
| `~/dot/interlude/` | 人设 `canon.json`、剧本 `script.md`、连续性 `state.json`、打算 `intents.json
|
|
271
|
+
| `~/dot/interlude/` | 人设 `canon.json`、剧本 `script.md`、连续性 `state.json`、打算 `intents.json`、她的账 `doings.json`、每周的「她现在的样子」`growth/`、看到的东西、每轮原始回复与 token |
|
|
225
272
|
| `~/dot/memory/` | `memory.md`(给你看的)、`diary.md`、`transcript.jsonl`、召回索引 `recall/`、交班记录 |
|
|
273
|
+
| `~/dot/her/` | 她自己的地方:自己的时间里放的东西、每个 App 的用法笔记 |
|
|
274
|
+
| `~/dot/prompts/` | 你改过的提示词,覆盖内置版本 |
|
|
275
|
+
| `~/.dsh/dsh-dot.json` | 所有个人设置 |
|
|
226
276
|
| `~/.dsh/phone/` | 模拟器、镜像、AVD;`~/.dsh/dsh-phone*.{log,jsonl,json}` 日志 / 审计 / 设置 |
|
|
227
277
|
| `~/.dsh/dsh-computer*` | 电脑的日志、审计、状态 |
|
|
228
278
|
|
|
@@ -231,7 +281,7 @@ flowchart LR
|
|
|
231
281
|
<details>
|
|
232
282
|
<summary><b>安全边界</b></summary>
|
|
233
283
|
|
|
234
|
-
- 手机实时画面、dot
|
|
284
|
+
- 手机实时画面、dot 面板、dot 设置页、电脑实时桌面都挂在 dsh 自己的 web server 上(`/dsh-dot/*`),每个请求先过 dsh 的 `connection` 服务(登录态 + Host/Origin 围栏)。插件不开自己的端口、不自带鉴权。
|
|
235
285
|
- 虚拟机网关只绑 `127.0.0.1:18080`,要求密钥(每台机器自动生成在 `~/.dsh/dsh-computer.key`),只有插件内部持有。
|
|
236
286
|
- **「你」只有一个来源**:`/qq owner` 指定的号。手机通知上的昵称谁都能改,永远不算你的指令。
|
|
237
287
|
- 她看到什么、为什么没出声、哪次工具被拒,`calls.jsonl` 和审计日志里都有。
|
|
@@ -267,25 +317,27 @@ flowchart LR
|
|
|
267
317
|
|
|
268
318
|
- **v0.9 起 npm 包名是 `dsh-dot-life`**(`dsh-dot` 在 npm 上被占;v0.8.x 的 `@kevinwu901113/dsh-dot` 已 deprecated)。装过旧名的先 `dsh plugin --profile desktop remove @kevinwu901113/dsh-dot` 再装,`~/dot`、`~/.dsh/phone`、虚拟机都不用动。
|
|
269
319
|
- **v0.9.2 起工具名带命名空间**:`mcp__vm__*` → `mcp__dot-vm__*`,`mcp__phone__*` → `mcp__dot-phone__*`。
|
|
320
|
+
- **v0.20 起记忆精简成原话 + 三栏笔记**:旧的 `memory.json` 第一次加载时自动迁移,去向写在 `~/dot/memory/memory-migration.md`,见 [docs/memory.md](docs/memory.md#从-019-升级)。
|
|
270
321
|
- `dsh-computer`(v0.1–0.5)和 `dsh-interlude` 曾是独立插件,v0.3 / v0.4 起并入,git 历史一并合入。装过的先 `remove dsh-computer dsh-interlude`。
|
|
271
322
|
|
|
272
323
|
</details>
|
|
273
324
|
|
|
274
325
|
## 💡 设计原则
|
|
275
326
|
|
|
327
|
+
- **她是主体,手机和电脑是她的东西**:先有人设、记忆和日子,再有设备。能干活是附带的。
|
|
276
328
|
- **最好的代码是不写代码**:手机用 Google 官方模拟器 + mobile-mcp,电脑用 microsandbox,IM 用 dsh-im,定时用 dsh 内置的,人设用 HDSI 社区预设。
|
|
277
|
-
- **不替她做她该自己做的事**:App
|
|
329
|
+
- **不替她做她该自己做的事**:App 她自己装,日常她自己过,做什么不做什么她自己掂量。
|
|
278
330
|
- **她只能看,不能瞒着你动**:有后果的动作走审批,或者根本不给。
|
|
279
|
-
-
|
|
331
|
+
- **可审计**:每一轮的原始回复、每一次工具调用、每一笔花费都有记录。
|
|
280
332
|
- **用小号**。
|
|
281
333
|
|
|
282
334
|
## 🙏 致谢
|
|
283
335
|
|
|
284
|
-
[HDS-Interlude](https://github.com/REcklessNOLOve117/HDS-Interlude) · [mobile-mcp](https://github.com/mobile-next/mobile-mcp) · [microsandbox](https://github.com/zerocore-ai/microsandbox) · [NapCatQQ](https://github.com/NapNeko/NapCatQQ) · [SnowLuma](https://github.com/SnowLuma/SnowLuma) · [dsh-im](https://github.com/xmanrui/dsh-im) · [Moltbook](https://www.moltbook.com/heartbeat.md) · [memory-
|
|
336
|
+
[HDS-Interlude](https://github.com/REcklessNOLOve117/HDS-Interlude) · [mobile-mcp](https://github.com/mobile-next/mobile-mcp) · [microsandbox](https://github.com/zerocore-ai/microsandbox) · [NapCatQQ](https://github.com/NapNeko/NapCatQQ) · [SnowLuma](https://github.com/SnowLuma/SnowLuma) · [dsh-im](https://github.com/xmanrui/dsh-im) · [Moltbook](https://www.moltbook.com/heartbeat.md) · [chat-memory-benchmark](https://github.com/Ornn8/chat-memory-benchmark)
|
|
285
337
|
|
|
286
338
|
## 📄 许可证
|
|
287
339
|
|
|
288
|
-
[MIT](LICENSE)。0.3 到 0.22 的版本以 AGPL-3.0-only 发布(当时幕间用了 HDS-Interlude 的提示词译文),那些版本仍按 AGPL
|
|
340
|
+
[MIT](LICENSE)。0.3 到 0.22 的版本以 AGPL-3.0-only 发布(当时幕间用了 HDS-Interlude 的提示词译文),那些版本仍按 AGPL;0.23 起幕间提示词全部重写,不含 HDS-Interlude 的代码或文字,整包按 MIT 发布。
|
|
289
341
|
|
|
290
342
|
<div align="center">
|
|
291
343
|
|
package/cordis.patch.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# dsh-dot: one plugin, seven components. The character lives on her own devices.
|
|
2
2
|
# phone — her phone: an Android emulator this plugin installs, boots and keeps alive;
|
|
3
|
-
# tools mcp__dot-phone__* (mobile-mcp over adb).
|
|
3
|
+
# tools mcp__dot-phone__* (mobile-mcp over adb). Headless: watched on dsh's own pages.
|
|
4
4
|
# DSH_DOT_PHONE=off turns it off.
|
|
5
5
|
# computer — optional: a microVM (microsandbox, bundled; Docker as fallback) with shell, browser,
|
|
6
6
|
# desktop, live view, approval gates, audit log. The VM is the isolation boundary.
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
name: 'dsh-dot-life/phone'
|
|
78
78
|
disabled: !!js "process.env.DSH_DOT_PHONE === 'off'"
|
|
79
79
|
config:
|
|
80
|
-
|
|
80
|
+
# Headless by default (she is watched on the dot page / the live view); DSH_DOT_PHONE_WINDOW=on also opens the emulator's own window.
|
|
81
|
+
window: !!js "process.env.DSH_DOT_PHONE_WINDOW === 'on' ? true : process.env.DSH_DOT_PHONE_WINDOW === 'off' ? false : undefined"
|
|
81
82
|
acceptLicense: !!js "process.env.DSH_DOT_PHONE_ACCEPT_LICENSE === 'yes' ? true : undefined"
|
|
82
83
|
# Live view + controls at <dsh>/dsh-dot/phone/, behind dsh's own login (no port of its own).
|
|
83
84
|
# publicUrl: the public origin of this dsh if you expose it (tailscale serve, remote access).
|