@tscgoods/antigravity-effort-discovery 0.4.6 → 0.5.0

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.
Files changed (3) hide show
  1. package/README.md +17 -2
  2. package/package.json +1 -1
  3. package/plugin.json +1 -1
package/README.md CHANGED
@@ -47,9 +47,24 @@ node packages\antigravity\scripts\probe.mjs --agy --json
47
47
 
48
48
  provider 来自共享配置 `~/.config/effort-discovery.json`(默认第一个 `api: "openai"` 的 provider,可用 `--provider` 指定),结果缓存到 `~/.cache/effort-discovery/antigravity.json`。
49
49
 
50
- ## 在非 Gemini 网关上使用模型:`emit-custom-models`
50
+ ## 在非 Gemini 网关上使用模型:`emit-custom-models`(实验结果:未生效,⚠️)
51
51
 
52
- agy 内置目录主要是 Gemini 系列。要让它用上你的 OpenAI 兼容网关模型,需要 `customModelsConfig`(仅当 `modelProvider: "gemini"` + `GEMINI_API_KEY` 时生效):
52
+ > **实测结论(agy 1.5.14)**:以下写法在账号登录和 Gemini API key 两种模式下都试过,还额外试了 `--settings` 内联、4 种 URL scheme(`gemini-api://` / `blade:` / `evergreen:` / `beyond-api://`)和多种键名(`customModelsConfig` / `custom_models_config` / `customModels`)——`customModelsConfig` 里的条目**始终没有出现在 `agy models` / `/model` 里**。二进制里确实有 `customModelsConfig` proto 字段,但这个版本没有从我们尝试的任何配置入口读取它。因此**不要依赖下面的生成器**,它目前只能作为"生成的片段长什么样"的参考。
53
+
54
+ 实测中写入的 10 条 `customModels` 已经从 `~/.gemini/antigravity-cli/settings.json` 清理干净(保留了写前的 `.bak`),用户当前模型选择未变。
55
+
56
+ **插件真正能做且已验证的部分**:
57
+
58
+ | 能力 | 状态 |
59
+ |---|---|
60
+ | `SessionStart` 注入内置模型的权威档位(如 Gemini 3.8 Flash → low/medium/high) | ✅ |
61
+ | `/effort-probe` 技能:并排展示网关实测与 agy 自报档位 | ✅ |
62
+ | `PreInvocation` 提醒不要使用不支持的档位 | ✅ |
63
+ | 把网关模型加进 agy 的 `/model` 菜单 | ❌ agy 1.5.14 限制 |
64
+
65
+ 换句话说:agy 自带的模型(Gemini / Claude / GPT-OSS)的档位信息插件能正确报告;但 agy 的 `--effort` 枚举和模型列表都是内置目录驱动的,插件改不了,网关模型也塞不进去。
66
+
67
+ agy 内置目录主要是 Gemini 系列。理论上要用你的 OpenAI 兼容网关模型,需要 `customModelsConfig`(仅当 `modelProvider: "gemini"` + API key 时生效):
53
68
 
54
69
  ```powershell
55
70
  node "$p\scripts\emit-custom-models.mjs" # 只输出 JSON 片段(dry-run)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscgoods/antigravity-effort-discovery",
3
- "version": "0.4.6",
3
+ "version": "0.5.0",
4
4
  "description": "Antigravity CLI plugin: probe which reasoning-effort levels your gateway accepts, inject the result into sessions, and optionally generate customModels entries.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "effort-discovery",
3
3
  "displayName": "Effort Discovery",
4
- "version": "0.3.0",
4
+ "version": "0.5.0",
5
5
  "description": "Probe the gateway for the reasoning-effort levels a model really accepts, inject the result into sessions, and optionally generate customModels entries.",
6
6
  "author": "tscgoods",
7
7
  "homepage": "https://github.com/lxgy1024/effort-discovery",