@agent-native/core 0.167.1 → 0.168.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.
Files changed (117) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/templates/analytics/.agents/skills/agent-native-docs/SKILL.md +11 -0
  3. package/corpus/templates/assets/.agents/skills/agent-native-docs/SKILL.md +11 -0
  4. package/corpus/templates/brain/.agents/skills/agent-native-docs/SKILL.md +11 -0
  5. package/corpus/templates/brain/actions/list-sources.ts +17 -7
  6. package/corpus/templates/brain/app/components/brain/Surface.tsx +4 -2
  7. package/corpus/templates/brain/app/lib/brain.ts +13 -3
  8. package/corpus/templates/brain/server/lib/brain-health.ts +5 -8
  9. package/corpus/templates/brain/server/lib/brain.ts +1 -0
  10. package/corpus/templates/brain/server/lib/capture-sanitization.ts +5 -0
  11. package/corpus/templates/brain/server/routes/api/brain/queue/run.post.ts +3 -2
  12. package/corpus/templates/calendar/.agents/skills/agent-native-docs/SKILL.md +11 -0
  13. package/corpus/templates/chat/.agents/skills/agent-native-docs/SKILL.md +11 -0
  14. package/corpus/templates/clips/.agents/skills/agent-native-docs/SKILL.md +11 -0
  15. package/corpus/templates/clips/app/routes/download.tsx +78 -131
  16. package/corpus/templates/clips/desktop/src/app.tsx +11 -10
  17. package/corpus/templates/clips/desktop/src/lib/desktop-oauth-window.ts +23 -0
  18. package/corpus/templates/content/.agents/skills/agent-native-docs/SKILL.md +11 -0
  19. package/corpus/templates/crm/.agents/skills/agent-native-docs/SKILL.md +11 -0
  20. package/corpus/templates/design/.agents/skills/agent-native-docs/SKILL.md +11 -0
  21. package/corpus/templates/dispatch/.agents/skills/agent-native-docs/SKILL.md +11 -0
  22. package/corpus/templates/factory/.agents/skills/agent-native-docs/SKILL.md +11 -0
  23. package/corpus/templates/forms/.agents/skills/agent-native-docs/SKILL.md +11 -0
  24. package/corpus/templates/macros/.agents/skills/agent-native-docs/SKILL.md +11 -0
  25. package/corpus/templates/mail/.agents/skills/agent-native-docs/SKILL.md +11 -0
  26. package/corpus/templates/plan/.agents/skills/agent-native-docs/SKILL.md +11 -0
  27. package/corpus/templates/slides/.agents/skills/agent-native-docs/SKILL.md +11 -0
  28. package/corpus/templates/tasks/.agents/skills/agent-native-docs/SKILL.md +11 -0
  29. package/dist/chat-threads/store.d.ts +7 -0
  30. package/dist/chat-threads/store.js +15 -0
  31. package/dist/client/AboutAgentNativeDialog.d.ts +5 -0
  32. package/dist/client/AboutAgentNativeDialog.js +56 -0
  33. package/dist/client/AgentPanel.d.ts +5 -1
  34. package/dist/client/AgentPanel.js +8 -8
  35. package/dist/client/AssistantChat.d.ts +3 -1
  36. package/dist/client/AssistantChat.js +22 -6
  37. package/dist/client/CommandMenu.d.ts +6 -1
  38. package/dist/client/CommandMenu.js +46 -3
  39. package/dist/client/EnvironmentBadge.js +4 -1
  40. package/dist/client/MultiTabAssistantChat.d.ts +3 -1
  41. package/dist/client/MultiTabAssistantChat.js +5 -4
  42. package/dist/client/agent-native-version.d.ts +12 -0
  43. package/dist/client/agent-native-version.js +36 -0
  44. package/dist/client/agent-page/AgentJobsTab.js +39 -6
  45. package/dist/client/agent-page/AutomationScheduleDialog.d.ts +10 -1
  46. package/dist/client/agent-page/AutomationScheduleDialog.js +3 -2
  47. package/dist/client/agent-page/ScheduledTriggerNotice.d.ts +22 -0
  48. package/dist/client/agent-page/ScheduledTriggerNotice.js +84 -0
  49. package/dist/client/agent-page/scheduled-trigger-state.d.ts +28 -0
  50. package/dist/client/agent-page/scheduled-trigger-state.js +10 -0
  51. package/dist/client/agent-page/use-jobs.d.ts +7 -0
  52. package/dist/client/agent-page/use-jobs.js +14 -0
  53. package/dist/client/blocks/library/diagram.config.d.ts +4 -1
  54. package/dist/client/blocks/library/diagram.js +1 -1
  55. package/dist/client/chat/run-recovery.js +15 -7
  56. package/dist/client/use-chat-threads.d.ts +7 -0
  57. package/dist/client/use-chat-threads.js +144 -40
  58. package/dist/collab/routes.d.ts +1 -1
  59. package/dist/config.d.ts +3 -1
  60. package/dist/config.js +14 -9
  61. package/dist/deploy/build.d.ts +5 -0
  62. package/dist/deploy/build.js +12 -1
  63. package/dist/framework-tools.js +1 -0
  64. package/dist/jobs/actions/get-scheduled-trigger-status.d.ts +13 -0
  65. package/dist/jobs/actions/get-scheduled-trigger-status.js +21 -0
  66. package/dist/localization/core-messages/ar-SA.js +6 -0
  67. package/dist/localization/core-messages/de-DE.js +6 -0
  68. package/dist/localization/core-messages/en-US.d.ts +6 -0
  69. package/dist/localization/core-messages/en-US.js +6 -0
  70. package/dist/localization/core-messages/es-ES.js +6 -0
  71. package/dist/localization/core-messages/fr-FR.js +6 -0
  72. package/dist/localization/core-messages/hi-IN.js +6 -0
  73. package/dist/localization/core-messages/ja-JP.js +6 -0
  74. package/dist/localization/core-messages/ko-KR.js +6 -0
  75. package/dist/localization/core-messages/pt-BR.js +6 -0
  76. package/dist/localization/core-messages/zh-CN.js +6 -0
  77. package/dist/localization/core-messages/zh-TW.js +6 -0
  78. package/dist/localization/core-messages.d.ts +6 -0
  79. package/dist/localization/default-messages.d.ts +14 -0
  80. package/dist/localization/default-messages.js +14 -0
  81. package/dist/mcp/screen-memory-stdio.d.ts +7 -7
  82. package/dist/notifications/routes.d.ts +1 -1
  83. package/dist/observability/routes.d.ts +3 -3
  84. package/dist/provider-api/actions/custom-provider-registration.d.ts +1 -1
  85. package/dist/provider-api/actions/provider-api.d.ts +12 -12
  86. package/dist/resources/handlers.d.ts +2 -2
  87. package/dist/server/action-discovery.js +4 -0
  88. package/dist/server/agent-chat/recurring-jobs-runtime.d.ts +42 -1
  89. package/dist/server/agent-chat/recurring-jobs-runtime.js +102 -9
  90. package/dist/server/agent-chat-plugin.d.ts +3 -1
  91. package/dist/server/agent-chat-plugin.js +115 -24
  92. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  93. package/dist/server/attribution.d.ts +29 -0
  94. package/dist/server/attribution.js +68 -0
  95. package/dist/server/auth.js +58 -15
  96. package/dist/server/better-auth-instance.js +16 -4
  97. package/dist/server/identity-sso.js +14 -2
  98. package/dist/server/realtime-token.d.ts +1 -1
  99. package/dist/server/request-context.d.ts +8 -0
  100. package/dist/server/request-context.js +4 -0
  101. package/dist/templates/chat/.agents/skills/agent-native-docs/SKILL.md +11 -0
  102. package/dist/templates/default/.agents/skills/agent-native-docs/SKILL.md +11 -0
  103. package/dist/templates/headless/.agents/skills/agent-native-docs/SKILL.md +11 -0
  104. package/dist/templates/workspace-core/.agents/skills/agent-native-docs/SKILL.md +11 -0
  105. package/dist/vite/agent-native-config-loader.js +1 -1
  106. package/dist/vite/client.js +19 -8
  107. package/dist/vite/package-versions.d.ts +1 -0
  108. package/dist/vite/package-versions.js +97 -0
  109. package/docs/content/agent-native-config.mdx +55 -31
  110. package/docs/content/deployment.mdx +3 -1
  111. package/docs/content/environment-variables.mdx +51 -14
  112. package/docs/content/recurring-jobs.mdx +6 -0
  113. package/package.json +2 -2
  114. package/src/templates/chat/.agents/skills/agent-native-docs/SKILL.md +11 -0
  115. package/src/templates/default/.agents/skills/agent-native-docs/SKILL.md +11 -0
  116. package/src/templates/headless/.agents/skills/agent-native-docs/SKILL.md +11 -0
  117. package/src/templates/workspace-core/.agents/skills/agent-native-docs/SKILL.md +11 -0
