claude-code-best/src
James Feng a249bbe9a6 fix(security): extract shared stripHtmlToText() utility (fixes #18-24)
- Create src/utils/stripHtml.ts with he-based HTML-to-text conversion
- Replace bingAdapter's inline regex+decodeHtmlEntities with stripHtmlToText()
- Replace WebBrowserTool's inline regex chain with stripHtmlToText()
- Add stripHtml.test.ts with 6 test cases
- Update bingAdapter test expectation for whitespace normalization

Test: 3068 pass, 0 fail
2026-06-03 17:05:49 +08:00
..
__tests__ Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
assistant Enable coordinator swarm features 2026-06-01 20:33:29 +08:00
bootstrap Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
bridge feat(bridge): tsc 全绿 — 补齐 Bridge/UDS/TCP/ACP 远程控制链类型 2026-06-02 11:26:11 +08:00
buddy fix: resolve tsc errors (remaining upstream type fixes) 2026-06-01 19:01:38 +08:00
cli Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
commands fix(security): replace URL substring checks with proper URL parsing 2026-06-03 16:50:31 +08:00
components Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
constants Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
context Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00
coordinator Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
daemon Enable auto mode autonomy commands 2026-06-01 20:17:09 +08:00
entrypoints chore(typecheck-green): fix 28 tsc errors — baseline 62→34 2026-06-02 10:16:40 +08:00
environment-runner feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
hooks Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
jobs feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
keybindings refactor: 大规模迁移原有组件到 ink 包内 2026-04-07 22:26:45 +08:00
memdir Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
migrations feat: 完成stub 2026-03-31 20:40:16 +08:00
moreright 更新大量 tsx 原始文件; 已经迁移 login panel; 部分 (#121) 2026-04-04 23:24:27 +08:00
native-ts fix: 修复 @ typeahead 文件搜索无结果的问题 2026-04-01 17:11:09 +08:00
outputStyles feat: build 2026-03-31 19:22:47 +08:00
plugins feat: build 2026-03-31 19:22:47 +08:00
proactive Enable coordinator swarm features 2026-06-01 20:33:29 +08:00
query Fix Vite runtime requires for restored features 2026-06-01 21:23:28 +08:00
remote fix: resolve tsc errors (remaining upstream type fixes) 2026-06-01 19:01:38 +08:00
schemas feat: 完成stub 2026-03-31 20:40:16 +08:00
screens Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
self-hosted-runner feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
server feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
services fix(security): prevent shell injection in headersHelper (#36) 2026-06-03 16:59:16 +08:00
skills Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
ssh feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
state Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
tasks Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
tools Phase 2: delete src/tools/ — align with upstream monorepo 2026-06-03 16:25:10 +08:00
types Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
upstreamproxy feat: 问就是封包 2026-03-31 23:32:58 +08:00
utils fix(security): extract shared stripHtmlToText() utility (fixes #18-24) 2026-06-03 17:05:49 +08:00
vim feat: build 2026-03-31 19:22:47 +08:00
voice feat: build 2026-03-31 19:22:47 +08:00
commands.ts Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
context.ts feat: build 2026-03-31 19:22:47 +08:00
cost-tracker.ts feat: build 2026-03-31 19:22:47 +08:00
costHook.ts feat: build 2026-03-31 19:22:47 +08:00
dialogLaunchers.tsx Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
history.ts feat: build 2026-03-31 19:22:47 +08:00
interactiveHelpers.tsx Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00
main.tsx Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
projectOnboardingState.ts feat: build 2026-03-31 19:22:47 +08:00
query.ts Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
QueryEngine.ts Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
replLauncher.tsx Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00
setup.ts feat: build 2026-03-31 19:22:47 +08:00
Task.ts feat: build 2026-03-31 19:22:47 +08:00
tasks.ts Fix Vite runtime requires for restored features 2026-06-01 21:23:28 +08:00
Tool.ts Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
tools.ts Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00