@agent-native/core 0.101.5 → 0.101.6

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 (55) hide show
  1. package/README.md +1 -1
  2. package/corpus/README.md +1 -1
  3. package/corpus/core/CHANGELOG.md +6 -0
  4. package/corpus/core/docs/content/locales/ar-SA/pure-agent-apps.mdx +2 -2
  5. package/corpus/core/docs/content/locales/de-DE/pure-agent-apps.mdx +2 -2
  6. package/corpus/core/docs/content/locales/es-ES/pure-agent-apps.mdx +2 -2
  7. package/corpus/core/docs/content/locales/fr-FR/pure-agent-apps.mdx +2 -2
  8. package/corpus/core/docs/content/locales/hi-IN/pure-agent-apps.mdx +2 -2
  9. package/corpus/core/docs/content/locales/ja-JP/pure-agent-apps.mdx +2 -2
  10. package/corpus/core/docs/content/locales/ko-KR/pure-agent-apps.mdx +2 -2
  11. package/corpus/core/docs/content/locales/pt-BR/pure-agent-apps.mdx +2 -2
  12. package/corpus/core/docs/content/locales/zh-CN/pure-agent-apps.mdx +2 -2
  13. package/corpus/core/docs/content/locales/zh-TW/pure-agent-apps.mdx +2 -2
  14. package/corpus/core/docs/content/pure-agent-apps.mdx +58 -14
  15. package/corpus/core/package.json +1 -1
  16. package/corpus/templates/analytics/AGENTS.md +6 -0
  17. package/corpus/templates/analytics/README.md +1 -1
  18. package/corpus/templates/analytics/actions/data-source-status.ts +19 -1
  19. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/index.tsx +5 -1
  20. package/corpus/templates/analytics/app/routes/_index.tsx +2 -2
  21. package/corpus/templates/analytics/changelog/2026-07-14-analytics-chat-guides-you-to-connect-a-data-source-with-a-di.md +6 -0
  22. package/corpus/templates/analytics/changelog/2026-07-14-analytics-landing-pages-now-clearly-position-the-app-as-an-o.md +6 -0
  23. package/corpus/templates/analytics/changelog/2026-07-15-daily-dashboard-emails-now-include-the-complete-dashboard-sc.md +6 -0
  24. package/corpus/templates/analytics/server/jobs/dashboard-report.ts +8 -1
  25. package/corpus/templates/analytics/server/lib/dashboard-report.ts +64 -12
  26. package/corpus/templates/analytics/server/lib/real-data-actions.ts +15 -3
  27. package/corpus/templates/analytics/server/plugins/agent-chat.ts +364 -4
  28. package/corpus/templates/clips/app/components/dictate/vocabulary-section.tsx +1 -0
  29. package/corpus/templates/clips/app/components/library/folder-tree.tsx +12 -9
  30. package/corpus/templates/clips/app/components/library/library-layout.tsx +19 -16
  31. package/corpus/templates/clips/app/routes/_app.spaces._index.tsx +13 -9
  32. package/corpus/templates/clips/changelog/2026-07-15-folders-and-sidebar-links-are-clickable-again-immediately-af.md +6 -0
  33. package/corpus/templates/clips/changelog/2026-07-15-hovering-a-truncated-folder-name-now-shows-the-full-name.md +6 -0
  34. package/corpus/templates/clips/changelog/2026-07-15-space-creation-controls-are-now-shown-only-to-organization-a.md +6 -0
  35. package/corpus/templates/clips/changelog/2026-07-15-vocabulary-terms-can-now-be-deleted-from-the-dictation-dicti.md +6 -0
  36. package/corpus/templates/clips/desktop/src/styles.css +23 -1
  37. package/corpus/templates/clips/desktop/src-tauri/src/whisper_speech.rs +49 -7
  38. package/corpus/templates/clips/server/lib/recordings.ts +5 -2
  39. package/dist/collab/struct-routes.d.ts +1 -1
  40. package/dist/observability/routes.d.ts +1 -1
  41. package/dist/progress/routes.d.ts +1 -1
  42. package/dist/resources/handlers.d.ts +3 -3
  43. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  44. package/docs/content/locales/ar-SA/pure-agent-apps.mdx +2 -2
  45. package/docs/content/locales/de-DE/pure-agent-apps.mdx +2 -2
  46. package/docs/content/locales/es-ES/pure-agent-apps.mdx +2 -2
  47. package/docs/content/locales/fr-FR/pure-agent-apps.mdx +2 -2
  48. package/docs/content/locales/hi-IN/pure-agent-apps.mdx +2 -2
  49. package/docs/content/locales/ja-JP/pure-agent-apps.mdx +2 -2
  50. package/docs/content/locales/ko-KR/pure-agent-apps.mdx +2 -2
  51. package/docs/content/locales/pt-BR/pure-agent-apps.mdx +2 -2
  52. package/docs/content/locales/zh-CN/pure-agent-apps.mdx +2 -2
  53. package/docs/content/locales/zh-TW/pure-agent-apps.mdx +2 -2
  54. package/docs/content/pure-agent-apps.mdx +58 -14
  55. package/package.json +3 -3