@@ -16,13 +16,19 @@ The resolved configuration is serialized into the browser bundle. Treat every
16
16
  value in these files as public. Put credentials and deployment-specific values
17
17
  in the environment or the scoped secret store instead.
18
18
 
19
- This file is the home for public, app-owned configuration - the values that
20
- describe how an app should behave or what capabilities it exposes. Prefer it
21
- for new non-secret app settings. When the same public setting needs a
22
- deployment-specific value, the framework also accepts a deterministic
23
- `AGENT_NATIVE_CONFIG*` environment alias. Environment variables still own
24
- secrets, provider credentials, database URLs, host-specific values, and other
25
- server-only values that are not part of this public config.
19
+ This file is the primary home for public, app-owned configuration - the values
20
+ that describe how an app should behave or what capabilities it exposes. Put
21
+ the committed default here first. When the same public setting needs a
22
+ deployment-specific value, the framework accepts a deterministic
23
+ `AGENT_NATIVE_CONFIG*` environment alias as the final override. Environment
24
+ variables still own secrets, provider credentials, database URLs, host-specific
25
+ values, and other server-only values that are not part of this public config.
26
+
27
+ The server-only `defineAppConfig()` schema is a deliberate boundary, not a
28
+ second spelling of this file. It configures behavior that must stay out of the
29
+ browser bundle, such as credential scoping, webhook trust, and workspace
30
+ runtime wiring. Its declared environment aliases are documented separately in
31
+ the maintainer environment inventory.
26
32
 
