lanternspec 0.3.2__tar.gz → 0.3.3__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 (264) hide show
  1. {lanternspec-0.3.2/src/lanternspec.egg-info → lanternspec-0.3.3}/PKG-INFO +6 -13
  2. {lanternspec-0.3.2 → lanternspec-0.3.3}/README.md +5 -12
  3. {lanternspec-0.3.2 → lanternspec-0.3.3}/pyproject.toml +1 -1
  4. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/check/check_docs.py +2 -1
  5. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/check/templates.py +4 -5
  6. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/tools.py +17 -1
  7. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/profile.py +28 -5
  8. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/sections.py +24 -0
  9. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/learn/knowledge/__init__.py +3 -1
  10. lanternspec-0.3.3/src/lanternspec/learn/knowledge/access.py +120 -0
  11. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/learn/knowledge/obsidian.py +76 -12
  12. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/obsidian.py +11 -1
  13. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/status.py +3 -5
  14. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md +1 -0
  15. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md +16 -2
  16. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md +11 -1
  17. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-template/SKILL.md +6 -3
  18. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/ADR.md +11 -6
  19. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/API.md +5 -3
  20. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Architecture.md +7 -4
  21. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Competency Card.md +9 -5
  22. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Data.md +5 -3
  23. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Debt Card.md +9 -5
  24. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Design.md +13 -7
  25. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Docs MOC.md +5 -3
  26. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Feature List.md +5 -3
  27. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Glossary.md +5 -3
  28. lanternspec-0.3.3/src/lanternspec/resources/locales/en/templates/Idea - Bug.md +90 -0
  29. lanternspec-0.3.3/src/lanternspec/resources/locales/en/templates/Idea - Experiment.md +81 -0
  30. lanternspec-0.3.3/src/lanternspec/resources/locales/en/templates/Idea - Feature.md +78 -0
  31. lanternspec-0.3.3/src/lanternspec/resources/locales/en/templates/Idea - Improvement.md +82 -0
  32. lanternspec-0.3.3/src/lanternspec/resources/locales/en/templates/Idea - Tech Review.md +95 -0
  33. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Idea.md +11 -6
  34. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Known Tech.md +5 -3
  35. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Legacy Map.md +7 -4
  36. lanternspec-0.3.3/src/lanternspec/resources/locales/en/templates/Log.md +54 -0
  37. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Meeting Notes.md +5 -3
  38. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Plan.md +19 -10
  39. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Project Definition.md +13 -7
  40. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Screens.md +5 -3
  41. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Session Log.md +7 -4
  42. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Tasks.md +5 -3
  43. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +5 -3
  44. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-build/SKILL.md +1 -0
  45. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-idea/SKILL.md +16 -2
  46. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md +11 -1
  47. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-template/SKILL.md +6 -3
  48. lanternspec-0.3.3/src/lanternspec/resources/locales/ko/templates/ADR.md +51 -0
  49. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates/API.md +5 -3
  50. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//352/260/234/353/260/234/353/254/270/354/204/234 MOC.md" +5 -3
  51. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/212/245 /353/252/251/353/241/235.md" +5 -3
  52. lanternspec-0.3.3/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md +54 -0
  53. {lanternspec-0.3.2 → lanternspec-0.3.3}/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" +7 -4
  54. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md +19 -10
  55. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//353/215/260/354/235/264/355/204/260.md +5 -3
  56. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//353/266/200/354/261/204 /354/271/264/353/223/234.md" +9 -5
  57. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md +13 -7
  58. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//354/204/270/354/205/230 /352/270/260/353/241/235.md" +7 -4
  59. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//354/213/234/354/212/244/355/205/234 /352/265/254/354/241/260.md" +7 -4
  60. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//354/225/204/353/212/224 /352/270/260/354/210/240.md" +5 -3
  61. lanternspec-0.3.3/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /352/260/234/354/204/240.md" +82 -0
  62. lanternspec-0.3.3/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /352/270/260/353/212/245.md" +78 -0
  63. lanternspec-0.3.3/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /352/270/260/354/210/240 /352/262/200/355/206/240.md" +95 -0
  64. lanternspec-0.3.3/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /353/262/204/352/267/270.md" +90 -0
  65. lanternspec-0.3.3/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /354/213/244/355/227/230.md" +81 -0
  66. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264.md +11 -6
  67. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//354/227/255/353/237/211 /354/271/264/353/223/234.md" +9 -5
  68. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//354/232/251/354/226/264/354/247/221.md +5 -3
  69. {lanternspec-0.3.2 → lanternspec-0.3.3}/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" +5 -3
  70. {lanternspec-0.3.2 → lanternspec-0.3.3}/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" +13 -7
  71. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +5 -3
  72. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//355/231/224/353/251/264.md +5 -3
  73. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//355/232/214/354/235/230/353/241/235.md +5 -3
  74. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/messages.yaml +30 -2
  75. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/agent_hooks.py +5 -2
  76. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/base.py +22 -1
  77. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/codex.py +28 -0
  78. lanternspec-0.3.3/src/lanternspec/tools/guard.py +338 -0
  79. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/scaffold.py +25 -1
  80. {lanternspec-0.3.2 → lanternspec-0.3.3/src/lanternspec.egg-info}/PKG-INFO +6 -13
  81. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec.egg-info/SOURCES.txt +13 -0
  82. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_checks.py +3 -3
  83. lanternspec-0.3.3/tests/test_guard.py +147 -0
  84. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_install_and_aux.py +9 -9
  85. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_layout.py +2 -2
  86. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_refs.py +1 -1
  87. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_work_line.py +21 -0
  88. lanternspec-0.3.2/src/lanternspec/resources/locales/en/templates/Log.md +0 -48
  89. lanternspec-0.3.2/src/lanternspec/resources/locales/ko/templates/ADR.md +0 -46
  90. lanternspec-0.3.2/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md +0 -48
  91. {lanternspec-0.3.2 → lanternspec-0.3.3}/LICENSE +0 -0
  92. {lanternspec-0.3.2 → lanternspec-0.3.3}/setup.cfg +0 -0
  93. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/__init__.py +0 -0
  94. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/__main__.py +0 -0
  95. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/check/__init__.py +0 -0
  96. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/check/budget.py +0 -0
  97. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/check/doctor.py +0 -0
  98. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/check/githooks.py +0 -0
  99. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/check/layout.py +0 -0
  100. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/check/legacy.py +0 -0
  101. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/check/pr_check.py +0 -0
  102. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/__init__.py +0 -0
  103. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/check.py +0 -0
  104. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/color.py +0 -0
  105. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/common.py +0 -0
  106. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/core.py +0 -0
  107. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/learn.py +0 -0
  108. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/refs.py +0 -0
  109. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/report.py +0 -0
  110. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/cli/work.py +0 -0
  111. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/__init__.py +0 -0
  112. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/enums.py +0 -0
  113. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/frontmatter.py +0 -0
  114. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/links.py +0 -0
  115. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/messages.py +0 -0
  116. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/meta.py +0 -0
  117. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/names.py +0 -0
  118. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/new_id.py +0 -0
  119. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/outline.py +0 -0
  120. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/principles.py +0 -0
  121. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/project.py +0 -0
  122. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/state.py +0 -0
  123. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/taskfile.py +0 -0
  124. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/core/templating.py +0 -0
  125. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/learn/__init__.py +0 -0
  126. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/learn/debt.py +0 -0
  127. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/learn/knowledge/drafts.py +0 -0
  128. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/learn/knowledge/mcp_server.py +0 -0
  129. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/learn/knowledge/notion.py +0 -0
  130. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/refs/__init__.py +0 -0
  131. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/refs/convert.py +0 -0
  132. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/refs/domain.py +0 -0
  133. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/refs/index.py +0 -0
  134. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/refs/rules.py +0 -0
  135. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/refs/sources.py +0 -0
  136. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/refs/terms.py +0 -0
  137. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/__init__.py +0 -0
  138. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/build_mode.py +0 -0
  139. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/doc_map.py +0 -0
  140. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/evaluate.py +0 -0
  141. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/principles_doc.py +0 -0
  142. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/resume.py +0 -0
  143. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/scan.py +0 -0
  144. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/sections_doc.py +0 -0
  145. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/report/views.py +0 -0
  146. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/__init__.py +0 -0
  147. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/conventions/go.yaml +0 -0
  148. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/conventions/python.yaml +0 -0
  149. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/conventions/rust.yaml +0 -0
  150. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/conventions/swift.yaml +0 -0
  151. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/conventions/typescript.yaml +0 -0
  152. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/agents/AGENTS.md +0 -0
  153. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/git/gitmessage.txt +0 -0
  154. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/github/pull_request_template.md +0 -0
  155. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md +0 -0
  156. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md +0 -0
  157. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-design/SKILL.md +0 -0
  158. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-domain/SKILL.md +0 -0
  159. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-finish/SKILL.md +0 -0
  160. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md +0 -0
  161. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md +0 -0
  162. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-parallel/SKILL.md +0 -0
  163. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md +0 -0
  164. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-pr/SKILL.md +0 -0
  165. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-ref/SKILL.md +0 -0
  166. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-ref/domain.md +0 -0
  167. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-ref/rules.md +0 -0
  168. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-ref/terms.md +0 -0
  169. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-report/SKILL.md +0 -0
  170. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-resume/SKILL.md +0 -0
  171. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md +0 -0
  172. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md +0 -0
  173. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Collaboration Rules.md +0 -0
  174. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Deployment.md +0 -0
  175. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Platform Integration.md +0 -0
  176. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Repository File Rules.md +0 -0
  177. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Server Operations.md +0 -0
  178. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Task Breakdown Rules.md +0 -0
  179. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/Tech Selection Criteria.md +0 -0
  180. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/en/templates/_meta/enums.yaml +0 -0
  181. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/agents/AGENTS.md +0 -0
  182. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/git/gitmessage.txt +0 -0
  183. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/github/pull_request_template.md +0 -0
  184. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-adr/SKILL.md +0 -0
  185. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-check/SKILL.md +0 -0
  186. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-design/SKILL.md +0 -0
  187. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-domain/SKILL.md +0 -0
  188. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-finish/SKILL.md +0 -0
  189. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-learn/SKILL.md +0 -0
  190. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-map/SKILL.md +0 -0
  191. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-parallel/SKILL.md +0 -0
  192. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-plan/SKILL.md +0 -0
  193. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-pr/SKILL.md +0 -0
  194. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-ref/SKILL.md +0 -0
  195. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-ref/domain.md +0 -0
  196. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-ref/rules.md +0 -0
  197. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-ref/terms.md +0 -0
  198. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-report/SKILL.md +0 -0
  199. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-resume/SKILL.md +0 -0
  200. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-sync/SKILL.md +0 -0
  201. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/skills/l-task/SKILL.md +0 -0
  202. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates/_meta/enums.yaml +0 -0
  203. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//352/270/260/354/210/240 /354/204/240/355/203/235 /352/270/260/354/244/200.md" +0 -0
  204. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//353/260/260/355/217/254.md" +0 -0
  205. {lanternspec-0.3.2 → lanternspec-0.3.3}/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
  206. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//354/240/200/354/236/245/354/206/214 /355/214/214/354/235/274 /352/267/234/354/271/231.md" +0 -0
  207. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//355/224/214/353/236/253/355/217/274 /354/227/260/353/217/231.md" +0 -0
  208. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274 /353/202/230/353/210/204/352/270/260 /352/270/260/354/244/200.md" +0 -0
  209. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/locales/ko/templates//355/230/221/354/227/205 /352/267/234/354/271/231.md" +0 -0
  210. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/names.yaml +0 -0
  211. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/obsidian/lantern-kanban/main.js +0 -0
  212. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/obsidian/lantern-kanban/manifest.json +0 -0
  213. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/obsidian/lantern-kanban/styles.css +0 -0
  214. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/obsidian/lantern-timeline/main.js +0 -0
  215. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/obsidian/lantern-timeline/manifest.json +0 -0
  216. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/obsidian/lantern-timeline/styles.css +0 -0
  217. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/resources/principles.yaml +0 -0
  218. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/__init__.py +0 -0
  219. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/antigravity.py +0 -0
  220. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/claude.py +0 -0
  221. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/close.py +0 -0
  222. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/docs_mode.py +0 -0
  223. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/health.py +0 -0
  224. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/install.py +0 -0
  225. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/parts.py +0 -0
  226. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/rules.py +0 -0
  227. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/runlog.py +0 -0
  228. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/sessions.py +0 -0
  229. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/tools/skills.py +0 -0
  230. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/__init__.py +0 -0
  231. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/branches.py +0 -0
  232. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/dbml.py +0 -0
  233. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/epic_rules.py +0 -0
  234. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/ideas.py +0 -0
  235. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/pack.py +0 -0
  236. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/progress.py +0 -0
  237. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/screen.py +0 -0
  238. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/stages.py +0 -0
  239. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec/work/tasks.py +0 -0
  240. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec.egg-info/dependency_links.txt +0 -0
  241. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec.egg-info/entry_points.txt +0 -0
  242. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec.egg-info/requires.txt +0 -0
  243. {lanternspec-0.3.2 → lanternspec-0.3.3}/src/lanternspec.egg-info/top_level.txt +0 -0
  244. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_budget.py +0 -0
  245. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_color.py +0 -0
  246. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_core.py +0 -0
  247. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_english.py +0 -0
  248. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_enums_single_source.py +0 -0
  249. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_git.py +0 -0
  250. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_later_features.py +0 -0
  251. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_learning_line.py +0 -0
  252. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_messages.py +0 -0
  253. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_name_overlap.py +0 -0
  254. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_names.py +0 -0
  255. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_obsidian.py +0 -0
  256. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_part_delivery.py +0 -0
  257. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_parts.py +0 -0
  258. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_principles.py +0 -0
  259. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_principles_data.py +0 -0
  260. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_progress_parallel.py +0 -0
  261. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_release_script.py +0 -0
  262. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_resume.py +0 -0
  263. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_skill_commands.py +0 -0
  264. {lanternspec-0.3.2 → lanternspec-0.3.3}/tests/test_tool_health.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lanternspec
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Spec-driven development for agentic software engineering
5
5
  Author: Jihyeok Jeong
