wherdr 1.3.3 → 1.3.4
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/{CP8o925U.js → BEJHMUrj.js} +1 -1
- package/.output/public/_nuxt/BOtcEDnA.js +1 -0
- package/.output/public/_nuxt/BUaYhQ2r.js +6 -0
- package/.output/public/_nuxt/{yzABg5xl.js → Bpoxvzh6.js} +1 -1
- package/.output/public/_nuxt/C25ROUa9.js +3 -0
- package/.output/public/_nuxt/CDWjMk9C.js +2 -0
- package/.output/public/_nuxt/CJKsMzIp.js +1 -0
- package/.output/public/_nuxt/CJNhn9sA.js +36 -0
- package/.output/public/_nuxt/COCvtdHN.js +89 -0
- package/.output/public/_nuxt/{Ci8N4mWR.js → CXJnLmWv.js} +1 -1
- package/.output/public/_nuxt/{DT8qZ0Wv.js → Cl45J6_Q.js} +1 -1
- package/.output/public/_nuxt/CndPDbMI.js +2 -0
- package/.output/public/_nuxt/Ctbx58Um.js +23 -0
- package/.output/public/_nuxt/{CKhgznq4.js → DMLmW6JM.js} +43 -39
- package/.output/public/_nuxt/Dl1PHLOB.js +1 -0
- package/.output/public/_nuxt/{DaaJIRB3.js → Nhex3_iH.js} +1 -1
- package/.output/public/_nuxt/OpWX45i7.js +89 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/4994f3a4-4126-4f57-a9e5-c7ebb25850bc.json +1 -0
- package/.output/public/_nuxt/dTj21DMs.js +1 -0
- package/.output/public/_nuxt/entry.BohTWE-n.css +2 -0
- package/.output/public/_nuxt/{Cr3SrGky.js → kwSoIiM7.js} +1 -1
- package/.output/public/_nuxt/mkEwYka4.js +1 -0
- package/.output/public/_nuxt/pdf.min.t82Z80JU.mjs +28 -0
- package/.output/public/_nuxt/pdf.worker.min.wgc6bjNh.mjs +28 -0
- package/.output/public/_nuxt/w7Rm7unj.js +1 -0
- package/.output/public/sw.js +1 -1
- package/.output/server/chunks/_/branding.mjs +1 -1
- package/.output/server/chunks/_/files.mjs +19 -6
- package/.output/server/chunks/_/machineOrder.mjs +1 -1
- package/.output/server/chunks/_/onboarding.mjs +1 -1
- package/.output/server/chunks/_/package.mjs +3 -1
- package/.output/server/chunks/_/plugins.mjs +6 -3
- package/.output/server/chunks/_/projectBoard.mjs +4 -7
- package/.output/server/chunks/_/projectsActions.mjs +1 -1
- package/.output/server/chunks/_/projectsPlugin.mjs +24 -50
- package/.output/server/chunks/_/projectsPlugin2.mjs +57 -0
- package/.output/server/chunks/_/restart.mjs +1 -1
- package/.output/server/chunks/_/reveal.mjs +1 -1
- package/.output/server/chunks/_/selfupdate.mjs +1 -1
- package/.output/server/chunks/_/settingstabs.mjs +36 -0
- package/.output/server/chunks/_/updates.mjs +1 -1
- package/.output/server/chunks/_/worktrees.mjs +1 -1
- package/.output/server/chunks/_/ws.mjs +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +840 -367
- package/.output/server/chunks/routes/api/board.get.mjs +1 -0
- package/.output/server/chunks/routes/api/chat/image.get.mjs +1 -1
- package/.output/server/chunks/routes/api/chat.get.mjs +25 -5
- package/.output/server/chunks/routes/api/choose.post.mjs +14 -14
- package/.output/server/chunks/routes/api/claude-statusline.post.mjs +1 -1
- package/.output/server/chunks/routes/api/codex-update.post.mjs +1 -1
- package/.output/server/chunks/routes/api/commands.get.mjs +3 -2
- package/.output/server/chunks/routes/api/config.get.mjs +1 -1
- package/.output/server/chunks/routes/api/dirs.get.mjs +1 -1
- package/.output/server/chunks/routes/api/dismiss-stopped.post.mjs +1 -1
- package/.output/server/chunks/routes/api/dismiss.post.mjs +1 -1
- package/.output/server/chunks/routes/api/effort.post.mjs +1 -1
- package/.output/server/chunks/routes/api/efforts.get.mjs +1 -1
- package/.output/server/chunks/routes/api/file.post.mjs +1 -1
- package/.output/server/chunks/routes/api/files/download.get.mjs +10 -3
- package/.output/server/chunks/routes/api/gitroot.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +1 -0
- package/.output/server/chunks/routes/api/input.post.mjs +27 -10
- package/.output/server/chunks/routes/api/interrupt.post.mjs +1 -1
- package/.output/server/chunks/routes/api/isgit.get.mjs +1 -1
- package/.output/server/chunks/routes/api/machine/awake.get.mjs +1 -1
- package/.output/server/chunks/routes/api/machine/awake.post.mjs +1 -1
- package/.output/server/chunks/routes/api/machine/rename.post.mjs +1 -1
- package/.output/server/chunks/routes/api/menu.post.mjs +4 -1
- package/.output/server/chunks/routes/api/model.post.mjs +1 -1
- package/.output/server/chunks/routes/api/models.get.mjs +1 -1
- package/.output/server/chunks/routes/api/nav.post.mjs +34 -21
- package/.output/server/chunks/routes/api/phone.get.mjs +1 -1
- package/.output/server/chunks/routes/api/phone.post.mjs +1 -1
- package/.output/server/chunks/routes/api/plugins/actions.get.mjs +2 -0
- package/.output/server/chunks/routes/api/plugins/invoke.post.mjs +2 -0
- package/.output/server/chunks/routes/api/plugins/profiles.get.mjs +2 -0
- package/.output/server/chunks/routes/api/plugins/projects.get.mjs +3 -2
- package/.output/server/chunks/routes/api/plugins/projects.post.mjs +3 -2
- package/.output/server/chunks/routes/api/plugins/thread-limits.post.mjs +1 -1
- package/.output/server/chunks/routes/api/project/inbox.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/inbox.post.mjs +1 -0
- package/.output/server/chunks/routes/api/project/memory.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/report.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/routines.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/settings.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/thread.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/thread.post.mjs +2 -0
- package/.output/server/chunks/routes/api/prompt.post.mjs +1 -1
- package/.output/server/chunks/routes/api/push/quiet.post.mjs +1 -1
- package/.output/server/chunks/routes/api/push/subscribe.post.mjs +1 -1
- package/.output/server/chunks/routes/api/push/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/push/unsubscribe.post.mjs +1 -1
- package/.output/server/chunks/routes/api/quotas.get.mjs +1 -1
- package/.output/server/chunks/routes/api/requeue.post.mjs +1 -1
- package/.output/server/chunks/routes/api/screen-key.post.mjs +13 -10
- package/.output/server/chunks/routes/api/screen.get.mjs +2 -35
- package/.output/server/chunks/routes/api/search.get.mjs +1 -1
- package/.output/server/chunks/routes/api/seen.post.mjs +1 -1
- package/.output/server/chunks/routes/api/sessions.get.mjs +1 -1
- package/.output/server/chunks/routes/api/sessions.post.mjs +1 -1
- package/.output/server/chunks/routes/api/settings-tab.post.mjs +89 -0
- package/.output/server/chunks/routes/api/space.post.mjs +1 -1
- package/.output/server/chunks/routes/api/unqueue.post.mjs +1 -1
- package/.output/server/chunks/routes/api/update.get.mjs +1 -1
- package/.output/server/chunks/routes/api/update.post.mjs +1 -1
- package/.output/server/chunks/routes/api/upload.post.mjs +1 -1
- package/.output/server/chunks/routes/icons/_name_.get.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +2 -2
- package/.output/server/chunks/routes/uploads/_...name_.get.mjs +1 -1
- package/.output/server/chunks/routes/ws/_..._.mjs +1 -1
- package/.output/server/chunks/routes/ws/events.mjs +1 -1
- package/.output/server/chunks/routes/ws/term.mjs +1 -1
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README.md +44 -23
- package/package.json +3 -1
- package/skills/wherdr/SKILL.md +9 -3
- package/.output/public/_nuxt/B4Yk2tB1.js +0 -23
- package/.output/public/_nuxt/BBw_0a4M.js +0 -6
- package/.output/public/_nuxt/BSy6OCIY.js +0 -1
- package/.output/public/_nuxt/BX5PM2JQ.js +0 -1
- package/.output/public/_nuxt/BgPDnf2S.js +0 -1
- package/.output/public/_nuxt/BkOxQzbS.js +0 -2
- package/.output/public/_nuxt/CWwyK2XK.js +0 -2
- package/.output/public/_nuxt/CkbmecwS.js +0 -1
- package/.output/public/_nuxt/DAg9fiVh.js +0 -89
- package/.output/public/_nuxt/DcJi16XA.js +0 -1
- package/.output/public/_nuxt/SiL1FJ5s.js +0 -3
- package/.output/public/_nuxt/VpjCgSXu.js +0 -36
- package/.output/public/_nuxt/builds/meta/c735b6c0-1bd0-47d7-a208-d310f0a06287.json +0 -1
- package/.output/public/_nuxt/dPxB2L94.js +0 -89
- package/.output/public/_nuxt/entry.CGWKmYU3.css +0 -2
- package/.output/public/_nuxt/xYX85SPI.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, i as getQuery, f as findPane,
|
|
1
|
+
import { d as defineEventHandler, i as getQuery, f as findPane, J as transcripts, s as sendError, S as sendImage } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as UPLOAD_DIR, C as uploadNames, a as defineApi, i as getQuery, f as findPane, H as HerdrError,
|
|
1
|
+
import { U as UPLOAD_DIR, C as uploadNames, D as runHerdrCli, E as parseIntegrationStatus, a as defineApi, i as getQuery, f as findPane, H as HerdrError, F as machineOfPane, G as fmt, I as takenBackOf, J as transcripts, K as missingIntegration, L as multiMachine, M as integrationCommand, N as chatPasted, O as withoutTakenBack, Q as withSentText, R as currentModel } from '../../nitro/nitro.mjs';
|
|
2
2
|
import { createHash } from 'node:crypto';
|
|
3
3
|
import fs from 'node:fs/promises';
|
|
4
4
|
import path from 'node:path';
|
|
@@ -31,19 +31,19 @@ import 'node:url';
|
|
|
31
31
|
|
|
32
32
|
const UPLOAD_PATH = /\.cache\/herdr-web\/uploads\/([\w-]+\.[a-z]+)/g;
|
|
33
33
|
const CACHE_MAX = 500;
|
|
34
|
-
const cache = /* @__PURE__ */ new Map();
|
|
34
|
+
const cache$1 = /* @__PURE__ */ new Map();
|
|
35
35
|
async function uploadHash(dir, name) {
|
|
36
36
|
const key = `${dir}
|
|
37
37
|
${name}`;
|
|
38
|
-
if (cache.has(key)) return cache.get(key);
|
|
38
|
+
if (cache$1.has(key)) return cache$1.get(key);
|
|
39
39
|
let hash = null;
|
|
40
40
|
try {
|
|
41
41
|
hash = createHash("sha256").update(await fs.readFile(path.join(dir, path.basename(name)))).digest("hex");
|
|
42
42
|
} catch {
|
|
43
43
|
hash = null;
|
|
44
44
|
}
|
|
45
|
-
if (cache.size >= CACHE_MAX) cache.delete(cache.keys().next().value);
|
|
46
|
-
cache.set(key, hash);
|
|
45
|
+
if (cache$1.size >= CACHE_MAX) cache$1.delete(cache$1.keys().next().value);
|
|
46
|
+
cache$1.set(key, hash);
|
|
47
47
|
return hash;
|
|
48
48
|
}
|
|
49
49
|
async function addUploadHashes(items, dir = UPLOAD_DIR) {
|
|
@@ -68,6 +68,23 @@ ${((_a = it.omp) == null ? void 0 : _a.target) || ""}`.matchAll(UPLOAD_PATH)].ma
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
const ttl = Number(process.env.WHERDR_INTEGRATION_TTL_MS);
|
|
72
|
+
const TTL_MS = Number.isFinite(ttl) && ttl >= 0 ? ttl : 6e4;
|
|
73
|
+
const cache = /* @__PURE__ */ new Map();
|
|
74
|
+
const keyOf = (m) => m.local ? "" : `${m.target || m.key}`;
|
|
75
|
+
async function integrationStatus(m) {
|
|
76
|
+
const key = keyOf(m);
|
|
77
|
+
const hit = cache.get(key);
|
|
78
|
+
if (hit == null ? void 0 : hit.pending) return hit.pending;
|
|
79
|
+
if (hit && Date.now() - hit.at < TTL_MS) return hit.status;
|
|
80
|
+
const pending = runHerdrCli(m, ["integration", "status"], 8e3).then((r) => r.code === 0 ? parseIntegrationStatus(r.stdout.toString("utf8")) : null).catch(() => null).then((status) => {
|
|
81
|
+
cache.set(key, { at: Date.now(), status: status && Object.keys(status).length ? status : null });
|
|
82
|
+
return cache.get(key).status;
|
|
83
|
+
});
|
|
84
|
+
cache.set(key, { at: (hit == null ? void 0 : hit.at) || 0, status: (hit == null ? void 0 : hit.status) || null, pending });
|
|
85
|
+
return pending;
|
|
86
|
+
}
|
|
87
|
+
|
|
71
88
|
const chat_get = defineApi(async (event) => {
|
|
72
89
|
const q = getQuery(event);
|
|
73
90
|
const p = findPane(String(q.pane || ""));
|
|
@@ -85,6 +102,9 @@ const chat_get = defineApi(async (event) => {
|
|
|
85
102
|
before: num("before")
|
|
86
103
|
// older slice, ending at this byte
|
|
87
104
|
});
|
|
105
|
+
if (!r.available && r.reason === "not_found" && m && p.agent && !p.agentSession && missingIntegration(p, await integrationStatus(m), m.transcripts.wasActive(p.id, p.agent))) {
|
|
106
|
+
return { ...r, reason: "no_integration", integration: { agent: p.agent, command: integrationCommand(p.agent), machine: multiMachine() ? m.label : null } };
|
|
107
|
+
}
|
|
88
108
|
if (r.token) r.token += mark;
|
|
89
109
|
if (r.items) {
|
|
90
110
|
r.items = chatPasted(withoutTakenBack(r.items, hidden));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HerdrError,
|
|
1
|
+
import { H as HerdrError, T as keysFor, V as parseChoices, W as parseOmpField, a as defineApi, P as PANE_RE, f as findPane, X as withPaneLock, Y as selfUpdates, Z as restarting, _ as updateChoices, $ as UPDATE_LABELS, a0 as updateRestartPlan, a1 as restarts, p as poll, h as herdr, J as transcripts, b as screenChoices, a2 as usesTerminalException, a3 as sameQuestion, a4 as sleep, g as choicesCache } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -140,24 +140,24 @@ const choose_post = defineApi(async (event, b) => {
|
|
|
140
140
|
return { ok: true };
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
-
const r = await herdr("pane.read", { pane_id: b.pane_id, source: "detection" }, 4e3);
|
|
144
|
-
const text = r.read && r.read.text;
|
|
145
|
-
const pane = findPane(b.pane_id);
|
|
146
|
-
const asked = pane && pane.agent === "claude" ? await transcripts.pendingClaudeQuestions(pane).catch(() => []) : [];
|
|
147
|
-
const choices = screenChoices(text, pane == null ? void 0 : pane.agent, asked);
|
|
148
|
-
const i = Number(b.index);
|
|
149
|
-
const option = choices && choices.options[i];
|
|
150
|
-
const answer = typeof b.text === "string" ? b.text.trim() : "";
|
|
151
|
-
if (!choices || usesTerminalException({ text: String(text || ""), agent: pane == null ? void 0 : pane.agent, status: pane == null ? void 0 : pane.status }) || !option || option.label !== b.label || answer && !option.free || option.free && !sameQuestion(choices.question, typeof b.question === "string" ? b.question : null)) {
|
|
152
|
-
throw new HerdrError("stale", "The question has changed \u2014 check the current screen.");
|
|
153
|
-
}
|
|
154
|
-
if (option.free && !answer) throw new HerdrError("bad_text", "Write your answer before sending it.");
|
|
155
143
|
try {
|
|
144
|
+
const pane = findPane(b.pane_id);
|
|
145
|
+
const asked = pane && pane.agent === "claude" ? await transcripts.pendingClaudeQuestions(pane).catch(() => []) : [];
|
|
146
|
+
const r = await herdr("pane.read", { pane_id: b.pane_id, source: "detection" }, 4e3);
|
|
147
|
+
const text = r.read && r.read.text;
|
|
148
|
+
const choices = screenChoices(text, pane == null ? void 0 : pane.agent, asked);
|
|
149
|
+
const i = Number(b.index);
|
|
150
|
+
const option = choices && choices.options[i];
|
|
151
|
+
const answer = typeof b.text === "string" ? b.text.trim() : "";
|
|
152
|
+
if (!choices || !b.identity || choices.identity !== b.identity || usesTerminalException({ text: String(text || ""), agent: pane == null ? void 0 : pane.agent, status: pane == null ? void 0 : pane.status }) || !option || option.label !== b.label || answer && !option.free || option.free && !sameQuestion(choices.question, typeof b.question === "string" ? b.question : null)) {
|
|
153
|
+
throw new HerdrError("stale", "The question has changed \u2014 check the current screen.");
|
|
154
|
+
}
|
|
155
|
+
if (option.free && !answer) throw new HerdrError("bad_text", "Write your answer before sending it.");
|
|
156
156
|
if (option.free) await answerFree({ call: herdr, sleep, now: Date.now }, b.pane_id, choices, i, answer, pane == null ? void 0 : pane.agent);
|
|
157
157
|
else await herdr("pane.send_input", { pane_id: b.pane_id, keys: keysFor(choices, i) });
|
|
158
158
|
} finally {
|
|
159
159
|
choicesCache.delete(b.pane_id);
|
|
160
|
-
setTimeout(poll,
|
|
160
|
+
setTimeout(poll, 0);
|
|
161
161
|
}
|
|
162
162
|
return { ok: true };
|
|
163
163
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, a5 as MACHINE_KEY_RE, a6 as getMachine, H as HerdrError, a7 as installClaudeStatusline } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, P as PANE_RE, H as HerdrError, f as findPane,
|
|
1
|
+
import { a as defineApi, P as PANE_RE, H as HerdrError, f as findPane, a8 as codexStatus } from '../../nitro/nitro.mjs';
|
|
2
2
|
import { u as updateCodexInPane } from '../../_/restart.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, f as findPane, i as getQuery, H as HerdrError,
|
|
1
|
+
import { a as defineApi, f as findPane, i as getQuery, H as HerdrError, F as machineOfPane, ak as builtinCommands, al as slashCommands, ag as log } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -36,7 +36,8 @@ const commands_get = defineApi(async (event) => {
|
|
|
36
36
|
if (!p.agent || !m || !m.home) return { commands: [] };
|
|
37
37
|
if (!m.local && m.status !== "online") return { commands: builtinCommands(p.agent), partial: true };
|
|
38
38
|
try {
|
|
39
|
-
|
|
39
|
+
const r = await slashCommands({ key: m.key, fs: m.fs, exec: m.exec, home: m.home, kind: p.agent, cwd: p.cwd });
|
|
40
|
+
return r.denied ? { ...r, remote: !m.local } : r;
|
|
40
41
|
} catch (e) {
|
|
41
42
|
log(`commands ${p.id}: ${e.message}`);
|
|
42
43
|
return { commands: builtinCommands(p.agent), partial: true };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { am as HOME, a as defineApi, an as localMachine, ao as readSubs, ap as vapidPublicKey, aq as pushReady, ar as machineConfigs, as as recentDirsWithKinds, at as installedAgentKinds, l as localMachineLabel } from '../../nitro/nitro.mjs';
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { h as hostOpenReady } from '../../_/reveal.mjs';
|
|
@@ -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, X as withPaneLock, f as findPane, Z as restarting, aB as dismissStopped, p as poll } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -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, aC as closePanel } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -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, aD as setEffort, f as findPane, aE as refreshModel } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, i as getQuery, P as PANE_RE, H as HerdrError,
|
|
1
|
+
import { a as defineApi, i as getQuery, P as PANE_RE, H as HerdrError, aF as listEfforts, f as findPane, aE as refreshModel } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, i as getQuery,
|
|
1
|
+
import { a as defineApi, i as getQuery, aG 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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as defineApi, i as getQuery, f as findPane, H as HerdrError, v as machineFor,
|
|
2
|
-
import { r as readWrittenBytes, a as readFileBytes, b as attachmentHeader } from '../../../_/files.mjs';
|
|
1
|
+
import { a as defineApi, i as getQuery, f as findPane, H as HerdrError, v as machineFor, aH as setResponseHeader } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { r as readWrittenBytes, a as readFileBytes, i as isPdf, b as attachmentHeader } from '../../../_/files.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
5
5
|
import 'node:crypto';
|
|
@@ -42,9 +42,16 @@ const download_get = defineApi(async (event) => {
|
|
|
42
42
|
if (!p.cwd) throw new HerdrError("bad_cwd", "This agent\u2019s folder is unknown");
|
|
43
43
|
f = await readFileBytes(machineFor(p.machine), p.cwd, q.path);
|
|
44
44
|
}
|
|
45
|
+
setResponseHeader(event, "x-content-type-options", "nosniff");
|
|
46
|
+
if (q.inline === "1" && isPdf(f.name, f.body)) {
|
|
47
|
+
setResponseHeader(event, "content-type", "application/pdf");
|
|
48
|
+
setResponseHeader(event, "content-disposition", attachmentHeader(f.name, "inline"));
|
|
49
|
+
setResponseHeader(event, "content-security-policy", "default-src 'none'; object-src 'self'; frame-ancestors 'self'");
|
|
50
|
+
setResponseHeader(event, "cache-control", "private, no-store");
|
|
51
|
+
return f.body;
|
|
52
|
+
}
|
|
45
53
|
setResponseHeader(event, "content-type", "application/octet-stream");
|
|
46
54
|
setResponseHeader(event, "content-disposition", attachmentHeader(f.name));
|
|
47
|
-
setResponseHeader(event, "x-content-type-options", "nosniff");
|
|
48
55
|
setResponseHeader(event, "content-security-policy", "default-src 'none'; sandbox");
|
|
49
56
|
return f.body;
|
|
50
57
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, i as getQuery, v as machineFor,
|
|
1
|
+
import { a as defineApi, i as getQuery, v as machineFor, aI as underHome } from '../../nitro/nitro.mjs';
|
|
2
2
|
import { g as gitToplevel } from '../../_/changes.mjs';
|
|
3
3
|
import { p as proposedRepo } from '../../_/projectsActions.mjs';
|
|
4
4
|
import 'node:http';
|
|
@@ -29,6 +29,7 @@ import 'qrcode-terminal/vendor/QRCode/index.js';
|
|
|
29
29
|
import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
30
30
|
import '@simplewebauthn/server';
|
|
31
31
|
import 'node:url';
|
|
32
|
+
import '../../_/projectsPlugin.mjs';
|
|
32
33
|
|
|
33
34
|
const index_get = defineApi(async (event) => {
|
|
34
35
|
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, X as withPaneLock, f as findPane, J as transcripts, h as herdr, b as screenChoices, a2 as usesTerminalException, aJ as isSlashCommand, aK as addQueued, p as poll, g as choicesCache } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -32,17 +32,34 @@ import 'node:url';
|
|
|
32
32
|
const input_post = defineApi(async (event, b) => {
|
|
33
33
|
if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
|
|
34
34
|
const held = await withPaneLock(b.pane_id, async () => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
var _a;
|
|
36
|
+
try {
|
|
37
|
+
const now = findPane(b.pane_id);
|
|
38
|
+
if (b.native) {
|
|
39
|
+
const asked = (now == null ? void 0 : now.agent) === "claude" ? await transcripts.pendingClaudeQuestions(now).catch(() => []) : [];
|
|
40
|
+
const r = await herdr("pane.read", { pane_id: b.pane_id, source: "detection" }, 4e3);
|
|
41
|
+
const text = (_a = r.read) == null ? void 0 : _a.text;
|
|
42
|
+
const choices = screenChoices(text, now == null ? void 0 : now.agent, asked);
|
|
43
|
+
if ((now == null ? void 0 : now.stopped) || (now == null ? void 0 : now.leaving) || !b.identity || (choices == null ? void 0 : choices.identity) !== b.identity || usesTerminalException({ text: String(text || ""), agent: now == null ? void 0 : now.agent, status: now == null ? void 0 : now.status })) {
|
|
44
|
+
throw new HerdrError("stale", "The question has changed \u2014 check the current screen.");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if ((now == null ? void 0 : now.stopped) || (now == null ? void 0 : now.leaving)) {
|
|
48
|
+
if (typeof b.text !== "string" || !b.text.trim() || isSlashCommand(b.text) || !Array.isArray(b.keys) || b.keys.length !== 1 || b.keys[0] !== "enter") {
|
|
49
|
+
throw new HerdrError("stale", now.stopped ? "Restart Codex before sending a command." : "Codex just stopped. Try again in a few seconds.");
|
|
50
|
+
}
|
|
51
|
+
const q = addQueued(b.pane_id, b.text, { held: true });
|
|
52
|
+
setTimeout(poll, 50);
|
|
53
|
+
return q;
|
|
54
|
+
}
|
|
55
|
+
if (typeof b.text === "string" && b.text) await herdr("pane.send_input", { pane_id: b.pane_id, text: b.text });
|
|
56
|
+
if (Array.isArray(b.keys) && b.keys.length) await herdr("pane.send_input", { pane_id: b.pane_id, keys: b.keys.map(String) });
|
|
57
|
+
} finally {
|
|
58
|
+
if (b.native) {
|
|
59
|
+
choicesCache.delete(b.pane_id);
|
|
60
|
+
setTimeout(poll, 0);
|
|
39
61
|
}
|
|
40
|
-
const q = addQueued(b.pane_id, b.text, { held: true });
|
|
41
|
-
setTimeout(poll, 50);
|
|
42
|
-
return q;
|
|
43
62
|
}
|
|
44
|
-
if (typeof b.text === "string" && b.text) await herdr("pane.send_input", { pane_id: b.pane_id, text: b.text });
|
|
45
|
-
if (Array.isArray(b.keys) && b.keys.length) await herdr("pane.send_input", { pane_id: b.pane_id, keys: b.keys.map(String) });
|
|
46
63
|
});
|
|
47
64
|
if (held) return { ok: true, queued: held };
|
|
48
65
|
const p = findPane(b.pane_id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, P as PANE_RE, H as HerdrError, f as findPane,
|
|
1
|
+
import { a as defineApi, P as PANE_RE, H as HerdrError, f as findPane, aL as interruptAgent, a4 as sleep, h as herdr, aM as takeBackFromClaude, aN as takeBack, ag as log, p as poll } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, i as getQuery, v as machineFor,
|
|
1
|
+
import { a as defineApi, i as getQuery, v as machineFor, aI as underHome, aO as isGitRepo, aP as projectFolderKinds } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, i as getQuery,
|
|
1
|
+
import { a as defineApi, i as getQuery, a5 as MACHINE_KEY_RE, H as HerdrError, a6 as getMachine } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { a as awakeStatus, s as sleepAssertions } from '../../../_/awake.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, a5 as MACHINE_KEY_RE, H as HerdrError, a6 as getMachine } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { b as setAwake } from '../../../_/awake.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, a5 as MACHINE_KEY_RE, a6 as getMachine, H as HerdrError, aS as renameMachine } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -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, aT as readMenu, aU as findEntry, aV as menuIdentity, aW as searchKeys, a4 as sleep, aX as stepToward, aY as clickMovesOnly, e as watchScreen, J as transcripts, p as poll, h as herdr } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -38,6 +38,8 @@ const menu_post = defineApi(async (event, b) => {
|
|
|
38
38
|
const pane = b.pane_id;
|
|
39
39
|
let menu = await readMenu(pane);
|
|
40
40
|
if (!menu) throw new HerdrError("stale", STALE);
|
|
41
|
+
const targetEntry = b.op === "select" ? menu.items[findEntry(menu, Number(b.index), String(b.label || ""))] : void 0;
|
|
42
|
+
if (!b.identity || menuIdentity(menu, targetEntry) !== b.identity) throw new HerdrError("stale", STALE);
|
|
41
43
|
if (b.op === "key") {
|
|
42
44
|
const a = menu.actions.find((x) => x.key === b.key && x.label === b.label);
|
|
43
45
|
if (!a) throw new HerdrError("stale", STALE);
|
|
@@ -69,6 +71,7 @@ const menu_post = defineApi(async (event, b) => {
|
|
|
69
71
|
}
|
|
70
72
|
if (!menu || at(menu) === before) throw new HerdrError("stale", "The cursor doesn\u2019t move \u2014 finish in the terminal.");
|
|
71
73
|
target = findEntry(menu, -1, label);
|
|
74
|
+
if (target < 0 || menuIdentity(menu, menu.items[target]) !== b.identity) throw new HerdrError("stale", STALE);
|
|
72
75
|
}
|
|
73
76
|
} else throw new HerdrError("bad_request", "Invalid operation");
|
|
74
77
|
watchScreen(pane, 3e4);
|
|
@@ -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, aZ as setModel, f as findPane, aE as refreshModel } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, i as getQuery, P as PANE_RE, H as HerdrError,
|
|
1
|
+
import { a as defineApi, i as getQuery, P as PANE_RE, H as HerdrError, a_ as listModels } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi, P as PANE_RE, H as HerdrError, f as findPane, h as herdr,
|
|
1
|
+
import { a as defineApi, P as PANE_RE, H as HerdrError, f as findPane, h as herdr, e as watchScreen, a$ as refreshNativeScreen, b0 as TOP, aT as readMenu, aV as menuIdentity, b as screenChoices, aY as clickMovesOnly, 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';
|
|
@@ -31,33 +31,46 @@ import 'node:url';
|
|
|
31
31
|
|
|
32
32
|
const KEYS = /* @__PURE__ */ new Set(["up", "down", "enter", "esc", "left", "right"]);
|
|
33
33
|
const nav_post = defineApi(async (event, b) => {
|
|
34
|
-
var _a, _b;
|
|
34
|
+
var _a, _b, _c, _d, _e;
|
|
35
35
|
if (!PANE_RE.test(b.pane_id || "")) throw new HerdrError("bad_pane", "Invalid pane");
|
|
36
36
|
const pane = b.pane_id;
|
|
37
37
|
if ((_a = findPane(pane)) == null ? void 0 : _a.stopped) throw new HerdrError("stale", "Use the restart buttons for this stopped agent.");
|
|
38
38
|
const key = String(b.key || "");
|
|
39
39
|
if (!KEYS.has(key)) throw new HerdrError("bad_request", "Invalid key");
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (key === "left" || key === "right") throw new HerdrError("stale", "The screen has changed \u2014 check the current screen.");
|
|
48
|
-
} else {
|
|
49
|
-
const choices = screenChoices(text, agent);
|
|
50
|
-
if (!choices || (key === "left" || key === "right") && !(choices.tabs && !choices.typing)) {
|
|
51
|
-
throw new HerdrError("stale", "The screen has changed \u2014 check the current screen.");
|
|
40
|
+
try {
|
|
41
|
+
const shown = findPane(pane);
|
|
42
|
+
if ((key === "up" || key === "down") && shown && !shown.leaving && shown.status !== "working" && !((_b = shown.menu) == null ? void 0 : _b.unavailable) && !((_c = shown.prompt) == null ? void 0 : _c.unavailable) && (shown.menu || shown.prompt)) {
|
|
43
|
+
await herdr("pane.send_input", { pane_id: pane, keys: [key] });
|
|
44
|
+
watchScreen(pane, 3e4);
|
|
45
|
+
setTimeout(() => refreshNativeScreen(pane), 50);
|
|
46
|
+
return { ok: true };
|
|
52
47
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
const r = await herdr("pane.read", { pane_id: pane, source: "detection" }, 4e3);
|
|
49
|
+
const text = r.read && r.read.text;
|
|
50
|
+
const agent = (_d = findPane(pane)) == null ? void 0 : _d.agent;
|
|
51
|
+
const framed = agent !== "omp" && String(text || "").split("\n").some((l) => TOP.test(l));
|
|
52
|
+
const menu = framed ? await readMenu(pane) : null;
|
|
53
|
+
if (key === "enter") {
|
|
54
|
+
const current = menu ? menuIdentity(menu) : (_e = screenChoices(text, agent)) == null ? void 0 : _e.identity;
|
|
55
|
+
if (!b.identity || current !== b.identity) throw new HerdrError("stale", "The question has changed \u2014 check the current screen.");
|
|
56
|
+
}
|
|
57
|
+
if (menu) {
|
|
58
|
+
if (key === "enter" && clickMovesOnly(menu)) throw new HerdrError("stale", "Enter doesn\u2019t confirm from here \u2014 use the buttons.");
|
|
59
|
+
if (key === "left" || key === "right") throw new HerdrError("stale", "The screen has changed \u2014 check the current screen.");
|
|
60
|
+
} else {
|
|
61
|
+
const choices = screenChoices(text, agent);
|
|
62
|
+
if (!choices || (key === "left" || key === "right") && !(choices.tabs && !choices.typing)) {
|
|
63
|
+
throw new HerdrError("stale", "The screen has changed \u2014 check the current screen.");
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
await herdr("pane.send_input", { pane_id: pane, keys: [key] });
|
|
67
|
+
watchScreen(pane, 3e4);
|
|
68
|
+
setTimeout(() => refreshNativeScreen(pane), 50);
|
|
69
|
+
return { ok: true };
|
|
70
|
+
} finally {
|
|
57
71
|
choicesCache.delete(pane);
|
|
58
|
-
poll
|
|
59
|
-
}
|
|
60
|
-
return { ok: true };
|
|
72
|
+
setTimeout(poll, 0);
|
|
73
|
+
}
|
|
61
74
|
});
|
|
62
75
|
|
|
63
76
|
export { nav_post as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, b2 as phoneAccess, s as sendError, b3 as phoneStatus } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, b2 as phoneAccess, s as sendError, b4 as phoneAction } from '../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -30,6 +30,8 @@ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
|
30
30
|
import '@simplewebauthn/server';
|
|
31
31
|
import 'node:url';
|
|
32
32
|
import '../../../_/projectBoard.mjs';
|
|
33
|
+
import '../../../_/projectsPlugin.mjs';
|
|
34
|
+
import '../../../_/projectsPlugin2.mjs';
|
|
33
35
|
import '../../../_/pluginPolicy.mjs';
|
|
34
36
|
import '../../../_/projectsActions.mjs';
|
|
35
37
|
|
|
@@ -30,6 +30,8 @@ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
|
30
30
|
import '@simplewebauthn/server';
|
|
31
31
|
import 'node:url';
|
|
32
32
|
import '../../../_/projectBoard.mjs';
|
|
33
|
+
import '../../../_/projectsPlugin.mjs';
|
|
34
|
+
import '../../../_/projectsPlugin2.mjs';
|
|
33
35
|
import '../../../_/pluginPolicy.mjs';
|
|
34
36
|
import '../../../_/projectsActions.mjs';
|
|
35
37
|
|
|
@@ -30,6 +30,8 @@ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
|
30
30
|
import '@simplewebauthn/server';
|
|
31
31
|
import 'node:url';
|
|
32
32
|
import '../../../_/projectBoard.mjs';
|
|
33
|
+
import '../../../_/projectsPlugin.mjs';
|
|
34
|
+
import '../../../_/projectsPlugin2.mjs';
|
|
33
35
|
import '../../../_/pluginPolicy.mjs';
|
|
34
36
|
import '../../../_/projectsActions.mjs';
|
|
35
37
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as defineApi, i as getQuery,
|
|
2
|
-
import { p as projectsPluginState } from '../../../_/
|
|
1
|
+
import { a as defineApi, i as getQuery, a5 as MACHINE_KEY_RE, H as HerdrError, a6 as getMachine } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { p as projectsPluginState } from '../../../_/projectsPlugin2.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
5
5
|
import 'node:crypto';
|
|
@@ -29,6 +29,7 @@ import 'qrcode-terminal/vendor/QRCode/index.js';
|
|
|
29
29
|
import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
30
30
|
import '@simplewebauthn/server';
|
|
31
31
|
import 'node:url';
|
|
32
|
+
import '../../../_/projectsPlugin.mjs';
|
|
32
33
|
|
|
33
34
|
const projects_get = defineApi(async (event) => {
|
|
34
35
|
const key = getQuery(event).machine;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
2
|
-
import { i as installProjectsPlugin } from '../../../_/
|
|
1
|
+
import { a as defineApi, a5 as MACHINE_KEY_RE, H as HerdrError, a6 as getMachine } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { i as installProjectsPlugin } from '../../../_/projectsPlugin2.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
5
5
|
import 'node:crypto';
|
|
@@ -29,6 +29,7 @@ import 'qrcode-terminal/vendor/QRCode/index.js';
|
|
|
29
29
|
import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
30
30
|
import '@simplewebauthn/server';
|
|
31
31
|
import 'node:url';
|
|
32
|
+
import '../../../_/projectsPlugin.mjs';
|
|
32
33
|
|
|
33
34
|
const projects_post = defineApi(async (_event, body) => {
|
|
34
35
|
const key = body.machine;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineApi,
|
|
1
|
+
import { a as defineApi, b5 as limitMachineKeys, H as HerdrError, b6 as validLimit, b7 as readThreadLimits, b8 as writeThreadLimits, u as currentMachineSlots } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -31,6 +31,7 @@ import '@simplewebauthn/server';
|
|
|
31
31
|
import 'node:url';
|
|
32
32
|
import '../../../_/projectThreads.mjs';
|
|
33
33
|
import '../../../_/projectBoard.mjs';
|
|
34
|
+
import '../../../_/projectsPlugin.mjs';
|
|
34
35
|
import '../../../_/pluginPolicy.mjs';
|
|
35
36
|
|
|
36
37
|
const inbox_get = defineApi(async (event) => {
|
|
@@ -31,6 +31,7 @@ import '@simplewebauthn/server';
|
|
|
31
31
|
import 'node:url';
|
|
32
32
|
import '../../../_/projectThreads.mjs';
|
|
33
33
|
import '../../../_/projectBoard.mjs';
|
|
34
|
+
import '../../../_/projectsPlugin.mjs';
|
|
34
35
|
import '../../../_/pluginPolicy.mjs';
|
|
35
36
|
|
|
36
37
|
const inbox_post = defineApi(async (_event, body) => {
|
|
@@ -30,6 +30,7 @@ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
|
30
30
|
import '@simplewebauthn/server';
|
|
31
31
|
import 'node:url';
|
|
32
32
|
import '../../../_/projectBoard.mjs';
|
|
33
|
+
import '../../../_/projectsPlugin.mjs';
|
|
33
34
|
|
|
34
35
|
const memory_get = defineApi(async (event) => {
|
|
35
36
|
const q = getQuery(event);
|
|
@@ -29,6 +29,7 @@ import 'qrcode-terminal/vendor/QRCode/index.js';
|
|
|
29
29
|
import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
30
30
|
import '@simplewebauthn/server';
|
|
31
31
|
import 'node:url';
|
|
32
|
+
import '../../../_/projectsPlugin.mjs';
|
|
32
33
|
|
|
33
34
|
const report_get = defineApi(async (event) => {
|
|
34
35
|
const q = getQuery(event);
|
|
@@ -31,6 +31,7 @@ import '@simplewebauthn/server';
|
|
|
31
31
|
import 'node:url';
|
|
32
32
|
import '../../../_/projectThreads.mjs';
|
|
33
33
|
import '../../../_/projectBoard.mjs';
|
|
34
|
+
import '../../../_/projectsPlugin.mjs';
|
|
34
35
|
import '../../../_/pluginPolicy.mjs';
|
|
35
36
|
|
|
36
37
|
const routines_get = defineApi(async (event) => {
|
|
@@ -30,6 +30,7 @@ import 'qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js';
|
|
|
30
30
|
import '@simplewebauthn/server';
|
|
31
31
|
import 'node:url';
|
|
32
32
|
import '../../../_/projectBoard.mjs';
|
|
33
|
+
import '../../../_/projectsPlugin.mjs';
|
|
33
34
|
|
|
34
35
|
const settings_get = defineApi(async (event) => {
|
|
35
36
|
const p = findPane(String(getQuery(event).pane || ""));
|
|
@@ -31,6 +31,7 @@ import '@simplewebauthn/server';
|
|
|
31
31
|
import 'node:url';
|
|
32
32
|
import '../../../_/projectThreads.mjs';
|
|
33
33
|
import '../../../_/projectBoard.mjs';
|
|
34
|
+
import '../../../_/projectsPlugin.mjs';
|
|
34
35
|
import '../../../_/pluginPolicy.mjs';
|
|
35
36
|
|
|
36
37
|
const thread_get = defineApi(async (event) => {
|