@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.
- package/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
- package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
- package/dist/cli/pr-visual-recap-workflow.js +1 -1
- package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
- package/dist/cli/recap.d.ts +4 -1
- package/dist/cli/recap.d.ts.map +1 -1
- package/dist/cli/recap.js +97 -23
- package/dist/cli/recap.js.map +1 -1
- package/dist/cli/skills.d.ts +5 -5
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +219 -24
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/blocks/library/annotation-rail.d.ts.map +1 -1
- package/dist/client/blocks/library/annotation-rail.js +16 -6
- package/dist/client/blocks/library/annotation-rail.js.map +1 -1
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +10 -2
- package/dist/deploy/build.js.map +1 -1
- package/dist/extensions/actions.js +1 -1
- package/dist/extensions/actions.js.map +1 -1
- package/dist/local-artifacts/index.d.ts +101 -0
- package/dist/local-artifacts/index.d.ts.map +1 -0
- package/dist/local-artifacts/index.js +507 -0
- package/dist/local-artifacts/index.js.map +1 -0
- package/dist/secrets/substitution.js +2 -2
- package/dist/secrets/substitution.js.map +1 -1
- package/dist/server/auth-marketing.d.ts +1 -0
- package/dist/server/auth-marketing.d.ts.map +1 -1
- package/dist/server/auth-marketing.js +5 -0
- package/dist/server/auth-marketing.js.map +1 -1
- package/dist/server/auth.d.ts.map +1 -1
- package/dist/server/auth.js +59 -37
- package/dist/server/auth.js.map +1 -1
- package/dist/server/entry-server.d.ts +27 -4
- package/dist/server/entry-server.d.ts.map +1 -1
- package/dist/server/entry-server.js +63 -43
- package/dist/server/entry-server.js.map +1 -1
- package/dist/server/onboarding-html.d.ts.map +1 -1
- package/dist/server/onboarding-html.js +3 -3
- package/dist/server/onboarding-html.js.map +1 -1
- package/dist/server/social-og-image.d.ts +2 -0
- package/dist/server/social-og-image.d.ts.map +1 -1
- package/dist/server/social-og-image.js +20 -7
- package/dist/server/social-og-image.js.map +1 -1
- package/dist/server/ssr-handler.d.ts.map +1 -1
- package/dist/server/ssr-handler.js +2 -2
- package/dist/server/ssr-handler.js.map +1 -1
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/social-meta.d.ts +2 -0
- package/dist/shared/social-meta.d.ts.map +1 -1
- package/dist/shared/social-meta.js +5 -0
- package/dist/shared/social-meta.js.map +1 -1
- package/dist/templates/default/.agents/skills/storing-data/SKILL.md +3 -1
- package/dist/templates/default/app/entry.server.tsx +8 -2
- package/dist/templates/starter-shell-sync.spec.ts +4 -3
- package/dist/templates/workspace-core/.agents/skills/extensions/SKILL.md +3 -2
- package/dist/templates/workspace-core/.agents/skills/storing-data/SKILL.md +3 -1
- package/docs/content/pr-visual-recap.md +4 -4
- package/docs/content/template-content.md +9 -0
- package/package.json +6 -1
- package/src/templates/default/.agents/skills/storing-data/SKILL.md +3 -1
- package/src/templates/default/app/entry.server.tsx +8 -2
- package/src/templates/starter-shell-sync.spec.ts +4 -3
- package/src/templates/workspace-core/.agents/skills/extensions/SKILL.md +3 -2
- 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
|
|
57
|
-
*
|
|
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
|
-
"
|
|
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
|
-
|
|
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
|
|