teleton 0.8.0 → 0.8.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.
Files changed (44) hide show
  1. package/README.md +28 -11
  2. package/dist/{chunk-H36RFKRI.js → chunk-2IZU3REP.js} +572 -174
  3. package/dist/chunk-3UFPFWYP.js +12 -0
  4. package/dist/{chunk-NUGDTPE4.js → chunk-4L66JHQE.js} +2 -1
  5. package/dist/{chunk-TVRZJIZX.js → chunk-55SKE6YH.js} +4 -4
  6. package/dist/{setup-server-QXED3D2L.js → chunk-57URFK6M.js} +161 -210
  7. package/dist/chunk-5SEMA47R.js +75 -0
  8. package/dist/{chunk-JHYZYFZJ.js → chunk-7YKSXOQQ.js} +17 -2
  9. package/dist/{chunk-IJBWWQE4.js → chunk-C4NKJT2Z.js} +12 -0
  10. package/dist/{chunk-RQBAMUCV.js → chunk-GGXJLMOH.js} +1451 -743
  11. package/dist/{chunk-WIKM24GZ.js → chunk-H7MFXJZK.js} +7 -2
  12. package/dist/{chunk-U56QTM46.js → chunk-HEDJCLA6.js} +85 -44
  13. package/dist/{chunk-QVBSUYVX.js → chunk-J73TA3UM.js} +17 -9
  14. package/dist/{chunk-P36I6OIV.js → chunk-LC4TV3KL.js} +13 -2
  15. package/dist/{chunk-RCMD3U65.js → chunk-NQ6FZKCE.js} +13 -0
  16. package/dist/{chunk-SD4NLLYG.js → chunk-VYKW7FMV.js} +224 -93
  17. package/dist/chunk-W25Z7CM6.js +487 -0
  18. package/dist/{chunk-OJCLKU5Z.js → chunk-WFTC3JJW.js} +16 -0
  19. package/dist/{server-H3QA252W.js → chunk-XBSCYMKM.js} +369 -374
  20. package/dist/{chunk-PHSAHTK4.js → chunk-YOSUPUAJ.js} +75 -7
  21. package/dist/cli/index.js +67 -22
  22. package/dist/{client-LNZTDQSA.js → client-YOOHI776.js} +4 -4
  23. package/dist/{get-my-gifts-OMGKOEPM.js → get-my-gifts-Y7EN7RK4.js} +3 -3
  24. package/dist/index.js +15 -14
  25. package/dist/{memory-AS7WKGTW.js → memory-Q6EWGK2S.js} +7 -5
  26. package/dist/memory-hook-WUXJNVT5.js +18 -0
  27. package/dist/{migrate-POHWYEIW.js → migrate-WFU6COBN.js} +5 -5
  28. package/dist/server-GYZXKIKU.js +787 -0
  29. package/dist/server-YODFBZKG.js +392 -0
  30. package/dist/setup-server-IZBUOJRU.js +215 -0
  31. package/dist/{store-GAFULOOX.js → store-7M4XV6M5.js} +6 -6
  32. package/dist/{task-dependency-resolver-3FIKQ7Z6.js → task-dependency-resolver-L6UUMTHK.js} +3 -3
  33. package/dist/{task-executor-RUTFG6VG.js → task-executor-XBNJLUCS.js} +3 -3
  34. package/dist/{tasks-BEZ4QRI2.js → tasks-WQIKXDX5.js} +1 -1
  35. package/dist/{tool-adapter-IH5VGBOO.js → tool-adapter-IVX2XQJE.js} +1 -1
  36. package/dist/{tool-index-H3SHOJC3.js → tool-index-NYH57UWP.js} +9 -6
  37. package/dist/{transcript-IMNE6KU3.js → transcript-IM7G25OS.js} +2 -2
  38. package/dist/web/assets/index-BfYCdwLI.js +80 -0
  39. package/dist/web/assets/{index-BrVqauzj.css → index-DmlyQVhR.css} +1 -1
  40. package/dist/web/assets/{index.es-DkU1GvWU.js → index.es-DitvF-9H.js} +1 -1
  41. package/dist/web/index.html +2 -2
  42. package/package.json +14 -5
  43. package/dist/chunk-XBE4JB7C.js +0 -8
  44. package/dist/web/assets/index-DYeEkvJ6.js +0 -72
