@ai-matrx/desktop-protocol 0.21.26 → 0.21.28
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 +12 -0
- package/dist/client.cjs +10 -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 +10 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +51 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +117 -84
- package/dist/index.d.ts +117 -84
- package/dist/index.js +51 -12
- package/dist/index.js.map +1 -1
- package/dist/{models-BJsUM5sC.d.cts → models-NgxBS190.d.cts} +15 -0
- package/dist/{models-BJsUM5sC.d.ts → models-NgxBS190.d.ts} +15 -0
- package/dist/react.d.cts +5 -0
- package/dist/react.d.ts +5 -0
- package/generated/desktop-protocol.schema.json +35 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OpName } from './models-
|
|
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 LlmRunning, A as LlmServerState, G as MlInstallPhase, I as MlInstallProgress, f as MlProgress, J as MlRuntimeState, K as MlServiceState, N as MlServiceStatus, P as MlStatusParams, Q as MlStatusResult, R as ModelsInstallParams, U as ModelsInstallResult, V as ModelsLlmInstallParams, X as ModelsLlmInstallResult, Y as ModelsLlmStartParams, Z as ModelsLlmStartResult, _ as ModelsLlmStatusParams, $ as ModelsLlmStatusResult, a0 as ModelsLlmStopParams, a1 as ModelsLlmStopResult, a2 as ModelsProgressEvent, a3 as ModelsStatusParams, a4 as ModelsStatusResult, a5 as ModelsTranscribeParams, M as ModelsTranscribeResult, a6 as NAMED_SCHEMAS, a7 as NamedSchemaId, c as OPS, a8 as OpDescriptor, a as OpParams, b as OpResult, a9 as OpSpec, aa as PING_TEXT, ab as PONG_TEXT, ac as ProtocolErrorBody, ad as RelayMsg, ae as RequestMsg, af as ResponseMsg, ag as SERVICES, ah as SUBPROTOCOL, ai as ServiceId, aj as ServiceOpName, ak as ServiceOpSpec, al as ServiceSpec, S as StreamMeta, am as StreamMsg, an as TextModelId, ao as TextModelInfo, ap as TranscriptSegment, T as TranscriptionModelId, aq as TranscriptionModelInfo, W as Welcome, ar as closeRule, i as isDesktopProtocolError, as as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-NgxBS190.cjs';
|
|
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 LlmRunning, A as LlmServerState, G as MlInstallPhase, I as MlInstallProgress, f as MlProgress, J as MlRuntimeState, K as MlServiceState, N as MlServiceStatus, P as MlStatusParams, Q as MlStatusResult, R as ModelsInstallParams, U as ModelsInstallResult, V as ModelsLlmInstallParams, X as ModelsLlmInstallResult, Y as ModelsLlmStartParams, Z as ModelsLlmStartResult, _ as ModelsLlmStatusParams, $ as ModelsLlmStatusResult, a0 as ModelsLlmStopParams, a1 as ModelsLlmStopResult, a2 as ModelsProgressEvent, a3 as ModelsStatusParams, a4 as ModelsStatusResult, a5 as ModelsTranscribeParams, M as ModelsTranscribeResult, a6 as NAMED_SCHEMAS, a7 as NamedSchemaId, c as OPS, a8 as OpDescriptor, a as OpParams, b as OpResult, a9 as OpSpec, aa as PING_TEXT, ab as PONG_TEXT, ac as ProtocolErrorBody, ad as RelayMsg, ae as RequestMsg, af as ResponseMsg, ag as SERVICES, ah as SUBPROTOCOL, ai as ServiceId, aj as ServiceOpName, ak as ServiceOpSpec, al as ServiceSpec, S as StreamMeta, am as StreamMsg, an as TextModelId, ao as TextModelInfo, ap as TranscriptSegment, T as TranscriptionModelId, aq as TranscriptionModelInfo, W as Welcome, ar as closeRule, i as isDesktopProtocolError, as as isTerminalClose } from './models-NgxBS190.cjs';
|
|
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.cjs';
|
|
5
5
|
|
|
6
6
|
/** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
|
|
@@ -63,10 +63,12 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
63
63
|
* time; status names the loopback port, never a URL).
|
|
64
64
|
* 1.32 — apps.projects.to_window `pin`: pin the moved chats in the target window, now when it is
|
|
65
65
|
* closed, else queued for its next close (result `pin`: when, pinned, already, queued).
|
|
66
|
+
* 1.33 — apps.chats.titles_check `stale_windows`: windows that keep writing replaced chat names
|
|
67
|
+
* back from memory (rewritten each pass; reloading the window stops it).
|
|
66
68
|
*/
|
|
67
|
-
declare const PROTOCOL_MINOR:
|
|
69
|
+
declare const PROTOCOL_MINOR: 33;
|
|
68
70
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
69
|
-
declare const PROTOCOL_VERSION: "1.
|
|
71
|
+
declare const PROTOCOL_VERSION: "1.33";
|
|
70
72
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
71
73
|
declare const u32: z.ZodInt;
|
|
72
74
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -233,84 +235,6 @@ type SysinfoHardwareResult = z.output<typeof SysinfoHardwareResult>;
|
|
|
233
235
|
|
|
234
236
|
/** @ai-matrx/desktop-protocol — cap fs. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
|
|
235
237
|
|
|
236
|
-
/**
|
|
237
|
-
* Copy a file or a whole folder (Finder's Duplicate, Copy and Paste, ⌥-drag). Desktop only (1.30):
|
|
238
|
-
* the daemon has no copy. Timestamps and permission bits are kept, symlinks are copied as links.
|
|
239
|
-
* A name already at `to_path` is CONFLICT/already_exists unless `overwrite`; replacing a folder
|
|
240
|
-
* with a file (or the reverse) is CONFLICT/is_a_directory; copying a folder into itself is
|
|
241
|
-
* INVALID_PARAMS/into_itself.
|
|
242
|
-
*/
|
|
243
|
-
declare const FsCopyParams: z.ZodObject<{
|
|
244
|
-
from_path: z.ZodString;
|
|
245
|
-
to_path: z.ZodString;
|
|
246
|
-
overwrite: z.ZodDefault<z.ZodBoolean>;
|
|
247
|
-
}, z.core.$strict>;
|
|
248
|
-
declare const FsCopyResult: z.ZodObject<{
|
|
249
|
-
from_path: z.ZodString;
|
|
250
|
-
to_path: z.ZodString;
|
|
251
|
-
}, z.core.$strict>;
|
|
252
|
-
/**
|
|
253
|
-
* Search the computer's own index by name (Finder's "This Mac", 1.30): Spotlight on macOS; elsewhere,
|
|
254
|
-
* or when the index answers nothing usable, a bounded walk of `scope` (or the home folder). `source`
|
|
255
|
-
* says which one answered. Entries are FsEntry (never following links), most relevant first.
|
|
256
|
-
*/
|
|
257
|
-
declare const FsSearchIndexParams: z.ZodObject<{
|
|
258
|
-
query: z.ZodString;
|
|
259
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
260
|
-
max_results: z.ZodDefault<z.ZodInt>;
|
|
261
|
-
}, z.core.$strict>;
|
|
262
|
-
declare const FsSearchIndexResult: z.ZodObject<{
|
|
263
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
264
|
-
name: z.ZodString;
|
|
265
|
-
path: z.ZodString;
|
|
266
|
-
kind: z.ZodEnum<{
|
|
267
|
-
file: "file";
|
|
268
|
-
dir: "dir";
|
|
269
|
-
symlink: "symlink";
|
|
270
|
-
}>;
|
|
271
|
-
size: z.ZodInt;
|
|
272
|
-
mtime: z.ZodNumber;
|
|
273
|
-
mode: z.ZodInt;
|
|
274
|
-
target: z.ZodNullable<z.ZodString>;
|
|
275
|
-
}, z.core.$strict>>;
|
|
276
|
-
truncated: z.ZodBoolean;
|
|
277
|
-
source: z.ZodEnum<{
|
|
278
|
-
index: "index";
|
|
279
|
-
walk: "walk";
|
|
280
|
-
}>;
|
|
281
|
-
}, z.core.$strict>;
|
|
282
|
-
/**
|
|
283
|
-
* Finder's Get Info facts beyond fs.stat (1.30): when it was made, who owns it, its size on disk
|
|
284
|
-
* (a folder's whole tree, bounded), how many items a folder holds, and its flags. null = the OS
|
|
285
|
-
* does not say (or the bound was hit before the folder's size was known).
|
|
286
|
-
*/
|
|
287
|
-
declare const FsInfoParams: z.ZodObject<{
|
|
288
|
-
path: z.ZodString;
|
|
289
|
-
}, z.core.$strict>;
|
|
290
|
-
declare const FsInfoResult: z.ZodObject<{
|
|
291
|
-
entry: z.ZodObject<{
|
|
292
|
-
name: z.ZodString;
|
|
293
|
-
path: z.ZodString;
|
|
294
|
-
kind: z.ZodEnum<{
|
|
295
|
-
file: "file";
|
|
296
|
-
dir: "dir";
|
|
297
|
-
symlink: "symlink";
|
|
298
|
-
}>;
|
|
299
|
-
size: z.ZodInt;
|
|
300
|
-
mtime: z.ZodNumber;
|
|
301
|
-
mode: z.ZodInt;
|
|
302
|
-
target: z.ZodNullable<z.ZodString>;
|
|
303
|
-
}, z.core.$strict>;
|
|
304
|
-
created: z.ZodNullable<z.ZodNumber>;
|
|
305
|
-
owner: z.ZodNullable<z.ZodString>;
|
|
306
|
-
group: z.ZodNullable<z.ZodString>;
|
|
307
|
-
total_size: z.ZodNullable<z.ZodInt>;
|
|
308
|
-
size_on_disk: z.ZodNullable<z.ZodInt>;
|
|
309
|
-
items: z.ZodNullable<z.ZodInt>;
|
|
310
|
-
hidden: z.ZodBoolean;
|
|
311
|
-
locked: z.ZodNullable<z.ZodBoolean>;
|
|
312
|
-
read_only: z.ZodBoolean;
|
|
313
|
-
}, z.core.$strict>;
|
|
314
238
|
declare const FsKind: z.ZodEnum<{
|
|
315
239
|
file: "file";
|
|
316
240
|
dir: "dir";
|
|
@@ -476,6 +400,90 @@ declare const FsMoveResult: z.ZodObject<{
|
|
|
476
400
|
to_path: z.ZodString;
|
|
477
401
|
}, z.core.$strict>;
|
|
478
402
|
type FsMoveResult = z.output<typeof FsMoveResult>;
|
|
403
|
+
/**
|
|
404
|
+
* Copy a file or a whole folder (Finder's Duplicate, Copy and Paste, ⌥-drag). Desktop only (1.30):
|
|
405
|
+
* the daemon has no copy. Timestamps and permission bits are kept, symlinks are copied as links.
|
|
406
|
+
* A name already at `to_path` is CONFLICT/already_exists unless `overwrite`; replacing a folder
|
|
407
|
+
* with a file (or the reverse) is CONFLICT/is_a_directory; copying a folder into itself is
|
|
408
|
+
* INVALID_PARAMS (no reason). A replaced item goes to the Trash first, as Finder's Replace.
|
|
409
|
+
*/
|
|
410
|
+
declare const FsCopyParams: z.ZodObject<{
|
|
411
|
+
from_path: z.ZodString;
|
|
412
|
+
to_path: z.ZodString;
|
|
413
|
+
overwrite: z.ZodDefault<z.ZodBoolean>;
|
|
414
|
+
}, z.core.$strict>;
|
|
415
|
+
type FsCopyParams = z.output<typeof FsCopyParams>;
|
|
416
|
+
declare const FsCopyResult: z.ZodObject<{
|
|
417
|
+
from_path: z.ZodString;
|
|
418
|
+
to_path: z.ZodString;
|
|
419
|
+
}, z.core.$strict>;
|
|
420
|
+
type FsCopyResult = z.output<typeof FsCopyResult>;
|
|
421
|
+
/**
|
|
422
|
+
* Finder's Get Info facts beyond fs.stat (1.30): when it was made, who owns it, its size on disk
|
|
423
|
+
* (a folder's whole tree, bounded), how many items a folder holds, and its flags. null = the OS
|
|
424
|
+
* does not say (or the bound was hit before the folder's size was known).
|
|
425
|
+
*/
|
|
426
|
+
declare const FsInfoParams: z.ZodObject<{
|
|
427
|
+
path: z.ZodString;
|
|
428
|
+
}, z.core.$strict>;
|
|
429
|
+
type FsInfoParams = z.output<typeof FsInfoParams>;
|
|
430
|
+
declare const FsInfoResult: z.ZodObject<{
|
|
431
|
+
entry: z.ZodObject<{
|
|
432
|
+
name: z.ZodString;
|
|
433
|
+
path: z.ZodString;
|
|
434
|
+
kind: z.ZodEnum<{
|
|
435
|
+
file: "file";
|
|
436
|
+
dir: "dir";
|
|
437
|
+
symlink: "symlink";
|
|
438
|
+
}>;
|
|
439
|
+
size: z.ZodInt;
|
|
440
|
+
mtime: z.ZodNumber;
|
|
441
|
+
mode: z.ZodInt;
|
|
442
|
+
target: z.ZodNullable<z.ZodString>;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
created: z.ZodNullable<z.ZodNumber>;
|
|
445
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
446
|
+
group: z.ZodNullable<z.ZodString>;
|
|
447
|
+
total_size: z.ZodNullable<z.ZodInt>;
|
|
448
|
+
size_on_disk: z.ZodNullable<z.ZodInt>;
|
|
449
|
+
items: z.ZodNullable<z.ZodInt>;
|
|
450
|
+
hidden: z.ZodBoolean;
|
|
451
|
+
locked: z.ZodNullable<z.ZodBoolean>;
|
|
452
|
+
read_only: z.ZodBoolean;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
type FsInfoResult = z.output<typeof FsInfoResult>;
|
|
455
|
+
/**
|
|
456
|
+
* Search the computer's own index by name (Finder's "This Mac", 1.30): Spotlight on macOS; elsewhere,
|
|
457
|
+
* or when the index answers nothing usable, a bounded walk of `scope` (or the home folder). `source`
|
|
458
|
+
* says which one answered. Entries are FsEntry (never following links), most relevant first.
|
|
459
|
+
*/
|
|
460
|
+
declare const FsSearchIndexParams: z.ZodObject<{
|
|
461
|
+
query: z.ZodString;
|
|
462
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
463
|
+
max_results: z.ZodDefault<z.ZodInt>;
|
|
464
|
+
}, z.core.$strict>;
|
|
465
|
+
type FsSearchIndexParams = z.output<typeof FsSearchIndexParams>;
|
|
466
|
+
declare const FsSearchIndexResult: z.ZodObject<{
|
|
467
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
468
|
+
name: z.ZodString;
|
|
469
|
+
path: z.ZodString;
|
|
470
|
+
kind: z.ZodEnum<{
|
|
471
|
+
file: "file";
|
|
472
|
+
dir: "dir";
|
|
473
|
+
symlink: "symlink";
|
|
474
|
+
}>;
|
|
475
|
+
size: z.ZodInt;
|
|
476
|
+
mtime: z.ZodNumber;
|
|
477
|
+
mode: z.ZodInt;
|
|
478
|
+
target: z.ZodNullable<z.ZodString>;
|
|
479
|
+
}, z.core.$strict>>;
|
|
480
|
+
truncated: z.ZodBoolean;
|
|
481
|
+
source: z.ZodEnum<{
|
|
482
|
+
index: "index";
|
|
483
|
+
walk: "walk";
|
|
484
|
+
}>;
|
|
485
|
+
}, z.core.$strict>;
|
|
486
|
+
type FsSearchIndexResult = z.output<typeof FsSearchIndexResult>;
|
|
479
487
|
/**
|
|
480
488
|
* Delete. Default goes to the OS Trash (Finder/Explorer semantics: undoable from the phone's
|
|
481
489
|
* "Undo" toast via fs.move back). to_trash:false is a permanent delete — the daemon's behaviour,
|
|
@@ -2603,8 +2611,20 @@ declare const AppsChatsTitlesCheckResult: z.ZodObject<{
|
|
|
2603
2611
|
}, z.core.$strict>>;
|
|
2604
2612
|
}, z.core.$strict>>;
|
|
2605
2613
|
}, z.core.$strict>>;
|
|
2614
|
+
stale_windows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2615
|
+
window: z.ZodString;
|
|
2616
|
+
since_ms: z.ZodInt;
|
|
2617
|
+
last_ms: z.ZodInt;
|
|
2618
|
+
}, z.core.$strict>>>;
|
|
2606
2619
|
}, z.core.$strict>;
|
|
2607
2620
|
type AppsChatsTitlesCheckResult = z.output<typeof AppsChatsTitlesCheckResult>;
|
|
2621
|
+
/** A window that keeps writing chat names that were already replaced back from its memory. */
|
|
2622
|
+
declare const StaleTitleWindow: z.ZodObject<{
|
|
2623
|
+
window: z.ZodString;
|
|
2624
|
+
since_ms: z.ZodInt;
|
|
2625
|
+
last_ms: z.ZodInt;
|
|
2626
|
+
}, z.core.$strict>;
|
|
2627
|
+
type StaleTitleWindow = z.output<typeof StaleTitleWindow>;
|
|
2608
2628
|
/** Write each chat's right name into every copy in every window (one chat with chat_id). */
|
|
2609
2629
|
declare const AppsChatsTitlesPushParams: z.ZodObject<{
|
|
2610
2630
|
app_key: z.ZodString;
|
|
@@ -5860,6 +5880,9 @@ declare const FIELDS_SINCE: {
|
|
|
5860
5880
|
readonly AppsProjectsToWindowResult: {
|
|
5861
5881
|
readonly pin: "1.32";
|
|
5862
5882
|
};
|
|
5883
|
+
readonly AppsChatsTitlesCheckResult: {
|
|
5884
|
+
readonly stale_windows: "1.33";
|
|
5885
|
+
};
|
|
5863
5886
|
};
|
|
5864
5887
|
type FieldsSincePath = keyof typeof FIELDS_SINCE;
|
|
5865
5888
|
/**
|
|
@@ -5919,7 +5942,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
5919
5942
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
5920
5943
|
|
|
5921
5944
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
5922
|
-
declare const CONTRACT_SHA256: "
|
|
5945
|
+
declare const CONTRACT_SHA256: "04a029fc56c9405f376906fc981659997f4617c98bd0b88bb052d1f6d587a7a2";
|
|
5923
5946
|
|
|
5924
5947
|
/**
|
|
5925
5948
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
|
@@ -6046,4 +6069,14 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
|
|
|
6046
6069
|
/** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
|
|
6047
6070
|
declare function renderToolStatusMarkdown(status: ToolStatus): string;
|
|
6048
6071
|
|
|
6049
|
-
|
|
6072
|
+
/** The ops refused when these tools are off: those every sending tool has turned off. */
|
|
6073
|
+
declare function refusedOps(disabledTools: readonly string[]): ReadonlySet<string>;
|
|
6074
|
+
/** The catalog tools that send this op. */
|
|
6075
|
+
declare function toolsSending(op: string): string[];
|
|
6076
|
+
/**
|
|
6077
|
+
* For one tool switched off: the tools still on that keep ALL its ops open (turning it off alone
|
|
6078
|
+
* stops nothing until they are off too). Empty when turning it off stops at least one op.
|
|
6079
|
+
*/
|
|
6080
|
+
declare function sharedOpsBlocking(tool: string, disabledTools: readonly string[]): string[];
|
|
6081
|
+
|
|
6082
|
+
export { AbsPath, AccountAgent, AccountAgentsListParams, AccountAgentsListResult, AccountReadState, AccountReset, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsTitlesCheckParams, AppsChatsTitlesCheckResult, AppsChatsTitlesPushParams, AppsChatsTitlesPushResult, 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, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsReopenParams, AppsWindowsReopenResult, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AppsWindowsShownParams, AppsWindowsShownResult, AppsWindowsUpdateAndReopenParams, AppsWindowsUpdateAndReopenResult, AppsWindowsUpdateStateParams, AppsWindowsUpdateStateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioLevelsParams, AudioLevelsResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, AudioSetLevelsParams, BrowserCallError, BrowserCallParams, BrowserCallPhase, BrowserCallResult, BrowserClientInstance, BrowserDisconnectParams, BrowserDisconnectResult, BrowserInvokeEvent, BrowserKind, BrowserPairCodeParams, BrowserPairCodeResult, BrowserPairRequest, BrowserPairResetParams, BrowserPairResult, BrowserProgressEvent, BrowserProgressParams, BrowserProgressResult, BrowserRegisterParams, BrowserRegisterResult, BrowserResultParams, BrowserResultResult, BrowserSession, BrowserSessionState, BrowserSessionsChangedEvent, BrowserSessionsParams, BrowserSessionsResult, BrowserSetEnabledParams, BrowserSetEnabledResult, CONTRACT_SHA256, type CatalogTool, type CellState, ChatAppProject, 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, DISCOVERY_FILE, DesktopHealth, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, 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, FsCopyParams, FsCopyResult, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsInfoParams, FsInfoResult, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchIndexParams, FsSearchIndexResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, GIT_MAX_OUTPUT_CHARS, GitAddParams, GitBranchParams, GitBranchResult, GitCloneParams, GitCommitParams, GitCommitResult, GitDiffParams, GitDiffResult, GitLogCommit, GitLogParams, GitLogResult, GitOutputResult, GitPullParams, GitPushParams, GitStashParams, GitStatusFile, GitStatusParams, GitStatusResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputKeyboardSettingsParams, InputKeyboardSettingsResult, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputSetKeyboardSettingsParams, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, MATRX_EXTENSION_IDS, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMovePin, ProjectMoveSkip, 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, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, 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, ShownSection, Signal, SpendAccount, SpendChat, SpendDay, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, StaleTitleWindow, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoHardwareParams, SysinfoHardwareResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenSettingsParams, SystemOpenSettingsResult, SystemOpenUrlParams, SystemOpenUrlResult, SystemSettingsPane, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, TitleCopies, TitleMismatch, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, ToolsServiceProgress, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, refusedOps, renderToolStatusMarkdown, sharedOpsBlocking, statusForPeer, toolsSending, u32, versionSubprotocol };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OpName } from './models-
|
|
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 LlmRunning, A as LlmServerState, G as MlInstallPhase, I as MlInstallProgress, f as MlProgress, J as MlRuntimeState, K as MlServiceState, N as MlServiceStatus, P as MlStatusParams, Q as MlStatusResult, R as ModelsInstallParams, U as ModelsInstallResult, V as ModelsLlmInstallParams, X as ModelsLlmInstallResult, Y as ModelsLlmStartParams, Z as ModelsLlmStartResult, _ as ModelsLlmStatusParams, $ as ModelsLlmStatusResult, a0 as ModelsLlmStopParams, a1 as ModelsLlmStopResult, a2 as ModelsProgressEvent, a3 as ModelsStatusParams, a4 as ModelsStatusResult, a5 as ModelsTranscribeParams, M as ModelsTranscribeResult, a6 as NAMED_SCHEMAS, a7 as NamedSchemaId, c as OPS, a8 as OpDescriptor, a as OpParams, b as OpResult, a9 as OpSpec, aa as PING_TEXT, ab as PONG_TEXT, ac as ProtocolErrorBody, ad as RelayMsg, ae as RequestMsg, af as ResponseMsg, ag as SERVICES, ah as SUBPROTOCOL, ai as ServiceId, aj as ServiceOpName, ak as ServiceOpSpec, al as ServiceSpec, S as StreamMeta, am as StreamMsg, an as TextModelId, ao as TextModelInfo, ap as TranscriptSegment, T as TranscriptionModelId, aq as TranscriptionModelInfo, W as Welcome, ar as closeRule, i as isDesktopProtocolError, as as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-NgxBS190.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 LlmRunning, A as LlmServerState, G as MlInstallPhase, I as MlInstallProgress, f as MlProgress, J as MlRuntimeState, K as MlServiceState, N as MlServiceStatus, P as MlStatusParams, Q as MlStatusResult, R as ModelsInstallParams, U as ModelsInstallResult, V as ModelsLlmInstallParams, X as ModelsLlmInstallResult, Y as ModelsLlmStartParams, Z as ModelsLlmStartResult, _ as ModelsLlmStatusParams, $ as ModelsLlmStatusResult, a0 as ModelsLlmStopParams, a1 as ModelsLlmStopResult, a2 as ModelsProgressEvent, a3 as ModelsStatusParams, a4 as ModelsStatusResult, a5 as ModelsTranscribeParams, M as ModelsTranscribeResult, a6 as NAMED_SCHEMAS, a7 as NamedSchemaId, c as OPS, a8 as OpDescriptor, a as OpParams, b as OpResult, a9 as OpSpec, aa as PING_TEXT, ab as PONG_TEXT, ac as ProtocolErrorBody, ad as RelayMsg, ae as RequestMsg, af as ResponseMsg, ag as SERVICES, ah as SUBPROTOCOL, ai as ServiceId, aj as ServiceOpName, ak as ServiceOpSpec, al as ServiceSpec, S as StreamMeta, am as StreamMsg, an as TextModelId, ao as TextModelInfo, ap as TranscriptSegment, T as TranscriptionModelId, aq as TranscriptionModelInfo, W as Welcome, ar as closeRule, i as isDesktopProtocolError, as as isTerminalClose } from './models-NgxBS190.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. */
|
|
@@ -63,10 +63,12 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
63
63
|
* time; status names the loopback port, never a URL).
|
|
64
64
|
* 1.32 — apps.projects.to_window `pin`: pin the moved chats in the target window, now when it is
|
|
65
65
|
* closed, else queued for its next close (result `pin`: when, pinned, already, queued).
|
|
66
|
+
* 1.33 — apps.chats.titles_check `stale_windows`: windows that keep writing replaced chat names
|
|
67
|
+
* back from memory (rewritten each pass; reloading the window stops it).
|
|
66
68
|
*/
|
|
67
|
-
declare const PROTOCOL_MINOR:
|
|
69
|
+
declare const PROTOCOL_MINOR: 33;
|
|
68
70
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
69
|
-
declare const PROTOCOL_VERSION: "1.
|
|
71
|
+
declare const PROTOCOL_VERSION: "1.33";
|
|
70
72
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
71
73
|
declare const u32: z.ZodInt;
|
|
72
74
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -233,84 +235,6 @@ type SysinfoHardwareResult = z.output<typeof SysinfoHardwareResult>;
|
|
|
233
235
|
|
|
234
236
|
/** @ai-matrx/desktop-protocol — cap fs. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
|
|
235
237
|
|
|
236
|
-
/**
|
|
237
|
-
* Copy a file or a whole folder (Finder's Duplicate, Copy and Paste, ⌥-drag). Desktop only (1.30):
|
|
238
|
-
* the daemon has no copy. Timestamps and permission bits are kept, symlinks are copied as links.
|
|
239
|
-
* A name already at `to_path` is CONFLICT/already_exists unless `overwrite`; replacing a folder
|
|
240
|
-
* with a file (or the reverse) is CONFLICT/is_a_directory; copying a folder into itself is
|
|
241
|
-
* INVALID_PARAMS/into_itself.
|
|
242
|
-
*/
|
|
243
|
-
declare const FsCopyParams: z.ZodObject<{
|
|
244
|
-
from_path: z.ZodString;
|
|
245
|
-
to_path: z.ZodString;
|
|
246
|
-
overwrite: z.ZodDefault<z.ZodBoolean>;
|
|
247
|
-
}, z.core.$strict>;
|
|
248
|
-
declare const FsCopyResult: z.ZodObject<{
|
|
249
|
-
from_path: z.ZodString;
|
|
250
|
-
to_path: z.ZodString;
|
|
251
|
-
}, z.core.$strict>;
|
|
252
|
-
/**
|
|
253
|
-
* Search the computer's own index by name (Finder's "This Mac", 1.30): Spotlight on macOS; elsewhere,
|
|
254
|
-
* or when the index answers nothing usable, a bounded walk of `scope` (or the home folder). `source`
|
|
255
|
-
* says which one answered. Entries are FsEntry (never following links), most relevant first.
|
|
256
|
-
*/
|
|
257
|
-
declare const FsSearchIndexParams: z.ZodObject<{
|
|
258
|
-
query: z.ZodString;
|
|
259
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
260
|
-
max_results: z.ZodDefault<z.ZodInt>;
|
|
261
|
-
}, z.core.$strict>;
|
|
262
|
-
declare const FsSearchIndexResult: z.ZodObject<{
|
|
263
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
264
|
-
name: z.ZodString;
|
|
265
|
-
path: z.ZodString;
|
|
266
|
-
kind: z.ZodEnum<{
|
|
267
|
-
file: "file";
|
|
268
|
-
dir: "dir";
|
|
269
|
-
symlink: "symlink";
|
|
270
|
-
}>;
|
|
271
|
-
size: z.ZodInt;
|
|
272
|
-
mtime: z.ZodNumber;
|
|
273
|
-
mode: z.ZodInt;
|
|
274
|
-
target: z.ZodNullable<z.ZodString>;
|
|
275
|
-
}, z.core.$strict>>;
|
|
276
|
-
truncated: z.ZodBoolean;
|
|
277
|
-
source: z.ZodEnum<{
|
|
278
|
-
index: "index";
|
|
279
|
-
walk: "walk";
|
|
280
|
-
}>;
|
|
281
|
-
}, z.core.$strict>;
|
|
282
|
-
/**
|
|
283
|
-
* Finder's Get Info facts beyond fs.stat (1.30): when it was made, who owns it, its size on disk
|
|
284
|
-
* (a folder's whole tree, bounded), how many items a folder holds, and its flags. null = the OS
|
|
285
|
-
* does not say (or the bound was hit before the folder's size was known).
|
|
286
|
-
*/
|
|
287
|
-
declare const FsInfoParams: z.ZodObject<{
|
|
288
|
-
path: z.ZodString;
|
|
289
|
-
}, z.core.$strict>;
|
|
290
|
-
declare const FsInfoResult: z.ZodObject<{
|
|
291
|
-
entry: z.ZodObject<{
|
|
292
|
-
name: z.ZodString;
|
|
293
|
-
path: z.ZodString;
|
|
294
|
-
kind: z.ZodEnum<{
|
|
295
|
-
file: "file";
|
|
296
|
-
dir: "dir";
|
|
297
|
-
symlink: "symlink";
|
|
298
|
-
}>;
|
|
299
|
-
size: z.ZodInt;
|
|
300
|
-
mtime: z.ZodNumber;
|
|
301
|
-
mode: z.ZodInt;
|
|
302
|
-
target: z.ZodNullable<z.ZodString>;
|
|
303
|
-
}, z.core.$strict>;
|
|
304
|
-
created: z.ZodNullable<z.ZodNumber>;
|
|
305
|
-
owner: z.ZodNullable<z.ZodString>;
|
|
306
|
-
group: z.ZodNullable<z.ZodString>;
|
|
307
|
-
total_size: z.ZodNullable<z.ZodInt>;
|
|
308
|
-
size_on_disk: z.ZodNullable<z.ZodInt>;
|
|
309
|
-
items: z.ZodNullable<z.ZodInt>;
|
|
310
|
-
hidden: z.ZodBoolean;
|
|
311
|
-
locked: z.ZodNullable<z.ZodBoolean>;
|
|
312
|
-
read_only: z.ZodBoolean;
|
|
313
|
-
}, z.core.$strict>;
|
|
314
238
|
declare const FsKind: z.ZodEnum<{
|
|
315
239
|
file: "file";
|
|
316
240
|
dir: "dir";
|
|
@@ -476,6 +400,90 @@ declare const FsMoveResult: z.ZodObject<{
|
|
|
476
400
|
to_path: z.ZodString;
|
|
477
401
|
}, z.core.$strict>;
|
|
478
402
|
type FsMoveResult = z.output<typeof FsMoveResult>;
|
|
403
|
+
/**
|
|
404
|
+
* Copy a file or a whole folder (Finder's Duplicate, Copy and Paste, ⌥-drag). Desktop only (1.30):
|
|
405
|
+
* the daemon has no copy. Timestamps and permission bits are kept, symlinks are copied as links.
|
|
406
|
+
* A name already at `to_path` is CONFLICT/already_exists unless `overwrite`; replacing a folder
|
|
407
|
+
* with a file (or the reverse) is CONFLICT/is_a_directory; copying a folder into itself is
|
|
408
|
+
* INVALID_PARAMS (no reason). A replaced item goes to the Trash first, as Finder's Replace.
|
|
409
|
+
*/
|
|
410
|
+
declare const FsCopyParams: z.ZodObject<{
|
|
411
|
+
from_path: z.ZodString;
|
|
412
|
+
to_path: z.ZodString;
|
|
413
|
+
overwrite: z.ZodDefault<z.ZodBoolean>;
|
|
414
|
+
}, z.core.$strict>;
|
|
415
|
+
type FsCopyParams = z.output<typeof FsCopyParams>;
|
|
416
|
+
declare const FsCopyResult: z.ZodObject<{
|
|
417
|
+
from_path: z.ZodString;
|
|
418
|
+
to_path: z.ZodString;
|
|
419
|
+
}, z.core.$strict>;
|
|
420
|
+
type FsCopyResult = z.output<typeof FsCopyResult>;
|
|
421
|
+
/**
|
|
422
|
+
* Finder's Get Info facts beyond fs.stat (1.30): when it was made, who owns it, its size on disk
|
|
423
|
+
* (a folder's whole tree, bounded), how many items a folder holds, and its flags. null = the OS
|
|
424
|
+
* does not say (or the bound was hit before the folder's size was known).
|
|
425
|
+
*/
|
|
426
|
+
declare const FsInfoParams: z.ZodObject<{
|
|
427
|
+
path: z.ZodString;
|
|
428
|
+
}, z.core.$strict>;
|
|
429
|
+
type FsInfoParams = z.output<typeof FsInfoParams>;
|
|
430
|
+
declare const FsInfoResult: z.ZodObject<{
|
|
431
|
+
entry: z.ZodObject<{
|
|
432
|
+
name: z.ZodString;
|
|
433
|
+
path: z.ZodString;
|
|
434
|
+
kind: z.ZodEnum<{
|
|
435
|
+
file: "file";
|
|
436
|
+
dir: "dir";
|
|
437
|
+
symlink: "symlink";
|
|
438
|
+
}>;
|
|
439
|
+
size: z.ZodInt;
|
|
440
|
+
mtime: z.ZodNumber;
|
|
441
|
+
mode: z.ZodInt;
|
|
442
|
+
target: z.ZodNullable<z.ZodString>;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
created: z.ZodNullable<z.ZodNumber>;
|
|
445
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
446
|
+
group: z.ZodNullable<z.ZodString>;
|
|
447
|
+
total_size: z.ZodNullable<z.ZodInt>;
|
|
448
|
+
size_on_disk: z.ZodNullable<z.ZodInt>;
|
|
449
|
+
items: z.ZodNullable<z.ZodInt>;
|
|
450
|
+
hidden: z.ZodBoolean;
|
|
451
|
+
locked: z.ZodNullable<z.ZodBoolean>;
|
|
452
|
+
read_only: z.ZodBoolean;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
type FsInfoResult = z.output<typeof FsInfoResult>;
|
|
455
|
+
/**
|
|
456
|
+
* Search the computer's own index by name (Finder's "This Mac", 1.30): Spotlight on macOS; elsewhere,
|
|
457
|
+
* or when the index answers nothing usable, a bounded walk of `scope` (or the home folder). `source`
|
|
458
|
+
* says which one answered. Entries are FsEntry (never following links), most relevant first.
|
|
459
|
+
*/
|
|
460
|
+
declare const FsSearchIndexParams: z.ZodObject<{
|
|
461
|
+
query: z.ZodString;
|
|
462
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
463
|
+
max_results: z.ZodDefault<z.ZodInt>;
|
|
464
|
+
}, z.core.$strict>;
|
|
465
|
+
type FsSearchIndexParams = z.output<typeof FsSearchIndexParams>;
|
|
466
|
+
declare const FsSearchIndexResult: z.ZodObject<{
|
|
467
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
468
|
+
name: z.ZodString;
|
|
469
|
+
path: z.ZodString;
|
|
470
|
+
kind: z.ZodEnum<{
|
|
471
|
+
file: "file";
|
|
472
|
+
dir: "dir";
|
|
473
|
+
symlink: "symlink";
|
|
474
|
+
}>;
|
|
475
|
+
size: z.ZodInt;
|
|
476
|
+
mtime: z.ZodNumber;
|
|
477
|
+
mode: z.ZodInt;
|
|
478
|
+
target: z.ZodNullable<z.ZodString>;
|
|
479
|
+
}, z.core.$strict>>;
|
|
480
|
+
truncated: z.ZodBoolean;
|
|
481
|
+
source: z.ZodEnum<{
|
|
482
|
+
index: "index";
|
|
483
|
+
walk: "walk";
|
|
484
|
+
}>;
|
|
485
|
+
}, z.core.$strict>;
|
|
486
|
+
type FsSearchIndexResult = z.output<typeof FsSearchIndexResult>;
|
|
479
487
|
/**
|
|
480
488
|
* Delete. Default goes to the OS Trash (Finder/Explorer semantics: undoable from the phone's
|
|
481
489
|
* "Undo" toast via fs.move back). to_trash:false is a permanent delete — the daemon's behaviour,
|
|
@@ -2603,8 +2611,20 @@ declare const AppsChatsTitlesCheckResult: z.ZodObject<{
|
|
|
2603
2611
|
}, z.core.$strict>>;
|
|
2604
2612
|
}, z.core.$strict>>;
|
|
2605
2613
|
}, z.core.$strict>>;
|
|
2614
|
+
stale_windows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2615
|
+
window: z.ZodString;
|
|
2616
|
+
since_ms: z.ZodInt;
|
|
2617
|
+
last_ms: z.ZodInt;
|
|
2618
|
+
}, z.core.$strict>>>;
|
|
2606
2619
|
}, z.core.$strict>;
|
|
2607
2620
|
type AppsChatsTitlesCheckResult = z.output<typeof AppsChatsTitlesCheckResult>;
|
|
2621
|
+
/** A window that keeps writing chat names that were already replaced back from its memory. */
|
|
2622
|
+
declare const StaleTitleWindow: z.ZodObject<{
|
|
2623
|
+
window: z.ZodString;
|
|
2624
|
+
since_ms: z.ZodInt;
|
|
2625
|
+
last_ms: z.ZodInt;
|
|
2626
|
+
}, z.core.$strict>;
|
|
2627
|
+
type StaleTitleWindow = z.output<typeof StaleTitleWindow>;
|
|
2608
2628
|
/** Write each chat's right name into every copy in every window (one chat with chat_id). */
|
|
2609
2629
|
declare const AppsChatsTitlesPushParams: z.ZodObject<{
|
|
2610
2630
|
app_key: z.ZodString;
|
|
@@ -5860,6 +5880,9 @@ declare const FIELDS_SINCE: {
|
|
|
5860
5880
|
readonly AppsProjectsToWindowResult: {
|
|
5861
5881
|
readonly pin: "1.32";
|
|
5862
5882
|
};
|
|
5883
|
+
readonly AppsChatsTitlesCheckResult: {
|
|
5884
|
+
readonly stale_windows: "1.33";
|
|
5885
|
+
};
|
|
5863
5886
|
};
|
|
5864
5887
|
type FieldsSincePath = keyof typeof FIELDS_SINCE;
|
|
5865
5888
|
/**
|
|
@@ -5919,7 +5942,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
5919
5942
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
5920
5943
|
|
|
5921
5944
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
5922
|
-
declare const CONTRACT_SHA256: "
|
|
5945
|
+
declare const CONTRACT_SHA256: "04a029fc56c9405f376906fc981659997f4617c98bd0b88bb052d1f6d587a7a2";
|
|
5923
5946
|
|
|
5924
5947
|
/**
|
|
5925
5948
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
|
@@ -6046,4 +6069,14 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
|
|
|
6046
6069
|
/** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
|
|
6047
6070
|
declare function renderToolStatusMarkdown(status: ToolStatus): string;
|
|
6048
6071
|
|
|
6049
|
-
|
|
6072
|
+
/** The ops refused when these tools are off: those every sending tool has turned off. */
|
|
6073
|
+
declare function refusedOps(disabledTools: readonly string[]): ReadonlySet<string>;
|
|
6074
|
+
/** The catalog tools that send this op. */
|
|
6075
|
+
declare function toolsSending(op: string): string[];
|
|
6076
|
+
/**
|
|
6077
|
+
* For one tool switched off: the tools still on that keep ALL its ops open (turning it off alone
|
|
6078
|
+
* stops nothing until they are off too). Empty when turning it off stops at least one op.
|
|
6079
|
+
*/
|
|
6080
|
+
declare function sharedOpsBlocking(tool: string, disabledTools: readonly string[]): string[];
|
|
6081
|
+
|
|
6082
|
+
export { AbsPath, AccountAgent, AccountAgentsListParams, AccountAgentsListResult, AccountReadState, AccountReset, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsTitlesCheckParams, AppsChatsTitlesCheckResult, AppsChatsTitlesPushParams, AppsChatsTitlesPushResult, 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, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsReopenParams, AppsWindowsReopenResult, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AppsWindowsShownParams, AppsWindowsShownResult, AppsWindowsUpdateAndReopenParams, AppsWindowsUpdateAndReopenResult, AppsWindowsUpdateStateParams, AppsWindowsUpdateStateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioLevelsParams, AudioLevelsResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, AudioSetLevelsParams, BrowserCallError, BrowserCallParams, BrowserCallPhase, BrowserCallResult, BrowserClientInstance, BrowserDisconnectParams, BrowserDisconnectResult, BrowserInvokeEvent, BrowserKind, BrowserPairCodeParams, BrowserPairCodeResult, BrowserPairRequest, BrowserPairResetParams, BrowserPairResult, BrowserProgressEvent, BrowserProgressParams, BrowserProgressResult, BrowserRegisterParams, BrowserRegisterResult, BrowserResultParams, BrowserResultResult, BrowserSession, BrowserSessionState, BrowserSessionsChangedEvent, BrowserSessionsParams, BrowserSessionsResult, BrowserSetEnabledParams, BrowserSetEnabledResult, CONTRACT_SHA256, type CatalogTool, type CellState, ChatAppProject, 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, DISCOVERY_FILE, DesktopHealth, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, 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, FsCopyParams, FsCopyResult, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsInfoParams, FsInfoResult, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchIndexParams, FsSearchIndexResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, GIT_MAX_OUTPUT_CHARS, GitAddParams, GitBranchParams, GitBranchResult, GitCloneParams, GitCommitParams, GitCommitResult, GitDiffParams, GitDiffResult, GitLogCommit, GitLogParams, GitLogResult, GitOutputResult, GitPullParams, GitPushParams, GitStashParams, GitStatusFile, GitStatusParams, GitStatusResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputKeyboardSettingsParams, InputKeyboardSettingsResult, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputSetKeyboardSettingsParams, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, MATRX_EXTENSION_IDS, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMovePin, ProjectMoveSkip, 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, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, 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, ShownSection, Signal, SpendAccount, SpendChat, SpendDay, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, StaleTitleWindow, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoHardwareParams, SysinfoHardwareResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenSettingsParams, SystemOpenSettingsResult, SystemOpenUrlParams, SystemOpenUrlResult, SystemSettingsPane, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, TitleCopies, TitleMismatch, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, ToolsServiceProgress, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, refusedOps, renderToolStatusMarkdown, sharedOpsBlocking, statusForPeer, toolsSending, u32, versionSubprotocol };
|