@stylusnexus/work-plan 2026.7.10 → 2026.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +9 -1
  2. package/VERSION +1 -1
  3. package/package.json +1 -1
  4. package/skills/work-plan/SKILL.md +1 -0
  5. package/skills/work-plan/commands/doctor.py +529 -0
  6. package/skills/work-plan/commands/export.py +14 -11
  7. package/skills/work-plan/commands/init_repo.py +3 -6
  8. package/skills/work-plan/commands/new_track.py +21 -2
  9. package/skills/work-plan/commands/plan_status.py +48 -6
  10. package/skills/work-plan/lib/config.py +29 -0
  11. package/skills/work-plan/lib/doc_discovery.py +22 -2
  12. package/skills/work-plan/lib/export_model.py +16 -3
  13. package/skills/work-plan/lib/github_state.py +25 -0
  14. package/skills/work-plan/lib/notes_vcs.py +21 -9
  15. package/skills/work-plan/lib/plan_worktree.py +47 -8
  16. package/skills/work-plan/lib/tracks.py +17 -3
  17. package/skills/work-plan/tests/test_config.py +59 -0
  18. package/skills/work-plan/tests/test_discover_archived.py +15 -0
  19. package/skills/work-plan/tests/test_doc_discovery.py +11 -0
  20. package/skills/work-plan/tests/test_doctor.py +852 -0
  21. package/skills/work-plan/tests/test_export.py +34 -8
  22. package/skills/work-plan/tests/test_export_command.py +101 -0
  23. package/skills/work-plan/tests/test_github_state.py +41 -1
  24. package/skills/work-plan/tests/test_group_apply.py +4 -0
  25. package/skills/work-plan/tests/test_new_track.py +79 -0
  26. package/skills/work-plan/tests/test_notes_vcs.py +30 -0
  27. package/skills/work-plan/tests/test_plan_status_stamp.py +68 -0
  28. package/skills/work-plan/tests/test_plan_worktree.py +31 -0
  29. package/skills/work-plan/tests/test_tracks.py +55 -1
  30. package/skills/work-plan/work_plan.py +20 -0
@@ -46,6 +46,17 @@ class DiscoverDocsTest(unittest.TestCase):
46
46
  self.assertEqual(kinds["docs/superpowers/plans/2026-03-16-a.md"], "plan")
47
47
  self.assertEqual(kinds["docs/plans/2026-02-17-b-design.md"], "spec")
48
48
 
49
+ def test_skips_symlinked_doc_that_resolves_outside_repo(self):
50
+ with tempfile.TemporaryDirectory() as d:
51
+ root = Path(d) / "repo"
52
+ plans = root / "docs/plans"
53
+ plans.mkdir(parents=True)
54
+ victim = Path(d) / "victim.md"
55
+ victim.write_text("# outside\n")
56
+ (plans / "evil.md").symlink_to(victim)
57
+
58
+ self.assertEqual(discover_docs(root), [])
59
+
49
60
 
50
61
  if __name__ == "__main__":
51
62
  unittest.main()