@yottagraph-app/aether-instructions 1.1.41 → 1.1.42

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/AGENTS.md CHANGED
@@ -1,107 +1,52 @@
1
- # AGENTS.md
1
+ # Aether
2
2
 
3
- Broadchurch tenant application built on Aether (Nuxt 3 + Vuetify).
3
+ **Stack:** Nuxt 3 (SPA), Vue 3 Composition API (`<script setup>`), Vuetify 3, TypeScript (required), Auth0.
4
4
 
5
- ## Cursor Cloud specific instructions
5
+ **Structure:** `pages/` (file-based routing), `components/`, `composables/`, `server/api/`, `agents/` (Python ADK), `mcp-servers/` (Python FastMCP).
6
6
 
7
- If you are in Cursor Cloud, the `environment.json` install step runs
8
- `init-project.js` and `npm install` automatically, and starts a dev server
9
- on port 3000.
7
+ **Data:** This app runs on the Lovelace platform -- entities, news, filings, sentiment, relationships, events. See the `data` rule for access patterns and gotchas. Skill docs: `skills/data-model/` (entity types, properties, relationships; `SKILL.md` first), `skills/elemental-mcp-patterns/` (MCP response shapes, property type handling, Python patterns for agent tools). Do NOT call external APIs for data the platform provides.
10
8
 
11
- **Verify before starting:** check that `.env` exists and `node_modules/` is
12
- present. If either is missing, run: `node init-project.js && npm install`
9
+ **Storage:** KV (Upstash Redis) for preferences and lightweight state via `Pref<T>` from `usePrefsStore()`. Neon Postgres for relational data if connected (see the `storage` rule).
13
10
 
14
- **Do NOT** manually run `nvm install` or `nvm use` Node version is managed
15
- by the environment.
11
+ **Source of truth:** `DESIGN.md` -- read before starting work, update when changing features. The starter UI is placeholder -- replace freely. Feature docs in `design/` for implementation planning.
16
12
 
17
- ### Initial environment setup only
13
+ **Git:** Commit meaningful units of work. Run `npm run format` before commit. Message format: `[Agent commit] {summary}`. Push directly to main — do NOT create PRs or feature branches.
18
14
 
19
- This subsection applies ONLY when first asked to "set up the development
20
- environment" or "demonstrate that the environment is working." It does
21
- **NOT** apply to ongoing development — once the app is built, use the
22
- browser normally to test and verify UI changes.
15
+ **First action for a new project:** Run `/build_my_app`.
23
16
 
24
- **During initial setup**, skip browser/UI testing. The starter UI is a
25
- placeholder template that will be replaced by `/build_my_app`. Do not
26
- launch a browser, record videos, or take screenshots at this stage.
27
- Verifying `npm run build` passes is sufficient.
17
+ ## Task-specific rules
28
18
 
29
- 1. Check the "Dev Server" terminal output for a line containing
30
- `Listening on` or `Local: http://localhost:3000`. If present, the
31
- environment is working.
32
- 2. If the dev server is NOT running, start it with `npm run dev` and wait
33
- for the "Listening on" line.
34
- 3. Run `npm run build` to verify the project compiles.
35
- 4. Once confirmed, tell the user the environment is ready, then
36
- immediately run the `/build_my_app` command.
19
+ Conditional rules, loaded based on what you're doing:
37
20
 
38
- ### MCP tools
21
+ - `architecture` — project structure, navigation, server routes, agents, MCP
22
+ - `data` — Elemental API / data access patterns and gotchas
23
+ - `cookbook` — copy-paste UI patterns
24
+ - `cookbook-data` — data-fetching recipes
25
+ - `design` — DESIGN.md workflow, feature docs
26
+ - `ui` — page templates, layout patterns
27
+ - `pref` — KV preferences
28
+ - `branding` — colors, fonts
29
+ - `server` — Nitro routes, Neon Postgres usage
30
+ - `server-data` — server-side Elemental API from routes
31
+ - `storage` — KV vs Neon availability and selection
32
+ - `agents` — ADK agents
33
+ - `agents-data` — agents calling Elemental API
34
+ - `mcp-servers` — FastMCP server development
35
+ - `deployment` — app, agent, and MCP server deployment
36
+ - `env` — `.env` variable reference
37
+ - `local-setup` — manual local dev setup
38
+ - `cursor-cloud` — Cursor Cloud environment quirks
39
+ - `git-support` — commit workflow and pre-commit troubleshooting
40
+ - `something-broke` — error recovery, build failures
39
41
 
