Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
fix(dsh): keep package smoke writes outside pnpm store
tt-a1ib1fa8d730f12
diff --git a/integrations/deepseek-harness/README.md b/integrations/deepseek-harness/README.mdindex 6509096c..a9911864 100644--- a/integrations/deepseek-harness/README.md+++ b/integrations/deepseek-harness/README.md@@ -46,7 +46,7 @@ node integrations/deepseek-harness/scripts/distribution-acceptance.mjsnode integrations/deepseek-harness/scripts/pack.mjs --out /tmp/archify-dsh.tgz --json```-Distribution acceptance requires Node 22 for the canonical ZIP regression check and pnpm 10. It installs the real pinned DSH runtime and tarball in temporary profiles, checks discovery and loading, runs the installed Skill smoke test, and checks uninstall. Release CI runs this on Linux, macOS, and Windows. Publish only the tested tarball as a new version; tag the corresponding adapter commit as `archify-dsh-v<version>`. After v0.2.0 is published and publicly verified, switch the public install examples to `@0.2.0`. Rebuilding a released adapter uses its tag and recorded Skill commit, not a moving branch.+Distribution acceptance requires Node 22 for the canonical ZIP regression check and pnpm 10. It installs the real pinned DSH runtime and tarball in temporary profiles, checks discovery and loading, runs `doctor` and `demo` through the installed CLI, and checks uninstall. The full source-version package smoke runs on a temporary copy of the installed Skill because it rewrites bundled examples; the copy preserves pnpm store hard links in the actual installation. Release CI runs this on Linux, macOS, and Windows. Publish only the tested tarball as a new version; tag the corresponding adapter commit as `archify-dsh-v<version>`. After v0.2.0 is published and publicly verified, switch the public install examples to `@0.2.0`. Rebuilding a released adapter uses its tag and recorded Skill commit, not a moving branch.## Invokediff --git a/integrations/deepseek-harness/scripts/distribution-acceptance.mjs b/integrations/deepseek-harness/scripts/distribution-acceptance.mjsindex c46b4f2b..837bf962 100644--- a/integrations/deepseek-harness/scripts/distribution-acceptance.mjs+++ b/integrations/deepseek-harness/scripts/distribution-acceptance.mjs@@ -383,14 +383,37 @@ pass('resource-base', { resourcePath: resourceReal });const skillRoot = fs.existsSync(path.join(resourceReal, 'SKILL.md'))? resourceReal: path.join(resourceReal, 'archify');+// Exercise the installed CLI without writing into the package manager's store.+const installedCli = path.join(skillRoot, 'bin', 'archify.mjs');+for (const args of [['doctor'], ['demo', path.join(workspace, 'installed-smoke')]]) {+ const installedSmoke = run(process.execPath, [installedCli, ...args], {+ cwd: workspace,+ timeout: 120_000,+ });+ requireStatus('installed-skill-smoke', installedSmoke, { command: `installed archify ${args[0]}` });+}+pass('installed-skill-smoke', { skillRoot, commands: ['doctor', 'demo'] });+const sourceSnapshot = path.join(scratch, 'release-source');releaseSnapshot(sourceSnapshot);-const smoke = run(process.execPath, [path.join(sourceSnapshot, 'scripts', 'package-smoke.mjs'), skillRoot], {+// The source's full package smoke rewrites bundled example HTML. pnpm may+// hard-link those files to its content store, and Archify correctly refuses+// to replace a multiply linked output. Copy the installed bytes into an owned+// scratch tree for this mutating suite; keep the actual installation intact.+const smokeRoot = path.join(scratch, 'smoke-skill');+fs.cpSync(skillRoot, smokeRoot, { recursive: true, errorOnExist: true, force: false });+const smoke = run(process.execPath, [path.join(sourceSnapshot, 'scripts', 'package-smoke.mjs'), smokeRoot], {cwd: sourceSnapshot,timeout: 120_000,});-requireStatus('package-smoke', smoke, { command: `${DSH_RELEASE_REF} package-smoke.mjs <installed-skill-root>` });-pass('package-smoke', { skillRoot, source: DSH_RELEASE_REF, output: smoke.stdout.trim() });+requireStatus('package-smoke', smoke, { command: `${DSH_RELEASE_REF} package-smoke.mjs <installed-skill-copy>` });+pass('package-smoke', {+ skillRoot,+ smokeRoot,+ source: DSH_RELEASE_REF,+ mutatingExamples: 'isolated-copy-of-installed-skill',+ output: smoke.stdout.trim(),+});const remove = dsh(['plugin', '--profile', PROFILE, 'remove', PACKAGE_NAME], { timeout: PLUGIN_MUTATION_TIMEOUT });requireStatus('uninstall', remove, { command: `dsh plugin --profile ${PROFILE} remove ${PACKAGE_NAME}` });