pikakit 3.9.216 → 3.9.217

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.
@@ -9,8 +9,8 @@ const AGENTS = {
9
9
  name: "antigravity",
10
10
  displayName: "Antigravity",
11
11
  skillsDir: ".agent/skills",
12
- globalSkillsDir: join(home, ".gemini/antigravity/global_skills"),
13
- detect: () => existsSync(join(process.cwd(), ".agent")) || existsSync(join(home, ".gemini/antigravity"))
12
+ globalSkillsDir: existsSync(join(home, ".gemini/config/skills")) ? join(home, ".gemini/config/skills") : join(home, ".gemini/antigravity/skills"),
13
+ detect: () => existsSync(join(process.cwd(), ".agent")) || existsSync(join(home, ".gemini/config")) || existsSync(join(home, ".gemini/antigravity"))
14
14
  },
15
15
  "claude-code": {
16
16
  name: "claude-code",
@@ -38,11 +38,19 @@ async function run() {
38
38
  step(`${name}: ${c.yellow("checksum fixed")}`, S.diamond, "yellow");
39
39
  } else {
40
40
  step(`${name}: ${c.yellow("checksum drift")}`, S.diamond, "yellow");
41
- STRICT ? errors++ : warnings++;
41
+ if (STRICT) {
42
+ errors++;
43
+ } else {
44
+ warnings++;
45
+ }
42
46
  }
43
47
  } else if (lock && !lock.skills[name]) {
44
48
  step(`${name}: ${c.yellow("not in lock")}`, S.diamond, "yellow");
45
- STRICT ? errors++ : warnings++;
49
+ if (STRICT) {
50
+ errors++;
51
+ } else {
52
+ warnings++;
53
+ }
46
54
  } else {
47
55
  step(`${name}: ${c.green("healthy")}`, S.check, "green");
48
56
  }
@@ -378,7 +378,7 @@ async function run(spec) {
378
378
  );
379
379
  const vsixDir = path.join(__cliDir, "packages", "pikakit-extension");
380
380
  let wantExtension = false;
