@burdenoff/microfe-vibecontrols 2026.519.2 → 2026.519.4
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 +138 -134
- package/dist/components/actions/ActionForm.js.map +1 -1
- package/dist/components/docs/DocsPageEditor.js +83 -69
- package/dist/components/docs/DocsPageEditor.js.map +1 -1
- package/dist/components/notes/NotesTabPanel.js +4 -5
- package/dist/components/notes/NotesTabPanel.js.map +1 -1
- package/dist/components/shared/EntityTagPicker.js +110 -81
- package/dist/components/shared/EntityTagPicker.js.map +1 -1
- package/dist/components/shared/TagFilter.js +4 -4
- package/dist/components/shared/index.js +1 -1
- package/dist/components/tunnels/TunnelCreateWizard.js +208 -187
- package/dist/components/tunnels/TunnelCreateWizard.js.map +1 -1
- package/dist/components/vibedeck/VibeDeckForm.js +41 -37
- package/dist/components/vibedeck/VibeDeckForm.js.map +1 -1
- package/dist/pages/ActionsPage.js +225 -217
- package/dist/pages/ActionsPage.js.map +1 -1
- package/dist/pages/AgentDetailsPage.js +13 -13
- package/dist/pages/AgentDetailsPage.js.map +1 -1
- package/dist/pages/CatalogDetailPage.js +248 -234
- package/dist/pages/CatalogDetailPage.js.map +1 -1
- package/dist/pages/CatalogDocsPage.js +119 -105
- package/dist/pages/CatalogDocsPage.js.map +1 -1
- package/dist/pages/ComponentDetailPage.js +257 -243
- package/dist/pages/ComponentDetailPage.js.map +1 -1
- package/dist/pages/ComponentDocsPage.js +119 -105
- package/dist/pages/ComponentDocsPage.js.map +1 -1
- package/dist/pages/SessionDetailsPage.js +4 -4
- package/dist/pages/TargetDetailsPage.js +136 -119
- package/dist/pages/TargetDetailsPage.js.map +1 -1
- package/dist/pages/TemplateDetailPage.js +47 -33
- package/dist/pages/TemplateDetailPage.js.map +1 -1
- package/dist/pages/VibeDeckPage.js +161 -153
- package/dist/pages/VibeDeckPage.js.map +1 -1
- package/dist/pages/VibeDetailsPage.js +407 -407
- package/dist/pages/VibeDetailsPage.js.map +1 -1
- package/dist/pages/VibeDocsPage.js +119 -105
- package/dist/pages/VibeDocsPage.js.map +1 -1
- package/dist/pages/tunnels/TunnelDetailsPage.js +95 -77
- package/dist/pages/tunnels/TunnelDetailsPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -28,38 +28,38 @@ var u = {
|
|
|
28
28
|
retryCount: 0,
|
|
29
29
|
confirmationRequired: !1
|
|
30
30
|
};
|
|
31
|
-
function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLoading: g = !1 }) {
|
|
32
|
-
let [
|
|
31
|
+
function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLoading: g = !1, extraSection: _ }) {
|
|
32
|
+
let [v, y] = r({
|
|
33
33
|
...u,
|
|
34
34
|
...f
|
|
35
|
-
}), [
|
|
35
|
+
}), [b, x] = r(f?.tags?.join(", ") ?? ""), S = n(null), C = s(), w = e();
|
|
36
36
|
t(() => {
|
|
37
|
-
|
|
37
|
+
S.current?.showModal();
|
|
38
38
|
}, []);
|
|
39
|
-
let
|
|
39
|
+
let T = (e, t) => y((n) => ({
|
|
40
40
|
...n,
|
|
41
41
|
[e]: t
|
|
42
|
-
})),
|
|
42
|
+
})), E = (e) => {
|
|
43
43
|
e.preventDefault();
|
|
44
|
-
let t =
|
|
44
|
+
let t = b.split(",").map((e) => e.trim()).filter(Boolean);
|
|
45
45
|
m({
|
|
46
|
-
...
|
|
46
|
+
...v,
|
|
47
47
|
tags: t
|
|
48
48
|
});
|
|
49
|
-
},
|
|
49
|
+
}, D = "w-full px-3 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", O = "block text-sm font-medium text-text-secondary mb-1";
|
|
50
50
|
return /* @__PURE__ */ c("dialog", {
|
|
51
|
-
ref:
|
|
51
|
+
ref: S,
|
|
52
52
|
className: "fixed inset-0 z-50 m-auto p-0 bg-transparent backdrop:bg-transparent",
|
|
53
53
|
onClose: h,
|
|
54
54
|
children: /* @__PURE__ */ l(a, { children: [/* @__PURE__ */ c(o.div, {
|
|
55
55
|
className: "fixed inset-0 bg-bg-overlay",
|
|
56
|
-
initial:
|
|
56
|
+
initial: C ? void 0 : { opacity: 0 },
|
|
57
57
|
animate: { opacity: 1 },
|
|
58
58
|
exit: { opacity: 0 },
|
|
59
59
|
onClick: h
|
|
60
60
|
}), /* @__PURE__ */ l(o.div, {
|
|
61
61
|
className: "relative w-full max-w-2xl max-h-[85vh] overflow-y-auto bg-bg-surface rounded-lg shadow-xl",
|
|
62
|
-
initial:
|
|
62
|
+
initial: C ? void 0 : {
|
|
63
63
|
opacity: 0,
|
|
64
64
|
scale: .95,
|
|
65
65
|
y: 8
|
|
@@ -94,50 +94,50 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
94
94
|
children: /* @__PURE__ */ c(i, { className: "w-5 h-5 text-text-secondary" })
|
|
95
95
|
})]
|
|
96
96
|
}), /* @__PURE__ */ l("form", {
|
|
97
|
-
onSubmit:
|
|
97
|
+
onSubmit: E,
|
|
98
98
|
className: "p-6 space-y-4",
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ l("div", {
|
|
101
101
|
className: "grid grid-cols-2 gap-4",
|
|
102
102
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
103
|
-
className:
|
|
104
|
-
children:
|
|
103
|
+
className: O,
|
|
104
|
+
children: w("vibecontrols.actions.form.nameSlug", "Name (slug)")
|
|
105
105
|
}), /* @__PURE__ */ c("input", {
|
|
106
|
-
className:
|
|
107
|
-
value:
|
|
108
|
-
onChange: (e) =>
|
|
106
|
+
className: D,
|
|
107
|
+
value: v.name,
|
|
108
|
+
onChange: (e) => T("name", e.target.value),
|
|
109
109
|
placeholder: "my-action",
|
|
110
110
|
required: !0
|
|
111
111
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
112
|
-
className:
|
|
113
|
-
children:
|
|
112
|
+
className: O,
|
|
113
|
+
children: w("vibecontrols.actions.form.displayName", "Display Name")
|
|
114
114
|
}), /* @__PURE__ */ c("input", {
|
|
115
|
-
className:
|
|
116
|
-
value:
|
|
117
|
-
onChange: (e) =>
|
|
115
|
+
className: D,
|
|
116
|
+
value: v.displayName,
|
|
117
|
+
onChange: (e) => T("displayName", e.target.value),
|
|
118
118
|
placeholder: "My Action",
|
|
119
119
|
required: !0
|
|
120
120
|
})] })]
|
|
121
121
|
}),
|
|
122
122
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
123
|
-
className:
|
|
124
|
-
children:
|
|
123
|
+
className: O,
|
|
124
|
+
children: w("vibecontrols.actions.form.description", "Description")
|
|
125
125
|
}), /* @__PURE__ */ c("textarea", {
|
|
126
|
-
className: `${
|
|
126
|
+
className: `${D} resize-none`,
|
|
127
127
|
rows: 2,
|
|
128
|
-
value:
|
|
129
|
-
onChange: (e) =>
|
|
128
|
+
value: v.description,
|
|
129
|
+
onChange: (e) => T("description", e.target.value),
|
|
130
130
|
placeholder: "What does this action do?"
|
|
131
131
|
})] }),
|
|
132
132
|
/* @__PURE__ */ l("div", {
|
|
133
133
|
className: "grid grid-cols-2 gap-4",
|
|
134
134
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
135
|
-
className:
|
|
136
|
-
children:
|
|
135
|
+
className: O,
|
|
136
|
+
children: w("vibecontrols.actions.form.actionType", "Action Type")
|
|
137
137
|
}), /* @__PURE__ */ l("select", {
|
|
138
|
-
className:
|
|
139
|
-
value:
|
|
140
|
-
onChange: (e) =>
|
|
138
|
+
className: D,
|
|
139
|
+
value: v.actionType,
|
|
140
|
+
onChange: (e) => T("actionType", e.target.value),
|
|
141
141
|
children: [
|
|
142
142
|
/* @__PURE__ */ c("option", {
|
|
143
143
|
value: "COMMAND",
|
|
@@ -157,12 +157,12 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
157
157
|
})
|
|
158
158
|
]
|
|
159
159
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
160
|
-
className:
|
|
161
|
-
children:
|
|
160
|
+
className: O,
|
|
161
|
+
children: w("vibecontrols.actions.form.triggerType", "Trigger Type")
|
|
162
162
|
}), /* @__PURE__ */ l("select", {
|
|
163
|
-
className:
|
|
164
|
-
value:
|
|
165
|
-
onChange: (e) =>
|
|
163
|
+
className: D,
|
|
164
|
+
value: v.triggerType,
|
|
165
|
+
onChange: (e) => T("triggerType", e.target.value),
|
|
166
166
|
children: [
|
|
167
167
|
/* @__PURE__ */ c("option", {
|
|
168
168
|
value: "MANUAL",
|
|
@@ -183,113 +183,113 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
183
183
|
]
|
|
184
184
|
})] })]
|
|
185
185
|
}),
|
|
186
|
-
|
|
187
|
-
className:
|
|
188
|
-
children:
|
|
186
|
+
v.triggerType === "SCHEDULED" && /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
187
|
+
className: O,
|
|
188
|
+
children: w("vibecontrols.actions.form.schedule", "Schedule (cron expression)")
|
|
189
189
|
}), /* @__PURE__ */ c("input", {
|
|
190
|
-
className:
|
|
191
|
-
value:
|
|
192
|
-
onChange: (e) =>
|
|
190
|
+
className: D,
|
|
191
|
+
value: v.schedule,
|
|
192
|
+
onChange: (e) => T("schedule", e.target.value),
|
|
193
193
|
placeholder: "*/5 * * * *"
|
|
194
194
|
})] }),
|
|
195
195
|
/* @__PURE__ */ l("div", {
|
|
196
196
|
className: "grid grid-cols-2 gap-4",
|
|
197
197
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
198
|
-
className:
|
|
199
|
-
children:
|
|
198
|
+
className: O,
|
|
199
|
+
children: w("vibecontrols.actions.form.category", "Category")
|
|
200
200
|
}), /* @__PURE__ */ c("input", {
|
|
201
|
-
className:
|
|
202
|
-
value:
|
|
203
|
-
onChange: (e) =>
|
|
201
|
+
className: D,
|
|
202
|
+
value: v.category,
|
|
203
|
+
onChange: (e) => T("category", e.target.value),
|
|
204
204
|
placeholder: "deployment, testing, etc."
|
|
205
205
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
206
|
-
className:
|
|
207
|
-
children:
|
|
206
|
+
className: O,
|
|
207
|
+
children: w("vibecontrols.actions.form.tags", "Tags (comma separated)")
|
|
208
208
|
}), /* @__PURE__ */ c("input", {
|
|
209
|
-
className:
|
|
210
|
-
value:
|
|
211
|
-
onChange: (e) =>
|
|
209
|
+
className: D,
|
|
210
|
+
value: b,
|
|
211
|
+
onChange: (e) => x(e.target.value),
|
|
212
212
|
placeholder: "ci, deploy, infra"
|
|
213
213
|
})] })]
|
|
214
214
|
}),
|
|
215
|
-
|
|
215
|
+
v.actionType === "COMMAND" && /* @__PURE__ */ l("div", {
|
|
216
216
|
className: "space-y-4 p-4 rounded-lg bg-bg-sunken/50 border border-border-default",
|
|
217
217
|
children: [
|
|
218
218
|
/* @__PURE__ */ c("h3", {
|
|
219
219
|
className: "text-sm font-semibold text-text-primary",
|
|
220
|
-
children:
|
|
220
|
+
children: w("vibecontrols.actions.form.commandSettings", "Command Settings")
|
|
221
221
|
}),
|
|
222
222
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
223
|
-
className:
|
|
224
|
-
children:
|
|
223
|
+
className: O,
|
|
224
|
+
children: w("vibecontrols.actions.form.command", "Command")
|
|
225
225
|
}), /* @__PURE__ */ c("textarea", {
|
|
226
|
-
className: `${
|
|
226
|
+
className: `${D} font-mono resize-none`,
|
|
227
227
|
rows: 3,
|
|
228
|
-
value:
|
|
229
|
-
onChange: (e) =>
|
|
228
|
+
value: v.command,
|
|
229
|
+
onChange: (e) => T("command", e.target.value),
|
|
230
230
|
placeholder: "echo 'Hello World'",
|
|
231
231
|
required: !0
|
|
232
232
|
})] }),
|
|
233
233
|
/* @__PURE__ */ l("div", {
|
|
234
234
|
className: "grid grid-cols-2 gap-4",
|
|
235
235
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
236
|
-
className:
|
|
237
|
-
children:
|
|
236
|
+
className: O,
|
|
237
|
+
children: w("vibecontrols.actions.form.workingDirectory", "Working Directory")
|
|
238
238
|
}), /* @__PURE__ */ c("input", {
|
|
239
|
-
className:
|
|
240
|
-
value:
|
|
241
|
-
onChange: (e) =>
|
|
239
|
+
className: D,
|
|
240
|
+
value: v.workingDirectory,
|
|
241
|
+
onChange: (e) => T("workingDirectory", e.target.value),
|
|
242
242
|
placeholder: "/home/user/project"
|
|
243
243
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
244
|
-
className:
|
|
245
|
-
children:
|
|
244
|
+
className: O,
|
|
245
|
+
children: w("vibecontrols.actions.form.targetAgent", "Target Agent")
|
|
246
246
|
}), /* @__PURE__ */ l("select", {
|
|
247
|
-
className:
|
|
248
|
-
value:
|
|
249
|
-
onChange: (e) =>
|
|
247
|
+
className: D,
|
|
248
|
+
value: v.targetAgentId,
|
|
249
|
+
onChange: (e) => T("targetAgentId", e.target.value),
|
|
250
250
|
children: [/* @__PURE__ */ c("option", {
|
|
251
251
|
value: "",
|
|
252
|
-
children:
|
|
252
|
+
children: w("vibecontrols.actions.form.anyAvailableAgent", "Any available agent")
|
|
253
253
|
}), p.map((e) => /* @__PURE__ */ l("option", {
|
|
254
254
|
value: e.id,
|
|
255
255
|
disabled: !e.isActive,
|
|
256
256
|
children: [
|
|
257
257
|
e.name,
|
|
258
258
|
" ",
|
|
259
|
-
e.isActive ? "" :
|
|
259
|
+
e.isActive ? "" : w("vibecontrols.actions.form.offline", "(offline)")
|
|
260
260
|
]
|
|
261
261
|
}, e.id))]
|
|
262
262
|
})] })]
|
|
263
263
|
})
|
|
264
264
|
]
|
|
265
265
|
}),
|
|
266
|
-
|
|
266
|
+
v.actionType === "SCRIPT" && /* @__PURE__ */ l("div", {
|
|
267
267
|
className: "space-y-4 p-4 rounded-lg bg-bg-sunken/50 border border-border-default",
|
|
268
268
|
children: [
|
|
269
269
|
/* @__PURE__ */ c("h3", {
|
|
270
270
|
className: "text-sm font-semibold text-text-primary",
|
|
271
|
-
children:
|
|
271
|
+
children: w("vibecontrols.actions.form.scriptSettings", "Script Settings")
|
|
272
272
|
}),
|
|
273
273
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
274
|
-
className:
|
|
275
|
-
children:
|
|
274
|
+
className: O,
|
|
275
|
+
children: w("vibecontrols.actions.form.script", "Script")
|
|
276
276
|
}), /* @__PURE__ */ c("textarea", {
|
|
277
|
-
className: `${
|
|
277
|
+
className: `${D} font-mono resize-none`,
|
|
278
278
|
rows: 6,
|
|
279
|
-
value:
|
|
280
|
-
onChange: (e) =>
|
|
279
|
+
value: v.script,
|
|
280
|
+
onChange: (e) => T("script", e.target.value),
|
|
281
281
|
placeholder: "#!/bin/bash\necho 'Hello'",
|
|
282
282
|
required: !0
|
|
283
283
|
})] }),
|
|
284
284
|
/* @__PURE__ */ l("div", {
|
|
285
285
|
className: "grid grid-cols-2 gap-4",
|
|
286
286
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
287
|
-
className:
|
|
288
|
-
children:
|
|
287
|
+
className: O,
|
|
288
|
+
children: w("vibecontrols.actions.form.interpreter", "Interpreter")
|
|
289
289
|
}), /* @__PURE__ */ l("select", {
|
|
290
|
-
className:
|
|
291
|
-
value:
|
|
292
|
-
onChange: (e) =>
|
|
290
|
+
className: D,
|
|
291
|
+
value: v.scriptInterpreter,
|
|
292
|
+
onChange: (e) => T("scriptInterpreter", e.target.value),
|
|
293
293
|
children: [
|
|
294
294
|
/* @__PURE__ */ c("option", {
|
|
295
295
|
value: "bash",
|
|
@@ -305,62 +305,62 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
305
305
|
})
|
|
306
306
|
]
|
|
307
307
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
308
|
-
className:
|
|
309
|
-
children:
|
|
308
|
+
className: O,
|
|
309
|
+
children: w("vibecontrols.actions.form.targetAgent", "Target Agent")
|
|
310
310
|
}), /* @__PURE__ */ l("select", {
|
|
311
|
-
className:
|
|
312
|
-
value:
|
|
313
|
-
onChange: (e) =>
|
|
311
|
+
className: D,
|
|
312
|
+
value: v.targetAgentId,
|
|
313
|
+
onChange: (e) => T("targetAgentId", e.target.value),
|
|
314
314
|
children: [/* @__PURE__ */ c("option", {
|
|
315
315
|
value: "",
|
|
316
|
-
children:
|
|
316
|
+
children: w("vibecontrols.actions.form.anyAvailableAgent", "Any available agent")
|
|
317
317
|
}), p.map((e) => /* @__PURE__ */ l("option", {
|
|
318
318
|
value: e.id,
|
|
319
319
|
disabled: !e.isActive,
|
|
320
320
|
children: [
|
|
321
321
|
e.name,
|
|
322
322
|
" ",
|
|
323
|
-
e.isActive ? "" :
|
|
323
|
+
e.isActive ? "" : w("vibecontrols.actions.form.offline", "(offline)")
|
|
324
324
|
]
|
|
325
325
|
}, e.id))]
|
|
326
326
|
})] })]
|
|
327
327
|
}),
|
|
328
328
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
329
|
-
className:
|
|
330
|
-
children:
|
|
329
|
+
className: O,
|
|
330
|
+
children: w("vibecontrols.actions.form.workingDirectory", "Working Directory")
|
|
331
331
|
}), /* @__PURE__ */ c("input", {
|
|
332
|
-
className:
|
|
333
|
-
value:
|
|
334
|
-
onChange: (e) =>
|
|
332
|
+
className: D,
|
|
333
|
+
value: v.workingDirectory,
|
|
334
|
+
onChange: (e) => T("workingDirectory", e.target.value),
|
|
335
335
|
placeholder: "/home/user/project"
|
|
336
336
|
})] })
|
|
337
337
|
]
|
|
338
338
|
}),
|
|
339
|
-
|
|
339
|
+
v.actionType === "WEBHOOK" && /* @__PURE__ */ l("div", {
|
|
340
340
|
className: "space-y-4 p-4 rounded-lg bg-bg-sunken/50 border border-border-default",
|
|
341
341
|
children: [
|
|
342
342
|
/* @__PURE__ */ c("h3", {
|
|
343
343
|
className: "text-sm font-semibold text-text-primary",
|
|
344
|
-
children:
|
|
344
|
+
children: w("vibecontrols.actions.form.webhookSettings", "Webhook Settings")
|
|
345
345
|
}),
|
|
346
346
|
/* @__PURE__ */ l("div", {
|
|
347
347
|
className: "grid grid-cols-[1fr_auto] gap-4",
|
|
348
348
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
349
|
-
className:
|
|
350
|
-
children:
|
|
349
|
+
className: O,
|
|
350
|
+
children: w("vibecontrols.actions.form.url", "URL")
|
|
351
351
|
}), /* @__PURE__ */ c("input", {
|
|
352
|
-
className:
|
|
353
|
-
value:
|
|
354
|
-
onChange: (e) =>
|
|
352
|
+
className: D,
|
|
353
|
+
value: v.webhookUrl,
|
|
354
|
+
onChange: (e) => T("webhookUrl", e.target.value),
|
|
355
355
|
placeholder: "https://api.example.com/hook",
|
|
356
356
|
required: !0
|
|
357
357
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
358
|
-
className:
|
|
359
|
-
children:
|
|
358
|
+
className: O,
|
|
359
|
+
children: w("vibecontrols.actions.form.method", "Method")
|
|
360
360
|
}), /* @__PURE__ */ l("select", {
|
|
361
|
-
className:
|
|
362
|
-
value:
|
|
363
|
-
onChange: (e) =>
|
|
361
|
+
className: D,
|
|
362
|
+
value: v.webhookMethod,
|
|
363
|
+
onChange: (e) => T("webhookMethod", e.target.value),
|
|
364
364
|
children: [
|
|
365
365
|
/* @__PURE__ */ c("option", {
|
|
366
366
|
value: "GET",
|
|
@@ -386,22 +386,22 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
386
386
|
})] })]
|
|
387
387
|
}),
|
|
388
388
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
389
|
-
className:
|
|
390
|
-
children:
|
|
389
|
+
className: O,
|
|
390
|
+
children: w("vibecontrols.actions.form.bodyJson", "Body (JSON)")
|
|
391
391
|
}), /* @__PURE__ */ c("textarea", {
|
|
392
|
-
className: `${
|
|
392
|
+
className: `${D} font-mono resize-none`,
|
|
393
393
|
rows: 4,
|
|
394
|
-
value:
|
|
395
|
-
onChange: (e) =>
|
|
394
|
+
value: v.webhookBody,
|
|
395
|
+
onChange: (e) => T("webhookBody", e.target.value),
|
|
396
396
|
placeholder: "{\"key\": \"value\"}"
|
|
397
397
|
})] }),
|
|
398
398
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
399
|
-
className:
|
|
400
|
-
children:
|
|
399
|
+
className: O,
|
|
400
|
+
children: w("vibecontrols.actions.form.authType", "Auth Type")
|
|
401
401
|
}), /* @__PURE__ */ l("select", {
|
|
402
|
-
className:
|
|
403
|
-
value:
|
|
404
|
-
onChange: (e) =>
|
|
402
|
+
className: D,
|
|
403
|
+
value: v.webhookAuthType,
|
|
404
|
+
onChange: (e) => T("webhookAuthType", e.target.value),
|
|
405
405
|
children: [
|
|
406
406
|
/* @__PURE__ */ c("option", {
|
|
407
407
|
value: "",
|
|
@@ -427,26 +427,26 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
427
427
|
className: "grid grid-cols-3 gap-4",
|
|
428
428
|
children: [
|
|
429
429
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
430
|
-
className:
|
|
431
|
-
children:
|
|
430
|
+
className: O,
|
|
431
|
+
children: w("vibecontrols.actions.form.timeout", "Timeout (ms)")
|
|
432
432
|
}), /* @__PURE__ */ c("input", {
|
|
433
|
-
className:
|
|
433
|
+
className: D,
|
|
434
434
|
type: "number",
|
|
435
435
|
min: 1e3,
|
|
436
436
|
max: 3e5,
|
|
437
|
-
value:
|
|
438
|
-
onChange: (e) =>
|
|
437
|
+
value: v.timeoutMs,
|
|
438
|
+
onChange: (e) => T("timeoutMs", parseInt(e.target.value) || 3e4)
|
|
439
439
|
})] }),
|
|
440
440
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
441
|
-
className:
|
|
442
|
-
children:
|
|
441
|
+
className: O,
|
|
442
|
+
children: w("vibecontrols.actions.form.retryCount", "Retry Count")
|
|
443
443
|
}), /* @__PURE__ */ c("input", {
|
|
444
|
-
className:
|
|
444
|
+
className: D,
|
|
445
445
|
type: "number",
|
|
446
446
|
min: 0,
|
|
447
447
|
max: 10,
|
|
448
|
-
value:
|
|
449
|
-
onChange: (e) =>
|
|
448
|
+
value: v.retryCount,
|
|
449
|
+
onChange: (e) => T("retryCount", parseInt(e.target.value) || 0)
|
|
450
450
|
})] }),
|
|
451
451
|
/* @__PURE__ */ c("div", {
|
|
452
452
|
className: "flex items-end pb-2",
|
|
@@ -454,14 +454,18 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
454
454
|
className: "flex items-center gap-2 text-sm text-text-secondary cursor-pointer",
|
|
455
455
|
children: [/* @__PURE__ */ c("input", {
|
|
456
456
|
type: "checkbox",
|
|
457
|
-
checked:
|
|
458
|
-
onChange: (e) =>
|
|
457
|
+
checked: v.confirmationRequired,
|
|
458
|
+
onChange: (e) => T("confirmationRequired", e.target.checked),
|
|
459
459
|
className: "rounded border-border-default"
|
|
460
|
-
}),
|
|
460
|
+
}), w("vibecontrols.actions.form.requireConfirmation", "Require confirmation")]
|
|
461
461
|
})
|
|
462
462
|
})
|
|
463
463
|
]
|
|
464
464
|
}),
|
|
465
|
+
_ && /* @__PURE__ */ c("div", {
|
|
466
|
+
className: "pt-4 border-t border-border-default",
|
|
467
|
+
children: _
|
|
468
|
+
}),
|
|
465
469
|
/* @__PURE__ */ l("div", {
|
|
466
470
|
className: "flex items-center justify-end gap-3 pt-4 border-t border-border-default",
|
|
467
471
|
children: [/* @__PURE__ */ c("button", {
|
|
@@ -469,12 +473,12 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
469
473
|
onClick: h,
|
|
470
474
|
disabled: g,
|
|
471
475
|
className: "px-4 py-2 text-sm font-medium text-text-primary bg-bg-surface border border-border-default rounded-md hover:bg-bg-elevated transition-colors disabled:opacity-50",
|
|
472
|
-
children:
|
|
476
|
+
children: w("vibecontrols.actions.form.cancel", "Cancel")
|
|
473
477
|
}), /* @__PURE__ */ c("button", {
|
|
474
478
|
type: "submit",
|
|
475
479
|
disabled: g,
|
|
476
480
|
className: "px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg-hover transition-colors disabled:opacity-50",
|
|
477
|
-
children: g ?
|
|
481
|
+
children: g ? w("vibecontrols.actions.form.saving", "Saving...") : f ? w("vibecontrols.actions.form.updateAction", "Update Action") : w("vibecontrols.actions.form.createAction", "Create Action")
|
|
478
482
|
})]
|
|
479
483
|
})
|
|
480
484
|
]
|