pikakit 1.0.52 → 1.0.54

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.
@@ -709,7 +709,7 @@
709
709
 
710
710
  <!-- Onboarding Banner (shown for new users) -->
711
711
  <div class="onboarding-banner" id="onboardingBanner">
712
- <div class="onboarding-title">🚀 Welcome to PikaKit!</div>
712
+ <div class="onboarding-title">🚀 Welcome to Pika Auto-Learning System!</div>
713
713
  <div class="onboarding-subtitle">Start using the AI coding assistant to see your learning metrics here.
714
714
  </div>
715
715
  <div class="onboarding-steps">
@@ -1059,7 +1059,7 @@
1059
1059
  function renderSkills(skills) {
1060
1060
  const container = document.getElementById('skillsList');
1061
1061
  if (!skills?.length) {
1062
- container.innerHTML = '<div class="skill-item"><span class="skill-name">No skills yet</span><span class="skill-confidence">--</span></div>';
1062
+ container.innerHTML = '<div class="skill-item"><span class="skill-name">No skills yet</span><span class="skill-confidence"></span></div>';
1063
1063
  return;
1064
1064
  }
1065
1065
 
@@ -75,12 +75,12 @@ function findDashboardScript() {
75
75
  const projectRoot = process.cwd();
76
76
 
77
77
  const possiblePaths = [
78
- // PRIORITY 0: npm package in node_modules (HIGHEST - always has latest published code)
79
- path.join(projectRoot, "node_modules", "pikakit", "lib", "agent-cli", "scripts", "dashboard-server.js"),
80
- // PRIORITY 1: New v7.0 script bundled with CLI package
78
+ // PRIORITY 0: Script bundled with CLI package (for development/latest code)
81
79
  path.join(cliRoot, "scripts", "dashboard-server.js"),
82
- // PRIORITY 2: Dashboard folder (legacy)
80
+ // PRIORITY 1: Dashboard folder (legacy in CLI package)
83
81
  path.join(cliRoot, "dashboard", "dashboard-server.js"),
82
+ // PRIORITY 2: npm package in node_modules (published code - may be outdated)
83
+ path.join(projectRoot, "node_modules", "pikakit", "lib", "agent-cli", "scripts", "dashboard-server.js"),
84
84
  // PRIORITY 3: Current project paths
85
85
  path.join(projectRoot, ".agent", "skills", "auto-learner", "scripts", "dashboard-server.js"),
86
86
  // PRIORITY 4: Fallback - agent-skill-kit
@@ -177,7 +177,8 @@ export async function runDashboardUI() {
177
177
 
178
178
  const child = spawn("node", [scriptPath, "--port", String(port)], {
179
179
  stdio: ["ignore", "pipe", "pipe"],
180
- detached: false
180
+ detached: false,
181
+ cwd: process.cwd() // CRITICAL: Pass current working directory so server finds .agent/knowledge
181
182
  });
182
183
 
183
184
  runningServer = child;
@@ -40,6 +40,8 @@ function findProjectRoot() {
40
40
  }
41
41
 
42
42
  const projectRoot = findProjectRoot();
43
+ console.log(`[Dashboard] Project root: ${projectRoot}`);
44
+ console.log(`[Dashboard] process.cwd(): ${process.cwd()}`);
43
45
 
44
46
  // Find dashboard folder from multiple possible locations
45
47
  function findDashboardPath() {
@@ -256,6 +258,19 @@ const api = {
256
258
  // Summary (legacy support)
257
259
  '/api/summary': () => {
258
260
  return { status: 'ok', version: '7.0.0', server: 'PikaKit Dashboard Server' };
261
+ },
262
+
263
+ // Debug endpoint to check paths
264
+ '/api/debug': () => {
265
+ const knowledgePath = path.join(knowledgeDir, 'knowledge.yaml');
266
+ return {
267
+ projectRoot,
268
+ knowledgeDir,
269
+ knowledgePath,
270
+ cwd: process.cwd(),
271
+ fileExists: fs.existsSync(knowledgePath),
272
+ lessonsCount: getLessonsCount()
273
+ };
259
274
  }
260
275
  };
261
276
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pikakit",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
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>",