@agent-native/core 0.145.6 → 0.145.8

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 (95) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/templates/analytics/.agents/skills/frontend-design/SKILL.md +5 -1
  3. package/corpus/templates/analytics/app/pages/settings/AlertRulesSettingsCard.tsx +3 -2
  4. package/corpus/templates/analytics/changelog/2026-08-07-analytics-no-longer-stalls-under-bursts-of-event-ingest-key-.md +6 -0
  5. package/corpus/templates/analytics/changelog/2026-08-07-settings-skeleton-placeholders.md +6 -0
  6. package/corpus/templates/analytics/netlify.toml +1 -1
  7. package/corpus/templates/analytics/package.json +1 -0
  8. package/corpus/templates/analytics/scripts/migrate-production.ts +24 -0
  9. package/corpus/templates/analytics/server/jobs/analytics-rollup-backfill.ts +9 -0
  10. package/corpus/templates/analytics/server/lib/first-party-analytics.ts +65 -10
  11. package/corpus/templates/analytics/server/lib/session-replay.ts +5 -5
  12. package/corpus/templates/analytics/server/plugins/db.ts +14 -3
  13. package/corpus/templates/assets/.agents/skills/frontend-design/SKILL.md +5 -1
  14. package/corpus/templates/brain/.agents/skills/frontend-design/SKILL.md +5 -1
  15. package/corpus/templates/calendar/.agents/skills/frontend-design/SKILL.md +5 -1
  16. package/corpus/templates/chat/.agents/skills/frontend-design/SKILL.md +5 -1
  17. package/corpus/templates/chat/AGENTS.md +3 -0
  18. package/corpus/templates/clips/.agents/skills/frontend-design/SKILL.md +5 -1
  19. package/corpus/templates/content/.agents/skills/frontend-design/SKILL.md +5 -1
  20. package/corpus/templates/crm/app/components/crm/IntelligenceSettings.tsx +21 -3
  21. package/corpus/templates/crm/app/components/crm/settings/ConnectionSettings.tsx +23 -5
  22. package/corpus/templates/crm/app/components/crm/settings/FieldsSettings.tsx +24 -5
  23. package/corpus/templates/crm/app/components/crm/settings/ListsSettings.tsx +23 -3
  24. package/corpus/templates/crm/changelog/2026-08-07-settings-loading-skeletons.md +6 -0
  25. package/corpus/templates/design/.agents/skills/frontend-design/SKILL.md +5 -1
  26. package/corpus/templates/dispatch/.agents/skills/frontend-design/SKILL.md +5 -1
  27. package/corpus/templates/factory/.agents/skills/frontend-design/SKILL.md +5 -1
  28. package/corpus/templates/forms/.agents/skills/frontend-design/SKILL.md +5 -1
  29. package/corpus/templates/macros/.agents/skills/frontend-design/SKILL.md +5 -1
  30. package/corpus/templates/mail/.agents/skills/frontend-design/SKILL.md +5 -1
  31. package/corpus/templates/plan/.agents/skills/frontend-design/SKILL.md +5 -1
  32. package/corpus/templates/slides/.agents/skills/frontend-design/SKILL.md +5 -1
  33. package/corpus/templates/tasks/.agents/skills/frontend-design/SKILL.md +5 -1
  34. package/dist/client/components/ApiKeySettings.js +2 -5
  35. package/dist/client/org/TeamPage.js +4 -2
  36. package/dist/client/settings/AccountSettingsCard.js +2 -1
  37. package/dist/client/settings/AgentsSection.js +2 -1
  38. package/dist/client/settings/SecretsSection.js +3 -2
  39. package/dist/client/settings/SettingsPanel.js +6 -12
  40. package/dist/client/settings/SettingsSkeleton.d.ts +12 -0
  41. package/dist/client/settings/SettingsSkeleton.js +12 -0
  42. package/dist/client/settings/VoiceTranscriptionSection.js +5 -4
  43. package/dist/client/settings/index.d.ts +1 -0
  44. package/dist/client/settings/index.js +1 -0
  45. package/dist/client/use-db-sync.js +4 -0
  46. package/dist/collab/routes.d.ts +1 -1
  47. package/dist/db/client.d.ts +13 -7
  48. package/dist/db/client.js +124 -7
  49. package/dist/db/ddl-guard.js +3 -1
  50. package/dist/db/ensure-additive-columns.d.ts +2 -0
  51. package/dist/db/ensure-additive-columns.js +5 -2
  52. package/dist/db/index.d.ts +2 -2
  53. package/dist/db/index.js +2 -2
  54. package/dist/db/migrations.d.ts +11 -54
  55. package/dist/db/migrations.js +70 -0
  56. package/dist/jobs/index.d.ts +1 -0
  57. package/dist/jobs/index.js +1 -0
  58. package/dist/jobs/run-history.d.ts +4 -0
  59. package/dist/jobs/run-history.js +44 -0
  60. package/dist/notifications/routes.d.ts +3 -3
  61. package/dist/observability/routes.d.ts +3 -3
  62. package/dist/progress/routes.d.ts +1 -1
  63. package/dist/provider-api/actions/custom-provider-registration.d.ts +9 -9
  64. package/dist/provider-api/actions/provider-api.d.ts +12 -12
  65. package/dist/provider-api/corpus-jobs.d.ts +2 -2
  66. package/dist/secrets/routes.d.ts +6 -6
  67. package/dist/server/agent-chat-plugin.js +6 -4
  68. package/dist/server/auth-plugin.js +5 -0
  69. package/dist/server/better-auth-instance.js +0 -61
  70. package/dist/server/better-auth-migrations.d.ts +8 -0
  71. package/dist/server/better-auth-migrations.js +179 -0
  72. package/dist/server/edge.d.ts +2 -0
  73. package/dist/server/edge.js +2 -0
  74. package/dist/server/index.d.ts +2 -0
  75. package/dist/server/index.js +2 -0
  76. package/dist/server/release-migrations.d.ts +8 -0
  77. package/dist/server/release-migrations.js +24 -0
  78. package/dist/server/sweep-runtime.d.ts +1 -1
  79. package/dist/server/sweep-runtime.js +15 -0
  80. package/dist/server/transcribe-voice.d.ts +1 -1
  81. package/dist/templates/chat/.agents/skills/frontend-design/SKILL.md +5 -1
  82. package/dist/templates/chat/AGENTS.md +3 -0
  83. package/dist/templates/default/.agents/skills/frontend-design/SKILL.md +5 -1
  84. package/dist/templates/default/AGENTS.md +3 -0
  85. package/dist/templates/workspace-core/.agents/skills/frontend-design/SKILL.md +5 -1
  86. package/dist/templates/workspace-core/AGENTS.md +3 -0
  87. package/dist/templates/workspace-root/AGENTS.md +3 -0
  88. package/package.json +1 -1
  89. package/src/templates/chat/.agents/skills/frontend-design/SKILL.md +5 -1
  90. package/src/templates/chat/AGENTS.md +3 -0
  91. package/src/templates/default/.agents/skills/frontend-design/SKILL.md +5 -1
  92. package/src/templates/default/AGENTS.md +3 -0
  93. package/src/templates/workspace-core/.agents/skills/frontend-design/SKILL.md +5 -1
  94. package/src/templates/workspace-core/AGENTS.md +3 -0
  95. package/src/templates/workspace-root/AGENTS.md +3 -0
