clawdbot 2026.1.4-1 → 2026.1.5

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 (117) hide show
  1. package/CHANGELOG.md +26 -6
  2. package/README.md +26 -1
  3. package/dist/agents/pi-embedded-runner.js +2 -0
  4. package/dist/agents/pi-embedded-subscribe.js +18 -3
  5. package/dist/agents/pi-tools.js +45 -6
  6. package/dist/agents/tools/browser-tool.js +38 -89
  7. package/dist/agents/tools/cron-tool.js +8 -8
  8. package/dist/agents/workspace.js +8 -1
  9. package/dist/auto-reply/command-detection.js +26 -0
  10. package/dist/auto-reply/reply/agent-runner.js +15 -8
  11. package/dist/auto-reply/reply/commands.js +36 -25
  12. package/dist/auto-reply/reply/directive-handling.js +4 -2
  13. package/dist/auto-reply/reply/directives.js +12 -0
  14. package/dist/auto-reply/reply/session-updates.js +2 -4
  15. package/dist/auto-reply/reply.js +26 -4
  16. package/dist/browser/config.js +22 -4
  17. package/dist/browser/profiles-service.js +3 -1
  18. package/dist/browser/profiles.js +14 -3
  19. package/dist/canvas-host/a2ui/.bundle.hash +2 -0
  20. package/dist/cli/gateway-cli.js +2 -2
  21. package/dist/cli/profile.js +81 -0
  22. package/dist/cli/program.js +10 -1
  23. package/dist/cli/run-main.js +33 -0
  24. package/dist/commands/configure.js +5 -0
  25. package/dist/commands/onboard-providers.js +1 -1
  26. package/dist/commands/setup.js +4 -1
  27. package/dist/config/defaults.js +56 -0
  28. package/dist/config/io.js +47 -6
  29. package/dist/config/paths.js +2 -2
  30. package/dist/config/port-defaults.js +32 -0
  31. package/dist/config/sessions.js +3 -2
  32. package/dist/config/validation.js +2 -2
  33. package/dist/config/zod-schema.js +16 -0
  34. package/dist/discord/monitor.js +75 -266
  35. package/dist/entry.js +16 -0
  36. package/dist/gateway/call.js +8 -1
  37. package/dist/gateway/server-methods/chat.js +1 -1
  38. package/dist/gateway/server.js +14 -3
  39. package/dist/index.js +2 -2
  40. package/dist/infra/control-ui-assets.js +118 -0
  41. package/dist/infra/dotenv.js +15 -0
  42. package/dist/infra/shell-env.js +79 -0
  43. package/dist/infra/system-events.js +50 -23
  44. package/dist/macos/relay.js +8 -2
  45. package/dist/telegram/bot.js +24 -1
  46. package/dist/utils.js +8 -2
  47. package/dist/web/auto-reply.js +18 -21
  48. package/dist/web/inbound.js +5 -1
  49. package/dist/web/qr-image.js +4 -4
  50. package/dist/web/session.js +2 -3
  51. package/docs/agent.md +0 -2
  52. package/docs/assets/markdown.css +4 -1
  53. package/docs/audio.md +0 -2
  54. package/docs/clawd.md +0 -2
  55. package/docs/configuration.md +62 -3
  56. package/docs/docs.json +9 -1
  57. package/docs/faq.md +32 -7
  58. package/docs/gateway.md +28 -0
  59. package/docs/images.md +0 -2
  60. package/docs/index.md +2 -4
  61. package/docs/mac/icon.md +1 -1
  62. package/docs/nix.md +57 -11
  63. package/docs/onboarding.md +0 -2
  64. package/docs/refactor/webagent-session.md +0 -2
  65. package/docs/research/memory.md +1 -1
  66. package/docs/skills.md +0 -2
  67. package/docs/templates/AGENTS.md +2 -2
  68. package/docs/tools.md +15 -0
  69. package/docs/whatsapp.md +2 -0
  70. package/package.json +8 -16
  71. package/dist/control-ui/assets/index-BFID3yAA.css +0 -1
  72. package/dist/control-ui/assets/index-CE_axlTS.js +0 -2235
  73. package/dist/control-ui/assets/index-CE_axlTS.js.map +0 -1
  74. package/dist/control-ui/index.html +0 -15
  75. package/dist/daemon/constants.js +0 -10
  76. package/dist/daemon/launchd.js +0 -276
  77. package/dist/daemon/legacy.js +0 -63
  78. package/dist/daemon/program-args.js +0 -76
  79. package/dist/daemon/schtasks.js +0 -257
  80. package/dist/daemon/service.js +0 -60
  81. package/dist/daemon/systemd.js +0 -266
  82. package/dist/imessage/client.js +0 -165
  83. package/dist/imessage/index.js +0 -3
  84. package/dist/imessage/monitor.js +0 -272
  85. package/dist/imessage/probe.js +0 -26
  86. package/dist/imessage/send.js +0 -83
  87. package/dist/imessage/targets.js +0 -176
  88. package/dist/sessions/send-policy.js +0 -68
  89. package/dist/signal/client.js +0 -134
  90. package/dist/signal/daemon.js +0 -69
  91. package/dist/signal/index.js +0 -3
  92. package/dist/signal/monitor.js +0 -336
  93. package/dist/signal/probe.js +0 -46
  94. package/dist/signal/send.js +0 -91
  95. package/dist/slack/actions.js +0 -97
  96. package/dist/slack/index.js +0 -5
  97. package/dist/slack/monitor.js +0 -1029
  98. package/dist/slack/probe.js +0 -47
  99. package/dist/slack/send.js +0 -131
  100. package/dist/slack/token.js +0 -10
  101. package/dist/tui/commands.js +0 -74
  102. package/dist/tui/components/assistant-message.js +0 -16
  103. package/dist/tui/components/chat-log.js +0 -92
  104. package/dist/tui/components/custom-editor.js +0 -53
  105. package/dist/tui/components/selectors.js +0 -8
  106. package/dist/tui/components/tool-execution.js +0 -111
  107. package/dist/tui/components/user-message.js +0 -17
  108. package/dist/tui/gateway-chat.js +0 -140
  109. package/dist/tui/layout.js +0 -41
  110. package/dist/tui/message-list.js +0 -57
  111. package/dist/tui/theme/theme.js +0 -80
  112. package/dist/tui/theme.js +0 -25
  113. package/dist/tui/tui.js +0 -708
  114. package/dist/wizard/clack-prompter.js +0 -56
  115. package/dist/wizard/onboarding.js +0 -452
  116. package/dist/wizard/prompts.js +0 -6
  117. package/dist/wizard/session.js +0 -203
