autowonder 0.1.1 → 0.1.2

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/bin/cli.js CHANGED
@@ -17,7 +17,7 @@ const PID_PATH = path.join(AUTOWONDER_HOME, "daemon.pid");
17
17
  const LOG_PATH = path.join(AUTOWONDER_HOME, "daemon.log");
18
18
 
19
19
  const BINARY_BASE_URL = process.env.AUTOWONDER_BINARY_URL || "";
20
- const SOURCE_REPO = process.env.AUTOWONDER_SOURCE_REPO || "http://gitlab.alibaba-inc.com/sdlc-autopilot/auto-wonder-client-runtime.git";
20
+ const SOURCE_REPO = process.env.AUTOWONDER_SOURCE_REPO || "";
21
21
  const BUNDLED_BIN_DIR = path.join(__dirname, "..", "vendor");
22
22
 
23
23
  const DEFAULT_API_ADDR = "127.0.0.1:34989";
@@ -143,6 +143,12 @@ function tryDownload(url, dest) {
143
143
  }
144
144
 
145
145
  function buildFromSource() {
146
+ if (!SOURCE_REPO) {
147
+ error("No pre-built binary available for this platform.");
148
+ error("Set AUTOWONDER_SOURCE_REPO to build from source.");
149
+ return false;
150
+ }
151
+
146
152
  try { execFileSync("which", ["go"], { stdio: "ignore" }); } catch {
147
153
  error("Go is not installed. Install Go 1.22+ or provide a pre-built binary.");
148
154
  error(" macOS: brew install go");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autowonder",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "AutoWonder local runtime — execute AI agent dispatch packages on your machine",
5
5
  "bin": {
6
6
  "autowonder": "bin/cli.js"
@@ -17,7 +17,7 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
17
17
  PKG_DIR="$(dirname "$SCRIPT_DIR")"
18
18
  VENDOR_DIR="$PKG_DIR/vendor"
19
19
  SOURCE_DIR="${AUTOWONDER_SOURCE_DIR:-}"
20
- SOURCE_REPO="${AUTOWONDER_SOURCE_REPO:-http://gitlab.alibaba-inc.com/sdlc-autopilot/auto-wonder-client-runtime.git}"
20
+ SOURCE_REPO="${AUTOWONDER_SOURCE_REPO:-}"
21
21
 
22
22
  BUILD_ONLY=false
23
23
  if [[ "${1:-}" == "--build" ]]; then