adp-openclaw 0.0.44 → 0.0.45
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
package/src/monitor.ts
CHANGED
|
@@ -452,6 +452,11 @@ async function connectAndHandle(params: ConnectParams): Promise<void> {
|
|
|
452
452
|
if (toolName === ADP_UPLOAD_TOOL_NAME && toolResult && typeof toolResult === "object") {
|
|
453
453
|
const result = toolResult as AdpUploadToolResult;
|
|
454
454
|
if (result.ok && result.files && result.files.length > 0) {
|
|
455
|
+
// Debug: print full downloadUrl before formatting
|
|
456
|
+
for (const file of result.files) {
|
|
457
|
+
log?.info(`[adp-openclaw] File downloadUrl (full): ${file.downloadUrl}`);
|
|
458
|
+
}
|
|
459
|
+
|
|
455
460
|
// Format upload result as user-readable message
|
|
456
461
|
const uploadMessage = formatUploadResultAsMarkdown(result);
|
|
457
462
|
|
|
@@ -247,6 +247,7 @@ export const formatUploadResultAsMarkdown = (result: AdpUploadToolResult): strin
|
|
|
247
247
|
|
|
248
248
|
const lines: string[] = ["**文件上传成功**:"];
|
|
249
249
|
for (const file of result.files) {
|
|
250
|
+
console.log(`[ADP-UPLOAD] formatUploadResultAsMarkdown - file.downloadUrl: ${file.downloadUrl}`);
|
|
250
251
|
if (file.downloadUrl) {
|
|
251
252
|
lines.push(`- [${file.name}](${file.downloadUrl})`);
|
|
252
253
|
} else {
|