feat: add agent run worker launchagent installer

This commit is contained in:
Your Name
2026-07-02 10:18:27 +08:00
parent 6340b57fda
commit 3654639bb3
2 changed files with 109 additions and 0 deletions
+6
View File
@@ -319,6 +319,10 @@ async function writeMetadata() {
path.join(root, 'scripts', 'install-runtime-slo-report-agent.sh'),
path.join(runtimeRoot, 'scripts', 'install-runtime-slo-report-agent.sh'),
);
await fs.copyFile(
path.join(root, 'scripts', 'install-agent-run-worker-agent.sh'),
path.join(runtimeRoot, 'scripts', 'install-agent-run-worker-agent.sh'),
);
await fs.copyFile(
path.join(root, 'scripts', 'check-tool-runtime.mjs'),
path.join(runtimeRoot, 'scripts', 'check-tool-runtime.mjs'),
@@ -387,6 +391,7 @@ async function writeMetadata() {
' curl -sk https://mm.tkmind.cn/api/runtime/status # includes toolRuntime.queue',
' node scripts/agent-run-worker.mjs --status',
' node scripts/agent-run-worker.mjs --once',
' bash scripts/install-agent-run-worker-agent.sh # installs disabled by default',
'',
].join('\n'),
);
@@ -414,6 +419,7 @@ async function main() {
await fs.chmod(path.join(runtimeRoot, 'scripts', 'install-runtime-metrics-agent.sh'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'install-runtime-heartbeat-agent.sh'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'install-runtime-slo-report-agent.sh'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'install-agent-run-worker-agent.sh'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'check-tool-runtime.mjs'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'memind-portal-tunnel.sh'), 0o755);
console.log('');