codeep 1.1.27 → 1.1.29

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.
@@ -6,6 +6,7 @@ import { Screen } from './Screen.js';
6
6
  import { Input, LineEditor } from './Input.js';
7
7
  import { fg, style, stringWidth } from './ansi.js';
8
8
  import clipboardy from 'clipboardy';
9
+ import { spawn } from 'child_process';
9
10
  // Primary color: #f02a30 (Codeep red)
10
11
  const PRIMARY_COLOR = fg.rgb(240, 42, 48);
11
12
  // Syntax highlighting colors (One Dark theme inspired)
@@ -1287,15 +1288,14 @@ export class App {
1287
1288
  this.pasteApiKey();
1288
1289
  return;
1289
1290
  }
1290
- // Ctrl+G to open subscribe URL
1291
- if (event.ctrl && event.key === 'g') {
1291
+ // Ctrl+B to open subscribe URL
1292
+ if (event.ctrl && event.key === 'b') {
1292
1293
  const provider = this.loginProviders[this.loginProviderIndex];
1293
1294
  if (provider.subscribeUrl) {
1294
1295
  try {
1295
1296
  const cmd = process.platform === 'darwin' ? 'open'
1296
1297
  : process.platform === 'win32' ? 'start'
1297
1298
  : 'xdg-open';
1298
- const { spawn } = require('child_process');
1299
1299
  const child = spawn(cmd, [provider.subscribeUrl], { detached: true, stdio: 'ignore' });
1300
1300
  child.unref();
1301
1301
  }
@@ -2775,7 +2775,7 @@ export class App {
2775
2775
  y++;
2776
2776
  const hints = ['Ctrl+V Paste'];
2777
2777
  if (selectedProvider.subscribeUrl) {
2778
- hints.push('Ctrl+G Get API key');
2778
+ hints.push('Ctrl+B Get API key');
2779
2779
  }
2780
2780
  hints.push('Enter Submit', 'Esc Back');
2781
2781
  this.screen.writeLine(y, hints.join(' • '), fg.gray);
@@ -35,7 +35,7 @@ export class LoginScreen {
35
35
  return true;
36
36
  }
37
37
  // Open subscribe URL in browser
38
- if (event.ctrl && event.key === 'g' && this.options.subscribeUrl) {
38
+ if (event.ctrl && event.key === 'b' && this.options.subscribeUrl) {
39
39
  openUrl(this.options.subscribeUrl);
40
40
  return true;
41
41
  }
@@ -122,7 +122,7 @@ export class LoginScreen {
122
122
  // Help text
123
123
  const helpParts = ['Ctrl+T: Toggle visibility'];
124
124
  if (this.options.subscribeUrl) {
125
- helpParts.push('Ctrl+G: Get API key');
125
+ helpParts.push('Ctrl+B: Get API key');
126
126
  }
127
127
  helpParts.push('Esc: Cancel');
128
128
  this.screen.write(contentX, contentY, helpParts.join(' | '), fg.gray);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.1.27",
3
+ "version": "1.1.29",
4
4
  "description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",