This repository was archived by the owner on Oct 21, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
418 lines (418 loc) · 13.2 KB
/
Copy pathpackage.json
File metadata and controls
418 lines (418 loc) · 13.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
{
"name": "kin-editor",
"displayName": "Kin - Graph-native version control",
"description": "VS Code extension for Kin, a graph-native code repository for people and AI agents: entity explorer, semantic search, trace, review, and rename powered by the Kin graph engine.",
"version": "0.1.17",
"publisher": "firelock",
"license": "Apache-2.0",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"SCM Providers",
"Programming Languages",
"AI",
"Visualization"
],
"keywords": [
"kin",
"semantic",
"graph",
"ai",
"agent",
"mcp"
],
"repository": {
"type": "git",
"url": "https://github.com/kinlab-ai/kin-editor"
},
"bugs": {
"url": "https://github.com/kinlab-ai/kin-editor/issues"
},
"homepage": "https://kinlab.ai",
"icon": "resources/icon.png",
"galleryBanner": {
"color": "#0F1117",
"theme": "dark"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "kin.setupWorkspace",
"title": "Kin: Setup Workspace",
"category": "Kin"
},
{
"command": "kin.search",
"title": "Kin: Semantic Search",
"category": "Kin"
},
{
"command": "kin.overview",
"title": "Kin: Graph Overview",
"category": "Kin"
},
{
"command": "kin.trace",
"title": "Kin: Trace Entity",
"category": "Kin"
},
{
"command": "kin.init",
"title": "Kin: Initialize Repository",
"category": "Kin"
},
{
"command": "kin.status",
"title": "Kin: Show Status",
"category": "Kin"
},
{
"command": "kin.review",
"title": "Kin: Review Current File",
"category": "Kin"
},
{
"command": "kin.refresh",
"title": "Kin: Refresh the Graph View",
"category": "Kin",
"icon": "$(refresh)"
},
{
"command": "kin.openWalkthrough",
"title": "Kin: Start Here",
"category": "Kin"
},
{
"command": "kin.openEntity",
"title": "Kin: Open Entity from the Graph",
"category": "Kin"
},
{
"command": "kin.editEntity",
"title": "Kin: Edit Entity",
"category": "Kin",
"icon": "$(edit)"
},
{
"command": "kin.applyDraft",
"title": "Kin: Apply Saved Draft",
"category": "Kin",
"icon": "$(check)"
},
{
"command": "kin.resumeDraftApply",
"title": "Kin: Resume Interrupted Apply",
"category": "Kin",
"icon": "$(history)"
},
{
"command": "kin.compareDraft",
"title": "Kin: Compare Draft with Current Source",
"category": "Kin",
"icon": "$(diff)"
},
{
"command": "kin.newDraftFromCurrent",
"title": "Kin: New Draft from Current Source",
"category": "Kin",
"icon": "$(new-file)"
},
{
"command": "kin.openDrafts",
"title": "Kin: Open Saved Draft",
"category": "Kin",
"icon": "$(folder-opened)"
},
{
"command": "kin.recoverDraftRevision",
"title": "Kin: Recover Saved Draft Revision",
"category": "Kin",
"icon": "$(history)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "kin",
"title": "Kin",
"icon": "resources/kin-icon.svg"
}
]
},
"views": {
"kin": [
{
"id": "kinGraph",
"name": "Graph Browser",
"when": "config.kin.entityViewer"
},
{
"id": "kinExplorer",
"name": "Entity Explorer",
"when": "!config.kin.entityViewer"
}
]
},
"viewsWelcome": [
{
"view": "kinExplorer",
"contents": "A graph-native code repository for people and AI agents.\n\nGit shows which lines changed. Kin shows what the change affects. This folder has no Kin graph yet.\n[Initialize Repository](command:kin.init)\n[Start here](command:kin.openWalkthrough)\nAlready ran kin init? Check what is wired with [Setup Workspace](command:kin.setupWorkspace).",
"when": "workspaceFolderCount > 0 && !kin.initialized"
},
{
"view": "kinGraph",
"contents": "A graph-native code repository for people and AI agents.\n\nGit shows which lines changed. Kin shows what the change affects. This folder has no Kin graph yet.\n[Initialize Repository](command:kin.init)\n[Start here](command:kin.openWalkthrough)\nAlready ran kin init? Check what is wired with [Setup Workspace](command:kin.setupWorkspace).",
"when": "workspaceFolderCount > 0 && !kin.initialized"
},
{
"view": "kinExplorer",
"contents": "Kin needs an open folder.\n\nOpen the repository you want to work in, then come back here.\n[Open Folder](command:vscode.openFolder)\n[Start here](command:kin.openWalkthrough)",
"when": "workspaceFolderCount == 0"
},
{
"view": "kinGraph",
"contents": "Kin needs an open folder.\n\nOpen the repository you want to work in, then come back here.\n[Open Folder](command:vscode.openFolder)\n[Start here](command:kin.openWalkthrough)",
"when": "workspaceFolderCount == 0"
}
],
"menus": {
"view/title": [
{
"command": "kin.refresh",
"when": "view == kinExplorer || view == kinGraph",
"group": "navigation"
}
],
"editor/context": [
{
"command": "kin.trace",
"group": "kin@1",
"when": "editorTextFocus"
},
{
"command": "kin.search",
"group": "kin@2",
"when": "editorTextFocus"
},
{
"command": "kin.review",
"group": "kin@3",
"when": "editorTextFocus"
},
{
"command": "kin.editEntity",
"when": "resourceScheme == kin && kin.entitySource",
"group": "kinDraft@1"
},
{
"command": "kin.applyDraft",
"when": "resourceScheme == kin && kin.entityDraft && !kin.entityDraftRecovery",
"group": "kinDraft@2"
},
{
"command": "kin.resumeDraftApply",
"when": "resourceScheme == kin && kin.entityDraft && !kin.entityDraftRecovery",
"group": "kinDraft@3"
},
{
"command": "kin.compareDraft",
"when": "resourceScheme == kin && kin.entityDraft",
"group": "kinDraft@4"
},
{
"command": "kin.newDraftFromCurrent",
"when": "resourceScheme == kin && kin.entityDraft",
"group": "kinDraft@5"
}
],
"editor/title": [
{
"command": "kin.editEntity",
"when": "resourceScheme == kin && kin.entitySource",
"group": "navigation@1"
},
{
"command": "kin.applyDraft",
"when": "resourceScheme == kin && kin.entityDraft && !kin.entityDraftRecovery",
"group": "navigation@2"
},
{
"command": "kin.compareDraft",
"when": "resourceScheme == kin && kin.entityDraft",
"group": "navigation@3"
}
]
},
"keybindings": [
{
"command": "kin.setupWorkspace",
"key": "ctrl+shift+k w",
"mac": "cmd+shift+k w",
"when": "workspaceFolderCount > 0"
},
{
"command": "kin.search",
"key": "ctrl+shift+k s",
"mac": "cmd+shift+k s",
"when": "workspaceFolderCount > 0"
},
{
"command": "kin.trace",
"key": "ctrl+shift+k t",
"mac": "cmd+shift+k t",
"when": "editorTextFocus"
},
{
"command": "kin.overview",
"key": "ctrl+shift+k o",
"mac": "cmd+shift+k o",
"when": "workspaceFolderCount > 0"
},
{
"command": "kin.refresh",
"key": "ctrl+shift+k r",
"mac": "cmd+shift+k r",
"when": "workspaceFolderCount > 0"
},
{
"command": "kin.review",
"key": "ctrl+shift+k v",
"mac": "cmd+shift+k v",
"when": "editorTextFocus"
}
],
"configuration": {
"title": "Kin",
"properties": {
"kin.binaryPath": {
"type": "string",
"default": "",
"description": "Path to the kin binary. Leave empty to auto-detect (~/.kin/bin/kin or PATH)."
},
"kin.queryTimeoutMs": {
"type": "number",
"default": 30000,
"minimum": 1000,
"description": "How long an interactive Kin query may take before it is treated as a timeout, in milliseconds. A warm semantic query was measured at 11.7 s on one run and 24.0 s on another against the same repository on a loaded host, so the old fixed 15000 sat inside the observed range. Raise this on a large repository or a busy machine."
},
"kin.mcpEnabled": {
"type": "boolean",
"default": true,
"description": "Use a persistent MCP connection to the Kin graph for zero-overhead queries. Disable to fall back to one CLI subprocess per command. Hover and go-to-definition run only over MCP and return nothing while it is off."
},
"kin.entityViewer": {
"type": "boolean",
"default": true,
"description": "Browse graph entities and open graph-owned source. Edit Entity creates a durable draft: Save preserves exact text, including unfinished code, and Apply Saved Draft explicitly publishes through Kin. Requires the MCP daemon and durable draft support. Source, historical and truncated views remain read-only."
}
}
},
"walkthroughs": [
{
"id": "kinFirstRun",
"title": "A graph-native code repository for people and AI agents.",
"description": "Git shows which lines changed. Kin shows what the change affects.",
"steps": [
{
"id": "kin.step.whatKinIs",
"title": "What Kin is",
"description": "Kin keeps a living map of the software itself so humans and agents can understand what every change touches. It runs beside Git and it never writes to your `.git`.",
"media": {
"markdown": "resources/walkthrough/what-kin-is.md"
},
"completionEvents": [
"onStepSelected"
]
},
{
"id": "kin.step.initialize",
"title": "Build the graph for this repository",
"description": "`kin init` reads the folder you have open and writes the graph to `.kin/`. The CLI's own output streams into the Kin output channel while it runs.\n[Initialize Repository](command:kin.init)",
"media": {
"markdown": "resources/walkthrough/initialize.md"
},
"completionEvents": [
"onContext:kin.initialized",
"onCommand:kin.init"
]
},
{
"id": "kin.step.checkInstall",
"title": "Check what is actually wired",
"description": "The setup panel runs `kin setup status` and shows every row it reports, with the fix each row carries. The banner is the CLI's own verdict.\n[Open Setup Workspace](command:kin.setupWorkspace)",
"media": {
"markdown": "resources/walkthrough/check-install.md"
},
"completionEvents": [
"onCommand:kin.setupWorkspace"
]
},
{
"id": "kin.step.findYourWay",
"title": "Find your way around",
"description": "The Kin icon in the activity bar opens the Graph Browser, grouped by namespace and kind rather than by folder. Open an entity and you read its body as the graph serves it.\n[Ask the graph a question](command:kin.search)",
"media": {
"markdown": "resources/walkthrough/find-your-way.md"
},
"completionEvents": [
"onView:kinExplorer",
"onCommand:kin.search"
]
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./tsconfig.build.json",
"watch": "tsc -watch -p ./",
"package:vsix": "npx @vscode/vsce package",
"lint": "eslint src",
"test": "jest --passWithNoTests"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"roots": [
"<rootDir>/src"
],
"moduleFileExtensions": [
"ts",
"js",
"json"
],
"testMatch": [
"**/__tests__/**/*.test.ts"
]
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@iarna/toml": "^2.2.5",
"@types/jest": "^30.0.0",
"@types/node": "^26.3.0",
"@types/vscode": "~1.85.0",
"@typescript-eslint/eslint-plugin": "^8.67.0",
"@typescript-eslint/parser": "^8.68.0",
"@vscode/vsce": "^3.9.2",
"eslint": "^10.9.1",
"globals": "^17.12.0",
"jest": "^30.4.2",
"ovsx": "^1.1.1",
"ts-jest": "^29.1.0",
"typescript": "^6.0.3"
},
"overrides": {
"@istanbuljs/load-nyc-config": {
"js-yaml": "^4.1.1"
},
"brace-expansion": "^5.0.8",
"minimatch": "^10.2.6",
"test-exclude": "^8.0.0"
}
}