@agent-native/core 0.161.8 → 0.161.10

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.
Files changed (64) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/templates/calendar/changelog/2026-08-18-calendar-event-time-editing-respects-the-event-timezone.md +6 -0
  3. package/corpus/templates/clips/app/components/player/video-player.tsx +1 -1
  4. package/corpus/templates/clips/app/i18n/en-US.ts +1 -1
  5. package/corpus/templates/clips/changelog/2026-08-18-centered-clip-play-button-and-comment-panel-hint.md +6 -0
  6. package/corpus/templates/design/app/components/design/DesignCanvas.tsx +180 -37
  7. package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +18 -3
  8. package/corpus/templates/design/app/components/layout/Layout.tsx +4 -1
  9. package/corpus/templates/design/app/hooks/use-navigation-state.ts +13 -2
  10. package/corpus/templates/design/app/i18n-data.ts +11 -0
  11. package/corpus/templates/design/app/lib/agent-chat.ts +30 -0
  12. package/corpus/templates/design/app/lib/builder-host-chat.ts +34 -0
  13. package/corpus/templates/design/app/lib/builder-host-origin.ts +31 -0
  14. package/corpus/templates/design/app/lib/embed-chrome.ts +70 -0
  15. package/corpus/templates/design/app/lib/shell-design.ts +113 -0
  16. package/corpus/templates/design/app/pages/design-editor/code-layer-state.ts +89 -0
  17. package/corpus/templates/design/app/pages/design-editor/nudge-intent.ts +85 -12
  18. package/corpus/templates/design/app/pages/design-editor/pending-edits.ts +43 -19
  19. package/corpus/templates/design/app/pages/design-editor/screen-command-utils.ts +9 -2
  20. package/corpus/templates/design/app/pages/design-editor/tool-state.ts +13 -0
  21. package/corpus/templates/design/app/root.tsx +23 -1
  22. package/corpus/templates/design/server/lib/fusion-screens.ts +17 -1
  23. package/corpus/templates/design/server/plugins/builder-host-embed-headers.ts +37 -0
  24. package/corpus/templates/design/server/routes/[...page].get.ts +1 -0
  25. package/corpus/templates/design/shared/builder-preview-url.ts +113 -0
  26. package/corpus/templates/design/shared/full-app.ts +19 -0
  27. package/corpus/templates/design/shared/shell-screens.ts +139 -0
  28. package/corpus/templates/design/shared/source-mode.ts +10 -0
  29. package/corpus/templates/factory/actions/start-builder-for-item.ts +241 -22
  30. package/corpus/templates/factory/server/plugins/agent-chat.ts +9 -5
  31. package/corpus/templates/factory/server/plugins/factory-scheduler-job.ts +50 -14
  32. package/corpus/templates/factory/server/triage/builder-executor.ts +1 -0
  33. package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +231 -9
  34. package/corpus/templates/slides/app/context/DeckContext.tsx +99 -3
  35. package/corpus/templates/slides/app/i18n/en-US.ts +6 -0
  36. package/corpus/templates/slides/app/pages/DeckEditor.tsx +8 -2
  37. package/dist/agent/chat-health-alert.d.ts +25 -0
  38. package/dist/agent/chat-health-alert.js +132 -0
  39. package/dist/client/RuntimeConfigNotice.js +3 -0
  40. package/dist/client/api-surface.d.ts +19 -0
  41. package/dist/client/api-surface.js +32 -0
  42. package/dist/client/application-state.js +4 -0
  43. package/dist/client/builder-frame.d.ts +6 -0
  44. package/dist/client/builder-frame.js +1 -1
  45. package/dist/client/client-status-requests.js +5 -0
  46. package/dist/client/host/index.d.ts +1 -0
  47. package/dist/client/host/index.js +1 -0
  48. package/dist/client/use-action.d.ts +1 -1
  49. package/dist/client/use-action.js +17 -0
  50. package/dist/client/use-session.js +5 -0
  51. package/dist/collab/awareness.d.ts +2 -2
  52. package/dist/collab/routes.d.ts +1 -1
  53. package/dist/observability/routes.d.ts +5 -5
  54. package/dist/progress/routes.d.ts +1 -1
  55. package/dist/provider-api/actions/custom-provider-registration.d.ts +9 -9
  56. package/dist/provider-api/actions/provider-api.d.ts +11 -11
  57. package/dist/provider-api/corpus-jobs.d.ts +2 -2
  58. package/dist/secrets/routes.d.ts +9 -9
  59. package/dist/server/agent-chat-plugin.js +15 -2
  60. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  61. package/dist/server/realtime-token.d.ts +1 -1
  62. package/dist/server/transcribe-voice.d.ts +1 -1
  63. package/package.json +1 -1
  64. /package/corpus/templates/design/app/routes/{visual-edit.$id.tsx → visual-edit_.$id.tsx} +0 -0
