nolo-cli 0.174.0-alpha.1 → 0.175.0-alpha.1
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/{agentDeleteCommand-Z46YYASI.js → agentDeleteCommand-WI6U4NFI.js} +2 -2
- package/{agentEmailCommands-ZSNW7MNV.js → agentEmailCommands-Z3TNB4JY.js} +3 -3
- package/{agentListCommands-3XYURQNT.js → agentListCommands-UHHP6HFB.js} +1 -1
- package/{agentMachineCommands-EWMEPQSX.js → agentMachineCommands-FIUBHYRT.js} +2 -2
- package/{agentRecordCommands-JO7YAN2P.js → agentRecordCommands-EQDWG4RY.js} +3 -3
- package/{agentRunCommand-EOUATYYD.js → agentRunCommand-WZCHXCYS.js} +3 -3
- package/{agentRuntimeLocal-J5RQ3K7G.js → agentRuntimeLocal-VQZCOFTL.js} +1 -1
- package/{appDeleteCommands-OF7LWX5L.js → appDeleteCommands-3QISRABE.js} +1 -1
- package/{appDeployCommands-73I3WQXX.js → appDeployCommands-UIMXDPOG.js} +1 -1
- package/{appDeployStatusCommands-AV3B5FIN.js → appDeployStatusCommands-D2ZA54DA.js} +1 -1
- package/{appGetCommands-UDQ5RCCL.js → appGetCommands-QH2XYWOK.js} +1 -1
- package/{appListCommands-66J7KUEQ.js → appListCommands-HH2HYJDZ.js} +1 -1
- package/{chunk-IFRQFQ2C.js → chunk-FGSVT353.js} +170 -2
- package/{chunk-XOTLB33F.js → chunk-MG63GUYM.js} +2 -2
- package/{chunk-I2NZPJAT.js → chunk-RNIZNIVT.js} +3 -3
- package/{chunk-DRQTD2FX.js → chunk-UILL43UU.js} +1 -1
- package/{chunk-EDF4FPCQ.js → chunk-Z4UP2EDE.js} +1 -1
- package/{commandRegistry-QZOWJ4SJ.js → commandRegistry-S54U5ZHX.js} +40 -40
- package/{dialogCommands-FMWGAGIM.js → dialogCommands-A5CHG67A.js} +1 -1
- package/{docCreateCommands-NAVBZ3AV.js → docCreateCommands-BF354FQW.js} +1 -1
- package/{docDeleteCommands-V3DDFY72.js → docDeleteCommands-3K5K4XFO.js} +1 -1
- package/{docReadCommands-AHN3F4MJ.js → docReadCommands-A7ZDZIQV.js} +1 -1
- package/{docUpdateCommands-2AEUHRAW.js → docUpdateCommands-5MGDR5ME.js} +1 -1
- package/index.js +3 -3
- package/{localRuntimeAdapter-D2RWVWNO.js → localRuntimeAdapter-ZAXRSVWI.js} +2 -2
- package/{machineCommands-WM3Y5FEW.js → machineCommands-MT4FDVVG.js} +3 -3
- package/{machineWsRunDispatch-BC2NIKFO.js → machineWsRunDispatch-7T3SEMB6.js} +3 -3
- package/package.json +1 -1
- package/{readlineWorkspace-S2KV2QPV.js → readlineWorkspace-MTYLMWBM.js} +3 -3
- package/{spaceCommands-MCDPNA5Y.js → spaceCommands-M44RQPCK.js} +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-62TBKWTV.js";
|
|
7
7
|
import {
|
|
8
8
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UILL43UU.js";
|
|
10
10
|
import "./chunk-D2J22QSE.js";
|
|
11
11
|
import "./chunk-R4BMKAR5.js";
|
|
12
12
|
import {
|
|
@@ -93,7 +93,7 @@ import "./chunk-EUGTFFO6.js";
|
|
|
93
93
|
import "./chunk-AETZ7AD6.js";
|
|
94
94
|
import "./chunk-Y6ORVLSS.js";
|
|
95
95
|
import "./chunk-KHCLMKZZ.js";
|
|
96
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-FGSVT353.js";
|
|
97
97
|
import "./chunk-DWFRZ3UI.js";
|
|
98
98
|
import "./chunk-ZNFJWEN4.js";
|
|
99
99
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-YBTP3PUM.js";
|
|
5
5
|
import {
|
|
6
6
|
runAgentCreateCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z4UP2EDE.js";
|
|
8
8
|
import "./chunk-YGILMZ7N.js";
|
|
9
9
|
import {
|
|
10
10
|
positionalArgs,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
getReadableCliDb
|
|
15
15
|
} from "./chunk-62TBKWTV.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-UILL43UU.js";
|
|
17
17
|
import "./chunk-D2J22QSE.js";
|
|
18
18
|
import "./chunk-R4BMKAR5.js";
|
|
19
19
|
import "./chunk-TDX2L4W2.js";
|
|
@@ -94,7 +94,7 @@ import "./chunk-EUGTFFO6.js";
|
|
|
94
94
|
import "./chunk-AETZ7AD6.js";
|
|
95
95
|
import "./chunk-Y6ORVLSS.js";
|
|
96
96
|
import "./chunk-KHCLMKZZ.js";
|
|
97
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-FGSVT353.js";
|
|
98
98
|
import "./chunk-DWFRZ3UI.js";
|
|
99
99
|
import "./chunk-ZNFJWEN4.js";
|
|
100
100
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
import "./chunk-OXME3PEE.js";
|
|
47
47
|
import "./chunk-UEILX4EV.js";
|
|
48
48
|
import "./chunk-D2MDMY2M.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-FGSVT353.js";
|
|
50
50
|
import "./chunk-DWFRZ3UI.js";
|
|
51
51
|
import "./chunk-ZNFJWEN4.js";
|
|
52
52
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-NBTY7YJF.js";
|
|
17
17
|
import "./chunk-NF64D32W.js";
|
|
18
18
|
import "./chunk-3L2WKC3W.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-FGSVT353.js";
|
|
20
20
|
import "./chunk-DWFRZ3UI.js";
|
|
21
21
|
import "./chunk-ZNFJWEN4.js";
|
|
22
22
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -96,7 +96,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
96
96
|
return executeCli(provider, prompt, options);
|
|
97
97
|
}
|
|
98
98
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
99
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
99
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-7T3SEMB6.js");
|
|
100
100
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
101
101
|
}
|
|
102
102
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z4UP2EDE.js";
|
|
6
6
|
import "./chunk-YGILMZ7N.js";
|
|
7
7
|
import "./chunk-62TBKWTV.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UILL43UU.js";
|
|
9
9
|
import "./chunk-D2J22QSE.js";
|
|
10
10
|
import "./chunk-R4BMKAR5.js";
|
|
11
11
|
import "./chunk-TDX2L4W2.js";
|
|
@@ -81,7 +81,7 @@ import "./chunk-EUGTFFO6.js";
|
|
|
81
81
|
import "./chunk-AETZ7AD6.js";
|
|
82
82
|
import "./chunk-Y6ORVLSS.js";
|
|
83
83
|
import "./chunk-KHCLMKZZ.js";
|
|
84
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-FGSVT353.js";
|
|
85
85
|
import "./chunk-DWFRZ3UI.js";
|
|
86
86
|
import "./chunk-ZNFJWEN4.js";
|
|
87
87
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveRunSettlementNote,
|
|
10
10
|
resolveWorkflowReference,
|
|
11
11
|
runAgentRunCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RNIZNIVT.js";
|
|
13
13
|
import "./chunk-6QDYSCPW.js";
|
|
14
14
|
import {
|
|
15
15
|
parseAgentRunArgs
|
|
16
16
|
} from "./chunk-VJ52BYBK.js";
|
|
17
17
|
import "./chunk-62TBKWTV.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-UILL43UU.js";
|
|
19
19
|
import "./chunk-D2J22QSE.js";
|
|
20
20
|
import "./chunk-R4BMKAR5.js";
|
|
21
21
|
import "./chunk-TDX2L4W2.js";
|
|
@@ -97,7 +97,7 @@ import "./chunk-EUGTFFO6.js";
|
|
|
97
97
|
import "./chunk-AETZ7AD6.js";
|
|
98
98
|
import "./chunk-Y6ORVLSS.js";
|
|
99
99
|
import "./chunk-KHCLMKZZ.js";
|
|
100
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-FGSVT353.js";
|
|
101
101
|
import "./chunk-DWFRZ3UI.js";
|
|
102
102
|
import "./chunk-ZNFJWEN4.js";
|
|
103
103
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-RPZNVBA5.js";
|
|
|
17
17
|
import "./chunk-NBTY7YJF.js";
|
|
18
18
|
import "./chunk-VF4K2QE6.js";
|
|
19
19
|
import "./chunk-UAD2WT54.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-FGSVT353.js";
|
|
21
21
|
import "./chunk-DWFRZ3UI.js";
|
|
22
22
|
import "./chunk-ZNFJWEN4.js";
|
|
23
23
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-RPZNVBA5.js";
|
|
|
18
18
|
import "./chunk-NBTY7YJF.js";
|
|
19
19
|
import "./chunk-VF4K2QE6.js";
|
|
20
20
|
import "./chunk-UAD2WT54.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FGSVT353.js";
|
|
22
22
|
import "./chunk-DWFRZ3UI.js";
|
|
23
23
|
import "./chunk-ZNFJWEN4.js";
|
|
24
24
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-RPZNVBA5.js";
|
|
|
17
17
|
import "./chunk-NBTY7YJF.js";
|
|
18
18
|
import "./chunk-VF4K2QE6.js";
|
|
19
19
|
import "./chunk-UAD2WT54.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-FGSVT353.js";
|
|
21
21
|
import "./chunk-DWFRZ3UI.js";
|
|
22
22
|
import "./chunk-ZNFJWEN4.js";
|
|
23
23
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-RPZNVBA5.js";
|
|
|
18
18
|
import "./chunk-NBTY7YJF.js";
|
|
19
19
|
import "./chunk-VF4K2QE6.js";
|
|
20
20
|
import "./chunk-UAD2WT54.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FGSVT353.js";
|
|
22
22
|
import "./chunk-DWFRZ3UI.js";
|
|
23
23
|
import "./chunk-ZNFJWEN4.js";
|
|
24
24
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-RPZNVBA5.js";
|
|
|
18
18
|
import "./chunk-NBTY7YJF.js";
|
|
19
19
|
import "./chunk-VF4K2QE6.js";
|
|
20
20
|
import "./chunk-UAD2WT54.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FGSVT353.js";
|
|
22
22
|
import "./chunk-DWFRZ3UI.js";
|
|
23
23
|
import "./chunk-ZNFJWEN4.js";
|
|
24
24
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -15900,6 +15900,153 @@ async function renderVisualPage(args2) {
|
|
|
15900
15900
|
});
|
|
15901
15901
|
}
|
|
15902
15902
|
|
|
15903
|
+
// packages/agent-runtime/hostWindowCapture.ts
|
|
15904
|
+
import { spawn as spawn2 } from "node:child_process";
|
|
15905
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
15906
|
+
var HOST_CAPTURE_TIMEOUT_MS = 9e3;
|
|
15907
|
+
var UNAVAILABLE = "\u5F53\u524D\u73AF\u5883\u65E0\u53EF\u7528\u622A\u5C4F\u6743\u9650/\u670D\u52A1";
|
|
15908
|
+
var PORTAL_SCRIPT = String.raw`
|
|
15909
|
+
import json, signal
|
|
15910
|
+
from gi.repository import Gio, GLib
|
|
15911
|
+
bus = Gio.bus_get_sync(Gio.BusType.SESSION, None)
|
|
15912
|
+
loop = GLib.MainLoop()
|
|
15913
|
+
handle = None
|
|
15914
|
+
finished = False
|
|
15915
|
+
result = None
|
|
15916
|
+
responses = {}
|
|
15917
|
+
def response(conn, sender, path, interface, name, parameters, data):
|
|
15918
|
+
global result, finished
|
|
15919
|
+
responses[path] = parameters.unpack()
|
|
15920
|
+
if handle == path:
|
|
15921
|
+
result = responses[path]
|
|
15922
|
+
finished = True
|
|
15923
|
+
loop.quit()
|
|
15924
|
+
def stop(*args):
|
|
15925
|
+
loop.quit()
|
|
15926
|
+
return False
|
|
15927
|
+
subscription = bus.signal_subscribe('org.freedesktop.portal.Desktop', 'org.freedesktop.portal.Request', 'Response', None, None, Gio.DBusSignalFlags.NONE, response, None)
|
|
15928
|
+
signal.signal(signal.SIGTERM, stop)
|
|
15929
|
+
try:
|
|
15930
|
+
options = {'interactive': GLib.Variant('b', True), 'handle_token': GLib.Variant('s', 'nolo_capture')}
|
|
15931
|
+
handle = bus.call_sync('org.freedesktop.portal.Desktop', '/org/freedesktop/portal/desktop', 'org.freedesktop.portal.Screenshot', 'Screenshot', GLib.Variant('(sa{sv})', ('', options)), GLib.VariantType.new('(o)'), Gio.DBusCallFlags.NONE, 7000, None).unpack()[0]
|
|
15932
|
+
if handle in responses:
|
|
15933
|
+
result = responses[handle]
|
|
15934
|
+
finished = True
|
|
15935
|
+
else:
|
|
15936
|
+
GLib.timeout_add(8000, stop)
|
|
15937
|
+
loop.run()
|
|
15938
|
+
if result is None:
|
|
15939
|
+
print(json.dumps({'error': 'portal response timeout'}), flush=True)
|
|
15940
|
+
else:
|
|
15941
|
+
code, values = result
|
|
15942
|
+
print(json.dumps({'code': code, 'uri': values.get('uri')}), flush=True)
|
|
15943
|
+
finally:
|
|
15944
|
+
if handle and not finished:
|
|
15945
|
+
try:
|
|
15946
|
+
bus.call_sync('org.freedesktop.portal.Desktop', handle, 'org.freedesktop.portal.Request', 'Close', None, None, Gio.DBusCallFlags.NONE, 200, None)
|
|
15947
|
+
except Exception:
|
|
15948
|
+
pass
|
|
15949
|
+
bus.signal_unsubscribe(subscription)
|
|
15950
|
+
`;
|
|
15951
|
+
var capturePortalScreenshot = (signal) => new Promise((resolve6, reject) => {
|
|
15952
|
+
const child = spawn2("/usr/bin/python3", ["-c", PORTAL_SCRIPT], { stdio: ["ignore", "pipe", "pipe"] });
|
|
15953
|
+
let stdout = "";
|
|
15954
|
+
let stderr = "";
|
|
15955
|
+
const stop = () => {
|
|
15956
|
+
child.kill("SIGTERM");
|
|
15957
|
+
};
|
|
15958
|
+
signal.addEventListener("abort", stop, { once: true });
|
|
15959
|
+
if (signal.aborted) stop();
|
|
15960
|
+
child.stdout.on("data", (data) => {
|
|
15961
|
+
stdout = (stdout + data).slice(-16384);
|
|
15962
|
+
});
|
|
15963
|
+
child.stderr.on("data", (data) => {
|
|
15964
|
+
stderr = (stderr + data).slice(-4096);
|
|
15965
|
+
});
|
|
15966
|
+
child.once("error", reject);
|
|
15967
|
+
child.once("close", (code) => {
|
|
15968
|
+
signal.removeEventListener("abort", stop);
|
|
15969
|
+
if (signal.aborted) return reject(new Error("portal capture timeout"));
|
|
15970
|
+
if (code !== 0) return reject(new Error(stderr.trim() || `portal helper exited ${code}`));
|
|
15971
|
+
try {
|
|
15972
|
+
resolve6(JSON.parse(stdout));
|
|
15973
|
+
} catch {
|
|
15974
|
+
reject(new Error("invalid portal response"));
|
|
15975
|
+
}
|
|
15976
|
+
});
|
|
15977
|
+
});
|
|
15978
|
+
function createHostWindowCapture(options = {}) {
|
|
15979
|
+
const concurrency = Math.max(1, Math.min(2, Math.floor(options.concurrency || 1)));
|
|
15980
|
+
const timeoutMs = Math.max(1, Math.min(HOST_CAPTURE_TIMEOUT_MS, options.timeoutMs || HOST_CAPTURE_TIMEOUT_MS));
|
|
15981
|
+
let active = 0;
|
|
15982
|
+
const waiters = [];
|
|
15983
|
+
function acquire(signal) {
|
|
15984
|
+
return new Promise((resolve6, reject) => {
|
|
15985
|
+
const abort = () => {
|
|
15986
|
+
const index = waiters.indexOf(start);
|
|
15987
|
+
if (index >= 0) waiters.splice(index, 1);
|
|
15988
|
+
reject(new Error("portal capture timeout (queue)"));
|
|
15989
|
+
};
|
|
15990
|
+
const start = () => {
|
|
15991
|
+
signal.removeEventListener("abort", abort);
|
|
15992
|
+
active++;
|
|
15993
|
+
resolve6();
|
|
15994
|
+
};
|
|
15995
|
+
if (signal.aborted) return abort();
|
|
15996
|
+
if (active < concurrency) start();
|
|
15997
|
+
else {
|
|
15998
|
+
waiters.push(start);
|
|
15999
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
16000
|
+
}
|
|
16001
|
+
});
|
|
16002
|
+
}
|
|
16003
|
+
return async () => {
|
|
16004
|
+
const controller = new AbortController();
|
|
16005
|
+
let timer;
|
|
16006
|
+
const work = async () => {
|
|
16007
|
+
await acquire(controller.signal);
|
|
16008
|
+
try {
|
|
16009
|
+
const reply = await (options.portal ?? capturePortalScreenshot)(controller.signal);
|
|
16010
|
+
if (controller.signal.aborted) throw new Error("portal capture timeout");
|
|
16011
|
+
if (reply.error) throw new Error(reply.error);
|
|
16012
|
+
if (reply.code !== 0) throw new Error(reply.code === 1 ? "portal denied/cancelled (Response 1)" : `portal failed (Response ${reply.code})`);
|
|
16013
|
+
if (!reply.uri) throw new Error("portal returned no file URI");
|
|
16014
|
+
const uri = new URL(reply.uri);
|
|
16015
|
+
if (uri.protocol !== "file:" || uri.hostname && uri.hostname !== "localhost") throw new Error("portal returned a non-local file URI");
|
|
16016
|
+
const path = fileURLToPath2(uri);
|
|
16017
|
+
const image = await (options.readImage ?? readLocalImage)(path);
|
|
16018
|
+
if (!image.images?.length) throw new Error("portal image could not be decoded");
|
|
16019
|
+
const dimensions = /\[image (\d+x\d+) (\d+) bytes/.exec(image.content);
|
|
16020
|
+
if (!dimensions) throw new Error("invalid image summary");
|
|
16021
|
+
return {
|
|
16022
|
+
...image,
|
|
16023
|
+
content: `[screenshot ${dimensions[1]} ${Math.round(Number(dimensions[2]) / 1024)}KB \u2192 ${path}]
|
|
16024
|
+
\u6765\u6E90\uFF1A\u5BBF\u4E3B portal \u5168\u5C4F/\u4EA4\u4E92\u9009\u62E9\u7ED3\u679C\uFF1Bportal \u672A\u63D0\u4F9B\u5E94\u7528/\u7A97\u53E3\u8EAB\u4EFD\uFF0C\u65E0\u6CD5\u786E\u8BA4\u7A97\u53E3\u540D\u3002`
|
|
16025
|
+
};
|
|
16026
|
+
} finally {
|
|
16027
|
+
active--;
|
|
16028
|
+
waiters.shift()?.();
|
|
16029
|
+
}
|
|
16030
|
+
};
|
|
16031
|
+
try {
|
|
16032
|
+
return await Promise.race([
|
|
16033
|
+
work(),
|
|
16034
|
+
new Promise((_, reject) => {
|
|
16035
|
+
timer = setTimeout(() => {
|
|
16036
|
+
controller.abort();
|
|
16037
|
+
reject(new Error("portal capture timeout"));
|
|
16038
|
+
}, timeoutMs);
|
|
16039
|
+
})
|
|
16040
|
+
]);
|
|
16041
|
+
} catch (error) {
|
|
16042
|
+
return { content: `${UNAVAILABLE}\uFF1A${error instanceof Error ? error.message : String(error)}` };
|
|
16043
|
+
} finally {
|
|
16044
|
+
clearTimeout(timer);
|
|
16045
|
+
}
|
|
16046
|
+
};
|
|
16047
|
+
}
|
|
16048
|
+
var captureHostWindow = createHostWindowCapture();
|
|
16049
|
+
|
|
15903
16050
|
// packages/agent-runtime/localWorkspaceTools.ts
|
|
15904
16051
|
import { lstat, mkdir as mkdir2, readdir as readdir2, readFile as readFile4, realpath as realpath2, stat as stat4, writeFile as writeFile2 } from "node:fs/promises";
|
|
15905
16052
|
import { homedir } from "node:os";
|
|
@@ -16417,6 +16564,7 @@ function runTasks(args2) {
|
|
|
16417
16564
|
var WORKSPACE_TOOL_NAMES = [
|
|
16418
16565
|
"readFile",
|
|
16419
16566
|
"read_image",
|
|
16567
|
+
"captureHostWindow",
|
|
16420
16568
|
"writeFile",
|
|
16421
16569
|
"editFile",
|
|
16422
16570
|
"globFiles",
|
|
@@ -16722,6 +16870,16 @@ function buildTaskStopTool() {
|
|
|
16722
16870
|
};
|
|
16723
16871
|
}
|
|
16724
16872
|
function buildWorkspaceToolDefinition(toolName) {
|
|
16873
|
+
if (toolName === "captureHostWindow") {
|
|
16874
|
+
return {
|
|
16875
|
+
type: "function",
|
|
16876
|
+
function: {
|
|
16877
|
+
name: "captureHostWindow",
|
|
16878
|
+
description: "Capture the host desktop through the Screenshot portal (interactive permission/selection may appear). Returns an image or a fail-closed reason within 9s. Portal does not identify the application/window: never infer a window name. Linux host requires /usr/bin/python3 with Gio. No arguments.",
|
|
16879
|
+
parameters: { type: "object", properties: {}, additionalProperties: false }
|
|
16880
|
+
}
|
|
16881
|
+
};
|
|
16882
|
+
}
|
|
16725
16883
|
if (toolName === "read_image") {
|
|
16726
16884
|
return {
|
|
16727
16885
|
type: "function",
|
|
@@ -18127,6 +18285,16 @@ function createLocalWorkspaceToolExecutors(args2) {
|
|
|
18127
18285
|
...fileAccess,
|
|
18128
18286
|
...args2.resolveRipgrepBinary ? { resolveRipgrepBinary: args2.resolveRipgrepBinary } : {}
|
|
18129
18287
|
}),
|
|
18288
|
+
captureHostWindow: async (call) => {
|
|
18289
|
+
let parsed;
|
|
18290
|
+
try {
|
|
18291
|
+
parsed = JSON.parse(call.arguments || "{}");
|
|
18292
|
+
} catch {
|
|
18293
|
+
return { content: "captureHostWindow accepts an empty JSON object" };
|
|
18294
|
+
}
|
|
18295
|
+
if (!isRecord(parsed) || Object.keys(parsed).length) return { content: "captureHostWindow accepts no arguments" };
|
|
18296
|
+
return captureHostWindow();
|
|
18297
|
+
},
|
|
18130
18298
|
read_image: async (call) => {
|
|
18131
18299
|
const parsed = parseWorkspaceToolArguments(call.arguments);
|
|
18132
18300
|
if (Object.keys(parsed).some((key) => key !== "path")) throw new Error("read_image accepts exactly one path");
|
|
@@ -21997,11 +22165,11 @@ async function readNoloProcessStream(readable) {
|
|
|
21997
22165
|
async function runNoloWorkspaceCliTool(call, args2) {
|
|
21998
22166
|
const cliArgs = buildNoloWorkspaceCommandArgs(call);
|
|
21999
22167
|
const bunSpawn = globalThis.Bun?.spawn;
|
|
22000
|
-
const
|
|
22168
|
+
const spawn3 = args2.spawn ?? (typeof bunSpawn === "function" ? bunSpawn : nodeSpawnFallback);
|
|
22001
22169
|
const execPath = args2.processExecPath ?? process.execPath;
|
|
22002
22170
|
const entrypoint = args2.cliEntrypoint;
|
|
22003
22171
|
const cmd = entrypoint && entrypoint !== execPath ? [execPath, entrypoint, ...cliArgs] : [execPath, ...cliArgs];
|
|
22004
|
-
const proc =
|
|
22172
|
+
const proc = spawn3({
|
|
22005
22173
|
cmd,
|
|
22006
22174
|
stdout: "pipe",
|
|
22007
22175
|
stderr: "pipe",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UILL43UU.js";
|
|
5
5
|
import {
|
|
6
6
|
t
|
|
7
7
|
} from "./chunk-TDX2L4W2.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-KXIJYPVC.js";
|
|
11
11
|
import {
|
|
12
12
|
runLocalAgentTurn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FGSVT353.js";
|
|
14
14
|
import {
|
|
15
15
|
applyToolSurfaceConstraints
|
|
16
16
|
} from "./chunk-2GRXE3YJ.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
resolveFileWriteGateEnabled,
|
|
32
32
|
resolveLocalUserId,
|
|
33
33
|
validateInstaboxWorkspaceSelection
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UILL43UU.js";
|
|
35
35
|
import {
|
|
36
36
|
clearCredentialAvailability,
|
|
37
37
|
readEffectiveCredentialEntry,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
116
116
|
LOCAL_TURN_ABORTED_CODE,
|
|
117
117
|
readActionGate
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-FGSVT353.js";
|
|
119
119
|
import {
|
|
120
120
|
resolveAgentRuntimeConfigFromRecord
|
|
121
121
|
} from "./chunk-HHEM4TV3.js";
|
|
@@ -11376,7 +11376,7 @@ function isBalanceExhaustedError(error) {
|
|
|
11376
11376
|
|
|
11377
11377
|
// packages/cli/client/agentRun.ts
|
|
11378
11378
|
async function loadRunLocalAgentTurn() {
|
|
11379
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
11379
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-VQZCOFTL.js");
|
|
11380
11380
|
return runLocalAgentTurn;
|
|
11381
11381
|
}
|
|
11382
11382
|
var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
|
|
@@ -110,7 +110,7 @@ function createDaemonShortcutCommand(path, description, command) {
|
|
|
110
110
|
// packages/cli/agentInternalCommandEntries.ts
|
|
111
111
|
function getAgentInternalCommandEntries() {
|
|
112
112
|
const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
|
|
113
|
-
const { runAgentRunCommand } = await import("./agentRunCommand-
|
|
113
|
+
const { runAgentRunCommand } = await import("./agentRunCommand-WZCHXCYS.js");
|
|
114
114
|
return runAgentRunCommand(args, {
|
|
115
115
|
env: ctx.env,
|
|
116
116
|
scriptDir: ctx.scriptDir,
|
|
@@ -122,11 +122,11 @@ function getAgentInternalCommandEntries() {
|
|
|
122
122
|
createAgentRunCommand(["run"], "Run a no-login local agent in this workspace"),
|
|
123
123
|
createAgentRunCommand(["chat"], "Chat with an agent"),
|
|
124
124
|
createEnvCommand(["agent", "list"], "List owned agents", async (args, deps) => {
|
|
125
|
-
const { runAgentListCommand } = await import("./agentListCommands-
|
|
125
|
+
const { runAgentListCommand } = await import("./agentListCommands-UHHP6HFB.js");
|
|
126
126
|
return runAgentListCommand(args, deps);
|
|
127
127
|
}),
|
|
128
128
|
createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
|
|
129
|
-
const { runAgentCreateCommand } = await import("./agentRecordCommands-
|
|
129
|
+
const { runAgentCreateCommand } = await import("./agentRecordCommands-EQDWG4RY.js");
|
|
130
130
|
return runAgentCreateCommand(args, deps);
|
|
131
131
|
}),
|
|
132
132
|
createEnvCommand(["agent", "models"], "List models: --preset <id> (server discovery, exit 1 on static fallback) or --url <base> --api-key <key> (OpenAI-compatible /models)", async (args, deps) => {
|
|
@@ -142,7 +142,7 @@ function getAgentInternalCommandEntries() {
|
|
|
142
142
|
return runAgentPullCommand(args, deps);
|
|
143
143
|
}),
|
|
144
144
|
createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
|
|
145
|
-
const { runAgentReadCommand } = await import("./agentRecordCommands-
|
|
145
|
+
const { runAgentReadCommand } = await import("./agentRecordCommands-EQDWG4RY.js");
|
|
146
146
|
return runAgentReadCommand(args, deps);
|
|
147
147
|
}),
|
|
148
148
|
createAgentRunCommand(["agent", "run"], "Run an agent"),
|
|
@@ -171,31 +171,31 @@ function getAgentInternalCommandEntries() {
|
|
|
171
171
|
return runSetupOfflineMarxistsAgentCommand(args, deps);
|
|
172
172
|
}),
|
|
173
173
|
createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
|
|
174
|
-
const { runAgentUpdateCommand } = await import("./agentRecordCommands-
|
|
174
|
+
const { runAgentUpdateCommand } = await import("./agentRecordCommands-EQDWG4RY.js");
|
|
175
175
|
return runAgentUpdateCommand(args, deps);
|
|
176
176
|
}),
|
|
177
177
|
createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
|
|
178
|
-
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-
|
|
178
|
+
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-Z3TNB4JY.js");
|
|
179
179
|
return runAgentEmailProvisionCommand(args, deps);
|
|
180
180
|
}),
|
|
181
181
|
createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
|
|
182
|
-
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-
|
|
182
|
+
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-Z3TNB4JY.js");
|
|
183
183
|
return runAgentEmailBindCommand(args, deps);
|
|
184
184
|
}),
|
|
185
185
|
createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
|
|
186
|
-
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-
|
|
186
|
+
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-Z3TNB4JY.js");
|
|
187
187
|
return runAgentEmailTransferCommand(args, deps);
|
|
188
188
|
}),
|
|
189
189
|
createEnvCommand(
|
|
190
190
|
["agent", "email", "create-and-provision"],
|
|
191
191
|
"Create an agent and provision its controlled inbox",
|
|
192
192
|
async (args, deps) => {
|
|
193
|
-
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-
|
|
193
|
+
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-Z3TNB4JY.js");
|
|
194
194
|
return runAgentEmailCreateAndProvisionCommand(args, deps);
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
197
|
createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
|
|
198
|
-
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-
|
|
198
|
+
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-WI6U4NFI.js");
|
|
199
199
|
return runAgentDeleteCommand(args, deps);
|
|
200
200
|
}),
|
|
201
201
|
createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
|
|
@@ -211,15 +211,15 @@ function getAgentInternalCommandEntries() {
|
|
|
211
211
|
return runAgentRevokeGrantCommand(args, deps);
|
|
212
212
|
}),
|
|
213
213
|
createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
|
|
214
|
-
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-
|
|
214
|
+
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-FIUBHYRT.js");
|
|
215
215
|
return runAgentBindCurrentCommand(args, deps);
|
|
216
216
|
}),
|
|
217
217
|
createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
|
|
218
|
-
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-
|
|
218
|
+
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-FIUBHYRT.js");
|
|
219
219
|
return runAgentSmokeCurrentCommand(args, deps);
|
|
220
220
|
}),
|
|
221
221
|
createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
|
|
222
|
-
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-
|
|
222
|
+
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-FIUBHYRT.js");
|
|
223
223
|
return runAgentRuntimeDoctorCommand(args, deps);
|
|
224
224
|
}),
|
|
225
225
|
createAgentRunCommand(["agent", "chat"], "Chat with an agent")
|
|
@@ -230,23 +230,23 @@ function getAgentInternalCommandEntries() {
|
|
|
230
230
|
function getAppInternalCommandEntries() {
|
|
231
231
|
return [
|
|
232
232
|
createEnvCommand(["app", "list"], "List your apps", async (args, deps) => {
|
|
233
|
-
const { runAppListCommand } = await import("./appListCommands-
|
|
233
|
+
const { runAppListCommand } = await import("./appListCommands-HH2HYJDZ.js");
|
|
234
234
|
return runAppListCommand(args, deps);
|
|
235
235
|
}),
|
|
236
236
|
createEnvCommand(["app", "get"], "Get app details", async (args, deps) => {
|
|
237
|
-
const { runAppGetCommand } = await import("./appGetCommands-
|
|
237
|
+
const { runAppGetCommand } = await import("./appGetCommands-QH2XYWOK.js");
|
|
238
238
|
return runAppGetCommand(args, deps);
|
|
239
239
|
}),
|
|
240
240
|
createEnvCommand(["app", "deploy"], "Deploy an app", async (args, deps) => {
|
|
241
|
-
const { runAppDeployCommand } = await import("./appDeployCommands-
|
|
241
|
+
const { runAppDeployCommand } = await import("./appDeployCommands-UIMXDPOG.js");
|
|
242
242
|
return runAppDeployCommand(args, deps);
|
|
243
243
|
}),
|
|
244
244
|
createEnvCommand(["app", "deploy", "status"], "Check app deploy status", async (args, deps) => {
|
|
245
|
-
const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-
|
|
245
|
+
const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-D2ZA54DA.js");
|
|
246
246
|
return runAppDeployStatusCommand(args, deps);
|
|
247
247
|
}),
|
|
248
248
|
createEnvCommand(["app", "delete"], "Delete an app", async (args, deps) => {
|
|
249
|
-
const { runAppDeleteCommand } = await import("./appDeleteCommands-
|
|
249
|
+
const { runAppDeleteCommand } = await import("./appDeleteCommands-3QISRABE.js");
|
|
250
250
|
return runAppDeleteCommand(args, deps);
|
|
251
251
|
})
|
|
252
252
|
];
|
|
@@ -374,27 +374,27 @@ function getCiInternalCommandEntries() {
|
|
|
374
374
|
function getDialogInternalCommandEntries() {
|
|
375
375
|
return [
|
|
376
376
|
createEnvCommand(["dialog", "search"], "Search dialog messages across dialogs", async (args, deps) => {
|
|
377
|
-
const { runDialogSearchCommand } = await import("./dialogCommands-
|
|
377
|
+
const { runDialogSearchCommand } = await import("./dialogCommands-A5CHG67A.js");
|
|
378
378
|
return runDialogSearchCommand(args, deps);
|
|
379
379
|
}),
|
|
380
380
|
createEnvCommand(["dialog", "list"], "List dialogs (default --limit 50; --all/--limit 0 full; --jsonl streams)", async (args, deps) => {
|
|
381
|
-
const { runDialogListCommand } = await import("./dialogCommands-
|
|
381
|
+
const { runDialogListCommand } = await import("./dialogCommands-A5CHG67A.js");
|
|
382
382
|
return runDialogListCommand(args, deps);
|
|
383
383
|
}),
|
|
384
384
|
createEnvCommand(["dialog", "delete"], "Delete one or more dialogs", async (args, deps) => {
|
|
385
|
-
const { runDialogDeleteCommand } = await import("./dialogCommands-
|
|
385
|
+
const { runDialogDeleteCommand } = await import("./dialogCommands-A5CHG67A.js");
|
|
386
386
|
return runDialogDeleteCommand(args, deps);
|
|
387
387
|
}),
|
|
388
388
|
createEnvCommand(["dialog", "query"], "Query dialogs by subject refs (default --limit 50; --all full; --jsonl streams)", async (args, deps) => {
|
|
389
|
-
const { runDialogQueryCommand } = await import("./dialogCommands-
|
|
389
|
+
const { runDialogQueryCommand } = await import("./dialogCommands-A5CHG67A.js");
|
|
390
390
|
return runDialogQueryCommand(args, deps);
|
|
391
391
|
}),
|
|
392
392
|
createEnvCommand(["dialog", "read"], "Read a dialog", async (args, deps) => {
|
|
393
|
-
const { runDialogReadCommand } = await import("./dialogCommands-
|
|
393
|
+
const { runDialogReadCommand } = await import("./dialogCommands-A5CHG67A.js");
|
|
394
394
|
return runDialogReadCommand(args, deps);
|
|
395
395
|
}),
|
|
396
396
|
createEnvCommand(["dialog", "status"], "Read compact dialog status", async (args, deps) => {
|
|
397
|
-
const { runDialogStatusCommand } = await import("./dialogCommands-
|
|
397
|
+
const { runDialogStatusCommand } = await import("./dialogCommands-A5CHG67A.js");
|
|
398
398
|
return runDialogStatusCommand(args, deps);
|
|
399
399
|
})
|
|
400
400
|
];
|
|
@@ -404,39 +404,39 @@ function getDialogInternalCommandEntries() {
|
|
|
404
404
|
function getDocInternalCommandEntries() {
|
|
405
405
|
return [
|
|
406
406
|
createEnvCommand(["doc", "create"], "Create a normal doc", async (args, deps) => {
|
|
407
|
-
const { runDocCreateCommand } = await import("./docCreateCommands-
|
|
407
|
+
const { runDocCreateCommand } = await import("./docCreateCommands-BF354FQW.js");
|
|
408
408
|
return runDocCreateCommand(args, deps);
|
|
409
409
|
}),
|
|
410
410
|
createEnvCommand(["doc", "read"], "Read a normal doc", async (args, deps) => {
|
|
411
|
-
const { runDocReadCommand } = await import("./docReadCommands-
|
|
411
|
+
const { runDocReadCommand } = await import("./docReadCommands-A7ZDZIQV.js");
|
|
412
412
|
return runDocReadCommand(args, deps);
|
|
413
413
|
}),
|
|
414
414
|
createEnvCommand(["doc", "update"], "Update a normal doc", async (args, deps) => {
|
|
415
|
-
const { runDocUpdateCommand } = await import("./docUpdateCommands-
|
|
415
|
+
const { runDocUpdateCommand } = await import("./docUpdateCommands-5MGDR5ME.js");
|
|
416
416
|
return runDocUpdateCommand(args, deps);
|
|
417
417
|
}),
|
|
418
418
|
createEnvCommand(["doc", "delete"], "Delete a normal doc", async (args, deps) => {
|
|
419
|
-
const { runDocDeleteCommand } = await import("./docDeleteCommands-
|
|
419
|
+
const { runDocDeleteCommand } = await import("./docDeleteCommands-3K5K4XFO.js");
|
|
420
420
|
return runDocDeleteCommand(args, deps);
|
|
421
421
|
}),
|
|
422
422
|
createEnvCommand(["skill-doc", "create"], "Create a skill-backed doc", async (args, deps) => {
|
|
423
|
-
const { runSkillDocCreateCommand } = await import("./docCreateCommands-
|
|
423
|
+
const { runSkillDocCreateCommand } = await import("./docCreateCommands-BF354FQW.js");
|
|
424
424
|
return runSkillDocCreateCommand(args, deps);
|
|
425
425
|
}),
|
|
426
426
|
createEnvCommand(["skill", "create-doc"], "Create a skill-backed doc", async (args, deps) => {
|
|
427
|
-
const { runSkillDocCreateCommand } = await import("./docCreateCommands-
|
|
427
|
+
const { runSkillDocCreateCommand } = await import("./docCreateCommands-BF354FQW.js");
|
|
428
428
|
return runSkillDocCreateCommand(args, deps);
|
|
429
429
|
}),
|
|
430
430
|
createEnvCommand(["skill-doc", "read"], "Read a skill doc", async (args, deps) => {
|
|
431
|
-
const { runSkillDocReadCommand } = await import("./docReadCommands-
|
|
431
|
+
const { runSkillDocReadCommand } = await import("./docReadCommands-A7ZDZIQV.js");
|
|
432
432
|
return runSkillDocReadCommand(args, deps);
|
|
433
433
|
}),
|
|
434
434
|
createEnvCommand(["skill-doc", "update"], "Update a skill doc", async (args, deps) => {
|
|
435
|
-
const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-
|
|
435
|
+
const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-5MGDR5ME.js");
|
|
436
436
|
return runSkillDocUpdateCommand(args, deps);
|
|
437
437
|
}),
|
|
438
438
|
createEnvCommand(["skill-doc", "delete"], "Delete a skill doc", async (args, deps) => {
|
|
439
|
-
const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-
|
|
439
|
+
const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-3K5K4XFO.js");
|
|
440
440
|
return runSkillDocDeleteCommand(args, deps);
|
|
441
441
|
})
|
|
442
442
|
];
|
|
@@ -464,19 +464,19 @@ function getMemoryInternalCommandEntries() {
|
|
|
464
464
|
function getSpaceInternalCommandEntries() {
|
|
465
465
|
return [
|
|
466
466
|
createEnvCommand(["space", "create"], "Create a space", async (args, deps) => {
|
|
467
|
-
const { runSpaceCreateCommand } = await import("./spaceCommands-
|
|
467
|
+
const { runSpaceCreateCommand } = await import("./spaceCommands-M44RQPCK.js");
|
|
468
468
|
return runSpaceCreateCommand(args, deps);
|
|
469
469
|
}),
|
|
470
470
|
createEnvCommand(["space", "invite"], "Invite an existing user to a space", async (args, deps) => {
|
|
471
|
-
const { runSpaceInviteCommand } = await import("./spaceCommands-
|
|
471
|
+
const { runSpaceInviteCommand } = await import("./spaceCommands-M44RQPCK.js");
|
|
472
472
|
return runSpaceInviteCommand(args, deps);
|
|
473
473
|
}),
|
|
474
474
|
createEnvCommand(["space", "accept-invite"], "Accept a space invite", async (args, deps) => {
|
|
475
|
-
const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-
|
|
475
|
+
const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-M44RQPCK.js");
|
|
476
476
|
return runSpaceAcceptInviteCommand(args, deps);
|
|
477
477
|
}),
|
|
478
478
|
createEnvCommand(["space", "upload"], "Upload a file to a space", async (args, deps) => {
|
|
479
|
-
const { runSpaceUploadCommand } = await import("./spaceCommands-
|
|
479
|
+
const { runSpaceUploadCommand } = await import("./spaceCommands-M44RQPCK.js");
|
|
480
480
|
return runSpaceUploadCommand(args, deps);
|
|
481
481
|
})
|
|
482
482
|
];
|
|
@@ -530,15 +530,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
|
|
|
530
530
|
return runWhoamiCommand({ args, env: ctx.env });
|
|
531
531
|
}),
|
|
532
532
|
createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args, deps) => {
|
|
533
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
533
|
+
const { runMachineConnectCommand } = await import("./machineCommands-MT4FDVVG.js");
|
|
534
534
|
return runMachineConnectCommand(args, deps);
|
|
535
535
|
}),
|
|
536
536
|
createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
|
|
537
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
537
|
+
const { runMachineConnectCommand } = await import("./machineCommands-MT4FDVVG.js");
|
|
538
538
|
return runMachineConnectCommand(args, deps);
|
|
539
539
|
}),
|
|
540
540
|
createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
|
|
541
|
-
const { runMachineStatusCommand } = await import("./machineCommands-
|
|
541
|
+
const { runMachineStatusCommand } = await import("./machineCommands-MT4FDVVG.js");
|
|
542
542
|
return runMachineStatusCommand(args, deps);
|
|
543
543
|
}),
|
|
544
544
|
createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
|
|
@@ -30,7 +30,7 @@ import "./chunk-OFFL4DCR.js";
|
|
|
30
30
|
import "./chunk-QQ56R7KS.js";
|
|
31
31
|
import "./chunk-OW765XBU.js";
|
|
32
32
|
import "./chunk-D2MDMY2M.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-FGSVT353.js";
|
|
34
34
|
import "./chunk-DWFRZ3UI.js";
|
|
35
35
|
import "./chunk-ZNFJWEN4.js";
|
|
36
36
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -29,7 +29,7 @@ import "./chunk-VF4K2QE6.js";
|
|
|
29
29
|
import "./chunk-UAD2WT54.js";
|
|
30
30
|
import "./chunk-AETZ7AD6.js";
|
|
31
31
|
import "./chunk-KHCLMKZZ.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-FGSVT353.js";
|
|
33
33
|
import "./chunk-DWFRZ3UI.js";
|
|
34
34
|
import "./chunk-ZNFJWEN4.js";
|
|
35
35
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -23,7 +23,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
23
23
|
import "./chunk-D2MDMY2M.js";
|
|
24
24
|
import "./chunk-AETZ7AD6.js";
|
|
25
25
|
import "./chunk-KHCLMKZZ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-FGSVT353.js";
|
|
27
27
|
import "./chunk-DWFRZ3UI.js";
|
|
28
28
|
import "./chunk-ZNFJWEN4.js";
|
|
29
29
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-VF4K2QE6.js";
|
|
|
17
17
|
import "./chunk-UAD2WT54.js";
|
|
18
18
|
import "./chunk-AETZ7AD6.js";
|
|
19
19
|
import "./chunk-KHCLMKZZ.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-FGSVT353.js";
|
|
21
21
|
import "./chunk-DWFRZ3UI.js";
|
|
22
22
|
import "./chunk-ZNFJWEN4.js";
|
|
23
23
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
resolvePageSkillMetadata
|
|
32
32
|
} from "./chunk-AETZ7AD6.js";
|
|
33
33
|
import "./chunk-KHCLMKZZ.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-FGSVT353.js";
|
|
35
35
|
import "./chunk-DWFRZ3UI.js";
|
|
36
36
|
import "./chunk-ZNFJWEN4.js";
|
|
37
37
|
import "./chunk-LCCULKPJ.js";
|
package/index.js
CHANGED
|
@@ -71,9 +71,9 @@ async function runScript(script, forwardedArgs, env) {
|
|
|
71
71
|
return proc.exited;
|
|
72
72
|
}
|
|
73
73
|
async function launchTuiWorkspace(args2) {
|
|
74
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
74
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-MTYLMWBM.js");
|
|
75
75
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-I2MRY6T5.js");
|
|
76
|
-
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-
|
|
76
|
+
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-ZAXRSVWI.js");
|
|
77
77
|
setCliAutoCompactionSummaryFallback(
|
|
78
78
|
createTuiSummaryLlmCaller(args2.env, { timeoutMs: 3e4 })
|
|
79
79
|
);
|
|
@@ -85,7 +85,7 @@ async function launchTuiWorkspace(args2) {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
async function main() {
|
|
88
|
-
const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-
|
|
88
|
+
const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-S54U5ZHX.js");
|
|
89
89
|
const { buildCliRuntimeEnv, loadProfileConfig } = await import("./profileConfig-KN3N2BLF.js");
|
|
90
90
|
const { resolveTuiLaunchMode } = await import("./runtimeModeArgs-2Y7BALTO.js");
|
|
91
91
|
const runtimeEnv = {
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
withRuntimeEnabledPacksAndPrompt,
|
|
47
47
|
writeDialog,
|
|
48
48
|
writeLocalTokenRecord
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-UILL43UU.js";
|
|
50
50
|
import "./chunk-D2J22QSE.js";
|
|
51
51
|
import "./chunk-R4BMKAR5.js";
|
|
52
52
|
import "./chunk-TDX2L4W2.js";
|
|
@@ -126,7 +126,7 @@ import "./chunk-EUGTFFO6.js";
|
|
|
126
126
|
import "./chunk-AETZ7AD6.js";
|
|
127
127
|
import "./chunk-Y6ORVLSS.js";
|
|
128
128
|
import "./chunk-KHCLMKZZ.js";
|
|
129
|
-
import "./chunk-
|
|
129
|
+
import "./chunk-FGSVT353.js";
|
|
130
130
|
import "./chunk-DWFRZ3UI.js";
|
|
131
131
|
import "./chunk-ZNFJWEN4.js";
|
|
132
132
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
buildMachinePermissionPromptBlock,
|
|
3
3
|
handleConnectorRunMessage,
|
|
4
4
|
resolveMachineRunPermissionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MG63GUYM.js";
|
|
6
6
|
import {
|
|
7
7
|
MAX_CONNECTOR_TIMER_DELAY_MS,
|
|
8
8
|
clampConnectorTimerDelayMs,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveConnectorProbeTimeoutMs,
|
|
12
12
|
resolveConnectorWebSocketTarget
|
|
13
13
|
} from "./chunk-BLVSFYQ3.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-UILL43UU.js";
|
|
15
15
|
import "./chunk-D2J22QSE.js";
|
|
16
16
|
import "./chunk-R4BMKAR5.js";
|
|
17
17
|
import "./chunk-TDX2L4W2.js";
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
PATH_FIELD_ALIASES,
|
|
100
100
|
createLocalWorkspaceToolExecutors,
|
|
101
101
|
resolveRequestedWorkspacePath
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-FGSVT353.js";
|
|
103
103
|
import "./chunk-DWFRZ3UI.js";
|
|
104
104
|
import "./chunk-ZNFJWEN4.js";
|
|
105
105
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runtimeWorkspacePermissionPolicy,
|
|
12
12
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
13
13
|
summarizeAgentConfigForLogs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-MG63GUYM.js";
|
|
15
|
+
import "./chunk-UILL43UU.js";
|
|
16
16
|
import "./chunk-D2J22QSE.js";
|
|
17
17
|
import "./chunk-R4BMKAR5.js";
|
|
18
18
|
import "./chunk-TDX2L4W2.js";
|
|
@@ -87,7 +87,7 @@ import "./chunk-EUGTFFO6.js";
|
|
|
87
87
|
import "./chunk-AETZ7AD6.js";
|
|
88
88
|
import "./chunk-Y6ORVLSS.js";
|
|
89
89
|
import "./chunk-KHCLMKZZ.js";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-FGSVT353.js";
|
|
91
91
|
import "./chunk-DWFRZ3UI.js";
|
|
92
92
|
import "./chunk-ZNFJWEN4.js";
|
|
93
93
|
import "./chunk-LCCULKPJ.js";
|
package/package.json
CHANGED
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
wrapTextToLines,
|
|
91
91
|
wrapTranscriptLine,
|
|
92
92
|
wrapTranscriptLineWithLayout
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-RNIZNIVT.js";
|
|
94
94
|
import "./chunk-6QDYSCPW.js";
|
|
95
95
|
import "./chunk-VJ52BYBK.js";
|
|
96
96
|
import {
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
createCliLocalRuntimeAdapter,
|
|
103
103
|
createOriginShellGrant,
|
|
104
104
|
readTimestamp
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-UILL43UU.js";
|
|
106
106
|
import "./chunk-D2J22QSE.js";
|
|
107
107
|
import "./chunk-R4BMKAR5.js";
|
|
108
108
|
import {
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
formatToolOverflowMarker,
|
|
230
230
|
getProcessRegistry,
|
|
231
231
|
readCommandActionGatePayload
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-FGSVT353.js";
|
|
233
233
|
import "./chunk-DWFRZ3UI.js";
|
|
234
234
|
import "./chunk-ZNFJWEN4.js";
|
|
235
235
|
import "./chunk-LCCULKPJ.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
resolveFileCategory
|
|
21
21
|
} from "./chunk-3PVYUPXK.js";
|
|
22
22
|
import "./chunk-D2MDMY2M.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-FGSVT353.js";
|
|
24
24
|
import "./chunk-DWFRZ3UI.js";
|
|
25
25
|
import "./chunk-ZNFJWEN4.js";
|
|
26
26
|
import "./chunk-LCCULKPJ.js";
|