opc-agent 4.1.2 → 4.1.3

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 (738) hide show
  1. package/dist/analytics/index.d.ts.map +1 -0
  2. package/dist/analytics/index.js.map +1 -0
  3. package/dist/channels/dingtalk.d.ts.map +1 -0
  4. package/dist/channels/dingtalk.js.map +1 -0
  5. package/dist/channels/discord.d.ts.map +1 -0
  6. package/dist/channels/discord.js.map +1 -0
  7. package/dist/channels/email.d.ts.map +1 -0
  8. package/dist/channels/email.js.map +1 -0
  9. package/dist/channels/feishu.d.ts.map +1 -0
  10. package/dist/channels/feishu.js.map +1 -0
  11. package/dist/channels/googlechat.d.ts.map +1 -0
  12. package/dist/channels/googlechat.js.map +1 -0
  13. package/dist/channels/imessage.d.ts.map +1 -0
  14. package/dist/channels/imessage.js.map +1 -0
  15. package/dist/channels/index.d.ts.map +1 -0
  16. package/dist/channels/index.js.map +1 -0
  17. package/dist/channels/irc.d.ts.map +1 -0
  18. package/dist/channels/irc.js.map +1 -0
  19. package/dist/channels/line.d.ts.map +1 -0
  20. package/dist/channels/line.js.map +1 -0
  21. package/dist/channels/matrix.d.ts.map +1 -0
  22. package/dist/channels/matrix.js.map +1 -0
  23. package/dist/channels/mattermost.d.ts.map +1 -0
  24. package/dist/channels/mattermost.js.map +1 -0
  25. package/dist/channels/msteams.d.ts.map +1 -0
  26. package/dist/channels/msteams.js.map +1 -0
  27. package/dist/channels/nostr.d.ts.map +1 -0
  28. package/dist/channels/nostr.js.map +1 -0
  29. package/dist/channels/qq.d.ts.map +1 -0
  30. package/dist/channels/qq.js.map +1 -0
  31. package/dist/channels/signal.d.ts.map +1 -0
  32. package/dist/channels/signal.js.map +1 -0
  33. package/dist/channels/slack.d.ts.map +1 -0
  34. package/dist/channels/slack.js.map +1 -0
  35. package/dist/channels/sms.d.ts.map +1 -0
  36. package/dist/channels/sms.js.map +1 -0
  37. package/dist/channels/telegram.d.ts.map +1 -0
  38. package/dist/channels/telegram.js.map +1 -0
  39. package/dist/channels/twitch.d.ts.map +1 -0
  40. package/dist/channels/twitch.js.map +1 -0
  41. package/dist/channels/voice-call.d.ts.map +1 -0
  42. package/dist/channels/voice-call.js.map +1 -0
  43. package/dist/channels/voice.d.ts.map +1 -0
  44. package/dist/channels/voice.js.map +1 -0
  45. package/dist/channels/web.d.ts.map +1 -0
  46. package/dist/channels/web.js.map +1 -0
  47. package/dist/channels/webhook.d.ts.map +1 -0
  48. package/dist/channels/webhook.js.map +1 -0
  49. package/dist/channels/websocket.d.ts.map +1 -0
  50. package/dist/channels/websocket.js.map +1 -0
  51. package/dist/channels/wechat.d.ts.map +1 -0
  52. package/dist/channels/wechat.js.map +1 -0
  53. package/dist/channels/whatsapp.d.ts.map +1 -0
  54. package/dist/channels/whatsapp.js.map +1 -0
  55. package/dist/cli/chat.d.ts.map +1 -0
  56. package/dist/cli/chat.js.map +1 -0
  57. package/dist/cli/setup.d.ts.map +1 -0
  58. package/dist/cli/setup.js.map +1 -0
  59. package/dist/cli.d.ts.map +1 -0
  60. package/dist/cli.js +72 -11
  61. package/dist/cli.js.map +1 -0
  62. package/dist/core/a2a.d.ts.map +1 -0
  63. package/dist/core/a2a.js.map +1 -0
  64. package/dist/core/agent.d.ts.map +1 -0
  65. package/dist/core/agent.js.map +1 -0
  66. package/dist/core/analytics-engine.d.ts.map +1 -0
  67. package/dist/core/analytics-engine.js.map +1 -0
  68. package/dist/core/api-server.d.ts.map +1 -0
  69. package/dist/core/api-server.js.map +1 -0
  70. package/dist/core/audio.d.ts.map +1 -0
  71. package/dist/core/audio.js.map +1 -0
  72. package/dist/core/auth.d.ts.map +1 -0
  73. package/dist/core/auth.js.map +1 -0
  74. package/dist/core/cache.d.ts.map +1 -0
  75. package/dist/core/cache.js.map +1 -0
  76. package/dist/core/collaboration.d.ts.map +1 -0
  77. package/dist/core/collaboration.js.map +1 -0
  78. package/dist/core/compose.d.ts.map +1 -0
  79. package/dist/core/compose.js.map +1 -0
  80. package/dist/core/config.d.ts.map +1 -0
  81. package/dist/core/config.js.map +1 -0
  82. package/dist/core/context-discovery.d.ts.map +1 -0
  83. package/dist/core/context-discovery.js.map +1 -0
  84. package/dist/core/context-refs.d.ts.map +1 -0
  85. package/dist/core/context-refs.js.map +1 -0
  86. package/dist/core/errors.d.ts.map +1 -0
  87. package/dist/core/errors.js.map +1 -0
  88. package/dist/core/gateway.d.ts.map +1 -0
  89. package/dist/core/gateway.js.map +1 -0
  90. package/dist/core/heartbeat.d.ts.map +1 -0
  91. package/dist/core/heartbeat.js.map +1 -0
  92. package/dist/core/hitl.d.ts.map +1 -0
  93. package/dist/core/hitl.js.map +1 -0
  94. package/dist/core/hooks.d.ts.map +1 -0
  95. package/dist/core/hooks.js.map +1 -0
  96. package/dist/core/ide-bridge.d.ts.map +1 -0
  97. package/dist/core/ide-bridge.js.map +1 -0
  98. package/dist/core/knowledge.d.ts.map +1 -0
  99. package/dist/core/knowledge.js.map +1 -0
  100. package/dist/core/logger.d.ts.map +1 -0
  101. package/dist/core/logger.js.map +1 -0
  102. package/dist/core/node-network.d.ts.map +1 -0
  103. package/dist/core/node-network.js.map +1 -0
  104. package/dist/core/orchestrator.d.ts.map +1 -0
  105. package/dist/core/orchestrator.js.map +1 -0
  106. package/dist/core/performance.d.ts.map +1 -0
  107. package/dist/core/performance.js.map +1 -0
  108. package/dist/core/profiles.d.ts.map +1 -0
  109. package/dist/core/profiles.js.map +1 -0
  110. package/dist/core/rate-limiter.d.ts.map +1 -0
  111. package/dist/core/rate-limiter.js.map +1 -0
  112. package/dist/core/room.d.ts.map +1 -0
  113. package/dist/core/room.js.map +1 -0
  114. package/dist/core/runtime.d.ts.map +1 -0
  115. package/dist/core/runtime.js.map +1 -0
  116. package/dist/core/sandbox.d.ts.map +1 -0
  117. package/dist/core/sandbox.js.map +1 -0
  118. package/dist/core/scheduler.d.ts.map +1 -0
  119. package/dist/core/scheduler.js.map +1 -0
  120. package/dist/core/security.d.ts.map +1 -0
  121. package/dist/core/security.js.map +1 -0
  122. package/dist/core/session-manager.d.ts.map +1 -0
  123. package/dist/core/session-manager.js.map +1 -0
  124. package/dist/core/streaming.d.ts.map +1 -0
  125. package/dist/core/streaming.js.map +1 -0
  126. package/dist/core/subagent.d.ts.map +1 -0
  127. package/dist/core/subagent.js.map +1 -0
  128. package/dist/core/types.d.ts.map +1 -0
  129. package/dist/core/types.js.map +1 -0
  130. package/dist/core/versioning.d.ts.map +1 -0
  131. package/dist/core/versioning.js.map +1 -0
  132. package/dist/core/vision.d.ts.map +1 -0
  133. package/dist/core/vision.js.map +1 -0
  134. package/dist/core/watch.d.ts.map +1 -0
  135. package/dist/core/watch.js.map +1 -0
  136. package/dist/core/workflow-graph.d.ts.map +1 -0
  137. package/dist/core/workflow-graph.js.map +1 -0
  138. package/dist/core/workflow.d.ts.map +1 -0
  139. package/dist/core/workflow.js.map +1 -0
  140. package/dist/daemon.d.ts.map +1 -0
  141. package/dist/daemon.js.map +1 -0
  142. package/dist/deploy/hermes.d.ts.map +1 -0
  143. package/dist/deploy/hermes.js.map +1 -0
  144. package/dist/deploy/index.d.ts.map +1 -0
  145. package/dist/deploy/index.js.map +1 -0
  146. package/dist/deploy/openclaw.d.ts.map +1 -0
  147. package/dist/deploy/openclaw.js.map +1 -0
  148. package/dist/doctor.d.ts.map +1 -0
  149. package/dist/doctor.js.map +1 -0
  150. package/dist/eval/index.d.ts.map +1 -0
  151. package/dist/eval/index.js.map +1 -0
  152. package/dist/hub/brain-seed.d.ts.map +1 -0
  153. package/dist/hub/brain-seed.js.map +1 -0
  154. package/dist/hub/client.d.ts.map +1 -0
  155. package/dist/hub/client.js.map +1 -0
  156. package/dist/i18n/index.d.ts.map +1 -0
  157. package/dist/i18n/index.js.map +1 -0
  158. package/dist/index.d.ts.map +1 -0
  159. package/dist/index.js.map +1 -0
  160. package/dist/mcp/servers/calculator-mcp.d.ts.map +1 -0
  161. package/dist/mcp/servers/calculator-mcp.js.map +1 -0
  162. package/dist/mcp/servers/crypto-mcp.d.ts.map +1 -0
  163. package/dist/mcp/servers/crypto-mcp.js.map +1 -0
  164. package/dist/mcp/servers/database-mcp.d.ts.map +1 -0
  165. package/dist/mcp/servers/database-mcp.js.map +1 -0
  166. package/dist/mcp/servers/datetime-mcp.d.ts.map +1 -0
  167. package/dist/mcp/servers/datetime-mcp.js.map +1 -0
  168. package/dist/mcp/servers/filesystem.d.ts.map +1 -0
  169. package/dist/mcp/servers/filesystem.js.map +1 -0
  170. package/dist/mcp/servers/github-mcp.d.ts.map +1 -0
  171. package/dist/mcp/servers/github-mcp.js.map +1 -0
  172. package/dist/mcp/servers/index.d.ts.map +1 -0
  173. package/dist/mcp/servers/index.js.map +1 -0
  174. package/dist/mcp/servers/json-mcp.d.ts.map +1 -0
  175. package/dist/mcp/servers/json-mcp.js.map +1 -0
  176. package/dist/mcp/servers/memory-mcp.d.ts.map +1 -0
  177. package/dist/mcp/servers/memory-mcp.js.map +1 -0
  178. package/dist/mcp/servers/regex-mcp.d.ts.map +1 -0
  179. package/dist/mcp/servers/regex-mcp.js.map +1 -0
  180. package/dist/mcp/servers/web-mcp.d.ts.map +1 -0
  181. package/dist/mcp/servers/web-mcp.js.map +1 -0
  182. package/dist/memory/context-compressor.d.ts.map +1 -0
  183. package/dist/memory/context-compressor.js.map +1 -0
  184. package/dist/memory/deepbrain.d.ts.map +1 -0
  185. package/dist/memory/deepbrain.js.map +1 -0
  186. package/dist/memory/index.d.ts.map +1 -0
  187. package/dist/memory/index.js.map +1 -0
  188. package/dist/memory/seed-loader.d.ts.map +1 -0
  189. package/dist/memory/seed-loader.js.map +1 -0
  190. package/dist/memory/user-profiler.d.ts.map +1 -0
  191. package/dist/memory/user-profiler.js.map +1 -0
  192. package/dist/plugins/content-filter.d.ts.map +1 -0
  193. package/dist/plugins/content-filter.js.map +1 -0
  194. package/dist/plugins/index.d.ts.map +1 -0
  195. package/dist/plugins/index.js.map +1 -0
  196. package/dist/plugins/logger.d.ts.map +1 -0
  197. package/dist/plugins/logger.js.map +1 -0
  198. package/dist/plugins/rate-limiter.d.ts.map +1 -0
  199. package/dist/plugins/rate-limiter.js.map +1 -0
  200. package/dist/protocols/a2a/client.d.ts.map +1 -0
  201. package/dist/protocols/a2a/client.js.map +1 -0
  202. package/dist/protocols/a2a/index.d.ts.map +1 -0
  203. package/dist/protocols/a2a/index.js.map +1 -0
  204. package/dist/protocols/a2a/server.d.ts.map +1 -0
  205. package/dist/protocols/a2a/server.js.map +1 -0
  206. package/dist/protocols/a2a/types.d.ts.map +1 -0
  207. package/dist/protocols/a2a/types.js.map +1 -0
  208. package/dist/protocols/a2a/utils.d.ts.map +1 -0
  209. package/dist/protocols/a2a/utils.js.map +1 -0
  210. package/dist/protocols/agui/client.d.ts.map +1 -0
  211. package/dist/protocols/agui/client.js.map +1 -0
  212. package/dist/protocols/agui/index.d.ts.map +1 -0
  213. package/dist/protocols/agui/index.js.map +1 -0
  214. package/dist/protocols/agui/server.d.ts.map +1 -0
  215. package/dist/protocols/agui/server.js.map +1 -0
  216. package/dist/protocols/agui/types.d.ts.map +1 -0
  217. package/dist/protocols/agui/types.js.map +1 -0
  218. package/dist/protocols/index.d.ts.map +1 -0
  219. package/dist/protocols/index.js.map +1 -0
  220. package/dist/protocols/mcp/agent-tools.d.ts.map +1 -0
  221. package/dist/protocols/mcp/agent-tools.js.map +1 -0
  222. package/dist/protocols/mcp/index.d.ts.map +1 -0
  223. package/dist/protocols/mcp/index.js.map +1 -0
  224. package/dist/protocols/mcp/server.d.ts.map +1 -0
  225. package/dist/protocols/mcp/server.js.map +1 -0
  226. package/dist/protocols/mcp/types.d.ts.map +1 -0
  227. package/dist/protocols/mcp/types.js.map +1 -0
  228. package/dist/providers/index.d.ts.map +1 -0
  229. package/dist/providers/index.js.map +1 -0
  230. package/dist/publish/index.d.ts.map +1 -0
  231. package/dist/publish/index.js.map +1 -0
  232. package/dist/scheduler/cron-engine.d.ts.map +1 -0
  233. package/dist/scheduler/cron-engine.js.map +1 -0
  234. package/dist/scheduler/index.d.ts.map +1 -0
  235. package/dist/scheduler/index.js.map +1 -0
  236. package/dist/schema/oad.d.ts.map +1 -0
  237. package/dist/schema/oad.js.map +1 -0
  238. package/dist/security/approval.d.ts.map +1 -0
  239. package/dist/security/approval.js.map +1 -0
  240. package/dist/security/approvals.d.ts.map +1 -0
  241. package/dist/security/approvals.js.map +1 -0
  242. package/dist/security/elevated.d.ts.map +1 -0
  243. package/dist/security/elevated.js.map +1 -0
  244. package/dist/security/guardrails.d.ts.map +1 -0
  245. package/dist/security/guardrails.js.map +1 -0
  246. package/dist/security/index.d.ts.map +1 -0
  247. package/dist/security/index.js.map +1 -0
  248. package/dist/security/keys.d.ts.map +1 -0
  249. package/dist/security/keys.js.map +1 -0
  250. package/dist/security/secrets.d.ts.map +1 -0
  251. package/dist/security/secrets.js.map +1 -0
  252. package/dist/skills/auto-learn.d.ts.map +1 -0
  253. package/dist/skills/auto-learn.js.map +1 -0
  254. package/dist/skills/base.d.ts.map +1 -0
  255. package/dist/skills/base.js.map +1 -0
  256. package/dist/skills/builtin/index.d.ts.map +1 -0
  257. package/dist/skills/builtin/index.js.map +1 -0
  258. package/dist/skills/document.d.ts.map +1 -0
  259. package/dist/skills/document.js.map +1 -0
  260. package/dist/skills/http.d.ts.map +1 -0
  261. package/dist/skills/http.js.map +1 -0
  262. package/dist/skills/index.d.ts.map +1 -0
  263. package/dist/skills/index.js.map +1 -0
  264. package/dist/skills/marketplace.d.ts.map +1 -0
  265. package/dist/skills/marketplace.js.map +1 -0
  266. package/dist/skills/scheduler.d.ts.map +1 -0
  267. package/dist/skills/scheduler.js.map +1 -0
  268. package/dist/skills/types.d.ts.map +1 -0
  269. package/dist/skills/types.js.map +1 -0
  270. package/dist/skills/webhook-trigger.d.ts.map +1 -0
  271. package/dist/skills/webhook-trigger.js.map +1 -0
  272. package/dist/studio/server.d.ts.map +1 -0
  273. package/dist/studio/server.js.map +1 -0
  274. package/dist/studio/templates-data.d.ts.map +1 -0
  275. package/dist/studio/templates-data.js.map +1 -0
  276. package/dist/telemetry/index.d.ts.map +1 -0
  277. package/dist/telemetry/index.js.map +1 -0
  278. package/dist/templates/code-reviewer.d.ts.map +1 -0
  279. package/dist/templates/code-reviewer.js.map +1 -0
  280. package/dist/templates/content-writer.d.ts.map +1 -0
  281. package/dist/templates/content-writer.js.map +1 -0
  282. package/dist/templates/customer-service.d.ts.map +1 -0
  283. package/dist/templates/customer-service.js.map +1 -0
  284. package/dist/templates/data-analyst.d.ts.map +1 -0
  285. package/dist/templates/data-analyst.js.map +1 -0
  286. package/dist/templates/executive-assistant.d.ts.map +1 -0
  287. package/dist/templates/executive-assistant.js.map +1 -0
  288. package/dist/templates/financial-advisor.d.ts.map +1 -0
  289. package/dist/templates/financial-advisor.js.map +1 -0
  290. package/dist/templates/hr-recruiter.d.ts.map +1 -0
  291. package/dist/templates/hr-recruiter.js.map +1 -0
  292. package/dist/templates/knowledge-base.d.ts.map +1 -0
  293. package/dist/templates/knowledge-base.js.map +1 -0
  294. package/dist/templates/legal-assistant.d.ts.map +1 -0
  295. package/dist/templates/legal-assistant.js.map +1 -0
  296. package/dist/templates/project-manager.d.ts.map +1 -0
  297. package/dist/templates/project-manager.js.map +1 -0
  298. package/dist/templates/sales-assistant.d.ts.map +1 -0
  299. package/dist/templates/sales-assistant.js.map +1 -0
  300. package/dist/templates/teacher.d.ts.map +1 -0
  301. package/dist/templates/teacher.js.map +1 -0
  302. package/dist/testing/index.d.ts.map +1 -0
  303. package/dist/testing/index.js.map +1 -0
  304. package/dist/tools/builtin/browser.d.ts.map +1 -0
  305. package/dist/tools/builtin/browser.js.map +1 -0
  306. package/dist/tools/builtin/datetime.d.ts.map +1 -0
  307. package/dist/tools/builtin/datetime.js.map +1 -0
  308. package/dist/tools/builtin/file.d.ts.map +1 -0
  309. package/dist/tools/builtin/file.js.map +1 -0
  310. package/dist/tools/builtin/home-assistant.d.ts.map +1 -0
  311. package/dist/tools/builtin/home-assistant.js.map +1 -0
  312. package/dist/tools/builtin/index.d.ts.map +1 -0
  313. package/dist/tools/builtin/index.js.map +1 -0
  314. package/dist/tools/builtin/rl-tools.d.ts.map +1 -0
  315. package/dist/tools/builtin/rl-tools.js.map +1 -0
  316. package/dist/tools/builtin/shell.d.ts.map +1 -0
  317. package/dist/tools/builtin/shell.js.map +1 -0
  318. package/dist/tools/builtin/vision.d.ts.map +1 -0
  319. package/dist/tools/builtin/vision.js.map +1 -0
  320. package/dist/tools/builtin/web-search.d.ts.map +1 -0
  321. package/dist/tools/builtin/web-search.js.map +1 -0
  322. package/dist/tools/builtin/web.d.ts.map +1 -0
  323. package/dist/tools/builtin/web.js.map +1 -0
  324. package/dist/tools/calculator.d.ts.map +1 -0
  325. package/dist/tools/calculator.js.map +1 -0
  326. package/dist/tools/datetime.d.ts.map +1 -0
  327. package/dist/tools/datetime.js.map +1 -0
  328. package/dist/tools/document-processor.d.ts.map +1 -0
  329. package/dist/tools/document-processor.js.map +1 -0
  330. package/dist/tools/gateway.d.ts.map +1 -0
  331. package/dist/tools/gateway.js.map +1 -0
  332. package/dist/tools/image-generator.d.ts.map +1 -0
  333. package/dist/tools/image-generator.js.map +1 -0
  334. package/dist/tools/integrations/calendar.d.ts.map +1 -0
  335. package/dist/tools/integrations/calendar.js.map +1 -0
  336. package/dist/tools/integrations/code-exec.d.ts.map +1 -0
  337. package/dist/tools/integrations/code-exec.js.map +1 -0
  338. package/dist/tools/integrations/csv-analyzer.d.ts.map +1 -0
  339. package/dist/tools/integrations/csv-analyzer.js.map +1 -0
  340. package/dist/tools/integrations/database.d.ts.map +1 -0
  341. package/dist/tools/integrations/database.js.map +1 -0
  342. package/dist/tools/integrations/email-send.d.ts.map +1 -0
  343. package/dist/tools/integrations/email-send.js.map +1 -0
  344. package/dist/tools/integrations/git-tool.d.ts.map +1 -0
  345. package/dist/tools/integrations/git-tool.js.map +1 -0
  346. package/dist/tools/integrations/github-tool.d.ts.map +1 -0
  347. package/dist/tools/integrations/github-tool.js.map +1 -0
  348. package/dist/tools/integrations/image-gen.d.ts.map +1 -0
  349. package/dist/tools/integrations/image-gen.js.map +1 -0
  350. package/dist/tools/integrations/index.d.ts.map +1 -0
  351. package/dist/tools/integrations/index.js.map +1 -0
  352. package/dist/tools/integrations/jira.d.ts.map +1 -0
  353. package/dist/tools/integrations/jira.js.map +1 -0
  354. package/dist/tools/integrations/notion.d.ts.map +1 -0
  355. package/dist/tools/integrations/notion.js.map +1 -0
  356. package/dist/tools/integrations/npm-tool.d.ts.map +1 -0
  357. package/dist/tools/integrations/npm-tool.js.map +1 -0
  358. package/dist/tools/integrations/pdf-reader.d.ts.map +1 -0
  359. package/dist/tools/integrations/pdf-reader.js.map +1 -0
  360. package/dist/tools/integrations/slack.d.ts.map +1 -0
  361. package/dist/tools/integrations/slack.js.map +1 -0
  362. package/dist/tools/integrations/summarizer.d.ts.map +1 -0
  363. package/dist/tools/integrations/summarizer.js.map +1 -0
  364. package/dist/tools/integrations/translator.d.ts.map +1 -0
  365. package/dist/tools/integrations/translator.js.map +1 -0
  366. package/dist/tools/integrations/trello.d.ts.map +1 -0
  367. package/dist/tools/integrations/trello.js.map +1 -0
  368. package/dist/tools/integrations/vector-search.d.ts.map +1 -0
  369. package/dist/tools/integrations/vector-search.js.map +1 -0
  370. package/dist/tools/integrations/web-scraper.d.ts.map +1 -0
  371. package/dist/tools/integrations/web-scraper.js.map +1 -0
  372. package/dist/tools/integrations/web-search.d.ts.map +1 -0
  373. package/dist/tools/integrations/web-search.js.map +1 -0
  374. package/dist/tools/integrations/webhook.d.ts.map +1 -0
  375. package/dist/tools/integrations/webhook.js.map +1 -0
  376. package/dist/tools/json-transform.d.ts.map +1 -0
  377. package/dist/tools/json-transform.js.map +1 -0
  378. package/dist/tools/mcp-client.d.ts.map +1 -0
  379. package/dist/tools/mcp-client.js.map +1 -0
  380. package/dist/tools/mcp.d.ts.map +1 -0
  381. package/dist/tools/mcp.js.map +1 -0
  382. package/dist/tools/text-analysis.d.ts.map +1 -0
  383. package/dist/tools/text-analysis.js.map +1 -0
  384. package/dist/tools/web-scraper.d.ts.map +1 -0
  385. package/dist/tools/web-scraper.js.map +1 -0
  386. package/dist/tools/web-search.d.ts.map +1 -0
  387. package/dist/tools/web-search.js.map +1 -0
  388. package/dist/traces/index.d.ts.map +1 -0
  389. package/dist/traces/index.js.map +1 -0
  390. package/dist/ui/components.d.ts.map +1 -0
  391. package/dist/ui/components.js.map +1 -0
  392. package/package.json +1 -1
  393. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -20
  394. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -14
  395. package/.github/PULL_REQUEST_TEMPLATE.md +0 -13
  396. package/.github/workflows/ci.yml +0 -24
  397. package/USABILITY-ISSUES.md +0 -73
  398. package/docs/.vitepress/config.ts +0 -103
  399. package/docs/api/cli.md +0 -48
  400. package/docs/api/oad-schema.md +0 -64
  401. package/docs/api/sdk.md +0 -80
  402. package/docs/guide/concepts.md +0 -51
  403. package/docs/guide/configuration.md +0 -79
  404. package/docs/guide/deployment.md +0 -42
  405. package/docs/guide/getting-started.md +0 -44
  406. package/docs/guide/templates.md +0 -28
  407. package/docs/guide/testing.md +0 -84
  408. package/docs/index.md +0 -27
  409. package/docs/zh/api/cli.md +0 -54
  410. package/docs/zh/api/oad-schema.md +0 -87
  411. package/docs/zh/api/sdk.md +0 -102
  412. package/docs/zh/guide/concepts.md +0 -104
  413. package/docs/zh/guide/configuration.md +0 -135
  414. package/docs/zh/guide/deployment.md +0 -81
  415. package/docs/zh/guide/getting-started.md +0 -82
  416. package/docs/zh/guide/templates.md +0 -84
  417. package/docs/zh/guide/testing.md +0 -88
  418. package/docs/zh/index.md +0 -27
  419. package/fix-sidebar.mjs +0 -188
  420. package/serve-studio.js +0 -13
  421. package/serve-test.js +0 -25
  422. package/src/analytics/index.ts +0 -66
  423. package/src/channels/dingtalk.ts +0 -46
  424. package/src/channels/discord.ts +0 -192
  425. package/src/channels/email.ts +0 -351
  426. package/src/channels/feishu.ts +0 -349
  427. package/src/channels/googlechat.ts +0 -42
  428. package/src/channels/imessage.ts +0 -32
  429. package/src/channels/index.ts +0 -15
  430. package/src/channels/irc.ts +0 -82
  431. package/src/channels/line.ts +0 -33
  432. package/src/channels/matrix.ts +0 -34
  433. package/src/channels/mattermost.ts +0 -57
  434. package/src/channels/msteams.ts +0 -33
  435. package/src/channels/nostr.ts +0 -33
  436. package/src/channels/qq.ts +0 -34
  437. package/src/channels/signal.ts +0 -33
  438. package/src/channels/slack.ts +0 -217
  439. package/src/channels/sms.ts +0 -34
  440. package/src/channels/telegram.ts +0 -616
  441. package/src/channels/twitch.ts +0 -65
  442. package/src/channels/voice-call.ts +0 -100
  443. package/src/channels/voice.ts +0 -471
  444. package/src/channels/web.ts +0 -638
  445. package/src/channels/webhook.ts +0 -199
  446. package/src/channels/websocket.ts +0 -399
  447. package/src/channels/wechat.ts +0 -329
  448. package/src/channels/whatsapp.ts +0 -33
  449. package/src/cli/chat.ts +0 -99
  450. package/src/cli/setup.ts +0 -314
  451. package/src/cli.ts +0 -2826
  452. package/src/core/a2a.ts +0 -203
  453. package/src/core/agent.ts +0 -476
  454. package/src/core/analytics-engine.ts +0 -186
  455. package/src/core/api-server.ts +0 -277
  456. package/src/core/audio.ts +0 -98
  457. package/src/core/auth.ts +0 -57
  458. package/src/core/cache.ts +0 -141
  459. package/src/core/collaboration.ts +0 -275
  460. package/src/core/compose.ts +0 -77
  461. package/src/core/config.ts +0 -14
  462. package/src/core/context-discovery.ts +0 -85
  463. package/src/core/context-refs.ts +0 -140
  464. package/src/core/errors.ts +0 -148
  465. package/src/core/gateway.ts +0 -106
  466. package/src/core/heartbeat.ts +0 -51
  467. package/src/core/hitl.ts +0 -138
  468. package/src/core/hooks.ts +0 -105
  469. package/src/core/ide-bridge.ts +0 -133
  470. package/src/core/knowledge.ts +0 -255
  471. package/src/core/logger.ts +0 -57
  472. package/src/core/node-network.ts +0 -86
  473. package/src/core/orchestrator.ts +0 -215
  474. package/src/core/performance.ts +0 -187
  475. package/src/core/profiles.ts +0 -122
  476. package/src/core/rate-limiter.ts +0 -128
  477. package/src/core/room.ts +0 -109
  478. package/src/core/runtime.ts +0 -435
  479. package/src/core/sandbox.ts +0 -344
  480. package/src/core/scheduler.ts +0 -187
  481. package/src/core/security.ts +0 -171
  482. package/src/core/session-manager.ts +0 -137
  483. package/src/core/streaming.ts +0 -195
  484. package/src/core/subagent.ts +0 -98
  485. package/src/core/types.ts +0 -68
  486. package/src/core/versioning.ts +0 -106
  487. package/src/core/vision.ts +0 -180
  488. package/src/core/watch.ts +0 -178
  489. package/src/core/workflow-graph.ts +0 -365
  490. package/src/core/workflow.ts +0 -235
  491. package/src/daemon.ts +0 -96
  492. package/src/deploy/hermes.ts +0 -156
  493. package/src/deploy/index.ts +0 -255
  494. package/src/deploy/openclaw.ts +0 -190
  495. package/src/doctor.ts +0 -243
  496. package/src/eval/index.ts +0 -211
  497. package/src/eval/suites/basic.json +0 -16
  498. package/src/eval/suites/memory.json +0 -12
  499. package/src/eval/suites/safety.json +0 -14
  500. package/src/hub/brain-seed.ts +0 -54
  501. package/src/hub/client.ts +0 -60
  502. package/src/i18n/index.ts +0 -216
  503. package/src/index.ts +0 -283
  504. package/src/mcp/servers/calculator-mcp.ts +0 -65
  505. package/src/mcp/servers/crypto-mcp.ts +0 -73
  506. package/src/mcp/servers/database-mcp.ts +0 -72
  507. package/src/mcp/servers/datetime-mcp.ts +0 -69
  508. package/src/mcp/servers/filesystem.ts +0 -66
  509. package/src/mcp/servers/github-mcp.ts +0 -58
  510. package/src/mcp/servers/index.ts +0 -63
  511. package/src/mcp/servers/json-mcp.ts +0 -102
  512. package/src/mcp/servers/memory-mcp.ts +0 -56
  513. package/src/mcp/servers/regex-mcp.ts +0 -53
  514. package/src/mcp/servers/web-mcp.ts +0 -49
  515. package/src/memory/context-compressor.ts +0 -189
  516. package/src/memory/deepbrain.ts +0 -202
  517. package/src/memory/index.ts +0 -41
  518. package/src/memory/seed-loader.ts +0 -212
  519. package/src/memory/user-profiler.ts +0 -215
  520. package/src/plugins/content-filter.ts +0 -23
  521. package/src/plugins/index.ts +0 -339
  522. package/src/plugins/logger.ts +0 -18
  523. package/src/plugins/rate-limiter.ts +0 -38
  524. package/src/protocols/a2a/client.ts +0 -132
  525. package/src/protocols/a2a/index.ts +0 -8
  526. package/src/protocols/a2a/server.ts +0 -333
  527. package/src/protocols/a2a/types.ts +0 -88
  528. package/src/protocols/a2a/utils.ts +0 -50
  529. package/src/protocols/agui/client.ts +0 -83
  530. package/src/protocols/agui/index.ts +0 -4
  531. package/src/protocols/agui/server.ts +0 -218
  532. package/src/protocols/agui/types.ts +0 -153
  533. package/src/protocols/index.ts +0 -2
  534. package/src/protocols/mcp/agent-tools.ts +0 -134
  535. package/src/protocols/mcp/index.ts +0 -8
  536. package/src/protocols/mcp/server.ts +0 -262
  537. package/src/protocols/mcp/types.ts +0 -69
  538. package/src/providers/index.ts +0 -632
  539. package/src/publish/index.ts +0 -376
  540. package/src/scheduler/cron-engine.ts +0 -191
  541. package/src/scheduler/index.ts +0 -2
  542. package/src/schema/oad.ts +0 -217
  543. package/src/security/approval.ts +0 -131
  544. package/src/security/approvals.ts +0 -143
  545. package/src/security/elevated.ts +0 -105
  546. package/src/security/guardrails.ts +0 -248
  547. package/src/security/index.ts +0 -9
  548. package/src/security/keys.ts +0 -87
  549. package/src/security/secrets.ts +0 -129
  550. package/src/skills/auto-learn.ts +0 -262
  551. package/src/skills/base.ts +0 -16
  552. package/src/skills/builtin/index.ts +0 -408
  553. package/src/skills/document.ts +0 -100
  554. package/src/skills/http.ts +0 -35
  555. package/src/skills/index.ts +0 -27
  556. package/src/skills/marketplace.ts +0 -113
  557. package/src/skills/scheduler.ts +0 -80
  558. package/src/skills/types.ts +0 -42
  559. package/src/skills/webhook-trigger.ts +0 -59
  560. package/src/studio/server.ts +0 -1791
  561. package/src/studio/templates-data.ts +0 -178
  562. package/src/studio-ui/index.html +0 -3076
  563. package/src/telemetry/index.ts +0 -324
  564. package/src/templates/code-reviewer.ts +0 -30
  565. package/src/templates/content-writer.ts +0 -58
  566. package/src/templates/customer-service.ts +0 -76
  567. package/src/templates/data-analyst.ts +0 -66
  568. package/src/templates/executive-assistant.ts +0 -71
  569. package/src/templates/financial-advisor.ts +0 -60
  570. package/src/templates/hr-recruiter.ts +0 -58
  571. package/src/templates/knowledge-base.ts +0 -27
  572. package/src/templates/legal-assistant.ts +0 -71
  573. package/src/templates/project-manager.ts +0 -58
  574. package/src/templates/sales-assistant.ts +0 -75
  575. package/src/templates/teacher.ts +0 -75
  576. package/src/testing/index.ts +0 -181
  577. package/src/tools/builtin/browser.ts +0 -299
  578. package/src/tools/builtin/datetime.ts +0 -41
  579. package/src/tools/builtin/file.ts +0 -107
  580. package/src/tools/builtin/home-assistant.ts +0 -116
  581. package/src/tools/builtin/index.ts +0 -37
  582. package/src/tools/builtin/rl-tools.ts +0 -243
  583. package/src/tools/builtin/shell.ts +0 -43
  584. package/src/tools/builtin/vision.ts +0 -64
  585. package/src/tools/builtin/web-search.ts +0 -126
  586. package/src/tools/builtin/web.ts +0 -35
  587. package/src/tools/calculator.ts +0 -73
  588. package/src/tools/datetime.ts +0 -149
  589. package/src/tools/document-processor.ts +0 -213
  590. package/src/tools/gateway.ts +0 -220
  591. package/src/tools/image-generator.ts +0 -150
  592. package/src/tools/integrations/calendar.ts +0 -73
  593. package/src/tools/integrations/code-exec.ts +0 -39
  594. package/src/tools/integrations/csv-analyzer.ts +0 -92
  595. package/src/tools/integrations/database.ts +0 -44
  596. package/src/tools/integrations/email-send.ts +0 -76
  597. package/src/tools/integrations/git-tool.ts +0 -42
  598. package/src/tools/integrations/github-tool.ts +0 -76
  599. package/src/tools/integrations/image-gen.ts +0 -56
  600. package/src/tools/integrations/index.ts +0 -92
  601. package/src/tools/integrations/jira.ts +0 -83
  602. package/src/tools/integrations/notion.ts +0 -71
  603. package/src/tools/integrations/npm-tool.ts +0 -48
  604. package/src/tools/integrations/pdf-reader.ts +0 -58
  605. package/src/tools/integrations/slack.ts +0 -65
  606. package/src/tools/integrations/summarizer.ts +0 -49
  607. package/src/tools/integrations/translator.ts +0 -48
  608. package/src/tools/integrations/trello.ts +0 -60
  609. package/src/tools/integrations/vector-search.ts +0 -42
  610. package/src/tools/integrations/web-scraper.ts +0 -47
  611. package/src/tools/integrations/web-search.ts +0 -58
  612. package/src/tools/integrations/webhook.ts +0 -38
  613. package/src/tools/json-transform.ts +0 -187
  614. package/src/tools/mcp-client.ts +0 -131
  615. package/src/tools/mcp.ts +0 -76
  616. package/src/tools/text-analysis.ts +0 -116
  617. package/src/tools/web-scraper.ts +0 -179
  618. package/src/tools/web-search.ts +0 -180
  619. package/src/traces/index.ts +0 -132
  620. package/src/types/agent-workstation.d.ts +0 -2
  621. package/src/ui/components.ts +0 -127
  622. package/srv-err.txt +0 -0
  623. package/srv-out.txt +0 -1
  624. package/test-agent/Dockerfile +0 -9
  625. package/test-agent/README.md +0 -50
  626. package/test-agent/agent.yaml +0 -23
  627. package/test-agent/docker-compose.yml +0 -11
  628. package/test-agent/oad.yaml +0 -31
  629. package/test-agent/package-lock.json +0 -1492
  630. package/test-agent/package.json +0 -18
  631. package/test-agent/src/index.ts +0 -24
  632. package/test-agent/src/skills/echo.ts +0 -15
  633. package/test-agent/tsconfig.json +0 -25
  634. package/test-full.js +0 -43
  635. package/test-sidebar.js +0 -22
  636. package/test-studio3.js +0 -75
  637. package/test-studio4.js +0 -41
  638. package/tests/a2a-protocol.test.ts +0 -285
  639. package/tests/a2a.test.ts +0 -66
  640. package/tests/agent.test.ts +0 -72
  641. package/tests/agui-protocol.test.ts +0 -246
  642. package/tests/analytics.test.ts +0 -50
  643. package/tests/api-server.test.ts +0 -148
  644. package/tests/approvals.test.ts +0 -89
  645. package/tests/audio.test.ts +0 -40
  646. package/tests/auto-learn.test.ts +0 -105
  647. package/tests/brain-seed-extended.test.ts +0 -490
  648. package/tests/brain-seed.test.ts +0 -239
  649. package/tests/browser.test.ts +0 -179
  650. package/tests/builtin-tools.test.ts +0 -83
  651. package/tests/channel.test.ts +0 -39
  652. package/tests/channels/discord.test.ts +0 -79
  653. package/tests/channels/email.test.ts +0 -148
  654. package/tests/channels/feishu.test.ts +0 -123
  655. package/tests/channels/telegram.test.ts +0 -129
  656. package/tests/channels/websocket.test.ts +0 -53
  657. package/tests/channels/wechat.test.ts +0 -170
  658. package/tests/channels-extra.test.ts +0 -45
  659. package/tests/chat-cli.test.ts +0 -160
  660. package/tests/cli.test.ts +0 -46
  661. package/tests/collaboration.test.ts +0 -319
  662. package/tests/context-compressor.test.ts +0 -172
  663. package/tests/context-refs.test.ts +0 -121
  664. package/tests/cron-engine.test.ts +0 -101
  665. package/tests/daemon.test.ts +0 -135
  666. package/tests/deepbrain-wire.test.ts +0 -234
  667. package/tests/deploy-and-dag.test.ts +0 -196
  668. package/tests/doctor.test.ts +0 -38
  669. package/tests/document-processor.test.ts +0 -69
  670. package/tests/e2e-nocode.test.ts +0 -442
  671. package/tests/e2e.test.ts +0 -134
  672. package/tests/elevated.test.ts +0 -69
  673. package/tests/errors.test.ts +0 -83
  674. package/tests/eval.test.ts +0 -173
  675. package/tests/gateway.test.ts +0 -63
  676. package/tests/guardrails.test.ts +0 -177
  677. package/tests/hitl.test.ts +0 -71
  678. package/tests/home-assistant.test.ts +0 -40
  679. package/tests/hooks.test.ts +0 -79
  680. package/tests/i18n.test.ts +0 -41
  681. package/tests/ide-bridge.test.ts +0 -38
  682. package/tests/image-generator.test.ts +0 -84
  683. package/tests/init-role.test.ts +0 -124
  684. package/tests/integrations.test.ts +0 -249
  685. package/tests/mcp-client.test.ts +0 -92
  686. package/tests/mcp-server.test.ts +0 -178
  687. package/tests/mcp-servers.test.ts +0 -260
  688. package/tests/mcp.test.ts +0 -54
  689. package/tests/node-network.test.ts +0 -74
  690. package/tests/oad.test.ts +0 -68
  691. package/tests/performance.test.ts +0 -115
  692. package/tests/plugin-a2a-enhanced.test.ts +0 -230
  693. package/tests/plugin.test.ts +0 -74
  694. package/tests/profiles.test.ts +0 -61
  695. package/tests/publish.test.ts +0 -231
  696. package/tests/rl-tools.test.ts +0 -93
  697. package/tests/room.test.ts +0 -106
  698. package/tests/runtime.test.ts +0 -42
  699. package/tests/sandbox-manager.test.ts +0 -46
  700. package/tests/sandbox.test.ts +0 -46
  701. package/tests/scheduler.test.ts +0 -200
  702. package/tests/secrets.test.ts +0 -107
  703. package/tests/security-enhanced.test.ts +0 -233
  704. package/tests/security.test.ts +0 -60
  705. package/tests/settings-api.test.ts +0 -148
  706. package/tests/setup.test.ts +0 -73
  707. package/tests/skill-learner.test.ts +0 -161
  708. package/tests/streaming.test.ts +0 -109
  709. package/tests/studio.test.ts +0 -402
  710. package/tests/subagent.test.ts +0 -193
  711. package/tests/telegram-discord.test.ts +0 -60
  712. package/tests/telemetry.test.ts +0 -186
  713. package/tests/templates.test.ts +0 -77
  714. package/tests/tools/builtin-extended.test.ts +0 -138
  715. package/tests/user-profiler.test.ts +0 -169
  716. package/tests/v070.test.ts +0 -76
  717. package/tests/v090-features.test.ts +0 -254
  718. package/tests/versioning.test.ts +0 -75
  719. package/tests/vision.test.ts +0 -61
  720. package/tests/voice-call.test.ts +0 -47
  721. package/tests/voice-enhanced.test.ts +0 -169
  722. package/tests/voice-interaction.test.ts +0 -38
  723. package/tests/voice.test.ts +0 -61
  724. package/tests/web-search.test.ts +0 -155
  725. package/tests/webhook.test.ts +0 -29
  726. package/tests/workflow-graph.test.ts +0 -279
  727. package/tests/workflow.test.ts +0 -143
  728. package/tmp-js-test.js +0 -1532
  729. package/tmp-sc.js +0 -1716
  730. package/tutorial/customer-service-agent/README.md +0 -612
  731. package/tutorial/customer-service-agent/SOUL.md +0 -26
  732. package/tutorial/customer-service-agent/agent.yaml +0 -63
  733. package/tutorial/customer-service-agent/package.json +0 -19
  734. package/tutorial/customer-service-agent/src/index.ts +0 -69
  735. package/tutorial/customer-service-agent/src/skills/faq.ts +0 -27
  736. package/tutorial/customer-service-agent/src/skills/ticket.ts +0 -22
  737. package/tutorial/customer-service-agent/tsconfig.json +0 -14
  738. package/vitest.config.ts +0 -9
