lanternspec 0.2.9__tar.gz → 0.2.10__tar.gz
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.
- {lanternspec-0.2.9/src/lanternspec.egg-info → lanternspec-0.2.10}/PKG-INFO +28 -6
- {lanternspec-0.2.9 → lanternspec-0.2.10}/README.md +27 -5
- {lanternspec-0.2.9 → lanternspec-0.2.10}/pyproject.toml +1 -1
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/check/githooks.py +33 -8
- lanternspec-0.2.10/src/lanternspec/check/pr_check.py +63 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/check.py +20 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/core.py +10 -1
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/tools.py +18 -1
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/work.py +20 -3
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/new_id.py +3 -3
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/profile.py +11 -1
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/taskfile.py +36 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/agents/AGENTS.md +1 -0
- lanternspec-0.2.10/src/lanternspec/resources/locales/en/git/gitmessage.txt +15 -0
- lanternspec-0.2.10/src/lanternspec/resources/locales/en/github/pull_request_template.md +14 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md +50 -6
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md +34 -4
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md +3 -2
- lanternspec-0.2.10/src/lanternspec/resources/locales/en/skills/l-pr/SKILL.md +81 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/agents/AGENTS.md +1 -0
- lanternspec-0.2.10/src/lanternspec/resources/locales/ko/git/gitmessage.txt +15 -0
- lanternspec-0.2.10/src/lanternspec/resources/locales/ko/github/pull_request_template.md +14 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-build/SKILL.md +50 -6
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md +34 -4
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-plan/SKILL.md +3 -2
- lanternspec-0.2.10/src/lanternspec/resources/locales/ko/skills/l-pr/SKILL.md +81 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/messages.yaml +47 -4
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/antigravity.py +2 -2
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/claude.py +3 -3
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/codex.py +2 -2
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/install.py +67 -4
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/skills.py +3 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/branches.py +318 -38
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/scaffold.py +9 -1
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/tasks.py +44 -4
- {lanternspec-0.2.9 → lanternspec-0.2.10/src/lanternspec.egg-info}/PKG-INFO +28 -6
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec.egg-info/SOURCES.txt +7 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_core.py +45 -1
- lanternspec-0.2.10/tests/test_git.py +683 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_install_and_aux.py +10 -2
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_work_line.py +15 -0
- lanternspec-0.2.9/tests/test_git.py +0 -251
- {lanternspec-0.2.9 → lanternspec-0.2.10}/LICENSE +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/setup.cfg +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/__main__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/check/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/check/budget.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/check/check_docs.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/check/doctor.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/check/layout.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/check/legacy.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/check/templates.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/color.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/common.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/learn.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/refs.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/cli/report.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/enums.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/frontmatter.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/links.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/messages.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/meta.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/names.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/outline.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/principles.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/project.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/sections.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/state.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/core/templating.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/learn/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/learn/debt.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/drafts.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/mcp_server.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/notion.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/obsidian.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/refs/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/refs/convert.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/refs/domain.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/refs/index.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/refs/rules.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/refs/sources.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/refs/terms.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/doc_map.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/evaluate.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/harness.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/obsidian.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/principles_doc.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/resume.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/scan.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/sections_doc.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/status.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/report/views.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/go.yaml +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/python.yaml +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/rust.yaml +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/swift.yaml +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/typescript.yaml +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-domain/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-ref/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-ref/domain.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-ref/rules.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-ref/terms.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/ADR.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/API.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Architecture.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Collaboration Rules.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Competency Card.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Data.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Debt Card.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Deployment.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Design.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Docs MOC.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Feature List.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Glossary.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Idea.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Known Tech.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Legacy Map.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Log.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Meeting Notes.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Plan.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Platform Integration.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Project Definition.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Screens.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Server Operations.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Session Log.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Tasks.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/_meta/enums.yaml +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-domain/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-ref/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-ref/domain.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-ref/rules.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-ref/terms.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-task/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates/ADR.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates/API.md +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates/_meta/enums.yaml +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//352/260/234/353/260/234/353/254/270/354/204/234 MOC.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/212/245 /353/252/251/353/241/235.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//352/270/260/354/241/264 /353/254/270/354/204/234 /354/247/200/353/217/204.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//353/215/260/354/235/264/355/204/260.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//353/260/260/355/217/254.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//353/266/200/354/261/204 /354/271/264/353/223/234.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/204/234/353/262/204 /353/260/260/355/217/254 /302/267 /354/232/264/354/230/201.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/204/270/354/205/230 /352/270/260/353/241/235.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/213/234/354/212/244/355/205/234 /352/265/254/354/241/260.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/225/204/353/212/224 /352/270/260/354/210/240.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/227/255/353/237/211 /354/271/264/353/223/234.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/232/251/354/226/264/354/247/221.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/236/221/354/227/205 /353/202/230/353/210/204/352/270/260 /352/270/260/354/244/200.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//355/224/204/353/241/234/354/240/235/355/212/270 /354/240/225/354/235/230/354/204/234.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//355/224/214/353/236/253/355/217/274 /354/227/260/353/217/231.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//355/230/221/354/227/205 /352/267/234/354/271/231.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//355/231/224/353/251/264.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//355/232/214/354/235/230/353/241/235.md" +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/names.yaml +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/obsidian/lantern-timeline/main.js +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/obsidian/lantern-timeline/manifest.json +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/obsidian/lantern-timeline/styles.css +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/principles.yaml +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/agent_hooks.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/base.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/close.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/docs_mode.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/health.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/parts.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/rules.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/runlog.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/tools/sessions.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/__init__.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/dbml.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/epic_rules.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/ideas.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/pack.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/progress.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/screen.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/work/stages.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec.egg-info/dependency_links.txt +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec.egg-info/entry_points.txt +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec.egg-info/requires.txt +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec.egg-info/top_level.txt +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_budget.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_checks.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_color.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_english.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_enums_single_source.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_later_features.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_layout.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_learning_line.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_messages.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_name_overlap.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_names.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_obsidian.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_part_delivery.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_parts.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_principles.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_principles_data.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_refs.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_release_script.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_resume.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_skill_commands.py +0 -0
- {lanternspec-0.2.9 → lanternspec-0.2.10}/tests/test_tool_health.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lanternspec
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.10
|
|
4
4
|
Summary: Spec-driven development for agentic software engineering
|
|
5
5
|
Author: Jihyeok Jeong
|
|
6
6
|
License-Expression: MIT
|
|
@@ -76,6 +76,7 @@ Then call `/l-init` inside your AI tool (`$l-init` in Codex).
|
|
|
76
76
|
/l-design W-001 how — only the structure, screens and data that change; a person approves
|
|
77
77
|
/l-task W-001 an ordered task list
|
|
78
78
|
/l-build W-001 implement → test → one commit per task, report with evidence → merge into the current state
|
|
79
|
+
/l-pr open a pull request that fits the branch flow (if you use PRs)
|
|
79
80
|
/l-report kanban · timeline · debt · a three-line status report
|
|
80
81
|
```
|
|
81
82
|
|
|
@@ -111,7 +112,7 @@ flowchart LR
|
|
|
111
112
|
|
|
112
113
|
| Skill | What it does | What it leaves |
|
|
113
114
|
|---|---|---|
|
|
114
|
-
| `/l-init` | sets up the document structure and design principles from 7 questions (new or existing · team size · screens · server · knowledge base · design tool · project kind) | `lantern.yaml`, `docs/`, project definition, MOC, design principles |
|
|
115
|
+
| `/l-init` | sets up the document structure and design principles from 7 questions (new or existing · team size · screens · server · knowledge base · design tool · project kind), and picks the branch flow | `lantern.yaml`, `docs/`, project definition, MOC, design principles |
|
|
115
116
|
| `/l-idea` | records a thought from the conversation, as said and as summarised | `1. Ideas/IDEA-001 …` |
|
|
116
117
|
| `/l-plan` | what and why — a work folder and acceptance criteria | `2. Work/W-001 …/Plan.md` |
|
|
117
118
|
| `/l-design` | how — only the structure, screens and data (DBML) that change, behind an approval gate | `Design.md`, `Screens/`, ADR |
|
|
@@ -127,6 +128,7 @@ flowchart LR
|
|
|
127
128
|
| `/l-resume` | carries on an earlier conversation — from any AI tool, from where it stopped even if it was cut off | — |
|
|
128
129
|
| `/l-ref` | brings in company rules, glossaries and domain knowledge, indexes them by section and gets each section's use approved | the index, company rules in `AGENTS.md`, `Glossary.md` |
|
|
129
130
|
| `/l-domain` | when domain rules matter, finds the matching section in the index and reads just that section word for word | (the plan's "Domain Knowledge Used") |
|
|
131
|
+
| `/l-pr` | writes the title and body for the direction that fits the branch flow, and opens the PR once confirmed (never merges) | — |
|
|
130
132
|
|
|
131
133
|
### How it works
|
|
132
134
|
- **Scripts handle the format, the AI writes the content.** Numbering, files, folders, checks and status changes all go through the `lantern` command; the AI only writes content.
|
|
@@ -177,6 +179,24 @@ lantern obsidian plugins # downloads the latest official release files of bo
|
|
|
177
179
|
|
|
178
180
|
When Obsidian first asks whether to turn on community plugins, turn them on (leave restricted mode). Plugin code and the window layout (`workspace.json`) stay out of git; only the settings are committed. Teammates run the same command.
|
|
179
181
|
|
|
182
|
+
### Branch flow
|
|
183
|
+
|
|
184
|
+
One work is one branch. `/l-init` asks how finished work gets merged, and `lantern work flow` works out the recommendation from the branches and remote.
|
|
185
|
+
|
|
186
|
+
| Flow | How it goes | Good for |
|
|
187
|
+
|---|---|---|
|
|
188
|
+
| A. Keep it simple | work → default branch | starting out, or building fast on your own |
|
|
189
|
+
| B. Separate development from deployment | work → `dev`, then a PR from `dev` to the default branch when deploying | a service that deploys as soon as the default branch changes |
|
|
190
|
+
| C. A PR for each work | work → PR → base branch | getting code reviews |
|
|
191
|
+
| D. Keep what you use now | records only where work merges; branches stay as they are | a project that already has a strategy |
|
|
192
|
+
|
|
193
|
+
Work branches are named `work/W-012` by default; change it with `git.branch` in `lantern.yaml`.
|
|
194
|
+
|
|
195
|
+
```yaml
|
|
196
|
+
git:
|
|
197
|
+
branch: feature/{id}-{slug} # → feature/W-012-login (blanks other than {id} are named for each work)
|
|
198
|
+
```
|
|
199
|
+
|
|
180
200
|
## Supported AI tools
|
|
181
201
|
|
|
182
202
|
| Tool | Skills | Rules | Agent hooks | MCP (`--mcp`) |
|
|
@@ -200,7 +220,7 @@ LanternSpec connects its checks to those hooks, so `lantern` checks at every sta
|
|
|
200
220
|
| Just before a commit | looks at what the commit contains and checks that the records that should go with it are there | warns when the database structure changed but the work log doesn't mention it |
|
|
201
221
|
| After the commit message | checks that the message says which task the commit belongs to | warns when the message has no task ID (e.g. `[W-001-T02]` = the 2nd task of work item #1) |
|
|
202
222
|
| Just before a push | checks that nothing that must stay local is being pushed | blocks pushing the documents branch you chose to keep off the remote |
|
|
203
|
-
| After pushing to GitHub | runs the same checks again on GitHub, whoever pushed (CI) | marks the run failed if document format, lint, type checks or tests break |
|
|
223
|
+
| After pushing to GitHub | runs the same checks again on GitHub, whoever pushed (CI) | marks the run failed if document format, lint, type checks or tests break; on PRs it also looks for work IDs in the title and commits |
|
|
204
224
|
| On demand | scans past commits and lists where documents and code drifted apart (`lantern scan`) | documents not reviewed for a while although their code changed |
|
|
205
225
|
|
|
206
226
|
- **Warnings by default.** Work is never blocked. To make the commit checks blocking, set `git.hooks` to `block` in `lantern.yaml`.
|
|
@@ -209,6 +229,8 @@ LanternSpec connects its checks to those hooks, so `lantern` checks at every sta
|
|
|
209
229
|
```bash
|
|
210
230
|
lantern hooks install # turns on the commit and push checks (/l-init asks before installing)
|
|
211
231
|
lantern install --ci # also checks on GitHub (turn off with --no-ci)
|
|
232
|
+
lantern install --pr-template # adds a PR template for GitHub
|
|
233
|
+
lantern install --commit-template # adds a commit message template and sets it for this clone
|
|
212
234
|
```
|
|
213
235
|
|
|
214
236
|
## References — company rules, terms and domain knowledge
|
|
@@ -281,12 +303,12 @@ Import mockups with `lantern screen import`; `lantern screen compare` finds wher
|
|
|
281
303
|
## CLI at a glance
|
|
282
304
|
|
|
283
305
|
```text
|
|
284
|
-
setup install [--language] [--tools] [--mcp] [--ci|--no-ci] · upgrade [--apply] · doctor · harness suggest
|
|
306
|
+
setup install [--language] [--tools] [--mcp] [--ci|--no-ci] [--pr-template] [--commit-template] · upgrade [--apply] · doctor · harness suggest
|
|
285
307
|
profile profile show|docs|write|set · principles show|detect · parts [add|ignore] · enums list|rename · sections list|rename|off|on
|
|
286
308
|
documents scaffold init [--plan] | work | doc | idea | adr | meeting | custom · new-id · map · meta get|set
|
|
287
|
-
checks check [--changed] [--epic W-012] · lint [--ci] · check-dbml · dbml render|from-sql|diff
|
|
309
|
+
checks check [--changed] [--epic W-012] · check-pr · lint [--ci] · check-dbml · dbml render|from-sql|diff
|
|
288
310
|
work task next [--all]|start|done|ac|list|estimate · task add [--parallel] · pack · screen import|compare
|
|
289
|
-
work branch|start|list|finish|archive|stage · design approve · unit-log add · idea find|status
|
|
311
|
+
work branch|start|list|finish|archive|stage|flow · design approve · unit-log add · idea find|status
|
|
290
312
|
learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list · mcp
|
|
291
313
|
reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] [--ci] · sync adopt · eval · obsidian plugins
|
|
292
314
|
templates template list|lint|level|bump|outdated|diff|usage|new|migrate · legacy adopt|todos
|
|
@@ -61,6 +61,7 @@ Then call `/l-init` inside your AI tool (`$l-init` in Codex).
|
|
|
61
61
|
/l-design W-001 how — only the structure, screens and data that change; a person approves
|
|
62
62
|
/l-task W-001 an ordered task list
|
|
63
63
|
/l-build W-001 implement → test → one commit per task, report with evidence → merge into the current state
|
|
64
|
+
/l-pr open a pull request that fits the branch flow (if you use PRs)
|
|
64
65
|
/l-report kanban · timeline · debt · a three-line status report
|
|
65
66
|
```
|
|
66
67
|
|
|
@@ -96,7 +97,7 @@ flowchart LR
|
|
|
96
97
|
|
|
97
98
|
| Skill | What it does | What it leaves |
|
|
98
99
|
|---|---|---|
|
|
99
|
-
| `/l-init` | sets up the document structure and design principles from 7 questions (new or existing · team size · screens · server · knowledge base · design tool · project kind) | `lantern.yaml`, `docs/`, project definition, MOC, design principles |
|
|
100
|
+
| `/l-init` | sets up the document structure and design principles from 7 questions (new or existing · team size · screens · server · knowledge base · design tool · project kind), and picks the branch flow | `lantern.yaml`, `docs/`, project definition, MOC, design principles |
|
|
100
101
|
| `/l-idea` | records a thought from the conversation, as said and as summarised | `1. Ideas/IDEA-001 …` |
|
|
101
102
|
| `/l-plan` | what and why — a work folder and acceptance criteria | `2. Work/W-001 …/Plan.md` |
|
|
102
103
|
| `/l-design` | how — only the structure, screens and data (DBML) that change, behind an approval gate | `Design.md`, `Screens/`, ADR |
|
|
@@ -112,6 +113,7 @@ flowchart LR
|
|
|
112
113
|
| `/l-resume` | carries on an earlier conversation — from any AI tool, from where it stopped even if it was cut off | — |
|
|
113
114
|
| `/l-ref` | brings in company rules, glossaries and domain knowledge, indexes them by section and gets each section's use approved | the index, company rules in `AGENTS.md`, `Glossary.md` |
|
|
114
115
|
| `/l-domain` | when domain rules matter, finds the matching section in the index and reads just that section word for word | (the plan's "Domain Knowledge Used") |
|
|
116
|
+
| `/l-pr` | writes the title and body for the direction that fits the branch flow, and opens the PR once confirmed (never merges) | — |
|
|
115
117
|
|
|
116
118
|
### How it works
|
|
117
119
|
- **Scripts handle the format, the AI writes the content.** Numbering, files, folders, checks and status changes all go through the `lantern` command; the AI only writes content.
|
|
@@ -162,6 +164,24 @@ lantern obsidian plugins # downloads the latest official release files of bo
|
|
|
162
164
|
|
|
163
165
|
When Obsidian first asks whether to turn on community plugins, turn them on (leave restricted mode). Plugin code and the window layout (`workspace.json`) stay out of git; only the settings are committed. Teammates run the same command.
|
|
164
166
|
|
|
167
|
+
### Branch flow
|
|
168
|
+
|
|
169
|
+
One work is one branch. `/l-init` asks how finished work gets merged, and `lantern work flow` works out the recommendation from the branches and remote.
|
|
170
|
+
|
|
171
|
+
| Flow | How it goes | Good for |
|
|
172
|
+
|---|---|---|
|
|
173
|
+
| A. Keep it simple | work → default branch | starting out, or building fast on your own |
|
|
174
|
+
| B. Separate development from deployment | work → `dev`, then a PR from `dev` to the default branch when deploying | a service that deploys as soon as the default branch changes |
|
|
175
|
+
| C. A PR for each work | work → PR → base branch | getting code reviews |
|
|
176
|
+
| D. Keep what you use now | records only where work merges; branches stay as they are | a project that already has a strategy |
|
|
177
|
+
|
|
178
|
+
Work branches are named `work/W-012` by default; change it with `git.branch` in `lantern.yaml`.
|
|
179
|
+
|
|
180
|
+
```yaml
|
|
181
|
+
git:
|
|
182
|
+
branch: feature/{id}-{slug} # → feature/W-012-login (blanks other than {id} are named for each work)
|
|
183
|
+
```
|
|
184
|
+
|
|
165
185
|
## Supported AI tools
|
|
166
186
|
|
|
167
187
|
| Tool | Skills | Rules | Agent hooks | MCP (`--mcp`) |
|
|
@@ -185,7 +205,7 @@ LanternSpec connects its checks to those hooks, so `lantern` checks at every sta
|
|
|
185
205
|
| Just before a commit | looks at what the commit contains and checks that the records that should go with it are there | warns when the database structure changed but the work log doesn't mention it |
|
|
186
206
|
| After the commit message | checks that the message says which task the commit belongs to | warns when the message has no task ID (e.g. `[W-001-T02]` = the 2nd task of work item #1) |
|
|
187
207
|
| Just before a push | checks that nothing that must stay local is being pushed | blocks pushing the documents branch you chose to keep off the remote |
|
|
188
|
-
| After pushing to GitHub | runs the same checks again on GitHub, whoever pushed (CI) | marks the run failed if document format, lint, type checks or tests break |
|
|
208
|
+
| After pushing to GitHub | runs the same checks again on GitHub, whoever pushed (CI) | marks the run failed if document format, lint, type checks or tests break; on PRs it also looks for work IDs in the title and commits |
|
|
189
209
|
| On demand | scans past commits and lists where documents and code drifted apart (`lantern scan`) | documents not reviewed for a while although their code changed |
|
|
190
210
|
|
|
191
211
|
- **Warnings by default.** Work is never blocked. To make the commit checks blocking, set `git.hooks` to `block` in `lantern.yaml`.
|
|
@@ -194,6 +214,8 @@ LanternSpec connects its checks to those hooks, so `lantern` checks at every sta
|
|
|
194
214
|
```bash
|
|
195
215
|
lantern hooks install # turns on the commit and push checks (/l-init asks before installing)
|
|
196
216
|
lantern install --ci # also checks on GitHub (turn off with --no-ci)
|
|
217
|
+
lantern install --pr-template # adds a PR template for GitHub
|
|
218
|
+
lantern install --commit-template # adds a commit message template and sets it for this clone
|
|
197
219
|
```
|
|
198
220
|
|
|
199
221
|
## References — company rules, terms and domain knowledge
|
|
@@ -266,12 +288,12 @@ Import mockups with `lantern screen import`; `lantern screen compare` finds wher
|
|
|
266
288
|
## CLI at a glance
|
|
267
289
|
|
|
268
290
|
```text
|
|
269
|
-
setup install [--language] [--tools] [--mcp] [--ci|--no-ci] · upgrade [--apply] · doctor · harness suggest
|
|
291
|
+
setup install [--language] [--tools] [--mcp] [--ci|--no-ci] [--pr-template] [--commit-template] · upgrade [--apply] · doctor · harness suggest
|
|
270
292
|
profile profile show|docs|write|set · principles show|detect · parts [add|ignore] · enums list|rename · sections list|rename|off|on
|
|
271
293
|
documents scaffold init [--plan] | work | doc | idea | adr | meeting | custom · new-id · map · meta get|set
|
|
272
|
-
checks check [--changed] [--epic W-012] · lint [--ci] · check-dbml · dbml render|from-sql|diff
|
|
294
|
+
checks check [--changed] [--epic W-012] · check-pr · lint [--ci] · check-dbml · dbml render|from-sql|diff
|
|
273
295
|
work task next [--all]|start|done|ac|list|estimate · task add [--parallel] · pack · screen import|compare
|
|
274
|
-
work branch|start|list|finish|archive|stage · design approve · unit-log add · idea find|status
|
|
296
|
+
work branch|start|list|finish|archive|stage|flow · design approve · unit-log add · idea find|status
|
|
275
297
|
learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list · mcp
|
|
276
298
|
reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] [--ci] · sync adopt · eval · obsidian plugins
|
|
277
299
|
templates template list|lint|level|bump|outdated|diff|usage|new|migrate · legacy adopt|todos
|
|
@@ -214,6 +214,37 @@ def _content_result(project: Project, problems: list[str], label: str) -> int:
|
|
|
214
214
|
return 0
|
|
215
215
|
|
|
216
216
|
|
|
217
|
+
def message_problems(message: str, has_code: bool, where: str | None = None) -> list[str]:
|
|
218
|
+
"""Check one commit message: code needs a task ID, and one commit should hold one task.
|
|
219
|
+
|
|
220
|
+
Args:
|
|
221
|
+
message: The whole commit message.
|
|
222
|
+
has_code: Whether the commit changes code.
|
|
223
|
+
where: How to call the commit in the message; "code commit" when None.
|
|
224
|
+
|
|
225
|
+
Returns:
|
|
226
|
+
What is wrong, one line per problem.
|
|
227
|
+
|
|
228
|
+
Example:
|
|
229
|
+
>>> message_problems("feat: 로그인 [W-001-T02]", True)
|
|
230
|
+
[]
|
|
231
|
+
>>> len(message_problems("feat: 로그인", True))
|
|
232
|
+
1
|
|
233
|
+
"""
|
|
234
|
+
problems: list[str] = []
|
|
235
|
+
if has_code and not ID_RE.search(message):
|
|
236
|
+
problems.append(
|
|
237
|
+
msg(
|
|
238
|
+
"Commit message: the {where} message has no task ID — add one at the end, like [W-001-T02]",
|
|
239
|
+
where=where or msg("code commit"),
|
|
240
|
+
)
|
|
241
|
+
)
|
|
242
|
+
tasks = sorted(set(TASK_RE.findall(message)))
|
|
243
|
+
if len(tasks) > 1:
|
|
244
|
+
problems.append(msg("Commit message: several tasks in one commit ({items}) — one task = one commit", items=", ".join(tasks)))
|
|
245
|
+
return problems
|
|
246
|
+
|
|
247
|
+
|
|
217
248
|
def commit_msg(project: Project, msg_file: str) -> int:
|
|
218
249
|
"""Check a commit message: code commits need a task ID, and one commit should hold one task.
|
|
219
250
|
|
|
@@ -241,14 +272,8 @@ def commit_msg(project: Project, msg_file: str) -> int:
|
|
|
241
272
|
from ..report.scan import is_doc_path
|
|
242
273
|
|
|
243
274
|
code = staged if docs_branch else [f for f in staged if not is_doc_path(project, f)]
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
where = msg("the docs branch") if docs_branch else msg("code commit")
|
|
247
|
-
problems.append(msg("Commit message: the {where} message has no task ID — add one at the end, like [W-001-T02]", where=where))
|
|
248
|
-
tasks = sorted(set(TASK_RE.findall(message)))
|
|
249
|
-
if len(tasks) > 1:
|
|
250
|
-
problems.append(msg("Commit message: several tasks in one commit ({items}) — one task = one commit", items=", ".join(tasks)))
|
|
251
|
-
return _content_result(project, problems, msg("commit message check"))
|
|
275
|
+
where = msg("the docs branch") if docs_branch else msg("code commit")
|
|
276
|
+
return _content_result(project, message_problems(message, bool(code), where), msg("commit message check"))
|
|
252
277
|
|
|
253
278
|
|
|
254
279
|
def structure_problems(project: Project, cwd: Path | None = None, staged: list[str] | None = None) -> list[str]:
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""`lantern check-pr` — check a pull request's title and commits for work IDs (for CI).
|
|
2
|
+
|
|
3
|
+
Responsibilities:
|
|
4
|
+
- a PR title needs a work ID, so the work stays findable after a squash merge
|
|
5
|
+
- commits follow the same message rules as the commit-msg hook
|
|
6
|
+
|
|
7
|
+
Not here:
|
|
8
|
+
- the message rules themselves → check/githooks.py (message_problems)
|
|
9
|
+
- the workflow that runs this → tools/install.py (CI_CHECKS)
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from ..core.messages import msg
|
|
15
|
+
from ..core.project import Project
|
|
16
|
+
from .githooks import ID_RE, SKIP_MSG, message_problems
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def title_problems(title: str) -> list[str]:
|
|
20
|
+
"""Check a PR title.
|
|
21
|
+
|
|
22
|
+
Args:
|
|
23
|
+
title: The PR title.
|
|
24
|
+
|
|
25
|
+
Returns:
|
|
26
|
+
What is wrong; empty when the title has a work ID or is a revert.
|
|
27
|
+
|
|
28
|
+
Example:
|
|
29
|
+
>>> title_problems("[FEAT] 로그인 [W-012]")
|
|
30
|
+
[]
|
|
31
|
+
>>> len(title_problems("로그인"))
|
|
32
|
+
1
|
|
33
|
+
"""
|
|
34
|
+
if SKIP_MSG.search(title) or ID_RE.search(title):
|
|
35
|
+
return []
|
|
36
|
+
return [msg("PR title: no work ID — add one at the end, like [W-012]")]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def pr_problems(project: Project, title: str, rev: str) -> list[str]:
|
|
40
|
+
"""Check a PR's title and each of its commits, leaving out merges.
|
|
41
|
+
|
|
42
|
+
Args:
|
|
43
|
+
project: The project.
|
|
44
|
+
title: The PR title.
|
|
45
|
+
rev: The PR's commits, e.g. "abc123..def456".
|
|
46
|
+
|
|
47
|
+
Returns:
|
|
48
|
+
What is wrong, one line per problem.
|
|
49
|
+
|
|
50
|
+
Example:
|
|
51
|
+
>>> pr_problems(project, "로그인 [W-012]", "main..HEAD") # doctest: +SKIP
|
|
52
|
+
[]
|
|
53
|
+
"""
|
|
54
|
+
from ..report.scan import commits, is_doc_path
|
|
55
|
+
|
|
56
|
+
out = title_problems(title)
|
|
57
|
+
for c in commits(project, rev):
|
|
58
|
+
message = f"{c.subject}\n{c.body}".strip()
|
|
59
|
+
if SKIP_MSG.search(message):
|
|
60
|
+
continue
|
|
61
|
+
has_code = any(not is_doc_path(project, f) for f in c.files)
|
|
62
|
+
out += [f"{c.short} {c.subject}: {p}" for p in message_problems(message, has_code)]
|
|
63
|
+
return out
|
|
@@ -171,8 +171,28 @@ def cmd_lint(a: argparse.Namespace) -> int:
|
|
|
171
171
|
return 1 if failed else 0
|
|
172
172
|
|
|
173
173
|
|
|
174
|
+
def cmd_check_pr(a: argparse.Namespace) -> int:
|
|
175
|
+
"""`lantern check-pr` — check a pull request's title and commits for work IDs (CI runs it)."""
|
|
176
|
+
from ..check.pr_check import pr_problems
|
|
177
|
+
|
|
178
|
+
project = _p()
|
|
179
|
+
problems = pr_problems(project, a.title, a.range)
|
|
180
|
+
if not problems:
|
|
181
|
+
print(msg("✔ PR title and commits have work IDs"))
|
|
182
|
+
return 0
|
|
183
|
+
block = project.profile.get("git.hooks") == "block"
|
|
184
|
+
for p in problems:
|
|
185
|
+
print(f"{'✖' if block else '⚠'} {p}")
|
|
186
|
+
if not block:
|
|
187
|
+
print(msg("(warning only — to fail the check, lantern.yaml git.hooks: block)"))
|
|
188
|
+
return 1 if block else 0
|
|
189
|
+
|
|
190
|
+
|
|
174
191
|
def register(add: Add) -> None:
|
|
175
192
|
"""Register the check and template commands."""
|
|
193
|
+
p = add("check-pr", cmd_check_pr, msg("Check a pull request's title and commits for work IDs (for CI)"))
|
|
194
|
+
p.add_argument("--title", required=True)
|
|
195
|
+
p.add_argument("--range", required=True, help=msg("The PR's commits, like base..head"))
|
|
176
196
|
p = add("check", cmd_check, msg("Check document formats"))
|
|
177
197
|
p.add_argument("paths", nargs="*")
|
|
178
198
|
p.add_argument("--changed", action="store_true")
|
|
@@ -77,6 +77,9 @@ def cmd_profile(a: argparse.Namespace) -> int:
|
|
|
77
77
|
git_cfg["base"] = a.base
|
|
78
78
|
if a.hooks:
|
|
79
79
|
git_cfg["hooks"] = a.hooks
|
|
80
|
+
for key in ("branch", "pr", "deploy"):
|
|
81
|
+
if getattr(a, key):
|
|
82
|
+
git_cfg[key] = getattr(a, key)
|
|
80
83
|
path = pm.save(project.root, data)
|
|
81
84
|
print(msg("✔ Saved {name}", name=path.name))
|
|
82
85
|
print(msg("Next: lantern scaffold init --plan"))
|
|
@@ -92,7 +95,10 @@ def cmd_profile(a: argparse.Namespace) -> int:
|
|
|
92
95
|
raise CliError(msg("Document storage changes only with lantern docs-mode local|shared"))
|
|
93
96
|
pm.update(project.root, updates)
|
|
94
97
|
print("✔ " + ", ".join(f"{k}={v}" for k, v in updates.items()))
|
|
95
|
-
|
|
98
|
+
rule = updates.get("git.branch")
|
|
99
|
+
if rule is not None and "{id}" not in str(rule):
|
|
100
|
+
print(msg("⚠ git.branch has no {{id}}: works on different branches may get the same number"))
|
|
101
|
+
if any(k.split(".")[0] in ("idea", "learn", "plan", "design", "build", "report", "docs", "git") for k in updates):
|
|
96
102
|
print(msg("ℹ This value changes how skills work → lantern upgrade"))
|
|
97
103
|
if any(k.startswith("project.") or k == "knowledge" or k == "docs.extra" for k in updates):
|
|
98
104
|
print(msg("ℹ The documents to turn on may change → lantern scaffold init --plan"))
|
|
@@ -381,6 +387,9 @@ def register(add: Add) -> None:
|
|
|
381
387
|
"remote",
|
|
382
388
|
"base",
|
|
383
389
|
"hooks",
|
|
390
|
+
"branch",
|
|
391
|
+
"pr",
|
|
392
|
+
"deploy",
|
|
384
393
|
):
|
|
385
394
|
p.add_argument(f"--{flag}")
|
|
386
395
|
p.add_argument("--external", choices=["yes", "no"], help=msg("Connects to outside tools · services"))
|
|
@@ -18,7 +18,7 @@ if TYPE_CHECKING:
|
|
|
18
18
|
|
|
19
19
|
def cmd_install(a: argparse.Namespace) -> int:
|
|
20
20
|
"""`lantern install` — install skills, rules and hooks for the chosen AI tools, then show the next steps."""
|
|
21
|
-
from ..tools.install import install
|
|
21
|
+
from ..tools.install import install, write_commit_template, write_pr_template
|
|
22
22
|
|
|
23
23
|
project = _p()
|
|
24
24
|
rep = install(
|
|
@@ -30,6 +30,10 @@ def cmd_install(a: argparse.Namespace) -> int:
|
|
|
30
30
|
language=a.language,
|
|
31
31
|
)
|
|
32
32
|
_print(rep.lines())
|
|
33
|
+
if a.pr_template:
|
|
34
|
+
print(write_pr_template(project))
|
|
35
|
+
if a.commit_template:
|
|
36
|
+
print(write_commit_template(project))
|
|
33
37
|
_print(_next_steps(project))
|
|
34
38
|
return 0
|
|
35
39
|
|
|
@@ -85,9 +89,20 @@ def cmd_upgrade(a: argparse.Namespace) -> int:
|
|
|
85
89
|
_print(upgrade(_p(), force=a.force, apply=a.apply).lines())
|
|
86
90
|
except LayoutError as e:
|
|
87
91
|
raise CliError(str(e)) from e
|
|
92
|
+
_mention_branch_settings()
|
|
88
93
|
return 0
|
|
89
94
|
|
|
90
95
|
|
|
96
|
+
def _mention_branch_settings() -> None:
|
|
97
|
+
"""Tell an older project about the branch settings its lantern.yaml doesn't show yet; the file stays as it is."""
|
|
98
|
+
from ..core.profile import PROFILE_FILE, set_in_text
|
|
99
|
+
from ..core.project import read
|
|
100
|
+
|
|
101
|
+
path = _p().root / PROFILE_FILE
|
|
102
|
+
if path.exists() and set_in_text(read(path), "git.branch", "") is None:
|
|
103
|
+
print(msg('ℹ New setting: git.branch (work branch name rule). To use it: lantern profile set git.branch="feature/{{id}}-{{slug}}"'))
|
|
104
|
+
|
|
105
|
+
|
|
91
106
|
def cmd_build_adapters(a: argparse.Namespace) -> int:
|
|
92
107
|
"""`lantern build-adapters` — write every tool's skill files into a folder, without installing."""
|
|
93
108
|
from ..core.project import write
|
|
@@ -156,6 +171,8 @@ def register(add: Add) -> None:
|
|
|
156
171
|
p.add_argument("--force", action="store_true", help=msg("Overwrite files the user edited too"))
|
|
157
172
|
p.add_argument("--mcp", action="store_true", help=msg("Also register the knowledge connector MCP server (lantern mcp)"))
|
|
158
173
|
p.add_argument("--language", choices=languages(), help=msg("Language of skills · rules · documents (first install only, default ko)"))
|
|
174
|
+
p.add_argument("--pr-template", action="store_true", help=msg("Also add a PR template for GitHub (kept if one exists)"))
|
|
175
|
+
p.add_argument("--commit-template", action="store_true", help=msg("Also add a commit message template and set it for this clone"))
|
|
159
176
|
ci = p.add_mutually_exclusive_group()
|
|
160
177
|
ci.add_argument(
|
|
161
178
|
"--ci",
|
|
@@ -42,7 +42,7 @@ def cmd_scaffold(a: argparse.Namespace) -> int:
|
|
|
42
42
|
_print([f"✔ {d}" for d in done] or [msg("· Nothing new to make")])
|
|
43
43
|
return 0
|
|
44
44
|
if a.kind == "work":
|
|
45
|
-
folder = scaffold.new_work(project, a.name, idea_id=a.idea, ui=a.ui)
|
|
45
|
+
folder = scaffold.new_work(project, a.name, idea_id=a.idea, ui=a.ui, branch=a.branch)
|
|
46
46
|
print(f"✔ {project.rel(project.doc_path(folder, 'plan'))}")
|
|
47
47
|
return 0
|
|
48
48
|
if a.kind == "doc":
|
|
@@ -120,6 +120,7 @@ def cmd_task(a: argparse.Namespace) -> int:
|
|
|
120
120
|
if a.json:
|
|
121
121
|
print(json.dumps([{"id": t.id, "title": t.title, "parallel": t.parallel} for t in tasks], ensure_ascii=False))
|
|
122
122
|
return 0
|
|
123
|
+
_print(task_cmd.changed_order(project, a.target))
|
|
123
124
|
if not tasks:
|
|
124
125
|
print(msg("No task can start now"))
|
|
125
126
|
for t in tasks:
|
|
@@ -139,11 +140,13 @@ def cmd_task(a: argparse.Namespace) -> int:
|
|
|
139
140
|
"work": project.rel(res.work) if res.work else None,
|
|
140
141
|
"all_done": res.all_done,
|
|
141
142
|
"skipped": [{"id": i, "reason": r} for i, r in res.skipped],
|
|
143
|
+
"order_changes": task_cmd.changed_order(project, a.target),
|
|
142
144
|
},
|
|
143
145
|
ensure_ascii=False,
|
|
144
146
|
)
|
|
145
147
|
)
|
|
146
148
|
return 0
|
|
149
|
+
_print(task_cmd.changed_order(project, a.target))
|
|
147
150
|
if res.task:
|
|
148
151
|
t = res.task
|
|
149
152
|
n = project.names
|
|
@@ -234,8 +237,17 @@ def cmd_work(a: argparse.Namespace) -> int:
|
|
|
234
237
|
from ..work import stages
|
|
235
238
|
|
|
236
239
|
project = _p()
|
|
240
|
+
if a.action == "flow":
|
|
241
|
+
if not a.team or not a.origin:
|
|
242
|
+
raise CliError("lantern work flow --team solo|team --origin greenfield|brownfield")
|
|
243
|
+
flow = work.suggest_flow(project, a.team, a.origin)
|
|
244
|
+
print(msg("Recommended: {flow}", flow=flow.recommended))
|
|
245
|
+
print(msg("Choices: {items}", items=" ".join(flow.choices)))
|
|
246
|
+
print(msg("Default branch: {name}", name=flow.default_branch))
|
|
247
|
+
print(msg("Branches: {items}", items=", ".join(flow.branches)))
|
|
248
|
+
return 0
|
|
237
249
|
if a.action == "branch":
|
|
238
|
-
print(work.ensure_branch(project, a.ids[0]))
|
|
250
|
+
print(work.ensure_branch(project, a.ids[0], a.from_ref, a.branch_name))
|
|
239
251
|
elif a.action == "start":
|
|
240
252
|
_print(work.start(project, a.ids, install=not a.no_install))
|
|
241
253
|
elif a.action == "list":
|
|
@@ -405,6 +417,7 @@ def register(add: Add) -> None:
|
|
|
405
417
|
s.add_argument("name")
|
|
406
418
|
s.add_argument("--idea")
|
|
407
419
|
s.add_argument("--ui", action="store_true", help=msg("A work that changes screens"))
|
|
420
|
+
s.add_argument("--branch", help=msg("The work's branch name, for a branch rule with blanks"))
|
|
408
421
|
s = ss.add_parser("doc", help=msg("Work document (design · tasks · log)"))
|
|
409
422
|
s.add_argument("work")
|
|
410
423
|
s.add_argument("doc")
|
|
@@ -465,9 +478,13 @@ def register(add: Add) -> None:
|
|
|
465
478
|
p.add_argument("--unknown", action="store_true")
|
|
466
479
|
p.add_argument("--parallel", action="store_true", help=msg("[P] can run at the same time as other [P] tasks"))
|
|
467
480
|
p = add("work", cmd_work, msg("Work branches · parallel works · finish · archive · stage"))
|
|
468
|
-
p.add_argument("action", choices=["branch", "start", "list", "finish", "archive", "stage"])
|
|
481
|
+
p.add_argument("action", choices=["branch", "start", "list", "finish", "archive", "stage", "flow"])
|
|
482
|
+
p.add_argument("--team", choices=["solo", "team"], help=msg("flow: how many people work on it"))
|
|
483
|
+
p.add_argument("--origin", choices=["greenfield", "brownfield"], help=msg("flow: a new project, or one with code already"))
|
|
469
484
|
p.add_argument("ids", nargs="*")
|
|
470
485
|
p.add_argument("--no-install", action="store_true")
|
|
486
|
+
p.add_argument("--from", dest="from_ref", help=msg("branch: start from this branch instead of the base branch"))
|
|
487
|
+
p.add_argument("--name", dest="branch_name", help=msg("branch: use this branch name and keep it in the plan"))
|
|
471
488
|
p.add_argument("--no-test", action="store_true")
|
|
472
489
|
p.add_argument("--keep", action="store_true")
|
|
473
490
|
p = add("pack", cmd_pack, msg("Work pack (a one-off summary for the AI)"))
|
|
@@ -43,7 +43,7 @@ def _numbers(prefix: str, texts: Iterable[str]) -> Iterable[int]:
|
|
|
43
43
|
def next_id(project: Project, kind: str) -> str:
|
|
44
44
|
"""Return the next free ID of a kind.
|
|
45
45
|
|
|
46
|
-
File names, `id` frontmatter fields and (for works)
|
|
46
|
+
File names, `id` frontmatter fields and (for works) branches with a work ID in their name all reserve numbers.
|
|
47
47
|
|
|
48
48
|
Args:
|
|
49
49
|
project: The project.
|
|
@@ -76,11 +76,11 @@ def next_id(project: Project, kind: str) -> str:
|
|
|
76
76
|
continue
|
|
77
77
|
if meta.get("id"):
|
|
78
78
|
texts.append(str(meta["id"]))
|
|
79
|
-
#
|
|
79
|
+
# branches of works (work/W-012 · feature/W-012-login) also reserve work numbers
|
|
80
80
|
if kind == "work":
|
|
81
81
|
from .project import git_out
|
|
82
82
|
|
|
83
|
-
texts += git_out(["branch", "--list", "
|
|
83
|
+
texts += git_out(["branch", "--list", "--format=%(refname:short)"], project.root).splitlines()
|
|
84
84
|
n = max(_numbers(prefix, texts), default=0) + 1
|
|
85
85
|
return f"{prefix}-{n:0{width}d}"
|
|
86
86
|
|
|
@@ -49,7 +49,7 @@ DEFAULTS: dict[str, Any] = {
|
|
|
49
49
|
"docs": {"root": "docs/", "remote": "shared", "extra": [], "sections": {}, "unused_sections": []},
|
|
50
50
|
"knowledge": None,
|
|
51
51
|
"design": {"tool": "none", "approval": "required"},
|
|
52
|
-
"git": {"hooks": "warn", "base": "main"},
|
|
52
|
+
"git": {"hooks": "warn", "base": "main", "branch": "work/{id}", "pr": "none", "deploy": "main"},
|
|
53
53
|
"idea": {"capture": "manual"},
|
|
54
54
|
"plan": {"max_questions": 3, "ac_format": "gwt", "ui_reference": "off"},
|
|
55
55
|
"learn": {"detect": "manual", "max_candidates": 3, "verify": "self"},
|
|
@@ -77,6 +77,7 @@ CHOICES: dict[str, tuple[str, ...]] = {
|
|
|
77
77
|
"design.tool": ("claude-design", "figma", "canva", "none"),
|
|
78
78
|
"design.approval": ("required", "auto", "off"),
|
|
79
79
|
"git.hooks": ("warn", "block"),
|
|
80
|
+
"git.pr": ("none", "deploy", "work"),
|
|
80
81
|
"idea.capture": ("manual", "ask", "auto"),
|
|
81
82
|
"plan.ac_format": ("gwt", "simple"),
|
|
82
83
|
"plan.ui_reference": ("off", "required"),
|
|
@@ -335,6 +336,8 @@ def validate(data: dict[str, Any]) -> list[str]:
|
|
|
335
336
|
for item in val:
|
|
336
337
|
if item not in allowed:
|
|
337
338
|
problems.append(msg("{key}: '{item}' is not allowed (available: {items})", key=key, item=item, items=", ".join(allowed)))
|
|
339
|
+
if re.search(r"[\s~^:?*\[\\]", str(get_path(data, "git.branch") or "")):
|
|
340
|
+
problems.append(msg("git.branch: a branch name can't have spaces or any of ~ ^ : ? * [ \\"))
|
|
338
341
|
if not isinstance(get_path(data, "project.external", False), bool):
|
|
339
342
|
problems.append(msg("project.external must be true or false"))
|
|
340
343
|
for key, minimum in MIN_INTS.items():
|
|
@@ -563,6 +566,13 @@ def render(data: dict[str, Any]) -> str:
|
|
|
563
566
|
s=s(d["git"]["hooks"]),
|
|
564
567
|
),
|
|
565
568
|
msg(" base: {s} # the base branch work branches merge into (main | dev …)", s=s(d["git"]["base"])),
|
|
569
|
+
msg(" # Work branch name. Default work/{{id}} makes work/W-012 by itself ({{id}} = the work's ID)"),
|
|
570
|
+
msg(" # To use another rule, change it. For example:"),
|
|
571
|
+
msg(" # feature/{{id}} → feature/W-012"),
|
|
572
|
+
msg(" # feature/{{id}}-{{slug}} → feature/W-012-login (a blank other than {{id}}, like {{slug}}, is named for each work)"),
|
|
573
|
+
f" branch: {s(d['git']['branch'])}",
|
|
574
|
+
msg(" pr: {s} # none | deploy (base → deploy branch by PR) | work (each work by PR)", s=s(d["git"]["pr"])),
|
|
575
|
+
msg(" deploy: {s} # the branch that goes out, for pr: deploy", s=s(d["git"]["deploy"])),
|
|
566
576
|
]
|
|
567
577
|
if d["git"].get("schema_paths"):
|
|
568
578
|
lines.append(msg(" schema_paths: {s} # where schema files are (schema log check)", s=s(d["git"]["schema_paths"])))
|
|
@@ -301,6 +301,42 @@ def find_task(tasks: list[Task], task_id: str) -> Task | None:
|
|
|
301
301
|
return None
|
|
302
302
|
|
|
303
303
|
|
|
304
|
+
def order_changes(before: list[Task], after: list[Task]) -> list[str]:
|
|
305
|
+
r"""Say how the order of tasks changed: their relative line order and their prerequisites.
|
|
306
|
+
|
|
307
|
+
Tasks added or removed, dates and states are not order changes.
|
|
308
|
+
|
|
309
|
+
Args:
|
|
310
|
+
before: The tasks as they were.
|
|
311
|
+
after: The tasks as they are now.
|
|
312
|
+
|
|
313
|
+
Returns:
|
|
314
|
+
One description per change; empty when the order is the same.
|
|
315
|
+
|
|
316
|
+
Example:
|
|
317
|
+
>>> from lanternspec.core.names import load
|
|
318
|
+
>>> old = parse_tasks("- [ ] W-001-T01 하나\n- [ ] W-001-T02 둘 [먼저:: T01]", load("ko"))
|
|
319
|
+
>>> new = parse_tasks("- [ ] W-001-T02 둘\n- [ ] W-001-T01 하나\n- [ ] W-001-T03 셋", load("ko"))
|
|
320
|
+
>>> order_changes(old, new)
|
|
321
|
+
['순서 T01 · T02 → T02 · T01', 'T02 먼저 끝나야 할 일 T01 → 없음']
|
|
322
|
+
"""
|
|
323
|
+
|
|
324
|
+
def short(ids: list[str]) -> str:
|
|
325
|
+
return " · ".join(i.rsplit("-", 1)[-1] for i in ids) or msg("none")
|
|
326
|
+
|
|
327
|
+
was = {t.id: t for t in before}
|
|
328
|
+
now = {t.id: t for t in after}
|
|
329
|
+
old_order = [t.id for t in before if t.id in now]
|
|
330
|
+
new_order = [t.id for t in after if t.id in was]
|
|
331
|
+
out = []
|
|
332
|
+
if old_order != new_order:
|
|
333
|
+
out.append(msg("order {old} → {new}", old=short(old_order), new=short(new_order)))
|
|
334
|
+
for t in after:
|
|
335
|
+
if t.id in was and was[t.id].deps != t.deps:
|
|
336
|
+
out.append(msg("{id} prerequisites {old} → {new}", id=short([t.id]), old=short(was[t.id].deps), new=short(t.deps)))
|
|
337
|
+
return out
|
|
338
|
+
|
|
339
|
+
|
|
304
340
|
@dataclass
|
|
305
341
|
class TaskGraph:
|
|
306
342
|
r"""The tasks of one work, for dependency questions.
|
{lanternspec-0.2.9 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/agents/AGENTS.md
RENAMED
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
| Set up the project · change what kind it is | `/l-init` |
|
|
53
53
|
| Capture a thought | `/l-idea` |
|
|
54
54
|
| What · why → how → tasks → build | `/l-plan` → `/l-design` → `/l-task` → `/l-build` |
|
|
55
|
+
| Open a pull request | `/l-pr` |
|
|
55
56
|
| An unfamiliar technology | `/l-learn` |
|
|
56
57
|
| Where things stand | `/l-report` |
|
|
57
58
|
| Make · refine · migrate templates | `/l-template` |
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Format: type: what was done [W-012-T03]
|
|
2
|
+
# - [W-012-T03] at the end ties this commit to its task
|
|
3
|
+
# - Start with a capital letter, no period, keep it short
|
|
4
|
+
# - Pick one type:
|
|
5
|
+
# feat new feature, new function · class · API
|
|
6
|
+
# fix bug fix, error handling, wrong logic
|
|
7
|
+
# docs only documents or comments
|
|
8
|
+
# refactor structure or names, same behavior
|
|
9
|
+
# remove removing files or code
|
|
10
|
+
# chore build settings, packages, environment settings
|
|
11
|
+
# test adding or changing tests
|
|
12
|
+
# enhance making an existing feature faster or lighter
|
|
13
|
+
#
|
|
14
|
+
# If there is an issue, leave a blank line and write: Refs #12
|
|
15
|
+
# (git removes lines starting with #, so don't write just #12)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
What this change does overall, and why
|
|
3
|
+
|
|
4
|
+
## Change Log
|
|
5
|
+
- Main additions and changes, item by item
|
|
6
|
+
|
|
7
|
+
## To Reviewer
|
|
8
|
+
- What the reviewer should look at: design decisions · trade-offs · tricky logic
|
|
9
|
+
|
|
10
|
+
## Linked Works
|
|
11
|
+
- W-012 work name — acceptance criteria and how they were checked
|
|
12
|
+
|
|
13
|
+
## Issue Tag
|
|
14
|
+
Closes #issue-number (remove this section if there is no issue)
|