@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.
- package/dist/components/actions/ActionForm.js +260 -252
- package/dist/components/actions/ActionForm.js.map +1 -1
- package/dist/components/ai/InstructionFilesManager.js +138 -135
- package/dist/components/ai/InstructionFilesManager.js.map +1 -1
- package/dist/components/aliases/AliasManager.js +225 -224
- package/dist/components/aliases/AliasManager.js.map +1 -1
- package/dist/components/common/ActionAgentTargetNotice.js +125 -0
- package/dist/components/common/ActionAgentTargetNotice.js.map +1 -0
- package/dist/components/common/CommandEditor.js +49 -0
- package/dist/components/common/CommandEditor.js.map +1 -0
- package/dist/components/common/actionAgentTarget.js +55 -0
- package/dist/components/common/actionAgentTarget.js.map +1 -0
- package/dist/components/common/commandHighlight.js +190 -0
- package/dist/components/common/commandHighlight.js.map +1 -0
- package/dist/components/vibecalendar/ScheduleTaskModal.js +151 -149
- package/dist/components/vibecalendar/ScheduleTaskModal.js.map +1 -1
- package/dist/components/vibedeck/VibeDeckButtonForm.js +231 -219
- package/dist/components/vibedeck/VibeDeckButtonForm.js.map +1 -1
- package/dist/generated/wspace-operations.js +1 -0
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/pages/ActionsPage.js +233 -224
- package/dist/pages/ActionsPage.js.map +1 -1
- package/dist/pages/AgentDetailsPage.js +490 -489
- package/dist/pages/AgentDetailsPage.js.map +1 -1
- package/dist/pages/SessionDetailsPage.js +401 -401
- package/dist/pages/SessionDetailsPage.js.map +1 -1
- 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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
|
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
|
|
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
|
|
54
|
+
function g(e) {
|
|
52
55
|
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 60);
|
|
53
56
|
}
|
|
54
|
-
var
|
|
55
|
-
let
|
|
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
|
-
}), [
|
|
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
|
-
})), [
|
|
72
|
-
if (!
|
|
73
|
-
let e =
|
|
74
|
-
return
|
|
75
|
-
}, [
|
|
76
|
-
label:
|
|
77
|
-
icon:
|
|
78
|
-
color:
|
|
79
|
-
category:
|
|
80
|
-
keyboardShortcut:
|
|
81
|
-
confirmationRequired:
|
|
82
|
-
rowSpan: Math.min(
|
|
83
|
-
colSpan: Math.min(
|
|
84
|
-
actionId:
|
|
85
|
-
actionType:
|
|
86
|
-
command:
|
|
87
|
-
workingDirectory:
|
|
88
|
-
targetAgentId:
|
|
89
|
-
script:
|
|
90
|
-
scriptInterpreter:
|
|
91
|
-
webhookUrl:
|
|
92
|
-
webhookMethod:
|
|
93
|
-
webhookHeaders:
|
|
94
|
-
webhookBody:
|
|
95
|
-
webhookAuthType:
|
|
96
|
-
webhookAuthValue:
|
|
97
|
-
}),
|
|
98
|
-
|
|
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
|
-
},
|
|
112
|
-
|
|
115
|
+
}, K = () => {
|
|
116
|
+
j(""), W((e) => ({
|
|
113
117
|
...e,
|
|
114
118
|
actionId: ""
|
|
115
119
|
}));
|
|
116
|
-
},
|
|
117
|
-
if (e.preventDefault(), !
|
|
118
|
-
let e = (await
|
|
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:
|
|
121
|
-
displayName:
|
|
122
|
-
actionType:
|
|
123
|
-
command:
|
|
124
|
-
script:
|
|
125
|
-
scriptInterpreter:
|
|
126
|
-
webhookUrl:
|
|
127
|
-
webhookMethod:
|
|
128
|
-
webhookBody:
|
|
129
|
-
webhookAuthType:
|
|
130
|
-
webhookAuthValue:
|
|
131
|
-
workingDirectory:
|
|
132
|
-
targetAgentId:
|
|
133
|
-
category:
|
|
134
|
-
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
|
-
|
|
140
|
-
...
|
|
143
|
+
y({
|
|
144
|
+
...U,
|
|
141
145
|
actionId: e
|
|
142
146
|
});
|
|
143
147
|
return;
|
|
144
148
|
}
|
|
145
149
|
} catch {}
|
|
146
|
-
|
|
147
|
-
...
|
|
148
|
-
actionId:
|
|
150
|
+
y({
|
|
151
|
+
...U,
|
|
152
|
+
actionId: A
|
|
149
153
|
});
|
|
150
154
|
}, [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
N,
|
|
154
|
-
D,
|
|
155
|
+
U,
|
|
156
|
+
q,
|
|
155
157
|
I,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
168
|
+
children: [/* @__PURE__ */ f("h2", {
|
|
165
169
|
className: "text-lg font-semibold text-text-primary",
|
|
166
|
-
children:
|
|
167
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
175
|
+
children: /* @__PURE__ */ f(d, { size: 18 })
|
|
172
176
|
})]
|
|
173
|
-
}), /* @__PURE__ */
|
|
174
|
-
onSubmit:
|
|
177
|
+
}), /* @__PURE__ */ p("form", {
|
|
178
|
+
onSubmit: X,
|
|
175
179
|
className: "p-6 space-y-4",
|
|
176
180
|
children: [
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
className:
|
|
179
|
-
children: [
|
|
180
|
-
}), /* @__PURE__ */
|
|
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:
|
|
184
|
-
onChange: (e) =>
|
|
185
|
-
...
|
|
187
|
+
value: U.label,
|
|
188
|
+
onChange: (e) => W({
|
|
189
|
+
...U,
|
|
186
190
|
label: e.target.value
|
|
187
191
|
}),
|
|
188
|
-
className:
|
|
192
|
+
className: Z,
|
|
189
193
|
placeholder: "Deploy Staging",
|
|
190
194
|
required: !0
|
|
191
195
|
})] }),
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
className: "flex-
|
|
199
|
-
children: [/* @__PURE__ */
|
|
200
|
-
className: "
|
|
201
|
-
children:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
className: "
|
|
206
|
-
children:
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
-
})
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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
|
-
})
|
|
254
|
-
|
|
255
|
-
|
|
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__ */
|
|
279
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
268
280
|
htmlFor: "vibedeckbuttonform-23",
|
|
269
|
-
className:
|
|
281
|
+
className: Q,
|
|
270
282
|
children: "Action Type"
|
|
271
|
-
}), /* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ p("select", {
|
|
272
284
|
id: "vibedeckbuttonform-23",
|
|
273
|
-
value:
|
|
274
|
-
onChange: (e) =>
|
|
275
|
-
...
|
|
285
|
+
value: U.actionType,
|
|
286
|
+
onChange: (e) => W({
|
|
287
|
+
...U,
|
|
276
288
|
actionType: e.target.value
|
|
277
289
|
}),
|
|
278
|
-
className:
|
|
290
|
+
className: Z,
|
|
279
291
|
children: [
|
|
280
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ f("option", {
|
|
281
293
|
value: "COMMAND",
|
|
282
294
|
children: "Command"
|
|
283
295
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ f("option", {
|
|
285
297
|
value: "SCRIPT",
|
|
286
298
|
children: "Script"
|
|
287
299
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ f("option", {
|
|
289
301
|
value: "WEBHOOK",
|
|
290
302
|
children: "Webhook"
|
|
291
303
|
})
|
|
292
304
|
]
|
|
293
305
|
})] }),
|
|
294
|
-
|
|
306
|
+
U.actionType === "COMMAND" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
295
307
|
htmlFor: "vibedeckbuttonform-22",
|
|
296
|
-
className:
|
|
308
|
+
className: Q,
|
|
297
309
|
children: "Command *"
|
|
298
|
-
}), /* @__PURE__ */
|
|
310
|
+
}), /* @__PURE__ */ f(i, {
|
|
299
311
|
id: "vibedeckbuttonform-22",
|
|
300
312
|
"aria-label": "control",
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
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
|
-
|
|
322
|
+
U.actionType === "SCRIPT" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
311
323
|
htmlFor: "vibedeckbuttonform-21",
|
|
312
|
-
className:
|
|
324
|
+
className: Q,
|
|
313
325
|
children: "Script *"
|
|
314
|
-
}), /* @__PURE__ */
|
|
326
|
+
}), /* @__PURE__ */ f(i, {
|
|
315
327
|
id: "vibedeckbuttonform-21",
|
|
316
328
|
"aria-label": "control",
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
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
|
-
|
|
338
|
+
U.actionType === "WEBHOOK" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
327
339
|
htmlFor: "vibedeckbuttonform-20",
|
|
328
|
-
className:
|
|
340
|
+
className: Q,
|
|
329
341
|
children: "URL *"
|
|
330
|
-
}), /* @__PURE__ */
|
|
342
|
+
}), /* @__PURE__ */ f("input", {
|
|
331
343
|
id: "vibedeckbuttonform-20",
|
|
332
344
|
"aria-label": "control",
|
|
333
345
|
type: "url",
|
|
334
|
-
value:
|
|
335
|
-
onChange: (e) =>
|
|
336
|
-
...
|
|
346
|
+
value: U.webhookUrl,
|
|
347
|
+
onChange: (e) => W({
|
|
348
|
+
...U,
|
|
337
349
|
webhookUrl: e.target.value
|
|
338
350
|
}),
|
|
339
|
-
className:
|
|
351
|
+
className: Z,
|
|
340
352
|
required: !0
|
|
341
353
|
})] })
|
|
342
354
|
]
|
|
343
355
|
}),
|
|
344
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ p("div", {
|
|
345
357
|
className: "grid grid-cols-2 gap-3",
|
|
346
|
-
children: [/* @__PURE__ */
|
|
358
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
347
359
|
htmlFor: "vibedeckbuttonform-19",
|
|
348
|
-
className:
|
|
360
|
+
className: Q,
|
|
349
361
|
children: "Color"
|
|
350
|
-
}), /* @__PURE__ */
|
|
362
|
+
}), /* @__PURE__ */ f("select", {
|
|
351
363
|
id: "vibedeckbuttonform-19",
|
|
352
|
-
value:
|
|
353
|
-
onChange: (e) =>
|
|
354
|
-
...
|
|
364
|
+
value: U.color,
|
|
365
|
+
onChange: (e) => W({
|
|
366
|
+
...U,
|
|
355
367
|
color: e.target.value
|
|
356
368
|
}),
|
|
357
|
-
className:
|
|
358
|
-
children:
|
|
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__ */
|
|
374
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
363
375
|
htmlFor: "vibedeckbuttonform-18",
|
|
364
|
-
className:
|
|
376
|
+
className: Q,
|
|
365
377
|
children: "Category"
|
|
366
|
-
}), /* @__PURE__ */
|
|
378
|
+
}), /* @__PURE__ */ f("input", {
|
|
367
379
|
id: "vibedeckbuttonform-18",
|
|
368
380
|
"aria-label": "control",
|
|
369
381
|
type: "text",
|
|
370
|
-
value:
|
|
371
|
-
onChange: (e) =>
|
|
372
|
-
...
|
|
382
|
+
value: U.category,
|
|
383
|
+
onChange: (e) => W({
|
|
384
|
+
...U,
|
|
373
385
|
category: e.target.value
|
|
374
386
|
}),
|
|
375
|
-
className:
|
|
387
|
+
className: Z
|
|
376
388
|
})] })]
|
|
377
389
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ f("div", {
|
|
379
391
|
className: "grid grid-cols-2 gap-3",
|
|
380
|
-
children: /* @__PURE__ */
|
|
392
|
+
children: /* @__PURE__ */ p("div", {
|
|
381
393
|
className: "flex items-center gap-2",
|
|
382
|
-
children: [/* @__PURE__ */
|
|
394
|
+
children: [/* @__PURE__ */ f("input", {
|
|
383
395
|
"aria-label": "confReq",
|
|
384
396
|
type: "checkbox",
|
|
385
|
-
checked:
|
|
386
|
-
onChange: (e) =>
|
|
387
|
-
...
|
|
397
|
+
checked: U.confirmationRequired,
|
|
398
|
+
onChange: (e) => W({
|
|
399
|
+
...U,
|
|
388
400
|
confirmationRequired: e.target.checked
|
|
389
401
|
}),
|
|
390
402
|
id: "confReq"
|
|
391
|
-
}), /* @__PURE__ */
|
|
403
|
+
}), /* @__PURE__ */ f("label", {
|
|
392
404
|
htmlFor: "confReq",
|
|
393
405
|
className: "text-sm",
|
|
394
|
-
children:
|
|
406
|
+
children: D("vibecontrols.vibedeck.buttonForm.requireConfirmation", "Require confirmation")
|
|
395
407
|
})]
|
|
396
408
|
})
|
|
397
409
|
}),
|
|
398
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ p("div", {
|
|
399
411
|
className: "flex justify-end gap-3 pt-2",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
405
|
-
}), /* @__PURE__ */
|
|
416
|
+
children: D("vibecontrols.vibedeck.buttonForm.cancel", "Cancel")
|
|
417
|
+
}), /* @__PURE__ */ f("button", {
|
|
406
418
|
type: "submit",
|
|
407
|
-
disabled:
|
|
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:
|
|
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 {
|
|
430
|
+
export { _ as VibeDeckButtonForm };
|
|
419
431
|
|
|
420
432
|
//# sourceMappingURL=VibeDeckButtonForm.js.map
|