@yottagraph-app/aether-instructions 1.1.5 → 1.1.6
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/commands/build_my_app.md +3 -3
- package/package.json +1 -1
- package/rules/agents.mdc +4 -4
- package/rules/api.mdc +2 -2
- package/rules/architecture.mdc +16 -20
- package/rules/design.mdc +4 -7
package/commands/build_my_app.md
CHANGED
|
@@ -73,8 +73,8 @@ Key capabilities:
|
|
|
73
73
|
- **Query Server / Elemental API** -- the primary data source. Use `useElementalClient()` from `@yottagraph-app/elemental-api/client`. See the `api` rule.
|
|
74
74
|
- **KV storage** -- always available for preferences and lightweight data (see `pref` rule)
|
|
75
75
|
- **Supabase** -- check if `NUXT_PUBLIC_SUPABASE_URL` is in `.env` for database access
|
|
76
|
-
- **AI agent chat** -- `
|
|
77
|
-
- **MCP
|
|
76
|
+
- **AI agent chat** -- use the `useAgentChat` composable to build a chat UI for deployed agents
|
|
77
|
+
- **MCP servers** -- Lovelace MCP servers may be available (check `.cursor/mcp.json`)
|
|
78
78
|
- **Components** -- Vuetify 3 component library is available
|
|
79
79
|
|
|
80
80
|
---
|
|
@@ -96,7 +96,7 @@ Plan what you'll build:
|
|
|
96
96
|
3. What shared logic belongs in `composables/`
|
|
97
97
|
4. What data needs to be persisted (and whether KV or Supabase is appropriate)
|
|
98
98
|
5. Whether the app needs AI agents or MCP servers
|
|
99
|
-
6. Whether
|
|
99
|
+
6. Whether the app needs an agent chat page (use the `useAgentChat` composable)
|
|
100
100
|
7. Whether `app.vue` needs a sidebar, tabs, or other navigation (and what it should look like)
|
|
101
101
|
|
|
102
102
|
Present the plan to the user and ask for approval before proceeding.
|
package/package.json
CHANGED
package/rules/agents.mdc
CHANGED
|
@@ -161,17 +161,17 @@ adk deploy agent_engine \
|
|
|
161
161
|
agents/<agent-name>/
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
## How Agents Reach the
|
|
164
|
+
## How Agents Reach the App
|
|
165
165
|
|
|
166
166
|
Once deployed, the agent is reachable through the Portal Gateway:
|
|
167
167
|
|
|
168
168
|
```
|
|
169
|
-
|
|
169
|
+
App (useAgentChat composable)
|
|
170
170
|
→ POST NUXT_PUBLIC_GATEWAY_URL/api/agents/{tenantId}/{agentId}/query
|
|
171
171
|
→ Portal Gateway proxies to Vertex AI Agent Engine (streamQuery)
|
|
172
172
|
→ Agent runs (may invoke tools, make multiple LLM calls)
|
|
173
173
|
→ Gateway collects the ADK event stream, extracts final text
|
|
174
|
-
→
|
|
174
|
+
→ App displays it
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
The gateway URL and tenant ID come from `broadchurch.yaml` (injected as
|
|
@@ -179,7 +179,7 @@ The gateway URL and tenant ID come from `broadchurch.yaml` (injected as
|
|
|
179
179
|
|
|
180
180
|
### Agent Discovery
|
|
181
181
|
|
|
182
|
-
The
|
|
182
|
+
The app discovers deployed agents by fetching the tenant config:
|
|
183
183
|
|
|
184
184
|
```
|
|
185
185
|
GET {NUXT_PUBLIC_GATEWAY_URL}/api/config/{NUXT_PUBLIC_TENANT_ORG_ID}
|
package/rules/api.mdc
CHANGED
|
@@ -329,8 +329,8 @@ the servers route through the Portal Gateway proxy (no credentials needed).
|
|
|
329
329
|
For local development without a gateway, the servers require an
|
|
330
330
|
`AUTH0_M2M_DEV_TOKEN` environment variable.
|
|
331
331
|
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
These servers are also accessible from the browser through the Portal
|
|
333
|
+
Gateway, so you can build MCP tool exploration UIs if needed.
|
|
334
334
|
|
|
335
335
|
### When MCP Servers Are Available
|
|
336
336
|
|
package/rules/architecture.mdc
CHANGED
|
@@ -121,7 +121,7 @@ Aether apps are more than just a Nuxt SPA. The project contains three additional
|
|
|
121
121
|
|
|
122
122
|
### `agents/` -- ADK Agents (Python)
|
|
123
123
|
|
|
124
|
-
Each subdirectory is a self-contained Python agent that deploys to Vertex AI Agent Engine. See the `agents` cursor rule for development patterns. Agents are deployed via the Broadchurch Portal UI or the `/deploy_agent` Cursor command, both of which trigger `deploy-agent.yml`. Once deployed,
|
|
124
|
+
Each subdirectory is a self-contained Python agent that deploys to Vertex AI Agent Engine. See the `agents` cursor rule for development patterns. Agents are deployed via the Broadchurch Portal UI or the `/deploy_agent` Cursor command, both of which trigger `deploy-agent.yml`. Once deployed, agents are reachable through the Portal Gateway (`NUXT_PUBLIC_GATEWAY_URL`). Use the `useAgentChat` composable to build a chat UI that talks to them.
|
|
125
125
|
|
|
126
126
|
### `mcp-servers/` -- MCP Servers (Python)
|
|
127
127
|
|
|
@@ -131,23 +131,19 @@ Each subdirectory is a FastMCP server that deploys to Cloud Run. See the `mcp-se
|
|
|
131
131
|
|
|
132
132
|
Tenant-specific configuration generated during provisioning. Contains GCP project, org ID, service account, gateway URL, and query server URL. Read by deploy commands and GitHub Actions workflows. Don't edit manually.
|
|
133
133
|
|
|
134
|
-
##
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
straightforward Vuetify pages. The key composables (`useAgentChat`,
|
|
150
|
-
`useTenantConfig`) are included in all template versions and provide the
|
|
151
|
-
connection logic. See the `agents` cursor rule for the gateway endpoints
|
|
152
|
-
and response formats these pages use.
|
|
134
|
+
## Available Composables for Platform Features
|
|
135
|
+
|
|
136
|
+
The template ships composables for interacting with the Lovelace platform.
|
|
137
|
+
Use these to build whatever UI fits the app:
|
|
138
|
+
|
|
139
|
+
- **`useAgentChat()`** -- Send messages to deployed ADK agents through the
|
|
140
|
+
Portal Gateway. Handles streaming, session management, and response
|
|
141
|
+
parsing. See the `agents` cursor rule for gateway endpoints and response
|
|
142
|
+
formats.
|
|
143
|
+
- **`useTenantConfig()`** -- Fetch the tenant's runtime config (deployed
|
|
144
|
+
agents, feature flags, MCP servers) from the Portal Gateway.
|
|
145
|
+
- **`useElementalClient()`** -- Query Server client for entities, news,
|
|
146
|
+
filings, etc. See the `api` rule.
|
|
147
|
+
- **`usePrefsStore()` / `Pref<T>`** -- KV-backed user preferences. See
|
|
148
|
+
the `pref` rule.
|
|
153
149
|
|
package/rules/design.mdc
CHANGED
|
@@ -15,16 +15,13 @@ The sections of the design doc are flexible and you should add or remove section
|
|
|
15
15
|
|
|
16
16
|
# Starter App is a Placeholder
|
|
17
17
|
|
|
18
|
-
The default UI that ships with this template
|
|
19
|
-
|
|
20
|
-
building from a project brief or user request, feel free to:
|
|
18
|
+
The default UI that ships with this template is **placeholder content**.
|
|
19
|
+
When building from a project brief or user request, feel free to:
|
|
21
20
|
|
|
22
21
|
- **Replace** `pages/index.vue` with the app's real home page
|
|
23
|
-
- **Remove**
|
|
24
|
-
if the app doesn't need them
|
|
22
|
+
- **Remove** any pages that don't fit the app
|
|
25
23
|
- **Restructure** the navigation, layout, and branding entirely
|
|
26
|
-
- **Keep**
|
|
27
|
-
`agents/`, and `pages/chat.vue` (if the app uses agent chat)
|
|
24
|
+
- **Keep** the infrastructure: `composables/`, `server/api/kv/`, `agents/`
|
|
28
25
|
|
|
29
26
|
Do NOT treat the existing UI as something to preserve. Build what the
|
|
30
27
|
user described, using the template's infrastructure and patterns but not
|