INNER CODE UNIT · TypeScript
timer
stablyai/agent-slack · src/index.ts:47
const timer = setTimeout(() => {
console.error(
`agent-slack command timed out after ${timeoutMs}ms. Set AGENT_SLACK_COMMAND_TIMEOUT_MS to adjust.`,
);
process.exit(124);
}, timeoutMs);
(timer as { unref?: () => void }).unref?.();
}
program
.name("agent-slack")
.description("Slack automation CLI for AI agents")
.version(getPackageVersion())
.option(
"--safe-mode",
'Human-in-the-loop enforcement: redirect "message send" to the draft editor and block "message edit"/"message delete" (also: AGENT_SLACK_SAFE_MODE=1)',
);