pentesting 0.90.8 → 0.90.9

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 (2) hide show
  1. package/lib/runtime.mjs +11 -29
  2. package/package.json +3 -14
package/lib/runtime.mjs CHANGED
@@ -11,44 +11,23 @@ const PACKAGE_JSON = JSON.parse(
11
11
  readFileSync(new URL("../package.json", import.meta.url), "utf8"),
12
12
  );
13
13
  const MANAGED_BINARY_DIR = path.join(PACKAGE_ROOT, "vendor");
14
- const MANAGED_BINARY_MANIFEST = path.join(MANAGED_BINARY_DIR, "builder-manifest.json");
14
+ const MANAGED_BINARY_MANIFEST = path.join(MANAGED_BINARY_DIR, "pentesting-manifest.json");
15
15
 
16
16
  const RELEASE_TARGETS = {
17
+ // Native binaries published as release assets. Linux uses musl (static, covers
18
+ // x64/arm64); android is the cross-built target. macOS/Windows are not
19
+ // cross-buildable from the Linux release host, so they are served by the
20
+ // Docker image (see the Unsupported-platform error below).
17
21
  "android:arm64": {
18
- assetName: "builder-aarch64-linux-android",
22
+ assetName: "pentesting-aarch64-linux-android",
19
23
  binaryFileName: "builder",
20
24
  label: "android-arm64",
21
25
  },
22
- "darwin:arm64": {
23
- assetName: "builder-aarch64-apple-darwin",
24
- binaryFileName: "builder",
25
- label: "macos-arm64",
26
- },
27
- "darwin:x64": {
28
- assetName: "builder-x86_64-apple-darwin",
29
- binaryFileName: "builder",
30
- label: "macos-x64",
31
- },
32
- "linux:arm64": {
33
- assetName: "builder-aarch64-unknown-linux-musl",
34
- binaryFileName: "builder",
35
- label: "linux-arm64",
36
- },
37
26
  "linux:x64": {
38
- assetName: "builder-x86_64-unknown-linux-musl",
27
+ assetName: "pentesting-x86_64-unknown-linux-musl",
39
28
  binaryFileName: "builder",
40
29
  label: "linux-x64",
41
30
  },
42
- "win32:arm64": {
43
- assetName: "builder-aarch64-pc-windows-msvc.exe",
44
- binaryFileName: "builder.exe",
45
- label: "windows-arm64",
46
- },
47
- "win32:x64": {
48
- assetName: "builder-x86_64-pc-windows-msvc.exe",
49
- binaryFileName: "builder.exe",
50
- label: "windows-x64",
51
- },
52
31
  };
53
32
 
