@tokenbuddy/tokenbuddy 1.0.37 → 1.0.39
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/dist/src/buyer-store.d.ts +1 -1
- package/dist/src/buyer-store.js +3 -3
- package/dist/src/cli.d.ts +1 -0
- package/dist/src/cli.js +66 -5
- package/dist/src/daemon.d.ts +23 -5
- package/dist/src/daemon.js +606 -9
- package/dist/src/provider-install.d.ts +3 -0
- package/dist/src/provider-install.js +506 -85
- package/dist/src/workdir.d.ts +10 -0
- package/dist/src/workdir.js +26 -0
- package/package.json +2 -2
- package/static/ui/assets/index-BAwWDK4H.js +271 -0
- package/static/ui/assets/index-DM9SnAfj.css +1 -0
- package/static/ui/index.html +2 -2
- package/static/ui/assets/index-Djfl9tw5.js +0 -271
- package/static/ui/assets/index-DkfztCkn.css +0 -1
|
@@ -19,6 +19,7 @@ export interface SingleModelProviderRuntimeConfig {
|
|
|
19
19
|
selectionKind: "single-model";
|
|
20
20
|
protocolPreference?: ProtocolPreference;
|
|
21
21
|
defaultModel: string;
|
|
22
|
+
availableModelsByProtocol?: Partial<Record<ProtocolPreference, string[]>>;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* Claude Code role 绑定:把 buyer 端的 `haiku/sonnet/opus` 角色映射到具体上游模型。
|
|
@@ -155,6 +156,8 @@ export declare function applyProviderInstall(options: ProviderInstallOptions, st
|
|
|
155
156
|
/**
|
|
156
157
|
* 回滚 provider 安装。
|
|
157
158
|
* 从 `store` 读取安装前的快照,恢复原文件(如果快照里有原始内容)。
|
|
159
|
+
* 恢复后仍会执行 provider cleanup,确保 repeated apply 或旧 TokenBuddy
|
|
160
|
+
* 配置升级后的 disconnect 语义是移除 TokenBuddy,而不是恢复旧 TokenBuddy。
|
|
158
161
|
* 没有快照的 provider 标记为 `missing_snapshot`。
|
|
159
162
|
*
|
|
160
163
|
* @param options 回滚选项
|