@jini-ai/agent-plugins 0.7.3-next.1 → 0.7.3-next.3

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 (233) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +22 -4
  3. package/calendly/README.md +29 -0
  4. package/calendly/mcp.json +1 -1
  5. package/cloudflare/lib/assets.mjs +1 -1
  6. package/cloudflare/lib/cms-forms.mjs +1 -1
  7. package/core/persistent-state.d.ts +4 -1
  8. package/core/persistent-state.js +55 -21
  9. package/dist/admin-surfaces/callback-field-inbox.d.ts +1 -6
  10. package/dist/admin-surfaces/connections/connections.d.ts +2 -6
  11. package/dist/admin-surfaces/connections/index.d.ts +3 -2
  12. package/dist/admin-surfaces/index.d.ts +3 -1
  13. package/dist/connect/access-token-tool.d.ts +1 -1
  14. package/dist/connect/access-token-tool.js +1 -1
  15. package/dist/connect/catalog.d.ts +26 -0
  16. package/dist/connect/catalog.js +42 -0
  17. package/dist/connect/connect-tool.d.ts +2 -294
  18. package/dist/connect/connect-tool.js +2 -53
  19. package/dist/connect/contracts.d.ts +257 -0
  20. package/dist/connect/contracts.js +2 -0
  21. package/dist/connect/credential-cards.d.ts +2 -0
  22. package/dist/connect/credential-cards.js +7 -4
  23. package/dist/connect/grant-signed-in-defaults.js +1 -1
  24. package/dist/connect/host-deps.d.ts +32 -0
  25. package/dist/connect/host-deps.js +35 -0
  26. package/dist/connect/import-access-token.js +1 -1
  27. package/dist/connect/index.d.ts +7 -2
  28. package/dist/connect/index.js +5 -2
  29. package/dist/connect/installed-plugin.d.ts +28 -0
  30. package/dist/connect/installed-plugin.js +19 -0
  31. package/dist/connect/new-site-agent-plugin-tokens.d.ts +88 -0
  32. package/dist/connect/new-site-agent-plugin-tokens.js +107 -0
  33. package/dist/connect/plugin-host/index.d.ts +2 -2
  34. package/dist/connect/plugin-host/index.js +19 -10
  35. package/dist/connect/token-sign-in.d.ts +1 -14
  36. package/dist/connect/token-sign-in.js +4 -23
  37. package/dist/core/export-props.d.ts +10 -0
  38. package/dist/core/export-props.js +31 -0
  39. package/dist/core/folder-zip-error.d.ts +5 -0
  40. package/dist/core/folder-zip-error.js +8 -0
  41. package/dist/core/host-incompatible-error.d.ts +8 -0
  42. package/dist/core/host-incompatible-error.js +9 -0
  43. package/dist/core/identity-namespace.d.ts +27 -16
  44. package/dist/core/identity-namespace.js +25 -22
  45. package/dist/core/plugin-display-name.d.ts +7 -0
  46. package/dist/core/plugin-display-name.js +11 -0
  47. package/dist/core/provider-plugin-link.d.ts +7 -0
  48. package/dist/core/provider-plugin-link.js +5 -0
  49. package/dist/{connect → core}/token-map.d.ts +11 -1
  50. package/dist/{connect → core}/token-map.js +15 -0
  51. package/dist/core/token-sign-in-list.d.ts +18 -0
  52. package/dist/core/token-sign-in-list.js +23 -0
  53. package/dist/core/update-error.d.ts +8 -0
  54. package/dist/core/update-error.js +9 -0
  55. package/dist/{lifecycle → core}/update-plan.d.ts +1 -1
  56. package/dist/ffmpeg-transcode/adapter.d.ts +74 -0
  57. package/dist/ffmpeg-transcode/adapter.js +155 -0
  58. package/dist/folder-zip-node.d.ts +2 -1
  59. package/dist/folder-zip-node.js +6 -5
  60. package/dist/folder-zip.d.ts +0 -4
  61. package/dist/folder-zip.js +1 -7
  62. package/dist/index.d.ts +3 -1
  63. package/dist/lifecycle/activation.d.ts +39 -3
  64. package/dist/lifecycle/activation.js +467 -418
  65. package/dist/lifecycle/automatic-use-offer.d.ts +62 -0
  66. package/dist/lifecycle/automatic-use-offer.js +52 -0
  67. package/dist/lifecycle/automatic-use.d.ts +33 -1
  68. package/dist/lifecycle/automatic-use.js +157 -38
  69. package/dist/lifecycle/bundled-source-archive.d.ts +1 -1
  70. package/dist/lifecycle/capability-projection.d.ts +0 -1
  71. package/dist/lifecycle/capability-projection.js +92 -23
  72. package/dist/lifecycle/compatibility-metadata.d.ts +1 -0
  73. package/dist/lifecycle/compatibility-metadata.js +6 -1
  74. package/dist/lifecycle/compatibility.d.ts +1 -8
  75. package/dist/lifecycle/compatibility.js +1 -8
  76. package/dist/lifecycle/credential-card-metadata.d.ts +2 -2
  77. package/dist/lifecycle/exports.d.ts +2 -45
  78. package/dist/lifecycle/exports.js +1 -30
  79. package/dist/lifecycle/host-tools/identity.d.ts +5 -4
  80. package/dist/lifecycle/host-tools/identity.js +5 -5
  81. package/dist/lifecycle/host-tools/ports.d.ts +10 -1
  82. package/dist/lifecycle/host-tools/search-tool.d.ts +4 -2
  83. package/dist/lifecycle/host-tools/search-tool.js +19 -8
  84. package/dist/lifecycle/host-tools/skill-tool.js +1 -1
  85. package/dist/lifecycle/index.d.ts +20 -17
  86. package/dist/lifecycle/index.js +5 -4
  87. package/dist/lifecycle/install-from-url.d.ts +1 -2
  88. package/dist/lifecycle/install.d.ts +4 -34
  89. package/dist/lifecycle/install.js +3 -3
  90. package/dist/lifecycle/installed-package-index.d.ts +1 -1
  91. package/dist/lifecycle/installed-package-index.js +4 -4
  92. package/dist/lifecycle/layout.d.ts +21 -25
  93. package/dist/lifecycle/layout.js +79 -0
  94. package/dist/lifecycle/manifest.d.ts +10 -7
  95. package/dist/lifecycle/manifest.js +20 -15
  96. package/dist/lifecycle/mcp-provisioning.d.ts +1 -1
  97. package/dist/lifecycle/metadata.d.ts +6 -3
  98. package/dist/lifecycle/metadata.js +2 -1
  99. package/dist/lifecycle/package-paths.js +59 -56
  100. package/dist/lifecycle/persistent-state.d.ts +10 -1
  101. package/dist/lifecycle/persistent-state.js +4 -2
  102. package/dist/lifecycle/ports.d.ts +18 -6
  103. package/dist/lifecycle/resolve-agent-plugin-refs.d.ts +2 -14
  104. package/dist/lifecycle/retire-bundled.d.ts +1 -1
  105. package/dist/lifecycle/search-projection.d.ts +3 -1
  106. package/dist/lifecycle/search-projection.js +7 -3
  107. package/dist/lifecycle/search.d.ts +1 -0
  108. package/dist/lifecycle/seed-bundled.d.ts +86 -1
  109. package/dist/lifecycle/seed-bundled.js +48 -84
  110. package/dist/lifecycle/set-enabled.d.ts +1 -13
  111. package/dist/lifecycle/set-enabled.js +11 -7
  112. package/dist/lifecycle/trusted-plugin-files.d.ts +1 -1
  113. package/dist/lifecycle/trusted-plugin-files.js +33 -30
  114. package/dist/lifecycle/types.d.ts +13 -34
  115. package/dist/lifecycle/uninstall.d.ts +1 -33
  116. package/dist/lifecycle/update-store.d.ts +0 -7
  117. package/dist/lifecycle/update-store.js +1 -8
  118. package/dist/lifecycle/update.d.ts +1 -1
  119. package/dist/lifecycle/update.js +60 -10
  120. package/dist/lifecycle/yauzl-archive-reader.d.ts +7 -2
  121. package/dist/lifecycle/yauzl-archive-reader.js +11 -6
  122. package/dist/manifest.d.ts +4 -8
  123. package/dist/react/AgentPluginDetailsModal.d.ts +187 -0
  124. package/dist/react/AgentPluginDetailsModal.js +29 -0
  125. package/dist/react/agent-plugin-install-port.d.ts +24 -0
  126. package/dist/react/agent-plugin-install-port.js +15 -0
  127. package/dist/react/installed-skills-composer-source.d.ts +60 -0
  128. package/dist/react/installed-skills-composer-source.js +111 -0
  129. package/dist/react/use-agent-plugins.hooks.d.ts +211 -0
  130. package/dist/react/use-agent-plugins.hooks.js +128 -0
  131. package/dist/site/activation-effects.d.ts +17 -0
  132. package/dist/site/activation-effects.js +31 -0
  133. package/dist/site/admin-surfaces/capabilities.d.ts +29 -0
  134. package/dist/site/admin-surfaces/capabilities.js +30 -0
  135. package/dist/site/admin-surfaces/delivery-bindings.d.ts +81 -0
  136. package/dist/site/admin-surfaces/delivery-bindings.js +161 -0
  137. package/dist/site/admin-surfaces/forms.d.ts +28 -0
  138. package/dist/site/admin-surfaces/forms.js +29 -0
  139. package/dist/site/admin-surfaces/handlers.d.ts +61 -0
  140. package/dist/site/admin-surfaces/handlers.js +35 -0
  141. package/dist/site/admin-surfaces/public-config.d.ts +12 -0
  142. package/dist/site/admin-surfaces/public-config.js +28 -0
  143. package/dist/site/analytics-provider-registry.d.ts +87 -0
  144. package/dist/site/analytics-provider-registry.js +87 -0
  145. package/dist/site/archive-reader-abi.d.ts +35 -0
  146. package/dist/site/archive-reader-abi.js +25 -0
  147. package/dist/site/auth-schemes.d.ts +110 -0
  148. package/dist/site/auth-schemes.js +119 -0
  149. package/dist/site/automatic-agent-plugins.d.ts +200 -0
  150. package/dist/site/automatic-agent-plugins.js +277 -0
  151. package/dist/site/bundled-contribution-sources.d.ts +24 -0
  152. package/dist/site/bundled-contribution-sources.js +17 -0
  153. package/dist/site/bundled-id-upgrade.d.ts +115 -0
  154. package/dist/site/bundled-id-upgrade.js +169 -0
  155. package/dist/site/customize-tool.d.ts +39 -0
  156. package/dist/site/customize-tool.js +31 -0
  157. package/dist/site/deploy-split-activation.d.ts +28 -0
  158. package/dist/site/deploy-split-activation.js +21 -0
  159. package/dist/site/exports/diagnostics.d.ts +37 -0
  160. package/dist/site/exports/diagnostics.js +55 -0
  161. package/dist/site/exports/runtime.d.ts +54 -0
  162. package/dist/site/exports/runtime.js +196 -0
  163. package/dist/site/exports/source.d.ts +42 -0
  164. package/dist/site/exports/source.js +58 -0
  165. package/dist/site/host-plugin-guidance.d.ts +137 -0
  166. package/dist/site/host-plugin-guidance.js +223 -0
  167. package/dist/site/host-signals.d.ts +78 -0
  168. package/dist/site/host-signals.js +83 -0
  169. package/dist/site/install-tool.d.ts +69 -0
  170. package/dist/site/install-tool.js +192 -0
  171. package/dist/site/install-upload.d.ts +175 -0
  172. package/dist/site/install-upload.js +324 -0
  173. package/dist/site/memory-i18n.d.ts +5 -0
  174. package/dist/site/memory-i18n.js +176 -0
  175. package/dist/site/memory.d.ts +80 -0
  176. package/dist/site/memory.js +83 -0
  177. package/dist/site/plugin-memory.d.ts +80 -0
  178. package/dist/site/plugin-memory.js +86 -0
  179. package/dist/site/provider-plugin-link.d.ts +112 -0
  180. package/dist/site/provider-plugin-link.js +100 -0
  181. package/dist/site/retired-plugin-tool-aliases.d.ts +40 -0
  182. package/dist/site/retired-plugin-tool-aliases.js +41 -0
  183. package/dist/site/service-ports.d.ts +108 -0
  184. package/dist/site/service-ports.js +2 -0
  185. package/dist/site/set-enabled.d.ts +80 -0
  186. package/dist/site/set-enabled.js +42 -0
  187. package/dist/site/soon-lock.d.ts +83 -0
  188. package/dist/site/soon-lock.js +78 -0
  189. package/dist/site/supersession.d.ts +61 -0
  190. package/dist/site/supersession.js +122 -0
  191. package/dist/site/uninstall-tool.d.ts +136 -0
  192. package/dist/site/uninstall-tool.js +203 -0
  193. package/dist/site/update-effects.d.ts +47 -0
  194. package/dist/site/update-effects.js +49 -0
  195. package/ffmpeg-transcode/plugin.json +16 -0
  196. package/github/source-control/backup-push.mjs +66 -46
  197. package/github/source-control/commit-site.mjs +124 -67
  198. package/github/source-control/write-files.mjs +86 -53
  199. package/github-pages/targets/github-pages.mjs +294 -233
  200. package/google-workspace/form-destinations/mapping.mjs +15 -7
  201. package/google-workspace/form-destinations/sheets.mjs +4 -2
  202. package/google-workspace/plugin.json +1 -0
  203. package/kuinetic/CHANGELOG.md +4 -0
  204. package/kuinetic/plugin.json +4 -1
  205. package/kuinetic/skills/kuinetic/SKILL.md +1 -2
  206. package/package.json +297 -20
  207. package/persistent-state.d.ts +4 -1
  208. package/resend/adapters/resend.mjs +5 -2
  209. package/resend/plugin.json +1 -1
  210. package/s3-compatible/jini-deploy-targets.json +1 -1
  211. package/s3-compatible/object-stores/s3-compatible.mjs +27 -4
  212. package/s3-compatible/targets/s3-compatible.mjs +3 -3
  213. package/site-import/plugin.json +3 -3
  214. package/site-import/skills/site-import/SKILL.md +62 -54
  215. package/site-import/skills/site-import/references/content-mapping.md +26 -20
  216. package/slide-design/plugin.json +1 -1
  217. package/slide-design/skills/slide-design/SKILL.md +8 -2
  218. package/ui-ux-design/CHANGELOG.md +6 -0
  219. package/ui-ux-design/plugin.json +1 -1
  220. package/ui-ux-design/skills/gstack-design/SKILL.md +6 -6
  221. package/ui-ux-design/skills/ui-ux-design/SKILL.md +3 -2
  222. package/ui-ux-design/skills/ui-ux-design/references/chrome-mobile-test-matrix.md +14 -12
  223. package/ui-ux-design/skills/ui-ux-design/references/ui-loop.md +16 -17
  224. package/vercel/NOTES.md +2 -1
  225. package/vercel/object-stores/vercel-blob.mjs +3 -4
  226. package/vercel/targets/vercel.mjs +425 -351
  227. package/core/commerce-server.d.ts +0 -2
  228. package/core/commerce-server.mjs +0 -2
  229. package/dist/admin-surfaces/connections/ports.d.ts +0 -110
  230. package/dist/admin-surfaces/connections/ports.js +0 -2
  231. /package/dist/{lifecycle → core}/install-errors.d.ts +0 -0
  232. /package/dist/{lifecycle → core}/install-errors.js +0 -0
  233. /package/dist/{lifecycle → core}/update-plan.js +0 -0