@@ -0,0 +1,6 @@
1
+ ---
2
+ type: fixed
3
+ date: 2026-07-15
4
+ ---
5
+
6
+ Hovering a truncated folder name now shows the full name.
@@ -0,0 +1,6 @@
1
+ ---
2
+ type: fixed
3
+ date: 2026-07-15
4
+ ---
5
+
6
+ Space creation controls are now shown only to organization admins and owners.
@@ -0,0 +1,6 @@
1
+ ---
2
+ type: fixed
3
+ date: 2026-07-15
4
+ ---
5
+
6
+ Vocabulary terms can now be deleted from the dictation dictionary.
@@ -1220,6 +1220,28 @@ body[data-clips-route="recording-pill"] #root {
1220
1220
  flex-direction: column;
1221
1221
  gap: 6px;
1222
1222
  margin-bottom: 4px;
1223
+ max-height: 280px;
1224
+ overflow-y: auto;
1225
+ overflow-x: hidden;
1226
+ overscroll-behavior: contain;
1227
+ padding-right: 2px;
1228
+ }
1229
+
1230
+ .popover-list::-webkit-scrollbar {
1231
+ width: 4px;
1232
+ }
1233
+
1234
+ .popover-list::-webkit-scrollbar-track {
1235
+ background: transparent;
1236
+ }
1237
+
1238
+ .popover-list::-webkit-scrollbar-thumb {
1239
+ background: var(--border-strong);
1240
+ border-radius: 999px;
1241
+ }
1242
+
1243
+ .popover-list::-webkit-scrollbar-thumb:hover {
1244
+ background: var(--fg-subtle);
1223
1245
  }
1224
1246
 
