@cjhyy/code-shell 0.1.5 → 0.1.6
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/CHANGELOG.md +30 -0
- package/dist/arena/index.cjs +4 -4
- package/dist/arena/index.js +3 -3
- package/dist/{arena-O2L4TN6A.js → arena-2LTLIXOL.js} +3 -3
- package/dist/{arena-KBQOPLFV.cjs → arena-ADB7DRFI.cjs} +17 -17
- package/dist/{chunk-XDIQWQJ4.js → chunk-3QO25N6E.js} +2 -2
- package/dist/{chunk-5ECBT4YA.js → chunk-3SBSUOWZ.js} +0 -3
- package/dist/{chunk-YUI524OE.cjs → chunk-7BI3V74Y.cjs} +0 -3
- package/dist/{chunk-2EP3CLEN.js → chunk-7QIM3BKD.js} +1 -1
- package/dist/{chunk-YJ77GQK5.js → chunk-ABRRONJ7.js} +1 -1
- package/dist/{chunk-C5YQBIRK.js → chunk-BZ5TNE7L.js} +1 -1
- package/dist/{chunk-VYL4EFRC.cjs → chunk-DDB6QOKJ.cjs} +7 -7
- package/dist/{chunk-SNT563K3.cjs → chunk-ILHE7XLT.cjs} +6 -6
- package/dist/{chunk-76W334S4.js → chunk-KAQHULYN.js} +1 -1
- package/dist/{chunk-W22P377T.js → chunk-KE4EQOWA.js} +6 -11
- package/dist/{chunk-R47ROHGL.cjs → chunk-MV7YI4WO.cjs} +6 -11
- package/dist/{chunk-7K6SDRRF.js → chunk-PKGRTCCY.js} +54 -9
- package/dist/{chunk-RMYKO74M.js → chunk-QARL3IDQ.js} +1 -1
- package/dist/{chunk-A5LCRPDP.cjs → chunk-S754JHLR.cjs} +2 -2
- package/dist/{chunk-HS2MFNUC.cjs → chunk-TNLGBJYS.cjs} +3 -3
- package/dist/{chunk-BUU5PZK2.cjs → chunk-UXOCVJJ6.cjs} +200 -156
- package/dist/{chunk-BWTOS5BH.cjs → chunk-WZJV6DJC.cjs} +4 -4
- package/dist/{chunk-QRM7IF2S.cjs → chunk-YKIAELDZ.cjs} +2 -2
- package/dist/cli/main.cjs +211 -188
- package/dist/cli/main.js +44 -21
- package/dist/cli/updater.d.ts +8 -0
- package/dist/engine/engine.d.ts +7 -0
- package/dist/index.cjs +8 -8
- package/dist/index.js +9 -9
- package/dist/{manager-C2IUXKRC.js → manager-D65VFAPX.js} +1 -1
- package/dist/manager-TTF5VHJC.cjs +7 -0
- package/dist/{openrouter-models-TGKDKY52.js → openrouter-models-H56GHBHN.js} +1 -1
- package/dist/openrouter-models-TWUFWZ5T.cjs +15 -0
- package/dist/openrouter-sync-5VMGN6C2.cjs +11 -0
- package/dist/{openrouter-sync-UXUSJCIR.js → openrouter-sync-ALEMF5IU.js} +2 -2
- package/dist/product/index.cjs +7 -7
- package/dist/product/index.js +6 -6
- package/dist/run/index.cjs +7 -7
- package/dist/run/index.js +6 -6
- package/dist/tool-system/investigation-guard.d.ts +9 -0
- package/dist/updater-I7QBW4DP.cjs +17 -0
- package/dist/{updater-VFUAHCVY.js → updater-NVME5S3Z.js} +1 -1
- package/package.json +2 -1
- package/skills-builtin/codeshell-help.md +135 -0
- package/dist/manager-YYKWYTRM.cjs +0 -7
- package/dist/openrouter-models-OU4GRZQY.cjs +0 -15
- package/dist/openrouter-sync-BBHUM3R6.cjs +0 -11
- package/dist/updater-QW473OF4.cjs +0 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYKIAELDZcjs = require('./chunk-YKIAELDZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk2YW4FPFGcjs = require('./chunk-2YW4FPFG.cjs');
|
|
@@ -4430,7 +4430,7 @@ var OPENROUTER_VENDORS = [
|
|
|
4430
4430
|
{ prefix: "mistralai/", take: 1 }
|
|
4431
4431
|
];
|
|
4432
4432
|
function buildOpenRouterModelList(fallback) {
|
|
4433
|
-
const all =
|
|
4433
|
+
const all = _chunkYKIAELDZcjs.getOpenRouterModels.call(void 0, );
|
|
4434
4434
|
if (all.length === 0) return fallback;
|
|
4435
4435
|
const skip = /(?:-guard|-embedding|-rerank|-vision-only|:free)/i;
|
|
4436
4436
|
const out = [];
|
|
@@ -4529,7 +4529,7 @@ var KNOWN_CONTEXT_WINDOWS = {
|
|
|
4529
4529
|
function resolveMaxOutput(model) {
|
|
4530
4530
|
if (KNOWN_MAX_OUTPUT[model]) return KNOWN_MAX_OUTPUT[model];
|
|
4531
4531
|
if (model.includes("/")) {
|
|
4532
|
-
const hit =
|
|
4532
|
+
const hit = _chunkYKIAELDZcjs.getOpenRouterModels.call(void 0, ).find((m) => m.id === model);
|
|
4533
4533
|
if (hit && hit.maxOutputTokens > 0) return hit.maxOutputTokens;
|
|
4534
4534
|
}
|
|
4535
4535
|
return void 0;
|
|
@@ -4537,7 +4537,7 @@ function resolveMaxOutput(model) {
|
|
|
4537
4537
|
function resolveContextWindow(model) {
|
|
4538
4538
|
if (KNOWN_CONTEXT_WINDOWS[model]) return KNOWN_CONTEXT_WINDOWS[model];
|
|
4539
4539
|
if (model.includes("/")) {
|
|
4540
|
-
const hit =
|
|
4540
|
+
const hit = _chunkYKIAELDZcjs.getOpenRouterModels.call(void 0, ).find((m) => m.id === model);
|
|
4541
4541
|
if (hit && hit.contextLength > 0) return hit.contextLength;
|
|
4542
4542
|
}
|
|
4543
4543
|
return void 0;
|
|
@@ -7,7 +7,7 @@ _chunkKS3RYAYLcjs.init_cjs_shims.call(void 0, );
|
|
|
7
7
|
|
|
8
8
|
// src/data/openrouter-models.json
|
|
9
9
|
var openrouter_models_default = {
|
|
10
|
-
fetchedAt: "2026-05-
|
|
10
|
+
fetchedAt: "2026-05-13T11:22:58.240Z",
|
|
11
11
|
source: "https://openrouter.ai/api/v1/models",
|
|
12
12
|
count: 363,
|
|
13
13
|
models: [
|
|
@@ -3699,7 +3699,7 @@ var openrouter_models_default = {
|
|
|
3699
3699
|
id: "google/gemini-2.0-flash-001",
|
|
3700
3700
|
name: "Google: Gemini 2.0 Flash",
|
|
3701
3701
|
created: 1738769413,
|
|
3702
|
-
contextLength:
|
|
3702
|
+
contextLength: 1e6,
|
|
3703
3703
|
maxOutputTokens: 8192,
|
|
3704
3704
|
inputPricePerMillion: 0.09999999999999999,
|
|
3705
3705
|
outputPricePerMillion: 0.39999999999999997,
|