@@ -199,7 +199,11 @@ as an operator would use it repeatedly:
199
199
  - Use full `Card` composition when the content has a title, description, content, or actions. Do not dump complex cards into a single `CardContent`.
200
200
  - Use `ToggleGroup` for small option sets, `Switch` for binary settings, `Checkbox` for multi-select, `RadioGroup` for one-of-many, and `Slider`/inputs for numeric values.
201
201
  - For forms, prefer the app's existing shadcn form pattern. If newer `Field`, `FieldGroup`, or `InputGroup` primitives are installed or appropriate to add, use them instead of raw layout divs.
202
- - Loading states use `Skeleton`, `Progress`, `Spinner`, or the app's existing loading primitives. Empty states should have one clear next action.
202
+ - Page and section data loading uses layout-matching `Skeleton` geometry. Do
203
+ not show generic "Loading..." text for content loads; reserve `Spinner` for
204
+ brief mutations, uploads, and progress actions. Use the app's existing
205
+ loading primitive when it is a genuine design-system adapter. Empty states
206
+ should have one clear next action.
203
207
 
204
208
  ## Anti-Patterns
205
209
 
@@ -36,6 +36,9 @@ cross-cutting work and `self-modifying-code` when changing app source.
36
36
  - Keep the first viewport focused: one primary action, progressive disclosure,
37
37
  concise copy, and no generic Chat label for a domain page. Never use sparkle,
38
38
  wand, magic, or robot icons as AI affordances.
39
+ - Page and section data loads use layout-matching `Skeleton` geometry, never a
40
+ generic "Loading..." label. Reserve `Spinner` for brief mutations, uploads,
41
+ and progress actions.
39
42
  - Use a sans-first SaaS hierarchy with one restrained visual cue; reserve serif
