@percepta/create 3.1.2 → 3.1.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 +3 -4
- package/dist/{chunk-CG7IJSB4.js → chunk-CO3YWUD6.js} +2 -2
- package/dist/{chunk-WMJT7CB5.js → chunk-V5EJIUBJ.js} +5 -2
- package/dist/index.js +21 -53
- package/dist/{init-XDWSYHYK.js → init-EQZ2TCSJ.js} +2 -2
- package/dist/{status-BTHGN6QH.js → status-QW5TQDYY.js} +1 -1
- package/dist/{sync-3Q27L7XZ.js → sync-RLBZDOFB.js} +1 -1
- package/dist/{upstream-C5KFAHVR.js → upstream-TQFVPMEG.js} +1 -1
- package/package.json +1 -1
- package/templates/monorepo/.dockerignore +18 -0
- package/templates/webapp/.github/workflows/__APP_NAME__-ryvn-release.yaml +6 -2
- package/templates/webapp/.github/workflows/__APP_NAME__-terraform-ryvn-release.yaml +98 -0
- package/templates/webapp/AGENTS.md +18 -6
- package/templates/webapp/Dockerfile +16 -7
- package/templates/webapp/README.md +65 -3
- package/templates/webapp/agent-skills/database.md +5 -1
- package/templates/webapp/agent-skills/deploy.md +49 -64
- package/templates/webapp/agent-skills/inngest.md +17 -12
- package/templates/webapp/agent-skills/langfuse.md +15 -14
- package/templates/webapp/agent-skills/llm.md +59 -0
- package/templates/webapp/agent-skills/oneshot.md +15 -2
- package/templates/webapp/agent-skills/ryvn.md +1 -1
- package/templates/webapp/deploy/README.md +34 -33
- package/templates/webapp/deploy/ryvn/__APP_NAME__-terraform.service.yaml +10 -0
- package/templates/webapp/deploy/ryvn/__APP_NAME__.service.yaml +2 -2
- package/templates/webapp/deploy/ryvn/environments/percepta-test/installations/__APP_NAME__-terraform.env.percepta-test.serviceinstallation.yaml +11 -0
- package/templates/webapp/deploy/ryvn/environments/percepta-test/installations/__APP_NAME__.env.percepta-test.serviceinstallation.yaml +45 -9
- package/templates/webapp/env.example.template +20 -2
- package/templates/webapp/eslint.config.mjs +6 -0
- package/templates/webapp/next.config.ts +9 -0
- package/templates/webapp/package.json.template +8 -4
- package/templates/webapp/scripts/deploy-percepta-test.ts +1112 -0
- package/templates/webapp/scripts/generate-migrations.ts +28 -0
- package/templates/webapp/scripts/migrate.ts +3 -0
- package/templates/webapp/scripts/open-ryvn-deploy-pr.ts +5 -3
- package/templates/webapp/scripts/with-local-env.ts +75 -0
- package/templates/webapp/src/config/getEnvConfig.ts +14 -0
- package/templates/webapp/src/drizzle/__tests__/migrationSql.test.ts +24 -0
- package/templates/webapp/src/drizzle/migrationSql.ts +8 -0
- package/templates/webapp/src/instrumentation.ts +102 -10
- package/templates/webapp/src/services/inngest/AppWorkflowService.ts +19 -0
- package/templates/webapp/src/services/inngest/__tests__/AppWorkflowService.test.ts +19 -0
- package/templates/webapp/src/services/inngest/events/AppEvents.ts +7 -13
- package/templates/webapp/src/services/inngest/events/payloads/ExampleEventPayload.ts +1 -3
- package/templates/webapp/src/services/llm/LLMService.ts +88 -0
- package/templates/webapp/src/services/llm/LlmProviderService.ts +85 -0
- package/templates/webapp/terraform/schema/main.tf +4 -0
- package/templates/webapp/terraform/schema/outputs.tf +9 -0
- package/templates/webapp/terraform/schema/variables.tf +19 -0
- package/templates/webapp/terraform/schema/versions.tf +38 -0
- package/templates/webapp/.github/workflows/__APP_NAME__-terraform.yml +0 -28
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
terraform {
|
|
2
|
+
required_version = ">= 1.5.0"
|
|
3
|
+
|
|
4
|
+
required_providers {
|
|
5
|
+
aws = {
|
|
6
|
+
source = "hashicorp/aws"
|
|
7
|
+
version = "~> 5.0"
|
|
8
|
+
}
|
|
9
|
+
postgresql = {
|
|
10
|
+
source = "cyrilgdn/postgresql"
|
|
11
|
+
version = "~> 1.22"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
backend "kubernetes" {}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
provider "aws" {
|
|
19
|
+
region = var.aws_region
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
data "aws_secretsmanager_secret_version" "database" {
|
|
23
|
+
secret_id = var.database_secret_name
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
locals {
|
|
27
|
+
database_credentials = jsondecode(data.aws_secretsmanager_secret_version.database.secret_string)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
provider "postgresql" {
|
|
31
|
+
host = local.database_credentials.host
|
|
32
|
+
port = tonumber(local.database_credentials.port)
|
|
33
|
+
username = local.database_credentials.username
|
|
34
|
+
password = local.database_credentials.password
|
|
35
|
+
sslmode = "require"
|
|
36
|
+
connect_timeout = 15
|
|
37
|
+
superuser = false
|
|
38
|
+
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
name: Terraform Validate (__APP_NAME__)
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
paths:
|
|
6
|
-
- "packages/__APP_NAME__/terraform/**"
|
|
7
|
-
- ".github/workflows/__APP_NAME__-terraform.yml"
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
terraform-validate:
|
|
11
|
-
name: Validate Terraform
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- name: Checkout repository
|
|
16
|
-
uses: actions/checkout@v4
|
|
17
|
-
|
|
18
|
-
- name: Setup Terraform
|
|
19
|
-
uses: hashicorp/setup-terraform@v3
|
|
20
|
-
|
|
21
|
-
- name: Terraform Init
|
|
22
|
-
run: terraform -chdir=packages/__APP_NAME__/terraform init -backend=false
|
|
23
|
-
|
|
24
|
-
- name: Terraform Format Check
|
|
25
|
-
run: terraform fmt -check -recursive packages/__APP_NAME__/terraform/
|
|
26
|
-
|
|
27
|
-
- name: Terraform Validate
|
|
28
|
-
run: terraform -chdir=packages/__APP_NAME__/terraform validate
|