pikakit 1.0.34 → 1.0.36
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.
|
@@ -571,16 +571,28 @@ export async function run(spec) {
|
|
|
571
571
|
const targetKnowledgeDir = path.join(WORKSPACE, "..", "knowledge");
|
|
572
572
|
let knowledgeInstalled = false;
|
|
573
573
|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
step("Installed knowledge/");
|
|
577
|
-
knowledgeInstalled = true;
|
|
578
|
-
} else if (!fs.existsSync(targetKnowledgeDir)) {
|
|
579
|
-
// Create empty knowledge folder for Agent CLI
|
|
574
|
+
// Create target directory if not exists
|
|
575
|
+
if (!fs.existsSync(targetKnowledgeDir)) {
|
|
580
576
|
fs.mkdirSync(targetKnowledgeDir, { recursive: true });
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// Copy knowledge.yaml from source if exists
|
|
580
|
+
const knowledgeSrc = path.join(knowledgeDir, "knowledge.yaml");
|
|
581
|
+
const knowledgeDest = path.join(targetKnowledgeDir, "knowledge.yaml");
|
|
582
|
+
|
|
583
|
+
if (fs.existsSync(knowledgeSrc) && !fs.existsSync(knowledgeDest)) {
|
|
584
|
+
fs.copyFileSync(knowledgeSrc, knowledgeDest);
|
|
585
|
+
step("Installed knowledge.yaml (4 default lessons)");
|
|
586
|
+
knowledgeInstalled = true;
|
|
587
|
+
} else if (!fs.existsSync(knowledgeDest)) {
|
|
588
|
+
// Create empty knowledge.yaml in v6 format for Agent CLI
|
|
589
|
+
const defaultKnowledge = `version: 6
|
|
590
|
+
createdAt: "${new Date().toISOString()}"
|
|
591
|
+
updatedAt: "${new Date().toISOString()}"
|
|
592
|
+
lessons: []
|
|
593
|
+
`;
|
|
594
|
+
fs.writeFileSync(knowledgeDest, defaultKnowledge);
|
|
595
|
+
step("Created knowledge.yaml (Agent CLI ready)");
|
|
584
596
|
knowledgeInstalled = true;
|
|
585
597
|
}
|
|
586
598
|
|
|
@@ -46,11 +46,15 @@ const knowledgeDir = path.join(projectRoot, '.agent', 'knowledge');
|
|
|
46
46
|
function getLessonsCount() {
|
|
47
47
|
// Priority 1: v6 unified format
|
|
48
48
|
const knowledgePath = path.join(knowledgeDir, 'knowledge.yaml');
|
|
49
|
+
console.log(`[Dashboard] Looking for knowledge at: ${knowledgePath}`);
|
|
50
|
+
console.log(`[Dashboard] File exists: ${fs.existsSync(knowledgePath)}`);
|
|
49
51
|
if (fs.existsSync(knowledgePath)) {
|
|
50
52
|
try {
|
|
51
53
|
const content = fs.readFileSync(knowledgePath, 'utf-8');
|
|
52
54
|
const data = yaml.load(content);
|
|
53
|
-
|
|
55
|
+
const count = data.lessons?.length || 0;
|
|
56
|
+
console.log(`[Dashboard] Found ${count} lessons`);
|
|
57
|
+
return count;
|
|
54
58
|
} catch (e) {
|
|
55
59
|
// Fall through to legacy
|
|
56
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pikakit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
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>",
|