Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(dsh): prepare reproducible 0.2.0 adapter with current Skill snapshot (#345)

UNGETSU2ead014aa8ec
diff --git a/.github/workflows/dsh.yml b/.github/workflows/dsh.yml
index 11a2453e..bd8ac380 100644
--- a/.github/workflows/dsh.yml
+++ b/.github/workflows/dsh.yml
@@ -5,11 +5,15 @@ on:
paths:
- 'integrations/deepseek-harness/**'
- '.github/workflows/dsh.yml'
+ - 'scripts/stage-clean-skill.mjs'
+ - 'scripts/third-party-notices-contract.mjs'
push:
branches: [main]
paths:
- 'integrations/deepseek-harness/**'
- '.github/workflows/dsh.yml'
+ - 'scripts/stage-clean-skill.mjs'
+ - 'scripts/third-party-notices-contract.mjs'
tags:
- 'archify-dsh-v*'
schedule:
@@ -79,6 +83,9 @@ jobs:
- uses: pnpm/action-setup@v5
with:
version: 10
+ - name: Adapter staging regressions on the release host
+ run: node --test integrations/deepseek-harness/test/adapter-staging.test.mjs
+ shell: bash
- name: Real DSH distribution acceptance
run: node integrations/deepseek-harness/scripts/distribution-acceptance.mjs
shell: bash
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6442c167..9444e5d8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ All notable changes are documented here. Format loosely follows [Keep a Changelo
> Development identity: `v2.17.0-dev.1`. Not a stable release.
### Fixed
+- **DSH plugin refresh.** Adapter 0.2.0 pins the current Archify development snapshot, includes the newer runtime and CLI fixes, and targets DSH 0.1.2-rc.1. Release metadata replaces the frozen 0.1.0 packaging source; the tarball uses the canonical clean-Skill stager and documents independent plugin upgrades.
- **Machine-readable CLI argument failures (#330).** `validate --json` and `deliver --json` now keep invalid or missing option values, unknown options and diagram types, unsupported option combinations, and usage errors inside one versioned failure receipt on stdout. These failures use the `arguments` stage, stable diagnostic codes, and exit status 2, while human-mode stderr behavior remains unchanged.
- **Complete artifact-check receipts (#311).** The checker now lets stdout drain before exiting, so large JSON receipts remain complete through pipes. Validation, delivery, and architecture comparison retain their original success/failure status without truncated-JSON errors.
- **CLI output file types (#124).** Render, deliver, preview, and compare reject non-HTML artifact targets and compare rejects non-JSON receipt targets, including through symbolic links. Explicit absolute and parent-directory outputs remain supported; internal validation and inspection continue to work.
diff --git a/integrations/deepseek-harness/README.md b/integrations/deepseek-harness/README.md
index 9ea4469e..9f575378 100644
--- a/integrations/deepseek-harness/README.md
+++ b/integrations/deepseek-harness/README.md
@@ -2,11 +2,13 @@
Community DeepSeek Harness integration for [Archify](https://github.com/tt-a1i/archify). This is **not** an official DeepSeek product and does not imply DeepSeek endorsement.
-v0.1.0 is experimental compatibility with developer-preview **`@deepseek-ai/[email protected]`** on Node.js **`^22.19.0 || >=24.0.0`**. It is not a stable cross-version guarantee.
+The currently published npm package is **v0.1.0**, with experimental compatibility for developer-preview **`@deepseek-ai/[email protected]`** on Node.js **`^22.19.0 || >=24.0.0`**. It bundles Archify Skill **2.14.0**. It is not a stable cross-version guarantee.
-The package is a Skill-only bundle: it inserts one filesystem Skill provider named `archify-plugin` and exposes the Archify 2.14 snapshot released with this package. It does not register native render/validate/deliver tools, a custom Web client, Produced Files chips, telemetry, network access, credentials handling, background services, or `prepare` / `install` / `postinstall` hooks.
+The pending **v0.2.0** release is prepared for experimental compatibility with developer-preview **`@deepseek-ai/[email protected]`**. It is not published or available as an npm install yet. It is a Skill-only bundle: it inserts one filesystem Skill provider named `archify-plugin` and exposes an **Archify 2.17.0-dev.1 development snapshot**, pinned to commit `920543baa1c6137803c5b45a69d8977152773d35`. This is not an Archify 2.17 stable release. Compared with the published plugin 0.1.0, it includes authored brand marks, Workflow schema v2, Viewer localization, update awareness, and the subsequent packaging and CLI receipt fixes.
-Release maintenance is immutable: rebuilding `0.1.0` reads its payload from the `archify-dsh-v0.1.0` tag. Later Archify changes, including the embedded update notifier, are intentionally excluded until a separately authorized DSH release receives a new version.
+`release.json` records the immutable Skill source commit, Skill version, and DSH version used by acceptance. Packaging uses the canonical clean-Skill stager against that commit, preserving license notices and excluding development files. Adapter version 0.1.0 and its `archify-dsh-v0.1.0` tag remain unchanged; reproduce that old release by checking out its tag first.
+
+The adapter registers no native render/validate/deliver tools, custom Web client, Produced Files chips, telemetry, credentials handling, background services, or install hooks. The pending v0.2.0 Skill includes an optional, notification-only stable Archify update checker; it never upgrades the plugin. Authored remote brand assets may also use the Skill's bounded network path. The adapter itself makes no network requests.
## Install
@@ -16,6 +18,24 @@ Use the prebuilt npm package with an exact version. Do not install from Git sour
dsh plugin --profile web add @tt-a1i/[email protected]
```
+## Upgrade
+
+Run the same exact-version install command above in each profile that uses Archify. Updating DSH itself or the Archify repository does not update an already installed plugin.
+
+Do **not** use `dsh plugin add tt-a1i/archify`: the repository root is not a DSH package and has no bundle metadata (see [#341](https://github.com/tt-a1i/archify/issues/341)). For an npm download problem, a locally downloaded, integrity-verified `.tgz` can be passed to `dsh plugin --profile web add /absolute/path/to/package.tgz`.
+
+## Release maintenance
+
+On a release branch, bump `package.json`, update `release.json` with the full source commit and matching Skill/DSH versions, and prepare the package README. The pack command reads adapter files and release metadata from the current adapter Git HEAD blob: commit those changes before packing; working-tree edits are not package inputs. Run:
+
+```bash
+node --test integrations/deepseek-harness/test/*.test.mjs
+node integrations/deepseek-harness/scripts/distribution-acceptance.mjs
+node 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.
+
## Invoke
Ask DSH to load Archify by name:
@@ -43,7 +63,7 @@ The standard plugin command removes the adapter dependency and bundle layer. The
## Security posture
-- No telemetry, network client, credentials handling, or background service
+- The adapter has no telemetry, network client, credentials handling, or background service
- No `prepare`, `install`, or `postinstall` scripts
- Host-loaded adapter code does not spawn processes or open a second permission path
- Package resolution, provider load, and composition errors fail during normal DSH boot
diff --git a/integrations/deepseek-harness/package.json b/integrations/deepseek-harness/package.json
index 51a8d214..f5087aa0 100644
--- a/integrations/deepseek-harness/package.json
+++ b/integrations/deepseek-harness/package.json
@@ -1,6 +1,6 @@
{
"name": "@tt-a1i/archify-dsh",
- "version": "0.1.0",
+ "version": "0.2.0",
"description": "Opt-in DeepSeek Harness Skill-only bundle for the Archify architecture-diagram skill.",
"license": "MIT",
"type": "module",
@@ -14,7 +14,8 @@
"cordis.patch.yml",
"skills",
"README.md",
- "LICENSE"
+ "LICENSE",
+ "release.json"
],
"keywords": [
"dsh-plugin",
diff --git a/integrations/deepseek-harness/release.json b/integrations/deepseek-harness/release.json
new file mode 100644
index 00000000..84b7b8d3
--- /dev/null
+++ b/integrations/deepseek-harness/release.json
@@ -0,0 +1,5 @@
+{
+ "sourceCommit": "920543baa1c6137803c5b45a69d8977152773d35",
+ "skillVersion": "2.17.0-dev.1",
+ "dshVersion": "0.1.2-rc.1"
+}
diff --git a/integrations/deepseek-harness/scripts/distribution-acceptance.mjs b/integrations/deepseek-harness/scripts/distribution-acceptance.mjs
index bd83445c..7dd9ed8c 100644
--- a/integrations/deepseek-harness/scripts/distribution-acceptance.mjs
+++ b/integrations/deepseek-harness/scripts/distribution-acceptance.mjs
@@ -6,21 +6,22 @@ import path from 'node:path';
import { fileURLToPath, pathToFileURL } from 'node:url';
import { spawnCli, spawnCliSync } from './resolve-cli.mjs';
import { runWithTransientNetworkRetry } from './transient-retry.mjs';
+import { adapterCommit, manifest, release, releaseSnapshot } from './release-source.mjs';
const here = path.dirname(fileURLToPath(import.meta.url));
const integrationRoot = path.resolve(here, '..');
const repoRoot = path.resolve(integrationRoot, '..', '..');
-const PACKAGE_NAME = '@tt-a1i/archify-dsh';
-const PACKAGE_VERSION = '0.1.0';
-const DSH_RELEASE_REF = 'archify-dsh-v0.1.0';
-const DSH_SPEC = '@deepseek-ai/[email protected]';
+const PACKAGE_NAME = manifest.name;
+const PACKAGE_VERSION = manifest.version;
+const DSH_RELEASE_REF = release.sourceCommit;
+const DSH_SPEC = `@deepseek-ai/dsh@${release.dshVersion}`;
const PROFILE = 'archify-dsh-acceptance';
const DSH_RUNTIME_INSTALL_TIMEOUT = process.platform === 'win32' ? 600_000 : 300_000;
const PLUGIN_MUTATION_TIMEOUT = 180_000;
const receipt = {
ok: false,
- adapter: { name: PACKAGE_NAME, version: PACKAGE_VERSION },
+ adapter: { name: PACKAGE_NAME, version: PACKAGE_VERSION, commit: adapterCommit },
dsh: { spec: DSH_SPEC },
node: process.version,
platform: process.platform,
@@ -132,7 +133,7 @@ function waitForProbe(child, file, timeoutMs) {
}
const scratch = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-dsh-acceptance-'));
-const tarball = path.join(scratch, 'tt-a1i-archify-dsh-0.1.0.tgz');
+const tarball = path.join(scratch, `tt-a1i-archify-dsh-${PACKAGE_VERSION}.tgz`);
const dshHome = path.join(scratch, 'dsh-home');
const agentsHome = path.join(scratch, 'agents-home');
const dshRuntime = path.join(scratch, 'dsh-runtime');
@@ -162,7 +163,9 @@ try {
} catch (error) {
fail('pack', `pack did not emit JSON: ${error.message}\n${pack.stdout}`);
}
-if (packReceipt.name !== PACKAGE_NAME || packReceipt.version !== PACKAGE_VERSION || !fs.existsSync(tarball)) {
+if (packReceipt.name !== PACKAGE_NAME || packReceipt.version !== PACKAGE_VERSION
+ || packReceipt.adapterCommit !== adapterCommit || packReceipt.sourceCommit !== release.sourceCommit
+ || !fs.existsSync(tarball)) {
fail('pack', 'pack receipt identity mismatch', { packReceipt, tarball });
}
pass('pack', { filename: packReceipt.filename, fileCount: packReceipt.files?.length });
@@ -367,14 +370,10 @@ pass('resource-base', { resourcePath: resourceReal });
const skillRoot = fs.existsSync(path.join(resourceReal, 'SKILL.md'))
? resourceReal
: path.join(resourceReal, 'archify');
-const taggedSmoke = run('git', ['show', `${DSH_RELEASE_REF}:scripts/package-smoke.mjs`], {
- cwd: repoRoot,
-});
-requireStatus('package-smoke', taggedSmoke, { command: `git show ${DSH_RELEASE_REF}:scripts/package-smoke.mjs` });
-const taggedSmokePath = path.join(scratch, 'package-smoke-v0.1.0.mjs');
-fs.writeFileSync(taggedSmokePath, taggedSmoke.stdout);
-const smoke = run(process.execPath, [taggedSmokePath, skillRoot], {
- cwd: repoRoot,
+const sourceSnapshot = path.join(scratch, 'release-source');
+releaseSnapshot(sourceSnapshot);
+const smoke = run(process.execPath, [path.join(sourceSnapshot, 'scripts', 'package-smoke.mjs'), skillRoot], {
+ cwd: sourceSnapshot,
timeout: 120_000,
});
requireStatus('package-smoke', smoke, { command: `${DSH_RELEASE_REF} package-smoke.mjs <installed-skill-root>` });
diff --git a/integrations/deepseek-harness/scripts/pack.mjs b/integrations/deepseek-harness/scripts/pack.mjs
index 477bab22..ebfa0a1b 100644
--- a/integrations/deepseek-harness/scripts/pack.mjs
+++ b/integrations/deepseek-harness/scripts/pack.mjs
@@ -3,100 +3,25 @@
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
-import { fileURLToPath } from 'node:url';
import { spawnCliSync } from './resolve-cli.mjs';
-const here = path.dirname(fileURLToPath(import.meta.url));
-const integrationRoot = path.resolve(here, '..');
-const repoRoot = path.resolve(integrationRoot, '..', '..');
-const DSH_RELEASE_REF = 'archify-dsh-v0.1.0';
+import { stageCleanSkill } from '../../../scripts/stage-clean-skill.mjs';
+import { adapterCommit, manifest, release, releaseSnapshot, stageAdapter } from './release-source.mjs';
function argValue(flag) {
const index = process.argv.indexOf(flag);
return index === -1 ? undefined : process.argv[index + 1];
}
-function excludeFromCleanSkill(relative) {
- if (!relative || relative === '.') return false;
- const parts = relative.split(path.sep);
- if (parts.includes('node_modules')) return true;
- if (parts.includes('test')) return true;
- if (parts.includes('.DS_Store')) return true;
- if (parts.includes('.hive')) return true;
- if (parts.includes('.workbuddy')) return true;
- if (parts.some((part) => part.startsWith('.validator-check-'))) return true;
- if (parts.join('/') === 'scripts/generate-brand-marks.mjs') return true;
- if (parts.join('/') === 'scripts/generate-validators.mjs') return true;
- return false;
-}
-
-function releaseSnapshot(destination) {
- const archive = spawnCliSync('git', ['archive', '--format=tar', DSH_RELEASE_REF], {
- cwd: repoRoot,
- encoding: null,
- maxBuffer: 128 * 1024 * 1024,
- });
- if (archive.status !== 0) {
- throw new Error(`unable to read immutable DSH source ${DSH_RELEASE_REF}: ${archive.stderr?.toString('utf8') || archive.error?.message}`);
- }
- const extracted = spawnCliSync('tar', ['-xf', '-', '-C', destination], {
- cwd: repoRoot,
- input: archive.stdout,
- encoding: 'utf8',
- maxBuffer: 16 * 1024 * 1024,
- });
- if (extracted.status !== 0) {
- throw new Error(`unable to extract immutable DSH source ${DSH_RELEASE_REF}: ${extracted.stderr || extracted.error?.message}`);
- }
-}
-
-function regularFiles(root, directory = root) {
- const files = [];
- for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
- const source = path.join(directory, entry.name);
- if (entry.isDirectory()) {
- files.push(...regularFiles(root, source));
- } else if (entry.isFile()) {
- files.push({ source, relative: path.relative(root, source) });
- } else {
- throw new Error(`immutable DSH source contains unsupported entry: ${path.relative(root, source)}`);
- }
- }
- return files;
-}
-
-function stageCleanArchify(sourceRoot, dest) {
- const validators = path.join(sourceRoot, 'renderers/shared/generated-validators.mjs');
- if (!fs.existsSync(validators)) {
- throw new Error(`generated validators are missing from ${DSH_RELEASE_REF}`);
- }
- for (const { source, relative } of regularFiles(sourceRoot)) {
- if (excludeFromCleanSkill(relative)) continue;
- const destination = path.join(dest, relative);
- fs.mkdirSync(path.dirname(destination), { recursive: true });
- fs.copyFileSync(source, destination);
- }
- const packagePath = path.join(dest, 'package.json');
- const pkg = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
- delete pkg.scripts;
- delete pkg.devDependencies;
- fs.writeFileSync(packagePath, `${JSON.stringify(pkg, null, 2)}\n`);
- fs.rmSync(path.join(dest, 'package-lock.json'), { force: true });
-}
-
const json = process.argv.includes('--json');
const out = argValue('--out');
const stage = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-dsh-pack-'));
const snapshot = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-dsh-source-'));
try {
+ stageAdapter(stage);
releaseSnapshot(snapshot);
- const releaseIntegration = path.join(snapshot, 'integrations', 'deepseek-harness');
- stageCleanArchify(path.join(snapshot, 'archify'), path.join(stage, 'skills', 'archify'));
- fs.copyFileSync(path.join(releaseIntegration, 'package.json'), path.join(stage, 'package.json'));
- fs.copyFileSync(path.join(releaseIntegration, 'cordis.patch.yml'), path.join(stage, 'cordis.patch.yml'));
- fs.cpSync(path.join(releaseIntegration, 'lib'), path.join(stage, 'lib'), { recursive: true });
- fs.copyFileSync(path.join(releaseIntegration, 'README.md'), path.join(stage, 'README.md'));
+ stageCleanSkill({ repoRoot: snapshot, destination: path.join(stage, 'skills', 'archify') });
fs.copyFileSync(path.join(snapshot, 'LICENSE'), path.join(stage, 'LICENSE'));
const packed = spawnCliSync('npm', ['pack', '--json', '--pack-destination', stage], {
@@ -133,12 +58,19 @@ try {
throw new Error(`npm pack metadata did not include a file list\n${packed.stdout}`);
}
const files = packMeta.files.map((file) => ({ path: file.path }));
+ const packagedPaths = new Set(files.map(({ path: filePath }) => filePath.replace(/^package\//, '')));
+ for (const required of ['package.json', 'release.json', 'cordis.patch.yml', 'README.md', 'LICENSE', 'lib/index.js', 'skills/archify/SKILL.md']) {
+ if (!packagedPaths.has(required)) throw new Error(`DSH tarball is missing required file: ${required}`);
+ }
const destination = path.resolve(out || path.join(process.cwd(), produced));
fs.mkdirSync(path.dirname(destination), { recursive: true });
fs.copyFileSync(path.join(stage, produced), destination);
const result = {
name: packMeta.name || '@tt-a1i/archify-dsh',
- version: packMeta.version || '0.1.0',
+ version: packMeta.version || manifest.version,
+ adapterCommit,
+ sourceCommit: release.sourceCommit,
+ skillVersion: release.skillVersion,
filename: path.basename(destination),
destination,
files,
diff --git a/integrations/deepseek-harness/scripts/release-source.mjs b/integrations/deepseek-harness/scripts/release-source.mjs
new file mode 100644
index 00000000..9d80880c
--- /dev/null
+++ b/integrations/deepseek-harness/scripts/release-source.mjs
@@ -0,0 +1,91 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+import { spawnCliSync } from './resolve-cli.mjs';
+
+export const integrationRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+export const repoRoot = path.resolve(integrationRoot, '..', '..');
+const adapterPrefix = 'integrations/deepseek-harness/';
+const requiredAdapterFiles = ['package.json', 'release.json', 'cordis.patch.yml', 'README.md', 'lib/index.js'];
+
+function readGit(args) {
+ const result = spawnCliSync('git', args, { cwd: repoRoot, encoding: null, maxBuffer: 128 * 1024 * 1024 });
+ if (result.error || result.status !== 0) {
+ throw new Error(`unable to read committed DSH adapter source: ${result.stderr?.toString('utf8') || result.error?.message}`);
+ }
+ return result.stdout;
+}
+
+export const adapterCommit = readGit(['rev-parse', '--verify', 'HEAD']).toString('utf8').trim();
+const adapterEntries = new TextDecoder('utf-8', { fatal: true })
+ .decode(readGit(['ls-tree', '-r', '-z', adapterCommit, '--', adapterPrefix]))
+ .split('\0').filter(Boolean).map((record) => {
+ const separator = record.indexOf('\t');
+ const [mode, type, objectId] = record.slice(0, separator).split(' ');
+ return { mode, type, objectId, relative: record.slice(separator + 1).slice(adapterPrefix.length) };
+ }).filter(({ relative }) => requiredAdapterFiles.includes(relative) || relative.startsWith('lib/'));
+
+for (const relative of requiredAdapterFiles) {
+ if (!adapterEntries.some((entry) => entry.relative === relative)) {
+ throw new Error(`required committed DSH adapter input is missing: ${relative}`);
+ }
+}
+
+// Capture Git blobs, not working-tree paths: local edits and symlink swaps cannot
+// change the package identified by adapterCommit.
+const portablePaths = new Map();
+const adapterFiles = new Map(adapterEntries.map((entry) => {
+ const segments = entry.relative.split('/');
+ for (const [index, segment] of segments.entries()) {
+ if (!segment || /[\\:\x00-\x1f<>"|?*]/.test(segment) || /[. ]$/.test(segment)
+ || /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(segment)) {
+ throw new Error(`DSH adapter input has an unsupported path: ${entry.relative}`);
+ }
+ const prefix = segments.slice(0, index + 1).join('/');
+ const key = prefix.normalize('NFC').toLowerCase();
+ if (portablePaths.has(key) && portablePaths.get(key) !== prefix) {
+ throw new Error(`DSH adapter paths collide across supported filesystems: ${portablePaths.get(key)} and ${prefix}`);
+ }
+ portablePaths.set(key, prefix);
+ }
+ if (entry.mode === '120000') {
+ throw new Error(`refusing to package committed DSH adapter symlink: ${entry.relative}`);
+ }
+ if (entry.type !== 'blob' || !['100644', '100755'].includes(entry.mode)) {
+ throw new Error(`DSH adapter input must be a regular Git file: ${entry.relative} (${entry.mode})`);
+ }
+ return [entry.relative, { ...entry, content: readGit(['cat-file', 'blob', entry.objectId]) }];
+}));
+
+export const manifest = JSON.parse(adapterFiles.get('package.json').content.toString('utf8'));
+export const release = JSON.parse(adapterFiles.get('release.json').content.toString('utf8'));
+
+export function stageAdapter(destination) {
+ for (const [relative, entry] of adapterFiles) {
+ const target = path.join(destination, ...relative.split('/'));
+ fs.mkdirSync(path.dirname(target), { recursive: true });
+ fs.writeFileSync(target, entry.content, { mode: entry.mode === '100755' ? 0o755 : 0o644 });
+ }
+}
+
+if (!/^[a-f0-9]{40}$/.test(release.sourceCommit)) {
+ throw new Error('DSH release sourceCommit must be a full immutable Git commit');
+}
+
+export function releaseSnapshot(destination) {
+ // A separate checkout gives the canonical stager a real index, preserves Git
+ // modes, and cannot include uncommitted or untracked files from the caller.
+ for (const args of [
+ ['clone', '--shared', '--no-checkout', '--', repoRoot, destination],
+ ['-C', destination, '-c', 'core.autocrlf=false', 'checkout', '--detach', release.sourceCommit],
+ ]) {
+ const result = spawnCliSync('git', args, { cwd: repoRoot, encoding: 'utf8' });
+ if (result.error || result.status !== 0) {
+ throw new Error(`unable to read DSH source ${release.sourceCommit}: ${result.stderr || result.error?.message}`);
+ }
+ }
+ const skill = JSON.parse(fs.readFileSync(path.join(destination, 'archify', 'package.json'), 'utf8'));
+ if (skill.version !== release.skillVersion) {
+ throw new Error(`DSH Skill version mismatch: ${skill.version} != ${release.skillVersion}`);
+ }
+}
diff --git a/integrations/deepseek-harness/scripts/resolve-cli.mjs b/integrations/deepseek-harness/scripts/resolve-cli.mjs
index 0dce377e..6d954991 100644
--- a/integrations/deepseek-harness/scripts/resolve-cli.mjs
+++ b/integrations/deepseek-harness/scripts/resolve-cli.mjs
@@ -36,6 +36,22 @@ function nodeCliPath(command, {
export function resolveCliInvocation(command, args = [], options = {}) {
const platform = options.platform || process.platform;
+ if (platform === 'win32' && command === 'pnpm') {
+ const env = options.env || process.env;
+ const existsSync = options.existsSync || fs.existsSync;
+ const execPath = options.execPath || process.execPath;
+ const roots = [path.win32.dirname(execPath), env.PNPM_HOME,
+ ...(env.PATH || env.Path || env.path || '').split(';')].filter(Boolean);
+ // action-setup and npm-global installs expose pnpm.cmd, which cannot be
+ // spawned directly without a shell. Launch its JS entry with Node instead.
+ const candidates = roots.flatMap((root) => [
+ path.win32.join(root, '..', 'pnpm', 'bin', 'pnpm.cjs'),
+ path.win32.join(root, 'node_modules', 'pnpm', 'bin', 'pnpm.cjs'),
+ ]);
+ const cliPath = candidates.find((candidate) => existsSync(candidate));
+ if (cliPath) return { command: execPath, args: [cliPath, ...args] };
+ // Standalone pnpm distributions still provide a native pnpm.exe.
+ }
if (platform === 'win32' && command === 'tar') {
const env = options.env || process.env;
const existsSync = options.existsSync || fs.existsSync;
diff --git a/integrations/deepseek-harness/test/adapter-staging.test.mjs b/integrations/deepseek-harness/test/adapter-staging.test.mjs
new file mode 100644
index 00000000..e9d58be8
--- /dev/null
+++ b/integrations/deepseek-harness/test/adapter-staging.test.mjs
@@ -0,0 +1,226 @@
+import assert from 'node:assert/strict';
+import { spawnSync } from 'node:child_process';
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import test from 'node:test';
+import { fileURLToPath } from 'node:url';
+import { spawnCliSync } from '../scripts/resolve-cli.mjs';
+
+const here = path.dirname(fileURLToPath(import.meta.url));
+const integrationRoot = path.resolve(here, '..');
+const repoRoot = path.resolve(integrationRoot, '..', '..');
+
+function git(cwd, args, options = {}) {
+ const result = spawnSync('git', args, {
+ cwd,
+ encoding: 'utf8',
+ ...options,
+ });
+ assert.equal(result.error, undefined, result.error?.message);
+ assert.equal(result.status, 0, result.stderr || result.stdout);
+ return result.stdout.trim();
+}
+
+function fixture() {
+ const root = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-dsh-pack-fixture-'));
+ const checkout = path.join(root, 'repo');
+ const head = git(repoRoot, ['rev-parse', 'HEAD']);
+ const clone = spawnSync('git', ['clone', '--shared', '--no-checkout', '--', repoRoot, checkout], {
+ cwd: repoRoot,
+ encoding: 'utf8',
+ });
+ assert.equal(clone.status, 0, clone.stderr || clone.stdout);
+ git(checkout, ['checkout', '--detach', head]);
+ return { root, checkout, head };
+}
+
+function adapterPath(checkout, relative) {
+ return path.join(checkout, 'integrations', 'deepseek-harness', ...relative.split('/'));
+}
+
+function headBlob(checkout, head, relative) {
+ const result = spawnSync('git', ['show', `${head}:integrations/deepseek-harness/${relative}`], {
+ cwd: checkout,
+ encoding: 'buffer',
+ });
+ assert.equal(result.status, 0, result.stderr?.toString('utf8'));
+ return result.stdout;
+}
+
+function pack(checkout, root) {
+ const out = path.join(root, 'packed.tgz');
+ const script = path.join(checkout, 'integrations', 'deepseek-harness', 'scripts', 'pack.mjs');
+ const result = spawnSync(process.execPath, [script, '--out', out, '--json'], {
+ cwd: checkout,
+ encoding: 'utf8',
+ });
+ return { out, result };
+}
+
+function unpack(tarball, root) {
+ const destination = path.join(root, 'unpacked');
+ fs.mkdirSync(destination);
+ const result = spawnCliSync('tar', ['-xzf', path.basename(tarball), '-C', destination], {
+ cwd: path.dirname(tarball),
+ encoding: 'utf8',
+ });
+ assert.equal(result.status, 0, result.stderr || result.stdout);
+ return path.join(destination, 'package');
+}
+
+function commitFixture(checkout, message, { stage = true } = {}) {
+ git(checkout, ['config', 'user.email', '[email protected]']);
+ git(checkout, ['config', 'user.name', 'Archify tests']);
+ if (stage) git(checkout, ['add', '-A', '--', 'integrations/deepseek-harness']);
+ git(checkout, ['commit', '--no-gpg-sign', '-m', message]);
+}
+
+test('pack stages adapter inputs from the fixture HEAD despite dirty and untracked files', () => {
+ const { root, checkout, head } = fixture();
+ try {
+ const dirtyMarker = 'ARCHIFY_DSH_DIRTY_FIXTURE_MARKER';
+ const manifestPath = adapterPath(checkout, 'package.json');
+ const releasePath = adapterPath(checkout, 'release.json');
+ const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
+ const release = JSON.parse(fs.readFileSync(releasePath, 'utf8'));
+ manifest.description = dirtyMarker;
+ release.skillVersion = `${release.skillVersion}-dirty`;
+ fs.writeFileSync(manifestPath, `${JSON.stringify(manifest, null, 2)}\n`);
+ fs.writeFileSync(releasePath, `${JSON.stringify(release, null, 2)}\n`);
+ fs.appendFileSync(adapterPath(checkout, 'cordis.patch.yml'), `\n# ${dirtyMarker}\n`);
+ fs.appendFileSync(adapterPath(checkout, 'README.md'), `\n${dirtyMarker}\n`);
+ fs.writeFileSync(adapterPath(checkout, 'lib/index.js'), `// ${dirtyMarker}\n`);
+ fs.writeFileSync(adapterPath(checkout, 'lib/untracked-dirty.mjs'), dirtyMarker);
+
+ const { out, result } = pack(checkout, root);
+ assert.equal(result.status, 0, result.stderr || result.stdout);
+ const receipt = JSON.parse(result.stdout);
+ assert.equal(receipt.adapterCommit, head);
+ assert.equal(fs.existsSync(out), true);
+
+ const packageRoot = unpack(out, root);
+ for (const relative of ['package.json', 'release.json', 'cordis.patch.yml', 'README.md', 'lib/index.js']) {
+ assert.deepEqual(
+ fs.readFileSync(path.join(packageRoot, ...relative.split('/'))),
+ headBlob(checkout, head, relative),
+ `packed adapter input differs from fixture HEAD: ${relative}`,
+ );
+ }
+ assert.equal(fs.existsSync(path.join(packageRoot, 'lib', 'untracked-dirty.mjs')), false);
+ const packedText = fs.readFileSync(path.join(packageRoot, 'package.json'), 'utf8')
+ + fs.readFileSync(path.join(packageRoot, 'release.json'), 'utf8')
+ + fs.readFileSync(path.join(packageRoot, 'cordis.patch.yml'), 'utf8')
+ + fs.readFileSync(path.join(packageRoot, 'README.md'), 'utf8')
+ + fs.readFileSync(path.join(packageRoot, 'lib', 'index.js'), 'utf8');
+ assert.equal(packedText.includes(dirtyMarker), false);
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+});
+
+test('pack does not follow a live symlink replacing the tracked adapter main', (t) => {
+ const { root, checkout, head } = fixture();
+ try {
+ const mainPath = adapterPath(checkout, 'lib/index.js');
+ const outside = path.join(root, 'outside-main.js');
+ const marker = 'ARCHIFY_DSH_LIVE_SYMLINK_MARKER';
+ fs.writeFileSync(outside, `// ${marker}\n`);
+ fs.rmSync(mainPath);
+ try {
+ fs.symlinkSync(outside, mainPath);
+ } catch (error) {
+ if (process.platform === 'win32' && ['EPERM', 'EACCES'].includes(error?.code)) {
+ t.skip(`live symlink fixture requires Windows symlink permission (${error.code})`);
+ return;
+ }
+ throw error;
+ }
+
+ const { out, result } = pack(checkout, root);
+ assert.equal(result.status, 0, result.stderr || result.stdout);
+ const receipt = JSON.parse(result.stdout);
+ assert.equal(receipt.adapterCommit, head);
+ const packageRoot = unpack(out, root);
+ const packedMain = path.join(packageRoot, 'lib', 'index.js');
+ assert.equal(fs.lstatSync(packedMain).isFile(), true);
+ assert.deepEqual(fs.readFileSync(packedMain), headBlob(checkout, head, 'lib/index.js'));
+ assert.doesNotMatch(fs.readFileSync(packedMain, 'utf8'), new RegExp(marker));
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+});
+
+test('pack rejects a committed adapter symlink and leaves no target tarball', () => {
+ const { root, checkout } = fixture();
+ try {
+ const mainRelative = 'integrations/deepseek-harness/lib/index.js';
+ const target = '/outside/archify-dsh-live-main.js';
+ const blob = git(checkout, ['hash-object', '-w', '--stdin'], { input: `${target}\n` });
+ git(checkout, ['update-index', '--add', '--cacheinfo', `120000,${blob},${mainRelative}`]);
+ commitFixture(checkout, 'test: commit adapter symlink', { stage: false });
+ assert.match(git(checkout, ['ls-tree', 'HEAD', '--', mainRelative]), /^120000 blob /);
+
+ const { out, result } = pack(checkout, root);
+ assert.notEqual(result.status, 0);
+ assert.match(`${result.stderr}\n${result.stdout}`, /symlink/i);
+ assert.equal(fs.existsSync(out), false);
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+});
+
+test('pack rejects a missing required adapter main and leaves no target tarball', () => {
+ const { root, checkout } = fixture();
+ try {
+ fs.rmSync(adapterPath(checkout, 'lib/index.js'));
+ commitFixture(checkout, 'test: remove adapter main');
+
+ const { out, result } = pack(checkout, root);
+ assert.notEqual(result.status, 0);
+ assert.match(`${result.stderr}\n${result.stdout}`, /lib[\\/]index\.js|main|required/i);
+ assert.equal(fs.existsSync(out), false);
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+});
+
+test('pack rejects a committed reserved device-name path and leaves no target tarball', () => {
+ const { root, checkout } = fixture();
+ try {
+ // This models a tree created on Linux; keep NTFS protection disabled only
+ // in the disposable clone so Git can represent the hostile path on Windows.
+ git(checkout, ['config', 'core.protectNTFS', 'false']);
+ const invalidRelative = 'integrations/deepseek-harness/lib/NUL.js';
+ const blob = git(checkout, ['hash-object', '-w', '--stdin'], { input: 'reserved-name fixture\n' });
+ git(checkout, ['update-index', '--add', '--cacheinfo', `100644,${blob},${invalidRelative}`]);
+ commitFixture(checkout, 'test: commit reserved adapter path', { stage: false });
+ assert.match(git(checkout, ['ls-tree', 'HEAD', '--', invalidRelative]), /^100644 blob /);
+
+ const { out, result } = pack(checkout, root);
+ assert.notEqual(result.status, 0);
+ assert.match(`${result.stderr}\n${result.stdout}`, /unsupported path|NUL\.js/i);
+ assert.equal(fs.existsSync(out), false);
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+});
+
+test('pack rejects committed adapter paths that collide by case and leaves no target tarball', () => {
+ const { root, checkout } = fixture();
+ try {
+ const collisionRelative = 'integrations/deepseek-harness/lib/INDEX.js';
+ const blob = git(checkout, ['hash-object', '-w', '--stdin'], { input: 'case collision fixture\n' });
+ git(checkout, ['update-index', '--add', '--cacheinfo', `100644,${blob},${collisionRelative}`]);
+ commitFixture(checkout, 'test: commit case-colliding adapter path', { stage: false });
+ assert.match(git(checkout, ['ls-tree', 'HEAD', '--', collisionRelative]), /^100644 blob /);
+ assert.match(git(checkout, ['ls-tree', 'HEAD', '--', 'integrations/deepseek-harness/lib/index.js']), /^100644 blob /);
+
+ const { out, result } = pack(checkout, root);
+ assert.notEqual(result.status, 0);
+ assert.match(`${result.stderr}\n${result.stdout}`, /collide across supported filesystems|INDEX\.js|index\.js/i);
+ assert.equal(fs.existsSync(out), false);
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+});
diff --git a/integrations/deepseek-harness/test/docs-contract.test.mjs b/integrations/deepseek-harness/test/docs-contract.test.mjs
index a878c3b4..07fc3778 100644
--- a/integrations/deepseek-harness/test/docs-contract.test.mjs
+++ b/integrations/deepseek-harness/test/docs-contract.test.mjs
@@ -11,26 +11,56 @@ function read(relativePath) {
return fs.readFileSync(path.join(repoRoot, relativePath), 'utf8');
}
+const manifest = JSON.parse(read('integrations/deepseek-harness/package.json'));
+const release = JSON.parse(read('integrations/deepseek-harness/release.json'));
+const published = Object.freeze({
+ adapterVersion: '0.1.0',
+ skillVersion: '2.14.0',
+ dshVersion: '0.1.0-rc.6',
+});
+const candidate = Object.freeze({
+ adapterVersion: manifest.version,
+ skillVersion: release.skillVersion,
+ dshVersion: release.dshVersion,
+ sourceCommit: release.sourceCommit,
+});
+
test('README.md and README_EN.md stay byte-identical after the DSH docs', () => {
assert.equal(read('README.md'), read('README_EN.md'));
});
-test('DSH 0.1.0 documentation keeps its released Skill snapshot immutable', () => {
+test('DSH documentation identifies the published release and pinned candidate snapshot', () => {
const integration = read('integrations/deepseek-harness/README.md');
- assert.match(integration, /Archify 2\.14 snapshot/);
- assert.match(integration, /archify-dsh-v0\.1\.0/);
- assert.match(integration, /update notifier[\s\S]*intentionally excluded/);
+ assert.ok(integration.includes(`currently published npm package is **v${published.adapterVersion}**`));
+ assert.ok(integration.includes(`@deepseek-ai/dsh@${published.dshVersion}`));
+ assert.ok(integration.includes(`Archify Skill **${published.skillVersion}**`));
+ assert.ok(integration.includes(`pending **v${candidate.adapterVersion}** release`));
+ assert.ok(integration.includes(`Archify ${candidate.skillVersion}`));
+ assert.ok(integration.includes(candidate.sourceCommit));
+ assert.ok(integration.includes(`@deepseek-ai/dsh@${candidate.dshVersion}`));
+ assert.match(integration, /not published or available as an npm install yet/);
+ assert.match(integration, /not an Archify 2\.17 stable release/);
+ assert.match(integration, /notification-only/);
+ assert.match(integration, /does not update an already installed plugin/);
+ assert.match(integration, /repository root is not a DSH package/);
+ assert.match(integration, /current adapter Git HEAD blob/);
+ assert.match(integration, /working-tree edits are not package inputs/);
});
test('English and Chinese docs cover install, invoke, uninstall, community wording, and Produced Files', () => {
- const english = [read('README.md'), read('integrations/deepseek-harness/README.md')].join('\n');
- const chinese = [read('README_ZH.md'), read('integrations/deepseek-harness/README.md')].join('\n');
+ const englishRoot = read('README.md');
+ const chineseRoot = read('README_ZH.md');
+ const integration = read('integrations/deepseek-harness/README.md');
+ const english = [englishRoot, integration].join('\n');
+ const chinese = [chineseRoot, integration].join('\n');
+ const publishedInstall = `dsh plugin --profile web add @tt-a1i/archify-dsh@${published.adapterVersion}`;
+ const candidateInstall = `dsh plugin --profile web add @tt-a1i/archify-dsh@${candidate.adapterVersion}`;
- for (const source of [english, chinese, read('README.md'), read('README_ZH.md')]) {
- assert.match(source, /@tt-a1i\/archify-dsh@0\.1\.0/);
- assert.match(source, /@deepseek-ai\/dsh@0\.1\.0-rc\.6/);
- assert.match(source.replaceAll('\\|', '|'), /\^22\.19\.0 \|\| >=24\.0\.0/);
- assert.match(source, /dsh plugin --profile web add @tt-a1i\/archify-dsh@0\.1\.0/);
+ for (const source of [english, chinese, englishRoot, chineseRoot]) {
+ assert.ok(source.includes(publishedInstall));
+ assert.ok(!source.includes(candidateInstall));
+ assert.ok(source.includes(`@deepseek-ai/dsh@${published.dshVersion}`));
+ assert.ok(source.replaceAll('\\|', '|').includes(manifest.engines.node));
assert.match(source, /dsh plugin --profile web remove @tt-a1i\/archify-dsh/);
assert.match(source, /Use the archify skill to map this repository's runtime architecture/);
assert.doesNotMatch(source, /dsh plugin[^\n]*github:tt-a1i\/archify/);
diff --git a/integrations/deepseek-harness/test/package-contract.test.mjs b/integrations/deepseek-harness/test/package-contract.test.mjs
index 938d5943..f90b61c9 100644
--- a/integrations/deepseek-harness/test/package-contract.test.mjs
+++ b/integrations/deepseek-harness/test/package-contract.test.mjs
@@ -26,10 +26,10 @@ test('adapter source lives only under integrations/deepseek-harness with no root
assert.equal(fs.existsSync(path.join(repoRoot, 'integrations/deepseek-harness/package.json')), true);
});
-test('publishable manifest is @tt-a1i/[email protected] with a DSH bundle patch and no install surface', () => {
+test('publishable manifest is @tt-a1i/[email protected] with a DSH bundle patch and no install surface', () => {
const pkg = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
assert.equal(pkg.name, '@tt-a1i/archify-dsh');
- assert.equal(pkg.version, '0.1.0');
+ assert.equal(pkg.version, '0.2.0');
assert.equal(pkg.license, 'MIT');
assert.equal(pkg.type, 'module');
assert.equal(pkg.main, './lib/index.js');
diff --git a/integrations/deepseek-harness/test/resolve-cli.test.mjs b/integrations/deepseek-harness/test/resolve-cli.test.mjs
index 605ce550..8a48fbfa 100644
--- a/integrations/deepseek-harness/test/resolve-cli.test.mjs
+++ b/integrations/deepseek-harness/test/resolve-cli.test.mjs
@@ -41,6 +41,23 @@ test('Windows tar uses the system bsdtar instead of a Git for Windows PATH shado
assert.deepEqual(invocation, { command: systemTar, args: ['-tf', 'archive.tgz'] });
});
+test('Windows pnpm action-setup and npm-global shims launch JS without shell parsing', () => {
+ const execPath = 'C:\\node\\node.exe';
+ const args = ['add', 'C:\\workspace with spaces\\plugin.tgz'];
+ for (const [root, cliPath] of [
+ ['C:\\setup-pnpm\\node_modules\\.bin', 'C:\\setup-pnpm\\node_modules\\pnpm\\bin\\pnpm.cjs'],
+ ['C:\\npm-global', 'C:\\npm-global\\node_modules\\pnpm\\bin\\pnpm.cjs'],
+ ]) {
+ assert.deepEqual(resolveCliInvocation('pnpm', args, {
+ platform: 'win32', execPath, env: { Path: root },
+ existsSync: (candidate) => candidate === cliPath,
+ }), { command: execPath, args: [cliPath, ...args] });
+ }
+ assert.deepEqual(resolveCliInvocation('pnpm', args, {
+ platform: 'win32', execPath, env: {}, existsSync: () => false,
+ }), { command: 'pnpm.exe', args });
+});
+
test('resolved npm invocation can actually be spawned', () => {
const invocation = resolveCliInvocation('npm', ['--version']);
const result = spawnSync(invocation.command, invocation.args, { encoding: 'utf8' });
diff --git a/integrations/deepseek-harness/test/tarball-contract.test.mjs b/integrations/deepseek-harness/test/tarball-contract.test.mjs
index 70996010..3399e60f 100644
--- a/integrations/deepseek-harness/test/tarball-contract.test.mjs
+++ b/integrations/deepseek-harness/test/tarball-contract.test.mjs
@@ -10,7 +10,8 @@ const here = path.dirname(fileURLToPath(import.meta.url));
const integrationRoot = path.resolve(here, '..');
const repoRoot = path.resolve(integrationRoot, '..', '..');
const packScript = path.join(integrationRoot, 'scripts', 'pack.mjs');
-const DSH_RELEASE_REF = 'archify-dsh-v0.1.0';
+const release = JSON.parse(fs.readFileSync(path.join(integrationRoot, 'release.json'), 'utf8'));
+const DSH_RELEASE_REF = release.sourceCommit;
const FORBIDDEN = [
'/test/',
@@ -26,7 +27,7 @@ const FORBIDDEN = [
function packTarball() {
const scratch = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-dsh-tarball-'));
- const out = path.join(scratch, 'tt-a1i-archify-dsh-0.1.0.tgz');
+ const out = path.join(scratch, 'tt-a1i-archify-dsh-0.2.0.tgz');
const result = spawnSync(process.execPath, [packScript, '--out', out, '--json'], {
cwd: repoRoot,
encoding: 'utf8',
@@ -40,7 +41,7 @@ test('pack command emits a real npm tarball with the expected identity and file
assert.equal(result.status, 0, result.stderr || result.stdout);
const receipt = JSON.parse(result.stdout);
assert.equal(receipt.name, '@tt-a1i/archify-dsh');
- assert.equal(receipt.version, '0.1.0');
+ assert.equal(receipt.version, '0.2.0');
assert.equal(fs.existsSync(out), true);
const files = receipt.files.map((file) => file.path.replace(/^package\//, ''));
for (const required of [
@@ -51,6 +52,9 @@ test('pack command emits a real npm tarball with the expected identity and file
'LICENSE',
'skills/archify/SKILL.md',
'skills/archify/bin/archify.mjs',
+ 'skills/archify/LICENSE',
+ 'skills/archify/THIRD_PARTY_NOTICES.md',
+ 'release.json',
]) {
assert.ok(files.includes(required), `tarball missing ${required}`);
}
@@ -61,7 +65,7 @@ test('pack command emits a real npm tarball with the expected identity and file
'skills/archify/scripts/check-update.mjs',
'skills/archify/scripts/update-contract.mjs',
]) {
- assert.equal(files.includes(notifierFile), false, `DSH 0.1.0 must not contain ${notifierFile}`);
+ assert.equal(files.includes(notifierFile), true, `DSH 0.2.0 must contain ${notifierFile}`);
}
for (const file of files) {
for (const forbidden of FORBIDDEN) {
@@ -74,7 +78,7 @@ test('pack command emits a real npm tarball with the expected identity and file
}
});
-test('packed Skill payload remains byte-identical to the DSH 0.1.0 release tag', () => {
+test('packed Skill payload remains byte-identical to the declared immutable source commit', () => {
const { scratch, out, result } = packTarball();
try {
assert.equal(result.status, 0, result.stderr || result.stdout);
@@ -87,6 +91,7 @@ test('packed Skill payload remains byte-identical to the DSH 0.1.0 release tag',
});
assert.equal(tar.status, 0, tar.stderr);
const skillRoot = path.join(packedRoot, 'package', 'skills', 'archify');
+ assert.deepEqual(JSON.parse(fs.readFileSync(path.join(packedRoot, 'package', 'release.json'), 'utf8')), release);
const skillFiles = receipt.files
.map((file) => file.path.replace(/^package\//, ''))
.filter((file) => file.startsWith('skills/archify/'))
@@ -108,8 +113,8 @@ test('packed Skill payload remains byte-identical to the DSH 0.1.0 release tag',
);
}
const skillPackage = JSON.parse(fs.readFileSync(path.join(skillRoot, 'package.json'), 'utf8'));
- assert.equal(skillPackage.version, '2.14.0');
- assert.doesNotMatch(fs.readFileSync(path.join(skillRoot, 'SKILL.md'), 'utf8'), /## Update awareness/);
+ assert.equal(skillPackage.version, release.skillVersion);
+ assert.match(fs.readFileSync(path.join(skillRoot, 'SKILL.md'), 'utf8'), /## Update awareness/);
} finally {
fs.rmSync(scratch, { recursive: true, force: true });
}