@litfamily/litcodex 1.0.29 → 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 +191 -85
- package/dist/install/generated-skill-payload-hashes.js +191 -85
- package/dist/install/marketplace.js +10 -1
- 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/.agents/plugins/marketplace.json +4 -1
- package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +14 -2
- package/marketplace/plugins/litcodex/assets/screenshot-lit-ignited.png +0 -0
- 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 +31 -6
- 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/node_modules/picomatch/README.md +15 -21
- package/marketplace/plugins/litcodex/components/rules/node_modules/picomatch/lib/parse.js +49 -10
- package/marketplace/plugins/litcodex/components/rules/node_modules/picomatch/lib/picomatch.js +14 -2
- package/marketplace/plugins/litcodex/components/rules/node_modules/picomatch/lib/scan.js +30 -18
- package/marketplace/plugins/litcodex/components/rules/node_modules/picomatch/package.json +3 -2
- 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/runtime/requirements-audio.txt +3 -3
- 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/lsp-setup/SKILL.md +2 -1
- package/marketplace/plugins/litcodex/skills/readme-studio/SKILL.md +10 -0
- package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/package-lock.json +3 -3
- package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/package-lock.json +3 -3
- 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 +31 -6
- 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
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
<a href="https://npmjs.org/package/picomatch">
|
|
5
5
|
<img src="https://img.shields.io/npm/v/picomatch.svg" alt="version">
|
|
6
6
|
</a>
|
|
7
|
-
<a href="https://github.com/micromatch/picomatch/actions
|
|
8
|
-
<img src="https://github.com/micromatch/picomatch/workflows/
|
|
7
|
+
<a href="https://github.com/micromatch/picomatch/actions/workflows/test.yml">
|
|
8
|
+
<img src="https://github.com/micromatch/picomatch/actions/workflows/test.yml/badge.svg?branch=master" alt="test status">
|
|
9
9
|
</a>
|
|
10
10
|
<a href="https://coveralls.io/github/micromatch/picomatch">
|
|
11
11
|
<img src="https://img.shields.io/coveralls/github/micromatch/picomatch/master.svg" alt="coverage status">
|
|
12
12
|
</a>
|
|
13
13
|
<a href="https://npmjs.org/package/picomatch">
|
|
14
|
-
<img src="https://img.shields.io/npm/dm/picomatch
|
|
14
|
+
<img src="https://img.shields.io/npm/dm/picomatch" alt="downloads">
|
|
15
15
|
</a>
|
|
16
16
|
</p>
|
|
17
17
|
|
|
@@ -107,7 +107,7 @@ console.log(isMatch('a/b.js')); //=> false
|
|
|
107
107
|
|
|
108
108
|
## API
|
|
109
109
|
|
|
110
|
-
### [picomatch](lib/picomatch.js#
|
|
110
|
+
### [picomatch](lib/picomatch.js#L43)
|
|
111
111
|
|
|
112
112
|
Creates a matcher function from one or more glob patterns. The returned function takes a string to match as its first argument, and returns true if the string is a match. The returned matcher function also takes a boolean as the second argument that, when true, returns an object with additional information.
|
|
113
113
|
|
|
@@ -126,13 +126,8 @@ const picomatch = require('picomatch');
|
|
|
126
126
|
const isMatch = picomatch('*.!(*a)');
|
|
127
127
|
console.log(isMatch('a.a')); //=> false
|
|
128
128
|
console.log(isMatch('a.b')); //=> true
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
**Example without node.js**
|
|
132
129
|
|
|
133
|
-
For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
|
|
134
|
-
|
|
135
|
-
```js
|
|
130
|
+
// For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
|
|
136
131
|
const picomatch = require('picomatch/posix');
|
|
137
132
|
// the same API, defaulting to posix paths
|
|
138
133
|
const isMatch = picomatch('a/*');
|
|
@@ -145,7 +140,7 @@ console.log(isMatch('a\\b')); //=> true
|
|
|
145
140
|
console.log(isMatch('a/b')); //=> true
|
|
146
141
|
```
|
|
147
142
|
|
|
148
|
-
### [.test](lib/picomatch.js#
|
|
143
|
+
### [.test](lib/picomatch.js#L128)
|
|
149
144
|
|
|
150
145
|
Test `input` with the given `regex`. This is used by the main `picomatch()` function to test the input string.
|
|
151
146
|
|
|
@@ -165,7 +160,7 @@ console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/));
|
|
|
165
160
|
// { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' }
|
|
166
161
|
```
|
|
167
162
|
|
|
168
|
-
### [.matchBase](lib/picomatch.js#
|
|
163
|
+
### [.matchBase](lib/picomatch.js#L172)
|
|
169
164
|
|
|
170
165
|
Match the basename of a filepath.
|
|
171
166
|
|
|
@@ -183,7 +178,7 @@ const picomatch = require('picomatch');
|
|
|
183
178
|
console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true
|
|
184
179
|
```
|
|
185
180
|
|
|
186
|
-
### [.isMatch](lib/picomatch.js#
|
|
181
|
+
### [.isMatch](lib/picomatch.js#L194)
|
|
187
182
|
|
|
188
183
|
Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
189
184
|
|
|
@@ -204,7 +199,7 @@ console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
|
|
204
199
|
console.log(picomatch.isMatch('a.a', 'b.*')); //=> false
|
|
205
200
|
```
|
|
206
201
|
|
|
207
|
-
### [.parse](lib/picomatch.js#
|
|
202
|
+
### [.parse](lib/picomatch.js#L210)
|
|
208
203
|
|
|
209
204
|
Parse a glob pattern to create the source string for a regular expression.
|
|
210
205
|
|
|
@@ -221,7 +216,7 @@ const picomatch = require('picomatch');
|
|
|
221
216
|
const result = picomatch.parse(pattern[, options]);
|
|
222
217
|
```
|
|
223
218
|
|
|
224
|
-
### [.scan](lib/picomatch.js#
|
|
219
|
+
### [.scan](lib/picomatch.js#L242)
|
|
225
220
|
|
|
226
221
|
Scan a glob pattern to separate the pattern into segments.
|
|
227
222
|
|
|
@@ -252,10 +247,9 @@ console.log(result);
|
|
|
252
247
|
negated: true }
|
|
253
248
|
```
|
|
254
249
|
|
|
255
|
-
### [.compileRe](lib/picomatch.js#
|
|
250
|
+
### [.compileRe](lib/picomatch.js#L264)
|
|
256
251
|
|
|
257
|
-
Compile a regular expression from the `state` object returned by the
|
|
258
|
-
[parse()](#parse) method.
|
|
252
|
+
Compile a regular expression from the `state` object returned by the [parse()](#parse) method.
|
|
259
253
|
|
|
260
254
|
**Params**
|
|
261
255
|
|
|
@@ -276,7 +270,7 @@ console.log(picomatch.compileRe(state));
|
|
|
276
270
|
//=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
277
271
|
```
|
|
278
272
|
|
|
279
|
-
### [.makeRe](lib/picomatch.js#
|
|
273
|
+
### [.makeRe](lib/picomatch.js#L305)
|
|
280
274
|
|
|
281
275
|
Create a regular expression from a parsed glob pattern.
|
|
282
276
|
|
|
@@ -299,7 +293,7 @@ console.log(result);
|
|
|
299
293
|
//=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
300
294
|
```
|
|
301
295
|
|
|
302
|
-
### [.toRegex](lib/picomatch.js#
|
|
296
|
+
### [.toRegex](lib/picomatch.js#L340)
|
|
303
297
|
|
|
304
298
|
Create a regular expression from the given regex source string.
|
|
305
299
|
|
|
@@ -746,4 +740,4 @@ npm install -g verbose/verb#dev verb-generate-readme && verb
|
|
|
746
740
|
### License
|
|
747
741
|
|
|
748
742
|
Copyright © 2017-present, [Jon Schlinkert](https://github.com/jonschlinkert).
|
|
749
|
-
Released under the [MIT License](LICENSE).
|
|
743
|
+
Released under the [MIT License](LICENSE).
|
|
@@ -230,7 +230,15 @@ const parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
-
const
|
|
233
|
+
const buildCharClassStar = chars => {
|
|
234
|
+
const source = chars.length === 1
|
|
235
|
+
? utils.escapeRegex(chars[0])
|
|
236
|
+
: `[${chars.map(ch => utils.escapeRegex(ch)).join('')}]`;
|
|
237
|
+
|
|
238
|
+
return `${source}*`;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
const getStarExtglobSequenceChars = pattern => {
|
|
234
242
|
let index = 0;
|
|
235
243
|
const chars = [];
|
|
236
244
|
|
|
@@ -259,11 +267,7 @@ const getStarExtglobSequenceOutput = pattern => {
|
|
|
259
267
|
return;
|
|
260
268
|
}
|
|
261
269
|
|
|
262
|
-
|
|
263
|
-
? utils.escapeRegex(chars[0])
|
|
264
|
-
: `[${chars.map(ch => utils.escapeRegex(ch)).join('')}]`;
|
|
265
|
-
|
|
266
|
-
return `${source}*`;
|
|
270
|
+
return chars;
|
|
267
271
|
};
|
|
268
272
|
|
|
269
273
|
const repeatedExtglobRecursion = pattern => {
|
|
@@ -302,17 +306,43 @@ const analyzeRepeatedExtglob = (body, options) => {
|
|
|
302
306
|
}
|
|
303
307
|
}
|
|
304
308
|
|
|
309
|
+
// A repeated extglob is "risky" (prone to catastrophic backtracking) when a
|
|
310
|
+
// branch is itself a `*(...)` sequence, since that nests an unbounded quantifier
|
|
311
|
+
// inside the outer `+(...)`/`*(...)`. When *every* branch reduces to single
|
|
312
|
+
// characters we can emit one flat, ReDoS-safe character class that preserves the
|
|
313
|
+
// meaning of ALL branches (e.g. `+(*(a)|*(b))` -> `[ab]*`), rather than dropping
|
|
314
|
+
// every branch but the first.
|
|
315
|
+
const safeChars = [];
|
|
316
|
+
let sawStarSequence = false;
|
|
317
|
+
let combinable = true;
|
|
318
|
+
|
|
305
319
|
for (const branch of branches) {
|
|
306
|
-
const
|
|
307
|
-
if (
|
|
308
|
-
|
|
320
|
+
const chars = getStarExtglobSequenceChars(branch);
|
|
321
|
+
if (chars) {
|
|
322
|
+
sawStarSequence = true;
|
|
323
|
+
safeChars.push(...chars);
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
const literal = normalizeSimpleBranch(branch);
|
|
328
|
+
if (literal && literal.length === 1) {
|
|
329
|
+
safeChars.push(literal);
|
|
330
|
+
continue;
|
|
309
331
|
}
|
|
310
332
|
|
|
333
|
+
combinable = false;
|
|
334
|
+
|
|
311
335
|
if (repeatedExtglobRecursion(branch) > max) {
|
|
312
336
|
return { risky: true };
|
|
313
337
|
}
|
|
314
338
|
}
|
|
315
339
|
|
|
340
|
+
if (sawStarSequence) {
|
|
341
|
+
return combinable
|
|
342
|
+
? { risky: true, safeOutput: buildCharClassStar([...new Set(safeChars)]) }
|
|
343
|
+
: { risky: true };
|
|
344
|
+
}
|
|
345
|
+
|
|
316
346
|
return { risky: false };
|
|
317
347
|
};
|
|
318
348
|
|
|
@@ -1145,6 +1175,15 @@ const parse = (input, options) => {
|
|
|
1145
1175
|
consume('/**', 3);
|
|
1146
1176
|
}
|
|
1147
1177
|
|
|
1178
|
+
// A globstar followed only by balanced closing parens is at the logical end of patterns like
|
|
1179
|
+
// `test(/utils/**)` and `test?(/utils/**)`. Treat it as EOS so the trailing `/**` can match its
|
|
1180
|
+
// parent path, except in negated extglobs where that would change the exclusion semantics.
|
|
1181
|
+
const isEnd = eos() || (
|
|
1182
|
+
state.parens > 0
|
|
1183
|
+
&& rest === ')'.repeat(state.parens)
|
|
1184
|
+
&& !extglobs.some(extglob => extglob.type === 'negate')
|
|
1185
|
+
);
|
|
1186
|
+
|
|
1148
1187
|
if (prior.type === 'bos' && eos()) {
|
|
1149
1188
|
prev.type = 'globstar';
|
|
1150
1189
|
prev.value += value;
|
|
@@ -1155,7 +1194,7 @@ const parse = (input, options) => {
|
|
|
1155
1194
|
continue;
|
|
1156
1195
|
}
|
|
1157
1196
|
|
|
1158
|
-
if (prior.type === 'slash' && prior.prev.type !== 'bos' && !afterStar &&
|
|
1197
|
+
if (prior.type === 'slash' && prior.prev.type !== 'bos' && !afterStar && isEnd) {
|
|
1159
1198
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
1160
1199
|
prior.output = `(?:${prior.output}`;
|
|
1161
1200
|
|
package/marketplace/plugins/litcodex/components/rules/node_modules/picomatch/lib/picomatch.js
CHANGED
|
@@ -20,6 +20,18 @@ const isObject = val => val && typeof val === 'object' && !Array.isArray(val);
|
|
|
20
20
|
* const isMatch = picomatch('*.!(*a)');
|
|
21
21
|
* console.log(isMatch('a.a')); //=> false
|
|
22
22
|
* console.log(isMatch('a.b')); //=> true
|
|
23
|
+
*
|
|
24
|
+
* // For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
|
|
25
|
+
* const picomatch = require('picomatch/posix');
|
|
26
|
+
* // the same API, defaulting to posix paths
|
|
27
|
+
* const isMatch = picomatch('a/*');
|
|
28
|
+
* console.log(isMatch('a\\b')); //=> false
|
|
29
|
+
* console.log(isMatch('a/b')); //=> true
|
|
30
|
+
*
|
|
31
|
+
* // you can still configure the matcher function to accept windows paths
|
|
32
|
+
* const isMatch = picomatch('a/*', { options: windows });
|
|
33
|
+
* console.log(isMatch('a\\b')); //=> true
|
|
34
|
+
* console.log(isMatch('a/b')); //=> true
|
|
23
35
|
* ```
|
|
24
36
|
* @name picomatch
|
|
25
37
|
* @param {String|Array} `globs` One or more glob patterns.
|
|
@@ -157,9 +169,9 @@ picomatch.test = (input, regex, options, { glob, posix } = {}) => {
|
|
|
157
169
|
* @api public
|
|
158
170
|
*/
|
|
159
171
|
|
|
160
|
-
picomatch.matchBase = (input, glob, options) => {
|
|
172
|
+
picomatch.matchBase = (input, glob, options, posix = options && options.windows) => {
|
|
161
173
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
162
|
-
return regex.test(utils.basename(input));
|
|
174
|
+
return regex.test(utils.basename(input, { windows: posix }));
|
|
163
175
|
};
|
|
164
176
|
|
|
165
177
|
/**
|
|
@@ -50,7 +50,7 @@ const scan = (input, options) => {
|
|
|
50
50
|
const opts = options || {};
|
|
51
51
|
|
|
52
52
|
const length = input.length - 1;
|
|
53
|
-
const scanToEnd = opts.parts === true || opts.scanToEnd === true;
|
|
53
|
+
const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
|
|
54
54
|
const slashes = [];
|
|
55
55
|
const tokens = [];
|
|
56
56
|
const parts = [];
|
|
@@ -184,15 +184,21 @@ const scan = (input, options) => {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
if (scanToEnd === true) {
|
|
187
|
+
let parens = 0;
|
|
188
|
+
|
|
187
189
|
while (eos() !== true && (code = advance())) {
|
|
188
190
|
if (code === CHAR_BACKWARD_SLASH) {
|
|
189
191
|
backslashes = token.backslashes = true;
|
|
190
|
-
|
|
192
|
+
advance();
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (code === CHAR_LEFT_PARENTHESES) {
|
|
197
|
+
parens++;
|
|
191
198
|
continue;
|
|
192
199
|
}
|
|
193
200
|
|
|
194
|
-
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
195
|
-
isGlob = token.isGlob = true;
|
|
201
|
+
if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
|
|
196
202
|
finished = true;
|
|
197
203
|
break;
|
|
198
204
|
}
|
|
@@ -257,14 +263,21 @@ const scan = (input, options) => {
|
|
|
257
263
|
isGlob = token.isGlob = true;
|
|
258
264
|
|
|
259
265
|
if (scanToEnd === true) {
|
|
266
|
+
let parens = 1;
|
|
267
|
+
|
|
260
268
|
while (eos() !== true && (code = advance())) {
|
|
261
|
-
if (code ===
|
|
269
|
+
if (code === CHAR_BACKWARD_SLASH) {
|
|
262
270
|
backslashes = token.backslashes = true;
|
|
263
|
-
|
|
271
|
+
advance();
|
|
264
272
|
continue;
|
|
265
273
|
}
|
|
266
274
|
|
|
267
|
-
if (code ===
|
|
275
|
+
if (code === CHAR_LEFT_PARENTHESES) {
|
|
276
|
+
parens++;
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
|
|
268
281
|
finished = true;
|
|
269
282
|
break;
|
|
270
283
|
}
|
|
@@ -351,7 +364,7 @@ const scan = (input, options) => {
|
|
|
351
364
|
let prevIndex;
|
|
352
365
|
|
|
353
366
|
for (let idx = 0; idx < slashes.length; idx++) {
|
|
354
|
-
const n = prevIndex ? prevIndex + 1 : start;
|
|
367
|
+
const n = prevIndex !== undefined ? prevIndex + 1 : start;
|
|
355
368
|
const i = slashes[idx];
|
|
356
369
|
const value = input.slice(n, i);
|
|
357
370
|
if (opts.tokens) {
|
|
@@ -364,21 +377,20 @@ const scan = (input, options) => {
|
|
|
364
377
|
depth(tokens[idx]);
|
|
365
378
|
state.maxDepth += tokens[idx].depth;
|
|
366
379
|
}
|
|
367
|
-
if (
|
|
380
|
+
if (i >= start) {
|
|
368
381
|
parts.push(value);
|
|
382
|
+
prevIndex = i;
|
|
369
383
|
}
|
|
370
|
-
prevIndex = i;
|
|
371
384
|
}
|
|
372
385
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
386
|
+
const n = prevIndex !== undefined ? prevIndex + 1 : start;
|
|
387
|
+
const value = input.slice(n);
|
|
388
|
+
parts.push(value);
|
|
376
389
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
390
|
+
if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
|
|
391
|
+
tokens[tokens.length - 1].value = value;
|
|
392
|
+
depth(tokens[tokens.length - 1]);
|
|
393
|
+
state.maxDepth += tokens[tokens.length - 1].depth;
|
|
382
394
|
}
|
|
383
395
|
|
|
384
396
|
state.slashes = slashes;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picomatch",
|
|
3
3
|
"description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.7",
|
|
5
5
|
"homepage": "https://github.com/micromatch/picomatch",
|
|
6
6
|
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
7
|
"funding": "https://github.com/sponsors/jonschlinkert",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"reporter": [
|
|
44
44
|
"html",
|
|
45
45
|
"lcov",
|
|
46
|
-
"text-summary"
|
|
46
|
+
"text-summary",
|
|
47
|
+
"cobertura"
|
|
47
48
|
]
|
|
48
49
|
},
|
|
49
50
|
"verb": {
|
package/marketplace/plugins/litcodex/components/start-work-continuation/dist/codex-hook.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { StoreOptions } from "./lifecycle-store.js";
|
|
2
2
|
import type { ReadonlyFileSystem } from "./types.js";
|
|
3
3
|
export declare function runStopHook(input: unknown, _legacyFs?: ReadonlyFileSystem): string;
|
|
4
|
+
export type BoundaryAnswer = "approve" | "deny";
|
|
5
|
+
/**
|
|
6
|
+
* The whole prompt `lit approve` / `lit 승인` or `lit deny` / `lit 거절`, case-sensitive, at most 512 bytes.
|
|
7
|
+
* Anything around it (a quote, a code fence, a leading word) is ordinary text and answers nothing.
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseBoundaryAnswer(prompt: string): BoundaryAnswer | null;
|
|
4
10
|
export declare function runUserPromptSubmitHook(input: unknown, options?: StoreOptions): string;
|
|
5
11
|
interface StartWorkRoute {
|
|
6
12
|
readonly selector: string | null;
|
|
@@ -37,9 +37,74 @@ export function runStopHook(input, _legacyFs) {
|
|
|
37
37
|
throw error;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* The whole prompt `lit approve` / `lit 승인` or `lit deny` / `lit 거절`, case-sensitive, at most 512 bytes.
|
|
42
|
+
* Anything around it (a quote, a code fence, a leading word) is ordinary text and answers nothing.
|
|
43
|
+
*/
|
|
44
|
+
export function parseBoundaryAnswer(prompt) {
|
|
45
|
+
if (prompt.length > 512)
|
|
46
|
+
return null;
|
|
47
|
+
const match = prompt.trim().match(/^lit[ \t]+(approve|승인|deny|거절)$/u);
|
|
48
|
+
if (match === null)
|
|
49
|
+
return null;
|
|
50
|
+
return match[1] === "approve" || match[1] === "승인" ? "approve" : "deny";
|
|
51
|
+
}
|
|
52
|
+
function answerContext(text) {
|
|
53
|
+
return JSON.stringify({ hookSpecificOutput: { hookEventName: "UserPromptSubmit", additionalContext: text } });
|
|
54
|
+
}
|
|
55
|
+
const NOTHING_WAITING = "The user typed a start-work boundary answer, but this session has no paused start-work run waiting at a boundary, so nothing changed. Tell the user that in one sentence.";
|
|
56
|
+
/**
|
|
57
|
+
* Typed answer to the boundary a paused start-work run waits at. `lit approve` resumes the run with a grant the
|
|
58
|
+
* hook derives from this turn, through the same transition as the exact resume line, so the stored authority
|
|
59
|
+
* still decides what the grant may cover. `lit deny` changes no state: the run stays paused and the model is told
|
|
60
|
+
* not to take that action. Both answer only this session's own paused run.
|
|
61
|
+
*/
|
|
62
|
+
function answerBoundary(input, answer, options) {
|
|
63
|
+
try {
|
|
64
|
+
reconcileLifecycleState(input.cwd, options);
|
|
65
|
+
const inspected = inspectLifecycleState(input.cwd);
|
|
66
|
+
if (!inspected.ok || inspected.state.active_work_id === null)
|
|
67
|
+
return answerContext(NOTHING_WAITING);
|
|
68
|
+
const work = selectWorkForSession(inspected.state, input.session_id, ["paused"]);
|
|
69
|
+
const pending = work?.pending_boundary;
|
|
70
|
+
if (work === null || pending === undefined)
|
|
71
|
+
return answerContext(NOTHING_WAITING);
|
|
72
|
+
const what = `boundary ${pending.boundary_id} (action ${pending.action}, root ${pending.root}) of work ${work.work_id}`;
|
|
73
|
+
if (answer === "deny") {
|
|
74
|
+
return answerContext(`The user typed \`lit deny\` for ${what}. Do not take that action or retry it. The run stays paused; ask what to do instead or replan inside the stored authority, and resume only after a new \`lit approve\`.`);
|
|
75
|
+
}
|
|
76
|
+
const key = digest([work.work_id, pending.boundary_id, input.session_id, input.turn_id].join("\0"));
|
|
77
|
+
transitionWork(input.cwd, {
|
|
78
|
+
action: "resume",
|
|
79
|
+
expectedRevision: inspected.state.revision,
|
|
80
|
+
sessionId: input.session_id,
|
|
81
|
+
transitionId: `prompt-approve:${key}`,
|
|
82
|
+
workId: work.work_id,
|
|
83
|
+
reasonCode: "explicit_user_resume",
|
|
84
|
+
turnId: input.turn_id,
|
|
85
|
+
boundary: pending,
|
|
86
|
+
grant: {
|
|
87
|
+
grant_id: `typed-approve:${key}`,
|
|
88
|
+
authority_id: pending.authority_id,
|
|
89
|
+
boundary_id: pending.boundary_id,
|
|
90
|
+
action: pending.action,
|
|
91
|
+
root: pending.root,
|
|
92
|
+
},
|
|
93
|
+
}, options);
|
|
94
|
+
return answerContext(`The user typed \`lit approve\` for ${what}. The run is active again with a grant for exactly that action and root. Continue the plan's next open task inside it, and ask again before anything beyond it.`);
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
if (!(error instanceof Error))
|
|
98
|
+
throw error;
|
|
99
|
+
return answerContext("The user typed a start-work boundary answer, but the lifecycle store refused it, so the run is unchanged. Tell the user in one sentence and offer to show the run's state.");
|
|
100
|
+
}
|
|
101
|
+
}
|
|
40
102
|
export function runUserPromptSubmitHook(input, options = {}) {
|
|
41
103
|
if (!isUserPromptSubmitInput(input))
|
|
42
104
|
return "";
|
|
105
|
+
const answer = parseBoundaryAnswer(input.prompt);
|
|
106
|
+
if (answer !== null)
|
|
107
|
+
return answerBoundary(input, answer, options);
|
|
43
108
|
const route = parseExplicitStartWorkPrompt(input.prompt);
|
|
44
109
|
if (route === null)
|
|
45
110
|
return "";
|
|
@@ -196,6 +196,30 @@
|
|
|
196
196
|
]
|
|
197
197
|
}
|
|
198
198
|
],
|
|
199
|
+
"SubagentStart": [
|
|
200
|
+
{
|
|
201
|
+
"hooks": [
|
|
202
|
+
{
|
|
203
|
+
"type": "command",
|
|
204
|
+
"command": "node \"${PLUGIN_ROOT}/components/lit-loop/dist/cli.js\" hook subagent-start",
|
|
205
|
+
"timeout": 5,
|
|
206
|
+
"statusMessage": "\ud83d\udd25 LIT \u00b7 lanes"
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"SubagentStop": [
|
|
212
|
+
{
|
|
213
|
+
"hooks": [
|
|
214
|
+
{
|
|
215
|
+
"type": "command",
|
|
216
|
+
"command": "node \"${PLUGIN_ROOT}/components/lit-loop/dist/cli.js\" hook subagent-stop",
|
|
217
|
+
"timeout": 5,
|
|
218
|
+
"statusMessage": "\ud83d\udd25 LIT \u00b7 lanes"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
],
|
|
199
223
|
"PostCompact": [
|
|
200
224
|
{
|
|
201
225
|
"hooks": [
|
|
@@ -37,6 +37,12 @@ Outcome, constraints, and authorization define scope. See `references/complete-c
|
|
|
37
37
|
|
|
38
38
|
Follow `references/complete-contract.md`, `references/production-interview.md`, `references/motion-guide.md`, and `references/probe-and-review.md`; default direction is `references/default-editorial-pixel.json`. Always load `references/craft-floor.md` and `references/slop-register.md` once selected. Use `litfamily.design-contract/v1beta2` with `schemas/design-contract.v1beta2.json`. Lead with the user's primary information and actions; implement the interactions needed for the user's task. Inspect real 390/1440 renders, navigation, links, and visible controls. Source/tests are not visual proof; `visual-qa` owns verdicts.
|
|
39
39
|
|
|
40
|
+
### Choose the design first
|
|
41
|
+
|
|
42
|
+
For a new page or screen the user has the right to choose the look. Before `design-lock.mjs` runs or markup is written, follow `references/design-choice.md`: style, family and density, recommended first, by `request_user_input` or a numbered list.
|
|
43
|
+
|
|
44
|
+
Then a new page or screen starts from a design lock: run `scripts/design-lock.mjs init` and follow `references/house-styles.md` (five house styles, the `kit/`, one signature moment). Density is rich unless the user asks for minimal or calm. The probe adds DS-001..008 beside `design.lock.json` and prints a LOOK rubric; judge the screenshots by eye.
|
|
45
|
+
|
|
40
46
|
Mode words apply only after picker selection or a bounded lit-loop delegation. `scripts/route-mode.mjs` checks English/Korean UI objects and excludes video, slides, prose, and server work; text alone never activates this skill. Use build by default, polish for value-only edits, audit only after same-surface session work, and harden for stress cues.
|
|
41
47
|
|
|
42
48
|
## #contract.outputs
|