lanternspec 0.2.0__tar.gz → 0.2.2__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 (195) hide show
  1. {lanternspec-0.2.0/src/lanternspec.egg-info → lanternspec-0.2.2}/PKG-INFO +3 -2
  2. {lanternspec-0.2.0 → lanternspec-0.2.2}/README.md +2 -1
  3. {lanternspec-0.2.0 → lanternspec-0.2.2}/pyproject.toml +1 -1
  4. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/check/check_docs.py +2 -1
  5. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/check/layout.py +20 -2
  6. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/cli/check.py +1 -1
  7. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/cli/report.py +11 -0
  8. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/state.py +10 -9
  9. lanternspec-0.2.2/src/lanternspec/report/resume.py +133 -0
  10. lanternspec-0.2.2/src/lanternspec/resources/locales/en/skills/l-resume/SKILL.md +38 -0
  11. lanternspec-0.2.2/src/lanternspec/resources/locales/ko/skills/l-resume/SKILL.md +38 -0
  12. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/messages.yaml +24 -2
  13. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/agent_hooks.py +4 -2
  14. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/antigravity.py +41 -3
  15. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/base.py +68 -2
  16. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/claude.py +57 -1
  17. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/codex.py +47 -1
  18. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/install.py +5 -0
  19. lanternspec-0.2.2/src/lanternspec/tools/sessions.py +132 -0
  20. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/skills.py +1 -0
  21. {lanternspec-0.2.0 → lanternspec-0.2.2/src/lanternspec.egg-info}/PKG-INFO +3 -2
  22. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec.egg-info/SOURCES.txt +5 -0
  23. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_checks.py +1 -1
  24. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_core.py +1 -1
  25. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_install_and_aux.py +2 -2
  26. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_layout.py +1 -0
  27. lanternspec-0.2.2/tests/test_resume.py +122 -0
  28. {lanternspec-0.2.0 → lanternspec-0.2.2}/LICENSE +0 -0
  29. {lanternspec-0.2.0 → lanternspec-0.2.2}/setup.cfg +0 -0
  30. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/__init__.py +0 -0
  31. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/__main__.py +0 -0
  32. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/check/__init__.py +0 -0
  33. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/check/doctor.py +0 -0
  34. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/check/githooks.py +0 -0
  35. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/check/legacy.py +0 -0
  36. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/check/templates.py +0 -0
  37. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/cli/__init__.py +0 -0
  38. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/cli/common.py +0 -0
  39. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/cli/core.py +0 -0
  40. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/cli/learn.py +0 -0
  41. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/cli/tools.py +0 -0
  42. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/cli/work.py +0 -0
  43. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/__init__.py +0 -0
  44. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/enums.py +0 -0
  45. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/frontmatter.py +0 -0
  46. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/links.py +0 -0
  47. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/messages.py +0 -0
  48. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/meta.py +0 -0
  49. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/names.py +0 -0
  50. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/new_id.py +0 -0
  51. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/principles.py +0 -0
  52. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/profile.py +0 -0
  53. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/project.py +0 -0
  54. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/sections.py +0 -0
  55. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/taskfile.py +0 -0
  56. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/core/templating.py +0 -0
  57. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/learn/__init__.py +0 -0
  58. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/learn/debt.py +0 -0
  59. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/__init__.py +0 -0
  60. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/drafts.py +0 -0
  61. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/mcp_server.py +0 -0
  62. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/notion.py +0 -0
  63. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/obsidian.py +0 -0
  64. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/__init__.py +0 -0
  65. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/doc_map.py +0 -0
  66. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/evaluate.py +0 -0
  67. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/harness.py +0 -0
  68. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/obsidian.py +0 -0
  69. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/principles_doc.py +0 -0
  70. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/scan.py +0 -0
  71. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/sections_doc.py +0 -0
  72. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/status.py +0 -0
  73. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/report/views.py +0 -0
  74. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/__init__.py +0 -0
  75. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/go.yaml +0 -0
  76. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/python.yaml +0 -0
  77. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/rust.yaml +0 -0
  78. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/swift.yaml +0 -0
  79. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/typescript.yaml +0 -0
  80. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/agents/AGENTS.md +0 -0
  81. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md +0 -0
  82. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md +0 -0
  83. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md +0 -0
  84. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-design/SKILL.md +0 -0
  85. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md +0 -0
  86. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md +0 -0
  87. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md +0 -0
  88. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md +0 -0
  89. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md +0 -0
  90. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-report/SKILL.md +0 -0
  91. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md +0 -0
  92. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md +0 -0
  93. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-template/SKILL.md +0 -0
  94. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/ADR.md +0 -0
  95. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/API.md +0 -0
  96. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Architecture.md +0 -0
  97. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Collaboration Rules.md +0 -0
  98. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Competency Card.md +0 -0
  99. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Data.md +0 -0
  100. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Debt Card.md +0 -0
  101. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Deployment.md +0 -0
  102. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Design.md +0 -0
  103. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Docs MOC.md +0 -0
  104. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Feature List.md +0 -0
  105. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Idea.md +0 -0
  106. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Known Tech.md +0 -0
  107. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Legacy Map.md +0 -0
  108. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Log.md +0 -0
  109. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Meeting Notes.md +0 -0
  110. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Plan.md +0 -0
  111. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Platform Integration.md +0 -0
  112. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Project Definition.md +0 -0
  113. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Screens.md +0 -0
  114. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Server Operations.md +0 -0
  115. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Session Log.md +0 -0
  116. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Tasks.md +0 -0
  117. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +0 -0
  118. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/_meta/enums.yaml +0 -0
  119. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/agents/AGENTS.md +0 -0
  120. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-adr/SKILL.md +0 -0
  121. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-build/SKILL.md +0 -0
  122. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-check/SKILL.md +0 -0
  123. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-design/SKILL.md +0 -0
  124. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-idea/SKILL.md +0 -0
  125. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md +0 -0
  126. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-learn/SKILL.md +0 -0
  127. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-map/SKILL.md +0 -0
  128. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-plan/SKILL.md +0 -0
  129. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-report/SKILL.md +0 -0
  130. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-sync/SKILL.md +0 -0
  131. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-task/SKILL.md +0 -0
  132. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-template/SKILL.md +0 -0
  133. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates/ADR.md +0 -0
  134. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates/API.md +0 -0
  135. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates/_meta/enums.yaml +0 -0
  136. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//352/260/234/353/260/234/353/254/270/354/204/234 MOC.md" +0 -0
  137. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/212/245 /353/252/251/353/241/235.md" +0 -0
  138. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md" +0 -0
  139. {lanternspec-0.2.0 → lanternspec-0.2.2}/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
  140. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md" +0 -0
  141. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//353/215/260/354/235/264/355/204/260.md" +0 -0
  142. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//353/260/260/355/217/254.md" +0 -0
  143. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//353/266/200/354/261/204 /354/271/264/353/223/234.md" +0 -0
  144. {lanternspec-0.2.0 → lanternspec-0.2.2}/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
  145. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md" +0 -0
  146. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//354/204/270/354/205/230 /352/270/260/353/241/235.md" +0 -0
  147. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//354/213/234/354/212/244/355/205/234 /352/265/254/354/241/260.md" +0 -0
  148. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//354/225/204/353/212/224 /352/270/260/354/210/240.md" +0 -0
  149. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264.md" +0 -0
  150. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//354/227/255/353/237/211 /354/271/264/353/223/234.md" +0 -0
  151. {lanternspec-0.2.0 → lanternspec-0.2.2}/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
  152. {lanternspec-0.2.0 → lanternspec-0.2.2}/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
  153. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//355/224/214/353/236/253/355/217/274 /354/227/260/353/217/231.md" +0 -0
  154. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +0 -0
  155. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//355/230/221/354/227/205 /352/267/234/354/271/231.md" +0 -0
  156. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//355/231/224/353/251/264.md" +0 -0
  157. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//355/232/214/354/235/230/353/241/235.md" +0 -0
  158. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/names.yaml +0 -0
  159. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/resources/principles.yaml +0 -0
  160. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/__init__.py +0 -0
  161. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/close.py +0 -0
  162. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/docs_mode.py +0 -0
  163. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/health.py +0 -0
  164. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/rules.py +0 -0
  165. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/tools/runlog.py +0 -0
  166. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/__init__.py +0 -0
  167. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/branches.py +0 -0
  168. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/dbml.py +0 -0
  169. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/epic_rules.py +0 -0
  170. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/ideas.py +0 -0
  171. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/pack.py +0 -0
  172. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/progress.py +0 -0
  173. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/scaffold.py +0 -0
  174. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/screen.py +0 -0
  175. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/stages.py +0 -0
  176. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec/work/tasks.py +0 -0
  177. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec.egg-info/dependency_links.txt +0 -0
  178. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec.egg-info/entry_points.txt +0 -0
  179. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec.egg-info/requires.txt +0 -0
  180. {lanternspec-0.2.0 → lanternspec-0.2.2}/src/lanternspec.egg-info/top_level.txt +0 -0
  181. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_english.py +0 -0
  182. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_enums_single_source.py +0 -0
  183. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_git.py +0 -0
  184. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_later_features.py +0 -0
  185. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_learning_line.py +0 -0
  186. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_messages.py +0 -0
  187. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_name_overlap.py +0 -0
  188. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_names.py +0 -0
  189. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_obsidian.py +0 -0
  190. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_principles.py +0 -0
  191. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_principles_data.py +0 -0
  192. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_release_script.py +0 -0
  193. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_skill_commands.py +0 -0
  194. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_tool_health.py +0 -0
  195. {lanternspec-0.2.0 → lanternspec-0.2.2}/tests/test_work_line.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lanternspec
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Spec-driven development for agentic software engineering
5
5
  Author: Jihyeok Jeong
