@agent-native/core 0.157.20 → 0.157.22

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 (36) hide show
  1. package/corpus/templates/analytics/.agents/skills/security/SKILL.md +29 -0
  2. package/corpus/templates/assets/.agents/skills/security/SKILL.md +29 -0
  3. package/corpus/templates/brain/.agents/skills/security/SKILL.md +29 -0
  4. package/corpus/templates/calendar/.agents/skills/security/SKILL.md +29 -0
  5. package/corpus/templates/chat/.agents/skills/security/SKILL.md +29 -0
  6. package/corpus/templates/clips/.agents/skills/security/SKILL.md +29 -0
  7. package/corpus/templates/content/.agents/skills/security/SKILL.md +29 -0
  8. package/corpus/templates/crm/.agents/skills/security/SKILL.md +29 -0
  9. package/corpus/templates/design/.agents/skills/security/SKILL.md +29 -0
  10. package/corpus/templates/dispatch/.agents/skills/security/SKILL.md +29 -0
  11. package/corpus/templates/factory/.agents/skills/security/SKILL.md +29 -0
  12. package/corpus/templates/forms/.agents/skills/security/SKILL.md +29 -0
  13. package/corpus/templates/macros/.agents/skills/security/SKILL.md +29 -0
  14. package/corpus/templates/mail/.agents/skills/security/SKILL.md +29 -0
  15. package/corpus/templates/plan/.agents/skills/security/SKILL.md +29 -0
  16. package/corpus/templates/slides/.agents/skills/security/SKILL.md +29 -0
  17. package/corpus/templates/tasks/.agents/skills/security/SKILL.md +29 -0
  18. package/dist/collab/awareness.d.ts +2 -2
  19. package/dist/collab/struct-routes.d.ts +1 -1
  20. package/dist/observability/routes.d.ts +5 -5
  21. package/dist/progress/routes.d.ts +1 -1
  22. package/dist/secrets/routes.d.ts +9 -9
  23. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  24. package/dist/server/embed-route.js +62 -1
  25. package/dist/server/embed-session.d.ts +11 -0
  26. package/dist/server/embed-session.js +92 -6
  27. package/dist/server/realtime-token.d.ts +1 -1
  28. package/dist/templates/chat/.agents/skills/security/SKILL.md +29 -0
  29. package/dist/templates/default/.agents/skills/security/SKILL.md +29 -0
  30. package/dist/templates/headless/.agents/skills/security/SKILL.md +29 -0
  31. package/dist/templates/workspace-core/.agents/skills/security/SKILL.md +29 -0
  32. package/package.json +1 -1
  33. package/src/templates/chat/.agents/skills/security/SKILL.md +29 -0
  34. package/src/templates/default/.agents/skills/security/SKILL.md +29 -0
  35. package/src/templates/headless/.agents/skills/security/SKILL.md +29 -0
  36. package/src/templates/workspace-core/.agents/skills/security/SKILL.md +29 -0
@@ -149,6 +149,35 @@ export default defineEventHandler(async (event) => {
149
149
 
150
150
  - Never create unprotected routes that modify data.
151
151
 
152
+ ## Same-Origin Workspace Apps
153
+
154
+ Path-mounted workspace apps share the Dispatch gateway origin. Because the
155
+ framework's session cookie is scoped to `/`, a mounted pane receives the
156
+ ambient Dispatch session and can act as the signed-in user through same-origin
157
+ requests. This is an intentional trusted-code model, not an isolation
158
+ boundary; removing a mounted app from SSO fanout does not revoke that ambient
159
+ access.
160
+
161
+ Only trusted, workspace-owner-authored code belongs on that origin. Treat each
162
+ of these as a trust-boundary change that requires an explicit origin, sandbox,
163
+ or capability design before shipping:
164
+
165
+ - non-owners can create or edit mounted app code;
166
+ - mounted apps render or execute untrusted external content or remote code;
167
+ - apps are publicly shareable, anonymously reachable, or installable by users
168
+ outside the owning workspace;
169
+ - app source, dependencies, or deployment artifacts can be replaced by a
170
+ third party without the workspace owner's authorization;
171
+ - a mounted app can be registered across workspaces or can change its mount
172
+ path/origin without an ownership check; or
173
+ - cookie scope, proxying, iframe policy, or navigation changes make this
174
+ ambient-session behavior broader than the owning workspace.
175
+
176
+ Do not describe canonical-only SSO eligibility as origin isolation. Canonical
177
+ apps and explicitly registered custom origins remain eligible; path-mounted
178
+ apps are deliberately excluded as SSO targets while retaining their existing
179
+ same-origin session behavior.
180
+
152
181
  **Exception — the SSR HTML/`.data` catch-all is deliberately session-blind.**
153
182
  The rule above is for routes that read or mutate user data. The SSR page
154
183
  render and React Router `.data` route are different: they serve one