@alfe.ai/openclaw-chat 0.9.12 → 0.9.13
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/dist/plugin2.cjs +6 -3
- package/dist/plugin2.js +6 -3
- package/package.json +2 -2
package/dist/plugin2.cjs
CHANGED
|
@@ -34,8 +34,8 @@ let _alfe_ai_config = require("@alfe.ai/config");
|
|
|
34
34
|
* - The size cap mirrors the presign endpoint's 25 MB / 10-files limits —
|
|
35
35
|
* NOT the plugin's 50 MB inbound download cap — so oversize files fail
|
|
36
36
|
* fast locally instead of as an opaque presign 400.
|
|
37
|
-
* - The presigned PUT is signed with `ContentType
|
|
38
|
-
*
|
|
37
|
+
* - The presigned PUT is signed with `ContentType` and encryption headers;
|
|
38
|
+
* the raw fetch MUST send both. (This raw fetch to a presigned S3 URL
|
|
39
39
|
* is the sanctioned exception to the no-raw-fetch rule.)
|
|
40
40
|
* - `resolveConfig()` throws on self-hosted agents without env/config.toml
|
|
41
41
|
* (and on unknown token prefixes). With no client, local refs resolve to
|
|
@@ -207,7 +207,10 @@ async function uploadLocalFile(localPath, log, deps) {
|
|
|
207
207
|
try {
|
|
208
208
|
const res = await fetchFn(presigned.uploadUrl, {
|
|
209
209
|
method: "PUT",
|
|
210
|
-
headers: {
|
|
210
|
+
headers: {
|
|
211
|
+
...presigned.uploadHeaders,
|
|
212
|
+
"Content-Type": mimeType
|
|
213
|
+
},
|
|
211
214
|
body,
|
|
212
215
|
signal: controller.signal
|
|
213
216
|
});
|
package/dist/plugin2.js
CHANGED
|
@@ -34,8 +34,8 @@ import { resolveConfig } from "@alfe.ai/config";
|
|
|
34
34
|
* - The size cap mirrors the presign endpoint's 25 MB / 10-files limits —
|
|
35
35
|
* NOT the plugin's 50 MB inbound download cap — so oversize files fail
|
|
36
36
|
* fast locally instead of as an opaque presign 400.
|
|
37
|
-
* - The presigned PUT is signed with `ContentType
|
|
38
|
-
*
|
|
37
|
+
* - The presigned PUT is signed with `ContentType` and encryption headers;
|
|
38
|
+
* the raw fetch MUST send both. (This raw fetch to a presigned S3 URL
|
|
39
39
|
* is the sanctioned exception to the no-raw-fetch rule.)
|
|
40
40
|
* - `resolveConfig()` throws on self-hosted agents without env/config.toml
|
|
41
41
|
* (and on unknown token prefixes). With no client, local refs resolve to
|
|
@@ -207,7 +207,10 @@ async function uploadLocalFile(localPath, log, deps) {
|
|
|
207
207
|
try {
|
|
208
208
|
const res = await fetchFn(presigned.uploadUrl, {
|
|
209
209
|
method: "PUT",
|
|
210
|
-
headers: {
|
|
210
|
+
headers: {
|
|
211
|
+
...presigned.uploadHeaders,
|
|
212
|
+
"Content-Type": mimeType
|
|
213
|
+
},
|
|
211
214
|
body,
|
|
212
215
|
signal: controller.signal
|
|
213
216
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/openclaw-chat",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.13",
|
|
4
4
|
"description": "OpenClaw chat plugin for Alfe — web widget and mobile app channels",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/plugin.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"openclaw.plugin.json"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@alfe.ai/agent-api-client": "^0.
|
|
30
|
+
"@alfe.ai/agent-api-client": "^0.17.0",
|
|
31
31
|
"@alfe.ai/chat": "^0.0.18",
|
|
32
32
|
"@alfe.ai/config": "^0.4.1",
|
|
33
33
|
"@alfe.ai/openclaw-plugin-kit": "0.2.0"
|