@ai-matrx/desktop-protocol 0.15.0 → 0.16.1
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 +21 -0
- package/dist/client.cjs +116 -38
- 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 +116 -38
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +111 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +181 -6
- package/dist/index.d.ts +181 -6
- package/dist/index.js +111 -4
- package/dist/index.js.map +1 -1
- package/dist/{models-iOvmEOHd.d.cts → models-CCOaAWaM.d.cts} +268 -1
- package/dist/{models-iOvmEOHd.d.ts → models-CCOaAWaM.d.ts} +268 -1
- package/dist/react.d.cts +50 -1
- package/dist/react.d.ts +50 -1
- package/generated/desktop-protocol.schema.json +356 -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-CCOaAWaM.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-CCOaAWaM.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. */
|
|
@@ -16,10 +16,12 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
16
16
|
* 1.3 — the `proc` capability (processes, listening ports, stopping one) and `clipboard`.
|
|
17
17
|
* 1.4 — computer control: `system`, `screen`, `window`, `input`, `power`, `resources`; polled
|
|
18
18
|
* folder watches (fs.watch.start/events/stop) and background jobs (exec.job.*).
|
|
19
|
+
* 1.5 — `coding.history.import_missing`: Claude Code history the platform lacks, imported by the
|
|
20
|
+
* `coding` Python service.
|
|
19
21
|
*/
|
|
20
|
-
declare const PROTOCOL_MINOR:
|
|
22
|
+
declare const PROTOCOL_MINOR: 5;
|
|
21
23
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
22
|
-
declare const PROTOCOL_VERSION: "1.
|
|
24
|
+
declare const PROTOCOL_VERSION: "1.5";
|
|
23
25
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
24
26
|
declare const u32: z.ZodInt;
|
|
25
27
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1410,6 +1412,7 @@ declare const ServiceShutdown: z.ZodObject<{
|
|
|
1410
1412
|
/** Supervised Python services. `tools` joins when it is built. */
|
|
1411
1413
|
declare const ServiceName: z.ZodEnum<{
|
|
1412
1414
|
ml: "ml";
|
|
1415
|
+
coding: "coding";
|
|
1413
1416
|
}>;
|
|
1414
1417
|
type ServiceName = z.output<typeof ServiceName>;
|
|
1415
1418
|
declare const CoreToServiceMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1435,6 +1438,7 @@ declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1435
1438
|
type: z.ZodLiteral<"welcome">;
|
|
1436
1439
|
service: z.ZodEnum<{
|
|
1437
1440
|
ml: "ml";
|
|
1441
|
+
coding: "coding";
|
|
1438
1442
|
}>;
|
|
1439
1443
|
contract: z.ZodString;
|
|
1440
1444
|
pid: z.ZodInt;
|
|
@@ -1527,6 +1531,7 @@ declare const ServiceWelcome: z.ZodObject<{
|
|
|
1527
1531
|
type: z.ZodLiteral<"welcome">;
|
|
1528
1532
|
service: z.ZodEnum<{
|
|
1529
1533
|
ml: "ml";
|
|
1534
|
+
coding: "coding";
|
|
1530
1535
|
}>;
|
|
1531
1536
|
contract: z.ZodString;
|
|
1532
1537
|
pid: z.ZodInt;
|
|
@@ -2415,6 +2420,176 @@ declare const ExecJobListResult: z.ZodObject<{
|
|
|
2415
2420
|
}, z.core.$strict>;
|
|
2416
2421
|
type ExecJobListResult = z.output<typeof ExecJobListResult>;
|
|
2417
2422
|
|
|
2423
|
+
/**
|
|
2424
|
+
* @ai-matrx/desktop-protocol — the `coding` capability's Claude Code history (SPEC §6 `coding`):
|
|
2425
|
+
* "Import missing history" — every Claude Code session on this computer that AI Matrx lacks, or is
|
|
2426
|
+
* behind on, imported through the shared importer (matrx-coding-history, the same code Matrx Local
|
|
2427
|
+
* runs) in Matrx 2's `coding` Python service (SPEC §3.10). Schema source: lint-enforced rules in
|
|
2428
|
+
* scripts/check-schema-source.mjs.
|
|
2429
|
+
*
|
|
2430
|
+
* Two contracts, both generated from this file (SPEC P11):
|
|
2431
|
+
* - the Router op `coding.history.import_missing` (every transport) and its progress event;
|
|
2432
|
+
* - the internal service ops `coding.plan_missing` / `coding.import_next` between the core and
|
|
2433
|
+
* the Python service. The core runs the loop: each service call is one bounded batch carrying
|
|
2434
|
+
* a fresh access token, so a long run never outlives its credential.
|
|
2435
|
+
*/
|
|
2436
|
+
|
|
2437
|
+
declare const CodingHistoryFailure: z.ZodObject<{
|
|
2438
|
+
session_id: z.ZodString;
|
|
2439
|
+
reason: z.ZodString;
|
|
2440
|
+
}, z.core.$strict>;
|
|
2441
|
+
/**
|
|
2442
|
+
* Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
|
|
2443
|
+
* `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
|
|
2444
|
+
* its own line, so every sentence the person reads comes from one place.
|
|
2445
|
+
*/
|
|
2446
|
+
declare const CodingPlanMissingParams: z.ZodObject<{
|
|
2447
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
2448
|
+
access_token: z.ZodString;
|
|
2449
|
+
user_id: z.ZodString;
|
|
2450
|
+
server_url: z.ZodString;
|
|
2451
|
+
}, z.core.$strict>>;
|
|
2452
|
+
}, z.core.$strict>;
|
|
2453
|
+
/** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
|
|
2454
|
+
declare const CodingImportNextParams: z.ZodObject<{
|
|
2455
|
+
plan_id: z.ZodString;
|
|
2456
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
2457
|
+
access_token: z.ZodString;
|
|
2458
|
+
user_id: z.ZodString;
|
|
2459
|
+
server_url: z.ZodString;
|
|
2460
|
+
}, z.core.$strict>>;
|
|
2461
|
+
}, z.core.$strict>;
|
|
2462
|
+
declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
|
|
2463
|
+
/** What the core adds to every coding service op from its own sign-in (never sent by a client). */
|
|
2464
|
+
declare const CodingServiceCredentials: z.ZodObject<{
|
|
2465
|
+
access_token: z.ZodString;
|
|
2466
|
+
user_id: z.ZodString;
|
|
2467
|
+
server_url: z.ZodString;
|
|
2468
|
+
}, z.core.$strict>;
|
|
2469
|
+
type CodingServiceCredentials = z.output<typeof CodingServiceCredentials>;
|
|
2470
|
+
/**
|
|
2471
|
+
* Why a run stopped before it was done, as a state the screen can name:
|
|
2472
|
+
* signed_out — no usable AI Matrx sign-in (or it expired mid-run);
|
|
2473
|
+
* offline — the AI Matrx server did not answer;
|
|
2474
|
+
* organization_required — AI Matrx needs to know which organization files coding sessions;
|
|
2475
|
+
* claude_unavailable — Claude Code's account on this computer cannot be read;
|
|
2476
|
+
* cloud_list_unavailable — the server's list of sessions could not be proven complete;
|
|
2477
|
+
* history_too_large — more local sessions than the importer reads in one run.
|
|
2478
|
+
*/
|
|
2479
|
+
declare const CodingHistoryBlocked: z.ZodEnum<{
|
|
2480
|
+
signed_out: "signed_out";
|
|
2481
|
+
offline: "offline";
|
|
2482
|
+
organization_required: "organization_required";
|
|
2483
|
+
claude_unavailable: "claude_unavailable";
|
|
2484
|
+
cloud_list_unavailable: "cloud_list_unavailable";
|
|
2485
|
+
history_too_large: "history_too_large";
|
|
2486
|
+
}>;
|
|
2487
|
+
type CodingHistoryBlocked = z.output<typeof CodingHistoryBlocked>;
|
|
2488
|
+
/** A run's counts so far, and its one honest line. */
|
|
2489
|
+
declare const CodingHistoryRun: z.ZodObject<{
|
|
2490
|
+
local_sessions: z.ZodInt;
|
|
2491
|
+
in_cloud: z.ZodInt;
|
|
2492
|
+
missing: z.ZodInt;
|
|
2493
|
+
behind: z.ZodInt;
|
|
2494
|
+
too_large: z.ZodInt;
|
|
2495
|
+
imported: z.ZodInt;
|
|
2496
|
+
changed: z.ZodInt;
|
|
2497
|
+
failed: z.ZodInt;
|
|
2498
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
2499
|
+
session_id: z.ZodString;
|
|
2500
|
+
reason: z.ZodString;
|
|
2501
|
+
}, z.core.$strict>>;
|
|
2502
|
+
remaining: z.ZodInt;
|
|
2503
|
+
summary: z.ZodString;
|
|
2504
|
+
}, z.core.$strict>;
|
|
2505
|
+
type CodingHistoryRun = z.output<typeof CodingHistoryRun>;
|
|
2506
|
+
/** The answer to each service op: where the run stands. */
|
|
2507
|
+
declare const CodingHistoryStep: z.ZodObject<{
|
|
2508
|
+
plan_id: z.ZodNullable<z.ZodString>;
|
|
2509
|
+
finished: z.ZodBoolean;
|
|
2510
|
+
blocked: z.ZodNullable<z.ZodEnum<{
|
|
2511
|
+
signed_out: "signed_out";
|
|
2512
|
+
offline: "offline";
|
|
2513
|
+
organization_required: "organization_required";
|
|
2514
|
+
claude_unavailable: "claude_unavailable";
|
|
2515
|
+
cloud_list_unavailable: "cloud_list_unavailable";
|
|
2516
|
+
history_too_large: "history_too_large";
|
|
2517
|
+
}>>;
|
|
2518
|
+
run: z.ZodObject<{
|
|
2519
|
+
local_sessions: z.ZodInt;
|
|
2520
|
+
in_cloud: z.ZodInt;
|
|
2521
|
+
missing: z.ZodInt;
|
|
2522
|
+
behind: z.ZodInt;
|
|
2523
|
+
too_large: z.ZodInt;
|
|
2524
|
+
imported: z.ZodInt;
|
|
2525
|
+
changed: z.ZodInt;
|
|
2526
|
+
failed: z.ZodInt;
|
|
2527
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
2528
|
+
session_id: z.ZodString;
|
|
2529
|
+
reason: z.ZodString;
|
|
2530
|
+
}, z.core.$strict>>;
|
|
2531
|
+
remaining: z.ZodInt;
|
|
2532
|
+
summary: z.ZodString;
|
|
2533
|
+
}, z.core.$strict>;
|
|
2534
|
+
}, z.core.$strict>;
|
|
2535
|
+
type CodingHistoryStep = z.output<typeof CodingHistoryStep>;
|
|
2536
|
+
/** The coding service's progress messages (sent while it reads a large history). */
|
|
2537
|
+
declare const CodingServiceProgress: z.ZodObject<{
|
|
2538
|
+
phase: z.ZodEnum<{
|
|
2539
|
+
checking: "checking";
|
|
2540
|
+
importing: "importing";
|
|
2541
|
+
}>;
|
|
2542
|
+
done: z.ZodInt;
|
|
2543
|
+
total: z.ZodInt;
|
|
2544
|
+
}, z.core.$strict>;
|
|
2545
|
+
type CodingServiceProgress = z.output<typeof CodingServiceProgress>;
|
|
2546
|
+
declare const CodingHistoryImportMissingResult: z.ZodObject<{
|
|
2547
|
+
state: z.ZodEnum<{
|
|
2548
|
+
cancelled: "cancelled";
|
|
2549
|
+
blocked: "blocked";
|
|
2550
|
+
done: "done";
|
|
2551
|
+
}>;
|
|
2552
|
+
blocked: z.ZodNullable<z.ZodEnum<{
|
|
2553
|
+
signed_out: "signed_out";
|
|
2554
|
+
offline: "offline";
|
|
2555
|
+
organization_required: "organization_required";
|
|
2556
|
+
claude_unavailable: "claude_unavailable";
|
|
2557
|
+
cloud_list_unavailable: "cloud_list_unavailable";
|
|
2558
|
+
history_too_large: "history_too_large";
|
|
2559
|
+
}>>;
|
|
2560
|
+
run: z.ZodObject<{
|
|
2561
|
+
local_sessions: z.ZodInt;
|
|
2562
|
+
in_cloud: z.ZodInt;
|
|
2563
|
+
missing: z.ZodInt;
|
|
2564
|
+
behind: z.ZodInt;
|
|
2565
|
+
too_large: z.ZodInt;
|
|
2566
|
+
imported: z.ZodInt;
|
|
2567
|
+
changed: z.ZodInt;
|
|
2568
|
+
failed: z.ZodInt;
|
|
2569
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
2570
|
+
session_id: z.ZodString;
|
|
2571
|
+
reason: z.ZodString;
|
|
2572
|
+
}, z.core.$strict>>;
|
|
2573
|
+
remaining: z.ZodInt;
|
|
2574
|
+
summary: z.ZodString;
|
|
2575
|
+
}, z.core.$strict>;
|
|
2576
|
+
elapsed_ms: z.ZodInt;
|
|
2577
|
+
}, z.core.$strict>;
|
|
2578
|
+
type CodingHistoryImportMissingResult = z.output<typeof CodingHistoryImportMissingResult>;
|
|
2579
|
+
/** Sent to the client that started `coding.history.import_missing`, for that request. */
|
|
2580
|
+
declare const CodingHistoryProgressEvent: z.ZodObject<{
|
|
2581
|
+
request_id: z.ZodString;
|
|
2582
|
+
phase: z.ZodEnum<{
|
|
2583
|
+
checking: "checking";
|
|
2584
|
+
importing: "importing";
|
|
2585
|
+
}>;
|
|
2586
|
+
done: z.ZodInt;
|
|
2587
|
+
total: z.ZodInt;
|
|
2588
|
+
imported: z.ZodInt;
|
|
2589
|
+
failed: z.ZodInt;
|
|
2590
|
+
}, z.core.$strict>;
|
|
2591
|
+
type CodingHistoryProgressEvent = z.output<typeof CodingHistoryProgressEvent>;
|
|
2592
|
+
|
|
2418
2593
|
/**
|
|
2419
2594
|
* Version skew is the normal state: a phone, the server and a desktop app in the field run
|
|
2420
2595
|
* different package versions, and a minor protocol bump must never make any of them fail.
|
|
@@ -2501,7 +2676,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
2501
2676
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
2502
2677
|
|
|
2503
2678
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
2504
|
-
declare const CONTRACT_SHA256: "
|
|
2679
|
+
declare const CONTRACT_SHA256: "c49a85cdd157d6f50e0050e86d4ea789e916c05a0bf16c8002d833b57225548d";
|
|
2505
2680
|
|
|
2506
2681
|
/**
|
|
2507
2682
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
|
@@ -2633,4 +2808,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
|
|
|
2633
2808
|
/** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
|
|
2634
2809
|
declare function renderToolStatusMarkdown(status: ToolStatus): string;
|
|
2635
2810
|
|
|
2636
|
-
export { AbsPath, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, CONTRACT_SHA256, type CatalogTool, type CellState, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesDisk, ResourcesSnapshotParams, ResourcesSnapshotResult, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, Signal, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
|
|
2811
|
+
export { AbsPath, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, CONTRACT_SHA256, type CatalogTool, type CellState, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryProgressEvent, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingPlanMissingParams, CodingServiceCredentials, CodingServiceProgress, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesDisk, ResourcesSnapshotParams, ResourcesSnapshotResult, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, Signal, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
|
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-CCOaAWaM.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-CCOaAWaM.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. */
|
|
@@ -16,10 +16,12 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
16
16
|
* 1.3 — the `proc` capability (processes, listening ports, stopping one) and `clipboard`.
|
|
17
17
|
* 1.4 — computer control: `system`, `screen`, `window`, `input`, `power`, `resources`; polled
|
|
18
18
|
* folder watches (fs.watch.start/events/stop) and background jobs (exec.job.*).
|
|
19
|
+
* 1.5 — `coding.history.import_missing`: Claude Code history the platform lacks, imported by the
|
|
20
|
+
* `coding` Python service.
|
|
19
21
|
*/
|
|
20
|
-
declare const PROTOCOL_MINOR:
|
|
22
|
+
declare const PROTOCOL_MINOR: 5;
|
|
21
23
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
22
|
-
declare const PROTOCOL_VERSION: "1.
|
|
24
|
+
declare const PROTOCOL_VERSION: "1.5";
|
|
23
25
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
24
26
|
declare const u32: z.ZodInt;
|
|
25
27
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1410,6 +1412,7 @@ declare const ServiceShutdown: z.ZodObject<{
|
|
|
1410
1412
|
/** Supervised Python services. `tools` joins when it is built. */
|
|
1411
1413
|
declare const ServiceName: z.ZodEnum<{
|
|
1412
1414
|
ml: "ml";
|
|
1415
|
+
coding: "coding";
|
|
1413
1416
|
}>;
|
|
1414
1417
|
type ServiceName = z.output<typeof ServiceName>;
|
|
1415
1418
|
declare const CoreToServiceMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1435,6 +1438,7 @@ declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1435
1438
|
type: z.ZodLiteral<"welcome">;
|
|
1436
1439
|
service: z.ZodEnum<{
|
|
1437
1440
|
ml: "ml";
|
|
1441
|
+
coding: "coding";
|
|
1438
1442
|
}>;
|
|
1439
1443
|
contract: z.ZodString;
|
|
1440
1444
|
pid: z.ZodInt;
|
|
@@ -1527,6 +1531,7 @@ declare const ServiceWelcome: z.ZodObject<{
|
|
|
1527
1531
|
type: z.ZodLiteral<"welcome">;
|
|
1528
1532
|
service: z.ZodEnum<{
|
|
1529
1533
|
ml: "ml";
|
|
1534
|
+
coding: "coding";
|
|
1530
1535
|
}>;
|
|
1531
1536
|
contract: z.ZodString;
|
|
1532
1537
|
pid: z.ZodInt;
|
|
@@ -2415,6 +2420,176 @@ declare const ExecJobListResult: z.ZodObject<{
|
|
|
2415
2420
|
}, z.core.$strict>;
|
|
2416
2421
|
type ExecJobListResult = z.output<typeof ExecJobListResult>;
|
|
2417
2422
|
|
|
2423
|
+
/**
|
|
2424
|
+
* @ai-matrx/desktop-protocol — the `coding` capability's Claude Code history (SPEC §6 `coding`):
|
|
2425
|
+
* "Import missing history" — every Claude Code session on this computer that AI Matrx lacks, or is
|
|
2426
|
+
* behind on, imported through the shared importer (matrx-coding-history, the same code Matrx Local
|
|
2427
|
+
* runs) in Matrx 2's `coding` Python service (SPEC §3.10). Schema source: lint-enforced rules in
|
|
2428
|
+
* scripts/check-schema-source.mjs.
|
|
2429
|
+
*
|
|
2430
|
+
* Two contracts, both generated from this file (SPEC P11):
|
|
2431
|
+
* - the Router op `coding.history.import_missing` (every transport) and its progress event;
|
|
2432
|
+
* - the internal service ops `coding.plan_missing` / `coding.import_next` between the core and
|
|
2433
|
+
* the Python service. The core runs the loop: each service call is one bounded batch carrying
|
|
2434
|
+
* a fresh access token, so a long run never outlives its credential.
|
|
2435
|
+
*/
|
|
2436
|
+
|
|
2437
|
+
declare const CodingHistoryFailure: z.ZodObject<{
|
|
2438
|
+
session_id: z.ZodString;
|
|
2439
|
+
reason: z.ZodString;
|
|
2440
|
+
}, z.core.$strict>;
|
|
2441
|
+
/**
|
|
2442
|
+
* Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
|
|
2443
|
+
* `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
|
|
2444
|
+
* its own line, so every sentence the person reads comes from one place.
|
|
2445
|
+
*/
|
|
2446
|
+
declare const CodingPlanMissingParams: z.ZodObject<{
|
|
2447
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
2448
|
+
access_token: z.ZodString;
|
|
2449
|
+
user_id: z.ZodString;
|
|
2450
|
+
server_url: z.ZodString;
|
|
2451
|
+
}, z.core.$strict>>;
|
|
2452
|
+
}, z.core.$strict>;
|
|
2453
|
+
/** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
|
|
2454
|
+
declare const CodingImportNextParams: z.ZodObject<{
|
|
2455
|
+
plan_id: z.ZodString;
|
|
2456
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
2457
|
+
access_token: z.ZodString;
|
|
2458
|
+
user_id: z.ZodString;
|
|
2459
|
+
server_url: z.ZodString;
|
|
2460
|
+
}, z.core.$strict>>;
|
|
2461
|
+
}, z.core.$strict>;
|
|
2462
|
+
declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
|
|
2463
|
+
/** What the core adds to every coding service op from its own sign-in (never sent by a client). */
|
|
2464
|
+
declare const CodingServiceCredentials: z.ZodObject<{
|
|
2465
|
+
access_token: z.ZodString;
|
|
2466
|
+
user_id: z.ZodString;
|
|
2467
|
+
server_url: z.ZodString;
|
|
2468
|
+
}, z.core.$strict>;
|
|
2469
|
+
type CodingServiceCredentials = z.output<typeof CodingServiceCredentials>;
|
|
2470
|
+
/**
|
|
2471
|
+
* Why a run stopped before it was done, as a state the screen can name:
|
|
2472
|
+
* signed_out — no usable AI Matrx sign-in (or it expired mid-run);
|
|
2473
|
+
* offline — the AI Matrx server did not answer;
|
|
2474
|
+
* organization_required — AI Matrx needs to know which organization files coding sessions;
|
|
2475
|
+
* claude_unavailable — Claude Code's account on this computer cannot be read;
|
|
2476
|
+
* cloud_list_unavailable — the server's list of sessions could not be proven complete;
|
|
2477
|
+
* history_too_large — more local sessions than the importer reads in one run.
|
|
2478
|
+
*/
|
|
2479
|
+
declare const CodingHistoryBlocked: z.ZodEnum<{
|
|
2480
|
+
signed_out: "signed_out";
|
|
2481
|
+
offline: "offline";
|
|
2482
|
+
organization_required: "organization_required";
|
|
2483
|
+
claude_unavailable: "claude_unavailable";
|
|
2484
|
+
cloud_list_unavailable: "cloud_list_unavailable";
|
|
2485
|
+
history_too_large: "history_too_large";
|
|
2486
|
+
}>;
|
|
2487
|
+
type CodingHistoryBlocked = z.output<typeof CodingHistoryBlocked>;
|
|
2488
|
+
/** A run's counts so far, and its one honest line. */
|
|
2489
|
+
declare const CodingHistoryRun: z.ZodObject<{
|
|
2490
|
+
local_sessions: z.ZodInt;
|
|
2491
|
+
in_cloud: z.ZodInt;
|
|
2492
|
+
missing: z.ZodInt;
|
|
2493
|
+
behind: z.ZodInt;
|
|
2494
|
+
too_large: z.ZodInt;
|
|
2495
|
+
imported: z.ZodInt;
|
|
2496
|
+
changed: z.ZodInt;
|
|
2497
|
+
failed: z.ZodInt;
|
|
2498
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
2499
|
+
session_id: z.ZodString;
|
|
2500
|
+
reason: z.ZodString;
|
|
2501
|
+
}, z.core.$strict>>;
|
|
2502
|
+
remaining: z.ZodInt;
|
|
2503
|
+
summary: z.ZodString;
|
|
2504
|
+
}, z.core.$strict>;
|
|
2505
|
+
type CodingHistoryRun = z.output<typeof CodingHistoryRun>;
|
|
2506
|
+
/** The answer to each service op: where the run stands. */
|
|
2507
|
+
declare const CodingHistoryStep: z.ZodObject<{
|
|
2508
|
+
plan_id: z.ZodNullable<z.ZodString>;
|
|
2509
|
+
finished: z.ZodBoolean;
|
|
2510
|
+
blocked: z.ZodNullable<z.ZodEnum<{
|
|
2511
|
+
signed_out: "signed_out";
|
|
2512
|
+
offline: "offline";
|
|
2513
|
+
organization_required: "organization_required";
|
|
2514
|
+
claude_unavailable: "claude_unavailable";
|
|
2515
|
+
cloud_list_unavailable: "cloud_list_unavailable";
|
|
2516
|
+
history_too_large: "history_too_large";
|
|
2517
|
+
}>>;
|
|
2518
|
+
run: z.ZodObject<{
|
|
2519
|
+
local_sessions: z.ZodInt;
|
|
2520
|
+
in_cloud: z.ZodInt;
|
|
2521
|
+
missing: z.ZodInt;
|
|
2522
|
+
behind: z.ZodInt;
|
|
2523
|
+
too_large: z.ZodInt;
|
|
2524
|
+
imported: z.ZodInt;
|
|
2525
|
+
changed: z.ZodInt;
|
|
2526
|
+
failed: z.ZodInt;
|
|
2527
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
2528
|
+
session_id: z.ZodString;
|
|
2529
|
+
reason: z.ZodString;
|
|
2530
|
+
}, z.core.$strict>>;
|
|
2531
|
+
remaining: z.ZodInt;
|
|
2532
|
+
summary: z.ZodString;
|
|
2533
|
+
}, z.core.$strict>;
|
|
2534
|
+
}, z.core.$strict>;
|
|
2535
|
+
type CodingHistoryStep = z.output<typeof CodingHistoryStep>;
|
|
2536
|
+
/** The coding service's progress messages (sent while it reads a large history). */
|
|
2537
|
+
declare const CodingServiceProgress: z.ZodObject<{
|
|
2538
|
+
phase: z.ZodEnum<{
|
|
2539
|
+
checking: "checking";
|
|
2540
|
+
importing: "importing";
|
|
2541
|
+
}>;
|
|
2542
|
+
done: z.ZodInt;
|
|
2543
|
+
total: z.ZodInt;
|
|
2544
|
+
}, z.core.$strict>;
|
|
2545
|
+
type CodingServiceProgress = z.output<typeof CodingServiceProgress>;
|
|
2546
|
+
declare const CodingHistoryImportMissingResult: z.ZodObject<{
|
|
2547
|
+
state: z.ZodEnum<{
|
|
2548
|
+
cancelled: "cancelled";
|
|
2549
|
+
blocked: "blocked";
|
|
2550
|
+
done: "done";
|
|
2551
|
+
}>;
|
|
2552
|
+
blocked: z.ZodNullable<z.ZodEnum<{
|
|
2553
|
+
signed_out: "signed_out";
|
|
2554
|
+
offline: "offline";
|
|
2555
|
+
organization_required: "organization_required";
|
|
2556
|
+
claude_unavailable: "claude_unavailable";
|
|
2557
|
+
cloud_list_unavailable: "cloud_list_unavailable";
|
|
2558
|
+
history_too_large: "history_too_large";
|
|
2559
|
+
}>>;
|
|
2560
|
+
run: z.ZodObject<{
|
|
2561
|
+
local_sessions: z.ZodInt;
|
|
2562
|
+
in_cloud: z.ZodInt;
|
|
2563
|
+
missing: z.ZodInt;
|
|
2564
|
+
behind: z.ZodInt;
|
|
2565
|
+
too_large: z.ZodInt;
|
|
2566
|
+
imported: z.ZodInt;
|
|
2567
|
+
changed: z.ZodInt;
|
|
2568
|
+
failed: z.ZodInt;
|
|
2569
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
2570
|
+
session_id: z.ZodString;
|
|
2571
|
+
reason: z.ZodString;
|
|
2572
|
+
}, z.core.$strict>>;
|
|
2573
|
+
remaining: z.ZodInt;
|
|
2574
|
+
summary: z.ZodString;
|
|
2575
|
+
}, z.core.$strict>;
|
|
2576
|
+
elapsed_ms: z.ZodInt;
|
|
2577
|
+
}, z.core.$strict>;
|
|
2578
|
+
type CodingHistoryImportMissingResult = z.output<typeof CodingHistoryImportMissingResult>;
|
|
2579
|
+
/** Sent to the client that started `coding.history.import_missing`, for that request. */
|
|
2580
|
+
declare const CodingHistoryProgressEvent: z.ZodObject<{
|
|
2581
|
+
request_id: z.ZodString;
|
|
2582
|
+
phase: z.ZodEnum<{
|
|
2583
|
+
checking: "checking";
|
|
2584
|
+
importing: "importing";
|
|
2585
|
+
}>;
|
|
2586
|
+
done: z.ZodInt;
|
|
2587
|
+
total: z.ZodInt;
|
|
2588
|
+
imported: z.ZodInt;
|
|
2589
|
+
failed: z.ZodInt;
|
|
2590
|
+
}, z.core.$strict>;
|
|
2591
|
+
type CodingHistoryProgressEvent = z.output<typeof CodingHistoryProgressEvent>;
|
|
2592
|
+
|
|
2418
2593
|
/**
|
|
2419
2594
|
* Version skew is the normal state: a phone, the server and a desktop app in the field run
|
|
2420
2595
|
* different package versions, and a minor protocol bump must never make any of them fail.
|
|
@@ -2501,7 +2676,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
2501
2676
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
2502
2677
|
|
|
2503
2678
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
2504
|
-
declare const CONTRACT_SHA256: "
|
|
2679
|
+
declare const CONTRACT_SHA256: "c49a85cdd157d6f50e0050e86d4ea789e916c05a0bf16c8002d833b57225548d";
|
|
2505
2680
|
|
|
2506
2681
|
/**
|
|
2507
2682
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
|
@@ -2633,4 +2808,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
|
|
|
2633
2808
|
/** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
|
|
2634
2809
|
declare function renderToolStatusMarkdown(status: ToolStatus): string;
|
|
2635
2810
|
|
|
2636
|
-
export { AbsPath, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, CONTRACT_SHA256, type CatalogTool, type CellState, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesDisk, ResourcesSnapshotParams, ResourcesSnapshotResult, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, Signal, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
|
|
2811
|
+
export { AbsPath, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, CONTRACT_SHA256, type CatalogTool, type CellState, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryProgressEvent, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingPlanMissingParams, CodingServiceCredentials, CodingServiceProgress, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesDisk, ResourcesSnapshotParams, ResourcesSnapshotResult, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, Signal, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
|