@litfamily/litopencode 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +8 -0
- package/ATTRIBUTION.md +56 -0
- package/CHANGELOG.md +267 -0
- package/CODE_OF_CONDUCT.md +30 -0
- package/CONTRIBUTING.md +82 -0
- package/LICENSE +21 -0
- package/README-Ko-KR.md +252 -0
- package/README.md +252 -0
- package/SECURITY.md +36 -0
- package/SUPPORT.md +37 -0
- package/bin/litopencode +3 -0
- package/bin/litopencode.cjs +10 -0
- package/dist/activation-managed-prompts.d.ts +2 -0
- package/dist/activation-managed-prompts.js +51 -0
- package/dist/activation-primary-prompts.d.ts +2 -0
- package/dist/activation-primary-prompts.js +176 -0
- package/dist/activation-probe.d.ts +3 -0
- package/dist/activation-probe.js +19 -0
- package/dist/activation-prompt-utils.d.ts +6 -0
- package/dist/activation-prompt-utils.js +36 -0
- package/dist/activation-routing.d.ts +5 -0
- package/dist/activation-routing.js +340 -0
- package/dist/activation-workflow-prompts.d.ts +26 -0
- package/dist/activation-workflow-prompts.js +295 -0
- package/dist/activation.d.ts +24 -0
- package/dist/activation.js +152 -0
- package/dist/agents/defaults.d.ts +15 -0
- package/dist/agents/defaults.js +112 -0
- package/dist/agents/registry.d.ts +65 -0
- package/dist/agents/registry.js +319 -0
- package/dist/agents/specialists.d.ts +49 -0
- package/dist/agents/specialists.js +307 -0
- package/dist/agents/types.d.ts +55 -0
- package/dist/agents/types.js +4 -0
- package/dist/agents.d.ts +4 -0
- package/dist/agents.js +3 -0
- package/dist/benchmark.d.ts +94 -0
- package/dist/benchmark.js +172 -0
- package/dist/bounded-authority-hooks.d.ts +19 -0
- package/dist/bounded-authority-hooks.js +157 -0
- package/dist/bounded-authority.d.ts +184 -0
- package/dist/bounded-authority.js +825 -0
- package/dist/cache-metrics.d.ts +54 -0
- package/dist/cache-metrics.js +81 -0
- package/dist/cli/args.d.ts +5 -0
- package/dist/cli/args.js +415 -0
- package/dist/cli/auto-update.d.ts +117 -0
- package/dist/cli/auto-update.js +604 -0
- package/dist/cli/command-alias-ownership.d.ts +2 -0
- package/dist/cli/command-alias-ownership.js +14 -0
- package/dist/cli/command-aliases.d.ts +12 -0
- package/dist/cli/command-aliases.js +112 -0
- package/dist/cli/doctor.d.ts +2 -0
- package/dist/cli/doctor.js +175 -0
- package/dist/cli/host-capabilities.d.ts +12 -0
- package/dist/cli/host-capabilities.js +25 -0
- package/dist/cli/host-limits.d.ts +21 -0
- package/dist/cli/host-limits.js +83 -0
- package/dist/cli/install-config.d.ts +13 -0
- package/dist/cli/install-config.js +201 -0
- package/dist/cli/install-report.d.ts +2 -0
- package/dist/cli/install-report.js +180 -0
- package/dist/cli/install-tui.d.ts +12 -0
- package/dist/cli/install-tui.js +174 -0
- package/dist/cli/install.d.ts +2 -0
- package/dist/cli/install.js +264 -0
- package/dist/cli/json.d.ts +4 -0
- package/dist/cli/json.js +31 -0
- package/dist/cli/loop.d.ts +3 -0
- package/dist/cli/loop.js +135 -0
- package/dist/cli/lsp-capability.d.ts +17 -0
- package/dist/cli/lsp-capability.js +92 -0
- package/dist/cli/managed-skill-assets.d.ts +23 -0
- package/dist/cli/managed-skill-assets.js +117 -0
- package/dist/cli/model-catalog.d.ts +21 -0
- package/dist/cli/model-catalog.js +107 -0
- package/dist/cli/model-policy.d.ts +3 -0
- package/dist/cli/model-policy.js +143 -0
- package/dist/cli/model-routing.d.ts +5 -0
- package/dist/cli/model-routing.js +208 -0
- package/dist/cli/native-canonical-backup.d.ts +9 -0
- package/dist/cli/native-canonical-backup.js +96 -0
- package/dist/cli/native-canonical-cache.d.ts +9 -0
- package/dist/cli/native-canonical-cache.js +37 -0
- package/dist/cli/native-skill-install.d.ts +2 -0
- package/dist/cli/native-skill-install.js +128 -0
- package/dist/cli/native-skill-integrity.d.ts +25 -0
- package/dist/cli/native-skill-integrity.js +178 -0
- package/dist/cli/native-skill-tree.d.ts +12 -0
- package/dist/cli/native-skill-tree.js +104 -0
- package/dist/cli/native-skills.d.ts +22 -0
- package/dist/cli/native-skills.js +105 -0
- package/dist/cli/plugin-mutation.d.ts +4 -0
- package/dist/cli/plugin-mutation.js +89 -0
- package/dist/cli/scientific-visualization-dependencies.d.ts +18 -0
- package/dist/cli/scientific-visualization-dependencies.js +91 -0
- package/dist/cli/skill-loop.d.ts +3 -0
- package/dist/cli/skill-loop.js +649 -0
- package/dist/cli/types.d.ts +188 -0
- package/dist/cli/types.js +1 -0
- package/dist/cli/update-check.d.ts +2 -0
- package/dist/cli/update-check.js +15 -0
- package/dist/cli/update-notifier.d.ts +70 -0
- package/dist/cli/update-notifier.js +717 -0
- package/dist/cli/vendor-path-migration.d.ts +9 -0
- package/dist/cli/vendor-path-migration.js +96 -0
- package/dist/cli.d.ts +7 -0
- package/dist/cli.js +250 -0
- package/dist/commands.d.ts +331 -0
- package/dist/commands.js +600 -0
- package/dist/config-parser.d.ts +5 -0
- package/dist/config-parser.js +274 -0
- package/dist/config.d.ts +72 -0
- package/dist/config.js +157 -0
- package/dist/deliverable-hedge-guard.d.ts +26 -0
- package/dist/deliverable-hedge-guard.js +302 -0
- package/dist/durable-plan.d.ts +23 -0
- package/dist/durable-plan.js +349 -0
- package/dist/features.d.ts +828 -0
- package/dist/features.js +1109 -0
- package/dist/hooks.d.ts +17 -0
- package/dist/hooks.js +83 -0
- package/dist/ignition.d.ts +14 -0
- package/dist/ignition.js +33 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +30 -0
- package/dist/inert-data.d.ts +2 -0
- package/dist/inert-data.js +13 -0
- package/dist/knowledge.d.ts +98 -0
- package/dist/knowledge.js +961 -0
- package/dist/ledger.d.ts +181 -0
- package/dist/ledger.js +1179 -0
- package/dist/lit-fetch-classify.d.ts +8 -0
- package/dist/lit-fetch-classify.js +107 -0
- package/dist/lit-fetch-content.d.ts +2 -0
- package/dist/lit-fetch-content.js +43 -0
- package/dist/lit-fetch-http.d.ts +10 -0
- package/dist/lit-fetch-http.js +82 -0
- package/dist/lit-fetch-result.d.ts +2 -0
- package/dist/lit-fetch-result.js +65 -0
- package/dist/lit-fetch-ssrf.d.ts +9 -0
- package/dist/lit-fetch-ssrf.js +77 -0
- package/dist/lit-fetch-url.d.ts +3 -0
- package/dist/lit-fetch-url.js +28 -0
- package/dist/lit-fetch.d.ts +69 -0
- package/dist/lit-fetch.js +84 -0
- package/dist/lit-mark.d.ts +17 -0
- package/dist/lit-mark.js +129 -0
- package/dist/logger.d.ts +9 -0
- package/dist/logger.js +21 -0
- package/dist/model-route-policy.d.ts +25 -0
- package/dist/model-route-policy.js +129 -0
- package/dist/reader-facing-output.d.ts +3 -0
- package/dist/reader-facing-output.js +28 -0
- package/dist/rules/discovery.d.ts +36 -0
- package/dist/rules/discovery.js +270 -0
- package/dist/rules/engine.d.ts +43 -0
- package/dist/rules/engine.js +236 -0
- package/dist/rules/frontmatter.d.ts +16 -0
- package/dist/rules/frontmatter.js +179 -0
- package/dist/rules/glob.d.ts +12 -0
- package/dist/rules/glob.js +233 -0
- package/dist/rules/hooks.d.ts +25 -0
- package/dist/rules/hooks.js +75 -0
- package/dist/rules/output-style.d.ts +1 -0
- package/dist/rules/output-style.js +20 -0
- package/dist/scientific-visualization-banner.d.ts +1 -0
- package/dist/scientific-visualization-banner.js +2 -0
- package/dist/search-workflow-ideas.d.ts +67 -0
- package/dist/search-workflow-ideas.js +128 -0
- package/dist/secret-shapes.d.ts +9 -0
- package/dist/secret-shapes.js +63 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.js +129 -0
- package/dist/session-lineage.d.ts +8 -0
- package/dist/session-lineage.js +12 -0
- package/dist/skill-loop/apply.d.ts +19 -0
- package/dist/skill-loop/apply.js +483 -0
- package/dist/skill-loop/config.d.ts +50 -0
- package/dist/skill-loop/config.js +215 -0
- package/dist/skill-loop/curator.d.ts +18 -0
- package/dist/skill-loop/curator.js +232 -0
- package/dist/skill-loop/ledger.d.ts +39 -0
- package/dist/skill-loop/ledger.js +344 -0
- package/dist/skill-loop/proposals.d.ts +48 -0
- package/dist/skill-loop/proposals.js +290 -0
- package/dist/skill-loop/storage.d.ts +72 -0
- package/dist/skill-loop/storage.js +817 -0
- package/dist/skill-loop/time.d.ts +2 -0
- package/dist/skill-loop/time.js +23 -0
- package/dist/skill-loop/transaction.d.ts +62 -0
- package/dist/skill-loop/transaction.js +836 -0
- package/dist/skill-loop/usage.d.ts +31 -0
- package/dist/skill-loop/usage.js +146 -0
- package/dist/skill-observer.d.ts +22 -0
- package/dist/skill-observer.js +1154 -0
- package/dist/skill-renames.d.ts +5 -0
- package/dist/skill-renames.js +8 -0
- package/dist/skills.d.ts +307 -0
- package/dist/skills.js +450 -0
- package/dist/stable-identity.d.ts +14 -0
- package/dist/stable-identity.js +15 -0
- package/dist/state.d.ts +25 -0
- package/dist/state.js +38 -0
- package/dist/strict-json.d.ts +2 -0
- package/dist/strict-json.js +94 -0
- package/dist/tool-guards.d.ts +34 -0
- package/dist/tool-guards.js +210 -0
- package/dist/tool-kit.d.ts +32 -0
- package/dist/tool-kit.js +75 -0
- package/dist/tools.d.ts +43 -0
- package/dist/tools.js +381 -0
- package/dist/uiux-visual-catalog.d.ts +50 -0
- package/dist/uiux-visual-catalog.js +103 -0
- package/dist/user-facing-markdown.d.ts +5 -0
- package/dist/user-facing-markdown.js +93 -0
- package/dist/workflow-families.d.ts +16 -0
- package/dist/workflow-families.js +95 -0
- package/docs/assets/cover.webp +0 -0
- package/docs/assets/litopencode-continuity-1600.webp +0 -0
- package/docs/assets/litopencode-ignition-1600.webp +0 -0
- package/docs/assets/readme/badge-license.svg +1 -0
- package/docs/assets/readme/badge-version.svg +1 -0
- package/docs/assets/readme/litopencode-clay-icon.png +0 -0
- package/docs/assets/readme/litopencode-wordmark.svg +5 -0
- package/docs/lit-mark.md +46 -0
- package/docs/migration.md +162 -0
- package/docs/privacy.md +82 -0
- package/docs/reference-Ko-KR.md +309 -0
- package/docs/reference.md +444 -0
- package/output-styles/asd-ste100-ko.md +41 -0
- package/output-styles/asd-ste100.md +40 -0
- package/output-styles/eli5-ko.md +13 -0
- package/output-styles/eli5.md +11 -0
- package/package.json +57 -0
- package/qa/fixtures/litfamily-harness-speed-v1.json +38 -0
- package/qa/harness-speed-contract.mjs +209 -0
- package/qa/harness-speed-v2-contract.mjs +213 -0
- package/qa/harness-speed-verdict.mjs +105 -0
- package/skills/agent-roster/SKILL.md +262 -0
- package/skills/autoconference/LICENSE +21 -0
- package/skills/autoconference/PROVENANCE.md +20 -0
- package/skills/autoconference/SKILL.md +125 -0
- package/skills/autoconference/assets/conference_template.md +76 -0
- package/skills/autoconference/assets/report_template.md +53 -0
- package/skills/autoconference/assets/synthesis_template.md +39 -0
- package/skills/autoconference/modes/analyze.md +255 -0
- package/skills/autoconference/modes/core.md +112 -0
- package/skills/autoconference/modes/debate.md +373 -0
- package/skills/autoconference/modes/plan.md +310 -0
- package/skills/autoconference/modes/resume.md +48 -0
- package/skills/autoconference/modes/ship.md +57 -0
- package/skills/autoconference/modes/survey.md +109 -0
- package/skills/autoconference/references/agent-prompts.md +134 -0
- package/skills/autoconference/references/conference-protocol.md +102 -0
- package/skills/autoconference/references/convergence-guide.md +167 -0
- package/skills/autoconference/references/core-principles.md +83 -0
- package/skills/autoconference/references/crash-recovery.md +104 -0
- package/skills/autoconference/references/results-logging.md +198 -0
- package/skills/autoconference/references/upstream-family-contract.md +130 -0
- package/skills/autoconference/references/visualization-guide.md +105 -0
- package/skills/autoconference/scripts/check_conference.sh +371 -0
- package/skills/autoconference/scripts/init_conference.py +625 -0
- package/skills/autoconference/scripts/style_presets.py +104 -0
- package/skills/autoresearch/LICENSE +21 -0
- package/skills/autoresearch/PROVENANCE.md +20 -0
- package/skills/autoresearch/SKILL.md +131 -0
- package/skills/autoresearch/assets/report_template.md +50 -0
- package/skills/autoresearch/assets/research_template.md +38 -0
- package/skills/autoresearch/assets/results_template.tsv +1 -0
- package/skills/autoresearch/modes/core.md +216 -0
- package/skills/autoresearch/modes/debug.md +235 -0
- package/skills/autoresearch/modes/fix.md +173 -0
- package/skills/autoresearch/modes/learn.md +91 -0
- package/skills/autoresearch/modes/plan.md +291 -0
- package/skills/autoresearch/modes/predict.md +266 -0
- package/skills/autoresearch/modes/reason.md +170 -0
- package/skills/autoresearch/modes/scenario.md +164 -0
- package/skills/autoresearch/modes/security.md +282 -0
- package/skills/autoresearch/modes/ship.md +49 -0
- package/skills/autoresearch/references/core-principles.md +80 -0
- package/skills/autoresearch/references/evaluator-contract.md +126 -0
- package/skills/autoresearch/references/investigation-techniques.md +205 -0
- package/skills/autoresearch/references/owasp-checklist.md +161 -0
- package/skills/autoresearch/references/persona-templates.md +232 -0
- package/skills/autoresearch/references/results-logging.md +96 -0
- package/skills/autoresearch/references/scenario-dimensions.md +178 -0
- package/skills/autoresearch/references/stride-model.md +196 -0
- package/skills/autoresearch/references/stuck-detection.md +107 -0
- package/skills/autoresearch/references/type-checklists.md +163 -0
- package/skills/autoresearch/references/upstream-family-contract.md +125 -0
- package/skills/autoresearch/references/visualization-guide.md +95 -0
- package/skills/autoresearch/scripts/check_progress.sh +272 -0
- package/skills/autoresearch/scripts/init_research.py +330 -0
- package/skills/autoresearch/scripts/run_with_deadline.py +164 -0
- package/skills/autoresearch/scripts/style_presets.py +104 -0
- package/skills/browser-drive/SKILL.md +133 -0
- package/skills/browser-drive/references/snapshot-act-loop.md +37 -0
- package/skills/browser-drive/scripts/capability-probe.mjs +262 -0
- package/skills/comment-checker/SKILL.md +171 -0
- package/skills/debugging/SKILL.md +202 -0
- package/skills/debugging/references/README.md +15 -0
- package/skills/debugging/references/escalation.md +43 -0
- package/skills/debugging/references/runtimes/README.md +17 -0
- package/skills/debugging/references/runtimes/bundled-js-binary.md +44 -0
- package/skills/debugging/references/runtimes/go.md +37 -0
- package/skills/debugging/references/runtimes/native-binary.md +44 -0
- package/skills/debugging/references/runtimes/node.md +43 -0
- package/skills/debugging/references/runtimes/python.md +41 -0
- package/skills/debugging/references/runtimes/rust.md +37 -0
- package/skills/debugging/references/tools.md +72 -0
- package/skills/deep-interview/SKILL.md +201 -0
- package/skills/doctor-installer/SKILL.md +252 -0
- package/skills/durable-litgoal/SKILL.md +248 -0
- package/skills/frontend-ui-ux/SKILL.md +70 -0
- package/skills/frontend-ui-ux/data/LICENSE +21 -0
- package/skills/frontend-ui-ux/data/PROVENANCE.json +1088 -0
- package/skills/frontend-ui-ux/data/THIRD-PARTY-NOTICE.txt +14 -0
- package/skills/frontend-ui-ux/data/design-intelligence.json +1 -0
- package/skills/frontend-ui-ux/references/_canonical-corpus/ATTRIBUTION.md +217 -0
- package/skills/frontend-ui-ux/references/_canonical-corpus/LICENSE +21 -0
- package/skills/frontend-ui-ux/references/_canonical-corpus/LICENSE-Apache-2.0.txt +201 -0
- package/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +867 -0
- package/skills/frontend-ui-ux/references/adaptive-layout.md +85 -0
- package/skills/frontend-ui-ux/references/brand-and-imagery.md +79 -0
- package/skills/frontend-ui-ux/references/complete-contract.md +282 -0
- package/skills/frontend-ui-ux/references/composition.md +87 -0
- package/skills/frontend-ui-ux/references/creative-directions.md +83 -0
- package/skills/frontend-ui-ux/references/design/README.md +248 -0
- package/skills/frontend-ui-ux/references/design/_INDEX.md +191 -0
- package/skills/frontend-ui-ux/references/design/airbnb.md +393 -0
- package/skills/frontend-ui-ux/references/design/airtable.md +92 -0
- package/skills/frontend-ui-ux/references/design/apple.md +250 -0
- package/skills/frontend-ui-ux/references/design/aside.md +209 -0
- package/skills/frontend-ui-ux/references/design/binance.md +348 -0
- package/skills/frontend-ui-ux/references/design/bmw.md +183 -0
- package/skills/frontend-ui-ux/references/design/brutalist-skill.md +92 -0
- package/skills/frontend-ui-ux/references/design/bugatti.md +271 -0
- package/skills/frontend-ui-ux/references/design/cal.md +262 -0
- package/skills/frontend-ui-ux/references/design/claude.md +315 -0
- package/skills/frontend-ui-ux/references/design/clay.md +307 -0
- package/skills/frontend-ui-ux/references/design/clickhouse.md +284 -0
- package/skills/frontend-ui-ux/references/design/clone-from-url.md +65 -0
- package/skills/frontend-ui-ux/references/design/cohere.md +269 -0
- package/skills/frontend-ui-ux/references/design/coinbase.md +132 -0
- package/skills/frontend-ui-ux/references/design/composio.md +310 -0
- package/skills/frontend-ui-ux/references/design/cursor.md +312 -0
- package/skills/frontend-ui-ux/references/design/design-system-architecture.md +244 -0
- package/skills/frontend-ui-ux/references/design/elevenlabs.md +268 -0
- package/skills/frontend-ui-ux/references/design/expo.md +284 -0
- package/skills/frontend-ui-ux/references/design/ferrari.md +317 -0
- package/skills/frontend-ui-ux/references/design/figma.md +223 -0
- package/skills/frontend-ui-ux/references/design/framer.md +249 -0
- package/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +74 -0
- package/skills/frontend-ui-ux/references/design/hashicorp.md +281 -0
- package/skills/frontend-ui-ux/references/design/ibm.md +335 -0
- package/skills/frontend-ui-ux/references/design/image-to-code-skill.md +1228 -0
- package/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +798 -0
- package/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +1465 -0
- package/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +987 -0
- package/skills/frontend-ui-ux/references/design/intercom.md +149 -0
- package/skills/frontend-ui-ux/references/design/kraken.md +128 -0
- package/skills/frontend-ui-ux/references/design/lamborghini.md +291 -0
- package/skills/frontend-ui-ux/references/design/layout-skill.md +107 -0
- package/skills/frontend-ui-ux/references/design/lazyweb.md +77 -0
- package/skills/frontend-ui-ux/references/design/linear.app.md +370 -0
- package/skills/frontend-ui-ux/references/design/lovable.md +301 -0
- package/skills/frontend-ui-ux/references/design/mastercard.md +368 -0
- package/skills/frontend-ui-ux/references/design/meta.md +369 -0
- package/skills/frontend-ui-ux/references/design/minimalist-skill.md +85 -0
- package/skills/frontend-ui-ux/references/design/minimax.md +260 -0
- package/skills/frontend-ui-ux/references/design/mintlify.md +329 -0
- package/skills/frontend-ui-ux/references/design/miro.md +111 -0
- package/skills/frontend-ui-ux/references/design/mistral.ai.md +264 -0
- package/skills/frontend-ui-ux/references/design/mongodb.md +269 -0
- package/skills/frontend-ui-ux/references/design/nike.md +366 -0
- package/skills/frontend-ui-ux/references/design/notion.md +312 -0
- package/skills/frontend-ui-ux/references/design/nvidia.md +296 -0
- package/skills/frontend-ui-ux/references/design/ollama.md +270 -0
- package/skills/frontend-ui-ux/references/design/opencode.ai.md +284 -0
- package/skills/frontend-ui-ux/references/design/output-skill.md +49 -0
- package/skills/frontend-ui-ux/references/design/pinterest.md +233 -0
- package/skills/frontend-ui-ux/references/design/playstation.md +367 -0
- package/skills/frontend-ui-ux/references/design/posthog.md +259 -0
- package/skills/frontend-ui-ux/references/design/raycast.md +271 -0
- package/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +230 -0
- package/skills/frontend-ui-ux/references/design/redesign-skill.md +178 -0
- package/skills/frontend-ui-ux/references/design/renault.md +314 -0
- package/skills/frontend-ui-ux/references/design/replicate.md +264 -0
- package/skills/frontend-ui-ux/references/design/resend.md +306 -0
- package/skills/frontend-ui-ux/references/design/revolut.md +188 -0
- package/skills/frontend-ui-ux/references/design/runwayml.md +247 -0
- package/skills/frontend-ui-ux/references/design/sanity.md +360 -0
- package/skills/frontend-ui-ux/references/design/sentry.md +265 -0
- package/skills/frontend-ui-ux/references/design/shopify.md +353 -0
- package/skills/frontend-ui-ux/references/design/soft-skill.md +98 -0
- package/skills/frontend-ui-ux/references/design/spacex.md +197 -0
- package/skills/frontend-ui-ux/references/design/spotify.md +249 -0
- package/skills/frontend-ui-ux/references/design/starbucks.md +583 -0
- package/skills/frontend-ui-ux/references/design/stitch-design-example.md +121 -0
- package/skills/frontend-ui-ux/references/design/stitch-skill.md +184 -0
- package/skills/frontend-ui-ux/references/design/stripe.md +325 -0
- package/skills/frontend-ui-ux/references/design/supabase.md +258 -0
- package/skills/frontend-ui-ux/references/design/superhuman.md +255 -0
- package/skills/frontend-ui-ux/references/design/taste-skill.md +1206 -0
- package/skills/frontend-ui-ux/references/design/tesla.md +289 -0
- package/skills/frontend-ui-ux/references/design/theverge.md +342 -0
- package/skills/frontend-ui-ux/references/design/together.ai.md +266 -0
- package/skills/frontend-ui-ux/references/design/uber.md +298 -0
- package/skills/frontend-ui-ux/references/design/vercel.md +313 -0
- package/skills/frontend-ui-ux/references/design/vodafone.md +426 -0
- package/skills/frontend-ui-ux/references/design/voltagent.md +326 -0
- package/skills/frontend-ui-ux/references/design/warp.md +256 -0
- package/skills/frontend-ui-ux/references/design/webflow.md +95 -0
- package/skills/frontend-ui-ux/references/design/wired.md +281 -0
- package/skills/frontend-ui-ux/references/design/wise.md +176 -0
- package/skills/frontend-ui-ux/references/design/x.ai.md +260 -0
- package/skills/frontend-ui-ux/references/design/zapier.md +331 -0
- package/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +97 -0
- package/skills/frontend-ui-ux/references/designpowers/README.md +48 -0
- package/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +80 -0
- package/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +64 -0
- package/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +65 -0
- package/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +65 -0
- package/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +83 -0
- package/skills/frontend-ui-ux/references/designpowers/orchestration.md +80 -0
- package/skills/frontend-ui-ux/references/designpowers/routing.md +79 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +21 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +83 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +132 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +109 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +89 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +113 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +78 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +121 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +268 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +107 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +120 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +101 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +109 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +107 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +199 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +174 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +125 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +106 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +266 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +123 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +120 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +164 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +85 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +98 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +165 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +122 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +81 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +96 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +77 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +192 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +165 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +78 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +75 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +117 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +78 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +125 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +79 -0
- package/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +119 -0
- package/skills/frontend-ui-ux/references/evidence-review.md +103 -0
- package/skills/frontend-ui-ux/references/implementation-platforms.md +94 -0
- package/skills/frontend-ui-ux/references/inclusive-interface.md +85 -0
- package/skills/frontend-ui-ux/references/interaction-motion.md +93 -0
- package/skills/frontend-ui-ux/references/operating-lanes.md +80 -0
- package/skills/frontend-ui-ux/references/perfection/README.md +160 -0
- package/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +127 -0
- package/skills/frontend-ui-ux/references/performance-delivery.md +77 -0
- package/skills/frontend-ui-ux/references/product-direction.md +84 -0
- package/skills/frontend-ui-ux/references/redesign-playbook.md +88 -0
- package/skills/frontend-ui-ux/references/system-foundations.md +86 -0
- package/skills/frontend-ui-ux/references/taste-direction.md +55 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/README.md +659 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +26 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +162 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +106 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +35 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +162 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +45 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +85 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +74 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +162 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +31 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +262 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +1148 -0
- package/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +114 -0
- package/skills/frontend-ui-ux/references/visual-language.md +84 -0
- package/skills/frontend-ui-ux/references/visual-reconstruction.md +87 -0
- package/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.json +570 -0
- package/skills/frontend-ui-ux/schemas/design-contract-v1beta1.json +32 -0
- package/skills/frontend-ui-ux/schemas/design-contract-v1beta2.json +34 -0
- package/skills/frontend-ui-ux/scripts/bounded-json.mjs +45 -0
- package/skills/frontend-ui-ux/scripts/canonical-json.mjs +26 -0
- package/skills/frontend-ui-ux/scripts/contract-error.mjs +15 -0
- package/skills/frontend-ui-ux/scripts/csv.mjs +64 -0
- package/skills/frontend-ui-ux/scripts/dataset.mjs +65 -0
- package/skills/frontend-ui-ux/scripts/design-contract.mjs +609 -0
- package/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +193 -0
- package/skills/frontend-ui-ux/scripts/retrieval.mjs +92 -0
- package/skills/frontend-ui-ux/scripts/stable-file-read.mjs +237 -0
- package/skills/frontend-ui-ux/scripts/stdin-json.mjs +16 -0
- package/skills/frontend-ui-ux/scripts/strict-json.mjs +102 -0
- package/skills/frontend-ui-ux/scripts/uiux.mjs +86 -0
- package/skills/frontend-ui-ux/scripts/verify-canonical-corpus.mjs +266 -0
- package/skills/lit-burnoff/SKILL.md +227 -0
- package/skills/lit-burnoff-file/SKILL.md +175 -0
- package/skills/lit-code/SKILL.md +266 -0
- package/skills/lit-code/references/README.md +18 -0
- package/skills/lit-code/references/go/README.md +12 -0
- package/skills/lit-code/references/go/concurrency.md +42 -0
- package/skills/lit-code/references/go/error-handling.md +47 -0
- package/skills/lit-code/references/go/testing.md +55 -0
- package/skills/lit-code/references/go/tooling.md +35 -0
- package/skills/lit-code/references/go/type-patterns.md +50 -0
- package/skills/lit-code/references/python/README.md +12 -0
- package/skills/lit-code/references/python/async.md +50 -0
- package/skills/lit-code/references/python/error-handling.md +44 -0
- package/skills/lit-code/references/python/testing.md +50 -0
- package/skills/lit-code/references/python/tooling.md +38 -0
- package/skills/lit-code/references/python/type-patterns.md +46 -0
- package/skills/lit-code/references/rust/README.md +12 -0
- package/skills/lit-code/references/rust/concurrency.md +45 -0
- package/skills/lit-code/references/rust/error-handling.md +43 -0
- package/skills/lit-code/references/rust/tooling.md +36 -0
- package/skills/lit-code/references/rust/type-patterns.md +46 -0
- package/skills/lit-code/references/rust/unsafe.md +47 -0
- package/skills/lit-code/references/typescript/README.md +11 -0
- package/skills/lit-code/references/typescript/error-handling.md +56 -0
- package/skills/lit-code/references/typescript/testing.md +42 -0
- package/skills/lit-code/references/typescript/tsconfig-strict.md +40 -0
- package/skills/lit-code/references/typescript/type-patterns.md +60 -0
- package/skills/lit-commit/SKILL.md +222 -0
- package/skills/lit-comprehend/SKILL.md +278 -0
- package/skills/lit-comprehend/assets/explainer-scaffold.html +104 -0
- package/skills/lit-comprehend/references/artifact-template.md +114 -0
- package/skills/lit-comprehend/references/micro-worlds.md +115 -0
- package/skills/lit-comprehend/scripts/verify-explainer.ts +339 -0
- package/skills/lit-crucible/SKILL.md +212 -0
- package/skills/lit-fetch/SKILL.md +242 -0
- package/skills/lit-handoff/SKILL.md +199 -0
- package/skills/lit-init/SKILL.md +214 -0
- package/skills/lit-korean/SKILL.md +231 -0
- package/skills/lit-plan/SKILL.md +351 -0
- package/skills/lit-plan/scripts/scaffold-plan.mjs +275 -0
- package/skills/lit-recap/SKILL.md +233 -0
- package/skills/lit-scientific-visualization/SKILL.md +175 -0
- package/skills/litresearch/SKILL.md +436 -0
- package/skills/litwork/SKILL.md +227 -0
- package/skills/lsp/SKILL.md +186 -0
- package/skills/lsp-setup/SKILL.md +187 -0
- package/skills/lsp-setup/references/README.md +40 -0
- package/skills/lsp-setup/references/bash.md +31 -0
- package/skills/lsp-setup/references/c-cpp.md +43 -0
- package/skills/lsp-setup/references/csharp.md +29 -0
- package/skills/lsp-setup/references/dart.md +25 -0
- package/skills/lsp-setup/references/elixir.md +30 -0
- package/skills/lsp-setup/references/go.md +33 -0
- package/skills/lsp-setup/references/haskell.md +27 -0
- package/skills/lsp-setup/references/java.md +28 -0
- package/skills/lsp-setup/references/julia.md +28 -0
- package/skills/lsp-setup/references/kotlin.md +25 -0
- package/skills/lsp-setup/references/lua.md +26 -0
- package/skills/lsp-setup/references/php.md +30 -0
- package/skills/lsp-setup/references/python.md +33 -0
- package/skills/lsp-setup/references/ruby.md +34 -0
- package/skills/lsp-setup/references/rust.md +34 -0
- package/skills/lsp-setup/references/swift.md +26 -0
- package/skills/lsp-setup/references/terraform.md +26 -0
- package/skills/lsp-setup/references/typescript.md +35 -0
- package/skills/lsp-setup/references/yaml.md +27 -0
- package/skills/lsp-setup/references/zig.md +28 -0
- package/skills/managed-skill-manifest.json +1386 -0
- package/skills/native-goal-verdict/SKILL.md +216 -0
- package/skills/refactor/SKILL.md +221 -0
- package/skills/reference-benchmark-claims/SKILL.md +204 -0
- package/skills/release-guardrails/SKILL.md +245 -0
- package/skills/review-work/SKILL.md +301 -0
- package/skills/rules/SKILL.md +196 -0
- package/skills/search-workflow-ideas/SKILL.md +223 -0
- package/skills/skill-observer/SKILL.md +148 -0
- package/skills/skill-observer/references/review-contract.md +95 -0
- package/skills/skill-rename-aliases.json +10 -0
- package/skills/start-work/SKILL.md +334 -0
- package/skills/structural-search/SKILL.md +234 -0
- package/skills/tool-guards/SKILL.md +223 -0
- package/skills/visual-qa/SKILL.md +61 -0
- package/skills/visual-qa/references/capture-playbook.md +105 -0
- package/skills/visual-qa/references/complete-contract.md +411 -0
- package/skills/visual-qa/schemas/evidence-manifest-v1alpha1.json +201 -0
- package/skills/visual-qa/schemas/evidence-manifest-v1beta1.json +141 -0
- package/skills/visual-qa/schemas/review-receipt-v1alpha1.json +113 -0
- package/skills/visual-qa/scripts/artifact.mjs +123 -0
- package/skills/visual-qa/scripts/bounded-json.mjs +47 -0
- package/skills/visual-qa/scripts/canonical-json.mjs +28 -0
- package/skills/visual-qa/scripts/capabilities.mjs +66 -0
- package/skills/visual-qa/scripts/contract-text.mjs +15 -0
- package/skills/visual-qa/scripts/design-contract.mjs +611 -0
- package/skills/visual-qa/scripts/evidence-evaluate.mjs +521 -0
- package/skills/visual-qa/scripts/evidence.mjs +271 -0
- package/skills/visual-qa/scripts/png-decode.mjs +146 -0
- package/skills/visual-qa/scripts/png.mjs +154 -0
- package/skills/visual-qa/scripts/review.mjs +188 -0
- package/skills/visual-qa/scripts/stdin-json.mjs +16 -0
- package/skills/visual-qa/scripts/strict-json.mjs +102 -0
- package/skills/visual-qa/scripts/tui.mjs +149 -0
- package/skills/visual-qa/scripts/visual-qa.mjs +90 -0
- package/skills/wikify/LICENSE +21 -0
- package/skills/wikify/PROVENANCE.md +18 -0
- package/skills/wikify/SKILL.md +176 -0
- package/skills/wikify/assets/home-template.md +44 -0
- package/skills/wikify/assets/maintenance-report-template.md +46 -0
- package/skills/wikify/assets/paper-source-note-template.md +137 -0
- package/skills/wikify/assets/source-note-template.md +45 -0
- package/skills/wikify/assets/wiki-rules-template.md +117 -0
- package/skills/wikify/modes/ingest.md +57 -0
- package/skills/wikify/modes/init.md +44 -0
- package/skills/wikify/modes/lint.md +60 -0
- package/skills/wikify/modes/query.md +38 -0
- package/skills/wikify/modes/save.md +45 -0
- package/skills/wikify/references-upstream-contract.md +758 -0
- package/skills/workflow-loop/SKILL.md +387 -0
- package/tools/check-pack-payload.mjs +410 -0
- package/tools/check-payload-substance.mjs +738 -0
- package/tools/check-version-lockstep.mjs +238 -0
- package/tools/gen-canonical-frontend-manifest.mjs +66 -0
- package/tools/gen-managed-skill-manifest.mjs +135 -0
- package/tools/harness-speed-local.mjs +261 -0
- package/tools/payload-reference-exemptions.json +49 -0
- package/tools/payload-substance-allowlist.json +46 -0
- package/tools/payload-substance-parity.json +571 -0
- package/tools/qa-real-surface-fixtures.mjs +428 -0
- package/tools/qa-real-surface-harness.mjs +173 -0
- package/tools/run-behavior-replacement-probes.mjs +296 -0
- package/tools/run-build.mjs +101 -0
- package/tools/run-harness-speed-local.mjs +52 -0
- package/tools/run-harness-speed-v2.mjs +36 -0
- package/tools/run-installed-resource-tamper-probe.mjs +62 -0
- package/tools/run-negative-gate-matrix.mjs +516 -0
- package/tools/run-rules-glob-differential.mjs +232 -0
- package/tools/run-typecheck.mjs +25 -0
- package/tools/run-uiux-visual-qa-scenarios.mjs +234 -0
- package/tools/run-wikify-surface-probe.mjs +170 -0
- package/tools/scan-legacy-tokens.mjs +431 -0
- package/tools/version-manifests.json +60 -0
- package/tsconfig.build.json +12 -0
- package/tsconfig.json +13 -0
- package/vendor/NOTICE.md +21 -0
- package/vendor/handoff/SKILL.md +199 -0
- package/vendor/handoff/evals/evals.json +154 -0
- package/vendor/handoff/examples/HANDOFF-example-generic-auth-refactor.md +97 -0
- package/vendor/handoff/templates/HANDOFF.md +121 -0
- package/vendor/licenses/022_handoff-MIT.txt +21 -0
- package/vendor/licenses/045_scientific-visualization-MIT.txt +21 -0
- package/vendor/provenance/022_handoff.md +19 -0
- package/vendor/provenance/045_scientific-visualization.md +36 -0
- package/vendor/scientific-visualization/SKILL.md +283 -0
- package/vendor/scientific-visualization/assets/color_palettes.py +197 -0
- package/vendor/scientific-visualization/assets/nature.mplstyle +75 -0
- package/vendor/scientific-visualization/assets/presentation.mplstyle +74 -0
- package/vendor/scientific-visualization/assets/publication.mplstyle +78 -0
- package/vendor/scientific-visualization/evals/evals.json +158 -0
- package/vendor/scientific-visualization/references/color_palettes.md +380 -0
- package/vendor/scientific-visualization/references/journal_requirements.md +359 -0
- package/vendor/scientific-visualization/references/matplotlib_examples.md +608 -0
- package/vendor/scientific-visualization/references/mdanalysis_martini_visualization.md +85 -0
- package/vendor/scientific-visualization/references/publication_guidelines.md +217 -0
- package/vendor/scientific-visualization/references/seaborn_for_publications.md +293 -0
- package/vendor/scientific-visualization/scripts/figure_export.py +238 -0
- package/vendor/scientific-visualization/scripts/style_presets.py +467 -0
- package/vendor/scientific-visualization/tests/test_figure_export.py +51 -0
- package/vendor/scientific-visualization/tests/test_style_presets.py +114 -0
package/dist/commands.js
ADDED
|
@@ -0,0 +1,600 @@
|
|
|
1
|
+
import { activationProbe } from "./activation-probe.js";
|
|
2
|
+
import { renamedSkillId, skillRenameNote } from "./skill-renames.js";
|
|
3
|
+
import { comprehendPromptInjection, debuggingPromptInjection, deepInterviewPromptInjection, gitMasterPromptInjection, lspPromptInjection, lspSetupPromptInjection, rulesPromptInjection, browserDrivePromptInjection, skillObserverPromptInjection, structuralSearchPromptInjection, litGoalPromptInjection, litCruciblePromptInjection, initDeepPromptInjection, litLoopPromptInjection, litPlanPromptInjection, litRecapPromptInjection, litHandoffPromptInjection, litResearchPromptInjection, litCodePromptInjection, refactorPromptInjection, removeAiSlopsPromptInjection, reviewWorkPromptInjection, scientificVisualizationPromptInjection, startWorkPromptInjection, litBurnoffFilePromptInjection, litFetchPromptInjection, textNaturalizationPromptInjection } from "./activation.js";
|
|
4
|
+
import { createLitGoalOperations } from "./ledger.js";
|
|
5
|
+
import { commandAliasOwnership } from "./cli/command-alias-ownership.js";
|
|
6
|
+
import { applyTrustedStartWorkDirective, parseStartWorkLifecycleDirective } from "./bounded-authority-hooks.js";
|
|
7
|
+
import { formatResolvedPlanNotice, formatSavedPlanNotice, parsePlanSaveArgument, persistApprovedPlan, resolveLatestDurablePlan } from "./durable-plan.js";
|
|
8
|
+
import { isWorkflowFamilyMode, workflowFamilyCommandDefinitions } from "./workflow-families.js";
|
|
9
|
+
import { captureKnowledgeEvent, inspectKnowledge, queryKnowledge, recoverKnowledge, reviewKnowledgeRecord } from "./knowledge.js";
|
|
10
|
+
export { litActivationBanner, startWorkPromptInjection } from "./activation.js";
|
|
11
|
+
export const litOpenCodeCommands = Object.freeze([
|
|
12
|
+
...workflowFamilyCommandDefinitions,
|
|
13
|
+
{
|
|
14
|
+
id: "lit-burnoff-file",
|
|
15
|
+
slash: "/lit-burnoff-file",
|
|
16
|
+
title: "LitOpenCode Lit Burnoff File",
|
|
17
|
+
description: "Clean the single named file against its current diff while preserving behavior.",
|
|
18
|
+
banner: activationProbe("lit-burnoff-file"),
|
|
19
|
+
activationText: litBurnoffFilePromptInjection
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: "lit-fetch",
|
|
23
|
+
slash: "/lit-fetch",
|
|
24
|
+
title: "LitOpenCode Lit Fetch",
|
|
25
|
+
description: "Retrieve public sources through the guarded fetch runtime with evidence and access verdicts.",
|
|
26
|
+
banner: activationProbe("lit-fetch"),
|
|
27
|
+
activationText: litFetchPromptInjection
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "lit",
|
|
31
|
+
slash: "/lit",
|
|
32
|
+
title: "LitOpenCode",
|
|
33
|
+
description: "Activate the LitOpenCode model probe line and durable goal loop.",
|
|
34
|
+
banner: activationProbe("lit"),
|
|
35
|
+
activationText: litLoopPromptInjection
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "lit-loop",
|
|
39
|
+
slash: "/lit-loop",
|
|
40
|
+
title: "LitOpenCode Lit Loop",
|
|
41
|
+
description: "Activate the full LitOpenCode durable lit-loop prompt.",
|
|
42
|
+
banner: activationProbe("lit-loop"),
|
|
43
|
+
activationText: litLoopPromptInjection
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: "litwork",
|
|
47
|
+
slash: "/litwork",
|
|
48
|
+
title: "LitOpenCode Work Loop",
|
|
49
|
+
description: "Resume a LitOpenCode work loop with durable ledger-backed progress.",
|
|
50
|
+
banner: activationProbe("litwork"),
|
|
51
|
+
activationText: litLoopPromptInjection
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: "lit-work",
|
|
55
|
+
slash: "/lit-work",
|
|
56
|
+
title: "LitOpenCode Work Loop",
|
|
57
|
+
description: "Hyphenated alias for /litwork.",
|
|
58
|
+
banner: activationProbe("lit-work"),
|
|
59
|
+
activationText: litLoopPromptInjection
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "start-work",
|
|
63
|
+
slash: "/start-work",
|
|
64
|
+
title: "LitOpenCode Start Work",
|
|
65
|
+
description: "Start or resume a plan-backed implementation loop with evidence checkpoints.",
|
|
66
|
+
banner: activationProbe("start-work"),
|
|
67
|
+
activationText: startWorkPromptInjection,
|
|
68
|
+
agent: "lit-implement"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: "review-work",
|
|
72
|
+
slash: "/review-work",
|
|
73
|
+
title: "LitOpenCode Review Work",
|
|
74
|
+
description: "Review a draft plan for objective achievability or completed work across five evidence lanes.",
|
|
75
|
+
banner: activationProbe("review-work"),
|
|
76
|
+
activationText: reviewWorkPromptInjection
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: "lit-plan",
|
|
80
|
+
slash: "/lit-plan",
|
|
81
|
+
title: "LitOpenCode Plan",
|
|
82
|
+
description: "Create a proportionate objective-achievable checklist before confirmed execution.",
|
|
83
|
+
banner: activationProbe("lit-plan"),
|
|
84
|
+
activationText: litPlanPromptInjection
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "litgoal",
|
|
88
|
+
slash: "/litgoal",
|
|
89
|
+
title: "LitOpenCode Goal",
|
|
90
|
+
description: "Bind a durable LitOpenCode goal before execution.",
|
|
91
|
+
banner: activationProbe("litgoal"),
|
|
92
|
+
activationText: litGoalPromptInjection
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "lit-goal",
|
|
96
|
+
slash: "/lit-goal",
|
|
97
|
+
title: "LitOpenCode Goal",
|
|
98
|
+
description: "Hyphenated alias for /litgoal.",
|
|
99
|
+
banner: activationProbe("lit-goal"),
|
|
100
|
+
activationText: litGoalPromptInjection
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: "litresearch",
|
|
104
|
+
slash: "/litresearch",
|
|
105
|
+
title: "LitOpenCode Research",
|
|
106
|
+
description: "Run a LitOpenCode research loop with evidence-backed findings.",
|
|
107
|
+
banner: activationProbe("litresearch"),
|
|
108
|
+
activationText: litResearchPromptInjection,
|
|
109
|
+
agent: "lit-loop"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: "lit-research",
|
|
113
|
+
slash: "/lit-research",
|
|
114
|
+
title: "LitOpenCode Research",
|
|
115
|
+
description: "Hyphenated alias for /litresearch.",
|
|
116
|
+
banner: activationProbe("lit-research"),
|
|
117
|
+
activationText: litResearchPromptInjection,
|
|
118
|
+
agent: "lit-loop"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: "lit-init",
|
|
122
|
+
slash: "/lit-init",
|
|
123
|
+
title: "LitOpenCode Lit Init",
|
|
124
|
+
description: "Create or refresh a sparse AGENTS.md knowledge hierarchy with evidence-backed directory guidance.",
|
|
125
|
+
banner: activationProbe("lit-init"),
|
|
126
|
+
activationText: initDeepPromptInjection
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
id: "lit-crucible",
|
|
130
|
+
slash: "/lit-crucible",
|
|
131
|
+
title: "LitOpenCode Lit Crucible",
|
|
132
|
+
description: "Run planning-only adversarial planning before implementation and hand surviving insights to lit-plan.",
|
|
133
|
+
banner: activationProbe("lit-crucible"),
|
|
134
|
+
activationText: litCruciblePromptInjection,
|
|
135
|
+
agent: "lit-plan"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: "refactor",
|
|
139
|
+
slash: "/refactor",
|
|
140
|
+
title: "LitOpenCode Refactor",
|
|
141
|
+
description: "Restructure code without changing behavior, pinned by before/after evidence and a named rollback boundary.",
|
|
142
|
+
banner: activationProbe("refactor"),
|
|
143
|
+
activationText: refactorPromptInjection
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: "lit-burnoff",
|
|
147
|
+
slash: "/lit-burnoff",
|
|
148
|
+
title: "LitOpenCode Lit Burnoff",
|
|
149
|
+
description: "Remove machine-written artifacts from text or code while preserving facts, APIs, tests, and accessibility behavior.",
|
|
150
|
+
banner: activationProbe("lit-burnoff"),
|
|
151
|
+
activationText: removeAiSlopsPromptInjection
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: "lit-code",
|
|
155
|
+
slash: "/lit-code",
|
|
156
|
+
title: "LitOpenCode Lit Code",
|
|
157
|
+
description: "Apply minimum-first implementation discipline with paired verification and a cleanup receipt.",
|
|
158
|
+
banner: activationProbe("lit-code"),
|
|
159
|
+
activationText: litCodePromptInjection
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: "debugging",
|
|
163
|
+
slash: "/debugging",
|
|
164
|
+
title: "LitOpenCode Debugging",
|
|
165
|
+
description: "Reproduce the failure, prove the mechanism, and only then write the fix with before/after evidence.",
|
|
166
|
+
banner: activationProbe("debugging"),
|
|
167
|
+
activationText: debuggingPromptInjection
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
id: "lit-commit",
|
|
171
|
+
slash: "/lit-commit",
|
|
172
|
+
title: "LitOpenCode Lit Commit",
|
|
173
|
+
description: "Inspect git state before mutating it and keep commit, push, tag, reset, and history rewrites behind explicit authorization.",
|
|
174
|
+
banner: activationProbe("lit-commit"),
|
|
175
|
+
activationText: gitMasterPromptInjection
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: "lsp",
|
|
179
|
+
slash: "/lsp",
|
|
180
|
+
title: "LitOpenCode LSP",
|
|
181
|
+
description: "Use the host language server for diagnostics, definitions, references, and rename blast radius; this package bundles none.",
|
|
182
|
+
banner: activationProbe("lsp"),
|
|
183
|
+
activationText: lspPromptInjection
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
id: "lsp-setup",
|
|
187
|
+
slash: "/lsp-setup",
|
|
188
|
+
title: "LitOpenCode LSP Setup",
|
|
189
|
+
description: "Handle the file type with no configured language server: name the gap, offer the config, and fall back to real compiler or test evidence.",
|
|
190
|
+
banner: activationProbe("lsp-setup"),
|
|
191
|
+
activationText: lspSetupPromptInjection
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "rules",
|
|
195
|
+
slash: "/rules",
|
|
196
|
+
title: "LitOpenCode Rules",
|
|
197
|
+
description: "Inspect the shipped two-lane repository rules engine, apply its scoped guidance, and report which rules actually applied.",
|
|
198
|
+
banner: activationProbe("rules"),
|
|
199
|
+
activationText: rulesPromptInjection
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
id: "deep-interview",
|
|
203
|
+
slash: "/deep-interview",
|
|
204
|
+
title: "LitOpenCode Deep Interview",
|
|
205
|
+
description: "Turn a broad or underspecified request into a decision-complete brief before lit-plan starts.",
|
|
206
|
+
banner: activationProbe("deep-interview"),
|
|
207
|
+
activationText: deepInterviewPromptInjection,
|
|
208
|
+
agent: "lit-plan"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: "skill-observer",
|
|
212
|
+
slash: "/skill-observer",
|
|
213
|
+
title: "LitOpenCode Skill Observer",
|
|
214
|
+
description: "Observe reusable corrections and route them into the approval-gated skill-loop; review remains pending until an explicit foreground apply command.",
|
|
215
|
+
banner: activationProbe("skill-observer"),
|
|
216
|
+
activationText: skillObserverPromptInjection
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: "browser-drive",
|
|
220
|
+
slash: "/browser-drive",
|
|
221
|
+
title: "LitOpenCode Browser Drive",
|
|
222
|
+
description: "Drive a real page through an external driver behind a verified identity probe, three named blockers, and a snapshot-then-act loop.",
|
|
223
|
+
banner: activationProbe("browser-drive"),
|
|
224
|
+
activationText: browserDrivePromptInjection
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: "structural-search",
|
|
228
|
+
slash: "/structural-search",
|
|
229
|
+
title: "LitOpenCode Structural Search",
|
|
230
|
+
description: "Search or rewrite source by syntax shape behind a verified engine probe, a labeled textual fallback, and a bounded rewrite boundary.",
|
|
231
|
+
banner: activationProbe("structural-search"),
|
|
232
|
+
activationText: structuralSearchPromptInjection
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: "lit-recap",
|
|
236
|
+
slash: "/lit-recap",
|
|
237
|
+
title: "LitOpenCode Recap",
|
|
238
|
+
description: "Read-only Korean work recap from durable ledger and session context (--brief, --en supported).",
|
|
239
|
+
banner: activationProbe("lit-recap"),
|
|
240
|
+
activationText: litRecapPromptInjection,
|
|
241
|
+
readOnly: true
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
id: "lit-comprehend",
|
|
245
|
+
slash: "/lit-comprehend",
|
|
246
|
+
title: "LitOpenCode Comprehend",
|
|
247
|
+
description: "Build a self-contained explainer artifact so the user can reason about work that was already done.",
|
|
248
|
+
banner: activationProbe("lit-comprehend"),
|
|
249
|
+
activationText: comprehendPromptInjection
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: "lit-handoff",
|
|
253
|
+
slash: "/lit-handoff",
|
|
254
|
+
title: "LitOpenCode Handoff",
|
|
255
|
+
description: "Create or update a resumable project handoff from the complete embedded contract and live evidence.",
|
|
256
|
+
banner: activationProbe("lit-handoff"),
|
|
257
|
+
activationText: litHandoffPromptInjection
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: "lit-scientific-visualization",
|
|
261
|
+
slash: "/lit-scientific-visualization",
|
|
262
|
+
title: "LitOpenCode Scientific Visualization",
|
|
263
|
+
description: "Create publication-ready figures from the complete embedded scientific-visualization corpus.",
|
|
264
|
+
banner: activationProbe("lit-scientific-visualization"),
|
|
265
|
+
activationText: scientificVisualizationPromptInjection
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
id: "lit-korean",
|
|
269
|
+
slash: "/lit-korean",
|
|
270
|
+
title: "LitOpenCode Lit Korean",
|
|
271
|
+
description: "Review Korean prose for natural phrasing while reducing overwrought or AI-like phrasing and preserving meaning and author voice.",
|
|
272
|
+
banner: activationProbe("lit-korean"),
|
|
273
|
+
activationText: textNaturalizationPromptInjection
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
id: "text-neutralization",
|
|
277
|
+
slash: "/text-neutralization",
|
|
278
|
+
title: "LitOpenCode Text Neutralization",
|
|
279
|
+
description: "Review Korean prose to reduce overwrought or AI-like phrasing while preserving meaning and author voice.",
|
|
280
|
+
banner: activationProbe("text-neutralization"),
|
|
281
|
+
activationText: textNaturalizationPromptInjection
|
|
282
|
+
}
|
|
283
|
+
]);
|
|
284
|
+
export function findLitOpenCodeCommand(input) {
|
|
285
|
+
const normalized = input.trim().replace(/^\//, "").toLowerCase();
|
|
286
|
+
const renamed = renamedSkillId(normalized);
|
|
287
|
+
const command = litOpenCodeCommands.find((candidate) => candidate.id === (renamed ?? normalized));
|
|
288
|
+
return command === undefined || renamed === undefined
|
|
289
|
+
? command
|
|
290
|
+
: { ...command, activationText: `${skillRenameNote(renamed)}\n${command.activationText}` };
|
|
291
|
+
}
|
|
292
|
+
function summarizeCommandArguments(value) {
|
|
293
|
+
if (typeof value !== "string" || value.length === 0) {
|
|
294
|
+
return { present: false, redacted: false, length: 0 };
|
|
295
|
+
}
|
|
296
|
+
return { present: true, redacted: true, length: value.length };
|
|
297
|
+
}
|
|
298
|
+
function commandMode(command) {
|
|
299
|
+
if (isWorkflowFamilyMode(command.id))
|
|
300
|
+
return command.id;
|
|
301
|
+
if (command.id === "lit-plan")
|
|
302
|
+
return "lit-plan";
|
|
303
|
+
if (command.id === "start-work")
|
|
304
|
+
return "start-work";
|
|
305
|
+
if (command.id === "lit-recap")
|
|
306
|
+
return "lit-recap";
|
|
307
|
+
if (command.id === "lit-comprehend")
|
|
308
|
+
return "lit-comprehend";
|
|
309
|
+
if (command.id === "lit-handoff")
|
|
310
|
+
return "lit-handoff";
|
|
311
|
+
if (command.id === "lit-scientific-visualization")
|
|
312
|
+
return "lit-scientific-visualization";
|
|
313
|
+
if (command.id === "lit-burnoff-file" || command.id === "lit-fetch" || command.id === "lit-korean")
|
|
314
|
+
return command.id;
|
|
315
|
+
if (command.id === "lit-init")
|
|
316
|
+
return "lit-init";
|
|
317
|
+
if (command.id === "lit-crucible")
|
|
318
|
+
return "lit-crucible";
|
|
319
|
+
if (command.id === "refactor")
|
|
320
|
+
return "refactor";
|
|
321
|
+
if (command.id === "lit-burnoff")
|
|
322
|
+
return "lit-burnoff";
|
|
323
|
+
if (command.id === "lit-code")
|
|
324
|
+
return "lit-code";
|
|
325
|
+
if (command.id === "debugging")
|
|
326
|
+
return "debugging";
|
|
327
|
+
if (command.id === "lit-commit")
|
|
328
|
+
return "lit-commit";
|
|
329
|
+
if (command.id === "lsp")
|
|
330
|
+
return "lsp";
|
|
331
|
+
if (command.id === "lsp-setup")
|
|
332
|
+
return "lsp-setup";
|
|
333
|
+
if (command.id === "rules")
|
|
334
|
+
return "rules";
|
|
335
|
+
if (command.id === "deep-interview")
|
|
336
|
+
return "deep-interview";
|
|
337
|
+
if (command.id === "structural-search")
|
|
338
|
+
return "structural-search";
|
|
339
|
+
if (command.id === "browser-drive")
|
|
340
|
+
return "browser-drive";
|
|
341
|
+
if (command.id === "skill-observer")
|
|
342
|
+
return "skill-observer";
|
|
343
|
+
if (command.id === "litresearch" || command.id === "lit-research")
|
|
344
|
+
return "lit-research";
|
|
345
|
+
return "lit-loop";
|
|
346
|
+
}
|
|
347
|
+
async function applyWikifyKnowledgeCommand(projectRoot, input, output, command, captureEnabled) {
|
|
348
|
+
if (!command.id.startsWith("wikify-"))
|
|
349
|
+
return;
|
|
350
|
+
const mode = command.id.slice("wikify-".length);
|
|
351
|
+
let text;
|
|
352
|
+
let receipt;
|
|
353
|
+
try {
|
|
354
|
+
if (mode === "init") {
|
|
355
|
+
const status = await inspectKnowledge(projectRoot);
|
|
356
|
+
text = `Wikify knowledge authority: ${status.path}. claims: ${Object.values(status.counts).reduce((sum, count) => sum + count, 0)}.`;
|
|
357
|
+
receipt = { action: mode, status: "ready", authority: status.authority };
|
|
358
|
+
}
|
|
359
|
+
else if (mode === "ingest") {
|
|
360
|
+
let event;
|
|
361
|
+
try {
|
|
362
|
+
event = JSON.parse(input.arguments);
|
|
363
|
+
}
|
|
364
|
+
catch {
|
|
365
|
+
event = undefined;
|
|
366
|
+
}
|
|
367
|
+
const result = await captureKnowledgeEvent(projectRoot, event, {
|
|
368
|
+
surface: "command.execute.before",
|
|
369
|
+
captureEnabled
|
|
370
|
+
});
|
|
371
|
+
if (result.status === "disabled") {
|
|
372
|
+
text = "Wikify knowledge capture is disabled by .litopencode/config.json.";
|
|
373
|
+
receipt = { action: mode, status: result.status, disabled: true };
|
|
374
|
+
}
|
|
375
|
+
else if (result.status === "rejected") {
|
|
376
|
+
text = `BLOCKED: structured Wikify event rejected (${result.reason}).`;
|
|
377
|
+
receipt = { action: mode, status: result.status, blocked: true, reason: result.reason };
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
text = `${result.record.id}: ${result.record.state}. Explicit save or review is required for acceptance.`;
|
|
381
|
+
receipt = { action: mode, status: result.status, id: result.record.id, state: result.record.state };
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
else if (mode === "save") {
|
|
385
|
+
const result = await reviewKnowledgeRecord(projectRoot, {
|
|
386
|
+
id: input.arguments.trim(),
|
|
387
|
+
state: "accepted",
|
|
388
|
+
surface: "command.wikify.save"
|
|
389
|
+
});
|
|
390
|
+
if (result.status === "blocked") {
|
|
391
|
+
text = `BLOCKED: knowledge save rejected (${result.reason}).`;
|
|
392
|
+
receipt = { action: mode, status: result.status, blocked: true, reason: result.reason };
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
text = `${result.record.id}: accepted.`;
|
|
396
|
+
receipt = { action: mode, status: result.status, id: result.record.id, state: result.record.state };
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
else if (mode === "query") {
|
|
400
|
+
const result = await queryKnowledge(projectRoot, input.arguments);
|
|
401
|
+
text = result.text === "" ? "No accepted relevant knowledge." : result.text;
|
|
402
|
+
receipt = { action: mode, status: "complete", matchCount: result.records.length, byteLength: result.byteLength };
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
const recovery = await recoverKnowledge(projectRoot);
|
|
406
|
+
try {
|
|
407
|
+
const status = await inspectKnowledge(projectRoot);
|
|
408
|
+
text = `Wikify knowledge lint: review-needed: ${status.counts["review-needed"]}; accepted: ${status.counts.accepted}; rejected: ${status.counts.rejected}; stale: ${status.counts.stale}; snapshot recovery: ${recovery.status}.`;
|
|
409
|
+
receipt = {
|
|
410
|
+
action: mode,
|
|
411
|
+
status: recovery.status === "recovery-required" ? "recovery-required" : "complete",
|
|
412
|
+
counts: status.counts,
|
|
413
|
+
recovered: recovery.recovered,
|
|
414
|
+
recoveryRequired: recovery.recoveryRequired,
|
|
415
|
+
removed: recovery.removed,
|
|
416
|
+
preserved: recovery.preserved
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
catch (error) {
|
|
420
|
+
if (!recovery.recoveryRequired)
|
|
421
|
+
throw error;
|
|
422
|
+
text = `Wikify knowledge lint: recovery-required; safe stages removed: ${recovery.removed.join(", ") || "none"}; stages preserved for manual recovery: ${recovery.preserved.join(", ") || "none"}.`;
|
|
423
|
+
receipt = {
|
|
424
|
+
action: mode,
|
|
425
|
+
status: "recovery-required",
|
|
426
|
+
recoveryRequired: true,
|
|
427
|
+
removed: recovery.removed,
|
|
428
|
+
preserved: recovery.preserved
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
catch {
|
|
434
|
+
text = "BLOCKED: the local Wikify knowledge operation failed closed.";
|
|
435
|
+
receipt = { action: mode, status: "blocked", blocked: true, reason: "STORE_ERROR" };
|
|
436
|
+
}
|
|
437
|
+
output.parts.push({
|
|
438
|
+
id: `prt_litopencode_${command.id.replace(/-/gu, "_")}_knowledge`,
|
|
439
|
+
sessionID: input.sessionID,
|
|
440
|
+
messageID: `msg_litopencode_${command.id.replace(/-/gu, "_")}_knowledge`,
|
|
441
|
+
type: "text",
|
|
442
|
+
text,
|
|
443
|
+
synthetic: true,
|
|
444
|
+
metadata: { litopencodeKnowledge: receipt }
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
export function createCommandActivationHook(projectRoot, options = {}) {
|
|
448
|
+
const operations = createLitGoalOperations(projectRoot);
|
|
449
|
+
return async (input, output) => {
|
|
450
|
+
const command = findLitOpenCodeCommand(input.command);
|
|
451
|
+
if (!command)
|
|
452
|
+
return;
|
|
453
|
+
if (options.commandAliasRoot !== undefined &&
|
|
454
|
+
await commandAliasOwnership(options.commandAliasRoot, input.command.trim().replace(/^\//, "").toLowerCase()) === "preserved")
|
|
455
|
+
return;
|
|
456
|
+
await applyWikifyKnowledgeCommand(projectRoot, input, output, command, options.knowledgeCaptureEnabled);
|
|
457
|
+
if (command.id === "start-work") {
|
|
458
|
+
if (/^save-plan(?:\s|$)/u.test(input.arguments.trim())) {
|
|
459
|
+
const request = parsePlanSaveArgument(input.arguments);
|
|
460
|
+
if (request === undefined) {
|
|
461
|
+
output.parts.push({
|
|
462
|
+
id: "prt_litopencode_start_work_plan_save_blocked",
|
|
463
|
+
sessionID: input.sessionID,
|
|
464
|
+
messageID: "msg_litopencode_start_work_plan_save_blocked",
|
|
465
|
+
type: "text",
|
|
466
|
+
text: "BLOCKED: malformed or unapproved save-plan argument. Provide the approved plan as one bounded JSON argument.",
|
|
467
|
+
synthetic: true,
|
|
468
|
+
metadata: {
|
|
469
|
+
litopencode: {
|
|
470
|
+
command: command.id,
|
|
471
|
+
operation: "save-plan",
|
|
472
|
+
authorityGranted: false,
|
|
473
|
+
blocked: true
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
try {
|
|
480
|
+
const saved = await persistApprovedPlan(projectRoot, request);
|
|
481
|
+
const replayed = saved.replayed === true;
|
|
482
|
+
output.parts.push({
|
|
483
|
+
id: "prt_litopencode_start_work_plan_saved",
|
|
484
|
+
sessionID: input.sessionID,
|
|
485
|
+
messageID: "msg_litopencode_start_work_plan_saved",
|
|
486
|
+
type: "text",
|
|
487
|
+
text: formatSavedPlanNotice(saved, replayed),
|
|
488
|
+
synthetic: true,
|
|
489
|
+
metadata: {
|
|
490
|
+
litopencode: {
|
|
491
|
+
command: command.id,
|
|
492
|
+
operation: "save-plan",
|
|
493
|
+
authorityGranted: false,
|
|
494
|
+
replayed
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
catch {
|
|
500
|
+
output.parts.push({
|
|
501
|
+
id: "prt_litopencode_start_work_plan_save_blocked",
|
|
502
|
+
sessionID: input.sessionID,
|
|
503
|
+
messageID: "msg_litopencode_start_work_plan_save_blocked",
|
|
504
|
+
type: "text",
|
|
505
|
+
text: "BLOCKED: the approved plan was not saved because the request is stale, repeated with different content, or conflicts with existing state.",
|
|
506
|
+
synthetic: true,
|
|
507
|
+
metadata: {
|
|
508
|
+
litopencode: {
|
|
509
|
+
command: command.id,
|
|
510
|
+
operation: "save-plan",
|
|
511
|
+
authorityGranted: false,
|
|
512
|
+
blocked: true
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
const directive = parseStartWorkLifecycleDirective(input.arguments);
|
|
520
|
+
const lifecycleIntent = /^(?:resume(?:$|\s)|(?:init|cancel|complete|status)(?:$|\s+\{))/u.test(input.arguments.trim());
|
|
521
|
+
if (directive === undefined && lifecycleIntent) {
|
|
522
|
+
output.parts.push({
|
|
523
|
+
id: "prt_litopencode_start_work_lifecycle_blocked",
|
|
524
|
+
sessionID: input.sessionID,
|
|
525
|
+
messageID: "msg_litopencode_start_work_lifecycle_blocked",
|
|
526
|
+
type: "text",
|
|
527
|
+
text: "BLOCKED: malformed schema-3 start-work lifecycle directive. Use an exact supported action and bounded JSON object.",
|
|
528
|
+
synthetic: true,
|
|
529
|
+
metadata: {
|
|
530
|
+
litopencode: {
|
|
531
|
+
command: command.id,
|
|
532
|
+
mode: "bounded-authority-lifecycle",
|
|
533
|
+
blocked: true
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
if (directive !== undefined) {
|
|
540
|
+
let lifecycleText;
|
|
541
|
+
try {
|
|
542
|
+
lifecycleText = (await applyTrustedStartWorkDirective(projectRoot, input.sessionID, directive, options.boundedAuthority)).text;
|
|
543
|
+
}
|
|
544
|
+
catch {
|
|
545
|
+
lifecycleText = `BLOCKED: bounded-authority lifecycle ${directive.action} rejected. Check the exact work id, session, CAS revision, canonical plan/worktree, and matching boundary grant.`;
|
|
546
|
+
}
|
|
547
|
+
output.parts.push({
|
|
548
|
+
id: `prt_litopencode_start_work_lifecycle_${directive.action}`,
|
|
549
|
+
sessionID: input.sessionID,
|
|
550
|
+
messageID: `msg_litopencode_start_work_lifecycle_${directive.action}`,
|
|
551
|
+
type: "text",
|
|
552
|
+
text: lifecycleText,
|
|
553
|
+
synthetic: true,
|
|
554
|
+
metadata: {
|
|
555
|
+
litopencode: {
|
|
556
|
+
command: command.id,
|
|
557
|
+
mode: "bounded-authority-lifecycle",
|
|
558
|
+
action: directive.action
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
if (!command.readOnly) {
|
|
565
|
+
await operations.append({
|
|
566
|
+
type: "command.activated",
|
|
567
|
+
command: command.id,
|
|
568
|
+
arguments: summarizeCommandArguments(input.arguments),
|
|
569
|
+
sessionID: input.sessionID,
|
|
570
|
+
timestamp: new Date().toISOString()
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
let activationText = command.activationText;
|
|
574
|
+
if (command.id === "start-work") {
|
|
575
|
+
const durablePlan = await resolveLatestDurablePlan(projectRoot);
|
|
576
|
+
if (durablePlan !== undefined) {
|
|
577
|
+
activationText = `${command.activationText}\n\n${formatResolvedPlanNotice(durablePlan)}`;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
output.parts.push({
|
|
581
|
+
id: `prt_litopencode_${command.id.replace(/-/g, "_")}_activation`,
|
|
582
|
+
sessionID: input.sessionID,
|
|
583
|
+
messageID: `msg_litopencode_${command.id.replace(/-/g, "_")}_activation`,
|
|
584
|
+
type: "text",
|
|
585
|
+
text: activationText,
|
|
586
|
+
synthetic: true,
|
|
587
|
+
metadata: {
|
|
588
|
+
litopencode: {
|
|
589
|
+
command: command.id,
|
|
590
|
+
banner: command.banner,
|
|
591
|
+
mode: commandMode(command)
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
await options.onSkillActivation?.(input.sessionID, command.id);
|
|
596
|
+
if (command.id === "lit-scientific-visualization") {
|
|
597
|
+
options.onScientificVisualizationActivation?.(input.sessionID);
|
|
598
|
+
}
|
|
599
|
+
};
|
|
600
|
+
}
|