package/README.md CHANGED
@@ -15,13 +15,13 @@
15
15
 
16
16
  ---
17
17
 
18
- <p align="center">Teleton is an autonomous AI agent platform that operates as a real Telegram user account (not a bot). It thinks through an agentic loop with tool calling, remembers conversations across sessions with hybrid RAG, and natively integrates the TON blockchain: send crypto, swap on DEXs, bid on domains, verify payments - all from a chat message. It can schedule tasks to run autonomously at any time. It ships with 125+ built-in tools, supports 11 LLM providers, and exposes a Plugin SDK so you can build your own tools on top of the platform.</p>
18
+ <p align="center">Teleton is an autonomous AI agent platform that operates as a real Telegram user account (not a bot). It thinks through an agentic loop with tool calling, remembers conversations across sessions with hybrid RAG, and natively integrates the TON blockchain: send crypto, swap on DEXs, bid on domains, verify payments - all from a chat message. It can schedule tasks to run autonomously at any time. It ships with 125+ built-in tools, supports 15 LLM providers, and exposes a Plugin SDK so you can build your own tools on top of the platform.</p>
19
19
 
20
20
  ### Key Highlights
21
21
 
22
22
  - **Full Telegram access** - Operates as a real user via MTProto (GramJS), not a limited bot
23
23
  - **Agentic loop** - Up to 5 iterations of tool calling per message, the agent thinks, acts, observes, and repeats
24
- - **Multi-Provider LLM** - Anthropic, Claude Code, OpenAI, Google Gemini, xAI Grok, Groq, OpenRouter, Moonshot, Mistral, Cocoon, Local (11 providers)
24
+ - **Multi-Provider LLM** - Anthropic, Claude Code, OpenAI, Google Gemini, xAI Grok, Groq, OpenRouter, Moonshot, Mistral, Cerebras, ZAI, MiniMax, Hugging Face, Cocoon, Local (15 providers)
25
25
  - **TON Blockchain** - Built-in W5R1 wallet, send/receive TON & jettons, swap on STON.fi and DeDust, NFTs, DNS domains
26
26
  - **Persistent memory** - Hybrid RAG (sqlite-vec + FTS5), auto-compaction with AI summarization, daily logs
27
27
  - **125+ built-in tools** - Messaging, media, blockchain, DEX trading, deals, DNS, exec, journaling, and more
@@ -52,7 +52,7 @@
52
52
 
53
53
  | Capability | Description |
54
54
  | ----------------------- | --------------------------------------------------------------------------------------------------------------------------- |
55
- | **Multi-Provider LLM** | Switch between Anthropic, Claude Code, OpenAI, Google, xAI, Groq, OpenRouter, Moonshot, Mistral, Cocoon, or Local — Dashboard validates API key before switching |
55
+ | **Multi-Provider LLM** | Switch between Anthropic, Claude Code, OpenAI, Google, xAI, Groq, OpenRouter, Moonshot, Mistral, Cerebras, ZAI, MiniMax, Hugging Face, Cocoon, or Local — Dashboard validates API key before switching |
56
56
  | **RAG + Hybrid Search** | Local ONNX embeddings (384d) or Voyage AI (512d/1024d) with FTS5 keyword + sqlite-vec cosine similarity, fused via RRF |
57
57
  | **Auto-Compaction** | AI-summarized context management prevents overflow, preserves key information in `memory/*.md` files |
58
58
  | **Observation Masking** | Compresses old tool results to one-line summaries, saving ~90% context window |
@@ -66,6 +66,7 @@
66
66
  | **Tool RAG** | Semantic tool selection (enabled by default) - sends only the top-K most relevant tools per message (hybrid vector + FTS5, configurable `top_k`, `always_include` patterns) |
67
67
  | **MCP Client** | Connect external MCP tool servers (stdio, SSE, or Streamable HTTP) - auto-discovery, namespaced tools, managed via CLI or WebUI |
