dsh-agy-link 0.6.6 → 0.6.7

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.7 (2026-11-08)
4
+
5
+ ### English
6
+
7
+ - **Fix(config): the model context window and output cap are set via env, so a 256K model stops showing as 1M (issue #83).**
8
+ - `contextWindowDefault` / `maxTokensDefault` drive DSH's per-model `context.contextWindow` — and therefore the "context used %" tooltip — but agy's model list carries no window, and neither key was exposed through an env var or the settings UI. A user whose model is really 262 144 tokens could only see the 1 048 576 default.
9
+ - `DSH_AGY_CONTEXT_WINDOW` and `DSH_AGY_MAX_TOKENS` now override them (positive integers only; invalid values fall back), with README rows in 中文 and English.
10
+
11
+ ### 中文
12
+
13
+ - **修复(config):模型上下文窗口与输出上限可用环境变量设置,256K 模型不再显示成 1M(issue #83)。**
14
+ - `contextWindowDefault` / `maxTokensDefault` 决定上报给 DSH 的每模型 `context.contextWindow`(也就是「上下文已用 %」浮层),但 agy 的模型列表不上报窗口,且这两个键此前既没有环境变量也没有设置面板入口——真实窗口是 262144 的用户只能看到 1048576 的默认值。
15
+ - 现支持 `DSH_AGY_CONTEXT_WINDOW` / `DSH_AGY_MAX_TOKENS`(仅接受正整数,非法值回落),并在中英 README 配置表中补充说明。
16
+
17
+ **Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.6.6...v0.6.7
18
+
3
19
  ## 0.6.6 (2026-11-08)
4
20
 
5
21
  ### English
package/README.md CHANGED
@@ -162,6 +162,8 @@ dsh plugin --profile web add dsh-agy-link
162
162
  | `hiddenModels` | `DSH_AGY_HIDDEN_MODELS` | `[]` | 在 `/model` 选择器中隐藏的模型 slug 列表(黑名单语义,新模型默认可见;建议直接在设置面板"模型显示"中点选管理) |
163
163
  | `timeoutMs` | `DSH_AGY_TIMEOUT_MS` | `600000` | 单轮活跃看门狗超时(毫秒) |
164
164
  | `longToolIdleMinutes` | `DSH_AGY_LONG_TOOL_IDLE_MINUTES` | `240` | 存在未完成工具步骤(ACTIVE)时的空闲预算(分钟);`0` = 不抬高预算,卡死的工具按 `timeoutMs` 快速失败 |
165
+ | `contextWindowDefault` | `DSH_AGY_CONTEXT_WINDOW` | `1048576` | 上报给 DSH 的模型上下文窗口(token)。agy 的模型列表不上报窗口,所以统一用该值;若你的模型实际是 256K(如部分 Claude/Gemini 配置),设为 `262144` 即可让「上下文已用 %」正确 |
166
+ | `maxTokensDefault` | `DSH_AGY_MAX_TOKENS` | `65536` | 单次输出 token 上限(上报给 DSH) |
165
167
  | `workspaceRoot` | `DSH_AGY_WORKSPACE_ROOT` | 会话 cwd | agy 工作区根目录(默认跟随当前会话工作区) |
166
168
  | `proxyUrl` | `DSH_AGY_PROXY_URL` | 空字符串 | 全局代理 URL;若在控制台中单独配置了代理,优先使用账号独立代理 |
167
169
  | `suppressAgyAutoUpdate` | `DSH_AGY_SUPPRESS_AUTOUPDATE` | Windows `true`,其他平台 `false` | 每次 spawn 前刷新 agy 的更新检查时间戳,阻断 `--bg-updater` 子进程链(Windows 闪窗根因)。关闭后 agy 恢复自动更新检查 |
@@ -393,6 +395,8 @@ dsh plugin --profile web add dsh-agy-link
393
395
  | `hiddenModels` | `DSH_AGY_HIDDEN_MODELS` | `[]` | Model slugs hidden from the `/model` picker (deny-list, newly discovered models stay visible; manage them via the "Model visibility" row in the settings panel) |
394
396
  | `timeoutMs` | `DSH_AGY_TIMEOUT_MS` | `600000` | Activity watchdog timeout in milliseconds |
395
397
  | `longToolIdleMinutes` | `DSH_AGY_LONG_TOOL_IDLE_MINUTES` | `240` | Idle budget while a tool step is ACTIVE (minutes); `0` keeps the normal `timeoutMs` budget so wedged tools fail fast |
398
+ | `contextWindowDefault` | `DSH_AGY_CONTEXT_WINDOW` | `1048576` | Model context window (tokens) reported to DSH. agy's model list carries no window, so this single value is used for every model; if yours is really 256K, set `262144` and the "context used %" becomes correct |
399
+ | `maxTokensDefault` | `DSH_AGY_MAX_TOKENS` | `65536` | Output token cap reported to DSH |
396
400
  | `workspaceRoot` | `DSH_AGY_WORKSPACE_ROOT` | session cwd | Working directory root |
397
401
  | `proxyUrl` | `DSH_AGY_PROXY_URL` | empty string | Global proxy URL; per-account proxies configured in console take precedence |
398
402
  | `suppressAgyAutoUpdate` | `DSH_AGY_SUPPRESS_AUTOUPDATE` | `true` on Windows, `false` elsewhere | Refreshes agy's update-check timestamp before every spawn so its `--bg-updater` child chain (the Windows console-flash root cause) never starts. `false` restores agy's own auto-update checks |
package/dist/index.js CHANGED
@@ -605,6 +605,14 @@ function resolveConfig(entry, env = process.env, overrides = readOverrides()) {
605
605
  const t = asNum(env.DSH_AGY_LONG_TOOL_IDLE_MINUTES);
606
606
  if (t !== void 0 && t >= 0) cfg.longToolIdleMinutes = t;
607
607
  }
608
+ if (env.DSH_AGY_CONTEXT_WINDOW) {
609
+ const w = asNum(env.DSH_AGY_CONTEXT_WINDOW);
610
+ if (w !== void 0 && w > 0) cfg.contextWindowDefault = Math.floor(w);
611
+ }
612
+ if (env.DSH_AGY_MAX_TOKENS) {
613
+ const m = asNum(env.DSH_AGY_MAX_TOKENS);
614
+ if (m !== void 0 && m > 0) cfg.maxTokensDefault = Math.floor(m);
615
+ }
608
616
  if (env.DSH_AGY_EXTRA_ARGS) cfg.extraArgs = env.DSH_AGY_EXTRA_ARGS.split(/\s+/).filter(Boolean);
609
617
  if (env.DSH_AGY_HIDDEN_MODELS) {
610
618
  const list = asStringArray(env.DSH_AGY_HIDDEN_MODELS.split(","));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-agy-link",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Google Antigravity (agy CLI) models for DeepSeek Harness — stream Gemini/Claude/GPT-OSS subscriptions into DSH with thinking, tool activity, token usage and in-GUI Google OAuth login.",
5
5
  "type": "module",
6
6
  "license": "MIT",