@thegitai/cli 1.0.1 → 1.0.2

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.
@@ -115,7 +115,7 @@ function buildAuthUrl(websiteUrl, params) {
115
115
  url.searchParams.set('state', params.state);
116
116
  return url.toString();
117
117
  }
118
- const RESULT_PAGE = (heading, detail) => `<!doctype html><html><head><meta charset="utf-8"><title>TheGitAI CLI</title>` +
118
+ const RESULT_PAGE = (heading, detail) => `<!doctype html><html><head><meta charset="utf-8"><title>TheGitAI</title>` +
119
119
  `<style>body{font-family:system-ui,sans-serif;background:#0c0d10;color:#e6e7ea;` +
120
120
  `display:flex;min-height:100vh;align-items:center;justify-content:center;margin:0}` +
121
121
  `.card{text-align:center;max-width:420px;padding:2rem}h1{font-size:1.4rem}` +
@@ -176,7 +176,7 @@ export async function loginViaBrowser(options) {
176
176
  const codePromise = new Promise((resolve, reject) => {
177
177
  timer = setTimeout(() => {
178
178
  shutDownServer(server);
179
- reject(new Error('Sign-in timed out. Authorization codes last 10 minutes - run `ai` again to start over.'));
179
+ reject(new Error('Sign-in timed out. Authorization codes last 10 minutes - start sign-in again.'));
180
180
  }, options.timeoutMs ?? DEFAULT_TIMEOUT_MS);
181
181
  server.on('request', (req, res) => {
182
182
  const requestUrl = new URL(req.url ?? '/', 'http://127.0.0.1');
@@ -189,14 +189,14 @@ export async function loginViaBrowser(options) {
189
189
  const returnedState = requestUrl.searchParams.get('state') ?? '';
190
190
  if (!code || returnedState !== state) {
191
191
  res.writeHead(400, { 'content-type': 'text/html', connection: 'close' });
192
- res.end(RESULT_PAGE('Login failed', 'The request could not be verified. Please run `ai` again.'));
192
+ res.end(RESULT_PAGE('Login failed', 'The request could not be verified. Please sign in again.'));
193
193
  clearTimeout(timer);
194
194
  shutDownServer(server);
195
195
  reject(new Error('The login callback could not be verified.'));
196
196
  return;
197
197
  }
198
198
  res.writeHead(200, { 'content-type': 'text/html', connection: 'close' });
199
- res.end(RESULT_PAGE('You are signed in', 'You can close this tab and return to your terminal.'));
199
+ res.end(RESULT_PAGE('You are signed in', 'You can close this tab and return to TheGitAI.'));
200
200
  clearTimeout(timer);
201
201
  shutDownServer(server);
202
202
  resolve(code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegitai/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "TheGitAI is an agentic AI coding tool for your terminal. It reads and searches your repository, writes and edits files, runs your tests, and verifies the change before handing it back.",
5
5
  "keywords": [
6
6
  "agentic-ai",
@@ -45,11 +45,11 @@
45
45
  "@lydell/node-pty-linux-x64": "1.1.0",
46
46
  "@lydell/node-pty-win32-arm64": "1.1.0",
47
47
  "@lydell/node-pty-win32-x64": "1.1.0",
48
- "@thegitai/tui-darwin-arm64": "1.0.1",
49
- "@thegitai/tui-darwin-x64": "1.0.1",
50
- "@thegitai/tui-linux-arm64": "1.0.1",
51
- "@thegitai/tui-linux-x64": "1.0.1",
52
- "@thegitai/tui-win32-x64": "1.0.1",
48
+ "@thegitai/tui-darwin-arm64": "1.0.2",
49
+ "@thegitai/tui-darwin-x64": "1.0.2",
50
+ "@thegitai/tui-linux-arm64": "1.0.2",
51
+ "@thegitai/tui-linux-x64": "1.0.2",
52
+ "@thegitai/tui-win32-x64": "1.0.2",
53
53
  "@vscode/ripgrep": "1.18.0"
54
54
  },
55
55
  "repository": {