INNER CODE UNIT · TypeScript

failureText

nanocoai/nanoclaw · .claude/skills/slack-agent-flow/src/modules/slack-agent-flow/index.ts:114

function failureText(
  name: string,
  localName: string,
  step: string,
  message: string,
  newAgentGroupId: string,
  slug: string,
  sourceGroupId: string,
  roomNone: boolean,
): string {
  // room:'none' must survive into the printed finish command too — omitting
  // it would make the retry grow a room the multi-create pattern skipped.
  return (
    `Agent "${name}" was created and is reachable via send_message({ to: "${localName}", ... }), ` +
    `but its Slack setup failed at step '${step}': ${message}. An operator can finish it with: ` +
    `pnpm exec tsx scripts/slack-agent-flow-finish.ts --group ${newAgentGroupId} --name ${slug} ` +
    `--source-group ${sourceGroupId}${roomNone ? ' --room none' : ''} [--origin-instance <key>] [--restart]`
  );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…