@2en/clawly-plugins 1.30.0-beta.1 → 1.30.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 = {
|
package/config-setup.ts
CHANGED
|
@@ -250,12 +250,18 @@ export function patchBrowser(config: Record<string, unknown>): boolean {
|
|
|
250
250
|
dirty = true
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
// owner: grant mobile app owner permissions (required for cron tool etc.)
|
|
253
|
+
// owner: grant mobile/mac app owner permissions (required for cron tool etc.)
|
|
254
254
|
const ownerAllowFrom = Array.isArray(commands.ownerAllowFrom)
|
|
255
255
|
? (commands.ownerAllowFrom as string[])
|
|
256
256
|
: []
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
let ownerDirty = false
|
|
258
|
+
for (const clientId of ['openclaw-ios', 'openclaw-macos']) {
|
|
259
|
+
if (!ownerAllowFrom.includes(clientId)) {
|
|
260
|
+
ownerAllowFrom.push(clientId)
|
|
261
|
+
ownerDirty = true
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (ownerDirty) {
|
|
259
265
|
commands.ownerAllowFrom = ownerAllowFrom
|
|
260
266
|
config.commands = commands
|
|
261
267
|
dirty = true
|
|
@@ -29,6 +29,9 @@ const DANGEROUS_COMMANDS = [
|
|
|
29
29
|
// Reminders + calendar (iOS nodes)
|
|
30
30
|
'reminders.add',
|
|
31
31
|
'calendar.add',
|
|
32
|
+
// Device permissions (iOS nodes) — not in OpenClaw's iOS defaults
|
|
33
|
+
'device.permissions',
|
|
34
|
+
'device.requestPermission',
|
|
32
35
|
]
|
|
33
36
|
|
|
34
37
|
export function registerNodeDangerousAllowlist(api: PluginApi) {
|