Repository navigation
Conversation
This reverts commit f02a8f5.
| "dsh-pet-powercontext-memory/dsh-sources.png", | ||
| "dsh-pet-powercontext-memory/dsh-settings.png", | ||
| "dsh-pet-powercontext-memory/dsh-memory-service.png", | ||
| "dsh-pet-powercontext-memory/reuse-cost.en.svg", |
There was a problem hiding this comment.
[P2] 中文版引用英文图表,同时把该文件加入豁免名单,等于绕过“图表按语言成对”的检查
docs/zh/blog/posts/dsh-pet-powercontext-memory.md 引用 reuse-cost.en.svg,图内文字全为英文(Known generation input (million tokens)、Full history、Estimated known cost (CNY) 等,见该 SVG 的 <text> 节点)。
本行把 "dsh-pet-powercontext-memory/reuse-cost.en.svg" 加入 original_images。该函数对不在名单内的图片强制 assert image.endswith(f".{language}.svg") 并要求另一语言副本存在——因此加入名单后,中文版引用英文图表不再被任何断言拦住;而 test_blog_language_is_consistent_in_text_examples_and_diagrams 的 docstring 正是 “Catch untranslated prompts/comments and accidental cross-language image reuse”,本 PR 改的正是这条守卫的适用范围。
影响:中文版正文出现整幅英文图表;更关键的是守卫被改成放行,后续同类“图表漏译”不会再被这条测试发现。对比同文件对 Harbor 文章的写法是显式声明 “deliberately shares English architecture figures across editions”,这里却把 SVG 图表与 GIF/界面截图放进同一条笼统注释里豁免,等于让 .svg 也进入无语言约束的分支。
建议:补 reuse-cost.zh.svg,中文文章引用 .zh.svg、英文文章继续用 .en.svg,测试无需改动。若确实要中英共用同一张英文图表,请把“图表共用”与“截图/录屏共用”分成两组名单,并在注释里单独说明该图表的共用决定,避免后续图表继续顺着这条分支逃过检查。
|
|
||
| The pet's memory is one host adapter for PowerContext. The same server can be connected to DeepSeek Harness itself, so that **your coding agent sessions** get project-level memory too. | ||
|
|
||
| The `powercontext-dsh` plugin adds a thin Cordis adapter that maps PowerContext's HTTP API into Harness. Before each turn it recalls relevant context and captures the user's input as a Source; the model then uses `pc_*` tools to read and write Memory, Handoff, Source, Experience and Skill explicitly. |
There was a problem hiding this comment.
[P3] Describe the native MCP tool surface
Readers looking for the advertised pc_* Memory, Handoff and Skill tools will not find them: the DSH plugin registers native MCP tools named mcp__powercontext__<operation>. Update this paragraph and the corresponding table in both editions to describe the actual tool surface.
Which issue or RFC does this PR close?
Closes #.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?
How was this change tested?
AI usage statement