claudish 14.28.1 → 14.28.2
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/bin/claudish.cjs +37 -2
- package/dist/index.js +124 -80
- package/package.json +5 -5
package/bin/claudish.cjs
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
// own descendants) directly; `team-orchestrator.ts` does exactly that.
|
|
36
36
|
|
|
37
37
|
const { execFileSync, execSync, spawn } = require("node:child_process");
|
|
38
|
+
const { homedir } = require("node:os");
|
|
38
39
|
const { resolve } = require("node:path");
|
|
39
40
|
const { NO_ENV_FILE_FLAG, envFileKeys, probeFailedNotice } = require("./env-files.cjs");
|
|
40
41
|
|
|
@@ -44,6 +45,17 @@ const { NO_ENV_FILE_FLAG, envFileKeys, probeFailedNotice } = require("./env-file
|
|
|
44
45
|
*/
|
|
45
46
|
const LAUNCHER_DROPPED_VAR = "CLAUDISH_LAUNCHER_DROPPED";
|
|
46
47
|
|
|
48
|
+
/**
|
|
49
|
+
* The commands that need no working directory. The whole argument list must be
|
|
50
|
+
* exactly one of these; any other argument may read or write relative to the
|
|
51
|
+
* working directory.
|
|
52
|
+
*
|
|
53
|
+
* A deleted working directory makes `process.cwd()` throw, and package managers such
|
|
54
|
+
* as npm cannot run there either, so these start the child in the home directory.
|
|
55
|
+
* `-v` is not here: it is `--verbose`, not a version flag.
|
|
56
|
+
*/
|
|
57
|
+
const CWD_FREE_COMMANDS = ["update", "--version", "--help", "-h"];
|
|
58
|
+
|
|
47
59
|
/**
|
|
48
60
|
* The shell command that asks PATH where bun is.
|
|
49
61
|
*
|
|
@@ -118,11 +130,15 @@ function bunArgv(entry, argv) {
|
|
|
118
130
|
* those files set is left out (env-files.cjs asks Bun which). A real value sharing a
|
|
119
131
|
* name with a file's is left out too, the safe direction; the child still reads the
|
|
120
132
|
* provider API keys and model settings in `.env`. When Bun cannot answer, there is no child.
|
|
133
|
+
* A null `cwd` (the working directory no longer exists) means no file was loaded.
|
|
121
134
|
*/
|
|
122
135
|
function childEnv({ isBun, execArgv, bunPath, cwd, env }) {
|
|
123
136
|
const out = { ...env };
|
|
124
137
|
delete out[LAUNCHER_DROPPED_VAR];
|
|
125
|
-
|
|
138
|
+
// A null `cwd` means the working directory is gone, so Bun loaded no env file from it.
|
|
139
|
+
if (!isBun || execArgv.includes(NO_ENV_FILE_FLAG) || cwd === null) {
|
|
140
|
+
return { env: out, dropped: [] };
|
|
141
|
+
}
|
|
126
142
|
const fileKeys = envFileKeys({ bunPath, execArgv, cwd, env });
|
|
127
143
|
if (fileKeys === null) return null;
|
|
128
144
|
const dropped = [];
|
|
@@ -136,6 +152,24 @@ function childEnv({ isBun, execArgv, bunPath, cwd, env }) {
|
|
|
136
152
|
}
|
|
137
153
|
|
|
138
154
|
function main() {
|
|
155
|
+
// `spawnCwd` stays undefined while the working directory exists, so the child
|
|
156
|
+
// inherits it. `cwd` is null when the directory is gone.
|
|
157
|
+
let cwd;
|
|
158
|
+
let spawnCwd;
|
|
159
|
+
try {
|
|
160
|
+
cwd = process.cwd();
|
|
161
|
+
} catch {
|
|
162
|
+
const args = process.argv.slice(2);
|
|
163
|
+
if (args.length !== 1 || !CWD_FREE_COMMANDS.includes(args[0])) {
|
|
164
|
+
console.error(
|
|
165
|
+
"[claudish] the current directory no longer exists (it was deleted or moved). cd to a folder that exists and run claudish again."
|
|
166
|
+
);
|
|
167
|
+
process.exit(1);
|
|
168
|
+
}
|
|
169
|
+
cwd = null;
|
|
170
|
+
spawnCwd = homedir();
|
|
171
|
+
}
|
|
172
|
+
|
|
139
173
|
const bun = findBun();
|
|
140
174
|
if (!bun) {
|
|
141
175
|
console.error(`claudish requires the Bun runtime but it was not found.
|
|
@@ -156,7 +190,7 @@ Learn more: https://bun.sh`);
|
|
|
156
190
|
isBun: process.versions.bun !== undefined,
|
|
157
191
|
execArgv: process.execArgv,
|
|
158
192
|
bunPath: process.execPath,
|
|
159
|
-
cwd
|
|
193
|
+
cwd,
|
|
160
194
|
env: process.env,
|
|
161
195
|
});
|
|
162
196
|
if (base === null) {
|
|
@@ -168,6 +202,7 @@ Learn more: https://bun.sh`);
|
|
|
168
202
|
try {
|
|
169
203
|
child = spawn(bun, bunArgv(entry, process.argv.slice(2)), {
|
|
170
204
|
stdio: "inherit",
|
|
205
|
+
cwd: spawnCwd,
|
|
171
206
|
// The pid pair tells the Bun child who launched it: this launcher, and the
|
|
172
207
|
// launcher's own parent (Claude Code, for an MCP server). The child
|
|
173
208
|
// believes the pair only when CLAUDISH_LAUNCHER_PID is its real parent
|
package/dist/index.js
CHANGED
|
@@ -5542,7 +5542,7 @@ var init_env_placeholder = __esm(() => {
|
|
|
5542
5542
|
});
|
|
5543
5543
|
|
|
5544
5544
|
// src/version.ts
|
|
5545
|
-
var VERSION = "14.28.
|
|
5545
|
+
var VERSION = "14.28.2";
|
|
5546
5546
|
|
|
5547
5547
|
// src/redact.ts
|
|
5548
5548
|
function isPlaceholder(value) {
|
|
@@ -14145,7 +14145,7 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
14145
14145
|
}
|
|
14146
14146
|
}
|
|
14147
14147
|
},
|
|
14148
|
-
fetchedAt: "2026-11-
|
|
14148
|
+
fetchedAt: "2026-11-18T00:24:40.501Z",
|
|
14149
14149
|
format: 1,
|
|
14150
14150
|
recommendations: {
|
|
14151
14151
|
contractVersion: 3,
|
|
@@ -14251,11 +14251,11 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
14251
14251
|
tier: "luxury"
|
|
14252
14252
|
}
|
|
14253
14253
|
],
|
|
14254
|
-
generationId: "g-
|
|
14254
|
+
generationId: "g-20261117161737898-2452723c"
|
|
14255
14255
|
},
|
|
14256
14256
|
source: "https://us-central1-claudish-6da10.cloudfunctions.net"
|
|
14257
14257
|
},
|
|
14258
|
-
catalogGenerationId: "g-
|
|
14258
|
+
catalogGenerationId: "g-20261117161737898-2452723c",
|
|
14259
14259
|
entries: [
|
|
14260
14260
|
{
|
|
14261
14261
|
aggregators: [
|
|
@@ -14829,9 +14829,9 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
14829
14829
|
],
|
|
14830
14830
|
aliases: [
|
|
14831
14831
|
"anthropic/claude-opus-5.5",
|
|
14832
|
-
"claude-opus-5-5-low",
|
|
14833
14832
|
"claude-opus-5-5-medium",
|
|
14834
14833
|
"claude-opus-5-5-high",
|
|
14834
|
+
"claude-opus-5-5-low",
|
|
14835
14835
|
"claude-opus-5-5-max",
|
|
14836
14836
|
"claude-opus-5-5-xhigh"
|
|
14837
14837
|
],
|
|
@@ -15022,8 +15022,8 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
15022
15022
|
aliases: [
|
|
15023
15023
|
"anthropic/claude-sonnet-5.5",
|
|
15024
15024
|
"claude-sonnet-5.5",
|
|
15025
|
-
"claude-sonnet-5-5-medium",
|
|
15026
15025
|
"claude-sonnet-5-5-high",
|
|
15026
|
+
"claude-sonnet-5-5-medium",
|
|
15027
15027
|
"claude-sonnet-5-5-low",
|
|
15028
15028
|
"claude-sonnet-5-5-max",
|
|
15029
15029
|
"claude-sonnet-5-5-xhigh"
|
|
@@ -15287,8 +15287,8 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
15287
15287
|
],
|
|
15288
15288
|
aliases: [
|
|
15289
15289
|
"google/gemini-4-argon",
|
|
15290
|
-
"gemini-4-argon-medium",
|
|
15291
15290
|
"gemini-4-argon-high",
|
|
15291
|
+
"gemini-4-argon-medium",
|
|
15292
15292
|
"gemini-4-argon-low"
|
|
15293
15293
|
],
|
|
15294
15294
|
contextWindow: 1048576,
|
|
@@ -15442,9 +15442,9 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
15442
15442
|
],
|
|
15443
15443
|
aliases: [
|
|
15444
15444
|
"google/gemini-4-carbon",
|
|
15445
|
+
"gemini-4-carbon-high",
|
|
15445
15446
|
"gemini-4-carbon-medium",
|
|
15446
|
-
"gemini-4-carbon-low"
|
|
15447
|
-
"gemini-4-carbon-high"
|
|
15447
|
+
"gemini-4-carbon-low"
|
|
15448
15448
|
],
|
|
15449
15449
|
contextWindow: 1048576,
|
|
15450
15450
|
contractVersion: 3,
|
|
@@ -15597,10 +15597,10 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
15597
15597
|
],
|
|
15598
15598
|
aliases: [
|
|
15599
15599
|
"google/gemini-4-hydrogen",
|
|
15600
|
-
"gemini-4-hydrogen-xhigh",
|
|
15601
15600
|
"gemini-4-hydrogen-medium",
|
|
15602
|
-
"gemini-4-hydrogen-
|
|
15603
|
-
"gemini-4-hydrogen-
|
|
15601
|
+
"gemini-4-hydrogen-low",
|
|
15602
|
+
"gemini-4-hydrogen-xhigh",
|
|
15603
|
+
"gemini-4-hydrogen-high"
|
|
15604
15604
|
],
|
|
15605
15605
|
contextWindow: 1048576,
|
|
15606
15606
|
contractVersion: 3,
|
|
@@ -17625,8 +17625,8 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
17625
17625
|
"minimax/minimax-m3.1-flash",
|
|
17626
17626
|
"MiniMaxAI/MiniMax-M3.1-Flash",
|
|
17627
17627
|
"accounts/fireworks/models/minimax-m3p1-flash",
|
|
17628
|
-
"
|
|
17629
|
-
"
|
|
17628
|
+
"MiniMax-M3.1-Flash",
|
|
17629
|
+
"minimax-m3.1-flash-e"
|
|
17630
17630
|
],
|
|
17631
17631
|
contextWindow: 1e6,
|
|
17632
17632
|
contractVersion: 3,
|
|
@@ -18272,7 +18272,7 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
18272
18272
|
supportsVision: true
|
|
18273
18273
|
}
|
|
18274
18274
|
],
|
|
18275
|
-
lastUpdated: "2026-11-
|
|
18275
|
+
lastUpdated: "2026-11-17T16:17:37.898Z",
|
|
18276
18276
|
models: [],
|
|
18277
18277
|
plans: [
|
|
18278
18278
|
{
|
|
@@ -19023,164 +19023,164 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
19023
19023
|
id: "google-antigravity",
|
|
19024
19024
|
inclusions: [
|
|
19025
19025
|
{
|
|
19026
|
-
externalModelId: "gemini-4-
|
|
19026
|
+
externalModelId: "gemini-4-hydrogen-medium",
|
|
19027
19027
|
kind: "provider_model",
|
|
19028
19028
|
provider: "antigravity",
|
|
19029
19029
|
resolution: {
|
|
19030
|
-
modelId: "gemini-4-
|
|
19030
|
+
modelId: "gemini-4-hydrogen",
|
|
19031
19031
|
status: "mapped"
|
|
19032
19032
|
},
|
|
19033
|
-
sourceText: "gemini-4-
|
|
19033
|
+
sourceText: "gemini-4-hydrogen-medium"
|
|
19034
19034
|
},
|
|
19035
19035
|
{
|
|
19036
|
-
externalModelId: "
|
|
19036
|
+
externalModelId: "claude-opus-5-5-medium",
|
|
19037
19037
|
kind: "provider_model",
|
|
19038
19038
|
provider: "antigravity",
|
|
19039
19039
|
resolution: {
|
|
19040
|
-
modelId: "
|
|
19040
|
+
modelId: "claude-opus-5-5",
|
|
19041
19041
|
status: "mapped"
|
|
19042
19042
|
},
|
|
19043
|
-
sourceText: "
|
|
19043
|
+
sourceText: "claude-opus-5-5-medium"
|
|
19044
19044
|
},
|
|
19045
19045
|
{
|
|
19046
|
-
externalModelId: "gemini-4-hydrogen-
|
|
19046
|
+
externalModelId: "gemini-4-hydrogen-low",
|
|
19047
19047
|
kind: "provider_model",
|
|
19048
19048
|
provider: "antigravity",
|
|
19049
19049
|
resolution: {
|
|
19050
19050
|
modelId: "gemini-4-hydrogen",
|
|
19051
19051
|
status: "mapped"
|
|
19052
19052
|
},
|
|
19053
|
-
sourceText: "gemini-4-hydrogen-
|
|
19053
|
+
sourceText: "gemini-4-hydrogen-low"
|
|
19054
19054
|
},
|
|
19055
19055
|
{
|
|
19056
|
-
externalModelId: "gemini-4-
|
|
19056
|
+
externalModelId: "gemini-4-argon-high",
|
|
19057
19057
|
kind: "provider_model",
|
|
19058
19058
|
provider: "antigravity",
|
|
19059
19059
|
resolution: {
|
|
19060
|
-
modelId: "gemini-4-
|
|
19060
|
+
modelId: "gemini-4-argon",
|
|
19061
19061
|
status: "mapped"
|
|
19062
19062
|
},
|
|
19063
|
-
sourceText: "gemini-4-
|
|
19063
|
+
sourceText: "gemini-4-argon-high"
|
|
19064
19064
|
},
|
|
19065
19065
|
{
|
|
19066
|
-
externalModelId: "
|
|
19066
|
+
externalModelId: "claude-opus-5-5-high",
|
|
19067
19067
|
kind: "provider_model",
|
|
19068
19068
|
provider: "antigravity",
|
|
19069
19069
|
resolution: {
|
|
19070
|
-
modelId: "
|
|
19070
|
+
modelId: "claude-opus-5-5",
|
|
19071
19071
|
status: "mapped"
|
|
19072
19072
|
},
|
|
19073
|
-
sourceText: "
|
|
19073
|
+
sourceText: "claude-opus-5-5-high"
|
|
19074
19074
|
},
|
|
19075
19075
|
{
|
|
19076
|
-
externalModelId: "
|
|
19076
|
+
externalModelId: "claude-sonnet-5-5-high",
|
|
19077
19077
|
kind: "provider_model",
|
|
19078
19078
|
provider: "antigravity",
|
|
19079
19079
|
resolution: {
|
|
19080
|
-
modelId: "
|
|
19080
|
+
modelId: "claude-sonnet-5-5",
|
|
19081
19081
|
status: "mapped"
|
|
19082
19082
|
},
|
|
19083
|
-
sourceText: "
|
|
19083
|
+
sourceText: "claude-sonnet-5-5-high"
|
|
19084
19084
|
},
|
|
19085
19085
|
{
|
|
19086
|
-
externalModelId: "
|
|
19086
|
+
externalModelId: "gemini-4-carbon-high",
|
|
19087
19087
|
kind: "provider_model",
|
|
19088
19088
|
provider: "antigravity",
|
|
19089
19089
|
resolution: {
|
|
19090
|
-
modelId: "
|
|
19090
|
+
modelId: "gemini-4-carbon",
|
|
19091
19091
|
status: "mapped"
|
|
19092
19092
|
},
|
|
19093
|
-
sourceText: "
|
|
19093
|
+
sourceText: "gemini-4-carbon-high"
|
|
19094
19094
|
},
|
|
19095
19095
|
{
|
|
19096
|
-
externalModelId: "gemini-4-argon-
|
|
19096
|
+
externalModelId: "gemini-4-argon-medium",
|
|
19097
19097
|
kind: "provider_model",
|
|
19098
19098
|
provider: "antigravity",
|
|
19099
19099
|
resolution: {
|
|
19100
19100
|
modelId: "gemini-4-argon",
|
|
19101
19101
|
status: "mapped"
|
|
19102
19102
|
},
|
|
19103
|
-
sourceText: "gemini-4-argon-
|
|
19103
|
+
sourceText: "gemini-4-argon-medium"
|
|
19104
19104
|
},
|
|
19105
19105
|
{
|
|
19106
|
-
externalModelId: "
|
|
19106
|
+
externalModelId: "claude-sonnet-5-5-medium",
|
|
19107
19107
|
kind: "provider_model",
|
|
19108
19108
|
provider: "antigravity",
|
|
19109
19109
|
resolution: {
|
|
19110
|
-
modelId: "
|
|
19110
|
+
modelId: "claude-sonnet-5-5",
|
|
19111
19111
|
status: "mapped"
|
|
19112
19112
|
},
|
|
19113
|
-
sourceText: "
|
|
19113
|
+
sourceText: "claude-sonnet-5-5-medium"
|
|
19114
19114
|
},
|
|
19115
19115
|
{
|
|
19116
|
-
externalModelId: "claude-sonnet-5-5-
|
|
19116
|
+
externalModelId: "claude-sonnet-5-5-low",
|
|
19117
19117
|
kind: "provider_model",
|
|
19118
19118
|
provider: "antigravity",
|
|
19119
19119
|
resolution: {
|
|
19120
19120
|
modelId: "claude-sonnet-5-5",
|
|
19121
19121
|
status: "mapped"
|
|
19122
19122
|
},
|
|
19123
|
-
sourceText: "claude-sonnet-5-5-
|
|
19123
|
+
sourceText: "claude-sonnet-5-5-low"
|
|
19124
19124
|
},
|
|
19125
19125
|
{
|
|
19126
|
-
externalModelId: "gemini-4-hydrogen-
|
|
19126
|
+
externalModelId: "gemini-4-hydrogen-xhigh",
|
|
19127
19127
|
kind: "provider_model",
|
|
19128
19128
|
provider: "antigravity",
|
|
19129
19129
|
resolution: {
|
|
19130
19130
|
modelId: "gemini-4-hydrogen",
|
|
19131
19131
|
status: "mapped"
|
|
19132
19132
|
},
|
|
19133
|
-
sourceText: "gemini-4-hydrogen-
|
|
19133
|
+
sourceText: "gemini-4-hydrogen-xhigh"
|
|
19134
19134
|
},
|
|
19135
19135
|
{
|
|
19136
|
-
externalModelId: "
|
|
19136
|
+
externalModelId: "gemini-4-carbon-medium",
|
|
19137
19137
|
kind: "provider_model",
|
|
19138
19138
|
provider: "antigravity",
|
|
19139
19139
|
resolution: {
|
|
19140
|
-
modelId: "
|
|
19140
|
+
modelId: "gemini-4-carbon",
|
|
19141
19141
|
status: "mapped"
|
|
19142
19142
|
},
|
|
19143
|
-
sourceText: "
|
|
19143
|
+
sourceText: "gemini-4-carbon-medium"
|
|
19144
19144
|
},
|
|
19145
19145
|
{
|
|
19146
|
-
externalModelId: "claude-
|
|
19146
|
+
externalModelId: "claude-opus-5-5-low",
|
|
19147
19147
|
kind: "provider_model",
|
|
19148
19148
|
provider: "antigravity",
|
|
19149
19149
|
resolution: {
|
|
19150
|
-
modelId: "claude-
|
|
19150
|
+
modelId: "claude-opus-5-5",
|
|
19151
19151
|
status: "mapped"
|
|
19152
19152
|
},
|
|
19153
|
-
sourceText: "claude-
|
|
19153
|
+
sourceText: "claude-opus-5-5-low"
|
|
19154
19154
|
},
|
|
19155
19155
|
{
|
|
19156
|
-
externalModelId: "gemini-4-
|
|
19156
|
+
externalModelId: "gemini-4-argon-low",
|
|
19157
19157
|
kind: "provider_model",
|
|
19158
19158
|
provider: "antigravity",
|
|
19159
19159
|
resolution: {
|
|
19160
|
-
modelId: "gemini-4-
|
|
19160
|
+
modelId: "gemini-4-argon",
|
|
19161
19161
|
status: "mapped"
|
|
19162
19162
|
},
|
|
19163
|
-
sourceText: "gemini-4-
|
|
19163
|
+
sourceText: "gemini-4-argon-low"
|
|
19164
19164
|
},
|
|
19165
19165
|
{
|
|
19166
|
-
externalModelId: "
|
|
19166
|
+
externalModelId: "gemini-4-carbon-low",
|
|
19167
19167
|
kind: "provider_model",
|
|
19168
19168
|
provider: "antigravity",
|
|
19169
19169
|
resolution: {
|
|
19170
|
-
modelId: "
|
|
19170
|
+
modelId: "gemini-4-carbon",
|
|
19171
19171
|
status: "mapped"
|
|
19172
19172
|
},
|
|
19173
|
-
sourceText: "
|
|
19173
|
+
sourceText: "gemini-4-carbon-low"
|
|
19174
19174
|
},
|
|
19175
19175
|
{
|
|
19176
|
-
externalModelId: "
|
|
19176
|
+
externalModelId: "gemini-4-hydrogen-high",
|
|
19177
19177
|
kind: "provider_model",
|
|
19178
19178
|
provider: "antigravity",
|
|
19179
19179
|
resolution: {
|
|
19180
|
-
modelId: "
|
|
19180
|
+
modelId: "gemini-4-hydrogen",
|
|
19181
19181
|
status: "mapped"
|
|
19182
19182
|
},
|
|
19183
|
-
sourceText: "
|
|
19183
|
+
sourceText: "gemini-4-hydrogen-high"
|
|
19184
19184
|
}
|
|
19185
19185
|
],
|
|
19186
19186
|
modelDiscovery: "client",
|
|
@@ -19524,24 +19524,24 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
19524
19524
|
sourceText: "glm-5.3-flash"
|
|
19525
19525
|
},
|
|
19526
19526
|
{
|
|
19527
|
-
externalModelId: "
|
|
19527
|
+
externalModelId: "minimax-m3.1-flash",
|
|
19528
19528
|
kind: "provider_model",
|
|
19529
19529
|
provider: "ollamacloud",
|
|
19530
19530
|
resolution: {
|
|
19531
|
-
modelId: "
|
|
19531
|
+
modelId: "minimax-m3.1-flash",
|
|
19532
19532
|
status: "mapped"
|
|
19533
19533
|
},
|
|
19534
|
-
sourceText: "
|
|
19534
|
+
sourceText: "minimax-m3.1-flash"
|
|
19535
19535
|
},
|
|
19536
19536
|
{
|
|
19537
|
-
externalModelId: "
|
|
19537
|
+
externalModelId: "mimo-v2.6-pro",
|
|
19538
19538
|
kind: "provider_model",
|
|
19539
19539
|
provider: "ollamacloud",
|
|
19540
19540
|
resolution: {
|
|
19541
|
-
modelId: "
|
|
19541
|
+
modelId: "mimo-v2.6-pro",
|
|
19542
19542
|
status: "mapped"
|
|
19543
19543
|
},
|
|
19544
|
-
sourceText: "
|
|
19544
|
+
sourceText: "mimo-v2.6-pro"
|
|
19545
19545
|
},
|
|
19546
19546
|
{
|
|
19547
19547
|
externalModelId: "deepseek-v4.1-flash",
|
|
@@ -19554,34 +19554,34 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
19554
19554
|
sourceText: "deepseek-v4.1-flash"
|
|
19555
19555
|
},
|
|
19556
19556
|
{
|
|
19557
|
-
externalModelId: "
|
|
19557
|
+
externalModelId: "glm-5.3",
|
|
19558
19558
|
kind: "provider_model",
|
|
19559
19559
|
provider: "ollamacloud",
|
|
19560
19560
|
resolution: {
|
|
19561
|
-
modelId: "
|
|
19561
|
+
modelId: "glm-5.3",
|
|
19562
19562
|
status: "mapped"
|
|
19563
19563
|
},
|
|
19564
|
-
sourceText: "
|
|
19564
|
+
sourceText: "glm-5.3"
|
|
19565
19565
|
},
|
|
19566
19566
|
{
|
|
19567
|
-
externalModelId: "mimo-v2.6-
|
|
19567
|
+
externalModelId: "mimo-v2.6-flash",
|
|
19568
19568
|
kind: "provider_model",
|
|
19569
19569
|
provider: "ollamacloud",
|
|
19570
19570
|
resolution: {
|
|
19571
|
-
modelId: "mimo-v2.6-
|
|
19571
|
+
modelId: "mimo-v2.6-flash",
|
|
19572
19572
|
status: "mapped"
|
|
19573
19573
|
},
|
|
19574
|
-
sourceText: "mimo-v2.6-
|
|
19574
|
+
sourceText: "mimo-v2.6-flash"
|
|
19575
19575
|
},
|
|
19576
19576
|
{
|
|
19577
|
-
externalModelId: "
|
|
19577
|
+
externalModelId: "kimi-k3.1-pro",
|
|
19578
19578
|
kind: "provider_model",
|
|
19579
19579
|
provider: "ollamacloud",
|
|
19580
19580
|
resolution: {
|
|
19581
|
-
modelId: "
|
|
19581
|
+
modelId: "kimi-k3.1-pro",
|
|
19582
19582
|
status: "mapped"
|
|
19583
19583
|
},
|
|
19584
|
-
sourceText: "
|
|
19584
|
+
sourceText: "kimi-k3.1-pro"
|
|
19585
19585
|
}
|
|
19586
19586
|
],
|
|
19587
19587
|
modelDiscovery: "catalog",
|
|
@@ -19836,7 +19836,7 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
19836
19836
|
}
|
|
19837
19837
|
],
|
|
19838
19838
|
routeRegistry: {
|
|
19839
|
-
generationId: "g-
|
|
19839
|
+
generationId: "g-20261117161737898-2452723c",
|
|
19840
19840
|
registry: {
|
|
19841
19841
|
contractVersion: 3,
|
|
19842
19842
|
registryVersion: "3.7.0",
|
|
@@ -52867,9 +52867,24 @@ function servesSelectable(served, id) {
|
|
|
52867
52867
|
return served.servedIds.includes(id) && !isExcluded2(served, id);
|
|
52868
52868
|
}
|
|
52869
52869
|
function mappedAntigravityModelId(req, served, effort) {
|
|
52870
|
-
|
|
52870
|
+
const decision = chooseConnectionModelId(req, "antigravity", effort, {
|
|
52871
52871
|
sendable: (id) => servesSelectable(served, id) ? id : undefined
|
|
52872
52872
|
});
|
|
52873
|
+
if (effort !== "none" || !decision || decision.usable)
|
|
52874
|
+
return decision;
|
|
52875
|
+
const id = lowestSendableMapId(req, served);
|
|
52876
|
+
return id ? { usable: true, choice: { id, effort: "none", source: "request" } } : decision;
|
|
52877
|
+
}
|
|
52878
|
+
function lowestSendableMapId(req, served) {
|
|
52879
|
+
const map = findModelIdEffortConnection(req, "antigravity")?.map;
|
|
52880
|
+
if (!map)
|
|
52881
|
+
return;
|
|
52882
|
+
for (const level of EFFORT_LEVELS) {
|
|
52883
|
+
const id = level === "none" ? undefined : map.values[level];
|
|
52884
|
+
if (id && !isOptInWireId(id) && servesSelectable(served, id))
|
|
52885
|
+
return id;
|
|
52886
|
+
}
|
|
52887
|
+
return;
|
|
52873
52888
|
}
|
|
52874
52889
|
function antigravityCarriesEffortInModelId(sent) {
|
|
52875
52890
|
return carriesEffortInModelId(sent.trim(), "antigravity");
|
|
@@ -52960,6 +52975,7 @@ function chooseAntigravityServedModel(requested, served, effort) {
|
|
|
52960
52975
|
}
|
|
52961
52976
|
var BACKEND_THINKING_LEVELS, REASONING_TIER_RANK;
|
|
52962
52977
|
var init_antigravity_model_id = __esm(() => {
|
|
52978
|
+
init_base_api_format();
|
|
52963
52979
|
init_model_catalog();
|
|
52964
52980
|
init_model_id_effort_choice();
|
|
52965
52981
|
BACKEND_THINKING_LEVELS = { 1: "LOW", 2: "MEDIUM", 3: "HIGH" };
|
|
@@ -53157,6 +53173,17 @@ function applyReasoning(put, reasoning, toolsWithReasoning, choices, result) {
|
|
|
53157
53173
|
put(effort.path, effort.values[name]);
|
|
53158
53174
|
result.sentEffort = name;
|
|
53159
53175
|
}
|
|
53176
|
+
function requestThoughtSummaries(body, borrow) {
|
|
53177
|
+
const thinking = readPointer(body, "/generationConfig/thinkingConfig");
|
|
53178
|
+
if (thinking === null || typeof thinking !== "object" || Array.isArray(thinking))
|
|
53179
|
+
return;
|
|
53180
|
+
const config = thinking;
|
|
53181
|
+
if (Object.keys(config).length === 0 || config.thinkingBudget === 0)
|
|
53182
|
+
return;
|
|
53183
|
+
if ("includeThoughts" in config)
|
|
53184
|
+
return;
|
|
53185
|
+
borrow(INCLUDE_THOUGHTS_POINTER, true);
|
|
53186
|
+
}
|
|
53160
53187
|
function wireChoicesFromClaudeRequest(claudeRequest, pinnedEffort) {
|
|
53161
53188
|
let effort = pinnedEffort;
|
|
53162
53189
|
if (!effort) {
|
|
@@ -53221,6 +53248,8 @@ function shapeRequestFromWire(body, wire, choices, owner) {
|
|
|
53221
53248
|
} else {
|
|
53222
53249
|
applyReasoning(own, wire.reasoning, wire.toolsWithReasoning, choices, result);
|
|
53223
53250
|
}
|
|
53251
|
+
if (wire.api === "gemini")
|
|
53252
|
+
requestThoughtSummaries(body, borrow);
|
|
53224
53253
|
if (choices.mode) {
|
|
53225
53254
|
const control = wire.reasoning.status === "supported" ? wire.reasoning.mode : wire.reasoning;
|
|
53226
53255
|
applyControl(body, control, choices.mode.value, "mode", choices.mode.explicit, result);
|
|
@@ -53233,7 +53262,9 @@ function shapeRequestFromWire(body, wire, choices, owner) {
|
|
|
53233
53262
|
function recoverBorrowedWireFields(payload, borrowed, errorText) {
|
|
53234
53263
|
if (borrowed.length === 0 || !errorText)
|
|
53235
53264
|
return null;
|
|
53236
|
-
const
|
|
53265
|
+
const names = (token) => new RegExp(`(^|[^A-Za-z0-9_])${token.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}($|[^A-Za-z0-9_])`).test(errorText);
|
|
53266
|
+
const byLeaf = borrowed.filter((path) => names(pointerTokens(path).at(-1) ?? ""));
|
|
53267
|
+
const named = byLeaf.length > 0 ? byLeaf : borrowed.filter((path) => pointerTokens(path).some(names));
|
|
53237
53268
|
const generic = /unknown|unrecognized|unsupported|not supported|not allowed|not permitted|extra (inputs|fields)|invalid (param|field|argument)/i.test(errorText);
|
|
53238
53269
|
const drop = named.length > 0 ? named : generic ? borrowed : [];
|
|
53239
53270
|
if (drop.length === 0)
|
|
@@ -53259,7 +53290,7 @@ function mergeWireHeaders(headers, extra) {
|
|
|
53259
53290
|
headers[key] = `${existing},${header.value}`;
|
|
53260
53291
|
}
|
|
53261
53292
|
}
|
|
53262
|
-
var WIRE_EFFORT_ORDER, WIRE_SPEEDS, TOKEN_LIMIT_FIELDS, DECISION_POINTERS, LIMIT_REQUIRED_APIS;
|
|
53293
|
+
var WIRE_EFFORT_ORDER, WIRE_SPEEDS, TOKEN_LIMIT_FIELDS, DECISION_POINTERS, INCLUDE_THOUGHTS_POINTER = "/generationConfig/thinkingConfig/includeThoughts", LIMIT_REQUIRED_APIS;
|
|
53263
53294
|
var init_wire_request = __esm(() => {
|
|
53264
53295
|
WIRE_EFFORT_ORDER = [
|
|
53265
53296
|
"none",
|
|
@@ -66635,6 +66666,19 @@ var init_devin_connect = __esm(() => {
|
|
|
66635
66666
|
init_devin_stream_head_sniffer();
|
|
66636
66667
|
});
|
|
66637
66668
|
|
|
66669
|
+
// src/handlers/shared/stream-parsers/gemini-usage.ts
|
|
66670
|
+
function geminiOutputTokens(usage) {
|
|
66671
|
+
const answer = usage?.candidatesTokenCount || 0;
|
|
66672
|
+
const thoughts = usage?.thoughtsTokenCount || 0;
|
|
66673
|
+
if (thoughts === 0)
|
|
66674
|
+
return answer;
|
|
66675
|
+
const total = usage?.totalTokenCount;
|
|
66676
|
+
if (typeof total !== "number")
|
|
66677
|
+
return answer + thoughts;
|
|
66678
|
+
const prompt = usage?.promptTokenCount || 0;
|
|
66679
|
+
return prompt + answer + thoughts <= total ? answer + thoughts : answer;
|
|
66680
|
+
}
|
|
66681
|
+
|
|
66638
66682
|
// src/handlers/shared/stream-parsers/gemini-sse.ts
|
|
66639
66683
|
function createGeminiSseStream(_c, response, opts) {
|
|
66640
66684
|
const encoder = new TextEncoder;
|
|
@@ -66706,7 +66750,7 @@ data: ${JSON.stringify(data)}
|
|
|
66706
66750
|
try {
|
|
66707
66751
|
log(`[GeminiSSE] Client cancelled the stream for ${opts.modelName} (loop ended: ${reason}); usage ${usage ? "reported" : "not received, not recorded"}`);
|
|
66708
66752
|
if (usage && opts.onTokenUpdate) {
|
|
66709
|
-
opts.onTokenUpdate(usage.promptTokenCount || 0, usage
|
|
66753
|
+
opts.onTokenUpdate(usage.promptTokenCount || 0, geminiOutputTokens(usage));
|
|
66710
66754
|
}
|
|
66711
66755
|
} finally {
|
|
66712
66756
|
teardown();
|
|
@@ -66729,7 +66773,7 @@ data: ${JSON.stringify(data)}
|
|
|
66729
66773
|
if (opts.raw)
|
|
66730
66774
|
await opts.raw.streamEnd();
|
|
66731
66775
|
const inputTokens = usage?.promptTokenCount || 0;
|
|
66732
|
-
const outputTokens = usage
|
|
66776
|
+
const outputTokens = geminiOutputTokens(usage);
|
|
66733
66777
|
if (usage) {
|
|
66734
66778
|
log(`[GeminiSSE] Usage: prompt=${inputTokens}, completion=${outputTokens}`);
|
|
66735
66779
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "14.28.
|
|
3
|
+
"version": "14.28.2",
|
|
4
4
|
"description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"ai"
|
|
75
75
|
],
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"@claudish/magmux-darwin-arm64": "14.28.
|
|
78
|
-
"@claudish/magmux-darwin-x64": "14.28.
|
|
79
|
-
"@claudish/magmux-linux-arm64": "14.28.
|
|
80
|
-
"@claudish/magmux-linux-x64": "14.28.
|
|
77
|
+
"@claudish/magmux-darwin-arm64": "14.28.2",
|
|
78
|
+
"@claudish/magmux-darwin-x64": "14.28.2",
|
|
79
|
+
"@claudish/magmux-linux-arm64": "14.28.2",
|
|
80
|
+
"@claudish/magmux-linux-x64": "14.28.2"
|
|
81
81
|
},
|
|
82
82
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
83
83
|
"license": "MIT",
|