Skip to content

feat(PRLT-1326): add prlt notion connect/disconnect#1260

Open
chrismcdermut wants to merge 2 commits into
mainfrom
PRLT-1326/feat/add-prlt-notion-comm
Open

feat(PRLT-1326): add prlt notion connect/disconnect#1260
chrismcdermut wants to merge 2 commits into
mainfrom
PRLT-1326/feat/add-prlt-notion-comm

Conversation

@chrismcdermut
Copy link
Copy Markdown
Owner

Summary

Adds prlt notion connect and prlt notion disconnect commands. Once connected, resolveTicketProvider() returns the existing NotionTicketProvider so all ticket operations (prlt ticket list, prlt work start, the daemon poller) read/write Notion live — no import or sync.

What's in this PR

  • apps/cli/src/commands/notion/connect.ts — interactive integration-token auth, --check health probe, --force re-auth, --database <id> non-interactive picker, JSON-mode prompt config for agents.
  • apps/cli/src/commands/notion/disconnect.ts — clears notion.api_key from the credentials DB and removes the notion provider source.
  • apps/cli/src/lib/notion/client.ts — adds searchDatabases(query?) against /v1/search (filters to object: database).
  • Registers a notion provider source on connect so multi-source routing picks up Notion.
  • apps/cli/test/unit/notion-connect.test.ts — covers config persist/clear, env-var precedence, provider-source removal on disconnect, and searchDatabases request shape + error handling.

Test plan

  • `pnpm build` clean
  • `notion-connect.test.ts` — 9/9 passing
  • `notion-provider.test.ts` — 38/38 passing (no regressions)
  • `prlt notion --help` and subcommand help render correctly

🤖 Generated with Claude Code

Proletariat Agent and others added 2 commits May 6, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant