@agent-native/core 0.49.9 → 0.49.11

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 (68) hide show
  1. package/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
  2. package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
  3. package/dist/cli/pr-visual-recap-workflow.js +1 -1
  4. package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
  5. package/dist/cli/recap.d.ts +4 -1
  6. package/dist/cli/recap.d.ts.map +1 -1
  7. package/dist/cli/recap.js +97 -23
  8. package/dist/cli/recap.js.map +1 -1
  9. package/dist/cli/skills.d.ts +5 -5
  10. package/dist/cli/skills.d.ts.map +1 -1
  11. package/dist/cli/skills.js +219 -24
  12. package/dist/cli/skills.js.map +1 -1
  13. package/dist/client/blocks/library/annotation-rail.d.ts.map +1 -1
  14. package/dist/client/blocks/library/annotation-rail.js +16 -6
  15. package/dist/client/blocks/library/annotation-rail.js.map +1 -1
  16. package/dist/deploy/build.d.ts.map +1 -1
  17. package/dist/deploy/build.js +10 -2
  18. package/dist/deploy/build.js.map +1 -1
  19. package/dist/extensions/actions.js +1 -1
  20. package/dist/extensions/actions.js.map +1 -1
  21. package/dist/local-artifacts/index.d.ts +101 -0
  22. package/dist/local-artifacts/index.d.ts.map +1 -0
  23. package/dist/local-artifacts/index.js +507 -0
  24. package/dist/local-artifacts/index.js.map +1 -0
  25. package/dist/secrets/substitution.js +2 -2
  26. package/dist/secrets/substitution.js.map +1 -1
  27. package/dist/server/auth-marketing.d.ts +1 -0
  28. package/dist/server/auth-marketing.d.ts.map +1 -1
  29. package/dist/server/auth-marketing.js +5 -0
  30. package/dist/server/auth-marketing.js.map +1 -1
  31. package/dist/server/auth.d.ts.map +1 -1
  32. package/dist/server/auth.js +59 -37
  33. package/dist/server/auth.js.map +1 -1
  34. package/dist/server/entry-server.d.ts +27 -4
  35. package/dist/server/entry-server.d.ts.map +1 -1
  36. package/dist/server/entry-server.js +63 -43
  37. package/dist/server/entry-server.js.map +1 -1
  38. package/dist/server/onboarding-html.d.ts.map +1 -1
  39. package/dist/server/onboarding-html.js +3 -3
  40. package/dist/server/onboarding-html.js.map +1 -1
  41. package/dist/server/social-og-image.d.ts +2 -0
  42. package/dist/server/social-og-image.d.ts.map +1 -1
  43. package/dist/server/social-og-image.js +20 -7
  44. package/dist/server/social-og-image.js.map +1 -1
  45. package/dist/server/ssr-handler.d.ts.map +1 -1
  46. package/dist/server/ssr-handler.js +2 -2
  47. package/dist/server/ssr-handler.js.map +1 -1
  48. package/dist/shared/index.d.ts +1 -1
  49. package/dist/shared/index.d.ts.map +1 -1
  50. package/dist/shared/index.js +1 -1
  51. package/dist/shared/index.js.map +1 -1
  52. package/dist/shared/social-meta.d.ts +2 -0
  53. package/dist/shared/social-meta.d.ts.map +1 -1
  54. package/dist/shared/social-meta.js +5 -0
  55. package/dist/shared/social-meta.js.map +1 -1
  56. package/dist/templates/default/.agents/skills/storing-data/SKILL.md +3 -1
  57. package/dist/templates/default/app/entry.server.tsx +8 -2
  58. package/dist/templates/starter-shell-sync.spec.ts +4 -3
  59. package/dist/templates/workspace-core/.agents/skills/extensions/SKILL.md +3 -2
  60. package/dist/templates/workspace-core/.agents/skills/storing-data/SKILL.md +3 -1
  61. package/docs/content/pr-visual-recap.md +4 -4
  62. package/docs/content/template-content.md +9 -0
  63. package/package.json +6 -1
  64. package/src/templates/default/.agents/skills/storing-data/SKILL.md +3 -1
  65. package/src/templates/default/app/entry.server.tsx +8 -2
  66. package/src/templates/starter-shell-sync.spec.ts +4 -3
  67. package/src/templates/workspace-core/.agents/skills/extensions/SKILL.md +3 -2
  68. package/src/templates/workspace-core/.agents/skills/storing-data/SKILL.md +3 -1
@@ -53,15 +53,16 @@ function readFile(dir: string, filename: string): string {
53
53
  /**
54
54
  * Shell files that must be byte-identical between scaffold and starter.
55
55
  * Each entry is [filename, reason]:
56
- * entry.server.tsx — both now re-export the shared core handler; any
57
- * future change to the pattern must land in both places at once.
56
+ * entry.server.tsx — both import the app-local React Router ServerRouter
57
+ * and pass it into the shared core handler; any future change to the
58
+ * pattern must land in both places at once.
58
59
  * entry.client.tsx — lightweight hydration entry that sets basename from
59
60
  * APP_BASE_PATH; must stay in sync for workspace-mount correctness.
60
61
  */
61
62
  const SHELL_FILES: Array<[string, string]> = [
62
63
  [
63
64
  "entry.server.tsx",
64
- "re-exports @agent-native/core/server/entry-server; must be identical",
65
+ "uses app-local ServerRouter with core entry-server; must be identical",
65
66
  ],
66
67
  [
67
68
  "entry.client.tsx",
@@ -363,8 +363,9 @@ end up rendering nonsense like the literal text `true`.
363
363
  2. **Call an LLM directly via `extensionFetch`.** Requires a real key the
364
364
  user has set up. Reference it via `${keys.OPENAI_API_KEY}` /
365
365
  `${keys.ANTHROPIC_API_KEY}` and surface a clear error if the proxy
366
- reports the key isn't configured. Tell the user where to add the key
367
- (Settings → Secrets) before the extension can work.
366
+ reports the key isn't configured. Tell the user where to add the key:
367
+ Dispatch Vault for workspace apps, or app Settings → API Keys & Connections
368
+ for standalone apps.
368
369
 
369
370
  If you're not sure a key is configured, ask the user before generating an
370
371
  extension whose primary value is the AI step.
@@ -12,7 +12,9 @@ metadata:
12
12
 
13
13
  ## Rule
14
14
 
15
- All application data lives in **SQL** (SQLite locally, persistent database in production). The agent and UI share the same database. Do not store durable app data in the filesystem.
15
+ All application data lives in **SQL** (SQLite locally, persistent database in production). The agent and UI share the same database. Do not store durable app data in the filesystem unless the app is explicitly running a Local File Mode artifact flow described below.
16
+
17
+ **Local File Mode exception:** some artifact apps (Content, Plans, Slides, Dashboards, Designs, etc.) can intentionally use repo files as the source of truth for the artifact itself. This must be explicit via `agent-native.json`, `AGENT_NATIVE_MODE=local-files`, or an app-owned local-file action helper. In that mode, the UI and agent still go through app actions, but those actions read/write scoped files through `@agent-native/core/local-artifacts` instead of SQL rows. App state, auth, settings, credentials, collaboration metadata, and hosted database mode remain SQL. File-to-database or file-to-provider synchronization is an explicit sync step, not an implicit side effect of editing.
16
18
 
17
19
  When you add a data model, a list, or a read path, also follow the `performance` skill: project only the columns a list renders, index the columns hot queries filter/sort on, and avoid query waterfalls — so apps stay fast as data grows.
18
20