@litfamily/litgravity 0.1.0 → 0.1.2
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/CHANGELOG.md +32 -0
- package/README.md +72 -17
- package/README_ko-KR.md +72 -17
- package/package.json +1 -1
- package/plugin/hooks/lib/lanes.mjs +65 -0
- package/plugin/hooks/lib/motion.mjs +34 -5
- package/plugin/hooks/lib/reentry.mjs +7 -0
- package/plugin/hooks/lib/rewind/brief.mjs +332 -0
- package/plugin/hooks/lib/rewind/collect.mjs +328 -0
- package/plugin/hooks/lib/rewind/gauge.mjs +55 -0
- package/plugin/hooks/lib/rewind/next-step.mjs +77 -0
- package/plugin/hooks/lib/rewind/redact.mjs +60 -0
- package/plugin/hooks/lib/rewind/transcripts.mjs +211 -0
- package/plugin/hooks/lib/routes.mjs +79 -5
- package/plugin/hooks/lib/workflow-stack.mjs +213 -0
- package/plugin/hooks/post-tool-use.mjs +37 -1
- package/plugin/hooks/pre-invocation.mjs +91 -2
- package/plugin/hooks/session-start.mjs +26 -3
- package/plugin/hooks/stop.mjs +22 -2
- package/plugin/hud/looks.mjs +29 -0
- package/plugin/hud/render.mjs +234 -12
- package/plugin/plugin.json +1 -1
- package/plugin/skills/frontend-ui-ux/SKILL.md +12 -1
- package/plugin/skills/frontend-ui-ux/kit/components.css +417 -0
- package/plugin/skills/frontend-ui-ux/kit/fonts.json +22 -0
- package/plugin/skills/frontend-ui-ux/kit/layouts/landing.html +164 -0
- package/plugin/skills/frontend-ui-ux/kit/layouts/settings.html +114 -0
- package/plugin/skills/frontend-ui-ux/kit/layouts/workspace.html +115 -0
- package/plugin/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +227 -0
- package/plugin/skills/frontend-ui-ux/kit/styles/field-notes.json +205 -0
- package/plugin/skills/frontend-ui-ux/kit/styles/graphite.json +200 -0
- package/plugin/skills/frontend-ui-ux/kit/styles/meadow.json +199 -0
- package/plugin/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +222 -0
- package/plugin/skills/frontend-ui-ux/kit/ui.js +226 -0
- package/plugin/skills/frontend-ui-ux/references/house-styles.md +234 -0
- package/plugin/skills/frontend-ui-ux/scripts/design-lock.mjs +400 -0
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +196 -0
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +30 -9
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +20 -8
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +42 -9
- package/plugin/skills/frontend-ui-ux/scripts/pixel-art.mjs +60 -0
- package/plugin/skills/lit-adhd/SKILL.md +157 -0
- package/plugin/skills/lit-adhd/references/card-examples.md +101 -0
- package/plugin/skills/lit-adhd/references/status-taxonomy.md +32 -0
- package/plugin/skills/lit-adhd/scripts/rewind.mjs +5 -0
- package/plugin/skills/lit-diagram-drawer/SKILL.md +5 -3
- package/plugin/skills/lit-diagram-drawer/references/drawing-rules.md +1 -1
- package/plugin/skills/lit-diagram-drawer/references/style-guide.md +21 -12
- package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +3 -3
- package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +1 -1
- package/plugin/skills/lit-diagram-drawer/references/type-tree.md +3 -3
- package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +1 -1
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +1 -2
- package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +1 -2
- package/plugin/skills/lit-docx/SKILL.md +3 -3
- package/plugin/skills/lit-handoff/SKILL.md +1 -0
- package/plugin/skills/lit-hijack/SKILL.md +263 -0
- package/plugin/skills/lit-hijack/references/capture-and-provenance.md +100 -0
- package/plugin/skills/lit-hijack/references/clean-room-build.md +75 -0
- package/plugin/skills/lit-hijack/references/distil-and-licence.md +67 -0
- package/plugin/skills/lit-hijack/references/gap-and-port-design.md +100 -0
- package/plugin/skills/lit-hijack/references/parity-and-report.md +85 -0
- package/plugin/skills/lit-hijack/scripts/hijack.mjs +953 -0
- package/plugin/skills/lit-plan/SKILL.md +1 -1
- package/plugin/skills/lit-pptx/SKILL.md +8 -8
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +93 -0
- package/plugin/skills/lit-pptx/fonts/provenance.json +32 -1
- package/plugin/skills/lit-pptx/references/agents/analyst.md +34 -56
- package/plugin/skills/lit-pptx/references/agents/antithesis.md +49 -67
- package/plugin/skills/lit-pptx/references/agents/architect.md +38 -51
- package/plugin/skills/lit-pptx/references/agents/critic.md +25 -41
- package/plugin/skills/lit-pptx/references/agents/synthesizer.md +37 -46
- package/plugin/skills/lit-pptx/references/agents/thesis.md +29 -49
- package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +119 -145
- package/plugin/skills/lit-pptx/references/authoring-guide.md +187 -278
- package/plugin/skills/lit-pptx/references/consensus-protocol.md +99 -97
- package/plugin/skills/lit-pptx/references/data-display-cookbook.md +36 -137
- package/plugin/skills/lit-pptx/references/density-and-fill.md +147 -216
- package/plugin/skills/lit-pptx/references/design-system-azure.md +56 -85
- package/plugin/skills/lit-pptx/references/direction-step.md +134 -176
- package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +114 -115
- package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +66 -66
- package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +63 -63
- package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +96 -96
- package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +81 -81
- package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +103 -103
- package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +100 -98
- package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +76 -76
- package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +96 -96
- package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +80 -80
- package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +72 -72
- package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +95 -95
- package/plugin/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +173 -0
- package/plugin/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +154 -0
- package/plugin/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +139 -0
- package/plugin/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +158 -0
- package/plugin/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +179 -0
- package/plugin/skills/lit-pptx/references/interview-protocol.md +83 -102
- package/plugin/skills/lit-pptx/references/layout-families.md +161 -265
- package/plugin/skills/lit-pptx/references/stages/autopilot.md +30 -70
- package/plugin/skills/lit-pptx/references/stages/interview.md +36 -68
- package/plugin/skills/lit-pptx/references/stages/plan.md +26 -67
- package/plugin/skills/lit-pptx/references/title-treatments.md +93 -145
- package/plugin/skills/lit-pptx/references/tonalities/atlas.md +95 -108
- package/plugin/skills/lit-pptx/references/tonalities/bauhaus.md +140 -0
- package/plugin/skills/lit-pptx/references/tonalities/chalk.md +107 -122
- package/plugin/skills/lit-pptx/references/tonalities/computational-brutalism.md +150 -0
- package/plugin/skills/lit-pptx/references/tonalities/gazette.md +87 -111
- package/plugin/skills/lit-pptx/references/tonalities/ledger.md +96 -125
- package/plugin/skills/lit-pptx/references/tonalities/neo-brutalism.md +161 -0
- package/plugin/skills/lit-pptx/references/tonalities/newsroom.md +144 -0
- package/plugin/skills/lit-pptx/references/tonalities/night.md +104 -131
- package/plugin/skills/lit-pptx/references/tonalities/paper.md +114 -130
- package/plugin/skills/lit-pptx/references/tonalities/riso.md +137 -0
- package/plugin/skills/lit-pptx/references/tonalities/signal.md +96 -103
- package/plugin/skills/lit-pptx/references/tonalities/studio.md +81 -112
- package/plugin/skills/lit-pptx/scripts/compile-deck.js +4 -6
- package/plugin/skills/lit-pptx/scripts/craft_extras.py +135 -91
- package/plugin/skills/lit-pptx/scripts/deck_craft.py +1 -1
- package/plugin/skills/lit-pptx/scripts/embed_fonts.py +13 -1
- package/plugin/skills/lit-pptx/scripts/layout_inventory.py +1 -1
- package/plugin/skills/lit-pptx/scripts/learn_template.py +1 -1
- package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +101 -110
- package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +9 -15
- package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +370 -563
- package/plugin/skills/lit-pptx/scripts/lib/slide-grid.js +104 -0
- package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +57 -6
- package/plugin/skills/lit-pptx/scripts/qa_deck.py +6 -6
- package/plugin/skills/lit-pptx/scripts/render_pages.py +31 -0
- package/plugin/skills/lit-pptx/scripts/validate_pptx.py +1 -1
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +167 -191
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +117 -166
- package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +307 -330
- package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +1 -1
- package/plugin/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +98 -0
- package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +1 -1
- package/plugin/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +99 -0
- package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +1 -1
- package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +1 -1
- package/plugin/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +107 -0
- package/plugin/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +99 -0
- package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +1 -1
- package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +1 -1
- package/plugin/skills/lit-pptx/templates/tonalities/riso/pack.yaml +99 -0
- package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +2 -2
- package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +1 -1
- package/plugin/skills/lit-schematic/SKILL.md +114 -0
- package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +38 -0
- package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +133 -0
- package/plugin/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +87 -0
- package/plugin/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +85 -0
- package/plugin/skills/lit-schematic/references/cutaway-outputs.md +70 -0
- package/plugin/skills/lit-schematic/references/isometric-craft.md +101 -0
- package/plugin/skills/lit-schematic/references/journal-figures.md +72 -0
- package/plugin/skills/lit-schematic/references/kit-api.md +134 -0
- package/plugin/skills/lit-schematic/references/pfd-and-layout.md +53 -0
- package/plugin/skills/lit-schematic/references/pid-drafting.md +103 -0
- package/plugin/skills/lit-schematic/references/pid-symbols.md +163 -0
- package/plugin/skills/lit-schematic/references/verification.md +100 -0
- package/plugin/skills/lit-schematic/scripts/doctor.mjs +57 -0
- package/plugin/skills/lit-schematic/scripts/lib/figure.mjs +81 -0
- package/plugin/skills/lit-schematic/scripts/lib/fonts.mjs +27 -0
- package/plugin/skills/lit-schematic/scripts/lib/geom.mjs +113 -0
- package/plugin/skills/lit-schematic/scripts/lib/interactive.mjs +292 -0
- package/plugin/skills/lit-schematic/scripts/lib/isa.mjs +115 -0
- package/plugin/skills/lit-schematic/scripts/lib/iso.mjs +719 -0
- package/plugin/skills/lit-schematic/scripts/lib/legend-sheet.mjs +162 -0
- package/plugin/skills/lit-schematic/scripts/lib/pid.mjs +937 -0
- package/plugin/skills/lit-schematic/scripts/lib/png.mjs +132 -0
- package/plugin/skills/lit-schematic/scripts/lib/qa-core.mjs +658 -0
- package/plugin/skills/lit-schematic/scripts/lib/route.mjs +218 -0
- package/plugin/skills/lit-schematic/scripts/lib/sheet.mjs +890 -0
- package/plugin/skills/lit-schematic/scripts/lib/svg.mjs +82 -0
- package/plugin/skills/lit-schematic/scripts/lib/theme.mjs +115 -0
- package/plugin/skills/lit-schematic/scripts/motion.mjs +129 -0
- package/plugin/skills/lit-schematic/scripts/qa.mjs +92 -0
- package/plugin/skills/lit-schematic/scripts/render.mjs +233 -0
- package/plugin/skills/lit-schematic/scripts/scaffold.mjs +60 -0
- package/plugin/skills/lit-scientific-visualization/SKILL.md +17 -6
- package/plugin/skills/lit-typographic-motion/SKILL.md +58 -48
- package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +13 -2
- package/plugin/skills/lit-typographic-motion/engine/blender/runner.py +218 -0
- package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +1 -1
- package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +65 -1
- package/plugin/skills/lit-typographic-motion/engine/node/assets.mjs +298 -0
- package/plugin/skills/lit-typographic-motion/engine/node/blender.mjs +143 -0
- package/plugin/skills/lit-typographic-motion/engine/node/board.mjs +136 -0
- package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +7 -1
- package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +9 -12
- package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +5 -3
- package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +7 -6
- package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +37 -4
- package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +19 -8
- package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +45 -6
- package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +7 -5
- package/plugin/skills/lit-typographic-motion/engine/node/gallery.mjs +121 -0
- package/plugin/skills/lit-typographic-motion/engine/node/host.mjs +34 -0
- package/plugin/skills/lit-typographic-motion/engine/node/house.mjs +44 -0
- package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +34 -20
- package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +19 -9
- package/plugin/skills/lit-typographic-motion/engine/node/scaffold.mjs +210 -0
- package/plugin/skills/lit-typographic-motion/engine/node/score.mjs +639 -0
- package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +21 -4
- package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +127 -29
- package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +7 -6
- package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +59 -5
- package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +141 -9
- package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +28 -5
- package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +82 -14
- package/plugin/skills/lit-typographic-motion/engine/node/styles.mjs +213 -0
- package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +311 -10
- package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +14 -2
- package/plugin/skills/lit-typographic-motion/engine/stage/init.js +11 -1
- package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +6 -1
- package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +83 -0
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/LICENSE +21 -0
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +144 -0
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +155 -0
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/three.module.js +54571 -0
- package/plugin/skills/lit-typographic-motion/recipes/hero-3d/expected.json +69 -0
- package/plugin/skills/lit-typographic-motion/recipes/hero-3d/index.html +139 -0
- package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +6 -4
- package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +4 -2
- package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +7 -5
- package/plugin/skills/lit-typographic-motion/references/cover.md +394 -443
- package/plugin/skills/lit-typographic-motion/references/craft-loop.md +57 -87
- package/plugin/skills/lit-typographic-motion/references/depth.md +122 -0
- package/plugin/skills/lit-typographic-motion/references/look.md +94 -129
- package/plugin/skills/lit-typographic-motion/references/runtime.md +58 -91
- package/plugin/skills/lit-typographic-motion/references/sound.md +130 -99
- package/plugin/skills/lit-typographic-motion/references/stage.md +190 -215
- package/plugin/skills/lit-typographic-motion/references/studio.md +245 -0
- package/plugin/skills/lit-typographic-motion/references/style-bibles.md +108 -97
- package/plugin/skills/lit-typographic-motion/references/treatment.md +191 -143
- package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +17 -5
- package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +47 -7
- package/plugin/skills/lit-typographic-motion/styles/paper.json +41 -0
- package/plugin/skills/lit-typographic-motion/styles/swiss-signal.json +41 -0
- package/plugin/skills/lit-typographic-motion/styles/terminalcore.json +42 -0
- package/plugin/skills/lit-typographic-motion/styles/tidal.json +41 -0
- package/plugin/skills/litresearch/SKILL.md +1 -0
- package/plugin/skills/readme-studio/SKILL.md +2 -0
- package/plugin/skills/readme-studio/templates/hyperframes-cover/package-lock.json +3 -3
- package/plugin/skills/readme-studio/templates/remotion-cover/package-lock.json +3 -3
- package/plugin/skills/review-work/SKILL.md +1 -1
- package/plugin/skills/start-work/SKILL.md +1 -1
package/plugin/hud/render.mjs
CHANGED
|
@@ -19,6 +19,9 @@ import { existsSync, mkdirSync, readdirSync, readFileSync, renameSync, statSync,
|
|
|
19
19
|
import { dirname, join } from 'node:path';
|
|
20
20
|
import { pluginVersion, sessionPath, stateRoot } from '../hooks/lib/common.mjs';
|
|
21
21
|
import { activePlan, openGoal, planRows } from '../hooks/lib/continuation.mjs';
|
|
22
|
+
import { readStack } from '../hooks/lib/workflow-stack.mjs';
|
|
23
|
+
import { readLanes } from '../hooks/lib/lanes.mjs';
|
|
24
|
+
import { DONE_MS, REVIEW_LANES, ROUTE_LOOKS, lookOf } from './looks.mjs';
|
|
22
25
|
|
|
23
26
|
const IGNITION_MS = 90_000;
|
|
24
27
|
const EFFORTS = new Set(['low', 'medium', 'high', 'xhigh', 'max']);
|
|
@@ -48,12 +51,19 @@ export const ROLES = {
|
|
|
48
51
|
red: { c256: 167, c16: 31 },
|
|
49
52
|
ink: { rgb: [11, 15, 20], c256: 233, c16: 30 },
|
|
50
53
|
pink: { rgb: [255, 45, 149], c256: 198, c16: 35 },
|
|
54
|
+
amber: { rgb: [255, 176, 32], c256: 214, c16: 33 },
|
|
55
|
+
// One colour per review-work lane, in REVIEW_LANES order.
|
|
56
|
+
lane1: { rgb: [0, 229, 255], c256: 51, c16: 36 },
|
|
57
|
+
lane2: { rgb: [120, 220, 90], c256: 113, c16: 32 },
|
|
58
|
+
lane3: { rgb: [170, 130, 255], c256: 141, c16: 35 },
|
|
59
|
+
lane4: { rgb: [255, 110, 110], c256: 203, c16: 31 },
|
|
60
|
+
lane5: { rgb: [90, 160, 255], c256: 75, c16: 34 },
|
|
51
61
|
};
|
|
52
62
|
export const BRAND_STOPS = [[255, 45, 149], [128, 137, 202], [0, 229, 255]];
|
|
53
63
|
|
|
54
64
|
const GLYPHS = {
|
|
55
|
-
unicode: { fire: '🔥', mid: '·', sep: '│', head: '|', done: '✓', todo: '·', rail: '━', link: '─', now: '●', warn: '⚠', fail: '✗', reset: '↻', next: '▸', lane: '●', idle: '◌', ellipsis: '…', full: '█', empty: '░', partial: ['', '▏', '▎', '▍', '▌', '▋', '▊', '▉'] },
|
|
56
|
-
ascii: { fire: '', mid: '.', sep: '|', head: '|', done: '+', todo: '.', rail: '=', link: '-', now: '*', warn: '!', fail: 'x', reset: 'reset', next: '>', lane: '*', idle: '.', ellipsis: '~', full: '#', empty: '-', partial: null },
|
|
65
|
+
unicode: { fire: '🔥', mid: '·', sep: '│', head: '|', done: '✓', todo: '·', rail: '━', link: '─', now: '●', warn: '⚠', fail: '✗', reset: '↻', next: '▸', lane: '●', idle: '◌', ellipsis: '…', spark: '✦', full: '█', empty: '░', partial: ['', '▏', '▎', '▍', '▌', '▋', '▊', '▉'] },
|
|
66
|
+
ascii: { fire: '', mid: '.', sep: '|', head: '|', done: '+', todo: '.', rail: '=', link: '-', now: '*', warn: '!', fail: 'x', reset: 'reset', next: '>', lane: '*', idle: '.', ellipsis: '~', spark: '*', full: '#', empty: '-', partial: null },
|
|
57
67
|
};
|
|
58
68
|
|
|
59
69
|
export function colorDepth(env) {
|
|
@@ -347,6 +357,100 @@ function teamOf(route) {
|
|
|
347
357
|
return best && best.members.length ? best.members : null;
|
|
348
358
|
}
|
|
349
359
|
|
|
360
|
+
// The goal record this conversation is bound to (the hooks saw it touch the record, or the record names it), newest
|
|
361
|
+
// first, with its write time.
|
|
362
|
+
function goalRecordOf(route) {
|
|
363
|
+
const base = join(route.dir, '.litgravity', 'goals');
|
|
364
|
+
const bound = typeof route.state.goalPath === 'string' ? route.state.goalPath.split('/').pop() : null;
|
|
365
|
+
let best = null;
|
|
366
|
+
for (const name of list(base, 40).filter((f) => f.endsWith('.json'))) {
|
|
367
|
+
try {
|
|
368
|
+
const rec = JSON.parse(readFileSync(join(base, name), 'utf8'));
|
|
369
|
+
if (!obj(rec) || (name !== bound && rec.conversation_id !== route.id)) continue;
|
|
370
|
+
const mtime = statSync(join(base, name)).mtimeMs;
|
|
371
|
+
if (!best || mtime > best.mtime) best = { rec, mtime };
|
|
372
|
+
} catch {
|
|
373
|
+
// a record being rewritten: skip it
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
return best;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// Why the session waits on the user, from what is on record: agy's own agent state, the reason the Stop hook saved
|
|
380
|
+
// when the turn ended, or a goal record that stopped on a decision or a blocker. null when nothing says so.
|
|
381
|
+
const GOAL_WAITS = { needs_user_decision: 'decision', blocked: 'BLOCKED', review_blocked: 'BLOCKED' };
|
|
382
|
+
function waitingOf(input, route) {
|
|
383
|
+
const saved = route ? obj(route.state.waiting)?.reason : null;
|
|
384
|
+
if (typeof saved === 'string' && saved) return saved;
|
|
385
|
+
const goal = route ? GOAL_WAITS[goalRecordOf(route)?.rec.status] : null;
|
|
386
|
+
if (goal) return goal;
|
|
387
|
+
return agentStateOf(input) === 'turn' ? 'turn' : null;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// True for DONE_MS after a plan or goal of this route was finished: a plan under plans/ whose rows are all ticked, or
|
|
391
|
+
// the bound goal record set to done, written after the route started. An older finish never shows.
|
|
392
|
+
function doneOf(route, now) {
|
|
393
|
+
const since = num(route.state.activatedAt) ?? now;
|
|
394
|
+
const fresh = (t) => t >= since && now - t <= DONE_MS && t <= now + 1000;
|
|
395
|
+
const goal = goalRecordOf(route);
|
|
396
|
+
if (goal?.rec.status === 'done' && fresh(goal.mtime)) return true;
|
|
397
|
+
const plans = join(route.dir, 'plans');
|
|
398
|
+
for (const name of list(plans, 100).filter((f) => f.endsWith('.md'))) {
|
|
399
|
+
try {
|
|
400
|
+
const mtime = statSync(join(plans, name)).mtimeMs;
|
|
401
|
+
if (!fresh(mtime)) continue;
|
|
402
|
+
const rows = planRows(readFileSync(join(plans, name), 'utf8'));
|
|
403
|
+
if (rows.length && rows.every((r) => r.done)) return true;
|
|
404
|
+
} catch {
|
|
405
|
+
// unreadable plan: no finish to show
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return false;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// The review-work lanes of the review folder written since the route started (`.litgravity/evidence/<slug>/review/`),
|
|
412
|
+
// each with the verdict its `lane-N-<name>.md` reports, or null while it has not reported. null before any folder.
|
|
413
|
+
function reviewLanesOf(route) {
|
|
414
|
+
const since = num(route.state.activatedAt) ?? 0;
|
|
415
|
+
const base = join(route.dir, '.litgravity', 'evidence');
|
|
416
|
+
let best = null;
|
|
417
|
+
for (const slug of list(base, 50)) {
|
|
418
|
+
const dir = join(base, slug, 'review');
|
|
419
|
+
try {
|
|
420
|
+
const mtime = statSync(dir).mtimeMs;
|
|
421
|
+
if (mtime >= since - 1000 && (!best || mtime > best.mtime)) best = { dir, mtime };
|
|
422
|
+
} catch {
|
|
423
|
+
// no review folder under this slug
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
if (!best) return null;
|
|
427
|
+
const files = list(best.dir, 200);
|
|
428
|
+
return REVIEW_LANES.map((name, i) => {
|
|
429
|
+
const file = files.find((f) => f === `lane-${i + 1}-${name}.md`);
|
|
430
|
+
if (!file) return { name, verdict: null };
|
|
431
|
+
try {
|
|
432
|
+
const head = readFileSync(join(best.dir, file), 'utf8').slice(0, 2048);
|
|
433
|
+
return { name, verdict: /^verdict:\s*(PASS|FAIL|BLOCKED)\b/im.exec(head)?.[1]?.toUpperCase() ?? null };
|
|
434
|
+
} catch {
|
|
435
|
+
return { name, verdict: null };
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
function lanesSegment(lanes, g) {
|
|
441
|
+
const sp = (t, role, extra = {}) => ({ t, role, ...extra });
|
|
442
|
+
const glyph = { PASS: g.done, FAIL: g.fail, BLOCKED: g.warn };
|
|
443
|
+
const reported = lanes.filter((l) => l.verdict).length;
|
|
444
|
+
const count = sp(` ${reported}/${lanes.length}`, 'accent', { b: true });
|
|
445
|
+
const named = lanes.flatMap((l, i) => [
|
|
446
|
+
...(i ? [sp(' ', 'dim')] : []),
|
|
447
|
+
l.verdict ? sp(l.name, `lane${i + 1}`, { b: true }) : sp(l.name, 'empty'),
|
|
448
|
+
sp(` ${l.verdict ? glyph[l.verdict] : g.todo}`, l.verdict ? `lane${i + 1}` : 'empty'),
|
|
449
|
+
]);
|
|
450
|
+
const blocks = lanes.map((l, i) => (l.verdict ? sp(g.full, `lane${i + 1}`) : sp(g.empty, 'empty')));
|
|
451
|
+
return { id: 'lanes', prio: 4, forms: [[...named, count], [...blocks, count], [count]] };
|
|
452
|
+
}
|
|
453
|
+
|
|
350
454
|
// A segment is a list of forms, richest first; a form is a list of spans { t, fg, bg, b }. `keep` marks the brand,
|
|
351
455
|
// which shrinks but never goes.
|
|
352
456
|
|
|
@@ -389,7 +493,7 @@ function segments(input, ctx) {
|
|
|
389
493
|
] });
|
|
390
494
|
}
|
|
391
495
|
|
|
392
|
-
const route =
|
|
496
|
+
const { route, waiting, done } = ctx;
|
|
393
497
|
const state = agentStateOf(input);
|
|
394
498
|
if (route) {
|
|
395
499
|
const name = clean(route.state.route, 24, g);
|
|
@@ -405,9 +509,18 @@ function segments(input, ctx) {
|
|
|
405
509
|
segs.push({ id: 'lit', prio: 1, forms });
|
|
406
510
|
const flow = flowSegment(route, ctx);
|
|
407
511
|
if (flow) segs.push(flow);
|
|
512
|
+
const threads = threadSegment(route, ctx);
|
|
513
|
+
if (threads) segs.push(threads);
|
|
514
|
+
const lanes = ROUTE_LOOKS[route.state.route] === 'review' ? reviewLanesOf(route) : null;
|
|
515
|
+
if (lanes) segs.push(lanesSegment(lanes, g));
|
|
408
516
|
}
|
|
409
517
|
|
|
410
|
-
if (
|
|
518
|
+
if (waiting) {
|
|
519
|
+
const why = waiting === 'turn' || waiting === 'asked' ? '' : ` ${g.mid} ${clean(waiting, 12, g)}`;
|
|
520
|
+
segs.push({ id: 'attention', prio: 2, forms: [[sp(`${g.warn} YOUR TURN${why}`, 'amber', { b: true })], [sp(`${g.warn} YOUR TURN`, 'amber', { b: true })], [sp(g.warn, 'amber', { b: true })]] });
|
|
521
|
+
} else if (done) {
|
|
522
|
+
segs.push({ id: 'attention', prio: 2, forms: [[sp(`${g.spark} DONE ${g.spark}`, 'green', { b: true })], [sp('DONE', 'green', { b: true })]] });
|
|
523
|
+
}
|
|
411
524
|
if (state === 'error') segs.push({ id: 'attention', prio: 2, forms: [[sp(`${g.fail} error`, 'red', { b: true })], [sp(g.fail, 'red', { b: true })]] });
|
|
412
525
|
|
|
413
526
|
const cost = costOf(input);
|
|
@@ -504,8 +617,53 @@ function flowSegment(route, ctx) {
|
|
|
504
617
|
return { id: 'flow', prio: 4, forms: mapForms(labels, at, detail, g) };
|
|
505
618
|
}
|
|
506
619
|
|
|
620
|
+
// Count chain for the top frame: recorded n/total -> plan checkboxes -> goal criteria -> steps N -> null.
|
|
621
|
+
// A count appears only when both numbers are real. When only the done count is known, show "N steps".
|
|
622
|
+
// Returns null when there is nothing to show.
|
|
623
|
+
function topCount(route, top) {
|
|
624
|
+
if (Number.isInteger(top?.n) && Number.isInteger(top?.total)) return `${top.n}/${top.total}`;
|
|
625
|
+
// Plan-ref hand-off: the plan ref from a finished predecessor carries to the successor.
|
|
626
|
+
const ref = top?.ref?.plan;
|
|
627
|
+
if (ref) {
|
|
628
|
+
try {
|
|
629
|
+
const rows = planRows(readFileSync(join(route.dir, ref), 'utf8'));
|
|
630
|
+
if (rows.length) return `${rows.filter((r) => r.done).length}/${rows.length}`;
|
|
631
|
+
} catch { /* plan unreadable */ }
|
|
632
|
+
}
|
|
633
|
+
const goal = GOAL_ROUTES.has(route.state.route) ? openGoal({ conversationId: route.id, workspacePaths: [route.dir] }, route.state, route.dir) : null;
|
|
634
|
+
if (goal) return `${goal.pass}/${goal.total}`;
|
|
635
|
+
if (Number.isInteger(top?.n) && top.n > 0) return `${top.n} steps`;
|
|
636
|
+
return null;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
function threadSegment(route, ctx) {
|
|
640
|
+
const { env, now } = ctx;
|
|
641
|
+
const sp = (t, role = 'accent', extra = {}) => ({ t, role, ...extra });
|
|
642
|
+
const dir = workspaceDirs({ workspace: route.dir, cwd: route.dir })[0];
|
|
643
|
+
if (!dir) return null;
|
|
644
|
+
const stack = readStack(dir, route.id, env);
|
|
645
|
+
const lanes = readLanes(dir, route.id, env, now);
|
|
646
|
+
const activeLanes = lanes.filter((l) => l.status === 'active');
|
|
647
|
+
const paused = stack ? stack.frames.filter((f) => f.status === 'paused') : [];
|
|
648
|
+
if ((!stack || stack.frames.length < 2) && !activeLanes.length) return null;
|
|
649
|
+
const top = stack?.frames.at(-1);
|
|
650
|
+
const count = topCount(route, top);
|
|
651
|
+
const parts = [];
|
|
652
|
+
if (count) parts.push(sp(count, 'accent'));
|
|
653
|
+
if (activeLanes.length > 0) {
|
|
654
|
+
parts.push(sp(`${count ? ' ' : ''}+${activeLanes.length} ${activeLanes.length === 1 ? 'lane' : 'lanes'}`, 'dim'));
|
|
655
|
+
} else if (paused.length > 0) {
|
|
656
|
+
parts.push(sp(`${count ? ' ' : ''}+${paused.length} paused`, 'dim'));
|
|
657
|
+
}
|
|
658
|
+
if (!parts.length) return null;
|
|
659
|
+
const short = activeLanes.length > 0
|
|
660
|
+
? [sp(`+${activeLanes.length} ${activeLanes.length === 1 ? 'lane' : 'lanes'}`, 'dim')]
|
|
661
|
+
: paused.length > 0 ? [sp(`+${paused.length} paused`, 'dim')] : [];
|
|
662
|
+
return { id: 'threads', prio: 5, forms: [parts, short.length ? short : parts] };
|
|
663
|
+
}
|
|
664
|
+
|
|
507
665
|
// Display order: the mark, model [effort], context, quota, then the route and its map, then the extras.
|
|
508
|
-
const ORDER = ['brand', 'model', 'ctx', 'quota', 'lit', 'attention', 'flow', 'cost', 'tasks', 'git', 'title'];
|
|
666
|
+
const ORDER = ['brand', 'model', 'ctx', 'quota', 'lit', 'attention', 'flow', 'lanes', 'threads', 'cost', 'tasks', 'git', 'title'];
|
|
509
667
|
|
|
510
668
|
function layout(segs, pick, g) {
|
|
511
669
|
const shown = ORDER.flatMap((id) => segs.filter((s) => s.id === id && pick.get(s) !== null));
|
|
@@ -562,12 +720,69 @@ function fit(segs, width, g) {
|
|
|
562
720
|
return out;
|
|
563
721
|
}
|
|
564
722
|
|
|
565
|
-
|
|
723
|
+
// The lit-adhd rainbow: every cell of the line takes its own step round the colour wheel, pills
|
|
724
|
+
// included (their ground turns, lightened so the dark ink keeps 4.5:1), and the whole wheel moves one
|
|
725
|
+
// step per 10-second bucket, so a repaint inside a bucket is identical and nothing flashes. Only the
|
|
726
|
+
// colour of fixed glyphs changes; widths and text are those of the plain line. NO_COLOR is the plain
|
|
727
|
+
// depth and gets no escape at all.
|
|
728
|
+
const RAINBOW_STEP = 15;
|
|
729
|
+
const RAINBOW_BUCKET_MS = 10_000;
|
|
730
|
+
const RAINBOW_INK = [20, 20, 24];
|
|
731
|
+
const BASIC_HUES = [31, 33, 32, 36, 34, 35];
|
|
732
|
+
|
|
733
|
+
function hslToRgb(h, s, l) {
|
|
734
|
+
const c = (1 - Math.abs(2 * l - 1)) * s;
|
|
735
|
+
const x = c * (1 - Math.abs(((h / 60) % 2) - 1));
|
|
736
|
+
const m = l - c / 2;
|
|
737
|
+
let r = 0; let g = 0; let b = 0;
|
|
738
|
+
if (h < 60) { r = c; g = x; }
|
|
739
|
+
else if (h < 120) { r = x; g = c; }
|
|
740
|
+
else if (h < 180) { g = c; b = x; }
|
|
741
|
+
else if (h < 240) { g = x; b = c; }
|
|
742
|
+
else if (h < 300) { r = x; b = c; }
|
|
743
|
+
else { r = c; b = x; }
|
|
744
|
+
return [Math.round((r + m) * 255), Math.round((g + m) * 255), Math.round((b + m) * 255)];
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
const cube = ([r, g, b]) => 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
|
748
|
+
|
|
749
|
+
function rainbowCode(rgb, depth, ground, hue) {
|
|
750
|
+
if (depth === 'truecolor') return `${ground ? 48 : 38};2;${rgb.join(';')}`;
|
|
751
|
+
if (depth === '256') return `${ground ? 48 : 38};5;${cube(rgb)}`;
|
|
752
|
+
return String(BASIC_HUES[Math.floor(hue / 60) % BASIC_HUES.length] + (ground ? 10 : 0));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
function rainbowSpan(s, depth, state) {
|
|
566
756
|
let out = '';
|
|
567
|
-
for (const
|
|
568
|
-
|
|
569
|
-
if (!s.
|
|
570
|
-
|
|
757
|
+
for (const ch of s.t) {
|
|
758
|
+
const cell = state.cell++;
|
|
759
|
+
if (ch === ' ' && !s.bg) { out += ch; continue; }
|
|
760
|
+
const hue = (cell * RAINBOW_STEP + state.bucket * RAINBOW_STEP * 2) % 360;
|
|
761
|
+
const codes = [s.b ? '1' : ''];
|
|
762
|
+
if (s.bg) {
|
|
763
|
+
codes.push(rainbowCode(RAINBOW_INK, depth, false, 0), rainbowCode(hslToRgb(hue, 0.8, 0.72), depth, true, hue));
|
|
764
|
+
} else {
|
|
765
|
+
codes.push(rainbowCode(hslToRgb(hue, 0.8, 0.65), depth, false, hue));
|
|
766
|
+
}
|
|
767
|
+
out += `\u001b[${codes.filter(Boolean).join(';')}m${ch}`;
|
|
768
|
+
}
|
|
769
|
+
return out ? `${out}\u001b[0m` : out;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
// The YOUR TURN paint: every coloured span and every pill ground turns amber, so the row reads as one waiting state;
|
|
773
|
+
// dim text, rails, red and the dark pill ink keep their colours. It is static.
|
|
774
|
+
const AMBER_KEEPS = new Set(['dim', 'empty', 'rail', 'red', 'ink']);
|
|
775
|
+
const amberSpan = (s) => ({ ...s, role: s.role && !AMBER_KEEPS.has(s.role) ? 'amber' : s.role, bg: s.bg ? 'amber' : s.bg });
|
|
776
|
+
|
|
777
|
+
function paint(spans, depth, rainbow = null, amber = false) {
|
|
778
|
+
let out = '';
|
|
779
|
+
const state = rainbow ? { cell: 0, bucket: Math.floor((rainbow.now ?? Date.now()) / RAINBOW_BUCKET_MS) } : null;
|
|
780
|
+
for (const span of spans) {
|
|
781
|
+
if (span.brand !== undefined) { out += brandText(span.brand, depth); if (state) state.cell += visibleWidth(span.brand); continue; }
|
|
782
|
+
if (!span.t) continue;
|
|
783
|
+
if (depth === 'plain') { out += span.t; continue; }
|
|
784
|
+
if (state) { out += rainbowSpan(span, depth, state); continue; }
|
|
785
|
+
const s = amber ? amberSpan(span) : span;
|
|
571
786
|
const codes = [s.b ? '1' : '', s.role ? sgr(s.role, depth, false) : '', s.bg ? sgr(s.bg, depth, true) : ''].filter(Boolean);
|
|
572
787
|
out += codes.length ? `\u001b[${codes.join(';')}m${s.t}\u001b[0m` : s.t;
|
|
573
788
|
}
|
|
@@ -586,8 +801,15 @@ export function renderStatus(input, opts = {}) {
|
|
|
586
801
|
const env = opts.env ?? process.env;
|
|
587
802
|
const data = obj(input) ?? {};
|
|
588
803
|
const g = asciiOnly(env) ? GLYPHS.ascii : GLYPHS.unicode;
|
|
589
|
-
const
|
|
590
|
-
|
|
804
|
+
const now = opts.now ?? Date.now();
|
|
805
|
+
const depth = colorDepth(env);
|
|
806
|
+
const route = routeOf(data, env);
|
|
807
|
+
const waiting = waitingOf(data, route);
|
|
808
|
+
const done = route ? doneOf(route, now) : false;
|
|
809
|
+
const look = lookOf({ route: route?.state.route ?? null, waiting, done });
|
|
810
|
+
const ctx = { g, env, now, route, waiting, done };
|
|
811
|
+
const rainbow = look === 'rewind' && depth !== 'plain' ? { now } : null;
|
|
812
|
+
return paint(fit(segments(data, ctx), widthOf(data, env, opts.width), g), depth, rainbow, look === 'your-turn');
|
|
591
813
|
}
|
|
592
814
|
|
|
593
815
|
/** The line printed when anything above throws: the mark alone, never an error. */
|
package/plugin/plugin.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
|
3
3
|
"name": "litgravity",
|
|
4
4
|
"description": "LitFamily workflows for the Antigravity CLI: bare lit activation, planning, evidence-bound execution, review, research, handoff and Korean prose care.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.2"
|
|
6
6
|
}
|
|
@@ -54,10 +54,21 @@ Words and limits for each mode live in `references/craft-floor.md` section 3.
|
|
|
54
54
|
|
|
55
55
|
## Procedure
|
|
56
56
|
|
|
57
|
+
**Theme first.** Before building, ask the user to choose the house style with one `ask_question` round: two to four real options from `design-lock.mjs match` (field-notes, graphite, computational-brutalism and the other styles in `references/house-styles.md`), plus the density (rich by default, calm on request), the recommended one first with a one-line reason. Skip the question only when the prompt names one or says "you choose" / "알아서". When nobody can answer (headless `agy -p`), take the recommended option, log a `decision` ledger line and say so in one line.
|
|
58
|
+
|
|
57
59
|
1. **Inspect and choose the lane.** Read repository guidance, manifests, routes, tokens, primitives and test gates; take a narrow and a wide look at the existing UI when one exists. Record which conventions must be preserved and which deviations the work requires.
|
|
58
60
|
|
|
59
61
|
2. **Direction and inventory.** Follow `references/production-interview.md` for any material ambiguity and keep each answer across turns. Capture a compact direction (audience, task, qualities, one non-goal) and a finite inventory: routes, regions, components, interactions, states (loading, empty, error, success, disabled, offline, permission, ready) and viewports. Open `references/taste-direction.md` when direction is disputed or undecided.
|
|
60
62
|
|
|
63
|
+
For a new page or screen, lock the look before writing markup, then read `references/house-styles.md` for the class catalogue:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
FRONTEND_UIUX_SKILL_ROOT="<directory containing the selected installed SKILL.md>"
|
|
67
|
+
node "$FRONTEND_UIUX_SKILL_ROOT/scripts/design-lock.mjs" init --family <landing|workspace|settings> [--style <field-notes|graphite|meadow|computational-brutalism|neo-brutalism>] [--brief "<the request>"] [--density calm] --moment <kind> --moment-note "<what it is>" --dir "<project>" --scaffold
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
When a new brief supplies no visual direction, apply `references/default-editorial-pixel.json` without asking: a read-once page locks `field-notes`, a work surface locks `graphite`. Omitting `--style` applies these family defaults unless the request names a register by a style keyword (`design-lock.mjs match "<request>"` shows the pick). The lock is rich by default: a tighter section rhythm, texture, a second accent family (`--c-accent-2`), colour bands, a two-accent wash and an atmosphere glow, with up to four accent hue families per view; it locks `density: calm` only when the request asks for a minimal, calm, quiet or restrained page. Build with the kit's `ui-*` classes and `var(--…)` tokens only. Every page also carries one signature moment chosen for its content (house-styles.md section 6): bold on a read-once page (`hero-composition`, `type-set-piece`, `data-moment`, `diagram`, `motion-detail`, `interactive-object`), small on a work surface (`chart`, `empty-state`, `header-detail`). Record it in the lock, mark that element `data-ui-moment="<kind>"`, and DS-008 fails a page without it.
|
|
71
|
+
|
|
61
72
|
3. **Prompt-to-implementation coverage.** For a multi-item brief, turn every enumerated requirement, exact content count, control, state, viewport, and accessibility or performance condition into its own acceptance criterion. A working page leaves an omitted item unsatisfied. Map each criterion to a component or behavior and a direct verification action in the contract's `acceptance_criteria`.
|
|
62
73
|
|
|
63
74
|
4. **Feature-first build order.** Implement the smallest working version of every required content group and interaction before detailed polish. Exact counts render as that many distinct items, and controls change the requested state. A scroll story needs an observable state change triggered by real scroll, working with reduced motion on and with media failed. Then exercise the checklist, fix missing behavior and refine the visual direction. Semantic markup first: real `<button>`, `<a>`, `<label for>`, landmarks, one `h1`.
|
|
@@ -91,7 +102,7 @@ Run steps 1, 2 and 6 against the existing code and any rendered page, with every
|
|
|
91
102
|
|
|
92
103
|
### Focused references (open lazily)
|
|
93
104
|
|
|
94
|
-
`references/craft-floor.md` and `references/slop-register.md` (always), `references/adaptive-layout.md`, `references/brand-and-imagery.md`, `references/composition.md`, `references/creative-directions.md`, `references/evidence-review.md`, `references/implementation-platforms.md`, `references/inclusive-interface.md`, `references/interaction-motion.md`, `references/motion-guide.md`, `references/operating-lanes.md`, `references/performance-delivery.md`, `references/product-direction.md`, `references/redesign-playbook.md`, `references/system-foundations.md`, `references/taste-direction.md`, `references/visual-language.md`, `references/visual-reconstruction.md`. The preserved full contract is `references/complete-contract.md`; load it for a schema, activation or install question.
|
|
105
|
+
`references/craft-floor.md` and `references/slop-register.md` (always), `references/house-styles.md` (before markup on a new page or screen), `references/adaptive-layout.md`, `references/brand-and-imagery.md`, `references/composition.md`, `references/creative-directions.md`, `references/evidence-review.md`, `references/implementation-platforms.md`, `references/inclusive-interface.md`, `references/interaction-motion.md`, `references/motion-guide.md`, `references/operating-lanes.md`, `references/performance-delivery.md`, `references/product-direction.md`, `references/redesign-playbook.md`, `references/system-foundations.md`, `references/taste-direction.md`, `references/visual-language.md`, `references/visual-reconstruction.md`. The preserved full contract is `references/complete-contract.md`; load it for a schema, activation or install question.
|
|
95
106
|
|
|
96
107
|
### Canonical library router
|
|
97
108
|
|