@astranova-live/cli 0.1.3 → 0.1.4
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/astra.js +12 -9
- package/package.json +3 -1
package/dist/astra.js
CHANGED
|
@@ -482,7 +482,7 @@ var DEFAULT_MODELS = {
|
|
|
482
482
|
"openai-oauth": "gpt-5.3-codex",
|
|
483
483
|
claude: "claude-sonnet-4-20250514",
|
|
484
484
|
openai: "gpt-4o-mini",
|
|
485
|
-
google: "gemini-2.
|
|
485
|
+
google: "gemini-2.5-flash",
|
|
486
486
|
ollama: "llama3.1"
|
|
487
487
|
};
|
|
488
488
|
async function selectProvider() {
|
|
@@ -508,7 +508,7 @@ async function selectProvider() {
|
|
|
508
508
|
{
|
|
509
509
|
value: "google",
|
|
510
510
|
label: "Gemini (Google)",
|
|
511
|
-
hint: "
|
|
511
|
+
hint: "API key"
|
|
512
512
|
},
|
|
513
513
|
{
|
|
514
514
|
value: "ollama",
|
|
@@ -521,9 +521,8 @@ async function selectProvider() {
|
|
|
521
521
|
clack.cancel("Setup cancelled.");
|
|
522
522
|
process.exit(0);
|
|
523
523
|
}
|
|
524
|
-
if (provider === "
|
|
525
|
-
|
|
526
|
-
clack.log.warn(`${names[provider]} support is coming soon. Please choose another provider for now.`);
|
|
524
|
+
if (provider === "ollama") {
|
|
525
|
+
clack.log.warn("Ollama support is coming soon. Please choose another provider for now.");
|
|
527
526
|
continue;
|
|
528
527
|
}
|
|
529
528
|
if (provider === "openai-oauth") {
|
|
@@ -1828,6 +1827,7 @@ import { zodToJsonSchema } from "zod-to-json-schema";
|
|
|
1828
1827
|
// src/agent/provider.ts
|
|
1829
1828
|
import { createAnthropic } from "@ai-sdk/anthropic";
|
|
1830
1829
|
import { createOpenAI } from "@ai-sdk/openai";
|
|
1830
|
+
import { createGoogleGenerativeAI } from "@ai-sdk/google";
|
|
1831
1831
|
function isCodexOAuth() {
|
|
1832
1832
|
const override = process.env.ASTRA_PROVIDER;
|
|
1833
1833
|
if (override) return override === "openai-oauth";
|
|
@@ -1926,10 +1926,13 @@ function createModelFromConfig(config) {
|
|
|
1926
1926
|
const openai = createOpenAI({ apiKey: auth.apiKey });
|
|
1927
1927
|
return openai(model);
|
|
1928
1928
|
}
|
|
1929
|
-
case "google":
|
|
1930
|
-
|
|
1931
|
-
"Gemini
|
|
1932
|
-
|
|
1929
|
+
case "google": {
|
|
1930
|
+
if (auth.type !== "api-key" || !auth.apiKey) {
|
|
1931
|
+
throw new Error("Gemini requires an API key. Re-run onboarding to set one up.");
|
|
1932
|
+
}
|
|
1933
|
+
const google = createGoogleGenerativeAI({ apiKey: auth.apiKey });
|
|
1934
|
+
return google(model);
|
|
1935
|
+
}
|
|
1933
1936
|
case "openai-oauth":
|
|
1934
1937
|
throw new Error("Codex OAuth uses custom provider. This is a bug \u2014 please report.");
|
|
1935
1938
|
case "ollama":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astranova-live/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Terminal agent for the AstraNova living market universe",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"start:debug": "node dist/astra.js --debug 2>debug.log",
|
|
22
22
|
"start:gpt": "ASTRA_PROVIDER=openai ASTRA_MODEL=gpt-4o-mini node dist/astra.js",
|
|
23
23
|
"start:gpt:debug": "ASTRA_PROVIDER=openai ASTRA_MODEL=gpt-4o-mini node dist/astra.js --debug 2>debug.log",
|
|
24
|
+
"start:claude:debug": "ASTRA_PROVIDER=claude ASTRA_MODEL=claude-haiku-4-5-20251001 node dist/astra.js --debug 2>debug.log",
|
|
25
|
+
"start:gemini:debug": "ASTRA_PROVIDER=google ASTRA_MODEL=gemini-2.5-flash node dist/astra.js --debug 2>debug.log",
|
|
24
26
|
"dev": "tsup --watch",
|
|
25
27
|
"build": "tsup",
|
|
26
28
|
"lint": "eslint src/",
|