@ai-matrx/desktop-protocol 0.17.6 → 0.17.8

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-B2PuTc6a.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-B2PuTc6a.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: 12;
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.12";
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;
@@ -1886,6 +1886,7 @@ declare const AppsAccountsUsageResult: z.ZodObject<{
1886
1886
  weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
1887
1887
  weekly_reset_official: z.ZodNullable<z.ZodBoolean>;
1888
1888
  }, z.core.$strict>>;
1889
+ problem: z.ZodOptional<z.ZodString>;
1889
1890
  }, z.core.$strict>;
1890
1891
  type AppsAccountsUsageResult = z.output<typeof AppsAccountsUsageResult>;
1891
1892
  declare const AppsAccountsResetsParams: z.ZodObject<{
@@ -1906,6 +1907,7 @@ declare const AppsAccountsResetsResult: z.ZodObject<{
1906
1907
  official: z.ZodBoolean;
1907
1908
  note: z.ZodNullable<z.ZodString>;
1908
1909
  }, z.core.$strict>>;
1910
+ problem: z.ZodOptional<z.ZodString>;
1909
1911
  }, z.core.$strict>;
1910
1912
  type AppsAccountsResetsResult = z.output<typeof AppsAccountsResetsResult>;
1911
1913
  /** A window action's answer: what happened, in one line. */
@@ -2020,6 +2022,344 @@ declare const AppsProjectsImportPinsResult: z.ZodObject<{
2020
2022
  message: z.ZodString;
2021
2023
  }, z.core.$strict>;
2022
2024
  type AppsProjectsImportPinsResult = z.output<typeof AppsProjectsImportPinsResult>;