6
6
  License-Expression: MIT
@@ -124,6 +124,7 @@ flowchart LR
124
124
  | `/l-sync` | finds where documents and code disagree and brings them back in line | — |
125
125
  | `/l-map` | updates the MOC (document map) | `Docs MOC.md` |
126
126
  | `/l-adr` | records decisions that are hard to reverse | `Decisions/ADR-001 …` |
127
+ | `/l-resume` | carries on an earlier conversation — from any AI tool, from where it stopped even if it was cut off | — |
127
128
 
128
129
  ### How it works
129
130
  - **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.
@@ -267,7 +268,7 @@ checks check [--changed] [--epic W-012] · lint · check-dbml · dbml render
267
268
  work task next [--all]|start|done|ac|list|estimate · task add [--parallel] · pack · screen import|compare
268
269
  work branch|start|list|finish|archive|stage · design approve · unit-log add · idea find|status
269
270
  learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list · mcp
270
- reports report [--views] [--summary] · status · scan [--tests] · sync adopt · eval · obsidian plugins
271
+ reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] · sync adopt · eval · obsidian plugins
271
272
  templates template list|lint|level|bump|outdated|diff|usage|new|migrate · legacy adopt|todos
272
273
  git hooks install|uninstall|status · docs-mode local|shared
273
274
  wrap-up close <skill>
@@ -109,6 +109,7 @@ flowchart LR
109
109
  | `/l-sync` | finds where documents and code disagree and brings them back in line | — |
110
110
  | `/l-map` | updates the MOC (document map) | `Docs MOC.md` |