27
33
  ## File location and loading
28
34
 
@@ -109,13 +115,23 @@ Every supported public config path has an environment alias under the
109
115
  `AGENT_NATIVE_CONFIG` namespace. Convert each lower-camel-case path segment to
110
116
  upper snake case and join segments with underscores:
111
117
 
112
- | Config path | Environment alias |
113
- | ---------------------- | ------------------------------------------ |
114
- | the whole config | `AGENT_NATIVE_CONFIG` |
115
- | `runtime` | `AGENT_NATIVE_CONFIG_RUNTIME` |
116
- | `runtime.auth` | `AGENT_NATIVE_CONFIG_RUNTIME_AUTH` |
117
- | `runtime.auth.enabled` | `AGENT_NATIVE_CONFIG_RUNTIME_AUTH_ENABLED` |
118
- | `translations.locales` | `AGENT_NATIVE_CONFIG_TRANSLATIONS_LOCALES` |
118
+ | Config path | Environment alias |
119
+ | ------------------------------ | -------------------------------------------------- |
120
+ | the whole config | `AGENT_NATIVE_CONFIG` |
121
+ | `onboarding.firstRun` | `AGENT_NATIVE_CONFIG_ONBOARDING_FIRST_RUN` |
122
+ | `runtime` | `AGENT_NATIVE_CONFIG_RUNTIME` |
123
+ | `runtime.auth` | `AGENT_NATIVE_CONFIG_RUNTIME_AUTH` |
124
+ | `runtime.auth.enabled` | `AGENT_NATIVE_CONFIG_RUNTIME_AUTH_ENABLED` |
125
+ | `runtime.database.required` | `AGENT_NATIVE_CONFIG_RUNTIME_DATABASE_REQUIRED` |
126
+ | `runtime.environment.required` | `AGENT_NATIVE_CONFIG_RUNTIME_ENVIRONMENT_REQUIRED` |
127
+ | `deployment.environment` | `AGENT_NATIVE_CONFIG_DEPLOYMENT_ENVIRONMENT` |
128
+ | `diagnostics.failOnBuild` | `AGENT_NATIVE_CONFIG_DIAGNOSTICS_FAIL_ON_BUILD` |
129
+ | `instructions.runtime` | `AGENT_NATIVE_CONFIG_INSTRUCTIONS_RUNTIME` |
130
+ | `instructions.development` | `AGENT_NATIVE_CONFIG_INSTRUCTIONS_DEVELOPMENT` |
131
+ | `translations.locales` | `AGENT_NATIVE_CONFIG_TRANSLATIONS_LOCALES` |
132
+ | `changelog.enabled` | `AGENT_NATIVE_CONFIG_CHANGELOG_ENABLED` |
133
+ | `harness` | `AGENT_NATIVE_CONFIG_HARNESS` |
134
+ | `harness.runtimes` | `AGENT_NATIVE_CONFIG_HARNESS_RUNTIMES` |
119
135
 
