docsweep 0.1.0__tar.gz → 0.3.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.
- docsweep-0.3.0/.githooks/pre-push +44 -0
- docsweep-0.3.0/.github/workflows/ci.yml +40 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/.gitignore +1 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/CHANGELOG.md +171 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/CLAUDE.md +39 -19
- {docsweep-0.1.0 → docsweep-0.3.0}/NOTICES.md +9 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/PKG-INFO +24 -3
- docsweep-0.3.0/README.en.md +458 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/README.md +13 -2
- docsweep-0.3.0/assets/screenshots/webui-archive.png +0 -0
- docsweep-0.3.0/assets/screenshots/webui-todo.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/__init__.py +1 -1
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/atomic.py +6 -3
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/brief/service.py +7 -5
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/capture/llm.py +1 -1
- docsweep-0.3.0/docsweep/capture/service.py +156 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/claim.py +11 -7
- docsweep-0.3.0/docsweep/cli/__init__.py +107 -0
- docsweep-0.3.0/docsweep/cli/commands/__init__.py +1 -0
- docsweep-0.3.0/docsweep/cli/commands/completion.py +22 -0
- docsweep-0.3.0/docsweep/cli/commands/excluded.py +129 -0
- docsweep-0.3.0/docsweep/cli/commands/ics.py +22 -0
- docsweep-0.3.0/docsweep/cli/commands/index.py +281 -0
- docsweep-0.3.0/docsweep/cli/commands/init.py +76 -0
- docsweep-0.3.0/docsweep/cli/commands/inject.py +62 -0
- docsweep-0.3.0/docsweep/cli/commands/mcp.py +28 -0
- docsweep-0.3.0/docsweep/cli/commands/memory.py +31 -0
- docsweep-0.3.0/docsweep/cli/commands/notify.py +28 -0
- docsweep-0.3.0/docsweep/cli/commands/read.py +687 -0
- docsweep-0.3.0/docsweep/cli/commands/serve.py +67 -0
- docsweep-0.3.0/docsweep/cli/commands/write.py +394 -0
- docsweep-0.3.0/docsweep/cli/parser.py +562 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/config.py +26 -2
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/context.py +4 -5
- docsweep-0.3.0/docsweep/cookbook.py +64 -0
- docsweep-0.3.0/docsweep/day.py +119 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/detect.py +44 -24
- docsweep-0.3.0/docsweep/doctor.py +289 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/engine.py +30 -2
- docsweep-0.3.0/docsweep/excluded.py +124 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/find.py +23 -0
- docsweep-0.3.0/docsweep/fix_conflict.py +153 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/graph/service.py +40 -10
- docsweep-0.3.0/docsweep/hints.py +43 -0
- docsweep-0.3.0/docsweep/history.py +64 -0
- docsweep-0.3.0/docsweep/ics_export.py +61 -0
- docsweep-0.3.0/docsweep/init_cmd.py +141 -0
- docsweep-0.3.0/docsweep/inject/__init__.py +62 -0
- docsweep-0.3.0/docsweep/inject/agent_claude.py +8 -0
- docsweep-0.3.0/docsweep/inject/agent_codex.py +42 -0
- docsweep-0.1.0/docsweep/inject.py → docsweep-0.3.0/docsweep/inject/api.py +244 -188
- docsweep-0.3.0/docsweep/inject/blocks.py +71 -0
- docsweep-0.3.0/docsweep/inject/manifest.py +38 -0
- docsweep-0.3.0/docsweep/intent.py +80 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/interactive.py +36 -30
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/mcp_server.py +60 -6
- docsweep-0.3.0/docsweep/memory_scan.py +87 -0
- docsweep-0.3.0/docsweep/migrate.py +258 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/models.py +5 -0
- docsweep-0.3.0/docsweep/notify.py +111 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/related.py +4 -5
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/resurrect/similarity.py +1 -1
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/scan.py +18 -4
- docsweep-0.3.0/docsweep/secrets_guard.py +37 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/app.py +160 -16
- docsweep-0.3.0/docsweep/server/config_write.py +61 -0
- docsweep-0.3.0/docsweep/server/i18n.py +340 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/routes/board.py +367 -40
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/routes/brief.py +9 -11
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/routes/capture.py +15 -13
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/routes/cards.py +12 -20
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/routes/cross.py +9 -12
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/routes/graph.py +10 -12
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/routes/resurrect.py +9 -12
- docsweep-0.3.0/docsweep/server/sanitize.py +55 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/security.py +33 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/board.css +140 -6
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/dnd.js +1 -1
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/edit.js +52 -18
- docsweep-0.3.0/docsweep/server/static/i18n.js +181 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/keymap.js +356 -71
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/_board_body.html +57 -19
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/_card.html +21 -8
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/_change_picker.html +17 -16
- docsweep-0.3.0/docsweep/server/templates/_due_picker.html +13 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/_edit_pane.html +15 -13
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/_label_picker.html +8 -7
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/_preview.html +2 -2
- docsweep-0.3.0/docsweep/server/templates/_settings.html +145 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/board.html +68 -34
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/brief.html +11 -9
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/capture.html +24 -17
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/cross.html +7 -7
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/graph.html +2 -2
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/templates/resurrect.html +5 -5
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/services/content.py +6 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/services/due.py +12 -42
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/services/frontmatter.py +79 -3
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/services/status.py +1 -1
- docsweep-0.3.0/docsweep/similar_guard.py +39 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/templates_gen.py +68 -2
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/timeline.py +11 -17
- docsweep-0.3.0/pyproject.toml +114 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/templates/CLAUDE.md +7 -4
- docsweep-0.3.0/tests/test_audit_fixes_2026_07_16.py +315 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_c2_commands.py +54 -5
- docsweep-0.3.0/tests/test_cli_smoke.py +65 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_detect.py +81 -0
- docsweep-0.3.0/tests/test_doctor.py +47 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_engine.py +94 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_extras.py +87 -0
- docsweep-0.3.0/tests/test_init_and_undo_cli.py +46 -0
- docsweep-0.3.0/tests/test_mcp_tools.py +177 -0
- docsweep-0.3.0/tests/test_new_cli_project_dir_autodetect.py +53 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_server.py +169 -1
- docsweep-0.3.0/tests/test_server_routes_extras.py +352 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_services_frontmatter.py +87 -0
- docsweep-0.3.0/tests/test_ux_final.py +61 -0
- docsweep-0.3.0/tests/test_ux_remaining.py +56 -0
- docsweep-0.3.0/tests/test_ux_w2.py +71 -0
- docsweep-0.1.0/docsweep/capture/service.py +0 -79
- docsweep-0.1.0/docsweep/cli.py +0 -1771
- docsweep-0.1.0/docsweep/migrate.py +0 -167
- docsweep-0.1.0/docsweep/server/sanitize.py +0 -144
- docsweep-0.1.0/docsweep/server/templates/_due_picker.html +0 -13
- docsweep-0.1.0/docsweep/server/templates/_settings.html +0 -68
- docsweep-0.1.0/pyproject.toml +0 -82
- docsweep-0.1.0/tests/test_mcp_tools.py +0 -82
- {docsweep-0.1.0 → docsweep-0.3.0}/.docsweep.yaml +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/.github/workflows/publish.yml +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/AGENTS.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/LICENSE +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/archive/plan_drop-last-updated-followup.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/archive/plan_name-docsweep-availability.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/archive/plan_templates-drop-last-updated-line.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icon-a-broom.svg +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icon-b-doc-check.svg +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icon-c-sweep-sparkle.svg +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icon.svg +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icons/apple-touch-icon.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icons/favicon-16.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icons/favicon-32.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icons/favicon-48.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icons/favicon.ico +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icons/favicon.svg +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icons/icon-192.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/icons/icon-512.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/a-broom/apple-touch-icon.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/a-broom/favicon-16.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/a-broom/favicon-32.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/a-broom/favicon-48.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/a-broom/favicon.ico +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/a-broom/favicon.svg +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/a-broom/icon-192.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/a-broom/icon-512.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/b-doc-check/apple-touch-icon.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/b-doc-check/favicon-16.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/b-doc-check/favicon-32.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/b-doc-check/favicon-48.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/b-doc-check/favicon.ico +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/b-doc-check/favicon.svg +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/b-doc-check/icon-192.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/b-doc-check/icon-512.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/c-sweep-sparkle/apple-touch-icon.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/c-sweep-sparkle/favicon-16.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/c-sweep-sparkle/favicon-32.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/c-sweep-sparkle/favicon-48.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/c-sweep-sparkle/favicon.ico +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/c-sweep-sparkle/favicon.svg +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/c-sweep-sparkle/icon-192.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/assets/proposals/c-sweep-sparkle/icon-512.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/D-skill-update-proposal.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/ai-agent-integration.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/conventions.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/guidance-rewrite-proposal.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/mockups/dashboard_v0.1.0.html +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/mockups/dashboard_v0.1.0.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/mockups/mcp_usage_v0.1.0.html +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/okf-export-format.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/okf-mapping.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docs/zenn/docsweep/2026-06-22_slash-commands-p-s-d/20260622-claude-code-slash-commands.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/__main__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/activity.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/aggregate_index.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/archive.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/auto_triage.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/brief/__init__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/brief/score.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/capture/__init__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/capture/heuristics.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/capture/models.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/completion.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/cross/__init__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/cross/service.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/export.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/graph/__init__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/index.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/linkcheck.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/presets.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/reports.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/resurrect/__init__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/resurrect/embedding.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/resurrect/service.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/review.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/security/__init__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/security/path.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/__init__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/routes/__init__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/htmx.min.js +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/icons/apple-touch-icon.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/icons/favicon.ico +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/icons/favicon.svg +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/icons/icon-192.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/server/static/icons/icon-512.png +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/services/__init__.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/services/archive.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/stale.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/state.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep/states.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep-ui.cmd +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep-ui.command +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/docsweep-ui.sh +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/templates/.docsweep.yaml +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/templates/.githooks/docsweep-check.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/templates/AGENTS.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/templates/AGENT_GUIDE.md +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/templates/install-hooks.ps1 +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/templates/install-hooks.sh +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_activity.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_atomic.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_audit_fixes.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_audit_server.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_brief.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_c5_features.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_capture.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_config_due.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_cross.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_db_index.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_export.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_githooks.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_index_prune.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_index_stats.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_index_vacuum.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_index_wal.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_interactive.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_invariants.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_mcp_write_tools.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_parser.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_resurrect.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_server_board.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_server_bulk.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_server_okf.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_services_archive.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_services_content.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_services_due.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_services_status.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_state.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_templates_gen.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_triage_schema.py +0 -0
- {docsweep-0.1.0 → docsweep-0.3.0}/tests/test_undo.py +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# docsweep 開発者向け pre-push フック — push 前に pytest 全走行して失敗を止める。
|
|
3
|
+
#
|
|
4
|
+
# 目的: 2026-07-16 の v0.3.0 release cascade(初回 CI で 5 連続失敗)の教訓。
|
|
5
|
+
# ローカルで pytest を走らせずに push すると、リモート CI で latent bug が一気に発火する。
|
|
6
|
+
# push 前に自動で pytest -q を走らせて、失敗なら push をブロックする(緊急時は --no-verify で回避可)。
|
|
7
|
+
#
|
|
8
|
+
# 有効化: リポジトリを clone した直後に 1 度だけ以下を実行:
|
|
9
|
+
# git config core.hooksPath .githooks
|
|
10
|
+
#
|
|
11
|
+
# 対応: docs/local/plan_audit-recommendations-phase2_2026-07-16.md 続きの CI 予防策。
|
|
12
|
+
|
|
13
|
+
set -e
|
|
14
|
+
|
|
15
|
+
# pytest が入っていない環境(本 hook 無関係の別プロジェクト clone 直後等)はスキップ。
|
|
16
|
+
if ! command -v python >/dev/null 2>&1 && ! command -v python3 >/dev/null 2>&1; then
|
|
17
|
+
echo "[pre-push] python が見つかりません。skip します。"
|
|
18
|
+
exit 0
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
# Python 実行ファイルを解決(Windows は python.exe が優先・POSIX は python3 優先)。
|
|
22
|
+
if command -v python >/dev/null 2>&1; then
|
|
23
|
+
PY=python
|
|
24
|
+
else
|
|
25
|
+
PY=python3
|
|
26
|
+
fi
|
|
27
|
+
|
|
28
|
+
# pytest 未導入なら skip(`pip install -e .[dev]` を促す WARN のみ)。
|
|
29
|
+
if ! "$PY" -c "import pytest" 2>/dev/null; then
|
|
30
|
+
echo "[pre-push] pytest 未導入のため skip します。"
|
|
31
|
+
echo "[pre-push] 有効化には: pip install -e '.[dev]'"
|
|
32
|
+
exit 0
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
echo "[pre-push] pytest -q を実行中(push 前検証)..."
|
|
36
|
+
if ! "$PY" -m pytest -q; then
|
|
37
|
+
echo ""
|
|
38
|
+
echo "[pre-push] pytest が失敗しました。push を中止します。"
|
|
39
|
+
echo "[pre-push] 修正して再 push するか、緊急時は --no-verify で回避してください。"
|
|
40
|
+
exit 1
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
echo "[pre-push] pytest OK。push を許可します。"
|
|
44
|
+
exit 0
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Continuous Integration
|
|
2
|
+
#
|
|
3
|
+
# トリガー: 全 push / pull_request
|
|
4
|
+
# 目的: lint (ruff) / test (pytest) / typecheck (mypy) を回して
|
|
5
|
+
# リグレッションを PR 段階で検出する。
|
|
6
|
+
# 段階導入: mypy は初回 continue-on-error(赤許容)。ruff / pytest は fail on error。
|
|
7
|
+
|
|
8
|
+
name: CI
|
|
9
|
+
|
|
10
|
+
on: [push, pull_request]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
name: Test (Python ${{ matrix.python-version }})
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
python-version: ["3.10", "3.12"]
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
|
|
27
|
+
- name: Install package with dev extras
|
|
28
|
+
# resurrect は torch を引きずるので省く。watch は Windows 限定の watchdog なので省く。
|
|
29
|
+
run: pip install -e ".[dev,web,mcp,review]"
|
|
30
|
+
|
|
31
|
+
- name: Run pytest
|
|
32
|
+
run: pytest -q
|
|
33
|
+
|
|
34
|
+
- name: Run ruff
|
|
35
|
+
run: ruff check docsweep tests
|
|
36
|
+
|
|
37
|
+
- name: Run mypy
|
|
38
|
+
# 段階導入: 初回は赤許容(continue-on-error)。将来的に外す。
|
|
39
|
+
continue-on-error: true
|
|
40
|
+
run: mypy docsweep
|
|
@@ -3,6 +3,177 @@
|
|
|
3
3
|
本ファイルは [Keep a Changelog](https://keepachangelog.com/ja/1.1.0/) の考え方を緩く参照しています。
|
|
4
4
|
バージョニングは [SemVer](https://semver.org/lang/ja/) に従います。
|
|
5
5
|
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
## [0.3.0] - 2026-07-16
|
|
9
|
+
|
|
10
|
+
2026-07-16 の ai-audit-prompts / ultracode 監査(52 findings 検出)と、その進言事項 15 件を
|
|
11
|
+
全消化した「監査シリーズ完結版」。critical / high の security fix、Cookie 認証への移行、
|
|
12
|
+
`cli.py` / `inject.py` の分割 refactor を含む minor bump。互換性維持: URL クエリ認証は
|
|
13
|
+
hybrid 経路として残る(v0.4.x で廃止予定)。
|
|
14
|
+
|
|
15
|
+
### Security
|
|
16
|
+
|
|
17
|
+
- **[critical]** capture 経路(`POST /api/capture/save` と MCP `capture_save`)の任意ファイル
|
|
18
|
+
書き込みを塞いだ。`save_drafts` に `target_dir` のスキャンルート境界チェックと
|
|
19
|
+
`suggested_filename` の basename 化・`.md` 拡張子検証を導入し、`../evil.md` 系の
|
|
20
|
+
トラバーサルと絶対パス書き込みを拒否する(`CaptureScopeError`)。**トークン漏洩時に
|
|
21
|
+
スタートアップ / 認証情報 / cron 等へ任意書き込みできた実質 RCE 経路を除去**。
|
|
22
|
+
- **[medium]** capture 画面(`server/templates/capture.html`)の innerHTML 経路で
|
|
23
|
+
`d.kind` / `d.suggested_filename` を `escapeHtml` 未通しだった箇所を修正(XSS 除去)。
|
|
24
|
+
- Web UI 認証を **HttpOnly / SameSite=Strict Cookie と `x-docsweep-token` ヘッダへ移行**。
|
|
25
|
+
初回の `?token=` 付き URL は Cookie へ交換後に token 無し URL へ redirect する
|
|
26
|
+
hybrid モード(URL クエリ認証は v0.4.x で完全廃止予定・本版はその告知フェーズ)。
|
|
27
|
+
- `POST /api/config/roots` を `--allow-root-mutation` 起動フラグで守るようになった。
|
|
28
|
+
未指定なら 403、指定時も `/`・`C:\`・HOME 直下の追加は allowlist で常時拒否
|
|
29
|
+
(トークン漏洩時のスキャン範囲拡張=任意 .md 読取/書換の連鎖を防ぐ)。
|
|
30
|
+
- `docsweep/server/sanitize.py` の stdlib HTMLParser フォールバック(88 行)を削除し、
|
|
31
|
+
`nh3` を `web` extras の必須依存に。パーサ実装差に依存した bypass 余地を除去。
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- **CI ワークフロー**(`.github/workflows/ci.yml`)を新設。Python 3.10 / 3.12 マトリクスで
|
|
36
|
+
`pytest` / `ruff check` / `mypy` を回す。mypy は段階導入のため `continue-on-error` で
|
|
37
|
+
警告扱い(既存コードでの初回真っ赤を回避)。
|
|
38
|
+
- `--allow-root-mutation` CLI フラグ(上記 Security の項参照)。
|
|
39
|
+
- `[project.optional-dependencies].all-lite` extras 新設。`resurrect`(torch/CUDA を
|
|
40
|
+
引きずる GB 級)を除いた実用最小構成(`web,review,mcp,watch`)。大半のユーザーは
|
|
41
|
+
こちらで足りる想定。
|
|
42
|
+
- `services/frontmatter.py` に `read_frontmatter(path)` / `read_frontmatter_text(text)` の
|
|
43
|
+
read API を追加。既存 9 モジュールに散っていた `_FRONTMATTER_RE` 直接利用を services
|
|
44
|
+
内に集約するための基盤(下記 Refactor 参照)。
|
|
45
|
+
- `services/frontmatter.py` に `FrontmatterBlockStyleError` を追加し、手書き block-style
|
|
46
|
+
list(`tags:\n - a\n - b`)を検出したら書き換えを拒否(フロー記法前提の 1 行置換で
|
|
47
|
+
継続行が孤立し YAML パースが壊れる事故を予防)。
|
|
48
|
+
- `migrate-frontmatter` を「素の md を OKF 形式に整えるフォーマッタ」へ一般化。従来は
|
|
49
|
+
frontmatter が 1 行でもあると無条件スキップだったが、OKF キー(type/status/tags/owner/
|
|
50
|
+
review_status/related/last_reviewed)が欠けている md へ**不足キーだけを追記**する
|
|
51
|
+
mode=`upgrade` を追加(`due:` だけの部分 frontmatter 等が対象。既存キーの値・行は不変・
|
|
52
|
+
H1 温存の不変条件は維持)。JSON 出力と CLI 表示に `mode` を追加。
|
|
53
|
+
- inject の導線(グローバル / プロジェクト)に「新規 md の作成(OKF frontmatter 必須)」節を追加
|
|
54
|
+
(`GUIDANCE_VERSION` 3 → 4)。AI が `docsweep new` を通さず手書きすると `due:` だけの
|
|
55
|
+
最小 frontmatter になり OKF フィールドが欠落する穴を、docsweep 自身の注入ルールで塞ぐ
|
|
56
|
+
(特定の AI ツールに依存しない)。反映には `docsweep inject --global` の再実行が必要。
|
|
57
|
+
- pytest を `--strict-markers --strict-config` で厳格化。未宣言 marker と設定ミスを即エラー化。
|
|
58
|
+
- `[tool.mypy]` セクション追加(`ignore_missing_imports = true` / `warn_unused_ignores = true`)。
|
|
59
|
+
- `[tool.ruff.lint].select` を `E,F,I,UP,B,SIM,RUF` に拡張(バグ検出系 PLE/PIE は次版で
|
|
60
|
+
段階導入予定)。
|
|
61
|
+
|
|
62
|
+
### Fixed
|
|
63
|
+
|
|
64
|
+
以下は 2026-07-16 監査で確定した finding のうち、最小修正で対応可能なもの 12 件。
|
|
65
|
+
|
|
66
|
+
- `engine.relabel_file` を `write_atomic` 経由へ寄せて、atomic.py の宣言(「全ての書き込み
|
|
67
|
+
API はこのヘルパ経由で MD を更新する」)と整合。バックアップと原子的差し替えが効くように
|
|
68
|
+
なり、Web UI 編集中の md を CLI/MCP 側から書き換える race が壊れにくくなる。(A-01)
|
|
69
|
+
- `config.load_config` が `postpone_warn_threshold` に文字列や null が入った YAML を読ませ
|
|
70
|
+
られると `ValueError` で全コマンドが起動不能になっていたのを、`_safe_int` フォールバック
|
|
71
|
+
に修正(既定値 3 / 5 へ落とす)。(A-02)
|
|
72
|
+
- `docsweep auto-triage --apply` が対象 JSON の欠損や破損で生の traceback を吐いていたのを、
|
|
73
|
+
`FileNotFoundError` / `JSONDecodeError` / `UnicodeDecodeError` を捕捉して exit 2 に修正。
|
|
74
|
+
(A-03)
|
|
75
|
+
- 空 `due:` 行(値なし)を含む md への `update_due` で `due:` キーが重複挿入され YAML
|
|
76
|
+
パーサ依存の last-wins になっていたのを、`_DUE_LINE_RE` を `[ \t]` 空白限定に修正して
|
|
77
|
+
1 本置換に。(B-01)
|
|
78
|
+
- `inject.save_manifest` を tmp → `os.replace` のアトミック書き込みに変更。inject/eject 中の
|
|
79
|
+
プロセス停止で `injected.json` が truncate → 全プロジェクトの注入履歴(block ハッシュ・
|
|
80
|
+
preset_version)が事実上失われる事故を防止。(B-04)
|
|
81
|
+
- `graph` の node id で複数プロジェクトの同名 md(例: 各プロジェクトの `plan_v0.1.md`)が
|
|
82
|
+
basename 衝突していたのを、**衝突時のみ** `project/basename` の複合キーに昇格させる部分
|
|
83
|
+
互換方式で修正(衝突なしの通常ケースは basename のまま・後方互換)。(C-02)
|
|
84
|
+
- `brief` の `yesterday_done` が age_days 降順(=古い順)になっていたのを mtime 降順
|
|
85
|
+
(=新しい順)に修正。24h ウィンドウ内での自然な並び順に。(C-03)
|
|
86
|
+
- `timeline._resolve_date` が `rec.mtime` None のレコード 1 件で TypeError → timeline 全体が
|
|
87
|
+
落ちていたのを、`("", "unknown")` フォールバックに修正。(C-04)
|
|
88
|
+
- 対話 `triage --review` を Ctrl+C で中断すると蓄積した判定が全ロスしていたのを、
|
|
89
|
+
`KeyboardInterrupt` を捕捉してここまでの pairs を dispatch するよう修正
|
|
90
|
+
(EOFError と対称の挙動に)。(C-05)
|
|
91
|
+
- `atomic.backup` のファイル名 suffix を `time.time()` → `time.time_ns()` に上げ、同一秒内
|
|
92
|
+
2 回書きで前世代を上書きする問題を修正。(A-05)
|
|
93
|
+
|
|
94
|
+
### Changed / Refactor
|
|
95
|
+
|
|
96
|
+
- `docsweep/cli.py`(2311 行)を `docsweep/cli/` パッケージに分割。`cli/parser.py`
|
|
97
|
+
(argparse 定義)と `cli/commands/*.py`(読取系 / 書込系 / 特殊系)に責務分離。
|
|
98
|
+
公開エントリ `docsweep.cli:main` と既存 `from docsweep.cli import ...` は `__init__.py`
|
|
99
|
+
の re-export で完全互換。(M-06)
|
|
100
|
+
- `docsweep/inject.py`(828 行)を `docsweep/inject/` パッケージに分割。`blocks.py` /
|
|
101
|
+
`manifest.py` / `agent_claude.py` / `agent_codex.py` / `api.py` の 5 モジュールへ責務分離。
|
|
102
|
+
公開 API(`inject` / `eject` / `inject_global` / `eject_global` / `MANIFEST_PATH` / etc)は
|
|
103
|
+
`__init__.py` から re-export され後方互換 100%。(M-10)
|
|
104
|
+
- **frontmatter 読み書き API を `services/frontmatter.py` に一本化**。9 モジュール
|
|
105
|
+
(`claim.py` / `context.py` / `related.py` / `migrate.py` / `timeline.py` / `fix_conflict.py` /
|
|
106
|
+
`services/due.py` 他)に散っていた `_FRONTMATTER_RE` 直接利用を services 内に集約。
|
|
107
|
+
`services/due._replace_or_insert_due` は廃し、`services/frontmatter.update_frontmatter_field`
|
|
108
|
+
に統合。9 箇所の drift(`migrate.py:32` が「厳密版が必要」と告白していた既知の負債)を
|
|
109
|
+
解消。(M-07 / M-08)
|
|
110
|
+
|
|
111
|
+
### Tests
|
|
112
|
+
|
|
113
|
+
- 97 テスト追加(既存 535 → 632)。内訳:
|
|
114
|
+
- `tests/test_audit_fixes_2026_07_16.py`(16 件): 上記 Fixed の再現テスト
|
|
115
|
+
- `tests/test_server_routes_extras.py`(17 件): `/graph` `/resurrect` `/brief` `/cross`
|
|
116
|
+
`/capture` の 200 / 401 / エラー系 smoke
|
|
117
|
+
- `tests/test_cli_smoke.py`(55 件): 全 CLI サブコマンドの `--help` exit 0 smoke
|
|
118
|
+
- `tests/test_mcp_tools.py` に read 系 smoke 7 件追記
|
|
119
|
+
(`route_intent` / `doctor` / `day` / `list_projects` / `set_project_enabled` /
|
|
120
|
+
`inject_global` / `eject_global`)
|
|
121
|
+
- `tests/test_services_frontmatter.py` に block 記法検出テスト 2 件追記
|
|
122
|
+
- Phase 2 (L-01/02/03/04/05) の追加分と合わせて最終 **650 テスト green**。
|
|
123
|
+
|
|
124
|
+
## [0.2.1] - 2026-07-04
|
|
125
|
+
|
|
126
|
+
### Fixed
|
|
127
|
+
|
|
128
|
+
- `serve` を Ctrl+C で停止した際に KeyboardInterrupt のスタックトレースが出ていたのを
|
|
129
|
+
1 行の停止メッセージに変更(Python 3.14 の asyncio.runners 再送出を捕捉)。
|
|
130
|
+
- frontmatter と H1 ラベルの status 食い違い warning が Web UI の描画のたびに
|
|
131
|
+
繰り返し出力されていたのを、同一 (path, message) につきプロセス内 1 回に抑制
|
|
132
|
+
(矛盾自体は従来どおり needs_fix フラグで可視化され続ける)。
|
|
133
|
+
- 看板左上のロゴがファビコンと異なる「DS」テキストアイコンだったのを、
|
|
134
|
+
favicon.svg と同一画像に統一。
|
|
135
|
+
- 狭幅ウィンドウ(埋め込みブラウザ等)でトップバーの「再スキャン」ボタンや編集ペインの
|
|
136
|
+
「プレビュー/編集」タブに `white-space: nowrap` が無く、文字が折り返して縦積みに
|
|
137
|
+
なっていたのを修正。900px 以下では看板と編集ペインを上下 2 段に、640px 以下では
|
|
138
|
+
3 列カードを 1 列に切り替えるレスポンシブ対応も追加。
|
|
139
|
+
|
|
140
|
+
## [0.2.0] - 2026-07-03
|
|
141
|
+
|
|
142
|
+
### Added
|
|
143
|
+
|
|
144
|
+
- **Web UI の英語対応**(plan_v0.2.0-english-support)。看板・設定モーダル・ピッカー・
|
|
145
|
+
brief / capture / cross / graph / resurrect の全画面文言を ja / en 二言語化
|
|
146
|
+
(サーバー側 `docsweep/server/i18n.py`・JS 側 `static/i18n.js` の二層辞書)。
|
|
147
|
+
言語は設定モーダル(⚙)の「日本語 / English」トグルで切替でき、cookie
|
|
148
|
+
`docsweep_lang` に保存される(`~/.docsweep/config.yaml` の `lang:` は変更しない)。
|
|
149
|
+
解決順は `?lang=` クエリ > cookie > `config.lang` > ja。ピッカーの状態ラベルは
|
|
150
|
+
`.docsweep.yaml` の states 二言語辞書から lang 解決するようになった。
|
|
151
|
+
- **README.en.md**(英語版 README)を追加し、README.md と相互リンク。
|
|
152
|
+
- **About & Licenses 表記**を設定モーダル末尾に追加(アプリ情報・MIT ライセンス表記・
|
|
153
|
+
同梱 OSS: htmx / CDN 参照: cytoscape.js / pip 依存の三層を UI から確認できる。
|
|
154
|
+
正本は NOTICES.md — CDN 節を追記)。
|
|
155
|
+
- **Web UI からのスキャンルート管理**(plan_web-roots-management)。設定モーダルに
|
|
156
|
+
Scan roots セクションを追加し、親ディレクトリ・個別プロジェクトフォルダのどちらも
|
|
157
|
+
追加・削除できる(`POST /api/config/roots`)。runtime に即反映しつつ
|
|
158
|
+
`~/.docsweep/config.yaml` の `roots:` キーだけを surgical に書き換えて永続化する
|
|
159
|
+
(他キー・コメントは温存)。最後の 1 個の root は削除不可。
|
|
160
|
+
|
|
161
|
+
- 注入文言(inject)の英語対応。guidance 導線・due ルール節・ラベル節・AGENTS.md ポインタ・
|
|
162
|
+
管理注記・`.docsweep.yaml` / `~/.docsweep/config.yaml` ひな型コメントを ja / en の二言語化し、
|
|
163
|
+
CLI `inject --lang {ja,en}`(プロジェクト注入では preset の言語を上書き、`--global` の既定は ja)と
|
|
164
|
+
MCP `inject` / `inject_global` の `lang` パラメータを追加。状態ラベルは従来から二言語辞書を
|
|
165
|
+
持っていたため、`lang: en` でラベルも `[Planned]` / `[Done]` 等の英語表記になる。
|
|
166
|
+
|
|
167
|
+
### Changed
|
|
168
|
+
|
|
169
|
+
- トップバーの「看板(カンバン)/ Kanban」サブタイトル表記を撤去(バージョン表示のみ残す)。
|
|
170
|
+
- `inject --global` の guidance に対応期日(`due:`)ルール節を同梱(guidance_version 3)。
|
|
171
|
+
従来 due ルールはプロジェクト inject のラベル節にのみ含まれ、プロジェクト注入していない
|
|
172
|
+
リポジトリでは AI が frontmatter を付けられなかった。due 節をラベル節から導線(guidance)側へ
|
|
173
|
+
移設し、既定=グローバル 1 回で全プロジェクトに効く/グローバルに寄せたくない場合は
|
|
174
|
+
プロジェクト inject(既定)で同内容が入る、の切り分けを既存フラグ(`--global` / `--no-guidance`)
|
|
175
|
+
だけで完結させた。
|
|
176
|
+
|
|
6
177
|
## [0.1.0] - 2026-07-03
|
|
7
178
|
|
|
8
179
|
初回リリース。AI コーディングツール(Claude Code / Codex 等)が生成する
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
陳腐化を「要判断」フラグで可視化し、複数プロジェクトを横断 INDEX で一望できるようにする。
|
|
17
17
|
|
|
18
18
|
- GitHub リポジトリ名: `docsweep`
|
|
19
|
-
- 配布:
|
|
19
|
+
- 配布: PyPI(`pip install docsweep`、extras: `web` / `review` / `mcp` / `watch` / `resurrect` / `all`)、Win / Mac / Linux 対応。単体バイナリ(PyInstaller)は現時点で未提供
|
|
20
20
|
- 設計の正本: [docs/local/plan_v0.1.0-product-requirements.md](docs/local/plan_v0.1.0-product-requirements.md)
|
|
21
21
|
および [docs/local/plan_state-tag-orthogonalization.md](docs/local/plan_state-tag-orthogonalization.md)
|
|
22
22
|
|
|
@@ -37,28 +37,32 @@ docsweep は **自分自身のルールでドッグフーディング** する
|
|
|
37
37
|
- 規約を変更するときは `templates/CLAUDE.md`(正本)→ `docs/conventions.md`(解説)の
|
|
38
38
|
順で更新し、両者をズラさない
|
|
39
39
|
|
|
40
|
-
##
|
|
40
|
+
## 技術スタック
|
|
41
41
|
|
|
42
42
|
| レイヤ | 採用 |
|
|
43
43
|
|------|------|
|
|
44
|
-
| 言語 | Python
|
|
44
|
+
| 言語 | Python >= 3.10(クロスプラットフォーム・core 依存は PyYAML のみ) |
|
|
45
45
|
| パッケージ | `docsweep/`(`pip install docsweep`) |
|
|
46
|
-
| CLI |
|
|
47
|
-
|
|
|
46
|
+
| CLI | サブコマンド式(`triage` / `apply` / `sweep` / `serve` / `index` / `summary` / `new` / `inject` / `mcp` 等)+ `--json` / `--dry-run` / `--auto` |
|
|
47
|
+
| Web UI | FastAPI + Jinja2/htmx(`docsweep serve`、extras `web`) |
|
|
48
|
+
| インタラクティブ UI | `questionary`(`review` サブコマンド専用、extras `review`) |
|
|
48
49
|
| 設定 | YAML(`~/.docsweep/config.yaml` / プロジェクトの `.docsweep.yaml`) |
|
|
49
|
-
| 単体配布 | PyInstaller |
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## リポジトリ構成
|
|
52
52
|
|
|
53
53
|
```
|
|
54
54
|
docsweep/
|
|
55
|
-
├─ docsweep/
|
|
55
|
+
├─ docsweep/ # Python ツール本体(CLI・コアエンジン・MCP・Web UI: server/)
|
|
56
56
|
├─ templates/ # 配布物(採用者が取り込む)
|
|
57
|
-
│ ├─ CLAUDE.md #
|
|
58
|
-
│ ├─ AGENTS.md # Codex
|
|
59
|
-
│
|
|
57
|
+
│ ├─ CLAUDE.md # AI 作業ドキュメント運用ルールの正本テンプレ
|
|
58
|
+
│ ├─ AGENTS.md # Codex 等他エージェント向けの薄いポインタ
|
|
59
|
+
│ ├─ AGENT_GUIDE.md # AI エージェント向け docsweep 操作ガイド
|
|
60
|
+
│ ├─ .docsweep.yaml # 設定サンプル
|
|
61
|
+
│ └─ .githooks/ + install-hooks.{sh,ps1} # opt-in pre-commit hook
|
|
62
|
+
├─ tests/ # pytest
|
|
60
63
|
├─ docs/
|
|
61
64
|
│ ├─ conventions.md # 命名・ステータス規約の人間向け解説
|
|
65
|
+
│ ├─ okf-mapping.md # OKF 語彙と内部 state の対応
|
|
62
66
|
│ ├─ mockups/ # Web UI モックアップ
|
|
63
67
|
│ └─ local/ # 設計書・作業ログ(非公開・gitignore)
|
|
64
68
|
└─ CLAUDE.md / AGENTS.md # ← 本ファイル(リポジトリ開発者向け)
|
|
@@ -73,15 +77,31 @@ docsweep/
|
|
|
73
77
|
- **インタラクティブ UI は `--review` 専用**。`--auto` / `--json` は非対話を厳守
|
|
74
78
|
(cron・CI・AI エージェント委譲向け。プロンプトを出さない)。
|
|
75
79
|
|
|
76
|
-
##
|
|
80
|
+
## AI 作業共通ルール
|
|
77
81
|
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
ビルド・コミット禁止、secrets-scan 責務、plan/bugfix/pending md の作成ルール等の
|
|
83
|
+
AI 作業共通ルールは、各利用者のグローバル AI 設定に従う
|
|
84
|
+
(作者環境の例: `~/.claude/CLAUDE.md` および `~/.claude/guides/`)。
|
|
85
|
+
|
|
86
|
+
- このリポジトリでの適用注: `pyinstaller` / `pip install -e .` もビルド・パッケージング扱い
|
|
87
|
+
(ユーザー指示があるまで実行しない)。`pytest` / `ruff` / `mypy` 等の正しさ確認は対象外。
|
|
88
|
+
|
|
89
|
+
## 開発者向け git hook(推奨)
|
|
90
|
+
|
|
91
|
+
`.githooks/pre-push` が用意されている。push 前に自動で `pytest -q` を走らせて失敗を
|
|
92
|
+
止めるためのフック。2026-07-16 v0.3.0 release で「ローカル pytest せず push → リモート
|
|
93
|
+
CI で 5 連続失敗」の cascade があった教訓から追加。
|
|
94
|
+
|
|
95
|
+
**有効化**(clone 後 1 回だけ):
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
git config core.hooksPath .githooks
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
- pytest 未導入や python 不在の環境では自動 skip(既存 clone に影響なし)
|
|
102
|
+
- 緊急時は `git push --no-verify` で回避可
|
|
103
|
+
- `git config` は per-clone の設定なので、リポに commit されない。clone した各自が
|
|
104
|
+
上記コマンドを 1 回だけ実行する。
|
|
85
105
|
|
|
86
106
|
## 公開・配布の方針
|
|
87
107
|
|
|
@@ -30,6 +30,15 @@ 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
|
+
### cytoscape.js 3.30.0
|
|
36
|
+
|
|
37
|
+
- 用途: Web UI の graph ページのネットワーク可視化
|
|
38
|
+
- 読込元: `https://unpkg.com/cytoscape@3.30.0/dist/cytoscape.min.js`(実行時に CDN から取得・配布物には含まれない)
|
|
39
|
+
- 出典: https://github.com/cytoscape/cytoscape.js
|
|
40
|
+
- ライセンス: **MIT License**(同梱していないため転載義務はないが、利用の透明性のため記録)
|
|
41
|
+
|
|
33
42
|
## Runtime dependencies (not bundled — pulled by pip)
|
|
34
43
|
|
|
35
44
|
参考。これらは wheel に含まれず、ユーザーの `pip install` 時に PyPI から個別に取得されます。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docsweep
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.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
|
|
@@ -29,6 +29,16 @@ Requires-Dist: questionary>=2.0; extra == 'all'
|
|
|
29
29
|
Requires-Dist: sentence-transformers>=2.0; extra == 'all'
|
|
30
30
|
Requires-Dist: uvicorn>=0.29; extra == 'all'
|
|
31
31
|
Requires-Dist: watchdog>=4.0; extra == 'all'
|
|
32
|
+
Provides-Extra: all-lite
|
|
33
|
+
Requires-Dist: fastapi>=0.110; extra == 'all-lite'
|
|
34
|
+
Requires-Dist: jinja2>=3.1; extra == 'all-lite'
|
|
35
|
+
Requires-Dist: markdown>=3.6; extra == 'all-lite'
|
|
36
|
+
Requires-Dist: mcp>=1.0; extra == 'all-lite'
|
|
37
|
+
Requires-Dist: nh3>=0.2; extra == 'all-lite'
|
|
38
|
+
Requires-Dist: python-multipart>=0.0.18; extra == 'all-lite'
|
|
39
|
+
Requires-Dist: questionary>=2.0; extra == 'all-lite'
|
|
40
|
+
Requires-Dist: uvicorn>=0.29; extra == 'all-lite'
|
|
41
|
+
Requires-Dist: watchdog>=4.0; extra == 'all-lite'
|
|
32
42
|
Provides-Extra: dev
|
|
33
43
|
Requires-Dist: mypy>=1.10; extra == 'dev'
|
|
34
44
|
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
@@ -52,6 +62,8 @@ Description-Content-Type: text/markdown
|
|
|
52
62
|
|
|
53
63
|
# docsweep
|
|
54
64
|
|
|
65
|
+
> English version: [README.en.md](README.en.md)
|
|
66
|
+
|
|
55
67
|
AI コーディングツール(Claude Code / Codex 等)が生成する `plan_*.md` / `bugfix_*.md` /
|
|
56
68
|
`pending_*.md` の **蓄積・陳腐化問題を解決する** クロスプラットフォーム CLI + Web UI ツール。
|
|
57
69
|
|
|
@@ -326,20 +338,29 @@ python -m docsweep inject --project ./foo --preset claude-jp
|
|
|
326
338
|
python -m docsweep inject --project ./foo --no-guidance # 導線を省きラベル節だけ(導線をグローバルに寄せる場合)
|
|
327
339
|
python -m docsweep eject --project ./foo # 管理ブロックだけ剥がす(手書きは温存。--purge で .docsweep.yaml も)
|
|
328
340
|
|
|
329
|
-
# 個人グローバルへ「セッション開始時に triage
|
|
341
|
+
# 個人グローバルへ「セッション開始時に triage を読む」導線+due ルールを一度だけ注入(全プロジェクトで有効)
|
|
330
342
|
python -m docsweep inject --global # 既定 agent=claude(~/.claude/CLAUDE.md に @import 1 行)
|
|
331
343
|
python -m docsweep inject --global --agent codex # ~/.codex/AGENTS.md にインライン(CODEX_HOME 尊重)
|
|
344
|
+
python -m docsweep inject --global --lang en # 注入文言を英語で生成(プロジェクト注入でも --lang 可)
|
|
332
345
|
python -m docsweep eject --global
|
|
333
346
|
|
|
334
347
|
python -m docsweep list # 注入済み(プロジェクト+グローバル)一覧
|
|
335
348
|
|
|
336
|
-
# Web UI(UX 主役・127.0.0.1
|
|
349
|
+
# Web UI(UX 主役・127.0.0.1・初回だけ ?token= 付き URL、以降は Cookie で /board を直接開ける)。注入/解除もダッシュボードから(プレビュー必須)
|
|
337
350
|
python -m docsweep serve --root ~/dev
|
|
338
351
|
|
|
339
352
|
# MCP サーバー(AI エージェント面・stdio)
|
|
340
353
|
python -m docsweep mcp
|
|
341
354
|
```
|
|
342
355
|
|
|
356
|
+
Web UI(看板)はこんな見た目です。
|
|
357
|
+
|
|
358
|
+

|
|
359
|
+
|
|
360
|
+
「完了」「廃止」になったカードは archive 候補列にまとまり、まとめて archive へ送れます。
|
|
361
|
+
|
|
362
|
+

|
|
363
|
+
|
|
343
364
|
## 状態モデル(一直線・単一正本)
|
|
344
365
|
|
|
345
366
|
```
|