@agent-native/core 0.12.2 → 0.12.4

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 (38) hide show
  1. package/dist/a2a/artifact-response.d.ts.map +1 -1
  2. package/dist/a2a/artifact-response.js +103 -9
  3. package/dist/a2a/artifact-response.js.map +1 -1
  4. package/dist/client/composer/TiptapComposer.d.ts +1 -0
  5. package/dist/client/composer/TiptapComposer.d.ts.map +1 -1
  6. package/dist/client/composer/TiptapComposer.js +32 -23
  7. package/dist/client/composer/TiptapComposer.js.map +1 -1
  8. package/dist/client/extensions/ExtensionViewer.d.ts.map +1 -1
  9. package/dist/client/extensions/ExtensionViewer.js +7 -2
  10. package/dist/client/extensions/ExtensionViewer.js.map +1 -1
  11. package/dist/client/extensions/ExtensionViewerPage.d.ts.map +1 -1
  12. package/dist/client/extensions/ExtensionViewerPage.js +4 -1
  13. package/dist/client/extensions/ExtensionViewerPage.js.map +1 -1
  14. package/dist/client/extensions/ExtensionsListPage.js +1 -1
  15. package/dist/client/extensions/ExtensionsListPage.js.map +1 -1
  16. package/dist/client/theme.d.ts.map +1 -1
  17. package/dist/client/theme.js +5 -1
  18. package/dist/client/theme.js.map +1 -1
  19. package/dist/client/vite-dev-recovery-script.d.ts +10 -0
  20. package/dist/client/vite-dev-recovery-script.d.ts.map +1 -0
  21. package/dist/client/vite-dev-recovery-script.js +199 -0
  22. package/dist/client/vite-dev-recovery-script.js.map +1 -0
  23. package/dist/extensions/actions.d.ts.map +1 -1
  24. package/dist/extensions/actions.js +5 -1
  25. package/dist/extensions/actions.js.map +1 -1
  26. package/dist/scripts/call-agent.js +1 -1
  27. package/dist/scripts/call-agent.js.map +1 -1
  28. package/dist/server/agent-chat-plugin.d.ts.map +1 -1
  29. package/dist/server/agent-chat-plugin.js +8 -4
  30. package/dist/server/agent-chat-plugin.js.map +1 -1
  31. package/dist/server/auth.d.ts.map +1 -1
  32. package/dist/server/auth.js +245 -36
  33. package/dist/server/auth.js.map +1 -1
  34. package/dist/vite/client.d.ts +1 -4
  35. package/dist/vite/client.d.ts.map +1 -1
  36. package/dist/vite/client.js +39 -128
  37. package/dist/vite/client.js.map +1 -1
  38. package/package.json +1 -1