120
136
  The whole config, an object section, or a deeply nested object can be supplied
121
137
  as one JSON string. Arrays also use JSON strings. More-specific aliases are
@@ -148,12 +164,16 @@ scoped secret and connection stores.
148
164
  ## Configuration vs environment variables
149
165
 
150
166
  Use the config file or JSON manifest for stable, non-secret application
151
- defaults. Use environment variables or the scoped secret store for values that
152
- belong to a deployment or a user or organization connection:
167
+ defaults. Use the canonical config alias when a public value needs a deployment
168
+ override. Use a separate environment variable or the scoped secret store only
169
+ when the value belongs to a deployment, the server, or a user or organization
170
+ connection:
153
171
 
154
172
  | Put it in | Examples | Notes |
155
173
  | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
156
- | `agent-native.config.ts` or the shared section of `agent-native.json` | onboarding mode, required runtime contracts, release lane, shipped locales, changelog, hosted harness capabilities | Committed app policy. It is resolved during the Vite config phase and can use `command`, `mode`, `isDev`, and `isBuild`. |
174
+ | `agent-native.config.ts` or the shared section of `agent-native.json` | onboarding mode, required runtime contracts, release lane, shipped locales, changelog, hosted harness capabilities | Committed public app policy. It is resolved during the Vite config phase and can use `command`, `mode`, `isDev`, and `isBuild`. |
175
+ | `AGENT_NATIVE_CONFIG_<PATH>` | A deployment-specific public override of one config path | Final override for the typed/JSON public config. Its value is bundled for the browser, so it is never a secret. |
176
+ | Server-only `defineAppConfig()` | credential scoping, webhook trust, agent runtime controls, workspace wiring | Not serialized into the browser. Its declared aliases are the deliberate exception for server behavior. |
157
177
  | Deployment environment variables | `DATABASE_URL`, `BETTER_AUTH_SECRET`, `APP_URL`, `NITRO_PRESET`, provider keys, host-specific toggles | Set by the deployment platform or local `.env`. Keep secret values out of source control. See [Environment Variables](/docs/environment-variables). |