111
111
  | `/l-adr` | records decisions that are hard to reverse | `Decisions/ADR-001 …` |
112
+ | `/l-resume` | carries on an earlier conversation — from any AI tool, from where it stopped even if it was cut off | — |
112
113
 
113
114
  ### How it works
114
115
  - **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.
@@ -252,7 +253,7 @@ checks check [--changed] [--epic W-012] · lint · check-dbml · dbml render
252
253
  work task next [--all]|start|done|ac|list|estimate · task add [--parallel] · pack · screen import|compare
253
254
  work branch|start|list|finish|archive|stage · design approve · unit-log add · idea find|status
254
255
  learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list · mcp
255
- reports report [--views] [--summary] · status · scan [--tests] · sync adopt · eval · obsidian plugins
256
+ reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] · sync adopt · eval · obsidian plugins
256
257
  templates template list|lint|level|bump|outdated|diff|usage|new|migrate · legacy adopt|todos
257
258
  git hooks install|uninstall|status · docs-mode local|shared
258
259
  wrap-up close <skill>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lanternspec"
7
- version = "0.2.0"
7
+ version = "0.2.2"
8
8
  description = "Spec-driven development for agentic software engineering"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -575,10 +575,11 @@ def check_file(project: Project, path: Path, text: str, ctx: _Ctx) -> list[Findi
575
575
  rel,
576
576
  "template-minor",
577
577
  msg(
578
- "Template '{tname}' has new sections ({get} → {value})",
578
+ "Template '{tname}' changed ({get} → {value}) — its '{section}' section says what changed",
579
579
  tname=tname,
580
580
  get=meta.get("template_version"),
581
581
  value=ctx.templates.versions[tname],
582
+ section=project.names.marker("changelog"),
582
583
  ),
583
584
  1,
584
585
  )
@@ -274,6 +274,25 @@ def describe(project: Project, result: LayoutPlan) -> list[str]:
274
274
  return out
275
275
 
276
276
 
277
+ def changed_documents(project: Project) -> list[str]:
278
+ """List the uncommitted changes under the documents root (where the documents' git runs).
279
+
280
+ Args:
281
+ project: The project.
282
+
283
+ Returns:
284
+ One `git status --porcelain` line per changed file; empty outside git.
285
+
286
+ Example:
287
+ >>> changed_documents(project) # doctest: +SKIP
288
+ [' M 개발문서 MOC.md']
289
+ """
290
+ cwd = project.docs_git_cwd()
291
+ if git(["rev-parse", "--git-dir"], cwd).returncode != 0:
292
+ return []
293
+ return [line for line in git_out(["status", "--porcelain", "--", str(project.docs)], cwd).splitlines() if line]
294
+
295
+
277
296
  def apply(project: Project, result: LayoutPlan) -> list[str]:
278
297
  """Carry out a plan: rewrite links and template values, move with `git mv`, then commit once.
279
298
 
@@ -302,8 +321,7 @@ def apply(project: Project, result: LayoutPlan) -> list[str]:
302
321
  if git(["rev-parse", "--verify", "-q", "HEAD"], cwd).returncode != 0:
303
322
  raise LayoutError(msg("The documents have never been committed — commit them once, then run lantern upgrade --apply again"))
304
323
  staged = git_out(["diff", "--cached", "--name-only"], cwd)
305
- dirty = git_out(["status", "--porcelain", "--", str(project.docs)], cwd)
306
- if staged or dirty:
324
+ if staged or changed_documents(project):
307
325
  raise LayoutError(msg("Commit or stash the changes in the documents first, then run lantern upgrade --apply again"))
308
326
  edits: dict[Path, str] = {}
309
327
  for path, old, new in result.links:
@@ -67,7 +67,7 @@ def cmd_template(a: argparse.Namespace) -> int:
67
67
  if not rows:
68
68
  print(msg("No documents on an old template version"))
69
69
  for o in rows:
70
- hint = msg("→ suggest migrate") if o.gap == "major" else (msg("ℹ new sections") if o.gap == "minor" else msg("unchanged"))
70
+ hint = msg("→ suggest migrate") if o.gap == "major" else (msg("ℹ changed") if o.gap == "minor" else msg("unchanged"))
71
71
  print(f"{project.rel(o.path)} {o.template} {o.have} → {o.current} ({o.gap}) {hint}{'' if o.active else msg(' · finished')}")
72
72
  elif a.action == "diff":
73
73
  print(tc.diff_base(project, a.name))
@@ -21,6 +21,14 @@ def cmd_report(a: argparse.Namespace) -> int:
21
21
  return 0
22
22
 
23
23
 
24
+ def cmd_resume(a: argparse.Namespace) -> int:
25
+ """`lantern resume` — sum up an earlier conversation so any AI tool can carry it on."""
26
+ from ..report.resume import summary
27
+
28
+ _print(summary(_p(), a.session, a.more))
29
+ return 0
30
+
31
+
24
32
  def cmd_status(a: argparse.Namespace) -> int:
25
33
  """`lantern status` — print the three-line current status."""
26
34
  from ..report.status import lines
@@ -135,6 +143,9 @@ def register(add: Add) -> None:
135
143
  p.add_argument("--views")
136
144
  p.add_argument("--summary", nargs="+", help=msg("3-line summary"))
137
145
  add("status", cmd_status, msg("Where things stand in 3 lines"))
146
+ p = add("resume", cmd_resume, msg("Carry on an earlier conversation in any AI tool — where it stopped, even if it was cut off"))
147
+ p.add_argument("--session", help=msg("Which conversation: its number in the list or the start of its id"))
148
+ p.add_argument("--more", type=int, default=0, help=msg("Show this many pages further back"))
138
149
  p = add("obsidian", cmd_obsidian, msg("Download the recommended Obsidian plugins (Dataview · Metadata Menu)"))
139
150
  p.add_argument("action", choices=["plugins"])
140
151
  p = add("scan", cmd_scan, msg("Find doc-code mismatches"))
@@ -21,12 +21,7 @@ from .project import Project
21
21
 
22
22
  INSTALLED = "installed.json"
23
23
 
24
- STATE_GITIGNORE = """# {note}
25
- runs.jsonl
26
- runs-state/
27
- hook-state/
28
- pack/
29
- """
24
+ IGNORED = ("runs.jsonl", "runs-state/", "hook-state/", "pack/", "sessions/") # personal records, never committed
30
25
 
31
26
 
32
27
  def sha256_text(text: str) -> str:
@@ -65,7 +60,9 @@ def sha256_file(path: Path) -> str:
65
60
 
66
61
 
67
62
  def ensure_state_dir(project: Project) -> Path:
68
- """Create the `.lantern` folder (with a .gitignore for personal records) when missing.
63
+ """Create the `.lantern` folder when missing, and make its .gitignore cover every personal record.
64
+
65
+ An existing .gitignore keeps its lines; entries a newer version added are appended.
69
66
 
70
67
  Args:
71
68
  project: The project.
@@ -79,8 +76,12 @@ def ensure_state_dir(project: Project) -> Path:
79
76
  """
