@agent-native/core 0.87.0 → 0.88.0

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 (120) hide show
  1. package/corpus/README.md +2 -2
  2. package/corpus/core/CHANGELOG.md +6 -0
  3. package/corpus/core/docs/content/agent-native-toolkit.mdx +162 -0
  4. package/corpus/core/docs/content/locales/ar-SA/agent-native-toolkit.mdx +73 -0
  5. package/corpus/core/docs/content/locales/ar-SA/sharing.mdx +15 -7
  6. package/corpus/core/docs/content/locales/de-DE/agent-native-toolkit.mdx +77 -0
  7. package/corpus/core/docs/content/locales/de-DE/sharing.mdx +15 -7
  8. package/corpus/core/docs/content/locales/es-ES/agent-native-toolkit.mdx +77 -0
  9. package/corpus/core/docs/content/locales/es-ES/sharing.mdx +15 -7
  10. package/corpus/core/docs/content/locales/fr-FR/agent-native-toolkit.mdx +79 -0
  11. package/corpus/core/docs/content/locales/fr-FR/sharing.mdx +15 -7
  12. package/corpus/core/docs/content/locales/hi-IN/agent-native-toolkit.mdx +74 -0
  13. package/corpus/core/docs/content/locales/hi-IN/sharing.mdx +15 -7
  14. package/corpus/core/docs/content/locales/ja-JP/agent-native-toolkit.mdx +67 -0
  15. package/corpus/core/docs/content/locales/ja-JP/sharing.mdx +15 -7
  16. package/corpus/core/docs/content/locales/ko-KR/agent-native-toolkit.mdx +63 -0
  17. package/corpus/core/docs/content/locales/ko-KR/sharing.mdx +15 -7
  18. package/corpus/core/docs/content/locales/pt-BR/agent-native-toolkit.mdx +77 -0
  19. package/corpus/core/docs/content/locales/pt-BR/sharing.mdx +15 -7
  20. package/corpus/core/docs/content/locales/zh-CN/agent-native-toolkit.mdx +61 -0
  21. package/corpus/core/docs/content/locales/zh-CN/sharing.mdx +15 -7
  22. package/corpus/core/docs/content/locales/zh-TW/agent-native-toolkit.mdx +61 -0
  23. package/corpus/core/docs/content/locales/zh-TW/sharing.mdx +15 -7
  24. package/corpus/core/docs/content/sharing.mdx +39 -7
  25. package/corpus/core/package.json +2 -1
  26. package/corpus/core/src/server/action-discovery.ts +4 -0
  27. package/corpus/core/src/server/action-routes.ts +8 -1
  28. package/corpus/core/src/server/index.ts +9 -0
  29. package/corpus/core/src/shared/agent-readable-resource.ts +111 -0
  30. package/corpus/core/src/shared/index.ts +9 -0
  31. package/corpus/core/src/sharing/actions/create-agent-resource-link.ts +91 -0
  32. package/corpus/core/src/sharing/registry.ts +19 -0
  33. package/corpus/core/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +92 -0
  34. package/corpus/core/src/vite/client.ts +1 -0
  35. package/corpus/templates/analytics/actions/get-sql-dashboard.ts +9 -113
  36. package/corpus/templates/analytics/server/db/index.ts +14 -0
  37. package/corpus/templates/analytics/server/lib/agent-readable-resource-context.ts +156 -0
  38. package/corpus/templates/analytics/server/routes/[...page].get.ts +92 -25
  39. package/corpus/templates/analytics/server/routes/api/analysis-agent-context.json.get.ts +94 -0
  40. package/corpus/templates/analytics/server/routes/api/dashboard-agent-context.json.get.ts +109 -0
  41. package/corpus/templates/analytics/shared/resource-agent-access.ts +6 -0
  42. package/corpus/templates/content/app/routes/p.$id.tsx +114 -9
  43. package/corpus/templates/content/server/db/index.ts +9 -0
  44. package/corpus/templates/content/server/routes/api/document-agent-context.json.get.ts +90 -0
  45. package/corpus/templates/content/shared/agent-readable.ts +56 -0
  46. package/corpus/templates/design/server/db/index.ts +8 -0
  47. package/corpus/templates/design/server/routes/[...page].get.ts +94 -1
  48. package/corpus/templates/design/server/routes/api/design-agent-context.json.get.ts +84 -0
  49. package/corpus/templates/design/shared/agent-readable.ts +2 -0
  50. package/corpus/templates/plan/server/db/index.ts +12 -0
  51. package/corpus/templates/plan/server/plans.ts +25 -1
  52. package/corpus/templates/plan/server/routes/[...page].get.ts +107 -1
  53. package/corpus/templates/plan/server/routes/api/plan-agent-context.json.get.ts +65 -0
  54. package/corpus/templates/plan/shared/agent-readable.ts +2 -0
  55. package/corpus/templates/slides/app/routes/p.$id.tsx +126 -12
  56. package/corpus/templates/slides/app/routes/share.$token.tsx +55 -8
  57. package/corpus/templates/slides/server/db/index.ts +9 -0
  58. package/corpus/templates/slides/server/routes/api/deck-agent-context.json.get.ts +97 -0
  59. package/corpus/templates/slides/shared/agent-readable.ts +2 -0
  60. package/dist/collab/routes.d.ts +1 -1
  61. package/dist/collab/struct-routes.d.ts +1 -1
  62. package/dist/notifications/routes.d.ts +1 -1
  63. package/dist/observability/routes.d.ts +5 -5
  64. package/dist/progress/routes.d.ts +1 -1
  65. package/dist/provider-api/corpus-jobs.d.ts +2 -2
  66. package/dist/resources/handlers.d.ts +1 -1
  67. package/dist/secrets/routes.d.ts +9 -9
  68. package/dist/server/action-discovery.d.ts.map +1 -1
  69. package/dist/server/action-discovery.js +4 -0
  70. package/dist/server/action-discovery.js.map +1 -1
  71. package/dist/server/action-routes.d.ts.map +1 -1
  72. package/dist/server/action-routes.js +8 -2
  73. package/dist/server/action-routes.js.map +1 -1
  74. package/dist/server/index.d.ts +1 -0
  75. package/dist/server/index.d.ts.map +1 -1
  76. package/dist/server/index.js +1 -0
  77. package/dist/server/index.js.map +1 -1
  78. package/dist/shared/agent-readable-resource.d.ts +29 -0
  79. package/dist/shared/agent-readable-resource.d.ts.map +1 -0
  80. package/dist/shared/agent-readable-resource.js +60 -0
  81. package/dist/shared/agent-readable-resource.js.map +1 -0
  82. package/dist/shared/index.d.ts +1 -0
  83. package/dist/shared/index.d.ts.map +1 -1
  84. package/dist/shared/index.js +1 -0
  85. package/dist/shared/index.js.map +1 -1
  86. package/dist/sharing/actions/create-agent-resource-link.d.ts +13 -0
  87. package/dist/sharing/actions/create-agent-resource-link.d.ts.map +1 -0
  88. package/dist/sharing/actions/create-agent-resource-link.js +72 -0
  89. package/dist/sharing/actions/create-agent-resource-link.js.map +1 -0
  90. package/dist/sharing/registry.d.ts +17 -0
  91. package/dist/sharing/registry.d.ts.map +1 -1
  92. package/dist/sharing/registry.js.map +1 -1
  93. package/dist/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +92 -0
  94. package/dist/vite/client.d.ts.map +1 -1
  95. package/dist/vite/client.js +1 -0
  96. package/dist/vite/client.js.map +1 -1
  97. package/docs/content/agent-native-toolkit.mdx +162 -0
  98. package/docs/content/locales/ar-SA/agent-native-toolkit.mdx +73 -0
  99. package/docs/content/locales/ar-SA/sharing.mdx +15 -7
  100. package/docs/content/locales/de-DE/agent-native-toolkit.mdx +77 -0
  101. package/docs/content/locales/de-DE/sharing.mdx +15 -7
  102. package/docs/content/locales/es-ES/agent-native-toolkit.mdx +77 -0
  103. package/docs/content/locales/es-ES/sharing.mdx +15 -7
  104. package/docs/content/locales/fr-FR/agent-native-toolkit.mdx +79 -0
  105. package/docs/content/locales/fr-FR/sharing.mdx +15 -7
  106. package/docs/content/locales/hi-IN/agent-native-toolkit.mdx +74 -0
  107. package/docs/content/locales/hi-IN/sharing.mdx +15 -7
  108. package/docs/content/locales/ja-JP/agent-native-toolkit.mdx +67 -0
  109. package/docs/content/locales/ja-JP/sharing.mdx +15 -7
  110. package/docs/content/locales/ko-KR/agent-native-toolkit.mdx +63 -0
  111. package/docs/content/locales/ko-KR/sharing.mdx +15 -7
  112. package/docs/content/locales/pt-BR/agent-native-toolkit.mdx +77 -0
  113. package/docs/content/locales/pt-BR/sharing.mdx +15 -7
  114. package/docs/content/locales/zh-CN/agent-native-toolkit.mdx +61 -0
  115. package/docs/content/locales/zh-CN/sharing.mdx +15 -7
  116. package/docs/content/locales/zh-TW/agent-native-toolkit.mdx +61 -0
  117. package/docs/content/locales/zh-TW/sharing.mdx +15 -7
  118. package/docs/content/sharing.mdx +39 -7
  119. package/package.json +2 -1
  120. package/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +92 -0
