Files
vue-tui/pnpm-workspace.yaml
T
Yunfei He 5c60a0af63 fix: upgrade text stack to grapheme-aware slicing/width (closes #21 grapheme classes)
Bump slice-ansi@9, string-width@8, wrap-ansi@10 and add cli-truncate@6
(both the runtime dep and the pnpm catalog entry for string-width). Rewrite
wrapText truncate variants to delegate to cli-truncate, matching Ink's
wrap-text.ts: grapheme clusters (ZWJ emoji, combining marks) stay whole and
newlines are preserved. Adjust the horizontal-clip left-edge compensation in
paint.ts because slice-ansi@9 drops a straddling wide grapheme whole rather
than splitting it, so lineX must advance by the actually-dropped width.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 17:57:52 +08:00

39 lines
722 B
YAML

packages:
- apps/*
- packages/*
- tools/*
- examples/*
catalogMode: prefer
catalog:
"@alcalzone/ansi-tokenize": ^0.3.0
ansi-escapes: ^7.3.0
"@types/node": ^24.12.4
typescript: ^5
vite: npm:@voidzero-dev/vite-plus-core@latest
vitest: npm:@voidzero-dev/vite-plus-test@latest
vite-plus: ^0.1.22
"@vitejs/plugin-vue-jsx": ^5.1.5
chalk: ^5.6.2
is-in-ci: ^1.0.0
patch-console: ^2.0.0
strip-ansi: ^7.2.0
node-pty: 1.2.0-beta.13
terminal-size: ^4.0.1
tsx: ^4.22.0
string-width: ^8.0.0
overrides:
vite: "catalog:"
vitest: "catalog:"
peerDependencyRules:
allowAny:
- vite
- vitest
allowedVersions:
vite: "*"
vitest: "*"
allowBuilds:
esbuild: true
node-pty: true