@shuyhere/bb-agent 0.0.3 → 0.0.4

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": "@shuyhere/bb-agent",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "BB-Agent — a Rust-native AI coding agent for the terminal",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -8,7 +8,8 @@ const path = require("path");
8
8
  const os = require("os");
9
9
  const https = require("https");
10
10
 
11
- const VERSION = "0.0.3";
11
+ // Binary release tag — update this when you push a new GitHub release with binaries.
12
+ const BINARY_RELEASE_TAG = "v0.0.1";
12
13
  const REPO = "shuyhere/bb-agent";
13
14
  const NATIVE_DIR = path.join(__dirname, "..", "native");
14
15
  const DOWNLOAD_TIMEOUT_MS = 15_000;
@@ -56,13 +57,13 @@ function downloadBinary(url, dest, timeoutMs) {
56
57
 
57
58
  async function tryDownloadPrebuilt(target) {
58
59
  const assetName = `bb-${target}`;
59
- const url = `https://github.com/${REPO}/releases/download/v${VERSION}/${assetName}`;
60
+ const url = `https://github.com/${REPO}/releases/download/${BINARY_RELEASE_TAG}/${assetName}`;
60
61
 
61
62
  fs.mkdirSync(NATIVE_DIR, { recursive: true });
62
63
  const dest = path.join(NATIVE_DIR, "bb");
63
64
 
64
65
  try {
65
- console.log(`Downloading BB-Agent v${VERSION} for ${target}...`);
66
+ console.log(`Downloading BB-Agent ${BINARY_RELEASE_TAG} for ${target}...`);
66
67
  await downloadBinary(url, dest, DOWNLOAD_TIMEOUT_MS);
67
68
  fs.chmodSync(dest, 0o755);
68
69