@burdenoff/microfe-vibecontrols 2026.602.8 → 2026.602.10

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 (28) hide show
  1. package/dist/components/actions/ActionForm.js +260 -252
  2. package/dist/components/actions/ActionForm.js.map +1 -1
  3. package/dist/components/ai/InstructionFilesManager.js +138 -135
  4. package/dist/components/ai/InstructionFilesManager.js.map +1 -1
  5. package/dist/components/aliases/AliasManager.js +225 -224
  6. package/dist/components/aliases/AliasManager.js.map +1 -1
  7. package/dist/components/common/ActionAgentTargetNotice.js +125 -0
  8. package/dist/components/common/ActionAgentTargetNotice.js.map +1 -0
  9. package/dist/components/common/CommandEditor.js +49 -0
  10. package/dist/components/common/CommandEditor.js.map +1 -0
  11. package/dist/components/common/actionAgentTarget.js +55 -0
  12. package/dist/components/common/actionAgentTarget.js.map +1 -0
  13. package/dist/components/common/commandHighlight.js +190 -0
  14. package/dist/components/common/commandHighlight.js.map +1 -0
  15. package/dist/components/vibecalendar/ScheduleTaskModal.js +151 -149
  16. package/dist/components/vibecalendar/ScheduleTaskModal.js.map +1 -1
  17. package/dist/components/vibedeck/VibeDeckButtonForm.js +231 -219
  18. package/dist/components/vibedeck/VibeDeckButtonForm.js.map +1 -1
  19. package/dist/generated/wspace-operations.js +1 -0
  20. package/dist/generated/wspace-operations.js.map +1 -1
  21. package/dist/generated/wspace-types.js.map +1 -1
  22. package/dist/pages/ActionsPage.js +233 -224
  23. package/dist/pages/ActionsPage.js.map +1 -1
  24. package/dist/pages/AgentDetailsPage.js +490 -489
  25. package/dist/pages/AgentDetailsPage.js.map +1 -1
  26. package/dist/pages/SessionDetailsPage.js +401 -401
  27. package/dist/pages/SessionDetailsPage.js.map +1 -1
  28. package/package.json +1 -1
@@ -1,10 +1,13 @@
1
1
  import { useCreateActionMutation as e, useListActionsQuery as t } from "../../generated/wspace-operations.js";
2
2
  import { useTr as n } from "../../shared/hooks/useTr.js";
3
- import { useCallback as r, useMemo as i, useState as a } from "react";
4
- import { Plus as o, Unlink as s, X as c } from "lucide-react";
5
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
3
+ import { languageForInterpreter as r } from "../common/commandHighlight.js";
4
+ import { CommandEditor as i } from "../common/CommandEditor.js";
5
+ import { ActionAgentTargetNotice as a } from "../common/ActionAgentTargetNotice.js";
6
+ import { useCallback as o, useMemo as s, useState as c } from "react";
7
+ import { Plus as l, Unlink as u, X as d } from "lucide-react";
8
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
6
9
  //#region src/components/vibedeck/VibeDeckButtonForm.tsx
