@agent-native/core 0.44.4 → 0.45.0
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/cli/connect.d.ts +2 -1
- package/dist/cli/connect.d.ts.map +1 -1
- package/dist/cli/connect.js +185 -5
- package/dist/cli/connect.js.map +1 -1
- package/dist/cli/index.js +27 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/plan-local.d.ts +43 -0
- package/dist/cli/plan-local.d.ts.map +1 -0
- package/dist/cli/plan-local.js +477 -0
- package/dist/cli/plan-local.js.map +1 -0
- package/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
- package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
- package/dist/cli/pr-visual-recap-workflow.js +1 -1
- package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
- package/dist/cli/recap.d.ts +164 -0
- package/dist/cli/recap.d.ts.map +1 -1
- package/dist/cli/recap.js +657 -10
- package/dist/cli/recap.js.map +1 -1
- package/dist/cli/skills.d.ts +2 -2
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +160 -387
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/blocks/library/AnnotatedCodeBlock.d.ts.map +1 -1
- package/dist/client/blocks/library/AnnotatedCodeBlock.js +4 -1
- 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 +10 -11
- package/dist/client/blocks/library/DiffBlock.js.map +1 -1
- package/dist/client/blocks/library/annotation-rail.d.ts +15 -5
- package/dist/client/blocks/library/annotation-rail.d.ts.map +1 -1
- package/dist/client/blocks/library/annotation-rail.js +35 -24
- package/dist/client/blocks/library/annotation-rail.js.map +1 -1
- package/dist/client/blocks/library/code-filename-label.d.ts +8 -0
- package/dist/client/blocks/library/code-filename-label.d.ts.map +1 -0
- package/dist/client/blocks/library/code-filename-label.js +15 -0
- package/dist/client/blocks/library/code-filename-label.js.map +1 -0
- package/dist/client/blocks/library/code.d.ts.map +1 -1
- package/dist/client/blocks/library/code.js +3 -2
- package/dist/client/blocks/library/code.js.map +1 -1
- package/dist/client/blocks/library/diff.config.d.ts +1 -1
- package/dist/client/blocks/library/diff.config.js.map +1 -1
- package/dist/client/blocks/library/narrow-container.d.ts +4 -4
- package/dist/client/blocks/library/narrow-container.d.ts.map +1 -1
- package/dist/client/blocks/library/narrow-container.js +10 -10
- package/dist/client/blocks/library/narrow-container.js.map +1 -1
- package/dist/client/blocks/library/tabs.d.ts.map +1 -1
- package/dist/client/blocks/library/tabs.js +7 -2
- package/dist/client/blocks/library/tabs.js.map +1 -1
- package/dist/client/composer/TiptapComposer.d.ts.map +1 -1
- package/dist/client/composer/TiptapComposer.js +4 -1
- package/dist/client/composer/TiptapComposer.js.map +1 -1
- package/dist/client/db-admin/TableEditor.d.ts.map +1 -1
- package/dist/client/db-admin/TableEditor.js +3 -1
- package/dist/client/db-admin/TableEditor.js.map +1 -1
- package/dist/db/client.d.ts +8 -0
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +23 -2
- package/dist/db/client.js.map +1 -1
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +8 -0
- package/dist/deploy/build.js.map +1 -1
- package/dist/extensions/html-shell.js +1 -1
- package/dist/extensions/html-shell.js.map +1 -1
- package/dist/jobs/scheduler.d.ts.map +1 -1
- package/dist/jobs/scheduler.js +5 -1
- package/dist/jobs/scheduler.js.map +1 -1
- package/dist/mcp/build-server.d.ts +1 -0
- package/dist/mcp/build-server.d.ts.map +1 -1
- package/dist/mcp/build-server.js +7 -3
- package/dist/mcp/build-server.js.map +1 -1
- package/dist/mcp/oauth-route.d.ts.map +1 -1
- package/dist/mcp/oauth-route.js +56 -19
- package/dist/mcp/oauth-route.js.map +1 -1
- package/dist/mcp/oauth-store.d.ts +1 -0
- package/dist/mcp/oauth-store.d.ts.map +1 -1
- package/dist/mcp/oauth-store.js +9 -0
- package/dist/mcp/oauth-store.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +9 -4
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp-client/errors.js +3 -3
- package/dist/mcp-client/errors.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +3 -1
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/agent-teams.d.ts.map +1 -1
- package/dist/server/agent-teams.js +10 -2
- package/dist/server/agent-teams.js.map +1 -1
- package/dist/server/auth.d.ts.map +1 -1
- package/dist/server/auth.js +7 -3
- package/dist/server/auth.js.map +1 -1
- package/dist/server/recap-image-route.d.ts.map +1 -1
- package/dist/server/recap-image-route.js +3 -6
- package/dist/server/recap-image-route.js.map +1 -1
- package/dist/server/sentry.d.ts.map +1 -1
- package/dist/server/sentry.js +12 -5
- package/dist/server/sentry.js.map +1 -1
- package/dist/server/social-og-image.d.ts.map +1 -1
- package/dist/server/social-og-image.js +3 -1
- package/dist/server/social-og-image.js.map +1 -1
- package/dist/templates/workspace-core/.agents/skills/external-agents/SKILL.md +22 -6
- package/docs/content/plan-plugin.md +18 -1
- package/docs/content/pr-visual-recap.md +37 -10
- package/docs/content/template-plan.md +45 -1
- package/package.json +1 -1
- package/src/templates/workspace-core/.agents/skills/external-agents/SKILL.md +22 -6
|
@@ -162,6 +162,47 @@ Sharing and commenting are the workflows that need an account:
|
|
|
162
162
|
The hosted Plans connector lives at `https://plan.agent-native.com/_agent-native/mcp`.
|
|
163
163
|
Never put shared secrets in skill files.
|
|
164
164
|
|
|
165
|
+
## Local-files privacy mode {#local-files}
|
|
166
|
+
|
|
167
|
+
For privacy-focused work, ask for local-files mode:
|
|
168
|
+
|
|
169
|
+
```text
|
|
170
|
+
Use /visual-plan in local-files mode. Do not write this plan to the Plan DB.
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
or set the convention for your agent environment:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
export AGENT_NATIVE_PLANS_MODE=local-files
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
In this mode the agent writes a local MDX folder under `plans/<slug>/` and must
|
|
180
|
+
not call the hosted Plan MCP tools. The durable files are:
|
|
181
|
+
|
|
182
|
+
- `plan.mdx`
|
|
183
|
+
- optional `canvas.mdx`
|
|
184
|
+
- optional `prototype.mdx`
|
|
185
|
+
- optional `.plan-state.json`
|
|
186
|
+
|
|
187
|
+
After writing the folder, the agent validates and previews it locally:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
agent-native plan local preview --dir plans/<slug> --kind plan
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
If you run the Plan app locally with the same `PLAN_LOCAL_DIR`, you can open the
|
|
194
|
+
read-only app route:
|
|
195
|
+
|
|
196
|
+
```text
|
|
197
|
+
http://localhost:<port>/local-plans/<slug>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Local-files mode prevents plan or recap content from going to the Agent-Native
|
|
201
|
+
Plan database. It also disables hosted sharing, browser comments, plan history,
|
|
202
|
+
and publish/export receipts until you explicitly opt into publishing. It does
|
|
203
|
+
not automatically make your coding agent's LLM local; choose a local or approved
|
|
204
|
+
model if that privacy boundary matters too.
|
|
205
|
+
|
|
165
206
|
## Useful prompts
|
|
166
207
|
|
|
167
208
|
- "Use `/visual-plan` before changing the auth flow."
|
|
@@ -169,6 +210,7 @@ Never put shared secrets in skill files.
|
|
|
169
210
|
- "Use `/visual-plan` on the Markdown plan below and make it easier to review."
|
|
170
211
|
- "Run `/visual-recap` on this PR so I can review the shape of the change first."
|
|
171
212
|
- "Use `/visual-recap` on the diff between `main` and this branch."
|
|
213
|
+
- "Use `/visual-recap` in local-files mode so no recap content is written to the Plan DB."
|
|
172
214
|
|
|
173
215
|
## Recovering from auth errors {#auth-errors}
|
|
174
216
|
|
|
@@ -205,7 +247,9 @@ persistence, or running a fully self-hosted review surface.
|
|
|
205
247
|
For fully offline, no-account use, you can run the Plans app locally and sync
|
|
206
248
|
your plans to your repo as MDX. This local mode is a separate, advanced path —
|
|
207
249
|
not the default hosted flow — and is best when you need everything to stay on
|
|
208
|
-
your machine and in version control.
|
|
250
|
+
your machine and in version control. For the stricter no-DB path, use
|
|
251
|
+
[local-files privacy mode](#local-files), which reads from MDX folders instead
|
|
252
|
+
of creating local SQL rows.
|
|
209
253
|
|
|
210
254
|
## What's next
|
|
211
255
|
|
package/package.json
CHANGED
|
@@ -95,9 +95,9 @@ For local stdio proxying, Codex/Cowork compatibility, or clients without
|
|
|
95
95
|
remote MCP OAuth, use the hosted connect fallback:
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
|
-
npx @agent-native/core connect https://dispatch.agent-native.com
|
|
98
|
+
npx @agent-native/core@latest connect https://dispatch.agent-native.com
|
|
99
99
|
# or, for an isolated app:
|
|
100
|
-
npx @agent-native/core connect https://mail.agent-native.com
|
|
100
|
+
npx @agent-native/core@latest connect https://mail.agent-native.com
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
The command opens the app in the browser, the user clicks **Authorize**, and a
|
|
@@ -111,6 +111,19 @@ Claude bearer-token entry is the migration path: the CLI replaces
|
|
|
111
111
|
`Authorization` headers with URL-only OAuth config and tells the user to
|
|
112
112
|
authenticate from `/mcp`.
|
|
113
113
|
|
|
114
|
+
To re-authenticate an already-installed local/fallback client without
|
|
115
|
+
reinstalling skills or connectors, use:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
npx @agent-native/core@latest reconnect https://dispatch.agent-native.com --client codex
|
|
119
|
+
# or:
|
|
120
|
+
npx @agent-native/core@latest connect reconnect https://dispatch.agent-native.com --client codex
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
With no URL, `reconnect` searches the selected client config for the existing
|
|
124
|
+
Agent Native MCP entry. Pass `--name <serverName>` when the config has multiple
|
|
125
|
+
entries or a custom server name.
|
|
126
|
+
|
|
114
127
|
Under the hood: a logged-in browser session mints an `A2A_SECRET`-signed JWT
|
|
115
128
|
carrying the caller's `sub` + `org_domain` and a unique `jti`, so tool runs
|
|
116
129
|
stay tenant-scoped via `runWithRequestContext`. The existing
|
|
@@ -339,14 +352,17 @@ and mutating actions are filtered out (`filterPublicAgentActions`). The full
|
|
|
339
352
|
surface appears when authenticated as a real caller: a deployed /
|
|
340
353
|
`AGENT_MODE=production` app, or a local app reached through `connect` /
|
|
341
354
|
`agent-native mcp install` (which provisions an identity-bearing token). A
|
|
342
|
-
sparse `tools/list`
|
|
343
|
-
|
|
355
|
+
sparse or empty `tools/list` is diagnostic, not proof of auth failure: check
|
|
356
|
+
OAuth scopes, compact-catalog filtering, and the client/server auth status
|
|
357
|
+
before telling the user they are unauthenticated.
|
|
344
358
|
|
|
345
359
|
## Do
|
|
346
360
|
|
|
347
361
|
- Do connect local/fallback clients to Dispatch with
|
|
348
|
-
`npx @agent-native/core connect https://dispatch.agent-native.com`;
|
|
349
|
-
|
|
362
|
+
`npx @agent-native/core@latest connect https://dispatch.agent-native.com`;
|
|
363
|
+
use `npx @agent-native/core@latest reconnect ...` for reauth without
|
|
364
|
+
reinstalling; use a direct app URL only when the host should be isolated to
|
|
365
|
+
one app.
|
|
350
366
|
- Do add a `link` builder to any action that produces or lists a navigable
|
|
351
367
|
resource (draft, event, dashboard, document).
|
|
352
368
|
- Do add `mcpApp` when a UI-capable MCP host should render an inline review or
|