@openacp/cli 0.6.0 → 0.6.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/README.md +11 -2
- package/dist/{chunk-MHFCZGRW.js → chunk-2KJC3ILH.js} +13 -3
- package/dist/{chunk-MHFCZGRW.js.map → chunk-2KJC3ILH.js.map} +1 -1
- package/dist/{chunk-DWQKUECJ.js → chunk-4LFDEW22.js} +42 -4
- package/dist/chunk-4LFDEW22.js.map +1 -0
- package/dist/{chunk-Z46LGZ7R.js → chunk-4TR5Y3MP.js} +18 -1
- package/dist/chunk-4TR5Y3MP.js.map +1 -0
- package/dist/{chunk-IURZ4QHG.js → chunk-7QJS2XBD.js} +2 -1
- package/dist/chunk-7QJS2XBD.js.map +1 -0
- package/dist/{chunk-3WPG7GXA.js → chunk-GINCOFNW.js} +2 -2
- package/dist/{chunk-437NLISU.js → chunk-IMILOCR5.js} +2 -2
- package/dist/{chunk-5NBWM7P6.js → chunk-LGQYTK55.js} +5 -1
- package/dist/chunk-LGQYTK55.js.map +1 -0
- package/dist/{chunk-V2V767XI.js → chunk-R3UJUOXI.js} +842 -162
- package/dist/chunk-R3UJUOXI.js.map +1 -0
- package/dist/{chunk-YYQXWA62.js → chunk-TOZQ3JFN.js} +2 -2
- package/dist/{chunk-6Q7PZWCL.js → chunk-UB7XUO7C.js} +3 -3
- package/dist/{chunk-SPX7CKWV.js → chunk-ZCHNAM3B.js} +2 -2
- package/dist/cli.js +19 -19
- package/dist/{config-KF2MQWAP.js → config-AK2W3E67.js} +2 -2
- package/dist/{config-editor-OTODXUF7.js → config-editor-VIA7A72X.js} +4 -4
- package/dist/{config-registry-SNKA2EH2.js → config-registry-QQOJ2GQP.js} +2 -2
- package/dist/{daemon-U6UC7OM4.js → daemon-G27YZUWB.js} +3 -3
- package/dist/{discord-SLLKRUP7.js → discord-2DKRH45T.js} +16 -6
- package/dist/discord-2DKRH45T.js.map +1 -0
- package/dist/doctor-AN6AZ3PF.js +9 -0
- package/dist/{doctor-DB5PRQ6D.js → doctor-CHCYUTV5.js} +4 -4
- package/dist/index.d.ts +320 -3
- package/dist/index.js +18 -10
- package/dist/{main-M6RH3SS5.js → main-56SPFYW4.js} +16 -16
- package/dist/{menu-J5YVH665.js → menu-XR2GET2B.js} +2 -2
- package/dist/{setup-LI5CKYDK.js → setup-IPWJCIJM.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-5NBWM7P6.js.map +0 -1
- package/dist/chunk-DWQKUECJ.js.map +0 -1
- package/dist/chunk-IURZ4QHG.js.map +0 -1
- package/dist/chunk-V2V767XI.js.map +0 -1
- package/dist/chunk-Z46LGZ7R.js.map +0 -1
- package/dist/discord-SLLKRUP7.js.map +0 -1
- package/dist/doctor-SYWNJFYK.js +0 -9
- /package/dist/{chunk-3WPG7GXA.js.map → chunk-GINCOFNW.js.map} +0 -0
- /package/dist/{chunk-437NLISU.js.map → chunk-IMILOCR5.js.map} +0 -0
- /package/dist/{chunk-YYQXWA62.js.map → chunk-TOZQ3JFN.js.map} +0 -0
- /package/dist/{chunk-6Q7PZWCL.js.map → chunk-UB7XUO7C.js.map} +0 -0
- /package/dist/{chunk-SPX7CKWV.js.map → chunk-ZCHNAM3B.js.map} +0 -0
- /package/dist/{config-KF2MQWAP.js.map → config-AK2W3E67.js.map} +0 -0
- /package/dist/{config-editor-OTODXUF7.js.map → config-editor-VIA7A72X.js.map} +0 -0
- /package/dist/{config-registry-SNKA2EH2.js.map → config-registry-QQOJ2GQP.js.map} +0 -0
- /package/dist/{daemon-U6UC7OM4.js.map → daemon-G27YZUWB.js.map} +0 -0
- /package/dist/{doctor-DB5PRQ6D.js.map → doctor-AN6AZ3PF.js.map} +0 -0
- /package/dist/{doctor-SYWNJFYK.js.map → doctor-CHCYUTV5.js.map} +0 -0
- /package/dist/{main-M6RH3SS5.js.map → main-56SPFYW4.js.map} +0 -0
- /package/dist/{menu-J5YVH665.js.map → menu-XR2GET2B.js.map} +0 -0
- /package/dist/{setup-LI5CKYDK.js.map → setup-IPWJCIJM.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
expandHome
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4LFDEW22.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-TOZQ3JFN.js.map
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
validateBotToken,
|
|
9
9
|
validateChatId,
|
|
10
10
|
validateDiscordToken
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2KJC3ILH.js";
|
|
12
12
|
import {
|
|
13
13
|
expandHome
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4LFDEW22.js";
|
|
15
15
|
|
|
16
16
|
// src/core/config-editor.ts
|
|
17
17
|
import { select, input } from "@inquirer/prompts";
|
|
@@ -706,4 +706,4 @@ function flattenToPaths(obj, prefix = "") {
|
|
|
706
706
|
export {
|
|
707
707
|
runConfigEditor
|
|
708
708
|
};
|
|
709
|
-
//# sourceMappingURL=chunk-
|
|
709
|
+
//# sourceMappingURL=chunk-UB7XUO7C.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ConfigSchema,
|
|
4
4
|
applyMigrations,
|
|
5
5
|
expandHome
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4LFDEW22.js";
|
|
7
7
|
|
|
8
8
|
// src/core/doctor/index.ts
|
|
9
9
|
import * as fs8 from "fs";
|
|
@@ -721,4 +721,4 @@ var DoctorEngine = class {
|
|
|
721
721
|
export {
|
|
722
722
|
DoctorEngine
|
|
723
723
|
};
|
|
724
|
-
//# sourceMappingURL=chunk-
|
|
724
|
+
//# sourceMappingURL=chunk-ZCHNAM3B.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-IMILOCR5.js";
|
|
7
|
+
import "./chunk-4LFDEW22.js";
|
|
8
8
|
import "./chunk-ESOPMQAY.js";
|
|
9
9
|
import {
|
|
10
10
|
apiCall,
|
|
@@ -771,8 +771,8 @@ Requires an existing config \u2014 run 'openacp' first to set up.
|
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
773
|
await checkAndPromptUpdate();
|
|
774
|
-
const { startDaemon, getPidPath } = await import("./daemon-
|
|
775
|
-
const { ConfigManager } = await import("./config-
|
|
774
|
+
const { startDaemon, getPidPath } = await import("./daemon-G27YZUWB.js");
|
|
775
|
+
const { ConfigManager } = await import("./config-AK2W3E67.js");
|
|
776
776
|
const cm = new ConfigManager();
|
|
777
777
|
if (await cm.exists()) {
|
|
778
778
|
await cm.load();
|
|
@@ -800,7 +800,7 @@ Sends a stop signal to the running OpenACP daemon process.
|
|
|
800
800
|
`);
|
|
801
801
|
return;
|
|
802
802
|
}
|
|
803
|
-
const { stopDaemon } = await import("./daemon-
|
|
803
|
+
const { stopDaemon } = await import("./daemon-G27YZUWB.js");
|
|
804
804
|
const result = await stopDaemon();
|
|
805
805
|
if (result.stopped) {
|
|
806
806
|
console.log(`OpenACP daemon stopped (was PID ${result.pid})`);
|
|
@@ -821,7 +821,7 @@ Shows whether the OpenACP daemon is running and its PID.
|
|
|
821
821
|
`);
|
|
822
822
|
return;
|
|
823
823
|
}
|
|
824
|
-
const { getStatus } = await import("./daemon-
|
|
824
|
+
const { getStatus } = await import("./daemon-G27YZUWB.js");
|
|
825
825
|
const status = getStatus();
|
|
826
826
|
if (status.running) {
|
|
827
827
|
console.log(`OpenACP is running (PID ${status.pid})`);
|
|
@@ -845,7 +845,7 @@ Log file location is configured in config (default: ~/.openacp/logs/).
|
|
|
845
845
|
return;
|
|
846
846
|
}
|
|
847
847
|
const { spawn } = await import("child_process");
|
|
848
|
-
const { ConfigManager, expandHome } = await import("./config-
|
|
848
|
+
const { ConfigManager, expandHome } = await import("./config-AK2W3E67.js");
|
|
849
849
|
const pathMod = await import("path");
|
|
850
850
|
const cm = new ConfigManager();
|
|
851
851
|
let logDir = "~/.openacp/logs";
|
|
@@ -915,7 +915,7 @@ the API for live updates. When stopped, edits config file directly.
|
|
|
915
915
|
console.error("Usage: openacp config set <path> <value>");
|
|
916
916
|
process.exit(1);
|
|
917
917
|
}
|
|
918
|
-
const { ConfigSchema } = await import("./config-
|
|
918
|
+
const { ConfigSchema } = await import("./config-AK2W3E67.js");
|
|
919
919
|
const topLevelKey = configPath.split(".")[0];
|
|
920
920
|
const validConfigKeys = Object.keys(ConfigSchema.shape);
|
|
921
921
|
if (!validConfigKeys.includes(topLevelKey)) {
|
|
@@ -947,7 +947,7 @@ the API for live updates. When stopped, edits config file directly.
|
|
|
947
947
|
console.log("Note: restart required for this change to take effect.");
|
|
948
948
|
}
|
|
949
949
|
} else {
|
|
950
|
-
const { ConfigManager: ConfigManager2 } = await import("./config-
|
|
950
|
+
const { ConfigManager: ConfigManager2 } = await import("./config-AK2W3E67.js");
|
|
951
951
|
const cm2 = new ConfigManager2();
|
|
952
952
|
if (!await cm2.exists()) {
|
|
953
953
|
console.error('No config found. Run "openacp" first to set up.');
|
|
@@ -960,8 +960,8 @@ the API for live updates. When stopped, edits config file directly.
|
|
|
960
960
|
}
|
|
961
961
|
return;
|
|
962
962
|
}
|
|
963
|
-
const { runConfigEditor } = await import("./config-editor-
|
|
964
|
-
const { ConfigManager } = await import("./config-
|
|
963
|
+
const { runConfigEditor } = await import("./config-editor-VIA7A72X.js");
|
|
964
|
+
const { ConfigManager } = await import("./config-AK2W3E67.js");
|
|
965
965
|
const cm = new ConfigManager();
|
|
966
966
|
if (!await cm.exists()) {
|
|
967
967
|
console.error('No config found. Run "openacp" first to set up.');
|
|
@@ -1000,7 +1000,7 @@ start fresh with the setup wizard. The daemon must be stopped first.
|
|
|
1000
1000
|
`);
|
|
1001
1001
|
return;
|
|
1002
1002
|
}
|
|
1003
|
-
const { getStatus } = await import("./daemon-
|
|
1003
|
+
const { getStatus } = await import("./daemon-G27YZUWB.js");
|
|
1004
1004
|
const status = getStatus();
|
|
1005
1005
|
if (status.running) {
|
|
1006
1006
|
console.error("OpenACP is running. Stop it first: openacp stop");
|
|
@@ -1220,7 +1220,7 @@ Fixable issues can be auto-repaired when not using --dry-run.
|
|
|
1220
1220
|
process.exit(1);
|
|
1221
1221
|
}
|
|
1222
1222
|
const dryRun = args2.includes("--dry-run");
|
|
1223
|
-
const { DoctorEngine } = await import("./doctor-
|
|
1223
|
+
const { DoctorEngine } = await import("./doctor-AN6AZ3PF.js");
|
|
1224
1224
|
const engine = new DoctorEngine({ dryRun });
|
|
1225
1225
|
console.log("\n\u{1FA7A} OpenACP Doctor\n");
|
|
1226
1226
|
const report = await engine.runAll();
|
|
@@ -1762,17 +1762,17 @@ async function cmdDefault(command2) {
|
|
|
1762
1762
|
process.exit(1);
|
|
1763
1763
|
}
|
|
1764
1764
|
await checkAndPromptUpdate();
|
|
1765
|
-
const { ConfigManager } = await import("./config-
|
|
1765
|
+
const { ConfigManager } = await import("./config-AK2W3E67.js");
|
|
1766
1766
|
const cm = new ConfigManager();
|
|
1767
1767
|
if (!await cm.exists()) {
|
|
1768
|
-
const { runSetup } = await import("./setup-
|
|
1768
|
+
const { runSetup } = await import("./setup-IPWJCIJM.js");
|
|
1769
1769
|
const shouldStart = await runSetup(cm);
|
|
1770
1770
|
if (!shouldStart) process.exit(0);
|
|
1771
1771
|
}
|
|
1772
1772
|
await cm.load();
|
|
1773
1773
|
const config = cm.get();
|
|
1774
1774
|
if (!forceForeground && config.runMode === "daemon") {
|
|
1775
|
-
const { startDaemon, getPidPath } = await import("./daemon-
|
|
1775
|
+
const { startDaemon, getPidPath } = await import("./daemon-G27YZUWB.js");
|
|
1776
1776
|
const result = startDaemon(getPidPath(), config.logging.logDir);
|
|
1777
1777
|
if ("error" in result) {
|
|
1778
1778
|
console.error(result.error);
|
|
@@ -1781,9 +1781,9 @@ async function cmdDefault(command2) {
|
|
|
1781
1781
|
console.log(`OpenACP daemon started (PID ${result.pid})`);
|
|
1782
1782
|
return;
|
|
1783
1783
|
}
|
|
1784
|
-
const { markRunning } = await import("./daemon-
|
|
1784
|
+
const { markRunning } = await import("./daemon-G27YZUWB.js");
|
|
1785
1785
|
markRunning();
|
|
1786
|
-
const { startServer } = await import("./main-
|
|
1786
|
+
const { startServer } = await import("./main-56SPFYW4.js");
|
|
1787
1787
|
await startServer();
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
@@ -1813,7 +1813,7 @@ var commands = {
|
|
|
1813
1813
|
"agents": () => cmdAgents(args),
|
|
1814
1814
|
"tunnel": () => cmdTunnel(args),
|
|
1815
1815
|
"--daemon-child": async () => {
|
|
1816
|
-
const { startServer } = await import("./main-
|
|
1816
|
+
const { startServer } = await import("./main-56SPFYW4.js");
|
|
1817
1817
|
await startServer();
|
|
1818
1818
|
}
|
|
1819
1819
|
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ConfigSchema,
|
|
4
4
|
PLUGINS_DIR,
|
|
5
5
|
expandHome
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4LFDEW22.js";
|
|
7
7
|
import "./chunk-ESOPMQAY.js";
|
|
8
8
|
export {
|
|
9
9
|
ConfigManager,
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
PLUGINS_DIR,
|
|
12
12
|
expandHome
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=config-
|
|
14
|
+
//# sourceMappingURL=config-AK2W3E67.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runConfigEditor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UB7XUO7C.js";
|
|
4
4
|
import "./chunk-PMGNLNSH.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-2KJC3ILH.js";
|
|
6
6
|
import "./chunk-JKBFUAJK.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-4LFDEW22.js";
|
|
8
8
|
import "./chunk-ESOPMQAY.js";
|
|
9
9
|
export {
|
|
10
10
|
runConfigEditor
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=config-editor-
|
|
12
|
+
//# sourceMappingURL=config-editor-VIA7A72X.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getSafeFields,
|
|
6
6
|
isHotReloadable,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4TR5Y3MP.js";
|
|
9
9
|
export {
|
|
10
10
|
CONFIG_REGISTRY,
|
|
11
11
|
getConfigValue,
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
isHotReloadable,
|
|
15
15
|
resolveOptions
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=config-registry-
|
|
17
|
+
//# sourceMappingURL=config-registry-QQOJ2GQP.js.map
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
startDaemon,
|
|
11
11
|
stopDaemon,
|
|
12
12
|
writePidFile
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-TOZQ3JFN.js";
|
|
14
|
+
import "./chunk-4LFDEW22.js";
|
|
15
15
|
import "./chunk-ESOPMQAY.js";
|
|
16
16
|
export {
|
|
17
17
|
clearRunning,
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
stopDaemon,
|
|
27
27
|
writePidFile
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=daemon-
|
|
29
|
+
//# sourceMappingURL=daemon-G27YZUWB.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
handleDoctor,
|
|
19
19
|
handleDoctorButton
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GINCOFNW.js";
|
|
21
21
|
import {
|
|
22
22
|
buildActionKeyboard,
|
|
23
23
|
detectAction,
|
|
@@ -45,9 +45,9 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
ChannelAdapter,
|
|
47
47
|
PRODUCT_GUIDE
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-LGQYTK55.js";
|
|
49
|
+
import "./chunk-ZCHNAM3B.js";
|
|
50
|
+
import "./chunk-4LFDEW22.js";
|
|
51
51
|
import {
|
|
52
52
|
log
|
|
53
53
|
} from "./chunk-ESOPMQAY.js";
|
|
@@ -1048,7 +1048,7 @@ async function handleMenuButton(interaction, adapter) {
|
|
|
1048
1048
|
break;
|
|
1049
1049
|
}
|
|
1050
1050
|
case "m:doctor": {
|
|
1051
|
-
const { runDoctorInline } = await import("./doctor-
|
|
1051
|
+
const { runDoctorInline } = await import("./doctor-CHCYUTV5.js");
|
|
1052
1052
|
await runDoctorInline(interaction, adapter);
|
|
1053
1053
|
break;
|
|
1054
1054
|
}
|
|
@@ -1926,6 +1926,16 @@ var DiscordAdapter = class extends ChannelAdapter {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
break;
|
|
1928
1928
|
}
|
|
1929
|
+
case "system_message": {
|
|
1930
|
+
try {
|
|
1931
|
+
await this.sendQueue.enqueue(
|
|
1932
|
+
() => thread.send({ content: content.text }),
|
|
1933
|
+
{ type: "other" }
|
|
1934
|
+
);
|
|
1935
|
+
} catch {
|
|
1936
|
+
}
|
|
1937
|
+
break;
|
|
1938
|
+
}
|
|
1929
1939
|
}
|
|
1930
1940
|
}
|
|
1931
1941
|
// ─── sendPermissionRequest ────────────────────────────────────────────────
|
|
@@ -2031,4 +2041,4 @@ ${notification.deepLink}`;
|
|
|
2031
2041
|
export {
|
|
2032
2042
|
DiscordAdapter
|
|
2033
2043
|
};
|
|
2034
|
-
//# sourceMappingURL=discord-
|
|
2044
|
+
//# sourceMappingURL=discord-2DKRH45T.js.map
|