@agent-native/core 0.161.12 → 0.161.14

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 (29) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/templates/analytics/actions/clear-selected-dashboard-object.ts +71 -0
  3. package/corpus/templates/analytics/actions/view-screen.ts +68 -4
  4. package/corpus/templates/analytics/app/hooks/use-dashboard-chat-context.ts +41 -66
  5. package/corpus/templates/analytics/app/lib/selected-object.ts +53 -0
  6. package/corpus/templates/analytics/app/pages/Ask.tsx +21 -0
  7. package/corpus/templates/analytics/changelog/2026-08-18-ask-no-stale-dashboard-context.md +6 -0
  8. package/corpus/templates/calendar/app/root.tsx +12 -4
  9. package/corpus/templates/calendar/changelog/2026-08-18-calendar-stays-responsive-in-the-desktop-app-without-focus-t.md +6 -0
  10. package/corpus/templates/clips/app/components/library/recording-card.tsx +19 -3
  11. package/corpus/templates/clips/changelog/2026-08-18-deleting-a-recording-no-longer-freezes-clips.md +6 -0
  12. package/corpus/templates/clips/desktop/src/app.tsx +9 -10
  13. package/corpus/templates/clips/desktop/src/lib/recorder.ts +4 -3
  14. package/corpus/templates/clips/desktop/src/lib/recording-start-guard.ts +26 -0
  15. package/corpus/templates/dispatch/app/chat-first-pages.ts +40 -40
  16. package/corpus/templates/dispatch/app/i18n-data.ts +5 -5
  17. package/corpus/templates/factory/AGENTS.md +30 -29
  18. package/dist/action.js +49 -0
  19. package/dist/client/AssistantChat.js +1 -0
  20. package/dist/client/chat-first/app-open-actions.js +1 -1
  21. package/dist/client/chat-first/copy.js +2 -2
  22. package/dist/client/mcp-apps/McpAppRenderer.js +7 -2
  23. package/dist/collab/awareness.d.ts +2 -2
  24. package/dist/mcp/embed-app.js +71 -2
  25. package/dist/observability/routes.d.ts +3 -3
  26. package/dist/progress/routes.d.ts +1 -1
  27. package/dist/secrets/routes.d.ts +9 -9
  28. package/dist/styles/agent-conversation.css +25 -4
  29. package/package.json +1 -1
@@ -15,6 +15,6 @@ export declare function createProgressHandler(): import("h3").EventHandlerWithFe
15
15
  error: string;
16
16
  ok?: undefined;
17
17
  } | {
18
- ok: boolean;
19
18
  error?: undefined;
19
+ ok: boolean;
20
20
  }>>;
@@ -34,37 +34,37 @@ 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
- ok?: undefined;
38
37
  status?: undefined;
38
+ ok?: undefined;
39
39
  } | {
40
- error?: undefined;
41
40
  ok: boolean;
42
41
  status: string;
42
+ error?: undefined;
43
43
  } | {
44
- ok?: undefined;
45
44
  error: string;
46
45
  removed?: undefined;
46
+ ok?: undefined;
47
47
  } | {
48
- error?: undefined;
49
48
  ok: boolean;
50
49
  removed: boolean;
50
+ error?: undefined;
51
51
  }>>;
52
52
  /**
53
53
  * POST /_agent-native/secrets/:key/test — validate an optional candidate value
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;
58
57
  error: string;
59
58
  note?: undefined;
59
+ ok?: undefined;
60
60
  } | {
61
- error?: undefined;
62
61
  ok: boolean;
63
62
  note?: undefined;
64
- } | {
65
63
  error?: undefined;
64
+ } | {
66
65
  ok: boolean;
67
66
  note: string;
67
+ error?: undefined;
68
68
  } | {
69
69
  note?: undefined;
70
70
  ok: boolean;
@@ -95,11 +95,11 @@ export interface AdHocSecretPayload {
95
95
  export declare function createAdHocSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<AdHocSecretPayload[] | {
96
96
  error: string;
97
97
  } | {
98
- error?: undefined;
99
98
  ok: boolean;
100
99
  key: string;
101
- } | {
102
100
  error?: undefined;
101
+ } | {
103
102
  ok: boolean;
104
103
  removed: boolean;
104
+ error?: undefined;
105
105
  }>>;
@@ -331,6 +331,27 @@
331
331
  font-size: 12px;
332
332
  }
333
333
 
334
+ .agent-mcp-app__error {
335
+ pointer-events: none;
336
+ background: transparent;
337
+ }
338
+
339
+ .agent-mcp-app__error-box {
340
+ display: flex;
341
+ max-width: min(100%, 540px);
342
+ flex-direction: column;
343
+ align-items: center;
344
+ gap: 8px;
345
+ padding: 12px 14px;
346
+ border: 1px solid hsl(var(--destructive) / 0.35);
347
+ border-radius: calc(var(--radius) - 2px);
348
+ background: hsl(var(--background) / 0.96);
349
+ box-shadow: 0 8px 24px hsl(var(--foreground) / 0.12);
350
+ color: hsl(var(--destructive));
351
+ text-align: center;
352
+ pointer-events: auto;
353
+ }
354
+
334
355
  .agent-mcp-app__error {
335
356
  flex-direction: column;
336
357
  text-align: center;
@@ -338,10 +359,10 @@
338
359
 
339
360
  .agent-mcp-app__open {
340
361
  min-height: 28px;
341
- border: 1px solid hsl(var(--destructive) / 0.35);
362
+ border: 1px solid hsl(var(--foreground));
342
363
  border-radius: calc(var(--radius) - 2px);
343
- background: hsl(var(--background));
344
- color: hsl(var(--foreground));
364
+ background: hsl(var(--foreground));
365
+ color: hsl(var(--background));
345
366
  cursor: pointer;
346
367
  font: inherit;
347
368
  font-weight: 600;
@@ -349,7 +370,7 @@
349
370
  }
350
371
 
351
372
  .agent-mcp-app__open:hover {
352
- background: hsl(var(--muted));
373
+ opacity: 0.86;
353
374
  }
354
375
 
355
376
  .agent-mcp-app__error,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.161.12",
3
+ "version": "0.161.14",
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": {