40
- Lovelace MCP servers (`lovelace-elemental`, `lovelace-stocks`, etc.)
41
- should be available if configured at the org level. Check your tool list
42
- for `elemental_*` tools. If they're not available, use the Elemental API
43
- client (`useElementalClient()`) and the skill docs in
44
- `.cursor/skills/elemental-api/` and `.cursor/skills/data-model/` for platform data access instead.
42
+ ## Environment
45
43
 
46
- ### Technical details
44
+ Detect your runtime once at startup, then read the matching rule:
47
45
 
48
- Node 20 is the baseline (`.nvmrc`). The `environment.json` install step
49
- handles this via `nvm install 20 && nvm alias default 20`. Newer Node
50
- versions (22, 25) generally work but may produce `EBADENGINE` warnings
51
- during install — safe to ignore.
46
+ - **Cursor Cloud** if `$HOME` starts with `/root` or `/home/ubuntu`, OR `uname -s` reports `Linux` in a container-shaped path, OR a "Dev Server" terminal was auto-started from `.cursor/environment.json`. → Read the `cursor-cloud` rule.
47
+ - **Local dev** if `$HOME` is under `/Users/…` (macOS) or a normal Linux/Windows user home, and no "Dev Server" terminal is auto-running. → If `.env` and `node_modules/` are present, you're set up; otherwise read the `local-setup` rule.
52
48
 
53
- The install step runs `node init-project.js --local` (creates `.env` if
54
- absent) then `npm install` (triggers `postinstall` → `nuxt prepare`).
55
- Auth0 is bypassed via `NUXT_PUBLIC_USER_NAME=dev-user`
56
- in the generated `.env`.
57
-
58
- **No automated test suite.** Verification is `npm run build` (compile
59
- check) and `npm run format:check` (Prettier). See Verification Commands.
60
-
61
- **Before committing:** always run `npm run format` — the husky pre-commit
62
- hook runs `lint-staged` with `prettier --check` and will reject
63
- unformatted files.
64
-
65
- ## Manual / Local Setup
66
-
67
- Node 20 is the baseline (pinned in `.nvmrc`). Newer versions generally work.
68
-
69
- ```bash
70
- npm run init -- --local # creates .env with dev defaults (no Auth0)
71
- npm install # all deps are public on npmjs.com -- no tokens needed
72
- npm run dev # dev server on port 3000
73
- ```
74
-
75
- For the full interactive wizard (project name, Auth0, query server, etc.):
76
-
77
- ```bash
78
- npm run init # interactive, or --non-interactive for CI (see --help)
79
- ```
80
-
81
- ## .env Essentials
82
-
83
- | Variable | Purpose | Default |
84
- | ---------------------------------- | -------------------------------- | --------------------------------------- |
85
- | `NUXT_PUBLIC_APP_ID` | Unique app identifier | derived from directory name |
86
- | `NUXT_PUBLIC_APP_NAME` | Display name | derived from directory name |
87
- | `NUXT_PUBLIC_USER_NAME` | Set to any value to bypass Auth0 | `dev-user` in local mode |
88
- | `NUXT_PUBLIC_QUERY_SERVER_ADDRESS` | Query Server URL | read from `broadchurch.yaml` if present |
89
- | `NUXT_PUBLIC_GATEWAY_URL` | Portal Gateway for agent chat | read from `broadchurch.yaml` if present |
90
- | `NUXT_PUBLIC_TENANT_ORG_ID` | Auth0 org ID for this tenant | read from `broadchurch.yaml` if present |
91
-
92
- See `.env.example` for the full list.
93
-
94
- ## Project Structure
95
-
96
- | Directory | Contents | Deployed to |
97
- | -------------- | ---------------------------------------------------- | ---------------------- |
98
- | `pages/` | Nuxt pages (file-based routing) | Vercel (with app) |
99
- | `components/` | Vue components | Vercel (with app) |
100
- | `composables/` | Vue composables (auto-imported by Nuxt) | Vercel (with app) |
101
- | `utils/` | Utility functions (NOT auto-imported) | Vercel (with app) |
102
- | `server/` | Nitro API routes (KV storage, avatar proxy) | Vercel (with app) |
103
- | `agents/` | Python ADK agents (each subdirectory is deployable) | Vertex AI Agent Engine |
104
- | `mcp-servers/` | Python MCP servers (each subdirectory is deployable) | Cloud Run |
49
+ This check is cheap and only needs to run once per session.
105
50
 
