@hybridlabor-api/aos 4.6.6 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/agents.md +1 -0
- package/.agents/nodes.json +5 -1
- package/.agents/state.schema.json +2 -1
- package/.agents/vendor-manifest.json +50 -0
- package/.claude/agents/architect.md +4 -0
- package/.claude/agents/security-reviewer.md +1 -1
- package/.claude/hooks/memb-inject.mjs +257 -135
- package/.claude/hooks/trail-relay.mjs +18 -0
- package/.claude/settings.json +70 -0
- package/.claude/workflows/startcycle-dispatch.mjs +29 -1
- package/.opencode/agents/architect.md +4 -0
- package/.opencode/plugins/bdb-aos.js +75 -0
- package/THIRD_PARTY_NOTICES.md +48 -0
- package/bin/aos-uninstall.mjs +55 -1
- package/docs/handover/agenttrail-for-ao.md +58 -0
- package/docs/handover/deja-for-ao.md +51 -0
- package/installer.js +141 -37
- package/mcp_config.json +4 -0
- package/mcps/mcsc/README.md +24 -0
- package/mcps/mcsc/package-lock.json +1234 -0
- package/mcps/mcsc/package.json +14 -0
- package/mcps/mcsc/packages/core/bin/mcsc.js +162 -0
- package/mcps/mcsc/packages/core/rulebook.default.yaml +49 -0
- package/mcps/mcsc/packages/core/schema/rulebook.schema.json +56 -0
- package/mcps/mcsc/packages/core/src/adapters/agy.js +107 -0
- package/mcps/mcsc/packages/core/src/adapters/codex.js +56 -0
- package/mcps/mcsc/packages/core/src/adapters/native.js +14 -0
- package/mcps/mcsc/packages/core/src/adapters/opencode.js +183 -0
- package/mcps/mcsc/packages/core/src/adapters/types.js +21 -0
- package/mcps/mcsc/packages/core/src/capabilities/buildOfferTable.js +34 -0
- package/mcps/mcsc/packages/core/src/capabilities/registry.js +99 -0
- package/mcps/mcsc/packages/core/src/capabilities/types.js +24 -0
- package/mcps/mcsc/packages/core/src/detect/cache.js +47 -0
- package/mcps/mcsc/packages/core/src/detect/inventory.js +73 -0
- package/mcps/mcsc/packages/core/src/detect/probes.js +158 -0
- package/mcps/mcsc/packages/core/src/detect/types.js +26 -0
- package/mcps/mcsc/packages/core/src/rulebook/load.js +53 -0
- package/mcps/mcsc/packages/core/src/rulebook/resolve.js +227 -0
- package/mcps/mcsc/packages/core/src/rulebook/rulebook.types.js +89 -0
- package/mcps/mcsc/packages/core/src/trail.js +17 -0
- package/mcps/mcsc/packages/mcp/server.js +302 -0
- package/mcps/mcsc/server.js +2 -0
- package/package.json +3 -1
- package/skills/basic/bdbmediastorm/SKILL.md +1 -1
- package/skills/basic/godmode-ui-ux/SKILL.md +2 -2
- package/skills/basic/godmode-ui-ux/references/anti-slop-rules.md +44 -40
- package/skills/basic/godmode-ui-ux/references/taste-archetypes.md +49 -0
- package/skills/basic/startcycle/SKILL.md +7 -0
- package/skills/basic/startcycle-graph/SKILL.md +12 -0
- package/skills/basic/startcycle-graph-user/SKILL.md +3 -0
- package/skills/basic/teamwork-preview/SKILL.md +2 -0
- package/skills/bdbrainstorm/SKILL.md +1 -0
- package/skills/global_config/agenttrail/LICENSE +21 -0
- package/skills/global_config/agenttrail/SKILL.md +48 -0
- package/skills/global_config/agenttrail/bin/agenttrail.mjs +1002 -0
- package/skills/global_config/agenttrail/public/index.html +661 -0
- package/skills/global_config/aos-project-init/SKILL.md +25 -5
- package/skills/global_config/aos-setup/SKILL.md +34 -1
- package/skills/global_config/aos-setup/scripts/aos-doctor.mjs +115 -1
- package/skills/global_config/archify/LICENSE +22 -0
- package/skills/global_config/archify/SKILL.md +140 -0
- package/skills/global_config/archify/THIRD_PARTY_NOTICES.md +69 -0
- package/skills/global_config/archify/assets/JetBrainsMono-OFL.txt +93 -0
- package/skills/global_config/archify/assets/template.html +14937 -0
- package/skills/global_config/archify/bin/archify.mjs +2139 -0
- package/skills/global_config/archify/bin/open-artifact.mjs +86 -0
- package/skills/global_config/archify/bin/preview.mjs +653 -0
- package/skills/global_config/archify/bin/visual-check.mjs +829 -0
- package/skills/global_config/archify/brand-marks/README.md +31 -0
- package/skills/global_config/archify/brand-marks/catalog.json +131 -0
- package/skills/global_config/archify/delta/architecture-delta.mjs +1232 -0
- package/skills/global_config/archify/examples/agent-run.lifecycle.json +60 -0
- package/skills/global_config/archify/examples/agent-tool-call.workflow.json +94 -0
- package/skills/global_config/archify/examples/async-job-roundtrip.sequence.json +61 -0
- package/skills/global_config/archify/examples/brand-aware-delivery.architecture.json +47 -0
- package/skills/global_config/archify/examples/cache-miss-request.sequence.json +82 -0
- package/skills/global_config/archify/examples/checkout-platform.base.architecture.json +31 -0
- package/skills/global_config/archify/examples/checkout-platform.head.architecture.json +31 -0
- package/skills/global_config/archify/examples/deployment-release.lifecycle.json +49 -0
- package/skills/global_config/archify/examples/event-stream.dataflow.json +57 -0
- package/skills/global_config/archify/examples/incident-response.workflow.json +64 -0
- package/skills/global_config/archify/examples/product-analytics.dataflow.json +76 -0
- package/skills/global_config/archify/examples/production-deployment.architecture.json +71 -0
- package/skills/global_config/archify/examples/release-delivery.workflow.json +62 -0
- package/skills/global_config/archify/examples/web-app.architecture.json +46 -0
- package/skills/global_config/archify/migrations/workflow-v2.mjs +279 -0
- package/skills/global_config/archify/package.json +39 -0
- package/skills/global_config/archify/recipes/scenarios.mjs +391 -0
- package/skills/global_config/archify/references/authoring-contract.md +247 -0
- package/skills/global_config/archify/references/brand-marks.md +65 -0
- package/skills/global_config/archify/references/delivery-contract.md +138 -0
- package/skills/global_config/archify/references/viewer-runtime.md +45 -0
- package/skills/global_config/archify/renderers/architecture/grid.mjs +62 -0
- package/skills/global_config/archify/renderers/architecture/render-architecture.mjs +1078 -0
- package/skills/global_config/archify/renderers/dataflow/README.md +104 -0
- package/skills/global_config/archify/renderers/dataflow/render-dataflow.mjs +483 -0
- package/skills/global_config/archify/renderers/lifecycle/README.md +115 -0
- package/skills/global_config/archify/renderers/lifecycle/render-lifecycle.mjs +561 -0
- package/skills/global_config/archify/renderers/sequence/README.md +114 -0
- package/skills/global_config/archify/renderers/sequence/render-sequence.mjs +464 -0
- package/skills/global_config/archify/renderers/shared/brand-marks.mjs +563 -0
- package/skills/global_config/archify/renderers/shared/cli.mjs +218 -0
- package/skills/global_config/archify/renderers/shared/desktop-readability.mjs +26 -0
- package/skills/global_config/archify/renderers/shared/diagnostics.mjs +160 -0
- package/skills/global_config/archify/renderers/shared/engineering-profiles.mjs +157 -0
- package/skills/global_config/archify/renderers/shared/generated-brand-marks.mjs +2003 -0
- package/skills/global_config/archify/renderers/shared/generated-validators.mjs +13 -0
- package/skills/global_config/archify/renderers/shared/geometry.mjs +1423 -0
- package/skills/global_config/archify/renderers/shared/i18n.mjs +595 -0
- package/skills/global_config/archify/renderers/shared/layout-report.mjs +40 -0
- package/skills/global_config/archify/renderers/shared/legend.mjs +217 -0
- package/skills/global_config/archify/renderers/shared/output-path.mjs +340 -0
- package/skills/global_config/archify/renderers/shared/repository-evidence.mjs +239 -0
- package/skills/global_config/archify/renderers/shared/repository-location.mjs +58 -0
- package/skills/global_config/archify/renderers/shared/text-fit.mjs +49 -0
- package/skills/global_config/archify/renderers/shared/utils.mjs +232 -0
- package/skills/global_config/archify/renderers/shared/validator.mjs +86 -0
- package/skills/global_config/archify/renderers/workflow/README.md +223 -0
- package/skills/global_config/archify/renderers/workflow/render-workflow.mjs +35 -0
- package/skills/global_config/archify/renderers/workflow/workflow-compiler.mjs +4400 -0
- package/skills/global_config/archify/renderers/workflow/workflow-migration-geometry.mjs +144 -0
- package/skills/global_config/archify/schemas/README.md +211 -0
- package/skills/global_config/archify/schemas/architecture.schema.json +178 -0
- package/skills/global_config/archify/schemas/common.schema.json +115 -0
- package/skills/global_config/archify/schemas/dataflow.schema.json +243 -0
- package/skills/global_config/archify/schemas/lifecycle.schema.json +266 -0
- package/skills/global_config/archify/schemas/sequence.schema.json +223 -0
- package/skills/global_config/archify/schemas/workflow.schema.json +428 -0
- package/skills/global_config/archify/scripts/check-render-output.mjs +916 -0
- package/skills/global_config/archify/scripts/generate-brand-marks.mjs +141 -0
- package/skills/global_config/archify/scripts/generate-validators.mjs +66 -0
- package/skills/global_config/archify/scripts/render-examples.mjs +26 -0
- package/skills/global_config/archify/skill-release.json +10 -0
- package/skills/global_config/bdb-security-audit/SKILL.md +109 -0
- package/skills/global_config/bdb-security-audit/references/audit-checklists.md +172 -0
- package/skills/global_config/bdb-security-audit/references/skylos-guide.md +139 -0
- package/skills/global_config/bdb-security-audit/references/xalgorix-bridge.md +110 -0
- package/skills/global_config/bdbdesignpro/SKILL.md +4 -4
- package/skills/global_config/bdbdesignpro/references/bdb-motion-tokens.md +52 -31
- package/skills/global_config/bdbresilience/SKILL.md +10 -0
- package/skills/global_config/brag/SKILL.md +179 -0
- package/skills/global_config/brag/assets/music/README.md +20 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-1-by-ende-dot-app.music-cues.json +3846 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-1-by-ende-dot-app.music-cues.md +35 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-10-by-ende-dot-app.music-cues.json +1826 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-10-by-ende-dot-app.music-cues.md +35 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-11-by-ende-dot-app.music-cues.json +2266 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-11-by-ende-dot-app.music-cues.md +35 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-12-by-ende-dot-app.music-cues.json +2806 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-12-by-ende-dot-app.music-cues.md +35 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-9-by-ende-dot-app.music-cues.json +2796 -0
- package/skills/global_config/brag/assets/music/cues/happy-beats-business-moves-vol-9-by-ende-dot-app.music-cues.md +35 -0
- package/skills/global_config/brag/assets/music/happy-beats-business-moves-vol-1-by-ende-dot-app.mp3 +0 -0
- package/skills/global_config/brag/assets/music/happy-beats-business-moves-vol-10-by-ende-dot-app.mp3 +0 -0
- package/skills/global_config/brag/assets/music/happy-beats-business-moves-vol-11-by-ende-dot-app.mp3 +0 -0
- package/skills/global_config/brag/assets/music/happy-beats-business-moves-vol-12-by-ende-dot-app.mp3 +0 -0
- package/skills/global_config/brag/assets/music/happy-beats-business-moves-vol-9-by-ende-dot-app.mp3 +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-fan-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-fan-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-place-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-place-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-place-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-place-4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-shove-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-shove-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-shove-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-shove-4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-shuffle.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-slide-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-slide-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-slide-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-slide-4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-slide-5.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-slide-6.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-slide-7.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/card-slide-8.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/cards-pack-open-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/cards-pack-open-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chip-lay-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chip-lay-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chip-lay-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-collide-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-collide-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-collide-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-collide-4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-handle-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-handle-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-handle-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-handle-4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-handle-6.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-stack-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-stack-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-stack-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-stack-4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-stack-5.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/chips-stack-6.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/dice-grab-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/dice-grab-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/dice-shake-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/dice-shake-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/dice-shake-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/dice-throw-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/dice-throw-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/dice-throw-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/die-throw-1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/die-throw-2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/die-throw-3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/casino/die-throw-4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_carpet_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_carpet_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_carpet_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_concrete_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_concrete_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_concrete_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_concrete_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_concrete_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_grass_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_grass_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_grass_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_grass_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_grass_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_snow_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_snow_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_snow_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_snow_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_snow_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_wood_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_wood_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_wood_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_wood_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/footstep_wood_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactBell_heavy_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactBell_heavy_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactBell_heavy_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGeneric_light_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGeneric_light_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGeneric_light_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGeneric_light_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGeneric_light_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGlass_heavy_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGlass_light_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGlass_light_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGlass_light_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGlass_medium_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGlass_medium_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactGlass_medium_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_heavy_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_heavy_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_heavy_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_light_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_light_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_medium_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_medium_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_medium_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_medium_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMetal_medium_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactMining_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlank_medium_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlank_medium_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlank_medium_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlank_medium_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlank_medium_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_heavy_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_heavy_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_heavy_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_heavy_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_heavy_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_light_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_light_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_light_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_light_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_light_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_medium_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_medium_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_medium_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_medium_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPlate_medium_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_heavy_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_heavy_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_heavy_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_heavy_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_heavy_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_medium_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_medium_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_medium_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_medium_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactPunch_medium_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_heavy_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_heavy_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_heavy_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_heavy_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_heavy_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_medium_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_medium_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_medium_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_medium_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactSoft_medium_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactTin_medium_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactTin_medium_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactTin_medium_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactTin_medium_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactTin_medium_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_heavy_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_heavy_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_heavy_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_heavy_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_heavy_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_light_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_light_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_light_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_light_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_light_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_medium_000.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_medium_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_medium_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_medium_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/impact/impactWood_medium_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/bong_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/click_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/click_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/click_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/click_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/click_005.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/drop_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/drop_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/drop_003.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/error_005.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/error_006.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/glitch_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/glitch_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/select_008.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/switch_001.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/switch_002.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/switch_004.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/switch_005.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/switch_006.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/interface/switch_007.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-001.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-002.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-003.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-004.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-005.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-006.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-007.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-008.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-009.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-010.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-011.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-012.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-013.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-014.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-015.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-016.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-017.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-018.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-019.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-020.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-021.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-022.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-023.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-024.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-025.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-026.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-027.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-028.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-029.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-030.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-031.wav +0 -0
- package/skills/global_config/brag/assets/sfx/keyboard/keypress-032.wav +0 -0
- package/skills/global_config/brag/assets/sfx/sfx-analysis.json +15584 -0
- package/skills/global_config/brag/assets/sfx/sfx-analysis.md +75 -0
- package/skills/global_config/brag/assets/sfx/ui/click1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/click2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/click3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/click4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/click5.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/mouseclick1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/rollover1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/rollover2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/rollover4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/rollover5.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch1.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch10.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch11.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch12.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch13.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch14.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch15.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch16.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch17.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch18.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch19.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch2.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch20.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch21.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch22.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch23.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch24.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch25.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch26.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch27.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch28.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch29.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch3.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch30.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch31.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch32.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch33.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch34.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch35.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch36.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch37.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch38.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch4.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch5.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch6.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch7.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch8.ogg +0 -0
- package/skills/global_config/brag/assets/sfx/ui/switch9.ogg +0 -0
- package/skills/global_config/brag/references/audio.md +307 -0
- package/skills/global_config/brag/references/step-1-inspect.md +133 -0
- package/skills/global_config/brag/references/step-2-plan.md +234 -0
- package/skills/global_config/brag/references/step-3-compose.md +210 -0
- package/skills/global_config/brag/references/step-4-deliver.md +168 -0
- package/skills/global_config/brag/references/tones.md +231 -0
- package/skills/global_config/brag/scripts/analyze_music_cues.py +309 -0
- package/skills/global_config/brag/scripts/pyproject.toml +14 -0
- package/skills/global_config/brag/scripts/uv.lock +819 -0
- package/skills/global_config/deja-memory/SKILL.md +42 -0
- package/skills/global_config/editable-design/LICENSE +202 -0
- package/skills/global_config/editable-design/README.md +34 -0
- package/skills/global_config/editable-design/SKILL.md +630 -0
- package/skills/global_config/editable-design/THIRD_PARTY_NOTICES.md +10 -0
- package/skills/global_config/editable-design/agents/openai.yaml +4 -0
- package/skills/global_config/editable-design/assets/editor/layer-editor.css +262 -0
- package/skills/global_config/editable-design/assets/editor/layer-editor.js +1929 -0
- package/skills/global_config/editable-design/assets/poster-starter/README.md +92 -0
- package/skills/global_config/editable-design/assets/poster-starter/assets/.gitkeep +0 -0
- package/skills/global_config/editable-design/assets/poster-starter/index.html +91 -0
- package/skills/global_config/editable-design/assets/poster-starter/poster.json +6 -0
- package/skills/global_config/editable-design/assets/poster-starter/reference/.gitkeep +1 -0
- package/skills/global_config/editable-design/assets/replay/icons/assets.png +0 -0
- package/skills/global_config/editable-design/assets/replay/icons/html.png +0 -0
- package/skills/global_config/editable-design/assets/replay/icons/input.png +0 -0
- package/skills/global_config/editable-design/assets/replay/icons/layers.png +0 -0
- package/skills/global_config/editable-design/assets/replay/icons/plan.png +0 -0
- package/skills/global_config/editable-design/assets/replay/icons/reference.png +0 -0
- package/skills/global_config/editable-design/assets/replay/icons/review.png +0 -0
- package/skills/global_config/editable-design/assets/replay/index.html +59 -0
- package/skills/global_config/editable-design/assets/replay/replay-motion.js +410 -0
- package/skills/global_config/editable-design/assets/replay/replay.css +380 -0
- package/skills/global_config/editable-design/assets/replay/replay.js +374 -0
- package/skills/global_config/editable-design/font-kit/package-lock.json +115 -0
- package/skills/global_config/editable-design/font-kit/package.json +19 -0
- package/skills/global_config/editable-design/pack.sh +20 -0
- package/skills/global_config/editable-design/references/asset-architecture.md +72 -0
- package/skills/global_config/editable-design/references/editor-pitfalls.md +70 -0
- package/skills/global_config/editable-design/references/editor-runtime.md +131 -0
- package/skills/global_config/editable-design/references/font-system.md +89 -0
- package/skills/global_config/editable-design/references/imagery.md +145 -0
- package/skills/global_config/editable-design/references/layout-typography.md +116 -0
- package/skills/global_config/editable-design/references/replay-contract.md +169 -0
- package/skills/global_config/editable-design/scripts/_browser.mjs +247 -0
- package/skills/global_config/editable-design/scripts/bake.mjs +87 -0
- package/skills/global_config/editable-design/scripts/build-replay.mjs +316 -0
- package/skills/global_config/editable-design/scripts/check-contract.mjs +293 -0
- package/skills/global_config/editable-design/scripts/check-fonts.sh +252 -0
- package/skills/global_config/editable-design/scripts/check-poster.sh +70 -0
- package/skills/global_config/editable-design/scripts/doctor.sh +78 -0
- package/skills/global_config/editable-design/scripts/explode.mjs +115 -0
- package/skills/global_config/editable-design/scripts/font-kit.mjs +187 -0
- package/skills/global_config/editable-design/scripts/import-asset.sh +23 -0
- package/skills/global_config/editable-design/scripts/init-poster.sh +64 -0
- package/skills/global_config/editable-design/scripts/install-font-kit.sh +13 -0
- package/skills/global_config/editable-design/scripts/package-lock.json +334 -0
- package/skills/global_config/editable-design/scripts/package.json +14 -0
- package/skills/global_config/editable-design/scripts/remove-chroma-key.py +201 -0
- package/skills/global_config/editable-design/scripts/render-poster.sh +202 -0
- package/skills/global_config/editable-design/scripts/trace.sh +159 -0
- package/skills/global_config/editable-design/scripts/verify-replay.mjs +97 -0
- package/skills/global_config/editable-design/scripts/verify.mjs +782 -0
- package/skills/global_config/editable-design/scripts/wire-editor.mjs +104 -0
- package/skills/global_config/editable-design/tests/fixtures/small-explode/index.html +86 -0
- package/skills/global_config/plan-canvas/SKILL.md +8 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# Authoring contract
|
|
2
|
+
|
|
3
|
+
Read this reference only after the Fast authoring path calls for more detail. The schemas and examples remain authoritative.
|
|
4
|
+
|
|
5
|
+
## Schema lookup
|
|
6
|
+
|
|
7
|
+
Read both the mode schema and `schemas/common.schema.json`. The mode schemas use `$ref`, so the common file is where shared enums live.
|
|
8
|
+
|
|
9
|
+
- `componentType`: `frontend`, `backend`, `database`, `cloud`, `security`, `messagebus`, `external`
|
|
10
|
+
- `variant`: `default`, `emphasis`, `security`, `dashed`
|
|
11
|
+
- Relationship IDs use the shared identifier pattern and must be unique in their collection.
|
|
12
|
+
|
|
13
|
+
Do not invent fields. Use the nearest matching example for structure, then author fresh IDs, wording, facts, and layout.
|
|
14
|
+
|
|
15
|
+
## Workflow layout contracts
|
|
16
|
+
|
|
17
|
+
Use schema v2 for new workflows and keep schema v1 when an existing source must
|
|
18
|
+
retain fixed geometry. In both versions, `col` stays in `0..5` and semantic
|
|
19
|
+
edge labels are never deleted as a spacing repair. Do not change only
|
|
20
|
+
`schema_version` when absolute coordinates exist: follow the canonical
|
|
21
|
+
[migration and layout-receipt contract](../renderers/workflow/README.md#migration-and-layout-receipt).
|
|
22
|
+
The complete normative invariants live in the workflow renderer's
|
|
23
|
+
[layout contracts](../renderers/workflow/README.md#layout-contracts).
|
|
24
|
+
|
|
25
|
+
## Legend contract
|
|
26
|
+
|
|
27
|
+
Omit `meta.legend` for the truthful default: `auto` lists only semantic kinds
|
|
28
|
+
present in typed IR. Use `mode: "all"` for a renderer reference or
|
|
29
|
+
`mode: "hidden"` to remove the full legend. Under `entries`, only keys listed
|
|
30
|
+
by the selected mode schema are valid; each key accepts `label`, `visible`, or
|
|
31
|
+
both. `visible: true` may show an unused supported convention, while
|
|
32
|
+
`visible: false` hides it. `hidden` cannot be overridden.
|
|
33
|
+
|
|
34
|
+
A label override changes reader wording only. Never infer a kind from prose or
|
|
35
|
+
use the legend to compensate for missing nodes, states, messages, or flows.
|
|
36
|
+
Long labels are measured and wrap into deterministic rows. Architecture's
|
|
37
|
+
implicit automatic viewBox grows from that same measured footprint. For
|
|
38
|
+
backwards compatibility, a legacy document with no `meta.legend` may omit an
|
|
39
|
+
implicit auto legend that cannot fit its explicit viewBox; this never changes
|
|
40
|
+
its typed topology. Adding `meta.legend` makes the presentation intentional and
|
|
41
|
+
strict: if its resolved labels cannot fit the authored viewBox, shorten or hide
|
|
42
|
+
them, or widen the viewBox using the emitted diagnostic.
|
|
43
|
+
|
|
44
|
+
## Language consistency
|
|
45
|
+
|
|
46
|
+
Choose one primary authored language. An explicit user choice wins; otherwise
|
|
47
|
+
use the language of the request, or the conversation's dominant language when
|
|
48
|
+
the request itself is language-neutral. Separately choose the Viewer locale.
|
|
49
|
+
For supported languages, always write the matching `meta.locale`: `"en"` for
|
|
50
|
+
English or `"zh-CN"` for Simplified Chinese. The renderer consumes the authored
|
|
51
|
+
locale without inferring language from diagram strings. Documents that omit it
|
|
52
|
+
remain valid and default to English.
|
|
53
|
+
|
|
54
|
+
`meta.locale` controls only renderer-owned reader surfaces: `<html lang>`, the
|
|
55
|
+
document-title suffix, default SVG description and focus labels, default legend
|
|
56
|
+
labels, and fixed Viewer controls, statuses, accessibility names, and errors.
|
|
57
|
+
It never translates authored content. Apply the primary language separately to
|
|
58
|
+
titles, subtitles, node and relationship copy, boundaries, lanes, groups,
|
|
59
|
+
guided views, legend label overrides, and cards. A bilingual diagram still
|
|
60
|
+
chooses one primary locale for the Viewer; follow an explicit primary-language
|
|
61
|
+
request, then prompt order or conversation dominance.
|
|
62
|
+
|
|
63
|
+
For a requested language outside `en` and `zh-CN`, do not write an unsupported
|
|
64
|
+
locale. Keep every reader-facing authored string in the requested language,
|
|
65
|
+
omit `meta.locale` so the renderer safely uses English, and explicitly tell the
|
|
66
|
+
user that fixed Viewer UI and `<html lang>` remain English and the artifact is
|
|
67
|
+
not fully localized. The fallback applies only to renderer-owned surfaces; it
|
|
68
|
+
never permits authored copy to fall back to English. Do not silently substitute
|
|
69
|
+
`zh-CN` for another language or Chinese locale.
|
|
70
|
+
|
|
71
|
+
Keep exact product names, code identifiers, commands, protocols, API paths, and
|
|
72
|
+
environment names intact. Those terms may remain English inside localized copy,
|
|
73
|
+
but surrounding explanatory prose must still use the selected language.
|
|
74
|
+
Renderer-owned default legend labels follow `meta.locale`; author a
|
|
75
|
+
`meta.legend.entries.*.label` override only when the diagram needs different
|
|
76
|
+
domain wording, and keep that authored override in the primary language.
|
|
77
|
+
|
|
78
|
+
## Visual preset default
|
|
79
|
+
|
|
80
|
+
Omit `meta.visual_preset` by default. The renderer then opens the diagram in
|
|
81
|
+
`classic` for both light and dark color modes. Color mode and visual preset are
|
|
82
|
+
independent viewer state: switching Light / Dark must preserve the current
|
|
83
|
+
preset. Author `signal-flow`, `blueprint`, or `editorial` only when the user
|
|
84
|
+
explicitly requests that visual style.
|
|
85
|
+
|
|
86
|
+
## Engineering profile default
|
|
87
|
+
|
|
88
|
+
Omit `meta.engineering_profile` for an ordinary system architecture. Region,
|
|
89
|
+
cluster, and security boundary wording do not by themselves enable an
|
|
90
|
+
engineering profile. Enable `deployment-ownership` only when the user
|
|
91
|
+
explicitly asks for a production deployment topology, ownership handoff, or
|
|
92
|
+
fail-closed deployment review and the source facts are known. Once enabled,
|
|
93
|
+
do not remove the engineering profile merely to pass validation; repair the
|
|
94
|
+
authored facts or report the diagnostics truthfully.
|
|
95
|
+
|
|
96
|
+
## Title hierarchy
|
|
97
|
+
|
|
98
|
+
Use one concise title and let the diagram carry the explanation. Omit
|
|
99
|
+
`meta.subtitle` by default, and never use it to restate the title, nodes, edges,
|
|
100
|
+
or cards. Include one short supporting line only when the user explicitly asks
|
|
101
|
+
for a subtitle; an omitted or blank subtitle must not leave an empty visual row
|
|
102
|
+
in the generated viewer.
|
|
103
|
+
|
|
104
|
+
## Executable geometry rules
|
|
105
|
+
|
|
106
|
+
- Node anchors start at side midpoints. `left`/`right` change the horizontal endpoint; `top`/`bottom` change the vertical endpoint. For an automatic Architecture relationship, unobstructed facing ports whose axis offset is under 16px may share one horizontal or vertical axis when both endpoints retain the 16px corner gutter. If exactly one endpoint belongs to a spread group, only its unshared counterpart moves; relationships spread at both endpoints keep their distinct ports and outside bridge.
|
|
107
|
+
- A side is a direction contract. The first and final route segment must be perpendicular and outward/inward in the named direction.
|
|
108
|
+
- Automatic Port Spread is a default renderer behavior for architecture, workflow, data-flow, and lifecycle diagrams. Shared automatic endpoints spread deterministically and symmetrically with a 16px corner gutter. It does not apply to sequence messages, single relationships, or explicit `via`, `channelX`, `channelY`, `labelAt`, or non-`auto` routes.
|
|
109
|
+
- Showcase route rhythm: every nonzero segment must be at least 8px; every interior segment must be at least 16px. When spread ports are nearly parallel, the router uses a 24px endpoint stub and a 16px outside bridge instead of manufacturing a tiny dogleg.
|
|
110
|
+
- Shared endpoint corridors are allowed only when they remain semantically unambiguous. Unrelated collinear overlap of 8px or more fails showcase.
|
|
111
|
+
- Container borders are intentional pass-through geometry, but a long edge running along a structural border is not.
|
|
112
|
+
- An edge crossing an unrelated opaque node is always a hard failure, independent of quality profile.
|
|
113
|
+
|
|
114
|
+
### Spacing and labels
|
|
115
|
+
|
|
116
|
+
Spacing recommendations mean clear gap between boxes, not center distance. A 200px center distance between 165px-wide nodes leaves only 35px of clear gap.
|
|
117
|
+
|
|
118
|
+
For a relationship label, require:
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
clear gap > label mask width + 8px breathing room
|
|
122
|
+
label mask width ≈ 6.5px × ASCII units + 13px
|
|
123
|
+
CJK characters count as two units
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Relationship labels are semantic data. If the gap is too small, move the label,
|
|
127
|
+
adjust the route or spacing, then shorten the wording while preserving meaning.
|
|
128
|
+
Omit only wording already fully implied by both endpoints and carrying no
|
|
129
|
+
protocol, action, direction, synchronous/asynchronous behavior, or
|
|
130
|
+
cross-boundary mechanism. Preserve every meaningful label.
|
|
131
|
+
Deleting it is not a spacing repair. If a relationship starts unlabeled because
|
|
132
|
+
its endpoints fully imply it, explain why the wording is redundant; this is a
|
|
133
|
+
semantic authoring choice, not a spacing repair. In workflow v2, let the compiler
|
|
134
|
+
allocate its measured mask before applying a diagnosed `labelAt`,
|
|
135
|
+
`labelDx`/`labelDy`, or `labelSegment`. Apply one diagnosed geometry control at
|
|
136
|
+
a time.
|
|
137
|
+
|
|
138
|
+
### Repair order
|
|
139
|
+
|
|
140
|
+
1. Fix missing/invalid `meta.quality_profile` and schema errors.
|
|
141
|
+
2. Fix node overlap or out-of-range placement.
|
|
142
|
+
3. Fix edge-through-node and endpoint-direction errors.
|
|
143
|
+
4. Fix crossings, ambiguous corridors, border runs, and route rhythm.
|
|
144
|
+
5. Fix label-to-node, label-to-label, then label-to-route clearance.
|
|
145
|
+
|
|
146
|
+
Run `validate` after every edit. Consume `diagnostics[]` by stable `code`, exact `subject`, measured `evidence`, and `supportedFixes`. If the diagnostic gives `labelAt`, use that point instead of estimating another offset.
|
|
147
|
+
|
|
148
|
+
## Mode placement
|
|
149
|
+
|
|
150
|
+
### Architecture
|
|
151
|
+
|
|
152
|
+
Use one left-to-right spine with short vertical branches. Prefer 6–12 primary components and group only real ownership, trust, process, or deployment boundaries. Boundaries do not replace relationships.
|
|
153
|
+
|
|
154
|
+
Grid placement is preferred when the schema supports it. Free positions are appropriate for a bounded exception, not for prose-level coordinate planning. Keep external actors outside the system boundary when that is factually true.
|
|
155
|
+
|
|
156
|
+
### Workflow
|
|
157
|
+
|
|
158
|
+
Lanes express responsibility or phase. Columns `0..5` express logical
|
|
159
|
+
progression. Start new workflows on `readable-v2`; retain `fixed-v1` only for
|
|
160
|
+
legacy geometry compatibility. Keep the happy path monotonic, preserve semantic
|
|
161
|
+
edge labels, and route retries and exception returns outside the main lane
|
|
162
|
+
corridor.
|
|
163
|
+
|
|
164
|
+
### Sequence
|
|
165
|
+
|
|
166
|
+
Participants are ordered by conversation role. Messages own their vertical order. Use return/async/security variants for meaning, not decoration; sequence does not use Automatic Port Spread.
|
|
167
|
+
|
|
168
|
+
### Dataflow
|
|
169
|
+
|
|
170
|
+
Stages express transformation or custody. Rows separate parallel streams. Label only data contracts, classifications, or cross-boundary movement that is not obvious.
|
|
171
|
+
|
|
172
|
+
### Lifecycle
|
|
173
|
+
|
|
174
|
+
Main phases use columns `0..4`; event and terminal bands use columns `0..2`.
|
|
175
|
+
Event/terminal column `N` aligns to the same x coordinate as main column
|
|
176
|
+
`N + 2`. A recoverable failure needs a real transition back to an active state.
|
|
177
|
+
A card or guided view saying “retry” is not topology.
|
|
178
|
+
|
|
179
|
+
## Repository evidence
|
|
180
|
+
|
|
181
|
+
When an architecture diagram must reflect real code, inspect repository
|
|
182
|
+
entrypoints, runtime boundaries, storage, transports, and deployment
|
|
183
|
+
configuration before authoring. Record only evidence you actually verified.
|
|
184
|
+
`--repo-root <path>` is architecture-only and is accepted by architecture
|
|
185
|
+
`render`, `validate`, `deliver`, `preview`, and `compare`; workflow, sequence,
|
|
186
|
+
dataflow, and lifecycle reject it. Never infer runtime causality from file
|
|
187
|
+
proximity or naming alone.
|
|
188
|
+
|
|
189
|
+
Declare `meta.repository.url` and one full 40-character `revision`, then attach
|
|
190
|
+
`components[].sources` with repository-relative `path`, optional `line`,
|
|
191
|
+
`end_line`, and `label`. Verification reads blobs at that commit, independently
|
|
192
|
+
of working-tree edits. Verification ignores local Git replacement refs, including
|
|
193
|
+
those selected by `GIT_REPLACE_REF_BASE`, and always reads the original objects
|
|
194
|
+
at the pinned SHA. It does not change repository configuration or delete
|
|
195
|
+
replacement refs.
|
|
196
|
+
A matching local origin, available commit, bounded path,
|
|
197
|
+
blob, and valid line range are required in every link mode. Verification is
|
|
198
|
+
local and makes no remote requests; it establishes neither public availability
|
|
199
|
+
nor the current reader's access rights.
|
|
200
|
+
|
|
201
|
+
`link_mode` defaults to `web`. GitHub and Gitee HTTPS repository URLs generate
|
|
202
|
+
revision-pinned links; their public hosts select the provider automatically.
|
|
203
|
+
Optional `provider: "github"` or `"gitee"` must agree with the host. Existing
|
|
204
|
+
GitHub declarations and default delivery receipt fields remain compatible.
|
|
205
|
+
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"url": "https://gitee.com/team/service",
|
|
209
|
+
"revision": "0123456789abcdef0123456789abcdef01234567",
|
|
210
|
+
"provider": "gitee"
|
|
211
|
+
}
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
For an internal or unsupported forge, select `link_mode: "local-only"`. The
|
|
215
|
+
Viewer retains SRC markers, searchable file paths, line ranges, and revision
|
|
216
|
+
labels without repository or source hyperlinks. The evidence receipt adds
|
|
217
|
+
`linkMode: "local-only"`. `url` remains required as the expected origin identity;
|
|
218
|
+
local-only disables links, not identity verification. A repository without an
|
|
219
|
+
origin is not supported.
|
|
220
|
+
|
|
221
|
+
```json
|
|
222
|
+
{
|
|
223
|
+
"url": "http://git.internal:3000/Platform/Services/service",
|
|
224
|
+
"revision": "0123456789abcdef0123456789abcdef01234567",
|
|
225
|
+
"link_mode": "local-only"
|
|
226
|
+
}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Local-only accepts HTTP(S), `git@host:path`, and `ssh://git@host[:port]/path`
|
|
230
|
+
addresses, including nested namespaces. Declare a credential-free address;
|
|
231
|
+
HTTP(S) credentials on the checkout's origin are ignored for identity and
|
|
232
|
+
redacted from diagnostics. Hostnames compare case-insensitively; repository
|
|
233
|
+
paths retain case except for the existing GitHub behavior. A trailing slash
|
|
234
|
+
normalizes away. Only GitHub and Gitee normalize a terminal `.git` and match
|
|
235
|
+
standard HTTPS/443 with Git SSH/22. For other hosts, use the actual clone address:
|
|
236
|
+
transport, port, `.git` suffix, and remote-relative versus absolute paths must
|
|
237
|
+
match. For example, `git@host:Team/repo` differs from
|
|
238
|
+
`ssh://git@host/Team/repo`; `git@host:/Team/repo` matches the latter. SCP-style
|
|
239
|
+
paths preserve literal percent escapes, while URI paths decode them. SSH host
|
|
240
|
+
aliases and forge-specific browse/clone prefixes are not guessed.
|
|
241
|
+
GitLab/Gitea/Forgejo/Bitbucket web links are not implemented in this version;
|
|
242
|
+
use local-only until a tested link provider is available. Unknown web providers
|
|
243
|
+
fail with a diagnostic rather than emitting a guessed link.
|
|
244
|
+
|
|
245
|
+
## Hand-placed fallback
|
|
246
|
+
|
|
247
|
+
Use only when no renderer can run. Start from `assets/template.html`, keep semantic CSS classes, preserve the inline SVG/accessibility structure, and run the delivery visual checklist. Never introduce inline literal colors that break dark/light parity.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Brand marks
|
|
2
|
+
|
|
3
|
+
Use a brand mark only when a real product, provider, model family, channel, or
|
|
4
|
+
service identity helps the reader. Semantic `type` still explains what the node
|
|
5
|
+
does; `brand` explains whose product it is.
|
|
6
|
+
|
|
7
|
+
## Agent decision path
|
|
8
|
+
|
|
9
|
+
1. Search the built-in catalogue when the request names a recognizable brand:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
node bin/archify.mjs brands "Claude" --json
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
2. Put the returned canonical ID in the node, participant, or state:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"id": "planner",
|
|
20
|
+
"type": "backend",
|
|
21
|
+
"label": "Claude",
|
|
22
|
+
"brand": "claude"
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
3. If there is no catalogue match and the user supplied the official website,
|
|
27
|
+
capture its icon explicitly:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
node bin/archify.mjs brands capture "https://partner.example.com" --json
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Put the command's digest-pinned `brand` value in the authored node:
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"id": "partner",
|
|
38
|
+
"type": "external",
|
|
39
|
+
"label": "Partner portal",
|
|
40
|
+
"brand": {
|
|
41
|
+
"url": "https://partner.example.com",
|
|
42
|
+
"sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
4. If there is no match and no user-provided URL, omit `brand`. Do not invent a
|
|
48
|
+
URL or silently assign a visually similar company.
|
|
49
|
+
|
|
50
|
+
Known-brand URLs resolve to the bundled vector instead of using the network.
|
|
51
|
+
Unknown URL capture accepts only bounded raster image formats, blocks
|
|
52
|
+
credentials, nonstandard public ports, and private or link-local destinations,
|
|
53
|
+
uses bounded concurrency and one total deadline, and returns the captured
|
|
54
|
+
content digest. Later render and validate operations require that exact digest;
|
|
55
|
+
blocked, unavailable, changed, oversized, or unsafe content fails closed instead
|
|
56
|
+
of silently changing the artifact.
|
|
57
|
+
|
|
58
|
+
The final artifact never fetches a brand asset when opened. Preset vectors and
|
|
59
|
+
digest-verified captured site icons remain embedded in SVG, PNG, WebP, JPEG,
|
|
60
|
+
Share Card, and WebM exports.
|
|
61
|
+
|
|
62
|
+
Use `node bin/archify.mjs brands --json` to inspect all canonical IDs, aliases,
|
|
63
|
+
categories, domains, and provenance. Current categories cover AI, cloud,
|
|
64
|
+
engineering, data, collaboration, business systems, channels, languages, and
|
|
65
|
+
frameworks.
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Delivery contract
|
|
2
|
+
|
|
3
|
+
## Validate and deliver
|
|
4
|
+
|
|
5
|
+
Use `validate` after every candidate edit. CLI HTML output paths must end in `.html`, including after symbolic-link resolution.
|
|
6
|
+
Compare receipt paths must end in `.json`. Explicit CLI paths may be absolute or
|
|
7
|
+
outside the current working directory; authored `meta.output` remains confined
|
|
8
|
+
to that directory. A type mismatch fails before writing with
|
|
9
|
+
`output/cli-extension` or `output/cli-resolved-extension`. These checks prevent
|
|
10
|
+
accidental file-type overwrites; they do not sandbox explicit CLI directories
|
|
11
|
+
or prevent replacement of an existing artifact of the expected type.
|
|
12
|
+
|
|
13
|
+
Use final atomic delivery only after the candidate is frozen:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
node bin/archify.mjs deliver <type> <candidate.json> <output.html> --quality showcase --json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Deliver reads the specification once, writes those exact bytes to a private same-directory candidate snapshot, renders that snapshot, runs the complete artifact checker, and only replaces the target after all artifact checks pass. The JSON receipt includes SHA-256 and byte counts for both `specification` and `artifact`. Renderer, checker, receipt, or commit failure exits non-zero, removes private state, preserves the previous trusted artifact, and never invokes an opener.
|
|
20
|
+
|
|
21
|
+
Run `visual-check` only after `deliver` exits zero for the current candidate. If
|
|
22
|
+
delivery fails and the output path already exists, that path still names the
|
|
23
|
+
previous trusted artifact; running `visual-check` then would measure and capture
|
|
24
|
+
stale output, not the rejected candidate. Report the delivery diagnostics and
|
|
25
|
+
repair the source before collecting new visual evidence.
|
|
26
|
+
|
|
27
|
+
The delivery interface exposes three separate claims:
|
|
28
|
+
|
|
29
|
+
1. `deliver` proves deterministic artifact checks and byte identity.
|
|
30
|
+
2. `visual-check` collects automated browser evidence from the exact artifact.
|
|
31
|
+
3. Perceptual visual review records a human or image-capable reviewer's judgment.
|
|
32
|
+
|
|
33
|
+
Passing one claim never implies either of the others. Never claim that the deterministic receipt includes visual review. It does not include browser evidence either.
|
|
34
|
+
|
|
35
|
+
## Recovering a failed comparison
|
|
36
|
+
|
|
37
|
+
`compare` commits an HTML artifact and its JSON receipt as a pair. If that commit
|
|
38
|
+
fails, it attempts to restore the previous files. A complete rollback removes
|
|
39
|
+
the temporary directory as usual.
|
|
40
|
+
|
|
41
|
+
If a previous file cannot be restored, compare exits non-zero with
|
|
42
|
+
`delta/commit-rollback-failed` and retains the recovery directory. In the JSON
|
|
43
|
+
failure receipt, `diagnostics[].evidence.recoveryDirectory` identifies that
|
|
44
|
+
directory and `recoveryFiles` lists `{ backup, target }` paths for the files whose
|
|
45
|
+
restoration failed. Human-readable diagnostics also print the recovery paths.
|
|
46
|
+
|
|
47
|
+
Resolve the filesystem error, inspect the current targets, and restore each
|
|
48
|
+
listed backup to its corresponding target before retrying. Keep the recovery
|
|
49
|
+
directory until both previous files have been recovered and verified; it can
|
|
50
|
+
also contain rejected candidate files, which must not be mistaken for backups.
|
|
51
|
+
Successful comparisons and failures before commit retain their normal cleanup.
|
|
52
|
+
|
|
53
|
+
## Automated browser evidence
|
|
54
|
+
|
|
55
|
+
After delivery, inspect the exact trusted HTML without rerendering or modifying
|
|
56
|
+
it:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
node bin/archify.mjs visual-check <output.html> --json
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The zero-dependency command uses Chrome/Chromium through the DevTools pipe. It
|
|
63
|
+
measures light-theme containment at 1440×900, 1600×1000, 1920×1080, and
|
|
64
|
+
2048×1320, then captures light/dark screenshots at 1440×900 and 2048×1320. It
|
|
65
|
+
writes four PNG sidecars, one relative-path HTML contact sheet, and one JSON
|
|
66
|
+
receipt beside the artifact. The receipt binds the source artifact SHA-256 and
|
|
67
|
+
byte count, identifies `evidenceKind: "automated-browser"`, records READ plus
|
|
68
|
+
Still runtime state, and always reports `visualReview: "pending"`; automated
|
|
69
|
+
browser evidence cannot claim perceptual review.
|
|
70
|
+
|
|
71
|
+
`browser_evidence` in the handoff records only the outcome of this automated command:
|
|
72
|
+
|
|
73
|
+
- `passed` maps from exit 0 and receipt `status: "pass"` only after every required measurement and capture completes and passes.
|
|
74
|
+
- `failed` maps from exit 1 and receipt `status: "fail"` when the inspection finds a defect, the command fails, or a runtime/capture error leaves the evidence incomplete.
|
|
75
|
+
- `skipped` maps only from exit 2 and receipt `status: "skipped"` when Chrome/Chromium is unavailable and the inspection does not run.
|
|
76
|
+
|
|
77
|
+
Runtime or capture failures leave incomplete evidence and must not be normalized to `skipped`. Failed or skipped capture runs remove stale
|
|
78
|
+
image/contact-sheet sidecars rather than presenting prior evidence as current.
|
|
79
|
+
They do not invalidate an already successful deterministic delivery, and they
|
|
80
|
+
do not turn a perceptual visual review into passed or failed. Retry an
|
|
81
|
+
environmental failure through the supported command in a browser-capable
|
|
82
|
+
execution context when practical. Keep the packaged transport unchanged unless
|
|
83
|
+
the failure reproduces through that seam in a capable environment.
|
|
84
|
+
|
|
85
|
+
## Optional opening
|
|
86
|
+
|
|
87
|
+
Add `--open` only when the user wants an immediate local preview. It runs after that atomic commit, uses one argument-array OS opener with a five-second bound, and records `open.status`. Keep it off for CI, unattended agents, and non-interactive environments. Failure or unsupported opening does not invalidate delivery; its status proves only whether the local opener invocation succeeded.
|
|
88
|
+
|
|
89
|
+
## Last-Good Live Preview
|
|
90
|
+
|
|
91
|
+
For an active desktop authoring loop only:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
node bin/archify.mjs preview <type> <input>.json <output>.html --quality showcase
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Preview watches one explicit input on loopback, binds each stable digest to a private snapshot, and advances only after the existing verified delivery pipeline passes. Invalid, half-written, deleted, or superseded input leaves the previous verified revision on screen and on disk. Identical bytes do not rebuild or reload.
|
|
98
|
+
|
|
99
|
+
The preview runtime ships inside the zero-dependency Skill ZIP and must work without `node_modules`.
|
|
100
|
+
|
|
101
|
+
Never start it by default. Do not use it for CI, unattended agents, remote sharing, or mobile use. `--no-open` is only for a user who will open the printed local URL or for loop testing. Stop it with Ctrl-C before handoff. Server state, port, source path, diagnostics, error text, and reload tokens must never enter the generated artifact or any export.
|
|
102
|
+
|
|
103
|
+
## Perceptual delivery gate
|
|
104
|
+
|
|
105
|
+
Automated validation and browser evidence cannot prove visual polish. After deterministic delivery, inspect the actual HTML in a capable browser or render the evidence screenshots with an image reader. Check both themes when changed, the default READ view, line crossings/corridors, label masks, node/card fit, focus/search/passport closure, and export cleanliness.
|
|
106
|
+
|
|
107
|
+
For the default standalone desktop viewer, measure 1440×900, 1600×1000, and 1920×1080. When the artifact is intended for a large desktop display, also measure 2048×1320. A first-screen pass requires `document.documentElement.scrollWidth <= window.innerWidth` and `scrollHeight <= window.innerHeight` at every checked size. At the largest checked viewport, inspect the rendered composition for a conspicuous empty lower band: the main panel and necessary conclusion cards should use the available height as a balanced whole, not collapse into a shallow strip. If a desktop viewport overflows, repair the authored composition by removing only genuinely redundant content or compacting spacing before shrinking nodes, labels, or the main panel. Do not hide overflow, clip content, introduce an internal diagram scroller, or reduce node/label typography to make the measurement pass. Narrow/mobile containment may retain vertical page scrolling.
|
|
108
|
+
|
|
109
|
+
A manual browser record is supplementary to the automated status. Reproducing the same coverage requires all four exact viewport measurements, both endpoint themes, and an artifact-bound record of the inspected SHA-256 and byte count. It never changes `browser_evidence`: when Chrome/Chromium is unavailable, that status remains `skipped` even when the manual browser record is complete and `visual_review: passed`; an automated `failed` result likewise remains `failed`. An unconstrained browser glance can support perceptual review only.
|
|
110
|
+
|
|
111
|
+
Report exactly one truthful status:
|
|
112
|
+
|
|
113
|
+
- `visual_review: passed` — only after inspecting the rendered artifact.
|
|
114
|
+
- `visual_review: skipped (image reader unavailable)` — when no capable visual surface exists.
|
|
115
|
+
- `visual_review: failed` — with the concrete visible defect.
|
|
116
|
+
|
|
117
|
+
Use `correction_rounds: 0`, `correction_rounds: 1`, or `correction_rounds: 2`; never exceed a maximum of two focused correction rounds. Never report `visual_review: passed` without inspecting the artifact.
|
|
118
|
+
|
|
119
|
+
If visual review changes the candidate, validation and delivery must run again because the prior frozen specification receipt is no longer current.
|
|
120
|
+
|
|
121
|
+
## Handoff receipt
|
|
122
|
+
|
|
123
|
+
Return:
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
diagram_type: architecture|workflow|sequence|dataflow|lifecycle
|
|
127
|
+
output: /absolute/path/to/file.html
|
|
128
|
+
specification_sha256: <receipt value>
|
|
129
|
+
artifact_sha256: <receipt value>
|
|
130
|
+
validation: 9/9 showcase, 0 errors, 0 warnings
|
|
131
|
+
browser_evidence: passed|failed|skipped
|
|
132
|
+
visual_review: passed|skipped (image reader unavailable)|failed
|
|
133
|
+
correction_rounds: 0|1|2
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Derive `browser_evidence` only from the latest artifact-bound `visual-check` receipt. Record any manual browser work separately with its artifact binding, viewport/theme scope, and observations; never use it or `visual_review` to overwrite the automated status.
|
|
137
|
+
|
|
138
|
+
Opening, preview status, Share Cards, and other viewer exports are not validation claims.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Viewer Runtime reference
|
|
2
|
+
|
|
3
|
+
Read this only when the user asks for a reader-facing capability. Ordinary generation does not require implementing or re-documenting these features; they are already in the generated HTML.
|
|
4
|
+
|
|
5
|
+
## Exploration
|
|
6
|
+
|
|
7
|
+
- Diagram Guide lists current actions and shortcuts.
|
|
8
|
+
- Reading Depth starts at READ at the default 100% scale, reveals FULL detail at 175%, and falls back to MAP only below 100%. Focus, story, route, and semantic interactions reveal their exact facts at any scale.
|
|
9
|
+
- Semantic Lens summarizes selected node/relationship kinds without changing authored geometry.
|
|
10
|
+
- Intent Trace previews a fine-pointer or keyboard target before committed focus.
|
|
11
|
+
- Node Finder searches labels and stable IDs.
|
|
12
|
+
- Semantic Passport opens on focus, shows authored upstream/downstream facts, supports a copyable deep link, has an explicit close action, closes on true outside activation and Escape, and never enters canonical export.
|
|
13
|
+
- Semantic Radar mirrors the visible viewport and authored graph without becoming a second source of truth.
|
|
14
|
+
- Direct Relationship Pin makes a unique compiled relationship operable while preserving the authored line and stable relationship identity. It must fail closed on conflicting source/target/label/ID metadata.
|
|
15
|
+
- Route Probe resolves exactly two endpoints over authored directed relationships. It never infers a route from geometry.
|
|
16
|
+
|
|
17
|
+
## Guided views and story
|
|
18
|
+
|
|
19
|
+
`meta.views` may define at most five curated chapters using stable node IDs. The Named Chapter Rail, Chapter Delta Preview, Story Beat Navigator, Story Follow Camera, Story Director Strip, Story Horizon, and Shareable Story Moment links all derive from that one authored array; none owns parallel topology or layout.
|
|
20
|
+
|
|
21
|
+
Story transitions classify only the exact relationship between adjacent authored stops: forward, reverse, multiple, or grouped/no direct link. Never infer a transitive edge, verb, causality, or runtime behavior from proximity, kinds, or story order. Playback is reader-started, bounded, stale-safe, and motion-governed.
|
|
22
|
+
|
|
23
|
+
## Motion and presentation
|
|
24
|
+
|
|
25
|
+
`meta.animation: "trace"` enables a finite reader-controlled Live/Still trace. Static is the default. Still, reduced motion, page hiding, print, and canonical export preserve complete static meaning. Presentation Stage changes viewer chrome and framing, never authored geometry. This is not a mobile product feature; narrow layouts get containment only.
|
|
26
|
+
|
|
27
|
+
## Canonical exports
|
|
28
|
+
|
|
29
|
+
The export menu can copy/download full-diagram PNG, download JPEG/WebP, download a dual-theme SVG, and record a trace-enabled WebM. Viewer state—Guide, Lens, finder, focus, route, story, camera, radar, presentation, motion ownership, and temporary overlays—must be removed from canonical export.
|
|
30
|
+
|
|
31
|
+
### Share Card
|
|
32
|
+
|
|
33
|
+
The optional 1200×630 Share Card PNG is for README, release, social, or launch previews. It uses the current theme and visual preset, contains the complete canonical diagram without cropping, and never claims validation. Copy Share Card reuses the same canonical PNG when clipboard image writes are supported.
|
|
34
|
+
|
|
35
|
+
### Route Share Card
|
|
36
|
+
|
|
37
|
+
After a real directed Route Probe resolves, the reader may use **Export → Route Share Card**. It reuses the exact ordered route snapshot and the shared Share Card seam: `format=share-card`, `variant=route`. The isolated clone may use only static `data-share-route-*` decoration. It is download-only, fails closed for stale/unreachable/conflicting routes, and never becomes the canonical artifact.
|
|
38
|
+
|
|
39
|
+
### Reach Share Card
|
|
40
|
+
|
|
41
|
+
After a non-empty authored reachability query, the reader may use **Export → Reach Share Card**. It consumes the already resolved upstream/downstream node and edge set without rerunning traversal: `format=share-card`, `variant=reach`. The isolated clone may use only static `data-share-reach-*` decoration. It is download-only. Call it authored reachability—not impact, blast radius, breakage, or runtime causality.
|
|
42
|
+
|
|
43
|
+
## Truth boundary
|
|
44
|
+
|
|
45
|
+
Viewer exports are communication assets. They do not replace the checked HTML, the deterministic delivery receipt, or a real visual review. Do not add a hosted service, storage surface, dependency, schema branch, or mobile product surface for these viewer-only capabilities.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** Grid placement for architecture IR (#8). Not auto-layout — fixed cell math only. */
|
|
2
|
+
|
|
3
|
+
export const DEFAULT_GRID = {
|
|
4
|
+
mode: 'grid',
|
|
5
|
+
origin: [40, 80],
|
|
6
|
+
cols: 4,
|
|
7
|
+
gapX: 30,
|
|
8
|
+
gapY: 40,
|
|
9
|
+
cellW: 130,
|
|
10
|
+
cellH: 64,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export function gridLayout(arch) {
|
|
14
|
+
const raw = arch.layout;
|
|
15
|
+
if (!raw || raw.mode !== 'grid') return null;
|
|
16
|
+
return { ...DEFAULT_GRID, ...raw };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function resolveComponentPos(component, grid) {
|
|
20
|
+
if (Array.isArray(component.pos) && component.pos.length === 2) {
|
|
21
|
+
return component.pos;
|
|
22
|
+
}
|
|
23
|
+
if (!grid) return [NaN, NaN];
|
|
24
|
+
if (!Number.isInteger(component.row) || !Number.isInteger(component.col)) {
|
|
25
|
+
return [NaN, NaN];
|
|
26
|
+
}
|
|
27
|
+
const [ox, oy] = grid.origin;
|
|
28
|
+
const stepX = grid.cellW + grid.gapX;
|
|
29
|
+
const stepY = grid.cellH + grid.gapY;
|
|
30
|
+
return [ox + component.col * stepX, oy + component.row * stepY];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function validateGridPlacement(arch, grid, problems) {
|
|
34
|
+
if (!grid) return;
|
|
35
|
+
if (arch.layout !== undefined && arch.layout.mode !== 'grid') {
|
|
36
|
+
problems.push('layout.mode must be "grid" when layout is set (free placement omits layout entirely).');
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const seen = new Map();
|
|
40
|
+
for (const c of arch.components ?? []) {
|
|
41
|
+
const hasPos = Array.isArray(c.pos) && c.pos.length === 2;
|
|
42
|
+
const hasCell = Number.isInteger(c.row) && Number.isInteger(c.col);
|
|
43
|
+
if (hasPos) continue; // pos wins; row/col are optional hints only
|
|
44
|
+
if (!hasPos && !hasCell) {
|
|
45
|
+
problems.push(`Component "${c.id}" needs pos [x,y] or grid row/col when layout.mode is "grid".`);
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if (c.row < 0 || c.col < 0) {
|
|
49
|
+
problems.push(`Component "${c.id}" row/col must be non-negative integers.`);
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
if (c.col >= grid.cols) {
|
|
53
|
+
problems.push(`Component "${c.id}" col ${c.col} exceeds layout.cols ${grid.cols} (valid: 0..${grid.cols - 1}).`);
|
|
54
|
+
}
|
|
55
|
+
const key = `${c.row},${c.col}`;
|
|
56
|
+
if (seen.has(key)) {
|
|
57
|
+
problems.push(`Components "${seen.get(key)}" and "${c.id}" share grid cell row ${c.row} col ${c.col}.`);
|
|
58
|
+
} else {
|
|
59
|
+
seen.set(key, c.id);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|