@openacp/cli 0.2.28 → 0.2.30

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.
Files changed (42) hide show
  1. package/dist/{autostart-YBYXQA77.js → autostart-N4HIL6C3.js} +3 -3
  2. package/dist/{chunk-CQMS5U7Z.js → chunk-2QSUSMBI.js} +3 -3
  3. package/dist/{chunk-PQRVTUNH.js → chunk-5E6ZXCNN.js} +2 -2
  4. package/dist/{chunk-4BN7NSKB.js → chunk-7VEHVMVM.js} +4 -4
  5. package/dist/{chunk-S6O7SM6A.js → chunk-CEAIK37M.js} +2 -2
  6. package/dist/{chunk-FGXG3H3F.js → chunk-GP66XLS6.js} +2 -2
  7. package/dist/{chunk-MNJDYDGH.js → chunk-JOSJGZGF.js} +19 -15
  8. package/dist/chunk-JOSJGZGF.js.map +1 -0
  9. package/dist/{chunk-WXS6ONOD.js → chunk-RBDPCHGD.js} +2 -2
  10. package/dist/{chunk-6HORD4FS.js → chunk-WKHCVK5P.js} +247 -146
  11. package/dist/chunk-WKHCVK5P.js.map +1 -0
  12. package/dist/{chunk-QWUJIKTX.js → chunk-ZMNBZAXN.js} +4 -4
  13. package/dist/cli.js +18 -18
  14. package/dist/{config-2XALNLAA.js → config-3EDZ3IMJ.js} +3 -3
  15. package/dist/config-editor-KCD6FFC3.js +11 -0
  16. package/dist/{daemon-3E5OMLT3.js → daemon-TNQKCKTB.js} +4 -4
  17. package/dist/index.d.ts +5 -1
  18. package/dist/index.js +8 -8
  19. package/dist/install-cloudflared-LMM7MFQX.js +8 -0
  20. package/dist/{main-XAUS3VZW.js → main-CW4GRPSX.js} +13 -13
  21. package/dist/{setup-FTNJACSC.js → setup-JRNMPTIT.js} +4 -4
  22. package/dist/{tunnel-service-YQ4RG652.js → tunnel-service-4GISQZNP.js} +3 -3
  23. package/package.json +2 -2
  24. package/dist/chunk-6HORD4FS.js.map +0 -1
  25. package/dist/chunk-MNJDYDGH.js.map +0 -1
  26. package/dist/config-editor-56B6YU7B.js +0 -11
  27. package/dist/install-cloudflared-57NRTI4E.js +0 -8
  28. /package/dist/{autostart-YBYXQA77.js.map → autostart-N4HIL6C3.js.map} +0 -0
  29. /package/dist/{chunk-CQMS5U7Z.js.map → chunk-2QSUSMBI.js.map} +0 -0
  30. /package/dist/{chunk-PQRVTUNH.js.map → chunk-5E6ZXCNN.js.map} +0 -0
  31. /package/dist/{chunk-4BN7NSKB.js.map → chunk-7VEHVMVM.js.map} +0 -0
  32. /package/dist/{chunk-S6O7SM6A.js.map → chunk-CEAIK37M.js.map} +0 -0
  33. /package/dist/{chunk-FGXG3H3F.js.map → chunk-GP66XLS6.js.map} +0 -0
  34. /package/dist/{chunk-WXS6ONOD.js.map → chunk-RBDPCHGD.js.map} +0 -0
  35. /package/dist/{chunk-QWUJIKTX.js.map → chunk-ZMNBZAXN.js.map} +0 -0
  36. /package/dist/{config-2XALNLAA.js.map → config-3EDZ3IMJ.js.map} +0 -0
  37. /package/dist/{config-editor-56B6YU7B.js.map → config-editor-KCD6FFC3.js.map} +0 -0
  38. /package/dist/{daemon-3E5OMLT3.js.map → daemon-TNQKCKTB.js.map} +0 -0
  39. /package/dist/{install-cloudflared-57NRTI4E.js.map → install-cloudflared-LMM7MFQX.js.map} +0 -0
  40. /package/dist/{main-XAUS3VZW.js.map → main-CW4GRPSX.js.map} +0 -0
  41. /package/dist/{setup-FTNJACSC.js.map → setup-JRNMPTIT.js.map} +0 -0
  42. /package/dist/{tunnel-service-YQ4RG652.js.map → tunnel-service-4GISQZNP.js.map} +0 -0