@@ -1,97 +0,0 @@
1
- import { WebClient } from "@slack/web-api";
2
- import { loadConfig } from "../config/config.js";
3
- import { sendMessageSlack } from "./send.js";
4
- import { resolveSlackBotToken } from "./token.js";
5
- function resolveToken(explicit) {
6
- const cfgToken = loadConfig().slack?.botToken;
7
- const token = resolveSlackBotToken(explicit ?? process.env.SLACK_BOT_TOKEN ?? cfgToken ?? undefined);
8
- if (!token) {
9
- throw new Error("SLACK_BOT_TOKEN or slack.botToken is required for Slack actions");
10
- }
11
- return token;
12
- }
13
- function normalizeEmoji(raw) {
14
- const trimmed = raw.trim();
15
- if (!trimmed) {
16
- throw new Error("Emoji is required for Slack reactions");
17
- }
18
- return trimmed.replace(/^:+|:+$/g, "");
19
- }
20
- async function getClient(opts = {}) {
21
- const token = resolveToken(opts.token);
22
- return opts.client ?? new WebClient(token);
23
- }
24
- export async function reactSlackMessage(channelId, messageId, emoji, opts = {}) {
25
- const client = await getClient(opts);
26
- await client.reactions.add({
27
- channel: channelId,
28
- timestamp: messageId,
29
- name: normalizeEmoji(emoji),
30
- });
31
- }
32
- export async function listSlackReactions(channelId, messageId, opts = {}) {
33
- const client = await getClient(opts);
34
- const result = await client.reactions.get({
35
- channel: channelId,
36
- timestamp: messageId,
37
- full: true,
38
- });
39
- const message = result.message;
40
- return message?.reactions ?? [];
41
- }
42
- export async function sendSlackMessage(to, content, opts = {}) {
43
- return await sendMessageSlack(to, content, {
44
- token: opts.token,
45
- mediaUrl: opts.mediaUrl,
46
- client: opts.client,
47
- });
48
- }
49
- export async function editSlackMessage(channelId, messageId, content, opts = {}) {
50
- const client = await getClient(opts);
51
- await client.chat.update({
52
- channel: channelId,
53
- ts: messageId,
54
- text: content,
55
- });
56
- }
57
- export async function deleteSlackMessage(channelId, messageId, opts = {}) {
58
- const client = await getClient(opts);
59
- await client.chat.delete({
60
- channel: channelId,
61
- ts: messageId,
62
- });
63
- }
64
- export async function readSlackMessages(channelId, opts = {}) {
65
- const client = await getClient(opts);
66
- const result = await client.conversations.history({
67
- channel: channelId,
68
- limit: opts.limit,
69
- latest: opts.before,
70
- oldest: opts.after,
71
- });
72
- return {
73
- messages: (result.messages ?? []),
74
- hasMore: Boolean(result.has_more),
75
- };
76
- }
77
- export async function getSlackMemberInfo(userId, opts = {}) {
78
- const client = await getClient(opts);
79
- return await client.users.info({ user: userId });
80
- }
81
- export async function listSlackEmojis(opts = {}) {
82
- const client = await getClient(opts);
83
- return await client.emoji.list();
84
- }
85
- export async function pinSlackMessage(channelId, messageId, opts = {}) {
86
- const client = await getClient(opts);
87
- await client.pins.add({ channel: channelId, timestamp: messageId });
88
- }
89
- export async function unpinSlackMessage(channelId, messageId, opts = {}) {
90
- const client = await getClient(opts);
91
- await client.pins.remove({ channel: channelId, timestamp: messageId });
92
- }
93
- export async function listSlackPins(channelId, opts = {}) {
94
- const client = await getClient(opts);
95
- const result = await client.pins.list({ channel: channelId });
96
- return (result.items ?? []);
97
- }
@@ -1,5 +0,0 @@
1
- export { deleteSlackMessage, editSlackMessage, getSlackMemberInfo, listSlackEmojis, listSlackPins, listSlackReactions, pinSlackMessage, reactSlackMessage, readSlackMessages, sendSlackMessage, unpinSlackMessage, } from "./actions.js";
2
- export { monitorSlackProvider } from "./monitor.js";
3
- export { probeSlack } from "./probe.js";
4
- export { sendMessageSlack } from "./send.js";
5
- export { resolveSlackAppToken, resolveSlackBotToken } from "./token.js";