diff --git a/examples/acp-agent/both-mode.cordis.snapshot.yml b/examples/acp-agent/both-mode.cordis.snapshot.yml index 67044b8066..8ee54b3078 100644 --- a/examples/acp-agent/both-mode.cordis.snapshot.yml +++ b/examples/acp-agent/both-mode.cordis.snapshot.yml @@ -20,11 +20,9 @@ tools: mode: both persona: | - You are a coding assistant powered by the {{model}} model. Your working - directory is {{cwd}}. + You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}. - Verify your work by running the code or tests. Keep answers brief and - factual. + Verify your work by running the code or tests. Keep answers brief and factual. - insert: - id: code-runtime name: '@deepseek-ai/dsh-code-runtime-worker' diff --git a/examples/acp-agent/both-mode.cordis.yml b/examples/acp-agent/both-mode.cordis.yml index b449a568ec..3dff66d60a 100644 --- a/examples/acp-agent/both-mode.cordis.yml +++ b/examples/acp-agent/both-mode.cordis.yml @@ -19,11 +19,9 @@ tools: mode: both persona: | - You are a coding assistant powered by the {{model}} model. Your working - directory is {{cwd}}. + You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}. - Verify your work by running the code or tests. Keep answers brief and - factual. + Verify your work by running the code or tests. Keep answers brief and factual. - insert: - id: code-runtime name: '@deepseek-ai/dsh-code-runtime-worker' diff --git a/examples/acp-agent/code-mode.cordis.snapshot.yml b/examples/acp-agent/code-mode.cordis.snapshot.yml index bcaa225eba..d525afc5d6 100644 --- a/examples/acp-agent/code-mode.cordis.snapshot.yml +++ b/examples/acp-agent/code-mode.cordis.snapshot.yml @@ -20,11 +20,9 @@ tools: mode: code persona: | - You are a coding assistant powered by the {{model}} model. Your working - directory is {{cwd}}. + You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}. - Verify your work by running the code or tests. Keep answers brief and - factual. + Verify your work by running the code or tests. Keep answers brief and factual. - insert: - id: code-runtime name: '@deepseek-ai/dsh-code-runtime-worker' diff --git a/examples/acp-agent/code-mode.cordis.yml b/examples/acp-agent/code-mode.cordis.yml index d46e490494..323c35b5b4 100644 --- a/examples/acp-agent/code-mode.cordis.yml +++ b/examples/acp-agent/code-mode.cordis.yml @@ -20,11 +20,9 @@ tools: mode: code persona: | - You are a coding assistant powered by the {{model}} model. Your working - directory is {{cwd}}. + You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}. - Verify your work by running the code or tests. Keep answers brief and - factual. + Verify your work by running the code or tests. Keep answers brief and factual. - insert: - id: code-runtime name: '@deepseek-ai/dsh-code-runtime-worker' diff --git a/examples/acp-agent/cordis.yml b/examples/acp-agent/cordis.yml index 0ff736dd59..dc03ea6b03 100644 --- a/examples/acp-agent/cordis.yml +++ b/examples/acp-agent/cordis.yml @@ -44,11 +44,9 @@ # loop resolves per session (every ACP session carries the client's cwd, # so the persona can state the workspace). persona: | - You are a coding assistant powered by the {{model}} model. Your working - directory is {{cwd}}. + You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}. - Verify your work by running the code or tests. Keep answers brief and - factual. + Verify your work by running the code or tests. Keep answers brief and factual. # The subagent seam + both in-process backends + two model-facing tools, as leaf # entries after the app (which provides ctx.agents/ctx.tools). spawn (a fresh diff --git a/examples/acp-agent/tests/snapshots/both-mode-turn/system-prompt.golden.md b/examples/acp-agent/tests/snapshots/both-mode-turn/system-prompt.golden.md index 688557b132..d817cf1a80 100644 --- a/examples/acp-agent/tests/snapshots/both-mode-turn/system-prompt.golden.md +++ b/examples/acp-agent/tests/snapshots/both-mode-turn/system-prompt.golden.md @@ -1,10 +1,8 @@ You are an AI agent powered by the DeepSeek Harness SDK. -You are a coding assistant powered by the deepseek-v4-flash model. Your working -directory is {{cwd}}. +You are a coding assistant powered by the deepseek-v4-flash model. Your working directory is {{cwd}}. -Verify your work by running the code or tests. Keep answers brief and -factual. +Verify your work by running the code or tests. Keep answers brief and factual. Use the read tool — not shell commands like cat — to inspect text files. Results include line numbers. Use offset and limit to continue reading large files. diff --git a/examples/acp-agent/tests/snapshots/code-mode-turn/system-prompt.golden.md b/examples/acp-agent/tests/snapshots/code-mode-turn/system-prompt.golden.md index 688557b132..d817cf1a80 100644 --- a/examples/acp-agent/tests/snapshots/code-mode-turn/system-prompt.golden.md +++ b/examples/acp-agent/tests/snapshots/code-mode-turn/system-prompt.golden.md @@ -1,10 +1,8 @@ You are an AI agent powered by the DeepSeek Harness SDK. -You are a coding assistant powered by the deepseek-v4-flash model. Your working -directory is {{cwd}}. +You are a coding assistant powered by the deepseek-v4-flash model. Your working directory is {{cwd}}. -Verify your work by running the code or tests. Keep answers brief and -factual. +Verify your work by running the code or tests. Keep answers brief and factual. Use the read tool — not shell commands like cat — to inspect text files. Results include line numbers. Use offset and limit to continue reading large files. diff --git a/examples/acp-agent/tests/snapshots/text-turn/system-prompt.golden.md b/examples/acp-agent/tests/snapshots/text-turn/system-prompt.golden.md index edaa7d5cc9..18f0cbcd07 100644 --- a/examples/acp-agent/tests/snapshots/text-turn/system-prompt.golden.md +++ b/examples/acp-agent/tests/snapshots/text-turn/system-prompt.golden.md @@ -1,10 +1,8 @@ You are an AI agent powered by the DeepSeek Harness SDK. -You are a coding assistant powered by the deepseek-v4-flash model. Your working -directory is {{cwd}}. +You are a coding assistant powered by the deepseek-v4-flash model. Your working directory is {{cwd}}. -Verify your work by running the code or tests. Keep answers brief and -factual. +Verify your work by running the code or tests. Keep answers brief and factual. Use the read tool — not shell commands like cat — to inspect text files. Results include line numbers. Use offset and limit to continue reading large files. diff --git a/scripts/verify-md-wrap.ts b/scripts/verify-md-wrap.ts index 2d8845e030..3143ee5617 100644 --- a/scripts/verify-md-wrap.ts +++ b/scripts/verify-md-wrap.ts @@ -18,9 +18,11 @@ * A wrapped paragraph inside a list item or blockquote is still a `paragraph` * node, so those are caught too. Scope mirrors doc-typecheck plus the two * AGENTS.md files that doc-sync does NOT otherwise cover (the convention itself - * lives there): README.md, docs/** /*.md, packages/* /*.md, AGENTS.md, - * packages/AGENTS.md. The root and packages/ CLAUDE.md are symlinks to the - * AGENTS.md files, so they are deduped by real path. + * lives there), plus generated system-prompt Markdown goldens: README.md, + * docs/** /*.md, packages/* /*.md, examples/** /system-prompt.golden.md, + * packages/** /system-prompt.golden.md, AGENTS.md, packages/AGENTS.md. The root + * and packages/ CLAUDE.md are symlinks to the AGENTS.md files, so they are + * deduped by real path. * * Run: `tsx scripts/verify-md-wrap.ts`. */ @@ -34,8 +36,18 @@ import type { Nodes } from 'mdast' const root = resolve(import.meta.dirname, '..') -/** Files to check: doc-typecheck's scope plus the AGENTS.md pair. */ -const PATTERNS = ['README.md', 'README.zh.md', 'docs/**/*.md', 'packages/*/*.md', 'packages/*/*/*.md', 'AGENTS.md', 'packages/AGENTS.md'] +/** Files to check: doc-typecheck's scope, prompt goldens, and the AGENTS.md pair. */ +const PATTERNS = [ + 'README.md', + 'README.zh.md', + 'docs/**/*.md', + 'packages/*/*.md', + 'packages/*/*/*.md', + 'examples/**/system-prompt.golden.md', + 'packages/**/system-prompt.golden.md', + 'AGENTS.md', + 'packages/AGENTS.md', +] /** A located hard-wrap: a prose paragraph spanning more than one source line. */ interface Violation {