@agent-native/core 1.0.0 → 1.0.1-nightly-20260828233044
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/calendar/app/components/layout/Sidebar.tsx +1 -1
- package/corpus/templates/calendar/changelog/2026-08-28-the-calendar-sidebar-keeps-the-settings-link-compact.md +6 -0
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/progress/routes.d.ts +1 -1
- package/dist/server/onboarding-html.js +37 -11
- package/package.json +3 -3
package/corpus/README.md
CHANGED
|
@@ -62,11 +62,11 @@ export declare const postAwareness: import("h3").EventHandlerWithFetch<import("h
|
|
|
62
62
|
error: string;
|
|
63
63
|
states?: undefined;
|
|
64
64
|
} | {
|
|
65
|
-
error?: undefined;
|
|
66
65
|
states: {
|
|
67
66
|
clientId: number;
|
|
68
67
|
state: string;
|
|
69
68
|
}[];
|
|
69
|
+
error?: undefined;
|
|
70
70
|
}>>;
|
|
71
71
|
/**
|
|
72
72
|
* GET /_agent-native/collab/:docId/users
|
|
@@ -77,9 +77,9 @@ export declare const getActiveUsers: import("h3").EventHandlerWithFetch<import("
|
|
|
77
77
|
error: string;
|
|
78
78
|
users?: undefined;
|
|
79
79
|
} | {
|
|
80
|
-
error?: undefined;
|
|
81
80
|
users: {
|
|
82
81
|
clientId: number;
|
|
83
82
|
lastSeen: number;
|
|
84
83
|
}[];
|
|
84
|
+
error?: undefined;
|
|
85
85
|
}>>;
|
|
@@ -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() {
|
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-20260828233044",
|
|
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",
|