pikakit 3.9.138 → 3.9.139
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/package.json
CHANGED
|
@@ -1,152 +1,81 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# 🤖 PikaKit Engine
|
|
4
|
+
### The Execution Layer for Autonomous Programming
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
[](https://www.npmjs.com/package/pikakit)
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
- **Knowledge Ingestion** - Extract raw signals from IDE fixes and corrections into `.agent/knowledge/raw/`
|
|
9
|
-
- **Knowledge Compilation** - Cluster signals into cross-linked concept articles (`concepts/`), decisions (`decisions/`), and patterns (`patterns/`)
|
|
10
|
-
- **Knowledge Base** - Maintain a centralized project index (`_index.md` & `_graph.md`)
|
|
11
|
-
- **Skill Generation** - Produce agent `SKILL.md` from mature patterns
|
|
12
|
-
- **Autopilot** - Automatically accept edits + run proposed terminal commands (dangerous commands blocked)
|
|
13
|
-
- **CDP** - Auto-click "Allow file access?" permission dialogs via Chrome DevTools Protocol
|
|
14
|
-
- **Status Bar** - Display Knowledge Engine status + Autopilot/CDP toggles
|
|
8
|
+
</div>
|
|
15
9
|
|
|
16
|
-
|
|
10
|
+
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.
|
|
17
11
|
|
|
18
|
-
|
|
19
|
-
|----------|--------|-------------|
|
|
20
|
-
| `Ctrl+Shift+Enter` | Toggle Autopilot | Auto-accept edits + auto-run commands (dangerous blocked) |
|
|
12
|
+
*This extension is the crucial bridge that turns an AI Assistant into a deterministic Self-Healing Developer.*
|
|
21
13
|
|
|
22
|
-
|
|
14
|
+
---
|
|
23
15
|
|
|
24
|
-
##
|
|
16
|
+
## ⚡ Core Architecture (Brain v2)
|
|
25
17
|
|
|
26
|
-
|
|
18
|
+
With the release of Brain v2, PikaKit Engine introduces the Autonomous Self-Healing Pipeline directly into your IDE:
|
|
27
19
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
### 1️⃣ Local Memory Engine (WASM)
|
|
21
|
+
- Powered by `sql.js` (WASM), storing permanent knowledge, AST hashes, and execution patterns entirely locally without external database dependencies.
|
|
22
|
+
- **5-Table Relational Trust:** Manages `lessons`, `embeddings`, `signals`, `fixes_applied`, and `fix_templates`.
|
|
31
23
|
|
|
32
|
-
|
|
24
|
+
### 2️⃣ Autonomous Execution Engine
|
|
25
|
+
A real-time Background Worker that automatically resolves simple and complex codebase regressions:
|
|
26
|
+
- **Fast Path:** Applies deterministic regex solutions (Level 1/2) for common patterns directly via `WorkspaceEdit` with strict Scope bounding to ensure Safety.
|
|
27
|
+
- **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.
|
|
33
28
|
|
|
34
|
-
###
|
|
29
|
+
### 3️⃣ Pattern Generalization
|
|
30
|
+
When an IDE fix proves successful multiple times, PikaKit abstracts the specific logic into generic reusable AST/Regex rules, generating `.agent/skills/` templates natively within your workspace.
|
|
31
|
+
|
|
32
|
+
### 4️⃣ CDP Auto-Pilot (Zero-Friction)
|
|
33
|
+
- Operates Chrome DevTools Protocol to auto-dismiss VS Code extension dialogues (e.g., "Allow file access?") seamlessly.
|
|
34
|
+
- Enforces strict safety gates against dangerous CLI commands (`rm -rf`, `fork bombs`).
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 🚀 Installation & Setup
|
|
39
|
+
|
|
40
|
+
If you install PikaKit via CLI, the extension binds automatically to your workspace:
|
|
35
41
|
|
|
36
42
|
```bash
|
|
37
|
-
|
|
38
|
-
npm install && npm run compile
|
|
39
|
-
npx @vscode/vsce package --allow-missing-repository
|
|
40
|
-
code --install-extension pikakit-engine-3.9.137.vsix
|
|
43
|
+
npx pikakit
|
|
41
44
|
```
|
|
42
45
|
|
|
43
|
-
###
|
|
44
|
-
|
|
46
|
+
### Manual VSIX Build
|
|
45
47
|
```bash
|
|
46
48
|
cd packages/pikakit-extension
|
|
47
49
|
npm install && npm run compile
|
|
50
|
+
npx @vscode/vsce package --allow-missing-repository
|
|
51
|
+
code --install-extension pikakit.vsix
|
|
48
52
|
```
|
|
49
53
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## Commands
|
|
53
|
-
|
|
54
|
-
Press `Ctrl+Shift+P` → type "PikaKit":
|
|
55
|
-
|
|
56
|
-
| Command | Description |
|
|
57
|
-
|---------|-------------|
|
|
58
|
-
| `PikaKit: Start Learning` | Start compiling knowledge from diagnostics |
|
|
59
|
-
| `PikaKit: Stop Learning` | Stop compiling knowledge |
|
|
60
|
-
| `PikaKit: Generate Skill` | Manually generate skill from patterns |
|
|
61
|
-
| `PikaKit: View Knowledge Wiki` | View the compiled Knowledge Wiki |
|
|
62
|
-
| `PikaKit: Clear Lessons` | Clear all saved patterns |
|
|
63
|
-
| `PikaKit: Toggle Autopilot` | Toggle autopilot (Ctrl+Shift+Enter) |
|
|
64
|
-
| `PikaKit: Toggle CDP` | Toggle CDP file access auto-click |
|
|
65
|
-
| `PikaKit: CDP Setup Guide` | Show CDP setup instructions |
|
|
66
|
-
|
|
67
|
-
## Configuration
|
|
54
|
+
## ⚙️ Configuration
|
|
55
|
+
Open VS Code Settings (`Ctrl + ,`) and search for `PikaKit`:
|
|
68
56
|
|
|
69
57
|
| Setting | Default | Description |
|
|
70
58
|
|---------|---------|-------------|
|
|
71
|
-
| `pikakit.autoStart` | `true` |
|
|
72
|
-
| `pikakit.
|
|
73
|
-
| `pikakit.
|
|
74
|
-
| `pikakit.autopilotEnabled` | `false` | Enable
|
|
75
|
-
|
|
76
|
-
## Architecture
|
|
77
|
-
|
|
78
|
-
### 1. Knowledge Engine
|
|
79
|
-
|
|
80
|
-
```text
|
|
81
|
-
┌─────────────────────────────────────────────────┐
|
|
82
|
-
│ PikaKit Knowledge Engine │
|
|
83
|
-
│ │
|
|
84
|
-
│ ┌──────────────────────────────┐ │
|
|
85
|
-
│ │ 📥 1. Ingestion │ ← Phase 1 │
|
|
86
|
-
│ │ Extract signals from IDE │ raw/ │
|
|
87
|
-
│ └──────────────┬───────────────┘ │
|
|
88
|
-
│ │ │
|
|
89
|
-
│ ┌──────────────┴───────────────┐ │
|
|
90
|
-
│ │ 📚 2. Compilation │ ← Phase 2 │
|
|
91
|
-
│ │ Cluster into Concept Wiki │ concepts/ │
|
|
92
|
-
│ └──────────────┬───────────────┘ │
|
|
93
|
-
│ │ │
|
|
94
|
-
│ ┌──────────────┴───────────────┐ │
|
|
95
|
-
│ │ ⚙️ 3. Generation │ ← Phase 3 │
|
|
96
|
-
│ │ Produce agent SKILL.md │ skills/ │
|
|
97
|
-
│ └──────────────────────────────┘ │
|
|
98
|
-
└─────────────────────────────────────────────────┘
|
|
99
|
-
```
|
|
59
|
+
| `pikakit.autoStart` | `true` | Start knowledge compilation on startup. |
|
|
60
|
+
| `pikakit.apiProvider` | `gemini` | Semantic Search Provider (`gemini` or `openai`). |
|
|
61
|
+
| `pikakit.apiKey` | `""` | API Key for embedding generation & Deep Path Fallback. |
|
|
62
|
+
| `pikakit.autopilotEnabled` | `false` | Enable VS Code command interception. |
|
|
100
63
|
|
|
101
|
-
**
|
|
102
|
-
|
|
103
|
-
### 2. Autonomous Mode
|
|
104
|
-
|
|
105
|
-
```text
|
|
106
|
-
┌─────────────────────────────────────────────────┐
|
|
107
|
-
│ PikaKit Autonomous Mode │
|
|
108
|
-
│ │
|
|
109
|
-
│ ┌──────────────────────────────┐ │
|
|
110
|
-
│ │ ⚡ Autopilot │ ← Layer 1 │
|
|
111
|
-
│ │ (10 VS Code commands) │ Command API │
|
|
112
|
-
│ │ Accept edits + Run cmds │ │
|
|
113
|
-
│ └──────────────┬───────────────┘ │
|
|
114
|
-
│ │ │
|
|
115
|
-
│ ┌──────────────┴───────────────┐ │
|
|
116
|
-
│ │ 🔌 CDP │ ← Layer 2 │
|
|
117
|
-
│ │ "Allow file access?" etc. │ DOM Click │
|
|
118
|
-
│ └──────────────────────────────┘ │
|
|
119
|
-
└─────────────────────────────────────────────────┘
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Autopilot** handles VS Code commands (accept edits, run terminals).
|
|
123
|
-
**CDP** handles permission dialogs that have no VS Code Command API.
|
|
124
|
-
|
|
125
|
-
## Status Bar
|
|
64
|
+
> **Note:** The API Key is purely utilized for *local vector embedding generation* and offline analysis. No source code is sent externally beyond context snippets for vectorization.
|
|
126
65
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
66
|
+
## 🛡️ The Autopilot Safety Protocol
|
|
67
|
+
Autopilot includes hardcoded blocks against destructive operations:
|
|
68
|
+
- Deleting root/home (`rm -rf /`)
|
|
69
|
+
- Disk formatting
|
|
70
|
+
- Destructive git rewrites
|
|
71
|
+
- Unbounded loops
|
|
133
72
|
|
|
134
|
-
|
|
73
|
+
*Autonomy is meaningless without control.*
|
|
135
74
|
|
|
136
|
-
|
|
137
|
-
- `rm -rf /`, `rm -rf ~`, `rm -rf *`
|
|
138
|
-
- `format c:`, `del /f /s /q`, `rmdir /s /q`
|
|
139
|
-
- Fork bombs (`:(){:|:&};:`)
|
|
140
|
-
- `dd if=`, `mkfs.`, `chmod -R 777 /`
|
|
141
|
-
- `Remove-Item -Recurse -Force C:\`
|
|
142
|
-
|
|
143
|
-
## Supported Error Types
|
|
75
|
+
---
|
|
144
76
|
|
|
145
|
-
|
|
146
|
-
- ESLint: Unused variables, Missing semicolons
|
|
147
|
-
- React: Invalid hook calls, Missing dependencies
|
|
148
|
-
- General: Import errors, Module not found
|
|
77
|
+
<div align="center">
|
|
149
78
|
|
|
150
|
-
|
|
79
|
+
**[Pikakit.com](https://pikakit.com) • FAANG-Grade AI OS**
|
|
151
80
|
|
|
152
|
-
|
|
81
|
+
</div>
|
|
Binary file
|