mcp-gee-sweet 0.9.1.dev101__tar.gz → 0.9.1.dev103__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/team-roles/kai.md +3 -0
  2. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/PKG-INFO +1 -1
  3. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/docs_content.md +18 -0
  4. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/html_parser.py +137 -7
  5. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_core.py +97 -0
  6. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/cleanup-worktrees.md +0 -0
  7. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/merge-pr.md +0 -0
  8. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/notify-kai.md +0 -0
  9. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/notify-partner.md +0 -0
  10. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/orchestrator.md +0 -0
  11. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/prep-for-pr.md +0 -0
  12. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/qa-kickoff.md +0 -0
  13. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/release.md +0 -0
  14. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/retro.md +0 -0
  15. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/roadmap-status.md +0 -0
  16. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/start-worktree.md +0 -0
  17. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/team-member.md +0 -0
  18. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/commands/verify-pr.md +0 -0
  19. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/settings.json +0 -0
  20. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/team-roles/amy.md +0 -0
  21. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/team-roles/aziz.md +0 -0
  22. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/team-roles/bob.md +0 -0
  23. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/team-roles/dev.md +0 -0
  24. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/team-roles/joy.md +0 -0
  25. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.claude/team-roles/qa.md +0 -0
  26. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.dockerignore +0 -0
  27. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  28. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  29. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  30. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.github/dependabot.yml +0 -0
  31. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.github/workflows/ci.yml +0 -0
  32. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.github/workflows/docs.yml +0 -0
  33. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.github/workflows/publish-dev.yml +0 -0
  34. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.github/workflows/release.yml +0 -0
  35. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.gitignore +0 -0
  36. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.pre-commit-config.yaml +0 -0
  37. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/.python-version +0 -0
  38. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/CHANGELOG.md +0 -0
  39. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/CLAUDE.md +0 -0
  40. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/CODE_OF_CONDUCT.md +0 -0
  41. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/CONTRIBUTING.md +0 -0
  42. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/Dockerfile +0 -0
  43. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/LICENSE +0 -0
  44. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/Makefile +0 -0
  45. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/README.md +0 -0
  46. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/SECURITY.md +0 -0
  47. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docker-compose.yml +0 -0
  48. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/assets/logo.png +0 -0
  49. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/auth.md +0 -0
  50. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/client-setup.md +0 -0
  51. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/configuration.md +0 -0
  52. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-async-tool-execution.md +0 -0
  53. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
  54. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-cache-invalidation.md +0 -0
  55. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-chart-theming.md +0 -0
  56. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-comments-first-class.md +0 -0
  57. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-composite-tools.md +0 -0
  58. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-condition-type-docstring-generation.md +0 -0
  59. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-dev-team.md +0 -0
  60. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-docs-formatting.md +0 -0
  61. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-fork.md +0 -0
  62. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-grid-data-size-cap.md +0 -0
  63. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-local-fs-test-harness.md +0 -0
  64. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
  65. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-pillow-image-dependency.md +0 -0
  66. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-prompt-qa-role.md +0 -0
  67. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-publishing.md +0 -0
  68. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-release-docs-roles.md +0 -0
  69. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-repositioning.md +0 -0
  70. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
  71. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
  72. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-sync-folder-recursion.md +0 -0
  73. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/decision-testing.md +0 -0
  74. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/decisions/index.md +0 -0
  75. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/blockquote-representation.md +0 -0
  76. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/borderless-table-columns.md +0 -0
  77. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/doc-to-markdown.md +0 -0
  78. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/docs-ast-pipeline.md +0 -0
  79. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/effectiveformat-spike.md +0 -0
  80. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/heading-anchor-resolution.md +0 -0
  81. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/image-conversion.md +0 -0
  82. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/index.md +0 -0
  83. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/markdown-support.md +0 -0
  84. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design/phase3-theme-system.md +0 -0
  85. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/design.md +0 -0
  86. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/index.md +0 -0
  87. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/known-limitations.md +0 -0
  88. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/notes-read.md +0 -0
  89. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/README.md +0 -0
  90. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
  91. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
  92. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
  93. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
  94. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
  95. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
  96. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
  97. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
  98. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
  99. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
  100. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
  101. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
  102. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc137-inline-hr-no-block-ancestor.html +0 -0
  103. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
  104. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
  105. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
  106. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc144-anchor-in-table-cell.md +0 -0
  107. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures/tc-doc145-anchor-on-first-element.md +0 -0
  108. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/fixtures.template.md +0 -0
  109. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/operations.yaml +0 -0
  110. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/playwright_oauth.md +0 -0
  111. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/.gitkeep +0 -0
  112. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-06-02.md +0 -0
  113. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-06-14.md +0 -0
  114. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-06-17.md +0 -0
  115. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-06-18.md +0 -0
  116. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
  117. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-06-21-sheets-delete-clear.md +0 -0
  118. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-06-28.md +0 -0
  119. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-07-04-docs.md +0 -0
  120. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
  121. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-07-04-infra.md +0 -0
  122. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
  123. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-07-04.md +0 -0
  124. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/results/2026-09-04.md +0 -0
  125. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/retro-v0.8.0.md +0 -0
  126. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/retro-v0.9.0.md +0 -0
  127. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/run.md +0 -0
  128. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/runs/README.md +0 -0
  129. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/runs/v0.8.0.md +0 -0
  130. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/runs/v0.8.1.md +0 -0
  131. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/runs/v0.9.0.md +0 -0
  132. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/setup.md +0 -0
  133. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/calendar.md +0 -0
  134. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/docs_layout.md +0 -0
  135. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/docs_style.md +0 -0
  136. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/docs_tables.md +0 -0
  137. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/drive_activity.md +0 -0
  138. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/drive_files.md +0 -0
  139. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/drive_sharing.md +0 -0
  140. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/drive_transfer.md +0 -0
  141. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/infra.md +0 -0
  142. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/sheets_charts.md +0 -0
  143. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/sheets_mgmt.md +0 -0
  144. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/sheets_read.md +0 -0
  145. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/qa/tests/sheets_write.md +0 -0
  146. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/roadmap.md +0 -0
  147. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/style-guide.md +0 -0
  148. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/docs/tools.md +0 -0
  149. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/mkdocs.yml +0 -0
  150. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/pyproject.toml +0 -0
  151. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/pyrightconfig.json +0 -0
  152. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/scripts/gen_tool_docs.py +0 -0
  153. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/scripts/oauth_setup.py +0 -0
  154. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/scripts/setup_team.sh +0 -0
  155. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/server.json +0 -0
  156. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/.env.template +0 -0
  157. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/__init__.py +0 -0
  158. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/auth.py +0 -0
  159. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/cache.py +0 -0
  160. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/http_transport.py +0 -0
  161. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/server.py +0 -0
  162. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/__init__.py +0 -0
  163. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/cache.py +0 -0
  164. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/calendar.py +0 -0
  165. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/concurrency.py +0 -0
  166. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
  167. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
  168. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
  169. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/ast_to_markdown.py +0 -0
  170. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
  171. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/content.py +0 -0
  172. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/doc_to_ast.py +0 -0
  173. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
  174. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
  175. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/images.py +0 -0
  176. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
  177. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
  178. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/markdown_export.py +0 -0
  179. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
  180. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
  181. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
  182. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/drive/__init__.py +0 -0
  183. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
  184. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/drive/files.py +0 -0
  185. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
  186. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/drive/transfer.py +0 -0
  187. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/response_limits.py +0 -0
  188. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
  189. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/sheets/data.py +0 -0
  190. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
  191. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
  192. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/__init__.py +0 -0
  193. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/drive/__init__.py +0 -0
  194. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/drive/test_activity.py +0 -0
  195. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/drive/test_files.py +0 -0
  196. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/drive/test_sharing.py +0 -0
  197. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/drive/test_transfer.py +0 -0
  198. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/integration/__init__.py +0 -0
  199. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/integration/conftest.py +0 -0
  200. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/integration/test_local_fs_harness.py +0 -0
  201. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/sheets/__init__.py +0 -0
  202. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/sheets/test_data.py +0 -0
  203. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/sheets/test_helpers.py +0 -0
  204. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/sheets/test_structure.py +0 -0
  205. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_auth.py +0 -0
  206. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_cache.py +0 -0
  207. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_calendar.py +0 -0
  208. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_concurrency.py +0 -0
  209. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_anchors.py +0 -0
  210. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_comments.py +0 -0
  211. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_content.py +0 -0
  212. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_editing.py +0 -0
  213. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_images.py +0 -0
  214. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_indices.py +0 -0
  215. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_layout.py +0 -0
  216. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_markdown_export.py +0 -0
  217. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_named_ranges.py +0 -0
  218. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_style.py +0 -0
  219. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_docs_tables.py +0 -0
  220. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_gen_tool_docs.py +0 -0
  221. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_response_limits.py +0 -0
  222. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_server.py +0 -0
  223. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/tests/test_server_json.py +0 -0
  224. {mcp_gee_sweet-0.9.1.dev101 → mcp_gee_sweet-0.9.1.dev103}/uv.lock +0 -0
