@tencent-ai/agent-sdk 0.3.206 → 0.3.210
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/cli/CHANGELOG.md +61 -0
- package/cli/builtin/workflows/deep-research.workflow.js +77 -20
- package/cli/dist/codebuddy-headless.js +294 -246
- package/cli/dist/web-ui/assets/index-CH6e4vvI.css +32 -0
- package/cli/dist/web-ui/assets/index-GcU4pZms.js +1102 -0
- package/cli/dist/web-ui/index.html +2 -2
- package/cli/dist/web-ui/sw.js +1 -1
- package/cli/package.json +4 -4
- package/cli/product.cloudhosted.json +2 -2
- package/cli/product.internal.json +2 -2
- package/cli/product.ioa.json +2 -2
- package/cli/product.json +3 -3
- package/cli/product.selfhosted.json +2 -2
- package/cli/vendor/native-builds.json +18 -0
- package/cli/vendor/shim/broker-ipc-client.cjs +158 -0
- package/cli/vendor/shim/brokered-bin/codebuddy-toybox-dispatch +381 -0
- package/cli/vendor/shim/brokered-sandbox-bash-env.sh +10 -0
- package/cli/vendor/shim/genie-safe-delete.cjs +4 -781
- package/cli/vendor/shim/native/binding.gyp +13 -0
- package/cli/vendor/shim/native/brokered_sandbox_native.c +293 -0
- package/cli/vendor/shim/native/darwin-arm64/brokered-sandbox-native.node +0 -0
- package/cli/vendor/shim/native/darwin-x64/brokered-sandbox-native.node +0 -0
- package/cli/vendor/shim/node-brokered-fs-shim.cjs +932 -0
- package/cli/vendor/shim/node-language-shim.cjs +35 -0
- package/cli/vendor/shim/node-safe-delete-shim.cjs +810 -0
- package/cli/vendor/shim/safe-bin/safe-delete-bash-env.sh +1 -1
- package/cli/vendor/shim/safe-bin/safe-delete-common.sh +95 -34
- package/cli/vendor/shim/safe-delete-broker-delete.cjs +166 -0
- package/cli/vendor/shim/shell-runtime-bash-env.sh +8 -0
- package/cli/vendor/shim/sitecustomize.py +551 -22
- package/cli/vendor/toybox-macos/LICENSE +12 -0
- package/cli/vendor/toybox-macos/toybox +0 -0
- package/cli/vendor/toybox-macos/toybox.sb +19 -0
- package/cli/vendor/zsh-macos/LICENSE +37 -0
- package/cli/vendor/zsh-macos/bin/zsh +0 -0
- package/package.json +1 -1
- package/cli/dist/web-ui/assets/index-BZjhFKbY.js +0 -1051
- 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
|
+
}
|