@tencent-ai/codebuddy-code 2.137.1-dev.4179feb.202608191252 → 2.137.1-dev.9da3753.202608211541

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.137.1-dev.4179feb.202608191252",
3
+ "version": "2.137.1-dev.9da3753.202608211541",
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",
@@ -816,6 +816,6 @@
816
816
  "SelectImage": true,
817
817
  "SkipToolCallSupportCheck": true
818
818
  },
819
- "commit": "4179feb81932baa574acec049ff935630cea79c9",
820
- "date": "2026-08-19T04:51:43.440Z"
819
+ "commit": "9da3753c0a1c9b0fff70f3dd45ad87a1db8bdf8a",
820
+ "date": "2026-08-21T07:40:21.001Z"
821
821
  }
@@ -823,6 +823,6 @@
823
823
  }
824
824
  }
825
825
  },
826
- "commit": "4179feb81932baa574acec049ff935630cea79c9",
827
- "date": "2026-08-19T04:51:43.426Z"
826
+ "commit": "9da3753c0a1c9b0fff70f3dd45ad87a1db8bdf8a",
827
+ "date": "2026-08-21T07:40:20.980Z"
828
828
  }
package/product.ioa.json CHANGED
@@ -1319,6 +1319,6 @@
1319
1319
  }
1320
1320
  }
1321
1321
  },
1322
- "commit": "4179feb81932baa574acec049ff935630cea79c9",
1323
- "date": "2026-08-19T04:51:43.426Z"
1322
+ "commit": "9da3753c0a1c9b0fff70f3dd45ad87a1db8bdf8a",
1323
+ "date": "2026-08-21T07:40:20.988Z"
1324
1324
  }
package/product.json CHANGED
@@ -1824,6 +1824,6 @@
1824
1824
  "description": "tool-repl-description"
1825
1825
  }
1826
1826
  ],
1827
- "commit": "4179feb81932baa574acec049ff935630cea79c9",
1828
- "date": "2026-08-19T04:51:43.456Z"
1827
+ "commit": "9da3753c0a1c9b0fff70f3dd45ad87a1db8bdf8a",
1828
+ "date": "2026-08-21T07:40:21.011Z"
1829
1829
  }
@@ -353,6 +353,6 @@
353
353
  "ScheduledTasks": true,
354
354
  "SkipToolCallSupportCheck": true
355
355
  },
356
- "commit": "4179feb81932baa574acec049ff935630cea79c9",
357
- "date": "2026-08-19T04:51:43.426Z"
356
+ "commit": "9da3753c0a1c9b0fff70f3dd45ad87a1db8bdf8a",
357
+ "date": "2026-08-21T07:40:20.980Z"
358
358
  }
@@ -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