@ai-matrx/desktop-protocol 0.17.6 → 0.17.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-B9tM6Hnx.js';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-B9tM6Hnx.js';
2
+ import { O as OpName } from './models-Os6toG3X.js';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-Os6toG3X.js';
4
4
  export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.js';
5
5
 
6
6
  /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
@@ -24,9 +24,9 @@ declare const PROTOCOL_MAJOR: 1;
24
24
  * 1.9 — chats placed in windows / held, several filed at once, projects renamed / archived / copied;
25
25
  * the list says when it is a saved copy being re-read (`updating`) and when it is not live.
26
26
  */
27
- declare const PROTOCOL_MINOR: 10;
27
+ declare const PROTOCOL_MINOR: 11;
28
28
  /** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
29
- declare const PROTOCOL_VERSION: "1.10";
29
+ declare const PROTOCOL_VERSION: "1.11";
30
30
  /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
31
31
  declare const u32: z.ZodInt;
32
32
  declare const nonNegInt: z.ZodInt;
@@ -2020,6 +2020,344 @@ declare const AppsProjectsImportPinsResult: z.ZodObject<{
2020
2020
  message: z.ZodString;
2021
2021
  }, z.core.$strict>;
2022
2022
  type AppsProjectsImportPinsResult = z.output<typeof AppsProjectsImportPinsResult>;
2023
+ /** A chat waiting for the person, with when its prompt cache goes cold and what waking it costs (API list prices, USD). */
2024
+ declare const ColdChat: z.ZodObject<{
2025
+ id: z.ZodString;
2026
+ title: z.ZodString;
2027
+ repo: z.ZodNullable<z.ZodString>;
2028
+ window: z.ZodNullable<z.ZodString>;
2029
+ account: z.ZodNullable<z.ZodString>;
2030
+ model_name: z.ZodNullable<z.ZodString>;
2031
+ context_tokens: z.ZodInt;
2032
+ cold_at_ms: z.ZodInt;
2033
+ cold_cost: z.ZodNullable<z.ZodNumber>;
2034
+ warm_cost: z.ZodNullable<z.ZodNumber>;
2035
+ extra_usage: z.ZodBoolean;
2036
+ scheduled: z.ZodBoolean;
2037
+ openable: z.ZodBoolean;
2038
+ how: z.ZodNullable<z.ZodString>;
2039
+ }, z.core.$strict>;
2040
+ type ColdChat = z.output<typeof ColdChat>;
2041
+ declare const AppsChatsColdParams: z.ZodObject<{
2042
+ app_key: z.ZodString;
2043
+ }, z.core.$strict>;
2044
+ type AppsChatsColdParams = z.output<typeof AppsChatsColdParams>;
2045
+ declare const AppsChatsColdResult: z.ZodObject<{
2046
+ app_key: z.ZodString;
2047
+ waiting: z.ZodArray<z.ZodObject<{
2048
+ id: z.ZodString;
2049
+ title: z.ZodString;
2050
+ repo: z.ZodNullable<z.ZodString>;
2051
+ window: z.ZodNullable<z.ZodString>;
2052
+ account: z.ZodNullable<z.ZodString>;
2053
+ model_name: z.ZodNullable<z.ZodString>;
2054
+ context_tokens: z.ZodInt;
2055
+ cold_at_ms: z.ZodInt;
2056
+ cold_cost: z.ZodNullable<z.ZodNumber>;
2057
+ warm_cost: z.ZodNullable<z.ZodNumber>;
2058
+ extra_usage: z.ZodBoolean;
2059
+ scheduled: z.ZodBoolean;
2060
+ openable: z.ZodBoolean;
2061
+ how: z.ZodNullable<z.ZodString>;
2062
+ }, z.core.$strict>>;
2063
+ recently_cold: z.ZodArray<z.ZodObject<{
2064
+ id: z.ZodString;
2065
+ title: z.ZodString;
2066
+ repo: z.ZodNullable<z.ZodString>;
2067
+ window: z.ZodNullable<z.ZodString>;
2068
+ account: z.ZodNullable<z.ZodString>;
2069
+ model_name: z.ZodNullable<z.ZodString>;
2070
+ context_tokens: z.ZodInt;
2071
+ cold_at_ms: z.ZodInt;
2072
+ cold_cost: z.ZodNullable<z.ZodNumber>;
2073
+ warm_cost: z.ZodNullable<z.ZodNumber>;
2074
+ extra_usage: z.ZodBoolean;
2075
+ scheduled: z.ZodBoolean;
2076
+ openable: z.ZodBoolean;
2077
+ how: z.ZodNullable<z.ZodString>;
2078
+ }, z.core.$strict>>;
2079
+ working: z.ZodInt;
2080
+ }, z.core.$strict>;
2081
+ type AppsChatsColdResult = z.output<typeof AppsChatsColdResult>;
2082
+ /** Show one chat in its window (Claude's own "Continue session" link, sent to that window only); never sends it anything. */
2083
+ declare const AppsChatsOpenParams: z.ZodObject<{
2084
+ app_key: z.ZodString;
2085
+ chat_id: z.ZodString;
2086
+ window: z.ZodOptional<z.ZodString>;
2087
+ }, z.core.$strict>;
2088
+ type AppsChatsOpenParams = z.output<typeof AppsChatsOpenParams>;
2089
+ /** Main conversation and helpers, USD at API list prices. */
2090
+ declare const SpendSplit: z.ZodObject<{
2091
+ main: z.ZodNumber;
2092
+ helpers: z.ZodNumber;
2093
+ }, z.core.$strict>;
2094
+ type SpendSplit = z.output<typeof SpendSplit>;
2095
+ declare const SpendScopes: z.ZodObject<{
2096
+ today: z.ZodObject<{
2097
+ main: z.ZodNumber;
2098
+ helpers: z.ZodNumber;
2099
+ }, z.core.$strict>;
2100
+ week: z.ZodObject<{
2101
+ main: z.ZodNumber;
2102
+ helpers: z.ZodNumber;
2103
+ }, z.core.$strict>;
2104
+ }, z.core.$strict>;
2105
+ type SpendScopes = z.output<typeof SpendScopes>;
2106
+ declare const SpendAccount: z.ZodObject<{
2107
+ account: z.ZodString;
2108
+ spend: z.ZodObject<{
2109
+ today: z.ZodObject<{
2110
+ main: z.ZodNumber;
2111
+ helpers: z.ZodNumber;
2112
+ }, z.core.$strict>;
2113
+ week: z.ZodObject<{
2114
+ main: z.ZodNumber;
2115
+ helpers: z.ZodNumber;
2116
+ }, z.core.$strict>;
2117
+ }, z.core.$strict>;
2118
+ last_hour: z.ZodNullable<z.ZodNumber>;
2119
+ last_5h: z.ZodNullable<z.ZodNumber>;
2120
+ five_hour: z.ZodNullable<z.ZodNumber>;
2121
+ weekly: z.ZodNullable<z.ZodNumber>;
2122
+ as_of_ms: z.ZodNullable<z.ZodInt>;
2123
+ weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
2124
+ five_hour_full_at_ms: z.ZodNullable<z.ZodInt>;
2125
+ weekly_full_at_ms: z.ZodNullable<z.ZodInt>;
2126
+ stale: z.ZodBoolean;
2127
+ }, z.core.$strict>;
2128
+ type SpendAccount = z.output<typeof SpendAccount>;
2129
+ declare const SpendModel: z.ZodObject<{
2130
+ model: z.ZodString;
2131
+ name: z.ZodString;
2132
+ spend: z.ZodObject<{
2133
+ today: z.ZodObject<{
2134
+ main: z.ZodNumber;
2135
+ helpers: z.ZodNumber;
2136
+ }, z.core.$strict>;
2137
+ week: z.ZodObject<{
2138
+ main: z.ZodNumber;
2139
+ helpers: z.ZodNumber;
2140
+ }, z.core.$strict>;
2141
+ }, z.core.$strict>;
2142
+ }, z.core.$strict>;
2143
+ type SpendModel = z.output<typeof SpendModel>;
2144
+ declare const SpendChat: z.ZodObject<{
2145
+ id: z.ZodString;
2146
+ title: z.ZodString;
2147
+ repo: z.ZodNullable<z.ZodString>;
2148
+ window: z.ZodNullable<z.ZodString>;
2149
+ spend: z.ZodObject<{
2150
+ today: z.ZodObject<{
2151
+ main: z.ZodNumber;
2152
+ helpers: z.ZodNumber;
2153
+ }, z.core.$strict>;
2154
+ week: z.ZodObject<{
2155
+ main: z.ZodNumber;
2156
+ helpers: z.ZodNumber;
2157
+ }, z.core.$strict>;
2158
+ }, z.core.$strict>;
2159
+ helpers: z.ZodInt;
2160
+ }, z.core.$strict>;
2161
+ type SpendChat = z.output<typeof SpendChat>;
2162
+ declare const SpendHelper: z.ZodObject<{
2163
+ model: z.ZodString;
2164
+ steps: z.ZodInt;
2165
+ over_steps: z.ZodBoolean;
2166
+ description: z.ZodString;
2167
+ }, z.core.$strict>;
2168
+ type SpendHelper = z.output<typeof SpendHelper>;
2169
+ declare const SpendLive: z.ZodObject<{
2170
+ id: z.ZodString;
2171
+ title: z.ZodString;
2172
+ window: z.ZodNullable<z.ZodString>;
2173
+ helpers: z.ZodArray<z.ZodObject<{
2174
+ model: z.ZodString;
2175
+ steps: z.ZodInt;
2176
+ over_steps: z.ZodBoolean;
2177
+ description: z.ZodString;
2178
+ }, z.core.$strict>>;
2179
+ }, z.core.$strict>;
2180
+ type SpendLive = z.output<typeof SpendLive>;
2181
+ declare const SpendIdleScope: z.ZodObject<{
2182
+ count: z.ZodInt;
2183
+ tokens: z.ZodInt;
2184
+ cost: z.ZodNumber;
2185
+ avoidable: z.ZodNumber;
2186
+ }, z.core.$strict>;
2187
+ type SpendIdleScope = z.output<typeof SpendIdleScope>;
2188
+ /** Idle cache re-saves, grouped by chat and by who re-saved (the chat itself or one helper). */
2189
+ declare const SpendIdle: z.ZodObject<{
2190
+ id: z.ZodString;
2191
+ chat: z.ZodString;
2192
+ who: z.ZodString;
2193
+ today: z.ZodObject<{
2194
+ count: z.ZodInt;
2195
+ tokens: z.ZodInt;
2196
+ cost: z.ZodNumber;
2197
+ avoidable: z.ZodNumber;
2198
+ }, z.core.$strict>;
2199
+ week: z.ZodObject<{
2200
+ count: z.ZodInt;
2201
+ tokens: z.ZodInt;
2202
+ cost: z.ZodNumber;
2203
+ avoidable: z.ZodNumber;
2204
+ }, z.core.$strict>;
2205
+ last_ms: z.ZodInt;
2206
+ }, z.core.$strict>;
2207
+ type SpendIdle = z.output<typeof SpendIdle>;
2208
+ /** How big each repo's helpers start (their first request's tokens). */
2209
+ declare const SpendStart: z.ZodObject<{
2210
+ repo: z.ZodString;
2211
+ count: z.ZodInt;
2212
+ median: z.ZodInt;
2213
+ latest: z.ZodArray<z.ZodInt>;
2214
+ alarm: z.ZodNullable<z.ZodString>;
2215
+ }, z.core.$strict>;
2216
+ type SpendStart = z.output<typeof SpendStart>;
2217
+ declare const AppsSpendParams: z.ZodObject<{
2218
+ app_key: z.ZodString;
2219
+ }, z.core.$strict>;
2220
+ type AppsSpendParams = z.output<typeof AppsSpendParams>;
2221
+ declare const AppsSpendResult: z.ZodObject<{
2222
+ app_key: z.ZodString;
2223
+ complete: z.ZodBoolean;
2224
+ today_total: z.ZodNumber;
2225
+ week_total: z.ZodNumber;
2226
+ idle_today: z.ZodNumber;
2227
+ idle_week: z.ZodNumber;
2228
+ unpriced: z.ZodArray<z.ZodString>;
2229
+ alarms: z.ZodArray<z.ZodString>;
2230
+ live: z.ZodArray<z.ZodObject<{
2231
+ id: z.ZodString;
2232
+ title: z.ZodString;
2233
+ window: z.ZodNullable<z.ZodString>;
2234
+ helpers: z.ZodArray<z.ZodObject<{
2235
+ model: z.ZodString;
2236
+ steps: z.ZodInt;
2237
+ over_steps: z.ZodBoolean;
2238
+ description: z.ZodString;
2239
+ }, z.core.$strict>>;
2240
+ }, z.core.$strict>>;
2241
+ accounts: z.ZodArray<z.ZodObject<{
2242
+ account: z.ZodString;
2243
+ spend: z.ZodObject<{
2244
+ today: z.ZodObject<{
2245
+ main: z.ZodNumber;
2246
+ helpers: z.ZodNumber;
2247
+ }, z.core.$strict>;
2248
+ week: z.ZodObject<{
2249
+ main: z.ZodNumber;
2250
+ helpers: z.ZodNumber;
2251
+ }, z.core.$strict>;
2252
+ }, z.core.$strict>;
2253
+ last_hour: z.ZodNullable<z.ZodNumber>;
2254
+ last_5h: z.ZodNullable<z.ZodNumber>;
2255
+ five_hour: z.ZodNullable<z.ZodNumber>;
2256
+ weekly: z.ZodNullable<z.ZodNumber>;
2257
+ as_of_ms: z.ZodNullable<z.ZodInt>;
2258
+ weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
2259
+ five_hour_full_at_ms: z.ZodNullable<z.ZodInt>;
2260
+ weekly_full_at_ms: z.ZodNullable<z.ZodInt>;
2261
+ stale: z.ZodBoolean;
2262
+ }, z.core.$strict>>;
2263
+ models: z.ZodArray<z.ZodObject<{
2264
+ model: z.ZodString;
2265
+ name: z.ZodString;
2266
+ spend: z.ZodObject<{
2267
+ today: z.ZodObject<{
2268
+ main: z.ZodNumber;
2269
+ helpers: z.ZodNumber;
2270
+ }, z.core.$strict>;
2271
+ week: z.ZodObject<{
2272
+ main: z.ZodNumber;
2273
+ helpers: z.ZodNumber;
2274
+ }, z.core.$strict>;
2275
+ }, z.core.$strict>;
2276
+ }, z.core.$strict>>;
2277
+ chats: z.ZodArray<z.ZodObject<{
2278
+ id: z.ZodString;
2279
+ title: z.ZodString;
2280
+ repo: z.ZodNullable<z.ZodString>;
2281
+ window: z.ZodNullable<z.ZodString>;
2282
+ spend: z.ZodObject<{
2283
+ today: z.ZodObject<{
2284
+ main: z.ZodNumber;
2285
+ helpers: z.ZodNumber;
2286
+ }, z.core.$strict>;
2287
+ week: z.ZodObject<{
2288
+ main: z.ZodNumber;
2289
+ helpers: z.ZodNumber;
2290
+ }, z.core.$strict>;
2291
+ }, z.core.$strict>;
2292
+ helpers: z.ZodInt;
2293
+ }, z.core.$strict>>;
2294
+ idle: z.ZodArray<z.ZodObject<{
2295
+ id: z.ZodString;
2296
+ chat: z.ZodString;
2297
+ who: z.ZodString;
2298
+ today: z.ZodObject<{
2299
+ count: z.ZodInt;
2300
+ tokens: z.ZodInt;
2301
+ cost: z.ZodNumber;
2302
+ avoidable: z.ZodNumber;
2303
+ }, z.core.$strict>;
2304
+ week: z.ZodObject<{
2305
+ count: z.ZodInt;
2306
+ tokens: z.ZodInt;
2307
+ cost: z.ZodNumber;
2308
+ avoidable: z.ZodNumber;
2309
+ }, z.core.$strict>;
2310
+ last_ms: z.ZodInt;
2311
+ }, z.core.$strict>>;
2312
+ starts: z.ZodArray<z.ZodObject<{
2313
+ repo: z.ZodString;
2314
+ count: z.ZodInt;
2315
+ median: z.ZodInt;
2316
+ latest: z.ZodArray<z.ZodInt>;
2317
+ alarm: z.ZodNullable<z.ZodString>;
2318
+ }, z.core.$strict>>;
2319
+ }, z.core.$strict>;
2320
+ type AppsSpendResult = z.output<typeof AppsSpendResult>;
2321
+ /** The chat sync's own read-only health check (is every chat reaching main?). */
2322
+ declare const AppsSyncStatusParams: z.ZodObject<{
2323
+ app_key: z.ZodString;
2324
+ }, z.core.$strict>;
2325
+ type AppsSyncStatusParams = z.output<typeof AppsSyncStatusParams>;
2326
+ declare const AppsSyncStatusResult: z.ZodObject<{
2327
+ healthy: z.ZodBoolean;
2328
+ summary: z.ZodString;
2329
+ problems: z.ZodArray<z.ZodString>;
2330
+ warnings: z.ZodArray<z.ZodString>;
2331
+ unnamed_accounts: z.ZodArray<z.ZodString>;
2332
+ output: z.ZodString;
2333
+ }, z.core.$strict>;
2334
+ type AppsSyncStatusResult = z.output<typeof AppsSyncStatusResult>;
2335
+ /** Run the chat sync now (main shows the result within a minute). */
2336
+ declare const AppsSyncRunParams: z.ZodObject<{
2337
+ app_key: z.ZodString;
2338
+ }, z.core.$strict>;
2339
+ type AppsSyncRunParams = z.output<typeof AppsSyncRunParams>;
2340
+ /** The app's processes still running (an app update installs only when there are none). */
2341
+ declare const AppsWindowsProcessesParams: z.ZodObject<{
2342
+ app_key: z.ZodString;
2343
+ }, z.core.$strict>;
2344
+ type AppsWindowsProcessesParams = z.output<typeof AppsWindowsProcessesParams>;
2345
+ declare const AppsWindowsProcessesResult: z.ZodObject<{
2346
+ processes: z.ZodArray<z.ZodString>;
2347
+ }, z.core.$strict>;
2348
+ type AppsWindowsProcessesResult = z.output<typeof AppsWindowsProcessesResult>;
2349
+ /** A window for another account: a short lowercase name and the account's email. */
2350
+ declare const AppsWindowsAddParams: z.ZodObject<{
2351
+ app_key: z.ZodString;
2352
+ window: z.ZodString;
2353
+ email: z.ZodString;
2354
+ }, z.core.$strict>;
2355
+ type AppsWindowsAddParams = z.output<typeof AppsWindowsAddParams>;
2356
+ /** Save each window's signed-in account id → its email, so every list shows names. */
2357
+ declare const AppsWindowsSaveNamesParams: z.ZodObject<{
2358
+ app_key: z.ZodString;
2359
+ }, z.core.$strict>;
2360
+ type AppsWindowsSaveNamesParams = z.output<typeof AppsWindowsSaveNamesParams>;
2023
2361
 
