pikakit 1.0.39 → 1.0.41
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.
|
@@ -767,6 +767,23 @@ lessons: []
|
|
|
767
767
|
titleAlignment: "left"
|
|
768
768
|
}).split("\n").map(l => `${c.gray(S.branch)} ${l}`).join("\n"));
|
|
769
769
|
|
|
770
|
+
// === SINGLE-SOURCE ARCHITECTURE ===
|
|
771
|
+
// Copy lib/agent-cli from cloned repo BEFORE deleting tmp
|
|
772
|
+
// This ensures AutoLearn CLI comes from agent-skill-kit repo, not npm
|
|
773
|
+
const agentCliSrc = path.join(tmp, "lib", "agent-cli");
|
|
774
|
+
const agentCliLocalCache = path.join(os.tmpdir(), "pikakit-agent-cli-cache");
|
|
775
|
+
let agentCliAvailable = false;
|
|
776
|
+
|
|
777
|
+
if (fs.existsSync(agentCliSrc)) {
|
|
778
|
+
// Cache lib/agent-cli to temp location before tmp is deleted
|
|
779
|
+
if (fs.existsSync(agentCliLocalCache)) {
|
|
780
|
+
fs.rmSync(agentCliLocalCache, { recursive: true, force: true });
|
|
781
|
+
}
|
|
782
|
+
fs.cpSync(agentCliSrc, agentCliLocalCache, { recursive: true });
|
|
783
|
+
agentCliAvailable = true;
|
|
784
|
+
console.log(`[Install] Cached lib/agent-cli from repo (${fs.readdirSync(agentCliSrc).length} items)`);
|
|
785
|
+
}
|
|
786
|
+
|
|
770
787
|
fs.rmSync(tmp, { recursive: true, force: true });
|
|
771
788
|
|
|
772
789
|
// Ask user about AutoLearn installation
|
|
@@ -887,6 +904,35 @@ lessons: []
|
|
|
887
904
|
}
|
|
888
905
|
}
|
|
889
906
|
|
|
907
|
+
// === SINGLE-SOURCE: Overwrite lib/agent-cli with version from repo ===
|
|
908
|
+
if (agentCliAvailable && !isGlobal) {
|
|
909
|
+
stepLine();
|
|
910
|
+
const overwriteSpinner = spinner();
|
|
911
|
+
overwriteSpinner.start("Syncing AutoLearn CLI from repo...");
|
|
912
|
+
try {
|
|
913
|
+
const destAgentCli = path.join(process.cwd(), "node_modules", "pikakit", "lib", "agent-cli");
|
|
914
|
+
|
|
915
|
+
// Remove existing lib/agent-cli if exists
|
|
916
|
+
if (fs.existsSync(destAgentCli)) {
|
|
917
|
+
fs.rmSync(destAgentCli, { recursive: true, force: true });
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
// Copy from cached repo version
|
|
921
|
+
fs.mkdirSync(path.dirname(destAgentCli), { recursive: true });
|
|
922
|
+
fs.cpSync(agentCliLocalCache, destAgentCli, { recursive: true });
|
|
923
|
+
|
|
924
|
+
// Cleanup cache
|
|
925
|
+
fs.rmSync(agentCliLocalCache, { recursive: true, force: true });
|
|
926
|
+
|
|
927
|
+
const itemCount = fs.readdirSync(destAgentCli).length;
|
|
928
|
+
overwriteSpinner.stop(`AutoLearn CLI synced from repo (${itemCount} modules)`);
|
|
929
|
+
step(c.green("✓ Single-source: lib/agent-cli from agent-skill-kit"));
|
|
930
|
+
} catch (syncErr) {
|
|
931
|
+
overwriteSpinner.stop(c.yellow("AutoLearn sync skipped (using npm version)"));
|
|
932
|
+
console.log(`[Install] Sync error: ${syncErr.message}`);
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
|
|
890
936
|
// Run npm install to ensure all skill dependencies are available
|
|
891
937
|
stepLine();
|
|
892
938
|
const depsSpinner = spinner();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* Smart Agent CLI - ESM Version (Production-Ready)
|
|
4
4
|
*
|
|
@@ -149,7 +149,7 @@ switch (COMMAND) {
|
|
|
149
149
|
|
|
150
150
|
// Auto-Learn features
|
|
151
151
|
case "dashboard":
|
|
152
|
-
run("
|
|
152
|
+
run("dashboard-server.js", ARGS.slice(1), AUTO_LEARN_DIR);
|
|
153
153
|
break;
|
|
154
154
|
case "auto-learn":
|
|
155
155
|
const subCmd = ARGS[1];
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pikakit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
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>",
|
|
7
7
|
"homepage": "https://github.com/pikakit/pikakit",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/pikakit/pikakit.git"
|
|
10
|
+
"url": "git+https://github.com/pikakit/pikakit.git"
|
|
11
11
|
},
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/pikakit/pikakit/issues"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
16
|
"bin": {
|
|
17
|
-
"pikakit": "
|
|
18
|
-
"kit": "
|
|
19
|
-
"agent": "
|
|
17
|
+
"pikakit": "bin/cli.mjs",
|
|
18
|
+
"kit": "bin/kit.js",
|
|
19
|
+
"agent": "lib/agent-cli/bin/agent.js"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"bin/",
|