lanternspec 0.2.3__tar.gz → 0.2.5__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.3/src/lanternspec.egg-info → lanternspec-0.2.5}/PKG-INFO +2 -2
- {lanternspec-0.2.3 → lanternspec-0.2.5}/README.md +1 -1
- {lanternspec-0.2.3 → lanternspec-0.2.5}/pyproject.toml +1 -1
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/check/doctor.py +4 -2
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/cli/core.py +25 -5
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/profile.py +7 -1
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/project.py +21 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md +2 -1
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md +2 -1
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/messages.yaml +11 -7
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/parts.py +26 -9
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/rules.py +3 -4
- {lanternspec-0.2.3 → lanternspec-0.2.5/src/lanternspec.egg-info}/PKG-INFO +2 -2
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_parts.py +35 -2
- {lanternspec-0.2.3 → lanternspec-0.2.5}/LICENSE +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/setup.cfg +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/__main__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/check/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/check/budget.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/check/check_docs.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/check/githooks.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/check/layout.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/check/legacy.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/check/templates.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/cli/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/cli/check.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/cli/common.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/cli/learn.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/cli/report.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/cli/tools.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/cli/work.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/enums.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/frontmatter.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/links.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/messages.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/meta.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/names.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/new_id.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/principles.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/sections.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/state.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/taskfile.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/core/templating.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/learn/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/learn/debt.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/learn/knowledge/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/learn/knowledge/drafts.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/learn/knowledge/mcp_server.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/learn/knowledge/notion.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/learn/knowledge/obsidian.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/doc_map.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/evaluate.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/harness.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/obsidian.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/principles_doc.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/resume.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/scan.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/sections_doc.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/status.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/report/views.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/conventions/go.yaml +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/conventions/python.yaml +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/conventions/rust.yaml +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/conventions/swift.yaml +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/conventions/typescript.yaml +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/agents/AGENTS.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/ADR.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/API.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Architecture.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Collaboration Rules.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Competency Card.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Data.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Debt Card.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Deployment.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Design.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Docs MOC.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Feature List.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Idea.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Known Tech.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Legacy Map.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Log.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Meeting Notes.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Plan.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Platform Integration.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Project Definition.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Screens.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Server Operations.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Session Log.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Tasks.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/_meta/enums.yaml +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/agents/AGENTS.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-build/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-plan/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-task/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates/ADR.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates/API.md +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates/_meta/enums.yaml +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/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.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/212/245 /353/252/251/353/241/235.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/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.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//353/215/260/354/235/264/355/204/260.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//353/260/260/355/217/254.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//353/266/200/354/261/204 /354/271/264/353/223/234.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/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.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//354/204/270/354/205/230 /352/270/260/353/241/235.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/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.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//354/225/204/353/212/224 /352/270/260/354/210/240.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//354/227/255/353/237/211 /354/271/264/353/223/234.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/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.3 → lanternspec-0.2.5}/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.3 → lanternspec-0.2.5}/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.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//355/230/221/354/227/205 /352/267/234/354/271/231.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//355/231/224/353/251/264.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/templates//355/232/214/354/235/230/353/241/235.md" +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/names.yaml +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/principles.yaml +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/agent_hooks.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/antigravity.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/base.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/claude.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/close.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/codex.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/docs_mode.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/health.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/install.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/runlog.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/sessions.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/tools/skills.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/__init__.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/branches.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/dbml.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/epic_rules.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/ideas.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/pack.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/progress.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/scaffold.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/screen.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/stages.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/work/tasks.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec.egg-info/SOURCES.txt +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec.egg-info/dependency_links.txt +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec.egg-info/entry_points.txt +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec.egg-info/requires.txt +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec.egg-info/top_level.txt +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_budget.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_checks.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_core.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_english.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_enums_single_source.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_git.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_install_and_aux.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_later_features.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_layout.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_learning_line.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_messages.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_name_overlap.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_names.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_obsidian.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_part_delivery.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_principles.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_principles_data.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_release_script.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_resume.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_skill_commands.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_tool_health.py +0 -0
- {lanternspec-0.2.3 → lanternspec-0.2.5}/tests/test_work_line.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.5
|
|
4
4
|
Summary: Spec-driven development for agentic software engineering
|
|
5
5
|
Author: Jihyeok Jeong
|
|
6
6
|
License-Expression: MIT
|
|
@@ -239,7 +239,7 @@ Picks design principles and code conventions from a table, based on the project
|
|
|
239
239
|
|
|
240
240
|
- Languages: Python · TypeScript · Swift · Rust · Go
|
|
241
241
|
- The essentials go into `AGENTS.md`; the full explanation goes into `Development Principles.md`.
|
|
242
|
-
- When two or more folders have their own
|
|
242
|
+
- When two or more folders have their own package file (`pyproject.toml`, `package.json` …) (such as `backend` and `web`, `lantern parts`), each part gets its own `AGENTS.md` with its language conventions and check commands, and hooks hand it to tools that don't read folder `AGENTS.md` files themselves (Codex · Antigravity).
|
|
243
243
|
- In existing projects, lint and format settings already in use are recorded, never changed.
|
|
244
244
|
- When the code grows past a size boundary, `lantern doctor` asks whether to raise the principles one level.
|
|
245
245
|
- The language of code comments can be set apart from the documents with `project.comment_language`.
|
|
@@ -224,7 +224,7 @@ Picks design principles and code conventions from a table, based on the project
|
|
|
224
224
|
|
|
225
225
|
- Languages: Python · TypeScript · Swift · Rust · Go
|
|
226
226
|
- The essentials go into `AGENTS.md`; the full explanation goes into `Development Principles.md`.
|
|
227
|
-
- When two or more folders have their own
|
|
227
|
+
- When two or more folders have their own package file (`pyproject.toml`, `package.json` …) (such as `backend` and `web`, `lantern parts`), each part gets its own `AGENTS.md` with its language conventions and check commands, and hooks hand it to tools that don't read folder `AGENTS.md` files themselves (Codex · Antigravity).
|
|
228
228
|
- In existing projects, lint and format settings already in use are recorded, never changed.
|
|
229
229
|
- When the code grows past a size boundary, `lantern doctor` asks whether to raise the principles one level.
|
|
230
230
|
- The language of code comments can be set apart from the documents with `project.comment_language`.
|
|
@@ -137,11 +137,13 @@ def _part_rows(project: Project) -> list[tuple[str, str]]:
|
|
|
137
137
|
out = []
|
|
138
138
|
found = statuses(project)
|
|
139
139
|
open_ = [s.path for s in found if s.state == "new"]
|
|
140
|
-
if open_ and sum(1 for s in found if s.state
|
|
140
|
+
if open_ and sum(1 for s in found if s.state in ("added", "new")) >= 2:
|
|
141
141
|
out.append(
|
|
142
142
|
(
|
|
143
143
|
WARN,
|
|
144
|
-
msg(
|
|
144
|
+
msg(
|
|
145
|
+
"Sub-projects that could get their own rules (parts), not decided yet: {items} — lantern parts", items=", ".join(open_)
|
|
146
|
+
),
|
|
145
147
|
)
|
|
146
148
|
)
|
|
147
149
|
tools = [REGISTRY[n] for n in state.load(project).get("tools") or [] if n in REGISTRY]
|
|
@@ -121,14 +121,30 @@ def cmd_parts(a: argparse.Namespace) -> int:
|
|
|
121
121
|
if a.action:
|
|
122
122
|
return 0
|
|
123
123
|
found = parts.statuses(project)
|
|
124
|
+
print(
|
|
125
|
+
msg(
|
|
126
|
+
"A part is a sub-project inside this repository: a folder such as backend (Python) or frontend (TypeScript) "
|
|
127
|
+
"with its own language and check commands."
|
|
128
|
+
)
|
|
129
|
+
)
|
|
130
|
+
print(msg("With two or more parts, each gets its own AGENTS.md, and the AI follows that folder's rules while it works there."))
|
|
131
|
+
print()
|
|
124
132
|
if not found:
|
|
125
|
-
print(
|
|
133
|
+
print(
|
|
134
|
+
msg(
|
|
135
|
+
"No sub-folder has its own package file (pyproject.toml · package.json …) — "
|
|
136
|
+
"no need to split; the root AGENTS.md covers the whole project"
|
|
137
|
+
)
|
|
138
|
+
)
|
|
139
|
+
else:
|
|
140
|
+
print(msg("Candidates — folders with their own package file (pyproject.toml · package.json …):"))
|
|
126
141
|
label = {"added": msg("part"), "ignored": msg("ignored"), "new": msg("not decided")}
|
|
127
142
|
for s in found:
|
|
128
|
-
why = ", ".join(s.evidence) or msg("no
|
|
129
|
-
|
|
143
|
+
why = ", ".join(s.evidence) or msg("no package file found any more")
|
|
144
|
+
state = msg("inside part {path}", path=s.owner) if s.state == "inside" else label[s.state]
|
|
145
|
+
print(f" {s.path} ({', '.join(s.languages) or '-'}) · {state} · {why}")
|
|
130
146
|
if any(s.state == "new" for s in found):
|
|
131
|
-
print(msg("→ lantern parts add <folder> · lantern parts ignore <folder>
|
|
147
|
+
print(msg("→ make it a part: lantern parts add <folder> · not a part: lantern parts ignore <folder>"))
|
|
132
148
|
return 0
|
|
133
149
|
|
|
134
150
|
|
|
@@ -368,7 +384,11 @@ def register(add: Add) -> None:
|
|
|
368
384
|
):
|
|
369
385
|
p.add_argument(f"--{flag}")
|
|
370
386
|
p.add_argument("--external", choices=["yes", "no"], help=msg("Connects to outside tools · services"))
|
|
371
|
-
p = add(
|
|
387
|
+
p = add(
|
|
388
|
+
"parts",
|
|
389
|
+
cmd_parts,
|
|
390
|
+
msg("Split the repository into sub-projects (parts), each with its own AI rules (AGENTS.md) — candidates · add · ignore"),
|
|
391
|
+
)
|
|
372
392
|
p.add_argument("action", nargs="?", choices=["add", "ignore"])
|
|
373
393
|
p.add_argument("path", nargs="?")
|
|
374
394
|
p = add("principles", cmd_principles, msg("Design principles · code conventions — show the choice · detect languages and tools in use"))
|
|
@@ -599,7 +599,13 @@ def render(data: dict[str, Any]) -> str:
|
|
|
599
599
|
]
|
|
600
600
|
code = d.get("code") or {}
|
|
601
601
|
if code.get("parts") or code.get("ignored_parts"):
|
|
602
|
-
lines += [
|
|
602
|
+
lines += [
|
|
603
|
+
"code:",
|
|
604
|
+
msg(
|
|
605
|
+
" # parts = sub-projects with their own package file (pyproject.toml · package.json …) — "
|
|
606
|
+
"lantern parts (each gets its own AGENTS.md)"
|
|
607
|
+
),
|
|
608
|
+
]
|
|
603
609
|
body = yaml.safe_dump(
|
|
604
610
|
{"parts": code.get("parts") or [], "ignored_parts": code.get("ignored_parts") or []}, allow_unicode=True, sort_keys=False
|
|
605
611
|
)
|
|
@@ -152,6 +152,27 @@ def git(args: list[str], cwd: Path, check: bool = False, env: dict | None = None
|
|
|
152
152
|
)
|
|
153
153
|
|
|
154
154
|
|
|
155
|
+
def worktree_files(root: Path, *pathspec: str) -> list[str]:
|
|
156
|
+
"""List the files git knows in the working tree: tracked or new, not ignored, not deleted.
|
|
157
|
+
|
|
158
|
+
A file deleted but not yet committed is left out, so it stops counting as soon as it is gone.
|
|
159
|
+
|
|
160
|
+
Args:
|
|
161
|
+
root: Folder to run in.
|
|
162
|
+
*pathspec: git pathspecs to narrow the list (e.g. "*/AGENTS.md"); all files when empty.
|
|
163
|
+
|
|
164
|
+
Returns:
|
|
165
|
+
Paths relative to the root; [] when git failed.
|
|
166
|
+
|
|
167
|
+
Example:
|
|
168
|
+
>>> worktree_files(Path("."), "*/AGENTS.md") # doctest: +SKIP
|
|
169
|
+
['backend/AGENTS.md']
|
|
170
|
+
"""
|
|
171
|
+
listed = git_out(["ls-files", "--cached", "--others", "--exclude-standard", "--", *pathspec], root).splitlines()
|
|
172
|
+
gone = set(git_out(["ls-files", "--deleted", "--", *pathspec], root).splitlines())
|
|
173
|
+
return [f for f in listed if f and f not in gone]
|
|
174
|
+
|
|
175
|
+
|
|
155
176
|
def git_out(args: list[str], cwd: Path) -> str:
|
|
156
177
|
"""Run a git command and return its trimmed output.
|
|
157
178
|
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md
RENAMED
|
@@ -75,7 +75,8 @@ lantern scaffold init --plan # the folders · documents it would create (
|
|
|
75
75
|
```
|
|
76
76
|
Tell the user the `principles show` result in a line or two (e.g. "CLI tool · external integrations → single responsibility and extension points are Must; Python uses ruff · pyright").
|
|
77
77
|
|
|
78
|
-
**Parts (each folder its own rules):**
|
|
78
|
+
**Parts (each folder its own rules):** a part is a sub-project inside the repository — a folder with its own language and check commands.
|
|
79
|
+
`lantern parts` lists the sub-folders with their own package file (`pyproject.toml` · `package.json` …, e.g. `backend` · `frontend/apps/web`) as candidates.
|
|
79
80
|
With **two or more**, ask about all of them at once, each with its evidence — "Make this folder a part?" — then `lantern parts add <folder>` · `lantern parts ignore <folder>` as answered.
|
|
80
81
|
Two or more parts each get their own `AGENTS.md` (that language's conventions · that folder's check commands), and the root AGENTS.md keeps a map of the parts. With one candidate or none, don't ask.
|
|
81
82
|
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md
RENAMED
|
@@ -76,7 +76,8 @@ lantern scaffold init --plan # 만들 폴더 · 문서 목록 (아직 아
|
|
|
76
76
|
```
|
|
77
77
|
`principles show` 결과를 한두 줄로 알려 준다 (예: "CLI 도구 · 바깥 연결 → 단일 책임 · 확장 지점은 지킴, Python은 ruff · pyright").
|
|
78
78
|
|
|
79
|
-
**영역 (폴더마다 자기 규칙):**
|
|
79
|
+
**영역 (폴더마다 자기 규칙):** 영역은 저장소 안의 하위 프로젝트다 — 언어와 검사 명령이 따로인 폴더.
|
|
80
|
+
`lantern parts`가 패키지 설정 파일(`pyproject.toml` · `package.json` 등)을 따로 가진 하위 폴더(예: `backend` · `frontend/apps/web`)를 후보로 보여 준다.
|
|
80
81
|
후보가 **둘 이상**이면 각각 근거와 함께 "이 폴더를 영역으로 둘까요?"를 한 번에 묻고, 답대로 `lantern parts add <폴더>` · `lantern parts ignore <폴더>`.
|
|
81
82
|
영역이 둘 이상이면 영역마다 `AGENTS.md`(그 언어의 컨벤션 · 그 폴더의 확인 명령)가 생기고, 루트 AGENTS.md에는 영역 지도가 남는다. 후보가 하나 이하면 묻지 않는다.
|
|
82
83
|
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
"CLAUDE.local.md keeps Claude Code from reading AGENTS.md — set Project instructions to claude-md-and-agents-md in /config (or ~/.claude/settings.json)": {ko: "CLAUDE.local.md가 있으면 Claude Code가 AGENTS.md를 읽지 않습니다 — /config(또는 ~/.claude/settings.json)에서 Project instructions를 claude-md-and-agents-md로 바꾸세요"}
|
|
580
580
|
"Claude Code reads AGENTS.md itself": {ko: "Claude Code가 AGENTS.md를 직접 읽습니다"}
|
|
581
581
|
"{items}: not handed to {tools} — only the AGENTS.md right in a part's folder is; move what matters there (lantern parts)": {ko: "{items}: {tools}에는 자동으로 전달되지 않습니다 — 영역 폴더 바로 아래의 AGENTS.md만 전달됩니다. 필요한 내용은 거기로 옮기세요 (lantern parts)"}
|
|
582
|
-
"
|
|
582
|
+
"Sub-projects that could get their own rules (parts), not decided yet: {items} — lantern parts": {ko: "자기 규칙을 둘 만한 하위 프로젝트(영역 후보)를 아직 정하지 않았습니다: {items} — lantern parts"}
|
|
583
583
|
"{label}: the {launch} command isn't on PATH — can't check its version": {ko: "{label}: {launch} 명령이 PATH에 없어 버전을 확인하지 못했습니다"}
|
|
584
584
|
"{label} {version} is older than {min} — update it (some features won't work)": {ko: "{label} {version}은 {min}보다 낮습니다 — 업데이트하세요 (일부 기능이 동작하지 않습니다)"}
|
|
585
585
|
"{label} {version} is newer than the last checked {verified} — if hooks misbehave, the hook rows below show it": {ko: "{label} {version}은 마지막으로 확인한 {verified}보다 새 버전입니다 — hook이 이상하면 아래 hook 줄에 나타납니다"}
|
|
@@ -811,16 +811,20 @@
|
|
|
811
811
|
"--map \"old section=new section\"": {ko: "--map \"옛 칸=새 칸\""}
|
|
812
812
|
|
|
813
813
|
# cli/core.py
|
|
814
|
-
"
|
|
815
|
-
"
|
|
814
|
+
"Split the repository into sub-projects (parts), each with its own AI rules (AGENTS.md) — candidates · add · ignore": {ko: "저장소를 하위 프로젝트(영역)로 나누기 — 영역마다 AI 규칙 파일(AGENTS.md)을 따로 둡니다 · 후보 보기 · add · ignore"}
|
|
815
|
+
"A part is a sub-project inside this repository: a folder such as backend (Python) or frontend (TypeScript) with its own language and check commands.": {ko: "영역이란 저장소 안의 하위 프로젝트입니다. backend(Python) · frontend(TypeScript)처럼 언어와 검사 명령이 따로인 폴더를 말합니다."}
|
|
816
|
+
"With two or more parts, each gets its own AGENTS.md, and the AI follows that folder's rules while it works there.": {ko: "영역을 둘 이상 정하면 영역마다 AGENTS.md가 생기고, AI는 그 폴더에서 일할 때 그 폴더의 규칙을 따릅니다."}
|
|
817
|
+
"Candidates — folders with their own package file (pyproject.toml · package.json …):": {ko: "후보 — 패키지 설정 파일(pyproject.toml · package.json 등)이 따로 있는 폴더:"}
|
|
818
|
+
"No sub-folder has its own package file (pyproject.toml · package.json …) — no need to split; the root AGENTS.md covers the whole project": {ko: "패키지 설정 파일(pyproject.toml · package.json 등)을 따로 가진 하위 폴더가 없습니다 — 나눌 필요 없이 루트 AGENTS.md 하나로 프로젝트 전체를 다룹니다"}
|
|
816
819
|
"part": {ko: "영역"}
|
|
817
820
|
"ignored": {ko: "빼 둠"}
|
|
818
821
|
"not decided": {ko: "정하지 않음"}
|
|
819
|
-
"
|
|
820
|
-
"
|
|
822
|
+
"inside part {path}": {ko: "영역 {path}에 포함"}
|
|
823
|
+
"no package file found any more": {ko: "패키지 설정 파일이 더는 없음"}
|
|
824
|
+
"→ make it a part: lantern parts add <folder> · not a part: lantern parts ignore <folder>": {ko: "→ 영역으로 정하기: lantern parts add <폴더> · 영역 아님: lantern parts ignore <폴더>"}
|
|
821
825
|
"✔ Part {path} ({items}) — lantern upgrade writes its AGENTS.md": {ko: "✔ 영역 {path} ({items}) — lantern upgrade가 그 AGENTS.md를 씁니다"}
|
|
822
826
|
"✔ {path} is not a part — not asked again": {ko: "✔ {path}는 영역이 아닙니다 — 다시 묻지 않습니다"}
|
|
823
|
-
"{path} has no
|
|
827
|
+
"{path} has no package file of a known language (pyproject.toml · package.json …) — it can't be a part": {ko: "{path}에 알려진 언어의 패키지 설정 파일(pyproject.toml · package.json 등)이 없습니다 — 영역이 될 수 없습니다"}
|
|
824
828
|
"{lines:,} lines of code (without tests · docs) → {label} ({size})": {ko: "코드 {lines:,}줄 (테스트 · 문서 빼고) → {label} ({size})"}
|
|
825
829
|
"Next: lantern principles show → lantern upgrade (into AGENTS.md · the principles document)": {ko: "다음: lantern principles show → lantern upgrade (AGENTS.md · 개발 원칙 문서에 반영)"}
|
|
826
830
|
"Show · write · edit lantern.yaml · documents to turn on": {ko: "lantern.yaml 보기 · 쓰기 · 고치기 · 켜질 문서"}
|
|
@@ -1005,7 +1009,7 @@
|
|
|
1005
1009
|
"lantern work stage W-012 <stage>": {ko: "lantern work stage W-012 <단계>"}
|
|
1006
1010
|
|
|
1007
1011
|
# core/profile.py
|
|
1008
|
-
" # parts with their own
|
|
1012
|
+
" # parts = sub-projects with their own package file (pyproject.toml · package.json …) — lantern parts (each gets its own AGENTS.md)": {ko: " # 영역 = 패키지 설정 파일(pyproject.toml · package.json 등)이 따로 있는 하위 프로젝트 — lantern parts (영역마다 AGENTS.md가 생긴다)"}
|
|
1009
1013
|
"code.ignored_parts: must be a list of folders": {ko: "code.ignored_parts: 폴더 목록이어야 합니다"}
|
|
1010
1014
|
"code.parts {path}: '{lang}' is not a known language ({items})": {ko: "code.parts {path}: '{lang}'은 알 수 없는 언어입니다 ({items})"}
|
|
1011
1015
|
"code.parts: each part needs a folder path inside the project (e.g. path: backend)": {ko: "code.parts: 영역마다 프로젝트 안의 폴더 경로가 필요합니다 (예: path: backend)"}
|
|
@@ -23,7 +23,7 @@ from typing import Any
|
|
|
23
23
|
from ..core import principles
|
|
24
24
|
from ..core import profile as profile_mod
|
|
25
25
|
from ..core.messages import msg
|
|
26
|
-
from ..core.project import Project,
|
|
26
|
+
from ..core.project import Project, worktree_files
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
@dataclass
|
|
@@ -34,7 +34,8 @@ class PartStatus:
|
|
|
34
34
|
path: The folder, relative to the project root.
|
|
35
35
|
languages: Its languages.
|
|
36
36
|
evidence: The manifest files that show it ([] for a recorded part no longer found).
|
|
37
|
-
state: "added", "ignored"
|
|
37
|
+
state: "added", "ignored", "new" (not decided yet) or "inside" (a folder inside a recorded part).
|
|
38
|
+
owner: For "inside", the part that holds it.
|
|
38
39
|
|
|
39
40
|
Example:
|
|
40
41
|
>>> PartStatus("backend", ["python"], ["pyproject.toml"], "new").state
|
|
@@ -45,6 +46,7 @@ class PartStatus:
|
|
|
45
46
|
languages: list[str]
|
|
46
47
|
evidence: list[str]
|
|
47
48
|
state: str
|
|
49
|
+
owner: str = ""
|
|
48
50
|
|
|
49
51
|
|
|
50
52
|
def recorded(project: Project) -> list[dict[str, Any]]:
|
|
@@ -72,23 +74,36 @@ def statuses(project: Project) -> list[PartStatus]:
|
|
|
72
74
|
Returns:
|
|
73
75
|
Sorted by path.
|
|
74
76
|
|
|
77
|
+
A candidate inside a recorded part (e.g. the member frontend/apps/web of the recorded workspace
|
|
78
|
+
frontend) is not asked about: the part that holds it already decides its rules.
|
|
79
|
+
|
|
75
80
|
Example:
|
|
76
81
|
>>> [(s.path, s.state) for s in statuses(project)] # doctest: +SKIP
|
|
77
|
-
[('analysis', 'ignored'), ('backend', 'added'), ('frontend/apps/web', '
|
|
82
|
+
[('analysis', 'ignored'), ('backend', 'added'), ('frontend', 'added'), ('frontend/apps/web', 'inside')]
|
|
78
83
|
"""
|
|
79
|
-
files =
|
|
84
|
+
files = worktree_files(project.root)
|
|
80
85
|
found = {c.path: c for c in principles.part_candidates(project.root, files)}
|
|
81
86
|
added = {p["path"]: p for p in recorded(project)}
|
|
82
87
|
ignored = set(project.profile.get("code.ignored_parts") or [])
|
|
83
88
|
out = []
|
|
84
89
|
for path in sorted(set(found) | set(added)):
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
owner = max((a for a in added if path.startswith(a + "/")), key=len, default="")
|
|
91
|
+
if path in added:
|
|
92
|
+
langs, evidence, state = list(added[path].get("languages") or []), _own_manifests(project, files, path), "added"
|
|
93
|
+
else:
|
|
94
|
+
cand = found[path] # only recorded parts can be missing from the candidates
|
|
95
|
+
langs, evidence = cand.languages, cand.evidence
|
|
96
|
+
state = "inside" if owner else "ignored" if path in ignored else "new"
|
|
97
|
+
out.append(PartStatus(path, langs, evidence, state, owner if state == "inside" else ""))
|
|
89
98
|
return out
|
|
90
99
|
|
|
91
100
|
|
|
101
|
+
def _own_manifests(project: Project, files: list[str], path: str) -> list[str]:
|
|
102
|
+
"""The manifest files right in a folder (also for a workspace root, whose members are the usual candidates)."""
|
|
103
|
+
own = [f for f in files if f.startswith(path + "/") and "/" not in f[len(path) + 1 :]]
|
|
104
|
+
return next((c.evidence for c in principles.part_candidates(project.root, own) if c.path == path), [])
|
|
105
|
+
|
|
106
|
+
|
|
92
107
|
def add(project: Project, path: str) -> dict[str, Any]:
|
|
93
108
|
"""Record a folder as a part, with the languages and check commands found in it.
|
|
94
109
|
|
|
@@ -113,7 +128,9 @@ def add(project: Project, path: str) -> dict[str, Any]:
|
|
|
113
128
|
path = path.strip("/")
|
|
114
129
|
found = principles.detect(project.root / path)
|
|
115
130
|
if not found.languages:
|
|
116
|
-
raise ValueError(
|
|
131
|
+
raise ValueError(
|
|
132
|
+
msg("{path} has no package file of a known language (pyproject.toml · package.json …) — it can't be a part", path=path)
|
|
133
|
+
)
|
|
117
134
|
build = found.commands(fill_defaults=False) or found.commands(fill_defaults=True)
|
|
118
135
|
build.update(_from_root(project, path)) # what a person already set for this folder wins
|
|
119
136
|
part = {"path": path, "languages": found.languages, "build": build}
|
|
@@ -14,7 +14,7 @@ from typing import TYPE_CHECKING, Any
|
|
|
14
14
|
from .. import resources
|
|
15
15
|
from ..core import principles, templating
|
|
16
16
|
from ..core.profile import Profile
|
|
17
|
-
from ..core.project import Project,
|
|
17
|
+
from ..core.project import Project, worktree_files
|
|
18
18
|
from .skills import PROFILE_TOKEN, body_context, command_prefix, rewrite_commands
|
|
19
19
|
|
|
20
20
|
if TYPE_CHECKING:
|
|
@@ -115,7 +115,7 @@ def principles_section(profile: Profile) -> str:
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
def nested_agents(project: Project) -> list[str]:
|
|
118
|
-
"""List the AGENTS.md files below the project root (tracked or new, not ignored).
|
|
118
|
+
"""List the AGENTS.md files below the project root (tracked or new, not ignored, not deleted).
|
|
119
119
|
|
|
120
120
|
Args:
|
|
121
121
|
project: The project.
|
|
@@ -127,8 +127,7 @@ def nested_agents(project: Project) -> list[str]:
|
|
|
127
127
|
>>> nested_agents(project) # doctest: +SKIP
|
|
128
128
|
['backend/app/AGENTS.md']
|
|
129
129
|
"""
|
|
130
|
-
|
|
131
|
-
return sorted(line for line in r.stdout.splitlines() if line) if r.returncode == 0 else []
|
|
130
|
+
return sorted(worktree_files(project.root, "*/AGENTS.md"))
|
|
132
131
|
|
|
133
132
|
|
|
134
133
|
def active_parts(profile: Profile) -> list[dict[str, Any]]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lanternspec
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Spec-driven development for agentic software engineering
|
|
5
5
|
Author: Jihyeok Jeong
|
|
6
6
|
License-Expression: MIT
|
|
@@ -239,7 +239,7 @@ Picks design principles and code conventions from a table, based on the project
|
|
|
239
239
|
|
|
240
240
|
- Languages: Python · TypeScript · Swift · Rust · Go
|
|
241
241
|
- The essentials go into `AGENTS.md`; the full explanation goes into `Development Principles.md`.
|
|
242
|
-
- When two or more folders have their own
|
|
242
|
+
- When two or more folders have their own package file (`pyproject.toml`, `package.json` …) (such as `backend` and `web`, `lantern parts`), each part gets its own `AGENTS.md` with its language conventions and check commands, and hooks hand it to tools that don't read folder `AGENTS.md` files themselves (Codex · Antigravity).
|
|
243
243
|
- In existing projects, lint and format settings already in use are recorded, never changed.
|
|
244
244
|
- When the code grows past a size boundary, `lantern doctor` asks whether to raise the principles one level.
|
|
245
245
|
- The language of code comments can be set apart from the documents with `project.comment_language`.
|
|
@@ -52,7 +52,7 @@ def test_people_decide_which_candidates_are_parts(repo):
|
|
|
52
52
|
_, out = repo("parts")
|
|
53
53
|
assert "backend (python) · 정하지 않음 · pyproject.toml" in out and "lantern parts add" in out
|
|
54
54
|
_, doctor = repo("doctor", ok=False)
|
|
55
|
-
assert "영역
|
|
55
|
+
assert "하위 프로젝트(영역 후보)를 아직 정하지 않았습니다: analysis, backend, web" in doctor
|
|
56
56
|
_, out = repo("parts", "add", "backend")
|
|
57
57
|
assert "✔ 영역 backend (python)" in out
|
|
58
58
|
repo("parts", "add", "web")
|
|
@@ -63,7 +63,7 @@ def test_people_decide_which_candidates_are_parts(repo):
|
|
|
63
63
|
_, out = repo("parts")
|
|
64
64
|
assert "analysis (python) · 빼 둠" in out and "lantern parts add" not in out
|
|
65
65
|
code, out = repo("parts", "add", "docs", ok=False)
|
|
66
|
-
assert code != 0 and "
|
|
66
|
+
assert code != 0 and "패키지 설정 파일(pyproject.toml · package.json 등)이 없습니다" in out
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
def test_two_parts_get_their_own_agents_md_and_the_root_keeps_a_map(repo):
|
|
@@ -108,3 +108,36 @@ def test_check_commands_a_person_set_for_the_folder_are_taken_over(repo):
|
|
|
108
108
|
build = yaml.safe_load((repo.root / "lantern.yaml").read_text(encoding="utf-8"))["code"]["parts"][0]["build"]
|
|
109
109
|
assert build["lint"] == "uv run ruff check app/" and build["test"] == "uv run pytest"
|
|
110
110
|
assert build["format"] == "uv run ruff format ." # nothing set for it: the folder's configured tool
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def test_a_recorded_workspace_root_covers_its_members(repo):
|
|
114
|
+
_two_parts(repo)
|
|
115
|
+
(repo.root / "frontend/apps/web").mkdir(parents=True)
|
|
116
|
+
(repo.root / "frontend/package.json").write_text('{"name": "front"}\n', encoding="utf-8")
|
|
117
|
+
(repo.root / "frontend/pnpm-workspace.yaml").write_text("packages: [apps/*]\n", encoding="utf-8")
|
|
118
|
+
(repo.root / "frontend/apps/web/package.json").write_text('{"name": "web"}\n', encoding="utf-8")
|
|
119
|
+
repo("parts", "add", "backend")
|
|
120
|
+
repo("parts", "add", "frontend")
|
|
121
|
+
repo("parts", "ignore", "web")
|
|
122
|
+
repo("parts", "ignore", "analysis")
|
|
123
|
+
_, out = repo("parts")
|
|
124
|
+
assert "frontend (typescript) · 영역 · package.json" in out # its own manifest, though its member is the usual candidate
|
|
125
|
+
assert "frontend/apps/web (typescript) · 영역 frontend에 포함" in out and "lantern parts add" not in out
|
|
126
|
+
_, doctor = repo("doctor", ok=False)
|
|
127
|
+
assert "아직 정하지 않았습니다" not in doctor
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def test_a_deleted_folder_agents_md_is_no_longer_warned_about(repo):
|
|
131
|
+
_two_parts(repo)
|
|
132
|
+
repo("install", "--tools", "claude,codex")
|
|
133
|
+
repo("parts", "add", "backend")
|
|
134
|
+
repo("parts", "add", "web")
|
|
135
|
+
(repo.root / "backend/app").mkdir()
|
|
136
|
+
(repo.root / "backend/app/AGENTS.md").write_text("# 앱 규칙\n", encoding="utf-8")
|
|
137
|
+
repo.git("add", "-A")
|
|
138
|
+
repo.git("commit", "-qm", "nested rules")
|
|
139
|
+
_, doctor = repo("doctor", ok=False)
|
|
140
|
+
assert "backend/app/AGENTS.md: " in doctor
|
|
141
|
+
(repo.root / "backend/app/AGENTS.md").unlink() # deleted, not committed yet
|
|
142
|
+
_, doctor = repo("doctor", ok=False)
|
|
143
|
+
assert "backend/app/AGENTS.md" not in doctor
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/conventions/typescript.yaml
RENAMED
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/agents/AGENTS.md
RENAMED
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md
RENAMED
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md
RENAMED
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md
RENAMED
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md
RENAMED
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md
RENAMED
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md
RENAMED
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/ADR.md
RENAMED
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/API.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lanternspec-0.2.3 → lanternspec-0.2.5}/src/lanternspec/resources/locales/en/templates/Data.md
RENAMED
|
File without changes
|