javi-forge 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore.template +105 -0
- package/.releaserc +44 -0
- package/README.md +45 -0
- package/ai-config/.skillignore +15 -0
- package/ai-config/AUTO_INVOKE.md +300 -0
- package/ai-config/agents/_TEMPLATE.md +93 -0
- package/ai-config/agents/business/api-designer.md +1657 -0
- package/ai-config/agents/business/business-analyst.md +1331 -0
- package/ai-config/agents/business/product-strategist.md +206 -0
- package/ai-config/agents/business/project-manager.md +178 -0
- package/ai-config/agents/business/requirements-analyst.md +1277 -0
- package/ai-config/agents/business/technical-writer.md +1679 -0
- package/ai-config/agents/creative/ux-designer.md +205 -0
- package/ai-config/agents/data-ai/ai-engineer.md +487 -0
- package/ai-config/agents/data-ai/analytics-engineer.md +953 -0
- package/ai-config/agents/data-ai/data-engineer.md +173 -0
- package/ai-config/agents/data-ai/data-scientist.md +672 -0
- package/ai-config/agents/data-ai/mlops-engineer.md +814 -0
- package/ai-config/agents/data-ai/prompt-engineer.md +772 -0
- package/ai-config/agents/development/angular-expert.md +620 -0
- package/ai-config/agents/development/backend-architect.md +795 -0
- package/ai-config/agents/development/database-specialist.md +212 -0
- package/ai-config/agents/development/frontend-specialist.md +686 -0
- package/ai-config/agents/development/fullstack-engineer.md +668 -0
- package/ai-config/agents/development/golang-pro.md +338 -0
- package/ai-config/agents/development/java-enterprise.md +400 -0
- package/ai-config/agents/development/javascript-pro.md +422 -0
- package/ai-config/agents/development/nextjs-pro.md +474 -0
- package/ai-config/agents/development/python-pro.md +570 -0
- package/ai-config/agents/development/react-pro.md +487 -0
- package/ai-config/agents/development/rust-pro.md +246 -0
- package/ai-config/agents/development/spring-boot-4-expert.md +326 -0
- package/ai-config/agents/development/typescript-pro.md +336 -0
- package/ai-config/agents/development/vue-specialist.md +605 -0
- package/ai-config/agents/infrastructure/cloud-architect.md +472 -0
- package/ai-config/agents/infrastructure/deployment-manager.md +358 -0
- package/ai-config/agents/infrastructure/devops-engineer.md +455 -0
- package/ai-config/agents/infrastructure/incident-responder.md +519 -0
- package/ai-config/agents/infrastructure/kubernetes-expert.md +705 -0
- package/ai-config/agents/infrastructure/monitoring-specialist.md +674 -0
- package/ai-config/agents/infrastructure/performance-engineer.md +658 -0
- package/ai-config/agents/orchestrator.md +241 -0
- package/ai-config/agents/quality/accessibility-auditor.md +1204 -0
- package/ai-config/agents/quality/code-reviewer-compact.md +123 -0
- package/ai-config/agents/quality/code-reviewer.md +363 -0
- package/ai-config/agents/quality/dependency-manager.md +743 -0
- package/ai-config/agents/quality/e2e-test-specialist.md +1005 -0
- package/ai-config/agents/quality/performance-tester.md +1086 -0
- package/ai-config/agents/quality/security-auditor.md +133 -0
- package/ai-config/agents/quality/test-engineer.md +453 -0
- package/ai-config/agents/specialists/api-designer.md +87 -0
- package/ai-config/agents/specialists/backend-architect.md +73 -0
- package/ai-config/agents/specialists/code-reviewer.md +77 -0
- package/ai-config/agents/specialists/db-optimizer.md +75 -0
- package/ai-config/agents/specialists/devops-engineer.md +83 -0
- package/ai-config/agents/specialists/documentation-writer.md +78 -0
- package/ai-config/agents/specialists/frontend-developer.md +75 -0
- package/ai-config/agents/specialists/performance-analyst.md +82 -0
- package/ai-config/agents/specialists/refactor-specialist.md +74 -0
- package/ai-config/agents/specialists/security-auditor.md +74 -0
- package/ai-config/agents/specialists/test-engineer.md +81 -0
- package/ai-config/agents/specialists/ux-consultant.md +76 -0
- package/ai-config/agents/specialized/agent-generator.md +1190 -0
- package/ai-config/agents/specialized/blockchain-developer.md +149 -0
- package/ai-config/agents/specialized/code-migrator.md +892 -0
- package/ai-config/agents/specialized/context-manager.md +978 -0
- package/ai-config/agents/specialized/documentation-writer.md +1078 -0
- package/ai-config/agents/specialized/ecommerce-expert.md +1756 -0
- package/ai-config/agents/specialized/embedded-engineer.md +1714 -0
- package/ai-config/agents/specialized/error-detective.md +1034 -0
- package/ai-config/agents/specialized/fintech-specialist.md +1659 -0
- package/ai-config/agents/specialized/freelance-project-planner-v2.md +1988 -0
- package/ai-config/agents/specialized/freelance-project-planner-v3.md +2136 -0
- package/ai-config/agents/specialized/freelance-project-planner-v4.md +4503 -0
- package/ai-config/agents/specialized/freelance-project-planner.md +722 -0
- package/ai-config/agents/specialized/game-developer.md +1963 -0
- package/ai-config/agents/specialized/healthcare-dev.md +1620 -0
- package/ai-config/agents/specialized/mobile-developer.md +188 -0
- package/ai-config/agents/specialized/parallel-plan-executor.md +506 -0
- package/ai-config/agents/specialized/plan-executor.md +485 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/00-INDEX.md +485 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/01-CORE.md +3493 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/02-SELF-CORRECTION.md +778 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/03-PROGRESSIVE-SETUP.md +918 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/04-DEPLOYMENT.md +1537 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/05-TESTING.md +2633 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/06-OPERATIONS.md +5610 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/INSTALL.md +335 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/QUICK-REFERENCE.txt +215 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/README.md +260 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/START-HERE.md +379 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/WORKFLOW-DIAGRAM.md +355 -0
- package/ai-config/agents/specialized/solo-dev-planner-modular/solo-dev-planner.md +279 -0
- package/ai-config/agents/specialized/template-writer.md +347 -0
- package/ai-config/agents/specialized/test-runner.md +99 -0
- package/ai-config/agents/specialized/vibekanban-smart-worker.md +244 -0
- package/ai-config/agents/specialized/wave-executor.md +138 -0
- package/ai-config/agents/specialized/workflow-optimizer.md +1114 -0
- package/ai-config/commands/git/changelog.md +32 -0
- package/ai-config/commands/git/ci-local.md +70 -0
- package/ai-config/commands/git/commit.md +35 -0
- package/ai-config/commands/git/fix-issue.md +23 -0
- package/ai-config/commands/git/pr-create.md +42 -0
- package/ai-config/commands/git/pr-review.md +50 -0
- package/ai-config/commands/git/worktree.md +39 -0
- package/ai-config/commands/refactoring/cleanup.md +24 -0
- package/ai-config/commands/refactoring/dead-code.md +40 -0
- package/ai-config/commands/refactoring/extract.md +31 -0
- package/ai-config/commands/testing/e2e.md +30 -0
- package/ai-config/commands/testing/tdd.md +36 -0
- package/ai-config/commands/testing/test-coverage.md +30 -0
- package/ai-config/commands/testing/test-fix.md +24 -0
- package/ai-config/commands/workflow/generate-agents-md.md +85 -0
- package/ai-config/commands/workflow/planning.md +47 -0
- package/ai-config/commands/workflows/compound.md +89 -0
- package/ai-config/commands/workflows/plan.md +77 -0
- package/ai-config/commands/workflows/review.md +78 -0
- package/ai-config/commands/workflows/work.md +75 -0
- package/ai-config/config.yaml +18 -0
- package/ai-config/hooks/_TEMPLATE.md +96 -0
- package/ai-config/hooks/block-dangerous-commands.md +75 -0
- package/ai-config/hooks/commit-guard.md +90 -0
- package/ai-config/hooks/context-loader.md +73 -0
- package/ai-config/hooks/improve-prompt.md +91 -0
- package/ai-config/hooks/learning-log.md +72 -0
- package/ai-config/hooks/model-router.md +86 -0
- package/ai-config/hooks/secret-scanner.md +64 -0
- package/ai-config/hooks/skill-validator.md +102 -0
- package/ai-config/hooks/task-artifact.md +114 -0
- package/ai-config/hooks/validate-workflow.md +100 -0
- package/ai-config/prompts/base.md +71 -0
- package/ai-config/prompts/modes/debug.md +34 -0
- package/ai-config/prompts/modes/deploy.md +40 -0
- package/ai-config/prompts/modes/research.md +32 -0
- package/ai-config/prompts/modes/review.md +33 -0
- package/ai-config/prompts/review-policy.md +79 -0
- package/ai-config/skills/_TEMPLATE.md +157 -0
- package/ai-config/skills/backend/api-gateway/SKILL.md +254 -0
- package/ai-config/skills/backend/bff-concepts/SKILL.md +239 -0
- package/ai-config/skills/backend/bff-spring/SKILL.md +364 -0
- package/ai-config/skills/backend/chi-router/SKILL.md +396 -0
- package/ai-config/skills/backend/error-handling/SKILL.md +255 -0
- package/ai-config/skills/backend/exceptions-spring/SKILL.md +323 -0
- package/ai-config/skills/backend/fastapi/SKILL.md +302 -0
- package/ai-config/skills/backend/gateway-spring/SKILL.md +390 -0
- package/ai-config/skills/backend/go-backend/SKILL.md +457 -0
- package/ai-config/skills/backend/gradle-multimodule/SKILL.md +274 -0
- package/ai-config/skills/backend/graphql-concepts/SKILL.md +352 -0
- package/ai-config/skills/backend/graphql-spring/SKILL.md +398 -0
- package/ai-config/skills/backend/grpc-concepts/SKILL.md +283 -0
- package/ai-config/skills/backend/grpc-spring/SKILL.md +445 -0
- package/ai-config/skills/backend/jwt-auth/SKILL.md +412 -0
- package/ai-config/skills/backend/notifications-concepts/SKILL.md +259 -0
- package/ai-config/skills/backend/recommendations-concepts/SKILL.md +261 -0
- package/ai-config/skills/backend/search-concepts/SKILL.md +263 -0
- package/ai-config/skills/backend/search-spring/SKILL.md +375 -0
- package/ai-config/skills/backend/spring-boot-4/SKILL.md +172 -0
- package/ai-config/skills/backend/websockets/SKILL.md +532 -0
- package/ai-config/skills/data-ai/ai-ml/SKILL.md +423 -0
- package/ai-config/skills/data-ai/analytics-concepts/SKILL.md +195 -0
- package/ai-config/skills/data-ai/analytics-spring/SKILL.md +340 -0
- package/ai-config/skills/data-ai/duckdb-analytics/SKILL.md +440 -0
- package/ai-config/skills/data-ai/langchain/SKILL.md +238 -0
- package/ai-config/skills/data-ai/mlflow/SKILL.md +302 -0
- package/ai-config/skills/data-ai/onnx-inference/SKILL.md +290 -0
- package/ai-config/skills/data-ai/powerbi/SKILL.md +352 -0
- package/ai-config/skills/data-ai/pytorch/SKILL.md +274 -0
- package/ai-config/skills/data-ai/scikit-learn/SKILL.md +321 -0
- package/ai-config/skills/data-ai/vector-db/SKILL.md +301 -0
- package/ai-config/skills/database/graph-databases/SKILL.md +218 -0
- package/ai-config/skills/database/graph-spring/SKILL.md +361 -0
- package/ai-config/skills/database/pgx-postgres/SKILL.md +512 -0
- package/ai-config/skills/database/redis-cache/SKILL.md +343 -0
- package/ai-config/skills/database/sqlite-embedded/SKILL.md +388 -0
- package/ai-config/skills/database/timescaledb/SKILL.md +320 -0
- package/ai-config/skills/docs/api-documentation/SKILL.md +293 -0
- package/ai-config/skills/docs/docs-spring/SKILL.md +377 -0
- package/ai-config/skills/docs/mustache-templates/SKILL.md +190 -0
- package/ai-config/skills/docs/technical-docs/SKILL.md +447 -0
- package/ai-config/skills/frontend/astro-ssr/SKILL.md +441 -0
- package/ai-config/skills/frontend/frontend-design/SKILL.md +54 -0
- package/ai-config/skills/frontend/frontend-web/SKILL.md +368 -0
- package/ai-config/skills/frontend/mantine-ui/SKILL.md +396 -0
- package/ai-config/skills/frontend/tanstack-query/SKILL.md +439 -0
- package/ai-config/skills/frontend/zod-validation/SKILL.md +417 -0
- package/ai-config/skills/frontend/zustand-state/SKILL.md +350 -0
- package/ai-config/skills/infrastructure/chaos-engineering/SKILL.md +244 -0
- package/ai-config/skills/infrastructure/chaos-spring/SKILL.md +378 -0
- package/ai-config/skills/infrastructure/devops-infra/SKILL.md +435 -0
- package/ai-config/skills/infrastructure/docker-containers/SKILL.md +420 -0
- package/ai-config/skills/infrastructure/kubernetes/SKILL.md +456 -0
- package/ai-config/skills/infrastructure/opentelemetry/SKILL.md +546 -0
- package/ai-config/skills/infrastructure/traefik-proxy/SKILL.md +474 -0
- package/ai-config/skills/infrastructure/woodpecker-ci/SKILL.md +315 -0
- package/ai-config/skills/mobile/ionic-capacitor/SKILL.md +504 -0
- package/ai-config/skills/mobile/mobile-ionic/SKILL.md +448 -0
- package/ai-config/skills/prompt-improver/SKILL.md +125 -0
- package/ai-config/skills/quality/ghagga-review/SKILL.md +216 -0
- package/ai-config/skills/references/hooks-patterns/SKILL.md +238 -0
- package/ai-config/skills/references/mcp-servers/SKILL.md +275 -0
- package/ai-config/skills/references/plugins-reference/SKILL.md +110 -0
- package/ai-config/skills/references/skills-reference/SKILL.md +420 -0
- package/ai-config/skills/references/subagent-templates/SKILL.md +193 -0
- package/ai-config/skills/systems-iot/modbus-protocol/SKILL.md +410 -0
- package/ai-config/skills/systems-iot/mqtt-rumqttc/SKILL.md +408 -0
- package/ai-config/skills/systems-iot/rust-systems/SKILL.md +386 -0
- package/ai-config/skills/systems-iot/tokio-async/SKILL.md +324 -0
- package/ai-config/skills/testing/playwright-e2e/SKILL.md +289 -0
- package/ai-config/skills/testing/testcontainers/SKILL.md +299 -0
- package/ai-config/skills/testing/vitest-testing/SKILL.md +381 -0
- package/ai-config/skills/workflow/ci-local-guide/SKILL.md +118 -0
- package/ai-config/skills/workflow/claude-automation-recommender/SKILL.md +299 -0
- package/ai-config/skills/workflow/claude-md-improver/SKILL.md +158 -0
- package/ai-config/skills/workflow/finishing-a-development-branch/SKILL.md +117 -0
- package/ai-config/skills/workflow/git-github/SKILL.md +334 -0
- package/ai-config/skills/workflow/git-github/references/examples.md +160 -0
- package/ai-config/skills/workflow/git-workflow/SKILL.md +214 -0
- package/ai-config/skills/workflow/ide-plugins/SKILL.md +277 -0
- package/ai-config/skills/workflow/ide-plugins-intellij/SKILL.md +401 -0
- package/ai-config/skills/workflow/obsidian-brain-workflow/SKILL.md +199 -0
- package/ai-config/skills/workflow/using-git-worktrees/SKILL.md +100 -0
- package/ai-config/skills/workflow/verification-before-completion/SKILL.md +73 -0
- package/ai-config/skills/workflow/wave-workflow/SKILL.md +178 -0
- package/ci-local/README.md +170 -0
- package/ci-local/ci-local.sh +297 -0
- package/ci-local/hooks/commit-msg +74 -0
- package/ci-local/hooks/pre-commit +162 -0
- package/ci-local/hooks/pre-push +41 -0
- package/ci-local/install.sh +49 -0
- package/ci-local/semgrep.yml +214 -0
- package/dist/commands/analyze.d.ts +9 -0
- package/dist/commands/analyze.d.ts.map +1 -0
- package/dist/commands/analyze.js +55 -0
- package/dist/commands/analyze.js.map +1 -0
- package/dist/commands/analyze.test.d.ts +2 -0
- package/dist/commands/analyze.test.d.ts.map +1 -0
- package/dist/commands/analyze.test.js +145 -0
- package/dist/commands/analyze.test.js.map +1 -0
- package/dist/commands/doctor.d.ts +7 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +158 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/doctor.test.d.ts +2 -0
- package/dist/commands/doctor.test.d.ts.map +1 -0
- package/dist/commands/doctor.test.js +200 -0
- package/dist/commands/doctor.test.js.map +1 -0
- package/dist/commands/init.d.ts +9 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +283 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/init.test.d.ts +2 -0
- package/dist/commands/init.test.d.ts.map +1 -0
- package/dist/commands/init.test.js +271 -0
- package/dist/commands/init.test.js.map +1 -0
- package/dist/commands/sync.d.ts +8 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/sync.js +201 -0
- package/dist/commands/sync.js.map +1 -0
- package/dist/constants.d.ts +21 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +57 -0
- package/dist/constants.js.map +1 -0
- package/dist/e2e/aggressive.e2e.test.d.ts +2 -0
- package/dist/e2e/aggressive.e2e.test.d.ts.map +1 -0
- package/dist/e2e/aggressive.e2e.test.js +350 -0
- package/dist/e2e/aggressive.e2e.test.js.map +1 -0
- package/dist/e2e/commands.e2e.test.d.ts +2 -0
- package/dist/e2e/commands.e2e.test.d.ts.map +1 -0
- package/dist/e2e/commands.e2e.test.js +213 -0
- package/dist/e2e/commands.e2e.test.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +82 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/common.d.ts +17 -0
- package/dist/lib/common.d.ts.map +1 -0
- package/dist/lib/common.js +111 -0
- package/dist/lib/common.js.map +1 -0
- package/dist/lib/common.test.d.ts +2 -0
- package/dist/lib/common.test.d.ts.map +1 -0
- package/dist/lib/common.test.js +316 -0
- package/dist/lib/common.test.js.map +1 -0
- package/dist/lib/frontmatter.d.ts +18 -0
- package/dist/lib/frontmatter.d.ts.map +1 -0
- package/dist/lib/frontmatter.js +61 -0
- package/dist/lib/frontmatter.js.map +1 -0
- package/dist/lib/frontmatter.test.d.ts +2 -0
- package/dist/lib/frontmatter.test.d.ts.map +1 -0
- package/dist/lib/frontmatter.test.js +257 -0
- package/dist/lib/frontmatter.test.js.map +1 -0
- package/dist/lib/template.d.ts +24 -0
- package/dist/lib/template.d.ts.map +1 -0
- package/dist/lib/template.js +78 -0
- package/dist/lib/template.js.map +1 -0
- package/dist/lib/template.test.d.ts +2 -0
- package/dist/lib/template.test.d.ts.map +1 -0
- package/dist/lib/template.test.js +201 -0
- package/dist/lib/template.test.js.map +1 -0
- package/dist/types/index.d.ts +48 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/ui/AnalyzeUI.d.ts +7 -0
- package/dist/ui/AnalyzeUI.d.ts.map +1 -0
- package/dist/ui/AnalyzeUI.js +100 -0
- package/dist/ui/AnalyzeUI.js.map +1 -0
- package/dist/ui/App.d.ts +13 -0
- package/dist/ui/App.d.ts.map +1 -0
- package/dist/ui/App.js +100 -0
- package/dist/ui/App.js.map +1 -0
- package/dist/ui/CIContext.d.ts +9 -0
- package/dist/ui/CIContext.d.ts.map +1 -0
- package/dist/ui/CIContext.js +9 -0
- package/dist/ui/CIContext.js.map +1 -0
- package/dist/ui/CISelector.d.ts +8 -0
- package/dist/ui/CISelector.d.ts.map +1 -0
- package/dist/ui/CISelector.js +45 -0
- package/dist/ui/CISelector.js.map +1 -0
- package/dist/ui/Doctor.d.ts +3 -0
- package/dist/ui/Doctor.d.ts.map +1 -0
- package/dist/ui/Doctor.js +89 -0
- package/dist/ui/Doctor.js.map +1 -0
- package/dist/ui/Header.d.ts +8 -0
- package/dist/ui/Header.d.ts.map +1 -0
- package/dist/ui/Header.js +30 -0
- package/dist/ui/Header.js.map +1 -0
- package/dist/ui/MemorySelector.d.ts +8 -0
- package/dist/ui/MemorySelector.d.ts.map +1 -0
- package/dist/ui/MemorySelector.js +46 -0
- package/dist/ui/MemorySelector.js.map +1 -0
- package/dist/ui/NameInput.d.ts +8 -0
- package/dist/ui/NameInput.d.ts.map +1 -0
- package/dist/ui/NameInput.js +69 -0
- package/dist/ui/NameInput.js.map +1 -0
- package/dist/ui/OptionSelector.d.ts +12 -0
- package/dist/ui/OptionSelector.d.ts.map +1 -0
- package/dist/ui/OptionSelector.js +69 -0
- package/dist/ui/OptionSelector.js.map +1 -0
- package/dist/ui/Progress.d.ts +11 -0
- package/dist/ui/Progress.d.ts.map +1 -0
- package/dist/ui/Progress.js +58 -0
- package/dist/ui/Progress.js.map +1 -0
- package/dist/ui/StackSelector.d.ts +9 -0
- package/dist/ui/StackSelector.d.ts.map +1 -0
- package/dist/ui/StackSelector.js +65 -0
- package/dist/ui/StackSelector.js.map +1 -0
- package/dist/ui/Summary.d.ts +12 -0
- package/dist/ui/Summary.d.ts.map +1 -0
- package/dist/ui/Summary.js +114 -0
- package/dist/ui/Summary.js.map +1 -0
- package/dist/ui/SyncUI.d.ts +10 -0
- package/dist/ui/SyncUI.d.ts.map +1 -0
- package/dist/ui/SyncUI.js +64 -0
- package/dist/ui/SyncUI.js.map +1 -0
- package/dist/ui/Welcome.d.ts +7 -0
- package/dist/ui/Welcome.d.ts.map +1 -0
- package/dist/ui/Welcome.js +45 -0
- package/dist/ui/Welcome.js.map +1 -0
- package/dist/ui/theme.d.ts +10 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +9 -0
- package/dist/ui/theme.js.map +1 -0
- package/modules/engram/.gitignore-snippet.txt +6 -0
- package/modules/engram/.mcp-config-snippet.json +11 -0
- package/modules/engram/README.md +146 -0
- package/modules/engram/install-engram.sh +216 -0
- package/modules/ghagga/.env.example +43 -0
- package/modules/ghagga/README.md +153 -0
- package/modules/ghagga/docker-compose.yml +80 -0
- package/modules/ghagga/setup-ghagga.sh +139 -0
- package/modules/memory-simple/.project/NOTES.md +22 -0
- package/modules/memory-simple/README.md +23 -0
- package/modules/obsidian-brain/.obsidian/app.json +23 -0
- package/modules/obsidian-brain/.obsidian/appearance.json +5 -0
- package/modules/obsidian-brain/.obsidian/bookmarks.json +34 -0
- package/modules/obsidian-brain/.obsidian/community-plugins.json +1 -0
- package/modules/obsidian-brain/.obsidian/core-plugins-migration.json +21 -0
- package/modules/obsidian-brain/.obsidian/core-plugins.json +18 -0
- package/modules/obsidian-brain/.obsidian/daily-notes.json +5 -0
- package/modules/obsidian-brain/.obsidian/graph.json +37 -0
- package/modules/obsidian-brain/.obsidian/hotkeys.json +14 -0
- package/modules/obsidian-brain/.obsidian/plugins/dataview/data.json +25 -0
- package/modules/obsidian-brain/.obsidian/plugins/obsidian-kanban/data.json +29 -0
- package/modules/obsidian-brain/.obsidian/plugins/templater-obsidian/data.json +18 -0
- package/modules/obsidian-brain/.obsidian/snippets/project-memory.css +71 -0
- package/modules/obsidian-brain/.obsidian-gitignore-snippet.txt +8 -0
- package/modules/obsidian-brain/.project/Attachments/.gitkeep +0 -0
- package/modules/obsidian-brain/.project/Memory/BLOCKERS.md +78 -0
- package/modules/obsidian-brain/.project/Memory/CONTEXT.md +102 -0
- package/modules/obsidian-brain/.project/Memory/DASHBOARD.md +73 -0
- package/modules/obsidian-brain/.project/Memory/DECISIONS.md +87 -0
- package/modules/obsidian-brain/.project/Memory/KANBAN.md +15 -0
- package/modules/obsidian-brain/.project/Memory/README.md +61 -0
- package/modules/obsidian-brain/.project/Memory/WAVES.md +78 -0
- package/modules/obsidian-brain/.project/Sessions/TEMPLATE.md +99 -0
- package/modules/obsidian-brain/.project/Templates/ADR.md +33 -0
- package/modules/obsidian-brain/.project/Templates/Blocker.md +21 -0
- package/modules/obsidian-brain/.project/Templates/Session.md +88 -0
- package/modules/obsidian-brain/README.md +268 -0
- package/modules/obsidian-brain/new-wave.sh +182 -0
- package/package.json +51 -0
- package/schemas/agent.schema.json +34 -0
- package/schemas/ai-config.schema.json +28 -0
- package/schemas/skill.schema.json +44 -0
- package/src/commands/analyze.test.ts +145 -0
- package/src/commands/analyze.ts +69 -0
- package/src/commands/doctor.test.ts +208 -0
- package/src/commands/doctor.ts +163 -0
- package/src/commands/init.test.ts +298 -0
- package/src/commands/init.ts +285 -0
- package/src/constants.ts +69 -0
- package/src/e2e/aggressive.e2e.test.ts +557 -0
- package/src/e2e/commands.e2e.test.ts +298 -0
- package/src/index.tsx +106 -0
- package/src/lib/common.test.ts +318 -0
- package/src/lib/common.ts +127 -0
- package/src/lib/frontmatter.test.ts +291 -0
- package/src/lib/frontmatter.ts +77 -0
- package/src/lib/template.test.ts +226 -0
- package/src/lib/template.ts +99 -0
- package/src/types/index.ts +53 -0
- package/src/ui/AnalyzeUI.tsx +133 -0
- package/src/ui/App.tsx +175 -0
- package/src/ui/CIContext.tsx +25 -0
- package/src/ui/CISelector.tsx +72 -0
- package/src/ui/Doctor.tsx +122 -0
- package/src/ui/Header.tsx +48 -0
- package/src/ui/MemorySelector.tsx +73 -0
- package/src/ui/NameInput.tsx +82 -0
- package/src/ui/OptionSelector.tsx +100 -0
- package/src/ui/Progress.tsx +88 -0
- package/src/ui/StackSelector.tsx +101 -0
- package/src/ui/Summary.tsx +134 -0
- package/src/ui/Welcome.tsx +54 -0
- package/src/ui/theme.ts +10 -0
- package/stryker.config.json +19 -0
- package/tasks/_TEMPLATE/files-edited.md +3 -0
- package/tasks/_TEMPLATE/plan.md +3 -0
- package/tasks/_TEMPLATE/research.md +3 -0
- package/tasks/_TEMPLATE/verification.md +5 -0
- package/templates/common/dependabot/cargo.yml +11 -0
- package/templates/common/dependabot/github-actions.yml +16 -0
- package/templates/common/dependabot/gomod.yml +15 -0
- package/templates/common/dependabot/gradle.yml +15 -0
- package/templates/common/dependabot/header.yml +3 -0
- package/templates/common/dependabot/maven.yml +15 -0
- package/templates/common/dependabot/npm.yml +20 -0
- package/templates/common/dependabot/pip.yml +11 -0
- package/templates/dependabot.yml +162 -0
- package/templates/github/ci-go.yml +41 -0
- package/templates/github/ci-java.yml +45 -0
- package/templates/github/ci-monorepo.yml +150 -0
- package/templates/github/ci-node.yml +42 -0
- package/templates/github/ci-python.yml +42 -0
- package/templates/github/ci-rust.yml +42 -0
- package/templates/github/dependabot-automerge.yml +40 -0
- package/templates/gitlab/gitlab-ci-go.yml +88 -0
- package/templates/gitlab/gitlab-ci-java.yml +79 -0
- package/templates/gitlab/gitlab-ci-monorepo.yml +126 -0
- package/templates/gitlab/gitlab-ci-node.yml +63 -0
- package/templates/gitlab/gitlab-ci-python.yml +147 -0
- package/templates/gitlab/gitlab-ci-rust.yml +67 -0
- package/templates/global/claude-settings.json +98 -0
- package/templates/global/codex-config.toml +8 -0
- package/templates/global/copilot-instructions/base-rules.instructions.md +13 -0
- package/templates/global/copilot-instructions/sdd-orchestrator.instructions.md +37 -0
- package/templates/global/gemini-commands/cleanup.toml +20 -0
- package/templates/global/gemini-commands/commit.toml +15 -0
- package/templates/global/gemini-commands/dead-code.toml +22 -0
- package/templates/global/gemini-commands/plan.toml +30 -0
- package/templates/global/gemini-commands/review.toml +17 -0
- package/templates/global/gemini-commands/sdd-apply.toml +22 -0
- package/templates/global/gemini-commands/sdd-ff.toml +14 -0
- package/templates/global/gemini-commands/sdd-new.toml +21 -0
- package/templates/global/gemini-commands/sdd-verify.toml +21 -0
- package/templates/global/gemini-commands/tdd.toml +26 -0
- package/templates/global/gemini-settings.json +8 -0
- package/templates/global/opencode-config.json +44 -0
- package/templates/global/sdd-instructions.md +47 -0
- package/templates/global/sdd-orchestrator-claude.md +46 -0
- package/templates/global/sdd-orchestrator-copilot.md +34 -0
- package/templates/renovate.json +69 -0
- package/templates/woodpecker/monorepo/backend.yml +34 -0
- package/templates/woodpecker/monorepo/frontend.yml +34 -0
- package/templates/woodpecker/monorepo/summary.yml +25 -0
- package/templates/woodpecker/woodpecker-go.yml +51 -0
- package/templates/woodpecker/woodpecker-java.yml +67 -0
- package/templates/woodpecker/woodpecker-node.yml +47 -0
- package/templates/woodpecker/woodpecker-python.yml +108 -0
- package/templates/woodpecker/woodpecker-rust.yml +57 -0
- package/tsconfig.json +19 -0
- package/vitest.config.ts +16 -0
- package/workflows/reusable-build-go.yml +111 -0
- package/workflows/reusable-build-java.yml +120 -0
- package/workflows/reusable-build-node.yml +145 -0
- package/workflows/reusable-build-python.yml +159 -0
- package/workflows/reusable-build-rust.yml +135 -0
- package/workflows/reusable-docker.yml +120 -0
- package/workflows/reusable-ghagga-review.yml +165 -0
- package/workflows/reusable-release.yml +91 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# ===========================================
|
|
2
|
+
# Reusable Workflow: Python Build
|
|
3
|
+
# ===========================================
|
|
4
|
+
# Minimal CI for Python projects.
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# jobs:
|
|
8
|
+
# build:
|
|
9
|
+
# uses: JNZader/project-starter-framework/.github/workflows/reusable-build-python.yml@main
|
|
10
|
+
# with:
|
|
11
|
+
# python-version: '3.12'
|
|
12
|
+
# ===========================================
|
|
13
|
+
|
|
14
|
+
name: Python Build (Reusable)
|
|
15
|
+
|
|
16
|
+
on:
|
|
17
|
+
workflow_call:
|
|
18
|
+
inputs:
|
|
19
|
+
python-version:
|
|
20
|
+
description: 'Python version'
|
|
21
|
+
required: false
|
|
22
|
+
default: '3.12'
|
|
23
|
+
type: string
|
|
24
|
+
package-manager:
|
|
25
|
+
description: 'Package manager (pip, poetry, uv)'
|
|
26
|
+
required: false
|
|
27
|
+
default: 'pip'
|
|
28
|
+
type: string
|
|
29
|
+
run-tests:
|
|
30
|
+
description: 'Run tests'
|
|
31
|
+
required: false
|
|
32
|
+
default: true
|
|
33
|
+
type: boolean
|
|
34
|
+
run-lint:
|
|
35
|
+
description: 'Run linting (ruff)'
|
|
36
|
+
required: false
|
|
37
|
+
default: true
|
|
38
|
+
type: boolean
|
|
39
|
+
working-directory:
|
|
40
|
+
description: 'Working directory'
|
|
41
|
+
required: false
|
|
42
|
+
default: '.'
|
|
43
|
+
type: string
|
|
44
|
+
lint-fail-on-error:
|
|
45
|
+
description: 'Fail the build if linting fails'
|
|
46
|
+
required: false
|
|
47
|
+
default: true
|
|
48
|
+
type: boolean
|
|
49
|
+
|
|
50
|
+
jobs:
|
|
51
|
+
build:
|
|
52
|
+
name: Build
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
timeout-minutes: 10
|
|
55
|
+
permissions:
|
|
56
|
+
contents: read
|
|
57
|
+
|
|
58
|
+
defaults:
|
|
59
|
+
run:
|
|
60
|
+
working-directory: ${{ inputs.working-directory }}
|
|
61
|
+
|
|
62
|
+
steps:
|
|
63
|
+
- name: Checkout
|
|
64
|
+
uses: actions/checkout@v4
|
|
65
|
+
|
|
66
|
+
- name: Setup Python ${{ inputs.python-version }}
|
|
67
|
+
uses: actions/setup-python@v5
|
|
68
|
+
with:
|
|
69
|
+
python-version: ${{ inputs.python-version }}
|
|
70
|
+
cache: ${{ inputs.package-manager == 'poetry' && 'poetry' || inputs.package-manager == 'pip' && 'pip' || '' }}
|
|
71
|
+
cache-dependency-path: |
|
|
72
|
+
**/requirements*.txt
|
|
73
|
+
**/pyproject.toml
|
|
74
|
+
**/poetry.lock
|
|
75
|
+
|
|
76
|
+
- name: Install uv
|
|
77
|
+
if: inputs.package-manager == 'uv'
|
|
78
|
+
uses: astral-sh/setup-uv@v4
|
|
79
|
+
|
|
80
|
+
- name: Install Poetry
|
|
81
|
+
if: inputs.package-manager == 'poetry'
|
|
82
|
+
uses: snok/install-poetry@v1
|
|
83
|
+
|
|
84
|
+
- name: Install dependencies (pip)
|
|
85
|
+
if: inputs.package-manager == 'pip'
|
|
86
|
+
run: |
|
|
87
|
+
python -m pip install --upgrade pip
|
|
88
|
+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
89
|
+
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
|
|
90
|
+
|
|
91
|
+
- name: Install dependencies (poetry)
|
|
92
|
+
if: inputs.package-manager == 'poetry'
|
|
93
|
+
run: poetry install
|
|
94
|
+
|
|
95
|
+
- name: Install dependencies (uv)
|
|
96
|
+
if: inputs.package-manager == 'uv'
|
|
97
|
+
run: uv sync
|
|
98
|
+
|
|
99
|
+
- name: Install dev tools
|
|
100
|
+
if: inputs.package-manager == 'pip'
|
|
101
|
+
run: pip install --quiet ruff mypy pytest
|
|
102
|
+
|
|
103
|
+
- name: Install dev tools (poetry)
|
|
104
|
+
if: inputs.package-manager == 'poetry'
|
|
105
|
+
run: poetry run pip install --quiet ruff mypy pytest
|
|
106
|
+
|
|
107
|
+
- name: Install dev tools (uv)
|
|
108
|
+
if: inputs.package-manager == 'uv'
|
|
109
|
+
run: uv pip install --quiet ruff mypy pytest
|
|
110
|
+
|
|
111
|
+
- name: Lint (ruff)
|
|
112
|
+
if: inputs.run-lint
|
|
113
|
+
continue-on-error: ${{ !inputs.lint-fail-on-error }}
|
|
114
|
+
env:
|
|
115
|
+
PKG_MGR: ${{ inputs.package-manager }}
|
|
116
|
+
run: |
|
|
117
|
+
if [ "$PKG_MGR" = "uv" ]; then
|
|
118
|
+
uv run ruff check .
|
|
119
|
+
else
|
|
120
|
+
ruff check .
|
|
121
|
+
fi
|
|
122
|
+
|
|
123
|
+
- name: Type check
|
|
124
|
+
if: hashFiles('mypy.ini') != '' || hashFiles('setup.cfg') != '' || hashFiles('pyproject.toml') != ''
|
|
125
|
+
continue-on-error: true
|
|
126
|
+
env:
|
|
127
|
+
PKG_MGR: ${{ inputs.package-manager }}
|
|
128
|
+
run: |
|
|
129
|
+
if [ "$PKG_MGR" = "uv" ]; then
|
|
130
|
+
uv run mypy . --ignore-missing-imports
|
|
131
|
+
else
|
|
132
|
+
mypy . --ignore-missing-imports
|
|
133
|
+
fi
|
|
134
|
+
|
|
135
|
+
- name: Test
|
|
136
|
+
if: inputs.run-tests
|
|
137
|
+
env:
|
|
138
|
+
PKG_MGR: ${{ inputs.package-manager }}
|
|
139
|
+
run: |
|
|
140
|
+
if [ "$PKG_MGR" = "poetry" ]; then
|
|
141
|
+
poetry run pytest
|
|
142
|
+
elif [ "$PKG_MGR" = "uv" ]; then
|
|
143
|
+
uv run pytest
|
|
144
|
+
else
|
|
145
|
+
pytest
|
|
146
|
+
fi
|
|
147
|
+
|
|
148
|
+
- name: Upload test results
|
|
149
|
+
if: inputs.run-tests && always()
|
|
150
|
+
uses: actions/upload-artifact@v4
|
|
151
|
+
with:
|
|
152
|
+
name: test-results-python
|
|
153
|
+
path: |
|
|
154
|
+
htmlcov/
|
|
155
|
+
.coverage
|
|
156
|
+
junit.xml
|
|
157
|
+
test-results/
|
|
158
|
+
retention-days: 7
|
|
159
|
+
if-no-files-found: ignore
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# ===========================================
|
|
2
|
+
# Reusable Workflow: Rust Build
|
|
3
|
+
# ===========================================
|
|
4
|
+
# Minimal CI for Rust projects.
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# jobs:
|
|
8
|
+
# build:
|
|
9
|
+
# uses: JNZader/project-starter-framework/.github/workflows/reusable-build-rust.yml@main
|
|
10
|
+
# ===========================================
|
|
11
|
+
|
|
12
|
+
name: Rust Build (Reusable)
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
workflow_call:
|
|
16
|
+
inputs:
|
|
17
|
+
toolchain:
|
|
18
|
+
description: 'Rust toolchain (stable, beta, nightly)'
|
|
19
|
+
required: false
|
|
20
|
+
default: 'stable'
|
|
21
|
+
type: string
|
|
22
|
+
run-tests:
|
|
23
|
+
description: 'Run tests'
|
|
24
|
+
required: false
|
|
25
|
+
default: true
|
|
26
|
+
type: boolean
|
|
27
|
+
run-clippy:
|
|
28
|
+
description: 'Run clippy linter'
|
|
29
|
+
required: false
|
|
30
|
+
default: true
|
|
31
|
+
type: boolean
|
|
32
|
+
run-fmt:
|
|
33
|
+
description: 'Check formatting'
|
|
34
|
+
required: false
|
|
35
|
+
default: true
|
|
36
|
+
type: boolean
|
|
37
|
+
working-directory:
|
|
38
|
+
description: 'Working directory'
|
|
39
|
+
required: false
|
|
40
|
+
default: '.'
|
|
41
|
+
type: string
|
|
42
|
+
cargo-args:
|
|
43
|
+
description: 'Additional cargo arguments'
|
|
44
|
+
required: false
|
|
45
|
+
default: ''
|
|
46
|
+
type: string
|
|
47
|
+
lint-fail-on-error:
|
|
48
|
+
description: 'Fail the build if linting fails'
|
|
49
|
+
required: false
|
|
50
|
+
default: true
|
|
51
|
+
type: boolean
|
|
52
|
+
upload-binary:
|
|
53
|
+
description: 'Upload release binary as artifact'
|
|
54
|
+
required: false
|
|
55
|
+
type: boolean
|
|
56
|
+
default: false
|
|
57
|
+
|
|
58
|
+
jobs:
|
|
59
|
+
build:
|
|
60
|
+
name: Build
|
|
61
|
+
runs-on: ubuntu-latest
|
|
62
|
+
timeout-minutes: 15
|
|
63
|
+
permissions:
|
|
64
|
+
contents: read
|
|
65
|
+
|
|
66
|
+
defaults:
|
|
67
|
+
run:
|
|
68
|
+
working-directory: ${{ inputs.working-directory }}
|
|
69
|
+
|
|
70
|
+
steps:
|
|
71
|
+
- name: Checkout
|
|
72
|
+
uses: actions/checkout@v4
|
|
73
|
+
|
|
74
|
+
- name: Validate inputs
|
|
75
|
+
env:
|
|
76
|
+
ARGS: ${{ inputs.cargo-args }}
|
|
77
|
+
run: |
|
|
78
|
+
if echo "$ARGS" | grep -qE '[;|&$`(){}<>'"'"'"]'; then
|
|
79
|
+
echo "::error::Invalid characters in input arguments. Shell metacharacters are not allowed."
|
|
80
|
+
exit 1
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
- name: Setup Rust ${{ inputs.toolchain }}
|
|
84
|
+
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a # master 2024-12
|
|
85
|
+
with:
|
|
86
|
+
toolchain: ${{ inputs.toolchain }}
|
|
87
|
+
components: clippy, rustfmt
|
|
88
|
+
|
|
89
|
+
- name: Cache cargo
|
|
90
|
+
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
|
|
91
|
+
with:
|
|
92
|
+
workspaces: ${{ inputs.working-directory }}
|
|
93
|
+
|
|
94
|
+
- name: Check formatting
|
|
95
|
+
if: inputs.run-fmt
|
|
96
|
+
run: cargo fmt --all -- --check
|
|
97
|
+
|
|
98
|
+
- name: Build
|
|
99
|
+
env:
|
|
100
|
+
CARGO_ARGS: ${{ inputs.cargo-args }}
|
|
101
|
+
run: cargo build --release $CARGO_ARGS
|
|
102
|
+
|
|
103
|
+
- name: Clippy
|
|
104
|
+
if: inputs.run-clippy
|
|
105
|
+
continue-on-error: ${{ !inputs.lint-fail-on-error }}
|
|
106
|
+
run: cargo clippy --all-targets --all-features -- -D warnings
|
|
107
|
+
|
|
108
|
+
- name: Test
|
|
109
|
+
if: inputs.run-tests
|
|
110
|
+
env:
|
|
111
|
+
CARGO_ARGS: ${{ inputs.cargo-args }}
|
|
112
|
+
run: cargo test --all-features $CARGO_ARGS
|
|
113
|
+
|
|
114
|
+
- name: Build release binary
|
|
115
|
+
if: inputs.upload-binary
|
|
116
|
+
env:
|
|
117
|
+
CARGO_ARGS: ${{ inputs.cargo-args }}
|
|
118
|
+
run: cargo build --release $CARGO_ARGS
|
|
119
|
+
|
|
120
|
+
- name: Upload binary
|
|
121
|
+
if: inputs.upload-binary
|
|
122
|
+
uses: actions/upload-artifact@v4
|
|
123
|
+
with:
|
|
124
|
+
name: release-binary
|
|
125
|
+
path: |
|
|
126
|
+
${{ inputs.working-directory }}/target/release/*
|
|
127
|
+
!${{ inputs.working-directory }}/target/release/.fingerprint
|
|
128
|
+
!${{ inputs.working-directory }}/target/release/build
|
|
129
|
+
!${{ inputs.working-directory }}/target/release/deps
|
|
130
|
+
!${{ inputs.working-directory }}/target/release/examples
|
|
131
|
+
!${{ inputs.working-directory }}/target/release/incremental
|
|
132
|
+
!${{ inputs.working-directory }}/target/release/.cargo-lock
|
|
133
|
+
!${{ inputs.working-directory }}/target/release/*.d
|
|
134
|
+
retention-days: 7
|
|
135
|
+
if-no-files-found: ignore
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# ===========================================
|
|
2
|
+
# Reusable Workflow: Docker Build & Push
|
|
3
|
+
# ===========================================
|
|
4
|
+
# Build and push to GitHub Container Registry.
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# jobs:
|
|
8
|
+
# docker:
|
|
9
|
+
# uses: JNZader/project-starter-framework/.github/workflows/reusable-docker.yml@main
|
|
10
|
+
# with:
|
|
11
|
+
# dockerfile: './Dockerfile'
|
|
12
|
+
# ===========================================
|
|
13
|
+
|
|
14
|
+
name: Docker (Reusable)
|
|
15
|
+
|
|
16
|
+
on:
|
|
17
|
+
workflow_call:
|
|
18
|
+
inputs:
|
|
19
|
+
dockerfile:
|
|
20
|
+
description: 'Path to Dockerfile'
|
|
21
|
+
required: false
|
|
22
|
+
default: './Dockerfile'
|
|
23
|
+
type: string
|
|
24
|
+
context:
|
|
25
|
+
description: 'Docker build context'
|
|
26
|
+
required: false
|
|
27
|
+
default: '.'
|
|
28
|
+
type: string
|
|
29
|
+
image-name:
|
|
30
|
+
description: 'Image name (defaults to repo name)'
|
|
31
|
+
required: false
|
|
32
|
+
default: ''
|
|
33
|
+
type: string
|
|
34
|
+
platforms:
|
|
35
|
+
description: 'Target platforms'
|
|
36
|
+
required: false
|
|
37
|
+
default: 'linux/amd64'
|
|
38
|
+
type: string
|
|
39
|
+
push:
|
|
40
|
+
description: 'Push to registry'
|
|
41
|
+
required: false
|
|
42
|
+
default: true
|
|
43
|
+
type: boolean
|
|
44
|
+
build-args:
|
|
45
|
+
description: 'Docker build arguments'
|
|
46
|
+
required: false
|
|
47
|
+
default: ''
|
|
48
|
+
type: string
|
|
49
|
+
|
|
50
|
+
jobs:
|
|
51
|
+
docker:
|
|
52
|
+
name: Docker
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
timeout-minutes: 30
|
|
55
|
+
permissions:
|
|
56
|
+
contents: read
|
|
57
|
+
packages: write
|
|
58
|
+
|
|
59
|
+
steps:
|
|
60
|
+
- name: Checkout
|
|
61
|
+
uses: actions/checkout@v4
|
|
62
|
+
|
|
63
|
+
- name: Validate inputs
|
|
64
|
+
env:
|
|
65
|
+
BUILD_ARGS: ${{ inputs.build-args }}
|
|
66
|
+
run: |
|
|
67
|
+
if [ -n "$BUILD_ARGS" ] && echo "$BUILD_ARGS" | grep -qE '[;|&$`(){}<>]'; then
|
|
68
|
+
echo "::error::Invalid characters in build-args input."
|
|
69
|
+
exit 1
|
|
70
|
+
fi
|
|
71
|
+
|
|
72
|
+
- name: Set image name
|
|
73
|
+
id: image
|
|
74
|
+
env:
|
|
75
|
+
INPUT_IMAGE_NAME: ${{ inputs.image-name }}
|
|
76
|
+
run: |
|
|
77
|
+
if [ -n "$INPUT_IMAGE_NAME" ]; then
|
|
78
|
+
echo "name=$INPUT_IMAGE_NAME" >> "$GITHUB_OUTPUT"
|
|
79
|
+
else
|
|
80
|
+
echo "name=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
- name: Setup QEMU
|
|
84
|
+
if: contains(inputs.platforms, ',')
|
|
85
|
+
uses: docker/setup-qemu-action@v3
|
|
86
|
+
|
|
87
|
+
- name: Setup Docker Buildx
|
|
88
|
+
uses: docker/setup-buildx-action@v3
|
|
89
|
+
|
|
90
|
+
- name: Login to GHCR
|
|
91
|
+
if: inputs.push
|
|
92
|
+
uses: docker/login-action@v3
|
|
93
|
+
with:
|
|
94
|
+
registry: ghcr.io
|
|
95
|
+
username: ${{ github.actor }}
|
|
96
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
97
|
+
|
|
98
|
+
- name: Extract metadata
|
|
99
|
+
id: meta
|
|
100
|
+
uses: docker/metadata-action@v5
|
|
101
|
+
with:
|
|
102
|
+
images: ghcr.io/${{ steps.image.outputs.name }}
|
|
103
|
+
tags: |
|
|
104
|
+
type=semver,pattern={{version}}
|
|
105
|
+
type=semver,pattern={{major}}.{{minor}}
|
|
106
|
+
type=raw,value=latest,enable={{is_default_branch}}
|
|
107
|
+
type=sha,prefix=sha-
|
|
108
|
+
|
|
109
|
+
- name: Build and push
|
|
110
|
+
uses: docker/build-push-action@v6
|
|
111
|
+
with:
|
|
112
|
+
context: ${{ inputs.context }}
|
|
113
|
+
file: ${{ inputs.dockerfile }}
|
|
114
|
+
platforms: ${{ inputs.platforms }}
|
|
115
|
+
push: ${{ inputs.push }}
|
|
116
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
117
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
118
|
+
build-args: ${{ inputs.build-args }}
|
|
119
|
+
cache-from: type=gha
|
|
120
|
+
cache-to: type=gha,mode=max
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# ===========================================
|
|
2
|
+
# Reusable Workflow: GHAGGA AI Code Review
|
|
3
|
+
# ===========================================
|
|
4
|
+
# Triggers AI-powered code review on PRs using GHAGGA.
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# jobs:
|
|
8
|
+
# review:
|
|
9
|
+
# uses: JNZader/project-starter-framework/.github/workflows/reusable-ghagga-review.yml@main
|
|
10
|
+
# with:
|
|
11
|
+
# ghagga-url: ${{ vars.GHAGGA_URL }}
|
|
12
|
+
# secrets:
|
|
13
|
+
# ghagga-token: ${{ secrets.GHAGGA_TOKEN }}
|
|
14
|
+
# ===========================================
|
|
15
|
+
|
|
16
|
+
name: GHAGGA Review (Reusable)
|
|
17
|
+
|
|
18
|
+
on:
|
|
19
|
+
workflow_call:
|
|
20
|
+
inputs:
|
|
21
|
+
ghagga-url:
|
|
22
|
+
description: 'URL of GHAGGA instance (Supabase Edge Function)'
|
|
23
|
+
required: true
|
|
24
|
+
type: string
|
|
25
|
+
review-mode:
|
|
26
|
+
description: 'Review mode: simple, workflow, or consensus'
|
|
27
|
+
required: false
|
|
28
|
+
default: 'simple'
|
|
29
|
+
type: string
|
|
30
|
+
skip-draft:
|
|
31
|
+
description: 'Skip review on draft PRs'
|
|
32
|
+
required: false
|
|
33
|
+
default: true
|
|
34
|
+
type: boolean
|
|
35
|
+
file-patterns:
|
|
36
|
+
description: 'Glob patterns to include (comma-separated, e.g. "src/**,lib/**")'
|
|
37
|
+
required: false
|
|
38
|
+
default: '**'
|
|
39
|
+
type: string
|
|
40
|
+
exclude-patterns:
|
|
41
|
+
description: 'Glob patterns to exclude (comma-separated)'
|
|
42
|
+
required: false
|
|
43
|
+
default: '**/*.md,**/*.txt,**/package-lock.json,**/yarn.lock,**/pnpm-lock.yaml'
|
|
44
|
+
type: string
|
|
45
|
+
secrets:
|
|
46
|
+
ghagga-token:
|
|
47
|
+
description: 'Authentication token for GHAGGA API'
|
|
48
|
+
required: true
|
|
49
|
+
|
|
50
|
+
jobs:
|
|
51
|
+
review:
|
|
52
|
+
name: AI Code Review
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
timeout-minutes: 10
|
|
55
|
+
permissions:
|
|
56
|
+
contents: read
|
|
57
|
+
pull-requests: write
|
|
58
|
+
|
|
59
|
+
# Skip draft PRs if configured
|
|
60
|
+
if: ${{ !inputs.skip-draft || !github.event.pull_request.draft }}
|
|
61
|
+
|
|
62
|
+
steps:
|
|
63
|
+
- name: Checkout
|
|
64
|
+
uses: actions/checkout@v4
|
|
65
|
+
with:
|
|
66
|
+
fetch-depth: 0
|
|
67
|
+
|
|
68
|
+
- name: Get PR diff
|
|
69
|
+
id: diff
|
|
70
|
+
env:
|
|
71
|
+
GH_TOKEN: ${{ github.token }}
|
|
72
|
+
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
73
|
+
run: |
|
|
74
|
+
# Get changed files
|
|
75
|
+
CHANGED_FILES=$(gh pr diff "$PR_NUMBER" --name-only)
|
|
76
|
+
DELIMITER_FILES=$(openssl rand -hex 16)
|
|
77
|
+
echo "changed_files<<$DELIMITER_FILES" >> "$GITHUB_OUTPUT"
|
|
78
|
+
echo "$CHANGED_FILES" >> "$GITHUB_OUTPUT"
|
|
79
|
+
echo "$DELIMITER_FILES" >> "$GITHUB_OUTPUT"
|
|
80
|
+
|
|
81
|
+
# Get diff content
|
|
82
|
+
DIFF=$(gh pr diff "$PR_NUMBER")
|
|
83
|
+
# Truncate if too large (max 100KB)
|
|
84
|
+
if [ ${#DIFF} -gt 102400 ]; then
|
|
85
|
+
DIFF="${DIFF:0:102400}... [truncated]"
|
|
86
|
+
fi
|
|
87
|
+
DELIMITER_DIFF=$(openssl rand -hex 16)
|
|
88
|
+
echo "diff<<$DELIMITER_DIFF" >> "$GITHUB_OUTPUT"
|
|
89
|
+
echo "$DIFF" >> "$GITHUB_OUTPUT"
|
|
90
|
+
echo "$DELIMITER_DIFF" >> "$GITHUB_OUTPUT"
|
|
91
|
+
|
|
92
|
+
- name: Trigger GHAGGA review
|
|
93
|
+
id: review
|
|
94
|
+
env:
|
|
95
|
+
GHAGGA_URL: ${{ inputs.ghagga-url }}
|
|
96
|
+
GHAGGA_TOKEN: ${{ secrets.ghagga-token }}
|
|
97
|
+
PR_REPO: ${{ github.repository }}
|
|
98
|
+
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
99
|
+
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
100
|
+
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
|
|
101
|
+
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
|
|
102
|
+
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
103
|
+
REVIEW_MODE: ${{ inputs.review-mode }}
|
|
104
|
+
FILE_PATTERNS: ${{ inputs.file-patterns }}
|
|
105
|
+
EXCLUDE_PATTERNS: ${{ inputs.exclude-patterns }}
|
|
106
|
+
run: |
|
|
107
|
+
RESPONSE=""
|
|
108
|
+
for attempt in 1 2 3; do
|
|
109
|
+
RESPONSE=$(curl -fsSL \
|
|
110
|
+
-X POST "${GHAGGA_URL}/functions/v1/review" \
|
|
111
|
+
-H "Authorization: Bearer ${GHAGGA_TOKEN}" \
|
|
112
|
+
-H "Content-Type: application/json" \
|
|
113
|
+
-d "$(jq -n \
|
|
114
|
+
--arg repo "$PR_REPO" \
|
|
115
|
+
--argjson number "$PR_NUMBER" \
|
|
116
|
+
--arg head_sha "$PR_HEAD_SHA" \
|
|
117
|
+
--arg base "$PR_BASE_REF" \
|
|
118
|
+
--arg head "$PR_HEAD_REF" \
|
|
119
|
+
--arg title "$PR_TITLE" \
|
|
120
|
+
--arg mode "$REVIEW_MODE" \
|
|
121
|
+
--arg patterns "$FILE_PATTERNS" \
|
|
122
|
+
--arg exclude "$EXCLUDE_PATTERNS" \
|
|
123
|
+
'{repository: $repo, pull_request_number: $number, head_sha: $head_sha, base_branch: $base, head_branch: $head, title: $title, review_mode: $mode, file_patterns: $patterns, exclude_patterns: $exclude}')") && break
|
|
124
|
+
echo "::warning::GHAGGA API attempt $attempt failed, retrying..."
|
|
125
|
+
sleep $((attempt * 5))
|
|
126
|
+
done
|
|
127
|
+
|
|
128
|
+
DELIMITER_RESP=$(openssl rand -hex 16)
|
|
129
|
+
echo "response<<$DELIMITER_RESP" >> "$GITHUB_OUTPUT"
|
|
130
|
+
echo "$RESPONSE" >> "$GITHUB_OUTPUT"
|
|
131
|
+
echo "$DELIMITER_RESP" >> "$GITHUB_OUTPUT"
|
|
132
|
+
|
|
133
|
+
# Check if review was successful
|
|
134
|
+
STATUS=$(echo "$RESPONSE" | jq -r '.status // "error"')
|
|
135
|
+
if [ "$STATUS" = "error" ]; then
|
|
136
|
+
echo "::warning::GHAGGA review returned an error"
|
|
137
|
+
echo "$RESPONSE" | jq -r '.message // "Unknown error"'
|
|
138
|
+
else
|
|
139
|
+
echo "Review triggered successfully"
|
|
140
|
+
fi
|
|
141
|
+
|
|
142
|
+
- name: Post review summary
|
|
143
|
+
if: always()
|
|
144
|
+
uses: actions/github-script@v7
|
|
145
|
+
env:
|
|
146
|
+
REVIEW_RESPONSE: ${{ steps.review.outputs.response }}
|
|
147
|
+
with:
|
|
148
|
+
script: |
|
|
149
|
+
const response = process.env.REVIEW_RESPONSE;
|
|
150
|
+
let parsed;
|
|
151
|
+
try {
|
|
152
|
+
parsed = JSON.parse(response);
|
|
153
|
+
} catch {
|
|
154
|
+
console.log('Could not parse GHAGGA response');
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (parsed.status === 'completed' && parsed.summary) {
|
|
159
|
+
await github.rest.issues.createComment({
|
|
160
|
+
owner: context.repo.owner,
|
|
161
|
+
repo: context.repo.repo,
|
|
162
|
+
issue_number: context.issue.number,
|
|
163
|
+
body: `### GHAGGA AI Review\n\n${parsed.summary}\n\n---\n*Review mode: ${parsed.review_mode || 'simple'}*`
|
|
164
|
+
});
|
|
165
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# ===========================================
|
|
2
|
+
# Reusable Workflow: Semantic Release
|
|
3
|
+
# ===========================================
|
|
4
|
+
# Automatic versioning based on conventional commits.
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# jobs:
|
|
8
|
+
# release:
|
|
9
|
+
# uses: JNZader/project-starter-framework/.github/workflows/reusable-release.yml@main
|
|
10
|
+
# secrets:
|
|
11
|
+
# token: ${{ secrets.GITHUB_TOKEN }}
|
|
12
|
+
# ===========================================
|
|
13
|
+
|
|
14
|
+
name: Release (Reusable)
|
|
15
|
+
|
|
16
|
+
on:
|
|
17
|
+
workflow_call:
|
|
18
|
+
inputs:
|
|
19
|
+
dry-run:
|
|
20
|
+
description: 'Dry run'
|
|
21
|
+
required: false
|
|
22
|
+
default: false
|
|
23
|
+
type: boolean
|
|
24
|
+
node-version:
|
|
25
|
+
description: 'Node.js version'
|
|
26
|
+
required: false
|
|
27
|
+
default: '22'
|
|
28
|
+
type: string
|
|
29
|
+
secrets:
|
|
30
|
+
token:
|
|
31
|
+
description: 'GitHub token with contents:write permission'
|
|
32
|
+
required: true
|
|
33
|
+
npm-token:
|
|
34
|
+
description: 'NPM token for package publishing (optional)'
|
|
35
|
+
required: false
|
|
36
|
+
|
|
37
|
+
jobs:
|
|
38
|
+
release:
|
|
39
|
+
name: Release
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
timeout-minutes: 15
|
|
42
|
+
permissions:
|
|
43
|
+
contents: write
|
|
44
|
+
issues: write
|
|
45
|
+
pull-requests: write
|
|
46
|
+
|
|
47
|
+
steps:
|
|
48
|
+
- name: Checkout
|
|
49
|
+
uses: actions/checkout@v4
|
|
50
|
+
with:
|
|
51
|
+
fetch-depth: 0
|
|
52
|
+
persist-credentials: false
|
|
53
|
+
|
|
54
|
+
- name: Setup Node.js
|
|
55
|
+
uses: actions/setup-node@v4
|
|
56
|
+
with:
|
|
57
|
+
node-version: ${{ inputs.node-version }}
|
|
58
|
+
cache: 'npm'
|
|
59
|
+
|
|
60
|
+
- name: Cache semantic-release
|
|
61
|
+
uses: actions/cache@v4
|
|
62
|
+
with:
|
|
63
|
+
path: ~/.npm
|
|
64
|
+
key: semantic-release-${{ runner.os }}-${{ hashFiles('.releaserc*') }}
|
|
65
|
+
restore-keys: semantic-release-${{ runner.os }}-
|
|
66
|
+
|
|
67
|
+
- name: Install semantic-release
|
|
68
|
+
run: |
|
|
69
|
+
npm install -g semantic-release \
|
|
70
|
+
@semantic-release/commit-analyzer \
|
|
71
|
+
@semantic-release/release-notes-generator \
|
|
72
|
+
@semantic-release/changelog \
|
|
73
|
+
@semantic-release/git \
|
|
74
|
+
@semantic-release/github \
|
|
75
|
+
conventional-changelog-conventionalcommits
|
|
76
|
+
|
|
77
|
+
- name: Release
|
|
78
|
+
env:
|
|
79
|
+
GITHUB_TOKEN: ${{ secrets.token }}
|
|
80
|
+
NPM_TOKEN: ${{ secrets.npm-token }}
|
|
81
|
+
DRY_RUN: ${{ inputs.dry-run }}
|
|
82
|
+
GIT_AUTHOR_NAME: github-actions[bot]
|
|
83
|
+
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
|
|
84
|
+
GIT_COMMITTER_NAME: github-actions[bot]
|
|
85
|
+
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
|
|
86
|
+
run: |
|
|
87
|
+
if [ "$DRY_RUN" == "true" ]; then
|
|
88
|
+
npx semantic-release --dry-run
|
|
89
|
+
else
|
|
90
|
+
npx semantic-release
|
|
91
|
+
fi
|