@@ -0,0 +1,187 @@
1
+ import type { ComponentType, ReactNode, RefObject } from "react";
2
+ import type { Translate } from "@jini-ai/core/text";
3
+ import type { AdminSurfaceBootstrap, AdminSurfaceActionOutcome } from "@jini-ai/core/contracts/site/agent-plugins-admin-surfaces";
4
+ import type { InspectedAgentPlugin } from "./use-agent-plugins.hooks.js";
5
+ type AgentPluginSurfaceSummary = NonNullable<InspectedAgentPlugin["surfaces"]>[number];
6
+ interface AgentPluginSurfacesPort {
7
+ list(required: {
8
+ readonly pluginId: string;
9
+ }, optional?: Record<string, never>): Promise<{
10
+ readonly surfaces: readonly AgentPluginSurfaceSummary[];
11
+ }>;
12
+ bootstrap(required: {
13
+ readonly pluginId: string;
14
+ readonly surfaceId: string;
15
+ }, optional?: Record<string, never>): Promise<AdminSurfaceBootstrap>;
16
+ action(required: {
17
+ readonly pluginId: string;
18
+ readonly surfaceId: string;
19
+ readonly action: string;
20
+ readonly payload: unknown;
21
+ }, optional?: Record<string, never>): Promise<AdminSurfaceActionOutcome & {
22
+ readonly hostSignIns?: readonly {
23
+ readonly authorizationUrl: string;
24
+ readonly expiresAt: string;
25
+ }[];
26
+ }>;
27
+ }
28
+ export interface AgentPluginDetailsModalProps {
29
+ readonly useAgentPluginMemoryHook: (required: {
30
+ pluginId: string;
31
+ }, optional?: Record<string, never>) => {
32
+ t: Translate;
33
+ listing: {
34
+ pluginId: string;
35
+ learned: {
36
+ relativePath: string;
37
+ text: string;
38
+ }[];
39
+ notes: {
40
+ relativePath: string;
41
+ text: string;
42
+ }[];
43
+ limits: {
44
+ learned: number;
45
+ notes: number;
46
+ files: number;
47
+ };
48
+ } | null;
49
+ entryPath: string;
50
+ text: string;
51
+ renamePath: (required: {
52
+ entryPath: string;
53
+ }, optional?: {}) => void;
54
+ openNote: (required: {
55
+ entryPath: string;
56
+ }, optional?: {}) => void;
57
+ setText: (required: {
58
+ text: string;
59
+ }, optional?: {}) => void;
60
+ save: () => Promise<void>;
61
+ saving: boolean;
62
+ status: string | null;
63
+ editorDisabled: boolean;
64
+ pathInputId: string;
65
+ notesInputId: string;
66
+ noteFilesHeadingId: string;
67
+ learnedHeadingId: string;
68
+ notesEmptyMessage: string | null;
69
+ learnedEmptyMessage: string | null;
70
+ };
71
+ readonly useAgentPluginDetailsViewHook: (required: {
72
+ displayName: string;
73
+ t: Translate;
74
+ memoryT: Translate;
75
+ }, optional?: {}) => {
76
+ onView: (viewId: string) => void;
77
+ title: string;
78
+ };
79
+ readonly useAgentPluginSurfacesHook: (required: {
80
+ readonly pluginId: string;
81
+ readonly port: AgentPluginSurfacesPort;
82
+ }, optional?: Record<string, never>) => readonly AgentPluginSurfaceSummary[];
83
+ readonly useHostAdminSurfaceFrame: (required: {
84
+ readonly pluginId: string;
85
+ readonly surface: AgentPluginSurfaceSummary;
86
+ readonly port: AgentPluginSurfacesPort;
87
+ }, optional?: Record<string, never>) => {
88
+ readonly attributes: {
89
+ readonly src: string;
90
+ readonly title: string;
91
+ readonly sandbox: string;
92
+ readonly referrerPolicy: "no-referrer";
93
+ };
94
+ readonly frameRef: RefObject<HTMLIFrameElement | null>;
95
+ readonly status: "open" | "navigated" | "failed";
96
+ readonly onLoad: () => void;
97
+ readonly height: number | null;
98
+ readonly signIns: readonly {
99
+ readonly authorizationUrl: string;
100
+ readonly expiresAt: string;
101
+ }[];
102
+ readonly onSignInOpened: (link: {
103
+ readonly authorizationUrl: string;
104
+ readonly expiresAt: string;
105
+ }) => void;
106
+ };
107
+ readonly plugin: InspectedAgentPlugin;
108
+ /** `AgentPlugins`' bound translator — the modal's title copy. */
109
+ readonly t: Translate;
110
+ readonly onClose: () => void;
111
+ /** Injectable seam for the listing. Defaults to the real {@link useWiredAgentPluginDetailsModal};
112
+ * a test can pass a fake to exercise the modal's rendering with a fixed file list/selection. */
113
+ readonly useDetails: (required: {
114
+ pluginId: string;
115
+ }, optional?: Record<string, never>) => {
116
+ files: readonly {
117
+ readonly relativePath: string;
118
+ readonly content: string | null;
119
+ readonly unavailableReason?: string | null;
120
+ }[];
121
+ selectedFile: {
122
+ readonly relativePath: string;
123
+ readonly content: string | null;
124
+ readonly unavailableReason?: string | null;
125
+ } | null;
126
+ selectFile: (relativePath: string) => void;
127
+ status?: {
128
+ readonly text: string;
129
+ readonly role: "status" | "alert";
130
+ } | null;
131
+ listNotice?: string | null;
132
+ };
133
+ /** Plugin-owned admin surfaces (2026-10-20); a test passes a typed fake. */
134
+ readonly surfacesPort: AgentPluginSurfacesPort;
135
+ readonly kit: {
136
+ AgentPluginMemoryPanel: ComponentType<{
137
+ controller: ReturnType<AgentPluginDetailsModalProps["useAgentPluginMemoryHook"]>;
138
+ }>;
139
+ AgentPluginMaturity: ComponentType<{
140
+ maturity: InspectedAgentPlugin["maturity"];
141
+ t: Translate;
142
+ }>;
143
+ AgentPluginSurfaceFrame: ComponentType<{
144
+ pluginId: string;
145
+ surface: AgentPluginSurfaceSummary;
146
+ port: AgentPluginSurfacesPort;
147
+ t: Translate;
148
+ useAdminSurfaceFrame: AgentPluginDetailsModalProps["useHostAdminSurfaceFrame"];
149
+ }>;
150
+ PackageFilesModal: ComponentType<{
151
+ title: string;
152
+ headerExtras: ReactNode;
153
+ onView: (viewId: string) => void;
154
+ initialViewId: string | undefined;
155
+ files: ReturnType<AgentPluginDetailsModalProps["useDetails"]>["files"];
156
+ selectedFile: ReturnType<AgentPluginDetailsModalProps["useDetails"]>["selectedFile"];
157
+ onSelectFile: (relativePath: string) => void;
158
+ status: {
159
+ readonly text: string;
160
+ readonly role: "status" | "alert";
161
+ } | null;
162
+ listNotice: string | null;
163
+ handlePrefix: string;
164
+ t: Translate;
165
+ additionalViews: readonly {
166
+ id: string;
167
+ label: string;
168
+ custom: ReactNode;
169
+ }[];
170
+ onClose: () => void;
171
+ }>;
172
+ };
173
+ }
174
+ /**
175
+ * Inspection of one installed Agent Plugin's package files and editable project memory.
176
+ *
177
+ * Renders through the shared `PackageFilesModal` (2026-09-13), the same component the Plugins
178
+ * screen's viewer uses. Since 2026-09-13 its content comes from `AGENT_PLUGIN_FILES` — the server
179
+ * resolves the id against installed packages and reads inside that package root only, never
180
+ * following a symlink — rather than a compile-time catalog that missed plugins nobody had listed.
181
+ *
182
+ * Since 2026-10-20 each admin surface the plugin contributes (for example its "Manage connection"
183
+ * screen) is one more view after Memory, titled by the plugin and rendered sandboxed.
184
+ */
185
+ export declare function AgentPluginDetailsModal({ plugin, t, onClose, useDetails, useAgentPluginMemoryHook, useAgentPluginDetailsViewHook, useAgentPluginSurfacesHook, surfacesPort, useHostAdminSurfaceFrame, kit: { AgentPluginMemoryPanel, AgentPluginMaturity, PackageFilesModal, AgentPluginSurfaceFrame } }: AgentPluginDetailsModalProps, _optional?: {}): import("react").JSX.Element;
186
+ export {};
187
+ //# sourceMappingURL=AgentPluginDetailsModal.d.ts.map
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Inspection of one installed Agent Plugin's package files and editable project memory.
4
+ *
5
+ * Renders through the shared `PackageFilesModal` (2026-09-13), the same component the Plugins
6
+ * screen's viewer uses. Since 2026-09-13 its content comes from `AGENT_PLUGIN_FILES` — the server
7
+ * resolves the id against installed packages and reads inside that package root only, never
8
+ * following a symlink — rather than a compile-time catalog that missed plugins nobody had listed.
9
+ *
10
+ * Since 2026-10-20 each admin surface the plugin contributes (for example its "Manage connection"
11
+ * screen) is one more view after Memory, titled by the plugin and rendered sandboxed.
12
+ */
13
+ export function AgentPluginDetailsModal({ plugin, t, onClose, useDetails, useAgentPluginMemoryHook, useAgentPluginDetailsViewHook, useAgentPluginSurfacesHook, surfacesPort, useHostAdminSurfaceFrame, kit: { AgentPluginMemoryPanel, AgentPluginMaturity, PackageFilesModal, AgentPluginSurfaceFrame } }, _optional = {}) {
14
+ const memory = useAgentPluginMemoryHook({ pluginId: plugin.id });
15
+ const view = useAgentPluginDetailsViewHook({ displayName: plugin.displayName, t, memoryT: memory.t });
16
+ const { files, selectedFile, selectFile, status = null, listNotice = null } = useDetails({ pluginId: plugin.id });
17
+ const listed = useAgentPluginSurfacesHook({ pluginId: plugin.id, port: surfacesPort });
18
+ // Opened from "Manage": the row already listed the screens, so the first render has their tabs
19
+ // (the shell picks its starting view once, at mount).
20
+ const surfaces = listed.length > 0 ? listed : plugin.surfaces ?? [];
21
+ const firstSurface = plugin.surfaces?.[0];
22
+ const surfaceViews = surfaces.map((surface) => ({
23
+ id: `plugin-surface-${surface.id}`,
24
+ label: surface.title,
25
+ custom: _jsx(AgentPluginSurfaceFrame, { pluginId: plugin.id, surface: surface, port: surfacesPort, t: t, useAdminSurfaceFrame: useHostAdminSurfaceFrame }, surface.id),
26
+ }));
27
+ return (_jsx(PackageFilesModal, { title: view.title, headerExtras: _jsx(AgentPluginMaturity, { maturity: plugin.maturity, t: t }), onView: view.onView, initialViewId: firstSurface ? `plugin-surface-${firstSurface.id}` : undefined, files: files, selectedFile: selectedFile, onSelectFile: selectFile, status: status, listNotice: listNotice, handlePrefix: "agent-plugin-file", t: t, additionalViews: [{ id: "plugin-memory", label: memory.t("Memory"), custom: _jsx(AgentPluginMemoryPanel, { controller: memory }) }, ...surfaceViews], onClose: onClose }));
28
+ }
29
+ //# sourceMappingURL=AgentPluginDetailsModal.js.map
@@ -0,0 +1,24 @@
1
+ /** The live upload, through the shared authenticated request seam (session expiry, API prefix). */
2
+ export declare function createAgentPluginInstallPort<Result>({ request, workspaceId, digest: digestBytes }: {
3
+ request: <T>(required: {
4
+ path: string;
5
+ method: string;
6
+ body: Blob;
7
+ }) => Promise<T>;
8
+ workspaceId: string;
9
+ digest: (algorithm: "SHA-256", data: ArrayBuffer) => Promise<ArrayBuffer>;
10
+ }, _optional?: Record<string, never>): {
11
+ installZip: ({ file, sha256, replace, update }: {
12
+ file: File;
13
+ sha256: string;
14
+ replace?: boolean;
15
+ update?: {
16
+ pluginId: string;
17
+ expectedOldDigest: string;
18
+ };
19
+ }, _optional?: Record<string, never>) => Promise<Result>;
20
+ sha256: ({ file }: {
21
+ file: File;
22
+ }, _optional?: Record<string, never>) => Promise<string>;
23
+ };
24
+ //# sourceMappingURL=agent-plugin-install-port.d.ts.map
@@ -0,0 +1,15 @@
1
+ /** The live upload, through the shared authenticated request seam (session expiry, API prefix). */
2
+ export function createAgentPluginInstallPort({ request, workspaceId, digest: digestBytes }, _optional = {}) {
3
+ return {
4
+ installZip: ({ file, sha256, replace = false, update }, _optional = {}) => request({
5
+ path: `/workspaces/${workspaceId}/agent-plugins/${update ? encodeURIComponent(update.pluginId) + "/update/zip" : "install/zip"}?${new URLSearchParams({ expectedSha256: sha256, replace: String(replace), ...(update ? { expectedOldDigest: update.expectedOldDigest } : {}) })}`,
6
+ method: "POST",
7
+ body: file.slice(0, file.size, "application/zip"),
8
+ }),
9
+ sha256: async ({ file }, _optional = {}) => {
10
+ const digest = await digestBytes("SHA-256", await file.arrayBuffer());
11
+ return Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("");
12
+ },
13
+ };
14
+ }
15
+ //# sourceMappingURL=agent-plugin-install-port.js.map
@@ -0,0 +1,60 @@
1
+ interface ComposerCapability {
2
+ readonly groupId: string;
3
+ readonly groupLabel: string;
4
+ readonly item: {
5
+ id: string;
6
+ label: string;
7
+ description: string;
8
+ kind: string;
9
+ keywords: readonly string[];
10
+ insertText: string;
11
+ };
12
+ readonly resolve: (required: {
13
+ argument: string | null | undefined;
14
+ }, optional?: Record<string, never>) => {
15
+ readonly kind: "installed-skill";
16
+ readonly toolId: string;
17
+ };
18
+ }
19
+ interface ComposerCapabilitySource {
20
+ readonly id: string;
21
+ list(): Promise<readonly ComposerCapability[]>;
22
+ }
23
+ /**
24
+ * Builds a {@link ComposerCapabilitySource} backed by the installed-Skills route.
25
+ *
26
+ * Degrades to an empty list on ANY failure — non-2xx, network error, or a body that isn't the
27
+ * expected `{skills: [...]}` shape — rather than throwing. Load-bearing, not defensive polish
28
+ * (INV-001): `projectComposerCapabilities` awaits every source's `list()` through one
29
+ * `Promise.all`, so a single REJECTING source takes the WHOLE projection down with it, including
30
+ * the bundled catalog's always-available `/search` and `/mcp` rows. A workspace with zero
31
+ * installed skills, an unauthorized session, or a route that 500s on a duplicate-frontmatter-name
32
+ * conflict must cost this one capability — never the rest of the composer.
33
+ *
34
+ * @param _input - No required inputs; defaults preserve the existing no-argument callers.
35
+ * @param options.request - Authenticated request port, replaceable for direct failure-path tests.
36
+ * @returns A source whose list uses its cache; reload conditionally revalidates. Force supersedes
37
+ * pending work but still sends the validator. Failures resolve to the last good list (else empty); aborts are silent.
38
+ * @example createInstalledSkillsComposerCapabilitySource().list();
39
+ * @complexity Cached reads O(1); revalidation O(n) time/space for n installed skills, one request.
40
+ */
41
+ export declare function createInstalledSkillsComposerCapabilitySource({ request, path, isNotModified, reportFailure }: {
42
+ request: <T>(required: {
43
+ path: string;
44
+ method: string;
45
+ }, optional: {
46
+ headers: Record<string, string>;
47
+ onOk: (required: {
48
+ response: Pick<Response, "headers">;
49
+ }, optional?: Record<string, never>) => void;
50
+ }) => Promise<T>;
51
+ path: string;
52
+ isNotModified: (error: unknown) => boolean;
53
+ reportFailure: (message: string, error: unknown) => void;
54
+ }, _optional?: Record<string, never>): ComposerCapabilitySource & {
55
+ reload: (_input?: Record<string, never>, options?: {
56
+ force?: boolean;
57
+ }) => Promise<readonly ComposerCapability[]>;
58
+ };
59
+ export {};
60
+ //# sourceMappingURL=installed-skills-composer-source.d.ts.map
@@ -0,0 +1,111 @@
1
+ import { isAbortError } from '@jini-ai/core/text';
2
+ const INSTALLED_SKILLS_GROUP_ID = "installed-skills";
3
+ const INSTALLED_SKILLS_GROUP_LABEL = "Installed Skills";
4
+ /** See this file's own module doc: the one prefix guaranteed not to collide with the bundled
5
+ * catalog's `skill:` entries. */
6
+ const INSTALLED_SKILL_ID_PREFIX = "installed-skill:";
7
+ function skillsSnapshotFromBody({ body, cached, etag }, _options = {}) {
8
+ if (!Array.isArray(body.skills))
9
+ throw new TypeError("Installed skills response must contain a skills array");
10
+ if (cached?.etag && etag === cached.etag)
11
+ return cached;
12
+ return { etag, capabilities: body.skills.filter(isInstalledSkillSummary).filter(s => s.enabled !== false).map(toCapability) };
13
+ }
14
+ /** Reuse authenticated transport and translate only its 304 error into the exact cached snapshot.
15
+ * Invalid bodies and failures throw, so they never become successful cache entries.
16
+ * @complexity O(n) time/space for n summaries; one request, no guidance bodies cached.
17
+ */
18
+ async function readSkillsSnapshot({ request, path, isNotModified, cached }, _options = {}) {
19
+ let etag;
20
+ try {
21
+ const body = await request({ path, method: "GET" }, {
22
+ headers: cached?.etag ? { "If-None-Match": cached.etag } : {},
23
+ onOk: ({ response }, _optional = {}) => { etag = response.headers?.get("ETag") ?? undefined; },
24
+ });
25
+ return skillsSnapshotFromBody({ body, cached, etag });
26
+ }
27
+ catch (error) {
28
+ if (isNotModified(error) && cached)
29
+ return cached;
30
+ throw error;
31
+ }
32
+ }
33
+ function isInstalledSkillSummary(value) {
34
+ if (typeof value !== "object" || value === null)
35
+ return false;
36
+ const summary = value;
37
+ return typeof summary.toolId === "string" && typeof summary.name === "string" && typeof summary.description === "string";
38
+ }
39
+ /**
40
+ * Turns one wire summary into a discoverable, actionable composer row.
41
+ *
42
+ * `insertText: ""`, not omitted: an absent `insertText` on the slash-trigger path falls back to
43
+ * `label`, typing the skill's bare name into the draft with no instruction to act on it — the
44
+ * exact trap `composer-capabilities.ts` documents fixing on 2026-08-21. The `resolve` binding
45
+ * below loads the agent guidance behind the chip.
46
+ */
47
+ function toCapability(summary) {
48
+ return {
49
+ groupId: INSTALLED_SKILLS_GROUP_ID,
50
+ groupLabel: INSTALLED_SKILLS_GROUP_LABEL,
51
+ item: {
52
+ id: `${INSTALLED_SKILL_ID_PREFIX}${summary.toolId}`,
53
+ label: summary.name,
54
+ description: summary.description,
55
+ kind: "skill",
56
+ keywords: ["skill", summary.name],
57
+ insertText: "",
58
+ },
59
+ resolve: () => ({ kind: "installed-skill", toolId: summary.toolId }),
60
+ };
61
+ }
62
+ /**
63
+ * Builds a {@link ComposerCapabilitySource} backed by the installed-Skills route.
64
+ *
65
+ * Degrades to an empty list on ANY failure — non-2xx, network error, or a body that isn't the
66
+ * expected `{skills: [...]}` shape — rather than throwing. Load-bearing, not defensive polish
67
+ * (INV-001): `projectComposerCapabilities` awaits every source's `list()` through one
68
+ * `Promise.all`, so a single REJECTING source takes the WHOLE projection down with it, including
69
+ * the bundled catalog's always-available `/search` and `/mcp` rows. A workspace with zero
70
+ * installed skills, an unauthorized session, or a route that 500s on a duplicate-frontmatter-name
71
+ * conflict must cost this one capability — never the rest of the composer.
72
+ *
73
+ * @param _input - No required inputs; defaults preserve the existing no-argument callers.
74
+ * @param options.request - Authenticated request port, replaceable for direct failure-path tests.
75
+ * @returns A source whose list uses its cache; reload conditionally revalidates. Force supersedes
76
+ * pending work but still sends the validator. Failures resolve to the last good list (else empty); aborts are silent.
77
+ * @example createInstalledSkillsComposerCapabilitySource().list();
78
+ * @complexity Cached reads O(1); revalidation O(n) time/space for n installed skills, one request.
79
+ */
80
+ export function createInstalledSkillsComposerCapabilitySource({ request, path, isNotModified, reportFailure }, _optional = {}) {
81
+ let cached;
82
+ let pending;
83
+ let generation = 0;
84
+ /** Revalidate once per pending request; force prevents pre-event work from publishing a cache. */
85
+ const reload = (_required = {}, { force = false } = {}) => {
86
+ if (pending && !force)
87
+ return pending;
88
+ generation += 1;
89
+ const current = generation;
90
+ pending = readSkillsSnapshot({ request, path, isNotModified, cached }).then(snapshot => {
91
+ if (current === generation)
92
+ cached = snapshot;
93
+ return snapshot.capabilities;
94
+ }).catch(error => {
95
+ // Leaving the page cancels the shared transport; it does not mean skill enumeration failed.
96
+ // Every failure costs this capability alone: Promise.all must retain the bundled catalog.
97
+ // A failed 60 s revalidation keeps the last good list rather than blanking typed skills.
98
+ if (!isAbortError({ error }))
99
+ reportFailure("[installed-skills-composer-source] installed-skills enumeration failed; falling back to the bundled catalog only", error);
100
+ return cached?.capabilities ?? [];
101
+ }).finally(() => { if (current === generation)
102
+ pending = undefined; });
103
+ return pending;
104
+ };
105
+ return {
106
+ id: "installed-skills",
107
+ list: () => cached ? Promise.resolve(cached.capabilities) : reload(),
108
+ reload,
109
+ };
110
+ }
111
+ //# sourceMappingURL=installed-skills-composer-source.js.map
@@ -0,0 +1,211 @@
1
+ import type { AdminHttpError } from "@jini-ai/core/admin-runtime";
2
+ import type { AdminSurfaceAction } from "@jini-ai/core/contracts/site/agent-plugins-admin-surfaces";
3
+ import type { FetchQueryAdapter } from "@jini-ai/core/fetch";
4
+ import { type Translate } from '@jini-ai/core/text';
5
+ /**
6
+ * @file State for the Agent Plugins screen, so `AgentPlugins.tsx` is only markup — same split as
7
+ * this directory's own `use-plugins.hooks.ts` (`Plugins.tsx`'s hook).
8
+ *
9
+ * REWRITTEN 2026-09-09: this hook used to return the static, checked-in `BUNDLED_AGENT_PLUGINS`
10
+ * constant with no I/O at all (the module's own prior header said so explicitly: "a port would be
11
+ * ceremony with nothing to inject"). That premise is gone — `AGENT_PLUGINS_LIST`
12
+ * (`server/inbound/admin-http/routes/agent-plugins/list.ts`) now exists, so this hook has a real
13
+ * host boundary to inject, and gets the same `port` (`AgentPluginsPort`) / `useX(dependencies)` /
14
+ * `useWiredX()` split `use-plugins.hooks.ts` already uses for this feature's sibling screen.
15
+ *
16
+ * EXTENDED 2026-09-09 (visual redesign): `onToggleEnabled` wires the row's enable/disable switch to
17
+ * `AGENT_PLUGIN_SET_ENABLED`. That is a real activation write — `resolveAgentPluginRefs()` refuses a
18
+ * run pinning a disabled plugin — so the switch's rendered position must always be server truth,
19
+ * never an optimistic guess. See {@link useAgentPlugins}'s own `@tradeoffs`.
20
+ *
21
+ * `describeApiError` here is the shared default from `lib/api.ts`, not this feature's
22
+ * `rules.ts` override — that override's `PLUGIN_NOT_FOUND`/`PLUGIN_INVALID`/`PLUGIN_INCOMPATIBLE`
23
+ * codes belong to the `.host-plugin` enable/disable route this screen does not call. This screen's
24
+ * own route answers `AGENT_PLUGIN_NOT_FOUND`/`VALIDATION_ERROR`, neither of which that override
25
+ * knows, so the shared default (which surfaces the server's own message) is the better fit.
26
+ *
27
+ * `t` (standing i18n rule, 2026-08-11): resolved from `useAdminLocale()` in `useWiredAgentPlugins`
28
+ * and returned as a bound `t`, rather than `AgentPlugins.tsx` calling `useAdminLocale()`/
29
+ * `translatePlugins` directly.
30
+ */
31
+ /**
32
+ * HTTP presentation projection; installation paths/digests never enter the browser.
33
+ * Restated from the plugin lifecycle's `InstalledAgentPlugin` (only the fields the screen reads) so admin owns its
34
+ * plugin-list port; `__tests__/installed-plugin-fit.typecheck.ts` fails to compile when the lifecycle's types drift.
35
+ */
36
+ interface AgentPluginSummary {
37
+ readonly pluginId: string;
38
+ readonly version: string | null;
39
+ readonly description: string | null;
40
+ readonly keywords: readonly string[];
41
+ readonly skills: readonly {
42
+ readonly name: string;
43
+ readonly summary: string;
44
+ }[];
45
+ readonly mcpServerIds: readonly string[];
46
+ readonly enabled: boolean;
47
+ }
48
+ /** One row of `GET .../agent-plugins` as the host's screen reads it: {@link AgentPluginSummary} plus the optional
49
+ * host-owned lifecycle/account fields. `version`/`description` are nullable, not optional-absent: the wire always
50
+ * sends the key, `null` when the package's own manifest carries none. Agent Plugins (agent-plugins.org packages) are
51
+ * a DIFFERENT family from the site/runtime plugins `AdminPlugin` describes. */
52
+ export interface AgentPluginListRow extends AgentPluginSummary {
53
+ /** Account state is independent of activation; absent for plugins with no sign-in. */
54
+ connectionStatus?: "connected" | "disconnected" | "pending" | "needs_reauth";
55
+ /** Host maturity; absent means normal. */
56
+ maturity?: "untested" | "soon";
57
+ /** The provider plugin (Plugins screen) whose switch this plugin follows; it has no switch of its own. */
58
+ providerPlugin?: string;
59
+ provides?: string[];
60
+ origin?: "bundled" | "operator-installed";
61
+ hostOk?: boolean;
62
+ missingRequires?: string[];
63
+ requiredBy?: string[];
64
+ archiveDigest?: string;
65
+ /** `plugin.json`'s `extensions.jini.displayName`; `null` (or absent, from a server predating the
66
+ * field) means title-case `pluginId` instead. */
67
+ displayName?: string | null;
68
+ /** `plugin.json`'s `extensions.jini.summary` — the plain-language explainer the row shows in place
69
+ * of `description` (which is written for the assistant); `null`/absent means show `description`. */
70
+ summary?: string | null;
71
+ keywords: string[];
72
+ skills: Array<{
73
+ name: string;
74
+ summary: string;
75
+ }>;
76
+ mcpServerIds: string[];
77
+ }
78
+ /** The minimal shape `AgentPluginDetailsModal` actually reads (`plugin.id`/`plugin.displayName`) —
79
+ * see that component's own narrowed prop type. Kept here, not re-exported from the deleted
80
+ * `agent-plugin-catalog.ts`, since nothing about it is bundle-specific anymore: any installed
81
+ * plugin's id plus a human-readable label is enough to open the inspector. */
82
+ export interface InspectedAgentPlugin {
83
+ readonly maturity?: AgentPluginListRow["maturity"];
84
+ readonly id: string;
85
+ readonly displayName: string;
86
+ /** Set by the row's "Manage" button: the screens it already listed, so the modal opens on the first. */
87
+ readonly surfaces?: readonly {
88
+ readonly id: string;
89
+ readonly title: string;
90
+ readonly src: string;
91
+ readonly actions: readonly AdminSurfaceAction[];
92
+ readonly linkOrigins?: readonly string[];
93
+ }[];
94
+ }
95
+ export interface AgentPluginsDependencies {
96
+ useFetchQuery: FetchQueryAdapter["useFetchQuery"];
97
+ useFetchMutation: FetchQueryAdapter["useFetchMutation"];
98
+ useCachedLoader: FetchQueryAdapter["useCachedLoader"];
99
+ useInvalidate: FetchQueryAdapter["useInvalidate"];
100
+ useContentRefreshSubscription: (required: {
101
+ resource: string;
102
+ onRefresh: () => void;
103
+ }, optional?: {}) => void;
104
+ resource: string;
105
+ toggleRefusalKeys: Readonly<Record<string, string>>;
106
+ translatePlugins: (required: {
107
+ locale: string;
108
+ key: string;
109
+ }) => string;
110
+ describeApiError: (required: {
111
+ e: unknown;
112
+ fallback: string;
113
+ }) => string;
114
+ isApiError: (error: unknown) => error is AdminHttpError;
115
+ port: {
116
+ listAgentPlugins(): Promise<{
117
+ agentPlugins: AgentPluginListRow[];
118
+ }>;
119
+ setAgentPluginEnabled(required: {
120
+ pluginId: string;
121
+ input: {
122
+ enabled: boolean;
123
+ };
124
+ }, optional?: Record<string, never>): Promise<{
125
+ agentPlugin: AgentPluginListRow;
126
+ }>;
127
+ getAgentPluginFiles(required: {
128
+ pluginId: string;
129
+ }, optional?: Record<string, never>): Promise<{
130
+ readonly pluginId: string;
131
+ readonly files: readonly {
132
+ readonly relativePath: string;
133
+ readonly sizeBytes: number;
134
+ readonly content: string | null;
135
+ readonly omitted: null | "binary" | "too-large" | "symlink" | "unreadable";
136
+ }[];
137
+ readonly truncated: boolean;
138
+ readonly limits: {
139
+ readonly maxFiles: number;
140
+ readonly maxEntries: number;
141
+ readonly maxFileBytes: number;
142
+ readonly maxTotalBytes: number;
143
+ };
144
+ }>;
145
+ };
146
+ locale: string;
147
+ t: Translate;
148
+ }
149
+ export interface AgentPluginsController {
150
+ /** `null` until the initial load settles — the caller renders a loading state. */
151
+ agentPlugins: AgentPluginListRow[] | null;
152
+ error: string | null;
153
+ /** The last failed toggle's message, or `null`. Separate from `error` (which means "the list
154
+ * itself could not load"), so a refused toggle does not blank the list the operator is reading. */
155
+ toggleError: string | null;
156
+ /** Plugin ids with an enable/disable request in flight right now. A `Set` rather than the sibling
157
+ * screen's single `rowSavingId` — see {@link useAgentPlugins}'s `@tradeoffs`. */
158
+ togglingIds: ReadonlySet<string>;
159
+ /** Flips one plugin's activation and replaces that row with the server's answer. */
160
+ onToggleEnabled: (plugin: AgentPluginListRow) => Promise<void>;
161
+ /** Adds (or replaces) the row the "Add a plugin" upload answered with, so no list re-fetch. */
162
+ onInstalled: (plugin: AgentPluginListRow) => void;
163
+ /** Plugin ids whose row detail panel (skills, MCP servers) is open. */
164
+ expandedIds: ReadonlySet<string>;
165
+ /** Opens or closes one row's detail panel. */
166
+ onToggleExpanded: (required: {
167
+ pluginId: string;
168
+ }, optional?: Record<string, never>) => void;
169
+ /** The plugin currently open in the read-only package inspector, or `null` when it's closed. */
170
+ inspectedPlugin: InspectedAgentPlugin | null;
171
+ /** Opens the inspector for `plugin`. */
172
+ inspectPlugin: (plugin: InspectedAgentPlugin) => void;
173
+ /** Closes the inspector. */
174
+ closeInspector: () => void;
175
+ /** Bound translator — `AgentPlugins.tsx`'s only source of UI copy; see this file's own header. */
176
+ t: Translate;
177
+ /** The raw resolved locale — exposed only because `AgentPlugins.tsx` passes it straight through
178
+ * to `I18nProvider`'s own `initialLocale`, not because anything here needs it beyond `t`. Same
179
+ * reasoning as `use-plugins.hooks.ts`'s own `locale` field. */
180
+ locale: string;
181
+ }
182
+ /**
183
+ * Loads the real installed Agent Plugins for this workspace on mount, and toggles one
184
+ * plugin's activation at a time per row.
185
+ *
186
+ * @complexity One GET on mount, one PATCH per toggle, and GETs after invalidation (toggle,
187
+ * install/uninstall, explicit reload or shared-query refresh). The PATCH response also replaces
188
+ * its row in the shared cache; successful mutations invalidate the list for reconciliation.
189
+ * @tradeoffs No optimistic flip. The switch shows only what the server has confirmed, so a refused
190
+ * or failed toggle can never leave the operator looking at an "on" switch for a plugin that will
191
+ * refuse the next run. The cost is one round-trip of visible latency, which the row's own
192
+ * in-flight state covers.
193
+ *
194
+ * Row replacement reads the shared cache through `loader.peek()` rather than closing over the
195
+ * array this render saw. Two rows toggled in quick succession settle independently, and a
196
+ * settlement holding a stale array would otherwise revert the other row's newer answer.
197
+ */
198
+ export declare function useAgentPlugins({ port, locale, t, useFetchQuery, useFetchMutation, useCachedLoader, useInvalidate, useContentRefreshSubscription, resource, toggleRefusalKeys, translatePlugins, describeApiError, isApiError }: AgentPluginsDependencies, _optional?: Record<string, never>): AgentPluginsController;
199
+ /**
200
+ * Binds the real `/api/.../agent-plugins` client and the real `useAdminLocale()` — see
201
+ * `agent-plugins-dependencies.hooks.ts`.
202
+ *
203
+ * The zero-argument-dependencies half of the `useX(dependencies)` / `useWiredX()` pair, so
204
+ * `AgentPlugins.tsx` composes this and a test composes {@link useAgentPlugins} with
205
+ * `createFakeAgentPluginsPort`.
206
+ */
207
+ export declare function useWiredAgentPlugins({ useAdminLocaleHook, ...deps }: Omit<AgentPluginsDependencies, "locale" | "t"> & {
208
+ useAdminLocaleHook: () => string;
209
+ }, _optional?: {}): AgentPluginsController;
210
+ export {};
211
+ //# sourceMappingURL=use-agent-plugins.hooks.d.ts.map