106
51
  ### Cursor instructions (`.cursor/`)
107
52
 
@@ -112,13 +57,6 @@ reference, types, usage patterns). `.cursor/skills/data-model/` contains
112
57
  Lovelace data model documentation (entity types, schemas per fetch source).
113
58
  If these directories are missing, run `/update_instructions` to reinstall.
114
59
 
115
- ### Agents
116
-
117
- `agents/example_agent/` is a working starter agent that queries the Elemental
118
- Knowledge Graph. It includes schema discovery, entity search, property lookup,
119
- and optional MCP server integration. Use it as a starting point — customize the
120
- instruction, add tools, and see the `agents` cursor rule for the full guide.
121
-
122
60
  ## Configuration
123
61
 
124
62
  `broadchurch.yaml` contains tenant-specific settings (GCP project, org ID,
@@ -126,93 +64,6 @@ service account, gateway URL, query server URL). It's generated during
126
64
  provisioning and committed by the `tenant-init` workflow. Don't edit manually
127
65
  unless you know what you're doing.
128
66
 
129
- ## Storage
130
-
131
- Two storage services are available. Check `.env` to see which are connected:
132
-
133
- | Store | How to check | Env var | Utility file | Always available? |
134
- | ---------------------- | --------------------------------------------------------------------------------- | --------------------------------------- | --------------------------------------------------------- | ----------------------------------- |
135
- | **KV** (Upstash Redis) | `KV_REST_API_URL` in `.env` | `KV_REST_API_URL`, `KV_REST_API_TOKEN` | `server/utils/redis.ts` (pre-scaffolded) | Yes |
136
- | **Neon Postgres** | `curl <gateway.url>/api/tenants/<tenant.org_id>` → `vercel.postgres_store_id` set | `DATABASE_URL`, `DATABASE_URL_UNPOOLED` | `server/utils/neon.ts` (create it if missing — see below) | Only if enabled at project creation |
137
-
138
- ### Quick start
139
-
140
- **KV** is ready to use out of the box. Use `getRedis()` from
141
- `server/utils/redis.ts` in server routes, or `usePrefsStore()` on the client
142
- (see `pref` rule for the `Pref<T>` pattern).
143
-
144
- **Neon Postgres** — provisioning is determined by the portal, not by `.env`.
145
- To check whether Neon is enabled for this tenant, pull `gateway.url` and
146
- `tenant.org_id` out of `broadchurch.yaml` and query the portal:
147
-
148
- ```bash
149
- curl <gateway.url>/api/tenants/<tenant.org_id>
150
- ```
151
-
152
- If the response has `vercel.postgres_store_id` set, Neon is provisioned. The
153
- `DATABASE_URL` is also present under `agent_secrets` in that response, but
154
- you usually do not need to read it directly.
155
-
156
- `DATABASE_URL` and `DATABASE_URL_UNPOOLED` are intentionally left commented
157
- out in local `.env` — Neon does not work locally. On deploy, Vercel
158
- auto-injects `DATABASE_URL` at runtime, so pushed builds connect
159
- transparently.
160
-
161
- Before writing Postgres code, bootstrap the two things the project does NOT
162
- scaffold automatically:
163
-
164
- - If `server/utils/neon.ts` is not present, create it (same `getDb()`
165
- lazy-init pattern as `server/utils/redis.ts`).
166
- - If `@neondatabase/serverless` is not in `package.json`, install it with
167
- `npm install @neondatabase/serverless`.
168
-
169
- Then use `getDb()` in server routes:
170
-
171
- ```typescript
172
- import { getDb } from '~/server/utils/neon';
173
-
174
- export default defineEventHandler(async () => {
175
- const sql = getDb();
176
- if (!sql) throw createError({ statusCode: 503, statusMessage: 'Database not configured' });
177
- return await sql`SELECT * FROM my_table`;
178
- });
179
- ```
180
-
181
- ### Where credentials come from
182
-
183
- **Deployed builds** (push to `main` → Vercel): storage env vars are
184
- auto-injected and decrypted at runtime. Storage works with zero
185
- configuration. **This is the primary development path** — push your code
186
- and test on the deployed preview/production URL.
187
-
188
- **Local dev / Cursor Cloud:** storage credentials are not yet available for
189
- local use. `getRedis()` and `getDb()` will return `null`, and the app should
190
- handle this gracefully (show a "not configured" state, use defaults, etc.).
191
- KV preferences fall back to their default values. Postgres features should
192
- check `getDb()` and show appropriate UI when it returns `null`.
193
-
194
- This is a known platform limitation — the Broadchurch team is working on
195
- making storage credentials available for local development.
196
-
197
- See the `server` rule for detailed usage patterns for both KV and Postgres.
198
-
199
- ## How Deployment Works
200
-
201
- ### App (Nuxt UI + server routes)
202
-
203
- Vercel auto-deploys on every push to `main`. Preview deployments are created for
204
- other branches. The app is available at `{slug}.yottagraph.app`.
205
-
206
- ### Agents (`agents/`)
207
-
208
- Each subdirectory in `agents/` is a self-contained Python ADK agent. Deploy via
209
- the Portal UI or `/deploy_agent` in Cursor.
210
-
211
- ### MCP Servers (`mcp-servers/`)
212
-
213
- Each subdirectory in `mcp-servers/` is a Python FastMCP server. Deploy via
214
- the Portal UI or `/deploy_mcp` in Cursor.
215
-
216
67
  ## Verification Commands
