@tencent-ai/agent-sdk 0.3.206 → 0.3.209

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.
Files changed (38) hide show
  1. package/cli/CHANGELOG.md +53 -0
  2. package/cli/builtin/workflows/deep-research.workflow.js +77 -20
  3. package/cli/dist/codebuddy-headless.js +293 -245
  4. package/cli/dist/web-ui/assets/index-CH6e4vvI.css +32 -0
  5. package/cli/dist/web-ui/assets/index-GcU4pZms.js +1102 -0
  6. package/cli/dist/web-ui/index.html +2 -2
  7. package/cli/dist/web-ui/sw.js +1 -1
  8. package/cli/package.json +4 -4
  9. package/cli/product.cloudhosted.json +2 -2
  10. package/cli/product.internal.json +2 -2
  11. package/cli/product.ioa.json +2 -2
  12. package/cli/product.json +3 -3
  13. package/cli/product.selfhosted.json +2 -2
  14. package/cli/vendor/native-builds.json +18 -0
  15. package/cli/vendor/shim/broker-ipc-client.cjs +158 -0
  16. package/cli/vendor/shim/brokered-bin/codebuddy-toybox-dispatch +381 -0
  17. package/cli/vendor/shim/brokered-sandbox-bash-env.sh +10 -0
  18. package/cli/vendor/shim/genie-safe-delete.cjs +4 -781
  19. package/cli/vendor/shim/native/binding.gyp +13 -0
  20. package/cli/vendor/shim/native/brokered_sandbox_native.c +293 -0
  21. package/cli/vendor/shim/native/darwin-arm64/brokered-sandbox-native.node +0 -0
  22. package/cli/vendor/shim/native/darwin-x64/brokered-sandbox-native.node +0 -0
  23. package/cli/vendor/shim/node-brokered-fs-shim.cjs +932 -0
  24. package/cli/vendor/shim/node-language-shim.cjs +35 -0
  25. package/cli/vendor/shim/node-safe-delete-shim.cjs +810 -0
  26. package/cli/vendor/shim/safe-bin/safe-delete-bash-env.sh +1 -1
  27. package/cli/vendor/shim/safe-bin/safe-delete-common.sh +95 -34
  28. package/cli/vendor/shim/safe-delete-broker-delete.cjs +166 -0
  29. package/cli/vendor/shim/shell-runtime-bash-env.sh +8 -0
  30. package/cli/vendor/shim/sitecustomize.py +551 -22
  31. package/cli/vendor/toybox-macos/LICENSE +12 -0
  32. package/cli/vendor/toybox-macos/toybox +0 -0
  33. package/cli/vendor/toybox-macos/toybox.sb +19 -0
  34. package/cli/vendor/zsh-macos/LICENSE +37 -0
  35. package/cli/vendor/zsh-macos/bin/zsh +0 -0
  36. package/package.json +1 -1
  37. package/cli/dist/web-ui/assets/index-BZjhFKbY.js +0 -1051
  38. package/cli/dist/web-ui/assets/index-C5EhSt3C.css +0 -32
@@ -0,0 +1,35 @@
1
+ /**
2
+ * CodeBuddy Node language shim
3
+ *
4
+ * The single NODE_OPTIONS --require entry. It composes safe-delete hooks and
5
+ * brokered fs hooks while keeping the historical genie-safe-delete.cjs wrapper.
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ const SESSION_ID = process.env.CODEBUDDY_SESSION_ID
11
+ || process.env.CLAUDE_SESSION_ID;
12
+
13
+ if (!SESSION_ID) {
14
+ return;
15
+ }
16
+
17
+ if (global.__CODEBUDDY_NODE_LANGUAGE_SHIM_LOADED__) {
18
+ return;
19
+ }
20
+ global.__CODEBUDDY_NODE_LANGUAGE_SHIM_LOADED__ = true;
21
+
22
+ const safeDeleteEnabled = process.env.CODEBUDDY_SAFE_DELETE_ENABLED !== '0';
23
+ const brokeredFsHookEnabled = process.env.CODEBUDDY_BROKERED_FS_HOOK_ENABLED === '1'
24
+ || process.env.CODEBUDDY_SAFE_DELETE_SANDBOX === '1';
25
+
26
+ if (safeDeleteEnabled) {
27
+ require('./node-safe-delete-shim.cjs');
28
+ }
29
+ if (brokeredFsHookEnabled) {
30
+ try {
31
+ require('./node-brokered-fs-shim.cjs');
32
+ } catch (_) {
33
+ // broker fs hook 缺失或加载失败时静默降级,不阻断进程启动
34
+ }
35
+ }