6
6
  License-Expression: MIT
@@ -101,21 +101,12 @@ Then call `/l-init` inside your AI tool (`$l-init` in Codex).
101
101
 
102
102
  What the concepts in this document mean and where they are used is gathered in [Concepts](https://github.com/Jungjihyuk/LanternSpec/blob/main/CONCEPTS.md). To change LanternSpec itself, start with the [design rationale](https://github.com/Jungjihyuk/LanternSpec/blob/main/RATIONALE.md), which records why the flow, folders and rules are the way they are.
103
103
 
104
- ```mermaid
105
- flowchart LR
106
- S["⚙️ /l-init"] --> I
107
- subgraph W["🛠 Work flow"]
108
- I["💡 /l-idea"] --> P["📋 /l-plan"] --> D["📐 /l-design"] --> T["✅ /l-task"] --> B["🔨 /l-build"]
109
- end
110
- P & D & B -.unfamiliar tech.-> L["🧭 /l-learn"]
111
- B -->|merge when done| C["📘 3. Current state"]
112
- W & L --> R["📊 /l-report"]
113
- ```
104
+ <img src="https://raw.githubusercontent.com/Jungjihyuk/LanternSpec/main/assets/Workflow.png" alt="LanternSpec workflow — /l-init once, then /l-idea → /l-plan → /l-design → /l-task → /l-build for each work, merged into the current state when done; when unfamiliar tech comes up /l-learn compares it with the knowledge base and records debt cards in the project; /l-report any time." width="100%">
114
105
 
115
106
  | Skill | What it does | What it leaves |
116
107
  |---|---|---|
117
108
  | `/l-init` | sets up the document structure and design principles from the questions the earlier answers call for (new or existing · team size · project kind · server · knowledge base · design tool · technology choice and so on), and picks the branch flow | `lantern.yaml`, `docs/`, project definition, MOC, design principles |
118
- | `/l-idea` | records a thought from the conversation, as said and as summarised | `1. Ideas/IDEA-001 …` |
109
+ | `/l-idea` | records a thought from the conversation, as said and as summarised — each kind (feature · improvement · bug · experiment · tech review) has its own template, with the outcome filled in afterwards | `1. Ideas/IDEA-001 …` |
119
110
  | `/l-plan` | what and why — a work folder and acceptance criteria | `2. Work/W-001 …/Plan.md` |
120
111
  | `/l-design` | how — only the structure, screens and data (DBML) that change, wireframes, behind an approval gate | `Design.md`, `Screens/`, ADR |
121
112
  | `/l-task` | an ordered task list (size 15m · 1h · 4h · 8h · acceptance criteria · dependencies · spike tasks) | `Tasks.md` |
@@ -272,6 +263,8 @@ Anything you don't understand yet is kept as a debt card, and every time you ask
272
263
 
273
264
  Every knowledge base supports the same four actions: search · read · propose · write. The CLI (`lantern knowledge …`) and the MCP server (`lantern mcp`) use the same functions.
274
265
 
266
+ Folders of the knowledge base the AI must not open go in `knowledge.deny` in `lantern.yaml` (or list the only open ones in `knowledge.allow`). lantern neither searches nor reads closed folders. To also stop the AI tool from opening them directly, start it with `lantern guard -- claude`: the tool runs inside the operating system's sandbox (macOS, and Linux with bubblewrap; works with `claude` · `codex` · `agy`; on macOS the tool's own sandbox has to be off, and lantern turns Codex's off itself).
267
+
275
268
  There are three kinds of debt.
276
269
 
277
270
  | Kind | Meaning |
@@ -312,7 +305,7 @@ Import mockups with `lantern screen import`; `lantern screen compare` finds wher
312
305
  ## CLI at a glance
313
306
 
314
307
  ```text
315
- setup install [--language] [--tools] [--mcp] [--ci|--no-ci] [--pr-template] [--commit-template] · upgrade [--apply] · doctor · build-mode suggest
308
+ setup install [--language] [--tools] [--mcp] [--ci|--no-ci] [--pr-template] [--commit-template] · upgrade [--apply] · doctor · build-mode suggest · guard -- <tool>
316
309
  profile profile show|docs|write|set · principles show|detect · parts [add|ignore] · enums list|rename · sections list|rename|off|on
317
310
  documents scaffold init [--plan] | work | doc | idea | adr | meeting | custom · new-id · map · meta get|set
318
311
  checks check [--changed] [--epic W-012] · check-pr · lint [--ci] · check-dbml · dbml render|from-sql|diff
@@ -86,21 +86,12 @@ Then call `/l-init` inside your AI tool (`$l-init` in Codex).
86
86
 
87
87
  What the concepts in this document mean and where they are used is gathered in [Concepts](https://github.com/Jungjihyuk/LanternSpec/blob/main/CONCEPTS.md). To change LanternSpec itself, start with the [design rationale](https://github.com/Jungjihyuk/LanternSpec/blob/main/RATIONALE.md), which records why the flow, folders and rules are the way they are.
88
88
 
89
- ```mermaid
90
- flowchart LR
91
- S["⚙️ /l-init"] --> I
92
- subgraph W["🛠 Work flow"]
93
- I["💡 /l-idea"] --> P["📋 /l-plan"] --> D["📐 /l-design"] --> T["✅ /l-task"] --> B["🔨 /l-build"]
94
- end
95
- P & D & B -.unfamiliar tech.-> L["🧭 /l-learn"]
96
- B -->|merge when done| C["📘 3. Current state"]
97
- W & L --> R["📊 /l-report"]
98
- ```
89
+ <img src="https://raw.githubusercontent.com/Jungjihyuk/LanternSpec/main/assets/Workflow.png" alt="LanternSpec workflow — /l-init once, then /l-idea → /l-plan → /l-design → /l-task → /l-build for each work, merged into the current state when done; when unfamiliar tech comes up /l-learn compares it with the knowledge base and records debt cards in the project; /l-report any time." width="100%">
99
90
 
100
91
  | Skill | What it does | What it leaves |
101
92
  |---|---|---|
102
93
  | `/l-init` | sets up the document structure and design principles from the questions the earlier answers call for (new or existing · team size · project kind · server · knowledge base · design tool · technology choice and so on), and picks the branch flow | `lantern.yaml`, `docs/`, project definition, MOC, design principles |
103
- | `/l-idea` | records a thought from the conversation, as said and as summarised | `1. Ideas/IDEA-001 …` |
94
+ | `/l-idea` | records a thought from the conversation, as said and as summarised — each kind (feature · improvement · bug · experiment · tech review) has its own template, with the outcome filled in afterwards | `1. Ideas/IDEA-001 …` |
104
95
  | `/l-plan` | what and why — a work folder and acceptance criteria | `2. Work/W-001 …/Plan.md` |
105
96
  | `/l-design` | how — only the structure, screens and data (DBML) that change, wireframes, behind an approval gate | `Design.md`, `Screens/`, ADR |
106
97
  | `/l-task` | an ordered task list (size 15m · 1h · 4h · 8h · acceptance criteria · dependencies · spike tasks) | `Tasks.md` |
@@ -257,6 +248,8 @@ Anything you don't understand yet is kept as a debt card, and every time you ask
257
248
 
258
249
  Every knowledge base supports the same four actions: search · read · propose · write. The CLI (`lantern knowledge …`) and the MCP server (`lantern mcp`) use the same functions.
259
250
 
251
+ Folders of the knowledge base the AI must not open go in `knowledge.deny` in `lantern.yaml` (or list the only open ones in `knowledge.allow`). lantern neither searches nor reads closed folders. To also stop the AI tool from opening them directly, start it with `lantern guard -- claude`: the tool runs inside the operating system's sandbox (macOS, and Linux with bubblewrap; works with `claude` · `codex` · `agy`; on macOS the tool's own sandbox has to be off, and lantern turns Codex's off itself).
252
+
260
253
  There are three kinds of debt.
261
254
 
262
255
  | Kind | Meaning |
@@ -297,7 +290,7 @@ Import mockups with `lantern screen import`; `lantern screen compare` finds wher
297
290
  ## CLI at a glance
298
291
 
299
292
  ```text
300
- setup install [--language] [--tools] [--mcp] [--ci|--no-ci] [--pr-template] [--commit-template] · upgrade [--apply] · doctor · build-mode suggest
293
+ setup install [--language] [--tools] [--mcp] [--ci|--no-ci] [--pr-template] [--commit-template] · upgrade [--apply] · doctor · build-mode suggest · guard -- <tool>
301
294
  profile profile show|docs|write|set · principles show|detect · parts [add|ignore] · enums list|rename · sections list|rename|off|on
302
295
  documents scaffold init [--plan] | work | doc | idea | adr | meeting | custom · new-id · map · meta get|set
303
296
  checks check [--changed] [--epic W-012] · check-pr · lint [--ci] · check-dbml · dbml render|from-sql|diff
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lanternspec"
7
- version = "0.3.2"
7
+ version = "0.3.3"
8
8
  description = "Spec-driven development for agentic software engineering"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -21,6 +21,7 @@ from ..core import frontmatter, templating
21
21
  from ..core.links import Resolver, iter_links
22
22
  from ..core.messages import msg
23
23
  from ..core.project import Project, git_out, nfc, read
24
+ from ..core.sections import outside_guides
24
25
  from ..core.taskfile import parse_criteria, parse_tasks, size_role
25
26
 
26
27
  COMMON_FIELDS = ["id", "type", "status", "created", "updated", "links", "template", "template_version"]
@@ -520,7 +521,7 @@ def check_file(project: Project, path: Path, text: str, ctx: _Ctx) -> list[Findi
520
521
 
521
522
  # unknowns
522
523
  unknown = project.names.marker("unknown")
523
- unknown_lines = [i for i, l in enumerate(text.split("\n"), start=1) if unknown in l and "`" + unknown not in l and "[!guide]" not in l]
524
+ unknown_lines = [i for i, l in outside_guides(text) if unknown in l and "`" + unknown not in l]
524
525
  if unknown_lines and not generated:
525
526
  out.append(
526
527
  Finding(
@@ -613,7 +613,8 @@ def skeleton_from(project: Project, name: str, source: Path) -> str:
613
613
  out += [
614
614
  "",
615
615
  f"{m.group(1)} {current}",
616
- msg("> [!guide] One line on what goes in '{current}'", current=current),
616
+ msg("> [!guide]- ✍️ How to write — {current}", current=current),
617
+ msg("> One line on what goes in '{current}'", current=current),
617
618
  "",
618
619
  ]
619
620
  filled, table_state = False, ""
@@ -789,10 +790,8 @@ def migrate_text(
789
790
  if leftovers or bin_existing:
790
791
  parts += [
791
792
  f"## {bin_title}",
792
- msg(
793
- "> [!guide] Content with no place in the new template, gathered here rather than deleted — "
794
- "move it to the right section or tidy it up, then delete this section."
795
- ),
793
+ msg("> [!guide]- ✍️ How to write — content the new template has no place for"),
794
+ msg("> Gathered here rather than deleted — move it to the right section or tidy it up, then delete this section."),
796
795
  "",
797
796
  ]
798
797
  for c in bin_existing:
@@ -1,4 +1,4 @@
1
- """AI-tool commands: install · upgrade · build-adapters · docs-mode · hook · close."""
1
+ """AI-tool commands: install · upgrade · build-adapters · docs-mode · hook · close · guard."""
2
2
 
3
3
  from __future__ import annotations
4
4
 
@@ -166,6 +166,13 @@ def cmd_close(a: argparse.Namespace) -> int:
166
166
  return 0
167
167
 
168
168
 
169
+ def cmd_guard(a: argparse.Namespace) -> int:
170
+ """`lantern guard -- <tool>` — start an AI tool inside an OS sandbox that keeps it out of the closed knowledge store folders."""
171
+ from ..tools import guard
172
+
173
+ return guard.run(_p(), [arg for i, arg in enumerate(a.tool_command) if i or arg != "--"])
174
+
175
+
169
176
  def register(add: Add) -> None:
170
177
  """Register the AI-tool commands."""
171
178
  p = add("install", cmd_install, msg("Install skills · rules · agent hooks into the AI tool folders (before /l-init)"))
@@ -195,6 +202,15 @@ def register(add: Add) -> None:
195
202
  p.add_argument("name")
196
203
  p.add_argument("args", nargs="*")
197
204
  p.add_argument("--agent", default="claude", help="claude | codex | antigravity")
205
+ p = add(
206
+ "guard",
207
+ cmd_guard,
208
+ msg(
209
+ "Start an AI tool inside an OS sandbox that keeps it out of the closed knowledge store folders "
210
+ "(macOS · Linux): lantern guard -- claude"
211
+ ),
212
+ )
213
+ p.add_argument("tool_command", nargs=argparse.REMAINDER, help=msg("The tool's command, after --"))
198
214
  p = add("close", cmd_close, msg("Common skill wrap-up: check → map → run record"))
199
215
  p.add_argument("skill")
200
216
  p.add_argument("--work")
@@ -64,7 +64,8 @@ DEFAULTS: dict[str, Any] = {
64
64
  "references": {"rules": [], "terms": [], "domain": [], "exclude": [], "outside_rules": False, "terms_detect": "auto"},
65
65
  }
66
66
 
67
- KNOWLEDGE_DEFAULTS: dict[str, Any] = {"type": "obsidian", "path": "", "areas_from": None, "write": "direct"}
67
+ # allow · deny: folders of the store that are open · closed (learn/knowledge/access.py); deny wins, empty lists leave everything open
68
+ KNOWLEDGE_DEFAULTS: dict[str, Any] = {"type": "obsidian", "path": "", "areas_from": None, "write": "direct", "allow": [], "deny": []}
68
69
 
69
70
  CHOICES: dict[str, tuple[str, ...]] = {
70
71
  "project.origin": ("greenfield", "brownfield"),
@@ -356,6 +357,8 @@ def validate(data: dict[str, Any]) -> list[str]:
356
357
  k = data["knowledge"]
357
358
  if not isinstance(k, dict) or not k.get("path"):
358
359
  problems.append(msg("knowledge.path: the knowledge store path is empty (delete the knowledge block if there is none)"))
360
+ if isinstance(k, dict):
361
+ problems += _access_problems(k)
359
362
  problems += _section_problems(data)
360
363
  problems += _part_problems(data)
361
364
  problems += _reference_problems(data)
@@ -366,6 +369,20 @@ def validate(data: dict[str, Any]) -> list[str]:
366
369
  return problems
367
370
 
368
371
 
372
+ def _access_problems(knowledge: dict[str, Any]) -> list[str]:
373
+ """Check knowledge.allow · knowledge.deny: lists of folders inside the store, for stores that are folders."""
374
+ problems = []
375
+ for key in ("allow", "deny"):
376
+ value = knowledge.get(key) or []
377
+ if not isinstance(value, list) or not all(isinstance(x, str) and x.strip() for x in value):
378
+ problems.append(msg("knowledge.{key}: must be a list of folders in the knowledge store (e.g. [2. Study])", key=key))
379
+ elif any(x.startswith(("/", "~")) or ".." in x.replace("\\", "/").split("/") for x in value):
380
+ problems.append(msg("knowledge.{key}: write folders relative to the knowledge store, without .. (e.g. [2. Study])", key=key))
381
+ elif value and knowledge.get("type") == "notion":
382
+ problems.append(msg("knowledge.{key}: works for obsidian · folder stores only (Notion: share only the open pages)", key=key))
383
+ return problems
384
+
385
+
369
386
  def _reference_problems(data: dict[str, Any]) -> list[str]:
370
387
  """Check that each list under references holds paths (or, for exclude, addresses)."""
371
388
  problems = []
@@ -561,10 +578,16 @@ def render(data: dict[str, Any]) -> str:
561
578
  lines.append(
562
579
  msg(" areas_from: {s} # (optional) read this folder's categories to suggest debt-card topics", s=s(k["areas_from"]))
563
580
  )
564
- lines += [
565
- msg(" write: {s} # direct (write right after approval) | propose_only (draft files only)", s=s(k["write"])),
566
- "",
567
- ]
581
+ lines.append(
582
+ msg(" write: {s} # direct (write right after approval) | propose_only (draft files only)", s=s(k["write"]))
583
+ )
584
+ if k.get("allow"):
585
+ lines.append(
586
+ msg(" allow: {s} # (optional) only these folders are open; without it, everything not in deny", s=s(k["allow"]))
587
+ )
588
+ if k.get("deny"):
589
+ lines.append(msg(" deny: {s} # (optional) folders never opened; wins over allow (lantern guard)", s=s(k["deny"])))
590
+ lines.append("")
568
591
  else:
569
592
  lines += [msg("# knowledge: add this block once there is a knowledge store (type · path · write)"), ""]
570
593
  lines += [
@@ -110,6 +110,30 @@ def _split_guides(content: str) -> tuple[list[str], list[str]]:
110
110
  return guides, rest
111
111
 
112
112
 
113
+ def outside_guides(text: str) -> list[tuple[int, str]]:
114
+ r"""Return a document's lines that aren't part of a `> [!guide]` callout, with their 1-based numbers.
115
+
116
+ A guide is a writing note from the template: what it says (an example `❓` line, say) isn't the document's own.
117
+
118
+ Args:
119
+ text: The whole document.
120
+
121
+ Returns:
122
+ (line number, line) for every line outside a guide.
123
+
124
+ Example:
125
+ >>> outside_guides("## 기획\n> [!guide]- 작성법\n> `- ❓ 확인 필요: 질문`\n- ❓ 확인 필요: 실제 질문")
126
+ [(1, '## 기획'), (4, '- ❓ 확인 필요: 실제 질문')]
127
+ """
128
+ out = []
129
+ in_guide = False
130
+ for number, line in enumerate(text.split("\n"), start=1):
131
+ in_guide = line.startswith("> [!guide]") or (in_guide and line.startswith(">"))
132
+ if not in_guide:
133
+ out.append((number, line))
134
+ return out
135
+
136
+
113
137
  def body(text: str, titles: Iterable[str]) -> str:
114
138
  r"""Return a section's content without its `> [!guide]` callouts (every `>` line of the callout).
115
139
 
@@ -12,6 +12,7 @@ We never change the other store's structure: counts and status live in our ledge
12
12
 
13
13
  Not here:
14
14
  - drafts waiting for approval (propose · write) → learn/knowledge/drafts.py
15
+ - which folders of a store are open → learn/knowledge/access.py
15
16
  """
16
17
 
17
18
  from __future__ import annotations
@@ -179,9 +180,10 @@ def adapter_for(project: Project) -> Adapter:
179
180
  raise KnowledgeError(msg("No knowledge store is set up (the knowledge block in lantern.yaml)"))
180
181
  kind = k["type"]
181
182
  if kind in ("obsidian", "folder"): # folder = any Markdown folder (other stores)
183
+ from .access import Access
182
184
  from .obsidian import ObsidianAdapter
183
185
 
184
- return ObsidianAdapter(Path(str(k["path"])).expanduser())
186
+ return ObsidianAdapter(Path(str(k["path"])).expanduser(), Access.from_config(k))
185
187
  if kind == "notion":
186
188
  from .notion import from_config
187
189
 
@@ -0,0 +1,120 @@
1
+ """Decide which folders of a knowledge store are open (knowledge.allow · knowledge.deny).
2
+
3
+ Responsibilities:
4
+ - turn the two lists of lantern.yaml into one answer: may this path be opened?
5
+ - say where a walk of the store may start
6
+
7
+ Not here:
8
+ - reading and writing the store's files → learn/knowledge/obsidian.py
9
+ - keeping an AI tool out of the closed folders at the OS level → tools/guard.py
10
+ """
11
+
12
+ from __future__ import annotations
13
+
14
+ from dataclasses import dataclass
15
+ from typing import Any
16
+
17
+ from ...core.project import nfc
18
+
19
+
20
+ def _parts(path: str) -> tuple[str, ...]:
21
+ """Split a store-relative path into comparable parts (NFC, lower case, no empty or "." parts)."""
22
+ return tuple(p.casefold() for p in nfc(str(path)).replace("\\", "/").split("/") if p and p != ".")
23
+
24
+
25
+ def _under(parts: tuple[str, ...], folders: tuple[str, ...]) -> bool:
26
+ """Whether the path is one of the folders or inside one."""
27
+ return any(parts[: len(f)] == f for f in (_parts(folder) for folder in folders) if f)
28
+
29
+
30
+ @dataclass(frozen=True)
31
+ class Access:
32
+ """Which folders of a knowledge store may be opened.
33
+
34
+ With neither list the whole store is open, as before. Once either list is set, hidden
35
+ files and folders (`.git`, `.obsidian` …) are closed too: they often hold copies of the closed notes.
36
+
37
+ Attributes:
38
+ allow: Folders that are open, relative to the store root; empty means everything not denied.
39
+ deny: Folders that are closed; they win over `allow`.
40
+
41
+ Example:
42
+ >>> Access(deny=("4. Work",)).permits("2. Study/JWT.md")
43
+ True
44
+ >>> Access(allow=("2. Study",)).permits("3. Projects/앱.md")
45
+ False
46
+ """
47
+
48
+ allow: tuple[str, ...] = ()
49
+ deny: tuple[str, ...] = ()
50
+
51
+ @classmethod
52
+ def from_config(cls, knowledge: dict[str, Any]) -> Access:
53
+ """Read the two lists from the knowledge block of lantern.yaml.
54
+
55
+ Args:
56
+ knowledge: The knowledge settings.
57
+
58
+ Returns:
59
+ The access rules; open to everything when neither list is set.
60
+
61
+ Example:
62
+ >>> Access.from_config({"path": "~/vault", "deny": ["4. Work"]}).deny
63
+ ('4. Work',)
64
+ """
65
+ return cls(allow=tuple(str(f) for f in knowledge.get("allow") or []), deny=tuple(str(f) for f in knowledge.get("deny") or []))
66
+
67
+ @property
68
+ def restricted(self) -> bool:
69
+ """Whether any folder is closed."""
70
+ return bool(self.allow or self.deny)
71
+
72
+ def permits(self, path: str) -> bool:
73
+ """Say whether a path of the store may be opened.
74
+
75
+ Names compare without regard to case or Unicode form, as macOS file names do.
76
+
77
+ Args:
78
+ path: A file or folder, relative to the store root.
79
+
80
+ Returns:
81
+ True when the path is open.
82
+
83
+ Example:
84
+ >>> access = Access(allow=("2. Study",), deny=("2. Study/Exam",))
85
+ >>> access.permits("2. study/Backend/JWT.md"), access.permits("2. Study/Exam/기출.md")
86
+ (True, False)
87
+ >>> Access(deny=("4. Work",)).permits(".git/config"), Access().permits(".git/config")
88
+ (False, True)
89
+ """
90
+ if not self.restricted:
91
+ return True
92
+ parts = _parts(path)
93
+ if ".." in parts or any(p.startswith(".") for p in parts):
94
+ return False
95
+ if _under(parts, self.deny):
96
+ return False
97
+ return not self.allow or _under(parts, self.allow)
98
+
99
+ def roots(self) -> list[str]:
100
+ """List the folders a walk of the store may start from.
101
+
102
+ A walk must not start at the store root when only some folders are open:
103
+ under `lantern guard` the root itself cannot be read.
104
+
105
+ Returns:
106
+ The open folders (one inside another is left out); [""] — the store root — when `allow` is empty.
107
+
108
+ Example:
109
+ >>> Access(allow=("2. Study", "2. Study/Backend", "3. Projects"), deny=("3. Projects",)).roots()
110
+ ['2. Study']
111
+ >>> Access(deny=("4. Work",)).roots()
112
+ ['']
113
+ """
114
+ if not self.allow:
115
+ return [""]
116
+ roots: list[str] = []
117
+ for folder in sorted(self.allow, key=lambda f: len(_parts(f))):
118
+ if self.permits(folder) and not _under(_parts(folder), tuple(roots)):
119
+ roots.append(folder)
120
+ return roots
@@ -1,11 +1,15 @@
1
1
  """Obsidian folder adapter (llm-wiki included): reads files directly, never reorganises the vault.
2
2
 
3
3
  Also serves `knowledge.type: folder` — any folder of Markdown files.
4
+
5
+ Not here:
6
+ - which folders are open (knowledge.allow · knowledge.deny) → learn/knowledge/access.py
4
7
  """
5
8
 
6
9
  from __future__ import annotations
7
10
 
8
11
  import datetime as _dt
12
+ import os
9
13
  import re
10
14
  from collections.abc import Iterator
11
15
  from pathlib import Path
@@ -14,6 +18,7 @@ from ...core import frontmatter
14
18
  from ...core.messages import msg
15
19
  from ...core.project import nfc
16
20
  from . import Adapter, Hit, KnowledgeError
21
+ from .access import Access
17
22
 
18
23
  SKIP_DIRS = {".obsidian", ".trash", ".git", "node_modules", ".smart-connections"}
19
24
 
@@ -37,13 +42,45 @@ def _summary(meta: dict, body: str) -> str:
37
42
  return ""
38
43
 
39
44
 
45
+ def on_disk(root: Path, folder: str) -> Path | None:
46
+ """Find a folder of the store the way the disk spells it.
47
+
48
+ lantern.yaml may spell a folder in another case or Unicode form than the disk does;
49
+ paths handed to people and to the OS sandbox must use the disk's spelling.
50
+
51
+ Args:
52
+ root: The store folder.
53
+ folder: A folder, relative to the store root.
54
+
55
+ Returns:
56
+ The folder's path; None when it is not there or its parent cannot be listed.
57
+
58
+ Example:
59
+ >>> on_disk(Path("~/vault").expanduser(), "2. study") # doctest: +SKIP
60
+ PosixPath('/Users/me/vault/2. Study')
61
+ """
62
+ here = root
63
+ for part in (p for p in folder.replace("\\", "/").split("/") if p and p != "."):
64
+ try:
65
+ names = os.listdir(here)
66
+ except OSError:
67
+ return None
68
+ found = next((n for n in names if nfc(n).casefold() == nfc(part).casefold()), None)
69
+ if found is None:
70
+ return None
71
+ here = here / found
72
+ return here
73
+
74
+
40
75
  class ObsidianAdapter(Adapter):
41
76
  """A knowledge store that is a folder of Markdown files (an Obsidian vault or any folder).
42
77
 
43
78
  Hidden folders and tool folders (`.obsidian`, `node_modules` …) are skipped.
79
+ Closed folders are never searched, read or written.
44
80
 
45
81
  Attributes:
46
82
  root: The store folder.
83
+ access: Which folders are open.
47
84
 
48
85
  Example:
49
86
  >>> ObsidianAdapter(Path("~/vault").expanduser()).search("JWT")[0].path # doctest: +SKIP
@@ -52,25 +89,41 @@ class ObsidianAdapter(Adapter):
52
89
 
53
90
  name = "obsidian"
54
91
 
55
- def __init__(self, root: Path) -> None:
92
+ def __init__(self, root: Path, access: Access | None = None) -> None:
56
93
  """Open a store folder.
57
94
 
58
95
  Args:
59
96
  root: The store folder.
97
+ access: Which folders are open; everything when None.
60
98
 
61
99
  Raises:
62
100
  KnowledgeError: The folder does not exist.
63
101
  """
64
102
  self.root = root.resolve()
65
- if not self.root.exists():
103
+ self.access = access or Access()
104
+ try:
105
+ exists = self.root.exists()
106
+ except PermissionError: # under `lantern guard` the root itself is closed when only some folders are open
107
+ exists = True
108
+ if not exists:
66
109
  raise KnowledgeError(msg("Knowledge store folder doesn't exist: {root}", root=root))
67
110
 
68
111
  def _files(self) -> Iterator[Path]:
69
- for p in self.root.rglob("*.md"):
70
- rel = p.relative_to(self.root)
71
- if any(part in SKIP_DIRS or part.startswith(".") for part in rel.parts[:-1]):
72
- continue
73
- yield p
112
+ for start in self.access.roots():
113
+ # under `lantern guard` the root cannot be listed: fall back to the spelling of lantern.yaml
114
+ for folder, dirs, names in os.walk(on_disk(self.root, start) or self.root / start):
115
+ rel = Path(folder).relative_to(self.root)
116
+ # closed folders are not entered at all
117
+ dirs[:] = [d for d in dirs if d not in SKIP_DIRS and not d.startswith(".") and self.access.permits(str(rel / d))]
118
+ if any(part in SKIP_DIRS or part.startswith(".") for part in rel.parts):
119
+ continue
120
+ yield from (Path(folder) / n for n in names if n.endswith(".md"))
121
+
122
+ def _refuse_closed(self, p: Path, path: str) -> None:
123
+ """Raise when a resolved path is in a closed folder (a link that leads into one counts)."""
124
+ rel = str(p.relative_to(self.root)) if p.is_relative_to(self.root) else ".."
125
+ if not self.access.permits(rel):
126
+ raise KnowledgeError(msg("Closed by knowledge.allow · knowledge.deny: {path}", path=path))
74
127
 
75
128
  def search(self, query: str, aliases: list[str] | None = None, limit: int = 5) -> list[Hit]:
76
129
  """Implement Adapter.search over file names, aliases, headings, body text and tags.
@@ -145,14 +198,17 @@ class ObsidianAdapter(Adapter):
145
198
  The note's text.
146
199
 
147
200
  Raises:
148
- KnowledgeError: The file does not exist or is outside the store.
201
+ KnowledgeError: The file does not exist, is outside the store or is in a closed folder.
149
202
 
150
203
  Example:
151
204
  >>> ObsidianAdapter(vault).read("개발/JWT.md") # doctest: +SKIP
152
205
  '# JWT\n…'
153
206
  """
154
207
  p = (self.root / path).resolve()
155
- if self.root not in p.parents or not p.exists():
208
+ if self.root not in p.parents:
209
+ raise KnowledgeError(msg("Note not found: {path}", path=path))
210
+ self._refuse_closed(p, path)
211
+ if not p.exists():
156
212
  raise KnowledgeError(msg("Note not found: {path}", path=path))
157
213
  return p.read_text(encoding="utf-8")
158
214
 
@@ -167,7 +223,7 @@ class ObsidianAdapter(Adapter):
167
223
  The created file, relative to the store root.
168
224
 
169
225
  Raises:
170
- KnowledgeError: The path is outside the store, or a file is already there.
226
+ KnowledgeError: The path is outside the store or in a closed folder, or a file is already there.
171
227
 
172
228
  Example:
173
229
  >>> ObsidianAdapter(vault).write("개발/JWT.md", "# JWT\n") # doctest: +SKIP
@@ -176,6 +232,7 @@ class ObsidianAdapter(Adapter):
176
232
  p = (self.root / rel_path).resolve()
177
233
  if self.root not in p.parents:
178
234
  raise KnowledgeError(msg("Can't write outside the store"))
235
+ self._refuse_closed(p, rel_path)
179
236
  if p.exists():
180
237
  raise KnowledgeError(msg("A note with the same name already exists: {rel_path} (not overwritten)", rel_path=rel_path))
181
238
  p.parent.mkdir(parents=True, exist_ok=True)
@@ -189,13 +246,20 @@ class ObsidianAdapter(Adapter):
189
246
  folder: A folder of the store.
190
247
 
191
248
  Returns:
192
- Subfolder names, sorted; empty when the folder does not exist.
249
+ Open subfolder names, sorted; empty when the folder does not exist.
250
+
251
+ Raises:
252
+ KnowledgeError: The folder is closed.
193
253
 
194
254
  Example:
195
255
  >>> ObsidianAdapter(vault).areas("개발") # doctest: +SKIP
196
256
  ['백엔드', '프론트']
197
257
  """
198
258
  base = self.root / folder
259
+ self._refuse_closed(base.resolve(), folder)
199
260
  if not base.is_dir():
200
261
  return []
201
- return sorted(nfc(p.name) for p in base.iterdir() if p.is_dir() and not p.name.startswith("."))
262
+ rel = Path(folder)
263
+ return sorted(
264
+ nfc(p.name) for p in base.iterdir() if p.is_dir() and not p.name.startswith(".") and self.access.permits(str(rel / p.name))
265
+ )
@@ -206,6 +206,14 @@ body {
206
206
  --blockquote-background-color: var(--background-secondary);
207
207
  }
208
208
 
209
+ /* GUIDE_NOTE */
210
+ .callout[data-callout="guide"] {
211
+ background: transparent;
212
+ opacity: 0.7;
213
+ font-size: var(--font-smaller);
214
+ --callout-padding: 4px 10px;
215
+ }
216
+
209
217
  /* QUOTE_NOTE */
210
218
  .markdown-rendered blockquote {
211
219
  margin-inline: 0;
@@ -443,7 +451,9 @@ def snippet_css(names: Names) -> str:
443
451
  "callouts (> [!abstract] and every other kind) — pale background · colored title · "
444
452
  "no border. Only variables Obsidian exposes"
445
453
  ),
446
- ).replace("QUOTE_NOTE", msg("quotes (>) — flush left in reading mode too, the same width as callouts (no indent)")),
454
+ )
455
+ .replace("GUIDE_NOTE", msg("writing notes (> [!guide]-) — folded, small and faint, so the document's own content stands out"))
456
+ .replace("QUOTE_NOTE", msg("quotes (>) — flush left in reading mode too, the same width as callouts (no indent)")),
447
457
  task_fields_css(names),
448
458
  "",
449
459
  "/* " + msg("line width — how wide a note gets with readable line length on (Obsidian's default is 700px)") + " */",
@@ -8,6 +8,7 @@ from __future__ import annotations
8
8
  from ..core import frontmatter
9
9
  from ..core.messages import msg
10
10
  from ..core.project import Project, read, work_id_of, work_name_of
11
+ from ..core.sections import outside_guides
11
12
  from ..core.taskfile import parse_tasks
12
13
  from ..work.tasks import next_task
13
14
 
@@ -36,11 +37,8 @@ def open_unknowns(project: Project) -> list[tuple[str, int]]:
36
37
  if cur.exists():
37
38
  targets += sorted(cur.rglob("*.md"))
38
39
  for p in targets:
39
- lines = [
40
- l
41
- for l in read(p).split("\n")
42
- if unknown in l and "[!guide]" not in l and f"`{unknown}" not in l and not l.lstrip().startswith("> -")
43
- ]
40
+ # writing notes from the template mention the marker as an example, which isn't an open question
41
+ lines = [l for _, l in outside_guides(read(p)) if unknown in l and f"`{unknown}" not in l and not l.lstrip().startswith("> -")]
44
42
  if lines:
45
43
  out.append((project.docs_rel(p), len(lines)))
46
44
  return out
@@ -148,6 +148,7 @@ Otherwise, when it says every task is done:
148
148
  - **Data structure and API changes are always asked about, whatever the setting.**
149
149
  2. Apply it: each fact in one place — link the work it came from.
150
150
  - Data: merge the design's DBML changes into `<<folder.current>>/<<folder.data>>/schema.dbml` → `lantern check-dbml` → `lantern dbml render`
151
+ - If the idea card this work came from (linked in `<<file.plan>>`) has a table filled in afterwards, fill it — Feature `Result` · Improvement `Improvement result` · Bug `Cause and fix` · Experiment `Result` · Tech Review `Conclusion`. Write only what `<<file.record>>` and the commits confirm, a line or two per cell, and only link the work documents. Skip it when there is no card or no such table.
151
152
  - When each applied document was checked: `lantern meta set "<document>" checked_commit=$(git rev-parse --short HEAD)` (and `code` if more code paths are involved)
152
153
  <!-- lantern:if !git.pr=work -->
153
154
  3. Merge the work branch into the base branch and clean up (bring in the base branch → test → merge → clean up). On a conflict, follow **On a conflict** below: