INNER CODE UNIT · TypeScript

successText

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

function successText(name: string, roomChannelId: string | undefined, deferredInstall = false): string {
  // The user already knows they were waiting on their workspace — name what
  // unblocked it so the relay reads as an ending, not a fresh announcement.
  const installed = deferredInstall ? ' The workspace approved the install, which is what the wait was for.' : '';
  // room:'none': no shared room was opened — the multi-create
  // pattern finishes with one create_room naming every agent.
  if (roomChannelId === undefined) {
    return (
      `Agent "${name}" is live on Slack with its own bot and a DM with the operator. No shared room was ` +
      `opened (room:'none') — when the set is complete, open ONE room for all of them with create_room. ` +
      `It came online just now; if it doesn't respond within a minute, an operator can run: bash setup/lib/restart.sh` +
      installed
    );
  }
  return (
    `Agent "${name}" is live on Slack with its own bot. I opened a DM between it and the operator, ` +
    `and a shared room (${roomChannelId}) where you, I, and it can talk — @-mention it there to engage it. ` +
    `It came online just now; if it doesn't respond within a minute, an operator can run: bash setup/lib/restart.sh` +

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…