cascade-ai 0.12.4 → 0.12.5
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/cli.cjs +3 -89
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +3 -89
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +2 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -92
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/keytar-VMICNFEJ.node +0 -0
package/dist/cli.js
CHANGED
|
@@ -40,50 +40,21 @@ import parser from 'socket.io-msgpack-parser';
|
|
|
40
40
|
import jwt from 'jsonwebtoken';
|
|
41
41
|
|
|
42
42
|
// Cascade AI — Multi-tier AI Orchestration System
|
|
43
|
-
var __create = Object.create;
|
|
44
43
|
var __defProp = Object.defineProperty;
|
|
45
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
46
44
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
47
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
48
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
49
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
50
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
51
|
-
}) : x)(function(x) {
|
|
52
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
53
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
54
|
-
});
|
|
55
45
|
var __esm = (fn, res) => function __init() {
|
|
56
46
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
57
47
|
};
|
|
58
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
59
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
60
|
-
};
|
|
61
48
|
var __export = (target, all) => {
|
|
62
49
|
for (var name in all)
|
|
63
50
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
64
51
|
};
|
|
65
|
-
var __copyProps = (to, from, except, desc) => {
|
|
66
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
67
|
-
for (let key of __getOwnPropNames(from))
|
|
68
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
69
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
70
|
-
}
|
|
71
|
-
return to;
|
|
72
|
-
};
|
|
73
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
74
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
75
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
76
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
77
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
78
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
79
|
-
mod
|
|
80
|
-
));
|
|
81
52
|
|
|
82
53
|
// src/constants.ts
|
|
83
54
|
var CASCADE_VERSION, CASCADE_CONFIG_FILE, CASCADE_DB_FILE, CASCADE_DASHBOARD_SECRET_FILE, GLOBAL_CONFIG_DIR, GLOBAL_DB_FILE, GLOBAL_KEYSTORE_FILE, GLOBAL_RUNTIME_DB_FILE, DEFAULT_DASHBOARD_PORT, DEFAULT_CONTEXT_LIMIT, DEFAULT_AUTO_SUMMARIZE_AT, MODELS, T1_MODEL_PRIORITY, T2_MODEL_PRIORITY, T3_MODEL_PRIORITY, VISION_MODEL_PRIORITY, COMPLEXITY_T2_COUNT, THEME_NAMES, DEFAULT_THEME, OLLAMA_BASE_URL, LM_STUDIO_BASE_URL, AZURE_BASE_URL_TEMPLATE, TOOL_NAMES, DEFAULT_APPROVAL_REQUIRED;
|
|
84
55
|
var init_constants = __esm({
|
|
85
56
|
"src/constants.ts"() {
|
|
86
|
-
CASCADE_VERSION = "0.
|
|
57
|
+
CASCADE_VERSION = "0.12.5";
|
|
87
58
|
CASCADE_CONFIG_FILE = ".cascade/config.json";
|
|
88
59
|
CASCADE_DB_FILE = ".cascade/memory.db";
|
|
89
60
|
CASCADE_DASHBOARD_SECRET_FILE = ".cascade/dashboard-secret";
|
|
@@ -399,63 +370,6 @@ var init_constants = __esm({
|
|
|
399
370
|
}
|
|
400
371
|
});
|
|
401
372
|
|
|
402
|
-
// node_modules/keytar/build/Release/keytar.node
|
|
403
|
-
var keytar_default;
|
|
404
|
-
var init_keytar = __esm({
|
|
405
|
-
"node_modules/keytar/build/Release/keytar.node"() {
|
|
406
|
-
keytar_default = "./keytar-VMICNFEJ.node";
|
|
407
|
-
}
|
|
408
|
-
});
|
|
409
|
-
|
|
410
|
-
// node-file:/home/runner/work/Cascade-AI/Cascade-AI/node_modules/keytar/build/Release/keytar.node
|
|
411
|
-
var require_keytar = __commonJS({
|
|
412
|
-
"node-file:/home/runner/work/Cascade-AI/Cascade-AI/node_modules/keytar/build/Release/keytar.node"(exports, module) {
|
|
413
|
-
init_keytar();
|
|
414
|
-
try {
|
|
415
|
-
module.exports = __require(keytar_default);
|
|
416
|
-
} catch {
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
});
|
|
420
|
-
|
|
421
|
-
// node_modules/keytar/lib/keytar.js
|
|
422
|
-
var require_keytar2 = __commonJS({
|
|
423
|
-
"node_modules/keytar/lib/keytar.js"(exports, module) {
|
|
424
|
-
var keytar = require_keytar();
|
|
425
|
-
function checkRequired(val, name) {
|
|
426
|
-
if (!val || val.length <= 0) {
|
|
427
|
-
throw new Error(name + " is required.");
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
module.exports = {
|
|
431
|
-
getPassword: function(service, account) {
|
|
432
|
-
checkRequired(service, "Service");
|
|
433
|
-
checkRequired(account, "Account");
|
|
434
|
-
return keytar.getPassword(service, account);
|
|
435
|
-
},
|
|
436
|
-
setPassword: function(service, account, password) {
|
|
437
|
-
checkRequired(service, "Service");
|
|
438
|
-
checkRequired(account, "Account");
|
|
439
|
-
checkRequired(password, "Password");
|
|
440
|
-
return keytar.setPassword(service, account, password);
|
|
441
|
-
},
|
|
442
|
-
deletePassword: function(service, account) {
|
|
443
|
-
checkRequired(service, "Service");
|
|
444
|
-
checkRequired(account, "Account");
|
|
445
|
-
return keytar.deletePassword(service, account);
|
|
446
|
-
},
|
|
447
|
-
findPassword: function(service) {
|
|
448
|
-
checkRequired(service, "Service");
|
|
449
|
-
return keytar.findPassword(service);
|
|
450
|
-
},
|
|
451
|
-
findCredentials: function(service) {
|
|
452
|
-
checkRequired(service, "Service");
|
|
453
|
-
return keytar.findCredentials(service);
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
|
|
459
373
|
// src/providers/base.ts
|
|
460
374
|
var BaseProvider;
|
|
461
375
|
var init_base = __esm({
|
|
@@ -1465,7 +1379,7 @@ var PBKDF2_ITERATIONS = 1e5;
|
|
|
1465
1379
|
var KEYTAR_SERVICE = "cascade-ai";
|
|
1466
1380
|
async function loadKeytar() {
|
|
1467
1381
|
try {
|
|
1468
|
-
const mod = await
|
|
1382
|
+
const mod = await import('keytar');
|
|
1469
1383
|
const candidate = mod.default ?? mod;
|
|
1470
1384
|
if (typeof candidate.getPassword !== "function") return null;
|
|
1471
1385
|
return candidate;
|
|
@@ -14301,7 +14215,7 @@ async function doctorCommand() {
|
|
|
14301
14215
|
});
|
|
14302
14216
|
let keystoreBackend = "file (AES-256-GCM)";
|
|
14303
14217
|
try {
|
|
14304
|
-
await
|
|
14218
|
+
await import('keytar');
|
|
14305
14219
|
keystoreBackend = "keytar (OS keychain)";
|
|
14306
14220
|
} catch {
|
|
14307
14221
|
}
|