osagent 0.1.18 → 0.1.19

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/cli.js +10 -10
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -142611,14 +142611,14 @@ var init_ollama = __esm({
142611
142611
  */
142612
142612
  static isOllamaProvider(config) {
142613
142613
  const baseUrl = config.baseUrl?.toLowerCase() || "";
142614
- return baseUrl.includes("osa.dev") || baseUrl.includes("ollama.com") || baseUrl.includes("localhost:11434") || baseUrl.includes("127.0.0.1:11434");
142614
+ return baseUrl.includes("ollama.com") || baseUrl.includes("localhost:11434") || baseUrl.includes("127.0.0.1:11434");
142615
142615
  }
142616
142616
  /**
142617
142617
  * Check if this is OS Agent Cloud (vs Local)
142618
142618
  */
142619
142619
  isCloud() {
142620
142620
  const baseUrl = this.contentGeneratorConfig.baseUrl?.toLowerCase() || "";
142621
- return baseUrl.includes("osa.dev") || baseUrl.includes("ollama.com");
142621
+ return baseUrl.includes("ollama.com");
142622
142622
  }
142623
142623
  buildHeaders() {
142624
142624
  const version2 = this.cliConfig.getCliVersion() || "unknown";
@@ -146088,7 +146088,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
146088
146088
  return {
146089
146089
  ...newContentGeneratorConfig,
146090
146090
  model: newContentGeneratorConfig?.model || DEFAULT_OLLAMA_CODER_MODEL,
146091
- baseUrl: newContentGeneratorConfig?.baseUrl || "https://osa.dev",
146091
+ baseUrl: newContentGeneratorConfig?.baseUrl || "https://api.ollama.com",
146092
146092
  // API key from OLLAMA_API_KEY env var or settings
146093
146093
  apiKey: newContentGeneratorConfig?.apiKey || process.env["OLLAMA_API_KEY"]
146094
146094
  };
@@ -146108,7 +146108,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
146108
146108
  };
146109
146109
  }
146110
146110
  async function createContentGenerator(config, gcConfig, sessionId2, isInitialAuth) {
146111
- const version2 = "0.1.18";
146111
+ const version2 = "0.1.19";
146112
146112
  const userAgent2 = `OSAgent/${version2} (${process.platform}; ${process.arch})`;
146113
146113
  const baseHeaders = {
146114
146114
  "User-Agent": userAgent2
@@ -303788,7 +303788,7 @@ function validateAuthMethod(authMethod, mergedSettings) {
303788
303788
  if (authMethod === AuthType2.OLLAMA_CLOUD) {
303789
303789
  const hasApiKey = process.env["OLLAMA_API_KEY"] || settings.merged.security?.auth?.apiKey;
303790
303790
  if (!hasApiKey) {
303791
- return "OLLAMA_API_KEY environment variable not found. Get your API key at https://osa.dev";
303791
+ return "OLLAMA_API_KEY environment variable not found. Get your API key at https://ollama.com/settings/keys";
303792
303792
  }
303793
303793
  return null;
303794
303794
  }
@@ -309699,7 +309699,7 @@ __name(getPackageJson, "getPackageJson");
309699
309699
  // packages/cli/src/utils/version.ts
309700
309700
  async function getCliVersion() {
309701
309701
  const pkgJson = await getPackageJson();
309702
- return "0.1.18";
309702
+ return "0.1.19";
309703
309703
  }
309704
309704
  __name(getCliVersion, "getCliVersion");
309705
309705
 
@@ -350392,7 +350392,7 @@ var DialogManager = /* @__PURE__ */ __name(({
350392
350392
  onSubmit: (apiKey, baseUrl, model) => {
350393
350393
  uiActions.handleAuthSelect(AuthType2.OLLAMA_CLOUD, "User" /* User */, {
350394
350394
  apiKey,
350395
- baseUrl: baseUrl || "https://osa.dev",
350395
+ baseUrl: baseUrl || "https://api.ollama.com",
350396
350396
  model: model || "qwen3-coder:480b-cloud"
350397
350397
  });
350398
350398
  },
@@ -350401,10 +350401,10 @@ var DialogManager = /* @__PURE__ */ __name(({
350401
350401
  uiActions.setAuthState("updating" /* Updating */);
350402
350402
  },
350403
350403
  defaultApiKey: fromSettings?.apiKey || process34.env["OLLAMA_API_KEY"] || "",
350404
- defaultBaseUrl: fromSettings?.baseUrl || "https://osa.dev",
350404
+ defaultBaseUrl: fromSettings?.baseUrl || "https://api.ollama.com",
350405
350405
  defaultModel: modelSettings?.name || "qwen3-coder:480b-cloud",
350406
350406
  providerName: "Ollama Cloud",
350407
- apiKeyUrl: "https://osa.dev/settings/keys"
350407
+ apiKeyUrl: "https://ollama.com/settings/keys"
350408
350408
  }
350409
350409
  );
350410
350410
  }
@@ -353750,7 +353750,7 @@ var useAuthCommand = /* @__PURE__ */ __name((settings, config, addItem) => {
353750
353750
  if (credentials) {
353751
353751
  config.updateCredentials({
353752
353752
  apiKey: credentials.apiKey,
353753
- baseUrl: credentials.baseUrl || "https://osa.dev",
353753
+ baseUrl: credentials.baseUrl || "https://api.ollama.com",
353754
353754
  model: credentials.model || "qwen3-coder:480b-cloud"
353755
353755
  });
353756
353756
  await performAuth(authType, scope, credentials);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osagent",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "OS Agent - AI-powered CLI for autonomous coding with Ollama Cloud and Qwen models",
5
5
  "author": "Roberto Luna",
6
6
  "license": "Apache-2.0",