@@ -22,6 +22,8 @@ Why this role split exists: any locally-configured MCP server that runs this pro
22
22
 
23
23
  **Pair `good first issue` with on-deck RFD tickets that are genuinely beginner-suitable.** The repo has the standard GitHub `good first issue` label defined but it went unused until 2026-09-16 (first applied to #724). When labeling a well-scoped, self-contained backlog item as on-deck RFD (no lane, per above), also add `good first issue` if it's low-risk, mechanical, and doesn't require a design judgment call — e.g. a handful of explicit, line-numbered cleanups in one file, not a ticket that says "needs a design pass" or spans many call sites. Don't apply it to a lane-labeled ticket (those are claimed by Ash/Jay's automated pickup, not open for outside contribution) or to anything requiring undocumented codebase context to scope correctly.
24
24
 
25
+ **`good first issue` and a lane label (`lane-a`/`lane-b`) are mutually exclusive — never let a ticket carry both.** They're opposite signals: `good first issue` invites outside contribution, a lane label reserves the ticket for that lane's automated pickup. A ticket carrying both is a bug the moment you see it — fix on sight rather than re-deriving from context: if a contributor already claimed it, strip the lane label and pick the lane's actual next-in-order ticket fresh; otherwise drop `good first issue`. Check both directions before applying either label, and again as a pre-flight step when launching a lane (`make lane-a`), since a prior session's mislabel can sit stale in the queue undetected until the lane starts pulling from it. See Retro for the incident that surfaced this (#724).
26
+
25
27
  **A role-routed label (`joy`/`bob`/`aziz`) and a version label are not mutually exclusive — don't let one imply the absence of the other.** They answer different questions: who scopes/does the work, versus whether a release actually depends on it landing. Apply the same release-gate test used for every other ticket: does the *next* targeted release actually need this to ship cleanly? If yes — e.g. a release-process fix Bob owns that the next `/release` run would visibly break without — it gets the version label alongside the person label. If the work is genuinely open-ended with no release tie, it stays version-less regardless of who it's routed to. See Retro for the incident that surfaced this (#602).
26
28
  - Roadmap grooming (`docs/roadmap.md` + whichever roadmap-planning memory is currently active — check the memory index rather than assuming a specific version-numbered file)
27
29
  - Live/manual tool testing — only possible here (or in a QA agent's own worktree, once it's checked out a branch — see `/team-member`)
@@ -38,6 +40,7 @@ Why this role split exists: any locally-configured MCP server that runs this pro
38
40
  Friction Kai typically hits during coordination, and where it goes — see `/retro` for the general ticket-vs-command-decision split:
39
41
 
40
42
  - **Process friction across the team** — another session's role file turned out ambiguous or wrong when actually followed (a stale worktree, a label race, a step that assumed state that wasn't there). Command decision: fix the relevant `.claude/team-roles/*.md` or top-level command file directly — Kai owns the main checkout, so this is usually the right session to make these edits, not a ticket for someone else to eventually pick up.
43
+ - **`good first issue` and a lane label can silently coexist if a prior session's labeling slip isn't caught before a lane launches.** Confirmed 2026-09-20 on #724 — it carried `lane-a` + `good first issue` + `ready-for-development` simultaneously, and a community contributor legitimately claimed it via the bare `good first issue`/RFD signal while it was also sitting in Ash's automated queue. Resolution: the human claim wins. Rule and pre-flight check now spelled out above.
41
44
  - **Roadmap drift** — a shipped PR wasn't checked off in `docs/roadmap.md`, or a version label doesn't match where the work actually landed. Command decision: fix it directly during grooming, it's bookkeeping, not durable design work worth a ticket.
42
45
  - **A present approval label isn't proof it was earned** — git/GitHub attribution can't distinguish the user personally applying a label from any session doing it under the user's own credentials (full writeup: `decision-prompt-qa-role.md`'s label-attribution addendum). Before merging on `qa-approved`/`prompt-qa-approved`, a bare label with no accompanying review comment is a reason to ask, not a reason to trust it as-is.
43
46
  - **Systemic bugs spotted while merging or triaging that don't belong to the ticket at hand** — file a ticket rather than expanding scope on someone else's PR.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: mcp-gee-sweet
3
- Version: 0.9.1.dev101
3
+ Version: 0.9.1.dev103
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
@@ -3603,3 +3603,21 @@ Plus 4 non-blocking cleanup items (finding 3+4 folded, finding 5 folded, finding
3603
3603
  **Result: N/A — unit-test-verified only, per TC-DOC189/TC-D249/TC-D250 convention.** No source HTML makes this fix produce different `get_doc_structure`/rendered output than the un-fixed code — both routes converge on the identical `nestingLevel: 0` result; the only difference is 2 fewer wasted API requests per orphan `<li>` run. `uv run python -m pytest tests/test_docs_core.py -k TestBulletDepthEdgeCases` → 8 passed locally (round 2: 4 original + 4 new from the QA findings above).
3604
3604
 
3605
3605
  **Result (2026-09-19) ✅ PASS — re-verification round on PR #766, Jay.** Both findings closed together: added `_AstParser._open_block(tag, *, resumed, named_style)`, a single setter for all 6 fields listed in finding 2, and routed all 4 call sites (`_resume_interrupted_block`'s resume branch, `<pre>`'s open, `_BLOCK_TAGS`' open, and `handle_data`'s implicit-paragraph open) through it — closing finding 1 as a structural consequence of finding 2's fix rather than as a standalone one-field patch. New test `tests/test_docs_content.py::TestBareTopLevelText::test_implicit_paragraph_open_resets_resumed_flag` reproduces finding 1's exact scenario (`<p>Before<table>...</table>After</p>Bare text`) and was confirmed to fail (`_block_resumed is True`) against the pre-fix code via a scratch-script diff before the fix, then pass after. Full suite green (`uv run python -m pytest` → 1508 passed, 3 skipped).
3606
+
3607
+ ---
3608
+
3609
+ ### TC-DOC195: A resumed block's genuine trailing `&nbsp;` survives instead of vanishing (issue #444) ⚠️ destructive
3610
+
3611
+ **Background:** #402 (TC-DOC138) already keeps a *fresh* `<p>&nbsp;</p>`'s whitespace-only content instead of dropping it, but a block *resumed* after a nested list/table interrupts it (e.g. `<li>Item<ul>...</ul>&nbsp;</li>`) still fell back to the pre-#402 always-drop behavior — a resumed block's whitespace-only flush is normally markup-formatting noise (e.g. the indentation newline between a nested list's `</ul>` and the outer `<li>`'s own `</li>`), not authored content, and the two need to stay distinguishable (see `test_nested_list_via_markdown_preserves_parent_text`). Fixed via a new `_is_formatting_whitespace` check in `html_parser.py`: a resumed segment's whitespace-only text that contains a character outside plain ASCII formatting whitespace (the decoded `\xa0` a `&nbsp;`/`&#160;` becomes — `HTMLParser`'s default `convert_charrefs=True` resolves these before `handle_data` ever sees them, so `handle_entityref`/`handle_charref` can't be used as the signal instead) is recognized as genuinely-authored content and preserved, since no pretty-printer/renderer has a reason to emit a non-breaking space as structural indentation. Deliberately does **not** extend to a *fresh* `<li>`/heading whose only content is `&nbsp;` (e.g. `<li>&nbsp;</li>` between two real siblings) — that's the PR #441 regression #402 itself already excludes, and it's unrelated to whether the character is "authored": lists/headings simply have no blank-line-spacer convention for a standalone empty item (`test_nbsp_only_list_item_still_dropped`/`test_nbsp_only_heading_still_dropped` cover that this stays unchanged). The identical fix also applies to the `<pre>` close-tag handler's own independent fresh/resumed whitespace check (#443) — covered by a unit test only (`test_resumed_pre_trailing_nbsp_preserved`), not a separate live case here, since a nested table inside `<pre>` has no live-observable signal beyond what TC-DOC154's own established pattern and that unit test already confirm deterministically.
3612
+
3613
+ **Prompt**
3614
+ > "Write this HTML to doc {DOC_ID}: `<ul><li>Item<ul><li>Child</li></ul>&nbsp;</li></ul><p>Before<table><tr><td>cell</td></tr></table>&nbsp;</p>`"
3615
+
3616
+ **Checks**
3617
+ - Call succeeds with no API error
3618
+ - `get_doc_structure` shows, in order: bulleted "Item" (depth 0), bulleted "Child" (nested, depth 1), a **third** bulleted paragraph whose text is just the nbsp character at depth 0 — previously this trailing content after the nested list vanished with no trace
3619
+ - "Before" paragraph, then the table, then a final paragraph whose text is just the nbsp character — the resumed `<p>`'s own trailing `&nbsp;` after the nested table also survives, matching the fresh-`<p>&nbsp;</p>` behavior TC-DOC138 already covers
3620
+
3621
+ **Cleanup:** write fixture content back
3622
+
3623
+ **Result (2026-09-20) ✅ PASS — Kit, PR #772.** Round 1's `/code-review high` found 3 blocking issues before this case was run live: (1) a resumed segment's preserved runs could carry an embedded ASCII newline adjacent to the authored `\xa0`/entity content, which the Docs API splits into a spurious extra paragraph regardless of styling (#719) — reproduces with source shaped `<ul><li>Item<ul><li>x</li></ul>\n&nbsp;</li></ul>` (a newline between the nested list's close tag and the entity); (2) `_ASCII_FORMATTING_WHITESPACE` included `\v`/`\f` despite qualifying for the same authored-content reasoning as `\xa0`; (3) the 3-line `is_resumed_authored_whitespace` expression was duplicated verbatim at both call sites (`_emit_block_node` and the `<pre>` close handler). Jay's round-2 fix (`6dbba4d`) added `_strip_formatting_whitespace` (strips formatting-noise characters from preserved runs before insertion, leaving genuine multi-line `<pre>` content untouched), narrowed the whitelist to `" \t\n\r"`, and deduped the shared check into `_is_resumed_authored_whitespace`. Full suite green (`uv run python -m pytest` → 1533 passed, 3 skipped, including 4 new regression tests). Live-verified against the fixture doc: (a) the finding-1 repro (`<ul><li>Item<ul><li>Child</li></ul>\n&nbsp;</li></ul>`) produced exactly 3 body paragraphs with no spurious split; (b) this case's own original prompt, run for the first time this round, matched every stated check exactly.
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import html as html_module
6
- from dataclasses import dataclass
6
+ from dataclasses import dataclass, replace
7
7
  from html.parser import HTMLParser
8
8
 
9
9
  from .ast import BulletItem, Cell, DocNode, Heading, Image, NamedBlock, Paragraph, Row, Run, Table
@@ -39,6 +39,76 @@ _VOID_TAGS = {
39
39
  "wbr",
40
40
  }
41
41
 
42
+ # The literal whitespace characters a markup pretty-printer/renderer can
43
+ # actually emit as structural formatting noise: source indentation (a run of
44
+ # spaces/tabs) or a newline between two tags, plus the "\r" half of a "\r\n"
45
+ # line ending. Used by _is_formatting_whitespace below (#444) to tell that
46
+ # apart from a non-ASCII space character like "\xa0" (the result of decoding
47
+ # "&nbsp;"/"&#160;" — HTMLParser's default convert_charrefs=True resolves
48
+ # these into plain str.isspace()-true characters before handle_data ever
49
+ # sees them, so handle_entityref/handle_charref never fire for ordinary body
50
+ # text and can't be used as the signal instead): no renderer or
51
+ # hand-formatter has a reason to emit a non-breaking space as indentation,
52
+ # so its presence means a human actually typed it. Deliberately excludes
53
+ # "\v"/"\f" (vertical tab / form feed) despite both being ASCII and
54
+ # str.isspace()-true: no pretty-printer emits either as structural
55
+ # whitespace either — the same "nothing legitimate produces this" reasoning
56
+ # that justifies treating "\xa0" as authored applies to these too (PR #772
57
+ # QA round 1, finding 2), so a resumed segment whose only trailing content
58
+ # is a genuinely-typed "\v"/"\f" (e.g. pasted from a terminal) must also
59
+ # survive rather than being silently dropped as if it were noise.
60
+ _ASCII_FORMATTING_WHITESPACE = " \t\n\r"
61
+
62
+
63
+ def _is_formatting_whitespace(text: str) -> bool:
64
+ """True for a non-empty string made up only of the plain ASCII
65
+ whitespace characters a pretty-printer/renderer would emit as
66
+ structural noise — False for text.strip() == "" text that still
67
+ contains something else (e.g. "&nbsp;"'s decoded "\\xa0", or a stray
68
+ "\\v"/"\\f"), which is real, if invisible, authored content instead
69
+ (#444)."""
70
+ return text != "" and all(c in _ASCII_FORMATTING_WHITESPACE for c in text)
71
+
72
+
73
+ def _is_resumed_authored_whitespace(resumed: bool, runs: list[Run | Image], raw_text: str) -> bool:
74
+ """True when a resumed block's segment is non-empty and its full,
75
+ unstripped text is whitespace-only per str.strip() but not made up
76
+ solely of _ASCII_FORMATTING_WHITESPACE characters — i.e. it contains
77
+ something like the decoded "\\xa0" from an authored "&nbsp;" that no
78
+ markup pretty-printer/renderer would emit as indentation noise (#444).
79
+ Shared by _emit_block_node and the <pre> close-tag handler's own
80
+ parallel fresh/resumed whitespace check so the two definitions can't
81
+ drift out of sync the way #417 was filed to prevent for block-open
82
+ state (PR #772 QA round 1, finding 3)."""
83
+ return resumed and bool(runs) and not _is_formatting_whitespace(raw_text)
84
+
85
+
86
+ def _strip_formatting_whitespace(runs: list[Run | Image]) -> list[Run | Image]:
87
+ """Remove _ASCII_FORMATTING_WHITESPACE characters from each Run's text
88
+ in a resumed segment being preserved for its genuinely-authored content
89
+ (#444's _is_resumed_authored_whitespace case). Without this, an
90
+ incidental newline sitting next to the authored content — e.g. the
91
+ indentation between a nested list's closing tag and the "&nbsp;" that
92
+ follows it — would still reach the Docs API as literal inserted text:
93
+ the API splits on any "\\n" into a new paragraph regardless of styling
94
+ (#719), producing a spurious extra paragraph for exactly the segment
95
+ this fix was meant to preserve cleanly (PR #772 QA round 1, finding 1).
96
+ Only ever called on a segment already confirmed non-empty and
97
+ whitespace-only-but-authored, so it can never strip a run down to
98
+ nothing without also having something authored left in a sibling run —
99
+ a Run that does strip down to empty is dropped outright, mirroring
100
+ _flush_run's own refusal to create an empty Run. Image entries pass
101
+ through untouched."""
102
+ result: list[Run | Image] = []
103
+ for r in runs:
104
+ if isinstance(r, Image):
105
+ result.append(r)
106
+ continue
107
+ stripped = "".join(c for c in r.text if c not in _ASCII_FORMATTING_WHITESPACE)
108
+ if stripped:
109
+ result.append(replace(r, text=stripped))
110
+ return result
111
+
42
112
 
43
113
  @dataclass
44
114
  class _BlockFrame:
@@ -193,7 +263,7 @@ class _AstParser(HTMLParser):
193
263
  one place all four sites that begin buffering a block's content route
194
264
  through: a fresh `_BLOCK_TAGS`/`pre` start tag, `_resume_interrupted_
195
265
  block`, and the implicit top-level paragraph opened for bare text
196
- (#343). Each of these six fields used to be hand-duplicated at every
266
+ (#343). Each of these fields used to be hand-duplicated at every
197
267
  call site — the actual root cause behind #417: `_block_had_
198
268
  unsupported_content` was forgotten at the implicit-paragraph site in
199
269
  round 1, then `_block_resumed` was forgotten at the very same site in
@@ -302,7 +372,28 @@ class _AstParser(HTMLParser):
302
372
  stray "\n". Both the non-`<p>` and resumed-`<p>` cases fall back to
303
373
  the same preserve_if_empty gate the runs=[] case already uses (a
304
374
  real drop elsewhere in the same segment still earns a boundary
305
- node; an ordinary formatting artifact doesn't). Emitter.py's
375
+ node; an ordinary formatting artifact doesn't) — *unless* the
376
+ resumed segment's whitespace-only text contains a character
377
+ `_is_formatting_whitespace` doesn't recognize as ordinary ASCII
378
+ formatting whitespace (#444) — e.g. the "\xa0" a decoded "&nbsp;"
379
+ becomes (HTMLParser's default convert_charrefs=True resolves
380
+ "&nbsp;"/"&#160;" into that plain character before handle_data ever
381
+ sees it, so handle_entityref/handle_charref never fire for this and
382
+ can't be used as the signal instead). A markup-formatting artifact
383
+ (like the stray "\n" above) is always plain ASCII whitespace
384
+ produced by a parser/pretty-printer — a non-breaking space or other
385
+ non-ASCII space character has no reason to appear there, so a
386
+ resumed segment that's whitespace-only *because of* one (e.g. an
387
+ explicit "&nbsp;" placed right after a nested list/table/pre, still
388
+ inside the same tag) can only be something a human actually typed —
389
+ real, if invisible, content to lose, the same rationale the
390
+ fresh-`<p>` case above already rests on. This deliberately does NOT
391
+ extend to a *fresh* `<li>`/heading whose only content is such a
392
+ character (e.g. `<li>&nbsp;</li>` between two real siblings): that's
393
+ the PR #441 regression above, and the signal doesn't rescue it,
394
+ since the problem there isn't ambiguity about who produced the
395
+ character — it's that lists/headings have no blank-line-spacer
396
+ convention for a standalone empty item to begin with. Emitter.py's
306
397
  ast_to_requests() no longer special-cases this text at all — it
307
398
  emits whatever text a kept node carries, whitespace or not.
308
399
 
@@ -311,11 +402,21 @@ class _AstParser(HTMLParser):
311
402
  Run at all, must never hit the empty-drop path below just because
312
403
  joining its (nonexistent) Run text yields "".
313
404
  """
314
- text = "".join(r.text for r in runs if isinstance(r, Run)).strip()
405
+ raw_text = "".join(r.text for r in runs if isinstance(r, Run))
406
+ text = raw_text.strip()
315
407
  has_image = any(isinstance(r, Image) for r in runs)
316
408
  if not text and not has_image:
317
409
  is_fresh_paragraph_whitespace = tag == "p" and bool(runs) and not self._block_resumed
318
- if not is_fresh_paragraph_whitespace and not preserve_if_empty:
410
+ is_resumed_authored_whitespace = _is_resumed_authored_whitespace(
411
+ self._block_resumed, runs, raw_text
412
+ )
413
+ if is_resumed_authored_whitespace:
414
+ runs = _strip_formatting_whitespace(runs)
415
+ if (
416
+ not is_fresh_paragraph_whitespace
417
+ and not is_resumed_authored_whitespace
418
+ and not preserve_if_empty
419
+ ):
319
420
  return
320
421
  if tag in _HEADING_TAGS:
321
422
  level = int(tag[1])
@@ -752,10 +853,39 @@ class _AstParser(HTMLParser):
752
853
  # remaining flush is whitespace-only or empty — the same
753
854
  # preserve_if_empty guarantee _emit_block_node gives every other
754
855
  # block type — otherwise the dropped content leaves no trace at
755
- # all in the resulting doc (QA round 1, PR #515).
856
+ # all in the resulting doc (QA round 1, PR #515). And, mirroring
857
+ # _emit_block_node's own #444 fix: a resumed <pre> whose trailing
858
+ # flush is whitespace-only but contains a character
859
+ # _is_formatting_whitespace doesn't recognize as ordinary ASCII
860
+ # formatting whitespace (e.g. the "\xa0" a decoded "&nbsp;"
861
+ # becomes) is still genuinely-authored content, not the
862
+ # markup-formatting noise this whole check exists to filter out
863
+ # of the resumed case — an indentation artifact between a
864
+ # nested table's close tag and this <pre>'s own close tag is
865
+ # always plain ASCII whitespace. As in _emit_block_node, the
866
+ # preserved runs are then stripped of that formatting whitespace
867
+ # (PR #772 QA round 1, finding 1) — but only when this segment
868
+ # is whitespace-only to begin with (`not text.strip()`): a
869
+ # resumed <pre> can also carry genuine multi-line content of its
870
+ # own (is_resumed_authored_whitespace is True there too, since
871
+ # real text isn't all-formatting-whitespace either), and that
872
+ # content's own newlines are real, significant <pre> text, not
873
+ # noise to strip — they're handled separately at write time via
874
+ # the Courier-New "\n"→"\v" substitution (#719), same as any
875
+ # other code paragraph.
756
876
  text = "".join(r.text for r in runs if isinstance(r, Run))
757
877
  is_fresh_pre_whitespace = not self._block_resumed and bool(runs)
758
- if text.strip() or is_fresh_pre_whitespace or self._block_had_unsupported_content:
878
+ is_resumed_authored_whitespace = _is_resumed_authored_whitespace(
879
+ self._block_resumed, runs, text
880
+ )
881
+ if not text.strip() and is_resumed_authored_whitespace:
882
+ runs = _strip_formatting_whitespace(runs)
883
+ if (
884
+ text.strip()
885
+ or is_fresh_pre_whitespace
886
+ or is_resumed_authored_whitespace
887
+ or self._block_had_unsupported_content
888
+ ):
759
889
  self._nodes.append(Paragraph(runs=runs, blockquote_depth=self._blockquote_depth))
760
890
  self._block_tag = None
761
891
  self._in_pre = False
@@ -465,6 +465,103 @@ class TestUnsupportedConstructPreservesParagraphBoundary:
465
465
  assert nodes[0].runs[0].text == "Title"
466
466
  assert nodes[1].runs[0].text == "Next"
467
467
 
468
+ def test_resumed_list_item_trailing_nbsp_preserved(self):
469
+ # #444: a resumed block's whitespace-only trailing flush is normally
470
+ # dropped as markup-formatting noise (test_nested_list_via_markdown_
471
+ # preserves_parent_text in test_docs_content.py covers that case with
472
+ # a plain "\n"), but an actual "&nbsp;" placed right after a nested
473
+ # list, still inside the same <li>, decodes to "\xa0" — a character
474
+ # no pretty-printer emits as indentation — and must survive instead
475
+ # of vanishing with no trace, unlike the fresh-<li> case just above.
476
+ nodes = html_to_ast("<ul><li>Item<ul><li>x</li></ul>&nbsp;</li></ul>")
477
+ assert len(nodes) == 3
478
+ assert nodes[0].runs[0].text == "Item"
479
+ assert nodes[1].runs[0].text == "x"
480
+ assert nodes[2].runs[0].text == "\xa0"
481
+
482
+ def test_resumed_list_item_trailing_nbsp_with_leading_newline_not_split(self):
483
+ # PR #772 QA round 1, finding 1: a literal newline commonly sits
484
+ # between a nested list's "</ul>" and the following "&nbsp;" (real
485
+ # markdown/pretty-printed HTML rarely puts them adjacent with no
486
+ # whitespace at all, unlike the test above's minimal repro) — the
487
+ # unstripped "\n\xa0" run text would reach the Docs API as literal
488
+ # inserted text, which splits on any "\n" into a spurious extra
489
+ # paragraph (#719) regardless of styling. The preserved run must
490
+ # carry only the authored "\xa0", with the formatting-noise
491
+ # newline stripped out before it ever reaches that point.
492
+ html = "<ul><li>Item<ul><li>x</li></ul>\n&nbsp;</li></ul>"
493
+ nodes = html_to_ast(html)
494
+ assert len(nodes) == 3
495
+ assert nodes[2].runs[0].text == "\xa0"
496
+
497
+ def test_resumed_list_item_trailing_plain_whitespace_still_dropped(self):
498
+ # Control for the test above: plain ASCII whitespace (not an entity)
499
+ # after the same nested-list interruption is still markup-formatting
500
+ # noise and must still be dropped — the #444 fix is scoped to a
501
+ # character _is_formatting_whitespace doesn't recognize, not to
502
+ # "resumed block has any trailing text at all".
503
+ nodes = html_to_ast("<ul><li>Item<ul><li>x</li></ul>\n</li></ul>")
504
+ assert len(nodes) == 2
505
+ assert nodes[0].runs[0].text == "Item"
506
+ assert nodes[1].runs[0].text == "x"
507
+
508
+ def test_resumed_paragraph_trailing_nbsp_preserved(self):
509
+ # Same #444 fix, <p> instead of <li> — a resumed <p>'s trailing
510
+ # "&nbsp;" after a nested table must survive the same way a fresh
511
+ # <p>&nbsp;</p> already does (test_nbsp_only_paragraph_preserved).
512
+ html = "<p>Before<table><tr><td>cell</td></tr></table>&nbsp;</p>"
513
+ nodes = html_to_ast(html)
514
+ assert nodes[0].runs[0].text == "Before"
515
+ assert isinstance(nodes[-1], Paragraph)
516
+ assert nodes[-1].runs[0].text == "\xa0"
517
+
518
+ def test_resumed_pre_trailing_nbsp_preserved(self):
519
+ # Same #444 fix applied to the <pre> close-tag handler's own
520
+ # independent fresh-vs-resumed whitespace check (#443).
521
+ html = "<pre>before<table><tr><td>cell</td></tr></table>&nbsp;</pre>"
522
+ nodes = html_to_ast(html)
523
+ assert nodes[0].runs[0].text == "before"
524
+ assert nodes[-1].runs[0].text == "\xa0"
525
+
526
+ def test_resumed_pre_trailing_nbsp_with_leading_newline_not_split(self):
527
+ # PR #772 QA round 1, finding 1's <pre> sibling case.
528
+ html = "<pre>before<table><tr><td>cell</td></tr></table>\n&nbsp;</pre>"
529
+ nodes = html_to_ast(html)
530
+ assert nodes[-1].runs[0].text == "\xa0"
531
+
532
+ def test_resumed_pre_real_multiline_content_not_stripped(self):
533
+ # Control for the fix above: a resumed <pre> can also carry genuine
534
+ # multi-line content of its own (not just whitespace-plus-entity) —
535
+ # its newlines are real, significant <pre> text and must NOT be
536
+ # stripped just because is_resumed_authored_whitespace is also true
537
+ # for non-whitespace text (it only checks "not all-formatting-
538
+ # whitespace", which is trivially true for real content too).
539
+ html = "<pre>before<table><tr><td>cell</td></tr></table>line1\nline2</pre>"
540
+ nodes = html_to_ast(html)
541
+ assert nodes[-1].runs[0].text == "line1\nline2"
542
+
543
+ def test_resumed_list_item_trailing_vertical_tab_preserved(self):
544
+ # PR #772 QA round 1, finding 2: "\v"/"\f" were originally included
545
+ # in the ASCII-formatting-whitespace whitelist despite qualifying
546
+ # for the exact same authored-content reasoning as "\xa0" — no
547
+ # pretty-printer emits either as structural indentation, so a
548
+ # genuinely-typed one (e.g. pasted from a terminal) must survive
549
+ # instead of being silently dropped as if it were noise.
550
+ nodes = html_to_ast("<ul><li>Item<ul><li>x</li></ul>\x0b</li></ul>")
551
+ assert len(nodes) == 3
552
+ assert nodes[2].runs[0].text == "\x0b"
553
+
554
+ def test_resumed_pre_trailing_plain_whitespace_still_dropped(self):
555
+ # Control for the <pre> case: plain ASCII whitespace noise between
556
+ # the nested table's close and </pre> is still dropped — only the
557
+ # "before" paragraph and the table itself remain, no trailing node
558
+ # for the resumed <pre>'s own whitespace-only flush.
559
+ html = "<pre>before<table><tr><td>cell</td></tr></table>\n</pre>"
560
+ nodes = html_to_ast(html)
561
+ assert len(nodes) == 2
562
+ assert nodes[0].runs[0].text == "before"
563
+ assert isinstance(nodes[1], Table)
564
+
468
565
  def test_dropped_construct_survives_interruption_by_nested_list(self):
469
566
  # #401 follow-up (PR #406, TC-DOC136): _interrupt_open_block flushed
470
567
  # the currently-open block before descending into a nested construct