@agent-native/core 0.94.3 → 0.95.1

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 (181) hide show
  1. package/corpus/README.md +2 -2
  2. package/corpus/core/CHANGELOG.md +16 -0
  3. package/corpus/core/docs/content/locales/ar-SA/template-design.mdx +13 -0
  4. package/corpus/core/docs/content/locales/de-DE/template-design.mdx +18 -0
  5. package/corpus/core/docs/content/locales/es-ES/template-design.mdx +16 -0
  6. package/corpus/core/docs/content/locales/fr-FR/template-design.mdx +17 -0
  7. package/corpus/core/docs/content/locales/hi-IN/template-design.mdx +16 -0
  8. package/corpus/core/docs/content/locales/ja-JP/template-design.mdx +17 -0
  9. package/corpus/core/docs/content/locales/ko-KR/template-design.mdx +15 -0
  10. package/corpus/core/docs/content/locales/pt-BR/template-design.mdx +16 -0
  11. package/corpus/core/docs/content/locales/zh-CN/template-design.mdx +11 -0
  12. package/corpus/core/docs/content/locales/zh-TW/template-design.mdx +12 -0
  13. package/corpus/core/docs/content/pr-visual-recap.mdx +20 -12
  14. package/corpus/core/docs/content/template-design.mdx +16 -0
  15. package/corpus/core/package.json +2 -2
  16. package/corpus/core/src/agent/engine/ai-sdk-engine.ts +3 -0
  17. package/corpus/core/src/agent/engine/registry.ts +6 -1
  18. package/corpus/core/src/agent/engine/types.ts +2 -0
  19. package/corpus/core/src/agent/production-agent.ts +20 -0
  20. package/corpus/core/src/agent/thread-data-builder.ts +41 -17
  21. package/corpus/core/src/cli/code-agent-executor.ts +61 -1
  22. package/corpus/core/src/cli/pr-visual-recap-workflow.ts +1 -1
  23. package/corpus/core/src/cli/recap.ts +262 -25
  24. package/corpus/core/src/client/AssistantChat.tsx +250 -25
  25. package/corpus/core/src/client/chat/tool-call-display.tsx +1 -1
  26. package/corpus/core/src/client/chat/use-reconnect-reader-owner.ts +28 -0
  27. package/corpus/core/src/client/guided-questions.tsx +9 -1
  28. package/corpus/core/src/client/integrations/IntegrationsPanel.tsx +6 -7
  29. package/corpus/core/src/client/settings/UsageSection.tsx +26 -5
  30. package/corpus/core/src/client/sse-event-processor.ts +90 -21
  31. package/corpus/core/src/connections/catalog.ts +2 -2
  32. package/corpus/core/src/deploy/build.ts +3 -0
  33. package/corpus/core/src/index.ts +2 -0
  34. package/corpus/core/src/integrations/catalog.ts +2 -2
  35. package/corpus/core/src/server/auth.ts +1 -1
  36. package/corpus/core/src/server/credential-provider.ts +7 -3
  37. package/corpus/core/src/shared/cache-control.ts +10 -4
  38. package/corpus/core/src/usage/store.ts +82 -20
  39. package/corpus/templates/analytics/app/lib/data-sources.ts +5 -4
  40. package/corpus/templates/analytics/changelog/2026-07-10-slack-token-setup-marked-legacy.md +6 -0
  41. package/corpus/templates/analytics/server/lib/credential-keys.ts +6 -2
  42. package/corpus/templates/brain/changelog/2026-07-10-slack-backfill-token-marked-legacy.md +6 -0
  43. package/corpus/templates/brain/server/register-secrets.ts +2 -2
  44. package/corpus/templates/clips/app/components/library/library-layout.tsx +7 -1
  45. package/corpus/templates/clips/app/components/library/page-header.tsx +19 -3
  46. package/corpus/templates/clips/app/routes/_app.library._index.tsx +16 -12
  47. package/corpus/templates/clips/changelog/2026-07-10-new-recording-appears-once-when-the-library-sidebar-is-open.md +6 -0
  48. package/corpus/templates/clips/changelog/2026-07-10-slack-token-fallback-guidance.md +6 -0
  49. package/corpus/templates/clips/server/register-secrets.ts +1 -1
  50. package/corpus/templates/content/app/components/editor/DocumentEditor.tsx +0 -66
  51. package/corpus/templates/content/app/routes/_app.local-files.tsx +7 -47
  52. package/corpus/templates/content/changelog/2026-07-10-local-folders-now-wait-for-an-explicit-pull-before-content-r.md +6 -0
  53. package/corpus/templates/content/package.json +1 -1
  54. package/corpus/templates/design/actions/generate-design.ts +128 -31
  55. package/corpus/templates/design/actions/present-design-variants.ts +37 -9
  56. package/corpus/templates/design/app/components/design/DesignCanvas.tsx +9 -3
  57. package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +32 -10
  58. package/corpus/templates/design/app/components/design/QuestionFlow.tsx +2 -2
  59. package/corpus/templates/design/app/components/design/TweaksPanel.tsx +9 -1
  60. package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +7 -5
  61. package/corpus/templates/design/app/components/design/multi-screen/types.ts +3 -0
  62. package/corpus/templates/design/app/global.css +10 -0
  63. package/corpus/templates/design/app/hooks/use-question-flow.ts +9 -2
  64. package/corpus/templates/design/app/i18n/zh-TW.ts +1 -0
  65. package/corpus/templates/design/app/i18n-data.ts +21 -11
  66. package/corpus/templates/design/changelog/2026-07-10-editor-panels-are-easier-to-distinguish-and-design-intake-qu.md +6 -0
  67. package/corpus/templates/design/changelog/2026-07-10-interact-mode-now-stays-on-the-full-canvas-matches-edit-visu.md +6 -0
  68. package/corpus/templates/design/changelog/2026-07-10-new-web-designs-open-at-desktop-size-and-adapt-across-mobile.md +6 -0
  69. package/corpus/templates/design/changelog/2026-07-10-tweaks-now-link-to-full-documentation.md +6 -0
  70. package/corpus/templates/design/server/plugins/agent-chat.ts +2 -0
  71. package/corpus/templates/mail/app/i18n/ar-SA.ts +3 -3
  72. package/corpus/templates/mail/app/i18n/de-DE.ts +3 -3
  73. package/corpus/templates/mail/app/i18n/en-US.ts +4 -3
  74. package/corpus/templates/mail/app/i18n/es-ES.ts +3 -3
  75. package/corpus/templates/mail/app/i18n/fr-FR.ts +3 -3
  76. package/corpus/templates/mail/app/i18n/hi-IN.ts +3 -3
  77. package/corpus/templates/mail/app/i18n/ja-JP.ts +3 -3
  78. package/corpus/templates/mail/app/i18n/ko-KR.ts +3 -3
  79. package/corpus/templates/mail/app/i18n/pt-BR.ts +3 -3
  80. package/corpus/templates/mail/app/i18n/zh-CN.ts +3 -3
  81. package/corpus/templates/mail/app/i18n/zh-TW.ts +3 -3
  82. package/corpus/templates/mail/changelog/2026-07-10-slack-intake-marked-legacy.md +6 -0
  83. package/corpus/templates/mail/server/lib/env-config.ts +5 -4
  84. package/corpus/templates/plan/actions/record-recap-usage-cost.ts +49 -0
  85. package/corpus/templates/plan/actions/record-recap-usage.ts +15 -22
  86. package/corpus/templates/plan/package.json +1 -1
  87. package/dist/agent/engine/ai-sdk-engine.d.ts.map +1 -1
  88. package/dist/agent/engine/ai-sdk-engine.js +3 -0
  89. package/dist/agent/engine/ai-sdk-engine.js.map +1 -1
  90. package/dist/agent/engine/registry.d.ts +1 -1
  91. package/dist/agent/engine/registry.d.ts.map +1 -1
  92. package/dist/agent/engine/registry.js +2 -0
  93. package/dist/agent/engine/registry.js.map +1 -1
  94. package/dist/agent/engine/types.d.ts +2 -0
  95. package/dist/agent/engine/types.d.ts.map +1 -1
  96. package/dist/agent/engine/types.js.map +1 -1
  97. package/dist/agent/production-agent.d.ts.map +1 -1
  98. package/dist/agent/production-agent.js +20 -0
  99. package/dist/agent/production-agent.js.map +1 -1
  100. package/dist/agent/thread-data-builder.d.ts.map +1 -1
  101. package/dist/agent/thread-data-builder.js +36 -18
  102. package/dist/agent/thread-data-builder.js.map +1 -1
  103. package/dist/cli/code-agent-executor.d.ts +2 -0
  104. package/dist/cli/code-agent-executor.d.ts.map +1 -1
  105. package/dist/cli/code-agent-executor.js +52 -3
  106. package/dist/cli/code-agent-executor.js.map +1 -1
  107. package/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
  108. package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
  109. package/dist/cli/pr-visual-recap-workflow.js +1 -1
  110. package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
  111. package/dist/cli/recap.d.ts +22 -2
  112. package/dist/cli/recap.d.ts.map +1 -1
  113. package/dist/cli/recap.js +199 -22
  114. package/dist/cli/recap.js.map +1 -1
  115. package/dist/client/AssistantChat.d.ts +3 -1
  116. package/dist/client/AssistantChat.d.ts.map +1 -1
  117. package/dist/client/AssistantChat.js +200 -28
  118. package/dist/client/AssistantChat.js.map +1 -1
  119. package/dist/client/chat/tool-call-display.js +1 -1
  120. package/dist/client/chat/tool-call-display.js.map +1 -1
  121. package/dist/client/chat/use-reconnect-reader-owner.d.ts +11 -0
  122. package/dist/client/chat/use-reconnect-reader-owner.d.ts.map +1 -0
  123. package/dist/client/chat/use-reconnect-reader-owner.js +21 -0
  124. package/dist/client/chat/use-reconnect-reader-owner.js.map +1 -0
  125. package/dist/client/guided-questions.d.ts.map +1 -1
  126. package/dist/client/guided-questions.js +5 -1
  127. package/dist/client/guided-questions.js.map +1 -1
  128. package/dist/client/integrations/IntegrationsPanel.d.ts.map +1 -1
  129. package/dist/client/integrations/IntegrationsPanel.js +5 -7
  130. package/dist/client/integrations/IntegrationsPanel.js.map +1 -1
  131. package/dist/client/settings/UsageSection.d.ts.map +1 -1
  132. package/dist/client/settings/UsageSection.js +12 -3
  133. package/dist/client/settings/UsageSection.js.map +1 -1
  134. package/dist/client/sse-event-processor.d.ts.map +1 -1
  135. package/dist/client/sse-event-processor.js +67 -20
  136. package/dist/client/sse-event-processor.js.map +1 -1
  137. package/dist/collab/routes.d.ts +1 -1
  138. package/dist/collab/struct-routes.d.ts +1 -1
  139. package/dist/connections/catalog.d.ts +2 -2
  140. package/dist/connections/catalog.js +2 -2
  141. package/dist/connections/catalog.js.map +1 -1
  142. package/dist/deploy/build.d.ts.map +1 -1
  143. package/dist/deploy/build.js +3 -1
  144. package/dist/deploy/build.js.map +1 -1
  145. package/dist/index.d.ts +1 -1
  146. package/dist/index.d.ts.map +1 -1
  147. package/dist/index.js.map +1 -1
  148. package/dist/integrations/catalog.js +2 -2
  149. package/dist/integrations/catalog.js.map +1 -1
  150. package/dist/notifications/routes.d.ts +2 -2
  151. package/dist/observability/routes.d.ts +1 -1
  152. package/dist/provider-api/corpus-jobs.d.ts +2 -2
  153. package/dist/resources/handlers.d.ts +1 -1
  154. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  155. package/dist/server/auth.js +1 -1
  156. package/dist/server/auth.js.map +1 -1
  157. package/dist/server/credential-provider.d.ts +5 -3
  158. package/dist/server/credential-provider.d.ts.map +1 -1
  159. package/dist/server/credential-provider.js +7 -3
  160. package/dist/server/credential-provider.js.map +1 -1
  161. package/dist/shared/cache-control.d.ts +8 -6
  162. package/dist/shared/cache-control.d.ts.map +1 -1
  163. package/dist/shared/cache-control.js +8 -3
  164. package/dist/shared/cache-control.js.map +1 -1
  165. package/dist/usage/store.d.ts +21 -0
  166. package/dist/usage/store.d.ts.map +1 -1
  167. package/dist/usage/store.js +54 -19
  168. package/dist/usage/store.js.map +1 -1
  169. package/docs/content/locales/ar-SA/template-design.mdx +13 -0
  170. package/docs/content/locales/de-DE/template-design.mdx +18 -0
  171. package/docs/content/locales/es-ES/template-design.mdx +16 -0
  172. package/docs/content/locales/fr-FR/template-design.mdx +17 -0
  173. package/docs/content/locales/hi-IN/template-design.mdx +16 -0
  174. package/docs/content/locales/ja-JP/template-design.mdx +17 -0
  175. package/docs/content/locales/ko-KR/template-design.mdx +15 -0
  176. package/docs/content/locales/pt-BR/template-design.mdx +16 -0
  177. package/docs/content/locales/zh-CN/template-design.mdx +11 -0
  178. package/docs/content/locales/zh-TW/template-design.mdx +12 -0
  179. package/docs/content/pr-visual-recap.mdx +20 -12
  180. package/docs/content/template-design.mdx +16 -0
  181. package/package.json +2 -2
