@2en/clawly-plugins 1.24.3 → 1.24.4
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/config-setup.ts +5 -3
- package/outbound.ts +11 -0
- package/package.json +1 -1
package/config-setup.ts
CHANGED
|
@@ -136,9 +136,11 @@ export function patchGateway(config: Record<string, unknown>): boolean {
|
|
|
136
136
|
dirty = true
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
// trustedProxies: remove if present.
|
|
140
|
+
// OpenClaw v2026.2.19 hardened resolveClientIp to fail-closed, making
|
|
141
|
+
// trustedProxies: ['0.0.0.0/0'] actively break CLI auto-pair.
|
|
142
|
+
if (gateway.trustedProxies != null) {
|
|
143
|
+
delete gateway.trustedProxies
|
|
142
144
|
dirty = true
|
|
143
145
|
}
|
|
144
146
|
|
package/outbound.ts
CHANGED
|
@@ -85,6 +85,17 @@ export function registerOutboundMethods(api: PluginApi) {
|
|
|
85
85
|
const dest = outboundFilePath(rawPath)
|
|
86
86
|
|
|
87
87
|
if (!(await fileExists(dest))) {
|
|
88
|
+
// Fallback: TTS writes directly to /tmp/openclaw/ and the tool_result_persist hook
|
|
89
|
+
// only fires for agent tool calls, not tts.convert RPC calls. Read the source file
|
|
90
|
+
// directly if it lives in the known-safe TTS temp directory.
|
|
91
|
+
if (rawPath.startsWith('/tmp/openclaw/') && (await fileExists(rawPath))) {
|
|
92
|
+
const buffer = await fsp.readFile(rawPath)
|
|
93
|
+
api.logger.info(
|
|
94
|
+
`clawly.file.getOutbound: served from source ${rawPath} (${buffer.length} bytes)`,
|
|
95
|
+
)
|
|
96
|
+
respond(true, {base64: buffer.toString('base64')})
|
|
97
|
+
return
|
|
98
|
+
}
|
|
88
99
|
api.logger.warn(`outbound: file not found: ${rawPath} ${dest}`)
|
|
89
100
|
respond(false, undefined, {code: 'not_found', message: 'outbound file not found'})
|
|
90
101
|
return
|