pikakit 1.0.3 → 1.0.5
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.
- package/bin/lib/commands/install.js +48 -10
- package/package.json +79 -79
|
@@ -697,7 +697,7 @@ export async function run(spec) {
|
|
|
697
697
|
// Install CLI package
|
|
698
698
|
stepLine();
|
|
699
699
|
const cliSpinner = spinner();
|
|
700
|
-
const cliPackage = "
|
|
700
|
+
const cliPackage = "pikakit";
|
|
701
701
|
|
|
702
702
|
if (isGlobal) {
|
|
703
703
|
if (installAutoLearn) {
|
|
@@ -754,25 +754,42 @@ export async function run(spec) {
|
|
|
754
754
|
// Create wrapper scripts for direct command access (Windows + Unix)
|
|
755
755
|
try {
|
|
756
756
|
const projectRoot = process.cwd();
|
|
757
|
+
const binDir = path.join(projectRoot, "node_modules", ".bin");
|
|
757
758
|
|
|
758
|
-
// Always create kit wrappers
|
|
759
|
-
const kitCmd = `@echo off\nnode "%~dp0node_modules\\
|
|
760
|
-
const kitSh = `#!/bin/sh\nnode "$(dirname "$0")/node_modules/
|
|
759
|
+
// Always create kit wrappers at project root
|
|
760
|
+
const kitCmd = `@echo off\nnode "%~dp0node_modules\\pikakit\\bin\\kit.js" %*`;
|
|
761
|
+
const kitSh = `#!/bin/sh\nnode "$(dirname "$0")/node_modules/pikakit/bin/kit.js" "$@"`;
|
|
761
762
|
fs.writeFileSync(path.join(projectRoot, "kit.cmd"), kitCmd);
|
|
762
763
|
fs.writeFileSync(path.join(projectRoot, "kit"), kitSh, { mode: 0o755 });
|
|
763
764
|
|
|
765
|
+
// Also create in node_modules/.bin for npx support
|
|
766
|
+
if (fs.existsSync(binDir)) {
|
|
767
|
+
const kitBinCmd = `@echo off\nnode "%~dp0..\\pikakit\\bin\\kit.js" %*`;
|
|
768
|
+
const kitBinSh = `#!/bin/sh\nnode "$(dirname "$0")/../pikakit/bin/kit.js" "$@"`;
|
|
769
|
+
fs.writeFileSync(path.join(binDir, "kit.cmd"), kitBinCmd);
|
|
770
|
+
fs.writeFileSync(path.join(binDir, "kit"), kitBinSh, { mode: 0o755 });
|
|
771
|
+
}
|
|
772
|
+
|
|
764
773
|
if (installAutoLearn) {
|
|
765
774
|
// Create agent wrappers only if AutoLearn enabled
|
|
766
|
-
const agentCmd = `@echo off\nnode "%~dp0node_modules\\
|
|
767
|
-
const agentSh = `#!/bin/sh\nnode "$(dirname "$0")/node_modules/
|
|
775
|
+
const agentCmd = `@echo off\nnode "%~dp0node_modules\\pikakit\\lib\\agent-cli\\bin\\agent.js" %*`;
|
|
776
|
+
const agentSh = `#!/bin/sh\nnode "$(dirname "$0")/node_modules/pikakit/lib/agent-cli/bin/agent.js" "$@"`;
|
|
768
777
|
fs.writeFileSync(path.join(projectRoot, "agent.cmd"), agentCmd);
|
|
769
778
|
fs.writeFileSync(path.join(projectRoot, "agent"), agentSh, { mode: 0o755 });
|
|
770
779
|
|
|
771
|
-
|
|
772
|
-
|
|
780
|
+
// Also create in node_modules/.bin for npx support
|
|
781
|
+
if (fs.existsSync(binDir)) {
|
|
782
|
+
const agentBinCmd = `@echo off\nnode "%~dp0..\\pikakit\\lib\\agent-cli\\bin\\agent.js" %*`;
|
|
783
|
+
const agentBinSh = `#!/bin/sh\nnode "$(dirname "$0")/../pikakit/lib/agent-cli/bin/agent.js" "$@"`;
|
|
784
|
+
fs.writeFileSync(path.join(binDir, "agent.cmd"), agentBinCmd);
|
|
785
|
+
fs.writeFileSync(path.join(binDir, "agent"), agentBinSh, { mode: 0o755 });
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
step(c.green("✔ Created wrapper scripts: agent, kit"));
|
|
789
|
+
step(c.dim("Run: npx agent | npx kit | .\\agent | .\\kit (Windows)"));
|
|
773
790
|
} else {
|
|
774
|
-
step(c.green("
|
|
775
|
-
step(c.dim("Run
|
|
791
|
+
step(c.green("✔ Created wrapper script: kit"));
|
|
792
|
+
step(c.dim("Run: npx kit | .\\kit (Windows)"));
|
|
776
793
|
}
|
|
777
794
|
} catch (wrapperErr) {
|
|
778
795
|
step(c.dim("Run: npx kit"));
|
|
@@ -797,6 +814,27 @@ export async function run(spec) {
|
|
|
797
814
|
|
|
798
815
|
// Python dependencies no longer needed - all scripts migrated to JS
|
|
799
816
|
|
|
817
|
+
// Final Quick Start Guide
|
|
818
|
+
stepLine();
|
|
819
|
+
console.log(boxen(
|
|
820
|
+
`${c.cyan("Quick Start Commands:")}\n\n` +
|
|
821
|
+
`${c.green("Option 1:")} ${c.white("npm run kit")} ${c.dim("// npm scripts")}\n` +
|
|
822
|
+
`${c.green("Option 2:")} ${c.white("npx kit")} ${c.dim("// npx")}\n` +
|
|
823
|
+
`${c.green("Option 3:")} ${c.white(".\\\\kit")} ${c.dim("// PowerShell direct")}\n\n` +
|
|
824
|
+
(installAutoLearn ?
|
|
825
|
+
`${c.cyan("Agent Commands:")}\n` +
|
|
826
|
+
`${c.white("npm run agent")} ${c.dim("or")} ${c.white("npx agent")} ${c.dim("or")} ${c.white(".\\\\agent")}\n\n` : "") +
|
|
827
|
+
`${c.yellow("Note:")} Windows PowerShell requires ${c.white(".\\\\")}\n` +
|
|
828
|
+
`prefix to run scripts from current directory.`,
|
|
829
|
+
{
|
|
830
|
+
padding: 1,
|
|
831
|
+
borderColor: "cyan",
|
|
832
|
+
borderStyle: "round",
|
|
833
|
+
title: c.cyan("⚡ Get Started"),
|
|
834
|
+
titleAlignment: "left"
|
|
835
|
+
}
|
|
836
|
+
).split("\\n").map(l => `${c.gray(S.branch)} ${l}`).join("\\n"));
|
|
837
|
+
|
|
800
838
|
stepLine();
|
|
801
839
|
console.log(` ${c.cyan("Done!")}`);
|
|
802
840
|
console.log();
|
package/package.json
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pikakit",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Enterprise-grade Agent Skill Manager with Antigravity Skills support, Progressive Disclosure detection, and semantic routing validation",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "agentskillkit <agentskillkit@gmail.com>",
|
|
7
|
-
"homepage": "https://github.com/agentskillkit/pikakit",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/agentskillkit/pikakit.git"
|
|
11
|
-
},
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/agentskillkit/pikakit/issues"
|
|
14
|
-
},
|
|
15
|
-
"type": "module",
|
|
16
|
-
"bin": {
|
|
17
|
-
"pikakit": "./bin/cli.mjs",
|
|
18
|
-
"kit": "./bin/cli.mjs",
|
|
19
|
-
"agent": "./lib/agent-cli/bin/agent.js"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"bin/",
|
|
23
|
-
"lib/",
|
|
24
|
-
"specs/",
|
|
25
|
-
"README.md",
|
|
26
|
-
"LICENSE"
|
|
27
|
-
],
|
|
28
|
-
"types": "./lib/agent-cli/types/index.d.ts",
|
|
29
|
-
"engines": {
|
|
30
|
-
"node": ">=18.0.0"
|
|
31
|
-
},
|
|
32
|
-
"keywords": [
|
|
33
|
-
"agent",
|
|
34
|
-
"ai",
|
|
35
|
-
"skills",
|
|
36
|
-
"cli",
|
|
37
|
-
"tooling",
|
|
38
|
-
"registry",
|
|
39
|
-
"security",
|
|
40
|
-
"devops",
|
|
41
|
-
"automation",
|
|
42
|
-
"antigravity"
|
|
43
|
-
],
|
|
44
|
-
"scripts": {
|
|
45
|
-
"lint": "eslint bin/",
|
|
46
|
-
"lint:fix": "eslint bin/ --fix",
|
|
47
|
-
"format": "prettier --write bin/",
|
|
48
|
-
"test": "vitest run",
|
|
49
|
-
"test:watch": "vitest",
|
|
50
|
-
"ci": "npm run lint && npm test && node bin/kit.js verify --strict && node bin/kit.js doctor --strict",
|
|
51
|
-
"agent": "agent"
|
|
52
|
-
},
|
|
53
|
-
"publishConfig": {
|
|
54
|
-
"access": "public"
|
|
55
|
-
},
|
|
56
|
-
"dependencies": {
|
|
57
|
-
"@clack/core": "^0.5.0",
|
|
58
|
-
"@clack/prompts": "^0.11.0",
|
|
59
|
-
"@google/generative-ai": "^0.21.0",
|
|
60
|
-
"boxen": "^8.0.1",
|
|
61
|
-
"chalk": "^5.4.1",
|
|
62
|
-
"clipboardy": "^5.1.0",
|
|
63
|
-
"csv-parse": "^6.1.0",
|
|
64
|
-
"css-tree": "^3.1.0",
|
|
65
|
-
"dotenv": "^16.4.5",
|
|
66
|
-
"gradient-string": "^2.0.2",
|
|
67
|
-
"js-yaml": "^4.1.0",
|
|
68
|
-
"kleur": "^4.1.5",
|
|
69
|
-
"ora": "^9.1.0",
|
|
70
|
-
"picocolors": "^1.1.1",
|
|
71
|
-
"prompts": "^2.4.2"
|
|
72
|
-
},
|
|
73
|
-
"devDependencies": {
|
|
74
|
-
"agentskillskit-cli": "^3.2.0",
|
|
75
|
-
"eslint": "^8.57.0",
|
|
76
|
-
"prettier": "^3.2.5",
|
|
77
|
-
"vitest": "^4.0.18"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "pikakit",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Enterprise-grade Agent Skill Manager with Antigravity Skills support, Progressive Disclosure detection, and semantic routing validation",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "agentskillkit <agentskillkit@gmail.com>",
|
|
7
|
+
"homepage": "https://github.com/agentskillkit/pikakit",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/agentskillkit/pikakit.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/agentskillkit/pikakit/issues"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"bin": {
|
|
17
|
+
"pikakit": "./bin/cli.mjs",
|
|
18
|
+
"kit": "./bin/cli.mjs",
|
|
19
|
+
"agent": "./lib/agent-cli/bin/agent.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin/",
|
|
23
|
+
"lib/",
|
|
24
|
+
"specs/",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
27
|
+
],
|
|
28
|
+
"types": "./lib/agent-cli/types/index.d.ts",
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18.0.0"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"agent",
|
|
34
|
+
"ai",
|
|
35
|
+
"skills",
|
|
36
|
+
"cli",
|
|
37
|
+
"tooling",
|
|
38
|
+
"registry",
|
|
39
|
+
"security",
|
|
40
|
+
"devops",
|
|
41
|
+
"automation",
|
|
42
|
+
"antigravity"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"lint": "eslint bin/",
|
|
46
|
+
"lint:fix": "eslint bin/ --fix",
|
|
47
|
+
"format": "prettier --write bin/",
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"test:watch": "vitest",
|
|
50
|
+
"ci": "npm run lint && npm test && node bin/kit.js verify --strict && node bin/kit.js doctor --strict",
|
|
51
|
+
"agent": "agent"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@clack/core": "^0.5.0",
|
|
58
|
+
"@clack/prompts": "^0.11.0",
|
|
59
|
+
"@google/generative-ai": "^0.21.0",
|
|
60
|
+
"boxen": "^8.0.1",
|
|
61
|
+
"chalk": "^5.4.1",
|
|
62
|
+
"clipboardy": "^5.1.0",
|
|
63
|
+
"csv-parse": "^6.1.0",
|
|
64
|
+
"css-tree": "^3.1.0",
|
|
65
|
+
"dotenv": "^16.4.5",
|
|
66
|
+
"gradient-string": "^2.0.2",
|
|
67
|
+
"js-yaml": "^4.1.0",
|
|
68
|
+
"kleur": "^4.1.5",
|
|
69
|
+
"ora": "^9.1.0",
|
|
70
|
+
"picocolors": "^1.1.1",
|
|
71
|
+
"prompts": "^2.4.2"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"agentskillskit-cli": "^3.2.0",
|
|
75
|
+
"eslint": "^8.57.0",
|
|
76
|
+
"prettier": "^3.2.5",
|
|
77
|
+
"vitest": "^4.0.18"
|
|
78
|
+
}
|
|
79
|
+
}
|