1225
1247
  .popover-list-item {
@@ -1471,7 +1493,7 @@ body[data-clips-route="recording-pill"] #root {
1471
1493
  content isn't flush with the panel edge. Must follow `.setup` so it wins
1472
1494
  over the shorthand padding above. */
1473
1495
  .setup.popover-view {
1474
- padding-bottom: 26px;
1496
+ padding-bottom: 16px;
1475
1497
  }
1476
1498
 
1477
1499
  .setup h2 {
@@ -495,14 +495,22 @@ mod macos {
495
495
  let mut out = Vec::new();
496
496
  for segment in state.as_iter() {
497
497
  let text = segment.to_string();
498
- if is_speech(&text) && segment.no_speech_probability() < MAX_NO_SPEECH_PROBABILITY {
499
- // whisper timestamps are in centiseconds → ms.
500
- out.push((
501
- segment.start_timestamp() * 10,
502
- segment.end_timestamp() * 10,
503
- text,
504
- ));
498
+ if !is_speech(&text) || segment.no_speech_probability() >= MAX_NO_SPEECH_PROBABILITY {
499
+ continue;
500
+ }
501
+ // Low average token confidence means whisper was guessing —
502
+ // typically a mis-detected-language hallucination that reads
503
+ // fluently but scores poorly. Drop it.
504
+ let confidence = segment_confidence(&segment);
505
+ if confidence < MIN_AVG_TOKEN_PROBABILITY {
506
+ continue;
505
507
  }
508
+ // whisper timestamps are in centiseconds → ms.
509
+ out.push((
510
+ segment.start_timestamp() * 10,
511
+ segment.end_timestamp() * 10,
512
+ text,
513
+ ));
506
514
  }
507
515
  out
508
516
  }
@@ -530,6 +538,40 @@ mod macos {
530
538
  const VOICE_RMS_THRESHOLD: f32 = 0.006;
531
539
  /// A second, model-level gate for ambient/no-speech Whisper segments.
532
540
  const MAX_NO_SPEECH_PROBABILITY: f32 = 0.72;
541
+ /// Minimum average per-token probability for a segment to count as real
542
+ /// speech. On noisy/near-silent audio whisper mis-detects the language and
543
+ /// decodes fluent-looking gibberish in another language — but those tokens
544
+ /// are low-confidence under the hood. Dropping segments below this cutoff
545
+ /// removes that wrong-language garbage while keeping genuine multilingual
546
+ /// speech (which decodes with high confidence).
547
+ const MIN_AVG_TOKEN_PROBABILITY: f32 = 0.55;
548
+
549
+ /// Average the model's per-token probability across a segment. Returns 0.0
550
+ /// for an empty segment so it is treated as low-confidence. Special tokens
551
+ /// (timestamps, `[_BEG_]`, …) render as `[_…]` and are skipped so they
552
+ /// don't skew the average toward the text tokens we actually care about.
553
+ fn segment_confidence(segment: &whisper_rs::WhisperSegment<'_>) -> f32 {
554
+ let mut sum = 0.0f32;
555
+ let mut count = 0u32;
556
+ for i in 0..segment.n_tokens() {
557
+ let Some(token) = segment.get_token(i) else {
558
+ continue;
559
+ };
560
+ let is_special = token
561
+ .to_str_lossy()
562
+ .map(|t| t.starts_with("[_"))
563
+ .unwrap_or(false);
564
+ if is_special {
565
+ continue;
566
+ }
567
+ sum += token.token_probability();
568
+ count += 1;
569
+ }
570
+ if count == 0 {
571
+ return 0.0;
572
+ }
573
+ sum / count as f32
574
+ }
533
575
 
534
576
  fn partial_inference_due(
535
577
  emit_partials: bool,
@@ -6,7 +6,7 @@ import {
6
6
  getRequestOrgId,
7
7
  } from "@agent-native/core/server/request-context";
8
8
  import { and, desc, eq, sql } from "drizzle-orm";
9
- import type { H3Event } from "h3";
9
+ import { HTTPError, type H3Event } from "h3";
10
10
 
11
11
  import { getDb, schema } from "../db/index.js";
12
12
 
@@ -120,7 +120,10 @@ export async function requireOrganizationAccess(
120
120
  const email = getCurrentOwnerEmail();
121
121
  const role = await getOrganizationRoleForEmail(resolvedOrganizationId, email);
122
122
  if (!role || !organizationRoleAllowed(role, allowedRoles)) {
123
- throw new Error("Organization not found or access denied");
123
+ throw new HTTPError({
124
+ statusCode: 403,
125
+ statusMessage: "Organization not found or access denied",
126
+ });
124
127
  }
125
128
  return { organizationId: resolvedOrganizationId, email, role };
126
129
  }
@@ -13,8 +13,8 @@
13
13
  * Body: { json: any, fieldName?: string, type?: "map"|"array", requestSource?: string }
14
14
  */
15
15
  export declare const postCollabJson: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
16
- error: string;
17
16
  ok?: undefined;
17
+ error: string;
18
18
  } | {
19
19
  error?: undefined;
20
20
  ok: boolean;
@@ -62,7 +62,7 @@ export declare function createObservabilityHandler(): import("h3").EventHandlerW
62
62
  summary?: undefined;
63
63
  spans?: undefined;
64
64
  id?: undefined;
65
- ok: boolean;
66
65
  error?: undefined;
66
+ ok: boolean;
67
67
  }>>;
68
68
  //# sourceMappingURL=routes.d.ts.map
@@ -15,7 +15,7 @@ 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
  }>>;
21
21
  //# sourceMappingURL=routes.d.ts.map
@@ -49,11 +49,11 @@ export declare function handleUpdateResource(event: any): Promise<import("./stor
49
49
  }>;
50
50
  /** DELETE /_agent-native/resources/:id — delete a resource */
51
51
  export declare function handleDeleteResource(event: any): Promise<{
52
- error: string;
53
52
  ok?: undefined;
53
+ error: string;
54
54
  } | {
55
- ok: boolean;
56
55
  error?: undefined;
56
+ ok: boolean;
57
57
  }>;
58
58
  /** POST /_agent-native/resources/upload — upload a file as a resource */
59
59
  export declare function handleUploadResource(event: any): Promise<import("./store.js").Resource | {
@@ -74,10 +74,10 @@ export declare function handleUploadResource(event: any): Promise<import("./stor
74
74
  runId: string | null;
75
75
  expiresAt: number | null;
76
76
  metadata: string | null;
77
+ error?: undefined;
77
78
  url: string;
78
79
  provider: string;
79
80
  storageSetupRequired?: undefined;
80
- error?: undefined;
81
81
  } | {
82
82
  error: string;
83
83
  storageSetupRequired: boolean;
@@ -27,11 +27,11 @@ 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;
31
30
  ok: boolean;
32
31
  key: string;
33
32
  baseUrlKey?: string;
34
33
  scope: AgentEngineApiKeyScope;
34
+ error?: undefined;
35
35
  }>>;
36
36
  export {};
37
37
  //# sourceMappingURL=agent-engine-api-key-route.d.ts.map
@@ -68,9 +68,9 @@ Automation-first app هو Agent-Native app بلا متصفح من أجل schedul
68
68
 
69
69
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
70
70
 
71
- ## أضف الدردشة لاحقاً {#add-chat-later}
71
+ ## أضف واجهة مستخدم لاحقاً {#add-chat-later}
72
72
 
73
- يختار `--headless` السقالة الأولية فقط، ولا يوجد أمر `agent-native` يحوّل مشروعاً قائماً بلا واجهة إلى تطبيق دردشة في مكانه. عندما يحتاج الأشخاص إلى محادثة في المتصفح، استخدم [قالب Chat](/docs/template-chat) كمرجع للترحيل: احتفظ بالـ actions وبيانات SQL والتعليمات والمهارات، ثم أضف shell المتصفح وserver plugins و`<AgentChatSurface>` وplugin للدردشة يحمّل actions الحالية. تحقّق من `pnpm typecheck` ومن محادثة تستدعي action قائمة. استخدم `agent-native add` لمخططات التكامل، لا لهذا التحويل.
73
+ يختار `--headless` السقالة الأولية فقط، ولا يوجد أمر `agent-native` يحوّل مشروعاً قائماً بلا واجهة إلى تطبيق متصفح في مكانه. عندما يحتاج الأشخاص إلى واجهة مستخدم، استخدم [قالب Chat](/docs/template-chat) كمرجع للترحيل: احتفظ بالـ actions وبيانات SQL والتعليمات والمهارات، ثم أضف shell المتصفح وserver plugins. وإذا كانت الواجهة محادثة، أضف `<AgentChatSurface>` وplugin للدردشة يحمّل actions الحالية. تحقّق من `pnpm typecheck` ومن تدفق واجهة يستدعي action قائمة. استخدم `agent-native add` لمخططات التكامل، لا لهذا التحويل.
74
74
 
75
75
  ## ما هي الخطوة التالية
76
76
 
@@ -70,9 +70,9 @@ Die Box, das Gerüst, der Repo-Zugriff und die Lauffreigabe sind jetzt an einem
70
70
 
71
71
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
72
72
 
73
- ## Chat später hinzufügen {#add-chat-later}
73
+ ## Später eine UI hinzufügen {#add-chat-later}
74
74
 
75
- `--headless` wählt nur das anfängliche Scaffold; es gibt keinen `agent-native`-Befehl, der ein bestehendes action-only-Projekt direkt in eine Chat-App umwandelt. Wenn Menschen eine Browser-Unterhaltung brauchen, nutze das [Chat-Template](/docs/template-chat) als Migrationsreferenz: Behalte Actions, SQL-Daten, Anweisungen und Skills bei und übernimm Browser-Shell, Server-Plugins, `<AgentChatSurface>` sowie ein Chat-Plugin, das die vorhandenen Actions lädt. Prüfe `pnpm typecheck` und einen Chat-Turn, der eine vorhandene Action aufruft. `agent-native add` ist für Integrations-Blaupausen gedacht, nicht für diese Umwandlung.
75
+ `--headless` wählt nur das anfängliche Scaffold; es gibt keinen `agent-native`-Befehl, der ein bestehendes action-only-Projekt direkt in eine Browser-App umwandelt. Wenn Menschen eine UI brauchen, nutze das [Chat-Template](/docs/template-chat) als Migrationsreferenz: Behalte Actions, SQL-Daten, Anweisungen und Skills bei und übernimm Browser-Shell und Server-Plugins. Für eine Chat-Oberfläche kommen `<AgentChatSurface>` und ein Chat-Plugin hinzu, das die vorhandenen Actions lädt. Prüfe `pnpm typecheck` und einen UI-Ablauf, der eine vorhandene Action aufruft. `agent-native add` ist für Integrations-Blaupausen gedacht, nicht für diese Umwandlung.
76
76
 
77
77
  ## Was kommt als nächstes
78
78
 
@@ -70,9 +70,9 @@ la caja, el andamio, el acceso al repositorio y el uso compartido de ejecuciones
70
70
 
71
71
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
72
72
 
73
- ## Añade chat más adelante {#add-chat-later}
73
+ ## Añade una UI más adelante {#add-chat-later}
74
74
 
75
- `--headless` solo elige el scaffold inicial; no hay un comando de `agent-native` que convierta en el sitio un proyecto existente solo de acciones en una app de chat. Cuando las personas necesiten una conversación en el navegador, usa la [plantilla Chat](/docs/template-chat) como referencia de migración: conserva las actions, los datos SQL, las instrucciones y las skills, y añade el shell del navegador, los plugins de servidor, `<AgentChatSurface>` y un plugin de chat que cargue las actions existentes. Comprueba `pnpm typecheck` y un turno de chat que llame una action existente. `agent-native add` es para planos de integración, no para esta conversión.
75
+ `--headless` solo elige el scaffold inicial; no hay un comando de `agent-native` que convierta en el sitio un proyecto existente solo de acciones en una app de navegador. Cuando las personas necesiten una UI, usa la [plantilla Chat](/docs/template-chat) como referencia de migración: conserva las actions, los datos SQL, las instrucciones y las skills, y añade el shell del navegador y los plugins de servidor. Para una superficie de chat, añade `<AgentChatSurface>` y un plugin de chat que cargue las actions existentes. Comprueba `pnpm typecheck` y un flujo de UI que llame una action existente. `agent-native add` es para planos de integración, no para esta conversión.
76
76
 
77
77
  ## ¿Qué sigue?
78
78
 
@@ -68,9 +68,9 @@ la boîte, l'échafaudage, l'accès au dépôt et le partage d'exécution se tro
68
68
 
69
69
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
70
70
 
71
- ## Ajouter le chat plus tard {#add-chat-later}
71
+ ## Ajouter une UI plus tard {#add-chat-later}
72
72
 
73
- `--headless` choisit seulement le scaffold initial ; aucune commande `agent-native` ne convertit directement un projet existant fondé uniquement sur des actions en application de chat. Quand les personnes ont besoin d'une conversation dans le navigateur, utilisez le [modèle Chat](/docs/template-chat) comme référence de migration : conservez les actions, les données SQL, les instructions et les skills, puis ajoutez le shell navigateur, les plugins serveur, `<AgentChatSurface>` et un plugin de chat qui charge les actions existantes. Vérifiez `pnpm typecheck` et un tour de chat appelant une action existante. `agent-native add` sert aux blueprints d'intégration, pas à cette conversion.
73
+ `--headless` choisit seulement le scaffold initial ; aucune commande `agent-native` ne convertit directement un projet existant fondé uniquement sur des actions en application navigateur. Quand les personnes ont besoin d'une UI, utilisez le [modèle Chat](/docs/template-chat) comme référence de migration : conservez les actions, les données SQL, les instructions et les skills, puis ajoutez le shell navigateur et les plugins serveur. Pour une surface de chat, ajoutez `<AgentChatSurface>` et un plugin de chat qui charge les actions existantes. Vérifiez `pnpm typecheck` et un flux UI appelant une action existante. `agent-native add` sert aux blueprints d'intégration, pas à cette conversion.
74
74
 
75
75
  ## Quelle est la prochaine étape
76
76
 
@@ -68,9 +68,9 @@ Automation-first app scheduled jobs, queues, scripts, integration workers और
68
68
 
69
69
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
70
70
 
71
- ## बाद में chat जोड़ें {#add-chat-later}
71
+ ## बाद में UI जोड़ें {#add-chat-later}
72
72
 
73
- `--headless` केवल शुरुआती scaffold चुनता है; कोई `agent-native` command किसी मौजूदा action-only project को in-place chat app में नहीं बदलती। जब लोगों को browser conversation चाहिए, [Chat template](/docs/template-chat) को migration reference की तरह उपयोग करें: actions, SQL data, instructions और skills रखें, फिर browser shell, server plugins, `<AgentChatSurface>` और मौजूदा actions लोड करने वाला chat plugin जोड़ें। `pnpm typecheck` और एक ऐसा chat turn जाँचें जो किसी मौजूदा action को call करे। `agent-native add` integration blueprints के लिए है, इस conversion के लिए नहीं।
73
+ `--headless` केवल शुरुआती scaffold चुनता है; कोई `agent-native` command किसी मौजूदा action-only project को in-place browser app में नहीं बदलती। जब लोगों को UI चाहिए, [Chat template](/docs/template-chat) को migration reference की तरह उपयोग करें: actions, SQL data, instructions और skills रखें, फिर browser shell और server plugins जोड़ें। Chat surface के लिए `<AgentChatSurface>` और मौजूदा actions लोड करने वाला chat plugin भी जोड़ें। `pnpm typecheck` और एक ऐसा UI flow जाँचें जो किसी मौजूदा action को call करे। `agent-native add` integration blueprints के लिए है, इस conversion के लिए नहीं।
74
74
 
75
75
  ## आगे क्या है
76
76
 
@@ -68,9 +68,9 @@ Automation-first app は、scheduled jobs、queues、scripts、integration worke
68
68
 
69
69
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
70
70
 
71
- ## 後からチャットを追加する {#add-chat-later}
71
+ ## 後から UI を追加する {#add-chat-later}
72
72
 
73
- `--headless` が選ぶのは初期 scaffold だけで、既存の action-only プロジェクトをその場で Chat アプリに変換する `agent-native` コマンドはありません。ブラウザーでの会話が必要になったら、移行の参照として [Chat template](/docs/template-chat) を使います。actions、SQL データ、instructions、skills は保持し、browser shellserver plugins、`<AgentChatSurface>`、既存 actions を読み込む chat plugin を追加してください。`pnpm typecheck` と既存 action を呼ぶ chat turn を確認します。`agent-native add` は integration blueprints 用であり、この変換用ではありません。
73
+ `--headless` が選ぶのは初期 scaffold だけで、既存の action-only プロジェクトをその場でブラウザーアプリに変換する `agent-native` コマンドはありません。UI が必要になったら、移行の参照として [Chat template](/docs/template-chat) を使います。actions、SQL データ、instructions、skills は保持し、browser shellserver plugins を追加してください。チャット surface には `<AgentChatSurface>` と既存 actions を読み込む chat plugin も追加します。`pnpm typecheck` と既存 action を呼ぶ UI フローを確認します。`agent-native add` は integration blueprints 用であり、この変換用ではありません。
74
74
 
75
75
  ## 次は何ですか
76
76
 
@@ -66,9 +66,9 @@ Automation-first app은 scheduled jobs, queues, scripts, integration workers, ex
66
66
 
67
67
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
68
68
 
69
- ## 나중에 채팅 추가하기 {#add-chat-later}
69
+ ## 나중에 UI 추가하기 {#add-chat-later}
70
70
 
71
- `--headless`는 초기 scaffold만 선택하며, 기존 action-only 프로젝트를 제자리에서 Chat 앱으로 변환하는 `agent-native` 명령은 없습니다. 브라우저 대화가 필요해지면 [Chat 템플릿](/docs/template-chat)을 마이그레이션 기준으로 사용하세요. actions, SQL 데이터, instructions, skills를 유지하고 browser shell, server plugins, `<AgentChatSurface>`, 기존 actions를 로드하는 chat plugin 추가합니다. `pnpm typecheck`와 기존 action을 호출하는 chat turn을 확인하세요. `agent-native add`는 이 변환이 아니라 integration blueprints용입니다.
71
+ `--headless`는 초기 scaffold만 선택하며, 기존 action-only 프로젝트를 제자리에서 브라우저 앱으로 변환하는 `agent-native` 명령은 없습니다. UI가 필요해지면 [Chat 템플릿](/docs/template-chat)을 마이그레이션 기준으로 사용하세요. actions, SQL 데이터, instructions, skills를 유지하고 browser shell server plugins 추가합니다. Chat surface에는 `<AgentChatSurface>`와 기존 actions를 로드하는 chat plugin 추가합니다. `pnpm typecheck`와 기존 action을 호출하는 UI flow를 확인하세요. `agent-native add`는 이 변환이 아니라 integration blueprints용입니다.
72
72
 
73
73
  ## 다음 단계
74
74
 
@@ -68,9 +68,9 @@ a caixa, o scaffold, o acesso ao repositório e o compartilhamento de execução
68
68
 
69
69
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
70
70
 
71
- ## Adicione chat depois {#add-chat-later}
71
+ ## Adicione uma UI depois {#add-chat-later}
72
72
 
73
- `--headless` escolhe somente o scaffold inicial; não há um comando `agent-native` que converta no lugar um projeto existente apenas com actions em um app de chat. Quando as pessoas precisarem de uma conversa no navegador, use o [template Chat](/docs/template-chat) como referência de migração: mantenha as actions, os dados SQL, as instructions e as skills e adicione o shell do navegador, os server plugins, `<AgentChatSurface>` e um chat plugin que carregue as actions existentes. Verifique `pnpm typecheck` e um turno de chat que chame uma action existente. `agent-native add` é para integration blueprints, não para essa conversão.
73
+ `--headless` escolhe somente o scaffold inicial; não há um comando `agent-native` que converta no lugar um projeto existente apenas com actions em um app de navegador. Quando as pessoas precisarem de uma UI, use o [template Chat](/docs/template-chat) como referência de migração: mantenha as actions, os dados SQL, as instructions e as skills e adicione o shell do navegador e os server plugins. Para uma superfície de chat, adicione `<AgentChatSurface>` e um chat plugin que carregue as actions existentes. Verifique `pnpm typecheck` e um fluxo de UI que chame uma action existente. `agent-native add` é para integration blueprints, não para essa conversão.
74
74
 
75
75
  ## O que vem a seguir
76
76
 
@@ -66,9 +66,9 @@ Automation-first app 是无浏览器的 Agent-Native app,用于 scheduled jobs
66
66
 
67
67
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
68
68
 
69
- ## 稍后添加聊天 {#add-chat-later}
69
+ ## 稍后添加 UI {#add-chat-later}
70
70
 
71
- `--headless` 只选择初始 scaffold;没有可将现有仅 actions 项目原地转换为聊天应用的 `agent-native` 命令。当用户需要浏览器对话时,请将 [Chat 模板](/docs/template-chat) 用作迁移参考:保留 actions、SQL 数据、instructions 和 skills,并添加浏览器 shellserver plugins、`<AgentChatSurface>` 以及加载现有 actions 的 chat plugin。验证 `pnpm typecheck`,并完成一次调用现有 action 的聊天。`agent-native add` 用于 integration blueprints,不用于此转换。
71
+ `--headless` 只选择初始 scaffold;没有可将现有仅 actions 项目原地转换为浏览器应用的 `agent-native` 命令。当用户需要 UI 时,请将 [Chat 模板](/docs/template-chat) 用作迁移参考:保留 actions、SQL 数据、instructions 和 skills,并添加浏览器 shellserver plugins。对于聊天界面,再添加 `<AgentChatSurface>` 以及加载现有 actions 的 chat plugin。验证 `pnpm typecheck`,并完成一次调用现有 action 的 UI 流程。`agent-native add` 用于 integration blueprints,不用于此转换。
72
72
 
73
73
  ## 下一步是什么
74
74
 
@@ -66,9 +66,9 @@ Automation-first app 是無瀏覽器的 Agent-Native app,用於 scheduled jobs
66
66
 
67
67
  → [**Agent Surfaces — Headless agent**](/docs/agent-surfaces#headless)
68
68
 
69
- ## 稍後新增聊天 {#add-chat-later}
69
+ ## 稍後新增 UI {#add-chat-later}
70
70
 
71
- `--headless` 只會選擇初始 scaffold;沒有可將現有僅 actions 專案原地轉換為聊天應用程式的 `agent-native` 命令。當使用者需要瀏覽器對話時,請將 [Chat 範本](/docs/template-chat) 作為遷移參考:保留 actions、SQL 資料、instructions 和 skills,並新增瀏覽器 shellserver plugins、`<AgentChatSurface>` 與載入現有 actions 的 chat plugin。請驗證 `pnpm typecheck`,並完成一次呼叫現有 action 的聊天。`agent-native add` 用於 integration blueprints,不用於此轉換。
71
+ `--headless` 只會選擇初始 scaffold;沒有可將現有僅 actions 專案原地轉換為瀏覽器應用程式的 `agent-native` 命令。當使用者需要 UI 時,請將 [Chat 範本](/docs/template-chat) 作為遷移參考:保留 actions、SQL 資料、instructions 和 skills,並新增瀏覽器 shellserver plugins。對於聊天介面,再新增 `<AgentChatSurface>` 與載入現有 actions 的 chat plugin。請驗證 `pnpm typecheck`,並完成一次呼叫現有 action 的 UI 流程。`agent-native add` 用於 integration blueprints,不用於此轉換。
72
72
 
73
73
  ## 下一步是什麼
74
74
 
@@ -95,22 +95,66 @@ The `--headless` flag only chooses the initial scaffold. It does not choose a
95
95
  different architecture. You can later move the same `actions/`, instructions,
96
96
  skills, and SQL state into a chat app or full application surface.
97
97
 
98
- ## Add chat later {#add-chat-later}
98
+ ## Add a UI later {#add-chat-later}
99
99
 
100
100
  `--headless` is not a permanent runtime mode, and there is no `agent-native`
101
- command that converts an existing action-only project into a chat app in place.
102
- When people need a browser conversation surface, use the [Chat template](/docs/template-chat)
103
- as the migration reference and keep the durable action and database contract:
104
-
105
- 1. Scaffold a temporary Chat app with the framework version you are migrating
106
- to: `npx @agent-native/core@latest create my-chat-reference --template chat`.
107
- 2. Bring its browser shell, server plugins, and UI dependencies into the
108
- existing project. In particular, add the full-page `<AgentChatSurface>` and
109
- an `agent-chat` plugin that loads the existing action registry.
110
- 3. Keep your action names, Zod schemas, SQL data, instructions, and skills.
111
- Chat calls those same actions; it does not replace them.
112
- 4. Verify both surfaces: run `pnpm typecheck`, start the browser app with
113
- `pnpm dev`, then complete one chat turn that calls an existing action.
101
+ command that converts an existing action-only project into a browser app in
102
+ place. When people need a UI, use the [Chat template](/docs/template-chat) as
103
+ the migration reference and keep the durable action and database contract:
104
+
105
+ <Diagram id="doc-block-ui-later" title="One contract, multiple surfaces" summary={"Start with a headless workflow, then add a browser UI without rewriting the actions, data, instructions, or skills underneath."}>
106
+
107
+ ```html
108
+ <div class="diagram-ui-path">
109
+ <div class="diagram-panel" data-rough>
110
+ <span class="diagram-pill accent">Start headless</span
111
+ ><small class="diagram-muted">jobs · CLI · external agents</small>
112
+ </div>
113
+ <div class="diagram-arrow diagram-muted" aria-hidden="true">&rarr;</div>
114
+ <div class="diagram-panel" data-rough>
115
+ <span class="diagram-pill">Add a UI</span
116
+ ><small class="diagram-muted">chat · routes · durable pages</small>
117
+ </div>
118
+ <div class="diagram-arrow diagram-muted" aria-hidden="true">&rarr;</div>
119
+ <div class="diagram-panel ok" data-rough>
120
+ <span class="diagram-pill ok">Keep the contract</span
121
+ ><small class="diagram-muted">actions · SQL · instructions · skills</small>
122
+ </div>
123
+ </div>
124
+ ```
125
+
126
+ ```css
127
+ .diagram-ui-path {
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ gap: 14px;
132
+ flex-wrap: wrap;
133
+ }
134
+ .diagram-ui-path .diagram-panel {
135
+ display: flex;
136
+ min-width: 150px;
137
+ flex-direction: column;
138
+ align-items: center;
139
+ gap: 4px;
140
+ text-align: center;
141
+ }
142
+ .diagram-ui-path .diagram-arrow {
143
+ font-size: 22px;
144
+ line-height: 1;
145
+ }
146
+ ```
147
+
148
+ </Diagram>
149
+
150
+ 1. Scaffold the first workflow with `npx @agent-native/core@latest create my-agent --headless`.
151
+ 2. When a browser surface becomes useful, bring in the template's shell, server
152
+ plugins, and UI dependencies. For chat, that includes `<AgentChatSurface>`
153
+ and an `agent-chat` plugin that loads the existing action registry.
154
+ 3. Keep your action names, Zod schemas, SQL data, instructions, and skills. A
155
+ UI calls those same actions; it does not replace them.
156
+ 4. Verify both surfaces with `pnpm typecheck`, `pnpm dev`, and one UI flow that
157
+ calls an existing action.
114
158
 
115
159
  Use `agent-native add` for integration blueprints, not for this conversion.
116
160
  Choose chat when people need conversational steering, approvals, or durable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.101.5",
3
+ "version": "0.101.6",
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": {
@@ -335,8 +335,8 @@
335
335
  "y-protocols": "^1.0.7",
336
336
  "yjs": "^13.6.31",
337
337
  "zod": "^4.3.6",
338
- "@agent-native/toolkit": "^0.4.10",
339
- "@agent-native/recap-cli": "0.4.0"
338
+ "@agent-native/recap-cli": "0.4.0",
339
+ "@agent-native/toolkit": "^0.4.10"
340
340
  },
341
341
  "devDependencies": {
342
342
  "@ai-sdk/anthropic": "^3.0.71",