@@ -93,9 +93,10 @@ Chaque modèle qui stocke le travail créé par l'utilisateur utilise ce modèle
93
93
  - **Diapositives** — présentations
94
94
  - **Conception** – conceptions et éléments
95
95
  - **Clips** – enregistrements d'écran (style Loom)
96
+ - **Plan** — visual plans and PR recaps
96
97
  - **Formulaires** — définitions de formulaire
97
98
  - **Calendrier** — événements et liens de réservation
98
- - **Analytics** — tableaux de bord (déploiement voir `AGENTS.md` du modèle d'analyse)
99
+ - **Analytics** — dashboards, saved analyses, and tokenized session replays
99
100
  - **Extensions** – mini-applications en bac à sable (voir [Extensions](/docs/extensions#sharing))
100
101
 
101
102
  Chacun d'entre eux utilise le même assistant de schéma `ownableColumns()`, la même action `share-resource` et la même `<ShareButton>` UI. Passez d'un modèle à un autre et la boîte de dialogue de partage semble identique.
@@ -136,15 +137,22 @@ Pour les listes, déposez un `<VisibilityBadge visibility={row.visibility} />`
136
137
 
137
138
  Le framework monte automatiquement ces actions dans chaque modèle : l'agent les appelle en tant qu'outils et le UI les appelle via `useActionQuery` / `useActionMutation` :
138
139
 
139
- | Actions | Ce qu'il fait |
140
- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
141
- | `share-resource` | Accorder à un utilisateur ou à une organisation l'accès à un rôle spécifique. Le `notify` en option contrôle les notifications par e-mail. |
142
- | `unshare-resource` | Révoquer l'accès d'un utilisateur ou d'une organisation. |
143
- | `list-resource-shares` | Afficher la visibilité actuelle ainsi que toutes les autorisations explicites. |
144
- | `set-resource-visibility` | Passez à `private`, `org` ou `public`. |
140
+ | Actions | Ce qu'il fait |
141
+ | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
142
+ | `share-resource` | Accorder à un utilisateur ou à une organisation l'accès à un rôle spécifique. Le `notify` en option contrôle les notifications par e-mail. |
143
+ | `unshare-resource` | Révoquer l'accès d'un utilisateur ou d'une organisation. |
144
+ | `list-resource-shares` | Afficher la visibilité actuelle ainsi que toutes les autorisations explicites. |
145
+ | `set-resource-visibility` | Passez à `private`, `org` ou `public`. |
146
+ | `create-agent-resource-link` | Mint a temporary read-only `agent_access` URL for a registered agent-readable resource. |
145
147
 
146
148
  Dites à l'agent "Partagez cette conception avec l'équipe marketing en tant qu'éditeurs" et il appellera `share-resource` sur le même point de terminaison que celui utilisé par UI. Le résultat apparaît dans la boîte de dialogue de partage lors du prochain rendu.
147
149
 
150
+ ## Agent-readable share links {#agent-readable-links}
151
+
152
+ Human share links should also work for agents when the resource is a document-like artifact: plans, documents, decks, designs, analytics dashboards, saved analyses, clips, and similar "things you would send to a person." Public links expose a small SSR discovery script that points at structured JSON. Private resources use a short-lived `agent_access` token scoped to exactly one resource.
153
+
154
+ Register the resource with `agentReadable`, add a read-only JSON context endpoint, inject the SSR discovery script with `renderAgentReadableResourceDiscoveryScript()`, and let agents call `create-agent-resource-link` when they need a temporary private URL. The endpoint must return data only when the row is `public` or `verifyScopedAgentAccessToken()` accepts the token for that exact `resourceKind` and `resourceId`.
155
+
148
156
  ## L'intégrer dans un nouveau modèle {#building}
149
157
 
150
158
  Si vous créez un modèle (voir [Creating Templates](/docs/creating-templates)), le partage de câblage est court. Deux ajouts à votre schéma :
@@ -0,0 +1,74 @@
1
+ ---
2
+ title: "Agent-Native Toolkit"
3
+ description: "Collaboration, settings, sharing, navigation, presence, history, setup और Agent UX के लिए reusable kits."
4
+ ---
5
+
6
+ # Agent-Native Toolkit
7
+
8
+ Agent-Native apps को workspace की common plumbing बार-बार नहीं बनानी चाहिए।
9
+ Apps अपने domain models, domain actions और product-specific views की owner होती
10
+ हैं। Framework और `@agent-native/toolkit` उन reusable surfaces के owner हैं जो
11
+ हर app को inherit करनी चाहिए: collaboration, sharing, settings, navigation,
12
+ organization, setup, Agent UX, history और operational visibility.
13
+
14
+ Users को sharing, API keys, agent editing presence, settings और change history
15
+ के लिए हर app में नया pattern नहीं सीखना चाहिए।
16
+
17
+ ## Toolkit contract {#toolkit-contract}
18
+
19
+ Behavior को toolkit में move करें जब वह:
20
+
21
+ - **Workspace-wide** हो - users हर app में same behavior expect करते हैं।
22
+ - **Agent-visible** हो - agent को actions, instructions या application state से
23
+ वही capability चाहिए।
24
+ - **Governed** हो - permissions, audit, secrets, org policy, billing या sharing
25
+ rules apply होते हैं।
26
+ - **Repeated** हो - दो apps similar UI या logic बना चुकी हैं।
27
+ - **Non-domain-specific** हो - app resource names और actions देती है, लेकिन
28
+ interaction pattern generic है।
29
+
30
+ जो behavior domain model या app-specific workflow से deeply जुड़ा है, उसे
31
+ app-local रखें।
32
+
33
+ ## Reusable kits {#reusable-kits}
34
+
35
+ - **Settings kit** - account, workspace, AI models, LLM keys, connections,
36
+ secrets, usage, notifications, changelog और app preferences के standard tabs.
37
+ Durable config Settings में रहे; agent sidebar contextual quick controls और
38
+ deep links रखे।
39
+ - **Collaboration kit** - real-time editing, Yjs docs, presence, agent presence,
40
+ live cursors, remote selections, recent edit highlights और shared undo/redo.
41
+ देखें [Real-Time Collaboration](/docs/real-time-collaboration).
42
+ - **Sharing kit** - private, workspace, org, public link, invites, roles,
43
+ expirations और agent-readable access के लिए एक privacy और permissions model.
44
+ देखें [Sharing & Privacy](/docs/sharing).
45
+ - **Navigation and command kit** - app shell, nav, breadcrumbs, app switcher,
46
+ command palette, recents, pinned resources और search.
47
+ - **Organization kit** - folders, tags, favorites, archive, trash, ownership,
48
+ membership और common metadata.
49
+ - **Setup and connections kit** - API keys, OAuth, connections, model readiness,
50
+ missing secrets और declarative onboarding. देखें
51
+ [Workspace Connections](/docs/workspace-connections).
52
+ - **Agent UX kit** - sidebar, composer, staged context, mentions, voice, human
53
+ approval, generative UI, progress और Agent-visible state.
54
+ - **History and recovery kit** - audit log, activity feed, version history,
55
+ checkpoints, undo, redo, restore और proof-of-done. देखें
56
+ [Audit Log](/docs/audit-log).
57
+ - **Comments and review kit** - anchored comments, pins, mentions, review
58
+ requests, resolved threads और Agent follow-up tasks.
59
+ - **Workflow and observability kit** - notifications, approvals, background
60
+ runs, recurring jobs, traces, evals, feedback और run timelines. देखें
61
+ [Observability](/docs/observability).
62
+
63
+ ## Implementation order {#implementation-order}
64
+
65
+ 1. Durable configuration को standard Settings tabs में consolidate करें।
66
+ 2. collaboration, presence, agent presence, undo/redo और real-time editing को
67
+ shared adapters के पीछे normalize करें।
68
+ 3. navigation, commands, recents, favorites, folders, tags, archive और trash को
69
+ shared primitives में move करें।
70
+ 4. हर shareable resource को same permissions और agent-readable access model में
71
+ register करें।
72
+ 5. हर collaborative resource को activity, comments, review, restore और audit की
73
+ consistent story दें।
74
+ 6. notifications, approvals, run status, traces, evals और feedback unify करें।
@@ -93,9 +93,10 @@ description: "Google-डॉक्स-शैली साझाकरण, फ़
93
93
  - **स्लाइड** — डेक
94
94
  - **डिज़ाइन** — डिज़ाइन और संपत्ति
95
95
  - **क्लिप्स** — स्क्रीन रिकॉर्डिंग (लूम-शैली)
96
+ - **Plan** — visual plans and PR recaps
96
97
  - **फ़ॉर्म** — फॉर्म परिभाषाएँ
97
98
  - **कैलेंडर** — ईवेंट और बुकिंग लिंक
98
- - **एनालिटिक्स** - डैशबोर्ड (बाहर चल रहा है - एनालिटिक्स टेम्पलेट का `AGENTS.md` देखें)
99
+ - **एनालिटिक्स** - dashboards, saved analyses, and tokenized session replays
99
100
  - **एक्सटेंशन** — सैंडबॉक्स्ड मिनी-ऐप्स ([Extensions](/docs/extensions#sharing) देखें)
100
101
 
101
102
  इनमें से हर एक समान `ownableColumns()` स्कीमा हेल्पर, समान `share-resource` क्रिया और समान `<ShareButton>` UI का उपयोग करता है। एक टेम्प्लेट से दूसरे टेम्प्लेट पर जाएं और शेयर डायलॉग समान दिखता है।
@@ -136,15 +137,22 @@ import { ShareButton } from "@agent-native/core/client";
136
137
 
137
138
  फ्रेमवर्क इन actions को प्रत्येक टेम्पलेट में ऑटो-माउंट करता है - एजेंट उन्हें टूल के रूप में कॉल करता है, और UI उन्हें `useActionQuery` / `useActionMutation` के माध्यम से कॉल करता है:
138
139
 
139
- | कार्रवाई | यह क्या करता है |
140
- | ------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
141
- | `share-resource` | किसी उपयोगकर्ता या संगठन को किसी विशिष्ट भूमिका तक पहुंच प्रदान करें। वैकल्पिक `notify` ईमेल सूचनाओं को नियंत्रित करता है। |
142
- | `unshare-resource` | किसी उपयोगकर्ता या संगठन के लिए पहुंच रद्द करें। |
143
- | `list-resource-shares` | वर्तमान दृश्यता और सभी स्पष्ट अनुदान दिखाएं। |
144
- | `set-resource-visibility` | `private`, `org`, या `public` में बदलें। |
140
+ | कार्रवाई | यह क्या करता है |
141
+ | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
142
+ | `share-resource` | किसी उपयोगकर्ता या संगठन को किसी विशिष्ट भूमिका तक पहुंच प्रदान करें। वैकल्पिक `notify` ईमेल सूचनाओं को नियंत्रित करता है। |
143
+ | `unshare-resource` | किसी उपयोगकर्ता या संगठन के लिए पहुंच रद्द करें। |
144
+ | `list-resource-shares` | वर्तमान दृश्यता और सभी स्पष्ट अनुदान दिखाएं। |
145
+ | `set-resource-visibility` | `private`, `org`, या `public` में बदलें। |
146
+ | `create-agent-resource-link` | Mint a temporary read-only `agent_access` URL for a registered agent-readable resource. |
145
147
 
146
148
  एजेंट को बताएं "इस डिज़ाइन को संपादकों के रूप में मार्केटिंग टीम के साथ साझा करें" और यह UI द्वारा उपयोग किए जाने वाले उसी एंडपॉइंट के विरुद्ध `share-resource` को कॉल करता है। परिणाम अगले रेंडर पर शेयर डायलॉग में दिखाई देता है।
147
149
 
150
+ ## Agent-readable share links {#agent-readable-links}
151
+
152
+ Human share links should also work for agents when the resource is a document-like artifact: plans, documents, decks, designs, analytics dashboards, saved analyses, clips, and similar "things you would send to a person." Public links expose a small SSR discovery script that points at structured JSON. Private resources use a short-lived `agent_access` token scoped to exactly one resource.
153
+
154
+ Register the resource with `agentReadable`, add a read-only JSON context endpoint, inject the SSR discovery script with `renderAgentReadableResourceDiscoveryScript()`, and let agents call `create-agent-resource-link` when they need a temporary private URL. The endpoint must return data only when the row is `public` or `verifyScopedAgentAccessToken()` accepts the token for that exact `resourceKind` and `resourceId`.
155
+
148
156
  ## इसे एक नए टेम्पलेट में बनाना {#building}
149
157
 
150
158
  यदि आप एक टेम्प्लेट बना रहे हैं ([Creating Templates](/docs/creating-templates) देखें), तो वायरिंग शेयरिंग कम है। आपकी स्कीम में दो अतिरिक्त:
@@ -0,0 +1,67 @@
1
+ ---
2
+ title: "Agent-Native ツールキット"
3
+ description: "コラボレーション、設定、共有、ナビゲーション、プレゼンス、履歴、セットアップ、Agent UX の再利用可能なキット。"
4
+ ---
5
+
6
+ # Agent-Native ツールキット
7
+
8
+ Agent-Native のアプリは、workspace の共通機能を毎回作り直すべきではありません。
9
+ アプリはドメインモデル、ドメイン action、固有のビューを持ちます。Framework と
10
+ `@agent-native/toolkit` は、すべてのアプリが継承すべき再利用可能な面を持ちます:
11
+ コラボレーション、共有、設定、ナビゲーション、整理、セットアップ、Agent UX、履歴、
12
+ 運用の可視性です。
13
+
14
+ ユーザーが覚える共有方法、キー接続、Agent の共同編集表示、設定の場所、変更履歴の見方は
15
+ ひとつであるべきです。
16
+
17
+ ## ツールキットの契約 {#toolkit-contract}
18
+
19
+ 次の条件に当てはまる動作は toolkit に移します。
20
+
21
+ - **Workspace 全体** - すべてのアプリで同じ挙動が期待される。
22
+ - **Agent から見える** - action、instructions、application state を通じて Agent も使う。
23
+ - **Governed** - 権限、audit、secrets、org policy、billing、sharing rules が関係する。
24
+ - **繰り返される** - 2 つ以上のアプリが似た UI やロジックを持つ。
25
+ - **ドメイン固有ではない** - アプリはリソース名と action を渡し、操作パターンは汎用。
26
+
27
+ ドメインモデルやアプリ固有の workflow に強く結びつくものは app-local に残します。
28
+
29
+ ## 再利用可能なキット {#reusable-kits}
30
+
31
+ - **Settings kit** - account、workspace、AI models、LLM keys、connections、
32
+ secrets、usage、notifications、changelog、app preferences の標準 tabs。永続設定は
33
+ Settings に置き、Agent sidebar は文脈上の quick controls と deep links に絞ります。
34
+ - **Collaboration kit** - リアルタイム編集、Yjs docs、presence、agent presence、live
35
+ cursors、remote selections、recent edit highlights、共有 undo/redo。詳しくは
36
+ [Real-Time Collaboration](/docs/real-time-collaboration)。
37
+ - **Sharing kit** - private、workspace、org、public link、invites、roles、
38
+ expirations、agent-readable access をひとつの権限モデルで扱います。詳しくは
39
+ [Sharing & Privacy](/docs/sharing)。
40
+ - **Navigation and command kit** - app shell、nav、breadcrumbs、app switcher、
41
+ command palette、recents、pinned resources、search。
42
+ - **Organization kit** - folders、tags、favorites、archive、trash、ownership、
43
+ membership、共通 metadata。
44
+ - **Setup and connections kit** - API keys、OAuth、connections、model readiness、
45
+ missing secrets、declarative onboarding。詳しくは
46
+ [Workspace Connections](/docs/workspace-connections)。
47
+ - **Agent UX kit** - sidebar、composer、staged context、mentions、voice、human
48
+ approval、generative UI、progress、Agent-visible state。
49
+ - **History and recovery kit** - audit log、activity feed、version history、
50
+ checkpoints、undo、redo、restore、proof-of-done。詳しくは
51
+ [Audit Log](/docs/audit-log)。
52
+ - **Comments and review kit** - anchored comments、pins、mentions、review requests、
53
+ resolved threads、Agent follow-up tasks。
54
+ - **Workflow and observability kit** - notifications、approvals、background runs、
55
+ recurring jobs、traces、evals、feedback、run timelines。詳しくは
56
+ [Observability](/docs/observability)。
57
+
58
+ ## 実装順序 {#implementation-order}
59
+
60
+ 1. 永続設定を標準 Settings tabs に集約します。
61
+ 2. collaboration、presence、agent presence、undo/redo、real-time editing を共有
62
+ adapters の後ろに揃えます。
63
+ 3. navigation、commands、recents、favorites、folders、tags、archive、trash を共有
64
+ primitives に移します。
65
+ 4. 共有可能なすべての resource を同じ permissions と agent-readable access モデルに登録します。
66
+ 5. collaborative resource に activity、comments、review、restore、audit の一貫した体験を持たせます。
67
+ 6. notifications、approvals、run status、traces、evals、feedback を統一します。
@@ -93,9 +93,10 @@ description: "フレームワークに組み込まれた Google ドキュメン
93
93
  - **スライド** — デッキ
94
94
  - **デザイン** — デザインとアセット
95
95
  - **クリップ** — 画面録画 (Loom スタイル)
96
+ - **Plan** — visual plans and PR recaps
96
97
  - **フォーム** — フォーム定義
97
98
  - **カレンダー** — イベントと予約リンク
98
- - **Analytics** — ダッシュボード (展開中 分析テンプレートの `AGENTS.md` を参照)
99
+ - **Analytics** — dashboards, saved analyses, and tokenized session replays
99
100
  - **拡張機能** — サンドボックス化されたミニアプリ ([Extensions](/docs/extensions#sharing) を参照)
100
101
 
101
102
  これらはすべて、同じ `ownableColumns()` スキーマ ヘルパー、同じ `share-resource` アクション、および同じ `<ShareButton>` UI を使用します。あるテンプレートから別のテンプレートに移動すると、共有ダイアログは同じように見えます。
@@ -136,15 +137,22 @@ import { ShareButton } from "@agent-native/core/client";
136
137
 
137
138
  フレームワークはこれらの actions をすべてのテンプレートに自動マウントします。エージェントはこれらをツールとして呼び出し、UI は `useActionQuery` / `useActionMutation` を通じてこれらを呼び出します。
138
139
 
139
- | アクション | 機能 |
140
- | ------------------------- | -------------------------------------------------------------------------------------------------------------- |
141
- | `share-resource` | ユーザーまたは組織に特定のロールでのアクセスを許可します。オプションの `notify` は電子メール通知を制御します。 |
142
- | `unshare-resource` | ユーザーまたは組織のアクセス権を取り消します。 |
143
- | `list-resource-shares` | 現在の可視性とすべての明示的な許可を表示します。 |
144
- | `set-resource-visibility` | `private`、`org`、または `public` に変更します。 |
140
+ | アクション | 機能 |
141
+ | ---------------------------- | -------------------------------------------------------------------------------------------------------------- |
142
+ | `share-resource` | ユーザーまたは組織に特定のロールでのアクセスを許可します。オプションの `notify` は電子メール通知を制御します。 |
143
+ | `unshare-resource` | ユーザーまたは組織のアクセス権を取り消します。 |
144
+ | `list-resource-shares` | 現在の可視性とすべての明示的な許可を表示します。 |
145
+ | `set-resource-visibility` | `private`、`org`、または `public` に変更します。 |
146
+ | `create-agent-resource-link` | Mint a temporary read-only `agent_access` URL for a registered agent-readable resource. |
145
147
 
146
148
  エージェントに「このデザインを編集者としてマーケティング チームと共有する」ように指示すると、エージェントは UI が使用するのと同じエンドポイントに対して `share-resource` を呼び出します。結果は、次回のレンダリング時に共有ダイアログに表示されます。
147
149
 
150
+ ## Agent-readable share links {#agent-readable-links}
151
+
152
+ Human share links should also work for agents when the resource is a document-like artifact: plans, documents, decks, designs, analytics dashboards, saved analyses, clips, and similar "things you would send to a person." Public links expose a small SSR discovery script that points at structured JSON. Private resources use a short-lived `agent_access` token scoped to exactly one resource.
153
+
154
+ Register the resource with `agentReadable`, add a read-only JSON context endpoint, inject the SSR discovery script with `renderAgentReadableResourceDiscoveryScript()`, and let agents call `create-agent-resource-link` when they need a temporary private URL. The endpoint must return data only when the row is `public` or `verifyScopedAgentAccessToken()` accepts the token for that exact `resourceKind` and `resourceId`.
155
+
148
156
  ## 新しいテンプレートに組み込む {#building}
149
157
 
150
158
  テンプレートを作成している場合 ([Creating Templates](/docs/creating-templates) を参照)、配線の共有は短くなります。スキーマへの 2 つの追加:
@@ -0,0 +1,63 @@
1
+ ---
2
+ title: "Agent-Native 툴킷"
3
+ description: "협업, 설정, 공유, 탐색, presence, 기록, 설정 준비, Agent UX를 위한 재사용 가능한 키트."
4
+ ---
5
+
6
+ # Agent-Native 툴킷
7
+
8
+ Agent-Native 앱은 workspace 공통 기능을 매번 다시 만들면 안 됩니다. 앱은 도메인 모델,
9
+ 도메인 action, 제품별 화면을 소유합니다. Framework와 `@agent-native/toolkit`은 모든 앱이
10
+ 상속해야 하는 재사용 가능한 표면을 소유합니다: 협업, 공유, 설정, 탐색, 정리, 설정 준비,
11
+ Agent UX, 기록, 운영 가시성입니다.
12
+
13
+ 사용자는 공유, 키 연결, Agent의 공동 편집, 설정 위치, 변경 내역을 앱마다 새로 배우지 않아야 합니다.
14
+
15
+ ## 툴킷 계약 {#toolkit-contract}
16
+
17
+ 다음에 해당하면 동작을 toolkit으로 옮깁니다.
18
+
19
+ - **Workspace 전체** - 모든 앱에서 같은 방식으로 동작해야 합니다.
20
+ - **Agent-visible** - Agent가 actions, instructions, application state를 통해 같은 기능을 써야 합니다.
21
+ - **Governed** - 권한, audit, secrets, org policy, billing, sharing rules가 적용됩니다.
22
+ - **Repeated** - 두 앱 이상이 비슷한 UI나 로직을 이미 만들었습니다.
23
+ - **Not domain-specific** - 앱은 resource 이름과 action을 제공하지만 interaction pattern은 일반적입니다.
24
+
25
+ 도메인 모델이나 앱 고유 workflow에 깊게 묶인 동작은 app-local로 둡니다.
26
+
27
+ ## 재사용 가능한 키트 {#reusable-kits}
28
+
29
+ - **Settings kit** - account, workspace, AI models, LLM keys, connections,
30
+ secrets, usage, notifications, changelog, app preferences의 표준 tabs입니다. 지속 설정은
31
+ Settings에 두고 Agent sidebar는 contextual quick controls와 deep links만 유지합니다.
32
+ - **Collaboration kit** - real-time editing, Yjs docs, presence, agent presence,
33
+ live cursors, remote selections, recent edit highlights, shared undo/redo입니다. 자세한 내용은
34
+ [Real-Time Collaboration](/docs/real-time-collaboration)을 보세요.
35
+ - **Sharing kit** - private, workspace, org, public link, invites, roles,
36
+ expirations, agent-readable access를 하나의 권한 모델로 다룹니다. 자세한 내용은
37
+ [Sharing & Privacy](/docs/sharing)을 보세요.
38
+ - **Navigation and command kit** - app shell, nav, breadcrumbs, app switcher,
39
+ command palette, recents, pinned resources, search입니다.
40
+ - **Organization kit** - folders, tags, favorites, archive, trash, ownership,
41
+ membership, common metadata입니다.
42
+ - **Setup and connections kit** - API keys, OAuth, connections, model readiness,
43
+ missing secrets, declarative onboarding입니다. 자세한 내용은
44
+ [Workspace Connections](/docs/workspace-connections)을 보세요.
45
+ - **Agent UX kit** - sidebar, composer, staged context, mentions, voice, human
46
+ approval, generative UI, progress, Agent-visible state입니다.
47
+ - **History and recovery kit** - audit log, activity feed, version history,
48
+ checkpoints, undo, redo, restore, proof-of-done입니다. 자세한 내용은
49
+ [Audit Log](/docs/audit-log)를 보세요.
50
+ - **Comments and review kit** - anchored comments, pins, mentions, review requests,
51
+ resolved threads, Agent follow-up tasks입니다.
52
+ - **Workflow and observability kit** - notifications, approvals, background runs,
53
+ recurring jobs, traces, evals, feedback, run timelines입니다. 자세한 내용은
54
+ [Observability](/docs/observability)를 보세요.
55
+
56
+ ## 구현 순서 {#implementation-order}
57
+
58
+ 1. 지속 설정을 표준 Settings tabs로 통합합니다.
59
+ 2. collaboration, presence, agent presence, undo/redo, real-time editing을 공유 adapters 뒤로 정규화합니다.
60
+ 3. navigation, commands, recents, favorites, folders, tags, archive, trash를 공유 primitives로 이동합니다.
61
+ 4. 모든 공유 가능한 resource를 같은 permissions와 agent-readable access 모델에 등록합니다.
62
+ 5. collaborative resource마다 activity, comments, review, restore, audit 경험을 일관되게 만듭니다.
63
+ 6. notifications, approvals, run status, traces, evals, feedback을 통합합니다.
@@ -93,9 +93,10 @@ Google 문서도구처럼 보이고 작동합니다. 동일한 공유 버튼,
93
93
  - **슬라이드** — 자료
94
94
  - **디자인** — 디자인 및 자산
95
95
  - **클립** — 화면 녹화(Loom 스타일)
96
+ - **Plan** — visual plans and PR recaps
96
97
  - **양식** — 양식 정의
97
98
  - **캘린더** — 이벤트 및 예약 링크
98
- - **분석** — 대시보드(출시 분석 템플릿의 `AGENTS.md` 참조)
99
+ - **분석** — dashboards, saved analyses, and tokenized session replays
99
100
  - **확장** — 샌드박스 미니 앱([Extensions](/docs/extensions#sharing) 참조)
100
101
 
101
102
  이들 모두는 동일한 `ownableColumns()` 스키마 도우미, 동일한 `share-resource` 작업 및 동일한 `<ShareButton>` UI를 사용합니다. 한 템플릿에서 다른 템플릿으로 이동하면 공유 대화 상자가 동일하게 보입니다.
@@ -136,15 +137,22 @@ import { ShareButton } from "@agent-native/core/client";
136
137
 
137
138
  프레임워크는 모든 템플릿에 이러한 actions를 자동으로 마운트합니다. 에이전트는 이를 도구로 호출하고 UI는 `useActionQuery` / `useActionMutation`를 통해 호출합니다.
138
139
 
139
- | 액션 | 무엇을 하는가 |
140
- | ------------------------- | --------------------------------------------------------------------------------------------------------- |
141
- | `share-resource` | 특정 역할의 사용자 또는 조직에 액세스 권한을 부여합니다. 선택 사항인 `notify`는 이메일 알림을 제어합니다. |
142
- | `unshare-resource` | 사용자 또는 조직의 액세스 권한을 취소합니다. |
143
- | `list-resource-shares` | 현재 공개 상태와 모든 명시적 승인을 표시합니다. |
144
- | `set-resource-visibility` | `private`, `org` 또는 `public`로 변경하세요. |
140
+ | 액션 | 무엇을 하는가 |
141
+ | ---------------------------- | --------------------------------------------------------------------------------------------------------- |
142
+ | `share-resource` | 특정 역할의 사용자 또는 조직에 액세스 권한을 부여합니다. 선택 사항인 `notify`는 이메일 알림을 제어합니다. |
143
+ | `unshare-resource` | 사용자 또는 조직의 액세스 권한을 취소합니다. |
144
+ | `list-resource-shares` | 현재 공개 상태와 모든 명시적 승인을 표시합니다. |
145
+ | `set-resource-visibility` | `private`, `org` 또는 `public`로 변경하세요. |
146
+ | `create-agent-resource-link` | Mint a temporary read-only `agent_access` URL for a registered agent-readable resource. |
145
147
 
146
148
  에이전트에게 "이 디자인을 편집자로서 마케팅 팀과 공유"하라고 말하면 에이전트는 UI가 사용하는 동일한 엔드포인트에 대해 `share-resource`를 호출합니다. 결과는 다음 렌더링 시 공유 대화상자에 표시됩니다.
147
149
 
150
+ ## Agent-readable share links {#agent-readable-links}
151
+
152
+ Human share links should also work for agents when the resource is a document-like artifact: plans, documents, decks, designs, analytics dashboards, saved analyses, clips, and similar "things you would send to a person." Public links expose a small SSR discovery script that points at structured JSON. Private resources use a short-lived `agent_access` token scoped to exactly one resource.
153
+
154
+ Register the resource with `agentReadable`, add a read-only JSON context endpoint, inject the SSR discovery script with `renderAgentReadableResourceDiscoveryScript()`, and let agents call `create-agent-resource-link` when they need a temporary private URL. The endpoint must return data only when the row is `public` or `verifyScopedAgentAccessToken()` accepts the token for that exact `resourceKind` and `resourceId`.
155
+
148
156
  ## 새 템플릿으로 구축 {#building}
149
157
 
150
158
  템플릿을 생성하는 경우([Creating Templates](/docs/creating-templates) 참조) 배선 공유가 짧습니다. 스키마에 두 가지 추가 사항:
@@ -0,0 +1,77 @@
1
+ ---
2
+ title: "Toolkit do Agent-Native"
3
+ description: "Kits reutilizáveis para colaboração, configurações, compartilhamento, navegação, presença, histórico, setup e UX do agente."
4
+ ---
5
+
6
+ # Toolkit do Agent-Native
7
+
8
+ Apps Agent-Native não devem reconstruir a infraestrutura comum do workspace.
9
+ Apps são donas dos modelos de domínio, ações de domínio e telas específicas do
10
+ produto. O framework e `@agent-native/toolkit` são donos das superfícies
11
+ reutilizáveis que toda app deve herdar: colaboração, compartilhamento,
12
+ configurações, navegação, organização, setup, UX do agente, histórico e
13
+ visibilidade operacional.
14
+
15
+ O objetivo é que usuários aprendam uma única forma de compartilhar, conectar
16
+ chaves, ver o agente editando junto, encontrar configurações e entender o que
17
+ mudou.
18
+
19
+ ## Contrato do toolkit {#toolkit-contract}
20
+
21
+ Mova comportamento para o toolkit quando ele for:
22
+
23
+ - **Do workspace** - usuários esperam o mesmo comportamento em todas as apps.
24
+ - **Visível ao agente** - o agente precisa da mesma capacidade por ações,
25
+ instruções ou estado da aplicação.
26
+ - **Governado** - permissões, auditoria, secrets, política da org, cobrança ou
27
+ regras de compartilhamento se aplicam.
28
+ - **Repetido** - duas apps já criaram UI ou lógica parecida.
29
+ - **Não específico de domínio** - a app fornece nomes e ações de recursos, mas o
30
+ padrão de interação é genérico.
31
+
32
+ Mantenha local quando o comportamento depender do modelo de domínio ou de um
33
+ fluxo específico da app.
34
+
35
+ ## Kits reutilizáveis {#reusable-kits}
36
+
37
+ - **Settings kit** - abas padrão para conta, workspace, modelos de AI, chaves
38
+ LLM, conexões, secrets, uso, notificações, changelog e preferências da app.
39
+ Configuração durável fica em Settings; a sidebar do agente mantém controles
40
+ contextuais e deep links.
41
+ - **Collaboration kit** - edição em tempo real, documentos Yjs, presença,
42
+ presença do agente, cursores, seleções remotas, destaques de edição e
43
+ undo/redo compartilhado. Veja
44
+ [Real-Time Collaboration](/docs/real-time-collaboration).
45
+ - **Sharing kit** - um modelo de privacidade e permissões para privado,
46
+ workspace, org, link público, convites, roles, expiração e acesso legível pelo
47
+ agente. Veja [Sharing & Privacy](/docs/sharing).
48
+ - **Navigation and command kit** - app shell, navegação, breadcrumbs, app
49
+ switcher, command palette, recursos recentes, fixados e busca.
50
+ - **Organization kit** - pastas, tags, favoritos, arquivo, lixeira, ownership,
51
+ membros e metadados comuns.
52
+ - **Setup and connections kit** - chaves API, OAuth, conexões, prontidão de
53
+ modelos, secrets ausentes e onboarding declarativo. Veja
54
+ [Workspace Connections](/docs/workspace-connections).
55
+ - **Agent UX kit** - sidebar, composer, contexto preparado, menções, voz,
56
+ aprovação humana, UI generativa, progresso e estado visível ao agente.
57
+ - **History and recovery kit** - audit log, activity feed, version history,
58
+ checkpoints, undo, redo, restore e proof-of-done. Veja
59
+ [Audit Log](/docs/audit-log).
60
+ - **Comments and review kit** - comentários ancorados, pins, menções, pedidos de
61
+ review, threads resolvidas e follow-ups do agente.
62
+ - **Workflow and observability kit** - notificações, aprovações, background
63
+ runs, jobs recorrentes, traces, evals, feedback e timelines. Veja
64
+ [Observability](/docs/observability).
65
+
66
+ ## Ordem de implementação {#implementation-order}
67
+
68
+ 1. Consolidar configuração durável em abas padrão de Settings.
69
+ 2. Normalizar colaboração, presença, presença do agente, undo/redo e edição em
70
+ tempo real por adapters compartilhados.
71
+ 3. Mover navegação, comandos, recentes, favoritos, pastas, tags, arquivo e
72
+ lixeira para primitivas compartilhadas.
73
+ 4. Registrar todo recurso compartilhável no mesmo modelo de permissões e acesso
74
+ legível pelo agente.
75
+ 5. Dar a cada recurso colaborativo uma história consistente de atividade,
76
+ comentários, review, restore e auditoria.
77
+ 6. Unificar notificações, aprovações, status de runs, traces, evals e feedback.
@@ -93,9 +93,10 @@ Todo modelo que armazena trabalhos de autoria do usuário usa esse modelo. Concr
93
93
  - **Apresentações** — apresentações
94
94
  - **Design** — designs e recursos
95
95
  - **Clipes** — gravações de tela (estilo Loom)
96
+ - **Plan** — visual plans and PR recaps
96
97
  - **Formulários** — definições de formulário
97
98
  - **Calendário** — links para eventos e reservas
98
- - **Analytics** — painéis (lançamento veja o modelo de análise `AGENTS.md`)
99
+ - **Analytics** — dashboards, saved analyses, and tokenized session replays
99
100
  - **Extensões** — miniaplicativos em sandbox (consulte [Extensions](/docs/extensions#sharing))
100
101
 
101
102
  Cada um deles usa o mesmo auxiliar de esquema `ownableColumns()`, a mesma ação `share-resource` e o mesmo `<ShareButton>` UI. Mude de um modelo para outro e a caixa de diálogo de compartilhamento parecerá idêntica.
@@ -136,15 +137,22 @@ Para listas, coloque um `<VisibilityBadge visibility={row.visibility} />` ao lad
136
137
 
137
138
  A estrutura monta automaticamente esses actions em cada modelo — o agente os chama como ferramentas e o UI os chama por meio de `useActionQuery` / `useActionMutation`:
138
139
 
139
- | Ação | O que faz |
140
- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
141
- | `share-resource` | Conceda acesso a um usuário ou organização em uma função específica. `notify` opcional controla notificações por e-mail. |
142
- | `unshare-resource` | Revogar o acesso de um usuário ou organização. |
143
- | `list-resource-shares` | Mostrar a visibilidade atual e todas as concessões explícitas. |
144
- | `set-resource-visibility` | Mude para `private`, `org` ou `public`. |
140
+ | Ação | O que faz |
141
+ | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
142
+ | `share-resource` | Conceda acesso a um usuário ou organização em uma função específica. `notify` opcional controla notificações por e-mail. |
143
+ | `unshare-resource` | Revogar o acesso de um usuário ou organização. |
144
+ | `list-resource-shares` | Mostrar a visibilidade atual e todas as concessões explícitas. |
145
+ | `set-resource-visibility` | Mude para `private`, `org` ou `public`. |
146
+ | `create-agent-resource-link` | Mint a temporary read-only `agent_access` URL for a registered agent-readable resource. |
145
147
 
146
148
  Diga ao agente "compartilhe este design com a equipe de marketing como editores" e ele chamará `share-resource` no mesmo endpoint que UI usa. O resultado aparece na caixa de diálogo de compartilhamento na próxima renderização.
147
149
 
150
+ ## Agent-readable share links {#agent-readable-links}
151
+
152
+ Human share links should also work for agents when the resource is a document-like artifact: plans, documents, decks, designs, analytics dashboards, saved analyses, clips, and similar "things you would send to a person." Public links expose a small SSR discovery script that points at structured JSON. Private resources use a short-lived `agent_access` token scoped to exactly one resource.
153
+
154
+ Register the resource with `agentReadable`, add a read-only JSON context endpoint, inject the SSR discovery script with `renderAgentReadableResourceDiscoveryScript()`, and let agents call `create-agent-resource-link` when they need a temporary private URL. The endpoint must return data only when the row is `public` or `verifyScopedAgentAccessToken()` accepts the token for that exact `resourceKind` and `resourceId`.
155
+
148
156
  ## Construindo-o em um novo modelo {#building}
149
157
 
150
158
  Se você estiver criando um modelo (consulte [Creating Templates](/docs/creating-templates)), o compartilhamento de conexão será curto. Duas adições ao seu esquema:
@@ -0,0 +1,61 @@
1
+ ---
2
+ title: "Agent-Native 工具包"
3
+ description: "用于协作、设置、共享、导航、在线状态、历史、配置和 Agent UX 的可复用套件。"
4
+ ---
5
+
6
+ # Agent-Native 工具包
7
+
8
+ Agent-Native 应用不应该重复搭建 workspace 的通用能力。应用负责自己的领域模型、领域
9
+ actions 和产品视图。Framework 和 `@agent-native/toolkit` 负责每个应用都应该继承的可复用
10
+ 产品表面:协作、共享、设置、导航、组织、配置、Agent UX、历史和运营可见性。
11
+
12
+ 用户应该只学习一种共享方式、一种连接密钥的方式、一种看到 Agent 一起编辑的方式、一处设置入口,
13
+ 以及一种理解变更的方式。
14
+
15
+ ## 工具包契约 {#toolkit-contract}
16
+
17
+ 当行为符合以下条件时,应移动到 toolkit:
18
+
19
+ - **Workspace 级别** - 用户期望所有应用都一样。
20
+ - **Agent 可见** - Agent 需要通过 actions、instructions 或 application state 使用同一能力。
21
+ - **受治理** - 权限、audit、secrets、组织策略、billing 或共享规则会参与。
22
+ - **重复出现** - 两个应用已经构建了类似 UI 或逻辑。
23
+ - **非领域专属** - 应用提供资源名称和 actions,但交互模式是通用的。
24
+
25
+ 如果行为绑定领域模型、专属 workflow 或应用自己的心智模型,就保持 app-local。
26
+
27
+ ## 可复用套件 {#reusable-kits}
28
+
29
+ - **Settings kit** - account、workspace、AI models、LLM keys、connections、secrets、
30
+ usage、notifications、changelog 和 app preferences 的标准 tabs。持久配置放在 Settings;
31
+ Agent sidebar 只保留上下文 quick controls 和 deep links。
32
+ - **Collaboration kit** - real-time editing、Yjs docs、presence、agent presence、live
33
+ cursors、remote selections、recent edit highlights 和 shared undo/redo。参见
34
+ [Real-Time Collaboration](/docs/real-time-collaboration)。
35
+ - **Sharing kit** - 用一个隐私和权限模型处理 private、workspace、org、public link、invites、
36
+ roles、expirations 和 agent-readable access。参见 [Sharing & Privacy](/docs/sharing)。
37
+ - **Navigation and command kit** - app shell、nav、breadcrumbs、app switcher、command
38
+ palette、recents、pinned resources 和 search。
39
+ - **Organization kit** - folders、tags、favorites、archive、trash、ownership、membership
40
+ 和 common metadata。
41
+ - **Setup and connections kit** - API keys、OAuth、connections、model readiness、
42
+ missing secrets 和 declarative onboarding。参见
43
+ [Workspace Connections](/docs/workspace-connections)。
44
+ - **Agent UX kit** - sidebar、composer、staged context、mentions、voice、human approval、
45
+ generative UI、progress 和 Agent-visible state。
46
+ - **History and recovery kit** - audit log、activity feed、version history、checkpoints、
47
+ undo、redo、restore 和 proof-of-done。参见 [Audit Log](/docs/audit-log)。
48
+ - **Comments and review kit** - anchored comments、pins、mentions、review requests、
49
+ resolved threads 和 Agent follow-up tasks。
50
+ - **Workflow and observability kit** - notifications、approvals、background runs、
51
+ recurring jobs、traces、evals、feedback 和 run timelines。参见
52
+ [Observability](/docs/observability)。
53
+
54
+ ## 实施顺序 {#implementation-order}
55
+
56
+ 1. 将持久配置合并到标准 Settings tabs。
57
+ 2. 用共享 adapters 统一 collaboration、presence、agent presence、undo/redo 和 real-time editing。
58
+ 3. 将 navigation、commands、recents、favorites、folders、tags、archive 和 trash 移入共享 primitives。
59
+ 4. 让所有可共享 resource 注册到同一 permissions 和 agent-readable access 模型。
60
+ 5. 为每个 collaborative resource 提供一致的 activity、comments、review、restore 和 audit 体验。
61
+ 6. 统一 notifications、approvals、run status、traces、evals 和 feedback。
@@ -93,9 +93,10 @@ description: "Google Docs 风格的共享,内置于框架中。每个用户创
93
93
  - **幻灯片** — 幻灯片
94
94
  - **设计** — 设计和资产
95
95
  - **剪辑** — 屏幕录制(Loom 风格)
96
+ - **Plan** — visual plans and PR recaps
96
97
  - **表单** — 表单定义
97
98
  - **日历** — 活动和预订链接
98
- - **分析** - 仪表板(推出 - 请参阅分析模板的 `AGENTS.md`)
99
+ - **分析** - dashboards, saved analyses, and tokenized session replays
99
100
  - **扩展** - 沙盒迷你应用程序(参见 [Extensions](/docs/extensions#sharing))
100
101
 
101
102
  其中每一个都使用相同的 `ownableColumns()` 模式助手、相同的 `share-resource` 操作和相同的 `<ShareButton>` UI。从一个模板移动到另一个模板,共享对话框看起来相同。
@@ -136,15 +137,22 @@ import { ShareButton } from "@agent-native/core/client";
136
137
 
137
138
  框架在每个模板中自动安装这些 actions - 代理将它们称为工具,UI 通过 `useActionQuery` / `useActionMutation` 调用它们:
138
139
 
139
- | 行动 | 它的作用 |
140
- | ------------------------- | -------------------------------------------------------------------- |
141
- | `share-resource` | 授予用户或组织特定角色的访问权限。可选的 `notify` 控制电子邮件通知。 |
142
- | `unshare-resource` | 撤销用户或组织的访问权限。 |
143
- | `list-resource-shares` | 显示当前可见性以及所有显式授权。 |
144
- | `set-resource-visibility` | 更改为 `private`、`org` 或 `public`。 |
140
+ | 行动 | 它的作用 |
141
+ | ---------------------------- | --------------------------------------------------------------------------------------- |
142
+ | `share-resource` | 授予用户或组织特定角色的访问权限。可选的 `notify` 控制电子邮件通知。 |
143
+ | `unshare-resource` | 撤销用户或组织的访问权限。 |
144
+ | `list-resource-shares` | 显示当前可见性以及所有显式授权。 |
145
+ | `set-resource-visibility` | 更改为 `private`、`org` 或 `public`。 |
146
+ | `create-agent-resource-link` | Mint a temporary read-only `agent_access` URL for a registered agent-readable resource. |
145
147
 
146
148
  告诉代理“与作为编辑的营销团队共享此设计”,它会针对 UI 使用的同一端点调用 `share-resource`。结果将显示在下一次渲染的共享对话框中。
147
149
 
150
+ ## Agent-readable share links {#agent-readable-links}
151
+
152
+ Human share links should also work for agents when the resource is a document-like artifact: plans, documents, decks, designs, analytics dashboards, saved analyses, clips, and similar "things you would send to a person." Public links expose a small SSR discovery script that points at structured JSON. Private resources use a short-lived `agent_access` token scoped to exactly one resource.
153
+
154
+ Register the resource with `agentReadable`, add a read-only JSON context endpoint, inject the SSR discovery script with `renderAgentReadableResourceDiscoveryScript()`, and let agents call `create-agent-resource-link` when they need a temporary private URL. The endpoint must return data only when the row is `public` or `verifyScopedAgentAccessToken()` accepts the token for that exact `resourceKind` and `resourceId`.
155
+
148
156
  ## 将其构建到新模板中 {#building}
149
157
 
150
158
  如果您正在创建模板(请参阅 [Creating Templates](/docs/creating-templates)),则共享接线会很短。您的架构中添加了两项内容: