mcp-gee-sweet 0.9.1.dev45__tar.gz → 0.9.1.dev53__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.
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/team-roles/qa.md +9 -1
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/PKG-INFO +1 -1
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/drive_transfer.md +28 -1
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/roadmap.md +8 -2
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/drive/transfer.py +108 -12
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/drive/test_transfer.py +174 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/cleanup-worktrees.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/merge-pr.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/notify-kai.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/notify-partner.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/orchestrator.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/prep-for-pr.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/qa-kickoff.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/release.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/retro.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/roadmap-status.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/start-worktree.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/team-member.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/verify-pr.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/settings.json +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/team-roles/amy.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/team-roles/aziz.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/team-roles/bob.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/team-roles/dev.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/team-roles/joy.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/team-roles/kai.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.dockerignore +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.github/dependabot.yml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.github/workflows/ci.yml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.github/workflows/docs.yml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.github/workflows/publish-dev.yml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.github/workflows/release.yml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.gitignore +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.pre-commit-config.yaml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.python-version +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/CHANGELOG.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/CLAUDE.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/CODE_OF_CONDUCT.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/CONTRIBUTING.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/Dockerfile +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/LICENSE +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/Makefile +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/README.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/SECURITY.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docker-compose.yml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/assets/logo.png +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/auth.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/client-setup.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/configuration.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-async-tool-execution.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-cache-invalidation.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-chart-theming.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-comments-first-class.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-composite-tools.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-dev-team.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-docs-formatting.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-fork.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-grid-data-size-cap.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-local-fs-test-harness.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-pillow-image-dependency.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-prompt-qa-role.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-publishing.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-release-docs-roles.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-repositioning.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-sync-folder-recursion.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/decision-testing.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/decisions/index.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/blockquote-representation.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/borderless-table-columns.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/doc-to-markdown.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/docs-ast-pipeline.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/effectiveformat-spike.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/heading-anchor-resolution.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/index.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/markdown-support.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design/phase3-theme-system.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/design.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/index.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/known-limitations.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/notes-read.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/README.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc137-inline-hr-no-block-ancestor.html +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc144-anchor-in-table-cell.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures/tc-doc145-anchor-on-first-element.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/fixtures.template.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/operations.yaml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/playwright_oauth.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/.gitkeep +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-06-02.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-06-14.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-06-17.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-06-18.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-06-21-sheets-delete-clear.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-06-28.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-07-04-docs.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-07-04-infra.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-07-04.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/results/2026-09-04.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/retro-v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/retro-v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/run.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/runs/README.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/runs/v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/runs/v0.8.1.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/runs/v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/setup.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/calendar.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/docs_content.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/docs_layout.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/docs_style.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/docs_tables.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/drive_activity.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/drive_files.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/drive_sharing.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/infra.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/sheets_charts.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/sheets_mgmt.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/qa/tests/sheets_write.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/style-guide.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/docs/tools.md +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/mkdocs.yml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/pyproject.toml +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/pyrightconfig.json +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/scripts/gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/scripts/oauth_setup.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/scripts/setup_team.sh +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/server.json +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/.env.template +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/__init__.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/auth.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/cache.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/http_transport.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/server.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/__init__.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/cache.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/calendar.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/ast_to_markdown.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/content.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/doc_to_ast.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/html_parser.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/images.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/markdown_export.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/drive/files.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/response_limits.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/sheets/data.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/__init__.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/drive/test_activity.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/drive/test_files.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/drive/test_sharing.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/integration/__init__.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/integration/conftest.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/integration/test_local_fs_harness.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/sheets/test_data.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/sheets/test_helpers.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/sheets/test_structure.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_auth.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_cache.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_calendar.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_anchors.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_comments.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_content.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_core.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_editing.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_images.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_indices.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_layout.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_markdown_export.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_style.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_docs_tables.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_response_limits.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_server.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/tests/test_server_json.py +0 -0
- {mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/uv.lock +0 -0
|
@@ -26,7 +26,14 @@ Friction QA (Sky/Kit) typically hits after a pass, and where it goes — see `/r
|
|
|
26
26
|
- **Playwright verification gaps** — an element is structurally unreachable or invisible to the browser tools (outside the viewport, canvas-rendered with no accessible geometry, obscured by other content). Command decision: add it to `run.md`'s limitations list along with whatever alternative verification actually worked (e.g. `get_sheet_data(..., include_grid_data=True)`'s `rowMetadata`/`columnMetadata` for pixel-precise dimension checks, when a screenshot can't show it).
|
|
27
27
|
- **Test tag drift** — `⚠️ requires-oauth` or `**Playwright: required**` no longer matches a test case's actual behavior. Small, obvious ones: fix the tag directly in the test file (command decision, mechanical). Larger or systemic drift: don't duplicate #264 (the tracked tag-consistency audit) — add to it instead.
|
|
28
28
|
- **QA test-doc setup steps that don't match tool behavior** — e.g. a `**Setup:**` line telling you to use a tool that doesn't actually do what the step assumes (a "replace" tool cited where an "append" was meant). Fix the test-case text directly in `docs/qa/tests/*.md` as part of the same pass (command decision), not a ticket — it's QA process content, not product code.
|
|
29
|
-
- **Raise the bar on what counts as non-blocking — if a finding is worth writing up, it's worth sending back to the Dev to fix now, in the same pass, using the context already loaded — not filing a ticket that discards it.** A code-review or live-QA finding defaults to *blocking*: comment on the PR and send it back to the Dev in the same branch, the same pass — input-validation gaps, duplicated helpers, a style inconsistency the new code merely repeats from an existing convention, a docstring the PR's own diff made inaccurate. The old default (label these "minor/systemic," approve anyway, file a ticket) was generating far more tickets than the team could close — a single PR's review routinely spun off 1-2 backlog issues nobody would revisit, all describing something that was, by definition, already fully understood and small enough to fix in the moment; filing a ticket for it just discards that context so someone has to re-derive it later.
|
|
29
|
+
- **Raise the bar on what counts as non-blocking — if a finding is worth writing up, it's worth sending back to the Dev to fix now, in the same pass, using the context already loaded — not filing a ticket that discards it.** A code-review or live-QA finding defaults to *blocking*: comment on the PR and send it back to the Dev in the same branch, the same pass — input-validation gaps, duplicated helpers, a style inconsistency the new code merely repeats from an existing convention, a docstring the PR's own diff made inaccurate. The old default (label these "minor/systemic," approve anyway, file a ticket) was generating far more tickets than the team could close — a single PR's review routinely spun off 1-2 backlog issues nobody would revisit, all describing something that was, by definition, already fully understood and small enough to fix in the moment; filing a ticket for it just discards that context so someone has to re-derive it later. Every new ticket cycle is new context a Dev has to reconstruct from scratch (re-open the file, re-derive the finding, re-load the surrounding code) — a cost paid in tokens and turnaround that a same-round send-back skips entirely, since the Dev already has the file and the finding loaded right now. Optimize for that: fixing it now, in the branch already open, is strictly cheaper than fixing it later in a new one.
|
|
30
|
+
|
|
31
|
+
**A ticket is the exception, and the exception must be named, not implied.** Only file a ticket when the finding clears one of exactly three bars — and the PR comment/ticket body must say which one, explicitly, not just assert "non-blocking" or "low priority" and stop there:
|
|
32
|
+
1. It needs a maintainer/product decision (a real design or scope call the Dev can't make unilaterally in this PR).
|
|
33
|
+
2. It's a genuinely cross-cutting change spanning far more of the codebase than this PR touches — not just "the same pattern also appears elsewhere," but a multi-call-site sweep the PR's own diff didn't create the need for (e.g. #737: 6+ call sites the PR never touched).
|
|
34
|
+
3. It needs infrastructure/access this pass doesn't have.
|
|
35
|
+
|
|
36
|
+
"Narrow," "contrived repro," "low priority," or "not blocking `qa-approved`" are *descriptions*, not exceptions — none of them alone justifies a ticket. If a finding doesn't obviously match one of the three bars above, the default action is to send it back to the Dev in this round, not to file a ticket "to be safe." When a ticket is still warranted, classify it `enhancement`/`backlog` (or `defect` only if a failure was actually observed), same as before. And if a finding genuinely isn't worth fixing at all — not just small, actually not worth anyone's time — don't file a ticket for that either; note it in the PR comment for the record and let it go, rather than manufacturing backlog. Don't hold a PR hostage over a pre-existing convention the PR didn't introduce and can't reasonably fix in isolation — that's the one case that still ships as-is, filed only if it clears the bar above.
|
|
30
37
|
- **QA never unilaterally decides to edit product code (`src/`, `tests/`) — retired 2026-07-21, refined same day.** PR #353 (2026-07-18) carved out an "inline fix for narrow, low-risk findings" exception here; PR #385 (2026-07-20) narrowed it once (findings needing new design reasoning still go back to the Dev); PR #386 (2026-07-21, Sky) and PR #385's own second round (Kit, same day) both independently leaned on the surviving exception to justify further inline fixes, and the user called a full stop on both: "both of you are stepping out of line." The exception clause itself was removed, not narrowed further.
|
|
31
38
|
Refined later the same day, still on PR #385: the failure mode wasn't that QA's fixes were *wrong* — a fix independently verified (a standalone reproduction, a deterministic unit test, and a live API test) doesn't need a rubber-stamp Dev re-review to establish correctness, and reflexively bouncing already-verified work back for one is pure latency with no new signal. The actual failure mode was QA repeatedly *self-authorizing* Dev-shaped work without asking — deciding on its own, session after session, that a given finding was "narrow enough" to just go implement, each time rationalizing a little more scope than the last. So the operative rule is not "QA may never touch product code under any circumstance," it's **"QA never writes or pushes a product-code change without first asking and getting an explicit, finding-specific go-ahead."** Default action for any code-level finding is still: describe it, propose a fix if one is obvious, comment on the PR, hand it to the Dev. Implementing it directly requires asking first — every time, not a standing permission earned by a prior "yes" on some other finding. QA's own process content is unaffected by any of this — `docs/qa/tests/*.md` test-case text and QA results entries are still fine to edit directly, per this file's other retro entries and [[feedback_sky_direct_develop_doc_commits]].
|
|
32
39
|
- **Re-check a PR's live state immediately before mutating its labels — don't trust state from earlier in the same session.** PR #385 (2026-07-20/21): after `qa-approved` was added, Kai merged the PR in the background while the QA session was still mid-conversation about the finding above. The session then removed and re-added the `qa-approved` label twice more in response to the user's follow-up asks, with no functional effect either time, because it never re-checked whether #385 was still open — it was already merged and closed. The confusion only surfaced when the user pasted a screenshot of the actual open-PR list and #385 wasn't on it. Command decision: any `gh pr edit`/label/status mutation must be preceded by a fresh `gh pr view <n> --json state,mergedAt,closedAt` in the same turn, not an assumption carried from a `gh pr view` call several turns earlier — a PR's state is shared, mutable state another session (typically Kai, mid-merge) can change at any time, the same category of race as [[project_concurrent_develop_ref_race]] but for PR/issue state instead of a git ref.
|
|
@@ -51,3 +58,4 @@ Friction QA (Sky/Kit) typically hits after a pass, and where it goes — see `/r
|
|
|
51
58
|
- **Don't file a GitHub issue for a finding that's blocking and going back to the Dev in the same review cycle — only non-blocking/deferred findings get a ticket.** PR #455 (issue #158): filed #457 for the one blocking finding (missing `calendar_cache.mark_dirty` calls on the new ACL tools), then had to close it as redundant once realizing this file's own blocking-finding process (comment on the PR, stop, hand back to the Dev) has no ticket step — the PR comment plus the Dev's own fix commit is already the durable record, and a ticket for something about to be fixed in the same PR cycle just gets closed the moment the fix lands. Command decision: before running `gh issue create` for a code-review or live-QA finding, classify blocking vs. non-blocking first (per this file's own guidance above) — only non-blocking findings get a ticket; a blocking one gets a PR comment and nothing else.
|
|
52
59
|
- **Relocating step content into a separate command/skill file can silently drop a second, independently-bundled rule, and leaves this file's own Retro log making false present-tense claims about the old location.** PR #456: moving the post-reconnect check out of step 2 into the new `qa-kickoff.md` dropped the "don't trust `ToolSearch`'s cached docstring" caveat that had been bundled with the "check the confirmation names this role's own server" rule — two separately-earned incidents (PRs #351/#361's wrong-server case vs. the general `ToolSearch`-staleness note), collapsed into one during the move. The same PR also left two Retro bullets elsewhere in this file claiming "step 2 above now says..." / "step 3 now tells the user..." after step 2/3's actual content had already moved to `qa-kickoff.md`. Neither was self-caught — both were caught by Bob's prompt-QA review. Command decision: when moving instructional content out of this file into another file, (1) diff the full old content against the new location line-by-line rather than skimming for the one rule that prompted the move, and (2) grep this file's own Retro section for any bullet referencing the relocated step's old wording or step number, updating each to point at the new location, in the same commit.
|
|
53
60
|
- **The "minor/systemic findings are tickets" default was itself the problem, not individual mis-classifications.** 2026-09-11 (Kai orchestrator session): user flagged that open issues were growing roughly 2:1 against closures (37 opened vs. 20 closed over the prior 14 days, 60 of 128 open issues sitting in unscheduled `backlog`), and traced it to this file's own prior guidance — every dev-lane PR's `/code-review` pass was correctly following the old rule (classify as non-blocking, approve, file a ticket) and correctly producing a steady drip of single-PR-follow-up tickets nobody was coming back for (#718, #724, #726, #727 — four in a row, one per recent merge). User's framing: "if it's worth filing, it's worth using the existing context to fix" — the fix was never QA doing unrelated Dev-shaped work (that boundary, above, is unchanged), it's that "non-blocking" had far too low a bar, routing things back to the ticket queue that a Dev could just fix in the PR already open. Rewrote the bullet above to default to blocking; a ticket is now the exception, not the default outcome of a code-review pass.
|
|
61
|
+
- **The rewritten rule still had an escape hatch wide enough to walk right back through it.** 2026-09-13 (Kai orchestrator session): checking tickets filed genuinely *after* the 2026-09-11 rewrite (commit `dd28221`, merged 06:48:49 UTC that day) — #724 and #726 are the same pre-rewrite motivating evidence the entry above already covers (created 2026-09-10 05:18 and 2026-09-11 05:35 UTC, both before the rewrite landed; an earlier version of this entry double-counted them as new post-rewrite failures, caught in Bob's prompt-QA review of PR #742) — the real post-rewrite record is #732 (Ash's own QA-round finding on PR #730, cited "low priority, narrow, contrived repro," not one of the three named exceptions) vs. #737 (PR #736, correctly named the cross-cutting exception — 6+ untouched call sites — and was legitimately ticketed). One-for-two is thinner evidence than "the ratio hadn't improved," but #732 alone still shows the soft wording being walked straight through: the 2026-09-11 rewrite described the *right default* but still let "non-blocking" stand on its own as a reason, with nothing forcing a session to check its finding against the three exceptions before reaching for `gh issue create`. Tightened further: a ticket now requires the PR comment/ticket body to name which of the three bars it clears, and "narrow"/"low priority"/"not blocking" are called out explicitly as descriptions, not exceptions, so there's no unnamed middle ground to file into. Also folded in the user's efficiency framing directly into the rule's own rationale (a new ticket cycle means a Dev reconstructing context from scratch, which a same-round send-back skips) so the "why" travels with the rule instead of living only in this retro log.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: mcp-gee-sweet
|
|
3
|
-
Version: 0.9.1.
|
|
3
|
+
Version: 0.9.1.dev53
|
|
4
4
|
Summary: MCP server for Google Workspace — Sheets, Drive, Docs (HTML or Markdown), and Calendar.
|
|
5
5
|
Project-URL: Homepage, https://github.com/khuisman/mcp-gee-sweet
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/khuisman/mcp-gee-sweet/issues
|
|
@@ -1324,7 +1324,7 @@ Remove `/tmp/qa-download-316/`.
|
|
|
1324
1324
|
|
|
1325
1325
|
### TC-D199: `download_folder` and `sync_folder` emit `notifications/progress` updates as each transfer completes (issue #316)
|
|
1326
1326
|
|
|
1327
|
-
**Background:** Both tools previously ran silently for their entire duration — the 226s `download_folder` call above returned nothing until the very end, with no indication to the caller of whether it was working or hung. Both now call `ctx.report_progress()` from inside each individual transfer's own coroutine right as it finishes, not after the whole concurrent batch resolves, so a caller that supplied a progressToken sees a live stream of updates spread across the call's duration instead of one final burst. The two tools' messages aren't identical: `download_folder` knows its file count upfront (a single non-recursive listing), so it reports a real `total` and a message like `"12/217: report.pdf: ok"`. `sync_folder` doesn't know the total ahead of time (recursive descent discovers files level by level), so it always passes `total=None` and reports a running count with a message like `"readme.txt: download_ok"` — no "N/total" prefix. Progress is file-count based, not byte-size, for both
|
|
1327
|
+
**Background:** Both tools previously ran silently for their entire duration — the 226s `download_folder` call above returned nothing until the very end, with no indication to the caller of whether it was working or hung. Both now call `ctx.report_progress()` from inside each individual transfer's own coroutine right as it finishes, not after the whole concurrent batch resolves, so a caller that supplied a progressToken sees a live stream of updates spread across the call's duration instead of one final burst. The two tools' messages aren't identical: `download_folder` knows its file count upfront (a single non-recursive listing), so it reports a real `total` and a message like `"12/217: report.pdf: ok"`. `sync_folder` doesn't know the total ahead of time (recursive descent discovers files level by level), so it always passes `total=None` and reports a running count with a message like `"readme.txt: download_ok"` — no "N/total" prefix. Progress is file-count based, not byte-size, for both — neither tool's Drive listing fetched a `size` field at the time this was written, and a Workspace file's exported size is unknown until after the export completes, so an accurate byte total wasn't available upfront. #352 (see TC-D255) later added bytes transferred so far to the message text as supplementary context, without changing this primary file-count metric. `sync_folder`'s dry-run mode never transfers anything, so it never reports progress either. `ctx.report_progress()` itself is wrapped in a try/except at both call sites (PR #351 review) — a failed notification (e.g. a dropped session) no longer downgrades an already-successful transfer to a reported failure.
|
|
1328
1328
|
|
|
1329
1329
|
**Note:** `notifications/progress` is a protocol-level message, not part of the tool's JSON response — whether it's visible during this QA pass depends on whether the MCP client surfaces raw progress notifications in the transcript. The exact per-item call count, `total`, and message content are already asserted against a mocked `ctx` in `tests/drive/test_transfer.py::TestDownloadFolder::test_reports_progress_as_files_complete` and `TestSyncFolderRecursive::test_reports_progress_for_each_transfer_not_after_the_whole_batch`/`test_dry_run_reports_no_progress`. If the client doesn't surface progress notifications, this check can only confirm the call still completes normally with the notification calls in place.
|
|
1330
1330
|
|
|
@@ -1350,6 +1350,33 @@ download_folder scratch→/tmp/qa-progress-316/ export_format=txt completed norm
|
|
|
1350
1350
|
|
|
1351
1351
|
---
|
|
1352
1352
|
|
|
1353
|
+
### TC-D255: `download_folder`/`sync_folder` progress messages add bytes transferred so far as supplementary context (issue #352)
|
|
1354
|
+
|
|
1355
|
+
**Background:** TC-D199 (#316) noted progress was file-count-based only, with byte-size progress tracked separately as #352 — "one 2GB file completing looks identical, progress-wise, to one 2KB file completing." Fixed without changing the primary `progress`/`total` metric (still file-count-based in both tools — a byte total isn't always knowable upfront, since Drive omits `size` entirely for Workspace files until their export actually completes): the message text now appends bytes transferred so far as supplementary context. `download_folder`'s Drive listing now also fetches `size`, so when every candidate in a call has a known size (no Workspace export in the batch) the message shows an accurate upfront total, e.g. `"12/217, 4823001/98234112 bytes: report.pdf: ok"`; if any candidate's size is unknown, it falls back to a denominator-less running count, e.g. `"12/217, 4823001 bytes so far: report.pdf: ok"`. `sync_folder` never has a knowable upfront byte total (recursive descent discovers files level by level, same reason it already has no file-count total per TC-D199) — its message always uses the running-count form, e.g. `"readme.txt: upload_ok, 40231 bytes so far"`. Unit-tested deterministically against a mocked `ctx` in `tests/drive/test_transfer.py::TestDownloadFolder::test_progress_message_falls_back_to_running_bytes_when_sizes_unknown`/`test_progress_message_includes_byte_total_when_sizes_known` and `TestSyncFolderRecursive::test_progress_message_includes_running_bytes_transferred`; this live check confirms the message text against a real API call.
|
|
1356
|
+
|
|
1357
|
+
**Note:** Same protocol-level caveat as TC-D199 — `notifications/progress` isn't part of the tool's JSON response, so visibility depends on whether this QA client sets a `progressToken`. If it doesn't, this check can only confirm the call still completes normally with the new byte-counting logic in place (no exception from the added `int(f["size"])` parsing, etc.).
|
|
1358
|
+
|
|
1359
|
+
**Setup**
|
|
1360
|
+
In `{FOLDER_ID}`, ensure at least 3 non-Workspace files exist (so `download_folder`'s upfront byte total is exercised).
|
|
1361
|
+
|
|
1362
|
+
**Prompt**
|
|
1363
|
+
> "Download all files from {FOLDER_ID} to `/tmp/qa-progress-352/`"
|
|
1364
|
+
|
|
1365
|
+
**Checks**
|
|
1366
|
+
- If progress notifications are visible in the client: each message includes a byte count alongside the file-count prefix, e.g. "2/5, 1234/50000 bytes: notes.txt: ok"
|
|
1367
|
+
- Regardless of notification visibility: the call completes normally and `downloaded`/`size_bytes` are correct
|
|
1368
|
+
|
|
1369
|
+
**Teardown**
|
|
1370
|
+
Remove `/tmp/qa-progress-352/`.
|
|
1371
|
+
|
|
1372
|
+
**Result (2026-09-13) ✅ PASS (no-progress-notification path; blocking findings sent back separately)** — Ran against an isolated scratch folder (not `{FOLDER_ID}`, which currently has no non-Workspace files — avoids dragging fixture pollution into a destructive test) containing 3 fresh binary files (5/7/9 bytes). `download_folder` completed normally: `downloaded: ["a.bin", "b.bin", "c.bin"]`, `size_bytes: 21` — matches the real total (5+7+9), confirming the byte-tracking is correct end-to-end even though raw `notifications/progress` wasn't surfaced through this MCP client path (same caveat as TC-D199). `tests/drive/test_transfer.py` (132 tests) passes. Scratch folder trashed as teardown.
|
|
1373
|
+
|
|
1374
|
+
Code review surfaced 3 blocking findings on this PR's own new code (sent back to Dev, not re-verified here yet): (1) the new `p.stat().st_size` call in `_sync_level`'s upload path sits inside the same try/except as the Drive write, so a stat() failure after a successful upload is misreported as a failure with no `fileId` — unlike the established restamp-failure pattern; (2) `download_folder`'s `if bytes_total_known and total_bytes_expected:` truthy-checks the byte total instead of checking `is not None`, so an all-zero-byte-file batch silently loses the accurate-total message form; (3) `test_progress_message_includes_byte_total_when_sizes_known`'s fake downloader writes a fixed 5 bytes regardless of declared size, so the test never actually verifies the accumulated-bytes numerator, only that the (correct) declared-size denominator appears in some message. Two non-blocking findings filed as #740 (candidates-tuple positional fragility, pre-existing convention) and #741 (structured `progress`/`total` fields never carrying byte data, a design question for the maintainer).
|
|
1375
|
+
|
|
1376
|
+
**Result (2026-09-13) ✅ PASS (re-verification, fix `5a52476`)** — All 3 findings fixed as one commit: (1) the `p.stat()` call now has its own try/except reporting `fileId` on failure, matching the restamp-failure pattern, with a new dedicated unit test (`test_upload_stat_failure_after_successful_write_reports_orphan_fileId`, monkeypatched `Path.stat`); (2)+(3) a shared `_format_bytes_note(so_far, total)` helper (checked via `is not None`) now backs both `download_folder` and `_sync_level`, and the byte-total test's fake downloader now writes each candidate's own real declared size (5/7, not a fixed 5) with assertions on the actual per-completion messages, not just denominator presence. Re-ran live post-`/mcp reconnect`: (a) the original 3-file scratch-folder download still returns `size_bytes: 21` correctly; (b) a fresh scratch folder with 2 genuine 0-byte files — the exact edge case finding 2 was about — downloads cleanly with `size_bytes: 0`, no exception. `tests/drive/test_transfer.py` (133 tests) passes. Both scratch folders trashed as teardown.
|
|
1377
|
+
|
|
1378
|
+
---
|
|
1379
|
+
|
|
1353
1380
|
### TC-D200: `download_folder` — two Drive files with the same name no longer race or double-count (PR #351 review) ⚠️ local-filesystem
|
|
1354
1381
|
|
|
1355
1382
|
**Background:** QA's TC-D198 pass live-reproduced a correctness bug in the concurrency fix: `download_folder`'s candidate-collection loop checked `skip_if_exists` against the pre-transfer filesystem state for every Drive file before any download started. Drive allows two files with the same name (distinct IDs) in one folder — the local filesystem doesn't — so two same-named files both passed the check and were queued into the same concurrent batch, racing to write the identical local path. The prior sequential implementation was accidentally safe here (each file's existence check ran only after the previous file had fully written). Fixed by deduping candidates by destination path as they're collected: the first file claims the path, later files with the same destination are recorded under `failed` with an explanatory "duplicate filename" error instead of being queued to write. Unit-tested deterministically (`tests/drive/test_transfer.py::TestDownloadFolder::test_duplicate_drive_filenames_do_not_race_or_double_count`); this live check confirms the fix against the exact fixture-drift scenario QA's TC-D198 run hit.
|
|
@@ -208,7 +208,7 @@ No new tools. Same shape as v0.8.1 — stabilize on defects that surfaced since
|
|
|
208
208
|
|
|
209
209
|
**Sheets hardening** _(triaged out of `backlog` 2026-09-11 — see the "Backlog triage" note below)_
|
|
210
210
|
- [x] `update_sheet_properties`/dimension-tool hardening + dedup follow-ups from PR #321's review ([#323](https://github.com/khuisman/mcp-gee-sweet/issues/323)) (PR #734)
|
|
211
|
-
- [
|
|
211
|
+
- [x] `update_borders` hardening + dedup follow-ups from PR #325's review ([#330](https://github.com/khuisman/mcp-gee-sweet/issues/330)) (PR #738)
|
|
212
212
|
- [ ] No tool clears a data validation rule, and no tool exposes a range's numeric `sheetId` ([#365](https://github.com/khuisman/mcp-gee-sweet/issues/365))
|
|
213
213
|
- [ ] `add_data_validation`: validate the `values` count/shape against `condition_type` before the API call ([#366](https://github.com/khuisman/mcp-gee-sweet/issues/366))
|
|
214
214
|
- [ ] Dedupe `_get_sheet_id`/`_get_sheet_index` lookup logic; add happy-path test coverage ([#442](https://github.com/khuisman/mcp-gee-sweet/issues/442))
|
|
@@ -234,9 +234,12 @@ No new tools. Same shape as v0.8.1 — stabilize on defects that surfaced since
|
|
|
234
234
|
- [ ] `TestIsolatedDepthRunGlyph` asserts request shape, not rendered nesting outcome (PR #711) ([#715](https://github.com/khuisman/mcp-gee-sweet/issues/715))
|
|
235
235
|
- [ ] `style_doc_range` has no `font_family` parameter — can't apply monospace to an existing range ([#720](https://github.com/khuisman/mcp-gee-sweet/issues/720))
|
|
236
236
|
- [x] Extract a shared helper for the isolated-bullet-run zero-tab anchor mechanic (`emitter.py` ↔ `style.py`); harden its regression test (`lane-a`) ([#727](https://github.com/khuisman/mcp-gee-sweet/issues/727)) (PR #735)
|
|
237
|
+
- [ ] `doc_to_ast.py`'s Courier-New soft-break reversal is per-run, not per-paragraph — mismatched-style edge case can emit malformed inline code with an embedded newline (PR #730 follow-up) ([#732](https://github.com/khuisman/mcp-gee-sweet/issues/732))
|
|
237
238
|
|
|
238
239
|
**Drive hardening & dedup** _(triaged out of `backlog` 2026-09-11)_
|
|
239
|
-
- [
|
|
240
|
+
- [x] `download_folder`/`sync_folder` progress notifications: report bytes transferred, not just file count ([#352](https://github.com/khuisman/mcp-gee-sweet/issues/352)) (PR #739)
|
|
241
|
+
- [ ] `download_folder`'s `candidates` tuple: fragile positional access across consumer sites, could be a dataclass (PR #739 follow-up) ([#740](https://github.com/khuisman/mcp-gee-sweet/issues/740))
|
|
242
|
+
- [ ] `download_folder`: opt-in flag to report byte-based `progress`/`total` in `report_progress`'s structured fields (default stays file-count for consistency) (PR #739 follow-up, decision resolved) ([#741](https://github.com/khuisman/mcp-gee-sweet/issues/741))
|
|
240
243
|
- [ ] Unify the two progress-counter idioms in `transfer.py` (nonlocal vs. list-box) ([#354](https://github.com/khuisman/mcp-gee-sweet/issues/354))
|
|
241
244
|
- [ ] Extend notifications/progress to the remaining `asyncio.gather`-based multi-call tools ([#355](https://github.com/khuisman/mcp-gee-sweet/issues/355))
|
|
242
245
|
- [ ] Expose starred state via `get_file_metadata`/`list_files` — `star_file`/`unstar_file` (#139) set it but nothing reads it back ([#388](https://github.com/khuisman/mcp-gee-sweet/issues/388))
|
|
@@ -247,11 +250,14 @@ No new tools. Same shape as v0.8.1 — stabilize on defects that surfaced since
|
|
|
247
250
|
- [ ] Extend the `_GOOGLE_DOC_MIME` sweep to remaining hardcoded-literal and comparison sites (#412 follow-up) ([#544](https://github.com/khuisman/mcp-gee-sweet/issues/544))
|
|
248
251
|
- [ ] `refactor(drive)`: dedupe `mime_type` quote-escaping and list-files response mapping in `files.py` ([#578](https://github.com/khuisman/mcp-gee-sweet/issues/578))
|
|
249
252
|
- [x] `list_folders`/`list_spreadsheets` no-parent + no-`DRIVE_FOLDER_ID` path is unbounded across all drives, no `max_results` (`lane-a`) ([#718](https://github.com/khuisman/mcp-gee-sweet/issues/718)) (PR #736)
|
|
253
|
+
- [ ] `download_file` trailing-slash guard: fail-fast ordering, dead `os.altsep` clause, raw `NotADirectoryError` surface (PR #722 follow-up) ([#724](https://github.com/khuisman/mcp-gee-sweet/issues/724))
|
|
254
|
+
- [ ] Deduplicate the `max_results` clamp expression, hand-copied 8x across `drive/files.py` with inconsistent caps (PR #736 follow-up) ([#737](https://github.com/khuisman/mcp-gee-sweet/issues/737))
|
|
250
255
|
|
|
251
256
|
**Calendar hardening** _(triaged out of `backlog` 2026-09-11)_
|
|
252
257
|
- [ ] `list_calendar_acl` pagination fix (#460) needs a response-size cap, loop safety bound, and partial-failure handling ([#615](https://github.com/khuisman/mcp-gee-sweet/issues/615))
|
|
253
258
|
- [ ] `list_all_events` concurrency cap: per-invocation only, no env override ([#626](https://github.com/khuisman/mcp-gee-sweet/issues/626))
|
|
254
259
|
- [ ] `_shape_event`: `get_event` still duplicates it, no null-guard, no kwarg-collision guard ([#627](https://github.com/khuisman/mcp-gee-sweet/issues/627))
|
|
260
|
+
- [ ] `find_free_slots`/`list_all_events`: unify duplicated id-to-summary lookup, align empty-string fallback (PR #725 follow-up) ([#726](https://github.com/khuisman/mcp-gee-sweet/issues/726))
|
|
255
261
|
|
|
256
262
|
**Testing** _(triaged out of `backlog` 2026-09-11)_
|
|
257
263
|
- [ ] Duplicate fake-Sheets-service test scaffolding in `test_helpers.py` ([#392](https://github.com/khuisman/mcp-gee-sweet/issues/392))
|
{mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/src/mcp_gee_sweet/tools/drive/transfer.py
RENAMED
|
@@ -121,6 +121,25 @@ def _restamp_failure_result(file_id: str, exc: Exception) -> dict[str, Any]:
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
|
|
124
|
+
def _format_bytes_note(so_far: int, total: int | None) -> str:
|
|
125
|
+
"""Progress-message byte-count suffix shared by download_folder's
|
|
126
|
+
_download_one and _sync_level's _run_one_with_progress (#352 QA review,
|
|
127
|
+
finding #3 — these were previously duplicated with different shapes despite
|
|
128
|
+
an inline comment claiming they shared "the same principle"). `total` is
|
|
129
|
+
the accurate upfront byte total when every candidate's size is known ahead
|
|
130
|
+
of time (download_folder only — sync_folder never has one, recursive
|
|
131
|
+
descent discovers files level by level), or None otherwise. Checked via
|
|
132
|
+
`is not None`, not truthiness — a genuine all-zero-byte total (e.g. a
|
|
133
|
+
batch of only empty files) must still render as 'N/0 bytes' rather than
|
|
134
|
+
silently falling back to the less precise running-count form (finding #2:
|
|
135
|
+
the original per-site checks each truthy-tested the total instead)."""
|
|
136
|
+
if total is not None:
|
|
137
|
+
return f", {so_far}/{total} bytes"
|
|
138
|
+
if so_far:
|
|
139
|
+
return f", {so_far} bytes so far"
|
|
140
|
+
return ""
|
|
141
|
+
|
|
142
|
+
|
|
124
143
|
async def _upload_local_file(
|
|
125
144
|
drive_service,
|
|
126
145
|
local_path: str,
|
|
@@ -345,6 +364,7 @@ async def _sync_level(
|
|
|
345
364
|
folders_skipped: list[str],
|
|
346
365
|
ctx: Context,
|
|
347
366
|
progress_count: list[int],
|
|
367
|
+
progress_bytes: list[int],
|
|
348
368
|
) -> int:
|
|
349
369
|
"""
|
|
350
370
|
Sync the files directly inside one Drive-folder/local-dir pair and, if `recursive`,
|
|
@@ -784,6 +804,7 @@ async def _sync_level(
|
|
|
784
804
|
.execute,
|
|
785
805
|
drive_service,
|
|
786
806
|
)
|
|
807
|
+
synced_id = fid
|
|
787
808
|
logger.debug("Synced (update) %s%s → Drive", rel_prefix, name)
|
|
788
809
|
else:
|
|
789
810
|
body: dict[str, Any] = {
|
|
@@ -843,8 +864,28 @@ async def _sync_level(
|
|
|
843
864
|
"name": name,
|
|
844
865
|
**_restamp_failure_result(created["id"], e),
|
|
845
866
|
}
|
|
867
|
+
synced_id = created["id"]
|
|
846
868
|
logger.debug("Synced (create) %s%s → Drive", rel_prefix, name)
|
|
847
|
-
|
|
869
|
+
try:
|
|
870
|
+
size = p.stat().st_size
|
|
871
|
+
except OSError as e:
|
|
872
|
+
# The Drive write above already succeeded — synced_id names a
|
|
873
|
+
# real Drive object even though this stat then failed (e.g.
|
|
874
|
+
# the local file was deleted/moved in the window between the
|
|
875
|
+
# write and this stat). Report fileId alongside the error so
|
|
876
|
+
# it isn't left untracked, mirroring the restamp-failure
|
|
877
|
+
# pattern above (#420/#650) for the same reason (#352 QA
|
|
878
|
+
# review, finding #1).
|
|
879
|
+
return {
|
|
880
|
+
"kind": "upload_fail",
|
|
881
|
+
"name": name,
|
|
882
|
+
"error": (
|
|
883
|
+
f"synced to Drive file {synced_id!r} but failed to stat "
|
|
884
|
+
f"the local file afterward: {e}"
|
|
885
|
+
),
|
|
886
|
+
"fileId": synced_id,
|
|
887
|
+
}
|
|
888
|
+
return {"kind": "upload_ok", "name": name, "bytes": size}
|
|
848
889
|
except Exception as e:
|
|
849
890
|
# Catch-all for the create()/update() calls above — a
|
|
850
891
|
# storageQuotaExceeded HttpError lands here too, so render it
|
|
@@ -937,11 +978,20 @@ async def _sync_level(
|
|
|
937
978
|
# live progress during the wait (the actual complaint in #316).
|
|
938
979
|
if result["kind"] in ("upload_ok", "upload_fail", "download_ok", "download_fail"):
|
|
939
980
|
progress_count[0] += 1
|
|
981
|
+
# progress stays file-count-based with no total (recursive descent
|
|
982
|
+
# means the overall file count isn't known upfront) — bytes
|
|
983
|
+
# transferred so far are supplementary context in the message only
|
|
984
|
+
# (#352). sync_folder never has a reliable upfront byte total
|
|
985
|
+
# (unlike download_folder), so total is always None here.
|
|
986
|
+
bytes_note = ""
|
|
987
|
+
if "bytes" in result:
|
|
988
|
+
progress_bytes[0] += result["bytes"]
|
|
989
|
+
bytes_note = _format_bytes_note(progress_bytes[0], None)
|
|
940
990
|
try:
|
|
941
991
|
await ctx.report_progress(
|
|
942
992
|
progress_count[0],
|
|
943
993
|
None,
|
|
944
|
-
f"{rel_prefix}{result['name']}: {result['kind']}",
|
|
994
|
+
f"{rel_prefix}{result['name']}: {result['kind']}{bytes_note}",
|
|
945
995
|
)
|
|
946
996
|
except Exception:
|
|
947
997
|
# The transfer already succeeded or failed on its own terms —
|
|
@@ -1101,6 +1151,7 @@ async def _sync_level(
|
|
|
1101
1151
|
folders_skipped,
|
|
1102
1152
|
ctx,
|
|
1103
1153
|
progress_count,
|
|
1154
|
+
progress_bytes,
|
|
1104
1155
|
)
|
|
1105
1156
|
|
|
1106
1157
|
# Sibling subfolders are independent — descend into all of them concurrently
|
|
@@ -1763,7 +1814,15 @@ def register(tool):
|
|
|
1763
1814
|
|
|
1764
1815
|
Files transfer concurrently rather than one at a time. If the caller supplied
|
|
1765
1816
|
a progressToken, a `notifications/progress` update is sent as each file
|
|
1766
|
-
finishes (e.g. "12/217: report.pdf: ok").
|
|
1817
|
+
finishes (e.g. "12/217: report.pdf: ok"). The `progress`/`total` values
|
|
1818
|
+
stay file-count-based (a byte total isn't always knowable upfront — Drive
|
|
1819
|
+
only reports `size` for non-Workspace files, so a folder containing
|
|
1820
|
+
Workspace files with export_format set has no reliable total byte count
|
|
1821
|
+
until each export actually completes) — the message text adds bytes
|
|
1822
|
+
transferred so far as supplementary context (#352), e.g.
|
|
1823
|
+
"12/217, 4823001/98234112 bytes: report.pdf: ok" when every candidate's
|
|
1824
|
+
size is known upfront, or "12/217, 4823001 bytes so far: report.pdf: ok"
|
|
1825
|
+
when one or more candidates (a Workspace export) has an unknown size.
|
|
1767
1826
|
|
|
1768
1827
|
Args:
|
|
1769
1828
|
folder_id: The Google Drive folder ID.
|
|
@@ -1794,7 +1853,7 @@ def register(tool):
|
|
|
1794
1853
|
spaces="drive",
|
|
1795
1854
|
includeItemsFromAllDrives=True,
|
|
1796
1855
|
supportsAllDrives=True,
|
|
1797
|
-
fields="files(id, name, mimeType)",
|
|
1856
|
+
fields="files(id, name, mimeType, size)",
|
|
1798
1857
|
pageSize=1000,
|
|
1799
1858
|
orderBy="name",
|
|
1800
1859
|
)
|
|
@@ -1807,12 +1866,17 @@ def register(tool):
|
|
|
1807
1866
|
failed: list[dict[str, str]] = []
|
|
1808
1867
|
total_bytes = 0
|
|
1809
1868
|
|
|
1810
|
-
|
|
1869
|
+
# size is None for a Workspace file (Drive omits the field entirely — export
|
|
1870
|
+
# size isn't known until the export itself completes) or if Drive simply
|
|
1871
|
+
# didn't report it; every other candidate's size is known upfront from this
|
|
1872
|
+
# same listing call, at no extra cost (#352).
|
|
1873
|
+
candidates: list[tuple[str, str, bool, Path, int | None]] = []
|
|
1811
1874
|
claimed_dest: set[str] = set()
|
|
1812
1875
|
for f in results.get("files", []):
|
|
1813
1876
|
fid = f["id"]
|
|
1814
1877
|
fname = f["name"]
|
|
1815
1878
|
fmime = f.get("mimeType", "")
|
|
1879
|
+
fsize = int(f["size"]) if f.get("size") is not None else None
|
|
1816
1880
|
|
|
1817
1881
|
if fmime == "application/vnd.google-apps.folder":
|
|
1818
1882
|
# Non-recursive: subfolders are never descended into or exported.
|
|
@@ -1861,15 +1925,31 @@ def register(tool):
|
|
|
1861
1925
|
continue
|
|
1862
1926
|
claimed_dest.add(dest_key)
|
|
1863
1927
|
|
|
1864
|
-
|
|
1928
|
+
# A Workspace candidate's export target is a different byte size than
|
|
1929
|
+
# fsize (the original document's own stored size, itself usually None
|
|
1930
|
+
# anyway) — never carry fsize through for one, so it's correctly
|
|
1931
|
+
# treated as "unknown" below rather than an inaccurate upfront total.
|
|
1932
|
+
candidates.append(
|
|
1933
|
+
(fid, fname, is_workspace, dest_file, None if is_workspace else fsize)
|
|
1934
|
+
)
|
|
1865
1935
|
|
|
1866
1936
|
total = len(candidates)
|
|
1867
|
-
|
|
1937
|
+
# List-box, not a bare int + nonlocal: matches _sync_level's
|
|
1938
|
+
# progress_count/progress_bytes idiom (#354) for one shared
|
|
1939
|
+
# convention in this file, though nonlocal was already safe here
|
|
1940
|
+
# (no await between read and write) — this is purely a style match.
|
|
1941
|
+
completed = [0]
|
|
1942
|
+
bytes_completed = [0]
|
|
1943
|
+
# A reliable upfront total requires every candidate's size to be known —
|
|
1944
|
+
# one Workspace export with an unknown size makes any "expected total"
|
|
1945
|
+
# inaccurate, so the message falls back to a running count with no
|
|
1946
|
+
# denominator in that case rather than implying a precision it doesn't have.
|
|
1947
|
+
total_bytes_expected = sum(s for *_, s in candidates if s is not None)
|
|
1948
|
+
bytes_total_known = all(s is not None for *_, s in candidates)
|
|
1868
1949
|
|
|
1869
1950
|
async def _download_one(
|
|
1870
1951
|
fid: str, fname: str, is_workspace: bool, dest_file: Path
|
|
1871
1952
|
) -> dict[str, Any]:
|
|
1872
|
-
nonlocal completed
|
|
1873
1953
|
try:
|
|
1874
1954
|
if is_workspace:
|
|
1875
1955
|
target_mime = _EXPORT_MIME[export_format][0]
|
|
@@ -1902,10 +1982,19 @@ def register(tool):
|
|
|
1902
1982
|
# Reported here, inside the per-item coroutine, so updates stream in as
|
|
1903
1983
|
# each concurrent download finishes rather than arriving in one burst
|
|
1904
1984
|
# after asyncio.gather resolves — see #316.
|
|
1905
|
-
completed += 1
|
|
1985
|
+
completed[0] += 1
|
|
1986
|
+
if result["kind"] == "ok":
|
|
1987
|
+
bytes_completed[0] += result["bytes"]
|
|
1988
|
+
# progress/total stay file-count-based (see the docstring's #352 note);
|
|
1989
|
+
# bytes transferred so far are supplementary context in the message only.
|
|
1990
|
+
bytes_note = _format_bytes_note(
|
|
1991
|
+
bytes_completed[0], total_bytes_expected if bytes_total_known else None
|
|
1992
|
+
)
|
|
1906
1993
|
try:
|
|
1907
1994
|
await ctx.report_progress(
|
|
1908
|
-
completed
|
|
1995
|
+
completed[0],
|
|
1996
|
+
total,
|
|
1997
|
+
f"{completed[0]}/{total}{bytes_note}: {result['name']}: {result['kind']}",
|
|
1909
1998
|
)
|
|
1910
1999
|
except Exception:
|
|
1911
2000
|
# The download already succeeded or failed on its own terms — a
|
|
@@ -1920,7 +2009,9 @@ def register(tool):
|
|
|
1920
2009
|
# Concurrent fan-out, same pattern as _sync_level's _run_one: previously this
|
|
1921
2010
|
# was a sequential `for` loop awaiting one transfer at a time (#316), which
|
|
1922
2011
|
# measured 1.04s/file and scaled linearly with folder size.
|
|
1923
|
-
raw = await asyncio.gather(
|
|
2012
|
+
raw = await asyncio.gather(
|
|
2013
|
+
*(_download_one(*c[:4]) for c in candidates), return_exceptions=True
|
|
2014
|
+
)
|
|
1924
2015
|
|
|
1925
2016
|
for c, o in zip(candidates, raw, strict=True):
|
|
1926
2017
|
if isinstance(o, BaseException):
|
|
@@ -2060,7 +2151,11 @@ def register(tool):
|
|
|
2060
2151
|
If the caller supplied a progressToken, a `notifications/progress` update is
|
|
2061
2152
|
sent as each individual upload/download completes (skips and conflicts don't
|
|
2062
2153
|
emit updates — they're free, not transfers). No update is sent during dry_run,
|
|
2063
|
-
since nothing is transferred.
|
|
2154
|
+
since nothing is transferred. `progress` stays a running file-transfer count
|
|
2155
|
+
with no `total` (recursive descent means the overall file count isn't known
|
|
2156
|
+
upfront) — the message text adds a running total of bytes transferred so far
|
|
2157
|
+
as supplementary context (#352), e.g. "notes.txt: upload_ok, 40231 bytes
|
|
2158
|
+
so far".
|
|
2064
2159
|
|
|
2065
2160
|
Args:
|
|
2066
2161
|
folder_id: Google Drive folder ID to sync against.
|
|
@@ -2191,6 +2286,7 @@ def register(tool):
|
|
|
2191
2286
|
folders_skipped,
|
|
2192
2287
|
ctx,
|
|
2193
2288
|
[0],
|
|
2289
|
+
[0],
|
|
2194
2290
|
)
|
|
2195
2291
|
|
|
2196
2292
|
result: dict[str, Any] = {
|
|
@@ -1320,6 +1320,85 @@ class TestSyncFolderRecursive:
|
|
|
1320
1320
|
assert any("a.txt" in m for m in messages)
|
|
1321
1321
|
assert any("b.txt" in m for m in messages)
|
|
1322
1322
|
|
|
1323
|
+
async def test_progress_message_includes_running_bytes_transferred(self, tmp_path):
|
|
1324
|
+
"""#352: sync_folder's progress/total stay file-count-based with no total
|
|
1325
|
+
(recursive descent means the overall count isn't known upfront) — the
|
|
1326
|
+
message text adds a running total of bytes transferred so far as
|
|
1327
|
+
supplementary context."""
|
|
1328
|
+
(tmp_path / "a.txt").write_text("hi") # 2 bytes
|
|
1329
|
+
(tmp_path / "b.txt").write_text("bye!") # 4 bytes
|
|
1330
|
+
fs = _FakeDriveFS({"root": []})
|
|
1331
|
+
ctx = self._ctx(fs)
|
|
1332
|
+
|
|
1333
|
+
result = await _transfer_tools["sync_folder"](
|
|
1334
|
+
folder_id="root",
|
|
1335
|
+
local_path=str(tmp_path),
|
|
1336
|
+
direction="upload",
|
|
1337
|
+
ctx=ctx,
|
|
1338
|
+
)
|
|
1339
|
+
assert set(result["uploaded"]) == {"a.txt", "b.txt"}
|
|
1340
|
+
messages = [c.args[2] for c in ctx.report_progress.await_args_list]
|
|
1341
|
+
assert all(m.endswith("bytes so far") for m in messages)
|
|
1342
|
+
# progress/total (args[0]/args[1]) are unaffected — still file-count-based
|
|
1343
|
+
# with no total, per the docstring's own documented Progress behavior.
|
|
1344
|
+
for c in ctx.report_progress.await_args_list:
|
|
1345
|
+
assert c.args[1] is None
|
|
1346
|
+
# Running total accumulates across both uploads (2 then 6, in whichever
|
|
1347
|
+
# order the concurrent gather completes them).
|
|
1348
|
+
assert any("6 bytes so far" in m for m in messages)
|
|
1349
|
+
|
|
1350
|
+
async def test_upload_stat_failure_after_successful_write_reports_orphan_fileId(
|
|
1351
|
+
self, tmp_path, monkeypatch
|
|
1352
|
+
):
|
|
1353
|
+
"""#352 QA review, finding #1: the new bytes-reporting `p.stat()` call
|
|
1354
|
+
used to sit inside the same try/except that covers the Drive create()/
|
|
1355
|
+
update() calls above it. If the local file is deleted/moved in the
|
|
1356
|
+
window between the Drive write succeeding and this stat() call, the
|
|
1357
|
+
exception fell into the enclosing except and reported upload_fail with
|
|
1358
|
+
no fileId — unlike the restamp-failure branch a few lines above
|
|
1359
|
+
(#420/#650), which deliberately reports fileId so a genuinely-created
|
|
1360
|
+
Drive object isn't left untracked. The stat() call now has its own
|
|
1361
|
+
try/except mirroring that pattern."""
|
|
1362
|
+
local_file = tmp_path / "a.txt"
|
|
1363
|
+
local_file.write_text("hi")
|
|
1364
|
+
fs = _FakeDriveFS({"root": []})
|
|
1365
|
+
ctx = self._ctx(fs)
|
|
1366
|
+
|
|
1367
|
+
real_stat = Path.stat
|
|
1368
|
+
|
|
1369
|
+
def _flaky_stat(self, *args, **kwargs):
|
|
1370
|
+
# Raise only once the fake Drive write has actually landed —
|
|
1371
|
+
# simulates the local file vanishing in the window between the
|
|
1372
|
+
# Drive write succeeding and the post-write size stat(), without
|
|
1373
|
+
# having to guess how many earlier stat() calls (e.g. the
|
|
1374
|
+
# pre-upload mtime read) happen first.
|
|
1375
|
+
if self == local_file and fs.created_files:
|
|
1376
|
+
raise OSError("No such file or directory")
|
|
1377
|
+
return real_stat(self, *args, **kwargs)
|
|
1378
|
+
|
|
1379
|
+
monkeypatch.setattr(Path, "stat", _flaky_stat)
|
|
1380
|
+
|
|
1381
|
+
result = await _transfer_tools["sync_folder"](
|
|
1382
|
+
folder_id="root",
|
|
1383
|
+
local_path=str(tmp_path),
|
|
1384
|
+
direction="upload",
|
|
1385
|
+
ctx=ctx,
|
|
1386
|
+
)
|
|
1387
|
+
|
|
1388
|
+
# The Drive write genuinely succeeded before the stat() failed.
|
|
1389
|
+
assert len(fs.created_files) == 1
|
|
1390
|
+
assert result["uploaded"] == []
|
|
1391
|
+
assert len(result["failed"]) == 1
|
|
1392
|
+
entry = result["failed"][0]
|
|
1393
|
+
assert entry["name"] == "a.txt"
|
|
1394
|
+
assert "failed to stat the local file afterward" in entry["error"]
|
|
1395
|
+
assert entry["fileId"] == "new-file-1"
|
|
1396
|
+
# A genuine Drive-side change still earns a cache invalidation, the same
|
|
1397
|
+
# as a real upload_ok (mirrors the restamp-failure case above).
|
|
1398
|
+
ctx.request_context.lifespan_context.drive_folder_cache.mark_dirty.assert_called_once_with(
|
|
1399
|
+
"root"
|
|
1400
|
+
)
|
|
1401
|
+
|
|
1323
1402
|
async def test_dry_run_reports_no_progress(self, tmp_path):
|
|
1324
1403
|
"""dry_run transfers nothing, so no progress update should fire either."""
|
|
1325
1404
|
(tmp_path / "a.txt").write_text("hi")
|
|
@@ -2741,6 +2820,101 @@ class TestDownloadFolder:
|
|
|
2741
2820
|
for c in ctx.report_progress.await_args_list:
|
|
2742
2821
|
assert c.args[1] == 2 # total
|
|
2743
2822
|
|
|
2823
|
+
async def test_progress_message_falls_back_to_running_bytes_when_sizes_unknown(self, tmp_path):
|
|
2824
|
+
"""#352: Drive doesn't report a `size` for Workspace files, so an upfront
|
|
2825
|
+
byte total isn't knowable when export_format is exporting them — the
|
|
2826
|
+
message falls back to a running byte count with no '/total' denominator
|
|
2827
|
+
rather than fabricating one. progress/total (the primary metric) stay
|
|
2828
|
+
file-count-based either way."""
|
|
2829
|
+
svc = MagicMock()
|
|
2830
|
+
svc.files.return_value.list.return_value.execute.return_value = {
|
|
2831
|
+
"files": [
|
|
2832
|
+
{
|
|
2833
|
+
"id": "doc1",
|
|
2834
|
+
"name": "Doc One",
|
|
2835
|
+
"mimeType": "application/vnd.google-apps.document",
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
"id": "doc2",
|
|
2839
|
+
"name": "Doc Two",
|
|
2840
|
+
"mimeType": "application/vnd.google-apps.document",
|
|
2841
|
+
},
|
|
2842
|
+
]
|
|
2843
|
+
}
|
|
2844
|
+
svc.files.return_value.export.return_value.execute.return_value = b"content"
|
|
2845
|
+
ctx = self._ctx(svc)
|
|
2846
|
+
|
|
2847
|
+
result = await _transfer_tools["download_folder"](
|
|
2848
|
+
folder_id="root",
|
|
2849
|
+
local_path=str(tmp_path),
|
|
2850
|
+
export_format="pdf",
|
|
2851
|
+
ctx=ctx,
|
|
2852
|
+
)
|
|
2853
|
+
assert result["failed"] == []
|
|
2854
|
+
messages = [c.args[2] for c in ctx.report_progress.await_args_list]
|
|
2855
|
+
assert all("bytes so far:" in m for m in messages)
|
|
2856
|
+
assert not any(" bytes:" in m for m in messages)
|
|
2857
|
+
for c in ctx.report_progress.await_args_list:
|
|
2858
|
+
assert c.args[1] == 2 # total stays file-count-based
|
|
2859
|
+
|
|
2860
|
+
async def test_progress_message_includes_byte_total_when_sizes_known(
|
|
2861
|
+
self, tmp_path, monkeypatch
|
|
2862
|
+
):
|
|
2863
|
+
"""#352: non-Workspace candidates report `size` in the same Drive listing
|
|
2864
|
+
call, so an accurate upfront byte total is known — the message shows it
|
|
2865
|
+
as 'transferred/total bytes' instead of a denominator-less running count.
|
|
2866
|
+
The fake downloader writes each candidate's own listed size (5 and 7,
|
|
2867
|
+
not a fixed amount for both) so the numerator is checked against the
|
|
2868
|
+
real accumulated total, not just the denominator's presence (#352 QA
|
|
2869
|
+
review, finding #4 — the original version's fixed 5-byte-per-file fake
|
|
2870
|
+
would have passed even if bytes_completed accumulation regressed)."""
|
|
2871
|
+
svc = MagicMock()
|
|
2872
|
+
svc.files.return_value.list.return_value.execute.return_value = {
|
|
2873
|
+
"files": [
|
|
2874
|
+
{
|
|
2875
|
+
"id": "bin1",
|
|
2876
|
+
"name": "a.bin",
|
|
2877
|
+
"mimeType": "application/octet-stream",
|
|
2878
|
+
"size": "5",
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
"id": "bin2",
|
|
2882
|
+
"name": "b.bin",
|
|
2883
|
+
"mimeType": "application/octet-stream",
|
|
2884
|
+
"size": "7",
|
|
2885
|
+
},
|
|
2886
|
+
]
|
|
2887
|
+
}
|
|
2888
|
+
sizes = {"bin1": 5, "bin2": 7}
|
|
2889
|
+
svc.files.return_value.get_media.side_effect = lambda fileId: MagicMock(fileId=fileId)
|
|
2890
|
+
|
|
2891
|
+
class _FakeDownloader:
|
|
2892
|
+
def __init__(self, fh, request):
|
|
2893
|
+
self._fh = fh
|
|
2894
|
+
self._size = sizes[request.fileId]
|
|
2895
|
+
|
|
2896
|
+
def next_chunk(self):
|
|
2897
|
+
self._fh.write(b"x" * self._size)
|
|
2898
|
+
return None, True
|
|
2899
|
+
|
|
2900
|
+
monkeypatch.setattr(transfer_module, "MediaIoBaseDownload", _FakeDownloader)
|
|
2901
|
+
ctx = self._ctx(svc)
|
|
2902
|
+
|
|
2903
|
+
result = await _transfer_tools["download_folder"](
|
|
2904
|
+
folder_id="root",
|
|
2905
|
+
local_path=str(tmp_path),
|
|
2906
|
+
ctx=ctx,
|
|
2907
|
+
)
|
|
2908
|
+
assert result["failed"] == []
|
|
2909
|
+
assert result["size_bytes"] == 12
|
|
2910
|
+
by_completed = {c.args[0]: c.args[2] for c in ctx.report_progress.await_args_list}
|
|
2911
|
+
assert set(by_completed) == {1, 2}
|
|
2912
|
+
# First completion (whichever file finishes first) reports its own real
|
|
2913
|
+
# size against the fixed total; second (final) completion reports the
|
|
2914
|
+
# real accumulated total, not a fixed/guessed value.
|
|
2915
|
+
assert by_completed[1] in ("1/2, 5/12 bytes: a.bin: ok", "1/2, 7/12 bytes: b.bin: ok")
|
|
2916
|
+
assert by_completed[2].startswith("2/2, 12/12 bytes:")
|
|
2917
|
+
|
|
2744
2918
|
async def test_duplicate_drive_filenames_do_not_race_or_double_count(self, tmp_path):
|
|
2745
2919
|
"""PR #351 review, live-reproduced: Drive allows two files with the same
|
|
2746
2920
|
name (distinct IDs) in one folder; the local filesystem doesn't. The old
|
{mcp_gee_sweet-0.9.1.dev45 → mcp_gee_sweet-0.9.1.dev53}/.claude/commands/cleanup-worktrees.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|