@openacp/cli 0.5.2 → 0.6.0

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 (96) hide show
  1. package/README.md +40 -14
  2. package/dist/action-detect-6M5GCGAU.js +15 -0
  3. package/dist/admin-IKPS5PFC.js +16 -0
  4. package/dist/agents-55NX3DHM.js +14 -0
  5. package/dist/{api-client-UN7BXQOQ.js → api-client-BH2JFHQW.js} +4 -2
  6. package/dist/{autostart-K73RQZVV.js → autostart-A7JRU4WJ.js} +6 -2
  7. package/dist/chunk-3WPG7GXA.js +134 -0
  8. package/dist/chunk-3WPG7GXA.js.map +1 -0
  9. package/dist/{chunk-NDR5JCS7.js → chunk-437NLISU.js} +2 -2
  10. package/dist/chunk-5NBWM7P6.js +438 -0
  11. package/dist/chunk-5NBWM7P6.js.map +1 -0
  12. package/dist/{chunk-F4TB4UBK.js → chunk-6Q7PZWCL.js} +171 -26
  13. package/dist/chunk-6Q7PZWCL.js.map +1 -0
  14. package/dist/chunk-7G5QKLLF.js +105 -0
  15. package/dist/chunk-7G5QKLLF.js.map +1 -0
  16. package/dist/chunk-AKIU4JBF.js +145 -0
  17. package/dist/chunk-AKIU4JBF.js.map +1 -0
  18. package/dist/{chunk-JRF4G4X7.js → chunk-DWQKUECJ.js} +13 -2
  19. package/dist/chunk-DWQKUECJ.js.map +1 -0
  20. package/dist/{chunk-KSIQZC3J.js → chunk-EVFJW45N.js} +1 -1
  21. package/dist/chunk-EVFJW45N.js.map +1 -0
  22. package/dist/chunk-H7ZMPBZC.js +203 -0
  23. package/dist/chunk-H7ZMPBZC.js.map +1 -0
  24. package/dist/chunk-I7WC6E5S.js +71 -0
  25. package/dist/chunk-I7WC6E5S.js.map +1 -0
  26. package/dist/{chunk-4ZGMSNRP.js → chunk-MHFCZGRW.js} +114 -16
  27. package/dist/chunk-MHFCZGRW.js.map +1 -0
  28. package/dist/{chunk-X6LLG7XN.js → chunk-PMGNLNSH.js} +15 -6
  29. package/dist/chunk-PMGNLNSH.js.map +1 -0
  30. package/dist/chunk-SM3G6UAX.js +122 -0
  31. package/dist/chunk-SM3G6UAX.js.map +1 -0
  32. package/dist/{chunk-IRGYTNLP.js → chunk-SPX7CKWV.js} +76 -2
  33. package/dist/chunk-SPX7CKWV.js.map +1 -0
  34. package/dist/chunk-T22OLSET.js +265 -0
  35. package/dist/chunk-T22OLSET.js.map +1 -0
  36. package/dist/chunk-THBR6OXH.js +62 -0
  37. package/dist/chunk-THBR6OXH.js.map +1 -0
  38. package/dist/{chunk-65XE66HK.js → chunk-V2V767XI.js} +373 -489
  39. package/dist/chunk-V2V767XI.js.map +1 -0
  40. package/dist/{chunk-OORPX73T.js → chunk-W3EYKZNQ.js} +17 -2
  41. package/dist/chunk-W3EYKZNQ.js.map +1 -0
  42. package/dist/{chunk-VBEWSWVL.js → chunk-YYQXWA62.js} +52 -9
  43. package/dist/chunk-YYQXWA62.js.map +1 -0
  44. package/dist/cli.js +121 -32
  45. package/dist/cli.js.map +1 -1
  46. package/dist/{config-PCPIBPUA.js → config-KF2MQWAP.js} +2 -2
  47. package/dist/config-editor-OTODXUF7.js +12 -0
  48. package/dist/{daemon-JZLFRUW6.js → daemon-U6UC7OM4.js} +3 -3
  49. package/dist/discord-SLLKRUP7.js +2034 -0
  50. package/dist/discord-SLLKRUP7.js.map +1 -0
  51. package/dist/doctor-DB5PRQ6D.js +14 -0
  52. package/dist/doctor-DB5PRQ6D.js.map +1 -0
  53. package/dist/doctor-SYWNJFYK.js +9 -0
  54. package/dist/doctor-SYWNJFYK.js.map +1 -0
  55. package/dist/index.d.ts +47 -7
  56. package/dist/index.js +11 -9
  57. package/dist/{integrate-BLETI3UO.js → integrate-VOUYBPPZ.js} +106 -3
  58. package/dist/integrate-VOUYBPPZ.js.map +1 -0
  59. package/dist/{main-AH3NCVM3.js → main-M6RH3SS5.js} +31 -23
  60. package/dist/main-M6RH3SS5.js.map +1 -0
  61. package/dist/new-session-DRRP2J7E.js +16 -0
  62. package/dist/new-session-DRRP2J7E.js.map +1 -0
  63. package/dist/session-FVFLBREJ.js +19 -0
  64. package/dist/session-FVFLBREJ.js.map +1 -0
  65. package/dist/settings-LPOLJ6SA.js +12 -0
  66. package/dist/settings-LPOLJ6SA.js.map +1 -0
  67. package/dist/{setup-7JINXQOA.js → setup-LI5CKYDK.js} +9 -5
  68. package/dist/setup-LI5CKYDK.js.map +1 -0
  69. package/dist/{tunnel-service-LEVPLXAZ.js → tunnel-service-U6V4HQOO.js} +263 -47
  70. package/dist/tunnel-service-U6V4HQOO.js.map +1 -0
  71. package/dist/{version-VC5CPXBX.js → version-ALWGGVKM.js} +2 -2
  72. package/dist/version-ALWGGVKM.js.map +1 -0
  73. package/package.json +2 -1
  74. package/dist/chunk-4ZGMSNRP.js.map +0 -1
  75. package/dist/chunk-65XE66HK.js.map +0 -1
  76. package/dist/chunk-F4TB4UBK.js.map +0 -1
  77. package/dist/chunk-IRGYTNLP.js.map +0 -1
  78. package/dist/chunk-JRF4G4X7.js.map +0 -1
  79. package/dist/chunk-KSIQZC3J.js.map +0 -1
  80. package/dist/chunk-OORPX73T.js.map +0 -1
  81. package/dist/chunk-VBEWSWVL.js.map +0 -1
  82. package/dist/chunk-X6LLG7XN.js.map +0 -1
  83. package/dist/config-editor-DDF3ZFJK.js +0 -12
  84. package/dist/doctor-N2HKKUUQ.js +0 -9
  85. package/dist/integrate-BLETI3UO.js.map +0 -1
  86. package/dist/main-AH3NCVM3.js.map +0 -1
  87. package/dist/tunnel-service-LEVPLXAZ.js.map +0 -1
  88. /package/dist/{api-client-UN7BXQOQ.js.map → action-detect-6M5GCGAU.js.map} +0 -0
  89. /package/dist/{autostart-K73RQZVV.js.map → admin-IKPS5PFC.js.map} +0 -0
  90. /package/dist/{config-PCPIBPUA.js.map → agents-55NX3DHM.js.map} +0 -0
  91. /package/dist/{config-editor-DDF3ZFJK.js.map → api-client-BH2JFHQW.js.map} +0 -0
  92. /package/dist/{daemon-JZLFRUW6.js.map → autostart-A7JRU4WJ.js.map} +0 -0
  93. /package/dist/{chunk-NDR5JCS7.js.map → chunk-437NLISU.js.map} +0 -0
  94. /package/dist/{doctor-N2HKKUUQ.js.map → config-KF2MQWAP.js.map} +0 -0
  95. /package/dist/{setup-7JINXQOA.js.map → config-editor-OTODXUF7.js.map} +0 -0
  96. /package/dist/{version-VC5CPXBX.js.map → daemon-U6UC7OM4.js.map} +0 -0
