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.cjs
CHANGED
|
@@ -87,50 +87,21 @@ var parser__default = /*#__PURE__*/_interopDefault(parser);
|
|
|
87
87
|
var jwt__default = /*#__PURE__*/_interopDefault(jwt);
|
|
88
88
|
|
|
89
89
|
// Cascade AI — Multi-tier AI Orchestration System
|
|
90
|
-
var __create = Object.create;
|
|
91
90
|
var __defProp = Object.defineProperty;
|
|
92
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
93
91
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
94
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
95
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
96
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
97
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
98
|
-
}) : x)(function(x) {
|
|
99
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
100
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
101
|
-
});
|
|
102
92
|
var __esm = (fn, res) => function __init() {
|
|
103
93
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
104
94
|
};
|
|
105
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
106
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
107
|
-
};
|
|
108
95
|
var __export = (target, all) => {
|
|
109
96
|
for (var name in all)
|
|
110
97
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
111
98
|
};
|
|
112
|
-
var __copyProps = (to, from, except, desc) => {
|
|
113
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
114
|
-
for (let key of __getOwnPropNames(from))
|
|
115
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
116
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
117
|
-
}
|
|
118
|
-
return to;
|
|
119
|
-
};
|
|
120
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
121
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
122
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
123
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
124
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
125
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
126
|
-
mod
|
|
127
|
-
));
|
|
128
99
|
|
|
129
100
|
// src/constants.ts
|
|
130
101
|
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;
|
|
131
102
|
var init_constants = __esm({
|
|
132
103
|
"src/constants.ts"() {
|
|
133
|
-
CASCADE_VERSION = "0.
|
|
104
|
+
CASCADE_VERSION = "0.12.5";
|
|
134
105
|
CASCADE_CONFIG_FILE = ".cascade/config.json";
|
|
135
106
|
CASCADE_DB_FILE = ".cascade/memory.db";
|
|
136
107
|
CASCADE_DASHBOARD_SECRET_FILE = ".cascade/dashboard-secret";
|
|
@@ -446,63 +417,6 @@ var init_constants = __esm({
|
|
|
446
417
|
}
|
|
447
418
|
});
|
|
448
419
|
|
|
449
|
-
// node_modules/keytar/build/Release/keytar.node
|
|
450
|
-
var keytar_default;
|
|
451
|
-
var init_keytar = __esm({
|
|
452
|
-
"node_modules/keytar/build/Release/keytar.node"() {
|
|
453
|
-
keytar_default = "./keytar-VMICNFEJ.node";
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
|
|
457
|
-
// node-file:/home/runner/work/Cascade-AI/Cascade-AI/node_modules/keytar/build/Release/keytar.node
|
|
458
|
-
var require_keytar = __commonJS({
|
|
459
|
-
"node-file:/home/runner/work/Cascade-AI/Cascade-AI/node_modules/keytar/build/Release/keytar.node"(exports, module) {
|
|
460
|
-
init_keytar();
|
|
461
|
-
try {
|
|
462
|
-
module.exports = __require(keytar_default);
|
|
463
|
-
} catch {
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
|
|
468
|
-
// node_modules/keytar/lib/keytar.js
|
|
469
|
-
var require_keytar2 = __commonJS({
|
|
470
|
-
"node_modules/keytar/lib/keytar.js"(exports, module) {
|
|
471
|
-
var keytar = require_keytar();
|
|
472
|
-
function checkRequired(val, name) {
|
|
473
|
-
if (!val || val.length <= 0) {
|
|
474
|
-
throw new Error(name + " is required.");
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
module.exports = {
|
|
478
|
-
getPassword: function(service, account) {
|
|
479
|
-
checkRequired(service, "Service");
|
|
480
|
-
checkRequired(account, "Account");
|
|
481
|
-
return keytar.getPassword(service, account);
|
|
482
|
-
},
|
|
483
|
-
setPassword: function(service, account, password) {
|
|
484
|
-
checkRequired(service, "Service");
|
|
485
|
-
checkRequired(account, "Account");
|
|
486
|
-
checkRequired(password, "Password");
|
|
487
|
-
return keytar.setPassword(service, account, password);
|
|
488
|
-
},
|
|
489
|
-
deletePassword: function(service, account) {
|
|
490
|
-
checkRequired(service, "Service");
|
|
491
|
-
checkRequired(account, "Account");
|
|
492
|
-
return keytar.deletePassword(service, account);
|
|
493
|
-
},
|
|
494
|
-
findPassword: function(service) {
|
|
495
|
-
checkRequired(service, "Service");
|
|
496
|
-
return keytar.findPassword(service);
|
|
497
|
-
},
|
|
498
|
-
findCredentials: function(service) {
|
|
499
|
-
checkRequired(service, "Service");
|
|
500
|
-
return keytar.findCredentials(service);
|
|
501
|
-
}
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
});
|
|
505
|
-
|
|
506
420
|
// src/providers/base.ts
|
|
507
421
|
var BaseProvider;
|
|
508
422
|
var init_base = __esm({
|
|
@@ -1512,7 +1426,7 @@ var PBKDF2_ITERATIONS = 1e5;
|
|
|
1512
1426
|
var KEYTAR_SERVICE = "cascade-ai";
|
|
1513
1427
|
async function loadKeytar() {
|
|
1514
1428
|
try {
|
|
1515
|
-
const mod = await
|
|
1429
|
+
const mod = await import('keytar');
|
|
1516
1430
|
const candidate = mod.default ?? mod;
|
|
1517
1431
|
if (typeof candidate.getPassword !== "function") return null;
|
|
1518
1432
|
return candidate;
|
|
@@ -14348,7 +14262,7 @@ async function doctorCommand() {
|
|
|
14348
14262
|
});
|
|
14349
14263
|
let keystoreBackend = "file (AES-256-GCM)";
|
|
14350
14264
|
try {
|
|
14351
|
-
await
|
|
14265
|
+
await import('keytar');
|
|
14352
14266
|
keystoreBackend = "keytar (OS keychain)";
|
|
14353
14267
|
} catch {
|
|
14354
14268
|
}
|