@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.
Files changed (286) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +5 -2
  2. package/dist/components/actions/ActionForm.js +270 -255
  3. package/dist/components/actions/ActionForm.js.map +1 -1
  4. package/dist/components/actions/RemoteExecutionEnableNotice.js +85 -0
  5. package/dist/components/actions/RemoteExecutionEnableNotice.js.map +1 -0
  6. package/dist/components/agents/AgentConnectionRecovery.js +123 -0
  7. package/dist/components/agents/AgentConnectionRecovery.js.map +1 -0
  8. package/dist/components/agents/RemoteTaskPermissionsCard.js +37 -36
  9. package/dist/components/agents/RemoteTaskPermissionsCard.js.map +1 -1
  10. package/dist/components/graph/MeshAgentNode.js +74 -0
  11. package/dist/components/graph/MeshAgentNode.js.map +1 -0
  12. package/dist/components/graph/MeshDeployWizard.js +393 -0
  13. package/dist/components/graph/MeshDeployWizard.js.map +1 -0
  14. package/dist/components/graph/MeshGraphView.js +190 -0
  15. package/dist/components/graph/MeshGraphView.js.map +1 -0
  16. package/dist/components/graph/MeshNodeActions.js +70 -0
  17. package/dist/components/graph/MeshNodeActions.js.map +1 -0
  18. package/dist/components/graph/MeshRequestPanel.js +240 -0
  19. package/dist/components/graph/MeshRequestPanel.js.map +1 -0
  20. package/dist/components/graph/meshTypes.js +11 -0
  21. package/dist/components/graph/meshTypes.js.map +1 -0
  22. package/dist/components/graph/nodeIcons.js +31 -0
  23. package/dist/components/graph/nodeIcons.js.map +1 -0
  24. package/dist/components/shared/EnableRemoteTaskDialog.js +48 -0
  25. package/dist/components/shared/EnableRemoteTaskDialog.js.map +1 -0
  26. package/dist/components/shared/index.js +1 -0
  27. package/dist/generated/wspace-operations.js +1896 -1649
  28. package/dist/generated/wspace-operations.js.map +1 -1
  29. package/dist/generated/wspace-types.js +14 -12
  30. package/dist/generated/wspace-types.js.map +1 -1
  31. package/dist/index.js +10 -10
  32. package/dist/node_modules/dagre/index.js +24 -0
  33. package/dist/node_modules/dagre/index.js.map +1 -0
  34. package/dist/node_modules/dagre/lib/acyclic.js +47 -0
  35. package/dist/node_modules/dagre/lib/acyclic.js.map +1 -0
  36. package/dist/node_modules/dagre/lib/add-border-segments.js +32 -0
  37. package/dist/node_modules/dagre/lib/add-border-segments.js.map +1 -0
  38. package/dist/node_modules/dagre/lib/coordinate-system.js +57 -0
  39. package/dist/node_modules/dagre/lib/coordinate-system.js.map +1 -0
  40. package/dist/node_modules/dagre/lib/data/list.js +30 -0
  41. package/dist/node_modules/dagre/lib/data/list.js.map +1 -0
  42. package/dist/node_modules/dagre/lib/debug.js +31 -0
  43. package/dist/node_modules/dagre/lib/debug.js.map +1 -0
  44. package/dist/node_modules/dagre/lib/graphlib.js +15 -0
  45. package/dist/node_modules/dagre/lib/graphlib.js.map +1 -0
  46. package/dist/node_modules/dagre/lib/greedy-fas.js +74 -0
  47. package/dist/node_modules/dagre/lib/greedy-fas.js.map +1 -0
  48. package/dist/node_modules/dagre/lib/layout.js +305 -0
  49. package/dist/node_modules/dagre/lib/layout.js.map +1 -0
  50. package/dist/node_modules/dagre/lib/lodash.js +67 -0
  51. package/dist/node_modules/dagre/lib/lodash.js.map +1 -0
  52. package/dist/node_modules/dagre/lib/nesting-graph.js +76 -0
  53. package/dist/node_modules/dagre/lib/nesting-graph.js.map +1 -0
  54. package/dist/node_modules/dagre/lib/normalize.js +45 -0
  55. package/dist/node_modules/dagre/lib/normalize.js.map +1 -0
  56. package/dist/node_modules/dagre/lib/order/add-subgraph-constraints.js +24 -0
  57. package/dist/node_modules/dagre/lib/order/add-subgraph-constraints.js.map +1 -0
  58. package/dist/node_modules/dagre/lib/order/barycenter.js +34 -0
  59. package/dist/node_modules/dagre/lib/order/barycenter.js.map +1 -0
  60. package/dist/node_modules/dagre/lib/order/build-layer-graph.js +32 -0
  61. package/dist/node_modules/dagre/lib/order/build-layer-graph.js.map +1 -0
  62. package/dist/node_modules/dagre/lib/order/cross-count.js +39 -0
  63. package/dist/node_modules/dagre/lib/order/cross-count.js.map +1 -0
  64. package/dist/node_modules/dagre/lib/order/index.js +50 -0
  65. package/dist/node_modules/dagre/lib/order/index.js.map +1 -0
  66. package/dist/node_modules/dagre/lib/order/init-order.js +28 -0
  67. package/dist/node_modules/dagre/lib/order/init-order.js.map +1 -0
  68. package/dist/node_modules/dagre/lib/order/resolve-conflicts.js +61 -0
  69. package/dist/node_modules/dagre/lib/order/resolve-conflicts.js.map +1 -0
  70. package/dist/node_modules/dagre/lib/order/sort-subgraph.js +50 -0
  71. package/dist/node_modules/dagre/lib/order/sort-subgraph.js.map +1 -0
  72. package/dist/node_modules/dagre/lib/order/sort.js +34 -0
  73. package/dist/node_modules/dagre/lib/order/sort.js.map +1 -0
  74. package/dist/node_modules/dagre/lib/parent-dummy-chains.js +50 -0
  75. package/dist/node_modules/dagre/lib/parent-dummy-chains.js.map +1 -0
  76. package/dist/node_modules/dagre/lib/position/bk.js +212 -0
  77. package/dist/node_modules/dagre/lib/position/bk.js.map +1 -0
  78. package/dist/node_modules/dagre/lib/position/index.js +30 -0
  79. package/dist/node_modules/dagre/lib/position/index.js.map +1 -0
  80. package/dist/node_modules/dagre/lib/rank/feasible-tree.js +39 -0
  81. package/dist/node_modules/dagre/lib/rank/feasible-tree.js.map +1 -0
  82. package/dist/node_modules/dagre/lib/rank/index.js +35 -0
  83. package/dist/node_modules/dagre/lib/rank/index.js.map +1 -0
  84. package/dist/node_modules/dagre/lib/rank/network-simplex.js +90 -0
  85. package/dist/node_modules/dagre/lib/rank/network-simplex.js.map +1 -0
  86. package/dist/node_modules/dagre/lib/rank/util.js +31 -0
  87. package/dist/node_modules/dagre/lib/rank/util.js.map +1 -0
  88. package/dist/node_modules/dagre/lib/util.js +151 -0
  89. package/dist/node_modules/dagre/lib/util.js.map +1 -0
  90. package/dist/node_modules/dagre/lib/version.js +10 -0
  91. package/dist/node_modules/dagre/lib/version.js.map +1 -0
  92. package/dist/node_modules/graphlib/index.js +19 -0
  93. package/dist/node_modules/graphlib/index.js.map +1 -0
  94. package/dist/node_modules/graphlib/lib/alg/components.js +21 -0
  95. package/dist/node_modules/graphlib/lib/alg/components.js.map +1 -0
  96. package/dist/node_modules/graphlib/lib/alg/dfs.js +25 -0
  97. package/dist/node_modules/graphlib/lib/alg/dfs.js.map +1 -0
  98. package/dist/node_modules/graphlib/lib/alg/dijkstra-all.js +18 -0
  99. package/dist/node_modules/graphlib/lib/alg/dijkstra-all.js.map +1 -0
  100. package/dist/node_modules/graphlib/lib/alg/dijkstra.js +31 -0
  101. package/dist/node_modules/graphlib/lib/alg/dijkstra.js.map +1 -0
  102. package/dist/node_modules/graphlib/lib/alg/find-cycles.js +18 -0
  103. package/dist/node_modules/graphlib/lib/alg/find-cycles.js.map +1 -0
  104. package/dist/node_modules/graphlib/lib/alg/floyd-warshall.js +41 -0
  105. package/dist/node_modules/graphlib/lib/alg/floyd-warshall.js.map +1 -0
  106. package/dist/node_modules/graphlib/lib/alg/index.js +33 -0
  107. package/dist/node_modules/graphlib/lib/alg/index.js.map +1 -0
  108. package/dist/node_modules/graphlib/lib/alg/is-acyclic.js +21 -0
  109. package/dist/node_modules/graphlib/lib/alg/is-acyclic.js.map +1 -0
  110. package/dist/node_modules/graphlib/lib/alg/postorder.js +15 -0
  111. package/dist/node_modules/graphlib/lib/alg/postorder.js.map +1 -0
  112. package/dist/node_modules/graphlib/lib/alg/preorder.js +15 -0
  113. package/dist/node_modules/graphlib/lib/alg/preorder.js.map +1 -0
  114. package/dist/node_modules/graphlib/lib/alg/prim.js +35 -0
  115. package/dist/node_modules/graphlib/lib/alg/prim.js.map +1 -0
  116. package/dist/node_modules/graphlib/lib/alg/tarjan.js +34 -0
  117. package/dist/node_modules/graphlib/lib/alg/tarjan.js.map +1 -0
  118. package/dist/node_modules/graphlib/lib/alg/topsort.js +23 -0
  119. package/dist/node_modules/graphlib/lib/alg/topsort.js.map +1 -0
  120. package/dist/node_modules/graphlib/lib/data/priority-queue.js +56 -0
  121. package/dist/node_modules/graphlib/lib/data/priority-queue.js.map +1 -0
  122. package/dist/node_modules/graphlib/lib/graph.js +196 -0
  123. package/dist/node_modules/graphlib/lib/graph.js.map +1 -0
  124. package/dist/node_modules/graphlib/lib/index.js +15 -0
  125. package/dist/node_modules/graphlib/lib/index.js.map +1 -0
  126. package/dist/node_modules/graphlib/lib/json.js +55 -0
  127. package/dist/node_modules/graphlib/lib/json.js.map +1 -0
  128. package/dist/node_modules/graphlib/lib/lodash.js +47 -0
  129. package/dist/node_modules/graphlib/lib/lodash.js.map +1 -0
  130. package/dist/node_modules/graphlib/lib/version.js +10 -0
  131. package/dist/node_modules/graphlib/lib/version.js.map +1 -0
  132. package/dist/node_modules/lodash/_arrayEach.js +14 -0
  133. package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
  134. package/dist/node_modules/lodash/_arrayReduce.js +15 -0
  135. package/dist/node_modules/lodash/_arrayReduce.js.map +1 -0
  136. package/dist/node_modules/lodash/_asciiSize.js +11 -0
  137. package/dist/node_modules/lodash/_asciiSize.js.map +1 -0
  138. package/dist/node_modules/lodash/_assignMergeValue.js +16 -0
  139. package/dist/node_modules/lodash/_assignMergeValue.js.map +1 -0
  140. package/dist/node_modules/lodash/_assignValue.js +17 -0
  141. package/dist/node_modules/lodash/_assignValue.js.map +1 -0
  142. package/dist/node_modules/lodash/_baseAssign.js +16 -0
  143. package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
  144. package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
  145. package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
  146. package/dist/node_modules/lodash/_baseClone.js +64 -0
  147. package/dist/node_modules/lodash/_baseClone.js.map +1 -0
  148. package/dist/node_modules/lodash/_baseCreate.js +21 -0
  149. package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
  150. package/dist/node_modules/lodash/_baseFilter.js +18 -0
  151. package/dist/node_modules/lodash/_baseFilter.js.map +1 -0
  152. package/dist/node_modules/lodash/_baseHas.js +14 -0
  153. package/dist/node_modules/lodash/_baseHas.js.map +1 -0
  154. package/dist/node_modules/lodash/_baseIsMap.js +16 -0
  155. package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
  156. package/dist/node_modules/lodash/_baseIsSet.js +16 -0
  157. package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
  158. package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
  159. package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
  160. package/dist/node_modules/lodash/_baseMerge.js +27 -0
  161. package/dist/node_modules/lodash/_baseMerge.js.map +1 -0
  162. package/dist/node_modules/lodash/_baseMergeDeep.js +39 -0
  163. package/dist/node_modules/lodash/_baseMergeDeep.js.map +1 -0
  164. package/dist/node_modules/lodash/_basePick.js +18 -0
  165. package/dist/node_modules/lodash/_basePick.js.map +1 -0
  166. package/dist/node_modules/lodash/_basePickBy.js +21 -0
  167. package/dist/node_modules/lodash/_basePickBy.js.map +1 -0
  168. package/dist/node_modules/lodash/_baseReduce.js +15 -0
  169. package/dist/node_modules/lodash/_baseReduce.js.map +1 -0
  170. package/dist/node_modules/lodash/_baseSet.js +30 -0
  171. package/dist/node_modules/lodash/_baseSet.js.map +1 -0
  172. package/dist/node_modules/lodash/_baseValues.js +17 -0
  173. package/dist/node_modules/lodash/_baseValues.js.map +1 -0
  174. package/dist/node_modules/lodash/_baseZipObject.js +17 -0
  175. package/dist/node_modules/lodash/_baseZipObject.js.map +1 -0
  176. package/dist/node_modules/lodash/_castFunction.js +15 -0
  177. package/dist/node_modules/lodash/_castFunction.js.map +1 -0
  178. package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  179. package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
  180. package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
  181. package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
  182. package/dist/node_modules/lodash/_cloneDataView.js +16 -0
  183. package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
  184. package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
  185. package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
  186. package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
  187. package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
  188. package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
  189. package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
  190. package/dist/node_modules/lodash/_copyArray.js +15 -0
  191. package/dist/node_modules/lodash/_copyArray.js.map +1 -0
  192. package/dist/node_modules/lodash/_copyObject.js +22 -0
  193. package/dist/node_modules/lodash/_copyObject.js.map +1 -0
  194. package/dist/node_modules/lodash/_copySymbols.js +16 -0
  195. package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
  196. package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
  197. package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
  198. package/dist/node_modules/lodash/_createAssigner.js +23 -0
  199. package/dist/node_modules/lodash/_createAssigner.js.map +1 -0
  200. package/dist/node_modules/lodash/_flatRest.js +17 -0
  201. package/dist/node_modules/lodash/_flatRest.js.map +1 -0
  202. package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
  203. package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
  204. package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
  205. package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
  206. package/dist/node_modules/lodash/_initCloneArray.js +15 -0
  207. package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
  208. package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
  209. package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
  210. package/dist/node_modules/lodash/_initCloneObject.js +17 -0
  211. package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
  212. package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
  213. package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
  214. package/dist/node_modules/lodash/_safeGet.js +13 -0
  215. package/dist/node_modules/lodash/_safeGet.js.map +1 -0
  216. package/dist/node_modules/lodash/_stringSize.js +17 -0
  217. package/dist/node_modules/lodash/_stringSize.js.map +1 -0
  218. package/dist/node_modules/lodash/_unicodeSize.js +25 -0
  219. package/dist/node_modules/lodash/_unicodeSize.js.map +1 -0
  220. package/dist/node_modules/lodash/clone.js +15 -0
  221. package/dist/node_modules/lodash/clone.js.map +1 -0
  222. package/dist/node_modules/lodash/cloneDeep.js +15 -0
  223. package/dist/node_modules/lodash/cloneDeep.js.map +1 -0
  224. package/dist/node_modules/lodash/defaults.js +23 -0
  225. package/dist/node_modules/lodash/defaults.js.map +1 -0
  226. package/dist/node_modules/lodash/each.js +11 -0
  227. package/dist/node_modules/lodash/each.js.map +1 -0
  228. package/dist/node_modules/lodash/filter.js +18 -0
  229. package/dist/node_modules/lodash/filter.js.map +1 -0
  230. package/dist/node_modules/lodash/flatten.js +15 -0
  231. package/dist/node_modules/lodash/flatten.js.map +1 -0
  232. package/dist/node_modules/lodash/forEach.js +18 -0
  233. package/dist/node_modules/lodash/forEach.js.map +1 -0
  234. package/dist/node_modules/lodash/forIn.js +17 -0
  235. package/dist/node_modules/lodash/forIn.js.map +1 -0
  236. package/dist/node_modules/lodash/has.js +16 -0
  237. package/dist/node_modules/lodash/has.js.map +1 -0
  238. package/dist/node_modules/lodash/isArrayLikeObject.js +16 -0
  239. package/dist/node_modules/lodash/isArrayLikeObject.js.map +1 -0
  240. package/dist/node_modules/lodash/isEmpty.js +28 -0
  241. package/dist/node_modules/lodash/isEmpty.js.map +1 -0
  242. package/dist/node_modules/lodash/isMap.js +14 -0
  243. package/dist/node_modules/lodash/isMap.js.map +1 -0
  244. package/dist/node_modules/lodash/isSet.js +14 -0
  245. package/dist/node_modules/lodash/isSet.js.map +1 -0
  246. package/dist/node_modules/lodash/isUndefined.js +13 -0
  247. package/dist/node_modules/lodash/isUndefined.js.map +1 -0
  248. package/dist/node_modules/lodash/keysIn.js +17 -0
  249. package/dist/node_modules/lodash/keysIn.js.map +1 -0
  250. package/dist/node_modules/lodash/merge.js +15 -0
  251. package/dist/node_modules/lodash/merge.js.map +1 -0
  252. package/dist/node_modules/lodash/pick.js +15 -0
  253. package/dist/node_modules/lodash/pick.js.map +1 -0
  254. package/dist/node_modules/lodash/reduce.js +20 -0
  255. package/dist/node_modules/lodash/reduce.js.map +1 -0
  256. package/dist/node_modules/lodash/size.js +22 -0
  257. package/dist/node_modules/lodash/size.js.map +1 -0
  258. package/dist/node_modules/lodash/toPlainObject.js +16 -0
  259. package/dist/node_modules/lodash/toPlainObject.js.map +1 -0
  260. package/dist/node_modules/lodash/transform.js +31 -0
  261. package/dist/node_modules/lodash/transform.js.map +1 -0
  262. package/dist/node_modules/lodash/union.js +17 -0
  263. package/dist/node_modules/lodash/union.js.map +1 -0
  264. package/dist/node_modules/lodash/uniqueId.js +16 -0
  265. package/dist/node_modules/lodash/uniqueId.js.map +1 -0
  266. package/dist/node_modules/lodash/values.js +16 -0
  267. package/dist/node_modules/lodash/values.js.map +1 -0
  268. package/dist/node_modules/lodash/zipObject.js +16 -0
  269. package/dist/node_modules/lodash/zipObject.js.map +1 -0
  270. package/dist/pages/ActionsPage.js +269 -230
  271. package/dist/pages/ActionsPage.js.map +1 -1
  272. package/dist/pages/AgentDetailsPage.js +442 -436
  273. package/dist/pages/AgentDetailsPage.js.map +1 -1
  274. package/dist/pages/AgentGraphPage.js +251 -118
  275. package/dist/pages/AgentGraphPage.js.map +1 -1
  276. package/dist/pages/VibeDeckPage.js +268 -224
  277. package/dist/pages/VibeDeckPage.js.map +1 -1
  278. package/dist/services/agentRemoteTaskGates.js +29 -0
  279. package/dist/services/agentRemoteTaskGates.js.map +1 -0
  280. package/package.json +3 -1
  281. package/dist/components/graph/AgentGraphView.js +0 -237
  282. package/dist/components/graph/AgentGraphView.js.map +0 -1
  283. package/dist/components/graph/AgentNode.js +0 -54
  284. package/dist/components/graph/AgentNode.js.map +0 -1
  285. package/dist/components/graph/TargetNode.js +0 -76
  286. package/dist/components/graph/TargetNode.js.map +0 -1