40
43
  type for content previews. Give the AgentSidebar a subtle surface/divider
41
44
  boundary, and stack original/generated review vertically by default.
@@ -199,7 +199,11 @@ as an operator would use it repeatedly:
199
199
  - Use full `Card` composition when the content has a title, description, content, or actions. Do not dump complex cards into a single `CardContent`.
200
200
  - Use `ToggleGroup` for small option sets, `Switch` for binary settings, `Checkbox` for multi-select, `RadioGroup` for one-of-many, and `Slider`/inputs for numeric values.
201
201
  - For forms, prefer the app's existing shadcn form pattern. If newer `Field`, `FieldGroup`, or `InputGroup` primitives are installed or appropriate to add, use them instead of raw layout divs.
202
- - Loading states use `Skeleton`, `Progress`, `Spinner`, or the app's existing loading primitives. Empty states should have one clear next action.
202
+ - Page and section data loading uses layout-matching `Skeleton` geometry. Do
203
+ not show generic "Loading..." text for content loads; reserve `Spinner` for
204
+ brief mutations, uploads, and progress actions. Use the app's existing
205
+ loading primitive when it is a genuine design-system adapter. Empty states
206
+ should have one clear next action.
203
207
 
204
208
  ## Anti-Patterns
205
209
 
@@ -44,6 +44,9 @@ agent should know.
44
44
  - Keep the first viewport focused: one primary action, progressive disclosure,
45
45
  concise copy, and domain-specific navigation. Never use sparkle, wand,
46
46
  magic, or robot icons as AI affordances.
47
+ - Data loads use layout-matching `Skeleton` geometry, never a
48
+ generic "Loading..." label. Reserve `Spinner` for brief mutations, uploads,
49
+ and progress actions.
47
50
  - Use a sans-first SaaS hierarchy with one restrained visual cue; reserve serif
48
51
  type for content previews. Give the AgentSidebar a subtle surface/divider
49
52
  boundary, and stack original/generated review vertically by default.
@@ -69,6 +69,9 @@ refreshes framework-provided shared skills and repairs `CLAUDE.md` /
69
69
  - Keep the first viewport focused: one primary action, progressive disclosure,
70
70
  concise copy, and domain-specific navigation. Never use sparkle, wand,
71
71
  magic, or robot icons as AI affordances.
72
+ - Page and section data loads use layout-matching `Skeleton` geometry, never a
73
+ generic "Loading..." label. Reserve `Spinner` for brief mutations, uploads,
74
+ and progress actions.
72
75
  - Use a sans-first SaaS hierarchy with one restrained visual cue; reserve serif
73
76
  type for content previews. Give the AgentSidebar a subtle surface/divider
74
77
  boundary, and stack original/generated review vertically by default.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.145.6",
3
+ "version": "0.145.8",
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": {
@@ -199,7 +199,11 @@ as an operator would use it repeatedly:
199
199
  - Use full `Card` composition when the content has a title, description, content, or actions. Do not dump complex cards into a single `CardContent`.
200
200
  - Use `ToggleGroup` for small option sets, `Switch` for binary settings, `Checkbox` for multi-select, `RadioGroup` for one-of-many, and `Slider`/inputs for numeric values.
201
201
  - For forms, prefer the app's existing shadcn form pattern. If newer `Field`, `FieldGroup`, or `InputGroup` primitives are installed or appropriate to add, use them instead of raw layout divs.
202
- - Loading states use `Skeleton`, `Progress`, `Spinner`, or the app's existing loading primitives. Empty states should have one clear next action.
202
+ - Page and section data loading uses layout-matching `Skeleton` geometry. Do
203
+ not show generic "Loading..." text for content loads; reserve `Spinner` for
204
+ brief mutations, uploads, and progress actions. Use the app's existing
205
+ loading primitive when it is a genuine design-system adapter. Empty states
206
+ should have one clear next action.
203
207
 
204
208
  ## Anti-Patterns
205
209
 
@@ -23,6 +23,9 @@ workflow needs durable UI around the conversation.
23
23
  - Keep the first viewport sparse and task-focused. Use progressive disclosure
24
24
  and domain-specific navigation, and never use sparkle, wand, magic, or robot
25
25
  icons as AI affordances.
26
+ - Page and section data loads use layout-matching `Skeleton` geometry, never a
27
+ generic "Loading..." label. Reserve `Spinner` for brief mutations, uploads,
28
+ and progress actions.
26
29
  - Use a sans-first SaaS hierarchy with one restrained visual cue; reserve serif