@@ -0,0 +1,438 @@
1
+ // src/core/channel.ts
2
+ var ChannelAdapter = class {
3
+ constructor(core, config) {
4
+ this.core = core;
5
+ this.config = config;
6
+ }
7
+ async deleteSessionThread(_sessionId) {
8
+ }
9
+ // Skill commands — override in adapters that support dynamic commands
10
+ async sendSkillCommands(_sessionId, _commands) {
11
+ }
12
+ async cleanupSkillCommands(_sessionId) {
13
+ }
14
+ };
15
+
16
+ // src/product-guide.ts
17
+ var PRODUCT_GUIDE = `
18
+ # OpenACP \u2014 Product Guide
19
+
20
+ OpenACP lets you chat with AI coding agents (like Claude Code) through messaging platforms (Telegram, Discord).
21
+ You type messages in your chat platform, the agent reads/writes/runs code in your project folder, and results stream back in real time.
22
+
23
+ ---
24
+
25
+ ## Quick Start
26
+
27
+ 1. Start OpenACP: \`openacp\` (or \`openacp start\` for background daemon)
28
+ 2. Open your messaging platform (Telegram group or Discord server) \u2014 you'll see the Assistant topic/thread
29
+ 3. Tap/click \u{1F195} New Session or type /new
30
+ 4. Pick an agent and a project folder
31
+ 5. Chat in the session topic/thread \u2014 the agent works on your code
32
+
33
+ ---
34
+
35
+ ## Core Concepts
36
+
37
+ ### Sessions
38
+ A session = one conversation with one AI agent working in one project folder.
39
+ Each session gets its own topic (Telegram) or forum thread (Discord). Chat there to give instructions to the agent.
40
+
41
+ ### Agents
42
+ An agent is an AI coding tool (e.g., Claude Code, Gemini, Cursor, Codex, etc.).
43
+ OpenACP supports 28+ agents from the official ACP Registry (agentclientprotocol.com).
44
+ You can install multiple agents and choose which one to use per session.
45
+ The default agent is used when you don't specify one.
46
+
47
+ ### Agent Management
48
+ - Browse agents: \`/agents\` in your chat platform or \`openacp agents\` in CLI
49
+ - Install: tap the install button in /agents, or \`openacp agents install <name>\`
50
+ - Uninstall: \`openacp agents uninstall <name>\`
51
+ - Setup/login: \`openacp agents run <name> -- <args>\` (e.g., \`openacp agents run gemini -- auth login\`)
52
+ - Details: \`openacp agents info <name>\` shows version, dependencies, and setup steps
53
+
54
+ Some agents need additional setup before they can be used:
55
+ - Claude: requires \`claude login\`
56
+ - Gemini: requires \`openacp agents run gemini -- auth login\`
57
+ - Codex: requires setting \`OPENAI_API_KEY\` environment variable
58
+ - GitHub Copilot: requires \`openacp agents run copilot -- auth login\`
59
+
60
+ Agents are installed in three ways depending on the agent:
61
+ - **npx** \u2014 Node.js agents, downloaded automatically on first use
62
+ - **uvx** \u2014 Python agents, downloaded automatically on first use
63
+ - **binary** \u2014 Platform-specific binaries, downloaded to \`~/.openacp/agents/\`
64
+
65
+ ### Project Folder (Workspace)
66
+ The directory where the agent reads, writes, and runs code.
67
+ When creating a session, you choose which folder the agent works in.
68
+ You can type a full path like \`~/code/my-project\` or just a name like \`my-project\` (it becomes \`<base-dir>/my-project\`).
69
+
70
+ ### System Topics
71
+ - **Assistant** \u2014 Always-on helper that can answer questions, create sessions, check status, troubleshoot
72
+ - **Notifications** \u2014 System alerts (permission requests, session errors, completions)
73
+
74
+ ---
75
+
76
+ ## Creating Sessions
77
+
78
+ ### From menu
79
+ Tap \u{1F195} New Session \u2192 choose agent (if multiple) \u2192 choose project folder \u2192 confirm
80
+
81
+ ### From command
82
+ - \`/new\` \u2014 Interactive flow (asks agent + folder)
83
+ - \`/new claude ~/code/my-project\` \u2014 Create directly with specific agent and folder
84
+
85
+ ### From Assistant topic
86
+ Just ask: "Create a session for my-project with claude" \u2014 the assistant handles it
87
+
88
+ ### Quick new chat
89
+ \`/newchat\` in a session topic \u2014 creates new session with same agent and folder as current one
90
+
91
+ ---
92
+
93
+ ## Working with Sessions
94
+
95
+ ### Chat
96
+ Type messages in the session topic. The agent responds with code changes, explanations, tool outputs.
97
+
98
+ ### What you see while the agent works
99
+ - **\u{1F4AD} Thinking indicator** \u2014 Shows when the agent is reasoning, with elapsed time
100
+ - **Text responses** \u2014 Streamed in real time, updated every few seconds
101
+ - **Tool calls** \u2014 When the agent runs commands or edits files, you see tool name, input, status, and output
102
+ - **\u{1F4CB} Plan card** \u2014 Visual task progress with completed/in-progress/pending items and progress bar
103
+ - **"View File" / "View Diff" buttons** \u2014 Opens in browser with Monaco editor (requires tunnel)
104
+
105
+ ### Session lifecycle
106
+ 1. **Creating** \u2014 Topic created, agent spawning
107
+ 2. **Warming up** \u2014 Agent primes its cache (happens automatically, invisible to you)
108
+ 3. **Active** \u2014 Ready for your messages
109
+ 4. **Auto-naming** \u2014 After your first message, the session gets a descriptive name (agent summarizes in ~5 words). The topic title updates automatically.
110
+ 5. **Finished/Error** \u2014 Session completed or hit an error
111
+
112
+ ### Agent skills
113
+ Some agents provide slash commands (e.g., /compact, /review). Available skills are pinned in the session topic.
114
+
115
+ ### Permission requests
116
+ When the agent wants to run a command, it asks for permission.
117
+ You see buttons: \u2705 Allow, \u274C Reject (and sometimes "Always Allow").
118
+ A notification also appears in the Notifications topic with a link to the request.
119
+
120
+ ### Dangerous mode
121
+ Auto-approves ALL permission requests \u2014 the agent runs any command without asking.
122
+ - Enable: \`/enable_dangerous\` or tap the \u2620\uFE0F button in the session
123
+ - Disable: \`/disable_dangerous\` or tap the \u{1F510} button
124
+ - \u26A0\uFE0F Use with caution \u2014 the agent can execute anything
125
+
126
+ ### Session timeout
127
+ Idle sessions are automatically cancelled after a configurable timeout (default: 60 minutes).
128
+ Configure via \`security.sessionTimeoutMinutes\` in config.
129
+
130
+ ---
131
+
132
+ ## Session Transfer (Handoff)
133
+
134
+ ### Chat \u2192 Terminal
135
+ 1. Type \`/handoff\` in a session topic/thread
136
+ 2. You get a command like \`claude --resume <SESSION_ID>\`
137
+ 3. Copy and run it in your terminal \u2014 the session continues there with full conversation history
138
+
139
+ ### Terminal \u2192 Chat
140
+ 1. First time: run \`openacp integrate claude\` to install the handoff skill (one-time setup)
141
+ 2. In Claude Code, use the /openacp:handoff slash command
142
+ 3. The session appears as a new topic/thread and you can continue chatting there
143
+
144
+ ### How it works
145
+ - The agent session ID is shared between platforms
146
+ - Conversation history is preserved \u2014 pick up where you left off
147
+ - The agent that supports resume (e.g., Claude with \`--resume\`) handles the actual transfer
148
+
149
+ ---
150
+
151
+ ## Managing Sessions
152
+
153
+ ### Status
154
+ - \`/status\` \u2014 Shows active sessions count and details
155
+ - Ask the Assistant: "What sessions are running?"
156
+
157
+ ### List all sessions
158
+ - \`/sessions\` \u2014 Shows all sessions with status (active, finished, error)
159
+
160
+ ### Cancel
161
+ - \`/cancel\` in a session topic \u2014 cancels that session
162
+ - Ask the Assistant: "Cancel the stuck session"
163
+
164
+ ### Cleanup
165
+ - From \`/sessions\` \u2192 tap cleanup buttons (finished, errors, all)
166
+ - Ask the Assistant: "Clean up old sessions"
167
+
168
+ ---
169
+
170
+ ## Assistant Topic
171
+
172
+ The Assistant is an always-on AI helper in its own topic. It can:
173
+ - Answer questions about OpenACP
174
+ - Create sessions for you
175
+ - Check status and health
176
+ - Cancel sessions
177
+ - Clean up old sessions
178
+ - Troubleshoot issues
179
+ - Manage configuration
180
+
181
+ Just chat naturally: "How do I create a session?", "What's the status?", "Something is stuck"
182
+
183
+ ### Clear history
184
+ \`/clear\` in the Assistant topic \u2014 resets the conversation
185
+
186
+ ---
187
+
188
+ ## System Commands
189
+
190
+ | Command | Where | What it does |
191
+ |---------|-------|-------------|
192
+ | \`/new [agent] [path]\` | Anywhere | Create new session |
193
+ | \`/newchat\` | Session topic | New session, same agent + folder |
194
+ | \`/cancel\` | Session topic | Cancel current session |
195
+ | \`/status\` | Anywhere | Show status |
196
+ | \`/sessions\` | Anywhere | List all sessions |
197
+ | \`/agents\` | Anywhere | Browse & install agents from ACP Registry |
198
+ | \`/install <name>\` | Anywhere | Install an agent |
199
+ | \`/enable_dangerous\` | Session topic | Auto-approve all permissions |
200
+ | \`/disable_dangerous\` | Session topic | Restore permission prompts |
201
+ | \`/handoff\` | Session topic | Transfer session to terminal |
202
+ | \`/clear\` | Assistant topic | Clear assistant history |
203
+ | \`/menu\` | Anywhere | Show action menu |
204
+ | \`/help\` | Anywhere | Show help |
205
+ | \`/restart\` | Anywhere | Restart OpenACP |
206
+ | \`/update\` | Anywhere | Update to latest version |
207
+ | \`/integrate\` | Anywhere | Manage agent integrations |
208
+
209
+ ---
210
+
211
+ ## Menu Buttons
212
+
213
+ | Button | Action |
214
+ |--------|--------|
215
+ | \u{1F195} New Session | Create new session (interactive) |
216
+ | \u{1F4CB} Sessions | List all sessions with cleanup options |
217
+ | \u{1F4CA} Status | Show active/total session count |
218
+ | \u{1F916} Agents | List available agents |
219
+ | \u{1F517} Integrate | Manage agent integrations |
220
+ | \u2753 Help | Show help text |
221
+ | \u{1F504} Restart | Restart OpenACP |
222
+ | \u2B06\uFE0F Update | Check and install updates |
223
+
224
+ ---
225
+
226
+ ## CLI Commands
227
+
228
+ ### Server
229
+ - \`openacp\` \u2014 Start (uses configured mode: foreground or daemon)
230
+ - \`openacp start\` \u2014 Start as background daemon
231
+ - \`openacp stop\` \u2014 Stop daemon
232
+ - \`openacp status\` \u2014 Show daemon status
233
+ - \`openacp logs\` \u2014 Tail daemon logs
234
+ - \`openacp --foreground\` \u2014 Force foreground mode (useful for debugging or containers)
235
+
236
+ ### Auto-start (run on boot)
237
+ - macOS: installs a LaunchAgent in \`~/Library/LaunchAgents/\`
238
+ - Linux: installs a systemd user service in \`~/.config/systemd/user/\`
239
+ - Enabled automatically when you start the daemon. Remove with \`openacp stop\`.
240
+
241
+ ### Configuration
242
+ - \`openacp config\` \u2014 Interactive config editor
243
+ - \`openacp reset\` \u2014 Delete all data and start fresh
244
+
245
+ ### Agent Management (CLI)
246
+ - \`openacp agents\` \u2014 List all agents (installed + available from ACP Registry)
247
+ - \`openacp agents install <name>\` \u2014 Install an agent
248
+ - \`openacp agents uninstall <name>\` \u2014 Remove an agent
249
+ - \`openacp agents info <name>\` \u2014 Show details, dependencies, and setup guide
250
+ - \`openacp agents run <name> [-- args]\` \u2014 Run agent CLI directly (for login, config, etc.)
251
+ - \`openacp agents refresh\` \u2014 Force-refresh registry cache
252
+
253
+ ### Plugins
254
+ - \`openacp install <package>\` \u2014 Install adapter plugin
255
+ - \`openacp uninstall <package>\` \u2014 Remove adapter plugin
256
+ - \`openacp plugins\` \u2014 List installed plugins
257
+
258
+ ### Integration
259
+ - \`openacp integrate <agent>\` \u2014 Install agent integration (e.g., Claude handoff skill)
260
+ - \`openacp integrate <agent> --uninstall\` \u2014 Remove integration
261
+
262
+ ### API (requires running daemon)
263
+ \`openacp api <command>\` \u2014 Interact with running daemon:
264
+
265
+ | Command | Description |
266
+ |---------|-------------|
267
+ | \`status\` | List active sessions |
268
+ | \`session <id>\` | Session details |
269
+ | \`new <agent> <path>\` | Create session |
270
+ | \`send <id> "text"\` | Send prompt |
271
+ | \`cancel <id>\` | Cancel session |
272
+ | \`dangerous <id> on/off\` | Toggle dangerous mode |
273
+ | \`topics [--status x,y]\` | List topics |
274
+ | \`delete-topic <id> [--force]\` | Delete topic |
275
+ | \`cleanup [--status x,y]\` | Cleanup old topics |
276
+ | \`agents\` | List agents |
277
+ | \`health\` | System health |
278
+ | \`config\` | Show config |
279
+ | \`config set <key> <value>\` | Update config |
280
+ | \`adapters\` | List adapters |
281
+ | \`tunnel\` | Tunnel status |
282
+ | \`notify "message"\` | Send notification |
283
+ | \`version\` | Daemon version |
284
+ | \`restart\` | Restart daemon |
285
+
286
+ ---
287
+
288
+ ## File Viewer (Tunnel)
289
+
290
+ When tunnel is enabled, file edits and diffs get "View" buttons that open in your browser:
291
+ - **Monaco Editor** \u2014 Full VS Code editor with syntax highlighting
292
+ - **Diff viewer** \u2014 Side-by-side or inline comparison
293
+ - **Line highlighting** \u2014 Click lines to highlight
294
+ - Dark/light theme toggle
295
+
296
+ ### Setup
297
+ Enable in config: set \`tunnel.enabled\` to \`true\`.
298
+ Providers: Cloudflare (default, free), ngrok, bore, Tailscale Funnel.
299
+
300
+ ### Port Tunneling
301
+
302
+ Expose any local port (dev servers, APIs, etc.) to the internet:
303
+
304
+ **CLI commands** (agent can call these directly):
305
+ - \`openacp tunnel add <port> --label <name>\` \u2014 Create tunnel to a local port
306
+ - \`openacp tunnel list\` \u2014 List active tunnels
307
+ - \`openacp tunnel stop <port>\` \u2014 Stop a tunnel
308
+ - \`openacp tunnel stop-all\` \u2014 Stop all user tunnels
309
+
310
+ **Telegram commands**:
311
+ - \`/tunnel <port> [label]\` \u2014 Create tunnel
312
+ - \`/tunnels\` \u2014 List active tunnels
313
+ - \`/tunnel stop <port>\` \u2014 Stop tunnel
314
+
315
+ Example: after starting a dev server on port 3000, run \`openacp tunnel add 3000 --label my-app\` to get a public URL.
316
+
317
+ ---
318
+
319
+ ## Configuration
320
+
321
+ Config file: \`~/.openacp/config.json\`
322
+
323
+ ### Channels
324
+ - **channels.telegram.botToken** \u2014 Your Telegram bot token
325
+ - **channels.telegram.chatId** \u2014 Your Telegram supergroup ID
326
+ - **channels.discord.botToken** \u2014 Your Discord bot token
327
+ - **channels.discord.guildId** \u2014 Your Discord server (guild) ID
328
+
329
+ ### Agents
330
+ - **defaultAgent** \u2014 Which agent to use by default
331
+ - Agents are managed via \`/agents\` (Telegram) or \`openacp agents\` (CLI)
332
+ - Installed agents are stored in \`~/.openacp/agents.json\`
333
+ - Agent list is fetched from the ACP Registry CDN and cached locally (24h)
334
+
335
+ ### Workspace
336
+ - **workspace.baseDir** \u2014 Base directory for project folders (default: \`~/openacp-workspace\`)
337
+
338
+ ### Security
339
+ - **security.allowedUserIds** \u2014 Restrict who can use the bot (empty = everyone)
340
+ - **security.maxConcurrentSessions** \u2014 Max parallel sessions (default: 5)
341
+ - **security.sessionTimeoutMinutes** \u2014 Auto-cancel idle sessions (default: 60)
342
+
343
+ ### Tunnel / File Viewer
344
+ - **tunnel.enabled** \u2014 Enable file viewer tunnel
345
+ - **tunnel.provider** \u2014 Tunnel provider: cloudflare (default, free), ngrok, bore, tailscale
346
+ - **tunnel.port** \u2014 Local port for tunnel server (default: 3100)
347
+ - **tunnel.auth.enabled** \u2014 Enable authentication for tunnel URLs
348
+ - **tunnel.auth.token** \u2014 Auth token for tunnel access
349
+ - **tunnel.storeTtlMinutes** \u2014 How long viewer links stay cached (default: 60)
350
+
351
+ ### Logging
352
+ - **logging.level** \u2014 Log level: silent, debug, info, warn, error, fatal (default: info)
353
+ - **logging.logDir** \u2014 Log directory (default: \`~/.openacp/logs\`)
354
+ - **logging.maxFileSize** \u2014 Max log file size before rotation
355
+ - **logging.maxFiles** \u2014 Max number of rotated log files
356
+ - **logging.sessionLogRetentionDays** \u2014 Auto-delete old session logs (default: 30)
357
+
358
+ ### Data Retention
359
+ - **sessionStore.ttlDays** \u2014 How long session records persist (default: 30). Old records are cleaned up automatically.
360
+
361
+ ### Environment variables
362
+ Override config with env vars:
363
+ - \`OPENACP_TELEGRAM_BOT_TOKEN\`
364
+ - \`OPENACP_TELEGRAM_CHAT_ID\`
365
+ - \`OPENACP_DISCORD_BOT_TOKEN\`
366
+ - \`OPENACP_DISCORD_GUILD_ID\`
367
+ - \`OPENACP_DEFAULT_AGENT\`
368
+ - \`OPENACP_RUN_MODE\` \u2014 foreground or daemon
369
+ - \`OPENACP_API_PORT\` \u2014 API server port (default: 21420)
370
+ - \`OPENACP_TUNNEL_ENABLED\`
371
+ - \`OPENACP_TUNNEL_PORT\`
372
+ - \`OPENACP_TUNNEL_PROVIDER\`
373
+ - \`OPENACP_LOG_LEVEL\`
374
+ - \`OPENACP_LOG_DIR\`
375
+ - \`OPENACP_DEBUG\` \u2014 Sets log level to debug
376
+
377
+ ---
378
+
379
+ ## Troubleshooting
380
+
381
+ ### Session stuck / not responding
382
+ - Check status: ask Assistant "Is anything stuck?"
383
+ - Cancel and create new: \`/cancel\` then \`/new\`
384
+ - Check system health: Assistant can run health check
385
+
386
+ ### Agent not found
387
+ - Check available agents: \`/agents\` or \`openacp agents\`
388
+ - Install missing agent: \`openacp agents install <name>\`
389
+ - Some agents need login first: \`openacp agents info <name>\` to see setup steps
390
+ - Run agent CLI for setup: \`openacp agents run <name> -- <args>\`
391
+
392
+ ### Permission request not showing
393
+ - Check Notifications topic for the alert
394
+ - Try \`/enable_dangerous\` to auto-approve (if you trust the agent)
395
+
396
+ ### Session disappeared after restart
397
+ - Sessions persist across restarts
398
+ - Send a message in the old topic \u2014 it auto-resumes
399
+ - If topic was deleted, the session record may still exist in status
400
+
401
+ ### Bot not responding at all
402
+ - Check daemon: \`openacp status\`
403
+ - Check logs: \`openacp logs\`
404
+ - Restart: \`openacp start\` or \`/restart\`
405
+
406
+ ### Messages going to wrong topic
407
+ - Each session is bound to a specific topic/thread
408
+ - If you see messages appearing in the Assistant topic instead of the session topic, try creating a new session
409
+
410
+ ### Viewing logs
411
+ - Session-specific logs: \`~/.openacp/logs/sessions/\`
412
+ - System logs: \`openacp logs\` to tail live
413
+ - Set \`OPENACP_DEBUG=true\` for verbose output
414
+
415
+ ---
416
+
417
+ ## Data & Storage
418
+
419
+ All data is stored in \`~/.openacp/\`:
420
+ - \`config.json\` \u2014 Configuration
421
+ - \`agents.json\` \u2014 Installed agents (managed by AgentCatalog)
422
+ - \`registry-cache.json\` \u2014 Cached ACP Registry data (refreshes every 24h)
423
+ - \`agents/\` \u2014 Downloaded binary agents
424
+ - \`sessions/\` \u2014 Session records and state
425
+ - \`topics/\` \u2014 Topic-to-session mappings
426
+ - \`logs/\` \u2014 System and session logs
427
+ - \`plugins/\` \u2014 Installed adapter plugins
428
+ - \`openacp.pid\` \u2014 Daemon PID file
429
+
430
+ Session records auto-cleanup: 30 days (configurable via \`sessionStore.ttlDays\`).
431
+ Session logs auto-cleanup: 30 days (configurable via \`logging.sessionLogRetentionDays\`).
432
+ `;
433
+
434
+ export {
435
+ ChannelAdapter,
436
+ PRODUCT_GUIDE
437
+ };
438
+ //# sourceMappingURL=chunk-5NBWM7P6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/core/channel.ts","../../src/product-guide.ts"],"sourcesContent":["import type { OutgoingMessage, PermissionRequest, NotificationMessage, AgentCommand } from './types.js'\n\nexport interface ChannelConfig {\n enabled: boolean\n [key: string]: unknown\n}\n\nexport interface IChannelAdapter {\n start(): Promise<void>\n stop(): Promise<void>\n\n // Outgoing: core → channel\n sendMessage(sessionId: string, content: OutgoingMessage): Promise<void>\n sendPermissionRequest(sessionId: string, request: PermissionRequest): Promise<void>\n sendNotification(notification: NotificationMessage): Promise<void>\n\n // Session lifecycle on channel side\n createSessionThread(sessionId: string, name: string): Promise<string> // returns threadId\n renameSessionThread(sessionId: string, newName: string): Promise<void>\n deleteSessionThread(sessionId: string): Promise<void>\n\n // Skill commands — optional\n sendSkillCommands(sessionId: string, commands: AgentCommand[]): Promise<void>\n cleanupSkillCommands(sessionId: string): Promise<void>\n}\n\n/**\n * Base class providing default no-op implementations for optional methods.\n * Adapters can extend this or implement IChannelAdapter directly.\n */\nexport abstract class ChannelAdapter<TCore = unknown> implements IChannelAdapter {\n constructor(protected core: TCore, protected config: ChannelConfig) {}\n\n abstract start(): Promise<void>\n abstract stop(): Promise<void>\n\n // Outgoing: core → channel\n abstract sendMessage(sessionId: string, content: OutgoingMessage): Promise<void>\n abstract sendPermissionRequest(sessionId: string, request: PermissionRequest): Promise<void>\n abstract sendNotification(notification: NotificationMessage): Promise<void>\n\n // Session lifecycle on channel side\n abstract createSessionThread(sessionId: string, name: string): Promise<string> // returns threadId\n abstract renameSessionThread(sessionId: string, newName: string): Promise<void>\n async deleteSessionThread(_sessionId: string): Promise<void> {}\n\n // Skill commands — override in adapters that support dynamic commands\n async sendSkillCommands(_sessionId: string, _commands: AgentCommand[]): Promise<void> {}\n async cleanupSkillCommands(_sessionId: string): Promise<void> {}\n}\n","/**\n * OpenACP Product Guide — comprehensive reference for the AI assistant.\n * The assistant reads this at runtime to answer user questions about features.\n */\nexport const PRODUCT_GUIDE = `\n# OpenACP — 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) — you'll see the Assistant topic/thread\n3. Tap/click 🆕 New Session or type /new\n4. Pick an agent and a project folder\n5. Chat in the session topic/thread — 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** — Node.js agents, downloaded automatically on first use\n- **uvx** — Python agents, downloaded automatically on first use\n- **binary** — 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** — Always-on helper that can answer questions, create sessions, check status, troubleshoot\n- **Notifications** — System alerts (permission requests, session errors, completions)\n\n---\n\n## Creating Sessions\n\n### From menu\nTap 🆕 New Session → choose agent (if multiple) → choose project folder → confirm\n\n### From command\n- \\`/new\\` — Interactive flow (asks agent + folder)\n- \\`/new claude ~/code/my-project\\` — Create directly with specific agent and folder\n\n### From Assistant topic\nJust ask: \"Create a session for my-project with claude\" — the assistant handles it\n\n### Quick new chat\n\\`/newchat\\` in a session topic — 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- **💭 Thinking indicator** — Shows when the agent is reasoning, with elapsed time\n- **Text responses** — Streamed in real time, updated every few seconds\n- **Tool calls** — When the agent runs commands or edits files, you see tool name, input, status, and output\n- **📋 Plan card** — Visual task progress with completed/in-progress/pending items and progress bar\n- **\"View File\" / \"View Diff\" buttons** — Opens in browser with Monaco editor (requires tunnel)\n\n### Session lifecycle\n1. **Creating** — Topic created, agent spawning\n2. **Warming up** — Agent primes its cache (happens automatically, invisible to you)\n3. **Active** — Ready for your messages\n4. **Auto-naming** — After your first message, the session gets a descriptive name (agent summarizes in ~5 words). The topic title updates automatically.\n5. **Finished/Error** — 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: ✅ Allow, ❌ 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 — the agent runs any command without asking.\n- Enable: \\`/enable_dangerous\\` or tap the ☠️ button in the session\n- Disable: \\`/disable_dangerous\\` or tap the 🔐 button\n- ⚠️ Use with caution — 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 → 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 — the session continues there with full conversation history\n\n### Terminal → 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 — 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\\` — Shows active sessions count and details\n- Ask the Assistant: \"What sessions are running?\"\n\n### List all sessions\n- \\`/sessions\\` — Shows all sessions with status (active, finished, error)\n\n### Cancel\n- \\`/cancel\\` in a session topic — cancels that session\n- Ask the Assistant: \"Cancel the stuck session\"\n\n### Cleanup\n- From \\`/sessions\\` → 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 — 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| 🆕 New Session | Create new session (interactive) |\n| 📋 Sessions | List all sessions with cleanup options |\n| 📊 Status | Show active/total session count |\n| 🤖 Agents | List available agents |\n| 🔗 Integrate | Manage agent integrations |\n| ❓ Help | Show help text |\n| 🔄 Restart | Restart OpenACP |\n| ⬆️ Update | Check and install updates |\n\n---\n\n## CLI Commands\n\n### Server\n- \\`openacp\\` — Start (uses configured mode: foreground or daemon)\n- \\`openacp start\\` — Start as background daemon\n- \\`openacp stop\\` — Stop daemon\n- \\`openacp status\\` — Show daemon status\n- \\`openacp logs\\` — Tail daemon logs\n- \\`openacp --foreground\\` — 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\\` — Interactive config editor\n- \\`openacp reset\\` — Delete all data and start fresh\n\n### Agent Management (CLI)\n- \\`openacp agents\\` — List all agents (installed + available from ACP Registry)\n- \\`openacp agents install <name>\\` — Install an agent\n- \\`openacp agents uninstall <name>\\` — Remove an agent\n- \\`openacp agents info <name>\\` — Show details, dependencies, and setup guide\n- \\`openacp agents run <name> [-- args]\\` — Run agent CLI directly (for login, config, etc.)\n- \\`openacp agents refresh\\` — Force-refresh registry cache\n\n### Plugins\n- \\`openacp install <package>\\` — Install adapter plugin\n- \\`openacp uninstall <package>\\` — Remove adapter plugin\n- \\`openacp plugins\\` — List installed plugins\n\n### Integration\n- \\`openacp integrate <agent>\\` — Install agent integration (e.g., Claude handoff skill)\n- \\`openacp integrate <agent> --uninstall\\` — Remove integration\n\n### API (requires running daemon)\n\\`openacp api <command>\\` — 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** — Full VS Code editor with syntax highlighting\n- **Diff viewer** — Side-by-side or inline comparison\n- **Line highlighting** — 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>\\` — Create tunnel to a local port\n- \\`openacp tunnel list\\` — List active tunnels\n- \\`openacp tunnel stop <port>\\` — Stop a tunnel\n- \\`openacp tunnel stop-all\\` — Stop all user tunnels\n\n**Telegram commands**:\n- \\`/tunnel <port> [label]\\` — Create tunnel\n- \\`/tunnels\\` — List active tunnels\n- \\`/tunnel stop <port>\\` — 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** — Your Telegram bot token\n- **channels.telegram.chatId** — Your Telegram supergroup ID\n- **channels.discord.botToken** — Your Discord bot token\n- **channels.discord.guildId** — Your Discord server (guild) ID\n\n### Agents\n- **defaultAgent** — 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** — Base directory for project folders (default: \\`~/openacp-workspace\\`)\n\n### Security\n- **security.allowedUserIds** — Restrict who can use the bot (empty = everyone)\n- **security.maxConcurrentSessions** — Max parallel sessions (default: 5)\n- **security.sessionTimeoutMinutes** — Auto-cancel idle sessions (default: 60)\n\n### Tunnel / File Viewer\n- **tunnel.enabled** — Enable file viewer tunnel\n- **tunnel.provider** — Tunnel provider: cloudflare (default, free), ngrok, bore, tailscale\n- **tunnel.port** — Local port for tunnel server (default: 3100)\n- **tunnel.auth.enabled** — Enable authentication for tunnel URLs\n- **tunnel.auth.token** — Auth token for tunnel access\n- **tunnel.storeTtlMinutes** — How long viewer links stay cached (default: 60)\n\n### Logging\n- **logging.level** — Log level: silent, debug, info, warn, error, fatal (default: info)\n- **logging.logDir** — Log directory (default: \\`~/.openacp/logs\\`)\n- **logging.maxFileSize** — Max log file size before rotation\n- **logging.maxFiles** — Max number of rotated log files\n- **logging.sessionLogRetentionDays** — Auto-delete old session logs (default: 30)\n\n### Data Retention\n- **sessionStore.ttlDays** — 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\\` — foreground or daemon\n- \\`OPENACP_API_PORT\\` — 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\\` — 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 — 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\\` — Configuration\n- \\`agents.json\\` — Installed agents (managed by AgentCatalog)\n- \\`registry-cache.json\\` — Cached ACP Registry data (refreshes every 24h)\n- \\`agents/\\` — Downloaded binary agents\n- \\`sessions/\\` — Session records and state\n- \\`topics/\\` — Topic-to-session mappings\n- \\`logs/\\` — System and session logs\n- \\`plugins/\\` — Installed adapter plugins\n- \\`openacp.pid\\` — 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`;\n"],"mappings":";AA8BO,IAAe,iBAAf,MAA0E;AAAA,EAC/E,YAAsB,MAAuB,QAAuB;AAA9C;AAAuB;AAAA,EAAwB;AAAA,EAarE,MAAM,oBAAoB,YAAmC;AAAA,EAAC;AAAA;AAAA,EAG9D,MAAM,kBAAkB,YAAoB,WAA0C;AAAA,EAAC;AAAA,EACvF,MAAM,qBAAqB,YAAmC;AAAA,EAAC;AACjE;;;AC7CO,IAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;","names":[]}