@@ -7,7 +7,7 @@ description: "A GitHub Action that runs your repo's visual-recap skill on every
7
7
 
8
8
  PR Visual Recap is a GitHub Action that turns every pull request into a **visual code review**. On each push, an LLM coding agent runs the latest bundled [`visual-recap`](/docs/template-plan) skill (or your repo's committed copy when `VISUAL_RECAP_SKILL_SOURCE=repo`) against the PR diff, publishes a structured recap plan to the hosted Plans app, shows an informational `Visual Recap` check while it runs, and upserts **one sticky PR comment** that links to the interactive plan with an **inline screenshot** embedded right in the comment.
9
9
 
10
- This is not a deterministic diff renderer. The action invokes a real coding agent (Claude Code CLI by default, or OpenAI Codex CLI) that reads the change, decides what matters, and authors the recap by calling the Plans MCP tool `create-visual-recap` — the same tool the `/visual-recap` slash command uses. You get a high-altitude, schema/API/before-after view of the change instead of a wall of raw diff.
10
+ This is not a deterministic diff renderer. The action invokes a real coding agent (Claude Code CLI by default, OpenAI Codex CLI, or Agent-Native Code with an OpenAI-compatible provider) that reads the change, decides what matters, and authors the recap by calling the Plans MCP tool `create-visual-recap` — the same tool the `/visual-recap` slash command uses. You get a high-altitude, schema/API/before-after view of the change instead of a wall of raw diff.
11
11
 
12
12
  The recap is **informational and non-blocking**. It creates a check row so reviewers can see that generation is in progress, but it is not a required check, it never blocks the PR, and it never replaces reading the actual diff. The sticky comment is a review aid, not a sign-off.
13
13
 
@@ -36,7 +36,7 @@ On each PR push, the workflow:
36
36
  <div class="diagram-arrow diagram-muted" aria-hidden="true">&rarr;</div>
37
37
  <div class="diagram-node">
38
38
  Coding agent<br /><small class="diagram-muted"
39
- >Claude Code / Codex reads diff</small
39
+ >configured backend reads diff</small
40
40
  >
41
41
  </div>
42
42
  <div class="diagram-arrow diagram-muted" aria-hidden="true">&rarr;</div>
@@ -127,28 +127,32 @@ pins its committed `visual-recap` folder, set the repository variable
127
127
 
128
128
  Choose which coding agent runs the skill with the `VISUAL_RECAP_AGENT` repository variable:
129
129
 
130
- | `VISUAL_RECAP_AGENT` | Coding agent | Required API key |
131
- | -------------------- | ---------------- | ------------------- |
132
- | `claude` _(default)_ | Claude Code CLI | `ANTHROPIC_API_KEY` |
133
- | `codex` | OpenAI Codex CLI | `OPENAI_API_KEY` |
130
+ | `VISUAL_RECAP_AGENT` | Coding agent | Required API key | Required variables |
131
+ | -------------------- | --------------------------------------- | ---------------------- | --------------------------------------------- |
132
+ | `claude` _(default)_ | Claude Code CLI | `ANTHROPIC_API_KEY` | |
133
+ | `codex` | OpenAI Codex CLI | `OPENAI_API_KEY` | — |
134
+ | `openai-compatible` | Agent-Native Code + compatible provider | `VISUAL_RECAP_API_KEY` | `VISUAL_RECAP_BASE_URL`, `VISUAL_RECAP_MODEL` |
134
135
 
135
136
  If the variable is unset, the action uses `claude`.
136
137
 
137
138
  ## Model and reasoning
138
139
 
139
- Beyond the backend, two repository variables tune _how_ the agent runs:
140
+ Beyond the backend, these repository variables tune how the agent runs:
140
141
 
141
- - **`VISUAL_RECAP_MODEL`** pins the model passed to the CLI (`--model`) — for example `gpt-5.6-sol` for Codex, or a Claude model id. Leave it unset to use the CLI's own default model.
142
+ - **`VISUAL_RECAP_MODEL`** pins the model passed to the CLI (`--model`) — for example `gpt-5.6-sol` for Codex, a Claude model id, or `deepseek-chat` for DeepSeek. It is required for `openai-compatible`; Claude and Codex may leave it unset to use their CLI default.
142
143
  - **`VISUAL_RECAP_REASONING`** sets the reasoning depth: `none`, `minimal`, `low`, `medium`, `high`, or `xhigh`. It applies to the Codex backend; Claude's reasoning is model-driven, so this variable is ignored there.
144
+ - **`VISUAL_RECAP_BASE_URL`** selects the HTTP(S) base URL for the `openai-compatible` backend. Use the provider's OpenAI-compatible endpoint, such as DeepSeek or Kimi, without embedding credentials in the URL.
143
145
  - **`VISUAL_RECAP_SKILL_SOURCE`** controls prompt freshness: `auto`/unset uses the latest bundled skill guidance, while `repo` pins to the committed repo-local `visual-recap` skill folder.
144
146
 
145
147
  For example, to run the recap on Codex with GPT-5.6 Sol at high reasoning, set the repository variables `VISUAL_RECAP_AGENT=codex`, `VISUAL_RECAP_MODEL=gpt-5.6-sol`, and `VISUAL_RECAP_REASONING=high`.
146
148
 
149
+ For DeepSeek, set `VISUAL_RECAP_AGENT=openai-compatible`, `VISUAL_RECAP_BASE_URL=https://api.deepseek.com/v1`, `VISUAL_RECAP_MODEL=deepseek-chat`, and the `VISUAL_RECAP_API_KEY` secret. Kimi works the same way with its OpenAI-compatible base URL and model id. Other OpenAI-compatible providers use the same three settings.
150
+
147
151
  ## Secrets and variables
148
152
 
149
153
  Set these in your repository's **Settings → Secrets and variables → Actions**.
150
154
 
151
- ### Secrets (only two required)
155
+ ### Secrets for the default backend
152
156
 
153
157
  | Secret | Purpose |
154
158
  | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
@@ -190,8 +194,10 @@ real token.
190
194
  | Secret / variable | Default | When you need it |
191
195
  | ------------------------ | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
192
196
  | `OPENAI_API_KEY` | — | Secret. Set together with `VISUAL_RECAP_AGENT=codex` to run the recap with Codex instead. |
193
- | `VISUAL_RECAP_AGENT` | `claude` | Variable. Selects the coding-agent backend (`claude` or `codex`). |
194
- | `VISUAL_RECAP_MODEL` | each CLI's default | Variable. Pins the model e.g. `gpt-5.6-sol` for Codex, or a Claude model id. Unset uses the CLI's own default. |
197
+ | `VISUAL_RECAP_API_KEY` | | Secret. Set with `VISUAL_RECAP_AGENT=openai-compatible` for DeepSeek, Kimi, or another OpenAI-compatible provider. |
198
+ | `VISUAL_RECAP_AGENT` | `claude` | Variable. Selects the coding-agent backend (`claude`, `codex`, or `openai-compatible`). |
199
+ | `VISUAL_RECAP_BASE_URL` | required for compatible backend | Variable. HTTP(S) base URL for the OpenAI-compatible backend; credentials are rejected. |
200
+ | `VISUAL_RECAP_MODEL` | required for compatible backend | Variable. Provider model id for OpenAI-compatible backends; optional for Claude/Codex, where unset uses the CLI default. |
195
201
  | `VISUAL_RECAP_REASONING` | each model's default | Variable. Reasoning depth: `none`, `minimal`, `low`, `medium`, `high`, or `xhigh`. Applies to the Codex backend. |
196
202
  | `RECAP_CLI_VERSION` | `latest` | Variable. Pins the `@agent-native/core` CLI version the workflow installs — e.g. `1.5.0`. See [Version pinning](#version-pinning-copy-variant). |
197
203
  | `PLAN_RECAP_APP_URL` | `https://plan.agent-native.com` | Secret. Only when self-hosting the Plans app at a different origin. |
@@ -214,7 +220,7 @@ This also means you can merge the workflow file **before** the secrets exist: wi
214
220
 
215
221
  If you want to generate recaps for fork PRs, a second workflow file is available: `.github/workflows/pr-visual-recap-fork.yml`. It uses `pull_request_target` (which runs with base-repo secrets) but never checks out or executes fork code. Trusted fork authors with GitHub author association `OWNER`, `MEMBER`, or `COLLABORATOR` run automatically. Outside fork PRs require an explicit **per-head maintainer opt-in** via a fresh `recap` label event before the recap agent runs.
216
222
 
217
- To install it, copy the file from [BuilderIO/agent-native](https://github.com/BuilderIO/agent-native/blob/main/.github/workflows/pr-visual-recap-fork.yml) into your repo's `.github/workflows/` directory alongside the existing `pr-visual-recap.yml`. The same secrets (`PLAN_RECAP_TOKEN`, `ANTHROPIC_API_KEY`) apply.
223
+ To install it, copy the file from [BuilderIO/agent-native](https://github.com/BuilderIO/agent-native/blob/main/.github/workflows/pr-visual-recap-fork.yml) into your repo's `.github/workflows/` directory alongside the existing `pr-visual-recap.yml`. The same backend configuration applies, including `VISUAL_RECAP_API_KEY`, `VISUAL_RECAP_BASE_URL`, and `VISUAL_RECAP_MODEL` when using an OpenAI-compatible provider.
218
224
 
219
225
  <Diagram id="doc-block-h3lne0" title="Fork PR consent gate" summary={"Fork PRs get no secrets by default; trusted authors run automatically, and outside contributors require a fresh maintainer recap label."}>
220
226
 
@@ -454,10 +460,12 @@ jobs:
454
460
  PLAN_RECAP_TOKEN: ${{ secrets.PLAN_RECAP_TOKEN }}
455
461
  ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
456
462
  OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
463
+ VISUAL_RECAP_API_KEY: ${{ secrets.VISUAL_RECAP_API_KEY }}
457
464
  PLAN_RECAP_APP_URL: ${{ secrets.PLAN_RECAP_APP_URL }}
458
465
  with:
459
466
  agent: ${{ vars.VISUAL_RECAP_AGENT || 'claude' }}
460
467
  model: ${{ vars.VISUAL_RECAP_MODEL || '' }}
468
+ base-url: ${{ vars.VISUAL_RECAP_BASE_URL || '' }}
461
469
  reasoning: ${{ vars.VISUAL_RECAP_REASONING || '' }}
462
470
  skill-source: ${{ vars.VISUAL_RECAP_SKILL_SOURCE || 'auto' }}
463
471
  # cli-version: "latest" # pin to a specific @agent-native/core version
@@ -367,6 +367,22 @@ editing the DOM/code layers inside one rendered file. The layers panel reflects
367
367
  that split: screens are top-level frames, with nested DOM/code layers for the
368
368
  active screen.
369
369
 
370
+ ### Tweaks
371
+
372
+ Tweaks are named controls for quickly changing the most useful visual properties
373
+ of a design without editing its source. A design can expose color swatches,
374
+ segmented choices, sliders, and toggles for properties such as accent color,
375
+ corner radius, spacing, density, or visibility. Each control is connected to a
376
+ CSS custom property used by the rendered design, so the preview updates as you
377
+ adjust it.
378
+
379
+ Tweaks follow the editor's cascade. A value set on the base design is inherited
380
+ by its responsive breakpoints and states. Changing a tweak while a breakpoint or
381
+ state is active creates an override for that context; resetting the control
382
+ removes the override and returns to the inherited value. Saved tweak values stay
383
+ with the design. Use **Add tweak controls** or ask the agent to expose another
384
+ visual property when the panel does not include the control you need.
385
+
370
386
  Install `/visual-edit` when a coding agent should open a running local app in
371
387
  Design instead of generating standalone prototype HTML:
372
388
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.94.3",
3
+ "version": "0.95.1",
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": {
@@ -338,7 +338,7 @@
338
338
  "@tabler/icons-react": "^3.40.0",
339
339
  "@tailwindcss/typography": "^0.5.20",
340
340
  "@tailwindcss/vite": "^4.2.4",
341
- "@tanstack/react-query": "^5.99.2",
341
+ "@tanstack/react-query": "^5.101.2",
342
342
  "@types/better-sqlite3": "^7.6.13",
343
343
  "@types/diff-match-patch": "^1.0.36",
344
344
  "@types/express": "^5.0.6",