lanternspec 0.3.1__tar.gz → 0.3.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.3.1/src/lanternspec.egg-info → lanternspec-0.3.2}/PKG-INFO +4 -3
- {lanternspec-0.3.1 → lanternspec-0.3.2}/README.md +3 -2
- {lanternspec-0.3.1 → lanternspec-0.3.2}/pyproject.toml +1 -1
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/report.py +4 -3
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/work.py +2 -1
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/enums.py +6 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/meta.py +50 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/taskfile.py +6 -6
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/evaluate.py +2 -2
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/obsidian.py +36 -18
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/views.py +197 -45
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-build/SKILL.md +3 -2
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-task/SKILL.md +1 -1
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Task Breakdown Rules.md +3 -2
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Tasks.md +5 -3
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/_meta/enums.yaml +3 -3
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-build/SKILL.md +3 -2
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-task/SKILL.md +1 -1
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates/_meta/enums.yaml +3 -3
- {lanternspec-0.3.1 → lanternspec-0.3.2}/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" +3 -2
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//355/225/240 /354/235/274.md" +5 -3
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/messages.yaml +41 -10
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/names.yaml +5 -3
- lanternspec-0.3.2/src/lanternspec/resources/obsidian/lantern-kanban/main.js +283 -0
- lanternspec-0.3.2/src/lanternspec/resources/obsidian/lantern-kanban/manifest.json +9 -0
- lanternspec-0.3.2/src/lanternspec/resources/obsidian/lantern-kanban/styles.css +111 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/obsidian/lantern-timeline/main.js +227 -68
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/obsidian/lantern-timeline/styles.css +24 -4
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/__init__.py +24 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/antigravity.py +1 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/base.py +3 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/claude.py +1 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/close.py +28 -6
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/codex.py +1 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/install.py +11 -1
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/tasks.py +9 -4
- {lanternspec-0.3.1 → lanternspec-0.3.2/src/lanternspec.egg-info}/PKG-INFO +4 -3
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec.egg-info/SOURCES.txt +3 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_checks.py +2 -2
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_later_features.py +2 -2
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_obsidian.py +60 -8
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_work_line.py +44 -5
- {lanternspec-0.3.1 → lanternspec-0.3.2}/LICENSE +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/setup.cfg +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/__main__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/check/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/check/budget.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/check/check_docs.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/check/doctor.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/check/githooks.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/check/layout.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/check/legacy.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/check/pr_check.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/check/templates.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/check.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/color.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/common.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/core.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/learn.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/refs.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/cli/tools.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/frontmatter.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/links.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/messages.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/names.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/new_id.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/outline.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/principles.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/profile.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/project.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/sections.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/state.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/core/templating.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/learn/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/learn/debt.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/learn/knowledge/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/learn/knowledge/drafts.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/learn/knowledge/mcp_server.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/learn/knowledge/notion.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/learn/knowledge/obsidian.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/refs/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/refs/convert.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/refs/domain.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/refs/index.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/refs/rules.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/refs/sources.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/refs/terms.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/build_mode.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/doc_map.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/principles_doc.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/resume.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/scan.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/sections_doc.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/report/status.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/conventions/go.yaml +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/conventions/python.yaml +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/conventions/rust.yaml +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/conventions/swift.yaml +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/conventions/typescript.yaml +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/agents/AGENTS.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/git/gitmessage.txt +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/github/pull_request_template.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-domain/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-finish/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-init/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-parallel/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-plan/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-pr/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-ref/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-ref/domain.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-ref/rules.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-ref/terms.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/ADR.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/API.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Architecture.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Collaboration Rules.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Competency Card.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Data.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Debt Card.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Deployment.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Design.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Docs MOC.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Feature List.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Glossary.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Idea.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Known Tech.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Legacy Map.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Log.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Meeting Notes.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Plan.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Platform Integration.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Project Definition.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Repository File Rules.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Screens.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Server Operations.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Session Log.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Tech Selection Criteria.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/en/templates/Work Division Rules.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/agents/AGENTS.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/git/gitmessage.txt +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/github/pull_request_template.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-adr/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-check/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-design/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-domain/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-finish/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-idea/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-init/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-learn/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-map/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-parallel/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-plan/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-pr/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-ref/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-ref/domain.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-ref/rules.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-ref/terms.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-report/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-resume/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-sync/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/skills/l-template/SKILL.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates/ADR.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates/API.md +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.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.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/212/245 /353/252/251/353/241/235.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//352/270/260/353/241/235.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//352/270/260/354/210/240 /354/204/240/355/203/235 /352/270/260/354/244/200.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.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.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//352/270/260/355/232/215.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//353/215/260/354/235/264/355/204/260.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//353/260/260/355/217/254.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//353/266/200/354/261/204 /354/271/264/353/223/234.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.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.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//354/204/244/352/263/204.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//354/204/270/354/205/230 /352/270/260/353/241/235.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.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.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//354/225/204/353/212/224 /352/270/260/354/210/240.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//354/225/204/354/235/264/353/224/224/354/226/264.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//354/227/255/353/237/211 /354/271/264/353/223/234.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//354/232/251/354/226/264/354/247/221.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.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.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//354/240/200/354/236/245/354/206/214 /355/214/214/354/235/274 /352/267/234/354/271/231.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.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.3.1 → lanternspec-0.3.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.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//355/230/221/354/227/205 /352/267/234/354/271/231.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//355/231/224/353/251/264.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/locales/ko/templates//355/232/214/354/235/230/353/241/235.md" +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/obsidian/lantern-timeline/manifest.json +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/resources/principles.yaml +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/agent_hooks.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/docs_mode.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/health.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/parts.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/rules.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/runlog.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/sessions.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/tools/skills.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/__init__.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/branches.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/dbml.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/epic_rules.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/ideas.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/pack.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/progress.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/scaffold.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/screen.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec/work/stages.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec.egg-info/dependency_links.txt +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec.egg-info/entry_points.txt +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec.egg-info/requires.txt +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/src/lanternspec.egg-info/top_level.txt +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_budget.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_color.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_core.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_english.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_enums_single_source.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_git.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_install_and_aux.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_layout.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_learning_line.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_messages.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_name_overlap.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_names.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_part_delivery.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_parts.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_principles.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_principles_data.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_progress_parallel.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_refs.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_release_script.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_resume.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_skill_commands.py +0 -0
- {lanternspec-0.3.1 → lanternspec-0.3.2}/tests/test_tool_health.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lanternspec
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Spec-driven development for agentic software engineering
|
|
5
5
|
Author: Jihyeok Jeong
|
|
6
6
|
License-Expression: MIT
|
|
@@ -118,7 +118,7 @@ flowchart LR
|
|
|
118
118
|
| `/l-idea` | records a thought from the conversation, as said and as summarised | `1. Ideas/IDEA-001 …` |
|
|
119
119
|
| `/l-plan` | what and why — a work folder and acceptance criteria | `2. Work/W-001 …/Plan.md` |
|
|
120
120
|
| `/l-design` | how — only the structure, screens and data (DBML) that change, wireframes, behind an approval gate | `Design.md`, `Screens/`, ADR |
|
|
121
|
-
| `/l-task` | an ordered task list (size 15m · 1h ·
|
|
121
|
+
| `/l-task` | an ordered task list (size 15m · 1h · 4h · 8h · acceptance criteria · dependencies · spike tasks) | `Tasks.md` |
|
|
122
122
|
| `/l-build` | implement → test → one commit per task, report **with evidence**, open and check screens itself, merge into the current state when done (in a parallel worktree, only its own tasks) | code, `Log.md` |
|
|
123
123
|
| `/l-learn` | compares unfamiliar tech with your knowledge base → 🟢 · 🟡 · 🔴, debt cards and draft study notes | `📒 Debt/Cards/D-001 …` |
|
|
124
124
|
| `/l-report` | kanban · timeline · domain · traceability · debt · docs-vs-code status + a three-line report | `4. Operations/Reports/Status Report.md` |
|
|
@@ -171,7 +171,8 @@ Sections lantern reads and writes (protected sections, such as "Now" in a log) m
|
|
|
171
171
|
|
|
172
172
|
### Viewing the docs in Obsidian
|
|
173
173
|
Open the `docs/` folder as a vault in Obsidian and it is already set up for reading (`docs/.obsidian/`).
|
|
174
|
-
`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. Drag a task that has not started to move it, or drag its ends to change its length; the dates are saved in its planned and due attributes.
|
|
174
|
+
`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.
|
|
175
|
+
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.
|
|
175
176
|
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.
|
|
176
177
|
|
|
177
178
|
- **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.
|
|
@@ -103,7 +103,7 @@ flowchart LR
|
|
|
103
103
|
| `/l-idea` | records a thought from the conversation, as said and as summarised | `1. Ideas/IDEA-001 …` |
|
|
104
104
|
| `/l-plan` | what and why — a work folder and acceptance criteria | `2. Work/W-001 …/Plan.md` |
|
|
105
105
|
| `/l-design` | how — only the structure, screens and data (DBML) that change, wireframes, behind an approval gate | `Design.md`, `Screens/`, ADR |
|
|
106
|
-
| `/l-task` | an ordered task list (size 15m · 1h ·
|
|
106
|
+
| `/l-task` | an ordered task list (size 15m · 1h · 4h · 8h · acceptance criteria · dependencies · spike tasks) | `Tasks.md` |
|
|
107
107
|
| `/l-build` | implement → test → one commit per task, report **with evidence**, open and check screens itself, merge into the current state when done (in a parallel worktree, only its own tasks) | code, `Log.md` |
|
|
108
108
|
| `/l-learn` | compares unfamiliar tech with your knowledge base → 🟢 · 🟡 · 🔴, debt cards and draft study notes | `📒 Debt/Cards/D-001 …` |
|
|
109
109
|
| `/l-report` | kanban · timeline · domain · traceability · debt · docs-vs-code status + a three-line report | `4. Operations/Reports/Status Report.md` |
|
|
@@ -156,7 +156,8 @@ Sections lantern reads and writes (protected sections, such as "Now" in a log) m
|
|
|
156
156
|
|
|
157
157
|
### Viewing the docs in Obsidian
|
|
158
158
|
Open the `docs/` folder as a vault in Obsidian and it is already set up for reading (`docs/.obsidian/`).
|
|
159
|
-
`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. Drag a task that has not started to move it, or drag its ends to change its length; the dates are saved in its planned and due attributes.
|
|
159
|
+
`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.
|
|
160
|
+
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.
|
|
160
161
|
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.
|
|
161
162
|
|
|
162
163
|
- **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.
|
|
@@ -135,14 +135,15 @@ def cmd_build_mode(a: argparse.Namespace) -> int:
|
|
|
135
135
|
|
|
136
136
|
def cmd_obsidian(a: argparse.Namespace) -> int:
|
|
137
137
|
"""`lantern obsidian plugins` — download the recommended Obsidian plugins into docs/.obsidian/plugins/."""
|
|
138
|
-
from ..report.obsidian import
|
|
138
|
+
from ..report.obsidian import BUNDLED_PLUGINS, install_plugins, write_vault
|
|
139
139
|
|
|
140
140
|
project = _p()
|
|
141
141
|
write_vault(project) # plugin settings and .gitignore must exist first
|
|
142
142
|
for plugin_id, version in install_plugins(project):
|
|
143
143
|
print(f"✔ {plugin_id} {version}")
|
|
144
|
-
write_vault(project) # now that plugins are in use, this also copies the
|
|
145
|
-
|
|
144
|
+
write_vault(project) # now that plugins are in use, this also copies the plugins bundled with the package
|
|
145
|
+
for plugin in BUNDLED_PLUGINS:
|
|
146
|
+
print(f"✔ {plugin}")
|
|
146
147
|
print(msg("Next: open the docs/ folder as a vault in Obsidian, and turn community plugins on when asked (turn off restricted mode)"))
|
|
147
148
|
return 0
|
|
148
149
|
|
|
@@ -175,7 +175,7 @@ def cmd_task(a: argparse.Namespace) -> int:
|
|
|
175
175
|
print(msg("▶ Started {id} [{attr}:: {started}]", id=t.id, attr=project.names.attr("start"), started=t.started))
|
|
176
176
|
return 0
|
|
177
177
|
if a.action == "done":
|
|
178
|
-
res = task_cmd.done(project, a.target)
|
|
178
|
+
res = task_cmd.done(project, a.target, by=_csv(a.by))
|
|
179
179
|
print(msg("✔ Finished {id} [{attr}:: {finished}]", id=res.task.id, attr=project.names.attr("finish"), finished=res.task.finished))
|
|
180
180
|
for ac in res.checkpoints:
|
|
181
181
|
print(
|
|
@@ -480,6 +480,7 @@ def register(add: Add) -> None:
|
|
|
480
480
|
p.add_argument("--from", dest="from_date", help=msg("estimate: start date"))
|
|
481
481
|
p.add_argument("--hours", type=float, default=6.0, help=msg("estimate: working hours a day"))
|
|
482
482
|
p.add_argument("--apply", action="store_true", help=msg("estimate: write the suggestion into the tasks document"))
|
|
483
|
+
p.add_argument("--by", help=msg("done: who did it — people's names and exact AI model names, comma-separated"))
|
|
483
484
|
p = add("task-add", cmd_task_add, argparse.SUPPRESS)
|
|
484
485
|
p.add_argument("work")
|
|
485
486
|
p.add_argument("what")
|
|
@@ -48,6 +48,7 @@ class Enum:
|
|
|
48
48
|
values: Name → icon, in the order written in enums.yaml.
|
|
49
49
|
applies: Document type → the frontmatter field that uses this list, e.g. {"debt": "status"}.
|
|
50
50
|
roles: Role → name. The key code uses to find a value.
|
|
51
|
+
previous: Role → names lantern once shipped for it (`was:` in enums.yaml), which an upgrade may rename to today's.
|
|
51
52
|
|
|
52
53
|
Example:
|
|
53
54
|
>>> e = load()["debt_status"]
|
|
@@ -60,6 +61,7 @@ class Enum:
|
|
|
60
61
|
values: dict[str, str]
|
|
61
62
|
applies: dict[str, str]
|
|
62
63
|
roles: dict[str, str] = field(default_factory=dict)
|
|
64
|
+
previous: dict[str, list[str]] = field(default_factory=dict)
|
|
63
65
|
|
|
64
66
|
def icon(self, value: str) -> str:
|
|
65
67
|
"""Return the icon of a value.
|
|
@@ -167,6 +169,7 @@ class Enums:
|
|
|
167
169
|
values = {str(v): "" for v in values}
|
|
168
170
|
icons: dict[str, str] = {}
|
|
169
171
|
roles: dict[str, str] = {}
|
|
172
|
+
previous: dict[str, list[str]] = {}
|
|
170
173
|
for k, v in values.items():
|
|
171
174
|
if isinstance(v, dict):
|
|
172
175
|
icons[str(k)] = str(v.get("icon") or "")
|
|
@@ -175,6 +178,8 @@ class Enums:
|
|
|
175
178
|
if role in roles:
|
|
176
179
|
self._duplicate_roles.append(f"{name}.{role}")
|
|
177
180
|
roles[role] = str(k)
|
|
181
|
+
if v.get("was"):
|
|
182
|
+
previous[role] = [str(x) for x in v["was"]]
|
|
178
183
|
else:
|
|
179
184
|
icons[str(k)] = str(v or "")
|
|
180
185
|
self.enums[name] = Enum(
|
|
@@ -183,6 +188,7 @@ class Enums:
|
|
|
183
188
|
values=icons,
|
|
184
189
|
applies={str(k): str(v) for k, v in (spec.get("applies") or {}).items()},
|
|
185
190
|
roles=roles,
|
|
191
|
+
previous=previous,
|
|
186
192
|
)
|
|
187
193
|
if fallback is not None:
|
|
188
194
|
for name, base in fallback.enums.items():
|
|
@@ -215,6 +215,56 @@ def drop_legacy_sizes(project: Project) -> list[str]:
|
|
|
215
215
|
return [msg("✔ enums.yaml size: dropped {items}", items=" · ".join(gone))]
|
|
216
216
|
|
|
217
217
|
|
|
218
|
+
def previous_names(project: Project) -> list[tuple[str, str, str]]:
|
|
219
|
+
"""Find values the project still names the way lantern once shipped them, where today's default is different.
|
|
220
|
+
|
|
221
|
+
enums.yaml lists them per value as `was:`. A name someone chose themselves is never listed, so it is never suggested.
|
|
222
|
+
|
|
223
|
+
Args:
|
|
224
|
+
project: The project.
|
|
225
|
+
|
|
226
|
+
Returns:
|
|
227
|
+
(list name, current name, today's name) for each one.
|
|
228
|
+
|
|
229
|
+
Example:
|
|
230
|
+
>>> previous_names(project) # doctest: +SKIP
|
|
231
|
+
[('size', '반나절', '4h'), ('size', '1d', '8h')]
|
|
232
|
+
"""
|
|
233
|
+
if not project.enums_file.exists():
|
|
234
|
+
return []
|
|
235
|
+
base = enums_mod.load(language=project.profile.language)
|
|
236
|
+
out = []
|
|
237
|
+
for name, shipped in base.enums.items():
|
|
238
|
+
mine = project.enums.get(name)
|
|
239
|
+
if mine is None:
|
|
240
|
+
continue
|
|
241
|
+
for role, olds in shipped.previous.items():
|
|
242
|
+
current, today_name = mine.roles.get(role, ""), shipped.roles.get(role, "")
|
|
243
|
+
if current in olds and today_name and today_name not in mine.values:
|
|
244
|
+
out.append((name, current, today_name))
|
|
245
|
+
return out
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
def rename_previous_names(project: Project) -> list[str]:
|
|
249
|
+
"""Rename the values named the way lantern once shipped them to today's names, documents included (`lantern upgrade --apply`).
|
|
250
|
+
|
|
251
|
+
Args:
|
|
252
|
+
project: The project.
|
|
253
|
+
|
|
254
|
+
Returns:
|
|
255
|
+
One message per value renamed.
|
|
256
|
+
|
|
257
|
+
Example:
|
|
258
|
+
>>> rename_previous_names(project) # doctest: +SKIP
|
|
259
|
+
['✔ enums.yaml size: 반나절 → 4h (문서 3개)']
|
|
260
|
+
"""
|
|
261
|
+
out = []
|
|
262
|
+
for name, old, new in previous_names(project):
|
|
263
|
+
changed = rename_enum_value(project, name, old, new)
|
|
264
|
+
out.append(msg("✔ enums.yaml {enum}: {old} → {new} ({count} documents)", enum=name, old=old, new=new, count=len(changed)))
|
|
265
|
+
return out
|
|
266
|
+
|
|
267
|
+
|
|
218
268
|
def rename_enum_value(project: Project, enum: str, old: str, new: str) -> list[Path]:
|
|
219
269
|
"""Rename an enum value in enums.yaml and in every document that stores it (`lantern enums rename`).
|
|
220
270
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Parse and edit the task lines of `할 일.md` and the acceptance criteria of `기획.md`.
|
|
2
2
|
|
|
3
3
|
Task line:
|
|
4
|
-
- [ ] W-012-T02 무엇 [크기::
|
|
4
|
+
- [ ] W-012-T02 무엇 [크기:: 4h] [기준:: AC-1] [먼저:: T01] [담당:: 이름]
|
|
5
5
|
|
|
6
6
|
Attribute names (`크기` …) and the "❓ 확인 필요" marker come from the project's names.yaml (core/names.py);
|
|
7
7
|
parsed attributes are keyed by role ("size" · "criteria" · "after" …), so callers never spell a name.
|
|
@@ -29,10 +29,10 @@ TASK_LINE = re.compile(r"^(\s*)- \[( |x|X)\] (W-\d{3,}-T\d{2,})\b\s*(.*)$")
|
|
|
29
29
|
ATTR = re.compile(r"\[([^\[\]:]+?)::\s*([^\[\]]*?)\s*\]")
|
|
30
30
|
AC_LINE = re.compile(r"^(\s*)- \[( |x|X)\] (AC-\d+)\b\s*(.*)$")
|
|
31
31
|
|
|
32
|
-
# What each size means: hours
|
|
32
|
+
# What each size means: the hours a person would put into it, added up (not the AI's time). The names in enums.yaml
|
|
33
|
+
# (15m · 1h · 4h · 8h) say the same thing, so a size has one meaning.
|
|
33
34
|
SIZE_HOURS = {"xs": 0.25, "s": 1.0, "m": 4.0, "l": 8.0}
|
|
34
|
-
|
|
35
|
-
LEGACY_SIZES = {"S": "s", "M": "m", "L": "l"} # the names before 15m · 1h · 반나절 · 1d, still read
|
|
35
|
+
LEGACY_SIZES = {"S": "s", "M": "m", "L": "l"} # the names before the sizes were named by their hours, still read
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
def size_role(enums: Enums, value: str) -> str:
|
|
@@ -47,7 +47,7 @@ def size_role(enums: Enums, value: str) -> str:
|
|
|
47
47
|
|
|
48
48
|
Example:
|
|
49
49
|
>>> from lanternspec.core.enums import load
|
|
50
|
-
>>> size_role(load(), "
|
|
50
|
+
>>> size_role(load(), "4h"), size_role(load(), "M"), size_role(load(), "huge")
|
|
51
51
|
('m', 'm', '')
|
|
52
52
|
"""
|
|
53
53
|
role = enums["size"].role_of(value) if enums.get("size") else ""
|
|
@@ -125,7 +125,7 @@ class Task:
|
|
|
125
125
|
|
|
126
126
|
@property
|
|
127
127
|
def size(self) -> str:
|
|
128
|
-
"""The size attribute as written (e.g. "
|
|
128
|
+
"""The size attribute as written (e.g. "4h"), or ""."""
|
|
129
129
|
return self.attrs.get("size", "")
|
|
130
130
|
|
|
131
131
|
@property
|
|
@@ -103,11 +103,11 @@ def task_durations(project: Project) -> dict[str, list[float]]:
|
|
|
103
103
|
project: The project.
|
|
104
104
|
|
|
105
105
|
Returns:
|
|
106
|
-
Size name (e.g. "
|
|
106
|
+
Size name (e.g. "4h"; a task written with an older name counts under the new one, "?" without a size)
|
|
107
107
|
→ hours of each finished task.
|
|
108
108
|
|
|
109
109
|
Example:
|
|
110
|
-
>>> task_durations(project)["
|
|
110
|
+
>>> task_durations(project)["4h"] # doctest: +SKIP
|
|
111
111
|
[1.5, 2.0]
|
|
112
112
|
"""
|
|
113
113
|
out: dict[str, list[float]] = defaultdict(list)
|
|
@@ -5,7 +5,8 @@ Responsibilities:
|
|
|
5
5
|
- merge LanternSpec's share of docs/.obsidian settings (other user settings stay)
|
|
6
6
|
- CSS snippet: folder colors per document stage · folder and file icons · callout · quote styles (any theme)
|
|
7
7
|
- download the recommended plugins' official releases (Dataview · Metadata Menu) (install_plugins)
|
|
8
|
-
- copy the
|
|
8
|
+
- copy the plugins bundled with the package (Lantern Timeline · Lantern Kanban), for projects that use Obsidian plugins;
|
|
9
|
+
a bundled plugin is turned on when it first arrives, and a person who turns it off later keeps it off
|
|
9
10
|
|
|
10
11
|
Not here:
|
|
11
12
|
- renaming choices → core/meta.py (rename_enum_value) — write_vault runs again afterwards
|
|
@@ -34,8 +35,11 @@ PLUGINS = { # recommended plugin id → GitHub repo. [key:: value] display (tas
|
|
|
34
35
|
"dataview": "blacksmithgu/obsidian-dataview",
|
|
35
36
|
"metadata-menu": "mdelobelle/metadatamenu",
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
# Bundled in resources/obsidian/<id>/, so they need no download and follow this package's version.
|
|
39
|
+
# Each draws the code block of its own name, which report/views.py writes.
|
|
40
|
+
TIMELINE_PLUGIN = "lantern-timeline"
|
|
41
|
+
KANBAN_PLUGIN = "lantern-kanban"
|
|
42
|
+
BUNDLED_PLUGINS = (TIMELINE_PLUGIN, KANBAN_PLUGIN)
|
|
39
43
|
PLUGIN_FILES = ("main.js", "manifest.json", "styles.css") # official release files of a community plugin (styles.css may be missing)
|
|
40
44
|
RELEASE_URL = "https://github.com/{repo}/releases/latest/download/{file}"
|
|
41
45
|
VAULT_GITIGNORE = """# {note}
|
|
@@ -59,7 +63,9 @@ PROPERTY_TYPES = { # Obsidian Properties field types (types.json)
|
|
|
59
63
|
"ui": "checkbox",
|
|
60
64
|
}
|
|
61
65
|
APP_DEFAULTS = {"alwaysUpdateLinks": True, "showInlineTitle": True} # renaming a file updates its [[links]]
|
|
62
|
-
SNIPPET = "lanternspec" # .obsidian/snippets/lanternspec.css — folder colors · file icons · callout · quote styles
|
|
66
|
+
SNIPPET = "lanternspec" # .obsidian/snippets/lanternspec.css — folder colors · file icons · callout · quote styles · line width
|
|
67
|
+
# The widest a note gets with "readable line length" on (Obsidian's own is 700px): wide enough for the kanban's five columns.
|
|
68
|
+
LINE_WIDTH = "960px"
|
|
63
69
|
FOLDER_COLORS = { # top-level folder → (light color, dark color). A rainbow in the file list's order, pink last
|
|
64
70
|
"debt": ("#d64545", "#f07171"),
|
|
65
71
|
"domain": ("#d9730d", "#f59a4b"),
|
|
@@ -219,7 +225,7 @@ TASK_COLUMNS = {
|
|
|
219
225
|
"criteria": (14.5, 0),
|
|
220
226
|
}
|
|
221
227
|
# Shown small after the task's name, when a task has them: rarer fields, and the start of a task still in progress.
|
|
222
|
-
TASK_NOTES = ("screen", "owner")
|
|
228
|
+
TASK_NOTES = ("screen", "owner", "worked_by")
|
|
223
229
|
# Left out of the list: the timeline shows when tasks ran and were planned.
|
|
224
230
|
TASK_HIDDEN = ("finish", "start_plan", "due_plan")
|
|
225
231
|
FIELD_FONT = 0.85
|
|
@@ -385,7 +391,7 @@ def class_dir(names: Names) -> str:
|
|
|
385
391
|
|
|
386
392
|
|
|
387
393
|
def snippet_css(names: Names) -> str:
|
|
388
|
-
"""Build the LanternSpec CSS snippet — folder colors
|
|
394
|
+
"""Build the LanternSpec CSS snippet — folder colors by stage · file icons · callouts · quotes · line width (on any theme).
|
|
389
395
|
|
|
390
396
|
Args:
|
|
391
397
|
names: The project's names (folder names).
|
|
@@ -398,6 +404,8 @@ def snippet_css(names: Names) -> str:
|
|
|
398
404
|
>>> css = snippet_css(load("ko"))
|
|
399
405
|
>>> '.nav-folder-title[data-path="1. 아이디어"]' in css, ".nav-file-title-content::before" in css, "--callout-radius" in css
|
|
400
406
|
(True, True, True)
|
|
407
|
+
>>> "--file-line-width: 960px" in css
|
|
408
|
+
True
|
|
401
409
|
"""
|
|
402
410
|
lines = [
|
|
403
411
|
msg("/* LanternSpec — folder colors · file icons · callouts · quote style. Generated (lantern upgrade) — don't edit by hand. */"),
|
|
@@ -437,6 +445,9 @@ def snippet_css(names: Names) -> str:
|
|
|
437
445
|
),
|
|
438
446
|
).replace("QUOTE_NOTE", msg("quotes (>) — flush left in reading mode too, the same width as callouts (no indent)")),
|
|
439
447
|
task_fields_css(names),
|
|
448
|
+
"",
|
|
449
|
+
"/* " + msg("line width — how wide a note gets with readable line length on (Obsidian's default is 700px)") + " */",
|
|
450
|
+
f"body {{ --file-line-width: {LINE_WIDTH}; }}",
|
|
440
451
|
]
|
|
441
452
|
return "\n".join(lines)
|
|
442
453
|
|
|
@@ -471,11 +482,14 @@ def write_vault(project: Project) -> list[Path]:
|
|
|
471
482
|
snippets = look.get("enabledCssSnippets") or []
|
|
472
483
|
save(obs / "appearance.json", _dump({**look, "enabledCssSnippets": snippets + [SNIPPET] * (SNIPPET not in snippets)}))
|
|
473
484
|
plugins = _load(obs / "community-plugins.json", [])
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
if
|
|
477
|
-
|
|
478
|
-
|
|
485
|
+
uses = _uses_plugins(obs)
|
|
486
|
+
# a bundled plugin is turned on only as it first arrives: one a person turned off stays off
|
|
487
|
+
arriving = [p for p in BUNDLED_PLUGINS if uses and not (obs / "plugins" / p / "main.js").exists()]
|
|
488
|
+
save(obs / "community-plugins.json", _dump(plugins + [p for p in [*PLUGINS, *arriving] if p not in plugins]))
|
|
489
|
+
if uses: # a newer package redraws with its own copies
|
|
490
|
+
for plugin in BUNDLED_PLUGINS:
|
|
491
|
+
for name, source in resources.iter_files(f"obsidian/{plugin}"):
|
|
492
|
+
save(obs / "plugins" / plugin / name, source.read_text(encoding="utf-8"))
|
|
479
493
|
save(
|
|
480
494
|
obs / ".gitignore",
|
|
481
495
|
VAULT_GITIGNORE.format(
|
|
@@ -503,24 +517,28 @@ def write_vault(project: Project) -> list[Path]:
|
|
|
503
517
|
|
|
504
518
|
|
|
505
519
|
def _uses_plugins(obs: Path) -> bool:
|
|
506
|
-
"""Tell whether plugins were installed in this vault: downloaded ones, or
|
|
507
|
-
return any((obs / "plugins" / p / "main.js").exists() for p in [*PLUGINS,
|
|
520
|
+
"""Tell whether plugins were installed in this vault: downloaded ones, or bundled ones copied earlier."""
|
|
521
|
+
return any((obs / "plugins" / p / "main.js").exists() for p in [*PLUGINS, *BUNDLED_PLUGINS])
|
|
508
522
|
|
|
509
523
|
|
|
510
|
-
def
|
|
511
|
-
"""Tell whether reports can
|
|
524
|
+
def plugin_on(project: Project, plugin: str) -> bool:
|
|
525
|
+
"""Tell whether reports can draw for a bundled plugin: its code is in the vault and it is turned on.
|
|
526
|
+
|
|
527
|
+
A plugin turned off in Obsidian would leave its code block as raw text, so reports draw without it then.
|
|
512
528
|
|
|
513
529
|
Args:
|
|
514
530
|
project: The project.
|
|
531
|
+
plugin: A bundled plugin's id, e.g. "lantern-kanban".
|
|
515
532
|
|
|
516
533
|
Returns:
|
|
517
|
-
True when the plugin
|
|
534
|
+
True when the plugin is there and turned on.
|
|
518
535
|
|
|
519
536
|
Example:
|
|
520
|
-
>>>
|
|
537
|
+
>>> plugin_on(project, KANBAN_PLUGIN) # doctest: +SKIP
|
|
521
538
|
True
|
|
522
539
|
"""
|
|
523
|
-
|
|
540
|
+
obs = project.docs / ".obsidian"
|
|
541
|
+
return (obs / "plugins" / plugin / "main.js").exists() and plugin in _load(obs / "community-plugins.json", [])
|
|
524
542
|
|
|
525
543
|
|
|
526
544
|
def install_plugins(project: Project, fetch: Callable[[str], bytes | None] | None = None) -> list[tuple[str, str]]:
|