@agent-native/core 0.79.20 → 0.79.22
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/corpus/README.md +2 -2
- package/corpus/core/CHANGELOG.md +16 -0
- package/corpus/core/docs/content/deployment.md +133 -0
- package/corpus/core/docs/content/faq.md +1 -1
- package/corpus/core/docs/content/multi-app-workspace.md +2 -0
- package/corpus/core/docs/content/tracking.md +3 -3
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/agent/engine/openai-compatible-endpoint.ts +25 -0
- package/corpus/core/src/agent/engine/provider-env-vars.ts +2 -0
- package/corpus/core/src/agent/engine/registry.ts +59 -11
- package/corpus/core/src/client/FeedbackButton.tsx +11 -1
- package/corpus/core/src/client/agent-engine-key.ts +57 -10
- package/corpus/core/src/client/analytics.ts +78 -27
- package/corpus/core/src/client/blocks/library/HighlightedCode.tsx +1 -1
- package/corpus/core/src/client/index.ts +2 -0
- package/corpus/core/src/client/session-replay.ts +159 -17
- package/corpus/core/src/client/settings/SettingsPanel.tsx +119 -4
- package/corpus/core/src/scripts/agent-engines/manage-agent-engine.ts +5 -0
- package/corpus/core/src/scripts/agent-engines/set-agent-engine.ts +8 -3
- package/corpus/core/src/scripts/agent-engines/test-agent-engine.ts +54 -6
- package/corpus/core/src/server/agent-engine-api-key-route.ts +83 -12
- package/corpus/core/src/server/core-routes-plugin.ts +26 -2
- package/corpus/core/src/styles/blocks.css +23 -7
- package/corpus/templates/analytics/actions/list-session-recordings.ts +1 -1
- package/corpus/templates/analytics/app/components/layout/MobileNav.tsx +5 -10
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +22 -4
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/SqlChartCard.tsx +64 -50
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/dashboard-layout.ts +38 -0
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/dashboard-sync.ts +89 -0
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/index.tsx +138 -59
- package/corpus/templates/analytics/changelog/2026-06-27-dashboard-charts-drag-smoothly-when-rearranging-panels.md +6 -0
- package/corpus/templates/analytics/changelog/2026-06-27-dashboard-email-reports-still-send-when-the-live-screenshot-.md +6 -0
- package/corpus/templates/analytics/changelog/2026-06-27-fixed-dashboard-edits-so-charts-no-longer-briefly-snap-back-.md +6 -0
- package/corpus/templates/analytics/changelog/2026-06-27-mobile-navigation-chrome-and-motion.md +6 -0
- package/corpus/templates/analytics/changelog/2026-06-27-session-replay-lists-now-show-only-signed-in-recordings-with.md +6 -0
- package/corpus/templates/analytics/changelog/2026-06-27-sidebar-loading-placeholders-are-visible-in-light-mode.md +6 -0
- package/corpus/templates/analytics/netlify.toml +4 -0
- package/corpus/templates/analytics/scripts/seed-session-replay.ts +1 -0
- package/corpus/templates/analytics/server/jobs/dashboard-report.ts +1 -0
- package/corpus/templates/analytics/server/lib/dashboard-report.ts +120 -29
- package/corpus/templates/analytics/server/lib/first-party-metric-catalog.ts +1 -1
- package/corpus/templates/analytics/server/lib/session-replay.ts +158 -46
- package/corpus/templates/assets/app/components/layout/Layout.tsx +1 -1
- package/corpus/templates/assets/changelog/2026-06-27-mobile-navigation-chrome-and-motion.md +6 -0
- package/corpus/templates/clips/app/components/capture-install-options.tsx +0 -9
- package/corpus/templates/clips/app/components/recorder/pre-record-panel.tsx +20 -4
- package/corpus/templates/clips/app/hooks/use-desktop-promo.ts +6 -2
- package/corpus/templates/clips/changelog/2026-06-27-clips-no-longer-shows-desktop-app-prompts-on-mobile-screens.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-27-desktop-storage-setup-flow.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-27-recorder-download-options-now-show-the-chrome-extension-and-.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-27-recorder-setup-mobile-capture-options.md +6 -0
- package/corpus/templates/clips/chrome-extension/package.json +1 -1
- package/corpus/templates/clips/chrome-extension/src/sentry.ts +17 -1
- package/corpus/templates/clips/desktop/package.json +1 -0
- package/corpus/templates/clips/desktop/scripts/check-tauri-prereqs.mjs +45 -0
- package/corpus/templates/clips/desktop/src/app.tsx +32 -3
- package/corpus/templates/clips/desktop/src/lib/sentry.ts +71 -0
- package/corpus/templates/clips/desktop/src/main.tsx +2 -0
- package/corpus/templates/clips/desktop/src/styles.css +67 -0
- package/corpus/templates/clips/desktop/src-tauri/Cargo.toml +2 -1
- package/corpus/templates/clips/desktop/src-tauri/build.rs +29 -0
- package/corpus/templates/clips/desktop/src-tauri/src/lib.rs +3 -0
- package/corpus/templates/clips/desktop/src-tauri/src/logfile.rs +1 -0
- package/corpus/templates/clips/desktop/src-tauri/src/sentry_report.rs +142 -0
- package/corpus/templates/clips/desktop/vite.config.ts +66 -0
- package/corpus/templates/design/app/components/layout/Layout.tsx +1 -1
- package/corpus/templates/design/changelog/2026-06-27-mobile-navigation-chrome-and-motion.md +6 -0
- package/corpus/templates/forms/actions/export-responses.ts +3 -2
- package/corpus/templates/forms/actions/list-responses.ts +2 -1
- package/corpus/templates/forms/actions/response-insights.ts +13 -4
- package/corpus/templates/forms/changelog/2026-06-27-anonymous-feedback-no-longer-shows-internal-agent-native-ano.md +6 -0
- package/corpus/templates/forms/server/handlers/submissions.ts +5 -8
- package/corpus/templates/forms/server/lib/integrations.ts +9 -6
- package/corpus/templates/forms/shared/submitter-email.ts +20 -0
- package/corpus/templates/forms/shared/types.ts +1 -1
- package/corpus/templates/plan/app/components/plan/wireframe/html-artboard.css +49 -10
- package/corpus/templates/slides/app/components/layout/Layout.tsx +1 -1
- package/corpus/templates/slides/changelog/2026-06-27-mobile-navigation-chrome-and-motion.md +6 -0
- package/dist/agent/engine/openai-compatible-endpoint.d.ts +3 -0
- package/dist/agent/engine/openai-compatible-endpoint.d.ts.map +1 -0
- package/dist/agent/engine/openai-compatible-endpoint.js +23 -0
- package/dist/agent/engine/openai-compatible-endpoint.js.map +1 -0
- package/dist/agent/engine/provider-env-vars.d.ts +1 -0
- package/dist/agent/engine/provider-env-vars.d.ts.map +1 -1
- package/dist/agent/engine/provider-env-vars.js +1 -0
- package/dist/agent/engine/provider-env-vars.js.map +1 -1
- package/dist/agent/engine/registry.d.ts.map +1 -1
- package/dist/agent/engine/registry.js +39 -12
- package/dist/agent/engine/registry.js.map +1 -1
- package/dist/client/FeedbackButton.d.ts.map +1 -1
- package/dist/client/FeedbackButton.js +6 -1
- package/dist/client/FeedbackButton.js.map +1 -1
- package/dist/client/agent-engine-key.d.ts +14 -0
- package/dist/client/agent-engine-key.d.ts.map +1 -1
- package/dist/client/agent-engine-key.js +35 -10
- package/dist/client/agent-engine-key.js.map +1 -1
- package/dist/client/analytics.d.ts.map +1 -1
- package/dist/client/analytics.js +71 -24
- package/dist/client/analytics.js.map +1 -1
- package/dist/client/blocks/library/HighlightedCode.d.ts +1 -1
- package/dist/client/blocks/library/HighlightedCode.js +1 -1
- package/dist/client/blocks/library/HighlightedCode.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/session-replay.d.ts +1 -1
- package/dist/client/session-replay.d.ts.map +1 -1
- package/dist/client/session-replay.js +115 -17
- package/dist/client/session-replay.js.map +1 -1
- package/dist/client/settings/SettingsPanel.d.ts.map +1 -1
- package/dist/client/settings/SettingsPanel.js +42 -6
- package/dist/client/settings/SettingsPanel.js.map +1 -1
- package/dist/collab/routes.d.ts +2 -2
- package/dist/file-upload/actions/upload-image.d.ts +2 -2
- package/dist/notifications/routes.d.ts +1 -1
- package/dist/observability/routes.d.ts +7 -7
- package/dist/progress/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/scripts/agent-engines/manage-agent-engine.d.ts.map +1 -1
- package/dist/scripts/agent-engines/manage-agent-engine.js +4 -0
- package/dist/scripts/agent-engines/manage-agent-engine.js.map +1 -1
- package/dist/scripts/agent-engines/set-agent-engine.d.ts.map +1 -1
- package/dist/scripts/agent-engines/set-agent-engine.js +5 -4
- package/dist/scripts/agent-engines/set-agent-engine.js.map +1 -1
- package/dist/scripts/agent-engines/test-agent-engine.d.ts.map +1 -1
- package/dist/scripts/agent-engines/test-agent-engine.js +37 -5
- package/dist/scripts/agent-engines/test-agent-engine.js.map +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +5 -5
- package/dist/server/agent-engine-api-key-route.d.ts.map +1 -1
- package/dist/server/agent-engine-api-key-route.js +71 -11
- package/dist/server/agent-engine-api-key-route.js.map +1 -1
- package/dist/server/core-routes-plugin.d.ts.map +1 -1
- package/dist/server/core-routes-plugin.js +20 -3
- package/dist/server/core-routes-plugin.js.map +1 -1
- package/dist/styles/blocks.css +23 -7
- package/docs/content/deployment.md +133 -0
- package/docs/content/faq.md +1 -1
- package/docs/content/multi-app-workspace.md +2 -0
- package/docs/content/tracking.md +3 -3
- package/package.json +1 -1
package/dist/styles/blocks.css
CHANGED
|
@@ -1231,6 +1231,7 @@
|
|
|
1231
1231
|
--wf-muted: var(--plan-muted, hsl(var(--muted-foreground)));
|
|
1232
1232
|
--wf-line: var(--plan-line, hsl(var(--border)));
|
|
1233
1233
|
--wf-sketch: var(--plan-muted-line, hsl(var(--border)));
|
|
1234
|
+
--wf-diagram-line: var(--wf-line);
|
|
1234
1235
|
--wf-paper: var(--plan-document, hsl(var(--background)));
|
|
1235
1236
|
--wf-card: var(--plan-block, hsl(var(--card)));
|
|
1236
1237
|
--wf-accent: hsl(var(--ring));
|
|
@@ -1256,6 +1257,10 @@
|
|
|
1256
1257
|
line-height: 1.4;
|
|
1257
1258
|
}
|
|
1258
1259
|
|
|
1260
|
+
.plan-diagram-frame[data-theme="dark"] {
|
|
1261
|
+
--wf-diagram-line: color-mix(in srgb, var(--wf-sketch) 72%, var(--wf-line));
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1259
1264
|
.plan-diagram-frame[data-style="sketchy"] {
|
|
1260
1265
|
--wf-font: var(--wf-font-hand);
|
|
1261
1266
|
line-height: 1.32;
|
|
@@ -1275,9 +1280,7 @@
|
|
|
1275
1280
|
}
|
|
1276
1281
|
|
|
1277
1282
|
.plan-diagram-frame-content
|
|
1278
|
-
>
|
|
1279
|
-
[data-diagram-frame]
|
|
1280
|
-
) {
|
|
1283
|
+
> .diagram-panel:not([data-rough]):not([data-diagram-frame]) {
|
|
1281
1284
|
--rough-skip: 1;
|
|
1282
1285
|
background: transparent;
|
|
1283
1286
|
border-color: transparent;
|
|
@@ -1318,7 +1321,8 @@
|
|
|
1318
1321
|
|
|
1319
1322
|
.plan-diagram-frame
|
|
1320
1323
|
:is(.diagram-panel, .diagram-card, .diagram-node, .diagram-box) {
|
|
1321
|
-
|
|
1324
|
+
--rough-stroke: var(--wf-diagram-line);
|
|
1325
|
+
border: 1.25px solid var(--wf-diagram-line);
|
|
1322
1326
|
border-radius: var(--wf-radius);
|
|
1323
1327
|
background: var(--wf-card);
|
|
1324
1328
|
}
|
|
@@ -1333,7 +1337,8 @@
|
|
|
1333
1337
|
[class*="panel"],
|
|
1334
1338
|
[class*="box"]
|
|
1335
1339
|
) {
|
|
1336
|
-
|
|
1340
|
+
--rough-stroke: var(--wf-diagram-line);
|
|
1341
|
+
border-color: var(--wf-diagram-line) !important;
|
|
1337
1342
|
background: var(--wf-card) !important;
|
|
1338
1343
|
color: var(--wf-ink) !important;
|
|
1339
1344
|
}
|
|
@@ -1366,7 +1371,8 @@
|
|
|
1366
1371
|
|
|
1367
1372
|
.plan-diagram-frame
|
|
1368
1373
|
:is(.diagram-pill, [class*="pill"], [class*="badge"], [class*="chip"]) {
|
|
1369
|
-
|
|
1374
|
+
--rough-stroke: var(--wf-diagram-line);
|
|
1375
|
+
border-color: var(--wf-diagram-line) !important;
|
|
1370
1376
|
background: var(--wf-paper) !important;
|
|
1371
1377
|
color: var(--wf-ink) !important;
|
|
1372
1378
|
}
|
|
@@ -1411,7 +1417,7 @@
|
|
|
1411
1417
|
* variant used across the docs diagrams stays pill-shaped, not a full bar. */
|
|
1412
1418
|
width: fit-content;
|
|
1413
1419
|
max-width: 100%;
|
|
1414
|
-
border: 1px solid var(--wf-line);
|
|
1420
|
+
border: 1px solid var(--wf-diagram-line);
|
|
1415
1421
|
border-radius: 999px;
|
|
1416
1422
|
padding: 3px 11px;
|
|
1417
1423
|
color: var(--wf-ink);
|
|
@@ -1453,6 +1459,16 @@
|
|
|
1453
1459
|
[data-rough],
|
|
1454
1460
|
hr
|
|
1455
1461
|
) {
|
|
1462
|
+
border-color: color-mix(
|
|
1463
|
+
in srgb,
|
|
1464
|
+
var(--wf-diagram-line) 54%,
|
|
1465
|
+
transparent
|
|
1466
|
+
) !important;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
.plan-diagram-frame[data-rough-ready]
|
|
1470
|
+
.plan-diagram-frame-content
|
|
1471
|
+
> .diagram-panel:not([data-rough]):not([data-diagram-frame]) {
|
|
1456
1472
|
border-color: transparent !important;
|
|
1457
1473
|
}
|
|
1458
1474
|
|
|
@@ -145,6 +145,139 @@ EXPOSE 3000
|
|
|
145
145
|
CMD ["node", ".output/server/index.mjs"]
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
+
### Self-hosted workspace with Docker Compose {#workspace-docker-compose}
|
|
149
|
+
|
|
150
|
+
The Dockerfile above is for one standalone app. A workspace is not one Nitro
|
|
151
|
+
server process today: each app still builds to its own `.output/` directory and
|
|
152
|
+
runs its own Node/Nitro server. For a VPS, run one container per workspace app,
|
|
153
|
+
point every app at the same Postgres database and shared production secrets, and
|
|
154
|
+
put a reverse proxy in front that routes path prefixes (`/mail`, `/calendar`,
|
|
155
|
+
...) to the matching app container.
|
|
156
|
+
|
|
157
|
+
Build each app with the same base path that the proxy will use at runtime. The
|
|
158
|
+
base path is a build-time input for the client bundle and a runtime input for
|
|
159
|
+
the server:
|
|
160
|
+
|
|
161
|
+
```bash maxLines=8
|
|
162
|
+
APP_BASE_PATH=/mail VITE_APP_BASE_PATH=/mail npx @agent-native/core@latest build
|
|
163
|
+
node .output/server/index.mjs
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
A reusable workspace Dockerfile can take the app name and path prefix as build
|
|
167
|
+
arguments:
|
|
168
|
+
|
|
169
|
+
```dockerfile maxLines=12
|
|
170
|
+
FROM node:24-slim AS build
|
|
171
|
+
WORKDIR /workspace
|
|
172
|
+
RUN corepack enable
|
|
173
|
+
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
|
174
|
+
COPY packages ./packages
|
|
175
|
+
COPY apps ./apps
|
|
176
|
+
ARG APP_NAME
|
|
177
|
+
ARG APP_BASE_PATH
|
|
178
|
+
ENV APP_BASE_PATH=$APP_BASE_PATH
|
|
179
|
+
ENV VITE_APP_BASE_PATH=$APP_BASE_PATH
|
|
180
|
+
RUN pnpm install --frozen-lockfile
|
|
181
|
+
RUN pnpm --dir apps/$APP_NAME build
|
|
182
|
+
|
|
183
|
+
FROM node:24-slim
|
|
184
|
+
WORKDIR /app
|
|
185
|
+
ARG APP_NAME
|
|
186
|
+
ARG APP_BASE_PATH
|
|
187
|
+
ENV NODE_ENV=production
|
|
188
|
+
ENV PORT=3000
|
|
189
|
+
ENV APP_BASE_PATH=$APP_BASE_PATH
|
|
190
|
+
COPY --from=build /workspace/apps/$APP_NAME/.output .output
|
|
191
|
+
EXPOSE 3000
|
|
192
|
+
CMD ["node", ".output/server/index.mjs"]
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Then compose Postgres, the app containers, and your proxy. This example uses
|
|
196
|
+
Caddy because it can terminate HTTP locally or sit behind Cloudflare's SSL
|
|
197
|
+
proxy, but the important part is the path-prefix routing:
|
|
198
|
+
|
|
199
|
+
```yaml maxLines=30
|
|
200
|
+
services:
|
|
201
|
+
postgres:
|
|
202
|
+
image: postgres:17
|
|
203
|
+
restart: unless-stopped
|
|
204
|
+
environment:
|
|
205
|
+
POSTGRES_DB: agent_native
|
|
206
|
+
POSTGRES_USER: agent_native
|
|
207
|
+
POSTGRES_PASSWORD: change-me
|
|
208
|
+
volumes:
|
|
209
|
+
- postgres-data:/var/lib/postgresql/data
|
|
210
|
+
|
|
211
|
+
mail:
|
|
212
|
+
build:
|
|
213
|
+
context: .
|
|
214
|
+
dockerfile: Dockerfile.workspace-app
|
|
215
|
+
args:
|
|
216
|
+
APP_NAME: mail
|
|
217
|
+
APP_BASE_PATH: /mail
|
|
218
|
+
restart: unless-stopped
|
|
219
|
+
environment:
|
|
220
|
+
DATABASE_URL: postgres://agent_native:change-me@postgres:5432/agent_native
|
|
221
|
+
BETTER_AUTH_URL: https://agents.example.com/mail
|
|
222
|
+
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
|
223
|
+
A2A_SECRET: ${A2A_SECRET}
|
|
224
|
+
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
|
|
225
|
+
depends_on:
|
|
226
|
+
- postgres
|
|
227
|
+
|
|
228
|
+
calendar:
|
|
229
|
+
build:
|
|
230
|
+
context: .
|
|
231
|
+
dockerfile: Dockerfile.workspace-app
|
|
232
|
+
args:
|
|
233
|
+
APP_NAME: calendar
|
|
234
|
+
APP_BASE_PATH: /calendar
|
|
235
|
+
restart: unless-stopped
|
|
236
|
+
environment:
|
|
237
|
+
DATABASE_URL: postgres://agent_native:change-me@postgres:5432/agent_native
|
|
238
|
+
BETTER_AUTH_URL: https://agents.example.com/calendar
|
|
239
|
+
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
|
240
|
+
A2A_SECRET: ${A2A_SECRET}
|
|
241
|
+
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
|
|
242
|
+
depends_on:
|
|
243
|
+
- postgres
|
|
244
|
+
|
|
245
|
+
proxy:
|
|
246
|
+
image: caddy:2
|
|
247
|
+
restart: unless-stopped
|
|
248
|
+
ports:
|
|
249
|
+
- "80:80"
|
|
250
|
+
- "443:443"
|
|
251
|
+
volumes:
|
|
252
|
+
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
|
253
|
+
depends_on:
|
|
254
|
+
- mail
|
|
255
|
+
- calendar
|
|
256
|
+
|
|
257
|
+
volumes:
|
|
258
|
+
postgres-data:
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
```caddyfile
|
|
262
|
+
agents.example.com {
|
|
263
|
+
reverse_proxy /mail* mail:3000
|
|
264
|
+
reverse_proxy /calendar* calendar:3000
|
|
265
|
+
}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Notes for this shape:
|
|
269
|
+
|
|
270
|
+
- Keep `DATABASE_URL`, `BETTER_AUTH_SECRET`, `A2A_SECRET`, and other production
|
|
271
|
+
secrets identical across app containers when you want shared auth, shared
|
|
272
|
+
credentials, and cross-app A2A.
|
|
273
|
+
- Set `BETTER_AUTH_URL` to the public URL for that app path. OAuth callback URLs
|
|
274
|
+
should use the same public URL.
|
|
275
|
+
- Do not rely on the container filesystem for production data; use Postgres (or
|
|
276
|
+
another persistent SQL backend) for `DATABASE_URL`.
|
|
277
|
+
- If Cloudflare terminates TLS in front of the VPS, configure Cloudflare to send
|
|
278
|
+
normal `X-Forwarded-Proto` / `X-Forwarded-Host` headers and route the public
|
|
279
|
+
host to the proxy container.
|
|
280
|
+
|
|
148
281
|
## Vercel {#vercel}
|
|
149
282
|
|
|
150
283
|
```ts
|
package/docs/content/faq.md
CHANGED
|
@@ -54,7 +54,7 @@ Yes. Pick any host that runs Node — Netlify, Vercel, Cloudflare, AWS, Deno Dep
|
|
|
54
54
|
|
|
55
55
|
### What AI models does it support? {#what-models}
|
|
56
56
|
|
|
57
|
-
Anthropic Claude, OpenAI (GPT-5 family), Google Gemini, and any provider that speaks the OpenAI API shape
|
|
57
|
+
Anthropic Claude, OpenAI (GPT-5 family), Google Gemini, and any provider that speaks the OpenAI API shape. For OpenAI-compatible gateways like LiteLLM, choose OpenAI in Settings and add the gateway URL under Advanced. You configure the model in settings; switching is a config change, not a code rewrite. The framework's heaviest tested path is Claude, so that's the default recommendation.
|
|
58
58
|
|
|
59
59
|
### Do I need to know AI/ML? {#do-i-need-to-know-ai}
|
|
60
60
|
|
|
@@ -289,6 +289,8 @@ These settings only affect read-only page navigation. Framework tools, agent cha
|
|
|
289
289
|
|
|
290
290
|
Prefer each app on its own domain (`mail.company.com`, `calendar.company.com`)? Every app in the workspace is still an independent deployable — `cd apps/mail && npx @agent-native/core@latest build` behaves exactly like a standalone scaffold. Cross-app A2A then goes through the standard JWT-signed path with a shared `A2A_SECRET`. Cross-domain SSO between separately-deployed apps is handled by identity federation with Dispatch as the hub — see [Cross-App SSO](/docs/cross-app-sso); the unified single-origin deploy avoids needing it.
|
|
291
291
|
|
|
292
|
+
For a self-hosted VPS or Docker Compose setup on one origin, build and run one container per app with its own path prefix (`APP_BASE_PATH=/mail`, `APP_BASE_PATH=/calendar`, ...), then route those prefixes through a reverse proxy. See [Deployment — Self-hosted workspace with Docker Compose](/docs/deployment#workspace-docker-compose) for the Dockerfile and compose example.
|
|
293
|
+
|
|
292
294
|
### Shared database, shared credentials
|
|
293
295
|
|
|
294
296
|
Whatever you pick, point every app at the same `DATABASE_URL` for cross-app state out of the box: one set of user accounts, one set of organizations, one set of shared settings. If each app has its own database, the workspace pattern still works — you just lose that shared-state story.
|
package/docs/content/tracking.md
CHANGED
|
@@ -144,7 +144,6 @@ configureTracking({
|
|
|
144
144
|
endpoint: "https://analytics.example.com/api/analytics/track",
|
|
145
145
|
sessionReplay: {
|
|
146
146
|
enabled: true,
|
|
147
|
-
requireSignedInUser: true,
|
|
148
147
|
sampleRate: 0.1,
|
|
149
148
|
},
|
|
150
149
|
getDefaultProps: (_event, props) => ({
|
|
@@ -163,11 +162,12 @@ Agent Native template roots already call `configureTracking()`. Hosted template
|
|
|
163
162
|
VITE_AGENT_NATIVE_ANALYTICS_PUBLIC_KEY=anpk_...
|
|
164
163
|
VITE_AGENT_NATIVE_ANALYTICS_ENDPOINT=https://analytics.example.com/api/analytics/track
|
|
165
164
|
VITE_AGENT_NATIVE_SESSION_REPLAY_ENABLED=true
|
|
166
|
-
VITE_AGENT_NATIVE_SESSION_REPLAY_REQUIRE_AUTH=true
|
|
167
165
|
VITE_AGENT_NATIVE_SESSION_REPLAY_SAMPLE_RATE=0.1
|
|
168
166
|
```
|
|
169
167
|
|
|
170
|
-
The browser helper also performs a best-effort, non-blocking read of the current Agent Native auth session.
|
|
168
|
+
The browser helper also performs a best-effort, non-blocking read of the current Agent Native auth session. Replay is signed-in-only by default: when `sessionReplay` is enabled, recording does not start unless the session resolves to a user email address. Signed-in replays include email-backed `userId`/`userEmail` plus `orgId`.
|
|
169
|
+
|
|
170
|
+
Set `sessionReplay.requireSignedInUser: false` or `VITE_AGENT_NATIVE_SESSION_REPLAY_REQUIRE_AUTH=false` only for an intentional anonymous replay deployment. When auth gating is disabled, anonymous recordings remain queryable by anonymous visitor, session, app/template, hostname, and path.
|
|
171
171
|
|
|
172
172
|
Session replay is sampled deterministically per browser session. A `sampleRate` of `0.1` records about 10% of eligible sessions; use `1` when the eligible population is intentionally small, such as logged-in-only dogfooding.
|
|
173
173
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.22",
|
|
4
4
|
"description": "Framework for agent-native application development — where AI agents and UI share SQL state, actions, and context",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|