@celljs/ta-lips 0.0.0-stage → 4.29.0
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 +9 -0
- package/README.md +8 -2
- package/host/index.mjs +329 -0
- package/package.json +66 -4
- package/python/lips.py +816 -0
- package/web/index.js +435 -0
package/README.en.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @celljs/ta-lips
|
|
2
|
+
|
|
3
|
+
In video calls, the lower half of the person's face is drawn again on this computer for each thing Ta says (MuseTalk 1.5), so that her lips match the captions and the voice. Design: `docs/design/ta-call.md` 12.
|
|
4
|
+
|
|
5
|
+
- As the first video call begins the user is asked once whether to download it (about 5 GB); Settings can download or remove it too. Without it the clips play as they are.
|
|
6
|
+
- Server side (host): a Python of its own made with uv in `~/.ta/tools/lips`, with MuseTalk, its models, and the latents and masks of each clip prepared once (`python/lips.py setup`); `lips.py serve` starts as a call begins and stops after a minute unused.
|
|
7
|
+
- Page: through `registerCallMouth` it gets the PCM of Ta's voice and the frame of the clip shown at each moment, and lays the lower face drawn (a WebP with soft edges) over that moment.
|
|
8
|
+
- Captions, voice, clip and mouth share one clock, the time the sound plays; a reading waits about 1.2 s so that its first frames are drawn.
|
|
9
|
+
- Only where the page reaches this computer directly (`files.byUrl`): frames never go through a relay.
|
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @celljs/ta-lips
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
视频通话时在这台电脑上为 Ta 说的每句话重画人物的下半张脸(MuseTalk 1.5),让嘴型和字幕、声音对上。设计见 `docs/design/ta-call.md` 12。
|
|
4
|
+
|
|
5
|
+
- 第一次视频通话时问一次是否下载(约 5 GB),也可以在设置里下载或移除;不同意就照常播放片段。
|
|
6
|
+
- 服务端(host):用 uv 在 `~/.ta/tools/lips` 建一个独立的 Python,下载 MuseTalk、模型,并为每段片段预先算好人脸潜变量和遮罩(`python/lips.py setup`);通话开始时启动 `lips.py serve`,一分钟没人用就停。
|
|
7
|
+
- 页面:通过 `registerCallMouth` 接收 Ta 声音的 PCM 和每个时刻要显示的片段帧,取回画好的下半脸(带透明边的 WebP),在那一刻贴到片段上。
|
|
8
|
+
- 字幕、声音、片段、口型共用同一条时间线(声音实际播放的时刻);朗读会先等约 1.2 秒,让第一批口型来得及画好。
|
|
9
|
+
- 只在页面能直连这台电脑时启用(`files.byUrl`),不经中继传画面。
|
package/host/index.mjs
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
// web-src/host.ts
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
|
+
import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { homedir } from "node:os";
|
|
5
|
+
import { join } from "node:path";
|
|
6
|
+
import { createInterface } from "node:readline";
|
|
7
|
+
|
|
8
|
+
// web-src/lips-protocol.ts
|
|
9
|
+
var NAME = "@celljs/ta-lips";
|
|
10
|
+
var PYTHON = "3.11";
|
|
11
|
+
var REQUIREMENTS = [
|
|
12
|
+
"torch==2.15.0",
|
|
13
|
+
"torchvision==0.29.2",
|
|
14
|
+
"diffusers==0.30.2",
|
|
15
|
+
"accelerate==0.28.0",
|
|
16
|
+
"transformers==4.39.2",
|
|
17
|
+
"huggingface_hub==0.30.2",
|
|
18
|
+
"numpy==1.26.4",
|
|
19
|
+
"opencv-python==4.11.0.86",
|
|
20
|
+
"librosa==0.11.0",
|
|
21
|
+
"soundfile==0.14.0",
|
|
22
|
+
"einops==0.8.2",
|
|
23
|
+
"omegaconf==2.4.0",
|
|
24
|
+
"safetensors",
|
|
25
|
+
"pillow"
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
// web-src/host.ts
|
|
29
|
+
var KEEP_FRAMES = 240;
|
|
30
|
+
var IDLE_MS = 5 * 60000;
|
|
31
|
+
var HER_ON = "her";
|
|
32
|
+
|
|
33
|
+
class LipsHost {
|
|
34
|
+
root;
|
|
35
|
+
home;
|
|
36
|
+
own;
|
|
37
|
+
setupRun;
|
|
38
|
+
status;
|
|
39
|
+
server;
|
|
40
|
+
serverReady;
|
|
41
|
+
frames = new Map;
|
|
42
|
+
idle;
|
|
43
|
+
herRun;
|
|
44
|
+
herProgress = 0;
|
|
45
|
+
herError;
|
|
46
|
+
constructor(root, home = join(homedir(), ".ta", "tools", "lips"), own = async () => []) {
|
|
47
|
+
this.root = root;
|
|
48
|
+
this.home = home;
|
|
49
|
+
this.own = own;
|
|
50
|
+
this.status = { state: existsSync(join(home, "ready")) ? "ready" : "none", progress: 0 };
|
|
51
|
+
}
|
|
52
|
+
get script() {
|
|
53
|
+
return join(this.root, "python", "lips.py");
|
|
54
|
+
}
|
|
55
|
+
get faces() {
|
|
56
|
+
const built = join(this.root, "..", "..", "..", "public", "faces");
|
|
57
|
+
return existsSync(join(built, "lips.json")) ? built : join(this.root, "..", "ta-web", "public", "faces");
|
|
58
|
+
}
|
|
59
|
+
get python() {
|
|
60
|
+
return join(this.home, "venv", process.platform === "win32" ? "Scripts/python.exe" : "bin/python");
|
|
61
|
+
}
|
|
62
|
+
state() {
|
|
63
|
+
return { ...this.status, supported: LipsHost.supported(), her: this.herState(), herProgress: this.herProgress, herError: this.herError };
|
|
64
|
+
}
|
|
65
|
+
herState() {
|
|
66
|
+
return this.herRun ? "getting" : existsSync(join(this.home, HER_ON)) && existsSync(this.herFile) ? "on" : "off";
|
|
67
|
+
}
|
|
68
|
+
get herFile() {
|
|
69
|
+
return join(this.home, "models", "her", "her-v3.pth");
|
|
70
|
+
}
|
|
71
|
+
her(on) {
|
|
72
|
+
if (this.status.state !== "ready") {
|
|
73
|
+
throw new Error("The mouth is not set up.");
|
|
74
|
+
}
|
|
75
|
+
if (!on) {
|
|
76
|
+
rmSync(join(this.home, HER_ON), { force: true });
|
|
77
|
+
this.stopServer();
|
|
78
|
+
} else if (existsSync(this.herFile)) {
|
|
79
|
+
writeFileSync(join(this.home, HER_ON), "");
|
|
80
|
+
this.stopServer();
|
|
81
|
+
} else if (!this.herRun) {
|
|
82
|
+
this.herProgress = 0;
|
|
83
|
+
this.herRun = this.runHer().then(() => {
|
|
84
|
+
writeFileSync(join(this.home, HER_ON), "");
|
|
85
|
+
this.stopServer();
|
|
86
|
+
}, (error) => {
|
|
87
|
+
this.herError = error instanceof Error ? error.message : String(error);
|
|
88
|
+
});
|
|
89
|
+
this.herRun.finally(() => {
|
|
90
|
+
this.herRun = undefined;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
return this.state();
|
|
94
|
+
}
|
|
95
|
+
runHer() {
|
|
96
|
+
this.herError = undefined;
|
|
97
|
+
return new Promise((resolve, reject) => {
|
|
98
|
+
const child = spawn(this.python, [this.script, "her", "--home", this.home, "--faces", this.faces], { stdio: ["ignore", "pipe", "ignore"] });
|
|
99
|
+
let error = "";
|
|
100
|
+
createInterface({ input: child.stdout }).on("line", (line) => {
|
|
101
|
+
try {
|
|
102
|
+
const message = JSON.parse(line);
|
|
103
|
+
this.herProgress = message.progress ?? this.herProgress;
|
|
104
|
+
error = message.error ?? error;
|
|
105
|
+
} catch {}
|
|
106
|
+
});
|
|
107
|
+
child.on("error", reject);
|
|
108
|
+
child.on("exit", (code) => code === 0 ? resolve() : reject(new Error(error || `her mouth failed (${code})`)));
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
setup() {
|
|
112
|
+
if (!LipsHost.supported()) {
|
|
113
|
+
throw new Error("Drawing the mouth needs a Mac with Apple silicon, or a computer with an NVIDIA GPU.");
|
|
114
|
+
}
|
|
115
|
+
if (this.status.state !== "ready" && !this.setupRun) {
|
|
116
|
+
this.status = { state: "setting-up", progress: 0, step: "python" };
|
|
117
|
+
this.setupRun = this.runSetup().then(() => {
|
|
118
|
+
this.status = { state: "ready", progress: 1 };
|
|
119
|
+
}, (error) => {
|
|
120
|
+
this.status = { state: "failed", progress: this.status.progress, error: error instanceof Error ? error.message : String(error) };
|
|
121
|
+
});
|
|
122
|
+
this.setupRun.finally(() => {
|
|
123
|
+
this.setupRun = undefined;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
return this.state();
|
|
127
|
+
}
|
|
128
|
+
remove() {
|
|
129
|
+
this.stopServer();
|
|
130
|
+
rmSync(this.home, { recursive: true, force: true });
|
|
131
|
+
this.status = { state: "none", progress: 0 };
|
|
132
|
+
return this.state();
|
|
133
|
+
}
|
|
134
|
+
get more() {
|
|
135
|
+
return join(this.home, "more.json");
|
|
136
|
+
}
|
|
137
|
+
async listOwn() {
|
|
138
|
+
const clips = await this.own().catch(() => []);
|
|
139
|
+
mkdirSync(this.home, { recursive: true });
|
|
140
|
+
writeFileSync(this.more, JSON.stringify(Array.isArray(clips) ? clips : []));
|
|
141
|
+
}
|
|
142
|
+
async start() {
|
|
143
|
+
if (this.status.state !== "ready") {
|
|
144
|
+
throw new Error("The mouth is not set up.");
|
|
145
|
+
}
|
|
146
|
+
this.touch();
|
|
147
|
+
if (!this.serverReady) {
|
|
148
|
+
await this.listOwn();
|
|
149
|
+
}
|
|
150
|
+
return { fps: await this.ensureServer() };
|
|
151
|
+
}
|
|
152
|
+
tell(message) {
|
|
153
|
+
this.touch();
|
|
154
|
+
if (message.op === "cut") {
|
|
155
|
+
this.drop(String(message.id));
|
|
156
|
+
}
|
|
157
|
+
this.server?.stdin?.write(`${JSON.stringify(message)}
|
|
158
|
+
`);
|
|
159
|
+
}
|
|
160
|
+
take(id) {
|
|
161
|
+
this.touch();
|
|
162
|
+
const out = [];
|
|
163
|
+
for (const [key, frame] of this.frames) {
|
|
164
|
+
if (key.startsWith(`${id}:`)) {
|
|
165
|
+
out.push(frame);
|
|
166
|
+
this.frames.delete(key);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return out;
|
|
170
|
+
}
|
|
171
|
+
stop() {
|
|
172
|
+
this.stopServer();
|
|
173
|
+
}
|
|
174
|
+
drop(id) {
|
|
175
|
+
for (const key of this.frames.keys()) {
|
|
176
|
+
if (key.startsWith(`${id}:`)) {
|
|
177
|
+
this.frames.delete(key);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
touch() {
|
|
182
|
+
clearTimeout(this.idle);
|
|
183
|
+
this.idle = setTimeout(() => this.stopServer(), IDLE_MS);
|
|
184
|
+
this.idle.unref?.();
|
|
185
|
+
}
|
|
186
|
+
ensureServer() {
|
|
187
|
+
if (this.serverReady) {
|
|
188
|
+
return this.serverReady;
|
|
189
|
+
}
|
|
190
|
+
const her = this.herState() === "on" ? ["--her"] : [];
|
|
191
|
+
const child = spawn(this.python, [this.script, "serve", "--home", this.home, "--faces", this.faces, "--more", this.more, ...her], {
|
|
192
|
+
stdio: ["pipe", "pipe", "ignore"],
|
|
193
|
+
env: { ...process.env, PYTHONUNBUFFERED: "1", PYTORCH_ENABLE_MPS_FALLBACK: "1" }
|
|
194
|
+
});
|
|
195
|
+
this.server = child;
|
|
196
|
+
child.stdin?.on("error", () => {
|
|
197
|
+
return;
|
|
198
|
+
});
|
|
199
|
+
this.serverReady = new Promise((resolve, reject) => {
|
|
200
|
+
const gone = (error) => {
|
|
201
|
+
reject(error);
|
|
202
|
+
if (this.server === child) {
|
|
203
|
+
this.server = undefined;
|
|
204
|
+
this.serverReady = undefined;
|
|
205
|
+
this.frames.clear();
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
const lines = createInterface({ input: child.stdout });
|
|
209
|
+
lines.on("line", (line) => {
|
|
210
|
+
let message;
|
|
211
|
+
try {
|
|
212
|
+
message = JSON.parse(line);
|
|
213
|
+
} catch {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
if ("ready" in message) {
|
|
217
|
+
resolve(message.fps);
|
|
218
|
+
} else if ("error" in message && message.error) {
|
|
219
|
+
reject(new Error(message.error));
|
|
220
|
+
} else if ("frames" in message) {
|
|
221
|
+
for (const frame of message.frames) {
|
|
222
|
+
this.frames.set(`${message.id}:${frame.slot}`, frame);
|
|
223
|
+
}
|
|
224
|
+
while (this.frames.size > KEEP_FRAMES) {
|
|
225
|
+
this.frames.delete(this.frames.keys().next().value);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
child.on("error", gone);
|
|
230
|
+
child.on("exit", (code) => gone(new Error(`The mouth stopped (${code}).`)));
|
|
231
|
+
});
|
|
232
|
+
this.serverReady.catch(() => this.stopServer());
|
|
233
|
+
return this.serverReady;
|
|
234
|
+
}
|
|
235
|
+
stopServer() {
|
|
236
|
+
clearTimeout(this.idle);
|
|
237
|
+
const child = this.server;
|
|
238
|
+
this.server = undefined;
|
|
239
|
+
this.serverReady = undefined;
|
|
240
|
+
this.frames.clear();
|
|
241
|
+
child?.kill();
|
|
242
|
+
}
|
|
243
|
+
async runSetup() {
|
|
244
|
+
mkdirSync(this.home, { recursive: true });
|
|
245
|
+
const uv = await this.uv();
|
|
246
|
+
if (!existsSync(this.python)) {
|
|
247
|
+
await this.run(uv, ["venv", "--python", PYTHON, join(this.home, "venv")], "python");
|
|
248
|
+
}
|
|
249
|
+
await this.run(uv, ["pip", "install", "--python", this.python, ...REQUIREMENTS], "packages");
|
|
250
|
+
await this.listOwn();
|
|
251
|
+
await this.run(this.python, [this.script, "setup", "--home", this.home, "--faces", this.faces, "--more", this.more], "models");
|
|
252
|
+
writeFileSync(join(this.home, HER_ON), "");
|
|
253
|
+
await this.run(process.execPath, ["-e", `require('fs').writeFileSync(${JSON.stringify(join(this.home, "ready"))}, '')`], "done");
|
|
254
|
+
}
|
|
255
|
+
async uv() {
|
|
256
|
+
const own = join(this.home, "uv", process.platform === "win32" ? "uv.exe" : "uv");
|
|
257
|
+
if (existsSync(own)) {
|
|
258
|
+
return own;
|
|
259
|
+
}
|
|
260
|
+
try {
|
|
261
|
+
await this.run("uv", ["--version"], "python");
|
|
262
|
+
return "uv";
|
|
263
|
+
} catch {
|
|
264
|
+
const url = process.platform === "win32" ? "https://astral.sh/uv/install.ps1" : "https://astral.sh/uv/install.sh";
|
|
265
|
+
const env = { UV_INSTALL_DIR: join(this.home, "uv"), UV_NO_MODIFY_PATH: "1" };
|
|
266
|
+
if (process.platform === "win32") {
|
|
267
|
+
await this.run("powershell", ["-ExecutionPolicy", "ByPass", "-c", `irm ${url} | iex`], "python", env);
|
|
268
|
+
} else {
|
|
269
|
+
await this.run("sh", ["-c", `curl -LsSf ${url} | sh`], "python", env);
|
|
270
|
+
}
|
|
271
|
+
return own;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
run(command, args, step, env = {}) {
|
|
275
|
+
const share = { python: [0, 0.03], packages: [0.03, 0.2], models: [0.2, 1], done: [1, 1] };
|
|
276
|
+
const [from, to] = share[step] ?? [0, 1];
|
|
277
|
+
if (this.status.state === "setting-up") {
|
|
278
|
+
this.status = { ...this.status, step, progress: Math.max(this.status.progress, from) };
|
|
279
|
+
}
|
|
280
|
+
return new Promise((resolve, reject) => {
|
|
281
|
+
const child = spawn(command, args, { stdio: ["ignore", "pipe", "pipe"], env: { ...process.env, ...env } });
|
|
282
|
+
let tail = "";
|
|
283
|
+
const lines = createInterface({ input: child.stdout });
|
|
284
|
+
lines.on("line", (line) => {
|
|
285
|
+
try {
|
|
286
|
+
const message = JSON.parse(line);
|
|
287
|
+
if (typeof message.progress === "number" && this.status.state === "setting-up") {
|
|
288
|
+
this.status = { ...this.status, progress: from + (to - from) * message.progress };
|
|
289
|
+
}
|
|
290
|
+
if (message.error) {
|
|
291
|
+
tail = message.error;
|
|
292
|
+
}
|
|
293
|
+
} catch {}
|
|
294
|
+
});
|
|
295
|
+
child.stderr?.on("data", (data) => {
|
|
296
|
+
tail = `${tail}${data}`.slice(-600);
|
|
297
|
+
});
|
|
298
|
+
child.on("error", reject);
|
|
299
|
+
child.on("exit", (code) => code === 0 ? resolve() : reject(new Error(tail.trim().split(`
|
|
300
|
+
`).slice(-3).join(`
|
|
301
|
+
`) || `${step} failed (${code})`)));
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
static supported(platform = process.platform, arch = process.arch) {
|
|
305
|
+
return platform === "darwin" && arch === "arm64" || platform === "linux" || platform === "win32";
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
async function activate(host) {
|
|
309
|
+
const root = (await host.listPackages()).find((pkg) => pkg.name === NAME)?.root;
|
|
310
|
+
if (!root) {
|
|
311
|
+
return {};
|
|
312
|
+
}
|
|
313
|
+
const lips = new LipsHost(root, undefined, async () => await host.callPackageHost("@celljs/ta-moves", "clips"));
|
|
314
|
+
return {
|
|
315
|
+
dispose: () => lips.stop(),
|
|
316
|
+
state: () => lips.state(),
|
|
317
|
+
setup: () => lips.setup(),
|
|
318
|
+
remove: () => lips.remove(),
|
|
319
|
+
her: (on) => lips.her(!!on),
|
|
320
|
+
start: () => lips.start(),
|
|
321
|
+
tell: (message) => lips.tell(message),
|
|
322
|
+
take: (id) => lips.take(String(id)),
|
|
323
|
+
stop: () => lips.stop()
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
export {
|
|
327
|
+
activate as default,
|
|
328
|
+
LipsHost
|
|
329
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-lips",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "4.29.0",
|
|
4
|
+
"description": "A pi package for Ta: the mouth of the person of a video call drawn on this computer for what Ta says (MuseTalk), so that her lips match the words, set up only when the user asks",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pi-package"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/cellbang/cell.git"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"files": [
|
|
18
|
+
"web",
|
|
19
|
+
"host",
|
|
20
|
+
"python",
|
|
21
|
+
"!python/try_*.py",
|
|
22
|
+
"!**/__pycache__",
|
|
23
|
+
"!**/*.map"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc -b && bun build web-src/index.tsx --format esm --target browser --outfile web/index.js && bun build web-src/host.ts --format esm --target node --outfile host/index.mjs",
|
|
27
|
+
"clean": "rm -rf lib web host *.tsbuildinfo",
|
|
28
|
+
"test": "bun test ./lib",
|
|
29
|
+
"watch": "tsc -b -w --preserveWatchOutput"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@celljs/ta-protocol": "4.29.0",
|
|
33
|
+
"@celljs/ta-web": "4.29.0",
|
|
34
|
+
"@types/react": "^19.3.0"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"pi": {
|
|
40
|
+
"title": {
|
|
41
|
+
"en": "Lifelike mouth",
|
|
42
|
+
"zh-CN": "真人口型",
|
|
43
|
+
"zh-TW": "真人口型",
|
|
44
|
+
"ja-JP": "リアルな口元"
|
|
45
|
+
},
|
|
46
|
+
"summary": {
|
|
47
|
+
"en": "In video calls, her mouth is drawn again on this computer for each thing Ta says, so that her lips match the words and the voice. Downloads about 5 GB the first time you agree.",
|
|
48
|
+
"zh-CN": "视频通话时在这台电脑上按 Ta 说的每句话重画她的嘴,让嘴型和字、声音对上。第一次同意后下载约 5 GB。",
|
|
49
|
+
"zh-TW": "視訊通話時在這台電腦上按 Ta 說的每句話重畫她的嘴,讓嘴型和字、聲音對上。第一次同意後下載約 5 GB。",
|
|
50
|
+
"ja-JP": "ビデオ通話で、Ta が話すたびにこのコンピューターで口元を描き直し、言葉と声に口の動きを合わせます。初めて同意したときに約 5 GB をダウンロードします。"
|
|
51
|
+
},
|
|
52
|
+
"icon": "Sparkles",
|
|
53
|
+
"web": [
|
|
54
|
+
"./web/index.js"
|
|
55
|
+
],
|
|
56
|
+
"host": "./host/index.mjs",
|
|
57
|
+
"permissions": {
|
|
58
|
+
"host": {
|
|
59
|
+
"state": "models.use",
|
|
60
|
+
"start": "models.use",
|
|
61
|
+
"tell": "models.use",
|
|
62
|
+
"take": "models.use",
|
|
63
|
+
"stop": "models.use",
|
|
64
|
+
"*": "settings.manage"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|