@tencent-ai/agent-harness-linux-x64-musl 0.1.3
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/LICENSE +21 -0
- package/bin/agent-harness +0 -0
- package/bin/runtime/codebuddy/LICENSE.txt +19 -0
- package/bin/runtime/codebuddy/package.json +17 -0
- package/bin/runtime/codebuddy/product.cloudhosted.json +825 -0
- package/bin/runtime/codebuddy/product.internal.json +832 -0
- package/bin/runtime/codebuddy/product.ioa.json +1328 -0
- package/bin/runtime/codebuddy/product.json +2197 -0
- package/bin/runtime/codebuddy/product.selfhosted.json +362 -0
- package/bin/runtime/sandbox-runtime/vendor/seccomp/x64/apply-seccomp +0 -0
- package/bin/runtime/sandbox-runtime/vendor/seccomp/x64/unix-block.bpf +0 -0
- package/bin/vendor/genie-trash/linux-x64 +0 -0
- package/bin/vendor/ripgrep/rg +0 -0
- package/bin/vendor/shim/broker-ipc-client.cjs +162 -0
- package/bin/vendor/shim/broker-program-policy-check.cjs +68 -0
- package/bin/vendor/shim/brokered-bin/cat +641 -0
- package/bin/vendor/shim/brokered-bin/chmod +641 -0
- package/bin/vendor/shim/brokered-bin/codebuddy-toybox-dispatch +641 -0
- package/bin/vendor/shim/brokered-bin/cp +641 -0
- package/bin/vendor/shim/brokered-bin/dd +641 -0
- package/bin/vendor/shim/brokered-bin/find +641 -0
- package/bin/vendor/shim/brokered-bin/grep +641 -0
- package/bin/vendor/shim/brokered-bin/head +641 -0
- package/bin/vendor/shim/brokered-bin/ln +641 -0
- package/bin/vendor/shim/brokered-bin/ls +641 -0
- package/bin/vendor/shim/brokered-bin/mkdir +641 -0
- package/bin/vendor/shim/brokered-bin/mv +641 -0
- package/bin/vendor/shim/brokered-bin/readlink +641 -0
- package/bin/vendor/shim/brokered-bin/realpath +641 -0
- package/bin/vendor/shim/brokered-bin/rm +641 -0
- package/bin/vendor/shim/brokered-bin/rmdir +641 -0
- package/bin/vendor/shim/brokered-bin/sed +641 -0
- package/bin/vendor/shim/brokered-bin/tail +641 -0
- package/bin/vendor/shim/brokered-bin/tee +641 -0
- package/bin/vendor/shim/brokered-bin/touch +641 -0
- package/bin/vendor/shim/brokered-bin/truncate +641 -0
- package/bin/vendor/shim/brokered-bin/unlink +641 -0
- package/bin/vendor/shim/brokered-bin/wc +641 -0
- package/bin/vendor/shim/brokered-sandbox-bash-env.sh +10 -0
- package/bin/vendor/shim/genie-safe-delete.cjs +10 -0
- package/bin/vendor/shim/node-brokered-fs-shim.cjs +952 -0
- package/bin/vendor/shim/node-language-shim.cjs +35 -0
- package/bin/vendor/shim/node-safe-delete-shim.cjs +823 -0
- package/bin/vendor/shim/safe-bin/rm +18 -0
- package/bin/vendor/shim/safe-bin/rmdir +18 -0
- package/bin/vendor/shim/safe-bin/safe-delete-bash-env.sh +8 -0
- package/bin/vendor/shim/safe-bin/safe-delete-common.sh +777 -0
- package/bin/vendor/shim/safe-bin/unlink +18 -0
- package/bin/vendor/shim/safe-delete-broker-delete.cjs +166 -0
- package/bin/vendor/shim/safe-delete-bulk-guard.cjs +465 -0
- package/bin/vendor/shim/shell-runtime-bash-env.sh +8 -0
- package/bin/vendor/shim/sitecustomize.py +1213 -0
- package/package.json +56 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# safe-delete rm entrypoint.
|
|
3
|
+
# Shared implementation lives in safe-delete-common.sh.
|
|
4
|
+
|
|
5
|
+
set -o pipefail
|
|
6
|
+
|
|
7
|
+
REAL_RM="${SAFE_DELETE_REAL_RM:-/bin/rm}"
|
|
8
|
+
[ -x "$REAL_RM" ] || REAL_RM="/usr/bin/rm"
|
|
9
|
+
|
|
10
|
+
# Zero-overhead: no sandbox session → pass through immediately
|
|
11
|
+
[ -z "$CODEBUDDY_SESSION_ID" ] && [ -z "$CLAUDE_SESSION_ID" ] && exec "$REAL_RM" "$@"
|
|
12
|
+
|
|
13
|
+
SELF_DIR="$(CDPATH= cd -- "$(dirname "$0")" && pwd)"
|
|
14
|
+
# shellcheck source=/dev/null
|
|
15
|
+
. "${SELF_DIR}/safe-delete-common.sh"
|
|
16
|
+
|
|
17
|
+
safe_delete_main rm "$@"
|
|
18
|
+
exit $?
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# safe-delete rmdir entrypoint.
|
|
3
|
+
# Shared implementation lives in safe-delete-common.sh.
|
|
4
|
+
|
|
5
|
+
set -o pipefail
|
|
6
|
+
|
|
7
|
+
REAL_RMDIR="${SAFE_DELETE_REAL_RMDIR:-/bin/rmdir}"
|
|
8
|
+
[ -x "$REAL_RMDIR" ] || REAL_RMDIR="/usr/bin/rmdir"
|
|
9
|
+
|
|
10
|
+
# Zero-overhead: no sandbox session → pass through immediately
|
|
11
|
+
[ -z "$CODEBUDDY_SESSION_ID" ] && [ -z "$CLAUDE_SESSION_ID" ] && exec "$REAL_RMDIR" "$@"
|
|
12
|
+
|
|
13
|
+
SELF_DIR="$(CDPATH= cd -- "$(dirname "$0")" && pwd)"
|
|
14
|
+
# shellcheck source=/dev/null
|
|
15
|
+
. "${SELF_DIR}/safe-delete-common.sh"
|
|
16
|
+
|
|
17
|
+
safe_delete_main rmdir "$@"
|
|
18
|
+
exit $?
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# genie-safe-delete bash environment — sourced via BASH_ENV for every bash subprocess.
|
|
2
|
+
# Defines safe-bin wrappers to intercept shell file commands.
|
|
3
|
+
if [ -n "${CODEBUDDY_SAFE_DELETE_BIN_DIR:-}" ]; then
|
|
4
|
+
rm() { "${CODEBUDDY_SAFE_DELETE_BIN_DIR}/rm" "$@"; }
|
|
5
|
+
unlink() { "${CODEBUDDY_SAFE_DELETE_BIN_DIR}/unlink" "$@"; }
|
|
6
|
+
rmdir() { "${CODEBUDDY_SAFE_DELETE_BIN_DIR}/rmdir" "$@"; }
|
|
7
|
+
export -f rm unlink rmdir
|
|
8
|
+
fi
|