@ashx-j/lunr 0.2.24 → 0.2.26
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/CHANGELOG.md +24 -1
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +1 -0
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/lunr-computer-use.d.ts +3 -0
- package/dist/builtin-extensions/lunr-computer-use.d.ts.map +1 -0
- package/dist/builtin-extensions/lunr-computer-use.js +179 -0
- package/dist/builtin-extensions/lunr-computer-use.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +4 -4
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +8 -5
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +11 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +3 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +15 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.js +5 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +5 -3
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/core/computer-use/adapter.d.ts +28 -0
- package/dist/core/computer-use/adapter.d.ts.map +1 -0
- package/dist/core/computer-use/adapter.js +133 -0
- package/dist/core/computer-use/adapter.js.map +1 -0
- package/dist/core/computer-use/image.d.ts +27 -0
- package/dist/core/computer-use/image.d.ts.map +1 -0
- package/dist/core/computer-use/image.js +72 -0
- package/dist/core/computer-use/image.js.map +1 -0
- package/dist/core/computer-use/lease.d.ts +18 -0
- package/dist/core/computer-use/lease.d.ts.map +1 -0
- package/dist/core/computer-use/lease.js +129 -0
- package/dist/core/computer-use/lease.js.map +1 -0
- package/dist/core/computer-use/macos-runtime.d.ts +14 -0
- package/dist/core/computer-use/macos-runtime.d.ts.map +1 -0
- package/dist/core/computer-use/macos-runtime.js +148 -0
- package/dist/core/computer-use/macos-runtime.js.map +1 -0
- package/dist/core/computer-use/policy.d.ts +19 -0
- package/dist/core/computer-use/policy.d.ts.map +1 -0
- package/dist/core/computer-use/policy.js +67 -0
- package/dist/core/computer-use/policy.js.map +1 -0
- package/dist/core/computer-use/release.generated.d.ts +31 -0
- package/dist/core/computer-use/release.generated.d.ts.map +1 -0
- package/dist/core/computer-use/release.generated.js +36 -0
- package/dist/core/computer-use/release.generated.js.map +1 -0
- package/dist/core/computer-use/runtime.d.ts +13 -0
- package/dist/core/computer-use/runtime.d.ts.map +1 -0
- package/dist/core/computer-use/runtime.js +158 -0
- package/dist/core/computer-use/runtime.js.map +1 -0
- package/dist/core/computer-use/schemas.d.ts +100 -0
- package/dist/core/computer-use/schemas.d.ts.map +1 -0
- package/dist/core/computer-use/schemas.js +79 -0
- package/dist/core/computer-use/schemas.js.map +1 -0
- package/dist/core/computer-use/windows-desktop.d.ts +3 -0
- package/dist/core/computer-use/windows-desktop.d.ts.map +1 -0
- package/dist/core/computer-use/windows-desktop.js +48 -0
- package/dist/core/computer-use/windows-desktop.js.map +1 -0
- package/dist/core/computer-use/workflow.d.ts +38 -0
- package/dist/core/computer-use/workflow.d.ts.map +1 -0
- package/dist/core/computer-use/workflow.js +560 -0
- package/dist/core/computer-use/workflow.js.map +1 -0
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +4 -0
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/permissions.d.ts +1 -1
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +14 -3
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +9 -0
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/settings-manager.d.ts +6 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +19 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/subagent-event-transport.d.ts +3 -0
- package/dist/core/subagent-event-transport.d.ts.map +1 -0
- package/dist/core/subagent-event-transport.js +61 -0
- package/dist/core/subagent-event-transport.js.map +1 -0
- package/dist/gateway/adapters/discord.d.ts.map +1 -1
- package/dist/gateway/adapters/discord.js +4 -9
- package/dist/gateway/adapters/discord.js.map +1 -1
- package/dist/gateway/adapters/telegram.d.ts.map +1 -1
- package/dist/gateway/adapters/telegram.js +7 -0
- package/dist/gateway/adapters/telegram.js.map +1 -1
- package/dist/gateway/agent-bridge.d.ts +4 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +57 -17
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/approval.d.ts.map +1 -1
- package/dist/gateway/approval.js +3 -3
- package/dist/gateway/approval.js.map +1 -1
- package/dist/gateway/authz.d.ts +4 -4
- package/dist/gateway/authz.d.ts.map +1 -1
- package/dist/gateway/authz.js +8 -12
- package/dist/gateway/authz.js.map +1 -1
- package/dist/gateway/buttons.d.ts.map +1 -1
- package/dist/gateway/buttons.js +29 -19
- package/dist/gateway/buttons.js.map +1 -1
- package/dist/gateway/commands.d.ts +2 -0
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +35 -18
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/config.d.ts +1 -0
- package/dist/gateway/config.d.ts.map +1 -1
- package/dist/gateway/config.js +2 -0
- package/dist/gateway/config.js.map +1 -1
- package/dist/gateway/cron.d.ts +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +22 -8
- package/dist/gateway/cron.js.map +1 -1
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +26 -26
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/mobile-commands.d.ts.map +1 -1
- package/dist/gateway/mobile-commands.js +11 -11
- package/dist/gateway/mobile-commands.js.map +1 -1
- package/dist/gateway/presenter.d.ts +12 -1
- package/dist/gateway/presenter.d.ts.map +1 -1
- package/dist/gateway/presenter.js +148 -50
- package/dist/gateway/presenter.js.map +1 -1
- package/dist/gateway/router.d.ts +5 -5
- package/dist/gateway/router.d.ts.map +1 -1
- package/dist/gateway/router.js +95 -43
- package/dist/gateway/router.js.map +1 -1
- package/dist/gateway/service.d.ts.map +1 -1
- package/dist/gateway/service.js +13 -4
- package/dist/gateway/service.js.map +1 -1
- package/dist/gateway/setup.d.ts +5 -0
- package/dist/gateway/setup.d.ts.map +1 -1
- package/dist/gateway/setup.js +101 -43
- package/dist/gateway/setup.js.map +1 -1
- package/dist/gateway/stream.d.ts +6 -5
- package/dist/gateway/stream.d.ts.map +1 -1
- package/dist/gateway/stream.js +24 -11
- package/dist/gateway/stream.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +4 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +20 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +8 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +9 -1
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/node-runtime/adapter-VFG7WNPX.js +17 -0
- package/dist/node-runtime/{agent-session-services-IEF7LQWD.js → agent-session-services-5YXS2PLF.js} +13 -10
- package/dist/node-runtime/{builtin-extensions-EBAWTH4M.js → builtin-extensions-I2HIFEMY.js} +3 -2
- package/dist/node-runtime/{chunk-K5AGHH57.js → chunk-2CFDTH5B.js} +7 -3
- package/dist/node-runtime/{chunk-VWCE2HSZ.js → chunk-2HMIRK7W.js} +4 -4
- package/dist/node-runtime/chunk-2IDTZAG5.js +1415 -0
- package/dist/node-runtime/{chunk-IGV54Q5V.js → chunk-3MISGG4S.js} +137 -76
- package/dist/node-runtime/chunk-4SBQAI4T.js +2185 -0
- package/dist/node-runtime/{chunk-WHLRAGUQ.js → chunk-5B5QN3ZQ.js} +16 -16
- package/dist/node-runtime/chunk-5B6VKFEV.js +180 -0
- package/dist/node-runtime/{chunk-AD6VXAO7.js → chunk-5Q4A37RB.js} +15 -104
- package/dist/node-runtime/{chunk-4TLO4PO2.js → chunk-7IQGBKBJ.js} +7 -1401
- package/dist/node-runtime/{chunk-R3K2F5GI.js → chunk-B4HP6ZWM.js} +2 -0
- package/dist/node-runtime/{chunk-OCVIXVTZ.js → chunk-D5UCKPBQ.js} +12 -1
- package/dist/node-runtime/chunk-DVQSHCVP.js +97 -0
- package/dist/node-runtime/{chunk-HFVZUPFJ.js → chunk-E75WFZ33.js} +2 -2
- package/dist/node-runtime/chunk-FY4A63RK.js +73 -0
- package/dist/node-runtime/{chunk-RORY2HMJ.js → chunk-I74LN5JG.js} +16 -1
- package/dist/node-runtime/chunk-IKU6Y7DL.js +287 -0
- package/dist/node-runtime/{chunk-QM43FEAE.js → chunk-L24TPBS4.js} +6 -5
- package/dist/node-runtime/{chunk-DE2JB6J5.js → chunk-LJTIVM7I.js} +7 -7
- package/dist/node-runtime/{chunk-DSIKTUPW.js → chunk-LWJXTA6Z.js} +274 -2433
- package/dist/node-runtime/{chunk-YVI6L6LU.js → chunk-P7XBVXGT.js} +36 -21
- package/dist/node-runtime/{chunk-OVX6X377.js → chunk-PTFBPO3C.js} +1 -1
- package/dist/node-runtime/{chunk-F4FLTQKV.js → chunk-RAK2QA2B.js} +186 -1529
- package/dist/node-runtime/{chunk-L3LX4SNR.js → chunk-RCR3XAQY.js} +36 -8
- package/dist/node-runtime/chunk-RGQAEOM5.js +81 -0
- package/dist/node-runtime/{chunk-UWPJL22I.js → chunk-SLVOAQOY.js} +15 -4
- package/dist/node-runtime/chunk-SN2KSMPQ.js +1364 -0
- package/dist/node-runtime/{chunk-FU6OODRZ.js → chunk-SPVDBUOS.js} +1 -1
- package/dist/node-runtime/{chunk-5Q3EHOHI.js → chunk-T4DA4XE7.js} +19 -17
- package/dist/node-runtime/chunk-U5F4IC7R.js +53 -0
- package/dist/node-runtime/{chunk-UP2XBVH5.js → chunk-UOEDI7RP.js} +1 -1
- package/dist/node-runtime/{chunk-Y73WPE6S.js → chunk-UVWCDQYF.js} +79 -44
- package/dist/node-runtime/{chunk-ZXSGTGJ6.js → chunk-WIF24I7G.js} +21 -5
- package/dist/node-runtime/{chunk-OF7PWMG4.js → chunk-X3PGBLQ7.js} +3 -87
- package/dist/node-runtime/chunk-XHIRAZ26.js +108 -0
- package/dist/node-runtime/{chunk-YDO2F2IA.js → chunk-YWOJIGFY.js} +1 -1
- package/dist/node-runtime/{command-7BG7VVTS.js → command-FSBU2EVZ.js} +5 -5
- package/dist/node-runtime/{commands-NZLSOHPE.js → commands-EMBQQVVT.js} +4 -2
- package/dist/node-runtime/{commands-QFDKNQTL.js → commands-NAAL7KNT.js} +7 -6
- package/dist/node-runtime/{config-RORQUQFG.js → config-D4QUPAHX.js} +1 -1
- package/dist/node-runtime/{direct-tool-executor-77GW4F5P.js → direct-tool-executor-4D7UXYU4.js} +7 -4
- package/dist/node-runtime/{gateway-TWR3N65G.js → gateway-DQM333YV.js} +140 -85
- package/dist/node-runtime/index.js +28 -21
- package/dist/node-runtime/{init-HS6NQXSK.js → init-P5AUV77I.js} +4 -2
- package/dist/node-runtime/{install-cli-VAP6KBFN.js → install-cli-NN4YAU44.js} +3 -3
- package/dist/node-runtime/{interactive-mode-6J5VZ2TT.js → interactive-mode-YOHZVMKX.js} +14 -11
- package/dist/node-runtime/{lunr-browser-J5ZZYVGM.js → lunr-browser-IR7TL3J7.js} +3 -3
- package/dist/node-runtime/lunr-computer-use-Y23CCDIJ.js +158 -0
- package/dist/node-runtime/{lunr-cron-CXOL37AL.js → lunr-cron-USHC4LXH.js} +9 -7
- package/dist/node-runtime/main.js +19 -15
- package/dist/node-runtime/{mcp-auth-flow-QIXHW6QN.js → mcp-auth-flow-QVLFVLEO.js} +2 -1
- package/dist/node-runtime/{mobile-commands-VTBM5DSZ.js → mobile-commands-O5LCHL32.js} +6 -5
- package/dist/node-runtime/{package-manager-cli-ZLW5DZXF.js → package-manager-cli-Q7BL6KZO.js} +12 -8
- package/dist/node-runtime/{pi-mcp-adapter-5UKBZP44.js → pi-mcp-adapter-3PHF4KZ4.js} +5 -5
- package/dist/node-runtime/{pi-subagents-XPCLLKIM.js → pi-subagents-7IBSSGEW.js} +27 -21
- package/dist/node-runtime/{print-mode-XSFM26EL.js → print-mode-XQ76CYMT.js} +2 -1
- package/dist/node-runtime/{proxy-modes-LGEUYD7R.js → proxy-modes-5FAPSZEZ.js} +7 -4
- package/dist/node-runtime/rpc-entry.js +19 -15
- package/dist/node-runtime/runtime-EFPPD2UW.js +21 -0
- package/dist/node-runtime/{runtime-bridges-QYXUX2TG.js → runtime-bridges-7WVCLI76.js} +6 -5
- package/dist/node-runtime/{service-ISSP6VHE.js → service-MDQIPQ26.js} +1 -1
- package/dist/node-runtime/{settings-manager-WCQDUVQB.js → settings-manager-DJDM5AHM.js} +5 -4
- package/dist/node-runtime/setup-PFBWRNUI.js +215 -0
- package/dist/node-runtime/{subagent-executor-OTNISDQU.js → subagent-executor-LPZ4BHWE.js} +32 -14
- package/dist/node-runtime/{update-cli-VBR2777K.js → update-cli-HNMOTNGX.js} +5 -4
- package/dist/node-runtime/workflow-OHPBEFO4.js +637 -0
- package/dist/utils/image-resize-core.d.ts +2 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js +10 -0
- package/dist/utils/image-resize-core.js.map +1 -1
- package/docs/computer-use.md +362 -0
- package/docs/features.md +9 -7
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/install-lock/package-lock.json +3841 -0
- package/install-lock/package.json +18 -0
- package/native/computer-use/LICENSE.md +21 -0
- package/npm-shrinkwrap.json +3822 -0
- package/package.json +15 -9
- package/dist/node-runtime/setup-YRBKH2LD.js +0 -155
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
applyExifOrientation,
|
|
4
|
+
formatDimensionNote,
|
|
5
|
+
resizeImage
|
|
6
|
+
} from "./chunk-5Q4A37RB.js";
|
|
7
|
+
import {
|
|
8
|
+
loadPhoton
|
|
9
|
+
} from "./chunk-RQ2Q5IYR.js";
|
|
10
|
+
|
|
11
|
+
// packages/coding-agent/dist/utils/image-convert.js
|
|
12
|
+
async function convertImageBytesToPng(bytes) {
|
|
13
|
+
let photon = await loadPhoton();
|
|
14
|
+
if (!photon)
|
|
15
|
+
return null;
|
|
16
|
+
try {
|
|
17
|
+
let rawImage = photon.PhotonImage.new_from_byteslice(bytes), image = applyExifOrientation(photon, rawImage, bytes);
|
|
18
|
+
image !== rawImage && rawImage.free();
|
|
19
|
+
try {
|
|
20
|
+
return new Uint8Array(image.get_bytes());
|
|
21
|
+
} finally {
|
|
22
|
+
image.free();
|
|
23
|
+
}
|
|
24
|
+
} catch {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
async function convertToPng(base64Data, mimeType) {
|
|
29
|
+
if (mimeType === "image/png")
|
|
30
|
+
return { data: base64Data, mimeType };
|
|
31
|
+
let bytes = new Uint8Array(Buffer.from(base64Data, "base64")), pngBytes = await convertImageBytesToPng(bytes);
|
|
32
|
+
return pngBytes ? {
|
|
33
|
+
data: Buffer.from(pngBytes).toString("base64"),
|
|
34
|
+
mimeType: "image/png"
|
|
35
|
+
} : null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// packages/coding-agent/dist/utils/image-process.js
|
|
39
|
+
function baseMimeType(mimeType) {
|
|
40
|
+
return mimeType.split(";")[0]?.trim().toLowerCase() ?? mimeType.toLowerCase();
|
|
41
|
+
}
|
|
42
|
+
function normalizeSupportedImageMimeType(mimeType) {
|
|
43
|
+
switch (baseMimeType(mimeType)) {
|
|
44
|
+
case "image/png":
|
|
45
|
+
return "image/png";
|
|
46
|
+
case "image/jpeg":
|
|
47
|
+
case "image/jpg":
|
|
48
|
+
return "image/jpeg";
|
|
49
|
+
case "image/gif":
|
|
50
|
+
return "image/gif";
|
|
51
|
+
case "image/webp":
|
|
52
|
+
return "image/webp";
|
|
53
|
+
default:
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async function normalizeImage(bytes, mimeType) {
|
|
58
|
+
let normalizedMimeType = normalizeSupportedImageMimeType(mimeType);
|
|
59
|
+
if (normalizedMimeType)
|
|
60
|
+
return { bytes, mimeType: normalizedMimeType };
|
|
61
|
+
let pngBytes = await convertImageBytesToPng(bytes);
|
|
62
|
+
return pngBytes ? {
|
|
63
|
+
bytes: pngBytes,
|
|
64
|
+
mimeType: "image/png",
|
|
65
|
+
convertedFrom: baseMimeType(mimeType)
|
|
66
|
+
} : null;
|
|
67
|
+
}
|
|
68
|
+
function conversionHint(from, to) {
|
|
69
|
+
if (!(!from || from === to))
|
|
70
|
+
return `[Image converted from ${from} to ${to}.]`;
|
|
71
|
+
}
|
|
72
|
+
async function processImage(bytes, mimeType, options) {
|
|
73
|
+
let autoResizeImages = options?.autoResizeImages ?? !0, normalized = await normalizeImage(bytes, mimeType);
|
|
74
|
+
if (!normalized)
|
|
75
|
+
return {
|
|
76
|
+
ok: !1,
|
|
77
|
+
message: "[Image omitted: could not be converted to a supported inline image format.]"
|
|
78
|
+
};
|
|
79
|
+
if (autoResizeImages) {
|
|
80
|
+
let resized = await resizeImage(normalized.bytes, normalized.mimeType, options?.resizeOptions);
|
|
81
|
+
if (!resized)
|
|
82
|
+
return {
|
|
83
|
+
ok: !1,
|
|
84
|
+
message: "[Image omitted: could not be resized below the inline image size limit.]"
|
|
85
|
+
};
|
|
86
|
+
let hints2 = [], convertedHint2 = conversionHint(normalized.convertedFrom, resized.mimeType);
|
|
87
|
+
convertedHint2 && hints2.push(convertedHint2);
|
|
88
|
+
let dimensionNote = formatDimensionNote(resized);
|
|
89
|
+
return dimensionNote && hints2.push(dimensionNote), {
|
|
90
|
+
ok: !0,
|
|
91
|
+
data: resized.data,
|
|
92
|
+
mimeType: resized.mimeType,
|
|
93
|
+
hints: hints2
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
let hints = [], convertedHint = conversionHint(normalized.convertedFrom, normalized.mimeType);
|
|
97
|
+
return convertedHint && hints.push(convertedHint), {
|
|
98
|
+
ok: !0,
|
|
99
|
+
data: Buffer.from(normalized.bytes).toString("base64"),
|
|
100
|
+
mimeType: normalized.mimeType,
|
|
101
|
+
hints
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export {
|
|
106
|
+
convertToPng,
|
|
107
|
+
processImage
|
|
108
|
+
};
|
|
@@ -8,11 +8,11 @@ async function handleGatewayCommand(args) {
|
|
|
8
8
|
try {
|
|
9
9
|
let sub = args[1];
|
|
10
10
|
if (sub === "setup")
|
|
11
|
-
await (await import("./setup-
|
|
11
|
+
await (await import("./setup-PFBWRNUI.js")).setupGateway();
|
|
12
12
|
else if (sub === "pair" && args[2] === "approve" && args.includes("--owner"))
|
|
13
|
-
console.log((await import("./setup-
|
|
13
|
+
console.log((await import("./setup-PFBWRNUI.js")).approveGatewayOwner(args[3], args[4]));
|
|
14
14
|
else if (["start", "stop", "restart", "status", "logs", "doctor", "autostart"].includes(sub)) {
|
|
15
|
-
let service = await import("./service-
|
|
15
|
+
let service = await import("./service-MDQIPQ26.js");
|
|
16
16
|
if (sub === "start" && console.log(await service.startGatewayService()), sub === "stop" && console.log(await service.stopGatewayService()), sub === "restart" && (await service.stopGatewayService(), console.log(await service.startGatewayService())), (sub === "status" || sub === "doctor") && console.log(service.serviceStatusText()), sub === "logs" && console.log(service.readGatewayLog()), sub === "autostart") {
|
|
17
17
|
let mode = args[2];
|
|
18
18
|
if (mode !== "off" && mode !== "login" && mode !== "boot")
|
|
@@ -20,7 +20,7 @@ async function handleGatewayCommand(args) {
|
|
|
20
20
|
await service.configureStartup(mode), console.log(`Automatic startup: ${mode}`);
|
|
21
21
|
}
|
|
22
22
|
if (sub === "doctor") {
|
|
23
|
-
let { loadGatewayConfig, resolvePlatformToken } = await import("./config-
|
|
23
|
+
let { loadGatewayConfig, resolvePlatformToken } = await import("./config-D4QUPAHX.js"), cfg = loadGatewayConfig();
|
|
24
24
|
for (let platform of ["telegram", "discord"])
|
|
25
25
|
console.log(`${platform}: ${cfg[platform].enabled ? "enabled" : "disabled"}, token ${resolvePlatformToken(platform, cfg[platform]) ? "configured" : "missing"}, owners ${cfg.owners?.[platform].length ?? 0}`);
|
|
26
26
|
console.log(`Project roots: ${cfg.projectRoots?.length ?? 0}. Run lunr gateway setup to change these.
|
|
@@ -32,7 +32,7 @@ lunr gateway autostart off|login|boot
|
|
|
32
32
|
lunr gateway pair approve <platform> <code> [--owner]
|
|
33
33
|
lunr gateway pair list`);
|
|
34
34
|
else {
|
|
35
|
-
let { runGateway } = await import("./gateway-
|
|
35
|
+
let { runGateway } = await import("./gateway-DQM333YV.js");
|
|
36
36
|
process.exitCode = await runGateway(sub === "run" ? args.slice(2) : args.slice(1));
|
|
37
37
|
}
|
|
38
38
|
} catch (error) {
|
|
@@ -5,13 +5,15 @@ import {
|
|
|
5
5
|
lazyConnect,
|
|
6
6
|
updateMetadataCache,
|
|
7
7
|
updateStatusBar
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4SBQAI4T.js";
|
|
9
|
+
import "./chunk-LWJXTA6Z.js";
|
|
9
10
|
import {
|
|
10
11
|
authenticate,
|
|
11
12
|
getAuthForUrl,
|
|
12
13
|
removeAuth,
|
|
13
14
|
supportsOAuth
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7IQGBKBJ.js";
|
|
16
|
+
import "./chunk-2IDTZAG5.js";
|
|
15
17
|
import {
|
|
16
18
|
ensureCompatibilityImports,
|
|
17
19
|
getMcpDiscoverySummary,
|
|
@@ -5,23 +5,24 @@ import {
|
|
|
5
5
|
formatHelpText,
|
|
6
6
|
runChatCommand,
|
|
7
7
|
sendCommandReply
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-P7XBVXGT.js";
|
|
9
|
+
import "./chunk-5B5QN3ZQ.js";
|
|
10
|
+
import "./chunk-3MISGG4S.js";
|
|
11
11
|
import "./chunk-RMQZU2YU.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SLVOAQOY.js";
|
|
13
13
|
import "./chunk-CDVHZOOK.js";
|
|
14
14
|
import "./chunk-GYIXXQAO.js";
|
|
15
15
|
import "./chunk-GJ2RDBRL.js";
|
|
16
16
|
import "./chunk-CGBXPL3E.js";
|
|
17
17
|
import "./chunk-BBUVIEZB.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-WIF24I7G.js";
|
|
19
19
|
import "./chunk-M3LZLQW2.js";
|
|
20
|
+
import "./chunk-FY4A63RK.js";
|
|
20
21
|
import "./chunk-2KIPT4HJ.js";
|
|
21
22
|
import "./chunk-FVDOXRUD.js";
|
|
22
23
|
import "./chunk-IMLCWLPI.js";
|
|
23
24
|
import "./chunk-UAEOTO52.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-B4HP6ZWM.js";
|
|
25
26
|
import "./chunk-E24EO34J.js";
|
|
26
27
|
import "./chunk-RDDAZOMU.js";
|
|
27
28
|
import "./chunk-FQMM2EZ2.js";
|
package/dist/node-runtime/{direct-tool-executor-77GW4F5P.js → direct-tool-executor-4D7UXYU4.js}
RENAMED
|
@@ -6,17 +6,20 @@ import {
|
|
|
6
6
|
resolveMcpOutputGuardOptions,
|
|
7
7
|
resolveMcpResultContent,
|
|
8
8
|
transformMcpContent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E75WFZ33.js";
|
|
10
10
|
import {
|
|
11
11
|
formatSchema,
|
|
12
12
|
getFailureAgeSeconds,
|
|
13
13
|
lazyConnect
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4SBQAI4T.js";
|
|
15
|
+
import "./chunk-LWJXTA6Z.js";
|
|
15
16
|
import {
|
|
16
|
-
UrlElicitationRequiredError,
|
|
17
17
|
authenticate,
|
|
18
18
|
supportsOAuth
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7IQGBKBJ.js";
|
|
20
|
+
import {
|
|
21
|
+
UrlElicitationRequiredError
|
|
22
|
+
} from "./chunk-2IDTZAG5.js";
|
|
20
23
|
import {
|
|
21
24
|
abortable,
|
|
22
25
|
formatAuthRequiredMessage,
|