@openacp/cli 0.2.5 → 0.2.13
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 +25 -25
- package/dist/chunk-3F7TYQ4H.js +1820 -0
- package/dist/chunk-3F7TYQ4H.js.map +1 -0
- package/dist/chunk-5KBEVENA.js +412 -0
- package/dist/chunk-5KBEVENA.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +153 -45
- package/dist/index.js +15 -10
- package/dist/index.js.map +1 -1
- package/dist/{main-66K7T7MJ.js → main-VWRGYSPB.js} +31 -29
- package/dist/main-VWRGYSPB.js.map +1 -0
- package/dist/{setup-NLOC2GFD.js → setup-4EBTX2NJ.js} +4 -33
- package/dist/setup-4EBTX2NJ.js.map +1 -0
- package/package.json +6 -3
- package/dist/chunk-6YLIH7L5.js +0 -669
- package/dist/chunk-6YLIH7L5.js.map +0 -1
- package/dist/chunk-M5ZYTPZY.js +0 -220
- package/dist/chunk-M5ZYTPZY.js.map +0 -1
- package/dist/main-66K7T7MJ.js.map +0 -1
- package/dist/setup-NLOC2GFD.js.map +0 -1
package/README.md
CHANGED
|
@@ -181,28 +181,28 @@ Configure in `~/.openacp/config.json`:
|
|
|
181
181
|
## Project Structure
|
|
182
182
|
|
|
183
183
|
```
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
184
|
+
src/
|
|
185
|
+
cli.ts → CLI entry point
|
|
186
|
+
main.ts → Server startup
|
|
187
|
+
index.ts → Public API exports
|
|
188
|
+
core/
|
|
189
|
+
core.ts → OpenACPCore orchestrator
|
|
190
|
+
config.ts → ConfigManager + Zod validation
|
|
191
|
+
setup.ts → Interactive setup wizard
|
|
192
|
+
session.ts → Session (prompt queue, auto-name)
|
|
193
|
+
agent-instance.ts → ACP SDK integration
|
|
194
|
+
channel.ts → ChannelAdapter abstract class
|
|
195
|
+
plugin-manager.ts → Plugin install/uninstall/load
|
|
196
|
+
types.ts → Shared types
|
|
197
|
+
adapters/
|
|
198
|
+
telegram/
|
|
199
|
+
adapter.ts → TelegramAdapter
|
|
200
|
+
streaming.ts → Real-time message streaming
|
|
201
|
+
commands.ts → Bot commands
|
|
202
|
+
permissions.ts → Permission inline buttons
|
|
203
|
+
assistant.ts → AI assistant topic
|
|
204
|
+
formatting.ts → Markdown → Telegram HTML
|
|
205
|
+
topics.ts → Forum topic management
|
|
206
206
|
```
|
|
207
207
|
|
|
208
208
|
## Roadmap
|
|
@@ -217,10 +217,10 @@ See [docs/specs/01-roadmap.md](docs/specs/01-roadmap.md) for details.
|
|
|
217
217
|
|
|
218
218
|
## Adding a Channel Adapter
|
|
219
219
|
|
|
220
|
-
Extend `ChannelAdapter` from `@openacp/
|
|
220
|
+
Extend `ChannelAdapter` from `@openacp/cli`:
|
|
221
221
|
|
|
222
222
|
```typescript
|
|
223
|
-
import { ChannelAdapter } from '@openacp/
|
|
223
|
+
import { ChannelAdapter } from '@openacp/cli'
|
|
224
224
|
|
|
225
225
|
class MyAdapter extends ChannelAdapter {
|
|
226
226
|
async start() { /* connect to platform */ }
|
|
@@ -245,7 +245,7 @@ pnpm build
|
|
|
245
245
|
Run locally:
|
|
246
246
|
|
|
247
247
|
```bash
|
|
248
|
-
|
|
248
|
+
pnpm start
|
|
249
249
|
```
|
|
250
250
|
|
|
251
251
|
## License
|