27
30
  type for content previews. Give the AgentSidebar a subtle surface/divider
28
31
  boundary, and stack original/generated review vertically by default.
@@ -199,7 +199,11 @@ as an operator would use it repeatedly:
199
199
  - Use full `Card` composition when the content has a title, description, content, or actions. Do not dump complex cards into a single `CardContent`.
200
200
  - Use `ToggleGroup` for small option sets, `Switch` for binary settings, `Checkbox` for multi-select, `RadioGroup` for one-of-many, and `Slider`/inputs for numeric values.
201
201
  - For forms, prefer the app's existing shadcn form pattern. If newer `Field`, `FieldGroup`, or `InputGroup` primitives are installed or appropriate to add, use them instead of raw layout divs.
202
- - Loading states use `Skeleton`, `Progress`, `Spinner`, or the app's existing loading primitives. Empty states should have one clear next action.
202
+ - Page and section data loading uses layout-matching `Skeleton` geometry. Do
203
+ not show generic "Loading..." text for content loads; reserve `Spinner` for
204
+ brief mutations, uploads, and progress actions. Use the app's existing
205
+ loading primitive when it is a genuine design-system adapter. Empty states
206
+ should have one clear next action.
203
207
 
204
208
  ## Anti-Patterns
205
209
 
@@ -36,6 +36,9 @@ cross-cutting work and `self-modifying-code` when changing app source.
36
36
  - Keep the first viewport focused: one primary action, progressive disclosure,
37
37
  concise copy, and no generic Chat label for a domain page. Never use sparkle,
38
38
  wand, magic, or robot icons as AI affordances.
39
+ - Page and section data loads use layout-matching `Skeleton` geometry, never a
40
+ generic "Loading..." label. Reserve `Spinner` for brief mutations, uploads,
41
+ and progress actions.
39
42
  - Use a sans-first SaaS hierarchy with one restrained visual cue; reserve serif
40
43
  type for content previews. Give the AgentSidebar a subtle surface/divider
41
44
  boundary, and stack original/generated review vertically by default.
@@ -199,7 +199,11 @@ as an operator would use it repeatedly:
199
199
  - Use full `Card` composition when the content has a title, description, content, or actions. Do not dump complex cards into a single `CardContent`.
200
200
  - Use `ToggleGroup` for small option sets, `Switch` for binary settings, `Checkbox` for multi-select, `RadioGroup` for one-of-many, and `Slider`/inputs for numeric values.
201
201
  - For forms, prefer the app's existing shadcn form pattern. If newer `Field`, `FieldGroup`, or `InputGroup` primitives are installed or appropriate to add, use them instead of raw layout divs.
202
- - Loading states use `Skeleton`, `Progress`, `Spinner`, or the app's existing loading primitives. Empty states should have one clear next action.
202
+ - Page and section data loading uses layout-matching `Skeleton` geometry. Do
203
+ not show generic "Loading..." text for content loads; reserve `Spinner` for
204
+ brief mutations, uploads, and progress actions. Use the app's existing
205
+ loading primitive when it is a genuine design-system adapter. Empty states
206
+ should have one clear next action.
203
207
 
204
208
  ## Anti-Patterns
205
209
 
@@ -44,6 +44,9 @@ agent should know.
44
44
  - Keep the first viewport focused: one primary action, progressive disclosure,
45
45
  concise copy, and domain-specific navigation. Never use sparkle, wand,
46
46
  magic, or robot icons as AI affordances.
47
+ - Data loads use layout-matching `Skeleton` geometry, never a
48
+ generic "Loading..." label. Reserve `Spinner` for brief mutations, uploads,
49
+ and progress actions.
47
50
  - Use a sans-first SaaS hierarchy with one restrained visual cue; reserve serif
48
51
  type for content previews. Give the AgentSidebar a subtle surface/divider
49
52
  boundary, and stack original/generated review vertically by default.
@@ -69,6 +69,9 @@ refreshes framework-provided shared skills and repairs `CLAUDE.md` /
69
69
  - Keep the first viewport focused: one primary action, progressive disclosure,
70
70
  concise copy, and domain-specific navigation. Never use sparkle, wand,
71
71
  magic, or robot icons as AI affordances.
72
+ - Page and section data loads use layout-matching `Skeleton` geometry, never a
73
+ generic "Loading..." label. Reserve `Spinner` for brief mutations, uploads,
74
+ and progress actions.
72
75
  - Use a sans-first SaaS hierarchy with one restrained visual cue; reserve serif
73
76
  type for content previews. Give the AgentSidebar a subtle surface/divider
74
77
  boundary, and stack original/generated review vertically by default.