mcp-gee-sweet 0.9.2.dev327__tar.gz → 0.9.2.dev330__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.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/PKG-INFO +1 -1
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/doc-revision-export.md +1 -1
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/local-file-access-policy.md +2 -2
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/docs_content.md +27 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/drive_transfer.md +59 -3
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/sheets_read.md +20 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/roadmap.md +3 -2
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/content.py +6 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/markdown_export.py +5 -2
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/transfer.py +31 -77
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/gmail.py +10 -2
- mcp_gee_sweet-0.9.2.dev330/src/mcp_gee_sweet/tools/response_limits.py +250 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/sheets/data.py +12 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/test_transfer.py +45 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_response_limits.py +120 -0
- mcp_gee_sweet-0.9.2.dev327/src/mcp_gee_sweet/tools/response_limits.py +0 -125
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/cleanup-worktrees.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/merge-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/notify-kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/notify-partner.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/orchestrator.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/prep-for-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/qa-kickoff.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/release.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/retro.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/roadmap-status.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/start-worktree.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/team-member.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/verify-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/settings.json +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/amy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/aziz.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/bob.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/dev.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/joy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/qa.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.dockerignore +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.github/dependabot.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.github/workflows/ci.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.github/workflows/docs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.github/workflows/publish-dev.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.github/workflows/release.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.gitignore +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.pre-commit-config.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/.python-version +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/CHANGELOG.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/CLAUDE.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/CODE_OF_CONDUCT.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/CONTRIBUTING.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/Dockerfile +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/LICENSE +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/Makefile +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/SECURITY.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docker-compose.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/assets/logo.png +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/auth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/client-setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/configuration.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-async-tool-execution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-cache-invalidation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-chart-theming.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-comments-first-class.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-composite-tools.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-condition-type-docstring-generation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-converted-doc-change-detection.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-dev-team.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-docs-formatting.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-fork.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-gmail-domain.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-grid-data-size-cap.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-local-fs-test-harness.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-pillow-image-dependency.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-prompt-qa-role.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-publishing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-release-docs-roles.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-repositioning.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-review-finding-ticket-bar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-supports-all-drives-lint-check.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-sync-folder-recursion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-testing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-tool-error-visibility.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/role-file-history.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/blockquote-representation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/borderless-table-columns.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/doc-to-markdown.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/docs-ast-pipeline.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/effectiveformat-spike.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/heading-anchor-resolution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/markdown-support.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/module-history.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/oauth-reauthorize-from-tool-call.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/phase3-theme-system.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/sse-consent-off-event-loop.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/known-limitations.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/notes-read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc137-inline-hr-no-block-ancestor.html +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc144-anchor-in-table-cell.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc145-anchor-on-first-element.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures.template.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/gmail-test-plan.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/operations.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/playwright_oauth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/.gitkeep +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-02.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-14.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-17.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-18.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-21-sheets-delete-clear.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-28.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04-docs.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04-infra.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-09-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/retro-v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/retro-v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/run.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/runs/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/runs/v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/runs/v0.8.1.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/runs/v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/calendar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/docs_layout.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/docs_style.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/docs_tables.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/drive_activity.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/drive_files.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/drive_sharing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/gmail.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/infra.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/sheets_charts.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/sheets_mgmt.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/sheets_write.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/style-guide.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/tools.md +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/mkdocs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/pyproject.toml +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/pyrightconfig.json +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/scripts/check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/scripts/gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/scripts/lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/scripts/oauth_setup.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/scripts/qa_cancel_insert_local_images.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/scripts/qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/scripts/setup_team.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/scripts/write_team_mcp_configs.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/server.json +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/.env.template +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/http_transport.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/server.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/calendar.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/ast_to_markdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/doc_to_ast.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/html_parser.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/images.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/files.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/mime_types.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/pagination.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/test_activity.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/test_files.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/test_sharing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/fakes.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/integration/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/integration/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/integration/test_local_fs_harness.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/sheets/test_data.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/sheets/test_helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/sheets/test_structure.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_calendar.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_comments.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_content.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_core.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_editing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_images.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_layout.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_markdown_export.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_revision_export.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_style.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_tables.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_gmail.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_mime_types.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_server.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_server_json.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/tests/test_team_mcp_configs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: mcp-gee-sweet
|
|
3
|
-
Version: 0.9.2.
|
|
3
|
+
Version: 0.9.2.dev330
|
|
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
|
{mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/doc-revision-export.md
RENAMED
|
@@ -103,7 +103,7 @@ Measured across two imports of the same DOCX:
|
|
|
103
103
|
- `revisions.list` returns at most 200 revisions per page by default (discovery document), and
|
|
104
104
|
`list_revisions` read only the first page. It now pages through every revision via the same
|
|
105
105
|
`_list_revisions` helper `sync_folder` uses.
|
|
106
|
-
- A Doc `local_path` is checked with `
|
|
106
|
+
- A Doc `local_path` is checked with `response_limits.validate_local_destination` before the export, so a bad
|
|
107
107
|
destination fails before the temporary Doc round trip.
|
|
108
108
|
|
|
109
109
|
## Live verification
|
{mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/docs/design/local-file-access-policy.md
RENAMED
|
@@ -128,11 +128,11 @@ Each local read or write gets exactly one check, placed at the narrowest shared
|
|
|
128
128
|
| `create_doc_from_file`, `update_doc_from_file` | `read_text` | `content._read_doc_source_file`, at the top, before `exists()` | read |
|
|
129
129
|
| `import_csv_to_sheet` | `open` | the tool, before `path.open` | read |
|
|
130
130
|
| `send_message`, `create_draft` (attachments) | `read_bytes` | `gmail._read_attachment_bytes` (already in a worker thread; the `ValueError` propagates out of `_compose_raw` as today's missing-field error does) | read |
|
|
131
|
-
| `download_file` | `_write_atomically`, `mkdir` | the tool, before `
|
|
131
|
+
| `download_file` | `_write_atomically`, `mkdir` | the tool, before `response_limits.validate_local_destination` (that helper `stat`s parents) | write |
|
|
132
132
|
| `download_folder`, `sync_folder` (downloads) | `mkdir`, `_write_atomically` per file | the destination root in the tool, before `mkdir`, plus each file (§6) | write |
|
|
133
133
|
| `sync_folder` (uploads, `use_checksum` hashing, `stat`) | `MediaFileUpload`, `_local_md5`, `stat` | each local entry where `_sync_level` builds `local_map` / `local_folder_map` (§6) | read |
|
|
134
134
|
| `sync_folder`, `upload_local_folder`, `download_folder`: the `local_path` root | `mkdir` / `iterdir` | the tool, at entry | read for upload-only, write for any direction that can download |
|
|
135
|
-
| 9 tools with the response-cap bypass (`get_sheet_data`, `get_multiple_sheet_data`, `get_multiple_spreadsheet_summary`, `find_in_spreadsheet`, `get_doc_content`, `find_in_doc`, `get_doc_as_markdown`, `get_message`, `get_thread`) and `sync_folder(result_local_path=)` | `mkdir`, `_write_atomically` | `response_limits.write_capped_result_to_disk`, at the top, before `
|
|
135
|
+
| 9 tools with the response-cap bypass (`get_sheet_data`, `get_multiple_sheet_data`, `get_multiple_spreadsheet_summary`, `find_in_spreadsheet`, `get_doc_content`, `find_in_doc`, `get_doc_as_markdown`, `get_message`, `get_thread`) and `sync_folder(result_local_path=)` | `mkdir`, `_write_atomically` | `response_limits.write_capped_result_to_disk`, at the top, before `validate_local_destination`. Check the final `dest` after the directory join too, since `default_filename` changes the target. For `result_local_path`, also `sync_folder`'s own early `validate_local_destination(result_local_path, ...)`, which runs before any transfer and before `local_path`'s `mkdir` (#990) | write |
|
|
136
136
|
|
|
137
137
|
`sync_folder`'s existing "`result_local_path` inside `local_path`" `ValueError` stays as it is and runs after the policy check. The two are independent.
|
|
138
138
|
|
|
@@ -4278,3 +4278,30 @@ Comment text is plain text, so no line of it may render as Markdown structure, a
|
|
|
4278
4278
|
**Result (2026-10-11) ✅ PASS (case as written), ❌ sent back on probes — Kit, PR #991 round 2 (`de8143e`).** Ran with the export under this job's scratch dir instead of `/tmp`. Every check passed for the case's own content: body `<p>- a</p>`, `<p># h</p>`, `<p>---</p>`, `<p>tab indent</p>`; the comment's eight lines joined by `<br />` in one paragraph, then `<p>indented *x*</p>`; no `<ul>`/`<ol>`/`<table>`/`<pre>`. Extra probes on the same doc failed: (1) a body paragraph `## Notes` and a comment line `## Notes` each rendered as `<h2>`, and the comment line before it kept a literal `\`, because `_LEADING_SIMPLE_MARKER` matches only a single `#`; (2) `add_doc_comment(quoted_text="Summary\n=== ")` exported `> Summary\` / `> === `, which renders as `<h1>Summary\</h1>` inside the blockquote, because `_LEADING_RULE_LINE` doesn't allow trailing whitespace after `=`. Drive trims trailing whitespace from the end of comment `content` (not from `quoted_text`), and a mid-content `=== ` line is safe because the hard break before it blocks the setext.
|
|
4279
4279
|
|
|
4280
4280
|
**Result (2026-10-11) ✅ PASS — Kit, PR #991 round 3 (`95ba882`).** Ran with the export under this job's scratch dir instead of `/tmp`. Step 3's HTML had no `<ul>`/`<ol>`/`<h1>`/`<table>`/`<pre>`, exactly one `<h2>` (`Comments`) and one `<hr />`. Body: `<p>- a</p>`, `<p># h</p>`, `<p>---</p>`, `<p>tab indent</p>`, `<p>## Notes</p>`. Step 1's comment rendered its nine lines through `## Notes` joined by `<br />` with no literal `\`, then `<p>indented *x*</p>`. Step 1a's `quoted_text` came back as `Summary\n=== ` (trailing spaces kept) and rendered as `<blockquote><p>Summary<br />===</p></blockquote>`, no `<h1>`.
|
|
4281
|
+
|
|
4282
|
+
### TC-DOC218: A trailing-slash `local_path` naming a missing directory creates it; one naming an existing file is refused (issue #990) ⚠️ local-filesystem
|
|
4283
|
+
Every capped tool's `local_path` goes through the shared `write_capped_result_to_disk`. Before #990, `dir/` for a directory that didn't exist yet was written as a *file* named `dir`, and `file/` over an existing file overwrote it.
|
|
4284
|
+
|
|
4285
|
+
**Setup:** `rm -rf /tmp/qa-990 && mkdir -p /tmp/qa-990/linkdir && printf 'keep me' > /tmp/qa-990/blocker && ln -s /tmp/qa-990/missing /tmp/qa-990/dangling && ln -s /tmp/qa-990/elsewhere /tmp/qa-990/linkdir/{DOC_ID}.md`. Confirm `/tmp/qa-990/new`, `/tmp/qa-990/missing`, and `/tmp/qa-990/elsewhere` don't exist.
|
|
4286
|
+
|
|
4287
|
+
**Steps**
|
|
4288
|
+
1. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/new/sub/")`
|
|
4289
|
+
2. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/blocker/")`
|
|
4290
|
+
3. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/blocker/sub/")`
|
|
4291
|
+
4. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/dangling/")`
|
|
4292
|
+
5. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/linkdir/")`
|
|
4293
|
+
|
|
4294
|
+
**Checks**
|
|
4295
|
+
- Step 1 returns `local_path` `/tmp/qa-990/new/sub/{DOC_ID}.md`. `/tmp/qa-990/new/sub` is a directory (`test -d`), not a file, and the `.md` file in it holds raw Markdown whose byte size equals `bytes_written`
|
|
4296
|
+
- Step 2 raises "local_path '/tmp/qa-990/blocker/' has a non-directory path component at '/tmp/qa-990/blocker'; local_path ends in a path separator or '.', which makes it a directory target…", and `/tmp/qa-990/blocker` still holds `keep me`
|
|
4297
|
+
- Step 3 raises a `ValueError` "…has a non-directory path component at '/tmp/qa-990/blocker'" (a file further up the path), not a raw `NotADirectoryError` (PR #1000 QA round 1)
|
|
4298
|
+
- Step 4 raises a `ValueError` "…has a symlink to a missing target at '/tmp/qa-990/dangling'", not a raw `FileExistsError`, and `/tmp/qa-990/missing` still doesn't exist (PR #1000 QA round 1)
|
|
4299
|
+
- Step 5 raises a `ValueError` "…has a symlink to a missing target at '/tmp/qa-990/linkdir/{DOC_ID}.md'", and `/tmp/qa-990/elsewhere` still doesn't exist: the file joined onto a directory gets the same checks as a file `local_path` (PR #1000 QA round 2)
|
|
4300
|
+
|
|
4301
|
+
**Cleanup:** `rm -rf /tmp/qa-990`
|
|
4302
|
+
|
|
4303
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 1 (`12bd36a`).** Ran under this job's scratch dir instead of `/tmp`. Step 1 returned `local_path` `<dir>/new/sub/{DOC_ID}.md`, `bytes_written` 96; `new/sub` is a directory and the file is 96 bytes. Step 2 raised the expected "ends in a separator, so it must be a directory, but … is an existing file" error and `blocker` still holds `keep me`. Probes outside the case (sent back): `<file>/sub/` with `<file>` a regular file raises a raw `NotADirectoryError`, and `<dangling symlink>/` raises `FileExistsError`, not the new `ValueError`.
|
|
4304
|
+
|
|
4305
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 2 (`695d0f9`).** Ran under this job's scratch dir instead of `/tmp`. Step 1 returned `<dir>/new/sub/{DOC_ID}.md`, `bytes_written` 96, and `new/sub` is a directory. Step 2 raised "…has a non-directory path component at '<dir>/blocker'; local_path ends in a path separator or '.', which makes it a directory target…", and `blocker` still holds `keep me`. Step 3 raised the `ValueError` naming `<dir>/blocker`. Step 4 raised "…has a symlink to a missing target at '<dir>/dangling'", and `missing` was not created.
|
|
4306
|
+
|
|
4307
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 3 (`290f5bc`).** Ran under this job's scratch dir instead of `/tmp`. Steps 1–4 matched round 2 (step 1 wrote `<dir>/new/sub/{DOC_ID}.md`, 96 bytes; steps 2–4 raised the expected `ValueError`s; `blocker` still holds `keep me`; `missing` not created). Step 5 raised "…has a symlink to a missing target at '<dir>/linkdir/{DOC_ID}.md'", and `elsewhere` was not created.
|
|
@@ -614,7 +614,7 @@ Unit tests: `tests/drive/test_transfer.py -k TestDownloadFile` — 10 passed (in
|
|
|
614
614
|
|
|
615
615
|
### TC-D274: `download_file` — trailing-slash `local_path` over an existing regular file fails before any Drive request (#827, #855) ⚠️ local-filesystem
|
|
616
616
|
|
|
617
|
-
**Background:** #827 moved the trailing-slash clash check ahead of the Drive metadata call, and #855 folded it into a single preflight (`_validate_local_destination`). A bad destination should now fail without spending a Drive request. A file ID that doesn't exist is the live stand-in for "no Drive request": if the call reaches Drive it gets a 404 `HttpError`, and if the preflight rejects it first the path error comes back.
|
|
617
|
+
**Background:** #827 moved the trailing-slash clash check ahead of the Drive metadata call, and #855 folded it into a single preflight (`_validate_local_destination`, now the shared `response_limits.validate_local_destination`, #990). A bad destination should now fail without spending a Drive request. A file ID that doesn't exist is the live stand-in for "no Drive request": if the call reaches Drive it gets a 404 `HttpError`, and if the preflight rejects it first the path error comes back.
|
|
618
618
|
|
|
619
619
|
**Setup:** `rm -rf /tmp/qa-d274 && mkdir -p /tmp/qa-d274 && printf x > /tmp/qa-d274/clash`
|
|
620
620
|
|
|
@@ -2220,8 +2220,8 @@ revision separate (#814), so the diff below uses one.
|
|
|
2220
2220
|
|
|
2221
2221
|
### TC-D282: Doc revision `local_path`, and arguments that don't apply to the file's type (issue #959) ⚠️ local-filesystem ⚠️ requires-oauth
|
|
2222
2222
|
|
|
2223
|
-
**Setup:** `mkdir -p /tmp/qa-959` (
|
|
2224
|
-
|
|
2223
|
+
**Setup:** `mkdir -p /tmp/qa-959` (before #990, a `local_path` naming a missing directory, even
|
|
2224
|
+
with a trailing `/`, was written as a file of that name; TC-D288 covers the missing-directory case).
|
|
2225
2225
|
`create_doc(title="qa-959-args", content="<p>Saved to disk</p>")`, then
|
|
2226
2226
|
`list_revisions` on it and on `TEST_SPREADSHEET_ID`, taking each one's last `revisionId`.
|
|
2227
2227
|
|
|
@@ -2281,6 +2281,62 @@ is the Shared Drive.
|
|
|
2281
2281
|
|
|
2282
2282
|
---
|
|
2283
2283
|
|
|
2284
|
+
### TC-D288: `export_revision` — a trailing-slash `local_path` naming a missing directory creates it, not a file (issue #990) ⚠️ local-filesystem ⚠️ requires-oauth
|
|
2285
|
+
|
|
2286
|
+
Reproduces PR #988 round 1's observation: with the directory absent, `local_path="<dir>/"`
|
|
2287
|
+
wrote a 15-byte *file* named after it. Uses `/tmp/qa-990-rev`, not TC-DOC218's `/tmp/qa-990`, so
|
|
2288
|
+
parallel shards don't delete each other's scratch dir.
|
|
2289
|
+
|
|
2290
|
+
**Setup:** `rm -rf /tmp/qa-990-rev`. `create_doc(title="qa-990", content="<p>Saved to disk</p>")`, then
|
|
2291
|
+
`list_revisions(file_id="<doc-id>")` and take the last `revisionId`.
|
|
2292
|
+
|
|
2293
|
+
**Tool calls**
|
|
2294
|
+
1. `export_revision(file_id="<doc-id>", revision_id="<doc rev>", local_path="/tmp/qa-990-rev/")`
|
|
2295
|
+
|
|
2296
|
+
**Checks**
|
|
2297
|
+
- Call 1 returns `local_path` `/tmp/qa-990-rev/<doc-id>-r<doc rev>.md`, not `/tmp/qa-990-rev`.
|
|
2298
|
+
- `/tmp/qa-990-rev` is a directory (`test -d`), and the `.md` file in it holds `Saved to disk`.
|
|
2299
|
+
|
|
2300
|
+
**Teardown:** `rm -rf /tmp/qa-990-rev`; `delete_file(file_id="<doc-id>")`.
|
|
2301
|
+
|
|
2302
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 1 (`12bd36a`).** Ran under this job's scratch dir instead of `/tmp`. With the directory absent, call 1 returned `local_path` `<dir>/<doc-id>-r3.md`, `bytes_written` 15; `<dir>` is a directory and the file holds `Saved to disk`.
|
|
2303
|
+
|
|
2304
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 2 (`695d0f9`).** Same as round 1: call 1 returned `<dir>/<doc-id>-r3.md`, `bytes_written` 15; `<dir>` is a directory holding `Saved to disk`.
|
|
2305
|
+
|
|
2306
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 3 (`290f5bc`).** Ran under this job's scratch dir instead of `/tmp`. Call 1 returned `<dir>/<doc-id>-r3.md`, `bytes_written` 15; `<dir>` is a directory holding `Saved to disk`.
|
|
2307
|
+
|
|
2308
|
+
---
|
|
2309
|
+
|
|
2310
|
+
### TC-D287: `sync_folder` — a `result_local_path` over an existing file is refused before any transfer (PR #1000 QA round 1, issue #990) ⚠️ local-filesystem
|
|
2311
|
+
|
|
2312
|
+
Before the fix, a real sync ran every upload and download, then failed at the final manifest
|
|
2313
|
+
write, and the error named `local_path` (`sync_folder`'s other parameter).
|
|
2314
|
+
|
|
2315
|
+
**Setup:** `rm -rf /tmp/qa-990-sync && mkdir -p /tmp/qa-990-sync/src && printf 'upload me' > /tmp/qa-990-sync/src/a.txt && printf 'keep me' > /tmp/qa-990-sync/blocker`.
|
|
2316
|
+
`create_folder(name="qa-990-sync")`, note the returned ID as `<folder-id>`.
|
|
2317
|
+
|
|
2318
|
+
**Tool calls**
|
|
2319
|
+
1. `sync_folder(folder_id="<folder-id>", local_path="/tmp/qa-990-sync/src", direction="upload", result_local_path="/tmp/qa-990-sync/blocker/")`
|
|
2320
|
+
2. `list_files(folder_id="<folder-id>")`
|
|
2321
|
+
3. `sync_folder(folder_id="<folder-id>", local_path="/tmp/qa-990-sync/new/deep/sync", result_local_path="/tmp/qa-990-sync/blocker/")`
|
|
2322
|
+
|
|
2323
|
+
**Checks**
|
|
2324
|
+
- Call 1 raises "result_local_path '/tmp/qa-990-sync/blocker/' has a non-directory path component
|
|
2325
|
+
at '/tmp/qa-990-sync/blocker'; result_local_path ends in a path separator…". The message names
|
|
2326
|
+
`result_local_path` throughout, never `local_path`.
|
|
2327
|
+
- Call 2 returns no files: `a.txt` was not uploaded (a real, non-`dry_run` sync).
|
|
2328
|
+
- `/tmp/qa-990-sync/blocker` still holds `keep me`.
|
|
2329
|
+
- Call 3 raises the same error, and `/tmp/qa-990-sync/new` doesn't exist: the missing `local_path`
|
|
2330
|
+
isn't created for a refused call (PR #1000 QA round 2).
|
|
2331
|
+
|
|
2332
|
+
**Teardown:** `rm -rf /tmp/qa-990-sync`; `delete_file(file_id="<folder-id>")`.
|
|
2333
|
+
|
|
2334
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 2 (`695d0f9`).** Ran under this job's scratch dir instead of `/tmp`. Call 1 raised "result_local_path '<dir>/blocker/' has a non-directory path component at '<dir>/blocker'; result_local_path ends in a path separator or '.'…", naming `result_local_path` throughout. Call 2 returned `[]`, and `blocker` still holds `keep me`. Probe outside the case (sent back): the same call with a missing `local_path` of `<dir>/new/deep/sync` raised the same error but had already created `new/deep/sync`.
|
|
2335
|
+
|
|
2336
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 3 (`290f5bc`).** Ran under this job's scratch dir instead of `/tmp`. Call 1 raised the `result_local_path` error, call 2 returned `[]`, and call 3 raised the same error with no `new/` directory created. `blocker` still holds `keep me`.
|
|
2337
|
+
|
|
2338
|
+
---
|
|
2339
|
+
|
|
2284
2340
|
### TC-D256: `download_folder`'s `progress_unit='bytes'` feeds byte totals into the structured progress fields, with a file-count fallback when sizes aren't fully known (issue #741) ⚠️ local-filesystem
|
|
2285
2341
|
|
|
2286
2342
|
**Background:** TC-D255 (#352) confirmed the message text carries bytes-transferred-so-far as supplementary context, but the structured `progress`/`total` fields passed to `ctx.report_progress()` stayed file-count-based unconditionally — a client rendering a progress bar from those fields alone (not parsing message text) sees the same one-tick-per-file granularity regardless of individual file size. #741's maintainer decision: keep file-count as the default (`progress_unit='files'`), but add an opt-in `progress_unit='bytes'` so a caller can request byte-based structured fields when every candidate's size is known upfront (same `bytes_total_known` gate TC-D255's message-fallback logic already uses) — falling back to file-count when it isn't, since there's no reliable byte total to report against then. `sync_folder` is explicitly out of scope for this decision (recursive descent never has a full upfront size list). Unit-tested deterministically against a mocked `ctx` in `tests/drive/test_transfer.py::TestDownloadFolder::test_progress_unit_bytes_reports_byte_totals_when_sizes_known`/`test_progress_unit_bytes_falls_back_to_files_when_sizes_unknown`; this live check confirms both branches against a real API call.
|
|
@@ -809,3 +809,23 @@ Write 10 cells (`Empty!A1:A10`) each containing a ~4,785-character string with a
|
|
|
809
809
|
**Result (2026-09-04) ⏭️ SKIP**
|
|
810
810
|
Stale: references retired 40,000 cap; ~42k-char 10-match response no longer trips the 1,000,000 default. Cap + local_path mechanism covered by TC-R03c/d. Skipped rather than add fixture churn for no signal
|
|
811
811
|
|
|
812
|
+
|
|
813
|
+
---
|
|
814
|
+
|
|
815
|
+
### TC-R44: A sheet name with `/` or `..` writes inside the chosen `local_path` directory (PR #1000 QA round 2, issue #990) ⚠️ local-filesystem
|
|
816
|
+
`get_sheet_data` names its file `<sheet>_data.json`. Before the fix, a tab named `../x` wrote `x_data.json` beside the chosen directory, and a tab named `a/b` created a subdirectory.
|
|
817
|
+
|
|
818
|
+
**Setup:** `rm -rf /tmp/qa-990-sheet`. `create_sheet(spreadsheet_id={SPREADSHEET_ID}, title="../x")` and `create_sheet(spreadsheet_id={SPREADSHEET_ID}, title="a/b")`.
|
|
819
|
+
|
|
820
|
+
**Steps**
|
|
821
|
+
1. `get_sheet_data(spreadsheet_id={SPREADSHEET_ID}, sheet="../x", local_path="/tmp/qa-990-sheet/out/")`
|
|
822
|
+
2. `get_sheet_data(spreadsheet_id={SPREADSHEET_ID}, sheet="a/b", local_path="/tmp/qa-990-sheet/out/")`
|
|
823
|
+
|
|
824
|
+
**Checks**
|
|
825
|
+
- Step 1 returns `local_path` `/tmp/qa-990-sheet/out/.._x_data.json`
|
|
826
|
+
- Step 2 returns `local_path` `/tmp/qa-990-sheet/out/a_b_data.json`
|
|
827
|
+
- `ls -A /tmp/qa-990-sheet` lists only `out`, and `ls -A /tmp/qa-990-sheet/out` lists exactly `.._x_data.json` and `a_b_data.json` (no `a/` subdirectory)
|
|
828
|
+
|
|
829
|
+
**Cleanup:** `delete_sheet` both tabs; `rm -rf /tmp/qa-990-sheet`
|
|
830
|
+
|
|
831
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 3 (`290f5bc`).** Ran under this job's scratch dir instead of `/tmp`. Used `TEST_SPREADSHEET_ID`. Step 1 returned `<dir>/out/.._x_data.json` (117 bytes), step 2 `<dir>/out/a_b_data.json` (116 bytes). `<dir>` lists only `out`, and `out` lists exactly those two files. Both tabs deleted afterward.
|
|
@@ -282,8 +282,9 @@ Same shape as v0.8.1 — stabilize on defects that surfaced since v0.9.0 shipped
|
|
|
282
282
|
- [x] `download_file`: one pre-flight `local_path` check before any Drive call, for both trailing-slash and plain branches, naming the blocking path (#724/#827 follow-up; on-deck, `good first issue`) (PR #855) ([#836](https://github.com/khuisman/mcp-gee-sweet/issues/836))
|
|
283
283
|
- [x] `sync_folder`: a failed mid-stream download leaves a truncated local file with a fresh mtime, which the next sync uploads over the intact Drive copy — download to a temp file and `os.replace` on success; check `download_file`/`download_folder` too. Found by code review, not yet observed live (lane-a, after #814 since both touch `_run_one`) ([#844](https://github.com/khuisman/mcp-gee-sweet/issues/844)) (PR #884)
|
|
284
284
|
- [x] **Bundle:** Drive transfer follow-ups (`download_file` preflight + `_write_atomically`), one PR closing [#874](https://github.com/khuisman/mcp-gee-sweet/issues/874), [#887](https://github.com/khuisman/mcp-gee-sweet/issues/887) — lane A (PR #1001) ([#895](https://github.com/khuisman/mcp-gee-sweet/issues/895))
|
|
285
|
-
- [
|
|
286
|
-
- [ ]
|
|
285
|
+
- [x] `upload_local_file`/`sync_folder`: compressed files upload with the inner MIME type (`x.csv.gz` → `text/csv`). Lane A, after #895 (both touch `transfer.py` uploads); community PR #934 closed unmerged 2026-10-10 (PR #1002) ([#930](https://github.com/khuisman/mcp-gee-sweet/issues/930))
|
|
286
|
+
- [ ] `sync_folder`: `size_bytes` never counts uploaded bytes, so an upload-only sync reports 0 (found in PR #1002's QA, observed live). Lane A, after #930 ([#1003](https://github.com/khuisman/mcp-gee-sweet/issues/1003))
|
|
287
|
+
- [ ] Share one HttpError reason-check helper across the `storageQuotaExceeded` sites. Lane A, after #1003; community PR #921 closed unmerged 2026-10-10 ([#916](https://github.com/khuisman/mcp-gee-sweet/issues/916))
|
|
287
288
|
|
|
288
289
|
**Calendar hardening** _(triaged out of `backlog` 2026-09-11)_
|
|
289
290
|
- [ ] **Bundle:** Calendar follow-ups from PR #912, one PR closing [#915](https://github.com/khuisman/mcp-gee-sweet/issues/915), [#918](https://github.com/khuisman/mcp-gee-sweet/issues/918) — lane B, after #892 ([#985](https://github.com/khuisman/mcp-gee-sweet/issues/985))
|
{mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/content.py
RENAMED
|
@@ -1157,6 +1157,9 @@ def register(tool):
|
|
|
1157
1157
|
file_id: The Google Drive file ID of the document.
|
|
1158
1158
|
local_path: Optional local filesystem path (file or directory) to write the
|
|
1159
1159
|
result to instead of returning it inline. Bypasses the response-size cap.
|
|
1160
|
+
A path ending in '/' is a directory, created if missing. A file in place
|
|
1161
|
+
of a parent directory, or at a path ending in '/', raises ValueError; an
|
|
1162
|
+
existing file at a plain file path is replaced.
|
|
1160
1163
|
Same caveat as download_file/download_folder: this path is resolved on the
|
|
1161
1164
|
*server's* filesystem, not the caller's.
|
|
1162
1165
|
|
|
@@ -1540,6 +1543,9 @@ def register(tool):
|
|
|
1540
1543
|
max_results: Maximum number of matches to return (default 50).
|
|
1541
1544
|
local_path: Optional local filesystem path (file or directory) to write the
|
|
1542
1545
|
result to instead of returning it inline. Bypasses the response-size cap.
|
|
1546
|
+
A path ending in '/' is a directory, created if missing. A file in place
|
|
1547
|
+
of a parent directory, or at a path ending in '/', raises ValueError; an
|
|
1548
|
+
existing file at a plain file path is replaced.
|
|
1543
1549
|
Same caveat as download_file/download_folder: this path is resolved on the
|
|
1544
1550
|
*server's* filesystem, not the caller's.
|
|
1545
1551
|
|
|
@@ -308,8 +308,11 @@ def register(tool):
|
|
|
308
308
|
instead of returning it inline. The file holds the raw Markdown
|
|
309
309
|
text (UTF-8), byte-identical to the inline markdown field,
|
|
310
310
|
including the comments section when include_comments is True.
|
|
311
|
-
A directory path writes <doc_id>.md inside it
|
|
312
|
-
|
|
311
|
+
A directory path writes <doc_id>.md inside it; a path ending in
|
|
312
|
+
'/' is a directory, created if missing. A file in place of a parent
|
|
313
|
+
directory, or at a path ending in '/', raises ValueError; an existing
|
|
314
|
+
file at a plain file path is replaced.
|
|
315
|
+
Bypasses the response-size cap.
|
|
313
316
|
|
|
314
317
|
Returns:
|
|
315
318
|
Dictionary with doc_id, title, and markdown (the full Markdown
|
{mcp_gee_sweet-0.9.2.dev327 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/transfer.py
RENAMED
|
@@ -20,7 +20,14 @@ from ...auth import execute_in_thread, thread_http
|
|
|
20
20
|
from ..atomic_write import _check_destination, _is_partial_download, _write_atomically
|
|
21
21
|
from ..mime_types import guess_mime_type
|
|
22
22
|
from ..pagination import iter_pages
|
|
23
|
-
from ..response_limits import
|
|
23
|
+
from ..response_limits import (
|
|
24
|
+
_blocked_destination_error,
|
|
25
|
+
_is_dangling_symlink,
|
|
26
|
+
_local_dir_blocker,
|
|
27
|
+
enforce_response_size_cap,
|
|
28
|
+
validate_local_destination,
|
|
29
|
+
write_capped_result_to_disk,
|
|
30
|
+
)
|
|
24
31
|
from . import _SA_QUOTA_ERROR, _escape_drive_query_mime_type
|
|
25
32
|
|
|
26
33
|
logger = logging.getLogger(__name__)
|
|
@@ -272,75 +279,6 @@ def _restamp_failure_result(file_id: str, exc: Exception) -> dict[str, Any]:
|
|
|
272
279
|
}
|
|
273
280
|
|
|
274
281
|
|
|
275
|
-
def _local_dir_blocker(path: Path) -> Path | None:
|
|
276
|
-
"""The nearest existing component of `path` (itself, then its parents), if
|
|
277
|
-
it isn't a directory; None when `path` can be created with mkdir -p.
|
|
278
|
-
|
|
279
|
-
A dangling symlink counts as existing: mkdir can't create a directory over it.
|
|
280
|
-
"""
|
|
281
|
-
for p in (path, *path.parents):
|
|
282
|
-
if p.exists() or p.is_symlink():
|
|
283
|
-
return None if p.is_dir() else p
|
|
284
|
-
return None
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
def _is_dangling_symlink(path: Path) -> bool:
|
|
288
|
-
return path.is_symlink() and not path.exists()
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
def _blocked_destination_error(
|
|
292
|
-
local_path: str, blocker: Path, ending_made_dir: bool = False
|
|
293
|
-
) -> ValueError:
|
|
294
|
-
"""The ValueError for a local_path that `blocker` stops from being written.
|
|
295
|
-
|
|
296
|
-
`ending_made_dir`: `blocker` is the destination itself, and only local_path's
|
|
297
|
-
ending (a trailing separator, '.' or '..') made it a directory target. The
|
|
298
|
-
message then says so, since dropping that ending writes a file there instead.
|
|
299
|
-
"""
|
|
300
|
-
if _is_dangling_symlink(blocker):
|
|
301
|
-
return ValueError(
|
|
302
|
-
f"local_path {local_path!r} has a symlink to a missing target at {str(blocker)!r}"
|
|
303
|
-
)
|
|
304
|
-
message = f"local_path {local_path!r} has a non-directory path component at {str(blocker)!r}"
|
|
305
|
-
if ending_made_dir:
|
|
306
|
-
message += (
|
|
307
|
-
"; local_path ends in a path separator or '.', which makes it a directory "
|
|
308
|
-
"target. Remove that ending to write a file at that path instead"
|
|
309
|
-
)
|
|
310
|
-
return ValueError(message)
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
def _validate_local_destination(local_path: str, *, is_dir: bool = False) -> tuple[Path, bool]:
|
|
314
|
-
"""Reject a blocked local destination before making any Drive request.
|
|
315
|
-
|
|
316
|
-
The destination must be a directory when `is_dir` is set or local_path ends
|
|
317
|
-
in a separator, '.' or '..' (Path() drops a trailing '/.', so a check on the
|
|
318
|
-
Path alone would read 'dir/.' as a file named 'dir'). Otherwise it's a file
|
|
319
|
-
and only its parents must be directories: an existing regular file there may
|
|
320
|
-
still be replaced, but a dangling symlink is refused, the same as a dangling
|
|
321
|
-
symlink at a directory target (#874).
|
|
322
|
-
"""
|
|
323
|
-
dest = Path(local_path)
|
|
324
|
-
ending_made_dir = os.path.basename(local_path) in ("", ".", "..")
|
|
325
|
-
wants_dir = is_dir or ending_made_dir
|
|
326
|
-
if wants_dir:
|
|
327
|
-
blocker = _local_dir_blocker(dest)
|
|
328
|
-
elif _is_dangling_symlink(dest):
|
|
329
|
-
blocker = dest
|
|
330
|
-
else:
|
|
331
|
-
blocker = _local_dir_blocker(dest.parent)
|
|
332
|
-
if blocker is not None:
|
|
333
|
-
raise _blocked_destination_error(
|
|
334
|
-
local_path, blocker, ending_made_dir and not is_dir and blocker == dest
|
|
335
|
-
)
|
|
336
|
-
if not wants_dir and not dest.is_dir():
|
|
337
|
-
# A FIFO, socket, or unwritable file at a file destination fails here,
|
|
338
|
-
# not after a Workspace export's round trip (PR #1001 QA round 1). An
|
|
339
|
-
# existing directory without a trailing separator is a directory target.
|
|
340
|
-
_check_destination(dest)
|
|
341
|
-
return dest, wants_dir
|
|
342
|
-
|
|
343
|
-
|
|
344
282
|
def _mkdir_or_blocker(path: Path) -> Path | None:
|
|
345
283
|
"""mkdir -p `path`, or return the component in its way (_local_dir_blocker).
|
|
346
284
|
|
|
@@ -2549,7 +2487,11 @@ def register(tool):
|
|
|
2549
2487
|
local_path: Docs only. Local path to write the Markdown to instead of
|
|
2550
2488
|
returning it inline (the raw Markdown text, UTF-8). A
|
|
2551
2489
|
directory path writes <file_id>-r<revision_id>.md inside
|
|
2552
|
-
it
|
|
2490
|
+
it; a path ending in '/' is a directory, created if
|
|
2491
|
+
missing. A file in place of a parent directory, or at a
|
|
2492
|
+
path ending in '/', raises ValueError before the export; an
|
|
2493
|
+
existing file at a plain file path is replaced. Bypasses the
|
|
2494
|
+
response-size cap.
|
|
2553
2495
|
|
|
2554
2496
|
Returns:
|
|
2555
2497
|
Sheets: revisionId, modifiedTime, sheet name, range, and values as a
|
|
@@ -2601,7 +2543,7 @@ def register(tool):
|
|
|
2601
2543
|
if local_path:
|
|
2602
2544
|
# Before the export: a bad destination would otherwise fail only
|
|
2603
2545
|
# after the temporary Doc round trip (PR #988 QA round 1).
|
|
2604
|
-
|
|
2546
|
+
validate_local_destination(local_path)
|
|
2605
2547
|
from ..docs.markdown_export import export_doc_revision_markdown
|
|
2606
2548
|
|
|
2607
2549
|
exported = await export_doc_revision_markdown(
|
|
@@ -3081,7 +3023,7 @@ def register(tool):
|
|
|
3081
3023
|
"""
|
|
3082
3024
|
drive_service = ctx.request_context.lifespan_context.drive_service
|
|
3083
3025
|
|
|
3084
|
-
dest, wants_dir =
|
|
3026
|
+
dest, wants_dir = validate_local_destination(local_path)
|
|
3085
3027
|
|
|
3086
3028
|
metadata = await execute_in_thread(
|
|
3087
3029
|
drive_service.files()
|
|
@@ -3196,7 +3138,7 @@ def register(tool):
|
|
|
3196
3138
|
plus total 'size_bytes' downloaded.
|
|
3197
3139
|
"""
|
|
3198
3140
|
drive_service = ctx.request_context.lifespan_context.drive_service
|
|
3199
|
-
dest_dir, _ =
|
|
3141
|
+
dest_dir, _ = validate_local_destination(local_path, is_dir=True)
|
|
3200
3142
|
_make_local_dir(dest_dir, local_path)
|
|
3201
3143
|
resolved_dest_dir = dest_dir.resolve()
|
|
3202
3144
|
|
|
@@ -3620,7 +3562,11 @@ def register(tool):
|
|
|
3620
3562
|
sync input on every call, so a result manifest written there
|
|
3621
3563
|
would show up as a new local-only file on the next sync (and
|
|
3622
3564
|
get uploaded to Drive on a real run); raises ValueError if it
|
|
3623
|
-
resolves inside `local_path`.
|
|
3565
|
+
resolves inside `local_path`. A path ending in '/' is a
|
|
3566
|
+
directory, created if missing. A file in place of a parent
|
|
3567
|
+
directory, or at a path ending in '/', raises ValueError; an
|
|
3568
|
+
existing file at a plain file path is replaced. Both checks
|
|
3569
|
+
run before any transfer or local mkdir.
|
|
3624
3570
|
|
|
3625
3571
|
Returns:
|
|
3626
3572
|
uploaded, downloaded, skipped, conflicts, failed lists (relative paths —
|
|
@@ -3655,10 +3601,15 @@ def register(tool):
|
|
|
3655
3601
|
|
|
3656
3602
|
lc = ctx.request_context.lifespan_context
|
|
3657
3603
|
drive_service = lc.drive_service
|
|
3658
|
-
dest_dir, _ =
|
|
3659
|
-
_make_local_dir(dest_dir, local_path)
|
|
3604
|
+
dest_dir, _ = validate_local_destination(local_path, is_dir=True)
|
|
3660
3605
|
|
|
3661
3606
|
if result_local_path:
|
|
3607
|
+
# Before any transfer: a bad destination would otherwise fail only at the
|
|
3608
|
+
# final manifest write, after every upload/download had already run, and
|
|
3609
|
+
# the caller would get no record of them (PR #1000 QA round 1). Before
|
|
3610
|
+
# local_path's mkdir too, so a refused call leaves nothing on disk
|
|
3611
|
+
# (PR #1000 QA round 2).
|
|
3612
|
+
validate_local_destination(result_local_path, local_path_param="result_local_path")
|
|
3662
3613
|
# local_path is also a live input directory this same call scans — unlike
|
|
3663
3614
|
# every other capped tool's local_path (a pure output destination), writing
|
|
3664
3615
|
# the result manifest inside it would make the manifest file itself show up
|
|
@@ -3677,6 +3628,8 @@ def register(tool):
|
|
|
3677
3628
|
"up as a new local-only file on the next sync. Use a separate directory."
|
|
3678
3629
|
)
|
|
3679
3630
|
|
|
3631
|
+
_make_local_dir(dest_dir, local_path)
|
|
3632
|
+
|
|
3680
3633
|
uploaded: list[str] = []
|
|
3681
3634
|
downloaded: list[str] = []
|
|
3682
3635
|
skipped: list[str] = []
|
|
@@ -3729,6 +3682,7 @@ def register(tool):
|
|
|
3729
3682
|
result_local_path,
|
|
3730
3683
|
default_filename=f"{folder_id}_sync_result.json",
|
|
3731
3684
|
manifest_extra={"folder_id": folder_id, "dry_run": dry_run},
|
|
3685
|
+
local_path_param="result_local_path",
|
|
3732
3686
|
)
|
|
3733
3687
|
|
|
3734
3688
|
# recursive=True removes the previous implicit bound (one folder's direct
|
|
@@ -831,7 +831,11 @@ def register(tool):
|
|
|
831
831
|
message_id: The Gmail message ID (from list_messages or get_thread).
|
|
832
832
|
local_path: Optional local filesystem path (file or directory) to write the
|
|
833
833
|
message JSON to instead of returning it inline. Bypasses the
|
|
834
|
-
response-size cap, for messages with very large bodies.
|
|
834
|
+
response-size cap, for messages with very large bodies. A
|
|
835
|
+
path ending in '/' is a directory, created if missing. A file
|
|
836
|
+
in place of a parent directory, or at a path ending in '/',
|
|
837
|
+
raises ValueError; an existing file at a plain file path is
|
|
838
|
+
replaced.
|
|
835
839
|
include_body: When False, fetch only metadata (Gmail's format='metadata'):
|
|
836
840
|
no body is downloaded, and body_plain, body_html, and
|
|
837
841
|
attachments are left out of the result.
|
|
@@ -948,7 +952,11 @@ def register(tool):
|
|
|
948
952
|
thread_id: The Gmail thread ID (from list_threads or a message's thread_id).
|
|
949
953
|
local_path: Optional local filesystem path (file or directory) to write the
|
|
950
954
|
thread JSON to instead of returning it inline. Bypasses the
|
|
951
|
-
response-size cap, for threads with very large bodies.
|
|
955
|
+
response-size cap, for threads with very large bodies. A
|
|
956
|
+
path ending in '/' is a directory, created if missing. A file
|
|
957
|
+
in place of a parent directory, or at a path ending in '/',
|
|
958
|
+
raises ValueError; an existing file at a plain file path is
|
|
959
|
+
replaced.
|
|
952
960
|
include_body: When False, fetch only each message's metadata (Gmail's
|
|
953
961
|
format='metadata'): no body is downloaded, and body_plain,
|
|
954
962
|
body_html, and attachments are left out. Use it to list a
|