@@ -5094,18 +5094,31 @@ Non-code requests are still fine on this surface: read data, navigate the UI, su
5094
5094
  console.error("[agent-chat] durable stale-run reap failed:", error);
5095
5095
  return null;
5096
5096
  });
5097
+ // Rides the same site-tick as the reap above, for the same reason:
5098
+ // it is the only durable driver on serverless. Never fatal to the
5099
+ // job sweep, and its own failure is a distinguishable outcome
5100
+ // rather than a silent healthy.
5101
+ const { checkChatHealthAndAlert } = await import("../agent/chat-health-alert.js");
5102
+ const chatHealth = await checkChatHealthAndAlert().catch((error) => {
5103
+ console.error("[agent-chat] chat-health alert failed:", error);
5104
+ return null;
5105
+ });
5097
5106
  try {
5098
5107
  // Jobs may request MCP tools, and `getActions` is synchronous —
5099
5108
  // hydrate before the sweep so a serverless container that never
5100
5109
  // eagerly initialized still resolves them.
5101
5110
  await ensureMcpInitialized();
5102
5111
  await processRecurringJobs(schedulerDeps);
5103
- return { ok: true, staleRunsReaped };
5112
+ return { ok: true, staleRunsReaped, chatHealth };
5104
5113
  }
5105
5114
  catch (error) {
5106
5115
  console.error("[recurring-jobs] Sweep route failed:", error);
5107
5116
  setResponseStatus(event, 500);
5108
- return { error: "Recurring-job sweep failed", staleRunsReaped };
5117
+ return {
5118
+ error: "Recurring-job sweep failed",
5119
+ staleRunsReaped,
5120
+ chatHealth,
5121
+ };
5109
5122
  }
5110
5123
  }));
5111
5124
  if (disableRecurringJobsRuntime) {
@@ -27,10 +27,10 @@ export declare function resolveAgentEngineApiKeyWriteTarget(event: H3Event, scop
27
27
  export declare function createAgentEngineApiKeyHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
28
28
  error: any;
29
29
  } | {
30
+ error?: undefined;
30
31
  ok: boolean;
31
32
  key: string;
32
33
  baseUrlKey?: string;
33
34
  scope: AgentEngineApiKeyScope;
34
- error?: undefined;
35
35
  }>>;
36
36
  export {};
@@ -26,8 +26,8 @@ export declare function createRealtimeTokenHandler(): import("h3").EventHandlerW
26
26
  expiresAt?: undefined;
27
27
  ttlSeconds?: undefined;
28
28
  } | {
29
+ error?: undefined;
29
30
  token: string;
30
31
  expiresAt: string;
31
32
  ttlSeconds: number;
32
- error?: undefined;
33
33
  }>>;
@@ -20,6 +20,6 @@ export declare function createTranscribeVoiceHandler(): import("h3").EventHandle
20
20
  error: string;
21
21
  text?: undefined;
22
22
  } | {
23
- text: string;
24
23
  error?: undefined;
24
+ text: string;
25
25
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.161.8",
3
+ "version": "0.161.10",
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": {