2024
2362
  /**
2025
2363
  * @ai-matrx/desktop-protocol — the internal envelope between Matrx 2's core and its supervised
@@ -3485,7 +3823,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
3485
3823
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
3486
3824
 
3487
3825
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
3488
- declare const CONTRACT_SHA256: "f1891d7e5c64c11112bb7baf5db06bd293daccff85a7f5adcdf760b2bbb92bda";
3826
+ declare const CONTRACT_SHA256: "de809e319141925b0d86c5acbfe2493f3a85cad7c668c3e20b082e9319f5199b";
3489
3827
 
3490
3828
  /**
3491
3829
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
@@ -3612,4 +3950,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
3612
3950
  /** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
3613
3951
  declare function renderToolStatusMarkdown(status: ToolStatus): string;
3614
3952
 
3615
- export { AbsPath, AccountReset, AccountUsage, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsListParams, AppsChatsListResult, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsWindowActionResult, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsRestartParams, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryProgressEvent, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingPlanMissingParams, CodingServiceCredentials, CodingServiceProgress, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesDisk, ResourcesSnapshotParams, ResourcesSnapshotResult, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, Signal, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
3953
+ export { AbsPath, AccountReset, AccountUsage, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryProgressEvent, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingPlanMissingParams, CodingServiceCredentials, CodingServiceProgress, ColdChat, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesDisk, ResourcesSnapshotParams, ResourcesSnapshotResult, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, Signal, SpendAccount, SpendChat, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/schema/primitives.ts
2
2
  import { z } from "zod";
3
3
  var PROTOCOL_MAJOR = 1;
4
- var PROTOCOL_MINOR = 10;
4
+ var PROTOCOL_MINOR = 11;
5
5
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
6
6
  var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
7
7
  var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1121,6 +1121,106 @@ var AppsProjectsCreateParams = z13.strictObject({ app_key: AppKey, name: z13.str
1121
1121
  var AppsProjectsCreateResult = z13.strictObject({ project: ChatProject });
1122
1122
  var AppsProjectsImportPinsParams = z13.strictObject({ app_key: AppKey });
1123
1123
  var AppsProjectsImportPinsResult = z13.strictObject({ message: z13.string().max(400) });
1124
+ var ColdChat = z13.strictObject({
1125
+ id: ChatId,
1126
+ title: z13.string().max(1e3),
1127
+ repo: z13.string().max(200).nullable(),
1128
+ window: z13.string().max(64).nullable(),
1129
+ account: z13.string().max(320).nullable(),
1130
+ model_name: z13.string().max(120).nullable(),
1131
+ context_tokens: nonNegInt,
1132
+ cold_at_ms: epochMs,
1133
+ /** Waking it once the cache is cold. */
1134
+ cold_cost: z13.number().nullable(),
1135
+ /** Waking it while the cache is warm. */
1136
+ warm_cost: z13.number().nullable(),
1137
+ /** Its account is on extra usage (a 5-minute cache, and real money). */
1138
+ extra_usage: z13.boolean(),
1139
+ /** A scheduled routine's run. */
1140
+ scheduled: z13.boolean(),
1141
+ /** It can be shown in its window (started in the desktop app). */
1142
+ openable: z13.boolean(),
1143
+ /** How its window was decided, or why it can't be opened. */
1144
+ how: z13.string().max(200).nullable()
1145
+ });
1146
+ var AppsChatsColdParams = z13.strictObject({ app_key: AppKey });
1147
+ var AppsChatsColdResult = z13.strictObject({
1148
+ app_key: AppKey,
1149
+ /** Waiting for the person with a warm cache, most urgent first. */
1150
+ waiting: z13.array(ColdChat).max(2e3),
1151
+ /** Went cold in the last while. */
1152
+ recently_cold: z13.array(ColdChat).max(2e3),
1153
+ /** Chats working right now (not waiting). */
1154
+ working: nonNegInt
1155
+ });
1156
+ var AppsChatsOpenParams = z13.strictObject({ app_key: AppKey, chat_id: ChatId, window: ChatPlace.optional() });
1157
+ var SpendSplit = z13.strictObject({ main: z13.number(), helpers: z13.number() });
1158
+ var SpendScopes = z13.strictObject({ today: SpendSplit, week: SpendSplit });
1159
+ var SpendAccount = z13.strictObject({
1160
+ account: z13.string().max(320),
1161
+ spend: SpendScopes,
1162
+ last_hour: z13.number().nullable(),
1163
+ last_5h: z13.number().nullable(),
1164
+ five_hour: z13.number().nullable(),
1165
+ weekly: z13.number().nullable(),
1166
+ as_of_ms: epochMs.nullable(),
1167
+ weekly_resets_at_ms: epochMs.nullable(),
1168
+ /** When the 5-hour or weekly limit is projected to be reached at the current burn. */
1169
+ five_hour_full_at_ms: epochMs.nullable(),
1170
+ weekly_full_at_ms: epochMs.nullable(),
1171
+ /** The reading is too old to project. */
1172
+ stale: z13.boolean()
1173
+ });
1174
+ var SpendModel = z13.strictObject({ model: z13.string().max(120), name: z13.string().max(120), spend: SpendScopes });
1175
+ var SpendChat = z13.strictObject({
1176
+ id: ChatId,
1177
+ title: z13.string().max(1e3),
1178
+ repo: z13.string().max(200).nullable(),
1179
+ window: z13.string().max(64).nullable(),
1180
+ spend: SpendScopes,
1181
+ helpers: nonNegInt
1182
+ });
1183
+ var SpendHelper = z13.strictObject({ model: z13.string().max(120), steps: nonNegInt, over_steps: z13.boolean(), description: z13.string().max(400) });
1184
+ var SpendLive = z13.strictObject({ id: ChatId, title: z13.string().max(1e3), window: z13.string().max(64).nullable(), helpers: z13.array(SpendHelper).max(200) });
1185
+ var SpendIdleScope = z13.strictObject({ count: nonNegInt, tokens: nonNegInt, cost: z13.number(), avoidable: z13.number() });
1186
+ var SpendIdle = z13.strictObject({ id: ChatId, chat: z13.string().max(1e3), who: z13.string().max(400), today: SpendIdleScope, week: SpendIdleScope, last_ms: epochMs });
1187
+ var SpendStart = z13.strictObject({ repo: z13.string().max(200), count: nonNegInt, median: nonNegInt, latest: z13.array(nonNegInt).max(20), alarm: z13.string().max(400).nullable() });
1188
+ var AppsSpendParams = z13.strictObject({ app_key: AppKey });
1189
+ var AppsSpendResult = z13.strictObject({
1190
+ app_key: AppKey,
1191
+ /** False while older chats are still being read. */
1192
+ complete: z13.boolean(),
1193
+ today_total: z13.number(),
1194
+ week_total: z13.number(),
1195
+ idle_today: z13.number(),
1196
+ idle_week: z13.number(),
1197
+ /** Models with no known list price. */
1198
+ unpriced: z13.array(z13.string().max(120)).max(100),
1199
+ /** Helpers past their step budget, unusual starting sizes. */
1200
+ alarms: z13.array(z13.string().max(400)).max(200),
1201
+ live: z13.array(SpendLive).max(200),
1202
+ accounts: z13.array(SpendAccount).max(200),
1203
+ models: z13.array(SpendModel).max(100),
1204
+ chats: z13.array(SpendChat).max(500),
1205
+ idle: z13.array(SpendIdle).max(500),
1206
+ starts: z13.array(SpendStart).max(200)
1207
+ });
1208
+ var AppsSyncStatusParams = z13.strictObject({ app_key: AppKey });
1209
+ var AppsSyncStatusResult = z13.strictObject({
1210
+ healthy: z13.boolean(),
1211
+ summary: z13.string().max(400),
1212
+ problems: z13.array(z13.string().max(400)).max(200),
1213
+ warnings: z13.array(z13.string().max(400)).max(200),
1214
+ /** Accounts seen with no saved name yet (Save account names fixes them). */
1215
+ unnamed_accounts: z13.array(z13.string().max(80)).max(200),
1216
+ /** The full report. */
1217
+ output: z13.string().max(2e5)
1218
+ });
1219
+ var AppsSyncRunParams = z13.strictObject({ app_key: AppKey });
1220
+ var AppsWindowsProcessesParams = z13.strictObject({ app_key: AppKey });
1221
+ var AppsWindowsProcessesResult = z13.strictObject({ processes: z13.array(z13.string().max(2e3)).max(2e3) });
1222
+ var AppsWindowsAddParams = z13.strictObject({ app_key: AppKey, window: ChatPlace, email: z13.string().min(3).max(320) });
1223
+ var AppsWindowsSaveNamesParams = z13.strictObject({ app_key: AppKey });
1124
1224
 
