Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
π§βπ» improve dx (#811)
Thibault Le Ouaya7d9ab0d4103
diff --git a/.gitignore b/.gitignoreindex 5cd62132b..bf1290b17 100644--- a/.gitignore+++ b/.gitignore@@ -58,3 +58,7 @@ openstatus-test.db-wal.idea.wrangler+apps/web/.env.dev+packages/db/.env.dev+openstatus-dev.db-wal+openstatus-dev.db-shmdiff --git a/apps/web/.env.example b/apps/web/.env.exampleindex d92529792..ac3e37c8f 100644--- a/apps/web/.env.example+++ b/apps/web/.env.example@@ -15,7 +15,7 @@ UPSTASH_REDIS_REST_TOKEN=testTINY_BIRD_API_KEY=tiny-bird-api-key# TURSO SQLITE-DATABASE_URL=http://127.0.0.1:8080+DATABASE_URL=file:./../../openstatus-dev.dbDATABASE_AUTH_TOKEN=any-token# JITSU - no need to touch on local development@@ -62,8 +62,8 @@ CLICKHOUSE_URL=CLICKHOUSE_USERNAME=CLICKHOUSE_PASSWORD=-AUTH_SECRET=-AUTH_DRIZZLE_URL=http://127.0.0.1:8080+AUTH_SECRET=secret+AUTH_DRIZZLE_URL=file:./../../openstatus-dev.dbAUTH_GITHUB_ID=AUTH_GITHUB_SECRET=AUTH_GOOGLE_ID=diff --git a/apps/web/env.ts b/apps/web/env.tsnew file mode 100644index 000000000..dbb28b166--- /dev/null+++ b/apps/web/env.ts@@ -0,0 +1,2 @@+const file = Bun.file("./.env.example");+await Bun.write("./.env", file);diff --git a/apps/web/src/lib/auth/index.ts b/apps/web/src/lib/auth/index.tsindex fe77899fa..712e6609f 100644--- a/apps/web/src/lib/auth/index.ts+++ b/apps/web/src/lib/auth/index.ts@@ -77,8 +77,10 @@ export const { handlers, signIn, signOut, auth } = NextAuth({const { id: userId, email } = params.user;- await analytics.identify(userId, { email, userId });- await trackAnalytics({ event: "User Created", userId, email });+ if (process.env.NODE_ENV !== "development") {+ await analytics.identify(userId, { email, userId });+ await trackAnalytics({ event: "User Created", userId, email });+ }},async signIn(params) {@@ -87,8 +89,10 @@ export const { handlers, signIn, signOut, auth } = NextAuth({const { id: userId, email } = params.user;- await analytics.identify(userId, { userId, email });- await trackAnalytics({ event: "User Signed In" });+ if (process.env.NODE_ENV !== "development") {+ await analytics.identify(userId, { userId, email });+ await trackAnalytics({ event: "User Signed In" });+ }},},pages: {diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.jsonindex 0d85a9d8b..8bbd69f49 100644--- a/apps/web/tsconfig.json+++ b/apps/web/tsconfig.json@@ -18,5 +18,5 @@"**/*.mjs",".contentlayer/generated"],- "exclude": ["node_modules"]+ "exclude": ["node_modules", "env.ts"]}diff --git a/openstatus-dev.db b/openstatus-dev.dbdeleted file mode 100644index bc2aa4a0e..000000000Binary files a/openstatus-dev.db and /dev/null differdiff --git a/package.json b/package.jsonindex f785f6184..e486597fd 100644--- a/package.json+++ b/package.json@@ -3,6 +3,8 @@"scripts": {"build": "turbo run build","dev": "turbo run dev",+ "dev:web": "turbo run dev --filter='./apps/web' --filter='./packages/db'",+ "dx": "turbo run dx","lint": "turbo run lint","lint:strict": "eslint --max-warnings=0 apps/**/*.{ts,tsx}","format": "prettier --write \"**/*.{ts,tsx,md}\"",@@ -13,14 +15,14 @@"devDependencies": {"@ianvs/prettier-plugin-sort-imports": "4.2.1","@openstatus/eslint-config": "workspace:*",- "@turbo/gen": "1.10.12",+ "@turbo/gen": "1.13.3","eslint": "8.50.0","prettier": "3.2.5","prettier-plugin-tailwindcss": "0.5.14",- "turbo": "1.10.12",+ "turbo": "1.13.3","typescript": "5.4.5"},- "packageManager": "[email protected]",+ "packageManager": "[email protected]","name": "openstatus","workspaces": ["apps/*",diff --git a/packages/api/src/router/workspace.test.ts b/packages/api/src/router/workspace.test.tsindex 1ff76961f..48b8dba22 100644--- a/packages/api/src/router/workspace.test.ts+++ b/packages/api/src/router/workspace.test.ts@@ -80,10 +80,10 @@ test("All workspaces", async () => {expect(result).toMatchObject([{createdAt: expect.any(Date),- email: "[email protected]",- firstName: "test",+ email: "[email protected]",+ firstName: "Speed",id: 1,- lastName: "user",+ lastName: "Matters",photoUrl: "",tenantId: "1",updatedAt: expect.any(Date),diff --git a/packages/db/.env.example b/packages/db/.env.exampleindex 0e045f7e3..dbbe1b605 100644--- a/packages/db/.env.example+++ b/packages/db/.env.example@@ -1,7 +1,6 @@-DATABASE_URL=http://127.0.0.1:8080+DATABASE_URL=file:./../../openstatus-dev.dbDATABASE_AUTH_TOKEN=any-token-CLICKHOUSE_URL=http://localhost:8123CLICKHOUSE_USERNAME=default-CLICKHOUSE_PASSWORD=\ No newline at end of file+CLICKHOUSE_PASSWORD=diff --git a/packages/db/drizzle.config.ts b/packages/db/drizzle.config.tsindex a209d1409..4d9e4f4bf 100644--- a/packages/db/drizzle.config.ts+++ b/packages/db/drizzle.config.ts@@ -13,4 +13,5 @@ export default {},driver: "turso",strict: true,+ dialect: "sqlite",} satisfies Config;diff --git a/packages/db/env.ts b/packages/db/env.tsnew file mode 100644index 000000000..dbb28b166--- /dev/null+++ b/packages/db/env.ts@@ -0,0 +1,2 @@+const file = Bun.file("./.env.example");+await Bun.write("./.env", file);diff --git a/packages/db/package.json b/packages/db/package.jsonindex fe8f59b42..d61640e7f 100644--- a/packages/db/package.json+++ b/packages/db/package.json@@ -8,15 +8,16 @@"push": "drizzle-kit push:sqlite","migrate": "bun src/migrate.mts","studio": "drizzle-kit studio",+ "env": "bun env.ts","seed": "bun src/seed.mts",- "dev": "turso dev --db-file openstatus.db"+ "dev": "turso dev --db-file ../../openstatus-dev.db"},"dependencies": {"@clickhouse/client-web": "1.0.1","@libsql/client": "0.6.0","@t3-oss/env-core": "0.7.0","dotenv": "16.3.1",- "drizzle-orm": "0.30.9",+ "drizzle-orm": "0.30.10","drizzle-zod": "0.5.1","zod": "3.22.4"},@@ -24,9 +25,9 @@"@openstatus/assertions": "workspace:*","@openstatus/tsconfig": "workspace:*","@types/node": "20.8.0",- "better-sqlite3": "9.4.1",+ "better-sqlite3": "10.0.0","bufferutil": "4.0.7",- "drizzle-kit": "0.20.17",+ "drizzle-kit": "0.21.1","encoding": "0.1.13","next-auth": "5.0.0-beta.17","typescript": "5.4.5",diff --git a/packages/db/src/seed.mts b/packages/db/src/seed.mtsindex c31fb3d8a..f906028c2 100644--- a/packages/db/src/seed.mts+++ b/packages/db/src/seed.mts@@ -49,6 +49,7 @@ async function main() {},]).run();+await db.insert(monitor).values([@@ -110,9 +111,9 @@ async function main() {.values({id: 1,tenantId: "1",- firstName: "test",- lastName: "user",- email: "[email protected]",+ firstName: "Speed",+ lastName: "Matters",+ email: "[email protected]",photoUrl: "",}).run();diff --git a/packages/tinybird/src/os-client.ts b/packages/tinybird/src/os-client.tsindex 3e7fd87ea..05cb9ad40 100644--- a/packages/tinybird/src/os-client.ts+++ b/packages/tinybird/src/os-client.ts@@ -1,4 +1,4 @@-import { Tinybird } from "@chronark/zod-bird";+import { NoopTinybird, Tinybird } from "@chronark/zod-bird";import { z } from "zod";import { flyRegions } from "@openstatus/utils";@@ -40,7 +40,11 @@ export class OSTinybird {// FIXME: use Tinybird instead with super(args) maybe// how about passing here the `opts: {revalidate}` to access it within the functions?constructor(private args: { token: string; baseUrl?: string | undefined }) {- this.tb = new Tinybird(args);+ if (process.env.NODE_ENV === "development") {+ this.tb = new NoopTinybird();+ } else {+ this.tb = new Tinybird(args);+ }}endpointChart(period: "1h" | "1d" | "3d" | "7d" | "14d") {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex cd0dc16f5..3680dc3c2 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -15,8 +15,8 @@ importers:specifier: workspace:*version: link:packages/config/eslint'@turbo/gen':- specifier: 1.10.12- version: 1.10.12(@types/[email protected])([email protected])+ specifier: 1.13.3+ version: 1.13.3(@types/[email protected])([email protected])eslint:specifier: 8.50.0version: 8.50.0@@ -27,8 +27,8 @@ importers:specifier: 0.5.14turbo:- specifier: 1.10.12- version: 1.10.12+ specifier: 1.13.3+ version: 1.13.3typescript:specifier: 5.4.5version: 5.4.5@@ -88,7 +88,7 @@ importers:version: 0.7.1([email protected])([email protected])drizzle-orm:specifier: 0.30.7- version: 0.30.7(@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])+ version: 0.30.7(@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])hono:specifier: 4.2.2version: 4.2.2@@ -119,7 +119,7 @@ importers:version: link:../../packages/dbdrizzle-orm:specifier: 0.30.7- version: 0.30.7(@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])+ version: 0.30.7(@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])hono:specifier: 4.2.2version: 4.2.2@@ -649,11 +649,11 @@ importers:specifier: 16.3.1version: 16.3.1drizzle-orm:- specifier: 0.30.9- version: 0.30.9(@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])+ specifier: 0.30.10+ version: 0.30.10(@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])drizzle-zod:specifier: 0.5.1- version: 0.5.1([email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 0.5.1([email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])zod:specifier: 3.22.4version: 3.22.4@@ -668,14 +668,14 @@ importers:specifier: 20.8.0version: 20.8.0better-sqlite3:- specifier: 9.4.1- version: 9.4.1+ specifier: 10.0.0+ version: 10.0.0bufferutil:specifier: 4.0.7version: 4.0.7drizzle-kit:- specifier: 0.20.17- version: 0.20.17+ specifier: 0.21.1+ version: 0.21.1encoding:specifier: 0.1.13version: 0.1.13@@ -2316,10 +2316,6 @@ packages:peerDependencies:tailwindcss: ^3.0- '@hono/[email protected]':- resolution: {integrity: sha512-GW1Iomhmm1o4Z+X57xGby8A35Cu9UZLL7pSMdqDBkD99U5cywff8F+8hLk5aBTzNubnsFAvWQ/fZjNwPsEn9lA==}- engines: {node: '>=18.14.1'}-'@hono/[email protected]':resolution: {integrity: sha512-GbPxgpGuasM2zRCSaA77MPWu4KDcuk/EMf7JJykjCvnOTbjmtr7FovNxsvg7xlXCIjZDgLmqBaoJMi3AxbeIAA==}peerDependencies:@@ -3958,8 +3954,12 @@ packages:'@tsconfig/[email protected]':resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==}- '@turbo/[email protected]':- resolution: {integrity: sha512-noop5+3MBFsgPQ7O2vQpS6YYiah+ZrOioa4cDDpZceUVsKVXvUHFmC2nEVyKSJZhO/8SLvbDE/esB/MGw5b2tw==}+ '@turbo/[email protected]':+ resolution: {integrity: sha512-l+EM1gGzckFMaaVQyj3BVRa0QJ+tpp8HfiHOhGpBWW3Vc0Hfj92AY87Di/7HGABa+HVY7ueatMi7DJG+zkJBYg==}+ hasBin: true++ '@turbo/[email protected]':+ resolution: {integrity: sha512-QYZ8g3IVQebqNM8IsBlWYOWmOKjBZY55e6lx4EDOLuch1iWmyk+U8CLAI9UomMrSaKTs1Sx+PDkt63EgakvhUw==}hasBin: true'@types/[email protected]':@@ -4109,6 +4109,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-7XsfXIsjdfJM2wFDRAtEWp3zb2aVPk5QeyZxGlVK57q4u26DczMHhJmlhr0Jqv0THwxam/L8REXkj8M2I/lcvw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-iEN8J0BoMnsWBqjVbWH/c0G0Hh7O21lpR2/+PrvAVgWdzL7eexIFm4JN/Wn10PTcmNdtS6U67r499mlWMXOxNw==}+'@types/[email protected]':resolution: {integrity: sha512-95Sfz4nvMAb0Nl9DTxN3j64adfwfbBPEYq14VN7zT5J5O2M9V6iZMIIQU1U+pJyl9agHYHNCqhCXgyEtIRRa5A==}@@ -4433,8 +4436,8 @@ packages:resolution: {integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==}- resolution: {integrity: sha512-QpqiQeMI4WkE+dQ68zTMX5OzlPGc7lXIDP1iKUt4Omt9PdaVgzKYxHIJRIzt1E+RUBQoFmkip/IbvzyrxehAIg==}+ resolution: {integrity: sha512-rOz0JY8bt9oMgrFssP7GnvA5R3yln73y/NizzWqy3WlFth8Ux8+g4r/N9fjX97nn4X1YX6MTER2doNpTu5pqiA==}resolution: {integrity: sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==}@@ -4538,10 +4541,6 @@ packages:resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}engines: {node: '>=6'}- resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==}- engines: {node: '>=14.16'}-resolution: {integrity: sha512-lFgnZ07UhaCcsSZgWW0K5j4e69dK1u/ltrL9lTUiFOwNHs12S3UMIEYgBV0Z6C6hRDev7iRnMzzYmKabYdXF9g==}@@ -4567,10 +4566,6 @@ packages:resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}engines: {node: '>=10'}- resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}- engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}-resolution: {integrity: sha512-2AZp7uJZbYEzRPsFoa+ijKdvp9zsrnnt6+yFokfwEpeJm0xuJDVoxiRCAaTzyJND8GJkofo2IcKWaUZ/OECVzw==}@@ -5030,12 +5025,12 @@ packages:resolution: {integrity: sha512-vyJTp8+mC+G+5dfgsY+r3ckxlz+QMX40VjPQsZc5gxVAxLmi64TBoVkP54A/pRAXMXsbu2GMMBrZPxNv23waMg==}engines: {node: '>=0.4.0'}- resolution: {integrity: sha512-mLVDS4nXmO09wFVlzGrdshWnAL+U9eQGC5zRs6hTN6Q9arwQGWU2XnZ17I8BM8Quau8CQRx3Ms6VPgRWJFVp7Q==}+ resolution: {integrity: sha512-Sp7OnCdROiE2ebMuHsAfrnRoHVGYCvErQxUh7/0l6R1caHssZu9oZu/hW9rLU19xnTK4/y3iSe3sL0Cc530wCg==}hasBin: true- resolution: {integrity: sha512-9qefSZQlu2fO2qv24piHyWFWcxcOY15//0v4j8qomMqaxzipNoG+fUBrQ7Ftk7PY7APRbRdn/nkEXWxiI4a8mw==}+ resolution: {integrity: sha512-IRy/QmMWw9lAQHpwbUh1b8fcn27S/a9zMIzqea1WNOxK9/4EB8gIo+FZWLiPXzl2n9ixGSv8BhsLZiOppWEwBw==}peerDependencies:'@aws-sdk/client-rds-data': '>=3''@cloudflare/workers-types': '>=3'@@ -5114,8 +5109,8 @@ packages:sqlite3:optional: true- resolution: {integrity: sha512-VOiCFsexErmgqvNCOmbzmqDCZzZsHoz6SkWAjTFxsTr1AllKDbDJ2+GgedLXsXMDgpg/ljDG1zItIFeZtiO2LA==}+ resolution: {integrity: sha512-9qefSZQlu2fO2qv24piHyWFWcxcOY15//0v4j8qomMqaxzipNoG+fUBrQ7Ftk7PY7APRbRdn/nkEXWxiI4a8mw==}peerDependencies:'@aws-sdk/client-rds-data': '>=3''@cloudflare/workers-types': '>=3'@@ -5767,6 +5762,10 @@ packages:resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}+ resolution: {integrity: sha512-rEDCuqUQ4tbD78TpzsMtt5OIf0cBCSDWSJtUDaF6JsAh+k0v9r++NzxNEG87oDZx9ZwGhD8DaezR2L/yrw0Jdw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==}@@ -6464,6 +6463,10 @@ packages:resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}+ resolution: {integrity: sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}engines: {node: '>=10'}@@ -6784,10 +6787,6 @@ packages:resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==}engines: {node: '>=10'}- resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==}- engines: {node: '>=10'}-resolution: {integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==}engines: {node: '>=16 || 14 >=14.17'}@@ -7053,6 +7052,10 @@ packages:resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==}engines: {node: '>= 0.8.0'}+ resolution: {integrity: sha512-sjYP8QyVWBpBZWD6Vr1M/KwknSw6kJOz41tvGMlwWeClHBtYKTbHMki1PsLZnxKpXMPbTKv9b3pjQu3REib96A==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==}engines: {node: '>=10'}@@ -8063,10 +8066,6 @@ packages:resolution: {integrity: sha512-mJiVjfd2vokfDxsQPOwJ/PtanO87LhpYY88ubI5dUB1Ab58Txbyje3+jpm+/83R/fevaq/107NNhtYBLuoTrFg==}engines: {node: '>=10'}- resolution: {integrity: sha512-8iGv75BYOa0xRJHK5vRLEjE2H/i4lulTjzpUXic3Eg8akftYjkmQDa8JARQ42rlczXyFR3IeRoeFCc7RxHsYZA==}- engines: {node: '>=16'}-resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==}engines: {node: '>=0.8.0'}@@ -8157,6 +8156,12 @@ packages:resolution: {integrity: sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==}+ resolution: {integrity: sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==}++ resolution: {integrity: sha512-8nIfc2vgQ4TeLnk2lFj4tRLvvJwEfQuabdsmvDdQPT0xlk9TaNtpGd6nNRxXoK6vQhN6RSzj+Cnp5tTQmpxmbw==}+resolution: {integrity: sha512-EkJoZ2O3zdCz3zJsYCsxyq2OC5hrxR9mfdd5I+w8h/tmFfeOxJ+vvkxsKxdmN0WtS9zLdHEgfgVOiMVgv+Po4Q==}@@ -8274,38 +8279,38 @@ packages:resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==}- resolution: {integrity: sha512-vmDfGVPl5/aFenAbOj3eOx3ePNcWVUyZwYr7taRl0ZBbmv2TzjRiFotO4vrKCiTVnbqjQqAFQWY2ugbqCI1kOQ==}+ resolution: {integrity: sha512-glup8Qx1qEFB5jerAnXbS8WrL92OKyMmg5Hnd4PleLljAeYmx+cmmnsmLT7tpaVZIN58EAAwu8wHC6kIIqhbWA==}cpu: [x64]os: [darwin]- resolution: {integrity: sha512-3JliEESLNX2s7g54SOBqqkqJ7UhcOGkS0ywMr5SNuvF6kWVTbuUq7uBU/sVbGq8RwvK1ONlhPvJne5MUqBCTCQ==}+ resolution: {integrity: sha512-/np2xD+f/+9qY8BVtuOQXRq5f9LehCFxamiQnwdqWm5iZmdjygC5T3uVSYuagVFsZKMvX3ycySwh8dylGTl6lg==}cpu: [arm64]os: [darwin]- resolution: {integrity: sha512-siYhgeX0DidIfHSgCR95b8xPee9enKSOjCzx7EjTLmPqPaCiVebRYvbOIYdQWRqiaKh9yfhUtFmtMOMScUf1gg==}+ resolution: {integrity: sha512-G+HGrau54iAnbXLfl+N/PynqpDwi/uDzb6iM9hXEDG+yJnSJxaHMShhOkXYJPk9offm9prH33Khx2scXrYVW1g==}cpu: [x64]os: [linux]- resolution: {integrity: sha512-K/ZhvD9l4SslclaMkTiIrnfcACgos79YcAo4kwc8bnMQaKuUeRpM15sxLpZp3xDjDg8EY93vsKyjaOhdFG2UbA==}+ resolution: {integrity: sha512-qWwEl5VR02NqRyl68/3pwp3c/olZuSp+vwlwrunuoNTm6JXGLG5pTeme4zoHNnk0qn4cCX7DFrOboArlYxv0wQ==}cpu: [arm64]os: [linux]- resolution: {integrity: sha512-7FSgSwvktWDNOqV65l9AbZwcoueAILeE4L7JvjauNASAjjbuzXGCEq5uN8AQU3U5BOFj4TdXrVmO2dX+lLu8Zg==}+ resolution: {integrity: sha512-Nudr4bRChfJzBPzEmpVV85VwUYRCGKecwkBFpbp2a4NtrJ3+UP1VZES653ckqCu2FRyRuS0n03v9euMbAvzH+Q==}cpu: [x64]os: [win32]- resolution: {integrity: sha512-gCNXF52dwom1HLY9ry/cneBPOKTBHhzpqhMylcyvJP0vp9zeMQQkt6yjYv+6QdnmELC92CtKNp2FsNZo+z0pyw==}+ resolution: {integrity: sha512-ouJCgsVLd3icjRLmRvHQDDZnmGzT64GBupM1Y+TjtYn2LVaEBoV6hicFy8x5DUpnqdLy+YpCzRMkWlwhmkX7sQ==}cpu: [arm64]os: [win32]- resolution: {integrity: sha512-WM3+jTfQWnB9W208pmP4oeehZcC6JQNlydb/ZHMRrhmQa+htGhWLCzd6Q9rLe0MwZLPpSPFV2/bN5egCLyoKjQ==}+ resolution: {integrity: sha512-n17HJv4F4CpsYTvKzUJhLbyewbXjq1oLCi90i5tW1TiWDz16ML1eDG7wi5dHaKxzh5efIM56SITnuVbMq5dk4g==}hasBin: true@@ -10131,8 +10136,6 @@ snapshots:dependencies:- '@hono/[email protected]': {}-'@hono/[email protected]([email protected])':dependencies:hono: 4.0.0@@ -12147,8 +12150,9 @@ snapshots:'@tsconfig/[email protected]': {}dependencies:+ '@turbo/workspaces': 1.13.3chalk: 2.4.2commander: 10.0.1fs-extra: 10.1.0@@ -12156,7 +12160,6 @@ snapshots:minimatch: 9.0.1node-plop: 0.26.3proxy-agent: 6.3.1- semver: 7.5.4ts-node: 10.9.1(@types/[email protected])([email protected])update-check: 1.5.4validate-npm-package-name: 5.0.0@@ -12167,6 +12170,21 @@ snapshots:- supports-color- typescript+ '@turbo/[email protected]':+ dependencies:+ chalk: 2.4.2+ commander: 10.0.1+ execa: 5.1.1+ fast-glob: 3.3.1+ fs-extra: 10.1.0+ gradient-string: 2.0.2+ inquirer: 8.2.6+ js-yaml: 4.1.0+ ora: 4.1.1+ rimraf: 3.0.2+ semver: 7.5.4+ update-check: 1.5.4+'@types/[email protected]':dependencies:'@types/estree': 1.0.3@@ -12315,6 +12333,8 @@ snapshots:dependencies:'@types/node': 20.8.0+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]': {}@@ -12685,7 +12705,7 @@ snapshots:dependencies:bindings: 1.5.0prebuild-install: 7.1.1@@ -12792,8 +12812,6 @@ snapshots:- [email protected]: {}-@@ -12829,8 +12847,6 @@ snapshots:ansi-styles: 4.3.0supports-color: 7.2.0- [email protected]: {}-dependencies:camel-case: 3.0.0@@ -13268,61 +13284,53 @@ snapshots:dependencies:wordwrap: 1.0.0dependencies:'@esbuild-kit/esm-loader': 2.6.5- '@hono/node-server': 1.11.1- '@hono/zod-validator': 0.2.1([email protected])([email protected])- camelcase: 7.0.1- chalk: 5.3.0commander: 9.5.0env-paths: 3.0.0esbuild: 0.19.12esbuild-register: 3.5.0([email protected])glob: 8.1.0hanji: 0.0.5- hono: 4.2.2json-diff: 0.9.0- minimatch: 7.4.6- semver: 7.5.4- superjson: 2.2.1zod: 3.22.4transitivePeerDependencies:- supports-color- [email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):+ [email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):optionalDependencies:- '@cloudflare/workers-types': 4.20240403.0+ '@cloudflare/workers-types': 4.20240405.0'@libsql/client': 0.6.0([email protected])([email protected])'@opentelemetry/api': 1.4.1'@types/react': 18.2.64- better-sqlite3: 9.4.1+ better-sqlite3: 10.0.0bun-types: 1.0.11react: 18.2.0- [email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):+ [email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):optionalDependencies:- '@cloudflare/workers-types': 4.20240405.0+ '@cloudflare/workers-types': 4.20240403.0'@libsql/client': 0.6.0([email protected])([email protected])'@opentelemetry/api': 1.4.1'@types/react': 18.2.64- better-sqlite3: 9.4.1+ better-sqlite3: 10.0.0bun-types: 1.0.11react: 18.2.0- [email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):+ [email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):optionalDependencies:'@cloudflare/workers-types': 4.20240405.0'@libsql/client': 0.6.0([email protected])([email protected])'@opentelemetry/api': 1.4.1'@types/react': 18.2.64- better-sqlite3: 9.4.1+ better-sqlite3: 10.0.0bun-types: 1.0.11react: 18.2.0- [email protected]([email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]):+ [email protected]([email protected](@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]):dependencies:- drizzle-orm: 0.30.9(@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])+ drizzle-orm: 0.30.10(@cloudflare/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])zod: 3.22.4@@ -14204,6 +14212,11 @@ snapshots:+ dependencies:+ chalk: 4.1.2+ tinygradient: 1.1.5+@@ -15027,6 +15040,10 @@ snapshots:+ dependencies:+ chalk: 2.4.2+dependencies:chalk: 4.1.2@@ -15644,10 +15661,6 @@ snapshots:dependencies:brace-expansion: 2.0.1- dependencies:- brace-expansion: 2.0.1-dependencies:brace-expansion: 2.0.1@@ -15902,6 +15915,17 @@ snapshots:prelude-ls: 1.2.1type-check: 0.4.0+ dependencies:+ chalk: 3.0.0+ cli-cursor: 3.1.0+ cli-spinners: 2.9.1+ is-interactive: 1.0.0+ log-symbols: 3.0.0+ mute-stream: 0.0.8+ strip-ansi: 6.0.1+ wcwidth: 1.0.1+dependencies:bl: 4.1.0@@ -17010,10 +17034,6 @@ snapshots:dependencies:copy-anything: 3.0.5- dependencies:- copy-anything: 3.0.5-@@ -17166,6 +17186,13 @@ snapshots:+ [email protected]: {}++ dependencies:+ '@types/tinycolor2': 1.4.6+ tinycolor2: 1.6.0+dependencies:no-case: 2.3.2@@ -17300,32 +17327,32 @@ snapshots:dependencies:safe-buffer: 5.2.1optional: trueoptional: trueoptional: trueoptional: trueoptional: trueoptional: trueoptionalDependencies:- turbo-darwin-64: 1.10.12- turbo-darwin-arm64: 1.10.12- turbo-linux-64: 1.10.12- turbo-linux-arm64: 1.10.12- turbo-windows-64: 1.10.12- turbo-windows-arm64: 1.10.12+ turbo-darwin-64: 1.13.3+ turbo-darwin-arm64: 1.13.3+ turbo-linux-64: 1.13.3+ turbo-linux-arm64: 1.13.3+ turbo-windows-64: 1.13.3+ turbo-windows-arm64: 1.13.3dependencies:diff --git a/turbo.json b/turbo.jsonindex 799777d78..60d737001 100644--- a/turbo.json+++ b/turbo.json@@ -21,6 +21,19 @@},"test": {"cache": false- }+ },+ "dx": {+ "cache": false,+ "dependsOn": ["seed"]+ },+ "seed": {+ "cache": false,+ "dependsOn": ["migrate"]+ },+ "migrate": {+ "cache": false,+ "dependsOn": ["env"]+ },+ "env": {}}}