wherdr 1.3.1 → 1.3.2
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/{WLQjK8uJ.js → 8ksjcuDu.js} +51 -41
- package/.output/public/_nuxt/B7QP1TFs.js +23 -0
- package/.output/public/_nuxt/{CiYar6hg.js → BOpBIziZ.js} +2 -2
- package/.output/public/_nuxt/BWXdFfeg.js +17 -0
- package/.output/public/_nuxt/COFCNFpG.js +83 -0
- package/.output/public/_nuxt/{C2T9fQ4f.js → Cd8j9O5w.js} +1 -1
- package/.output/public/_nuxt/{C12eXl5z.js → CkZ8t6uB.js} +1 -1
- package/.output/public/_nuxt/{CctS2Xn6.js → D4Yz4rat.js} +4 -4
- package/.output/public/_nuxt/{B6qBWHWB.js → D7sxNXx1.js} +1 -1
- package/.output/public/_nuxt/DViwOclv.js +1 -0
- package/.output/public/_nuxt/DoD7Qb5P.js +30 -0
- package/.output/public/_nuxt/{BMIe8p_3.js → DyBZDSCV.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/7afbf062-5369-4002-b20d-7a582ff6e0f1.json +1 -0
- package/.output/public/_nuxt/{entry.cKR16VqG.css → entry.Crt1r4l3.css} +1 -1
- package/.output/public/_nuxt/hePW80VL.js +1 -0
- package/.output/public/sw.js +1 -1
- package/.output/server/chunks/_/branding.mjs +1 -1
- package/.output/server/chunks/_/package.mjs +96 -0
- package/.output/server/chunks/_/plugins.mjs +1 -1
- package/.output/server/chunks/_/projectBoard.mjs +1 -1
- package/.output/server/chunks/_/projectsPlugin.mjs +1 -1
- package/.output/server/chunks/_/selfupdate.mjs +82 -0
- package/.output/server/chunks/_/updates.mjs +50 -0
- package/.output/server/chunks/_/worktrees.mjs +1 -1
- package/.output/server/chunks/_/ws.mjs +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +1670 -899
- package/.output/server/chunks/raw/herdr-plugin.mjs +1 -1
- package/.output/server/chunks/routes/api/_..._.mjs +5 -1
- package/.output/server/chunks/routes/api/agents.post.mjs +5 -1
- package/.output/server/chunks/routes/api/ask-tab.post.mjs +5 -1
- package/.output/server/chunks/routes/api/attach.post.mjs +5 -1
- package/.output/server/chunks/routes/api/auth/disable.post.mjs +5 -1
- package/.output/server/chunks/routes/api/auth/lock-all.post.mjs +5 -1
- package/.output/server/chunks/routes/api/auth/lock.post.mjs +5 -1
- package/.output/server/chunks/routes/api/auth/login/options.post.mjs +5 -1
- package/.output/server/chunks/routes/api/auth/login/verify.post.mjs +5 -1
- package/.output/server/chunks/routes/api/auth/max-session.post.mjs +5 -1
- package/.output/server/chunks/routes/api/auth/register/options.post.mjs +5 -1
- package/.output/server/chunks/routes/api/auth/register/verify.post.mjs +5 -1
- package/.output/server/chunks/routes/api/auth/status.get.mjs +5 -1
- package/.output/server/chunks/routes/api/changes.get.mjs +5 -1
- package/.output/server/chunks/routes/api/chat/image.get.mjs +5 -1
- package/.output/server/chunks/routes/api/chat.get.mjs +5 -1
- package/.output/server/chunks/routes/api/choose.post.mjs +5 -1
- package/.output/server/chunks/routes/api/claude-statusline.post.mjs +5 -1
- package/.output/server/chunks/routes/api/close/status.get.mjs +5 -1
- package/.output/server/chunks/routes/api/close.post.mjs +5 -1
- package/.output/server/chunks/routes/api/codex-update.post.mjs +5 -1
- package/.output/server/chunks/routes/api/commands.get.mjs +5 -1
- package/.output/server/chunks/routes/api/config.get.mjs +5 -1
- package/.output/server/chunks/routes/api/dirs.get.mjs +5 -1
- package/.output/server/chunks/routes/api/dismiss.post.mjs +5 -1
- package/.output/server/chunks/routes/api/effort.post.mjs +5 -1
- package/.output/server/chunks/routes/api/efforts.get.mjs +5 -1
- package/.output/server/chunks/routes/api/file.post.mjs +5 -1
- package/.output/server/chunks/routes/api/gitroot.get.mjs +5 -1
- package/.output/server/chunks/routes/api/health.get.mjs +36 -0
- package/.output/server/chunks/routes/api/index.get.mjs +5 -1
- package/.output/server/chunks/routes/api/input.post.mjs +5 -1
- package/.output/server/chunks/routes/api/interrupt.post.mjs +5 -1
- package/.output/server/chunks/routes/api/isgit.get.mjs +5 -1
- package/.output/server/chunks/routes/api/machine/awake.get.mjs +5 -1
- package/.output/server/chunks/routes/api/machine/awake.post.mjs +5 -1
- package/.output/server/chunks/routes/api/machine/order.get.mjs +5 -1
- package/.output/server/chunks/routes/api/machine/order.post.mjs +5 -1
- package/.output/server/chunks/routes/api/machine/rename.post.mjs +5 -1
- package/.output/server/chunks/routes/api/menu.post.mjs +5 -1
- package/.output/server/chunks/routes/api/model.post.mjs +5 -1
- package/.output/server/chunks/routes/api/models.get.mjs +5 -1
- package/.output/server/chunks/routes/api/nav.post.mjs +5 -1
- package/.output/server/chunks/routes/api/onboarding.get.mjs +5 -1
- package/.output/server/chunks/routes/api/onboarding.post.mjs +5 -1
- package/.output/server/chunks/routes/api/phone.get.mjs +5 -6
- package/.output/server/chunks/routes/api/phone.post.mjs +5 -6
- package/.output/server/chunks/routes/api/plugins/actions.get.mjs +5 -1
- package/.output/server/chunks/routes/api/plugins/invoke.post.mjs +5 -1
- package/.output/server/chunks/routes/api/plugins/profiles.get.mjs +5 -1
- package/.output/server/chunks/routes/api/plugins/projects.get.mjs +5 -1
- package/.output/server/chunks/routes/api/plugins/projects.post.mjs +5 -1
- package/.output/server/chunks/routes/api/plugins/thread-limits.get.mjs +6 -2
- package/.output/server/chunks/routes/api/plugins/thread-limits.post.mjs +6 -2
- package/.output/server/chunks/routes/api/project/report.get.mjs +5 -1
- package/.output/server/chunks/routes/api/prompt.post.mjs +6 -2
- package/.output/server/chunks/routes/api/push/quiet.post.mjs +6 -2
- package/.output/server/chunks/routes/api/push/subscribe.post.mjs +6 -2
- package/.output/server/chunks/routes/api/push/test.post.mjs +6 -2
- package/.output/server/chunks/routes/api/push/unsubscribe.post.mjs +6 -2
- package/.output/server/chunks/routes/api/quotas.get.mjs +6 -2
- package/.output/server/chunks/routes/api/rename.post.mjs +5 -1
- package/.output/server/chunks/routes/api/requeue.post.mjs +6 -2
- package/.output/server/chunks/routes/api/restart.get.mjs +5 -1
- package/.output/server/chunks/routes/api/restart.post.mjs +5 -1
- package/.output/server/chunks/routes/api/reveal.post.mjs +5 -1
- package/.output/server/chunks/routes/api/screen-key.post.mjs +6 -2
- package/.output/server/chunks/routes/api/screen.get.mjs +6 -2
- package/.output/server/chunks/routes/api/search.get.mjs +6 -2
- package/.output/server/chunks/routes/api/seen.post.mjs +6 -2
- package/.output/server/chunks/routes/api/sessions.get.mjs +6 -2
- package/.output/server/chunks/routes/api/sessions.post.mjs +6 -2
- package/.output/server/chunks/routes/api/space.post.mjs +6 -2
- package/.output/server/chunks/routes/api/state.get.mjs +6 -2
- package/.output/server/chunks/routes/api/unqueue.post.mjs +6 -2
- package/.output/server/chunks/routes/api/update/status.get.mjs +38 -0
- package/.output/server/chunks/routes/api/update.get.mjs +11 -50
- package/.output/server/chunks/routes/api/update.post.mjs +41 -0
- package/.output/server/chunks/routes/api/upload.post.mjs +5 -1
- package/.output/server/chunks/routes/api/worktrees/remove.post.mjs +5 -1
- package/.output/server/chunks/routes/api/worktrees.get.mjs +5 -1
- package/.output/server/chunks/routes/favicon.ico.get.mjs +5 -1
- package/.output/server/chunks/routes/icons/_name_.get.mjs +6 -2
- package/.output/server/chunks/routes/renderer.mjs +7 -3
- package/.output/server/chunks/routes/uploads/_...name_.get.mjs +6 -2
- package/.output/server/chunks/routes/ws/_..._.mjs +6 -2
- package/.output/server/chunks/routes/ws/events.mjs +6 -2
- package/.output/server/chunks/routes/ws/mirror.mjs +6 -2
- package/.output/server/chunks/routes/ws/term.mjs +8 -4
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/index.mjs +6 -2
- package/.output/server/package.json +1 -1
- package/README.md +110 -23
- package/bin/lib/commands.mjs +42 -8
- package/bin/lib/core.mjs +17 -2
- package/bin/lib/tailnet.d.mts +12 -3
- package/bin/lib/tailnet.mjs +103 -25
- package/bin/lib/updater.mjs +267 -0
- package/package.json +2 -1
- package/.output/public/_nuxt/BpQH8Ho1.js +0 -1
- package/.output/public/_nuxt/BrAeJIZR.js +0 -30
- package/.output/public/_nuxt/CYxHnMNH.js +0 -83
- package/.output/public/_nuxt/DLLQgP0d.js +0 -1
- package/.output/public/_nuxt/Dwh-l2rQ.js +0 -17
- 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
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 effort_post = defineApi(async (event, b) => {
|
|
29
33
|
if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 efforts_get = defineApi(async (event) => {
|
|
29
33
|
const pane = String(getQuery(event).pane || "");
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 file_post = defineApi((event, b) => {
|
|
29
33
|
const pane = String(getQuery(event).pane || "");
|
|
@@ -24,8 +24,12 @@ import 'node:child_process';
|
|
|
24
24
|
import 'node:net';
|
|
25
25
|
import 'node:readline';
|
|
26
26
|
import 'node:fs/promises';
|
|
27
|
-
import 'node:
|
|
27
|
+
import 'node:dns';
|
|
28
|
+
import 'node:util';
|
|
29
|
+
import 'qrcode-terminal/vendor/QRCode/index.js';
|
|
30
|
+
import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
28
31
|
import '@simplewebauthn/server';
|
|
32
|
+
import 'node:url';
|
|
29
33
|
|
|
30
34
|
const gitroot_get = defineApi(async (event) => {
|
|
31
35
|
const q = getQuery(event);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { d as defineEventHandler } from '../../nitro/nitro.mjs';
|
|
2
|
+
import { p as pkg } from '../../_/package.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:readline';
|
|
25
|
+
import 'node:fs/promises';
|
|
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
|
+
|
|
33
|
+
const health_get = defineEventHandler(() => ({ ok: true, name: "wherdr", version: pkg.version }));
|
|
34
|
+
|
|
35
|
+
export { health_get as default };
|
|
36
|
+
//# sourceMappingURL=health.get.mjs.map
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 index_get = defineApi(async (event) => {
|
|
30
34
|
const q = getQuery(event);
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 input_post = defineApi(async (event, b) => {
|
|
29
33
|
if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 interrupt_post = defineApi(async (event, b) => {
|
|
29
33
|
if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 isgit_get = defineApi(async (event) => {
|
|
29
33
|
const q = getQuery(event);
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 awake_get = defineApi(async (event) => {
|
|
30
34
|
const query = getQuery(event);
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 MODES = /* @__PURE__ */ new Set(["off", "hour", "fourHours", "evening", "untilOff", "extend"]);
|
|
30
34
|
const awake_post = defineApi(async (_event, body) => {
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 order_get = defineApi(async () => ({ order: await readMachineOrder() }));
|
|
30
34
|
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 order_post = defineApi(async (_event, body) => {
|
|
30
34
|
const order = body.order;
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 rename_post = defineApi(async (_event, body) => {
|
|
29
33
|
const key = typeof body.key === "string" ? body.key : null;
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 STALE = "The menu changed in the meantime \u2014 check the current screen.";
|
|
29
33
|
const at = (m) => m && m.cursor !== null ? `${m.cursor}:${m.items[m.cursor].label}` : null;
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 model_post = defineApi(async (event, b) => {
|
|
29
33
|
if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 models_get = defineApi(async (event) => {
|
|
29
33
|
const q = getQuery(event);
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 KEYS = /* @__PURE__ */ new Set(["up", "down", "enter", "esc", "left", "right"]);
|
|
29
33
|
const nav_post = defineApi(async (event, b) => {
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 onboarding_get = defineApi(() => readOnboarding());
|
|
30
34
|
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 onboarding_post = defineApi((_event, body) => {
|
|
30
34
|
if (typeof (body == null ? void 0 : body.done) !== "boolean") throw new HerdrError("bad_request", "done must be true or false");
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, s as sendError } from '../../nitro/nitro.mjs';
|
|
2
|
-
import { p as phoneAccess, a as phoneStatus } from '../../_/phone.mjs';
|
|
1
|
+
import { a as defineApi, ax as phoneAccess, s as sendError, ay as phoneStatus } from '../../nitro/nitro.mjs';
|
|
3
2
|
import 'node:http';
|
|
4
3
|
import 'node:https';
|
|
5
4
|
import 'node:crypto';
|
|
@@ -23,12 +22,12 @@ import 'node:child_process';
|
|
|
23
22
|
import 'node:net';
|
|
24
23
|
import 'node:readline';
|
|
25
24
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:url';
|
|
27
|
-
import '@simplewebauthn/server';
|
|
28
|
-
import 'qrcode-terminal/vendor/QRCode/index.js';
|
|
29
|
-
import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
30
25
|
import 'node:dns';
|
|
31
26
|
import 'node:util';
|
|
27
|
+
import 'qrcode-terminal/vendor/QRCode/index.js';
|
|
28
|
+
import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
29
|
+
import '@simplewebauthn/server';
|
|
30
|
+
import 'node:url';
|
|
32
31
|
|
|
33
32
|
const phone_get = defineApi(async (event) => {
|
|
34
33
|
if (!phoneAccess(event)) return sendError(event, 403, { error: "Open wherdr on this computer (localhost) or unlock it", code: "phone_local" });
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, s as sendError } from '../../nitro/nitro.mjs';
|
|
2
|
-
import { p as phoneAccess, b as phoneAction } from '../../_/phone.mjs';
|
|
1
|
+
import { a as defineApi, ax as phoneAccess, s as sendError, az as phoneAction } from '../../nitro/nitro.mjs';
|
|
3
2
|
import 'node:http';
|
|
4
3
|
import 'node:https';
|
|
5
4
|
import 'node:crypto';
|
|
@@ -23,12 +22,12 @@ import 'node:child_process';
|
|
|
23
22
|
import 'node:net';
|
|
24
23
|
import 'node:readline';
|
|
25
24
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:url';
|
|
27
|
-
import '@simplewebauthn/server';
|
|
28
|
-
import 'qrcode-terminal/vendor/QRCode/index.js';
|
|
29
|
-
import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
30
25
|
import 'node:dns';
|
|
31
26
|
import 'node:util';
|
|
27
|
+
import 'qrcode-terminal/vendor/QRCode/index.js';
|
|
28
|
+
import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
29
|
+
import '@simplewebauthn/server';
|
|
30
|
+
import 'node:url';
|
|
32
31
|
|
|
33
32
|
const phone_post = defineApi(async (event, body) => {
|
|
34
33
|
if (!phoneAccess(event)) return sendError(event, 403, { error: "Open wherdr on this computer (localhost) or unlock it", code: "phone_local" });
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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
|
import '../../../_/projectBoard.mjs';
|
|
29
33
|
import '../../../_/projectsActions.mjs';
|
|
30
34
|
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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
|
import '../../../_/projectBoard.mjs';
|
|
29
33
|
import '../../../_/projectsActions.mjs';
|
|
30
34
|
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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
|
import '../../../_/projectBoard.mjs';
|
|
29
33
|
import '../../../_/projectsActions.mjs';
|
|
30
34
|
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 projects_get = defineApi(async (event) => {
|
|
30
34
|
const key = getQuery(event).machine;
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 projects_post = defineApi(async (_event, body) => {
|
|
30
34
|
const key = body.machine;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, aE as currentMachineSlots } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 threadLimits_get = defineApi(async () => ({ machines: await currentMachineSlots() }));
|
|
29
33
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, aI as limitMachineKeys, H as HerdrError, aJ as validLimit, aK as readThreadLimits, aL as writeThreadLimits, aE as currentMachineSlots } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 threadLimits_post = defineApi(async (_event, body) => {
|
|
29
33
|
const key = body.machine;
|
|
@@ -23,8 +23,12 @@ import 'node:child_process';
|
|
|
23
23
|
import 'node:net';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
import 'node:fs/promises';
|
|
26
|
-
import 'node:
|
|
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 report_get = defineApi(async (event) => {
|
|
30
34
|
const q = getQuery(event);
|
|
@@ -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, aM as closeTrailingMention, a8 as closePanel, Q as log, f as findPane, aN as restarting, ae as isSlashCommand, af as addQueued, p as poll, aO as hasHeld, aP as INPUT_STATES, h as herdr, aQ as inputVisible, aR as shouldHold, aS as sendPrompt, aT as agentPrompt, aU as isBusyError, aV as HOLD_AGENTS, aW as pendingPrompts, e as watchScreen } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 prompt_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,
|
|
1
|
+
import { a as defineApi, aX as parseQuiet, H as HerdrError, aY as writeGlobalQuiet, X as readSubs, aZ as writeSubs, Q as log, a_ as quietActive, a$ as readGlobalQuiet } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 quiet_post = defineApi(async (event, b) => {
|
|
29
33
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, Z as pushReady, H as HerdrError,
|
|
1
|
+
import { a as defineApi, Z as pushReady, H as HerdrError, b0 as validPushSubscription, X as readSubs, b1 as replaceSubscription, a_ as quietActive, aZ as writeSubs, Q as log } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 subscribe_post = defineApi(async (event, b) => {
|
|
29
33
|
if (!pushReady()) throw new HerdrError("push_off", "Web Push is not configured");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, b2 as pushSend } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 test_post = defineApi(async () => ({
|
|
29
33
|
sent: await pushSend({ title: "wherdr", body: "Notifications are working \u2713", bodyFr: "Les notifications fonctionnent \u2713", tag: "test", url: "/" }, void 0, true)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, X as readSubs,
|
|
1
|
+
import { a as defineApi, X as readSubs, aZ as writeSubs } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 unsubscribe_post = defineApi(async (event, b) => {
|
|
29
33
|
const subs = (await readSubs()).filter((s) => s.endpoint !== (b && b.endpoint));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, b3 as readQuotas } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -22,8 +22,12 @@ import 'node:child_process';
|
|
|
22
22
|
import 'node:net';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
import 'node:fs/promises';
|
|
25
|
-
import 'node:
|
|
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 quotas_get = defineApi(() => readQuotas());
|
|
29
33
|
|