agentic-dev 0.1.0 → 0.2.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/.agent/prd.json +29 -0
- package/.agent/progress.txt +1 -0
- package/.agent/prompt.md +21 -0
- package/.agent/ralph-loop-state.json +13 -0
- package/.agent/ralph-supervisor-state.json +12 -0
- package/.agent/ralph-supervisor.sh +238 -0
- package/.agent/ralph.sh +305 -0
- package/.agent/runs/README.md +7 -0
- package/.agent/sdd-build-ast-audit.json +13 -0
- package/.claude/CLAUDE.md +44 -0
- package/.claude/agentic-dev.json +3 -0
- package/.claude/agents/ai-dev.md +27 -0
- package/.claude/agents/backend-dev.md +26 -0
- package/.claude/agents/db-dev.md +26 -0
- package/.claude/agents/devops.md +27 -0
- package/.claude/agents/frontend-dev.md +25 -0
- package/.claude/agents/github-ops.md +25 -0
- package/.claude/agents/test-dev.md +26 -0
- package/.claude/agents/uiux-designer.md +25 -0
- package/.claude/settings.json +49 -0
- package/.claude/settings.local.json +8 -0
- package/.claude/skills/commit/SKILL.md +37 -0
- package/.claude/skills/dev-browser/SKILL.md +30 -0
- package/.claude/skills/otro/SKILL.md +43 -0
- package/.claude/skills/planning-with-files/SKILL.md +37 -0
- package/.claude/skills/prd/SKILL.md +27 -0
- package/.claude/skills/ralph-loop/SKILL.md +42 -0
- package/.claude/skills/sdd/SKILL.md +13 -0
- package/.claude/skills/sdd-dev/SKILL.md +71 -0
- package/.claude/skills/sdd-development/SKILL.md +13 -0
- package/.claude/workspace-config.json +3 -0
- package/.codex/agentic-dev.json +3 -0
- package/.codex/agents/README.md +22 -0
- package/.codex/agents/api.toml +11 -0
- package/.codex/agents/architecture.toml +11 -0
- package/.codex/agents/ci.toml +11 -0
- package/.codex/agents/gitops.toml +11 -0
- package/.codex/agents/orchestrator.toml +11 -0
- package/.codex/agents/quality.toml +11 -0
- package/.codex/agents/runtime.toml +11 -0
- package/.codex/agents/security.toml +11 -0
- package/.codex/agents/specs.toml +11 -0
- package/.codex/agents/ui.toml +11 -0
- package/.codex/config.toml +46 -0
- package/.codex/skills/SKILL.md +13 -0
- package/.codex/skills/agents/openai.yaml +4 -0
- package/.codex/skills/commit/SKILL.md +219 -0
- package/.codex/skills/commit/references/commit_examples.md +292 -0
- package/.codex/skills/dev-browser/SKILL.md +211 -0
- package/.codex/skills/dev-browser/bun.lock +443 -0
- package/.codex/skills/dev-browser/package-lock.json +2988 -0
- package/.codex/skills/dev-browser/package.json +31 -0
- package/.codex/skills/dev-browser/references/scraping.md +155 -0
- package/.codex/skills/dev-browser/scripts/start-relay.ts +32 -0
- package/.codex/skills/dev-browser/scripts/start-server.ts +117 -0
- package/.codex/skills/dev-browser/server.sh +24 -0
- package/.codex/skills/dev-browser/src/client.ts +474 -0
- package/.codex/skills/dev-browser/src/index.ts +287 -0
- package/.codex/skills/dev-browser/src/relay.ts +731 -0
- package/.codex/skills/dev-browser/src/snapshot/__tests__/snapshot.test.ts +223 -0
- package/.codex/skills/dev-browser/src/snapshot/browser-script.ts +877 -0
- package/.codex/skills/dev-browser/src/snapshot/index.ts +14 -0
- package/.codex/skills/dev-browser/src/snapshot/inject.ts +13 -0
- package/.codex/skills/dev-browser/src/types.ts +34 -0
- package/.codex/skills/dev-browser/tsconfig.json +36 -0
- package/.codex/skills/dev-browser/vitest.config.ts +12 -0
- package/.codex/skills/otro/SKILL.md +74 -0
- package/.codex/skills/otro/agents/openai.yaml +4 -0
- package/.codex/skills/otro/references/agent-prompts.md +61 -0
- package/.codex/skills/otro/references/contracts.md +146 -0
- package/.codex/skills/otro/references/orchestration-loop.md +51 -0
- package/.codex/skills/otro/references/runtime.md +79 -0
- package/.codex/skills/otro/runs/README.md +11 -0
- package/.codex/skills/otro/schemas/step_plan.schema.json +289 -0
- package/.codex/skills/otro/schemas/task_result.schema.json +142 -0
- package/.codex/skills/otro/schemas/wave_plan.schema.json +4 -0
- package/.codex/skills/otro/scripts/README.md +38 -0
- package/.codex/skills/otro/scripts/bump_validation_header.py +179 -0
- package/.codex/skills/otro/scripts/check_validation_header.py +84 -0
- package/.codex/skills/otro/scripts/common.py +303 -0
- package/.codex/skills/otro/scripts/init_run.sh +68 -0
- package/.codex/skills/otro/scripts/plan_loop.py +8 -0
- package/.codex/skills/otro/scripts/plan_step.py +367 -0
- package/.codex/skills/otro/scripts/plan_wave.py +8 -0
- package/.codex/skills/otro/scripts/reconcile_loop.py +8 -0
- package/.codex/skills/otro/scripts/reconcile_step.py +37 -0
- package/.codex/skills/otro/scripts/reconcile_wave.py +8 -0
- package/.codex/skills/otro/scripts/run_loop.py +300 -0
- package/.codex/skills/otro/scripts/run_loop_step.py +8 -0
- package/.codex/skills/otro/scripts/run_step.py +246 -0
- package/.codex/skills/otro/scripts/run_wave.py +8 -0
- package/.codex/skills/otro/validation/validation.md +15 -0
- package/.codex/skills/planning-with-files/SKILL.md +42 -0
- package/.codex/skills/planning-with-files/agents/openai.yaml +4 -0
- package/.codex/skills/planning-with-files/assets/plan-template.md +37 -0
- package/.codex/skills/planning-with-files/references/plan-rules.md +35 -0
- package/.codex/skills/planning-with-files/scripts/new_plan.sh +65 -0
- package/.codex/skills/prd/SKILL.md +235 -0
- package/.codex/skills/ralph-loop/SKILL.md +46 -0
- package/.codex/skills/ralph-loop/agents/openai.yaml +4 -0
- package/.codex/skills/ralph-loop/references/failure-triage.md +32 -0
- package/.codex/skills/ralph-loop/scripts/loop_until_success.sh +97 -0
- package/.codex/skills/sdd/SKILL.md +184 -0
- package/.codex/skills/sdd/agents/openai.yaml +4 -0
- package/.codex/skills/sdd/references/section-map.md +67 -0
- package/.dockerignore +8 -0
- package/.env.example +50 -0
- package/.gitignore +16 -0
- package/AGENTS.md +78 -0
- package/README.md +83 -47
- package/SDD_SKILL.md +589 -0
- package/bin/agentic-dev.mjs +97 -0
- package/client/admin/.dockerignore +3 -0
- package/client/admin/.env.example +1 -0
- package/client/admin/Dockerfile +16 -0
- package/client/admin/Dockerfile.dev +18 -0
- package/client/admin/README.md +20 -0
- package/client/admin/index.html +12 -0
- package/client/admin/package.json +41 -0
- package/client/admin/postcss.config.js +6 -0
- package/client/admin/scripts/ui-parity-admin-adapter.mjs +65 -0
- package/client/admin/src/api/alerts.ts +33 -0
- package/client/admin/src/api/client.ts +71 -0
- package/client/admin/src/api/orders.ts +33 -0
- package/client/admin/src/api/support.ts +11 -0
- package/client/admin/src/app/App.tsx +23 -0
- package/client/admin/src/auth/AuthProvider.tsx +122 -0
- package/client/admin/src/auth/ProtectedRoute.tsx +22 -0
- package/client/admin/src/auth/auth-client.ts +38 -0
- package/client/admin/src/auth/types.ts +18 -0
- package/client/admin/src/components/AdminNotificationsDrawer.tsx +162 -0
- package/client/admin/src/components/AdminShell.tsx +76 -0
- package/client/admin/src/components/ui/button.tsx +34 -0
- package/client/admin/src/components/ui/input.tsx +21 -0
- package/client/admin/src/lib/cn.ts +6 -0
- package/client/admin/src/lib/specRouteCatalog.json +30 -0
- package/client/admin/src/lib/specScreens.json +22 -0
- package/client/admin/src/main.tsx +17 -0
- package/client/admin/src/pages/AdminDashboardPage.tsx +171 -0
- package/client/admin/src/pages/AdminLoginPage.tsx +75 -0
- package/client/admin/src/pages/AdminQueuePage.tsx +107 -0
- package/client/admin/src/pages/AdminSupportPage.tsx +61 -0
- package/client/admin/src/styles/globals.css +17 -0
- package/client/admin/src/theme-vars.ts +18 -0
- package/client/admin/src/theme.ts +25 -0
- package/client/admin/src/vite-env.d.ts +1 -0
- package/client/admin/tailwind.config.js +8 -0
- package/client/admin/tsconfig.json +25 -0
- package/client/admin/vite.config.ts +12 -0
- package/client/landing/.dockerignore +3 -0
- package/client/landing/.env.example +1 -0
- package/client/landing/Dockerfile +16 -0
- package/client/landing/Dockerfile.dev +18 -0
- package/client/landing/README.md +18 -0
- package/client/landing/index.html +12 -0
- package/client/landing/package.json +41 -0
- package/client/landing/postcss.config.js +6 -0
- package/client/landing/scripts/ui-parity-landing-adapter.mjs +65 -0
- package/client/landing/src/App.tsx +21 -0
- package/client/landing/src/api/catalog.ts +30 -0
- package/client/landing/src/api/client.ts +30 -0
- package/client/landing/src/auth/AuthProvider.tsx +122 -0
- package/client/landing/src/auth/ProtectedRoute.tsx +22 -0
- package/client/landing/src/auth/auth-client.ts +38 -0
- package/client/landing/src/auth/types.ts +18 -0
- package/client/landing/src/components/LandingShell.tsx +34 -0
- package/client/landing/src/lib/specRouteCatalog.json +23 -0
- package/client/landing/src/lib/specScreens.json +17 -0
- package/client/landing/src/main.tsx +17 -0
- package/client/landing/src/pages/LandingHomePage.tsx +215 -0
- package/client/landing/src/pages/LandingLoginPage.tsx +90 -0
- package/client/landing/src/pages/LandingWorkspacePage.tsx +126 -0
- package/client/landing/src/styles/globals.css +17 -0
- package/client/landing/src/theme-vars.ts +16 -0
- package/client/landing/src/theme.ts +21 -0
- package/client/landing/src/vite-env.d.ts +1 -0
- package/client/landing/tailwind.config.js +8 -0
- package/client/landing/tsconfig.json +25 -0
- package/client/landing/vite.config.ts +12 -0
- package/client/mobile/.dockerignore +2 -0
- package/client/mobile/.env.example +1 -0
- package/client/mobile/Dockerfile +16 -0
- package/client/mobile/Dockerfile.dev +18 -0
- package/client/mobile/README.md +19 -0
- package/client/mobile/index.html +12 -0
- package/client/mobile/package.json +42 -0
- package/client/mobile/postcss.config.js +6 -0
- package/client/mobile/scripts/ui-parity-mobile-adapter.mjs +67 -0
- package/client/mobile/src/App.tsx +1 -0
- package/client/mobile/src/api/client.ts +62 -0
- package/client/mobile/src/api/fulfillment.ts +55 -0
- package/client/mobile/src/api/shipping.ts +56 -0
- package/client/mobile/src/app/App.tsx +23 -0
- package/client/mobile/src/auth/AuthProvider.tsx +122 -0
- package/client/mobile/src/auth/ProtectedRoute.tsx +27 -0
- package/client/mobile/src/auth/auth-client.ts +38 -0
- package/client/mobile/src/auth/types.ts +18 -0
- package/client/mobile/src/components/InShell.tsx +74 -0
- package/client/mobile/src/components/ui/button.tsx +35 -0
- package/client/mobile/src/components/ui/card.tsx +15 -0
- package/client/mobile/src/components/ui/input.tsx +21 -0
- package/client/mobile/src/lib/cn.ts +6 -0
- package/client/mobile/src/lib/specRouteCatalog.json +26 -0
- package/client/mobile/src/lib/specScreens.json +22 -0
- package/client/mobile/src/lib/useSpeechRecognitionInput.ts +271 -0
- package/client/mobile/src/main.tsx +17 -0
- package/client/mobile/src/pages/DashboardPage.tsx +172 -0
- package/client/mobile/src/pages/FulfillmentPage.tsx +138 -0
- package/client/mobile/src/pages/LoginPage.tsx +74 -0
- package/client/mobile/src/pages/ShippingPage.tsx +338 -0
- package/client/mobile/src/styles/globals.css +23 -0
- package/client/mobile/src/theme-vars.ts +16 -0
- package/client/mobile/src/theme.ts +21 -0
- package/client/mobile/src/vite-env.d.ts +1 -0
- package/client/mobile/tailwind.config.js +8 -0
- package/client/mobile/tsconfig.json +25 -0
- package/client/mobile/vite.config.ts +12 -0
- package/client/platform/.dockerignore +3 -0
- package/client/platform/.env.example +1 -0
- package/client/platform/Dockerfile +16 -0
- package/client/platform/Dockerfile.dev +18 -0
- package/client/platform/README.md +47 -0
- package/client/platform/index.html +12 -0
- package/client/platform/package.json +42 -0
- package/client/platform/postcss.config.js +6 -0
- package/client/platform/scripts/ui-parity-platform-adapter.mjs +66 -0
- package/client/platform/src/api/client.ts +30 -0
- package/client/platform/src/api/orders.ts +42 -0
- package/client/platform/src/app/App.tsx +21 -0
- package/client/platform/src/auth/AuthProvider.tsx +122 -0
- package/client/platform/src/auth/ProtectedRoute.tsx +22 -0
- package/client/platform/src/auth/auth-client.ts +38 -0
- package/client/platform/src/auth/types.ts +18 -0
- package/client/platform/src/components/AppShell.tsx +59 -0
- package/client/platform/src/components/ui/button.tsx +35 -0
- package/client/platform/src/components/ui/card.tsx +7 -0
- package/client/platform/src/components/ui/input.tsx +21 -0
- package/client/platform/src/lib/cn.ts +6 -0
- package/client/platform/src/lib/specRouteCatalog.json +23 -0
- package/client/platform/src/lib/specScreens.json +17 -0
- package/client/platform/src/main.tsx +17 -0
- package/client/platform/src/pages/DashboardPage.tsx +158 -0
- package/client/platform/src/pages/LoginPage.tsx +72 -0
- package/client/platform/src/pages/OrdersPage.tsx +123 -0
- package/client/platform/src/styles/globals.css +17 -0
- package/client/platform/src/theme-vars.ts +18 -0
- package/client/platform/src/theme.ts +25 -0
- package/client/platform/src/vite-env.d.ts +1 -0
- package/client/platform/tailwind.config.js +8 -0
- package/client/platform/tsconfig.json +25 -0
- package/client/platform/vite.config.ts +12 -0
- package/compose.yml +206 -0
- package/infra/compose/.env.dev.example +28 -0
- package/infra/compose/.env.prod.example +29 -0
- package/infra/compose/README.md +35 -0
- package/infra/compose/dev.yml +125 -0
- package/infra/compose/prod.yml +126 -0
- package/infra/terraform/README.md +34 -0
- package/infra/terraform/aws/data/.terraform.lock.hcl +25 -0
- package/infra/terraform/aws/data/README.md +18 -0
- package/infra/terraform/aws/data/main.tf +147 -0
- package/infra/terraform/aws/data/outputs.tf +14 -0
- package/infra/terraform/aws/data/variables.tf +57 -0
- package/infra/terraform/aws/data/versions.tf +10 -0
- package/infra/terraform/aws/domain/.terraform.lock.hcl +25 -0
- package/infra/terraform/aws/domain/README.md +20 -0
- package/infra/terraform/aws/domain/env/dev.tfvars.example +6 -0
- package/infra/terraform/aws/domain/env/prod.tfvars.example +7 -0
- package/infra/terraform/aws/domain/main.tf +149 -0
- package/infra/terraform/aws/domain/outputs.tf +29 -0
- package/infra/terraform/aws/domain/variables.tf +58 -0
- package/infra/terraform/aws/domain/versions.tf +10 -0
- package/infra/terraform/openstack/README.md +38 -0
- package/infra/terraform/openstack/dev/.terraform.lock.hcl +24 -0
- package/infra/terraform/openstack/dev/README.md +18 -0
- package/infra/terraform/openstack/dev/main.tf +49 -0
- package/infra/terraform/openstack/dev/providers.tf +15 -0
- package/infra/terraform/openstack/dev/terraform.tfvars.example +54 -0
- package/infra/terraform/openstack/dev/variables.tf +210 -0
- package/infra/terraform/openstack/dev/versions.tf +10 -0
- package/infra/terraform/openstack/modules/environment_host/main.tf +143 -0
- package/infra/terraform/openstack/modules/environment_host/outputs.tf +25 -0
- package/infra/terraform/openstack/modules/environment_host/templates/docker-host-user-data.sh.tftpl +40 -0
- package/infra/terraform/openstack/modules/environment_host/variables.tf +145 -0
- package/infra/terraform/openstack/modules/environment_host/versions.tf +7 -0
- package/infra/terraform/openstack/prod/.terraform.lock.hcl +24 -0
- package/infra/terraform/openstack/prod/README.md +18 -0
- package/infra/terraform/openstack/prod/main.tf +49 -0
- package/infra/terraform/openstack/prod/providers.tf +15 -0
- package/infra/terraform/openstack/prod/terraform.tfvars.example +55 -0
- package/infra/terraform/openstack/prod/variables.tf +210 -0
- package/infra/terraform/openstack/prod/versions.tf +10 -0
- package/infra/terraform/openstack/server/.terraform.lock.hcl +45 -0
- package/infra/terraform/openstack/server/README.md +47 -0
- package/infra/terraform/openstack/server/main.tf +161 -0
- package/infra/terraform/openstack/server/outputs.tf +30 -0
- package/infra/terraform/openstack/server/providers.tf +30 -0
- package/infra/terraform/openstack/server/templates/server-user-data.sh.tftpl +50 -0
- package/infra/terraform/openstack/server/variables.tf +233 -0
- package/infra/terraform/openstack/server/zz_aspace.auto.tfvars.example.json +29 -0
- package/lib/scaffold.mjs +373 -0
- package/package.json +33 -12
- package/pnpm-workspace.yaml +2 -0
- package/scripts/dev/audit_sdd_build_ast.py +277 -0
- package/sdd/01_planning/01_feature/INDEX.md +16 -0
- package/sdd/01_planning/01_feature/README.md +76 -0
- package/sdd/01_planning/01_feature/alerts_feature_spec.md +55 -0
- package/sdd/01_planning/01_feature/auth_feature_spec.md +57 -0
- package/sdd/01_planning/01_feature/catalog_feature_spec.md +61 -0
- package/sdd/01_planning/01_feature/fulfillment_feature_spec.md +58 -0
- package/sdd/01_planning/01_feature/health_feature_spec.md +52 -0
- package/sdd/01_planning/01_feature/inventory_feature_spec.md +60 -0
- package/sdd/01_planning/01_feature/order_feature_spec.md +63 -0
- package/sdd/01_planning/01_feature/shipping_feature_spec.md +55 -0
- package/sdd/01_planning/01_feature/support_feature_spec.md +53 -0
- package/sdd/01_planning/01_feature/user_feature_spec.md +54 -0
- package/sdd/01_planning/02_screen/INDEX.md +13 -0
- package/sdd/01_planning/02_screen/README.md +41 -0
- package/sdd/01_planning/02_screen/admin_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/assets/README.md +16 -0
- package/sdd/01_planning/02_screen/assets/example/README.md +13 -0
- package/sdd/01_planning/02_screen/landing_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/mobile_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/platform_screen_spec.pdf +0 -0
- package/sdd/01_planning/03_architecture/INDEX.md +9 -0
- package/sdd/01_planning/03_architecture/README.md +25 -0
- package/sdd/01_planning/03_architecture/architecture_document_structure.md +77 -0
- package/sdd/01_planning/03_architecture/backend/README.md +10 -0
- package/sdd/01_planning/03_architecture/frontend/README.md +12 -0
- package/sdd/01_planning/03_architecture/infra/README.md +10 -0
- package/sdd/01_planning/03_architecture/tech-research/README.md +4 -0
- package/sdd/01_planning/03_architecture/templates_system_architecture.md +84 -0
- package/sdd/01_planning/04_data/INDEX.md +4 -0
- package/sdd/01_planning/04_data/README.md +10 -0
- package/sdd/01_planning/04_data/templates_data_modeling.md +119 -0
- package/sdd/01_planning/05_api/README.md +12 -0
- package/sdd/01_planning/05_api/templates_api_contract.md +90 -0
- package/sdd/01_planning/06_iac/README.md +11 -0
- package/sdd/01_planning/06_iac/templates_runtime_and_cicd_baseline.md +46 -0
- package/sdd/01_planning/07_integration/README.md +11 -0
- package/sdd/01_planning/07_integration/templates_frontend_api_integration.md +46 -0
- package/sdd/01_planning/08_nonfunctional/README.md +7 -0
- package/sdd/01_planning/09_security/README.md +7 -0
- package/sdd/01_planning/10_test/README.md +12 -0
- package/sdd/01_planning/10_test/templates_test_strategy.md +60 -0
- package/sdd/01_planning/INDEX.md +19 -0
- package/sdd/01_planning/README.md +17 -0
- package/sdd/02_plan/01_feature/README.md +34 -0
- package/sdd/02_plan/01_feature/_feature_todo_template.md +29 -0
- package/sdd/02_plan/02_screen/INDEX.md +19 -0
- package/sdd/02_plan/02_screen/README.md +39 -0
- package/sdd/02_plan/02_screen/_screen_todo_template.md +60 -0
- package/sdd/02_plan/03_architecture/README.md +23 -0
- package/sdd/02_plan/03_architecture/architecture_document_governance.md +40 -0
- package/sdd/02_plan/03_architecture/build_ast_runtime_tree_governance.md +53 -0
- package/sdd/02_plan/03_architecture/repository_governance.md +39 -0
- package/sdd/02_plan/03_architecture/runtime_and_structure_governance.md +38 -0
- package/sdd/02_plan/03_architecture/templates-hexagonal-template-architecture.md +9 -0
- package/sdd/02_plan/03_architecture/toolchain_governance.md +98 -0
- package/sdd/02_plan/04_data/README.md +5 -0
- package/sdd/02_plan/05_api/README.md +5 -0
- package/sdd/02_plan/06_iac/README.md +11 -0
- package/sdd/02_plan/06_iac/dev_runtime_delivery.md +36 -0
- package/sdd/02_plan/06_iac/template_runtime_delivery.md +50 -0
- package/sdd/02_plan/07_integration/README.md +5 -0
- package/sdd/02_plan/07_integration/frontend_live_integration.md +31 -0
- package/sdd/02_plan/08_nonfunctional/README.md +5 -0
- package/sdd/02_plan/08_nonfunctional/repository_hygiene.md +26 -0
- package/sdd/02_plan/09_security/README.md +5 -0
- package/sdd/02_plan/10_test/README.md +11 -0
- package/sdd/02_plan/10_test/regression_verification.md +39 -0
- package/sdd/02_plan/10_test/templates/README.md +8 -0
- package/sdd/02_plan/10_test/templates/ui_parity_platform_contract.template.yaml +23 -0
- package/sdd/02_plan/10_test/verification_strategy.md +43 -0
- package/sdd/02_plan/99_generated/from_planning/ui_parity/.gitkeep +1 -0
- package/sdd/02_plan/README.md +40 -0
- package/sdd/03_build/01_feature/README.md +20 -0
- package/sdd/03_build/01_feature/domain/README.md +3 -0
- package/sdd/03_build/01_feature/domain/account_and_access.md +20 -0
- package/sdd/03_build/01_feature/domain/catalog_and_inventory.md +20 -0
- package/sdd/03_build/01_feature/domain/ordering_and_fulfillment.md +21 -0
- package/sdd/03_build/01_feature/domain/support_and_observability.md +21 -0
- package/sdd/03_build/01_feature/domain_surfaces.md +28 -0
- package/sdd/03_build/01_feature/service/README.md +3 -0
- package/sdd/03_build/01_feature/service/admin_surface.md +15 -0
- package/sdd/03_build/01_feature/service/landing_surface.md +13 -0
- package/sdd/03_build/01_feature/service/mobile_surface.md +14 -0
- package/sdd/03_build/01_feature/service/platform_surface.md +14 -0
- package/sdd/03_build/02_screen/README.md +25 -0
- package/sdd/03_build/02_screen/_screen_build_template.md +26 -0
- package/sdd/03_build/02_screen/admin/README.md +5 -0
- package/sdd/03_build/02_screen/landing/README.md +5 -0
- package/sdd/03_build/02_screen/mobile/README.md +5 -0
- package/sdd/03_build/02_screen/platform/README.md +5 -0
- package/sdd/03_build/03_architecture/README.md +10 -0
- package/sdd/03_build/03_architecture/architecture_document_governance.md +30 -0
- package/sdd/03_build/03_architecture/build_ast_runtime_tree_governance.md +24 -0
- package/sdd/03_build/03_architecture/repository_governance.md +18 -0
- package/sdd/03_build/03_architecture/toolchain_governance.md +36 -0
- package/sdd/03_build/06_iac/README.md +3 -0
- package/sdd/03_build/06_iac/dev_runtime_delivery.md +10 -0
- package/sdd/03_build/06_iac/template_runtime_delivery.md +49 -0
- package/sdd/03_build/07_integration/README.md +3 -0
- package/sdd/03_build/07_integration/frontend_live_integration.md +11 -0
- package/sdd/03_build/08_nonfunctional/README.md +3 -0
- package/sdd/03_build/08_nonfunctional/repository_hygiene.md +10 -0
- package/sdd/03_build/10_test/README.md +9 -0
- package/sdd/03_build/10_test/regression_verification.md +16 -0
- package/sdd/03_build/10_test/verification_harness.md +11 -0
- package/sdd/03_build/README.md +35 -0
- package/sdd/04_verify/01_feature/README.md +5 -0
- package/sdd/04_verify/01_feature/domain_verification.md +14 -0
- package/sdd/04_verify/01_feature/service_verification.md +22 -0
- package/sdd/04_verify/02_screen/README.md +6 -0
- package/sdd/04_verify/02_screen/_screen_verify_template.md +20 -0
- package/sdd/04_verify/02_screen/admin/README.md +4 -0
- package/sdd/04_verify/02_screen/landing/README.md +4 -0
- package/sdd/04_verify/02_screen/mobile/README.md +4 -0
- package/sdd/04_verify/02_screen/platform/README.md +4 -0
- package/sdd/04_verify/03_architecture/README.md +10 -0
- package/sdd/04_verify/03_architecture/architecture_document_governance.md +15 -0
- package/sdd/04_verify/03_architecture/build_ast_runtime_tree_governance.md +28 -0
- package/sdd/04_verify/03_architecture/repository_governance.md +16 -0
- package/sdd/04_verify/03_architecture/toolchain_governance.md +58 -0
- package/sdd/04_verify/06_iac/README.md +3 -0
- package/sdd/04_verify/06_iac/dev_runtime_delivery.md +10 -0
- package/sdd/04_verify/06_iac/template_runtime_delivery.md +42 -0
- package/sdd/04_verify/07_integration/README.md +3 -0
- package/sdd/04_verify/07_integration/frontend_live_integration.md +16 -0
- package/sdd/04_verify/08_nonfunctional/README.md +3 -0
- package/sdd/04_verify/08_nonfunctional/repository_hygiene.md +14 -0
- package/sdd/04_verify/10_test/README.md +9 -0
- package/sdd/04_verify/10_test/regression_verification.md +16 -0
- package/sdd/04_verify/10_test/ui_parity/README.md +4 -0
- package/sdd/04_verify/10_test/ui_parity/loop_runs/.gitkeep +0 -0
- package/sdd/04_verify/10_test/ui_parity/reference/.gitkeep +0 -0
- package/sdd/04_verify/10_test/ui_parity/staged_runs/.gitkeep +0 -0
- package/sdd/04_verify/10_test/verification_harness.md +17 -0
- package/sdd/04_verify/README.md +22 -0
- package/sdd/05_operate/01_runbooks/.gitkeep +1 -0
- package/sdd/05_operate/01_runbooks/README.md +4 -0
- package/sdd/05_operate/02_delivery_status/README.md +4 -0
- package/sdd/05_operate/02_delivery_status/service_status.md +16 -0
- package/sdd/05_operate/README.md +12 -0
- package/sdd/99_toolchain/01_automation/.gitkeep +1 -0
- package/sdd/99_toolchain/01_automation/README.md +76 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_proof_results.py +132 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_route_gap.py +85 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/assets/repo-contract.template.json +75 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/bootstrap_frontend_parity.sh +84 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/init_frontend_parity.sh +33 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/init_repo_contract.sh +51 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json +76 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_frontend_target.py +52 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_repo_contract.py +56 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh +100 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/run_repo_phase.sh +140 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/validate_json_schema.py +39 -0
- package/sdd/99_toolchain/01_automation/agentic-parity-harness-design.md +291 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/queue.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/support.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/home.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/workspace.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/fulfillment.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/platform_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/platform_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/platform_screen_capture/orders.png +0 -0
- package/sdd/99_toolchain/01_automation/build_asset_recipes.py +10 -0
- package/sdd/99_toolchain/01_automation/build_screen_spec_pdf.py +427 -0
- package/sdd/99_toolchain/01_automation/capture_screen_assets.mjs +148 -0
- package/sdd/99_toolchain/01_automation/harness-layout.md +34 -0
- package/sdd/99_toolchain/01_automation/parity-execution-tooling-design.md +319 -0
- package/sdd/99_toolchain/01_automation/playwright_exactness_manifest.py +21 -0
- package/sdd/99_toolchain/01_automation/run_playwright_exactness.py +87 -0
- package/sdd/99_toolchain/01_automation/screen_spec_manifest.py +321 -0
- package/sdd/99_toolchain/01_automation/spec_asset_builder.py +274 -0
- package/sdd/99_toolchain/01_automation/ui-contract-projection.md +79 -0
- package/sdd/99_toolchain/01_automation/ui-parity/README.md +60 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/extract-reference-pages.mjs +2 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/materialize-reference-assets.mjs +58 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/normalize-reference-assets.mjs +2 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/route-gap-report.mjs +187 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/run-proof.mjs +50 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/scaffold-contract.mjs +62 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/upload-parity1.mjs +2 -0
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/collector-metadata.schema.json +33 -0
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/proof-result.schema.json +76 -0
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/route-gap-report.schema.json +95 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/capture-runner.mjs +55 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-adapter.mjs +25 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-contract.mjs +81 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/paths.mjs +23 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/proof-runner.mjs +255 -0
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-artifact-layout.md +23 -0
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-proof-interface.md +60 -0
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-route-gap-interface.md +82 -0
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/playwright-runtime.mjs +16 -0
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/static-runtime.mjs +6 -0
- package/sdd/99_toolchain/02_policies/.gitkeep +1 -0
- package/sdd/99_toolchain/02_policies/build-ast-governance-policy.md +22 -0
- package/sdd/99_toolchain/02_policies/compose-runtime-baseline-policy.md +24 -0
- package/sdd/99_toolchain/02_policies/convention-storage-policy.md +26 -0
- package/sdd/99_toolchain/02_policies/main-push-before-dev-deploy-policy.md +27 -0
- package/sdd/99_toolchain/02_policies/otro-orchestration-policy.md +30 -0
- package/sdd/99_toolchain/02_policies/regression-verification-policy.md +22 -0
- package/sdd/99_toolchain/03_templates/.gitkeep +1 -0
- package/sdd/99_toolchain/03_templates/asset_recipe_manifest.example.py +38 -0
- package/sdd/99_toolchain/03_templates/generated_assets/README.md +11 -0
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-lockup.svg +3 -0
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-mark.svg +3 -0
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-wordmark.svg +3 -0
- package/sdd/99_toolchain/03_templates/playwright_exactness_manifest.example.py +21 -0
- package/sdd/99_toolchain/README.md +23 -0
- package/sdd/README.md +21 -0
- package/server/.dockerignore +4 -0
- package/server/.env.example +19 -0
- package/server/Dockerfile +22 -0
- package/server/Dockerfile.dev +19 -0
- package/server/README.md +33 -0
- package/server/__init__.py +0 -0
- package/server/api/__init__.py +1 -0
- package/server/api/http/__init__.py +4 -0
- package/server/api/http/app.py +53 -0
- package/server/api/http/router.py +24 -0
- package/server/config.py +52 -0
- package/server/contexts/__init__.py +12 -0
- package/server/contexts/alerts/__init__.py +1 -0
- package/server/contexts/alerts/application/__init__.py +13 -0
- package/server/contexts/alerts/application/services.py +41 -0
- package/server/contexts/alerts/contracts/__init__.py +3 -0
- package/server/contexts/alerts/contracts/http/__init__.py +3 -0
- package/server/contexts/alerts/contracts/http/router.py +37 -0
- package/server/contexts/alerts/domain/__init__.py +15 -0
- package/server/contexts/alerts/domain/models.py +29 -0
- package/server/contexts/alerts/infrastructure/__init__.py +11 -0
- package/server/contexts/alerts/infrastructure/repository.py +41 -0
- package/server/contexts/auth/__init__.py +1 -0
- package/server/contexts/auth/application/__init__.py +3 -0
- package/server/contexts/auth/application/ports.py +10 -0
- package/server/contexts/auth/application/services.py +64 -0
- package/server/contexts/auth/contracts/__init__.py +4 -0
- package/server/contexts/auth/contracts/http/__init__.py +4 -0
- package/server/contexts/auth/contracts/http/dependencies.py +37 -0
- package/server/contexts/auth/contracts/http/router.py +19 -0
- package/server/contexts/auth/domain/__init__.py +3 -0
- package/server/contexts/auth/domain/models.py +24 -0
- package/server/contexts/auth/infrastructure/__init__.py +4 -0
- package/server/contexts/auth/infrastructure/adapters/memory.py +19 -0
- package/server/contexts/auth/infrastructure/adapters/mongodb.py +24 -0
- package/server/contexts/auth/infrastructure/adapters/sqlalchemy.py +74 -0
- package/server/contexts/auth/infrastructure/repository.py +28 -0
- package/server/contexts/catalog/__init__.py +1 -0
- package/server/contexts/catalog/application/__init__.py +28 -0
- package/server/contexts/catalog/application/ports.py +15 -0
- package/server/contexts/catalog/application/services.py +154 -0
- package/server/contexts/catalog/contracts/__init__.py +3 -0
- package/server/contexts/catalog/contracts/http/__init__.py +3 -0
- package/server/contexts/catalog/contracts/http/router.py +60 -0
- package/server/contexts/catalog/domain/__init__.py +45 -0
- package/server/contexts/catalog/domain/models.py +113 -0
- package/server/contexts/catalog/infrastructure/__init__.py +4 -0
- package/server/contexts/catalog/infrastructure/adapters/memory.py +62 -0
- package/server/contexts/catalog/infrastructure/repository.py +8 -0
- package/server/contexts/fulfillment/__init__.py +1 -0
- package/server/contexts/fulfillment/application/__init__.py +13 -0
- package/server/contexts/fulfillment/application/ports.py +20 -0
- package/server/contexts/fulfillment/application/services.py +85 -0
- package/server/contexts/fulfillment/contracts/__init__.py +3 -0
- package/server/contexts/fulfillment/contracts/http/__init__.py +3 -0
- package/server/contexts/fulfillment/contracts/http/router.py +40 -0
- package/server/contexts/fulfillment/domain/__init__.py +25 -0
- package/server/contexts/fulfillment/domain/models.py +73 -0
- package/server/contexts/fulfillment/infrastructure/__init__.py +13 -0
- package/server/contexts/fulfillment/infrastructure/adapters/memory.py +43 -0
- package/server/contexts/fulfillment/infrastructure/repository.py +97 -0
- package/server/contexts/health/__init__.py +1 -0
- package/server/contexts/health/application/__init__.py +3 -0
- package/server/contexts/health/application/services.py +2 -0
- package/server/contexts/health/contracts/__init__.py +3 -0
- package/server/contexts/health/contracts/http/__init__.py +3 -0
- package/server/contexts/health/contracts/http/router.py +10 -0
- package/server/contexts/inventory/__init__.py +1 -0
- package/server/contexts/inventory/application/__init__.py +28 -0
- package/server/contexts/inventory/application/ports.py +11 -0
- package/server/contexts/inventory/application/services.py +214 -0
- package/server/contexts/inventory/contracts/__init__.py +3 -0
- package/server/contexts/inventory/contracts/http/__init__.py +3 -0
- package/server/contexts/inventory/contracts/http/router.py +82 -0
- package/server/contexts/inventory/domain/__init__.py +33 -0
- package/server/contexts/inventory/domain/models.py +93 -0
- package/server/contexts/inventory/infrastructure/__init__.py +4 -0
- package/server/contexts/inventory/infrastructure/adapters/memory.py +24 -0
- package/server/contexts/inventory/infrastructure/repository.py +8 -0
- package/server/contexts/orders/__init__.py +1 -0
- package/server/contexts/orders/application/__init__.py +19 -0
- package/server/contexts/orders/application/services.py +127 -0
- package/server/contexts/orders/contracts/__init__.py +3 -0
- package/server/contexts/orders/contracts/http/__init__.py +3 -0
- package/server/contexts/orders/contracts/http/router.py +82 -0
- package/server/contexts/orders/domain/__init__.py +29 -0
- package/server/contexts/orders/domain/models.py +95 -0
- package/server/contexts/orders/infrastructure/__init__.py +7 -0
- package/server/contexts/orders/infrastructure/repository.py +104 -0
- package/server/contexts/shipping/__init__.py +1 -0
- package/server/contexts/shipping/application/__init__.py +13 -0
- package/server/contexts/shipping/application/services.py +92 -0
- package/server/contexts/shipping/contracts/__init__.py +3 -0
- package/server/contexts/shipping/contracts/http/__init__.py +3 -0
- package/server/contexts/shipping/contracts/http/router.py +40 -0
- package/server/contexts/shipping/domain/__init__.py +19 -0
- package/server/contexts/shipping/domain/models.py +48 -0
- package/server/contexts/shipping/infrastructure/__init__.py +9 -0
- package/server/contexts/shipping/infrastructure/repository.py +50 -0
- package/server/contexts/support/__init__.py +1 -0
- package/server/contexts/support/application/__init__.py +13 -0
- package/server/contexts/support/application/services.py +29 -0
- package/server/contexts/support/contracts/__init__.py +3 -0
- package/server/contexts/support/contracts/http/__init__.py +3 -0
- package/server/contexts/support/contracts/http/router.py +40 -0
- package/server/contexts/support/domain/__init__.py +13 -0
- package/server/contexts/support/domain/models.py +27 -0
- package/server/contexts/support/infrastructure/__init__.py +11 -0
- package/server/contexts/support/infrastructure/repository.py +70 -0
- package/server/contexts/user/__init__.py +1 -0
- package/server/contexts/user/application/__init__.py +3 -0
- package/server/contexts/user/application/ports.py +11 -0
- package/server/contexts/user/application/services.py +44 -0
- package/server/contexts/user/contracts/__init__.py +3 -0
- package/server/contexts/user/contracts/http/__init__.py +3 -0
- package/server/contexts/user/contracts/http/router.py +26 -0
- package/server/contexts/user/domain/__init__.py +3 -0
- package/server/contexts/user/domain/models.py +22 -0
- package/server/contexts/user/infrastructure/__init__.py +3 -0
- package/server/contexts/user/infrastructure/adapters/memory.py +27 -0
- package/server/contexts/user/infrastructure/adapters/mongodb.py +41 -0
- package/server/contexts/user/infrastructure/adapters/sqlalchemy.py +94 -0
- package/server/contexts/user/infrastructure/factory.py +28 -0
- package/server/data/README.md +24 -0
- package/server/data/bootstrap/alerts.json +38 -0
- package/server/data/bootstrap/auth_accounts.json +18 -0
- package/server/data/bootstrap/catalog_products.json +179 -0
- package/server/data/bootstrap/fulfillment_events.json +5 -0
- package/server/data/bootstrap/fulfillment_notes.json +5 -0
- package/server/data/bootstrap/fulfillment_tasks.json +50 -0
- package/server/data/bootstrap/inventory_levels.json +80 -0
- package/server/data/bootstrap/orders.json +62 -0
- package/server/data/bootstrap/shipping_shipments.json +50 -0
- package/server/data/bootstrap/support_faqs.json +26 -0
- package/server/data/bootstrap/users.json +20 -0
- package/server/data/bootstrap_loader.py +15 -0
- package/server/docker-entrypoint.sh +56 -0
- package/server/main.py +3 -0
- package/server/pyproject.toml +36 -0
- package/server/shared/__init__.py +1 -0
- package/server/shared/application/__init__.py +3 -0
- package/server/shared/application/health.py +2 -0
- package/server/shared/infrastructure/__init__.py +10 -0
- package/server/shared/infrastructure/runtime.py +6 -0
- package/server/shared/infrastructure/security.py +33 -0
- package/server/tests/e2e/test_domain_feature_flows.py +483 -0
- package/server/tests/test_health.py +49 -0
- package/server/uv.lock +1169 -0
- package/bin/agentic-dev.js +0 -9
- package/src/cli.js +0 -37
- package/src/init-command.js +0 -230
- package/src/lib/command.js +0 -14
- package/src/lib/fs.js +0 -92
- package/src/lib/git.js +0 -57
- package/src/lib/github.js +0 -77
- package/src/lib/prompt.js +0 -52
- package/src/lib/system.js +0 -15
- package/src/lib/template.js +0 -143
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
variable "auth_url" {
|
|
2
|
+
type = string
|
|
3
|
+
description = "OpenStack Keystone auth URL."
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
variable "region" {
|
|
7
|
+
type = string
|
|
8
|
+
description = "OpenStack region name."
|
|
9
|
+
default = "RegionOne"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
variable "interface" {
|
|
13
|
+
type = string
|
|
14
|
+
description = "OpenStack endpoint interface."
|
|
15
|
+
default = "public"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
variable "auth_type" {
|
|
19
|
+
type = string
|
|
20
|
+
description = "OpenStack auth type."
|
|
21
|
+
default = "password"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
variable "username" {
|
|
25
|
+
type = string
|
|
26
|
+
description = "OpenStack username."
|
|
27
|
+
default = ""
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
variable "password" {
|
|
31
|
+
type = string
|
|
32
|
+
description = "OpenStack password."
|
|
33
|
+
default = ""
|
|
34
|
+
sensitive = true
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
variable "project_name" {
|
|
38
|
+
type = string
|
|
39
|
+
description = "OpenStack project name."
|
|
40
|
+
default = ""
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
variable "user_domain_name" {
|
|
44
|
+
type = string
|
|
45
|
+
description = "OpenStack user domain name."
|
|
46
|
+
default = "Default"
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
variable "project_domain_name" {
|
|
50
|
+
type = string
|
|
51
|
+
description = "OpenStack project domain name."
|
|
52
|
+
default = "Default"
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
variable "application_credential_id" {
|
|
56
|
+
type = string
|
|
57
|
+
description = "OpenStack application credential id."
|
|
58
|
+
default = ""
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
variable "application_credential_secret" {
|
|
62
|
+
type = string
|
|
63
|
+
description = "OpenStack application credential secret."
|
|
64
|
+
default = ""
|
|
65
|
+
sensitive = true
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
variable "insecure" {
|
|
69
|
+
type = bool
|
|
70
|
+
description = "Disable TLS validation."
|
|
71
|
+
default = false
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
variable "service_name" {
|
|
75
|
+
type = string
|
|
76
|
+
description = "Service short name."
|
|
77
|
+
default = "template-service"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
variable "application_name" {
|
|
81
|
+
type = string
|
|
82
|
+
description = "Human-readable application name passed to the backend environment."
|
|
83
|
+
default = "Template API"
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
variable "phase" {
|
|
87
|
+
type = string
|
|
88
|
+
description = "Deployment phase."
|
|
89
|
+
default = "dev"
|
|
90
|
+
|
|
91
|
+
validation {
|
|
92
|
+
condition = contains(["dev", "prod"], lower(var.phase))
|
|
93
|
+
error_message = "phase must be one of: dev, prod"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
variable "external_network_name" {
|
|
98
|
+
type = string
|
|
99
|
+
description = "External provider network used for router gateway and floating IP."
|
|
100
|
+
default = "public"
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
variable "app_network_name" {
|
|
104
|
+
type = string
|
|
105
|
+
description = "Tenant app network name. Leave empty to derive from service+phase."
|
|
106
|
+
default = ""
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
variable "app_subnet_name" {
|
|
110
|
+
type = string
|
|
111
|
+
description = "Tenant app subnet name. Leave empty to derive from service+phase."
|
|
112
|
+
default = ""
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
variable "app_subnet_cidr" {
|
|
116
|
+
type = string
|
|
117
|
+
description = "App subnet CIDR."
|
|
118
|
+
default = "10.42.0.0/24"
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
variable "dns_nameservers" {
|
|
122
|
+
type = list(string)
|
|
123
|
+
description = "Optional DNS nameservers for the app subnet."
|
|
124
|
+
default = ["1.1.1.1", "8.8.8.8"]
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
variable "backend_image_name" {
|
|
128
|
+
type = string
|
|
129
|
+
description = "Boot image name for the API compute instance."
|
|
130
|
+
default = "ubuntu-24.04-noble-amd64"
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
variable "instance_flavor_name" {
|
|
134
|
+
type = string
|
|
135
|
+
description = "Flavor for the API compute instance."
|
|
136
|
+
default = "m1.small"
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
variable "backend_port" {
|
|
140
|
+
type = number
|
|
141
|
+
description = "API service port."
|
|
142
|
+
default = 8080
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
variable "associate_floating_ip" {
|
|
146
|
+
type = bool
|
|
147
|
+
description = "Whether to attach a floating IP to the API instance."
|
|
148
|
+
default = true
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
variable "backend_ingress_cidrs" {
|
|
152
|
+
type = list(string)
|
|
153
|
+
description = "CIDRs allowed to reach the API service port."
|
|
154
|
+
default = ["0.0.0.0/0"]
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
variable "ssh_ingress_cidrs" {
|
|
158
|
+
type = list(string)
|
|
159
|
+
description = "CIDRs allowed to SSH to the API instance."
|
|
160
|
+
default = []
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
variable "ssh_keypair_name" {
|
|
164
|
+
type = string
|
|
165
|
+
description = "OpenStack keypair name used for browser-terminal SSH access."
|
|
166
|
+
default = ""
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
variable "ssh_public_key" {
|
|
170
|
+
type = string
|
|
171
|
+
description = "Public key material registered in OpenStack for browser-terminal SSH access."
|
|
172
|
+
default = ""
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
variable "desired_state" {
|
|
176
|
+
type = string
|
|
177
|
+
description = "Desired server instance power state."
|
|
178
|
+
default = "running"
|
|
179
|
+
|
|
180
|
+
validation {
|
|
181
|
+
condition = contains(["running", "stopped"], lower(var.desired_state))
|
|
182
|
+
error_message = "desired_state must be one of: running, stopped"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
variable "backend_container_image" {
|
|
187
|
+
type = string
|
|
188
|
+
description = "Prebuilt backend image. If empty, repo bootstrap build is used."
|
|
189
|
+
default = ""
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
variable "backend_container_name" {
|
|
193
|
+
type = string
|
|
194
|
+
description = "Runtime container name."
|
|
195
|
+
default = "template-service-server"
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
variable "backend_repo_url" {
|
|
199
|
+
type = string
|
|
200
|
+
description = "Repo URL used for bootstrap build."
|
|
201
|
+
default = "https://github.com/example-org/example-service.git"
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
variable "backend_repo_ref" {
|
|
205
|
+
type = string
|
|
206
|
+
description = "Repo ref for bootstrap build."
|
|
207
|
+
default = "main"
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
variable "backend_repo_subdir" {
|
|
211
|
+
type = string
|
|
212
|
+
description = "Repo-relative server directory."
|
|
213
|
+
default = "server"
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
variable "jwt_secret_key" {
|
|
217
|
+
type = string
|
|
218
|
+
description = "JWT secret key. Leave empty to auto-generate."
|
|
219
|
+
default = ""
|
|
220
|
+
sensitive = true
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
variable "backend_env" {
|
|
224
|
+
type = map(string)
|
|
225
|
+
description = "Additional backend environment variables."
|
|
226
|
+
default = {}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
variable "tags" {
|
|
230
|
+
type = map(string)
|
|
231
|
+
description = "Additional metadata tags."
|
|
232
|
+
default = {}
|
|
233
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"auth_type": "password",
|
|
3
|
+
"auth_url": "https://keystone.example.com:5000/v3",
|
|
4
|
+
"backend_repo_ref": "main",
|
|
5
|
+
"backend_repo_url": "https://github.com/example-org/example-service.git",
|
|
6
|
+
"backend_image_name": "ubuntu-24.04-noble-amd64",
|
|
7
|
+
"backend_port": 8080,
|
|
8
|
+
"instance_flavor_name": "m1.small",
|
|
9
|
+
"ssh_ingress_cidrs": ["0.0.0.0/0"],
|
|
10
|
+
"ssh_keypair_name": "template-dev-terminal",
|
|
11
|
+
"ssh_public_key": "ssh-ed25519 AAAA... replace-me",
|
|
12
|
+
"insecure": false,
|
|
13
|
+
"interface": "public",
|
|
14
|
+
"phase": "dev",
|
|
15
|
+
"external_network_name": "public",
|
|
16
|
+
"app_subnet_cidr": "10.52.0.0/24",
|
|
17
|
+
"project_domain_name": "Default",
|
|
18
|
+
"project_name": "template-service",
|
|
19
|
+
"region": "RegionOne",
|
|
20
|
+
"service_name": "template-service",
|
|
21
|
+
"application_name": "Template API",
|
|
22
|
+
"user_domain_name": "Default",
|
|
23
|
+
"username": "admin",
|
|
24
|
+
"backend_env": {
|
|
25
|
+
"API_PREFIX": "/api/v1",
|
|
26
|
+
"DATABASE_BACKEND": "postgres",
|
|
27
|
+
"POSTGRES_URL": "postgresql://template:template@db:5432/template"
|
|
28
|
+
}
|
|
29
|
+
}
|
package/lib/scaffold.mjs
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import process from "node:process";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
export const TEMPLATE_CONFIG = {
|
|
7
|
+
landing: {
|
|
8
|
+
id: "landing",
|
|
9
|
+
serviceName: "client-landing",
|
|
10
|
+
composePortVar: "CLIENT_LANDING_PORT",
|
|
11
|
+
composeApiVar: "CLIENT_LANDING_VITE_API_BASE_URL",
|
|
12
|
+
defaultPort: 3000,
|
|
13
|
+
},
|
|
14
|
+
platform: {
|
|
15
|
+
id: "platform",
|
|
16
|
+
serviceName: "client-platform",
|
|
17
|
+
composePortVar: "CLIENT_PLATFORM_PORT",
|
|
18
|
+
composeApiVar: "CLIENT_PLATFORM_VITE_API_BASE_URL",
|
|
19
|
+
defaultPort: 3001,
|
|
20
|
+
},
|
|
21
|
+
mobile: {
|
|
22
|
+
id: "mobile",
|
|
23
|
+
serviceName: "client-mobile",
|
|
24
|
+
composePortVar: "CLIENT_MOBILE_PORT",
|
|
25
|
+
composeApiVar: "CLIENT_MOBILE_VITE_API_BASE_URL",
|
|
26
|
+
defaultPort: 3002,
|
|
27
|
+
},
|
|
28
|
+
admin: {
|
|
29
|
+
id: "admin",
|
|
30
|
+
serviceName: "client-admin",
|
|
31
|
+
composePortVar: "CLIENT_ADMIN_PORT",
|
|
32
|
+
composeApiVar: "CLIENT_ADMIN_VITE_API_BASE_URL",
|
|
33
|
+
defaultPort: 4000,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const ROOT_FILES = [
|
|
38
|
+
".dockerignore",
|
|
39
|
+
".env.example",
|
|
40
|
+
".gitignore",
|
|
41
|
+
"AGENTS.md",
|
|
42
|
+
"README.md",
|
|
43
|
+
"SDD_SKILL.md",
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
const ROOT_DIRS = [
|
|
47
|
+
".agent",
|
|
48
|
+
".claude",
|
|
49
|
+
".codex",
|
|
50
|
+
"infra",
|
|
51
|
+
"scripts",
|
|
52
|
+
"sdd",
|
|
53
|
+
"server",
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
57
|
+
const __dirname = path.dirname(__filename);
|
|
58
|
+
const PACKAGE_ROOT = path.resolve(__dirname, "..");
|
|
59
|
+
|
|
60
|
+
export function listTemplates() {
|
|
61
|
+
return Object.keys(TEMPLATE_CONFIG);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function resolvePackageRoot() {
|
|
65
|
+
return PACKAGE_ROOT;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function parseArgs(argv) {
|
|
69
|
+
const args = [...argv];
|
|
70
|
+
const options = {
|
|
71
|
+
command: "init",
|
|
72
|
+
targetDir: "",
|
|
73
|
+
template: "",
|
|
74
|
+
force: false,
|
|
75
|
+
yes: false,
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
if (args.length > 0 && !args[0].startsWith("-")) {
|
|
79
|
+
options.command = args.shift();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
while (args.length > 0) {
|
|
83
|
+
const token = args.shift();
|
|
84
|
+
switch (token) {
|
|
85
|
+
case "--template":
|
|
86
|
+
case "-t":
|
|
87
|
+
options.template = args.shift() ?? "";
|
|
88
|
+
break;
|
|
89
|
+
case "--force":
|
|
90
|
+
options.force = true;
|
|
91
|
+
break;
|
|
92
|
+
case "--yes":
|
|
93
|
+
case "-y":
|
|
94
|
+
options.yes = true;
|
|
95
|
+
break;
|
|
96
|
+
case "--help":
|
|
97
|
+
case "-h":
|
|
98
|
+
options.command = "help";
|
|
99
|
+
break;
|
|
100
|
+
default:
|
|
101
|
+
if (!options.targetDir && !token.startsWith("-")) {
|
|
102
|
+
options.targetDir = token;
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
throw new Error(`Unknown argument: ${token}`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return options;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function usage() {
|
|
113
|
+
return [
|
|
114
|
+
"Usage:",
|
|
115
|
+
" agentic-dev init <target-dir> --template <landing|platform|mobile|admin>",
|
|
116
|
+
"",
|
|
117
|
+
"Examples:",
|
|
118
|
+
" npx agentic-dev init my-app --template platform",
|
|
119
|
+
" npx agentic-dev my-app --template mobile",
|
|
120
|
+
"",
|
|
121
|
+
"Options:",
|
|
122
|
+
" --template, -t Frontend template to install",
|
|
123
|
+
" --force Allow scaffolding into a non-empty directory",
|
|
124
|
+
" --yes, -y Skip interactive confirmation",
|
|
125
|
+
" --help, -h Show this help",
|
|
126
|
+
].join("\n");
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function validateTemplate(template) {
|
|
130
|
+
if (!TEMPLATE_CONFIG[template]) {
|
|
131
|
+
throw new Error(
|
|
132
|
+
`Unsupported template: ${template}. Expected one of: ${listTemplates().join(", ")}.`,
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
return TEMPLATE_CONFIG[template];
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function ensureTargetDir(targetDir, { force = false } = {}) {
|
|
139
|
+
if (!targetDir) {
|
|
140
|
+
throw new Error("Missing target directory.");
|
|
141
|
+
}
|
|
142
|
+
const resolved = path.resolve(process.cwd(), targetDir);
|
|
143
|
+
fs.mkdirSync(resolved, { recursive: true });
|
|
144
|
+
const entries = fs
|
|
145
|
+
.readdirSync(resolved, { withFileTypes: true })
|
|
146
|
+
.filter((entry) => entry.name !== ".git");
|
|
147
|
+
if (entries.length > 0 && !force) {
|
|
148
|
+
throw new Error(`Target directory is not empty: ${resolved}`);
|
|
149
|
+
}
|
|
150
|
+
return resolved;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function copyPath(relativePath, destinationRoot) {
|
|
154
|
+
const sourcePath = path.join(PACKAGE_ROOT, relativePath);
|
|
155
|
+
const destinationPath = path.join(destinationRoot, relativePath);
|
|
156
|
+
fs.mkdirSync(path.dirname(destinationPath), { recursive: true });
|
|
157
|
+
fs.cpSync(sourcePath, destinationPath, {
|
|
158
|
+
recursive: true,
|
|
159
|
+
force: true,
|
|
160
|
+
filter: (source) => {
|
|
161
|
+
const baseName = path.basename(source);
|
|
162
|
+
return baseName !== ".git" && baseName !== "node_modules" && baseName !== "dist";
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function writeFile(destinationPath, content) {
|
|
168
|
+
fs.mkdirSync(path.dirname(destinationPath), { recursive: true });
|
|
169
|
+
fs.writeFileSync(destinationPath, content, "utf8");
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function renderWorkspace(template) {
|
|
173
|
+
return `packages:\n - client/${template}\n`;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function renderCompose(template) {
|
|
177
|
+
const config = TEMPLATE_CONFIG[template];
|
|
178
|
+
return `name: templates
|
|
179
|
+
|
|
180
|
+
services:
|
|
181
|
+
postgres:
|
|
182
|
+
image: postgres:16-alpine
|
|
183
|
+
environment:
|
|
184
|
+
POSTGRES_DB: \${POSTGRES_DB:-template}
|
|
185
|
+
POSTGRES_USER: \${POSTGRES_USER:-template}
|
|
186
|
+
POSTGRES_PASSWORD: \${POSTGRES_PASSWORD:-template}
|
|
187
|
+
ports:
|
|
188
|
+
- "\${POSTGRES_PORT:-5432}:5432"
|
|
189
|
+
volumes:
|
|
190
|
+
- postgres_data:/var/lib/postgresql/data
|
|
191
|
+
healthcheck:
|
|
192
|
+
test:
|
|
193
|
+
[
|
|
194
|
+
"CMD-SHELL",
|
|
195
|
+
"pg_isready -U \${POSTGRES_USER:-template} -d \${POSTGRES_DB:-template}",
|
|
196
|
+
]
|
|
197
|
+
interval: 10s
|
|
198
|
+
timeout: 5s
|
|
199
|
+
retries: 5
|
|
200
|
+
networks:
|
|
201
|
+
- template-dev
|
|
202
|
+
|
|
203
|
+
mysql:
|
|
204
|
+
image: mysql:8.4
|
|
205
|
+
profiles: ["mysql"]
|
|
206
|
+
environment:
|
|
207
|
+
MYSQL_DATABASE: \${MYSQL_DATABASE:-template}
|
|
208
|
+
MYSQL_USER: \${MYSQL_USER:-template}
|
|
209
|
+
MYSQL_PASSWORD: \${MYSQL_PASSWORD:-template}
|
|
210
|
+
MYSQL_ROOT_PASSWORD: \${MYSQL_ROOT_PASSWORD:-template-root}
|
|
211
|
+
ports:
|
|
212
|
+
- "\${MYSQL_PORT:-3306}:3306"
|
|
213
|
+
volumes:
|
|
214
|
+
- mysql_data:/var/lib/mysql
|
|
215
|
+
healthcheck:
|
|
216
|
+
test:
|
|
217
|
+
[
|
|
218
|
+
"CMD-SHELL",
|
|
219
|
+
"mysqladmin ping -h 127.0.0.1 -u\${MYSQL_USER:-template} -p\${MYSQL_PASSWORD:-template}",
|
|
220
|
+
]
|
|
221
|
+
interval: 10s
|
|
222
|
+
timeout: 5s
|
|
223
|
+
retries: 10
|
|
224
|
+
start_period: 20s
|
|
225
|
+
networks:
|
|
226
|
+
- template-dev
|
|
227
|
+
|
|
228
|
+
mariadb:
|
|
229
|
+
image: mariadb:11.7
|
|
230
|
+
profiles: ["mariadb"]
|
|
231
|
+
environment:
|
|
232
|
+
MARIADB_DATABASE: \${MARIADB_DATABASE:-template}
|
|
233
|
+
MARIADB_USER: \${MARIADB_USER:-template}
|
|
234
|
+
MARIADB_PASSWORD: \${MARIADB_PASSWORD:-template}
|
|
235
|
+
MARIADB_ROOT_PASSWORD: \${MARIADB_ROOT_PASSWORD:-template-root}
|
|
236
|
+
ports:
|
|
237
|
+
- "\${MARIADB_PORT:-3307}:3306"
|
|
238
|
+
volumes:
|
|
239
|
+
- mariadb_data:/var/lib/mysql
|
|
240
|
+
healthcheck:
|
|
241
|
+
test:
|
|
242
|
+
[
|
|
243
|
+
"CMD-SHELL",
|
|
244
|
+
"mariadb-admin ping -h 127.0.0.1 -u\${MARIADB_USER:-template} -p\${MARIADB_PASSWORD:-template}",
|
|
245
|
+
]
|
|
246
|
+
interval: 10s
|
|
247
|
+
timeout: 5s
|
|
248
|
+
retries: 10
|
|
249
|
+
start_period: 20s
|
|
250
|
+
networks:
|
|
251
|
+
- template-dev
|
|
252
|
+
|
|
253
|
+
mongo:
|
|
254
|
+
image: mongo:8
|
|
255
|
+
profiles: ["mongo"]
|
|
256
|
+
ports:
|
|
257
|
+
- "\${MONGO_PORT:-27017}:27017"
|
|
258
|
+
volumes:
|
|
259
|
+
- mongo_data:/data/db
|
|
260
|
+
networks:
|
|
261
|
+
- template-dev
|
|
262
|
+
|
|
263
|
+
server:
|
|
264
|
+
build:
|
|
265
|
+
context: .
|
|
266
|
+
dockerfile: server/Dockerfile.dev
|
|
267
|
+
network: host
|
|
268
|
+
environment:
|
|
269
|
+
APP_NAME: \${SERVER_APP_NAME:-Template Server}
|
|
270
|
+
ENVIRONMENT: \${SERVER_ENVIRONMENT:-development}
|
|
271
|
+
API_PREFIX: \${SERVER_API_PREFIX:-/api/v1}
|
|
272
|
+
DATABASE_BACKEND: \${SERVER_DATABASE_BACKEND:-postgres}
|
|
273
|
+
POSTGRES_URL: \${SERVER_POSTGRES_URL:-postgresql+psycopg://template:template@postgres:5432/template}
|
|
274
|
+
MYSQL_URL: \${SERVER_MYSQL_URL:-mysql+pymysql://template:template@mysql:3306/template}
|
|
275
|
+
MARIADB_URL: \${SERVER_MARIADB_URL:-mysql+pymysql://template:template@mariadb:3306/template}
|
|
276
|
+
MONGODB_URL: \${SERVER_MONGODB_URL:-mongodb://mongo:27017}
|
|
277
|
+
MONGODB_DATABASE: \${SERVER_MONGODB_DATABASE:-template}
|
|
278
|
+
JWT_SECRET: \${SERVER_JWT_SECRET:-template-local-dev-secret}
|
|
279
|
+
JWT_ALGORITHM: \${SERVER_JWT_ALGORITHM:-HS256}
|
|
280
|
+
ACCESS_TOKEN_TTL_MINUTES: \${SERVER_ACCESS_TOKEN_TTL_MINUTES:-120}
|
|
281
|
+
BOOTSTRAP_ADMIN_EMAIL: \${SERVER_BOOTSTRAP_ADMIN_EMAIL:-admin@example.com}
|
|
282
|
+
BOOTSTRAP_ADMIN_PASSWORD: \${SERVER_BOOTSTRAP_ADMIN_PASSWORD:-change-me-admin}
|
|
283
|
+
BOOTSTRAP_ADMIN_NAME: \${SERVER_BOOTSTRAP_ADMIN_NAME:-Template Admin}
|
|
284
|
+
BOOTSTRAP_OPERATOR_EMAIL: \${SERVER_BOOTSTRAP_OPERATOR_EMAIL:-operator@example.com}
|
|
285
|
+
BOOTSTRAP_OPERATOR_PASSWORD: \${SERVER_BOOTSTRAP_OPERATOR_PASSWORD:-change-me-operator}
|
|
286
|
+
BOOTSTRAP_OPERATOR_NAME: \${SERVER_BOOTSTRAP_OPERATOR_NAME:-Template Operator}
|
|
287
|
+
CORS_ORIGINS: '\${SERVER_CORS_ORIGINS:-["http://localhost:${config.defaultPort}","http://127.0.0.1:${config.defaultPort}"]}'
|
|
288
|
+
SERVER_HTTP_PORT: \${SERVER_HTTP_PORT:-8000}
|
|
289
|
+
ports:
|
|
290
|
+
- "\${SERVER_HTTP_PORT:-8000}:\${SERVER_HTTP_PORT:-8000}"
|
|
291
|
+
volumes:
|
|
292
|
+
- ./server:/app/server
|
|
293
|
+
depends_on:
|
|
294
|
+
postgres:
|
|
295
|
+
condition: service_healthy
|
|
296
|
+
networks:
|
|
297
|
+
- template-dev
|
|
298
|
+
|
|
299
|
+
${config.serviceName}:
|
|
300
|
+
build:
|
|
301
|
+
context: .
|
|
302
|
+
dockerfile: client/${template}/Dockerfile.dev
|
|
303
|
+
network: host
|
|
304
|
+
environment:
|
|
305
|
+
PORT: \${${config.composePortVar}:-${config.defaultPort}}
|
|
306
|
+
VITE_API_BASE_URL: \${${config.composeApiVar}:-http://127.0.0.1:8000/api/v1}
|
|
307
|
+
CHOKIDAR_USEPOLLING: \${CLIENT_WATCH_USE_POLLING:-false}
|
|
308
|
+
ports:
|
|
309
|
+
- "\${${config.composePortVar}:-${config.defaultPort}}:\${${config.composePortVar}:-${config.defaultPort}}"
|
|
310
|
+
volumes:
|
|
311
|
+
- ./client/${template}:/app/client/${template}
|
|
312
|
+
depends_on:
|
|
313
|
+
server:
|
|
314
|
+
condition: service_started
|
|
315
|
+
networks:
|
|
316
|
+
- template-dev
|
|
317
|
+
|
|
318
|
+
networks:
|
|
319
|
+
template-dev:
|
|
320
|
+
driver: bridge
|
|
321
|
+
|
|
322
|
+
volumes:
|
|
323
|
+
postgres_data:
|
|
324
|
+
mysql_data:
|
|
325
|
+
mariadb_data:
|
|
326
|
+
mongo_data:
|
|
327
|
+
`;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
function updateRepoContract(destinationRoot, template) {
|
|
331
|
+
const contractPath = path.join(
|
|
332
|
+
destinationRoot,
|
|
333
|
+
"sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json",
|
|
334
|
+
);
|
|
335
|
+
const contract = JSON.parse(fs.readFileSync(contractPath, "utf8"));
|
|
336
|
+
const selectedTarget = contract.frontend.targets[template];
|
|
337
|
+
contract.frontend.default_target = template;
|
|
338
|
+
contract.frontend.targets = {
|
|
339
|
+
[template]: selectedTarget,
|
|
340
|
+
};
|
|
341
|
+
contract.commands.verify_dev = `test -f "$PWD/${selectedTarget.proof_output}" && echo verify-dev-placeholder-ok`;
|
|
342
|
+
contract.artifacts.route_gap_output = selectedTarget.route_gap_output;
|
|
343
|
+
contract.artifacts.proof_output = selectedTarget.proof_output;
|
|
344
|
+
writeFile(contractPath, `${JSON.stringify(contract, null, 2)}\n`);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export function scaffoldTemplate({ destinationRoot, template }) {
|
|
348
|
+
validateTemplate(template);
|
|
349
|
+
|
|
350
|
+
for (const relativePath of ROOT_FILES) {
|
|
351
|
+
copyPath(relativePath, destinationRoot);
|
|
352
|
+
}
|
|
353
|
+
for (const relativePath of ROOT_DIRS) {
|
|
354
|
+
copyPath(relativePath, destinationRoot);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
copyPath(path.join("client", template), destinationRoot);
|
|
358
|
+
|
|
359
|
+
writeFile(path.join(destinationRoot, "pnpm-workspace.yaml"), renderWorkspace(template));
|
|
360
|
+
writeFile(path.join(destinationRoot, "compose.yml"), renderCompose(template));
|
|
361
|
+
updateRepoContract(destinationRoot, template);
|
|
362
|
+
|
|
363
|
+
return {
|
|
364
|
+
destinationRoot,
|
|
365
|
+
template,
|
|
366
|
+
nextSteps: [
|
|
367
|
+
"cp .env.example .env",
|
|
368
|
+
"npm install -g pnpm",
|
|
369
|
+
"pnpm install",
|
|
370
|
+
`cd client/${template} && npm run ui:parity:bootstrap`,
|
|
371
|
+
],
|
|
372
|
+
};
|
|
373
|
+
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-dev",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Scaffold an agentic template repo with the selected frontend surface and shared toolchain assets.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"bin/",
|
|
8
|
-
"src/",
|
|
9
|
-
"README.md"
|
|
10
|
-
],
|
|
6
|
+
"packageManager": "pnpm@10.32.0",
|
|
11
7
|
"bin": {
|
|
12
|
-
"agentic-dev": "./bin/agentic-dev.
|
|
8
|
+
"agentic-dev": "./bin/agentic-dev.mjs"
|
|
13
9
|
},
|
|
10
|
+
"files": [
|
|
11
|
+
".agent",
|
|
12
|
+
".claude",
|
|
13
|
+
".codex",
|
|
14
|
+
"bin",
|
|
15
|
+
"client",
|
|
16
|
+
"infra",
|
|
17
|
+
"lib",
|
|
18
|
+
"scripts",
|
|
19
|
+
"sdd",
|
|
20
|
+
"server",
|
|
21
|
+
".dockerignore",
|
|
22
|
+
".env.example",
|
|
23
|
+
".gitignore",
|
|
24
|
+
"AGENTS.md",
|
|
25
|
+
"README.md",
|
|
26
|
+
"SDD_SKILL.md",
|
|
27
|
+
"compose.yml",
|
|
28
|
+
"pnpm-workspace.yaml"
|
|
29
|
+
],
|
|
14
30
|
"scripts": {
|
|
15
|
-
"
|
|
31
|
+
"smoke:init": "node ./bin/agentic-dev.mjs init ./.tmp-agentic-smoke --template platform --yes --force"
|
|
16
32
|
},
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
33
|
+
"keywords": [
|
|
34
|
+
"agentic",
|
|
35
|
+
"template",
|
|
36
|
+
"scaffold",
|
|
37
|
+
"vite",
|
|
38
|
+
"react"
|
|
39
|
+
],
|
|
40
|
+
"license": "UNLICENSED"
|
|
20
41
|
}
|