claude-ws 0.1.14 → 0.1.16
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/claudekanban.js +25 -2
- package/package.json +1 -2
package/bin/claudekanban.js
CHANGED
|
@@ -88,8 +88,28 @@ async function startServer() {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
// Check if .next directory
|
|
92
|
-
|
|
91
|
+
// Check if .next directory has valid build (check BUILD_ID file)
|
|
92
|
+
const buildIdPath = path.join(nextBuildDir, 'BUILD_ID');
|
|
93
|
+
const versionPath = path.join(nextBuildDir, 'package.version');
|
|
94
|
+
const pkg = require(path.join(packageRoot, 'package.json'));
|
|
95
|
+
|
|
96
|
+
let needsRebuild = false;
|
|
97
|
+
|
|
98
|
+
if (!fs.existsSync(buildIdPath)) {
|
|
99
|
+
needsRebuild = true;
|
|
100
|
+
} else if (fs.existsSync(versionPath)) {
|
|
101
|
+
// Check if package version changed (indicates update)
|
|
102
|
+
const cachedVersion = fs.readFileSync(versionPath, 'utf-8').trim();
|
|
103
|
+
if (cachedVersion !== pkg.version) {
|
|
104
|
+
console.log('[Claude Workspace] Package updated from', cachedVersion, 'to', pkg.version);
|
|
105
|
+
needsRebuild = true;
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
// No version file, mark for rebuild to be safe
|
|
109
|
+
needsRebuild = true;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (needsRebuild) {
|
|
93
113
|
console.log('[Claude Workspace] Building production bundle...');
|
|
94
114
|
console.log('[Claude Workspace] This may take a minute...');
|
|
95
115
|
console.log('');
|
|
@@ -112,6 +132,9 @@ async function startServer() {
|
|
|
112
132
|
console.log('');
|
|
113
133
|
console.log('[Claude Workspace] ✓ Build completed successfully!');
|
|
114
134
|
console.log('');
|
|
135
|
+
|
|
136
|
+
// Save current version for future checks
|
|
137
|
+
fs.writeFileSync(versionPath, pkg.version);
|
|
115
138
|
} catch (error) {
|
|
116
139
|
console.error('[Claude Workspace] Build failed:', error.message);
|
|
117
140
|
console.error('[Claude Workspace] Please ensure all dependencies are installed');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-ws",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A beautifully crafted workspace interface for Claude Code with real-time streaming and local SQLite database",
|
|
6
6
|
"keywords": [
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"version:patch": "npm version patch --no-git-tag-version",
|
|
66
66
|
"version:minor": "npm version minor --no-git-tag-version",
|
|
67
67
|
"version:major": "npm version major --no-git-tag-version",
|
|
68
|
-
"postinstall": "npm run build 2>/dev/null || true",
|
|
69
68
|
"prepublishOnly": "npm run build",
|
|
70
69
|
"test:package": "./scripts/test-package.sh",
|
|
71
70
|
"publish:npm": "npm publish --access public"
|