@agent-native/core 0.207.0 → 0.207.1-nightly-20261012011809
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/agent/thread-data-builder.d.ts +1 -0
- package/dist/agent/thread-data-builder.js +220 -45
- package/dist/agent/thread-message-projection.d.ts +3 -0
- package/dist/agent/thread-message-projection.js +136 -3
- package/dist/automation/index.d.ts +1 -1
- package/dist/chat-threads/store.d.ts +1 -0
- package/dist/chat-threads/store.js +14 -4
- package/dist/cli/connect.d.ts +1 -0
- package/dist/cli/connect.js +8 -3
- package/dist/client/chat/agentkit-agent-native.js +151 -77
- package/dist/client/chat/runtime.js +61 -2
- package/dist/client/onboarding/first-run-status.js +0 -4
- package/dist/collab/routes.d.ts +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/jobs/actions/manage-recurring-job.d.ts +1 -1
- package/dist/mcp/agent-connected.d.ts +13 -0
- package/dist/mcp/agent-connected.js +63 -0
- package/dist/mcp/connect-app-label.d.ts +11 -0
- package/dist/mcp/connect-app-label.js +33 -0
- package/dist/mcp/connect-route.js +41 -33
- package/dist/mcp/connect-store.d.ts +6 -1
- package/dist/mcp/connect-store.js +10 -2
- package/dist/mcp/oauth-route.js +17 -5
- package/dist/mcp/oauth-store.d.ts +2 -0
- package/dist/mcp/oauth-store.js +5 -1
- package/dist/notifications/routes.d.ts +1 -1
- package/dist/org/index.d.ts +2 -2
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +9 -9
- package/dist/provider-api/actions/provider-api.d.ts +11 -11
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/secrets/routes.d.ts +5 -5
- package/dist/server/agent-chat-plugin.js +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/agent-engine-default-model-route.d.ts +2 -2
- package/dist/server/core-routes-plugin.d.ts +1 -1
- package/dist/shared/mcp-connect-content.d.ts +1 -0
- package/dist/shared/mcp-connect-content.js +3 -0
- package/dist/sharing/actions/list-resource-shares.d.ts +1 -1
- package/dist/tracking/registry.d.ts +1 -0
- package/dist/tracking/registry.js +1 -1
- package/dist/triggers/actions/manage-automation.d.ts +7 -7
- package/docs/content/agent-native-toolkit.mdx +42 -38
- package/docs/content/components.mdx +29 -18
- package/docs/content/notifications.mdx +1 -1
- package/docs/content/progress.mdx +1 -1
- package/docs/content/sharing.mdx +1 -1
- package/docs/content/toolkit-agent-ux.mdx +17 -2
- package/docs/content/toolkit-command-navigation.mdx +4 -2
- package/docs/content/toolkit-comments-review.mdx +1 -1
- package/docs/content/toolkit-context-knowledge.mdx +14 -16
- package/docs/content/toolkit-editors-canvases.mdx +24 -7
- package/docs/content/toolkit-history.mdx +13 -26
- package/docs/content/toolkit-org-team.mdx +4 -4
- package/docs/content/toolkit-resources.mdx +3 -1
- package/docs/content/toolkit-settings.mdx +1 -1
- package/docs/content/toolkit-setup-connections.mdx +1 -1
- package/docs/content/toolkit-sharing.mdx +6 -6
- package/docs/content/toolkit-ui.mdx +11 -0
- package/package.json +4 -4
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "History Kit"
|
|
3
|
-
description: "Version
|
|
3
|
+
description: "Version and audit APIs, undo/redo foundations, and app-owned history UI."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# History Kit
|
|
7
7
|
|
|
8
|
-
The History Kit
|
|
9
|
-
agents edit together: what changed, who changed it, can I undo it, and can I
|
|
10
|
-
restore an older version?
|
|
8
|
+
The History Kit provides versioning, access-scoped history actions, and undo/redo foundations. Apps compose their own timelines, previews, diffs, and restore controls around these APIs; Toolkit does not ship a drop-in history panel.
|
|
11
9
|
|
|
12
10
|
<WireframeBlock id="doc-block-toolkit-history">
|
|
13
11
|
<Screen
|
|
@@ -18,19 +16,20 @@ restore an older version?
|
|
|
18
16
|
/>
|
|
19
17
|
</WireframeBlock>
|
|
20
18
|
|
|
19
|
+
This mock shows one app-owned history interface built from the APIs below. The timeline, diff summary, and restore button are examples, not exported Toolkit components.
|
|
20
|
+
|
|
21
21
|
## Pieces {#pieces}
|
|
22
22
|
|
|
23
23
|
| Piece | Purpose |
|
|
24
24
|
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
25
25
|
| `registerVersionedResource()` | Register a resource type, access resolver, optional `getSnapshot()`, and optional `restoreSnapshot()` handler. |
|
|
26
26
|
| Version actions | `create-resource-version`, `list-resource-versions`, `get-resource-version`, `restore-resource-version`, and `list-resource-history`. |
|
|
27
|
-
|
|
|
28
|
-
| `HistoryTimeline` | Controlled presentational timeline for custom history layouts. |
|
|
27
|
+
| App-owned history UI | Compose a timeline, preview, diff, or restore flow with the history APIs. |
|
|
29
28
|
| History hooks | `useResourceVersions()`, `useResourceHistory()`, `useCreateResourceVersion()`, and `useRestoreResourceVersion()`. |
|
|
30
29
|
| Audit log | Durable record of human and agent actions, scoped by access, included by `list-resource-history`. |
|
|
31
30
|
| `useCollabUndo()` | CRDT undo/redo for collaborative document edits. |
|
|
32
31
|
| `useLocalOpUndo()` | App-local inverse operations for commands outside the Yjs document. |
|
|
33
|
-
|
|
|
32
|
+
| Diff and compare UI | App-owned presentation built from version snapshots and domain-specific comparison rules. |
|
|
34
33
|
|
|
35
34
|
## Register A Resource {#register-resource}
|
|
36
35
|
|
|
@@ -60,24 +59,13 @@ When a resource is already registered with the Sharing Kit, History can reuse
|
|
|
60
59
|
that access model. Register a History adapter when the app wants automatic
|
|
61
60
|
snapshot capture or restore behavior.
|
|
62
61
|
|
|
63
|
-
##
|
|
64
|
-
|
|
65
|
-
```tsx
|
|
66
|
-
import { VersionHistoryPanel } from "@agent-native/core/client/history";
|
|
67
|
-
|
|
68
|
-
export function DocumentHistory({ documentId }: { documentId: string }) {
|
|
69
|
-
return (
|
|
70
|
-
<VersionHistoryPanel
|
|
71
|
-
resourceType="document"
|
|
72
|
-
resourceId={documentId}
|
|
73
|
-
onRestored={() => refreshDocument()}
|
|
74
|
-
/>
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
```
|
|
62
|
+
## Compose an app-specific history surface {#ui-usage}
|
|
78
63
|
|
|
79
|
-
|
|
80
|
-
|
|
64
|
+
The Core client exports `useResourceVersions()`, `useResourceHistory()`,
|
|
65
|
+
`useCreateResourceVersion()`, and `useRestoreResourceVersion()` from
|
|
66
|
+
`@agent-native/core/client/history`. Use these hooks or the corresponding
|
|
67
|
+
actions to build the interface your resource needs. The app decides how to
|
|
68
|
+
present diffs, identify authors, and confirm restores.
|
|
81
69
|
|
|
82
70
|
## UX Standard {#ux-standard}
|
|
83
71
|
|
|
@@ -96,5 +84,4 @@ they need a custom timeline, preview, or compare view.
|
|
|
96
84
|
timeline's audit view reads from.
|
|
97
85
|
- [**Realtime Collaboration**](/docs/real-time-collaboration) — the CRDT
|
|
98
86
|
editing surface `useCollabUndo()` wraps.
|
|
99
|
-
- [**Component API**](/docs/components
|
|
100
|
-
reference for history and presence components.
|
|
87
|
+
- [**Component API**](/docs/components) — the generated reference for public React exports.
|
|
@@ -74,8 +74,8 @@ import {
|
|
|
74
74
|
OrgSwitcher,
|
|
75
75
|
RequireActiveOrg,
|
|
76
76
|
TeamPage,
|
|
77
|
-
|
|
78
|
-
} from "@agent-native/core/client/org-team";
|
|
77
|
+
} from "@agent-native/toolkit/app/org";
|
|
78
|
+
import { useOrgRole } from "@agent-native/core/client/org-team";
|
|
79
79
|
|
|
80
80
|
export function AppShell() {
|
|
81
81
|
return <OrgSwitcher />;
|
|
@@ -95,8 +95,8 @@ export function AdminOnlyControl() {
|
|
|
95
95
|
}
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
The Settings shell
|
|
99
|
-
`@agent-native/
|
|
98
|
+
The Settings shell uses the Toolkit organization UI from
|
|
99
|
+
`@agent-native/toolkit/app/org`: `OrgGeneralPage`,
|
|
100
100
|
`OrgMembersPage({ appRoles? })`, `OrgAuthenticationPage`, and `OrgAppsPage`.
|
|
101
101
|
|
|
102
102
|
Server code imports the same role helpers from `@agent-native/core/org-team`.
|
|
@@ -37,7 +37,7 @@ Mount the complete panel when you want the whole browser/editor surface with
|
|
|
37
37
|
no assembly required:
|
|
38
38
|
|
|
39
39
|
```tsx
|
|
40
|
-
import { ResourcesPanel } from "@agent-native/
|
|
40
|
+
import { ResourcesPanel } from "@agent-native/toolkit/app/resources";
|
|
41
41
|
|
|
42
42
|
<ResourcesPanel scope="personal" resourceFilter="files" />;
|
|
43
43
|
```
|
|
@@ -53,6 +53,8 @@ Compose the tree and editor primitives yourself for custom chrome:
|
|
|
53
53
|
import {
|
|
54
54
|
ResourceEditor,
|
|
55
55
|
ResourceTree,
|
|
56
|
+
} from "@agent-native/toolkit/app/resources";
|
|
57
|
+
import {
|
|
56
58
|
useResource,
|
|
57
59
|
useResourceTree,
|
|
58
60
|
} from "@agent-native/core/client/resources";
|
|
@@ -112,7 +112,7 @@ core page for its own variant. Dispatch keeps its app-role column on Members
|
|
|
112
112
|
this way:
|
|
113
113
|
|
|
114
114
|
```tsx
|
|
115
|
-
import { OrgMembersPage } from "@agent-native/
|
|
115
|
+
import { OrgMembersPage } from "@agent-native/toolkit/app/org";
|
|
116
116
|
import {
|
|
117
117
|
CORE_SETTINGS_PAGES,
|
|
118
118
|
registerSettingsPages,
|
|
@@ -39,7 +39,7 @@ page/components for the standard settings surface.
|
|
|
39
39
|
import {
|
|
40
40
|
ProviderReadinessBadge,
|
|
41
41
|
SetupConnectionsPage,
|
|
42
|
-
} from "@agent-native/
|
|
42
|
+
} from "@agent-native/toolkit/app/setup-connections";
|
|
43
43
|
|
|
44
44
|
export function SettingsConnectionsTab() {
|
|
45
45
|
return (
|
|
@@ -64,7 +64,7 @@ registerShareableResource({
|
|
|
64
64
|
Render the standard controls where users decide access:
|
|
65
65
|
|
|
66
66
|
```tsx
|
|
67
|
-
import { ShareButton } from "@agent-native/
|
|
67
|
+
import { ShareButton } from "@agent-native/toolkit/app/sharing";
|
|
68
68
|
import { VisibilityBadge } from "@agent-native/toolkit/sharing";
|
|
69
69
|
|
|
70
70
|
<VisibilityBadge visibility={dashboard.visibility} />;
|
|
@@ -99,11 +99,11 @@ The most common low-level import is:
|
|
|
99
99
|
import { VisibilityBadge } from "@agent-native/toolkit/sharing";
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
`<ShareButton>` and `<ShareDialog>` are
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
`<ShareButton>` and `<ShareDialog>` are Toolkit UI exported from
|
|
103
|
+
`@agent-native/toolkit/app/sharing`. They use Core client hooks and the shared
|
|
104
|
+
sharing actions. When building custom sharing UI, import
|
|
105
|
+
`useShareButtonController` and `useShareDialogController` from
|
|
106
|
+
`@agent-native/core/client/sharing`.
|
|
107
107
|
|
|
108
108
|
### Toolkit vs Core {#toolkit-vs-core}
|
|
109
109
|
|
|
@@ -127,6 +127,17 @@ surface. The app supplies rows, typed columns, editor slots, selection state,
|
|
|
127
127
|
and persistence callbacks. The kit provides keyboard navigation, active-cell
|
|
128
128
|
behavior, optional selection, column sizing, and the scroll surface.
|
|
129
129
|
|
|
130
|
+
<WireframeBlock id="doc-block-toolkit-data-grid">
|
|
131
|
+
<Screen
|
|
132
|
+
surface="desktop"
|
|
133
|
+
html={
|
|
134
|
+
"<div style='min-height:420px;box-sizing:border-box;padding:22px;display:flex;flex-direction:column;gap:12px'><div style='display:flex;align-items:center;gap:8px'><h2 style='margin:0'>Projects</h2><span class='wf-pill'>3 rows</span><div style='flex:1'></div><button><span data-icon='search'></span> Filter</button></div><div class='wf-card' style='padding:0;overflow:hidden'><div style='display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;border-bottom:1px solid var(--wf-line);font-weight:600'><div style='padding:10px 12px'>Name</div><div style='padding:10px 12px'>Owner</div><div style='padding:10px 12px'>Status</div><div style='padding:10px 12px'>Updated</div></div><div style='display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;border-bottom:1px solid var(--wf-line)'><div style='padding:10px 12px'>Website refresh</div><div style='padding:10px 12px'>Maya</div><div style='padding:10px 12px'><span class='wf-pill accent'>In progress</span></div><div style='padding:10px 12px'>Today</div></div><div style='display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;border-bottom:1px solid var(--wf-line)'><div style='padding:10px 12px'>Q3 launch</div><div style='padding:10px 12px'>Kai</div><div style='padding:10px 12px'><span class='wf-pill'>Planning</span></div><div style='padding:10px 12px'>Yesterday</div></div><div style='display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr'><div style='padding:10px 12px;border:2px solid var(--wf-accent);border-radius:4px'>Onboarding</div><div style='padding:10px 12px'>Steve</div><div style='padding:10px 12px'><span class='wf-pill'>Review</span></div><div style='padding:10px 12px'>Aug 8</div></div></div><small class='wf-muted'>Toolkit handles grid interaction. The app provides rows, columns, cell editors, and saved preferences.</small></div>"
|
|
135
|
+
}
|
|
136
|
+
/>
|
|
137
|
+
</WireframeBlock>
|
|
138
|
+
|
|
139
|
+
The mock highlights an active cell. The app still owns the row data, property editors, actions, and saved view preferences.
|
|
140
|
+
|
|
130
141
|
The grid does not fetch data, call actions, resolve credentials, or persist
|
|
131
142
|
edits. Use `renderHeader`, `renderBody`, `renderRow`, and `renderFooter` when an
|
|
132
143
|
app needs to keep its own headers, grouping, row actions, or summary rows.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.207.
|
|
3
|
+
"version": "0.207.1-nightly-20261012011809",
|
|
4
4
|
"description": "The agentic application framework for building autonomous agents with intuitive UIs",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -694,8 +694,8 @@
|
|
|
694
694
|
"yaml": "^2.9.0",
|
|
695
695
|
"yjs": "^13.6.33",
|
|
696
696
|
"zod": "^4.3.6",
|
|
697
|
-
"@agent-native/
|
|
698
|
-
"@agent-native/
|
|
697
|
+
"@agent-native/agentkit": "^0.207.1-nightly-20261012011809",
|
|
698
|
+
"@agent-native/recap-cli": "^0.5.69"
|
|
699
699
|
},
|
|
700
700
|
"devDependencies": {
|
|
701
701
|
"@ai-sdk/anthropic": "^3.0.71",
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
"xlsx": "^0.18.5"
|
|
766
766
|
},
|
|
767
767
|
"peerDependencies": {
|
|
768
|
-
"@agent-native/core-corpus": "
|
|
768
|
+
"@agent-native/core-corpus": "0.207.1-nightly-20261012011809",
|
|
769
769
|
"@ai-sdk/anthropic": ">=3",
|
|
770
770
|
"@ai-sdk/cohere": ">=3",
|
|
771
771
|
"@ai-sdk/google": ">=3",
|