158
178
  | `runtime.environment.required` | `"PUBLIC_API_ORIGIN"`, `"STRIPE_PUBLISHABLE_KEY"` | A declaration of names the production readiness check must find. It does not set, expose, or replace the values. |
159
179
 
@@ -282,26 +302,28 @@ the same setting as the separate `doctor.failOnBuild` option documented in the
282
302
 
283
303
  ## Precedence and merge behavior
284
304
 
285
- For a Vite app, the effective shared configuration follows this order:
305
+ For a Vite app, the effective public configuration follows this order:
286
306
 
287
307
  1. Framework defaults. First-run onboarding defaults to `off`; auth and a
288
308
  persistent database default to required in production diagnostics.
289
- 2. `agent-native.json` at the app root.
290
- 3. `AGENT_NATIVE_CONFIG` and its path aliases from the deployment environment.
291
- The legacy `AGENT_NATIVE_DEPLOYMENT_ENVIRONMENT` variable remains a
292
- fallback for deployment inference only; it does not override explicit JSON,
293
- typed, or canonical config-alias values.
309
+ 2. A workspace-level typed config, when the app is inside a configured
310
+ workspace.
311
+ 3. `agent-native.json` at the app root.
294
312
  4. The automatically loaded typed file, if present. The loader checks these
295
313
  candidates in order: `agent-native.config.ts`, `agent-native.ts`,
296
314
  `agent-native.mts`, `agent-native.config.mts`.
297
315
  5. An explicit `agentNativeConfig` passed to `agentNative()` or the legacy
298
316
  `defineConfig()` wrapper. Supplying this option skips automatic typed-file
299
317
  loading, while the explicit value still overlays `agent-native.json`.
300
- 6. For onboarding only, the legacy public Vite variables
318
+ 6. `AGENT_NATIVE_CONFIG` and its path aliases from the deployment environment.
319
+ These are the final public-config overrides. The legacy
320
+ `AGENT_NATIVE_DEPLOYMENT_ENVIRONMENT` variable remains a fallback for
321
+ deployment inference only; it does not override an explicit config value.
322
+ 7. For onboarding only, the legacy public Vite variables
301
323
  `VITE_AGENT_NATIVE_FIRST_RUN_ONBOARDING` and
302
324
  `VITE_AGENT_NATIVE_FIRST_RUN_ONBOARDING_SKIP_INTEGRATIONS` can override the
303
- resolved onboarding mode. Use the config file or its canonical path alias
304
- for new work.
325
+ resolved onboarding mode for backwards compatibility. Use the config file
326
+ or its canonical path alias for new work.
305
327
 
306
328
  Use only one of the four typed filenames. If more than one exists, the first
307
329
  candidate in the loader's order wins, with `agent-native.config.ts` preferred
@@ -319,9 +341,10 @@ The JSON and typed sources are merged by supported nested section:
319
341
  supplies it, it replaces the lower-precedence string or mode map as a whole.
320
342
 
321
343
  For example, JSON can provide `runtime.auth.enabled` and
322
- `NOTION_API_KEY`, while `agent-native.config.ts` adds `runtime.database.required` and
323
- `GOOGLE_CLIENT_ID`. The result keeps the auth setting, adds the database
324
- setting, and checks both environment names.
344
+ `runtime.environment.required: ["NOTION_API_KEY"]`, while
345
+ `agent-native.config.ts` adds `runtime.database.required` and
346
+ `runtime.environment.required: ["GOOGLE_CLIENT_ID"]`. The result keeps the
347
+ auth setting, adds the database setting, and checks both environment names.
325
348
 
326
349
  ## What is safe to commit
327
350
 
@@ -342,8 +365,9 @@ Do not commit these values to either config format:
342
365
  vary by environment.
343
366
 
