tensor-cli 0.1.1-beta-lite → 0.1.3-beta-lite
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 +9 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -329966,7 +329966,7 @@ var CONTEXT_WINDOW_SIZE = 24;
|
|
|
329966
329966
|
var DECISION_MAX_TOKENS = 2500;
|
|
329967
329967
|
var CONTENT_MAX_TOKENS = 1e4;
|
|
329968
329968
|
var SHELL_TIMEOUT_MS = 60000;
|
|
329969
|
-
var MODEL_PROVIDERS = ["GOOGLE", "CENCORI"];
|
|
329969
|
+
var MODEL_PROVIDERS = ["GOOGLE", "CENCORI", "VENICE"];
|
|
329970
329970
|
var MUTATING_TOOLS = new Set([
|
|
329971
329971
|
"write",
|
|
329972
329972
|
"edit",
|
|
@@ -343092,7 +343092,7 @@ Do not include JSON, schema, or XML tool-call syntax in this response.`
|
|
|
343092
343092
|
cencoriClients = new Map;
|
|
343093
343093
|
cencoriFor(apiKey2) {
|
|
343094
343094
|
if (!apiKey2)
|
|
343095
|
-
return
|
|
343095
|
+
return;
|
|
343096
343096
|
let client2 = this.cencoriClients.get(apiKey2);
|
|
343097
343097
|
if (!client2) {
|
|
343098
343098
|
client2 = new Cencori({ apiKey: apiKey2 });
|
|
@@ -343189,6 +343189,10 @@ Do not include JSON, schema, or XML tool-call syntax in this response.`
|
|
|
343189
343189
|
break;
|
|
343190
343190
|
case "CENCORI": {
|
|
343191
343191
|
const client2 = this.cencoriFor(apiKey2);
|
|
343192
|
+
if (!client2) {
|
|
343193
|
+
yield "Please link your cencori api key to use this model";
|
|
343194
|
+
break;
|
|
343195
|
+
}
|
|
343192
343196
|
const stream4 = client2.ai.chatStream({
|
|
343193
343197
|
model: modelId,
|
|
343194
343198
|
messages,
|
|
@@ -344439,7 +344443,7 @@ var Header = () => {
|
|
|
344439
344443
|
}, undefined, false, undefined, this),
|
|
344440
344444
|
/* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
|
|
344441
344445
|
fg: t2.inkFaint,
|
|
344442
|
-
children: "v0.1.
|
|
344446
|
+
children: "v0.1.3@beta-lite"
|
|
344443
344447
|
}, undefined, false, undefined, this)
|
|
344444
344448
|
]
|
|
344445
344449
|
}, undefined, true, undefined, this),
|
|
@@ -352305,7 +352309,7 @@ var ScrollablePicker = ({
|
|
|
352305
352309
|
toast?.show(`Switched to ${selectedModel.name || selectedModel.id}`);
|
|
352306
352310
|
try {
|
|
352307
352311
|
const fileName = "ACTIVE_AGENT.json";
|
|
352308
|
-
const storagePath = path17.join(os6.homedir(), ".
|
|
352312
|
+
const storagePath = path17.join(os6.homedir(), ".tensor", fileName);
|
|
352309
352313
|
await writeToFile(storagePath, JSON.stringify(selectedModel));
|
|
352310
352314
|
} catch (_e) {
|
|
352311
352315
|
toast?.show(`Failed to persist storage`, "error");
|
|
@@ -352326,7 +352330,7 @@ var ScrollablePicker = ({
|
|
|
352326
352330
|
if (apiKey2) {
|
|
352327
352331
|
toast?.show(`Saving API Key for ${selectedProvider}...`);
|
|
352328
352332
|
try {
|
|
352329
|
-
const storagePath = path17.join(os6.homedir(), ".
|
|
352333
|
+
const storagePath = path17.join(os6.homedir(), ".tensor", PROVIDER_KEY_STORE2);
|
|
352330
352334
|
let currentKeys = {};
|
|
352331
352335
|
if (fs12.existsSync(storagePath)) {
|
|
352332
352336
|
const fileContent = fs12.readFileSync(storagePath, "utf-8");
|