80
77
  project.state.mkdir(parents=True, exist_ok=True)
81
78
  gi = project.state / ".gitignore"
82
- if not gi.exists():
83
- gi.write_text(STATE_GITIGNORE.format(note=msg("LanternSpec local state — personal records are not committed")), encoding="utf-8")
79
+ text = (
80
+ gi.read_text(encoding="utf-8") if gi.exists() else "# " + msg("LanternSpec local state — personal records are not committed") + "\n"
81
+ )
82
+ missing = [entry for entry in IGNORED if entry not in text.splitlines()]
83
+ if missing or not gi.exists():
84
+ gi.write_text(text.rstrip("\n") + "\n" + "".join(f"{entry}\n" for entry in missing), encoding="utf-8")
84
85
  return project.state
85
86
 
86
87
 
@@ -0,0 +1,133 @@
1
+ """`lantern resume` — sum up an earlier conversation so any AI tool can carry it on, even after it was cut off.
2
+
3
+ Responsibilities:
4
+ - list the project's recent conversations (tool · time · cut off or not · last request)
5
+ - show where the chosen one stopped: the last requests, the AI's last words, the files it changed,
6
+ the uncommitted changes and the work in progress — the tail only, earlier parts with `--more`
7
+
8
+ Not here:
9
+ - recording the conversations → tools/sessions.py
10
+ - reading each tool's transcript → each tool file (Tool.read_transcript)
11
+ """
12
+
13
+ from __future__ import annotations
14
+
15
+ import re
16
+ from pathlib import Path
17
+
18
+ from ..core.messages import msg
19
+ from ..core.project import Project, git, git_out
20
+
21
+ PAGE = 6 # messages shown per page of the transcript tail
22
+ REQUESTS, REQUEST_CHARS, ANSWER_CHARS = 3, 300, 600
23
+ RESUME_CALL = re.compile(r"(?:^|\s)[/$]l-resume\b") # the conversation asking to resume is not the one to resume
24
+
25
+
26
+ def _short(text: str, limit: int) -> str:
27
+ one = " ".join(text.split())
28
+ return one if len(one) <= limit else one[: limit - 1] + "…"
29
+
30
+
31
+ def _when(iso: str) -> str:
32
+ return iso[5:16].replace("T", " ") if len(iso) >= 16 else iso
33
+
34
+
35
+ def summary(project: Project, session: str | None = None, more: int = 0) -> list[str]:
36
+ """Sum up the recent conversations and where one of them stopped.
37
+
38
+ Args:
39
+ project: The project.
40
+ session: Which conversation: its number in the list or the start of its id; the newest when None.
41
+ more: How many pages further back in the transcript to show (0 = the tail).
42
+
43
+ Returns:
44
+ Lines for the person and the AI.
45
+
46
+ Example:
47
+ >>> summary(project)[0] # doctest: +SKIP
48
+ '지난 대화 (이 프로젝트, 최근 2개)'
49
+ """
50
+ from ..tools import REGISTRY
51
+ from ..tools.sessions import recent
52
+
53
+ found = [s for s in recent(project) if not RESUME_CALL.search(s.last_prompt)]
54
+ if not found:
55
+ return [msg("No earlier conversations recorded — they are recorded from LanternSpec 0.2.2 on, in projects with its hooks")]
56
+ out = [msg("Earlier conversations (this project, latest {count})", count=min(len(found), 5))]
57
+ for i, s in enumerate(found[:5], start=1):
58
+ state = msg("⚠ cut off") if s.cut_off else msg("finished")
59
+ label = REGISTRY[s.tool].label if s.tool in REGISTRY else s.tool
60
+ out.append(f' {i}. {label} · {_when(s.last_at)} · {state} · "{_short(s.last_prompt, 60)}"')
61
+ chosen = found[0]
62
+ if session:
63
+ pick = [s for i, s in enumerate(found, start=1) if session == str(i) or s.id.startswith(session)]
64
+ if not pick:
65
+ return [*out, msg("No conversation '{session}' — pick a number from the list", session=session)]
66
+ chosen = pick[0]
67
+ out += ["", msg("→ Where conversation {id} stopped", id=chosen.id[:8])]
68
+ out += _tail(chosen.tool, chosen.transcript, more)
69
+ out += _work_state(project)
70
+ out += [
71
+ "",
72
+ msg("(earlier messages: lantern resume --more {next} · another conversation: lantern resume --session <number>)", next=more + 1),
73
+ ]
74
+ return out
75
+
76
+
77
+ def _tail(tool_name: str, transcript: str, more: int) -> list[str]:
78
+ """The last requests, the AI's last words and the changed files of one page of a transcript."""
79
+ from ..tools import REGISTRY
80
+
81
+ path = Path(transcript) if transcript else None
82
+ if path is None or not path.exists():
83
+ return [msg(" The transcript is gone or was never named: {path}", path=transcript or "-")]
84
+ turns = REGISTRY[tool_name].read_transcript(path) if tool_name in REGISTRY else None
85
+ if turns is None:
86
+ raw = path.read_text(encoding="utf-8", errors="replace").splitlines()[-5:]
87
+ return [msg(" Couldn't read this transcript format — its last lines as they are ({path}):", path=path)] + [
88
+ f" {_short(line, 200)}" for line in raw
89
+ ]
90
+ end = max(len(turns) - PAGE * more, 0)
91
+ page = turns[max(end - PAGE, 0) : end]
92
+ if not page:
93
+ return [msg(" Nothing earlier in this conversation")]
94
+ out = []
95
+ asks = [t for t in page if t.role == "user" and t.text][-REQUESTS:]
96
+ if asks:
97
+ out.append(msg(" Requests:"))
98
+ out += [f" - {_short(t.text, REQUEST_CHARS)}" for t in asks]
99
+ said = [t for t in page if t.role == "assistant" and t.text]
100
+ if said:
101
+ out.append(msg(" The AI's last words: {text}", text=_short(said[-1].text, ANSWER_CHARS)))
102
+ files = list(dict.fromkeys(f for t in page for f in t.files))
103
+ if files:
104
+ out.append(msg(" Files it changed: {items}", items=", ".join(files[-10:])))
105
+ last = page[-1]
106
+ if last.role == "user":
107
+ out.append(msg(" The last request got no answer — the conversation stopped right after it"))
108
+ elif last.tools and not last.text:
109
+ out.append(msg(" It was in the middle of: {items}", items=", ".join(dict.fromkeys(last.tools))))
110
+ return out
111
+
112
+
113
+ def _work_state(project: Project) -> list[str]:
114
+ """Uncommitted changes (code and documents) and the work in progress, to check the conversation against."""
115
+ from .status import lines
116
+
117
+ out = []
118
+ roots = {project.root, project.docs_git_cwd()}
119
+ changed = []
120
+ for root in roots:
121
+ if git(["rev-parse", "--git-dir"], root).returncode == 0:
122
+ changed += [line[3:] for line in git_out(["-c", "core.quotepath=false", "status", "--porcelain"], root).splitlines() if line]
123
+ if changed:
124
+ out.append(
125
+ msg(
126
+ " Uncommitted changes {count}: {items}",
127
+ count=len(changed),
128
+ items=", ".join(changed[:8]) + (" …" if len(changed) > 8 else ""),
129
+ )
130
+ )
131
+ if project.profile.exists:
132
+ out += [f" {line}" for line in lines(project)]
133
+ return out
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: l-resume
3
+ description: Carry on an earlier conversation — whichever AI tool it was in (Claude Code · Codex · Antigravity), whether it was cut off or finished, read where it stopped (the last requests · the AI's last words · changed files · uncommitted changes · work in progress), confirm, then continue. Use when the user asks to continue earlier work, or a previous session was cut off (usage limit, crash) or happened in another AI tool.
4
+ invocation: model
5
+ argument-hint: "[conversation number]"
6
+ ---
7
+
8
+ # /l-resume — carry on an earlier conversation
9
+
10
+ **Purpose:** find where the earlier conversation stopped and continue in the same direction. Nobody needs to know where the transcript files are — the hooks note them for every conversation, and `lantern resume` reads them.
11
+
12
+ Input: `$ARGUMENTS` — empty for the latest conversation, or a number from the list.
13
+
14
+ ## 1. Read where it stopped
15
+ ```bash
16
+ lantern resume # recent conversations + the tail of the latest one
17
+ lantern resume --session 2 # another conversation
18
+ lantern resume --more 1 # earlier messages (only when needed — it saves context)
19
+ ```
20
+ - **⚠ cut off** means the last turn never finished; what it was doing may be half done.
21
+ - If the transcript can't be read, its last lines are shown as they are — decide from those and step 2.
22
+
23
+ ## 2. Check against the current state
24
+ - See whether the **uncommitted changes** in the summary match the last request. For a cut-off conversation, open half-changed files with `git diff` to see how far it got.
25
+ - With **work in progress**, check how far it got in that work's `<<file.record>>` "<<section.now>>" section and in `<<file.tasks>>`.
26
+ - When the summary and the documents disagree, **the documents and code win** (the conversation may have been cut).
27
+
28
+ ## 3. Confirm, then continue
29
+ Ask in one line: **"I'll carry on from here: <what · from where>. Right?"**
30
+ - If yes, continue. If work was in progress, hand over to that stage's skill (e.g. `/l-build W-012` while building).
31
+ - If no, start from where the person says.
32
+ - Before **running again** what the cut-off turn was doing, check whether its result is already there (files · commits · documents) — never do the same work twice.
33
+
34
+ ## 4. Wrap up
35
+ If it ends here instead of handing over to another skill, leave only the run record (no documents changed, so no check or map update):
36
+ ```bash
37
+ lantern close l-resume --no-check --no-map
38
+ ```
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: l-resume
3
+ description: 지난 대화 이어 가기 — 이 프로젝트에서 어느 AI 도구(Claude Code · Codex · Antigravity)로 하던 대화든, 중간에 끊겼든 정상으로 끝났든, 멈춘 곳(마지막 요청 · AI의 마지막 말 · 고친 파일 · 커밋 안 된 변경 · 진행 중인 작업)을 읽고 확인받은 뒤 이어서 한다. Use when the user asks to continue earlier work, or a previous session was cut off (usage limit, crash) or happened in another AI tool.
4
+ invocation: model
5
+ argument-hint: "[대화 번호]"
6
+ ---
7
+
8
+ # /l-resume — 지난 대화 이어 가기
9
+
10
+ **목적:** 지난 대화가 멈춘 곳을 찾아, 같은 흐름으로 이어 간다. 대화 기록 파일이 어디 있는지는 사람이 몰라도 된다 — hook이 대화마다 적어 둔 것을 `lantern resume`이 읽는다.
11
+
12
+ 입력: `$ARGUMENTS` — 비우면 가장 최근 대화, 번호를 주면 그 대화.
13
+
14
+ ## 1. 멈춘 곳 읽기
15
+ ```bash
16
+ lantern resume # 최근 대화 목록 + 가장 최근 대화의 끝부분
17
+ lantern resume --session 2 # 다른 대화
18
+ lantern resume --more 1 # 더 앞의 메시지 (필요할 때만 — 컨텍스트를 아낀다)
19
+ ```
20
+ - **⚠ 끊김**이면 마지막 턴이 끝나지 못했다. 그 턴이 하던 일이 반쯤 된 채 남았을 수 있다.
21
+ - 기록 파일을 읽지 못하면 끝 몇 줄을 그대로 보여 준다 — 그것과 아래 2번으로 판단한다.
22
+
23
+ ## 2. 지금 상태와 맞춰 보기
24
+ - **커밋 안 된 변경**(요약에 나온 것)이 마지막 요청과 맞는지 본다. 끊긴 대화라면 고치다 만 파일은 `git diff`로 열어 어디까지 됐는지 확인한다.
25
+ - **진행 중인 작업**이 있으면 그 작업의 `<<file.record>>` "<<section.now>>" 칸과 `<<file.tasks>>`에서 어디까지 했는지 확인한다.
26
+ - 요약과 문서가 다르면 **문서와 코드가 기준**이다 (대화는 잘렸을 수 있다).
27
+
28
+ ## 3. 확인받고 이어 가기
29
+ 한 줄로 묻는다: **"여기서부터 이어 가겠습니다: <무엇을 · 어디서부터>. 맞나요?"**
30
+ - 맞다고 하면 이어 간다. 작업 중이었다면 그 단계의 스킬로 넘어간다 (예: 구현 중이었으면 `/l-build W-012`).
31
+ - 다르다고 하면 사람이 말한 곳부터 한다.
32
+ - 끊긴 턴이 하던 일을 **다시 실행하기 전에** 그 결과가 이미 남아 있는지(파일 · 커밋 · 문서) 먼저 본다 — 같은 일을 두 번 하지 않는다.
33
+
34
+ ## 4. 마무리
35
+ 다른 스킬로 넘어가지 않고 여기서 끝나면, 실행 기록만 남긴다 (문서를 바꾸지 않았으니 검사 · 지도 갱신은 하지 않는다):
36
+ ```bash
37
+ lantern close l-resume --no-check --no-map
38
+ ```
@@ -378,6 +378,24 @@
378
378
  "callouts (> [!abstract] and every other kind) — pale background · colored title · no border. Only variables Obsidian exposes": {ko: "callout(> [!abstract] 등 모든 종류) — 옅은 색 바탕 · 색 제목 · 테두리 없음. Obsidian이 열어 둔 변수만 쓴다"}
379
379
  "quotes (>) — flush left in reading mode too, the same width as callouts (no indent)": {ko: "인용문(>) — 읽기 모드에서도 왼쪽에 딱 붙고 callout과 같은 폭 (들여쓰기 없음)"}
380
380
 
381
+ # report/resume.py
382
+ "No earlier conversations recorded — they are recorded from LanternSpec 0.2.2 on, in projects with its hooks": {ko: "기록된 지난 대화가 없습니다 — LanternSpec 0.2.2부터, hook이 설치된 프로젝트의 대화가 기록됩니다"}
383
+ "Earlier conversations (this project, latest {count})": {ko: "지난 대화 (이 프로젝트, 최근 {count}개)"}
384
+ "⚠ cut off": {ko: "⚠ 끊김"}
385
+ "finished": {ko: "정상"}
386
+ "No conversation '{session}' — pick a number from the list": {ko: "'{session}' 대화가 없습니다 — 목록의 번호를 고르세요"}
387
+ "→ Where conversation {id} stopped": {ko: "→ 대화 {id}가 멈춘 곳"}
388
+ "(earlier messages: lantern resume --more {next} · another conversation: lantern resume --session <number>)": {ko: "(더 앞의 메시지: lantern resume --more {next} · 다른 대화: lantern resume --session <번호>)"}
389
+ " The transcript is gone or was never named: {path}": {ko: " 대화 기록 파일이 없거나 알려진 적이 없습니다: {path}"}
390
+ " Couldn't read this transcript format — its last lines as they are ({path}):": {ko: " 이 대화 기록 형식을 읽지 못했습니다 — 끝 몇 줄을 그대로 보여 줍니다 ({path}):"}
391
+ " Nothing earlier in this conversation": {ko: " 이 대화에는 더 앞의 내용이 없습니다"}
392
+ " Requests:": {ko: " 요청:"}
393
+ " The AI's last words: {text}": {ko: " AI의 마지막 말: {text}"}
394
+ " Files it changed: {items}": {ko: " 고친 파일: {items}"}
395
+ " It was in the middle of: {items}": {ko: " 하던 일: {items}"}
396
+ " The last request got no answer — the conversation stopped right after it": {ko: " 마지막 요청에 답이 없습니다 — 그 직후에 대화가 멈췄습니다"}
397
+ " Uncommitted changes {count}: {items}": {ko: " 커밋 안 된 변경 {count}개: {items}"}
398
+
381
399
  # report/principles_doc.py
382
400
  "# 🧭 Development Principles": {ko: "# 🧭 개발 원칙"}
383
401
  "> ⚙️ Generated — `lantern upgrade` · don't edit by hand.": {ko: "> ⚙️ 자동 생성 — `lantern upgrade` · 손으로 고치지 마세요."}
@@ -512,7 +530,7 @@
512
530
  "{id}: acceptance criterion {ac} is not in {name}": {ko: "{id}: 수락 기준 {ac}이 {name}에 없습니다"}
513
531
  "Prerequisite tasks form a cycle: {items}": {ko: "먼저 끝나야 할 일이 순환합니다: {items}"}
514
532
  "Task ID {id} is also in {seen}": {ko: "할 일 ID {id}가 {seen}에도 있습니다"}
515
- "Template '{tname}' has new sections ({get} → {value})": {ko: "양식 '{tname}'에 새 칸이 생겼습니다 ({get} → {value})"}
533
+ "Template '{tname}' changed ({get} → {value}) — its '{section}' section says what changed": {ko: "양식 '{tname}'이 바뀌었습니다 ({get} → {value}) — 무엇이 바뀌었는지는 양식의 '{section}' 칸에 있습니다"}
516
534
  "{id}: lists itself as a prerequisite": {ko: "{id}: 자기 자신을 먼저로 지정했습니다"}
517
535
  "ID {doc_id} is shared with other documents: {others}": {ko: "ID {doc_id}가 다른 문서와 겹칩니다: {others}"}
518
536
 
@@ -723,6 +741,7 @@
723
741
  "✔ Committed the documents on the code branch": {ko: "✔ 코드 브랜치에 문서 커밋"}
724
742
 
725
743
  # tools/install.py
744
+ "ℹ {count} documents were refreshed after the move commit — review them, then commit": {ko: "ℹ 옮기기 커밋 뒤에 문서 {count}개가 갱신됐습니다 — 확인한 뒤 커밋하세요"}
726
745
  "→ To move them, run lantern upgrade --apply (nothing was changed)": {ko: "→ 옮기려면 lantern upgrade --apply (아직 아무것도 바꾸지 않았습니다)"}
727
746
  " # Project tools · dependencies — from lantern.yaml project.languages and the lock files (kept in step by lantern upgrade)\n": {ko: " # 프로젝트 도구 · 의존성 준비 — lantern.yaml project.languages와 lock 파일에서 (lantern upgrade가 맞춘다)\n"}
728
747
  " # Once the languages (lantern.yaml project.languages) are set, lantern upgrade puts the project tool setup steps here\n": {ko: " # 언어(lantern.yaml project.languages)가 정해지면 lantern upgrade가 프로젝트 도구 준비 단계를 여기에 넣는다\n"}
@@ -776,7 +795,7 @@
776
795
  "→ suggest migrate": {ko: "→ migrate 제안"}
777
796
  " · finished": {ko: " · 끝난 문서"}
778
797
  "refined": {ko: "다듬음"}
779
- "ℹ new sections": {ko: "ℹ 새 칸"}
798
+ "ℹ changed": {ko: "ℹ 바뀜"}
780
799
  "unchanged": {ko: "그대로"}
781
800
  "lantern template new <name> --from <draft file>": {ko: "lantern template new <이름> --from <시안 파일>"}
782
801
  "\n(preview — once approved, --apply)": {ko: "\n(미리보기 — 승인되면 --apply)"}
@@ -853,6 +872,9 @@
853
872
  "Next: open the docs/ folder as a vault in Obsidian, and turn community plugins on when asked (turn off restricted mode)": {ko: "다음: Obsidian에서 docs/ 폴더를 볼트로 열고, 커뮤니티 플러그인을 켜 달라고 물으면 켭니다 (제한 모드 해제)"}
854
873
  "Make the status report": {ko: "현황 보고 생성"}
855
874
  "Where things stand in 3 lines": {ko: "지금 상황 3줄"}
875
+ "Carry on an earlier conversation in any AI tool — where it stopped, even if it was cut off": {ko: "지난 대화를 어느 AI 도구에서든 이어 가기 — 끊겼어도 멈춘 곳부터"}
876
+ "Which conversation: its number in the list or the start of its id": {ko: "어느 대화: 목록의 번호 또는 id의 앞부분"}
877
+ "Show this many pages further back": {ko: "이만큼 앞의 페이지까지 보기"}
856
878
  "Download the recommended Obsidian plugins (Dataview · Metadata Menu)": {ko: "Obsidian 권장 플러그인(Dataview · Metadata Menu) 받기"}
857
879
  "Find doc-code mismatches": {ko: "문서-코드 어긋남 찾기"}
858
880
  "Record the result of aligning": {ko: "맞추기 결과 기록"}
@@ -12,7 +12,8 @@ stop one run-log line per finished answer
12
12
  pre-compact save progress into "지금 상황" of `기록.md` (or the session document) before compaction; session-start puts it back
13
13
 
14
14
  Every handler takes (project, tool, hook call) and returns a HookResult; it never stops the agent.
15
- Every call is also noted in the hook-run record (tools/health.py), so a hook that stops running shows up.
15
+ Every call is also noted in the hook-run record (tools/health.py), so a hook that stops running shows up,
16
+ and in the conversation record (tools/sessions.py), so `lantern resume` can carry a conversation on in any tool.
16
17
  """
17
18
 
18
19
  from __future__ import annotations
@@ -24,7 +25,7 @@ from pathlib import Path
24
25
 
25
26
  from ..core.messages import msg
26
27
  from ..core.project import Project
27
- from . import health, runlog
28
+ from . import health, runlog, sessions
28
29
  from .base import HookInput, HookReply, HookResult, Tool, hook_state_dir
29
30
 
30
31
  STRUCTURE_CODES = {"frontmatter", "common-fields", "enum", "broken-link", "dup-id", "task-dup", "task-cycle", "template-structure"}
@@ -58,6 +59,7 @@ def run(project: Project, event: str, tool: Tool, raw: str) -> HookReply:
58
59
  data = data if isinstance(data, dict) else {}
59
60
  inp = tool.parse_hook(event, data)
60
61
  health.record(project, tool, event, inp, data)
62
+ sessions.record(project, tool, event, inp)
61
63
  return tool.respond(project, event, HANDLERS[event](project, tool, inp))
62
64
 
63
65
 
@@ -1,6 +1,6 @@
1
1
  """Antigravity CLI (`agy`, successor of Gemini CLI) — `.agents/skills`, AGENTS.md, hooks in `.agents/hooks.json`.
2
2
 
3
- Checked against agy 1.4.7 (its built-in agy-customizations guide and a live run), hooks rechecked on 1.4.9:
3
+ Checked against agy 1.4.7 (its built-in agy-customizations guide and a live run), hooks rechecked on 1.4.10:
4
4
  - skills: `.agents/skills/<name>/SKILL.md` (name · description), called `/l-…`
5
5
  - rules: AGENTS.md / GEMINI.md read natively
6
6
  - hooks: `{"<hook name>": {Event: [...]}}`, run with cwd = `.agents/`; payload keys are camelCase
@@ -13,15 +13,17 @@ Checked against agy 1.4.7 (its built-in agy-customizations guide and a live run)
13
13
  from __future__ import annotations
14
14
 
15
15
  import json
16
+ import re
16
17
  from pathlib import Path
17
18
  from typing import Any
18
19
 
19
20
  from ..core.messages import msg
20
21
  from ..core.project import Project, write
21
- from .base import MCP_NAME, MCP_SERVER, HookInput, HookReply, HookResult, Tool, hook_state_dir, merge_json_file
22
+ from .base import MCP_NAME, MCP_SERVER, HookInput, HookReply, HookResult, Tool, Turn, hook_state_dir, jsonl_records, merge_json_file
22
23
 
23
24
  HOOK_NAME = "lanternspec"
24
25
  PLUGIN_DIR = ".agents/plugins/lanternspec"
26
+ USER_REQUEST = re.compile(r"</?USER_REQUEST>") # agy wraps what the user wrote in these tags
25
27
  PATH_ARGS = ("Path", "TargetFile", "AbsolutePath", "FilePath", "path", "file_path")
26
28
 
27
29
 
@@ -41,7 +43,7 @@ class Antigravity(Tool):
41
43
  write_tools = frozenset(
42
44
  {"write_file", "edit_file", "create_file", "write_to_file", "replace_file_content", "multi_replace_file_content"}
43
45
  )
44
- verified_version = "1.4.9"
46
+ verified_version = "1.4.10"
45
47
 
46
48
  # ---- config
47
49
  def hooks(self) -> dict[str, Any]:
@@ -130,6 +132,7 @@ class Antigravity(Tool):
130
132
  # PreInvocation fires before every model call; the turn starts at call 0
131
133
  turn_start=int(data.get("invocationNum") or 0) == 0,
132
134
  finished=str(data.get("terminationReason") or "NO_TOOL_CALL") == "NO_TOOL_CALL",
135
+ transcript=str(data.get("transcriptPath") or ""),
133
136
  )
