kontext-ai 0.1.0
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/.npmrccls +0 -0
- package/README.md +292 -0
- package/backend_dev_plan.md +446 -0
- package/context/base/instructions.yaml +3 -0
- package/context/base/preferences.yaml +5 -0
- package/context/skills/coding.yaml +5 -0
- package/dist/bin/start.d.ts +2 -0
- package/dist/bin/start.d.ts.map +1 -0
- package/dist/bin/start.js +34 -0
- package/dist/bin/start.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +258 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/database/config.d.ts +9 -0
- package/dist/database/config.d.ts.map +1 -0
- package/dist/database/config.js +35 -0
- package/dist/database/config.js.map +1 -0
- package/dist/database/contextFiles.d.ts +35 -0
- package/dist/database/contextFiles.d.ts.map +1 -0
- package/dist/database/contextFiles.js +95 -0
- package/dist/database/contextFiles.js.map +1 -0
- package/dist/database/index.d.ts +5 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +146 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/skills.d.ts +33 -0
- package/dist/database/skills.d.ts.map +1 -0
- package/dist/database/skills.js +89 -0
- package/dist/database/skills.js.map +1 -0
- package/dist/database/syncEvents.d.ts +28 -0
- package/dist/database/syncEvents.d.ts.map +1 -0
- package/dist/database/syncEvents.js +56 -0
- package/dist/database/syncEvents.js.map +1 -0
- package/dist/database/toolConfigs.d.ts +26 -0
- package/dist/database/toolConfigs.d.ts.map +1 -0
- package/dist/database/toolConfigs.js +77 -0
- package/dist/database/toolConfigs.js.map +1 -0
- package/dist/database/webhooks.d.ts +29 -0
- package/dist/database/webhooks.d.ts.map +1 -0
- package/dist/database/webhooks.js +89 -0
- package/dist/database/webhooks.js.map +1 -0
- package/dist/database.d.ts +8 -0
- package/dist/database.d.ts.map +1 -0
- package/dist/database.js +28 -0
- package/dist/database.js.map +1 -0
- package/dist/graphql/resolvers.d.ts +236 -0
- package/dist/graphql/resolvers.d.ts.map +1 -0
- package/dist/graphql/resolvers.js +280 -0
- package/dist/graphql/resolvers.js.map +1 -0
- package/dist/graphql/schema.d.ts +2 -0
- package/dist/graphql/schema.d.ts.map +1 -0
- package/dist/graphql/schema.js +215 -0
- package/dist/graphql/schema.js.map +1 -0
- package/dist/graphql/server.d.ts +2 -0
- package/dist/graphql/server.d.ts.map +1 -0
- package/dist/graphql/server.js +26 -0
- package/dist/graphql/server.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +300 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/sync/engine.d.ts +25 -0
- package/dist/sync/engine.d.ts.map +1 -0
- package/dist/sync/engine.js +217 -0
- package/dist/sync/engine.js.map +1 -0
- package/dist/types/index.d.ts +57 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/webhooks/server.d.ts +4 -0
- package/dist/webhooks/server.d.ts.map +1 -0
- package/dist/webhooks/server.js +157 -0
- package/dist/webhooks/server.js.map +1 -0
- package/frontend_plan.md +576 -0
- package/kontEXT.db +0 -0
- package/kontEXT.db-shm +0 -0
- package/kontEXT.db-wal +0 -0
- package/kontext.exe +0 -0
- package/package.json +60 -0
- package/src/bin/start.ts +41 -0
- package/src/cli/index.ts +310 -0
- package/src/database/config.ts +38 -0
- package/src/database/contextFiles.ts +127 -0
- package/src/database/index.ts +114 -0
- package/src/database/skills.ts +129 -0
- package/src/database/syncEvents.ts +89 -0
- package/src/database/toolConfigs.ts +101 -0
- package/src/database/webhooks.ts +117 -0
- package/src/graphql/resolvers.ts +357 -0
- package/src/graphql/schema.ts +211 -0
- package/src/graphql/server.ts +28 -0
- package/src/index.ts +8 -0
- package/src/mcp/server.ts +398 -0
- package/src/sync/engine.ts +231 -0
- package/src/types/index.ts +61 -0
- package/src/webhooks/server.ts +189 -0
- package/tsconfig.json +21 -0
- package/tsconfig.tsbuildinfo +1 -0
package/.npmrccls
ADDED
|
Binary file
|
package/README.md
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
# KONTEXT
|
|
2
|
+
|
|
3
|
+
Context synchronization for AI tools. Build once, use everywhere.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## What is KONTEXT?
|
|
8
|
+
|
|
9
|
+
KONTEXT solves a fundamental problem: every AI tool requires its own context - skills, preferences, instructions - and keeping them all in sync is painful and error-prone.
|
|
10
|
+
|
|
11
|
+
KONTEXT is a universal context layer that syncs across AI tools. You define context once (skills, preferences, general instructions, tool-specific overrides), and it automatically propagates to all your connected AI tools. When you update context, it updates everywhere. No copy-paste, no drift, no manual sync.
|
|
12
|
+
|
|
13
|
+
## The Problem
|
|
14
|
+
|
|
15
|
+
You're using multiple AI tools:
|
|
16
|
+
|
|
17
|
+
- **Claude** (Anthropic via their app or MCP)
|
|
18
|
+
- **Cursor** / **Antigravity** (AI code editors with MCP)
|
|
19
|
+
- **ChatGPT** (OpenAI's web and desktop)
|
|
20
|
+
- **Gemini** (Google's web and desktop)
|
|
21
|
+
- **Windsurf** (Flow's AI editor)
|
|
22
|
+
- **其他 AI 工具**
|
|
23
|
+
|
|
24
|
+
Each tool needs:
|
|
25
|
+
|
|
26
|
+
- System prompts and instructions
|
|
27
|
+
- Your preferences and style guidelines
|
|
28
|
+
- Skills and capabilities you want them to have
|
|
29
|
+
- Tool-specific configurations
|
|
30
|
+
|
|
31
|
+
Currently, you manage these manually:
|
|
32
|
+
|
|
33
|
+
- Copy instructions into each tool
|
|
34
|
+
- Update one and forget to update others
|
|
35
|
+
- Drift between tool behaviors
|
|
36
|
+
- Lose context when tools reset
|
|
37
|
+
- Can't share strong capabilities across tools
|
|
38
|
+
|
|
39
|
+
This is fragmented, error-prone, and wastes your time.
|
|
40
|
+
|
|
41
|
+
## How KONTEXT Works
|
|
42
|
+
|
|
43
|
+
### 1. Define Context
|
|
44
|
+
|
|
45
|
+
You create context files in KONTEXT:
|
|
46
|
+
|
|
47
|
+
- **Base context**: Default instructions, preferences, style that applies to all tools
|
|
48
|
+
- **Skills**: Capabilities, knowledge, workflows you want AI to have
|
|
49
|
+
- **Tool overrides**: Customizations for specific tools when they need different behavior
|
|
50
|
+
|
|
51
|
+
Context is stored as structured files (YAML, JSON, or Markdown) that are human-readable and versionable.
|
|
52
|
+
|
|
53
|
+
### 2. Connect Tools
|
|
54
|
+
|
|
55
|
+
KONTEXT integrates with AI tools through multiple channels:
|
|
56
|
+
|
|
57
|
+
- **MCP (Model Context Protocol)**: Native integration for Claude, Cursor, Antigravity, and any MCP-capable tool
|
|
58
|
+
- **Browser Extension**: Injects context into ChatGPT, Gemini, and other web AI tools
|
|
59
|
+
- **REST API**: Programmatic access for tools that support HTTP
|
|
60
|
+
- **CLI**: Command-line interface for terminal-based tools
|
|
61
|
+
|
|
62
|
+
Each tool automatically receives its relevant context on connection.
|
|
63
|
+
|
|
64
|
+
### 3. Sync Automatically
|
|
65
|
+
|
|
66
|
+
When you update context:
|
|
67
|
+
|
|
68
|
+
- KONTEXT detects changes
|
|
69
|
+
- Propagates to all connected tools in real-time
|
|
70
|
+
- Logs sync activity for transparency
|
|
71
|
+
|
|
72
|
+
Tools receive updates instantly - no manual copying.
|
|
73
|
+
|
|
74
|
+
### 4. Use Everywhere
|
|
75
|
+
|
|
76
|
+
Every AI tool reads from the same context source:
|
|
77
|
+
|
|
78
|
+
- Claude uses your base context + Claude-specific overrides
|
|
79
|
+
- Cursor uses your base context + Cursor-specific overrides
|
|
80
|
+
- ChatGPT uses your base context + ChatGPT-specific overrides
|
|
81
|
+
- Behavior stays consistent across all tools
|
|
82
|
+
|
|
83
|
+
You build once. Tools use everywhere.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## What KONTEXT Looks Like
|
|
88
|
+
|
|
89
|
+
### Design
|
|
90
|
+
|
|
91
|
+
KONTEXT uses a **neo-brutalist** aesthetic - bold, distinctive, unapologetic. High contrast colors, sharp corners, visible structure. It stands out.
|
|
92
|
+
|
|
93
|
+
**Colors**:
|
|
94
|
+
- Primary: Burnt orange (#FF6B35)
|
|
95
|
+
- Background: Warm off-white (#F5F5F0)
|
|
96
|
+
- Dark mode: Near-black (#1A1A1A)
|
|
97
|
+
- Borders: Thick (3px), solid
|
|
98
|
+
- Shadows: Hard, offset (4px 4px)
|
|
99
|
+
|
|
100
|
+
**Typography**:
|
|
101
|
+
- Headings: Bold, chunky display fonts
|
|
102
|
+
- Body: Clean sans-serif
|
|
103
|
+
- Code: Monospace
|
|
104
|
+
|
|
105
|
+
### Landing Page
|
|
106
|
+
|
|
107
|
+
The landing page introduces KONTEXT:
|
|
108
|
+
|
|
109
|
+
- Bold headline: "Context that actually works."
|
|
110
|
+
- Feature highlights
|
|
111
|
+
- "Works with" logos (Claude, Cursor, ChatGPT, Gemini)
|
|
112
|
+
- Code example showing context structure
|
|
113
|
+
- Clear CTAs: "Start Building"
|
|
114
|
+
|
|
115
|
+
### Dashboard
|
|
116
|
+
|
|
117
|
+
The dashboard manages your context:
|
|
118
|
+
|
|
119
|
+
- **Sidebar**: Navigation (Context Files, Skills, Preferences, Connected Tools, Activity)
|
|
120
|
+
- **Stats cards**: Context files count, connected tools, last sync time, saved skills
|
|
121
|
+
- **Recent activity**: Table of context changes and sync events
|
|
122
|
+
- **Connected tools**: Grid of tools with status indicators
|
|
123
|
+
- **Quick editor**: Inline context file editing
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## How to Use KONTEXT
|
|
128
|
+
|
|
129
|
+
### 1. Install
|
|
130
|
+
|
|
131
|
+
Clone the repository and install dependencies:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
git clone https://github.com/yourusername/kontEXT.git
|
|
135
|
+
cd kontEXT
|
|
136
|
+
npm install
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### 2. Configure
|
|
140
|
+
|
|
141
|
+
Edit `kontEXT.config.yaml` to set your preferences:
|
|
142
|
+
|
|
143
|
+
- Default context location
|
|
144
|
+
- Sync behavior
|
|
145
|
+
- Connected tools configuration
|
|
146
|
+
- API keys (if using cloud features)
|
|
147
|
+
|
|
148
|
+
### 3. Create Context
|
|
149
|
+
|
|
150
|
+
Add context files to your context directory:
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
/context
|
|
154
|
+
/base
|
|
155
|
+
instructions.yaml # Default instructions for all tools
|
|
156
|
+
preferences.yaml # Your preferences
|
|
157
|
+
/skills
|
|
158
|
+
coding.yaml # Coding skills and workflows
|
|
159
|
+
writing.yaml # Writing capabilities
|
|
160
|
+
/tools
|
|
161
|
+
claude.yaml # Claude-specific overrides
|
|
162
|
+
cursor.yaml # Cursor-specific overrides
|
|
163
|
+
chatgpt.yaml # ChatGPT-specific overrides
|
|
164
|
+
gemini.yaml # Gemini-specific overrides
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### 4. Connect Tools
|
|
168
|
+
|
|
169
|
+
For MCP tools (Claude, Cursor):
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
npm run connect:mcp
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
For web tools (ChatGPT, Gemini), install the browser extension.
|
|
176
|
+
|
|
177
|
+
For CLI tools, use the command-line interface:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
kontext read --file instructions
|
|
181
|
+
kontext write --file coding.yaml --skill new-skill
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### 5. Use
|
|
185
|
+
|
|
186
|
+
That's it. Your AI tools now share context. Update once, it updates everywhere.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Core Features
|
|
191
|
+
|
|
192
|
+
| Feature | Description |
|
|
193
|
+
|---------|-------------|
|
|
194
|
+
| Universal Context | Define once, use everywhere |
|
|
195
|
+
| Real-time Sync | Changes propagate instantly |
|
|
196
|
+
| Tool Overrides | Customize per tool |
|
|
197
|
+
| MCP Integration | Native support for MCP tools |
|
|
198
|
+
| Browser Extension | Works with web AI tools |
|
|
199
|
+
| CLI | Command-line interface |
|
|
200
|
+
| Local-first | Your data stays on your machine |
|
|
201
|
+
| Open Source | Self-host or contribute |
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Architecture
|
|
206
|
+
|
|
207
|
+
### Backend
|
|
208
|
+
|
|
209
|
+
- **GraphQL API**: Central data layer for context operations
|
|
210
|
+
- **MCP Server**: Provides context to MCP-capable tools
|
|
211
|
+
- **SQLite Database**: Local storage for context data
|
|
212
|
+
- **Webhook Server**: Event-driven pushes to registered tools
|
|
213
|
+
|
|
214
|
+
### Frontend
|
|
215
|
+
|
|
216
|
+
- **Landing Page**: Marketing and onboarding
|
|
217
|
+
- **Dashboard**: Context management and monitoring
|
|
218
|
+
- **Browser Extension**: Web tool injection
|
|
219
|
+
- **CLI**: Terminal interface
|
|
220
|
+
|
|
221
|
+
### Integrations
|
|
222
|
+
|
|
223
|
+
- Claude (via MCP)
|
|
224
|
+
- Cursor (via MCP)
|
|
225
|
+
- Antigravity (via MCP)
|
|
226
|
+
- ChatGPT (via browser extension)
|
|
227
|
+
- Gemini (via browser extension)
|
|
228
|
+
- Any tool via REST API
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## Status
|
|
233
|
+
|
|
234
|
+
KONTEXT is in early development. The codebase contains:
|
|
235
|
+
|
|
236
|
+
- Backend architecture design complete
|
|
237
|
+
- Frontend design direction selected
|
|
238
|
+
- Implementation planning done
|
|
239
|
+
|
|
240
|
+
Next steps involve:
|
|
241
|
+
|
|
242
|
+
- Building the GraphQL API
|
|
243
|
+
- Implementing the MCP server
|
|
244
|
+
- Developing the browser extension
|
|
245
|
+
- Creating the frontend dashboard
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Why KONTEXT?
|
|
250
|
+
|
|
251
|
+
### For AI Power Users
|
|
252
|
+
|
|
253
|
+
You're using multiple AI tools. You have preferences, instructions, and workflows that work for you. Keeping them synchronized is painful and error-prone.
|
|
254
|
+
|
|
255
|
+
KONTEXT fixes this. Build your context once. Use it everywhere. Stay in flow.
|
|
256
|
+
|
|
257
|
+
### For Developers
|
|
258
|
+
|
|
259
|
+
You're building AI-powered applications. You need consistent context across tools. You want a unified layer.
|
|
260
|
+
|
|
261
|
+
KONTEXT provides this. Integrate once. Sync everywhere. Focus on building.
|
|
262
|
+
|
|
263
|
+
### For Teams
|
|
264
|
+
|
|
265
|
+
You're sharing context between team members. You need consistent instructions across tools. You want to collaborate on context.
|
|
266
|
+
|
|
267
|
+
KONTEXT enables this. Share via git. Sync via KONTEXT. Stay aligned.
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## Contributing
|
|
272
|
+
|
|
273
|
+
KONTEXT is open source. Contributions welcome.
|
|
274
|
+
|
|
275
|
+
- Fork the repository
|
|
276
|
+
- Create a feature branch
|
|
277
|
+
- Make your changes
|
|
278
|
+
- Submit a pull request
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Links
|
|
283
|
+
|
|
284
|
+
- GitHub: https://github.com/yourusername/kontEXT
|
|
285
|
+
- Docs: https://kontEXT.docs.example.com
|
|
286
|
+
- Issues: https://github.com/yourusername/kontEXT/issues
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## License
|
|
291
|
+
|
|
292
|
+
MIT License - See LICENSE file for details.
|