lanternspec 0.2.5__tar.gz → 0.2.7__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.5/src/lanternspec.egg-info → lanternspec-0.2.7}/PKG-INFO +20 -3
- {lanternspec-0.2.5 → lanternspec-0.2.7}/README.md +19 -2
- {lanternspec-0.2.5 → lanternspec-0.2.7}/pyproject.toml +1 -1
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/check/check_docs.py +51 -2
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/check/doctor.py +72 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/check/layout.py +2 -1
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/check/templates.py +1 -1
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/cli/__init__.py +2 -2
- lanternspec-0.2.7/src/lanternspec/cli/refs.py +335 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/names.py +7 -1
- lanternspec-0.2.7/src/lanternspec/core/outline.py +248 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/profile.py +39 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/sections.py +17 -5
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/state.py +9 -1
- lanternspec-0.2.7/src/lanternspec/refs/__init__.py +6 -0
- lanternspec-0.2.7/src/lanternspec/refs/domain.py +472 -0
- lanternspec-0.2.7/src/lanternspec/refs/index.py +556 -0
- lanternspec-0.2.7/src/lanternspec/refs/rules.py +260 -0
- lanternspec-0.2.7/src/lanternspec/refs/sources.py +285 -0
- lanternspec-0.2.7/src/lanternspec/refs/terms.py +452 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/obsidian.py +8 -7
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/agents/AGENTS.md +2 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md +3 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-design/SKILL.md +3 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/skills/l-domain/SKILL.md +38 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md +6 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/skills/l-ref/SKILL.md +53 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/skills/l-ref/domain.md +27 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/skills/l-ref/rules.md +40 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/skills/l-ref/terms.md +31 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md +1 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-template/SKILL.md +4 -2
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/ADR.md +7 -6
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/API.md +6 -3
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Architecture.md +5 -4
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Collaboration Rules.md +5 -4
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Competency Card.md +46 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Data.md +6 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Debt Card.md +50 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Design.md +70 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Docs MOC.md +28 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Feature List.md +6 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Glossary.md +31 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Idea.md +47 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Known Tech.md +6 -3
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Legacy Map.md +9 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Log.md +48 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Meeting Notes.md +4 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Plan.md +73 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Project Definition.md +54 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Screens.md +6 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Session Log.md +29 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Tasks.md +8 -6
- lanternspec-0.2.7/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +36 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/agents/AGENTS.md +2 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-build/SKILL.md +3 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-design/SKILL.md +3 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/skills/l-domain/SKILL.md +38 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-plan/SKILL.md +6 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/skills/l-ref/SKILL.md +53 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/skills/l-ref/domain.md +27 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/skills/l-ref/rules.md +40 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/skills/l-ref/terms.md +31 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-task/SKILL.md +1 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-template/SKILL.md +4 -2
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates/ADR.md +7 -6
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates/API.md +6 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//352/260/234/353/260/234/353/254/270/354/204/234 MOC.md" +28 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/212/245 /353/252/251/353/241/235.md" +6 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md +48 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/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" +9 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md +73 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates//353/215/260/354/235/264/355/204/260.md +6 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//353/266/200/354/261/204 /354/271/264/353/223/234.md" +50 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md +70 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//354/204/270/354/205/230 /352/270/260/353/241/235.md" +29 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates//354/213/234/354/212/244/355/205/234 /352/265/254/354/241/260.md" +5 -4
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates//354/225/204/353/212/224 /352/270/260/354/210/240.md" +6 -3
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264.md +47 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//354/227/255/353/237/211 /354/271/264/353/223/234.md" +46 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//354/232/251/354/226/264/354/247/221.md +31 -0
- lanternspec-0.2.7/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" +36 -0
- lanternspec-0.2.7/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" +54 -0
- lanternspec-0.2.7/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +36 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates//355/230/221/354/227/205 /352/267/234/354/271/231.md" +5 -4
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates//355/231/224/353/251/264.md +6 -3
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates//355/232/214/354/235/230/353/241/235.md +4 -3
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/messages.yaml +134 -3
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/names.yaml +14 -1
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/agent_hooks.py +89 -2
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/base.py +3 -2
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/claude.py +10 -3
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/close.py +14 -1
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/install.py +35 -3
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/rules.py +9 -4
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/skills.py +2 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/scaffold.py +4 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7/src/lanternspec.egg-info}/PKG-INFO +20 -3
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec.egg-info/SOURCES.txt +21 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_checks.py +7 -4
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_core.py +1 -1
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_english.py +1 -1
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_install_and_aux.py +29 -12
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_layout.py +3 -2
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_obsidian.py +1 -1
- lanternspec-0.2.7/tests/test_refs.py +468 -0
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Competency Card.md +0 -42
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Debt Card.md +0 -46
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Design.md +0 -61
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Docs MOC.md +0 -26
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Idea.md +0 -44
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Log.md +0 -45
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Plan.md +0 -59
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Project Definition.md +0 -50
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Session Log.md +0 -27
- lanternspec-0.2.5/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +0 -29
- 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 -26
- lanternspec-0.2.5/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md +0 -45
- lanternspec-0.2.5/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md +0 -59
- lanternspec-0.2.5/src/lanternspec/resources/locales/ko/templates//353/266/200/354/261/204 /354/271/264/353/223/234.md" +0 -46
- lanternspec-0.2.5/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md +0 -61
- lanternspec-0.2.5/src/lanternspec/resources/locales/ko/templates//354/204/270/354/205/230 /352/270/260/353/241/235.md" +0 -27
- lanternspec-0.2.5/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264.md +0 -44
- lanternspec-0.2.5/src/lanternspec/resources/locales/ko/templates//354/227/255/353/237/211 /354/271/264/353/223/234.md" +0 -42
- 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 -29
- 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 -50
- lanternspec-0.2.5/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +0 -34
- {lanternspec-0.2.5 → lanternspec-0.2.7}/LICENSE +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/setup.cfg +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/__init__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/__main__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/check/__init__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/check/budget.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/check/githooks.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/check/legacy.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/cli/check.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/cli/common.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/cli/core.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/cli/learn.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/cli/report.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/cli/tools.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/cli/work.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/__init__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/enums.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/frontmatter.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/links.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/messages.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/meta.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/new_id.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/principles.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/project.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/taskfile.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/core/templating.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/learn/__init__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/learn/debt.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/learn/knowledge/__init__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/learn/knowledge/drafts.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/learn/knowledge/mcp_server.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/learn/knowledge/notion.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/learn/knowledge/obsidian.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/__init__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/doc_map.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/evaluate.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/harness.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/principles_doc.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/resume.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/scan.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/sections_doc.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/status.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/report/views.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/__init__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/conventions/go.yaml +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/conventions/python.yaml +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/conventions/rust.yaml +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/conventions/swift.yaml +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/conventions/typescript.yaml +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Deployment.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Platform Integration.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/Server Operations.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/en/templates/_meta/enums.yaml +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates/_meta/enums.yaml +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/resources/locales/ko/templates//353/260/260/355/217/254.md" +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/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.5 → lanternspec-0.2.7}/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.5 → lanternspec-0.2.7}/src/lanternspec/resources/principles.yaml +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/__init__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/antigravity.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/codex.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/docs_mode.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/health.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/parts.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/runlog.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/tools/sessions.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/__init__.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/branches.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/dbml.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/epic_rules.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/ideas.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/pack.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/progress.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/screen.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/stages.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec/work/tasks.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec.egg-info/dependency_links.txt +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec.egg-info/entry_points.txt +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec.egg-info/requires.txt +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/src/lanternspec.egg-info/top_level.txt +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_budget.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_enums_single_source.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_git.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_later_features.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_learning_line.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_messages.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_name_overlap.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_names.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_part_delivery.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_parts.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_principles.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_principles_data.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_release_script.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_resume.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_skill_commands.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/tests/test_tool_health.py +0 -0
- {lanternspec-0.2.5 → lanternspec-0.2.7}/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.7
|
|
4
4
|
Summary: Spec-driven development for agentic software engineering
|
|
5
5
|
Author: Jihyeok Jeong
|
|
6
6
|
License-Expression: MIT
|
|
@@ -125,6 +125,8 @@ flowchart LR
|
|
|
125
125
|
| `/l-map` | updates the MOC (document map) | `Docs MOC.md` |
|
|
126
126
|
| `/l-adr` | records decisions that are hard to reverse | `Decisions/ADR-001 …` |
|
|
127
127
|
| `/l-resume` | carries on an earlier conversation — from any AI tool, from where it stopped even if it was cut off | — |
|
|
128
|
+
| `/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
|
+
| `/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") |
|
|
128
130
|
|
|
129
131
|
### How it works
|
|
130
132
|
- **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.
|
|
@@ -145,10 +147,11 @@ docs/
|
|
|
145
147
|
├─ 2. Work/W-001 …/ plan · design · tasks · log — the only place edited while working
|
|
146
148
|
│ └─ Archive/ archive
|
|
147
149
|
├─ 3. Current State/ what the system looks like now — updated only when work is done, after approval
|
|
148
|
-
│ └─ Rules/ · Decisions/ · Deployment and Operations/ …
|
|
150
|
+
│ └─ Rules/ · Decisions/ · Deployment and Operations/ · Glossary …
|
|
149
151
|
├─ 4. Operations/ reports · session logs · (teams of 2+) meeting notes
|
|
150
152
|
├─ 5. Legacy Docs/ (existing projects) original documents, kept unchanged
|
|
151
|
-
|
|
153
|
+
├─ 📒 Debt/ understanding debt — one card per debt
|
|
154
|
+
└─ 📚 Domain Knowledge/ laws · policies · business rules (the Domain Knowledge MOC shows the index)
|
|
152
155
|
```
|
|
153
156
|
|
|
154
157
|
Which documents you get depends on your `/l-init` answers (`lantern.yaml`; check with `lantern profile docs`).
|
|
@@ -207,6 +210,19 @@ lantern hooks install # turns on the commit and push checks (/l-init
|
|
|
207
210
|
lantern install --ci # also checks on GitHub (turn off with --no-ci)
|
|
208
211
|
```
|
|
209
212
|
|
|
213
|
+
## References — company rules, terms and domain knowledge
|
|
214
|
+
|
|
215
|
+
Material people already have stays in its own form and is indexed by section, so the AI reads only the sections it needs (`/l-ref`). It can live inside the project or outside it (`~/…`).
|
|
216
|
+
|
|
217
|
+
| Material | When it is read | How |
|
|
218
|
+
|---|---|---|
|
|
219
|
+
| Company rules | always | each section's scope and strength are approved, then it goes word for word into the matching `AGENTS.md` |
|
|
220
|
+
| Terms | when needed | `lantern check` finds the glossary's "words to avoid" in the documents |
|
|
221
|
+
| Domain knowledge | only the section, only when needed | sections picked from the `📚 Domain Knowledge/` index are attached to a work's plan and read when their task starts |
|
|
222
|
+
|
|
223
|
+
- **Outside material never reaches git.** Its paths, titles and index all stay in `.lantern/`.
|
|
224
|
+
- **Sections are read by address.** `lantern ref read "Privacy#Retention period"`
|
|
225
|
+
|
|
210
226
|
## Managing unfamiliar tech — knowledge base and understanding debt
|
|
211
227
|
|
|
212
228
|
When the AI uses a technology you don't know, LanternSpec compares it with the notes in your knowledge base and sorts it into three groups.
|
|
@@ -271,6 +287,7 @@ work task next [--all]|start|done|ac|list|estimate · task add [--parallel
|
|
|
271
287
|
learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list · mcp
|
|
272
288
|
reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] · sync adopt · eval · obsidian plugins
|
|
273
289
|
templates template list|lint|level|bump|outdated|diff|usage|new|migrate · legacy adopt|todos
|
|
290
|
+
references ref list|check|index|read · tag|exclude|rules · terms|term|glossary|candidate · domain|describe|attach
|
|
274
291
|
git hooks install|uninstall|status · docs-mode local|shared
|
|
275
292
|
wrap-up close <skill>
|
|
276
293
|
```
|
|
@@ -110,6 +110,8 @@ flowchart LR
|
|
|
110
110
|
| `/l-map` | updates the MOC (document map) | `Docs MOC.md` |
|
|
111
111
|
| `/l-adr` | records decisions that are hard to reverse | `Decisions/ADR-001 …` |
|
|
112
112
|
| `/l-resume` | carries on an earlier conversation — from any AI tool, from where it stopped even if it was cut off | — |
|
|
113
|
+
| `/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
|
+
| `/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") |
|
|
113
115
|
|
|
114
116
|
### How it works
|
|
115
117
|
- **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.
|
|
@@ -130,10 +132,11 @@ docs/
|
|
|
130
132
|
├─ 2. Work/W-001 …/ plan · design · tasks · log — the only place edited while working
|
|
131
133
|
│ └─ Archive/ archive
|
|
132
134
|
├─ 3. Current State/ what the system looks like now — updated only when work is done, after approval
|
|
133
|
-
│ └─ Rules/ · Decisions/ · Deployment and Operations/ …
|
|
135
|
+
│ └─ Rules/ · Decisions/ · Deployment and Operations/ · Glossary …
|
|
134
136
|
├─ 4. Operations/ reports · session logs · (teams of 2+) meeting notes
|
|
135
137
|
├─ 5. Legacy Docs/ (existing projects) original documents, kept unchanged
|
|
136
|
-
|
|
138
|
+
├─ 📒 Debt/ understanding debt — one card per debt
|
|
139
|
+
└─ 📚 Domain Knowledge/ laws · policies · business rules (the Domain Knowledge MOC shows the index)
|
|
137
140
|
```
|
|
138
141
|
|
|
139
142
|
Which documents you get depends on your `/l-init` answers (`lantern.yaml`; check with `lantern profile docs`).
|
|
@@ -192,6 +195,19 @@ lantern hooks install # turns on the commit and push checks (/l-init
|
|
|
192
195
|
lantern install --ci # also checks on GitHub (turn off with --no-ci)
|
|
193
196
|
```
|
|
194
197
|
|
|
198
|
+
## References — company rules, terms and domain knowledge
|
|
199
|
+
|
|
200
|
+
Material people already have stays in its own form and is indexed by section, so the AI reads only the sections it needs (`/l-ref`). It can live inside the project or outside it (`~/…`).
|
|
201
|
+
|
|
202
|
+
| Material | When it is read | How |
|
|
203
|
+
|---|---|---|
|
|
204
|
+
| Company rules | always | each section's scope and strength are approved, then it goes word for word into the matching `AGENTS.md` |
|
|
205
|
+
| Terms | when needed | `lantern check` finds the glossary's "words to avoid" in the documents |
|
|
206
|
+
| Domain knowledge | only the section, only when needed | sections picked from the `📚 Domain Knowledge/` index are attached to a work's plan and read when their task starts |
|
|
207
|
+
|
|
208
|
+
- **Outside material never reaches git.** Its paths, titles and index all stay in `.lantern/`.
|
|
209
|
+
- **Sections are read by address.** `lantern ref read "Privacy#Retention period"`
|
|
210
|
+
|
|
195
211
|
## Managing unfamiliar tech — knowledge base and understanding debt
|
|
196
212
|
|
|
197
213
|
When the AI uses a technology you don't know, LanternSpec compares it with the notes in your knowledge base and sorts it into three groups.
|
|
@@ -256,6 +272,7 @@ work task next [--all]|start|done|ac|list|estimate · task add [--parallel
|
|
|
256
272
|
learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list · mcp
|
|
257
273
|
reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] · sync adopt · eval · obsidian plugins
|
|
258
274
|
templates template list|lint|level|bump|outdated|diff|usage|new|migrate · legacy adopt|todos
|
|
275
|
+
references ref list|check|index|read · tag|exclude|rules · terms|term|glossary|candidate · domain|describe|attach
|
|
259
276
|
git hooks install|uninstall|status · docs-mode local|shared
|
|
260
277
|
wrap-up close <skill>
|
|
261
278
|
```
|
|
@@ -559,7 +559,8 @@ def check_file(project: Project, path: Path, text: str, ctx: _Ctx) -> list[Findi
|
|
|
559
559
|
rel,
|
|
560
560
|
"template-major",
|
|
561
561
|
msg(
|
|
562
|
-
"Template '{tname}' changed a lot
|
|
562
|
+
"Template '{tname}' changed a lot since this document was made "
|
|
563
|
+
"(template version {get} → {value}, not the LanternSpec version)",
|
|
563
564
|
tname=tname,
|
|
564
565
|
get=meta.get("template_version"),
|
|
565
566
|
value=ctx.templates.versions[tname],
|
|
@@ -575,13 +576,15 @@ def check_file(project: Project, path: Path, text: str, ctx: _Ctx) -> list[Findi
|
|
|
575
576
|
rel,
|
|
576
577
|
"template-minor",
|
|
577
578
|
msg(
|
|
578
|
-
"Template '{tname}' changed ({get} → {value}
|
|
579
|
+
"Template '{tname}' changed since this document was made (template version {get} → {value}, "
|
|
580
|
+
"not the LanternSpec version) — its '{section}' section says what changed",
|
|
579
581
|
tname=tname,
|
|
580
582
|
get=meta.get("template_version"),
|
|
581
583
|
value=ctx.templates.versions[tname],
|
|
582
584
|
section=project.names.marker("changelog"),
|
|
583
585
|
),
|
|
584
586
|
1,
|
|
587
|
+
msg('To bring this document along: lantern template migrate "{docs_rel}"', docs_rel=project.docs_rel(path)),
|
|
585
588
|
)
|
|
586
589
|
)
|
|
587
590
|
|
|
@@ -605,6 +608,9 @@ def check_file(project: Project, path: Path, text: str, ctx: _Ctx) -> list[Findi
|
|
|
605
608
|
if tname and tname in ctx.templates.texts and not generated and not disabled:
|
|
606
609
|
in_template = set(missing_sections(project, tname, ctx.templates.texts[tname]))
|
|
607
610
|
for role in missing_sections(project, tname, text):
|
|
611
|
+
since = project.names.section(role).since
|
|
612
|
+
if since and semver(meta.get("template_version")) < semver(since): # made before the template had it
|
|
613
|
+
continue
|
|
608
614
|
if role not in in_template:
|
|
609
615
|
out.append(section_question(project, path, role, tname, rel, "section-missing"))
|
|
610
616
|
|
|
@@ -730,6 +736,48 @@ def _check_tasks(project: Project, path: Path, text: str, rel: str) -> list[Find
|
|
|
730
736
|
return out
|
|
731
737
|
|
|
732
738
|
|
|
739
|
+
def term_findings(project: Project, paths: list[Path]) -> list[Finding]:
|
|
740
|
+
"""Point out the glossary's words to avoid in documents (the glossary itself and generated documents aside).
|
|
741
|
+
|
|
742
|
+
Args:
|
|
743
|
+
project: The project.
|
|
744
|
+
paths: The documents to look at.
|
|
745
|
+
|
|
746
|
+
Returns:
|
|
747
|
+
One warning per line and word.
|
|
748
|
+
|
|
749
|
+
Example:
|
|
750
|
+
>>> term_findings(project, [path])[0].message # doctest: +SKIP
|
|
751
|
+
"'유저' 대신 '회원' (용어집)"
|
|
752
|
+
"""
|
|
753
|
+
from ..refs import terms as terms_mod
|
|
754
|
+
|
|
755
|
+
terms, _ = terms_mod.merged(project)
|
|
756
|
+
if not any(t.avoid for t in terms):
|
|
757
|
+
return []
|
|
758
|
+
glossary = terms_mod.glossary_path(project).resolve()
|
|
759
|
+
out = []
|
|
760
|
+
for p in paths:
|
|
761
|
+
if p.resolve() == glossary:
|
|
762
|
+
continue
|
|
763
|
+
text = read(p)
|
|
764
|
+
if is_generated(frontmatter.parse(text).meta):
|
|
765
|
+
continue
|
|
766
|
+
for line, word, t in terms_mod.avoid_hits(text, terms):
|
|
767
|
+
where = msg("company glossary") if t.company else project.names.file("glossary")
|
|
768
|
+
out.append(
|
|
769
|
+
Finding(
|
|
770
|
+
"warn",
|
|
771
|
+
project.rel(p),
|
|
772
|
+
"avoid-term",
|
|
773
|
+
msg("'{word}' — use '{term}' ({where})", word=word, term=t.term, where=where),
|
|
774
|
+
line,
|
|
775
|
+
t.meaning or None,
|
|
776
|
+
)
|
|
777
|
+
)
|
|
778
|
+
return out
|
|
779
|
+
|
|
780
|
+
|
|
733
781
|
class _Ctx:
|
|
734
782
|
def __init__(self, project: Project) -> None:
|
|
735
783
|
self.enums = project.enums
|
|
@@ -795,6 +843,7 @@ def run(project: Project, paths: Iterable[Path] | None = None, templates: bool =
|
|
|
795
843
|
target_set = set(targets)
|
|
796
844
|
for p in targets:
|
|
797
845
|
findings += check_file(project, p, read(p), ctx)
|
|
846
|
+
findings += term_findings(project, targets)
|
|
798
847
|
# duplicate ids need every doc, not only the targets
|
|
799
848
|
if paths is not None:
|
|
800
849
|
for p in all_docs:
|
|
@@ -97,6 +97,7 @@ def run(project: Project) -> list[tuple[str, str]]:
|
|
|
97
97
|
if path.exists()
|
|
98
98
|
else (BAD, msg("Knowledge store path doesn't exist: {path}", path=path))
|
|
99
99
|
)
|
|
100
|
+
out += _reference_rows(project)
|
|
100
101
|
st = state.load(project)
|
|
101
102
|
if not st.get("version"):
|
|
102
103
|
out.append((WARN, msg("Skills are not installed — lantern install")))
|
|
@@ -153,6 +154,77 @@ def _part_rows(project: Project) -> list[tuple[str, str]]:
|
|
|
153
154
|
return out
|
|
154
155
|
|
|
155
156
|
|
|
157
|
+
def _reference_rows(project: Project) -> list[tuple[str, str]]:
|
|
158
|
+
"""Check the references: missing paths, outside material in git, indexes behind their documents, exclusions matching nothing."""
|
|
159
|
+
from ..refs import index as index_mod
|
|
160
|
+
from ..refs import sources as src_mod
|
|
161
|
+
|
|
162
|
+
found = src_mod.sources(project)
|
|
163
|
+
excluded = [str(x) for x in project.profile.get("references.exclude") or []]
|
|
164
|
+
if not found and not excluded and not project.profile.get("references.outside_rules"):
|
|
165
|
+
return []
|
|
166
|
+
out = [(BAD, msg("references.{kind}: {path} doesn't exist", kind=s.kind, path=s.entry)) for s in found if not s.path.exists()]
|
|
167
|
+
for kind in src_mod.KINDS:
|
|
168
|
+
for entry in project.profile.get(f"references.{kind}") or []:
|
|
169
|
+
if (r := src_mod.resolve(project, str(entry))) and r.outside:
|
|
170
|
+
out.append(
|
|
171
|
+
(
|
|
172
|
+
WARN,
|
|
173
|
+
msg(
|
|
174
|
+
"references.{kind}: {path} is outside the project, but lantern.yaml goes into git — "
|
|
175
|
+
"lantern ref index {kind} {path} moves it to .lantern/",
|
|
176
|
+
kind=kind,
|
|
177
|
+
path=entry,
|
|
178
|
+
),
|
|
179
|
+
)
|
|
180
|
+
)
|
|
181
|
+
private = index_mod.index_file(project, True)
|
|
182
|
+
if git(["ls-files", "--error-unmatch", str(private)], project.root).returncode == 0:
|
|
183
|
+
out.append(
|
|
184
|
+
(
|
|
185
|
+
BAD,
|
|
186
|
+
msg(
|
|
187
|
+
"{path} is in git — it holds the titles of material outside the project; git rm --cached it", path=project.rel(private)
|
|
188
|
+
),
|
|
189
|
+
)
|
|
190
|
+
)
|
|
191
|
+
by_kind: dict[str, list[str]] = {}
|
|
192
|
+
for s in index_mod.stale(project):
|
|
193
|
+
by_kind.setdefault(s.document.source.kind, []).append(s.document.name + ("" if s.never else f" ({len(s.changed)})"))
|
|
194
|
+
for kind, docs in by_kind.items():
|
|
195
|
+
out.append((WARN, msg("{kind}: changed or never indexed since /l-ref: {items} — /l-ref {kind}", kind=kind, items=", ".join(docs))))
|
|
196
|
+
for address in excluded:
|
|
197
|
+
try:
|
|
198
|
+
src_mod.locate(project, address)
|
|
199
|
+
except LookupError:
|
|
200
|
+
out.append((WARN, msg("references.exclude: {address} matches no section any more (renamed?)", address=address)))
|
|
201
|
+
out += _company_rule_rows(project)
|
|
202
|
+
from ..refs.rules import MISSING, missing_outside
|
|
203
|
+
|
|
204
|
+
if missing_outside(project):
|
|
205
|
+
out.append((WARN, msg(MISSING)))
|
|
206
|
+
if found and not out:
|
|
207
|
+
out.append((OK, msg("References: {count} sources, indexes up to date", count=len(found))))
|
|
208
|
+
return out
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
def _company_rule_rows(project: Project) -> list[tuple[str, str]]:
|
|
212
|
+
"""Say which AGENTS.md doesn't hold the approved company rules as they are now."""
|
|
213
|
+
from ..refs import rules as company
|
|
214
|
+
from ..tools.rules import active_parts
|
|
215
|
+
|
|
216
|
+
out = []
|
|
217
|
+
for place in ["", *(p["path"] for p in active_parts(project.profile))]:
|
|
218
|
+
path = project.root / place / "AGENTS.md"
|
|
219
|
+
want = company.agents_section(project, place)
|
|
220
|
+
if not want:
|
|
221
|
+
continue
|
|
222
|
+
have = read(path) if path.exists() else ""
|
|
223
|
+
if want not in have and company.agents_section(project, place, pointers=True) not in have:
|
|
224
|
+
out.append((WARN, msg("{path}: the company rules differ from the approved ones — lantern upgrade", path=project.rel(path))))
|
|
225
|
+
return out
|
|
226
|
+
|
|
227
|
+
|
|
156
228
|
def unseen_note(files: list[str], tools: list[str]) -> str:
|
|
157
229
|
"""Say which folder AGENTS.md files some tools never get, and where to put what matters.
|
|
158
230
|
|
|
@@ -86,10 +86,11 @@ def fixed_places(project: Project) -> dict[str, tuple[str, str | None]]:
|
|
|
86
86
|
('3. 현재 상태/배포 · 운영/배포.md', '배포')
|
|
87
87
|
"""
|
|
88
88
|
from ..learn.debt import STATUS_DOC_ID
|
|
89
|
+
from ..refs.domain import MOC_ID as DOMAIN_MOC_ID
|
|
89
90
|
from ..report.principles_doc import DOC_ID as PRINCIPLES_ID
|
|
90
91
|
from ..work.scaffold import base_template_text
|
|
91
92
|
|
|
92
|
-
generated = {"principles": PRINCIPLES_ID, "debt-status": STATUS_DOC_ID}
|
|
93
|
+
generated = {"principles": PRINCIPLES_ID, "debt-status": STATUS_DOC_ID, "domain-moc": DOMAIN_MOC_ID}
|
|
93
94
|
names = project.names
|
|
94
95
|
out: dict[str, tuple[str, str | None]] = {}
|
|
95
96
|
for key in DOC_FOLDERS:
|
|
@@ -585,7 +585,7 @@ def skeleton_from(project: Project, name: str, source: Path) -> str:
|
|
|
585
585
|
out += [
|
|
586
586
|
"",
|
|
587
587
|
f"{m.group(1)} {current}",
|
|
588
|
-
msg("> [!guide]
|
|
588
|
+
msg("> [!guide] One line on what goes in '{current}'", current=current),
|
|
589
589
|
"",
|
|
590
590
|
]
|
|
591
591
|
filled, table_state = False, ""
|
|
@@ -11,10 +11,10 @@ import sys
|
|
|
11
11
|
|
|
12
12
|
from .. import __version__
|
|
13
13
|
from ..core.messages import msg
|
|
14
|
-
from . import check, core, learn, report, tools, work
|
|
14
|
+
from . import check, core, learn, refs, report, tools, work
|
|
15
15
|
from .common import CliError, Handler
|
|
16
16
|
|
|
17
|
-
GROUPS = (tools, core, work, learn, report, check) # order of the help list
|
|
17
|
+
GROUPS = (tools, core, work, learn, refs, report, check) # order of the help list
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
def build_parser() -> argparse.ArgumentParser:
|