7
- var d = [
10
+ var m = [
8
11
  {
9
12
  value: "",
10
13
  label: "Default"
@@ -42,20 +45,20 @@ var d = [
42
45
  label: "Pink"
43
46
  }
44
47
  ];
45
- function f(e) {
48
+ function h(e) {
46
49
  return e ? Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => ({
47
50
  key: e,
48
51
  value: String(t)
49
52
  })) : [];
50
53
  }
51
- function p(e) {
54
+ function g(e) {
52
55
  return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 60);
53
56
  }
54
- var m = ({ initialData: m, agents: h, onSubmit: g, onCancel: _, isLoading: v, title: y, gridColumns: b, gridRows: x, buttonRow: S, buttonColumn: C }) => {
55
- let w = n(), T = Math.max(1, x != null && S != null ? x - S : 4), E = Math.max(1, b != null && C != null ? b - C : 4), [D, O] = a(m?.actionId || ""), [k, A] = a(""), [j, M] = a(!1), [N, P] = a(!1), { data: F } = t({
57
+ var _ = ({ initialData: _, agents: v, onSubmit: y, onCancel: b, isLoading: x, title: S, gridColumns: C, gridRows: w, buttonRow: T, buttonColumn: E }) => {
58
+ let D = n(), O = Math.max(1, w != null && T != null ? w - T : 4), k = Math.max(1, C != null && E != null ? C - E : 4), [A, j] = c(_?.actionId || ""), [M, N] = c(""), [P, F] = c(!1), [I, L] = c(!1), { data: R } = t({
56
59
  variables: { pagination: { limit: 100 } },
57
60
  fetchPolicy: "cache-and-network"
58
- }), [I] = e(), L = i(() => (F?.actions?.items || []).map((e) => ({
61
+ }), [z] = e(), B = s(() => (R?.actions?.items || []).map((e) => ({
59
62
  id: e.id,
60
63
  name: e.name,
61
64
  displayName: e.displayName || null,
@@ -66,36 +69,37 @@ var m = ({ initialData: m, agents: h, onSubmit: g, onCancel: _, isLoading: v, ti
66
69
  webhookUrl: e.webhookUrl || null,
67
70
  webhookMethod: e.webhookMethod || null,
68
71
  targetAgentId: e.targetAgentId || null,
72
+ targetPlatformFilter: e.targetPlatformFilter || null,
69
73
  workingDirectory: e.workingDirectory || null,
70
74
  category: e.category || null
71
- })), [F]), R = i(() => L.find((e) => e.id === D) || null, [L, D]), z = i(() => {
72
- if (!k.trim()) return L;
73
- let e = k.toLowerCase();
74
- return L.filter((t) => t.name.toLowerCase().includes(e) || t.displayName && t.displayName.toLowerCase().includes(e) || t.actionType.toLowerCase().includes(e));
75
- }, [L, k]), [B, V] = a({
76
- label: m?.label || "",
77
- icon: m?.icon || "",
78
- color: m?.color || "",
79
- category: m?.category || "",
80
- keyboardShortcut: m?.keyboardShortcut || "",
81
- confirmationRequired: m?.confirmationRequired || !1,
82
- rowSpan: Math.min(m?.rowSpan || 1, T),
83
- colSpan: Math.min(m?.colSpan || 1, E),
84
- actionId: m?.actionId || "",
85
- actionType: m?.actionType || "COMMAND",
86
- command: m?.command || "",
87
- workingDirectory: m?.workingDirectory || "",
88
- targetAgentId: m?.targetAgentId || "",
89
- script: m?.script || "",
90
- scriptInterpreter: m?.scriptInterpreter || "bash",
91
- webhookUrl: m?.webhookUrl || "",
92
- webhookMethod: m?.webhookMethod || "POST",
93
- webhookHeaders: f(m?.webhookHeaders),
94
- webhookBody: m?.webhookBody || "",
95
- webhookAuthType: m?.webhookAuthType || "",
96
- webhookAuthValue: m?.webhookAuthValue || ""
97
- }), H = (e) => {
98
- O(e.id), M(!1), A(""), P(!1), V((t) => ({
75
+ })), [R]), V = s(() => B.find((e) => e.id === A) || null, [B, A]), H = s(() => {
76
+ if (!M.trim()) return B;
77
+ let e = M.toLowerCase();
78
+ return B.filter((t) => t.name.toLowerCase().includes(e) || t.displayName && t.displayName.toLowerCase().includes(e) || t.actionType.toLowerCase().includes(e));
79
+ }, [B, M]), [U, W] = c({
80
+ label: _?.label || "",
81
+ icon: _?.icon || "",
82
+ color: _?.color || "",
83
+ category: _?.category || "",
84
+ keyboardShortcut: _?.keyboardShortcut || "",
85
+ confirmationRequired: _?.confirmationRequired || !1,
86
+ rowSpan: Math.min(_?.rowSpan || 1, O),
87
+ colSpan: Math.min(_?.colSpan || 1, k),
88
+ actionId: _?.actionId || "",
89
+ actionType: _?.actionType || "COMMAND",
90
+ command: _?.command || "",
91
+ workingDirectory: _?.workingDirectory || "",
92
+ targetAgentId: _?.targetAgentId || "",
93
+ script: _?.script || "",
94
+ scriptInterpreter: _?.scriptInterpreter || "bash",
95
+ webhookUrl: _?.webhookUrl || "",
96
+ webhookMethod: _?.webhookMethod || "POST",
97
+ webhookHeaders: h(_?.webhookHeaders),
98
+ webhookBody: _?.webhookBody || "",
99
+ webhookAuthType: _?.webhookAuthType || "",
100
+ webhookAuthValue: _?.webhookAuthValue || ""
101
+ }), G = (e) => {
102
+ j(e.id), F(!1), N(""), L(!1), W((t) => ({
99
103
  ...t,
100
104
  actionId: e.id,
101
105
  actionType: e.actionType,
@@ -108,305 +112,313 @@ var m = ({ initialData: m, agents: h, onSubmit: g, onCancel: _, isLoading: v, ti
108
112
  targetAgentId: e.targetAgentId || "",
109
113
  category: e.category || t.category
110
114
  }));
111
- }, U = () => {
112
- O(""), V((e) => ({
115
+ }, K = () => {
116
+ j(""), W((e) => ({
113
117
  ...e,
114
118
  actionId: ""
115
119
  }));
116
- }, W = !!D, G = B.actionType === "COMMAND" && B.command.trim() || B.actionType === "SCRIPT" && B.script.trim() || B.actionType === "WEBHOOK" && B.webhookUrl.trim(), K = B.label.trim() && (W || G), q = r(async (e) => {
117
- if (e.preventDefault(), !W && N) try {
118
- let e = (await I({
120
+ }, q = !!A, J = U.actionType === "COMMAND" && U.command.trim() || U.actionType === "SCRIPT" && U.script.trim() || U.actionType === "WEBHOOK" && U.webhookUrl.trim(), Y = U.label.trim() && (q || J), X = o(async (e) => {
121
+ if (e.preventDefault(), !q && I) try {
122
+ let e = (await z({
119
123
  variables: { input: {
120
- name: p(B.label || "vibedeck-action") + "-" + Date.now().toString(36),
121
- displayName: B.label,
122
- actionType: B.actionType,
123
- command: B.actionType === "COMMAND" ? B.command : void 0,
124
- script: B.actionType === "SCRIPT" ? B.script : void 0,
125
- scriptInterpreter: B.actionType === "SCRIPT" ? B.scriptInterpreter : void 0,
126
- webhookUrl: B.actionType === "WEBHOOK" ? B.webhookUrl : void 0,
127
- webhookMethod: B.actionType === "WEBHOOK" ? B.webhookMethod : void 0,
128
- webhookBody: B.actionType === "WEBHOOK" ? B.webhookBody : void 0,
129
- webhookAuthType: B.actionType === "WEBHOOK" ? B.webhookAuthType : void 0,
130
- webhookAuthValue: B.actionType === "WEBHOOK" ? B.webhookAuthValue : void 0,
131
- workingDirectory: B.workingDirectory || void 0,
132
- targetAgentId: B.targetAgentId || void 0,
133
- category: B.category || void 0,
134
- confirmationRequired: B.confirmationRequired
124
+ name: g(U.label || "vibedeck-action") + "-" + Date.now().toString(36),
125
+ displayName: U.label,
126
+ actionType: U.actionType,
127
+ command: U.actionType === "COMMAND" ? U.command : void 0,
128
+ script: U.actionType === "SCRIPT" ? U.script : void 0,
129
+ scriptInterpreter: U.actionType === "SCRIPT" ? U.scriptInterpreter : void 0,
130
+ webhookUrl: U.actionType === "WEBHOOK" ? U.webhookUrl : void 0,
131
+ webhookMethod: U.actionType === "WEBHOOK" ? U.webhookMethod : void 0,
132
+ webhookBody: U.actionType === "WEBHOOK" ? U.webhookBody : void 0,
133
+ webhookAuthType: U.actionType === "WEBHOOK" ? U.webhookAuthType : void 0,
134
+ webhookAuthValue: U.actionType === "WEBHOOK" ? U.webhookAuthValue : void 0,
135
+ workingDirectory: U.workingDirectory || void 0,
136
+ targetAgentId: U.targetAgentId || void 0,
137
+ category: U.category || void 0,
138
+ confirmationRequired: U.confirmationRequired
135
139
  } },
136
140
  refetchQueries: ["ListActions"]
137
141
  })).data?.createAction?.id;
138
142
  if (e) {
139
- g({
140
- ...B,
143
+ y({
144
+ ...U,
141
145
  actionId: e
142
146
  });
143
147
  return;
144
148
  }
145
149
  } catch {}
146
- g({
147
- ...B,
148
- actionId: D
150
+ y({
151
+ ...U,
152
+ actionId: A
149
153
  });
150
154
  }, [
151
- B,
152
- W,
153
- N,
154
- D,
155
+ U,
156
+ q,
155
157
  I,
156
- g
157
- ]), J = "w-full px-3 py-2 rounded-lg border border-border-default bg-bg-secondary text-text-primary focus:outline-none focus:ring-2 focus:ring-action-primary-bg", Y = `${J} font-mono text-sm`, X = "block text-sm font-medium text-text-secondary mb-1";
158
- return /* @__PURE__ */ l("div", {
158
+ A,
159
+ z,
160
+ y
161
+ ]), Z = "w-full px-3 py-2 rounded-lg border border-border-default bg-bg-secondary text-text-primary focus:outline-none focus:ring-2 focus:ring-action-primary-bg", Q = "block text-sm font-medium text-text-secondary mb-1";
162
+ return /* @__PURE__ */ f("div", {
159
163
  className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-overlay backdrop-blur-sm",
160
- children: /* @__PURE__ */ u("div", {
164
+ children: /* @__PURE__ */ p("div", {
161
165
  className: "bg-bg-elevated border border-border-default rounded-xl shadow-xl w-full max-w-lg mx-4 max-h-[90vh] overflow-y-auto",
162
- children: [/* @__PURE__ */ u("div", {
166
+ children: [/* @__PURE__ */ p("div", {
163
167
  className: "flex items-center justify-between px-6 py-4 border-b border-border-default sticky top-0 bg-bg-elevated z-10",
164
- children: [/* @__PURE__ */ l("h2", {
168
+ children: [/* @__PURE__ */ f("h2", {
165
169
  className: "text-lg font-semibold text-text-primary",
166
- children: y
167
- }), /* @__PURE__ */ l("button", {
170
+ children: S
171
+ }), /* @__PURE__ */ f("button", {
168
172
  type: "button",
169
- onClick: _,
173
+ onClick: b,
170
174
  className: "p-1 rounded hover:bg-bg-tertiary text-text-tertiary",
171
- children: /* @__PURE__ */ l(c, { size: 18 })
175
+ children: /* @__PURE__ */ f(d, { size: 18 })
172
176
  })]
173
- }), /* @__PURE__ */ u("form", {
174
- onSubmit: q,
177
+ }), /* @__PURE__ */ p("form", {
178
+ onSubmit: X,
175
179
  className: "p-6 space-y-4",
176
180
  children: [
177
- /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("label", {
178
- className: X,
179
- children: [w("vibecontrols.vibedeck.buttonForm.label", "Label"), " *"]
180
- }), /* @__PURE__ */ l("input", {
181
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
182
+ className: Q,
183
+ children: [D("vibecontrols.vibedeck.buttonForm.label", "Label"), " *"]
184
+ }), /* @__PURE__ */ f("input", {
181
185
  "aria-label": "Deploy Staging",
182
186
  type: "text",
183
- value: B.label,
184
- onChange: (e) => V({
185
- ...B,
187
+ value: U.label,
188
+ onChange: (e) => W({
189
+ ...U,
186
190
  label: e.target.value
187
191
  }),
188
- className: J,
192
+ className: Z,
189
193
  placeholder: "Deploy Staging",
190
194
  required: !0
191
195
  })] }),
192
- /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("label", {
193
- className: X,
194
- children: [w("vibecontrols.vibedeck.buttonForm.action", "Action"), " *"]
195
- }), R ? /* @__PURE__ */ u("div", {
196
- className: "flex items-center gap-2 px-3 py-2.5 rounded-lg border border-action-primary-bg/40 bg-bg-secondary",
197
- children: [/* @__PURE__ */ u("div", {
198
- className: "flex-1 min-w-0",
199
- children: [/* @__PURE__ */ l("div", {
200
- className: "text-sm font-medium text-text-primary truncate",
201
- children: R.displayName || R.name
202
- }), /* @__PURE__ */ u("div", {
203
- className: "text-xs text-text-tertiary flex items-center gap-1",
204
- children: [/* @__PURE__ */ l("span", {
205
- className: "inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-semibold bg-action-primary-bg/10 text-action-primary-bg",
206
- children: R.actionType
207
- }), R.command && /* @__PURE__ */ l("span", {
208
- className: "font-mono truncate",
209
- children: R.command.length > 35 ? `${R.command.slice(0, 35)}...` : R.command
196
+ /* @__PURE__ */ p("div", { children: [
197
+ /* @__PURE__ */ p("label", {
198
+ className: Q,
199
+ children: [D("vibecontrols.vibedeck.buttonForm.action", "Action"), " *"]
200
+ }),
201
+ V ? /* @__PURE__ */ p("div", {
202
+ className: "flex items-center gap-2 px-3 py-2.5 rounded-lg border border-action-primary-bg/40 bg-bg-secondary",
203
+ children: [/* @__PURE__ */ p("div", {
204
+ className: "flex-1 min-w-0",
205
+ children: [/* @__PURE__ */ f("div", {
206
+ className: "text-sm font-medium text-text-primary truncate",
207
+ children: V.displayName || V.name
208
+ }), /* @__PURE__ */ p("div", {
209
+ className: "text-xs text-text-tertiary flex items-center gap-1",
210
+ children: [/* @__PURE__ */ f("span", {
211
+ className: "inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-semibold bg-action-primary-bg/10 text-action-primary-bg",
212
+ children: V.actionType
213
+ }), V.command && /* @__PURE__ */ f("span", {
214
+ className: "font-mono truncate",
215
+ children: V.command.length > 35 ? `${V.command.slice(0, 35)}...` : V.command
216
+ })]
210
217
  })]
218
+ }), /* @__PURE__ */ f("button", {
219
+ type: "button",
220
+ onClick: K,
221
+ className: "p-1.5 rounded hover:bg-bg-tertiary text-text-tertiary hover:text-status-error-text",
222
+ title: "Change action",
223
+ children: /* @__PURE__ */ f(u, { size: 14 })
211
224
  })]
212
- }), /* @__PURE__ */ l("button", {
213
- type: "button",
214
- onClick: U,
215
- className: "p-1.5 rounded hover:bg-bg-tertiary text-text-tertiary hover:text-status-error-text",
216
- title: "Change action",
217
- children: /* @__PURE__ */ l(s, { size: 14 })
218
- })]
219
- }) : /* @__PURE__ */ u("div", {
220
- className: "space-y-2",
221
- children: [/* @__PURE__ */ u("div", {
222
- className: "relative",
223
- children: [/* @__PURE__ */ l("input", {
224
- "aria-label": "control",
225
- type: "text",
226
- value: k,
227
- onChange: (e) => {
228
- A(e.target.value), M(!0), P(!1);
229
- },
230
- onFocus: () => M(!0),
231
- onBlur: () => setTimeout(() => M(!1), 200),
232
- className: "w-full px-3 py-2 rounded-lg border border-border-default bg-bg-secondary text-text-primary text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-bg",
233
- placeholder: w("vibecontrols.vibedeck.buttonForm.searchActions", "Search existing actions...")
234
- }), j && /* @__PURE__ */ l("div", {
235
- className: "absolute z-50 mt-1 w-full max-h-48 overflow-y-auto rounded-lg border border-border-default shadow-xl bg-bg-elevated",
236
- children: z.length === 0 ? /* @__PURE__ */ l("div", {
237
- className: "px-3 py-2 text-sm text-text-tertiary",
238
- children: "No actions found"
239
- }) : z.map((e) => /* @__PURE__ */ u("button", {
240
- type: "button",
241
- onMouseDown: (e) => e.preventDefault(),
242
- onClick: () => H(e),
243
- className: "w-full text-left px-3 py-2 hover:bg-bg-tertiary",
244
- children: [/* @__PURE__ */ l("div", {
245
- className: "text-sm font-medium",
246
- children: e.displayName || e.name
247
- }), /* @__PURE__ */ l("div", {
248
- className: "text-xs text-text-tertiary",
249
- children: e.actionType
250
- })]
251
- }, e.id))
225
+ }) : null,
226
+ V && /* @__PURE__ */ f("div", {
227
+ className: "mt-2",
228
+ children: /* @__PURE__ */ f(a, { action: V })
229
+ }),
230
+ !V && /* @__PURE__ */ p("div", {
231
+ className: "space-y-2",
232
+ children: [/* @__PURE__ */ p("div", {
233
+ className: "relative",
234
+ children: [/* @__PURE__ */ f("input", {
235
+ "aria-label": "control",
236
+ type: "text",
237
+ value: M,
238
+ onChange: (e) => {
239
+ N(e.target.value), F(!0), L(!1);
240
+ },
241
+ onFocus: () => F(!0),
242
+ onBlur: () => setTimeout(() => F(!1), 200),
243
+ className: "w-full px-3 py-2 rounded-lg border border-border-default bg-bg-secondary text-text-primary text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-bg",
244
+ placeholder: D("vibecontrols.vibedeck.buttonForm.searchActions", "Search existing actions...")
245
+ }), P && /* @__PURE__ */ f("div", {
246
+ className: "absolute z-50 mt-1 w-full max-h-48 overflow-y-auto rounded-lg border border-border-default shadow-xl bg-bg-elevated",
247
+ children: H.length === 0 ? /* @__PURE__ */ f("div", {
248
+ className: "px-3 py-2 text-sm text-text-tertiary",
249
+ children: "No actions found"
250
+ }) : H.map((e) => /* @__PURE__ */ p("button", {
251
+ type: "button",
252
+ onMouseDown: (e) => e.preventDefault(),
253
+ onClick: () => G(e),
254
+ className: "w-full text-left px-3 py-2 hover:bg-bg-tertiary",
255
+ children: [/* @__PURE__ */ f("div", {
256
+ className: "text-sm font-medium",
257
+ children: e.displayName || e.name
258
+ }), /* @__PURE__ */ f("div", {
259
+ className: "text-xs text-text-tertiary",
260
+ children: e.actionType
261
+ })]
262
+ }, e.id))
263
+ })]
264
+ }), !I && /* @__PURE__ */ p("button", {
265
+ type: "button",
266
+ onClick: () => L(!0),
267
+ className: "flex items-center gap-1.5 text-sm text-action-primary-bg hover:opacity-80",
268
+ children: [
269
+ /* @__PURE__ */ f(l, { size: 14 }),
270
+ " ",
271
+ D("vibecontrols.vibedeck.buttonForm.createNewAction", "Create new action")
272
+ ]
252
273
  })]
253
- }), !N && /* @__PURE__ */ u("button", {
254
- type: "button",
255
- onClick: () => P(!0),
256
- className: "flex items-center gap-1.5 text-sm text-action-primary-bg hover:opacity-80",
257
- children: [
258
- /* @__PURE__ */ l(o, { size: 14 }),
259
- " ",
260
- w("vibecontrols.vibedeck.buttonForm.createNewAction", "Create new action")
261
- ]
262
- })]
263
- })] }),
264
- N && /* @__PURE__ */ u("div", {
274
+ })
275
+ ] }),
276
+ I && /* @__PURE__ */ p("div", {
265
277
  className: "p-4 rounded-lg bg-bg-secondary/50 border border-dashed border-border-default space-y-4",
266
278
  children: [
267
- /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
279
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
268
280
  htmlFor: "vibedeckbuttonform-23",
269
- className: X,
281
+ className: Q,
270
282
  children: "Action Type"
271
- }), /* @__PURE__ */ u("select", {
283
+ }), /* @__PURE__ */ p("select", {
272
284
  id: "vibedeckbuttonform-23",
273
- value: B.actionType,
274
- onChange: (e) => V({
275
- ...B,
285
+ value: U.actionType,
286
+ onChange: (e) => W({
287
+ ...U,
276
288
  actionType: e.target.value
277
289
  }),
278
- className: J,
290
+ className: Z,
279
291
  children: [
280
- /* @__PURE__ */ l("option", {
292
+ /* @__PURE__ */ f("option", {
281
293
  value: "COMMAND",
282
294
  children: "Command"
283
295
  }),
284
- /* @__PURE__ */ l("option", {
296
+ /* @__PURE__ */ f("option", {
285
297
  value: "SCRIPT",
286
298
  children: "Script"
287
299
  }),
288
- /* @__PURE__ */ l("option", {
300
+ /* @__PURE__ */ f("option", {
289
301
  value: "WEBHOOK",
290
302
  children: "Webhook"
291
303
  })
292
304
  ]
293
305
  })] }),
294
- B.actionType === "COMMAND" && /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
306
+ U.actionType === "COMMAND" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
295
307
  htmlFor: "vibedeckbuttonform-22",
296
- className: X,
308
+ className: Q,
297
309
  children: "Command *"
298
- }), /* @__PURE__ */ l("textarea", {
310
+ }), /* @__PURE__ */ f(i, {
299
311
  id: "vibedeckbuttonform-22",
300
312
  "aria-label": "control",
301
- value: B.command,
302
- onChange: (e) => V({
303
- ...B,
313
+ language: "shell",
314
+ value: U.command,
315
+ onChange: (e) => W({
316
+ ...U,
304
317
  command: e.target.value
305
318
  }),
306
- className: Y,
307
319
  rows: 2,
308
320
  required: !0
309
321
  })] }),
310
- B.actionType === "SCRIPT" && /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
322
+ U.actionType === "SCRIPT" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
311
323
  htmlFor: "vibedeckbuttonform-21",
312
- className: X,
324
+ className: Q,
313
325
  children: "Script *"
314
- }), /* @__PURE__ */ l("textarea", {
326
+ }), /* @__PURE__ */ f(i, {
315
327
  id: "vibedeckbuttonform-21",
316
328
  "aria-label": "control",
317
- value: B.script,
318
- onChange: (e) => V({
319
- ...B,
329
+ language: r(U.scriptInterpreter),
330
+ value: U.script,
331
+ onChange: (e) => W({
332
+ ...U,
320
333
  script: e.target.value
321
334
  }),
322
- className: Y,
323
335
  rows: 4,
324
336
  required: !0
325
337
  })] }),
326
- B.actionType === "WEBHOOK" && /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
338
+ U.actionType === "WEBHOOK" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
327
339
  htmlFor: "vibedeckbuttonform-20",
328
- className: X,
340
+ className: Q,
329
341
  children: "URL *"
330
- }), /* @__PURE__ */ l("input", {
342
+ }), /* @__PURE__ */ f("input", {
331
343
  id: "vibedeckbuttonform-20",
332
344
  "aria-label": "control",
333
345
  type: "url",
334
- value: B.webhookUrl,
335
- onChange: (e) => V({
336
- ...B,
346
+ value: U.webhookUrl,
347
+ onChange: (e) => W({
348
+ ...U,
337
349
  webhookUrl: e.target.value
338
350
  }),
339
- className: J,
351
+ className: Z,
340
352
  required: !0
341
353
  })] })
342
354
  ]
343
355
  }),
344
- /* @__PURE__ */ u("div", {
356
+ /* @__PURE__ */ p("div", {
345
357
  className: "grid grid-cols-2 gap-3",
346
- children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
358
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
347
359
  htmlFor: "vibedeckbuttonform-19",
348
- className: X,
360
+ className: Q,
349
361
  children: "Color"
350
- }), /* @__PURE__ */ l("select", {
362
+ }), /* @__PURE__ */ f("select", {
351
363
  id: "vibedeckbuttonform-19",
352
- value: B.color,
353
- onChange: (e) => V({
354
- ...B,
364
+ value: U.color,
365
+ onChange: (e) => W({
366
+ ...U,
355
367
  color: e.target.value
356
368
  }),
357
- className: J,
358
- children: d.map((e) => /* @__PURE__ */ l("option", {
369
+ className: Z,
370
+ children: m.map((e) => /* @__PURE__ */ f("option", {
359
371
  value: e.value,
360
372
  children: e.label
361
373
  }, e.value))
362
- })] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
374
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
363
375
  htmlFor: "vibedeckbuttonform-18",
364
- className: X,
376
+ className: Q,
365
377
  children: "Category"
366
- }), /* @__PURE__ */ l("input", {
378
+ }), /* @__PURE__ */ f("input", {
367
379
  id: "vibedeckbuttonform-18",
368
380
  "aria-label": "control",
369
381
  type: "text",
370
- value: B.category,
371
- onChange: (e) => V({
372
- ...B,
382
+ value: U.category,
383
+ onChange: (e) => W({
384
+ ...U,
373
385
  category: e.target.value
374
386
  }),
375
- className: J
387
+ className: Z
376
388
  })] })]
377
389
  }),
378
- /* @__PURE__ */ l("div", {
390
+ /* @__PURE__ */ f("div", {
379
391
  className: "grid grid-cols-2 gap-3",
380
- children: /* @__PURE__ */ u("div", {
392
+ children: /* @__PURE__ */ p("div", {
381
393
  className: "flex items-center gap-2",
382
- children: [/* @__PURE__ */ l("input", {
394
+ children: [/* @__PURE__ */ f("input", {
383
395
  "aria-label": "confReq",
384
396
  type: "checkbox",
385
- checked: B.confirmationRequired,
386
- onChange: (e) => V({
387
- ...B,
397
+ checked: U.confirmationRequired,
398
+ onChange: (e) => W({
399
+ ...U,
388
400
  confirmationRequired: e.target.checked
389
401
  }),
390
402
  id: "confReq"
391
- }), /* @__PURE__ */ l("label", {
403
+ }), /* @__PURE__ */ f("label", {
392
404
  htmlFor: "confReq",
393
405
  className: "text-sm",
394
- children: w("vibecontrols.vibedeck.buttonForm.requireConfirmation", "Require confirmation")
406
+ children: D("vibecontrols.vibedeck.buttonForm.requireConfirmation", "Require confirmation")
395
407
  })]
396
408
  })
397
409
  }),
398
- /* @__PURE__ */ u("div", {
410
+ /* @__PURE__ */ p("div", {
399
411
  className: "flex justify-end gap-3 pt-2",
400
- children: [/* @__PURE__ */ l("button", {
412
+ children: [/* @__PURE__ */ f("button", {
401
413
  type: "button",
402
- onClick: _,
414
+ onClick: b,
403
415
  className: "px-4 py-2 rounded-lg text-sm text-text-secondary hover:bg-bg-tertiary",
404
- children: w("vibecontrols.vibedeck.buttonForm.cancel", "Cancel")
405
- }), /* @__PURE__ */ l("button", {
416
+ children: D("vibecontrols.vibedeck.buttonForm.cancel", "Cancel")
417
+ }), /* @__PURE__ */ f("button", {
406
418
  type: "submit",
407
- disabled: v || !K,
419
+ disabled: x || !Y,
408
420
  className: "px-4 py-2 rounded-lg text-sm bg-action-primary-bg text-action-primary-text hover:opacity-90 disabled:opacity-50",
409
- children: v ? w("vibecontrols.vibedeck.buttonForm.saving", "Saving...") : w("vibecontrols.vibedeck.buttonForm.save", "Save")
421
+ children: x ? D("vibecontrols.vibedeck.buttonForm.saving", "Saving...") : D("vibecontrols.vibedeck.buttonForm.save", "Save")
410
422
  })]
411
423
  })
412
424
  ]
@@ -415,6 +427,6 @@ var m = ({ initialData: m, agents: h, onSubmit: g, onCancel: _, isLoading: v, ti
415
427
  });
416
428
  };
417
429
  //#endregion
418
- export { m as VibeDeckButtonForm };
430
+ export { _ as VibeDeckButtonForm };
419
431
 
420
432
  //# sourceMappingURL=VibeDeckButtonForm.js.map