@tencent-ai/codebuddy-code 2.132.0-dev.93c8d58.202608181415 → 2.132.0-dev.9772d7b.202608221848

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": "@tencent-ai/codebuddy-code",
3
- "version": "2.132.0-dev.93c8d58.202608181415",
3
+ "version": "2.132.0-dev.9772d7b.202608221848",
4
4
  "description": "Use CodeBuddy, Tencent's AI assistant, right from your terminal. CodeBuddy can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
5
5
  "main": "lib/node/index.js",
6
6
  "typings": "lib/node/index.d.ts",
@@ -836,6 +836,6 @@
836
836
  "SelectImage": true,
837
837
  "SkipToolCallSupportCheck": true
838
838
  },
839
- "commit": "93c8d58e1f5a5c2e872b03c74a3b9034605ac7e5",
840
- "date": "2026-08-18T06:14:50.362Z"
839
+ "commit": "9772d7b19c0a2585fc861c5bc47b62bf633cad79",
840
+ "date": "2026-08-22T10:47:01.817Z"
841
841
  }
@@ -819,6 +819,6 @@
819
819
  }
820
820
  }
821
821
  },
822
- "commit": "93c8d58e1f5a5c2e872b03c74a3b9034605ac7e5",
823
- "date": "2026-08-18T06:14:50.307Z"
822
+ "commit": "9772d7b19c0a2585fc861c5bc47b62bf633cad79",
823
+ "date": "2026-08-22T10:47:01.786Z"
824
824
  }
package/product.ioa.json CHANGED
@@ -1315,6 +1315,6 @@
1315
1315
  }
1316
1316
  }
1317
1317
  },
1318
- "commit": "93c8d58e1f5a5c2e872b03c74a3b9034605ac7e5",
1319
- "date": "2026-08-18T06:14:50.273Z"
1318
+ "commit": "9772d7b19c0a2585fc861c5bc47b62bf633cad79",
1319
+ "date": "2026-08-22T10:47:01.691Z"
1320
1320
  }
package/product.json CHANGED
@@ -1811,6 +1811,6 @@
1811
1811
  "description": "tool-repl-description"
1812
1812
  }
1813
1813
  ],
1814
- "commit": "93c8d58e1f5a5c2e872b03c74a3b9034605ac7e5",
1815
- "date": "2026-08-18T06:14:50.272Z"
1814
+ "commit": "9772d7b19c0a2585fc861c5bc47b62bf633cad79",
1815
+ "date": "2026-08-22T10:47:01.728Z"
1816
1816
  }
@@ -349,6 +349,6 @@
349
349
  "ScheduledTasks": true,
350
350
  "SkipToolCallSupportCheck": true
351
351
  },
352
- "commit": "93c8d58e1f5a5c2e872b03c74a3b9034605ac7e5",
353
- "date": "2026-08-18T06:14:50.268Z"
352
+ "commit": "9772d7b19c0a2585fc861c5bc47b62bf633cad79",
353
+ "date": "2026-08-22T10:47:01.695Z"
354
354
  }
@@ -932,21 +932,24 @@ if _SESSION_ID:
932
932
  except Exception:
933
933
  return "unavailable"
934
934
 
935
+ def _emit_safe_delete_fail_closed(abs_path, reason, detail=None):
936
+ payload = {
937
+ "target": abs_path,
938
+ "reason": reason,
939
+ }
940
+ if detail:
941
+ payload["detail"] = detail
942
+ message = (
943
+ "[safe-delete][SAFE_DELETE_FAIL_CLOSED] "
944
+ + json.dumps(payload, ensure_ascii=False)
945
+ )
946
+ try:
947
+ sys.stderr.write(message + "\n")
948
+ sys.stderr.flush()
949
+ except Exception:
950
+ pass
951
+
935
952
  def _try_trash(abs_path, recursive=False, force=False):
936
- if sys.platform == "win32" and _IN_SANDBOX:
937
- message = (
938
- "[safe-delete][SAFE_DELETE_FAIL_CLOSED] "
939
- + json.dumps({
940
- "target": abs_path,
941
- "reason": "windows-sandbox-recycle-bin-unavailable",
942
- }, ensure_ascii=False)
943
- )
944
- try:
945
- sys.stderr.write(message + "\n")
946
- sys.stderr.flush()
947
- except Exception:
948
- pass
949
- raise OSError(message)
950
953
  _check_bulk_delete_guard(abs_path)
951
954
 
952
955
  broker_result = _try_broker_delete(abs_path, recursive=recursive, force=force)
@@ -957,10 +960,14 @@ if _SESSION_ID:
957
960
  "[safe-delete] broker denied delete: path=%s" % abs_path
958
961
  )
959
962
 
960
- if _try_trash_via_binary(abs_path):
961
- _record_trash(abs_path)
962
- return True
963
- _platform_trash(abs_path)
963
+ try:
964
+ if _try_trash_via_binary(abs_path):
965
+ _record_trash(abs_path)
966
+ return True
967
+ _platform_trash(abs_path)
968
+ except Exception as e:
969
+ _emit_safe_delete_fail_closed(abs_path, "trash-failed", str(e))
970
+ raise
964
971
  _record_trash(abs_path)
965
972
  return True
966
973