@openacp/cli 2026.326.4 → 2026.327.2
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 +2 -2
- package/dist/{adapter-6ANPBSVU.js → adapter-LC2QSDAS.js} +4 -5
- package/dist/{adapter-PQGHVG4K.js → adapter-Y55NXX6I.js} +2 -2
- package/dist/{api-server-3PYLRBCN.js → api-server-7G3ZUZRM.js} +2 -2
- package/dist/{api-server-CHVSUDBX.js → api-server-CAYNPUF2.js} +2 -2
- package/dist/{chunk-UNJUWWQO.js → chunk-2YCW3QDV.js} +21 -14
- package/dist/chunk-2YCW3QDV.js.map +1 -0
- package/dist/{chunk-Y64XWMJ4.js → chunk-36YQ44D7.js} +2 -2
- package/dist/{chunk-UB2QB6DE.js → chunk-3ASUU6WW.js} +2 -2
- package/dist/{chunk-V5JT5TPD.js → chunk-4GMLGCF2.js} +2 -2
- package/dist/chunk-CDAUYTVP.js +41 -0
- package/dist/chunk-CDAUYTVP.js.map +1 -0
- package/dist/{chunk-Q6ZXJTZB.js → chunk-HUWOFP2H.js} +9 -17
- package/dist/chunk-HUWOFP2H.js.map +1 -0
- package/dist/{chunk-P4SNGQNI.js → chunk-KMMEFXIE.js} +2 -2
- package/dist/{chunk-RKB2ZK6S.js → chunk-LP45RCA4.js} +579 -153
- package/dist/chunk-LP45RCA4.js.map +1 -0
- package/dist/{chunk-L7YNNBI5.js → chunk-QAQDGPB4.js} +1 -75
- package/dist/chunk-QAQDGPB4.js.map +1 -0
- package/dist/{chunk-V2M243KZ.js → chunk-TRXBJEZ5.js} +55 -53
- package/dist/chunk-TRXBJEZ5.js.map +1 -0
- package/dist/{chunk-NBFIBGAT.js → chunk-UMT7RU77.js} +45 -118
- package/dist/chunk-UMT7RU77.js.map +1 -0
- package/dist/{chunk-FQEBWOZR.js → chunk-XIBG7LSL.js} +181 -128
- package/dist/chunk-XIBG7LSL.js.map +1 -0
- package/dist/cli.js +155 -49
- package/dist/cli.js.map +1 -1
- package/dist/{config-editor-HNEKXRLQ.js → config-editor-3IKBPZA7.js} +2 -2
- package/dist/{core-plugins-VEUNFTMB.js → core-plugins-ROU4GPLT.js} +8 -12
- package/dist/{dev-loader-RDC5E2CW.js → dev-loader-DRU3R7ZM.js} +7 -18
- package/dist/dev-loader-DRU3R7ZM.js.map +1 -0
- package/dist/{doctor-H72BZOPA.js → doctor-QZQAP46W.js} +2 -2
- package/dist/index.d.ts +128 -66
- package/dist/index.js +41 -20
- package/dist/index.js.map +1 -1
- package/dist/{integrate-5C6KSU6D.js → integrate-G6CVXTGT.js} +3 -4
- package/dist/integrate-G6CVXTGT.js.map +1 -0
- package/dist/{main-T5WVCCFN.js → main-UVTZ46WP.js} +39 -185
- package/dist/main-UVTZ46WP.js.map +1 -0
- package/dist/plugin-create-5HQRF2ID.js +967 -0
- package/dist/plugin-create-5HQRF2ID.js.map +1 -0
- package/dist/plugin-installer-GQ2P3Q3E.js +23 -0
- package/dist/plugin-installer-GQ2P3Q3E.js.map +1 -0
- package/dist/plugin-search-HQ4WQKOF.js +40 -0
- package/dist/plugin-search-HQ4WQKOF.js.map +1 -0
- package/dist/{post-upgrade-XLHZ6ZB7.js → post-upgrade-3ADZRMYJ.js} +2 -2
- package/dist/registry-client-AVGRE4CF.js +8 -0
- package/dist/{setup-BAI2F24H.js → setup-EYAFK2WI.js} +77 -50
- package/dist/setup-EYAFK2WI.js.map +1 -0
- package/dist/{slack-KH7E3VBS.js → slack-37ZWBDUI.js} +2 -2
- package/dist/{telegram-ZDC3JQF2.js → telegram-2ZCCCZIY.js} +2 -2
- package/dist/{tunnel-M47I7H4B.js → tunnel-45HA72MB.js} +2 -2
- package/dist/{tunnel-service-WADYHREX.js → tunnel-service-QJPUYEKU.js} +11 -3
- package/dist/tunnel-service-QJPUYEKU.js.map +1 -0
- package/package.json +2 -3
- package/dist/action-detect-QPA775HB.js +0 -16
- package/dist/adapter-77ZCVABT.js +0 -2394
- package/dist/adapter-77ZCVABT.js.map +0 -1
- package/dist/admin-GBPZFFAU.js +0 -23
- package/dist/agents-BWU4MRRD.js +0 -15
- package/dist/chunk-2CX4IEEC.js +0 -124
- package/dist/chunk-2CX4IEEC.js.map +0 -1
- package/dist/chunk-4KGLKKQK.js +0 -298
- package/dist/chunk-4KGLKKQK.js.map +0 -1
- package/dist/chunk-5ZOFBTOR.js +0 -553
- package/dist/chunk-5ZOFBTOR.js.map +0 -1
- package/dist/chunk-6RXVEXF3.js +0 -23
- package/dist/chunk-6RXVEXF3.js.map +0 -1
- package/dist/chunk-FQEBWOZR.js.map +0 -1
- package/dist/chunk-GJOY37U7.js +0 -265
- package/dist/chunk-GJOY37U7.js.map +0 -1
- package/dist/chunk-HVBNCPAY.js +0 -71
- package/dist/chunk-HVBNCPAY.js.map +0 -1
- package/dist/chunk-I3CGU5W7.js +0 -134
- package/dist/chunk-I3CGU5W7.js.map +0 -1
- package/dist/chunk-L7YNNBI5.js.map +0 -1
- package/dist/chunk-MTSDOSXS.js +0 -219
- package/dist/chunk-MTSDOSXS.js.map +0 -1
- package/dist/chunk-NAM4ERUW.js +0 -203
- package/dist/chunk-NAM4ERUW.js.map +0 -1
- package/dist/chunk-NBFIBGAT.js.map +0 -1
- package/dist/chunk-O5RG4YZY.js +0 -122
- package/dist/chunk-O5RG4YZY.js.map +0 -1
- package/dist/chunk-Q6ZXJTZB.js.map +0 -1
- package/dist/chunk-QSDZDHNS.js +0 -145
- package/dist/chunk-QSDZDHNS.js.map +0 -1
- package/dist/chunk-RKB2ZK6S.js.map +0 -1
- package/dist/chunk-UNJUWWQO.js.map +0 -1
- package/dist/chunk-V2M243KZ.js.map +0 -1
- package/dist/chunk-WAAD23KY.js +0 -222
- package/dist/chunk-WAAD23KY.js.map +0 -1
- package/dist/chunk-WVLDNYOJ.js +0 -150
- package/dist/chunk-WVLDNYOJ.js.map +0 -1
- package/dist/dev-loader-RDC5E2CW.js.map +0 -1
- package/dist/discord-NOJQ5PZO.js +0 -8
- package/dist/doctor-RF6BHMCC.js +0 -15
- package/dist/doctor-RF6BHMCC.js.map +0 -1
- package/dist/integrate-5C6KSU6D.js.map +0 -1
- package/dist/main-T5WVCCFN.js.map +0 -1
- package/dist/new-session-AVQCNXRG.js +0 -17
- package/dist/new-session-AVQCNXRG.js.map +0 -1
- package/dist/plugin-create-AQ3B22BZ.js +0 -334
- package/dist/plugin-create-AQ3B22BZ.js.map +0 -1
- package/dist/session-KZFA6Z26.js +0 -20
- package/dist/session-KZFA6Z26.js.map +0 -1
- package/dist/settings-MFYM7CZO.js +0 -14
- package/dist/settings-MFYM7CZO.js.map +0 -1
- package/dist/setup-BAI2F24H.js.map +0 -1
- package/dist/slack-KH7E3VBS.js.map +0 -1
- package/dist/telegram-ZDC3JQF2.js.map +0 -1
- package/dist/tunnel-M47I7H4B.js.map +0 -1
- package/dist/tunnel-service-WADYHREX.js.map +0 -1
- package/dist/usage-WYNK6ZC5.js +0 -10
- package/dist/usage-WYNK6ZC5.js.map +0 -1
- package/dist/validators-6CLEZUBD.js +0 -8
- package/dist/validators-6CLEZUBD.js.map +0 -1
- /package/dist/{action-detect-QPA775HB.js.map → adapter-LC2QSDAS.js.map} +0 -0
- /package/dist/{adapter-PQGHVG4K.js.map → adapter-Y55NXX6I.js.map} +0 -0
- /package/dist/{adapter-6ANPBSVU.js.map → api-server-7G3ZUZRM.js.map} +0 -0
- /package/dist/{admin-GBPZFFAU.js.map → api-server-CAYNPUF2.js.map} +0 -0
- /package/dist/{chunk-Y64XWMJ4.js.map → chunk-36YQ44D7.js.map} +0 -0
- /package/dist/{chunk-UB2QB6DE.js.map → chunk-3ASUU6WW.js.map} +0 -0
- /package/dist/{chunk-V5JT5TPD.js.map → chunk-4GMLGCF2.js.map} +0 -0
- /package/dist/{chunk-P4SNGQNI.js.map → chunk-KMMEFXIE.js.map} +0 -0
- /package/dist/{agents-BWU4MRRD.js.map → config-editor-3IKBPZA7.js.map} +0 -0
- /package/dist/{api-server-3PYLRBCN.js.map → core-plugins-ROU4GPLT.js.map} +0 -0
- /package/dist/{api-server-CHVSUDBX.js.map → doctor-QZQAP46W.js.map} +0 -0
- /package/dist/{post-upgrade-XLHZ6ZB7.js.map → post-upgrade-3ADZRMYJ.js.map} +0 -0
- /package/dist/{config-editor-HNEKXRLQ.js.map → registry-client-AVGRE4CF.js.map} +0 -0
- /package/dist/{core-plugins-VEUNFTMB.js.map → slack-37ZWBDUI.js.map} +0 -0
- /package/dist/{discord-NOJQ5PZO.js.map → telegram-2ZCCCZIY.js.map} +0 -0
- /package/dist/{doctor-H72BZOPA.js.map → tunnel-45HA72MB.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runConfigEditor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UMT7RU77.js";
|
|
4
4
|
import "./chunk-PPSMUECX.js";
|
|
5
5
|
import "./chunk-QVMEF6FB.js";
|
|
6
6
|
import "./chunk-XMMAGAT4.js";
|
|
@@ -8,4 +8,4 @@ import "./chunk-VUNV25KB.js";
|
|
|
8
8
|
export {
|
|
9
9
|
runConfigEditor
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=config-editor-
|
|
11
|
+
//# sourceMappingURL=config-editor-3IKBPZA7.js.map
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
corePlugins
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HUWOFP2H.js";
|
|
4
|
+
import "./chunk-36YQ44D7.js";
|
|
5
|
+
import "./chunk-3ASUU6WW.js";
|
|
6
|
+
import "./chunk-SNPYTMPR.js";
|
|
7
|
+
import "./chunk-KMMEFXIE.js";
|
|
8
|
+
import "./chunk-4GMLGCF2.js";
|
|
9
9
|
import "./chunk-5OCGO27U.js";
|
|
10
10
|
import "./chunk-YEULD3SG.js";
|
|
11
11
|
import "./chunk-ZHGPZBS4.js";
|
|
12
|
-
import "./chunk-2CX4IEEC.js";
|
|
13
12
|
import "./chunk-AD3X6DGK.js";
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-WXVT3AOY.js";
|
|
15
14
|
import "./chunk-LGFWH3AE.js";
|
|
16
15
|
import "./chunk-BLQUXO7S.js";
|
|
17
16
|
import "./chunk-QWP76EBW.js";
|
|
18
17
|
import "./chunk-APS6UEFU.js";
|
|
19
|
-
import "./chunk-WAAD23KY.js";
|
|
20
18
|
import "./chunk-WIIZNPCR.js";
|
|
21
|
-
import "./chunk-WXVT3AOY.js";
|
|
22
|
-
import "./chunk-XMMAGAT4.js";
|
|
23
19
|
import "./chunk-VUNV25KB.js";
|
|
24
20
|
export {
|
|
25
21
|
corePlugins
|
|
26
22
|
};
|
|
27
|
-
//# sourceMappingURL=core-plugins-
|
|
23
|
+
//# sourceMappingURL=core-plugins-ROU4GPLT.js.map
|
|
@@ -3,7 +3,6 @@ import "./chunk-VUNV25KB.js";
|
|
|
3
3
|
// src/core/plugin/dev-loader.ts
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import path from "path";
|
|
6
|
-
import os from "os";
|
|
7
6
|
var loadCounter = 0;
|
|
8
7
|
var DevPluginLoader = class {
|
|
9
8
|
pluginPath;
|
|
@@ -19,23 +18,13 @@ var DevPluginLoader = class {
|
|
|
19
18
|
if (!fs.existsSync(distIndex)) {
|
|
20
19
|
throw new Error(`Built plugin not found at ${distIndex}. Run 'npm run build' first.`);
|
|
21
20
|
}
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const mod = await import(`file://${tmpFile}`);
|
|
28
|
-
const plugin = mod.default;
|
|
29
|
-
if (!plugin || !plugin.name || !plugin.setup) {
|
|
30
|
-
throw new Error(`Invalid plugin at ${distIndex}. Must export default OpenACPPlugin with name and setup().`);
|
|
31
|
-
}
|
|
32
|
-
return plugin;
|
|
33
|
-
} finally {
|
|
34
|
-
try {
|
|
35
|
-
fs.unlinkSync(tmpFile);
|
|
36
|
-
} catch {
|
|
37
|
-
}
|
|
21
|
+
const cacheBuster = `v=${Date.now()}-${++loadCounter}`;
|
|
22
|
+
const mod = await import(`file://${distIndex}?${cacheBuster}`);
|
|
23
|
+
const plugin = mod.default;
|
|
24
|
+
if (!plugin || !plugin.name || !plugin.setup) {
|
|
25
|
+
throw new Error(`Invalid plugin at ${distIndex}. Must export default OpenACPPlugin with name and setup().`);
|
|
38
26
|
}
|
|
27
|
+
return plugin;
|
|
39
28
|
}
|
|
40
29
|
getPluginPath() {
|
|
41
30
|
return this.pluginPath;
|
|
@@ -47,4 +36,4 @@ var DevPluginLoader = class {
|
|
|
47
36
|
export {
|
|
48
37
|
DevPluginLoader
|
|
49
38
|
};
|
|
50
|
-
//# sourceMappingURL=dev-loader-
|
|
39
|
+
//# sourceMappingURL=dev-loader-DRU3R7ZM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/plugin/dev-loader.ts"],"sourcesContent":["import fs from 'node:fs'\nimport path from 'node:path'\nimport type { OpenACPPlugin } from './types.js'\n\nlet loadCounter = 0\n\nexport class DevPluginLoader {\n private pluginPath: string\n\n constructor(pluginPath: string) {\n this.pluginPath = path.resolve(pluginPath)\n }\n\n async load(): Promise<OpenACPPlugin> {\n const distIndex = path.join(this.pluginPath, 'dist', 'index.js')\n const srcIndex = path.join(this.pluginPath, 'src', 'index.ts')\n\n if (!fs.existsSync(distIndex) && !fs.existsSync(srcIndex)) {\n throw new Error(`Plugin not found at ${this.pluginPath}. Expected dist/index.js or src/index.ts`)\n }\n\n if (!fs.existsSync(distIndex)) {\n throw new Error(`Built plugin not found at ${distIndex}. Run 'npm run build' first.`)\n }\n\n // Node.js caches ESM imports by URL. Use a unique query string to bust\n // the cache on each reload while keeping the file in its original directory\n // so that relative imports (e.g., './adapter.js') still resolve correctly.\n const cacheBuster = `v=${Date.now()}-${++loadCounter}`\n const mod = await import(`file://${distIndex}?${cacheBuster}`)\n const plugin = mod.default as OpenACPPlugin\n\n if (!plugin || !plugin.name || !plugin.setup) {\n throw new Error(`Invalid plugin at ${distIndex}. Must export default OpenACPPlugin with name and setup().`)\n }\n\n return plugin\n }\n\n getPluginPath(): string {\n return this.pluginPath\n }\n\n getDistPath(): string {\n return path.join(this.pluginPath, 'dist')\n }\n}\n"],"mappings":";;;AAAA,OAAO,QAAQ;AACf,OAAO,UAAU;AAGjB,IAAI,cAAc;AAEX,IAAM,kBAAN,MAAsB;AAAA,EACnB;AAAA,EAER,YAAY,YAAoB;AAC9B,SAAK,aAAa,KAAK,QAAQ,UAAU;AAAA,EAC3C;AAAA,EAEA,MAAM,OAA+B;AACnC,UAAM,YAAY,KAAK,KAAK,KAAK,YAAY,QAAQ,UAAU;AAC/D,UAAM,WAAW,KAAK,KAAK,KAAK,YAAY,OAAO,UAAU;AAE7D,QAAI,CAAC,GAAG,WAAW,SAAS,KAAK,CAAC,GAAG,WAAW,QAAQ,GAAG;AACzD,YAAM,IAAI,MAAM,uBAAuB,KAAK,UAAU,0CAA0C;AAAA,IAClG;AAEA,QAAI,CAAC,GAAG,WAAW,SAAS,GAAG;AAC7B,YAAM,IAAI,MAAM,6BAA6B,SAAS,8BAA8B;AAAA,IACtF;AAKA,UAAM,cAAc,KAAK,KAAK,IAAI,CAAC,IAAI,EAAE,WAAW;AACpD,UAAM,MAAM,MAAM,OAAO,UAAU,SAAS,IAAI,WAAW;AAC3D,UAAM,SAAS,IAAI;AAEnB,QAAI,CAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,OAAO,OAAO;AAC5C,YAAM,IAAI,MAAM,qBAAqB,SAAS,4DAA4D;AAAA,IAC5G;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,gBAAwB;AACtB,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,cAAsB;AACpB,WAAO,KAAK,KAAK,KAAK,YAAY,MAAM;AAAA,EAC1C;AACF;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DoctorEngine
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QAQDGPB4.js";
|
|
4
4
|
import "./chunk-QVMEF6FB.js";
|
|
5
5
|
import "./chunk-XMMAGAT4.js";
|
|
6
6
|
import "./chunk-VUNV25KB.js";
|
|
7
7
|
export {
|
|
8
8
|
DoctorEngine
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=doctor-
|
|
10
|
+
//# sourceMappingURL=doctor-QZQAP46W.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -261,17 +261,16 @@ interface UsageRecord {
|
|
|
261
261
|
};
|
|
262
262
|
timestamp: string;
|
|
263
263
|
}
|
|
264
|
-
interface
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
skillMsgId?: string;
|
|
264
|
+
interface UsageRecordEvent {
|
|
265
|
+
sessionId: string;
|
|
266
|
+
agentName: string;
|
|
267
|
+
timestamp: string;
|
|
268
|
+
tokensUsed: number;
|
|
269
|
+
contextSize: number;
|
|
270
|
+
cost?: {
|
|
271
|
+
amount: number;
|
|
272
|
+
currency: string;
|
|
273
|
+
};
|
|
275
274
|
}
|
|
276
275
|
interface SessionMode {
|
|
277
276
|
id: string;
|
|
@@ -1475,7 +1474,6 @@ declare class Session extends TypedEmitter<SessionEvents> {
|
|
|
1475
1474
|
private maybeTranscribeAudio;
|
|
1476
1475
|
private processTTSResponse;
|
|
1477
1476
|
private autoName;
|
|
1478
|
-
generateSummary(timeoutMs?: number): Promise<string>;
|
|
1479
1477
|
/** Fire-and-forget warm-up: primes model cache while user types their first message */
|
|
1480
1478
|
warmup(): Promise<void>;
|
|
1481
1479
|
private runWarmup;
|
|
@@ -1887,7 +1885,6 @@ interface UsageService {
|
|
|
1887
1885
|
percent: number;
|
|
1888
1886
|
warning?: string;
|
|
1889
1887
|
}>;
|
|
1890
|
-
getSummary(period: string): Promise<UsageSummary>;
|
|
1891
1888
|
}
|
|
1892
1889
|
interface TTSProvider {
|
|
1893
1890
|
synthesize(text: string, opts?: {
|
|
@@ -2019,6 +2016,7 @@ interface EventBusEvents {
|
|
|
2019
2016
|
text: string;
|
|
2020
2017
|
attachments?: unknown[];
|
|
2021
2018
|
}) => void;
|
|
2019
|
+
"usage:recorded": (data: UsageRecordEvent) => void;
|
|
2022
2020
|
}
|
|
2023
2021
|
declare class EventBus extends TypedEmitter<EventBusEvents> {
|
|
2024
2022
|
}
|
|
@@ -2084,47 +2082,6 @@ declare class SessionBridge {
|
|
|
2084
2082
|
private wireLifecycle;
|
|
2085
2083
|
}
|
|
2086
2084
|
|
|
2087
|
-
declare class UsageStore {
|
|
2088
|
-
private filePath;
|
|
2089
|
-
private retentionDays;
|
|
2090
|
-
private records;
|
|
2091
|
-
private debounceTimer;
|
|
2092
|
-
private cleanupInterval;
|
|
2093
|
-
private flushHandler;
|
|
2094
|
-
constructor(filePath: string, retentionDays: number);
|
|
2095
|
-
append(record: UsageRecord): void;
|
|
2096
|
-
query(period: "today" | "week" | "month" | "all"): UsageSummary;
|
|
2097
|
-
getMonthlyTotal(): {
|
|
2098
|
-
totalCost: number;
|
|
2099
|
-
currency: string;
|
|
2100
|
-
};
|
|
2101
|
-
cleanup(): void;
|
|
2102
|
-
flushSync(): void;
|
|
2103
|
-
destroy(): void;
|
|
2104
|
-
private load;
|
|
2105
|
-
private getCutoff;
|
|
2106
|
-
private scheduleDiskWrite;
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
declare class UsageBudget {
|
|
2110
|
-
private store;
|
|
2111
|
-
private config;
|
|
2112
|
-
private now;
|
|
2113
|
-
private lastNotifiedStatus;
|
|
2114
|
-
private lastNotifiedMonth;
|
|
2115
|
-
constructor(store: UsageStore, config: UsageConfig, now?: () => Date);
|
|
2116
|
-
check(): {
|
|
2117
|
-
status: "ok" | "warning" | "exceeded";
|
|
2118
|
-
message?: string;
|
|
2119
|
-
};
|
|
2120
|
-
getStatus(): {
|
|
2121
|
-
status: "ok" | "warning" | "exceeded";
|
|
2122
|
-
used: number;
|
|
2123
|
-
budget: number;
|
|
2124
|
-
percent: number;
|
|
2125
|
-
};
|
|
2126
|
-
}
|
|
2127
|
-
|
|
2128
2085
|
interface TunnelEntry {
|
|
2129
2086
|
port: number;
|
|
2130
2087
|
type: 'system' | 'user';
|
|
@@ -2195,8 +2152,7 @@ interface SessionCreateParams {
|
|
|
2195
2152
|
initialName?: string;
|
|
2196
2153
|
}
|
|
2197
2154
|
interface SideEffectDeps {
|
|
2198
|
-
|
|
2199
|
-
usageBudget?: UsageBudget | null;
|
|
2155
|
+
eventBus: EventBus;
|
|
2200
2156
|
notificationManager: NotificationManager;
|
|
2201
2157
|
tunnelService?: TunnelService;
|
|
2202
2158
|
}
|
|
@@ -2316,6 +2272,7 @@ declare class LifecycleManager {
|
|
|
2316
2272
|
get loadedPlugins(): string[];
|
|
2317
2273
|
get failedPlugins(): string[];
|
|
2318
2274
|
constructor(opts?: LifecycleManagerOpts);
|
|
2275
|
+
private getPluginLogger;
|
|
2319
2276
|
boot(plugins: OpenACPPlugin[]): Promise<void>;
|
|
2320
2277
|
unloadPlugin(name: string): Promise<void>;
|
|
2321
2278
|
shutdown(): Promise<void>;
|
|
@@ -2396,21 +2353,12 @@ declare class OpenACPCore {
|
|
|
2396
2353
|
get fileService(): FileServiceInterface;
|
|
2397
2354
|
get speechService(): SpeechService;
|
|
2398
2355
|
get contextManager(): ContextManager;
|
|
2399
|
-
get usageStore(): UsageStore | null;
|
|
2400
|
-
get usageBudget(): UsageBudget | null;
|
|
2401
2356
|
constructor(configManager: ConfigManager$1);
|
|
2402
2357
|
get tunnelService(): TunnelService | undefined;
|
|
2403
2358
|
set tunnelService(service: TunnelService | undefined);
|
|
2404
2359
|
registerAdapter(name: string, adapter: IChannelAdapter): void;
|
|
2405
2360
|
start(): Promise<void>;
|
|
2406
2361
|
stop(): Promise<void>;
|
|
2407
|
-
summarizeSession(sessionId: string): Promise<{
|
|
2408
|
-
ok: true;
|
|
2409
|
-
summary: string;
|
|
2410
|
-
} | {
|
|
2411
|
-
ok: false;
|
|
2412
|
-
error: string;
|
|
2413
|
-
}>;
|
|
2414
2362
|
archiveSession(sessionId: string): Promise<{
|
|
2415
2363
|
ok: true;
|
|
2416
2364
|
} | {
|
|
@@ -2644,6 +2592,8 @@ declare class EntireProvider implements ContextProvider {
|
|
|
2644
2592
|
}
|
|
2645
2593
|
|
|
2646
2594
|
type DisplayVerbosity = "low" | "medium" | "high";
|
|
2595
|
+
declare const STATUS_ICONS: Record<string, string>;
|
|
2596
|
+
declare const KIND_ICONS: Record<string, string>;
|
|
2647
2597
|
interface ViewerLinks {
|
|
2648
2598
|
file?: string;
|
|
2649
2599
|
diff?: string;
|
|
@@ -2661,6 +2611,9 @@ interface ToolCallMeta {
|
|
|
2661
2611
|
displayTitle?: string;
|
|
2662
2612
|
displayKind?: string;
|
|
2663
2613
|
}
|
|
2614
|
+
interface ToolUpdateMeta extends ToolCallMeta {
|
|
2615
|
+
status: string;
|
|
2616
|
+
}
|
|
2664
2617
|
|
|
2665
2618
|
interface RenderedMessage<TComponents = unknown> {
|
|
2666
2619
|
body: string;
|
|
@@ -2887,6 +2840,115 @@ declare class ActivityTracker {
|
|
|
2887
2840
|
private stopRefresh;
|
|
2888
2841
|
}
|
|
2889
2842
|
|
|
2843
|
+
declare function progressBar(ratio: number, length?: number): string;
|
|
2844
|
+
declare function formatTokens(n: number): string;
|
|
2845
|
+
declare function stripCodeFences(text: string): string;
|
|
2846
|
+
declare function truncateContent(text: string, maxLen: number): string;
|
|
2847
|
+
declare function splitMessage(text: string, maxLength: number): string[];
|
|
2848
|
+
|
|
2849
|
+
declare function extractContentText(content: unknown, depth?: number): string;
|
|
2850
|
+
declare function formatToolSummary(name: string, rawInput: unknown, displaySummary?: string): string;
|
|
2851
|
+
declare function formatToolTitle(name: string, rawInput: unknown, displayTitle?: string): string;
|
|
2852
|
+
declare function resolveToolIcon(tool: {
|
|
2853
|
+
status?: string;
|
|
2854
|
+
displayKind?: string;
|
|
2855
|
+
kind?: string;
|
|
2856
|
+
}): string;
|
|
2857
|
+
|
|
2858
|
+
interface RegisteredCommand extends CommandDef {
|
|
2859
|
+
/** Scope extracted from pluginName, e.g. '@openacp/speech' → 'speech' */
|
|
2860
|
+
scope?: string;
|
|
2861
|
+
}
|
|
2862
|
+
/**
|
|
2863
|
+
* Central command registry with namespace resolution and adapter-specific overrides.
|
|
2864
|
+
*
|
|
2865
|
+
* Namespace rules:
|
|
2866
|
+
* - System commands always own the short name.
|
|
2867
|
+
* - Among plugins, the first to register wins the short name.
|
|
2868
|
+
* - Every plugin command also gets a qualified name: `scope:name`.
|
|
2869
|
+
* - Adapter plugins (@openacp/telegram, @openacp/discord, @openacp/slack)
|
|
2870
|
+
* registering a command that already exists → stored as an override
|
|
2871
|
+
* keyed by `channelId:commandName`, used when channelId matches.
|
|
2872
|
+
*/
|
|
2873
|
+
declare class CommandRegistry {
|
|
2874
|
+
/** Main registry: short names + qualified names → RegisteredCommand */
|
|
2875
|
+
private commands;
|
|
2876
|
+
/** Adapter-specific overrides: `channelId:commandName` → RegisteredCommand */
|
|
2877
|
+
private overrides;
|
|
2878
|
+
private static ADAPTER_SCOPES;
|
|
2879
|
+
/**
|
|
2880
|
+
* Register a command definition.
|
|
2881
|
+
* @param def - Command definition
|
|
2882
|
+
* @param pluginName - Plugin that owns the command (set automatically by PluginContext)
|
|
2883
|
+
*/
|
|
2884
|
+
register(def: CommandDef, pluginName?: string): void;
|
|
2885
|
+
/** Retrieve a command by name (short or qualified). */
|
|
2886
|
+
get(name: string): RegisteredCommand | undefined;
|
|
2887
|
+
/** Remove a command by short name. Also removes its qualified name entry. */
|
|
2888
|
+
unregister(name: string): void;
|
|
2889
|
+
/** Remove all commands registered by a given plugin. */
|
|
2890
|
+
unregisterByPlugin(pluginName: string): void;
|
|
2891
|
+
/** Return all unique commands (deduplicated — each command appears once). */
|
|
2892
|
+
getAll(): RegisteredCommand[];
|
|
2893
|
+
/** Filter commands by category. */
|
|
2894
|
+
getByCategory(category: 'system' | 'plugin'): RegisteredCommand[];
|
|
2895
|
+
/**
|
|
2896
|
+
* Parse and execute a command string.
|
|
2897
|
+
* @param commandString - Full command string, e.g. "/greet hello world"
|
|
2898
|
+
* @param baseArgs - Base arguments (channelId, userId, etc.)
|
|
2899
|
+
* @returns CommandResponse
|
|
2900
|
+
*/
|
|
2901
|
+
execute(commandString: string, baseArgs: CommandArgs): Promise<CommandResponse>;
|
|
2902
|
+
/** Extract scope from plugin name: '@openacp/speech' → 'speech', 'my-plugin' → 'my-plugin' */
|
|
2903
|
+
static extractScope(pluginName: string): string;
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
interface CheckResult {
|
|
2907
|
+
status: "pass" | "warn" | "fail";
|
|
2908
|
+
message: string;
|
|
2909
|
+
fixable?: boolean;
|
|
2910
|
+
fixRisk?: "safe" | "risky";
|
|
2911
|
+
fix?: () => Promise<FixResult>;
|
|
2912
|
+
}
|
|
2913
|
+
interface FixResult {
|
|
2914
|
+
success: boolean;
|
|
2915
|
+
message: string;
|
|
2916
|
+
}
|
|
2917
|
+
interface DoctorReport {
|
|
2918
|
+
categories: CategoryResult[];
|
|
2919
|
+
summary: {
|
|
2920
|
+
passed: number;
|
|
2921
|
+
warnings: number;
|
|
2922
|
+
failed: number;
|
|
2923
|
+
fixed: number;
|
|
2924
|
+
};
|
|
2925
|
+
pendingFixes: PendingFix[];
|
|
2926
|
+
}
|
|
2927
|
+
interface CategoryResult {
|
|
2928
|
+
name: string;
|
|
2929
|
+
results: CheckResult[];
|
|
2930
|
+
}
|
|
2931
|
+
interface PendingFix {
|
|
2932
|
+
category: string;
|
|
2933
|
+
message: string;
|
|
2934
|
+
fix: () => Promise<FixResult>;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
declare class DoctorEngine {
|
|
2938
|
+
private dryRun;
|
|
2939
|
+
constructor(options?: {
|
|
2940
|
+
dryRun?: boolean;
|
|
2941
|
+
});
|
|
2942
|
+
runAll(): Promise<DoctorReport>;
|
|
2943
|
+
private buildContext;
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
/**
|
|
2947
|
+
* OpenACP Product Guide — comprehensive reference for the AI assistant.
|
|
2948
|
+
* The assistant reads this at runtime to answer user questions about features.
|
|
2949
|
+
*/
|
|
2950
|
+
declare const PRODUCT_GUIDE = "\n# OpenACP \u2014 Product Guide\n\nOpenACP lets you chat with AI coding agents (like Claude Code) through messaging platforms (Telegram, Discord).\nYou type messages in your chat platform, the agent reads/writes/runs code in your project folder, and results stream back in real time.\n\n---\n\n## Quick Start\n\n1. Start OpenACP: `openacp` (or `openacp start` for background daemon)\n2. Open your messaging platform (Telegram group or Discord server) \u2014 you'll see the Assistant topic/thread\n3. Tap/click \uD83C\uDD95 New Session or type /new\n4. Pick an agent and a project folder\n5. Chat in the session topic/thread \u2014 the agent works on your code\n\n---\n\n## Core Concepts\n\n### Sessions\nA session = one conversation with one AI agent working in one project folder.\nEach session gets its own topic (Telegram) or forum thread (Discord). Chat there to give instructions to the agent.\n\n### Agents\nAn agent is an AI coding tool (e.g., Claude Code, Gemini, Cursor, Codex, etc.).\nOpenACP supports 28+ agents from the official ACP Registry (agentclientprotocol.com).\nYou can install multiple agents and choose which one to use per session.\nThe default agent is used when you don't specify one.\n\n### Agent Management\n- Browse agents: `/agents` in your chat platform or `openacp agents` in CLI\n- Install: tap the install button in /agents, or `openacp agents install <name>`\n- Uninstall: `openacp agents uninstall <name>`\n- Setup/login: `openacp agents run <name> -- <args>` (e.g., `openacp agents run gemini -- auth login`)\n- Details: `openacp agents info <name>` shows version, dependencies, and setup steps\n\nSome agents need additional setup before they can be used:\n- Claude: requires `claude login`\n- Gemini: requires `openacp agents run gemini -- auth login`\n- Codex: requires setting `OPENAI_API_KEY` environment variable\n- GitHub Copilot: requires `openacp agents run copilot -- auth login`\n\nAgents are installed in three ways depending on the agent:\n- **npx** \u2014 Node.js agents, downloaded automatically on first use\n- **uvx** \u2014 Python agents, downloaded automatically on first use\n- **binary** \u2014 Platform-specific binaries, downloaded to `~/.openacp/agents/`\n\n### Project Folder (Workspace)\nThe directory where the agent reads, writes, and runs code.\nWhen creating a session, you choose which folder the agent works in.\nYou can type a full path like `~/code/my-project` or just a name like `my-project` (it becomes `<base-dir>/my-project`).\n\n### System Topics\n- **Assistant** \u2014 Always-on helper that can answer questions, create sessions, check status, troubleshoot\n- **Notifications** \u2014 System alerts (permission requests, session errors, completions)\n\n---\n\n## Creating Sessions\n\n### From menu\nTap \uD83C\uDD95 New Session \u2192 choose agent (if multiple) \u2192 choose project folder \u2192 confirm\n\n### From command\n- `/new` \u2014 Interactive flow (asks agent + folder)\n- `/new claude ~/code/my-project` \u2014 Create directly with specific agent and folder\n\n### From Assistant topic\nJust ask: \"Create a session for my-project with claude\" \u2014 the assistant handles it\n\n### Quick new chat\n`/newchat` in a session topic \u2014 creates new session with same agent and folder as current one\n\n---\n\n## Working with Sessions\n\n### Chat\nType messages in the session topic. The agent responds with code changes, explanations, tool outputs.\n\n### What you see while the agent works\n- **\uD83D\uDCAD Thinking indicator** \u2014 Shows when the agent is reasoning, with elapsed time\n- **Text responses** \u2014 Streamed in real time, updated every few seconds\n- **Tool calls** \u2014 When the agent runs commands or edits files, you see tool name, input, status, and output\n- **\uD83D\uDCCB Plan card** \u2014 Visual task progress with completed/in-progress/pending items and progress bar\n- **\"View File\" / \"View Diff\" buttons** \u2014 Opens in browser with Monaco editor (requires tunnel)\n\n### Session lifecycle\n1. **Creating** \u2014 Topic created, agent spawning\n2. **Warming up** \u2014 Agent primes its cache (happens automatically, invisible to you)\n3. **Active** \u2014 Ready for your messages\n4. **Auto-naming** \u2014 After your first message, the session gets a descriptive name (agent summarizes in ~5 words). The topic title updates automatically.\n5. **Finished/Error** \u2014 Session completed or hit an error\n\n### Agent skills\nSome agents provide slash commands (e.g., /compact, /review). Available skills are pinned in the session topic.\n\n### Permission requests\nWhen the agent wants to run a command, it asks for permission.\nYou see buttons: \u2705 Allow, \u274C Reject (and sometimes \"Always Allow\").\nA notification also appears in the Notifications topic with a link to the request.\n\n### Dangerous mode\nAuto-approves ALL permission requests \u2014 the agent runs any command without asking.\n- Enable: `/enable_dangerous` or tap the \u2620\uFE0F button in the session\n- Disable: `/disable_dangerous` or tap the \uD83D\uDD10 button\n- \u26A0\uFE0F Use with caution \u2014 the agent can execute anything\n\n### Session timeout\nIdle sessions are automatically cancelled after a configurable timeout (default: 60 minutes).\nConfigure via `security.sessionTimeoutMinutes` in config.\n\n---\n\n## Session Transfer (Handoff)\n\n### Chat \u2192 Terminal\n1. Type `/handoff` in a session topic/thread\n2. You get a command like `claude --resume <SESSION_ID>`\n3. Copy and run it in your terminal \u2014 the session continues there with full conversation history\n\n### Terminal \u2192 Chat\n1. First time: run `openacp integrate claude` to install the handoff skill (one-time setup)\n2. In Claude Code, use the /openacp:handoff slash command\n3. The session appears as a new topic/thread and you can continue chatting there\n\n### How it works\n- The agent session ID is shared between platforms\n- Conversation history is preserved \u2014 pick up where you left off\n- The agent that supports resume (e.g., Claude with `--resume`) handles the actual transfer\n\n---\n\n## Managing Sessions\n\n### Status\n- `/status` \u2014 Shows active sessions count and details\n- Ask the Assistant: \"What sessions are running?\"\n\n### List all sessions\n- `/sessions` \u2014 Shows all sessions with status (active, finished, error)\n\n### Cancel\n- `/cancel` in a session topic \u2014 cancels that session\n- Ask the Assistant: \"Cancel the stuck session\"\n\n### Cleanup\n- From `/sessions` \u2192 tap cleanup buttons (finished, errors, all)\n- Ask the Assistant: \"Clean up old sessions\"\n\n---\n\n## Assistant Topic\n\nThe Assistant is an always-on AI helper in its own topic. It can:\n- Answer questions about OpenACP\n- Create sessions for you\n- Check status and health\n- Cancel sessions\n- Clean up old sessions\n- Troubleshoot issues\n- Manage configuration\n\nJust chat naturally: \"How do I create a session?\", \"What's the status?\", \"Something is stuck\"\n\n### Clear history\n`/clear` in the Assistant topic \u2014 resets the conversation\n\n---\n\n## System Commands\n\n| Command | Where | What it does |\n|---------|-------|-------------|\n| `/new [agent] [path]` | Anywhere | Create new session |\n| `/newchat` | Session topic | New session, same agent + folder |\n| `/cancel` | Session topic | Cancel current session |\n| `/status` | Anywhere | Show status |\n| `/sessions` | Anywhere | List all sessions |\n| `/agents` | Anywhere | Browse & install agents from ACP Registry |\n| `/install <name>` | Anywhere | Install an agent |\n| `/enable_dangerous` | Session topic | Auto-approve all permissions |\n| `/disable_dangerous` | Session topic | Restore permission prompts |\n| `/handoff` | Session topic | Transfer session to terminal |\n| `/clear` | Assistant topic | Clear assistant history |\n| `/menu` | Anywhere | Show action menu |\n| `/help` | Anywhere | Show help |\n| `/restart` | Anywhere | Restart OpenACP |\n| `/update` | Anywhere | Update to latest version |\n| `/integrate` | Anywhere | Manage agent integrations |\n\n---\n\n## Menu Buttons\n\n| Button | Action |\n|--------|--------|\n| \uD83C\uDD95 New Session | Create new session (interactive) |\n| \uD83D\uDCCB Sessions | List all sessions with cleanup options |\n| \uD83D\uDCCA Status | Show active/total session count |\n| \uD83E\uDD16 Agents | List available agents |\n| \uD83D\uDD17 Integrate | Manage agent integrations |\n| \u2753 Help | Show help text |\n| \uD83D\uDD04 Restart | Restart OpenACP |\n| \u2B06\uFE0F Update | Check and install updates |\n\n---\n\n## CLI Commands\n\n### Server\n- `openacp` \u2014 Start (uses configured mode: foreground or daemon)\n- `openacp start` \u2014 Start as background daemon\n- `openacp stop` \u2014 Stop daemon\n- `openacp status` \u2014 Show daemon status\n- `openacp logs` \u2014 Tail daemon logs\n- `openacp --foreground` \u2014 Force foreground mode (useful for debugging or containers)\n\n### Auto-start (run on boot)\n- macOS: installs a LaunchAgent in `~/Library/LaunchAgents/`\n- Linux: installs a systemd user service in `~/.config/systemd/user/`\n- Enabled automatically when you start the daemon. Remove with `openacp stop`.\n\n### Configuration\n- `openacp config` \u2014 Interactive config editor\n- `openacp reset` \u2014 Delete all data and start fresh\n\n### Agent Management (CLI)\n- `openacp agents` \u2014 List all agents (installed + available from ACP Registry)\n- `openacp agents install <name>` \u2014 Install an agent\n- `openacp agents uninstall <name>` \u2014 Remove an agent\n- `openacp agents info <name>` \u2014 Show details, dependencies, and setup guide\n- `openacp agents run <name> [-- args]` \u2014 Run agent CLI directly (for login, config, etc.)\n- `openacp agents refresh` \u2014 Force-refresh registry cache\n\n### Plugins\n- `openacp install <package>` \u2014 Install adapter plugin\n- `openacp uninstall <package>` \u2014 Remove adapter plugin\n- `openacp plugins` \u2014 List installed plugins\n\n### Integration\n- `openacp integrate <agent>` \u2014 Install agent integration (e.g., Claude handoff skill)\n- `openacp integrate <agent> --uninstall` \u2014 Remove integration\n\n### API (requires running daemon)\n`openacp api <command>` \u2014 Interact with running daemon:\n\n| Command | Description |\n|---------|-------------|\n| `status` | List active sessions |\n| `session <id>` | Session details |\n| `new <agent> <path>` | Create session |\n| `send <id> \"text\"` | Send prompt |\n| `cancel <id>` | Cancel session |\n| `dangerous <id> on/off` | Toggle dangerous mode |\n| `topics [--status x,y]` | List topics |\n| `delete-topic <id> [--force]` | Delete topic |\n| `cleanup [--status x,y]` | Cleanup old topics |\n| `agents` | List agents |\n| `health` | System health |\n| `config` | Show config |\n| `config set <key> <value>` | Update config |\n| `adapters` | List adapters |\n| `tunnel` | Tunnel status |\n| `notify \"message\"` | Send notification |\n| `version` | Daemon version |\n| `restart` | Restart daemon |\n\n---\n\n## File Viewer (Tunnel)\n\nWhen tunnel is enabled, file edits and diffs get \"View\" buttons that open in your browser:\n- **Monaco Editor** \u2014 Full VS Code editor with syntax highlighting\n- **Diff viewer** \u2014 Side-by-side or inline comparison\n- **Line highlighting** \u2014 Click lines to highlight\n- Dark/light theme toggle\n\n### Setup\nEnable in config: set `tunnel.enabled` to `true`.\nProviders: Cloudflare (default, free), ngrok, bore, Tailscale Funnel.\n\n### Port Tunneling\n\nExpose any local port (dev servers, APIs, etc.) to the internet:\n\n**CLI commands** (agent can call these directly):\n- `openacp tunnel add <port> --label <name>` \u2014 Create tunnel to a local port\n- `openacp tunnel list` \u2014 List active tunnels\n- `openacp tunnel stop <port>` \u2014 Stop a tunnel\n- `openacp tunnel stop-all` \u2014 Stop all user tunnels\n\n**Telegram commands**:\n- `/tunnel <port> [label]` \u2014 Create tunnel\n- `/tunnels` \u2014 List active tunnels\n- `/tunnel stop <port>` \u2014 Stop tunnel\n\nExample: after starting a dev server on port 3000, run `openacp tunnel add 3000 --label my-app` to get a public URL.\n\n---\n\n## Configuration\n\nConfig file: `~/.openacp/config.json`\n\n### Channels\n- **channels.telegram.botToken** \u2014 Your Telegram bot token\n- **channels.telegram.chatId** \u2014 Your Telegram supergroup ID\n- **channels.discord.botToken** \u2014 Your Discord bot token\n- **channels.discord.guildId** \u2014 Your Discord server (guild) ID\n\n### Agents\n- **defaultAgent** \u2014 Which agent to use by default\n- Agents are managed via `/agents` (Telegram) or `openacp agents` (CLI)\n- Installed agents are stored in `~/.openacp/agents.json`\n- Agent list is fetched from the ACP Registry CDN and cached locally (24h)\n\n### Workspace\n- **workspace.baseDir** \u2014 Base directory for project folders (default: `~/openacp-workspace`)\n\n### Security\n- **security.allowedUserIds** \u2014 Restrict who can use the bot (empty = everyone)\n- **security.maxConcurrentSessions** \u2014 Max parallel sessions (default: 5)\n- **security.sessionTimeoutMinutes** \u2014 Auto-cancel idle sessions (default: 60)\n\n### Tunnel / File Viewer\n- **tunnel.enabled** \u2014 Enable file viewer tunnel\n- **tunnel.provider** \u2014 Tunnel provider: cloudflare (default, free), ngrok, bore, tailscale\n- **tunnel.port** \u2014 Local port for tunnel server (default: 3100)\n- **tunnel.auth.enabled** \u2014 Enable authentication for tunnel URLs\n- **tunnel.auth.token** \u2014 Auth token for tunnel access\n- **tunnel.storeTtlMinutes** \u2014 How long viewer links stay cached (default: 60)\n\n### Logging\n- **logging.level** \u2014 Log level: silent, debug, info, warn, error, fatal (default: info)\n- **logging.logDir** \u2014 Log directory (default: `~/.openacp/logs`)\n- **logging.maxFileSize** \u2014 Max log file size before rotation\n- **logging.maxFiles** \u2014 Max number of rotated log files\n- **logging.sessionLogRetentionDays** \u2014 Auto-delete old session logs (default: 30)\n\n### Data Retention\n- **sessionStore.ttlDays** \u2014 How long session records persist (default: 30). Old records are cleaned up automatically.\n\n### Environment variables\nOverride config with env vars:\n- `OPENACP_TELEGRAM_BOT_TOKEN`\n- `OPENACP_TELEGRAM_CHAT_ID`\n- `OPENACP_DISCORD_BOT_TOKEN`\n- `OPENACP_DISCORD_GUILD_ID`\n- `OPENACP_DEFAULT_AGENT`\n- `OPENACP_RUN_MODE` \u2014 foreground or daemon\n- `OPENACP_API_PORT` \u2014 API server port (default: 21420)\n- `OPENACP_TUNNEL_ENABLED`\n- `OPENACP_TUNNEL_PORT`\n- `OPENACP_TUNNEL_PROVIDER`\n- `OPENACP_LOG_LEVEL`\n- `OPENACP_LOG_DIR`\n- `OPENACP_DEBUG` \u2014 Sets log level to debug\n\n---\n\n## Troubleshooting\n\n### Session stuck / not responding\n- Check status: ask Assistant \"Is anything stuck?\"\n- Cancel and create new: `/cancel` then `/new`\n- Check system health: Assistant can run health check\n\n### Agent not found\n- Check available agents: `/agents` or `openacp agents`\n- Install missing agent: `openacp agents install <name>`\n- Some agents need login first: `openacp agents info <name>` to see setup steps\n- Run agent CLI for setup: `openacp agents run <name> -- <args>`\n\n### Permission request not showing\n- Check Notifications topic for the alert\n- Try `/enable_dangerous` to auto-approve (if you trust the agent)\n\n### Session disappeared after restart\n- Sessions persist across restarts\n- Send a message in the old topic \u2014 it auto-resumes\n- If topic was deleted, the session record may still exist in status\n\n### Bot not responding at all\n- Check daemon: `openacp status`\n- Check logs: `openacp logs`\n- Restart: `openacp start` or `/restart`\n\n### Messages going to wrong topic\n- Each session is bound to a specific topic/thread\n- If you see messages appearing in the Assistant topic instead of the session topic, try creating a new session\n\n### Viewing logs\n- Session-specific logs: `~/.openacp/logs/sessions/`\n- System logs: `openacp logs` to tail live\n- Set `OPENACP_DEBUG=true` for verbose output\n\n---\n\n## Data & Storage\n\nAll data is stored in `~/.openacp/`:\n- `config.json` \u2014 Configuration\n- `agents.json` \u2014 Installed agents (managed by AgentCatalog)\n- `registry-cache.json` \u2014 Cached ACP Registry data (refreshes every 24h)\n- `agents/` \u2014 Downloaded binary agents\n- `sessions/` \u2014 Session records and state\n- `topics/` \u2014 Topic-to-session mappings\n- `logs/` \u2014 System and session logs\n- `plugins/` \u2014 Installed adapter plugins\n- `openacp.pid` \u2014 Daemon PID file\n\nSession records auto-cleanup: 30 days (configurable via `sessionStore.ttlDays`).\nSession logs auto-cleanup: 30 days (configurable via `logging.sessionLogRetentionDays`).\n";
|
|
2951
|
+
|
|
2890
2952
|
interface TelegramChannelConfig extends ChannelConfig {
|
|
2891
2953
|
botToken: string;
|
|
2892
2954
|
chatId: number;
|
|
@@ -2948,4 +3010,4 @@ declare class TelegramAdapter extends MessagingAdapter {
|
|
|
2948
3010
|
archiveSessionTopic(sessionId: string): Promise<void>;
|
|
2949
3011
|
}
|
|
2950
3012
|
|
|
2951
|
-
export { ActivityTracker, type AdapterCapabilities, type AgentCapabilities, AgentCatalog, type AgentCommand, type AgentDefinition, type AgentDistribution, type AgentEvent, AgentInstance, type AgentListItem, AgentManager, AgentStore, type ApiConfig, ApiServer, type Attachment, type AuthMethod, type AuthenticateRequest, type AvailabilityResult, BaseRenderer, type BridgeDeps, CONFIG_REGISTRY, ChannelAdapter, type ChannelConfig, type CleanupResult, type CommandArgs, type CommandDef, type CommandResponse, type Config, type ConfigFieldDef, ConfigManager$1 as ConfigManager, type ConfigOption, type ConfigSelectChoice, type ConfigSelectGroup, type ContentBlock, ContextManager, type ContextOptions, type ContextProvider, type ContextQuery, type ContextResult, type ContextService, type SessionInfo as ContextSessionInfo, type DeleteTopicResult, type
|
|
3013
|
+
export { ActivityTracker, type AdapterCapabilities, type AgentCapabilities, AgentCatalog, type AgentCommand, type AgentDefinition, type AgentDistribution, type AgentEvent, AgentInstance, type AgentListItem, AgentManager, AgentStore, type ApiConfig, ApiServer, type Attachment, type AuthMethod, type AuthenticateRequest, type AvailabilityResult, BaseRenderer, type BridgeDeps, CONFIG_REGISTRY, ChannelAdapter, type ChannelConfig, type CleanupResult, type CommandArgs, type CommandDef, CommandRegistry, type CommandResponse, type Config, type ConfigFieldDef, ConfigManager$1 as ConfigManager, type ConfigOption, type ConfigSelectChoice, type ConfigSelectGroup, type ContentBlock, ContextManager, type ContextOptions, type ContextProvider, type ContextQuery, type ContextResult, type ContextService, type SessionInfo as ContextSessionInfo, type DeleteTopicResult, type DisplayVerbosity, DoctorEngine, type DoctorReport, DraftManager, EntireProvider, EventBus, type EventBusEvents, FileService, type FileServiceInterface, GroqSTT, type IChannelAdapter, type IRenderer, type IncomingMessage, type InstallContext, type InstallProgress, type InstallResult, type InstalledAgent, KIND_ICONS, type ListItem, type Logger$1 as Logger, type LoggingConfig, type McpServerConfig, type MenuOption, MessageTransformer, MessagingAdapter, type MessagingAdapterConfig, type MigrateContext, type ModelInfo, type NewSessionResponse, NotificationManager, type NotificationMessage, type NotificationService, OpenACPCore, type OpenACPPlugin, type OutgoingMessage, PLUGINS_DIR, PRODUCT_GUIDE, type PendingFix, PermissionGate, type PermissionOption, type PermissionRequest, type PlanEntry, type PluginContext, type PluginPermission, type PluginStorage, PromptQueue, type PromptResponse, type RegistryAgent, type RegistryBinaryTarget, type RegistryDistribution, type RenderedMessage, SSEManager, STATUS_ICONS, type STTOptions, type STTProvider$1 as STTProvider, type STTResult, SecurityGuard, type SecurityService, SendQueue, Session, SessionBridge, type SessionCreateParams, type SessionEvents, SessionFactory, type SessionListItem, type SessionListResponse, type SessionListResult, SessionManager, type SessionMode, type SessionModeState, type SessionModelState, type SessionRecord, type SessionStatus, type SetConfigOptionValue, type SettingsAPI, type SideEffectDeps, type SpeechProviderConfig, SpeechService, type SpeechServiceConfig, type SpeechServiceInterface, StaticServer, StderrCapture, type StopReason, StreamAdapter, type TTSOptions, type TTSProvider$1 as TTSProvider, type TTSResult, TelegramAdapter, type TelegramPlatformData, type TerminalIO, type ToolCallMeta, ToolCallTracker, type ToolUpdateMeta, type TopicInfo, TopicManager, type TunnelServiceInterface, TypedEmitter, type UsageConfig, type UsageRecord, type UsageRecordEvent, type UsageService, type ViewerLinks, cleanupOldSessionLogs, createChildLogger, createSessionLogger, expandHome, extractContentText, formatTokens, formatToolSummary, formatToolTitle, getConfigValue, getFieldDef, getPidPath, getSafeFields, getStatus, initLogger, installAutoStart, isAutoStartInstalled, isAutoStartSupported, isHotReloadable, log, nodeToWebReadable, nodeToWebWritable, progressBar, resolveOptions, resolveToolIcon, runConfigEditor, setLogLevel, shutdownLogger, splitMessage, startDaemon, stopDaemon, stripCodeFences, truncateContent, uninstallAutoStart };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runConfigEditor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UMT7RU77.js";
|
|
4
4
|
import {
|
|
5
5
|
AgentInstance,
|
|
6
6
|
AgentManager,
|
|
7
|
+
CommandRegistry,
|
|
7
8
|
EventBus,
|
|
8
9
|
MessageTransformer,
|
|
9
10
|
OpenACPCore,
|
|
@@ -17,7 +18,7 @@ import {
|
|
|
17
18
|
TypedEmitter,
|
|
18
19
|
nodeToWebReadable,
|
|
19
20
|
nodeToWebWritable
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XIBG7LSL.js";
|
|
21
22
|
import {
|
|
22
23
|
AgentCatalog
|
|
23
24
|
} from "./chunk-SHTGQGAU.js";
|
|
@@ -37,23 +38,38 @@ import {
|
|
|
37
38
|
uninstallAutoStart
|
|
38
39
|
} from "./chunk-PPSMUECX.js";
|
|
39
40
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./chunk-RKB2ZK6S.js";
|
|
42
|
-
import {
|
|
41
|
+
PRODUCT_GUIDE,
|
|
43
42
|
SendQueue,
|
|
43
|
+
TelegramAdapter,
|
|
44
44
|
ToolCallTracker
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-LP45RCA4.js";
|
|
46
|
+
import "./chunk-AFKX424Q.js";
|
|
47
|
+
import {
|
|
48
|
+
DoctorEngine
|
|
49
|
+
} from "./chunk-QAQDGPB4.js";
|
|
46
50
|
import {
|
|
47
51
|
BaseRenderer,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
KIND_ICONS,
|
|
53
|
+
MessagingAdapter,
|
|
54
|
+
STATUS_ICONS,
|
|
55
|
+
extractContentText,
|
|
56
|
+
formatTokens,
|
|
57
|
+
formatToolSummary,
|
|
58
|
+
formatToolTitle,
|
|
59
|
+
progressBar,
|
|
60
|
+
resolveToolIcon,
|
|
61
|
+
splitMessage,
|
|
62
|
+
stripCodeFences,
|
|
63
|
+
truncateContent
|
|
64
|
+
} from "./chunk-TRXBJEZ5.js";
|
|
65
|
+
import {
|
|
66
|
+
NotificationManager
|
|
67
|
+
} from "./chunk-WXVT3AOY.js";
|
|
52
68
|
import {
|
|
53
69
|
ApiServer,
|
|
54
70
|
SSEManager,
|
|
55
71
|
StaticServer
|
|
56
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-2YCW3QDV.js";
|
|
57
73
|
import "./chunk-FNRSWA2K.js";
|
|
58
74
|
import "./chunk-ZSLHHQPQ.js";
|
|
59
75
|
import {
|
|
@@ -68,17 +84,10 @@ import {
|
|
|
68
84
|
EntireProvider
|
|
69
85
|
} from "./chunk-QWP76EBW.js";
|
|
70
86
|
import "./chunk-APS6UEFU.js";
|
|
71
|
-
import {
|
|
72
|
-
UsageBudget,
|
|
73
|
-
UsageStore
|
|
74
|
-
} from "./chunk-WAAD23KY.js";
|
|
75
87
|
import {
|
|
76
88
|
GroqSTT,
|
|
77
89
|
SpeechService
|
|
78
90
|
} from "./chunk-WIIZNPCR.js";
|
|
79
|
-
import {
|
|
80
|
-
NotificationManager
|
|
81
|
-
} from "./chunk-WXVT3AOY.js";
|
|
82
91
|
import {
|
|
83
92
|
CONFIG_REGISTRY,
|
|
84
93
|
getConfigValue,
|
|
@@ -436,21 +445,26 @@ export {
|
|
|
436
445
|
BaseRenderer,
|
|
437
446
|
CONFIG_REGISTRY,
|
|
438
447
|
ChannelAdapter,
|
|
448
|
+
CommandRegistry,
|
|
439
449
|
ConfigManager,
|
|
440
450
|
ContextManager,
|
|
451
|
+
DoctorEngine,
|
|
441
452
|
DraftManager,
|
|
442
453
|
EntireProvider,
|
|
443
454
|
EventBus,
|
|
444
455
|
FileService,
|
|
445
456
|
GroqSTT,
|
|
457
|
+
KIND_ICONS,
|
|
446
458
|
MessageTransformer,
|
|
447
459
|
MessagingAdapter,
|
|
448
460
|
NotificationManager,
|
|
449
461
|
OpenACPCore,
|
|
450
462
|
PLUGINS_DIR,
|
|
463
|
+
PRODUCT_GUIDE,
|
|
451
464
|
PermissionGate,
|
|
452
465
|
PromptQueue,
|
|
453
466
|
SSEManager,
|
|
467
|
+
STATUS_ICONS,
|
|
454
468
|
SecurityGuard,
|
|
455
469
|
SendQueue,
|
|
456
470
|
Session,
|
|
@@ -465,12 +479,14 @@ export {
|
|
|
465
479
|
ToolCallTracker,
|
|
466
480
|
TopicManager,
|
|
467
481
|
TypedEmitter,
|
|
468
|
-
UsageBudget,
|
|
469
|
-
UsageStore,
|
|
470
482
|
cleanupOldSessionLogs,
|
|
471
483
|
createChildLogger,
|
|
472
484
|
createSessionLogger,
|
|
473
485
|
expandHome,
|
|
486
|
+
extractContentText,
|
|
487
|
+
formatTokens,
|
|
488
|
+
formatToolSummary,
|
|
489
|
+
formatToolTitle,
|
|
474
490
|
getConfigValue,
|
|
475
491
|
getFieldDef,
|
|
476
492
|
getPidPath,
|
|
@@ -484,12 +500,17 @@ export {
|
|
|
484
500
|
log,
|
|
485
501
|
nodeToWebReadable,
|
|
486
502
|
nodeToWebWritable,
|
|
503
|
+
progressBar,
|
|
487
504
|
resolveOptions,
|
|
505
|
+
resolveToolIcon,
|
|
488
506
|
runConfigEditor,
|
|
489
507
|
setLogLevel,
|
|
490
508
|
shutdownLogger,
|
|
509
|
+
splitMessage,
|
|
491
510
|
startDaemon,
|
|
492
511
|
stopDaemon,
|
|
512
|
+
stripCodeFences,
|
|
513
|
+
truncateContent,
|
|
493
514
|
uninstallAutoStart
|
|
494
515
|
};
|
|
495
516
|
//# sourceMappingURL=index.js.map
|