pikakit 1.0.49 → 1.0.50

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.
@@ -40,7 +40,31 @@ function findProjectRoot() {
40
40
  }
41
41
 
42
42
  const projectRoot = findProjectRoot();
43
- const dashboardPath = path.join(__dirname, '..', 'dashboard');
43
+
44
+ // Find dashboard folder from multiple possible locations
45
+ function findDashboardPath() {
46
+ const possiblePaths = [
47
+ // 1. npm package in node_modules (most reliable after npm install)
48
+ path.join(projectRoot, 'node_modules', 'pikakit', 'lib', 'agent-cli', 'dashboard'),
49
+ // 2. Local symlink or copy in project
50
+ path.join(projectRoot, 'lib', 'agent-cli', 'dashboard'),
51
+ // 3. Relative to this script (original behavior for development)
52
+ path.join(__dirname, '..', 'dashboard')
53
+ ];
54
+
55
+ for (const p of possiblePaths) {
56
+ if (fs.existsSync(path.join(p, 'index.html'))) {
57
+ console.log(`[Dashboard] Using dashboard from: ${p}`);
58
+ return p;
59
+ }
60
+ }
61
+
62
+ // Fallback to original path
63
+ console.log(`[Dashboard] Fallback to __dirname path`);
64
+ return path.join(__dirname, '..', 'dashboard');
65
+ }
66
+
67
+ const dashboardPath = findDashboardPath();
44
68
  const knowledgeDir = path.join(projectRoot, '.agent', 'knowledge');
45
69
 
46
70
  // Read lessons count - prioritize v6 format
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pikakit",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Enterprise-grade Agent Skill Manager with Antigravity Skills support, Progressive Disclosure detection, and semantic routing validation",
5
5
  "license": "MIT",
6
6
  "author": "pikakit <pikakit@gmail.com>",