wherdr 1.3.4 → 2.0.1

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 (243) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/072bjdot.js +2 -0
  3. package/.output/public/_nuxt/8FAMamJX.js +1 -0
  4. package/.output/public/_nuxt/{AgentView.DzFWBd2A.css → AgentView.CfD2RWZY.css} +1 -1
  5. package/.output/public/_nuxt/BDNMzG2s.js +1 -0
  6. package/.output/public/_nuxt/BX8KVYfd.js +1 -0
  7. package/.output/public/_nuxt/{CJKsMzIp.js → BYZVrreW.js} +1 -1
  8. package/.output/public/_nuxt/C2aT0CgA.js +62 -0
  9. package/.output/public/_nuxt/CanLPS0U.js +105 -0
  10. package/.output/public/_nuxt/DGXKTg7D.js +31 -0
  11. package/.output/public/_nuxt/{DMLmW6JM.js → DOsw6KCR.js} +41 -42
  12. package/.output/public/_nuxt/DTiR5P9E.js +25 -0
  13. package/.output/public/_nuxt/{w7Rm7unj.js → DYKfeNM-.js} +1 -1
  14. package/.output/public/_nuxt/DZ7VvF3e.js +1 -0
  15. package/.output/public/_nuxt/DZGKxROq.js +6 -0
  16. package/.output/public/_nuxt/DeLLm2j1.js +23 -0
  17. package/.output/public/_nuxt/DumNBIyF.js +1 -0
  18. package/.output/public/_nuxt/ScQ9FtVj.js +1 -0
  19. package/.output/public/_nuxt/TS7GZUPU.js +9 -0
  20. package/.output/public/_nuxt/board.DK5EU4sL.css +1 -0
  21. package/.output/public/_nuxt/builds/latest.json +1 -1
  22. package/.output/public/_nuxt/builds/meta/b6ed1ddd-d6d6-4137-beab-2548b20dd998.json +1 -0
  23. package/.output/public/_nuxt/entry.BhiYrGAW.css +2 -0
  24. package/.output/public/_nuxt/settings.Cdb21nNw.css +1 -0
  25. package/.output/public/sw.js +1 -1
  26. package/.output/server/chunks/_/branding.mjs +1 -1
  27. package/.output/server/chunks/_/changes.mjs +4 -4
  28. package/.output/server/chunks/_/fileDownload.mjs +278 -0
  29. package/.output/server/chunks/_/files.mjs +44 -17
  30. package/.output/server/chunks/_/machineOrder.mjs +1 -1
  31. package/.output/server/chunks/_/onboarding.mjs +1 -1
  32. package/.output/server/chunks/_/package.mjs +9 -3
  33. package/.output/server/chunks/_/plugins.mjs +92 -125
  34. package/.output/server/chunks/_/restart.mjs +1 -1
  35. package/.output/server/chunks/_/selfupdate.mjs +1 -1
  36. package/.output/server/chunks/_/updates.mjs +1 -1
  37. package/.output/server/chunks/_/worktrees.mjs +1 -1
  38. package/.output/server/chunks/_/ws.mjs +43 -6
  39. package/.output/server/chunks/nitro/nitro.mjs +14073 -10658
  40. package/.output/server/chunks/raw/check-doc-links.mjs +5 -0
  41. package/.output/server/chunks/raw/check-leaks.mjs +1 -1
  42. package/.output/server/chunks/raw/check-release-notes.mjs +5 -0
  43. package/.output/server/chunks/raw/herdr-plugin.mjs +1 -1
  44. package/.output/server/chunks/raw/install-claude-statusline.mjs +1 -1
  45. package/.output/server/chunks/raw/prerelease-summary.mjs +5 -0
  46. package/.output/server/chunks/raw/prerelease.mjs +7 -0
  47. package/.output/server/chunks/raw/reveal.mjs +1 -1
  48. package/.output/server/chunks/raw/test-affected.mjs +5 -0
  49. package/.output/server/chunks/routes/api/_..._.mjs +6 -5
  50. package/.output/server/chunks/routes/api/agents.post.mjs +6 -5
  51. package/.output/server/chunks/routes/api/ask-tab.post.mjs +6 -5
  52. package/.output/server/chunks/routes/api/attach.post.mjs +6 -5
  53. package/.output/server/chunks/routes/api/auth/disable.post.mjs +6 -5
  54. package/.output/server/chunks/routes/api/auth/lock-all.post.mjs +6 -5
  55. package/.output/server/chunks/routes/api/auth/lock.post.mjs +6 -5
  56. package/.output/server/chunks/routes/api/auth/login/options.post.mjs +6 -5
  57. package/.output/server/chunks/routes/api/auth/login/verify.post.mjs +6 -5
  58. package/.output/server/chunks/routes/api/auth/max-session.post.mjs +6 -5
  59. package/.output/server/chunks/routes/api/auth/register/options.post.mjs +6 -5
  60. package/.output/server/chunks/routes/api/auth/register/verify.post.mjs +6 -5
  61. package/.output/server/chunks/routes/api/auth/status.get.mjs +6 -5
  62. package/.output/server/chunks/routes/api/changes.get.mjs +7 -6
  63. package/.output/server/chunks/routes/api/chat/image.get.mjs +7 -6
  64. package/.output/server/chunks/routes/api/chat.get.mjs +20 -7
  65. package/.output/server/chunks/routes/api/choose.post.mjs +31 -17
  66. package/.output/server/chunks/routes/api/claude-setup.post.mjs +42 -0
  67. package/.output/server/chunks/routes/api/claude-statusline.post.mjs +7 -6
  68. package/.output/server/chunks/routes/api/clear-queued-input.post.mjs +42 -0
  69. package/.output/server/chunks/routes/api/close/status.get.mjs +7 -6
  70. package/.output/server/chunks/routes/api/close.post.mjs +6 -5
  71. package/.output/server/chunks/routes/api/codex-update.post.mjs +7 -6
  72. package/.output/server/chunks/routes/api/commands.get.mjs +7 -6
  73. package/.output/server/chunks/routes/api/config.get.mjs +10 -13
  74. package/.output/server/chunks/routes/api/dirs.get.mjs +7 -6
  75. package/.output/server/chunks/routes/api/dismiss-stopped.post.mjs +7 -6
  76. package/.output/server/chunks/routes/api/dismiss.post.mjs +7 -6
  77. package/.output/server/chunks/routes/api/effort.post.mjs +7 -6
  78. package/.output/server/chunks/routes/api/efforts.get.mjs +7 -6
  79. package/.output/server/chunks/routes/api/file.post.mjs +7 -6
  80. package/.output/server/chunks/routes/api/files/download.get.mjs +12 -31
  81. package/.output/server/chunks/routes/api/files/download.head.mjs +41 -0
  82. package/.output/server/chunks/routes/api/files/read.get.mjs +8 -7
  83. package/.output/server/chunks/routes/api/files.get.mjs +7 -6
  84. package/.output/server/chunks/routes/api/health.get.mjs +6 -5
  85. package/.output/server/chunks/routes/api/input.post.mjs +7 -6
  86. package/.output/server/chunks/routes/api/interrupt.post.mjs +24 -21
  87. package/.output/server/chunks/routes/api/isgit.get.mjs +8 -8
  88. package/.output/server/chunks/routes/api/machine/awake.get.mjs +7 -6
  89. package/.output/server/chunks/routes/api/machine/awake.post.mjs +7 -6
  90. package/.output/server/chunks/routes/api/machine/order.get.mjs +6 -5
  91. package/.output/server/chunks/routes/api/machine/order.post.mjs +6 -5
  92. package/.output/server/chunks/routes/api/machine/reconnect.post.mjs +40 -0
  93. package/.output/server/chunks/routes/api/machine/rename.post.mjs +7 -6
  94. package/.output/server/chunks/routes/api/machine/status.post.mjs +39 -0
  95. package/.output/server/chunks/routes/api/menu-left.post.mjs +40 -0
  96. package/.output/server/chunks/routes/api/menu.post.mjs +7 -6
  97. package/.output/server/chunks/routes/api/model.post.mjs +7 -6
  98. package/.output/server/chunks/routes/api/models.get.mjs +7 -6
  99. package/.output/server/chunks/routes/api/nav.post.mjs +7 -6
  100. package/.output/server/chunks/routes/api/onboarding.get.mjs +6 -5
  101. package/.output/server/chunks/routes/api/onboarding.post.mjs +6 -5
  102. package/.output/server/chunks/routes/api/phone.get.mjs +8 -10
  103. package/.output/server/chunks/routes/api/phone.post.mjs +8 -10
  104. package/.output/server/chunks/routes/api/plugins/actions.get.mjs +6 -10
  105. package/.output/server/chunks/routes/api/plugins/invoke.post.mjs +6 -10
  106. package/.output/server/chunks/routes/api/plugins/projects.get.mjs +10 -9
  107. package/.output/server/chunks/routes/api/plugins/projects.post.mjs +11 -8
  108. package/.output/server/chunks/routes/api/prompt.post.mjs +22 -13
  109. package/.output/server/chunks/routes/api/push/quiet.post.mjs +7 -6
  110. package/.output/server/chunks/routes/api/push/subscribe.post.mjs +7 -7
  111. package/.output/server/chunks/routes/api/push/test.post.mjs +7 -6
  112. package/.output/server/chunks/routes/api/push/unsubscribe.post.mjs +7 -6
  113. package/.output/server/chunks/routes/api/quotas.get.mjs +7 -6
  114. package/.output/server/chunks/routes/api/rename.post.mjs +6 -5
  115. package/.output/server/chunks/routes/api/requeue.post.mjs +7 -6
  116. package/.output/server/chunks/routes/api/restart.get.mjs +6 -5
  117. package/.output/server/chunks/routes/api/restart.post.mjs +6 -5
  118. package/.output/server/chunks/routes/api/reveal.post.mjs +91 -8
  119. package/.output/server/chunks/routes/api/screen-key.post.mjs +7 -6
  120. package/.output/server/chunks/routes/api/screen.get.mjs +7 -6
  121. package/.output/server/chunks/routes/api/search.get.mjs +7 -6
  122. package/.output/server/chunks/routes/api/seen.post.mjs +7 -6
  123. package/.output/server/chunks/routes/api/sessions.get.mjs +7 -6
  124. package/.output/server/chunks/routes/api/sessions.post.mjs +7 -6
  125. package/.output/server/chunks/routes/api/settings-tab.post.mjs +7 -6
  126. package/.output/server/chunks/routes/api/{plugins/thread-limits.get.mjs → settings.get.mjs} +10 -9
  127. package/.output/server/chunks/routes/api/settings.post.mjs +40 -0
  128. package/.output/server/chunks/routes/api/space.post.mjs +34 -18
  129. package/.output/server/chunks/routes/api/state.get.mjs +7 -6
  130. package/.output/server/chunks/routes/api/tasks/action.post.mjs +39 -0
  131. package/.output/server/chunks/routes/api/{plugins/profiles.get.mjs → tasks/add.post.mjs} +12 -16
  132. package/.output/server/chunks/routes/api/tasks/after.post.mjs +39 -0
  133. package/.output/server/chunks/routes/api/tasks/approve.post.mjs +39 -0
  134. package/.output/server/chunks/routes/api/{project/report.get.mjs → tasks/archived.get.mjs} +12 -14
  135. package/.output/server/chunks/routes/api/{index.get.mjs → tasks/autopilot.get.mjs} +13 -14
  136. package/.output/server/chunks/routes/api/tasks/autopilot.post.mjs +39 -0
  137. package/.output/server/chunks/routes/api/{gitroot.get.mjs → tasks/board-settings.get.mjs} +12 -14
  138. package/.output/server/chunks/routes/api/tasks/board-settings.post.mjs +39 -0
  139. package/.output/server/chunks/routes/api/tasks/coordinator.get.mjs +40 -0
  140. package/.output/server/chunks/routes/api/tasks/coordinator.post.mjs +39 -0
  141. package/.output/server/chunks/routes/api/tasks/details.get.mjs +40 -0
  142. package/.output/server/chunks/routes/api/tasks/limit.post.mjs +39 -0
  143. package/.output/server/chunks/routes/api/tasks/links.get.mjs +39 -0
  144. package/.output/server/chunks/routes/api/tasks/models.get.mjs +40 -0
  145. package/.output/server/chunks/routes/api/tasks/pick.post.mjs +39 -0
  146. package/.output/server/chunks/routes/api/tasks/question.post.mjs +39 -0
  147. package/.output/server/chunks/routes/api/tasks/scheduled.get.mjs +40 -0
  148. package/.output/server/chunks/routes/api/{project → tasks}/settings.get.mjs +10 -12
  149. package/.output/server/chunks/routes/api/tasks/start.get.mjs +40 -0
  150. package/.output/server/chunks/routes/api/tasks/tell.post.mjs +39 -0
  151. package/.output/server/chunks/routes/api/tasks.get.mjs +39 -0
  152. package/.output/server/chunks/routes/api/unqueue.post.mjs +7 -6
  153. package/.output/server/chunks/routes/api/update/status.get.mjs +6 -5
  154. package/.output/server/chunks/routes/api/update.get.mjs +8 -10
  155. package/.output/server/chunks/routes/api/update.post.mjs +8 -10
  156. package/.output/server/chunks/routes/api/upload.post.mjs +7 -6
  157. package/.output/server/chunks/routes/api/worktrees/remove.post.mjs +6 -5
  158. package/.output/server/chunks/routes/api/worktrees.get.mjs +6 -5
  159. package/.output/server/chunks/routes/favicon.ico.get.mjs +6 -5
  160. package/.output/server/chunks/routes/icons/_name_.get.mjs +7 -6
  161. package/.output/server/chunks/routes/renderer.mjs +8 -7
  162. package/.output/server/chunks/routes/uploads/_...name_.get.mjs +7 -6
  163. package/.output/server/chunks/routes/ws/_..._.mjs +7 -6
  164. package/.output/server/chunks/routes/ws/events.mjs +9 -7
  165. package/.output/server/chunks/routes/ws/term.mjs +7 -6
  166. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  167. package/.output/server/index.mjs +7 -6
  168. package/.output/server/package.json +1 -1
  169. package/README.md +44 -1445
  170. package/bin/lib/commands.mjs +44 -9
  171. package/bin/lib/panel.mjs +3 -11
  172. package/bin/lib/service.mjs +41 -2
  173. package/bin/lib/skill.mjs +1 -1
  174. package/bin/lib/tailnet.d.mts +6 -3
  175. package/bin/lib/tailnet.mjs +70 -32
  176. package/bin/lib/userpath.d.mts +14 -0
  177. package/bin/lib/userpath.mjs +142 -0
  178. package/docs/README.md +58 -0
  179. package/docs/RELEASING.md +174 -0
  180. package/docs/board.md +169 -0
  181. package/docs/command.md +58 -0
  182. package/docs/configuration.md +39 -0
  183. package/docs/conversation.md +132 -0
  184. package/docs/development.md +38 -0
  185. package/docs/devices.md +58 -0
  186. package/docs/files.md +29 -0
  187. package/docs/herdr-projects-1x.md +278 -0
  188. package/docs/home.md +52 -0
  189. package/docs/installation.md +174 -0
  190. package/docs/machines.md +74 -0
  191. package/docs/migrate-from-1.x-docker.md +160 -0
  192. package/docs/networks.md +154 -0
  193. package/docs/notifications.md +83 -0
  194. package/docs/overview.md +71 -0
  195. package/docs/phone.md +26 -0
  196. package/docs/plugins.md +109 -0
  197. package/docs/quick-start.md +89 -0
  198. package/docs/quotas.md +65 -0
  199. package/docs/release-notes-2.0.0.md +84 -0
  200. package/docs/security.md +117 -0
  201. package/docs/terminal.md +15 -0
  202. package/docs/troubleshooting.md +45 -0
  203. package/package.json +9 -3
  204. package/skills/wherdr/SKILL.md +24 -173
  205. package/.output/public/_nuxt/BEJHMUrj.js +0 -1
  206. package/.output/public/_nuxt/BOtcEDnA.js +0 -1
  207. package/.output/public/_nuxt/BUaYhQ2r.js +0 -6
  208. package/.output/public/_nuxt/CJNhn9sA.js +0 -36
  209. package/.output/public/_nuxt/COCvtdHN.js +0 -89
  210. package/.output/public/_nuxt/Cl45J6_Q.js +0 -1
  211. package/.output/public/_nuxt/CndPDbMI.js +0 -2
  212. package/.output/public/_nuxt/Ctbx58Um.js +0 -23
  213. package/.output/public/_nuxt/Dl1PHLOB.js +0 -1
  214. package/.output/public/_nuxt/Nhex3_iH.js +0 -1
  215. package/.output/public/_nuxt/OpWX45i7.js +0 -89
  216. package/.output/public/_nuxt/builds/meta/4994f3a4-4126-4f57-a9e5-c7ebb25850bc.json +0 -1
  217. package/.output/public/_nuxt/dTj21DMs.js +0 -1
  218. package/.output/public/_nuxt/entry.BohTWE-n.css +0 -2
  219. package/.output/public/_nuxt/kwSoIiM7.js +0 -1
  220. package/.output/public/_nuxt/mkEwYka4.js +0 -1
  221. package/.output/server/chunks/_/pluginPolicy.mjs +0 -93
  222. package/.output/server/chunks/_/projectBoard.mjs +0 -363
  223. package/.output/server/chunks/_/projectDocs.mjs +0 -106
  224. package/.output/server/chunks/_/projectInbox.mjs +0 -135
  225. package/.output/server/chunks/_/projectThreads.mjs +0 -46
  226. package/.output/server/chunks/_/projectThreads2.mjs +0 -61
  227. package/.output/server/chunks/_/projectsActions.mjs +0 -143
  228. package/.output/server/chunks/_/projectsPlugin.mjs +0 -30
  229. package/.output/server/chunks/_/projectsPlugin2.mjs +0 -57
  230. package/.output/server/chunks/_/reveal.mjs +0 -115
  231. package/.output/server/chunks/raw/dev.wherdr.open.mjs +0 -7
  232. package/.output/server/chunks/raw/docker-entrypoint.mjs +0 -7
  233. package/.output/server/chunks/raw/install-host-open.mjs +0 -7
  234. package/.output/server/chunks/raw/wherdr-open.mjs +0 -7
  235. package/.output/server/chunks/routes/api/board.get.mjs +0 -148
  236. package/.output/server/chunks/routes/api/plugins/thread-limits.post.mjs +0 -45
  237. package/.output/server/chunks/routes/api/project/inbox.get.mjs +0 -44
  238. package/.output/server/chunks/routes/api/project/inbox.post.mjs +0 -44
  239. package/.output/server/chunks/routes/api/project/memory.get.mjs +0 -43
  240. package/.output/server/chunks/routes/api/project/routines.get.mjs +0 -44
  241. package/.output/server/chunks/routes/api/project/thread.get.mjs +0 -45
  242. package/.output/server/chunks/routes/api/project/thread.post.mjs +0 -47
  243. package/bin/install-docker-skill.sh +0 -20
