docsweep 0.3.0__tar.gz → 0.4.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.
Files changed (282) hide show
  1. {docsweep-0.3.0 → docsweep-0.4.0}/.docsweep.yaml +4 -0
  2. {docsweep-0.3.0 → docsweep-0.4.0}/.gitignore +6 -0
  3. {docsweep-0.3.0 → docsweep-0.4.0}/CHANGELOG.md +168 -0
  4. {docsweep-0.3.0 → docsweep-0.4.0}/NOTICES.md +33 -7
  5. {docsweep-0.3.0 → docsweep-0.4.0}/PKG-INFO +51 -21
  6. {docsweep-0.3.0 → docsweep-0.4.0}/README.en.md +47 -18
  7. {docsweep-0.3.0 → docsweep-0.4.0}/README.md +47 -17
  8. {docsweep-0.3.0 → docsweep-0.4.0}/docs/D-skill-update-proposal.md +2 -2
  9. {docsweep-0.3.0 → docsweep-0.4.0}/docs/conventions.md +55 -8
  10. docsweep-0.4.0/docs/okf-export-format.md +121 -0
  11. docsweep-0.4.0/docs/okf-mapping.md +126 -0
  12. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/__init__.py +1 -1
  13. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/activity.py +2 -1
  14. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/atomic.py +9 -72
  15. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/brief/service.py +8 -28
  16. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/capture/service.py +51 -14
  17. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/__init__.py +5 -2
  18. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/excluded.py +2 -2
  19. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/read.py +113 -12
  20. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/write.py +100 -49
  21. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/parser.py +73 -7
  22. docsweep-0.4.0/docsweep/closeout.py +1021 -0
  23. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/completion.py +1 -1
  24. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/config.py +131 -4
  25. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/context.py +21 -3
  26. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cookbook.py +6 -0
  27. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cross/service.py +3 -2
  28. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/day.py +2 -1
  29. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/detect.py +64 -2
  30. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/doctor.py +100 -1
  31. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/engine.py +128 -21
  32. docsweep-0.4.0/docsweep/export.py +532 -0
  33. docsweep-0.4.0/docsweep/fix_conflict.py +257 -0
  34. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/ics_export.py +2 -1
  35. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/index.py +9 -4
  36. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/init_cmd.py +3 -0
  37. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/inject/api.py +162 -24
  38. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/interactive.py +45 -33
  39. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/mcp_server.py +32 -16
  40. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/migrate.py +106 -20
  41. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/models.py +11 -1
  42. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/notify.py +1 -1
  43. docsweep-0.4.0/docsweep/okf.py +278 -0
  44. docsweep-0.4.0/docsweep/okf_check.py +355 -0
  45. docsweep-0.4.0/docsweep/okf_profiles/0.2.json +23 -0
  46. docsweep-0.4.0/docsweep/scan.py +747 -0
  47. docsweep-0.4.0/docsweep/secrets_guard.py +116 -0
  48. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/app.py +20 -3
  49. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/i18n.py +4 -5
  50. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/routes/board.py +23 -4
  51. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/routes/capture.py +24 -13
  52. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/routes/cards.py +9 -2
  53. docsweep-0.4.0/docsweep/server/static/brief.js +29 -0
  54. docsweep-0.4.0/docsweep/server/static/capture.js +91 -0
  55. docsweep-0.4.0/docsweep/server/static/cytoscape.min.js +32 -0
  56. docsweep-0.4.0/docsweep/server/static/graph.js +80 -0
  57. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/_settings.html +0 -5
  58. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/brief.html +3 -16
  59. docsweep-0.4.0/docsweep/server/templates/capture.html +53 -0
  60. docsweep-0.4.0/docsweep/server/templates/graph.html +35 -0
  61. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/services/content.py +27 -6
  62. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/services/frontmatter.py +16 -2
  63. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/services/status.py +43 -3
  64. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/similar_guard.py +1 -1
  65. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/stale.py +3 -1
  66. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/state.py +1 -1
  67. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/templates_gen.py +80 -23
  68. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/timeline.py +5 -3
  69. docsweep-0.4.0/docsweep/work_queue.py +269 -0
  70. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep-ui.cmd +2 -2
  71. docsweep-0.4.0/opencode.json +6 -0
  72. docsweep-0.4.0/opencode.json.many-ai-cli.lock +1 -0
  73. docsweep-0.4.0/portfolio.md +36 -0
  74. {docsweep-0.3.0 → docsweep-0.4.0}/pyproject.toml +12 -2
  75. {docsweep-0.3.0 → docsweep-0.4.0}/templates/.docsweep.yaml +11 -3
  76. {docsweep-0.3.0 → docsweep-0.4.0}/templates/.githooks/docsweep-check.py +126 -10
  77. {docsweep-0.3.0 → docsweep-0.4.0}/templates/AGENTS.md +17 -6
  78. {docsweep-0.3.0 → docsweep-0.4.0}/templates/AGENT_GUIDE.md +25 -1
  79. {docsweep-0.3.0 → docsweep-0.4.0}/templates/CLAUDE.md +93 -30
  80. docsweep-0.4.0/tests/conftest.py +34 -0
  81. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_atomic.py +28 -51
  82. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_audit_fixes_2026_07_16.py +8 -7
  83. docsweep-0.4.0/tests/test_audit_v0_4_0.py +166 -0
  84. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_c2_commands.py +66 -9
  85. docsweep-0.4.0/tests/test_closeout.py +327 -0
  86. docsweep-0.4.0/tests/test_config.py +84 -0
  87. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_db_index.py +314 -6
  88. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_detect.py +35 -0
  89. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_engine.py +18 -0
  90. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_export.py +91 -3
  91. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_extras.py +145 -2
  92. docsweep-0.4.0/tests/test_fix_conflict.py +209 -0
  93. docsweep-0.4.0/tests/test_fix_conflict_prefer_h1.py +109 -0
  94. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_githooks.py +2 -3
  95. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_index_prune.py +5 -4
  96. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_invariants.py +6 -6
  97. docsweep-0.4.0/tests/test_offline_assets.py +94 -0
  98. docsweep-0.4.0/tests/test_okf_profile.py +160 -0
  99. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_server_bulk.py +4 -1
  100. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_services_status.py +42 -0
  101. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_templates_gen.py +4 -2
  102. docsweep-0.4.0/tests/test_work_dir_alias.py +144 -0
  103. docsweep-0.4.0/tests/test_work_queue_agent_flow.py +216 -0
  104. docsweep-0.3.0/docs/okf-export-format.md +0 -108
  105. docsweep-0.3.0/docs/okf-mapping.md +0 -92
  106. docsweep-0.3.0/docsweep/export.py +0 -287
  107. docsweep-0.3.0/docsweep/fix_conflict.py +0 -153
  108. docsweep-0.3.0/docsweep/scan.py +0 -445
  109. docsweep-0.3.0/docsweep/secrets_guard.py +0 -37
  110. docsweep-0.3.0/docsweep/server/templates/capture.html +0 -128
  111. docsweep-0.3.0/docsweep/server/templates/graph.html +0 -99
  112. {docsweep-0.3.0 → docsweep-0.4.0}/.githooks/pre-push +0 -0
  113. {docsweep-0.3.0 → docsweep-0.4.0}/.github/workflows/ci.yml +0 -0
  114. {docsweep-0.3.0 → docsweep-0.4.0}/.github/workflows/publish.yml +0 -0
  115. {docsweep-0.3.0 → docsweep-0.4.0}/AGENTS.md +0 -0
  116. {docsweep-0.3.0 → docsweep-0.4.0}/CLAUDE.md +0 -0
  117. {docsweep-0.3.0 → docsweep-0.4.0}/LICENSE +0 -0
  118. {docsweep-0.3.0 → docsweep-0.4.0}/archive/plan_drop-last-updated-followup.md +0 -0
  119. {docsweep-0.3.0 → docsweep-0.4.0}/archive/plan_name-docsweep-availability.md +0 -0
  120. {docsweep-0.3.0 → docsweep-0.4.0}/archive/plan_templates-drop-last-updated-line.md +0 -0
  121. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icon-a-broom.svg +0 -0
  122. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icon-b-doc-check.svg +0 -0
  123. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icon-c-sweep-sparkle.svg +0 -0
  124. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icon.svg +0 -0
  125. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icons/apple-touch-icon.png +0 -0
  126. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icons/favicon-16.png +0 -0
  127. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icons/favicon-32.png +0 -0
  128. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icons/favicon-48.png +0 -0
  129. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icons/favicon.ico +0 -0
  130. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icons/favicon.svg +0 -0
  131. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icons/icon-192.png +0 -0
  132. {docsweep-0.3.0 → docsweep-0.4.0}/assets/icons/icon-512.png +0 -0
  133. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/a-broom/apple-touch-icon.png +0 -0
  134. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/a-broom/favicon-16.png +0 -0
  135. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/a-broom/favicon-32.png +0 -0
  136. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/a-broom/favicon-48.png +0 -0
  137. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/a-broom/favicon.ico +0 -0
  138. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/a-broom/favicon.svg +0 -0
  139. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/a-broom/icon-192.png +0 -0
  140. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/a-broom/icon-512.png +0 -0
  141. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/b-doc-check/apple-touch-icon.png +0 -0
  142. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/b-doc-check/favicon-16.png +0 -0
  143. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/b-doc-check/favicon-32.png +0 -0
  144. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/b-doc-check/favicon-48.png +0 -0
  145. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/b-doc-check/favicon.ico +0 -0
  146. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/b-doc-check/favicon.svg +0 -0
  147. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/b-doc-check/icon-192.png +0 -0
  148. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/b-doc-check/icon-512.png +0 -0
  149. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/c-sweep-sparkle/apple-touch-icon.png +0 -0
  150. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/c-sweep-sparkle/favicon-16.png +0 -0
  151. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/c-sweep-sparkle/favicon-32.png +0 -0
  152. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/c-sweep-sparkle/favicon-48.png +0 -0
  153. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/c-sweep-sparkle/favicon.ico +0 -0
  154. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/c-sweep-sparkle/favicon.svg +0 -0
  155. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/c-sweep-sparkle/icon-192.png +0 -0
  156. {docsweep-0.3.0 → docsweep-0.4.0}/assets/proposals/c-sweep-sparkle/icon-512.png +0 -0
  157. {docsweep-0.3.0 → docsweep-0.4.0}/assets/screenshots/webui-archive.png +0 -0
  158. {docsweep-0.3.0 → docsweep-0.4.0}/assets/screenshots/webui-todo.png +0 -0
  159. {docsweep-0.3.0 → docsweep-0.4.0}/docs/ai-agent-integration.md +0 -0
  160. {docsweep-0.3.0 → docsweep-0.4.0}/docs/guidance-rewrite-proposal.md +0 -0
  161. {docsweep-0.3.0 → docsweep-0.4.0}/docs/mockups/dashboard_v0.1.0.html +0 -0
  162. {docsweep-0.3.0 → docsweep-0.4.0}/docs/mockups/dashboard_v0.1.0.png +0 -0
  163. {docsweep-0.3.0 → docsweep-0.4.0}/docs/mockups/mcp_usage_v0.1.0.html +0 -0
  164. {docsweep-0.3.0 → docsweep-0.4.0}/docs/zenn/docsweep/2026-06-22_slash-commands-p-s-d/20260622-claude-code-slash-commands.md +0 -0
  165. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/__main__.py +0 -0
  166. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/aggregate_index.py +0 -0
  167. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/archive.py +0 -0
  168. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/auto_triage.py +0 -0
  169. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/brief/__init__.py +0 -0
  170. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/brief/score.py +0 -0
  171. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/capture/__init__.py +0 -0
  172. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/capture/heuristics.py +0 -0
  173. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/capture/llm.py +0 -0
  174. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/capture/models.py +0 -0
  175. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/claim.py +0 -0
  176. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/__init__.py +0 -0
  177. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/completion.py +0 -0
  178. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/ics.py +0 -0
  179. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/index.py +0 -0
  180. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/init.py +0 -0
  181. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/inject.py +0 -0
  182. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/mcp.py +0 -0
  183. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/memory.py +0 -0
  184. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/notify.py +0 -0
  185. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cli/commands/serve.py +0 -0
  186. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/cross/__init__.py +0 -0
  187. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/excluded.py +0 -0
  188. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/find.py +0 -0
  189. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/graph/__init__.py +0 -0
  190. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/graph/service.py +0 -0
  191. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/hints.py +0 -0
  192. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/history.py +0 -0
  193. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/inject/__init__.py +0 -0
  194. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/inject/agent_claude.py +0 -0
  195. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/inject/agent_codex.py +0 -0
  196. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/inject/blocks.py +0 -0
  197. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/inject/manifest.py +0 -0
  198. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/intent.py +0 -0
  199. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/linkcheck.py +0 -0
  200. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/memory_scan.py +0 -0
  201. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/presets.py +0 -0
  202. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/related.py +0 -0
  203. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/reports.py +0 -0
  204. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/resurrect/__init__.py +0 -0
  205. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/resurrect/embedding.py +0 -0
  206. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/resurrect/service.py +0 -0
  207. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/resurrect/similarity.py +0 -0
  208. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/review.py +0 -0
  209. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/security/__init__.py +0 -0
  210. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/security/path.py +0 -0
  211. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/__init__.py +0 -0
  212. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/config_write.py +0 -0
  213. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/routes/__init__.py +0 -0
  214. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/routes/brief.py +0 -0
  215. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/routes/cross.py +0 -0
  216. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/routes/graph.py +0 -0
  217. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/routes/resurrect.py +0 -0
  218. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/sanitize.py +0 -0
  219. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/security.py +0 -0
  220. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/board.css +0 -0
  221. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/dnd.js +0 -0
  222. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/edit.js +0 -0
  223. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/htmx.min.js +0 -0
  224. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/i18n.js +0 -0
  225. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/icons/apple-touch-icon.png +0 -0
  226. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/icons/favicon.ico +0 -0
  227. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/icons/favicon.svg +0 -0
  228. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/icons/icon-192.png +0 -0
  229. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/icons/icon-512.png +0 -0
  230. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/static/keymap.js +0 -0
  231. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/_board_body.html +0 -0
  232. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/_card.html +0 -0
  233. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/_change_picker.html +0 -0
  234. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/_due_picker.html +0 -0
  235. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/_edit_pane.html +0 -0
  236. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/_label_picker.html +0 -0
  237. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/_preview.html +0 -0
  238. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/board.html +0 -0
  239. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/cross.html +0 -0
  240. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/server/templates/resurrect.html +0 -0
  241. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/services/__init__.py +0 -0
  242. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/services/archive.py +0 -0
  243. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/services/due.py +0 -0
  244. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep/states.py +0 -0
  245. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep-ui.command +0 -0
  246. {docsweep-0.3.0 → docsweep-0.4.0}/docsweep-ui.sh +0 -0
  247. {docsweep-0.3.0 → docsweep-0.4.0}/templates/install-hooks.ps1 +0 -0
  248. {docsweep-0.3.0 → docsweep-0.4.0}/templates/install-hooks.sh +0 -0
  249. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_activity.py +0 -0
  250. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_audit_fixes.py +0 -0
  251. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_audit_server.py +0 -0
  252. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_brief.py +0 -0
  253. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_c5_features.py +0 -0
  254. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_capture.py +0 -0
  255. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_cli_smoke.py +0 -0
  256. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_config_due.py +0 -0
  257. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_cross.py +0 -0
  258. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_doctor.py +0 -0
  259. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_index_stats.py +0 -0
  260. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_index_vacuum.py +0 -0
  261. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_index_wal.py +0 -0
  262. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_init_and_undo_cli.py +0 -0
  263. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_interactive.py +0 -0
  264. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_mcp_tools.py +0 -0
  265. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_mcp_write_tools.py +0 -0
  266. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_new_cli_project_dir_autodetect.py +0 -0
  267. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_parser.py +0 -0
  268. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_resurrect.py +0 -0
  269. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_server.py +0 -0
  270. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_server_board.py +0 -0
  271. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_server_okf.py +0 -0
  272. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_server_routes_extras.py +0 -0
  273. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_services_archive.py +0 -0
  274. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_services_content.py +0 -0
  275. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_services_due.py +0 -0
  276. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_services_frontmatter.py +0 -0
  277. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_state.py +0 -0
  278. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_triage_schema.py +0 -0
  279. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_undo.py +0 -0
  280. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_ux_final.py +0 -0
  281. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_ux_remaining.py +0 -0
  282. {docsweep-0.3.0 → docsweep-0.4.0}/tests/test_ux_w2.py +0 -0
