@agent-native/core 0.49.13 → 0.49.15

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.
@@ -228,6 +228,24 @@ components render inside the editor and appear in the slash menu under
228
228
  **Local components**. Slash insertion creates a minimal tag such as
229
229
  `<ImpactCounter />`; add props in the MDX source when needed.
230
230
 
231
+ Component execution is intentionally a local-dev/Desktop bridge capability, not
232
+ plain hosted browser folder access. If you open `content.agent-native.com`,
233
+ choose **Local files**, and pick a folder in Chrome, the app can read and write
234
+ the `.md` and `.mdx` files through the browser File System Access API, but
235
+ Chrome does not expose an absolute folder path for Vite to compile
236
+ `components/*.tsx`. To preview and hot reload custom React components, run
237
+ Content locally or use Agent Native Desktop so the trusted local bridge can
238
+ register the picked workspace with the local Content dev server. In that mode,
239
+ edits to existing component files hot reload through Vite, and adding or
240
+ removing component files reloads the component registry and slash menu.
241
+
242
+ Agents can also work with those registered component files. Use
243
+ `list-local-component-files` to find the registered workspace id, then
244
+ `write-local-component-file` to create or update `.tsx`, `.jsx`, `.ts`, or
245
+ `.js` files under the workspace's `components/` folder. The MDX files remain the
246
+ source of truth for component usage; the component files remain normal repo
247
+ source files reviewed with Git.
248
+
231
249
  If a component exports input metadata, selecting the component in the editor
232
250
  shows an edit button in the component's top-right corner. Supported input types
233
251
  are `string`, `textarea`, `number`, `boolean`, and `select`. The form writes
@@ -205,6 +205,15 @@ menu under Local components. When input metadata is exported, selecting the
205
205
  component in the editor shows a corner edit button that rewrites the MDX props
206
206
  in the local file.
207
207
 
208
+ The browser **Local files** picker can read and write `.md` and `.mdx` files on
209
+ its own, but executable React component previews require a local compiler. Run
210
+ Content locally or use Agent Native Desktop so the selected workspace path can
211
+ be registered with the local Content dev server. Vite then imports
212
+ `components/*.tsx`, hot reloads edits to existing component files, and reloads
213
+ the component registry when files are added or removed. Agents can use
214
+ `list-local-component-files` and `write-local-component-file` to inspect or
215
+ update registered component files while the editor updates from the same source.
216
+
208
217
  ### Comments
209
218
 
210
219
  Threaded comments on documents with quoted-text anchors, replies, and resolve state. Backed by the `document_comments` table and `app/components/editor/CommentsSidebar.tsx`. Actions: `list-comments`, `add-comment`. Notion comments can sync both ways via `sync-notion-comments`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.49.13",
3
+ "version": "0.49.15",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22"