coder-agent 2.9.11 → 2.9.12

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 +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,10 +1,13 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from "module";
2
3
  import * as readline from "readline";
3
4
  import chalk from "chalk";
4
5
  import figlet from "figlet";
5
6
  import { Agent } from "./agent.js";
6
7
  import { getStoredApiKey, saveApiKey, getStoredModel, saveModel, getLastUsedInfo, saveLastUsedInfo } from "./config.js";
7
- const CURRENT_VERSION = "2.7.3";
8
+ const require = createRequire(import.meta.url);
9
+ const packageJson = require("../package.json");
10
+ const CURRENT_VERSION = packageJson.version;
8
11
  const VALID_MODELS = [
9
12
  "gemini-2.5-flash",
10
13
  "gemini-2.5-pro",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coder-agent",
3
- "version": "2.9.11",
3
+ "version": "2.9.12",
4
4
  "description": "CLI coding agent powered by Google Gemini",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",