chore: replace all node/npm/tsx references with bun across codebase

- Source: setup/service.ts, runners.ts, agent-runner.ts error messages
- Scripts: restart-stack.sh, run-migrations.ts → bun
- Bootstrap: setup.sh check_node→check_bun, npm install→bun install
- Docs: CLAUDE.md, README.md, all SKILL.md files
- Tests: service.test.ts, restart-stack.test.ts expectations updated
This commit is contained in:
Eyejoker
2026-03-31 00:10:23 +09:00
parent 0112f5a2d6
commit 35ba7cb5ba
23 changed files with 102 additions and 135 deletions

View File

@@ -152,12 +152,12 @@ export async function runAgentProcess(
if (!fs.existsSync(distEntry)) {
logger.error(
{ runnerDir, chatJid: input.chatJid, runId: input.runId },
'Runner not built. Run: cd runners/agent-runner && npm install && npm run build',
'Runner not built. Run: cd runners/agent-runner && bun install && bun run build',
);
return {
status: 'error',
result: null,
error: `Runner not built at ${distEntry}. Run npm run build:runners first.`,
error: `Runner not built at ${distEntry}. Run bun run build:runners first.`,
};
}

View File

@@ -2271,9 +2271,7 @@ export function claimServiceHandoff(id: number): boolean {
WHERE id = ?
AND status = 'pending'`,
).run(id);
return (
(db.prepare('SELECT changes() as c').get() as { c: number }).c > 0
);
return (db.prepare('SELECT changes() as c').get() as { c: number }).c > 0;
}
export function completeServiceHandoff(id: number): void {

View File

@@ -5,7 +5,7 @@ function printUsageAndExit(): never {
console.error(
[
'Usage:',
' tsx src/restart-context-cli.ts write --chat-jid <jid> --summary <text> [--verify <text> ...] [--service-id <id> ...]',
' bun src/restart-context-cli.ts write --chat-jid <jid> --summary <text> [--verify <text> ...] [--service-id <id> ...]',
].join('\n'),
);
process.exit(1);