deepseek-harness/packages/test-support
creatixchu 42164508c8 feat(llm): 在 compaction 中按路由为图片请求压力计价
Closes #2848.

- dsh-llm 新增 LlmAdapter.imageRequestPricing 同步钩子与 LlmImageRequestPricing/LlmImageRequestPrice 词汇,ctx.llm 按路由解析
- llm-deepseek 用官方公布的 v4 视觉计算器逐句移植(14px patch、3:1 降采样、384 上限、最坏对齐 pad)实现该钩子,复现请求投影的最旧优先 offload 与像素预算缩放;纯几何 requestImageDimensions 上移到 dsh-attachment
- token-meter 表层 fold 存储与路由无关的节点事实,measure() 按生效 envelope 的路由为图片出现处定价;锚点存快照并按同一路由重定价;TokenSurfaceNode 同时携带路由价 tokens 与固定启发式 heuristicTokens
- compaction 触发、保留与选段读取同一套路由价,记录的 shadowedTokenCount 保持启发式以维持 O(1) 投影 fold 一致
- llm-replay 支持按模型的 imageRequestTokens 声明;新增 keyless 的 image-compaction ACP 快照场景端到端验证装配应用
2026-08-24 19:15:30 +08:00
..
acp-snapshot refactor(acp): launch automation through the dsh acp profile 2026-08-23 10:59:00 +08:00
agent-loop-testkit release(dsh): 0.1.1-rc.2 2026-08-21 19:48:58 +08:00
client-runtime fix(client): align domain split with repository gates 2026-08-23 16:28:19 +08:00
llm-mock-server release(dsh): 0.1.1-rc.2 2026-08-21 19:48:58 +08:00
llm-replay feat(llm): 在 compaction 中按路由为图片请求压力计价 2026-08-24 19:15:30 +08:00
loader-smoke refactor(acp): launch automation through the dsh acp profile 2026-08-23 10:59:00 +08:00
README.i18n.yaml docs(i18n): localize Chinese internal links 2026-08-18 19:00:37 +08:00
README.md refactor: apply repository naming contract 2026-08-13 00:54:38 +08:00
README.zh.md docs(i18n): localize Chinese internal links 2026-08-18 19:00:37 +08:00

test-support/ — development and test infrastructure

English | 中文

These packages support repository development, tests, and examples rather than product APIs. Their compatibility follows the development need they serve.

Package Role
acp-snapshot/ Provides the ACP snapshot-test toolkit
agent-loop-testkit/ Mounts shared prerequisites for AgentLoop tests
invariants/ Runs development-time runtime-contract assertions
loader-smoke/ Launches Loader-composed applications for smoke tests
llm-mock-server/ Provides a deterministic OpenAI-compatible fault server
llm-replay/ Replays recorded model responses for keyless tests and demos

A package moves out of test-support/ when it gains a product contract and product consumers.

The invariants contract is documented in docs/subsystems/invariants.md.