@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.
- package/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
- package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
- package/dist/cli/pr-visual-recap-workflow.js +1 -1
- package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
- package/dist/cli/recap.d.ts +37 -0
- package/dist/cli/recap.d.ts.map +1 -1
- package/dist/cli/recap.js +240 -0
- package/dist/cli/recap.js.map +1 -1
- package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
- package/dist/client/MultiTabAssistantChat.js +5 -10
- package/dist/client/MultiTabAssistantChat.js.map +1 -1
- package/dist/client/blocks/library/question-form.js +1 -1
- package/dist/client/blocks/library/question-form.js.map +1 -1
- package/dist/client/extensions/EmbeddedExtension.d.ts.map +1 -1
- package/dist/client/extensions/EmbeddedExtension.js +4 -0
- package/dist/client/extensions/EmbeddedExtension.js.map +1 -1
- package/dist/client/extensions/ExtensionViewer.d.ts.map +1 -1
- package/dist/client/extensions/ExtensionViewer.js +12 -4
- package/dist/client/extensions/ExtensionViewer.js.map +1 -1
- package/dist/client/extensions/ExtensionsListPage.d.ts.map +1 -1
- package/dist/client/extensions/ExtensionsListPage.js +14 -9
- package/dist/client/extensions/ExtensionsListPage.js.map +1 -1
- package/dist/client/extensions/ExtensionsSidebarSection.d.ts.map +1 -1
- package/dist/client/extensions/ExtensionsSidebarSection.js +6 -4
- package/dist/client/extensions/ExtensionsSidebarSection.js.map +1 -1
- package/dist/client/extensions/iframe-bridge.d.ts +8 -0
- package/dist/client/extensions/iframe-bridge.d.ts.map +1 -1
- package/dist/client/extensions/iframe-bridge.js +54 -0
- package/dist/client/extensions/iframe-bridge.js.map +1 -1
- package/dist/client/progress/RunsTray.d.ts.map +1 -1
- package/dist/client/progress/RunsTray.js +12 -3
- package/dist/client/progress/RunsTray.js.map +1 -1
- package/dist/client/resources/ResourceEditor.d.ts +1 -3
- package/dist/client/resources/ResourceEditor.d.ts.map +1 -1
- package/dist/client/resources/ResourceEditor.js +8 -23
- package/dist/client/resources/ResourceEditor.js.map +1 -1
- package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
- package/dist/client/resources/ResourcesPanel.js +4 -9
- package/dist/client/resources/ResourcesPanel.js.map +1 -1
- package/dist/client/settings/VoiceTranscriptionSection.d.ts.map +1 -1
- package/dist/client/settings/VoiceTranscriptionSection.js +1 -1
- package/dist/client/settings/VoiceTranscriptionSection.js.map +1 -1
- package/dist/client/sharing/ShareButton.d.ts +5 -1
- package/dist/client/sharing/ShareButton.d.ts.map +1 -1
- package/dist/client/sharing/ShareButton.js +15 -7
- package/dist/client/sharing/ShareButton.js.map +1 -1
- package/dist/client/sharing/ShareDialog.d.ts.map +1 -1
- package/dist/client/sharing/ShareDialog.js +6 -2
- package/dist/client/sharing/ShareDialog.js.map +1 -1
- package/dist/extensions/actions.d.ts.map +1 -1
- package/dist/extensions/actions.js +70 -2
- package/dist/extensions/actions.js.map +1 -1
- package/dist/extensions/html-shell.d.ts +12 -0
- package/dist/extensions/html-shell.d.ts.map +1 -1
- package/dist/extensions/html-shell.js.map +1 -1
- package/dist/extensions/local.d.ts +35 -0
- package/dist/extensions/local.d.ts.map +1 -0
- package/dist/extensions/local.js +334 -0
- package/dist/extensions/local.js.map +1 -0
- package/dist/extensions/routes.d.ts.map +1 -1
- package/dist/extensions/routes.js +92 -12
- package/dist/extensions/routes.js.map +1 -1
- package/dist/extensions/slots/store.d.ts.map +1 -1
- package/dist/extensions/slots/store.js +72 -4
- package/dist/extensions/slots/store.js.map +1 -1
- package/dist/local-artifacts/index.d.ts +4 -0
- package/dist/local-artifacts/index.d.ts.map +1 -1
- package/dist/local-artifacts/index.js +60 -35
- package/dist/local-artifacts/index.js.map +1 -1
- package/docs/content/extensions.md +65 -0
- package/docs/content/local-file-mode.md +153 -0
- package/docs/content/template-content.md +51 -4
- 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
|
|
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
|
|
149
|
-
|
|
150
|
-
Markdown/MDX files from a user-chosen folder.
|
|
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`.
|