@openacp/cli 0.6.8 → 0.6.9
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/dist/{action-detect-6M5GCGAU.js → action-detect-P7ZE4NEM.js} +2 -1
- package/dist/{adapter-7GY3N4ZH.js → adapter-LNEGLMOE.js} +8 -7
- package/dist/{adapter-7GY3N4ZH.js.map → adapter-LNEGLMOE.js.map} +1 -1
- package/dist/{admin-2HAFXQBG.js → admin-6SYB6XCZ.js} +2 -1
- package/dist/{agent-catalog-SBZQRYOD.js → agent-catalog-FC3HGDEQ.js} +2 -1
- package/dist/{agent-dependencies-QY5QSULV.js → agent-dependencies-4OWBMZWZ.js} +2 -1
- package/dist/{agent-registry-KZFSIRSJ.js → agent-registry-WT4NXPYG.js} +2 -1
- package/dist/{agent-store-CGE4G6PA.js → agent-store-VZLFPTZU.js} +2 -1
- package/dist/{agents-QJPHNWK2.js → agents-QO7DKARJ.js} +2 -1
- package/dist/{api-client-BH2JFHQW.js → api-client-CFQT5U7D.js} +2 -1
- package/dist/{autostart-6M3FZAKW.js → autostart-X33OGMX6.js} +2 -1
- package/dist/{chunk-RHE2JSYE.js → chunk-2HMQOC7N.js} +2 -2
- package/dist/{chunk-SHHMBGB3.js → chunk-33RP6K2O.js} +2 -2
- package/dist/{chunk-47B7GNOE.js → chunk-BDYVCIBH.js} +8 -8
- package/dist/{chunk-MZXWCDBU.js → chunk-BN3X7UXB.js} +4 -4
- package/dist/{chunk-5SXG7X5D.js → chunk-H5P2C6H4.js} +18 -18
- package/dist/{chunk-LO4Y5WQ7.js → chunk-LGP2YGRL.js} +7 -7
- package/dist/{chunk-LO4Y5WQ7.js.map → chunk-LGP2YGRL.js.map} +1 -1
- package/dist/{chunk-YEOY2PBJ.js → chunk-NVPG6JCL.js} +3 -3
- package/dist/{chunk-5OVPEDUB.js → chunk-VOIJ6OY4.js} +2 -2
- package/dist/chunk-VUNV25KB.js +16 -0
- package/dist/{chunk-2J2RBYWN.js → chunk-WTZDAYZX.js} +2 -2
- package/dist/cli.js +47 -46
- package/dist/cli.js.map +1 -1
- package/dist/{config-CQAS6YHR.js → config-6S355X75.js} +3 -2
- package/dist/config-editor-RVLWZLVB.js +13 -0
- package/dist/{config-registry-HDXFES2D.js → config-registry-AHYI4MYL.js} +2 -1
- package/dist/{daemon-K33ZPSEZ.js → daemon-4CS6HMB5.js} +4 -3
- package/dist/{discord-VOHXRTCH.js → discord-7IVQKB2H.js} +14 -13
- package/dist/{discord-VOHXRTCH.js.map → discord-7IVQKB2H.js.map} +1 -1
- package/dist/dist-UHQK5CXN.js +21151 -0
- package/dist/dist-UHQK5CXN.js.map +1 -0
- package/dist/doctor-HZZ5BSHB.js +10 -0
- package/dist/{doctor-HASEBMUD.js → doctor-OLYBO3V3.js} +5 -4
- package/dist/index.js +10 -9
- package/dist/{install-cloudflared-FSILDS5J.js → install-cloudflared-Z7VCGOVG.js} +2 -1
- package/dist/{install-cloudflared-FSILDS5J.js.map → install-cloudflared-Z7VCGOVG.js.map} +1 -1
- package/dist/{install-jq-P6RUBKPV.js → install-jq-HUYSQWKR.js} +2 -1
- package/dist/{install-jq-P6RUBKPV.js.map → install-jq-HUYSQWKR.js.map} +1 -1
- package/dist/{integrate-O4OCR4SN.js → integrate-PNEHRY2I.js} +2 -1
- package/dist/{integrate-O4OCR4SN.js.map → integrate-PNEHRY2I.js.map} +1 -1
- package/dist/{log-RCVBXLTN.js → log-NXABYJTT.js} +2 -1
- package/dist/{main-DUXVFTDD.js → main-ZK4MPMBG.js} +20 -19
- package/dist/{main-DUXVFTDD.js.map → main-ZK4MPMBG.js.map} +1 -1
- package/dist/{menu-XR2GET2B.js → menu-YY5MKHEK.js} +2 -1
- package/dist/{new-session-NHK7TOEW.js → new-session-FEO4J4VU.js} +2 -1
- package/dist/{post-upgrade-62LUHDJO.js → post-upgrade-CJG5I7M2.js} +6 -5
- package/dist/{post-upgrade-62LUHDJO.js.map → post-upgrade-CJG5I7M2.js.map} +1 -1
- package/dist/{session-O6ZPLJIZ.js → session-IUSI7P5S.js} +2 -1
- package/dist/{settings-6TF4WIGJ.js → settings-RQPAM4KC.js} +2 -1
- package/dist/{setup-RJCEB6FS.js → setup-3GQSYBE4.js} +4 -3
- package/dist/{suggest-RST5VOHB.js → suggest-7D6B542M.js} +3 -1
- package/dist/{suggest-RST5VOHB.js.map → suggest-7D6B542M.js.map} +1 -1
- package/dist/{tunnel-service-NJJH4I26.js → tunnel-service-CJLUH6SZ.js} +3 -2
- package/dist/{tunnel-service-NJJH4I26.js.map → tunnel-service-CJLUH6SZ.js.map} +1 -1
- package/dist/{version-AXXV6IV2.js → version-NQZBM5M7.js} +2 -1
- package/dist/version-NQZBM5M7.js.map +1 -0
- package/package.json +15 -1
- package/dist/config-editor-37BM56WF.js +0 -12
- package/dist/doctor-W4VGLDVM.js +0 -9
- /package/dist/{action-detect-6M5GCGAU.js.map → action-detect-P7ZE4NEM.js.map} +0 -0
- /package/dist/{admin-2HAFXQBG.js.map → admin-6SYB6XCZ.js.map} +0 -0
- /package/dist/{agent-catalog-SBZQRYOD.js.map → agent-catalog-FC3HGDEQ.js.map} +0 -0
- /package/dist/{agent-dependencies-QY5QSULV.js.map → agent-dependencies-4OWBMZWZ.js.map} +0 -0
- /package/dist/{agent-registry-KZFSIRSJ.js.map → agent-registry-WT4NXPYG.js.map} +0 -0
- /package/dist/{agent-store-CGE4G6PA.js.map → agent-store-VZLFPTZU.js.map} +0 -0
- /package/dist/{agents-QJPHNWK2.js.map → agents-QO7DKARJ.js.map} +0 -0
- /package/dist/{api-client-BH2JFHQW.js.map → api-client-CFQT5U7D.js.map} +0 -0
- /package/dist/{autostart-6M3FZAKW.js.map → autostart-X33OGMX6.js.map} +0 -0
- /package/dist/{chunk-RHE2JSYE.js.map → chunk-2HMQOC7N.js.map} +0 -0
- /package/dist/{chunk-SHHMBGB3.js.map → chunk-33RP6K2O.js.map} +0 -0
- /package/dist/{chunk-47B7GNOE.js.map → chunk-BDYVCIBH.js.map} +0 -0
- /package/dist/{chunk-MZXWCDBU.js.map → chunk-BN3X7UXB.js.map} +0 -0
- /package/dist/{chunk-5SXG7X5D.js.map → chunk-H5P2C6H4.js.map} +0 -0
- /package/dist/{chunk-YEOY2PBJ.js.map → chunk-NVPG6JCL.js.map} +0 -0
- /package/dist/{chunk-5OVPEDUB.js.map → chunk-VOIJ6OY4.js.map} +0 -0
- /package/dist/{config-CQAS6YHR.js.map → chunk-VUNV25KB.js.map} +0 -0
- /package/dist/{chunk-2J2RBYWN.js.map → chunk-WTZDAYZX.js.map} +0 -0
- /package/dist/{config-editor-37BM56WF.js.map → config-6S355X75.js.map} +0 -0
- /package/dist/{config-registry-HDXFES2D.js.map → config-editor-RVLWZLVB.js.map} +0 -0
- /package/dist/{daemon-K33ZPSEZ.js.map → config-registry-AHYI4MYL.js.map} +0 -0
- /package/dist/{doctor-HASEBMUD.js.map → daemon-4CS6HMB5.js.map} +0 -0
- /package/dist/{doctor-W4VGLDVM.js.map → doctor-HZZ5BSHB.js.map} +0 -0
- /package/dist/{log-RCVBXLTN.js.map → doctor-OLYBO3V3.js.map} +0 -0
- /package/dist/{menu-XR2GET2B.js.map → log-NXABYJTT.js.map} +0 -0
- /package/dist/{new-session-NHK7TOEW.js.map → menu-YY5MKHEK.js.map} +0 -0
- /package/dist/{session-O6ZPLJIZ.js.map → new-session-FEO4J4VU.js.map} +0 -0
- /package/dist/{settings-6TF4WIGJ.js.map → session-IUSI7P5S.js.map} +0 -0
- /package/dist/{setup-RJCEB6FS.js.map → settings-RQPAM4KC.js.map} +0 -0
- /package/dist/{version-AXXV6IV2.js.map → setup-3GQSYBE4.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ConfigSchema,
|
|
4
4
|
applyMigrations,
|
|
5
5
|
expandHome
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-33RP6K2O.js";
|
|
7
7
|
|
|
8
8
|
// src/core/doctor/index.ts
|
|
9
9
|
import * as fs8 from "fs";
|
|
@@ -605,7 +605,7 @@ var tunnelCheck = {
|
|
|
605
605
|
fixRisk: "safe",
|
|
606
606
|
fix: async () => {
|
|
607
607
|
try {
|
|
608
|
-
const { ensureCloudflared } = await import("./install-cloudflared-
|
|
608
|
+
const { ensureCloudflared } = await import("./install-cloudflared-Z7VCGOVG.js");
|
|
609
609
|
await ensureCloudflared();
|
|
610
610
|
return { success: true, message: "installed cloudflared" };
|
|
611
611
|
} catch (err) {
|
|
@@ -721,4 +721,4 @@ var DoctorEngine = class {
|
|
|
721
721
|
export {
|
|
722
722
|
DoctorEngine
|
|
723
723
|
};
|
|
724
|
-
//# sourceMappingURL=chunk-
|
|
724
|
+
//# sourceMappingURL=chunk-NVPG6JCL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PLUGINS_DIR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-33RP6K2O.js";
|
|
4
4
|
import {
|
|
5
5
|
createChildLogger
|
|
6
6
|
} from "./chunk-GAK6PIBW.js";
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
listPlugins,
|
|
61
61
|
loadAdapterFactory
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-VOIJ6OY4.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
+
}) : x)(function(x) {
|
|
5
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
8
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
__require,
|
|
14
|
+
__commonJS
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-VUNV25KB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
expandHome
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-33RP6K2O.js";
|
|
4
4
|
|
|
5
5
|
// src/core/daemon.ts
|
|
6
6
|
import { spawn } from "child_process";
|
|
@@ -169,4 +169,4 @@ export {
|
|
|
169
169
|
clearRunning,
|
|
170
170
|
shouldAutoStart
|
|
171
171
|
};
|
|
172
|
-
//# sourceMappingURL=chunk-
|
|
172
|
+
//# sourceMappingURL=chunk-WTZDAYZX.js.map
|
package/dist/cli.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
installPlugin,
|
|
4
4
|
listPlugins,
|
|
5
5
|
uninstallPlugin
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-VOIJ6OY4.js";
|
|
7
|
+
import "./chunk-33RP6K2O.js";
|
|
8
8
|
import "./chunk-GAK6PIBW.js";
|
|
9
9
|
import {
|
|
10
10
|
apiCall,
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
getLatestVersion,
|
|
19
19
|
runUpdate
|
|
20
20
|
} from "./chunk-S64CB6J3.js";
|
|
21
|
+
import "./chunk-VUNV25KB.js";
|
|
21
22
|
|
|
22
23
|
// src/cli.ts
|
|
23
24
|
import { setDefaultAutoSelectFamily } from "net";
|
|
@@ -97,7 +98,7 @@ Connect messaging platforms (Telegram, Discord) to 28+ AI coding agents via ACP
|
|
|
97
98
|
`);
|
|
98
99
|
}
|
|
99
100
|
async function cmdVersion() {
|
|
100
|
-
const { getCurrentVersion: getCurrentVersion2 } = await import("./version-
|
|
101
|
+
const { getCurrentVersion: getCurrentVersion2 } = await import("./version-NQZBM5M7.js");
|
|
101
102
|
console.log(`openacp v${getCurrentVersion2()}`);
|
|
102
103
|
}
|
|
103
104
|
async function cmdInstall(args2) {
|
|
@@ -717,7 +718,7 @@ Shows the version of the currently running daemon process.
|
|
|
717
718
|
}
|
|
718
719
|
console.log(`Daemon version: ${data.version}`);
|
|
719
720
|
} else {
|
|
720
|
-
const { suggestMatch } = await import("./suggest-
|
|
721
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
721
722
|
const apiSubcommands = [
|
|
722
723
|
"new",
|
|
723
724
|
"cancel",
|
|
@@ -773,8 +774,8 @@ Requires an existing config \u2014 run 'openacp' first to set up.
|
|
|
773
774
|
return;
|
|
774
775
|
}
|
|
775
776
|
await checkAndPromptUpdate();
|
|
776
|
-
const { startDaemon, getPidPath } = await import("./daemon-
|
|
777
|
-
const { ConfigManager } = await import("./config-
|
|
777
|
+
const { startDaemon, getPidPath } = await import("./daemon-4CS6HMB5.js");
|
|
778
|
+
const { ConfigManager } = await import("./config-6S355X75.js");
|
|
778
779
|
const cm = new ConfigManager();
|
|
779
780
|
if (await cm.exists()) {
|
|
780
781
|
await cm.load();
|
|
@@ -802,7 +803,7 @@ Sends a stop signal to the running OpenACP daemon process.
|
|
|
802
803
|
`);
|
|
803
804
|
return;
|
|
804
805
|
}
|
|
805
|
-
const { stopDaemon } = await import("./daemon-
|
|
806
|
+
const { stopDaemon } = await import("./daemon-4CS6HMB5.js");
|
|
806
807
|
const result = await stopDaemon();
|
|
807
808
|
if (result.stopped) {
|
|
808
809
|
console.log(`OpenACP daemon stopped (was PID ${result.pid})`);
|
|
@@ -823,7 +824,7 @@ Shows whether the OpenACP daemon is running and its PID.
|
|
|
823
824
|
`);
|
|
824
825
|
return;
|
|
825
826
|
}
|
|
826
|
-
const { getStatus } = await import("./daemon-
|
|
827
|
+
const { getStatus } = await import("./daemon-4CS6HMB5.js");
|
|
827
828
|
const status = getStatus();
|
|
828
829
|
if (status.running) {
|
|
829
830
|
console.log(`OpenACP is running (PID ${status.pid})`);
|
|
@@ -847,7 +848,7 @@ Log file location is configured in config (default: ~/.openacp/logs/).
|
|
|
847
848
|
return;
|
|
848
849
|
}
|
|
849
850
|
const { spawn } = await import("child_process");
|
|
850
|
-
const { ConfigManager, expandHome } = await import("./config-
|
|
851
|
+
const { ConfigManager, expandHome } = await import("./config-6S355X75.js");
|
|
851
852
|
const pathMod = await import("path");
|
|
852
853
|
const cm = new ConfigManager();
|
|
853
854
|
let logDir = "~/.openacp/logs";
|
|
@@ -917,11 +918,11 @@ the API for live updates. When stopped, edits config file directly.
|
|
|
917
918
|
console.error("Usage: openacp config set <path> <value>");
|
|
918
919
|
process.exit(1);
|
|
919
920
|
}
|
|
920
|
-
const { ConfigSchema } = await import("./config-
|
|
921
|
+
const { ConfigSchema } = await import("./config-6S355X75.js");
|
|
921
922
|
const topLevelKey = configPath.split(".")[0];
|
|
922
923
|
const validConfigKeys = Object.keys(ConfigSchema.shape);
|
|
923
924
|
if (!validConfigKeys.includes(topLevelKey)) {
|
|
924
|
-
const { suggestMatch } = await import("./suggest-
|
|
925
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
925
926
|
const suggestion = suggestMatch(topLevelKey, validConfigKeys);
|
|
926
927
|
console.error(`Unknown config key: ${topLevelKey}`);
|
|
927
928
|
if (suggestion) console.error(`Did you mean: ${suggestion}?`);
|
|
@@ -949,7 +950,7 @@ the API for live updates. When stopped, edits config file directly.
|
|
|
949
950
|
console.log("Note: restart required for this change to take effect.");
|
|
950
951
|
}
|
|
951
952
|
} else {
|
|
952
|
-
const { ConfigManager: ConfigManager2 } = await import("./config-
|
|
953
|
+
const { ConfigManager: ConfigManager2 } = await import("./config-6S355X75.js");
|
|
953
954
|
const cm2 = new ConfigManager2();
|
|
954
955
|
if (!await cm2.exists()) {
|
|
955
956
|
console.error('No config found. Run "openacp" first to set up.');
|
|
@@ -962,8 +963,8 @@ the API for live updates. When stopped, edits config file directly.
|
|
|
962
963
|
}
|
|
963
964
|
return;
|
|
964
965
|
}
|
|
965
|
-
const { runConfigEditor } = await import("./config-editor-
|
|
966
|
-
const { ConfigManager } = await import("./config-
|
|
966
|
+
const { runConfigEditor } = await import("./config-editor-RVLWZLVB.js");
|
|
967
|
+
const { ConfigManager } = await import("./config-6S355X75.js");
|
|
967
968
|
const cm = new ConfigManager();
|
|
968
969
|
if (!await cm.exists()) {
|
|
969
970
|
console.error('No config found. Run "openacp" first to set up.');
|
|
@@ -1002,7 +1003,7 @@ start fresh with the setup wizard. The daemon must be stopped first.
|
|
|
1002
1003
|
`);
|
|
1003
1004
|
return;
|
|
1004
1005
|
}
|
|
1005
|
-
const { getStatus } = await import("./daemon-
|
|
1006
|
+
const { getStatus } = await import("./daemon-4CS6HMB5.js");
|
|
1006
1007
|
const status = getStatus();
|
|
1007
1008
|
if (status.running) {
|
|
1008
1009
|
console.error("OpenACP is running. Stop it first: openacp stop");
|
|
@@ -1017,7 +1018,7 @@ start fresh with the setup wizard. The daemon must be stopped first.
|
|
|
1017
1018
|
console.log("Aborted.");
|
|
1018
1019
|
return;
|
|
1019
1020
|
}
|
|
1020
|
-
const { uninstallAutoStart } = await import("./autostart-
|
|
1021
|
+
const { uninstallAutoStart } = await import("./autostart-X33OGMX6.js");
|
|
1021
1022
|
uninstallAutoStart();
|
|
1022
1023
|
const fs = await import("fs");
|
|
1023
1024
|
const os = await import("os");
|
|
@@ -1102,7 +1103,7 @@ as a messaging thread. Requires a running daemon.
|
|
|
1102
1103
|
process.exit(1);
|
|
1103
1104
|
}
|
|
1104
1105
|
try {
|
|
1105
|
-
const { apiCall: apiCall2 } = await import("./api-client-
|
|
1106
|
+
const { apiCall: apiCall2 } = await import("./api-client-CFQT5U7D.js");
|
|
1106
1107
|
const res = await apiCall2(port, "/api/sessions/adopt", {
|
|
1107
1108
|
method: "POST",
|
|
1108
1109
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1152,7 +1153,7 @@ a "Handoff" slash command to Claude Code.
|
|
|
1152
1153
|
`);
|
|
1153
1154
|
return;
|
|
1154
1155
|
}
|
|
1155
|
-
const { getIntegration, listIntegrations } = await import("./integrate-
|
|
1156
|
+
const { getIntegration, listIntegrations } = await import("./integrate-PNEHRY2I.js");
|
|
1156
1157
|
const agent = args2[1];
|
|
1157
1158
|
const uninstall = args2.includes("--uninstall");
|
|
1158
1159
|
if (!agent) {
|
|
@@ -1162,7 +1163,7 @@ a "Handoff" slash command to Claude Code.
|
|
|
1162
1163
|
}
|
|
1163
1164
|
const integration = getIntegration(agent);
|
|
1164
1165
|
if (!integration) {
|
|
1165
|
-
const { suggestMatch } = await import("./suggest-
|
|
1166
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
1166
1167
|
const available = listIntegrations();
|
|
1167
1168
|
const suggestion = suggestMatch(agent, available);
|
|
1168
1169
|
console.log(`No integration available for '${agent}'.`);
|
|
@@ -1217,7 +1218,7 @@ Fixable issues can be auto-repaired when not using --dry-run.
|
|
|
1217
1218
|
(a) => a.startsWith("--") && !knownFlags.includes(a)
|
|
1218
1219
|
);
|
|
1219
1220
|
if (unknownFlags.length > 0) {
|
|
1220
|
-
const { suggestMatch } = await import("./suggest-
|
|
1221
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
1221
1222
|
for (const flag of unknownFlags) {
|
|
1222
1223
|
const suggestion = suggestMatch(flag, knownFlags);
|
|
1223
1224
|
console.error(`Unknown flag: ${flag}`);
|
|
@@ -1226,7 +1227,7 @@ Fixable issues can be auto-repaired when not using --dry-run.
|
|
|
1226
1227
|
process.exit(1);
|
|
1227
1228
|
}
|
|
1228
1229
|
const dryRun = args2.includes("--dry-run");
|
|
1229
|
-
const { DoctorEngine } = await import("./doctor-
|
|
1230
|
+
const { DoctorEngine } = await import("./doctor-HZZ5BSHB.js");
|
|
1230
1231
|
const engine = new DoctorEngine({ dryRun });
|
|
1231
1232
|
console.log("\n\u{1FA7A} OpenACP Doctor\n");
|
|
1232
1233
|
const report = await engine.runAll();
|
|
@@ -1403,7 +1404,7 @@ bypassing the normal staleness check.
|
|
|
1403
1404
|
case void 0:
|
|
1404
1405
|
return agentsList();
|
|
1405
1406
|
default: {
|
|
1406
|
-
const { suggestMatch } = await import("./suggest-
|
|
1407
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
1407
1408
|
const agentSubcommands = ["install", "uninstall", "refresh", "info", "run", "list"];
|
|
1408
1409
|
const suggestion = suggestMatch(subcommand, agentSubcommands);
|
|
1409
1410
|
console.error(`Unknown agents command: ${subcommand}`);
|
|
@@ -1415,7 +1416,7 @@ Run 'openacp agents' to see available agents.`);
|
|
|
1415
1416
|
}
|
|
1416
1417
|
}
|
|
1417
1418
|
async function agentsList() {
|
|
1418
|
-
const { AgentCatalog } = await import("./agent-catalog-
|
|
1419
|
+
const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
|
|
1419
1420
|
const catalog = new AgentCatalog();
|
|
1420
1421
|
catalog.load();
|
|
1421
1422
|
await catalog.refreshRegistryIfStale();
|
|
@@ -1478,7 +1479,7 @@ Run 'openacp agents' to see available agents.
|
|
|
1478
1479
|
`);
|
|
1479
1480
|
return;
|
|
1480
1481
|
}
|
|
1481
|
-
const { AgentCatalog } = await import("./agent-catalog-
|
|
1482
|
+
const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
|
|
1482
1483
|
const catalog = new AgentCatalog();
|
|
1483
1484
|
catalog.load();
|
|
1484
1485
|
await catalog.refreshRegistryIfStale();
|
|
@@ -1513,17 +1514,17 @@ Run 'openacp agents' to see available agents.
|
|
|
1513
1514
|
const result = await catalog.install(nameOrId, progress, force);
|
|
1514
1515
|
if (!result.ok) {
|
|
1515
1516
|
if (result.error?.includes("not found")) {
|
|
1516
|
-
const { suggestMatch } = await import("./suggest-
|
|
1517
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
1517
1518
|
const allKeys = catalog.getAvailable().map((a) => a.key);
|
|
1518
1519
|
const suggestion = suggestMatch(nameOrId, allKeys);
|
|
1519
1520
|
if (suggestion) console.log(` Did you mean: ${suggestion}?`);
|
|
1520
1521
|
}
|
|
1521
1522
|
process.exit(1);
|
|
1522
1523
|
}
|
|
1523
|
-
const { getAgentCapabilities } = await import("./agent-dependencies-
|
|
1524
|
+
const { getAgentCapabilities } = await import("./agent-dependencies-4OWBMZWZ.js");
|
|
1524
1525
|
const caps = getAgentCapabilities(result.agentKey);
|
|
1525
1526
|
if (caps.integration) {
|
|
1526
|
-
const { installIntegration } = await import("./integrate-
|
|
1527
|
+
const { installIntegration } = await import("./integrate-PNEHRY2I.js");
|
|
1527
1528
|
const intResult = await installIntegration(result.agentKey, caps.integration);
|
|
1528
1529
|
if (intResult.success) {
|
|
1529
1530
|
console.log(` \x1B[32m\u2713\x1B[0m Handoff integration installed for ${result.agentKey}`);
|
|
@@ -1557,15 +1558,15 @@ async function agentsUninstall(name, help = false) {
|
|
|
1557
1558
|
`);
|
|
1558
1559
|
return;
|
|
1559
1560
|
}
|
|
1560
|
-
const { AgentCatalog } = await import("./agent-catalog-
|
|
1561
|
+
const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
|
|
1561
1562
|
const catalog = new AgentCatalog();
|
|
1562
1563
|
catalog.load();
|
|
1563
1564
|
const result = await catalog.uninstall(name);
|
|
1564
1565
|
if (result.ok) {
|
|
1565
|
-
const { getAgentCapabilities } = await import("./agent-dependencies-
|
|
1566
|
+
const { getAgentCapabilities } = await import("./agent-dependencies-4OWBMZWZ.js");
|
|
1566
1567
|
const caps = getAgentCapabilities(name);
|
|
1567
1568
|
if (caps.integration) {
|
|
1568
|
-
const { uninstallIntegration } = await import("./integrate-
|
|
1569
|
+
const { uninstallIntegration } = await import("./integrate-PNEHRY2I.js");
|
|
1569
1570
|
await uninstallIntegration(name, caps.integration);
|
|
1570
1571
|
console.log(` \x1B[32m\u2713\x1B[0m Handoff integration removed for ${name}`);
|
|
1571
1572
|
}
|
|
@@ -1576,7 +1577,7 @@ async function agentsUninstall(name, help = false) {
|
|
|
1576
1577
|
console.log(`
|
|
1577
1578
|
\x1B[31m\u2717 ${result.error}\x1B[0m`);
|
|
1578
1579
|
if (result.error?.includes("not installed")) {
|
|
1579
|
-
const { suggestMatch } = await import("./suggest-
|
|
1580
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
1580
1581
|
const installedKeys = Object.keys(catalog.getInstalledEntries());
|
|
1581
1582
|
const suggestion = suggestMatch(name, installedKeys);
|
|
1582
1583
|
if (suggestion) console.log(` Did you mean: ${suggestion}?`);
|
|
@@ -1585,7 +1586,7 @@ async function agentsUninstall(name, help = false) {
|
|
|
1585
1586
|
}
|
|
1586
1587
|
}
|
|
1587
1588
|
async function agentsRefresh() {
|
|
1588
|
-
const { AgentCatalog } = await import("./agent-catalog-
|
|
1589
|
+
const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
|
|
1589
1590
|
const catalog = new AgentCatalog();
|
|
1590
1591
|
catalog.load();
|
|
1591
1592
|
console.log("\n Updating agent list...");
|
|
@@ -1612,10 +1613,10 @@ whether the agent is installed or available from the registry.
|
|
|
1612
1613
|
`);
|
|
1613
1614
|
return;
|
|
1614
1615
|
}
|
|
1615
|
-
const { AgentCatalog } = await import("./agent-catalog-
|
|
1616
|
+
const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
|
|
1616
1617
|
const catalog = new AgentCatalog();
|
|
1617
1618
|
catalog.load();
|
|
1618
|
-
const { getAgentSetup } = await import("./agent-dependencies-
|
|
1619
|
+
const { getAgentSetup } = await import("./agent-dependencies-4OWBMZWZ.js");
|
|
1619
1620
|
const installed = catalog.getInstalledAgent(nameOrId);
|
|
1620
1621
|
if (installed) {
|
|
1621
1622
|
console.log(`
|
|
@@ -1662,7 +1663,7 @@ whether the agent is installed or available from the registry.
|
|
|
1662
1663
|
`);
|
|
1663
1664
|
return;
|
|
1664
1665
|
}
|
|
1665
|
-
const { suggestMatch } = await import("./suggest-
|
|
1666
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
1666
1667
|
const allKeys = catalog.getAvailable().map((a) => a.key);
|
|
1667
1668
|
const suggestion = suggestMatch(nameOrId, allKeys);
|
|
1668
1669
|
console.log(`
|
|
@@ -1693,12 +1694,12 @@ ACP-specific flags are automatically stripped.
|
|
|
1693
1694
|
`);
|
|
1694
1695
|
return;
|
|
1695
1696
|
}
|
|
1696
|
-
const { AgentCatalog } = await import("./agent-catalog-
|
|
1697
|
+
const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
|
|
1697
1698
|
const catalog = new AgentCatalog();
|
|
1698
1699
|
catalog.load();
|
|
1699
1700
|
const installed = catalog.getInstalledAgent(nameOrId);
|
|
1700
1701
|
if (!installed) {
|
|
1701
|
-
const { suggestMatch } = await import("./suggest-
|
|
1702
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
1702
1703
|
const installedKeys = Object.keys(catalog.getInstalledEntries());
|
|
1703
1704
|
const suggestion = suggestMatch(nameOrId, installedKeys);
|
|
1704
1705
|
console.log(`
|
|
@@ -1742,15 +1743,15 @@ ACP-specific flags are automatically stripped.
|
|
|
1742
1743
|
}
|
|
1743
1744
|
}
|
|
1744
1745
|
async function cmdOnboard() {
|
|
1745
|
-
const { ConfigManager } = await import("./config-
|
|
1746
|
+
const { ConfigManager } = await import("./config-6S355X75.js");
|
|
1746
1747
|
const cm = new ConfigManager();
|
|
1747
|
-
const { runSetup } = await import("./setup-
|
|
1748
|
+
const { runSetup } = await import("./setup-3GQSYBE4.js");
|
|
1748
1749
|
await runSetup(cm, { skipRunMode: true });
|
|
1749
1750
|
}
|
|
1750
1751
|
async function cmdDefault(command2) {
|
|
1751
1752
|
const forceForeground = command2 === "--foreground";
|
|
1752
1753
|
if (command2 && !command2.startsWith("-")) {
|
|
1753
|
-
const { suggestMatch } = await import("./suggest-
|
|
1754
|
+
const { suggestMatch } = await import("./suggest-7D6B542M.js");
|
|
1754
1755
|
const topLevelCommands = [
|
|
1755
1756
|
"start",
|
|
1756
1757
|
"stop",
|
|
@@ -1776,17 +1777,17 @@ async function cmdDefault(command2) {
|
|
|
1776
1777
|
process.exit(1);
|
|
1777
1778
|
}
|
|
1778
1779
|
await checkAndPromptUpdate();
|
|
1779
|
-
const { ConfigManager } = await import("./config-
|
|
1780
|
+
const { ConfigManager } = await import("./config-6S355X75.js");
|
|
1780
1781
|
const cm = new ConfigManager();
|
|
1781
1782
|
if (!await cm.exists()) {
|
|
1782
|
-
const { runSetup } = await import("./setup-
|
|
1783
|
+
const { runSetup } = await import("./setup-3GQSYBE4.js");
|
|
1783
1784
|
const shouldStart = await runSetup(cm);
|
|
1784
1785
|
if (!shouldStart) process.exit(0);
|
|
1785
1786
|
}
|
|
1786
1787
|
await cm.load();
|
|
1787
1788
|
const config = cm.get();
|
|
1788
1789
|
if (!forceForeground && config.runMode === "daemon") {
|
|
1789
|
-
const { startDaemon, getPidPath } = await import("./daemon-
|
|
1790
|
+
const { startDaemon, getPidPath } = await import("./daemon-4CS6HMB5.js");
|
|
1790
1791
|
const result = startDaemon(getPidPath(), config.logging.logDir);
|
|
1791
1792
|
if ("error" in result) {
|
|
1792
1793
|
console.error(result.error);
|
|
@@ -1795,9 +1796,9 @@ async function cmdDefault(command2) {
|
|
|
1795
1796
|
console.log(`OpenACP daemon started (PID ${result.pid})`);
|
|
1796
1797
|
return;
|
|
1797
1798
|
}
|
|
1798
|
-
const { markRunning } = await import("./daemon-
|
|
1799
|
+
const { markRunning } = await import("./daemon-4CS6HMB5.js");
|
|
1799
1800
|
markRunning();
|
|
1800
|
-
const { startServer } = await import("./main-
|
|
1801
|
+
const { startServer } = await import("./main-ZK4MPMBG.js");
|
|
1801
1802
|
await startServer();
|
|
1802
1803
|
}
|
|
1803
1804
|
|
|
@@ -1828,7 +1829,7 @@ var commands = {
|
|
|
1828
1829
|
"tunnel": () => cmdTunnel(args),
|
|
1829
1830
|
"onboard": () => cmdOnboard(),
|
|
1830
1831
|
"--daemon-child": async () => {
|
|
1831
|
-
const { startServer } = await import("./main-
|
|
1832
|
+
const { startServer } = await import("./main-ZK4MPMBG.js");
|
|
1832
1833
|
await startServer();
|
|
1833
1834
|
}
|
|
1834
1835
|
};
|