antigravity-ide 4.2.1 → 4.3.3
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/.agent/.shared/{design-philosophy → core/design-philosophy}/README.md +12 -1
- package/.agent/.shared/{ai-master → technical/ai-master}/README.md +12 -1
- package/.agent/.shared/{api-standards → technical/api-standards}/README.md +12 -1
- package/.agent/.shared/{database-master → technical/database-master}/README.md +12 -2
- package/.agent/.shared/{seo-master → technical/seo-master}/README.md +12 -1
- package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/README.md +12 -1
- package/.agent/ARCHITECTURE.md +16 -10
- package/.agent/ARCHITECTURE.vi.md +8 -8
- package/{GEMINI.md → .agent/GEMINI.md} +4 -5
- package/.agent/RESOURCES.md +6 -1
- package/.agent/agents/backend-specialist.md +154 -19
- package/.agent/agents/browser-subagent.md +45 -0
- package/.agent/agents/cloud-architect.md +108 -189
- package/.agent/agents/debugger.md +83 -182
- package/.agent/agents/documentation-writer.md +125 -72
- package/.agent/agents/frontend-specialist.md +40 -7
- package/.agent/agents/game-developer.md +111 -116
- package/.agent/agents/mobile-developer.md +108 -321
- package/.agent/agents/orchestrator.md +106 -366
- package/.agent/agents/performance-optimizer.md +105 -136
- package/.agent/agents/project-planner.md +132 -39
- package/.agent/agents/quality-inspector.md +136 -32
- package/.agent/agents/security-auditor.md +138 -15
- package/.agent/agents/seo-specialist.md +118 -72
- package/.agent/agents/test-engineer.md +142 -11
- package/.agent/brain/task.md +16 -0
- package/.agent/rules/GEMINI.md +63 -31
- package/.agent/rules/code-quality.md +34 -3
- package/.agent/rules/frontend.md +3 -3
- package/.agent/rules/strict-protocol.md +44 -3
- package/.agent/rules/system-update.md +56 -3
- package/.agent/skills/agent-backend-patterns/SKILL.md +16 -3
- package/.agent/skills/ai-engineer/SKILL.md +29 -16
- package/.agent/skills/api-documenter/SKILL.md +4 -4
- package/.agent/skills/app-builder/SKILL.md +1 -1
- package/.agent/skills/app-builder/tech-stack.md +2 -2
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +39 -79
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +53 -75
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +56 -119
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +61 -94
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +56 -82
- package/.agent/skills/brand-guidelines-anthropic/LICENSE.txt +202 -0
- package/.agent/skills/brand-guidelines-anthropic/SKILL.md +26 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/color-application.md +5 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/colors.md +14 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/font-management.md +6 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/shape-and-accent-colors.md +7 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/smart-font-application.md +6 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/text-styling.md +6 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/typography.md +7 -0
- package/.agent/skills/cloud-architect-master/SKILL.md +9 -4
- package/.agent/skills/cro-expert-kit/SKILL.md +9 -4
- package/.agent/skills/database-migration/SKILL.md +9 -3
- package/.agent/skills/deployment-engineer/SKILL.md +9 -3
- package/.agent/skills/frontend-design/ux-psychology.md +10 -585
- package/.agent/skills/full-stack-scaffold/SKILL.md +4 -4
- package/.agent/skills/game-development/2d-games/SKILL.md +4 -2
- package/.agent/skills/game-development/3d-games/SKILL.md +4 -2
- package/.agent/skills/game-development/SKILL.md +18 -149
- package/.agent/skills/game-development/game-art/SKILL.md +4 -2
- package/.agent/skills/game-development/game-audio/SKILL.md +4 -2
- package/.agent/skills/game-development/game-design/SKILL.md +4 -2
- package/.agent/skills/game-development/mobile-games/SKILL.md +4 -2
- package/.agent/skills/game-development/multiplayer/SKILL.md +4 -2
- package/.agent/skills/game-development/pc-games/SKILL.md +4 -2
- package/.agent/skills/game-development/vr-ar/SKILL.md +4 -2
- package/.agent/skills/game-development/web-games/SKILL.md +4 -2
- package/.agent/skills/geo-fundamentals/SKILL.md +9 -136
- package/.agent/skills/git-collaboration-master/SKILL.md +9 -4
- package/.agent/skills/i18n-localization/SKILL.md +10 -118
- package/.agent/skills/incident-responder/SKILL.md +9 -6
- package/.agent/skills/internal-comms-anthropic/LICENSE.txt +202 -0
- package/.agent/skills/internal-comms-anthropic/SKILL.md +33 -0
- package/.agent/skills/internal-comms-anthropic/examples/3p-updates.md +47 -0
- package/.agent/skills/internal-comms-anthropic/examples/company-newsletter.md +65 -0
- package/.agent/skills/internal-comms-anthropic/examples/faq-answers.md +30 -0
- package/.agent/skills/internal-comms-anthropic/examples/general-comms.md +16 -0
- package/.agent/skills/last30days/tests/__init__.py +1 -0
- package/.agent/skills/last30days/tests/test_cache.py +59 -0
- package/.agent/skills/last30days/tests/test_dates.py +114 -0
- package/.agent/skills/last30days/tests/test_dedupe.py +111 -0
- package/.agent/skills/last30days/tests/test_models.py +135 -0
- package/.agent/skills/last30days/tests/test_normalize.py +138 -0
- package/.agent/skills/last30days/tests/test_render.py +116 -0
- package/.agent/skills/last30days/tests/test_score.py +168 -0
- package/.agent/skills/legacy-modernizer/SKILL.md +9 -4
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +2 -14
- package/.agent/skills/loki-mode/.github/workflows/claude-code-review.yml +57 -0
- package/.agent/skills/loki-mode/.github/workflows/claude.yml +50 -0
- package/.agent/skills/loki-mode/.github/workflows/release.yml +128 -0
- package/.agent/skills/loki-mode/tests/run-all-tests.sh +78 -0
- package/.agent/skills/loki-mode/tests/test-agent-timeout.sh +348 -0
- package/.agent/skills/loki-mode/tests/test-bootstrap.sh +196 -0
- package/.agent/skills/loki-mode/tests/test-circuit-breaker.sh +389 -0
- package/.agent/skills/loki-mode/tests/test-state-recovery.sh +393 -0
- package/.agent/skills/loki-mode/tests/test-task-queue.sh +396 -0
- package/.agent/skills/loki-mode/tests/test-wrapper.sh +314 -0
- package/.agent/skills/mcp-builder/SKILL.md +21 -164
- package/.agent/skills/mobile-design/SKILL.md +21 -369
- package/.agent/skills/mobile-design/mobile-performance.md +1 -1
- package/.agent/skills/modern-web-architect/SKILL.md +12 -6
- package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +1 -1
- package/.agent/skills/penetration-tester-master/SKILL.md +9 -4
- package/.agent/skills/performance-engineer/SKILL.md +4 -5
- package/.agent/skills/production-code-audit/SKILL.md +6 -0
- package/.agent/skills/rust-pro/SKILL.md +0 -177
- package/.agent/skills/security-auditor/SKILL.md +35 -27
- package/.agent/skills/seo-expert-kit/SKILL.md +9 -4
- package/.agent/skills/shopify-development/scripts/tests/test_shopify_init.py +379 -0
- package/.agent/skills/tdd-master-workflow/SKILL.md +9 -3
- package/.agent/workflows/audit.md +30 -16
- package/.agent/workflows/brainstorm.md +33 -96
- package/.agent/workflows/create.md +37 -45
- package/.agent/workflows/debug.md +45 -84
- package/.agent/workflows/deploy.md +33 -158
- package/.agent/workflows/document.md +38 -15
- package/.agent/workflows/enhance.md +33 -48
- package/.agent/workflows/monitor.md +35 -14
- package/.agent/workflows/orchestrate.md +33 -218
- package/.agent/workflows/plan.md +39 -70
- package/.agent/workflows/security.md +35 -14
- package/.agent/workflows/seo.md +39 -16
- package/.agent/workflows/status.md +33 -72
- package/.agent/workflows/test.md +30 -127
- package/.agent/workflows/ui-ux-pro-max.md +24 -283
- package/LICENSE +22 -8
- package/README.md +105 -72
- package/README.vi.md +93 -110
- package/cli/create.js +275 -413
- package/cli/index.js +36 -24
- package/cli/lib/auto-update.js +14 -21
- package/cli/logic/product-skills.js +58 -0
- package/cli/logic/skill-definitions.js +0 -39
- package/cli/prompts.js +151 -145
- package/cli/skills/browser-subagent-core/SKILL.md +22 -0
- package/cli/tools/browser.js +75 -0
- package/cli/ui/dashboard.js +48 -0
- package/docs/AGENTS_GUIDE.vi.md +39 -45
- package/docs/CONTRIBUTING.vi.md +12 -3
- package/docs/{GEMINI_GUIDE.md → GEMINI_USAGE.md} +6 -6
- package/docs/GLOSSARY.vi.md +49 -30
- package/docs/HOW_ANTIGRAVITY_THINKS.vi.md +1 -1
- package/docs/OPERATIONAL_FLOW.vi.md +15 -0
- package/docs/{PUBLISHING.md → PUBLISHING_GUIDE.md} +31 -3
- package/docs/RULES_GUIDE.vi.md +67 -31
- package/docs/SHARED_LIBRARY_GUIDE.vi.md +18 -22
- package/docs/SKILLS_GUIDE.vi.md +119 -32
- package/docs/TROUBLESHOOTING.vi.md +10 -2
- package/docs/WORKFLOW_GUIDE.vi.md +57 -9
- package/package.json +32 -8
- package/setup.js +147 -114
- package/.agent/.shared/compliance/README.md +0 -19
- package/.agent/.shared/design-system/README.md +0 -18
- package/.agent/.shared/domain-blueprints/README.md +0 -18
- package/.agent/.shared/dx-toolkit/README.md +0 -19
- package/.agent/.shared/i18n-master/README.md +0 -18
- package/.agent/.shared/infra-blueprints/README.md +0 -18
- package/.agent/.shared/metrics/README.md +0 -17
- package/.agent/.shared/resilience-patterns/README.md +0 -19
- package/.agent/.shared/security-armor/README.md +0 -25
- package/.agent/.shared/testing-master/README.md +0 -20
- package/.agent/.shared/vitals-templates/README.md +0 -18
- package/.agent/agents/accessibility-expert.md +0 -22
- package/.agent/agents/api-architect.md +0 -22
- package/.agent/agents/backend-specialist.eco.md +0 -19
- package/.agent/agents/backend-specialist.instant.md +0 -19
- package/.agent/agents/codebase-expert.md +0 -23
- package/.agent/agents/compliance-expert.md +0 -22
- package/.agent/agents/data-scientist.md +0 -22
- package/.agent/agents/debugger.eco.md +0 -20
- package/.agent/agents/debugger.instant.md +0 -20
- package/.agent/agents/deep-thinker.ultra.md +0 -23
- package/.agent/agents/devex-optimizer.md +0 -22
- package/.agent/agents/devops-architect.md +0 -22
- package/.agent/agents/frontend-specialist.eco.md +0 -19
- package/.agent/agents/frontend-specialist.instant.md +0 -19
- package/.agent/agents/growth-engineer.md +0 -22
- package/.agent/agents/i18n-specialist.md +0 -21
- package/.agent/agents/legacy-modernizer.md +0 -22
- package/.agent/agents/microservices-specialist.md +0 -22
- package/.agent/agents/motion-designer.md +0 -22
- package/.agent/agents/orchestrator.creative.md +0 -28
- package/.agent/agents/orchestrator.eco.md +0 -29
- package/.agent/agents/orchestrator.instant.md +0 -29
- package/.agent/agents/orchestrator.ultra.md +0 -28
- package/.agent/agents/performance-benchmarker.md +0 -22
- package/.agent/agents/project-planner.eco.md +0 -19
- package/.agent/agents/project-planner.instant.md +0 -19
- package/.agent/agents/security-pentester.md +0 -22
- package/.agent/agents/serverless-expert.md +0 -22
- package/.agent/fastcode_index.json +0 -1038
- package/.agent/mcp_config.json +0 -24
- package/.agent/rules/GEMINI.eco.md +0 -37
- package/.agent/rules/GEMINI.instant.md +0 -37
- package/.agent/rules/api-spec.md +0 -28
- package/.agent/rules/database.md +0 -24
- package/.agent/rules/devops.md +0 -23
- package/.agent/rules/growth-strategy.md +0 -22
- package/.agent/rules/logging-monitoring.md +0 -22
- package/.agent/rules/quality-assurance.md +0 -22
- package/.agent/rules/system-reasoning.md +0 -20
- package/.agent/rules/ui-design.md +0 -23
- package/.agent/rules/ux-patterns.md +0 -23
- package/.agent/scripts/auto_preview.py +0 -148
- package/.agent/scripts/checklist.py +0 -252
- package/.agent/scripts/session_manager.py +0 -120
- package/.agent/scripts/simulation_install.js +0 -59
- package/.agent/scripts/sync_to_global.py +0 -78
- package/.agent/scripts/translate_workflows.py +0 -53
- package/.agent/scripts/verify_all.py +0 -327
- package/.agent/scripts/verify_shared_modules.js +0 -126
- package/.agent/skills/fastcode-search/SKILL.md +0 -46
- package/.agent/skills/fastcode-search/fastcode_config.example.json +0 -17
- package/.agent/skills/frontend-trends-2026/SKILL.md +0 -78
- package/.agent/skills/frontend-trends-2026/formulas/BentoGrid.tsx +0 -42
- package/.agent/skills/frontend-trends-2026/formulas/LiquidCard.tsx +0 -32
- package/.agent/skills/frontend-trends-2026/formulas/NeoButton.tsx +0 -27
- package/.agent/workflows/deep-security-audit.md +0 -9
- package/.agent/workflows/growth-max.md +0 -9
- package/.agent/workflows/performance-max.md +0 -9
- package/.editorconfig +0 -21
- package/.gitattributes +0 -7
- package/CHANGELOG.md +0 -32
- package/ERRORS.md +0 -67
- package/action.yml +0 -32
- package/antigravity-ide-logo.png +0 -0
- package/antigravity-ide-logo.svg +0 -24
- package/assets/skills-bundle.json +0 -1
- package/cli/manifest.js +0 -524
- package/cli/skills/fastcode.js +0 -181
- package/docs/AGENT_FLOW.md +0 -608
- package/docs/CONTRIBUTING.md +0 -46
- package/docs/COPYRIGHT.md +0 -57
- package/docs/DEPLOYMENT.md +0 -77
- package/docs/GLOSSARY.md +0 -109
- package/docs/MASTER_GUIDE.md +0 -103
- package/docs/OPERATIONAL_FLOW.md +0 -147
- package/docs/PLAN-upgrade-core-architecture.md +0 -71
- package/docs/SKILLS.md +0 -610
- package/docs/TROUBLESHOOTING.md +0 -43
- package/jest.config.js +0 -8
- package/scripts/bump.js +0 -93
- package/scripts/bundle-skills.js +0 -59
- package/scripts/internal/automation/auto-release.js +0 -177
- package/scripts/internal/fractalize-skills.js +0 -89
- package/scripts/internal/generate-skill-definitions.js +0 -134
- package/scripts/internal/internal/update-docs.js +0 -115
- package/scripts/internal/refactor-skill-content.js +0 -127
- package/scripts/internal/rename-skills.js +0 -96
- package/scripts/internal/sync-skills.js +0 -112
- package/scripts/internal/update-frontmatter-names.js +0 -99
- package/scripts/internal/verification/audit-dna.js +0 -56
- package/scripts/internal/verification/audit-skills.js +0 -65
- package/web/src/app/docs/guide/examples/brainstorm/page.mdx +0 -91
- package/web/src/app/docs/guide/examples/create/page.mdx +0 -84
- package/web/src/app/docs/guide/examples/debugging/page.mdx +0 -83
- package/web/src/app/docs/guide/examples/deployment/page.mdx +0 -93
- package/web/src/app/docs/guide/examples/new-feature/page.mdx +0 -102
- package/web/src/app/docs/guide/examples/orchestration/page.mdx +0 -99
- package/web/src/app/docs/guide/examples/plan/page.mdx +0 -76
- package/web/src/app/docs/guide/examples/preview/page.mdx +0 -77
- package/web/src/app/docs/guide/examples/status/page.mdx +0 -78
- package/web/src/app/docs/guide/examples/test/page.mdx +0 -80
- package/web/src/app/docs/guide/examples/ui-design/page.mdx +0 -90
- package/web/src/components/mdx/Callout.tsx +0 -60
- package/web/src/components/mdx/FeatureGrid.tsx +0 -38
- package/web/src/components/mdx/ProTips.tsx +0 -29
- package/web/src/components/mdx/StepList.tsx +0 -33
- package/web/src/components/mdx/Terminal.tsx +0 -58
- package/web/src/components/mdx/index.ts +0 -5
- package/web/src/mdx-components.tsx +0 -98
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/MANIFESTO.md +0 -0
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/tactile_audit.md +0 -0
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/visual_audit.md +0 -0
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/presets/linear_glow.json +0 -0
- /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/checklists/code_review.md +0 -0
- /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/presets/vscode_settings.json +0 -0
- /package/.agent/.shared/{metrics → core/metrics}/benchmarks.json +0 -0
- /package/.agent/.shared/{vitals-templates → core/vitals-templates}/audit_report.md +0 -0
- /package/.agent/.shared/{vitals-templates → core/vitals-templates}/plan_prd.md +0 -0
- /package/.agent/.shared/{ai-master → technical/ai-master}/best_patterns.md +0 -0
- /package/.agent/.shared/{ai-master → technical/ai-master}/checklists/prompt_audit.md +0 -0
- /package/.agent/.shared/{ai-master → technical/ai-master}/presets/model_configs.json +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/data +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/endpoints_naming.md +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/error_codes.csv +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/pagination_sorting.md +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/response_format.json +0 -0
- /package/.agent/.shared/{database-master → technical/database-master}/schemas/auth_rbac.sql +0 -0
- /package/.agent/.shared/{database-master → technical/database-master}/schemas/cms.sql +0 -0
- /package/.agent/.shared/{database-master → technical/database-master}/schemas/ecommerce.sql +0 -0
- /package/.agent/.shared/{design-system → technical/design-system}/brand_presets.json +0 -0
- /package/.agent/.shared/{design-system → technical/design-system}/micro_interactions.md +0 -0
- /package/.agent/.shared/{i18n-master → technical/i18n-master}/vi_tech_dictionary.csv +0 -0
- /package/.agent/.shared/{i18n-master → technical/i18n-master}/workflows.json +0 -0
- /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/checklists/chaos_engineering.md +0 -0
- /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/presets/circuit_breaker.json +0 -0
- /package/.agent/.shared/{security-armor → technical/security-armor}/checklists/vuln_scan.md +0 -0
- /package/.agent/.shared/{security-armor → technical/security-armor}/hardening.md +0 -0
- /package/.agent/.shared/{security-armor → technical/security-armor}/presets/helmet_config.json +0 -0
- /package/.agent/.shared/{seo-master → technical/seo-master}/checklists/technical_seo.md +0 -0
- /package/.agent/.shared/{seo-master → technical/seo-master}/presets/json_ld_schema.json +0 -0
- /package/.agent/.shared/{testing-master → technical/testing-master}/checklists/pre_release.md +0 -0
- /package/.agent/.shared/{testing-master → technical/testing-master}/scenarios.md +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/colors.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/icons.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/landing.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/products.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/react-performance.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/flutter.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/html-tailwind.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/jetpack-compose.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nextjs.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxt-ui.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxtjs.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react-native.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/shadcn.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/svelte.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/swiftui.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/vue.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/ux-guidelines.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/web-interface.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/core.cpython-313.pyc +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/core.py +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/design_system.py +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/search.py +0 -0
- /package/.agent/.shared/{compliance → verticals/compliance}/legal_templates.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/edtech.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fintech.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fnb_restaurant.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/freelance_marketplace.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/healthcare.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/hospitality_tourism.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/logistics.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/marketing_automation.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/personal_branding.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/real_estate.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/retail_ecommerce.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/standard-pro-agents.md +0 -0
- /package/.agent/.shared/{infra-blueprints → verticals/infra-blueprints}/deployment_specs.md +0 -0
- /package/.agent/skills/ai-engineer/{resources → sub-skills}/ai_infra_stack.md +0 -0
- /package/.agent/skills/cloud-architect-master/{resources → sub-skills}/cost_optimization_checklist.md +0 -0
- /package/.agent/skills/cro-expert-kit/{resources → sub-skills}/psychological_triggers.md +0 -0
- /package/.agent/skills/database-migration/{resources → sub-skills}/zero_downtime_strategy.md +0 -0
- /package/.agent/skills/deployment-engineer/{resources → sub-skills}/k8s_best_practices.md +0 -0
- /package/.agent/skills/git-collaboration-master/{resources → sub-skills}/pr_template.md +0 -0
- /package/.agent/skills/incident-responder/{resources → sub-skills}/incident_severity_levels.md +0 -0
- /package/.agent/skills/legacy-modernizer/{resources → sub-skills}/strangler_fig_pattern.md +0 -0
- /package/.agent/skills/penetration-tester-master/{resources → sub-skills}/owasp_top_10_2025.md +0 -0
- /package/.agent/skills/production-code-audit/{resources → sub-skills}/solid_principles_cheat_sheet.md +0 -0
- /package/.agent/skills/seo-expert-kit/{resources → sub-skills}/technical_seo_checklist.md +0 -0
- /package/.agent/skills/tdd-master-workflow/{resources → sub-skills}/unit_test_naming_convention.md +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/charts.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/prompts.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/styles.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/typography.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/ui-reasoning.csv +0 -0
|
@@ -1,252 +0,0 @@
|
|
|
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", ".agent/skills/vulnerability-scanner/scripts/security_scan.py", True),
|
|
60
|
-
("Lint Check", ".agent/skills/lint-and-validate/scripts/lint_runner.py", True),
|
|
61
|
-
("Schema Validation", ".agent/skills/database-design/scripts/schema_validator.py", False),
|
|
62
|
-
("Test Runner", ".agent/skills/testing-patterns/scripts/test_runner.py", False),
|
|
63
|
-
("UX Audit", ".agent/skills/frontend-design/scripts/ux_audit.py", False),
|
|
64
|
-
("SEO Check", ".agent/skills/seo-fundamentals/scripts/seo_checker.py", False),
|
|
65
|
-
]
|
|
66
|
-
|
|
67
|
-
PERFORMANCE_CHECKS = [
|
|
68
|
-
("Lighthouse Audit", ".agent/skills/performance-profiling/scripts/lighthouse_audit.py", True),
|
|
69
|
-
("Playwright E2E", ".agent/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 run_system_checks(project_path: Path) -> List[dict]:
|
|
129
|
-
"""Run internal system integrity checks"""
|
|
130
|
-
print_header("🛡️ SYSTEM INTEGRITY")
|
|
131
|
-
results = []
|
|
132
|
-
|
|
133
|
-
checks = [
|
|
134
|
-
(".gitattributes", "Cross-platform consistency"),
|
|
135
|
-
(".editorconfig", "Editor configuration"),
|
|
136
|
-
("package.json", "Project manifest"),
|
|
137
|
-
("README.md", "Documentation")
|
|
138
|
-
]
|
|
139
|
-
|
|
140
|
-
for filename, desc in checks:
|
|
141
|
-
file_path = project_path / filename
|
|
142
|
-
exists = file_path.exists() and file_path.is_file()
|
|
143
|
-
|
|
144
|
-
result = {
|
|
145
|
-
"name": f"System Check: {filename}",
|
|
146
|
-
"passed": exists,
|
|
147
|
-
"output": f"Found {filename}" if exists else f"Missing {filename}",
|
|
148
|
-
"skipped": False
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
if exists:
|
|
152
|
-
print_success(f"Found {filename} ({desc})")
|
|
153
|
-
else:
|
|
154
|
-
print_error(f"Missing {filename} ({desc})")
|
|
155
|
-
|
|
156
|
-
results.append(result)
|
|
157
|
-
|
|
158
|
-
return results
|
|
159
|
-
|
|
160
|
-
def print_summary(results: List[dict]):
|
|
161
|
-
"""Print final summary report"""
|
|
162
|
-
print_header("📊 CHECKLIST SUMMARY")
|
|
163
|
-
|
|
164
|
-
passed_count = sum(1 for r in results if r["passed"] and not r.get("skipped"))
|
|
165
|
-
failed_count = sum(1 for r in results if not r["passed"] and not r.get("skipped"))
|
|
166
|
-
skipped_count = sum(1 for r in results if r.get("skipped"))
|
|
167
|
-
|
|
168
|
-
print(f"Total Checks: {len(results)}")
|
|
169
|
-
print(f"{Colors.GREEN}✅ Passed: {passed_count}{Colors.ENDC}")
|
|
170
|
-
print(f"{Colors.RED}❌ Failed: {failed_count}{Colors.ENDC}")
|
|
171
|
-
print(f"{Colors.YELLOW}⏭️ Skipped: {skipped_count}{Colors.ENDC}")
|
|
172
|
-
print()
|
|
173
|
-
|
|
174
|
-
# Detailed results
|
|
175
|
-
for r in results:
|
|
176
|
-
if r.get("skipped"):
|
|
177
|
-
status = f"{Colors.YELLOW}⏭️ {Colors.ENDC}"
|
|
178
|
-
elif r["passed"]:
|
|
179
|
-
status = f"{Colors.GREEN}✅{Colors.ENDC}"
|
|
180
|
-
else:
|
|
181
|
-
status = f"{Colors.RED}❌{Colors.ENDC}"
|
|
182
|
-
|
|
183
|
-
print(f"{status} {r['name']}")
|
|
184
|
-
|
|
185
|
-
print()
|
|
186
|
-
|
|
187
|
-
if failed_count > 0:
|
|
188
|
-
print_error(f"{failed_count} check(s) FAILED - Please fix before proceeding")
|
|
189
|
-
return False
|
|
190
|
-
else:
|
|
191
|
-
print_success("All checks PASSED ✨")
|
|
192
|
-
return True
|
|
193
|
-
|
|
194
|
-
def main():
|
|
195
|
-
parser = argparse.ArgumentParser(
|
|
196
|
-
description="Run Antigravity Kit validation checklist",
|
|
197
|
-
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
198
|
-
epilog="""
|
|
199
|
-
Examples:
|
|
200
|
-
python scripts/checklist.py . # Core checks only
|
|
201
|
-
python scripts/checklist.py . --url http://localhost:3000 # Include performance
|
|
202
|
-
"""
|
|
203
|
-
)
|
|
204
|
-
parser.add_argument("project", help="Project path to validate")
|
|
205
|
-
parser.add_argument("--url", help="URL for performance checks (lighthouse, playwright)")
|
|
206
|
-
parser.add_argument("--skip-performance", action="store_true", help="Skip performance checks even if URL provided")
|
|
207
|
-
|
|
208
|
-
args = parser.parse_args()
|
|
209
|
-
|
|
210
|
-
project_path = Path(args.project).resolve()
|
|
211
|
-
|
|
212
|
-
if not project_path.exists():
|
|
213
|
-
print_error(f"Project path does not exist: {project_path}")
|
|
214
|
-
sys.exit(1)
|
|
215
|
-
|
|
216
|
-
print_header("🚀 ANTIGRAVITY KIT - MASTER CHECKLIST")
|
|
217
|
-
print(f"Project: {project_path}")
|
|
218
|
-
print(f"URL: {args.url if args.url else 'Not provided (performance checks skipped)'}")
|
|
219
|
-
|
|
220
|
-
results = []
|
|
221
|
-
|
|
222
|
-
# Run System Checks (P0)
|
|
223
|
-
results.extend(run_system_checks(project_path))
|
|
224
|
-
|
|
225
|
-
# Run core checks
|
|
226
|
-
print_header("📋 CORE CHECKS")
|
|
227
|
-
for name, script_path, required in CORE_CHECKS:
|
|
228
|
-
script = project_path / script_path
|
|
229
|
-
result = run_script(name, script, str(project_path))
|
|
230
|
-
results.append(result)
|
|
231
|
-
|
|
232
|
-
# If required check fails, stop
|
|
233
|
-
if required and not result["passed"] and not result.get("skipped"):
|
|
234
|
-
print_error(f"CRITICAL: {name} failed. Stopping checklist.")
|
|
235
|
-
print_summary(results)
|
|
236
|
-
sys.exit(1)
|
|
237
|
-
|
|
238
|
-
# Run performance checks if URL provided
|
|
239
|
-
if args.url and not args.skip_performance:
|
|
240
|
-
print_header("⚡ PERFORMANCE CHECKS")
|
|
241
|
-
for name, script_path, required in PERFORMANCE_CHECKS:
|
|
242
|
-
script = project_path / script_path
|
|
243
|
-
result = run_script(name, script, str(project_path), args.url)
|
|
244
|
-
results.append(result)
|
|
245
|
-
|
|
246
|
-
# Print summary
|
|
247
|
-
all_passed = print_summary(results)
|
|
248
|
-
|
|
249
|
-
sys.exit(0 if all_passed else 1)
|
|
250
|
-
|
|
251
|
-
if __name__ == "__main__":
|
|
252
|
-
main()
|
|
@@ -1,120 +0,0 @@
|
|
|
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", ".agent", ".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()
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
const fs = require('fs-extra');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
const SOURCE_AGENT = path.join(__dirname, '..');
|
|
5
|
-
const DEST_ROOT = path.join(__dirname, '../../test_install_simulation');
|
|
6
|
-
const DEST_AGENT = path.join(DEST_ROOT, '.agent');
|
|
7
|
-
|
|
8
|
-
async function simulateInstall() {
|
|
9
|
-
console.log('📦 Simulating "Full Install" Copy Logic...');
|
|
10
|
-
console.log(`Source: ${SOURCE_AGENT}`);
|
|
11
|
-
console.log(`Dest: ${DEST_AGENT}`);
|
|
12
|
-
|
|
13
|
-
// Cleanup prev run
|
|
14
|
-
fs.removeSync(DEST_ROOT);
|
|
15
|
-
fs.mkdirSync(DEST_AGENT, { recursive: true });
|
|
16
|
-
|
|
17
|
-
// 1. Replicate copyBaseStructure Loop from cli/create.js
|
|
18
|
-
const entries = fs.readdirSync(SOURCE_AGENT, { withFileTypes: true });
|
|
19
|
-
|
|
20
|
-
for (const entry of entries) {
|
|
21
|
-
if (entry.name === 'skills' || entry.name === 'GEMINI.md' || entry.name === 'START_HERE.md' || entry.name === 'node_modules' || entry.name === 'scripts') {
|
|
22
|
-
continue;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const srcPath = path.join(SOURCE_AGENT, entry.name);
|
|
26
|
-
const destPath = path.join(DEST_AGENT, entry.name);
|
|
27
|
-
|
|
28
|
-
console.log(`Copying ${entry.name}...`);
|
|
29
|
-
await fs.copy(srcPath, destPath);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// 2. Verify .shared exists in Destination
|
|
33
|
-
const sharedDest = path.join(DEST_AGENT, '.shared');
|
|
34
|
-
if (fs.existsSync(sharedDest)) {
|
|
35
|
-
console.log('✅ .shared folder copied successfully.');
|
|
36
|
-
|
|
37
|
-
// Check specific deep file
|
|
38
|
-
const deepFile = path.join(sharedDest, 'design-philosophy/presets/linear_glow.json');
|
|
39
|
-
if (fs.existsSync(deepFile)) {
|
|
40
|
-
console.log('✅ Deep checking: linear_glow.json exists.');
|
|
41
|
-
console.log('🎉 VERIFICATION PASSED: Full install will include shared modules.');
|
|
42
|
-
} else {
|
|
43
|
-
console.error('❌ Deep checking FAILED: Content missing inside .shared');
|
|
44
|
-
process.exit(1);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
} else {
|
|
48
|
-
console.error('❌ .shared folder FAILED to copy.');
|
|
49
|
-
process.exit(1);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Cleanup
|
|
53
|
-
fs.removeSync(DEST_ROOT);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
simulateInstall().catch(err => {
|
|
57
|
-
console.error(err);
|
|
58
|
-
process.exit(1);
|
|
59
|
-
});
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import shutil
|
|
3
|
-
import sys
|
|
4
|
-
from pathlib import Path
|
|
5
|
-
|
|
6
|
-
def sync_to_global():
|
|
7
|
-
# 1. Setup paths
|
|
8
|
-
workspace_agent_dir = Path("d:/Github/google-antigravity/.agent")
|
|
9
|
-
global_dir = Path(os.path.expanduser("~/.antigravity"))
|
|
10
|
-
|
|
11
|
-
if not workspace_agent_dir.exists():
|
|
12
|
-
print(f"Error: Workspace agent directory not found at {workspace_agent_dir}")
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
# Define what to sync: (Source relative to .agent, Destination relative to ~/.antigravity)
|
|
16
|
-
sync_map = {
|
|
17
|
-
"rules": "rules",
|
|
18
|
-
"workflows": "workflows",
|
|
19
|
-
"agents": "agents",
|
|
20
|
-
"skills/ai-engineer": "skills/ai-engineer",
|
|
21
|
-
"skills/security-auditor": "skills/security-auditor",
|
|
22
|
-
"skills/performance-engineer": "skills/performance-engineer",
|
|
23
|
-
"skills/modern-web-architect": "skills/modern-web-architect",
|
|
24
|
-
"skills/seo-expert-kit": "skills/seo-expert-kit",
|
|
25
|
-
"skills/tdd-master-workflow": "skills/tdd-master-workflow",
|
|
26
|
-
"skills/production-code-audit": "skills/production-code-audit",
|
|
27
|
-
"skills/cro-expert-kit": "skills/cro-expert-kit",
|
|
28
|
-
"skills/cloud-architect-master": "skills/cloud-architect-master",
|
|
29
|
-
"skills/database-migration": "skills/database-migration",
|
|
30
|
-
"skills/penetration-tester-master": "skills/penetration-tester-master",
|
|
31
|
-
"skills/git-collaboration-master": "skills/git-collaboration-master",
|
|
32
|
-
"skills/deployment-engineer": "skills/deployment-engineer",
|
|
33
|
-
"skills/api-documenter": "skills/api-documenter",
|
|
34
|
-
"skills/full-stack-scaffold": "skills/full-stack-scaffold",
|
|
35
|
-
"skills/incident-responder": "skills/incident-responder",
|
|
36
|
-
"skills/legacy-modernizer": "skills/legacy-modernizer",
|
|
37
|
-
".shared/database-master": ".shared/database-master",
|
|
38
|
-
".shared/metrics": ".shared/metrics",
|
|
39
|
-
".shared/api-standards": ".shared/api-standards",
|
|
40
|
-
".shared/i18n-master": ".shared/i18n-master",
|
|
41
|
-
".shared/ai-master": ".shared/ai-master",
|
|
42
|
-
".shared/domain-blueprints": ".shared/domain-blueprints",
|
|
43
|
-
".shared/security-armor": ".shared/security-armor",
|
|
44
|
-
".shared/testing-master": ".shared/testing-master",
|
|
45
|
-
".shared/infra-blueprints": ".shared/infra-blueprints",
|
|
46
|
-
".shared/vitals-templates": ".shared/vitals-templates",
|
|
47
|
-
".shared/design-system": ".shared/design-system",
|
|
48
|
-
".shared/compliance": ".shared/compliance",
|
|
49
|
-
"core": "core",
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
print(f"🚀 Starting Sync from Workspace to Global (~/.antigravity)...")
|
|
53
|
-
|
|
54
|
-
for src_rel, dest_rel in sync_map.items():
|
|
55
|
-
src_path = workspace_agent_dir / src_rel
|
|
56
|
-
dest_path = global_dir / dest_rel
|
|
57
|
-
|
|
58
|
-
if src_path.exists():
|
|
59
|
-
# Create parent dirs for destination
|
|
60
|
-
dest_path.parent.mkdir(parents=True, exist_ok=True)
|
|
61
|
-
|
|
62
|
-
if src_path.is_dir():
|
|
63
|
-
# Remove dest if exists to ensure clean sync
|
|
64
|
-
if dest_path.exists():
|
|
65
|
-
shutil.rmtree(dest_path)
|
|
66
|
-
shutil.copytree(src_path, dest_path)
|
|
67
|
-
print(f"✅ Synced Directory: {src_rel} -> Global")
|
|
68
|
-
else:
|
|
69
|
-
shutil.copy2(src_path, dest_path)
|
|
70
|
-
print(f"✅ Synced File: {src_rel} -> Global")
|
|
71
|
-
else:
|
|
72
|
-
print(f"⚠️ Warning: Source {src_rel} not found in workspace.")
|
|
73
|
-
|
|
74
|
-
print(f"\n✨ Global Synchronization Complete!")
|
|
75
|
-
print(f"Your global Antigravity IDE is now powered by this project's Master Skills and Rules.")
|
|
76
|
-
|
|
77
|
-
if __name__ == "__main__":
|
|
78
|
-
sync_to_global()
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import re
|
|
3
|
-
|
|
4
|
-
def update_description(file_path, new_desc):
|
|
5
|
-
if not os.path.exists(file_path):
|
|
6
|
-
return False
|
|
7
|
-
|
|
8
|
-
with open(file_path, 'r', encoding='utf-8') as f:
|
|
9
|
-
content = f.read()
|
|
10
|
-
|
|
11
|
-
# Update frontmatter description
|
|
12
|
-
pattern = r'^---\s*\ndescription:.*?\n---'
|
|
13
|
-
replacement = f'---\ndescription: {new_desc}\n---'
|
|
14
|
-
|
|
15
|
-
new_content = re.sub(pattern, replacement, content, count=1, flags=re.MULTILINE)
|
|
16
|
-
|
|
17
|
-
if new_content != content:
|
|
18
|
-
with open(file_path, 'w', encoding='utf-8') as f:
|
|
19
|
-
f.write(new_content)
|
|
20
|
-
return True
|
|
21
|
-
return False
|
|
22
|
-
|
|
23
|
-
# Rút gọn, súc tích, phân tách bằng dấu phẩy
|
|
24
|
-
translations = {
|
|
25
|
-
"brainstorm.md": "Lên ý tưởng, cấu trúc dự án, khám phá phương án",
|
|
26
|
-
"create.md": "Khởi tạo dự án mới, xây dựng nền móng, App Builder",
|
|
27
|
-
"debug.md": "Gỡ lỗi hệ thống, điều tra vấn đề, sửa lỗi",
|
|
28
|
-
"deploy.md": "Triển khai Production, kiểm tra an toàn, phát hành",
|
|
29
|
-
"enhance.md": "Cập nhật tính năng, phát triển lặp lại, nâng cấp app",
|
|
30
|
-
"orchestrate.md": "Điều phối Agent, giải quyết phức tạp, đa cấu trúc",
|
|
31
|
-
"plan.md": "Lập kế hoạch, phân rã tác vụ, project-planner",
|
|
32
|
-
"preview.md": "Quản lý server, xem trước dự án, khởi động/dừng",
|
|
33
|
-
"status.md": "Trạng thái dự án, tiến độ Agent, dashboard",
|
|
34
|
-
"test.md": "Chạy kiểm thử, tự động hóa, đảm bảo chất lượng",
|
|
35
|
-
"ui-ux-pro-max.md": "Thiết kế UI/UX, Premium, giao diện cao cấp"
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
paths = [
|
|
39
|
-
os.path.expanduser("~/.antigravity/workflows/"),
|
|
40
|
-
"d:/Github/google-antigravity/.agent/workflows/"
|
|
41
|
-
]
|
|
42
|
-
|
|
43
|
-
for base_path in paths:
|
|
44
|
-
print(f"Checking path: {base_path}")
|
|
45
|
-
for filename, desc in translations.items():
|
|
46
|
-
file_path = os.path.join(base_path, filename)
|
|
47
|
-
if update_description(file_path, desc):
|
|
48
|
-
print(f"✅ Updated {filename} in {base_path}")
|
|
49
|
-
else:
|
|
50
|
-
if os.path.exists(file_path):
|
|
51
|
-
print(f"ℹ️ No change needed for {filename} in {base_path}")
|
|
52
|
-
else:
|
|
53
|
-
print(f"❌ File not found: {filename} in {base_path}")
|