2025
+ /** A chat waiting for the person, with when its prompt cache goes cold and what waking it costs (API list prices, USD). */
2026
+ declare const ColdChat: z.ZodObject<{
2027
+ id: z.ZodString;
2028
+ title: z.ZodString;
2029
+ repo: z.ZodNullable<z.ZodString>;
2030
+ window: z.ZodNullable<z.ZodString>;
2031
+ account: z.ZodNullable<z.ZodString>;
2032
+ model_name: z.ZodNullable<z.ZodString>;
2033
+ context_tokens: z.ZodInt;
2034
+ cold_at_ms: z.ZodInt;
2035
+ cold_cost: z.ZodNullable<z.ZodNumber>;
2036
+ warm_cost: z.ZodNullable<z.ZodNumber>;
2037
+ extra_usage: z.ZodBoolean;
2038
+ scheduled: z.ZodBoolean;
2039
+ openable: z.ZodBoolean;
2040
+ how: z.ZodNullable<z.ZodString>;
2041
+ }, z.core.$strict>;
2042
+ type ColdChat = z.output<typeof ColdChat>;
2043
+ declare const AppsChatsColdParams: z.ZodObject<{
2044
+ app_key: z.ZodString;
2045
+ }, z.core.$strict>;
2046
+ type AppsChatsColdParams = z.output<typeof AppsChatsColdParams>;
2047
+ declare const AppsChatsColdResult: z.ZodObject<{
2048
+ app_key: z.ZodString;
2049
+ waiting: z.ZodArray<z.ZodObject<{
2050
+ id: z.ZodString;
2051
+ title: z.ZodString;
2052
+ repo: z.ZodNullable<z.ZodString>;
2053
+ window: z.ZodNullable<z.ZodString>;
2054
+ account: z.ZodNullable<z.ZodString>;
2055
+ model_name: z.ZodNullable<z.ZodString>;
2056
+ context_tokens: z.ZodInt;
2057
+ cold_at_ms: z.ZodInt;
2058
+ cold_cost: z.ZodNullable<z.ZodNumber>;
2059
+ warm_cost: z.ZodNullable<z.ZodNumber>;
2060
+ extra_usage: z.ZodBoolean;
2061
+ scheduled: z.ZodBoolean;
2062
+ openable: z.ZodBoolean;
2063
+ how: z.ZodNullable<z.ZodString>;
2064
+ }, z.core.$strict>>;
2065
+ recently_cold: z.ZodArray<z.ZodObject<{
2066
+ id: z.ZodString;
2067
+ title: z.ZodString;
2068
+ repo: z.ZodNullable<z.ZodString>;
2069
+ window: z.ZodNullable<z.ZodString>;
2070
+ account: z.ZodNullable<z.ZodString>;
2071
+ model_name: z.ZodNullable<z.ZodString>;
2072
+ context_tokens: z.ZodInt;
2073
+ cold_at_ms: z.ZodInt;
2074
+ cold_cost: z.ZodNullable<z.ZodNumber>;
2075
+ warm_cost: z.ZodNullable<z.ZodNumber>;
2076
+ extra_usage: z.ZodBoolean;
2077
+ scheduled: z.ZodBoolean;
2078
+ openable: z.ZodBoolean;
2079
+ how: z.ZodNullable<z.ZodString>;
2080
+ }, z.core.$strict>>;
2081
+ working: z.ZodInt;
2082
+ }, z.core.$strict>;
2083
+ type AppsChatsColdResult = z.output<typeof AppsChatsColdResult>;
2084
+ /** Show one chat in its window (Claude's own "Continue session" link, sent to that window only); never sends it anything. */
2085
+ declare const AppsChatsOpenParams: z.ZodObject<{
2086
+ app_key: z.ZodString;
2087
+ chat_id: z.ZodString;
2088
+ window: z.ZodOptional<z.ZodString>;
2089
+ }, z.core.$strict>;
2090
+ type AppsChatsOpenParams = z.output<typeof AppsChatsOpenParams>;
2091
+ /** Main conversation and helpers, USD at API list prices. */
2092
+ declare const SpendSplit: z.ZodObject<{
2093
+ main: z.ZodNumber;
2094
+ helpers: z.ZodNumber;
2095
+ }, z.core.$strict>;
2096
+ type SpendSplit = z.output<typeof SpendSplit>;
2097
+ declare const SpendScopes: z.ZodObject<{
2098
+ today: z.ZodObject<{
2099
+ main: z.ZodNumber;
2100
+ helpers: z.ZodNumber;
2101
+ }, z.core.$strict>;
2102
+ week: z.ZodObject<{
2103
+ main: z.ZodNumber;
2104
+ helpers: z.ZodNumber;
2105
+ }, z.core.$strict>;
2106
+ }, z.core.$strict>;
2107
+ type SpendScopes = z.output<typeof SpendScopes>;
2108
+ declare const SpendAccount: z.ZodObject<{
2109
+ account: z.ZodString;
2110
+ spend: z.ZodObject<{
2111
+ today: z.ZodObject<{
2112
+ main: z.ZodNumber;
2113
+ helpers: z.ZodNumber;
2114
+ }, z.core.$strict>;
2115
+ week: z.ZodObject<{
2116
+ main: z.ZodNumber;
2117
+ helpers: z.ZodNumber;
2118
+ }, z.core.$strict>;
2119
+ }, z.core.$strict>;
2120
+ last_hour: z.ZodNullable<z.ZodNumber>;
2121
+ last_5h: z.ZodNullable<z.ZodNumber>;
2122
+ five_hour: z.ZodNullable<z.ZodNumber>;
2123
+ weekly: z.ZodNullable<z.ZodNumber>;
2124
+ as_of_ms: z.ZodNullable<z.ZodInt>;
2125
+ weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
2126
+ five_hour_full_at_ms: z.ZodNullable<z.ZodInt>;
2127
+ weekly_full_at_ms: z.ZodNullable<z.ZodInt>;
2128
+ stale: z.ZodBoolean;
2129
+ }, z.core.$strict>;
2130
+ type SpendAccount = z.output<typeof SpendAccount>;
2131
+ declare const SpendModel: z.ZodObject<{
2132
+ model: z.ZodString;
2133
+ name: z.ZodString;
2134
+ spend: z.ZodObject<{
2135
+ today: z.ZodObject<{
2136
+ main: z.ZodNumber;
2137
+ helpers: z.ZodNumber;
2138
+ }, z.core.$strict>;
2139
+ week: z.ZodObject<{
2140
+ main: z.ZodNumber;
2141
+ helpers: z.ZodNumber;
2142
+ }, z.core.$strict>;
2143
+ }, z.core.$strict>;
2144
+ }, z.core.$strict>;
2145
+ type SpendModel = z.output<typeof SpendModel>;
2146
+ declare const SpendChat: z.ZodObject<{
2147
+ id: z.ZodString;
2148
+ title: z.ZodString;
2149
+ repo: z.ZodNullable<z.ZodString>;
2150
+ window: z.ZodNullable<z.ZodString>;
2151
+ spend: z.ZodObject<{
2152
+ today: z.ZodObject<{
2153
+ main: z.ZodNumber;
2154
+ helpers: z.ZodNumber;
2155
+ }, z.core.$strict>;
2156
+ week: z.ZodObject<{
2157
+ main: z.ZodNumber;
2158
+ helpers: z.ZodNumber;
2159
+ }, z.core.$strict>;
2160
+ }, z.core.$strict>;
2161
+ helpers: z.ZodInt;
2162
+ }, z.core.$strict>;
2163
+ type SpendChat = z.output<typeof SpendChat>;
2164
+ declare const SpendHelper: z.ZodObject<{
2165
+ model: z.ZodString;
2166
+ steps: z.ZodInt;
2167
+ over_steps: z.ZodBoolean;
2168
+ description: z.ZodString;
2169
+ }, z.core.$strict>;
2170
+ type SpendHelper = z.output<typeof SpendHelper>;
2171
+ declare const SpendLive: z.ZodObject<{
2172
+ id: z.ZodString;
2173
+ title: z.ZodString;
2174
+ window: z.ZodNullable<z.ZodString>;
2175
+ helpers: z.ZodArray<z.ZodObject<{
2176
+ model: z.ZodString;
2177
+ steps: z.ZodInt;
2178
+ over_steps: z.ZodBoolean;
2179
+ description: z.ZodString;
2180
+ }, z.core.$strict>>;
2181
+ }, z.core.$strict>;
2182
+ type SpendLive = z.output<typeof SpendLive>;
2183
+ declare const SpendIdleScope: z.ZodObject<{
2184
+ count: z.ZodInt;
2185
+ tokens: z.ZodInt;
2186
+ cost: z.ZodNumber;
2187
+ avoidable: z.ZodNumber;
2188
+ }, z.core.$strict>;
2189
+ type SpendIdleScope = z.output<typeof SpendIdleScope>;
2190
+ /** Idle cache re-saves, grouped by chat and by who re-saved (the chat itself or one helper). */
2191
+ declare const SpendIdle: z.ZodObject<{
2192
+ id: z.ZodString;
2193
+ chat: z.ZodString;
2194
+ who: z.ZodString;
2195
+ today: z.ZodObject<{
2196
+ count: z.ZodInt;
2197
+ tokens: z.ZodInt;
2198
+ cost: z.ZodNumber;
2199
+ avoidable: z.ZodNumber;
2200
+ }, z.core.$strict>;
2201
+ week: z.ZodObject<{
2202
+ count: z.ZodInt;
2203
+ tokens: z.ZodInt;
2204
+ cost: z.ZodNumber;
2205
+ avoidable: z.ZodNumber;
2206
+ }, z.core.$strict>;
2207
+ last_ms: z.ZodInt;
2208
+ }, z.core.$strict>;
2209
+ type SpendIdle = z.output<typeof SpendIdle>;
2210
+ /** How big each repo's helpers start (their first request's tokens). */
2211
+ declare const SpendStart: z.ZodObject<{
2212
+ repo: z.ZodString;
2213
+ count: z.ZodInt;
2214
+ median: z.ZodInt;
2215
+ latest: z.ZodArray<z.ZodInt>;
2216
+ alarm: z.ZodNullable<z.ZodString>;
2217
+ }, z.core.$strict>;
2218
+ type SpendStart = z.output<typeof SpendStart>;
2219
+ declare const AppsSpendParams: z.ZodObject<{
2220
+ app_key: z.ZodString;
2221
+ }, z.core.$strict>;
2222
+ type AppsSpendParams = z.output<typeof AppsSpendParams>;
2223
+ declare const AppsSpendResult: z.ZodObject<{
2224
+ app_key: z.ZodString;
2225
+ complete: z.ZodBoolean;
2226
+ today_total: z.ZodNumber;
2227
+ week_total: z.ZodNumber;
2228
+ idle_today: z.ZodNumber;
2229
+ idle_week: z.ZodNumber;
2230
+ unpriced: z.ZodArray<z.ZodString>;
2231
+ alarms: z.ZodArray<z.ZodString>;
2232
+ live: z.ZodArray<z.ZodObject<{
2233
+ id: z.ZodString;
2234
+ title: z.ZodString;
2235
+ window: z.ZodNullable<z.ZodString>;
2236
+ helpers: z.ZodArray<z.ZodObject<{
2237
+ model: z.ZodString;
2238
+ steps: z.ZodInt;
2239
+ over_steps: z.ZodBoolean;
2240
+ description: z.ZodString;
2241
+ }, z.core.$strict>>;
2242
+ }, z.core.$strict>>;
2243
+ accounts: z.ZodArray<z.ZodObject<{
2244
+ account: z.ZodString;
2245
+ spend: z.ZodObject<{
2246
+ today: z.ZodObject<{
2247
+ main: z.ZodNumber;
2248
+ helpers: z.ZodNumber;
2249
+ }, z.core.$strict>;
2250
+ week: z.ZodObject<{
2251
+ main: z.ZodNumber;
2252
+ helpers: z.ZodNumber;
2253
+ }, z.core.$strict>;
2254
+ }, z.core.$strict>;
2255
+ last_hour: z.ZodNullable<z.ZodNumber>;
2256
+ last_5h: z.ZodNullable<z.ZodNumber>;
2257
+ five_hour: z.ZodNullable<z.ZodNumber>;
2258
+ weekly: z.ZodNullable<z.ZodNumber>;
2259
+ as_of_ms: z.ZodNullable<z.ZodInt>;
2260
+ weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
2261
+ five_hour_full_at_ms: z.ZodNullable<z.ZodInt>;
2262
+ weekly_full_at_ms: z.ZodNullable<z.ZodInt>;
2263
+ stale: z.ZodBoolean;
2264
+ }, z.core.$strict>>;
2265
+ models: z.ZodArray<z.ZodObject<{
2266
+ model: z.ZodString;
2267
+ name: z.ZodString;
2268
+ spend: z.ZodObject<{
2269
+ today: z.ZodObject<{
2270
+ main: z.ZodNumber;
2271
+ helpers: z.ZodNumber;
2272
+ }, z.core.$strict>;
2273
+ week: z.ZodObject<{
2274
+ main: z.ZodNumber;
2275
+ helpers: z.ZodNumber;
2276
+ }, z.core.$strict>;
2277
+ }, z.core.$strict>;
2278
+ }, z.core.$strict>>;
2279
+ chats: z.ZodArray<z.ZodObject<{
2280
+ id: z.ZodString;
2281
+ title: z.ZodString;
2282
+ repo: z.ZodNullable<z.ZodString>;
2283
+ window: z.ZodNullable<z.ZodString>;
2284
+ spend: z.ZodObject<{
2285
+ today: z.ZodObject<{
2286
+ main: z.ZodNumber;
2287
+ helpers: z.ZodNumber;
2288
+ }, z.core.$strict>;
2289
+ week: z.ZodObject<{
2290
+ main: z.ZodNumber;
2291
+ helpers: z.ZodNumber;
2292
+ }, z.core.$strict>;
2293
+ }, z.core.$strict>;
2294
+ helpers: z.ZodInt;
2295
+ }, z.core.$strict>>;
2296
+ idle: z.ZodArray<z.ZodObject<{
2297
+ id: z.ZodString;
2298
+ chat: z.ZodString;
2299
+ who: z.ZodString;
2300
+ today: z.ZodObject<{
2301
+ count: z.ZodInt;
2302
+ tokens: z.ZodInt;
2303
+ cost: z.ZodNumber;
2304
+ avoidable: z.ZodNumber;
2305
+ }, z.core.$strict>;
2306
+ week: z.ZodObject<{
2307
+ count: z.ZodInt;
2308
+ tokens: z.ZodInt;
2309
+ cost: z.ZodNumber;
2310
+ avoidable: z.ZodNumber;
2311
+ }, z.core.$strict>;
2312
+ last_ms: z.ZodInt;
2313
+ }, z.core.$strict>>;
2314
+ starts: z.ZodArray<z.ZodObject<{
2315
+ repo: z.ZodString;
2316
+ count: z.ZodInt;
2317
+ median: z.ZodInt;
2318
+ latest: z.ZodArray<z.ZodInt>;
2319
+ alarm: z.ZodNullable<z.ZodString>;
2320
+ }, z.core.$strict>>;
2321
+ }, z.core.$strict>;
2322
+ type AppsSpendResult = z.output<typeof AppsSpendResult>;
2323
+ /** The chat sync's own read-only health check (is every chat reaching main?). */
2324
+ declare const AppsSyncStatusParams: z.ZodObject<{
2325
+ app_key: z.ZodString;
2326
+ }, z.core.$strict>;
2327
+ type AppsSyncStatusParams = z.output<typeof AppsSyncStatusParams>;
2328
+ declare const AppsSyncStatusResult: z.ZodObject<{
2329
+ healthy: z.ZodBoolean;
2330
+ summary: z.ZodString;
2331
+ problems: z.ZodArray<z.ZodString>;
2332
+ warnings: z.ZodArray<z.ZodString>;
2333
+ unnamed_accounts: z.ZodArray<z.ZodString>;
2334
+ output: z.ZodString;
2335
+ }, z.core.$strict>;
2336
+ type AppsSyncStatusResult = z.output<typeof AppsSyncStatusResult>;
2337
+ /** Run the chat sync now (main shows the result within a minute). */
2338
+ declare const AppsSyncRunParams: z.ZodObject<{
2339
+ app_key: z.ZodString;
2340
+ }, z.core.$strict>;
2341
+ type AppsSyncRunParams = z.output<typeof AppsSyncRunParams>;
2342
+ /** The app's processes still running (an app update installs only when there are none). */
2343
+ declare const AppsWindowsProcessesParams: z.ZodObject<{
2344
+ app_key: z.ZodString;
2345
+ }, z.core.$strict>;
2346
+ type AppsWindowsProcessesParams = z.output<typeof AppsWindowsProcessesParams>;
2347
+ declare const AppsWindowsProcessesResult: z.ZodObject<{
2348
+ processes: z.ZodArray<z.ZodString>;
2349
+ }, z.core.$strict>;
2350
+ type AppsWindowsProcessesResult = z.output<typeof AppsWindowsProcessesResult>;
2351
+ /** A window for another account: a short lowercase name and the account's email. */
2352
+ declare const AppsWindowsAddParams: z.ZodObject<{
2353
+ app_key: z.ZodString;
2354
+ window: z.ZodString;
2355
+ email: z.ZodString;
2356
+ }, z.core.$strict>;
2357
+ type AppsWindowsAddParams = z.output<typeof AppsWindowsAddParams>;
2358
+ /** Save each window's signed-in account id → its email, so every list shows names. */
2359
+ declare const AppsWindowsSaveNamesParams: z.ZodObject<{
2360
+ app_key: z.ZodString;
2361
+ }, z.core.$strict>;
2362
+ type AppsWindowsSaveNamesParams = z.output<typeof AppsWindowsSaveNamesParams>;
2023
2363
 
2024
2364
  /**
2025
2365
  * @ai-matrx/desktop-protocol — the internal envelope between Matrx 2's core and its supervised
@@ -3431,6 +3771,12 @@ declare const FIELDS_SINCE: {
3431
3771
  readonly live: "1.9";
3432
3772
  readonly families: "1.10";
3433
3773
  };
3774
+ readonly AppsAccountsUsageResult: {
3775
+ readonly problem: "1.12";
3776
+ };
3777
+ readonly AppsAccountsResetsResult: {
3778
+ readonly problem: "1.12";
3779
+ };
3434
3780
  };
3435
3781
  type FieldsSincePath = keyof typeof FIELDS_SINCE;
3436
3782
  /**
@@ -3485,7 +3831,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
3485
3831
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
3486
3832
 
3487
3833
  /** 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";
3834
+ declare const CONTRACT_SHA256: "179024ee4b3dc7123af1db44f8ce0fb9da7b392eed30a2a2b5bb312da3522bb0";
3489
3835
 
3490
3836
  /**
3491
3837
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
@@ -3612,4 +3958,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
3612
3958
  /** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
3613
3959
  declare function renderToolStatusMarkdown(status: ToolStatus): string;
3614
3960
 
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 };
3961
+ 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 };