@mxyhi/vibe-kanban 0.0.148 → 0.0.149-fixci2

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
@@ -96,7 +96,7 @@ function showProgress(downloaded, total) {
96
96
  async function extractAndRun(baseName, launch) {
97
97
  const binName = getBinaryName(baseName);
98
98
  const binPath = path.join(versionCacheDir, binName);
99
- const zipPath = path.join(versionCacheDir, `${baseName}.zip`);
99
+ let zipPath = path.join(versionCacheDir, `${baseName}.zip`);
100
100
 
101
101
  // Clean old binary if exists
102
102
  try {
@@ -109,12 +109,16 @@ async function extractAndRun(baseName, launch) {
109
109
  }
110
110
  }
111
111
 
112
- // Download if not cached
112
+ // Download if not cached (or use local dev zip)
113
113
  if (!fs.existsSync(zipPath)) {
114
- console.error(`Downloading ${baseName}...`);
114
+ const actionLabel = LOCAL_DEV_MODE ? "Using local binary" : "Downloading";
115
+ console.error(`${actionLabel} ${baseName}...`);
115
116
  try {
116
- await ensureBinary(platformDir, baseName, showProgress);
117
- console.error(""); // newline after progress
117
+ // Always trust ensureBinary result path to avoid local dev path mismatch
118
+ zipPath = await ensureBinary(platformDir, baseName, showProgress);
119
+ if (!LOCAL_DEV_MODE) {
120
+ console.error(""); // newline after progress
121
+ }
118
122
  } catch (err) {
119
123
  console.error(`\nDownload failed: ${err.message}`);
120
124
  process.exit(1);
package/bin/download.js CHANGED
@@ -4,12 +4,12 @@ const path = require("path");
4
4
  const crypto = require("crypto");
5
5
 
6
6
  // Replaced during npm publish by workflow
7
- const RELEASE_REPO = "__RELEASE_REPO__"; // e.g., mxyhi/vibe-kanban
8
- const BINARY_TAG = "__BINARY_TAG__"; // e.g., v0.0.135
7
+ const RELEASE_REPO = "mxyhi/vibe-kanban"; // e.g., mxyhi/vibe-kanban
8
+ const BINARY_TAG = "v0.0.149-fixci2"; // e.g., v0.0.135
9
9
  const RELEASE_BASE_URL = `https://github.com/${RELEASE_REPO}/releases/download`;
10
10
  const CACHE_DIR = path.join(require("os").homedir(), ".vibe-kanban", "bin");
11
11
 
12
- // Local development mode: use binaries from npx-cli/dist/ instead of GitHub Releases
12
+ // Local development mode: use binaries from npx-cli/dist/<platform>/ instead of GitHub Releases
13
13
  // Only activate if dist/ exists (i.e., running from source after local-build.sh)
14
14
  const LOCAL_DIST_DIR = path.join(__dirname, "..", "dist");
15
15
  const LOCAL_DEV_MODE = fs.existsSync(LOCAL_DIST_DIR) || process.env.VIBE_KANBAN_LOCAL === "1";
@@ -104,7 +104,7 @@ function getAssetName(platform, binaryName) {
104
104
  async function ensureBinary(platform, binaryName, onProgress) {
105
105
  // In local dev mode, use binaries directly from npx-cli/dist/
106
106
  if (LOCAL_DEV_MODE) {
107
- const localZipPath = path.join(LOCAL_DIST_DIR, getAssetName(platform, binaryName));
107
+ const localZipPath = path.join(LOCAL_DIST_DIR, platform, `${binaryName}.zip`);
108
108
  if (fs.existsSync(localZipPath)) {
109
109
  return localZipPath;
110
110
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mxyhi/vibe-kanban",
3
3
  "private": false,
4
- "version": "0.0.148",
4
+ "version": "0.0.149-fixci2",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "vibe-kanban": "bin/cli.js"