atomix-cli 1.1.0 → 1.2.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.
package/dist/session.d.ts CHANGED
@@ -104,12 +104,28 @@ export interface SendOptions {
104
104
  timeoutMs?: number;
105
105
  signal?: AbortSignal;
106
106
  }
107
+ /** 本会话实际使用的模型(harness-model-v1 §1.5):生效值;`fallback` 列出 harness 声明但不存在、已回落 base 的槽位及声明值 */
108
+ export interface SessionModelInfo {
109
+ main: string;
110
+ quick: string;
111
+ fallback?: {
112
+ main?: string;
113
+ quick?: string;
114
+ };
115
+ /** 各槽位显式配置的温度(harness 覆盖或 profile 值);走协议默认 / 模型侧固定的槽位不出现。整体缺省 = 全部默认 */
116
+ temperature?: {
117
+ main?: number;
118
+ quick?: number;
119
+ };
120
+ }
107
121
  export interface AtomixSession<C extends SessionCoreApi = SessionCoreApi> {
108
122
  readonly core: C;
109
123
  readonly sessionId: string;
110
124
  readonly cwd: string;
111
125
  readonly harness: string;
112
126
  readonly permissionMode: PermissionMode;
127
+ /** 生效模型(harness 覆盖优先;随 /harness use 变化,每次读取现算) */
128
+ readonly model: SessionModelInfo;
113
129
  /** session:ready 原始数据(交互入口要 projectInputHistory) */
114
130
  readonly ready: SessionReadyInfo;
115
131
  /** harness 加载告警、agent 名单应用失败、MCP override 备注、构造期备注 */
@@ -259,6 +275,7 @@ export interface ServeSessionInfo {
259
275
  cwd: string;
260
276
  harness: string;
261
277
  permissionMode: PermissionMode;
278
+ model: SessionModelInfo;
262
279
  /** 进行中 + 排队中的 send 数 */
263
280
  pending: number;
264
281
  }