@ai-matrx/desktop-protocol 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/client.cjs +445 -361
- 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 +445 -361
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +291 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +185 -6
- package/dist/index.d.ts +185 -6
- package/dist/index.js +291 -189
- package/dist/index.js.map +1 -1
- package/dist/{models-DTtWH_yC.d.cts → models-Cz3I_rBU.d.cts} +246 -1
- package/dist/{models-DTtWH_yC.d.ts → models-Cz3I_rBU.d.ts} +246 -1
- package/dist/react.d.cts +92 -0
- package/dist/react.d.ts +92 -0
- package/generated/desktop-protocol.schema.json +298 -2
- package/package.json +1 -1
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 MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-Cz3I_rBU.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 MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-Cz3I_rBU.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. */
|
|
@@ -32,10 +32,11 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
32
32
|
* 1.18 — a local server says what it is using (StackServer `cpu_percent`, `memory_bytes`).
|
|
33
33
|
* 1.19 — apps.projects.to_window: every chat of a project into one window (plan first), taking
|
|
34
34
|
* them off other side windows where safe, optionally grouped in that window's sidebar.
|
|
35
|
+
* 1.20 — the device's error ledger: diag.errors.list, diag.errors.report, event diag.errors.changed.
|
|
35
36
|
*/
|
|
36
|
-
declare const PROTOCOL_MINOR:
|
|
37
|
+
declare const PROTOCOL_MINOR: 20;
|
|
37
38
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
38
|
-
declare const PROTOCOL_VERSION: "1.
|
|
39
|
+
declare const PROTOCOL_VERSION: "1.20";
|
|
39
40
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
40
41
|
declare const u32: z.ZodInt;
|
|
41
42
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -3576,6 +3577,184 @@ declare const PowerPreventSleepResult: z.ZodObject<{
|
|
|
3576
3577
|
}, z.core.$strict>;
|
|
3577
3578
|
type PowerPreventSleepResult = z.output<typeof PowerPreventSleepResult>;
|
|
3578
3579
|
|
|
3580
|
+
/**
|
|
3581
|
+
* @ai-matrx/desktop-protocol — cap diag (SPEC §3.12): the device's error ledger. Every process's
|
|
3582
|
+
* errors (main, every renderer and hosted page, the core, the PTY host, the Python services, the
|
|
3583
|
+
* relay client) are collected on the device, grouped by signature, kept in the state DB and
|
|
3584
|
+
* delivered to the platform's one error system (ops.system_error, source_app `matrx-desktop`).
|
|
3585
|
+
* These ops show the ledger to a screen and let a renderer report what only it sees.
|
|
3586
|
+
* Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.20.
|
|
3587
|
+
*/
|
|
3588
|
+
|
|
3589
|
+
/** Which part of the app the error came from. */
|
|
3590
|
+
declare const DiagProcess: z.ZodEnum<{
|
|
3591
|
+
relay: "relay";
|
|
3592
|
+
main: "main";
|
|
3593
|
+
renderer: "renderer";
|
|
3594
|
+
hosted_page: "hosted_page";
|
|
3595
|
+
core: "core";
|
|
3596
|
+
pty_host: "pty_host";
|
|
3597
|
+
python_ml: "python_ml";
|
|
3598
|
+
python_coding: "python_coding";
|
|
3599
|
+
python_tools: "python_tools";
|
|
3600
|
+
coding_sessions: "coding_sessions";
|
|
3601
|
+
claude_accounts: "claude_accounts";
|
|
3602
|
+
}>;
|
|
3603
|
+
type DiagProcess = z.output<typeof DiagProcess>;
|
|
3604
|
+
/** What happened. */
|
|
3605
|
+
declare const DiagErrorKind: z.ZodEnum<{
|
|
3606
|
+
uncaught_exception: "uncaught_exception";
|
|
3607
|
+
unhandled_rejection: "unhandled_rejection";
|
|
3608
|
+
renderer_crash: "renderer_crash";
|
|
3609
|
+
native_crash: "native_crash";
|
|
3610
|
+
console_error: "console_error";
|
|
3611
|
+
load_failed: "load_failed";
|
|
3612
|
+
op_failed: "op_failed";
|
|
3613
|
+
child_exit: "child_exit";
|
|
3614
|
+
banner: "banner";
|
|
3615
|
+
logged_error: "logged_error";
|
|
3616
|
+
}>;
|
|
3617
|
+
type DiagErrorKind = z.output<typeof DiagErrorKind>;
|
|
3618
|
+
/** waiting = not yet delivered (signed out, offline); sent = in the platform's error queue; resolved = an agent closed it there. */
|
|
3619
|
+
declare const DiagErrorStatus: z.ZodEnum<{
|
|
3620
|
+
waiting: "waiting";
|
|
3621
|
+
sent: "sent";
|
|
3622
|
+
resolved: "resolved";
|
|
3623
|
+
}>;
|
|
3624
|
+
type DiagErrorStatus = z.output<typeof DiagErrorStatus>;
|
|
3625
|
+
/** One error signature: every occurrence of the same failure in the same place. */
|
|
3626
|
+
declare const DiagErrorEntry: z.ZodObject<{
|
|
3627
|
+
signature: z.ZodString;
|
|
3628
|
+
process: z.ZodEnum<{
|
|
3629
|
+
relay: "relay";
|
|
3630
|
+
main: "main";
|
|
3631
|
+
renderer: "renderer";
|
|
3632
|
+
hosted_page: "hosted_page";
|
|
3633
|
+
core: "core";
|
|
3634
|
+
pty_host: "pty_host";
|
|
3635
|
+
python_ml: "python_ml";
|
|
3636
|
+
python_coding: "python_coding";
|
|
3637
|
+
python_tools: "python_tools";
|
|
3638
|
+
coding_sessions: "coding_sessions";
|
|
3639
|
+
claude_accounts: "claude_accounts";
|
|
3640
|
+
}>;
|
|
3641
|
+
kind: z.ZodEnum<{
|
|
3642
|
+
uncaught_exception: "uncaught_exception";
|
|
3643
|
+
unhandled_rejection: "unhandled_rejection";
|
|
3644
|
+
renderer_crash: "renderer_crash";
|
|
3645
|
+
native_crash: "native_crash";
|
|
3646
|
+
console_error: "console_error";
|
|
3647
|
+
load_failed: "load_failed";
|
|
3648
|
+
op_failed: "op_failed";
|
|
3649
|
+
child_exit: "child_exit";
|
|
3650
|
+
banner: "banner";
|
|
3651
|
+
logged_error: "logged_error";
|
|
3652
|
+
}>;
|
|
3653
|
+
source: z.ZodString;
|
|
3654
|
+
code: z.ZodNullable<z.ZodString>;
|
|
3655
|
+
message: z.ZodString;
|
|
3656
|
+
count: z.ZodInt;
|
|
3657
|
+
first_seen_ms: z.ZodInt;
|
|
3658
|
+
last_seen_ms: z.ZodInt;
|
|
3659
|
+
status: z.ZodEnum<{
|
|
3660
|
+
waiting: "waiting";
|
|
3661
|
+
sent: "sent";
|
|
3662
|
+
resolved: "resolved";
|
|
3663
|
+
}>;
|
|
3664
|
+
resolution_note: z.ZodNullable<z.ZodString>;
|
|
3665
|
+
app_version: z.ZodString;
|
|
3666
|
+
}, z.core.$strict>;
|
|
3667
|
+
type DiagErrorEntry = z.output<typeof DiagErrorEntry>;
|
|
3668
|
+
declare const DiagErrorsListParams: z.ZodObject<{
|
|
3669
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
3670
|
+
open: "open";
|
|
3671
|
+
all: "all";
|
|
3672
|
+
}>>;
|
|
3673
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
3674
|
+
}, z.core.$strict>;
|
|
3675
|
+
type DiagErrorsListParams = z.output<typeof DiagErrorsListParams>;
|
|
3676
|
+
declare const DiagErrorsListResult: z.ZodObject<{
|
|
3677
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
3678
|
+
signature: z.ZodString;
|
|
3679
|
+
process: z.ZodEnum<{
|
|
3680
|
+
relay: "relay";
|
|
3681
|
+
main: "main";
|
|
3682
|
+
renderer: "renderer";
|
|
3683
|
+
hosted_page: "hosted_page";
|
|
3684
|
+
core: "core";
|
|
3685
|
+
pty_host: "pty_host";
|
|
3686
|
+
python_ml: "python_ml";
|
|
3687
|
+
python_coding: "python_coding";
|
|
3688
|
+
python_tools: "python_tools";
|
|
3689
|
+
coding_sessions: "coding_sessions";
|
|
3690
|
+
claude_accounts: "claude_accounts";
|
|
3691
|
+
}>;
|
|
3692
|
+
kind: z.ZodEnum<{
|
|
3693
|
+
uncaught_exception: "uncaught_exception";
|
|
3694
|
+
unhandled_rejection: "unhandled_rejection";
|
|
3695
|
+
renderer_crash: "renderer_crash";
|
|
3696
|
+
native_crash: "native_crash";
|
|
3697
|
+
console_error: "console_error";
|
|
3698
|
+
load_failed: "load_failed";
|
|
3699
|
+
op_failed: "op_failed";
|
|
3700
|
+
child_exit: "child_exit";
|
|
3701
|
+
banner: "banner";
|
|
3702
|
+
logged_error: "logged_error";
|
|
3703
|
+
}>;
|
|
3704
|
+
source: z.ZodString;
|
|
3705
|
+
code: z.ZodNullable<z.ZodString>;
|
|
3706
|
+
message: z.ZodString;
|
|
3707
|
+
count: z.ZodInt;
|
|
3708
|
+
first_seen_ms: z.ZodInt;
|
|
3709
|
+
last_seen_ms: z.ZodInt;
|
|
3710
|
+
status: z.ZodEnum<{
|
|
3711
|
+
waiting: "waiting";
|
|
3712
|
+
sent: "sent";
|
|
3713
|
+
resolved: "resolved";
|
|
3714
|
+
}>;
|
|
3715
|
+
resolution_note: z.ZodNullable<z.ZodString>;
|
|
3716
|
+
app_version: z.ZodString;
|
|
3717
|
+
}, z.core.$strict>>;
|
|
3718
|
+
total_signatures: z.ZodInt;
|
|
3719
|
+
total_occurrences: z.ZodInt;
|
|
3720
|
+
waiting: z.ZodInt;
|
|
3721
|
+
delivery: z.ZodEnum<{
|
|
3722
|
+
ok: "ok";
|
|
3723
|
+
signed_out: "signed_out";
|
|
3724
|
+
failing: "failing";
|
|
3725
|
+
}>;
|
|
3726
|
+
last_delivery_ms: z.ZodNullable<z.ZodInt>;
|
|
3727
|
+
}, z.core.$strict>;
|
|
3728
|
+
type DiagErrorsListResult = z.output<typeof DiagErrorsListResult>;
|
|
3729
|
+
/** A renderer or hosted page reports what only it sees (a banner shown to the person, a caught error). */
|
|
3730
|
+
declare const DiagErrorsReportParams: z.ZodObject<{
|
|
3731
|
+
process: z.ZodEnum<{
|
|
3732
|
+
renderer: "renderer";
|
|
3733
|
+
hosted_page: "hosted_page";
|
|
3734
|
+
}>;
|
|
3735
|
+
kind: z.ZodEnum<{
|
|
3736
|
+
uncaught_exception: "uncaught_exception";
|
|
3737
|
+
unhandled_rejection: "unhandled_rejection";
|
|
3738
|
+
console_error: "console_error";
|
|
3739
|
+
banner: "banner";
|
|
3740
|
+
}>;
|
|
3741
|
+
source: z.ZodString;
|
|
3742
|
+
message: z.ZodString;
|
|
3743
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3744
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
3745
|
+
}, z.core.$strict>;
|
|
3746
|
+
type DiagErrorsReportParams = z.output<typeof DiagErrorsReportParams>;
|
|
3747
|
+
declare const DiagErrorsReportResult: z.ZodObject<{
|
|
3748
|
+
signature: z.ZodString;
|
|
3749
|
+
}, z.core.$strict>;
|
|
3750
|
+
type DiagErrorsReportResult = z.output<typeof DiagErrorsReportResult>;
|
|
3751
|
+
/** The ledger changed (a new occurrence, a delivery, a resolution). */
|
|
3752
|
+
declare const DiagErrorsChangedEvent: z.ZodObject<{
|
|
3753
|
+
total_signatures: z.ZodInt;
|
|
3754
|
+
waiting: z.ZodInt;
|
|
3755
|
+
}, z.core.$strict>;
|
|
3756
|
+
type DiagErrorsChangedEvent = z.output<typeof DiagErrorsChangedEvent>;
|
|
3757
|
+
|
|
3579
3758
|
/**
|
|
3580
3759
|
* @ai-matrx/desktop-protocol — cap resources (SPEC §6): how busy the computer is — CPU, memory and
|
|
3581
3760
|
* disks — and (1.17) what is using it, grouped into jobs, with a slowdown log. The busiest single
|
|
@@ -4468,7 +4647,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
4468
4647
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
4469
4648
|
|
|
4470
4649
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
4471
|
-
declare const CONTRACT_SHA256: "
|
|
4650
|
+
declare const CONTRACT_SHA256: "ef1f01f6b4e81ce7a56192d56c5765d182a53aaf9224ef20ce764cd25c20e229";
|
|
4472
4651
|
|
|
4473
4652
|
/**
|
|
4474
4653
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
|
@@ -4595,4 +4774,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
|
|
|
4595
4774
|
/** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
|
|
4596
4775
|
declare function renderToolStatusMarkdown(status: ToolStatus): string;
|
|
4597
4776
|
|
|
4598
|
-
export { AbsPath, AccountReset, AccountUsage, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, 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, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, 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, Signal, SpendAccount, SpendChat, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
|
|
4777
|
+
export { AbsPath, AccountReset, AccountUsage, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, 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, 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, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, 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, Signal, SpendAccount, SpendChat, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
|
package/dist/index.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 MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-Cz3I_rBU.js';
|
|
3
|
+
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-Cz3I_rBU.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. */
|
|
@@ -32,10 +32,11 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
32
32
|
* 1.18 — a local server says what it is using (StackServer `cpu_percent`, `memory_bytes`).
|
|
33
33
|
* 1.19 — apps.projects.to_window: every chat of a project into one window (plan first), taking
|
|
34
34
|
* them off other side windows where safe, optionally grouped in that window's sidebar.
|
|
35
|
+
* 1.20 — the device's error ledger: diag.errors.list, diag.errors.report, event diag.errors.changed.
|
|
35
36
|
*/
|
|
36
|
-
declare const PROTOCOL_MINOR:
|
|
37
|
+
declare const PROTOCOL_MINOR: 20;
|
|
37
38
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
38
|
-
declare const PROTOCOL_VERSION: "1.
|
|
39
|
+
declare const PROTOCOL_VERSION: "1.20";
|
|
39
40
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
40
41
|
declare const u32: z.ZodInt;
|
|
41
42
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -3576,6 +3577,184 @@ declare const PowerPreventSleepResult: z.ZodObject<{
|
|
|
3576
3577
|
}, z.core.$strict>;
|
|
3577
3578
|
type PowerPreventSleepResult = z.output<typeof PowerPreventSleepResult>;
|
|
3578
3579
|
|
|
3580
|
+
/**
|
|
3581
|
+
* @ai-matrx/desktop-protocol — cap diag (SPEC §3.12): the device's error ledger. Every process's
|
|
3582
|
+
* errors (main, every renderer and hosted page, the core, the PTY host, the Python services, the
|
|
3583
|
+
* relay client) are collected on the device, grouped by signature, kept in the state DB and
|
|
3584
|
+
* delivered to the platform's one error system (ops.system_error, source_app `matrx-desktop`).
|
|
3585
|
+
* These ops show the ledger to a screen and let a renderer report what only it sees.
|
|
3586
|
+
* Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.20.
|
|
3587
|
+
*/
|
|
3588
|
+
|
|
3589
|
+
/** Which part of the app the error came from. */
|
|
3590
|
+
declare const DiagProcess: z.ZodEnum<{
|
|
3591
|
+
relay: "relay";
|
|
3592
|
+
main: "main";
|
|
3593
|
+
renderer: "renderer";
|
|
3594
|
+
hosted_page: "hosted_page";
|
|
3595
|
+
core: "core";
|
|
3596
|
+
pty_host: "pty_host";
|
|
3597
|
+
python_ml: "python_ml";
|
|
3598
|
+
python_coding: "python_coding";
|
|
3599
|
+
python_tools: "python_tools";
|
|
3600
|
+
coding_sessions: "coding_sessions";
|
|
3601
|
+
claude_accounts: "claude_accounts";
|
|
3602
|
+
}>;
|
|
3603
|
+
type DiagProcess = z.output<typeof DiagProcess>;
|
|
3604
|
+
/** What happened. */
|
|
3605
|
+
declare const DiagErrorKind: z.ZodEnum<{
|
|
3606
|
+
uncaught_exception: "uncaught_exception";
|
|
3607
|
+
unhandled_rejection: "unhandled_rejection";
|
|
3608
|
+
renderer_crash: "renderer_crash";
|
|
3609
|
+
native_crash: "native_crash";
|
|
3610
|
+
console_error: "console_error";
|
|
3611
|
+
load_failed: "load_failed";
|
|
3612
|
+
op_failed: "op_failed";
|
|
3613
|
+
child_exit: "child_exit";
|
|
3614
|
+
banner: "banner";
|
|
3615
|
+
logged_error: "logged_error";
|
|
3616
|
+
}>;
|
|
3617
|
+
type DiagErrorKind = z.output<typeof DiagErrorKind>;
|
|
3618
|
+
/** waiting = not yet delivered (signed out, offline); sent = in the platform's error queue; resolved = an agent closed it there. */
|
|
3619
|
+
declare const DiagErrorStatus: z.ZodEnum<{
|
|
3620
|
+
waiting: "waiting";
|
|
3621
|
+
sent: "sent";
|
|
3622
|
+
resolved: "resolved";
|
|
3623
|
+
}>;
|
|
3624
|
+
type DiagErrorStatus = z.output<typeof DiagErrorStatus>;
|
|
3625
|
+
/** One error signature: every occurrence of the same failure in the same place. */
|
|
3626
|
+
declare const DiagErrorEntry: z.ZodObject<{
|
|
3627
|
+
signature: z.ZodString;
|
|
3628
|
+
process: z.ZodEnum<{
|
|
3629
|
+
relay: "relay";
|
|
3630
|
+
main: "main";
|
|
3631
|
+
renderer: "renderer";
|
|
3632
|
+
hosted_page: "hosted_page";
|
|
3633
|
+
core: "core";
|
|
3634
|
+
pty_host: "pty_host";
|
|
3635
|
+
python_ml: "python_ml";
|
|
3636
|
+
python_coding: "python_coding";
|
|
3637
|
+
python_tools: "python_tools";
|
|
3638
|
+
coding_sessions: "coding_sessions";
|
|
3639
|
+
claude_accounts: "claude_accounts";
|
|
3640
|
+
}>;
|
|
3641
|
+
kind: z.ZodEnum<{
|
|
3642
|
+
uncaught_exception: "uncaught_exception";
|
|
3643
|
+
unhandled_rejection: "unhandled_rejection";
|
|
3644
|
+
renderer_crash: "renderer_crash";
|
|
3645
|
+
native_crash: "native_crash";
|
|
3646
|
+
console_error: "console_error";
|
|
3647
|
+
load_failed: "load_failed";
|
|
3648
|
+
op_failed: "op_failed";
|
|
3649
|
+
child_exit: "child_exit";
|
|
3650
|
+
banner: "banner";
|
|
3651
|
+
logged_error: "logged_error";
|
|
3652
|
+
}>;
|
|
3653
|
+
source: z.ZodString;
|
|
3654
|
+
code: z.ZodNullable<z.ZodString>;
|
|
3655
|
+
message: z.ZodString;
|
|
3656
|
+
count: z.ZodInt;
|
|
3657
|
+
first_seen_ms: z.ZodInt;
|
|
3658
|
+
last_seen_ms: z.ZodInt;
|
|
3659
|
+
status: z.ZodEnum<{
|
|
3660
|
+
waiting: "waiting";
|
|
3661
|
+
sent: "sent";
|
|
3662
|
+
resolved: "resolved";
|
|
3663
|
+
}>;
|
|
3664
|
+
resolution_note: z.ZodNullable<z.ZodString>;
|
|
3665
|
+
app_version: z.ZodString;
|
|
3666
|
+
}, z.core.$strict>;
|
|
3667
|
+
type DiagErrorEntry = z.output<typeof DiagErrorEntry>;
|
|
3668
|
+
declare const DiagErrorsListParams: z.ZodObject<{
|
|
3669
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
3670
|
+
open: "open";
|
|
3671
|
+
all: "all";
|
|
3672
|
+
}>>;
|
|
3673
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
3674
|
+
}, z.core.$strict>;
|
|
3675
|
+
type DiagErrorsListParams = z.output<typeof DiagErrorsListParams>;
|
|
3676
|
+
declare const DiagErrorsListResult: z.ZodObject<{
|
|
3677
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
3678
|
+
signature: z.ZodString;
|
|
3679
|
+
process: z.ZodEnum<{
|
|
3680
|
+
relay: "relay";
|
|
3681
|
+
main: "main";
|
|
3682
|
+
renderer: "renderer";
|
|
3683
|
+
hosted_page: "hosted_page";
|
|
3684
|
+
core: "core";
|
|
3685
|
+
pty_host: "pty_host";
|
|
3686
|
+
python_ml: "python_ml";
|
|
3687
|
+
python_coding: "python_coding";
|
|
3688
|
+
python_tools: "python_tools";
|
|
3689
|
+
coding_sessions: "coding_sessions";
|
|
3690
|
+
claude_accounts: "claude_accounts";
|
|
3691
|
+
}>;
|
|
3692
|
+
kind: z.ZodEnum<{
|
|
3693
|
+
uncaught_exception: "uncaught_exception";
|
|
3694
|
+
unhandled_rejection: "unhandled_rejection";
|
|
3695
|
+
renderer_crash: "renderer_crash";
|
|
3696
|
+
native_crash: "native_crash";
|
|
3697
|
+
console_error: "console_error";
|
|
3698
|
+
load_failed: "load_failed";
|
|
3699
|
+
op_failed: "op_failed";
|
|
3700
|
+
child_exit: "child_exit";
|
|
3701
|
+
banner: "banner";
|
|
3702
|
+
logged_error: "logged_error";
|
|
3703
|
+
}>;
|
|
3704
|
+
source: z.ZodString;
|
|
3705
|
+
code: z.ZodNullable<z.ZodString>;
|
|
3706
|
+
message: z.ZodString;
|
|
3707
|
+
count: z.ZodInt;
|
|
3708
|
+
first_seen_ms: z.ZodInt;
|
|
3709
|
+
last_seen_ms: z.ZodInt;
|
|
3710
|
+
status: z.ZodEnum<{
|
|
3711
|
+
waiting: "waiting";
|
|
3712
|
+
sent: "sent";
|
|
3713
|
+
resolved: "resolved";
|
|
3714
|
+
}>;
|
|
3715
|
+
resolution_note: z.ZodNullable<z.ZodString>;
|
|
3716
|
+
app_version: z.ZodString;
|
|
3717
|
+
}, z.core.$strict>>;
|
|
3718
|
+
total_signatures: z.ZodInt;
|
|
3719
|
+
total_occurrences: z.ZodInt;
|
|
3720
|
+
waiting: z.ZodInt;
|
|
3721
|
+
delivery: z.ZodEnum<{
|
|
3722
|
+
ok: "ok";
|
|
3723
|
+
signed_out: "signed_out";
|
|
3724
|
+
failing: "failing";
|
|
3725
|
+
}>;
|
|
3726
|
+
last_delivery_ms: z.ZodNullable<z.ZodInt>;
|
|
3727
|
+
}, z.core.$strict>;
|
|
3728
|
+
type DiagErrorsListResult = z.output<typeof DiagErrorsListResult>;
|
|
3729
|
+
/** A renderer or hosted page reports what only it sees (a banner shown to the person, a caught error). */
|
|
3730
|
+
declare const DiagErrorsReportParams: z.ZodObject<{
|
|
3731
|
+
process: z.ZodEnum<{
|
|
3732
|
+
renderer: "renderer";
|
|
3733
|
+
hosted_page: "hosted_page";
|
|
3734
|
+
}>;
|
|
3735
|
+
kind: z.ZodEnum<{
|
|
3736
|
+
uncaught_exception: "uncaught_exception";
|
|
3737
|
+
unhandled_rejection: "unhandled_rejection";
|
|
3738
|
+
console_error: "console_error";
|
|
3739
|
+
banner: "banner";
|
|
3740
|
+
}>;
|
|
3741
|
+
source: z.ZodString;
|
|
3742
|
+
message: z.ZodString;
|
|
3743
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3744
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
3745
|
+
}, z.core.$strict>;
|
|
3746
|
+
type DiagErrorsReportParams = z.output<typeof DiagErrorsReportParams>;
|
|
3747
|
+
declare const DiagErrorsReportResult: z.ZodObject<{
|
|
3748
|
+
signature: z.ZodString;
|
|
3749
|
+
}, z.core.$strict>;
|
|
3750
|
+
type DiagErrorsReportResult = z.output<typeof DiagErrorsReportResult>;
|
|
3751
|
+
/** The ledger changed (a new occurrence, a delivery, a resolution). */
|
|
3752
|
+
declare const DiagErrorsChangedEvent: z.ZodObject<{
|
|
3753
|
+
total_signatures: z.ZodInt;
|
|
3754
|
+
waiting: z.ZodInt;
|
|
3755
|
+
}, z.core.$strict>;
|
|
3756
|
+
type DiagErrorsChangedEvent = z.output<typeof DiagErrorsChangedEvent>;
|
|
3757
|
+
|
|
3579
3758
|
/**
|
|
3580
3759
|
* @ai-matrx/desktop-protocol — cap resources (SPEC §6): how busy the computer is — CPU, memory and
|
|
3581
3760
|
* disks — and (1.17) what is using it, grouped into jobs, with a slowdown log. The busiest single
|
|
@@ -4468,7 +4647,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
4468
4647
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
4469
4648
|
|
|
4470
4649
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
4471
|
-
declare const CONTRACT_SHA256: "
|
|
4650
|
+
declare const CONTRACT_SHA256: "ef1f01f6b4e81ce7a56192d56c5765d182a53aaf9224ef20ce764cd25c20e229";
|
|
4472
4651
|
|
|
4473
4652
|
/**
|
|
4474
4653
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
|
@@ -4595,4 +4774,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
|
|
|
4595
4774
|
/** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
|
|
4596
4775
|
declare function renderToolStatusMarkdown(status: ToolStatus): string;
|
|
4597
4776
|
|
|
4598
|
-
export { AbsPath, AccountReset, AccountUsage, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, 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, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, 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, Signal, SpendAccount, SpendChat, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
|
|
4777
|
+
export { AbsPath, AccountReset, AccountUsage, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, 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, 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, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, 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, Signal, SpendAccount, SpendChat, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
|