@@ -772,7 +772,7 @@ function createBuilderBrowserTool(deps) {
772
772
  return {
773
773
  "connect-builder": {
774
774
  tool: {
775
- description: "Render a Builder.io card inline in the chat. Call this IMMEDIATELY — no exploration, no planning — when the user asks to modify the APP'S OWN SOURCE CODE: add a feature, change the UI chrome, edit a React component, add a route, add an integration, fix a bug in the app itself, or anything else that requires source-file edits while in hosted/production mode. Do NOT call this for content the app is meant to produce — creating a video, generating a design, drafting an email, building a slide deck, making a dashboard, etc. — those run through the app's own domain actions, not Builder. Do NOT mention 'click Send to Builder' in your response unless this card is already in the conversation. If Builder is already connected, the card shows a 'Send to Builder' button that hands the work off to Builder's cloud agent and returns a branch URL. When you call this for a code-change request, pass the user's request verbatim as the `prompt` arg so the card can forward it to Builder unchanged.",
775
+ description: "Render a Builder.io card inline in the chat. Call this IMMEDIATELY — no exploration, no planning — when the user asks to modify the APP'S OWN SOURCE CODE: add a feature, change the UI chrome, edit a React component, add a route, add an integration, fix a bug in the app itself, or anything else that requires source-file edits while in hosted/production mode. Do NOT call this for creating or editing extensions/widgets/dashboards/calculators/mini-apps; those are sandboxed extension data and must use create-extension/update-extension instead. Do NOT call this for content the app is meant to produce — creating a video, generating a design, drafting an email, building a slide deck, making a dashboard, etc. — those run through the app's own domain actions, not Builder. Do NOT mention 'click Send to Builder' in your response unless this card is already in the conversation. If Builder is already connected, the card shows a 'Send to Builder' button that hands the work off to Builder's cloud agent and returns a branch URL. When you call this for a code-change request, pass the user's request verbatim as the `prompt` arg so the card can forward it to Builder unchanged.",
776
776
  parameters: {
777
777
  type: "object",
778
778
  properties: {
@@ -1403,7 +1403,9 @@ The agent and the UI are equal partners — everything the UI can do, you can do
1403
1403
 
1404
1404
  If the user asks you to create, build, or make an **extension**, **widget**, **dashboard**, **calculator**, **mini-app**, or any small self-contained interactive utility — call \`create-extension\` immediately with a self-contained Alpine.js HTML body. This is **NOT** a code change and does **NOT** go through \`connect-builder\`. Extensions are sandboxed mini-apps stored in the database — no source files are touched, no PR is opened, no build is required. The extension appears in the Extensions view and can be edited later via \`update-extension\`.
1405
1405
 
1406
- When in doubt if the request mentions "extension", "widget", "dashboard", "calculator", or asks for a small interactive utility choose \`create-extension\`. Do **not** preface the call with planning text like "let me build the dashboard…" just call \`create-extension\` directly. One tool call, one response.
1406
+ If the user asks to change, edit, fix, style, rename, or add behavior to an existing extension/widget/dashboard/calculator/mini-app, use \`list-extensions\` and \`update-extension\` for that extension. Existing extension edits are SQL data updates, not source-code changes, even when the request says "change the UI" or "fix this". Do **NOT** call \`connect-builder\` for existing extension edits.
1407
+
1408
+ When in doubt — if the request mentions creating an extension, widget, dashboard, calculator, or asks for a new small interactive utility — choose \`create-extension\`. If it references an existing one or the current extension page, choose \`update-extension\`. Do **not** preface the call with planning text like "let me build the dashboard…" — just call the right extension action directly.
1407
1409
 
1408
1410
  Note: "extension" is the user-facing primitive (the sandboxed Alpine.js mini-app). Don't confuse it with the LLM concept of "tools" (function calls) — those are how you invoke ANY action, including \`create-extension\` itself.
1409
1411
 
@@ -1411,7 +1413,7 @@ For existing extensions, use \`list-extensions\` to find what the user can see,
1411
1413
 
1412
1414
  ### Code Changes Not Available — Call \`connect-builder\` Immediately
1413
1415
 
1414
- If the request matches the Extensions section above (extension / widget / dashboard / calculator / mini-app), use \`create-extension\` instead — do NOT route it to \`connect-builder\`.
1416
+ If the request matches the Extensions section above (extension / widget / dashboard / calculator / mini-app), use \`create-extension\` or \`update-extension\` instead — do NOT route it to \`connect-builder\`.
1415
1417
 
1416
1418
  When the user asks you to change the UI, modify code, add a feature, fix a bug in the app itself, change styles, add a hook, create a component, add a route, add an integration, or anything else that requires editing source files — you MUST take exactly these steps, in order:
1417
1419
 
@@ -1464,11 +1466,13 @@ The agent and the UI are equal partners — everything the UI can do, you can do
1464
1466
 
1465
1467
  If the user asks for an **extension**, **widget**, **dashboard**, **calculator**, or **mini-app**, call \`create-extension\` immediately with a self-contained Alpine.js HTML body. This is NOT a code change — extensions are sandboxed mini-apps stored in the database. Do not preface with "let me build…" — just call \`create-extension\`.
1466
1468
 
1469
+ If the user asks to change, edit, fix, style, rename, or add behavior to an existing extension/widget/dashboard/calculator/mini-app, use \`list-extensions\` and \`update-extension\`. Existing extension edits are SQL data updates, not source-code changes. Do NOT call \`connect-builder\` for them.
1470
+
1467
1471
  For existing extensions, use \`list-extensions\`, \`update-extension\`, \`hide-extension\`, and \`delete-extension\`. Use \`hide-extension\` when the user wants a shared extension removed only from their own view. Do not query the legacy \`tools\` table directly.
1468
1472
 
1469
1473
  ### Code Changes — Call \`connect-builder\`
1470
1474
 
1471
- When the user asks to change the UI, modify code, add a feature, or fix a bug in the app itself — call \`connect-builder\` immediately, passing the user's request as the \`prompt\`. (Extension / widget / dashboard requests use \`create-extension\` instead — see above.) Do NOT write code, list files, make plans, or spawn sub-agents for code changes. Builder handles it in the cloud. Mention \`npx agent-native create <app-name>\` as an offline fallback.
1475
+ When the user asks to change the UI, modify code, add a feature, or fix a bug in the app itself — call \`connect-builder\` immediately, passing the user's request as the \`prompt\`. (Extension / widget / dashboard requests use \`create-extension\` or \`update-extension\` instead — see above.) Do NOT write code, list files, make plans, or spawn sub-agents for code changes. Builder handles it in the cloud. Mention \`npx agent-native create <app-name>\` as an offline fallback.
1472
1476
  ${FRAMEWORK_CORE_COMPACT}`;
1473
1477
  const DEV_FRAMEWORK_PROMPT_COMPACT = `## Agent-Native Framework — Development Mode
1474
1478