Skip to content

Commit 330d811

Browse files
committed
update docs and env
1 parent 495cf0a commit 330d811

File tree

12 files changed

+424
-167
lines changed

12 files changed

+424
-167
lines changed

apps/api/AGENTS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
```bash
2+
# REPO="SOMEWHERE" ($HOME/repos/hyprnote inside Devin)
3+
infisical export \
4+
--env=dev \
5+
--secret-overriding=false \
6+
--format=dotenv-export \
7+
--output-file="$REPO/apps/api/.env" \
8+
--projectId=0dd35732-265e-41e1-86d5-abeda08e568d
9+
```

apps/api/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"zod-openapi": "^5.4.5"
2020
},
2121
"devDependencies": {
22+
"@dotenvx/dotenvx": "^1.51.1",
2223
"@types/bun": "^1.3.3",
2324
"typescript": "^5.9.3"
2425
}

apps/desktop/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"zustand": "^5.0.8"
113113
},
114114
"devDependencies": {
115+
"@dotenvx/dotenvx": "^1.51.1",
115116
"@faker-js/faker": "^10.1.0",
116117
"@tanstack/react-router-devtools": "^1.139.3",
117118
"@tanstack/router-plugin": "^1.139.3",

apps/restate/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
.wrangler/

apps/restate/AGENTS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
```bash
2+
# REPO="SOMEWHERE" ($HOME/repos/hyprnote inside Devin)
3+
infisical export \
4+
--env=dev \
5+
--secret-overriding=false \
6+
--format=dotenv-export \
7+
--output-file="$REPO/apps/restate/.env" \
8+
--projectId=f7a16b54-2e47-44a0-9eca-df4de6911f43
9+
```

apps/restate/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"build": "tsc --noEmitOnError",
7-
"dev": "dotenvx run -f ../../.env.supabase -f .env -- wrangler dev --port 9080",
7+
"dev": "wrangler dev --port 9080 --env-file ../../.env.supabase --env-file .env",
88
"start": "wrangler dev --port 9080",
99
"deploy": "wrangler deploy",
1010
"typecheck": "tsc --noEmit"
@@ -18,6 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@cloudflare/workers-types": "^4.20240605.0",
21+
"@dotenvx/dotenvx": "^1.51.1",
2122
"@restatedev/restate": "^1.5.0",
2223
"typescript": "^5.9.3",
2324
"wrangler": "^4.38.0"

apps/web/AGENTS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
```bash
2+
# REPO="SOMEWHERE" ($HOME/repos/hyprnote inside Devin)
3+
infisical export \
4+
--env=dev \
5+
--secret-overriding=false \
6+
--format=dotenv-export \
7+
--output-file="$REPO/apps/web/.env" \
8+
--projectId=87dad7b5-72a6-4791-9228-b3b86b169db1
9+
```
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "AGENTS.md"
3+
section: "Developers"
4+
description: "List of all AGENTS.md files in the repository"
5+
---
6+
7+
| Path | Link |
8+
|------|------|
9+
| `.github/AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/.github/AGENTS.md) |
10+
| `AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/AGENTS.md) |
11+
| `apps/api/AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/apps/api/AGENTS.md) |
12+
| `apps/desktop-e2e/AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/apps/desktop-e2e/AGENTS.md) |
13+
| `apps/restate/AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/apps/restate/AGENTS.md) |
14+
| `apps/web/AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/apps/web/AGENTS.md) |
15+
| `apps/web/content/changelog/AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/apps/web/content/changelog/AGENTS.md) |
16+
| `crates/notification-linux/AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/crates/notification-linux/AGENTS.md) |
17+
| `plugins/AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/plugins/AGENTS.md) |
18+
| `plugins/hooks/AGENTS.md` | [View](https://github.com/fastrepl/hyprnote/blob/main/plugins/hooks/AGENTS.md) |

apps/web/content/docs/developers/9.env.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ description: "Learn how to set environment variables for Hyprnote"
66

77
# General
88

9-
```bash
10-
dotenvx run -f .env.supabase -f .env -- <COMMAND>
11-
```
9+
- We use `dotenvx` to load environment variables.
10+
- Hyprnote team uses [infisical](https://infisical.com/docs/cli/commands/login) to manage them. (See `apps/web/AGENTS.md` for example.)
1211

1312
# Supabase
1413

@@ -31,7 +30,4 @@ S3_SECRET_KEY="850181e4652dd023b7a98c58ae0d2d34bd487ee0cc3254aed6eda37307425907"
3130
S3_REGION="local"
3231
```
3332

34-
# Infisical
35-
36-
- Hyprnote team members use [infisical](https://infisical.com/docs/cli/commands/login) to access variables like `OPENROUTER_API_KEY` and `DEEPGRAM_API_KEY`.
37-
- This is pre-configured in our [Devin](https://devin.ai) instance too.
33+
See `apps/web/package.json`, `apps/api/package.json`, and `apps/restate/package.json` to see how `.env.supabase` is used.

apps/web/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "vite build",
88
"serve": "vite preview",
99
"test": "playwright test",
10-
"typecheck": "pnpm -F @hypr/web build && tsc --project tsconfig.json --noEmit"
10+
"typecheck": "pnpm -F @hypr/web build && tsc --project tsconfig.json --noEmit",
11+
"gen:agents": "node scripts/gen-agents.js"
1112
},
1213
"dependencies": {
1314
"@deepgram/sdk": "^4.11.2",
@@ -64,6 +65,7 @@
6465
"@content-collections/core": "^0.11.1",
6566
"@content-collections/mdx": "^0.2.2",
6667
"@content-collections/vite": "^0.2.7",
68+
"@dotenvx/dotenvx": "^1.51.1",
6769
"@playwright/test": "^1.56.1",
6870
"@tailwindcss/typography": "^0.5.19",
6971
"@testing-library/dom": "^10.4.1",

0 commit comments

Comments
 (0)