feat: add agent run worker status check

This commit is contained in:
Your Name
2026-07-02 10:36:23 +08:00
parent b12c1b371c
commit f1fd4cc316
2 changed files with 183 additions and 0 deletions
+6
View File
@@ -331,6 +331,10 @@ async function writeMetadata() {
path.join(root, 'scripts', 'check-agent-code-run-entry.mjs'),
path.join(runtimeRoot, 'scripts', 'check-agent-code-run-entry.mjs'),
);
await fs.copyFile(
path.join(root, 'scripts', 'check-agent-run-worker.mjs'),
path.join(runtimeRoot, 'scripts', 'check-agent-run-worker.mjs'),
);
await writeFile(
path.join(runtimeRoot, 'RUNBOOK.txt'),
[
@@ -392,6 +396,7 @@ async function writeMetadata() {
' 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',
' node scripts/check-agent-run-worker.mjs # read-only LaunchAgent/queue check',
'',
].join('\n'),
);
@@ -421,6 +426,7 @@ async function main() {
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', 'check-agent-run-worker.mjs'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'memind-portal-tunnel.sh'), 0o755);
console.log('');
console.log(`Portal runtime 已生成: ${runtimeRoot}`);