@peer-agent/protocol 0.0.16 → 0.0.18

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/index.d.ts CHANGED
@@ -619,6 +619,7 @@ export interface LlmModelInfo {
619
619
  readonly modelOptionValues?: LlmModelOptionValues;
620
620
  readonly supportsVision?: boolean;
621
621
  readonly supportsReasoning?: boolean;
622
+ readonly reasoningEffortValues?: readonly string[];
622
623
  readonly metadataSource?: 'provider' | 'models.dev';
623
624
  readonly pricingSource?: 'provider' | 'models.dev-reference';
624
625
  readonly inputPrice?: number;
package/dist/updater.d.ts CHANGED
@@ -14,14 +14,9 @@ export type UpdateChannel = 'beta' | 'stable';
14
14
  */
15
15
  export type UpdateChannelPreference = 'auto' | UpdateChannel;
16
16
  /** 更新流程阶段。渲染层据此切换徽标红点 / 摘要弹窗 / 下载进度 / 安装态的表达。 */
17
- export type UpdaterPhase = 'idle' | 'checking' | 'available' | 'not-available' | 'downloading' | 'downloaded'
18
- /**
19
- * mac 专用完成态:应用为 ad-hoc 签名,无法走 Squirrel 的「下载→签名校验→原子替换」
20
- * 自动安装链路,因此主进程自管下载 dmg 后停在此态,由用户在弹窗点击「打开安装包」,
21
- * 主进程 shell.openPath(dmg) 打开挂载,用户手动拖入「应用程序」覆盖安装。
22
- * 与 'downloaded'(Windows 重启安装)语义互斥。
23
- */
24
- | 'ready-to-open' | 'error';
17
+ export type UpdaterPhase = 'idle' | 'checking' | 'available' | 'not-available' | 'downloading'
18
+ /** 更新已下载,等待用户点击「安装」后退出替换并重启(mac / Windows / Linux AppImage 同一语义)。 */
19
+ | 'downloaded' | 'error';
25
20
  /** 主进程向渲染层广播的更新事件(与 auto-updater 的 onEvent 一一对应)。 */
26
21
  export interface UpdaterEvent {
27
22
  readonly type: 'checking-for-update' | 'update-available' | 'update-not-available' | 'download-progress' | 'update-downloaded' | 'error';
@@ -31,6 +26,8 @@ export interface UpdaterEvent {
31
26
  readonly percent?: number;
32
27
  /** 错误信息(error 时携带)。 */
33
28
  readonly message?: string;
29
+ /** 手动下载兜底的 Release 页面 URL(error 且已知可用版本时携带)。 */
30
+ readonly releaseUrl?: string;
34
31
  /** 更新说明 / release notes(available / downloaded 时可能携带)。 */
35
32
  readonly releaseNotes?: string;
36
33
  }
@@ -55,12 +52,7 @@ export interface UpdaterStatus {
55
52
  /** 更新说明 / release notes。 */
56
53
  readonly releaseNotes?: string;
57
54
  /**
58
- * mac 自管下载完成的安装包(dmg)本地绝对路径,仅 phase='ready-to-open' 时存在。
59
- * 渲染层据此启用「打开安装包」按钮(实际打开动作仍在主进程 shell.openPath 执行)。
60
- */
61
- readonly installerPath?: string;
62
- /**
63
- * 兜底用的 GitHub Release 页面 URL。当 mac 自管下载因资产缺失/命名漂移失败时,
55
+ * 兜底用的 GitHub Release 页面 URL。下载、签名校验或替换安装失败时,
64
56
  * 主进程置 phase='error' 并提供此链接,渲染层展示「打开 Release 页面」按钮。
65
57
  */
66
58
  readonly releaseUrl?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peer-agent/protocol",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "Shared host-neutral protocol contracts for Peer Agent runtimes and clients.",
5
5
  "type": "module",
6
6
  "license": "MIT",