68
68
  | **System Execution** | YOLO mode — 4 system tools (shell, file read/write, process list) with audit logging, configurable timeout, admin-only scope (off by default) |
69
+ | **TON Proxy** | Browse .ton domains via Tonutils-Proxy HTTP proxy, auto-downloads binary from GitHub, PID-based orphan cleanup, configurable port |
69
70
  | **Sandboxed Workspace** | Secure file system with recursive URL decoding, symlink detection, and immutable config files |
70
71
 
71
72
  ---
@@ -73,7 +74,7 @@
73
74
  ## Prerequisites
74
75
 
75
76
  - **Node.js 20.0.0+** - [Download](https://nodejs.org/)
76
- - **LLM API Key** - One of: [Anthropic](https://console.anthropic.com/) (recommended), [OpenAI](https://platform.openai.com/), [Google](https://aistudio.google.com/), [xAI](https://console.x.ai/), [Groq](https://console.groq.com/), [OpenRouter](https://openrouter.ai/), [Moonshot](https://platform.moonshot.ai/), [Mistral](https://console.mistral.ai/) — or keyless: Claude Code (auto-detect), Cocoon (TON), Local (Ollama/vLLM)
77
+ - **LLM API Key** - One of: [Anthropic](https://console.anthropic.com/) (recommended), [OpenAI](https://platform.openai.com/), [Google](https://aistudio.google.com/), [xAI](https://console.x.ai/), [Groq](https://console.groq.com/), [OpenRouter](https://openrouter.ai/), [Moonshot](https://platform.moonshot.ai/), [Mistral](https://console.mistral.ai/), [Cerebras](https://cloud.cerebras.ai/), [ZAI](https://open.bigmodel.cn/), [MiniMax](https://platform.minimaxi.com/), [Hugging Face](https://huggingface.co/settings/tokens) — or keyless: Claude Code (auto-detect), Cocoon (TON), Local (Ollama/vLLM)
77
78
  - **Telegram Account** - Dedicated account recommended for security
78
79
  - **Telegram API Credentials** - From [my.telegram.org/apps](https://my.telegram.org/apps)
79
80
  - **Your Telegram User ID** - Message [@userinfobot](https://t.me/userinfobot)
@@ -111,7 +112,7 @@ teleton setup
111
112
  ```
112
113
 
113
114
  The wizard will configure:
114
- - LLM provider selection (11 providers: Anthropic, Claude Code, OpenAI, Google, xAI, Groq, OpenRouter, Moonshot, Mistral, Cocoon, Local)
115
+ - LLM provider selection (15 providers: Anthropic, Claude Code, OpenAI, Google, xAI, Groq, OpenRouter, Moonshot, Mistral, Cerebras, ZAI, MiniMax, Hugging Face, Cocoon, Local)
115
116
  - Telegram authentication (API credentials, phone, login code)
116
117
  - Access policies (DM/group response rules)
117
118
  - Admin user ID
@@ -154,7 +155,7 @@ The `teleton setup` wizard generates a fully configured `~/.teleton/config.yaml`
154
155
 
155
156
  ```yaml
156
157
  agent:
157
- provider: "anthropic" # anthropic | claude-code | openai | google | xai | groq | openrouter | moonshot | mistral | cocoon | local
158
+ provider: "anthropic" # anthropic | claude-code | openai | google | xai | groq | openrouter | moonshot | mistral | cerebras | zai | minimax | huggingface | cocoon | local
158
159
  api_key: "sk-ant-api03-..."
159
160
  model: "claude-opus-4-6"
160
161
  utility_model: "claude-haiku-4-5-20251001" # for summarization, compaction, vision
@@ -184,6 +185,11 @@ webui: # Optional: Web dashboard
184
185
  host: "127.0.0.1" # Localhost only (security)
185
186
  # auth_token: "..." # Auto-generated if omitted
186
187
 
188
+ ton_proxy: # Optional: .ton domain proxy
189
+ enabled: false # Enable Tonutils-Proxy
190
+ port: 8080 # HTTP proxy port
191
+ # binary_path: "..." # Custom binary path (auto-downloaded if omitted)
192
+
187
193
  # capabilities: # System execution (YOLO mode, off by default)
188
194
  # exec:
189
195
  # mode: "off" # off | yolo
@@ -205,6 +211,10 @@ All models are defined in `src/config/model-catalog.ts` and shared across the CL
205
211
  | **OpenRouter** | Claude Opus/Sonnet, GPT-5, Gemini, DeepSeek R1/V3, Qwen3 Coder/Max/235B, Nemotron, Sonar Pro, MiniMax, Grok 4 |
206
212
  | **Moonshot** | Kimi K2.5, Kimi K2 Thinking |
207
213
  | **Mistral** | Devstral Small/Medium, Mistral Large, Magistral Small |
214
+ | **Cerebras** | Qwen 3 235B, GPT OSS 120B, ZAI GLM-4.7, Llama 3.1 8B |
215
+ | **ZAI** | GLM-5, GLM-4.7, GLM-4.7 Flash (free), GLM-4.6, GLM-4.5 Flash (free), GLM-4.5V |
216
+ | **MiniMax** | MiniMax M2.5, MiniMax M2.5 Fast, MiniMax M2.1, MiniMax M2 |
217
+ | **Hugging Face** | DeepSeek V3.2, DeepSeek R1, Qwen3 235B, Qwen3 Coder 480B, Qwen3 Next 80B, Kimi K2.5, GLM-4.7 Flash, GLM-5 |
208
218
  | **Cocoon** | Qwen/Qwen3-32B (decentralized, pays in TON) |
209
219
  | **Local** | Auto-detected (Ollama, vLLM, LM Studio) |
210
220
 
@@ -308,7 +318,7 @@ Teleton includes an **optional web dashboard** for monitoring and configuration.
308
318
 
309
319
  ### Features
310
320
 
311
- - **Dashboard**: System status, uptime, model info, session count, memory stats, live token usage tracking, provider switching with API key validation
321
+ - **Dashboard**: System status, uptime, model info, session count, memory stats, live token usage tracking, provider switching with API key validation, tabbed configuration editor
312
322
  - **Tools Management**: View all tools grouped by module, toggle enable/disable, change scope per tool
313
323
  - **Plugin Marketplace**: Install, update, and manage plugins from registry with secrets management
314
324
  - **Soul Editor**: Edit SOUL.md, SECURITY.md, STRATEGY.md, MEMORY.md with unsaved changes warning
@@ -316,6 +326,7 @@ Teleton includes an **optional web dashboard** for monitoring and configuration.
316
326
  - **Live Logs**: Real-time log streaming via Server-Sent Events
317
327
  - **Workspace**: File browser with inline text editor
318
328
  - **MCP Servers**: Add/remove external tool servers, manage API keys (env vars), view connection status
329
+ - **TON Proxy**: Start/stop Tonutils-Proxy, install/uninstall binary, view status
319
330
  - **Tasks**: Scheduled task management with status, dependencies, and bulk actions
320
331
 
321
332
  ### Usage
@@ -411,7 +422,7 @@ All admin commands support `/`, `!`, or `.` prefix:
411
422
 
412
423
  | Layer | Technology |
413
424
  |-------|------------|
414
- | LLM | Multi-provider via [pi-ai](https://github.com/mariozechner/pi-ai) (11 providers: Anthropic, Claude Code, OpenAI, Google, xAI, Groq, OpenRouter, Moonshot, Mistral, Cocoon, Local) |
425
+ | LLM | Multi-provider via [pi-ai](https://github.com/mariozechner/pi-ai) (15 providers: Anthropic, Claude Code, OpenAI, Google, xAI, Groq, OpenRouter, Moonshot, Mistral, Cerebras, ZAI, MiniMax, Hugging Face, Cocoon, Local) |
415
426
  | Telegram Userbot | [GramJS](https://gram.js.org/) Layer 222 fork (MTProto) |
416
427
  | Inline Bot | [Grammy](https://grammy.dev/) (Bot API, for deals) |
417
428
  | Blockchain | [TON SDK](https://github.com/ton-org/ton) (W5R1 wallet) |
@@ -476,6 +487,10 @@ src/
476
487
  │ ├── wallet-service.ts # W5R1 wallet, PBKDF2 key caching, encrypted storage
477
488
  │ ├── transfer.ts # TON send operations
478
489
  │ └── payment-verifier.ts # On-chain payment verification with replay protection
490
+ ├── ton-proxy/ # TON Proxy module (Tonutils-Proxy lifecycle)
491
+ │ ├── manager.ts # Binary download, start/stop, PID file, health checks
492
+ │ ├── module.ts # Module lifecycle integration
493
+ │ └── tools.ts # ton_proxy_status tool
479
494
  ├── sdk/ # Plugin SDK (v1.0.0)
480
495
  │ ├── index.ts # SDK factory (createPluginSDK, all objects frozen)
481
496
  │ ├── ton.ts # TON service for plugins
@@ -489,11 +504,11 @@ src/
489
504
  │ └── loader.ts # 10 sections: soul + security + strategy + memory + context + ...
490
505
  ├── config/ # Configuration
491
506
  │ ├── schema.ts # Zod schemas + validation
492
- │ ├── providers.ts # Multi-provider LLM registry (11 providers)
493
- │ └── model-catalog.ts # Shared model catalog (60+ models across all providers)
507
+ │ ├── providers.ts # Multi-provider LLM registry (15 providers)
508
+ │ └── model-catalog.ts # Shared model catalog (70+ models across all providers)
494
509
  ├── webui/ # Optional web dashboard
495
510
  │ ├── server.ts # Hono server, auth middleware, static serving
496
- │ └── routes/ # 11 API route groups (status, tools, logs, memory, soul, plugins, mcp, tasks, workspace, config, marketplace)
511
+ │ └── routes/ # 12 API route groups (status, tools, logs, memory, soul, plugins, mcp, tasks, workspace, config, marketplace, ton-proxy)
497
512
  ├── constants/ # Centralized limits, timeouts, API endpoints
498
513
  ├── utils/ # Logger, sanitize, retry, fetch
499
514
  ├── workspace/ # Path validator (anti-traversal, anti-symlink)
@@ -629,6 +644,7 @@ When `tools` is a function, the SDK provides namespaced access to core services:
629
644
  | | **NFT**: `getNftItems()`, `getNftInfo()` |
630
645
  | | **DEX** (`sdk.ton.dex`): `quote()`, `swap()`, `quoteSTONfi()`, `quoteDeDust()`, `swapSTONfi()`, `swapDeDust()` |
631
646
  | | **DNS** (`sdk.ton.dns`): `check()`, `resolve()`, `getAuctions()`, `startAuction()`, `bid()`, `link()`, `unlink()`, `setSiteRecord()` |
647
+ | | **Signed Transfers** (`sdk.ton`): `createTransfer()`, `createJettonTransfer()`, `getPublicKey()`, `getWalletVersion()` |
632
648
  | | **Utils**: `toNano()`, `fromNano()`, `validateAddress()` |
633
649
  | `sdk.telegram` | **Messages**: `sendMessage()`, `editMessage()`, `deleteMessage()`, `forwardMessage()`, `pinMessage()`, `searchMessages()`, `scheduleMessage()`, `getScheduledMessages()`, `deleteScheduledMessage()`, `sendScheduledNow()`, `getReplies()` |
634
650
  | | **Media**: `sendPhoto()`, `sendVideo()`, `sendVoice()`, `sendFile()`, `sendGif()`, `sendSticker()`, `downloadMedia()` |
@@ -718,6 +734,7 @@ MIT License - See [LICENSE](LICENSE) for details.
718
734
  - [MCP SDK](https://github.com/modelcontextprotocol/typescript-sdk) - Model Context Protocol client
719
735
  - [sqlite-vec](https://github.com/asg017/sqlite-vec) - Vector search for SQLite
720
736
  - [Hono](https://hono.dev/) - Lightweight web framework
737
+ - [Tonutils-Proxy](https://github.com/xssnick/Tonutils-Proxy) - TON Proxy for .ton sites
721
738
 
722
739
  ---
723
740