feat(DIS-102): sanitizeForDiscord strips paths and tokens before Discord send #46
No reviewers
Labels
No labels
blocked
needs-review
phase:0
phase:1
phase:1.5
phase:2
phase:3
phase:4
phase:5
phase:6+
priority:p0
priority:p1
priority:p2
security
type:chore
type:ci
type:docs
type:feat
type:fix
type:idea
type:known-issue
type:refactor
type:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: dev/disclaw#46
Loading…
Reference in a new issue
No description provided.
Delete branch "phase-1/sanitize-for-discord"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
sanitizeForDiscord()insrc/runtime/sanitize.tsthat replaces absolute paths (repoRoot, home) and sensitive tokens (Discord bot tokens, Anthropic API keys) before text reaches Discordsrc/router.tsto allchannel.send()calls and the error message pathTest plan
vitest run tests/unit/sanitize-for-discord.test.ts� all 8 tests passtsc --noEmit)7ddc22dc0fto90f96bdbf4