bps-kit 1.0.1 → 1.0.2
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/package.json +1 -1
- package/templates/.agents/agents/backend-specialist.md +263 -0
- package/templates/.agents/agents/code-archaeologist.md +106 -0
- package/templates/.agents/agents/database-architect.md +226 -0
- package/templates/.agents/agents/debugger.md +225 -0
- package/templates/.agents/agents/devops-engineer.md +242 -0
- package/templates/.agents/agents/documentation-writer.md +104 -0
- package/templates/.agents/agents/explorer-agent.md +73 -0
- package/templates/.agents/agents/frontend-specialist.md +593 -0
- package/templates/.agents/agents/game-developer.md +162 -0
- package/templates/.agents/agents/mobile-developer.md +377 -0
- package/templates/.agents/agents/orchestrator.md +416 -0
- package/templates/.agents/agents/penetration-tester.md +188 -0
- package/templates/.agents/agents/performance-optimizer.md +187 -0
- package/templates/.agents/agents/product-manager.md +112 -0
- package/templates/.agents/agents/product-owner.md +95 -0
- package/templates/.agents/agents/project-planner.md +406 -0
- package/templates/.agents/agents/qa-automation-engineer.md +103 -0
- package/templates/.agents/agents/security-auditor.md +170 -0
- package/templates/.agents/agents/seo-specialist.md +111 -0
- package/templates/.agents/agents/test-engineer.md +158 -0
- package/templates/.agents/rules/GEMINI.md +219 -0
- package/templates/.agents/scripts/auto_preview.py +148 -0
- package/templates/.agents/scripts/checklist.py +217 -0
- package/templates/.agents/scripts/session_manager.py +120 -0
- package/templates/.agents/scripts/verify_all.py +327 -0
- package/templates/.agents/workflows/brainstorm.md +113 -0
- package/templates/.agents/workflows/create.md +59 -0
- package/templates/.agents/workflows/debug.md +103 -0
- package/templates/.agents/workflows/deploy.md +176 -0
- package/templates/.agents/workflows/enhance.md +63 -0
- package/templates/.agents/workflows/orchestrate.md +237 -0
- package/templates/.agents/workflows/plan.md +89 -0
- package/templates/.agents/workflows/preview.md +81 -0
- package/templates/.agents/workflows/setup-brain.md +39 -0
- package/templates/.agents/workflows/status.md +86 -0
- package/templates/.agents/workflows/test.md +144 -0
- package/templates/.agents/workflows/ui-ux-pro-max.md +296 -0
- package/templates/skills_normal/api-patterns/scripts/api_validator.py +211 -0
- package/templates/skills_normal/database-design/scripts/schema_validator.py +172 -0
- package/templates/skills_normal/frontend-design/scripts/accessibility_checker.py +183 -0
- package/templates/skills_normal/frontend-design/scripts/ux_audit.py +722 -0
- package/templates/skills_normal/git-pushing/scripts/smart_commit.sh +19 -0
- package/templates/skills_normal/lint-and-validate/scripts/lint_runner.py +184 -0
- package/templates/skills_normal/lint-and-validate/scripts/type_coverage.py +173 -0
- package/templates/skills_normal/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/templates/skills_normal/senior-fullstack/scripts/code_quality_analyzer.py +114 -0
- package/templates/skills_normal/senior-fullstack/scripts/fullstack_scaffolder.py +114 -0
- package/templates/skills_normal/senior-fullstack/scripts/project_scaffolder.py +114 -0
- package/templates/skills_normal/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/templates/skills_normal/testing-patterns/scripts/test_runner.py +219 -0
- package/templates/skills_normal/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/templates/vault/007/scripts/config.py +472 -0
- package/templates/vault/007/scripts/full_audit.py +1306 -0
- package/templates/vault/007/scripts/quick_scan.py +481 -0
- package/templates/vault/007/scripts/requirements.txt +26 -0
- package/templates/vault/007/scripts/scanners/__init__.py +0 -0
- package/templates/vault/007/scripts/scanners/dependency_scanner.py +1305 -0
- package/templates/vault/007/scripts/scanners/injection_scanner.py +1104 -0
- package/templates/vault/007/scripts/scanners/secrets_scanner.py +1008 -0
- package/templates/vault/007/scripts/score_calculator.py +693 -0
- package/templates/vault/agent-orchestrator/scripts/match_skills.py +329 -0
- package/templates/vault/agent-orchestrator/scripts/orchestrate.py +304 -0
- package/templates/vault/agent-orchestrator/scripts/requirements.txt +1 -0
- package/templates/vault/agent-orchestrator/scripts/scan_registry.py +508 -0
- package/templates/vault/ai-studio-image/scripts/config.py +613 -0
- package/templates/vault/ai-studio-image/scripts/generate.py +630 -0
- package/templates/vault/ai-studio-image/scripts/prompt_engine.py +424 -0
- package/templates/vault/ai-studio-image/scripts/requirements.txt +4 -0
- package/templates/vault/ai-studio-image/scripts/templates.py +349 -0
- package/templates/vault/android_ui_verification/scripts/verify_ui.sh +32 -0
- package/templates/vault/apify-audience-analysis/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-brand-reputation-monitoring/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-competitor-intelligence/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-content-analytics/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-ecommerce/reference/scripts/package.json +3 -0
- package/templates/vault/apify-ecommerce/reference/scripts/run_actor.js +369 -0
- package/templates/vault/apify-influencer-discovery/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-lead-generation/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-market-research/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-trend-analysis/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-ultimate-scraper/reference/scripts/run_actor.js +363 -0
- package/templates/vault/audio-transcriber/scripts/install-requirements.sh +190 -0
- package/templates/vault/audio-transcriber/scripts/transcribe.py +486 -0
- package/templates/vault/claude-monitor/scripts/api_bench.py +240 -0
- package/templates/vault/claude-monitor/scripts/config.py +69 -0
- package/templates/vault/claude-monitor/scripts/health_check.py +362 -0
- package/templates/vault/claude-monitor/scripts/monitor.py +296 -0
- package/templates/vault/content-creator/scripts/brand_voice_analyzer.py +185 -0
- package/templates/vault/content-creator/scripts/seo_optimizer.py +419 -0
- package/templates/vault/context-agent/scripts/active_context.py +227 -0
- package/templates/vault/context-agent/scripts/compressor.py +149 -0
- package/templates/vault/context-agent/scripts/config.py +69 -0
- package/templates/vault/context-agent/scripts/context_loader.py +155 -0
- package/templates/vault/context-agent/scripts/context_manager.py +302 -0
- package/templates/vault/context-agent/scripts/models.py +103 -0
- package/templates/vault/context-agent/scripts/project_registry.py +132 -0
- package/templates/vault/context-agent/scripts/requirements.txt +6 -0
- package/templates/vault/context-agent/scripts/search.py +115 -0
- package/templates/vault/context-agent/scripts/session_parser.py +206 -0
- package/templates/vault/context-agent/scripts/session_summary.py +319 -0
- package/templates/vault/context-guardian/scripts/context_snapshot.py +229 -0
- package/templates/vault/docx/ooxml/scripts/pack.py +159 -0
- package/templates/vault/docx/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/docx/ooxml/scripts/validate.py +69 -0
- package/templates/vault/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/docx/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/docx/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/docx/scripts/__init__.py +1 -0
- package/templates/vault/docx/scripts/document.py +1276 -0
- package/templates/vault/docx/scripts/templates/comments.xml +3 -0
- package/templates/vault/docx/scripts/templates/commentsExtended.xml +3 -0
- package/templates/vault/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/templates/vault/docx/scripts/templates/commentsIds.xml +3 -0
- package/templates/vault/docx/scripts/templates/people.xml +3 -0
- package/templates/vault/docx/scripts/utilities.py +374 -0
- package/templates/vault/docx-official/ooxml/scripts/pack.py +159 -0
- package/templates/vault/docx-official/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/docx-official/ooxml/scripts/validate.py +69 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/docx-official/scripts/__init__.py +1 -0
- package/templates/vault/docx-official/scripts/document.py +1276 -0
- package/templates/vault/docx-official/scripts/templates/comments.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/commentsExtended.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/commentsExtensible.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/commentsIds.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/people.xml +3 -0
- package/templates/vault/docx-official/scripts/utilities.py +374 -0
- package/templates/vault/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/templates/vault/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/templates/vault/i18n-localization/scripts/i18n_checker.py +241 -0
- package/templates/vault/instagram/scripts/account_setup.py +233 -0
- package/templates/vault/instagram/scripts/analyze.py +221 -0
- package/templates/vault/instagram/scripts/api_client.py +444 -0
- package/templates/vault/instagram/scripts/auth.py +411 -0
- package/templates/vault/instagram/scripts/comments.py +160 -0
- package/templates/vault/instagram/scripts/config.py +111 -0
- package/templates/vault/instagram/scripts/db.py +467 -0
- package/templates/vault/instagram/scripts/export.py +138 -0
- package/templates/vault/instagram/scripts/governance.py +233 -0
- package/templates/vault/instagram/scripts/hashtags.py +114 -0
- package/templates/vault/instagram/scripts/insights.py +170 -0
- package/templates/vault/instagram/scripts/media.py +65 -0
- package/templates/vault/instagram/scripts/messages.py +103 -0
- package/templates/vault/instagram/scripts/profile.py +58 -0
- package/templates/vault/instagram/scripts/publish.py +449 -0
- package/templates/vault/instagram/scripts/requirements.txt +5 -0
- package/templates/vault/instagram/scripts/run_all.py +189 -0
- package/templates/vault/instagram/scripts/schedule.py +189 -0
- package/templates/vault/instagram/scripts/serve_api.py +234 -0
- package/templates/vault/instagram/scripts/templates.py +155 -0
- package/templates/vault/junta-leiloeiros/scripts/db.py +216 -0
- package/templates/vault/junta-leiloeiros/scripts/export.py +137 -0
- package/templates/vault/junta-leiloeiros/scripts/requirements.txt +15 -0
- package/templates/vault/junta-leiloeiros/scripts/run_all.py +190 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/__init__.py +4 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/base_scraper.py +209 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/generic_scraper.py +110 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucap.py +110 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/juceac.py +72 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/juceal.py +72 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/juceb.py +68 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucec.py +63 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucema.py +211 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucemg.py +218 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucep.py +70 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepa.py +74 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepar.py +80 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepe.py +78 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepi.py +69 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucer.py +256 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucerja.py +170 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucern.py +71 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucesc.py +89 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucesp.py +233 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucetins.py +134 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucis_df.py +63 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucisrs.py +299 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/states.py +99 -0
- package/templates/vault/junta-leiloeiros/scripts/serve_api.py +164 -0
- package/templates/vault/junta-leiloeiros/scripts/web_scraper_fallback.py +233 -0
- package/templates/vault/last30days/scripts/last30days.py +521 -0
- package/templates/vault/last30days/scripts/lib/__init__.py +1 -0
- package/templates/vault/last30days/scripts/lib/cache.py +152 -0
- package/templates/vault/last30days/scripts/lib/dates.py +124 -0
- package/templates/vault/last30days/scripts/lib/dedupe.py +120 -0
- package/templates/vault/last30days/scripts/lib/env.py +149 -0
- package/templates/vault/last30days/scripts/lib/http.py +152 -0
- package/templates/vault/last30days/scripts/lib/models.py +175 -0
- package/templates/vault/last30days/scripts/lib/normalize.py +160 -0
- package/templates/vault/last30days/scripts/lib/openai_reddit.py +230 -0
- package/templates/vault/last30days/scripts/lib/reddit_enrich.py +232 -0
- package/templates/vault/last30days/scripts/lib/render.py +383 -0
- package/templates/vault/last30days/scripts/lib/schema.py +336 -0
- package/templates/vault/last30days/scripts/lib/score.py +311 -0
- package/templates/vault/last30days/scripts/lib/ui.py +324 -0
- package/templates/vault/last30days/scripts/lib/websearch.py +401 -0
- package/templates/vault/last30days/scripts/lib/xai_x.py +217 -0
- package/templates/vault/leiloeiro-avaliacao/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-avaliacao/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-edital/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-edital/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-ia/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-ia/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-juridico/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-juridico/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-mercado/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-mercado/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-risco/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-risco/scripts/requirements.txt +1 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/database.ts +24 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/db.ts +35 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/index.ts +2 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/migrations.ts +31 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/schema.sql +8 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/index.ts +44 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/routes/todos.ts +155 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/types/index.ts +35 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/App.css +384 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/App.tsx +81 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/api/todos.ts +57 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/ConfirmDialog.tsx +26 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/EmptyState.tsx +8 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/TodoForm.tsx +43 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/TodoItem.tsx +36 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/TodoList.tsx +27 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/hooks/useTodos.ts +81 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/index.css +48 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/main.tsx +10 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/vite-env.d.ts +1 -0
- package/templates/vault/loki-mode/scripts/export-to-vibe-kanban.sh +178 -0
- package/templates/vault/loki-mode/scripts/loki-wrapper.sh +281 -0
- package/templates/vault/loki-mode/scripts/take-screenshots.js +55 -0
- package/templates/vault/matematico-tao/scripts/complexity_analyzer.py +544 -0
- package/templates/vault/matematico-tao/scripts/dependency_graph.py +538 -0
- package/templates/vault/mcp-builder/scripts/connections.py +151 -0
- package/templates/vault/mcp-builder/scripts/evaluation.py +373 -0
- package/templates/vault/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/templates/vault/mcp-builder/scripts/requirements.txt +2 -0
- package/templates/vault/mobile-design/scripts/mobile_audit.py +670 -0
- package/templates/vault/notebooklm/scripts/__init__.py +81 -0
- package/templates/vault/notebooklm/scripts/ask_question.py +256 -0
- package/templates/vault/notebooklm/scripts/auth_manager.py +358 -0
- package/templates/vault/notebooklm/scripts/browser_session.py +255 -0
- package/templates/vault/notebooklm/scripts/browser_utils.py +107 -0
- package/templates/vault/notebooklm/scripts/cleanup_manager.py +302 -0
- package/templates/vault/notebooklm/scripts/config.py +44 -0
- package/templates/vault/notebooklm/scripts/notebook_manager.py +410 -0
- package/templates/vault/notebooklm/scripts/run.py +102 -0
- package/templates/vault/notebooklm/scripts/setup_environment.py +204 -0
- package/templates/vault/pdf/scripts/check_bounding_boxes.py +70 -0
- package/templates/vault/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/templates/vault/pdf/scripts/check_fillable_fields.py +12 -0
- package/templates/vault/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/templates/vault/pdf/scripts/create_validation_image.py +41 -0
- package/templates/vault/pdf/scripts/extract_form_field_info.py +152 -0
- package/templates/vault/pdf/scripts/fill_fillable_fields.py +114 -0
- package/templates/vault/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/templates/vault/pdf-official/scripts/check_bounding_boxes.py +70 -0
- package/templates/vault/pdf-official/scripts/check_bounding_boxes_test.py +226 -0
- package/templates/vault/pdf-official/scripts/check_fillable_fields.py +12 -0
- package/templates/vault/pdf-official/scripts/convert_pdf_to_images.py +35 -0
- package/templates/vault/pdf-official/scripts/create_validation_image.py +41 -0
- package/templates/vault/pdf-official/scripts/extract_form_field_info.py +152 -0
- package/templates/vault/pdf-official/scripts/fill_fillable_fields.py +114 -0
- package/templates/vault/pdf-official/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/templates/vault/planning-with-files/scripts/check-complete.sh +44 -0
- package/templates/vault/planning-with-files/scripts/init-session.sh +120 -0
- package/templates/vault/pptx/ooxml/scripts/pack.py +159 -0
- package/templates/vault/pptx/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/pptx/ooxml/scripts/validate.py +69 -0
- package/templates/vault/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/pptx/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/pptx/scripts/html2pptx.js +979 -0
- package/templates/vault/pptx/scripts/inventory.py +1020 -0
- package/templates/vault/pptx/scripts/rearrange.py +231 -0
- package/templates/vault/pptx/scripts/replace.py +385 -0
- package/templates/vault/pptx/scripts/thumbnail.py +450 -0
- package/templates/vault/pptx-official/ooxml/scripts/pack.py +159 -0
- package/templates/vault/pptx-official/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/pptx-official/ooxml/scripts/validate.py +69 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/pptx-official/scripts/html2pptx.js +979 -0
- package/templates/vault/pptx-official/scripts/inventory.py +1020 -0
- package/templates/vault/pptx-official/scripts/rearrange.py +231 -0
- package/templates/vault/pptx-official/scripts/replace.py +385 -0
- package/templates/vault/pptx-official/scripts/thumbnail.py +450 -0
- package/templates/vault/product-manager-toolkit/scripts/customer_interview_analyzer.py +441 -0
- package/templates/vault/product-manager-toolkit/scripts/rice_prioritizer.py +296 -0
- package/templates/vault/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/templates/vault/scripts/.skill_cache.json +7538 -0
- package/templates/vault/scripts/skill_search.py +228 -0
- package/templates/vault/senior-architect/scripts/architecture_diagram_generator.py +114 -0
- package/templates/vault/senior-architect/scripts/dependency_analyzer.py +114 -0
- package/templates/vault/senior-architect/scripts/project_architect.py +114 -0
- package/templates/vault/shopify-development/scripts/requirements.txt +19 -0
- package/templates/vault/shopify-development/scripts/shopify_graphql.py +428 -0
- package/templates/vault/shopify-development/scripts/shopify_init.py +441 -0
- package/templates/vault/shopify-development/scripts/tests/test_shopify_init.py +379 -0
- package/templates/vault/skill-creator/scripts/init_skill.py +303 -0
- package/templates/vault/skill-creator/scripts/package_skill.py +110 -0
- package/templates/vault/skill-creator/scripts/quick_validate.py +95 -0
- package/templates/vault/skill-installer/scripts/detect_skills.py +318 -0
- package/templates/vault/skill-installer/scripts/install_skill.py +1708 -0
- package/templates/vault/skill-installer/scripts/package_skill.py +417 -0
- package/templates/vault/skill-installer/scripts/requirements.txt +1 -0
- package/templates/vault/skill-installer/scripts/validate_skill.py +430 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/__init__.py +13 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/code_quality.py +247 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/cross_skill.py +134 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/dependencies.py +121 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/documentation.py +189 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/governance_audit.py +153 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/performance.py +164 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/security.py +189 -0
- package/templates/vault/skill-sentinel/scripts/config.py +158 -0
- package/templates/vault/skill-sentinel/scripts/cost_optimizer.py +146 -0
- package/templates/vault/skill-sentinel/scripts/db.py +354 -0
- package/templates/vault/skill-sentinel/scripts/governance.py +58 -0
- package/templates/vault/skill-sentinel/scripts/recommender.py +228 -0
- package/templates/vault/skill-sentinel/scripts/report_generator.py +224 -0
- package/templates/vault/skill-sentinel/scripts/requirements.txt +1 -0
- package/templates/vault/skill-sentinel/scripts/run_audit.py +290 -0
- package/templates/vault/skill-sentinel/scripts/scanner.py +271 -0
- package/templates/vault/stability-ai/scripts/config.py +266 -0
- package/templates/vault/stability-ai/scripts/generate.py +687 -0
- package/templates/vault/stability-ai/scripts/requirements.txt +4 -0
- package/templates/vault/stability-ai/scripts/styles.py +174 -0
- package/templates/vault/telegram/assets/boilerplate/nodejs/src/bot-client.ts +86 -0
- package/templates/vault/telegram/assets/boilerplate/nodejs/src/handlers.ts +79 -0
- package/templates/vault/telegram/assets/boilerplate/nodejs/src/index.ts +32 -0
- package/templates/vault/telegram/scripts/send_message.py +143 -0
- package/templates/vault/telegram/scripts/setup_project.py +103 -0
- package/templates/vault/telegram/scripts/test_bot.py +144 -0
- package/templates/vault/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/templates/vault/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
- package/templates/vault/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
- package/templates/vault/ui-ux-pro-max/scripts/core.py +257 -0
- package/templates/vault/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/templates/vault/ui-ux-pro-max/scripts/search.py +76 -0
- package/templates/vault/videodb/scripts/ws_listener.py +204 -0
- package/templates/vault/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/templates/vault/web-artifacts-builder/scripts/init-artifact.sh +322 -0
- package/templates/vault/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/templates/vault/webapp-testing/scripts/with_server.py +106 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/index.ts +125 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/template-manager.ts +67 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/types.ts +216 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/webhook-handler.ts +173 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/whatsapp-client.ts +193 -0
- package/templates/vault/whatsapp-cloud-api/scripts/send_test_message.py +137 -0
- package/templates/vault/whatsapp-cloud-api/scripts/setup_project.py +118 -0
- package/templates/vault/whatsapp-cloud-api/scripts/validate_config.py +190 -0
- package/templates/vault/youtube-summarizer/scripts/extract-transcript.py +65 -0
- package/templates/vault/youtube-summarizer/scripts/install-dependencies.sh +28 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Master Checklist Runner - Antigravity Kit
|
|
4
|
+
==========================================
|
|
5
|
+
|
|
6
|
+
Orchestrates all validation scripts in priority order.
|
|
7
|
+
Use this for incremental validation during development.
|
|
8
|
+
|
|
9
|
+
Usage:
|
|
10
|
+
python scripts/checklist.py . # Run core checks
|
|
11
|
+
python scripts/checklist.py . --url <URL> # Include performance checks
|
|
12
|
+
|
|
13
|
+
Priority Order:
|
|
14
|
+
P0: Security Scan (vulnerabilities, secrets)
|
|
15
|
+
P1: Lint & Type Check (code quality)
|
|
16
|
+
P2: Schema Validation (if database exists)
|
|
17
|
+
P3: Test Runner (unit/integration tests)
|
|
18
|
+
P4: UX Audit (psychology laws, accessibility)
|
|
19
|
+
P5: SEO Check (meta tags, structure)
|
|
20
|
+
P6: Performance (lighthouse - requires URL)
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
import sys
|
|
24
|
+
import subprocess
|
|
25
|
+
import argparse
|
|
26
|
+
from pathlib import Path
|
|
27
|
+
from typing import List, Tuple, Optional
|
|
28
|
+
|
|
29
|
+
# ANSI colors for terminal output
|
|
30
|
+
class Colors:
|
|
31
|
+
HEADER = '\033[95m'
|
|
32
|
+
BLUE = '\033[94m'
|
|
33
|
+
CYAN = '\033[96m'
|
|
34
|
+
GREEN = '\033[92m'
|
|
35
|
+
YELLOW = '\033[93m'
|
|
36
|
+
RED = '\033[91m'
|
|
37
|
+
ENDC = '\033[0m'
|
|
38
|
+
BOLD = '\033[1m'
|
|
39
|
+
|
|
40
|
+
def print_header(text: str):
|
|
41
|
+
print(f"\n{Colors.BOLD}{Colors.CYAN}{'='*60}{Colors.ENDC}")
|
|
42
|
+
print(f"{Colors.BOLD}{Colors.CYAN}{text.center(60)}{Colors.ENDC}")
|
|
43
|
+
print(f"{Colors.BOLD}{Colors.CYAN}{'='*60}{Colors.ENDC}\n")
|
|
44
|
+
|
|
45
|
+
def print_step(text: str):
|
|
46
|
+
print(f"{Colors.BOLD}{Colors.BLUE}🔄 {text}{Colors.ENDC}")
|
|
47
|
+
|
|
48
|
+
def print_success(text: str):
|
|
49
|
+
print(f"{Colors.GREEN}✅ {text}{Colors.ENDC}")
|
|
50
|
+
|
|
51
|
+
def print_warning(text: str):
|
|
52
|
+
print(f"{Colors.YELLOW}⚠️ {text}{Colors.ENDC}")
|
|
53
|
+
|
|
54
|
+
def print_error(text: str):
|
|
55
|
+
print(f"{Colors.RED}❌ {text}{Colors.ENDC}")
|
|
56
|
+
|
|
57
|
+
# Define priority-ordered checks
|
|
58
|
+
CORE_CHECKS = [
|
|
59
|
+
("Security Scan", ".agents/skills/vulnerability-scanner/scripts/security_scan.py", True),
|
|
60
|
+
("Lint Check", ".agents/skills/lint-and-validate/scripts/lint_runner.py", True),
|
|
61
|
+
("Schema Validation", ".agents/skills/database-design/scripts/schema_validator.py", False),
|
|
62
|
+
("Test Runner", ".agents/skills/testing-patterns/scripts/test_runner.py", False),
|
|
63
|
+
("UX Audit", ".agents/skills/frontend-design/scripts/ux_audit.py", False),
|
|
64
|
+
("SEO Check", ".agents/skills/seo-fundamentals/scripts/seo_checker.py", False),
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
PERFORMANCE_CHECKS = [
|
|
68
|
+
("Lighthouse Audit", ".agents/skills/performance-profiling/scripts/lighthouse_audit.py", True),
|
|
69
|
+
("Playwright E2E", ".agents/skills/webapp-testing/scripts/playwright_runner.py", False),
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
def check_script_exists(script_path: Path) -> bool:
|
|
73
|
+
"""Check if script file exists"""
|
|
74
|
+
return script_path.exists() and script_path.is_file()
|
|
75
|
+
|
|
76
|
+
def run_script(name: str, script_path: Path, project_path: str, url: Optional[str] = None) -> dict:
|
|
77
|
+
"""
|
|
78
|
+
Run a validation script and capture results
|
|
79
|
+
|
|
80
|
+
Returns:
|
|
81
|
+
dict with keys: name, passed, output, skipped
|
|
82
|
+
"""
|
|
83
|
+
if not check_script_exists(script_path):
|
|
84
|
+
print_warning(f"{name}: Script not found, skipping")
|
|
85
|
+
return {"name": name, "passed": True, "output": "", "skipped": True}
|
|
86
|
+
|
|
87
|
+
print_step(f"Running: {name}")
|
|
88
|
+
|
|
89
|
+
# Build command
|
|
90
|
+
cmd = ["python", str(script_path), project_path]
|
|
91
|
+
if url and ("lighthouse" in script_path.name.lower() or "playwright" in script_path.name.lower()):
|
|
92
|
+
cmd.append(url)
|
|
93
|
+
|
|
94
|
+
# Run script
|
|
95
|
+
try:
|
|
96
|
+
result = subprocess.run(
|
|
97
|
+
cmd,
|
|
98
|
+
capture_output=True,
|
|
99
|
+
text=True,
|
|
100
|
+
timeout=300 # 5 minute timeout
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
passed = result.returncode == 0
|
|
104
|
+
|
|
105
|
+
if passed:
|
|
106
|
+
print_success(f"{name}: PASSED")
|
|
107
|
+
else:
|
|
108
|
+
print_error(f"{name}: FAILED")
|
|
109
|
+
if result.stderr:
|
|
110
|
+
print(f" Error: {result.stderr[:200]}")
|
|
111
|
+
|
|
112
|
+
return {
|
|
113
|
+
"name": name,
|
|
114
|
+
"passed": passed,
|
|
115
|
+
"output": result.stdout,
|
|
116
|
+
"error": result.stderr,
|
|
117
|
+
"skipped": False
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
except subprocess.TimeoutExpired:
|
|
121
|
+
print_error(f"{name}: TIMEOUT (>5 minutes)")
|
|
122
|
+
return {"name": name, "passed": False, "output": "", "error": "Timeout", "skipped": False}
|
|
123
|
+
|
|
124
|
+
except Exception as e:
|
|
125
|
+
print_error(f"{name}: ERROR - {str(e)}")
|
|
126
|
+
return {"name": name, "passed": False, "output": "", "error": str(e), "skipped": False}
|
|
127
|
+
|
|
128
|
+
def print_summary(results: List[dict]):
|
|
129
|
+
"""Print final summary report"""
|
|
130
|
+
print_header("📊 CHECKLIST SUMMARY")
|
|
131
|
+
|
|
132
|
+
passed_count = sum(1 for r in results if r["passed"] and not r.get("skipped"))
|
|
133
|
+
failed_count = sum(1 for r in results if not r["passed"] and not r.get("skipped"))
|
|
134
|
+
skipped_count = sum(1 for r in results if r.get("skipped"))
|
|
135
|
+
|
|
136
|
+
print(f"Total Checks: {len(results)}")
|
|
137
|
+
print(f"{Colors.GREEN}✅ Passed: {passed_count}{Colors.ENDC}")
|
|
138
|
+
print(f"{Colors.RED}❌ Failed: {failed_count}{Colors.ENDC}")
|
|
139
|
+
print(f"{Colors.YELLOW}⏭️ Skipped: {skipped_count}{Colors.ENDC}")
|
|
140
|
+
print()
|
|
141
|
+
|
|
142
|
+
# Detailed results
|
|
143
|
+
for r in results:
|
|
144
|
+
if r.get("skipped"):
|
|
145
|
+
status = f"{Colors.YELLOW}⏭️ {Colors.ENDC}"
|
|
146
|
+
elif r["passed"]:
|
|
147
|
+
status = f"{Colors.GREEN}✅{Colors.ENDC}"
|
|
148
|
+
else:
|
|
149
|
+
status = f"{Colors.RED}❌{Colors.ENDC}"
|
|
150
|
+
|
|
151
|
+
print(f"{status} {r['name']}")
|
|
152
|
+
|
|
153
|
+
print()
|
|
154
|
+
|
|
155
|
+
if failed_count > 0:
|
|
156
|
+
print_error(f"{failed_count} check(s) FAILED - Please fix before proceeding")
|
|
157
|
+
return False
|
|
158
|
+
else:
|
|
159
|
+
print_success("All checks PASSED ✨")
|
|
160
|
+
return True
|
|
161
|
+
|
|
162
|
+
def main():
|
|
163
|
+
parser = argparse.ArgumentParser(
|
|
164
|
+
description="Run Antigravity Kit validation checklist",
|
|
165
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
166
|
+
epilog="""
|
|
167
|
+
Examples:
|
|
168
|
+
python scripts/checklist.py . # Core checks only
|
|
169
|
+
python scripts/checklist.py . --url http://localhost:3000 # Include performance
|
|
170
|
+
"""
|
|
171
|
+
)
|
|
172
|
+
parser.add_argument("project", help="Project path to validate")
|
|
173
|
+
parser.add_argument("--url", help="URL for performance checks (lighthouse, playwright)")
|
|
174
|
+
parser.add_argument("--skip-performance", action="store_true", help="Skip performance checks even if URL provided")
|
|
175
|
+
|
|
176
|
+
args = parser.parse_args()
|
|
177
|
+
|
|
178
|
+
project_path = Path(args.project).resolve()
|
|
179
|
+
|
|
180
|
+
if not project_path.exists():
|
|
181
|
+
print_error(f"Project path does not exist: {project_path}")
|
|
182
|
+
sys.exit(1)
|
|
183
|
+
|
|
184
|
+
print_header("🚀 ANTIGRAVITY KIT - MASTER CHECKLIST")
|
|
185
|
+
print(f"Project: {project_path}")
|
|
186
|
+
print(f"URL: {args.url if args.url else 'Not provided (performance checks skipped)'}")
|
|
187
|
+
|
|
188
|
+
results = []
|
|
189
|
+
|
|
190
|
+
# Run core checks
|
|
191
|
+
print_header("📋 CORE CHECKS")
|
|
192
|
+
for name, script_path, required in CORE_CHECKS:
|
|
193
|
+
script = project_path / script_path
|
|
194
|
+
result = run_script(name, script, str(project_path))
|
|
195
|
+
results.append(result)
|
|
196
|
+
|
|
197
|
+
# If required check fails, stop
|
|
198
|
+
if required and not result["passed"] and not result.get("skipped"):
|
|
199
|
+
print_error(f"CRITICAL: {name} failed. Stopping checklist.")
|
|
200
|
+
print_summary(results)
|
|
201
|
+
sys.exit(1)
|
|
202
|
+
|
|
203
|
+
# Run performance checks if URL provided
|
|
204
|
+
if args.url and not args.skip_performance:
|
|
205
|
+
print_header("⚡ PERFORMANCE CHECKS")
|
|
206
|
+
for name, script_path, required in PERFORMANCE_CHECKS:
|
|
207
|
+
script = project_path / script_path
|
|
208
|
+
result = run_script(name, script, str(project_path), args.url)
|
|
209
|
+
results.append(result)
|
|
210
|
+
|
|
211
|
+
# Print summary
|
|
212
|
+
all_passed = print_summary(results)
|
|
213
|
+
|
|
214
|
+
sys.exit(0 if all_passed else 1)
|
|
215
|
+
|
|
216
|
+
if __name__ == "__main__":
|
|
217
|
+
main()
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Session Manager - Antigravity Kit
|
|
4
|
+
=================================
|
|
5
|
+
Analyzes project state, detects tech stack, tracks file statistics, and provides
|
|
6
|
+
a summary of the current session.
|
|
7
|
+
|
|
8
|
+
Usage:
|
|
9
|
+
python .agent/scripts/session_manager.py status [path]
|
|
10
|
+
python .agent/scripts/session_manager.py info [path]
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import os
|
|
14
|
+
import json
|
|
15
|
+
import argparse
|
|
16
|
+
from pathlib import Path
|
|
17
|
+
from typing import Dict, Any, List
|
|
18
|
+
|
|
19
|
+
def get_project_root(path: str) -> Path:
|
|
20
|
+
return Path(path).resolve()
|
|
21
|
+
|
|
22
|
+
def analyze_package_json(root: Path) -> Dict[str, Any]:
|
|
23
|
+
pkg_file = root / "package.json"
|
|
24
|
+
if not pkg_file.exists():
|
|
25
|
+
return {"type": "unknown", "dependencies": {}}
|
|
26
|
+
|
|
27
|
+
try:
|
|
28
|
+
with open(pkg_file, 'r', encoding='utf-8') as f:
|
|
29
|
+
data = json.load(f)
|
|
30
|
+
|
|
31
|
+
deps = data.get("dependencies", {})
|
|
32
|
+
dev_deps = data.get("devDependencies", {})
|
|
33
|
+
all_deps = {**deps, **dev_deps}
|
|
34
|
+
|
|
35
|
+
stack = []
|
|
36
|
+
if "next" in all_deps: stack.append("Next.js")
|
|
37
|
+
elif "react" in all_deps: stack.append("React")
|
|
38
|
+
elif "vue" in all_deps: stack.append("Vue")
|
|
39
|
+
elif "svelte" in all_deps: stack.append("Svelte")
|
|
40
|
+
elif "express" in all_deps: stack.append("Express")
|
|
41
|
+
elif "nestjs" in all_deps or "@nestjs/core" in all_deps: stack.append("NestJS")
|
|
42
|
+
|
|
43
|
+
if "tailwindcss" in all_deps: stack.append("Tailwind CSS")
|
|
44
|
+
if "prisma" in all_deps: stack.append("Prisma")
|
|
45
|
+
if "typescript" in all_deps: stack.append("TypeScript")
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
"name": data.get("name", "unnamed"),
|
|
49
|
+
"version": data.get("version", "0.0.0"),
|
|
50
|
+
"stack": stack,
|
|
51
|
+
"scripts": list(data.get("scripts", {}).keys())
|
|
52
|
+
}
|
|
53
|
+
except Exception as e:
|
|
54
|
+
return {"error": str(e)}
|
|
55
|
+
|
|
56
|
+
def count_files(root: Path) -> Dict[str, int]:
|
|
57
|
+
stats = {"created": 0, "modified": 0, "total": 0}
|
|
58
|
+
# Simple count for now, comprehensive tracking would require git diff or extensive history
|
|
59
|
+
exclude = {".git", "node_modules", ".next", "dist", "build", ".agents", ".gemini", "__pycache__"}
|
|
60
|
+
|
|
61
|
+
for root_dir, dirs, files in os.walk(root):
|
|
62
|
+
dirs[:] = [d for d in dirs if d not in exclude]
|
|
63
|
+
stats["total"] += len(files)
|
|
64
|
+
|
|
65
|
+
return stats
|
|
66
|
+
|
|
67
|
+
def detect_features(root: Path) -> List[str]:
|
|
68
|
+
# Heuristic: look at folder names in src/
|
|
69
|
+
features = []
|
|
70
|
+
src = root / "src"
|
|
71
|
+
if src.exists():
|
|
72
|
+
possible_dirs = ["components", "modules", "features", "app", "pages", "services"]
|
|
73
|
+
for d in possible_dirs:
|
|
74
|
+
p = src / d
|
|
75
|
+
if p.exists() and p.is_dir():
|
|
76
|
+
# List subdirectories as likely features
|
|
77
|
+
for child in p.iterdir():
|
|
78
|
+
if child.is_dir():
|
|
79
|
+
features.append(child.name)
|
|
80
|
+
return features[:10] # Limit to top 10
|
|
81
|
+
|
|
82
|
+
def print_status(root: Path):
|
|
83
|
+
info = analyze_package_json(root)
|
|
84
|
+
stats = count_files(root)
|
|
85
|
+
features = detect_features(root)
|
|
86
|
+
|
|
87
|
+
print("\n=== Project Status ===")
|
|
88
|
+
print(f"\n📁 Project: {info.get('name', root.name)}")
|
|
89
|
+
print(f"📂 Path: {root}")
|
|
90
|
+
print(f"🏷️ Type: {', '.join(info.get('stack', ['Generic']))}")
|
|
91
|
+
print(f"📊 Status: Active")
|
|
92
|
+
|
|
93
|
+
print("\n🔧 Tech Stack:")
|
|
94
|
+
for tech in info.get('stack', []):
|
|
95
|
+
print(f" • {tech}")
|
|
96
|
+
|
|
97
|
+
print(f"\n✅ Detected Modules/Features ({len(features)}):")
|
|
98
|
+
for feat in features:
|
|
99
|
+
print(f" • {feat}")
|
|
100
|
+
if not features:
|
|
101
|
+
print(" (No distinct feature modules detected)")
|
|
102
|
+
|
|
103
|
+
print(f"\n📄 Files: {stats['total']} total files tracked")
|
|
104
|
+
print("\n====================\n")
|
|
105
|
+
|
|
106
|
+
def main():
|
|
107
|
+
parser = argparse.ArgumentParser(description="Session Manager")
|
|
108
|
+
parser.add_argument("command", choices=["status", "info"], help="Command to run")
|
|
109
|
+
parser.add_argument("path", nargs="?", default=".", help="Project path")
|
|
110
|
+
|
|
111
|
+
args = parser.parse_args()
|
|
112
|
+
root = get_project_root(args.path)
|
|
113
|
+
|
|
114
|
+
if args.command == "status":
|
|
115
|
+
print_status(root)
|
|
116
|
+
elif args.command == "info":
|
|
117
|
+
print(json.dumps(analyze_package_json(root), indent=2))
|
|
118
|
+
|
|
119
|
+
if __name__ == "__main__":
|
|
120
|
+
main()
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Full Verification Suite - Antigravity Kit
|
|
4
|
+
==========================================
|
|
5
|
+
|
|
6
|
+
Runs COMPLETE validation including all checks + performance + E2E.
|
|
7
|
+
Use this before deployment or major releases.
|
|
8
|
+
|
|
9
|
+
Usage:
|
|
10
|
+
python scripts/verify_all.py . --url <URL>
|
|
11
|
+
|
|
12
|
+
Includes ALL checks:
|
|
13
|
+
✅ Security Scan (OWASP, secrets, dependencies)
|
|
14
|
+
✅ Lint & Type Coverage
|
|
15
|
+
✅ Schema Validation
|
|
16
|
+
✅ Test Suite (unit + integration)
|
|
17
|
+
✅ UX Audit (psychology, accessibility)
|
|
18
|
+
✅ SEO Check
|
|
19
|
+
✅ Lighthouse (Core Web Vitals)
|
|
20
|
+
✅ Playwright E2E
|
|
21
|
+
✅ Bundle Analysis (if applicable)
|
|
22
|
+
✅ Mobile Audit (if applicable)
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
import sys
|
|
26
|
+
import subprocess
|
|
27
|
+
import argparse
|
|
28
|
+
from pathlib import Path
|
|
29
|
+
from typing import List, Dict, Optional
|
|
30
|
+
from datetime import datetime
|
|
31
|
+
|
|
32
|
+
# ANSI colors
|
|
33
|
+
class Colors:
|
|
34
|
+
HEADER = '\033[95m'
|
|
35
|
+
BLUE = '\033[94m'
|
|
36
|
+
CYAN = '\033[96m'
|
|
37
|
+
GREEN = '\033[92m'
|
|
38
|
+
YELLOW = '\033[93m'
|
|
39
|
+
RED = '\033[91m'
|
|
40
|
+
ENDC = '\033[0m'
|
|
41
|
+
BOLD = '\033[1m'
|
|
42
|
+
|
|
43
|
+
def print_header(text: str):
|
|
44
|
+
print(f"\n{Colors.BOLD}{Colors.CYAN}{'='*70}{Colors.ENDC}")
|
|
45
|
+
print(f"{Colors.BOLD}{Colors.CYAN}{text.center(70)}{Colors.ENDC}")
|
|
46
|
+
print(f"{Colors.BOLD}{Colors.CYAN}{'='*70}{Colors.ENDC}\n")
|
|
47
|
+
|
|
48
|
+
def print_step(text: str):
|
|
49
|
+
print(f"{Colors.BOLD}{Colors.BLUE}🔄 {text}{Colors.ENDC}")
|
|
50
|
+
|
|
51
|
+
def print_success(text: str):
|
|
52
|
+
print(f"{Colors.GREEN}✅ {text}{Colors.ENDC}")
|
|
53
|
+
|
|
54
|
+
def print_warning(text: str):
|
|
55
|
+
print(f"{Colors.YELLOW}⚠️ {text}{Colors.ENDC}")
|
|
56
|
+
|
|
57
|
+
def print_error(text: str):
|
|
58
|
+
print(f"{Colors.RED}❌ {text}{Colors.ENDC}")
|
|
59
|
+
|
|
60
|
+
# Complete verification suite
|
|
61
|
+
VERIFICATION_SUITE = [
|
|
62
|
+
# P0: Security (CRITICAL)
|
|
63
|
+
{
|
|
64
|
+
"category": "Security",
|
|
65
|
+
"checks": [
|
|
66
|
+
("Security Scan", ".agents/skills/vulnerability-scanner/scripts/security_scan.py", True),
|
|
67
|
+
("Dependency Analysis", ".agents/skills/vulnerability-scanner/scripts/dependency_analyzer.py", False),
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
# P1: Code Quality (CRITICAL)
|
|
72
|
+
{
|
|
73
|
+
"category": "Code Quality",
|
|
74
|
+
"checks": [
|
|
75
|
+
("Lint Check", ".agents/skills/lint-and-validate/scripts/lint_runner.py", True),
|
|
76
|
+
("Type Coverage", ".agents/skills/lint-and-validate/scripts/type_coverage.py", False),
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
# P2: Data Layer
|
|
81
|
+
{
|
|
82
|
+
"category": "Data Layer",
|
|
83
|
+
"checks": [
|
|
84
|
+
("Schema Validation", ".agents/skills/database-design/scripts/schema_validator.py", False),
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
# P3: Testing
|
|
89
|
+
{
|
|
90
|
+
"category": "Testing",
|
|
91
|
+
"checks": [
|
|
92
|
+
("Test Suite", ".agents/skills/testing-patterns/scripts/test_runner.py", False),
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
# P4: UX & Accessibility
|
|
97
|
+
{
|
|
98
|
+
"category": "UX & Accessibility",
|
|
99
|
+
"checks": [
|
|
100
|
+
("UX Audit", ".agents/skills/frontend-design/scripts/ux_audit.py", False),
|
|
101
|
+
("Accessibility Check", ".agents/skills/frontend-design/scripts/accessibility_checker.py", False),
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
# P5: SEO & Content
|
|
106
|
+
{
|
|
107
|
+
"category": "SEO & Content",
|
|
108
|
+
"checks": [
|
|
109
|
+
("SEO Check", ".agents/skills/seo-fundamentals/scripts/seo_checker.py", False),
|
|
110
|
+
("GEO Check", ".agents/skills/geo-fundamentals/scripts/geo_checker.py", False),
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
# P6: Performance (requires URL)
|
|
115
|
+
{
|
|
116
|
+
"category": "Performance",
|
|
117
|
+
"requires_url": True,
|
|
118
|
+
"checks": [
|
|
119
|
+
("Lighthouse Audit", ".agents/skills/performance-profiling/scripts/lighthouse_audit.py", True),
|
|
120
|
+
("Bundle Analysis", ".agents/skills/performance-profiling/scripts/bundle_analyzer.py", False),
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
# P7: E2E Testing (requires URL)
|
|
125
|
+
{
|
|
126
|
+
"category": "E2E Testing",
|
|
127
|
+
"requires_url": True,
|
|
128
|
+
"checks": [
|
|
129
|
+
("Playwright E2E", ".agents/skills/webapp-testing/scripts/playwright_runner.py", False),
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
# P8: Mobile (if applicable)
|
|
134
|
+
{
|
|
135
|
+
"category": "Mobile",
|
|
136
|
+
"checks": [
|
|
137
|
+
("Mobile Audit", ".agents/skills/mobile-design/scripts/mobile_audit.py", False),
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
# P9: Internationalization
|
|
142
|
+
{
|
|
143
|
+
"category": "Internationalization",
|
|
144
|
+
"checks": [
|
|
145
|
+
("i18n Check", ".agents/skills/i18n-localization/scripts/i18n_checker.py", False),
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
]
|
|
149
|
+
|
|
150
|
+
def run_script(name: str, script_path: Path, project_path: str, url: Optional[str] = None) -> dict:
|
|
151
|
+
"""Run validation script"""
|
|
152
|
+
if not script_path.exists():
|
|
153
|
+
print_warning(f"{name}: Script not found, skipping")
|
|
154
|
+
return {"name": name, "passed": True, "skipped": True, "duration": 0}
|
|
155
|
+
|
|
156
|
+
print_step(f"Running: {name}")
|
|
157
|
+
start_time = datetime.now()
|
|
158
|
+
|
|
159
|
+
# Build command
|
|
160
|
+
cmd = ["python", str(script_path), project_path]
|
|
161
|
+
if url and ("lighthouse" in script_path.name.lower() or "playwright" in script_path.name.lower()):
|
|
162
|
+
cmd.append(url)
|
|
163
|
+
|
|
164
|
+
# Run
|
|
165
|
+
try:
|
|
166
|
+
result = subprocess.run(
|
|
167
|
+
cmd,
|
|
168
|
+
capture_output=True,
|
|
169
|
+
text=True,
|
|
170
|
+
timeout=600 # 10 minute timeout for slow checks
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
duration = (datetime.now() - start_time).total_seconds()
|
|
174
|
+
passed = result.returncode == 0
|
|
175
|
+
|
|
176
|
+
if passed:
|
|
177
|
+
print_success(f"{name}: PASSED ({duration:.1f}s)")
|
|
178
|
+
else:
|
|
179
|
+
print_error(f"{name}: FAILED ({duration:.1f}s)")
|
|
180
|
+
if result.stderr:
|
|
181
|
+
print(f" {result.stderr[:300]}")
|
|
182
|
+
|
|
183
|
+
return {
|
|
184
|
+
"name": name,
|
|
185
|
+
"passed": passed,
|
|
186
|
+
"output": result.stdout,
|
|
187
|
+
"error": result.stderr,
|
|
188
|
+
"skipped": False,
|
|
189
|
+
"duration": duration
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
except subprocess.TimeoutExpired:
|
|
193
|
+
duration = (datetime.now() - start_time).total_seconds()
|
|
194
|
+
print_error(f"{name}: TIMEOUT (>{duration:.0f}s)")
|
|
195
|
+
return {"name": name, "passed": False, "skipped": False, "duration": duration, "error": "Timeout"}
|
|
196
|
+
|
|
197
|
+
except Exception as e:
|
|
198
|
+
duration = (datetime.now() - start_time).total_seconds()
|
|
199
|
+
print_error(f"{name}: ERROR - {str(e)}")
|
|
200
|
+
return {"name": name, "passed": False, "skipped": False, "duration": duration, "error": str(e)}
|
|
201
|
+
|
|
202
|
+
def print_final_report(results: List[dict], start_time: datetime):
|
|
203
|
+
"""Print comprehensive final report"""
|
|
204
|
+
total_duration = (datetime.now() - start_time).total_seconds()
|
|
205
|
+
|
|
206
|
+
print_header("📊 FULL VERIFICATION REPORT")
|
|
207
|
+
|
|
208
|
+
# Statistics
|
|
209
|
+
total = len(results)
|
|
210
|
+
passed = sum(1 for r in results if r["passed"] and not r.get("skipped"))
|
|
211
|
+
failed = sum(1 for r in results if not r["passed"] and not r.get("skipped"))
|
|
212
|
+
skipped = sum(1 for r in results if r.get("skipped"))
|
|
213
|
+
|
|
214
|
+
print(f"Total Duration: {total_duration:.1f}s")
|
|
215
|
+
print(f"Total Checks: {total}")
|
|
216
|
+
print(f"{Colors.GREEN}✅ Passed: {passed}{Colors.ENDC}")
|
|
217
|
+
print(f"{Colors.RED}❌ Failed: {failed}{Colors.ENDC}")
|
|
218
|
+
print(f"{Colors.YELLOW}⏭️ Skipped: {skipped}{Colors.ENDC}")
|
|
219
|
+
print()
|
|
220
|
+
|
|
221
|
+
# Category breakdown
|
|
222
|
+
print(f"{Colors.BOLD}Results by Category:{Colors.ENDC}")
|
|
223
|
+
current_category = None
|
|
224
|
+
for r in results:
|
|
225
|
+
# Print category header if changed
|
|
226
|
+
if r.get("category") and r["category"] != current_category:
|
|
227
|
+
current_category = r["category"]
|
|
228
|
+
print(f"\n{Colors.BOLD}{Colors.CYAN}{current_category}:{Colors.ENDC}")
|
|
229
|
+
|
|
230
|
+
# Print result
|
|
231
|
+
if r.get("skipped"):
|
|
232
|
+
status = f"{Colors.YELLOW}⏭️ {Colors.ENDC}"
|
|
233
|
+
elif r["passed"]:
|
|
234
|
+
status = f"{Colors.GREEN}✅{Colors.ENDC}"
|
|
235
|
+
else:
|
|
236
|
+
status = f"{Colors.RED}❌{Colors.ENDC}"
|
|
237
|
+
|
|
238
|
+
duration_str = f"({r.get('duration', 0):.1f}s)" if not r.get("skipped") else ""
|
|
239
|
+
print(f" {status} {r['name']} {duration_str}")
|
|
240
|
+
|
|
241
|
+
print()
|
|
242
|
+
|
|
243
|
+
# Failed checks detail
|
|
244
|
+
if failed > 0:
|
|
245
|
+
print(f"{Colors.BOLD}{Colors.RED}❌ FAILED CHECKS:{Colors.ENDC}")
|
|
246
|
+
for r in results:
|
|
247
|
+
if not r["passed"] and not r.get("skipped"):
|
|
248
|
+
print(f"\n{Colors.RED}✗ {r['name']}{Colors.ENDC}")
|
|
249
|
+
if r.get("error"):
|
|
250
|
+
error_preview = r["error"][:200]
|
|
251
|
+
print(f" Error: {error_preview}")
|
|
252
|
+
print()
|
|
253
|
+
|
|
254
|
+
# Final verdict
|
|
255
|
+
if failed > 0:
|
|
256
|
+
print_error(f"VERIFICATION FAILED - {failed} check(s) need attention")
|
|
257
|
+
print(f"\n{Colors.YELLOW}💡 Tip: Fix critical (security, lint) issues first{Colors.ENDC}")
|
|
258
|
+
return False
|
|
259
|
+
else:
|
|
260
|
+
print_success("✨ ALL CHECKS PASSED - Ready for deployment! ✨")
|
|
261
|
+
return True
|
|
262
|
+
|
|
263
|
+
def main():
|
|
264
|
+
parser = argparse.ArgumentParser(
|
|
265
|
+
description="Run complete Antigravity Kit verification suite",
|
|
266
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
267
|
+
epilog="""
|
|
268
|
+
Examples:
|
|
269
|
+
python scripts/verify_all.py . --url http://localhost:3000
|
|
270
|
+
python scripts/verify_all.py . --url https://staging.example.com --no-e2e
|
|
271
|
+
"""
|
|
272
|
+
)
|
|
273
|
+
parser.add_argument("project", help="Project path to validate")
|
|
274
|
+
parser.add_argument("--url", required=True, help="URL for performance & E2E checks")
|
|
275
|
+
parser.add_argument("--no-e2e", action="store_true", help="Skip E2E tests")
|
|
276
|
+
parser.add_argument("--stop-on-fail", action="store_true", help="Stop on first failure")
|
|
277
|
+
|
|
278
|
+
args = parser.parse_args()
|
|
279
|
+
|
|
280
|
+
project_path = Path(args.project).resolve()
|
|
281
|
+
|
|
282
|
+
if not project_path.exists():
|
|
283
|
+
print_error(f"Project path does not exist: {project_path}")
|
|
284
|
+
sys.exit(1)
|
|
285
|
+
|
|
286
|
+
print_header("🚀 ANTIGRAVITY KIT - FULL VERIFICATION SUITE")
|
|
287
|
+
print(f"Project: {project_path}")
|
|
288
|
+
print(f"URL: {args.url}")
|
|
289
|
+
print(f"Started: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
|
|
290
|
+
|
|
291
|
+
start_time = datetime.now()
|
|
292
|
+
results = []
|
|
293
|
+
|
|
294
|
+
# Run all verification categories
|
|
295
|
+
for suite in VERIFICATION_SUITE:
|
|
296
|
+
category = suite["category"]
|
|
297
|
+
requires_url = suite.get("requires_url", False)
|
|
298
|
+
|
|
299
|
+
# Skip if requires URL and not provided
|
|
300
|
+
if requires_url and not args.url:
|
|
301
|
+
continue
|
|
302
|
+
|
|
303
|
+
# Skip E2E if flag set
|
|
304
|
+
if args.no_e2e and category == "E2E Testing":
|
|
305
|
+
continue
|
|
306
|
+
|
|
307
|
+
print_header(f"📋 {category.upper()}")
|
|
308
|
+
|
|
309
|
+
for name, script_path, required in suite["checks"]:
|
|
310
|
+
script = project_path / script_path
|
|
311
|
+
result = run_script(name, script, str(project_path), args.url)
|
|
312
|
+
result["category"] = category
|
|
313
|
+
results.append(result)
|
|
314
|
+
|
|
315
|
+
# Stop on critical failure if flag set
|
|
316
|
+
if args.stop_on_fail and required and not result["passed"] and not result.get("skipped"):
|
|
317
|
+
print_error(f"CRITICAL: {name} failed. Stopping verification.")
|
|
318
|
+
print_final_report(results, start_time)
|
|
319
|
+
sys.exit(1)
|
|
320
|
+
|
|
321
|
+
# Print final report
|
|
322
|
+
all_passed = print_final_report(results, start_time)
|
|
323
|
+
|
|
324
|
+
sys.exit(0 if all_passed else 1)
|
|
325
|
+
|
|
326
|
+
if __name__ == "__main__":
|
|
327
|
+
main()
|