docsweep 0.4.0__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {docsweep-0.4.0 → docsweep-0.5.0}/.github/workflows/ci.yml +4 -3
- docsweep-0.5.0/.github/workflows/dependency-audit.yml +47 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/.gitignore +14 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/AGENTS.md +8 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/CHANGELOG.md +143 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/CLAUDE.md +20 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/PKG-INFO +143 -13
- {docsweep-0.4.0 → docsweep-0.5.0}/README.en.md +68 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/README.md +132 -5
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/ai-agent-integration.md +54 -4
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/conventions.md +127 -11
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/okf-mapping.md +5 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/__init__.py +1 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/activity.py +2 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/aggregate_index.py +1 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/archive.py +36 -3
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/auto_triage.py +13 -5
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/brief/service.py +3 -17
- docsweep-0.5.0/docsweep/bulk_confirm.py +79 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/capture/__init__.py +2 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/capture/heuristics.py +10 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/capture/llm.py +32 -6
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/capture/service.py +11 -2
- docsweep-0.5.0/docsweep/cli/__init__.py +178 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/completion.py +0 -7
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/excluded.py +9 -13
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/ics.py +5 -6
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/index.py +1 -5
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/init.py +0 -5
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/inject.py +3 -10
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/mcp.py +0 -6
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/memory.py +1 -8
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/notify.py +0 -5
- docsweep-0.5.0/docsweep/cli/commands/provenance.py +131 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/read.py +45 -20
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/serve.py +1 -5
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/write.py +240 -25
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/parser.py +118 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/closeout.py +97 -20
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/completion.py +1 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/config.py +313 -21
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/context.py +25 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cookbook.py +2 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cross/service.py +3 -17
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/day.py +19 -4
- docsweep-0.5.0/docsweep/demo.py +161 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/detect.py +23 -4
- docsweep-0.5.0/docsweep/doc_links.py +71 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/doctor.py +12 -8
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/engine.py +150 -29
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/excluded.py +8 -4
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/export.py +27 -20
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/find.py +0 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/fix_conflict.py +1 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/graph/service.py +5 -3
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/history.py +0 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/ics_export.py +3 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/index.py +186 -29
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/inject/__init__.py +4 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/inject/api.py +204 -30
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/inject/blocks.py +31 -5
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/interactive.py +1 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/linkcheck.py +48 -8
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/mcp_server.py +107 -32
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/migrate.py +32 -9
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/models.py +1 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/presets.py +2 -2
- docsweep-0.5.0/docsweep/provenance.py +882 -0
- docsweep-0.5.0/docsweep/provenance_hint.py +44 -0
- docsweep-0.5.0/docsweep/record_view.py +45 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/related.py +10 -4
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/reports.py +3 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/scan.py +167 -19
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/secrets_guard.py +27 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/app.py +1 -3
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/config_write.py +17 -8
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/i18n.py +89 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/routes/board.py +60 -6
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/routes/cards.py +117 -6
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/board.css +143 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/dnd.js +46 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/i18n.js +48 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/keymap.js +59 -15
- docsweep-0.5.0/docsweep/server/static/w4.js +364 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/_board_body.html +1 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/_card.html +15 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/board.html +44 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/services/archive.py +49 -8
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/services/content.py +1 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/services/frontmatter.py +58 -19
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/services/status.py +58 -1
- docsweep-0.5.0/docsweep/session_logs.py +346 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/stale.py +0 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/state.py +61 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/states.py +4 -2
- docsweep-0.5.0/docsweep/streak.py +157 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/templates_gen.py +220 -44
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/timeline.py +1 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/work_queue.py +54 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/pyproject.toml +7 -6
- {docsweep-0.4.0 → docsweep-0.5.0}/templates/.docsweep.yaml +20 -7
- {docsweep-0.4.0 → docsweep-0.5.0}/templates/.githooks/docsweep-check.py +219 -9
- {docsweep-0.4.0 → docsweep-0.5.0}/templates/AGENT_GUIDE.md +8 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/templates/CLAUDE.md +177 -17
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/conftest.py +25 -0
- docsweep-0.5.0/tests/fixtures/dependency-audit/clean.txt +1 -0
- docsweep-0.5.0/tests/fixtures/dependency-audit/vulnerable.txt +1 -0
- docsweep-0.5.0/tests/test_archive_route_contract.py +183 -0
- docsweep-0.5.0/tests/test_audit_2026_07_21_followup.py +137 -0
- docsweep-0.5.0/tests/test_audit_c1_security_boundaries.py +66 -0
- docsweep-0.5.0/tests/test_audit_c1_security_write_boundaries.py +154 -0
- docsweep-0.5.0/tests/test_audit_c2_document_integrity.py +236 -0
- docsweep-0.5.0/tests/test_audit_c3_windows_cli_export.py +322 -0
- docsweep-0.5.0/tests/test_audit_c4_dependency_security.py +57 -0
- docsweep-0.5.0/tests/test_audit_c5_index_correctness.py +218 -0
- docsweep-0.5.0/tests/test_audit_security_regressions.py +99 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_audit_v0_4_0.py +14 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_brief.py +0 -3
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_c2_commands.py +0 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_c5_features.py +2 -3
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_capture.py +45 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_closeout.py +195 -4
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_config.py +48 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_config_due.py +5 -3
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_cross.py +0 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_db_index.py +0 -1
- docsweep-0.5.0/tests/test_docs_mcp_surface.py +38 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_engine.py +60 -7
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_extras.py +156 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_fix_conflict_prefer_h1.py +6 -6
- docsweep-0.5.0/tests/test_githooks.py +214 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_index_prune.py +0 -1
- docsweep-0.5.0/tests/test_linkcheck.py +75 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_mcp_tools.py +7 -11
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_mcp_write_tools.py +78 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_new_cli_project_dir_autodetect.py +46 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_offline_assets.py +11 -0
- docsweep-0.5.0/tests/test_provenance.py +630 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_server.py +20 -1
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_server_board.py +2 -2
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_server_bulk.py +1 -1
- docsweep-0.5.0/tests/test_server_ux_w4.py +230 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_services_status.py +152 -0
- docsweep-0.5.0/tests/test_session_logs.py +258 -0
- docsweep-0.5.0/tests/test_templates_gen.py +332 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_undo.py +44 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_ux_remaining.py +16 -0
- docsweep-0.5.0/tests/test_ux_w4.py +289 -0
- docsweep-0.5.0/tests/test_ux_w4_ui.py +163 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_work_queue_agent_flow.py +35 -0
- docsweep-0.4.0/archive/plan_drop-last-updated-followup.md +0 -64
- docsweep-0.4.0/archive/plan_name-docsweep-availability.md +0 -80
- docsweep-0.4.0/archive/plan_templates-drop-last-updated-line.md +0 -56
- docsweep-0.4.0/docsweep/cli/__init__.py +0 -110
- docsweep-0.4.0/opencode.json +0 -6
- docsweep-0.4.0/opencode.json.many-ai-cli.lock +0 -1
- docsweep-0.4.0/tests/test_githooks.py +0 -109
- docsweep-0.4.0/tests/test_templates_gen.py +0 -153
- {docsweep-0.4.0 → docsweep-0.5.0}/.docsweep.yaml +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/.githooks/pre-push +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/.github/workflows/publish.yml +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/LICENSE +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/NOTICES.md +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icon-a-broom.svg +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icon-b-doc-check.svg +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icon-c-sweep-sparkle.svg +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icon.svg +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icons/apple-touch-icon.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icons/favicon-16.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icons/favicon-32.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icons/favicon-48.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icons/favicon.ico +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icons/favicon.svg +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icons/icon-192.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/icons/icon-512.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/a-broom/apple-touch-icon.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/a-broom/favicon-16.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/a-broom/favicon-32.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/a-broom/favicon-48.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/a-broom/favicon.ico +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/a-broom/favicon.svg +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/a-broom/icon-192.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/a-broom/icon-512.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/b-doc-check/apple-touch-icon.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/b-doc-check/favicon-16.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/b-doc-check/favicon-32.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/b-doc-check/favicon-48.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/b-doc-check/favicon.ico +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/b-doc-check/favicon.svg +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/b-doc-check/icon-192.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/b-doc-check/icon-512.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/c-sweep-sparkle/apple-touch-icon.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/c-sweep-sparkle/favicon-16.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/c-sweep-sparkle/favicon-32.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/c-sweep-sparkle/favicon-48.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/c-sweep-sparkle/favicon.ico +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/c-sweep-sparkle/favicon.svg +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/c-sweep-sparkle/icon-192.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/proposals/c-sweep-sparkle/icon-512.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/screenshots/webui-archive.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/assets/screenshots/webui-todo.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/D-skill-update-proposal.md +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/guidance-rewrite-proposal.md +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/mockups/dashboard_v0.1.0.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/mockups/dashboard_v0.1.0.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/mockups/mcp_usage_v0.1.0.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/okf-export-format.md +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docs/zenn/docsweep/2026-06-22_slash-commands-p-s-d/20260622-claude-code-slash-commands.md +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/__main__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/atomic.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/brief/__init__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/brief/score.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/capture/models.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/claim.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cli/commands/__init__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/cross/__init__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/graph/__init__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/hints.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/init_cmd.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/inject/agent_claude.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/inject/agent_codex.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/inject/manifest.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/intent.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/memory_scan.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/notify.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/okf.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/okf_check.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/okf_profiles/0.2.json +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/resurrect/__init__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/resurrect/embedding.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/resurrect/service.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/resurrect/similarity.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/review.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/security/__init__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/security/path.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/__init__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/routes/__init__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/routes/brief.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/routes/capture.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/routes/cross.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/routes/graph.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/routes/resurrect.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/sanitize.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/security.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/brief.js +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/capture.js +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/cytoscape.min.js +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/edit.js +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/graph.js +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/htmx.min.js +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/icons/apple-touch-icon.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/icons/favicon.ico +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/icons/favicon.svg +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/icons/icon-192.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/static/icons/icon-512.png +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/_change_picker.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/_due_picker.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/_edit_pane.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/_label_picker.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/_preview.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/_settings.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/brief.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/capture.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/cross.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/graph.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/server/templates/resurrect.html +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/services/__init__.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/services/due.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep/similar_guard.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep-ui.cmd +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep-ui.command +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/docsweep-ui.sh +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/portfolio.md +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/templates/AGENTS.md +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/templates/install-hooks.ps1 +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/templates/install-hooks.sh +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_activity.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_atomic.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_audit_fixes.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_audit_fixes_2026_07_16.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_audit_server.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_cli_smoke.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_detect.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_doctor.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_export.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_fix_conflict.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_index_stats.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_index_vacuum.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_index_wal.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_init_and_undo_cli.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_interactive.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_invariants.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_okf_profile.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_parser.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_resurrect.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_server_okf.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_server_routes_extras.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_services_archive.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_services_content.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_services_due.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_services_frontmatter.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_state.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_triage_schema.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_ux_final.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_ux_w2.py +0 -0
- {docsweep-0.4.0 → docsweep-0.5.0}/tests/test_work_dir_alias.py +0 -0
|
@@ -3,12 +3,15 @@
|
|
|
3
3
|
# トリガー: 全 push / pull_request
|
|
4
4
|
# 目的: lint (ruff) / test (pytest) / typecheck (mypy) を回して
|
|
5
5
|
# リグレッションを PR 段階で検出する。
|
|
6
|
-
#
|
|
6
|
+
# lint / test / typecheck はすべてエラー時に失敗させる。
|
|
7
7
|
|
|
8
8
|
name: CI
|
|
9
9
|
|
|
10
10
|
on: [push, pull_request]
|
|
11
11
|
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
12
15
|
jobs:
|
|
13
16
|
test:
|
|
14
17
|
name: Test (Python ${{ matrix.python-version }})
|
|
@@ -35,6 +38,4 @@ jobs:
|
|
|
35
38
|
run: ruff check docsweep tests
|
|
36
39
|
|
|
37
40
|
- name: Run mypy
|
|
38
|
-
# 段階導入: 初回は赤許容(continue-on-error)。将来的に外す。
|
|
39
|
-
continue-on-error: true
|
|
40
41
|
run: mypy docsweep
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Dependency audit
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "17 3 * * 1"
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
pip-audit:
|
|
13
|
+
name: pip-audit (Python ${{ matrix.python-version }})
|
|
14
|
+
runs-on: ubuntu-24.04
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ["3.10", "3.12"]
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: ${{ matrix.python-version }}
|
|
25
|
+
|
|
26
|
+
- name: Install supported runtime extras
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
python -m pip install -e ".[web,mcp,review]"
|
|
30
|
+
|
|
31
|
+
- name: Install pip-audit
|
|
32
|
+
run: python -m pip install pip-audit
|
|
33
|
+
|
|
34
|
+
- name: Audit installed runtime dependencies
|
|
35
|
+
# A vulnerability or unavailable resolver result must be visible in
|
|
36
|
+
# this scheduled/manual audit.
|
|
37
|
+
run: pip-audit --strict
|
|
38
|
+
|
|
39
|
+
- name: Verify audit exit behavior with pinned fixtures
|
|
40
|
+
shell: bash
|
|
41
|
+
run: |
|
|
42
|
+
set -euo pipefail
|
|
43
|
+
if pip-audit --requirement tests/fixtures/dependency-audit/vulnerable.txt --no-deps; then
|
|
44
|
+
echo "::error::the vulnerable fixture unexpectedly passed pip-audit"
|
|
45
|
+
exit 1
|
|
46
|
+
fi
|
|
47
|
+
pip-audit --requirement tests/fixtures/dependency-audit/clean.txt --no-deps
|
|
@@ -35,6 +35,12 @@ desktop.ini
|
|
|
35
35
|
|
|
36
36
|
# AI ツールのローカル状態・生成物
|
|
37
37
|
.claude/
|
|
38
|
+
# Cursor Agent CLI にはグローバル指示の口が無いため、共通ルールへのポインタを .cursor/rules に置く。
|
|
39
|
+
# 作者環境の絶対パスを含むので追跡しない。
|
|
40
|
+
.cursor/
|
|
41
|
+
# many-ai-cli が opencode セッション中だけ cwd に書く permission 設定と排他ロック。
|
|
42
|
+
# セッションが kill されると置き去りになるため追跡しない。
|
|
43
|
+
opencode.json*
|
|
38
44
|
*.log
|
|
39
45
|
*.jsonl
|
|
40
46
|
*.tmp
|
|
@@ -72,6 +78,14 @@ secrets.*
|
|
|
72
78
|
# docsweep の個人作業ログ(公開しない)
|
|
73
79
|
docs/local/
|
|
74
80
|
|
|
81
|
+
# 作業 md の archive は docs/local/archive/ が正しい置き場。
|
|
82
|
+
# リポ直下の archive/ に置かれたものも同じ「非公開の作業ログ」として扱う
|
|
83
|
+
# (2026-09-04: plan 3 本がここで公開追跡されていたのを git rm --cached で外した)。
|
|
84
|
+
/archive/
|
|
85
|
+
|
|
86
|
+
# AI 監査の生レポート(人間レビュー前は公開しない)
|
|
87
|
+
/docs/ai-audit-prompts/
|
|
88
|
+
|
|
75
89
|
# Obsidian knowledge artifacts are not public repository content.
|
|
76
90
|
/docs/obsidian/
|
|
77
91
|
|
|
@@ -5,7 +5,10 @@ maintained in `CLAUDE.md`.
|
|
|
5
5
|
|
|
6
6
|
- Project overview & dev guide: `./CLAUDE.md`
|
|
7
7
|
- Naming / status convention (human-facing spec): `./docs/conventions.md`
|
|
8
|
-
- Design source of truth (
|
|
8
|
+
- Design source of truth (all tracked): state vocabulary in `docsweep/states.py`
|
|
9
|
+
(`DEFAULT_STATES` / the `states:` config), `./docs/conventions.md`,
|
|
10
|
+
`./templates/CLAUDE.md`, `./docs/okf-mapping.md`, `./README.md`
|
|
11
|
+
- Author's working log (private, absent in a fresh clone; never required to read): `./docs/local/`
|
|
9
12
|
- Local/private additions (if present, not committed): `./CLAUDE.local.md` / `./AGENTS.local.md`
|
|
10
13
|
|
|
11
14
|
⚠️ **Do not confuse this with `templates/AGENTS.md` and `templates/CLAUDE.md`.**
|
|
@@ -18,3 +21,7 @@ tool's supported global instruction location for user-specific rules; this file
|
|
|
18
21
|
remain valid for a fresh public clone with no private files.
|
|
19
22
|
|
|
20
23
|
If any project guidance conflicts, follow `CLAUDE.md`.
|
|
24
|
+
|
|
25
|
+
## AI 作業共通ルール
|
|
26
|
+
|
|
27
|
+
- ビルド・コミット禁止、secrets-scan 責務、plan/bugfix/pending md の作成ルール等の AI 作業共通ルールは、各利用者のグローバル AI 設定に従う(作者環境の例: `~/.claude/CLAUDE.md` および `~/.claude/guides/`)
|
|
@@ -5,6 +5,149 @@
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
(次の版の変更をここへ書く)
|
|
9
|
+
|
|
10
|
+
## [0.5.0] - 2026-09-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **様子見の卒業期限と、期限到来分だけの明示昇格。** `plan_*.md` / `bugfix_*.md` を
|
|
15
|
+
`[様子見]` へ移すとき、その日から既定 3 日後を卒業期限として frontmatter の `due` に入れる
|
|
16
|
+
(`due.default_offset_days.plan_watching` / `bugfix_watching` で変更可)。
|
|
17
|
+
既に `[様子見]` の文書を再指定した場合は既存の `due` を保護する。
|
|
18
|
+
**`due` の到来だけでは archive しない。** 昇格は `promote --due-expired` を明示したときに限り、
|
|
19
|
+
due 到来(当日を含む)かつ `[様子見]` の文書だけを `[完了]` へ進めて archive へ移す。
|
|
20
|
+
`due` 無し・未来 due・不正 due・`never_archive` は対象外。`sweep` は従来どおり
|
|
21
|
+
`[様子見]` を対象にしない(寝かせを守る不変条件は変更なし)。
|
|
22
|
+
- **`apply --watching-days N` / MCP `watching_days=N`。** `--to watching` の遷移にだけ
|
|
23
|
+
卒業期限を今日 + N 日で上書きする。設定ファイルは変更しないので、1 本だけ長く寝かせたい
|
|
24
|
+
ときに `.docsweep.yaml` を触らずに済む。
|
|
25
|
+
- **卒業判定の条件を CLI / MCP / 看板で揃えた。** 3 経路とも「当日を含む due 到来」で
|
|
26
|
+
同じ対象を示す。看板の「▼卒業判定」セクションも同じ条件になる。
|
|
27
|
+
- **`docsweep demo` を追加。** 使い捨てのサンプル project を一時ディレクトリへ作る。
|
|
28
|
+
overdue / 今日 / 未来 / 期日なし / 保留 / 完了 が 1 画面でそろう md を 8 本と
|
|
29
|
+
`.docsweep.yaml` を生成するので、`scan` も `triage` も `serve` も「空っぽ」にならない。
|
|
30
|
+
記事・SNS デモ・初回体験用。**既存のプロジェクトには触らず、グローバル config の
|
|
31
|
+
`roots` にも登録しない**(`--root <生成先>` を明示して使う)。`--dir` で生成先を指定できる。
|
|
32
|
+
- **エラーメッセージからドキュメントへの深リンク。** 未知のサブコマンド・`.docsweep.yaml` の
|
|
33
|
+
YAML パース失敗・出力先エンコーディングの 3 か所で、「何を読めばいいか」を 1 行足す。
|
|
34
|
+
docs/ は wheel に同梱されないのでリンク先は GitHub の URL。`help id` を併記するので
|
|
35
|
+
問い合わせのときに場所を特定できる。`DOCSWEEP_HINTS=0` で抑止できる。
|
|
36
|
+
- **一括破壊操作の 2 段階確認。** 対象件数が `bulk_confirm_threshold`(既定 20)以上のとき、
|
|
37
|
+
Web の一括 archive / 一括ラベル変更は `ARCHIVE` / `RELABEL` の打ち込みを求め、
|
|
38
|
+
CLI の `promote` は `--yes` を要求する。**しきい値未満は従来どおり 1 段階のまま。**
|
|
39
|
+
操作ごとにフレーズを変えて惰性の確認を効かなくしてある。`--dry-run` は下見なので求めない。
|
|
40
|
+
非対話が本プロジェクトの不変条件なので、CLI は TTY でもプロンプトを出さない。
|
|
41
|
+
- **カードの snooze(今日は見ない)と pin(常に上)。** score の並びに対する人間側の拒否権。
|
|
42
|
+
`.docsweep/state.json` にだけ持ち、**MD 本体には書かない**(文書の状態ではなく見え方のため)。
|
|
43
|
+
snooze は期限が来れば自然に戻る。板面の 💤 トグルで非表示分を半透明で出して解除できる。
|
|
44
|
+
- **習慣メトリクス(連続日数と今週の片付け件数)を board へ。** 記録するのは
|
|
45
|
+
「朝の入口を開いた日付」だけで、何を見たかは残さない。`metrics: false`(config)または
|
|
46
|
+
`DOCSWEEP_METRICS=0` で記録ごと止まる。0 件でも責める文言は出さない。
|
|
47
|
+
- **カード密度モード(compact / cozy / detailed)と高コントラストの明示トグル。**
|
|
48
|
+
どちらも `localStorage` に残る。`prefers-reduced-motion` も尊重する。
|
|
49
|
+
- **focus session。** カードの 🎯 で 1 枚だけ残して他を薄くする。Esc で戻る。
|
|
50
|
+
- **初回だけ出る 30 秒クイックツアー(Web・4 ステップ)。** 一度閉じたら再表示しない。
|
|
51
|
+
- **キーボード: `g g` / `g e` で最上・最下のカードへ。**
|
|
52
|
+
- **プロジェクト固有の本文節(`template_sections`)。** `.docsweep.yaml` と
|
|
53
|
+
`~/.docsweep/config.yaml` に生成種別ごとの追加見出しを宣言でき、`docsweep new` で
|
|
54
|
+
本文へ差し込まれる。同じ見出しはプロジェクト側がグローバル側を置き換え、新しい見出しは
|
|
55
|
+
末尾へ追加する。空リストを指定した種別は継承した追加節をすべて解除する。
|
|
56
|
+
- **実装を別 AI へ委譲する plan の書式と検査。** frontmatter に
|
|
57
|
+
`docsweep_delegation: external` を宣言した plan は `## C 詳細` を必須にする。
|
|
58
|
+
`docsweep new plan <topic> --delegate` で雛形を生成でき、`closeout-check` /
|
|
59
|
+
`linkcheck` / `templates/.githooks/docsweep-check.py` が書式を検査する。
|
|
60
|
+
各 C は「目的 1 つ / 変更対象 1〜4 ファイル / 完了条件 3〜6 項目 / その C 単独で
|
|
61
|
+
静的チェックかテストを実行できる」粒度を求める。
|
|
62
|
+
- 作業 md の frontmatter に `ai_session_logs` を追加。その md を書いた AI セッションの
|
|
63
|
+
transcript(AI CLI 自身が残す生ログ)のフルパスを記録し、md の記述だけでは追えない判断の
|
|
64
|
+
経緯へ後から会話ログで戻れるようにする。対応は Claude Code / Codex / Grok / Copilot /
|
|
65
|
+
Cursor Agent。Claude Code はセッション ID が環境変数に出るため一致で確定し、それ以外は
|
|
66
|
+
「作業ディレクトリが一致し、直近まで書かれ続けているセッションが 1 つだけ」のときに限って
|
|
67
|
+
記録する(2 つ以上に絞れなければ何も書かない)。opencode は全セッションが単一 SQLite に
|
|
68
|
+
集約され 1 セッションを特定できないため対象外。記録するのはパスだけで内容は読まない。
|
|
69
|
+
`work_policy: private` の queue に限る。`new --ai-session-log <path>` と
|
|
70
|
+
`DOCSWEEP_AI_SESSION_LOG` で明示指定もできる。`provenance start` でも追記するため、
|
|
71
|
+
plan が複数セッションにまたがっても C2 以降の実行を追える(同じパスは重複しない)。
|
|
72
|
+
- `provenance init --update` を追加。作成 AI が `unknown` で記録されてしまった work を、
|
|
73
|
+
台帳の authoring 行と frontmatter の `ai_author_*` をまとめて実値へ直せる。
|
|
74
|
+
`execution_id` / `work_id` / `started_at` は変えず、訂正したことは台帳の `notes` へ残す。
|
|
75
|
+
- provenance が有効なのに AI metadata を渡さずに `new` / `provenance start` /
|
|
76
|
+
`provenance init` を実行すると、`unknown` で記録される前に stderr へ 1 行警告する
|
|
77
|
+
(作成・記録自体は従来どおり成功する)。
|
|
78
|
+
- `new --split N` に `--titles A,B,C` を追加。子 plan のファイル名が
|
|
79
|
+
`plan_<親topic>_c<N>_<short>.md` になり、どの子が何を担当するかがファイル名から読める。
|
|
80
|
+
|
|
81
|
+
### Changed
|
|
82
|
+
|
|
83
|
+
- **`context配分` 表の書式を統一した(テンプレートの破壊的変更)。** 種別の語彙を
|
|
84
|
+
`planned` / `done` の 2 つへ揃え、列順を `C / 種別 / 内容 / 備考・注意点` に固定した。
|
|
85
|
+
`bugfix_*.md` にも同じ表を持たせる。既存ファイルは書き換えない(新規生成分から適用)。
|
|
86
|
+
採用者が `templates/CLAUDE.md` を取り込み直す場合は、この書式差分に注意。
|
|
87
|
+
- **相対日付と絶対日付の表記を言語ごとに統一した。** board の「今日の 1 個」が
|
|
88
|
+
`19d` という素の英語表記のままだったのを `19 日前` / `19d ago` へ揃え、期日バッジには
|
|
89
|
+
絶対日付と曜日のツールチップ(`期日 2026-08-30(日)`)を付けた。相対表示だけだと
|
|
90
|
+
週をまたいだときに読み違える。
|
|
91
|
+
- **キーボード焦点を全操作要素で見えるようにした。** `:focus-visible` の輪郭を
|
|
92
|
+
ボタン・リンク・入力へ統一し、Tab 1 回で board 本体へ入れるスキップリンクを追加した。
|
|
93
|
+
マウス操作時の見た目は変えていない。
|
|
94
|
+
- 資料と実装のズレ 6 件を修正(README / `docs/ai-agent-integration.md` /
|
|
95
|
+
`docs/conventions.md` / `templates/.docsweep.yaml` と、capture・inject・status の実装)。
|
|
96
|
+
- **設定を書いていないプロジェクトの archive 移送先を、repo 直下 `archive/` から
|
|
97
|
+
`<work_dir>/archive`(既定 `docs/local/archive`)へ変更。** 既定値は
|
|
98
|
+
`work_dir=docs/local` / `work_policy=private` なので、従来の既定は private な作業文書を
|
|
99
|
+
git 追跡され得る場所へ移送していた。`archive_dir` の明示(プロジェクト / グローバル)と
|
|
100
|
+
`work_policy: shared` の repo 直下互換は変えていない。既に repo 直下 `archive/` を
|
|
101
|
+
運用しているプロジェクトには `sweep` が移送先変更の警告を出す。従来どおりにするには
|
|
102
|
+
`.docsweep.yaml` へ `archive_dir: archive` を明示する。**既存ファイルの移動はしない。**
|
|
103
|
+
- `sweep` の JSON に `archive_routes` を追加。移送先だけでなく選択根拠
|
|
104
|
+
(`explicit_project` / `explicit_global` / `private_queue` / `shared_root`)を返すので、
|
|
105
|
+
dry-run だけで destination contract を判断できる。移送候補が 0 件でも返す。
|
|
106
|
+
- **`new --split N` の子ファイル名を `plan_<親topic>-c<N>.md` から
|
|
107
|
+
`plan_<親topic>_c<N>.md` へ変更**(区切りがハイフンからアンダースコアへ)。
|
|
108
|
+
規約・既存の親子 plan 群・`closeout-check` の子判定フォールバック
|
|
109
|
+
(`^<親stem>_c\d+(?:_|$)`)はいずれもアンダースコアを期待しており、生成器だけが
|
|
110
|
+
外れていた。既存ファイルはリネームしない。
|
|
111
|
+
- **`closeout-check --to done` の `受入条件` 欠落を blocker から manual check へ降格。**
|
|
112
|
+
`## 受入条件` が無いときの扱いを `missing_section` の blocker ではなく
|
|
113
|
+
`missing_acceptance_section` の manual check にした。blocker のままだと、
|
|
114
|
+
この規約が明文化される前に書かれた plan が機械的に closeout できず、
|
|
115
|
+
「節を足すこと自体が gate 通過のための作業」になっていた(作者環境で 7 本が同じ理由で止まった)。
|
|
116
|
+
`## 完了条件` / `## 検証` の欠落は従来どおり blocker のまま。`--to watching` は変更なし。
|
|
117
|
+
- **`plan_*.md` の必須セクションを配布規約へ明記。** `templates/CLAUDE.md` と
|
|
118
|
+
`docs/conventions.md` は `## context配分` しか必須と書いておらず、
|
|
119
|
+
`## 完了条件` / `## 検証` / `## 受入条件` を要求しているのは実装だけだった。
|
|
120
|
+
さらに「見出しに分類語を入れない」の一覧が `完了条件` / `検証` / `受入` を挙げており、
|
|
121
|
+
必須節そのものと矛盾していた。正規セクションを例外として明示した。
|
|
122
|
+
|
|
123
|
+
### Fixed
|
|
124
|
+
|
|
125
|
+
- 秘密ガードが `task-management-and-scheduling-system` のような通常のハイフン語を
|
|
126
|
+
OpenAI API キーと誤検知し、秘密を含まない作業文書の保存を拒否していた問題を修正。
|
|
127
|
+
`sk-` の前に境界表明が無く、語の途中(`ta|sk-...`)から一致していた。
|
|
128
|
+
- ja-JP Windows の cp932 コンソールへリダイレクトすると `scan` と `doctor` が
|
|
129
|
+
`UnicodeEncodeError` の raw traceback で落ちていた問題を修正。人間向け出力の装飾記号を
|
|
130
|
+
ASCII 化し、あわせて描画境界だけを緩めて**文書側のデータ**に含まれる表現不能な文字でも
|
|
131
|
+
落ちないようにした(`--json` は stdout のバイト列が契約なので緩めず、表現できない場合は
|
|
132
|
+
短い stderr と exit 2 にする)。ファイル上のデータは変えない。
|
|
133
|
+
- Web UI からの scan-roots 更新で、`~/.docsweep/config.yaml` の `roots:` リストの途中に
|
|
134
|
+
コメント行があると、その後ろのエントリが置換されずに残っていた問題を修正。外したはずの
|
|
135
|
+
root が消えず、しかも結果が yaml として妥当なため既存の検証も通っていた。
|
|
136
|
+
- `closeout-check` の検証行分類が、`pytest: 0 failed` や `エラーなし` のような**成功の証跡**を
|
|
137
|
+
「検証の失敗」と読んで closeout を止めていた問題を修正。判定を
|
|
138
|
+
未実施 → 正の失敗件数 → ゼロ失敗 summary → 明示成功 → claimed の順に固定し、
|
|
139
|
+
`continue-on-error` のような識別子の一部を失敗語として拾わないようにした。
|
|
140
|
+
`未検出` / `空集合` / `0件` のような曖昧な散文は従来どおり manual review へ回す
|
|
141
|
+
(自動 pass へは緩めていない)。
|
|
142
|
+
- inject の guidance ファイル / `.docsweep.yaml` / グローバル config の書き込みが非 atomic
|
|
143
|
+
だった問題を修正(途中で落ちると壊れたファイルが残り得た)。
|
|
144
|
+
- **配布フックが必須セクション自体を警告していたのを修正。**
|
|
145
|
+
`templates/.githooks/docsweep-check.py` の分類語チェックは `全体の検証手順` だけを
|
|
146
|
+
例外にしていたため、規約どおりに `## 完了条件` / `## 検証` を書いた plan が
|
|
147
|
+
毎回「H2 見出しに分類語があります」と警告されていた。正規セクション
|
|
148
|
+
(`完了条件` / `検証` / `受入条件` / `変更ファイル` / `変更予定ファイル`)を例外に加えた。
|
|
149
|
+
`### C1 検証` のような非正規の見出しは従来どおり警告する。
|
|
150
|
+
|
|
8
151
|
## [0.4.0] - 2026-08-10
|
|
9
152
|
|
|
10
153
|
### アップグレード時の注意
|
|
@@ -17,8 +17,14 @@
|
|
|
17
17
|
|
|
18
18
|
- GitHub リポジトリ名: `docsweep`
|
|
19
19
|
- 配布: PyPI(`pip install docsweep`、extras: `web` / `review` / `mcp` / `watch` / `resurrect` / `all`)、Win / Mac / Linux 対応。単体バイナリ(PyInstaller)は現時点で未提供
|
|
20
|
-
-
|
|
21
|
-
|
|
20
|
+
- 設計の正本(すべて追跡下。fresh clone で辿れる):
|
|
21
|
+
- 状態モデルの語彙・archive 可否・自動移送可否 → `docsweep/states.py` の `DEFAULT_STATES` と
|
|
22
|
+
`states:` 設定(実装が唯一の正本。ドキュメントはここから導出する)
|
|
23
|
+
- 命名・H1 ステータスラベル・ライフサイクルの人間向け解説 → [docs/conventions.md](docs/conventions.md)
|
|
24
|
+
- 採用者へ配る運用ルールの正本テンプレ → [templates/CLAUDE.md](templates/CLAUDE.md)
|
|
25
|
+
- OKF v0.2 との対応と Bundle の構造 → [docs/okf-mapping.md](docs/okf-mapping.md) /
|
|
26
|
+
[docs/okf-export-format.md](docs/okf-export-format.md)
|
|
27
|
+
- 一直線の状態モデル図と CLI の使い方 → [README.md](README.md)
|
|
22
28
|
|
|
23
29
|
> 個人/グローバルな AI ルール(言語・確認フォーマット・スクリーンショット規約・
|
|
24
30
|
> ターン終端の出力ルール等)は **このリポジトリには置かない**。各利用者が使う AI ツールの
|
|
@@ -77,6 +83,14 @@ docsweep/
|
|
|
77
83
|
- **インタラクティブ UI は `--review` 専用**。`--auto` / `--json` は非対話を厳守
|
|
78
84
|
(cron・CI・AI エージェント委譲向け。プロンプトを出さない)。
|
|
79
85
|
|
|
86
|
+
## Web UI の不変条件(CSP)
|
|
87
|
+
|
|
88
|
+
- **template に inline `<script>` / inline イベント属性(`onclick=` 等)を書かない**。
|
|
89
|
+
サーバーは全レスポンスに `script-src 'self'`(`'unsafe-inline'` なし)の CSP を付けるため、
|
|
90
|
+
inline は実行されず、**画面には何のエラーも出ないまま機能だけが死ぬ**。
|
|
91
|
+
- 処理は `/static/*.js` へ置き、値は `<script type="application/json">`(非実行=CSP 対象外)と
|
|
92
|
+
`data-*` 属性で渡す。`tests/test_offline_assets.py` が機械的に禁止している。
|
|
93
|
+
|
|
80
94
|
## AI 作業共通ルール
|
|
81
95
|
|
|
82
96
|
ビルド・コミット禁止、secrets-scan 責務、plan/bugfix/pending md の作成ルール等の
|
|
@@ -108,3 +122,7 @@ git config core.hooksPath .githooks
|
|
|
108
122
|
- 秘匿情報が無ければ全公開(ツール本体 + テンプレ + 規約ドキュメントをセットで)。
|
|
109
123
|
- 配布の既定は **npm ではなく PyPI**(Python パッケージ)。詳細・npm 連携が絡む場合の
|
|
110
124
|
運用は予約済みハンドル/トークンの状況に依存するため、公開作業前にユーザーへ確認する。
|
|
125
|
+
- **リリースは手書きの手順ではなく、リリース用の共通手順に従って行う**
|
|
126
|
+
(作者環境ではグローバル AI 設定の `release` skill を起動し、Python パッケージなので
|
|
127
|
+
`pypi-publish` のタグ前チェックリストも通す)。release md にはそのリリース固有の引数・事情だけを書き、
|
|
128
|
+
**共通の前提チェックを md へ写経しない**(写経すると正本が 2 つになり、片方だけ古くなる)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: docsweep
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.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
|
|
@@ -20,23 +20,25 @@ Requires-Python: >=3.10
|
|
|
20
20
|
Requires-Dist: pyyaml>=6.0
|
|
21
21
|
Provides-Extra: all
|
|
22
22
|
Requires-Dist: fastapi>=0.110; extra == 'all'
|
|
23
|
-
Requires-Dist: jinja2>=3.1; extra == 'all'
|
|
23
|
+
Requires-Dist: jinja2>=3.1.6; extra == 'all'
|
|
24
24
|
Requires-Dist: markdown>=3.6; extra == 'all'
|
|
25
25
|
Requires-Dist: mcp<2,>=1.28.1; extra == 'all'
|
|
26
26
|
Requires-Dist: nh3>=0.2; extra == 'all'
|
|
27
|
-
Requires-Dist: python-multipart>=0.0.
|
|
27
|
+
Requires-Dist: python-multipart>=0.0.30; extra == 'all'
|
|
28
28
|
Requires-Dist: questionary>=2.0; extra == 'all'
|
|
29
29
|
Requires-Dist: sentence-transformers>=2.0; extra == 'all'
|
|
30
|
+
Requires-Dist: starlette>=1.3.1; extra == 'all'
|
|
30
31
|
Requires-Dist: uvicorn>=0.29; extra == 'all'
|
|
31
32
|
Requires-Dist: watchdog>=4.0; extra == 'all'
|
|
32
33
|
Provides-Extra: all-lite
|
|
33
34
|
Requires-Dist: fastapi>=0.110; extra == 'all-lite'
|
|
34
|
-
Requires-Dist: jinja2>=3.1; extra == 'all-lite'
|
|
35
|
+
Requires-Dist: jinja2>=3.1.6; extra == 'all-lite'
|
|
35
36
|
Requires-Dist: markdown>=3.6; extra == 'all-lite'
|
|
36
37
|
Requires-Dist: mcp<2,>=1.28.1; extra == 'all-lite'
|
|
37
38
|
Requires-Dist: nh3>=0.2; extra == 'all-lite'
|
|
38
|
-
Requires-Dist: python-multipart>=0.0.
|
|
39
|
+
Requires-Dist: python-multipart>=0.0.30; extra == 'all-lite'
|
|
39
40
|
Requires-Dist: questionary>=2.0; extra == 'all-lite'
|
|
41
|
+
Requires-Dist: starlette>=1.3.1; extra == 'all-lite'
|
|
40
42
|
Requires-Dist: uvicorn>=0.29; extra == 'all-lite'
|
|
41
43
|
Requires-Dist: watchdog>=4.0; extra == 'all-lite'
|
|
42
44
|
Provides-Extra: dev
|
|
@@ -53,10 +55,11 @@ Provides-Extra: watch
|
|
|
53
55
|
Requires-Dist: watchdog>=4.0; extra == 'watch'
|
|
54
56
|
Provides-Extra: web
|
|
55
57
|
Requires-Dist: fastapi>=0.110; extra == 'web'
|
|
56
|
-
Requires-Dist: jinja2>=3.1; extra == 'web'
|
|
58
|
+
Requires-Dist: jinja2>=3.1.6; extra == 'web'
|
|
57
59
|
Requires-Dist: markdown>=3.6; extra == 'web'
|
|
58
60
|
Requires-Dist: nh3>=0.2; extra == 'web'
|
|
59
|
-
Requires-Dist: python-multipart>=0.0.
|
|
61
|
+
Requires-Dist: python-multipart>=0.0.30; extra == 'web'
|
|
62
|
+
Requires-Dist: starlette>=1.3.1; extra == 'web'
|
|
60
63
|
Requires-Dist: uvicorn>=0.29; extra == 'web'
|
|
61
64
|
Description-Content-Type: text/markdown
|
|
62
65
|
|
|
@@ -322,6 +325,12 @@ python -m docsweep summary # AI に渡す圧縮 JSON
|
|
|
322
325
|
|
|
323
326
|
# リリース整理(様子見をまとめて完了へ昇格し archive へ)
|
|
324
327
|
python -m docsweep promote --state watching --to done
|
|
328
|
+
# 卒業期限が来た様子見だけを下見/昇格(due 当日を含む)
|
|
329
|
+
python -m docsweep promote --due-expired --dry-run
|
|
330
|
+
python -m docsweep promote --due-expired
|
|
331
|
+
|
|
332
|
+
# 今回だけ卒業期限を今日 + 5 日に上書き(設定ファイルは変更しない)
|
|
333
|
+
python -m docsweep apply --path <plan-or-bugfix.md> --action relabel --to watching --watching-days 5
|
|
325
334
|
|
|
326
335
|
# 対話チェックリスト(人間専用)
|
|
327
336
|
python -m docsweep review
|
|
@@ -381,7 +390,12 @@ bugfix: [実行中] → [様子見] → [完了]
|
|
|
381
390
|
```
|
|
382
391
|
|
|
383
392
|
- **`[様子見]`** = 直したが寝かせ中。**自動移送されません**(再発確認の待機列として守る)。
|
|
384
|
-
- **`[完了]` / `[廃止]`** だけが archive 対象。`[廃止]` は削除ではなく
|
|
393
|
+
- **`[完了]` / `[廃止]`** だけが archive 対象。`[廃止]` は削除ではなく archive へ隔離(復元可能)。
|
|
394
|
+
- 移送先は `archive_dir` を明示しなければ **work queue に連動**します。`work_policy: private`
|
|
395
|
+
(既定)なら `<work_dir>/archive`(既定 `docs/local/archive`)、`shared` なら repo 直下
|
|
396
|
+
`archive/`。private な作業文書を git 追跡され得る場所へ黙って出さないための既定です。
|
|
397
|
+
移送先と選択根拠は `python -m docsweep sweep --dry-run --json` の `archive_routes` で
|
|
398
|
+
確認できます。
|
|
385
399
|
- ラベル語彙・archive 可否・自動移送可否は `states:` 設定が **唯一の正本**で、検出・Web 表示・
|
|
386
400
|
注入テンプレを全部そこから導出します。
|
|
387
401
|
|
|
@@ -451,11 +465,76 @@ Git ignore されていても設定済み queue を確認できます。秘密
|
|
|
451
465
|
初回は `python -m docsweep init` で既定設定を作り、各プロジェクトでは
|
|
452
466
|
`python -m docsweep inject` の導線と `python -m docsweep new plan <topic>` を使います。
|
|
453
467
|
|
|
468
|
+
### 作成AIとC単位の実行AI(opt-in)
|
|
469
|
+
|
|
470
|
+
個人の `~/.docsweep/config.yaml` で provenance を有効にすると、新規work MDへ
|
|
471
|
+
`work_id`、固定の `ai_author_*`、`ai_execution_refs` を追加し、実行本体はリポ外の
|
|
472
|
+
個人台帳へ1実行1行で保存できます。
|
|
473
|
+
|
|
474
|
+
作成したセッションのtranscript(AI CLI 自身が残す生ログ)のフルパスを `ai_session_logs` に
|
|
475
|
+
記録します。md の記述だけでは追えない判断の経緯へ、後から会話ログで戻れるようにするためです。
|
|
476
|
+
記録するのはパスだけで中身は読みません。`work_policy: private` のqueueに限り、かつ実在する
|
|
477
|
+
ときだけ書きます。
|
|
478
|
+
|
|
479
|
+
plan は複数セッションにまたがるため、`provenance start` でC実行を開始したときにも
|
|
480
|
+
そのセッションのパスを**追記**します(同じパスは重複しません)。作成時の1本だけでは
|
|
481
|
+
C2以降を誰がどの会話で実装したのか追えないためです。解決できないセッションでは
|
|
482
|
+
キー自体を書きません(`unknown` のような偽の値を置きません)。
|
|
483
|
+
|
|
484
|
+
対応は Claude Code / Codex / Grok / Copilot / Cursor Agent です。Claude Code はセッションIDを
|
|
485
|
+
環境変数に出すため確実に一致します。それ以外は「作業ディレクトリが一致し、直近まで書かれ続けて
|
|
486
|
+
いるセッションが1つだけ」のときに限って記録し、**2つ以上に絞れなければ何も書きません**
|
|
487
|
+
(別セッションのログを指すくらいなら残さない)。opencode は全セッションが単一のSQLiteに集約され
|
|
488
|
+
1セッションを特定できないため対象外です。自動解決できないときは `--ai-session-log <path>` で
|
|
489
|
+
明示するか、`DOCSWEEP_AI_SESSION_LOG` を設定します。
|
|
490
|
+
|
|
491
|
+
```yaml
|
|
492
|
+
provenance:
|
|
493
|
+
enabled: true
|
|
494
|
+
manager: docsweep
|
|
495
|
+
ledger: provenance/ai-executions.csv
|
|
496
|
+
actor_key: your-key
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
新規作成時は現在AIの取得可能なmetadataを明示します。exact model IDを取得できない場合は
|
|
500
|
+
推測せず `unknown`、取得元は `unavailable` または実際の取得経路を指定します。
|
|
501
|
+
|
|
502
|
+
```bash
|
|
503
|
+
python -m docsweep new plan auth-refactor \
|
|
504
|
+
--ai-agent codex --ai-runtime codex-cli --ai-provider openai \
|
|
505
|
+
--ai-model-id unknown --ai-model-source unavailable
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
C単位の実装・レビュー・検証は作業前に開始し、返されたIDを終了時に閉じます。
|
|
509
|
+
`context配分` 表には `AI実行` 列が追加され、詳細metadataは台帳だけに保持されます。
|
|
510
|
+
|
|
511
|
+
```bash
|
|
512
|
+
python -m docsweep provenance start --path docs/local/plan_auth-refactor.md \
|
|
513
|
+
--context C1 --role implementation --agent codex --runtime codex-cli \
|
|
514
|
+
--provider openai --model-id unknown --model-source unavailable --json
|
|
515
|
+
python -m docsweep provenance finish --execution <AIX-ID> --result completed --json
|
|
516
|
+
python -m docsweep provenance check --path docs/local/plan_auth-refactor.md --json
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
provenance が有効なのに `--ai-*` / `--agent` を渡さなかった場合は、作成AIが `unknown` で
|
|
520
|
+
記録される前にstderrへ1行警告します(作成自体は成功します)。あとから実値へ直すときは
|
|
521
|
+
`provenance init --update` を使います。台帳のauthoring行とfrontmatterの `ai_author_*` を
|
|
522
|
+
まとめて更新し、`execution_id` / `work_id` / `started_at` は変えません。
|
|
523
|
+
|
|
524
|
+
```bash
|
|
525
|
+
python -m docsweep provenance init --update --path docs/local/plan_auth-refactor.md --agent claude --runtime claude-code --provider anthropic --model-id claude-opus-5 --model-display "Claude Opus 5" --model-source runtime --json
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
独自台帳を正典にするリポは `.docsweep.yaml` で `manager: repo` と `delegate_skill` を宣言します。
|
|
529
|
+
この場合、汎用コマンドは委譲を返し、個人の汎用台帳へ二重記録しません。
|
|
530
|
+
|
|
454
531
|
## AI エージェント連携
|
|
455
532
|
|
|
456
|
-
>
|
|
457
|
-
>
|
|
458
|
-
>
|
|
533
|
+
> **方針**: 「全 AI 対応」を最優先し、MCP を使わない AI でも **CLI 直叩き**(`--json`)で同じことが
|
|
534
|
+
> できるようにしています。自然言語起動の主役は **朝の入口**(`brief` / `cross` / `capture_extract`+`capture_save`)
|
|
535
|
+
> ですが、MCP サーバーが露出する tool は v0.5.0 時点で 24 個あり、md を書き換える `apply` / `update_status` /
|
|
536
|
+
> `archive_done` や、グローバル設定を書き換える `inject_global` / `eject_global` も含みます。
|
|
537
|
+
> 一覧と権限の目安・自然言語マッピング表は [docs/ai-agent-integration.md](docs/ai-agent-integration.md)。
|
|
459
538
|
|
|
460
539
|
### 推奨運用: MCP 登録せず CLI 一本化
|
|
461
540
|
|
|
@@ -504,7 +583,7 @@ Codex はインラインで「作業前に triage を読む」導線を個人グ
|
|
|
504
583
|
python -m docsweep sweep --dry-run --project many-ai-cli
|
|
505
584
|
|
|
506
585
|
# 「docsweep プロジェクトの様子見昇格候補は?」
|
|
507
|
-
python -m docsweep promote --dry-run --project docsweep
|
|
586
|
+
python -m docsweep promote --due-expired --dry-run --project docsweep
|
|
508
587
|
|
|
509
588
|
# 「many-ai-cli の残作業ある?」
|
|
510
589
|
python -m docsweep triage --project many-ai-cli
|
|
@@ -527,6 +606,57 @@ python -m docsweep summary --project docsweep
|
|
|
527
606
|
MCP 経由でも同じく引数で絞れます。例: `triage(project="many-ai-cli")` / `summary(project="docsweep")` /
|
|
528
607
|
`sweep(project="many-ai-cli", dry_run=True)`。CLI と MCP で引数名・挙動を完全に揃えています。
|
|
529
608
|
|
|
609
|
+
### プロジェクトを一覧・除外する(`docsweep project`)
|
|
610
|
+
|
|
611
|
+
`roots:` の下に 20〜30 個のリポジトリが並ぶと、看板にも `scan` にも関係ないプロジェクトが
|
|
612
|
+
混ざります。`docsweep project` で一覧の確認と除外の切り替えができます。
|
|
613
|
+
|
|
614
|
+
```bash
|
|
615
|
+
# 一覧(ON / OFF と未処理件数)
|
|
616
|
+
python -m docsweep project list
|
|
617
|
+
|
|
618
|
+
# 除外リストへ入れて board / scan から外す
|
|
619
|
+
python -m docsweep project disable D:/dev/github/public/foo
|
|
620
|
+
|
|
621
|
+
# 除外を解除
|
|
622
|
+
python -m docsweep project enable D:/dev/github/public/foo
|
|
623
|
+
```
|
|
624
|
+
|
|
625
|
+
除外は `~/.docsweep/excluded.json` に root の絶対パスとして記録され、**ファイルは一切動かしません**
|
|
626
|
+
(表示から外れるだけで archive も削除もしません)。Web UI ではプロジェクト行のトグルから、
|
|
627
|
+
MCP では `list_projects` / `set_project_enabled` から同じ操作ができます。
|
|
628
|
+
|
|
629
|
+
### 中身の入った状態で試す(`docsweep demo`)
|
|
630
|
+
|
|
631
|
+
自分のプロジェクトへ入れる前に触ってみたいときは、使い捨てのサンプルを作れます。
|
|
632
|
+
|
|
633
|
+
```bash
|
|
634
|
+
# 一時ディレクトリにサンプル project を作る(既存のプロジェクトには触りません)
|
|
635
|
+
python -m docsweep demo
|
|
636
|
+
|
|
637
|
+
# 出力された root を指定して見る
|
|
638
|
+
python -m docsweep triage --root <生成先>
|
|
639
|
+
python -m docsweep serve --root <生成先>
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
overdue / 今日 / 未来 / 期日なし / 保留 / 完了 がそろった md が 8 本できるので、
|
|
643
|
+
看板も `triage` も空になりません。グローバル設定の `roots` には登録しないので、
|
|
644
|
+
使い終わったらフォルダごと消せます。`--dir` で生成先を指定できます。
|
|
645
|
+
|
|
646
|
+
### まとめて動かすときの確認(`bulk_confirm_threshold`)
|
|
647
|
+
|
|
648
|
+
一括 archive・一括ラベル変更・`promote` は 1 手で数十件を動かせます。対象件数が
|
|
649
|
+
しきい値以上のときだけ確認の段が 1 つ増えます(既定 20 件。しきい値未満は従来どおり)。
|
|
650
|
+
|
|
651
|
+
```yaml
|
|
652
|
+
# .docsweep.yaml または ~/.docsweep/config.yaml
|
|
653
|
+
bulk_confirm_threshold: 20 # 0 にすると常に確認する
|
|
654
|
+
metrics: true # 連続日数・今週の片付け件数の表示(false で記録ごと停止)
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
Web はフレーズ(`ARCHIVE` / `RELABEL`)の打ち込みを求め、CLI の `promote` は `--yes` を
|
|
658
|
+
要求します。非対話を崩さないため、CLI は端末でもプロンプトを出しません。
|
|
659
|
+
|
|
530
660
|
詳細は [docs/conventions.md](docs/conventions.md) と
|
|
531
661
|
[templates/AGENT_GUIDE.md](templates/AGENT_GUIDE.md) を参照してください。
|
|
532
662
|
|
|
@@ -267,6 +267,12 @@ python -m docsweep summary # Compressed JSON to hand to an AI
|
|
|
267
267
|
|
|
268
268
|
# Release cleanup (promote watching items to done in bulk and archive them)
|
|
269
269
|
python -m docsweep promote --state watching --to done
|
|
270
|
+
# Preview / promote only watching items whose graduation due date has arrived (including today)
|
|
271
|
+
python -m docsweep promote --due-expired --dry-run
|
|
272
|
+
python -m docsweep promote --due-expired
|
|
273
|
+
|
|
274
|
+
# Override the graduation due date to today + 5 days for this transition only (config unchanged)
|
|
275
|
+
python -m docsweep apply --path <plan-or-bugfix.md> --action relabel --to watching --watching-days 5
|
|
270
276
|
|
|
271
277
|
# Interactive checklist (humans only)
|
|
272
278
|
python -m docsweep review
|
|
@@ -275,6 +281,8 @@ python -m docsweep review
|
|
|
275
281
|
python -m docsweep new plan my-topic
|
|
276
282
|
python -m docsweep new bugfix crash-on-start
|
|
277
283
|
python -m docsweep new plan my-topic --split 3 # add docsweep_parent to each child
|
|
284
|
+
# Children are named plan_my-topic_c1.md ... ; --titles puts the role into the filename
|
|
285
|
+
python -m docsweep new plan auth --split 3 --titles backend,frontend,migration
|
|
278
286
|
|
|
279
287
|
# Export as an OKF-compatible zip (proof that your md files won't rot if you leave docsweep)
|
|
280
288
|
python -m docsweep export --okf # ./docsweep-okf-<date>.zip
|
|
@@ -324,7 +332,12 @@ The Japanese label set (`[保留]` → `[計画]` → `[実行中]` → `[様子
|
|
|
324
332
|
- **`[Watching]`** = fixed but resting. **Never auto-archived** (protected as the queue awaiting
|
|
325
333
|
regression confirmation).
|
|
326
334
|
- Only **`[Done]` / `[Discarded]`** are archive targets. `[Discarded]` means quarantined into
|
|
327
|
-
|
|
335
|
+
the archive, not deleted (recoverable).
|
|
336
|
+
- Unless `archive_dir` is set, the destination **follows the work queue**: `<work_dir>/archive`
|
|
337
|
+
(default `docs/local/archive`) for `work_policy: private` (the default), and the repository
|
|
338
|
+
root `archive/` for `shared`. This keeps private work documents out of a Git-tracked location
|
|
339
|
+
by default. `python -m docsweep sweep --dry-run --json` reports the destination and why it was
|
|
340
|
+
chosen under `archive_routes`.
|
|
328
341
|
- The label vocabulary, archivability, and auto-archive eligibility come from the `states:`
|
|
329
342
|
config — **the single source of truth** — from which detection, the Web display, and the
|
|
330
343
|
injection templates are all derived.
|
|
@@ -455,7 +468,7 @@ When you manage multiple roots, natural-language queries from an AI tend to be a
|
|
|
455
468
|
python -m docsweep sweep --dry-run --project many-ai-cli
|
|
456
469
|
|
|
457
470
|
# "Any watching items ready for promotion in the docsweep project?"
|
|
458
|
-
python -m docsweep promote --dry-run --project docsweep
|
|
471
|
+
python -m docsweep promote --due-expired --dry-run --project docsweep
|
|
459
472
|
|
|
460
473
|
# "Any remaining work in many-ai-cli?"
|
|
461
474
|
python -m docsweep triage --project many-ai-cli
|
|
@@ -479,6 +492,59 @@ The same narrowing works over MCP via arguments, e.g. `triage(project="many-ai-c
|
|
|
479
492
|
`summary(project="docsweep")` / `sweep(project="many-ai-cli", dry_run=True)`. Argument names
|
|
480
493
|
and behavior are kept fully identical between CLI and MCP.
|
|
481
494
|
|
|
495
|
+
### Listing and excluding projects (`docsweep project`)
|
|
496
|
+
|
|
497
|
+
When 20-30 repositories sit under your `roots:`, the board and `scan` fill up with projects
|
|
498
|
+
you do not care about. `docsweep project` lists them and toggles the exclusion.
|
|
499
|
+
|
|
500
|
+
```bash
|
|
501
|
+
# List projects with ON / OFF and open counts
|
|
502
|
+
python -m docsweep project list
|
|
503
|
+
|
|
504
|
+
# Exclude a project from the board and scan
|
|
505
|
+
python -m docsweep project disable /path/to/repo
|
|
506
|
+
|
|
507
|
+
# Bring it back
|
|
508
|
+
python -m docsweep project enable /path/to/repo
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
Exclusions are stored in `~/.docsweep/excluded.json` as absolute project roots. **No file is
|
|
512
|
+
moved**: the project disappears from listings only, nothing is archived or deleted. The Web UI
|
|
513
|
+
exposes the same toggle per project row, and MCP exposes it as `list_projects` /
|
|
514
|
+
`set_project_enabled`.
|
|
515
|
+
|
|
516
|
+
### Trying it on sample data (`docsweep demo`)
|
|
517
|
+
|
|
518
|
+
To look around before pointing docsweep at your own repositories, generate a throwaway project.
|
|
519
|
+
|
|
520
|
+
```bash
|
|
521
|
+
# Creates a sample project in a temp directory. Your own projects are never touched.
|
|
522
|
+
python -m docsweep demo
|
|
523
|
+
|
|
524
|
+
# Then point the commands at the printed root
|
|
525
|
+
python -m docsweep triage --root <generated root>
|
|
526
|
+
python -m docsweep serve --root <generated root>
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
It writes 8 documents spread across overdue / today / future / no-due / pending / done, so the
|
|
530
|
+
board and `triage` are never empty. It is not registered in the global `roots`, so you can
|
|
531
|
+
delete the folder when you are done. `--dir` picks the location.
|
|
532
|
+
|
|
533
|
+
### Confirmation for bulk operations (`bulk_confirm_threshold`)
|
|
534
|
+
|
|
535
|
+
Bulk archive, bulk relabel and `promote` can move dozens of files in one action. When the
|
|
536
|
+
number of targets reaches the threshold, one extra confirmation step appears (default 20;
|
|
537
|
+
below the threshold nothing changes).
|
|
538
|
+
|
|
539
|
+
```yaml
|
|
540
|
+
# .docsweep.yaml or ~/.docsweep/config.yaml
|
|
541
|
+
bulk_confirm_threshold: 20 # 0 always asks
|
|
542
|
+
metrics: true # streak / weekly archive count (false stops recording entirely)
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
The Web UI asks you to type the phrase (`ARCHIVE` / `RELABEL`); the CLI `promote` requires
|
|
546
|
+
`--yes`. The CLI never prompts, even on a TTY, so non-interactive use stays non-interactive.
|
|
547
|
+
|
|
482
548
|
See [docs/conventions.md](docs/conventions.md) and
|
|
483
549
|
[templates/AGENT_GUIDE.md](templates/AGENT_GUIDE.md) for details.
|
|
484
550
|
|