pikakit 1.0.51 → 1.0.53
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.
|
@@ -75,12 +75,12 @@ function findDashboardScript() {
|
|
|
75
75
|
const projectRoot = process.cwd();
|
|
76
76
|
|
|
77
77
|
const possiblePaths = [
|
|
78
|
-
// PRIORITY 0:
|
|
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
|
|
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.
|
|
3
|
+
"version": "1.0.53",
|
|
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>",
|