Public: anyone can read this; the crew can change it.

Every reminder signs off with the agent's name, brokerage, phone and email, and the README says how to make the app carry your own #41

opened this

Merged 32d 23h ago, live in production

Every new reminder draft now ends with a two-line sign-off, Name, Brokerage then phone · email. The agent's phone and email also show in the header, the client timeline and the terminal. What changed Settings: src/env.ts reads DEALCLOCKPHONE and DEALCLOCKEMAIL, defaulting to (555) 010-0142 and [email protected].

Notes

opened this

Every new reminder draft now ends with a two-line sign-off, Name, Brokerage then phone · email. The agent's phone and email also show in the header, the client timeline and the terminal.

What changed

  • Settings: src/env.ts reads DEAL_CLOCK_PHONE and DEAL_CLOCK_EMAIL, defaulting to (555) 010-0142 and [email protected].
  • Validation: a phone must be digits, spaces and + ( ) - ., at most 30 characters. An email must have one @ and at most 254 characters. A bad value falls back to the sample and logs one DEAL_CLOCK_… line, with no crash.
  • Drafts: Agent in src/reminders.ts carries phone and email. A new signOff() writes the sign-off. The page, MCP and /tick all use the same drafts/draftsFor path, so their draft words are identical. A sent reminder still reads back the words that were approved.
  • Pages: the header and client timeline show the phone as a tel: link and the email as a mailto: link, both escaped. The terminal header and its client timeline print them as plain text. A small .agent-contact rule in static/app.css styles the line.
  • Docs: README has a Make it yours section, and docs/TECHNICAL.md lists the four variables.
  • Tests: the new src/signoff.test.ts covers the sign-off format, sent words surviving an agent change, validation, the boot fallback with its log line, and the timeline links. Existing tests only gained phone and email on their test agents; no expected draft text changed.

Checks

  • The full bun test passes (135 tests).
  • bun scripts/lint-design.ts printed nothing. This repo has no scripts/design-lint.ts, so I ran its lint-design.ts instead.
  • I could not run bun x tsc --noEmit. bun x pulled in a TypeScript 7 compiler that only prints its help text in this sandbox, so the type check has not run. The forge's check will cover it.

No contract cell changed. I did not add a mailto/tel control to the terminal beyond plain text.

To try it: set DEAL_CLOCK_PHONE and DEAL_CLOCK_EMAIL, open any deal's reminder draft, and look at the header and /deals/:id/timeline.

🤖 Generated with Claude Code

Closes #36

commented

Every new reminder draft now ends with a two-line sign-off, Name, Brokerage then phone · email. The agent's phone and email also show in the header, the client timeline and the terminal.

What changed

  • Settings: src/env.ts reads DEAL_CLOCK_PHONE and DEAL_CLOCK_EMAIL, defaulting to (555) 010-0142 and [email protected].
  • Validation: a phone must be digits, spaces and + ( ) - ., at most 30 characters. An email must have one @ and at most 254 characters. A bad value falls back to the sample and logs one DEAL_CLOCK_… line, with no crash.
  • Drafts: Agent in src/reminders.ts carries phone and email. A new signOff() writes the sign-off. The page, MCP and /tick all use the same drafts/draftsFor path, so their draft words are identical. A sent reminder still reads back the words that were approved.
  • Pages: the header and client timeline show the phone as a tel: link and the email as a mailto: link, both escaped. The terminal header and its client timeline print them as plain text. A small .agent-contact rule in static/app.css styles the line.
  • Docs: README has a Make it yours section, and docs/TECHNICAL.md lists the four variables.
  • Tests: the new src/signoff.test.ts covers the sign-off format, sent words surviving an agent change, validation, the boot fallback with its log line, and the timeline links. Existing tests only gained phone and email on their test agents; no expected draft text changed.

Checks

  • The full bun test passes (135 tests).
  • bun scripts/lint-design.ts printed nothing. This repo has no scripts/design-lint.ts, so I ran its lint-design.ts instead.
  • I could not run bun x tsc --noEmit. bun x pulled in a TypeScript 7 compiler that only prints its help text in this sandbox, so the type check has not run. The forge's check will cover it.

No contract cell changed. I did not add a mailto/tel control to the terminal beyond plain text.

To try it: set DEAL_CLOCK_PHONE and DEAL_CLOCK_EMAIL, open any deal's reminder draft, and look at the header and /deals/:id/timeline.

🤖 Generated with Claude Code

commented

All five review points are addressed and pushed in 2a23e47. The full bun test passes (138 tests) and scripts/lint-design.ts printed nothing.

  1. Tests for the new lines (src/signoff.test.ts):
    • One test checks that the header from layout() has the agent-contact line with the tel: and mailto: links.
    • One test checks that the terminal header and its client timeline both print (555) 010-0142 · [email protected].
    • Each fails if its line is removed.
  2. Comment moved: the Whose deals these are comment is back on agent in src/env.ts. The two validators now sit under their own comment.
  3. One helper: contactLinks(agent) lives in the new src/pages/contact.ts. layout.ts and timeline.ts both use it, and a test checks that it escapes what it is given.
  4. Email validation: the address is now an allowlist, [A-Za-z0-9._+-] before the @ and [A-Za-z0-9.-] after it. That rejects ?, & and #, so [email protected]?bcc=x falls back to the sample. A test covers four injecting forms.
  5. tsc: I could not run it. The repo has no tsconfig.json, and bun x tsc fetches a TypeScript 7 compiler that only prints its help text in this sandbox. The forge's check will cover the type check.

No contract cell changed.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs