@ai-matrx/desktop-protocol 0.17.5 → 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/CHANGELOG.md +29 -0
- package/dist/client.cjs +209 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +209 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +559 -264
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +588 -6
- package/dist/index.d.ts +588 -6
- package/dist/index.js +559 -264
- package/dist/index.js.map +1 -1
- package/dist/{models-Bb87iuvw.d.cts → models-Os6toG3X.d.cts} +945 -1
- package/dist/{models-Bb87iuvw.d.ts → models-Os6toG3X.d.ts} +945 -1
- package/dist/react.d.cts +440 -0
- package/dist/react.d.ts +440 -0
- package/generated/desktop-protocol.schema.json +1645 -69
- package/package.json +1 -1
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 =
|
|
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_-]+$/);
|
|
@@ -964,6 +964,11 @@ var ChatRow = z12.strictObject({
|
|
|
964
964
|
warnings: z12.array(z12.string().max(400)).max(20),
|
|
965
965
|
last_use: ChatLastUse.nullable()
|
|
966
966
|
});
|
|
967
|
+
var ChatFamily = z12.strictObject({
|
|
968
|
+
id: ChatId,
|
|
969
|
+
fork_of: ChatId.nullable(),
|
|
970
|
+
copy_of: ChatId.nullable()
|
|
971
|
+
});
|
|
967
972
|
var AppsChatsListParams = z12.strictObject({
|
|
968
973
|
app_key: AppKey,
|
|
969
974
|
/** Only these chats (a live update re-reads just what changed). */
|
|
@@ -981,7 +986,9 @@ var AppsChatsListResult = z12.strictObject({
|
|
|
981
986
|
/** 1.9: this is the copy saved at the last read, shown while everything is read again. */
|
|
982
987
|
updating: z12.boolean().optional(),
|
|
983
988
|
/** 1.9: false while the folder watches are down (changes are not arriving); `apps.chats.watch_state` says when it changes. */
|
|
984
|
-
live: z12.boolean().optional()
|
|
989
|
+
live: z12.boolean().optional(),
|
|
990
|
+
/** 1.10: every listed chat that is a fork or a copy of another (read from the conversations' first lines). */
|
|
991
|
+
families: z12.array(ChatFamily).max(2e4).optional()
|
|
985
992
|
});
|
|
986
993
|
var AppsChatsWatchParams = z12.strictObject({ app_key: AppKey });
|
|
987
994
|
var AppsChatsWatchResult = z12.strictObject({ resource_id: ResourceId, version: nonNegInt });
|
|
@@ -1035,250 +1042,430 @@ var AppsProjectsUnfileResult = z12.strictObject({ chat: ChatRow });
|
|
|
1035
1042
|
var AppsChatsStarParams = z12.strictObject({ app_key: AppKey, chat_id: ChatId, starred: z12.boolean() });
|
|
1036
1043
|
var AppsChatsStarResult = z12.strictObject({ chat: ChatRow });
|
|
1037
1044
|
|
|
1038
|
-
// src/schema/
|
|
1045
|
+
// src/schema/apps-accounts.ts
|
|
1039
1046
|
import { z as z13 } from "zod";
|
|
1047
|
+
var AppWindowInfo = z13.strictObject({
|
|
1048
|
+
key: ChatPlace,
|
|
1049
|
+
/** The app's default profile (Claude: main, which may sign into any account). */
|
|
1050
|
+
main: z13.boolean(),
|
|
1051
|
+
/** The account the window is meant for (null for main). */
|
|
1052
|
+
account: z13.string().max(320).nullable(),
|
|
1053
|
+
/** The account signed in there now: an email, or the account id while it has no saved name. */
|
|
1054
|
+
signed_in: z13.string().max(320).nullable(),
|
|
1055
|
+
signed_in_is_email: z13.boolean(),
|
|
1056
|
+
/** Signed into another account than the one it is meant for. */
|
|
1057
|
+
mismatch: z13.boolean(),
|
|
1058
|
+
/** Its folder exists. */
|
|
1059
|
+
created: z13.boolean(),
|
|
1060
|
+
/** Open now. */
|
|
1061
|
+
running: z13.boolean(),
|
|
1062
|
+
/** Chats open in it now (a process resuming each one). */
|
|
1063
|
+
open_chats: nonNegInt
|
|
1064
|
+
});
|
|
1065
|
+
var AccountUsage = z13.strictObject({
|
|
1066
|
+
/** The account's email, or "org <8 chars>" when no window has ever sampled that org. */
|
|
1067
|
+
account: z13.string().max(320),
|
|
1068
|
+
org: z13.string().max(80).nullable(),
|
|
1069
|
+
/** False when the org was sampled in several accounts' windows and the vote is not clear (≥ 75 %). */
|
|
1070
|
+
account_certain: z13.boolean(),
|
|
1071
|
+
/** 5-hour use in percent (0 once the reading is over 5 hours old). */
|
|
1072
|
+
five_hour: z13.number().nullable(),
|
|
1073
|
+
five_hour_reset_since: z13.boolean(),
|
|
1074
|
+
/** Weekly use in percent (0 once the week reset after the reading). */
|
|
1075
|
+
weekly: z13.number().nullable(),
|
|
1076
|
+
weekly_reset_since: z13.boolean(),
|
|
1077
|
+
/** Extra-usage spend in percent of its cap, when on. */
|
|
1078
|
+
extra_usage: z13.number().nullable(),
|
|
1079
|
+
extra_usage_as_of_ms: epochMs.nullable(),
|
|
1080
|
+
as_of_ms: epochMs,
|
|
1081
|
+
/** The windows meant for this account (and main when main took the reading). */
|
|
1082
|
+
windows: z13.array(ChatPlace).max(200),
|
|
1083
|
+
/** The window that took the reading is open now and the reading is under 30 minutes old. */
|
|
1084
|
+
live: z13.boolean(),
|
|
1085
|
+
/** The next weekly reset, when known. */
|
|
1086
|
+
weekly_resets_at_ms: epochMs.nullable(),
|
|
1087
|
+
/** That reset time is Claude's own (its reading, or a reset seen in its usage history). */
|
|
1088
|
+
weekly_reset_official: z13.boolean().nullable()
|
|
1089
|
+
});
|
|
1090
|
+
var AccountReset = z13.strictObject({
|
|
1091
|
+
window: ChatPlace,
|
|
1092
|
+
account: z13.string().max(320).nullable(),
|
|
1093
|
+
next_reset_ms: epochMs.nullable(),
|
|
1094
|
+
/** claude: the app's own reading; usage_history: a weekly drop seen in its usage record; your_list: the person's own entry. */
|
|
1095
|
+
source: z13.enum(["claude", "usage_history", "your_list"]).nullable(),
|
|
1096
|
+
/** claude or usage_history. */
|
|
1097
|
+
official: z13.boolean(),
|
|
1098
|
+
/** Set when the person's list disagrees with the official time. */
|
|
1099
|
+
note: z13.string().max(200).nullable()
|
|
1100
|
+
});
|
|
1101
|
+
var AppsWindowsListParams = z13.strictObject({ app_key: AppKey });
|
|
1102
|
+
var AppsWindowsListResult = z13.strictObject({ app_key: AppKey, windows: z13.array(AppWindowInfo).max(200) });
|
|
1103
|
+
var AppsAccountsUsageParams = z13.strictObject({ app_key: AppKey });
|
|
1104
|
+
var AppsAccountsUsageResult = z13.strictObject({ app_key: AppKey, accounts: z13.array(AccountUsage).max(500) });
|
|
1105
|
+
var AppsAccountsResetsParams = z13.strictObject({ app_key: AppKey });
|
|
1106
|
+
var AppsAccountsResetsResult = z13.strictObject({ app_key: AppKey, resets: z13.array(AccountReset).max(200) });
|
|
1107
|
+
var AppsWindowActionResult = z13.strictObject({ message: z13.string().max(400) });
|
|
1108
|
+
var AppsWindowsOpenParams = z13.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
1109
|
+
var AppsWindowsReloadParams = z13.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
1110
|
+
var AppsWindowsRestartParams = z13.strictObject({ app_key: AppKey, window: ChatPlace, force: z13.boolean().default(false) });
|
|
1111
|
+
var AppsWindowsRefreshUsageParams = z13.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
1112
|
+
var AppsProjectsMoveParams = z13.strictObject({
|
|
1113
|
+
app_key: AppKey,
|
|
1114
|
+
chat_id: ChatId,
|
|
1115
|
+
from_project_id: ChatProjectId,
|
|
1116
|
+
to_project_id: ChatProjectId.optional(),
|
|
1117
|
+
new_project_name: z13.string().min(1).max(200).optional()
|
|
1118
|
+
});
|
|
1119
|
+
var AppsProjectsMoveResult = z13.strictObject({ chat: ChatRow, project: ChatProject });
|
|
1120
|
+
var AppsProjectsCreateParams = z13.strictObject({ app_key: AppKey, name: z13.string().min(1).max(200) });
|
|
1121
|
+
var AppsProjectsCreateResult = z13.strictObject({ project: ChatProject });
|
|
1122
|
+
var AppsProjectsImportPinsParams = z13.strictObject({ app_key: AppKey });
|
|
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 });
|
|
1224
|
+
|
|
1225
|
+
// src/schema/service.ts
|
|
1226
|
+
import { z as z14 } from "zod";
|
|
1040
1227
|
var SERVICE_MAX_FRAME_BYTES = 16777216;
|
|
1041
|
-
var ServiceName =
|
|
1042
|
-
var ContractHash =
|
|
1043
|
-
var ServiceToken =
|
|
1228
|
+
var ServiceName = z14.enum(["ml", "coding"]);
|
|
1229
|
+
var ContractHash = z14.string().regex(/^[0-9a-f]{64}$/);
|
|
1230
|
+
var ServiceToken = z14.string().regex(/^[A-Za-z0-9_-]{43}$/);
|
|
1044
1231
|
var ServiceRequestId = u32;
|
|
1045
|
-
var ServiceHello =
|
|
1046
|
-
var ServiceWelcome =
|
|
1047
|
-
type:
|
|
1232
|
+
var ServiceHello = z14.strictObject({ type: z14.literal("hello"), token: ServiceToken, contract: ContractHash });
|
|
1233
|
+
var ServiceWelcome = z14.strictObject({
|
|
1234
|
+
type: z14.literal("welcome"),
|
|
1048
1235
|
service: ServiceName,
|
|
1049
1236
|
contract: ContractHash,
|
|
1050
1237
|
pid: nonNegInt,
|
|
1051
1238
|
/** The interpreter's version, e.g. "3.13.15". */
|
|
1052
|
-
python:
|
|
1239
|
+
python: z14.string().max(32),
|
|
1053
1240
|
/** Every op this service serves; must equal SERVICES[service] exactly. */
|
|
1054
|
-
ops:
|
|
1241
|
+
ops: z14.array(z14.string().min(1).max(64)).max(64)
|
|
1055
1242
|
});
|
|
1056
|
-
var ServiceRequest =
|
|
1057
|
-
type:
|
|
1243
|
+
var ServiceRequest = z14.strictObject({
|
|
1244
|
+
type: z14.literal("request"),
|
|
1058
1245
|
id: ServiceRequestId,
|
|
1059
|
-
op:
|
|
1060
|
-
params:
|
|
1246
|
+
op: z14.string().min(1).max(64),
|
|
1247
|
+
params: z14.unknown()
|
|
1061
1248
|
// validated by the service against SERVICES[service][op].params
|
|
1062
1249
|
});
|
|
1063
|
-
var ServiceResponse =
|
|
1064
|
-
type:
|
|
1250
|
+
var ServiceResponse = z14.strictObject({
|
|
1251
|
+
type: z14.literal("response"),
|
|
1065
1252
|
id: ServiceRequestId,
|
|
1066
|
-
result:
|
|
1253
|
+
result: z14.unknown()
|
|
1067
1254
|
// validated by the core against SERVICES[service][op].result
|
|
1068
1255
|
});
|
|
1069
|
-
var ServiceErrorMsg =
|
|
1070
|
-
var ServiceProgressMsg =
|
|
1071
|
-
var ServiceCancel =
|
|
1072
|
-
var ServicePing =
|
|
1073
|
-
var ServicePong =
|
|
1074
|
-
type:
|
|
1256
|
+
var ServiceErrorMsg = z14.strictObject({ type: z14.literal("error"), id: ServiceRequestId, error: ProtocolErrorBody });
|
|
1257
|
+
var ServiceProgressMsg = z14.strictObject({ type: z14.literal("progress"), id: ServiceRequestId, progress: z14.unknown() });
|
|
1258
|
+
var ServiceCancel = z14.strictObject({ type: z14.literal("cancel"), id: ServiceRequestId });
|
|
1259
|
+
var ServicePing = z14.strictObject({ type: z14.literal("ping"), id: ServiceRequestId });
|
|
1260
|
+
var ServicePong = z14.strictObject({
|
|
1261
|
+
type: z14.literal("pong"),
|
|
1075
1262
|
id: ServiceRequestId,
|
|
1076
1263
|
/** Requests running now. */
|
|
1077
1264
|
busy: nonNegInt
|
|
1078
1265
|
});
|
|
1079
|
-
var ServiceShutdown =
|
|
1080
|
-
var CoreToServiceMsg =
|
|
1081
|
-
var ServiceToCoreMsg =
|
|
1266
|
+
var ServiceShutdown = z14.strictObject({ type: z14.literal("shutdown") });
|
|
1267
|
+
var CoreToServiceMsg = z14.discriminatedUnion("type", [ServiceHello, ServiceRequest, ServiceCancel, ServicePing, ServiceShutdown]);
|
|
1268
|
+
var ServiceToCoreMsg = z14.discriminatedUnion("type", [ServiceWelcome, ServiceResponse, ServiceErrorMsg, ServiceProgressMsg, ServicePong]);
|
|
1082
1269
|
|
|
1083
1270
|
// src/schema/tools.ts
|
|
1084
|
-
import { z as
|
|
1085
|
-
var ToolLevel =
|
|
1086
|
-
var ToolOutcome =
|
|
1087
|
-
var ToolPlatform =
|
|
1088
|
-
var ToolTransport =
|
|
1089
|
-
var ToolName =
|
|
1090
|
-
var ToolLevelResult =
|
|
1271
|
+
import { z as z15 } from "zod";
|
|
1272
|
+
var ToolLevel = z15.enum(["programmatic", "protocol", "chat"]);
|
|
1273
|
+
var ToolOutcome = z15.enum(["pass", "fail", "skip"]);
|
|
1274
|
+
var ToolPlatform = z15.enum(["darwin", "win32", "linux"]);
|
|
1275
|
+
var ToolTransport = z15.enum(["in_process", "localhost", "relay", "agent"]);
|
|
1276
|
+
var ToolName = z15.string().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/);
|
|
1277
|
+
var ToolLevelResult = z15.strictObject({
|
|
1091
1278
|
tool: ToolName,
|
|
1092
1279
|
level: ToolLevel,
|
|
1093
1280
|
platform: ToolPlatform,
|
|
1094
1281
|
transport: ToolTransport,
|
|
1095
1282
|
outcome: ToolOutcome,
|
|
1096
1283
|
/** True when the caller sat on a different network from the device (a phone on cellular, CI). */
|
|
1097
|
-
remote_network:
|
|
1284
|
+
remote_network: z15.boolean(),
|
|
1098
1285
|
/** One line: what was asserted, or why it failed. Never a token, a file's contents or a path under a real home. */
|
|
1099
|
-
detail:
|
|
1286
|
+
detail: z15.string().max(500),
|
|
1100
1287
|
/** The harness that produced it, e.g. `matrx-desktop test/tools/programmatic.test.ts`. */
|
|
1101
|
-
suite:
|
|
1288
|
+
suite: z15.string().min(1).max(200),
|
|
1102
1289
|
/** The test case inside the suite. */
|
|
1103
|
-
test:
|
|
1104
|
-
run_at_ms:
|
|
1290
|
+
test: z15.string().min(1).max(300),
|
|
1291
|
+
run_at_ms: z15.int().min(0)
|
|
1105
1292
|
});
|
|
1106
|
-
var ToolResultsFile =
|
|
1107
|
-
schema:
|
|
1293
|
+
var ToolResultsFile = z15.strictObject({
|
|
1294
|
+
schema: z15.literal("matrx.tool-results.v1"),
|
|
1108
1295
|
/** The producing repo's commit (short or full SHA). */
|
|
1109
|
-
commit:
|
|
1110
|
-
results:
|
|
1296
|
+
commit: z15.string().min(4).max(64),
|
|
1297
|
+
results: z15.array(ToolLevelResult).max(1e4)
|
|
1111
1298
|
});
|
|
1112
1299
|
|
|
1113
1300
|
// src/schema/proc.ts
|
|
1114
|
-
import { z as
|
|
1115
|
-
var ProcSort =
|
|
1116
|
-
var ProcListParams =
|
|
1301
|
+
import { z as z16 } from "zod";
|
|
1302
|
+
var ProcSort = z16.enum(["cpu", "memory", "pid", "name"]);
|
|
1303
|
+
var ProcListParams = z16.strictObject({
|
|
1117
1304
|
/** Case-insensitive substring of the process name or its command line. */
|
|
1118
|
-
name:
|
|
1305
|
+
name: z16.string().min(1).max(128).optional(),
|
|
1119
1306
|
sort: ProcSort.default("cpu"),
|
|
1120
|
-
limit:
|
|
1307
|
+
limit: z16.int().min(1).max(500).default(50)
|
|
1121
1308
|
});
|
|
1122
|
-
var ProcInfo =
|
|
1123
|
-
pid:
|
|
1309
|
+
var ProcInfo = z16.strictObject({
|
|
1310
|
+
pid: z16.int().min(0),
|
|
1124
1311
|
/** Parent process id; null where the OS does not report it. */
|
|
1125
|
-
ppid:
|
|
1126
|
-
name:
|
|
1312
|
+
ppid: z16.int().min(0).nullable(),
|
|
1313
|
+
name: z16.string().max(256),
|
|
1127
1314
|
/** The command line, cut to 1024 characters. */
|
|
1128
|
-
command:
|
|
1315
|
+
command: z16.string().max(1024),
|
|
1129
1316
|
/** Share of one core, as `ps` and Task Manager report it; null where the OS does not say. */
|
|
1130
|
-
cpu_percent:
|
|
1317
|
+
cpu_percent: z16.number().min(0).nullable(),
|
|
1131
1318
|
memory_bytes: nonNegInt.nullable(),
|
|
1132
|
-
user:
|
|
1319
|
+
user: z16.string().max(128).nullable()
|
|
1133
1320
|
});
|
|
1134
|
-
var ProcListResult =
|
|
1135
|
-
processes:
|
|
1321
|
+
var ProcListResult = z16.strictObject({
|
|
1322
|
+
processes: z16.array(ProcInfo).max(500),
|
|
1136
1323
|
/** Processes that matched before `limit`. */
|
|
1137
1324
|
total: nonNegInt,
|
|
1138
|
-
truncated:
|
|
1325
|
+
truncated: z16.boolean()
|
|
1139
1326
|
});
|
|
1140
|
-
var ProcPortsParams =
|
|
1327
|
+
var ProcPortsParams = z16.strictObject({
|
|
1141
1328
|
/** Only this port. */
|
|
1142
|
-
port:
|
|
1329
|
+
port: z16.int().min(1).max(65535).optional()
|
|
1143
1330
|
});
|
|
1144
|
-
var ProcPort =
|
|
1145
|
-
port:
|
|
1146
|
-
protocol:
|
|
1331
|
+
var ProcPort = z16.strictObject({
|
|
1332
|
+
port: z16.int().min(1).max(65535),
|
|
1333
|
+
protocol: z16.enum(["tcp", "udp"]),
|
|
1147
1334
|
/** The local address it listens on ("127.0.0.1", "*", "::"). */
|
|
1148
|
-
address:
|
|
1149
|
-
pid:
|
|
1150
|
-
process:
|
|
1335
|
+
address: z16.string().max(64),
|
|
1336
|
+
pid: z16.int().min(0).nullable(),
|
|
1337
|
+
process: z16.string().max(256).nullable()
|
|
1151
1338
|
});
|
|
1152
|
-
var ProcPortsResult =
|
|
1153
|
-
var ProcKillParams =
|
|
1154
|
-
pid:
|
|
1339
|
+
var ProcPortsResult = z16.strictObject({ ports: z16.array(ProcPort).max(4e3) });
|
|
1340
|
+
var ProcKillParams = z16.strictObject({
|
|
1341
|
+
pid: z16.int().min(1),
|
|
1155
1342
|
/** Kill outright (SIGKILL; on Windows the same /F) instead of asking it to quit. */
|
|
1156
|
-
force:
|
|
1343
|
+
force: z16.boolean().default(false)
|
|
1157
1344
|
});
|
|
1158
|
-
var ProcKillResult =
|
|
1159
|
-
pid:
|
|
1160
|
-
signal:
|
|
1345
|
+
var ProcKillResult = z16.strictObject({
|
|
1346
|
+
pid: z16.int().min(1),
|
|
1347
|
+
signal: z16.enum(["SIGTERM", "SIGKILL"]),
|
|
1161
1348
|
/** True when the process was gone within 3 s. */
|
|
1162
|
-
exited:
|
|
1349
|
+
exited: z16.boolean()
|
|
1163
1350
|
});
|
|
1164
1351
|
|
|
1165
1352
|
// src/schema/clipboard.ts
|
|
1166
|
-
import { z as
|
|
1167
|
-
var ClipboardReadParams =
|
|
1168
|
-
var ClipboardReadResult =
|
|
1353
|
+
import { z as z17 } from "zod";
|
|
1354
|
+
var ClipboardReadParams = z17.strictObject({});
|
|
1355
|
+
var ClipboardReadResult = z17.strictObject({
|
|
1169
1356
|
/** The clipboard's text ("" when it holds none), cut to 1 MiB. */
|
|
1170
|
-
text:
|
|
1171
|
-
truncated:
|
|
1357
|
+
text: z17.string().max(1048576),
|
|
1358
|
+
truncated: z17.boolean()
|
|
1172
1359
|
});
|
|
1173
|
-
var ClipboardWriteParams =
|
|
1174
|
-
var ClipboardWriteResult =
|
|
1360
|
+
var ClipboardWriteParams = z17.strictObject({ text: z17.string().max(1048576) });
|
|
1361
|
+
var ClipboardWriteResult = z17.strictObject({ bytes: nonNegInt });
|
|
1175
1362
|
|
|
1176
1363
|
// src/schema/system.ts
|
|
1177
|
-
import { z as
|
|
1178
|
-
var SystemOpenUrlParams =
|
|
1364
|
+
import { z as z18 } from "zod";
|
|
1365
|
+
var SystemOpenUrlParams = z18.strictObject({
|
|
1179
1366
|
/** http, https or mailto; opened in the person's default app for it. */
|
|
1180
|
-
url:
|
|
1367
|
+
url: z18.string().min(1).max(4096)
|
|
1181
1368
|
});
|
|
1182
|
-
var SystemOpenUrlResult =
|
|
1183
|
-
var SystemOpenPathParams =
|
|
1369
|
+
var SystemOpenUrlResult = z18.strictObject({ url: z18.string().max(4096) });
|
|
1370
|
+
var SystemOpenPathParams = z18.strictObject({
|
|
1184
1371
|
path: AbsPath,
|
|
1185
1372
|
/** Show it in the file manager (Finder, Explorer) instead of opening it. */
|
|
1186
|
-
reveal:
|
|
1373
|
+
reveal: z18.boolean().default(false)
|
|
1187
1374
|
});
|
|
1188
|
-
var SystemOpenPathResult =
|
|
1189
|
-
var SystemNotifyParams =
|
|
1190
|
-
title:
|
|
1191
|
-
body:
|
|
1375
|
+
var SystemOpenPathResult = z18.strictObject({ path: AbsPath, revealed: z18.boolean() });
|
|
1376
|
+
var SystemNotifyParams = z18.strictObject({
|
|
1377
|
+
title: z18.string().min(1).max(128),
|
|
1378
|
+
body: z18.string().max(1024).default("")
|
|
1192
1379
|
});
|
|
1193
|
-
var SystemNotifyResult =
|
|
1380
|
+
var SystemNotifyResult = z18.strictObject({
|
|
1194
1381
|
/** False when this computer has no notification service to show it (a bare Linux box). */
|
|
1195
|
-
shown:
|
|
1382
|
+
shown: z18.boolean()
|
|
1196
1383
|
});
|
|
1197
1384
|
|
|
1198
1385
|
// src/schema/screen.ts
|
|
1199
|
-
import { z as
|
|
1200
|
-
var ScreenDisplay =
|
|
1386
|
+
import { z as z19 } from "zod";
|
|
1387
|
+
var ScreenDisplay = z19.strictObject({
|
|
1201
1388
|
/** The OS's display id; pass it to screen.capture. */
|
|
1202
1389
|
id: nonNegInt,
|
|
1203
|
-
name:
|
|
1390
|
+
name: z19.string().max(128),
|
|
1204
1391
|
/** Position and size in the OS's logical points (x and y may be negative left of or above the main display). */
|
|
1205
|
-
x:
|
|
1206
|
-
y:
|
|
1207
|
-
width:
|
|
1208
|
-
height:
|
|
1392
|
+
x: z19.int(),
|
|
1393
|
+
y: z19.int(),
|
|
1394
|
+
width: z19.int().min(1),
|
|
1395
|
+
height: z19.int().min(1),
|
|
1209
1396
|
/** Pixels per point (2 on a Retina display). */
|
|
1210
|
-
scale:
|
|
1211
|
-
primary:
|
|
1397
|
+
scale: z19.number().min(0.1).max(8),
|
|
1398
|
+
primary: z19.boolean()
|
|
1212
1399
|
});
|
|
1213
|
-
var ScreenListParams =
|
|
1214
|
-
var ScreenListResult =
|
|
1215
|
-
var ScreenCaptureParams =
|
|
1400
|
+
var ScreenListParams = z19.strictObject({});
|
|
1401
|
+
var ScreenListResult = z19.strictObject({ displays: z19.array(ScreenDisplay).max(32) });
|
|
1402
|
+
var ScreenCaptureParams = z19.strictObject({
|
|
1216
1403
|
/** The display (from screen.list); the primary display when absent. */
|
|
1217
1404
|
display_id: nonNegInt.optional(),
|
|
1218
|
-
format:
|
|
1405
|
+
format: z19.enum(["jpeg", "png"]).default("jpeg"),
|
|
1219
1406
|
/** Scale the picture down to at most this width in pixels (kept when already smaller). */
|
|
1220
|
-
max_width:
|
|
1407
|
+
max_width: z19.int().min(160).max(7680).default(1600)
|
|
1221
1408
|
});
|
|
1222
|
-
var ScreenCaptureResult =
|
|
1409
|
+
var ScreenCaptureResult = z19.strictObject({
|
|
1223
1410
|
display_id: nonNegInt,
|
|
1224
|
-
mime_type:
|
|
1225
|
-
width:
|
|
1226
|
-
height:
|
|
1411
|
+
mime_type: z19.enum(["image/jpeg", "image/png"]),
|
|
1412
|
+
width: z19.int().min(1),
|
|
1413
|
+
height: z19.int().min(1),
|
|
1227
1414
|
/** The display's full resolution in pixels, before scaling. */
|
|
1228
|
-
source_width:
|
|
1229
|
-
source_height:
|
|
1415
|
+
source_width: z19.int().min(1),
|
|
1416
|
+
source_height: z19.int().min(1),
|
|
1230
1417
|
/** The image, base64 (at most 6 MiB of text). */
|
|
1231
|
-
data_base64:
|
|
1418
|
+
data_base64: z19.string().max(6291456)
|
|
1232
1419
|
});
|
|
1233
1420
|
|
|
1234
1421
|
// src/schema/window.ts
|
|
1235
|
-
import { z as
|
|
1236
|
-
var WindowInfo =
|
|
1422
|
+
import { z as z20 } from "zod";
|
|
1423
|
+
var WindowInfo = z20.strictObject({
|
|
1237
1424
|
/** The OS's window handle (macOS window number, Windows HWND, X11 window id). */
|
|
1238
1425
|
id: nonNegInt,
|
|
1239
|
-
title:
|
|
1426
|
+
title: z20.string().max(512),
|
|
1240
1427
|
/** Position and size in logical points. */
|
|
1241
|
-
x:
|
|
1242
|
-
y:
|
|
1243
|
-
width:
|
|
1244
|
-
height:
|
|
1428
|
+
x: z20.int(),
|
|
1429
|
+
y: z20.int(),
|
|
1430
|
+
width: z20.int().min(0),
|
|
1431
|
+
height: z20.int().min(0),
|
|
1245
1432
|
/**
|
|
1246
1433
|
* The application that owns the window, by the name the OS shows people; absent when the OS does
|
|
1247
1434
|
* not say. Optional (never null, the schema rule) because it was added in protocol 1.7: an older
|
|
1248
1435
|
* app's answer has no such field (FIELDS_SINCE).
|
|
1249
1436
|
*/
|
|
1250
|
-
app:
|
|
1437
|
+
app: z20.string().max(256).optional(),
|
|
1251
1438
|
/** The owning process id; absent when the OS does not say. Added in protocol 1.7. */
|
|
1252
|
-
pid:
|
|
1439
|
+
pid: z20.int().min(0).optional()
|
|
1253
1440
|
});
|
|
1254
|
-
var WindowListParams =
|
|
1441
|
+
var WindowListParams = z20.strictObject({
|
|
1255
1442
|
/** Case-insensitive substring of the window title. */
|
|
1256
|
-
title:
|
|
1257
|
-
limit:
|
|
1443
|
+
title: z20.string().min(1).max(256).optional(),
|
|
1444
|
+
limit: z20.int().min(1).max(500).default(100)
|
|
1258
1445
|
});
|
|
1259
|
-
var WindowListResult =
|
|
1260
|
-
windows:
|
|
1446
|
+
var WindowListResult = z20.strictObject({
|
|
1447
|
+
windows: z20.array(WindowInfo).max(500),
|
|
1261
1448
|
total: nonNegInt,
|
|
1262
|
-
truncated:
|
|
1449
|
+
truncated: z20.boolean()
|
|
1263
1450
|
});
|
|
1264
|
-
var WindowFocusParams =
|
|
1265
|
-
var WindowFocusResult =
|
|
1266
|
-
var WindowMoveParams =
|
|
1451
|
+
var WindowFocusParams = z20.strictObject({ id: nonNegInt });
|
|
1452
|
+
var WindowFocusResult = z20.strictObject({ window: WindowInfo });
|
|
1453
|
+
var WindowMoveParams = z20.strictObject({
|
|
1267
1454
|
id: nonNegInt,
|
|
1268
1455
|
/** New top-left corner; unchanged when absent. */
|
|
1269
|
-
x:
|
|
1270
|
-
y:
|
|
1456
|
+
x: z20.int().optional(),
|
|
1457
|
+
y: z20.int().optional(),
|
|
1271
1458
|
/** New size; unchanged when absent. */
|
|
1272
|
-
width:
|
|
1273
|
-
height:
|
|
1459
|
+
width: z20.int().min(50).max(16384).optional(),
|
|
1460
|
+
height: z20.int().min(50).max(16384).optional()
|
|
1274
1461
|
});
|
|
1275
|
-
var WindowMoveResult =
|
|
1276
|
-
var WindowMinimizeParams =
|
|
1277
|
-
var WindowMinimizeResult =
|
|
1462
|
+
var WindowMoveResult = z20.strictObject({ window: WindowInfo });
|
|
1463
|
+
var WindowMinimizeParams = z20.strictObject({ id: nonNegInt });
|
|
1464
|
+
var WindowMinimizeResult = z20.strictObject({ id: nonNegInt });
|
|
1278
1465
|
|
|
1279
1466
|
// src/schema/input.ts
|
|
1280
|
-
import { z as
|
|
1281
|
-
var InputKey =
|
|
1467
|
+
import { z as z21 } from "zod";
|
|
1468
|
+
var InputKey = z21.enum([
|
|
1282
1469
|
"cmd",
|
|
1283
1470
|
"ctrl",
|
|
1284
1471
|
"alt",
|
|
@@ -1358,203 +1545,203 @@ var InputKey = z20.enum([
|
|
|
1358
1545
|
"backslash",
|
|
1359
1546
|
"grave"
|
|
1360
1547
|
]);
|
|
1361
|
-
var InputTypeTextParams =
|
|
1362
|
-
var InputTypeTextResult =
|
|
1363
|
-
var InputHotkeyParams =
|
|
1548
|
+
var InputTypeTextParams = z21.strictObject({ text: z21.string().min(1).max(1e4) });
|
|
1549
|
+
var InputTypeTextResult = z21.strictObject({ characters: z21.int().min(1) });
|
|
1550
|
+
var InputHotkeyParams = z21.strictObject({
|
|
1364
1551
|
/** Pressed together in order and released in reverse: ["cmd", "shift", "t"]. */
|
|
1365
|
-
keys:
|
|
1552
|
+
keys: z21.array(InputKey).min(1).max(6)
|
|
1366
1553
|
});
|
|
1367
|
-
var InputHotkeyResult =
|
|
1368
|
-
var InputPoint =
|
|
1369
|
-
var InputMouseMoveParams =
|
|
1554
|
+
var InputHotkeyResult = z21.strictObject({ keys: z21.array(InputKey) });
|
|
1555
|
+
var InputPoint = z21.strictObject({ x: z21.int(), y: z21.int() });
|
|
1556
|
+
var InputMouseMoveParams = z21.strictObject({
|
|
1370
1557
|
/** Screen position in logical points (the coordinates screen.list and window.list report). */
|
|
1371
|
-
x:
|
|
1372
|
-
y:
|
|
1558
|
+
x: z21.int(),
|
|
1559
|
+
y: z21.int()
|
|
1373
1560
|
});
|
|
1374
|
-
var InputMouseMoveResult =
|
|
1561
|
+
var InputMouseMoveResult = z21.strictObject({
|
|
1375
1562
|
/** Where the pointer is now, read back from the OS. */
|
|
1376
1563
|
position: InputPoint
|
|
1377
1564
|
});
|
|
1378
|
-
var InputMouseClickParams =
|
|
1565
|
+
var InputMouseClickParams = z21.strictObject({
|
|
1379
1566
|
/** Move here first; clicks where the pointer is when absent. */
|
|
1380
|
-
x:
|
|
1381
|
-
y:
|
|
1382
|
-
button:
|
|
1383
|
-
double:
|
|
1567
|
+
x: z21.int().optional(),
|
|
1568
|
+
y: z21.int().optional(),
|
|
1569
|
+
button: z21.enum(["left", "right", "middle"]).default("left"),
|
|
1570
|
+
double: z21.boolean().default(false)
|
|
1384
1571
|
});
|
|
1385
|
-
var InputMouseClickResult =
|
|
1572
|
+
var InputMouseClickResult = z21.strictObject({
|
|
1386
1573
|
position: InputPoint,
|
|
1387
|
-
button:
|
|
1388
|
-
double:
|
|
1574
|
+
button: z21.enum(["left", "right", "middle"]),
|
|
1575
|
+
double: z21.boolean()
|
|
1389
1576
|
});
|
|
1390
1577
|
|
|
1391
1578
|
// src/schema/power.ts
|
|
1392
|
-
import { z as
|
|
1393
|
-
var PowerStatusParams =
|
|
1394
|
-
var PowerStatusResult =
|
|
1395
|
-
has_battery:
|
|
1579
|
+
import { z as z22 } from "zod";
|
|
1580
|
+
var PowerStatusParams = z22.strictObject({});
|
|
1581
|
+
var PowerStatusResult = z22.strictObject({
|
|
1582
|
+
has_battery: z22.boolean(),
|
|
1396
1583
|
/** 0–100; null without a battery. */
|
|
1397
|
-
percent:
|
|
1398
|
-
charging:
|
|
1584
|
+
percent: z22.number().min(0).max(100).nullable(),
|
|
1585
|
+
charging: z22.boolean().nullable(),
|
|
1399
1586
|
/** On wall power; null where the OS does not say. */
|
|
1400
|
-
plugged_in:
|
|
1587
|
+
plugged_in: z22.boolean().nullable(),
|
|
1401
1588
|
/** Minutes of battery left; null when charging, unknown or without a battery. */
|
|
1402
1589
|
minutes_left: nonNegInt.nullable(),
|
|
1403
1590
|
/** Matrx 2 is keeping the computer awake (power.prevent_sleep) until this time; null when it is not. */
|
|
1404
1591
|
awake_until_ms: epochMs.nullable()
|
|
1405
1592
|
});
|
|
1406
|
-
var PowerPreventSleepParams =
|
|
1593
|
+
var PowerPreventSleepParams = z22.strictObject({
|
|
1407
1594
|
/** Keep the computer awake this long; 0 lets it sleep again now. */
|
|
1408
|
-
seconds:
|
|
1595
|
+
seconds: z22.int().min(0).max(86400),
|
|
1409
1596
|
/** Shown where the OS lists what keeps it awake. */
|
|
1410
|
-
reason:
|
|
1597
|
+
reason: z22.string().min(1).max(128).default("Matrx 2 is working")
|
|
1411
1598
|
});
|
|
1412
|
-
var PowerPreventSleepResult =
|
|
1599
|
+
var PowerPreventSleepResult = z22.strictObject({
|
|
1413
1600
|
/** When it may sleep again; null after seconds 0. */
|
|
1414
1601
|
awake_until_ms: epochMs.nullable()
|
|
1415
1602
|
});
|
|
1416
1603
|
|
|
1417
1604
|
// src/schema/resources.ts
|
|
1418
|
-
import { z as
|
|
1419
|
-
var ResourcesDisk =
|
|
1605
|
+
import { z as z23 } from "zod";
|
|
1606
|
+
var ResourcesDisk = z23.strictObject({
|
|
1420
1607
|
/** Where it is mounted ("/", "C:"). */
|
|
1421
|
-
mount:
|
|
1608
|
+
mount: z23.string().max(512),
|
|
1422
1609
|
/** The file system ("apfs", "NTFS", "ext4"). */
|
|
1423
|
-
fs:
|
|
1610
|
+
fs: z23.string().max(64),
|
|
1424
1611
|
size_bytes: nonNegInt,
|
|
1425
1612
|
used_bytes: nonNegInt,
|
|
1426
1613
|
available_bytes: nonNegInt
|
|
1427
1614
|
});
|
|
1428
|
-
var ResourcesSnapshotParams =
|
|
1429
|
-
var ResourcesSnapshotResult =
|
|
1430
|
-
cpu:
|
|
1615
|
+
var ResourcesSnapshotParams = z23.strictObject({});
|
|
1616
|
+
var ResourcesSnapshotResult = z23.strictObject({
|
|
1617
|
+
cpu: z23.strictObject({
|
|
1431
1618
|
/** Busy share of all cores, 0–100, measured now. */
|
|
1432
|
-
percent:
|
|
1433
|
-
cores:
|
|
1619
|
+
percent: z23.number().min(0).max(100),
|
|
1620
|
+
cores: z23.int().min(1),
|
|
1434
1621
|
/** 1, 5 and 15 minute load averages; null on Windows. */
|
|
1435
|
-
load:
|
|
1622
|
+
load: z23.array(z23.number().min(0)).length(3).nullable()
|
|
1436
1623
|
}),
|
|
1437
|
-
memory:
|
|
1438
|
-
swap:
|
|
1439
|
-
disks:
|
|
1624
|
+
memory: z23.strictObject({ total_bytes: nonNegInt, used_bytes: nonNegInt, available_bytes: nonNegInt }),
|
|
1625
|
+
swap: z23.strictObject({ total_bytes: nonNegInt, used_bytes: nonNegInt }),
|
|
1626
|
+
disks: z23.array(ResourcesDisk).max(64),
|
|
1440
1627
|
uptime_seconds: nonNegInt
|
|
1441
1628
|
});
|
|
1442
1629
|
|
|
1443
1630
|
// src/schema/audio.ts
|
|
1444
|
-
import { z as
|
|
1445
|
-
var AudioDevice =
|
|
1631
|
+
import { z as z24 } from "zod";
|
|
1632
|
+
var AudioDevice = z24.strictObject({
|
|
1446
1633
|
/** The OS's name for it, as audio.record takes it. */
|
|
1447
|
-
id:
|
|
1448
|
-
name:
|
|
1449
|
-
default:
|
|
1634
|
+
id: z24.string().min(1).max(256),
|
|
1635
|
+
name: z24.string().max(256),
|
|
1636
|
+
default: z24.boolean()
|
|
1450
1637
|
});
|
|
1451
|
-
var AudioDevicesParams =
|
|
1452
|
-
var AudioDevicesResult =
|
|
1453
|
-
inputs:
|
|
1454
|
-
outputs:
|
|
1638
|
+
var AudioDevicesParams = z24.strictObject({});
|
|
1639
|
+
var AudioDevicesResult = z24.strictObject({
|
|
1640
|
+
inputs: z24.array(AudioDevice).max(64),
|
|
1641
|
+
outputs: z24.array(AudioDevice).max(64)
|
|
1455
1642
|
});
|
|
1456
|
-
var AudioRecordParams =
|
|
1457
|
-
seconds:
|
|
1643
|
+
var AudioRecordParams = z24.strictObject({
|
|
1644
|
+
seconds: z24.number().min(0.5).max(600),
|
|
1458
1645
|
/** The microphone (from audio.devices); the default input when absent. */
|
|
1459
|
-
device_id:
|
|
1646
|
+
device_id: z24.string().min(1).max(256).optional(),
|
|
1460
1647
|
/** Where the WAV file goes; a new file in the temp folder when absent. */
|
|
1461
1648
|
path: AbsPath.optional()
|
|
1462
1649
|
});
|
|
1463
|
-
var AudioRecordResult =
|
|
1650
|
+
var AudioRecordResult = z24.strictObject({
|
|
1464
1651
|
path: AbsPath,
|
|
1465
|
-
seconds:
|
|
1652
|
+
seconds: z24.number().min(0),
|
|
1466
1653
|
bytes: nonNegInt,
|
|
1467
1654
|
/** Loudest sample, 0–1: 0 means the device gave silence. */
|
|
1468
|
-
peak:
|
|
1655
|
+
peak: z24.number().min(0).max(1)
|
|
1469
1656
|
});
|
|
1470
|
-
var AudioPlayParams =
|
|
1471
|
-
var AudioPlayResult =
|
|
1657
|
+
var AudioPlayParams = z24.strictObject({ path: AbsPath });
|
|
1658
|
+
var AudioPlayResult = z24.strictObject({ path: AbsPath, seconds: z24.number().min(0) });
|
|
1472
1659
|
|
|
1473
1660
|
// src/schema/fs-watch.ts
|
|
1474
|
-
import { z as
|
|
1475
|
-
var FsWatchId =
|
|
1476
|
-
var FsWatchStartParams =
|
|
1661
|
+
import { z as z25 } from "zod";
|
|
1662
|
+
var FsWatchId = z25.string().regex(/^fw_[A-Za-z0-9]{12,40}$/);
|
|
1663
|
+
var FsWatchStartParams = z25.strictObject({
|
|
1477
1664
|
path: AbsPath,
|
|
1478
|
-
recursive:
|
|
1665
|
+
recursive: z25.boolean().default(true),
|
|
1479
1666
|
/** Globs relative to `path` whose changes are not reported (".git/**", "node_modules/**"). */
|
|
1480
|
-
ignore:
|
|
1667
|
+
ignore: z25.array(z25.string().max(256)).max(64).default([])
|
|
1481
1668
|
});
|
|
1482
|
-
var FsWatchStartResult =
|
|
1669
|
+
var FsWatchStartResult = z25.strictObject({
|
|
1483
1670
|
watch_id: FsWatchId,
|
|
1484
1671
|
path: AbsPath,
|
|
1485
1672
|
/** The watch ends by itself if nobody reads it for 30 minutes. */
|
|
1486
1673
|
expires_at_ms: epochMs
|
|
1487
1674
|
});
|
|
1488
|
-
var FsWatchEventsParams =
|
|
1675
|
+
var FsWatchEventsParams = z25.strictObject({
|
|
1489
1676
|
watch_id: FsWatchId,
|
|
1490
1677
|
/** Wait up to this long for a first change when none is waiting (0 answers at once). */
|
|
1491
|
-
wait_ms:
|
|
1678
|
+
wait_ms: z25.int().min(0).max(25e3).default(0)
|
|
1492
1679
|
});
|
|
1493
|
-
var FsWatchEventsResult =
|
|
1680
|
+
var FsWatchEventsResult = z25.strictObject({
|
|
1494
1681
|
/** What changed since the last read, oldest first; re-checked against the disk when read. */
|
|
1495
|
-
changes:
|
|
1682
|
+
changes: z25.array(FsChange).max(1e3),
|
|
1496
1683
|
/** Changes were dropped (more than 1000 waited): list the folder again. */
|
|
1497
|
-
overflow:
|
|
1684
|
+
overflow: z25.boolean(),
|
|
1498
1685
|
expires_at_ms: epochMs
|
|
1499
1686
|
});
|
|
1500
|
-
var FsWatchStopParams =
|
|
1501
|
-
var FsWatchStopResult =
|
|
1687
|
+
var FsWatchStopParams = z25.strictObject({ watch_id: FsWatchId });
|
|
1688
|
+
var FsWatchStopResult = z25.strictObject({ watch_id: FsWatchId });
|
|
1502
1689
|
|
|
1503
1690
|
// src/schema/exec-job.ts
|
|
1504
|
-
import { z as
|
|
1505
|
-
var ExecJobId =
|
|
1506
|
-
var ExecJobStartParams =
|
|
1507
|
-
command:
|
|
1691
|
+
import { z as z26 } from "zod";
|
|
1692
|
+
var ExecJobId = z26.string().regex(/^job_[A-Za-z0-9]{12,40}$/);
|
|
1693
|
+
var ExecJobStartParams = z26.strictObject({
|
|
1694
|
+
command: z26.string().min(1).max(131072),
|
|
1508
1695
|
/** The folder it runs in; the home folder when absent. */
|
|
1509
1696
|
cwd: AbsPath.optional(),
|
|
1510
|
-
env:
|
|
1697
|
+
env: z26.record(z26.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/).max(128), z26.string().max(32768)).optional()
|
|
1511
1698
|
});
|
|
1512
|
-
var ExecJobStartResult =
|
|
1513
|
-
var ExecJobOutputParams =
|
|
1699
|
+
var ExecJobStartResult = z26.strictObject({ job_id: ExecJobId, pid: z26.int().min(1), cwd: AbsPath });
|
|
1700
|
+
var ExecJobOutputParams = z26.strictObject({
|
|
1514
1701
|
job_id: ExecJobId,
|
|
1515
1702
|
/** Byte offset into the job's output to read from (next_offset of the last read; 0 = the start). */
|
|
1516
1703
|
offset: nonNegInt.default(0),
|
|
1517
1704
|
/** Wait up to this long for new output or the exit when none is waiting (0 answers at once). */
|
|
1518
|
-
wait_ms:
|
|
1519
|
-
max_bytes:
|
|
1705
|
+
wait_ms: z26.int().min(0).max(25e3).default(0),
|
|
1706
|
+
max_bytes: z26.int().min(1024).max(1048576).default(65536)
|
|
1520
1707
|
});
|
|
1521
|
-
var ExecJobOutputResult =
|
|
1708
|
+
var ExecJobOutputResult = z26.strictObject({
|
|
1522
1709
|
/** stdout and stderr interleaved as they arrived (UTF-8). */
|
|
1523
|
-
output:
|
|
1710
|
+
output: z26.string(),
|
|
1524
1711
|
next_offset: nonNegInt,
|
|
1525
1712
|
/** Bytes before `offset` that are gone (the job keeps its last 4 MiB). */
|
|
1526
1713
|
dropped_bytes: nonNegInt,
|
|
1527
|
-
running:
|
|
1528
|
-
exit_code:
|
|
1714
|
+
running: z26.boolean(),
|
|
1715
|
+
exit_code: z26.int().nullable()
|
|
1529
1716
|
});
|
|
1530
|
-
var ExecJobStopParams =
|
|
1717
|
+
var ExecJobStopParams = z26.strictObject({
|
|
1531
1718
|
job_id: ExecJobId,
|
|
1532
1719
|
/** End it at once (SIGKILL; on Windows the whole tree with /F) instead of asking it to quit. */
|
|
1533
|
-
force:
|
|
1720
|
+
force: z26.boolean().default(false)
|
|
1534
1721
|
});
|
|
1535
|
-
var ExecJobStopResult =
|
|
1536
|
-
var ExecJobInfo =
|
|
1722
|
+
var ExecJobStopResult = z26.strictObject({ job_id: ExecJobId, exited: z26.boolean(), exit_code: z26.int().nullable() });
|
|
1723
|
+
var ExecJobInfo = z26.strictObject({
|
|
1537
1724
|
job_id: ExecJobId,
|
|
1538
|
-
command:
|
|
1539
|
-
pid:
|
|
1725
|
+
command: z26.string().max(1024),
|
|
1726
|
+
pid: z26.int().min(1),
|
|
1540
1727
|
cwd: AbsPath,
|
|
1541
|
-
running:
|
|
1542
|
-
exit_code:
|
|
1728
|
+
running: z26.boolean(),
|
|
1729
|
+
exit_code: z26.int().nullable(),
|
|
1543
1730
|
started_at_ms: epochMs,
|
|
1544
1731
|
output_bytes: nonNegInt
|
|
1545
1732
|
});
|
|
1546
|
-
var ExecJobListParams =
|
|
1547
|
-
var ExecJobListResult =
|
|
1733
|
+
var ExecJobListParams = z26.strictObject({});
|
|
1734
|
+
var ExecJobListResult = z26.strictObject({ jobs: z26.array(ExecJobInfo).max(64) });
|
|
1548
1735
|
|
|
1549
1736
|
// src/schema/coding.ts
|
|
1550
|
-
import { z as
|
|
1551
|
-
var CodingServiceCredentials =
|
|
1552
|
-
access_token:
|
|
1553
|
-
user_id:
|
|
1737
|
+
import { z as z27 } from "zod";
|
|
1738
|
+
var CodingServiceCredentials = z27.strictObject({
|
|
1739
|
+
access_token: z27.string().min(16).max(16384),
|
|
1740
|
+
user_id: z27.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
1554
1741
|
/** The AI Matrx server this app talks to (production, or a local server on the nightly copy). */
|
|
1555
|
-
server_url:
|
|
1742
|
+
server_url: z27.string().min(1).max(2048).regex(/^https?:\/\/[^\s/?#]+(\/[^\s?#]*)?$/)
|
|
1556
1743
|
});
|
|
1557
|
-
var CodingHistoryBlocked =
|
|
1744
|
+
var CodingHistoryBlocked = z27.enum([
|
|
1558
1745
|
"signed_out",
|
|
1559
1746
|
"offline",
|
|
1560
1747
|
"organization_required",
|
|
@@ -1562,11 +1749,11 @@ var CodingHistoryBlocked = z26.enum([
|
|
|
1562
1749
|
"cloud_list_unavailable",
|
|
1563
1750
|
"history_too_large"
|
|
1564
1751
|
]);
|
|
1565
|
-
var CodingHistoryFailure =
|
|
1566
|
-
session_id:
|
|
1567
|
-
reason:
|
|
1752
|
+
var CodingHistoryFailure = z27.strictObject({
|
|
1753
|
+
session_id: z27.string().max(64),
|
|
1754
|
+
reason: z27.string().max(300)
|
|
1568
1755
|
});
|
|
1569
|
-
var CodingHistoryRun =
|
|
1756
|
+
var CodingHistoryRun = z27.strictObject({
|
|
1570
1757
|
/** Claude Code sessions found on this computer. */
|
|
1571
1758
|
local_sessions: nonNegInt,
|
|
1572
1759
|
/** Of those, already complete in AI Matrx. */
|
|
@@ -1581,39 +1768,39 @@ var CodingHistoryRun = z26.strictObject({
|
|
|
1581
1768
|
/** Changed while being read; a later run takes them. */
|
|
1582
1769
|
changed: nonNegInt,
|
|
1583
1770
|
failed: nonNegInt,
|
|
1584
|
-
failures:
|
|
1771
|
+
failures: z27.array(CodingHistoryFailure).max(20),
|
|
1585
1772
|
/** Candidates not reached yet. */
|
|
1586
1773
|
remaining: nonNegInt,
|
|
1587
1774
|
/** The one line a person reads, e.g. "Imported 12 of 14 sessions. 140 already in AI Matrx." */
|
|
1588
|
-
summary:
|
|
1775
|
+
summary: z27.string().max(400)
|
|
1589
1776
|
});
|
|
1590
|
-
var CodingHistoryStep =
|
|
1777
|
+
var CodingHistoryStep = z27.strictObject({
|
|
1591
1778
|
/** Null when the run could not start (blocked before a plan existed). */
|
|
1592
|
-
plan_id:
|
|
1593
|
-
finished:
|
|
1779
|
+
plan_id: z27.string().regex(/^[0-9a-f]{32}$/).nullable(),
|
|
1780
|
+
finished: z27.boolean(),
|
|
1594
1781
|
blocked: CodingHistoryBlocked.nullable(),
|
|
1595
1782
|
run: CodingHistoryRun
|
|
1596
1783
|
});
|
|
1597
|
-
var CodingPlanMissingParams =
|
|
1598
|
-
var CodingImportNextParams =
|
|
1599
|
-
plan_id:
|
|
1784
|
+
var CodingPlanMissingParams = z27.strictObject({ credentials: CodingServiceCredentials.nullable() });
|
|
1785
|
+
var CodingImportNextParams = z27.strictObject({
|
|
1786
|
+
plan_id: z27.string().regex(/^[0-9a-f]{32}$/),
|
|
1600
1787
|
credentials: CodingServiceCredentials.nullable()
|
|
1601
1788
|
});
|
|
1602
|
-
var CodingServiceProgress =
|
|
1603
|
-
phase:
|
|
1789
|
+
var CodingServiceProgress = z27.strictObject({
|
|
1790
|
+
phase: z27.enum(["checking", "importing"]),
|
|
1604
1791
|
done: nonNegInt,
|
|
1605
1792
|
total: nonNegInt
|
|
1606
1793
|
});
|
|
1607
|
-
var CodingHistoryImportMissingParams =
|
|
1608
|
-
var CodingHistoryImportMissingResult =
|
|
1609
|
-
state:
|
|
1794
|
+
var CodingHistoryImportMissingParams = z27.strictObject({});
|
|
1795
|
+
var CodingHistoryImportMissingResult = z27.strictObject({
|
|
1796
|
+
state: z27.enum(["done", "blocked", "cancelled"]),
|
|
1610
1797
|
blocked: CodingHistoryBlocked.nullable(),
|
|
1611
1798
|
run: CodingHistoryRun,
|
|
1612
1799
|
elapsed_ms: nonNegInt
|
|
1613
1800
|
});
|
|
1614
|
-
var CodingHistoryProgressEvent =
|
|
1801
|
+
var CodingHistoryProgressEvent = z27.strictObject({
|
|
1615
1802
|
request_id: RequestId,
|
|
1616
|
-
phase:
|
|
1803
|
+
phase: z27.enum(["checking", "importing"]),
|
|
1617
1804
|
/** Sessions settled so far, of `total` candidates (0 of 0 while checking). */
|
|
1618
1805
|
done: nonNegInt,
|
|
1619
1806
|
total: nonNegInt,
|
|
@@ -1667,6 +1854,26 @@ var OPS = {
|
|
|
1667
1854
|
"apps.projects.update": { params: AppsProjectsUpdateParams, result: AppsProjectsUpdateResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1668
1855
|
"apps.projects.copy": { params: AppsProjectsCopyParams, result: AppsProjectsCopyResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1669
1856
|
"apps.projects.unfile": { params: AppsProjectsUnfileParams, result: AppsProjectsUnfileResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1857
|
+
// 1.10: the app's windows and accounts (usage by vote, weekly resets, window actions), project move/create, Refresh pins.
|
|
1858
|
+
"apps.windows.list": { params: AppsWindowsListParams, result: AppsWindowsListResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1859
|
+
"apps.windows.open": { params: AppsWindowsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1860
|
+
"apps.windows.reload": { params: AppsWindowsReloadParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "CONFLICT", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1861
|
+
"apps.windows.restart": { params: AppsWindowsRestartParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1862
|
+
"apps.windows.refresh_usage": { params: AppsWindowsRefreshUsageParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1863
|
+
"apps.accounts.usage": { params: AppsAccountsUsageParams, result: AppsAccountsUsageResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1864
|
+
"apps.accounts.resets": { params: AppsAccountsResetsParams, result: AppsAccountsResetsResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1865
|
+
"apps.projects.move": { params: AppsProjectsMoveParams, result: AppsProjectsMoveResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1866
|
+
"apps.projects.create": { params: AppsProjectsCreateParams, result: AppsProjectsCreateResult, kind: "unary", since: "1.10", errors: ["INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
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"] },
|
|
1670
1877
|
"proc.list": { params: ProcListParams, result: ProcListResult, kind: "unary", since: "1.3", errors: ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1671
1878
|
"proc.ports": { params: ProcPortsParams, result: ProcPortsResult, kind: "unary", since: "1.3", errors: ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1672
1879
|
"proc.kill": { params: ProcKillParams, result: ProcKillResult, kind: "unary", since: "1.3", errors: ["NOT_FOUND", "AUTH_FORBIDDEN", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "INTERNAL"] },
|
|
@@ -1999,7 +2206,51 @@ var NAMED_SCHEMAS = {
|
|
|
1999
2206
|
AppsProjectsUpdateParams,
|
|
2000
2207
|
AppsProjectsUpdateResult,
|
|
2001
2208
|
AppsProjectsCopyParams,
|
|
2002
|
-
AppsProjectsCopyResult
|
|
2209
|
+
AppsProjectsCopyResult,
|
|
2210
|
+
ChatFamily,
|
|
2211
|
+
AppWindowInfo,
|
|
2212
|
+
AccountUsage,
|
|
2213
|
+
AccountReset,
|
|
2214
|
+
AppsWindowsListParams,
|
|
2215
|
+
AppsWindowsListResult,
|
|
2216
|
+
AppsAccountsUsageParams,
|
|
2217
|
+
AppsAccountsUsageResult,
|
|
2218
|
+
AppsAccountsResetsParams,
|
|
2219
|
+
AppsAccountsResetsResult,
|
|
2220
|
+
AppsWindowActionResult,
|
|
2221
|
+
AppsWindowsOpenParams,
|
|
2222
|
+
AppsWindowsReloadParams,
|
|
2223
|
+
AppsWindowsRestartParams,
|
|
2224
|
+
AppsWindowsRefreshUsageParams,
|
|
2225
|
+
AppsProjectsMoveParams,
|
|
2226
|
+
AppsProjectsMoveResult,
|
|
2227
|
+
AppsProjectsCreateParams,
|
|
2228
|
+
AppsProjectsCreateResult,
|
|
2229
|
+
AppsProjectsImportPinsParams,
|
|
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
|
|
2003
2254
|
};
|
|
2004
2255
|
|
|
2005
2256
|
// src/versioning.ts
|
|
@@ -2009,7 +2260,7 @@ var FIELDS_SINCE = {
|
|
|
2009
2260
|
"RelayCallResponse|0": { protocol_version: "1.1" },
|
|
2010
2261
|
"RelayCallResponse|1": { protocol_version: "1.1" },
|
|
2011
2262
|
WindowInfo: { app: "1.7", pid: "1.7" },
|
|
2012
|
-
AppsChatsListResult: { updating: "1.9", live: "1.9" }
|
|
2263
|
+
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" }
|
|
2013
2264
|
};
|
|
2014
2265
|
var NULL_SINCE = {
|
|
2015
2266
|
"RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
|
|
@@ -2106,7 +2357,7 @@ function forPeer(op, part, value, version) {
|
|
|
2106
2357
|
var VERSIONED_RESULT_OPS = [...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys()];
|
|
2107
2358
|
|
|
2108
2359
|
// src/contract.ts
|
|
2109
|
-
var CONTRACT_SHA256 = "
|
|
2360
|
+
var CONTRACT_SHA256 = "de809e319141925b0d86c5acbfe2493f3a85cad7c668c3e20b082e9319f5199b";
|
|
2110
2361
|
|
|
2111
2362
|
// src/close-policy.ts
|
|
2112
2363
|
var CLOSE_RULES = {
|
|
@@ -2448,6 +2699,8 @@ function renderToolStatusMarkdown(status) {
|
|
|
2448
2699
|
}
|
|
2449
2700
|
export {
|
|
2450
2701
|
AbsPath,
|
|
2702
|
+
AccountReset,
|
|
2703
|
+
AccountUsage,
|
|
2451
2704
|
AppFeatureStatus,
|
|
2452
2705
|
AppInfo,
|
|
2453
2706
|
AppKey,
|
|
@@ -2456,9 +2709,17 @@ export {
|
|
|
2456
2709
|
AppProfileLocator,
|
|
2457
2710
|
AppSupport,
|
|
2458
2711
|
AppUsageReading,
|
|
2712
|
+
AppWindowInfo,
|
|
2713
|
+
AppsAccountsResetsParams,
|
|
2714
|
+
AppsAccountsResetsResult,
|
|
2715
|
+
AppsAccountsUsageParams,
|
|
2716
|
+
AppsAccountsUsageResult,
|
|
2459
2717
|
AppsChatsChangedEvent,
|
|
2718
|
+
AppsChatsColdParams,
|
|
2719
|
+
AppsChatsColdResult,
|
|
2460
2720
|
AppsChatsListParams,
|
|
2461
2721
|
AppsChatsListResult,
|
|
2722
|
+
AppsChatsOpenParams,
|
|
2462
2723
|
AppsChatsPlaceParams,
|
|
2463
2724
|
AppsChatsPlaceResult,
|
|
2464
2725
|
AppsChatsStarParams,
|
|
@@ -2478,14 +2739,36 @@ export {
|
|
|
2478
2739
|
AppsProfilesSaveResult,
|
|
2479
2740
|
AppsProjectsCopyParams,
|
|
2480
2741
|
AppsProjectsCopyResult,
|
|
2742
|
+
AppsProjectsCreateParams,
|
|
2743
|
+
AppsProjectsCreateResult,
|
|
2481
2744
|
AppsProjectsFileManyParams,
|
|
2482
2745
|
AppsProjectsFileManyResult,
|
|
2483
2746
|
AppsProjectsFileParams,
|
|
2484
2747
|
AppsProjectsFileResult,
|
|
2748
|
+
AppsProjectsImportPinsParams,
|
|
2749
|
+
AppsProjectsImportPinsResult,
|
|
2750
|
+
AppsProjectsMoveParams,
|
|
2751
|
+
AppsProjectsMoveResult,
|
|
2485
2752
|
AppsProjectsUnfileParams,
|
|
2486
2753
|
AppsProjectsUnfileResult,
|
|
2487
2754
|
AppsProjectsUpdateParams,
|
|
2488
2755
|
AppsProjectsUpdateResult,
|
|
2756
|
+
AppsSpendParams,
|
|
2757
|
+
AppsSpendResult,
|
|
2758
|
+
AppsSyncRunParams,
|
|
2759
|
+
AppsSyncStatusParams,
|
|
2760
|
+
AppsSyncStatusResult,
|
|
2761
|
+
AppsWindowActionResult,
|
|
2762
|
+
AppsWindowsAddParams,
|
|
2763
|
+
AppsWindowsListParams,
|
|
2764
|
+
AppsWindowsListResult,
|
|
2765
|
+
AppsWindowsOpenParams,
|
|
2766
|
+
AppsWindowsProcessesParams,
|
|
2767
|
+
AppsWindowsProcessesResult,
|
|
2768
|
+
AppsWindowsRefreshUsageParams,
|
|
2769
|
+
AppsWindowsReloadParams,
|
|
2770
|
+
AppsWindowsRestartParams,
|
|
2771
|
+
AppsWindowsSaveNamesParams,
|
|
2489
2772
|
AudioDevice,
|
|
2490
2773
|
AudioDevicesParams,
|
|
2491
2774
|
AudioDevicesResult,
|
|
@@ -2498,6 +2781,7 @@ export {
|
|
|
2498
2781
|
CLOSE_RULES,
|
|
2499
2782
|
CONTRACT_SHA256,
|
|
2500
2783
|
CancelMsg,
|
|
2784
|
+
ChatFamily,
|
|
2501
2785
|
ChatHidden,
|
|
2502
2786
|
ChatId,
|
|
2503
2787
|
ChatLastUse,
|
|
@@ -2527,6 +2811,7 @@ export {
|
|
|
2527
2811
|
CodingPlanMissingParams,
|
|
2528
2812
|
CodingServiceCredentials,
|
|
2529
2813
|
CodingServiceProgress,
|
|
2814
|
+
ColdChat,
|
|
2530
2815
|
ContractHash,
|
|
2531
2816
|
CoreToClientMsg,
|
|
2532
2817
|
CoreToServiceMsg,
|
|
@@ -2724,6 +3009,16 @@ export {
|
|
|
2724
3009
|
SessionReleaseParams,
|
|
2725
3010
|
SessionReleaseResult,
|
|
2726
3011
|
Signal,
|
|
3012
|
+
SpendAccount,
|
|
3013
|
+
SpendChat,
|
|
3014
|
+
SpendHelper,
|
|
3015
|
+
SpendIdle,
|
|
3016
|
+
SpendIdleScope,
|
|
3017
|
+
SpendLive,
|
|
3018
|
+
SpendModel,
|
|
3019
|
+
SpendScopes,
|
|
3020
|
+
SpendSplit,
|
|
3021
|
+
SpendStart,
|
|
2727
3022
|
StreamMeta,
|
|
2728
3023
|
StreamMsg,
|
|
2729
3024
|
SysinfoGetParams,
|