217
68
 
218
69
  ```bash
@@ -223,12 +74,6 @@ npm run format # Prettier formatting (run before committing)
223
74
 
224
75
  ## Known Issues
225
76
 
226
- ### Blank white page after `npm run dev`
227
-
228
- If the server returns HTTP 200 but the page is blank, check the browser console
229
- for `SyntaxError` about missing exports. This is caused by Nuxt's auto-import
230
- scanner. **Fix:** verify the `imports:dirs` hook in `nuxt.config.ts` is present.
231
-
232
77
  ### Port 3000 conflict
233
78
 
234
79
  The dev server binds to port 3000 by default. If another service is already
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yottagraph-app/aether-instructions",
3
- "version": "1.1.41",
3
+ "version": "1.1.42",
4
4
  "description": "Cursor rules, commands, and skills for Aether development",
5
5
  "files": [
6
6
  "rules",
package/rules/agents.mdc CHANGED
@@ -8,6 +8,13 @@ alwaysApply: false
8
8
 
9
9
  This project supports developing and deploying AI agents alongside the UI. Agents live in the `agents/` directory and deploy to Vertex AI Agent Engine via the `/deploy_agent` command.
10
10
 
11
+ ## Starter agent
12
+
13
+ `agents/example_agent/` is a working starter agent that queries the Elemental
14
+ Knowledge Graph. It includes schema discovery, entity search, property lookup,
15
+ and optional MCP server integration. Use it as a starting point — customize the
16
+ instruction, add tools, and follow the patterns described below.
17
+
11
18
  ## Directory Structure
12
19
 
13
20
  Each agent is a self-contained Python package. **Directory names must use underscores, not hyphens** (ADK uses the directory name as a Python identifier).
@@ -30,10 +30,9 @@ mcp-servers/ # MCP servers (Python, deploy to Cloud Run)
30
30
  |---|---|---|
31
31
  | Platform data (Query Server / Postgres per your architecture) | Lovelace knowledge graph or synced local data | See the `data` rule |
32
32
  | KV (Upstash Redis) | User preferences, lightweight state | Settings, watchlists, UI state that should persist |
33
- | Neon Postgres | App-specific relational data | Custom tables, complex queries (if connectedcheck `DATABASE_URL` in `.env`) |
33
+ | Neon Postgres | App-specific relational data | Custom tables, complex queries (if provisionedsee the `storage` rule for how to check) |
34
34
 
35
- Use `Pref<T>` or `usePrefsStore()` for KV (see `pref` rule).
36
- Check `.env` for `DATABASE_URL` before using Neon Postgres (see `server` rule).
35
+ See the `storage` rule to check which stores are available, then `pref` (client-side KV) and `server` (Neon usage) for detailed patterns.
37
36
 
38
37
  ## Adding Pages
39
38
 
@@ -0,0 +1,62 @@
1
+ ---
2
+ description: Cursor Cloud environment quirks (Node managed by env, dev server auto-started, skip browser testing during initial setup). Apply when the environment check in AGENTS.md indicates Cursor Cloud ($HOME under /root or /home/ubuntu, or a dev-server terminal was auto-started), or when the user mentions Cursor Cloud.
3
+ alwaysApply: false
4
+ ---
5
+
6
+ If you are in Cursor Cloud, the `environment.json` install step runs
7
+ `init-project.js` and `npm install` automatically, and starts a dev server
8
+ on port 3000.
9
+
10
+ **Verify before starting:** check that `.env` exists and `node_modules/` is
11
+ present. If either is missing, run: `node init-project.js && npm install`
12
+
13
+ **Do NOT** manually run `nvm install` or `nvm use` — Node version is managed
14
+ by the environment.
15
+
16
+ ### Initial environment setup only
17
+
18
+ This subsection applies ONLY when first asked to "set up the development
19
+ environment" or "demonstrate that the environment is working." It does
20
+ **NOT** apply to ongoing development — once the app is built, use the
21
+ browser normally to test and verify UI changes.
22
+
23
+ **During initial setup**, skip browser/UI testing. The starter UI is a
24
+ placeholder template that will be replaced by `/build_my_app`. Do not
25
+ launch a browser, record videos, or take screenshots at this stage.
26
+ Verifying `npm run build` passes is sufficient.
27
+
28
+ 1. Check the "Dev Server" terminal output for a line containing
29
+ `Listening on` or `Local: http://localhost:3000`. If present, the
30
+ environment is working.
31
+ 2. If the dev server is NOT running, start it with `npm run dev` and wait
32
+ for the "Listening on" line.
33
+ 3. Run `npm run build` to verify the project compiles.
34
+ 4. Once confirmed, tell the user the environment is ready, then
35
+ immediately run the `/build_my_app` command.
36
+
37
+ ### MCP tools
38
+
39
+ Lovelace MCP servers (`lovelace-elemental`, `lovelace-stocks`, etc.)
40
+ should be available if configured at the org level. Check your tool list
41
+ for `elemental_*` tools. If they're not available, use the Elemental API
42
+ client (`useElementalClient()`) and the skill docs in
43
+ `.cursor/skills/elemental-api/` and `.cursor/skills/data-model/` for platform data access instead.
44
+
45
+ ### Technical details
46
+
47
+ Node 20 is the baseline (`.nvmrc`). The `environment.json` install step
48
+ handles this via `nvm install 20 && nvm alias default 20`. Newer Node
49
+ versions (22, 25) generally work but may produce `EBADENGINE` warnings
50
+ during install — safe to ignore.
51
+
52
+ The install step runs `node init-project.js --local` (creates `.env` if
53
+ absent) then `npm install` (triggers `postinstall` → `nuxt prepare`).
54
+ Auth0 is bypassed via `NUXT_PUBLIC_USER_NAME=dev-user`
55
+ in the generated `.env`.
56
+
57
+ **No automated test suite.** Verification is `npm run build` (compile
58
+ check) and `npm run format:check` (Prettier). See Verification Commands.
59
+
60
+ **Before committing:** always run `npm run format` — the husky pre-commit
61
+ hook runs `lint-staged` with `prettier --check` and will reject
62
+ unformatted files.
@@ -0,0 +1,19 @@
1
+ ---
2
+ description: App, agent, and MCP server deployment targets (Vercel, Vertex AI Agent Engine, Cloud Run). Apply when pushing to main, running /deploy_agent or /deploy_mcp, or explaining how code reaches production.
3
+ alwaysApply: false
4
+ ---
5
+
6
+ ### App (Nuxt UI + server routes)
7
+
8
+ Vercel auto-deploys on every push to `main`. Preview deployments are created for
9
+ other branches. The app is available at `{slug}.yottagraph.app`.
10
+
11
+ ### Agents (`agents/`)
12
+
13
+ Each subdirectory in `agents/` is a self-contained Python ADK agent. Deploy via
14
+ the Portal UI or `/deploy_agent` in Cursor.
15
+
16
+ ### MCP Servers (`mcp-servers/`)
17
+
18
+ Each subdirectory in `mcp-servers/` is a Python FastMCP server. Deploy via
19
+ the Portal UI or `/deploy_mcp` in Cursor.
package/rules/env.mdc ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ description: .env variable reference (APP_ID, USER_NAME, QUERY_SERVER_ADDRESS, etc.). Apply when adding env vars, configuring Auth0 bypass, or inspecting runtime config.
3
+ alwaysApply: false
4
+ ---
5
+
6
+ | Variable | Purpose | Default |
7
+ | ---------------------------------- | -------------------------------- | --------------------------------------- |
8
+ | `NUXT_PUBLIC_APP_ID` | Unique app identifier | derived from directory name |
9
+ | `NUXT_PUBLIC_APP_NAME` | Display name | derived from directory name |
10
+ | `NUXT_PUBLIC_USER_NAME` | Set to any value to bypass Auth0 | `dev-user` in local mode |
11
+ | `NUXT_PUBLIC_QUERY_SERVER_ADDRESS` | Query Server URL | read from `broadchurch.yaml` if present |
12
+ | `NUXT_PUBLIC_GATEWAY_URL` | Portal Gateway for agent chat | read from `broadchurch.yaml` if present |
13
+ | `NUXT_PUBLIC_TENANT_ORG_ID` | Auth0 org ID for this tenant | read from `broadchurch.yaml` if present |
14
+
15
+ See `.env.example` for the full list.
@@ -0,0 +1,20 @@
1
+ ---
2
+ description: Manual local dev setup (npm run init --local, npm run dev). Apply when the environment check in AGENTS.md indicates local (non-Cursor-Cloud) and .env or node_modules are missing, or when the user asks how to run the app locally.
3
+ alwaysApply: false
4
+ ---
5
+
6
+ ## Manual / Local Setup
7
+
8
+ Node 20 is the baseline (pinned in `.nvmrc`). Newer versions generally work.
9
+
10
+ ```bash
11
+ npm run init -- --local # creates .env with dev defaults (no Auth0)
12
+ npm install # all deps are public on npmjs.com -- no tokens needed
13
+ npm run dev # dev server on port 3000
14
+ ```
15
+
16
+ For the full interactive wizard (project name, Auth0, query server, etc.):
17
+
18
+ ```bash
19
+ npm run init # interactive, or --non-interactive for CI (see --help)
20
+ ```
@@ -0,0 +1,54 @@
1
+ ---
2
+ description: Storage backends available to the app (KV/Upstash Redis always on; Neon Postgres if provisioned). Apply when choosing persistence, deciding if Postgres is available, or wiring up getRedis()/getDb().
3
+ alwaysApply: false
4
+ ---
5
+
6
+ Two storage services are available. Check `.env` to see which are connected:
7
+
8
+ | Store | How to check | Env var | Utility file | Always available? |
9
+ | ---------------------- | --------------------------------------------------------------------------------- | --------------------------------------- | --------------------------------------------------------- | ----------------------------------- |
10
+ | **KV** (Upstash Redis) | `KV_REST_API_URL` in `.env` | `KV_REST_API_URL`, `KV_REST_API_TOKEN` | `server/utils/redis.ts` (pre-scaffolded) | Yes |
11
+ | **Neon Postgres** | `curl <gateway.url>/api/tenants/<tenant.org_id>` → `vercel.postgres_store_id` set | `DATABASE_URL`, `DATABASE_URL_UNPOOLED` | `server/utils/neon.ts` (create it if missing — see below) | Only if enabled at project creation |
12
+
13
+ ### Quick start
14
+
15
+ **KV** is ready to use out of the box. Use `getRedis()` from
16
+ `server/utils/redis.ts` in server routes, or `usePrefsStore()` on the client
17
+ (see `pref` rule for the `Pref<T>` pattern).
18
+
19
+ **Neon Postgres** — provisioning is determined by the portal, not by `.env`.
20
+ To check whether Neon is enabled for this tenant, pull `gateway.url` and
21
+ `tenant.org_id` out of `broadchurch.yaml` and query the portal:
22
+
23
+ ```bash
24
+ curl <gateway.url>/api/tenants/<tenant.org_id>
25
+ ```
26
+
27
+ If the response has `vercel.postgres_store_id` set, Neon is provisioned. The
28
+ `DATABASE_URL` is also present under `agent_secrets` in that response, but
29
+ you usually do not need to read it directly.
30
+
31
+ `DATABASE_URL` and `DATABASE_URL_UNPOOLED` are intentionally left commented
32
+ out in local `.env` — Neon does not work locally. On deploy, Vercel
33
+ auto-injects `DATABASE_URL` at runtime, so pushed builds connect
34
+ transparently.
35
+
36
+ For the `getDb()` lazy-init pattern, `@neondatabase/serverless` install, and
37
+ full code examples (creating tables, handling missing tables in GET routes,
38
+ etc.), see the `server` rule.
39
+
40
+ ### Where credentials come from
41
+
42
+ **Deployed builds** (push to `main` → Vercel): storage env vars are
43
+ auto-injected and decrypted at runtime. Storage works with zero
44
+ configuration. **This is the primary development path** — push your code
45
+ and test on the deployed preview/production URL.
46
+
47
+ **Local dev / Cursor Cloud:** storage credentials are not yet available for
48
+ local use. `getRedis()` and `getDb()` will return `null`, and the app should
49
+ handle this gracefully (show a "not configured" state, use defaults, etc.).
50
+ KV preferences fall back to their default values. Postgres features should
51
+ check `getDb()` and show appropriate UI when it returns `null`.
52
+
53
+ This is a known platform limitation — the Broadchurch team is working on
54
+ making storage credentials available for local development.
package/rules/aether.mdc DELETED
@@ -1,21 +0,0 @@
1
- ---
2
- alwaysApply: true
3
- ---
4
-
5
- # Aether
6
-
7
- **Stack:** Nuxt 3 (SPA), Vue 3 Composition API (`<script setup>`), Vuetify 3, TypeScript (required), Auth0.
8
-
9
- **Structure:** `pages/` (file-based routing), `components/`, `composables/`, `server/api/`, `agents/` (Python ADK), `mcp-servers/` (Python FastMCP).
10
-
11
- **Data:** This app runs on the Lovelace platform -- entities, news, filings, sentiment, relationships, events. See the `data` rule for access patterns and gotchas. Skill docs: `skills/data-model/` (entity types, properties, relationships; `SKILL.md` first), `skills/elemental-mcp-patterns/` (MCP response shapes, property type handling, Python patterns for agent tools). Do NOT call external APIs for data the platform provides.
12
-
13
- **Storage:** KV (Upstash Redis) for preferences and lightweight state via `Pref<T>` from `usePrefsStore()`. Neon Postgres for relational data if connected (check `.env` for `DATABASE_URL`).
14
-
15
- **Source of truth:** `DESIGN.md` -- read before starting work, update when changing features. The starter UI is placeholder -- replace freely. Feature docs in `design/` for implementation planning.
16
-
17
- **Git:** Commit meaningful units of work. Run `npm run format` before commit. Message format: `[Agent commit] {summary}`. Push directly to main — do NOT create PRs or feature branches.
18
-
19
- **First action for a new project:** Run `/build_my_app`.
20
-
21
- **Task-specific rules:** `architecture` (project structure, navigation, server routes, agents, MCP), `data` (Elemental API / data access patterns and gotchas), `cookbook` (copy-paste UI patterns), `cookbook-data` (data-fetching recipes), `design` (DESIGN.md workflow, feature docs), `ui` (page templates, layout patterns), `pref` (KV preferences), `branding` (colors, fonts), `server` (Nitro routes, Neon Postgres), `server-data` (server-side Elemental API from routes), `agents` (ADK agents), `agents-data` (agents calling Elemental API), `something-broke` (error recovery, build failures).