1125
1225
  // src/schema/service.ts
1126
1226
  import { z as z14 } from "zod";
@@ -1765,6 +1865,15 @@ var OPS = {
1765
1865
  "apps.projects.move": { params: AppsProjectsMoveParams, result: AppsProjectsMoveResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1766
1866
  "apps.projects.create": { params: AppsProjectsCreateParams, result: AppsProjectsCreateResult, kind: "unary", since: "1.10", errors: ["INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1767
1867
  "apps.projects.import_pins": { params: AppsProjectsImportPinsParams, result: AppsProjectsImportPinsResult, kind: "unary", since: "1.10", errors: ["CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1868
+ // 1.11: Going cold, Spend, sync health, windows upkeep.
1869
+ "apps.chats.cold": { params: AppsChatsColdParams, result: AppsChatsColdResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1870
+ "apps.chats.open": { params: AppsChatsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1871
+ "apps.spend": { params: AppsSpendParams, result: AppsSpendResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1872
+ "apps.sync.status": { params: AppsSyncStatusParams, result: AppsSyncStatusResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1873
+ "apps.sync.run": { params: AppsSyncRunParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1874
+ "apps.windows.processes": { params: AppsWindowsProcessesParams, result: AppsWindowsProcessesResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1875
+ "apps.windows.add": { params: AppsWindowsAddParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1876
+ "apps.windows.save_names": { params: AppsWindowsSaveNamesParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1768
1877
  "proc.list": { params: ProcListParams, result: ProcListResult, kind: "unary", since: "1.3", errors: ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1769
1878
  "proc.ports": { params: ProcPortsParams, result: ProcPortsResult, kind: "unary", since: "1.3", errors: ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
1770
1879
  "proc.kill": { params: ProcKillParams, result: ProcKillResult, kind: "unary", since: "1.3", errors: ["NOT_FOUND", "AUTH_FORBIDDEN", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "INTERNAL"] },
@@ -2118,7 +2227,30 @@ var NAMED_SCHEMAS = {
2118
2227
  AppsProjectsCreateParams,
2119
2228
  AppsProjectsCreateResult,
2120
2229
  AppsProjectsImportPinsParams,
2121
- AppsProjectsImportPinsResult
2230
+ AppsProjectsImportPinsResult,
2231
+ ColdChat,
2232
+ AppsChatsColdParams,
2233
+ AppsChatsColdResult,
2234
+ AppsChatsOpenParams,
2235
+ SpendSplit,
2236
+ SpendScopes,
2237
+ SpendAccount,
2238
+ SpendModel,
2239
+ SpendChat,
2240
+ SpendHelper,
2241
+ SpendLive,
2242
+ SpendIdleScope,
2243
+ SpendIdle,
2244
+ SpendStart,
2245
+ AppsSpendParams,
2246
+ AppsSpendResult,
2247
+ AppsSyncStatusParams,
2248
+ AppsSyncStatusResult,
2249
+ AppsSyncRunParams,
2250
+ AppsWindowsProcessesParams,
2251
+ AppsWindowsProcessesResult,
2252
+ AppsWindowsAddParams,
2253
+ AppsWindowsSaveNamesParams
2122
2254
  };
2123
2255
 
2124
2256
  // src/versioning.ts
@@ -2225,7 +2357,7 @@ function forPeer(op, part, value, version) {
2225
2357
  var VERSIONED_RESULT_OPS = [...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys()];
2226
2358
 
2227
2359
  // src/contract.ts
2228
- var CONTRACT_SHA256 = "f1891d7e5c64c11112bb7baf5db06bd293daccff85a7f5adcdf760b2bbb92bda";
2360
+ var CONTRACT_SHA256 = "de809e319141925b0d86c5acbfe2493f3a85cad7c668c3e20b082e9319f5199b";
2229
2361
 
2230
2362
  // src/close-policy.ts
2231
2363
  var CLOSE_RULES = {
@@ -2583,8 +2715,11 @@ export {
2583
2715
  AppsAccountsUsageParams,
2584
2716
  AppsAccountsUsageResult,
2585
2717
  AppsChatsChangedEvent,
2718
+ AppsChatsColdParams,
2719
+ AppsChatsColdResult,
2586
2720
  AppsChatsListParams,
2587
2721
  AppsChatsListResult,
2722
+ AppsChatsOpenParams,
2588
2723
  AppsChatsPlaceParams,
2589
2724
  AppsChatsPlaceResult,
2590
2725
  AppsChatsStarParams,
@@ -2618,13 +2753,22 @@ export {
2618
2753
  AppsProjectsUnfileResult,
2619
2754
  AppsProjectsUpdateParams,
2620
2755
  AppsProjectsUpdateResult,
2756
+ AppsSpendParams,
2757
+ AppsSpendResult,
2758
+ AppsSyncRunParams,
2759
+ AppsSyncStatusParams,
2760
+ AppsSyncStatusResult,
2621
2761
  AppsWindowActionResult,
2762
+ AppsWindowsAddParams,
2622
2763
  AppsWindowsListParams,
2623
2764
  AppsWindowsListResult,
2624
2765
  AppsWindowsOpenParams,
2766
+ AppsWindowsProcessesParams,
2767
+ AppsWindowsProcessesResult,
2625
2768
  AppsWindowsRefreshUsageParams,
2626
2769
  AppsWindowsReloadParams,
2627
2770
  AppsWindowsRestartParams,
2771
+ AppsWindowsSaveNamesParams,
2628
2772
  AudioDevice,
2629
2773
  AudioDevicesParams,
2630
2774
  AudioDevicesResult,
@@ -2667,6 +2811,7 @@ export {
2667
2811
  CodingPlanMissingParams,
2668
2812
  CodingServiceCredentials,
2669
2813
  CodingServiceProgress,
2814
+ ColdChat,
2670
2815
  ContractHash,
2671
2816
  CoreToClientMsg,
2672
2817
  CoreToServiceMsg,
@@ -2864,6 +3009,16 @@ export {
2864
3009
  SessionReleaseParams,
2865
3010
  SessionReleaseResult,
2866
3011
  Signal,
3012
+ SpendAccount,
3013
+ SpendChat,
3014
+ SpendHelper,
3015
+ SpendIdle,
3016
+ SpendIdleScope,
3017
+ SpendLive,
3018
+ SpendModel,
3019
+ SpendScopes,
3020
+ SpendSplit,
3021
+ SpendStart,
2867
3022
  StreamMeta,
2868
3023
  StreamMsg,
2869
3024
  SysinfoGetParams,