coder-agent 2.3.1 → 2.3.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.
Files changed (2) hide show
  1. package/dist/index.js +39 -8
  2. package/package.json +4 -2
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import * as readline from "readline";
3
3
  import chalk from "chalk";
4
+ import figlet from "figlet";
4
5
  import { Agent } from "./agent.js";
5
6
  import { getStoredApiKey, saveApiKey, getStoredModel, saveModel } from "./config.js";
6
7
  const VALID_MODELS = [
@@ -9,15 +10,45 @@ const VALID_MODELS = [
9
10
  "gemini-2.0-flash",
10
11
  "gemini-2.0-pro-exp"
11
12
  ];
12
- // ─── Startup Screen ──────────────────────────────────────────────────────────
13
13
  function printBanner(modelName) {
14
- console.log(chalk.white.bold('coder-agent') + chalk.dim(' 1.1.0'));
15
- console.log("");
16
- console.log(chalk.dim('model ') + chalk.gray(modelName));
17
- console.log(chalk.dim('context ') + chalk.gray('1m+ tokens'));
18
- console.log(chalk.dim('tools ') + chalk.gray('read · write · run · search'));
19
- console.log("");
20
- console.log(chalk.dim('─'.repeat(48)));
14
+ console.clear();
15
+ console.log('');
16
+ // render logo
17
+ const logo = figlet.textSync('CODER', {
18
+ font: 'Slant',
19
+ horizontalLayout: 'default',
20
+ });
21
+ // split and color each line with a blue→white fade
22
+ const lines = logo.split('\n');
23
+ const colors = [
24
+ chalk.hex('#0a84ff'),
25
+ chalk.hex('#2a94ff'),
26
+ chalk.hex('#4aa4ff'),
27
+ chalk.hex('#8ac4ff'),
28
+ chalk.white,
29
+ ];
30
+ lines.forEach((line, i) => {
31
+ const color = colors[Math.min(i, colors.length - 1)];
32
+ console.log(' ' + color(line));
33
+ });
34
+ console.log('');
35
+ console.log(' ' + chalk.white.bold('coder-agent') +
36
+ chalk.dim(' v1.1.0 · by antigravity'));
37
+ console.log('');
38
+ console.log(chalk.dim(' ─────────────────────────────────────'));
39
+ console.log('');
40
+ console.log(' ' + chalk.dim('model ') + chalk.gray(modelName));
41
+ console.log(' ' + chalk.dim('context ') + chalk.gray('1m+ tokens'));
42
+ console.log(' ' + chalk.dim('tools ') +
43
+ chalk.hex('#0a84ff')('read') + chalk.dim(' · ') +
44
+ chalk.hex('#ff9f0a')('write') + chalk.dim(' · ') +
45
+ chalk.hex('#30d158')('run') + chalk.dim(' · ') +
46
+ chalk.gray('search'));
47
+ console.log('');
48
+ console.log(chalk.dim(' ─────────────────────────────────────'));
49
+ console.log('');
50
+ console.log(' ' + chalk.dim('type your task and press enter. ctrl+c to exit.'));
51
+ console.log('');
21
52
  }
22
53
  function printHelp() {
23
54
  console.log(chalk.white.bold("\n Coder CLI v1.1\n"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coder-agent",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "CLI coding agent powered by Google Gemini",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,9 +31,11 @@
31
31
  "start:build": "node dist/index.js"
32
32
  },
33
33
  "dependencies": {
34
- "chalk": "^5.3.0"
34
+ "chalk": "^5.3.0",
35
+ "figlet": "^1.11.0"
35
36
  },
36
37
  "devDependencies": {
38
+ "@types/figlet": "^1.7.0",
37
39
  "@types/node": "^20.0.0",
38
40
  "tsx": "^4.7.0",
39
41
  "typescript": "^5.4.0"