@@ -1,262 +0,0 @@
1
- import * as fs from 'fs';
2
- import * as path from 'path';
3
- import type { Message } from '../core/types';
4
- import type { LLMProvider } from '../providers';
5
-
6
- export interface LearnedSkill {
7
- name: string;
8
- description: string;
9
- trigger: string;
10
- instructions: string;
11
- examples: string[];
12
- createdAt: Date;
13
- usageCount: number;
14
- lastUsed?: Date;
15
- version: number;
16
- }
17
-
18
- const SKILL_EXTRACTION_PROMPT = `Analyze this conversation and determine if it represents a repeatable task that should be saved as a reusable skill.
19
-
20
- Criteria for creating a skill:
21
- 1. The task is specific and well-defined
22
- 2. It could reasonably happen again
23
- 3. The solution has clear steps
24
-
25
- If yes, extract:
26
- - name: short kebab-case name
27
- - description: one-line description
28
- - trigger: regex pattern or keywords that would identify this task
29
- - instructions: step-by-step instructions to complete the task
30
- - examples: 2-3 example user inputs that would trigger this skill
31
-
32
- If this is just casual chat or a one-off question, return null.
33
-
34
- Respond in JSON format only: { "shouldCreate": boolean, "skill": { "name": string, "description": string, "trigger": string, "instructions": string, "examples": string[] } | null }
35
-
36
- Conversation:
37
- `;
38
-
39
- const SKILL_IMPROVEMENT_PROMPT = `This skill was just used. Based on the outcome, suggest improvements:
40
-
41
- Current skill:
42
- `;
43
-
44
- const SKILL_IMPROVEMENT_SUFFIX = `
45
-
46
- Respond in JSON only: { "shouldImprove": boolean, "improvements": { "instructions"?: string, "trigger"?: string, "examples"?: string[] } | null }`;
47
-
48
- export class SkillLearner {
49
- private skillsDir: string;
50
- private skills: LearnedSkill[] = [];
51
- private loaded = false;
52
-
53
- constructor(skillsDir: string) {
54
- this.skillsDir = skillsDir;
55
- }
56
-
57
- async analyzeForSkillCreation(
58
- conversation: Message[],
59
- provider: LLMProvider,
60
- ): Promise<LearnedSkill | null> {
61
- const conversationText = conversation
62
- .map((m) => `${m.role}: ${m.content}`)
63
- .join('\n');
64
-
65
- const prompt = SKILL_EXTRACTION_PROMPT + conversationText;
66
-
67
- try {
68
- const response = await provider.chat(
69
- [{ id: 'analysis', role: 'user', content: prompt, timestamp: Date.now() }],
70
- 'You are a skill extraction assistant. Respond only with valid JSON.',
71
- );
72
-
73
- const json = extractJson(response);
74
- if (!json || !json.shouldCreate || !json.skill) return null;
75
-
76
- const skill: LearnedSkill = {
77
- name: json.skill.name,
78
- description: json.skill.description,
79
- trigger: json.skill.trigger,
80
- instructions: json.skill.instructions,
81
- examples: json.skill.examples || [],
82
- createdAt: new Date(),
83
- usageCount: 0,
84
- version: 1,
85
- };
86
-
87
- return skill;
88
- } catch {
89
- return null;
90
- }
91
- }
92
-
93
- async saveSkill(skill: LearnedSkill): Promise<void> {
94
- fs.mkdirSync(this.skillsDir, { recursive: true });
95
- const filePath = path.join(this.skillsDir, `${skill.name}.md`);
96
- fs.writeFileSync(filePath, skillToMarkdown(skill), 'utf-8');
97
-
98
- // Update cache
99
- const idx = this.skills.findIndex((s) => s.name === skill.name);
100
- if (idx >= 0) {
101
- this.skills[idx] = skill;
102
- } else {
103
- this.skills.push(skill);
104
- }
105
- }
106
-
107
- async loadLearnedSkills(): Promise<LearnedSkill[]> {
108
- if (!fs.existsSync(this.skillsDir)) return [];
109
-
110
- const files = fs.readdirSync(this.skillsDir).filter((f) => f.endsWith('.md'));
111
- this.skills = files
112
- .map((f) => {
113
- try {
114
- const content = fs.readFileSync(path.join(this.skillsDir, f), 'utf-8');
115
- return parseSkillMarkdown(content);
116
- } catch {
117
- return null;
118
- }
119
- })
120
- .filter((s): s is LearnedSkill => s !== null);
121
-
122
- this.loaded = true;
123
- return this.skills;
124
- }
125
-
126
- matchSkill(message: string): LearnedSkill | null {
127
- if (!this.loaded) return null;
128
-
129
- for (const skill of this.skills) {
130
- try {
131
- const regex = new RegExp(skill.trigger, 'i');
132
- if (regex.test(message)) return skill;
133
- } catch {
134
- // Fallback: keyword matching — split on common separators, strip non-word chars
135
- const keywords = skill.trigger.split(/[\s,;|]+/).map(k => k.replace(/[^\w-]/g, '').toLowerCase()).filter(k => k.length > 2);
136
- const lower = message.toLowerCase();
137
- if (keywords.some((kw) => lower.includes(kw))) return skill;
138
- }
139
- }
140
- return null;
141
- }
142
-
143
- async improveSkill(
144
- skill: LearnedSkill,
145
- conversation: Message[],
146
- provider: LLMProvider,
147
- ): Promise<void> {
148
- const conversationText = conversation
149
- .map((m) => `${m.role}: ${m.content}`)
150
- .join('\n');
151
-
152
- const prompt =
153
- SKILL_IMPROVEMENT_PROMPT +
154
- skillToMarkdown(skill) +
155
- '\n\nConversation where it was used:\n' +
156
- conversationText +
157
- SKILL_IMPROVEMENT_SUFFIX;
158
-
159
- try {
160
- const response = await provider.chat(
161
- [{ id: 'improve', role: 'user', content: prompt, timestamp: Date.now() }],
162
- 'You are a skill improvement assistant. Respond only with valid JSON.',
163
- );
164
-
165
- const json = extractJson(response);
166
- if (!json || !json.shouldImprove || !json.improvements) return;
167
-
168
- const { improvements } = json;
169
- if (improvements.instructions) skill.instructions = improvements.instructions;
170
- if (improvements.trigger) skill.trigger = improvements.trigger;
171
- if (improvements.examples) skill.examples = [...skill.examples, ...improvements.examples];
172
- skill.version++;
173
-
174
- await this.saveSkill(skill);
175
- } catch {
176
- // Silently fail — improvement is best-effort
177
- }
178
- }
179
-
180
- getSkills(): LearnedSkill[] {
181
- return [...this.skills];
182
- }
183
- }
184
-
185
- // ─── Helpers ────────────────────────────────────────────────
186
-
187
- function extractJson(text: string): any {
188
- // Try to extract JSON from response (may be wrapped in markdown code block)
189
- const match = text.match(/\{[\s\S]*\}/);
190
- if (!match) return null;
191
- try {
192
- return JSON.parse(match[0]);
193
- } catch {
194
- return null;
195
- }
196
- }
197
-
198
- export function skillToMarkdown(skill: LearnedSkill): string {
199
- const lines = [
200
- `# Skill: ${skill.name}`,
201
- '',
202
- '## Description',
203
- skill.description,
204
- '',
205
- '## Trigger',
206
- `Pattern: ${skill.trigger}`,
207
- '',
208
- '## Instructions',
209
- skill.instructions,
210
- '',
211
- '## Examples',
212
- ...skill.examples.map((e) => `- "${e}"`),
213
- '',
214
- '## Metadata',
215
- `- Created: ${skill.createdAt.toISOString()}`,
216
- `- Version: ${skill.version}`,
217
- `- Usage Count: ${skill.usageCount}`,
218
- `- Last Used: ${skill.lastUsed?.toISOString() ?? 'never'}`,
219
- '',
220
- ];
221
- return lines.join('\n');
222
- }
223
-
224
- export function parseSkillMarkdown(content: string): LearnedSkill | null {
225
- const nameMatch = content.match(/^# Skill:\s*(.+)$/m);
226
- if (!nameMatch) return null;
227
-
228
- const section = (heading: string): string => {
229
- const re = new RegExp(`## ${heading}\\s*\\n([\\s\\S]*?)(?=\\n## |$)`);
230
- const m = content.match(re);
231
- return m ? m[1].trim() : '';
232
- };
233
-
234
- const description = section('Description');
235
- const triggerLine = section('Trigger');
236
- const trigger = triggerLine.replace(/^Pattern:\s*/i, '').trim();
237
- const instructions = section('Instructions');
238
-
239
- const examplesRaw = section('Examples');
240
- const examples = examplesRaw
241
- .split('\n')
242
- .map((l) => l.replace(/^-\s*"?|"?\s*$/g, '').trim())
243
- .filter(Boolean);
244
-
245
- const metadata = section('Metadata');
246
- const getMeta = (key: string): string => {
247
- const m = metadata.match(new RegExp(`- ${key}:\\s*(.+)`, 'i'));
248
- return m ? m[1].trim() : '';
249
- };
250
-
251
- return {
252
- name: nameMatch[1].trim(),
253
- description,
254
- trigger,
255
- instructions,
256
- examples,
257
- createdAt: new Date(getMeta('Created') || Date.now()),
258
- version: parseInt(getMeta('Version') || '1', 10),
259
- usageCount: parseInt(getMeta('Usage Count') || '0', 10),
260
- lastUsed: getMeta('Last Used') !== 'never' ? new Date(getMeta('Last Used')) : undefined,
261
- };
262
- }
@@ -1,16 +0,0 @@
1
- import type { ISkill, AgentContext, Message, SkillResult } from '../core/types';
2
-
3
- export abstract class BaseSkill implements ISkill {
4
- abstract name: string;
5
- abstract description: string;
6
-
7
- abstract execute(context: AgentContext, message: Message): Promise<SkillResult>;
8
-
9
- protected noMatch(): SkillResult {
10
- return { handled: false, confidence: 0 };
11
- }
12
-
13
- protected match(response: string, confidence: number = 1.0): SkillResult {
14
- return { handled: true, response, confidence };
15
- }
16
- }
@@ -1,408 +0,0 @@
1
- /**
2
- * Builtin Skill Library - 30 pre-built skills for the OPC Agent Marketplace
3
- */
4
- import type { MarketplaceSkill } from '../types';
5
-
6
- export const BUILTIN_SKILLS: MarketplaceSkill[] = [
7
- // === Productivity (效率工具) ===
8
- {
9
- id: 'note-assistant',
10
- name: 'Note Assistant',
11
- nameZh: '笔记助手',
12
- description: 'Automatically organize conversation highlights and key points',
13
- descriptionZh: '自动整理对话要点,生成结构化笔记',
14
- category: 'productivity',
15
- icon: '📝',
16
- version: '1.0.0',
17
- author: 'OPC Team',
18
- tools: ['create_note', 'summarize_conversation', 'list_notes'],
19
- systemPrompt: 'You are a note-taking assistant. Extract key points, action items, and decisions from conversations. Format them as structured notes with headers and bullet points.',
20
- },
21
- {
22
- id: 'calendar-manager',
23
- name: 'Calendar Manager',
24
- nameZh: '日程管理',
25
- description: 'Create, query, and manage calendar events',
26
- descriptionZh: '创建、查询和管理日程事件',
27
- category: 'productivity',
28
- icon: '📅',
29
- version: '1.0.0',
30
- author: 'OPC Team',
31
- tools: ['create_event', 'list_events', 'delete_event', 'update_event'],
32
- systemPrompt: 'You are a calendar management assistant. Help users create, modify, and query calendar events. Parse natural language dates and times.',
33
- },
34
- {
35
- id: 'email-assistant',
36
- name: 'Email Assistant',
37
- nameZh: '邮件助手',
38
- description: 'Draft, reply, and manage emails with AI',
39
- descriptionZh: '智能写邮件、回邮件',
40
- category: 'productivity',
41
- icon: '📧',
42
- version: '1.0.0',
43
- author: 'OPC Team',
44
- tools: ['draft_email', 'reply_email', 'summarize_email'],
45
- systemPrompt: 'You are an email assistant. Help draft professional emails, compose replies, and summarize email threads. Match the appropriate tone for business or casual contexts.',
46
- },
47
- {
48
- id: 'todo-manager',
49
- name: 'Todo Manager',
50
- nameZh: '待办管理',
51
- description: 'Manage TODO lists with priorities and deadlines',
52
- descriptionZh: '管理待办事项,支持优先级和截止日期',
53
- category: 'productivity',
54
- icon: '✅',
55
- version: '1.0.0',
56
- author: 'OPC Team',
57
- tools: ['add_todo', 'list_todos', 'complete_todo', 'delete_todo'],
58
- systemPrompt: 'You are a task management assistant. Help users create, organize, prioritize, and track their TODO items.',
59
- },
60
- {
61
- id: 'reminder',
62
- name: 'Reminder',
63
- nameZh: '提醒器',
64
- description: 'Set and manage reminders',
65
- descriptionZh: '设置各类提醒,到时通知',
66
- category: 'productivity',
67
- icon: '🔔',
68
- version: '1.0.0',
69
- author: 'OPC Team',
70
- tools: ['set_reminder', 'list_reminders', 'cancel_reminder'],
71
- systemPrompt: 'You are a reminder assistant. Help users set, manage, and cancel reminders with natural language time expressions.',
72
- },
73
-
74
- // === Knowledge (知识工具) ===
75
- {
76
- id: 'reading-summary',
77
- name: 'Reading Summary',
78
- nameZh: '阅读摘要',
79
- description: 'Summarize articles, web pages, and documents',
80
- descriptionZh: '总结文章、网页、文档的核心内容',
81
- category: 'knowledge',
82
- icon: '📚',
83
- version: '1.0.0',
84
- author: 'OPC Team',
85
- tools: ['summarize_text', 'extract_key_points', 'generate_outline'],
86
- systemPrompt: 'You are a reading assistant. Summarize long texts, extract key points, and generate structured outlines. Support multiple languages.',
87
- },
88
- {
89
- id: 'knowledge-search',
90
- name: 'Knowledge Search',
91
- nameZh: '知识搜索',
92
- description: 'Search through learned knowledge base',
93
- descriptionZh: '搜索已学习的知识库',
94
- category: 'knowledge',
95
- icon: '🔍',
96
- version: '1.0.0',
97
- author: 'OPC Team',
98
- tools: ['search_knowledge', 'add_knowledge', 'list_topics'],
99
- systemPrompt: 'You are a knowledge search assistant. Help users find information from their personal knowledge base and add new entries.',
100
- },
101
- {
102
- id: 'dictionary-translator',
103
- name: 'Dictionary & Translator',
104
- nameZh: '词典翻译',
105
- description: 'Multi-language translation and dictionary lookup',
106
- descriptionZh: '多语言翻译和词典查询',
107
- category: 'knowledge',
108
- icon: '📖',
109
- version: '1.0.0',
110
- author: 'OPC Team',
111
- tools: ['translate', 'define_word', 'detect_language'],
112
- systemPrompt: 'You are a translation and dictionary assistant. Translate between languages, explain word meanings, provide usage examples, and detect languages.',
113
- },
114
- {
115
- id: 'calculator',
116
- name: 'Calculator',
117
- nameZh: '计算器',
118
- description: 'Mathematical calculations and unit conversions',
119
- descriptionZh: '数学计算、单位换算',
120
- category: 'knowledge',
121
- icon: '🧮',
122
- version: '1.0.0',
123
- author: 'OPC Team',
124
- tools: ['calculate', 'convert_units', 'solve_equation'],
125
- systemPrompt: 'You are a math assistant. Perform calculations, convert units, solve equations, and explain mathematical concepts step by step.',
126
- },
127
- {
128
- id: 'data-analysis',
129
- name: 'Data Analysis',
130
- nameZh: '数据分析',
131
- description: 'Analyze CSV data, generate statistics and insights',
132
- descriptionZh: 'CSV 数据分析,生成统计和洞察',
133
- category: 'knowledge',
134
- icon: '📊',
135
- version: '1.0.0',
136
- author: 'OPC Team',
137
- tools: ['analyze_csv', 'generate_chart', 'statistical_summary'],
138
- systemPrompt: 'You are a data analysis assistant. Parse CSV files, compute statistics, identify trends, and provide data-driven insights.',
139
- },
140
-
141
- // === Creative (创作工具) ===
142
- {
143
- id: 'writing-assistant',
144
- name: 'Writing Assistant',
145
- nameZh: '写作助手',
146
- description: 'Help with various writing styles and formats',
147
- descriptionZh: '各种文体写作辅助',
148
- category: 'creative',
149
- icon: '✍️',
150
- version: '1.0.0',
151
- author: 'OPC Team',
152
- tools: ['write_article', 'improve_text', 'change_tone'],
153
- systemPrompt: 'You are a writing assistant. Help with essays, blog posts, stories, and other writing. Improve grammar, style, and clarity. Adapt to different tones and formats.',
154
- },
155
- {
156
- id: 'image-description',
157
- name: 'Image Description',
158
- nameZh: '图片描述',
159
- description: 'Describe and analyze images in detail',
160
- descriptionZh: '详细描述和分析图片内容',
161
- category: 'creative',
162
- icon: '🎨',
163
- version: '1.0.0',
164
- author: 'OPC Team',
165
- tools: ['describe_image', 'analyze_visual', 'generate_alt_text'],
166
- systemPrompt: 'You are an image analysis assistant. Describe images in detail, analyze visual elements, composition, colors, and generate accessible alt text.',
167
- },
168
- {
169
- id: 'social-media',
170
- name: 'Social Media',
171
- nameZh: '社交媒体',
172
- description: 'Generate social media posts and content',
173
- descriptionZh: '生成社交媒体帖文和内容',
174
- category: 'creative',
175
- icon: '📱',
176
- version: '1.0.0',
177
- author: 'OPC Team',
178
- tools: ['create_post', 'generate_hashtags', 'adapt_platform'],
179
- systemPrompt: 'You are a social media content creator. Generate engaging posts for Twitter, LinkedIn, Instagram, and other platforms. Create hashtags and adapt content for each platform.',
180
- },
181
- {
182
- id: 'report-generator',
183
- name: 'Report Generator',
184
- nameZh: '报告生成',
185
- description: 'Automatically generate structured reports',
186
- descriptionZh: '自动生成结构化报告',
187
- category: 'creative',
188
- icon: '📄',
189
- version: '1.0.0',
190
- author: 'OPC Team',
191
- tools: ['generate_report', 'create_executive_summary', 'format_report'],
192
- systemPrompt: 'You are a report generation assistant. Create structured reports with executive summaries, data sections, and recommendations. Support various formats.',
193
- },
194
- {
195
- id: 'copywriting',
196
- name: 'Copywriting',
197
- nameZh: '文案创作',
198
- description: 'Create marketing copy and ad content',
199
- descriptionZh: '营销文案和广告内容创作',
200
- category: 'creative',
201
- icon: '💌',
202
- version: '1.0.0',
203
- author: 'OPC Team',
204
- tools: ['write_copy', 'generate_slogan', 'ab_test_copy'],
205
- systemPrompt: 'You are a copywriting assistant. Create compelling marketing copy, slogans, product descriptions, and ad content. Apply AIDA and other frameworks.',
206
- },
207
-
208
- // === Developer (开发工具) ===
209
- {
210
- id: 'code-assistant',
211
- name: 'Code Assistant',
212
- nameZh: '代码助手',
213
- description: 'Write, review, and explain code',
214
- descriptionZh: '写代码、代码审查、代码解释',
215
- category: 'developer',
216
- icon: '💻',
217
- version: '1.0.0',
218
- author: 'OPC Team',
219
- tools: ['write_code', 'review_code', 'explain_code', 'refactor_code'],
220
- systemPrompt: 'You are a code assistant. Write clean, efficient code in any language. Review code for bugs and improvements. Explain complex code clearly.',
221
- },
222
- {
223
- id: 'debug-assistant',
224
- name: 'Debug Assistant',
225
- nameZh: 'Debug 助手',
226
- description: 'Help debug code issues and errors',
227
- descriptionZh: '帮助调试代码问题和错误',
228
- category: 'developer',
229
- icon: '🐛',
230
- version: '1.0.0',
231
- author: 'OPC Team',
232
- tools: ['analyze_error', 'suggest_fix', 'trace_bug'],
233
- systemPrompt: 'You are a debugging assistant. Analyze error messages, stack traces, and code to identify bugs. Suggest fixes and explain root causes.',
234
- },
235
- {
236
- id: 'api-tester',
237
- name: 'API Tester',
238
- nameZh: 'API 测试',
239
- description: 'Test and debug API endpoints',
240
- descriptionZh: '测试和调试 API 接口',
241
- category: 'developer',
242
- icon: '📋',
243
- version: '1.0.0',
244
- author: 'OPC Team',
245
- tools: ['test_api', 'generate_curl', 'mock_response'],
246
- systemPrompt: 'You are an API testing assistant. Help construct API requests, generate curl commands, test endpoints, and analyze responses.',
247
- },
248
- {
249
- id: 'database-query',
250
- name: 'Database Query',
251
- nameZh: '数据库查询',
252
- description: 'Generate and optimize SQL queries',
253
- descriptionZh: 'SQL 查询生成和优化',
254
- category: 'developer',
255
- icon: '🗄️',
256
- version: '1.0.0',
257
- author: 'OPC Team',
258
- tools: ['generate_sql', 'optimize_query', 'explain_schema'],
259
- systemPrompt: 'You are a database assistant. Generate SQL queries from natural language, optimize slow queries, and explain database schemas.',
260
- },
261
- {
262
- id: 'dependency-checker',
263
- name: 'Dependency Checker',
264
- nameZh: '依赖检查',
265
- description: 'Check dependencies for security vulnerabilities',
266
- descriptionZh: '检查依赖包的安全漏洞',
267
- category: 'developer',
268
- icon: '📦',
269
- version: '1.0.0',
270
- author: 'OPC Team',
271
- tools: ['check_deps', 'find_vulnerabilities', 'suggest_updates'],
272
- systemPrompt: 'You are a dependency security assistant. Analyze project dependencies, identify known vulnerabilities, and suggest safe update paths.',
273
- },
274
-
275
- // === Lifestyle (生活工具) ===
276
- {
277
- id: 'recipe-recommender',
278
- name: 'Recipe Recommender',
279
- nameZh: '食谱推荐',
280
- description: 'Recommend recipes based on available ingredients',
281
- descriptionZh: '根据现有食材推荐食谱',
282
- category: 'lifestyle',
283
- icon: '🍳',
284
- version: '1.0.0',
285
- author: 'OPC Team',
286
- tools: ['find_recipe', 'substitute_ingredient', 'meal_plan'],
287
- systemPrompt: 'You are a cooking assistant. Recommend recipes based on available ingredients, suggest substitutions, and create meal plans.',
288
- },
289
- {
290
- id: 'fitness-planner',
291
- name: 'Fitness Planner',
292
- nameZh: '健身计划',
293
- description: 'Generate personalized fitness plans',
294
- descriptionZh: '生成个性化健身计划',
295
- category: 'lifestyle',
296
- icon: '🏋️',
297
- version: '1.0.0',
298
- author: 'OPC Team',
299
- tools: ['create_workout', 'track_progress', 'suggest_exercise'],
300
- systemPrompt: 'You are a fitness planning assistant. Create personalized workout plans, track progress, and suggest exercises based on goals and fitness level.',
301
- },
302
- {
303
- id: 'expense-tracker',
304
- name: 'Expense Tracker',
305
- nameZh: '记账助手',
306
- description: 'Track income and expenses',
307
- descriptionZh: '收支记录和预算管理',
308
- category: 'lifestyle',
309
- icon: '💰',
310
- version: '1.0.0',
311
- author: 'OPC Team',
312
- tools: ['add_expense', 'add_income', 'get_summary', 'set_budget'],
313
- systemPrompt: 'You are a personal finance assistant. Track expenses and income, categorize transactions, and provide spending summaries and budget advice.',
314
- },
315
- {
316
- id: 'weather-query',
317
- name: 'Weather Query',
318
- nameZh: '天气查询',
319
- description: 'Get weather forecasts for any location',
320
- descriptionZh: '查询任意地点的天气预报',
321
- category: 'lifestyle',
322
- icon: '🌤️',
323
- version: '1.0.0',
324
- author: 'OPC Team',
325
- tools: ['get_weather', 'weather_forecast', 'weather_alerts'],
326
- systemPrompt: 'You are a weather assistant. Provide current weather conditions, forecasts, and weather alerts for any location worldwide.',
327
- },
328
- {
329
- id: 'travel-planner',
330
- name: 'Travel Planner',
331
- nameZh: '旅行规划',
332
- description: 'Plan trips and create itineraries',
333
- descriptionZh: '旅行行程规划和安排',
334
- category: 'lifestyle',
335
- icon: '🗺️',
336
- version: '1.0.0',
337
- author: 'OPC Team',
338
- tools: ['plan_trip', 'suggest_destination', 'create_itinerary'],
339
- systemPrompt: 'You are a travel planning assistant. Help plan trips, create detailed itineraries, suggest destinations, and provide travel tips.',
340
- },
341
-
342
- // === Business (业务工具) ===
343
- {
344
- id: 'customer-followup',
345
- name: 'Customer Follow-up',
346
- nameZh: '客户跟进',
347
- description: 'CRM-like customer tracking and follow-ups',
348
- descriptionZh: '客户关系管理,跟进记录',
349
- category: 'business',
350
- icon: '🤝',
351
- version: '1.0.0',
352
- author: 'OPC Team',
353
- tools: ['add_customer', 'log_interaction', 'schedule_followup', 'list_customers'],
354
- systemPrompt: 'You are a CRM assistant. Track customer interactions, schedule follow-ups, manage contact information, and provide relationship insights.',
355
- },
356
- {
357
- id: 'market-analysis',
358
- name: 'Market Analysis',
359
- nameZh: '市场分析',
360
- description: 'Industry and market analysis',
361
- descriptionZh: '行业和市场分析',
362
- category: 'business',
363
- icon: '📈',
364
- version: '1.0.0',
365
- author: 'OPC Team',
366
- tools: ['analyze_market', 'competitor_report', 'trend_analysis'],
367
- systemPrompt: 'You are a market analysis assistant. Analyze industry trends, competitive landscape, and market opportunities. Provide data-driven insights.',
368
- },
369
- {
370
- id: 'contract-review',
371
- name: 'Contract Review',
372
- nameZh: '合同审查',
373
- description: 'Review contracts and highlight key clauses',
374
- descriptionZh: '审查合同,标注关键条款和风险',
375
- category: 'business',
376
- icon: '📑',
377
- version: '1.0.0',
378
- author: 'OPC Team',
379
- tools: ['review_contract', 'extract_clauses', 'risk_assessment'],
380
- systemPrompt: 'You are a contract review assistant. Analyze contracts, highlight key clauses, identify potential risks, and suggest improvements.',
381
- },
382
- {
383
- id: 'interview-prep',
384
- name: 'Interview Prep',
385
- nameZh: '面试准备',
386
- description: 'Mock interviews and preparation',
387
- descriptionZh: '模拟面试和面试准备',
388
- category: 'business',
389
- icon: '💼',
390
- version: '1.0.0',
391
- author: 'OPC Team',
392
- tools: ['mock_interview', 'generate_questions', 'evaluate_answer'],
393
- systemPrompt: 'You are an interview preparation assistant. Conduct mock interviews, generate relevant questions, and provide feedback on answers.',
394
- },
395
- {
396
- id: 'okr-manager',
397
- name: 'OKR Manager',
398
- nameZh: 'OKR 管理',
399
- description: 'Manage objectives and key results',
400
- descriptionZh: '目标和关键结果管理',
401
- category: 'business',
402
- icon: '🎯',
403
- version: '1.0.0',
404
- author: 'OPC Team',
405
- tools: ['create_okr', 'track_progress', 'review_okrs', 'score_okr'],
406
- systemPrompt: 'You are an OKR management assistant. Help create, track, and review Objectives and Key Results. Provide scoring and progress reports.',
407
- },
408
- ];