adp-openclaw 0.0.41 → 0.0.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adp-openclaw",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "ADP-OpenClaw demo channel plugin (Go WebSocket backend)",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -207,6 +207,8 @@ export async function getStorageCredential(
207
207
  throw new Error("获取存储凭证失败: 缺少upload_url或file_url信息");
208
208
  }
209
209
 
210
+ console.log(`[ADP-UPLOAD] Credential file_url: ${result.file_url.substring(0, 100)}...`);
211
+
210
212
  return result as DescribeRemoteBotStorageCredentialRsp;
211
213
  }
212
214
 
@@ -230,6 +232,9 @@ export async function uploadFileToCos(
230
232
  // 3. 解码预签名的上传URL和下载URL
231
233
  const uploadUrl = decodeURIComponent(credential.upload_url);
232
234
  const fileUrl = decodeURIComponent(credential.file_url);
235
+
236
+ console.log(`[ADP-UPLOAD] upload_url: ${uploadUrl.substring(0, 100)}...`);
237
+ console.log(`[ADP-UPLOAD] file_url (download): ${fileUrl.substring(0, 100)}...`);
233
238
 
234
239
  // 4. 执行上传(直接PUT到预签名URL,不需要额外签名)
235
240
  const response = await fetchWithTimeout(
@@ -250,6 +255,8 @@ export async function uploadFileToCos(
250
255
  throw new Error(`上传文件失败: ${response.status} ${errorText}`);
251
256
  }
252
257
 
258
+ console.log(`[ADP-UPLOAD] Upload success, returning file_url: ${fileUrl.substring(0, 100)}...`);
259
+
253
260
  // 5. 返回下载URL
254
261
  return fileUrl;
255
262
  }