wherdr 1.3.1 → 1.3.3

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 (180) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{AgentView.C4YOwvZG.css → AgentView.DzFWBd2A.css} +1 -1
  3. package/.output/public/_nuxt/B4Yk2tB1.js +23 -0
  4. package/.output/public/_nuxt/BBw_0a4M.js +6 -0
  5. package/.output/public/_nuxt/{B6qBWHWB.js → BSy6OCIY.js} +1 -1
  6. package/.output/public/_nuxt/BX5PM2JQ.js +1 -0
  7. package/.output/public/_nuxt/BgPDnf2S.js +1 -0
  8. package/.output/public/_nuxt/BkOxQzbS.js +2 -0
  9. package/.output/public/_nuxt/{WLQjK8uJ.js → CKhgznq4.js} +45 -46
  10. package/.output/public/_nuxt/{C2T9fQ4f.js → CP8o925U.js} +1 -1
  11. package/.output/public/_nuxt/CkbmecwS.js +1 -0
  12. package/.output/public/_nuxt/Cr3SrGky.js +1 -0
  13. package/.output/public/_nuxt/DAg9fiVh.js +89 -0
  14. package/.output/public/_nuxt/DT8qZ0Wv.js +1 -0
  15. package/.output/public/_nuxt/DaaJIRB3.js +1 -0
  16. package/.output/public/_nuxt/DcJi16XA.js +1 -0
  17. package/.output/public/_nuxt/VpjCgSXu.js +36 -0
  18. package/.output/public/_nuxt/builds/latest.json +1 -1
  19. package/.output/public/_nuxt/builds/meta/c735b6c0-1bd0-47d7-a208-d310f0a06287.json +1 -0
  20. package/.output/public/_nuxt/dPxB2L94.js +89 -0
  21. package/.output/public/_nuxt/{entry.cKR16VqG.css → entry.CGWKmYU3.css} +1 -1
  22. package/.output/public/_nuxt/hePW80VL.js +1 -0
  23. package/.output/public/_nuxt/xYX85SPI.js +1 -0
  24. package/.output/public/sw.js +1 -1
  25. package/.output/server/chunks/_/branding.mjs +1 -1
  26. package/.output/server/chunks/_/filePaths.mjs +25 -0
  27. package/.output/server/chunks/_/files.mjs +204 -0
  28. package/.output/server/chunks/_/machineOrder.mjs +1 -1
  29. package/.output/server/chunks/_/onboarding.mjs +1 -1
  30. package/.output/server/chunks/_/package.mjs +97 -0
  31. package/.output/server/chunks/_/pluginPolicy.mjs +93 -0
  32. package/.output/server/chunks/_/plugins.mjs +4 -94
  33. package/.output/server/chunks/_/projectBoard.mjs +120 -29
  34. package/.output/server/chunks/_/projectDocs.mjs +106 -0
  35. package/.output/server/chunks/_/projectInbox.mjs +135 -0
  36. package/.output/server/chunks/_/projectThreads.mjs +46 -0
  37. package/.output/server/chunks/_/projectThreads2.mjs +61 -0
  38. package/.output/server/chunks/_/projectsActions.mjs +1 -1
  39. package/.output/server/chunks/_/projectsPlugin.mjs +1 -1
  40. package/.output/server/chunks/_/restart.mjs +2 -312
  41. package/.output/server/chunks/_/reveal.mjs +2 -24
  42. package/.output/server/chunks/_/selfupdate.mjs +83 -0
  43. package/.output/server/chunks/_/updates.mjs +91 -0
  44. package/.output/server/chunks/_/worktrees.mjs +1 -1
  45. package/.output/server/chunks/_/ws.mjs +1 -1
  46. package/.output/server/chunks/nitro/nitro.mjs +2660 -1061
  47. package/.output/server/chunks/raw/bump-homebrew.mjs +1 -1
  48. package/.output/server/chunks/raw/herdr-plugin.mjs +1 -1
  49. package/.output/server/chunks/raw/release-ready.mjs +5 -0
  50. package/.output/server/chunks/routes/api/_..._.mjs +6 -2
  51. package/.output/server/chunks/routes/api/agents.post.mjs +6 -2
  52. package/.output/server/chunks/routes/api/ask-tab.post.mjs +6 -2
  53. package/.output/server/chunks/routes/api/attach.post.mjs +6 -2
  54. package/.output/server/chunks/routes/api/auth/disable.post.mjs +6 -2
  55. package/.output/server/chunks/routes/api/auth/lock-all.post.mjs +6 -2
  56. package/.output/server/chunks/routes/api/auth/lock.post.mjs +6 -2
  57. package/.output/server/chunks/routes/api/auth/login/options.post.mjs +6 -2
  58. package/.output/server/chunks/routes/api/auth/login/verify.post.mjs +6 -2
  59. package/.output/server/chunks/routes/api/auth/max-session.post.mjs +6 -2
  60. package/.output/server/chunks/routes/api/auth/register/options.post.mjs +6 -2
  61. package/.output/server/chunks/routes/api/auth/register/verify.post.mjs +6 -2
  62. package/.output/server/chunks/routes/api/auth/status.get.mjs +6 -2
  63. package/.output/server/chunks/routes/api/board.get.mjs +147 -0
  64. package/.output/server/chunks/routes/api/changes.get.mjs +7 -3
  65. package/.output/server/chunks/routes/api/chat/image.get.mjs +7 -3
  66. package/.output/server/chunks/routes/api/chat.get.mjs +7 -3
  67. package/.output/server/chunks/routes/api/choose.post.mjs +34 -4
  68. package/.output/server/chunks/routes/api/claude-statusline.post.mjs +7 -3
  69. package/.output/server/chunks/routes/api/close/status.get.mjs +7 -3
  70. package/.output/server/chunks/routes/api/close.post.mjs +6 -2
  71. package/.output/server/chunks/routes/api/codex-update.post.mjs +7 -3
  72. package/.output/server/chunks/routes/api/commands.get.mjs +7 -3
  73. package/.output/server/chunks/routes/api/config.get.mjs +8 -3
  74. package/.output/server/chunks/routes/api/dirs.get.mjs +7 -3
  75. package/.output/server/chunks/routes/api/dismiss-stopped.post.mjs +43 -0
  76. package/.output/server/chunks/routes/api/dismiss.post.mjs +7 -3
  77. package/.output/server/chunks/routes/api/effort.post.mjs +7 -3
  78. package/.output/server/chunks/routes/api/efforts.get.mjs +7 -3
  79. package/.output/server/chunks/routes/api/file.post.mjs +7 -3
  80. package/.output/server/chunks/routes/api/files/download.get.mjs +53 -0
  81. package/.output/server/chunks/routes/api/files/read.get.mjs +45 -0
  82. package/.output/server/chunks/routes/api/files.get.mjs +44 -0
  83. package/.output/server/chunks/routes/api/gitroot.get.mjs +7 -3
  84. package/.output/server/chunks/routes/api/health.get.mjs +36 -0
  85. package/.output/server/chunks/routes/api/index.get.mjs +6 -2
  86. package/.output/server/chunks/routes/api/input.post.mjs +18 -4
  87. package/.output/server/chunks/routes/api/interrupt.post.mjs +7 -3
  88. package/.output/server/chunks/routes/api/isgit.get.mjs +7 -3
  89. package/.output/server/chunks/routes/api/machine/awake.get.mjs +7 -3
  90. package/.output/server/chunks/routes/api/machine/awake.post.mjs +7 -3
  91. package/.output/server/chunks/routes/api/machine/order.get.mjs +6 -2
  92. package/.output/server/chunks/routes/api/machine/order.post.mjs +6 -2
  93. package/.output/server/chunks/routes/api/machine/rename.post.mjs +7 -3
  94. package/.output/server/chunks/routes/api/menu.post.mjs +7 -3
  95. package/.output/server/chunks/routes/api/model.post.mjs +7 -3
  96. package/.output/server/chunks/routes/api/models.get.mjs +7 -3
  97. package/.output/server/chunks/routes/api/nav.post.mjs +10 -5
  98. package/.output/server/chunks/routes/api/onboarding.get.mjs +6 -2
  99. package/.output/server/chunks/routes/api/onboarding.post.mjs +6 -2
  100. package/.output/server/chunks/routes/api/phone.get.mjs +6 -7
  101. package/.output/server/chunks/routes/api/phone.post.mjs +6 -7
  102. package/.output/server/chunks/routes/api/plugins/actions.get.mjs +7 -2
  103. package/.output/server/chunks/routes/api/plugins/invoke.post.mjs +7 -2
  104. package/.output/server/chunks/routes/api/plugins/profiles.get.mjs +7 -2
  105. package/.output/server/chunks/routes/api/plugins/projects.get.mjs +7 -3
  106. package/.output/server/chunks/routes/api/plugins/projects.post.mjs +7 -3
  107. package/.output/server/chunks/routes/api/plugins/thread-limits.get.mjs +7 -3
  108. package/.output/server/chunks/routes/api/plugins/thread-limits.post.mjs +7 -3
  109. package/.output/server/chunks/routes/api/project/inbox.get.mjs +43 -0
  110. package/.output/server/chunks/routes/api/project/inbox.post.mjs +43 -0
  111. package/.output/server/chunks/routes/api/project/memory.get.mjs +42 -0
  112. package/.output/server/chunks/routes/api/project/report.get.mjs +7 -3
  113. package/.output/server/chunks/routes/api/project/routines.get.mjs +43 -0
  114. package/.output/server/chunks/routes/api/project/settings.get.mjs +41 -0
  115. package/.output/server/chunks/routes/api/project/thread.get.mjs +44 -0
  116. package/.output/server/chunks/routes/api/project/thread.post.mjs +45 -0
  117. package/.output/server/chunks/routes/api/prompt.post.mjs +26 -4
  118. package/.output/server/chunks/routes/api/push/quiet.post.mjs +7 -3
  119. package/.output/server/chunks/routes/api/push/subscribe.post.mjs +7 -3
  120. package/.output/server/chunks/routes/api/push/test.post.mjs +7 -3
  121. package/.output/server/chunks/routes/api/push/unsubscribe.post.mjs +7 -3
  122. package/.output/server/chunks/routes/api/quotas.get.mjs +7 -3
  123. package/.output/server/chunks/routes/api/rename.post.mjs +6 -2
  124. package/.output/server/chunks/routes/api/requeue.post.mjs +7 -3
  125. package/.output/server/chunks/routes/api/restart.get.mjs +6 -2
  126. package/.output/server/chunks/routes/api/restart.post.mjs +6 -2
  127. package/.output/server/chunks/routes/api/reveal.post.mjs +7 -2
  128. package/.output/server/chunks/routes/api/screen-key.post.mjs +7 -3
  129. package/.output/server/chunks/routes/api/screen.get.mjs +10 -4
  130. package/.output/server/chunks/routes/api/search.get.mjs +7 -3
  131. package/.output/server/chunks/routes/api/seen.post.mjs +7 -3
  132. package/.output/server/chunks/routes/api/sessions.get.mjs +7 -3
  133. package/.output/server/chunks/routes/api/sessions.post.mjs +7 -3
  134. package/.output/server/chunks/routes/api/space.post.mjs +19 -15
  135. package/.output/server/chunks/routes/api/state.get.mjs +7 -3
  136. package/.output/server/chunks/routes/api/unqueue.post.mjs +7 -3
  137. package/.output/server/chunks/routes/api/update/status.get.mjs +38 -0
  138. package/.output/server/chunks/routes/api/update.get.mjs +12 -51
  139. package/.output/server/chunks/routes/api/update.post.mjs +41 -0
  140. package/.output/server/chunks/routes/api/upload.post.mjs +7 -3
  141. package/.output/server/chunks/routes/api/worktrees/remove.post.mjs +6 -2
  142. package/.output/server/chunks/routes/api/worktrees.get.mjs +6 -2
  143. package/.output/server/chunks/routes/favicon.ico.get.mjs +6 -2
  144. package/.output/server/chunks/routes/icons/_name_.get.mjs +7 -3
  145. package/.output/server/chunks/routes/renderer.mjs +8 -4
  146. package/.output/server/chunks/routes/uploads/_...name_.get.mjs +7 -3
  147. package/.output/server/chunks/routes/ws/_..._.mjs +7 -3
  148. package/.output/server/chunks/routes/ws/events.mjs +7 -3
  149. package/.output/server/chunks/routes/ws/term.mjs +9 -5
  150. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  151. package/.output/server/index.mjs +7 -3
  152. package/.output/server/package.json +1 -1
  153. package/README.md +440 -46
  154. package/bin/install-docker-skill.sh +20 -0
  155. package/bin/lib/commands.mjs +47 -9
  156. package/bin/lib/core.mjs +18 -2
  157. package/bin/lib/install-skill.sh +100 -0
  158. package/bin/lib/skill.mjs +16 -0
  159. package/bin/lib/tailnet.d.mts +12 -3
  160. package/bin/lib/tailnet.mjs +103 -25
  161. package/bin/lib/updater.mjs +320 -0
  162. package/bin/lib/verify-release.mjs +20 -0
  163. package/package.json +4 -2
  164. package/skills/wherdr/SKILL.md +180 -0
  165. package/.output/public/_nuxt/BDNMzG2s.js +0 -1
  166. package/.output/public/_nuxt/BMIe8p_3.js +0 -2
  167. package/.output/public/_nuxt/BpQH8Ho1.js +0 -1
  168. package/.output/public/_nuxt/BrAeJIZR.js +0 -30
  169. package/.output/public/_nuxt/C12eXl5z.js +0 -1
  170. package/.output/public/_nuxt/CXG-cOdh.js +0 -1
  171. package/.output/public/_nuxt/CYxHnMNH.js +0 -83
  172. package/.output/public/_nuxt/CctS2Xn6.js +0 -65
  173. package/.output/public/_nuxt/CiYar6hg.js +0 -6
  174. package/.output/public/_nuxt/DLLQgP0d.js +0 -1
  175. package/.output/public/_nuxt/Dwh-l2rQ.js +0 -17
  176. package/.output/public/_nuxt/bLP7Jj-b.js +0 -1
  177. package/.output/public/_nuxt/builds/meta/6466b0ab-7935-460c-abdf-2ea632dae6d0.json +0 -1
  178. package/.output/public/_nuxt/whFLy_Ne.js +0 -23
  179. package/.output/server/chunks/_/phone.mjs +0 -343
  180. package/.output/server/chunks/routes/ws/mirror.mjs +0 -157
