@thanhvn14/csvibe 0.1.4 → 0.1.5
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/.github/agents/schemas/base-output.schema.json +88 -0
- package/.github/agents/schemas/brainstorm-output.schema.json +88 -0
- package/.github/agents/schemas/scout-output.schema.json +60 -0
- package/.github/agents/scripts/fetch-copilot-tools.js +245 -0
- package/.github/agents/scripts/lib/parse-agent-file.js +275 -0
- package/.github/agents/scripts/package-lock.json +78 -0
- package/.github/agents/scripts/package.json +22 -0
- package/.github/agents/scripts/schemas/agent-frontmatter.schema.json +83 -0
- package/.github/agents/scripts/validate-agent-all.js +157 -0
- package/.github/agents/scripts/validate-agent-frontmatter.js +96 -0
- package/.github/agents/scripts/validate-agent-handoffs.js +169 -0
- package/.github/agents/scripts/validate-agent-output.js +157 -0
- package/.github/agents/scripts/validate-agent-tools.js +278 -0
- package/.github/skills/.env.example +100 -0
- package/.github/skills/.install-state.json +23 -0
- package/.github/skills/README.md +149 -0
- package/.github/skills/ai-multimodal/.env.example +204 -0
- package/.github/skills/ai-multimodal/scripts/.coverage +0 -0
- package/.github/skills/ai-multimodal/scripts/check_setup.py +305 -0
- package/.github/skills/ai-multimodal/scripts/document_converter.py +395 -0
- package/.github/skills/ai-multimodal/scripts/gemini_batch_process.py +1184 -0
- package/.github/skills/ai-multimodal/scripts/media_optimizer.py +506 -0
- package/.github/skills/ai-multimodal/scripts/requirements.txt +26 -0
- package/.github/skills/better-auth/scripts/.coverage +0 -0
- package/.github/skills/better-auth/scripts/better_auth_init.py +521 -0
- package/.github/skills/better-auth/scripts/requirements.txt +15 -0
- package/.github/skills/chrome-devtools/scripts/README.md +272 -0
- package/.github/skills/chrome-devtools/scripts/__tests__/selector.test.js +210 -0
- package/.github/skills/chrome-devtools/scripts/aria-snapshot.js +362 -0
- package/.github/skills/chrome-devtools/scripts/click.js +83 -0
- package/.github/skills/chrome-devtools/scripts/console.js +79 -0
- package/.github/skills/chrome-devtools/scripts/evaluate.js +53 -0
- package/.github/skills/chrome-devtools/scripts/fill.js +76 -0
- package/.github/skills/chrome-devtools/scripts/inject-auth.js +229 -0
- package/.github/skills/chrome-devtools/scripts/install-deps.sh +181 -0
- package/.github/skills/chrome-devtools/scripts/install.sh +83 -0
- package/.github/skills/chrome-devtools/scripts/lib/browser.js +318 -0
- package/.github/skills/chrome-devtools/scripts/lib/selector.js +178 -0
- package/.github/skills/chrome-devtools/scripts/navigate.js +54 -0
- package/.github/skills/chrome-devtools/scripts/network.js +106 -0
- package/.github/skills/chrome-devtools/scripts/package-lock.json +1589 -0
- package/.github/skills/chrome-devtools/scripts/package.json +16 -0
- package/.github/skills/chrome-devtools/scripts/performance.js +149 -0
- package/.github/skills/chrome-devtools/scripts/screenshot.js +198 -0
- package/.github/skills/chrome-devtools/scripts/select-ref.js +131 -0
- package/.github/skills/chrome-devtools/scripts/snapshot.js +135 -0
- package/.github/skills/common/README.md +120 -0
- package/.github/skills/common/api_key_helper.py +411 -0
- package/.github/skills/common/api_key_rotator.py +248 -0
- package/.github/skills/databases/scripts/.coverage +0 -0
- package/.github/skills/databases/scripts/db_backup.py +502 -0
- package/.github/skills/databases/scripts/db_migrate.py +425 -0
- package/.github/skills/databases/scripts/db_performance_check.py +456 -0
- package/.github/skills/databases/scripts/requirements.txt +20 -0
- package/.github/skills/debugging/scripts/find-polluter.sh +63 -0
- package/.github/skills/devops/.env.example +76 -0
- package/.github/skills/devops/scripts/cloudflare_deploy.py +269 -0
- package/.github/skills/devops/scripts/docker_optimize.py +331 -0
- package/.github/skills/devops/scripts/requirements.txt +20 -0
- package/.github/skills/docs-seeker/.env.example +15 -0
- package/.github/skills/docs-seeker/package.json +25 -0
- package/.github/skills/docs-seeker/scripts/analyze-llms-txt.js +211 -0
- package/.github/skills/docs-seeker/scripts/detect-topic.js +172 -0
- package/.github/skills/docs-seeker/scripts/fetch-docs.js +213 -0
- package/.github/skills/docs-seeker/scripts/utils/env-loader.js +94 -0
- package/.github/skills/document-skills/docx/LICENSE.txt +30 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.github/skills/document-skills/docx/ooxml/scripts/pack.py +159 -0
- package/.github/skills/document-skills/docx/ooxml/scripts/unpack.py +29 -0
- package/.github/skills/document-skills/docx/ooxml/scripts/validate.py +69 -0
- package/.github/skills/document-skills/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/.github/skills/document-skills/docx/ooxml/scripts/validation/base.py +951 -0
- package/.github/skills/document-skills/docx/ooxml/scripts/validation/docx.py +274 -0
- package/.github/skills/document-skills/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/.github/skills/document-skills/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/.github/skills/document-skills/docx/scripts/__init__.py +1 -0
- package/.github/skills/document-skills/docx/scripts/document.py +1276 -0
- package/.github/skills/document-skills/docx/scripts/templates/comments.xml +3 -0
- package/.github/skills/document-skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/.github/skills/document-skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/.github/skills/document-skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/.github/skills/document-skills/docx/scripts/templates/people.xml +3 -0
- package/.github/skills/document-skills/docx/scripts/utilities.py +374 -0
- package/.github/skills/document-skills/pdf/LICENSE.txt +30 -0
- package/.github/skills/document-skills/pdf/scripts/check_bounding_boxes.py +70 -0
- package/.github/skills/document-skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/.github/skills/document-skills/pdf/scripts/check_fillable_fields.py +12 -0
- package/.github/skills/document-skills/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/.github/skills/document-skills/pdf/scripts/create_validation_image.py +41 -0
- package/.github/skills/document-skills/pdf/scripts/extract_form_field_info.py +152 -0
- package/.github/skills/document-skills/pdf/scripts/fill_fillable_fields.py +114 -0
- package/.github/skills/document-skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/.github/skills/document-skills/pptx/LICENSE.txt +30 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.github/skills/document-skills/pptx/ooxml/scripts/pack.py +159 -0
- package/.github/skills/document-skills/pptx/ooxml/scripts/unpack.py +29 -0
- package/.github/skills/document-skills/pptx/ooxml/scripts/validate.py +69 -0
- package/.github/skills/document-skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/.github/skills/document-skills/pptx/ooxml/scripts/validation/base.py +951 -0
- package/.github/skills/document-skills/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/.github/skills/document-skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/.github/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/.github/skills/document-skills/pptx/scripts/html2pptx.js +979 -0
- package/.github/skills/document-skills/pptx/scripts/inventory.py +1020 -0
- package/.github/skills/document-skills/pptx/scripts/rearrange.py +231 -0
- package/.github/skills/document-skills/pptx/scripts/replace.py +385 -0
- package/.github/skills/document-skills/pptx/scripts/thumbnail.py +450 -0
- package/.github/skills/document-skills/xlsx/LICENSE.txt +30 -0
- package/.github/skills/document-skills/xlsx/recalc.py +190 -0
- package/.github/skills/install.ps1 +1220 -0
- package/.github/skills/install.sh +1032 -0
- package/.github/skills/markdown-novel-viewer/assets/directory-browser.css +215 -0
- package/.github/skills/markdown-novel-viewer/assets/favicon.png +0 -0
- package/.github/skills/markdown-novel-viewer/assets/novel-theme.css +818 -0
- package/.github/skills/markdown-novel-viewer/assets/reader.js +262 -0
- package/.github/skills/markdown-novel-viewer/assets/template.html +80 -0
- package/.github/skills/markdown-novel-viewer/package-lock.json +146 -0
- package/.github/skills/markdown-novel-viewer/package.json +15 -0
- package/.github/skills/markdown-novel-viewer/scripts/lib/http-server.cjs +434 -0
- package/.github/skills/markdown-novel-viewer/scripts/lib/markdown-renderer.cjs +272 -0
- package/.github/skills/markdown-novel-viewer/scripts/lib/plan-navigator.cjs +509 -0
- package/.github/skills/markdown-novel-viewer/scripts/lib/port-finder.cjs +48 -0
- package/.github/skills/markdown-novel-viewer/scripts/lib/process-mgr.cjs +150 -0
- package/.github/skills/markdown-novel-viewer/scripts/server.cjs +411 -0
- package/.github/skills/mcp-builder/LICENSE.txt +202 -0
- package/.github/skills/mcp-builder/scripts/connections.py +151 -0
- package/.github/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/.github/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/.github/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/.github/skills/mcp-management/README.md +219 -0
- package/.github/skills/mcp-management/assets/tools.json +3146 -0
- package/.github/skills/mcp-management/package-lock.json +6 -0
- package/.github/skills/mcp-management/scripts/.env.example +10 -0
- package/.github/skills/mcp-management/scripts/cli.ts +195 -0
- package/.github/skills/mcp-management/scripts/dist/analyze-tools.js +70 -0
- package/.github/skills/mcp-management/scripts/dist/cli.js +160 -0
- package/.github/skills/mcp-management/scripts/dist/mcp-client.js +183 -0
- package/.github/skills/mcp-management/scripts/mcp-client.ts +230 -0
- package/.github/skills/mcp-management/scripts/package.json +20 -0
- package/.github/skills/media-processing/scripts/README.md +111 -0
- package/.github/skills/media-processing/scripts/batch-remove-background.sh +124 -0
- package/.github/skills/media-processing/scripts/batch_resize.py +342 -0
- package/.github/skills/media-processing/scripts/media_convert.py +311 -0
- package/.github/skills/media-processing/scripts/remove-background.sh +96 -0
- package/.github/skills/media-processing/scripts/remove-bg-node.js +158 -0
- package/.github/skills/media-processing/scripts/requirements.txt +24 -0
- package/.github/skills/media-processing/scripts/video_optimize.py +414 -0
- package/.github/skills/payment-integration/README.md +185 -0
- package/.github/skills/payment-integration/scripts/.env.example +20 -0
- package/.github/skills/payment-integration/scripts/checkout-helper.js +244 -0
- package/.github/skills/payment-integration/scripts/package.json +17 -0
- package/.github/skills/payment-integration/scripts/polar-webhook-verify.js +202 -0
- package/.github/skills/payment-integration/scripts/sepay-webhook-verify.js +193 -0
- package/.github/skills/payment-integration/scripts/test-scripts.js +237 -0
- package/.github/skills/plans-kanban/assets/dashboard-template.html +119 -0
- package/.github/skills/plans-kanban/assets/dashboard.css +1594 -0
- package/.github/skills/plans-kanban/assets/dashboard.js +596 -0
- package/.github/skills/plans-kanban/assets/favicon.png +0 -0
- package/.github/skills/plans-kanban/package-lock.json +123 -0
- package/.github/skills/plans-kanban/package.json +13 -0
- package/.github/skills/plans-kanban/scripts/lib/dashboard-renderer.cjs +884 -0
- package/.github/skills/plans-kanban/scripts/lib/http-server.cjs +310 -0
- package/.github/skills/plans-kanban/scripts/lib/plan-metadata-extractor.cjs +489 -0
- package/.github/skills/plans-kanban/scripts/lib/plan-parser.cjs +175 -0
- package/.github/skills/plans-kanban/scripts/lib/plan-scanner.cjs +272 -0
- package/.github/skills/plans-kanban/scripts/lib/port-finder.cjs +48 -0
- package/.github/skills/plans-kanban/scripts/lib/process-mgr.cjs +128 -0
- package/.github/skills/plans-kanban/scripts/server.cjs +260 -0
- package/.github/skills/repomix/scripts/.coverage +0 -0
- package/.github/skills/repomix/scripts/README.md +179 -0
- package/.github/skills/repomix/scripts/repomix_batch.py +455 -0
- package/.github/skills/repomix/scripts/repos.example.json +15 -0
- package/.github/skills/repomix/scripts/requirements.txt +15 -0
- package/.github/skills/scout-validation/scripts/lib/broad-pattern-detector.cjs +124 -0
- package/.github/skills/scout-validation/scripts/lib/path-checker.cjs +66 -0
- package/.github/skills/scout-validation/scripts/lib/schema-validator.cjs +45 -0
- package/.github/skills/scout-validation/scripts/package.json +11 -0
- package/.github/skills/scout-validation/scripts/validate-scout-output.cjs +219 -0
- package/.github/skills/scout-validation/test/broad-pattern-output.json +18 -0
- package/.github/skills/scout-validation/test/invalid-path-output.json +18 -0
- package/.github/skills/scout-validation/test/valid-scout-output.json +26 -0
- package/.github/skills/sequential-thinking/.env.example +8 -0
- package/.github/skills/sequential-thinking/README.md +183 -0
- package/.github/skills/sequential-thinking/package.json +31 -0
- package/.github/skills/sequential-thinking/scripts/format-thought.js +159 -0
- package/.github/skills/sequential-thinking/scripts/process-thought.js +236 -0
- package/.github/skills/shopify/README.md +66 -0
- package/.github/skills/shopify/scripts/.coverage +0 -0
- package/.github/skills/shopify/scripts/requirements.txt +19 -0
- package/.github/skills/shopify/scripts/shopify_init.py +423 -0
- package/.github/skills/skill-creator/LICENSE.txt +202 -0
- package/.github/skills/skill-creator/scripts/init_skill.py +303 -0
- package/.github/skills/skill-creator/scripts/package_skill.py +110 -0
- package/.github/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/.github/skills/ui-styling/LICENSE.txt +202 -0
- package/.github/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/.github/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/.github/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/.github/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/.github/skills/ui-styling/scripts/.coverage +0 -0
- package/.github/skills/ui-styling/scripts/requirements.txt +17 -0
- package/.github/skills/ui-styling/scripts/shadcn_add.py +292 -0
- package/.github/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
- package/.github/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.github/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.github/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.github/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.github/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.github/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.github/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +51 -0
- package/.github/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.github/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.github/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.github/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.github/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.github/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.github/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.github/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.github/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.github/skills/ui-ux-pro-max/scripts/core.py +236 -0
- package/.github/skills/ui-ux-pro-max/scripts/search.py +76 -0
- package/.github/skills/web-frameworks/scripts/.coverage +0 -0
- package/.github/skills/web-frameworks/scripts/__init__.py +0 -0
- package/.github/skills/web-frameworks/scripts/nextjs_init.py +547 -0
- package/.github/skills/web-frameworks/scripts/requirements.txt +16 -0
- package/.github/skills/web-frameworks/scripts/turborepo_migrate.py +394 -0
- package/dist/config/constants.d.ts +2 -0
- package/dist/config/constants.d.ts.map +1 -1
- package/dist/config/constants.js +4 -1
- package/dist/config/constants.js.map +1 -1
- package/dist/domains/github/github-client.d.ts +5 -0
- package/dist/domains/github/github-client.d.ts.map +1 -1
- package/dist/domains/github/github-client.js +44 -0
- package/dist/domains/github/github-client.js.map +1 -1
- package/dist/utils/downloader.d.ts +3 -1
- package/dist/utils/downloader.d.ts.map +1 -1
- package/dist/utils/downloader.js +48 -11
- package/dist/utils/downloader.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Repomix Scripts
|
|
2
|
+
|
|
3
|
+
Utility scripts for batch processing repositories with Repomix.
|
|
4
|
+
|
|
5
|
+
## repomix_batch.py
|
|
6
|
+
|
|
7
|
+
Batch process multiple repositories (local or remote) using the repomix CLI tool.
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- Process multiple repositories in one command
|
|
12
|
+
- Support local and remote repositories
|
|
13
|
+
- Configurable output formats (XML, Markdown, JSON, Plain)
|
|
14
|
+
- Environment variable loading from multiple .env file locations
|
|
15
|
+
- Comprehensive error handling
|
|
16
|
+
- Progress reporting
|
|
17
|
+
|
|
18
|
+
### Installation
|
|
19
|
+
|
|
20
|
+
Requires Python 3.10+ and repomix CLI:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Install repomix
|
|
24
|
+
npm install -g repomix
|
|
25
|
+
|
|
26
|
+
# Install Python dependencies (if needed)
|
|
27
|
+
pip install pytest pytest-cov pytest-mock # For running tests
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Usage
|
|
31
|
+
|
|
32
|
+
**Process single repository:**
|
|
33
|
+
```bash
|
|
34
|
+
python repomix_batch.py /path/to/repo
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Process multiple repositories:**
|
|
38
|
+
```bash
|
|
39
|
+
python repomix_batch.py /repo1 /repo2 /repo3
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Process remote repositories:**
|
|
43
|
+
```bash
|
|
44
|
+
python repomix_batch.py owner/repo1 owner/repo2 --remote
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**From JSON file:**
|
|
48
|
+
```bash
|
|
49
|
+
python repomix_batch.py -f repos.json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**With options:**
|
|
53
|
+
```bash
|
|
54
|
+
python repomix_batch.py /repo1 /repo2 \
|
|
55
|
+
--style markdown \
|
|
56
|
+
--output-dir output \
|
|
57
|
+
--remove-comments \
|
|
58
|
+
--include "src/**/*.ts" \
|
|
59
|
+
--ignore "tests/**" \
|
|
60
|
+
--verbose
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Configuration File Format
|
|
64
|
+
|
|
65
|
+
Create `repos.json` with repository configurations:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
[
|
|
69
|
+
{
|
|
70
|
+
"path": "/path/to/local/repo",
|
|
71
|
+
"output": "custom-output.xml"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"path": "owner/repo",
|
|
75
|
+
"remote": true
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "https://github.com/owner/repo",
|
|
79
|
+
"remote": true,
|
|
80
|
+
"output": "repo-output.md"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Environment Variables
|
|
86
|
+
|
|
87
|
+
Loads .env files in order of precedence:
|
|
88
|
+
1. Process environment (highest priority)
|
|
89
|
+
2. `./repomix/.env` (skill-specific)
|
|
90
|
+
3. `./skills/.env` (skills directory)
|
|
91
|
+
4. `%USERPROFILE%/.claude/.env` (lowest priority)
|
|
92
|
+
|
|
93
|
+
### Command Line Options
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
positional arguments:
|
|
97
|
+
repos Repository paths or URLs to process
|
|
98
|
+
|
|
99
|
+
options:
|
|
100
|
+
-h, --help Show help message
|
|
101
|
+
-f, --file FILE JSON file containing repository configurations
|
|
102
|
+
--style {xml,markdown,json,plain}
|
|
103
|
+
Output format (default: xml)
|
|
104
|
+
-o, --output-dir DIR Output directory (default: repomix-output)
|
|
105
|
+
--remove-comments Remove comments from source files
|
|
106
|
+
--include PATTERN Include pattern (glob)
|
|
107
|
+
--ignore PATTERN Ignore pattern (glob)
|
|
108
|
+
--no-security-check Disable security checks
|
|
109
|
+
-v, --verbose Verbose output
|
|
110
|
+
--remote Treat all repos as remote URLs
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Examples
|
|
114
|
+
|
|
115
|
+
**Process local repositories:**
|
|
116
|
+
```bash
|
|
117
|
+
python repomix_batch.py /path/to/repo1 /path/to/repo2 --style markdown
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**Process remote repositories:**
|
|
121
|
+
```bash
|
|
122
|
+
python repomix_batch.py yamadashy/repomix facebook/react --remote
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Mixed configuration:**
|
|
126
|
+
```bash
|
|
127
|
+
python repomix_batch.py \
|
|
128
|
+
/local/repo \
|
|
129
|
+
--remote owner/remote-repo \
|
|
130
|
+
-f additional-repos.json \
|
|
131
|
+
--style json \
|
|
132
|
+
--remove-comments
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**TypeScript projects only:**
|
|
136
|
+
```bash
|
|
137
|
+
python repomix_batch.py /repo1 /repo2 \
|
|
138
|
+
--include "**/*.ts,**/*.tsx" \
|
|
139
|
+
--ignore "**/*.test.ts,dist/" \
|
|
140
|
+
--remove-comments \
|
|
141
|
+
--style markdown
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Testing
|
|
145
|
+
|
|
146
|
+
Run tests with coverage:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
cd tests
|
|
150
|
+
pytest test_repomix_batch.py -v --cov=repomix_batch --cov-report=term-missing
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Current coverage: 99%
|
|
154
|
+
|
|
155
|
+
### Exit Codes
|
|
156
|
+
|
|
157
|
+
- `0` - All repositories processed successfully
|
|
158
|
+
- `1` - One or more repositories failed or error occurred
|
|
159
|
+
|
|
160
|
+
### Troubleshooting
|
|
161
|
+
|
|
162
|
+
**repomix not found:**
|
|
163
|
+
```bash
|
|
164
|
+
npm install -g repomix
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
**Permission denied:**
|
|
168
|
+
```bash
|
|
169
|
+
chmod +x repomix_batch.py
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Timeout errors:**
|
|
173
|
+
- Default timeout: 5 minutes per repository
|
|
174
|
+
- Reduce scope with `--include` patterns
|
|
175
|
+
- Exclude large directories with `--ignore`
|
|
176
|
+
|
|
177
|
+
**No repositories specified:**
|
|
178
|
+
- Provide repository paths as arguments
|
|
179
|
+
- Or use `-f` flag with JSON config file
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Batch process multiple repositories using Repomix.
|
|
4
|
+
|
|
5
|
+
This script processes multiple repositories (local or remote) using the repomix CLI tool.
|
|
6
|
+
Supports configuration through environment variables loaded from multiple .env file locations.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import os
|
|
10
|
+
import sys
|
|
11
|
+
import subprocess
|
|
12
|
+
import json
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
from typing import List, Dict, Optional, Tuple
|
|
15
|
+
from dataclasses import dataclass
|
|
16
|
+
import argparse
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@dataclass
|
|
20
|
+
class RepomixConfig:
|
|
21
|
+
"""Configuration for repomix execution."""
|
|
22
|
+
style: str = "xml"
|
|
23
|
+
output_dir: str = "repomix-output"
|
|
24
|
+
remove_comments: bool = False
|
|
25
|
+
include_pattern: Optional[str] = None
|
|
26
|
+
ignore_pattern: Optional[str] = None
|
|
27
|
+
no_security_check: bool = False
|
|
28
|
+
verbose: bool = False
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class EnvLoader:
|
|
32
|
+
"""Load environment variables from multiple .env file locations."""
|
|
33
|
+
|
|
34
|
+
@staticmethod
|
|
35
|
+
def load_env_files() -> Dict[str, str]:
|
|
36
|
+
"""
|
|
37
|
+
Load environment variables from .env files in order of precedence.
|
|
38
|
+
|
|
39
|
+
Order: process.env > skill/.env > skills/.env > .claude/.env
|
|
40
|
+
|
|
41
|
+
Returns:
|
|
42
|
+
Dictionary of environment variables
|
|
43
|
+
"""
|
|
44
|
+
env_vars = {}
|
|
45
|
+
script_dir = Path(__file__).parent.resolve()
|
|
46
|
+
|
|
47
|
+
# Define search paths in reverse order (lowest to highest priority)
|
|
48
|
+
search_paths = [
|
|
49
|
+
script_dir.parent.parent.parent / ".env", # .claude/.env
|
|
50
|
+
script_dir.parent.parent / ".env", # skills/.env
|
|
51
|
+
script_dir.parent / ".env", # skill/.env (repomix/.env)
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
# Load from files (lower priority first)
|
|
55
|
+
for env_path in search_paths:
|
|
56
|
+
if env_path.exists():
|
|
57
|
+
env_vars.update(EnvLoader._parse_env_file(env_path))
|
|
58
|
+
|
|
59
|
+
# Override with process environment (highest priority)
|
|
60
|
+
env_vars.update(os.environ)
|
|
61
|
+
|
|
62
|
+
return env_vars
|
|
63
|
+
|
|
64
|
+
@staticmethod
|
|
65
|
+
def _parse_env_file(path: Path) -> Dict[str, str]:
|
|
66
|
+
"""
|
|
67
|
+
Parse a .env file and return key-value pairs.
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
path: Path to .env file
|
|
71
|
+
|
|
72
|
+
Returns:
|
|
73
|
+
Dictionary of environment variables
|
|
74
|
+
"""
|
|
75
|
+
env_vars = {}
|
|
76
|
+
try:
|
|
77
|
+
with open(path, 'r', encoding='utf-8') as f:
|
|
78
|
+
for line in f:
|
|
79
|
+
line = line.strip()
|
|
80
|
+
# Skip comments and empty lines
|
|
81
|
+
if not line or line.startswith('#'):
|
|
82
|
+
continue
|
|
83
|
+
# Parse KEY=VALUE
|
|
84
|
+
if '=' in line:
|
|
85
|
+
key, value = line.split('=', 1)
|
|
86
|
+
key = key.strip()
|
|
87
|
+
value = value.strip()
|
|
88
|
+
# Remove quotes if present
|
|
89
|
+
if value.startswith('"') and value.endswith('"'):
|
|
90
|
+
value = value[1:-1]
|
|
91
|
+
elif value.startswith("'") and value.endswith("'"):
|
|
92
|
+
value = value[1:-1]
|
|
93
|
+
env_vars[key] = value
|
|
94
|
+
except Exception as e:
|
|
95
|
+
print(f"Warning: Failed to parse {path}: {e}", file=sys.stderr)
|
|
96
|
+
|
|
97
|
+
return env_vars
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class RepomixBatchProcessor:
|
|
101
|
+
"""Process multiple repositories with repomix."""
|
|
102
|
+
|
|
103
|
+
def __init__(self, config: RepomixConfig):
|
|
104
|
+
"""
|
|
105
|
+
Initialize batch processor.
|
|
106
|
+
|
|
107
|
+
Args:
|
|
108
|
+
config: Repomix configuration
|
|
109
|
+
"""
|
|
110
|
+
self.config = config
|
|
111
|
+
self.env_vars = EnvLoader.load_env_files()
|
|
112
|
+
|
|
113
|
+
def check_repomix_installed(self) -> bool:
|
|
114
|
+
"""
|
|
115
|
+
Check if repomix is installed and accessible.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
True if repomix is installed, False otherwise
|
|
119
|
+
"""
|
|
120
|
+
try:
|
|
121
|
+
result = subprocess.run(
|
|
122
|
+
["repomix", "--version"],
|
|
123
|
+
capture_output=True,
|
|
124
|
+
text=True,
|
|
125
|
+
timeout=5,
|
|
126
|
+
env=self.env_vars
|
|
127
|
+
)
|
|
128
|
+
return result.returncode == 0
|
|
129
|
+
except (subprocess.SubprocessError, FileNotFoundError):
|
|
130
|
+
return False
|
|
131
|
+
|
|
132
|
+
def process_repository(
|
|
133
|
+
self,
|
|
134
|
+
repo_path: str,
|
|
135
|
+
output_name: Optional[str] = None,
|
|
136
|
+
is_remote: bool = False
|
|
137
|
+
) -> Tuple[bool, str]:
|
|
138
|
+
"""
|
|
139
|
+
Process a single repository with repomix.
|
|
140
|
+
|
|
141
|
+
Args:
|
|
142
|
+
repo_path: Path to local repository or remote repository URL
|
|
143
|
+
output_name: Custom output filename (optional)
|
|
144
|
+
is_remote: Whether repo_path is a remote URL
|
|
145
|
+
|
|
146
|
+
Returns:
|
|
147
|
+
Tuple of (success, message)
|
|
148
|
+
"""
|
|
149
|
+
# Create output directory if it doesn't exist
|
|
150
|
+
output_dir = Path(self.config.output_dir)
|
|
151
|
+
output_dir.mkdir(parents=True, exist_ok=True)
|
|
152
|
+
|
|
153
|
+
# Determine output filename
|
|
154
|
+
if output_name:
|
|
155
|
+
output_file = output_dir / output_name
|
|
156
|
+
else:
|
|
157
|
+
if is_remote:
|
|
158
|
+
# Extract repo name from URL
|
|
159
|
+
repo_name = repo_path.rstrip('/').split('/')[-1]
|
|
160
|
+
else:
|
|
161
|
+
repo_name = Path(repo_path).name
|
|
162
|
+
|
|
163
|
+
extension = self._get_extension(self.config.style)
|
|
164
|
+
output_file = output_dir / f"{repo_name}-output.{extension}"
|
|
165
|
+
|
|
166
|
+
# Build repomix command
|
|
167
|
+
cmd = self._build_command(repo_path, output_file, is_remote)
|
|
168
|
+
|
|
169
|
+
if self.config.verbose:
|
|
170
|
+
print(f"Executing: {' '.join(cmd)}")
|
|
171
|
+
|
|
172
|
+
try:
|
|
173
|
+
result = subprocess.run(
|
|
174
|
+
cmd,
|
|
175
|
+
capture_output=True,
|
|
176
|
+
text=True,
|
|
177
|
+
timeout=300, # 5 minute timeout
|
|
178
|
+
env=self.env_vars
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
if result.returncode == 0:
|
|
182
|
+
return True, f"Successfully processed {repo_path} -> {output_file}"
|
|
183
|
+
else:
|
|
184
|
+
error_msg = result.stderr or result.stdout or "Unknown error"
|
|
185
|
+
return False, f"Failed to process {repo_path}: {error_msg}"
|
|
186
|
+
|
|
187
|
+
except subprocess.TimeoutExpired:
|
|
188
|
+
return False, f"Timeout processing {repo_path} (exceeded 5 minutes)"
|
|
189
|
+
except Exception as e:
|
|
190
|
+
return False, f"Error processing {repo_path}: {str(e)}"
|
|
191
|
+
|
|
192
|
+
def _build_command(
|
|
193
|
+
self,
|
|
194
|
+
repo_path: str,
|
|
195
|
+
output_file: Path,
|
|
196
|
+
is_remote: bool
|
|
197
|
+
) -> List[str]:
|
|
198
|
+
"""
|
|
199
|
+
Build repomix command with configuration options.
|
|
200
|
+
|
|
201
|
+
Args:
|
|
202
|
+
repo_path: Path to repository
|
|
203
|
+
output_file: Output file path
|
|
204
|
+
is_remote: Whether this is a remote repository
|
|
205
|
+
|
|
206
|
+
Returns:
|
|
207
|
+
Command as list of strings
|
|
208
|
+
"""
|
|
209
|
+
cmd = ["npx" if is_remote else "repomix"]
|
|
210
|
+
|
|
211
|
+
if is_remote:
|
|
212
|
+
cmd.extend(["repomix", "--remote", repo_path])
|
|
213
|
+
else:
|
|
214
|
+
cmd.append(repo_path)
|
|
215
|
+
|
|
216
|
+
# Add configuration options
|
|
217
|
+
cmd.extend(["--style", self.config.style])
|
|
218
|
+
cmd.extend(["-o", str(output_file)])
|
|
219
|
+
|
|
220
|
+
if self.config.remove_comments:
|
|
221
|
+
cmd.append("--remove-comments")
|
|
222
|
+
|
|
223
|
+
if self.config.include_pattern:
|
|
224
|
+
cmd.extend(["--include", self.config.include_pattern])
|
|
225
|
+
|
|
226
|
+
if self.config.ignore_pattern:
|
|
227
|
+
cmd.extend(["-i", self.config.ignore_pattern])
|
|
228
|
+
|
|
229
|
+
if self.config.no_security_check:
|
|
230
|
+
cmd.append("--no-security-check")
|
|
231
|
+
|
|
232
|
+
if self.config.verbose:
|
|
233
|
+
cmd.append("--verbose")
|
|
234
|
+
|
|
235
|
+
return cmd
|
|
236
|
+
|
|
237
|
+
@staticmethod
|
|
238
|
+
def _get_extension(style: str) -> str:
|
|
239
|
+
"""
|
|
240
|
+
Get file extension for output style.
|
|
241
|
+
|
|
242
|
+
Args:
|
|
243
|
+
style: Output style (xml, markdown, json, plain)
|
|
244
|
+
|
|
245
|
+
Returns:
|
|
246
|
+
File extension
|
|
247
|
+
"""
|
|
248
|
+
extensions = {
|
|
249
|
+
"xml": "xml",
|
|
250
|
+
"markdown": "md",
|
|
251
|
+
"json": "json",
|
|
252
|
+
"plain": "txt"
|
|
253
|
+
}
|
|
254
|
+
return extensions.get(style, "xml")
|
|
255
|
+
|
|
256
|
+
def process_batch(
|
|
257
|
+
self,
|
|
258
|
+
repositories: List[Dict[str, str]]
|
|
259
|
+
) -> Dict[str, List[str]]:
|
|
260
|
+
"""
|
|
261
|
+
Process multiple repositories.
|
|
262
|
+
|
|
263
|
+
Args:
|
|
264
|
+
repositories: List of repository configurations
|
|
265
|
+
Each dict should contain:
|
|
266
|
+
- 'path': Repository path or URL
|
|
267
|
+
- 'output': Optional output filename
|
|
268
|
+
- 'remote': Optional boolean for remote repos
|
|
269
|
+
|
|
270
|
+
Returns:
|
|
271
|
+
Dictionary with 'success' and 'failed' lists
|
|
272
|
+
"""
|
|
273
|
+
results = {"success": [], "failed": []}
|
|
274
|
+
|
|
275
|
+
for repo in repositories:
|
|
276
|
+
repo_path = repo.get("path")
|
|
277
|
+
if not repo_path:
|
|
278
|
+
results["failed"].append("Missing 'path' in repository config")
|
|
279
|
+
continue
|
|
280
|
+
|
|
281
|
+
output_name = repo.get("output")
|
|
282
|
+
is_remote = repo.get("remote", False)
|
|
283
|
+
|
|
284
|
+
success, message = self.process_repository(
|
|
285
|
+
repo_path,
|
|
286
|
+
output_name,
|
|
287
|
+
is_remote
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
if success:
|
|
291
|
+
results["success"].append(message)
|
|
292
|
+
else:
|
|
293
|
+
results["failed"].append(message)
|
|
294
|
+
|
|
295
|
+
print(message)
|
|
296
|
+
|
|
297
|
+
return results
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
def load_repositories_from_file(file_path: str) -> List[Dict[str, str]]:
|
|
301
|
+
"""
|
|
302
|
+
Load repository configurations from JSON file.
|
|
303
|
+
|
|
304
|
+
Expected format:
|
|
305
|
+
[
|
|
306
|
+
{"path": "/path/to/repo", "output": "custom.xml"},
|
|
307
|
+
{"path": "owner/repo", "remote": true},
|
|
308
|
+
...
|
|
309
|
+
]
|
|
310
|
+
|
|
311
|
+
Args:
|
|
312
|
+
file_path: Path to JSON file
|
|
313
|
+
|
|
314
|
+
Returns:
|
|
315
|
+
List of repository configurations
|
|
316
|
+
"""
|
|
317
|
+
try:
|
|
318
|
+
with open(file_path, 'r', encoding='utf-8') as f:
|
|
319
|
+
data = json.load(f)
|
|
320
|
+
if isinstance(data, list):
|
|
321
|
+
return data
|
|
322
|
+
else:
|
|
323
|
+
print(f"Error: Expected array in {file_path}", file=sys.stderr)
|
|
324
|
+
return []
|
|
325
|
+
except json.JSONDecodeError as e:
|
|
326
|
+
print(f"Error: Invalid JSON in {file_path}: {e}", file=sys.stderr)
|
|
327
|
+
return []
|
|
328
|
+
except Exception as e:
|
|
329
|
+
print(f"Error: Failed to read {file_path}: {e}", file=sys.stderr)
|
|
330
|
+
return []
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
def main():
|
|
334
|
+
"""Main entry point for the script."""
|
|
335
|
+
parser = argparse.ArgumentParser(
|
|
336
|
+
description="Batch process multiple repositories with repomix"
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
# Input options
|
|
340
|
+
parser.add_argument(
|
|
341
|
+
"repos",
|
|
342
|
+
nargs="*",
|
|
343
|
+
help="Repository paths or URLs to process"
|
|
344
|
+
)
|
|
345
|
+
parser.add_argument(
|
|
346
|
+
"-f", "--file",
|
|
347
|
+
help="JSON file containing repository configurations"
|
|
348
|
+
)
|
|
349
|
+
|
|
350
|
+
# Output options
|
|
351
|
+
parser.add_argument(
|
|
352
|
+
"--style",
|
|
353
|
+
choices=["xml", "markdown", "json", "plain"],
|
|
354
|
+
default="xml",
|
|
355
|
+
help="Output format (default: xml)"
|
|
356
|
+
)
|
|
357
|
+
parser.add_argument(
|
|
358
|
+
"-o", "--output-dir",
|
|
359
|
+
default="repomix-output",
|
|
360
|
+
help="Output directory (default: repomix-output)"
|
|
361
|
+
)
|
|
362
|
+
|
|
363
|
+
# Processing options
|
|
364
|
+
parser.add_argument(
|
|
365
|
+
"--remove-comments",
|
|
366
|
+
action="store_true",
|
|
367
|
+
help="Remove comments from source files"
|
|
368
|
+
)
|
|
369
|
+
parser.add_argument(
|
|
370
|
+
"--include",
|
|
371
|
+
help="Include pattern (glob)"
|
|
372
|
+
)
|
|
373
|
+
parser.add_argument(
|
|
374
|
+
"--ignore",
|
|
375
|
+
help="Ignore pattern (glob)"
|
|
376
|
+
)
|
|
377
|
+
parser.add_argument(
|
|
378
|
+
"--no-security-check",
|
|
379
|
+
action="store_true",
|
|
380
|
+
help="Disable security checks"
|
|
381
|
+
)
|
|
382
|
+
parser.add_argument(
|
|
383
|
+
"-v", "--verbose",
|
|
384
|
+
action="store_true",
|
|
385
|
+
help="Verbose output"
|
|
386
|
+
)
|
|
387
|
+
parser.add_argument(
|
|
388
|
+
"--remote",
|
|
389
|
+
action="store_true",
|
|
390
|
+
help="Treat all repos as remote URLs"
|
|
391
|
+
)
|
|
392
|
+
|
|
393
|
+
args = parser.parse_args()
|
|
394
|
+
|
|
395
|
+
# Create configuration
|
|
396
|
+
config = RepomixConfig(
|
|
397
|
+
style=args.style,
|
|
398
|
+
output_dir=args.output_dir,
|
|
399
|
+
remove_comments=args.remove_comments,
|
|
400
|
+
include_pattern=args.include,
|
|
401
|
+
ignore_pattern=args.ignore,
|
|
402
|
+
no_security_check=args.no_security_check,
|
|
403
|
+
verbose=args.verbose
|
|
404
|
+
)
|
|
405
|
+
|
|
406
|
+
# Initialize processor
|
|
407
|
+
processor = RepomixBatchProcessor(config)
|
|
408
|
+
|
|
409
|
+
# Check if repomix is installed
|
|
410
|
+
if not processor.check_repomix_installed():
|
|
411
|
+
print("Error: repomix is not installed or not in PATH", file=sys.stderr)
|
|
412
|
+
print("Install with: npm install -g repomix", file=sys.stderr)
|
|
413
|
+
return 1
|
|
414
|
+
|
|
415
|
+
# Collect repositories to process
|
|
416
|
+
repositories = []
|
|
417
|
+
|
|
418
|
+
# Load from file if specified
|
|
419
|
+
if args.file:
|
|
420
|
+
repositories.extend(load_repositories_from_file(args.file))
|
|
421
|
+
|
|
422
|
+
# Add command line repositories
|
|
423
|
+
if args.repos:
|
|
424
|
+
for repo_path in args.repos:
|
|
425
|
+
repositories.append({
|
|
426
|
+
"path": repo_path,
|
|
427
|
+
"remote": args.remote
|
|
428
|
+
})
|
|
429
|
+
|
|
430
|
+
# Validate we have repositories to process
|
|
431
|
+
if not repositories:
|
|
432
|
+
print("Error: No repositories specified", file=sys.stderr)
|
|
433
|
+
print("Use: repomix_batch.py <repo1> <repo2> ...", file=sys.stderr)
|
|
434
|
+
print("Or: repomix_batch.py -f repos.json", file=sys.stderr)
|
|
435
|
+
return 1
|
|
436
|
+
|
|
437
|
+
# Process batch
|
|
438
|
+
print(f"Processing {len(repositories)} repositories...")
|
|
439
|
+
results = processor.process_batch(repositories)
|
|
440
|
+
|
|
441
|
+
# Print summary
|
|
442
|
+
print("\n" + "=" * 50)
|
|
443
|
+
print(f"Success: {len(results['success'])}")
|
|
444
|
+
print(f"Failed: {len(results['failed'])}")
|
|
445
|
+
|
|
446
|
+
if results['failed']:
|
|
447
|
+
print("\nFailed repositories:")
|
|
448
|
+
for failure in results['failed']:
|
|
449
|
+
print(f" - {failure}")
|
|
450
|
+
|
|
451
|
+
return 0 if not results['failed'] else 1
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
if __name__ == "__main__":
|
|
455
|
+
sys.exit(main())
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Repomix Skill Dependencies
|
|
2
|
+
# Python 3.10+ required
|
|
3
|
+
|
|
4
|
+
# No Python package dependencies - uses only standard library
|
|
5
|
+
|
|
6
|
+
# Testing dependencies (dev)
|
|
7
|
+
pytest>=8.0.0
|
|
8
|
+
pytest-cov>=4.1.0
|
|
9
|
+
pytest-mock>=3.12.0
|
|
10
|
+
|
|
11
|
+
# Note: This script requires the Repomix CLI tool
|
|
12
|
+
# Install Repomix globally:
|
|
13
|
+
# npm install -g repomix
|
|
14
|
+
# pnpm add -g repomix
|
|
15
|
+
# yarn global add repomix
|