@litfamily/litcodex 1.0.30 → 1.0.31
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/README-Ko-KR.md +11 -11
- package/README.md +11 -11
- package/dist/install/generated-skill-payload-hashes.d.ts +188 -82
- package/dist/install/generated-skill-payload-hashes.js +188 -82
- package/dist/install/skill-catalog.d.ts +1 -1
- package/dist/install/skill-catalog.js +12 -1
- package/dist/install/skill-resource-hashes.d.ts +1 -1
- package/dist/install/skill-resource-hashes.js +1 -1
- package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
- package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
- package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
- package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/directive.md +10 -4
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-adhd.md +191 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-handoff.md +2 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-hijack.md +219 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-recap.md +2 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-schematic.md +199 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/litwork.md +2 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/adhd-suggest.d.ts +10 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/adhd-suggest.js +67 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-html.d.ts +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-html.js +128 -8
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-looks.d.ts +19 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-looks.js +58 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-status.d.ts +27 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-status.js +94 -7
- package/marketplace/plugins/litcodex/components/lit-loop/dist/cli.js +13 -3
- package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.d.ts +2 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.js +8 -9
- package/marketplace/plugins/litcodex/components/lit-loop/dist/control-chars.d.ts +5 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/control-chars.js +23 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.d.ts +8 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.js +118 -11
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hud.d.ts +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hud.js +29 -13
- package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-events.d.ts +13 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-events.js +85 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-state.d.ts +55 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-state.js +227 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/live-step.d.ts +5 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/live-step.js +17 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/markers.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/markers.js +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/modes.d.ts +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/modes.js +25 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-gate.d.ts +79 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-gate.js +310 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.js +5 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/plan-persistence.js +10 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/redaction.js +18 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/reentry.d.ts +15 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/reentry.js +46 -9
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-cli.d.ts +10 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-cli.js +88 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-go.d.ts +20 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-go.js +84 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-look.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-look.js +41 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-redact.d.ts +3 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-redact.js +40 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-rollout.d.ts +48 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-rollout.js +292 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind.d.ts +162 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind.js +773 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/route-heads.js +44 -2
- package/marketplace/plugins/litcodex/components/lit-loop/dist/run-panel.js +1 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/schematic-route.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/schematic-route.js +35 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/screen-card.d.ts +3 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/screen-card.js +15 -5
- package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-mention-scope.js +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/stack-hook.d.ts +8 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/stack-hook.js +57 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/statusline.js +8 -3
- package/marketplace/plugins/litcodex/components/lit-loop/dist/threads.d.ts +50 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/threads.js +178 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/trigger.d.ts +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/trigger.js +29 -5
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.d.ts +10 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.js +11 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-stack.d.ts +132 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-stack.js +488 -0
- package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
- package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
- package/marketplace/plugins/litcodex/components/start-work-continuation/dist/codex-hook.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/start-work-continuation/dist/codex-hook.js +65 -0
- package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
- package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
- package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
- package/marketplace/plugins/litcodex/hooks/hooks.json +24 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/SKILL.md +6 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/components.css +414 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/fonts.json +22 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/landing.html +164 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/settings.html +114 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/workspace.html +115 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +227 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/field-notes.json +205 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/graphite.json +200 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/meadow.json +199 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +222 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/ui.js +228 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/brand-and-imagery.md +1 -1
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/complete-contract.md +1 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/craft-floor.md +2 -2
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/default-editorial-pixel.json +15 -8
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/design-choice.md +19 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/house-styles.md +235 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/motion-guide.md +2 -2
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/probe-and-review.md +6 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/production-interview.md +2 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/slop-register.md +4 -4
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/design-lock.mjs +400 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/lock-probe.mjs +196 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/page-probe.mjs +22 -4
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/pixel-art.mjs +60 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/probe.mjs +59 -13
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/rule-data.mjs +38 -4
- package/marketplace/plugins/litcodex/skills/lit-adhd/SKILL.md +181 -0
- package/marketplace/plugins/litcodex/skills/lit-adhd/agents/openai.yaml +6 -0
- package/marketplace/plugins/litcodex/skills/lit-adhd/references/card-examples.md +147 -0
- package/marketplace/plugins/litcodex/skills/lit-adhd/references/status-taxonomy.md +37 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/SKILL.md +18 -7
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/style-guide.md +20 -11
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-architecture.md +3 -3
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dependency.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-swimlane.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree.md +3 -3
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-wardley.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/verifier-guide.md +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +1 -2
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality.mjs +1 -2
- package/marketplace/plugins/litcodex/skills/lit-docx/SKILL.md +12 -3
- package/marketplace/plugins/litcodex/skills/lit-docx/references/direction-step.md +6 -3
- package/marketplace/plugins/litcodex/skills/lit-hijack/SKILL.md +449 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/agents/openai.yaml +6 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/capture-and-provenance.md +100 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/clean-room-build.md +111 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/distil-and-licence.md +102 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/gap-and-port-design.md +125 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/parity-and-report.md +108 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/scripts/hijack.mjs +1050 -0
- package/marketplace/plugins/litcodex/skills/lit-loop/SKILL.md +13 -4
- package/marketplace/plugins/litcodex/skills/lit-plan/SKILL.md +6 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/NOTICE +1 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/SKILL.md +35 -8
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +93 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/SOURCE.md +21 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/anti-slop-checklist.md +5 -2
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/authoring-guide.md +3 -4
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/density-and-fill.md +20 -6
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/direction-step.md +26 -8
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/14-engineering-review-computational-brutalism-ko.md +173 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/15-launch-pitch-neo-brutalism-ko.md +154 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/16-design-lecture-bauhaus-ko.md +139 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/17-community-programme-riso-ko.md +158 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/18-public-data-briefing-newsroom-ko.md +179 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/layout-families.md +42 -27
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/title-treatments.md +31 -27
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/bauhaus.md +136 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/chalk.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/computational-brutalism.md +145 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/neo-brutalism.md +155 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/newsroom.md +141 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/riso.md +133 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/signal.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/studio.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/compile-deck.js +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/craft_extras.py +136 -94
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/embed_fonts.py +13 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/grid-resolver.js +101 -110
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/layout-resolver.js +9 -15
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-pack.js +386 -579
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/slide-grid.js +104 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/template-registry.js +57 -6
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/office-run.mjs +2 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/qa_deck.py +7 -13
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/render_pages.py +124 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +98 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +100 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +107 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +99 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/night/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/paper/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/riso/pack.yaml +99 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/signal/pack.yaml +2 -2
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/studio/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-recap/SKILL.md +2 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/SKILL.md +198 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/agents/openai.yaml +6 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +38 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +133 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +87 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +85 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/cutaway-outputs.md +70 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/isometric-craft.md +101 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/journal-figures.md +72 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/kit-api.md +134 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/pfd-and-layout.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/pid-drafting.md +103 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/pid-symbols.md +163 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/verification.md +100 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/doctor.mjs +57 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/figure.mjs +81 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/fonts.mjs +28 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/geom.mjs +113 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/interactive.mjs +292 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/isa.mjs +115 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/iso.mjs +719 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/legend-sheet.mjs +162 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/pid.mjs +937 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/png.mjs +132 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/qa-core.mjs +658 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/route.mjs +218 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/sheet.mjs +890 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/svg.mjs +82 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/theme.mjs +115 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/motion.mjs +129 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/qa.mjs +92 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/render.mjs +233 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/scaffold.mjs +60 -0
- package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/SKILL.md +34 -8
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/SKILL.md +18 -14
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +12 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/assets.mjs +388 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/blender/runner.py +221 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/blender.mjs +132 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/board.mjs +142 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/constants.mjs +6 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-assets.mjs +7 -4
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-capture.mjs +8 -7
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-init.js +14 -2
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-treatment.mjs +38 -3
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover.mjs +19 -4
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/driver.mjs +8 -8
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/gallery.mjs +147 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/house.mjs +45 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/image.mjs +89 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/look.mjs +58 -25
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/runtime.mjs +59 -14
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/safe-read.mjs +32 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/scaffold.mjs +208 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/score.mjs +668 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/sound.mjs +174 -31
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-gate.mjs +45 -3
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-kit.js +99 -1
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.js +8 -1
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.mjs +180 -11
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-render.mjs +42 -12
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-worker.mjs +7 -4
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage.mjs +96 -10
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/styles.mjs +233 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/treatment.mjs +291 -14
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/LICENSE +21 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +144 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +155 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/three.module.js +54571 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/hero-3d/expected.json +33 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/hero-3d/index.html +139 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/cover.md +44 -7
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/depth.md +156 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/design-choice.md +22 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/quality-gate.md +29 -7
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/runtime.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/sound.md +87 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/stage.md +19 -7
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/studio.md +246 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/style-bibles.md +2 -2
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/treatment.md +41 -21
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/render.mjs +51 -4
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/paper.json +185 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/swiss-signal.json +188 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/terminalcore.json +182 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/tidal.json +187 -0
- package/marketplace/plugins/litcodex/skills/litresearch/SKILL.md +7 -0
- package/marketplace/plugins/litcodex/skills/litwork/SKILL.md +2 -1
- package/marketplace/plugins/litcodex/skills/readme-studio/SKILL.md +10 -0
- package/marketplace/plugins/litcodex/skills/review-work/SKILL.md +7 -1
- package/marketplace/plugins/litcodex/skills/start-work/SKILL.md +10 -0
- package/node_modules/@litcodex/lit-loop/directive.md +10 -4
- package/node_modules/@litcodex/lit-loop/directives/lit-adhd.md +191 -0
- package/node_modules/@litcodex/lit-loop/directives/lit-handoff.md +2 -0
- package/node_modules/@litcodex/lit-loop/directives/lit-hijack.md +219 -0
- package/node_modules/@litcodex/lit-loop/directives/lit-recap.md +2 -0
- package/node_modules/@litcodex/lit-loop/directives/lit-schematic.md +199 -0
- package/node_modules/@litcodex/lit-loop/directives/litwork.md +2 -1
- package/node_modules/@litcodex/lit-loop/dist/adhd-suggest.d.ts +10 -0
- package/node_modules/@litcodex/lit-loop/dist/adhd-suggest.js +67 -0
- package/node_modules/@litcodex/lit-loop/dist/card-html.d.ts +1 -1
- package/node_modules/@litcodex/lit-loop/dist/card-html.js +128 -8
- package/node_modules/@litcodex/lit-loop/dist/card-looks.d.ts +19 -0
- package/node_modules/@litcodex/lit-loop/dist/card-looks.js +58 -0
- package/node_modules/@litcodex/lit-loop/dist/card-status.d.ts +27 -0
- package/node_modules/@litcodex/lit-loop/dist/card-status.js +94 -7
- package/node_modules/@litcodex/lit-loop/dist/cli.js +13 -3
- package/node_modules/@litcodex/lit-loop/dist/codex-hook.d.ts +2 -0
- package/node_modules/@litcodex/lit-loop/dist/codex-hook.js +8 -9
- package/node_modules/@litcodex/lit-loop/dist/control-chars.d.ts +5 -0
- package/node_modules/@litcodex/lit-loop/dist/control-chars.js +23 -0
- package/node_modules/@litcodex/lit-loop/dist/hook-cli.d.ts +8 -0
- package/node_modules/@litcodex/lit-loop/dist/hook-cli.js +118 -11
- package/node_modules/@litcodex/lit-loop/dist/hud.d.ts +1 -1
- package/node_modules/@litcodex/lit-loop/dist/hud.js +29 -13
- package/node_modules/@litcodex/lit-loop/dist/lane-events.d.ts +13 -0
- package/node_modules/@litcodex/lit-loop/dist/lane-events.js +85 -0
- package/node_modules/@litcodex/lit-loop/dist/lane-state.d.ts +55 -0
- package/node_modules/@litcodex/lit-loop/dist/lane-state.js +227 -0
- package/node_modules/@litcodex/lit-loop/dist/live-step.d.ts +5 -1
- package/node_modules/@litcodex/lit-loop/dist/live-step.js +17 -1
- package/node_modules/@litcodex/lit-loop/dist/markers.d.ts +6 -0
- package/node_modules/@litcodex/lit-loop/dist/markers.js +6 -0
- package/node_modules/@litcodex/lit-loop/dist/modes.d.ts +1 -1
- package/node_modules/@litcodex/lit-loop/dist/modes.js +25 -1
- package/node_modules/@litcodex/lit-loop/dist/motion-gate.d.ts +79 -0
- package/node_modules/@litcodex/lit-loop/dist/motion-gate.js +310 -0
- package/node_modules/@litcodex/lit-loop/dist/motion-route.js +5 -1
- package/node_modules/@litcodex/lit-loop/dist/plan-persistence.js +10 -0
- package/node_modules/@litcodex/lit-loop/dist/redaction.js +18 -0
- package/node_modules/@litcodex/lit-loop/dist/reentry.d.ts +15 -0
- package/node_modules/@litcodex/lit-loop/dist/reentry.js +46 -9
- package/node_modules/@litcodex/lit-loop/dist/rewind-cli.d.ts +10 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-cli.js +88 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-go.d.ts +20 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-go.js +84 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-look.d.ts +6 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-look.js +41 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-redact.d.ts +3 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-redact.js +40 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-rollout.d.ts +48 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-rollout.js +292 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind.d.ts +162 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind.js +773 -0
- package/node_modules/@litcodex/lit-loop/dist/route-heads.js +44 -2
- package/node_modules/@litcodex/lit-loop/dist/run-panel.js +1 -0
- package/node_modules/@litcodex/lit-loop/dist/schematic-route.d.ts +6 -0
- package/node_modules/@litcodex/lit-loop/dist/schematic-route.js +35 -0
- package/node_modules/@litcodex/lit-loop/dist/screen-card.d.ts +3 -0
- package/node_modules/@litcodex/lit-loop/dist/screen-card.js +15 -5
- package/node_modules/@litcodex/lit-loop/dist/skill-mention-scope.js +6 -0
- package/node_modules/@litcodex/lit-loop/dist/stack-hook.d.ts +8 -0
- package/node_modules/@litcodex/lit-loop/dist/stack-hook.js +57 -0
- package/node_modules/@litcodex/lit-loop/dist/statusline.js +8 -3
- package/node_modules/@litcodex/lit-loop/dist/threads.d.ts +50 -0
- package/node_modules/@litcodex/lit-loop/dist/threads.js +178 -0
- package/node_modules/@litcodex/lit-loop/dist/trigger.d.ts +1 -1
- package/node_modules/@litcodex/lit-loop/dist/trigger.js +29 -5
- package/node_modules/@litcodex/lit-loop/dist/workflow-map.d.ts +10 -0
- package/node_modules/@litcodex/lit-loop/dist/workflow-map.js +11 -1
- package/node_modules/@litcodex/lit-loop/dist/workflow-stack.d.ts +132 -0
- package/node_modules/@litcodex/lit-loop/dist/workflow-stack.js +488 -0
- package/node_modules/@litcodex/lit-loop/package.json +1 -1
- package/node_modules/@litcodex/lit-loop/skills/lit-adhd/SKILL.md +181 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-hijack/SKILL.md +449 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-loop/SKILL.md +13 -4
- package/node_modules/@litcodex/lit-loop/skills/lit-plan/SKILL.md +6 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-recap/SKILL.md +2 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-schematic/SKILL.md +198 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-scientific-visualization/SKILL.md +34 -8
- package/node_modules/@litcodex/lit-loop/skills/litresearch/SKILL.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/litwork/SKILL.md +2 -1
- package/node_modules/@litcodex/lit-loop/skills/review-work/SKILL.md +7 -1
- package/node_modules/@litcodex/lit-loop/skills/start-work/SKILL.md +10 -0
- package/package.json +2 -2
- package/readme-assets/badge-version.svg +1 -1
- package/readme-assets/skills/lit-adhd.webp +0 -0
- package/readme-assets/skills/lit-hijack.webp +0 -0
- package/readme-assets/skills/lit-schematic.webp +0 -0
|
@@ -2,14 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
OF-101..OF-109 judge each slide. OF-110..OF-115 judge the output of a tonality pack as a whole:
|
|
4
4
|
how many title treatments the deck shows, whether its layouts vary, whether bodies are used,
|
|
5
|
-
whether
|
|
6
|
-
whether a region stands empty beside a full one (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
card on a dark ground, OF-118 a bold run-in label with no separator after it,
|
|
10
|
-
numeral beside an agenda's title
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
whether every title sits on the shared slide grid's title frame, whether titles are labels rather
|
|
6
|
+
than sentences, and whether a region stands empty beside a full one (a takeaway column, a title
|
|
7
|
+
panel, the page above a plate). OF-116 compares the deck with another tonality of the same source
|
|
8
|
+
(qa_deck.py --sibling): titles and bodies must stand in the same places. OF-117 fails a light
|
|
9
|
+
figure card on a dark ground, OF-118 a bold run-in label with no separator after it, OF-119 a count
|
|
10
|
+
numeral beside an agenda's title, and OF-120 a hard offset shadow in a pack that does not draw one.
|
|
11
|
+
A pack deck carries its own marks (the subject stamp, `family@` and `title@` shape names); a deck
|
|
12
|
+
without them is judged by OF-101..OF-109, OF-117 and OF-120 alone. The limits live here so spec
|
|
13
|
+
revisions change data rather than scattered checks.
|
|
14
|
+
|
|
15
|
+
OF-101 fails a slide at five accent hue families; four are a rich slide. A tonality pack may widen
|
|
16
|
+
the limit through its own `qa:` block (`accent-families`, `display-accent-families`: five or six) and
|
|
17
|
+
allow hard offset shadows (`offset-shadow`); the gate finds the pack through the deck's tonality stamp
|
|
18
|
+
and a deck without a stamp keeps the defaults.
|
|
13
19
|
"""
|
|
14
20
|
from __future__ import annotations
|
|
15
21
|
|
|
@@ -32,6 +38,7 @@ OF_LIMITS = {
|
|
|
32
38
|
"frame_inset_tolerance_in": .06, "frame_radius_tolerance_in": .02,
|
|
33
39
|
"frame_outer_radius_min_in": .04, "group_ratio": 2,
|
|
34
40
|
"empty_medium": .25, "empty_high": .35, "row_tolerance_in": .05,
|
|
41
|
+
"accent_families": 5,
|
|
35
42
|
}
|
|
36
43
|
# OF-110..OF-113 read geometry in points, the unit of the design spec's treatment frames.
|
|
37
44
|
OUTPUT_LIMITS = {
|
|
@@ -39,18 +46,18 @@ OUTPUT_LIMITS = {
|
|
|
39
46
|
"variety_cap": 5, "max_share": .40, "band_floor": 486.0, "footer_top": 492.0, "band_deck_max": .20,
|
|
40
47
|
"band_caps": ((2, .28), (4, .24), (6, .20), (8, .16), (10, .12)), "anchor_tol": 1.0,
|
|
41
48
|
}
|
|
42
|
-
# OF-115: a region is empty past 40 % of its own height
|
|
43
|
-
REGION_LIMITS = {"
|
|
49
|
+
# OF-115: a region is empty past 40 % of its own height.
|
|
50
|
+
REGION_LIMITS = {"share": .40}
|
|
44
51
|
# OF-117: on a ground darker than this luminance, a picture more than half near-white is a light card.
|
|
45
52
|
FIGURE_LIMITS = {"ground_max": .25, "near_white": 235, "share": .5, "min_area": .03}
|
|
46
53
|
TREATMENTS = ("top-rule", "top-plain-large", "side-rail", "band", "statement", "overlay", "kicker-numeral", "bottom-anchor")
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
RAIL = {960: (288.0, 336.0), 720: (216.0, 252.0)}
|
|
54
|
+
# Every content treatment styles the one shared title frame (slide-grid.js), so a slide's title "zone" in the
|
|
55
|
+
# composition signature is its treatment: the look varies, the place does not.
|
|
56
|
+
TITLE_ZONE = {t: t for t in TREATMENTS}
|
|
51
57
|
GRID_MARGIN = {960: {"airy": 60.0, "standard": 48.0, "dense": 36.0, "compact": 24.0},
|
|
52
58
|
720: {"airy": 54.0, "standard": 42.0, "dense": 30.0, "compact": 24.0}}
|
|
53
59
|
PACK_STAMP = re.compile(r"\blit-pptx tonality=(\S+) density=(\d+) grid=(\w+) variance=(\d+)")
|
|
60
|
+
QA_KEY = re.compile(r"^ ([a-z-]+):\s*(\S+)\s*$")
|
|
54
61
|
NUMERAL = re.compile(r"\d+(?:[.:/-]\d+)?\.?")
|
|
55
62
|
# Families the engine draws as display pages: covers, sections, statements, quotes, full pictures.
|
|
56
63
|
DISPLAY_FAMILY = re.compile(r"^(?:cover|section)(?:-|$)|^(?:statement|quote|closing-statement|image-full)$")
|
|
@@ -120,12 +127,49 @@ def _gap_fraction(boxes, top, bottom):
|
|
|
120
127
|
return max(gaps) / (bottom - top)
|
|
121
128
|
|
|
122
129
|
|
|
130
|
+
def pack_allowances(prs):
|
|
131
|
+
"""The stamped tonality pack's `qa:` block as {key: int or bool}; empty without a stamp or a block."""
|
|
132
|
+
stamp = PACK_STAMP.search(prs.core_properties.subject or "")
|
|
133
|
+
if not stamp or not re.fullmatch(r"[a-z][a-z0-9-]*", stamp.group(1)):
|
|
134
|
+
return {}
|
|
135
|
+
path = Path(__file__).resolve().parent.parent / "templates" / "tonalities" / stamp.group(1) / "pack.yaml"
|
|
136
|
+
if not path.is_file():
|
|
137
|
+
return {}
|
|
138
|
+
allowed, inside = {}, False
|
|
139
|
+
for line in path.read_text(encoding="utf-8").splitlines():
|
|
140
|
+
if not line.strip() or line.lstrip().startswith("#"):
|
|
141
|
+
continue
|
|
142
|
+
if not line.startswith(" "):
|
|
143
|
+
inside = line.rstrip() == "qa:"
|
|
144
|
+
continue
|
|
145
|
+
match = QA_KEY.match(line) if inside else None
|
|
146
|
+
if match:
|
|
147
|
+
value = match.group(2)
|
|
148
|
+
allowed[match.group(1)] = value == "true" if value in ("true", "false") else int(value) if value.isdigit() else value
|
|
149
|
+
return allowed
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
def check_shadows(sn, shape, allowed):
|
|
153
|
+
"""OF-120: a hard offset shadow (blur 0) is a pack's look or nothing; a pack that has it keeps every shadow hard."""
|
|
154
|
+
found = []
|
|
155
|
+
for shadow in shape._element.xpath(".//a:outerShdw"):
|
|
156
|
+
hard = int(shadow.get("blurRad") or 0) == 0
|
|
157
|
+
if hard and not allowed.get("offset-shadow"):
|
|
158
|
+
_finding(found, "OF-120", "HIGH", sn, "hard offset shadow in a pack that does not draw one",
|
|
159
|
+
hint="Remove the shadow; only a pack whose qa block allows offset-shadow draws one.")
|
|
160
|
+
elif not hard and allowed.get("offset-shadow"):
|
|
161
|
+
_finding(found, "OF-120", "HIGH", sn, "soft shadow beside the pack's hard offset shadows",
|
|
162
|
+
hint="Draw the shadow with no blur at the pack's offset, or remove it.")
|
|
163
|
+
return found
|
|
164
|
+
|
|
165
|
+
|
|
123
166
|
def analyze_craft(prs):
|
|
124
167
|
"""Return HIGH blockers and MEDIUM advisories; no render claims."""
|
|
125
168
|
findings = []
|
|
126
169
|
W, H = prs.slide_width / EMU, prs.slide_height / EMU
|
|
127
170
|
stamp = PACK_STAMP.search(prs.core_properties.subject or "")
|
|
128
171
|
margin = GRID_MARGIN[960 if round(W * 72) == 960 else 720].get(stamp.group(3), 48.0) / 72 if stamp else .5
|
|
172
|
+
allowed = pack_allowances(prs)
|
|
129
173
|
for sn, slide in enumerate(prs.slides, 1):
|
|
130
174
|
# The notice line and a lone quotation-mark ornament are furniture, not content.
|
|
131
175
|
shapes = [s for s in slide.shapes if not s.name.startswith("lit-notice") and _text(s) not in QUOTE_GLYPHS]
|
|
@@ -158,10 +202,15 @@ def analyze_craft(prs):
|
|
|
158
202
|
findings += light_figures(sn, slide, W * 72, H * 72)
|
|
159
203
|
findings += check_run_ins(sn, slide)
|
|
160
204
|
count = len(accents)
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
205
|
+
# Four hue families are a rich slide, five fail. A pack's own limit only widens that: N pass, N + 1 fail,
|
|
206
|
+
# with no advisory step between.
|
|
207
|
+
limit = OF_LIMITS["accent_families"]
|
|
208
|
+
widened = allowed.get("display-accent-families" if display else "accent-families")
|
|
209
|
+
if isinstance(widened, int) and not isinstance(widened, bool):
|
|
210
|
+
limit = max(limit, widened + 1)
|
|
211
|
+
if count >= limit:
|
|
212
|
+
_finding(findings, "OF-101", "HIGH", sn, f"{count} accent families",
|
|
213
|
+
hint=f"Hold a slide to {limit - 1} accent hue families; fold the extra fills into a family the slide already uses.")
|
|
165
214
|
|
|
166
215
|
for s in shapes:
|
|
167
216
|
if getattr(s, "has_text_frame", False):
|
|
@@ -197,6 +246,7 @@ def analyze_craft(prs):
|
|
|
197
246
|
_finding(findings, "OF-102", "MEDIUM", sn, f"{measure:.1f} chars/line")
|
|
198
247
|
if s._element.xpath(".//a:effectLst/a:glow"):
|
|
199
248
|
_finding(findings, "OF-107", "HIGH", sn, "glow effect")
|
|
249
|
+
findings += check_shadows(sn, s, allowed)
|
|
200
250
|
|
|
201
251
|
if getattr(s, "has_table", False):
|
|
202
252
|
table = s.table
|
|
@@ -266,12 +316,6 @@ def analyze_craft(prs):
|
|
|
266
316
|
if not display:
|
|
267
317
|
top = (_box(title)[1] + _box(title)[3] + .1) if title else .5
|
|
268
318
|
left, bottom = 0, H - .55
|
|
269
|
-
if title is not None and title.name == "title@side-rail":
|
|
270
|
-
# Nothing sits under a side rail by design: the body is the column beside it, from the top.
|
|
271
|
-
top, left = _box(title)[1], _box(title)[0] + _box(title)[2]
|
|
272
|
-
elif title is not None and title.name == "title@bottom-anchor":
|
|
273
|
-
# A bottom title closes the page: the body runs from the top margin down to it.
|
|
274
|
-
top, bottom = margin, _box(title)[1]
|
|
275
319
|
content = [_box(s) for s in shapes if s is not title and _box(s)[0] >= left - .05 and
|
|
276
320
|
(_text(s) or s in cards or getattr(s, "has_table", False) or getattr(s, "has_chart", False)
|
|
277
321
|
or s.shape_type == MSO_SHAPE_TYPE.PICTURE) and
|
|
@@ -335,7 +379,7 @@ def _drawn(slide, W, H):
|
|
|
335
379
|
items = []
|
|
336
380
|
for s in slide.shapes:
|
|
337
381
|
box = _pt(s)
|
|
338
|
-
if box is None or box[2] + box[3] <= 0 or s.name.startswith("lit-notice"):
|
|
382
|
+
if box is None or box[2] + box[3] <= 0 or s.name.startswith(("lit-notice", "grid-mark")):
|
|
339
383
|
continue
|
|
340
384
|
text = _text(s)
|
|
341
385
|
if s.shape_type == MSO_SHAPE_TYPE.PICTURE:
|
|
@@ -398,23 +442,24 @@ def treatment_of(title, items, W, H):
|
|
|
398
442
|
and not any(o["kind"] in ("table", "chart", "picture") or o["role"] == "card" for o in body)
|
|
399
443
|
and sum(o["kind"] == "text" for o in body) <= 1):
|
|
400
444
|
return "statement"
|
|
401
|
-
|
|
445
|
+
# Every content title stands on the one shared title frame, so a treatment is told by what is drawn with it.
|
|
446
|
+
content_w = W - 2 * title["x"]
|
|
447
|
+
drawn = [o for o in others if o["kind"] == "shape" and o["filled"]]
|
|
448
|
+
# A heavy rule across the columns that closes the title frame.
|
|
449
|
+
if any(2 - slack <= o["h"] <= 4 + slack and o["w"] >= .9 * content_w and bottom - tol <= o["y"] <= bottom + 8 for o in drawn):
|
|
402
450
|
return "bottom-anchor"
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
# runs from the rail into the body makes the title something else.
|
|
407
|
-
if (title["w"] <= rail_w + tol and beside and min(o["x"] for o in beside) >= column_5 - tol
|
|
408
|
-
and not any(o["x"] < column_5 - tol and o["y"] > bottom and o["x"] + o["w"] > column_5 + tol for o in body)):
|
|
451
|
+
# A bar in the left margin, at least as tall as the title frame.
|
|
452
|
+
if any(o["x"] <= 1 and o["w"] <= 14 and o["h"] >= title["h"] - tol and o["y"] <= title["y"] + tol
|
|
453
|
+
and o["y"] + o["h"] >= bottom - tol for o in drawn):
|
|
409
454
|
return "side-rail"
|
|
410
455
|
for o in others:
|
|
411
|
-
if (o["kind"] == "text" and o["sizes"] and NUMERAL.fullmatch(o["text"]) and max(o["sizes"]) >=
|
|
412
|
-
and o["x"]
|
|
456
|
+
if (o["kind"] == "text" and o["sizes"] and NUMERAL.fullmatch(o["text"]) and max(o["sizes"]) >= 40 - slack
|
|
457
|
+
and o["x"] >= title["x"] + title["w"] - tol and o["y"] >= title["y"] - tol and o["y"] + o["h"] <= bottom + tol):
|
|
413
458
|
return "kicker-numeral"
|
|
414
459
|
if title["y"] <= 48 + tol:
|
|
415
460
|
# A rule is a line under the title, never a list-marker dot.
|
|
416
461
|
rule = any(o["kind"] == "shape" and o["h"] <= 8 and o["w"] >= max(16, 4 * o["h"])
|
|
417
|
-
and
|
|
462
|
+
and title["y"] < o["y"] <= bottom + 24 and o["x"] < title["x"] + title["w"]
|
|
418
463
|
and o["x"] + o["w"] > title["x"] for o in others)
|
|
419
464
|
if size >= 36 - slack and not rule:
|
|
420
465
|
return "top-plain-large"
|
|
@@ -440,13 +485,12 @@ def signature_of(title, treatment, items, W, margin):
|
|
|
440
485
|
zone = TITLE_ZONE.get(treatment, "none")
|
|
441
486
|
if treatment == "statement":
|
|
442
487
|
return (zone, "one", "text")
|
|
443
|
-
column_5 = RAIL.get(round(W), RAIL[960])[1]
|
|
444
488
|
body = [o for o in items if o is not title and not _in_footer(o) and o["role"] != "decoration"
|
|
445
|
-
# what stands in a side title's rail belongs to the title zone, not to the body's columns
|
|
446
|
-
and not (treatment == "side-rail" and o["x"] + o["w"] <= column_5 + OUTPUT_LIMITS["tol"])
|
|
447
489
|
and not (o["kind"] == "shape" and title is not None and _inside(title, o, 0))
|
|
448
|
-
|
|
449
|
-
|
|
490
|
+
# a numeral or header mark belongs to the title zone, and a one-line caption or source on the
|
|
491
|
+
# body floor is the slide's foot, not a column
|
|
492
|
+
and not o["name"].startswith(("numeral@", "header@"))
|
|
493
|
+
and not (o["kind"] == "text" and o["h"] <= 16 and o["y"] + o["h"] >= OUTPUT_LIMITS["band_floor"] - 2)]
|
|
450
494
|
cards = [o for o in body if o["role"] == "card"]
|
|
451
495
|
blocks = [o for o in body if not any(c is not o and _inside(o, c) for c in cards)]
|
|
452
496
|
if any(o["kind"] == "picture" and o["w"] * o["h"] >= .8 * W * 540 for o in items):
|
|
@@ -600,37 +644,30 @@ def analyze_output(prs):
|
|
|
600
644
|
if median > OUTPUT_LIMITS["band_deck_max"]:
|
|
601
645
|
_finding(found, "OF-112", weight, None, f"median empty band {median:.2f} over {len(bands)} slides",
|
|
602
646
|
hint="Give content slides content that reaches the floor: a takeaway under a table, a next step under an ask.")
|
|
647
|
+
# OF-113: every content title on one frame and every display title (a statement) on another, whatever its
|
|
648
|
+
# treatment: a treatment changes the look, never the place. A title over a full-bleed picture (overlay) keeps
|
|
649
|
+
# its own panel. Slides are grouped by the treatment they name, so a title moved so far that it no longer
|
|
650
|
+
# reads as any treatment is still measured.
|
|
603
651
|
groups = {}
|
|
604
652
|
for s in titled:
|
|
605
|
-
if s["
|
|
606
|
-
groups.setdefault(s["
|
|
607
|
-
|
|
608
|
-
# edge repeats and its top follows its line count.
|
|
609
|
-
edge = lambda t, k: t["y"] + t["h"] if k == "bottom" else t[k] # noqa: E731
|
|
610
|
-
for treatment, group in groups.items():
|
|
611
|
-
keys = ("x", "w") if treatment == "statement" else ("x", "w", "bottom") if treatment == "bottom-anchor" else ("x", "y", "w")
|
|
653
|
+
if s["named"] in TREATMENTS and s["named"] != "overlay":
|
|
654
|
+
groups.setdefault("display" if s["named"] == "statement" else "content", []).append(s)
|
|
655
|
+
for frame, group in groups.items():
|
|
612
656
|
modes = {}
|
|
613
|
-
for k in
|
|
614
|
-
values = [round(
|
|
657
|
+
for k in ("x", "y", "w", "h"):
|
|
658
|
+
values = [round(s["title"][k]) for s in group]
|
|
615
659
|
modes[k] = max(set(values), key=values.count)
|
|
616
660
|
for s in group:
|
|
617
|
-
off = [f"{k} {
|
|
661
|
+
off = [f"{k} {s['title'][k]:.0f} vs {modes[k]}" for k in modes if abs(s["title"][k] - modes[k]) > OUTPUT_LIMITS["anchor_tol"]]
|
|
618
662
|
if off:
|
|
619
|
-
_finding(found, "OF-113", "HIGH", s["n"], f"{
|
|
620
|
-
hint="
|
|
663
|
+
_finding(found, "OF-113", "HIGH", s["n"], f"{s['named']} title off the shared {frame} title frame: {', '.join(off)}",
|
|
664
|
+
hint="Every title sits on the slide grid's title zone; fix the source, never nudge a title.")
|
|
621
665
|
return found + empty_regions(slides, W, H) + agenda_numerals(slides)
|
|
622
666
|
|
|
623
667
|
|
|
624
668
|
# ── OF-115: no region stands empty beside a full one ────────────────────────
|
|
625
669
|
# OF-112 reads the body as one page; a region can still be empty beside a full one. Each region is
|
|
626
|
-
# measured against its own height (40 %)
|
|
627
|
-
|
|
628
|
-
def _title_lines(title):
|
|
629
|
-
"""Lines the title's text takes: explicit breaks, each wrapped at its frame width (Hangul 0.90 em)."""
|
|
630
|
-
size = max(title["sizes"] or [1.0])
|
|
631
|
-
inner = max(1.0, title["w"] - 14.4)
|
|
632
|
-
return sum(max(1, -(-_wrap_em(line) * size // inner)) for line in (title["text"].splitlines() or [""]))
|
|
633
|
-
|
|
670
|
+
# measured against its own height (40 %).
|
|
634
671
|
|
|
635
672
|
def _open_stretch(top, bottom, spans):
|
|
636
673
|
"""The tallest stretch of [top, bottom] that no (y0, y1) span covers."""
|
|
@@ -643,16 +680,15 @@ def _open_stretch(top, bottom, spans):
|
|
|
643
680
|
return max(gap, bottom - cursor)
|
|
644
681
|
|
|
645
682
|
|
|
646
|
-
def _short_column(n, content, title,
|
|
683
|
+
def _short_column(n, content, title, body_floor, fields, family=None):
|
|
647
684
|
"""OF-115 for a column of a two-column body that stops short of its neighbour: the largest empty band inside
|
|
648
685
|
it, from the body's top down to where the neighbour ends, is over 40 % of the body. A source or note strip
|
|
649
686
|
that closes the column does not hide the band above it. Beside the figures of a kpi-row or big-number slide
|
|
650
|
-
the column is measured to the body floor
|
|
687
|
+
the column is measured to the body floor."""
|
|
651
688
|
tol = OUTPUT_LIMITS["tol"]
|
|
652
|
-
|
|
653
|
-
top_of_title = title["y"] + title["h"] if treatment not in ("bottom-anchor", "side-rail") else 0.0
|
|
689
|
+
top_of_title = title["y"] + title["h"]
|
|
654
690
|
body = [o for o in content if top_of_title - tol <= o["y"] < body_floor and o["w"] > 0 and o["h"] > 0
|
|
655
|
-
and not
|
|
691
|
+
and not any(_inside(o, f) for f in fields)]
|
|
656
692
|
if len(body) < 2:
|
|
657
693
|
return None
|
|
658
694
|
left_edge, right_edge = min(o["x"] for o in body), max(o["x"] + o["w"] for o in body)
|
|
@@ -699,7 +735,6 @@ def _short_column(n, content, title, treatment, body_floor, column_5, fields, fa
|
|
|
699
735
|
def empty_regions(slides, W, H):
|
|
700
736
|
found = []
|
|
701
737
|
floor, tol, share_max = OUTPUT_LIMITS["band_floor"], OUTPUT_LIMITS["tol"], REGION_LIMITS["share"]
|
|
702
|
-
column_5 = RAIL.get(round(W), RAIL[960])[1]
|
|
703
738
|
for s in slides:
|
|
704
739
|
title, treatment = s["title"], s["drawn"]
|
|
705
740
|
if title is None:
|
|
@@ -707,22 +742,10 @@ def empty_regions(slides, W, H):
|
|
|
707
742
|
full_bleed = lambda o: o["kind"] == "picture" and o["w"] * o["h"] >= .8 * W * H # noqa: E731
|
|
708
743
|
content = [o for o in s["items"] if o is not title and o["role"] != "decoration" and not _in_footer(o) and not full_bleed(o)]
|
|
709
744
|
if s["role"] in ("content", "closing") and title["sizes"]:
|
|
710
|
-
if treatment == "bottom-anchor":
|
|
711
|
-
gap = floor - (title["y"] + _title_lines(title) * max(title["sizes"]) * 1.15)
|
|
712
|
-
if gap > REGION_LIMITS["floor_gap"]:
|
|
713
|
-
_finding(found, "OF-115", "HIGH", s["n"], f"the bottom title ends {gap:.0f} pt above the body floor",
|
|
714
|
-
hint="Stand the title's last line on the floor and give the visual above it the room.")
|
|
715
|
-
if treatment == "side-rail" and s["family"] not in ("quote", "statement"):
|
|
716
|
-
top = title["y"] + title["h"] # the frame keeps a spare line for a title that wraps once more
|
|
717
|
-
rail = [(o["y"], o["y"] + o["h"]) for o in content if o["x"] + o["w"] <= column_5 + tol and o["y"] + o["h"] > top]
|
|
718
|
-
share = _open_stretch(top, floor, rail) / max(1.0, floor - top)
|
|
719
|
-
if share > share_max:
|
|
720
|
-
_finding(found, "OF-115", "HIGH", s["n"], f"{share:.0%} of the side rail under the title is empty",
|
|
721
|
-
hint="Stand the slide's criteria labels, takeaways or source in the rail, or take a top or bottom title.")
|
|
722
745
|
# A takeaway column beside a chart, table or picture that runs on below the column's last block.
|
|
723
|
-
body_floor =
|
|
746
|
+
body_floor = floor
|
|
724
747
|
fields = [o for o in s["items"] if o["kind"] == "shape" and o["filled"] and o["w"] * o["h"] >= .1 * W * H]
|
|
725
|
-
short = _short_column(s["n"], content, title,
|
|
748
|
+
short = _short_column(s["n"], content, title, body_floor, fields, s["family"])
|
|
726
749
|
if short:
|
|
727
750
|
found.append(short)
|
|
728
751
|
for v in ([] if short else (o for o in content if o["kind"] in ("chart", "table", "picture"))):
|
|
@@ -759,25 +782,44 @@ def empty_regions(slides, W, H):
|
|
|
759
782
|
return found
|
|
760
783
|
|
|
761
784
|
|
|
762
|
-
# ── OF-116: another tonality of the same source
|
|
763
|
-
#
|
|
764
|
-
#
|
|
785
|
+
# ── OF-116: another tonality of the same source sets everything in the same places ─────
|
|
786
|
+
# Titles, headers and the body sit on the shared slide grid (slide-grid.js), so two tonalities of one source
|
|
787
|
+
# may differ in every look but never in where a slide's title frame and its body's top-left corner stand.
|
|
788
|
+
# Slides are compared in order; a slide the other deck lacks is not compared.
|
|
765
789
|
|
|
766
|
-
def
|
|
767
|
-
|
|
790
|
+
def placement(prs):
|
|
791
|
+
"""Per slide: the title frame and the top-left corner of what stands under it, in points."""
|
|
792
|
+
out = []
|
|
793
|
+
for s in read_slides(prs)[3]:
|
|
794
|
+
t = s["title"]
|
|
795
|
+
if t is None:
|
|
796
|
+
out.append(None)
|
|
797
|
+
continue
|
|
798
|
+
under = [o for o in s["items"] if o is not t and o["role"] != "decoration" and not _in_footer(o)
|
|
799
|
+
and o["y"] >= t["y"] + t["h"] - OUTPUT_LIMITS["tol"]
|
|
800
|
+
and not o["name"].startswith(("header@", "numeral@", "subtitle@"))]
|
|
801
|
+
corner = (min(o["x"] for o in under), min(o["y"] for o in under)) if under and s["role"] == "content" else None
|
|
802
|
+
out.append({"n": s["n"], "title": (t["x"], t["y"], t["w"], t["h"]), "body": corner})
|
|
803
|
+
return out
|
|
768
804
|
|
|
769
805
|
|
|
770
|
-
def
|
|
806
|
+
def compare_placement(path, sibling):
|
|
771
807
|
"""OF-116 for a deck and the same source compiled under another tonality (qa_deck.py --sibling)."""
|
|
772
|
-
mine, other =
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
808
|
+
mine, other = placement(Presentation(str(path))), placement(Presentation(str(sibling)))
|
|
809
|
+
tol = OUTPUT_LIMITS["anchor_tol"]
|
|
810
|
+
moved = []
|
|
811
|
+
for a, b in zip(mine, other):
|
|
812
|
+
if a is None or b is None:
|
|
813
|
+
continue
|
|
814
|
+
if any(abs(p - q) > tol for p, q in zip(a["title"], b["title"])):
|
|
815
|
+
moved.append(f"slide {a['n']} title at {[round(v) for v in a['title']]} vs {[round(v) for v in b['title']]}")
|
|
816
|
+
elif a["body"] and b["body"] and any(abs(p - q) > tol for p, q in zip(a["body"], b["body"])):
|
|
817
|
+
moved.append(f"slide {a['n']} body from {tuple(round(v) for v in a['body'])} vs {tuple(round(v) for v in b['body'])}")
|
|
777
818
|
found = []
|
|
778
|
-
if
|
|
779
|
-
_finding(found, "OF-116", "HIGH", None,
|
|
780
|
-
|
|
819
|
+
if moved:
|
|
820
|
+
_finding(found, "OF-116", "HIGH", None,
|
|
821
|
+
f"{len(moved)} slide(s) placed differently from {Path(sibling).name}: {'; '.join(moved[:4])}",
|
|
822
|
+
hint="A tonality changes the look of a zone, never its place: draw the title and the body on the slide grid's zones.")
|
|
781
823
|
return found
|
|
782
824
|
|
|
783
825
|
|
|
@@ -6,7 +6,7 @@ python-pptx has no font-embedding API, so this post-processes the OOXML package
|
|
|
6
6
|
directly: it adds /ppt/fonts/*.fntdata parts, a fntdata content-type default,
|
|
7
7
|
presentation relationships, and a <p:embeddedFontLst> in ppt/presentation.xml.
|
|
8
8
|
|
|
9
|
-
Only families with a bundled
|
|
9
|
+
Only families with a bundled font file (Pretendard, A2Z, JetBrains Mono) are embedded; unknown families are warned
|
|
10
10
|
about and skipped — never corrupting the file.
|
|
11
11
|
|
|
12
12
|
Usage:
|
|
@@ -41,6 +41,11 @@ def _a2z(weight):
|
|
|
41
41
|
return p if os.path.exists(p) else None
|
|
42
42
|
|
|
43
43
|
|
|
44
|
+
def _mono(weight):
|
|
45
|
+
p = os.path.join(ROOT, "fonts", "jetbrains-mono", f"JetBrainsMono-{weight}.ttf")
|
|
46
|
+
return p if os.path.exists(p) else None
|
|
47
|
+
|
|
48
|
+
|
|
44
49
|
def resolve_family(typeface):
|
|
45
50
|
"""Return {slot: otf_path} for a typeface, or {} if no bundled file.
|
|
46
51
|
|
|
@@ -54,6 +59,13 @@ def resolve_family(typeface):
|
|
|
54
59
|
if _pretendard("Bold"):
|
|
55
60
|
slots["bold"] = _pretendard("Bold")
|
|
56
61
|
return slots
|
|
62
|
+
if tf == "JetBrains Mono":
|
|
63
|
+
slots = {}
|
|
64
|
+
if _mono("Regular"):
|
|
65
|
+
slots["regular"] = _mono("Regular")
|
|
66
|
+
if _mono("Bold"):
|
|
67
|
+
slots["bold"] = _mono("Bold")
|
|
68
|
+
return slots
|
|
57
69
|
# Per-weight families: "에이투지체 7 Bold", "에이투지체 4 Regular", ...
|
|
58
70
|
last = tf.split()[-1] if tf.split() else ""
|
|
59
71
|
if ("에이투지체" in tf or tf.startswith("A2Z")) and last in A2Z_WEIGHTS:
|