@agent-native/dispatch 0.31.24 → 0.31.25-nightly-20260826192357

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 (35) hide show
  1. package/dist/actions/create-browser-chat-session.js +1 -1
  2. package/dist/actions/create-browser-chat-session.js.map +1 -1
  3. package/dist/actions/get-agent-thread-debug.js +1 -1
  4. package/dist/actions/get-agent-thread-debug.js.map +1 -1
  5. package/dist/components/dispatch-shell.d.ts +3 -4
  6. package/dist/components/dispatch-shell.d.ts.map +1 -1
  7. package/dist/components/dispatch-shell.js +3 -4
  8. package/dist/components/dispatch-shell.js.map +1 -1
  9. package/dist/components/layout/Layout.d.ts.map +1 -1
  10. package/dist/components/layout/Layout.js +28 -10
  11. package/dist/components/layout/Layout.js.map +1 -1
  12. package/dist/server/lib/app-creation-store.js +1 -1
  13. package/dist/server/lib/app-creation-store.js.map +1 -1
  14. package/dist/server/lib/curated-workspace-templates.js +1 -1
  15. package/dist/server/lib/curated-workspace-templates.js.map +1 -1
  16. package/dist/server/lib/dispatch-integrations.js +2 -2
  17. package/dist/server/lib/dispatch-integrations.js.map +1 -1
  18. package/dist/server/lib/mcp-gateway.d.ts.map +1 -1
  19. package/dist/server/lib/mcp-gateway.js +12 -2
  20. package/dist/server/lib/mcp-gateway.js.map +1 -1
  21. package/dist/server/lib/onboarding-steps.js +1 -1
  22. package/dist/server/lib/onboarding-steps.js.map +1 -1
  23. package/package.json +4 -4
  24. package/src/actions/create-browser-chat-session.spec.ts +1 -1
  25. package/src/actions/create-browser-chat-session.ts +1 -1
  26. package/src/actions/get-agent-thread-debug.ts +1 -1
  27. package/src/components/dispatch-shell.tsx +3 -4
  28. package/src/components/layout/Layout.app-chat.spec.ts +16 -0
  29. package/src/components/layout/Layout.tsx +65 -13
  30. package/src/server/lib/app-creation-store.ts +1 -1
  31. package/src/server/lib/curated-workspace-templates.ts +1 -1
  32. package/src/server/lib/dispatch-integrations.spec.ts +1 -1
  33. package/src/server/lib/dispatch-integrations.ts +2 -2
  34. package/src/server/lib/mcp-gateway.ts +23 -9
  35. package/src/server/lib/onboarding-steps.ts +1 -1
@@ -1916,7 +1916,7 @@ function buildWorkspaceAppPrompt(input) {
1916
1916
  ? `Dispatch will create workspace resource grants for the selected resources for appId "${appId}". After the app exists, sync workspace resources so the app receives both global and selected shared resources.`
1917
1917
  : "Do not grant any selected-only Dispatch workspace resources unless the user asks later.",
1918
1918
  "",
1919
- "Agent-native rules (these are the framework's contract — not optional):",
1919
+ "Agent-Native rules (these are the framework's contract — not optional):",
1920
1920
  `- Persist ALL data in SQL via Drizzle. Add tables to apps/${appId}/server/db/schema.ts and migrations to apps/${appId}/server/plugins/db.ts. NEVER use localStorage, sessionStorage, IndexedDB, or in-memory state for anything the user expects to persist — agent and UI must read the same source of truth.`,
1921
1921
  `- Define every create/read/update/delete as an action in apps/${appId}/actions/ using defineAction. The agent calls these as tools and the frontend calls them via useActionQuery / useActionMutation. If you must raw-fetch framework action endpoints, use agentNativePath("/_agent-native/actions/<name>") so mounted apps call the right URL. Don't add /api/* routes for CRUD.`,
1922
1922
  "- Build the UI from shadcn/ui components in app/components/ui/ (Button, Input, Dialog, Popover, Card, etc.) and Tailwind utilities. Don't author bespoke CSS classes in global.css unless you genuinely need a primitive that shadcn doesn't ship.",