381
- let detectedIDEs = [];
381
+ const detectedIDEs = [];
382
382
  if (fs.existsSync(vsixDir)) {
383
383
  const localApps = process.env.LOCALAPPDATA || path.join(home, "AppData", "Local");
384
384
  const fallbackPaths = {
@@ -1,7 +1,6 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
3
  import os from "os";
4
- import prompts from "prompts";
5
4
  import { resolveScope, createBackup } from "../helpers.js";
6
5
  import {
7
6
  step,
@@ -10,6 +9,7 @@ import {
10
9
  fatal,
11
10
  c,
12
11
  select,
12
+ confirm,
13
13
  isCancel,
14
14
  cancel
15
15
  } from "../ui.js";
@@ -140,13 +140,11 @@ async function removeAllWithConfirmation(scope, skills) {
140
140
  skills.forEach((s) => step(` \xE2\u20AC\xA2 ${s}`, "", "dim"));
141
141
  stepLine();
142
142
  if (!FORCE) {
143
- const confirmSkills = await prompts({
144
- type: "confirm",
145
- name: "value",
143
+ const confirmSkills = await confirm({
146
144
  message: `Remove all ${skills.length} skill(s)?`,
147
- initial: false
145
+ initialValue: false
148
146
  });
149
- if (!confirmSkills.value) {
147
+ if (isCancel(confirmSkills) || !confirmSkills) {
150
148
  step("Cancelled");
151
149
  return;
152
150
  }
@@ -171,13 +169,11 @@ async function removeAllWithConfirmation(scope, skills) {
171
169
  stepLine();
172
170
  let confirmAgentValue = FORCE;
173
171
  if (!FORCE) {
174
- const confirmAgent = await prompts({
175
- type: "confirm",
176
- name: "value",
172
+ const confirmAgent = await confirm({
177
173
  message: "Remove entire .agent folder?",
178
- initial: false
174
+ initialValue: false
179
175
  });
180
- confirmAgentValue = confirmAgent.value;
176
+ confirmAgentValue = !isCancel(confirmAgent) && Boolean(confirmAgent);
181
177
  }
182
178
  if (confirmAgentValue) {
183
179
  fs.rmSync(agentDir, { recursive: true, force: true });
@@ -191,13 +187,11 @@ async function removeAllWithConfirmation(scope, skills) {
191
187
  stepLine();
192
188
  let confirmNpmValue = FORCE;
193
189
  if (!FORCE) {
194
- const confirmNpm = await prompts({
195
- type: "confirm",
196
- name: "value",
190
+ const confirmNpm = await confirm({
197
191
  message: "Remove npm dependencies?",
198
- initial: false
192
+ initialValue: false
199
193
  });
200
- confirmNpmValue = confirmNpm.value;
194
+ confirmNpmValue = !isCancel(confirmNpm) && Boolean(confirmNpm);
201
195
  }
202
196
  if (confirmNpmValue) {
203
197
  const cwd = process.cwd();
@@ -237,13 +231,11 @@ async function removeSingleSkill(scope, skillName) {
237
231
  stepLine();
238
232
  step(`Removing skill: ${c.cyan(skillName)}`);
239
233
  if (!FORCE) {
240
- const confirmRemove = await prompts({
241
- type: "confirm",
242
- name: "value",
234
+ const confirmRemove = await confirm({
243
235
  message: "Confirm removal?",
244
- initial: false
236
+ initialValue: false
245
237
  });
246
- if (!confirmRemove.value) {
238
+ if (isCancel(confirmRemove) || !confirmRemove) {
247
239
  step("Cancelled");
248
240
  return;
249
241
  }
@@ -1,8 +1,13 @@
1
+ import fs from "fs";
1
2
  import path from "path";
2
3
  import os from "os";
3
4
  const cwd = process.cwd();
4
5
  const WORKSPACE = process.env.ADD_SKILL_WORKSPACE || path.join(cwd, ".agent", "skills");
5
- const GLOBAL_DIR = process.env.ADD_SKILL_GLOBAL_DIR || path.join(os.homedir(), ".gemini", "antigravity", "skills");
6
+ const GLOBAL_DIR = process.env.ADD_SKILL_GLOBAL_DIR || (() => {
7
+ const configSkills = path.join(os.homedir(), ".gemini", "config", "skills");
8
+ if (fs.existsSync(configSkills)) return configSkills;
9
+ return path.join(os.homedir(), ".gemini", "antigravity", "skills");
10
+ })();
6
11
  const CACHE_ROOT = process.env.ADD_SKILL_CACHE_DIR || path.join(os.homedir(), ".cache", "agentskillskit");
7
12
  const REGISTRY_CACHE = path.join(CACHE_ROOT, "registries");
8
13
  const REGISTRIES_FILE = path.join(CACHE_ROOT, "registries.json");
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "pikakit",
3
- "version": "3.9.216",
3
+ "version": "3.9.217",
4
4
  "description": "PikaKit FAANG-Grade AI Operating System — Install 52 skills, 19 workflows.",
5
5
  "license": "MIT",
6
6
  "author": "pikakit <pikakit@gmail.com>",
7
- "homepage": "https://github.com/pikakit/agent-skills",
7
+ "homepage": "https://github.com/pikakit/add-skill-kit",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/pikakit/agent-skills.git"
10
+ "url": "git+https://github.com/pikakit/add-skill-kit.git"
11
11
  },
12
12
  "bugs": {
13
- "url": "https://github.com/pikakit/agent-skills/issues"
13
+ "url": "https://github.com/pikakit/add-skill-kit/issues"
14
14
  },
15
15
  "type": "module",
16
16
  "bin": {
@@ -56,28 +56,17 @@
56
56
  "dependencies": {
57
57
  "@clack/core": "^0.5.0",
58
58
  "@clack/prompts": "^0.11.0",
59
- "@google/generative-ai": "^0.21.0",
60
59
  "boxen": "^8.0.1",
61
- "css-tree": "^3.1.0",
62
- "csv-parse": "^6.1.0",
63
- "dotenv": "^16.4.5",
64
60
  "gradient-string": "^3.0.0",
65
- "js-yaml": "^4.1.0",
66
- "kleur": "^4.1.5",
67
- "ora": "^9.1.0",
68
- "picocolors": "^1.1.1",
69
- "prompts": "^2.4.2"
61
+ "kleur": "^4.1.5"
70
62
  },
71
63
  "devDependencies": {
72
- "@types/better-sqlite3": "^7.6.13",
73
- "@types/js-yaml": "^4.0.9",
74
64
  "@types/node": "^25.6.0",
75
- "@types/prompts": "^2.4.9",
76
65
  "eslint": "^9.39.2",
77
- "pikakit": "^3.9.34",
78
66
  "prettier": "^3.2.5",
79
67
  "tsup": "^8.5.1",
80
68
  "typescript": "^6.0.3",
69
+ "typescript-eslint": "^8.70.0",
81
70
  "vitest": "^4.0.18"
82
71
  }
83
72
  }
@@ -1,96 +1,96 @@
1
- <div align="center">
2
-
3
- <h1>
4
- <img src="https://raw.githubusercontent.com/pikakit/agent-skills/main/assets/logo.png" width="48" align="center" alt="PikaKit Logo" style="vertical-align: middle; margin-right: 10px;" />
5
- PIKA<span style="color: #c0ff00;">KIT</span> Engine
6
- </h1>
7
-
8
- ### The Zero-Distraction Execution & Telemetry Layer for Autonomous Programming
9
-
10
- [![npm](https://img.shields.io/badge/npm-v3.9.216-7c3aed?style=for-the-badge&logo=npm&logoColor=white&labelColor=18181b)](https://www.npmjs.com/package/pikakit)
11
- [![Skills](https://img.shields.io/badge/52_skills-06b6d4?style=for-the-badge&labelColor=18181b)](https://github.com/pikakit/agent-skills)
12
- [![Workflows](https://img.shields.io/badge/19_workflows-10b981?style=for-the-badge&labelColor=18181b)](https://github.com/pikakit/agent-skills)
13
- [![TypeScript](https://img.shields.io/badge/typescript_cli_·_engine-3178c6?style=for-the-badge&logo=typescript&logoColor=white&labelColor=18181b)](https://github.com/pikakit/agent-skills)
14
-
15
- </div>
16
-
17
- PikaKit Engine is the execution and memory core of the **PikaKit AI Operating System**. It runs natively inside VS Code, granting AI agents real-world IDE control, deterministic execution, and a permanent, offline-first vector memory engine.
18
-
19
- *This extension is the crucial bridge that turns an AI Assistant into a deterministic Self-Healing Developer.*
20
-
21
- ---
22
-
23
- ## ⚡ Core Architecture (Knowledge)
24
-
25
- With the release of PikaKit Knowledge, PikaKit Engine introduces the Autonomous Self-Healing Pipeline directly into your IDE:
26
-
27
- ### 1️⃣ Local Memory Engine (WASM)
28
- - Powered by `sql.js` (WASM), storing permanent knowledge, AST hashes, and execution patterns entirely locally without external database dependencies.
29
- - **5-Table Relational Trust:** Manages `lessons`, `embeddings`, `signals`, `fixes_applied`, and `fix_templates`.
30
-
31
- ### 2️⃣ Autonomous Execution Engine
32
- A real-time Background Worker that automatically resolves simple and complex codebase regressions:
33
- - **Fast Path:** Applies deterministic regex solutions (Level 1/2) for common patterns directly via `WorkspaceEdit` with strict Scope bounding to ensure Safety.
34
- - **Deep Path (Semantic Fallback):** When naive regex fails, it converts IDE diagnostics into Embeddings and performs **Cosine Similarity Vector Search** on your historical bugs/commits to retrieve solutions contextually.
35
-
36
- ### 3️⃣ Silent Knowledge Telemetry (Zero Distraction)
37
- Engine hoạt động hoàn toàn ngầm không gây gián đoạn cho lập trình viên:
38
- - **Zero Toast Popups:** Loại bỏ 100% các thông báo popup che màn hình khi gõ code hay debug.
39
- - **Native Knowledge Bridge:** Tự động bắt lỗi diagnostics và lỗi terminal, âm thầm ghi thành các tín hiệu chuẩn tại `.agent/knowledge/raw-signals/SIG-XXX.md`.
40
- - **Clean Skill Separation:** Tách biệt hoàn toàn tầng sensor với tầng sinh skill, không tự ý sinh skill rác vào `.agent/skills/`.
41
-
42
- ### 4️⃣ CDP File Access Integration (Zero-Friction)
43
- - Tự động phát hiện và click *"Allow file access?"* thông qua Chrome DevTools Protocol (CDP), giúp AI đọc/ghi file trơn tru mà không bị khựng lại chờ bấm chuột.
44
- - Trạng thái kết nối hiển thị rõ ràng trên Status Bar (`🔌 CDP: ON`).
45
-
46
- ---
47
-
48
- ## 🚀 Installation & Setup
49
-
50
- If you install PikaKit via CLI, the extension binds automatically to your workspace:
51
-
52
- ```bash
53
- npx pikakit
54
- ```
55
-
56
- ### Manual VSIX Build
57
- ```bash
58
- cd packages/pikakit-extension
59
- npm install && npm run compile
60
- npx @vscode/vsce package --allow-missing-repository
61
- code --install-extension pikakit.vsix
62
- ```
63
-
64
- ## ⚙️ Configuration
65
- Open VS Code Settings (`Ctrl + ,`) and search for `PikaKit`:
66
-
67
- | Setting | Default | Description |
68
- |---------|---------|-------------|
69
- | `pikakit.autoStart` | `true` | Start knowledge compilation on startup. |
70
-
71
- > **Note:** PikaKit Engine operates **100% locally** using a native WASM inference engine. No API keys, no external network requests, and absolutely no source code is sent outside your machine.
72
-
73
- ## 🛡️ The Autopilot Safety Protocol
74
- Autopilot includes hardcoded blocks against destructive operations:
75
- - Deleting root/home (`rm -rf /`)
76
- - Disk formatting
77
- - Destructive git rewrites
78
- - Unbounded loops
79
-
80
- *Autonomy is meaningless without control.*
81
-
82
- ---
83
-
84
- ## ⚖️ License
85
-
86
- PikaKit Engine is open-source software licensed under the [MIT License](https://github.com/pikakit/add-skill-kit/blob/main/LICENSE).
87
-
88
- ---
89
-
90
- <div align="center">
91
-
92
- **PikaKit Engine v3.9.216** · 52 Skills · 19 Workflows · TypeScript CLI & Engine
93
-
94
- [⭐ Star on GitHub](https://github.com/pikakit/agent-skills) · [Install via npm](https://www.npmjs.com/package/pikakit) · [pikakit.com](https://pikakit.com)
95
-
96
- </div>
1
+ <div align="center">
2
+
3
+ <h1>
4
+ <img src="https://raw.githubusercontent.com/pikakit/agent-skills/main/assets/logo.png" width="48" align="center" alt="PikaKit Logo" style="vertical-align: middle; margin-right: 10px;" />
5
+ PIKA<span style="color: #c0ff00;">KIT</span> Engine
6
+ </h1>
7
+
8
+ ### The Zero-Distraction Execution & Telemetry Layer for Autonomous Programming
9
+
10
+ [![npm](https://img.shields.io/badge/npm-v3.9.217-7c3aed?style=for-the-badge&logo=npm&logoColor=white&labelColor=18181b)](https://www.npmjs.com/package/pikakit)
11
+ [![Skills](https://img.shields.io/badge/52_skills-06b6d4?style=for-the-badge&labelColor=18181b)](https://github.com/pikakit/agent-skills)
12
+ [![Workflows](https://img.shields.io/badge/19_workflows-10b981?style=for-the-badge&labelColor=18181b)](https://github.com/pikakit/agent-skills)
13
+ [![TypeScript](https://img.shields.io/badge/typescript_cli_·_engine-3178c6?style=for-the-badge&logo=typescript&logoColor=white&labelColor=18181b)](https://github.com/pikakit/agent-skills)
14
+
15
+ </div>
16
+
17
+ PikaKit Engine is the execution and memory core of the **PikaKit AI Operating System**. It runs natively inside VS Code, granting AI agents real-world IDE control, deterministic execution, and a permanent, offline-first vector memory engine.
18
+
19
+ *This extension is the crucial bridge that turns an AI Assistant into a deterministic Self-Healing Developer.*
20
+
21
+ ---
22
+
23
+ ## ⚡ Core Architecture (Knowledge)
24
+
25
+ With the release of PikaKit Knowledge, PikaKit Engine introduces the Autonomous Self-Healing Pipeline directly into your IDE:
26
+
27
+ ### 1️⃣ Local Memory Engine (WASM)
28
+ - Powered by `sql.js` (WASM), storing permanent knowledge, AST hashes, and execution patterns entirely locally without external database dependencies.
29
+ - **5-Table Relational Trust:** Manages `lessons`, `embeddings`, `signals`, `fixes_applied`, and `fix_templates`.
30
+
31
+ ### 2️⃣ Autonomous Execution Engine
32
+ A real-time Background Worker that automatically resolves simple and complex codebase regressions:
33
+ - **Fast Path:** Applies deterministic regex solutions (Level 1/2) for common patterns directly via `WorkspaceEdit` with strict Scope bounding to ensure Safety.
34
+ - **Deep Path (Semantic Fallback):** When naive regex fails, it converts IDE diagnostics into Embeddings and performs **Cosine Similarity Vector Search** on your historical bugs/commits to retrieve solutions contextually.
35
+
36
+ ### 3️⃣ Silent Knowledge Telemetry (Zero Distraction)
37
+ Engine hoạt động hoàn toàn ngầm không gây gián đoạn cho lập trình viên:
38
+ - **Zero Toast Popups:** Loại bỏ 100% các thông báo popup che màn hình khi gõ code hay debug.
39
+ - **Native Knowledge Bridge:** Tự động bắt lỗi diagnostics và lỗi terminal, âm thầm ghi thành các tín hiệu chuẩn tại `.agent/knowledge/raw-signals/SIG-XXX.md`.
40
+ - **Clean Skill Separation:** Tách biệt hoàn toàn tầng sensor với tầng sinh skill, không tự ý sinh skill rác vào `.agent/skills/`.
41
+
42
+ ### 4️⃣ CDP File Access Integration (Zero-Friction)
43
+ - Tự động phát hiện và click *"Allow file access?"* thông qua Chrome DevTools Protocol (CDP), giúp AI đọc/ghi file trơn tru mà không bị khựng lại chờ bấm chuột.
44
+ - Trạng thái kết nối hiển thị rõ ràng trên Status Bar (`🔌 CDP: ON`).
45
+
46
+ ---
47
+
48
+ ## 🚀 Installation & Setup
49
+
50
+ If you install PikaKit via CLI, the extension binds automatically to your workspace:
51
+
52
+ ```bash
53
+ npx pikakit
54
+ ```
55
+
56
+ ### Manual VSIX Build
57
+ ```bash
58
+ cd packages/pikakit-extension
59
+ npm install && npm run compile
60
+ npx @vscode/vsce package --allow-missing-repository
61
+ code --install-extension pikakit.vsix
62
+ ```
63
+
64
+ ## ⚙️ Configuration
65
+ Open VS Code Settings (`Ctrl + ,`) and search for `PikaKit`:
66
+
67
+ | Setting | Default | Description |
68
+ |---------|---------|-------------|
69
+ | `pikakit.autoStart` | `true` | Start knowledge compilation on startup. |
70
+
71
+ > **Note:** PikaKit Engine operates **100% locally** using a native WASM inference engine. No API keys, no external network requests, and absolutely no source code is sent outside your machine.
72
+
73
+ ## 🛡️ The Autopilot Safety Protocol
74
+ Autopilot includes hardcoded blocks against destructive operations:
75
+ - Deleting root/home (`rm -rf /`)
76
+ - Disk formatting
77
+ - Destructive git rewrites
78
+ - Unbounded loops
79
+
80
+ *Autonomy is meaningless without control.*
81
+
82
+ ---
83
+
84
+ ## ⚖️ License
85
+
86
+ PikaKit Engine is open-source software licensed under the [MIT License](https://github.com/pikakit/add-skill-kit/blob/main/LICENSE).
87
+
88
+ ---
89
+
90
+ <div align="center">
91
+
92
+ **PikaKit Engine v3.9.217** · 52 Skills · 19 Workflows · TypeScript CLI & Engine
93
+
94
+ [⭐ Star on GitHub](https://github.com/pikakit/agent-skills) · [Install via npm](https://www.npmjs.com/package/pikakit) · [pikakit.com](https://pikakit.com)
95
+
96
+ </div>