@vibeapi/api-helper 0.0.110 → 0.0.111
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"revision": "2026-10-
|
|
3
|
+
"revision": "2026-10-21T07:44:19Z-7",
|
|
4
4
|
"min_client_version": "",
|
|
5
5
|
"upgrade_message": "",
|
|
6
6
|
"defaults": {
|
|
@@ -154,6 +154,16 @@
|
|
|
154
154
|
"hidden": false,
|
|
155
155
|
"context_window": 1000000
|
|
156
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"id": "deepseek-v4.1-flash-1017",
|
|
159
|
+
"name": "DeepSeek V4.1 Flash 1017",
|
|
160
|
+
"description": "100 万上下文 | 高速档",
|
|
161
|
+
"group": "",
|
|
162
|
+
"group_name": "",
|
|
163
|
+
"recommended": false,
|
|
164
|
+
"hidden": false,
|
|
165
|
+
"context_window": 1000000
|
|
166
|
+
},
|
|
157
167
|
{
|
|
158
168
|
"id": "deepseek-v4.1-flash",
|
|
159
169
|
"name": "DeepSeek V4.1 Flash",
|
|
@@ -161,7 +171,7 @@
|
|
|
161
171
|
"group": "",
|
|
162
172
|
"group_name": "",
|
|
163
173
|
"recommended": false,
|
|
164
|
-
"hidden":
|
|
174
|
+
"hidden": true,
|
|
165
175
|
"context_window": 1000000
|
|
166
176
|
},
|
|
167
177
|
{
|
|
@@ -363,6 +373,16 @@
|
|
|
363
373
|
"hidden": false,
|
|
364
374
|
"context_window": 1000000
|
|
365
375
|
},
|
|
376
|
+
{
|
|
377
|
+
"id": "deepseek-v4.1-flash-1017",
|
|
378
|
+
"name": "DeepSeek V4.1 Flash 1017",
|
|
379
|
+
"description": "100 万上下文 | 高速档",
|
|
380
|
+
"group": "",
|
|
381
|
+
"group_name": "",
|
|
382
|
+
"recommended": false,
|
|
383
|
+
"hidden": false,
|
|
384
|
+
"context_window": 1000000
|
|
385
|
+
},
|
|
366
386
|
{
|
|
367
387
|
"id": "deepseek-v4.1-flash",
|
|
368
388
|
"name": "DeepSeek V4.1 Flash",
|
|
@@ -370,7 +390,7 @@
|
|
|
370
390
|
"group": "",
|
|
371
391
|
"group_name": "",
|
|
372
392
|
"recommended": false,
|
|
373
|
-
"hidden":
|
|
393
|
+
"hidden": true,
|
|
374
394
|
"context_window": 1000000
|
|
375
395
|
},
|
|
376
396
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"revision": "2026-10-
|
|
3
|
+
"revision": "2026-10-21T07:44:19Z-7",
|
|
4
4
|
"min_client_version": "",
|
|
5
5
|
"upgrade_message": "",
|
|
6
6
|
"defaults": {
|
|
@@ -154,6 +154,16 @@
|
|
|
154
154
|
"hidden": false,
|
|
155
155
|
"context_window": 1000000
|
|
156
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"id": "deepseek-v4.1-flash-1017",
|
|
159
|
+
"name": "DeepSeek V4.1 Flash 1017",
|
|
160
|
+
"description": "100 万上下文 | 高速档",
|
|
161
|
+
"group": "",
|
|
162
|
+
"group_name": "",
|
|
163
|
+
"recommended": false,
|
|
164
|
+
"hidden": false,
|
|
165
|
+
"context_window": 1000000
|
|
166
|
+
},
|
|
157
167
|
{
|
|
158
168
|
"id": "deepseek-v4.1-flash",
|
|
159
169
|
"name": "DeepSeek V4.1 Flash",
|
|
@@ -161,7 +171,7 @@
|
|
|
161
171
|
"group": "",
|
|
162
172
|
"group_name": "",
|
|
163
173
|
"recommended": false,
|
|
164
|
-
"hidden":
|
|
174
|
+
"hidden": true,
|
|
165
175
|
"context_window": 1000000
|
|
166
176
|
},
|
|
167
177
|
{
|
|
@@ -363,6 +373,16 @@
|
|
|
363
373
|
"hidden": false,
|
|
364
374
|
"context_window": 1000000
|
|
365
375
|
},
|
|
376
|
+
{
|
|
377
|
+
"id": "deepseek-v4.1-flash-1017",
|
|
378
|
+
"name": "DeepSeek V4.1 Flash 1017",
|
|
379
|
+
"description": "100 万上下文 | 高速档",
|
|
380
|
+
"group": "",
|
|
381
|
+
"group_name": "",
|
|
382
|
+
"recommended": false,
|
|
383
|
+
"hidden": false,
|
|
384
|
+
"context_window": 1000000
|
|
385
|
+
},
|
|
366
386
|
{
|
|
367
387
|
"id": "deepseek-v4.1-flash",
|
|
368
388
|
"name": "DeepSeek V4.1 Flash",
|
|
@@ -370,7 +390,7 @@
|
|
|
370
390
|
"group": "",
|
|
371
391
|
"group_name": "",
|
|
372
392
|
"recommended": false,
|
|
373
|
-
"hidden":
|
|
393
|
+
"hidden": true,
|
|
374
394
|
"context_window": 1000000
|
|
375
395
|
},
|
|
376
396
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{spawnSync as t}from"child_process";import{existsSync as e,readFileSync as o}from"fs";import{dirname as n,join as i}from"path";import{fileURLToPath as s}from"url";import{logger as r}from"../../utils/logger.js";import{getCodexRules as l,compareVersions as a}from"../model-registry.js";import{autoCompactTokens as
|
|
1
|
+
import{spawnSync as t}from"child_process";import{existsSync as e,readFileSync as o}from"fs";import{dirname as n,join as i}from"path";import{fileURLToPath as s}from"url";import{logger as r}from"../../utils/logger.js";import{getCodexRules as l,compareVersions as a}from"../model-registry.js";import{autoCompactTokens as u,modelBlurb as c,prettyModelName as d}from"../gateway-models.js";import{toolHome as p}from"./types.js";import{brandEnv as _,PROVIDER_KEY as m}from"../brand.js";const f=n(s(import.meta.url));export const CODEX_CATALOG_FILE=`${m}-model-catalog.json`;export const codexCatalogPath=()=>i(p(),".codex",CODEX_CATALOG_FILE);function x(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}function g(t){try{const e=JSON.parse(t),o=x(e)&&Array.isArray(e.models)?e.models.filter(x):[];return o.length>0?o:null}catch{return null}}export function loadBundledCodexModels(){for(const o of function(){const t=_("CODEX_BIN");if(void 0!==t)return t.trim()?[t.trim()]:[];const e=["codex"];if("win32"===process.platform){const t=process.env.LOCALAPPDATA||i(p(),"AppData","Local");e.push(i(t,"Programs","OpenAI","Codex","bin","codex.exe"))}else e.push(i(p(),".local","bin","codex"));if("darwin"===process.platform)for(const t of["/Applications",i(p(),"Applications")])e.push(i(t,"ChatGPT.app/Contents/Resources/codex-cli/bin/codex")),e.push(i(t,"Codex.app/Contents/Resources/codex"));return e}()){if("codex"!==o&&!e(o))continue;const n={encoding:"utf-8",timeout:2e4,maxBuffer:67108864,windowsHide:!0,stdio:["ignore","pipe","pipe"]},i="win32"===process.platform&&"codex"===o?t("codex debug models --bundled",{...n,shell:!0}):t(o,["debug","models","--bundled"],n);if(0===i.status&&i.stdout){const t=g(i.stdout);if(t)return t}(i.error||0!==i.status)&&r.logError("loadBundledCodexModels",i.error??new Error(`${o} exited ${i.status}`))}return null}export function loadPreviousCodexModels(){const t=w()?.filter(t=>!h(t));return t&&t.length>0?t:null}export function previousGatewayModelIds(){return(w()??[]).filter(h).map(t=>String(t.slug))}function w(){return e(codexCatalogPath())?g(o(codexCatalogPath(),"utf-8")):null}function h(t){return"number"==typeof t.priority&&t.priority>=1e3}let y=null;function b(){if(null!==y)return y;const t=[i(f,"..","..","..","codex-base-instructions.md"),i(f,"..","..","codex-base-instructions.md"),i(f,"codex-base-instructions.md")],n=t.find(t=>e(t));if(!n)throw new Error(`codex-base-instructions.md not found, searched: ${t.join(", ")}`);return y=o(n,"utf-8"),y}function C(t){return"number"==typeof t&&Number.isFinite(t)&&t>0?t:void 0}function v(t,e,o,n){const i=o?t:Math.min(t,e);return{window:i,compact:u(i,n)}}function A(t,e,o,n){const{standardContextWindow:i}=l();let s=C(t.contextWindow)??i;n&&t.id.startsWith("claude-")&&(s=n.has(t.id)?Math.max(s,1e6):Math.min(s,2e5));const{window:r,compact:a}=v(s,i,o,C(t.autoCompactTokens));return{slug:t.id,display_name:t.name||d(t.id),description:c(t.description,{millionContext:r>=1e6})??null,supported_reasoning_levels:[],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:e,additional_speed_tiers:[],service_tiers:[],availability_nux:null,upgrade:null,model_messages:{instructions_template:b()},base_instructions:b(),supports_reasoning_summaries:!0,supports_parallel_tool_calls:!1,prefer_websockets:!1,include_skills_usage_instructions:!1,include_plugin_usage_instructions:!1,include_apps_usage_instructions:!1,default_reasoning_summary:"auto",support_verbosity:!1,default_verbosity:null,apply_patch_tool_type:null,web_search_tool_type:"text",truncation_policy:{mode:"bytes",limit:1e4},supports_image_detail_original:!1,context_window:r,max_context_window:r,auto_compact_token_limit:a,effective_context_window_percent:95,experimental_supported_tools:[],input_modalities:["text","image"],supports_search_tool:!1,supports_experimental_context:!1,use_responses_lite:!1,supports_reasoning_effort_updates:!1,node_repl_auto_review_required:!1,node_repl_disabled:!1}}const M={supports_parallel_tool_calls:!0,supports_reasoning_summaries:!0};function O(t,e,o){if("list"!==(t=function(t){const e=Object.keys(M).filter(e=>!(e in t));return 0===e.length?t:{...t,...Object.fromEntries(e.map(t=>[t,M[t]]))}}(t)).visibility)return t;const n=C(t.context_window);if(!n)return t;const i=C(t.max_context_window)??n,s=o?Math.min(C(e?.contextWindow)??i,i):n,{window:r,compact:l}=v(s,n,!0,C(e?.autoCompactTokens));return{...t,context_window:r,auto_compact_token_limit:l}}export function buildCodexCatalog(t){const{bundled:e,specs:o,oneMillion:n,selectedModel:i}=t,s=t.claudeOneMillion?new Set(t.claudeOneMillion):void 0,r=t.keyModels?new Set(t.keyModels):null,l=new Set(t.gatewayAvailable),u=t=>!r||r.has(t)||t===i,c=t=>l.has(t)||t===i,d=new Map(o.map(t=>[t.id,t])),p=[],_=new Set;for(const t of e){const e="string"==typeof t.slug?t.slug:"";e&&!_.has(e)&&("list"!==t.visibility||u(e))&&(_.add(e),p.push(O(t,d.get(e),n)))}const m=[...o];i&&!d.has(i)&&m.push({id:i});const f=function(t){const e=new Map;for(const o of t){const t=/^claude-([a-z]+)-(.+)$/.exec(o);if(!t)continue;const n=t[2].split("-").filter(t=>/^\d{1,2}$/.test(t)).join("."),i=e.get(t[1]);(!i||a(n,i.version)>0)&&e.set(t[1],{id:o,version:n})}return new Set([...e.values()].map(t=>t.id))}(m.map(t=>t.id).filter(c));for(const t of m)!_.has(t.id)&&c(t.id)&&(t.id.startsWith("claude-")&&!f.has(t.id)&&t.id!==i||(_.add(t.id),p.push(A(t,1e3+p.length,n,s))));return{models:p}}
|
package/dist/models.json
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"gatewayModels": {
|
|
78
78
|
"autoCompactRatio": 0.8,
|
|
79
|
-
"retired": ["deepseek-v4-flash", "glm-5.2", "qwen3.7-max", "qwen3.7-plus"],
|
|
79
|
+
"retired": ["deepseek-v4-flash", "deepseek-v4.1-flash", "glm-5.2", "qwen3.7-max", "qwen3.7-plus"],
|
|
80
80
|
"models": [
|
|
81
81
|
{
|
|
82
82
|
"id": "claude-opus-5-5",
|
|
@@ -223,8 +223,8 @@
|
|
|
223
223
|
"contextWindow": 1000000
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
"id": "deepseek-v4.1-flash",
|
|
227
|
-
"name": "DeepSeek V4.1 Flash",
|
|
226
|
+
"id": "deepseek-v4.1-flash-1017",
|
|
227
|
+
"name": "DeepSeek V4.1 Flash 1017",
|
|
228
228
|
"description": "100 万上下文 | 高速档",
|
|
229
229
|
"contextWindow": 1000000
|
|
230
230
|
},
|
package/models.json
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"gatewayModels": {
|
|
78
78
|
"autoCompactRatio": 0.8,
|
|
79
|
-
"retired": ["deepseek-v4-flash", "glm-5.2", "qwen3.7-max", "qwen3.7-plus"],
|
|
79
|
+
"retired": ["deepseek-v4-flash", "deepseek-v4.1-flash", "glm-5.2", "qwen3.7-max", "qwen3.7-plus"],
|
|
80
80
|
"models": [
|
|
81
81
|
{
|
|
82
82
|
"id": "claude-opus-5-5",
|
|
@@ -223,8 +223,8 @@
|
|
|
223
223
|
"contextWindow": 1000000
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
"id": "deepseek-v4.1-flash",
|
|
227
|
-
"name": "DeepSeek V4.1 Flash",
|
|
226
|
+
"id": "deepseek-v4.1-flash-1017",
|
|
227
|
+
"name": "DeepSeek V4.1 Flash 1017",
|
|
228
228
|
"description": "100 万上下文 | 高速档",
|
|
229
229
|
"contextWindow": 1000000
|
|
230
230
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibeapi/api-helper",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.111",
|
|
4
4
|
"description": "CLI tool for managing AI coding assistants (Claude Code, Codex, OpenClaw, Hermes, AtomCode, Grok Build) with one unified config",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|