@agent-native/core 0.49.12 → 0.49.13

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 (73) hide show
  1. package/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
  2. package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
  3. package/dist/cli/pr-visual-recap-workflow.js +1 -1
  4. package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
  5. package/dist/cli/recap.d.ts +37 -0
  6. package/dist/cli/recap.d.ts.map +1 -1
  7. package/dist/cli/recap.js +240 -0
  8. package/dist/cli/recap.js.map +1 -1
  9. package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
  10. package/dist/client/MultiTabAssistantChat.js +5 -10
  11. package/dist/client/MultiTabAssistantChat.js.map +1 -1
  12. package/dist/client/blocks/library/question-form.js +1 -1
  13. package/dist/client/blocks/library/question-form.js.map +1 -1
  14. package/dist/client/extensions/EmbeddedExtension.d.ts.map +1 -1
  15. package/dist/client/extensions/EmbeddedExtension.js +4 -0
  16. package/dist/client/extensions/EmbeddedExtension.js.map +1 -1
  17. package/dist/client/extensions/ExtensionViewer.d.ts.map +1 -1
  18. package/dist/client/extensions/ExtensionViewer.js +12 -4
  19. package/dist/client/extensions/ExtensionViewer.js.map +1 -1
  20. package/dist/client/extensions/ExtensionsListPage.d.ts.map +1 -1
  21. package/dist/client/extensions/ExtensionsListPage.js +14 -9
  22. package/dist/client/extensions/ExtensionsListPage.js.map +1 -1
  23. package/dist/client/extensions/ExtensionsSidebarSection.d.ts.map +1 -1
  24. package/dist/client/extensions/ExtensionsSidebarSection.js +6 -4
  25. package/dist/client/extensions/ExtensionsSidebarSection.js.map +1 -1
  26. package/dist/client/extensions/iframe-bridge.d.ts +8 -0
  27. package/dist/client/extensions/iframe-bridge.d.ts.map +1 -1
  28. package/dist/client/extensions/iframe-bridge.js +54 -0
  29. package/dist/client/extensions/iframe-bridge.js.map +1 -1
  30. package/dist/client/progress/RunsTray.d.ts.map +1 -1
  31. package/dist/client/progress/RunsTray.js +12 -3
  32. package/dist/client/progress/RunsTray.js.map +1 -1
  33. package/dist/client/resources/ResourceEditor.d.ts +1 -3
  34. package/dist/client/resources/ResourceEditor.d.ts.map +1 -1
  35. package/dist/client/resources/ResourceEditor.js +8 -23
  36. package/dist/client/resources/ResourceEditor.js.map +1 -1
  37. package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
  38. package/dist/client/resources/ResourcesPanel.js +4 -9
  39. package/dist/client/resources/ResourcesPanel.js.map +1 -1
  40. package/dist/client/settings/VoiceTranscriptionSection.d.ts.map +1 -1
  41. package/dist/client/settings/VoiceTranscriptionSection.js +1 -1
  42. package/dist/client/settings/VoiceTranscriptionSection.js.map +1 -1
  43. package/dist/client/sharing/ShareButton.d.ts +5 -1
  44. package/dist/client/sharing/ShareButton.d.ts.map +1 -1
  45. package/dist/client/sharing/ShareButton.js +15 -7
  46. package/dist/client/sharing/ShareButton.js.map +1 -1
  47. package/dist/client/sharing/ShareDialog.d.ts.map +1 -1
  48. package/dist/client/sharing/ShareDialog.js +6 -2
  49. package/dist/client/sharing/ShareDialog.js.map +1 -1
  50. package/dist/extensions/actions.d.ts.map +1 -1
  51. package/dist/extensions/actions.js +70 -2
  52. package/dist/extensions/actions.js.map +1 -1
  53. package/dist/extensions/html-shell.d.ts +12 -0
  54. package/dist/extensions/html-shell.d.ts.map +1 -1
  55. package/dist/extensions/html-shell.js.map +1 -1
  56. package/dist/extensions/local.d.ts +35 -0
  57. package/dist/extensions/local.d.ts.map +1 -0
  58. package/dist/extensions/local.js +334 -0
  59. package/dist/extensions/local.js.map +1 -0
  60. package/dist/extensions/routes.d.ts.map +1 -1
  61. package/dist/extensions/routes.js +92 -12
  62. package/dist/extensions/routes.js.map +1 -1
  63. package/dist/extensions/slots/store.d.ts.map +1 -1
  64. package/dist/extensions/slots/store.js +72 -4
  65. package/dist/extensions/slots/store.js.map +1 -1
  66. package/dist/local-artifacts/index.d.ts +4 -0
  67. package/dist/local-artifacts/index.d.ts.map +1 -1
  68. package/dist/local-artifacts/index.js +60 -35
  69. package/dist/local-artifacts/index.js.map +1 -1
  70. package/docs/content/extensions.md +65 -0
  71. package/docs/content/local-file-mode.md +153 -0
  72. package/docs/content/template-content.md +51 -4
  73. package/package.json +1 -1
