opc-agent 4.1.24 → 4.2.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 (103) hide show
  1. package/CHANGELOG.md +59 -119
  2. package/COMPETITIVE-GAP.md +92 -92
  3. package/CONTRIBUTING.md +36 -36
  4. package/README.md +290 -290
  5. package/README.zh-CN.md +269 -269
  6. package/dist/channels/telegram.d.ts +0 -5
  7. package/dist/channels/telegram.d.ts.map +1 -1
  8. package/dist/channels/telegram.js +0 -108
  9. package/dist/channels/telegram.js.map +1 -1
  10. package/dist/channels/voice.d.ts +97 -71
  11. package/dist/channels/voice.d.ts.map +1 -1
  12. package/dist/channels/voice.js +347 -369
  13. package/dist/channels/voice.js.map +1 -1
  14. package/dist/channels/web.d.ts.map +1 -1
  15. package/dist/channels/web.js +2 -8
  16. package/dist/channels/web.js.map +1 -1
  17. package/dist/channels/wechat.js +6 -6
  18. package/dist/cli/chat.d.ts +1 -4
  19. package/dist/cli/chat.d.ts.map +1 -1
  20. package/dist/cli/chat.js +73 -680
  21. package/dist/cli/chat.js.map +1 -1
  22. package/dist/cli/setup.js +1 -1
  23. package/dist/cli/setup.js.map +1 -1
  24. package/dist/cli.js +280 -373
  25. package/dist/cli.js.map +1 -1
  26. package/dist/core/agent.d.ts +0 -1
  27. package/dist/core/agent.d.ts.map +1 -1
  28. package/dist/core/agent.js +0 -3
  29. package/dist/core/agent.js.map +1 -1
  30. package/dist/core/runtime.d.ts.map +1 -1
  31. package/dist/core/runtime.js +22 -192
  32. package/dist/core/runtime.js.map +1 -1
  33. package/dist/deploy/index.js +56 -56
  34. package/dist/doctor.d.ts +0 -1
  35. package/dist/doctor.d.ts.map +1 -1
  36. package/dist/doctor.js +10 -155
  37. package/dist/doctor.js.map +1 -1
  38. package/dist/index.d.ts +3 -4
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +9 -9
  41. package/dist/index.js.map +1 -1
  42. package/dist/memory/deepbrain.d.ts +1 -1
  43. package/dist/memory/deepbrain.d.ts.map +1 -1
  44. package/dist/memory/deepbrain.js +4 -95
  45. package/dist/memory/deepbrain.js.map +1 -1
  46. package/dist/memory/index.d.ts +0 -2
  47. package/dist/memory/index.d.ts.map +1 -1
  48. package/dist/memory/index.js +1 -3
  49. package/dist/memory/index.js.map +1 -1
  50. package/dist/memory/user-profiler.d.ts +0 -8
  51. package/dist/memory/user-profiler.d.ts.map +1 -1
  52. package/dist/memory/user-profiler.js +0 -89
  53. package/dist/memory/user-profiler.js.map +1 -1
  54. package/dist/scheduler/cron-engine.d.ts.map +1 -1
  55. package/dist/scheduler/cron-engine.js +36 -3
  56. package/dist/scheduler/cron-engine.js.map +1 -1
  57. package/dist/skills/auto-learn.d.ts.map +1 -1
  58. package/dist/skills/auto-learn.js +11 -65
  59. package/dist/skills/auto-learn.js.map +1 -1
  60. package/dist/skills/builtin/index.d.ts.map +1 -1
  61. package/dist/skills/builtin/index.js +30 -163
  62. package/dist/skills/builtin/index.js.map +1 -1
  63. package/dist/skills/types.d.ts +1 -1
  64. package/dist/skills/types.d.ts.map +1 -1
  65. package/dist/skills/types.js +0 -1
  66. package/dist/skills/types.js.map +1 -1
  67. package/dist/studio/server.d.ts +0 -1
  68. package/dist/studio/server.d.ts.map +1 -1
  69. package/dist/studio/server.js +12 -142
  70. package/dist/studio/server.js.map +1 -1
  71. package/dist/studio-ui/index.html +40 -359
  72. package/dist/ui/components.js +105 -105
  73. package/examples/README.md +22 -22
  74. package/examples/basic-agent.ts +90 -90
  75. package/examples/brain-integration.ts +71 -71
  76. package/examples/multi-channel.ts +74 -74
  77. package/install.ps1 +127 -127
  78. package/install.sh +154 -154
  79. package/models.json +164 -164
  80. package/package.json +63 -66
  81. package/scripts/install.ps1 +31 -31
  82. package/scripts/install.sh +40 -40
  83. package/templates/ecommerce-assistant/README.md +45 -45
  84. package/templates/ecommerce-assistant/oad.yaml +47 -47
  85. package/templates/tech-support/README.md +43 -43
  86. package/templates/tech-support/oad.yaml +45 -45
  87. package/.opc/memory.db +0 -0
  88. package/dist/core/model-recommender.d.ts +0 -40
  89. package/dist/core/model-recommender.d.ts.map +0 -1
  90. package/dist/core/model-recommender.js +0 -186
  91. package/dist/core/model-recommender.js.map +0 -1
  92. package/dist/memory/evolve-engine.d.ts +0 -113
  93. package/dist/memory/evolve-engine.d.ts.map +0 -1
  94. package/dist/memory/evolve-engine.js +0 -549
  95. package/dist/memory/evolve-engine.js.map +0 -1
  96. package/dist/memory/sqlite-store.d.ts +0 -40
  97. package/dist/memory/sqlite-store.d.ts.map +0 -1
  98. package/dist/memory/sqlite-store.js +0 -269
  99. package/dist/memory/sqlite-store.js.map +0 -1
  100. package/dist/scheduler/proactive.d.ts +0 -62
  101. package/dist/scheduler/proactive.d.ts.map +0 -1
  102. package/dist/scheduler/proactive.js +0 -185
  103. package/dist/scheduler/proactive.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,119 +1,59 @@
