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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, a0 as MACHINE_KEY_RE, H as HerdrError, a1 as getMachine } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { i as installProjectsPlugin } from '../../../_/projectsPlugin.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 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, u as currentMachineSlots } 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 threadLimits_get = defineApi(async () => ({ machines: await currentMachineSlots() }));
|
|
29
33
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, a_ as limitMachineKeys, H as HerdrError, a$ as validLimit, b0 as readThreadLimits, b1 as writeThreadLimits, u as currentMachineSlots } 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 threadLimits_post = defineApi(async (_event, body) => {
|
|
29
33
|
const key = body.machine;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { a as defineApi, f as findPane, i as getQuery, H as HerdrError } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { r as readInbox } from '../../../_/projectInbox.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 '../../../_/projectThreads.mjs';
|
|
33
|
+
import '../../../_/projectBoard.mjs';
|
|
34
|
+
import '../../../_/pluginPolicy.mjs';
|
|
35
|
+
|
|
36
|
+
const inbox_get = defineApi(async (event) => {
|
|
37
|
+
const p = findPane(String(getQuery(event).pane || ""));
|
|
38
|
+
if (!p) throw new HerdrError("bad_pane", "Pane not found");
|
|
39
|
+
return readInbox(p);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { inbox_get as default };
|
|
43
|
+
//# sourceMappingURL=inbox.get.mjs.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { a as defineApi, f as findPane, H as HerdrError } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { m as markInboxDone } from '../../../_/projectInbox.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 '../../../_/projectThreads.mjs';
|
|
33
|
+
import '../../../_/projectBoard.mjs';
|
|
34
|
+
import '../../../_/pluginPolicy.mjs';
|
|
35
|
+
|
|
36
|
+
const inbox_post = defineApi(async (_event, body) => {
|
|
37
|
+
const p = findPane(String(body.pane_id || ""));
|
|
38
|
+
if (!p) throw new HerdrError("bad_pane", "Pane not found");
|
|
39
|
+
return markInboxDone(p, body.id);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { inbox_post as default };
|
|
43
|
+
//# sourceMappingURL=inbox.post.mjs.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { a as defineApi, i as getQuery, f as findPane, H as HerdrError } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { r as readProjectMemory, a as readMemoryFile } from '../../../_/projectDocs.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 '../../../_/projectBoard.mjs';
|
|
33
|
+
|
|
34
|
+
const memory_get = defineApi(async (event) => {
|
|
35
|
+
const q = getQuery(event);
|
|
36
|
+
const p = findPane(String(q.pane || ""));
|
|
37
|
+
if (!p) throw new HerdrError("bad_pane", "Pane not found");
|
|
38
|
+
return q.name === void 0 ? readProjectMemory(p) : readMemoryFile(p, q.name);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export { memory_get as default };
|
|
42
|
+
//# sourceMappingURL=memory.get.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as defineApi, i as getQuery, f as findPane, H as HerdrError } from '../../../nitro/nitro.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { e as readThreadReport } from '../../../_/projectBoard.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
5
5
|
import 'node:crypto';
|
|
@@ -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 report_get = defineApi(async (event) => {
|
|
30
34
|
const q = getQuery(event);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { a as defineApi, f as findPane, i as getQuery, H as HerdrError } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { a as readRoutines } from '../../../_/projectInbox.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 '../../../_/projectThreads.mjs';
|
|
33
|
+
import '../../../_/projectBoard.mjs';
|
|
34
|
+
import '../../../_/pluginPolicy.mjs';
|
|
35
|
+
|
|
36
|
+
const routines_get = defineApi(async (event) => {
|
|
37
|
+
const p = findPane(String(getQuery(event).pane || ""));
|
|
38
|
+
if (!p) throw new HerdrError("bad_pane", "Pane not found");
|
|
39
|
+
return readRoutines(p);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { routines_get as default };
|
|
43
|
+
//# sourceMappingURL=routines.get.mjs.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { a as defineApi, f as findPane, i as getQuery, H as HerdrError } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { b as readProjectSettings } from '../../../_/projectDocs.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 '../../../_/projectBoard.mjs';
|
|
33
|
+
|
|
34
|
+
const settings_get = defineApi(async (event) => {
|
|
35
|
+
const p = findPane(String(getQuery(event).pane || ""));
|
|
36
|
+
if (!p) throw new HerdrError("bad_pane", "Pane not found");
|
|
37
|
+
return readProjectSettings(p);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export { settings_get as default };
|
|
41
|
+
//# sourceMappingURL=settings.get.mjs.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { a as defineApi, i as getQuery, f as findPane, H as HerdrError } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { r as readThreadDetail } from '../../../_/projectThreads2.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 '../../../_/projectThreads.mjs';
|
|
33
|
+
import '../../../_/projectBoard.mjs';
|
|
34
|
+
import '../../../_/pluginPolicy.mjs';
|
|
35
|
+
|
|
36
|
+
const thread_get = defineApi(async (event) => {
|
|
37
|
+
const q = getQuery(event);
|
|
38
|
+
const p = findPane(String(q.pane || ""));
|
|
39
|
+
if (!p) throw new HerdrError("bad_pane", "Pane not found");
|
|
40
|
+
return readThreadDetail(p, q.id);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export { thread_get as default };
|
|
44
|
+
//# sourceMappingURL=thread.get.mjs.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { a as defineApi, f as findPane, H as HerdrError } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { w as withoutContainerTicker } from '../../../_/plugins.mjs';
|
|
3
|
+
import { a as runThreadAction } from '../../../_/projectThreads2.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 '../../../_/projectBoard.mjs';
|
|
34
|
+
import '../../../_/pluginPolicy.mjs';
|
|
35
|
+
import '../../../_/projectsActions.mjs';
|
|
36
|
+
import '../../../_/projectThreads.mjs';
|
|
37
|
+
|
|
38
|
+
const thread_post = defineApi(async (_event, body) => {
|
|
39
|
+
const p = findPane(String(body.pane_id || ""));
|
|
40
|
+
if (!p) throw new HerdrError("bad_pane", "Pane not found");
|
|
41
|
+
return runThreadAction(p, body.id, body.action, (t, run) => withoutContainerTicker(t.m, run));
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { thread_post as default };
|
|
45
|
+
//# sourceMappingURL=thread.post.mjs.map
|
|
@@ -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, b2 as closeTrailingMention, aE as isSlashCommand, b3 as keepPastes, T as restarting, aF as addQueued, p as poll, R as withPaneLock, f as findPane, ax as closePanel, ab as log, b4 as hasHeld, b5 as INPUT_STATES, h as herdr, b6 as inputVisible, b7 as shouldHold, b8 as sendPrompt, b9 as agentPrompt, ba as isBusyError, bb as HOLD_AGENTS, bc as pendingPrompts, e as watchScreen } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -20,17 +20,39 @@ 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 prompt_post = defineApi(async (event, b) => {
|
|
29
33
|
if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
|
|
30
34
|
const text = closeTrailingMention(String(b.text || ""));
|
|
31
35
|
if (!text.trim()) throw new HerdrError("empty", "Empty message");
|
|
32
36
|
const id = typeof b.client_id === "string" ? b.client_id : void 0;
|
|
33
|
-
if (
|
|
37
|
+
if (!isSlashCommand(text)) keepPastes(text, b.pastes);
|
|
38
|
+
if (restarting(b.pane_id) && !isSlashCommand(text)) {
|
|
39
|
+
const q2 = addQueued(b.pane_id, text, { held: true, id });
|
|
40
|
+
setTimeout(poll, 50);
|
|
41
|
+
return { ok: true, queued: q2 };
|
|
42
|
+
}
|
|
43
|
+
const held = await withPaneLock(b.pane_id, async () => {
|
|
44
|
+
const now = findPane(b.pane_id);
|
|
45
|
+
if (!(now == null ? void 0 : now.stopped) && !(now == null ? void 0 : now.leaving)) return null;
|
|
46
|
+
if (isSlashCommand(text)) throw new HerdrError("stale", now.stopped ? "Restart Codex before sending a command." : "Codex just stopped. Try again in a few seconds.");
|
|
47
|
+
const q2 = addQueued(b.pane_id, text, { held: true, id });
|
|
48
|
+
setTimeout(poll, 50);
|
|
49
|
+
return q2;
|
|
50
|
+
});
|
|
51
|
+
if (held) return { ok: true, queued: held };
|
|
52
|
+
if (await withPaneLock(b.pane_id, () => {
|
|
53
|
+
var _a;
|
|
54
|
+
return ((_a = findPane(b.pane_id)) == null ? void 0 : _a.stopped) ? Promise.resolve(false) : closePanel(b.pane_id).catch(() => false);
|
|
55
|
+
})) log(`panel closed before sending on ${b.pane_id}`);
|
|
34
56
|
const p = findPane(b.pane_id);
|
|
35
57
|
if (p && p.agent && restarting(p.id) && !isSlashCommand(text)) {
|
|
36
58
|
const q2 = addQueued(b.pane_id, text, { held: true, id });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, bd as parseQuiet, H as HerdrError, be as writeGlobalQuiet, aj as readSubs, bf as writeSubs, ab as log, bg as quietActive, bh as readGlobalQuiet } 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 quiet_post = defineApi(async (event, b) => {
|
|
29
33
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, al as pushReady, H as HerdrError, bi as validPushSubscription, aj as readSubs, bj as replaceSubscription, bg as quietActive, bf as writeSubs, ab as log } 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 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, bk as pushSend } 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 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,
|
|
1
|
+
import { a as defineApi, aj as readSubs, bf as writeSubs } 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 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, bl as readQuotas } 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 quotas_get = defineApi(() => readQuotas());
|
|
29
33
|
|
|
@@ -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 rename_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, P as PANE_RE, H as HerdrError,
|
|
1
|
+
import { a as defineApi, P as PANE_RE, H as HerdrError, bm as retryQueued } 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 requeue_post = defineApi(async (event, b) => {
|
|
29
33
|
if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid 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 restart_get = defineApi(async (event) => {
|
|
30
34
|
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 restart_post = defineApi(async (event, b) => {
|
|
30
34
|
if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
|