@uniqbit/mate-vscode 0.0.0-stage → 1.0.0-canary.4
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/README.md +30 -2
- package/mate-vscode.vsix +0 -0
- package/package.json +232 -4
package/README.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Mate for VS Code and Cursor
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A Mate sidebar for the Git repository open in the window:
|
|
4
|
+
|
|
5
|
+
If the repository's Mate workspace is not open, the sidebar shows one **Open workspace** button instead of the sections below. Click it to create or update `.mate/<repo>.mate.code-workspace` and open it in the same window. Mate preserves existing workspace comments, folders, and settings. Merely opening the sidebar writes nothing; a missing repository link or invalid workspace produces an error you can fix and retry.
|
|
6
|
+
|
|
7
|
+
- **Sessions**: the Claude and OpenCode sessions started from this sidebar, for the repository and its worktrees. Sessions started in a terminal (`mate claude`, `claude`, `mate opencode`) are not listed, and Mate records nothing for them; the info button in the section's title says so. Grouped by Workset, then branch; Workset groups show their full branch name instead of a `Workset` label. Sessions parked for over 14 days move to _Older_, and sessions whose worktree is gone or whose branch is merged are hidden. Each shows its change, else its first prompt, whether it runs here, elsewhere, or is parked, and what a running one is doing (working, idle, waiting for you).
|
|
8
|
+
- **Claude sessions run in the background** (`mate claude -- --bg`, Claude Code with `--bg`): a new or resumed session starts in Claude's background service and a terminal attaches to it (`claude attach`). Closing the terminal detaches; the agent keeps working. _Attach_ opens it again, from any window; _Stop_ ends it (`claude stop`) and keeps the conversation. When a session needs your input, a notification offers to attach it. A Claude session running in its own terminal, outside the background service, offers neither: switch to its terminal. Without `--bg` support, sessions run in the terminal and stop when it closes.
|
|
9
|
+
- **OpenCode sessions run in the background** (`mate opencode -- --bg`, OpenCode 2.x): the terminal is a client of the repository's Mate OpenCode server, one `opencode serve` per repository and its worktrees. Closing the terminal detaches; the turn keeps running. _Attach_ and _Resume_ reconnect a terminal; _Stop_ interrupts the running turn (`mate session stop`). The server stops itself after an hour without a running turn; the conversation is kept, and the next session starts it again.
|
|
10
|
+
- **Worktrees**: the repository's Git worktrees; Workset branches are marked.
|
|
11
|
+
- **Open changes**: active OpenSpec changes of the linked Companion Repository, grouped by Workset. Groups start collapsed and show combined completed/total task progress (for example, `5/12 tasks`) plus the Workset's session count; resume the latest session from the group. Expanding reveals each change's own progress, and refresh preserves your expansion state. Opening a change opens `proposal.md`, or `tasks.md` when there is no proposal, as with `mate-minimal` changes.
|
|
12
|
+
- **Ready to publish**: archived changes `mate artifact pending` reports.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
mate vscode setup
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Installs the extension matching your Mate version into VS Code and Cursor. `mate update` updates an installed extension along with the CLI.
|
|
21
|
+
|
|
22
|
+
The button uses `mate companion open --no-open --json` to prepare the document without requiring an editor CLI on PATH, then opens it through the current editor. If the CLI is older than the extension, update Mate and run `mate vscode setup` again. Untitled or other workspace files do not count as the repository's managed workspace.
|
|
23
|
+
|
|
24
|
+
The npm package `@uniqbit/mate-vscode` only carries the VSIX for `mate vscode setup`; it is not meant to be installed directly.
|
|
25
|
+
|
|
26
|
+
## Develop
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
bun run --cwd apps/mate-vscode prepack # builds mate-vscode.vsix
|
|
30
|
+
mate vscode setup --vsix apps/mate-vscode/mate-vscode.vsix
|
|
31
|
+
```
|
package/mate-vscode.vsix
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,234 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniqbit/mate-vscode",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"displayName": "Mate",
|
|
4
|
+
"version": "1.0.0-canary.4",
|
|
5
|
+
"description": "Mate sidebar for VS Code and Cursor: park and resume sessions, worktrees, open changes, and changes ready to publish. Install with `mate vscode setup`.",
|
|
6
|
+
"categories": [
|
|
7
|
+
"Other"
|
|
8
|
+
],
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/uniqbit-ag/mate-cli.git",
|
|
13
|
+
"directory": "apps/mate-vscode"
|
|
14
|
+
},
|
|
15
|
+
"publisher": "uniqbit",
|
|
16
|
+
"files": [
|
|
17
|
+
"mate-vscode.vsix"
|
|
18
|
+
],
|
|
19
|
+
"type": "module",
|
|
20
|
+
"main": "./dist/extension.cjs",
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public",
|
|
23
|
+
"registry": "https://registry.npmjs.org/"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsdown --config tsdown.config.ts",
|
|
27
|
+
"prepack": "bun scripts/package-vsix.ts",
|
|
28
|
+
"test": "CI=1 bun ../../test/run-isolated.ts",
|
|
29
|
+
"test:unit": "CI=1 bun ../../test/run-isolated.ts --suite=unit",
|
|
30
|
+
"test:integration": "CI=1 bun ../../test/run-isolated.ts --suite=integration",
|
|
31
|
+
"typecheck": "bunx tsc --noEmit -p tsconfig.json",
|
|
32
|
+
"lint": "oxlint src/ scripts/",
|
|
33
|
+
"lint:fix": "oxlint src/ scripts/ --fix",
|
|
34
|
+
"format": "oxfmt src/ scripts/",
|
|
35
|
+
"format:check": "oxfmt src/ scripts/ --check"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/bun": "^1.3.14",
|
|
39
|
+
"@types/node": "^26.0.1",
|
|
40
|
+
"@types/vscode": "1.85.0",
|
|
41
|
+
"@vscode/vsce": "^4.1.0",
|
|
42
|
+
"tsdown": "0.23.0",
|
|
43
|
+
"typescript": "latest"
|
|
44
|
+
},
|
|
45
|
+
"contributes": {
|
|
46
|
+
"viewsContainers": {
|
|
47
|
+
"activitybar": [
|
|
48
|
+
{
|
|
49
|
+
"id": "mate",
|
|
50
|
+
"title": "Mate",
|
|
51
|
+
"icon": "media/mate.svg"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"views": {
|
|
56
|
+
"mate": [
|
|
57
|
+
{
|
|
58
|
+
"id": "mate.workspace",
|
|
59
|
+
"name": "Mate",
|
|
60
|
+
"when": "!mate.workspaceReady"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "mate.sessions",
|
|
64
|
+
"name": "Sessions",
|
|
65
|
+
"when": "mate.workspaceReady"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "mate.worktrees",
|
|
69
|
+
"name": "Worktrees",
|
|
70
|
+
"when": "mate.workspaceReady"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "mate.openChanges",
|
|
74
|
+
"name": "Open changes",
|
|
75
|
+
"when": "mate.workspaceReady"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "mate.readyToPublish",
|
|
79
|
+
"name": "Ready to publish",
|
|
80
|
+
"when": "mate.workspaceReady"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"viewsWelcome": [
|
|
85
|
+
{
|
|
86
|
+
"view": "mate.workspace",
|
|
87
|
+
"contents": "Open the Mate workspace to use this sidebar.\n[Open workspace](command:mate.openWorkspace)",
|
|
88
|
+
"when": "mate.workspaceCanOpen && !mate.workspaceOpening"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"view": "mate.workspace",
|
|
92
|
+
"contents": "Preparing and opening the Mate workspace…",
|
|
93
|
+
"when": "mate.workspaceOpening"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"view": "mate.workspace",
|
|
97
|
+
"contents": "Open a local Git repository to use the Mate workspace.",
|
|
98
|
+
"when": "!mate.workspaceCanOpen && !mate.workspaceOpening"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"view": "mate.sessions",
|
|
102
|
+
"contents": "Sessions you start here are listed, so you can resume, attach, and stop them. Sessions started in a terminal are not.\n[New session](command:mate.newSession)\n[About sessions](command:mate.sessionsInfo)"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"commands": [
|
|
106
|
+
{
|
|
107
|
+
"command": "mate.openWorkspace",
|
|
108
|
+
"title": "Open workspace",
|
|
109
|
+
"category": "Mate"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"command": "mate.newSession",
|
|
113
|
+
"title": "New session",
|
|
114
|
+
"category": "Mate",
|
|
115
|
+
"icon": "$(add)"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"command": "mate.refresh",
|
|
119
|
+
"title": "Refresh",
|
|
120
|
+
"category": "Mate",
|
|
121
|
+
"icon": "$(refresh)"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"command": "mate.sessionsInfo",
|
|
125
|
+
"title": "About sessions",
|
|
126
|
+
"category": "Mate",
|
|
127
|
+
"icon": "$(info)"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"command": "mate.resumeSession",
|
|
131
|
+
"title": "Resume",
|
|
132
|
+
"category": "Mate",
|
|
133
|
+
"icon": "$(play)"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"command": "mate.removeSession",
|
|
137
|
+
"title": "Remove",
|
|
138
|
+
"category": "Mate",
|
|
139
|
+
"icon": "$(trash)"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"command": "mate.resumeWorksetSession",
|
|
143
|
+
"title": "Resume latest session",
|
|
144
|
+
"category": "Mate",
|
|
145
|
+
"icon": "$(debug-start)"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"command": "mate.attachSession",
|
|
149
|
+
"title": "Attach",
|
|
150
|
+
"category": "Mate",
|
|
151
|
+
"icon": "$(terminal)"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"command": "mate.stopSession",
|
|
155
|
+
"title": "Stop",
|
|
156
|
+
"category": "Mate",
|
|
157
|
+
"icon": "$(debug-stop)"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"menus": {
|
|
161
|
+
"view/title": [
|
|
162
|
+
{
|
|
163
|
+
"command": "mate.newSession",
|
|
164
|
+
"when": "view == mate.sessions",
|
|
165
|
+
"group": "navigation@1"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"command": "mate.sessionsInfo",
|
|
169
|
+
"when": "view == mate.sessions",
|
|
170
|
+
"group": "navigation@2"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"command": "mate.refresh",
|
|
174
|
+
"when": "view =~ /^mate\\./",
|
|
175
|
+
"group": "navigation@9"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"view/item/context": [
|
|
179
|
+
{
|
|
180
|
+
"command": "mate.resumeSession",
|
|
181
|
+
"when": "view == mate.sessions && viewItem =~ /^session\\.parked\\./",
|
|
182
|
+
"group": "inline@1"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"command": "mate.attachSession",
|
|
186
|
+
"when": "view == mate.sessions && viewItem =~ /^session\\.(here|elsewhere)\\..*\\.attachable$/",
|
|
187
|
+
"group": "inline@1"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"command": "mate.stopSession",
|
|
191
|
+
"when": "view == mate.sessions && viewItem =~ /^session\\.(here|elsewhere)\\..*\\.attachable$/",
|
|
192
|
+
"group": "inline@2"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"command": "mate.removeSession",
|
|
196
|
+
"when": "view == mate.sessions && viewItem =~ /^session\\./",
|
|
197
|
+
"group": "inline@3"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"command": "mate.resumeWorksetSession",
|
|
201
|
+
"when": "view == mate.openChanges && viewItem == workset.sessions",
|
|
202
|
+
"group": "inline@1"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"commandPalette": [
|
|
206
|
+
{
|
|
207
|
+
"command": "mate.resumeSession",
|
|
208
|
+
"when": "false"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"command": "mate.removeSession",
|
|
212
|
+
"when": "false"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"command": "mate.resumeWorksetSession",
|
|
216
|
+
"when": "false"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"command": "mate.attachSession",
|
|
220
|
+
"when": "false"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"command": "mate.stopSession",
|
|
224
|
+
"when": "false"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"activationEvents": [],
|
|
230
|
+
"icon": "media/icon.png",
|
|
231
|
+
"engines": {
|
|
232
|
+
"vscode": "^1.85.0"
|
|
233
|
+
}
|
|
234
|
+
}
|