@thegitai/cli 1.5.0 → 1.6.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/README.md +2 -2
- package/dist/src/client-environment.js +1 -1
- package/dist/src/tools/computer.js +23 -10
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -15,8 +15,8 @@ This package is the CLI. The same agent is also available as a
|
|
|
15
15
|
running in the background while it reproduces a bug and reads the logs.
|
|
16
16
|
- **Your signed-in Chrome** - with the TheGitAI Chrome extension it works in the
|
|
17
17
|
browser you already have open, signed in as you, in its own tab group.
|
|
18
|
-
- **Computer Control** - it uses the apps on your computer on Linux and
|
|
19
|
-
in front of you, or on a screen of its own while you keep working.
|
|
18
|
+
- **Computer Control** - it uses the apps on your computer on Linux, macOS and Windows:
|
|
19
|
+
in front of you, or, on Linux and macOS, on a screen of its own while you keep working.
|
|
20
20
|
[Setup guide](https://thegit.ai/docs/computer-control/overview).
|
|
21
21
|
- **Skills** - teach it your team's workflows as `SKILL.md` folders. It uses one
|
|
22
22
|
when a request calls for it, or when you type `/<name>`.
|
|
@@ -128,6 +128,6 @@ export function collectClientEnvironment(options = {}) {
|
|
|
128
128
|
packageManagers: detectPackageManagers(env, platform, executableExists),
|
|
129
129
|
scratchDir: options.scratchDir ?? ensureSessionScratchDir(),
|
|
130
130
|
browserExtensionSeen: options.browserExtensionSeen ?? browserExtensionSeen(env),
|
|
131
|
-
computerControl: (platform === 'linux' || platform === 'darwin') && Boolean(computerHelperPath(env)),
|
|
131
|
+
computerControl: (platform === 'linux' || platform === 'darwin' || platform === 'win32') && Boolean(computerHelperPath(env)),
|
|
132
132
|
};
|
|
133
133
|
}
|
|
@@ -27,6 +27,10 @@ let helper = null;
|
|
|
27
27
|
const currentTurn = new AsyncLocalStorage();
|
|
28
28
|
const computerUsers = new Set();
|
|
29
29
|
function defaultHelperPath(env) {
|
|
30
|
+
if (process.platform === 'win32') {
|
|
31
|
+
const local = env.LOCALAPPDATA?.trim();
|
|
32
|
+
return local ? path.win32.join(local, 'thegitai', 'computer', 'helper.exe') : null;
|
|
33
|
+
}
|
|
30
34
|
const home = env.HOME?.trim();
|
|
31
35
|
const dataHome = env.XDG_DATA_HOME?.trim() || (home ? path.join(home, '.local', 'share') : '');
|
|
32
36
|
return dataHome ? path.join(dataHome, 'thegitai', 'computer', 'helper') : null;
|
|
@@ -116,6 +120,9 @@ function conversation() {
|
|
|
116
120
|
return scopedSessionId() ?? '';
|
|
117
121
|
}
|
|
118
122
|
function promptBody() {
|
|
123
|
+
if (process.platform === 'win32') {
|
|
124
|
+
return "It works on your screen: it moves your pointer and types until it's done. Press Esc anytime to take over.";
|
|
125
|
+
}
|
|
119
126
|
const background = process.platform === 'darwin'
|
|
120
127
|
? 'In the background, it works on a virtual display in your login session. Adding the display can briefly move your pointer before restoring it. Targeted input is experimental: some apps can take focus or ignore gestures. Hover requires control on your screen. You can move the same running window to your desktop afterward. '
|
|
121
128
|
: 'In the background, it works on a screen of its own with its own mouse and keyboard, so you keep yours. ';
|
|
@@ -131,16 +138,22 @@ async function askForDesktop(context, key) {
|
|
|
131
138
|
alwaysAsk: true,
|
|
132
139
|
title: 'TheGitAI wants to use apps on this computer',
|
|
133
140
|
body: promptBody(),
|
|
134
|
-
options:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
label: '
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
options: process.platform === 'win32'
|
|
142
|
+
? [
|
|
143
|
+
{ label: 'Allow on my screen', decision: { kind: 'computer', desktop: 'screen', session: false } },
|
|
144
|
+
{ label: 'Allow on my screen for this session', decision: { kind: 'computer', desktop: 'screen', session: true } },
|
|
145
|
+
{ label: 'Deny', decision: { kind: 'deny' } },
|
|
146
|
+
]
|
|
147
|
+
: [
|
|
148
|
+
{ label: 'Allow in the background', decision: { kind: 'computer', desktop: 'background', session: false } },
|
|
149
|
+
{ label: 'Allow on my screen', decision: { kind: 'computer', desktop: 'screen', session: false } },
|
|
150
|
+
{
|
|
151
|
+
label: 'Allow in the background for this session',
|
|
152
|
+
decision: { kind: 'computer', desktop: 'background', session: true },
|
|
153
|
+
},
|
|
154
|
+
{ label: 'Allow on my screen for this session', decision: { kind: 'computer', desktop: 'screen', session: true } },
|
|
155
|
+
{ label: 'Deny', decision: { kind: 'deny' } },
|
|
156
|
+
],
|
|
144
157
|
});
|
|
145
158
|
if (decision.kind !== 'computer') {
|
|
146
159
|
taskChoices.set(key, 'denied');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegitai/cli",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "TheGitAI is an AI coding agent. It reads and searches your repository, writes and edits files, runs your tests, verifies the change before handing it back, and remembers your corrections between sessions.",
|
|
3
|
+
"version": "1.6.0",
|
|
4
|
+
"description": "TheGitAI is an AI coding agent. It reads and searches your repository, writes and edits files, runs your tests, verifies the change before handing it back, uses the apps on your computer, and remembers your corrections between sessions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentic-ai",
|
|
7
7
|
"ai-coding-agent",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"ai-pair-programming",
|
|
13
13
|
"coding-assistant",
|
|
14
14
|
"ai-memory",
|
|
15
|
+
"computer-use",
|
|
15
16
|
"code-assistant",
|
|
16
17
|
"ai",
|
|
17
18
|
"terminal",
|
|
@@ -46,11 +47,11 @@
|
|
|
46
47
|
"@lydell/node-pty-linux-x64": "1.1.0",
|
|
47
48
|
"@lydell/node-pty-win32-arm64": "1.1.0",
|
|
48
49
|
"@lydell/node-pty-win32-x64": "1.1.0",
|
|
49
|
-
"@thegitai/tui-darwin-arm64": "1.
|
|
50
|
-
"@thegitai/tui-darwin-x64": "1.
|
|
51
|
-
"@thegitai/tui-linux-arm64": "1.
|
|
52
|
-
"@thegitai/tui-linux-x64": "1.
|
|
53
|
-
"@thegitai/tui-win32-x64": "1.
|
|
50
|
+
"@thegitai/tui-darwin-arm64": "1.6.0",
|
|
51
|
+
"@thegitai/tui-darwin-x64": "1.6.0",
|
|
52
|
+
"@thegitai/tui-linux-arm64": "1.6.0",
|
|
53
|
+
"@thegitai/tui-linux-x64": "1.6.0",
|
|
54
|
+
"@thegitai/tui-win32-x64": "1.6.0",
|
|
54
55
|
"@vscode/ripgrep": "1.18.0"
|
|
55
56
|
},
|
|
56
57
|
"repository": {
|