lanternspec 0.4.0__tar.gz → 0.5.0__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.4.0/src/lanternspec.egg-info → lanternspec-0.5.0}/PKG-INFO +17 -16
- {lanternspec-0.4.0 → lanternspec-0.5.0}/README.md +16 -15
- {lanternspec-0.4.0 → lanternspec-0.5.0}/pyproject.toml +1 -1
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/check_docs.py +30 -1
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/doctor.py +11 -3
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/learn.py +60 -15
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/report.py +20 -5
- lanternspec-0.5.0/src/lanternspec/cli/table.py +91 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/tools.py +0 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/work.py +9 -3
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/enums.py +47 -3
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/meta.py +12 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/new_id.py +6 -5
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/profile.py +11 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/state.py +2 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/taskfile.py +5 -0
- lanternspec-0.5.0/src/lanternspec/core/textwidth.py +54 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/learn/debt.py +42 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/learn/knowledge/__init__.py +74 -8
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/learn/knowledge/drafts.py +20 -5
- lanternspec-0.5.0/src/lanternspec/learn/knowledge/keychain.py +118 -0
- lanternspec-0.5.0/src/lanternspec/learn/knowledge/notion.py +729 -0
- lanternspec-0.5.0/src/lanternspec/learn/knowledge/notion_database.py +151 -0
- lanternspec-0.5.0/src/lanternspec/learn/knowledge/notion_markdown.py +623 -0
- lanternspec-0.5.0/src/lanternspec/learn/knowledge/notion_setup.py +380 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/learn/knowledge/obsidian.py +5 -2
- lanternspec-0.5.0/src/lanternspec/report/components.py +152 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/evaluate.py +121 -7
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/retro.py +120 -25
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/views.py +67 -35
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md +10 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md +18 -3
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md +11 -6
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/AI Retro.md +4 -2
- lanternspec-0.5.0/src/lanternspec/resources/locales/en/templates/Component Card.md +67 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Debt Card.md +4 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Repository File Rules.md +3 -3
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Tech Selection Criteria.md +41 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/_meta/enums.yaml +20 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-build/SKILL.md +10 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md +18 -3
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-learn/SKILL.md +11 -6
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates/AI /355/232/214/352/263/240.md" +4 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates/_meta/enums.yaml +20 -0
- lanternspec-0.5.0/src/lanternspec/resources/locales/ko/templates//352/265/254/354/204/261 /354/271/264/353/223/234.md" +67 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//352/270/260/354/210/240 /354/204/240/355/203/235 /352/270/260/354/244/200.md" +41 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//353/266/200/354/261/204 /354/271/264/353/223/234.md" +4 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/240/200/354/236/245/354/206/214 /355/214/214/354/235/274 /352/267/234/354/271/231.md" +3 -3
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/messages.yaml +173 -17
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/names.yaml +8 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/obsidian/lantern-kanban/main.js +30 -26
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/obsidian/lantern-kanban/manifest.json +1 -1
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/obsidian/lantern-kanban/styles.css +14 -13
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/obsidian/lantern-timeline/main.js +102 -24
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/obsidian/lantern-timeline/manifest.json +1 -1
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/obsidian/lantern-timeline/styles.css +12 -11
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/__init__.py +9 -2
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/agent_hooks.py +36 -1
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/antigravity.py +5 -17
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/base.py +42 -9
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/claude.py +113 -30
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/codex.py +5 -32
- lanternspec-0.5.0/src/lanternspec/tools/components.py +110 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/install.py +10 -9
- lanternspec-0.5.0/src/lanternspec/tools/retired.py +117 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/runlog.py +122 -4
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/scaffold.py +94 -1
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/tasks.py +27 -7
- {lanternspec-0.4.0 → lanternspec-0.5.0/src/lanternspec.egg-info}/PKG-INFO +17 -16
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec.egg-info/SOURCES.txt +23 -1
- lanternspec-0.5.0/tests/test_component_cards.py +153 -0
- lanternspec-0.5.0/tests/test_components.py +329 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_enums_single_source.py +3 -3
- lanternspec-0.5.0/tests/test_enums_upgrade.py +91 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_install_and_aux.py +0 -33
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_later_features.py +7 -6
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_learning_line.py +33 -5
- lanternspec-0.5.0/tests/test_notion_markdown.py +256 -0
- lanternspec-0.5.0/tests/test_notion_read.py +260 -0
- lanternspec-0.5.0/tests/test_notion_search.py +278 -0
- lanternspec-0.5.0/tests/test_notion_setup.py +770 -0
- lanternspec-0.5.0/tests/test_notion_write.py +311 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_obsidian.py +3 -2
- lanternspec-0.5.0/tests/test_profile_table.py +105 -0
- lanternspec-0.5.0/tests/test_retired.py +78 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_retro.py +85 -1
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_runlog.py +142 -1
- lanternspec-0.5.0/tests/test_table.py +71 -0
- lanternspec-0.5.0/tests/test_task_times.py +186 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_work_line.py +20 -3
- lanternspec-0.4.0/src/lanternspec/learn/knowledge/mcp_server.py +0 -169
- lanternspec-0.4.0/src/lanternspec/learn/knowledge/notion.py +0 -272
- {lanternspec-0.4.0 → lanternspec-0.5.0}/LICENSE +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/setup.cfg +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/__init__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/__main__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/__init__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/budget.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/githooks.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/layout.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/legacy.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/openspec.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/pr_check.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/check/templates.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/__init__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/check.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/color.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/common.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/core.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/cli/refs.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/__init__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/frontmatter.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/links.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/messages.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/names.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/outline.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/principles.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/project.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/sections.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/core/templating.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/learn/__init__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/learn/knowledge/access.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/refs/__init__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/refs/convert.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/refs/domain.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/refs/index.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/refs/rules.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/refs/sources.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/refs/terms.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/__init__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/build_mode.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/doc_map.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/obsidian.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/principles_doc.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/resume.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/scan.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/sections_doc.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/report/status.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/__init__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/conventions/go.yaml +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/conventions/python.yaml +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/conventions/rust.yaml +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/conventions/swift.yaml +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/conventions/typescript.yaml +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/agents/AGENTS.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/agents/lantern-reviewer.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/git/gitmessage.txt +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/github/pull_request_template.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-domain/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-finish/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-migrate/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-parallel/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-pr/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-ref/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-ref/domain.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-ref/rules.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-ref/terms.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/ADR.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/API.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Architecture.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Collaboration Rules.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Competency Card.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Data.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Deployment.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Design System.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Design.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Docs MOC.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Feature List.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Glossary.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Idea - Bug.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Idea - Experiment.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Idea - Feature.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Idea - Improvement.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Idea - Tech Review.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Idea.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Known Tech.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Legacy Map.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Log.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Meeting Notes.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Plan.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Platform Integration.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Project Definition.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Screens.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Server Operations.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Session Log.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Task Breakdown Rules.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Tasks.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/agents/AGENTS.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/agents/lantern-reviewer.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/git/gitmessage.txt +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/github/pull_request_template.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-domain/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-finish/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-migrate/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-parallel/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-plan/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-pr/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-ref/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-ref/domain.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-ref/rules.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-ref/terms.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-task/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates/ADR.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates/API.md +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//352/260/234/353/260/234/353/254/270/354/204/234 MOC.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/212/245 /353/252/251/353/241/235.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/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.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//353/215/260/354/235/264/355/204/260.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//353/224/224/354/236/220/354/235/270 /354/213/234/354/212/244/355/205/234.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//353/260/260/355/217/254.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/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.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/204/270/354/205/230 /352/270/260/353/241/235.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/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.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/225/204/353/212/224 /352/270/260/354/210/240.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /352/260/234/354/204/240.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /352/270/260/353/212/245.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /352/270/260/354/210/240 /352/262/200/355/206/240.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /353/262/204/352/267/270.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264 - /354/213/244/355/227/230.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/227/255/353/237/211 /354/271/264/353/223/234.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//354/232/251/354/226/264/354/247/221.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/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.4.0 → lanternspec-0.5.0}/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.4.0 → lanternspec-0.5.0}/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.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274 /353/202/230/353/210/204/352/270/260 /352/270/260/354/244/200.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//355/230/221/354/227/205 /352/267/234/354/271/231.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//355/231/224/353/251/264.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/locales/ko/templates//355/232/214/354/235/230/353/241/235.md" +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/openspec.yaml +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/resources/principles.yaml +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/close.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/docs_mode.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/guard.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/health.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/parts.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/rules.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/sessions.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/tools/skills.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/__init__.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/branches.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/dbml.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/epic_rules.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/ideas.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/loop.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/pack.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/progress.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/review.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/screen.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec/work/stages.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec.egg-info/dependency_links.txt +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec.egg-info/entry_points.txt +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec.egg-info/requires.txt +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/src/lanternspec.egg-info/top_level.txt +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_budget.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_checks.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_color.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_core.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_english.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_git.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_guard.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_layout.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_legacy.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_loop.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_messages.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_name_overlap.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_names.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_openspec.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_part_delivery.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_parts.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_principles.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_principles_data.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_progress_parallel.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_refs.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_release_script.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_resume.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_review.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_skill_commands.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_tool_health.py +0 -0
- {lanternspec-0.4.0 → lanternspec-0.5.0}/tests/test_understood.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lanternspec
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: Spec-driven development for agentic software engineering
|
|
5
5
|
Author: Jihyeok Jeong
|
|
6
6
|
License-Expression: MIT
|
|
@@ -163,8 +163,8 @@ Sections lantern reads and writes (protected sections, such as "Now" in a log) m
|
|
|
163
163
|
|
|
164
164
|
### Viewing the docs in Obsidian
|
|
165
165
|
Open the `docs/` folder as a vault in Obsidian and it is already set up for reading (`docs/.obsidian/`).
|
|
166
|
-
`lantern obsidian plugins` also adds Lantern Timeline, which shows the report's timeline as bars: stretches with work in fine columns (5 minutes to an hour), time with no task folded away, and how long each finished task took beside it. Tasks without a date wait with their size in a "no date yet" column on the right; drag one onto a day to plan it. Drag a planned task that has not started to move it, or drag its ends to change its length; the dates are saved in its planned and due attributes.
|
|
167
|
-
Lantern Kanban comes along too: works as cards in stage columns (plan · design · tasks · build · done), each opening its tasks in a window when clicked (read only). Turn off a view you don't want in Obsidian's settings, and reports draw without it.
|
|
166
|
+
`lantern obsidian plugins` also adds Lantern Timeline, which shows the report's timeline as bars: stretches with work in fine columns (5 minutes to an hour), time with no task folded away, and how long each finished task took beside it. A work's row shows when planning, design, splitting into tasks and the build happened, one bar per stage. Tasks without a date wait with their size in a "no date yet" column on the right; drag one onto a day to plan it. Drag a planned task that has not started to move it, or drag its ends to change its length; the dates are saved in its planned and due attributes.
|
|
167
|
+
Lantern Kanban comes along too: works as cards in stage columns (plan · design · tasks · build · done), each showing who is on its tasks in progress and opening its tasks in a window when clicked (read only). Turn off a view you don't want in Obsidian's settings, and reports draw without it.
|
|
168
168
|
The task list (`Tasks.md`) reads like a table: names on the left, size · after · criteria in columns on the right. The file keeps one line per task.
|
|
169
169
|
|
|
170
170
|
- **Folder colors, folder and file icons, callouts and quotes** — each document stage has its own folder color, folders and files get icons, and callouts and quotes look clean. Works on top of any theme.
|
|
@@ -199,11 +199,11 @@ To run several works at once, check them with `/l-parallel`, run `/l-build` in e
|
|
|
199
199
|
|
|
200
200
|
## Supported AI tools
|
|
201
201
|
|
|
202
|
-
| Tool | Skills | Rules | Agent hooks |
|
|
203
|
-
|
|
204
|
-
| Claude Code | `.claude/skills` | `AGENTS.md` (an existing `CLAUDE.md` gets `@AGENTS.md`) | `.claude/settings.json` |
|
|
205
|
-
| Codex | `.agents/skills` (`$l-…`) | `AGENTS.md` | `.codex/hooks.json` |
|
|
206
|
-
| Antigravity CLI (`agy`) | `.agents/skills` | `AGENTS.md` | `.agents/hooks.json` (no save-before-compaction — there is no compaction hook) |
|
|
202
|
+
| Tool | Skills | Rules | Agent hooks |
|
|
203
|
+
|---|---|---|---|
|
|
204
|
+
| Claude Code | `.claude/skills` | `AGENTS.md` (an existing `CLAUDE.md` gets `@AGENTS.md`) | `.claude/settings.json` |
|
|
205
|
+
| Codex | `.agents/skills` (`$l-…`) | `AGENTS.md` | `.codex/hooks.json` |
|
|
206
|
+
| Antigravity CLI (`agy`) | `.agents/skills` | `AGENTS.md` | `.agents/hooks.json` (no save-before-compaction — there is no compaction hook) |
|
|
207
207
|
|
|
208
208
|
- **Rules live in `AGENTS.md`.** LanternSpec manages only the `<!-- lanternspec:start -->` block inside it and leaves everything outside the block alone. When a file goes past what the installed tools read in full, `lantern doctor` tells you.
|
|
209
209
|
- **Codex and Antigravity share the skills folder.** When you use both, skill bodies say `/l-build`, and `AGENTS.md` tells Codex to use `$` instead.
|
|
@@ -255,14 +255,14 @@ When the AI uses a technology you don't know, LanternSpec compares it with the n
|
|
|
255
255
|
- 🟡 you have a note but asked again → tells you what to review
|
|
256
256
|
- 🔴 no note yet → suggests a draft study note
|
|
257
257
|
|
|
258
|
-
Anything you don't understand yet is kept as a debt card, and every time you ask about it again the count goes up.
|
|
258
|
+
Anything you don't understand yet is kept as a debt card, and every time you ask about it again the count goes up. Only what a person asked or chose to keep becomes a card; what the AI got stuck on while building goes to the AI retro with `lantern retro note`.
|
|
259
259
|
|
|
260
260
|
| Knowledge base (`knowledge.type`) | How | Writing |
|
|
261
261
|
|---|---|---|
|
|
262
262
|
| `obsidian` · `folder` | reads Markdown files directly | creates notes after approval (drafts only with `propose_only`) |
|
|
263
|
-
| `notion` |
|
|
263
|
+
| `notion` | Fetches the list of pages and searches titles and properties; reads blocks inside blocks | New page or database row after approval (drafts only with `propose_only`). Connect with `lantern knowledge setup notion` |
|
|
264
264
|
|
|
265
|
-
Every knowledge base supports the same four actions: search · read · propose · write
|
|
265
|
+
Every knowledge base supports the same four actions: search · read · propose · write (`lantern knowledge …`).
|
|
266
266
|
|
|
267
267
|
Folders of the knowledge base the AI must not open go in `knowledge.deny` in `lantern.yaml` (or list the only open ones in `knowledge.allow`). lantern neither searches nor reads closed folders. To also stop the AI tool from opening them directly, start it with `lantern guard -- claude`: the tool runs inside the operating system's sandbox (macOS, and Linux with bubblewrap; works with `claude` · `codex` · `agy`; on macOS the tool's own sandbox has to be off, and lantern turns Codex's off itself).
|
|
268
268
|
|
|
@@ -296,7 +296,8 @@ Picks design principles and code conventions from a table, based on the project
|
|
|
296
296
|
- **Parallel works:** whether to run different works at once in worktrees (checked with `/l-parallel`)
|
|
297
297
|
|
|
298
298
|
### Evaluation
|
|
299
|
-
`lantern eval` uses the run log to compare cost (time · tool calls) and results (format errors at wrap-up) per skill, model and setting.
|
|
299
|
+
`lantern eval` uses the run log to compare cost (time · tool calls) and results (format errors at wrap-up) per skill, model and setting. For Claude Code it also shows the calls and failures of each MCP server and plugin.
|
|
300
|
+
Why one was added and what to expect of it goes on a component card (`lantern scaffold component`).
|
|
300
301
|
|
|
301
302
|
### Design tools
|
|
302
303
|
Claude Design: in Claude Code, the AI draws wireframes on a Design canvas itself. Figma and Canva work through each tool's MCP.
|
|
@@ -306,14 +307,14 @@ Import mockups with `lantern screen import`; `lantern screen compare` finds wher
|
|
|
306
307
|
## CLI at a glance
|
|
307
308
|
|
|
308
309
|
```text
|
|
309
|
-
setup install [--language] [--tools] [--
|
|
310
|
+
setup install [--language] [--tools] [--ci|--no-ci] [--pr-template] [--commit-template] · upgrade [--apply] · doctor · build-mode suggest · guard -- <tool>
|
|
310
311
|
profile profile show|docs|write|set · principles show|detect · parts [add|ignore] · enums list|rename · sections list|rename|off|on
|
|
311
|
-
documents scaffold init [--plan] | work | doc | idea | adr | meeting | custom · new-id · map · meta get|set
|
|
312
|
+
documents scaffold init [--plan] | work | doc | idea | adr | component | meeting | custom · new-id · map · meta get|set
|
|
312
313
|
checks check [--changed] [--epic W-012] · check-pr · lint [--ci] · check-dbml · dbml render|from-sql|diff
|
|
313
314
|
work task next [--all]|start|done|ac|list|estimate · task add [--parallel] [--spike] · pack · screen import|compare
|
|
314
315
|
work branch|start|list|overlap|finish|archive|stage|flow · design approve · unit-log add · idea find|status
|
|
315
|
-
learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list
|
|
316
|
-
reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] [--ci] · sync adopt · eval · obsidian plugins
|
|
316
|
+
learning knowledge search|read|propose|write|areas|properties|setup · debt find|new|ask|resolve|promote|practice|known|status|list
|
|
317
|
+
reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] [--ci] · sync adopt · eval · retro add|note|judge|confirm|review · obsidian plugins
|
|
317
318
|
templates template list|show|lint|level|bump|outdated|diff|usage|new|migrate · legacy adopt [--apply]|todos · migrate openspec [--apply]
|
|
318
319
|
references ref list|check|index|read · tag|exclude|rules · terms|term|glossary|candidate · domain|describe|attach · convert [--apply]|preview
|
|
319
320
|
git hooks install|uninstall|status · docs-mode local|shared
|
|
@@ -148,8 +148,8 @@ Sections lantern reads and writes (protected sections, such as "Now" in a log) m
|
|
|
148
148
|
|
|
149
149
|
### Viewing the docs in Obsidian
|
|
150
150
|
Open the `docs/` folder as a vault in Obsidian and it is already set up for reading (`docs/.obsidian/`).
|
|
151
|
-
`lantern obsidian plugins` also adds Lantern Timeline, which shows the report's timeline as bars: stretches with work in fine columns (5 minutes to an hour), time with no task folded away, and how long each finished task took beside it. Tasks without a date wait with their size in a "no date yet" column on the right; drag one onto a day to plan it. Drag a planned task that has not started to move it, or drag its ends to change its length; the dates are saved in its planned and due attributes.
|
|
152
|
-
Lantern Kanban comes along too: works as cards in stage columns (plan · design · tasks · build · done), each opening its tasks in a window when clicked (read only). Turn off a view you don't want in Obsidian's settings, and reports draw without it.
|
|
151
|
+
`lantern obsidian plugins` also adds Lantern Timeline, which shows the report's timeline as bars: stretches with work in fine columns (5 minutes to an hour), time with no task folded away, and how long each finished task took beside it. A work's row shows when planning, design, splitting into tasks and the build happened, one bar per stage. Tasks without a date wait with their size in a "no date yet" column on the right; drag one onto a day to plan it. Drag a planned task that has not started to move it, or drag its ends to change its length; the dates are saved in its planned and due attributes.
|
|
152
|
+
Lantern Kanban comes along too: works as cards in stage columns (plan · design · tasks · build · done), each showing who is on its tasks in progress and opening its tasks in a window when clicked (read only). Turn off a view you don't want in Obsidian's settings, and reports draw without it.
|
|
153
153
|
The task list (`Tasks.md`) reads like a table: names on the left, size · after · criteria in columns on the right. The file keeps one line per task.
|
|
154
154
|
|
|
155
155
|
- **Folder colors, folder and file icons, callouts and quotes** — each document stage has its own folder color, folders and files get icons, and callouts and quotes look clean. Works on top of any theme.
|
|
@@ -184,11 +184,11 @@ To run several works at once, check them with `/l-parallel`, run `/l-build` in e
|
|
|
184
184
|
|
|
185
185
|
## Supported AI tools
|
|
186
186
|
|
|
187
|
-
| Tool | Skills | Rules | Agent hooks |
|
|
188
|
-
|
|
189
|
-
| Claude Code | `.claude/skills` | `AGENTS.md` (an existing `CLAUDE.md` gets `@AGENTS.md`) | `.claude/settings.json` |
|
|
190
|
-
| Codex | `.agents/skills` (`$l-…`) | `AGENTS.md` | `.codex/hooks.json` |
|
|
191
|
-
| Antigravity CLI (`agy`) | `.agents/skills` | `AGENTS.md` | `.agents/hooks.json` (no save-before-compaction — there is no compaction hook) |
|
|
187
|
+
| Tool | Skills | Rules | Agent hooks |
|
|
188
|
+
|---|---|---|---|
|
|
189
|
+
| Claude Code | `.claude/skills` | `AGENTS.md` (an existing `CLAUDE.md` gets `@AGENTS.md`) | `.claude/settings.json` |
|
|
190
|
+
| Codex | `.agents/skills` (`$l-…`) | `AGENTS.md` | `.codex/hooks.json` |
|
|
191
|
+
| Antigravity CLI (`agy`) | `.agents/skills` | `AGENTS.md` | `.agents/hooks.json` (no save-before-compaction — there is no compaction hook) |
|
|
192
192
|
|
|
193
193
|
- **Rules live in `AGENTS.md`.** LanternSpec manages only the `<!-- lanternspec:start -->` block inside it and leaves everything outside the block alone. When a file goes past what the installed tools read in full, `lantern doctor` tells you.
|
|
194
194
|
- **Codex and Antigravity share the skills folder.** When you use both, skill bodies say `/l-build`, and `AGENTS.md` tells Codex to use `$` instead.
|
|
@@ -240,14 +240,14 @@ When the AI uses a technology you don't know, LanternSpec compares it with the n
|
|
|
240
240
|
- 🟡 you have a note but asked again → tells you what to review
|
|
241
241
|
- 🔴 no note yet → suggests a draft study note
|
|
242
242
|
|
|
243
|
-
Anything you don't understand yet is kept as a debt card, and every time you ask about it again the count goes up.
|
|
243
|
+
Anything you don't understand yet is kept as a debt card, and every time you ask about it again the count goes up. Only what a person asked or chose to keep becomes a card; what the AI got stuck on while building goes to the AI retro with `lantern retro note`.
|
|
244
244
|
|
|
245
245
|
| Knowledge base (`knowledge.type`) | How | Writing |
|
|
246
246
|
|---|---|---|
|
|
247
247
|
| `obsidian` · `folder` | reads Markdown files directly | creates notes after approval (drafts only with `propose_only`) |
|
|
248
|
-
| `notion` |
|
|
248
|
+
| `notion` | Fetches the list of pages and searches titles and properties; reads blocks inside blocks | New page or database row after approval (drafts only with `propose_only`). Connect with `lantern knowledge setup notion` |
|
|
249
249
|
|
|
250
|
-
Every knowledge base supports the same four actions: search · read · propose · write
|
|
250
|
+
Every knowledge base supports the same four actions: search · read · propose · write (`lantern knowledge …`).
|
|
251
251
|
|
|
252
252
|
Folders of the knowledge base the AI must not open go in `knowledge.deny` in `lantern.yaml` (or list the only open ones in `knowledge.allow`). lantern neither searches nor reads closed folders. To also stop the AI tool from opening them directly, start it with `lantern guard -- claude`: the tool runs inside the operating system's sandbox (macOS, and Linux with bubblewrap; works with `claude` · `codex` · `agy`; on macOS the tool's own sandbox has to be off, and lantern turns Codex's off itself).
|
|
253
253
|
|
|
@@ -281,7 +281,8 @@ Picks design principles and code conventions from a table, based on the project
|
|
|
281
281
|
- **Parallel works:** whether to run different works at once in worktrees (checked with `/l-parallel`)
|
|
282
282
|
|
|
283
283
|
### Evaluation
|
|
284
|
-
`lantern eval` uses the run log to compare cost (time · tool calls) and results (format errors at wrap-up) per skill, model and setting.
|
|
284
|
+
`lantern eval` uses the run log to compare cost (time · tool calls) and results (format errors at wrap-up) per skill, model and setting. For Claude Code it also shows the calls and failures of each MCP server and plugin.
|
|
285
|
+
Why one was added and what to expect of it goes on a component card (`lantern scaffold component`).
|
|
285
286
|
|
|
286
287
|
### Design tools
|
|
287
288
|
Claude Design: in Claude Code, the AI draws wireframes on a Design canvas itself. Figma and Canva work through each tool's MCP.
|
|
@@ -291,14 +292,14 @@ Import mockups with `lantern screen import`; `lantern screen compare` finds wher
|
|
|
291
292
|
## CLI at a glance
|
|
292
293
|
|
|
293
294
|
```text
|
|
294
|
-
setup install [--language] [--tools] [--
|
|
295
|
+
setup install [--language] [--tools] [--ci|--no-ci] [--pr-template] [--commit-template] · upgrade [--apply] · doctor · build-mode suggest · guard -- <tool>
|
|
295
296
|
profile profile show|docs|write|set · principles show|detect · parts [add|ignore] · enums list|rename · sections list|rename|off|on
|
|
296
|
-
documents scaffold init [--plan] | work | doc | idea | adr | meeting | custom · new-id · map · meta get|set
|
|
297
|
+
documents scaffold init [--plan] | work | doc | idea | adr | component | meeting | custom · new-id · map · meta get|set
|
|
297
298
|
checks check [--changed] [--epic W-012] · check-pr · lint [--ci] · check-dbml · dbml render|from-sql|diff
|
|
298
299
|
work task next [--all]|start|done|ac|list|estimate · task add [--parallel] [--spike] · pack · screen import|compare
|
|
299
300
|
work branch|start|list|overlap|finish|archive|stage|flow · design approve · unit-log add · idea find|status
|
|
300
|
-
learning knowledge search|read|propose|write|areas · debt find|new|ask|resolve|promote|practice|known|status|list
|
|
301
|
-
reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] [--ci] · sync adopt · eval · obsidian plugins
|
|
301
|
+
learning knowledge search|read|propose|write|areas|properties|setup · debt find|new|ask|resolve|promote|practice|known|status|list
|
|
302
|
+
reports report [--views] [--summary] · status · resume [--session] [--more] · scan [--tests] [--ci] · sync adopt · eval · retro add|note|judge|confirm|review · obsidian plugins
|
|
302
303
|
templates template list|show|lint|level|bump|outdated|diff|usage|new|migrate · legacy adopt [--apply]|todos · migrate openspec [--apply]
|
|
303
304
|
references ref list|check|index|read · tag|exclude|rules · terms|term|glossary|candidate · domain|describe|attach · convert [--apply]|preview
|
|
304
305
|
git hooks install|uninstall|status · docs-mode local|shared
|
|
@@ -10,6 +10,7 @@ Not here:
|
|
|
10
10
|
|
|
11
11
|
from __future__ import annotations
|
|
12
12
|
|
|
13
|
+
import datetime as _dt
|
|
13
14
|
import json
|
|
14
15
|
import re
|
|
15
16
|
from collections import Counter, defaultdict
|
|
@@ -22,7 +23,7 @@ from ..core.links import Resolver, iter_links
|
|
|
22
23
|
from ..core.messages import msg
|
|
23
24
|
from ..core.project import Project, git_out, nfc, read
|
|
24
25
|
from ..core.sections import outside_guides
|
|
25
|
-
from ..core.taskfile import parse_criteria, parse_tasks, size_role
|
|
26
|
+
from ..core.taskfile import Task, parse_criteria, parse_tasks, size_role
|
|
26
27
|
|
|
27
28
|
COMMON_FIELDS = ["id", "type", "status", "created", "updated", "links", "template", "template_version"]
|
|
28
29
|
LEVEL_ICON = {"error": "✖", "warn": "⚠", "info": "ℹ"}
|
|
@@ -671,6 +672,33 @@ def check_file(project: Project, path: Path, text: str, ctx: _Ctx) -> list[Findi
|
|
|
671
672
|
return out
|
|
672
673
|
|
|
673
674
|
|
|
675
|
+
FUTURE_SLACK = _dt.timedelta(days=1) # times are local: one written further east may be up to a day ahead of where it is checked (CI)
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
def _time_problems(project: Project, t: Task) -> list[str]:
|
|
679
|
+
"""What can't be true of a task's times. `lantern task start · done` stamp them, so such a time was written by hand."""
|
|
680
|
+
start, finish = (_task_time(t, role) for role in ("start", "finish"))
|
|
681
|
+
out = []
|
|
682
|
+
if start and finish:
|
|
683
|
+
by_day = len(t.started.strip()) < 16 or len(t.finished.strip()) < 16 # a date alone has no time of day to compare
|
|
684
|
+
if finish.date() < start.date() if by_day else finish < start:
|
|
685
|
+
out.append(msg("{id}: it finished before it started ({start} → {finish})", id=t.id, start=t.started, finish=t.finished))
|
|
686
|
+
latest = _dt.datetime.now() + FUTURE_SLACK
|
|
687
|
+
for role, at in (("start", start), ("finish", finish)):
|
|
688
|
+
if at and at > latest:
|
|
689
|
+
out.append(msg("{id}: [{attr}] is in the future ({at})", id=t.id, attr=project.names.attr(role), at=f"{at:%Y-%m-%d %H:%M}"))
|
|
690
|
+
return out
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
def _task_time(t: Task, role: str) -> _dt.datetime | None:
|
|
694
|
+
for fmt in ("%Y-%m-%d %H:%M", "%Y-%m-%d"):
|
|
695
|
+
try:
|
|
696
|
+
return _dt.datetime.strptime((t.started if role == "start" else t.finished).strip(), fmt)
|
|
697
|
+
except ValueError:
|
|
698
|
+
continue
|
|
699
|
+
return None
|
|
700
|
+
|
|
701
|
+
|
|
674
702
|
def _check_tasks(project: Project, path: Path, text: str, rel: str) -> list[Finding]:
|
|
675
703
|
out: list[Finding] = []
|
|
676
704
|
tasks = parse_tasks(text, project.names)
|
|
@@ -702,6 +730,7 @@ def _check_tasks(project: Project, path: Path, text: str, rel: str) -> list[Find
|
|
|
702
730
|
line,
|
|
703
731
|
)
|
|
704
732
|
)
|
|
733
|
+
out += [Finding("warn", rel, "task-time", problem, line) for problem in _time_problems(project, t)]
|
|
705
734
|
for dep in t.deps:
|
|
706
735
|
if dep not in known:
|
|
707
736
|
out.append(
|
|
@@ -82,14 +82,22 @@ def run(project: Project) -> list[tuple[str, str]]:
|
|
|
82
82
|
from pathlib import Path
|
|
83
83
|
|
|
84
84
|
if k["type"] == "notion":
|
|
85
|
-
import
|
|
85
|
+
from ..learn.knowledge.notion import notion_token, token_sources
|
|
86
86
|
|
|
87
87
|
env = str(k.get("token_env") or "NOTION_TOKEN")
|
|
88
88
|
out.append(
|
|
89
89
|
(OK, msg("Notion token {env} is set", env=env))
|
|
90
|
-
if
|
|
91
|
-
else (WARN, msg("No Notion token — environment variable {env}", env=env))
|
|
90
|
+
if notion_token(env)
|
|
91
|
+
else (WARN, msg("No Notion token — run `lantern knowledge setup notion` (or set the environment variable {env})", env=env))
|
|
92
92
|
)
|
|
93
|
+
from_env, from_keychain = token_sources(env)
|
|
94
|
+
if from_env and from_keychain and from_env != from_keychain:
|
|
95
|
+
out.append(
|
|
96
|
+
(
|
|
97
|
+
WARN,
|
|
98
|
+
msg("The environment variable {env} and the Keychain hold different tokens — the Keychain is used first", env=env),
|
|
99
|
+
)
|
|
100
|
+
)
|
|
93
101
|
else:
|
|
94
102
|
path = Path(str(k["path"])).expanduser()
|
|
95
103
|
out.append(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Learning-line commands: knowledge (knowledge connector) · debt (debt ledger)
|
|
1
|
+
"""Learning-line commands: knowledge (knowledge connector) · debt (debt ledger)."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ from .common import Add, CliError, _p
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def cmd_knowledge(a: argparse.Namespace) -> int:
|
|
15
|
-
"""`lantern knowledge search|read|propose|write|areas` — talk to the knowledge store."""
|
|
15
|
+
"""`lantern knowledge search|read|propose|write|areas|properties|setup` — talk to the knowledge store, or connect Notion."""
|
|
16
16
|
from ..learn.knowledge import adapter_for, drafts
|
|
17
17
|
|
|
18
18
|
project = _p()
|
|
@@ -44,7 +44,13 @@ def cmd_knowledge(a: argparse.Namespace) -> int:
|
|
|
44
44
|
content = Path(a.file).read_text(encoding="utf-8")
|
|
45
45
|
elif a.stdin:
|
|
46
46
|
content = sys.stdin.read()
|
|
47
|
-
|
|
47
|
+
properties = {}
|
|
48
|
+
for pair in a.property or []:
|
|
49
|
+
name, eq, value = pair.partition("=")
|
|
50
|
+
if not eq or not name.strip():
|
|
51
|
+
raise CliError(msg('Write it as --property "name=value": {pair}', pair=pair))
|
|
52
|
+
properties[name.strip()] = value.strip()
|
|
53
|
+
res = drafts.propose(project, a.arg, content, area=a.area or "", target=a.target or "", properties=properties)
|
|
48
54
|
print(msg("✔ Draft {draft} (awaiting approval) → suggested place in the store: {target}", draft=res["draft"], target=res["target"]))
|
|
49
55
|
if res["write_mode"] == "propose_only":
|
|
50
56
|
print(msg("ℹ propose_only — once approved, the user moves it into the store"))
|
|
@@ -56,6 +62,35 @@ def cmd_knowledge(a: argparse.Namespace) -> int:
|
|
|
56
62
|
res = drafts.write_draft(project, draft, a.target)
|
|
57
63
|
print(msg("✔ Wrote to the knowledge store: {path}", path=res["path"]))
|
|
58
64
|
return 0
|
|
65
|
+
if a.action == "properties":
|
|
66
|
+
found = adapter_for(project).properties()
|
|
67
|
+
if a.json:
|
|
68
|
+
print(json.dumps([p.to_dict() for p in found], ensure_ascii=False, indent=2))
|
|
69
|
+
elif not found:
|
|
70
|
+
print(msg("Notes in this store have no properties to fill"))
|
|
71
|
+
for prop in [] if a.json else found:
|
|
72
|
+
print(f"· {prop.name} ({prop.kind})" + (f": {', '.join(prop.options)}" if prop.options else ""))
|
|
73
|
+
return 0
|
|
74
|
+
if a.action == "setup":
|
|
75
|
+
if a.arg != "notion":
|
|
76
|
+
raise CliError(msg("Only Notion has a setup: lantern knowledge setup notion"))
|
|
77
|
+
if not project.profile.exists:
|
|
78
|
+
raise CliError(
|
|
79
|
+
msg(
|
|
80
|
+
"No lantern.yaml in {root} — run /l-init first and choose Notion there; it tells you when to run this",
|
|
81
|
+
root=project.root,
|
|
82
|
+
)
|
|
83
|
+
)
|
|
84
|
+
if not sys.stdin.isatty():
|
|
85
|
+
raise CliError(
|
|
86
|
+
msg(
|
|
87
|
+
"This asks for a token, so run it yourself in a terminal: lantern knowledge setup notion "
|
|
88
|
+
"(the AI must not see the token, so don't paste it into a chat)"
|
|
89
|
+
)
|
|
90
|
+
)
|
|
91
|
+
from ..learn.knowledge import notion_setup
|
|
92
|
+
|
|
93
|
+
return notion_setup.run(project, notion_setup.TerminalIo(), open_browser=not a.no_open)
|
|
59
94
|
if a.action == "areas":
|
|
60
95
|
k = project.profile.knowledge or {}
|
|
61
96
|
folder = a.arg or k.get("areas_from")
|
|
@@ -70,6 +105,19 @@ def cmd_knowledge(a: argparse.Namespace) -> int:
|
|
|
70
105
|
return 1
|
|
71
106
|
|
|
72
107
|
|
|
108
|
+
def _asker(a: argparse.Namespace) -> str:
|
|
109
|
+
"""Who asked. An AI runs commands without a terminal, so there it has to name the person (a person at a terminal doesn't)."""
|
|
110
|
+
by = (a.by or "").strip(" ,")
|
|
111
|
+
if not by and not sys.stdin.isatty():
|
|
112
|
+
raise CliError(
|
|
113
|
+
msg(
|
|
114
|
+
'Say who asked with --by "<person>" — the ledger keeps what a person asked or chose to keep; '
|
|
115
|
+
"what the AI got stuck on goes to lantern retro note"
|
|
116
|
+
)
|
|
117
|
+
)
|
|
118
|
+
return by
|
|
119
|
+
|
|
120
|
+
|
|
73
121
|
def cmd_debt(a: argparse.Namespace) -> int:
|
|
74
122
|
"""`lantern debt find|new|ask|resolve|promote|practice|known|status|list` — the debt ledger."""
|
|
75
123
|
from ..learn import debt
|
|
@@ -96,6 +144,7 @@ def cmd_debt(a: argparse.Namespace) -> int:
|
|
|
96
144
|
print(msg("No card: '{arg}'", arg=a.arg))
|
|
97
145
|
return 0
|
|
98
146
|
if a.action == "new":
|
|
147
|
+
by = _asker(a)
|
|
99
148
|
p = debt.new_card(
|
|
100
149
|
project,
|
|
101
150
|
a.arg,
|
|
@@ -106,6 +155,7 @@ def cmd_debt(a: argparse.Namespace) -> int:
|
|
|
106
155
|
session=a.session or "",
|
|
107
156
|
context=a.context or "",
|
|
108
157
|
kind=a.kind,
|
|
158
|
+
by=by,
|
|
109
159
|
)
|
|
110
160
|
print(f"{project.enums.icon('debt_status', 'new')} {project.rel(p)}")
|
|
111
161
|
return 0
|
|
@@ -118,7 +168,7 @@ def cmd_debt(a: argparse.Namespace) -> int:
|
|
|
118
168
|
print(f"{project.enums.icon('debt_status', 'practicing')} {project.rel(debt.practice(project, a.arg, a.name))}")
|
|
119
169
|
return 0
|
|
120
170
|
if a.action == "ask":
|
|
121
|
-
r = debt.ask(project, a.arg, work=a.work, session=a.session or "", context=a.context or "")
|
|
171
|
+
r = debt.ask(project, a.arg, work=a.work, session=a.session or "", context=a.context or "", by=_asker(a))
|
|
122
172
|
if not r.counted:
|
|
123
173
|
print(msg("· Already counted in this conversation ({ask_count})", ask_count=r.ask_count))
|
|
124
174
|
else:
|
|
@@ -158,17 +208,10 @@ def cmd_debt(a: argparse.Namespace) -> int:
|
|
|
158
208
|
return 1
|
|
159
209
|
|
|
160
210
|
|
|
161
|
-
def cmd_mcp(a: argparse.Namespace) -> int:
|
|
162
|
-
"""`lantern mcp` — serve the knowledge contract as an MCP server over stdio."""
|
|
163
|
-
from ..learn.knowledge.mcp_server import serve
|
|
164
|
-
|
|
165
|
-
return serve(_p())
|
|
166
|
-
|
|
167
|
-
|
|
168
211
|
def register(add: Add) -> None:
|
|
169
212
|
"""Register the learning-line commands."""
|
|
170
|
-
p = add("knowledge", cmd_knowledge, msg("Knowledge connector: search · read · propose · write · areas"))
|
|
171
|
-
p.add_argument("action", choices=["search", "read", "propose", "write", "areas"])
|
|
213
|
+
p = add("knowledge", cmd_knowledge, msg("Knowledge connector: search · read · propose · write · areas · properties · setup notion"))
|
|
214
|
+
p.add_argument("action", choices=["search", "read", "propose", "write", "areas", "properties", "setup"])
|
|
172
215
|
p.add_argument("arg", nargs="?")
|
|
173
216
|
p.add_argument("--alias", action="append")
|
|
174
217
|
p.add_argument("--limit", type=int, default=5)
|
|
@@ -176,7 +219,9 @@ def register(add: Add) -> None:
|
|
|
176
219
|
p.add_argument("--file")
|
|
177
220
|
p.add_argument("--stdin", action="store_true")
|
|
178
221
|
p.add_argument("--area")
|
|
179
|
-
p.add_argument("--target")
|
|
222
|
+
p.add_argument("--target", help=msg("propose · write: where the note goes (for Notion, its last part is the title)"))
|
|
223
|
+
p.add_argument("--property", action="append", metavar="NAME=VALUE", help=msg("propose: a value for a property of the note"))
|
|
224
|
+
p.add_argument("--no-open", action="store_true", help=msg("setup: don't open Notion's integrations page in the browser"))
|
|
180
225
|
p = add("debt", cmd_debt, msg("Debt ledger: find · new · ask · resolve · promote · practice · known · status · list"))
|
|
181
226
|
p.add_argument("action", choices=["find", "new", "ask", "resolve", "promote", "practice", "known", "status", "list"])
|
|
182
227
|
p.add_argument("arg", nargs="?")
|
|
@@ -187,5 +232,5 @@ def register(add: Add) -> None:
|
|
|
187
232
|
p.add_argument("--note")
|
|
188
233
|
p.add_argument("--session")
|
|
189
234
|
p.add_argument("--context")
|
|
235
|
+
p.add_argument("--by", help=msg("new · ask: the person who asked (an AI is refused)"))
|
|
190
236
|
p.add_argument("--kind", help=msg("new: understanding (default) | tech"))
|
|
191
|
-
add("mcp", cmd_mcp, msg("Knowledge connector MCP server (stdio)"))
|
|
@@ -4,6 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import argparse
|
|
6
6
|
import json
|
|
7
|
+
import sys
|
|
7
8
|
import unicodedata
|
|
8
9
|
|
|
9
10
|
from ..core.messages import msg
|
|
@@ -73,17 +74,18 @@ def cmd_map(a: argparse.Namespace) -> int:
|
|
|
73
74
|
def cmd_eval(a: argparse.Namespace) -> int:
|
|
74
75
|
"""`lantern eval` — show the AI work evaluation (text or JSON)."""
|
|
75
76
|
from ..report import evaluate
|
|
77
|
+
from . import table
|
|
76
78
|
|
|
77
79
|
project = _p()
|
|
78
80
|
if a.json:
|
|
79
81
|
print(json.dumps(evaluate.summary(project), ensure_ascii=False, indent=2))
|
|
80
82
|
else:
|
|
81
|
-
print(evaluate.markdown(project))
|
|
83
|
+
print(table.for_terminal(evaluate.markdown(project), sys.stdout))
|
|
82
84
|
return 0
|
|
83
85
|
|
|
84
86
|
|
|
85
87
|
def cmd_retro(a: argparse.Namespace) -> int:
|
|
86
|
-
"""`lantern retro add|judge|confirm|review` — the AI retro: rows
|
|
88
|
+
"""`lantern retro add|note|judge|confirm|review` — the AI retro: rows of loops, what the AI got stuck on, its judgment, confirmation."""
|
|
87
89
|
from ..report import retro
|
|
88
90
|
|
|
89
91
|
project = _p()
|
|
@@ -97,7 +99,7 @@ def cmd_retro(a: argparse.Namespace) -> int:
|
|
|
97
99
|
print(f"{row.date} {retro.render_row(row, project.names)}")
|
|
98
100
|
return 0
|
|
99
101
|
if not a.args:
|
|
100
|
-
raise CliError("lantern retro add W-012 · judge <run> <key> · confirm <run> <key>")
|
|
102
|
+
raise CliError("lantern retro add W-012 · note W-012-T03 · judge <run> <key> · confirm <run> <key>")
|
|
101
103
|
if a.action == "add":
|
|
102
104
|
added = retro.record(project, a.args[0])
|
|
103
105
|
print(
|
|
@@ -114,6 +116,17 @@ def cmd_retro(a: argparse.Namespace) -> int:
|
|
|
114
116
|
print(msg(" W (weakness): {items}", items=" | ".join(e.values("retro_weakness"))))
|
|
115
117
|
print(msg(" R (remedy): {items}", items=" | ".join(e.values("retro_remedy"))))
|
|
116
118
|
return 0
|
|
119
|
+
if a.action == "note":
|
|
120
|
+
judged = a.weakness or a.remedy or a.hypothesis
|
|
121
|
+
if judged: # checked before the line is written, so a wrong value leaves nothing behind
|
|
122
|
+
if not (a.weakness and a.remedy and a.hypothesis):
|
|
123
|
+
raise CliError(msg("judge needs --weakness, --remedy and --hypothesis"))
|
|
124
|
+
retro.check_judgment(project, a.weakness, a.remedy, a.hypothesis)
|
|
125
|
+
row = retro.note(project, a.args[0], a.stuck or "", a.solved or "")
|
|
126
|
+
if judged:
|
|
127
|
+
row = retro.judge(project, row.run, row.key, a.weakness, a.remedy, a.hypothesis, a.suggestion or "")
|
|
128
|
+
print("✔ " + retro.render_row(row, project.names))
|
|
129
|
+
return 0
|
|
117
130
|
if len(a.args) < 2:
|
|
118
131
|
raise CliError(f"lantern retro {a.action} <run> <key>")
|
|
119
132
|
if a.action == "judge":
|
|
@@ -218,9 +231,11 @@ def register(add: Add) -> None:
|
|
|
218
231
|
add("map", cmd_map, msg("Update the MOC"))
|
|
219
232
|
p = add("eval", cmd_eval, msg("Evaluate AI work — which setups helped (run records)"))
|
|
220
233
|
p.add_argument("--json", action="store_true")
|
|
221
|
-
p = add("retro", cmd_retro, msg("AI retro: add rows of a finished loop · judge · confirm · review"))
|
|
222
|
-
p.add_argument("action", choices=["add", "judge", "confirm", "review"])
|
|
234
|
+
p = add("retro", cmd_retro, msg("AI retro: add rows of a finished loop · note what the AI got stuck on · judge · confirm · review"))
|
|
235
|
+
p.add_argument("action", choices=["add", "note", "judge", "confirm", "review"])
|
|
223
236
|
p.add_argument("args", nargs="*")
|
|
237
|
+
p.add_argument("--stuck", help=msg("note: what the AI got stuck on, one line"))
|
|
238
|
+
p.add_argument("--solved", help=msg("note: how it got past it, one line"))
|
|
224
239
|
p.add_argument("--weakness", help=msg("judge: why the first try was blocked (a value of the weakness list)"))
|
|
225
240
|
p.add_argument("--remedy", help=msg("judge: where fixing it helps (a value of the remedy list)"))
|
|
226
241
|
p.add_argument("--hypothesis", help=msg("judge: the guess, one line"))
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"""Draw the Markdown tables of a report as aligned columns for a terminal.
|
|
2
|
+
|
|
3
|
+
Responsibilities:
|
|
4
|
+
- line the columns up by the columns a terminal uses (Korean and other wide letters take two)
|
|
5
|
+
- drop the Markdown marks around a title (`**…**`) and a note (`_…_`) that a terminal shows as plain characters
|
|
6
|
+
|
|
7
|
+
Not here:
|
|
8
|
+
- writing the tables → report/*.py (they stay Markdown, because the Obsidian reports use them)
|
|
9
|
+
- coloring status marks → cli/color.py
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
import re
|
|
15
|
+
from typing import TextIO
|
|
16
|
+
|
|
17
|
+
from ..core.textwidth import cells
|
|
18
|
+
|
|
19
|
+
_RULE = re.compile(r"^\|(\s*:?-{3,}:?\s*\|)+$") # the line under a table's header: |---|---|
|
|
20
|
+
_NUMBER = re.compile(r"^(\d[\d.,]*%?|—)$") # a cell that is a number (or the dash for "none"), so its column is right-aligned
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _split(line: str) -> list[str]:
|
|
24
|
+
return [c.strip() for c in line.strip().strip("|").split("|")]
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _draw(rows: list[list[str]]) -> list[str]:
|
|
28
|
+
"""Lay one table out: the header, a rule, the rows; a column of numbers is right-aligned."""
|
|
29
|
+
count = len(rows[0])
|
|
30
|
+
rows = [[*r, *[""] * (count - len(r))][:count] for r in rows]
|
|
31
|
+
widths = [max(cells(r[i]) for r in rows) for i in range(count)]
|
|
32
|
+
numeric = [any(r[i] != "—" for r in rows[1:]) and all(_NUMBER.match(r[i]) for r in rows[1:]) for i in range(count)]
|
|
33
|
+
|
|
34
|
+
def line(row: list[str]) -> str:
|
|
35
|
+
parts = [(" " * (widths[i] - cells(c)) + c) if numeric[i] else c + " " * (widths[i] - cells(c)) for i, c in enumerate(row)]
|
|
36
|
+
return " │ ".join(parts).rstrip()
|
|
37
|
+
|
|
38
|
+
rule = "─┼─".join("─" * w for w in widths)
|
|
39
|
+
return [line(rows[0]), rule, *(line(r) for r in rows[1:])]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def render(markdown: str) -> str:
|
|
43
|
+
r"""Turn the Markdown tables of a report into aligned columns and drop the marks around titles and notes.
|
|
44
|
+
|
|
45
|
+
Args:
|
|
46
|
+
markdown: The report text.
|
|
47
|
+
|
|
48
|
+
Returns:
|
|
49
|
+
The text for a terminal; a line that is not part of a table is kept as it is.
|
|
50
|
+
|
|
51
|
+
Example:
|
|
52
|
+
>>> print(render("| a | b |\n|---|---|\n| 가 | 12 |"))
|
|
53
|
+
a │ b
|
|
54
|
+
───┼───
|
|
55
|
+
가 │ 12
|
|
56
|
+
"""
|
|
57
|
+
lines = markdown.split("\n")
|
|
58
|
+
out: list[str] = []
|
|
59
|
+
i = 0
|
|
60
|
+
while i < len(lines):
|
|
61
|
+
if lines[i].startswith("|") and lines[i].rstrip().endswith("|") and i + 1 < len(lines) and _RULE.match(lines[i + 1].strip()):
|
|
62
|
+
j = i + 2
|
|
63
|
+
while j < len(lines) and lines[j].startswith("|"):
|
|
64
|
+
j += 1
|
|
65
|
+
out.extend(_draw([_split(lines[i]), *(_split(x) for x in lines[i + 2 : j])]))
|
|
66
|
+
i = j
|
|
67
|
+
continue
|
|
68
|
+
line = lines[i]
|
|
69
|
+
if re.fullmatch(r"\*\*[^*]+\*\*", line) or re.fullmatch(r"_[^_].*[^_]_", line):
|
|
70
|
+
line = line[2:-2] if line.startswith("**") else line[1:-1]
|
|
71
|
+
out.append(line)
|
|
72
|
+
i += 1
|
|
73
|
+
return "\n".join(out)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def for_terminal(markdown: str, stream: TextIO) -> str:
|
|
77
|
+
r"""Pick how a report is printed: aligned columns on a terminal, the Markdown as it is for a file or a pipe.
|
|
78
|
+
|
|
79
|
+
Args:
|
|
80
|
+
markdown: The report text.
|
|
81
|
+
stream: Where it is printed.
|
|
82
|
+
|
|
83
|
+
Returns:
|
|
84
|
+
The text to print.
|
|
85
|
+
|
|
86
|
+
Example:
|
|
87
|
+
>>> import io
|
|
88
|
+
>>> for_terminal("| a |\n|---|\n| b |", io.StringIO())
|
|
89
|
+
'| a |\n|---|\n| b |'
|
|
90
|
+
"""
|
|
91
|
+
return render(markdown) if stream.isatty() else markdown
|
|
@@ -25,7 +25,6 @@ def cmd_install(a: argparse.Namespace) -> int:
|
|
|
25
25
|
project,
|
|
26
26
|
_csv(a.tools) or None,
|
|
27
27
|
force=a.force,
|
|
28
|
-
mcp=True if a.mcp else None,
|
|
29
28
|
ci=True if a.ci else False if a.no_ci else None,
|
|
30
29
|
language=a.language,
|
|
31
30
|
)
|
|
@@ -178,7 +177,6 @@ def register(add: Add) -> None:
|
|
|
178
177
|
p = add("install", cmd_install, msg("Install skills · rules · agent hooks into the AI tool folders (before /l-init)"))
|
|
179
178
|
p.add_argument("--tools", help=msg("claude,codex,antigravity (default claude)"))
|
|
180
179
|
p.add_argument("--force", action="store_true", help=msg("Overwrite files the user edited too"))
|
|
181
|
-
p.add_argument("--mcp", action="store_true", help=msg("Also register the knowledge connector MCP server (lantern mcp)"))
|
|
182
180
|
p.add_argument("--language", choices=languages(), help=msg("Language of skills · rules · documents (first install only, default ko)"))
|
|
183
181
|
p.add_argument("--pr-template", action="store_true", help=msg("Also add a PR template for GitHub (kept if one exists)"))
|
|
184
182
|
p.add_argument("--commit-template", action="store_true", help=msg("Also add a commit message template and set it for this clone"))
|
|
@@ -16,7 +16,7 @@ if TYPE_CHECKING:
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def cmd_scaffold(a: argparse.Namespace) -> int:
|
|
19
|
-
"""`lantern scaffold init|work|doc|idea|adr|meeting|custom` — create folders and documents from templates."""
|
|
19
|
+
"""`lantern scaffold init|work|doc|idea|adr|component|meeting|custom` — create folders and documents from templates."""
|
|
20
20
|
from ..core.profile import FOLLOW_UP_QUESTIONS
|
|
21
21
|
from ..work import scaffold
|
|
22
22
|
|
|
@@ -56,6 +56,9 @@ def cmd_scaffold(a: argparse.Namespace) -> int:
|
|
|
56
56
|
if a.kind == "adr":
|
|
57
57
|
print(f"✔ {project.rel(scaffold.new_adr(project, a.name, a.work))}")
|
|
58
58
|
return 0
|
|
59
|
+
if a.kind == "component":
|
|
60
|
+
print(f"✔ {project.rel(scaffold.new_component_card(project, a.name, a.component_kind))}")
|
|
61
|
+
return 0
|
|
59
62
|
if a.kind == "meeting":
|
|
60
63
|
print(f"✔ {project.rel(scaffold.new_meeting(project, a.name))}")
|
|
61
64
|
return 0
|
|
@@ -171,7 +174,7 @@ def cmd_task(a: argparse.Namespace) -> int:
|
|
|
171
174
|
print(msg(" · skipped {tid}: {why}", tid=tid, why=why))
|
|
172
175
|
return 0
|
|
173
176
|
if a.action == "start":
|
|
174
|
-
t = task_cmd.start(project, a.target)
|
|
177
|
+
t = task_cmd.start(project, a.target, by=_csv(a.by))
|
|
175
178
|
print(msg("▶ Started {id} [{attr}:: {started}]", id=t.id, attr=project.names.attr("start"), started=t.started))
|
|
176
179
|
return 0
|
|
177
180
|
if a.action == "done":
|
|
@@ -624,6 +627,9 @@ def register(add: Add) -> None:
|
|
|
624
627
|
s = ss.add_parser("adr", help=msg("Decision record"))
|
|
625
628
|
s.add_argument("name")
|
|
626
629
|
s.add_argument("--work")
|
|
630
|
+
s = ss.add_parser("component", help=msg("Component card: why an MCP server · plugin · skill · hook was added"))
|
|
631
|
+
s.add_argument("name", help=msg("The name as the AI tool lists it"))
|
|
632
|
+
s.add_argument("--kind", dest="component_kind", default="mcp", help=msg("mcp (default) · plugin · skill · hook"))
|
|
627
633
|
s = ss.add_parser("meeting", help=msg("Meeting notes (2 or more people)"))
|
|
628
634
|
s.add_argument("name")
|
|
629
635
|
s = ss.add_parser("custom", help=msg("A document from a custom template"))
|
|
@@ -683,7 +689,7 @@ def register(add: Add) -> None:
|
|
|
683
689
|
p.add_argument("--from", dest="from_date", help=msg("estimate: start date"))
|
|
684
690
|
p.add_argument("--hours", type=float, default=6.0, help=msg("estimate: working hours a day"))
|
|
685
691
|
p.add_argument("--apply", action="store_true", help=msg("estimate: write the suggestion into the tasks document"))
|
|
686
|
-
p.add_argument("--by", help=msg("done: who
|
|
692
|
+
p.add_argument("--by", help=msg("start · done: who works on it — people's names and exact AI model names, comma-separated"))
|
|
687
693
|
p = add("task-add", cmd_task_add, argparse.SUPPRESS)
|
|
688
694
|
p.add_argument("work")
|
|
689
695
|
p.add_argument("what")
|