@@ -1,4 +1,4 @@
1
- import { a as defineApi, H as HerdrError, bG as openSession } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, H as HerdrError, bE as openSession } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -16,18 +16,19 @@ import 'node:events';
16
16
  import 'node:buffer';
17
17
  import 'node:fs';
18
18
  import 'node:path';
19
- import 'web-push';
20
19
  import 'node:os';
21
- import 'node:child_process';
22
20
  import 'node:net';
23
- import 'node:fs/promises';
24
- import 'node:readline';
21
+ import 'node:child_process';
25
22
  import 'node:dns';
26
23
  import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
27
28
  import 'qrcode-terminal/vendor/QRCode/index.js';
28
29
  import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
29
- import '@simplewebauthn/server';
30
30
  import 'node:url';
31
+ import '@simplewebauthn/server';
31
32
 
32
33
  const sessions_post = defineApi(async (_event, body) => {
33
34
  if (typeof body.machine !== "string" || typeof body.name !== "string") throw new HerdrError("bad_session", "Invalid session");
@@ -1,4 +1,4 @@
1
- import { a as defineApi, P as PANE_RE, H as HerdrError, f as findPane, h as herdr, bw as settingsTabs, bx as tabsOfRow, bH as settingsFocus, a4 as sleep, g as choicesCache } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, P as PANE_RE, H as HerdrError, f as findPane, h as herdr, bu as settingsTabs, bv as tabsOfRow, bF as settingsFocus, X as sleep, g as choicesCache } from '../../nitro/nitro.mjs';
2
2
  import { a as activeTab } from '../../_/settingstabs.mjs';
3
3
  import 'node:http';
4
4
  import 'node:https';
@@ -17,18 +17,19 @@ import 'node:events';
17
17
  import 'node:buffer';
18
18
  import 'node:fs';
19
19
  import 'node:path';
20
- import 'web-push';
21
20
  import 'node:os';
22
- import 'node:child_process';
23
21
  import 'node:net';
24
- import 'node:fs/promises';
25
- import 'node:readline';
22
+ import 'node:child_process';
26
23
  import 'node:dns';
27
24
  import 'node:util';
25
+ import 'web-push';
26
+ import 'node:string_decoder';
27
+ import 'node:fs/promises';
28
+ import 'node:readline';
28
29
  import 'qrcode-terminal/vendor/QRCode/index.js';
29
30
  import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
- import '@simplewebauthn/server';
31
31
  import 'node:url';
32
+ import '@simplewebauthn/server';
32
33
 
33
34
  const switching = /* @__PURE__ */ new Set();
34
35
  const settingsTab_post = defineApi(async (_event, b) => {
@@ -1,4 +1,4 @@
1
- import { a as defineApi, u as currentMachineSlots } from '../../../nitro/nitro.mjs';
1
+ import { a as defineApi, bG as readSettings } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -16,20 +16,21 @@ import 'node:events';
16
16
  import 'node:buffer';
17
17
  import 'node:fs';
18
18
  import 'node:path';
19
- import 'web-push';
20
19
  import 'node:os';
21
- import 'node:child_process';
22
20
  import 'node:net';
23
- import 'node:fs/promises';
24
- import 'node:readline';
21
+ import 'node:child_process';
25
22
  import 'node:dns';
26
23
  import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
27
28
  import 'qrcode-terminal/vendor/QRCode/index.js';
28
29
  import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
29
- import '@simplewebauthn/server';
30
30
  import 'node:url';
31
+ import '@simplewebauthn/server';
31
32
 
32
- const threadLimits_get = defineApi(async () => ({ machines: await currentMachineSlots() }));
33
+ const settings_get = defineApi(async () => ({ settings: await readSettings() }));
33
34
 
34
- export { threadLimits_get as default };
35
- //# sourceMappingURL=thread-limits.get.mjs.map
35
+ export { settings_get as default };
36
+ //# sourceMappingURL=settings.get.mjs.map
@@ -0,0 +1,40 @@
1
+ import { a as defineApi, bH as cleanSettingsPatch, H as HerdrError, bI as patchSettings } from '../../nitro/nitro.mjs';
2
+ import 'node:http';
3
+ import 'node:https';
4
+ import 'node:crypto';
5
+ import 'stream';
6
+ import 'events';
7
+ import 'http';
8
+ import 'crypto';
9
+ import 'buffer';
10
+ import 'zlib';
11
+ import 'https';
12
+ import 'net';
13
+ import 'tls';
14
+ import 'url';
15
+ import 'node:events';
16
+ import 'node:buffer';
17
+ import 'node:fs';
18
+ import 'node:path';
19
+ import 'node:os';
20
+ import 'node:net';
21
+ import 'node:child_process';
22
+ import 'node:dns';
23
+ import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
+ import 'node:url';
31
+ import '@simplewebauthn/server';
32
+
33
+ const settings_post = defineApi(async (_event, body) => {
34
+ const patch = cleanSettingsPatch(body.settings);
35
+ if (!patch) throw new HerdrError("bad_settings", "Invalid settings");
36
+ return { settings: await patchSettings(patch, { onlyMissing: body.migrate === true }) };
37
+ });
38
+
39
+ export { settings_post as default };
40
+ //# sourceMappingURL=settings.post.mjs.map
@@ -1,4 +1,4 @@
1
- import { bI as PANE_DIRECTIONS, ay as splitId, ax as PANE_RE, a as defineApi, H as HerdrError, ag as log, p as poll, x as herdrOn } from '../../nitro/nitro.mjs';
1
+ import { bJ as PANE_DIRECTIONS, a_ as splitId, br as PANE_RE, a as defineApi, H as HerdrError, aa as log, p as poll, aZ as herdrOn } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -16,18 +16,19 @@ import 'node:events';
16
16
  import 'node:buffer';
17
17
  import 'node:fs';
18
18
  import 'node:path';
19
- import 'web-push';
20
19
  import 'node:os';
21
- import 'node:child_process';
22
20
  import 'node:net';
23
- import 'node:fs/promises';
24
- import 'node:readline';
21
+ import 'node:child_process';
25
22
  import 'node:dns';
26
23
  import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
27
28
  import 'qrcode-terminal/vendor/QRCode/index.js';
28
29
  import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
29
- import '@simplewebauthn/server';
30
30
  import 'node:url';
31
+ import '@simplewebauthn/server';
31
32
 
32
33
  var __defProp = Object.defineProperty;
33
34
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -153,17 +154,17 @@ function spaceResult(call, r) {
153
154
  }
154
155
  return {};
155
156
  }
156
- function swapSteps(snap, pane, target2) {
157
- if (!target2 || target2 === pane) fail("no_neighbor", "no pane on that side");
157
+ function swapSteps(snap, pane, target) {
158
+ if (!target || target === pane) fail("no_neighbor", "no pane on that side");
158
159
  const layouts = Array.isArray(snap == null ? void 0 : snap.layouts) ? snap.layouts : [];
159
160
  const tab = layouts.find((l) => {
160
161
  var _a;
161
162
  return (_a = l.panes) == null ? void 0 : _a.some((p) => p.pane_id === pane);
162
163
  });
163
- if (!tab || !tab.panes.some((p) => p.pane_id === target2)) fail("no_neighbor", "no pane on that side");
164
+ if (!tab || !tab.panes.some((p) => p.pane_id === target)) fail("no_neighbor", "no pane on that side");
164
165
  if (tab.zoomed) fail("zoomed", "a pane is zoomed in this tab");
165
166
  const tabFocus = tab.focused_pane_id || null;
166
- const [source, other] = tabFocus === target2 ? [target2, pane] : [pane, target2];
167
+ const [source, other] = tabFocus === target ? [target, pane] : [pane, target];
167
168
  return [{ method: "pane.swap", params: { source_pane_id: source, target_pane_id: other } }, ...refocus(snap, tab, source)];
168
169
  }
169
170
  function refocus(snap, tab, cur) {
@@ -178,24 +179,32 @@ function refocus(snap, tab, cur) {
178
179
  }
179
180
  return steps;
180
181
  }
181
- function dropSteps(snap, pane, target2, side) {
182
- if (side === "center") return swapSteps(snap, pane, target2);
183
- if (!target2 || target2 === pane) fail("no_neighbor", "same pane");
182
+ function dropSteps(snap, pane, target, side) {
183
+ if (side === "center") return swapSteps(snap, pane, target);
184
+ if (!target || target === pane) fail("no_neighbor", "same pane");
184
185
  const layouts = Array.isArray(snap == null ? void 0 : snap.layouts) ? snap.layouts : [];
185
186
  const tab = layouts.find((l) => {
186
187
  var _a;
187
188
  return (_a = l.panes) == null ? void 0 : _a.some((p) => p.pane_id === pane);
188
189
  });
189
- if (!tab || !tab.panes.some((p) => p.pane_id === target2)) fail("no_neighbor", "pane in another tab");
190
+ if (!tab || !tab.panes.some((p) => p.pane_id === target)) fail("no_neighbor", "pane in another tab");
190
191
  if (tab.zoomed) fail("zoomed", "a pane is zoomed in this tab");
191
192
  const before = side === "left" || side === "up";
192
193
  const steps = [
193
194
  { method: "pane.move", params: { pane_id: pane, destination: { type: "new_tab", workspace_id: tab.workspace_id }, focus: false } },
194
- { method: "pane.move", params: { pane_id: pane, destination: { type: "tab", tab_id: tab.tab_id, split: side === "left" || side === "right" ? "right" : "down", target_pane_id: target2 }, focus: false } }
195
+ { method: "pane.move", params: { pane_id: pane, destination: { type: "tab", tab_id: tab.tab_id, split: side === "left" || side === "right" ? "right" : "down", target_pane_id: target }, focus: false } }
195
196
  ];
196
- if (before) steps.push({ method: "pane.swap", params: { source_pane_id: pane, target_pane_id: target2 } });
197
+ if (before) steps.push({ method: "pane.swap", params: { source_pane_id: pane, target_pane_id: target } });
197
198
  return [...steps, ...refocus(snap, tab, before ? pane : null)];
198
199
  }
200
+ function verifySpaceRename(call, snapshot) {
201
+ var _a;
202
+ const tab = call.method === "tab.rename";
203
+ if (!tab && call.method !== "workspace.rename") return;
204
+ const key = tab ? "tab_id" : "workspace_id";
205
+ const target = (_a = tab ? snapshot == null ? void 0 : snapshot.tabs : snapshot == null ? void 0 : snapshot.workspaces) == null ? void 0 : _a.find((x) => x[key] === call.params[key]);
206
+ if (!target || target.label !== call.params.label) throw new SpaceActionError("rename_failed", "Rename failed. The name was not changed.");
207
+ }
199
208
 
200
209
  const space_post = defineApi(async (_event, body) => {
201
210
  let call;
@@ -212,14 +221,21 @@ const space_post = defineApi(async (_event, body) => {
212
221
  return { ok: true };
213
222
  }
214
223
  if (call.method === "pane.drop") {
215
- const { pane_id: pane, target_pane_id: target2, side } = call.params;
224
+ const { pane_id: pane, target_pane_id: target, side } = call.params;
216
225
  const snap = await herdrOn(call.machine, "session.snapshot", {}, 5e3);
217
- await runSteps(call.machine, stepsOf(() => dropSteps((snap == null ? void 0 : snap.snapshot) || snap, pane, target2, side)));
226
+ await runSteps(call.machine, stepsOf(() => dropSteps((snap == null ? void 0 : snap.snapshot) || snap, pane, target, side)));
218
227
  log(`space: pane.drop ${side}${call.machine ? ` (${call.machine})` : ""}`);
219
228
  poll();
220
229
  return { ok: true };
221
230
  }
222
231
  const r = await herdrOn(call.machine, call.method, call.params);
232
+ if (call.method === "workspace.rename" || call.method === "tab.rename") {
233
+ const snap = await herdrOn(call.machine, "session.snapshot", {}, 5e3);
234
+ stepsOf(() => {
235
+ verifySpaceRename(call, (snap == null ? void 0 : snap.snapshot) || snap);
236
+ return [];
237
+ });
238
+ }
223
239
  log(`space: ${call.method}${call.machine ? ` (${call.machine})` : ""}`);
224
240
  poll();
225
241
  return { ok: true, ...spaceResult(call, r) };
@@ -1,4 +1,4 @@
1
- import { a as defineApi, m as getState } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, a$ as getState } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -16,18 +16,19 @@ import 'node:events';
16
16
  import 'node:buffer';
17
17
  import 'node:fs';
18
18
  import 'node:path';
19
- import 'web-push';
20
19
  import 'node:os';
21
- import 'node:child_process';
22
20
  import 'node:net';
23
- import 'node:fs/promises';
24
- import 'node:readline';
21
+ import 'node:child_process';
25
22
  import 'node:dns';
26
23
  import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
27
28
  import 'qrcode-terminal/vendor/QRCode/index.js';
28
29
  import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
29
- import '@simplewebauthn/server';
30
30
  import 'node:url';
31
+ import '@simplewebauthn/server';
31
32
 
32
33
  const state_get = defineApi(() => getState());
33
34
 
@@ -0,0 +1,39 @@
1
+ import { a as defineApi, bL as taskCommand } from '../../../nitro/nitro.mjs';
2
+ import 'node:http';
3
+ import 'node:https';
4
+ import 'node:crypto';
5
+ import 'stream';
6
+ import 'events';
7
+ import 'http';
8
+ import 'crypto';
9
+ import 'buffer';
10
+ import 'zlib';
11
+ import 'https';
12
+ import 'net';
13
+ import 'tls';
14
+ import 'url';
15
+ import 'node:events';
16
+ import 'node:buffer';
17
+ import 'node:fs';
18
+ import 'node:path';
19
+ import 'node:os';
20
+ import 'node:net';
21
+ import 'node:child_process';
22
+ import 'node:dns';
23
+ import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
+ import 'node:url';
31
+ import '@simplewebauthn/server';
32
+
33
+ const action_post = defineApi((_event, b) => {
34
+ var _a;
35
+ return taskCommand((_a = b.machine) != null ? _a : "", b.id, b.action, b.agent, b.after, b.effort);
36
+ });
37
+
38
+ export { action_post as default };
39
+ //# sourceMappingURL=action.post.mjs.map
@@ -1,5 +1,4 @@
1
- import { a as defineApi, i as getQuery } from '../../../nitro/nitro.mjs';
2
- import { p as projectProfiles } from '../../../_/plugins.mjs';
1
+ import { a as defineApi, bM as addTask } from '../../../nitro/nitro.mjs';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:crypto';
@@ -17,27 +16,24 @@ import 'node:events';
17
16
  import 'node:buffer';
18
17
  import 'node:fs';
19
18
  import 'node:path';
20
- import 'web-push';
21
19
  import 'node:os';
22
- import 'node:child_process';
23
20
  import 'node:net';
24
- import 'node:fs/promises';
25
- import 'node:readline';
21
+ import 'node:child_process';
26
22
  import 'node:dns';
27
23
  import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
28
28
  import 'qrcode-terminal/vendor/QRCode/index.js';
29
29
  import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
- import '@simplewebauthn/server';
31
30
  import 'node:url';
32
- import '../../../_/projectBoard.mjs';
33
- import '../../../_/projectsPlugin.mjs';
34
- import '../../../_/projectsPlugin2.mjs';
35
- import '../../../_/pluginPolicy.mjs';
36
- import '../../../_/projectsActions.mjs';
31
+ import '@simplewebauthn/server';
37
32
 
38
- const profiles_get = defineApi(async (event) => {
39
- return { choices: await projectProfiles(getQuery(event).machine) };
33
+ const add_post = defineApi((_event, b) => {
34
+ var _a;
35
+ return addTask((_a = b.machine) != null ? _a : "", b);
40
36
  });
41
37
 
42
- export { profiles_get as default };
43
- //# sourceMappingURL=profiles.get.mjs.map
38
+ export { add_post as default };
39
+ //# sourceMappingURL=add.post.mjs.map
@@ -0,0 +1,39 @@
1
+ import { a as defineApi, bN as clearTaskAfter } from '../../../nitro/nitro.mjs';
2
+ import 'node:http';
3
+ import 'node:https';
4
+ import 'node:crypto';
5
+ import 'stream';
6
+ import 'events';
7
+ import 'http';
8
+ import 'crypto';
9
+ import 'buffer';
10
+ import 'zlib';
11
+ import 'https';
12
+ import 'net';
13
+ import 'tls';
14
+ import 'url';
15
+ import 'node:events';
16
+ import 'node:buffer';
17
+ import 'node:fs';
18
+ import 'node:path';
19
+ import 'node:os';
20
+ import 'node:net';
21
+ import 'node:child_process';
22
+ import 'node:dns';
23
+ import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
+ import 'node:url';
31
+ import '@simplewebauthn/server';
32
+
33
+ const after_post = defineApi((_event, b) => {
34
+ var _a;
35
+ return clearTaskAfter((_a = b.machine) != null ? _a : "", b.id);
36
+ });
37
+
38
+ export { after_post as default };
39
+ //# sourceMappingURL=after.post.mjs.map
@@ -0,0 +1,39 @@
1
+ import { a as defineApi, bO as approveTask } from '../../../nitro/nitro.mjs';
2
+ import 'node:http';
3
+ import 'node:https';
4
+ import 'node:crypto';
5
+ import 'stream';
6
+ import 'events';
7
+ import 'http';
8
+ import 'crypto';
9
+ import 'buffer';
10
+ import 'zlib';
11
+ import 'https';
12
+ import 'net';
13
+ import 'tls';
14
+ import 'url';
15
+ import 'node:events';
16
+ import 'node:buffer';
17
+ import 'node:fs';
18
+ import 'node:path';
19
+ import 'node:os';
20
+ import 'node:net';
21
+ import 'node:child_process';
22
+ import 'node:dns';
23
+ import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
+ import 'node:url';
31
+ import '@simplewebauthn/server';
32
+
33
+ const approve_post = defineApi((_event, b) => {
34
+ var _a;
35
+ return approveTask((_a = b.machine) != null ? _a : "", b.id, b.anyway);
36
+ });
37
+
38
+ export { approve_post as default };
39
+ //# sourceMappingURL=approve.post.mjs.map
@@ -1,5 +1,4 @@
1
- import { a as defineApi, i as getQuery, f as findPane, H as HerdrError } from '../../../nitro/nitro.mjs';
2
- import { e as readThreadReport } from '../../../_/projectBoard.mjs';
1
+ import { a as defineApi, i as getQuery, bP as archivedTasks } from '../../../nitro/nitro.mjs';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:crypto';
@@ -17,26 +16,25 @@ import 'node:events';
17
16
  import 'node:buffer';
18
17
  import 'node:fs';
19
18
  import 'node:path';
20
- import 'web-push';
21
19
  import 'node:os';
22
- import 'node:child_process';
23
20
  import 'node:net';
24
- import 'node:fs/promises';
25
- import 'node:readline';
21
+ import 'node:child_process';
26
22
  import 'node:dns';
27
23
  import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
28
28
  import 'qrcode-terminal/vendor/QRCode/index.js';
29
29
  import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
- import '@simplewebauthn/server';
31
30
  import 'node:url';
32
- import '../../../_/projectsPlugin.mjs';
31
+ import '@simplewebauthn/server';
33
32
 
34
- const report_get = defineApi(async (event) => {
33
+ const archived_get = defineApi(async (event) => {
34
+ var _a;
35
35
  const q = getQuery(event);
36
- const p = findPane(String(q.pane || ""));
37
- if (!p) throw new HerdrError("bad_pane", "Pane not found");
38
- return readThreadReport(p, String(q.id || ""));
36
+ return archivedTasks((_a = q.machine) != null ? _a : "");
39
37
  });
40
38
 
41
- export { report_get as default };
42
- //# sourceMappingURL=report.get.mjs.map
39
+ export { archived_get as default };
40
+ //# sourceMappingURL=archived.get.mjs.map
@@ -1,5 +1,4 @@
1
- import { a as defineApi, i as getQuery, f as findPane, H as HerdrError } from '../../nitro/nitro.mjs';
2
- import { r as readProjectBoard } from '../../_/projectBoard.mjs';
1
+ import { a as defineApi, i as getQuery, bQ as autopilotStatuses, bR as coordinatorAutopilot } from '../../../nitro/nitro.mjs';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:crypto';
@@ -17,26 +16,26 @@ import 'node:events';
17
16
  import 'node:buffer';
18
17
  import 'node:fs';
19
18
  import 'node:path';
20
- import 'web-push';
21
19
  import 'node:os';
22
- import 'node:child_process';
23
20
  import 'node:net';
24
- import 'node:fs/promises';
25
- import 'node:readline';
21
+ import 'node:child_process';
26
22
  import 'node:dns';
27
23
  import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
28
28
  import 'qrcode-terminal/vendor/QRCode/index.js';
29
29
  import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
- import '@simplewebauthn/server';
31
30
  import 'node:url';
32
- import '../../_/projectsPlugin.mjs';
31
+ import '@simplewebauthn/server';
33
32
 
34
- const index_get = defineApi(async (event) => {
33
+ const autopilot_get = defineApi(async (event) => {
34
+ var _a, _b;
35
35
  const q = getQuery(event);
36
- const p = findPane(String(q.pane || ""));
37
- if (!p) throw new HerdrError("bad_pane", "Pane not found");
38
- return readProjectBoard(p, typeof q.since === "string" ? q.since.slice(0, 200) : void 0);
36
+ if (q.kind === void 0) return autopilotStatuses((_a = q.machine) != null ? _a : "");
37
+ return coordinatorAutopilot((_b = q.machine) != null ? _b : "", { kind: q.kind, repo: q.repo });
39
38
  });
40
39
 
41
- export { index_get as default };
42
- //# sourceMappingURL=index.get.mjs.map
40
+ export { autopilot_get as default };
41
+ //# sourceMappingURL=autopilot.get.mjs.map
@@ -0,0 +1,39 @@
1
+ import { a as defineApi, bR as coordinatorAutopilot } from '../../../nitro/nitro.mjs';
2
+ import 'node:http';
3
+ import 'node:https';
4
+ import 'node:crypto';
5
+ import 'stream';
6
+ import 'events';
7
+ import 'http';
8
+ import 'crypto';
9
+ import 'buffer';
10
+ import 'zlib';
11
+ import 'https';
12
+ import 'net';
13
+ import 'tls';
14
+ import 'url';
15
+ import 'node:events';
16
+ import 'node:buffer';
17
+ import 'node:fs';
18
+ import 'node:path';
19
+ import 'node:os';
20
+ import 'node:net';
21
+ import 'node:child_process';
22
+ import 'node:dns';
23
+ import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
+ import 'node:url';
31
+ import '@simplewebauthn/server';
32
+
33
+ const autopilot_post = defineApi((_event, b) => {
34
+ var _a;
35
+ return coordinatorAutopilot((_a = b.machine) != null ? _a : "", b.to, b);
36
+ });
37
+
38
+ export { autopilot_post as default };
39
+ //# sourceMappingURL=autopilot.post.mjs.map
@@ -1,6 +1,4 @@
1
- import { a as defineApi, i as getQuery, v as machineFor, aI as underHome } from '../../nitro/nitro.mjs';
2
- import { g as gitToplevel } from '../../_/changes.mjs';
3
- import { p as proposedRepo } from '../../_/projectsActions.mjs';
1
+ import { a as defineApi, i as getQuery, bS as boardSettings } from '../../../nitro/nitro.mjs';
4
2
  import 'node:http';
5
3
  import 'node:https';
6
4
  import 'node:crypto';
@@ -18,25 +16,25 @@ import 'node:events';
18
16
  import 'node:buffer';
19
17
  import 'node:fs';
20
18
  import 'node:path';
21
- import 'web-push';
22
19
  import 'node:os';
23
- import 'node:child_process';
24
20
  import 'node:net';
25
- import 'node:fs/promises';
26
- import 'node:readline';
21
+ import 'node:child_process';
27
22
  import 'node:dns';
28
23
  import 'node:util';
24
+ import 'web-push';
25
+ import 'node:string_decoder';
26
+ import 'node:fs/promises';
27
+ import 'node:readline';
29
28
  import 'qrcode-terminal/vendor/QRCode/index.js';
30
29
  import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
31
- import '@simplewebauthn/server';
32
30
  import 'node:url';
31
+ import '@simplewebauthn/server';
33
32
 
34
- const gitroot_get = defineApi(async (event) => {
33
+ const boardSettings_get = defineApi(async (event) => {
34
+ var _a;
35
35
  const q = getQuery(event);
36
- const m = machineFor(q.machine);
37
- const dir = underHome(String(q.path || ""), m.home);
38
- return { root: dir && proposedRepo(await gitToplevel(m, dir), m.home) || null };
36
+ return boardSettings((_a = q.machine) != null ? _a : "", q.repo);
39
37
  });
40
38
 
41
- export { gitroot_get as default };
42
- //# sourceMappingURL=gitroot.get.mjs.map
39
+ export { boardSettings_get as default };
40
+ //# sourceMappingURL=board-settings.get.mjs.map