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.
- package/dist/index.js +4 -1
- 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
|
|
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",
|