Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
fix(compare): report icon-only node changes
tt-a1ied2670402510
diff --git a/archify.zip b/archify.zipindex e253ceb3..e69bdc82 100644Binary files a/archify.zip and b/archify.zip differdiff --git a/archify/delta/architecture-delta.mjs b/archify/delta/architecture-delta.mjsindex 870edcf4..0824043f 100644--- a/archify/delta/architecture-delta.mjs+++ b/archify/delta/architecture-delta.mjs@@ -181,7 +181,7 @@ function fieldChanges(before, after, groups) {}const COMPONENT_FIELDS = {- semantic: ['type', 'label', 'sublabel', 'tag', 'brand'],+ semantic: ['type', 'label', 'sublabel', 'tag', 'brand', 'icon'],evidence: ['sources'],geometry: ['row', 'col', 'pos', 'size'],};diff --git a/archify/test/architecture-delta.test.mjs b/archify/test/architecture-delta.test.mjsindex ab9191fb..c822d77b 100644--- a/archify/test/architecture-delta.test.mjs+++ b/archify/test/architecture-delta.test.mjs@@ -201,6 +201,35 @@ test('compare reports brand-only changes in the receipt and exact review target'}});+test('compare reports icon-only changes in the receipt and exact review target', () => {+ const base = {+ schema_version: 1,+ diagram_type: 'architecture',+ meta: { title: 'Cache', output: 'cache.html' },+ components: [{ id: 'cache', type: 'database', label: 'Cache', pos: [100, 100], size: [160, 80] }],+ };+ const basePath = path.join(tmp, 'icon-base.json');+ const headPath = path.join(tmp, 'icon-head.json');+ const output = path.join(tmp, 'icon-delta.html');+ for (const [before, after] of [[undefined, 'clock'], ['clock', 'moon'], ['moon', 'none'], ['none', undefined]]) {+ const head = structuredClone(base);+ base.components[0].icon = before;+ head.components[0].icon = after;+ fs.writeFileSync(basePath, JSON.stringify(base));+ fs.writeFileSync(headPath, JSON.stringify(head));++ const result = run(['compare', 'architecture', basePath, headPath, output, '--json']);+ assert.equal(result.status, 0, result.stderr);+ const receipt = JSON.parse(result.stdout);+ assert.equal(receipt.summary.components.changed, 1);+ assert.deepEqual(receipt.changes.components[0].classifications, ['semantic']);+ assert.deepEqual(receipt.changes.components[0].changedFields, ['/icon']);+ const html = fs.readFileSync(output, 'utf8');+ assert.match(html, /data-change-key="component:cache"/);+ assert.deepEqual(validateArchitectureDeltaHtml(html, receipt), { ok: true, checksPassed: 10, checkCount: 10 });+ }+});+test('compare reports locale-only changes as presentation changes', () => {const head = read(baseFixture);head.meta.locale = 'zh-CN';