@tnunamak/dalan 0.6.0 → 0.6.2
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/CHANGELOG.md +17 -0
- package/README.md +4 -0
- package/docs/codex-to-muse.md +25 -19
- package/docs/dalan-upgrade.md +2 -2
- package/docs/local-agent-mcp.md +2 -2
- package/docs/service-setup.md +30 -0
- package/docs/t3-integration.md +1 -1
- package/docs/worker-clients.md +1 -1
- package/package.json +1 -1
- package/scripts/lib/expose-tailscale.mjs +1 -1
- package/src/cli-help.mjs +8 -2
- package/src/server.mjs +36 -2
- package/src/service-auto-update.mjs +61 -0
- package/src/service-update-gate.mjs +20 -0
- package/src/service-update-lock.mjs +22 -0
- package/src/service-update-runtime.mjs +256 -0
- package/src/service-update.mjs +393 -0
- package/src/service.mjs +120 -14
- package/src/try-exposure.mjs +17 -7
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import os from 'node:os';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import http from 'node:http';
|
|
5
|
+
import https from 'node:https';
|
|
6
|
+
import net from 'node:net';
|
|
7
|
+
import { spawn } from 'node:child_process';
|
|
8
|
+
import { randomBytes } from 'node:crypto';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
import { defaultPath } from './paths.mjs';
|
|
11
|
+
import { initAsFiles } from './as-files.mjs';
|
|
12
|
+
|
|
13
|
+
const PACKAGE = '@tnunamak/dalan';
|
|
14
|
+
const PUBLIC_REGISTRY = 'https://registry.npmjs.org';
|
|
15
|
+
const REPO = fileURLToPath(new URL('..', import.meta.url));
|
|
16
|
+
const TIMEOUT = 30_000;
|
|
17
|
+
const fail = message => { throw new Error(message); };
|
|
18
|
+
|
|
19
|
+
function validRelease(value, { allowLocalTarball = false } = {}) {
|
|
20
|
+
const localTarball = typeof value?.dist?.tarball === 'string' && (/^http:\/\/(?:localhost|127\.0\.0\.1)(?::\d+)?\//.test(value.dist.tarball) || /^file:\/\//.test(value.dist.tarball));
|
|
21
|
+
let productionTarball = false;
|
|
22
|
+
try { const url = new URL(value?.dist?.tarball); productionTarball = url.protocol === 'https:' && url.hostname === 'registry.npmjs.org'; } catch { /* checked below */ }
|
|
23
|
+
if (!value || value.name !== PACKAGE || !/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(value.version ?? '') ||
|
|
24
|
+
!value.dist || typeof value.dist.tarball !== 'string' || (!productionTarball && !(allowLocalTarball && localTarball)) ||
|
|
25
|
+
typeof value.dist.integrity !== 'string' || !/^sha512-[A-Za-z0-9+/]+={0,2}$/.test(value.dist.integrity)) {
|
|
26
|
+
fail('npm registry returned invalid Dalan release metadata');
|
|
27
|
+
}
|
|
28
|
+
return { name: value.name, version: value.version, dist: { tarball: value.dist.tarball, integrity: value.dist.integrity } };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function requestJson(url, { timeout = TIMEOUT, socketPath, headers = {}, allowHttp = false } = {}) {
|
|
32
|
+
return new Promise((resolve, reject) => {
|
|
33
|
+
let absoluteTimer, settled = false;
|
|
34
|
+
const finish = (fn, value) => {
|
|
35
|
+
if (settled) return;
|
|
36
|
+
settled = true;
|
|
37
|
+
clearTimeout(absoluteTimer);
|
|
38
|
+
fn(value);
|
|
39
|
+
};
|
|
40
|
+
const target = new URL(url);
|
|
41
|
+
const transport = target.protocol === 'https:' ? https : http;
|
|
42
|
+
if (target.protocol !== 'https:' && !socketPath && !(allowHttp && target.protocol === 'http:' && ['localhost', '127.0.0.1'].includes(target.hostname))) return finish(reject, new Error('HTTPS required'));
|
|
43
|
+
const req = transport.request({ ...(socketPath ? { socketPath, path: url } : { hostname: target.hostname, port: target.port || undefined, path: target.pathname + target.search }), method: 'GET', headers, timeout }, res => {
|
|
44
|
+
const chunks = []; let size = 0;
|
|
45
|
+
res.on('data', chunk => { size += chunk.length; if (size > 2 * 1024 * 1024) req.destroy(new Error('response too large')); else chunks.push(chunk); });
|
|
46
|
+
res.on('aborted', () => finish(reject, new Error('response ended before completion')));
|
|
47
|
+
res.on('error', error => finish(reject, error));
|
|
48
|
+
res.on('end', () => {
|
|
49
|
+
if (res.statusCode !== 200) return finish(reject, new Error(`request failed (${res.statusCode})`));
|
|
50
|
+
try { finish(resolve, JSON.parse(Buffer.concat(chunks).toString('utf8'))); } catch { finish(reject, new Error('invalid JSON response')); }
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
req.on('timeout', () => req.destroy(new Error('request timed out')));
|
|
54
|
+
req.on('error', error => finish(reject, error));
|
|
55
|
+
absoluteTimer = setTimeout(() => req.destroy(new Error('request timed out')), timeout);
|
|
56
|
+
req.end();
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function run(command, args, { cwd, env, timeout = TIMEOUT } = {}) {
|
|
61
|
+
return new Promise((resolve, reject) => {
|
|
62
|
+
const child = spawn(command, args, { cwd, env, stdio: ['ignore', 'ignore', 'pipe'] });
|
|
63
|
+
let stderr = '', done = false;
|
|
64
|
+
const timer = setTimeout(() => child.kill('SIGKILL'), timeout);
|
|
65
|
+
child.stderr.on('data', chunk => { if (stderr.length < 8192) stderr += chunk.toString().slice(0, 8192 - stderr.length); });
|
|
66
|
+
child.on('error', error => { if (done) return; done = true; clearTimeout(timer); reject(error); });
|
|
67
|
+
child.on('close', (code, signal) => { if (done) return; done = true; clearTimeout(timer); code === 0 ? resolve() : reject(new Error(`${path.basename(command)} failed (${signal || code})${stderr.trim() ? `: ${stderr.trim().slice(0, 1000)}` : ''}`)); });
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export async function latestRelease(_receipt, { registry = PUBLIC_REGISTRY } = {}) {
|
|
72
|
+
const localTestRegistry = /^http:\/\/(?:localhost|127\.0\.0\.1)(?::\d+)?$/.test(registry);
|
|
73
|
+
if (!/^https:\/\//.test(registry) && !localTestRegistry) fail('npm registry must use HTTPS');
|
|
74
|
+
const metadata = await requestJson(`${registry.replace(/\/$/, '')}/@tnunamak%2fdalan/latest`, { allowHttp: localTestRegistry });
|
|
75
|
+
return validRelease(metadata, { allowLocalTarball: localTestRegistry });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function packageAt(home, version) { return path.join(home, 'versions', version, 'node_modules', '@tnunamak', 'dalan'); }
|
|
79
|
+
function installEnv(dir) {
|
|
80
|
+
const env = { PATH: process.env.PATH ?? '/usr/bin:/bin', HOME: dir, npm_config_userconfig: path.join(dir, '.npmrc'), npm_config_cache: path.join(dir, '.cache') };
|
|
81
|
+
if (process.platform === 'win32') env.SystemRoot = process.env.SystemRoot;
|
|
82
|
+
return env;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export async function installRelease(home, input, options = {}) {
|
|
86
|
+
const localTestRegistry = /^http:\/\/(?:localhost|127\.0\.0\.1)(?::\d+)?$/.test(options.registry ?? '');
|
|
87
|
+
const release = validRelease(input, { allowLocalTarball: localTestRegistry }), versions = path.join(home, 'versions'), destination = packageAt(home, release.version);
|
|
88
|
+
fs.mkdirSync(versions, { recursive: true, mode: 0o700 });
|
|
89
|
+
const marker = path.join(path.dirname(path.dirname(path.dirname(destination))), '.dalan-release.json');
|
|
90
|
+
if (fs.existsSync(destination)) {
|
|
91
|
+
let existing;
|
|
92
|
+
try { existing = JSON.parse(fs.readFileSync(marker, 'utf8')); } catch { fail(`installed version ${release.version} has no valid integrity receipt`); }
|
|
93
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(destination, 'package.json'), 'utf8'));
|
|
94
|
+
if (existing.integrity !== release.dist.integrity || pkg.name !== PACKAGE || pkg.version !== release.version) fail(`installed version ${release.version} does not match registry integrity`);
|
|
95
|
+
return destination;
|
|
96
|
+
}
|
|
97
|
+
const staging = path.join(versions, `.stage-${release.version}-${process.pid}-${randomBytes(5).toString('hex')}`);
|
|
98
|
+
fs.mkdirSync(staging, { recursive: true, mode: 0o700 });
|
|
99
|
+
const registry = options.registry ?? PUBLIC_REGISTRY;
|
|
100
|
+
if (!/^https:\/\//.test(registry) && !/^http:\/\/(?:localhost|127\.0\.0\.1)(?::\d+)?$/.test(registry)) fail('npm registry must use HTTPS');
|
|
101
|
+
try {
|
|
102
|
+
const pkg = { private: true, name: 'dalan-release-stage', version: '1.0.0', dependencies: { [PACKAGE]: release.dist.tarball } };
|
|
103
|
+
fs.writeFileSync(path.join(staging, 'package.json'), JSON.stringify(pkg), { mode: 0o600 });
|
|
104
|
+
const env = installEnv(staging), npm = options.npm ?? 'npm';
|
|
105
|
+
const base = ['--ignore-scripts', '--no-audit', '--no-fund', '--registry', registry];
|
|
106
|
+
await (options.run ?? run)(npm, ['install', '--package-lock-only', ...base], { cwd: staging, env, timeout: options.timeout ?? TIMEOUT });
|
|
107
|
+
const lock = JSON.parse(fs.readFileSync(path.join(staging, 'package-lock.json'), 'utf8'));
|
|
108
|
+
if (lock.packages?.[`node_modules/${PACKAGE}`]?.integrity !== release.dist.integrity) fail('npm lock integrity does not match registry metadata');
|
|
109
|
+
await (options.run ?? run)(npm, ['ci', ...base, '--omit=dev'], { cwd: staging, env, timeout: options.timeout ?? TIMEOUT });
|
|
110
|
+
const installed = JSON.parse(fs.readFileSync(path.join(staging, 'node_modules', PACKAGE, 'package.json'), 'utf8'));
|
|
111
|
+
if (installed.name !== PACKAGE || installed.version !== release.version) fail('installed package identity does not match registry metadata');
|
|
112
|
+
fs.writeFileSync(path.join(staging, '.dalan-release.json'), JSON.stringify({ name: PACKAGE, version: release.version, integrity: release.dist.integrity }), { mode: 0o600 });
|
|
113
|
+
fs.rmSync(path.join(staging, '.cache'), { recursive: true, force: true });
|
|
114
|
+
fs.rmSync(path.join(staging, '.npmrc'), { force: true });
|
|
115
|
+
fs.renameSync(staging, path.join(versions, release.version));
|
|
116
|
+
return destination;
|
|
117
|
+
} catch (error) { fs.rmSync(staging, { recursive: true, force: true }); throw error; }
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function validateProbe(value, { expectedWorkers, expectedVersion } = {}) {
|
|
121
|
+
if (!value || typeof value !== 'object' || typeof value.version !== 'string' || value.update_protocol !== 1 || !Number.isInteger(value.port) || value.port < 1 || value.port > 65535 || value.self_check !== true ||
|
|
122
|
+
!value.catalogs || typeof value.catalogs !== 'object' || Array.isArray(value.catalogs) || !Object.keys(value.catalogs).length) fail('service self-check response is incomplete');
|
|
123
|
+
for (const [worker, tools] of Object.entries(value.catalogs)) {
|
|
124
|
+
const names = new Set();
|
|
125
|
+
if (!/^[a-z][a-z0-9_-]{0,31}$/.test(worker) || !Array.isArray(tools) || !tools.length || tools.some(tool => {
|
|
126
|
+
if (!tool || typeof tool.name !== 'string' || !tool.name || names.has(tool.name) || typeof tool.description !== 'string' || !tool.inputSchema || typeof tool.inputSchema !== 'object') return true;
|
|
127
|
+
names.add(tool.name); return false;
|
|
128
|
+
})) fail('service self-check returned an invalid worker catalog');
|
|
129
|
+
}
|
|
130
|
+
if (expectedWorkers && JSON.stringify(Object.keys(value.catalogs).sort()) !== JSON.stringify([...expectedWorkers].sort())) fail('service self-check worker set does not match configuration');
|
|
131
|
+
if (expectedVersion && value.version !== expectedVersion) fail('service self-check version does not match selected package');
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function expectedProbe(home, receipt, repo) {
|
|
136
|
+
const workers = JSON.parse(fs.readFileSync(defaultPath(home, '.config/dot-bridge', 'workers.json'), 'utf8'))?.workers;
|
|
137
|
+
if (!workers || typeof workers !== 'object' || Array.isArray(workers)) fail('worker configuration is invalid for service self-check');
|
|
138
|
+
const packageDir = repo ?? receipt?.repo ?? path.join(home, 'current');
|
|
139
|
+
const manifest = JSON.parse(fs.readFileSync(path.join(packageDir, 'package.json'), 'utf8'));
|
|
140
|
+
return { expectedWorkers: Object.keys(workers), expectedVersion: manifest.version };
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export async function probeService(home, _receipt, options = {}) {
|
|
144
|
+
const socketPath = defaultPath(home, '.local/share/dot-bridge', 'admin.sock');
|
|
145
|
+
const operator = fs.readFileSync(defaultPath(home, '.config/dot-bridge', 'operator.key'), 'utf8').trim();
|
|
146
|
+
if (!operator || operator.length > 1024) fail('service operator key is invalid');
|
|
147
|
+
const timeout = options.timeout ?? TIMEOUT;
|
|
148
|
+
if (!Number.isFinite(timeout) || timeout <= 0) fail('service probe timeout must be positive');
|
|
149
|
+
const deadline = performance.now() + timeout;
|
|
150
|
+
const value = validateProbe(await requestJson('http://localhost/service-check', { socketPath, headers: { 'x-operator-key': operator }, timeout }), expectedProbe(home, _receipt));
|
|
151
|
+
const remaining = deadline - performance.now();
|
|
152
|
+
if (remaining <= 0) fail('service probe timed out');
|
|
153
|
+
await checkLoopback(value.port, remaining);
|
|
154
|
+
return value;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function checkLoopback(port, timeout = 1500) {
|
|
158
|
+
return new Promise((resolve, reject) => {
|
|
159
|
+
const socket = net.connect({ host: '127.0.0.1', port });
|
|
160
|
+
const timer = setTimeout(() => socket.destroy(new Error('service listener check timed out')), timeout);
|
|
161
|
+
socket.once('connect', () => { clearTimeout(timer); socket.end(); resolve(); });
|
|
162
|
+
socket.once('error', error => { clearTimeout(timer); reject(new Error(`reported loopback listener is unavailable: ${error.message}`)); });
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// The candidate runs before promotion and may be incompatible or hostile. It receives configuration shape (workers, public origin)
|
|
167
|
+
// but never a live secret: signing keys, cookie keys, the storage key and the operator key are generated fresh for each probe.
|
|
168
|
+
function prepareProbeConfig(from, to) {
|
|
169
|
+
const source = defaultPath(from, '.config/dot-bridge'), target = defaultPath(to, '.config/dot-bridge');
|
|
170
|
+
fs.mkdirSync(target, { recursive: true, mode: 0o700 });
|
|
171
|
+
for (const name of ['workers.json', 'workers-repos.json']) {
|
|
172
|
+
const a = path.join(source, name); if (!fs.existsSync(a)) continue;
|
|
173
|
+
const stat = fs.lstatSync(a); if (!stat.isFile() || stat.isSymbolicLink()) continue;
|
|
174
|
+
fs.copyFileSync(a, path.join(target, name), fs.constants.COPYFILE_EXCL); fs.chmodSync(path.join(target, name), stat.mode & 0o777);
|
|
175
|
+
}
|
|
176
|
+
const origin = JSON.parse(fs.readFileSync(path.join(source, 'as.json'), 'utf8'));
|
|
177
|
+
initAsFiles(target, { publicUrl: origin.public_url });
|
|
178
|
+
fs.writeFileSync(path.join(target, 'as.json'), JSON.stringify({ ...origin, public_url: origin.public_url }), { mode: 0o600 });
|
|
179
|
+
fs.writeFileSync(path.join(target, 'operator.key'), `${randomBytes(32).toString('hex')}\n`, { mode: 0o600 });
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
async function stopChild(child) {
|
|
183
|
+
if (!child || child.exitCode !== null || child.signalCode !== null || child.spawned === false) return;
|
|
184
|
+
if (!child.pid) return;
|
|
185
|
+
child.kill('SIGTERM');
|
|
186
|
+
let timer;
|
|
187
|
+
await Promise.race([new Promise(resolve => child.once('close', resolve)), new Promise(resolve => { timer = setTimeout(resolve, 3000); })]);
|
|
188
|
+
clearTimeout(timer);
|
|
189
|
+
if (child.exitCode === null && child.signalCode === null) child.kill('SIGKILL');
|
|
190
|
+
if (child.exitCode === null && child.signalCode === null && child.spawned !== false) await new Promise(resolve => child.once('close', resolve));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
async function requireCatalogGuard(repo, env, receipt, options) {
|
|
194
|
+
const child = (options.spawn ?? spawn)(receipt.node ?? process.execPath, [path.join(repo, 'src/server.mjs')], { cwd: repo, env, stdio: ['ignore', 'pipe', 'pipe'] });
|
|
195
|
+
let stdout = '', stderr = '';
|
|
196
|
+
let spawnError = null, closed = false;
|
|
197
|
+
child.on('error', error => { spawnError = error; });
|
|
198
|
+
child.once('close', () => { closed = true; });
|
|
199
|
+
child.stdout?.on('data', chunk => { if (stdout.length < 8192) stdout += chunk.toString().slice(0, 8192 - stdout.length); });
|
|
200
|
+
child.stderr?.on('data', chunk => { if (stderr.length < 8192) stderr += chunk.toString().slice(0, 8192 - stderr.length); });
|
|
201
|
+
try {
|
|
202
|
+
const deadline = Date.now() + (options.guardTimeoutMs ?? 10_000);
|
|
203
|
+
while (Date.now() < deadline) {
|
|
204
|
+
if (spawnError) fail(`candidate service could not start: ${spawnError.message}`);
|
|
205
|
+
if (/MCP listening|admin socket/.test(stdout)) fail('candidate started despite mismatched service catalog pin');
|
|
206
|
+
if (closed) break;
|
|
207
|
+
await new Promise(resolve => setTimeout(resolve, 50));
|
|
208
|
+
}
|
|
209
|
+
if (!closed) fail('candidate did not enforce the service catalog pin before timeout');
|
|
210
|
+
if (/MCP listening|admin socket/.test(stdout)) fail('candidate announced a listener before enforcing the service catalog pin');
|
|
211
|
+
if (child.exitCode === 0 || !stderr.includes('service catalog guard mismatch')) fail('candidate did not reject the mismatched service catalog pin');
|
|
212
|
+
} finally { await stopChild(child); }
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export async function probeCandidate(home, receipt, repo, options = {}) {
|
|
216
|
+
const scratchBase = path.join(os.homedir(), '.tmp');
|
|
217
|
+
fs.mkdirSync(scratchBase, { recursive: true, mode: 0o700 });
|
|
218
|
+
const scratch = fs.mkdtempSync(path.join(scratchBase, 'dalan-candidate-'));
|
|
219
|
+
fs.chmodSync(scratch, 0o700);
|
|
220
|
+
let child;
|
|
221
|
+
try {
|
|
222
|
+
prepareProbeConfig(home, scratch);
|
|
223
|
+
const env = { PATH: process.env.PATH ?? '/usr/bin:/bin', HOME: scratch, NODE_ENV: 'production', DALAN_AUTH_MODE: 'builtin', DALAN_BIND_HOST: '127.0.0.1', DALAN_PORT: '0', DALAN_CATALOG_PROFILE: 'stable', DALAN_ENABLE_WORKSPACE: receipt.enable_workspace ? '1' : '0', DALAN_ENABLE_T3_TOOLS: receipt.enable_t3 ? '1' : '0' };
|
|
224
|
+
const configDir = defaultPath(scratch, '.config/dot-bridge');
|
|
225
|
+
const pinFile = path.join(configDir, 'service-catalog.json');
|
|
226
|
+
const version = JSON.parse(fs.readFileSync(path.join(repo, 'package.json'), 'utf8')).version;
|
|
227
|
+
fs.writeFileSync(pinFile, JSON.stringify({ version, catalogs: {} }), { mode: 0o600, flag: 'wx' });
|
|
228
|
+
try { await requireCatalogGuard(repo, env, receipt, options); }
|
|
229
|
+
finally { fs.rmSync(pinFile, { force: true }); }
|
|
230
|
+
child = (options.spawn ?? spawn)(receipt.node ?? process.execPath, [path.join(repo, 'src/server.mjs')], { cwd: repo, env, stdio: ['ignore', 'ignore', 'ignore'] });
|
|
231
|
+
let spawnError = null, closed = false;
|
|
232
|
+
child.on('error', error => { spawnError = error; });
|
|
233
|
+
child.once('close', () => { closed = true; });
|
|
234
|
+
const deadline = Date.now() + (options.startupTimeoutMs ?? 20_000);
|
|
235
|
+
let result;
|
|
236
|
+
while (Date.now() < deadline) {
|
|
237
|
+
if (spawnError) fail(`candidate service could not start: ${spawnError.message}`);
|
|
238
|
+
if (closed) fail('candidate service exited before self-check');
|
|
239
|
+
if (child.exitCode !== null || child.signalCode !== null) fail('candidate service exited before self-check');
|
|
240
|
+
try { result = await probeService(scratch, { ...receipt, repo }); break; } catch { await new Promise(resolve => setTimeout(resolve, 150)); }
|
|
241
|
+
}
|
|
242
|
+
if (!result) fail('candidate service did not pass its self-check before timeout');
|
|
243
|
+
return result;
|
|
244
|
+
} finally {
|
|
245
|
+
await stopChild(child);
|
|
246
|
+
fs.rmSync(scratch, { recursive: true, force: true });
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export async function controlService(receipt, action, options = {}) {
|
|
251
|
+
if (!['stop', 'restart', 'daemon-reload'].includes(action)) fail('unsupported service action');
|
|
252
|
+
const unit = String(receipt.unit ?? '');
|
|
253
|
+
if (!/^[A-Za-z0-9_.@-]+$/.test(unit)) fail('invalid systemd unit name');
|
|
254
|
+
const name = unit.endsWith('.service') ? unit : `${unit}.service`;
|
|
255
|
+
await (options.run ?? run)('systemctl', ['--user', action, ...(action === 'daemon-reload' ? [] : [name])], { timeout: TIMEOUT });
|
|
256
|
+
}
|