pikakit 3.0.0 → 3.0.1
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.
|
@@ -27,7 +27,7 @@ export const RULES_DIR = path.join(AGENT_DIR, "rules");
|
|
|
27
27
|
/** CLI version - read from package.json */
|
|
28
28
|
export const VERSION = (() => {
|
|
29
29
|
try { return require("../package.json").version; }
|
|
30
|
-
catch { return "3.0.
|
|
30
|
+
catch { return "3.0.1"; }
|
|
31
31
|
})();
|
|
32
32
|
|
|
33
33
|
/** Debug mode */
|
|
@@ -198,12 +198,21 @@ export function loadKnowledge() {
|
|
|
198
198
|
return { lessons, version: 4.0 };
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
// Fallback to v3.x
|
|
202
|
-
if (
|
|
203
|
-
|
|
201
|
+
// Fallback to v3.x YAML
|
|
202
|
+
if (fs.existsSync(LESSONS_PATH)) {
|
|
203
|
+
const content = fs.readFileSync(LESSONS_PATH, "utf8");
|
|
204
|
+
return yaml.load(content) || { lessons: [], version: 1 };
|
|
204
205
|
}
|
|
205
|
-
|
|
206
|
-
|
|
206
|
+
|
|
207
|
+
// Fallback to v3.x JSON (lessons-learned.json)
|
|
208
|
+
const jsonPath = LESSONS_PATH.replace('.yaml', '.json');
|
|
209
|
+
if (fs.existsSync(jsonPath)) {
|
|
210
|
+
const content = fs.readFileSync(jsonPath, "utf8");
|
|
211
|
+
const data = JSON.parse(content);
|
|
212
|
+
return { lessons: data.lessons || [], version: 3 };
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return { lessons: [], version: 1 };
|
|
207
216
|
} catch (error) {
|
|
208
217
|
if (DEBUG) console.error("Error loading knowledge:", error.message);
|
|
209
218
|
return { lessons: [], version: 1 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pikakit",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
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>",
|