344
367
  Even a value that is not a secret should stay in deployment configuration when
345
- it changes between targets. `agent-native.config.ts` should describe the app's
346
- public shape, not become a second environment-variable file.
368
+ it is a platform fact, a routing detail, or server-only behavior that changes
369
+ between targets. For public app behavior, use the typed config plus its
370
+ canonical deployment alias rather than inventing another standalone variable.
347
371
 
348
372
  ## `agent-native.json` compatibility
349
373
 
@@ -65,7 +65,9 @@ In a workspace, every app inherits the root `DATABASE_URL` by default. Set
65
65
  Set a Nitro preset for the target you choose. The app code and database
66
66
  contract stay the same.
67
67
 
68
- <Diagram id="doc-block-deployment-targets" title="Supported deployment targets" summary="Agent-Native apps can deploy to Node.js, Docker, Vercel, Netlify, Cloudflare Pages, Cloudflare Workers, AWS Lambda, Deno Deploy, Azure Static Web Apps, Koyeb, and Render.">
68
+ <!-- i18n-copy-ignore: renderer-only Diagram attributes keep this shared UI block in clean mode. -->
69
+
70
+ <Diagram id="doc-block-deployment-targets" title="Supported deployment targets" summary="Agent-Native apps can deploy to Node.js, Docker, Vercel, Netlify, Cloudflare Pages, Cloudflare Workers, AWS Lambda, Deno Deploy, Azure Static Web Apps, Koyeb, and Render." frame="hide" renderMode="design">
69
71
 
