@ripla/godd-mcp 1.0.4-canary.8 → 1.0.4
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/README.md +89 -94
- package/dist/godd.cjs +349 -233
- package/dist/godd.js +2193 -838
- package/dist/index.js +152 -122
- package/{notes-api → notes/api}/.env.example +6 -1
- package/{notes-api → notes/api}/README.md +6 -5
- package/{notes-api → notes/api}/app/main.py +29 -2
- package/{notes-api → notes/api}/app/routers/auth.py +6 -1
- package/{notes-api → notes/api}/app/routers/issues.py +157 -1
- package/{notes-api → notes/api}/app/routers/pr.py +2 -2
- package/{notes-api → notes/api}/app/services/github_app_token.py +32 -1
- package/{notes-api → notes/api}/app/services/github_issues.py +101 -11
- package/{notes-api → notes/api}/app/services/github_pr.py +6 -1
- package/{notes-api → notes/api}/tests/test_github_app_token.py +49 -1
- package/{notes-api → notes/api}/tests/test_github_service.py +42 -0
- package/notes/api/tests/test_health.py +52 -0
- package/{notes-api → notes/api}/tests/test_issues.py +216 -0
- package/{notes-api → notes/api}/tests/test_pr.py +24 -0
- package/{notes-api → notes/api}/tests/test_pr_chain.py +19 -0
- package/{notes-api → notes/api}/uv.lock +178 -2
- package/notes/app/DESIGN.md +273 -0
- package/{notes-app → notes/app}/README.md +4 -1
- package/notes/app/docker/Dockerfile.e2e +19 -0
- package/notes/app/docker/Dockerfile.prod +15 -0
- package/notes/app/docker/Dockerfile.test +17 -0
- package/notes/app/e2e/file-tree.spec.ts +26 -0
- package/notes/app/e2e/file-view.spec.ts +25 -0
- package/notes/app/e2e/fixtures.ts +28 -0
- package/{notes-app → notes/app}/e2e/global-setup.ts +5 -7
- package/notes/app/e2e/login.spec.ts +25 -0
- package/notes/app/e2e/pages/login-page.ts +29 -0
- package/notes/app/e2e/pages/main-page.ts +29 -0
- package/notes/app/e2e/panel-resize-handle.spec.ts +213 -0
- package/{notes-app → notes/app}/eslint.config.js +9 -0
- package/{notes-app → notes/app}/package.json +0 -3
- package/{notes-app → notes/app}/pnpm-workspace.yaml +1 -0
- package/notes/app/src/components/CommentPanel.test.tsx +194 -0
- package/{notes-app → notes/app}/src/components/CommentPanel.tsx +119 -10
- package/notes/app/src/components/CommentSelectionPopover.tsx +26 -0
- package/notes/app/src/components/EditToolbar.test.tsx +102 -0
- package/{notes-app → notes/app}/src/components/EditToolbar.tsx +5 -54
- package/notes/app/src/components/FileInfoPanel.branch-tab.test.tsx +250 -0
- package/notes/app/src/components/FileInfoPanel.history-tab.test.tsx +146 -0
- package/notes/app/src/components/FileInfoPanel.test.tsx +101 -0
- package/{notes-app → notes/app}/src/components/FileInfoPanel.tsx +135 -20
- package/notes/app/src/components/IssueCommentThread.test.tsx +93 -0
- package/notes/app/src/components/IssueCommentThread.tsx +156 -0
- package/notes/app/src/components/IssueDetailView.test.tsx +1118 -0
- package/notes/app/src/components/IssueDetailView.tsx +476 -0
- package/notes/app/src/components/IssueList.test.tsx +545 -0
- package/notes/app/src/components/IssueList.tsx +374 -0
- package/{notes-app → notes/app}/src/components/LabelSelector.test.tsx +94 -8
- package/notes/app/src/components/LabelSelector.tsx +452 -0
- package/{notes-app → notes/app}/src/components/MarkdownEditor.tsx +140 -2
- package/notes/app/src/components/PanelResizeHandle.test.tsx +481 -0
- package/notes/app/src/components/PanelResizeHandle.tsx +96 -0
- package/{notes-app → notes/app}/src/hooks/useEditSession.test.ts +171 -23
- package/{notes-app → notes/app}/src/hooks/useEditSession.ts +49 -62
- package/notes/app/src/hooks/useMdUpLayout.test.ts +10 -0
- package/notes/app/src/hooks/useMdUpLayout.ts +27 -0
- package/notes/app/src/hooks/usePeriodicSync.test.ts +244 -0
- package/notes/app/src/hooks/usePeriodicSync.ts +83 -0
- package/notes/app/src/hooks/useResizablePanelWidth.test.ts +251 -0
- package/notes/app/src/hooks/useResizablePanelWidth.ts +167 -0
- package/{notes-app → notes/app}/src/lib/api.test.ts +81 -1
- package/{notes-app → notes/app}/src/lib/api.ts +98 -4
- package/notes/app/src/lib/commentAnchor.test.ts +22 -0
- package/notes/app/src/lib/commentAnchor.ts +28 -0
- package/notes/app/src/lib/commentHighlight.test.ts +110 -0
- package/notes/app/src/lib/commentHighlight.ts +44 -0
- package/notes/app/src/lib/github-sync.test.ts +126 -0
- package/notes/app/src/lib/github-sync.ts +89 -0
- package/notes/app/src/lib/issue-list-utils.test.ts +275 -0
- package/notes/app/src/lib/issue-list-utils.ts +135 -0
- package/notes/app/src/lib/issue-mobile-layout.test.ts +17 -0
- package/notes/app/src/lib/issue-mobile-layout.ts +20 -0
- package/notes/app/src/lib/issue-url-sync.test.ts +73 -0
- package/notes/app/src/lib/issue-url-sync.ts +43 -0
- package/notes/app/src/lib/main-page-default-view.test.ts +37 -0
- package/notes/app/src/lib/main-page-default-view.ts +15 -0
- package/notes/app/src/lib/resizable-panel.test.ts +199 -0
- package/notes/app/src/lib/resizable-panel.ts +136 -0
- package/notes/app/src/pages/LoginPage.test.tsx +17 -0
- package/notes/app/src/pages/MainPage.branch-modal.test.tsx +226 -0
- package/notes/app/src/pages/MainPage.issue-sync.test.tsx +145 -0
- package/notes/app/src/pages/MainPage.sidebar.test.tsx +361 -0
- package/{notes-app → notes/app}/src/pages/MainPage.tsx +406 -61
- package/{notes-app → notes/app}/src/pages/SettingsPage.test.tsx +32 -23
- package/{notes-app → notes/app}/src/pages/UserManagementPage.test.tsx +8 -18
- package/notes/app/src/test/mocks.ts +156 -0
- package/notes/app/src/test/render.tsx +27 -0
- package/package.json +3 -5
- package/notes-api/tests/test_health.py +0 -11
- package/notes-app/docker/Dockerfile.e2e +0 -14
- package/notes-app/docker/Dockerfile.prod +0 -12
- package/notes-app/docker/Dockerfile.test +0 -12
- package/notes-app/e2e/file-tree.spec.ts +0 -29
- package/notes-app/e2e/file-view.spec.ts +0 -24
- package/notes-app/e2e/login.spec.ts +0 -32
- package/notes-app/src/components/IssueDetailView.test.tsx +0 -201
- package/notes-app/src/components/IssueDetailView.tsx +0 -318
- package/notes-app/src/components/IssueList.test.tsx +0 -93
- package/notes-app/src/components/IssueList.tsx +0 -169
- package/notes-app/src/components/LabelSelector.tsx +0 -276
- package/notes-app/src/pages/LoginPage.test.tsx +0 -29
- package/stacks/django-vue.yaml +0 -33
- package/stacks/fastapi-react.yaml +0 -160
- package/stacks/flutter-firebase.yaml +0 -58
- package/stacks/nextjs-prisma.yaml +0 -33
- package/stacks/schema.json +0 -144
- package/templates/agents/architect.hbs +0 -183
- package/templates/agents/auto-documenter.hbs +0 -36
- package/templates/agents/backend-developer.hbs +0 -175
- package/templates/agents/code-reviewer.hbs +0 -29
- package/templates/agents/database-developer.hbs +0 -52
- package/templates/agents/debug-specialist.hbs +0 -39
- package/templates/agents/environment-setup.hbs +0 -41
- package/templates/agents/frontend-developer.hbs +0 -45
- package/templates/agents/integration-qa.hbs +0 -26
- package/templates/agents/performance-qa.hbs +0 -24
- package/templates/agents/pr-writer.hbs +0 -53
- package/templates/agents/quality-lead.hbs +0 -26
- package/templates/agents/requirements-analyst.hbs +0 -26
- package/templates/agents/security-analyst.hbs +0 -21
- package/templates/agents/security-reviewer.hbs +0 -20
- package/templates/agents/ssot-updater.hbs +0 -45
- package/templates/agents/technical-writer.hbs +0 -28
- package/templates/agents/unit-test-engineer.hbs +0 -19
- package/templates/agents/user-clone.hbs +0 -43
- package/templates/github-actions/aws/deploy-notes.yml.hbs +0 -117
- package/templates/github-actions/azure/deploy-notes.yml.hbs +0 -78
- package/templates/github-actions/gcp/deploy-notes.yml.hbs +0 -76
- package/templates/github-actions/vercel-railway/deploy-notes.yml.hbs +0 -49
- package/templates/mindsets/agent-stdio.hbs +0 -51
- package/templates/mindsets/dart.hbs +0 -39
- package/templates/mindsets/ddd-clean-architecture.hbs +0 -52
- package/templates/mindsets/electron.hbs +0 -41
- package/templates/mindsets/fastapi.hbs +0 -40
- package/templates/mindsets/flutter.hbs +0 -56
- package/templates/mindsets/kotlin.hbs +0 -46
- package/templates/mindsets/postgresql.hbs +0 -39
- package/templates/mindsets/python.hbs +0 -39
- package/templates/mindsets/react.hbs +0 -51
- package/templates/mindsets/swift.hbs +0 -46
- package/templates/mindsets/terraform.hbs +0 -53
- package/templates/mindsets/typescript.hbs +0 -34
- package/templates/mindsets/vite.hbs +0 -37
- package/templates/notes-compose.yml +0 -82
- package/templates/partials/cogito-geo.hbs +0 -84
- package/templates/partials/cogito-godd.hbs +0 -22
- package/templates/partials/cogito-grammar.hbs +0 -105
- package/templates/partials/cogito-particle.hbs +0 -76
- package/templates/partials/cogito-root-ai.hbs +0 -79
- package/templates/partials/cogito-root-arch.hbs +0 -75
- package/templates/partials/cogito-root-core.hbs +0 -75
- package/templates/partials/cogito-root-daily.hbs +0 -58
- package/templates/partials/cogito-root-dev.hbs +0 -71
- package/templates/partials/cogito-root-devops.hbs +0 -71
- package/templates/partials/cogito-root-framework.hbs +0 -80
- package/templates/partials/cogito-root-lang.hbs +0 -74
- package/templates/partials/godd-core.hbs +0 -50
- package/templates/partials/project-context.hbs +0 -52
- package/templates/partials/ssot-header.hbs +0 -40
- package/templates/partials/ssot-rules.hbs +0 -30
- package/templates/prompts/adr.hbs +0 -39
- package/templates/prompts/agent-dev-workflow.hbs +0 -34
- package/templates/prompts/analyze-report.hbs +0 -36
- package/templates/prompts/auto-documentation.hbs +0 -37
- package/templates/prompts/check.hbs +0 -52
- package/templates/prompts/commit.hbs +0 -96
- package/templates/prompts/dev.hbs +0 -127
- package/templates/prompts/docs-init.hbs +0 -101
- package/templates/prompts/docs-update.hbs +0 -51
- package/templates/prompts/git-workflow.hbs +0 -125
- package/templates/prompts/impact-analysis.hbs +0 -43
- package/templates/prompts/install.hbs +0 -40
- package/templates/prompts/new-branch.hbs +0 -61
- package/templates/prompts/notes-deploy.hbs +0 -138
- package/templates/prompts/pr-analyze.hbs +0 -44
- package/templates/prompts/pr-create.hbs +0 -125
- package/templates/prompts/push-execute.hbs +0 -83
- package/templates/prompts/push.hbs +0 -24
- package/templates/prompts/release-notes.hbs +0 -38
- package/templates/prompts/requirements-to-business-flow.hbs +0 -29
- package/templates/prompts/requirements-to-tickets.hbs +0 -26
- package/templates/prompts/review.hbs +0 -126
- package/templates/prompts/setup.hbs +0 -247
- package/templates/prompts/spec.hbs +0 -35
- package/templates/prompts/specification-to-tickets.hbs +0 -24
- package/templates/prompts/submit.hbs +0 -143
- package/templates/prompts/sync.hbs +0 -63
- package/templates/prompts/test-plan.hbs +0 -56
- package/templates/scripts/aws/terraform-backend-setup.sh.hbs +0 -149
- package/templates/terraform/aws/alb.tf.hbs +0 -58
- package/templates/terraform/aws/backend.tf.hbs +0 -10
- package/templates/terraform/aws/cloudfront.tf.hbs +0 -96
- package/templates/terraform/aws/ecr.tf.hbs +0 -30
- package/templates/terraform/aws/ecs.tf.hbs +0 -142
- package/templates/terraform/aws/iam.tf.hbs +0 -88
- package/templates/terraform/aws/local.tf.hbs +0 -34
- package/templates/terraform/aws/output.tf.hbs +0 -49
- package/templates/terraform/aws/provider.tf.hbs +0 -26
- package/templates/terraform/aws/rds.tf.hbs +0 -38
- package/templates/terraform/aws/s3.tf.hbs +0 -34
- package/templates/terraform/aws/secrets.tf.hbs +0 -53
- package/templates/terraform/aws/security_groups.tf.hbs +0 -81
- package/templates/terraform/aws/vpc.tf.hbs +0 -63
- package/templates/terraform/azure/backend.tf.hbs +0 -8
- package/templates/terraform/azure/iam.tf.hbs +0 -36
- package/templates/terraform/azure/main.tf.hbs +0 -203
- package/templates/terraform/azure/output.tf.hbs +0 -19
- package/templates/terraform/azure/provider.tf.hbs +0 -19
- package/templates/terraform/gcp/backend.tf.hbs +0 -6
- package/templates/terraform/gcp/iam.tf.hbs +0 -47
- package/templates/terraform/gcp/main.tf.hbs +0 -175
- package/templates/terraform/gcp/output.tf.hbs +0 -15
- package/templates/terraform/gcp/provider.tf.hbs +0 -19
- package/templates/terraform/vercel-railway/main.tf.hbs +0 -64
- package/templates/terraform/vercel-railway/output.tf.hbs +0 -11
- /package/{notes-api → notes/api}/.dockerignore +0 -0
- /package/{notes-api → notes/api}/alembic/README +0 -0
- /package/{notes-api → notes/api}/alembic/env.py +0 -0
- /package/{notes-api → notes/api}/alembic/script.py.mako +0 -0
- /package/{notes-api → notes/api}/alembic/versions/001_initial_notes_tables.py +0 -0
- /package/{notes-api → notes/api}/alembic/versions/002_add_performance_indexes.py +0 -0
- /package/{notes-api → notes/api}/alembic/versions/003_add_yjs_documents.py +0 -0
- /package/{notes-api → notes/api}/alembic/versions/004_add_comments.py +0 -0
- /package/{notes-api → notes/api}/alembic/versions/005_add_github_username.py +0 -0
- /package/{notes-api → notes/api}/alembic/versions/006_add_check_constraints.py +0 -0
- /package/{notes-api → notes/api}/alembic.ini +0 -0
- /package/{notes-api → notes/api}/app/__init__.py +0 -0
- /package/{notes-api → notes/api}/app/config.py +0 -0
- /package/{notes-api → notes/api}/app/database.py +0 -0
- /package/{notes-api → notes/api}/app/http_client.py +0 -0
- /package/{notes-api → notes/api}/app/models/__init__.py +0 -0
- /package/{notes-api → notes/api}/app/models/audit.py +0 -0
- /package/{notes-api → notes/api}/app/models/base.py +0 -0
- /package/{notes-api → notes/api}/app/models/collab.py +0 -0
- /package/{notes-api → notes/api}/app/models/comment.py +0 -0
- /package/{notes-api → notes/api}/app/models/session.py +0 -0
- /package/{notes-api → notes/api}/app/models/setting.py +0 -0
- /package/{notes-api → notes/api}/app/models/user.py +0 -0
- /package/{notes-api → notes/api}/app/path_validation.py +0 -0
- /package/{notes-api → notes/api}/app/routers/__init__.py +0 -0
- /package/{notes-api → notes/api}/app/routers/collab.py +0 -0
- /package/{notes-api → notes/api}/app/routers/comments.py +0 -0
- /package/{notes-api → notes/api}/app/routers/files.py +0 -0
- /package/{notes-api → notes/api}/app/routers/settings.py +0 -0
- /package/{notes-api → notes/api}/app/routers/tree.py +0 -0
- /package/{notes-api → notes/api}/app/routers/upload.py +0 -0
- /package/{notes-api → notes/api}/app/routers/users.py +0 -0
- /package/{notes-api → notes/api}/app/schemas/__init__.py +0 -0
- /package/{notes-api → notes/api}/app/schemas/auth.py +0 -0
- /package/{notes-api → notes/api}/app/schemas/user.py +0 -0
- /package/{notes-api → notes/api}/app/security.py +0 -0
- /package/{notes-api → notes/api}/app/services/__init__.py +0 -0
- /package/{notes-api → notes/api}/app/services/audit.py +0 -0
- /package/{notes-api → notes/api}/app/services/business_date.py +0 -0
- /package/{notes-api → notes/api}/app/services/collab.py +0 -0
- /package/{notes-api → notes/api}/app/services/github.py +0 -0
- /package/{notes-api → notes/api}/app/services/pr_chain.py +0 -0
- /package/{notes-api → notes/api}/app/startup.py +0 -0
- /package/{notes-api → notes/api}/docker/Dockerfile +0 -0
- /package/{notes-api → notes/api}/docker/Dockerfile.test +0 -0
- /package/{notes-api → notes/api}/pyproject.toml +0 -0
- /package/{notes-api → notes/api}/tests/conftest.py +0 -0
- /package/{notes-api → notes/api}/tests/test_audit.py +0 -0
- /package/{notes-api → notes/api}/tests/test_auth.py +0 -0
- /package/{notes-api → notes/api}/tests/test_business_date.py +0 -0
- /package/{notes-api → notes/api}/tests/test_collab.py +0 -0
- /package/{notes-api → notes/api}/tests/test_comments.py +0 -0
- /package/{notes-api → notes/api}/tests/test_config_ssl.py +0 -0
- /package/{notes-api → notes/api}/tests/test_config_warnings.py +0 -0
- /package/{notes-api → notes/api}/tests/test_files.py +0 -0
- /package/{notes-api → notes/api}/tests/test_path_validation.py +0 -0
- /package/{notes-api → notes/api}/tests/test_security.py +0 -0
- /package/{notes-api → notes/api}/tests/test_settings.py +0 -0
- /package/{notes-api → notes/api}/tests/test_tree.py +0 -0
- /package/{notes-api → notes/api}/tests/test_upload.py +0 -0
- /package/{notes-api → notes/api}/tests/test_users.py +0 -0
- /package/{notes-app → notes/app}/.dockerignore +0 -0
- /package/{notes-app → notes/app}/index.html +0 -0
- /package/{notes-app → notes/app}/nginx.conf +0 -0
- /package/{notes-app → notes/app}/package-lock.json +0 -0
- /package/{notes-app → notes/app}/playwright.config.ts +0 -0
- /package/{notes-app → notes/app}/pnpm-lock.yaml +0 -0
- /package/{notes-app → notes/app}/src/App.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/BranchSelectorModal.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/CodeBlockView.test.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/CodeBlockView.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/CollabStatus.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/DiffPreview.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/DrawioEditor.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/DrawioViewer.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/ErrorBoundary.test.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/ErrorBoundary.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/FileContentView.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/FileContextMenu.test.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/FileContextMenu.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/FileDialogs.test.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/FileDialogs.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/SaveStatusIndicator.test.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/SaveStatusIndicator.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/Skeleton.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/SpreadsheetEditor.test.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/SpreadsheetEditor.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/TextEditor.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/ToastContainer.tsx +0 -0
- /package/{notes-app → notes/app}/src/components/TreeNode.tsx +0 -0
- /package/{notes-app → notes/app}/src/contexts/AuthContext.test.tsx +0 -0
- /package/{notes-app → notes/app}/src/contexts/AuthContext.tsx +0 -0
- /package/{notes-app → notes/app}/src/contexts/ToastContext.test.ts +0 -0
- /package/{notes-app → notes/app}/src/contexts/ToastContext.tsx +0 -0
- /package/{notes-app → notes/app}/src/hooks/useAutoSave.test.ts +0 -0
- /package/{notes-app → notes/app}/src/hooks/useAutoSave.ts +0 -0
- /package/{notes-app → notes/app}/src/hooks/useCollaboration.ts +0 -0
- /package/{notes-app → notes/app}/src/hooks/useComments.ts +0 -0
- /package/{notes-app → notes/app}/src/hooks/useYText.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/branch-diff.test.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/branch-diff.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/created-file.test.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/created-file.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/csv-utils.test.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/csv-utils.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/deepLinkPathToSearch.test.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/deepLinkPathToSearch.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/draft-storage.test.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/draft-storage.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/mermaid-render.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/postLoginRedirect.test.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/postLoginRedirect.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/tree-utils.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/user-colors.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/xlsx-utils.test.ts +0 -0
- /package/{notes-app → notes/app}/src/lib/xlsx-utils.ts +0 -0
- /package/{notes-app → notes/app}/src/main.tsx +0 -0
- /package/{notes-app → notes/app}/src/pages/LoginPage.tsx +0 -0
- /package/{notes-app → notes/app}/src/pages/MainPage.insertChildEntry.test.ts +0 -0
- /package/{notes-app → notes/app}/src/pages/SettingsPage.tsx +0 -0
- /package/{notes-app → notes/app}/src/pages/UserManagementPage.tsx +0 -0
- /package/{notes-app → notes/app}/src/styles/globals.css +0 -0
- /package/{notes-app → notes/app}/src/types.ts +0 -0
- /package/{notes-app → notes/app}/src/vite-env.d.ts +0 -0
- /package/{notes-app → notes/app}/tsconfig.json +0 -0
- /package/{notes-app → notes/app}/tsconfig.node.json +0 -0
- /package/{notes-app → notes/app}/vite.config.js +0 -0
- /package/{notes-app → notes/app}/vite.config.ts +0 -0
- /package/{notes-app → notes/app}/vitest.config.ts +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# --- Workload Identity Federation (GitHub Actions OIDC) ---
|
|
2
|
-
resource "google_iam_workload_identity_pool" "github" {
|
|
3
|
-
workload_identity_pool_id = "github-pool"
|
|
4
|
-
display_name = "GitHub Pool"
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
resource "google_iam_workload_identity_pool_provider" "github" {
|
|
8
|
-
workload_identity_pool_id = google_iam_workload_identity_pool.github.workload_identity_pool_id
|
|
9
|
-
workload_identity_pool_provider_id = "github-provider"
|
|
10
|
-
display_name = "GitHub Provider"
|
|
11
|
-
|
|
12
|
-
attribute_mapping = {
|
|
13
|
-
"google.subject" = "assertion.sub"
|
|
14
|
-
"attribute.repository" = "assertion.repository"
|
|
15
|
-
"attribute.actor" = "assertion.actor"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
oidc {
|
|
19
|
-
issuer_uri = "https://token.actions.githubusercontent.com"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
attribute_condition = "assertion.repository == '{{githubOwner}}/{{githubRepo}}'"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
resource "google_service_account" "deploy" {
|
|
26
|
-
account_id = "godd-deploy"
|
|
27
|
-
display_name = "GoDD Deploy Service Account"
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
resource "google_service_account_iam_member" "workload_identity" {
|
|
31
|
-
service_account_id = google_service_account.deploy.name
|
|
32
|
-
role = "roles/iam.workloadIdentityUser"
|
|
33
|
-
member = "principalSet://iam.googleapis.com/${google_iam_workload_identity_pool.github.name}/attribute.repository/{{githubOwner}}/{{githubRepo}}"
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
resource "google_project_iam_member" "deploy_roles" {
|
|
37
|
-
for_each = toset([
|
|
38
|
-
"roles/run.admin",
|
|
39
|
-
"roles/artifactregistry.writer",
|
|
40
|
-
"roles/storage.admin",
|
|
41
|
-
"roles/iam.serviceAccountUser",
|
|
42
|
-
])
|
|
43
|
-
|
|
44
|
-
project = "{{projectId}}"
|
|
45
|
-
role = each.key
|
|
46
|
-
member = "serviceAccount:${google_service_account.deploy.email}"
|
|
47
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
locals {
|
|
2
|
-
project = "godd-notes"
|
|
3
|
-
env = "{{env}}"
|
|
4
|
-
project_id = "{{projectId}}"
|
|
5
|
-
region = "{{region}}"
|
|
6
|
-
|
|
7
|
-
github_owner = "{{githubOwner}}"
|
|
8
|
-
github_repo = "{{githubRepo}}"
|
|
9
|
-
|
|
10
|
-
labels = {
|
|
11
|
-
project = local.project
|
|
12
|
-
environment = local.env
|
|
13
|
-
managed-by = "terraform"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
# --- VPC ---
|
|
18
|
-
resource "google_compute_network" "main" {
|
|
19
|
-
name = "${local.project}-vpc"
|
|
20
|
-
auto_create_subnetworks = false
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
resource "google_compute_subnetwork" "main" {
|
|
24
|
-
name = "${local.project}-subnet"
|
|
25
|
-
ip_cidr_range = "{{vpcCidr}}"
|
|
26
|
-
region = local.region
|
|
27
|
-
network = google_compute_network.main.id
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
# --- Cloud SQL (PostgreSQL) ---
|
|
31
|
-
resource "google_sql_database_instance" "main" {
|
|
32
|
-
name = "${local.project}-db-${local.env}"
|
|
33
|
-
database_version = "POSTGRES_16"
|
|
34
|
-
region = local.region
|
|
35
|
-
|
|
36
|
-
settings {
|
|
37
|
-
tier = "{{dbTier}}"
|
|
38
|
-
availability_type = "ZONAL"
|
|
39
|
-
disk_size = 20
|
|
40
|
-
disk_type = "PD_SSD"
|
|
41
|
-
|
|
42
|
-
ip_configuration {
|
|
43
|
-
ipv4_enabled = true
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
backup_configuration {
|
|
47
|
-
enabled = true
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
deletion_protection = local.env != "dev"
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
resource "google_sql_database" "notes" {
|
|
55
|
-
name = "notes"
|
|
56
|
-
instance = google_sql_database_instance.main.name
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
resource "random_password" "db_password" {
|
|
60
|
-
length = 32
|
|
61
|
-
special = false
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
resource "google_sql_user" "app" {
|
|
65
|
-
name = "app_user"
|
|
66
|
-
instance = google_sql_database_instance.main.name
|
|
67
|
-
password = random_password.db_password.result
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
# --- Artifact Registry ---
|
|
71
|
-
resource "google_artifact_registry_repository" "notes_api" {
|
|
72
|
-
location = local.region
|
|
73
|
-
repository_id = "godd-notes-api"
|
|
74
|
-
format = "DOCKER"
|
|
75
|
-
labels = local.labels
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
# --- Cloud Run (notes-api) ---
|
|
79
|
-
resource "google_cloud_run_v2_service" "api" {
|
|
80
|
-
name = "${local.project}-api"
|
|
81
|
-
location = local.region
|
|
82
|
-
labels = local.labels
|
|
83
|
-
|
|
84
|
-
template {
|
|
85
|
-
containers {
|
|
86
|
-
image = "${local.region}-docker.pkg.dev/${local.project_id}/${google_artifact_registry_repository.notes_api.repository_id}/notes-api:latest"
|
|
87
|
-
|
|
88
|
-
ports {
|
|
89
|
-
container_port = 3100
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
resources {
|
|
93
|
-
limits = {
|
|
94
|
-
cpu = "{{cpuLimit}}"
|
|
95
|
-
memory = "{{memoryLimit}}"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
env {
|
|
100
|
-
name = "DB_NAME"
|
|
101
|
-
value = "notes"
|
|
102
|
-
}
|
|
103
|
-
env {
|
|
104
|
-
name = "API_HOST"
|
|
105
|
-
value = "0.0.0.0"
|
|
106
|
-
}
|
|
107
|
-
env {
|
|
108
|
-
name = "API_PORT"
|
|
109
|
-
value = "3100"
|
|
110
|
-
}
|
|
111
|
-
env {
|
|
112
|
-
name = "DATABASE_SSL"
|
|
113
|
-
value = "true"
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
scaling {
|
|
118
|
-
min_instance_count = 0
|
|
119
|
-
max_instance_count = 2
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
resource "google_cloud_run_service_iam_member" "public" {
|
|
125
|
-
location = google_cloud_run_v2_service.api.location
|
|
126
|
-
service = google_cloud_run_v2_service.api.name
|
|
127
|
-
role = "roles/run.invoker"
|
|
128
|
-
member = "allUsers"
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
# --- Cloud Storage (notes-app SPA) ---
|
|
132
|
-
resource "google_storage_bucket" "notes_app" {
|
|
133
|
-
name = "${local.project}-${local.project_id}"
|
|
134
|
-
location = local.region
|
|
135
|
-
force_destroy = local.env == "dev"
|
|
136
|
-
labels = local.labels
|
|
137
|
-
|
|
138
|
-
website {
|
|
139
|
-
main_page_suffix = "index.html"
|
|
140
|
-
not_found_page = "index.html"
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
uniform_bucket_level_access = true
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
resource "google_storage_bucket_iam_member" "public_read" {
|
|
147
|
-
bucket = google_storage_bucket.notes_app.name
|
|
148
|
-
role = "roles/storage.objectViewer"
|
|
149
|
-
member = "allUsers"
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
# --- Load Balancer (HTTPS → Cloud Run + GCS) ---
|
|
153
|
-
resource "google_compute_backend_bucket" "notes_app" {
|
|
154
|
-
name = "${local.project}-app-backend"
|
|
155
|
-
bucket_name = google_storage_bucket.notes_app.name
|
|
156
|
-
enable_cdn = true
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
resource "google_compute_region_network_endpoint_group" "api" {
|
|
160
|
-
name = "${local.project}-api-neg"
|
|
161
|
-
region = local.region
|
|
162
|
-
network_endpoint_type = "SERVERLESS"
|
|
163
|
-
|
|
164
|
-
cloud_run {
|
|
165
|
-
service = google_cloud_run_v2_service.api.name
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
resource "google_compute_backend_service" "api" {
|
|
170
|
-
name = "${local.project}-api-backend"
|
|
171
|
-
|
|
172
|
-
backend {
|
|
173
|
-
group = google_compute_region_network_endpoint_group.api.id
|
|
174
|
-
}
|
|
175
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
output "cloud_run_url" {
|
|
2
|
-
value = google_cloud_run_v2_service.api.uri
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
output "notes_app_url" {
|
|
6
|
-
value = "https://storage.googleapis.com/${google_storage_bucket.notes_app.name}/index.html"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
output "artifact_registry" {
|
|
10
|
-
value = "${google_artifact_registry_repository.notes_api.location}-docker.pkg.dev/{{projectId}}/${google_artifact_registry_repository.notes_api.repository_id}"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
output "cloud_sql_instance" {
|
|
14
|
-
value = google_sql_database_instance.main.connection_name
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
terraform {
|
|
2
|
-
required_version = ">= 1.5"
|
|
3
|
-
|
|
4
|
-
required_providers {
|
|
5
|
-
google = {
|
|
6
|
-
source = "hashicorp/google"
|
|
7
|
-
version = "~> 5.0"
|
|
8
|
-
}
|
|
9
|
-
random = {
|
|
10
|
-
source = "hashicorp/random"
|
|
11
|
-
version = "~> 3.0"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
provider "google" {
|
|
17
|
-
project = "{{projectId}}"
|
|
18
|
-
region = "{{region}}"
|
|
19
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
terraform {
|
|
2
|
-
required_version = ">= 1.5"
|
|
3
|
-
|
|
4
|
-
required_providers {
|
|
5
|
-
vercel = {
|
|
6
|
-
source = "vercel/vercel"
|
|
7
|
-
version = "~> 1.0"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
provider "vercel" {
|
|
13
|
-
api_token = var.vercel_api_token
|
|
14
|
-
team = var.vercel_team_id != "" ? var.vercel_team_id : null
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
variable "vercel_api_token" {
|
|
18
|
-
type = string
|
|
19
|
-
sensitive = true
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
variable "vercel_team_id" {
|
|
23
|
-
type = string
|
|
24
|
-
default = ""
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
variable "railway_token" {
|
|
28
|
-
type = string
|
|
29
|
-
sensitive = true
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
locals {
|
|
33
|
-
project = "godd-notes"
|
|
34
|
-
env = "{{env}}"
|
|
35
|
-
github_owner = "{{githubOwner}}"
|
|
36
|
-
github_repo = "{{githubRepo}}"
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
# --- Vercel Project (notes-app SPA) ---
|
|
40
|
-
resource "vercel_project" "notes_app" {
|
|
41
|
-
name = "${local.project}-app"
|
|
42
|
-
framework = "vite"
|
|
43
|
-
|
|
44
|
-
git_repository {
|
|
45
|
-
type = "github"
|
|
46
|
-
repo = "${local.github_owner}/${local.github_repo}"
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
root_directory = "notes-app"
|
|
50
|
-
build_command = "npm run build"
|
|
51
|
-
output_directory = "dist"
|
|
52
|
-
|
|
53
|
-
environment {
|
|
54
|
-
key = "VITE_API_URL"
|
|
55
|
-
value = "{{railwayApiUrl}}"
|
|
56
|
-
target = ["production", "preview"]
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
resource "vercel_deployment" "notes_app" {
|
|
61
|
-
project_id = vercel_project.notes_app.id
|
|
62
|
-
ref = "main"
|
|
63
|
-
production = local.env == "prod"
|
|
64
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|