@burdenoff/microfe-vibecontrols 2026.601.12 → 2026.601.13
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/_virtual/_rolldown/runtime.js +5 -2
- package/dist/components/actions/ActionForm.js +270 -255
- package/dist/components/actions/ActionForm.js.map +1 -1
- package/dist/components/actions/RemoteExecutionEnableNotice.js +85 -0
- package/dist/components/actions/RemoteExecutionEnableNotice.js.map +1 -0
- package/dist/components/agents/AgentConnectionRecovery.js +123 -0
- package/dist/components/agents/AgentConnectionRecovery.js.map +1 -0
- package/dist/components/agents/RemoteTaskPermissionsCard.js +37 -36
- package/dist/components/agents/RemoteTaskPermissionsCard.js.map +1 -1
- package/dist/components/graph/MeshAgentNode.js +74 -0
- package/dist/components/graph/MeshAgentNode.js.map +1 -0
- package/dist/components/graph/MeshDeployWizard.js +393 -0
- package/dist/components/graph/MeshDeployWizard.js.map +1 -0
- package/dist/components/graph/MeshGraphView.js +190 -0
- package/dist/components/graph/MeshGraphView.js.map +1 -0
- package/dist/components/graph/MeshNodeActions.js +70 -0
- package/dist/components/graph/MeshNodeActions.js.map +1 -0
- package/dist/components/graph/MeshRequestPanel.js +240 -0
- package/dist/components/graph/MeshRequestPanel.js.map +1 -0
- package/dist/components/graph/meshTypes.js +11 -0
- package/dist/components/graph/meshTypes.js.map +1 -0
- package/dist/components/graph/nodeIcons.js +31 -0
- package/dist/components/graph/nodeIcons.js.map +1 -0
- package/dist/components/shared/EnableRemoteTaskDialog.js +48 -0
- package/dist/components/shared/EnableRemoteTaskDialog.js.map +1 -0
- package/dist/components/shared/index.js +1 -0
- package/dist/generated/wspace-operations.js +1896 -1649
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +14 -12
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.js +10 -10
- package/dist/node_modules/dagre/index.js +24 -0
- package/dist/node_modules/dagre/index.js.map +1 -0
- package/dist/node_modules/dagre/lib/acyclic.js +47 -0
- package/dist/node_modules/dagre/lib/acyclic.js.map +1 -0
- package/dist/node_modules/dagre/lib/add-border-segments.js +32 -0
- package/dist/node_modules/dagre/lib/add-border-segments.js.map +1 -0
- package/dist/node_modules/dagre/lib/coordinate-system.js +57 -0
- package/dist/node_modules/dagre/lib/coordinate-system.js.map +1 -0
- package/dist/node_modules/dagre/lib/data/list.js +30 -0
- package/dist/node_modules/dagre/lib/data/list.js.map +1 -0
- package/dist/node_modules/dagre/lib/debug.js +31 -0
- package/dist/node_modules/dagre/lib/debug.js.map +1 -0
- package/dist/node_modules/dagre/lib/graphlib.js +15 -0
- package/dist/node_modules/dagre/lib/graphlib.js.map +1 -0
- package/dist/node_modules/dagre/lib/greedy-fas.js +74 -0
- package/dist/node_modules/dagre/lib/greedy-fas.js.map +1 -0
- package/dist/node_modules/dagre/lib/layout.js +305 -0
- package/dist/node_modules/dagre/lib/layout.js.map +1 -0
- package/dist/node_modules/dagre/lib/lodash.js +67 -0
- package/dist/node_modules/dagre/lib/lodash.js.map +1 -0
- package/dist/node_modules/dagre/lib/nesting-graph.js +76 -0
- package/dist/node_modules/dagre/lib/nesting-graph.js.map +1 -0
- package/dist/node_modules/dagre/lib/normalize.js +45 -0
- package/dist/node_modules/dagre/lib/normalize.js.map +1 -0
- package/dist/node_modules/dagre/lib/order/add-subgraph-constraints.js +24 -0
- package/dist/node_modules/dagre/lib/order/add-subgraph-constraints.js.map +1 -0
- package/dist/node_modules/dagre/lib/order/barycenter.js +34 -0
- package/dist/node_modules/dagre/lib/order/barycenter.js.map +1 -0
- package/dist/node_modules/dagre/lib/order/build-layer-graph.js +32 -0
- package/dist/node_modules/dagre/lib/order/build-layer-graph.js.map +1 -0
- package/dist/node_modules/dagre/lib/order/cross-count.js +39 -0
- package/dist/node_modules/dagre/lib/order/cross-count.js.map +1 -0
- package/dist/node_modules/dagre/lib/order/index.js +50 -0
- package/dist/node_modules/dagre/lib/order/index.js.map +1 -0
- package/dist/node_modules/dagre/lib/order/init-order.js +28 -0
- package/dist/node_modules/dagre/lib/order/init-order.js.map +1 -0
- package/dist/node_modules/dagre/lib/order/resolve-conflicts.js +61 -0
- package/dist/node_modules/dagre/lib/order/resolve-conflicts.js.map +1 -0
- package/dist/node_modules/dagre/lib/order/sort-subgraph.js +50 -0
- package/dist/node_modules/dagre/lib/order/sort-subgraph.js.map +1 -0
- package/dist/node_modules/dagre/lib/order/sort.js +34 -0
- package/dist/node_modules/dagre/lib/order/sort.js.map +1 -0
- package/dist/node_modules/dagre/lib/parent-dummy-chains.js +50 -0
- package/dist/node_modules/dagre/lib/parent-dummy-chains.js.map +1 -0
- package/dist/node_modules/dagre/lib/position/bk.js +212 -0
- package/dist/node_modules/dagre/lib/position/bk.js.map +1 -0
- package/dist/node_modules/dagre/lib/position/index.js +30 -0
- package/dist/node_modules/dagre/lib/position/index.js.map +1 -0
- package/dist/node_modules/dagre/lib/rank/feasible-tree.js +39 -0
- package/dist/node_modules/dagre/lib/rank/feasible-tree.js.map +1 -0
- package/dist/node_modules/dagre/lib/rank/index.js +35 -0
- package/dist/node_modules/dagre/lib/rank/index.js.map +1 -0
- package/dist/node_modules/dagre/lib/rank/network-simplex.js +90 -0
- package/dist/node_modules/dagre/lib/rank/network-simplex.js.map +1 -0
- package/dist/node_modules/dagre/lib/rank/util.js +31 -0
- package/dist/node_modules/dagre/lib/rank/util.js.map +1 -0
- package/dist/node_modules/dagre/lib/util.js +151 -0
- package/dist/node_modules/dagre/lib/util.js.map +1 -0
- package/dist/node_modules/dagre/lib/version.js +10 -0
- package/dist/node_modules/dagre/lib/version.js.map +1 -0
- package/dist/node_modules/graphlib/index.js +19 -0
- package/dist/node_modules/graphlib/index.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/components.js +21 -0
- package/dist/node_modules/graphlib/lib/alg/components.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/dfs.js +25 -0
- package/dist/node_modules/graphlib/lib/alg/dfs.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/dijkstra-all.js +18 -0
- package/dist/node_modules/graphlib/lib/alg/dijkstra-all.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/dijkstra.js +31 -0
- package/dist/node_modules/graphlib/lib/alg/dijkstra.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/find-cycles.js +18 -0
- package/dist/node_modules/graphlib/lib/alg/find-cycles.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/floyd-warshall.js +41 -0
- package/dist/node_modules/graphlib/lib/alg/floyd-warshall.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/index.js +33 -0
- package/dist/node_modules/graphlib/lib/alg/index.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/is-acyclic.js +21 -0
- package/dist/node_modules/graphlib/lib/alg/is-acyclic.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/postorder.js +15 -0
- package/dist/node_modules/graphlib/lib/alg/postorder.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/preorder.js +15 -0
- package/dist/node_modules/graphlib/lib/alg/preorder.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/prim.js +35 -0
- package/dist/node_modules/graphlib/lib/alg/prim.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/tarjan.js +34 -0
- package/dist/node_modules/graphlib/lib/alg/tarjan.js.map +1 -0
- package/dist/node_modules/graphlib/lib/alg/topsort.js +23 -0
- package/dist/node_modules/graphlib/lib/alg/topsort.js.map +1 -0
- package/dist/node_modules/graphlib/lib/data/priority-queue.js +56 -0
- package/dist/node_modules/graphlib/lib/data/priority-queue.js.map +1 -0
- package/dist/node_modules/graphlib/lib/graph.js +196 -0
- package/dist/node_modules/graphlib/lib/graph.js.map +1 -0
- package/dist/node_modules/graphlib/lib/index.js +15 -0
- package/dist/node_modules/graphlib/lib/index.js.map +1 -0
- package/dist/node_modules/graphlib/lib/json.js +55 -0
- package/dist/node_modules/graphlib/lib/json.js.map +1 -0
- package/dist/node_modules/graphlib/lib/lodash.js +47 -0
- package/dist/node_modules/graphlib/lib/lodash.js.map +1 -0
- package/dist/node_modules/graphlib/lib/version.js +10 -0
- package/dist/node_modules/graphlib/lib/version.js.map +1 -0
- package/dist/node_modules/lodash/_arrayEach.js +14 -0
- package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
- package/dist/node_modules/lodash/_arrayReduce.js +15 -0
- package/dist/node_modules/lodash/_arrayReduce.js.map +1 -0
- package/dist/node_modules/lodash/_asciiSize.js +11 -0
- package/dist/node_modules/lodash/_asciiSize.js.map +1 -0
- package/dist/node_modules/lodash/_assignMergeValue.js +16 -0
- package/dist/node_modules/lodash/_assignMergeValue.js.map +1 -0
- package/dist/node_modules/lodash/_assignValue.js +17 -0
- package/dist/node_modules/lodash/_assignValue.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssign.js +16 -0
- package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
- package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseClone.js +64 -0
- package/dist/node_modules/lodash/_baseClone.js.map +1 -0
- package/dist/node_modules/lodash/_baseCreate.js +21 -0
- package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
- package/dist/node_modules/lodash/_baseFilter.js +18 -0
- package/dist/node_modules/lodash/_baseFilter.js.map +1 -0
- package/dist/node_modules/lodash/_baseHas.js +14 -0
- package/dist/node_modules/lodash/_baseHas.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMap.js +16 -0
- package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsSet.js +16 -0
- package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
- package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseMerge.js +27 -0
- package/dist/node_modules/lodash/_baseMerge.js.map +1 -0
- package/dist/node_modules/lodash/_baseMergeDeep.js +39 -0
- package/dist/node_modules/lodash/_baseMergeDeep.js.map +1 -0
- package/dist/node_modules/lodash/_basePick.js +18 -0
- package/dist/node_modules/lodash/_basePick.js.map +1 -0
- package/dist/node_modules/lodash/_basePickBy.js +21 -0
- package/dist/node_modules/lodash/_basePickBy.js.map +1 -0
- package/dist/node_modules/lodash/_baseReduce.js +15 -0
- package/dist/node_modules/lodash/_baseReduce.js.map +1 -0
- package/dist/node_modules/lodash/_baseSet.js +30 -0
- package/dist/node_modules/lodash/_baseSet.js.map +1 -0
- package/dist/node_modules/lodash/_baseValues.js +17 -0
- package/dist/node_modules/lodash/_baseValues.js.map +1 -0
- package/dist/node_modules/lodash/_baseZipObject.js +17 -0
- package/dist/node_modules/lodash/_baseZipObject.js.map +1 -0
- package/dist/node_modules/lodash/_castFunction.js +15 -0
- package/dist/node_modules/lodash/_castFunction.js.map +1 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
- package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneDataView.js +16 -0
- package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
- package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
- package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
- package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
- package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyArray.js +15 -0
- package/dist/node_modules/lodash/_copyArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyObject.js +22 -0
- package/dist/node_modules/lodash/_copyObject.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbols.js +16 -0
- package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_createAssigner.js +23 -0
- package/dist/node_modules/lodash/_createAssigner.js.map +1 -0
- package/dist/node_modules/lodash/_flatRest.js +17 -0
- package/dist/node_modules/lodash/_flatRest.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneArray.js +15 -0
- package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
- package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneObject.js +17 -0
- package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_safeGet.js +13 -0
- package/dist/node_modules/lodash/_safeGet.js.map +1 -0
- package/dist/node_modules/lodash/_stringSize.js +17 -0
- package/dist/node_modules/lodash/_stringSize.js.map +1 -0
- package/dist/node_modules/lodash/_unicodeSize.js +25 -0
- package/dist/node_modules/lodash/_unicodeSize.js.map +1 -0
- package/dist/node_modules/lodash/clone.js +15 -0
- package/dist/node_modules/lodash/clone.js.map +1 -0
- package/dist/node_modules/lodash/cloneDeep.js +15 -0
- package/dist/node_modules/lodash/cloneDeep.js.map +1 -0
- package/dist/node_modules/lodash/defaults.js +23 -0
- package/dist/node_modules/lodash/defaults.js.map +1 -0
- package/dist/node_modules/lodash/each.js +11 -0
- package/dist/node_modules/lodash/each.js.map +1 -0
- package/dist/node_modules/lodash/filter.js +18 -0
- package/dist/node_modules/lodash/filter.js.map +1 -0
- package/dist/node_modules/lodash/flatten.js +15 -0
- package/dist/node_modules/lodash/flatten.js.map +1 -0
- package/dist/node_modules/lodash/forEach.js +18 -0
- package/dist/node_modules/lodash/forEach.js.map +1 -0
- package/dist/node_modules/lodash/forIn.js +17 -0
- package/dist/node_modules/lodash/forIn.js.map +1 -0
- package/dist/node_modules/lodash/has.js +16 -0
- package/dist/node_modules/lodash/has.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLikeObject.js +16 -0
- package/dist/node_modules/lodash/isArrayLikeObject.js.map +1 -0
- package/dist/node_modules/lodash/isEmpty.js +28 -0
- package/dist/node_modules/lodash/isEmpty.js.map +1 -0
- package/dist/node_modules/lodash/isMap.js +14 -0
- package/dist/node_modules/lodash/isMap.js.map +1 -0
- package/dist/node_modules/lodash/isSet.js +14 -0
- package/dist/node_modules/lodash/isSet.js.map +1 -0
- package/dist/node_modules/lodash/isUndefined.js +13 -0
- package/dist/node_modules/lodash/isUndefined.js.map +1 -0
- package/dist/node_modules/lodash/keysIn.js +17 -0
- package/dist/node_modules/lodash/keysIn.js.map +1 -0
- package/dist/node_modules/lodash/merge.js +15 -0
- package/dist/node_modules/lodash/merge.js.map +1 -0
- package/dist/node_modules/lodash/pick.js +15 -0
- package/dist/node_modules/lodash/pick.js.map +1 -0
- package/dist/node_modules/lodash/reduce.js +20 -0
- package/dist/node_modules/lodash/reduce.js.map +1 -0
- package/dist/node_modules/lodash/size.js +22 -0
- package/dist/node_modules/lodash/size.js.map +1 -0
- package/dist/node_modules/lodash/toPlainObject.js +16 -0
- package/dist/node_modules/lodash/toPlainObject.js.map +1 -0
- package/dist/node_modules/lodash/transform.js +31 -0
- package/dist/node_modules/lodash/transform.js.map +1 -0
- package/dist/node_modules/lodash/union.js +17 -0
- package/dist/node_modules/lodash/union.js.map +1 -0
- package/dist/node_modules/lodash/uniqueId.js +16 -0
- package/dist/node_modules/lodash/uniqueId.js.map +1 -0
- package/dist/node_modules/lodash/values.js +16 -0
- package/dist/node_modules/lodash/values.js.map +1 -0
- package/dist/node_modules/lodash/zipObject.js +16 -0
- package/dist/node_modules/lodash/zipObject.js.map +1 -0
- package/dist/pages/ActionsPage.js +269 -230
- package/dist/pages/ActionsPage.js.map +1 -1
- package/dist/pages/AgentDetailsPage.js +442 -436
- package/dist/pages/AgentDetailsPage.js.map +1 -1
- package/dist/pages/AgentGraphPage.js +251 -118
- package/dist/pages/AgentGraphPage.js.map +1 -1
- package/dist/pages/VibeDeckPage.js +268 -224
- package/dist/pages/VibeDeckPage.js.map +1 -1
- package/dist/services/agentRemoteTaskGates.js +29 -0
- package/dist/services/agentRemoteTaskGates.js.map +1 -0
- package/package.json +3 -1
- package/dist/components/graph/AgentGraphView.js +0 -237
- package/dist/components/graph/AgentGraphView.js.map +0 -1
- package/dist/components/graph/AgentNode.js +0 -54
- package/dist/components/graph/AgentNode.js.map +0 -1
- package/dist/components/graph/TargetNode.js +0 -76
- package/dist/components/graph/TargetNode.js.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { RemoteExecutionEnableNotice as t } from "./RemoteExecutionEnableNotice.js";
|
|
3
|
+
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
4
|
+
import { X as a } from "lucide-react";
|
|
5
|
+
import { AnimatePresence as o, motion as s, useReducedMotion as c } from "framer-motion";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
7
|
//#region src/components/actions/ActionForm.tsx
|
|
7
|
-
var
|
|
8
|
+
var d = {
|
|
8
9
|
name: "",
|
|
9
10
|
displayName: "",
|
|
10
11
|
description: "",
|
|
@@ -28,38 +29,38 @@ var u = {
|
|
|
28
29
|
retryCount: 0,
|
|
29
30
|
confirmationRequired: !1
|
|
30
31
|
};
|
|
31
|
-
function
|
|
32
|
-
let [
|
|
33
|
-
...
|
|
34
|
-
...
|
|
35
|
-
}), [
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
function f({ title: f, initialData: p, agents: m, onSubmit: h, onCancel: g, isLoading: _ = !1, extraSection: v }) {
|
|
33
|
+
let [y, b] = i({
|
|
34
|
+
...d,
|
|
35
|
+
...p
|
|
36
|
+
}), [x, S] = i(p?.tags?.join(", ") ?? ""), C = r(null), w = c(), T = e();
|
|
37
|
+
n(() => {
|
|
38
|
+
C.current?.showModal();
|
|
38
39
|
}, []);
|
|
39
|
-
let
|
|
40
|
+
let E = (e, t) => b((n) => ({
|
|
40
41
|
...n,
|
|
41
42
|
[e]: t
|
|
42
|
-
})),
|
|
43
|
+
})), D = (e) => {
|
|
43
44
|
e.preventDefault();
|
|
44
|
-
let t =
|
|
45
|
-
|
|
46
|
-
...
|
|
45
|
+
let t = x.split(",").map((e) => e.trim()).filter(Boolean);
|
|
46
|
+
h({
|
|
47
|
+
...y,
|
|
47
48
|
tags: t
|
|
48
49
|
});
|
|
49
|
-
},
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
ref:
|
|
50
|
+
}, O = "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", k = "block text-sm font-medium text-text-secondary mb-1";
|
|
51
|
+
return /* @__PURE__ */ l("dialog", {
|
|
52
|
+
ref: C,
|
|
52
53
|
className: "fixed inset-0 z-50 m-auto p-0 bg-transparent backdrop:bg-transparent",
|
|
53
|
-
onClose:
|
|
54
|
-
children: /* @__PURE__ */
|
|
54
|
+
onClose: g,
|
|
55
|
+
children: /* @__PURE__ */ u(o, { children: [/* @__PURE__ */ l(s.div, {
|
|
55
56
|
className: "fixed inset-0 bg-bg-overlay",
|
|
56
|
-
initial:
|
|
57
|
+
initial: w ? void 0 : { opacity: 0 },
|
|
57
58
|
animate: { opacity: 1 },
|
|
58
59
|
exit: { opacity: 0 },
|
|
59
|
-
onClick:
|
|
60
|
-
}), /* @__PURE__ */
|
|
60
|
+
onClick: g
|
|
61
|
+
}), /* @__PURE__ */ u(s.div, {
|
|
61
62
|
className: "relative w-full max-w-2xl max-h-[85vh] overflow-y-auto bg-bg-surface rounded-lg shadow-xl",
|
|
62
|
-
initial:
|
|
63
|
+
initial: w ? void 0 : {
|
|
63
64
|
opacity: 0,
|
|
64
65
|
scale: .95,
|
|
65
66
|
y: 8
|
|
@@ -83,352 +84,366 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
83
84
|
1
|
|
84
85
|
]
|
|
85
86
|
},
|
|
86
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ u("div", {
|
|
87
88
|
className: "flex items-center justify-between p-6 border-b border-border-default sticky top-0 bg-bg-surface z-10",
|
|
88
|
-
children: [/* @__PURE__ */
|
|
89
|
+
children: [/* @__PURE__ */ l("h2", {
|
|
89
90
|
className: "text-lg font-semibold text-text-primary",
|
|
90
|
-
children:
|
|
91
|
-
}), /* @__PURE__ */
|
|
91
|
+
children: f
|
|
92
|
+
}), /* @__PURE__ */ l("button", {
|
|
92
93
|
type: "button",
|
|
93
|
-
onClick:
|
|
94
|
+
onClick: g,
|
|
94
95
|
className: "p-1 rounded hover:bg-bg-sunken transition-colors",
|
|
95
|
-
children: /* @__PURE__ */
|
|
96
|
+
children: /* @__PURE__ */ l(a, { className: "size-5 text-text-secondary" })
|
|
96
97
|
})]
|
|
97
|
-
}), /* @__PURE__ */
|
|
98
|
-
onSubmit:
|
|
98
|
+
}), /* @__PURE__ */ u("form", {
|
|
99
|
+
onSubmit: D,
|
|
99
100
|
className: "p-6 space-y-4",
|
|
100
101
|
children: [
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ u("div", {
|
|
102
103
|
className: "grid grid-cols-2 gap-4",
|
|
103
|
-
children: [/* @__PURE__ */
|
|
104
|
-
className:
|
|
105
|
-
children:
|
|
106
|
-
}), /* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
105
|
+
className: k,
|
|
106
|
+
children: T("vibecontrols.actions.form.nameSlug", "Name (slug)")
|
|
107
|
+
}), /* @__PURE__ */ l("input", {
|
|
107
108
|
"aria-label": "my-action",
|
|
108
|
-
className:
|
|
109
|
-
value:
|
|
110
|
-
onChange: (e) =>
|
|
109
|
+
className: O,
|
|
110
|
+
value: y.name,
|
|
111
|
+
onChange: (e) => E("name", e.target.value),
|
|
111
112
|
placeholder: "my-action",
|
|
112
113
|
required: !0
|
|
113
|
-
})] }), /* @__PURE__ */
|
|
114
|
-
className:
|
|
115
|
-
children:
|
|
116
|
-
}), /* @__PURE__ */
|
|
114
|
+
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
115
|
+
className: k,
|
|
116
|
+
children: T("vibecontrols.actions.form.displayName", "Display Name")
|
|
117
|
+
}), /* @__PURE__ */ l("input", {
|
|
117
118
|
"aria-label": "My Action",
|
|
118
|
-
className:
|
|
119
|
-
value:
|
|
120
|
-
onChange: (e) =>
|
|
119
|
+
className: O,
|
|
120
|
+
value: y.displayName,
|
|
121
|
+
onChange: (e) => E("displayName", e.target.value),
|
|
121
122
|
placeholder: "My Action",
|
|
122
123
|
required: !0
|
|
123
124
|
})] })]
|
|
124
125
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
className:
|
|
127
|
-
children:
|
|
128
|
-
}), /* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
127
|
+
className: k,
|
|
128
|
+
children: T("vibecontrols.actions.form.description", "Description")
|
|
129
|
+
}), /* @__PURE__ */ l("textarea", {
|
|
129
130
|
"aria-label": "What does this action do?",
|
|
130
|
-
className: `${
|
|
131
|
+
className: `${O} resize-none`,
|
|
131
132
|
rows: 2,
|
|
132
|
-
value:
|
|
133
|
-
onChange: (e) =>
|
|
133
|
+
value: y.description,
|
|
134
|
+
onChange: (e) => E("description", e.target.value),
|
|
134
135
|
placeholder: "What does this action do?"
|
|
135
136
|
})] }),
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ u("div", {
|
|
137
138
|
className: "grid grid-cols-2 gap-4",
|
|
138
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
140
|
+
className: k,
|
|
141
|
+
children: T("vibecontrols.actions.form.actionType", "Action Type")
|
|
142
|
+
}), /* @__PURE__ */ u("select", {
|
|
139
143
|
className: O,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
className: D,
|
|
143
|
-
value: v.actionType,
|
|
144
|
-
onChange: (e) => T("actionType", e.target.value),
|
|
144
|
+
value: y.actionType,
|
|
145
|
+
onChange: (e) => E("actionType", e.target.value),
|
|
145
146
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ l("option", {
|
|
147
148
|
value: "COMMAND",
|
|
148
149
|
children: "Command"
|
|
149
150
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ l("option", {
|
|
151
152
|
value: "SCRIPT",
|
|
152
153
|
children: "Script"
|
|
153
154
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ l("option", {
|
|
155
156
|
value: "WEBHOOK",
|
|
156
157
|
children: "Webhook"
|
|
157
158
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ l("option", {
|
|
159
160
|
value: "WORKFLOW",
|
|
160
161
|
children: "Workflow"
|
|
161
162
|
})
|
|
162
163
|
]
|
|
163
|
-
})] }), /* @__PURE__ */
|
|
164
|
+
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
165
|
+
className: k,
|
|
166
|
+
children: T("vibecontrols.actions.form.triggerType", "Trigger Type")
|
|
167
|
+
}), /* @__PURE__ */ u("select", {
|
|
164
168
|
className: O,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
className: D,
|
|
168
|
-
value: v.triggerType,
|
|
169
|
-
onChange: (e) => T("triggerType", e.target.value),
|
|
169
|
+
value: y.triggerType,
|
|
170
|
+
onChange: (e) => E("triggerType", e.target.value),
|
|
170
171
|
children: [
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ l("option", {
|
|
172
173
|
value: "MANUAL",
|
|
173
174
|
children: "Manual"
|
|
174
175
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ l("option", {
|
|
176
177
|
value: "SCHEDULED",
|
|
177
178
|
children: "Scheduled"
|
|
178
179
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ l("option", {
|
|
180
181
|
value: "EVENT",
|
|
181
182
|
children: "Event"
|
|
182
183
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ l("option", {
|
|
184
185
|
value: "ON_DEMAND",
|
|
185
186
|
children: "On Demand"
|
|
186
187
|
})
|
|
187
188
|
]
|
|
188
189
|
})] })]
|
|
189
190
|
}),
|
|
190
|
-
|
|
191
|
-
className:
|
|
192
|
-
children:
|
|
193
|
-
}), /* @__PURE__ */
|
|
191
|
+
y.triggerType === "SCHEDULED" && /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
192
|
+
className: k,
|
|
193
|
+
children: T("vibecontrols.actions.form.schedule", "Schedule (cron expression)")
|
|
194
|
+
}), /* @__PURE__ */ l("input", {
|
|
194
195
|
"aria-label": "*/5 * * * *",
|
|
195
|
-
className:
|
|
196
|
-
value:
|
|
197
|
-
onChange: (e) =>
|
|
196
|
+
className: O,
|
|
197
|
+
value: y.schedule,
|
|
198
|
+
onChange: (e) => E("schedule", e.target.value),
|
|
198
199
|
placeholder: "*/5 * * * *"
|
|
199
200
|
})] }),
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ u("div", {
|
|
201
202
|
className: "grid grid-cols-2 gap-4",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
203
|
-
className:
|
|
204
|
-
children:
|
|
205
|
-
}), /* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
204
|
+
className: k,
|
|
205
|
+
children: T("vibecontrols.actions.form.category", "Category")
|
|
206
|
+
}), /* @__PURE__ */ l("input", {
|
|
206
207
|
"aria-label": "deployment, testing, etc.",
|
|
207
|
-
className: D,
|
|
208
|
-
value: v.category,
|
|
209
|
-
onChange: (e) => T("category", e.target.value),
|
|
210
|
-
placeholder: "deployment, testing, etc."
|
|
211
|
-
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
212
208
|
className: O,
|
|
213
|
-
|
|
214
|
-
|
|
209
|
+
value: y.category,
|
|
210
|
+
onChange: (e) => E("category", e.target.value),
|
|
211
|
+
placeholder: "deployment, testing, etc."
|
|
212
|
+
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
213
|
+
className: k,
|
|
214
|
+
children: T("vibecontrols.actions.form.tags", "Tags (comma separated)")
|
|
215
|
+
}), /* @__PURE__ */ l("input", {
|
|
215
216
|
"aria-label": "ci, deploy, infra",
|
|
216
|
-
className:
|
|
217
|
-
value:
|
|
218
|
-
onChange: (e) =>
|
|
217
|
+
className: O,
|
|
218
|
+
value: x,
|
|
219
|
+
onChange: (e) => S(e.target.value),
|
|
219
220
|
placeholder: "ci, deploy, infra"
|
|
220
221
|
})] })]
|
|
221
222
|
}),
|
|
222
|
-
|
|
223
|
+
y.actionType === "COMMAND" && /* @__PURE__ */ u("div", {
|
|
223
224
|
className: "space-y-4 p-4 rounded-lg bg-bg-sunken/50 border border-border-default",
|
|
224
225
|
children: [
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ l("h3", {
|
|
226
227
|
className: "text-sm font-semibold text-text-primary",
|
|
227
|
-
children:
|
|
228
|
+
children: T("vibecontrols.actions.form.commandSettings", "Command Settings")
|
|
228
229
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
className:
|
|
231
|
-
children:
|
|
232
|
-
}), /* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
231
|
+
className: k,
|
|
232
|
+
children: T("vibecontrols.actions.form.command", "Command")
|
|
233
|
+
}), /* @__PURE__ */ l("textarea", {
|
|
233
234
|
"aria-label": "echo 'Hello World'",
|
|
234
|
-
className: `${
|
|
235
|
+
className: `${O} font-mono resize-none`,
|
|
235
236
|
rows: 3,
|
|
236
|
-
value:
|
|
237
|
-
onChange: (e) =>
|
|
237
|
+
value: y.command,
|
|
238
|
+
onChange: (e) => E("command", e.target.value),
|
|
238
239
|
placeholder: "echo 'Hello World'",
|
|
239
240
|
required: !0
|
|
240
241
|
})] }),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ u("div", {
|
|
242
243
|
className: "grid grid-cols-2 gap-4",
|
|
243
|
-
children: [/* @__PURE__ */
|
|
244
|
-
className:
|
|
245
|
-
children:
|
|
246
|
-
}), /* @__PURE__ */
|
|
244
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
245
|
+
className: k,
|
|
246
|
+
children: T("vibecontrols.actions.form.workingDirectory", "Working Directory")
|
|
247
|
+
}), /* @__PURE__ */ l("input", {
|
|
247
248
|
"aria-label": "/home/user/project",
|
|
248
|
-
className: D,
|
|
249
|
-
value: v.workingDirectory,
|
|
250
|
-
onChange: (e) => T("workingDirectory", e.target.value),
|
|
251
|
-
placeholder: "/home/user/project"
|
|
252
|
-
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
253
249
|
className: O,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
250
|
+
value: y.workingDirectory,
|
|
251
|
+
onChange: (e) => E("workingDirectory", e.target.value),
|
|
252
|
+
placeholder: "/home/user/project"
|
|
253
|
+
})] }), /* @__PURE__ */ u("div", { children: [
|
|
254
|
+
/* @__PURE__ */ l("label", {
|
|
255
|
+
className: k,
|
|
256
|
+
children: T("vibecontrols.actions.form.targetAgent", "Target Agent")
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ u("select", {
|
|
259
|
+
className: O,
|
|
260
|
+
value: y.targetAgentId,
|
|
261
|
+
onChange: (e) => E("targetAgentId", e.target.value),
|
|
262
|
+
children: [/* @__PURE__ */ l("option", {
|
|
263
|
+
value: "",
|
|
264
|
+
children: T("vibecontrols.actions.form.anyAvailableAgent", "Any available agent")
|
|
265
|
+
}), m.map((e) => /* @__PURE__ */ u("option", {
|
|
266
|
+
value: e.id,
|
|
267
|
+
disabled: !e.isActive,
|
|
268
|
+
children: [
|
|
269
|
+
e.name,
|
|
270
|
+
" ",
|
|
271
|
+
e.isActive ? "" : T("vibecontrols.actions.form.offline", "(offline)")
|
|
272
|
+
]
|
|
273
|
+
}, e.id))]
|
|
274
|
+
}),
|
|
275
|
+
y.targetAgentId ? /* @__PURE__ */ l(t, {
|
|
276
|
+
agentId: y.targetAgentId,
|
|
277
|
+
agentName: m.find((e) => e.id === y.targetAgentId)?.name
|
|
278
|
+
}) : null
|
|
279
|
+
] })]
|
|
272
280
|
})
|
|
273
281
|
]
|
|
274
282
|
}),
|
|
275
|
-
|
|
283
|
+
y.actionType === "SCRIPT" && /* @__PURE__ */ u("div", {
|
|
276
284
|
className: "space-y-4 p-4 rounded-lg bg-bg-sunken/50 border border-border-default",
|
|
277
285
|
children: [
|
|
278
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ l("h3", {
|
|
279
287
|
className: "text-sm font-semibold text-text-primary",
|
|
280
|
-
children:
|
|
288
|
+
children: T("vibecontrols.actions.form.scriptSettings", "Script Settings")
|
|
281
289
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
className:
|
|
284
|
-
children:
|
|
285
|
-
}), /* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
291
|
+
className: k,
|
|
292
|
+
children: T("vibecontrols.actions.form.script", "Script")
|
|
293
|
+
}), /* @__PURE__ */ l("textarea", {
|
|
286
294
|
"aria-label": "#!/bin/bash\necho 'Hello'",
|
|
287
|
-
className: `${
|
|
295
|
+
className: `${O} font-mono resize-none`,
|
|
288
296
|
rows: 6,
|
|
289
|
-
value:
|
|
290
|
-
onChange: (e) =>
|
|
297
|
+
value: y.script,
|
|
298
|
+
onChange: (e) => E("script", e.target.value),
|
|
291
299
|
placeholder: "#!/bin/bash\necho 'Hello'",
|
|
292
300
|
required: !0
|
|
293
301
|
})] }),
|
|
294
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ u("div", {
|
|
295
303
|
className: "grid grid-cols-2 gap-4",
|
|
296
|
-
children: [/* @__PURE__ */
|
|
304
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
305
|
+
className: k,
|
|
306
|
+
children: T("vibecontrols.actions.form.interpreter", "Interpreter")
|
|
307
|
+
}), /* @__PURE__ */ u("select", {
|
|
297
308
|
className: O,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
className: D,
|
|
301
|
-
value: v.scriptInterpreter,
|
|
302
|
-
onChange: (e) => T("scriptInterpreter", e.target.value),
|
|
309
|
+
value: y.scriptInterpreter,
|
|
310
|
+
onChange: (e) => E("scriptInterpreter", e.target.value),
|
|
303
311
|
children: [
|
|
304
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ l("option", {
|
|
305
313
|
value: "bash",
|
|
306
314
|
children: "Bash"
|
|
307
315
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ l("option", {
|
|
309
317
|
value: "python",
|
|
310
318
|
children: "Python"
|
|
311
319
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ l("option", {
|
|
313
321
|
value: "node",
|
|
314
322
|
children: "Node.js"
|
|
315
323
|
})
|
|
316
324
|
]
|
|
317
|
-
})] }), /* @__PURE__ */
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
children:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
e.
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
325
|
+
})] }), /* @__PURE__ */ u("div", { children: [
|
|
326
|
+
/* @__PURE__ */ l("label", {
|
|
327
|
+
className: k,
|
|
328
|
+
children: T("vibecontrols.actions.form.targetAgent", "Target Agent")
|
|
329
|
+
}),
|
|
330
|
+
/* @__PURE__ */ u("select", {
|
|
331
|
+
className: O,
|
|
332
|
+
value: y.targetAgentId,
|
|
333
|
+
onChange: (e) => E("targetAgentId", e.target.value),
|
|
334
|
+
children: [/* @__PURE__ */ l("option", {
|
|
335
|
+
value: "",
|
|
336
|
+
children: T("vibecontrols.actions.form.anyAvailableAgent", "Any available agent")
|
|
337
|
+
}), m.map((e) => /* @__PURE__ */ u("option", {
|
|
338
|
+
value: e.id,
|
|
339
|
+
disabled: !e.isActive,
|
|
340
|
+
children: [
|
|
341
|
+
e.name,
|
|
342
|
+
" ",
|
|
343
|
+
e.isActive ? "" : T("vibecontrols.actions.form.offline", "(offline)")
|
|
344
|
+
]
|
|
345
|
+
}, e.id))]
|
|
346
|
+
}),
|
|
347
|
+
y.targetAgentId ? /* @__PURE__ */ l(t, {
|
|
348
|
+
agentId: y.targetAgentId,
|
|
349
|
+
agentName: m.find((e) => e.id === y.targetAgentId)?.name
|
|
350
|
+
}) : null
|
|
351
|
+
] })]
|
|
337
352
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
339
|
-
className:
|
|
340
|
-
children:
|
|
341
|
-
}), /* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
354
|
+
className: k,
|
|
355
|
+
children: T("vibecontrols.actions.form.workingDirectory", "Working Directory")
|
|
356
|
+
}), /* @__PURE__ */ l("input", {
|
|
342
357
|
"aria-label": "/home/user/project",
|
|
343
|
-
className:
|
|
344
|
-
value:
|
|
345
|
-
onChange: (e) =>
|
|
358
|
+
className: O,
|
|
359
|
+
value: y.workingDirectory,
|
|
360
|
+
onChange: (e) => E("workingDirectory", e.target.value),
|
|
346
361
|
placeholder: "/home/user/project"
|
|
347
362
|
})] })
|
|
348
363
|
]
|
|
349
364
|
}),
|
|
350
|
-
|
|
365
|
+
y.actionType === "WEBHOOK" && /* @__PURE__ */ u("div", {
|
|
351
366
|
className: "space-y-4 p-4 rounded-lg bg-bg-sunken/50 border border-border-default",
|
|
352
367
|
children: [
|
|
353
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ l("h3", {
|
|
354
369
|
className: "text-sm font-semibold text-text-primary",
|
|
355
|
-
children:
|
|
370
|
+
children: T("vibecontrols.actions.form.webhookSettings", "Webhook Settings")
|
|
356
371
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ u("div", {
|
|
358
373
|
className: "grid grid-cols-[1fr_auto] gap-4",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
360
|
-
className:
|
|
361
|
-
children:
|
|
362
|
-
}), /* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
375
|
+
className: k,
|
|
376
|
+
children: T("vibecontrols.actions.form.url", "URL")
|
|
377
|
+
}), /* @__PURE__ */ l("input", {
|
|
363
378
|
"aria-label": "https://api.example.com/hook",
|
|
364
|
-
className:
|
|
365
|
-
value:
|
|
366
|
-
onChange: (e) =>
|
|
379
|
+
className: O,
|
|
380
|
+
value: y.webhookUrl,
|
|
381
|
+
onChange: (e) => E("webhookUrl", e.target.value),
|
|
367
382
|
placeholder: "https://api.example.com/hook",
|
|
368
383
|
required: !0
|
|
369
|
-
})] }), /* @__PURE__ */
|
|
384
|
+
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
385
|
+
className: k,
|
|
386
|
+
children: T("vibecontrols.actions.form.method", "Method")
|
|
387
|
+
}), /* @__PURE__ */ u("select", {
|
|
370
388
|
className: O,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
className: D,
|
|
374
|
-
value: v.webhookMethod,
|
|
375
|
-
onChange: (e) => T("webhookMethod", e.target.value),
|
|
389
|
+
value: y.webhookMethod,
|
|
390
|
+
onChange: (e) => E("webhookMethod", e.target.value),
|
|
376
391
|
children: [
|
|
377
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ l("option", {
|
|
378
393
|
value: "GET",
|
|
379
394
|
children: "GET"
|
|
380
395
|
}),
|
|
381
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ l("option", {
|
|
382
397
|
value: "POST",
|
|
383
398
|
children: "POST"
|
|
384
399
|
}),
|
|
385
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ l("option", {
|
|
386
401
|
value: "PUT",
|
|
387
402
|
children: "PUT"
|
|
388
403
|
}),
|
|
389
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ l("option", {
|
|
390
405
|
value: "PATCH",
|
|
391
406
|
children: "PATCH"
|
|
392
407
|
}),
|
|
393
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ l("option", {
|
|
394
409
|
value: "DELETE",
|
|
395
410
|
children: "DELETE"
|
|
396
411
|
})
|
|
397
412
|
]
|
|
398
413
|
})] })]
|
|
399
414
|
}),
|
|
400
|
-
/* @__PURE__ */
|
|
401
|
-
className:
|
|
402
|
-
children:
|
|
403
|
-
}), /* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
416
|
+
className: k,
|
|
417
|
+
children: T("vibecontrols.actions.form.bodyJson", "Body (JSON)")
|
|
418
|
+
}), /* @__PURE__ */ l("textarea", {
|
|
404
419
|
"aria-label": "control",
|
|
405
|
-
className: `${
|
|
420
|
+
className: `${O} font-mono resize-none`,
|
|
406
421
|
rows: 4,
|
|
407
|
-
value:
|
|
408
|
-
onChange: (e) =>
|
|
422
|
+
value: y.webhookBody,
|
|
423
|
+
onChange: (e) => E("webhookBody", e.target.value),
|
|
409
424
|
placeholder: "{\"key\": \"value\"}"
|
|
410
425
|
})] }),
|
|
411
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
427
|
+
className: k,
|
|
428
|
+
children: T("vibecontrols.actions.form.authType", "Auth Type")
|
|
429
|
+
}), /* @__PURE__ */ u("select", {
|
|
412
430
|
className: O,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
className: D,
|
|
416
|
-
value: v.webhookAuthType,
|
|
417
|
-
onChange: (e) => T("webhookAuthType", e.target.value),
|
|
431
|
+
value: y.webhookAuthType,
|
|
432
|
+
onChange: (e) => E("webhookAuthType", e.target.value),
|
|
418
433
|
children: [
|
|
419
|
-
/* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ l("option", {
|
|
420
435
|
value: "",
|
|
421
436
|
children: "None"
|
|
422
437
|
}),
|
|
423
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ l("option", {
|
|
424
439
|
value: "BEARER",
|
|
425
440
|
children: "Bearer Token"
|
|
426
441
|
}),
|
|
427
|
-
/* @__PURE__ */
|
|
442
|
+
/* @__PURE__ */ l("option", {
|
|
428
443
|
value: "BASIC",
|
|
429
444
|
children: "Basic Auth"
|
|
430
445
|
}),
|
|
431
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ l("option", {
|
|
432
447
|
value: "API_KEY",
|
|
433
448
|
children: "API Key"
|
|
434
449
|
})
|
|
@@ -436,65 +451,65 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
436
451
|
})] })
|
|
437
452
|
]
|
|
438
453
|
}),
|
|
439
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ u("div", {
|
|
440
455
|
className: "grid grid-cols-3 gap-4",
|
|
441
456
|
children: [
|
|
442
|
-
/* @__PURE__ */
|
|
443
|
-
className:
|
|
444
|
-
children:
|
|
445
|
-
}), /* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
458
|
+
className: k,
|
|
459
|
+
children: T("vibecontrols.actions.form.timeout", "Timeout (ms)")
|
|
460
|
+
}), /* @__PURE__ */ l("input", {
|
|
446
461
|
"aria-label": "control",
|
|
447
|
-
className:
|
|
462
|
+
className: O,
|
|
448
463
|
type: "number",
|
|
449
464
|
min: 1e3,
|
|
450
465
|
max: 3e5,
|
|
451
|
-
value:
|
|
452
|
-
onChange: (e) =>
|
|
466
|
+
value: y.timeoutMs,
|
|
467
|
+
onChange: (e) => E("timeoutMs", parseInt(e.target.value) || 3e4)
|
|
453
468
|
})] }),
|
|
454
|
-
/* @__PURE__ */
|
|
455
|
-
className:
|
|
456
|
-
children:
|
|
457
|
-
}), /* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
470
|
+
className: k,
|
|
471
|
+
children: T("vibecontrols.actions.form.retryCount", "Retry Count")
|
|
472
|
+
}), /* @__PURE__ */ l("input", {
|
|
458
473
|
"aria-label": "control",
|
|
459
|
-
className:
|
|
474
|
+
className: O,
|
|
460
475
|
type: "number",
|
|
461
476
|
min: 0,
|
|
462
477
|
max: 10,
|
|
463
|
-
value:
|
|
464
|
-
onChange: (e) =>
|
|
478
|
+
value: y.retryCount,
|
|
479
|
+
onChange: (e) => E("retryCount", parseInt(e.target.value) || 0)
|
|
465
480
|
})] }),
|
|
466
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ l("div", {
|
|
467
482
|
className: "flex items-end pb-2",
|
|
468
|
-
children: /* @__PURE__ */
|
|
483
|
+
children: /* @__PURE__ */ u("label", {
|
|
469
484
|
className: "flex items-center gap-2 text-sm text-text-secondary cursor-pointer",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
485
|
+
children: [/* @__PURE__ */ l("input", {
|
|
471
486
|
"aria-label": "control",
|
|
472
487
|
type: "checkbox",
|
|
473
|
-
checked:
|
|
474
|
-
onChange: (e) =>
|
|
488
|
+
checked: y.confirmationRequired,
|
|
489
|
+
onChange: (e) => E("confirmationRequired", e.target.checked),
|
|
475
490
|
className: "rounded border-border-default"
|
|
476
|
-
}),
|
|
491
|
+
}), T("vibecontrols.actions.form.requireConfirmation", "Require confirmation")]
|
|
477
492
|
})
|
|
478
493
|
})
|
|
479
494
|
]
|
|
480
495
|
}),
|
|
481
|
-
|
|
496
|
+
v && /* @__PURE__ */ l("div", {
|
|
482
497
|
className: "pt-4 border-t border-border-default",
|
|
483
|
-
children:
|
|
498
|
+
children: v
|
|
484
499
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
500
|
+
/* @__PURE__ */ u("div", {
|
|
486
501
|
className: "flex items-center justify-end gap-3 pt-4 border-t border-border-default",
|
|
487
|
-
children: [/* @__PURE__ */
|
|
502
|
+
children: [/* @__PURE__ */ l("button", {
|
|
488
503
|
type: "button",
|
|
489
|
-
onClick:
|
|
490
|
-
disabled:
|
|
504
|
+
onClick: g,
|
|
505
|
+
disabled: _,
|
|
491
506
|
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",
|
|
492
|
-
children:
|
|
493
|
-
}), /* @__PURE__ */
|
|
507
|
+
children: T("vibecontrols.actions.form.cancel", "Cancel")
|
|
508
|
+
}), /* @__PURE__ */ l("button", {
|
|
494
509
|
type: "submit",
|
|
495
|
-
disabled:
|
|
510
|
+
disabled: _,
|
|
496
511
|
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",
|
|
497
|
-
children:
|
|
512
|
+
children: _ ? T("vibecontrols.actions.form.saving", "Saving...") : p ? T("vibecontrols.actions.form.updateAction", "Update Action") : T("vibecontrols.actions.form.createAction", "Create Action")
|
|
498
513
|
})]
|
|
499
514
|
})
|
|
500
515
|
]
|
|
@@ -503,6 +518,6 @@ function d({ title: d, initialData: f, agents: p, onSubmit: m, onCancel: h, isLo
|
|
|
503
518
|
});
|
|
504
519
|
}
|
|
505
520
|
//#endregion
|
|
506
|
-
export {
|
|
521
|
+
export { f as ActionForm };
|
|
507
522
|
|
|
508
523
|
//# sourceMappingURL=ActionForm.js.map
|