@@ -73,7 +73,8 @@ selected file through the normal document actions. Use this for repo-first docs,
73
73
  blogs, resource libraries, or Obsidian-style personal content; switch back to
74
74
  database mode when you want hosted collaboration and SQL-backed sharing. See
75
75
  [Local File Mode](/docs/local-file-mode) for the standalone repo layout,
76
- configuration, custom MDX component, and production safety guide.
76
+ configuration, custom MDX components, local `extensions/` widgets, and
77
+ production safety guide.
77
78
 
78
79
  ## Why it's interesting
79
80
 
@@ -145,9 +146,18 @@ Sync state is tracked in the `document_sync_links` table (last synced time, conf
145
146
 
146
147
  ### Local file sync
147
148
 
148
- The protected `/local-files` route uses the browser File System Access API (or
149
- the same Chromium capability inside Agent Native Desktop) to read and write
150
- Markdown/MDX files from a user-chosen folder. It calls:
149
+ The protected `/local-files` route uses the browser File System Access API, or a
150
+ guarded native folder bridge inside Agent Native Desktop, to read and write
151
+ Markdown/MDX files from a user-chosen folder. After the folder is linked and
152
+ imported, the selected file is treated as the authority: opening the page reads
153
+ the file, and normal editor saves write the file first. SQL is then updated as a
154
+ cache/history layer for the existing document UI, search, and version panel, not
155
+ as the source of truth. The top-right page menu exposes the local source path:
156
+ relative path is always available, absolute path is available in true local-file
157
+ mode and Agent Native Desktop, and Reveal in Finder is available through the
158
+ desktop bridge or server-backed local-file mode.
159
+
160
+ The bulk sync route calls:
151
161
 
152
162
  - `export-content-source` — reads the accessible document tree and returns a
153
163
  deterministic `content/` file bundle.
@@ -158,6 +168,43 @@ Markdown/MDX files from a user-chosen folder. It calls:
158
168
  The source format lives in `shared/content-source.ts`. Keep that file as the
159
169
  single contract for filenames, frontmatter, parsing, and serialization.
160
170
 
171
+ Local file workspaces can also provide repo-local React components through the
172
+ configured `components` folder. The Content dev server imports PascalCase
173
+ exports from those files, renders matching MDX tags such as `<ImpactCounter />`
174
+ inside the editor, and exposes them in the slash menu under Local components.
175
+ This keeps custom MDX blocks local to the workspace without cloning the Content
176
+ app. A minimal workspace component can be:
177
+
178
+ ```tsx
179
+ // components/ImpactCounter.tsx
180
+ import { useState } from "react";
181
+
182
+ export function ImpactCounter({
183
+ label = "points",
184
+ start = 3,
185
+ }: {
186
+ label?: string;
187
+ start?: number;
188
+ }) {
189
+ const [count, setCount] = useState(start);
190
+ return (
191
+ <button type="button" onClick={() => setCount(count + 1)}>
192
+ Impact: {count} {label}
193
+ </button>
194
+ );
195
+ }
196
+
197
+ export const ImpactCounterInputs = {
198
+ label: { type: "string", label: "Label", default: "points" },
199
+ start: { type: "number", label: "Starting count", default: 3 },
200
+ };
201
+ ```
202
+
203
+ Use it in local MDX as `<ImpactCounter />`, or insert it from the editor slash
204
+ menu under Local components. When input metadata is exported, selecting the
205
+ component in the editor shows a corner edit button that rewrites the MDX props
206
+ in the local file.
207
+
161
208
  ### Comments
162
209
 
163
210
  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.12",
3
+ "version": "0.49.13",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22"