package/dist/cli.js CHANGED
@@ -3,11 +3,11 @@ import {
3
3
  installPlugin,
4
4
  listPlugins,
5
5
  uninstallPlugin
6
- } from "./chunk-CQMS5U7Z.js";
7
- import "./chunk-FGXG3H3F.js";
6
+ } from "./chunk-2QSUSMBI.js";
7
+ import "./chunk-GP66XLS6.js";
8
8
  import {
9
9
  __require
10
- } from "./chunk-MNJDYDGH.js";
10
+ } from "./chunk-JOSJGZGF.js";
11
11
 
12
12
  // src/cli.ts
13
13
  import { setDefaultAutoSelectFamily } from "net";
@@ -286,8 +286,8 @@ async function main() {
286
286
  }
287
287
  if (command === "start") {
288
288
  await checkAndPromptUpdate();
289
- const { startDaemon, getPidPath } = await import("./daemon-3E5OMLT3.js");
290
- const { ConfigManager: ConfigManager2 } = await import("./config-2XALNLAA.js");
289
+ const { startDaemon, getPidPath } = await import("./daemon-TNQKCKTB.js");
290
+ const { ConfigManager: ConfigManager2 } = await import("./config-3EDZ3IMJ.js");
291
291
  const cm2 = new ConfigManager2();
292
292
  if (await cm2.exists()) {
293
293
  await cm2.load();
@@ -305,7 +305,7 @@ async function main() {
305
305
  return;
306
306
  }
307
307
  if (command === "stop") {
308
- const { stopDaemon } = await import("./daemon-3E5OMLT3.js");
308
+ const { stopDaemon } = await import("./daemon-TNQKCKTB.js");
309
309
  const result = stopDaemon();
310
310
  if (result.stopped) {
311
311
  console.log(`OpenACP daemon stopped (was PID ${result.pid})`);
@@ -316,7 +316,7 @@ async function main() {
316
316
  return;
317
317
  }
318
318
  if (command === "status") {
319
- const { getStatus } = await import("./daemon-3E5OMLT3.js");
319
+ const { getStatus } = await import("./daemon-TNQKCKTB.js");
320
320
  const status = getStatus();
321
321
  if (status.running) {
322
322
  console.log(`OpenACP is running (PID ${status.pid})`);
@@ -327,7 +327,7 @@ async function main() {
327
327
  }
328
328
  if (command === "logs") {
329
329
  const { spawn } = await import("child_process");
330
- const { ConfigManager: ConfigManager2, expandHome } = await import("./config-2XALNLAA.js");
330
+ const { ConfigManager: ConfigManager2, expandHome } = await import("./config-3EDZ3IMJ.js");
331
331
  const pathMod = await import("path");
332
332
  const cm2 = new ConfigManager2();
333
333
  let logDir = "~/.openacp/logs";
@@ -344,8 +344,8 @@ async function main() {
344
344
  return;
345
345
  }
346
346
  if (command === "config") {
347
- const { runConfigEditor } = await import("./config-editor-56B6YU7B.js");
348
- const { ConfigManager: ConfigManager2 } = await import("./config-2XALNLAA.js");
347
+ const { runConfigEditor } = await import("./config-editor-KCD6FFC3.js");
348
+ const { ConfigManager: ConfigManager2 } = await import("./config-3EDZ3IMJ.js");
349
349
  const cm2 = new ConfigManager2();
350
350
  if (!await cm2.exists()) {
351
351
  console.error('No config found. Run "openacp" first to set up.');
@@ -355,7 +355,7 @@ async function main() {
355
355
  return;
356
356
  }
357
357
  if (command === "reset") {
358
- const { getStatus } = await import("./daemon-3E5OMLT3.js");
358
+ const { getStatus } = await import("./daemon-TNQKCKTB.js");
359
359
  const status = getStatus();
360
360
  if (status.running) {
361
361
  console.error("OpenACP is running. Stop it first: openacp stop");
@@ -370,7 +370,7 @@ async function main() {
370
370
  console.log("Aborted.");
371
371
  return;
372
372
  }
373
- const { uninstallAutoStart } = await import("./autostart-YBYXQA77.js");
373
+ const { uninstallAutoStart } = await import("./autostart-N4HIL6C3.js");
374
374
  uninstallAutoStart();
375
375
  const fs2 = await import("fs");
376
376
  const os2 = await import("os");
@@ -402,7 +402,7 @@ async function main() {
402
402
  return;
403
403
  }
404
404
  if (command === "--daemon-child") {
405
- const { startServer: startServer2 } = await import("./main-XAUS3VZW.js");
405
+ const { startServer: startServer2 } = await import("./main-CW4GRPSX.js");
406
406
  await startServer2();
407
407
  return;
408
408
  }
@@ -413,17 +413,17 @@ async function main() {
413
413
  process.exit(1);
414
414
  }
415
415
  await checkAndPromptUpdate();
416
- const { ConfigManager } = await import("./config-2XALNLAA.js");
416
+ const { ConfigManager } = await import("./config-3EDZ3IMJ.js");
417
417
  const cm = new ConfigManager();
418
418
  if (!await cm.exists()) {
419
- const { runSetup } = await import("./setup-FTNJACSC.js");
419
+ const { runSetup } = await import("./setup-JRNMPTIT.js");
420
420
  const shouldStart = await runSetup(cm);
421
421
  if (!shouldStart) process.exit(0);
422
422
  }
423
423
  await cm.load();
424
424
  const config = cm.get();
425
425
  if (!forceForeground && config.runMode === "daemon") {
426
- const { startDaemon, getPidPath } = await import("./daemon-3E5OMLT3.js");
426
+ const { startDaemon, getPidPath } = await import("./daemon-TNQKCKTB.js");
427
427
  const result = startDaemon(getPidPath(), config.logging.logDir);
428
428
  if ("error" in result) {
429
429
  console.error(result.error);
@@ -432,9 +432,9 @@ async function main() {
432
432
  console.log(`OpenACP daemon started (PID ${result.pid})`);
433
433
  return;
434
434
  }
435
- const { markRunning } = await import("./daemon-3E5OMLT3.js");
435
+ const { markRunning } = await import("./daemon-TNQKCKTB.js");
436
436
  markRunning();
437
- const { startServer } = await import("./main-XAUS3VZW.js");
437
+ const { startServer } = await import("./main-CW4GRPSX.js");
438
438
  await startServer();
439
439
  }
440
440
  main().catch((err) => {
@@ -3,12 +3,12 @@ import {
3
3
  ConfigSchema,
4
4
  PLUGINS_DIR,
5
5
  expandHome
6
- } from "./chunk-FGXG3H3F.js";
7
- import "./chunk-MNJDYDGH.js";
6
+ } from "./chunk-GP66XLS6.js";
7
+ import "./chunk-JOSJGZGF.js";
8
8
  export {
9
9
  ConfigManager,
10
10
  ConfigSchema,
11
11
  PLUGINS_DIR,
12
12
  expandHome
13
13
  };
14
- //# sourceMappingURL=config-2XALNLAA.js.map
14
+ //# sourceMappingURL=config-3EDZ3IMJ.js.map
@@ -0,0 +1,11 @@
1
+ import {
2
+ runConfigEditor
3
+ } from "./chunk-ZMNBZAXN.js";
4
+ import "./chunk-5E6ZXCNN.js";
5
+ import "./chunk-7VEHVMVM.js";
6
+ import "./chunk-GP66XLS6.js";
7
+ import "./chunk-JOSJGZGF.js";
8
+ export {
9
+ runConfigEditor
10
+ };
11
+ //# sourceMappingURL=config-editor-KCD6FFC3.js.map
@@ -10,9 +10,9 @@ import {
10
10
  startDaemon,
11
11
  stopDaemon,
12
12
  writePidFile
13
- } from "./chunk-S6O7SM6A.js";
14
- import "./chunk-FGXG3H3F.js";
15
- import "./chunk-MNJDYDGH.js";
13
+ } from "./chunk-CEAIK37M.js";
14
+ import "./chunk-GP66XLS6.js";
15
+ import "./chunk-JOSJGZGF.js";
16
16
  export {
17
17
  clearRunning,
18
18
  getPidPath,
@@ -26,4 +26,4 @@ export {
26
26
  stopDaemon,
27
27
  writePidFile
28
28
  };
29
- //# sourceMappingURL=daemon-3E5OMLT3.js.map
29
+ //# sourceMappingURL=daemon-TNQKCKTB.js.map
package/dist/index.d.ts CHANGED
@@ -55,6 +55,8 @@ type AgentEvent = {
55
55
  } | {
56
56
  type: "tool_update";
57
57
  id: string;
58
+ name?: string;
59
+ kind?: string;
58
60
  status: string;
59
61
  content?: unknown;
60
62
  locations?: unknown;
@@ -108,6 +110,7 @@ interface SessionRecord<P = Record<string, unknown>> {
108
110
  }
109
111
  interface TelegramPlatformData {
110
112
  topicId: number;
113
+ skillMsgId?: number;
111
114
  }
112
115
 
113
116
  declare const PLUGINS_DIR: string;
@@ -542,6 +545,8 @@ declare class SessionManager {
542
545
  updateSessionPlatform(sessionId: string, platform: Record<string, unknown>): Promise<void>;
543
546
  updateSessionActivity(sessionId: string): Promise<void>;
544
547
  updateSessionStatus(sessionId: string, status: SessionStatus): Promise<void>;
548
+ updateSessionName(sessionId: string, name: string): Promise<void>;
549
+ getSessionRecord(sessionId: string): SessionRecord | undefined;
545
550
  cancelSession(sessionId: string): Promise<void>;
546
551
  listSessions(channelId?: string): Session[];
547
552
  destroyAll(): Promise<void>;
@@ -680,7 +685,6 @@ interface TelegramChannelConfig {
680
685
  chatId: number;
681
686
  notificationTopicId: number | null;
682
687
  assistantTopicId: number | null;
683
- streamThrottleMs?: number;
684
688
  }
685
689
 
686
690
  declare class TelegramAdapter extends ChannelAdapter {
package/dist/index.js CHANGED
@@ -11,34 +11,34 @@ import {
11
11
  TelegramAdapter,
12
12
  nodeToWebReadable,
13
13
  nodeToWebWritable
14
- } from "./chunk-6HORD4FS.js";
14
+ } from "./chunk-WKHCVK5P.js";
15
15
  import {
16
16
  installPlugin,
17
17
  listPlugins,
18
18
  loadAdapterFactory,
19
19
  uninstallPlugin
20
- } from "./chunk-CQMS5U7Z.js";
20
+ } from "./chunk-2QSUSMBI.js";
21
21
  import {
22
22
  getPidPath,
23
23
  getStatus,
24
24
  startDaemon,
25
25
  stopDaemon
26
- } from "./chunk-S6O7SM6A.js";
26
+ } from "./chunk-CEAIK37M.js";
27
27
  import {
28
28
  runConfigEditor
29
- } from "./chunk-QWUJIKTX.js";
29
+ } from "./chunk-ZMNBZAXN.js";
30
30
  import {
31
31
  installAutoStart,
32
32
  isAutoStartInstalled,
33
33
  isAutoStartSupported,
34
34
  uninstallAutoStart
35
- } from "./chunk-PQRVTUNH.js";
36
- import "./chunk-4BN7NSKB.js";
35
+ } from "./chunk-5E6ZXCNN.js";
36
+ import "./chunk-7VEHVMVM.js";
37
37
  import {
38
38
  ConfigManager,
39
39
  PLUGINS_DIR,
40
40
  expandHome
41
- } from "./chunk-FGXG3H3F.js";
41
+ } from "./chunk-GP66XLS6.js";
42
42
  import {
43
43
  cleanupOldSessionLogs,
44
44
  createChildLogger,
@@ -46,7 +46,7 @@ import {
46
46
  initLogger,
47
47
  log,
48
48
  shutdownLogger
49
- } from "./chunk-MNJDYDGH.js";
49
+ } from "./chunk-JOSJGZGF.js";
50
50
  export {
51
51
  AgentInstance,
52
52
  AgentManager,
@@ -0,0 +1,8 @@
1
+ import {
2
+ ensureCloudflared
3
+ } from "./chunk-RBDPCHGD.js";
4
+ import "./chunk-JOSJGZGF.js";
5
+ export {
6
+ ensureCloudflared
7
+ };
8
+ //# sourceMappingURL=install-cloudflared-LMM7MFQX.js.map
@@ -3,29 +3,29 @@ import {
3
3
  ApiServer,
4
4
  OpenACPCore,
5
5
  TelegramAdapter
6
- } from "./chunk-6HORD4FS.js";
6
+ } from "./chunk-WKHCVK5P.js";
7
7
  import {
8
8
  loadAdapterFactory
9
- } from "./chunk-CQMS5U7Z.js";
10
- import "./chunk-S6O7SM6A.js";
11
- import "./chunk-QWUJIKTX.js";
12
- import "./chunk-PQRVTUNH.js";
13
- import "./chunk-4BN7NSKB.js";
9
+ } from "./chunk-2QSUSMBI.js";
10
+ import "./chunk-CEAIK37M.js";
11
+ import "./chunk-ZMNBZAXN.js";
12
+ import "./chunk-5E6ZXCNN.js";
13
+ import "./chunk-7VEHVMVM.js";
14
14
  import {
15
15
  ConfigManager
16
- } from "./chunk-FGXG3H3F.js";
16
+ } from "./chunk-GP66XLS6.js";
17
17
  import {
18
18
  cleanupOldSessionLogs,
19
19
  initLogger,
20
20
  log,
21
21
  shutdownLogger
22
- } from "./chunk-MNJDYDGH.js";
22
+ } from "./chunk-JOSJGZGF.js";
23
23
 
24
24
  // src/main.ts
25
25
  var shuttingDown = false;
26
26
  async function startServer() {
27
27
  if (process.argv.includes("--daemon-child")) {
28
- const { writePidFile, readPidFile, getPidPath, shouldAutoStart } = await import("./daemon-3E5OMLT3.js");
28
+ const { writePidFile, readPidFile, getPidPath, shouldAutoStart } = await import("./daemon-TNQKCKTB.js");
29
29
  if (!shouldAutoStart()) {
30
30
  process.exit(0);
31
31
  }
@@ -44,7 +44,7 @@ async function startServer() {
44
44
  const configManager = new ConfigManager();
45
45
  const configExists = await configManager.exists();
46
46
  if (!configExists) {
47
- const { runSetup } = await import("./setup-FTNJACSC.js");
47
+ const { runSetup } = await import("./setup-JRNMPTIT.js");
48
48
  const shouldStart = await runSetup(configManager);
49
49
  if (!shouldStart) process.exit(0);
50
50
  }
@@ -58,7 +58,7 @@ async function startServer() {
58
58
  const core = new OpenACPCore(configManager);
59
59
  let tunnelService;
60
60
  if (config.tunnel.enabled) {
61
- const { TunnelService } = await import("./tunnel-service-YQ4RG652.js");
61
+ const { TunnelService } = await import("./tunnel-service-4GISQZNP.js");
62
62
  tunnelService = new TunnelService(config.tunnel);
63
63
  const publicUrl = await tunnelService.start();
64
64
  core.tunnelService = tunnelService;
@@ -101,7 +101,7 @@ async function startServer() {
101
101
  log.error({ err }, "Error during shutdown");
102
102
  }
103
103
  if (process.argv.includes("--daemon-child")) {
104
- const { removePidFile, getPidPath } = await import("./daemon-3E5OMLT3.js");
104
+ const { removePidFile, getPidPath } = await import("./daemon-TNQKCKTB.js");
105
105
  removePidFile(getPidPath());
106
106
  }
107
107
  await shutdownLogger();
@@ -132,4 +132,4 @@ if (isDirectExecution) {
132
132
  export {
133
133
  startServer
134
134
  };
135
- //# sourceMappingURL=main-XAUS3VZW.js.map
135
+ //# sourceMappingURL=main-CW4GRPSX.js.map
@@ -9,9 +9,9 @@ import {
9
9
  validateBotAdmin,
10
10
  validateBotToken,
11
11
  validateChatId
12
- } from "./chunk-4BN7NSKB.js";
13
- import "./chunk-FGXG3H3F.js";
14
- import "./chunk-MNJDYDGH.js";
12
+ } from "./chunk-7VEHVMVM.js";
13
+ import "./chunk-GP66XLS6.js";
14
+ import "./chunk-JOSJGZGF.js";
15
15
  export {
16
16
  detectAgents,
17
17
  runSetup,
@@ -24,4 +24,4 @@ export {
24
24
  validateBotToken,
25
25
  validateChatId
26
26
  };
27
- //# sourceMappingURL=setup-FTNJACSC.js.map
27
+ //# sourceMappingURL=setup-JRNMPTIT.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ensureCloudflared
3
- } from "./chunk-WXS6ONOD.js";
3
+ } from "./chunk-RBDPCHGD.js";
4
4
  import {
5
5
  createChildLogger
6
- } from "./chunk-MNJDYDGH.js";
6
+ } from "./chunk-JOSJGZGF.js";
7
7
 
8
8
  // src/tunnel/tunnel-service.ts
9
9
  import { serve } from "@hono/node-server";
@@ -936,4 +936,4 @@ var TunnelService = class {
936
936
  export {
937
937
  TunnelService
938
938
  };
939
- //# sourceMappingURL=tunnel-service-YQ4RG652.js.map
939
+ //# sourceMappingURL=tunnel-service-4GISQZNP.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openacp/cli",
3
- "version": "0.2.28",
3
+ "version": "0.2.30",
4
4
  "description": "Self-hosted bridge for AI coding agents via ACP protocol",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,7 +27,7 @@
27
27
  "@inquirer/prompts": "^8.3.2",
28
28
  "@zed-industries/claude-agent-acp": "^0.22.2",
29
29
  "diff": "^8.0.3",
30
- "grammy": "^1.30.0",
30
+ "grammy": "^1.41.1",
31
31
  "hono": "^4.12.8",
32
32
  "nanoid": "^5.0.0",
33
33
  "pino": "^10.3.1",