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
test: move repository suites out of installable skill
tt-a1ic110bdd270b8
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 2e4f1bbe..ca7cd56d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -31,7 +31,7 @@ jobs:CI_BASE_SHA: ${{ github.event.pull_request.base.sha }}- name: Check README content for documentation-only changesif: steps.classify.outputs.scope == 'docs'- run: node --test archify/test/readme-showcase.test.mjs+ run: node --test test/readme-showcase.test.mjstest:needs: scope@@ -57,15 +57,15 @@ jobs:with:node-version: ${{ matrix.node-version }}cache: npm- cache-dependency-path: archify/package-lock.json+ cache-dependency-path: |+ package-lock.json+ archify/package-lock.json- name: Install renderer dependenciesif: needs.scope.outputs.scope == 'full'- run: npm ci- working-directory: archify+ run: npm ci && npm --prefix archify ci- name: Golden-file + schema testsif: needs.scope.outputs.scope == 'full'run: npm test- working-directory: archify- name: Verify community Hermes adapterif: needs.scope.outputs.scope == 'full' && matrix.node-version == 22run: node --test integrations/hermes-agent/test/plugin-contract.test.mjs@@ -103,17 +103,14 @@ jobs:- name: Decode a real motion export and reject static framesif: needs.scope.outputs.scope == 'full'run: npm run test:webm- working-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}- name: Install browser test dependenciesif: needs.scope.outputs.scope == 'full'- run: npm ci --ignore-scripts --no-audit --no-fund- working-directory: archify+ run: npm ci --ignore-scripts --no-audit --no-fund && npm --prefix archify ci --ignore-scripts- name: Run shared browser regression gateif: needs.scope.outputs.scope == 'full'run: npm run test:browser- working-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}ARCHIFY_CHROME_NO_SANDBOX: '1'@@ -261,22 +258,19 @@ jobs:run: node scripts/package-smoke.mjs- name: Install delivery-lock test dependenciesif: needs.scope.outputs.scope == 'full' && runner.os != 'Linux'- run: npm ci --ignore-scripts- working-directory: archify+ run: npm ci --ignore-scripts && npm --prefix archify ci --ignore-scripts- name: Verify delivery-lock ownership with real subprocessesif: needs.scope.outputs.scope == 'full' && runner.os != 'Linux'run: >-node --test--test-name-pattern="cli: portable delivery lock:"test/cli.test.mjs- working-directory: archify- name: Verify macOS opener stays behind delivery-lock releaseif: needs.scope.outputs.scope == 'full' && runner.os == 'macOS'run: >-node --test--test-name-pattern="cli: lock release failure does not invoke the requested opener"test/cli.test.mjs- working-directory: archifywebsite:needs: scope@@ -341,8 +335,7 @@ jobs:node-version: ${{ matrix.node-version }}- name: Install test dependenciesif: needs.scope.outputs.scope == 'full'- run: npm ci --ignore-scripts- working-directory: archify+ run: npm ci --ignore-scripts && npm --prefix archify ci --ignore-scripts- name: Provision controlled Windows path fixturesif: needs.scope.outputs.scope == 'full'shell: pwshdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex a58a474a..77eb726f 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -21,8 +21,7 @@ jobs:with:node-version: ${{ matrix.node-version }}- name: Install test dependencies- run: npm ci --ignore-scripts- working-directory: archify+ run: npm ci --ignore-scripts && npm --prefix archify ci --ignore-scripts- name: Provision controlled Windows path fixturesshell: pwshrun: scripts/windows-path-fixtures.ps1 -NodeVersion '${{ matrix.node-version }}'@@ -48,13 +47,13 @@ jobs:with:node-version: 22cache: npm- cache-dependency-path: archify/package-lock.json+ cache-dependency-path: |+ package-lock.json+ archify/package-lock.json- name: Install renderer dependencies- run: npm ci- working-directory: archify+ run: npm ci && npm --prefix archify ci- name: Tests must pass before releasingrun: npm test- working-directory: archify- name: Provision a known Chrome runtimeid: setup-chromeuses: browser-actions/setup-chrome@48ad923757ca74d66703209fe939badbdf80f2f4 # v2.2.0@@ -65,12 +64,10 @@ jobs:run: sudo apt-get update && sudo apt-get install --no-install-recommends -y ffmpeg- name: WebM export must contain distinct decoded framesrun: npm run test:webm- working-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}- name: Run shared browser regression gaterun: npm run test:browser- working-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}ARCHIFY_CHROME_NO_SANDBOX: '1'diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex fb5126c2..ea8d1a95 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -37,7 +37,7 @@ Use [the PR template](.github/PULL_REQUEST_TEMPLATE.md); link existing receiptsSkill instructions, authored examples, build inputs, and generated-site sources are behavioral inputs even when they look like documentation. Policy changes need process review; runtime evidence depends on whether they affect runtime inputs.-Start with focused checks for the affected behavior. Use the full `npm test` suite from `archify/` when shared behavior, broad changes, or findings require wider coverage. Final review needs sufficient evidence for the impact above; relevant CI results can supply that coverage without repeating the same run locally. Identify the revision and coverage of reused results, and explain material gaps. Required remote CI and branch protection still apply.+Start with focused checks for the affected behavior. Use the full `npm test` suite from the repository root when shared behavior, broad changes, or findings require wider coverage. Final review needs sufficient evidence for the impact above; relevant CI results can supply that coverage without repeating the same run locally. Identify the revision and coverage of reused results, and explain material gaps. Required remote CI and branch protection still apply.### Documentation-only CI@@ -56,11 +56,11 @@ Any other changed path (including tests, Skill instructions, templates, generate## Local setup and verification-The renderer package is in `archify/`; its Node range and commands are defined in `archify/package.json`.+The renderer package is in `archify/`; repository tests and their dependencies live at the root. Install both dependency sets before running tests. The supported Node range is defined in both package manifests.```sh-cd archifynpm ci+npm --prefix archify cinpm test```@@ -73,7 +73,6 @@ A visual PR must provide enough evidence to evaluate whether the intended user vStatic SVG/XML checks cannot establish browser layout, font settling, or interaction behavior. When the adaptive reader or Viewer layout changes, run the real browser test with Chrome available:```sh-cd archifyARCHIFY_CHROME="/path/to/chrome" node --test test/desktop-reader-browser.test.mjs```@@ -82,7 +81,6 @@ A browser test skipped because Chrome was unavailable is **skipped**, not passedPR CI and tag releases run the same browser regression gate:```sh-cd archifyARCHIFY_CHROME="/path/to/chrome" npm run test:browser```diff --git a/archify/package-lock.json b/archify/package-lock.jsonindex 3335363d..77915e08 100644--- a/archify/package-lock.json+++ b/archify/package-lock.json@@ -13,8 +13,6 @@},"devDependencies": {"ajv": "^8.17.1",- "parse5": "7.3.0",- "saxes": "6.0.0","simple-icons": "16.28.0"},"engines": {@@ -38,19 +36,6 @@"url": "https://github.com/sponsors/epoberezkin"}},- "node_modules/entities": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",- "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=0.12"- },- "funding": {- "url": "https://github.com/fb55/entities?sponsor=1"- }- },"node_modules/fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",@@ -82,19 +67,6 @@"dev": true,"license": "MIT"},- "node_modules/parse5": {- "version": "7.3.0",- "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",- "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",- "dev": true,- "license": "MIT",- "dependencies": {- "entities": "^6.0.0"- },- "funding": {- "url": "https://github.com/inikulin/parse5?sponsor=1"- }- },"node_modules/require-from-string": {"version": "2.0.2","resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",@@ -105,19 +77,6 @@"node": ">=0.10.0"}},- "node_modules/saxes": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",- "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",- "dev": true,- "license": "ISC",- "dependencies": {- "xmlchars": "^2.2.0"- },- "engines": {- "node": ">=v12.22.7"- }- },"node_modules/simple-icons": {"version": "16.28.0","resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-16.28.0.tgz",@@ -137,13 +96,6 @@"engines": {"node": ">=0.12.18"}- },- "node_modules/xmlchars": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",- "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",- "dev": true,- "license": "MIT"}}}diff --git a/archify/package.json b/archify/package.jsonindex 36fbf4f9..708f531a 100644--- a/archify/package.json+++ b/archify/package.json@@ -23,15 +23,13 @@"build:guide": "node ../scripts/build-guide.mjs ../docs/guide.html","build:start": "node ../scripts/build-start.mjs ../docs/start.html","build:readme-showcase": "node ../scripts/build-readme-showcase.mjs",- "test:webm": "node test/webm-artifact.smoke.mjs && node --test test/site-language-integration.mjs",- "test:browser": "node ../scripts/run-browser-tests.mjs",- "test": "npm run check:viewer && npm run check:brand-marks && npm run check:validators && npm run check:release-identity && node test/golden.mjs && node ../scripts/run-tests.mjs",+ "test:webm": "npm --prefix .. run test:webm",+ "test:browser": "npm --prefix .. run test:browser",+ "test": "npm --prefix .. test","render:examples": "node scripts/render-examples.mjs ../examples"},"devDependencies": {"ajv": "^8.17.1",- "parse5": "7.3.0",- "saxes": "6.0.0","simple-icons": "16.28.0"},"overrides": {diff --git a/docs/reading-evidence/README.md b/docs/reading-evidence/README.mdindex 825ca27b..4786fbf4 100644--- a/docs/reading-evidence/README.md+++ b/docs/reading-evidence/README.md@@ -22,7 +22,7 @@ Reproduce interaction evidence:```shARCHIFY_CHROME="/path/to/chrome" ARCHIFY_READING_EVIDENCE="/tmp/reading-evidence" \- node --test archify/test/atlas-browser.test.mjs+ node --test test/atlas-browser.test.mjs```That test blocks HTTP/HTTPS and exercises Enter activation, explicit detail@@ -30,7 +30,7 @@ choice, return camera/focus, shell/child theme synchronization, four desktopsizes, icon painting and canonical SVG export. Its second case deliberatelyshrinks message text to prove that browser readability detects the defect.-Run `archify/test/desktop-reader-browser.test.mjs` with the same Chrome setting+Run `test/desktop-reader-browser.test.mjs` with the same Chrome settingfor all packaged diagrams and the production architecture readability case.Perceptual review: screenshots were inspected with an image-capable reviewer.diff --git a/integrations/deepseek-harness/test/zero-regression.test.mjs b/integrations/deepseek-harness/test/zero-regression.test.mjsindex 10d66770..3004c5db 100644--- a/integrations/deepseek-harness/test/zero-regression.test.mjs+++ b/integrations/deepseek-harness/test/zero-regression.test.mjs@@ -34,7 +34,6 @@ test('Archify core does not import, detect, or branch on DeepSeek Harness', () =// schemas, references, examples, and assets.const protectedPaths = ['archify',- ':(exclude)archify/test/**','scripts/build-zip.sh','scripts/package-smoke.mjs',];diff --git a/package-lock.json b/package-lock.jsonnew file mode 100644index 00000000..eb5e86df--- /dev/null+++ b/package-lock.json@@ -0,0 +1,122 @@+{+ "name": "archify-repository",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "archify-repository",+ "devDependencies": {+ "ajv": "^8.17.1",+ "parse5": "7.3.0",+ "saxes": "6.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/ajv": {+ "version": "8.20.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.3",+ "fast-uri": "^3.0.1",+ "json-schema-traverse": "^1.0.0",+ "require-from-string": "^2.0.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/entities": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",+ "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-uri": {+ "version": "3.1.8",+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz",+ "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/fastify"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/fastify"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/json-schema-traverse": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/parse5": {+ "version": "7.3.0",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",+ "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "entities": "^6.0.0"+ },+ "funding": {+ "url": "https://github.com/inikulin/parse5?sponsor=1"+ }+ },+ "node_modules/require-from-string": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/saxes": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "xmlchars": "^2.2.0"+ },+ "engines": {+ "node": ">=v12.22.7"+ }+ },+ "node_modules/xmlchars": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",+ "dev": true,+ "license": "MIT"+ }+ }+}diff --git a/package.json b/package.jsonnew file mode 100644index 00000000..1626033b--- /dev/null+++ b/package.json@@ -0,0 +1,21 @@+{+ "name": "archify-repository",+ "private": true,+ "type": "module",+ "engines": {+ "node": ">=18"+ },+ "scripts": {+ "test": "npm --prefix archify run check:viewer && npm --prefix archify run check:brand-marks && npm --prefix archify run check:validators && npm --prefix archify run check:release-identity && node test/golden.mjs && node scripts/run-tests.mjs",+ "test:browser": "node scripts/run-browser-tests.mjs",+ "test:webm": "node test/webm-artifact.smoke.mjs && node --test test/site-language-integration.mjs"+ },+ "devDependencies": {+ "ajv": "^8.17.1",+ "parse5": "7.3.0",+ "saxes": "6.0.0"+ },+ "overrides": {+ "fast-uri": "^3.1.7"+ }+}diff --git a/scripts/ci-scope.mjs b/scripts/ci-scope.mjsindex 29d3c9b7..ae0255bb 100644--- a/scripts/ci-scope.mjs+++ b/scripts/ci-scope.mjs@@ -20,7 +20,7 @@ if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href)const diff = execFileSync('git', ['diff', '--no-renames', '--name-only', '-z', base, 'HEAD'], { encoding: 'utf8' });const paths = diff.split('\0').filter(Boolean);scope = classifyPaths(paths);- website = paths.some(path => /^(website\/|docs\/|scripts\/|archify\/(recipes\/|package\.json|test\/site-language-continuity\.test\.mjs)|\.github\/workflows\/ci\.yml)/.test(path));+ website = paths.some(path => /^(website\/|docs\/|scripts\/|archify\/(recipes\/|package\.json)|test\/site-language-continuity\.test\.mjs|package(?:-lock)?\.json|\.github\/workflows\/ci\.yml)/.test(path));}console.log(`CI scope: ${scope}`);if (process.env.GITHUB_OUTPUT) fs.appendFileSync(process.env.GITHUB_OUTPUT, `scope=${scope}\nwebsite=${website}\n`);diff --git a/scripts/run-browser-tests.mjs b/scripts/run-browser-tests.mjsindex f2cc5cef..ac325c90 100644--- a/scripts/run-browser-tests.mjs+++ b/scripts/run-browser-tests.mjs@@ -5,7 +5,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';import { findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');+const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');// Shared by PR CI and tag releases. WebM decoding stays in test:webm.const testFiles = ['finalize-browser.test.mjs',@@ -51,7 +51,7 @@ const [major, minor] = process.versions.node.split('.').map(Number);if (major > 18 || (major === 18 && minor >= 19)) args.push('--test-concurrency=2');args.push(...testFiles.map((file) => path.join('test', file)));const result = spawnSync(process.execPath, args, {- cwd: skillRoot,+ cwd: repoRoot,env: { ...process.env, ARCHIFY_CHROME: chrome },stdio: 'inherit',});diff --git a/scripts/run-tests.mjs b/scripts/run-tests.mjsindex a1381ce1..1954c0d8 100644--- a/scripts/run-tests.mjs+++ b/scripts/run-tests.mjs@@ -7,8 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');-const skillRoot = path.join(repoRoot, 'archify');-const testRoot = path.join(skillRoot, 'test');+const testRoot = path.join(repoRoot, 'test');const testFiles = fs.readdirSync(testRoot).filter((entry) => entry.endsWith('.test.mjs')).sort()@@ -23,7 +22,7 @@ args.push(...testFiles);// Delivery commands check for updates; keep that state out of the user's cache.const updateCache = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'archify-test-update-')));const result = spawnSync(process.execPath, args, {- cwd: skillRoot,+ cwd: repoRoot,stdio: 'inherit',env: { ...process.env, ARCHIFY_UPDATE_CACHE_DIRECTORY: updateCache },});diff --git a/scripts/run-windows-path-tests.mjs b/scripts/run-windows-path-tests.mjsindex bda4c12c..e8adad80 100644--- a/scripts/run-windows-path-tests.mjs+++ b/scripts/run-windows-path-tests.mjs@@ -606,7 +606,7 @@ await runControlledWindowsPathE2E();for (const args of groups) {const result = spawnSync(process.execPath, args, {- cwd: skillRoot,+ cwd: repoRoot,stdio: 'inherit',});if (result.error) throw result.error;diff --git a/archify/test/adaptive-reader-layout.test.mjs b/test/adaptive-reader-layout.test.mjssimilarity index 98%rename from archify/test/adaptive-reader-layout.test.mjsrename to test/adaptive-reader-layout.test.mjsindex 3e847607..c782e20b 100644--- a/archify/test/adaptive-reader-layout.test.mjs+++ b/test/adaptive-reader-layout.test.mjs@@ -14,10 +14,10 @@ import {MIN_PROJECTED_NODE_TEXT_PX,minimumReadableSourceTextPx,projectedNodeTextPx,-} from '../renderers/shared/desktop-readability.mjs';+} from '../archify/renderers/shared/desktop-readability.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const template = fs.readFileSync(path.join(skillRoot, 'assets', 'template.html'), 'utf8');const skill = fs.readFileSync(path.join(skillRoot, 'references/authoring-defaults.md'), 'utf8');const architectureRenderer = fs.readFileSync(path.join(skillRoot, 'renderers', 'architecture', 'render-architecture.mjs'), 'utf8');diff --git a/archify/test/animation.test.mjs b/test/animation.test.mjssimilarity index 99%rename from archify/test/animation.test.mjsrename to test/animation.test.mjsindex c6bee329..20e5453d 100644--- a/archify/test/animation.test.mjs+++ b/test/animation.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-animation-'));const CASES = {diff --git a/archify/test/architecture-automatic-labels.test.mjs b/test/architecture-automatic-labels.test.mjssimilarity index 96%rename from archify/test/architecture-automatic-labels.test.mjsrename to test/architecture-automatic-labels.test.mjsindex c419ffab..08e7ca1c 100644--- a/archify/test/architecture-automatic-labels.test.mjs+++ b/test/architecture-automatic-labels.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-import { collectLabelRouteClearance, rectsOverlap, labelPoint } from '../renderers/shared/geometry.mjs';+import { collectLabelRouteClearance, rectsOverlap, labelPoint } from '../archify/renderers/shared/geometry.mjs';-const root = fileURLToPath(new URL('../', import.meta.url));+const root = fileURLToPath(new URL('../archify/', import.meta.url));const cli = path.join(root, 'bin/archify.mjs');function inspect(t, diagram, extra = []) {const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-auto-labels-'));@@ -61,7 +61,7 @@ test('vertical auto label clears the source without moving endpoints and is cons});test('frozen K2.8 draft clears its labels and renderer-owned automatic crossing', t => {- const diagram = JSON.parse(fs.readFileSync(path.join(root, 'test/fixtures/architecture-label-repair/worldscope.json')));+ const diagram = JSON.parse(fs.readFileSync(path.join(root, '..', 'test/fixtures/architecture-label-repair/worldscope.json')));const { result, report } = inspect(t, diagram);assert.equal(result.status, 0, result.stdout);assert.equal(report.ok, true);diff --git a/archify/test/architecture-compare-recovery.test.mjs b/test/architecture-compare-recovery.test.mjssimilarity index 99%rename from archify/test/architecture-compare-recovery.test.mjsrename to test/architecture-compare-recovery.test.mjsindex 4df3c2a0..823e4f30 100644--- a/archify/test/architecture-compare-recovery.test.mjs+++ b/test/architecture-compare-recovery.test.mjs@@ -7,7 +7,7 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const base = path.join(skillRoot, 'examples/checkout-platform.base.architecture.json');const head = path.join(skillRoot, 'examples/checkout-platform.head.architecture.json');diff --git a/archify/test/architecture-delta-literals.test.mjs b/test/architecture-delta-literals.test.mjssimilarity index 99%rename from archify/test/architecture-delta-literals.test.mjsrename to test/architecture-delta-literals.test.mjsindex 45069616..5237c3b1 100644--- a/archify/test/architecture-delta-literals.test.mjs+++ b/test/architecture-delta-literals.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';import { parse } from 'parse5';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const attr = (node, name) => node.attrs?.find((entry) => entry.name === name)?.value;const descendants = (node) => [node, ...(node.childNodes || []).flatMap(descendants)];const textContent = (node) => node.nodeName === '#text' ? node.value : (node.childNodes || []).map(textContent).join('');diff --git a/archify/test/architecture-delta-markers.test.mjs b/test/architecture-delta-markers.test.mjssimilarity index 99%rename from archify/test/architecture-delta-markers.test.mjsrename to test/architecture-delta-markers.test.mjsindex a1804423..8b8c5d3d 100644--- a/archify/test/architecture-delta-markers.test.mjs+++ b/test/architecture-delta-markers.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';import { parse, serializeOuter } from 'parse5';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const variants = ['default', 'emphasis', 'security', 'dashed'];const attr = (node, name) => node.attrs?.find((entry) => entry.name === name)?.value;function descendants(node) {diff --git a/archify/test/architecture-delta.test.mjs b/test/architecture-delta.test.mjssimilarity index 99%rename from archify/test/architecture-delta.test.mjsrename to test/architecture-delta.test.mjsindex c822d77b..0c6a3307 100644--- a/archify/test/architecture-delta.test.mjs+++ b/test/architecture-delta.test.mjs@@ -13,10 +13,10 @@ import {compareArchitecture,renderArchitectureDeltaHtml,validateArchitectureDeltaHtml,-} from '../delta/architecture-delta.mjs';+} from '../archify/delta/architecture-delta.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const baseFixture = path.join(skillRoot, 'examples/checkout-platform.base.architecture.json');const headFixture = path.join(skillRoot, 'examples/checkout-platform.head.architecture.json');diff --git a/archify/test/architecture-first-draft.test.mjs b/test/architecture-first-draft.test.mjssimilarity index 97%rename from archify/test/architecture-first-draft.test.mjsrename to test/architecture-first-draft.test.mjsindex 6c2a0e35..0eee6516 100644--- a/archify/test/architecture-first-draft.test.mjs+++ b/test/architecture-first-draft.test.mjs@@ -6,9 +6,9 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');-const fixtures = path.join(skillRoot, 'test/fixtures/architecture-first-draft');+const fixtures = path.join(skillRoot, '..', 'test', 'fixtures/architecture-first-draft');function validate(type, input, ...extra) {const result = spawnSync(process.execPath, [cli, 'validate', type, input, '--quality', 'showcase', '--json', ...extra], { encoding: 'utf8' });@@ -153,7 +153,7 @@ test('architecture: a self-loop with cramped explicit sides names the loop and t// in one lane. Failing on the first pair cost the author a full round before// the second group was even reported.test('workflow: every overlapping node pair of a first draft is reported in one round', () => {- const { status, receipt } = validate('workflow', path.join(skillRoot, 'test/fixtures/workflow-first-draft/release-luna.workflow.json'));+ const { status, receipt } = validate('workflow', path.join(skillRoot, '..', 'test', 'fixtures/workflow-first-draft/release-luna.workflow.json'));assert.equal(status, 1);const overlaps = receipt.diagnostics.filter((entry) => entry.code === 'workflow/node-overlap');assert.equal(overlaps.length, 7, JSON.stringify(receipt.diagnostics, null, 2));diff --git a/archify/test/architecture-leading-space.test.mjs b/test/architecture-leading-space.test.mjssimilarity index 98%rename from archify/test/architecture-leading-space.test.mjsrename to test/architecture-leading-space.test.mjsindex a46a2853..b4dce840 100644--- a/archify/test/architecture-leading-space.test.mjs+++ b/test/architecture-leading-space.test.mjs@@ -6,7 +6,7 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-const root = fileURLToPath(new URL('../', import.meta.url));+const root = fileURLToPath(new URL('../archify/', import.meta.url));const cli = path.join(root, 'bin/archify.mjs');const checker = path.join(root, 'scripts/check-render-output.mjs');diff --git a/archify/test/architecture-readable-routing-labels.test.mjs b/test/architecture-readable-routing-labels.test.mjssimilarity index 96%rename from archify/test/architecture-readable-routing-labels.test.mjsrename to test/architecture-readable-routing-labels.test.mjsindex b600b468..afd6b766 100644--- a/archify/test/architecture-readable-routing-labels.test.mjs+++ b/test/architecture-readable-routing-labels.test.mjs@@ -1,8 +1,8 @@import { test } from 'node:test';import assert from 'node:assert/strict';-import { createRouter } from '../renderers/architecture/routing.mjs';-import { reservedLabelRect } from '../renderers/architecture/labels.mjs';-import { labelPoint, rectsOverlap, segmentIntersectsRect } from '../renderers/shared/geometry.mjs';+import { createRouter } from '../archify/renderers/architecture/routing.mjs';+import { reservedLabelRect } from '../archify/renderers/architecture/labels.mjs';+import { labelPoint, rectsOverlap, segmentIntersectsRect } from '../archify/renderers/shared/geometry.mjs';function fixture() {const boxes = new Map(Array.from({ length: 6 }, (_, index) => {diff --git a/archify/test/architecture-readable-routing.test.mjs b/test/architecture-readable-routing.test.mjssimilarity index 97%rename from archify/test/architecture-readable-routing.test.mjsrename to test/architecture-readable-routing.test.mjsindex 20f5f28d..20320d2f 100644--- a/archify/test/architecture-readable-routing.test.mjs+++ b/test/architecture-readable-routing.test.mjs@@ -1,7 +1,7 @@import { test } from 'node:test';import assert from 'node:assert/strict';-import { createRouter } from '../renderers/architecture/routing.mjs';-import { properSegmentIntersection, routeBudgetMetrics } from '../renderers/shared/geometry.mjs';+import { createRouter } from '../archify/renderers/architecture/routing.mjs';+import { properSegmentIntersection, routeBudgetMetrics } from '../archify/renderers/shared/geometry.mjs';function fixture() {const boxes = new Map(Array.from({ length: 6 }, (_, index) => {diff --git a/archify/test/architecture-reading-size-browser.test.mjs b/test/architecture-reading-size-browser.test.mjssimilarity index 99%rename from archify/test/architecture-reading-size-browser.test.mjsrename to test/architecture-reading-size-browser.test.mjsindex 417b9186..1e156c55 100644--- a/archify/test/architecture-reading-size-browser.test.mjs+++ b/test/architecture-reading-size-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');test('automatic architectures preserve primary reading size when fitting the full page would shrink text', async (t) => {if (!Object.hasOwn(process.env, 'ARCHIFY_CHROME')) return t.skip('Set ARCHIFY_CHROME for real browser checks');const chrome = findChrome();diff --git a/archify/test/architecture-repair-evidence.test.mjs b/test/architecture-repair-evidence.test.mjssimilarity index 99%rename from archify/test/architecture-repair-evidence.test.mjsrename to test/architecture-repair-evidence.test.mjsindex c432c196..a70be51b 100644--- a/archify/test/architecture-repair-evidence.test.mjs+++ b/test/architecture-repair-evidence.test.mjs@@ -6,7 +6,7 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-const root = fileURLToPath(new URL('../', import.meta.url));+const root = fileURLToPath(new URL('../archify/', import.meta.url));const cli = path.join(root, 'bin/archify.mjs');const renderer = path.join(root, 'renderers/architecture/render-architecture.mjs');function setup(t, positions, viewBox = [600, 420]) {diff --git a/archify/test/artifact-receipt-flush.test.mjs b/test/artifact-receipt-flush.test.mjssimilarity index 99%rename from archify/test/artifact-receipt-flush.test.mjsrename to test/artifact-receipt-flush.test.mjsindex c1791e9e..604ccab6 100644--- a/archify/test/artifact-receipt-flush.test.mjs+++ b/test/artifact-receipt-flush.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { after, test } from 'node:test';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const checker = path.join(skillRoot, 'scripts/check-render-output.mjs');const cli = path.join(skillRoot, 'bin/archify.mjs');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-receipt-flush-'));diff --git a/archify/test/atomic-output-recovery.test.mjs b/test/atomic-output-recovery.test.mjssimilarity index 99%rename from archify/test/atomic-output-recovery.test.mjsrename to test/atomic-output-recovery.test.mjsindex 4d9d1773..804afb44 100644--- a/archify/test/atomic-output-recovery.test.mjs+++ b/test/atomic-output-recovery.test.mjs@@ -13,10 +13,10 @@ import {publishRegularFileBinding,recoverRetiredPublication,releaseRegularFileBinding,-} from '../renderers/shared/atomic-output.mjs';+} from '../archify/renderers/shared/atomic-output.mjs';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const atomicOutput = path.join(skillRoot, 'renderers/shared/atomic-output.mjs');const recoveryCli = path.join(skillRoot, 'bin/recover-output.mjs');diff --git a/archify/test/authored-reachability.test.mjs b/test/authored-reachability.test.mjssimilarity index 98%rename from archify/test/authored-reachability.test.mjsrename to test/authored-reachability.test.mjsindex 6aced775..64120c77 100644--- a/archify/test/authored-reachability.test.mjs+++ b/test/authored-reachability.test.mjs@@ -8,7 +8,7 @@ import vm from 'node:vm';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const template = fs.readFileSync(path.join(skillRoot, 'assets/template.html'), 'utf8');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-authored-reach-'));diff --git a/archify/test/authored-straight-routes.test.mjs b/test/authored-straight-routes.test.mjssimilarity index 99%rename from archify/test/authored-straight-routes.test.mjsrename to test/authored-straight-routes.test.mjsindex 7acbf11d..020f22c5 100644--- a/archify/test/authored-straight-routes.test.mjs+++ b/test/authored-straight-routes.test.mjs@@ -6,7 +6,7 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-straight-routes-'));after(() => fs.rmSync(tmp, { recursive: true, force: true }));const common = { schema_version: 1, meta: { title: 'Direct handoff', quality_profile: 'standard' } };diff --git a/archify/test/authoring-safety-contract.test.mjs b/test/authoring-safety-contract.test.mjssimilarity index 98%rename from archify/test/authoring-safety-contract.test.mjsrename to test/authoring-safety-contract.test.mjsindex cb53e2ff..ffdd6e62 100644--- a/archify/test/authoring-safety-contract.test.mjs+++ b/test/authoring-safety-contract.test.mjs@@ -5,7 +5,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const skill = fs.readFileSync(path.join(skillRoot, 'SKILL.md'), 'utf8');const authoringDefaults = fs.readFileSync(path.join(skillRoot, 'references', 'authoring-defaults.md'), 'utf8');const authoringContract = fs.readFileSync(diff --git a/archify/test/automatic-port-spread.test.mjs b/test/automatic-port-spread.test.mjssimilarity index 99%rename from archify/test/automatic-port-spread.test.mjsrename to test/automatic-port-spread.test.mjsindex e4b20ba6..4feea13c 100644--- a/archify/test/automatic-port-spread.test.mjs+++ b/test/automatic-port-spread.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');function render(mode, doc) {const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-port-spread-'));diff --git a/archify/test/base-input-compatibility.test.mjs b/test/base-input-compatibility.test.mjssimilarity index 89%rename from archify/test/base-input-compatibility.test.mjsrename to test/base-input-compatibility.test.mjsindex c500d36a..94ee84d4 100644--- a/archify/test/base-input-compatibility.test.mjs+++ b/test/base-input-compatibility.test.mjs@@ -7,11 +7,11 @@ import test from 'node:test';import { fileURLToPath } from 'node:url';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-base-input-compatibility-'));function renderBaseFixture(type, name) {- const input = path.join(skillRoot, 'test', 'fixtures', 'v1-baseline', name);+ const input = path.join(skillRoot, '..', 'test', 'fixtures', 'v1-baseline', name);const output = path.join(tmp, `${name}.html`);return spawnSync(process.execPath, [path.join(skillRoot, 'bin', 'archify.mjs'),diff --git a/archify/test/brand-content-encoding.test.mjs b/test/brand-content-encoding.test.mjssimilarity index 99%rename from archify/test/brand-content-encoding.test.mjsrename to test/brand-content-encoding.test.mjsindex 99c67de7..ce20aa2c 100644--- a/archify/test/brand-content-encoding.test.mjs+++ b/test/brand-content-encoding.test.mjs@@ -9,7 +9,7 @@ import test from 'node:test';import { fileURLToPath } from 'node:url';import { gzipSync, brotliCompressSync, deflateSync } from 'node:zlib';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const icon = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=', 'base64');const digest = createHash('sha256').update(icon).digest('hex');diff --git a/archify/test/brand-href-entities.test.mjs b/test/brand-href-entities.test.mjssimilarity index 99%rename from archify/test/brand-href-entities.test.mjsrename to test/brand-href-entities.test.mjsindex 1cd90c01..53b94369 100644--- a/archify/test/brand-href-entities.test.mjs+++ b/test/brand-href-entities.test.mjs@@ -8,7 +8,7 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const icon = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=', 'base64');const digest = createHash('sha256').update(icon).digest('hex');diff --git a/archify/test/brand-ico-bounds.test.mjs b/test/brand-ico-bounds.test.mjssimilarity index 99%rename from archify/test/brand-ico-bounds.test.mjsrename to test/brand-ico-bounds.test.mjsindex cbef3499..43bb79e3 100644--- a/archify/test/brand-ico-bounds.test.mjs+++ b/test/brand-ico-bounds.test.mjs@@ -8,7 +8,7 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex');const png = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=', 'base64');diff --git a/archify/test/brand-marks.test.mjs b/test/brand-marks.test.mjssimilarity index 99%rename from archify/test/brand-marks.test.mjsrename to test/brand-marks.test.mjsindex aae08ad5..41b08dc8 100644--- a/archify/test/brand-marks.test.mjs+++ b/test/brand-marks.test.mjs@@ -7,15 +7,15 @@ import os from 'node:os';import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-import { BRAND_MARKS } from '../renderers/shared/generated-brand-marks.mjs';-import { isPrivateBrandAddress, prepareDiagramBrandMarks } from '../renderers/shared/brand-marks.mjs';+import { BRAND_MARKS } from '../archify/renderers/shared/generated-brand-marks.mjs';+import { isPrivateBrandAddress, prepareDiagramBrandMarks } from '../archify/renderers/shared/brand-marks.mjs';import {THIRD_PARTY_NOTICE_DISCLOSURE_COUNT,validateThirdPartyNotices,-} from '../../scripts/third-party-notices-contract.mjs';+} from '../scripts/third-party-notices-contract.mjs';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-brand-marks-'));const cases = {diff --git a/archify/test/browser-gate.test.mjs b/test/browser-gate.test.mjssimilarity index 89%rename from archify/test/browser-gate.test.mjsrename to test/browser-gate.test.mjsindex e76ba7de..57ba43e0 100644--- a/archify/test/browser-gate.test.mjs+++ b/test/browser-gate.test.mjs@@ -6,7 +6,7 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const repoRoot = path.dirname(skillRoot);const runner = path.join(repoRoot, 'scripts/run-browser-tests.mjs');@@ -49,14 +49,14 @@ test('browser gate includes dedicated and mixed browser suites and enables them'assert.equal(result.status, 0, result.stderr);const call = JSON.parse(result.stdout);assert.equal(call.command, process.execPath);- assert.equal(fs.realpathSync(call.cwd), fs.realpathSync(skillRoot));+ assert.equal(fs.realpathSync(call.cwd), fs.realpathSync(repoRoot));assert.equal(call.chrome, process.execPath);assert.ok(call.args.includes('--test'));const files = call.args.filter((arg) => !arg.startsWith('--'));assert.equal(new Set(files).size, files.length);- for (const file of files) assert.ok(fs.existsSync(path.join(skillRoot, file)), file);+ for (const file of files) assert.ok(fs.existsSync(path.join(repoRoot, file)), file);const required = [- ...fs.readdirSync(path.join(skillRoot, 'test')).filter((file) => file.endsWith('-browser.test.mjs')),+ ...fs.readdirSync(path.join(skillRoot, '..', 'test')).filter((file) => file.endsWith('-browser.test.mjs')),'sequence-header-clearance.test.mjs', 'repository-evidence.test.mjs', 'i18n.test.mjs', 'semantic-radar.test.mjs', 'viewer-chrome-layout.test.mjs',];for (const file of required) assert.ok(files.includes(path.join('test', file)), `${file} must run in the browser gate`);@@ -71,14 +71,14 @@ for (const outcome of [{ status: 7, signal: null }, { status: null, signal: 'SIG}test('CI and release use the same browser command and retain WebM decoding', () => {- const manifest = JSON.parse(fs.readFileSync(path.join(skillRoot, 'package.json'), 'utf8'));- assert.equal(manifest.scripts['test:browser'], 'node ../scripts/run-browser-tests.mjs');+ const manifest = JSON.parse(fs.readFileSync(path.join(repoRoot, 'package.json'), 'utf8'));+ assert.equal(manifest.scripts['test:browser'], 'node scripts/run-browser-tests.mjs');for (const workflow of ['ci.yml', 'release.yml']) {const source = fs.readFileSync(path.join(repoRoot, '.github/workflows', workflow), 'utf8');const gate = source.match(/ {6}- name: Run shared browser regression gate\n([\s\S]*?)(?=\n {6}- name:|\n {2}[\w-]+:|$)/)?.[1];assert.ok(gate, `${workflow} must invoke the shared gate`);assert.match(gate, /run: npm run test:browser\n/);- assert.match(gate, /working-directory: archify/);+ assert.doesNotMatch(gate, /working-directory:/);assert.match(gate, /ARCHIFY_CHROME: \$\{\{ steps\.setup-chrome\.outputs\.chrome-path \}\}/);assert.match(source, /run: npm run test:webm/);assert.doesNotMatch(source, /run: node --test[^\n]*test\/.*browser/);diff --git a/archify/test/checkout-line-endings.test.mjs b/test/checkout-line-endings.test.mjssimilarity index 98%rename from archify/test/checkout-line-endings.test.mjsrename to test/checkout-line-endings.test.mjsindex 0f1aec0d..efd185a0 100644--- a/archify/test/checkout-line-endings.test.mjs+++ b/test/checkout-line-endings.test.mjs@@ -6,7 +6,7 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-const repoRoot = fileURLToPath(new URL('../../', import.meta.url));+const repoRoot = fileURLToPath(new URL('../', import.meta.url));for (const autocrlf of ['true', 'input', 'false']) {test(`Git checkout preserves committed text and binary bytes with core.autocrlf=${autocrlf}`, () => {diff --git a/archify/test/chrome-pipe-transport.test.mjs b/test/chrome-pipe-transport.test.mjssimilarity index 98%rename from archify/test/chrome-pipe-transport.test.mjsrename to test/chrome-pipe-transport.test.mjsindex fb367c52..71200a25 100644--- a/archify/test/chrome-pipe-transport.test.mjs+++ b/test/chrome-pipe-transport.test.mjs@@ -3,7 +3,7 @@ import { EventEmitter } from 'node:events';import { PassThrough } from 'node:stream';import { test } from 'node:test';-import { ChromeVisualBrowser, CHROME_STARTUP_TIMEOUT_MS } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, CHROME_STARTUP_TIMEOUT_MS } from '../archify/bin/visual-check.mjs';function chromeChild() {const child = new EventEmitter();diff --git a/archify/test/ci-scope.test.mjs b/test/ci-scope.test.mjssimilarity index 90%rename from archify/test/ci-scope.test.mjsrename to test/ci-scope.test.mjsindex 3acfdd64..a3cf3ab5 100644--- a/archify/test/ci-scope.test.mjs+++ b/test/ci-scope.test.mjs@@ -1,13 +1,13 @@import { test } from 'node:test';import assert from 'node:assert/strict';-import { classifyPaths } from '../../scripts/ci-scope.mjs';+import { classifyPaths } from '../scripts/ci-scope.mjs';test('community documentation takes the fast path', () => {assert.equal(classifyPaths(['README.md', 'README_EN.md', 'README_ZH.md', 'docs/assets/community/qq.svg', 'docs/assets/community/wechat-qr.png']), 'docs');});test('unknown, mixed, and behavior-bearing changes retain full CI', () => {- for (const path of ['archify/SKILL.md', 'archify/assets/template.html', 'archify/test/readme-showcase.test.mjs', '.github/workflows/ci.yml', 'scripts/ci-scope.mjs', 'docs/guide.html', 'docs/assets/community/script.js', 'README-other.md']) {+ for (const path of ['archify/SKILL.md', 'archify/assets/template.html', 'test/readme-showcase.test.mjs', '.github/workflows/ci.yml', 'scripts/ci-scope.mjs', 'docs/guide.html', 'docs/assets/community/script.js', 'README-other.md']) {assert.equal(classifyPaths(['README.md', path]), 'full', path);}assert.equal(classifyPaths([]), 'full');@@ -21,7 +21,7 @@ import os from 'node:os';import path from 'node:path';import { execFileSync, spawnSync } from 'node:child_process';import { fileURLToPath } from 'node:url';-const script = fileURLToPath(new URL('../../scripts/ci-scope.mjs', import.meta.url));+const script = fileURLToPath(new URL('../scripts/ci-scope.mjs', import.meta.url));test('scope CLI handles documentation, renames, main pushes, and invalid bases', () => {const root = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-ci-scope-'));diff --git a/archify/test/clean-skill-staging.test.mjs b/test/clean-skill-staging.test.mjssimilarity index 99%rename from archify/test/clean-skill-staging.test.mjsrename to test/clean-skill-staging.test.mjsindex d8d231b6..466e8cb3 100644--- a/archify/test/clean-skill-staging.test.mjs+++ b/test/clean-skill-staging.test.mjs@@ -6,11 +6,11 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-import { isMainModule, stageCleanSkill } from '../../scripts/stage-clean-skill.mjs';+import { isMainModule, stageCleanSkill } from '../scripts/stage-clean-skill.mjs';-const stagerPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../scripts/stage-clean-skill.mjs');+const stagerPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../scripts/stage-clean-skill.mjs');const canonicalNotices = fs.readFileSync(- path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../THIRD_PARTY_NOTICES.md'),+ path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../THIRD_PARTY_NOTICES.md'),'utf8',);@@ -44,7 +44,7 @@ function repositoryFixture() {write(root, 'archify/renderers/shared/generated-validators.mjs', 'export {};\n');write(root, 'archify/renderers/shared/path-semantics.mjs', 'export {};\n');write(root, 'archify/renderers/shared/portable-path.mjs', 'export {};\n');- write(root, 'archify/test/repository-only.test.mjs', 'throw new Error();\n');+ write(root, 'test/repository-only.test.mjs', 'throw new Error();\n');git(root, ['init']);git(root, ['add', 'THIRD_PARTY_NOTICES.md']);return root;diff --git a/archify/test/cli-output-types.test.mjs b/test/cli-output-types.test.mjssimilarity index 99%rename from archify/test/cli-output-types.test.mjsrename to test/cli-output-types.test.mjsindex d52dda11..33f88217 100644--- a/archify/test/cli-output-types.test.mjs+++ b/test/cli-output-types.test.mjs@@ -5,9 +5,9 @@ import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';import test from 'node:test';import assert from 'node:assert/strict';-import { startPreview } from '../bin/preview.mjs';+import { startPreview } from '../archify/bin/preview.mjs';-const root = fileURLToPath(new URL('../', import.meta.url));+const root = fileURLToPath(new URL('../archify/', import.meta.url));const cli = path.join(root, 'bin/archify.mjs');const workflow = path.join(root, 'examples/agent-tool-call.workflow.json');const architecture = path.join(root, 'examples/web-app.architecture.json');diff --git a/archify/test/cli.test.mjs b/test/cli.test.mjssimilarity index 99%rename from archify/test/cli.test.mjsrename to test/cli.test.mjsindex e0abbb54..26dab11e 100644--- a/archify/test/cli.test.mjs+++ b/test/cli.test.mjs@@ -9,7 +9,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';import { extractSvgs, parseXml } from './helpers/xml.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-cli-'));const cli = path.join(skillRoot, 'bin/archify.mjs');diff --git a/archify/test/community-packages.test.mjs b/test/community-packages.test.mjssimilarity index 98%rename from archify/test/community-packages.test.mjsrename to test/community-packages.test.mjsindex b5d1b0d7..732b646c 100644--- a/archify/test/community-packages.test.mjs+++ b/test/community-packages.test.mjs@@ -10,9 +10,9 @@ import {REQUIRED_FIELDS,validatePackage,validateRegistry,-} from '../../scripts/check-community-packages.mjs';+} from '../scripts/check-community-packages.mjs';-const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');+const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');const schema = JSON.parse(fs.readFileSync(path.join(repoRoot, 'community/package.schema.json'), 'utf8'));function validPackage() {diff --git a/archify/test/community-proof-intake.test.mjs b/test/community-proof-intake.test.mjssimilarity index 99%rename from archify/test/community-proof-intake.test.mjsrename to test/community-proof-intake.test.mjsindex e13fefe2..2aa0bd2d 100644--- a/archify/test/community-proof-intake.test.mjs+++ b/test/community-proof-intake.test.mjs@@ -5,7 +5,7 @@ import test from 'node:test';import { fileURLToPath } from 'node:url';const here = path.dirname(fileURLToPath(import.meta.url));-const repoRoot = path.resolve(here, '../..');+const repoRoot = path.resolve(here, '..');function read(relativePath) {return fs.readFileSync(path.join(repoRoot, relativePath), 'utf8');diff --git a/archify/test/compact-header-clearance.test.mjs b/test/compact-header-clearance.test.mjssimilarity index 97%rename from archify/test/compact-header-clearance.test.mjsrename to test/compact-header-clearance.test.mjsindex a7395eac..c8173164 100644--- a/archify/test/compact-header-clearance.test.mjs+++ b/test/compact-header-clearance.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');test('compact stage rail keeps the diagram below the toolbar', async (t) => {if (!Object.hasOwn(process.env, 'ARCHIFY_CHROME')) return t.skip('Set ARCHIFY_CHROME for real browser checks');const chrome = findChrome();diff --git a/archify/test/copy-site-assets.test.mjs b/test/copy-site-assets.test.mjssimilarity index 99%rename from archify/test/copy-site-assets.test.mjsrename to test/copy-site-assets.test.mjsindex de04efee..8ebc3ce3 100644--- a/archify/test/copy-site-assets.test.mjs+++ b/test/copy-site-assets.test.mjs@@ -6,10 +6,10 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-import { copySiteAssets } from '../../scripts/copy-site-assets.mjs';+import { copySiteAssets } from '../scripts/copy-site-assets.mjs';const testDirectory = path.dirname(fileURLToPath(import.meta.url));-const repoRoot = path.resolve(testDirectory, '../..');+const repoRoot = path.resolve(testDirectory, '..');const canonicalAssets = path.join(repoRoot, 'docs', 'assets');function workspace(t, prefix) {diff --git a/archify/test/crossover-state-browser.test.mjs b/test/crossover-state-browser.test.mjssimilarity index 98%rename from archify/test/crossover-state-browser.test.mjsrename to test/crossover-state-browser.test.mjsindex bdb96615..ac7d36f5 100644--- a/archify/test/crossover-state-browser.test.mjs+++ b/test/crossover-state-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;test('automatic crossover masks follow live relationship state without becoming semantic edges', {diff --git a/archify/test/cursor-onboarding.test.mjs b/test/cursor-onboarding.test.mjssimilarity index 98%rename from archify/test/cursor-onboarding.test.mjsrename to test/cursor-onboarding.test.mjsindex 73e0bc1a..b77d06ce 100644--- a/archify/test/cursor-onboarding.test.mjs+++ b/test/cursor-onboarding.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const cursorCommand = 'npx -y skills add tt-a1i/archify --skill archify --agent cursor --global --copy --yes';diff --git a/archify/test/degraded.test.mjs b/test/degraded.test.mjssimilarity index 99%rename from archify/test/degraded.test.mjsrename to test/degraded.test.mjsindex 25618897..1f9f70b7 100644--- a/archify/test/degraded.test.mjs+++ b/test/degraded.test.mjs@@ -18,7 +18,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-degraded-'));const EXAMPLES = {diff --git a/archify/test/delivery-contract.test.mjs b/test/delivery-contract.test.mjssimilarity index 97%rename from archify/test/delivery-contract.test.mjsrename to test/delivery-contract.test.mjsindex cfbad3bc..4c560384 100644--- a/archify/test/delivery-contract.test.mjs+++ b/test/delivery-contract.test.mjs@@ -5,9 +5,9 @@ import test from 'node:test';import assert from 'node:assert/strict';const here = path.dirname(fileURLToPath(import.meta.url));-const skill = readFileSync(path.join(here, '..', 'SKILL.md'), 'utf8');-const delivery = readFileSync(path.join(here, '..', 'references', 'delivery-contract.md'), 'utf8');-const schemaReadme = readFileSync(path.join(here, '..', 'schemas', 'README.md'), 'utf8');+const skill = readFileSync(path.join(here, '..', 'archify', 'SKILL.md'), 'utf8');+const delivery = readFileSync(path.join(here, '..', 'archify', 'references', 'delivery-contract.md'), 'utf8');+const schemaReadme = readFileSync(path.join(here, '..', 'archify', 'schemas', 'README.md'), 'utf8');test('delivery contract separates portable authored outputs from native CLI outputs', () => {assert.match(delivery, /Authored `meta\.output` is a portable POSIX-relative path/i);diff --git a/archify/test/delivery-sidecar-path.test.mjs b/test/delivery-sidecar-path.test.mjssimilarity index 99%rename from archify/test/delivery-sidecar-path.test.mjsrename to test/delivery-sidecar-path.test.mjsindex 21fc3bad..9546c83c 100644--- a/archify/test/delivery-sidecar-path.test.mjs+++ b/test/delivery-sidecar-path.test.mjs@@ -6,7 +6,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';import test from 'node:test';import assert from 'node:assert/strict';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');const input = path.join(skillRoot, 'examples', 'agent-tool-call.workflow.json');diff --git a/archify/test/delivery-update.test.mjs b/test/delivery-update.test.mjssimilarity index 97%rename from archify/test/delivery-update.test.mjsrename to test/delivery-update.test.mjsindex 2f046fe2..a7a02bd9 100644--- a/archify/test/delivery-update.test.mjs+++ b/test/delivery-update.test.mjs@@ -6,11 +6,11 @@ import { spawnSync } from 'node:child_process';import test from 'node:test';import { fileURLToPath, pathToFileURL } from 'node:url';-import { checkForUpdate } from '../scripts/check-update.mjs';-import { startDeliveryUpdateCheck } from '../bin/delivery-update.mjs';-import { runFinalize } from '../bin/finalize.mjs';+import { checkForUpdate } from '../archify/scripts/check-update.mjs';+import { startDeliveryUpdateCheck } from '../archify/bin/delivery-update.mjs';+import { runFinalize } from '../archify/bin/finalize.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');const installed = '2.15.0';const available = '2.16.0';@@ -116,7 +116,7 @@ test('a killed checker holding the cache claim can be followed by a new check',const testFixture = fixture(t);const blockedChecker = path.join(testFixture.root, 'blocked-checker.mjs');fs.writeFileSync(blockedChecker, `- import { checkForUpdate } from ${JSON.stringify(new URL('../scripts/check-update.mjs', import.meta.url).href)};+ import { checkForUpdate } from ${JSON.stringify(new URL('../archify/scripts/check-update.mjs', import.meta.url).href)};await checkForUpdate({releasePath: ${JSON.stringify(testFixture.releasePath)},cacheDirectory: ${JSON.stringify(testFixture.cacheDirectory)},diff --git a/archify/test/desktop-reader-browser.test.mjs b/test/desktop-reader-browser.test.mjssimilarity index 98%rename from archify/test/desktop-reader-browser.test.mjsrename to test/desktop-reader-browser.test.mjsindex d857bcd8..a154d218 100644--- a/archify/test/desktop-reader-browser.test.mjs+++ b/test/desktop-reader-browser.test.mjs@@ -6,11 +6,11 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { ChromeVisualBrowser, findChrome, runVisualCheck } from '../bin/visual-check.mjs';-import { DESKTOP_READABILITY_VIEWPORT, MIN_PROJECTED_NODE_TEXT_PX } from '../renderers/shared/desktop-readability.mjs';+import { ChromeVisualBrowser, findChrome, runVisualCheck } from '../archify/bin/visual-check.mjs';+import { DESKTOP_READABILITY_VIEWPORT, MIN_PROJECTED_NODE_TEXT_PX } from '../archify/renderers/shared/desktop-readability.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const chromePath = process.env.ARCHIFY_CHROME ? findChrome() : null;const packagedHtmlExamples = fs.readdirSync(path.join(skillRoot, 'examples')).filter((name) => name.endsWith('.html') && !name.endsWith('.visual-check.html'))@@ -234,7 +234,7 @@ test('route-expanded intrinsic architecture preserves reading size with ordinary}, async () => {const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-route-expanded-reader-'));const input = path.join(- skillRoot,+ skillRoot, '..','test/fixtures/architecture-viewport/route-expanded-worldscope.architecture.json',);const artifact = path.join(tmp, 'route-expanded-worldscope.html');@@ -292,7 +292,7 @@ test('extreme intrinsic architecture keeps readable page scroll below first-scre}, async () => {const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-readable-scroll-reader-'));const input = path.join(- skillRoot,+ skillRoot, '..','test/fixtures/architecture-viewport/readable-scroll-worldscope.architecture.json',);const artifact = path.join(tmp, 'readable-scroll-worldscope.html');@@ -356,7 +356,7 @@ test('extreme intrinsic architecture keeps readable page scroll below first-scretest('offline intrinsic workflows fit while authored overflow still identifies lane frames', {skip: chromePath ? false : 'Set ARCHIFY_CHROME to run the real browser regression.',}, async () => {- const fixtureRoot = path.join(skillRoot, 'test/fixtures/workflow-viewport');+ const fixtureRoot = path.join(skillRoot, '..', 'test', 'fixtures/workflow-viewport');const failed = JSON.parse(fs.readFileSync(path.join(fixtureRoot, 'order-overflow.workflow.json'), 'utf8'));const repaired = JSON.parse(fs.readFileSync(path.join(fixtureRoot, 'order-reflow.workflow.json'), 'utf8'));const meaning = ({ lane, col, yOffset, ...node }) => node;diff --git a/archify/test/diagram-guide.test.mjs b/test/diagram-guide.test.mjssimilarity index 98%rename from archify/test/diagram-guide.test.mjsrename to test/diagram-guide.test.mjsindex d6eec284..82937101 100644--- a/archify/test/diagram-guide.test.mjs+++ b/test/diagram-guide.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-diagram-guide-'));const CASES = {diff --git a/archify/test/edge-label-color.test.mjs b/test/edge-label-color.test.mjssimilarity index 99%rename from archify/test/edge-label-color.test.mjsrename to test/edge-label-color.test.mjsindex 1e60867c..f31d726a 100644--- a/archify/test/edge-label-color.test.mjs+++ b/test/edge-label-color.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-edge-label-color-'));diff --git a/archify/test/engineering-profile.test.mjs b/test/engineering-profile.test.mjssimilarity index 98%rename from archify/test/engineering-profile.test.mjsrename to test/engineering-profile.test.mjsindex ad3de7ff..1fbff12e 100644--- a/archify/test/engineering-profile.test.mjs+++ b/test/engineering-profile.test.mjs@@ -10,10 +10,10 @@ import { fileURLToPath } from 'node:url';import {deploymentOwnershipDiagnostics,validateEngineeringProfile,-} from '../renderers/shared/engineering-profiles.mjs';+} from '../archify/renderers/shared/engineering-profiles.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');const examplePath = path.join(skillRoot, 'examples', 'production-deployment.architecture.json');const example = JSON.parse(fs.readFileSync(examplePath, 'utf8'));diff --git a/archify/test/erd-rendering.test.mjs b/test/erd-rendering.test.mjssimilarity index 99%rename from archify/test/erd-rendering.test.mjsrename to test/erd-rendering.test.mjsindex 77999589..4c616975 100644--- a/archify/test/erd-rendering.test.mjs+++ b/test/erd-rendering.test.mjs@@ -6,10 +6,10 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { segmentIntersectsRect } from '../renderers/shared/geometry.mjs';+import { segmentIntersectsRect } from '../archify/renderers/shared/geometry.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const renderer = path.join(skillRoot, 'renderers', 'erd', 'render-erd.mjs');const checker = path.join(skillRoot, 'scripts', 'check-render-output.mjs');const examplePath = path.join(skillRoot, 'examples', 'orders.erd.json');diff --git a/archify/test/export-browser.test.mjs b/test/export-browser.test.mjssimilarity index 99%rename from archify/test/export-browser.test.mjsrename to test/export-browser.test.mjsindex c4d7742d..20a311ce 100644--- a/archify/test/export-browser.test.mjs+++ b/test/export-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;test('Export preserves menu, clipboard, semantic cards and recording lifecycles', {diff --git a/archify/test/export-cleanup-browser.test.mjs b/test/export-cleanup-browser.test.mjssimilarity index 99%rename from archify/test/export-cleanup-browser.test.mjsrename to test/export-cleanup-browser.test.mjsindex 111aa06b..3381ad20 100644--- a/archify/test/export-cleanup-browser.test.mjs+++ b/test/export-cleanup-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;const cases = {architecture: 'web-app.architecture.json', workflow: 'agent-tool-call.workflow.json',diff --git a/archify/test/finalize-browser-lifecycle.test.mjs b/test/finalize-browser-lifecycle.test.mjssimilarity index 98%rename from archify/test/finalize-browser-lifecycle.test.mjsrename to test/finalize-browser-lifecycle.test.mjsindex 30c3b69f..84d3b3ca 100644--- a/archify/test/finalize-browser-lifecycle.test.mjs+++ b/test/finalize-browser-lifecycle.test.mjs@@ -5,8 +5,8 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';-import { runFinalize } from '../bin/finalize.mjs';-import { CAPTURE_VIEWPORTS, VISUAL_CHECK_VIEWPORTS } from '../bin/visual-check.mjs';+import { runFinalize } from '../archify/bin/finalize.mjs';+import { CAPTURE_VIEWPORTS, VISUAL_CHECK_VIEWPORTS } from '../archify/bin/visual-check.mjs';function workspace(t) {const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-finalize-browser-'));diff --git a/archify/test/finalize-browser.test.mjs b/test/finalize-browser.test.mjssimilarity index 98%rename from archify/test/finalize-browser.test.mjsrename to test/finalize-browser.test.mjsindex 14c4f307..00d36089 100644--- a/archify/test/finalize-browser.test.mjs+++ b/test/finalize-browser.test.mjs@@ -6,7 +6,7 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');test('finalize proves all four gates in real Chrome with bounded mixed-case sidecars and repeat delivery', {diff --git a/archify/test/finalize-paths.test.mjs b/test/finalize-paths.test.mjssimilarity index 98%rename from archify/test/finalize-paths.test.mjsrename to test/finalize-paths.test.mjsindex 3524509e..bfb50fc2 100644--- a/archify/test/finalize-paths.test.mjs+++ b/test/finalize-paths.test.mjs@@ -5,9 +5,9 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { defaultFinalizeReceiptPath, defaultFinalizeSummaryPath, runFinalize } from '../bin/finalize.mjs';+import { defaultFinalizeReceiptPath, defaultFinalizeSummaryPath, runFinalize } from '../archify/bin/finalize.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const example = path.join(skillRoot, 'examples/web-app.architecture.json');function workspace(t) {diff --git a/archify/test/finalize.test.mjs b/test/finalize.test.mjssimilarity index 99%rename from archify/test/finalize.test.mjsrename to test/finalize.test.mjsindex 0a679f6c..1875888c 100644--- a/archify/test/finalize.test.mjs+++ b/test/finalize.test.mjs@@ -13,8 +13,8 @@ import {defaultFinalizeReceiptPath,defaultFinalizeSummaryPath,runFinalize,-} from '../bin/finalize.mjs';-import { CAPTURE_VIEWPORTS, VISUAL_CHECK_VIEWPORTS } from '../bin/visual-check.mjs';+} from '../archify/bin/finalize.mjs';+import { CAPTURE_VIEWPORTS, VISUAL_CHECK_VIEWPORTS } from '../archify/bin/visual-check.mjs';function workspace(t) {const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-finalize-'));@@ -561,7 +561,7 @@ test('public deliver and finalize CLI propagate a real workflow viewport warningconst directory = workspace(t);const input = path.join(directory, 'warning.workflow.json');const output = path.join(directory, 'warning.html');- const cli = fileURLToPath(new URL('../bin/archify.mjs', import.meta.url));+ const cli = fileURLToPath(new URL('../archify/bin/archify.mjs', import.meta.url));fs.writeFileSync(input, `${JSON.stringify({schema_version: 1,diagram_type: 'workflow',diff --git a/archify/test/finder-browser.test.mjs b/test/finder-browser.test.mjssimilarity index 99%rename from archify/test/finder-browser.test.mjsrename to test/finder-browser.test.mjsindex 14b4cd7d..bc301d0b 100644--- a/archify/test/finder-browser.test.mjs+++ b/test/finder-browser.test.mjs@@ -5,10 +5,10 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';import { createViewerClick } from './helpers/viewer-click.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chromeConfigured = Object.prototype.hasOwnProperty.call(process.env, 'ARCHIFY_CHROME');const chrome = chromeConfigured ? findChrome() : null;if (chromeConfigured && !chrome) {diff --git a/archify/test/finder.test.mjs b/test/finder.test.mjssimilarity index 98%rename from archify/test/finder.test.mjsrename to test/finder.test.mjsindex 2cfd10e2..068c6960 100644--- a/archify/test/finder.test.mjs+++ b/test/finder.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-finder-'));const CASES = {diff --git a/archify/test/fixtures/architecture-first-draft/audit-luna.architecture.json b/test/fixtures/architecture-first-draft/audit-luna.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/architecture-first-draft/audit-luna.architecture.jsonrename to test/fixtures/architecture-first-draft/audit-luna.architecture.jsondiff --git a/archify/test/fixtures/architecture-first-draft/audit-terra.architecture.json b/test/fixtures/architecture-first-draft/audit-terra.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/architecture-first-draft/audit-terra.architecture.jsonrename to test/fixtures/architecture-first-draft/audit-terra.architecture.jsondiff --git a/archify/test/fixtures/architecture-first-draft/queue-luna.architecture.json b/test/fixtures/architecture-first-draft/queue-luna.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/architecture-first-draft/queue-luna.architecture.jsonrename to test/fixtures/architecture-first-draft/queue-luna.architecture.jsondiff --git a/archify/test/fixtures/architecture-first-draft/queue-sol.architecture.json b/test/fixtures/architecture-first-draft/queue-sol.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/architecture-first-draft/queue-sol.architecture.jsonrename to test/fixtures/architecture-first-draft/queue-sol.architecture.jsondiff --git a/archify/test/fixtures/architecture-label-repair/worldscope.json b/test/fixtures/architecture-label-repair/worldscope.jsonsimilarity index 100%rename from archify/test/fixtures/architecture-label-repair/worldscope.jsonrename to test/fixtures/architecture-label-repair/worldscope.jsondiff --git a/archify/test/fixtures/architecture-viewport/portrait-cards.architecture.json b/test/fixtures/architecture-viewport/portrait-cards.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/architecture-viewport/portrait-cards.architecture.jsonrename to test/fixtures/architecture-viewport/portrait-cards.architecture.jsondiff --git a/archify/test/fixtures/architecture-viewport/readable-scroll-worldscope.architecture.json b/test/fixtures/architecture-viewport/readable-scroll-worldscope.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/architecture-viewport/readable-scroll-worldscope.architecture.jsonrename to test/fixtures/architecture-viewport/readable-scroll-worldscope.architecture.jsondiff --git a/archify/test/fixtures/architecture-viewport/route-expanded-worldscope.architecture.json b/test/fixtures/architecture-viewport/route-expanded-worldscope.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/architecture-viewport/route-expanded-worldscope.architecture.jsonrename to test/fixtures/architecture-viewport/route-expanded-worldscope.architecture.jsondiff --git a/archify/test/fixtures/automatic-routing-node-border-clearance.workflow.json b/test/fixtures/automatic-routing-node-border-clearance.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/automatic-routing-node-border-clearance.workflow.jsonrename to test/fixtures/automatic-routing-node-border-clearance.workflow.jsondiff --git a/archify/test/fixtures/issue-126/custom-widths.workflow.json b/test/fixtures/issue-126/custom-widths.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/issue-126/custom-widths.workflow.jsonrename to test/fixtures/issue-126/custom-widths.workflow.jsondiff --git a/archify/test/fixtures/issue-126/explicit-route.workflow.json b/test/fixtures/issue-126/explicit-route.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/issue-126/explicit-route.workflow.jsonrename to test/fixtures/issue-126/explicit-route.workflow.jsondiff --git a/archify/test/fixtures/issue-126/explicit-viewbox.workflow.json b/test/fixtures/issue-126/explicit-viewbox.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/issue-126/explicit-viewbox.workflow.jsonrename to test/fixtures/issue-126/explicit-viewbox.workflow.jsondiff --git a/archify/test/fixtures/issue-126/labels.workflow.json b/test/fixtures/issue-126/labels.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/issue-126/labels.workflow.jsonrename to test/fixtures/issue-126/labels.workflow.jsondiff --git a/archify/test/fixtures/japanese-locale.architecture.json b/test/fixtures/japanese-locale.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/japanese-locale.architecture.jsonrename to test/fixtures/japanese-locale.architecture.jsondiff --git a/archify/test/fixtures/korean-locale.architecture.json b/test/fixtures/korean-locale.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/korean-locale.architecture.jsonrename to test/fixtures/korean-locale.architecture.jsondiff --git a/archify/test/fixtures/lifecycle-planner/approval.lifecycle.json b/test/fixtures/lifecycle-planner/approval.lifecycle.jsonsimilarity index 100%rename from archify/test/fixtures/lifecycle-planner/approval.lifecycle.jsonrename to test/fixtures/lifecycle-planner/approval.lifecycle.jsondiff --git a/archify/test/fixtures/lifecycle-planner/band-title-overlap.lifecycle.json b/test/fixtures/lifecycle-planner/band-title-overlap.lifecycle.jsonsimilarity index 100%rename from archify/test/fixtures/lifecycle-planner/band-title-overlap.lifecycle.jsonrename to test/fixtures/lifecycle-planner/band-title-overlap.lifecycle.jsondiff --git a/archify/test/fixtures/lifecycle-planner/review-hub.lifecycle.json b/test/fixtures/lifecycle-planner/review-hub.lifecycle.jsonsimilarity index 100%rename from archify/test/fixtures/lifecycle-planner/review-hub.lifecycle.jsonrename to test/fixtures/lifecycle-planner/review-hub.lifecycle.jsondiff --git a/archify/test/fixtures/reader-readability/synthetic-wide.architecture.json b/test/fixtures/reader-readability/synthetic-wide.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/reader-readability/synthetic-wide.architecture.jsonrename to test/fixtures/reader-readability/synthetic-wide.architecture.jsondiff --git a/archify/test/fixtures/v1-baseline/agent-run.lifecycle.json b/test/fixtures/v1-baseline/agent-run.lifecycle.jsonsimilarity index 100%rename from archify/test/fixtures/v1-baseline/agent-run.lifecycle.jsonrename to test/fixtures/v1-baseline/agent-run.lifecycle.jsondiff --git a/archify/test/fixtures/v1-baseline/agent-tool-call.workflow.json b/test/fixtures/v1-baseline/agent-tool-call.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/v1-baseline/agent-tool-call.workflow.jsonrename to test/fixtures/v1-baseline/agent-tool-call.workflow.jsondiff --git a/archify/test/fixtures/v1-baseline/cache-miss-request.sequence.json b/test/fixtures/v1-baseline/cache-miss-request.sequence.jsonsimilarity index 100%rename from archify/test/fixtures/v1-baseline/cache-miss-request.sequence.jsonrename to test/fixtures/v1-baseline/cache-miss-request.sequence.jsondiff --git a/archify/test/fixtures/v1-baseline/event-stream.dataflow.json b/test/fixtures/v1-baseline/event-stream.dataflow.jsonsimilarity index 100%rename from archify/test/fixtures/v1-baseline/event-stream.dataflow.jsonrename to test/fixtures/v1-baseline/event-stream.dataflow.jsondiff --git a/archify/test/fixtures/v1-baseline/product-analytics.dataflow.json b/test/fixtures/v1-baseline/product-analytics.dataflow.jsonsimilarity index 100%rename from archify/test/fixtures/v1-baseline/product-analytics.dataflow.jsonrename to test/fixtures/v1-baseline/product-analytics.dataflow.jsondiff --git a/archify/test/fixtures/v1-baseline/production-deployment.architecture.json b/test/fixtures/v1-baseline/production-deployment.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/v1-baseline/production-deployment.architecture.jsonrename to test/fixtures/v1-baseline/production-deployment.architecture.jsondiff --git a/archify/test/fixtures/v1-baseline/web-app.architecture.json b/test/fixtures/v1-baseline/web-app.architecture.jsonsimilarity index 100%rename from archify/test/fixtures/v1-baseline/web-app.architecture.jsonrename to test/fixtures/v1-baseline/web-app.architecture.jsondiff --git a/archify/test/fixtures/v1-workflow-700x400.workflow.json b/test/fixtures/v1-workflow-700x400.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/v1-workflow-700x400.workflow.jsonrename to test/fixtures/v1-workflow-700x400.workflow.jsondiff --git a/archify/test/fixtures/v1-workflow-explicit-coordinates.workflow.json b/test/fixtures/v1-workflow-explicit-coordinates.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/v1-workflow-explicit-coordinates.workflow.jsonrename to test/fixtures/v1-workflow-explicit-coordinates.workflow.jsondiff --git a/archify/test/fixtures/workflow-first-draft/release-luna.workflow.json b/test/fixtures/workflow-first-draft/release-luna.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/workflow-first-draft/release-luna.workflow.jsonrename to test/fixtures/workflow-first-draft/release-luna.workflow.jsondiff --git a/archify/test/fixtures/workflow-routing-clarity.workflow.json b/test/fixtures/workflow-routing-clarity.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/workflow-routing-clarity.workflow.jsonrename to test/fixtures/workflow-routing-clarity.workflow.jsondiff --git a/archify/test/fixtures/workflow-shared-trunks.workflow.json b/test/fixtures/workflow-shared-trunks.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/workflow-shared-trunks.workflow.jsonrename to test/fixtures/workflow-shared-trunks.workflow.jsondiff --git a/archify/test/fixtures/workflow-viewport/README.md b/test/fixtures/workflow-viewport/README.mdsimilarity index 100%rename from archify/test/fixtures/workflow-viewport/README.mdrename to test/fixtures/workflow-viewport/README.mddiff --git a/archify/test/fixtures/workflow-viewport/order-overflow.workflow.json b/test/fixtures/workflow-viewport/order-overflow.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/workflow-viewport/order-overflow.workflow.jsonrename to test/fixtures/workflow-viewport/order-overflow.workflow.jsondiff --git a/archify/test/fixtures/workflow-viewport/order-reflow.workflow.json b/test/fixtures/workflow-viewport/order-reflow.workflow.jsonsimilarity index 100%rename from archify/test/fixtures/workflow-viewport/order-reflow.workflow.jsonrename to test/fixtures/workflow-viewport/order-reflow.workflow.jsondiff --git a/archify/test/focus-browser.test.mjs b/test/focus-browser.test.mjssimilarity index 99%rename from archify/test/focus-browser.test.mjsrename to test/focus-browser.test.mjsindex cdff1742..77925c61 100644--- a/archify/test/focus-browser.test.mjs+++ b/test/focus-browser.test.mjs@@ -5,10 +5,10 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { findChrome } from '../bin/visual-check.mjs';+import { findChrome } from '../archify/bin/visual-check.mjs';import { desktopBrowser, desktopPointerCheck } from './helpers/desktop-browser.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;test('Focus preserves semantic selection, relationships, reachability and shared flow tokens', {diff --git a/archify/test/gallery.test.mjs b/test/gallery.test.mjssimilarity index 98%rename from archify/test/gallery.test.mjsrename to test/gallery.test.mjsindex 8ecbb16c..19e60ade 100644--- a/archify/test/gallery.test.mjs+++ b/test/gallery.test.mjs@@ -6,10 +6,10 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { SCENARIO_RECIPES } from '../recipes/scenarios.mjs';+import { SCENARIO_RECIPES } from '../archify/recipes/scenarios.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-gallery-'));const generatedRoot = path.join(tmp, 'docs');diff --git a/archify/test/generate-validators.test.mjs b/test/generate-validators.test.mjssimilarity index 97%rename from archify/test/generate-validators.test.mjsrename to test/generate-validators.test.mjsindex 2d48c4ea..bd6d809b 100644--- a/archify/test/generate-validators.test.mjs+++ b/test/generate-validators.test.mjs@@ -5,10 +5,10 @@ import fs from 'node:fs';import path from 'node:path';import { fileURLToPath } from 'node:url';import Ajv2020 from 'ajv/dist/2020.js';-import * as generatedValidators from '../renderers/shared/generated-validators.mjs';+import * as generatedValidators from '../archify/renderers/shared/generated-validators.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const validateWorkflow = generatedValidators.workflow;const commonSchema = JSON.parse(fs.readFileSync(path.join(skillRoot, 'schemas', 'common.schema.json'), 'utf8'),diff --git a/archify/test/generate-viewer.test.mjs b/test/generate-viewer.test.mjssimilarity index 99%rename from archify/test/generate-viewer.test.mjsrename to test/generate-viewer.test.mjsindex 96e2810c..2b63213f 100644--- a/archify/test/generate-viewer.test.mjs+++ b/test/generate-viewer.test.mjs@@ -6,7 +6,7 @@ import path from 'node:path';import { spawnSync } from 'node:child_process';import { fileURLToPath } from 'node:url';-const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');+const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');const marker = '/* ARCHIFY:READER_LAYOUT */';const viewerCssMarker = '/* ARCHIFY:VIEWER_CSS */';const exportMarker = '/* ARCHIFY:EXPORT */';diff --git a/archify/test/generated-artifact-xml.test.mjs b/test/generated-artifact-xml.test.mjssimilarity index 98%rename from archify/test/generated-artifact-xml.test.mjsrename to test/generated-artifact-xml.test.mjsindex 22e7a7af..9ea222f1 100644--- a/archify/test/generated-artifact-xml.test.mjs+++ b/test/generated-artifact-xml.test.mjs@@ -7,7 +7,7 @@ import { fileURLToPath } from 'node:url';import { extractSvgs, parseXml } from './helpers/xml.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const artifactRoots = ['archify/examples',diff --git a/archify/test/geometry.test.mjs b/test/geometry.test.mjssimilarity index 99%rename from archify/test/geometry.test.mjsrename to test/geometry.test.mjsindex 694a3be3..c9f83aba 100644--- a/archify/test/geometry.test.mjs+++ b/test/geometry.test.mjs@@ -38,8 +38,8 @@ import {suggestLabelObstacleFix,suggestComponentSeparation,cleanLabelCanvasContainmentProblems,-} from '../renderers/shared/geometry.mjs';-import { textUnits, applyTemplate, renderSemanticSigil } from '../renderers/shared/utils.mjs';+} from '../archify/renderers/shared/geometry.mjs';+import { textUnits, applyTemplate, renderSemanticSigil } from '../archify/renderers/shared/utils.mjs';const rect = (x, y, w, h) => ({ x, y, width: w, height: h, cx: x + w / 2, cy: y + h / 2 });diff --git a/archify/test/golden.mjs b/test/golden.mjssimilarity index 99%rename from archify/test/golden.mjsrename to test/golden.mjsindex c1e1e536..571a111a 100644--- a/archify/test/golden.mjs+++ b/test/golden.mjs@@ -3,7 +3,7 @@// development and packaged example HTML aside from platform checkout line endings. Also covers schema enforcement (negative cases),// template freshness of the architecture-mode example, and version sync.//-// Run from the skill folder: npm test+// Run from the repository root: npm testimport { execFileSync } from 'node:child_process';import fs from 'node:fs';@@ -12,7 +12,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-test-'));diff --git a/archify/test/grid.test.mjs b/test/grid.test.mjssimilarity index 96%rename from archify/test/grid.test.mjsrename to test/grid.test.mjsindex 4154d847..ef39174e 100644--- a/archify/test/grid.test.mjs+++ b/test/grid.test.mjs@@ -1,6 +1,6 @@import { test } from 'node:test';import assert from 'node:assert/strict';-import { gridLayout, resolveComponentPos, validateGridPlacement } from '../renderers/architecture/grid.mjs';+import { gridLayout, resolveComponentPos, validateGridPlacement } from '../archify/renderers/architecture/grid.mjs';test('gridLayout returns null for free placement', () => {assert.equal(gridLayout({}), null);diff --git a/archify/test/guide-page.test.mjs b/test/guide-page.test.mjssimilarity index 98%rename from archify/test/guide-page.test.mjsrename to test/guide-page.test.mjsindex b5ba6df4..7002521f 100644--- a/archify/test/guide-page.test.mjs+++ b/test/guide-page.test.mjs@@ -8,7 +8,7 @@ import vm from 'node:vm';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');test('guide page: checked-in HTML is reproducible from the shared recipe source', () => {diff --git a/archify/test/guide.test.mjs b/test/guide.test.mjssimilarity index 99%rename from archify/test/guide.test.mjsrename to test/guide.test.mjsindex ebe35d13..bb49098e 100644--- a/archify/test/guide.test.mjs+++ b/test/guide.test.mjs@@ -6,7 +6,7 @@ import {listScenarioRecipes,publicGuideData,recommendScenario,-} from '../recipes/scenarios.mjs';+} from '../archify/recipes/scenarios.mjs';test('guide: exposes 13 unique recipes across every diagram type, including repair', () => {assert.equal(SCENARIO_RECIPES.length, 13);diff --git a/archify/test/helpers/desktop-browser.mjs b/test/helpers/desktop-browser.mjssimilarity index 96%rename from archify/test/helpers/desktop-browser.mjsrename to test/helpers/desktop-browser.mjsindex 00bc1f46..c4da421b 100644--- a/archify/test/helpers/desktop-browser.mjs+++ b/test/helpers/desktop-browser.mjs@@ -1,6 +1,6 @@import assert from 'node:assert/strict';import { spawn } from 'node:child_process';-import { ChromeVisualBrowser } from '../../bin/visual-check.mjs';+import { ChromeVisualBrowser } from '../../archify/bin/visual-check.mjs';// Test-only Blink settings: headless hosts may have no physical mouse.// Disabling touch emulation would restore those host defaults and undo this.diff --git a/archify/test/helpers/offline-fonts.mjs b/test/helpers/offline-fonts.mjssimilarity index 97%rename from archify/test/helpers/offline-fonts.mjsrename to test/helpers/offline-fonts.mjsindex d5beebf1..3bc7fb32 100644--- a/archify/test/helpers/offline-fonts.mjs+++ b/test/helpers/offline-fonts.mjs@@ -3,7 +3,7 @@ import { createHash } from 'node:crypto';import fs from 'node:fs';import { parse } from 'parse5';-const FONT_LICENSE = fs.readFileSync(new URL('../../assets/JetBrainsMono-OFL.txt', import.meta.url), 'utf8').trim();+const FONT_LICENSE = fs.readFileSync(new URL('../../archify/assets/JetBrainsMono-OFL.txt', import.meta.url), 'utf8').trim();// Pinned Google Fonts v24 bytes and coverage, independent of CSS formatting.const EXPECTED_FACES = [diff --git a/archify/test/helpers/viewer-click.mjs b/test/helpers/viewer-click.mjssimilarity index 100%rename from archify/test/helpers/viewer-click.mjsrename to test/helpers/viewer-click.mjsdiff --git a/archify/test/helpers/xml.mjs b/test/helpers/xml.mjssimilarity index 100%rename from archify/test/helpers/xml.mjsrename to test/helpers/xml.mjsdiff --git a/archify/test/i18n.test.mjs b/test/i18n.test.mjssimilarity index 99%rename from archify/test/i18n.test.mjsrename to test/i18n.test.mjsindex 839996b2..d4aec6ad 100644--- a/archify/test/i18n.test.mjs+++ b/test/i18n.test.mjs@@ -7,7 +7,7 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';import {SUPPORTED_LOCALES,@@ -18,10 +18,10 @@ import {translateMessage,registerLocale,validateTranslations,-} from '../renderers/shared/i18n.mjs';+} from '../archify/renderers/shared/i18n.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const templatePath = path.join(skillRoot, 'assets/template.html');const ES_TRANSLATIONS = JSON.parse(fs.readFileSync(path.join(skillRoot, 'locales/es.json'), 'utf8'));@@ -287,7 +287,7 @@ test('omitted locale preserves non-English authored content and the English View});function deliverKoreanFixture() {- const fixture = path.join(skillRoot, 'test/fixtures/korean-locale.architecture.json');+ const fixture = path.join(skillRoot, '..', 'test', 'fixtures/korean-locale.architecture.json');const source = JSON.parse(fs.readFileSync(fixture, 'utf8'));assert.equal(source.meta.locale, 'ko');assert.match(source.meta.title, /[가-힣]/);@@ -366,7 +366,7 @@ test('visual-check binds the delivered Korean fixture to viewport and theme rece// localizing only the fixed chrome around it. Japanese is a second,// independent worked example of that same end-to-end pattern.function deliverJapaneseFixture() {- const fixture = path.join(skillRoot, 'test/fixtures/japanese-locale.architecture.json');+ const fixture = path.join(skillRoot, '..', 'test', 'fixtures/japanese-locale.architecture.json');const source = JSON.parse(fs.readFileSync(fixture, 'utf8'));assert.equal(source.meta.locale, 'ja');assert.match(source.meta.title, /[-ヿ一-鿿]/);diff --git a/archify/test/intent-trace-browser.test.mjs b/test/intent-trace-browser.test.mjssimilarity index 99%rename from archify/test/intent-trace-browser.test.mjsrename to test/intent-trace-browser.test.mjsindex 696acdba..97541921 100644--- a/archify/test/intent-trace-browser.test.mjs+++ b/test/intent-trace-browser.test.mjs@@ -5,10 +5,10 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { findChrome } from '../bin/visual-check.mjs';+import { findChrome } from '../archify/bin/visual-check.mjs';import { desktopBrowser, desktopPointerCheck } from './helpers/desktop-browser.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;test('Intent Trace preserves input handoffs, transient geometry and cleanup', {diff --git a/archify/test/intent-trace.test.mjs b/test/intent-trace.test.mjssimilarity index 99%rename from archify/test/intent-trace.test.mjsrename to test/intent-trace.test.mjsindex 5c66bb7f..0cf1c0ef 100644--- a/archify/test/intent-trace.test.mjs+++ b/test/intent-trace.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-intent-trace-'));const CASES = {diff --git a/archify/test/joint-layout-browser.test.mjs b/test/joint-layout-browser.test.mjssimilarity index 99%rename from archify/test/joint-layout-browser.test.mjsrename to test/joint-layout-browser.test.mjsindex 14ac35f8..57bbcf3f 100644--- a/archify/test/joint-layout-browser.test.mjs+++ b/test/joint-layout-browser.test.mjs@@ -5,9 +5,9 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome, runVisualCheck } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome, runVisualCheck } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const configured = Object.prototype.hasOwnProperty.call(process.env, 'ARCHIFY_CHROME');const chrome = configured ? findChrome() : null;if (configured && !chrome) throw new Error(`ARCHIFY_CHROME is not executable: ${process.env.ARCHIFY_CHROME}`);@@ -170,7 +170,7 @@ test('one joint wait preserves real Reader/Chrome convergence at the CLI boundarconst wideInput = path.join(repo, 'wide.json');fs.writeFileSync(wideInput, JSON.stringify(wideSource));const wide = render('wide', wideInput, repo);- const intrinsic = render('intrinsic', 'test/fixtures/architecture-viewport/route-expanded-worldscope.architecture.json');+ const intrinsic = render('intrinsic', '../test/fixtures/architecture-viewport/route-expanded-worldscope.architecture.json');const pristine = new Map([wide, intrinsic].map(file => [file, fs.readFileSync(file, 'utf8')]));function variant(name, base, { before = '', after = '' } = {}) {let html = pristine.get(base);diff --git a/archify/test/joint-layout-contract.test.mjs b/test/joint-layout-contract.test.mjssimilarity index 99%rename from archify/test/joint-layout-contract.test.mjsrename to test/joint-layout-contract.test.mjsindex ae392c38..8a6952f6 100644--- a/archify/test/joint-layout-contract.test.mjs+++ b/test/joint-layout-contract.test.mjs@@ -6,12 +6,12 @@ import path from 'node:path';import vm from 'node:vm';import { EventEmitter } from 'node:events';import { fileURLToPath } from 'node:url';-import { ChromeVisualBrowser, runVisualCheck } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, runVisualCheck } from '../archify/bin/visual-check.mjs';// Minimal 1x1 PNG so visual-check's capture path has bytes to persist.const PNG_STUB = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==';-const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');const template = fs.readFileSync(path.join(root, 'viewer/template.source.html'), 'utf8');const helper = template.slice(template.indexOf(' const archifyLayoutOwners ='), template.indexOf('/* ARCHIFY:READER_LAYOUT */'));const joint = template.slice(template.indexOf(' Archify.layoutStability ='), template.indexOf('/* ARCHIFY:CAMERA */'));diff --git a/archify/test/label-clearance.test.mjs b/test/label-clearance.test.mjssimilarity index 96%rename from archify/test/label-clearance.test.mjsrename to test/label-clearance.test.mjsindex 2afdb571..764d8dff 100644--- a/archify/test/label-clearance.test.mjs+++ b/test/label-clearance.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';import { parse } from 'parse5';-const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-label-clearance-'));after(() => fs.rmSync(tmp, { recursive: true, force: true }));let counter = 0;@@ -68,7 +68,7 @@ for (const quality of ['standard', 'showcase']) {}for (const version of [1, 2]) {test(`workflow v${version} clears PromptScript without changing box width or shrinking text`, () => {- const doc = version === 1 ? load('test/fixtures/v1-workflow-700x400.workflow.json') : load('examples/agent-tool-call.workflow.json');+ const doc = version === 1 ? load('../test/fixtures/v1-workflow-700x400.workflow.json') : load('examples/agent-tool-call.workflow.json');const first = doc.nodes[0]; Object.assign(first, { label: 'PromptScript', width: 92 });delete first.brand; delete first.sublabel; delete first.tag;const p = parts(deliver('workflow', doc), first.id); checkLabel(p, 'PromptScript');@@ -77,7 +77,7 @@ for (const version of [1, 2]) {});}test('a short fixed box fits only the decorative sigil while retaining text and bounds', () => {- const doc = load('test/fixtures/v1-workflow-700x400.workflow.json');+ const doc = load('../test/fixtures/v1-workflow-700x400.workflow.json');const first = doc.nodes[0]; Object.assign(first, { label: 'PromptScript', width: 92, height: 32 });delete first.brand; delete first.sublabel; delete first.tag;const p = parts(deliver('workflow', doc), first.id); checkLabel(p, 'PromptScript');diff --git a/archify/test/landing.test.mjs b/test/landing.test.mjssimilarity index 98%rename from archify/test/landing.test.mjsrename to test/landing.test.mjsindex 0459cc82..29653e96 100644--- a/archify/test/landing.test.mjs+++ b/test/landing.test.mjs@@ -5,7 +5,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const docsRoot = path.join(repoRoot, 'docs');const landing = fs.readFileSync(path.join(docsRoot, 'index.html'), 'utf8');diff --git a/archify/test/layout-rules.test.mjs b/test/layout-rules.test.mjssimilarity index 99%rename from archify/test/layout-rules.test.mjsrename to test/layout-rules.test.mjsindex 0d81d7bc..be2643f2 100644--- a/archify/test/layout-rules.test.mjs+++ b/test/layout-rules.test.mjs@@ -17,10 +17,10 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { minimumReadableSourceTextPx } from '../renderers/shared/desktop-readability.mjs';+import { minimumReadableSourceTextPx } from '../archify/renderers/shared/desktop-readability.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-rules-'));const EXAMPLES = {@@ -768,7 +768,7 @@ test('workflow: same-lane offset auto edge stays orthogonal', () => {test('workflow: automatic routing uses one bend and avoids every node border', () => {const d = JSON.parse(fs.readFileSync(- path.join(skillRoot, 'test/fixtures/automatic-routing-node-border-clearance.workflow.json'),+ path.join(skillRoot, '..', 'test', 'fixtures/automatic-routing-node-border-clearance.workflow.json'),'utf8',));const { code, stderr, outPath } = render('workflow', d);@@ -1008,7 +1008,7 @@ for (const qualityProfile of ['standard', 'showcase']) {test('workflow: explicit labelAt remains authoritative on an automatic one-bend edge', () => {const d = JSON.parse(fs.readFileSync(- path.join(skillRoot, 'test/fixtures/automatic-routing-node-border-clearance.workflow.json'),+ path.join(skillRoot, '..', 'test', 'fixtures/automatic-routing-node-border-clearance.workflow.json'),'utf8',));d.edges[0].labelAt = [350, 166];diff --git a/archify/test/legend-contract.test.mjs b/test/legend-contract.test.mjssimilarity index 99%rename from archify/test/legend-contract.test.mjsrename to test/legend-contract.test.mjsindex d4a15513..4e3a1719 100644--- a/archify/test/legend-contract.test.mjs+++ b/test/legend-contract.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-legend-contract-'));let sequence = 0;diff --git a/archify/test/lifecycle-band-title.test.mjs b/test/lifecycle-band-title.test.mjssimilarity index 94%rename from archify/test/lifecycle-band-title.test.mjsrename to test/lifecycle-band-title.test.mjsindex a941c07a..b1674105 100644--- a/archify/test/lifecycle-band-title.test.mjs+++ b/test/lifecycle-band-title.test.mjs@@ -5,9 +5,9 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';-const root = fileURLToPath(new URL('../', import.meta.url));-const fixture = JSON.parse(fs.readFileSync(path.join(root, 'test/fixtures/lifecycle-planner/band-title-overlap.lifecycle.json')));+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';+const root = fileURLToPath(new URL('../archify/', import.meta.url));+const fixture = JSON.parse(fs.readFileSync(path.join(root, '..', 'test/fixtures/lifecycle-planner/band-title-overlap.lifecycle.json')));function run(t, doc, command = 'validate') {const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-band-title-'));t.after(() => fs.rmSync(dir, { recursive: true, force: true }));diff --git a/archify/test/lifecycle-note-only.test.mjs b/test/lifecycle-note-only.test.mjssimilarity index 98%rename from archify/test/lifecycle-note-only.test.mjsrename to test/lifecycle-note-only.test.mjsindex 0069e41d..36b346ec 100644--- a/archify/test/lifecycle-note-only.test.mjs+++ b/test/lifecycle-note-only.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';import { parse } from 'parse5';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const attr = (node, name) => node.attrs?.find((item) => item.name === name)?.value;const walk = (node) => [node, ...(node.childNodes || []).flatMap(walk)];@@ -168,8 +168,7 @@ test('note-only text participates in collisions with another transition label',test('showcase planner reserves and places note-only text like equivalent ordinary labels', { timeout: 60000 }, (t) => {const data = fixture(t);- const original = JSON.parse(fs.readFileSync(path.join(skillRoot,- 'test/fixtures/lifecycle-planner/approval.lifecycle.json'), 'utf8'));+ const original = JSON.parse(fs.readFileSync(path.join(skillRoot, '..', 'test/fixtures/lifecycle-planner/approval.lifecycle.json'), 'utf8'));assert.equal(original.meta.quality_profile, 'showcase');const snapshots = {};for (const mode of ['labels', 'notes', 'no-text']) {diff --git a/archify/test/lifecycle-planner.test.mjs b/test/lifecycle-planner.test.mjssimilarity index 95%rename from archify/test/lifecycle-planner.test.mjsrename to test/lifecycle-planner.test.mjsindex 7c6119eb..fd2ea275 100644--- a/archify/test/lifecycle-planner.test.mjs+++ b/test/lifecycle-planner.test.mjs@@ -6,10 +6,10 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const renderer = path.join(skillRoot, 'renderers/lifecycle/render-lifecycle.mjs');-const fixture = path.join(skillRoot, 'test/fixtures/lifecycle-planner/review-hub.lifecycle.json');+const fixture = path.join(skillRoot, '..', 'test', 'fixtures/lifecycle-planner/review-hub.lifecycle.json');function validate(input) {const result = spawnSync(process.execPath, [cli, 'validate', 'lifecycle', input, '--quality', 'showcase', '--json'], { encoding: 'utf8' });@@ -78,7 +78,7 @@ test('lifecycle: planner routes render as one semantic edge with a crossover mas// the planner reserved label space, the parallel routes left "reviewer// requests changes" nowhere to go and the author had to hand-route.test('lifecycle: a fan-out first draft keeps every label beside its own transition', () => {- const approval = path.join(skillRoot, 'test/fixtures/lifecycle-planner/approval.lifecycle.json');+ const approval = path.join(skillRoot, '..', 'test', 'fixtures/lifecycle-planner/approval.lifecycle.json');const { status, receipt } = validate(approval);assert.equal(status, 0, JSON.stringify(receipt.diagnostics, null, 2));assert.equal(receipt.composition.summary.errors, 0);diff --git a/archify/test/lifecycle-rail-browser.test.mjs b/test/lifecycle-rail-browser.test.mjssimilarity index 97%rename from archify/test/lifecycle-rail-browser.test.mjsrename to test/lifecycle-rail-browser.test.mjsindex 75e38d54..1d17220d 100644--- a/archify/test/lifecycle-rail-browser.test.mjs+++ b/test/lifecycle-rail-browser.test.mjs@@ -6,11 +6,11 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { findChrome } from '../bin/visual-check.mjs';+import { findChrome } from '../archify/bin/visual-check.mjs';import { desktopBrowser, desktopPointerCheck } from './helpers/desktop-browser.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const browserRequested = Object.hasOwn(process.env, 'ARCHIFY_CHROME');const chromePath = browserRequested ? findChrome() : null;diff --git a/archify/test/lifecycle-v2-layout.test.mjs b/test/lifecycle-v2-layout.test.mjssimilarity index 98%rename from archify/test/lifecycle-v2-layout.test.mjsrename to test/lifecycle-v2-layout.test.mjsindex 16588a20..659d0e05 100644--- a/archify/test/lifecycle-v2-layout.test.mjs+++ b/test/lifecycle-v2-layout.test.mjs@@ -5,11 +5,11 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { nodeLabelLayout } from '../renderers/shared/text-fit.mjs';-import { SOURCE_BADGE_FOOTPRINT } from '../renderers/shared/utils.mjs';+import { nodeLabelLayout } from '../archify/renderers/shared/text-fit.mjs';+import { SOURCE_BADGE_FOOTPRINT } from '../archify/renderers/shared/utils.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-lifecycle-v2-'));function render(name, doc) {diff --git a/archify/test/meta-output-contract.test.mjs b/test/meta-output-contract.test.mjssimilarity index 99%rename from archify/test/meta-output-contract.test.mjsrename to test/meta-output-contract.test.mjsindex 2f2b8d6d..d0cfe400 100644--- a/archify/test/meta-output-contract.test.mjs+++ b/test/meta-output-contract.test.mjs@@ -7,7 +7,7 @@ import assert from 'node:assert/strict';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');const architectureExample = path.join(skillRoot, 'examples', 'web-app.architecture.json');const workflowFixture = path.join(diff --git a/archify/test/motion-governor-browser.test.mjs b/test/motion-governor-browser.test.mjssimilarity index 99%rename from archify/test/motion-governor-browser.test.mjsrename to test/motion-governor-browser.test.mjsindex 5e07b4a6..cfa54b76 100644--- a/archify/test/motion-governor-browser.test.mjs+++ b/test/motion-governor-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;test('Motion Governor preserves mode, ownership, ambient completion and real callers', {diff --git a/archify/test/motion-governor.test.mjs b/test/motion-governor.test.mjssimilarity index 98%rename from archify/test/motion-governor.test.mjsrename to test/motion-governor.test.mjsindex 90299c2b..f9ae7091 100644--- a/archify/test/motion-governor.test.mjs+++ b/test/motion-governor.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-motion-governor-'));const CASES = {diff --git a/archify/test/native-output-path.test.mjs b/test/native-output-path.test.mjssimilarity index 99%rename from archify/test/native-output-path.test.mjsrename to test/native-output-path.test.mjsindex 91460649..c0595c2d 100644--- a/archify/test/native-output-path.test.mjs+++ b/test/native-output-path.test.mjs@@ -7,7 +7,7 @@ import {resolveNativeOutputDirectory,resolveOutputPath,validateNativeOutputPath,-} from '../renderers/shared/output-path.mjs';+} from '../archify/renderers/shared/output-path.mjs';function nativeFailure(value, options) {assert.throws(diff --git a/archify/test/node-icons.test.mjs b/test/node-icons.test.mjssimilarity index 99%rename from archify/test/node-icons.test.mjsrename to test/node-icons.test.mjsindex 82fa581d..626fe4ca 100644--- a/archify/test/node-icons.test.mjs+++ b/test/node-icons.test.mjs@@ -6,7 +6,7 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cases = {architecture: ['web-app.architecture.json', 'components'],workflow: ['agent-tool-call.workflow.json', 'nodes'],diff --git a/archify/test/offline-font-browser.test.mjs b/test/offline-font-browser.test.mjssimilarity index 99%rename from archify/test/offline-font-browser.test.mjsrename to test/offline-font-browser.test.mjsindex 582a0a26..8ce6f0ca 100644--- a/archify/test/offline-font-browser.test.mjs+++ b/test/offline-font-browser.test.mjs@@ -5,10 +5,10 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';import { assertFontCss, inspectDocuments } from './helpers/offline-fonts.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;const options = { skip: chrome ? false : 'Set ARCHIFY_CHROME for offline font and export browser acceptance.' };diff --git a/archify/test/offline-self-containment.test.mjs b/test/offline-self-containment.test.mjssimilarity index 99%rename from archify/test/offline-self-containment.test.mjsrename to test/offline-self-containment.test.mjsindex 9175447b..bfe5584f 100644--- a/archify/test/offline-self-containment.test.mjs+++ b/test/offline-self-containment.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';import { assertFontCss, assertOfflineArtifact, inspectDocuments } from './helpers/offline-fonts.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const cli = path.join(skillRoot, 'bin/archify.mjs');const template = fs.readFileSync(path.join(skillRoot, 'assets/template.html'), 'utf8');diff --git a/archify/test/open-artifact.test.mjs b/test/open-artifact.test.mjssimilarity index 98%rename from archify/test/open-artifact.test.mjsrename to test/open-artifact.test.mjsindex e6bae472..18a719c5 100644--- a/archify/test/open-artifact.test.mjs+++ b/test/open-artifact.test.mjs@@ -2,7 +2,7 @@ import { test } from 'node:test';import assert from 'node:assert/strict';import path from 'node:path';-import { openArtifact, openLoopbackUrl } from '../bin/open-artifact.mjs';+import { openArtifact, openLoopbackUrl } from '../archify/bin/open-artifact.mjs';const target = path.resolve("/tmp/-复杂 path 'quoted'/diagram.html");diff --git a/archify/test/ordinary-model-floor.test.mjs b/test/ordinary-model-floor.test.mjssimilarity index 99%rename from archify/test/ordinary-model-floor.test.mjsrename to test/ordinary-model-floor.test.mjsindex 7b7b3ebb..00938d02 100644--- a/archify/test/ordinary-model-floor.test.mjs+++ b/test/ordinary-model-floor.test.mjs@@ -7,7 +7,7 @@ import test from 'node:test';import { fileURLToPath } from 'node:url';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const benchmark = path.join(repoRoot, 'benchmarks/ordinary-model-floor/benchmark.mjs');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-ordinary-model-floor-'));diff --git a/archify/test/output-path.test.mjs b/test/output-path.test.mjssimilarity index 99%rename from archify/test/output-path.test.mjsrename to test/output-path.test.mjsindex 85b808c1..7d1e0971 100644--- a/archify/test/output-path.test.mjs+++ b/test/output-path.test.mjs@@ -5,12 +5,12 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';import test from 'node:test';import assert from 'node:assert/strict';-import { startPreview } from '../bin/preview.mjs';-import { loadDiagram, writeDiagram } from '../renderers/shared/cli.mjs';-import { pathsAlias } from '../renderers/shared/output-path.mjs';+import { startPreview } from '../archify/bin/preview.mjs';+import { loadDiagram, writeDiagram } from '../archify/renderers/shared/cli.mjs';+import { pathsAlias } from '../archify/renderers/shared/output-path.mjs';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const workflowFixture = path.join(skillRoot, 'examples/agent-tool-call.workflow.json');const baseFixture = path.join(skillRoot, 'examples/checkout-platform.base.architecture.json');diff --git a/archify/test/path-boundary-contract.test.mjs b/test/path-boundary-contract.test.mjssimilarity index 99%rename from archify/test/path-boundary-contract.test.mjsrename to test/path-boundary-contract.test.mjsindex 819aaed6..7da79614 100644--- a/archify/test/path-boundary-contract.test.mjs+++ b/test/path-boundary-contract.test.mjs@@ -5,7 +5,7 @@ import test from 'node:test';import { fileURLToPath } from 'node:url';const here = path.dirname(fileURLToPath(import.meta.url));-const repositoryRoot = path.resolve(here, '../..');+const repositoryRoot = path.resolve(here, '..');const productionSourceRoots = ['archify/bin','archify/delta',diff --git a/archify/test/path-semantics.test.mjs b/test/path-semantics.test.mjssimilarity index 99%rename from archify/test/path-semantics.test.mjsrename to test/path-semantics.test.mjsindex beb26bae..f37b1206 100644--- a/archify/test/path-semantics.test.mjs+++ b/test/path-semantics.test.mjs@@ -9,7 +9,7 @@ import {sameEntry,sameLocation,sameParent,-} from '../renderers/shared/path-semantics.mjs';+} from '../archify/renderers/shared/path-semantics.mjs';function scratchDirectory(t) {const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-path-semantics-'));diff --git a/archify/test/portable-path.test.mjs b/test/portable-path.test.mjssimilarity index 99%rename from archify/test/portable-path.test.mjsrename to test/portable-path.test.mjsindex 79ec3082..b81e5be5 100644--- a/archify/test/portable-path.test.mjs+++ b/test/portable-path.test.mjs@@ -4,7 +4,7 @@ import {PortablePathError,validatePortablePath,validatePortablePathSet,-} from '../renderers/shared/portable-path.mjs';+} from '../archify/renderers/shared/portable-path.mjs';function assertPathError(run, { code, reason, profile, segment, index, conflictIndex } = {}) {assert.throws(run, (error) => {diff --git a/archify/test/presentation.test.mjs b/test/presentation.test.mjssimilarity index 98%rename from archify/test/presentation.test.mjsrename to test/presentation.test.mjsindex 57fd6a72..7c248d4f 100644--- a/archify/test/presentation.test.mjs+++ b/test/presentation.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-presentation-'));const CASES = {diff --git a/archify/test/preset-tryon.test.mjs b/test/preset-tryon.test.mjssimilarity index 98%rename from archify/test/preset-tryon.test.mjsrename to test/preset-tryon.test.mjsindex 28a764fa..3a1bd076 100644--- a/archify/test/preset-tryon.test.mjs+++ b/test/preset-tryon.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-preset-tryon-'));const CASES = {diff --git a/archify/test/preview-contract.test.mjs b/test/preview-contract.test.mjssimilarity index 97%rename from archify/test/preview-contract.test.mjsrename to test/preview-contract.test.mjsindex 6342bd5b..d88a6c4c 100644--- a/archify/test/preview-contract.test.mjs+++ b/test/preview-contract.test.mjs@@ -5,7 +5,7 @@ import test from 'node:test';import assert from 'node:assert/strict';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const skill = fs.readFileSync(path.join(skillRoot, 'SKILL.md'), 'utf8');const delivery = fs.readFileSync(path.join(skillRoot, 'references', 'delivery-contract.md'), 'utf8');diff --git a/archify/test/preview-force-stop.test.mjs b/test/preview-force-stop.test.mjssimilarity index 99%rename from archify/test/preview-force-stop.test.mjsrename to test/preview-force-stop.test.mjsindex 7ab2f2a0..f56a7e4f 100644--- a/archify/test/preview-force-stop.test.mjs+++ b/test/preview-force-stop.test.mjs@@ -8,9 +8,9 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';import test from 'node:test';-import { startPreview } from '../bin/preview.mjs';+import { startPreview } from '../archify/bin/preview.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));async function bounded(promise, message, timeout = 1500) {diff --git a/archify/test/preview.test.mjs b/test/preview.test.mjssimilarity index 99%rename from archify/test/preview.test.mjsrename to test/preview.test.mjsindex 80db6774..353bce4c 100644--- a/archify/test/preview.test.mjs+++ b/test/preview.test.mjs@@ -10,10 +10,10 @@ import test from 'node:test';import assert from 'node:assert/strict';import vm from 'node:vm';-import { startPreview } from '../bin/preview.mjs';+import { startPreview } from '../archify/bin/preview.mjs';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');function sha256(file) {return createHash('sha256').update(fs.readFileSync(file)).digest('hex');diff --git a/archify/test/proof-aperture.test.mjs b/test/proof-aperture.test.mjssimilarity index 97%rename from archify/test/proof-aperture.test.mjsrename to test/proof-aperture.test.mjsindex 97a869fb..4040c396 100644--- a/archify/test/proof-aperture.test.mjs+++ b/test/proof-aperture.test.mjs@@ -5,7 +5,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const landing = fs.readFileSync(path.resolve(__dirname, '..', '..', 'docs', 'index.html'), 'utf8');+const landing = fs.readFileSync(path.resolve(__dirname, '..', 'docs', 'index.html'), 'utf8');function cssRule(selector) {const escaped = selector.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');diff --git a/archify/test/reach-share-card.test.mjs b/test/reach-share-card.test.mjssimilarity index 99%rename from archify/test/reach-share-card.test.mjsrename to test/reach-share-card.test.mjsindex 8b10d1c2..e2f90acb 100644--- a/archify/test/reach-share-card.test.mjs+++ b/test/reach-share-card.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-reach-share-card-'));diff --git a/archify/test/reader-cards-overflow-browser.test.mjs b/test/reader-cards-overflow-browser.test.mjssimilarity index 97%rename from archify/test/reader-cards-overflow-browser.test.mjsrename to test/reader-cards-overflow-browser.test.mjsindex 25e84da4..607732a7 100644--- a/archify/test/reader-cards-overflow-browser.test.mjs+++ b/test/reader-cards-overflow-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chromeConfigured = Object.prototype.hasOwnProperty.call(process.env, 'ARCHIFY_CHROME');const chromePath = chromeConfigured ? findChrome() : null;if (chromeConfigured && !chromePath) {diff --git a/archify/test/reader-layout-browser.test.mjs b/test/reader-layout-browser.test.mjssimilarity index 99%rename from archify/test/reader-layout-browser.test.mjsrename to test/reader-layout-browser.test.mjsindex 14e8f37c..d11b5f79 100644--- a/archify/test/reader-layout-browser.test.mjs+++ b/test/reader-layout-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chromeConfigured = Object.prototype.hasOwnProperty.call(process.env, 'ARCHIFY_CHROME');const chromePath = chromeConfigured ? findChrome() : null;if (chromeConfigured && !chromePath) {diff --git a/archify/test/reader-layout-settle-browser.test.mjs b/test/reader-layout-settle-browser.test.mjssimilarity index 94%rename from archify/test/reader-layout-settle-browser.test.mjsrename to test/reader-layout-settle-browser.test.mjsindex e05ef77c..ce7e67d9 100644--- a/archify/test/reader-layout-settle-browser.test.mjs+++ b/test/reader-layout-settle-browser.test.mjs@@ -6,9 +6,9 @@ import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chromeConfigured = Object.prototype.hasOwnProperty.call(process.env, 'ARCHIFY_CHROME');const chromePath = chromeConfigured ? findChrome() : null;if (chromeConfigured && !chromePath) {@@ -27,7 +27,7 @@ test('Reader Layout settles when card height depends on the reader width', {const output = path.join(scratch, 'portrait-cards.html');execFileSync(process.execPath, [path.join(skillRoot, 'renderers/architecture/render-architecture.mjs'),- path.join(skillRoot, 'test/fixtures/architecture-viewport/portrait-cards.architecture.json'),+ path.join(skillRoot, '..', 'test', 'fixtures/architecture-viewport/portrait-cards.architecture.json'),output,]);const browser = new ChromeVisualBrowser(chromePath);diff --git a/archify/test/reader-readability-maintained-browser.test.mjs b/test/reader-readability-maintained-browser.test.mjssimilarity index 97%rename from archify/test/reader-readability-maintained-browser.test.mjsrename to test/reader-readability-maintained-browser.test.mjsindex 0b20cf91..1d4cfea3 100644--- a/archify/test/reader-readability-maintained-browser.test.mjs+++ b/test/reader-readability-maintained-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chromeConfigured = Object.prototype.hasOwnProperty.call(process.env, 'ARCHIFY_CHROME');const chromePath = chromeConfigured ? findChrome() : null;if (chromeConfigured && !chromePath) {@@ -15,7 +15,7 @@ if (chromeConfigured && !chromePath) {}// Full edge labels have real room: caller/listener gap 90px and// queue/worker gap 105px. Readability must not rely on detached label masks.-const fixtureJson = path.join(root, 'test/fixtures/reader-readability/synthetic-wide.architecture.json');+const fixtureJson = path.join(root, '..', 'test/fixtures/reader-readability/synthetic-wide.architecture.json');test('declared wide synthetic reader preserves geometry and reaches edge/node readability', {skip: chromePath ? false :diff --git a/archify/test/readme-showcase.test.mjs b/test/readme-showcase.test.mjssimilarity index 99%rename from archify/test/readme-showcase.test.mjsrename to test/readme-showcase.test.mjsindex 1b46760f..e99bc94f 100644--- a/archify/test/readme-showcase.test.mjs+++ b/test/readme-showcase.test.mjs@@ -8,7 +8,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const assetPath = path.join(repoRoot, 'docs', 'assets', 'archify-live-proof.gif');const receiptPath = path.join(repoRoot, 'docs', 'assets', 'archify-live-proof.json');diff --git a/archify/test/real-repository-proof.test.mjs b/test/real-repository-proof.test.mjssimilarity index 98%rename from archify/test/real-repository-proof.test.mjsrename to test/real-repository-proof.test.mjsindex e7350078..b8e82694 100644--- a/archify/test/real-repository-proof.test.mjs+++ b/test/real-repository-proof.test.mjs@@ -5,10 +5,10 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { verifyRepositoryEvidence } from '../renderers/shared/repository-evidence.mjs';+import { verifyRepositoryEvidence } from '../archify/renderers/shared/repository-evidence.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const sourcePath = path.join(repoRoot, 'docs', 'cases', 'mco-runtime.architecture.json');const artifactPath = path.join(repoRoot, 'docs', 'cases', 'mco-runtime.architecture.html');diff --git a/archify/test/relationship-direct-explorer.test.mjs b/test/relationship-direct-explorer.test.mjssimilarity index 99%rename from archify/test/relationship-direct-explorer.test.mjsrename to test/relationship-direct-explorer.test.mjsindex 0db6c811..ecea714f 100644--- a/archify/test/relationship-direct-explorer.test.mjs+++ b/test/relationship-direct-explorer.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const template = fs.readFileSync(path.join(skillRoot, 'assets', 'template.html'), 'utf8');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-relationship-direct-explorer-'));diff --git a/archify/test/relationship-lens.test.mjs b/test/relationship-lens.test.mjssimilarity index 99%rename from archify/test/relationship-lens.test.mjsrename to test/relationship-lens.test.mjsindex 718fbf8f..746fdc7f 100644--- a/archify/test/relationship-lens.test.mjs+++ b/test/relationship-lens.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-relationship-lens-'));const CASES = {diff --git a/archify/test/relationship-permalink.test.mjs b/test/relationship-permalink.test.mjssimilarity index 99%rename from archify/test/relationship-permalink.test.mjsrename to test/relationship-permalink.test.mjsindex ad6890ff..52095312 100644--- a/archify/test/relationship-permalink.test.mjs+++ b/test/relationship-permalink.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-relationship-permalink-'));const CASES = {diff --git a/archify/test/relationship-pulse.test.mjs b/test/relationship-pulse.test.mjssimilarity index 99%rename from archify/test/relationship-pulse.test.mjsrename to test/relationship-pulse.test.mjsindex fd01a00d..79f0e3cb 100644--- a/archify/test/relationship-pulse.test.mjs+++ b/test/relationship-pulse.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-relationship-pulse-'));const CASES = {diff --git a/archify/test/release-identity.test.mjs b/test/release-identity.test.mjssimilarity index 99%rename from archify/test/release-identity.test.mjsrename to test/release-identity.test.mjsindex 14a45ce9..b7f6ec04 100644--- a/archify/test/release-identity.test.mjs+++ b/test/release-identity.test.mjs@@ -7,7 +7,7 @@ import test from 'node:test';import assert from 'node:assert/strict';const here = path.dirname(fileURLToPath(import.meta.url));-const repoRoot = path.resolve(here, '..', '..');+const repoRoot = path.resolve(here, '..');const checker = path.join(repoRoot, 'scripts', 'check-release-identity.mjs');function writeFile(root, relativePath, content) {diff --git a/archify/test/release-package-gates.test.mjs b/test/release-package-gates.test.mjssimilarity index 99%rename from archify/test/release-package-gates.test.mjsrename to test/release-package-gates.test.mjsindex 2916a310..327dedec 100644--- a/archify/test/release-package-gates.test.mjs+++ b/test/release-package-gates.test.mjs@@ -6,10 +6,10 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { stageCleanSkill } from '../../scripts/stage-clean-skill.mjs';+import { stageCleanSkill } from '../scripts/stage-clean-skill.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const repoRoot = path.resolve(__dirname, '..', '..');+const repoRoot = path.resolve(__dirname, '..');const canonicalZipNodeMajor = 22;const canonicalZipZlibVersion = '1.3.1-e00f703';const currentNodeMajor = Number(process.versions.node.split('.')[0]);@@ -1643,20 +1643,20 @@ test('CI and tagged releases share the maintained Windows path contract on Nodeassert.match(previewSource, /mkdtempSync\(path[.]toNamespacedPath\(\s*path[.]join\(physicalOutputDirectory, '[.]archify-preview-'\),\s*\)\)/);assert.match(visualCheckSource, /mkdtempSync\(path[.]toNamespacedPath\(\s*path[.]join\(parent[.]parentPath, '[.]archify-visual-check-'\),\s*\)\)/);- const previewSuite = fs.readFileSync(path.join(repoRoot, 'archify', 'test', 'preview.test.mjs'), 'utf8');+ const previewSuite = fs.readFileSync(path.join(repoRoot, 'test', 'preview.test.mjs'), 'utf8');assert.match(previewSuite, /process\.env\.ARCHIFY_REQUIRE_WINDOWS_8DOT3 === '1'/);assert.match(previewSuite, /process\.env\.ARCHIFY_WINDOWS_8DOT3_ROOT/);assert.match(previewSuite, /process\.env\.ARCHIFY_WINDOWS_8DOT3_SHORT_ROOT/);assert.match(previewSuite, /assignWindowsShortName\(realDirectory, shortName\)/);const deliverySuite = fs.readFileSync(- path.join(repoRoot, 'archify', 'test', 'delivery-sidecar-path.test.mjs'),+ path.join(repoRoot, 'test', 'delivery-sidecar-path.test.mjs'),'utf8',);assert.match(deliverySuite, /process\.env\.ARCHIFY_WINDOWS_8DOT3_ROOT/);assert.match(deliverySuite, /process\.env\.ARCHIFY_WINDOWS_8DOT3_SHORT_ROOT/);assert.match(deliverySuite, /assignWindowsShortName\(output, 'ARCHDL~1[.]HTM'\)/);const visualSidecarSuite = fs.readFileSync(- path.join(repoRoot, 'archify', 'test', 'sidecar-path-length.test.mjs'),+ path.join(repoRoot, 'test', 'sidecar-path-length.test.mjs'),'utf8',);assert.match(visualSidecarSuite, /assignWindowsShortName\(artifact, 'ARCHVS~1[.]HTM'\)/);diff --git a/archify/test/render-failure-diagnostics.test.mjs b/test/render-failure-diagnostics.test.mjssimilarity index 96%rename from archify/test/render-failure-diagnostics.test.mjsrename to test/render-failure-diagnostics.test.mjsindex 9c9a58d3..f0e2baef 100644--- a/archify/test/render-failure-diagnostics.test.mjs+++ b/test/render-failure-diagnostics.test.mjs@@ -7,9 +7,9 @@ import test from 'node:test';import { fileURLToPath } from 'node:url';import vm from 'node:vm';-const skillRoot = fileURLToPath(new URL('../', import.meta.url));+const skillRoot = fileURLToPath(new URL('../archify/', import.meta.url));const cli = path.join(skillRoot, 'bin/archify.mjs');-const diagnosticModule = new URL('../renderers/shared/diagnostics.mjs', import.meta.url).href;+const diagnosticModule = new URL('../archify/renderers/shared/diagnostics.mjs', import.meta.url).href;const installBoundary = `import { installRendererDiagnosticBoundary } from ${JSON.stringify(diagnosticModule)}; installRendererDiagnosticBoundary();`;const examples = {architecture: 'web-app.architecture.json',@@ -129,7 +129,7 @@ test('render layout rejection exposes the existing diagnostic and preserves an etest('unexpected renderer exceptions keep native debugging information and are not relabelled as input errors', t => {const cwd = workspace(t);- const helper = new URL('../renderers/shared/cli.mjs', import.meta.url).href;+ const helper = new URL('../archify/renderers/shared/cli.mjs', import.meta.url).href;const script = `${installBoundary} import ${JSON.stringify(helper)}; throw Object.assign(new SyntaxError('implementation defect'), { code: 'EACCES' });`;const human = run(['--input-type=module', '-e', script], cwd);assert.equal(human.status, 1);@@ -142,7 +142,7 @@ test('unexpected renderer exceptions keep native debugging information and are ntest('a recorded layout diagnostic cannot hide a later unclassified exception', t => {const cwd = workspace(t);- const helper = new URL('../renderers/shared/diagnostics.mjs', import.meta.url).href;+ const helper = new URL('../archify/renderers/shared/diagnostics.mjs', import.meta.url).href;const setup = `import { installRendererDiagnosticBoundary, recordDiagnostic, throwDiagnosticError } from ${JSON.stringify(helper)};installRendererDiagnosticBoundary();recordDiagnostic({ code: 'layout/constraint', message: 'earlier layout problem' });`;@@ -163,7 +163,7 @@ test('a recorded layout diagnostic cannot hide a later unclassified exception',test('invalid output arguments keep their implementation error instead of a filesystem repair', t => {const cwd = workspace(t);- const helper = new URL('../renderers/shared/cli.mjs', import.meta.url).href;+ const helper = new URL('../archify/renderers/shared/cli.mjs', import.meta.url).href;const templatePath = path.join(skillRoot, 'assets/template.html');const script = `${installBoundary} import fs from 'node:fs'; import { writeDiagram } from ${JSON.stringify(helper)};writeDiagram({ outPath: undefined, template: fs.readFileSync(${JSON.stringify(templatePath)}, 'utf8'), diagramType: 'architecture', meta: { title: 'Test' }, svg: '', cards: [] });`;diff --git a/archify/test/render-output-checks.test.mjs b/test/render-output-checks.test.mjssimilarity index 99%rename from archify/test/render-output-checks.test.mjsrename to test/render-output-checks.test.mjsindex 0db1b892..1463b232 100644--- a/archify/test/render-output-checks.test.mjs+++ b/test/render-output-checks.test.mjs@@ -6,10 +6,10 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { compactFinalizeReceipt } from '../bin/finalize.mjs';+import { compactFinalizeReceipt } from '../archify/bin/finalize.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-checks-'));const checker = path.join(skillRoot, 'scripts/check-render-output.mjs');diff --git a/archify/test/renderer-atomic-write.test.mjs b/test/renderer-atomic-write.test.mjssimilarity index 99%rename from archify/test/renderer-atomic-write.test.mjsrename to test/renderer-atomic-write.test.mjsindex de76ace3..7c14746c 100644--- a/archify/test/renderer-atomic-write.test.mjs+++ b/test/renderer-atomic-write.test.mjs@@ -12,11 +12,11 @@ import {quarantineRemoveRegularFileBinding,releaseRegularFileBinding,removeOwnedRegularFile,-} from '../renderers/shared/atomic-output.mjs';-import { loadDiagram, writeDiagram } from '../renderers/shared/cli.mjs';+} from '../archify/renderers/shared/atomic-output.mjs';+import { loadDiagram, writeDiagram } from '../archify/renderers/shared/cli.mjs';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const workflowFixture = path.join(skillRoot, 'examples/agent-tool-call.workflow.json');function workspace(t, prefix) {diff --git a/archify/test/renderer-diagnostic-boundary.test.mjs b/test/renderer-diagnostic-boundary.test.mjssimilarity index 97%rename from archify/test/renderer-diagnostic-boundary.test.mjsrename to test/renderer-diagnostic-boundary.test.mjsindex 15b79601..5dafb130 100644--- a/archify/test/renderer-diagnostic-boundary.test.mjs+++ b/test/renderer-diagnostic-boundary.test.mjs@@ -7,7 +7,7 @@ import { setTimeout as delay } from 'node:timers/promises';import test from 'node:test';import assert from 'node:assert/strict';-const diagnostics = new URL('../renderers/shared/diagnostics.mjs', import.meta.url).href;+const diagnostics = new URL('../archify/renderers/shared/diagnostics.mjs', import.meta.url).href;// A pipe holds 8KB on macOS and 64KB on Linux before it blocks. The large case// stays far above both so the receipt cannot leave the renderer in one write.diff --git a/archify/test/renderer-import-isolation.test.mjs b/test/renderer-import-isolation.test.mjssimilarity index 95%rename from archify/test/renderer-import-isolation.test.mjsrename to test/renderer-import-isolation.test.mjsindex 904e4c43..ba0afd1d 100644--- a/archify/test/renderer-import-isolation.test.mjs+++ b/test/renderer-import-isolation.test.mjs@@ -6,8 +6,8 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-const compilerUrl = new URL('../renderers/workflow/workflow-compiler.mjs', import.meta.url).href;-const skillRoot = fileURLToPath(new URL('../', import.meta.url));+const compilerUrl = new URL('../archify/renderers/workflow/workflow-compiler.mjs', import.meta.url).href;+const skillRoot = fileURLToPath(new URL('../archify/', import.meta.url));function workspace(t) {const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-import-isolation-'));diff --git a/archify/test/repair-receipt.test.mjs b/test/repair-receipt.test.mjssimilarity index 99%rename from archify/test/repair-receipt.test.mjsrename to test/repair-receipt.test.mjsindex 49723995..30197d90 100644--- a/archify/test/repair-receipt.test.mjs+++ b/test/repair-receipt.test.mjs@@ -7,7 +7,7 @@ import test from 'node:test';import { fileURLToPath } from 'node:url';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const cli = path.join(skillRoot, 'bin/archify.mjs');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-repair-receipt-'));diff --git a/archify/test/repair-rounds.test.mjs b/test/repair-rounds.test.mjssimilarity index 99%rename from archify/test/repair-rounds.test.mjsrename to test/repair-rounds.test.mjsindex a88c1b81..a16881a7 100644--- a/archify/test/repair-rounds.test.mjs+++ b/test/repair-rounds.test.mjs@@ -7,7 +7,7 @@ import test from 'node:test';import { fileURLToPath } from 'node:url';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const benchmark = path.join(repoRoot, 'benchmarks/repair-rounds/benchmark.mjs');const manifest = path.join(repoRoot, 'benchmarks/repair-rounds/manifest.json');diff --git a/archify/test/repository-evidence-replacement.test.mjs b/test/repository-evidence-replacement.test.mjssimilarity index 99%rename from archify/test/repository-evidence-replacement.test.mjsrename to test/repository-evidence-replacement.test.mjsindex bc58b943..e9e90c54 100644--- a/archify/test/repository-evidence-replacement.test.mjs+++ b/test/repository-evidence-replacement.test.mjs@@ -6,7 +6,7 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');const repositoryUrl = 'https://github.com/example/evidence-replacement';const shortFile = 'first\n';diff --git a/archify/test/repository-evidence-types-browser.test.mjs b/test/repository-evidence-types-browser.test.mjssimilarity index 98%rename from archify/test/repository-evidence-types-browser.test.mjsrename to test/repository-evidence-types-browser.test.mjsindex f1eafbb7..ed447c74 100644--- a/archify/test/repository-evidence-types-browser.test.mjs+++ b/test/repository-evidence-types-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = Object.hasOwn(process.env, 'ARCHIFY_CHROME') ? findChrome() : null;test('non-architecture sources reach real Viewer beacons, Focus and Finder', {diff --git a/archify/test/repository-evidence-types.test.mjs b/test/repository-evidence-types.test.mjssimilarity index 98%rename from archify/test/repository-evidence-types.test.mjsrename to test/repository-evidence-types.test.mjsindex b6361165..ae6778a2 100644--- a/archify/test/repository-evidence-types.test.mjs+++ b/test/repository-evidence-types.test.mjs@@ -5,10 +5,10 @@ import os from 'node:os';import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-import { startPreview } from '../bin/preview.mjs';+import { startPreview } from '../archify/bin/preview.mjs';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');// One table for the whole file: every diagram type names its node array@@ -359,7 +359,7 @@ test('live preview publishes verified evidence for a non-architecture type', { ttest('workflow migration verifies and preserves pinned source evidence before replacement', () => {const data = fixture(TYPES.find(shape => shape.type === 'workflow'));const repository = data.diagram.meta.repository;- const legacy = JSON.parse(fs.readFileSync(path.join(skillRoot, 'test/fixtures/v1-workflow-explicit-coordinates.workflow.json'), 'utf8'));+ const legacy = JSON.parse(fs.readFileSync(path.join(skillRoot, '..', 'test', 'fixtures/v1-workflow-explicit-coordinates.workflow.json'), 'utf8'));legacy.meta.repository = repository;legacy.nodes[0].sources = [{ path: 'src/router.js', line: 1, end_line: 3 }];const sourceBytes = JSON.stringify(legacy);diff --git a/archify/test/repository-evidence.test.mjs b/test/repository-evidence.test.mjssimilarity index 99%rename from archify/test/repository-evidence.test.mjsrename to test/repository-evidence.test.mjsindex b41677f3..abfec7e0 100644--- a/archify/test/repository-evidence.test.mjs+++ b/test/repository-evidence.test.mjs@@ -5,12 +5,12 @@ import os from 'node:os';import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-import { startPreview } from '../bin/preview.mjs';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';-import { verifyRepositoryEvidence } from '../renderers/shared/repository-evidence.mjs';+import { startPreview } from '../archify/bin/preview.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';+import { verifyRepositoryEvidence } from '../archify/renderers/shared/repository-evidence.mjs';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');function git(repo, ...args) {diff --git a/archify/test/repository-language-metadata.test.mjs b/test/repository-language-metadata.test.mjssimilarity index 98%rename from archify/test/repository-language-metadata.test.mjsrename to test/repository-language-metadata.test.mjsindex 328b7508..2e37f854 100644--- a/archify/test/repository-language-metadata.test.mjs+++ b/test/repository-language-metadata.test.mjs@@ -4,7 +4,7 @@ import { execFileSync } from 'node:child_process';import path from 'node:path';import { fileURLToPath } from 'node:url';-const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');+const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');function linguistGenerated(relativePath) {const output = execFileSync(diff --git a/test/repository-test-runner.test.mjs b/test/repository-test-runner.test.mjsnew file mode 100644index 00000000..c0de130c--- /dev/null+++ b/test/repository-test-runner.test.mjs@@ -0,0 +1,34 @@+import test from 'node:test';+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 { fileURLToPath } from 'node:url';++const repoRoot = fileURLToPath(new URL('../', import.meta.url));++test('repository runner discovers every test suite from an unrelated working directory', (t) => {+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-discovery-'));+ t.after(() => fs.rmSync(directory, { recursive: true, force: true }));+ const preload = path.join(directory, 'capture.cjs');+ fs.writeFileSync(preload, `+const childProcess = require('node:child_process');+childProcess.spawnSync = (command, args, options) => {+ console.log(JSON.stringify({ command, args, cwd: options.cwd }));+ return { status: 0 };+};+require('node:module').syncBuiltinESMExports();+`);+ const result = spawnSync(process.execPath, ['--require', preload, path.join(repoRoot, 'scripts/run-tests.mjs')], {+ cwd: directory, encoding: 'utf8',+ });+ assert.equal(result.status, 0, result.stderr);+ const invocation = JSON.parse(result.stdout);+ assert.equal(fs.realpathSync(invocation.cwd), fs.realpathSync(repoRoot));+ const expected = fs.readdirSync(path.join(repoRoot, 'test'))+ .filter(file => file.endsWith('.test.mjs')).sort().map(file => path.join('test', file));+ assert.deepEqual(invocation.args.filter(arg => !arg.startsWith('--')), expected);+ for (const file of expected) assert.ok(fs.existsSync(path.join(invocation.cwd, file)), file);+ assert.equal(fs.existsSync(path.join(repoRoot, 'archify/test')), false);+});diff --git a/archify/test/route-detour.test.mjs b/test/route-detour.test.mjssimilarity index 98%rename from archify/test/route-detour.test.mjsrename to test/route-detour.test.mjsindex 43f7a995..6f942060 100644--- a/archify/test/route-detour.test.mjs+++ b/test/route-detour.test.mjs@@ -6,7 +6,7 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-const root = fileURLToPath(new URL('../', import.meta.url));+const root = fileURLToPath(new URL('../archify/', import.meta.url));const cli = path.join(root, 'bin/archify.mjs');function component(id, pos, size = [120, 60]) {diff --git a/archify/test/route-journey.test.mjs b/test/route-journey.test.mjssimilarity index 99%rename from archify/test/route-journey.test.mjsrename to test/route-journey.test.mjsindex e84c5fe8..e6989e72 100644--- a/archify/test/route-journey.test.mjs+++ b/test/route-journey.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const template = fs.readFileSync(path.join(skillRoot, 'assets', 'template.html'), 'utf8');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-route-journey-'));diff --git a/archify/test/route-probe-browser.test.mjs b/test/route-probe-browser.test.mjssimilarity index 99%rename from archify/test/route-probe-browser.test.mjsrename to test/route-probe-browser.test.mjsindex c911ea78..ebed3031 100644--- a/archify/test/route-probe-browser.test.mjs+++ b/test/route-probe-browser.test.mjs@@ -5,10 +5,10 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';import { createViewerClick } from './helpers/viewer-click.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;test('Route Probe preserves directed paths, Journey and export contracts', {diff --git a/archify/test/route-probe.test.mjs b/test/route-probe.test.mjssimilarity index 99%rename from archify/test/route-probe.test.mjsrename to test/route-probe.test.mjsindex 664152c6..7a7b8a85 100644--- a/archify/test/route-probe.test.mjs+++ b/test/route-probe.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-route-probe-'));const CASES = {diff --git a/archify/test/route-share-card.test.mjs b/test/route-share-card.test.mjssimilarity index 99%rename from archify/test/route-share-card.test.mjsrename to test/route-share-card.test.mjsindex 6944482c..12f688f5 100644--- a/archify/test/route-share-card.test.mjs+++ b/test/route-share-card.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-route-share-card-'));diff --git a/archify/test/semantic-camera.test.mjs b/test/semantic-camera.test.mjssimilarity index 98%rename from archify/test/semantic-camera.test.mjsrename to test/semantic-camera.test.mjsindex d47b61c8..544648bf 100644--- a/archify/test/semantic-camera.test.mjs+++ b/test/semantic-camera.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-semantic-camera-'));const CASES = {diff --git a/archify/test/semantic-flow.test.mjs b/test/semantic-flow.test.mjssimilarity index 98%rename from archify/test/semantic-flow.test.mjsrename to test/semantic-flow.test.mjsindex a71d476d..a97d0c15 100644--- a/archify/test/semantic-flow.test.mjs+++ b/test/semantic-flow.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-semantic-flow-'));const CASES = {diff --git a/archify/test/semantic-legend-gateway.test.mjs b/test/semantic-legend-gateway.test.mjssimilarity index 99%rename from archify/test/semantic-legend-gateway.test.mjsrename to test/semantic-legend-gateway.test.mjsindex 0e43447f..85df17dc 100644--- a/archify/test/semantic-legend-gateway.test.mjs+++ b/test/semantic-legend-gateway.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-semantic-legend-'));const CASES = {diff --git a/archify/test/semantic-lens-browser.test.mjs b/test/semantic-lens-browser.test.mjssimilarity index 99%rename from archify/test/semantic-lens-browser.test.mjsrename to test/semantic-lens-browser.test.mjsindex 3e9f40d0..ceacfacf 100644--- a/archify/test/semantic-lens-browser.test.mjs+++ b/test/semantic-lens-browser.test.mjs@@ -5,10 +5,10 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { findChrome } from '../bin/visual-check.mjs';+import { findChrome } from '../archify/bin/visual-check.mjs';import { desktopBrowser, desktopPointerCheck } from './helpers/desktop-browser.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;test('Semantic Lens preserves selection, legend preview and panel contracts', {diff --git a/archify/test/semantic-lens.test.mjs b/test/semantic-lens.test.mjssimilarity index 98%rename from archify/test/semantic-lens.test.mjsrename to test/semantic-lens.test.mjsindex 06d526e6..9495cc5e 100644--- a/archify/test/semantic-lens.test.mjs+++ b/test/semantic-lens.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-semantic-lens-'));const CASES = {diff --git a/archify/test/semantic-passport-move-browser.test.mjs b/test/semantic-passport-move-browser.test.mjssimilarity index 99%rename from archify/test/semantic-passport-move-browser.test.mjsrename to test/semantic-passport-move-browser.test.mjsindex ae7dc17b..d456886c 100644--- a/archify/test/semantic-passport-move-browser.test.mjs+++ b/test/semantic-passport-move-browser.test.mjs@@ -6,11 +6,11 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { findChrome } from '../bin/visual-check.mjs';+import { findChrome } from '../archify/bin/visual-check.mjs';import { desktopBrowser, desktopPointerCheck } from './helpers/desktop-browser.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-semantic-passport-move-'));const chromePath = process.env.ARCHIFY_CHROME ? findChrome() : null;let artifactSequence = 0;diff --git a/archify/test/semantic-passport.test.mjs b/test/semantic-passport.test.mjssimilarity index 98%rename from archify/test/semantic-passport.test.mjsrename to test/semantic-passport.test.mjsindex 899b1378..c77bf059 100644--- a/archify/test/semantic-passport.test.mjs+++ b/test/semantic-passport.test.mjs@@ -6,12 +6,12 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-import { translateMessage } from '../renderers/shared/i18n.mjs';+import { translateMessage } from '../archify/renderers/shared/i18n.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-semantic-passport-'));const chromePath = process.env.ARCHIFY_CHROME ? findChrome() : null;diff --git a/archify/test/semantic-radar.test.mjs b/test/semantic-radar.test.mjssimilarity index 99%rename from archify/test/semantic-radar.test.mjsrename to test/semantic-radar.test.mjsindex 0898021d..cc703195 100644--- a/archify/test/semantic-radar.test.mjs+++ b/test/semantic-radar.test.mjs@@ -6,10 +6,10 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-semantic-radar-'));const chromePath = process.env.ARCHIFY_CHROME ? findChrome() : null;diff --git a/archify/test/semantic-zoom.test.mjs b/test/semantic-zoom.test.mjssimilarity index 98%rename from archify/test/semantic-zoom.test.mjsrename to test/semantic-zoom.test.mjsindex 39dcfb9b..72413bf1 100644--- a/archify/test/semantic-zoom.test.mjs+++ b/test/semantic-zoom.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-semantic-zoom-'));const CASES = {diff --git a/archify/test/sequence-column-fit.test.mjs b/test/sequence-column-fit.test.mjssimilarity index 98%rename from archify/test/sequence-column-fit.test.mjsrename to test/sequence-column-fit.test.mjsindex fbfd958d..bd7f9df1 100644--- a/archify/test/sequence-column-fit.test.mjs+++ b/test/sequence-column-fit.test.mjs@@ -5,10 +5,10 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { textUnits } from '../renderers/shared/utils.mjs';+import { textUnits } from '../archify/renderers/shared/utils.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');function renderOutcome(doc) {const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-column-fit-'));diff --git a/archify/test/sequence-header-clearance.test.mjs b/test/sequence-header-clearance.test.mjssimilarity index 94%rename from archify/test/sequence-header-clearance.test.mjsrename to test/sequence-header-clearance.test.mjsindex 98a40d9e..196d89ae 100644--- a/archify/test/sequence-header-clearance.test.mjs+++ b/test/sequence-header-clearance.test.mjs@@ -5,8 +5,8 @@ import os from 'node:os';import path from 'node:path';import {spawnSync} from 'node:child_process';import {fileURLToPath,pathToFileURL} from 'node:url';-import {ChromeVisualBrowser,findChrome} from '../bin/visual-check.mjs';-import {fittedNodeFontSize} from '../renderers/shared/text-fit.mjs';+import {ChromeVisualBrowser,findChrome} from '../archify/bin/visual-check.mjs';+import {fittedNodeFontSize} from '../archify/renderers/shared/text-fit.mjs';const testDir=path.dirname(fileURLToPath(import.meta.url));@@ -24,7 +24,7 @@ test('sequence headers reserve an icon/brand rail without shrinking or changing],messages:[{id:'request',from:'transfer',to:'without-context',y:200,label:'Exact request'},{id:'reply',from:'without-context',to:'transfer',y:250,label:'Exact reply',variant:'return'}]};const input=path.join(dir,'input.json'),output=path.join(dir,'output.html');fs.writeFileSync(input,JSON.stringify(spec));- const rendered=spawnSync(process.execPath,[path.resolve(testDir,'../bin/archify.mjs'),'deliver','sequence',input,output,'--quality','standard','--json'],{encoding:'utf8',maxBuffer:16*1024*1024});+ const rendered=spawnSync(process.execPath,[path.resolve(testDir,'../archify/bin/archify.mjs'),'deliver','sequence',input,output,'--quality','standard','--json'],{encoding:'utf8',maxBuffer:16*1024*1024});assert.equal(rendered.status,0,rendered.stderr||rendered.stdout);const browser=new ChromeVisualBrowser(chrome);try{diff --git a/archify/test/sequence-width-review.test.mjs b/test/sequence-width-review.test.mjssimilarity index 98%rename from archify/test/sequence-width-review.test.mjsrename to test/sequence-width-review.test.mjsindex 2b29b7cc..e9744cdd 100644--- a/archify/test/sequence-width-review.test.mjs+++ b/test/sequence-width-review.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-import { compactFinalizeReceipt } from '../bin/finalize.mjs';+import { compactFinalizeReceipt } from '../archify/bin/finalize.mjs';-const root = fileURLToPath(new URL('../', import.meta.url));+const root = fileURLToPath(new URL('../archify/', import.meta.url));const cli = path.join(root, 'bin/archify.mjs');const checker = path.join(root, 'scripts/check-render-output.mjs');diff --git a/archify/test/settled-flow.test.mjs b/test/settled-flow.test.mjssimilarity index 97%rename from archify/test/settled-flow.test.mjsrename to test/settled-flow.test.mjsindex 665456c8..64c67ee4 100644--- a/archify/test/settled-flow.test.mjs+++ b/test/settled-flow.test.mjs@@ -5,10 +5,10 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { animateAttr } from '../renderers/shared/cli.mjs';+import { animateAttr } from '../archify/renderers/shared/cli.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const template = fs.readFileSync(path.join(skillRoot, 'assets', 'template.html'), 'utf8');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-settled-flow-'));diff --git a/archify/test/share-card-export.test.mjs b/test/share-card-export.test.mjssimilarity index 98%rename from archify/test/share-card-export.test.mjsrename to test/share-card-export.test.mjsindex 36510cb2..1e7d6e64 100644--- a/archify/test/share-card-export.test.mjs+++ b/test/share-card-export.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-share-card-'));const CASES = {diff --git a/archify/test/sidecar-path-length.test.mjs b/test/sidecar-path-length.test.mjssimilarity index 99%rename from archify/test/sidecar-path-length.test.mjsrename to test/sidecar-path-length.test.mjsindex 15fdfd4b..33e87ba9 100644--- a/archify/test/sidecar-path-length.test.mjs+++ b/test/sidecar-path-length.test.mjs@@ -5,8 +5,8 @@ import { spawnSync } from 'node:child_process';import test from 'node:test';import assert from 'node:assert/strict';-import { sidecarPaths } from '../bin/visual-check.mjs';-import { sidecarNamespaceComponentKey } from '../renderers/shared/path-semantics.mjs';+import { sidecarPaths } from '../archify/bin/visual-check.mjs';+import { sidecarNamespaceComponentKey } from '../archify/renderers/shared/path-semantics.mjs';function basenameFits(file) {const name = path.basename(file);diff --git a/archify/test/site-language-continuity.test.mjs b/test/site-language-continuity.test.mjssimilarity index 99%rename from archify/test/site-language-continuity.test.mjsrename to test/site-language-continuity.test.mjsindex 79e26ab4..42faf9c3 100644--- a/archify/test/site-language-continuity.test.mjs+++ b/test/site-language-continuity.test.mjs@@ -8,11 +8,11 @@ import path from 'node:path';import vm from 'node:vm';import { fileURLToPath } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';-import { DIAGRAM_TYPES, DIAGRAM_TYPE_LABELS } from '../../scripts/site-copy.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';+import { DIAGRAM_TYPES, DIAGRAM_TYPE_LABELS } from '../scripts/site-copy.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const repoRoot = path.resolve(__dirname, '../..');+const repoRoot = path.resolve(__dirname, '..');const runtimePath = path.join(repoRoot, 'docs/assets/site-language.js');const navigationPath = path.join(repoRoot, 'docs/assets/site-navigation.css');const integrationEnabled = process.env.ARCHIFY_SITE_INTEGRATION === '1';diff --git a/archify/test/site-language-integration.mjs b/test/site-language-integration.mjssimilarity index 100%rename from archify/test/site-language-integration.mjsrename to test/site-language-integration.mjsdiff --git a/archify/test/skill-metadata.test.mjs b/test/skill-metadata.test.mjssimilarity index 99%rename from archify/test/skill-metadata.test.mjsrename to test/skill-metadata.test.mjsindex 669c1b6c..03fbfc9e 100644--- a/archify/test/skill-metadata.test.mjs+++ b/test/skill-metadata.test.mjs@@ -5,7 +5,7 @@ import test from 'node:test';import assert from 'node:assert/strict';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.join(here, '..');+const skillRoot = path.join(here, '..', 'archify');const skill = readFileSync(path.join(skillRoot, 'SKILL.md'), 'utf8');const defaults = readFileSync(path.join(skillRoot, 'references', 'authoring-defaults.md'), 'utf8');const updateAwareness = readFileSync(path.join(skillRoot, 'references', 'update-awareness.md'), 'utf8');diff --git a/archify/test/spatial-grid.test.mjs b/test/spatial-grid.test.mjssimilarity index 96%rename from archify/test/spatial-grid.test.mjsrename to test/spatial-grid.test.mjsindex d3630dbd..6f9f7e7f 100644--- a/archify/test/spatial-grid.test.mjs+++ b/test/spatial-grid.test.mjs@@ -1,6 +1,6 @@import assert from 'node:assert/strict';import test from 'node:test';-import { createSpatialGrid } from '../renderers/shared/spatial-grid.mjs';+import { createSpatialGrid } from '../archify/renderers/shared/spatial-grid.mjs';test('a query returns the items its box reaches, once each', () => {const grid = createSpatialGrid(100);diff --git a/archify/test/spread-regression.test.mjs b/test/spread-regression.test.mjssimilarity index 97%rename from archify/test/spread-regression.test.mjsrename to test/spread-regression.test.mjsindex 3d07b8b7..ed774f0a 100644--- a/archify/test/spread-regression.test.mjs+++ b/test/spread-regression.test.mjs@@ -19,7 +19,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const renderer = path.join(skillRoot, 'renderers/architecture/render-architecture.mjs');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-spread-'));diff --git a/archify/test/stable-update-manifest.test.mjs b/test/stable-update-manifest.test.mjssimilarity index 99%rename from archify/test/stable-update-manifest.test.mjsrename to test/stable-update-manifest.test.mjsindex 3837ede6..9228ae69 100644--- a/archify/test/stable-update-manifest.test.mjs+++ b/test/stable-update-manifest.test.mjs@@ -8,7 +8,7 @@ import test from 'node:test';import { fileURLToPath } from 'node:url';const here = path.dirname(fileURLToPath(import.meta.url));-const repoRoot = path.resolve(here, '..', '..');+const repoRoot = path.resolve(here, '..');const checker = path.join(repoRoot, 'scripts', 'check-stable-update-manifest.mjs');function git(root, args) {diff --git a/archify/test/start-page.test.mjs b/test/start-page.test.mjssimilarity index 99%rename from archify/test/start-page.test.mjsrename to test/start-page.test.mjsindex 123e9209..3c2bc800 100644--- a/archify/test/start-page.test.mjs+++ b/test/start-page.test.mjs@@ -6,10 +6,10 @@ import os from 'node:os';import path from 'node:path';import vm from 'node:vm';import { fileURLToPath } from 'node:url';-import { SCENARIO_RECIPES, startPromptsFor } from '../recipes/scenarios.mjs';+import { SCENARIO_RECIPES, startPromptsFor } from '../archify/recipes/scenarios.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const repoRoot = path.resolve(skillRoot, '..');class FakeElement {diff --git a/archify/test/toolbar-polish.test.mjs b/test/toolbar-polish.test.mjssimilarity index 97%rename from archify/test/toolbar-polish.test.mjsrename to test/toolbar-polish.test.mjsindex 255b6fbb..6d506471 100644--- a/archify/test/toolbar-polish.test.mjs+++ b/test/toolbar-polish.test.mjs@@ -5,7 +5,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const template = fs.readFileSync(path.resolve(__dirname, '../assets/template.html'), 'utf8');+const template = fs.readFileSync(path.resolve(__dirname, '../archify/assets/template.html'), 'utf8');test('toolbar groups tools in one capsule beside a single primary export, aligned with the reader column', () => {assert.match(template, /\.toolbar \{[\s\S]*?top: var\(--archify-page-top\);[\s\S]*?right: max\(1rem, calc\(\(100vw - min\(100vw - 4rem, var\(--archify-reader-width, 1440px\)\)\) \/ 2\)\);/);diff --git a/archify/test/update-contract.test.mjs b/test/update-contract.test.mjssimilarity index 98%rename from archify/test/update-contract.test.mjsrename to test/update-contract.test.mjsindex 2ddf539d..e8dcddfe 100644--- a/archify/test/update-contract.test.mjs+++ b/test/update-contract.test.mjs@@ -12,7 +12,7 @@ import {validateCanonicalUtcTimestamp,validateLocalRelease,validateStableUpdateManifest,-} from '../scripts/update-contract.mjs';+} from '../archify/scripts/update-contract.mjs';function localRelease(overrides = {}) {return {diff --git a/archify/test/update-notifier.test.mjs b/test/update-notifier.test.mjssimilarity index 99%rename from archify/test/update-notifier.test.mjsrename to test/update-notifier.test.mjsindex 056d4999..ee21c72f 100644--- a/archify/test/update-notifier.test.mjs+++ b/test/update-notifier.test.mjs@@ -12,11 +12,11 @@ import {checkForUpdate,isMainModule,setUpdatePreference,-} from '../scripts/check-update.mjs';-import { DEFAULT_MANIFEST_URL, compareSemver, parseSemver } from '../scripts/update-contract.mjs';+} from '../archify/scripts/check-update.mjs';+import { DEFAULT_MANIFEST_URL, compareSemver, parseSemver } from '../archify/scripts/update-contract.mjs';const here = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(here, '..');+const skillRoot = path.resolve(here, '..', 'archify');const checkerPath = path.join(skillRoot, 'scripts', 'check-update.mjs');const contractPath = path.join(skillRoot, 'scripts', 'update-contract.mjs');const expectedRepository = 'https://github.com/tt-a1i/archify';diff --git a/archify/test/v1-compatibility.test.mjs b/test/v1-compatibility.test.mjssimilarity index 99%rename from archify/test/v1-compatibility.test.mjsrename to test/v1-compatibility.test.mjsindex 6b2e7b0b..2bd13b8c 100644--- a/archify/test/v1-compatibility.test.mjs+++ b/test/v1-compatibility.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-v1-compat-'));function render(mode, doc) {diff --git a/archify/test/validate-next-action.test.mjs b/test/validate-next-action.test.mjssimilarity index 98%rename from archify/test/validate-next-action.test.mjsrename to test/validate-next-action.test.mjsindex 79040e58..a42f3ffb 100644--- a/archify/test/validate-next-action.test.mjs+++ b/test/validate-next-action.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');test('passing validate emits a frozen candidate and one hash-bound finalize action', t => {diff --git a/archify/test/vertical-edge.test.mjs b/test/vertical-edge.test.mjssimilarity index 97%rename from archify/test/vertical-edge.test.mjsrename to test/vertical-edge.test.mjsindex 710c7dac..16e9b550 100644--- a/archify/test/vertical-edge.test.mjs+++ b/test/vertical-edge.test.mjs@@ -7,7 +7,7 @@ import path from 'node:path';import { fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const bin = path.join(skillRoot, 'bin', 'archify.mjs');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-vertical-edge-'));diff --git a/archify/test/viewer-camera-browser.test.mjs b/test/viewer-camera-browser.test.mjssimilarity index 99%rename from archify/test/viewer-camera-browser.test.mjsrename to test/viewer-camera-browser.test.mjsindex df5bfe5f..41ea803f 100644--- a/archify/test/viewer-camera-browser.test.mjs+++ b/test/viewer-camera-browser.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { execFileSync } from 'node:child_process';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;const cases = {architecture: 'web-app.architecture.json', workflow: 'agent-tool-call.workflow.json',diff --git a/archify/test/viewer-chrome-layout.test.mjs b/test/viewer-chrome-layout.test.mjssimilarity index 99%rename from archify/test/viewer-chrome-layout.test.mjsrename to test/viewer-chrome-layout.test.mjsindex e943b30e..b5f356a4 100644--- a/archify/test/viewer-chrome-layout.test.mjs+++ b/test/viewer-chrome-layout.test.mjs@@ -6,11 +6,11 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';-import { MIN_PROJECTED_NODE_TEXT_PX } from '../renderers/shared/desktop-readability.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';+import { MIN_PROJECTED_NODE_TEXT_PX } from '../archify/renderers/shared/desktop-readability.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-viewer-chrome-layout-'));const chromePath = process.env.ARCHIFY_CHROME ? findChrome() : null;diff --git a/archify/test/viewer-identifiers-browser.test.mjs b/test/viewer-identifiers-browser.test.mjssimilarity index 98%rename from archify/test/viewer-identifiers-browser.test.mjsrename to test/viewer-identifiers-browser.test.mjsindex d3d9ef3c..124e3095 100644--- a/archify/test/viewer-identifiers-browser.test.mjs+++ b/test/viewer-identifiers-browser.test.mjs@@ -5,9 +5,9 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';+import { ChromeVisualBrowser, findChrome } from '../archify/bin/visual-check.mjs';-const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'archify');const chrome = process.env.ARCHIFY_CHROME ? findChrome() : null;const cases = {architecture: ['web-app.architecture.json', 'components', 'connections'],diff --git a/archify/test/visual-check.test.mjs b/test/visual-check.test.mjssimilarity index 99%rename from archify/test/visual-check.test.mjsrename to test/visual-check.test.mjsindex 4ea84d0e..6c16cf70 100644--- a/archify/test/visual-check.test.mjs+++ b/test/visual-check.test.mjs@@ -22,11 +22,11 @@ import {browserCheckSidecarPaths,sidecarPaths,summarizeBrowserEvidence,-} from '../bin/visual-check.mjs';-import { sameLocation } from '../renderers/shared/path-semantics.mjs';+} from '../archify/bin/visual-check.mjs';+import { sameLocation } from '../archify/renderers/shared/path-semantics.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-visual-check-'));const png = Buffer.from('89504e470d0a1a0a', 'hex');@@ -1417,7 +1417,7 @@ for (const operation of ['run', 'persist-failure']) {}, (t) => {const input = artifact(`artifact-fifo-substitution-${operation}.html`);const outputs = sidecarPaths(input);- const visualCheckUrl = new URL('../bin/visual-check.mjs', import.meta.url).href;+ const visualCheckUrl = new URL('../archify/bin/visual-check.mjs', import.meta.url).href;t.after(() => {try {if (fs.lstatSync(input).isFIFO()) fs.unlinkSync(input);@@ -1486,7 +1486,7 @@ test('visual-check rejects a previous receipt changed to a FIFO before its conteconst first = await runVisualCheck({ artifactPath: input, resolveChrome: () => null });assert.equal(first.exitCode, 2);const receiptBefore = fs.readFileSync(outputs.receipt);- const visualCheckUrl = new URL('../bin/visual-check.mjs', import.meta.url).href;+ const visualCheckUrl = new URL('../archify/bin/visual-check.mjs', import.meta.url).href;t.after(() => {try {if (fs.lstatSync(outputs.receipt).isFIFO()) fs.unlinkSync(outputs.receipt);diff --git a/archify/test/webm-artifact.smoke.mjs b/test/webm-artifact.smoke.mjssimilarity index 99%rename from archify/test/webm-artifact.smoke.mjsrename to test/webm-artifact.smoke.mjsindex 31245e8c..6808bf32 100644--- a/archify/test/webm-artifact.smoke.mjs+++ b/test/webm-artifact.smoke.mjs@@ -8,7 +8,7 @@ import path from 'node:path';import { pathToFileURL, fileURLToPath } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-webm-artifact-'));const externalReachSource = process.env.ARCHIFY_REACH_CARD_SOURCE? path.resolve(process.env.ARCHIFY_REACH_CARD_SOURCE)diff --git a/archify/test/workflow-action-pinning.test.mjs b/test/workflow-action-pinning.test.mjssimilarity index 99%rename from archify/test/workflow-action-pinning.test.mjsrename to test/workflow-action-pinning.test.mjsindex 405d5f63..dd478181 100644--- a/archify/test/workflow-action-pinning.test.mjs+++ b/test/workflow-action-pinning.test.mjs@@ -4,7 +4,7 @@ import fs from 'node:fs';import path from 'node:path';import { fileURLToPath } from 'node:url';-const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');+const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');const remoteRefPattern = /^[0-9a-fA-F]{40}$/;function yamlFilesUnder(relativeRoot) {diff --git a/archify/test/workflow-compiler-call-contract.test.mjs b/test/workflow-compiler-call-contract.test.mjssimilarity index 97%rename from archify/test/workflow-compiler-call-contract.test.mjsrename to test/workflow-compiler-call-contract.test.mjsindex 08c153cf..01073531 100644--- a/archify/test/workflow-compiler-call-contract.test.mjs+++ b/test/workflow-compiler-call-contract.test.mjs@@ -1,7 +1,7 @@import assert from 'node:assert/strict';import test from 'node:test';-import { compileWorkflow } from '../renderers/workflow/workflow-compiler.mjs';+import { compileWorkflow } from '../archify/renderers/workflow/workflow-compiler.mjs';function workflow(version, locale = 'en') {return {diff --git a/archify/test/workflow-compiler-hard-contract.test.mjs b/test/workflow-compiler-hard-contract.test.mjssimilarity index 99%rename from archify/test/workflow-compiler-hard-contract.test.mjsrename to test/workflow-compiler-hard-contract.test.mjsindex ac615213..15920432 100644--- a/archify/test/workflow-compiler-hard-contract.test.mjs+++ b/test/workflow-compiler-hard-contract.test.mjs@@ -1,7 +1,7 @@import { test } from 'node:test';import assert from 'node:assert/strict';-import { compileWorkflow } from '../renderers/workflow/workflow-compiler.mjs';+import { compileWorkflow } from '../archify/renderers/workflow/workflow-compiler.mjs';import { spawnSync } from 'node:child_process';import fs from 'node:fs';import os from 'node:os';@@ -1995,7 +1995,7 @@ test('compileWorkflow applies the shared cross-collection contracts the rendererconst input = path.join(directory, 'input.json');fs.writeFileSync(input, JSON.stringify(document));const rendered = spawnSync(process.execPath, [- fileURLToPath(new URL('../renderers/workflow/render-workflow.mjs', import.meta.url)),+ fileURLToPath(new URL('../archify/renderers/workflow/render-workflow.mjs', import.meta.url)),input, path.join(directory, 'output.html'),], {encoding: 'utf8',diff --git a/archify/test/workflow-compiler.test.mjs b/test/workflow-compiler.test.mjssimilarity index 99%rename from archify/test/workflow-compiler.test.mjsrename to test/workflow-compiler.test.mjsindex a881714a..cc60e57c 100644--- a/archify/test/workflow-compiler.test.mjs+++ b/test/workflow-compiler.test.mjs@@ -7,10 +7,10 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { compileWorkflow } from '../renderers/workflow/workflow-compiler.mjs';+import { compileWorkflow } from '../archify/renderers/workflow/workflow-compiler.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-workflow-compiler-'));@@ -348,7 +348,7 @@ test('fixed-v1 compiler preserves the exact 700x400 compatibility geometry', ()});test('readable-v2 separates approval branches in the checked-in workflow example', () => {- const workflow = readJson(path.join(__dirname, '..', 'examples', 'agent-tool-call.workflow.json'));+ const workflow = readJson(path.join(__dirname, '..', 'archify', 'examples', 'agent-tool-call.workflow.json'));const result = compileSuccessfully(workflow);assert.equal(result.receipt.contract, 'readable-v2');diff --git a/archify/test/workflow-migration.test.mjs b/test/workflow-migration.test.mjssimilarity index 99%rename from archify/test/workflow-migration.test.mjsrename to test/workflow-migration.test.mjsindex 97034706..3ceb956e 100644--- a/archify/test/workflow-migration.test.mjs+++ b/test/workflow-migration.test.mjs@@ -9,16 +9,16 @@ import { fileURLToPath, pathToFileURL } from 'node:url';import {createHorizontalRankMapper,migrateWorkflowDocument,-} from '../migrations/workflow-v2.mjs';+} from '../archify/migrations/workflow-v2.mjs';import {createMappedWorkflowCandidate,intrinsicWorkflow,planningWorkflow,-} from '../renderers/workflow/workflow-migration-geometry.mjs';-import { compileWorkflow } from '../renderers/workflow/workflow-compiler.mjs';+} from '../archify/renderers/workflow/workflow-migration-geometry.mjs';+import { compileWorkflow } from '../archify/renderers/workflow/workflow-compiler.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const skillRoot = path.resolve(__dirname, '..');+const skillRoot = path.resolve(__dirname, '..', 'archify');const cli = path.join(skillRoot, 'bin', 'archify.mjs');const fixture = path.join(__dirname,diff --git a/archify/test/workflow-routing-clarity.test.mjs b/test/workflow-routing-clarity.test.mjssimilarity index 98%rename from archify/test/workflow-routing-clarity.test.mjsrename to test/workflow-routing-clarity.test.mjsindex 28a9611f..f8a9eb7a 100644--- a/archify/test/workflow-routing-clarity.test.mjs+++ b/test/workflow-routing-clarity.test.mjs@@ -6,7 +6,7 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { compileWorkflow } from '../renderers/workflow/workflow-compiler.mjs';+import { compileWorkflow } from '../archify/renderers/workflow/workflow-compiler.mjs';function workflowFixture() {return JSON.parse(fs.readFileSync(@@ -209,7 +209,7 @@ test('readable-v2 keeps emphasis and wide-arrow fan-in marker bounds disjoint',});test('public validate and rendered HTML agree on automatic workflow routing', (t) => {- const cli = fileURLToPath(new URL('../bin/archify.mjs', import.meta.url));+ const cli = fileURLToPath(new URL('../archify/bin/archify.mjs', import.meta.url));const input = fileURLToPath(new URL('./fixtures/workflow-routing-clarity.workflow.json', import.meta.url));const validation = spawnSync(process.execPath, [cli, 'validate', 'workflow', input, '--quality', 'showcase', '--json'], { encoding: 'utf8' });assert.equal(validation.status, 0, validation.stderr || validation.stdout);diff --git a/archify/test/workflow-semantic-contract.test.mjs b/test/workflow-semantic-contract.test.mjssimilarity index 98%rename from archify/test/workflow-semantic-contract.test.mjsrename to test/workflow-semantic-contract.test.mjsindex ff6f0481..55f00c13 100644--- a/archify/test/workflow-semantic-contract.test.mjs+++ b/test/workflow-semantic-contract.test.mjs@@ -1,7 +1,7 @@import { test } from 'node:test';import assert from 'node:assert/strict';-import { compileWorkflow } from '../renderers/workflow/workflow-compiler.mjs';+import { compileWorkflow } from '../archify/renderers/workflow/workflow-compiler.mjs';function document(semanticChecks) {return {diff --git a/archify/test/workflow-shared-trunks.test.mjs b/test/workflow-shared-trunks.test.mjssimilarity index 98%rename from archify/test/workflow-shared-trunks.test.mjsrename to test/workflow-shared-trunks.test.mjsindex a5614cba..73895d68 100644--- a/archify/test/workflow-shared-trunks.test.mjs+++ b/test/workflow-shared-trunks.test.mjs@@ -5,9 +5,9 @@ import os from 'node:os';import path from 'node:path';import { spawnSync } from 'node:child_process';import { fileURLToPath } from 'node:url';-import { compileWorkflow } from '../renderers/workflow/workflow-compiler.mjs';+import { compileWorkflow } from '../archify/renderers/workflow/workflow-compiler.mjs';-const checker = fileURLToPath(new URL('../scripts/check-render-output.mjs', import.meta.url));+const checker = fileURLToPath(new URL('../archify/scripts/check-render-output.mjs', import.meta.url));function sharedCrossingWorkflow() {return {@@ -29,7 +29,7 @@ function sharedCrossingWorkflow() {test('shared crossings retain actionable diagnostics in public compilation and layout JSON', (t) => {const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-crossing-diagnostics-'));t.after(() => fs.rmSync(dir, { recursive: true, force: true }));- const renderer = fileURLToPath(new URL('../renderers/workflow/render-workflow.mjs', import.meta.url));+ const renderer = fileURLToPath(new URL('../archify/renderers/workflow/render-workflow.mjs', import.meta.url));for (const profile of ['standard', 'showcase']) {const workflow = sharedCrossingWorkflow();workflow.meta.quality_profile = profile;diff --git a/archify/test/workflow-vertical-label.test.mjs b/test/workflow-vertical-label.test.mjssimilarity index 97%rename from archify/test/workflow-vertical-label.test.mjsrename to test/workflow-vertical-label.test.mjsindex 7ea729af..5b287deb 100644--- a/archify/test/workflow-vertical-label.test.mjs+++ b/test/workflow-vertical-label.test.mjs@@ -6,9 +6,9 @@ import os from 'node:os';import path from 'node:path';import { fileURLToPath } from 'node:url';-import { compileWorkflow } from '../renderers/workflow/workflow-compiler.mjs';+import { compileWorkflow } from '../archify/renderers/workflow/workflow-compiler.mjs';-const skillRoot = fileURLToPath(new URL('..', import.meta.url));+const skillRoot = fileURLToPath(new URL('../archify/', import.meta.url));const cli = path.join(skillRoot, 'bin', 'archify.mjs');function verticalWorkflow({ direction = 'down', edge = {}, schemaVersion = 2 } = {}) {diff --git a/website/package.json b/website/package.jsonindex b575934a..9e5e5aae 100644--- a/website/package.json+++ b/website/package.json@@ -12,7 +12,7 @@"preview": "astro preview","check": "astro check","test": "node --test test/*.test.mjs",- "test:browser": "node --test --test-name-pattern=\"real Chrome\" ../archify/test/site-language-continuity.test.mjs test/community-browser.test.mjs"+ "test:browser": "node --test --test-name-pattern=\"real Chrome\" ../test/site-language-continuity.test.mjs test/community-browser.test.mjs"},"dependencies": {"@astrojs/react": "^6.0.6",