@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 CHANGED
@@ -31,4 +31,4 @@ rg -n "defineAction|useActionQuery" node_modules/@agent-native/core/corpus
31
31
 
32
32
  ## Generated Counts
33
33
 
34
- - template files: 8691
34
+ - template files: 8692
@@ -1142,7 +1142,7 @@ export function Sidebar({
1142
1142
  "shrink-0",
1143
1143
  collapsed
1144
1144
  ? "flex flex-col items-center gap-1 px-1 py-2"
1145
- : "space-y-0.5 p-2.5",
1145
+ : "space-y-0.5 px-2.5 pt-2.5",
1146
1146
  )}
1147
1147
  >
1148
1148
  {bottomNavItems.map((item) => {
@@ -0,0 +1,6 @@
1
+ ---
2
+ type: fixed
3
+ date: 2026-08-28
4
+ ---
5
+
6
+ The Calendar sidebar keeps the settings link compact
@@ -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
  }>>;
@@ -15,6 +15,6 @@ export declare function createProgressHandler(): import("h3").EventHandlerWithFe
15
15
  error: string;
16
16
  ok?: undefined;
17
17
  } | {
18
- error?: undefined;
19
18
  ok: boolean;
19
+ error?: undefined;
20
20
  }>>;
@@ -2646,22 +2646,48 @@ ${signInJourneyInlineScript()}
2646
2646
  function __anRedirectToSignedInApp(ret) {
2647
2647
  window.location.replace(ret || __anResumeHref());
2648
2648
  }
2649
- function __anMaybeRedirectSignedIn(ret) {
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 null;
2656
- return res.json().catch(function() { return null; });
2657
- }).then(function(data) {
2658
- if (data && data.email && !data.error) {
2659
- __anRedirectToSignedInApp(ret);
2660
- return true;
2661
- }
2662
- return false;
2663
- }).catch(function() {
2664
- return false;
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.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/toolkit": "^0.18.0",
439
- "@agent-native/recap-cli": "0.5.21"
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",