@burdenoff/microfe-vibecontrols 2026.1115.1 → 2026.1115.2
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Route of a plugin's detail page under the VibeControls base path
|
|
3
|
+
* (BOFF-4057). The detail route is a splat (`plugins/*`), so the scoped npm
|
|
4
|
+
* name keeps its slash: `/plugins/@vibecontrols/vibe-plugin-ai-claude`.
|
|
5
|
+
* Pass the result to `useVibeNavigate()`, which adds the base path.
|
|
6
|
+
*/
|
|
7
|
+
export declare function pluginDetailPath(packageName: string): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* PluginDetailPage — identity + per-agent install matrix for ONE plugin.
|
|
3
3
|
*
|
|
4
|
-
* Route (
|
|
4
|
+
* Route: `plugins/*` (the catalog cards link here via `pluginDetailPath`).
|
|
5
5
|
* The splat carries the raw package name, scope slash included, e.g.
|
|
6
|
-
* `/vibecontrols/plugins
|
|
6
|
+
* `/vibecontrols/plugins/@vibecontrols/vibe-plugin-tunnel-cloudflare`.
|
|
7
7
|
*
|
|
8
8
|
* Everything rendered here comes from something that exists:
|
|
9
9
|
* - identity/description → the local `PLUGIN_CATALOG` metadata, with the
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { PLUGIN_CATALOG as e } from "../constants/pluginCatalog.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
2
|
+
import { pluginDetailPath as t } from "../constants/pluginRoutes.js";
|
|
3
|
+
import { AgentSelector as n } from "../components/shared/AgentSelector.js";
|
|
4
|
+
import { QuotaExhaustedDialog as r } from "../components/shared/QuotaExhaustedDialog.js";
|
|
5
|
+
import { usePluginAvailability as i } from "../hooks/usePluginAvailability.js";
|
|
6
|
+
import { useVibeControlsStore as a } from "../store/vibeControlsStore.js";
|
|
7
|
+
import { BILLING_PLANS_ROUTE as o, useVibeNavigate as s } from "../providers/VibeControlsProvider.js";
|
|
8
|
+
import { useTr as c } from "../shared/hooks/useTr.js";
|
|
9
|
+
import { useCallback as l, useMemo as u, useState as d } from "react";
|
|
10
|
+
import { ArrowRight as f, Check as p, ChevronDown as m, Copy as h, Download as g, Loader2 as _, Plug as v, Search as y, X as b } from "lucide-react";
|
|
11
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
12
|
+
import { Card as w, IllustratedEmptyState as T, PageContainer as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { MotionPage as O } from "@burdenoff/fe-libs/shared/motion";
|
|
14
|
+
import { useAssistantPageControls as k } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
|
|
15
|
+
import { searchOf as A, tabsOf as j } from "@burdenoff/fe-libs/shared/assistant/appControls/pageAdapters";
|
|
15
16
|
// src/pages/PluginsCatalogPage.tsx
|
|
16
|
-
var
|
|
17
|
+
var M = [
|
|
17
18
|
{
|
|
18
19
|
value: "all",
|
|
19
20
|
labelKey: "vibecontrols.plugins.category.all",
|
|
@@ -90,122 +91,129 @@ var A = [
|
|
|
90
91
|
labelFallback: "Tools"
|
|
91
92
|
}
|
|
92
93
|
];
|
|
93
|
-
function
|
|
94
|
+
function N(e) {
|
|
94
95
|
return e.endsWith("-core") ? "Meta" : e.endsWith("-provider") ? "Provider" : "Plugin";
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function P(e) {
|
|
97
98
|
switch (e) {
|
|
98
99
|
case "Meta": return "bg-accent-purple-subtle text-text-primary border-accent-purple/30";
|
|
99
100
|
case "Provider": return "bg-status-info-bg text-status-info-text border-status-info-border";
|
|
100
101
|
default: return "bg-bg-sunken text-text-secondary border-border-default";
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
-
let [n, r] =
|
|
104
|
+
function F({ text: e, ariaLabel: t }) {
|
|
105
|
+
let [n, r] = d(!1), i = l(async () => {
|
|
105
106
|
try {
|
|
106
107
|
typeof navigator < "u" && navigator.clipboard && await navigator.clipboard.writeText(e), r(!0), window.setTimeout(() => r(!1), 1500);
|
|
107
108
|
} catch {
|
|
108
109
|
r(!1);
|
|
109
110
|
}
|
|
110
111
|
}, [e]);
|
|
111
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ S("button", {
|
|
112
113
|
type: "button",
|
|
113
114
|
onClick: i,
|
|
114
115
|
"aria-label": t,
|
|
115
116
|
className: "inline-flex items-center justify-center size-7 rounded border border-border-default bg-bg-surface text-text-secondary hover:text-text-primary hover:bg-bg-elevated transition-colors flex-shrink-0",
|
|
116
|
-
children:
|
|
117
|
+
children: S(n ? p : h, { className: "size-3.5" })
|
|
117
118
|
});
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
-
let
|
|
121
|
-
return /* @__PURE__ */
|
|
120
|
+
function I({ plugin: e, agentId: t, installed: n, installing: r, installBusy: i, onInstall: a, onOpenDetails: o }) {
|
|
121
|
+
let s = c(), l = N(e.category), u = `npm install ${e.packageName}`, h = `import plugin from '${e.packageName}';`, [v, y] = d(!1), [b, T] = d(!1);
|
|
122
|
+
return /* @__PURE__ */ S(w, {
|
|
122
123
|
className: "flex flex-col h-full p-0 bg-bg-surface border-border-default",
|
|
123
|
-
children: /* @__PURE__ */
|
|
124
|
+
children: /* @__PURE__ */ C("div", {
|
|
124
125
|
className: "flex flex-col gap-3 p-4",
|
|
125
126
|
children: [
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ C("div", {
|
|
127
128
|
className: "flex items-start justify-between gap-3",
|
|
128
|
-
children: [/* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ C("div", {
|
|
129
130
|
className: "min-w-0 flex-1",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
131
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
131
132
|
className: "text-base font-semibold text-text-primary truncate",
|
|
132
133
|
children: e.displayName
|
|
133
|
-
}), /* @__PURE__ */
|
|
134
|
+
}), /* @__PURE__ */ S("p", {
|
|
134
135
|
className: "text-xs text-text-secondary font-mono truncate mt-1",
|
|
135
136
|
children: e.packageName
|
|
136
137
|
})]
|
|
137
|
-
}), /* @__PURE__ */
|
|
138
|
-
className: `inline-flex items-center gap-1 px-2 py-0.5 text-[10px] uppercase tracking-wide font-semibold rounded-full border ${
|
|
139
|
-
children:
|
|
138
|
+
}), /* @__PURE__ */ S("span", {
|
|
139
|
+
className: `inline-flex items-center gap-1 px-2 py-0.5 text-[10px] uppercase tracking-wide font-semibold rounded-full border ${P(l)} flex-shrink-0`,
|
|
140
|
+
children: l
|
|
140
141
|
})]
|
|
141
142
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ S("p", {
|
|
143
144
|
className: "text-sm text-text-secondary leading-snug",
|
|
144
145
|
children: e.description
|
|
145
146
|
}),
|
|
146
|
-
|
|
147
|
+
/* @__PURE__ */ C("button", {
|
|
148
|
+
type: "button",
|
|
149
|
+
onClick: () => o(e.packageName),
|
|
150
|
+
className: "inline-flex items-center gap-1 self-start text-xs font-medium text-text-link hover:text-text-linkHover hover:underline",
|
|
151
|
+
"data-testid": `plugin-details-${e.packageName}`,
|
|
152
|
+
children: [s("vibecontrols.plugins.viewFleet", "Agents and fleet rollout"), /* @__PURE__ */ S(f, { className: "size-3.5" })]
|
|
153
|
+
}),
|
|
154
|
+
n ? /* @__PURE__ */ C("div", {
|
|
147
155
|
className: "flex items-center gap-1.5 rounded-md border border-status-success-border bg-status-success-bg px-2.5 py-1.5 text-xs font-medium text-status-success-text",
|
|
148
156
|
"data-testid": `plugin-installed-${e.packageName}`,
|
|
149
|
-
children: [/* @__PURE__ */
|
|
150
|
-
}) : t ? /* @__PURE__ */
|
|
157
|
+
children: [/* @__PURE__ */ S(p, { className: "size-3.5 flex-shrink-0" }), s("vibecontrols.plugins.installedOnAgent", "Installed on this agent")]
|
|
158
|
+
}) : t ? /* @__PURE__ */ S("button", {
|
|
151
159
|
type: "button",
|
|
152
160
|
onClick: () => a(e.packageName),
|
|
153
161
|
disabled: i,
|
|
154
162
|
className: "inline-flex items-center justify-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
155
163
|
"data-testid": `plugin-install-${e.packageName}`,
|
|
156
|
-
children: r ? /* @__PURE__ */ x
|
|
157
|
-
}) : /* @__PURE__ */
|
|
164
|
+
children: r ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(_, { className: "size-3.5 animate-spin" }), s("vibecontrols.plugins.installing", "Installing…")] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(g, { className: "size-3.5" }), s("vibecontrols.plugins.installToAgent", "Install to agent")] })
|
|
165
|
+
}) : /* @__PURE__ */ S("p", {
|
|
158
166
|
className: "text-xs text-text-placeholder",
|
|
159
|
-
children:
|
|
167
|
+
children: s("vibecontrols.plugins.selectAgentHint", "Select an agent above to install this with one click.")
|
|
160
168
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ C("div", {
|
|
162
170
|
className: "mt-1 space-y-1.5",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ S("p", {
|
|
164
172
|
className: "text-[11px] font-medium uppercase tracking-wide text-text-secondary",
|
|
165
|
-
children:
|
|
166
|
-
}), /* @__PURE__ */
|
|
173
|
+
children: s("vibecontrols.plugins.installCli", "Or install via CLI")
|
|
174
|
+
}), /* @__PURE__ */ C("div", {
|
|
167
175
|
className: "flex items-center gap-2 rounded-md border border-border-default bg-bg-sunken px-2.5 py-1.5",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
176
|
+
children: [/* @__PURE__ */ S("code", {
|
|
169
177
|
className: "flex-1 text-xs font-mono text-text-primary truncate",
|
|
170
|
-
children:
|
|
171
|
-
}), /* @__PURE__ */
|
|
172
|
-
text:
|
|
173
|
-
ariaLabel:
|
|
178
|
+
children: u
|
|
179
|
+
}), /* @__PURE__ */ S(F, {
|
|
180
|
+
text: u,
|
|
181
|
+
ariaLabel: s("vibecontrols.plugins.copyInstall", "Copy install command for {{name}}", { name: e.displayName })
|
|
174
182
|
})]
|
|
175
183
|
})]
|
|
176
184
|
}),
|
|
177
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ C("div", {
|
|
178
186
|
className: "space-y-2",
|
|
179
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ C("button", {
|
|
180
188
|
type: "button",
|
|
181
|
-
onClick: () =>
|
|
189
|
+
onClick: () => y((e) => !e),
|
|
182
190
|
className: "w-full flex items-center justify-between gap-2 text-left text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
183
|
-
"aria-expanded":
|
|
184
|
-
children: [/* @__PURE__ */
|
|
185
|
-
}),
|
|
191
|
+
"aria-expanded": v,
|
|
192
|
+
children: [/* @__PURE__ */ S("span", { children: s("vibecontrols.plugins.usage", "Usage") }), /* @__PURE__ */ S(m, { className: `size-3.5 transition-transform ${v ? "rotate-180" : ""}` })]
|
|
193
|
+
}), v && /* @__PURE__ */ C("div", {
|
|
186
194
|
className: "flex items-start gap-2 rounded-md border border-border-default bg-bg-sunken px-2.5 py-2",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
195
|
+
children: [/* @__PURE__ */ S("code", {
|
|
188
196
|
className: "flex-1 text-xs font-mono text-text-primary whitespace-pre-wrap break-all",
|
|
189
|
-
children:
|
|
190
|
-
}), /* @__PURE__ */
|
|
191
|
-
text:
|
|
192
|
-
ariaLabel:
|
|
197
|
+
children: h
|
|
198
|
+
}), /* @__PURE__ */ S(F, {
|
|
199
|
+
text: h,
|
|
200
|
+
ariaLabel: s("vibecontrols.plugins.copyUsage", "Copy usage snippet for {{name}}", { name: e.displayName })
|
|
193
201
|
})]
|
|
194
202
|
})]
|
|
195
203
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ C("div", {
|
|
197
205
|
className: "space-y-2",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
206
|
+
children: [/* @__PURE__ */ C("button", {
|
|
199
207
|
type: "button",
|
|
200
|
-
onClick: () =>
|
|
208
|
+
onClick: () => T((e) => !e),
|
|
201
209
|
className: "w-full flex items-center justify-between gap-2 text-left text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
202
|
-
"aria-expanded":
|
|
203
|
-
children: [/* @__PURE__ */
|
|
204
|
-
}),
|
|
210
|
+
"aria-expanded": b,
|
|
211
|
+
children: [/* @__PURE__ */ S("span", { children: s("vibecontrols.plugins.commands", "Command reference") }), /* @__PURE__ */ S(m, { className: `size-3.5 transition-transform ${b ? "rotate-180" : ""}` })]
|
|
212
|
+
}), b && /* @__PURE__ */ S("div", {
|
|
205
213
|
className: "rounded-md border border-border-default bg-bg-sunken px-2.5 py-2",
|
|
206
|
-
children: /* @__PURE__ */
|
|
214
|
+
children: /* @__PURE__ */ S("p", {
|
|
207
215
|
className: "text-xs text-text-secondary",
|
|
208
|
-
children:
|
|
216
|
+
children: s("vibecontrols.plugins.commandsHint", "See the agent admin sub-panel or the plugin README for the documented command list.")
|
|
209
217
|
})
|
|
210
218
|
})]
|
|
211
219
|
})
|
|
@@ -213,137 +221,138 @@ function P({ plugin: e, agentId: t, installed: n, installing: r, installBusy: i,
|
|
|
213
221
|
})
|
|
214
222
|
});
|
|
215
223
|
}
|
|
216
|
-
function
|
|
217
|
-
let
|
|
218
|
-
page:
|
|
219
|
-
tabs:
|
|
220
|
-
items:
|
|
224
|
+
function L() {
|
|
225
|
+
let f = c(), p = s(), m = l((e) => p(t(e)), [p]), [h, g] = d(""), [_, x] = d("all"), w = u(() => ({
|
|
226
|
+
page: f("vibecontrols.plugins.title", "Plugins"),
|
|
227
|
+
tabs: j({
|
|
228
|
+
items: M.map((e) => ({
|
|
221
229
|
id: e.value,
|
|
222
|
-
label:
|
|
230
|
+
label: f(e.labelKey, e.labelFallback)
|
|
223
231
|
})),
|
|
224
|
-
value:
|
|
225
|
-
set:
|
|
232
|
+
value: _,
|
|
233
|
+
set: x
|
|
226
234
|
}),
|
|
227
|
-
search:
|
|
228
|
-
}), [
|
|
229
|
-
|
|
230
|
-
let
|
|
231
|
-
|
|
232
|
-
}, [
|
|
233
|
-
let e =
|
|
234
|
-
return
|
|
235
|
+
search: A(g)
|
|
236
|
+
}), [f, _]);
|
|
237
|
+
k(w);
|
|
238
|
+
let N = u(() => Object.values(e).sort((e, t) => e.displayName.localeCompare(t.displayName)), []), P = u(() => N.map((e) => e.packageName), [N]), F = a((e) => e.activeAgentId), { installed: L, installing: R, install: z, loading: B, error: V, errorIsAgentState: H, quotaExhausted: U, clearQuotaExhausted: W } = i(P, F), G = l((e) => {
|
|
239
|
+
z(e);
|
|
240
|
+
}, [z]), K = u(() => {
|
|
241
|
+
let e = h.trim().toLowerCase();
|
|
242
|
+
return N.filter((t) => _ !== "all" && t.category !== _ ? !1 : !e || `${t.displayName} ${t.description} ${t.packageName}`.toLowerCase().includes(e));
|
|
235
243
|
}, [
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
244
|
+
N,
|
|
245
|
+
h,
|
|
246
|
+
_
|
|
239
247
|
]);
|
|
240
|
-
return /* @__PURE__ */
|
|
248
|
+
return /* @__PURE__ */ C(E, {
|
|
241
249
|
padded: !1,
|
|
242
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ C(O, {
|
|
243
251
|
className: "flex flex-col h-full",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ C("div", {
|
|
245
253
|
className: "sticky top-0 z-10 border-b border-border-subtle bg-bg-surface px-6 lg:px-8 pt-5 pb-4 space-y-3",
|
|
246
254
|
children: [
|
|
247
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ C("div", {
|
|
248
256
|
className: "flex items-start gap-3",
|
|
249
257
|
children: [
|
|
250
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ S("div", {
|
|
251
259
|
className: "flex size-9 flex-shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)]",
|
|
252
|
-
children: /* @__PURE__ */
|
|
260
|
+
children: /* @__PURE__ */ S(v, { className: "size-5 text-action-primary-bg" })
|
|
253
261
|
}),
|
|
254
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ C("div", {
|
|
255
263
|
className: "min-w-0 flex-1",
|
|
256
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ S("h1", {
|
|
257
265
|
className: "text-2xl font-semibold tracking-tight text-text-primary",
|
|
258
|
-
children:
|
|
259
|
-
}), /* @__PURE__ */
|
|
266
|
+
children: f("vibecontrols.plugins.title", "Plugins")
|
|
267
|
+
}), /* @__PURE__ */ S("p", {
|
|
260
268
|
className: "text-sm text-text-secondary mt-0.5",
|
|
261
|
-
children:
|
|
269
|
+
children: f("vibecontrols.plugins.description", "Browse and install plugins to extend your VibeControls agents.")
|
|
262
270
|
})]
|
|
263
271
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ S(n, {
|
|
265
273
|
compact: !0,
|
|
266
274
|
className: "w-56 flex-shrink-0"
|
|
267
275
|
})
|
|
268
276
|
]
|
|
269
277
|
}),
|
|
270
|
-
|
|
278
|
+
V && !H && /* @__PURE__ */ S("div", {
|
|
271
279
|
role: "alert",
|
|
272
280
|
className: "flex items-start gap-2 rounded-md border border-status-error-border bg-status-error-bg px-3 py-2 text-xs text-status-error-text",
|
|
273
|
-
children: /* @__PURE__ */
|
|
281
|
+
children: /* @__PURE__ */ S("span", { children: V })
|
|
274
282
|
}),
|
|
275
|
-
|
|
283
|
+
V && H && /* @__PURE__ */ S("div", {
|
|
276
284
|
className: "flex items-start gap-2 rounded-md border border-status-warning-border bg-status-warning-bg px-3 py-2 text-xs text-status-warning-text",
|
|
277
|
-
children: /* @__PURE__ */
|
|
285
|
+
children: /* @__PURE__ */ S("span", { children: V })
|
|
278
286
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ C("div", {
|
|
280
288
|
className: "relative",
|
|
281
289
|
children: [
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ S(y, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }),
|
|
291
|
+
/* @__PURE__ */ S("input", {
|
|
284
292
|
type: "search",
|
|
285
|
-
value:
|
|
286
|
-
onChange: (e) =>
|
|
287
|
-
placeholder:
|
|
288
|
-
"aria-label":
|
|
293
|
+
value: h,
|
|
294
|
+
onChange: (e) => g(e.target.value),
|
|
295
|
+
placeholder: f("vibecontrols.plugins.searchPlaceholder", "Search by name, description, or package…"),
|
|
296
|
+
"aria-label": f("vibecontrols.plugins.searchLabel", "Search plugins"),
|
|
289
297
|
className: "w-full pl-10 pr-10 py-2 text-sm bg-bg-sunken border border-border-default rounded-md text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-action-primary-bg focus:border-transparent transition-all"
|
|
290
298
|
}),
|
|
291
|
-
|
|
299
|
+
h && /* @__PURE__ */ S("button", {
|
|
292
300
|
type: "button",
|
|
293
|
-
onClick: () =>
|
|
294
|
-
"aria-label":
|
|
301
|
+
onClick: () => g(""),
|
|
302
|
+
"aria-label": f("vibecontrols.plugins.clearSearch", "Clear search"),
|
|
295
303
|
className: "absolute right-3 top-1/2 -translate-y-1/2 p-0.5 rounded hover:bg-bg-elevated transition-colors",
|
|
296
|
-
children: /* @__PURE__ */ b
|
|
304
|
+
children: /* @__PURE__ */ S(b, { className: "size-4 text-text-secondary" })
|
|
297
305
|
})
|
|
298
306
|
]
|
|
299
307
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ S("div", {
|
|
301
309
|
className: "flex flex-wrap gap-2",
|
|
302
310
|
role: "tablist",
|
|
303
|
-
"aria-label":
|
|
304
|
-
children:
|
|
305
|
-
let t =
|
|
306
|
-
return /* @__PURE__ */
|
|
311
|
+
"aria-label": f("vibecontrols.plugins.categories", "Plugin categories"),
|
|
312
|
+
children: M.map((e) => {
|
|
313
|
+
let t = _ === e.value;
|
|
314
|
+
return /* @__PURE__ */ S("button", {
|
|
307
315
|
type: "button",
|
|
308
316
|
role: "tab",
|
|
309
317
|
"aria-selected": t,
|
|
310
|
-
onClick: () =>
|
|
318
|
+
onClick: () => x(e.value),
|
|
311
319
|
className: `px-3 py-1 text-xs rounded-full border transition-colors ${t ? "bg-action-primary-bg text-action-primary-text border-action-primary-bg" : "bg-bg-surface text-text-secondary border-border-default hover:bg-bg-sunken hover:text-text-primary"}`,
|
|
312
|
-
children:
|
|
320
|
+
children: f(e.labelKey, e.labelFallback)
|
|
313
321
|
}, e.value);
|
|
314
322
|
})
|
|
315
323
|
})
|
|
316
324
|
]
|
|
317
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ C("div", {
|
|
318
326
|
className: "flex-1 px-4 sm:px-6 py-4 space-y-4",
|
|
319
|
-
children: [/* @__PURE__ */
|
|
320
|
-
icon: /* @__PURE__ */
|
|
321
|
-
children:
|
|
322
|
-
}),
|
|
327
|
+
children: [/* @__PURE__ */ S(D, {
|
|
328
|
+
icon: /* @__PURE__ */ S(v, { className: "size-4" }),
|
|
329
|
+
children: f("vibecontrols.plugins.purpose", "Plugins extend what your agents can do — adding capabilities like Git, a GraphQL playground, or session providers. Browse this catalog to find a capability you need, install it onto an agent, and unlock new tabs and actions across VibeControls without writing any glue code yourself.")
|
|
330
|
+
}), K.length === 0 ? /* @__PURE__ */ S(T, {
|
|
323
331
|
illustration: "empty-search",
|
|
324
|
-
title:
|
|
325
|
-
description:
|
|
326
|
-
}) : /* @__PURE__ */
|
|
332
|
+
title: f("vibecontrols.plugins.empty.title", "No matching plugins"),
|
|
333
|
+
description: f("vibecontrols.plugins.empty.description", "Try a different search term or category.")
|
|
334
|
+
}) : /* @__PURE__ */ S("div", {
|
|
327
335
|
className: "grid gap-3 grid-cols-1 sm:grid-cols-2 xl:grid-cols-3",
|
|
328
|
-
children:
|
|
336
|
+
children: K.map((e) => /* @__PURE__ */ S(I, {
|
|
329
337
|
plugin: e,
|
|
330
|
-
agentId:
|
|
331
|
-
installed: !!
|
|
332
|
-
installing:
|
|
333
|
-
installBusy:
|
|
334
|
-
onInstall:
|
|
338
|
+
agentId: F,
|
|
339
|
+
installed: !!L[e.packageName],
|
|
340
|
+
installing: R === e.packageName,
|
|
341
|
+
installBusy: B || R !== null,
|
|
342
|
+
onInstall: G,
|
|
343
|
+
onOpenDetails: m
|
|
335
344
|
}, e.packageName))
|
|
336
345
|
})]
|
|
337
346
|
})]
|
|
338
|
-
}), /* @__PURE__ */
|
|
339
|
-
isOpen:
|
|
340
|
-
onClose:
|
|
347
|
+
}), /* @__PURE__ */ S(r, {
|
|
348
|
+
isOpen: U,
|
|
349
|
+
onClose: W,
|
|
341
350
|
onConfirm: () => {
|
|
342
|
-
|
|
351
|
+
W(), p(o);
|
|
343
352
|
},
|
|
344
|
-
title:
|
|
345
|
-
message:
|
|
353
|
+
title: f("vibecontrols.plugins.quotaTitle", "Plugin quota reached"),
|
|
354
|
+
message: f("vibecontrols.plugins.quotaMessage", "You've used all plugin install quota on your current plan. Upgrade to install more plugins.")
|
|
346
355
|
})]
|
|
347
356
|
});
|
|
348
357
|
}
|
|
349
|
-
export {
|
|
358
|
+
export { L as PluginsCatalogPage };
|