70
72
  ```html
71
73
  <!-- i18n-copy-ignore: deployment target logo markup is visual-only; labels are unchanged. -->
@@ -12,20 +12,57 @@ deployment system in this repository. Template-only values stay in the
12
12
  maintainer inventory; the setup tables below focus on the shared configuration
13
13
  most apps need.
14
14
 
15
- For a normal app, start with [Deployment: Environment Variables](/docs/deployment-environment-variables)
16
- and [Authentication](/docs/authentication). Keep user-, organization-, and
17
- workspace-scoped credentials in the database-backed secret or connection store;
18
- use environment variables for deploy-level configuration.
19
-
20
- For committed, non-secret app defaults such as first-run onboarding, use the
21
- [Agent-Native app configuration guide](/docs/agent-native-config) instead of
22
- adding another standalone environment setting. If a public config value must
23
- vary by deployment, use its deterministic `AGENT_NATIVE_CONFIG_<PATH>` alias,
24
- which also becomes part of the public browser bundle. Keep credentials and
25
- user-, organization-, or workspace-scoped values in the appropriate secret or
26
- connection store.
27
-
28
- ## Common application and deployment variables
15
+ For a normal app, start with the [Agent-Native app configuration guide](/docs/agent-native-config),
16
+ then use [Deployment: Environment Variables](/docs/deployment-environment-variables)
17
+ and [Authentication](/docs/authentication) for the deliberate environment-only
18
+ parts. Keep user-, organization-, and workspace-scoped credentials in the
19
+ database-backed secret or connection store; use environment variables for
20
+ deploy-level configuration.
21
+
22
+ For committed, non-secret app defaults, use `agent-native.config.ts` first. If a
23
+ public config value must vary by deployment, use its deterministic
24
+ `AGENT_NATIVE_CONFIG_<PATH>` alias. That alias is the final override of the
25
+ typed/JSON config and also becomes part of the public browser bundle. Do not
26
+ create another standalone Vite-prefixed or Agent-Native-prefixed variable for
27
+ a public setting already represented by the config guide.
28
+
29
+ ## Start with Agent-Native app configuration
30
+
31
+ The typed config is the primary documentation and default source for public
32
+ app behavior. Its deployment aliases are the standard environment override:
33
+
34
+ | Config path | Deployment override alias |
35
+ | ------------------------------ | -------------------------------------------------- |
36
+ | `onboarding.firstRun` | `AGENT_NATIVE_CONFIG_ONBOARDING_FIRST_RUN` |
37
+ | `runtime.auth.enabled` | `AGENT_NATIVE_CONFIG_RUNTIME_AUTH_ENABLED` |
38
+ | `runtime.database.required` | `AGENT_NATIVE_CONFIG_RUNTIME_DATABASE_REQUIRED` |
39
+ | `runtime.environment.required` | `AGENT_NATIVE_CONFIG_RUNTIME_ENVIRONMENT_REQUIRED` |
40
+ | `deployment.environment` | `AGENT_NATIVE_CONFIG_DEPLOYMENT_ENVIRONMENT` |
41
+ | `diagnostics.failOnBuild` | `AGENT_NATIVE_CONFIG_DIAGNOSTICS_FAIL_ON_BUILD` |
42
+ | `instructions.runtime` | `AGENT_NATIVE_CONFIG_INSTRUCTIONS_RUNTIME` |
43
+ | `instructions.development` | `AGENT_NATIVE_CONFIG_INSTRUCTIONS_DEVELOPMENT` |
44
+ | `translations.locales` | `AGENT_NATIVE_CONFIG_TRANSLATIONS_LOCALES` |
45
+ | `changelog.enabled` | `AGENT_NATIVE_CONFIG_CHANGELOG_ENABLED` |
46
+ | `harness` | `AGENT_NATIVE_CONFIG_HARNESS` |
47
+ | `harness.runtimes` | `AGENT_NATIVE_CONFIG_HARNESS_RUNTIMES` |
48
+
49
+ Use [Agent-Native app configuration](/docs/agent-native-config) for the full
50
+ schema, mode-aware examples, JSON fragments, and precedence rules. The
51
+ resolved public config is bundled into the browser, so it must contain only
52
+ non-secret app policy.
53
+
54
+ Some non-secret environment variables remain deliberate exceptions because
55
+ they configure server-only behavior, platform facts, routing, or deployment
56
+ secrets. Server-only product controls use the framework's `defineAppConfig()`
57
+ schema and its declared aliases; they are not public `agent-native.config.ts`
58
+ fields. The maintainer inventory's generated **Declared app configuration**
59
+ section is the exhaustive list of those server fields and aliases.
60
+
61
+ ## Server, environment-only, and deployment variables
62
+
63
+ The table below covers values that belong to the running deployment, a
64
+ server-only config surface, or an environment-only compatibility surface. For
65
+ public app behavior, use the config paths above instead.
29
66
 
30
67
  | Variable | What it controls | Supported values or format |
31
68
  | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
@@ -233,6 +233,12 @@ The scheduler is a framework plugin (the internal `processRecurringJobs()` routi
233
233
 
234
234
  </Callout>
235
235
 
236
+ <Callout id="doc-block-rj3" tone="warning">
237
+
238
+ **`AGENT_NATIVE_DISABLE_RECURRING_JOBS` is read in two scopes.** In the **build** environment it decides whether the platform's scheduled trigger is emitted at all — on Netlify that emitted function is the only durable driver, so a build with the switch on ships an app where no schedule can fire, whatever the deployed environment says. In the **runtime** environment it gates the in-process `setInterval` loop. Set it in the build environment to turn recurring jobs off for a deploy; the build records its decision so the **Automations** page can say schedules will never run instead of showing a next-run date nothing will honour.
239
+
240
+ </Callout>
241
+
236
242
  ## Debugging a job {#debugging}
237
243
 
238
244
  - Open the automation's details in **Automations**, or inspect
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.167.1",
3
+ "version": "0.168.0",
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": {
@@ -427,7 +427,7 @@
427
427
  "y-protocols": "^1.0.7",
428
428
  "yjs": "^13.6.32",
429
429
  "zod": "^4.3.6",
430
- "@agent-native/recap-cli": "0.5.6",
430
+ "@agent-native/recap-cli": "0.5.7",
431
431
  "@agent-native/toolkit": "^0.16.9"
432
432
  },
433
433
  "devDependencies": {
@@ -134,3 +134,14 @@ hand-duplicating framework logic.
134
134
  `agent-surfaces`.
135
135
  - Do not copy framework runtime internals when a public API or narrow UI copy
136
136
  will do; read `customizing-agent-native` for the supported override ladder.
137
+
138
+ ## Authoring visual docs blocks
139
+
140
+ Treat the shared `Diagram` block as a renderer, not as a reason to style every
141
+ docs UI as a sketch. Use the hand-drawn font and Rough.js only for actual
142
+ diagrams or wireframes that communicate structure, flow, or a design draft.
143
+ For polished UI-like content - cards, logo walls, tables, controls, or product
144
+ shells — set `renderMode="design"` (and usually `frame="hide"` when the block
145
+ is the content itself). Design mode preserves normal docs typography and
146
+ disables the Rough.js overlay. Keep `data-rough` only on elements intentionally
147
+ sketched inside a real diagram.
@@ -134,3 +134,14 @@ hand-duplicating framework logic.
134
134
  `agent-surfaces`.
135
135
  - Do not copy framework runtime internals when a public API or narrow UI copy
136
136
  will do; read `customizing-agent-native` for the supported override ladder.
137
+
138
+ ## Authoring visual docs blocks
139
+
140
+ Treat the shared `Diagram` block as a renderer, not as a reason to style every
141
+ docs UI as a sketch. Use the hand-drawn font and Rough.js only for actual
142
+ diagrams or wireframes that communicate structure, flow, or a design draft.
143
+ For polished UI-like content - cards, logo walls, tables, controls, or product
144
+ shells — set `renderMode="design"` (and usually `frame="hide"` when the block
145
+ is the content itself). Design mode preserves normal docs typography and
146
+ disables the Rough.js overlay. Keep `data-rough` only on elements intentionally
147
+ sketched inside a real diagram.
@@ -134,3 +134,14 @@ hand-duplicating framework logic.
134
134
  `agent-surfaces`.
135
135
  - Do not copy framework runtime internals when a public API or narrow UI copy
136
136
  will do; read `customizing-agent-native` for the supported override ladder.
137
+
138
+ ## Authoring visual docs blocks
139
+
140
+ Treat the shared `Diagram` block as a renderer, not as a reason to style every
141
+ docs UI as a sketch. Use the hand-drawn font and Rough.js only for actual
142
+ diagrams or wireframes that communicate structure, flow, or a design draft.
143
+ For polished UI-like content - cards, logo walls, tables, controls, or product
144
+ shells — set `renderMode="design"` (and usually `frame="hide"` when the block
145
+ is the content itself). Design mode preserves normal docs typography and
146
+ disables the Rough.js overlay. Keep `data-rough` only on elements intentionally
147
+ sketched inside a real diagram.
@@ -134,3 +134,14 @@ hand-duplicating framework logic.
134
134
  `agent-surfaces`.
135
135
  - Do not copy framework runtime internals when a public API or narrow UI copy
136
136
  will do; read `customizing-agent-native` for the supported override ladder.
137
+
138
+ ## Authoring visual docs blocks
139
+
140
+ Treat the shared `Diagram` block as a renderer, not as a reason to style every
141
+ docs UI as a sketch. Use the hand-drawn font and Rough.js only for actual
142
+ diagrams or wireframes that communicate structure, flow, or a design draft.
143
+ For polished UI-like content - cards, logo walls, tables, controls, or product
144
+ shells — set `renderMode="design"` (and usually `frame="hide"` when the block
145
+ is the content itself). Design mode preserves normal docs typography and
146
+ disables the Rough.js overlay. Keep `data-rough` only on elements intentionally
147
+ sketched inside a real diagram.