@@ -21,10 +21,15 @@ import 'web-push';
21
21
  import 'node:os';
22
22
  import 'node:child_process';
23
23
  import 'node:net';
24
- import 'node:readline';
25
24
  import 'node:fs/promises';
26
- import 'node:url';
25
+ import 'node:readline';
26
+ import 'node:dns';
27
+ import 'node:util';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
27
30
  import '@simplewebauthn/server';
31
+ import 'node:url';
32
+ import '../../_/filePaths.mjs';
28
33
 
29
34
  const reveal_post = defineApi((event, b) => revealPath(b));
30
35
 
@@ -1,4 +1,4 @@
1
- import { a as defineApi, P as PANE_RE, H as HerdrError, h as herdr, b6 as parseWaitScreen, C as parseChoices, g as choicesCache, p as poll } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, P as PANE_RE, H as HerdrError, h as herdr, bn as parseWaitScreen, O as parseChoices, g as choicesCache, p as poll } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const screenKey_post = defineApi(async (event, b) => {
29
33
  if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
@@ -1,4 +1,4 @@
1
- import { a as defineApi, i as getQuery, P as PANE_RE, H as HerdrError, h as herdr, b7 as settingsTabs, b8 as tabsOfRow } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, i as getQuery, P as PANE_RE, H as HerdrError, h as herdr, bo as settingsTabs, bp as tabsOfRow, f as findPane, bq as classifyScreen, bn as parseWaitScreen, br as parseMenu, b as screenChoices } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const SGR = /\x1b\[([\d;]*)m/g;
29
33
  function highlight(params, state) {
@@ -72,7 +76,9 @@ const screen_get = defineApi(async (event) => {
72
76
  const hit = line ? activeTab(line) : null;
73
77
  tab = hit && tabs.includes(hit) ? hit : null;
74
78
  }
75
- return { text, tabs, tab };
79
+ const p = findPane(pane);
80
+ const interaction = classifyScreen({ text, agent: p == null ? void 0 : p.agent, status: p == null ? void 0 : p.status, choices: screenChoices(text, p == null ? void 0 : p.agent), settings: Boolean(tabs), menu: parseMenu(text), screen: parseWaitScreen(text) });
81
+ return { text, tabs, tab, interaction };
76
82
  });
77
83
 
78
84
  export { screen_get as default };
@@ -1,4 +1,4 @@
1
- import { a as defineApi, i as getQuery, aC as getState, b9 as hasTranscript, n as machineOfPane, ba as SEARCH_DEADLINE_MS, bb as SEARCH_MAX_RESULTS, bc as spaceTitle } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, i as getQuery, m as getState, bs as hasTranscript, D as machineOfPane, bt as SEARCH_DEADLINE_MS, bu as SEARCH_MAX_RESULTS, bv as spaceTitle } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const search_get = defineApi(async (event) => {
29
33
  const query = String(getQuery(event).q || "").trim().slice(0, 100);
@@ -1,4 +1,4 @@
1
- import { a as defineApi, P as PANE_RE, H as HerdrError, bd as markSeen } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, P as PANE_RE, H as HerdrError, bw as markSeen } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const seen_post = defineApi(async (event, b) => {
29
33
  if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
@@ -1,4 +1,4 @@
1
- import { a as defineApi, i as getQuery, be as listSessions } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, i as getQuery, bx as listSessions } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const sessions_get = defineApi(async (event) => {
29
33
  const key = String(getQuery(event).machine || "");
@@ -1,4 +1,4 @@
1
- import { a as defineApi, H as HerdrError, bf as openSession } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, H as HerdrError, by as openSession } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const sessions_post = defineApi(async (_event, body) => {
29
33
  if (typeof body.machine !== "string" || typeof body.name !== "string") throw new HerdrError("bad_session", "Invalid session");
@@ -1,4 +1,4 @@
1
- import { bg as PANE_DIRECTIONS, a5 as splitId, a4 as PANE_RE, a as defineApi, H as HerdrError, Q as log, p as poll, aB as herdrOn } from '../../nitro/nitro.mjs';
1
+ import { bz as PANE_DIRECTIONS, at as splitId, as as PANE_RE, a as defineApi, H as HerdrError, ab as log, p as poll, x as herdrOn } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  var __defProp = Object.defineProperty;
29
33
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -149,17 +153,17 @@ function spaceResult(call, r) {
149
153
  }
150
154
  return {};
151
155
  }
152
- function swapSteps(snap, pane, target) {
153
- if (!target || target === pane) fail("no_neighbor", "no pane on that side");
156
+ function swapSteps(snap, pane, target2) {
157
+ if (!target2 || target2 === pane) fail("no_neighbor", "no pane on that side");
154
158
  const layouts = Array.isArray(snap == null ? void 0 : snap.layouts) ? snap.layouts : [];
155
159
  const tab = layouts.find((l) => {
156
160
  var _a;
157
161
  return (_a = l.panes) == null ? void 0 : _a.some((p) => p.pane_id === pane);
158
162
  });
159
- if (!tab || !tab.panes.some((p) => p.pane_id === target)) fail("no_neighbor", "no pane on that side");
163
+ if (!tab || !tab.panes.some((p) => p.pane_id === target2)) fail("no_neighbor", "no pane on that side");
160
164
  if (tab.zoomed) fail("zoomed", "a pane is zoomed in this tab");
161
165
  const tabFocus = tab.focused_pane_id || null;
162
- const [source, other] = tabFocus === target ? [target, pane] : [pane, target];
166
+ const [source, other] = tabFocus === target2 ? [target2, pane] : [pane, target2];
163
167
  return [{ method: "pane.swap", params: { source_pane_id: source, target_pane_id: other } }, ...refocus(snap, tab, source)];
164
168
  }
165
169
  function refocus(snap, tab, cur) {
@@ -174,22 +178,22 @@ function refocus(snap, tab, cur) {
174
178
  }
175
179
  return steps;
176
180
  }
177
- function dropSteps(snap, pane, target, side) {
178
- if (side === "center") return swapSteps(snap, pane, target);
179
- if (!target || target === pane) fail("no_neighbor", "same pane");
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");
180
184
  const layouts = Array.isArray(snap == null ? void 0 : snap.layouts) ? snap.layouts : [];
181
185
  const tab = layouts.find((l) => {
182
186
  var _a;
183
187
  return (_a = l.panes) == null ? void 0 : _a.some((p) => p.pane_id === pane);
184
188
  });
185
- if (!tab || !tab.panes.some((p) => p.pane_id === target)) fail("no_neighbor", "pane in another tab");
189
+ if (!tab || !tab.panes.some((p) => p.pane_id === target2)) fail("no_neighbor", "pane in another tab");
186
190
  if (tab.zoomed) fail("zoomed", "a pane is zoomed in this tab");
187
191
  const before = side === "left" || side === "up";
188
192
  const steps = [
189
193
  { method: "pane.move", params: { pane_id: pane, destination: { type: "new_tab", workspace_id: tab.workspace_id }, focus: false } },
190
- { 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 } }
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 } }
191
195
  ];
192
- if (before) steps.push({ method: "pane.swap", params: { source_pane_id: pane, target_pane_id: target } });
196
+ if (before) steps.push({ method: "pane.swap", params: { source_pane_id: pane, target_pane_id: target2 } });
193
197
  return [...steps, ...refocus(snap, tab, before ? pane : null)];
194
198
  }
195
199
 
@@ -208,9 +212,9 @@ const space_post = defineApi(async (_event, body) => {
208
212
  return { ok: true };
209
213
  }
210
214
  if (call.method === "pane.drop") {
211
- const { pane_id: pane, target_pane_id: target, side } = call.params;
215
+ const { pane_id: pane, target_pane_id: target2, side } = call.params;
212
216
  const snap = await herdrOn(call.machine, "session.snapshot", {}, 5e3);
213
- await runSteps(call.machine, stepsOf(() => dropSteps((snap == null ? void 0 : snap.snapshot) || snap, pane, target, side)));
217
+ await runSteps(call.machine, stepsOf(() => dropSteps((snap == null ? void 0 : snap.snapshot) || snap, pane, target2, side)));
214
218
  log(`space: pane.drop ${side}${call.machine ? ` (${call.machine})` : ""}`);
215
219
  poll();
216
220
  return { ok: true };
@@ -1,4 +1,4 @@
1
- import { a as defineApi, aC as getState } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, m as getState } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const state_get = defineApi(() => getState());
29
33
 
@@ -1,4 +1,4 @@
1
- import { a as defineApi, P as PANE_RE, H as HerdrError, bh as cancelQueued } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, P as PANE_RE, H as HerdrError, bA as cancelQueued } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const unqueue_post = defineApi(async (event, b) => {
29
33
  if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
@@ -0,0 +1,38 @@
1
+ import { a as defineApi } from '../../../nitro/nitro.mjs';
2
+ import { p as pkg } from '../../../_/package.mjs';
3
+ import { r as readJob, w as wherdrDir } from '../../../_/selfupdate.mjs';
4
+ import 'node:http';
5
+ import 'node:https';
6
+ import 'node:crypto';
7
+ import 'stream';
8
+ import 'events';
9
+ import 'http';
10
+ import 'crypto';
11
+ import 'buffer';
12
+ import 'zlib';
13
+ import 'https';
14
+ import 'net';
15
+ import 'tls';
16
+ import 'url';
17
+ import 'node:events';
18
+ import 'node:buffer';
19
+ import 'node:fs';
20
+ import 'node:path';
21
+ import 'web-push';
22
+ import 'node:os';
23
+ import 'node:child_process';
24
+ import 'node:net';
25
+ import 'node:fs/promises';
26
+ import 'node:readline';
27
+ import 'node:dns';
28
+ import 'node:util';
29
+ import 'qrcode-terminal/vendor/QRCode/index.js';
30
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
31
+ import '@simplewebauthn/server';
32
+ import 'node:url';
33
+ import '../../../_/updates.mjs';
34
+
35
+ const status_get = defineApi(() => ({ version: pkg.version, job: readJob(wherdrDir()) }));
36
+
37
+ export { status_get as default };
38
+ //# sourceMappingURL=status.get.mjs.map
@@ -1,4 +1,5 @@
1
- import { bi as installMode, bj as updateCommand, bk as compareVersions, a as defineApi } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, aX as phoneAccess } from '../../nitro/nitro.mjs';
2
+ import { c as checkUpdate } from '../../_/updates.mjs';
2
3
  import 'node:http';
3
4
  import 'node:https';
4
5
  import 'node:crypto';
@@ -20,60 +21,20 @@ import 'web-push';
20
21
  import 'node:os';
21
22
  import 'node:child_process';
22
23
  import 'node:net';
23
- import 'node:readline';
24
24
  import 'node:fs/promises';
25
- import 'node:url';
25
+ import 'node:readline';
26
+ import 'node:dns';
27
+ import 'node:util';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
30
  import '@simplewebauthn/server';
31
+ import 'node:url';
32
+ import '../../_/package.mjs';
27
33
 
28
- var version = "1.3.1";
29
- const pkg = {
30
- version: version};
31
-
32
- const RELEASES_URL = "https://api.github.com/repos/afloury/wherdr/releases/latest";
33
- const DAY_MS = 24 * 60 * 60 * 1e3;
34
- const RETRY_MS = 60 * 60 * 1e3;
35
- function createUpdateChecker(opts) {
36
- var _a;
37
- const now = (_a = opts.now) != null ? _a : Date.now;
38
- let cached = null;
39
- let nextAt = 0;
40
- let pending = null;
41
- async function refresh() {
42
- try {
43
- const res = await opts.fetch(RELEASES_URL);
44
- if (!res.ok) throw new Error("http");
45
- const body = await res.json();
46
- if (typeof body.tag_name !== "string") throw new Error("tag");
47
- cached = { version: body.tag_name.replace(/^v/, ""), url: typeof body.html_url === "string" ? body.html_url : "" };
48
- nextAt = now() + DAY_MS;
49
- } catch {
50
- nextAt = now() + RETRY_MS;
51
- }
52
- }
53
- return async function check() {
54
- const mode = installMode(opts.env.WHERDR_INSTALL);
55
- const base = { current: opts.current, mode, command: updateCommand(mode) };
56
- if (String(opts.env.WHERDR_UPDATE_CHECK || "").toLowerCase() === "off") return { ...base, latest: null, url: null, checked: false };
57
- if (now() >= nextAt) {
58
- pending != null ? pending : pending = refresh().finally(() => {
59
- pending = null;
60
- });
61
- await pending;
62
- }
63
- const newer = cached && compareVersions(cached.version, opts.current) > 0;
64
- return { ...base, latest: newer ? cached.version : null, url: newer ? cached.url || null : null, checked: !!cached };
65
- };
66
- }
67
- const checkUpdate = createUpdateChecker({
68
- current: pkg.version,
69
- env: process.env,
70
- fetch: (url) => fetch(url, {
71
- headers: { accept: "application/vnd.github+json", "user-agent": "wherdr" },
72
- signal: AbortSignal.timeout(1e4)
73
- })
34
+ const update_get = defineApi(async (event) => {
35
+ const info = await checkUpdate();
36
+ return { ...info, oneTap: info.oneTap && phoneAccess(event) };
74
37
  });
75
38
 
76
- const update_get = defineApi(() => checkUpdate());
77
-
78
39
  export { update_get as default };
79
40
  //# sourceMappingURL=update.get.mjs.map
@@ -0,0 +1,41 @@
1
+ import { a as defineApi, aX as phoneAccess, s as sendError } from '../../nitro/nitro.mjs';
2
+ import { s as startUpdate } from '../../_/selfupdate.mjs';
3
+ import 'node:http';
4
+ import 'node:https';
5
+ import 'node:crypto';
6
+ import 'stream';
7
+ import 'events';
8
+ import 'http';
9
+ import 'crypto';
10
+ import 'buffer';
11
+ import 'zlib';
12
+ import 'https';
13
+ import 'net';
14
+ import 'tls';
15
+ import 'url';
16
+ import 'node:events';
17
+ import 'node:buffer';
18
+ import 'node:fs';
19
+ import 'node:path';
20
+ import 'web-push';
21
+ import 'node:os';
22
+ import 'node:child_process';
23
+ import 'node:net';
24
+ import 'node:fs/promises';
25
+ import 'node:readline';
26
+ import 'node:dns';
27
+ import 'node:util';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
30
+ import '@simplewebauthn/server';
31
+ import 'node:url';
32
+ import '../../_/package.mjs';
33
+ import '../../_/updates.mjs';
34
+
35
+ const update_post = defineApi(async (event, body) => {
36
+ if (!phoneAccess(event)) return sendError(event, 403, { error: "Open wherdr on this computer (localhost) or unlock it", code: "update_local" });
37
+ return { job: await startUpdate(body.version) };
38
+ });
39
+
40
+ export { update_post as default };
41
+ //# sourceMappingURL=update.post.mjs.map
@@ -1,4 +1,4 @@
1
- import { a as defineApi, i as getQuery, ac as saveUpload, P as PANE_RE } from '../../nitro/nitro.mjs';
1
+ import { a as defineApi, i as getQuery, aB as saveUpload, P as PANE_RE } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const upload_post = defineApi((event, b) => {
29
33
  const pane = String(getQuery(event).pane || "");
@@ -21,10 +21,14 @@ import 'web-push';
21
21
  import 'node:os';
22
22
  import 'node:child_process';
23
23
  import 'node:net';
24
- import 'node:readline';
25
24
  import 'node:fs/promises';
26
- import 'node:url';
25
+ import 'node:readline';
26
+ import 'node:dns';
27
+ import 'node:util';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
27
30
  import '@simplewebauthn/server';
31
+ import 'node:url';
28
32
 
29
33
  const remove_post = defineApi(async (event, b) => {
30
34
  if (typeof b.path !== "string" || !b.path.startsWith("/")) throw new HerdrError("bad_path", "Invalid path");
@@ -21,10 +21,14 @@ import 'web-push';
21
21
  import 'node:os';
22
22
  import 'node:child_process';
23
23
  import 'node:net';
24
- import 'node:readline';
25
24
  import 'node:fs/promises';
26
- import 'node:url';
25
+ import 'node:readline';
26
+ import 'node:dns';
27
+ import 'node:util';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
27
30
  import '@simplewebauthn/server';
31
+ import 'node:url';
28
32
 
29
33
  const worktrees_get = defineApi(() => listWorktrees());
30
34
 
@@ -21,10 +21,14 @@ import 'web-push';
21
21
  import 'node:os';
22
22
  import 'node:child_process';
23
23
  import 'node:net';
24
- import 'node:readline';
25
24
  import 'node:fs/promises';
26
- import 'node:url';
25
+ import 'node:readline';
26
+ import 'node:dns';
27
+ import 'node:util';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
27
30
  import '@simplewebauthn/server';
31
+ import 'node:url';
28
32
 
29
33
  const favicon_ico_get = defineEventHandler((event) => serveBranding(event, "favicon.ico"));
30
34
 
@@ -1,4 +1,4 @@
1
- import { d as defineEventHandler, bq as getRouterParam } from '../../nitro/nitro.mjs';
1
+ import { d as defineEventHandler, bK as getRouterParam } from '../../nitro/nitro.mjs';
2
2
  import { s as serveBranding } from '../../_/branding.mjs';
3
3
  import 'node:http';
4
4
  import 'node:https';
@@ -21,10 +21,14 @@ import 'web-push';
21
21
  import 'node:os';
22
22
  import 'node:child_process';
23
23
  import 'node:net';
24
- import 'node:readline';
25
24
  import 'node:fs/promises';
26
- import 'node:url';
25
+ import 'node:readline';
26
+ import 'node:dns';
27
+ import 'node:util';
28
+ import 'qrcode-terminal/vendor/QRCode/index.js';
29
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
27
30
  import '@simplewebauthn/server';
31
+ import 'node:url';
28
32
 
29
33
  const _name__get = defineEventHandler((event) => serveBranding(event, `icons/${getRouterParam(event, "name") || ""}`));
30
34
 
@@ -1,4 +1,4 @@
1
- import { bz as useRuntimeConfig, bA as encodePath, bB as joinRelativeURL, bC as defineRenderHandler, i as getQuery, bD as createError, bE as destr, bF as getRouteRules, bG as relative, bH as joinURL, bI as getResponseStatusText, bJ as getResponseStatus, bK as useNitroApp } from '../nitro/nitro.mjs';
1
+ import { bS as useRuntimeConfig, bT as encodePath, bU as joinRelativeURL, bV as defineRenderHandler, i as getQuery, bW as createError, bX as destr, bY as getRouteRules, bZ as relative, b_ as joinURL, b$ as getResponseStatusText, c0 as getResponseStatus, c1 as useNitroApp } from '../nitro/nitro.mjs';
2
2
  import { createHead as createHead$1, propsToString, renderSSRHead } from 'unhead/server';
3
3
  import { isRef, toValue } from 'vue';
4
4
  import { DeprecationsPlugin } from 'unhead/legacy';
@@ -26,10 +26,14 @@ import 'web-push';
26
26
  import 'node:os';
27
27
  import 'node:child_process';
28
28
  import 'node:net';
29
- import 'node:readline';
30
29
  import 'node:fs/promises';
31
- import 'node:url';
30
+ import 'node:readline';
31
+ import 'node:dns';
32
+ import 'node:util';
33
+ import 'qrcode-terminal/vendor/QRCode/index.js';
34
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
32
35
  import '@simplewebauthn/server';
36
+ import 'node:url';
33
37
 
34
38
  const NUXT_RUNTIME_PAYLOAD_EXTRACTION = false;
35
39
  const NUXT_SSR_STREAMING = false;
@@ -202,7 +206,7 @@ function encodeForwardSlashes(str) {
202
206
 
203
207
  const renderSSRHeadOptions = {"omitLineBreaks":true};
204
208
 
205
- const entryFileName = "BrAeJIZR.js";
209
+ const entryFileName = "VpjCgSXu.js";
206
210
 
207
211
  //#region src/runtime/handlers/renderer.ts
208
212
  globalThis.__buildAssetsURL = buildAssetsURL;
@@ -1,4 +1,4 @@
1
- import { d as defineEventHandler, bq as getRouterParam, br as readUpload, s as sendError, z as sendImage } from '../../nitro/nitro.mjs';
1
+ import { d as defineEventHandler, bK as getRouterParam, bL as readUpload, s as sendError, M as sendImage } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const ____name__get = defineEventHandler(async (event) => {
29
33
  try {
@@ -1,4 +1,4 @@
1
- import { bs as defineWebSocketHandler } from '../../nitro/nitro.mjs';
1
+ import { bM as defineWebSocketHandler } from '../../nitro/nitro.mjs';
2
2
  import 'node:http';
3
3
  import 'node:https';
4
4
  import 'node:crypto';
@@ -20,10 +20,14 @@ import 'web-push';
20
20
  import 'node:os';
21
21
  import 'node:child_process';
22
22
  import 'node:net';
23
- import 'node:readline';
24
23
  import 'node:fs/promises';
25
- import 'node:url';
24
+ import 'node:readline';
25
+ import 'node:dns';
26
+ import 'node:util';
27
+ import 'qrcode-terminal/vendor/QRCode/index.js';
28
+ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
26
29
  import '@simplewebauthn/server';
30
+ import 'node:url';
27
31
 
28
32
  const _____ = defineWebSocketHandler({
29
33
  upgrade: () => new Response(null, { status: 403, statusText: "Forbidden" })