lanternspec 0.2.8__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.
Files changed (236) hide show
  1. {lanternspec-0.2.8/src/lanternspec.egg-info → lanternspec-0.2.10}/PKG-INFO +29 -6
  2. {lanternspec-0.2.8 → lanternspec-0.2.10}/README.md +28 -5
  3. {lanternspec-0.2.8 → lanternspec-0.2.10}/pyproject.toml +1 -1
  4. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/check/githooks.py +33 -8
  5. lanternspec-0.2.10/src/lanternspec/check/pr_check.py +63 -0
  6. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/check.py +20 -0
  7. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/core.py +10 -1
  8. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/report.py +3 -1
  9. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/tools.py +18 -1
  10. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/work.py +20 -3
  11. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/new_id.py +3 -3
  12. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/profile.py +11 -1
  13. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/taskfile.py +36 -0
  14. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/obsidian.py +32 -2
  15. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/views.py +124 -61
  16. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/agents/AGENTS.md +1 -0
  17. lanternspec-0.2.10/src/lanternspec/resources/locales/en/git/gitmessage.txt +15 -0
  18. lanternspec-0.2.10/src/lanternspec/resources/locales/en/github/pull_request_template.md +14 -0
  19. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md +50 -6
  20. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md +34 -4
  21. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md +3 -2
  22. lanternspec-0.2.10/src/lanternspec/resources/locales/en/skills/l-pr/SKILL.md +81 -0
  23. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-report/SKILL.md +2 -2
  24. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/agents/AGENTS.md +1 -0
  25. lanternspec-0.2.10/src/lanternspec/resources/locales/ko/git/gitmessage.txt +15 -0
  26. lanternspec-0.2.10/src/lanternspec/resources/locales/ko/github/pull_request_template.md +14 -0
  27. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-build/SKILL.md +50 -6
  28. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md +34 -4
  29. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-plan/SKILL.md +3 -2
  30. lanternspec-0.2.10/src/lanternspec/resources/locales/ko/skills/l-pr/SKILL.md +81 -0
  31. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-report/SKILL.md +2 -2
  32. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/messages.yaml +63 -6
  33. lanternspec-0.2.10/src/lanternspec/resources/obsidian/lantern-timeline/main.js +389 -0
  34. lanternspec-0.2.10/src/lanternspec/resources/obsidian/lantern-timeline/manifest.json +9 -0
  35. lanternspec-0.2.10/src/lanternspec/resources/obsidian/lantern-timeline/styles.css +68 -0
  36. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/antigravity.py +2 -2
  37. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/claude.py +3 -3
  38. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/codex.py +2 -2
  39. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/install.py +67 -4
  40. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/skills.py +3 -0
  41. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/branches.py +318 -38
  42. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/scaffold.py +9 -1
  43. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/tasks.py +44 -4
  44. {lanternspec-0.2.8 → lanternspec-0.2.10/src/lanternspec.egg-info}/PKG-INFO +29 -6
  45. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec.egg-info/SOURCES.txt +10 -0
  46. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_core.py +45 -1
  47. lanternspec-0.2.10/tests/test_git.py +683 -0
  48. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_install_and_aux.py +10 -2
  49. lanternspec-0.2.10/tests/test_obsidian.py +177 -0
  50. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_work_line.py +15 -0
  51. lanternspec-0.2.8/tests/test_git.py +0 -251
  52. lanternspec-0.2.8/tests/test_obsidian.py +0 -83
  53. {lanternspec-0.2.8 → lanternspec-0.2.10}/LICENSE +0 -0
  54. {lanternspec-0.2.8 → lanternspec-0.2.10}/setup.cfg +0 -0
  55. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/__init__.py +0 -0
  56. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/__main__.py +0 -0
  57. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/check/__init__.py +0 -0
  58. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/check/budget.py +0 -0
  59. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/check/check_docs.py +0 -0
  60. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/check/doctor.py +0 -0
  61. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/check/layout.py +0 -0
  62. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/check/legacy.py +0 -0
  63. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/check/templates.py +0 -0
  64. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/__init__.py +0 -0
  65. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/color.py +0 -0
  66. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/common.py +0 -0
  67. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/learn.py +0 -0
  68. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/cli/refs.py +0 -0
  69. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/__init__.py +0 -0
  70. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/enums.py +0 -0
  71. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/frontmatter.py +0 -0
  72. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/links.py +0 -0
  73. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/messages.py +0 -0
  74. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/meta.py +0 -0
  75. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/names.py +0 -0
  76. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/outline.py +0 -0
  77. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/principles.py +0 -0
  78. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/project.py +0 -0
  79. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/sections.py +0 -0
  80. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/state.py +0 -0
  81. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/core/templating.py +0 -0
  82. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/learn/__init__.py +0 -0
  83. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/learn/debt.py +0 -0
  84. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/__init__.py +0 -0
  85. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/drafts.py +0 -0
  86. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/mcp_server.py +0 -0
  87. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/notion.py +0 -0
  88. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/learn/knowledge/obsidian.py +0 -0
  89. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/refs/__init__.py +0 -0
  90. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/refs/convert.py +0 -0
  91. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/refs/domain.py +0 -0
  92. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/refs/index.py +0 -0
  93. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/refs/rules.py +0 -0
  94. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/refs/sources.py +0 -0
  95. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/refs/terms.py +0 -0
  96. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/__init__.py +0 -0
  97. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/doc_map.py +0 -0
  98. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/evaluate.py +0 -0
  99. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/harness.py +0 -0
  100. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/principles_doc.py +0 -0
  101. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/resume.py +0 -0
  102. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/scan.py +0 -0
  103. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/sections_doc.py +0 -0
  104. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/report/status.py +0 -0
  105. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/__init__.py +0 -0
  106. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/go.yaml +0 -0
  107. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/python.yaml +0 -0
  108. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/rust.yaml +0 -0
  109. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/swift.yaml +0 -0
  110. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/conventions/typescript.yaml +0 -0
  111. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md +0 -0
  112. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md +0 -0
  113. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-design/SKILL.md +0 -0
  114. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-domain/SKILL.md +0 -0
  115. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md +0 -0
  116. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md +0 -0
  117. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md +0 -0
  118. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-ref/SKILL.md +0 -0
  119. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-ref/domain.md +0 -0
  120. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-ref/rules.md +0 -0
  121. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-ref/terms.md +0 -0
  122. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-resume/SKILL.md +0 -0
  123. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md +0 -0
  124. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md +0 -0
  125. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/skills/l-template/SKILL.md +0 -0
  126. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/ADR.md +0 -0
  127. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/API.md +0 -0
  128. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Architecture.md +0 -0
  129. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Collaboration Rules.md +0 -0
  130. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Competency Card.md +0 -0
  131. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Data.md +0 -0
  132. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Debt Card.md +0 -0
  133. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Deployment.md +0 -0
  134. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Design.md +0 -0
  135. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Docs MOC.md +0 -0
  136. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Feature List.md +0 -0
  137. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Glossary.md +0 -0
  138. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Idea.md +0 -0
  139. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Known Tech.md +0 -0
  140. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Legacy Map.md +0 -0
  141. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Log.md +0 -0
  142. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Meeting Notes.md +0 -0
  143. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Plan.md +0 -0
  144. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Platform Integration.md +0 -0
  145. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Project Definition.md +0 -0
  146. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Screens.md +0 -0
  147. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Server Operations.md +0 -0
  148. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Session Log.md +0 -0
  149. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Tasks.md +0 -0
  150. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +0 -0
  151. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/en/templates/_meta/enums.yaml +0 -0
  152. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-adr/SKILL.md +0 -0
  153. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-check/SKILL.md +0 -0
  154. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-design/SKILL.md +0 -0
  155. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-domain/SKILL.md +0 -0
  156. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-idea/SKILL.md +0 -0
  157. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-learn/SKILL.md +0 -0
  158. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-map/SKILL.md +0 -0
  159. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-ref/SKILL.md +0 -0
  160. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-ref/domain.md +0 -0
  161. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-ref/rules.md +0 -0
  162. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-ref/terms.md +0 -0
  163. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-resume/SKILL.md +0 -0
  164. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-sync/SKILL.md +0 -0
  165. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-task/SKILL.md +0 -0
  166. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/skills/l-template/SKILL.md +0 -0
  167. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates/ADR.md +0 -0
  168. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates/API.md +0 -0
  169. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates/_meta/enums.yaml +0 -0
  170. {lanternspec-0.2.8 → 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
  171. {lanternspec-0.2.8 → 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
  172. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md" +0 -0
  173. {lanternspec-0.2.8 → 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
  174. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md" +0 -0
  175. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//353/215/260/354/235/264/355/204/260.md" +0 -0
  176. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//353/260/260/355/217/254.md" +0 -0
  177. {lanternspec-0.2.8 → 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
  178. {lanternspec-0.2.8 → 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
  179. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md" +0 -0
  180. {lanternspec-0.2.8 → 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
  181. {lanternspec-0.2.8 → 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
  182. {lanternspec-0.2.8 → 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
  183. {lanternspec-0.2.8 → 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
  184. {lanternspec-0.2.8 → 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
  185. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//354/232/251/354/226/264/354/247/221.md" +0 -0
  186. {lanternspec-0.2.8 → 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
  187. {lanternspec-0.2.8 → 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
  188. {lanternspec-0.2.8 → 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
  189. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +0 -0
  190. {lanternspec-0.2.8 → 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
  191. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//355/231/224/353/251/264.md" +0 -0
  192. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/locales/ko/templates//355/232/214/354/235/230/353/241/235.md" +0 -0
  193. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/names.yaml +0 -0
  194. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/resources/principles.yaml +0 -0
  195. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/__init__.py +0 -0
  196. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/agent_hooks.py +0 -0
  197. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/base.py +0 -0
  198. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/close.py +0 -0
  199. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/docs_mode.py +0 -0
  200. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/health.py +0 -0
  201. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/parts.py +0 -0
  202. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/rules.py +0 -0
  203. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/runlog.py +0 -0
  204. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/tools/sessions.py +0 -0
  205. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/__init__.py +0 -0
  206. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/dbml.py +0 -0
  207. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/epic_rules.py +0 -0
  208. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/ideas.py +0 -0
  209. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/pack.py +0 -0
  210. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/progress.py +0 -0
  211. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/screen.py +0 -0
  212. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec/work/stages.py +0 -0
  213. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec.egg-info/dependency_links.txt +0 -0
  214. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec.egg-info/entry_points.txt +0 -0
  215. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec.egg-info/requires.txt +0 -0
  216. {lanternspec-0.2.8 → lanternspec-0.2.10}/src/lanternspec.egg-info/top_level.txt +0 -0
  217. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_budget.py +0 -0
  218. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_checks.py +0 -0
  219. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_color.py +0 -0
  220. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_english.py +0 -0
  221. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_enums_single_source.py +0 -0
  222. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_later_features.py +0 -0
  223. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_layout.py +0 -0
  224. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_learning_line.py +0 -0
  225. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_messages.py +0 -0
  226. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_name_overlap.py +0 -0
  227. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_names.py +0 -0
  228. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_part_delivery.py +0 -0
  229. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_parts.py +0 -0
  230. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_principles.py +0 -0
  231. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_principles_data.py +0 -0
  232. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_refs.py +0 -0
  233. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_release_script.py +0 -0
  234. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_resume.py +0 -0
  235. {lanternspec-0.2.8 → lanternspec-0.2.10}/tests/test_skill_commands.py +0 -0
  236. {lanternspec-0.2.8 → 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.8
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.
@@ -165,6 +167,7 @@ Sections lantern reads and writes (protected sections, such as "Now" in a log) m
165
167
 
166
168
  ### Viewing the docs in Obsidian
167
169
  Open the `docs/` folder as a vault in Obsidian and it is already set up for reading (`docs/.obsidian/`).
170
+ `lantern obsidian plugins` also adds Lantern Timeline, which shows the report's timeline as bars by day. Drag a task that has not started to move it, or drag its ends to change its length; the dates are saved in its planned and due attributes.
168
171
 
169
172
  - **Folder colors, folder and file icons, callouts and quotes** — each document stage has its own folder color, folders and files get icons, and callouts and quotes look clean. Works on top of any theme.
170
173
  - **Picking status and kind** — each document type offers only its own choices in a menu (Metadata Menu). The choices are generated from `enums.yaml`, so renaming a value updates them too.
@@ -176,6 +179,24 @@ lantern obsidian plugins # downloads the latest official release files of bo
176
179
 
177
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.
178
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
+
179
200
  ## Supported AI tools
180
201
 
181
202
  | Tool | Skills | Rules | Agent hooks | MCP (`--mcp`) |
@@ -199,7 +220,7 @@ LanternSpec connects its checks to those hooks, so `lantern` checks at every sta
199
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 |
200
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) |
201
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 |
202
- | 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 |
203
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 |
204
225
 
205
226
  - **Warnings by default.** Work is never blocked. To make the commit checks blocking, set `git.hooks` to `block` in `lantern.yaml`.
@@ -208,6 +229,8 @@ LanternSpec connects its checks to those hooks, so `lantern` checks at every sta
208
229
  ```bash
209
230
  lantern hooks install # turns on the commit and push checks (/l-init asks before installing)
210
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
211
234
  ```
212
235
 
213
236
  ## References — company rules, terms and domain knowledge
@@ -280,12 +303,12 @@ Import mockups with `lantern screen import`; `lantern screen compare` finds wher
280
303
  ## CLI at a glance
281
304
 
282
305
  ```text
283
- 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
284
307
  profile profile show|docs|write|set · principles show|detect · parts [add|ignore] · enums list|rename · sections list|rename|off|on
285
308
  documents scaffold init [--plan] | work | doc | idea | adr | meeting | custom · new-id · map · meta get|set
286
- 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
287
310
  work task next [--all]|start|done|ac|list|estimate · task add [--parallel] · pack · screen import|compare
288
- 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
289
312
  learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list · mcp
290
313
  reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] [--ci] · sync adopt · eval · obsidian plugins
291
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.
@@ -150,6 +152,7 @@ Sections lantern reads and writes (protected sections, such as "Now" in a log) m
150
152
 
151
153
  ### Viewing the docs in Obsidian
152
154
  Open the `docs/` folder as a vault in Obsidian and it is already set up for reading (`docs/.obsidian/`).
155
+ `lantern obsidian plugins` also adds Lantern Timeline, which shows the report's timeline as bars by day. Drag a task that has not started to move it, or drag its ends to change its length; the dates are saved in its planned and due attributes.
153
156
 
154
157
  - **Folder colors, folder and file icons, callouts and quotes** — each document stage has its own folder color, folders and files get icons, and callouts and quotes look clean. Works on top of any theme.
155
158
  - **Picking status and kind** — each document type offers only its own choices in a menu (Metadata Menu). The choices are generated from `enums.yaml`, so renaming a value updates them too.
@@ -161,6 +164,24 @@ lantern obsidian plugins # downloads the latest official release files of bo
161
164
 
162
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.
163
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
+
164
185
  ## Supported AI tools
165
186
 
166
187
  | Tool | Skills | Rules | Agent hooks | MCP (`--mcp`) |
@@ -184,7 +205,7 @@ LanternSpec connects its checks to those hooks, so `lantern` checks at every sta
184
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 |
185
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) |
186
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 |
187
- | 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 |
188
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 |
189
210
 
190
211
  - **Warnings by default.** Work is never blocked. To make the commit checks blocking, set `git.hooks` to `block` in `lantern.yaml`.
@@ -193,6 +214,8 @@ LanternSpec connects its checks to those hooks, so `lantern` checks at every sta
193
214
  ```bash
194
215
  lantern hooks install # turns on the commit and push checks (/l-init asks before installing)
195
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
196
219
  ```
197
220
 
198
221
  ## References — company rules, terms and domain knowledge
@@ -265,12 +288,12 @@ Import mockups with `lantern screen import`; `lantern screen compare` finds wher
265
288
  ## CLI at a glance
266
289
 
267
290
  ```text
268
- 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
269
292
  profile profile show|docs|write|set · principles show|detect · parts [add|ignore] · enums list|rename · sections list|rename|off|on
270
293
  documents scaffold init [--plan] | work | doc | idea | adr | meeting | custom · new-id · map · meta get|set
271
- 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
272
295
  work task next [--all]|start|done|ac|list|estimate · task add [--parallel] · pack · screen import|compare
273
- 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
274
297
  learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list · mcp
275
298
  reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] [--ci] · sync adopt · eval · obsidian plugins
276
299
  templates template list|lint|level|bump|outdated|diff|usage|new|migrate · legacy adopt|todos
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lanternspec"
7
- version = "0.2.8"
7
+ version = "0.2.10"
8
8
  description = "Spec-driven development for agentic software engineering"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -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
- problems: list[str] = []
245
- if code and not ID_RE.search(message):
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
- if any(k.split(".")[0] in ("idea", "learn", "plan", "design", "build", "report", "docs") for k in updates):
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"))
@@ -127,12 +127,14 @@ def cmd_harness(a: argparse.Namespace) -> int:
127
127
 
128
128
  def cmd_obsidian(a: argparse.Namespace) -> int:
129
129
  """`lantern obsidian plugins` — download the recommended Obsidian plugins into docs/.obsidian/plugins/."""
130
- from ..report.obsidian import install_plugins, write_vault
130
+ from ..report.obsidian import TIMELINE_PLUGIN, install_plugins, write_vault
131
131
 
132
132
  project = _p()
133
133
  write_vault(project) # plugin settings and .gitignore must exist first
134
134
  for plugin_id, version in install_plugins(project):
135
135
  print(f"✔ {plugin_id} {version}")
136
+ write_vault(project) # now that plugins are in use, this also copies the timeline plugin bundled with the package
137
+ print(f"✔ {TIMELINE_PLUGIN}")
136
138
  print(msg("Next: open the docs/ folder as a vault in Obsidian, and turn community plugins on when asked (turn off restricted mode)"))
137
139
  return 0
138
140
 
@@ -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) `work/W-…` branches all reserve numbers.
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
- # worktree branches (work/W-012) also reserve work numbers
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", "work/*", "--format=%(refname:short)"], project.root).splitlines()
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.