-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
356 lines (356 loc) · 11.2 KB
/
Copy pathpackage.json
File metadata and controls
356 lines (356 loc) · 11.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
{
"name": "herdex",
"displayName": "Herdex",
"description": "Native VS Code client for Herdr — manage AI coding agents, workspaces, and their live state without leaving the editor.",
"version": "0.1.0",
"publisher": "mkellerman",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mkellerman/herdex"
},
"bugs": {
"url": "https://github.com/mkellerman/herdex/issues"
},
"homepage": "https://github.com/mkellerman/herdex#readme",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other",
"SCM Providers"
],
"keywords": [
"herdr",
"ai agents",
"coding agent",
"claude",
"codex",
"terminal",
"tmux",
"worktree"
],
"galleryBanner": {
"color": "#1e1e1e",
"theme": "dark"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "herdex",
"title": "Herdex",
"icon": "media/herd-icon.svg"
}
]
},
"views": {
"herdex": [
{
"id": "herdex.workspaces",
"name": "Workspaces",
"icon": "media/herd-icon.svg"
},
{
"id": "herdex.agents",
"name": "Agents",
"icon": "media/herd-icon.svg"
}
]
},
"viewsWelcome": [
{
"view": "herdex.workspaces",
"when": "!herdex.connected",
"contents": "Not connected to a Herdr server.\n\nMake sure Herdr is running (`herdr status`), then reconnect.\n[Reconnect](command:herdex.reconnect)"
},
{
"view": "herdex.workspaces",
"when": "herdex.connected",
"contents": "No workspaces yet.\n[Add Workspace from Folder…](command:herdex.addWorkspace)"
},
{
"view": "herdex.agents",
"when": "!herdex.connected",
"contents": "Not connected to a Herdr server.\n[Reconnect](command:herdex.reconnect)"
},
{
"view": "herdex.agents",
"when": "herdex.connected",
"contents": "No agents in this workspace.\n[Start Agent](command:herdex.startAgent)\n[Show all workspaces](command:herdex.agentsScopeAll)"
}
],
"commands": [
{
"command": "herdex.reconnect",
"title": "Herdex: Reconnect to Herdr server",
"icon": "$(refresh)"
},
{
"command": "herdex.refresh",
"title": "Herdex: Refresh",
"icon": "$(refresh)"
},
{
"command": "herdex.addWorkspace",
"title": "Herdex: Add Workspace from Folder…",
"icon": "$(add)"
},
{
"command": "herdex.startAgent",
"title": "Herdex: Start Agent…",
"icon": "$(person-add)"
},
{
"command": "herdex.focusAgent",
"title": "Herdex: Focus Agent",
"icon": "$(eye)"
},
{
"command": "herdex.openTerminal",
"title": "Herdex: Open Pane Terminal",
"icon": "$(terminal)"
},
{
"command": "herdex.openTerminalAttachMirror",
"title": "Herdex: Open Terminal (attach+mirror)",
"icon": "$(split-horizontal)"
},
{
"command": "herdex.selectTerminalMode",
"title": "Herdex: Select Terminal Mode…",
"icon": "$(settings-gear)"
},
{
"command": "herdex.sendSelection",
"title": "Herdex: Send Selection to Agent",
"icon": "$(arrow-right)"
},
{
"command": "herdex.promptAgent",
"title": "Herdex: Prompt Agent…",
"icon": "$(comment)"
},
{
"command": "herdex.stopAgent",
"title": "Herdex: Interrupt Agent (Ctrl-C)",
"icon": "$(stop-circle)"
},
{
"command": "herdex.focusWorkspace",
"title": "Herdex: Focus Workspace"
},
{
"command": "herdex.openWorkspace",
"title": "Herdex: Open Workspace"
},
{
"command": "herdex.openTab",
"title": "Herdex: Open Tab"
},
{
"command": "herdex.filterAgents",
"title": "Herdex: Filter Agents…",
"icon": "$(filter)"
},
{
"command": "herdex.clearAgentFilter",
"title": "Herdex: Clear Agent Filter",
"icon": "$(clear-all)"
},
{
"command": "herdex.agentsScopeAll",
"title": "Herdex: Show Agents from All Workspaces"
},
{
"command": "herdex.showLogs",
"title": "Herdex: Show Logs",
"icon": "$(output)"
}
],
"menus": {
"view/title": [
{
"command": "herdex.addWorkspace",
"when": "view == herdex.workspaces",
"group": "navigation@1"
},
{
"command": "herdex.startAgent",
"when": "view == herdex.workspaces",
"group": "navigation@2"
},
{
"command": "herdex.filterAgents",
"when": "view == herdex.agents",
"group": "navigation@1"
},
{
"command": "herdex.clearAgentFilter",
"when": "view == herdex.agents && herdex.agentsFiltered",
"group": "navigation@2"
},
{
"command": "herdex.refresh",
"when": "view == herdex.workspaces || view == herdex.agents",
"group": "navigation@3"
}
],
"commandPalette": [
{ "command": "herdex.openWorkspace", "when": "false" },
{ "command": "herdex.openTab", "when": "false" },
{ "command": "herdex.focusWorkspace", "when": "false" }
],
"view/item/context": [
{
"command": "herdex.startAgent",
"when": "view == herdex.workspaces && viewItem == herdex.workspace",
"group": "inline@1"
},
{
"command": "herdex.startAgent",
"when": "view == herdex.workspaces && viewItem == herdex.workspace",
"group": "1_actions@1"
},
{
"command": "herdex.focusWorkspace",
"when": "view == herdex.workspaces && viewItem == herdex.workspace",
"group": "1_nav@1"
},
{
"command": "herdex.startAgent",
"when": "view == herdex.workspaces && viewItem =~ /herdex.pane/",
"group": "1_actions@1"
},
{
"command": "herdex.openTerminal",
"when": "viewItem =~ /herdex.pane/",
"group": "1_actions@2"
},
{
"command": "herdex.openTerminalAttachMirror",
"when": "viewItem =~ /herdex.pane/",
"group": "1_actions@3"
},
{
"command": "herdex.promptAgent",
"when": "viewItem =~ /herdex.agent/",
"group": "1_actions@1"
},
{
"command": "herdex.sendSelection",
"when": "viewItem =~ /herdex.agent/",
"group": "1_actions@2"
},
{
"command": "herdex.openTerminal",
"when": "viewItem =~ /herdex.agent/",
"group": "1_actions@3"
},
{
"command": "herdex.openTerminalAttachMirror",
"when": "viewItem =~ /herdex.agent/",
"group": "1_actions@4"
},
{
"command": "herdex.selectTerminalMode",
"when": "viewItem =~ /herdex.agent/ || viewItem =~ /herdex.pane/",
"group": "1_actions@5"
},
{
"command": "herdex.focusAgent",
"when": "viewItem =~ /herdex.agent/",
"group": "1_nav@1"
},
{
"command": "herdex.stopAgent",
"when": "viewItem =~ /herdex.agent/",
"group": "2_danger@1"
}
],
"editor/context": [
{
"command": "herdex.sendSelection",
"when": "editorHasSelection",
"group": "herd@1"
}
]
},
"configuration": {
"title": "Herdex",
"properties": {
"herdex.socketPath": {
"type": "string",
"default": "",
"description": "Path to the Herdr server socket. Leave empty to use $HERDR_SOCK or ~/.config/herdr/herdr.sock."
},
"herdex.terminalRefreshMs": {
"type": "number",
"default": 400,
"description": "Poll interval (ms) for refreshing an attached pane terminal mirror. The Herdr API has no push event for terminal output, so mirrors poll pane.read."
},
"herdex.debug": {
"type": "boolean",
"default": false,
"description": "Log view/model changes to the 'Herdex' output channel (for diagnosing refresh/flicker)."
},
"herdex.statusPollMs": {
"type": "number",
"default": 2000,
"description": "Poll interval (ms) for refreshing agent status via session.snapshot. Continuous agent-status changes are not pushed globally by Herdr, so status is polled. Set to 0 to disable polling (topology still updates from events)."
},
"herdex.terminalMode": {
"type": "string",
"enum": ["control", "mirror", "observe", "attach", "attach+mirror"],
"enumDescriptions": [
"Recommended. Real terminal running 'herdr terminal session control --takeover'. Full width + reflow AND native text selection (raw stream, no mouse capture). Single terminal.",
"Read-only poll of pane.read. Native text selection; width capped to Herdr's grid; non-intrusive.",
"Live raw stream via 'herdr terminal session observe'. Native text selection, no polling; width capped to Herdr's grid.",
"Real terminal running 'herdr agent attach'. Full width and reflow, but a mouse-capturing TUI (no native text selection).",
"Opens an 'attach' terminal that drives the pane width (resize/maximize it) plus a 'mirror' terminal that shows the same content with native text selection."
],
"default": "control",
"description": "How the pane terminal is presented. 'control' is recommended (full width + selection in one terminal); others are kept for comparison."
},
"herdex.herdrPath": {
"type": "string",
"default": "herdr",
"description": "Path to the herdr CLI (used by the 'observe' and 'attach' terminal modes). Leave as 'herdr' to resolve via PATH."
}
}
}
},
"scripts": {
"vscode:prepublish": "node esbuild.js --production",
"bundle": "node esbuild.js --production",
"build": "node esbuild.js",
"watch": "node esbuild.js --watch",
"typecheck": "tsc --noEmit",
"lint": "eslint src",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"test": "vitest run",
"package": "node esbuild.js --production && npx --yes @vscode/vsce package --no-dependencies",
"install:vsix": "code --install-extension \"$(ls -t herdex-*.vsix | head -1)\" --force"
},
"pnpm": {
"onlyBuiltDependencies": ["esbuild"]
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^3.2.0",
"esbuild": "^0.20.0",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
"prettier": "^3.3.0",
"typescript": "^5.4.0",
"typescript-eslint": "^8.0.0",
"vitest": "^2.0.0"
}
}