lanternspec 0.2.1__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.
- {lanternspec-0.2.1/src/lanternspec.egg-info → lanternspec-0.2.2}/PKG-INFO +3 -2
- {lanternspec-0.2.1 → lanternspec-0.2.2}/README.md +2 -1
- {lanternspec-0.2.1 → lanternspec-0.2.2}/pyproject.toml +1 -1
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/cli/report.py +11 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/state.py +10 -9
- lanternspec-0.2.2/src/lanternspec/report/resume.py +133 -0
- lanternspec-0.2.2/src/lanternspec/resources/locales/en/skills/l-resume/SKILL.md +38 -0
- lanternspec-0.2.2/src/lanternspec/resources/locales/ko/skills/l-resume/SKILL.md +38 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/messages.yaml +21 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/agent_hooks.py +4 -2
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/antigravity.py +39 -1
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/base.py +68 -2
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/claude.py +57 -1
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/codex.py +47 -1
- lanternspec-0.2.2/src/lanternspec/tools/sessions.py +132 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/skills.py +1 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2/src/lanternspec.egg-info}/PKG-INFO +3 -2
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec.egg-info/SOURCES.txt +5 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_core.py +1 -1
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_install_and_aux.py +2 -2
- lanternspec-0.2.2/tests/test_resume.py +122 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/LICENSE +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/setup.cfg +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/__main__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/check/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/check/check_docs.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/check/doctor.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/check/githooks.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/check/layout.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/check/legacy.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/check/templates.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/cli/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/cli/check.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/cli/common.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/cli/core.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/cli/learn.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/cli/tools.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/cli/work.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/enums.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/frontmatter.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/links.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/messages.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/meta.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/names.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/new_id.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/principles.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/profile.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/project.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/sections.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/taskfile.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/core/templating.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/learn/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/learn/debt.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/drafts.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/mcp_server.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/notion.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/learn/knowledge/obsidian.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/doc_map.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/evaluate.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/harness.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/obsidian.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/principles_doc.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/scan.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/sections_doc.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/status.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/report/views.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/go.yaml +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/python.yaml +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/rust.yaml +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/swift.yaml +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/conventions/typescript.yaml +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/agents/AGENTS.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/ADR.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/API.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Architecture.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Collaboration Rules.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Competency Card.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Data.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Debt Card.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Deployment.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Design.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Docs MOC.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Feature List.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Idea.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Known Tech.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Legacy Map.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Log.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Meeting Notes.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Plan.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Platform Integration.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Project Definition.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Screens.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Server Operations.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Session Log.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Tasks.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/en/templates/_meta/enums.yaml +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/agents/AGENTS.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-build/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-plan/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-task/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates/ADR.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates/API.md +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates/_meta/enums.yaml +0 -0
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md" +0 -0
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md" +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//353/215/260/354/235/264/355/204/260.md" +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//353/260/260/355/217/254.md" +0 -0
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md" +0 -0
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +0 -0
- {lanternspec-0.2.1 → 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
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//355/231/224/353/251/264.md" +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/locales/ko/templates//355/232/214/354/235/230/353/241/235.md" +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/names.yaml +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/resources/principles.yaml +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/close.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/docs_mode.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/health.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/install.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/rules.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/tools/runlog.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/__init__.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/branches.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/dbml.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/epic_rules.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/ideas.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/pack.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/progress.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/scaffold.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/screen.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/stages.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec/work/tasks.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec.egg-info/dependency_links.txt +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec.egg-info/entry_points.txt +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec.egg-info/requires.txt +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/src/lanternspec.egg-info/top_level.txt +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_checks.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_english.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_enums_single_source.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_git.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_later_features.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_layout.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_learning_line.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_messages.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_name_overlap.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_names.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_obsidian.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_principles.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_principles_data.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_release_script.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_skill_commands.py +0 -0
- {lanternspec-0.2.1 → lanternspec-0.2.2}/tests/test_tool_health.py +0 -0
- {lanternspec-0.2.1 → 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.
|
|
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>
|
|
@@ -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
|
-
|
|
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
|
|
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
|
-
|
|
83
|
-
gi.
|
|
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` · 손으로 고치지 마세요."}
|
|
@@ -854,6 +872,9 @@
|
|
|
854
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/ 폴더를 볼트로 열고, 커뮤니티 플러그인을 켜 달라고 물으면 켭니다 (제한 모드 해제)"}
|
|
855
873
|
"Make the status report": {ko: "현황 보고 생성"}
|
|
856
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: "이만큼 앞의 페이지까지 보기"}
|
|
857
878
|
"Download the recommended Obsidian plugins (Dataview · Metadata Menu)": {ko: "Obsidian 권장 플러그인(Dataview · Metadata Menu) 받기"}
|
|
858
879
|
"Find doc-code mismatches": {ko: "문서-코드 어긋남 찾기"}
|
|
859
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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -45,6 +45,7 @@ class HookInput:
|
|
|
45
45
|
cwd: The folder the agent works in.
|
|
46
46
|
turn_start: For prompt: whether this is the first model call of a user turn.
|
|
47
47
|
finished: For stop: whether the turn ended normally (not an error or a cancel).
|
|
48
|
+
transcript: Where the tool keeps this conversation's transcript ("" when it didn't say).
|
|
48
49
|
|
|
49
50
|
Example:
|
|
50
51
|
>>> HookInput(session="s1", prompt="/l-build W-012").prompt
|
|
@@ -60,6 +61,30 @@ class HookInput:
|
|
|
60
61
|
cwd: str = ""
|
|
61
62
|
turn_start: bool = True # prompt: the first model call of a user turn
|
|
62
63
|
finished: bool = True # stop: the turn ended normally (not an error or a cancel)
|
|
64
|
+
transcript: str = "" # the tool's transcript file for this conversation
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@dataclass
|
|
68
|
+
class Turn:
|
|
69
|
+
"""One message of a transcript, in LanternSpec's words (each tool reads its own transcript format into this).
|
|
70
|
+
|
|
71
|
+
Attributes:
|
|
72
|
+
role: "user" or "assistant".
|
|
73
|
+
text: What was written (tool calls not included).
|
|
74
|
+
tools: Names of the tools the message called.
|
|
75
|
+
files: Files those calls wrote.
|
|
76
|
+
at: When, as the transcript wrote it ("" when it didn't).
|
|
77
|
+
|
|
78
|
+
Example:
|
|
79
|
+
>>> Turn("user", "로그인 버튼 고쳐 줘").role
|
|
80
|
+
'user'
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
role: str
|
|
84
|
+
text: str
|
|
85
|
+
tools: list[str] = field(default_factory=list)
|
|
86
|
+
files: list[str] = field(default_factory=list)
|
|
87
|
+
at: str = ""
|
|
63
88
|
|
|
64
89
|
|
|
65
90
|
@dataclass
|
|
@@ -104,8 +129,8 @@ class Tool:
|
|
|
104
129
|
"""The contract of an AI tool adapter.
|
|
105
130
|
|
|
106
131
|
Shared code knows only this class; each tool overrides what its format needs.
|
|
107
|
-
Methods with a default (skill_meta, skill_extras, install_config, check_config, hooks, written_paths
|
|
108
|
-
overridden only by tools that need them.
|
|
132
|
+
Methods with a default (skill_meta, skill_extras, install_config, check_config, hooks, written_paths,
|
|
133
|
+
read_transcript) are overridden only by tools that need them.
|
|
109
134
|
|
|
110
135
|
Attributes:
|
|
111
136
|
name: Key used on the command line and in installed.json, e.g. "claude".
|
|
@@ -327,6 +352,21 @@ class Tool:
|
|
|
327
352
|
"""
|
|
328
353
|
return []
|
|
329
354
|
|
|
355
|
+
def read_transcript(self, path: Path) -> list[Turn] | None:
|
|
356
|
+
"""Read the tool's transcript of one conversation.
|
|
357
|
+
|
|
358
|
+
Args:
|
|
359
|
+
path: The transcript file the tool named in its hook calls.
|
|
360
|
+
|
|
361
|
+
Returns:
|
|
362
|
+
The messages, oldest first; None when this tool's transcript format is not known.
|
|
363
|
+
|
|
364
|
+
Example:
|
|
365
|
+
>>> get("claude").read_transcript(Path("…/s1.jsonl"))[-1].role # doctest: +SKIP
|
|
366
|
+
'assistant'
|
|
367
|
+
"""
|
|
368
|
+
return None
|
|
369
|
+
|
|
330
370
|
def respond(self, project: Project, event: str, result: HookResult) -> HookReply:
|
|
331
371
|
"""Write a hook result back in the form the tool accepts. Must work for any result, even an empty one.
|
|
332
372
|
|
|
@@ -435,3 +475,29 @@ def hook_state_dir(project: Project) -> Path:
|
|
|
435
475
|
p = project.state / "hook-state"
|
|
436
476
|
p.mkdir(parents=True, exist_ok=True)
|
|
437
477
|
return p
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
def jsonl_records(path: Path) -> list[dict[str, Any]]:
|
|
481
|
+
"""Read a JSON-lines file, skipping lines that are not JSON objects (a transcript may end mid-write).
|
|
482
|
+
|
|
483
|
+
Args:
|
|
484
|
+
path: The file.
|
|
485
|
+
|
|
486
|
+
Returns:
|
|
487
|
+
The objects, in file order; empty when the file is missing.
|
|
488
|
+
|
|
489
|
+
Example:
|
|
490
|
+
>>> jsonl_records(Path("/no/such/file.jsonl"))
|
|
491
|
+
[]
|
|
492
|
+
"""
|
|
493
|
+
if not path.exists():
|
|
494
|
+
return []
|
|
495
|
+
out = []
|
|
496
|
+
for line in path.read_text(encoding="utf-8", errors="replace").splitlines():
|
|
497
|
+
try:
|
|
498
|
+
data = json.loads(line)
|
|
499
|
+
except json.JSONDecodeError:
|
|
500
|
+
continue
|
|
501
|
+
if isinstance(data, dict):
|
|
502
|
+
out.append(data)
|
|
503
|
+
return out
|
|
@@ -15,7 +15,19 @@ from typing import TYPE_CHECKING, Any
|
|
|
15
15
|
|
|
16
16
|
from ..core.messages import msg
|
|
17
17
|
from ..core.project import Project, git, read, write
|
|
18
|
-
from .base import
|
|
18
|
+
from .base import (
|
|
19
|
+
HOOK_COMMAND,
|
|
20
|
+
MCP_NAME,
|
|
21
|
+
MCP_SERVER,
|
|
22
|
+
HookInput,
|
|
23
|
+
HookReply,
|
|
24
|
+
HookResult,
|
|
25
|
+
Tool,
|
|
26
|
+
Turn,
|
|
27
|
+
jsonl_records,
|
|
28
|
+
merge_json_file,
|
|
29
|
+
replace_hook_entries,
|
|
30
|
+
)
|
|
19
31
|
|
|
20
32
|
if TYPE_CHECKING:
|
|
21
33
|
from ..core.profile import Profile
|
|
@@ -66,6 +78,7 @@ class ClaudeHooks:
|
|
|
66
78
|
tool=str(data.get("tool_name") or ""),
|
|
67
79
|
tool_input=tool_input if isinstance(tool_input, dict) else {},
|
|
68
80
|
cwd=str(data.get("cwd") or ""),
|
|
81
|
+
transcript=str(data.get("transcript_path") or ""),
|
|
69
82
|
)
|
|
70
83
|
|
|
71
84
|
def written_paths(self, inp: HookInput) -> list[str]:
|
|
@@ -244,6 +257,44 @@ class ClaudeCode(ClaudeHooks, Tool):
|
|
|
244
257
|
merged.append(f".mcp.json (MCP {MCP_NAME})")
|
|
245
258
|
return merged
|
|
246
259
|
|
|
260
|
+
def read_transcript(self, path: Path) -> list[Turn] | None:
|
|
261
|
+
r"""Implement Tool.read_transcript for Claude Code's JSON lines (`type` user · assistant, `message.content`).
|
|
262
|
+
|
|
263
|
+
Subagent lines and user lines that only carry tool results are left out.
|
|
264
|
+
|
|
265
|
+
Args:
|
|
266
|
+
path: The transcript file.
|
|
267
|
+
|
|
268
|
+
Returns:
|
|
269
|
+
The messages, oldest first.
|
|
270
|
+
|
|
271
|
+
Example:
|
|
272
|
+
>>> ClaudeCode().read_transcript(Path("…/s1.jsonl"))[0].text # doctest: +SKIP
|
|
273
|
+
'로그인 버튼 고쳐 줘'
|
|
274
|
+
"""
|
|
275
|
+
turns: list[Turn] = []
|
|
276
|
+
for d in jsonl_records(path):
|
|
277
|
+
role = d.get("type")
|
|
278
|
+
message = d.get("message")
|
|
279
|
+
if role not in ("user", "assistant") or d.get("isSidechain") or not isinstance(message, dict):
|
|
280
|
+
continue
|
|
281
|
+
content = message.get("content")
|
|
282
|
+
blocks = [{"type": "text", "text": content}] if isinstance(content, str) else content if isinstance(content, list) else []
|
|
283
|
+
texts = [str(b.get("text") or "") for b in blocks if isinstance(b, dict) and b.get("type") == "text"]
|
|
284
|
+
calls = [b for b in blocks if isinstance(b, dict) and b.get("type") == "tool_use"]
|
|
285
|
+
if not any(t.strip() for t in texts) and not calls:
|
|
286
|
+
continue # tool results, thinking only
|
|
287
|
+
files = [
|
|
288
|
+
f
|
|
289
|
+
for c in calls
|
|
290
|
+
if c.get("name") in self.write_tools
|
|
291
|
+
for f in self.written_paths(HookInput(tool_input=_dict(c.get("input"))))
|
|
292
|
+
]
|
|
293
|
+
turns.append(
|
|
294
|
+
Turn(str(role), "\n".join(texts).strip(), [str(c.get("name")) for c in calls], files, str(d.get("timestamp") or ""))
|
|
295
|
+
)
|
|
296
|
+
return turns
|
|
297
|
+
|
|
247
298
|
def check_config(self, project: Project) -> list[tuple[str, str]]:
|
|
248
299
|
"""Implement Tool.check_config: does Claude Code read the root and the nested AGENTS.md?
|
|
249
300
|
|
|
@@ -398,3 +449,8 @@ def model_from_transcript(path: str) -> str:
|
|
|
398
449
|
if entry.get("type") == "assistant" and isinstance(msg, dict) and msg.get("model"):
|
|
399
450
|
return str(msg["model"])
|
|
400
451
|
return ""
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
def _dict(value: Any) -> dict[str, Any]:
|
|
455
|
+
"""The value when it is a mapping, else an empty one (a transcript is not checked input)."""
|
|
456
|
+
return value if isinstance(value, dict) else {}
|