@2en/clawly-plugins 1.30.0-beta.0 → 1.30.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auto-pair.ts +1 -1
- package/clawly-config-defaults.json5 +132 -13
- package/config-setup.ts +146 -326
- package/gateway/config-model.ts +74 -0
- package/gateway/config-timezone.ts +25 -14
- package/gateway/cron-delivery.test.ts +41 -5
- package/gateway/cron-delivery.ts +15 -2
- package/gateway/index.ts +2 -2
- package/gateway/offline-push.test.ts +139 -31
- package/gateway/offline-push.ts +50 -5
- package/gateway/presence.test.ts +2 -2
- package/gateway/presence.ts +17 -19
- package/gateway-fetch.ts +12 -5
- package/index.ts +2 -2
- package/lib/calendar-cache.ts +10 -1
- package/model-gateway-setup.ts +46 -0
- package/openclaw.plugin.json +1 -0
- package/outbound.ts +20 -24
- package/package.json +4 -5
- package/tools/clawly-calendar.ts +44 -0
- package/tools/clawly-is-user-online.ts +5 -10
- package/tools/clawly-search.test.ts +48 -1
- package/tools/clawly-search.ts +14 -0
- package/tools/clawly-send-file.test.ts +400 -0
- package/tools/clawly-send-file.ts +307 -0
- package/tools/create-search-tool.ts +27 -4
- package/tools/index.ts +9 -3
- package/types.ts +1 -1
- package/gateway/node-dangerous-allowlist.ts +0 -81
- package/tools/clawly-send-image.ts +0 -228
package/auto-pair.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type {PluginApi} from './index'
|
|
|
4
4
|
// Security note: clientId is self-reported by the connecting client. This is safe
|
|
5
5
|
// because the gateway enforces Ed25519 signature verification before a pairing
|
|
6
6
|
// request is created — only clients with valid device identity reach this stage.
|
|
7
|
-
const AUTO_APPROVE_CLIENT_IDS = new Set(['openclaw-ios', 'node-host'])
|
|
7
|
+
const AUTO_APPROVE_CLIENT_IDS = new Set(['openclaw-ios', 'openclaw-macos', 'node-host'])
|
|
8
8
|
const POLL_INTERVAL_MS = 3_000
|
|
9
9
|
|
|
10
10
|
type PendingRequest = {
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
api: "openai-completions",
|
|
14
14
|
models: [
|
|
15
15
|
{
|
|
16
|
-
id: "
|
|
17
|
-
name: "
|
|
16
|
+
id: "auto",
|
|
17
|
+
name: "auto",
|
|
18
18
|
input: ["text", "image"],
|
|
19
19
|
contextWindow: 262144,
|
|
20
20
|
maxTokens: 65535,
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
id: "
|
|
24
|
-
name: "
|
|
23
|
+
id: "moonshotai/kimi-k2.5",
|
|
24
|
+
name: "moonshotai/kimi-k2.5",
|
|
25
25
|
input: ["text", "image"],
|
|
26
|
-
contextWindow:
|
|
27
|
-
maxTokens:
|
|
26
|
+
contextWindow: 262144,
|
|
27
|
+
maxTokens: 65535,
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
id: "google/gemini-3-pro-preview",
|
|
31
|
-
name: "google/gemini-3-pro-preview",
|
|
30
|
+
id: "google/gemini-3.1-pro-preview",
|
|
31
|
+
name: "google/gemini-3.1-pro-preview",
|
|
32
32
|
input: ["text", "image"],
|
|
33
33
|
contextWindow: 1048576,
|
|
34
34
|
maxTokens: 65536,
|
|
@@ -56,6 +56,13 @@
|
|
|
56
56
|
contextWindow: 1050000,
|
|
57
57
|
maxTokens: 128000,
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
id: "minimax/minimax-m2.7",
|
|
61
|
+
name: "minimax/minimax-m2.7",
|
|
62
|
+
input: ["text"],
|
|
63
|
+
contextWindow: 204800,
|
|
64
|
+
maxTokens: 131072,
|
|
65
|
+
},
|
|
59
66
|
{
|
|
60
67
|
id: "minimax/minimax-m2.5",
|
|
61
68
|
name: "minimax/minimax-m2.5",
|
|
@@ -77,6 +84,13 @@
|
|
|
77
84
|
contextWindow: 1000000,
|
|
78
85
|
maxTokens: 65536,
|
|
79
86
|
},
|
|
87
|
+
{
|
|
88
|
+
id: "xiaomi/mimo-v2-pro",
|
|
89
|
+
name: "xiaomi/mimo-v2-pro",
|
|
90
|
+
input: ["text"],
|
|
91
|
+
contextWindow: 1048576,
|
|
92
|
+
maxTokens: 131072,
|
|
93
|
+
},
|
|
80
94
|
{
|
|
81
95
|
id: "z-ai/glm-5",
|
|
82
96
|
name: "z-ai/glm-5",
|
|
@@ -89,11 +103,12 @@
|
|
|
89
103
|
},
|
|
90
104
|
},
|
|
91
105
|
|
|
92
|
-
// agents.defaults
|
|
93
|
-
//
|
|
94
|
-
// and fallback lists.
|
|
106
|
+
// agents.defaults — model picker whitelist, display names, and tuning defaults.
|
|
107
|
+
// The whitelist constrains the UI model picker and fallback lists.
|
|
95
108
|
agents: {
|
|
96
109
|
defaults: {
|
|
110
|
+
thinkingDefault: "off",
|
|
111
|
+
verboseDefault: "on",
|
|
97
112
|
model: {
|
|
98
113
|
primary: "clawly-model-gateway/anthropic/claude-sonnet-4.6",
|
|
99
114
|
},
|
|
@@ -102,17 +117,121 @@
|
|
|
102
117
|
fallbacks: [],
|
|
103
118
|
},
|
|
104
119
|
models: {
|
|
120
|
+
"clawly-model-gateway/auto": { alias: "Auto" },
|
|
105
121
|
"clawly-model-gateway/moonshotai/kimi-k2.5": { alias: "Kimi K2.5" },
|
|
106
|
-
"clawly-model-gateway/google/gemini-
|
|
107
|
-
"clawly-model-gateway/google/gemini-3-pro-preview": { alias: "Gemini 3 Pro Preview" },
|
|
122
|
+
"clawly-model-gateway/google/gemini-3.1-pro-preview": { alias: "Gemini 3.1 Pro Preview" },
|
|
108
123
|
"clawly-model-gateway/anthropic/claude-sonnet-4.6": { alias: "Claude Sonnet 4.6" },
|
|
109
124
|
"clawly-model-gateway/anthropic/claude-opus-4.6": { alias: "Claude Opus 4.6" },
|
|
110
125
|
"clawly-model-gateway/openai/gpt-5.4": { alias: "GPT-5.4" },
|
|
126
|
+
"clawly-model-gateway/minimax/minimax-m2.7": { alias: "MiniMax M2.7" },
|
|
111
127
|
"clawly-model-gateway/minimax/minimax-m2.5": { alias: "MiniMax M2.5" },
|
|
112
128
|
"clawly-model-gateway/minimax/minimax-m2.1": { alias: "MiniMax M2.1" },
|
|
113
129
|
"clawly-model-gateway/qwen/qwen3.5-plus-02-15": { alias: "Qwen 3.5 Plus" },
|
|
130
|
+
"clawly-model-gateway/xiaomi/mimo-v2-pro": { alias: "MiMo V2 Pro" },
|
|
114
131
|
"clawly-model-gateway/z-ai/glm-5": { alias: "GLM-5" },
|
|
115
132
|
},
|
|
133
|
+
contextPruning: {
|
|
134
|
+
mode: "cache-ttl",
|
|
135
|
+
},
|
|
136
|
+
heartbeat: {
|
|
137
|
+
model: "clawly-model-gateway/auto",
|
|
138
|
+
lightContext: true,
|
|
139
|
+
},
|
|
140
|
+
memorySearch: {
|
|
141
|
+
provider: "openai",
|
|
142
|
+
model: "text-embedding-3-small",
|
|
143
|
+
remote: {
|
|
144
|
+
baseUrl: "${CLAWLY_MODEL_GATEWAY_BASE}/v1",
|
|
145
|
+
apiKey: "${CLAWLY_MODEL_GATEWAY_API_KEY}",
|
|
146
|
+
batch: { enabled: false },
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
// messages.tts — text-to-speech credentials + tuning defaults
|
|
153
|
+
messages: {
|
|
154
|
+
tts: {
|
|
155
|
+
auto: "tagged",
|
|
156
|
+
mode: "final",
|
|
157
|
+
provider: "elevenlabs",
|
|
158
|
+
summaryModel: "clawly-model-gateway/anthropic/claude-sonnet-4.6",
|
|
159
|
+
maxTextLength: 4000,
|
|
160
|
+
timeoutMs: 30000,
|
|
161
|
+
prefsPath: "~/.openclaw/settings/tts.json",
|
|
162
|
+
modelOverrides: { enabled: true },
|
|
163
|
+
elevenlabs: {
|
|
164
|
+
baseUrl: "${CLAWLY_MODEL_GATEWAY_BASE}/v1/elevenlabs",
|
|
165
|
+
apiKey: "${CLAWLY_MODEL_GATEWAY_API_KEY}",
|
|
166
|
+
voiceId: "DwwuoY7Uz8AP8zrY5TAo",
|
|
167
|
+
modelId: "eleven_multilingual_v2",
|
|
168
|
+
seed: 42,
|
|
169
|
+
applyTextNormalization: "auto",
|
|
170
|
+
languageCode: "en",
|
|
171
|
+
voiceSettings: {
|
|
172
|
+
stability: 0.5,
|
|
173
|
+
similarityBoost: 0.75,
|
|
174
|
+
style: 0.0,
|
|
175
|
+
useSpeakerBoost: true,
|
|
176
|
+
speed: 1.0,
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
// gateway.reload — use "hot" mode to prevent spurious SIGUSR1 restarts.
|
|
183
|
+
// config-setup writes restart-requiring keys (commands.*, gateway.*, env.*)
|
|
184
|
+
// after the gateway has already captured its startup config snapshot.
|
|
185
|
+
// In "hybrid" (default) mode, any subsequent config file write triggers the
|
|
186
|
+
// file watcher to diff against the stale snapshot, discover the config-setup
|
|
187
|
+
// changes as "new", and issue SIGUSR1. "hot" mode makes the watcher ignore
|
|
188
|
+
// restart-requiring diffs — only hot-reloadable changes (heartbeat, cron,
|
|
189
|
+
// hooks, browser) are applied. Direct SIGUSR1 from explicit restart commands
|
|
190
|
+
// and plugin auto-update is unaffected. If you manually edit a restart-
|
|
191
|
+
// requiring field in openclaw.json, run `openclaw restart` to apply it.
|
|
192
|
+
//
|
|
193
|
+
// gateway.nodes — allowlist dangerous node commands so the AI agent can
|
|
194
|
+
// invoke them on connected Clawly nodes (browser, reminders, calendar, device).
|
|
195
|
+
gateway: {
|
|
196
|
+
reload: {
|
|
197
|
+
mode: "hot",
|
|
198
|
+
},
|
|
199
|
+
nodes: {
|
|
200
|
+
allowCommands: [
|
|
201
|
+
// Browser commands (Mac nodes)
|
|
202
|
+
"browser.proxy",
|
|
203
|
+
"browser.navigate",
|
|
204
|
+
"browser.click",
|
|
205
|
+
"browser.type",
|
|
206
|
+
"browser.screenshot",
|
|
207
|
+
"browser.read",
|
|
208
|
+
"browser.tabs",
|
|
209
|
+
"browser.back",
|
|
210
|
+
"browser.scroll",
|
|
211
|
+
"browser.evaluate",
|
|
212
|
+
// Reminders + calendar (iOS nodes)
|
|
213
|
+
"reminders.add",
|
|
214
|
+
"calendar.add",
|
|
215
|
+
// Device permissions (iOS nodes)
|
|
216
|
+
"device.permissions",
|
|
217
|
+
"device.requestPermission",
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
|
|
222
|
+
// tools.web.search — web search defaults
|
|
223
|
+
tools: {
|
|
224
|
+
web: {
|
|
225
|
+
search: {
|
|
226
|
+
provider: "perplexity",
|
|
227
|
+
perplexity: {
|
|
228
|
+
model: "perplexity/sonar-pro",
|
|
229
|
+
baseUrl: "${CLAWLY_MODEL_GATEWAY_BASE}/v1",
|
|
230
|
+
apiKey: "${CLAWLY_MODEL_GATEWAY_API_KEY}",
|
|
231
|
+
},
|
|
232
|
+
maxResults: 5,
|
|
233
|
+
timeoutSeconds: 30,
|
|
234
|
+
},
|
|
116
235
|
},
|
|
117
236
|
},
|
|
118
237
|
}
|