@agent-native/core 1.0.0 → 1.0.1-nightly-20260828235425
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/corpus/README.md +1 -1
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +1 -2
- package/corpus/templates/analytics/changelog/2026-08-28-sidebar-branding-matches-the-app-text-color-with-a-tighter-m.md +6 -0
- package/corpus/templates/assets/app/components/layout/Sidebar.tsx +1 -2
- package/corpus/templates/brain/app/components/layout/Sidebar.tsx +1 -2
- package/corpus/templates/calendar/app/components/layout/Sidebar.tsx +3 -4
- package/corpus/templates/calendar/changelog/2026-08-28-sidebar-branding-matches-the-app-text-color-with-a-tighter-m.md +6 -0
- package/corpus/templates/calendar/changelog/2026-08-28-the-calendar-sidebar-keeps-the-settings-link-compact.md +6 -0
- package/corpus/templates/chat/app/components/layout/Sidebar.tsx +1 -2
- package/corpus/templates/clips/app/components/library/library-layout.tsx +1 -1
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +1 -2
- package/corpus/templates/design/app/components/layout/Sidebar.tsx +1 -2
- package/corpus/templates/factory/app/components/layout/Sidebar.tsx +1 -2
- package/corpus/templates/forms/app/components/layout/Sidebar.tsx +3 -5
- package/corpus/templates/macros/app/components/layout/AppLayout.tsx +1 -2
- package/corpus/templates/plan/app/components/layout/Sidebar.tsx +1 -2
- package/corpus/templates/slides/app/components/layout/Sidebar.tsx +1 -2
- package/corpus/templates/slides/app/pages/Index.tsx +1 -1
- package/corpus/templates/tasks/app/components/layout/Sidebar.tsx +1 -2
- package/dist/collab/routes.d.ts +1 -1
- package/dist/mcp/screen-memory-stdio.d.ts +7 -7
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/observability/routes.d.ts +6 -6
- package/dist/resources/handlers.d.ts +2 -2
- package/dist/secrets/routes.d.ts +3 -3
- package/dist/server/onboarding-html.js +37 -11
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/dist/templates/chat/app/components/layout/Sidebar.tsx +1 -2
- package/package.json +3 -3
- package/src/templates/chat/app/components/layout/Sidebar.tsx +1 -2
package/corpus/README.md
CHANGED
|
@@ -2356,9 +2356,8 @@ export function Sidebar({ mobile }: { mobile?: boolean } = {}) {
|
|
|
2356
2356
|
className="flex min-w-0 flex-1 items-center gap-2 font-semibold"
|
|
2357
2357
|
>
|
|
2358
2358
|
<AgentNativeIcon
|
|
2359
|
-
size={35}
|
|
2360
2359
|
aria-hidden="true"
|
|
2361
|
-
className="h-
|
|
2360
|
+
className="h-[17px] w-[30px] shrink-0 text-sidebar-foreground"
|
|
2362
2361
|
/>
|
|
2363
2362
|
<span className="text-lg font-bold tracking-tight">
|
|
2364
2363
|
{t("navigation.brand")}
|
|
@@ -394,9 +394,8 @@ export function Sidebar() {
|
|
|
394
394
|
data-sidebar-brand-toggle
|
|
395
395
|
>
|
|
396
396
|
<AgentNativeIcon
|
|
397
|
-
size={28}
|
|
398
397
|
aria-hidden="true"
|
|
399
|
-
className="h-
|
|
398
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-foreground"
|
|
400
399
|
/>
|
|
401
400
|
{!collapsed && (
|
|
402
401
|
<span className="text-sm font-semibold tracking-tight">
|
|
@@ -339,9 +339,8 @@ export function Sidebar({
|
|
|
339
339
|
}
|
|
340
340
|
>
|
|
341
341
|
<AgentNativeIcon
|
|
342
|
-
size={28}
|
|
343
342
|
aria-hidden="true"
|
|
344
|
-
className="h-
|
|
343
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-accent-foreground"
|
|
345
344
|
/>
|
|
346
345
|
<div className={cn("min-w-0", collapsed && "sr-only")}>
|
|
347
346
|
<p className="truncate text-sm font-semibold text-sidebar-accent-foreground">
|
|
@@ -782,7 +782,7 @@ export function Sidebar({
|
|
|
782
782
|
onCollapsedChange(!collapsed);
|
|
783
783
|
}}
|
|
784
784
|
className={cn(
|
|
785
|
-
"flex items-center gap-2 rounded outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
785
|
+
"flex items-center gap-2 rounded text-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
786
786
|
collapsed ? "size-8 justify-center" : "flex-1",
|
|
787
787
|
)}
|
|
788
788
|
aria-label={
|
|
@@ -797,9 +797,8 @@ export function Sidebar({
|
|
|
797
797
|
data-sidebar-brand-toggle
|
|
798
798
|
>
|
|
799
799
|
<AgentNativeIcon
|
|
800
|
-
size={28}
|
|
801
800
|
aria-hidden="true"
|
|
802
|
-
className="h-
|
|
801
|
+
className="h-3.5 w-6 shrink-0 text-foreground"
|
|
803
802
|
/>
|
|
804
803
|
{!collapsed && (
|
|
805
804
|
<span className="text-base font-semibold tracking-tight">
|
|
@@ -1142,7 +1141,7 @@ export function Sidebar({
|
|
|
1142
1141
|
"shrink-0",
|
|
1143
1142
|
collapsed
|
|
1144
1143
|
? "flex flex-col items-center gap-1 px-1 py-2"
|
|
1145
|
-
: "space-y-0.5
|
|
1144
|
+
: "space-y-0.5 px-2.5 pt-2.5",
|
|
1146
1145
|
)}
|
|
1147
1146
|
>
|
|
1148
1147
|
{bottomNavItems.map((item) => {
|
|
@@ -387,9 +387,8 @@ export function Sidebar({
|
|
|
387
387
|
}
|
|
388
388
|
>
|
|
389
389
|
<AgentNativeIcon
|
|
390
|
-
size={28}
|
|
391
390
|
aria-hidden="true"
|
|
392
|
-
className="h-
|
|
391
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-accent-foreground"
|
|
393
392
|
/>
|
|
394
393
|
<div className={cn("min-w-0", collapsed && "sr-only")}>
|
|
395
394
|
<p className="truncate text-sm font-semibold text-sidebar-accent-foreground">
|
|
@@ -373,7 +373,7 @@ export function LibraryLayout({ children }: LibraryLayoutProps) {
|
|
|
373
373
|
>
|
|
374
374
|
<AgentNativeIcon
|
|
375
375
|
aria-hidden="true"
|
|
376
|
-
className="h-
|
|
376
|
+
className="h-3.5 w-6 shrink-0 text-foreground"
|
|
377
377
|
/>
|
|
378
378
|
{!showCollapsedSidebar && (
|
|
379
379
|
<span className="truncate text-sm font-semibold text-foreground">
|
|
@@ -1782,9 +1782,8 @@ export function DocumentSidebar({
|
|
|
1782
1782
|
data-sidebar-brand-toggle
|
|
1783
1783
|
>
|
|
1784
1784
|
<AgentNativeIcon
|
|
1785
|
-
size={28}
|
|
1786
1785
|
aria-hidden="true"
|
|
1787
|
-
className="h-
|
|
1786
|
+
className="h-3.5 w-6 shrink-0 text-foreground"
|
|
1788
1787
|
/>
|
|
1789
1788
|
{!isCollapsed && (
|
|
1790
1789
|
<span className="text-base font-semibold tracking-tight">Content</span>
|
|
@@ -138,9 +138,8 @@ export function Sidebar() {
|
|
|
138
138
|
data-sidebar-brand-toggle
|
|
139
139
|
>
|
|
140
140
|
<AgentNativeIcon
|
|
141
|
-
size={28}
|
|
142
141
|
aria-hidden="true"
|
|
143
|
-
className="h-
|
|
142
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-foreground"
|
|
144
143
|
/>
|
|
145
144
|
{!collapsed && (
|
|
146
145
|
<span className="text-sm font-semibold tracking-tight">
|
|
@@ -408,9 +408,8 @@ export function Sidebar({
|
|
|
408
408
|
}
|
|
409
409
|
>
|
|
410
410
|
<AgentNativeIcon
|
|
411
|
-
size={28}
|
|
412
411
|
aria-hidden="true"
|
|
413
|
-
className="h-
|
|
412
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-accent-foreground"
|
|
414
413
|
/>
|
|
415
414
|
<div className={cn("min-w-0", collapsed && "sr-only")}>
|
|
416
415
|
<p className="truncate text-sm font-semibold text-sidebar-accent-foreground">
|
|
@@ -267,9 +267,8 @@ export function Sidebar() {
|
|
|
267
267
|
data-sidebar-brand-toggle
|
|
268
268
|
>
|
|
269
269
|
<AgentNativeIcon
|
|
270
|
-
size={28}
|
|
271
270
|
aria-hidden="true"
|
|
272
|
-
className="h-
|
|
271
|
+
className="h-3.5 w-6 shrink-0 text-foreground"
|
|
273
272
|
/>
|
|
274
273
|
</button>
|
|
275
274
|
</TooltipTrigger>
|
|
@@ -388,14 +387,13 @@ export function Sidebar() {
|
|
|
388
387
|
? t("sidebar.openAskFullScreen")
|
|
389
388
|
: t("sidebar.collapseSidebar")
|
|
390
389
|
}
|
|
391
|
-
className="flex min-h-10 min-w-0 items-center gap-2 rounded-lg px-2 text-base font-semibold tracking-tight text-
|
|
390
|
+
className="flex min-h-10 min-w-0 items-center gap-2 rounded-lg px-2 text-base font-semibold tracking-tight text-foreground active:scale-[0.96] transition-[color,transform] hover:text-foreground/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
392
391
|
onClick={handleBrandClick}
|
|
393
392
|
data-sidebar-brand-toggle
|
|
394
393
|
>
|
|
395
394
|
<AgentNativeIcon
|
|
396
|
-
size={28}
|
|
397
395
|
aria-hidden="true"
|
|
398
|
-
className="h-
|
|
396
|
+
className="h-3.5 w-6 shrink-0 text-foreground"
|
|
399
397
|
/>
|
|
400
398
|
<span className="truncate">{t("navigation.brand")}</span>
|
|
401
399
|
</button>
|
|
@@ -252,9 +252,8 @@ function SidebarContent({
|
|
|
252
252
|
{!collapsed && (
|
|
253
253
|
<div className="flex min-w-0 flex-1 items-center gap-2">
|
|
254
254
|
<AgentNativeIcon
|
|
255
|
-
size={28}
|
|
256
255
|
aria-hidden="true"
|
|
257
|
-
className="h-
|
|
256
|
+
className="h-3.5 w-6 shrink-0 text-foreground"
|
|
258
257
|
/>
|
|
259
258
|
<span className="font-logo truncate text-sm font-bold tracking-tight text-foreground">
|
|
260
259
|
{t("navigation.brand")}
|
|
@@ -625,9 +625,8 @@ export function Sidebar({
|
|
|
625
625
|
data-sidebar-brand-toggle
|
|
626
626
|
>
|
|
627
627
|
<AgentNativeIcon
|
|
628
|
-
size={28}
|
|
629
628
|
aria-hidden="true"
|
|
630
|
-
className="h-
|
|
629
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-foreground"
|
|
631
630
|
/>
|
|
632
631
|
{!collapsed && (
|
|
633
632
|
<span className="truncate text-sm font-semibold tracking-tight">
|
|
@@ -106,9 +106,8 @@ export function Sidebar({ collapsed, onToggleCollapsed }: SidebarProps) {
|
|
|
106
106
|
)}
|
|
107
107
|
>
|
|
108
108
|
<AgentNativeIcon
|
|
109
|
-
size={28}
|
|
110
109
|
aria-hidden="true"
|
|
111
|
-
className="h-
|
|
110
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-foreground"
|
|
112
111
|
/>
|
|
113
112
|
{!collapsed && (
|
|
114
113
|
<span className="truncate text-sm font-semibold tracking-tight">
|
|
@@ -1859,7 +1859,7 @@ function DeckSearchInput({
|
|
|
1859
1859
|
const t = useT();
|
|
1860
1860
|
return (
|
|
1861
1861
|
<label
|
|
1862
|
-
className={`flex h-
|
|
1862
|
+
className={`flex h-9 min-w-0 items-center gap-2 rounded-lg border border-border bg-card px-2.5 text-muted-foreground ${className}`}
|
|
1863
1863
|
>
|
|
1864
1864
|
<IconSearch className="size-3.5 shrink-0" aria-hidden="true" />
|
|
1865
1865
|
<Input
|
|
@@ -155,9 +155,8 @@ export function Sidebar({
|
|
|
155
155
|
}
|
|
156
156
|
>
|
|
157
157
|
<AgentNativeIcon
|
|
158
|
-
size={28}
|
|
159
158
|
aria-hidden="true"
|
|
160
|
-
className="h-
|
|
159
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-accent-foreground"
|
|
161
160
|
/>
|
|
162
161
|
<div className={cn("min-w-0", collapsed && "sr-only")}>
|
|
163
162
|
<p className="truncate text-sm font-semibold text-sidebar-accent-foreground">
|
package/dist/collab/routes.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ export declare const getCollabState: import("h3").EventHandlerWithFetch<import("
|
|
|
26
26
|
* Body: { update: string (base64), requestSource?: string }
|
|
27
27
|
*/
|
|
28
28
|
export declare const postCollabUpdate: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
29
|
-
error: string;
|
|
30
29
|
ok?: undefined;
|
|
30
|
+
error: string;
|
|
31
31
|
} | {
|
|
32
32
|
error?: undefined;
|
|
33
33
|
ok: boolean;
|
|
@@ -137,13 +137,13 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
137
137
|
inputSchema: {
|
|
138
138
|
type: string;
|
|
139
139
|
properties: {
|
|
140
|
-
count?: undefined;
|
|
141
140
|
query?: undefined;
|
|
142
141
|
minutes?: undefined;
|
|
143
142
|
limit?: undefined;
|
|
144
143
|
clientHint?: undefined;
|
|
145
144
|
timestamp?: undefined;
|
|
146
145
|
chapterId?: undefined;
|
|
146
|
+
count?: undefined;
|
|
147
147
|
startAt?: undefined;
|
|
148
148
|
endAt?: undefined;
|
|
149
149
|
reason?: undefined;
|
|
@@ -159,7 +159,6 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
159
159
|
inputSchema: {
|
|
160
160
|
type: string;
|
|
161
161
|
properties: {
|
|
162
|
-
count?: undefined;
|
|
163
162
|
query: {
|
|
164
163
|
type: string;
|
|
165
164
|
description: string;
|
|
@@ -175,6 +174,7 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
175
174
|
clientHint?: undefined;
|
|
176
175
|
timestamp?: undefined;
|
|
177
176
|
chapterId?: undefined;
|
|
177
|
+
count?: undefined;
|
|
178
178
|
startAt?: undefined;
|
|
179
179
|
endAt?: undefined;
|
|
180
180
|
reason?: undefined;
|
|
@@ -190,7 +190,6 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
190
190
|
inputSchema: {
|
|
191
191
|
type: string;
|
|
192
192
|
properties: {
|
|
193
|
-
count?: undefined;
|
|
194
193
|
minutes: {
|
|
195
194
|
type: string;
|
|
196
195
|
description: string;
|
|
@@ -200,6 +199,7 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
200
199
|
clientHint?: undefined;
|
|
201
200
|
timestamp?: undefined;
|
|
202
201
|
chapterId?: undefined;
|
|
202
|
+
count?: undefined;
|
|
203
203
|
startAt?: undefined;
|
|
204
204
|
endAt?: undefined;
|
|
205
205
|
reason?: undefined;
|
|
@@ -216,7 +216,6 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
216
216
|
type: string;
|
|
217
217
|
required: string[];
|
|
218
218
|
properties: {
|
|
219
|
-
count?: undefined;
|
|
220
219
|
query: {
|
|
221
220
|
type: string;
|
|
222
221
|
description: string;
|
|
@@ -235,6 +234,7 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
235
234
|
};
|
|
236
235
|
timestamp?: undefined;
|
|
237
236
|
chapterId?: undefined;
|
|
237
|
+
count?: undefined;
|
|
238
238
|
startAt?: undefined;
|
|
239
239
|
endAt?: undefined;
|
|
240
240
|
reason?: undefined;
|
|
@@ -250,7 +250,6 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
250
250
|
type: string;
|
|
251
251
|
required: string[];
|
|
252
252
|
properties: {
|
|
253
|
-
count?: undefined;
|
|
254
253
|
query?: undefined;
|
|
255
254
|
minutes?: undefined;
|
|
256
255
|
limit?: undefined;
|
|
@@ -264,6 +263,7 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
264
263
|
description: string;
|
|
265
264
|
};
|
|
266
265
|
chapterId?: undefined;
|
|
266
|
+
count?: undefined;
|
|
267
267
|
startAt?: undefined;
|
|
268
268
|
endAt?: undefined;
|
|
269
269
|
includeMicrophone?: undefined;
|
|
@@ -314,13 +314,13 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
314
314
|
type: string;
|
|
315
315
|
required: string[];
|
|
316
316
|
properties: {
|
|
317
|
-
count?: undefined;
|
|
318
317
|
query?: undefined;
|
|
319
318
|
minutes?: undefined;
|
|
320
319
|
limit?: undefined;
|
|
321
320
|
clientHint?: undefined;
|
|
322
321
|
timestamp?: undefined;
|
|
323
322
|
chapterId?: undefined;
|
|
323
|
+
count?: undefined;
|
|
324
324
|
startAt: {
|
|
325
325
|
type: string;
|
|
326
326
|
description: string;
|
|
@@ -349,13 +349,13 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
349
349
|
type: string;
|
|
350
350
|
required: string[];
|
|
351
351
|
properties: {
|
|
352
|
-
count?: undefined;
|
|
353
352
|
query?: undefined;
|
|
354
353
|
minutes?: undefined;
|
|
355
354
|
limit?: undefined;
|
|
356
355
|
clientHint?: undefined;
|
|
357
356
|
timestamp?: undefined;
|
|
358
357
|
chapterId?: undefined;
|
|
358
|
+
count?: undefined;
|
|
359
359
|
startAt?: undefined;
|
|
360
360
|
endAt?: undefined;
|
|
361
361
|
reason?: undefined;
|
|
@@ -16,18 +16,18 @@ export declare function createNotificationsHandler(): import("h3").EventHandlerW
|
|
|
16
16
|
error?: undefined;
|
|
17
17
|
ok?: undefined;
|
|
18
18
|
} | {
|
|
19
|
-
count?: undefined;
|
|
20
19
|
updated: number;
|
|
21
20
|
error?: undefined;
|
|
22
21
|
ok?: undefined;
|
|
23
|
-
} | {
|
|
24
22
|
count?: undefined;
|
|
23
|
+
} | {
|
|
25
24
|
updated?: undefined;
|
|
26
25
|
error: string;
|
|
27
26
|
ok?: undefined;
|
|
28
|
-
} | {
|
|
29
27
|
count?: undefined;
|
|
28
|
+
} | {
|
|
30
29
|
updated?: undefined;
|
|
31
30
|
error?: undefined;
|
|
32
31
|
ok: boolean;
|
|
32
|
+
count?: undefined;
|
|
33
33
|
}>>;
|
|
@@ -41,27 +41,27 @@ export declare function createObservabilityHandler(): import("h3").EventHandlerW
|
|
|
41
41
|
thumbsUpRate: number;
|
|
42
42
|
avgEvalScore: number;
|
|
43
43
|
} | {
|
|
44
|
+
ok?: undefined;
|
|
45
|
+
error?: undefined;
|
|
44
46
|
summary: import("./types.js").TraceSummary;
|
|
45
47
|
spans: import("./types.js").TraceSpan[];
|
|
46
48
|
id?: undefined;
|
|
47
|
-
error?: undefined;
|
|
48
|
-
ok?: undefined;
|
|
49
49
|
} | {
|
|
50
|
+
ok?: undefined;
|
|
51
|
+
error?: undefined;
|
|
50
52
|
summary?: undefined;
|
|
51
53
|
spans?: undefined;
|
|
52
54
|
id: string;
|
|
53
|
-
error?: undefined;
|
|
54
|
-
ok?: undefined;
|
|
55
55
|
} | {
|
|
56
|
+
ok?: undefined;
|
|
56
57
|
summary?: undefined;
|
|
57
58
|
spans?: undefined;
|
|
58
59
|
id?: undefined;
|
|
59
60
|
error: any;
|
|
60
|
-
ok?: undefined;
|
|
61
61
|
} | {
|
|
62
|
+
error?: undefined;
|
|
62
63
|
summary?: undefined;
|
|
63
64
|
spans?: undefined;
|
|
64
65
|
id?: undefined;
|
|
65
|
-
error?: undefined;
|
|
66
66
|
ok: boolean;
|
|
67
67
|
}>>;
|
|
@@ -51,8 +51,8 @@ export declare function handleDeleteResource(event: any): Promise<{
|
|
|
51
51
|
error: string;
|
|
52
52
|
ok?: undefined;
|
|
53
53
|
} | {
|
|
54
|
-
ok: boolean;
|
|
55
54
|
error?: undefined;
|
|
55
|
+
ok: boolean;
|
|
56
56
|
}>;
|
|
57
57
|
/** POST /_agent-native/resources/upload — upload a file as a resource */
|
|
58
58
|
export declare function handleUploadResource(event: any): Promise<import("./store.js").Resource | {
|
|
@@ -73,10 +73,10 @@ export declare function handleUploadResource(event: any): Promise<import("./stor
|
|
|
73
73
|
runId: string | null;
|
|
74
74
|
expiresAt: number | null;
|
|
75
75
|
metadata: string | null;
|
|
76
|
+
error?: undefined;
|
|
76
77
|
url: string;
|
|
77
78
|
provider: string;
|
|
78
79
|
storageSetupRequired?: undefined;
|
|
79
|
-
error?: undefined;
|
|
80
80
|
} | {
|
|
81
81
|
error: string;
|
|
82
82
|
storageSetupRequired: boolean;
|
package/dist/secrets/routes.d.ts
CHANGED
|
@@ -34,16 +34,16 @@ export declare function createListSecretsHandler(): import("h3").EventHandlerWit
|
|
|
34
34
|
/** POST /_agent-native/secrets/:key — write a secret. */
|
|
35
35
|
export declare function createWriteSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
36
36
|
error: string;
|
|
37
|
-
status?: undefined;
|
|
38
37
|
ok?: undefined;
|
|
38
|
+
status?: undefined;
|
|
39
39
|
} | {
|
|
40
40
|
ok: boolean;
|
|
41
41
|
status: string;
|
|
42
42
|
error?: undefined;
|
|
43
43
|
} | {
|
|
44
|
+
ok?: undefined;
|
|
44
45
|
error: string;
|
|
45
46
|
removed?: undefined;
|
|
46
|
-
ok?: undefined;
|
|
47
47
|
} | {
|
|
48
48
|
ok: boolean;
|
|
49
49
|
removed: boolean;
|
|
@@ -54,9 +54,9 @@ export declare function createWriteSecretHandler(): import("h3").EventHandlerWit
|
|
|
54
54
|
* or the current stored value without changing anything.
|
|
55
55
|
*/
|
|
56
56
|
export declare function createTestSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
57
|
+
ok?: undefined;
|
|
57
58
|
error: string;
|
|
58
59
|
note?: undefined;
|
|
59
|
-
ok?: undefined;
|
|
60
60
|
} | {
|
|
61
61
|
ok: boolean;
|
|
62
62
|
note?: undefined;
|
|
@@ -2646,22 +2646,48 @@ ${signInJourneyInlineScript()}
|
|
|
2646
2646
|
function __anRedirectToSignedInApp(ret) {
|
|
2647
2647
|
window.location.replace(ret || __anResumeHref());
|
|
2648
2648
|
}
|
|
2649
|
-
|
|
2649
|
+
var __AN_SESSION_PROBE_ATTEMPTS = 3;
|
|
2650
|
+
var __AN_SESSION_PROBE_RETRY_MS = 400;
|
|
2651
|
+
/**
|
|
2652
|
+
* Resolves 'signed-in', 'signed-out', or 'unreadable' — never collapsing
|
|
2653
|
+
* the last two. Signed out is a 200 carrying { error }, so a non-ok status,
|
|
2654
|
+
* an unparseable body, or a failed fetch means the question went
|
|
2655
|
+
* unanswered, not that there is no session. Coercing those to signed-out
|
|
2656
|
+
* strands a signed-in visitor on this form: the redirect below never fires
|
|
2657
|
+
* and nothing retries it.
|
|
2658
|
+
*/
|
|
2659
|
+
function __anProbeSession() {
|
|
2650
2660
|
return fetch(__anPath('/_agent-native/auth/session'), {
|
|
2651
2661
|
headers: { 'Accept': 'application/json' },
|
|
2652
2662
|
credentials: 'include',
|
|
2653
2663
|
cache: 'no-store',
|
|
2654
2664
|
}).then(function(res) {
|
|
2655
|
-
if (!res.ok) return
|
|
2656
|
-
return res.json().
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
return
|
|
2661
|
-
}
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
+
if (!res.ok) return 'unreadable';
|
|
2666
|
+
return res.json().then(function(data) {
|
|
2667
|
+
if (data && data.email && !data.error) return 'signed-in';
|
|
2668
|
+
return 'signed-out';
|
|
2669
|
+
}, function() {
|
|
2670
|
+
return 'unreadable';
|
|
2671
|
+
});
|
|
2672
|
+
}, function() {
|
|
2673
|
+
return 'unreadable';
|
|
2674
|
+
});
|
|
2675
|
+
}
|
|
2676
|
+
function __anResolveSessionState(attemptsLeft) {
|
|
2677
|
+
return __anProbeSession().then(function(state) {
|
|
2678
|
+
if (state !== 'unreadable' || attemptsLeft <= 1) return state;
|
|
2679
|
+
return new Promise(function(resolve) {
|
|
2680
|
+
setTimeout(resolve, __AN_SESSION_PROBE_RETRY_MS);
|
|
2681
|
+
}).then(function() {
|
|
2682
|
+
return __anResolveSessionState(attemptsLeft - 1);
|
|
2683
|
+
});
|
|
2684
|
+
});
|
|
2685
|
+
}
|
|
2686
|
+
function __anMaybeRedirectSignedIn(ret) {
|
|
2687
|
+
return __anResolveSessionState(__AN_SESSION_PROBE_ATTEMPTS).then(function(state) {
|
|
2688
|
+
if (state !== 'signed-in') return false;
|
|
2689
|
+
__anRedirectToSignedInApp(ret);
|
|
2690
|
+
return true;
|
|
2665
2691
|
});
|
|
2666
2692
|
}
|
|
2667
2693
|
function __anIsLoopbackHostname() {
|
|
@@ -387,9 +387,8 @@ export function Sidebar({
|
|
|
387
387
|
}
|
|
388
388
|
>
|
|
389
389
|
<AgentNativeIcon
|
|
390
|
-
size={28}
|
|
391
390
|
aria-hidden="true"
|
|
392
|
-
className="h-
|
|
391
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-accent-foreground"
|
|
393
392
|
/>
|
|
394
393
|
<div className={cn("min-w-0", collapsed && "sr-only")}>
|
|
395
394
|
<p className="truncate text-sm font-semibold text-sidebar-accent-foreground">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-nightly-20260828235425",
|
|
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": {
|
|
@@ -435,8 +435,8 @@
|
|
|
435
435
|
"y-protocols": "^1.0.7",
|
|
436
436
|
"yjs": "^13.6.32",
|
|
437
437
|
"zod": "^4.3.6",
|
|
438
|
-
"@agent-native/
|
|
439
|
-
"@agent-native/
|
|
438
|
+
"@agent-native/recap-cli": "0.5.21",
|
|
439
|
+
"@agent-native/toolkit": "^0.18.0"
|
|
440
440
|
},
|
|
441
441
|
"devDependencies": {
|
|
442
442
|
"@ai-sdk/anthropic": "^3.0.71",
|
|
@@ -387,9 +387,8 @@ export function Sidebar({
|
|
|
387
387
|
}
|
|
388
388
|
>
|
|
389
389
|
<AgentNativeIcon
|
|
390
|
-
size={28}
|
|
391
390
|
aria-hidden="true"
|
|
392
|
-
className="h-
|
|
391
|
+
className="h-3.5 w-6 shrink-0 text-sidebar-accent-foreground"
|
|
393
392
|
/>
|
|
394
393
|
<div className={cn("min-w-0", collapsed && "sr-only")}>
|
|
395
394
|
<p className="truncate text-sm font-semibold text-sidebar-accent-foreground">
|