@agent-native/core 0.63.0 → 0.63.2
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/dist/agent/harness/ai-sdk-adapter.d.ts +44 -0
- package/dist/agent/harness/ai-sdk-adapter.d.ts.map +1 -1
- package/dist/agent/harness/ai-sdk-adapter.js +120 -1
- package/dist/agent/harness/ai-sdk-adapter.js.map +1 -1
- package/dist/agent/harness/index.d.ts +1 -1
- package/dist/agent/harness/index.d.ts.map +1 -1
- package/dist/agent/harness/index.js.map +1 -1
- package/dist/cli/code-agent-executor.js +1 -1
- package/dist/cli/code-agent-executor.js.map +1 -1
- package/dist/cli/create.js +1 -1
- package/dist/cli/create.js.map +1 -1
- package/dist/client/NewWorkspaceAppFlow.js +1 -1
- package/dist/client/NewWorkspaceAppFlow.js.map +1 -1
- package/dist/client/blocks/library/AnnotatedCodeBlock.d.ts.map +1 -1
- package/dist/client/blocks/library/AnnotatedCodeBlock.js +29 -10
- package/dist/client/blocks/library/AnnotatedCodeBlock.js.map +1 -1
- package/dist/client/blocks/library/DiffBlock.d.ts.map +1 -1
- package/dist/client/blocks/library/DiffBlock.js +48 -20
- package/dist/client/blocks/library/DiffBlock.js.map +1 -1
- package/dist/client/blocks/library/diagram.d.ts.map +1 -1
- package/dist/client/blocks/library/diagram.js +14 -3
- package/dist/client/blocks/library/diagram.js.map +1 -1
- package/dist/client/blocks/library/wireframe.d.ts.map +1 -1
- package/dist/client/blocks/library/wireframe.js +14 -3
- package/dist/client/blocks/library/wireframe.js.map +1 -1
- package/dist/client/blocks/types.d.ts +5 -0
- package/dist/client/blocks/types.d.ts.map +1 -1
- package/dist/client/blocks/types.js.map +1 -1
- package/dist/client/chat/index.d.ts +2 -1
- package/dist/client/chat/index.d.ts.map +1 -1
- package/dist/client/chat/index.js +2 -1
- package/dist/client/chat/index.js.map +1 -1
- package/dist/client/chat-view-transition.d.ts +17 -0
- package/dist/client/chat-view-transition.d.ts.map +1 -1
- package/dist/client/chat-view-transition.js +46 -0
- package/dist/client/chat-view-transition.js.map +1 -1
- package/dist/client/index.d.ts +2 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/use-agent-chat-home-handoff.d.ts +27 -0
- package/dist/client/use-agent-chat-home-handoff.d.ts.map +1 -0
- package/dist/client/use-agent-chat-home-handoff.js +120 -0
- package/dist/client/use-agent-chat-home-handoff.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/server/action-discovery.d.ts.map +1 -1
- package/dist/server/action-discovery.js +24 -2
- package/dist/server/action-discovery.js.map +1 -1
- package/dist/server/deep-link.d.ts +2 -2
- package/dist/server/deep-link.d.ts.map +1 -1
- package/dist/server/deep-link.js +2 -2
- package/dist/server/deep-link.js.map +1 -1
- package/dist/styles/agent-native.css +2 -6
- package/dist/tailwind.preset.d.ts.map +1 -1
- package/dist/tailwind.preset.js +8 -1
- package/dist/tailwind.preset.js.map +1 -1
- package/dist/templates/default/package.json +1 -0
- package/dist/templates/headless/AGENTS.md +3 -0
- package/dist/templates/headless/DEVELOPING.md +4 -0
- package/dist/templates/headless/actions/run.ts +6 -0
- package/dist/templates/workspace-root/README.md +4 -4
- package/docs/content/actions.md +32 -42
- package/docs/content/agent-surfaces.md +105 -84
- package/docs/content/agent-teams.md +2 -14
- package/docs/content/agent-web-surfaces.md +4 -4
- package/docs/content/authentication.md +40 -24
- package/docs/content/automations.md +18 -36
- package/docs/content/blueprint-installer.md +3 -0
- package/docs/content/cli-adapters.md +24 -168
- package/docs/content/client.md +11 -77
- package/docs/content/cloneable-saas.md +1 -1
- package/docs/content/code-agents-ui.md +44 -0
- package/docs/content/components.md +10 -23
- package/docs/content/context-awareness.md +3 -3
- package/docs/content/creating-templates.md +20 -18
- package/docs/content/database.md +1 -1
- package/docs/content/deployment.md +5 -37
- package/docs/content/dispatch.md +17 -28
- package/docs/content/drop-in-agent.md +24 -111
- package/docs/content/durable-resume.md +4 -0
- package/docs/content/embedding-sdk.md +141 -135
- package/docs/content/evals.md +3 -3
- package/docs/content/extensions.md +1 -1
- package/docs/content/external-agents.md +35 -61
- package/docs/content/faq.md +5 -5
- package/docs/content/frames.md +13 -4
- package/docs/content/getting-started.md +96 -142
- package/docs/content/harness-agents.md +53 -9
- package/docs/content/human-approval.md +1 -1
- package/docs/content/key-concepts.md +14 -99
- package/docs/content/local-file-mode.md +2 -2
- package/docs/content/mcp-apps.md +9 -2
- package/docs/content/mcp-clients.md +8 -3
- package/docs/content/mcp-protocol.md +11 -29
- package/docs/content/messaging.md +1 -1
- package/docs/content/migration-workbench.md +14 -175
- package/docs/content/multi-app-workspace.md +1 -1
- package/docs/content/multi-tenancy.md +18 -47
- package/docs/content/native-chat-ui.md +15 -12
- package/docs/content/observability.md +16 -4
- package/docs/content/observational-memory.md +1 -1
- package/docs/content/pure-agent-apps.md +17 -124
- package/docs/content/real-time-collaboration.md +14 -14
- package/docs/content/routing.md +71 -0
- package/docs/content/sandbox-adapters.md +78 -4
- package/docs/content/security.md +59 -39
- package/docs/content/server.md +16 -8
- package/docs/content/sharing.md +1 -6
- package/docs/content/skills-guide.md +3 -1
- package/docs/content/template-analytics.md +1 -1
- package/docs/content/template-assets.md +12 -3
- package/docs/content/template-brain.md +64 -72
- package/docs/content/template-chat.md +32 -4
- package/docs/content/template-clips.md +35 -4
- package/docs/content/template-design.md +19 -3
- package/docs/content/template-dispatch.md +9 -0
- package/docs/content/template-forms.md +15 -10
- package/docs/content/template-plan.md +13 -5
- package/docs/content/template-slides.md +14 -14
- package/docs/content/template-videos.md +10 -12
- package/docs/content/tracking.md +66 -55
- package/docs/content/using-your-agent.md +6 -16
- package/docs/content/what-is-agent-native.md +5 -11
- package/docs/content/workspace-management.md +2 -2
- package/docs/content/workspace.md +20 -160
- package/package.json +6 -2
- package/src/templates/default/package.json +1 -0
- package/src/templates/headless/AGENTS.md +3 -0
- package/src/templates/headless/DEVELOPING.md +4 -0
- package/src/templates/headless/actions/run.ts +6 -0
- package/src/templates/workspace-root/README.md +4 -4
|
@@ -5,7 +5,7 @@ description: "Claude-Code-level customization per user — skills, memory, instr
|
|
|
5
5
|
|
|
6
6
|
# Workspace
|
|
7
7
|
|
|
8
|
-
> **
|
|
8
|
+
> **Which workspace doc?** This page covers the **customization layer** — what a workspace _is_. For the deployment shape (one monorepo, many apps) see [Multi-App Workspaces](/docs/multi-app-workspace); for governance (who reviews, approves, and owns what) see [Workspace Governance](/docs/workspace-management).
|
|
9
9
|
|
|
10
10
|
Every agent-native app ships with a **workspace**: the customization layer that makes the agent yours. It contains team instructions (`AGENTS.md`), shared learnings (`LEARNINGS.md`), personal structured memory (`memory/MEMORY.md`), skills the agent pulls in on demand, custom sub-agents, scheduled jobs, and connected MCP servers — everything you'd expect from a Claude Code / Codex setup.
|
|
11
11
|
|
|
@@ -63,7 +63,7 @@ Change how the agent behaves, in 60 seconds.
|
|
|
63
63
|
|
|
64
64
|
- **Skills** (`+` → **Skill**) — focused how-to files invoked in chat with `/skill-name`.
|
|
65
65
|
- **Agents** (`+` → **Agent**) — reusable sub-agent personas invoked with `@agent-name`.
|
|
66
|
-
- **Scheduled Tasks** (`+` → **Scheduled Task**) — prompts that run on a cron.
|
|
66
|
+
- **Scheduled Tasks** (`+` → **Scheduled Task**) — prompts that run on a cron. See [Recurring Jobs](/docs/recurring-jobs) for schedules and triggers.
|
|
67
67
|
- **Memory** — shared `LEARNINGS.md` and personal `memory/MEMORY.md` keep durable context available across conversations.
|
|
68
68
|
|
|
69
69
|
## Global resources and canonical paths {#global-resources}
|
|
@@ -96,18 +96,9 @@ workspace context/brand.md
|
|
|
96
96
|
-> personal context/brand.md
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
Keep `context/` files short and factual — a few bullets the agent can skim:
|
|
100
100
|
|
|
101
101
|
```text
|
|
102
|
-
<!-- context/company.md -->
|
|
103
|
-
|
|
104
|
-
# Company
|
|
105
|
-
|
|
106
|
-
- Company: Example Co
|
|
107
|
-
- Product: Agent-native workspace for internal teams
|
|
108
|
-
- ICP: Operations, support, and GTM teams managing many small tools
|
|
109
|
-
- Canonical links: https://example.com, https://docs.example.com
|
|
110
|
-
|
|
111
102
|
<!-- context/brand.md -->
|
|
112
103
|
|
|
113
104
|
# Brand
|
|
@@ -115,55 +106,13 @@ Example contents:
|
|
|
115
106
|
- Voice: direct, warm, concrete
|
|
116
107
|
- Use: "workspace", "agent", "team"
|
|
117
108
|
- Avoid: unsupported superlatives and vague AI claims
|
|
118
|
-
|
|
119
|
-
<!-- context/messaging.md -->
|
|
120
|
-
|
|
121
|
-
# Messaging
|
|
122
|
-
|
|
123
|
-
- Positioning: one control plane for every app agent
|
|
124
|
-
- Value props: shared context, shared credentials, cross-app delegation
|
|
125
|
-
- Proof points: fewer duplicated Slack bots, one vault, one policy surface
|
|
126
|
-
|
|
127
|
-
<!-- instructions/guardrails.md -->
|
|
128
|
-
|
|
129
|
-
# Guardrails
|
|
130
|
-
|
|
131
|
-
- Do not invent customer names, metrics, or legal claims.
|
|
132
|
-
- Ask for approval before changing shared instructions or All-app resources.
|
|
133
|
-
- Escalate security, billing, and data-loss concerns to an admin.
|
|
134
|
-
|
|
135
|
-
<!-- skills/company-voice/SKILL.md -->
|
|
136
|
-
|
|
137
|
-
---
|
|
138
|
-
name: company-voice
|
|
139
|
-
description: Rewrite or review customer-facing copy using the workspace brand and messaging resources.
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
Read `context/brand.md` and `context/messaging.md` before writing. Keep claims grounded in those files, preserve approved terminology, and flag missing proof instead of inventing it.
|
|
143
109
|
```
|
|
144
110
|
|
|
145
111
|
## Workspace Panel {#workspace-panel}
|
|
146
112
|
|
|
147
|
-
The agent panel includes a **Workspace** tab alongside Chat and CLI.
|
|
113
|
+
The agent panel includes a **Workspace** tab alongside Chat and CLI. It shows a folder-organized tree of all resources, an inline editor for any text file (Markdown, JSON, YAML, plain text), and the `+` menu's typed creation flows (Files, Skills, Agents, Scheduled Tasks). Users can browse inherited workspace defaults and create/edit/delete personal or organization resources.
|
|
148
114
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
The `+` menu in Workspace supports typed creation flows for:
|
|
152
|
-
|
|
153
|
-
- **Files** — arbitrary resources
|
|
154
|
-
- **Skills** — reusable instruction files under `skills/`
|
|
155
|
-
- **Agents** — custom sub-agent profiles under `agents/*.md`
|
|
156
|
-
- **Scheduled Tasks** — recurring jobs under `jobs/`
|
|
157
|
-
|
|
158
|
-
When you open a resource, the editor shows an **Effective context** strip with the precedence stack:
|
|
159
|
-
|
|
160
|
-
```text
|
|
161
|
-
workspace default -> organization/app override -> personal override
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
If the same path exists at multiple levels, the later level wins. Workspace resources are still visible in the stack so users can see what was inherited and why an override is active.
|
|
165
|
-
|
|
166
|
-
Dispatch shows the same model from the control-plane side. On the **Resources** page, expand a resource and use **Effective in app** to choose an app and optional user email. From an app card's **Context** dialog, expand **Stack** on any resource row to see the same winner/override chain for that app.
|
|
115
|
+
When you open a resource, the editor shows an **Effective context** strip with the `workspace default -> organization/app override -> personal override` stack, so you can see what was inherited and why an override is active. Dispatch shows the same model from the control-plane side: on the **Resources** page use **Effective in app**, or expand **Stack** on a resource row in an app card's **Context** dialog.
|
|
167
116
|
|
|
168
117
|
When Dispatch approval policy is enabled, creating, updating, or deleting an **All apps** resource queues an approval request instead of applying immediately. The create/edit/delete dialogs show an impact preview before save.
|
|
169
118
|
|
|
@@ -175,34 +124,9 @@ The built-in app agent manages resources with the unified `resources` tool: use
|
|
|
175
124
|
|
|
176
125
|
At the start of every conversation, the agent automatically reads:
|
|
177
126
|
|
|
178
|
-
### AGENTS.md {#agents-md}
|
|
127
|
+
### AGENTS.md and instructions {#agents-md}
|
|
179
128
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
```text
|
|
183
|
-
# Agent Instructions
|
|
184
|
-
|
|
185
|
-
## Tone
|
|
186
|
-
|
|
187
|
-
Be concise. Lead with the answer.
|
|
188
|
-
|
|
189
|
-
## Code style
|
|
190
|
-
|
|
191
|
-
- Use TypeScript, never JavaScript
|
|
192
|
-
- Prefer named exports
|
|
193
|
-
|
|
194
|
-
## Skills
|
|
195
|
-
|
|
196
|
-
| Skill | Path | Description |
|
|
197
|
-
| ------------- | ------------------------------- | --------------------------- |
|
|
198
|
-
| data-analysis | `skills/data-analysis/SKILL.md` | BigQuery and data workflows |
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### Global Instructions {#global-instructions}
|
|
202
|
-
|
|
203
|
-
Use workspace `AGENTS.md` for company-wide defaults, shared `AGENTS.md` for app/team rules, and personal `AGENTS.md` for per-user preferences. Use files under `instructions/` for separate guardrail documents that should also apply every turn, such as compliance rules, customer-facing tone, escalation policy, or brand voice. These files use the same workspace -> organization/app -> personal precedence.
|
|
204
|
-
|
|
205
|
-
For example:
|
|
129
|
+
`AGENTS.md` is an instruction resource seeded by default and loaded every turn from workspace, shared/organization, and personal scopes in that order — workspace for company-wide defaults, shared/app for team rules, personal for per-user preferences. Files under `instructions/` are separate guardrail documents that also apply every turn (compliance rules, escalation policy, brand voice) and follow the same precedence. Both normal chat and integration-triggered runs load them before responding.
|
|
206
130
|
|
|
207
131
|
```text
|
|
208
132
|
AGENTS.md
|
|
@@ -210,11 +134,9 @@ instructions/customer-support-guardrails.md
|
|
|
210
134
|
instructions/legal-review-policy.md
|
|
211
135
|
```
|
|
212
136
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
### Reference Resources {#reference-resources}
|
|
137
|
+
### Reference resources {#reference-resources}
|
|
216
138
|
|
|
217
|
-
|
|
139
|
+
Reusable company context lives under `context/` (personas, positioning, product facts, brand guidelines, competitive notes). The agent sees an index of these and reads the relevant file with the `resources` tool (`action: "read"`) when a task may depend on it; use `action: "effective"` to see whether a workspace default is overridden for an app or user.
|
|
218
140
|
|
|
219
141
|
### Memory {#memory}
|
|
220
142
|
|
|
@@ -225,25 +147,7 @@ The workspace has two current memory surfaces:
|
|
|
225
147
|
|
|
226
148
|
The resource system also seeds a personal `LEARNINGS.md` for compatibility with older workspaces, but the chat preload path is shared `LEARNINGS.md` plus personal `memory/MEMORY.md`.
|
|
227
149
|
|
|
228
|
-
**What gets saved.** When you correct the agent ("
|
|
229
|
-
|
|
230
|
-
**What it looks like.**
|
|
231
|
-
|
|
232
|
-
```markdown
|
|
233
|
-
# Learnings
|
|
234
|
-
|
|
235
|
-
## Tone
|
|
236
|
-
|
|
237
|
-
- Be concise; skip preamble. (corrected 2026-01-14)
|
|
238
|
-
|
|
239
|
-
## Naming
|
|
240
|
-
|
|
241
|
-
- "Dispatch" refers to our internal event-routing service, not the template app.
|
|
242
|
-
|
|
243
|
-
## Preferences
|
|
244
|
-
|
|
245
|
-
- Prefer named exports over default exports in TypeScript.
|
|
246
|
-
```
|
|
150
|
+
**What gets saved.** When you correct the agent ("always use X instead of Y"), share a preference ("I prefer concise answers"), or reveal context ("my team calls this 'the dispatch layer'"), the agent captures that learning so it doesn't repeat the mistake or re-ask. Project-wide learnings go in shared `LEARNINGS.md`; user-specific memory goes under `memory/`. The `capture-learnings` skill spells out when and how.
|
|
247
151
|
|
|
248
152
|
**Where it fits.**
|
|
249
153
|
|
|
@@ -257,49 +161,17 @@ The resource system also seeds a personal `LEARNINGS.md` for compatibility with
|
|
|
257
161
|
| `context/…` | Shared | Humans / agent on request | Indexed every turn, read when relevant |
|
|
258
162
|
| `mcp-servers/…` | Workspace / shared | Humans via Dispatch or app workspace | MCP config refresh |
|
|
259
163
|
|
|
260
|
-
> A personal `LEARNINGS.md` is seeded for back-compat with older workspaces, but the chat preload path reads the shared copy. Put personal context in `memory/MEMORY.md` instead.
|
|
261
|
-
|
|
262
164
|
Users can edit these memory files directly in the Workspace tab — they're regular resources. Delete lines the agent got wrong, keep personal preferences in `memory/MEMORY.md`, or promote team-wide rules into `AGENTS.md`.
|
|
263
165
|
|
|
264
166
|
## Skills {#skills}
|
|
265
167
|
|
|
266
|
-
Skills are Markdown resource files
|
|
267
|
-
|
|
268
|
-
When the agent encounters a task that matches a skill, it reads the skill file and follows its guidance. Skills referenced in `AGENTS.md` are discovered automatically.
|
|
269
|
-
|
|
270
|
-
### Creating Skills {#creating-skills}
|
|
271
|
-
|
|
272
|
-
There are two ways to add skills:
|
|
168
|
+
Skills are Markdown resource files under the `skills/` path (preferably `skills/<name>/SKILL.md`) that give the agent on-demand domain knowledge, invoked in chat with `/skill-name`. Add them from the Workspace tab or, in Code mode, from `.agents/skills/`.
|
|
273
169
|
|
|
274
|
-
|
|
275
|
-
2. **Via code (Code mode only)** — Add a Markdown file to `.agents/skills/` in your project. These are available when the app runs in Code mode.
|
|
276
|
-
|
|
277
|
-
### Skill Format {#skill-format}
|
|
278
|
-
|
|
279
|
-
Skills are Markdown files with optional YAML frontmatter for metadata:
|
|
280
|
-
|
|
281
|
-
```markdown
|
|
282
|
-
---
|
|
283
|
-
name: data-analysis
|
|
284
|
-
description: BigQuery queries, data transforms, and visualization
|
|
285
|
-
---
|
|
286
|
-
|
|
287
|
-
# Data Analysis
|
|
288
|
-
|
|
289
|
-
## When to use
|
|
290
|
-
|
|
291
|
-
Use this skill when the user asks about data, queries, or analytics.
|
|
292
|
-
|
|
293
|
-
## Rules
|
|
294
|
-
|
|
295
|
-
- Always validate SQL before executing
|
|
296
|
-
- Prefer CTEs over subqueries
|
|
297
|
-
- Include LIMIT on exploratory queries
|
|
298
|
-
```
|
|
170
|
+
See the [Skills Guide](/docs/skills-guide) — the single source for skill format, scope, discovery, and authoring.
|
|
299
171
|
|
|
300
172
|
## Custom Agents {#custom-agents}
|
|
301
173
|
|
|
302
|
-
Custom agents are reusable local sub-agent profiles stored as Markdown resources under `agents/*.md`.
|
|
174
|
+
Custom agents are reusable local sub-agent profiles stored as Markdown resources under `agents/*.md`. This is the canonical home for the custom-agent format.
|
|
303
175
|
|
|
304
176
|
Use them when you want a focused delegate with its own name, description, model preference, and instruction set. Unlike skills, custom agents are not passive guidance — they are operational personas the main agent can invoke through `@` mentions or by selecting them during sub-agent spawning.
|
|
305
177
|
|
|
@@ -347,31 +219,15 @@ Use custom agents for delegation within one app. Use connected agents when you n
|
|
|
347
219
|
|
|
348
220
|
Type `@` in the chat input to reference workspace items. A dropdown appears at the cursor showing matching agents and files. Use arrow keys to navigate and Enter to select. The selected item appears as an inline chip in the input.
|
|
349
221
|
|
|
350
|
-
When you send a message
|
|
351
|
-
|
|
352
|
-
- **Files/resources** are passed as references the agent can read
|
|
353
|
-
- **Custom agents** run locally with their profile instructions
|
|
354
|
-
- **Connected agents** are called over A2A
|
|
355
|
-
|
|
356
|
-
What shows up depends on the mode:
|
|
357
|
-
|
|
358
|
-
- **Code mode** — Codebase files, workspace resources, custom agents, and connected agents
|
|
359
|
-
- **App mode** — Workspace resources, custom agents, and connected agents
|
|
222
|
+
When you send a message, **files/resources** are passed as references the agent can read, **custom agents** run locally with their profile instructions, and **connected agents** are called over A2A.
|
|
360
223
|
|
|
361
224
|
## / Slash Commands {#slash-commands}
|
|
362
225
|
|
|
363
|
-
Type `/` at the start of a line to invoke a skill. A dropdown shows available skills with their names and descriptions
|
|
364
|
-
|
|
365
|
-
What shows up depends on the mode:
|
|
366
|
-
|
|
367
|
-
- **Code mode** — Skills from `.agents/skills/` (codebase) and skills from resources
|
|
368
|
-
- **App mode** — Skills from resources only
|
|
369
|
-
|
|
370
|
-
If no skills are configured, the dropdown shows a hint with a link to these docs.
|
|
226
|
+
Type `/` at the start of a line to invoke a skill. A dropdown shows available skills with their names and descriptions; selecting one adds an inline chip and includes its content as context when the message is sent. If no skills are configured, the dropdown links to these docs.
|
|
371
227
|
|
|
372
228
|
## Code vs App Mode {#dev-vs-prod}
|
|
373
229
|
|
|
374
|
-
The resource system works identically in both modes.
|
|
230
|
+
The resource system works identically in both modes. What differs is the additional sources available for `@` tagging and `/` commands:
|
|
375
231
|
|
|
376
232
|
| Feature | Code Mode | App Mode |
|
|
377
233
|
| ------------------ | ----------------------------------------------------------------------- | ------------------------------------------------------ |
|
|
@@ -387,6 +243,10 @@ Workspace Connections let apps share the same provider account (Slack, GitHub, H
|
|
|
387
243
|
|
|
388
244
|
See [Workspace Connections](/docs/workspace-connections) for the quickstart, connection/grant/credentialRef API, and concrete Slack, HubSpot, and GitHub examples.
|
|
389
245
|
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
# Reference
|
|
249
|
+
|
|
390
250
|
## Resource API {#resource-api}
|
|
391
251
|
|
|
392
252
|
Resources can be managed from server code, actions, or the REST API.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
@@ -195,7 +195,6 @@
|
|
|
195
195
|
"@sentry/browser": "^10.50.0",
|
|
196
196
|
"@sentry/node": "^10.50.0",
|
|
197
197
|
"@standard-schema/spec": "^1.1.0",
|
|
198
|
-
"@tailwindcss/typography": "^0.5.19",
|
|
199
198
|
"@tanstack/react-table": "^8.21.3",
|
|
200
199
|
"@tiptap/core": "^3.26.0",
|
|
201
200
|
"@tiptap/extension-code-block-lowlight": "^3.26.0",
|
|
@@ -266,6 +265,7 @@
|
|
|
266
265
|
"@openrouter/ai-sdk-provider": ">=2",
|
|
267
266
|
"@supabase/supabase-js": ">=2",
|
|
268
267
|
"@tabler/icons-react": ">=3",
|
|
268
|
+
"@tailwindcss/typography": ">=0.5",
|
|
269
269
|
"@tailwindcss/vite": ">=4",
|
|
270
270
|
"@tanstack/react-query": ">=5",
|
|
271
271
|
"@vitejs/plugin-react-swc": ">=4",
|
|
@@ -334,6 +334,9 @@
|
|
|
334
334
|
"tailwindcss": {
|
|
335
335
|
"optional": true
|
|
336
336
|
},
|
|
337
|
+
"@tailwindcss/typography": {
|
|
338
|
+
"optional": true
|
|
339
|
+
},
|
|
337
340
|
"@tailwindcss/vite": {
|
|
338
341
|
"optional": true
|
|
339
342
|
},
|
|
@@ -392,6 +395,7 @@
|
|
|
392
395
|
"@react-router/fs-routes": "^7.16.0",
|
|
393
396
|
"@supabase/supabase-js": "^2.49.0",
|
|
394
397
|
"@tabler/icons-react": "^3.40.0",
|
|
398
|
+
"@tailwindcss/typography": "^0.5.20",
|
|
395
399
|
"@tailwindcss/vite": "^4.2.4",
|
|
396
400
|
"@tanstack/react-query": "^5.99.2",
|
|
397
401
|
"@types/better-sqlite3": "^7.6.13",
|
|
@@ -9,6 +9,9 @@ This app is not stateless. The Agent Native runtime uses SQL-backed stores for a
|
|
|
9
9
|
- Prefer actions in `actions/` for every app operation. Do not create REST wrappers around actions.
|
|
10
10
|
- Keep action inputs validated with Zod and return structured data, not JSON strings.
|
|
11
11
|
- Do not hardcode API keys, tokens, webhook URLs, private data, or credential-looking literals.
|
|
12
|
+
- `actions/run.ts` is the CLI dispatcher for `pnpm action ...`, not an app
|
|
13
|
+
action. Leave it in place and add callable primitives as separate
|
|
14
|
+
`actions/<name>.ts` files.
|
|
12
15
|
- There is intentionally no `app/` UI shell in this scaffold. When you need a browser UI, use the Chat template as the UI on-ramp and keep `agent-native add` for integration blueprints.
|
|
13
16
|
|
|
14
17
|
## Framework Docs Lookup
|
|
@@ -7,6 +7,10 @@ pnpm install
|
|
|
7
7
|
pnpm action hello --name Builder
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
+
`actions/run.ts` is only the shared CLI dispatcher that powers
|
|
11
|
+
`pnpm action <name>`. Add real agent-callable actions as separate files such as
|
|
12
|
+
`actions/hello.ts`.
|
|
13
|
+
|
|
10
14
|
Then run the production app-agent loop against this folder:
|
|
11
15
|
|
|
12
16
|
```bash
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI dispatcher for `pnpm action ...`.
|
|
3
|
+
*
|
|
4
|
+
* This file lives in actions/ so the Agent Native CLI can find it. It is skipped
|
|
5
|
+
* by action discovery and is not exposed as an agent tool.
|
|
6
|
+
*/
|
|
1
7
|
import { runScript } from "@agent-native/core/scripts";
|
|
2
8
|
|
|
3
9
|
runScript();
|
|
@@ -103,15 +103,15 @@ authenticated org routes whenever possible.
|
|
|
103
103
|
pnpm exec agent-native create crm --template=chat
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
The CLI detects the workspace root and scaffolds a minimal
|
|
106
|
+
The CLI detects the workspace root and scaffolds a minimal starter app that already
|
|
107
107
|
depends on `@{{APP_NAME}}/shared`. Edit only the routes you care about;
|
|
108
108
|
auth, org switching, skills, and instructions come from the shared package.
|
|
109
|
-
|
|
109
|
+
The source template is only a scaffold: the finished app should use its own name,
|
|
110
110
|
home screen, navigation, package metadata, and manifest rather than leaving
|
|
111
|
-
|
|
111
|
+
starter or new-app UI in place.
|
|
112
112
|
If the request starts from Dispatch in production, Dispatch sends it to Builder
|
|
113
113
|
branch creation; that branch should still add a new `apps/<app-id>` workspace
|
|
114
|
-
app rather than
|
|
114
|
+
app rather than editing an existing app directory.
|
|
115
115
|
Dispatch discovers ready apps from `apps/<app-id>/package.json`; there is no
|
|
116
116
|
separate workspace app registry to edit. React Router apps must preserve
|
|
117
117
|
`APP_BASE_PATH` / `VITE_APP_BASE_PATH` in `app/entry.client.tsx` via
|