@@ -3,3 +3,7 @@
3
3
  # archive はリポルート直下ではなく gitignore 済みの docs/local/ 配下へ移送する。
4
4
  # ルート直下 archive/ は git 追跡対象になり、非公開の作業ログが公開リポに乗るため。
5
5
  archive_dir: docs/local/archive
6
+ ignore:
7
+ - docs/obsidian
8
+ - "**/docs/obsidian"
9
+ - "**/docs/obsidian/**"
@@ -72,6 +72,9 @@ secrets.*
72
72
  # docsweep の個人作業ログ(公開しない)
73
73
  docs/local/
74
74
 
75
+ # Obsidian knowledge artifacts are not public repository content.
76
+ /docs/obsidian/
77
+
75
78
  # docsweep 実行時の生成物(スキャン結果・履歴)
76
79
  INDEX.md
77
80
  INDEX.json
@@ -82,3 +85,6 @@ INDEX.json
82
85
  # それらの期待値を testdata に置くと黙って脱落する。ディレクトリ単位で明示許可。
83
86
  !**/testdata/**
84
87
  !**/tests/fixtures/**
88
+ # === obsidian-link: managed ===
89
+ /docs/obsidian/
90
+ # === /obsidian-link: managed ===
@@ -5,6 +5,174 @@
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.4.0] - 2026-08-10
9
+
10
+ ### アップグレード時の注意
11
+
12
+ - **本版の適用後に `docsweep index-rebuild` を 1 度実行することを推奨。** 索引の project 単位を
13
+ スキャンルートからリポジトリ(project_root)へ揃えたため、旧採番のファイル行が残る。
14
+ 次回の `index-sync` でも自動的に掃除されるが、rebuild の方が確実。
15
+ - `docsweep[mcp]` を使っている場合、`mcp` の下限が `1.28.1` に上がる(CVE-2026-59950 対応)。
16
+ 古い版に固定している環境では解決に失敗し得るので、依存の pin を見直すこと。
17
+
18
+ ### Added
19
+
20
+ - OKF v0.2 profile 駆動の frontmatter 状態分離を追加。標準 `status`(`draft` / `stable` /
21
+ `deprecated`)と docsweep の作業状態 `docsweep_state` を別軸で扱い、旧 `status: planned`
22
+ などは読み取り互換と dry-run migration を維持する。
23
+ - `okf-check`(read-only Bundle 適合検査)と `okf-profiles` を追加。未知 type / 追加キー /
24
+ 欠けた任意フィールド / 壊れた link は warning または受理とし、構造上の error と区別する。
25
+ - `export --okf` が同梱 JSON profile を既定で使い、Bundle root `index.md` と v0.2 lifecycle
26
+ frontmatter を生成する。外部 profile は `--okf-profile` を明示した場合だけ読み込む。
27
+ - `closeout-check`(read-only)で親 plan と child plan の関係、状態 conflict、完了条件、検証証跡、
28
+ manual gate、Git dirty overlap を JSON で検査できるようにした。`new plan --split` は
29
+ `docsweep_parent` を子へ付け、旧 plan は限定的な filename + related inference のみで互換判定する。
30
+ - `work_dir` / `work_policy` / `secret_policy` を追加し、`new` / `capture` / MCP `capture_save` の
31
+ 保存先を共通解決する。既定はプロジェクト相対 `docs/local`、private queue は export から除外し、
32
+ Git ignore / tracked 状態と秘密情報を保存前に検査する。
33
+
34
+ ### Changed
35
+
36
+ - **cytoscape.js 3.30.0 を同梱し、graph ページの CDN 依存を解消した。** これまで graph ページだけが
37
+ 実行時に unpkg から取得しており、オフライン環境で描画できず、利用のたびに外部サーバーへ
38
+ アクセスが渡っていた。`docsweep/server/static/cytoscape.min.js` として同梱し、MIT License 全文と
39
+ SHA-256 を `NOTICES.md` に記載した。Web UI の「このアプリについて」も CDN 節を廃して同梱一覧へ
40
+ 統合した。なお **graph が描画されなかった原因は CDN 依存とは別**にもう 1 つあり、それは下記の
41
+ Fixed(inline script が CSP に拒否されていた件)で解消している。
42
+ - profile のルールを Python ソースから分離し、`docsweep/okf_profiles/<version>.json` で管理する。
43
+ ローカル JSON や commit 固定の GitHub Raw URL を利用できるため、ルール更新だけなら
44
+ docsweep の実装 Release を必要としない。旧形式の廃止時期は別途告知する。
45
+ - 作業記録の新規接頭辞を `plan` / `bugfix` / `pending` に整理した。個別リリースの MD は
46
+ `plan_release-vX.Y.Z_*.md`、再利用する手順・参照資料は `manual_*.md` / `reference_*.md` /
47
+ `setup_*.md` とし、旧 `manual_release-*` は履歴互換として読み取る。
48
+ - `apply --action relabel` / `promote` / `resume` の状態変更を共通 status service 経由に寄せ、
49
+ H1 と `docsweep_state`(旧形式では `status`)を同期する。relabel は archive を暗黙実行しない。
50
+ - `inject` / `init` / shipped templates / README の AI 導線を設定済み work queue 前提へ同期した。
51
+
52
+ ### Security
53
+
54
+ - **`docsweep[mcp]` の範囲を `mcp>=1.28.1,<2` にした。** 従来の `mcp>=1.0` では
55
+ CVE-2026-59950(fix: 1.28.1)を含む版が install され得た(2026-07-21 監査 F-06)。
56
+ 上限を切ったのは **mcp 2.0.0 で `mcp.server.fastmcp` が無くなり、`docsweep mcp` が
57
+ import 時点で落ちる**ため(上限なしだと新規 install が 2.0.0 を掴んで即座に壊れる)。
58
+ 2.0 系への対応は次の版で行う。
59
+
60
+ ### Fixed
61
+
62
+ - **Web UI の graph / brief / capture の 3 ページが、自分自身の CSP に拒否されて
63
+ 機能していなかったのを修正した。** サーバーは全レスポンスに `script-src 'self'`
64
+ (`'unsafe-inline'` なし)を付けているのに、この 3 ページだけ処理を inline `<script>`
65
+ (brief は `onclick=` も)で書いていた。ブラウザは実行を拒否するが**画面には何のエラーも
66
+ 出ない**ため、症状は「graph が真っ白」「brief のコピー ボタンが無反応」「capture が
67
+ 生成ボタンを押しても何も起きない」という**黙った機能停止**だった。処理を
68
+ `/static/{graph,brief,capture}.js` へ出し、データは `<script type="application/json">`
69
+ (実行されないので CSP の対象外)と `data-*` 属性で渡す形に統一した。
70
+ template に inline script / inline イベント属性が入ったら落ちるテストを追加している。
71
+ - **`.gitignore` が `docs/local/`(末尾スラッシュ)のとき、新規プロジェクトの 1 本目が
72
+ 「private work queue が Git ignore されていません」で作れなかったのを修正した。**
73
+ `git check-ignore` は実在しないパスをディレクトリと判断できないため、queue が未作成の
74
+ 初回だけディレクトリ限定パターンに一致しなかった。docsweep 自身のテンプレートと
75
+ ドキュメントが `docs/local/` 表記なので、手順どおり設定した利用者が必ず踏む経路だった。
76
+ 末尾スラッシュ付きでも問い合わせるようにした。
77
+ - **`fix-conflict --prefer h1` が H1 の値を書き戻せていなかったのを修正した。** 書き戻す値に
78
+ 「frontmatter > H1 > filename」で解決済みの state を使っていたため、frontmatter がある
79
+ conflict では **frontmatter 自身の値を自分に書き戻すだけ**になり、`[ok]` を報告しながら
80
+ 1 文字も直らなかった(0.3.1 で直したのは `--path` の絞り込み側だけで、この本体は残っていた)。
81
+ H1 の値を本文から取り直すようにし、既に同値なら書き込まないようにした。
82
+ - **frontmatter を 1 フィールド書き換えるたびに、本文との間の空行が消えていたのを修正した。**
83
+ frontmatter を判定する正規表現の閉じ `---` の後ろが `\s*` で、直後の空行まで飲み込んでいた。
84
+ tracked な docs では relabel のたびによけいな差分が出ていた。
85
+ - **現行の OpenAI API キー形式(`sk-proj-…` / `sk-svcacct-…`)を秘密情報スキャンが
86
+ 検出できていなかったのを修正した。** 旧パターンが `sk-` の直後に英数 20 文字以上を
87
+ 要求しており、途中に `-` が入る現行形式は 1 件も一致しなかった(`secret_policy: block`
88
+ でも素通りしていた)。併せて Slack / Google API key / Stripe の形式を追加し、
89
+ `PRIVATE KEY` ブロックの検出をアルゴリズム名の列挙から一般化した(DSA / PGP / ENCRYPTED を含む)。
90
+ - **`secret_policy` に未知の値(設定の綴り違い等)を渡すと、block が黙って warn に
91
+ なっていたのを修正した。** `off` 以外は `block` として扱う(fail-closed)。無効化できるのは
92
+ 明示的な `off` だけになった。
93
+ - **private work queue の保護を互換 fallback で外すときに、黙って外していたのをやめた。**
94
+ `work_dir` / `work_policy` が未設定の既存利用者では private queue の検査結果が error から
95
+ 取り除かれるが、その内容が警告としても残らず「保護されている」と誤解できる状態だった。
96
+ 落とした検査結果は理由と明示方法つきで warning に残す。`export --okf` も同様に、
97
+ work_policy=private の queue を含めた場合は対象プロジェクト名つきで警告し、
98
+ 除外した場合は件数を通知する(黙って含めない・黙って減らさない)。
99
+ - **`work_dir` を junction / symlink でリポジトリ外へ逃がした構成で、その作業記録が
100
+ 別プロジェクトの持ち物として登録されていたのを修正した。** `docs/local` をリンク化すると
101
+ `Path.resolve()` がリポジトリの外へ抜け、実体側から上へ辿っても project marker が見つからず、
102
+ `detect_project_root` の fallback が「スキャンルート直下の先頭セグメント」を project にしていた。
103
+ 一方 cwd 判定は実体ディレクトリを見るので別名になり、**`docsweep brief` がエラーも警告も出さずに
104
+ 0 件を返していた**(実測: 未完 65 件のリポジトリで 0 件。同じ配置の 20 リポジトリすべてが該当)。
105
+ `work_dir` は「そのプロジェクトの作業キュー」と宣言済みの設定なので、実体パスから宣言元
106
+ プロジェクトへ引き戻す対応表を作り、project 判定の入口で marker 走査より先に引くようにした。
107
+ 同じ実体を 2 つのプロジェクトが `work_dir` として宣言している場合は、**黙って片方を採らず
108
+ 対応表から外す**(どちらが正しいか機械には決められないため)。通常構成(`docs/local` が実体)の
109
+ 挙動は変わらない。
110
+ - **索引の project 単位をスキャンルートからリポジトリ(project_root)へ揃えた。**
111
+ 索引経由の `WHERE project_id = ?` はスキャンルート名で、索引なしフォールバックは
112
+ `FileRecord.project`(= リポ名)で絞っており、**同じ `--project <リポ名>` が経路に
113
+ よって別の列と比較されていた**。索引が有効だと `docsweep triage --project mer` が
114
+ エラーも警告も出さずに 0 件を返し、「残作業なし」と誤読する状態だった。
115
+ 併せて `projects.root_path` は project_root、`files.rel_path` は project_root 相対に
116
+ なる。副作用として、basename が同じスキャンルート(`D:/dev` と `C:/Users/x/dev`)が
117
+ 同一 project_id に潰れて互いの登録を消し合う問題も解消した(実測で
118
+ `files_added: 639 / files_deleted: 639 / files_unchanged: 0` だった差分同期が、
119
+ `files_unchanged: 641` の真の no-op になった)。処理順次第で索引が空のまま終わり得た
120
+ 危険もなくなる。
121
+ **本修正の適用後は `docsweep index-rebuild` を 1 度実行することを推奨**(旧採番の
122
+ ファイル行は次回の `index-sync` でも自動的に掃除されるが、rebuild の方が確実)。
123
+ 掃除した時は stderr に 1 行だけ通知する。空になった project 行は自動削除せず、
124
+ 従来どおり `docsweep index-sync --prune-projects` に委ねる。
125
+ `--prune-projects` の現行 ID 算出もスキャンルート単位から「今回の走査で見つかった
126
+ 全 project」へ追従させた(直し忘れると生きている project が孤児と誤判定されて
127
+ CASCADE 削除される)。
128
+ - `index-sync` / `index-rebuild` の全走査を DB 書き込みより前に完了させるようにした。
129
+ `index-rebuild` は `DELETE FROM files` の直後に走査ループへ入っていたため、走査中に
130
+ 落ちると索引が不完全なまま残っていた(下記 junction 問題で実際に壊れた)。
131
+ - **`docsweep fix-conflict --path` が効いていなかったのを修正。** `--path` の dest が
132
+ `_add_scope_args` の positional `paths`(スキャンルート)と衝突し、positional 側の
133
+ 既定値 `[]` が `append` の結果を潰していたため、**1 件だけ指定したつもりで全 conflict が
134
+ 処理対象になっていた**(`--prefer` の向きが合わない conflict まで巻き込むと、完了済み
135
+ plan が未着手へ戻る誤修正になる)。dest を分離し、併せて渡されたパスを
136
+ `resolve().as_posix()` で正規化して Windows のバックスラッシュ表記でも一致するようにし、
137
+ 1 件も一致しなかった指定は stderr に警告するようにした(黙って「対象なし」で終わると
138
+ 誤指定に気づけない)。
139
+ - `index-sync` / `index-rebuild` が、スキャンルート配下に junction / symlink があると
140
+ `ValueError: '...' is not in the subpath of '...'` で中断していたのを修正。
141
+ `FileRecord.path` は `resolve()` 済みのためリンク先がルート外の実体パスに解決され、
142
+ `relative_to(root)` が失敗していた。ルート相対が取れない場合は実体の絶対パスを
143
+ `rel_path` の識別子に使う(表示・移送に使う絶対パスは従来どおり `abs_path` 列を参照する
144
+ ため実害はない)。`index-rebuild` は `DELETE FROM files` の直後にこのループへ入るので、
145
+ 中断すると索引が不完全なまま残っていた。
146
+
147
+ ## [0.3.1] - 2026-07-18
148
+
149
+ v0.3.0 patch。`.docsweep/backup/` 経由で `docs/local/*.md`(家宣言 private)が
150
+ 公開リポの origin/main に意図せず到達する漏洩事故が実際に発生した(many-ai-cli /
151
+ offline-md-editor-viewer / PlainSheet / ShotTTL)ため、書き込み前 backup 機構を
152
+ 根本から撤去して漏洩経路そのものを消した。同時に `manual_release-*.md` を sweep 対象
153
+ type として正式認識した。削除したのは全て内部ヘルパで CLI/MCP の外向き API は無変更。
154
+
155
+ ### Added
156
+
157
+ - `manual_release-*.md` を内蔵の `manual_release` type として認識し、`[完了]` / `[廃止]`
158
+ に達したリリース記録を通常の `docsweep sweep` で自動 archive できるようにした。
159
+
160
+ ### Fixed
161
+
162
+ - **`.docsweep/backup/` 経由の docs/local 漏洩を根本対処**。書き込み前に
163
+ `.docsweep/backup/<name>.<ts>` へ md 丸コピーを 30 日保持する `atomic.backup()` 機構を
164
+ 丸ごと撤去し、`take_backup` 引数・`backup_dir_for` / `_ensure_gitignored` /
165
+ `_cleanup_backups` および関連定数(`BACKUP_DIR_NAME` / `BACKUP_RETENTION_SECONDS` /
166
+ `GITIGNORE_MARK` / `GITIGNORE_RULE`)を削除。
167
+ 背景: 実質 99% の書き込みは `update_line` 経由の 1 行差分(H1 ラベル `[完了]` 化・
168
+ `due:` 差替)で、その世代を md 全文で残すのは過剰。加えて `.docsweep/backup/` を
169
+ gitignore し忘れた公開リポで `docs/local/*.md`(非公開ポリシー宣言済み)が意図せず
170
+ push される事故が実際に発生した(many-ai-cli / offline-md-editor-viewer など)。
171
+ 復元は git 側の履歴に一本化し、docsweep はプロジェクト空間内に何も生成しない。
172
+ 外部利用者向け API(CLI サブコマンド / MCP tool)は無変更、削除したのは全て内部
173
+ ヘルパのため **v0.3.1(patch)** に留める。既存ユーザーは各プロジェクトの
174
+ `.docsweep/backup/` を手動削除して構わない(`state.json` は温存)。
175
+
8
176
  ## [0.3.0] - 2026-07-16
9
177
 
10
178
  2026-07-16 の ai-audit-prompts / ultracode 監査(52 findings 検出)と、その進言事項 15 件を
@@ -4,9 +4,9 @@ docsweep 自体は MIT License で配布されています(リポジトリ直
4
4
  本ファイルは **配布物に bundle されているサードパーティ・ソフトウェア** の出典と
5
5
  ライセンスを記録するためのものです。
6
6
 
7
- > 注: ここに挙げる依存はいずれも **法的に著作権表記が必須なライセンスではありません**
8
- > (bundle 対象は現状 0BSD のみ)。それでも透明性・将来 BSD/MIT 等を bundle する場合の
9
- > 足場・利用者への情報提供の観点から記録を残しています。
7
+ > 注: bundle 対象のうち **cytoscape.js は MIT License** であり、著作権表記とライセンス全文の
8
+ > 保持が配布条件です(下記 "Bundled" に転載)。htmx は 0BSD のため法的には不要ですが、
9
+ > 透明性・利用者への情報提供の観点から同じ形式で記録しています。
10
10
  >
11
11
  > **pip install で別途解決される依存**(PyYAML / FastAPI / Jinja2 / mcp 等)は
12
12
  > bundle ではないため本ファイル対象外です。各依存パッケージは PyPI 上で自身の
@@ -30,14 +30,40 @@ Permission to use, copy, modify, and/or distribute this software for any purpose
30
30
  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
31
31
  ```
32
32
 
33
- ## Loaded from CDN (not bundled)
34
-
35
33
  ### cytoscape.js 3.30.0
36
34
 
37
35
  - 用途: Web UI の graph ページのネットワーク可視化
38
- - 読込元: `https://unpkg.com/cytoscape@3.30.0/dist/cytoscape.min.js`(実行時に CDN から取得・配布物には含まれない)
36
+ - 同梱パス: `docsweep/server/static/cytoscape.min.js`
39
37
  - 出典: https://github.com/cytoscape/cytoscape.js
40
- - ライセンス: **MIT License**(同梱していないため転載義務はないが、利用の透明性のため記録)
38
+ - 取得元: `https://unpkg.com/cytoscape@3.30.0/dist/cytoscape.min.js`(2026-08-10 取得)
39
+ - SHA-256: `a298b253e4b9b08bd0b2fe222ad67b2b9f42d057d7c17f7a050512079c46fddd`
40
+ - ライセンス: **MIT License**
41
+ - 著作権表記: `Copyright (c) 2016-2024, The Cytoscape Consortium.`(原 LICENSE 全文を下記に記載)
42
+
43
+ ```
44
+ Copyright (c) 2016-2024, The Cytoscape Consortium.
45
+
46
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
47
+ this software and associated documentation files (the "Software"), to deal in
48
+ the Software without restriction, including without limitation the rights to
49
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
50
+ of the Software, and to permit persons to whom the Software is furnished to do
51
+ so, subject to the following conditions:
52
+
53
+ The above copyright notice and this permission notice shall be included in all
54
+ copies or substantial portions of the Software.
55
+
56
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
57
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
58
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
59
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
60
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
61
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
62
+ SOFTWARE.
63
+ ```
64
+
65
+ > 2026-08-10(v0.4.0)より前は CDN(unpkg)から実行時取得していました。オフライン完結と
66
+ > 外部への利用状況の送信回避のため同梱へ切り替えています。
41
67
 
42
68
  ## Runtime dependencies (not bundled — pulled by pip)
43
69
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docsweep
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Sweep, triage and archive AI coding agents' plan/bugfix/pending Markdown across projects.
5
5
  Project-URL: Homepage, https://github.com/ishizakahiroshi/docsweep
6
6
  Project-URL: Repository, https://github.com/ishizakahiroshi/docsweep
@@ -22,7 +22,7 @@ Provides-Extra: all
22
22
  Requires-Dist: fastapi>=0.110; extra == 'all'
23
23
  Requires-Dist: jinja2>=3.1; extra == 'all'
24
24
  Requires-Dist: markdown>=3.6; extra == 'all'
25
- Requires-Dist: mcp>=1.0; extra == 'all'
25
+ Requires-Dist: mcp<2,>=1.28.1; extra == 'all'
26
26
  Requires-Dist: nh3>=0.2; extra == 'all'
27
27
  Requires-Dist: python-multipart>=0.0.18; extra == 'all'
28
28
  Requires-Dist: questionary>=2.0; extra == 'all'
@@ -33,7 +33,7 @@ Provides-Extra: all-lite
33
33
  Requires-Dist: fastapi>=0.110; extra == 'all-lite'
34
34
  Requires-Dist: jinja2>=3.1; extra == 'all-lite'
35
35
  Requires-Dist: markdown>=3.6; extra == 'all-lite'
36
- Requires-Dist: mcp>=1.0; extra == 'all-lite'
36
+ Requires-Dist: mcp<2,>=1.28.1; extra == 'all-lite'
37
37
  Requires-Dist: nh3>=0.2; extra == 'all-lite'
38
38
  Requires-Dist: python-multipart>=0.0.18; extra == 'all-lite'
39
39
  Requires-Dist: questionary>=2.0; extra == 'all-lite'
@@ -44,7 +44,7 @@ Requires-Dist: mypy>=1.10; extra == 'dev'
44
44
  Requires-Dist: pytest>=8.0; extra == 'dev'
45
45
  Requires-Dist: ruff>=0.4; extra == 'dev'
46
46
  Provides-Extra: mcp
47
- Requires-Dist: mcp>=1.0; extra == 'mcp'
47
+ Requires-Dist: mcp<2,>=1.28.1; extra == 'mcp'
48
48
  Provides-Extra: resurrect
49
49
  Requires-Dist: sentence-transformers>=2.0; extra == 'resurrect'
50
50
  Provides-Extra: review
@@ -70,24 +70,23 @@ AI コーディングツール(Claude Code / Codex 等)が生成する `plan
70
70
  H1 ステータスラベル(`[完了]` / `[計画]` / `[廃止]` 等)を機械的に読み取り、完了を各プロジェクトの
71
71
  `archive/` へ自動移送し、陳腐化を「要判断」フラグで可視化し、複数プロジェクトを横断 INDEX で一望できます。
72
72
 
73
- ## OKF(Open Knowledge Format)互換
73
+ ## OKF(Open Knowledge Format)v0.2 対応
74
74
 
75
- docsweep は [OKF(Open Knowledge Format)](https://zenn.dev/knowledgesense/articles/14a874a9f423bb)
76
- の **frontmatter による type / status / related の機械可読化** を採用しています。
77
- md 冒頭の YAML frontmatter で `type` / `status` / `tags` / `owner` / `review_status` /
78
- `related` / `last_reviewed` を機械可読化し、docsweep を入れていない別ツールから読んでも
79
- 意味が通る形式に揃えています。
75
+ docsweep は [OKF v0.2 の公式仕様](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)
76
+ に合わせ、Markdown frontmatter の `type` / `status` を機械可読に扱います。
77
+ OKF の `status` は文書ライフサイクル(`draft` / `stable` / `deprecated`)なので、
78
+ docsweep の作業状態(`planned` / `in-progress` / `watching` / `done` / `discarded` /
79
+ `pending`)は拡張フィールド `docsweep_state` に分離しています。
80
80
 
81
- docsweep 固有の追加規約は 2 点だけです:
81
+ `type` と追加フィールドは OKF の方針どおり閉じた登録簿にせず、docsweep が標準管理する
82
+ `plan` / `bugfix` / `pending` 以外も壊さず保持します。`manual` / `reference` / `setup` は
83
+ 静的な知識文書として扱い、H1 ラベルは
84
+ 人間向け表示として併用し、旧形式の `status: planned` なども読み取り互換を維持します。
85
+ 既存ファイルを移行するときは `migrate-frontmatter --dry-run` で差分を確認してから
86
+ `--apply` を実行してください。
82
87
 
83
- - **type 集合を `plan` / `bugfix` / `pending` に固定**(OKF より少し強い規約)。
84
- archive 自動化のための制約で、自由な type 値は管理対象外として扱います。
85
- - **H1 ステータスラベル運用は廃止せず併用**。md を開いた瞬間に状態が見える人間向け価値を
86
- 残し、frontmatter が無いファイルは H1 ラベルへフォールバックします(後方互換 100%)。
87
-
88
- 詳細な対応表は [docs/okf-mapping.md](docs/okf-mapping.md) を参照。
89
- 「docsweep を抜けても md が腐らない」を実演する `docsweep export --okf` も提供しています
90
- ([docs/okf-export-format.md](docs/okf-export-format.md))。
88
+ 詳細な対応表は [docs/okf-mapping.md](docs/okf-mapping.md)、Bundle の構造は
89
+ [docs/okf-export-format.md](docs/okf-export-format.md) を参照してください。
91
90
 
92
91
  ## インストール
93
92
 
@@ -159,7 +158,7 @@ pip install 'docsweep[all]'
159
158
 
160
159
  # 起動(PATH を気にせず常に動く形)
161
160
  python -m docsweep triage
162
- python -m docsweep serve --root C:\dev
161
+ python -m docsweep serve --root D:\dev
163
162
  python -m docsweep mcp
164
163
 
165
164
  # MCP 登録例(~\.claude\mcp.json)— 絶対パスにすると Python 切替時も安定
@@ -286,6 +285,9 @@ python -m docsweep capture --from file ./conv.md --save-all
286
285
  # plan の「変更予定ファイル」と実装実態の整合チェック
287
286
  python -m docsweep linkcheck --json
288
287
 
288
+ # 親 plan と child plan の closeout 検査(read-only。状態変更・archive はしない)
289
+ python -m docsweep closeout-check --path docs/local/plan_<parent>.md --to watching --json
290
+
289
291
  # 状態遷移を提案(ruleset / 将来 LLM 委譲)+ 一括適用
290
292
  python -m docsweep auto-triage --suggest > decisions.json
291
293
  python -m docsweep auto-triage --apply decisions.json --dry-run
@@ -327,12 +329,21 @@ python -m docsweep review
327
329
  # テンプレ即生成
328
330
  python -m docsweep new plan my-topic
329
331
  python -m docsweep new bugfix crash-on-start
332
+ python -m docsweep new plan my-topic --split 3 # child に docsweep_parent を付ける
330
333
 
331
334
  # OKF 互換 zip でエクスポート(docsweep を抜けても md が腐らないことを実演する材料)
332
335
  python -m docsweep export --okf # ./docsweep-okf-<date>.zip
333
336
  python -m docsweep export --okf --out /tmp/snapshot.zip # 出力先を明示
334
337
  python -m docsweep export --okf --include-archive # archive/ 配下も含める
335
338
 
339
+ # 任意 Bundle を read-only 検査(未知 type / 追加キー / 壊れた link は警告扱い)
340
+ python -m docsweep okf-check ./bundle --json
341
+ python -m docsweep okf-profiles
342
+
343
+ # profile は既定では同梱 JSON。外部 profile は明示したときだけ取得する
344
+ python -m docsweep export --okf --okf-profile ./okf-profile.json
345
+ python -m docsweep okf-check ./bundle --okf-profile https://raw.githubusercontent.com/<org>/<repo>/<sha>/okf.json --okf-profile-sha256 <sha256>
346
+
336
347
  # 運用ルールを各プロジェクトへ注入/取り消し(CLAUDE.md=正本・AGENTS.md はそこを指すポインタ)
337
348
  python -m docsweep inject --project ./foo --preset claude-jp
338
349
  python -m docsweep inject --project ./foo --no-guidance # 導線を省きラベル節だけ(導線をグローバルに寄せる場合)
@@ -365,7 +376,7 @@ Web UI(看板)はこんな見た目です。
365
376
 
366
377
  ```
367
378
  plan: [保留] → [計画] → [実行中] → [様子見] → [完了]
368
- bugfix: [対応中] → [様子見] → [完了]
379
+ bugfix: [実行中] → [様子見] → [完了]
369
380
  (どちらも、どの状態からでも [廃止] へ分岐できる)
370
381
  ```
371
382
 
@@ -421,6 +432,25 @@ profiles:
421
432
  python -m docsweep triage ~/dev/foo ~/projects/bar
422
433
  ```
423
434
 
435
+ ### 作業 queue と private ドキュメント
436
+
437
+ `new` / `capture --save-all` / MCP `capture_save` は、同じプロジェクト相対 `work_dir` に保存します。
438
+ 未設定時の既定は `docs/local` で、プロジェクトに `docs/` があるかどうかで保存先は変わりません。
439
+
440
+ ```yaml
441
+ work_dir: docs/local # プロジェクト相対。例: docs/ai
442
+ work_policy: private # private は Git ignore / tracked 状態を保存前に検査
443
+ secret_policy: block # high-confidence secret は拒否。warn / off も選択可
444
+ ```
445
+
446
+ 解決順は CLI の `--work-dir` / `--work-policy` / `--secret-policy`、プロジェクト設定、
447
+ グローバル設定の順です。private queue は `export` の既定対象から除外され、`brief` / `triage` は
448
+ Git ignore されていても設定済み queue を確認できます。秘密情報の警告や JSON / UI の表示には本文・値の一部を含めません。
449
+ 必要な場合だけ `--allow-sensitive` を明示してください。
450
+
451
+ 初回は `python -m docsweep init` で既定設定を作り、各プロジェクトでは
452
+ `python -m docsweep inject` の導線と `python -m docsweep new plan <topic>` を使います。
453
+
424
454
  ## AI エージェント連携
425
455
 
426
456
  > **wings(v0.2 系)の方針**: 「全 AI 対応」を最優先し、自然言語起動の価値が高い **朝の入口 3 tool**
@@ -11,25 +11,23 @@ labels such as `[完了]` / `[計画]` / `[廃止]` are supported out of the box
11
11
  completed docs into each project's `archive/`, surfaces stale ones with a "needs decision" flag,
12
12
  and gives you a cross-project INDEX at a glance.
13
13
 
14
- ## OKF (Open Knowledge Format) compatibility
14
+ ## OKF (Open Knowledge Format) v0.2 support
15
15
 
16
- docsweep adopts the **machine-readable type / status / related frontmatter** from
17
- [OKF (Open Knowledge Format)](https://zenn.dev/knowledgesense/articles/14a874a9f423bb).
18
- The YAML frontmatter at the top of each md file makes `type` / `status` / `tags` / `owner` /
19
- `review_status` / `related` / `last_reviewed` machine-readable, so the files stay meaningful
20
- even when read by tools that don't have docsweep installed.
16
+ docsweep follows the [official OKF v0.2 specification](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)
17
+ for machine-readable Markdown frontmatter, including `type` and `status`.
18
+ Because OKF `status` describes the document lifecycle (`draft` / `stable` / `deprecated`),
19
+ docsweep stores its work state (`planned` / `in-progress` / `watching` / `done` /
20
+ `discarded` / `pending`) separately in the extension field `docsweep_state`.
21
21
 
22
- docsweep adds only two conventions of its own:
22
+ `type` and producer extension fields are not treated as a closed registry: unknown values are
23
+ preserved as OKF allows them. docsweep standardizes work records as `plan` / `bugfix` /
24
+ `pending`; `manual` / `reference` / `setup` are kept as static knowledge documents, while H1
25
+ labels remain the human-facing view. Legacy `manual_release` files remain readable for migration.
26
+ Legacy values such as `status: planned` remain readable; use `migrate-frontmatter --dry-run`
27
+ and then `--apply` when you want to split an existing collection into the two axes.
23
28
 
24
- - **The type set is fixed to `plan` / `bugfix` / `pending`** (slightly stricter than OKF).
25
- This constraint enables archive automation; arbitrary type values are treated as unmanaged.
26
- - **H1 status labels are kept alongside, not deprecated**. They preserve the human-facing value
27
- of seeing the state the moment you open the file, and files without frontmatter fall back to
28
- the H1 label (100% backward compatible).
29
-
30
- See [docs/okf-mapping.md](docs/okf-mapping.md) for the full mapping table.
31
- `docsweep export --okf` demonstrates that "your md files won't rot even if you leave docsweep"
32
- ([docs/okf-export-format.md](docs/okf-export-format.md)).
29
+ See [docs/okf-mapping.md](docs/okf-mapping.md) for the mapping table and
30
+ [docs/okf-export-format.md](docs/okf-export-format.md) for the Bundle layout.
33
31
 
34
32
  ## Installation
35
33
 
@@ -103,7 +101,7 @@ pip install 'docsweep[all]'
103
101
 
104
102
  # Launch (always works regardless of PATH)
105
103
  python -m docsweep triage
106
- python -m docsweep serve --root C:\dev
104
+ python -m docsweep serve --root D:\dev
107
105
  python -m docsweep mcp
108
106
 
109
107
  # MCP registration example (~\.claude\mcp.json) — an absolute path stays stable across Python switches
@@ -232,6 +230,9 @@ python -m docsweep capture --from file ./conv.md --save-all
232
230
  # Check consistency between a plan's "files to change" and the actual implementation
233
231
  python -m docsweep linkcheck --json
234
232
 
233
+ # Read-only closeout check for a parent plan and its child plans
234
+ python -m docsweep closeout-check --path docs/local/plan_<parent>.md --to watching --json
235
+
235
236
  # Suggest state transitions (ruleset / future LLM delegation) + bulk apply
236
237
  python -m docsweep auto-triage --suggest > decisions.json
237
238
  python -m docsweep auto-triage --apply decisions.json --dry-run
@@ -273,12 +274,21 @@ python -m docsweep review
273
274
  # Instant template generation
274
275
  python -m docsweep new plan my-topic
275
276
  python -m docsweep new bugfix crash-on-start
277
+ python -m docsweep new plan my-topic --split 3 # add docsweep_parent to each child
276
278
 
277
279
  # Export as an OKF-compatible zip (proof that your md files won't rot if you leave docsweep)
278
280
  python -m docsweep export --okf # ./docsweep-okf-<date>.zip
279
281
  python -m docsweep export --okf --out /tmp/snapshot.zip # Explicit output path
280
282
  python -m docsweep export --okf --include-archive # Include archive/ as well
281
283
 
284
+ # Read-only Bundle check (unknown types / extra fields / broken links are warnings)
285
+ python -m docsweep okf-check ./bundle --json
286
+ python -m docsweep okf-profiles
287
+
288
+ # Bundled profiles are offline by default; external profiles are explicit opt-in
289
+ python -m docsweep export --okf --okf-profile ./okf-profile.json
290
+ python -m docsweep okf-check ./bundle --okf-profile https://raw.githubusercontent.com/<org>/<repo>/<sha>/okf.json --okf-profile-sha256 <sha256>
291
+
282
292
  # Inject / remove the operating rules per project (CLAUDE.md = source of truth, AGENTS.md is a pointer to it)
283
293
  python -m docsweep inject --project ./foo --preset claude-jp
284
294
  python -m docsweep inject --project ./foo --no-guidance # Label section only, no entry-point wiring (when wiring lives in the global config)
@@ -308,7 +318,7 @@ bugfix: [In Progress] → [Watching] → [Done]
308
318
  (either can branch to [Discarded] from any state)
309
319
  ```
310
320
 
311
- The Japanese label set (`[保留]` → `[計画]` → `[実行中]` → `[様子見]` → `[完了]` / `[対応中]` /
321
+ The Japanese label set (`[保留]` → `[計画]` → `[実行中]` → `[様子見]` → `[完了]` /
312
322
  `[廃止]`) is supported by default and follows the same transitions.
313
323
 
314
324
  - **`[Watching]`** = fixed but resting. **Never auto-archived** (protected as the queue awaiting
@@ -367,6 +377,25 @@ For a **one-off scan** you can also pass positional arguments without writing an
367
377
  python -m docsweep triage ~/dev/foo ~/projects/bar
368
378
  ```
369
379
 
380
+ ### Work queue and private documents
381
+
382
+ `new`, `capture --save-all`, and MCP `capture_save` use the same project-relative `work_dir`.
383
+ The default is `docs/local`; the path does not silently change based on whether `docs/` already exists.
384
+
385
+ ```yaml
386
+ work_dir: docs/local # project-relative; for example docs/ai
387
+ work_policy: private # check Git ignore / tracked state before writing
388
+ secret_policy: block # reject high-confidence secrets; warn / off are explicit choices
389
+ ```
390
+
391
+ The precedence is CLI `--work-dir` / `--work-policy` / `--secret-policy`, then project config,
392
+ then global config. A private queue is excluded from `export` by default, while `brief` / `triage`
393
+ still see it even when Git ignores it. Secret warnings and JSON / UI output never include the content
394
+ or a value fragment. Use `--allow-sensitive` only when explicitly necessary.
395
+
396
+ Start with `python -m docsweep init`; then use `python -m docsweep inject` and
397
+ `python -m docsweep new plan <topic>` in each project.
398
+
370
399
  ## AI agent integration
371
400
 
372
401
  > **The wings (v0.2 series) policy**: "works with every AI" comes first. Only the three