54
33
  export function packageVersion() {
@@ -79,7 +58,10 @@ export function resolveReleaseAsset(platform = process.platform, arch = process.
79
58
  if (!target) {
80
59
  const supported = Object.keys(RELEASE_TARGETS).join(", ");
81
60
  throw new Error(
82
- `Unsupported platform '${platform}/${arch}'. Supported builder targets: ${supported}.`,
61
+ `No native pentesting binary for '${platform}/${arch}'. ` +
62
+ `Native targets: ${supported}. ` +
63
+ `On macOS/Windows run it via Docker instead: ` +
64
+ `docker run -it --rm -v "$(pwd):/workspace" agnusdei1207/pentesting`,
83
65
  );
84
66
  }
85
67
  return target;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.90.8",
4
- "builderReleaseTag": "v0.1.4",
3
+ "version": "0.90.9",
4
+ "builderReleaseTag": "v0.1.8",
5
5
  "description": "pentesting — security-focused agent runtime (internal engine: builder). Thin npm facade that downloads the managed Builder binary and forwards arguments.",
6
6
  "license": "MIT",
7
7
  "author": "agnusdei1207",
@@ -51,9 +51,7 @@
51
51
  "verify": "npm run preflight:local && npm run test",
52
52
  "build": "CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-$HOME/.cache/builder-target} $HOME/.cargo/bin/cargo build --bin pentesting",
53
53
  "check": "sh -c 'npm run docker:builder:build && docker run -it --rm -v builder-workspace:/workspace -e ANTHROPIC_BASE_URL -e ANTHROPIC_AUTH_TOKEN -e ANTHROPIC_MODEL -e ANTHROPIC_API_KEY -e MINIMAX_API_KEY -e OPENAI_API_KEY -e OPENAI_BASE_URL -e GEMINI_API_KEY -e DEEPSEEK_API_KEY agnusdei1207/pentesting:latest'",
54
- "check:interactive": "npm run check",
55
54
  "check:smoke": "sh -c 'npm run docker:builder:build && docker run --rm -v builder-workspace:/workspace agnusdei1207/pentesting:latest --version'",
56
- "check:clean": "npm run docker:clean && npm run check",
57
55
  "eval": "tsx benchmarks/cli.ts",
58
56
  "eval:all": "npm run build && find benchmarks/evals -name task.yml -exec dirname {} \\; | sort | while read -r d; do echo \"\\n=== Running $(basename $d) ===\"; tsx benchmarks/cli.ts \"$d\" || true; done",
59
57
  "pentesting:help": "./scripts/pentesting-release-help.sh",
@@ -64,8 +62,6 @@
64
62
  "pentesting:check": "./scripts/check-pentesting-package.sh",
65
63
  "pentesting:publish": "./scripts/publish-pentesting-package.sh",
66
64
  "pentesting:publish:dry-run": "DRY_RUN=true ./scripts/publish-pentesting-package.sh",
67
- "pentesting:release": "npm run pentesting:release:patch",
68
- "pentesting:release:dry-run": "npm run pentesting:release:patch:dry-run",
69
65
  "pentesting:release:patch": "npm run pentesting:check && AUTO_PUSH=true ./scripts/publish-pentesting-package.sh patch",
70
66
  "pentesting:release:patch:dry-run": "npm run pentesting:check && DRY_RUN=true ./scripts/publish-pentesting-package.sh patch",
71
67
  "pentesting:release:minor": "npm run pentesting:check && AUTO_PUSH=true ./scripts/publish-pentesting-package.sh minor",
@@ -77,9 +73,6 @@
77
73
  "public:pull": "git submodule update --remote --merge public",
78
74
  "public:publish": "AUTO_PUSH=true ./scripts/sync-public-repo.sh && git add public && git commit -m 'chore: bump public facade pointer' && git push origin main",
79
75
  "public:mirror-release": "./scripts/mirror-public-release.sh",
80
- "public:ci:sync": "gh workflow run 'Sync Builder Repo' --ref main",
81
- "public:ci:mirror": "gh workflow run 'Mirror Builder Release' --ref main -f version_tag=$(git describe --tags --abbrev=0)",
82
- "public:ci:status": "gh run list --workflow=sync-public.yml --limit=3 && echo '---' && gh run list --workflow=mirror-release.yml --limit=3",
83
76
  "docker:builder:build": "(docker image inspect agnusdei1207/pentesting-build-base:1.95 >/dev/null 2>&1 && docker image inspect agnusdei1207/pentesting-runtime-base:26.04 >/dev/null 2>&1 || npm run docker:base:build) && docker build --build-arg APP_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo dev) -t agnusdei1207/pentesting:latest .",
84
77
  "docker:builder:push": "if [ -n \"$DOCKER_PASSWORD\" ]; then echo \"$DOCKER_PASSWORD\" | docker login -u \"${DOCKER_USERNAME:-agnusdei1207}\" --password-stdin; fi && npm run docker:builder:build && docker push agnusdei1207/pentesting:latest",
85
78
  "docker:builder:tag": "docker tag agnusdei1207/pentesting:latest agnusdei1207/pentesting:$(git describe --tags --abbrev=0) && docker push agnusdei1207/pentesting:$(git describe --tags --abbrev=0)",
@@ -90,12 +83,8 @@
90
83
  "release:dry": "DRY_RUN=true ./scripts/release-all.sh patch",
91
84
  "release:local": "./scripts/run-release-in-docker.sh ./scripts/build-release-local.sh",
92
85
  "release:local:dry": "DRY_RUN=true ./scripts/run-release-in-docker.sh ./scripts/build-release-local.sh",
93
- "release:local:host": "./scripts/build-release-local.sh",
94
- "release:local:host:dry": "DRY_RUN=true ./scripts/build-release-local.sh",
95
86
  "release:backfill": "./scripts/run-release-in-docker.sh ./scripts/backfill-release-local.sh",
96
- "release:backfill:dry": "DRY_RUN=true ./scripts/run-release-in-docker.sh ./scripts/backfill-release-local.sh",
97
- "release:backfill:host": "./scripts/backfill-release-local.sh",
98
- "release:backfill:host:dry": "DRY_RUN=true ./scripts/backfill-release-local.sh"
87
+ "release:backfill:dry": "DRY_RUN=true ./scripts/run-release-in-docker.sh ./scripts/backfill-release-local.sh"
99
88
  },
100
89
  "devDependencies": {
101
90
  "@ai-sdk/google-vertex": "^4.0.47",