anchi-toolkit 1.0.0
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.
- package/.antigravity/agent-skill-index.yaml +387 -0
- package/.antigravity/agents/brainstormer.md +115 -0
- package/.antigravity/agents/code-reviewer.md +168 -0
- package/.antigravity/agents/copywriter.md +110 -0
- package/.antigravity/agents/database-admin.md +104 -0
- package/.antigravity/agents/ddd-architect.md +128 -0
- package/.antigravity/agents/debugger.md +149 -0
- package/.antigravity/agents/design-system-architect.md +166 -0
- package/.antigravity/agents/docs-manager.md +133 -0
- package/.antigravity/agents/fullstack-developer.md +105 -0
- package/.antigravity/agents/git-manager.md +321 -0
- package/.antigravity/agents/journal-writer.md +113 -0
- package/.antigravity/agents/mcp-manager.md +93 -0
- package/.antigravity/agents/planner.md +61 -0
- package/.antigravity/agents/project-manager.md +131 -0
- package/.antigravity/agents/researcher.md +50 -0
- package/.antigravity/agents/scout-external.md +151 -0
- package/.antigravity/agents/scout.md +117 -0
- package/.antigravity/agents/tester.md +117 -0
- package/.antigravity/agents/ui-ux-designer.md +233 -0
- package/.antigravity/failure-modes.yaml +148 -0
- package/.antigravity/orchestration.yaml +126 -0
- package/.antigravity/skills/.env.example +100 -0
- package/.antigravity/skills/INSTALLATION.md +360 -0
- package/.antigravity/skills/README.md +149 -0
- package/.antigravity/skills/SKILLS_INDEX.md +118 -0
- package/.antigravity/skills/THIRD_PARTY_NOTICES.md +405 -0
- package/.antigravity/skills/aesthetic/SKILL.md +121 -0
- package/.antigravity/skills/aesthetic/assets/design-guideline-template.md +163 -0
- package/.antigravity/skills/aesthetic/assets/design-story-template.md +135 -0
- package/.antigravity/skills/aesthetic/references/design-principles.md +62 -0
- package/.antigravity/skills/aesthetic/references/design-resources.md +75 -0
- package/.antigravity/skills/aesthetic/references/micro-interactions.md +53 -0
- package/.antigravity/skills/aesthetic/references/storytelling-design.md +50 -0
- package/.antigravity/skills/agent_skills_spec.md +55 -0
- package/.antigravity/skills/ai-multimodal/.env.example +181 -0
- package/.antigravity/skills/ai-multimodal/SKILL.md +65 -0
- package/.antigravity/skills/ai-multimodal/references/audio-processing.md +386 -0
- package/.antigravity/skills/ai-multimodal/references/image-generation.md +722 -0
- package/.antigravity/skills/ai-multimodal/references/video-analysis.md +515 -0
- package/.antigravity/skills/ai-multimodal/references/video-generation.md +457 -0
- package/.antigravity/skills/ai-multimodal/references/vision-understanding.md +492 -0
- package/.antigravity/skills/ai-multimodal/scripts/.coverage +0 -0
- package/.antigravity/skills/ai-multimodal/scripts/check_setup.py +299 -0
- package/.antigravity/skills/ai-multimodal/scripts/document_converter.py +395 -0
- package/.antigravity/skills/ai-multimodal/scripts/gemini_batch_process.py +896 -0
- package/.antigravity/skills/ai-multimodal/scripts/media_optimizer.py +506 -0
- package/.antigravity/skills/ai-multimodal/scripts/requirements.txt +26 -0
- package/.antigravity/skills/ai-multimodal/scripts/tests/.coverage +0 -0
- package/.antigravity/skills/ai-multimodal/scripts/tests/requirements.txt +20 -0
- package/.antigravity/skills/ai-multimodal/scripts/tests/test_document_converter.py +74 -0
- package/.antigravity/skills/ai-multimodal/scripts/tests/test_failures.log +258 -0
- package/.antigravity/skills/ai-multimodal/scripts/tests/test_gemini_batch_process.py +362 -0
- package/.antigravity/skills/ai-multimodal/scripts/tests/test_media_optimizer.py +373 -0
- package/.antigravity/skills/backend-development/SKILL.md +95 -0
- package/.antigravity/skills/backend-development/references/backend-api-design.md +495 -0
- package/.antigravity/skills/backend-development/references/backend-architecture.md +454 -0
- package/.antigravity/skills/backend-development/references/backend-authentication.md +338 -0
- package/.antigravity/skills/backend-development/references/backend-code-quality.md +659 -0
- package/.antigravity/skills/backend-development/references/backend-debugging.md +904 -0
- package/.antigravity/skills/backend-development/references/backend-devops.md +494 -0
- package/.antigravity/skills/backend-development/references/backend-mindset.md +387 -0
- package/.antigravity/skills/backend-development/references/backend-performance.md +397 -0
- package/.antigravity/skills/backend-development/references/backend-security.md +290 -0
- package/.antigravity/skills/backend-development/references/backend-technologies.md +256 -0
- package/.antigravity/skills/backend-development/references/backend-testing.md +429 -0
- package/.antigravity/skills/better-auth/SKILL.md +204 -0
- package/.antigravity/skills/better-auth/references/advanced-features.md +553 -0
- package/.antigravity/skills/better-auth/references/database-integration.md +577 -0
- package/.antigravity/skills/better-auth/references/email-password-auth.md +416 -0
- package/.antigravity/skills/better-auth/references/oauth-providers.md +430 -0
- package/.antigravity/skills/better-auth/scripts/.coverage +0 -0
- package/.antigravity/skills/better-auth/scripts/better_auth_init.py +521 -0
- package/.antigravity/skills/better-auth/scripts/requirements.txt +15 -0
- package/.antigravity/skills/better-auth/scripts/tests/.coverage +0 -0
- package/.antigravity/skills/better-auth/scripts/tests/test_better_auth_init.py +421 -0
- package/.antigravity/skills/chrome-devtools/SKILL.md +360 -0
- package/.antigravity/skills/chrome-devtools/references/cdp-domains.md +694 -0
- package/.antigravity/skills/chrome-devtools/references/performance-guide.md +940 -0
- package/.antigravity/skills/chrome-devtools/references/puppeteer-reference.md +953 -0
- package/.antigravity/skills/chrome-devtools/scripts/README.md +213 -0
- package/.antigravity/skills/chrome-devtools/scripts/__tests__/selector.test.js +210 -0
- package/.antigravity/skills/chrome-devtools/scripts/click.js +79 -0
- package/.antigravity/skills/chrome-devtools/scripts/console.js +75 -0
- package/.antigravity/skills/chrome-devtools/scripts/evaluate.js +49 -0
- package/.antigravity/skills/chrome-devtools/scripts/fill.js +72 -0
- package/.antigravity/skills/chrome-devtools/scripts/install-deps.sh +181 -0
- package/.antigravity/skills/chrome-devtools/scripts/install.sh +83 -0
- package/.antigravity/skills/chrome-devtools/scripts/lib/browser.js +122 -0
- package/.antigravity/skills/chrome-devtools/scripts/lib/selector.js +178 -0
- package/.antigravity/skills/chrome-devtools/scripts/navigate.js +46 -0
- package/.antigravity/skills/chrome-devtools/scripts/network.js +102 -0
- package/.antigravity/skills/chrome-devtools/scripts/package.json +15 -0
- package/.antigravity/skills/chrome-devtools/scripts/performance.js +145 -0
- package/.antigravity/skills/chrome-devtools/scripts/screenshot.js +180 -0
- package/.antigravity/skills/chrome-devtools/scripts/snapshot.js +131 -0
- package/.antigravity/skills/claude-code/references/advanced-features.md +399 -0
- package/.antigravity/skills/claude-code/references/agent-skills.md +399 -0
- package/.antigravity/skills/claude-code/references/api-reference.md +498 -0
- package/.antigravity/skills/claude-code/references/best-practices.md +447 -0
- package/.antigravity/skills/claude-code/references/cicd-integration.md +428 -0
- package/.antigravity/skills/claude-code/references/common-workflows.md +119 -0
- package/.antigravity/skills/claude-code/references/configuration.md +480 -0
- package/.antigravity/skills/claude-code/references/enterprise-features.md +472 -0
- package/.antigravity/skills/claude-code/references/getting-started.md +252 -0
- package/.antigravity/skills/claude-code/references/hooks-and-plugins.md +444 -0
- package/.antigravity/skills/claude-code/references/hooks-comprehensive.md +622 -0
- package/.antigravity/skills/claude-code/references/ide-integration.md +316 -0
- package/.antigravity/skills/claude-code/references/mcp-integration.md +386 -0
- package/.antigravity/skills/claude-code/references/slash-commands.md +489 -0
- package/.antigravity/skills/claude-code/references/troubleshooting.md +456 -0
- package/.antigravity/skills/claude-code/skill.md +60 -0
- package/.antigravity/skills/code-review/SKILL.md +143 -0
- package/.antigravity/skills/code-review/references/code-review-reception.md +209 -0
- package/.antigravity/skills/code-review/references/requesting-code-review.md +105 -0
- package/.antigravity/skills/code-review/references/verification-before-completion.md +139 -0
- package/.antigravity/skills/common/README.md +120 -0
- package/.antigravity/skills/common/api_key_helper.py +300 -0
- package/.antigravity/skills/databases/SKILL.md +232 -0
- package/.antigravity/skills/databases/references/mongodb-aggregation.md +447 -0
- package/.antigravity/skills/databases/references/mongodb-atlas.md +465 -0
- package/.antigravity/skills/databases/references/mongodb-crud.md +408 -0
- package/.antigravity/skills/databases/references/mongodb-indexing.md +442 -0
- package/.antigravity/skills/databases/references/postgresql-administration.md +594 -0
- package/.antigravity/skills/databases/references/postgresql-performance.md +527 -0
- package/.antigravity/skills/databases/references/postgresql-psql-cli.md +467 -0
- package/.antigravity/skills/databases/references/postgresql-queries.md +475 -0
- package/.antigravity/skills/databases/scripts/.coverage +0 -0
- package/.antigravity/skills/databases/scripts/db_backup.py +502 -0
- package/.antigravity/skills/databases/scripts/db_migrate.py +414 -0
- package/.antigravity/skills/databases/scripts/db_performance_check.py +444 -0
- package/.antigravity/skills/databases/scripts/requirements.txt +20 -0
- package/.antigravity/skills/databases/scripts/tests/coverage-db.json +1 -0
- package/.antigravity/skills/databases/scripts/tests/requirements.txt +4 -0
- package/.antigravity/skills/databases/scripts/tests/test_db_backup.py +340 -0
- package/.antigravity/skills/databases/scripts/tests/test_db_migrate.py +277 -0
- package/.antigravity/skills/databases/scripts/tests/test_db_performance_check.py +370 -0
- package/.antigravity/skills/ddd-modular-monolith/README.md +300 -0
- package/.antigravity/skills/debugging/SKILL.md +84 -0
- package/.antigravity/skills/debugging/references/defense-in-depth.md +124 -0
- package/.antigravity/skills/debugging/references/root-cause-tracing.md +122 -0
- package/.antigravity/skills/debugging/references/systematic-debugging.md +102 -0
- package/.antigravity/skills/debugging/references/verification.md +123 -0
- package/.antigravity/skills/debugging/scripts/find-polluter.sh +63 -0
- package/.antigravity/skills/debugging/scripts/find-polluter.test.md +102 -0
- package/.antigravity/skills/devops/.env.example +76 -0
- package/.antigravity/skills/devops/SKILL.md +285 -0
- package/.antigravity/skills/devops/references/browser-rendering.md +305 -0
- package/.antigravity/skills/devops/references/cloudflare-d1-kv.md +123 -0
- package/.antigravity/skills/devops/references/cloudflare-platform.md +271 -0
- package/.antigravity/skills/devops/references/cloudflare-r2-storage.md +280 -0
- package/.antigravity/skills/devops/references/cloudflare-workers-advanced.md +312 -0
- package/.antigravity/skills/devops/references/cloudflare-workers-apis.md +309 -0
- package/.antigravity/skills/devops/references/cloudflare-workers-basics.md +418 -0
- package/.antigravity/skills/devops/references/docker-basics.md +297 -0
- package/.antigravity/skills/devops/references/docker-compose.md +292 -0
- package/.antigravity/skills/devops/references/gcloud-platform.md +297 -0
- package/.antigravity/skills/devops/references/gcloud-services.md +304 -0
- package/.antigravity/skills/devops/scripts/cloudflare_deploy.py +269 -0
- package/.antigravity/skills/devops/scripts/docker_optimize.py +320 -0
- package/.antigravity/skills/devops/scripts/requirements.txt +20 -0
- package/.antigravity/skills/devops/scripts/tests/requirements.txt +3 -0
- package/.antigravity/skills/devops/scripts/tests/test_cloudflare_deploy.py +285 -0
- package/.antigravity/skills/devops/scripts/tests/test_docker_optimize.py +436 -0
- package/.antigravity/skills/docs-seeker/.env.example +15 -0
- package/.antigravity/skills/docs-seeker/SKILL.md +97 -0
- package/.antigravity/skills/docs-seeker/package.json +25 -0
- package/.antigravity/skills/docs-seeker/references/advanced.md +79 -0
- package/.antigravity/skills/docs-seeker/references/context7-patterns.md +68 -0
- package/.antigravity/skills/docs-seeker/references/errors.md +68 -0
- package/.antigravity/skills/docs-seeker/scripts/analyze-llms-txt.js +211 -0
- package/.antigravity/skills/docs-seeker/scripts/detect-topic.js +172 -0
- package/.antigravity/skills/docs-seeker/scripts/fetch-docs.js +213 -0
- package/.antigravity/skills/docs-seeker/scripts/tests/run-tests.js +72 -0
- package/.antigravity/skills/docs-seeker/scripts/tests/test-analyze-llms.js +119 -0
- package/.antigravity/skills/docs-seeker/scripts/tests/test-detect-topic.js +112 -0
- package/.antigravity/skills/docs-seeker/scripts/tests/test-fetch-docs.js +84 -0
- package/.antigravity/skills/docs-seeker/scripts/utils/env-loader.js +94 -0
- package/.antigravity/skills/docs-seeker/workflows/library-search.md +87 -0
- package/.antigravity/skills/docs-seeker/workflows/repo-analysis.md +91 -0
- package/.antigravity/skills/docs-seeker/workflows/topic-search.md +77 -0
- package/.antigravity/skills/document-skills/docx/LICENSE.txt +30 -0
- package/.antigravity/skills/document-skills/docx/SKILL.md +197 -0
- package/.antigravity/skills/document-skills/docx/docx-js.md +350 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.antigravity/skills/document-skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.antigravity/skills/document-skills/docx/ooxml/scripts/pack.py +159 -0
- package/.antigravity/skills/document-skills/docx/ooxml/scripts/unpack.py +29 -0
- package/.antigravity/skills/document-skills/docx/ooxml/scripts/validate.py +69 -0
- package/.antigravity/skills/document-skills/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/.antigravity/skills/document-skills/docx/ooxml/scripts/validation/base.py +951 -0
- package/.antigravity/skills/document-skills/docx/ooxml/scripts/validation/docx.py +274 -0
- package/.antigravity/skills/document-skills/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/.antigravity/skills/document-skills/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/.antigravity/skills/document-skills/docx/ooxml.md +610 -0
- package/.antigravity/skills/document-skills/docx/scripts/__init__.py +1 -0
- package/.antigravity/skills/document-skills/docx/scripts/document.py +1276 -0
- package/.antigravity/skills/document-skills/docx/scripts/templates/comments.xml +3 -0
- package/.antigravity/skills/document-skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/.antigravity/skills/document-skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/.antigravity/skills/document-skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/.antigravity/skills/document-skills/docx/scripts/templates/people.xml +3 -0
- package/.antigravity/skills/document-skills/docx/scripts/utilities.py +374 -0
- package/.antigravity/skills/document-skills/pdf/LICENSE.txt +30 -0
- package/.antigravity/skills/document-skills/pdf/SKILL.md +294 -0
- package/.antigravity/skills/document-skills/pdf/forms.md +205 -0
- package/.antigravity/skills/document-skills/pdf/reference.md +612 -0
- package/.antigravity/skills/document-skills/pdf/scripts/check_bounding_boxes.py +70 -0
- package/.antigravity/skills/document-skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/.antigravity/skills/document-skills/pdf/scripts/check_fillable_fields.py +12 -0
- package/.antigravity/skills/document-skills/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/.antigravity/skills/document-skills/pdf/scripts/create_validation_image.py +41 -0
- package/.antigravity/skills/document-skills/pdf/scripts/extract_form_field_info.py +152 -0
- package/.antigravity/skills/document-skills/pdf/scripts/fill_fillable_fields.py +114 -0
- package/.antigravity/skills/document-skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/.antigravity/skills/document-skills/pptx/LICENSE.txt +30 -0
- package/.antigravity/skills/document-skills/pptx/SKILL.md +484 -0
- package/.antigravity/skills/document-skills/pptx/html2pptx.md +625 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/scripts/pack.py +159 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/scripts/unpack.py +29 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/scripts/validate.py +69 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/scripts/validation/base.py +951 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/.antigravity/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/.antigravity/skills/document-skills/pptx/ooxml.md +427 -0
- package/.antigravity/skills/document-skills/pptx/scripts/html2pptx.js +979 -0
- package/.antigravity/skills/document-skills/pptx/scripts/inventory.py +1020 -0
- package/.antigravity/skills/document-skills/pptx/scripts/rearrange.py +231 -0
- package/.antigravity/skills/document-skills/pptx/scripts/replace.py +385 -0
- package/.antigravity/skills/document-skills/pptx/scripts/thumbnail.py +450 -0
- package/.antigravity/skills/document-skills/xlsx/LICENSE.txt +30 -0
- package/.antigravity/skills/document-skills/xlsx/SKILL.md +289 -0
- package/.antigravity/skills/document-skills/xlsx/recalc.py +178 -0
- package/.antigravity/skills/frontend-design/SKILL.md +91 -0
- package/.antigravity/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
- package/.antigravity/skills/frontend-design/references/analysis-best-practices.md +80 -0
- package/.antigravity/skills/frontend-design/references/analysis-prompts.md +141 -0
- package/.antigravity/skills/frontend-design/references/analysis-techniques.md +118 -0
- package/.antigravity/skills/frontend-design/references/animejs.md +396 -0
- package/.antigravity/skills/frontend-design/references/asset-generation.md +337 -0
- package/.antigravity/skills/frontend-design/references/design-extraction-overview.md +71 -0
- package/.antigravity/skills/frontend-design/references/extraction-best-practices.md +141 -0
- package/.antigravity/skills/frontend-design/references/extraction-output-templates.md +162 -0
- package/.antigravity/skills/frontend-design/references/extraction-prompts.md +127 -0
- package/.antigravity/skills/frontend-design/references/technical-accessibility.md +119 -0
- package/.antigravity/skills/frontend-design/references/technical-best-practices.md +97 -0
- package/.antigravity/skills/frontend-design/references/technical-optimization.md +44 -0
- package/.antigravity/skills/frontend-design/references/technical-overview.md +90 -0
- package/.antigravity/skills/frontend-design/references/technical-workflows.md +150 -0
- package/.antigravity/skills/frontend-design/references/visual-analysis-overview.md +95 -0
- package/.antigravity/skills/frontend-design-pro/SKILL.md +58 -0
- package/.antigravity/skills/frontend-development/SKILL.md +399 -0
- package/.antigravity/skills/frontend-development/resources/common-patterns.md +331 -0
- package/.antigravity/skills/frontend-development/resources/complete-examples.md +872 -0
- package/.antigravity/skills/frontend-development/resources/component-patterns.md +502 -0
- package/.antigravity/skills/frontend-development/resources/data-fetching.md +767 -0
- package/.antigravity/skills/frontend-development/resources/file-organization.md +502 -0
- package/.antigravity/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/.antigravity/skills/frontend-development/resources/performance.md +406 -0
- package/.antigravity/skills/frontend-development/resources/routing-guide.md +364 -0
- package/.antigravity/skills/frontend-development/resources/styling-guide.md +428 -0
- package/.antigravity/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/.antigravity/skills/google-adk-python/SKILL.md +237 -0
- package/.antigravity/skills/install.ps1 +600 -0
- package/.antigravity/skills/install.sh +685 -0
- package/.antigravity/skills/mcp-builder/LICENSE.txt +202 -0
- package/.antigravity/skills/mcp-builder/SKILL.md +328 -0
- package/.antigravity/skills/mcp-builder/reference/evaluation.md +602 -0
- package/.antigravity/skills/mcp-builder/reference/mcp_best_practices.md +915 -0
- package/.antigravity/skills/mcp-builder/reference/node_mcp_server.md +916 -0
- package/.antigravity/skills/mcp-builder/reference/python_mcp_server.md +752 -0
- package/.antigravity/skills/mcp-builder/scripts/connections.py +151 -0
- package/.antigravity/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/.antigravity/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/.antigravity/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/.antigravity/skills/mcp-management/README.md +219 -0
- package/.antigravity/skills/mcp-management/SKILL.md +209 -0
- package/.antigravity/skills/mcp-management/assets/tools.json +3146 -0
- package/.antigravity/skills/mcp-management/references/configuration.md +114 -0
- package/.antigravity/skills/mcp-management/references/gemini-cli-integration.md +215 -0
- package/.antigravity/skills/mcp-management/references/mcp-protocol.md +116 -0
- package/.antigravity/skills/mcp-management/scripts/.env.example +10 -0
- package/.antigravity/skills/mcp-management/scripts/cli.ts +195 -0
- package/.antigravity/skills/mcp-management/scripts/mcp-client.ts +230 -0
- package/.antigravity/skills/mcp-management/scripts/package.json +20 -0
- package/.antigravity/skills/mcp-management/scripts/tsconfig.json +15 -0
- package/.antigravity/skills/media-processing/SKILL.md +91 -0
- package/.antigravity/skills/media-processing/references/common-workflows.md +132 -0
- package/.antigravity/skills/media-processing/references/ffmpeg-encoding.md +358 -0
- package/.antigravity/skills/media-processing/references/ffmpeg-filters.md +503 -0
- package/.antigravity/skills/media-processing/references/ffmpeg-streaming.md +403 -0
- package/.antigravity/skills/media-processing/references/format-compatibility.md +375 -0
- package/.antigravity/skills/media-processing/references/imagemagick-batch.md +612 -0
- package/.antigravity/skills/media-processing/references/imagemagick-editing.md +623 -0
- package/.antigravity/skills/media-processing/references/rmbg-background-removal.md +66 -0
- package/.antigravity/skills/media-processing/references/troubleshooting.md +109 -0
- package/.antigravity/skills/media-processing/scripts/README.md +111 -0
- package/.antigravity/skills/media-processing/scripts/batch-remove-background.sh +124 -0
- package/.antigravity/skills/media-processing/scripts/batch_resize.py +342 -0
- package/.antigravity/skills/media-processing/scripts/media_convert.py +311 -0
- package/.antigravity/skills/media-processing/scripts/remove-background.sh +96 -0
- package/.antigravity/skills/media-processing/scripts/remove-bg-node.js +158 -0
- package/.antigravity/skills/media-processing/scripts/requirements.txt +24 -0
- package/.antigravity/skills/media-processing/scripts/tests/.coverage +0 -0
- package/.antigravity/skills/media-processing/scripts/tests/requirements.txt +2 -0
- package/.antigravity/skills/media-processing/scripts/tests/test_batch_resize.py +372 -0
- package/.antigravity/skills/media-processing/scripts/tests/test_media_convert.py +259 -0
- package/.antigravity/skills/media-processing/scripts/tests/test_video_optimize.py +397 -0
- package/.antigravity/skills/media-processing/scripts/video_optimize.py +414 -0
- package/.antigravity/skills/mobile-development/SKILL.md +212 -0
- package/.antigravity/skills/mobile-development/references/mobile-android.md +604 -0
- package/.antigravity/skills/mobile-development/references/mobile-best-practices.md +545 -0
- package/.antigravity/skills/mobile-development/references/mobile-debugging.md +1089 -0
- package/.antigravity/skills/mobile-development/references/mobile-frameworks.md +465 -0
- package/.antigravity/skills/mobile-development/references/mobile-ios.md +496 -0
- package/.antigravity/skills/mobile-development/references/mobile-mindset.md +544 -0
- package/.antigravity/skills/payment-integration/README.md +185 -0
- package/.antigravity/skills/payment-integration/SKILL.md +118 -0
- package/.antigravity/skills/payment-integration/references/polar/benefits.md +396 -0
- package/.antigravity/skills/payment-integration/references/polar/best-practices.md +482 -0
- package/.antigravity/skills/payment-integration/references/polar/checkouts.md +266 -0
- package/.antigravity/skills/payment-integration/references/polar/overview.md +184 -0
- package/.antigravity/skills/payment-integration/references/polar/products.md +244 -0
- package/.antigravity/skills/payment-integration/references/polar/sdk.md +436 -0
- package/.antigravity/skills/payment-integration/references/polar/subscriptions.md +340 -0
- package/.antigravity/skills/payment-integration/references/polar/webhooks.md +405 -0
- package/.antigravity/skills/payment-integration/references/sepay/api.md +140 -0
- package/.antigravity/skills/payment-integration/references/sepay/best-practices.md +337 -0
- package/.antigravity/skills/payment-integration/references/sepay/overview.md +138 -0
- package/.antigravity/skills/payment-integration/references/sepay/qr-codes.md +228 -0
- package/.antigravity/skills/payment-integration/references/sepay/sdk.md +213 -0
- package/.antigravity/skills/payment-integration/references/sepay/webhooks.md +208 -0
- package/.antigravity/skills/payment-integration/scripts/.env.example +20 -0
- package/.antigravity/skills/payment-integration/scripts/checkout-helper.js +244 -0
- package/.antigravity/skills/payment-integration/scripts/package.json +17 -0
- package/.antigravity/skills/payment-integration/scripts/polar-webhook-verify.js +202 -0
- package/.antigravity/skills/payment-integration/scripts/sepay-webhook-verify.js +193 -0
- package/.antigravity/skills/payment-integration/scripts/test-scripts.js +237 -0
- package/.antigravity/skills/planning/SKILL.md +121 -0
- package/.antigravity/skills/planning/references/codebase-understanding.md +62 -0
- package/.antigravity/skills/planning/references/output-standards.md +87 -0
- package/.antigravity/skills/planning/references/plan-organization.md +123 -0
- package/.antigravity/skills/planning/references/research-phase.md +49 -0
- package/.antigravity/skills/planning/references/solution-design.md +63 -0
- package/.antigravity/skills/problem-solving/SKILL.md +96 -0
- package/.antigravity/skills/problem-solving/references/attribution.md +69 -0
- package/.antigravity/skills/problem-solving/references/collision-zone-thinking.md +79 -0
- package/.antigravity/skills/problem-solving/references/inversion-exercise.md +91 -0
- package/.antigravity/skills/problem-solving/references/meta-pattern-recognition.md +87 -0
- package/.antigravity/skills/problem-solving/references/scale-game.md +95 -0
- package/.antigravity/skills/problem-solving/references/simplification-cascades.md +80 -0
- package/.antigravity/skills/problem-solving/references/when-stuck.md +72 -0
- package/.antigravity/skills/repomix/SKILL.md +247 -0
- package/.antigravity/skills/repomix/references/configuration.md +211 -0
- package/.antigravity/skills/repomix/references/usage-patterns.md +232 -0
- package/.antigravity/skills/repomix/scripts/.coverage +0 -0
- package/.antigravity/skills/repomix/scripts/README.md +179 -0
- package/.antigravity/skills/repomix/scripts/repomix_batch.py +455 -0
- package/.antigravity/skills/repomix/scripts/repos.example.json +15 -0
- package/.antigravity/skills/repomix/scripts/requirements.txt +15 -0
- package/.antigravity/skills/repomix/scripts/tests/test_repomix_batch.py +531 -0
- package/.antigravity/skills/research/SKILL.md +168 -0
- package/.antigravity/skills/sequential-thinking/.env.example +8 -0
- package/.antigravity/skills/sequential-thinking/README.md +183 -0
- package/.antigravity/skills/sequential-thinking/SKILL.md +94 -0
- package/.antigravity/skills/sequential-thinking/package.json +31 -0
- package/.antigravity/skills/sequential-thinking/references/advanced-strategies.md +79 -0
- package/.antigravity/skills/sequential-thinking/references/advanced-techniques.md +76 -0
- package/.antigravity/skills/sequential-thinking/references/core-patterns.md +95 -0
- package/.antigravity/skills/sequential-thinking/references/examples-api.md +88 -0
- package/.antigravity/skills/sequential-thinking/references/examples-architecture.md +94 -0
- package/.antigravity/skills/sequential-thinking/references/examples-debug.md +90 -0
- package/.antigravity/skills/sequential-thinking/scripts/format-thought.js +159 -0
- package/.antigravity/skills/sequential-thinking/scripts/process-thought.js +236 -0
- package/.antigravity/skills/sequential-thinking/tests/format-thought.test.js +133 -0
- package/.antigravity/skills/sequential-thinking/tests/process-thought.test.js +215 -0
- package/.antigravity/skills/shopify/README.md +66 -0
- package/.antigravity/skills/shopify/SKILL.md +319 -0
- package/.antigravity/skills/shopify/references/app-development.md +470 -0
- package/.antigravity/skills/shopify/references/extensions.md +493 -0
- package/.antigravity/skills/shopify/references/themes.md +498 -0
- package/.antigravity/skills/shopify/scripts/.coverage +0 -0
- package/.antigravity/skills/shopify/scripts/requirements.txt +19 -0
- package/.antigravity/skills/shopify/scripts/shopify_init.py +423 -0
- package/.antigravity/skills/shopify/scripts/tests/.coverage +0 -0
- package/.antigravity/skills/shopify/scripts/tests/test_shopify_init.py +385 -0
- package/.antigravity/skills/skill-creator/LICENSE.txt +202 -0
- package/.antigravity/skills/skill-creator/SKILL.md +266 -0
- package/.antigravity/skills/skill-creator/scripts/init_skill.py +303 -0
- package/.antigravity/skills/skill-creator/scripts/package_skill.py +110 -0
- package/.antigravity/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/.antigravity/skills/template-skill/SKILL.md +6 -0
- package/.antigravity/skills/threejs/SKILL.md +89 -0
- package/.antigravity/skills/threejs/references/01-getting-started.md +177 -0
- package/.antigravity/skills/threejs/references/02-loaders.md +169 -0
- package/.antigravity/skills/threejs/references/03-textures.md +170 -0
- package/.antigravity/skills/threejs/references/04-cameras.md +195 -0
- package/.antigravity/skills/threejs/references/05-lights.md +183 -0
- package/.antigravity/skills/threejs/references/06-animations.md +214 -0
- package/.antigravity/skills/threejs/references/07-math.md +260 -0
- package/.antigravity/skills/threejs/references/08-interaction.md +267 -0
- package/.antigravity/skills/threejs/references/09-postprocessing.md +240 -0
- package/.antigravity/skills/threejs/references/10-controls.md +259 -0
- package/.antigravity/skills/threejs/references/11-materials-advanced.md +270 -0
- package/.antigravity/skills/threejs/references/12-performance.md +269 -0
- package/.antigravity/skills/threejs/references/13-node-materials.md +298 -0
- package/.antigravity/skills/threejs/references/14-physics-vr.md +304 -0
- package/.antigravity/skills/threejs/references/15-specialized-loaders.md +333 -0
- package/.antigravity/skills/threejs/references/16-webgpu.md +302 -0
- package/.antigravity/skills/ui-styling/LICENSE.txt +202 -0
- package/.antigravity/skills/ui-styling/SKILL.md +321 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/.antigravity/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/.antigravity/skills/ui-styling/references/canvas-design-system.md +320 -0
- package/.antigravity/skills/ui-styling/references/shadcn-accessibility.md +471 -0
- package/.antigravity/skills/ui-styling/references/shadcn-components.md +424 -0
- package/.antigravity/skills/ui-styling/references/shadcn-theming.md +373 -0
- package/.antigravity/skills/ui-styling/references/tailwind-customization.md +483 -0
- package/.antigravity/skills/ui-styling/references/tailwind-responsive.md +382 -0
- package/.antigravity/skills/ui-styling/references/tailwind-utilities.md +455 -0
- package/.antigravity/skills/ui-styling/scripts/.coverage +0 -0
- package/.antigravity/skills/ui-styling/scripts/requirements.txt +17 -0
- package/.antigravity/skills/ui-styling/scripts/shadcn_add.py +292 -0
- package/.antigravity/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
- package/.antigravity/skills/ui-styling/scripts/tests/coverage-ui.json +1 -0
- package/.antigravity/skills/ui-styling/scripts/tests/requirements.txt +3 -0
- package/.antigravity/skills/ui-styling/scripts/tests/test_shadcn_add.py +266 -0
- package/.antigravity/skills/ui-styling/scripts/tests/test_tailwind_config_gen.py +336 -0
- package/.antigravity/skills/ui-ux-pro-max/SKILL.md +227 -0
- package/.antigravity/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.antigravity/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.antigravity/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.antigravity/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.antigravity/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.antigravity/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.antigravity/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +51 -0
- package/.antigravity/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.antigravity/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.antigravity/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.antigravity/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.antigravity/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.antigravity/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.antigravity/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.antigravity/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.antigravity/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.antigravity/skills/ui-ux-pro-max/scripts/core.py +236 -0
- package/.antigravity/skills/ui-ux-pro-max/scripts/search.py +61 -0
- package/.antigravity/skills/web-frameworks/SKILL.md +324 -0
- package/.antigravity/skills/web-frameworks/references/nextjs-app-router.md +465 -0
- package/.antigravity/skills/web-frameworks/references/nextjs-data-fetching.md +459 -0
- package/.antigravity/skills/web-frameworks/references/nextjs-optimization.md +511 -0
- package/.antigravity/skills/web-frameworks/references/nextjs-server-components.md +495 -0
- package/.antigravity/skills/web-frameworks/references/remix-icon-integration.md +603 -0
- package/.antigravity/skills/web-frameworks/references/turborepo-caching.md +551 -0
- package/.antigravity/skills/web-frameworks/references/turborepo-pipelines.md +517 -0
- package/.antigravity/skills/web-frameworks/references/turborepo-setup.md +542 -0
- package/.antigravity/skills/web-frameworks/scripts/.coverage +0 -0
- package/.antigravity/skills/web-frameworks/scripts/__init__.py +0 -0
- package/.antigravity/skills/web-frameworks/scripts/nextjs_init.py +547 -0
- package/.antigravity/skills/web-frameworks/scripts/requirements.txt +16 -0
- package/.antigravity/skills/web-frameworks/scripts/tests/coverage-web.json +1 -0
- package/.antigravity/skills/web-frameworks/scripts/tests/requirements.txt +3 -0
- package/.antigravity/skills/web-frameworks/scripts/tests/test_nextjs_init.py +319 -0
- package/.antigravity/skills/web-frameworks/scripts/tests/test_turborepo_migrate.py +374 -0
- package/.antigravity/skills/web-frameworks/scripts/turborepo_migrate.py +394 -0
- package/.antigravity/workflows/audit.md +116 -0
- package/.antigravity/workflows/commit.md +116 -0
- package/.antigravity/workflows/design.md +177 -0
- package/.antigravity/workflows/do.md +366 -0
- package/.antigravity/workflows/docs.md +101 -0
- package/.antigravity/workflows/generate.md +140 -0
- package/.antigravity/workflows/help.md +121 -0
- package/.antigravity/workflows/integrate.md +119 -0
- package/.antigravity/workflows/memory.md +97 -0
- package/.antigravity/workflows/migrate.md +180 -0
- package/.antigravity/workflows/review.md +108 -0
- package/.antigravity/workflows/scout.md +111 -0
- package/.antigravity/workflows/start.md +135 -0
- package/.antigravity/workflows/status.md +163 -0
- package/.antigravity/workflows/test.md +121 -0
- package/.antigravity/workflows/theme.md +158 -0
- package/.antigravity/workflows/undo.md +166 -0
- package/.antigravity/workflows/why.md +155 -0
- package/.cursor/.ckignore +11 -0
- package/.cursor/.env.example +87 -0
- package/.cursor/.mcp.json.example +23 -0
- package/.cursor/MODEL_COSTS.md +61 -0
- package/.cursor/UX_GUIDELINES.md +146 -0
- package/.cursor/agent-skill-index.yaml +387 -0
- package/.cursor/agents/brainstormer.md +115 -0
- package/.cursor/agents/code-reviewer.md +168 -0
- package/.cursor/agents/copywriter.md +110 -0
- package/.cursor/agents/database-admin.md +104 -0
- package/.cursor/agents/ddd-architect.md +128 -0
- package/.cursor/agents/debugger.md +149 -0
- package/.cursor/agents/design-system-architect.md +166 -0
- package/.cursor/agents/docs-manager.md +133 -0
- package/.cursor/agents/fullstack-developer.md +105 -0
- package/.cursor/agents/git-manager.md +321 -0
- package/.cursor/agents/journal-writer.md +113 -0
- package/.cursor/agents/mcp-manager.md +93 -0
- package/.cursor/agents/planner.md +61 -0
- package/.cursor/agents/project-manager.md +131 -0
- package/.cursor/agents/researcher.md +50 -0
- package/.cursor/agents/scout-external.md +151 -0
- package/.cursor/agents/scout.md +117 -0
- package/.cursor/agents/tester.md +117 -0
- package/.cursor/agents/ui-ux-designer.md +233 -0
- package/.cursor/anchi-kit.config.yaml +32 -0
- package/.cursor/commands/audit.md +116 -0
- package/.cursor/commands/commit.md +116 -0
- package/.cursor/commands/design.md +177 -0
- package/.cursor/commands/do.md +366 -0
- package/.cursor/commands/docs.md +101 -0
- package/.cursor/commands/generate.md +140 -0
- package/.cursor/commands/help.md +121 -0
- package/.cursor/commands/integrate.md +119 -0
- package/.cursor/commands/memory.md +97 -0
- package/.cursor/commands/migrate.md +180 -0
- package/.cursor/commands/review.md +108 -0
- package/.cursor/commands/scout.md +111 -0
- package/.cursor/commands/start.md +135 -0
- package/.cursor/commands/status.md +163 -0
- package/.cursor/commands/test.md +121 -0
- package/.cursor/commands/theme.md +158 -0
- package/.cursor/commands/undo.md +166 -0
- package/.cursor/commands/why.md +155 -0
- package/.cursor/custom-commands/example.md +30 -0
- package/.cursor/failure-modes.yaml +148 -0
- package/.cursor/hooks/.env.example +15 -0
- package/.cursor/hooks/README.md +356 -0
- package/.cursor/hooks/dev-rules-reminder.cjs +115 -0
- package/.cursor/hooks/dev-rules-reminder.js +115 -0
- package/.cursor/hooks/discord-hook-setup.md +412 -0
- package/.cursor/hooks/discord_notify.sh +221 -0
- package/.cursor/hooks/scout-block.cjs +100 -0
- package/.cursor/hooks/scout-block.js +104 -0
- package/.cursor/hooks/scout-block.ps1 +92 -0
- package/.cursor/hooks/scout-block.sh +119 -0
- package/.cursor/hooks/send-discord.sh +75 -0
- package/.cursor/hooks/telegram-hook-setup.md +774 -0
- package/.cursor/hooks/telegram_notify.sh +158 -0
- package/.cursor/hooks/tests/test-ckignore.js +194 -0
- package/.cursor/hooks/tests/test-modularization-hook.js +126 -0
- package/.cursor/hooks/tests/test-scout-block.js +125 -0
- package/.cursor/hooks.yaml +28 -0
- package/.cursor/metadata.json +15 -0
- package/.cursor/orchestration.yaml +126 -0
- package/.cursor/scripts/README.md +153 -0
- package/.cursor/scripts/ck-help.py +489 -0
- package/.cursor/scripts/commands_data.yaml +363 -0
- package/.cursor/scripts/generate_catalogs.py +163 -0
- package/.cursor/scripts/requirements.txt +1 -0
- package/.cursor/scripts/resolve_env.py +329 -0
- package/.cursor/scripts/scan_commands.py +99 -0
- package/.cursor/scripts/scan_skills.py +187 -0
- package/.cursor/scripts/skills_data.yaml +367 -0
- package/.cursor/settings.json +31 -0
- package/.cursor/skills/.env.example +100 -0
- package/.cursor/skills/INSTALLATION.md +360 -0
- package/.cursor/skills/README.md +149 -0
- package/.cursor/skills/SKILLS_INDEX.md +118 -0
- package/.cursor/skills/THIRD_PARTY_NOTICES.md +405 -0
- package/.cursor/skills/aesthetic/SKILL.md +121 -0
- package/.cursor/skills/aesthetic/assets/design-guideline-template.md +163 -0
- package/.cursor/skills/aesthetic/assets/design-story-template.md +135 -0
- package/.cursor/skills/aesthetic/references/design-principles.md +62 -0
- package/.cursor/skills/aesthetic/references/design-resources.md +75 -0
- package/.cursor/skills/aesthetic/references/micro-interactions.md +53 -0
- package/.cursor/skills/aesthetic/references/storytelling-design.md +50 -0
- package/.cursor/skills/agent_skills_spec.md +55 -0
- package/.cursor/skills/ai-multimodal/.env.example +181 -0
- package/.cursor/skills/ai-multimodal/SKILL.md +65 -0
- package/.cursor/skills/ai-multimodal/references/audio-processing.md +386 -0
- package/.cursor/skills/ai-multimodal/references/image-generation.md +722 -0
- package/.cursor/skills/ai-multimodal/references/video-analysis.md +515 -0
- package/.cursor/skills/ai-multimodal/references/video-generation.md +457 -0
- package/.cursor/skills/ai-multimodal/references/vision-understanding.md +492 -0
- package/.cursor/skills/ai-multimodal/scripts/.coverage +0 -0
- package/.cursor/skills/ai-multimodal/scripts/check_setup.py +299 -0
- package/.cursor/skills/ai-multimodal/scripts/document_converter.py +395 -0
- package/.cursor/skills/ai-multimodal/scripts/gemini_batch_process.py +896 -0
- package/.cursor/skills/ai-multimodal/scripts/media_optimizer.py +506 -0
- package/.cursor/skills/ai-multimodal/scripts/requirements.txt +26 -0
- package/.cursor/skills/ai-multimodal/scripts/tests/.coverage +0 -0
- package/.cursor/skills/ai-multimodal/scripts/tests/requirements.txt +20 -0
- package/.cursor/skills/ai-multimodal/scripts/tests/test_document_converter.py +74 -0
- package/.cursor/skills/ai-multimodal/scripts/tests/test_failures.log +258 -0
- package/.cursor/skills/ai-multimodal/scripts/tests/test_gemini_batch_process.py +362 -0
- package/.cursor/skills/ai-multimodal/scripts/tests/test_media_optimizer.py +373 -0
- package/.cursor/skills/backend-development/SKILL.md +95 -0
- package/.cursor/skills/backend-development/references/backend-api-design.md +495 -0
- package/.cursor/skills/backend-development/references/backend-architecture.md +454 -0
- package/.cursor/skills/backend-development/references/backend-authentication.md +338 -0
- package/.cursor/skills/backend-development/references/backend-code-quality.md +659 -0
- package/.cursor/skills/backend-development/references/backend-debugging.md +904 -0
- package/.cursor/skills/backend-development/references/backend-devops.md +494 -0
- package/.cursor/skills/backend-development/references/backend-mindset.md +387 -0
- package/.cursor/skills/backend-development/references/backend-performance.md +397 -0
- package/.cursor/skills/backend-development/references/backend-security.md +290 -0
- package/.cursor/skills/backend-development/references/backend-technologies.md +256 -0
- package/.cursor/skills/backend-development/references/backend-testing.md +429 -0
- package/.cursor/skills/better-auth/SKILL.md +204 -0
- package/.cursor/skills/better-auth/references/advanced-features.md +553 -0
- package/.cursor/skills/better-auth/references/database-integration.md +577 -0
- package/.cursor/skills/better-auth/references/email-password-auth.md +416 -0
- package/.cursor/skills/better-auth/references/oauth-providers.md +430 -0
- package/.cursor/skills/better-auth/scripts/.coverage +0 -0
- package/.cursor/skills/better-auth/scripts/better_auth_init.py +521 -0
- package/.cursor/skills/better-auth/scripts/requirements.txt +15 -0
- package/.cursor/skills/better-auth/scripts/tests/.coverage +0 -0
- package/.cursor/skills/better-auth/scripts/tests/test_better_auth_init.py +421 -0
- package/.cursor/skills/chrome-devtools/SKILL.md +360 -0
- package/.cursor/skills/chrome-devtools/references/cdp-domains.md +694 -0
- package/.cursor/skills/chrome-devtools/references/performance-guide.md +940 -0
- package/.cursor/skills/chrome-devtools/references/puppeteer-reference.md +953 -0
- package/.cursor/skills/chrome-devtools/scripts/README.md +213 -0
- package/.cursor/skills/chrome-devtools/scripts/__tests__/selector.test.js +210 -0
- package/.cursor/skills/chrome-devtools/scripts/click.js +79 -0
- package/.cursor/skills/chrome-devtools/scripts/console.js +75 -0
- package/.cursor/skills/chrome-devtools/scripts/evaluate.js +49 -0
- package/.cursor/skills/chrome-devtools/scripts/fill.js +72 -0
- package/.cursor/skills/chrome-devtools/scripts/install-deps.sh +181 -0
- package/.cursor/skills/chrome-devtools/scripts/install.sh +83 -0
- package/.cursor/skills/chrome-devtools/scripts/lib/browser.js +122 -0
- package/.cursor/skills/chrome-devtools/scripts/lib/selector.js +178 -0
- package/.cursor/skills/chrome-devtools/scripts/navigate.js +46 -0
- package/.cursor/skills/chrome-devtools/scripts/network.js +102 -0
- package/.cursor/skills/chrome-devtools/scripts/package.json +15 -0
- package/.cursor/skills/chrome-devtools/scripts/performance.js +145 -0
- package/.cursor/skills/chrome-devtools/scripts/screenshot.js +180 -0
- package/.cursor/skills/chrome-devtools/scripts/snapshot.js +131 -0
- package/.cursor/skills/claude-code/references/advanced-features.md +399 -0
- package/.cursor/skills/claude-code/references/agent-skills.md +399 -0
- package/.cursor/skills/claude-code/references/api-reference.md +498 -0
- package/.cursor/skills/claude-code/references/best-practices.md +447 -0
- package/.cursor/skills/claude-code/references/cicd-integration.md +428 -0
- package/.cursor/skills/claude-code/references/common-workflows.md +119 -0
- package/.cursor/skills/claude-code/references/configuration.md +480 -0
- package/.cursor/skills/claude-code/references/enterprise-features.md +472 -0
- package/.cursor/skills/claude-code/references/getting-started.md +252 -0
- package/.cursor/skills/claude-code/references/hooks-and-plugins.md +444 -0
- package/.cursor/skills/claude-code/references/hooks-comprehensive.md +622 -0
- package/.cursor/skills/claude-code/references/ide-integration.md +316 -0
- package/.cursor/skills/claude-code/references/mcp-integration.md +386 -0
- package/.cursor/skills/claude-code/references/slash-commands.md +489 -0
- package/.cursor/skills/claude-code/references/troubleshooting.md +456 -0
- package/.cursor/skills/claude-code/skill.md +60 -0
- package/.cursor/skills/code-review/SKILL.md +143 -0
- package/.cursor/skills/code-review/references/code-review-reception.md +209 -0
- package/.cursor/skills/code-review/references/requesting-code-review.md +105 -0
- package/.cursor/skills/code-review/references/verification-before-completion.md +139 -0
- package/.cursor/skills/common/README.md +120 -0
- package/.cursor/skills/common/api_key_helper.py +300 -0
- package/.cursor/skills/databases/SKILL.md +232 -0
- package/.cursor/skills/databases/references/mongodb-aggregation.md +447 -0
- package/.cursor/skills/databases/references/mongodb-atlas.md +465 -0
- package/.cursor/skills/databases/references/mongodb-crud.md +408 -0
- package/.cursor/skills/databases/references/mongodb-indexing.md +442 -0
- package/.cursor/skills/databases/references/postgresql-administration.md +594 -0
- package/.cursor/skills/databases/references/postgresql-performance.md +527 -0
- package/.cursor/skills/databases/references/postgresql-psql-cli.md +467 -0
- package/.cursor/skills/databases/references/postgresql-queries.md +475 -0
- package/.cursor/skills/databases/scripts/.coverage +0 -0
- package/.cursor/skills/databases/scripts/db_backup.py +502 -0
- package/.cursor/skills/databases/scripts/db_migrate.py +414 -0
- package/.cursor/skills/databases/scripts/db_performance_check.py +444 -0
- package/.cursor/skills/databases/scripts/requirements.txt +20 -0
- package/.cursor/skills/databases/scripts/tests/coverage-db.json +1 -0
- package/.cursor/skills/databases/scripts/tests/requirements.txt +4 -0
- package/.cursor/skills/databases/scripts/tests/test_db_backup.py +340 -0
- package/.cursor/skills/databases/scripts/tests/test_db_migrate.py +277 -0
- package/.cursor/skills/databases/scripts/tests/test_db_performance_check.py +370 -0
- package/.cursor/skills/ddd-modular-monolith/README.md +300 -0
- package/.cursor/skills/debugging/SKILL.md +84 -0
- package/.cursor/skills/debugging/references/defense-in-depth.md +124 -0
- package/.cursor/skills/debugging/references/root-cause-tracing.md +122 -0
- package/.cursor/skills/debugging/references/systematic-debugging.md +102 -0
- package/.cursor/skills/debugging/references/verification.md +123 -0
- package/.cursor/skills/debugging/scripts/find-polluter.sh +63 -0
- package/.cursor/skills/debugging/scripts/find-polluter.test.md +102 -0
- package/.cursor/skills/devops/.env.example +76 -0
- package/.cursor/skills/devops/SKILL.md +285 -0
- package/.cursor/skills/devops/references/browser-rendering.md +305 -0
- package/.cursor/skills/devops/references/cloudflare-d1-kv.md +123 -0
- package/.cursor/skills/devops/references/cloudflare-platform.md +271 -0
- package/.cursor/skills/devops/references/cloudflare-r2-storage.md +280 -0
- package/.cursor/skills/devops/references/cloudflare-workers-advanced.md +312 -0
- package/.cursor/skills/devops/references/cloudflare-workers-apis.md +309 -0
- package/.cursor/skills/devops/references/cloudflare-workers-basics.md +418 -0
- package/.cursor/skills/devops/references/docker-basics.md +297 -0
- package/.cursor/skills/devops/references/docker-compose.md +292 -0
- package/.cursor/skills/devops/references/gcloud-platform.md +297 -0
- package/.cursor/skills/devops/references/gcloud-services.md +304 -0
- package/.cursor/skills/devops/scripts/cloudflare_deploy.py +269 -0
- package/.cursor/skills/devops/scripts/docker_optimize.py +320 -0
- package/.cursor/skills/devops/scripts/requirements.txt +20 -0
- package/.cursor/skills/devops/scripts/tests/requirements.txt +3 -0
- package/.cursor/skills/devops/scripts/tests/test_cloudflare_deploy.py +285 -0
- package/.cursor/skills/devops/scripts/tests/test_docker_optimize.py +436 -0
- package/.cursor/skills/docs-seeker/.env.example +15 -0
- package/.cursor/skills/docs-seeker/SKILL.md +97 -0
- package/.cursor/skills/docs-seeker/package.json +25 -0
- package/.cursor/skills/docs-seeker/references/advanced.md +79 -0
- package/.cursor/skills/docs-seeker/references/context7-patterns.md +68 -0
- package/.cursor/skills/docs-seeker/references/errors.md +68 -0
- package/.cursor/skills/docs-seeker/scripts/analyze-llms-txt.js +211 -0
- package/.cursor/skills/docs-seeker/scripts/detect-topic.js +172 -0
- package/.cursor/skills/docs-seeker/scripts/fetch-docs.js +213 -0
- package/.cursor/skills/docs-seeker/scripts/tests/run-tests.js +72 -0
- package/.cursor/skills/docs-seeker/scripts/tests/test-analyze-llms.js +119 -0
- package/.cursor/skills/docs-seeker/scripts/tests/test-detect-topic.js +112 -0
- package/.cursor/skills/docs-seeker/scripts/tests/test-fetch-docs.js +84 -0
- package/.cursor/skills/docs-seeker/scripts/utils/env-loader.js +94 -0
- package/.cursor/skills/docs-seeker/workflows/library-search.md +87 -0
- package/.cursor/skills/docs-seeker/workflows/repo-analysis.md +91 -0
- package/.cursor/skills/docs-seeker/workflows/topic-search.md +77 -0
- package/.cursor/skills/document-skills/docx/LICENSE.txt +30 -0
- package/.cursor/skills/document-skills/docx/SKILL.md +197 -0
- package/.cursor/skills/document-skills/docx/docx-js.md +350 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.cursor/skills/document-skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.cursor/skills/document-skills/docx/ooxml/scripts/pack.py +159 -0
- package/.cursor/skills/document-skills/docx/ooxml/scripts/unpack.py +29 -0
- package/.cursor/skills/document-skills/docx/ooxml/scripts/validate.py +69 -0
- package/.cursor/skills/document-skills/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/.cursor/skills/document-skills/docx/ooxml/scripts/validation/base.py +951 -0
- package/.cursor/skills/document-skills/docx/ooxml/scripts/validation/docx.py +274 -0
- package/.cursor/skills/document-skills/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/.cursor/skills/document-skills/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/.cursor/skills/document-skills/docx/ooxml.md +610 -0
- package/.cursor/skills/document-skills/docx/scripts/__init__.py +1 -0
- package/.cursor/skills/document-skills/docx/scripts/document.py +1276 -0
- package/.cursor/skills/document-skills/docx/scripts/templates/comments.xml +3 -0
- package/.cursor/skills/document-skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/.cursor/skills/document-skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/.cursor/skills/document-skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/.cursor/skills/document-skills/docx/scripts/templates/people.xml +3 -0
- package/.cursor/skills/document-skills/docx/scripts/utilities.py +374 -0
- package/.cursor/skills/document-skills/pdf/LICENSE.txt +30 -0
- package/.cursor/skills/document-skills/pdf/SKILL.md +294 -0
- package/.cursor/skills/document-skills/pdf/forms.md +205 -0
- package/.cursor/skills/document-skills/pdf/reference.md +612 -0
- package/.cursor/skills/document-skills/pdf/scripts/check_bounding_boxes.py +70 -0
- package/.cursor/skills/document-skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/.cursor/skills/document-skills/pdf/scripts/check_fillable_fields.py +12 -0
- package/.cursor/skills/document-skills/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/.cursor/skills/document-skills/pdf/scripts/create_validation_image.py +41 -0
- package/.cursor/skills/document-skills/pdf/scripts/extract_form_field_info.py +152 -0
- package/.cursor/skills/document-skills/pdf/scripts/fill_fillable_fields.py +114 -0
- package/.cursor/skills/document-skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/.cursor/skills/document-skills/pptx/LICENSE.txt +30 -0
- package/.cursor/skills/document-skills/pptx/SKILL.md +484 -0
- package/.cursor/skills/document-skills/pptx/html2pptx.md +625 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.cursor/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.cursor/skills/document-skills/pptx/ooxml/scripts/pack.py +159 -0
- package/.cursor/skills/document-skills/pptx/ooxml/scripts/unpack.py +29 -0
- package/.cursor/skills/document-skills/pptx/ooxml/scripts/validate.py +69 -0
- package/.cursor/skills/document-skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/.cursor/skills/document-skills/pptx/ooxml/scripts/validation/base.py +951 -0
- package/.cursor/skills/document-skills/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/.cursor/skills/document-skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/.cursor/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/.cursor/skills/document-skills/pptx/ooxml.md +427 -0
- package/.cursor/skills/document-skills/pptx/scripts/html2pptx.js +979 -0
- package/.cursor/skills/document-skills/pptx/scripts/inventory.py +1020 -0
- package/.cursor/skills/document-skills/pptx/scripts/rearrange.py +231 -0
- package/.cursor/skills/document-skills/pptx/scripts/replace.py +385 -0
- package/.cursor/skills/document-skills/pptx/scripts/thumbnail.py +450 -0
- package/.cursor/skills/document-skills/xlsx/LICENSE.txt +30 -0
- package/.cursor/skills/document-skills/xlsx/SKILL.md +289 -0
- package/.cursor/skills/document-skills/xlsx/recalc.py +178 -0
- package/.cursor/skills/frontend-design/SKILL.md +91 -0
- package/.cursor/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
- package/.cursor/skills/frontend-design/references/analysis-best-practices.md +80 -0
- package/.cursor/skills/frontend-design/references/analysis-prompts.md +141 -0
- package/.cursor/skills/frontend-design/references/analysis-techniques.md +118 -0
- package/.cursor/skills/frontend-design/references/animejs.md +396 -0
- package/.cursor/skills/frontend-design/references/asset-generation.md +337 -0
- package/.cursor/skills/frontend-design/references/design-extraction-overview.md +71 -0
- package/.cursor/skills/frontend-design/references/extraction-best-practices.md +141 -0
- package/.cursor/skills/frontend-design/references/extraction-output-templates.md +162 -0
- package/.cursor/skills/frontend-design/references/extraction-prompts.md +127 -0
- package/.cursor/skills/frontend-design/references/technical-accessibility.md +119 -0
- package/.cursor/skills/frontend-design/references/technical-best-practices.md +97 -0
- package/.cursor/skills/frontend-design/references/technical-optimization.md +44 -0
- package/.cursor/skills/frontend-design/references/technical-overview.md +90 -0
- package/.cursor/skills/frontend-design/references/technical-workflows.md +150 -0
- package/.cursor/skills/frontend-design/references/visual-analysis-overview.md +95 -0
- package/.cursor/skills/frontend-design-pro/SKILL.md +58 -0
- package/.cursor/skills/frontend-development/SKILL.md +399 -0
- package/.cursor/skills/frontend-development/resources/common-patterns.md +331 -0
- package/.cursor/skills/frontend-development/resources/complete-examples.md +872 -0
- package/.cursor/skills/frontend-development/resources/component-patterns.md +502 -0
- package/.cursor/skills/frontend-development/resources/data-fetching.md +767 -0
- package/.cursor/skills/frontend-development/resources/file-organization.md +502 -0
- package/.cursor/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/.cursor/skills/frontend-development/resources/performance.md +406 -0
- package/.cursor/skills/frontend-development/resources/routing-guide.md +364 -0
- package/.cursor/skills/frontend-development/resources/styling-guide.md +428 -0
- package/.cursor/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/.cursor/skills/google-adk-python/SKILL.md +237 -0
- package/.cursor/skills/install.ps1 +600 -0
- package/.cursor/skills/install.sh +685 -0
- package/.cursor/skills/mcp-builder/LICENSE.txt +202 -0
- package/.cursor/skills/mcp-builder/SKILL.md +328 -0
- package/.cursor/skills/mcp-builder/reference/evaluation.md +602 -0
- package/.cursor/skills/mcp-builder/reference/mcp_best_practices.md +915 -0
- package/.cursor/skills/mcp-builder/reference/node_mcp_server.md +916 -0
- package/.cursor/skills/mcp-builder/reference/python_mcp_server.md +752 -0
- package/.cursor/skills/mcp-builder/scripts/connections.py +151 -0
- package/.cursor/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/.cursor/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/.cursor/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/.cursor/skills/mcp-management/README.md +219 -0
- package/.cursor/skills/mcp-management/SKILL.md +209 -0
- package/.cursor/skills/mcp-management/assets/tools.json +3146 -0
- package/.cursor/skills/mcp-management/references/configuration.md +114 -0
- package/.cursor/skills/mcp-management/references/gemini-cli-integration.md +215 -0
- package/.cursor/skills/mcp-management/references/mcp-protocol.md +116 -0
- package/.cursor/skills/mcp-management/scripts/.env.example +10 -0
- package/.cursor/skills/mcp-management/scripts/cli.ts +195 -0
- package/.cursor/skills/mcp-management/scripts/mcp-client.ts +230 -0
- package/.cursor/skills/mcp-management/scripts/package.json +20 -0
- package/.cursor/skills/mcp-management/scripts/tsconfig.json +15 -0
- package/.cursor/skills/media-processing/SKILL.md +91 -0
- package/.cursor/skills/media-processing/references/common-workflows.md +132 -0
- package/.cursor/skills/media-processing/references/ffmpeg-encoding.md +358 -0
- package/.cursor/skills/media-processing/references/ffmpeg-filters.md +503 -0
- package/.cursor/skills/media-processing/references/ffmpeg-streaming.md +403 -0
- package/.cursor/skills/media-processing/references/format-compatibility.md +375 -0
- package/.cursor/skills/media-processing/references/imagemagick-batch.md +612 -0
- package/.cursor/skills/media-processing/references/imagemagick-editing.md +623 -0
- package/.cursor/skills/media-processing/references/rmbg-background-removal.md +66 -0
- package/.cursor/skills/media-processing/references/troubleshooting.md +109 -0
- package/.cursor/skills/media-processing/scripts/README.md +111 -0
- package/.cursor/skills/media-processing/scripts/batch-remove-background.sh +124 -0
- package/.cursor/skills/media-processing/scripts/batch_resize.py +342 -0
- package/.cursor/skills/media-processing/scripts/media_convert.py +311 -0
- package/.cursor/skills/media-processing/scripts/remove-background.sh +96 -0
- package/.cursor/skills/media-processing/scripts/remove-bg-node.js +158 -0
- package/.cursor/skills/media-processing/scripts/requirements.txt +24 -0
- package/.cursor/skills/media-processing/scripts/tests/.coverage +0 -0
- package/.cursor/skills/media-processing/scripts/tests/requirements.txt +2 -0
- package/.cursor/skills/media-processing/scripts/tests/test_batch_resize.py +372 -0
- package/.cursor/skills/media-processing/scripts/tests/test_media_convert.py +259 -0
- package/.cursor/skills/media-processing/scripts/tests/test_video_optimize.py +397 -0
- package/.cursor/skills/media-processing/scripts/video_optimize.py +414 -0
- package/.cursor/skills/mobile-development/SKILL.md +212 -0
- package/.cursor/skills/mobile-development/references/mobile-android.md +604 -0
- package/.cursor/skills/mobile-development/references/mobile-best-practices.md +545 -0
- package/.cursor/skills/mobile-development/references/mobile-debugging.md +1089 -0
- package/.cursor/skills/mobile-development/references/mobile-frameworks.md +465 -0
- package/.cursor/skills/mobile-development/references/mobile-ios.md +496 -0
- package/.cursor/skills/mobile-development/references/mobile-mindset.md +544 -0
- package/.cursor/skills/payment-integration/README.md +185 -0
- package/.cursor/skills/payment-integration/SKILL.md +118 -0
- package/.cursor/skills/payment-integration/references/polar/benefits.md +396 -0
- package/.cursor/skills/payment-integration/references/polar/best-practices.md +482 -0
- package/.cursor/skills/payment-integration/references/polar/checkouts.md +266 -0
- package/.cursor/skills/payment-integration/references/polar/overview.md +184 -0
- package/.cursor/skills/payment-integration/references/polar/products.md +244 -0
- package/.cursor/skills/payment-integration/references/polar/sdk.md +436 -0
- package/.cursor/skills/payment-integration/references/polar/subscriptions.md +340 -0
- package/.cursor/skills/payment-integration/references/polar/webhooks.md +405 -0
- package/.cursor/skills/payment-integration/references/sepay/api.md +140 -0
- package/.cursor/skills/payment-integration/references/sepay/best-practices.md +337 -0
- package/.cursor/skills/payment-integration/references/sepay/overview.md +138 -0
- package/.cursor/skills/payment-integration/references/sepay/qr-codes.md +228 -0
- package/.cursor/skills/payment-integration/references/sepay/sdk.md +213 -0
- package/.cursor/skills/payment-integration/references/sepay/webhooks.md +208 -0
- package/.cursor/skills/payment-integration/scripts/.env.example +20 -0
- package/.cursor/skills/payment-integration/scripts/checkout-helper.js +244 -0
- package/.cursor/skills/payment-integration/scripts/package.json +17 -0
- package/.cursor/skills/payment-integration/scripts/polar-webhook-verify.js +202 -0
- package/.cursor/skills/payment-integration/scripts/sepay-webhook-verify.js +193 -0
- package/.cursor/skills/payment-integration/scripts/test-scripts.js +237 -0
- package/.cursor/skills/planning/SKILL.md +121 -0
- package/.cursor/skills/planning/references/codebase-understanding.md +62 -0
- package/.cursor/skills/planning/references/output-standards.md +87 -0
- package/.cursor/skills/planning/references/plan-organization.md +123 -0
- package/.cursor/skills/planning/references/research-phase.md +49 -0
- package/.cursor/skills/planning/references/solution-design.md +63 -0
- package/.cursor/skills/problem-solving/SKILL.md +96 -0
- package/.cursor/skills/problem-solving/references/attribution.md +69 -0
- package/.cursor/skills/problem-solving/references/collision-zone-thinking.md +79 -0
- package/.cursor/skills/problem-solving/references/inversion-exercise.md +91 -0
- package/.cursor/skills/problem-solving/references/meta-pattern-recognition.md +87 -0
- package/.cursor/skills/problem-solving/references/scale-game.md +95 -0
- package/.cursor/skills/problem-solving/references/simplification-cascades.md +80 -0
- package/.cursor/skills/problem-solving/references/when-stuck.md +72 -0
- package/.cursor/skills/repomix/SKILL.md +247 -0
- package/.cursor/skills/repomix/references/configuration.md +211 -0
- package/.cursor/skills/repomix/references/usage-patterns.md +232 -0
- package/.cursor/skills/repomix/scripts/.coverage +0 -0
- package/.cursor/skills/repomix/scripts/README.md +179 -0
- package/.cursor/skills/repomix/scripts/repomix_batch.py +455 -0
- package/.cursor/skills/repomix/scripts/repos.example.json +15 -0
- package/.cursor/skills/repomix/scripts/requirements.txt +15 -0
- package/.cursor/skills/repomix/scripts/tests/test_repomix_batch.py +531 -0
- package/.cursor/skills/research/SKILL.md +168 -0
- package/.cursor/skills/sequential-thinking/.env.example +8 -0
- package/.cursor/skills/sequential-thinking/README.md +183 -0
- package/.cursor/skills/sequential-thinking/SKILL.md +94 -0
- package/.cursor/skills/sequential-thinking/package.json +31 -0
- package/.cursor/skills/sequential-thinking/references/advanced-strategies.md +79 -0
- package/.cursor/skills/sequential-thinking/references/advanced-techniques.md +76 -0
- package/.cursor/skills/sequential-thinking/references/core-patterns.md +95 -0
- package/.cursor/skills/sequential-thinking/references/examples-api.md +88 -0
- package/.cursor/skills/sequential-thinking/references/examples-architecture.md +94 -0
- package/.cursor/skills/sequential-thinking/references/examples-debug.md +90 -0
- package/.cursor/skills/sequential-thinking/scripts/format-thought.js +159 -0
- package/.cursor/skills/sequential-thinking/scripts/process-thought.js +236 -0
- package/.cursor/skills/sequential-thinking/tests/format-thought.test.js +133 -0
- package/.cursor/skills/sequential-thinking/tests/process-thought.test.js +215 -0
- package/.cursor/skills/shopify/README.md +66 -0
- package/.cursor/skills/shopify/SKILL.md +319 -0
- package/.cursor/skills/shopify/references/app-development.md +470 -0
- package/.cursor/skills/shopify/references/extensions.md +493 -0
- package/.cursor/skills/shopify/references/themes.md +498 -0
- package/.cursor/skills/shopify/scripts/.coverage +0 -0
- package/.cursor/skills/shopify/scripts/requirements.txt +19 -0
- package/.cursor/skills/shopify/scripts/shopify_init.py +423 -0
- package/.cursor/skills/shopify/scripts/tests/.coverage +0 -0
- package/.cursor/skills/shopify/scripts/tests/test_shopify_init.py +385 -0
- package/.cursor/skills/skill-creator/LICENSE.txt +202 -0
- package/.cursor/skills/skill-creator/SKILL.md +266 -0
- package/.cursor/skills/skill-creator/scripts/init_skill.py +303 -0
- package/.cursor/skills/skill-creator/scripts/package_skill.py +110 -0
- package/.cursor/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/.cursor/skills/template-skill/SKILL.md +6 -0
- package/.cursor/skills/threejs/SKILL.md +89 -0
- package/.cursor/skills/threejs/references/01-getting-started.md +177 -0
- package/.cursor/skills/threejs/references/02-loaders.md +169 -0
- package/.cursor/skills/threejs/references/03-textures.md +170 -0
- package/.cursor/skills/threejs/references/04-cameras.md +195 -0
- package/.cursor/skills/threejs/references/05-lights.md +183 -0
- package/.cursor/skills/threejs/references/06-animations.md +214 -0
- package/.cursor/skills/threejs/references/07-math.md +260 -0
- package/.cursor/skills/threejs/references/08-interaction.md +267 -0
- package/.cursor/skills/threejs/references/09-postprocessing.md +240 -0
- package/.cursor/skills/threejs/references/10-controls.md +259 -0
- package/.cursor/skills/threejs/references/11-materials-advanced.md +270 -0
- package/.cursor/skills/threejs/references/12-performance.md +269 -0
- package/.cursor/skills/threejs/references/13-node-materials.md +298 -0
- package/.cursor/skills/threejs/references/14-physics-vr.md +304 -0
- package/.cursor/skills/threejs/references/15-specialized-loaders.md +333 -0
- package/.cursor/skills/threejs/references/16-webgpu.md +302 -0
- package/.cursor/skills/ui-styling/LICENSE.txt +202 -0
- package/.cursor/skills/ui-styling/SKILL.md +321 -0
- package/.cursor/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/.cursor/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/.cursor/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/.cursor/skills/ui-styling/references/canvas-design-system.md +320 -0
- package/.cursor/skills/ui-styling/references/shadcn-accessibility.md +471 -0
- package/.cursor/skills/ui-styling/references/shadcn-components.md +424 -0
- package/.cursor/skills/ui-styling/references/shadcn-theming.md +373 -0
- package/.cursor/skills/ui-styling/references/tailwind-customization.md +483 -0
- package/.cursor/skills/ui-styling/references/tailwind-responsive.md +382 -0
- package/.cursor/skills/ui-styling/references/tailwind-utilities.md +455 -0
- package/.cursor/skills/ui-styling/scripts/.coverage +0 -0
- package/.cursor/skills/ui-styling/scripts/requirements.txt +17 -0
- package/.cursor/skills/ui-styling/scripts/shadcn_add.py +292 -0
- package/.cursor/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
- package/.cursor/skills/ui-styling/scripts/tests/coverage-ui.json +1 -0
- package/.cursor/skills/ui-styling/scripts/tests/requirements.txt +3 -0
- package/.cursor/skills/ui-styling/scripts/tests/test_shadcn_add.py +266 -0
- package/.cursor/skills/ui-styling/scripts/tests/test_tailwind_config_gen.py +336 -0
- package/.cursor/skills/ui-ux-pro-max/SKILL.md +227 -0
- package/.cursor/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.cursor/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.cursor/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.cursor/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.cursor/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.cursor/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.cursor/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +51 -0
- package/.cursor/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.cursor/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.cursor/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.cursor/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.cursor/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.cursor/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.cursor/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.cursor/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.cursor/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.cursor/skills/ui-ux-pro-max/scripts/core.py +236 -0
- package/.cursor/skills/ui-ux-pro-max/scripts/search.py +61 -0
- package/.cursor/skills/web-frameworks/SKILL.md +324 -0
- package/.cursor/skills/web-frameworks/references/nextjs-app-router.md +465 -0
- package/.cursor/skills/web-frameworks/references/nextjs-data-fetching.md +459 -0
- package/.cursor/skills/web-frameworks/references/nextjs-optimization.md +511 -0
- package/.cursor/skills/web-frameworks/references/nextjs-server-components.md +495 -0
- package/.cursor/skills/web-frameworks/references/remix-icon-integration.md +603 -0
- package/.cursor/skills/web-frameworks/references/turborepo-caching.md +551 -0
- package/.cursor/skills/web-frameworks/references/turborepo-pipelines.md +517 -0
- package/.cursor/skills/web-frameworks/references/turborepo-setup.md +542 -0
- package/.cursor/skills/web-frameworks/scripts/.coverage +0 -0
- package/.cursor/skills/web-frameworks/scripts/__init__.py +0 -0
- package/.cursor/skills/web-frameworks/scripts/nextjs_init.py +547 -0
- package/.cursor/skills/web-frameworks/scripts/requirements.txt +16 -0
- package/.cursor/skills/web-frameworks/scripts/tests/coverage-web.json +1 -0
- package/.cursor/skills/web-frameworks/scripts/tests/requirements.txt +3 -0
- package/.cursor/skills/web-frameworks/scripts/tests/test_nextjs_init.py +319 -0
- package/.cursor/skills/web-frameworks/scripts/tests/test_turborepo_migrate.py +374 -0
- package/.cursor/skills/web-frameworks/scripts/turborepo_migrate.py +394 -0
- package/.cursor/statusline.cjs +274 -0
- package/.cursor/statusline.ps1 +318 -0
- package/.cursor/statusline.sh +165 -0
- package/.cursor/team.yaml +154 -0
- package/.cursor/workflows/development-rules.md +42 -0
- package/.cursor/workflows/documentation-management.md +121 -0
- package/.cursor/workflows/feature.yaml +51 -0
- package/.cursor/workflows/hotfix.yaml +35 -0
- package/.cursor/workflows/orchestration-protocol.md +16 -0
- package/.cursor/workflows/primary-workflow.md +45 -0
- package/.cursor/workflows/release.yaml +61 -0
- package/.cursorrules +106 -0
- package/CHANGELOG.md +58 -0
- package/CURSOR.md +191 -0
- package/LICENSE +18 -0
- package/README.md +132 -0
- package/docs/AI_CONTRACT.md +150 -0
- package/docs/ALL_COMMANDS.md +94 -0
- package/docs/ARCHITECTURE.md +186 -0
- package/docs/CODEBASE.md +178 -0
- package/docs/CODE_STYLE.md +333 -0
- package/docs/COMMAND_MAPPING.md +217 -0
- package/docs/FAQ.md +174 -0
- package/docs/ONBOARDING.md +111 -0
- package/docs/ORCHESTRATION.md +345 -0
- package/docs/ORCHESTRATION_RUNTIME.md +173 -0
- package/docs/PROJECT.md +140 -0
- package/docs/ROADMAP.md +184 -0
- package/docs/UX_MODES.md +173 -0
- package/docs/WALKTHROUGH.md +192 -0
- package/docs/WORKFLOW.md +386 -0
- package/package.json +71 -0
- package/presets/MIGRATION_GUIDE.md +270 -0
- package/presets/enterprise/.cursorrules +131 -0
- package/presets/enterprise/README.md +204 -0
- package/presets/enterprise/contract.json +93 -0
- package/presets/professional/.cursorrules +113 -0
- package/presets/professional/README.md +140 -0
- package/presets/professional/contract.json +72 -0
- package/presets/rapid/contract.json +53 -0
- package/presets/rapid-mvp/.cursorrules +98 -0
- package/presets/rapid-mvp/README.md +107 -0
- package/scripts/check-setup.ps1 +59 -0
- package/scripts/install-hooks.ps1 +60 -0
- package/scripts/install-hooks.sh +54 -0
- package/scripts/install.ps1 +204 -0
- package/scripts/install.sh +208 -0
- package/scripts/new-project.ps1 +101 -0
- package/scripts/new-project.sh +61 -0
- package/scripts/setup-enterprise.ps1 +319 -0
- package/scripts/setup-enterprise.sh +259 -0
- package/scripts/setup-professional.ps1 +232 -0
- package/scripts/setup-professional.sh +146 -0
- package/scripts/setup-rapid.ps1 +138 -0
- package/scripts/setup-rapid.sh +134 -0
- package/src/cli.js +449 -0
- package/src/commands/doctor.js +106 -0
- package/src/commands/init.js +340 -0
- package/src/commands/memory.js +158 -0
- package/src/commands/uninstall.js +152 -0
- package/src/commands/update.js +163 -0
- package/src/lib/configManager.js +200 -0
- package/src/lib/contextDatabase.js +362 -0
- package/src/lib/detector.js +140 -0
- package/src/lib/memoryManager.js +250 -0
- package/src/lib/profiles.js +100 -0
- package/src/lib/sizeCalculator.js +121 -0
- package/src/lib/skillPacks.js +109 -0
|
@@ -0,0 +1,1020 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Extract structured text content from PowerPoint presentations.
|
|
4
|
+
|
|
5
|
+
This module provides functionality to:
|
|
6
|
+
- Extract all text content from PowerPoint shapes
|
|
7
|
+
- Preserve paragraph formatting (alignment, bullets, fonts, spacing)
|
|
8
|
+
- Handle nested GroupShapes recursively with correct absolute positions
|
|
9
|
+
- Sort shapes by visual position on slides
|
|
10
|
+
- Filter out slide numbers and non-content placeholders
|
|
11
|
+
- Export to JSON with clean, structured data
|
|
12
|
+
|
|
13
|
+
Classes:
|
|
14
|
+
ParagraphData: Represents a text paragraph with formatting
|
|
15
|
+
ShapeData: Represents a shape with position and text content
|
|
16
|
+
|
|
17
|
+
Main Functions:
|
|
18
|
+
extract_text_inventory: Extract all text from a presentation
|
|
19
|
+
save_inventory: Save extracted data to JSON
|
|
20
|
+
|
|
21
|
+
Usage:
|
|
22
|
+
python inventory.py input.pptx output.json
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
import argparse
|
|
26
|
+
import json
|
|
27
|
+
import platform
|
|
28
|
+
import sys
|
|
29
|
+
from dataclasses import dataclass
|
|
30
|
+
from pathlib import Path
|
|
31
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
32
|
+
|
|
33
|
+
from PIL import Image, ImageDraw, ImageFont
|
|
34
|
+
from pptx import Presentation
|
|
35
|
+
from pptx.enum.text import PP_ALIGN
|
|
36
|
+
from pptx.shapes.base import BaseShape
|
|
37
|
+
|
|
38
|
+
# Type aliases for cleaner signatures
|
|
39
|
+
JsonValue = Union[str, int, float, bool, None]
|
|
40
|
+
ParagraphDict = Dict[str, JsonValue]
|
|
41
|
+
ShapeDict = Dict[
|
|
42
|
+
str, Union[str, float, bool, List[ParagraphDict], List[str], Dict[str, Any], None]
|
|
43
|
+
]
|
|
44
|
+
InventoryData = Dict[
|
|
45
|
+
str, Dict[str, "ShapeData"]
|
|
46
|
+
] # Dict of slide_id -> {shape_id -> ShapeData}
|
|
47
|
+
InventoryDict = Dict[str, Dict[str, ShapeDict]] # JSON-serializable inventory
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def main():
|
|
51
|
+
"""Main entry point for command-line usage."""
|
|
52
|
+
parser = argparse.ArgumentParser(
|
|
53
|
+
description="Extract text inventory from PowerPoint with proper GroupShape support.",
|
|
54
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
55
|
+
epilog="""
|
|
56
|
+
Examples:
|
|
57
|
+
python inventory.py presentation.pptx inventory.json
|
|
58
|
+
Extracts text inventory with correct absolute positions for grouped shapes
|
|
59
|
+
|
|
60
|
+
python inventory.py presentation.pptx inventory.json --issues-only
|
|
61
|
+
Extracts only text shapes that have overflow or overlap issues
|
|
62
|
+
|
|
63
|
+
The output JSON includes:
|
|
64
|
+
- All text content organized by slide and shape
|
|
65
|
+
- Correct absolute positions for shapes in groups
|
|
66
|
+
- Visual position and size in inches
|
|
67
|
+
- Paragraph properties and formatting
|
|
68
|
+
- Issue detection: text overflow and shape overlaps
|
|
69
|
+
""",
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
parser.add_argument("input", help="Input PowerPoint file (.pptx)")
|
|
73
|
+
parser.add_argument("output", help="Output JSON file for inventory")
|
|
74
|
+
parser.add_argument(
|
|
75
|
+
"--issues-only",
|
|
76
|
+
action="store_true",
|
|
77
|
+
help="Include only text shapes that have overflow or overlap issues",
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
args = parser.parse_args()
|
|
81
|
+
|
|
82
|
+
input_path = Path(args.input)
|
|
83
|
+
if not input_path.exists():
|
|
84
|
+
print(f"Error: Input file not found: {args.input}")
|
|
85
|
+
sys.exit(1)
|
|
86
|
+
|
|
87
|
+
if not input_path.suffix.lower() == ".pptx":
|
|
88
|
+
print("Error: Input must be a PowerPoint file (.pptx)")
|
|
89
|
+
sys.exit(1)
|
|
90
|
+
|
|
91
|
+
try:
|
|
92
|
+
print(f"Extracting text inventory from: {args.input}")
|
|
93
|
+
if args.issues_only:
|
|
94
|
+
print(
|
|
95
|
+
"Filtering to include only text shapes with issues (overflow/overlap)"
|
|
96
|
+
)
|
|
97
|
+
inventory = extract_text_inventory(input_path, issues_only=args.issues_only)
|
|
98
|
+
|
|
99
|
+
output_path = Path(args.output)
|
|
100
|
+
output_path.parent.mkdir(parents=True, exist_ok=True)
|
|
101
|
+
save_inventory(inventory, output_path)
|
|
102
|
+
|
|
103
|
+
print(f"Output saved to: {args.output}")
|
|
104
|
+
|
|
105
|
+
# Report statistics
|
|
106
|
+
total_slides = len(inventory)
|
|
107
|
+
total_shapes = sum(len(shapes) for shapes in inventory.values())
|
|
108
|
+
if args.issues_only:
|
|
109
|
+
if total_shapes > 0:
|
|
110
|
+
print(
|
|
111
|
+
f"Found {total_shapes} text elements with issues in {total_slides} slides"
|
|
112
|
+
)
|
|
113
|
+
else:
|
|
114
|
+
print("No issues discovered")
|
|
115
|
+
else:
|
|
116
|
+
print(
|
|
117
|
+
f"Found text in {total_slides} slides with {total_shapes} text elements"
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
except Exception as e:
|
|
121
|
+
print(f"Error processing presentation: {e}")
|
|
122
|
+
import traceback
|
|
123
|
+
|
|
124
|
+
traceback.print_exc()
|
|
125
|
+
sys.exit(1)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
@dataclass
|
|
129
|
+
class ShapeWithPosition:
|
|
130
|
+
"""A shape with its absolute position on the slide."""
|
|
131
|
+
|
|
132
|
+
shape: BaseShape
|
|
133
|
+
absolute_left: int # in EMUs
|
|
134
|
+
absolute_top: int # in EMUs
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class ParagraphData:
|
|
138
|
+
"""Data structure for paragraph properties extracted from a PowerPoint paragraph."""
|
|
139
|
+
|
|
140
|
+
def __init__(self, paragraph: Any):
|
|
141
|
+
"""Initialize from a PowerPoint paragraph object.
|
|
142
|
+
|
|
143
|
+
Args:
|
|
144
|
+
paragraph: The PowerPoint paragraph object
|
|
145
|
+
"""
|
|
146
|
+
self.text: str = paragraph.text.strip()
|
|
147
|
+
self.bullet: bool = False
|
|
148
|
+
self.level: Optional[int] = None
|
|
149
|
+
self.alignment: Optional[str] = None
|
|
150
|
+
self.space_before: Optional[float] = None
|
|
151
|
+
self.space_after: Optional[float] = None
|
|
152
|
+
self.font_name: Optional[str] = None
|
|
153
|
+
self.font_size: Optional[float] = None
|
|
154
|
+
self.bold: Optional[bool] = None
|
|
155
|
+
self.italic: Optional[bool] = None
|
|
156
|
+
self.underline: Optional[bool] = None
|
|
157
|
+
self.color: Optional[str] = None
|
|
158
|
+
self.theme_color: Optional[str] = None
|
|
159
|
+
self.line_spacing: Optional[float] = None
|
|
160
|
+
|
|
161
|
+
# Check for bullet formatting
|
|
162
|
+
if (
|
|
163
|
+
hasattr(paragraph, "_p")
|
|
164
|
+
and paragraph._p is not None
|
|
165
|
+
and paragraph._p.pPr is not None
|
|
166
|
+
):
|
|
167
|
+
pPr = paragraph._p.pPr
|
|
168
|
+
ns = "{http://schemas.openxmlformats.org/drawingml/2006/main}"
|
|
169
|
+
if (
|
|
170
|
+
pPr.find(f"{ns}buChar") is not None
|
|
171
|
+
or pPr.find(f"{ns}buAutoNum") is not None
|
|
172
|
+
):
|
|
173
|
+
self.bullet = True
|
|
174
|
+
if hasattr(paragraph, "level"):
|
|
175
|
+
self.level = paragraph.level
|
|
176
|
+
|
|
177
|
+
# Add alignment if not LEFT (default)
|
|
178
|
+
if hasattr(paragraph, "alignment") and paragraph.alignment is not None:
|
|
179
|
+
alignment_map = {
|
|
180
|
+
PP_ALIGN.CENTER: "CENTER",
|
|
181
|
+
PP_ALIGN.RIGHT: "RIGHT",
|
|
182
|
+
PP_ALIGN.JUSTIFY: "JUSTIFY",
|
|
183
|
+
}
|
|
184
|
+
if paragraph.alignment in alignment_map:
|
|
185
|
+
self.alignment = alignment_map[paragraph.alignment]
|
|
186
|
+
|
|
187
|
+
# Add spacing properties if set
|
|
188
|
+
if hasattr(paragraph, "space_before") and paragraph.space_before:
|
|
189
|
+
self.space_before = paragraph.space_before.pt
|
|
190
|
+
if hasattr(paragraph, "space_after") and paragraph.space_after:
|
|
191
|
+
self.space_after = paragraph.space_after.pt
|
|
192
|
+
|
|
193
|
+
# Extract font properties from first run
|
|
194
|
+
if paragraph.runs:
|
|
195
|
+
first_run = paragraph.runs[0]
|
|
196
|
+
if hasattr(first_run, "font"):
|
|
197
|
+
font = first_run.font
|
|
198
|
+
if font.name:
|
|
199
|
+
self.font_name = font.name
|
|
200
|
+
if font.size:
|
|
201
|
+
self.font_size = font.size.pt
|
|
202
|
+
if font.bold is not None:
|
|
203
|
+
self.bold = font.bold
|
|
204
|
+
if font.italic is not None:
|
|
205
|
+
self.italic = font.italic
|
|
206
|
+
if font.underline is not None:
|
|
207
|
+
self.underline = font.underline
|
|
208
|
+
|
|
209
|
+
# Handle color - both RGB and theme colors
|
|
210
|
+
try:
|
|
211
|
+
# Try RGB color first
|
|
212
|
+
if font.color.rgb:
|
|
213
|
+
self.color = str(font.color.rgb)
|
|
214
|
+
except (AttributeError, TypeError):
|
|
215
|
+
# Fall back to theme color
|
|
216
|
+
try:
|
|
217
|
+
if font.color.theme_color:
|
|
218
|
+
self.theme_color = font.color.theme_color.name
|
|
219
|
+
except (AttributeError, TypeError):
|
|
220
|
+
pass
|
|
221
|
+
|
|
222
|
+
# Add line spacing if set
|
|
223
|
+
if hasattr(paragraph, "line_spacing") and paragraph.line_spacing is not None:
|
|
224
|
+
if hasattr(paragraph.line_spacing, "pt"):
|
|
225
|
+
self.line_spacing = round(paragraph.line_spacing.pt, 2)
|
|
226
|
+
else:
|
|
227
|
+
# Multiplier - convert to points
|
|
228
|
+
font_size = self.font_size if self.font_size else 12.0
|
|
229
|
+
self.line_spacing = round(paragraph.line_spacing * font_size, 2)
|
|
230
|
+
|
|
231
|
+
def to_dict(self) -> ParagraphDict:
|
|
232
|
+
"""Convert to dictionary for JSON serialization, excluding None values."""
|
|
233
|
+
result: ParagraphDict = {"text": self.text}
|
|
234
|
+
|
|
235
|
+
# Add optional fields only if they have values
|
|
236
|
+
if self.bullet:
|
|
237
|
+
result["bullet"] = self.bullet
|
|
238
|
+
if self.level is not None:
|
|
239
|
+
result["level"] = self.level
|
|
240
|
+
if self.alignment:
|
|
241
|
+
result["alignment"] = self.alignment
|
|
242
|
+
if self.space_before is not None:
|
|
243
|
+
result["space_before"] = self.space_before
|
|
244
|
+
if self.space_after is not None:
|
|
245
|
+
result["space_after"] = self.space_after
|
|
246
|
+
if self.font_name:
|
|
247
|
+
result["font_name"] = self.font_name
|
|
248
|
+
if self.font_size is not None:
|
|
249
|
+
result["font_size"] = self.font_size
|
|
250
|
+
if self.bold is not None:
|
|
251
|
+
result["bold"] = self.bold
|
|
252
|
+
if self.italic is not None:
|
|
253
|
+
result["italic"] = self.italic
|
|
254
|
+
if self.underline is not None:
|
|
255
|
+
result["underline"] = self.underline
|
|
256
|
+
if self.color:
|
|
257
|
+
result["color"] = self.color
|
|
258
|
+
if self.theme_color:
|
|
259
|
+
result["theme_color"] = self.theme_color
|
|
260
|
+
if self.line_spacing is not None:
|
|
261
|
+
result["line_spacing"] = self.line_spacing
|
|
262
|
+
|
|
263
|
+
return result
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
class ShapeData:
|
|
267
|
+
"""Data structure for shape properties extracted from a PowerPoint shape."""
|
|
268
|
+
|
|
269
|
+
@staticmethod
|
|
270
|
+
def emu_to_inches(emu: int) -> float:
|
|
271
|
+
"""Convert EMUs (English Metric Units) to inches."""
|
|
272
|
+
return emu / 914400.0
|
|
273
|
+
|
|
274
|
+
@staticmethod
|
|
275
|
+
def inches_to_pixels(inches: float, dpi: int = 96) -> int:
|
|
276
|
+
"""Convert inches to pixels at given DPI."""
|
|
277
|
+
return int(inches * dpi)
|
|
278
|
+
|
|
279
|
+
@staticmethod
|
|
280
|
+
def get_font_path(font_name: str) -> Optional[str]:
|
|
281
|
+
"""Get the font file path for a given font name.
|
|
282
|
+
|
|
283
|
+
Args:
|
|
284
|
+
font_name: Name of the font (e.g., 'Arial', 'Calibri')
|
|
285
|
+
|
|
286
|
+
Returns:
|
|
287
|
+
Path to the font file, or None if not found
|
|
288
|
+
"""
|
|
289
|
+
system = platform.system()
|
|
290
|
+
|
|
291
|
+
# Common font file variations to try
|
|
292
|
+
font_variations = [
|
|
293
|
+
font_name,
|
|
294
|
+
font_name.lower(),
|
|
295
|
+
font_name.replace(" ", ""),
|
|
296
|
+
font_name.replace(" ", "-"),
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
# Define font directories and extensions by platform
|
|
300
|
+
if system == "Darwin": # macOS
|
|
301
|
+
font_dirs = [
|
|
302
|
+
"/System/Library/Fonts/",
|
|
303
|
+
"/Library/Fonts/",
|
|
304
|
+
"~/Library/Fonts/",
|
|
305
|
+
]
|
|
306
|
+
extensions = [".ttf", ".otf", ".ttc", ".dfont"]
|
|
307
|
+
else: # Linux
|
|
308
|
+
font_dirs = [
|
|
309
|
+
"/usr/share/fonts/truetype/",
|
|
310
|
+
"/usr/local/share/fonts/",
|
|
311
|
+
"~/.fonts/",
|
|
312
|
+
]
|
|
313
|
+
extensions = [".ttf", ".otf"]
|
|
314
|
+
|
|
315
|
+
# Try to find the font file
|
|
316
|
+
from pathlib import Path
|
|
317
|
+
|
|
318
|
+
for font_dir in font_dirs:
|
|
319
|
+
font_dir_path = Path(font_dir).expanduser()
|
|
320
|
+
if not font_dir_path.exists():
|
|
321
|
+
continue
|
|
322
|
+
|
|
323
|
+
# First try exact matches
|
|
324
|
+
for variant in font_variations:
|
|
325
|
+
for ext in extensions:
|
|
326
|
+
font_path = font_dir_path / f"{variant}{ext}"
|
|
327
|
+
if font_path.exists():
|
|
328
|
+
return str(font_path)
|
|
329
|
+
|
|
330
|
+
# Then try fuzzy matching - find files containing the font name
|
|
331
|
+
try:
|
|
332
|
+
for file_path in font_dir_path.iterdir():
|
|
333
|
+
if file_path.is_file():
|
|
334
|
+
file_name_lower = file_path.name.lower()
|
|
335
|
+
font_name_lower = font_name.lower().replace(" ", "")
|
|
336
|
+
if font_name_lower in file_name_lower and any(
|
|
337
|
+
file_name_lower.endswith(ext) for ext in extensions
|
|
338
|
+
):
|
|
339
|
+
return str(file_path)
|
|
340
|
+
except (OSError, PermissionError):
|
|
341
|
+
continue
|
|
342
|
+
|
|
343
|
+
return None
|
|
344
|
+
|
|
345
|
+
@staticmethod
|
|
346
|
+
def get_slide_dimensions(slide: Any) -> tuple[Optional[int], Optional[int]]:
|
|
347
|
+
"""Get slide dimensions from slide object.
|
|
348
|
+
|
|
349
|
+
Args:
|
|
350
|
+
slide: Slide object
|
|
351
|
+
|
|
352
|
+
Returns:
|
|
353
|
+
Tuple of (width_emu, height_emu) or (None, None) if not found
|
|
354
|
+
"""
|
|
355
|
+
try:
|
|
356
|
+
prs = slide.part.package.presentation_part.presentation
|
|
357
|
+
return prs.slide_width, prs.slide_height
|
|
358
|
+
except (AttributeError, TypeError):
|
|
359
|
+
return None, None
|
|
360
|
+
|
|
361
|
+
@staticmethod
|
|
362
|
+
def get_default_font_size(shape: BaseShape, slide_layout: Any) -> Optional[float]:
|
|
363
|
+
"""Extract default font size from slide layout for a placeholder shape.
|
|
364
|
+
|
|
365
|
+
Args:
|
|
366
|
+
shape: Placeholder shape
|
|
367
|
+
slide_layout: Slide layout containing the placeholder definition
|
|
368
|
+
|
|
369
|
+
Returns:
|
|
370
|
+
Default font size in points, or None if not found
|
|
371
|
+
"""
|
|
372
|
+
try:
|
|
373
|
+
if not hasattr(shape, "placeholder_format"):
|
|
374
|
+
return None
|
|
375
|
+
|
|
376
|
+
shape_type = shape.placeholder_format.type # type: ignore
|
|
377
|
+
for layout_placeholder in slide_layout.placeholders:
|
|
378
|
+
if layout_placeholder.placeholder_format.type == shape_type:
|
|
379
|
+
# Find first defRPr element with sz (size) attribute
|
|
380
|
+
for elem in layout_placeholder.element.iter():
|
|
381
|
+
if "defRPr" in elem.tag and (sz := elem.get("sz")):
|
|
382
|
+
return float(sz) / 100.0 # Convert EMUs to points
|
|
383
|
+
break
|
|
384
|
+
except Exception:
|
|
385
|
+
pass
|
|
386
|
+
return None
|
|
387
|
+
|
|
388
|
+
def __init__(
|
|
389
|
+
self,
|
|
390
|
+
shape: BaseShape,
|
|
391
|
+
absolute_left: Optional[int] = None,
|
|
392
|
+
absolute_top: Optional[int] = None,
|
|
393
|
+
slide: Optional[Any] = None,
|
|
394
|
+
):
|
|
395
|
+
"""Initialize from a PowerPoint shape object.
|
|
396
|
+
|
|
397
|
+
Args:
|
|
398
|
+
shape: The PowerPoint shape object (should be pre-validated)
|
|
399
|
+
absolute_left: Absolute left position in EMUs (for shapes in groups)
|
|
400
|
+
absolute_top: Absolute top position in EMUs (for shapes in groups)
|
|
401
|
+
slide: Optional slide object to get dimensions and layout information
|
|
402
|
+
"""
|
|
403
|
+
self.shape = shape # Store reference to original shape
|
|
404
|
+
self.shape_id: str = "" # Will be set after sorting
|
|
405
|
+
|
|
406
|
+
# Get slide dimensions from slide object
|
|
407
|
+
self.slide_width_emu, self.slide_height_emu = (
|
|
408
|
+
self.get_slide_dimensions(slide) if slide else (None, None)
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
# Get placeholder type if applicable
|
|
412
|
+
self.placeholder_type: Optional[str] = None
|
|
413
|
+
self.default_font_size: Optional[float] = None
|
|
414
|
+
if hasattr(shape, "is_placeholder") and shape.is_placeholder: # type: ignore
|
|
415
|
+
if shape.placeholder_format and shape.placeholder_format.type: # type: ignore
|
|
416
|
+
self.placeholder_type = (
|
|
417
|
+
str(shape.placeholder_format.type).split(".")[-1].split(" ")[0] # type: ignore
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
# Get default font size from layout
|
|
421
|
+
if slide and hasattr(slide, "slide_layout"):
|
|
422
|
+
self.default_font_size = self.get_default_font_size(
|
|
423
|
+
shape, slide.slide_layout
|
|
424
|
+
)
|
|
425
|
+
|
|
426
|
+
# Get position information
|
|
427
|
+
# Use absolute positions if provided (for shapes in groups), otherwise use shape's position
|
|
428
|
+
left_emu = (
|
|
429
|
+
absolute_left
|
|
430
|
+
if absolute_left is not None
|
|
431
|
+
else (shape.left if hasattr(shape, "left") else 0)
|
|
432
|
+
)
|
|
433
|
+
top_emu = (
|
|
434
|
+
absolute_top
|
|
435
|
+
if absolute_top is not None
|
|
436
|
+
else (shape.top if hasattr(shape, "top") else 0)
|
|
437
|
+
)
|
|
438
|
+
|
|
439
|
+
self.left: float = round(self.emu_to_inches(left_emu), 2) # type: ignore
|
|
440
|
+
self.top: float = round(self.emu_to_inches(top_emu), 2) # type: ignore
|
|
441
|
+
self.width: float = round(
|
|
442
|
+
self.emu_to_inches(shape.width if hasattr(shape, "width") else 0),
|
|
443
|
+
2, # type: ignore
|
|
444
|
+
)
|
|
445
|
+
self.height: float = round(
|
|
446
|
+
self.emu_to_inches(shape.height if hasattr(shape, "height") else 0),
|
|
447
|
+
2, # type: ignore
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
# Store EMU positions for overflow calculations
|
|
451
|
+
self.left_emu = left_emu
|
|
452
|
+
self.top_emu = top_emu
|
|
453
|
+
self.width_emu = shape.width if hasattr(shape, "width") else 0
|
|
454
|
+
self.height_emu = shape.height if hasattr(shape, "height") else 0
|
|
455
|
+
|
|
456
|
+
# Calculate overflow status
|
|
457
|
+
self.frame_overflow_bottom: Optional[float] = None
|
|
458
|
+
self.slide_overflow_right: Optional[float] = None
|
|
459
|
+
self.slide_overflow_bottom: Optional[float] = None
|
|
460
|
+
self.overlapping_shapes: Dict[
|
|
461
|
+
str, float
|
|
462
|
+
] = {} # Dict of shape_id -> overlap area in sq inches
|
|
463
|
+
self.warnings: List[str] = []
|
|
464
|
+
self._estimate_frame_overflow()
|
|
465
|
+
self._calculate_slide_overflow()
|
|
466
|
+
self._detect_bullet_issues()
|
|
467
|
+
|
|
468
|
+
@property
|
|
469
|
+
def paragraphs(self) -> List[ParagraphData]:
|
|
470
|
+
"""Calculate paragraphs from the shape's text frame."""
|
|
471
|
+
if not self.shape or not hasattr(self.shape, "text_frame"):
|
|
472
|
+
return []
|
|
473
|
+
|
|
474
|
+
paragraphs = []
|
|
475
|
+
for paragraph in self.shape.text_frame.paragraphs: # type: ignore
|
|
476
|
+
if paragraph.text.strip():
|
|
477
|
+
paragraphs.append(ParagraphData(paragraph))
|
|
478
|
+
return paragraphs
|
|
479
|
+
|
|
480
|
+
def _get_default_font_size(self) -> int:
|
|
481
|
+
"""Get default font size from theme text styles or use conservative default."""
|
|
482
|
+
try:
|
|
483
|
+
if not (
|
|
484
|
+
hasattr(self.shape, "part") and hasattr(self.shape.part, "slide_layout")
|
|
485
|
+
):
|
|
486
|
+
return 14
|
|
487
|
+
|
|
488
|
+
slide_master = self.shape.part.slide_layout.slide_master # type: ignore
|
|
489
|
+
if not hasattr(slide_master, "element"):
|
|
490
|
+
return 14
|
|
491
|
+
|
|
492
|
+
# Determine theme style based on placeholder type
|
|
493
|
+
style_name = "bodyStyle" # Default
|
|
494
|
+
if self.placeholder_type and "TITLE" in self.placeholder_type:
|
|
495
|
+
style_name = "titleStyle"
|
|
496
|
+
|
|
497
|
+
# Find font size in theme styles
|
|
498
|
+
for child in slide_master.element.iter():
|
|
499
|
+
tag = child.tag.split("}")[-1] if "}" in child.tag else child.tag
|
|
500
|
+
if tag == style_name:
|
|
501
|
+
for elem in child.iter():
|
|
502
|
+
if "sz" in elem.attrib:
|
|
503
|
+
return int(elem.attrib["sz"]) // 100
|
|
504
|
+
except Exception:
|
|
505
|
+
pass
|
|
506
|
+
|
|
507
|
+
return 14 # Conservative default for body text
|
|
508
|
+
|
|
509
|
+
def _get_usable_dimensions(self, text_frame) -> Tuple[int, int]:
|
|
510
|
+
"""Get usable width and height in pixels after accounting for margins."""
|
|
511
|
+
# Default PowerPoint margins in inches
|
|
512
|
+
margins = {"top": 0.05, "bottom": 0.05, "left": 0.1, "right": 0.1}
|
|
513
|
+
|
|
514
|
+
# Override with actual margins if set
|
|
515
|
+
if hasattr(text_frame, "margin_top") and text_frame.margin_top:
|
|
516
|
+
margins["top"] = self.emu_to_inches(text_frame.margin_top)
|
|
517
|
+
if hasattr(text_frame, "margin_bottom") and text_frame.margin_bottom:
|
|
518
|
+
margins["bottom"] = self.emu_to_inches(text_frame.margin_bottom)
|
|
519
|
+
if hasattr(text_frame, "margin_left") and text_frame.margin_left:
|
|
520
|
+
margins["left"] = self.emu_to_inches(text_frame.margin_left)
|
|
521
|
+
if hasattr(text_frame, "margin_right") and text_frame.margin_right:
|
|
522
|
+
margins["right"] = self.emu_to_inches(text_frame.margin_right)
|
|
523
|
+
|
|
524
|
+
# Calculate usable area
|
|
525
|
+
usable_width = self.width - margins["left"] - margins["right"]
|
|
526
|
+
usable_height = self.height - margins["top"] - margins["bottom"]
|
|
527
|
+
|
|
528
|
+
# Convert to pixels
|
|
529
|
+
return (
|
|
530
|
+
self.inches_to_pixels(usable_width),
|
|
531
|
+
self.inches_to_pixels(usable_height),
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
def _wrap_text_line(self, line: str, max_width_px: int, draw, font) -> List[str]:
|
|
535
|
+
"""Wrap a single line of text to fit within max_width_px."""
|
|
536
|
+
if not line:
|
|
537
|
+
return [""]
|
|
538
|
+
|
|
539
|
+
# Use textlength for efficient width calculation
|
|
540
|
+
if draw.textlength(line, font=font) <= max_width_px:
|
|
541
|
+
return [line]
|
|
542
|
+
|
|
543
|
+
# Need to wrap - split into words
|
|
544
|
+
wrapped = []
|
|
545
|
+
words = line.split(" ")
|
|
546
|
+
current_line = ""
|
|
547
|
+
|
|
548
|
+
for word in words:
|
|
549
|
+
test_line = current_line + (" " if current_line else "") + word
|
|
550
|
+
if draw.textlength(test_line, font=font) <= max_width_px:
|
|
551
|
+
current_line = test_line
|
|
552
|
+
else:
|
|
553
|
+
if current_line:
|
|
554
|
+
wrapped.append(current_line)
|
|
555
|
+
current_line = word
|
|
556
|
+
|
|
557
|
+
if current_line:
|
|
558
|
+
wrapped.append(current_line)
|
|
559
|
+
|
|
560
|
+
return wrapped
|
|
561
|
+
|
|
562
|
+
def _estimate_frame_overflow(self) -> None:
|
|
563
|
+
"""Estimate if text overflows the shape bounds using PIL text measurement."""
|
|
564
|
+
if not self.shape or not hasattr(self.shape, "text_frame"):
|
|
565
|
+
return
|
|
566
|
+
|
|
567
|
+
text_frame = self.shape.text_frame # type: ignore
|
|
568
|
+
if not text_frame or not text_frame.paragraphs:
|
|
569
|
+
return
|
|
570
|
+
|
|
571
|
+
# Get usable dimensions after accounting for margins
|
|
572
|
+
usable_width_px, usable_height_px = self._get_usable_dimensions(text_frame)
|
|
573
|
+
if usable_width_px <= 0 or usable_height_px <= 0:
|
|
574
|
+
return
|
|
575
|
+
|
|
576
|
+
# Set up PIL for text measurement
|
|
577
|
+
dummy_img = Image.new("RGB", (1, 1))
|
|
578
|
+
draw = ImageDraw.Draw(dummy_img)
|
|
579
|
+
|
|
580
|
+
# Get default font size from placeholder or use conservative estimate
|
|
581
|
+
default_font_size = self._get_default_font_size()
|
|
582
|
+
|
|
583
|
+
# Calculate total height of all paragraphs
|
|
584
|
+
total_height_px = 0
|
|
585
|
+
|
|
586
|
+
for para_idx, paragraph in enumerate(text_frame.paragraphs):
|
|
587
|
+
if not paragraph.text.strip():
|
|
588
|
+
continue
|
|
589
|
+
|
|
590
|
+
para_data = ParagraphData(paragraph)
|
|
591
|
+
|
|
592
|
+
# Load font for this paragraph
|
|
593
|
+
font_name = para_data.font_name or "Arial"
|
|
594
|
+
font_size = int(para_data.font_size or default_font_size)
|
|
595
|
+
|
|
596
|
+
font = None
|
|
597
|
+
font_path = self.get_font_path(font_name)
|
|
598
|
+
if font_path:
|
|
599
|
+
try:
|
|
600
|
+
font = ImageFont.truetype(font_path, size=font_size)
|
|
601
|
+
except Exception:
|
|
602
|
+
font = ImageFont.load_default()
|
|
603
|
+
else:
|
|
604
|
+
font = ImageFont.load_default()
|
|
605
|
+
|
|
606
|
+
# Wrap all lines in this paragraph
|
|
607
|
+
all_wrapped_lines = []
|
|
608
|
+
for line in paragraph.text.split("\n"):
|
|
609
|
+
wrapped = self._wrap_text_line(line, usable_width_px, draw, font)
|
|
610
|
+
all_wrapped_lines.extend(wrapped)
|
|
611
|
+
|
|
612
|
+
if all_wrapped_lines:
|
|
613
|
+
# Calculate line height
|
|
614
|
+
if para_data.line_spacing:
|
|
615
|
+
# Custom line spacing explicitly set
|
|
616
|
+
line_height_px = para_data.line_spacing * 96 / 72
|
|
617
|
+
else:
|
|
618
|
+
# PowerPoint default single spacing (1.0x font size)
|
|
619
|
+
line_height_px = font_size * 96 / 72
|
|
620
|
+
|
|
621
|
+
# Add space_before (except first paragraph)
|
|
622
|
+
if para_idx > 0 and para_data.space_before:
|
|
623
|
+
total_height_px += para_data.space_before * 96 / 72
|
|
624
|
+
|
|
625
|
+
# Add paragraph text height
|
|
626
|
+
total_height_px += len(all_wrapped_lines) * line_height_px
|
|
627
|
+
|
|
628
|
+
# Add space_after
|
|
629
|
+
if para_data.space_after:
|
|
630
|
+
total_height_px += para_data.space_after * 96 / 72
|
|
631
|
+
|
|
632
|
+
# Check for overflow (ignore negligible overflows <= 0.05")
|
|
633
|
+
if total_height_px > usable_height_px:
|
|
634
|
+
overflow_px = total_height_px - usable_height_px
|
|
635
|
+
overflow_inches = round(overflow_px / 96.0, 2)
|
|
636
|
+
if overflow_inches > 0.05: # Only report significant overflows
|
|
637
|
+
self.frame_overflow_bottom = overflow_inches
|
|
638
|
+
|
|
639
|
+
def _calculate_slide_overflow(self) -> None:
|
|
640
|
+
"""Calculate if shape overflows the slide boundaries."""
|
|
641
|
+
if self.slide_width_emu is None or self.slide_height_emu is None:
|
|
642
|
+
return
|
|
643
|
+
|
|
644
|
+
# Check right overflow (ignore negligible overflows <= 0.01")
|
|
645
|
+
right_edge_emu = self.left_emu + self.width_emu
|
|
646
|
+
if right_edge_emu > self.slide_width_emu:
|
|
647
|
+
overflow_emu = right_edge_emu - self.slide_width_emu
|
|
648
|
+
overflow_inches = round(self.emu_to_inches(overflow_emu), 2)
|
|
649
|
+
if overflow_inches > 0.01: # Only report significant overflows
|
|
650
|
+
self.slide_overflow_right = overflow_inches
|
|
651
|
+
|
|
652
|
+
# Check bottom overflow (ignore negligible overflows <= 0.01")
|
|
653
|
+
bottom_edge_emu = self.top_emu + self.height_emu
|
|
654
|
+
if bottom_edge_emu > self.slide_height_emu:
|
|
655
|
+
overflow_emu = bottom_edge_emu - self.slide_height_emu
|
|
656
|
+
overflow_inches = round(self.emu_to_inches(overflow_emu), 2)
|
|
657
|
+
if overflow_inches > 0.01: # Only report significant overflows
|
|
658
|
+
self.slide_overflow_bottom = overflow_inches
|
|
659
|
+
|
|
660
|
+
def _detect_bullet_issues(self) -> None:
|
|
661
|
+
"""Detect bullet point formatting issues in paragraphs."""
|
|
662
|
+
if not self.shape or not hasattr(self.shape, "text_frame"):
|
|
663
|
+
return
|
|
664
|
+
|
|
665
|
+
text_frame = self.shape.text_frame # type: ignore
|
|
666
|
+
if not text_frame or not text_frame.paragraphs:
|
|
667
|
+
return
|
|
668
|
+
|
|
669
|
+
# Common bullet symbols that indicate manual bullets
|
|
670
|
+
bullet_symbols = ["•", "●", "○"]
|
|
671
|
+
|
|
672
|
+
for paragraph in text_frame.paragraphs:
|
|
673
|
+
text = paragraph.text.strip()
|
|
674
|
+
# Check for manual bullet symbols
|
|
675
|
+
if text and any(text.startswith(symbol + " ") for symbol in bullet_symbols):
|
|
676
|
+
self.warnings.append(
|
|
677
|
+
"manual_bullet_symbol: use proper bullet formatting"
|
|
678
|
+
)
|
|
679
|
+
break
|
|
680
|
+
|
|
681
|
+
@property
|
|
682
|
+
def has_any_issues(self) -> bool:
|
|
683
|
+
"""Check if shape has any issues (overflow, overlap, or warnings)."""
|
|
684
|
+
return (
|
|
685
|
+
self.frame_overflow_bottom is not None
|
|
686
|
+
or self.slide_overflow_right is not None
|
|
687
|
+
or self.slide_overflow_bottom is not None
|
|
688
|
+
or len(self.overlapping_shapes) > 0
|
|
689
|
+
or len(self.warnings) > 0
|
|
690
|
+
)
|
|
691
|
+
|
|
692
|
+
def to_dict(self) -> ShapeDict:
|
|
693
|
+
"""Convert to dictionary for JSON serialization."""
|
|
694
|
+
result: ShapeDict = {
|
|
695
|
+
"left": self.left,
|
|
696
|
+
"top": self.top,
|
|
697
|
+
"width": self.width,
|
|
698
|
+
"height": self.height,
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
# Add optional fields if present
|
|
702
|
+
if self.placeholder_type:
|
|
703
|
+
result["placeholder_type"] = self.placeholder_type
|
|
704
|
+
|
|
705
|
+
if self.default_font_size:
|
|
706
|
+
result["default_font_size"] = self.default_font_size
|
|
707
|
+
|
|
708
|
+
# Add overflow information only if there is overflow
|
|
709
|
+
overflow_data = {}
|
|
710
|
+
|
|
711
|
+
# Add frame overflow if present
|
|
712
|
+
if self.frame_overflow_bottom is not None:
|
|
713
|
+
overflow_data["frame"] = {"overflow_bottom": self.frame_overflow_bottom}
|
|
714
|
+
|
|
715
|
+
# Add slide overflow if present
|
|
716
|
+
slide_overflow = {}
|
|
717
|
+
if self.slide_overflow_right is not None:
|
|
718
|
+
slide_overflow["overflow_right"] = self.slide_overflow_right
|
|
719
|
+
if self.slide_overflow_bottom is not None:
|
|
720
|
+
slide_overflow["overflow_bottom"] = self.slide_overflow_bottom
|
|
721
|
+
if slide_overflow:
|
|
722
|
+
overflow_data["slide"] = slide_overflow
|
|
723
|
+
|
|
724
|
+
# Only add overflow field if there is overflow
|
|
725
|
+
if overflow_data:
|
|
726
|
+
result["overflow"] = overflow_data
|
|
727
|
+
|
|
728
|
+
# Add overlap field if there are overlapping shapes
|
|
729
|
+
if self.overlapping_shapes:
|
|
730
|
+
result["overlap"] = {"overlapping_shapes": self.overlapping_shapes}
|
|
731
|
+
|
|
732
|
+
# Add warnings field if there are warnings
|
|
733
|
+
if self.warnings:
|
|
734
|
+
result["warnings"] = self.warnings
|
|
735
|
+
|
|
736
|
+
# Add paragraphs after placeholder_type
|
|
737
|
+
result["paragraphs"] = [para.to_dict() for para in self.paragraphs]
|
|
738
|
+
|
|
739
|
+
return result
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
def is_valid_shape(shape: BaseShape) -> bool:
|
|
743
|
+
"""Check if a shape contains meaningful text content."""
|
|
744
|
+
# Must have a text frame with content
|
|
745
|
+
if not hasattr(shape, "text_frame") or not shape.text_frame: # type: ignore
|
|
746
|
+
return False
|
|
747
|
+
|
|
748
|
+
text = shape.text_frame.text.strip() # type: ignore
|
|
749
|
+
if not text:
|
|
750
|
+
return False
|
|
751
|
+
|
|
752
|
+
# Skip slide numbers and numeric footers
|
|
753
|
+
if hasattr(shape, "is_placeholder") and shape.is_placeholder: # type: ignore
|
|
754
|
+
if shape.placeholder_format and shape.placeholder_format.type: # type: ignore
|
|
755
|
+
placeholder_type = (
|
|
756
|
+
str(shape.placeholder_format.type).split(".")[-1].split(" ")[0] # type: ignore
|
|
757
|
+
)
|
|
758
|
+
if placeholder_type == "SLIDE_NUMBER":
|
|
759
|
+
return False
|
|
760
|
+
if placeholder_type == "FOOTER" and text.isdigit():
|
|
761
|
+
return False
|
|
762
|
+
|
|
763
|
+
return True
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
def collect_shapes_with_absolute_positions(
|
|
767
|
+
shape: BaseShape, parent_left: int = 0, parent_top: int = 0
|
|
768
|
+
) -> List[ShapeWithPosition]:
|
|
769
|
+
"""Recursively collect all shapes with valid text, calculating absolute positions.
|
|
770
|
+
|
|
771
|
+
For shapes within groups, their positions are relative to the group.
|
|
772
|
+
This function calculates the absolute position on the slide by accumulating
|
|
773
|
+
parent group offsets.
|
|
774
|
+
|
|
775
|
+
Args:
|
|
776
|
+
shape: The shape to process
|
|
777
|
+
parent_left: Accumulated left offset from parent groups (in EMUs)
|
|
778
|
+
parent_top: Accumulated top offset from parent groups (in EMUs)
|
|
779
|
+
|
|
780
|
+
Returns:
|
|
781
|
+
List of ShapeWithPosition objects with absolute positions
|
|
782
|
+
"""
|
|
783
|
+
if hasattr(shape, "shapes"): # GroupShape
|
|
784
|
+
result = []
|
|
785
|
+
# Get this group's position
|
|
786
|
+
group_left = shape.left if hasattr(shape, "left") else 0
|
|
787
|
+
group_top = shape.top if hasattr(shape, "top") else 0
|
|
788
|
+
|
|
789
|
+
# Calculate absolute position for this group
|
|
790
|
+
abs_group_left = parent_left + group_left
|
|
791
|
+
abs_group_top = parent_top + group_top
|
|
792
|
+
|
|
793
|
+
# Process children with accumulated offsets
|
|
794
|
+
for child in shape.shapes: # type: ignore
|
|
795
|
+
result.extend(
|
|
796
|
+
collect_shapes_with_absolute_positions(
|
|
797
|
+
child, abs_group_left, abs_group_top
|
|
798
|
+
)
|
|
799
|
+
)
|
|
800
|
+
return result
|
|
801
|
+
|
|
802
|
+
# Regular shape - check if it has valid text
|
|
803
|
+
if is_valid_shape(shape):
|
|
804
|
+
# Calculate absolute position
|
|
805
|
+
shape_left = shape.left if hasattr(shape, "left") else 0
|
|
806
|
+
shape_top = shape.top if hasattr(shape, "top") else 0
|
|
807
|
+
|
|
808
|
+
return [
|
|
809
|
+
ShapeWithPosition(
|
|
810
|
+
shape=shape,
|
|
811
|
+
absolute_left=parent_left + shape_left,
|
|
812
|
+
absolute_top=parent_top + shape_top,
|
|
813
|
+
)
|
|
814
|
+
]
|
|
815
|
+
|
|
816
|
+
return []
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
def sort_shapes_by_position(shapes: List[ShapeData]) -> List[ShapeData]:
|
|
820
|
+
"""Sort shapes by visual position (top-to-bottom, left-to-right).
|
|
821
|
+
|
|
822
|
+
Shapes within 0.5 inches vertically are considered on the same row.
|
|
823
|
+
"""
|
|
824
|
+
if not shapes:
|
|
825
|
+
return shapes
|
|
826
|
+
|
|
827
|
+
# Sort by top position first
|
|
828
|
+
shapes = sorted(shapes, key=lambda s: (s.top, s.left))
|
|
829
|
+
|
|
830
|
+
# Group shapes by row (within 0.5 inches vertically)
|
|
831
|
+
result = []
|
|
832
|
+
row = [shapes[0]]
|
|
833
|
+
row_top = shapes[0].top
|
|
834
|
+
|
|
835
|
+
for shape in shapes[1:]:
|
|
836
|
+
if abs(shape.top - row_top) <= 0.5:
|
|
837
|
+
row.append(shape)
|
|
838
|
+
else:
|
|
839
|
+
# Sort current row by left position and add to result
|
|
840
|
+
result.extend(sorted(row, key=lambda s: s.left))
|
|
841
|
+
row = [shape]
|
|
842
|
+
row_top = shape.top
|
|
843
|
+
|
|
844
|
+
# Don't forget the last row
|
|
845
|
+
result.extend(sorted(row, key=lambda s: s.left))
|
|
846
|
+
return result
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
def calculate_overlap(
|
|
850
|
+
rect1: Tuple[float, float, float, float],
|
|
851
|
+
rect2: Tuple[float, float, float, float],
|
|
852
|
+
tolerance: float = 0.05,
|
|
853
|
+
) -> Tuple[bool, float]:
|
|
854
|
+
"""Calculate if and how much two rectangles overlap.
|
|
855
|
+
|
|
856
|
+
Args:
|
|
857
|
+
rect1: (left, top, width, height) of first rectangle in inches
|
|
858
|
+
rect2: (left, top, width, height) of second rectangle in inches
|
|
859
|
+
tolerance: Minimum overlap in inches to consider as overlapping (default: 0.05")
|
|
860
|
+
|
|
861
|
+
Returns:
|
|
862
|
+
Tuple of (overlaps, overlap_area) where:
|
|
863
|
+
- overlaps: True if rectangles overlap by more than tolerance
|
|
864
|
+
- overlap_area: Area of overlap in square inches
|
|
865
|
+
"""
|
|
866
|
+
left1, top1, w1, h1 = rect1
|
|
867
|
+
left2, top2, w2, h2 = rect2
|
|
868
|
+
|
|
869
|
+
# Calculate overlap dimensions
|
|
870
|
+
overlap_width = min(left1 + w1, left2 + w2) - max(left1, left2)
|
|
871
|
+
overlap_height = min(top1 + h1, top2 + h2) - max(top1, top2)
|
|
872
|
+
|
|
873
|
+
# Check if there's meaningful overlap (more than tolerance)
|
|
874
|
+
if overlap_width > tolerance and overlap_height > tolerance:
|
|
875
|
+
# Calculate overlap area in square inches
|
|
876
|
+
overlap_area = overlap_width * overlap_height
|
|
877
|
+
return True, round(overlap_area, 2)
|
|
878
|
+
|
|
879
|
+
return False, 0
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
def detect_overlaps(shapes: List[ShapeData]) -> None:
|
|
883
|
+
"""Detect overlapping shapes and update their overlapping_shapes dictionaries.
|
|
884
|
+
|
|
885
|
+
This function requires each ShapeData to have its shape_id already set.
|
|
886
|
+
It modifies the shapes in-place, adding shape IDs with overlap areas in square inches.
|
|
887
|
+
|
|
888
|
+
Args:
|
|
889
|
+
shapes: List of ShapeData objects with shape_id attributes set
|
|
890
|
+
"""
|
|
891
|
+
n = len(shapes)
|
|
892
|
+
|
|
893
|
+
# Compare each pair of shapes
|
|
894
|
+
for i in range(n):
|
|
895
|
+
for j in range(i + 1, n):
|
|
896
|
+
shape1 = shapes[i]
|
|
897
|
+
shape2 = shapes[j]
|
|
898
|
+
|
|
899
|
+
# Ensure shape IDs are set
|
|
900
|
+
assert shape1.shape_id, f"Shape at index {i} has no shape_id"
|
|
901
|
+
assert shape2.shape_id, f"Shape at index {j} has no shape_id"
|
|
902
|
+
|
|
903
|
+
rect1 = (shape1.left, shape1.top, shape1.width, shape1.height)
|
|
904
|
+
rect2 = (shape2.left, shape2.top, shape2.width, shape2.height)
|
|
905
|
+
|
|
906
|
+
overlaps, overlap_area = calculate_overlap(rect1, rect2)
|
|
907
|
+
|
|
908
|
+
if overlaps:
|
|
909
|
+
# Add shape IDs with overlap area in square inches
|
|
910
|
+
shape1.overlapping_shapes[shape2.shape_id] = overlap_area
|
|
911
|
+
shape2.overlapping_shapes[shape1.shape_id] = overlap_area
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
def extract_text_inventory(
|
|
915
|
+
pptx_path: Path, prs: Optional[Any] = None, issues_only: bool = False
|
|
916
|
+
) -> InventoryData:
|
|
917
|
+
"""Extract text content from all slides in a PowerPoint presentation.
|
|
918
|
+
|
|
919
|
+
Args:
|
|
920
|
+
pptx_path: Path to the PowerPoint file
|
|
921
|
+
prs: Optional Presentation object to use. If not provided, will load from pptx_path.
|
|
922
|
+
issues_only: If True, only include shapes that have overflow or overlap issues
|
|
923
|
+
|
|
924
|
+
Returns a nested dictionary: {slide-N: {shape-N: ShapeData}}
|
|
925
|
+
Shapes are sorted by visual position (top-to-bottom, left-to-right).
|
|
926
|
+
The ShapeData objects contain the full shape information and can be
|
|
927
|
+
converted to dictionaries for JSON serialization using to_dict().
|
|
928
|
+
"""
|
|
929
|
+
if prs is None:
|
|
930
|
+
prs = Presentation(str(pptx_path))
|
|
931
|
+
inventory: InventoryData = {}
|
|
932
|
+
|
|
933
|
+
for slide_idx, slide in enumerate(prs.slides):
|
|
934
|
+
# Collect all valid shapes from this slide with absolute positions
|
|
935
|
+
shapes_with_positions = []
|
|
936
|
+
for shape in slide.shapes: # type: ignore
|
|
937
|
+
shapes_with_positions.extend(collect_shapes_with_absolute_positions(shape))
|
|
938
|
+
|
|
939
|
+
if not shapes_with_positions:
|
|
940
|
+
continue
|
|
941
|
+
|
|
942
|
+
# Convert to ShapeData with absolute positions and slide reference
|
|
943
|
+
shape_data_list = [
|
|
944
|
+
ShapeData(
|
|
945
|
+
swp.shape,
|
|
946
|
+
swp.absolute_left,
|
|
947
|
+
swp.absolute_top,
|
|
948
|
+
slide,
|
|
949
|
+
)
|
|
950
|
+
for swp in shapes_with_positions
|
|
951
|
+
]
|
|
952
|
+
|
|
953
|
+
# Sort by visual position and assign stable IDs in one step
|
|
954
|
+
sorted_shapes = sort_shapes_by_position(shape_data_list)
|
|
955
|
+
for idx, shape_data in enumerate(sorted_shapes):
|
|
956
|
+
shape_data.shape_id = f"shape-{idx}"
|
|
957
|
+
|
|
958
|
+
# Detect overlaps using the stable shape IDs
|
|
959
|
+
if len(sorted_shapes) > 1:
|
|
960
|
+
detect_overlaps(sorted_shapes)
|
|
961
|
+
|
|
962
|
+
# Filter for issues only if requested (after overlap detection)
|
|
963
|
+
if issues_only:
|
|
964
|
+
sorted_shapes = [sd for sd in sorted_shapes if sd.has_any_issues]
|
|
965
|
+
|
|
966
|
+
if not sorted_shapes:
|
|
967
|
+
continue
|
|
968
|
+
|
|
969
|
+
# Create slide inventory using the stable shape IDs
|
|
970
|
+
inventory[f"slide-{slide_idx}"] = {
|
|
971
|
+
shape_data.shape_id: shape_data for shape_data in sorted_shapes
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
return inventory
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
def get_inventory_as_dict(pptx_path: Path, issues_only: bool = False) -> InventoryDict:
|
|
978
|
+
"""Extract text inventory and return as JSON-serializable dictionaries.
|
|
979
|
+
|
|
980
|
+
This is a convenience wrapper around extract_text_inventory that returns
|
|
981
|
+
dictionaries instead of ShapeData objects, useful for testing and direct
|
|
982
|
+
JSON serialization.
|
|
983
|
+
|
|
984
|
+
Args:
|
|
985
|
+
pptx_path: Path to the PowerPoint file
|
|
986
|
+
issues_only: If True, only include shapes that have overflow or overlap issues
|
|
987
|
+
|
|
988
|
+
Returns:
|
|
989
|
+
Nested dictionary with all data serialized for JSON
|
|
990
|
+
"""
|
|
991
|
+
inventory = extract_text_inventory(pptx_path, issues_only=issues_only)
|
|
992
|
+
|
|
993
|
+
# Convert ShapeData objects to dictionaries
|
|
994
|
+
dict_inventory: InventoryDict = {}
|
|
995
|
+
for slide_key, shapes in inventory.items():
|
|
996
|
+
dict_inventory[slide_key] = {
|
|
997
|
+
shape_key: shape_data.to_dict() for shape_key, shape_data in shapes.items()
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
return dict_inventory
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
def save_inventory(inventory: InventoryData, output_path: Path) -> None:
|
|
1004
|
+
"""Save inventory to JSON file with proper formatting.
|
|
1005
|
+
|
|
1006
|
+
Converts ShapeData objects to dictionaries for JSON serialization.
|
|
1007
|
+
"""
|
|
1008
|
+
# Convert ShapeData objects to dictionaries
|
|
1009
|
+
json_inventory: InventoryDict = {}
|
|
1010
|
+
for slide_key, shapes in inventory.items():
|
|
1011
|
+
json_inventory[slide_key] = {
|
|
1012
|
+
shape_key: shape_data.to_dict() for shape_key, shape_data in shapes.items()
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
with open(output_path, "w", encoding="utf-8") as f:
|
|
1016
|
+
json.dump(json_inventory, f, indent=2, ensure_ascii=False)
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
if __name__ == "__main__":
|
|
1020
|
+
main()
|