disclaw/tests/unit
Nick Tabeling 62ea507974
Some checks failed
CI / build-and-test (ubuntu-latest) (pull_request) Has been cancelled
CI / build-and-test (windows-latest) (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
fix(DIS-105): prevent fence closure from pushing chunks beyond 2000-char hard limit
The flush() helper now enforces the Discord hard limit by hard-splitting
any chunk that exceeds 2000 chars (e.g. when "\n```" was appended after
the soft-limit check). Also reserves 4 chars of overhead in the
soft-limit check when inside a fenced code block.

Adds a regression test that verifies no chunk exceeds 2000 chars even
when the fence closure is appended at the limit boundary.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 10:13:58 +02:00
..
identity-templates.test.ts feat(identity): harden settings.json template, add injection-resistance clause 2026-04-09 11:19:19 +02:00
lockfile.test.ts feat(runtime): add startup lockfile to prevent double-start 2026-04-09 11:49:17 +02:00
logger.test.ts feat(DIS-101): introduce pino structured logger, remove console.* 2026-04-09 17:09:37 +02:00
path-traversal.test.ts fix(new-agent): add path traversal containment check 2026-04-09 11:19:28 +02:00
resolve-claude.test.ts fix(runner): replace shell:true with cross-spawn, add resolveClaude 2026-04-09 10:29:58 +02:00
sanitize-env.test.ts fix: remove --bare flag to restore OAuth login for Claude Pro/Max 2026-04-09 13:48:45 +02:00
sanitize-for-discord.test.ts fix(DIS-102): sanitize response before DB storage to break path feedback loop 2026-04-10 10:02:17 +02:00
schemas.test.ts feat(DIS-107): Zod schemas for disclaw.yaml, agent.yaml, CLI output 2026-04-09 17:49:44 +02:00
semaphore.test.ts feat(DIS-104): global semaphore for max_concurrent_agents cap 2026-04-09 17:08:58 +02:00
split-for-discord.test.ts fix(DIS-105): prevent fence closure from pushing chunks beyond 2000-char hard limit 2026-04-10 10:13:58 +02:00
workspace-root-resolve.test.ts feat(DIS-101): introduce pino structured logger, remove console.* 2026-04-09 17:09:37 +02:00