134
137
 
135
138
  def written_paths(self, inp: HookInput) -> list[str]:
@@ -147,6 +150,41 @@ class Antigravity(Tool):
147
150
  """
148
151
  return [str(inp.tool_input[k]) for k in PATH_ARGS if inp.tool_input.get(k)]
149
152
 
153
+ def read_transcript(self, path: Path) -> list[Turn] | None:
154
+ """Implement Tool.read_transcript for agy's transcript steps (`USER_INPUT` · `PLANNER_RESPONSE`).
155
+
156
+ The `<USER_REQUEST>` wrapper agy puts around what the user wrote is taken off.
157
+
158
+ Args:
159
+ path: The transcript file.
160
+
161
+ Returns:
162
+ The messages, oldest first.
163
+
164
+ Example:
165
+ >>> Antigravity().read_transcript(Path("…/transcript.jsonl"))[0].role # doctest: +SKIP
166
+ 'user'
167
+ """
168
+ turns: list[Turn] = []
169
+ for d in jsonl_records(path):
170
+ at = str(d.get("created_at") or "")
171
+ raw = d.get("content")
172
+ content = raw if isinstance(raw, str) else ""
173
+ if d.get("type") == "USER_INPUT" and content.strip():
174
+ turns.append(Turn("user", USER_REQUEST.sub("", content).strip(), at=at))
175
+ elif d.get("type") == "PLANNER_RESPONSE":
176
+ calls = [c for c in d.get("tool_calls") or [] if isinstance(c, dict)]
177
+ if not content.strip() and not calls:
178
+ continue
179
+ files = [
180
+ f
181
+ for c in calls
182
+ if c.get("name") in self.write_tools
183
+ for f in self.written_paths(HookInput(tool_input=c.get("args") or {}))
184
+ ]
185
+ turns.append(Turn("assistant", content.strip(), [str(c.get("name")) for c in calls], files, at))
186
+ return turns
187
+
150
188
  def respond(self, project: Project, event: str, result: HookResult) -> HookReply:
151
189
  """Implement Tool.respond for Antigravity.
152
190