@kesarcloud/omega-plus-cli 2.0.1 → 2.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kesarcloud/omega-plus-cli",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Interactive Omega Plus setup wizard for coding CLI tools.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  "author": "KesarCloud Technologies",
32
32
  "repository": {
33
33
  "type": "git",
34
- "url": "https://github.com/karanbavari/OmegaCluster",
34
+ "url": "git+https://github.com/karanbavari/OmegaCluster.git",
35
35
  "directory": "packages/omega-cli-helper"
36
36
  },
37
37
  "scripts": {
@@ -4,6 +4,8 @@ import {
4
4
  DEFAULT_FAST_MODEL,
5
5
  DEFAULT_MODEL,
6
6
  OMEGA_MODELS,
7
+ OMEGA_CONTEXT_WINDOW,
8
+ OMEGA_MAX_OUTPUT_TOKENS,
7
9
  } from "./constants.mjs";
8
10
  import {
9
11
  deriveEndpointOptions,
@@ -63,6 +65,7 @@ async function configureClaude(input) {
63
65
  ANTHROPIC_BASE_URL: options.anthropicBaseUrl,
64
66
  ANTHROPIC_MODEL: options.model,
65
67
  ANTHROPIC_SMALL_FAST_MODEL: options.fastModel,
68
+ CLAUDE_CODE_MAX_OUTPUT_TOKENS: String(OMEGA_MAX_OUTPUT_TOKENS),
66
69
  CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1",
67
70
  },
68
71
  hasCompletedOnboarding: true,
@@ -79,14 +82,17 @@ async function configureCodex(input) {
79
82
  const parsed = parseToml(await readText(paths.config, ""));
80
83
 
81
84
  parsed._root.model = options.model;
82
- parsed._root.model_provider = "omega";
85
+ parsed._root.model_provider = "kesarcloud";
83
86
  delete parsed._root.openai_base_url;
84
- parsed._sections["model_providers.omega"] = {
85
- name: "Omega Plus",
87
+ parsed._sections["model_providers.kesarcloud"] = {
88
+ name: "Kesarcloud",
86
89
  base_url: normalizeCodexBaseUrl(options.openaiBaseUrl),
87
90
  wire_api: "chat",
88
91
  env_key: "OPENAI_API_KEY",
92
+ max_context_tokens: OMEGA_CONTEXT_WINDOW,
93
+ max_output_tokens: OMEGA_MAX_OUTPUT_TOKENS,
89
94
  };
95
+ delete parsed._sections["model_providers.omega"];
90
96
  delete parsed._sections["model_providers.omniroute"];
91
97
 
92
98
  const configWrite = await writeTextFile(paths.config, stringifyToml(parsed), options);
@@ -110,10 +116,12 @@ function buildOpenCodeProvider(options) {
110
116
 
111
117
  return {
112
118
  npm: "@ai-sdk/anthropic",
113
- name: "Omega Plus",
119
+ name: "Kesarcloud",
114
120
  options: {
115
121
  baseURL: options.anthropicBaseUrl,
116
122
  apiKey: options.apiKey,
123
+ maxTokens: OMEGA_MAX_OUTPUT_TOKENS,
124
+ contextWindow: OMEGA_CONTEXT_WINDOW,
117
125
  },
118
126
  models,
119
127
  };
@@ -134,9 +142,10 @@ async function configureOpenCode(input) {
134
142
  $schema: current.$schema || "https://opencode.ai/config.json",
135
143
  provider: {
136
144
  ...provider,
137
- omega: buildOpenCodeProvider(options),
145
+ kesarcloud: buildOpenCodeProvider(options),
138
146
  },
139
147
  };
148
+ if (nextConfig.provider.omega) delete nextConfig.provider.omega;
140
149
  if (nextConfig.provider.omniroute) delete nextConfig.provider.omniroute;
141
150
 
142
151
  const write = await writeJsonFile(paths.config, nextConfig, options);
@@ -156,6 +165,8 @@ async function configureCline(input) {
156
165
  anthropicBaseUrl: options.anthropicBaseUrl,
157
166
  anthropicModelId: options.model,
158
167
  planModeAnthropicModelId: options.model,
168
+ maxContextTokens: OMEGA_CONTEXT_WINDOW,
169
+ maxOutputTokens: OMEGA_MAX_OUTPUT_TOKENS,
159
170
  };
160
171
 
161
172
  const secrets = await readJson(paths.secrets, {});
@@ -181,6 +192,7 @@ async function configureKilo(input) {
181
192
  apiKey: options.apiKey,
182
193
  baseUrl: options.anthropicBaseUrl,
183
194
  model: options.model,
195
+ maxTokens: OMEGA_MAX_OUTPUT_TOKENS,
184
196
  };
185
197
 
186
198
  const writes = [await writeJsonFile(paths.auth, auth, options)];
@@ -216,7 +228,8 @@ async function configureDroid(input) {
216
228
  baseUrl: options.anthropicBaseUrl,
217
229
  apiKey: options.apiKey,
218
230
  displayName: "Omega V1 Pro",
219
- maxOutputTokens: 131072,
231
+ maxOutputTokens: OMEGA_MAX_OUTPUT_TOKENS,
232
+ maxContextTokens: OMEGA_CONTEXT_WINDOW,
220
233
  noImageSupport: false,
221
234
  provider: "anthropic",
222
235
  });
package/src/constants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export const VERSION = "2.0.1";
1
+ export const VERSION = "2.0.3";
2
2
  export const DEFAULT_ORIGIN = "https://omega.kesarcloud.in";
3
3
  export const DEFAULT_BASE_URL = `${DEFAULT_ORIGIN}/v1`;
4
4
  export const DEFAULT_ANTHROPIC_BASE_URL = `${DEFAULT_ORIGIN}/v1`;
@@ -6,6 +6,8 @@ export const DEFAULT_OPENAI_BASE_URL = `${DEFAULT_ORIGIN}/api/v1`;
6
6
  export const DEFAULT_VALIDATION_URL = `${DEFAULT_ORIGIN}/api/omega/validate-key`;
7
7
  export const DEFAULT_MODEL = "omega-v1-pro";
8
8
  export const DEFAULT_FAST_MODEL = "omega-v1";
9
+ export const OMEGA_CONTEXT_WINDOW = 1_000_000;
10
+ export const OMEGA_MAX_OUTPUT_TOKENS = 32000;
9
11
 
10
12
  export const OMEGA_MODELS = [
11
13
  { id: "omega-v1-pro", name: "Omega V1 Pro" },
package/src/detector.mjs CHANGED
@@ -55,13 +55,13 @@ async function configStatus(toolId, options = {}) {
55
55
  if (toolId === "codex") {
56
56
  const config = await readText(paths.config, "");
57
57
  const auth = await readJson(paths.auth, {});
58
- return config.includes("[model_providers.omega]") && auth.OPENAI_API_KEY
58
+ return config.includes("[model_providers.kesarcloud]") && auth.OPENAI_API_KEY
59
59
  ? "configured"
60
60
  : "not_configured";
61
61
  }
62
62
  if (toolId === "opencode") {
63
63
  const config = await readJson(paths.config, null);
64
- return config?.provider?.omega?.options?.apiKey ? "configured" : "not_configured";
64
+ return config?.provider?.kesarcloud?.options?.apiKey ? "configured" : "not_configured";
65
65
  }
66
66
  if (toolId === "cline") {
67
67
  const state = await readJson(paths.globalState, null);