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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{AgentView.C4YOwvZG.css → AgentView.DzFWBd2A.css} +1 -1
- package/.output/public/_nuxt/B4Yk2tB1.js +23 -0
- package/.output/public/_nuxt/BBw_0a4M.js +6 -0
- package/.output/public/_nuxt/{B6qBWHWB.js → BSy6OCIY.js} +1 -1
- package/.output/public/_nuxt/BX5PM2JQ.js +1 -0
- package/.output/public/_nuxt/BgPDnf2S.js +1 -0
- package/.output/public/_nuxt/BkOxQzbS.js +2 -0
- package/.output/public/_nuxt/{WLQjK8uJ.js → CKhgznq4.js} +45 -46
- package/.output/public/_nuxt/{C2T9fQ4f.js → CP8o925U.js} +1 -1
- package/.output/public/_nuxt/CkbmecwS.js +1 -0
- package/.output/public/_nuxt/Cr3SrGky.js +1 -0
- package/.output/public/_nuxt/DAg9fiVh.js +89 -0
- package/.output/public/_nuxt/DT8qZ0Wv.js +1 -0
- package/.output/public/_nuxt/DaaJIRB3.js +1 -0
- package/.output/public/_nuxt/DcJi16XA.js +1 -0
- package/.output/public/_nuxt/VpjCgSXu.js +36 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/c735b6c0-1bd0-47d7-a208-d310f0a06287.json +1 -0
- package/.output/public/_nuxt/dPxB2L94.js +89 -0
- package/.output/public/_nuxt/{entry.cKR16VqG.css → entry.CGWKmYU3.css} +1 -1
- package/.output/public/_nuxt/hePW80VL.js +1 -0
- package/.output/public/_nuxt/xYX85SPI.js +1 -0
- package/.output/public/sw.js +1 -1
- package/.output/server/chunks/_/branding.mjs +1 -1
- package/.output/server/chunks/_/filePaths.mjs +25 -0
- package/.output/server/chunks/_/files.mjs +204 -0
- package/.output/server/chunks/_/machineOrder.mjs +1 -1
- package/.output/server/chunks/_/onboarding.mjs +1 -1
- package/.output/server/chunks/_/package.mjs +97 -0
- package/.output/server/chunks/_/pluginPolicy.mjs +93 -0
- package/.output/server/chunks/_/plugins.mjs +4 -94
- package/.output/server/chunks/_/projectBoard.mjs +120 -29
- package/.output/server/chunks/_/projectDocs.mjs +106 -0
- package/.output/server/chunks/_/projectInbox.mjs +135 -0
- package/.output/server/chunks/_/projectThreads.mjs +46 -0
- package/.output/server/chunks/_/projectThreads2.mjs +61 -0
- package/.output/server/chunks/_/projectsActions.mjs +1 -1
- package/.output/server/chunks/_/projectsPlugin.mjs +1 -1
- package/.output/server/chunks/_/restart.mjs +2 -312
- package/.output/server/chunks/_/reveal.mjs +2 -24
- package/.output/server/chunks/_/selfupdate.mjs +83 -0
- package/.output/server/chunks/_/updates.mjs +91 -0
- package/.output/server/chunks/_/worktrees.mjs +1 -1
- package/.output/server/chunks/_/ws.mjs +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +2660 -1061
- package/.output/server/chunks/raw/bump-homebrew.mjs +1 -1
- package/.output/server/chunks/raw/herdr-plugin.mjs +1 -1
- package/.output/server/chunks/raw/release-ready.mjs +5 -0
- package/.output/server/chunks/routes/api/_..._.mjs +6 -2
- package/.output/server/chunks/routes/api/agents.post.mjs +6 -2
- package/.output/server/chunks/routes/api/ask-tab.post.mjs +6 -2
- package/.output/server/chunks/routes/api/attach.post.mjs +6 -2
- package/.output/server/chunks/routes/api/auth/disable.post.mjs +6 -2
- package/.output/server/chunks/routes/api/auth/lock-all.post.mjs +6 -2
- package/.output/server/chunks/routes/api/auth/lock.post.mjs +6 -2
- package/.output/server/chunks/routes/api/auth/login/options.post.mjs +6 -2
- package/.output/server/chunks/routes/api/auth/login/verify.post.mjs +6 -2
- package/.output/server/chunks/routes/api/auth/max-session.post.mjs +6 -2
- package/.output/server/chunks/routes/api/auth/register/options.post.mjs +6 -2
- package/.output/server/chunks/routes/api/auth/register/verify.post.mjs +6 -2
- package/.output/server/chunks/routes/api/auth/status.get.mjs +6 -2
- package/.output/server/chunks/routes/api/board.get.mjs +147 -0
- package/.output/server/chunks/routes/api/changes.get.mjs +7 -3
- package/.output/server/chunks/routes/api/chat/image.get.mjs +7 -3
- package/.output/server/chunks/routes/api/chat.get.mjs +7 -3
- package/.output/server/chunks/routes/api/choose.post.mjs +34 -4
- package/.output/server/chunks/routes/api/claude-statusline.post.mjs +7 -3
- package/.output/server/chunks/routes/api/close/status.get.mjs +7 -3
- package/.output/server/chunks/routes/api/close.post.mjs +6 -2
- package/.output/server/chunks/routes/api/codex-update.post.mjs +7 -3
- package/.output/server/chunks/routes/api/commands.get.mjs +7 -3
- package/.output/server/chunks/routes/api/config.get.mjs +8 -3
- package/.output/server/chunks/routes/api/dirs.get.mjs +7 -3
- package/.output/server/chunks/routes/api/dismiss-stopped.post.mjs +43 -0
- package/.output/server/chunks/routes/api/dismiss.post.mjs +7 -3
- package/.output/server/chunks/routes/api/effort.post.mjs +7 -3
- package/.output/server/chunks/routes/api/efforts.get.mjs +7 -3
- package/.output/server/chunks/routes/api/file.post.mjs +7 -3
- package/.output/server/chunks/routes/api/files/download.get.mjs +53 -0
- package/.output/server/chunks/routes/api/files/read.get.mjs +45 -0
- package/.output/server/chunks/routes/api/files.get.mjs +44 -0
- package/.output/server/chunks/routes/api/gitroot.get.mjs +7 -3
- package/.output/server/chunks/routes/api/health.get.mjs +36 -0
- package/.output/server/chunks/routes/api/index.get.mjs +6 -2
- package/.output/server/chunks/routes/api/input.post.mjs +18 -4
- package/.output/server/chunks/routes/api/interrupt.post.mjs +7 -3
- package/.output/server/chunks/routes/api/isgit.get.mjs +7 -3
- package/.output/server/chunks/routes/api/machine/awake.get.mjs +7 -3
- package/.output/server/chunks/routes/api/machine/awake.post.mjs +7 -3
- package/.output/server/chunks/routes/api/machine/order.get.mjs +6 -2
- package/.output/server/chunks/routes/api/machine/order.post.mjs +6 -2
- package/.output/server/chunks/routes/api/machine/rename.post.mjs +7 -3
- package/.output/server/chunks/routes/api/menu.post.mjs +7 -3
- package/.output/server/chunks/routes/api/model.post.mjs +7 -3
- package/.output/server/chunks/routes/api/models.get.mjs +7 -3
- package/.output/server/chunks/routes/api/nav.post.mjs +10 -5
- package/.output/server/chunks/routes/api/onboarding.get.mjs +6 -2
- package/.output/server/chunks/routes/api/onboarding.post.mjs +6 -2
- package/.output/server/chunks/routes/api/phone.get.mjs +6 -7
- package/.output/server/chunks/routes/api/phone.post.mjs +6 -7
- package/.output/server/chunks/routes/api/plugins/actions.get.mjs +7 -2
- package/.output/server/chunks/routes/api/plugins/invoke.post.mjs +7 -2
- package/.output/server/chunks/routes/api/plugins/profiles.get.mjs +7 -2
- package/.output/server/chunks/routes/api/plugins/projects.get.mjs +7 -3
- package/.output/server/chunks/routes/api/plugins/projects.post.mjs +7 -3
- package/.output/server/chunks/routes/api/plugins/thread-limits.get.mjs +7 -3
- package/.output/server/chunks/routes/api/plugins/thread-limits.post.mjs +7 -3
- package/.output/server/chunks/routes/api/project/inbox.get.mjs +43 -0
- package/.output/server/chunks/routes/api/project/inbox.post.mjs +43 -0
- package/.output/server/chunks/routes/api/project/memory.get.mjs +42 -0
- package/.output/server/chunks/routes/api/project/report.get.mjs +7 -3
- package/.output/server/chunks/routes/api/project/routines.get.mjs +43 -0
- package/.output/server/chunks/routes/api/project/settings.get.mjs +41 -0
- package/.output/server/chunks/routes/api/project/thread.get.mjs +44 -0
- package/.output/server/chunks/routes/api/project/thread.post.mjs +45 -0
- package/.output/server/chunks/routes/api/prompt.post.mjs +26 -4
- package/.output/server/chunks/routes/api/push/quiet.post.mjs +7 -3
- package/.output/server/chunks/routes/api/push/subscribe.post.mjs +7 -3
- package/.output/server/chunks/routes/api/push/test.post.mjs +7 -3
- package/.output/server/chunks/routes/api/push/unsubscribe.post.mjs +7 -3
- package/.output/server/chunks/routes/api/quotas.get.mjs +7 -3
- package/.output/server/chunks/routes/api/rename.post.mjs +6 -2
- package/.output/server/chunks/routes/api/requeue.post.mjs +7 -3
- package/.output/server/chunks/routes/api/restart.get.mjs +6 -2
- package/.output/server/chunks/routes/api/restart.post.mjs +6 -2
- package/.output/server/chunks/routes/api/reveal.post.mjs +7 -2
- package/.output/server/chunks/routes/api/screen-key.post.mjs +7 -3
- package/.output/server/chunks/routes/api/screen.get.mjs +10 -4
- package/.output/server/chunks/routes/api/search.get.mjs +7 -3
- package/.output/server/chunks/routes/api/seen.post.mjs +7 -3
- package/.output/server/chunks/routes/api/sessions.get.mjs +7 -3
- package/.output/server/chunks/routes/api/sessions.post.mjs +7 -3
- package/.output/server/chunks/routes/api/space.post.mjs +19 -15
- package/.output/server/chunks/routes/api/state.get.mjs +7 -3
- package/.output/server/chunks/routes/api/unqueue.post.mjs +7 -3
- package/.output/server/chunks/routes/api/update/status.get.mjs +38 -0
- package/.output/server/chunks/routes/api/update.get.mjs +12 -51
- package/.output/server/chunks/routes/api/update.post.mjs +41 -0
- package/.output/server/chunks/routes/api/upload.post.mjs +7 -3
- package/.output/server/chunks/routes/api/worktrees/remove.post.mjs +6 -2
- package/.output/server/chunks/routes/api/worktrees.get.mjs +6 -2
- package/.output/server/chunks/routes/favicon.ico.get.mjs +6 -2
- package/.output/server/chunks/routes/icons/_name_.get.mjs +7 -3
- package/.output/server/chunks/routes/renderer.mjs +8 -4
- package/.output/server/chunks/routes/uploads/_...name_.get.mjs +7 -3
- package/.output/server/chunks/routes/ws/_..._.mjs +7 -3
- package/.output/server/chunks/routes/ws/events.mjs +7 -3
- package/.output/server/chunks/routes/ws/term.mjs +9 -5
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/index.mjs +7 -3
- package/.output/server/package.json +1 -1
- package/README.md +440 -46
- package/bin/install-docker-skill.sh +20 -0
- package/bin/lib/commands.mjs +47 -9
- package/bin/lib/core.mjs +18 -2
- package/bin/lib/install-skill.sh +100 -0
- package/bin/lib/skill.mjs +16 -0
- package/bin/lib/tailnet.d.mts +12 -3
- package/bin/lib/tailnet.mjs +103 -25
- package/bin/lib/updater.mjs +320 -0
- package/bin/lib/verify-release.mjs +20 -0
- package/package.json +4 -2
- package/skills/wherdr/SKILL.md +180 -0
- package/.output/public/_nuxt/BDNMzG2s.js +0 -1
- package/.output/public/_nuxt/BMIe8p_3.js +0 -2
- package/.output/public/_nuxt/BpQH8Ho1.js +0 -1
- package/.output/public/_nuxt/BrAeJIZR.js +0 -30
- package/.output/public/_nuxt/C12eXl5z.js +0 -1
- package/.output/public/_nuxt/CXG-cOdh.js +0 -1
- package/.output/public/_nuxt/CYxHnMNH.js +0 -83
- package/.output/public/_nuxt/CctS2Xn6.js +0 -65
- package/.output/public/_nuxt/CiYar6hg.js +0 -6
- package/.output/public/_nuxt/DLLQgP0d.js +0 -1
- package/.output/public/_nuxt/Dwh-l2rQ.js +0 -17
- package/.output/public/_nuxt/bLP7Jj-b.js +0 -1
- package/.output/public/_nuxt/builds/meta/6466b0ab-7935-460c-abdf-2ea632dae6d0.json +0 -1
- package/.output/public/_nuxt/whFLy_Ne.js +0 -23
- package/.output/server/chunks/_/phone.mjs +0 -343
- 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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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
|
-
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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 {
|
|
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:
|
|
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,
|
|
153
|
-
if (!
|
|
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 ===
|
|
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 ===
|
|
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,
|
|
178
|
-
if (side === "center") return swapSteps(snap, pane,
|
|
179
|
-
if (!
|
|
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 ===
|
|
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:
|
|
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:
|
|
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:
|
|
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,
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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 {
|
|
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:
|
|
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
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,
|
|
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:
|
|
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 {
|
|
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:
|
|
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 = "
|
|
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,
|
|
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:
|
|
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 {
|
|
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:
|
|
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" })
|