1
- # Changelog
2
-
3
- All notable changes to OPC Agent will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).
6
-
7
- ## [4.1.16] - 2025-04-18
8
-
9
- ### Added
10
- - Full TUI terminal chat with streaming, markdown rendering, and slash commands
11
- - One-line install script for macOS/Linux (`install.sh`) and Windows (`install.ps1`)
12
- - `opc doctor` now checks tool availability and wiring (tools health check)
13
-
14
- ### Fixed
15
- - TUI input handling and display improvements
16
-
17
- ## [4.1.15] - 2025-04-15
18
-
19
- ### Added
20
- - 20 new integration tools: Jira, Slack, Notion, Linear, Confluence, Trello, Asana, Zendesk, HubSpot, Salesforce, and more
21
- - Total built-in tools count reaches **53**
22
-
23
- ## [4.1.14] - 2025-04-12
24
-
25
- ### Fixed
26
- - Process keep-alive reliability agents no longer exit unexpectedly on channel disconnect
27
- - 33 built-in tools fully wired to runtime (previously some were declared but not connected)
28
-
29
- ## [4.1.12] - 2025-04-08
30
-
31
- ### Added
32
- - Memory compaction distilled memory reduces storage and improves recall relevance
33
- - Automatic deduplication of similar memory entries
34
-
35
- ## [4.1.11] - 2025-04-05
36
-
37
- ### Added
38
- - Knowledge Evolve Engine v2.1 — improved clustering, deduplication, and refinement pipeline
39
- - Ollama-local knowledge distillation (zero API cost)
40
-
41
- ## [4.1.8] - 2025-03-28
42
-
43
- ### Added
44
- - Voice message support (STT/TTS)
45
- - Whisper integration for speech-to-text
46
- - Azure Speech and Volcano Engine TTS providers
47
- - Voice channel support in Telegram and Web UI
48
-
49
- ## [4.1.7] - 2025-03-22
50
-
51
- ### Added
52
- - 40 built-in skills: productivity, knowledge, creative, and developer skill packs
53
- - ProactiveAgent agents can initiate conversations based on triggers and schedules
54
- - `opc skill list` and `opc skill add` CLI commands
55
-
56
- ## [4.1.6] - 2025-03-18
57
-
58
- ### Added
59
- - SQLite persistent memory with full-text search (FTS5)
60
- - AgentSkills.io format support for skill discovery and sharing
61
- - Memory search across conversations with relevance ranking
62
-
63
- ### Changed
64
- - Default memory provider switched from JSON file to SQLite
65
-
66
- ## [4.1.5] - 2025-03-14
67
-
68
- ### Added
69
- - SkillLearner — agents can learn new skills from demonstrations
70
- - UserProfiler — automatic user preference tracking and personalization
71
-
72
- ## [4.1.4] - 2025-03-10
73
-
74
- ### Added
75
- - `.npmignore` for cleaner package publishing
76
- - Local cron scheduler (no external dependencies)
77
- - FileBackedStore for persistent key-value storage
78
-
79
- ### Fixed
80
- - Package size reduced by 60% with proper npmignore
81
-
82
- ## [4.1.3] - 2025-03-06
83
-
84
- ### Added
85
- - Smart model recommendation based on task complexity and available providers
86
- - `opc setup` auto-detects local Ollama models
87
-
88
- ## [4.1.2] - 2025-03-02
89
-
90
- ### Changed
91
- - Ollama-first UX overhaul — local models are now the default, cloud providers optional
92
- - `opc init` defaults to Ollama if detected, guides API key setup otherwise
93
-
94
- ### Fixed
95
- - Ollama connection reliability on slow startup
96
-
97
- ## [4.1.1] - 2025-02-26
98
-
99
- ### Changed
100
- - Studio UI improvements: better agent card layout, real-time status indicators
101
- - Dark mode support in Studio
102
-
103
- ### Fixed
104
- - Studio WebSocket reconnection on network interruption
105
-
106
- ## [4.1.0] - 2025-02-20
107
-
108
- ### Added
109
- - Initial CLI with `opc init`, `opc run`, `opc chat`, `opc studio` commands
110
- - Web-based Studio GUI at `http://localhost:4000`
111
- - OAD (Open Agent Definition) YAML configuration format
112
- - Multi-channel support: Telegram, Discord, Slack, WeChat, Email
113
- - OpenAI, Anthropic, Ollama, Azure model providers
114
- - Basic memory with learn/recall cycle
115
- - MCP Protocol server and client
116
- - A2A Protocol support
117
- - OpenTelemetry tracing
118
- - `opc doctor` with 13 health checks
119
- - `opc eval` evaluation framework
1
+ # Changelog
2
+
3
+ ## [4.2.0] - 2026-04-21
4
+
5
+ ### New Features
6
+ - **Priority Queue / Fast Mode** — Priority-aware request routing with per-session `/fast` toggle. Fast-mode requests are processed first and routed through provider priority endpoints (OpenAI, Anthropic, Google). Includes concurrency control, batch tier, and custom provider endpoint registration.
7
+ - **Gateway Registry** — Advanced multi-gateway tool provider pattern. Register multiple remote tool gateways with subscription-based access, per-tool quota tracking, auto-retry with backoff, and unified invocation routing across gateways. Complements the existing single-gateway `ToolGateway`.
8
+
9
+ ### Improvements
10
+ - New `FastModeManager` for per-session priority state management
11
+ - `PriorityQueue` with weighted dequeue, provider concurrency limits, and drain support
12
+ - `ToolGatewayRegistry` for routing tool calls across multiple gateway providers
13
+
14
+ ## [2.0.0] - 2026-04-18
15
+
16
+ ### Major Features
17
+ - **Interactive CLI** (`opc chat`) — Full TUI with streaming, slash commands, history
18
+ - **Daemon Mode** (`opc start/stop/status`) — Run agents as background processes
19
+ - **Cron Scheduler** — Built-in job scheduling with cron expressions
20
+ - **Autonomous Skill Learning** Agents create and improve skills from experience
21
+ - **Sub-Agent System** — Spawn parallel sub-agents for task delegation
22
+ - **Built-in Tools** — File operations, web fetch, shell exec, datetime
23
+ - **MCP Client** — Connect to external MCP servers via JSON-RPC
24
+ - **Telegram Channel** — Dual-mode (polling + webhook) with Markdown support
25
+ - **Discord Channel** — Gateway WebSocket with auto-reconnect
26
+ - **Slack Channel**Real Events API + chat.postMessage
27
+ - **SOUL.md + CONTEXT.md** Agent personality and project context files
28
+ - **Analytics** — Wired into runtime for message tracking, skill usage, errors
29
+
30
+ ### Enhanced
31
+ - `/health` endpoint returns comprehensive agent info
32
+ - `opc init` generates SOUL.md, CONTEXT.md, and richer project templates
33
+ - OAD config supports scheduler, learning, and tools sections
34
+ - 204 tests passing
35
+
36
+ ### CLI Commands
37
+ init, chat, run, dev, start, stop, status, jobs, skills, info, build, test, analytics, brain, logs, score, search, deploy, publish, install, plugin, tool, workflow, migrate
38
+
39
+ ## 1.4.0 (2026-04-18)
40
+ - feat: wire Analytics into AgentRuntime (message timing, skill usage, error tracking)
41
+ - feat: expose analytics snapshot on /health and /api/dashboard endpoints
42
+ - feat: enhanced /health endpoint with agent name, version, uptime, memory type, skills, channels
43
+ - feat: Slack channel — real Events API webhook server + chat.postMessage via fetch
44
+ - feat: WebChannel metadata setters (version, memory type, skills, channels, analytics provider)
45
+ - feat: AgentRuntime.getAnalytics() and getConfig() accessors
46
+
47
+ ## 1.3.1 (2026-04-17)
48
+ - fix: remove residual DTV/marketplace references
49
+ - fix: duplicate WatchPattern export
50
+
51
+ ## 1.3.0 (2026-04-17)
52
+ - feat: Traces collection (OpenTelemetry-style)
53
+ - feat: DeepBrain exporter
54
+ - feat: brain/logs/score CLI commands
55
+
56
+ ## 1.2.0
57
+ - Initial public release
58
+ - 11 channels, plugins, analytics
59
+ - Declarative OAD configuration
@@ -1,92 +1,92 @@
1
- # OPC vs OpenClaw vs Hermes — 体验差距对照表
2
-
3
- ## 状态说明
4
- - ✅ OPC 已有且不差于竞品
5
- - 🟡 OPC 有但不如竞品
6
- - ❌ OPC 缺失,竞品有
7
- - 🔵 OPC 独有优势
8
-
9
- ---
10
-
11
- ## 一、安装 & 初始化
12
-
13
- | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
14
- |---|--------|----------|--------|----------|------|--------|
15
- | 1 | 一行安装 | `npx openclaw@latest init` | `curl \| sh` one-liner | `npm i -g opc-agent && opc init` | 🟡 两步 vs 一步 | P1 |
16
- | 2 | 本地模型支持 | ✅ 支持 Ollama | ✅ 支持 | ✅ v4.1.4 Ollama-first | ✅ | - |
17
- | 3 | 智能模型推荐 | ❌ 手动选 | ❌ 手动选 | ✅ 硬件检测 + 分级推荐 | 🔵 领先 | - |
18
- | 4 | Setup Wizard | 交互式向导 | `hermes setup` 向导 | 交互式模板+LLM选择 | ✅ | - |
19
- | 5 | 迁移工具 | - | 从 OpenClaw 迁移 | ❌ 无迁移工具 | ❌ | P3 |
20
- | 6 | Doctor 诊断 | ❌ 无 | ❌ 无 | ✅ `opc doctor` 11项检查 | 🔵 领先 | - |
21
- | 7 | `npx opc-agent init` 一行启动 | - | - | ❌ 需要先全局安装 | 🟡 | P1 |
22
-
23
- ## 二、自主学习 & 技能进化
24
-
25
- | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
26
- |---|--------|----------|--------|----------|------|--------|
27
- | 8 | Agent 自写 Skill | ✅ AgentSkills | ✅ 自动创建 Skill MD | ❌ 代码未实现 | ❌ 关键差距 | P0 |
28
- | 9 | 学习触发条件 | 自动 | 5步闭环(execute→evaluate→extract→refine→retrieve) | ❌ | ❌ | P0 |
29
- | 10 | Skill 格式标准 | AgentSkills | agentskills.io MD | 无标准 | ❌ | P0 |
30
- | 11 | 预置 Skill 数量 | 100+ ClawHub | 40+ bundled | 12 模板 | 🟡 | P2 |
31
- | 12 | Skill 市场 | ClawHub | 社区共享 | ❌ 无 | ❌ | P3 |
32
- | 13 | 知识进化(evolve) | ❌ | ❌ | ✅ DeepBrain evolve 架构 | 🔵 领先 | - |
33
- | 14 | 多层知识体系 | ❌ | ❌ | ✅ 行业→岗位→工位→Agent | 🔵 领先 | - |
34
-
35
- ## 三、用户建模 & 记忆
36
-
37
- | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
38
- |---|--------|----------|--------|----------|------|--------|
39
- | 15 | USER.md 用户画像 | Workspace MD | ✅ USER.md + Honcho | ❌ 无 | ❌ | P1 |
40
- | 16 | SOUL.md 人格 | ✅ | ❌ | ✅ | ✅ | - |
41
- | 17 | 持久记忆 | SQLite + Memory | SQLite + FTS5 | FileBackedStore JSON | 🟡 | P2 |
42
- | 18 | 对话历史搜索 | ✅ | FTS5 全文搜索 | ❌ | ❌ | P2 |
43
-
44
- ## 四、渠道 & 交互
45
-
46
- | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
47
- |---|--------|----------|--------|----------|------|--------|
48
- | 19 | 多渠道(TG/Discord/Slack) | ✅ 全部 | ✅ TG/Discord/Slack | ✅ 代码有 | ✅ | - |
49
- | 20 | Web UI 聊天 | ✅ | ✅ | ✅ | ✅ | - |
50
- | 21 | Studio 管理面板 | 无(CLI only) | 无(CLI only) | ✅ OPC Studio | 🔵 领先 | - |
51
- | 22 | CLI 对话模式 | ❌ | ✅ `hermes chat` | ❌ | 🟡 | P2 |
52
-
53
- ## 五、开发者体验
54
-
55
- | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
56
- |---|--------|----------|--------|----------|------|--------|
57
- | 23 | TypeScript SDK | ❌ | ❌ | ✅ | 🔵 领先 | - |
58
- | 24 | A2A 协议 | ❌ | ❌ | ✅ | 🔵 领先 | - |
59
- | 25 | MCP 协议 | ✅ | ✅ | ✅ | ✅ | - |
60
- | 26 | Workstation 模板 | ❌ | ❌ | ✅ 100+ 角色 | 🔵 领先 | - |
61
- | 27 | `npx opc-agent` 零安装运行 | ✅ npx openclaw | ❌ | ❌ | 🟡 | P1 |
62
-
63
- ## 六、自动化 & 调度
64
-
65
- | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
66
- |---|--------|----------|--------|----------|------|--------|
67
- | 28 | Cron 定时任务 | ✅ Heartbeat | ❌ | ✅ cron-engine | ✅ | - |
68
- | 29 | 主动触达 | ✅ Proactive | ❌ | 🟡 有 cron 但无主动逻辑 | 🟡 | P2 |
69
-
70
- ---
71
-
72
- ## 优先级行动计划
73
-
74
- ### P0 — 今天必须启动(自主学习闭环)
75
- 1. **#8 Agent 自写 Skill** — 实现 auto-skill-creation
76
- 2. **#9 学习触发条件** — 实现 5 步闭环
77
- 3. **#10 Skill 格式标准** — 采用 agentskills.io 兼容格式
78
-
79
- ### P1 — 今天尽量完成(安装体验 + 用户建模)
80
- 4. **#1/#7/#27 一行安装** — 支持 `npx opc-agent init`
81
- 5. **#15 USER.md 用户建模** — Agent 自动学习用户偏好
82
-
83
- ### P2 — 本周完成
84
- 6. **#11 更多预置 Skill** — 扩充到 40+
85
- 7. **#17 SQLite 持久记忆** — 替代 JSON
86
- 8. **#18 对话历史搜索** — FTS5
87
- 9. **#22 CLI 对话模式** — `opc chat`
88
- 10. **#29 主动触达** — Agent 主动发消息
89
-
90
- ### P3 — 后续
91
- 11. **#5 迁移工具** — 从 OpenClaw/Hermes 迁移
92
- 12. **#12 Skill 市场** — OPC Hub
1
+ # OPC vs OpenClaw vs Hermes — 体验差距对照表
2
+
3
+ ## 状态说明
4
+ - ✅ OPC 已有且不差于竞品
5
+ - 🟡 OPC 有但不如竞品
6
+ - ❌ OPC 缺失,竞品有
7
+ - 🔵 OPC 独有优势
8
+
9
+ ---
10
+
11
+ ## 一、安装 & 初始化
12
+
13
+ | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
14
+ |---|--------|----------|--------|----------|------|--------|
15
+ | 1 | 一行安装 | `npx openclaw@latest init` | `curl \| sh` one-liner | `npm i -g opc-agent && opc init` | 🟡 两步 vs 一步 | P1 |
16
+ | 2 | 本地模型支持 | ✅ 支持 Ollama | ✅ 支持 | ✅ v4.1.4 Ollama-first | ✅ | - |
17
+ | 3 | 智能模型推荐 | ❌ 手动选 | ❌ 手动选 | ✅ 硬件检测 + 分级推荐 | 🔵 领先 | - |
18
+ | 4 | Setup Wizard | 交互式向导 | `hermes setup` 向导 | 交互式模板+LLM选择 | ✅ | - |
19
+ | 5 | 迁移工具 | - | 从 OpenClaw 迁移 | ❌ 无迁移工具 | ❌ | P3 |
20
+ | 6 | Doctor 诊断 | ❌ 无 | ❌ 无 | ✅ `opc doctor` 11项检查 | 🔵 领先 | - |
21
+ | 7 | `npx opc-agent init` 一行启动 | - | - | ❌ 需要先全局安装 | 🟡 | P1 |
22
+
23
+ ## 二、自主学习 & 技能进化
24
+
25
+ | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
26
+ |---|--------|----------|--------|----------|------|--------|
27
+ | 8 | Agent 自写 Skill | ✅ AgentSkills | ✅ 自动创建 Skill MD | ❌ 代码未实现 | ❌ 关键差距 | P0 |
28
+ | 9 | 学习触发条件 | 自动 | 5步闭环(execute→evaluate→extract→refine→retrieve) | ❌ | ❌ | P0 |
29
+ | 10 | Skill 格式标准 | AgentSkills | agentskills.io MD | 无标准 | ❌ | P0 |
30
+ | 11 | 预置 Skill 数量 | 100+ ClawHub | 40+ bundled | 12 模板 | 🟡 | P2 |
31
+ | 12 | Skill 市场 | ClawHub | 社区共享 | ❌ 无 | ❌ | P3 |
32
+ | 13 | 知识进化(evolve) | ❌ | ❌ | ✅ DeepBrain evolve 架构 | 🔵 领先 | - |
33
+ | 14 | 多层知识体系 | ❌ | ❌ | ✅ 行业→岗位→工位→Agent | 🔵 领先 | - |
34
+
35
+ ## 三、用户建模 & 记忆
36
+
37
+ | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
38
+ |---|--------|----------|--------|----------|------|--------|
39
+ | 15 | USER.md 用户画像 | Workspace MD | ✅ USER.md + Honcho | ❌ 无 | ❌ | P1 |
40
+ | 16 | SOUL.md 人格 | ✅ | ❌ | ✅ | ✅ | - |
41
+ | 17 | 持久记忆 | SQLite + Memory | SQLite + FTS5 | FileBackedStore JSON | 🟡 | P2 |
42
+ | 18 | 对话历史搜索 | ✅ | FTS5 全文搜索 | ❌ | ❌ | P2 |
43
+
44
+ ## 四、渠道 & 交互
45
+
46
+ | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
47
+ |---|--------|----------|--------|----------|------|--------|
48
+ | 19 | 多渠道(TG/Discord/Slack) | ✅ 全部 | ✅ TG/Discord/Slack | ✅ 代码有 | ✅ | - |
49
+ | 20 | Web UI 聊天 | ✅ | ✅ | ✅ | ✅ | - |
50
+ | 21 | Studio 管理面板 | 无(CLI only) | 无(CLI only) | ✅ OPC Studio | 🔵 领先 | - |
51
+ | 22 | CLI 对话模式 | ❌ | ✅ `hermes chat` | ❌ | 🟡 | P2 |
52
+
53
+ ## 五、开发者体验
54
+
55
+ | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
56
+ |---|--------|----------|--------|----------|------|--------|
57
+ | 23 | TypeScript SDK | ❌ | ❌ | ✅ | 🔵 领先 | - |
58
+ | 24 | A2A 协议 | ❌ | ❌ | ✅ | 🔵 领先 | - |
59
+ | 25 | MCP 协议 | ✅ | ✅ | ✅ | ✅ | - |
60
+ | 26 | Workstation 模板 | ❌ | ❌ | ✅ 100+ 角色 | 🔵 领先 | - |
61
+ | 27 | `npx opc-agent` 零安装运行 | ✅ npx openclaw | ❌ | ❌ | 🟡 | P1 |
62
+
63
+ ## 六、自动化 & 调度
64
+
65
+ | # | 体验点 | OpenClaw | Hermes | OPC 现状 | 差距 | 优先级 |
66
+ |---|--------|----------|--------|----------|------|--------|
67
+ | 28 | Cron 定时任务 | ✅ Heartbeat | ❌ | ✅ cron-engine | ✅ | - |
68
+ | 29 | 主动触达 | ✅ Proactive | ❌ | 🟡 有 cron 但无主动逻辑 | 🟡 | P2 |
69
+
70
+ ---
71
+
72
+ ## 优先级行动计划
73
+
74
+ ### P0 — 今天必须启动(自主学习闭环)
75
+ 1. **#8 Agent 自写 Skill** — 实现 auto-skill-creation
76
+ 2. **#9 学习触发条件** — 实现 5 步闭环
77
+ 3. **#10 Skill 格式标准** — 采用 agentskills.io 兼容格式
78
+
79
+ ### P1 — 今天尽量完成(安装体验 + 用户建模)
80
+ 4. **#1/#7/#27 一行安装** — 支持 `npx opc-agent init`
81
+ 5. **#15 USER.md 用户建模** — Agent 自动学习用户偏好
82
+
83
+ ### P2 — 本周完成
84
+ 6. **#11 更多预置 Skill** — 扩充到 40+
85
+ 7. **#17 SQLite 持久记忆** — 替代 JSON
86
+ 8. **#18 对话历史搜索** — FTS5
87
+ 9. **#22 CLI 对话模式** — `opc chat`
88
+ 10. **#29 主动触达** — Agent 主动发消息
89
+
90
+ ### P3 — 后续
91
+ 11. **#5 迁移工具** — 从 OpenClaw/Hermes 迁移
92
+ 12. **#12 Skill 市场** — OPC Hub
package/CONTRIBUTING.md CHANGED
@@ -1,36 +1,36 @@
1
- # Contributing
2
-
3
- Thanks for your interest in contributing!
4
-
5
- ## Getting Started
6
-
7
- 1. Fork the repo
8
- 2. Clone your fork
9
- 3. Install dependencies: `npm install`
10
- 4. Create a branch: `git checkout -b feat/my-feature`
11
- 5. Make your changes
12
- 6. Run tests: `npm test`
13
- 7. Commit: `git commit -m "feat: description"`
14
- 8. Push and open a PR
15
-
16
- ## Commit Convention
17
-
18
- - `feat:` New feature
19
- - `fix:` Bug fix
20
- - `docs:` Documentation
21
- - `test:` Tests
22
- - `refactor:` Refactoring
23
- - `chore:` Build/tooling
24
-
25
- ## Code Style
26
-
27
- - TypeScript
28
- - Run `npm run lint` before committing (if available)
29
-
30
- ## Questions?
31
-
32
- Open a Discussion or Issue.
33
-
34
- ## License
35
-
36
- By contributing, you agree that your contributions will be licensed under Apache-2.0.
1
+ # Contributing
2
+
3
+ Thanks for your interest in contributing!
4
+
5
+ ## Getting Started
6
+
7
+ 1. Fork the repo
8
+ 2. Clone your fork
9
+ 3. Install dependencies: `npm install`
10
+ 4. Create a branch: `git checkout -b feat/my-feature`
11
+ 5. Make your changes
12
+ 6. Run tests: `npm test`
13
+ 7. Commit: `git commit -m "feat: description"`
14
+ 8. Push and open a PR
15
+
16
+ ## Commit Convention
17
+
18
+ - `feat:` New feature
19
+ - `fix:` Bug fix
20
+ - `docs:` Documentation
21
+ - `test:` Tests
22
+ - `refactor:` Refactoring
23
+ - `chore:` Build/tooling
24
+
25
+ ## Code Style
26
+
27
+ - TypeScript
28
+ - Run `npm run lint` before committing (if available)
29
+
30
+ ## Questions?
31
+
32
+ Open a Discussion or Issue.
33
+
34
+ ## License
35
+
36
+ By contributing, you agree that your contributions will be licensed under Apache-2.0.