@@ -0,0 +1,48 @@
1
+ import { useTr as e } from "../../shared/hooks/useTr.js";
2
+ import { ConfirmDialog as t } from "./ConfirmDialog.js";
3
+ import { useEffect as n, useState as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import { Checkbox as o } from "@burdenoff/fe-libs/ui";
6
+ //#region src/components/shared/EnableRemoteTaskDialog.tsx
7
+ function s({ isOpen: s, agentName: c, isLoading: l = !1, onClose: u, onConfirm: d }) {
8
+ let f = e(), [p, m] = r(!1);
9
+ return n(() => {
10
+ s && m(!1);
11
+ }, [s]), /* @__PURE__ */ i(t, {
12
+ isOpen: s,
13
+ onClose: u,
14
+ onConfirm: () => d({
15
+ shell: !0,
16
+ file: p
17
+ }),
18
+ title: f("vibecontrols.enableRemoteTask.title", "Enable remote task execution?"),
19
+ message: c ? f("vibecontrols.enableRemoteTask.messageNamed", `This action runs a command or script on “${c}”. The agent blocks remote execution by default — enable it for this agent to run the action from decks, schedules, and the Actions page.`) : f("vibecontrols.enableRemoteTask.message", "This action runs a command or script on the agent. The agent blocks remote execution by default — enable it to run the action from decks, schedules, and the Actions page."),
20
+ variant: "warning",
21
+ isLoading: l,
22
+ confirmLabel: f("vibecontrols.enableRemoteTask.confirm", "Enable & run"),
23
+ cancelLabel: f("vibecontrols.enableRemoteTask.cancel", "Cancel"),
24
+ children: /* @__PURE__ */ a("div", {
25
+ className: "space-y-3",
26
+ children: [/* @__PURE__ */ i("p", {
27
+ className: "text-xs text-status-warning-text",
28
+ children: f("vibecontrols.enableRemoteTask.warning", "Anyone with workspace access will be able to run commands on this host. You can review or revoke this any time from the agent’s Security settings.")
29
+ }), /* @__PURE__ */ a("label", {
30
+ className: "flex items-start gap-2 text-sm text-text-primary cursor-pointer",
31
+ children: [/* @__PURE__ */ i(o, {
32
+ checked: p,
33
+ onCheckedChange: (e) => m(e === !0),
34
+ disabled: l,
35
+ "aria-label": f("vibecontrols.enableRemoteTask.fileOptIn", "Also allow remote file writes + deletes"),
36
+ className: "mt-0.5"
37
+ }), /* @__PURE__ */ a("span", { children: [f("vibecontrols.enableRemoteTask.fileOptIn", "Also allow remote file writes + deletes"), /* @__PURE__ */ i("span", {
38
+ className: "block text-xs text-text-secondary",
39
+ children: f("vibecontrols.enableRemoteTask.fileOptInHint", "Only needed for actions that modify files. Reads are always allowed.")
40
+ })] })]
41
+ })]
42
+ })
43
+ });
44
+ }
45
+ //#endregion
46
+ export { s as EnableRemoteTaskDialog };
47
+
48
+ //# sourceMappingURL=EnableRemoteTaskDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnableRemoteTaskDialog.js","names":[],"sources":["../../../src/components/shared/EnableRemoteTaskDialog.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport { Checkbox } from '@burdenoff/fe-libs/ui';\n\nimport { ConfirmDialog } from './ConfirmDialog';\nimport { useTr } from '../../shared/hooks/useTr';\n\ninterface EnableRemoteTaskDialogProps {\n isOpen: boolean;\n /** Display name of the agent being enabled (for the message). */\n agentName?: string | null;\n isLoading?: boolean;\n onClose: () => void;\n /** Called with the chosen gates. `shell` is always true; `file` is opt-in. */\n onConfirm: (options: { shell: boolean; file: boolean }) => void;\n}\n\n/**\n * In-context prompt to enable an agent's remote task-execution gate (the same\n * gate as the Security tab's RemoteTaskPermissionsCard), so users don't have to\n * jump screens to run a mapped command/script action from a deck or the Actions\n * page. Shell/script execution is the default; file write/delete is an explicit\n * opt-in. Carries the same high-blast-radius warning as the Security card.\n */\nexport function EnableRemoteTaskDialog({\n isOpen,\n agentName,\n isLoading = false,\n onClose,\n onConfirm,\n}: EnableRemoteTaskDialogProps) {\n const tr = useTr();\n const [enableFile, setEnableFile] = useState(false);\n\n // Reset the opt-in each time the dialog opens so a prior choice doesn't leak.\n useEffect(() => {\n if (isOpen) setEnableFile(false);\n }, [isOpen]);\n\n const title = tr('vibecontrols.enableRemoteTask.title', 'Enable remote task execution?');\n const message = agentName\n ? tr(\n 'vibecontrols.enableRemoteTask.messageNamed',\n `This action runs a command or script on “${agentName}”. The agent blocks remote execution by default — enable it for this agent to run the action from decks, schedules, and the Actions page.`\n )\n : tr(\n 'vibecontrols.enableRemoteTask.message',\n 'This action runs a command or script on the agent. The agent blocks remote execution by default — enable it to run the action from decks, schedules, and the Actions page.'\n );\n\n return (\n <ConfirmDialog\n isOpen={isOpen}\n onClose={onClose}\n onConfirm={() => onConfirm({ shell: true, file: enableFile })}\n title={title}\n message={message}\n variant=\"warning\"\n isLoading={isLoading}\n confirmLabel={tr('vibecontrols.enableRemoteTask.confirm', 'Enable & run')}\n cancelLabel={tr('vibecontrols.enableRemoteTask.cancel', 'Cancel')}\n >\n <div className=\"space-y-3\">\n <p className=\"text-xs text-status-warning-text\">\n {tr(\n 'vibecontrols.enableRemoteTask.warning',\n 'Anyone with workspace access will be able to run commands on this host. You can review or revoke this any time from the agent’s Security settings.'\n )}\n </p>\n <label className=\"flex items-start gap-2 text-sm text-text-primary cursor-pointer\">\n <Checkbox\n checked={enableFile}\n onCheckedChange={(checked) => setEnableFile(checked === true)}\n disabled={isLoading}\n aria-label={tr(\n 'vibecontrols.enableRemoteTask.fileOptIn',\n 'Also allow remote file writes + deletes'\n )}\n className=\"mt-0.5\"\n />\n <span>\n {tr(\n 'vibecontrols.enableRemoteTask.fileOptIn',\n 'Also allow remote file writes + deletes'\n )}\n <span className=\"block text-xs text-text-secondary\">\n {tr(\n 'vibecontrols.enableRemoteTask.fileOptInHint',\n 'Only needed for actions that modify files. Reads are always allowed.'\n )}\n </span>\n </span>\n </label>\n </div>\n </ConfirmDialog>\n );\n}\n"],"mappings":";;;;;;AAuBA,SAAgB,EAAuB,EACrC,WACA,cACA,eAAY,IACZ,YACA,gBAC8B;CAC9B,IAAM,IAAK,GAAO,EACZ,CAAC,GAAY,KAAiB,EAAS,GAAM;AAkBnD,QAfA,QAAgB;AACd,EAAI,KAAQ,EAAc,GAAM;IAC/B,CAAC,EAAO,CAAC,EAcV,kBAAC,GAAD;EACU;EACC;EACT,iBAAiB,EAAU;GAAE,OAAO;GAAM,MAAM;GAAY,CAAC;EACtD,OAhBG,EAAG,uCAAuC,gCAAgC;EAiB3E,SAhBG,IACZ,EACE,8CACA,4CAA4C,EAAU,2IACvD,GACD,EACE,yCACA,6KACD;EASD,SAAQ;EACG;EACX,cAAc,EAAG,yCAAyC,eAAe;EACzE,aAAa,EAAG,wCAAwC,SAAS;YAEjE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,KAAD;IAAG,WAAU;cACV,EACC,yCACA,qJACD;IACC,CAAA,EACJ,kBAAC,SAAD;IAAO,WAAU;cAAjB,CACE,kBAAC,GAAD;KACE,SAAS;KACT,kBAAkB,MAAY,EAAc,MAAY,GAAK;KAC7D,UAAU;KACV,cAAY,EACV,2CACA,0CACD;KACD,WAAU;KACV,CAAA,EACF,kBAAC,QAAD,EAAA,UAAA,CACG,EACC,2CACA,0CACD,EACD,kBAAC,QAAD;KAAM,WAAU;eACb,EACC,+CACA,uEACD;KACI,CAAA,CACF,EAAA,CAAA,CACD;MACJ;;EACQ,CAAA"}
@@ -9,6 +9,7 @@ import "./EntityTagPicker.js";
9
9
  import "./EmptyState.js";
10
10
  import "./SearchInput.js";
11
11
  import "./FilterDropdown.js";
12
+ import "./EnableRemoteTaskDialog.js";
12
13
  import "./StatusBadge.js";
13
14
  import "./Card.js";
14
15
  import "./StatCard.js";