@11agents/cli 0.1.33 → 0.1.34
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.
|
@@ -326,6 +326,16 @@ class XiaohongshuAdbPublisher:
|
|
|
326
326
|
expected_title=title,
|
|
327
327
|
expected_caption=composed_caption,
|
|
328
328
|
)
|
|
329
|
+
if link_result.status != "retrieved" or not link_result.platform_permalink:
|
|
330
|
+
link_shot = (
|
|
331
|
+
Path(link_result.screenshot_path)
|
|
332
|
+
if link_result.screenshot_path
|
|
333
|
+
else run_dir / "link" / "failed-copy-link.png"
|
|
334
|
+
)
|
|
335
|
+
raise XiaohongshuAutomationError(
|
|
336
|
+
f"Xiaohongshu post-publish link recovery failed: {link_result.error or link_result.status}",
|
|
337
|
+
link_shot,
|
|
338
|
+
)
|
|
329
339
|
|
|
330
340
|
ended_epoch = int(time.time())
|
|
331
341
|
if status == "published":
|
|
@@ -381,6 +391,10 @@ class XiaohongshuAdbPublisher:
|
|
|
381
391
|
remote_media_path=remote,
|
|
382
392
|
screenshot_path=str(human_shot),
|
|
383
393
|
error=str(exc),
|
|
394
|
+
platform_permalink=link_result.platform_permalink if link_result else "",
|
|
395
|
+
link_status=link_result.status if link_result else "",
|
|
396
|
+
link_error=link_result.error if link_result else "",
|
|
397
|
+
link_screenshot_path=link_result.screenshot_path if link_result else "",
|
|
384
398
|
verification_status="failed",
|
|
385
399
|
verification_error=str(exc),
|
|
386
400
|
profile_screenshot_path=str(run_dir / "profile.png") if (run_dir / "profile.png").exists() else "",
|
|
@@ -401,6 +415,10 @@ class XiaohongshuAdbPublisher:
|
|
|
401
415
|
remote_media_path=remote,
|
|
402
416
|
screenshot_path=str(failure_shot),
|
|
403
417
|
error=str(exc),
|
|
418
|
+
platform_permalink=link_result.platform_permalink if link_result else "",
|
|
419
|
+
link_status=link_result.status if link_result else "",
|
|
420
|
+
link_error=link_result.error if link_result else "",
|
|
421
|
+
link_screenshot_path=link_result.screenshot_path if link_result else "",
|
|
404
422
|
)
|
|
405
423
|
|
|
406
424
|
def copy_current_note_link(
|