Skip to content

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

test(viewer): bind generated consumers to native selection behavior

HengYange15aa4d9a981
diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gif
index a0c9720b..5a5c0b5e 100644
Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differ
diff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.json
index 644ce7b0..bcb80313 100644
--- a/docs/assets/archify-live-proof.json
+++ b/docs/assets/archify-live-proof.json
@@ -7,13 +7,13 @@
"fps": 10,
"frameCount": 54,
"durationSeconds": 5.4,
- "bytes": 852437,
- "sha256": "70c5e7ffa3df7e5bb387c9dd08407722c630124f4c686dd0eee86eefa7721499",
+ "bytes": 850181,
+ "sha256": "d62ff1c434134575c369138f0f8b0a0a43469519ccc2c8409a7532009c4838cc",
"scenes": [
{
"id": "signal-flow",
"artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",
- "artifactSha256": "6190fddb3c799c96a9a6d0d23313856cc7158f477cd505aa36f96e9359c204dc",
+ "artifactSha256": "1028a6a7e5219a20cac4c8ad74a9ed54d5ef1ba13991d1416bc4eac803955a95",
"hash": "#focus=planner&reach=downstream",
"eyebrow": "WORKFLOW · SIGNAL FLOW",
"title": "Agent Tool Call",
@@ -22,7 +22,7 @@
{
"id": "blueprint",
"artifact": "docs/gallery/artifacts/production-deployment.architecture.html",
- "artifactSha256": "f9b6df7f1da6f71a292ab88a7579fd7522fda80bce1bb0f756efe54e9b4acb52",
+ "artifactSha256": "1597e0f17b6fd1423ec0b509233af28655f7b5a7adfec8c121988957f7ff3fe4",
"hash": "#lens=backend~database",
"eyebrow": "ARCHITECTURE · BLUEPRINT",
"title": "Production Deployment",
@@ -31,7 +31,7 @@
{
"id": "classic",
"artifact": "docs/gallery/artifacts/cache-miss.sequence.html",
- "artifactSha256": "80e93b231b50398c4c34b77fe7ad6494c6e9c46bb031b43ac1b4b40f21f98a1c",
+ "artifactSha256": "89ae317593cf1035d72781ce1c9b805c93990948dafcf6ddef605e38fb3bc682",
"hash": "#route=web~db",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.html
index e5ea3719..726651bd 100644
--- a/examples/checkout-platform-delta.html
+++ b/examples/checkout-platform-delta.html
@@ -13831,7 +13831,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var target = event.target;
if (chip.hidden || !target || typeof target.closest !== 'function' || chip.contains(target)) return;
if (container.getAttribute('data-just-panned') === 'true') return;
- if (target.closest('[data-node-id], [data-relationship-hit-key], .overview-map')) return;
+ // Export consumes the active semantic snapshot; its controls are not
+ // an outside selection. Genuine outside activation still clears it.
+ if (target.closest('[data-node-id], [data-relationship-hit-key], .overview-map, #btn-export, #export-menu')) return;
clear();
}, true);
window.addEventListener('scroll', requestLensPlacement, { passive: true });
@@ -28182,7 +28184,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var target = event.target;
if (chip.hidden || !target || typeof target.closest !== 'function' || chip.contains(target)) return;
if (container.getAttribute('data-just-panned') === 'true') return;
- if (target.closest('[data-node-id], [data-relationship-hit-key], .overview-map')) return;
+ // Export consumes the active semantic snapshot; its controls are not
+ // an outside selection. Genuine outside activation still clears it.
+ if (target.closest('[data-node-id], [data-relationship-hit-key], .overview-map, #btn-export, #export-menu')) return;
clear();
}, true);
window.addEventListener('scroll', requestLensPlacement, { passive: true });
diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.json
index eef1aa23..06eb2673 100644
--- a/examples/checkout-platform-delta.receipt.json
+++ b/examples/checkout-platform-delta.receipt.json
@@ -219,8 +219,8 @@
"Boundary identity is conservatively derived from kind + label."
],
"artifact": {
- "sha256": "ffe6ee291b392151959e253bdf1aca35d4cc71e7794cb93627742bc9e77982af",
- "bytes": 2158061
+ "sha256": "9d82d87dff9b831abe1a052adf9ca6fe3dc42067f67ea424d19a46b1d59325dd",
+ "bytes": 2158425
},
"validation": {
"checksPassed": 28,
diff --git a/test/semantic-passport.test.mjs b/test/semantic-passport.test.mjs
index 2c17538e..1ec39e89 100644
--- a/test/semantic-passport.test.mjs
+++ b/test/semantic-passport.test.mjs
@@ -127,7 +127,6 @@ test('Relationship Lens renders one Semantic Passport and copyable stable focus
assert.match(html, /focus-chip:not\(\[data-relations-expanded="true"\]\) \.relationship-lens-list \{ display: none; \}/);
assert.match(html, /clearBtn\.addEventListener\('click', function \(\) \{ clear\(\{ restoreFocus: true \}\); \}\)/);
assert.match(html, /chip\.hidden \|\| !target \|\| typeof target\.closest !== 'function' \|\| chip\.contains\(target\)/);
- assert.match(html, /target\.closest\('\[data-node-id\], \[data-relationship-hit-key\], \.overview-map'\)/);
assert.match(html, /document\.addEventListener\('click',[\s\S]+?clear\(\);\s+\}, true\);/);
assert.match(html, /Archify\.focus\.clear\(\{ restoreFocus: true \}\)/);
assert.match(html, /renderRelationshipLens\(normalized\[0\],\s*byId\);\s*placeRelationshipLens\(\);/);
diff --git a/test/semantic-radar.test.mjs b/test/semantic-radar.test.mjs
index 4dd88f7e..ee492abd 100644
--- a/test/semantic-radar.test.mjs
+++ b/test/semantic-radar.test.mjs
@@ -202,7 +202,6 @@ test('Semantic Radar tracks desktop camera and mobile contained scroll', () => {
assert.match(html, /manualPosition && positionIsValid\(manualPosition, context\)/);
assert.match(html, /panelHead\.addEventListener\('pointerdown', beginPanelDrag\)/);
assert.match(html, /surface\.addEventListener\('pointerdown',[\s\S]+viewportDrag = \{ pointerId: event\.pointerId \}/);
- assert.match(html, /target\.closest\('\[data-node-id\], \[data-relationship-hit-key\], \.overview-map'\)/);
assert.match(html, /--archify-radar-top/);
assert.match(html, /\.overview-map\[data-docked="true"\]/);
});