@stim-cli/core 1.20.2 → 1.22.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.
Files changed (34) hide show
  1. package/README.md +2 -0
  2. package/dist/{core-BkgfKqJ8.mjs → core-BTsCO1nW.mjs} +444 -60
  3. package/dist/{index-VDWBflH3.d.mts → index-DKq1j8dw.d.mts} +340 -91
  4. package/dist/index.d.mts +101 -5
  5. package/dist/index.mjs +3 -3
  6. package/dist/keyed-delta-BBoOeR2J.mjs +289 -0
  7. package/dist/noise-DYIbymAJ.d.mts +100 -0
  8. package/dist/noise-session.d.mts +164 -0
  9. package/dist/noise-session.mjs +402 -0
  10. package/dist/noise.d.mts +2 -0
  11. package/dist/noise.mjs +393 -0
  12. package/dist/oversight.mjs +16 -6
  13. package/dist/{ownership-claim-O31Y5iIb.mjs → ownership-claim-DHUs_Dir.mjs} +1 -1
  14. package/dist/{ownership-claim-Xxxr9MPp.d.mts → ownership-claim-RY3fbm1D.d.mts} +3 -2
  15. package/dist/ownership-claim.d.mts +2 -2
  16. package/dist/ownership-claim.mjs +2 -2
  17. package/dist/phone-protocol.d.mts +85 -16
  18. package/dist/phone-protocol.mjs +2 -2
  19. package/dist/{process-identity-BTyww2Xj.d.mts → process-identity-DVNGpF5c.d.mts} +1 -1
  20. package/dist/process-identity.d.mts +1 -1
  21. package/dist/process-identity.mjs +3 -1
  22. package/dist/{protocol-pH632kA3.d.mts → protocol-BjJt4ghB.d.mts} +632 -65
  23. package/dist/protocol.d.mts +2 -2
  24. package/dist/protocol.mjs +81 -10
  25. package/dist/receive-protocol.d.mts +1 -1
  26. package/dist/receive-protocol.mjs +20163 -14469
  27. package/dist/state.d.mts +2 -2
  28. package/dist/state.mjs +1261 -208
  29. package/dist/toolchain.d.mts +64 -0
  30. package/dist/toolchain.mjs +326 -0
  31. package/dist/workspace-link.d.mts +16 -0
  32. package/dist/workspace-link.mjs +50 -0
  33. package/package.json +21 -1
  34. package/dist/status-derived-C13g6eQt.mjs +0 -151
@@ -1,14 +1,19 @@
1
- import { $t as BuildPlacement, Gn as WebBrowserState, It as AgentSession, Jn as WorkspaceStage, Jt as BuildHistoryEntry, Kt as BuildDetail, Ln as StatusIssue, Ot as withDerivedFacts, Pn as SimulatorState, Qn as MacosAppRecord, Rt as AndroidDeviceState, Ut as BuildActivity, Xn as WorktreeGit, Xt as BuildMissChange, Yn as WorktreeFacts, Zn as WorktreePullRequest, Zt as BuildMissReason, br as MaintenancePressure, cn as DeviceLeaseState, cr as ArchivedWorkspace, en as BuildPlanPayload, er as MacosBuild, fn as EnvironmentDisk, gn as LastBuildReport, hr as MaintenanceAction, in as BuildWaitingFor, jn as RemoteDeviceState, kn as PhysicalDeviceState, mn as GitChip, nn as BuildReport, on as DeviceActivity, pa as HostedMacosPlacement, pn as EnvironmentState, qt as BuildDiagnostic, sn as DeviceAppProcess, un as DiskMeasure, wn as MetroBundleState, wr as MaintenanceStatus, xn as MachineUsageState, yn as MachineOwner, yr as MaintenancePass, zn as StatusPayload } from "./index-VDWBflH3.mjs";
2
- import { $n as TouchPhase, $t as Methods, An as ReplayMarker, B as DEVICE_HOST_METHODS, Dn as ReplayEndedEvent, Dt as KeyModifier, F as ControlBeginParams, Fn as RotateDirection, Ft as LogRecord, H as DeviceAuth, I as ControlBeginResult, In as SERVER_UPDATE_METHODS, It as LogSource, Jn as SimulatorOptions, Jt as MachineVolume, K as DevicePosture, Lt as LogsEndedEvent, Mn as ReplaySpan, Nn as ReplayTarget, Nt as LogFilter, On as ReplayKeyframe, Pt as LogLevel, R as ControlEndedEvent, Rn as ServerEvent, Rt as LogsEvent, S as BuildPlanParams, St as InputSimulatorParams, T as BuildProgressEvent, U as DeviceFrameArtwork, Ut as MachineDetails, W as DeviceFrameEvent, Wt as MachineHistory, Xn as StatusEvent, Xt as MacosWindowsEvent, Z as ErrorEvent, _n as PushEvent, _t as InputKey, a as ArchiveDetailParams, an as NotificationSuppression, cn as NotificationsListResult, ct as FramesSubscribeResult, dn as PROTOCOL_VERSION, dt as HelloResult, fr as WorkspaceDiff, gn as ProtocolError, gr as WorkspacePatch, hn as Platform, ht as InputButton, i as ActionResult, in as NotificationLevel, it as FrameTarget, jn as ReplayRange, kn as ReplayKeyframeParams, m as BuildClientSummary, mn as PairingAuth, mr as WorkspaceFiles, n as ActionName, nn as NotificationEntry, nr as UsageSample, nt as FrameDelayedEvent, pr as WorkspaceFile, q as DeviceUsageSeries, qn as SimulatorCommand, qt as MachineUsage, r as ActionParams, rn as NotificationEvent, rt as FrameEvent, s as BUILD_METHODS, t as ACTIONS, tr as UsageHistory, ut as HelloParams, vn as PushRegisterParams, y as BuildMachineReport, zt as LogsQueryResult } from "./protocol-pH632kA3.mjs";
1
+ import { $t as AndroidDeviceState, Cn as DeviceLeaseState, Cr as ArchivedWorkspace, Dn as EnvironmentDisk, Hr as MaintenanceStatus, In as MachineUsageState, Kn as RemoteDeviceState, Lr as MaintenancePass, Na as HostedMacosPlacement, Nr as MaintenanceAction, On as EnvironmentState, Pn as MachineOwner, Qn as StatusIssue, Rr as MaintenancePressure, Sn as DeviceAppProcess, Sr as ArchivedUsage, Tn as DiskMeasure, Ut as withDerivedFacts, Wn as PhysicalDeviceState, Yn as SimulatorState, Zt as AgentSession, _n as BuildReport, a as MachineView, cn as BuildDiagnostic, dn as BuildMissChange, dr as WorktreeGit, er as StatusPayload, f as statusViews, fn as BuildMissReason, fr as WorktreePullRequest, hn as BuildPlanPayload, hr as MacosBuild, i as ArchivedSummary, in as BuildActivity, jn as LastBuildReport, kn as GitChip, ln as BuildHistoryEntry, lr as WorkspaceStage, mn as BuildPlacement, or as WebBrowserState, pr as MacosAppRecord, r as applyKeyedDelta, sn as BuildDetail, ur as WorktreeFacts, xn as DeviceActivity, yn as BuildWaitingFor, zn as MetroBundleState } from "./index-DKq1j8dw.mjs";
2
+ import { $ as DesktopGcEndedEvent, $r as WorkspacesEvent, A as BuildProgressEvent, Ar as StatusEvent, Bt as FramesSubscribeResult, Cn as MachineHistory, Ct as DeviceFrameEvent, D as BuildPlanParams, Dn as MachineVolume, Dr as SimulatorCommand, En as MachineUsage, Fn as NotificationEntry, Fr as UsageHistory, Ft as FrameEvent, Ht as HelloParams, In as NotificationEvent, Ir as UsageSample, It as FrameTarget, J as DEVICE_HOST_METHODS, Jr as WorkspaceFile, K as ControlEndedEvent, Kr as WorkspaceDiff, Ln as NotificationLevel, Mn as Methods, Nr as TouchPhase, Or as SimulatorOptions, Pt as FrameDelayedEvent, Q as DesktopBuildProgressEvent, Qn as PushRegisterParams, Qr as WorkspaceRef, Rn as NotificationSuppression, Sn as MachineEvent, St as DeviceFrameArtwork, Tt as DeviceUsageSeries, U as ControlBeginParams, Ut as HelloResult, Vn as NotificationsListResult, W as ControlBeginResult, Wn as PROTOCOL_VERSION, Xn as ProtocolError, Yr as WorkspaceFiles, Yt as InputKey, Z as DesktopBuildEndedEvent, Zn as PushEvent, Zr as WorkspacePatch, _n as LogsQueryResult, _t as DesktopStopProgressEvent, a as ActionResult, an as KeyModifier, at as DesktopReloadEndedEvent, bt as DesktopWorktreeWarmEndedEvent, c as ArchivedListParams, cr as ReplayKeyframe, dn as LogFilter, dr as ReplayRange, dt as DesktopRunProgressEvent, en as InputSimulatorParams, et as DesktopGcProgressEvent, fn as LogLevel, fr as ReplaySpan, gn as LogsEvent, gr as SERVER_UPDATE_METHODS, gt as DesktopStopEndedEvent, hn as LogsEndedEvent, hr as RotateDirection, ht as DesktopStartProgressEvent, i as ActionParams, kn as MacosWindowsEvent, kt as ErrorEvent, lr as ReplayKeyframeParams, mn as LogSource, mt as DesktopStartEndedEvent, o as ArchiveDetailParams, ot as DesktopReloadProgressEvent, pn as LogRecord, pr as ReplayTarget, qn as Platform, qr as WorkspaceEvent, qt as InputButton, r as ActionName, sr as ReplayEndedEvent, st as DesktopReportEvent, t as ACTIONS, u as BUILD_METHODS, ur as ReplayMarker, ut as DesktopRunEndedEvent, v as BuildClientSummary, vr as ServerEvent, vt as DesktopWorktreeRemoveEndedEvent, w as BuildMachineReport, wt as DevicePosture, xn as MachineDetails, xt as DesktopWorktreeWarmProgressEvent, yt as DesktopWorktreeRemoveProgressEvent } from "./protocol-BjJt4ghB.mjs";
3
3
  //#region phone-protocol.d.ts
4
4
  type PhonePlatform = BuildPlanParams["platform"];
5
5
  type PhoneDevicePlatform = Platform;
6
6
  type PhoneReloadPlatform = Exclude<PhoneDevicePlatform, "macos">;
7
+ /**
8
+ * What a protocol 2 pairing QR code carries, as JSON with `v: 2`; readers ignore other fields. `fingerprint` is
9
+ * base64url of the SHA-256 of the server's X25519 public key. A pairing typed in by hand has no fingerprint.
10
+ */
7
11
  interface PhonePairingPayload {
8
- v: 1;
12
+ v: 2;
9
13
  name: string;
10
14
  endpoint: string;
11
15
  pairingToken: string;
16
+ fingerprint?: string;
12
17
  }
13
18
  type PhoneSimState = Omit<SimulatorState, "activity" | "app" | "appPresence"> & {
14
19
  activity?: PhoneDeviceActivity;
@@ -115,9 +120,10 @@ type PhoneStageFacts = Omit<WorkspaceStage, "kind" | "platform" | "closedApps">
115
120
  slot: string;
116
121
  }[];
117
122
  };
118
- type PhonePullRequestFacts = Omit<WorktreePullRequest, "state" | "reviewDecision"> & {
123
+ type PhonePullRequestFacts = Omit<WorktreePullRequest, "state" | "reviewDecision" | "checkedAt"> & {
119
124
  state: string;
120
- reviewDecision: string | null;
125
+ reviewDecision?: string | null;
126
+ checkedAt?: string;
121
127
  };
122
128
  type PhoneStatusIssue = Omit<StatusIssue, "code" | "severity"> & {
123
129
  code: string;
@@ -131,7 +137,8 @@ type PhoneWebBrowserState = Omit<OptionalFields<WebBrowserState, "targetId">, "b
131
137
  }) | null;
132
138
  activity?: PhoneDeviceActivity;
133
139
  };
134
- type PhoneMacosAppState = Omit<MacosAppRecord, "build" | "hostLaunched" | "host"> & {
140
+ type PhoneMacosAppState = Omit<MacosAppRecord, "build" | "hostLaunched" | "host" | "arguments"> & {
141
+ arguments?: string[];
135
142
  state: string;
136
143
  build: Omit<MacosBuild, "state"> & {
137
144
  state: string;
@@ -146,7 +153,11 @@ type PhoneMacosAppState = Omit<MacosAppRecord, "build" | "hostLaunched" | "host"
146
153
  };
147
154
  };
148
155
  };
149
- type PhoneEnvironmentState = Omit<EnvironmentState, "slots" | "metro" | "build" | "issues" | "android" | "ios" | "web" | "macos" | "phase" | "stage" | "warmStep" | "memorySource" | "worktree" | "remoteDevices" | "physicalDevices" | "lastBuilds" | "builds" | "agents" | "endedAgents"> & {
156
+ type PhoneEnvironmentState = Omit<EnvironmentState, "slots" | "metro" | "build" | "issues" | "android" | "ios" | "web" | "macos" | "phase" | "stage" | "warmStep" | "memorySource" | "worktree" | "remoteDevices" | "physicalDevices" | "lastBuilds" | "builds" | "agents" | "endedAgents" | "logs"> & {
157
+ logs?: {
158
+ dir?: string;
159
+ errorsSinceMarker: number;
160
+ } | null;
150
161
  phase?: string;
151
162
  stage?: PhoneStageFacts;
152
163
  warmStep?: string;
@@ -205,11 +216,14 @@ type PhoneStatusUsage = Omit<UsageHistory, "devices"> & {
205
216
  })[];
206
217
  };
207
218
  type PhoneBuildResult = string;
208
- type PhoneBuildHistoryEntry = Omit<BuildHistoryEntry, keyof LastBuildReport | "result" | "phases"> & PhoneLastBuild & {
219
+ type PhoneBuildHistoryEntry = Omit<BuildHistoryEntry, keyof LastBuildReport | "result" | "phases" | "configuration" | "cacheKey"> & PhoneLastBuild & {
209
220
  result: PhoneBuildResult;
210
221
  phases: Partial<Record<string, number>>;
222
+ configuration?: string | null;
223
+ cacheKey?: string | null;
211
224
  };
212
- type PhoneLastBuild = Omit<LastBuildReport, "platform" | "status" | "cacheHit" | "missReason"> & {
225
+ type PhoneLastBuild = Omit<LastBuildReport, "platform" | "status" | "cacheHit" | "missReason" | "fingerprint"> & {
226
+ fingerprint?: string | null;
213
227
  platform: string;
214
228
  status: string;
215
229
  cacheHit: PhoneBuildCacheHit;
@@ -253,6 +267,38 @@ type PhoneStatusPayload = Omit<StatusPayload, "environments" | "machine" | "unpr
253
267
  machine?: PhoneMachineUsageState | null;
254
268
  ownLeases?: string[];
255
269
  };
270
+ type PhoneWorkspaceSummary = PhoneEnvironmentState;
271
+ type PhoneWorktreeRow = Pick<PhoneWorktreeFacts, "path" | "branch" | "repository" | "git" | "gitChip" | "pullRequest">;
272
+ type PhoneArchivedWorkspace = NonNullable<PhoneStatusPayload["archived"]>[number];
273
+ type PhoneArchivedSummary = ArchivedSummary;
274
+ type PhoneMachineView = Omit<MachineView, "machine" | "maintenance"> & {
275
+ machine: PhoneMachineUsageState | null;
276
+ /**
277
+ * Already without `recent` and `sizes`. An `Omit` here made the RPC validator generator, which mishandles `Omit` of an
278
+ * intersection, require `plan` to be an object, and the phone refused every machine event with maintenance.
279
+ */
280
+ maintenance: PhoneMaintenanceStatus | null;
281
+ };
282
+ type PhoneKeyedDelta<T> = {
283
+ upsert: T[];
284
+ remove: string[];
285
+ };
286
+ type PhoneWorkspacesEvent = Omit<WorkspacesEvent, "snapshot" | "workspaces" | "worktrees"> & {
287
+ snapshot?: {
288
+ workspaces: PhoneWorkspaceSummary[];
289
+ worktrees: PhoneWorktreeRow[];
290
+ archived: PhoneArchivedSummary;
291
+ };
292
+ workspaces?: PhoneKeyedDelta<PhoneWorkspaceSummary>;
293
+ worktrees?: PhoneKeyedDelta<PhoneWorktreeRow>;
294
+ };
295
+ type PhoneWorkspaceEvent = Omit<WorkspaceEvent, "environment"> & {
296
+ environment: PhoneEnvironmentState | null;
297
+ };
298
+ type PhoneMachineEvent = Omit<MachineEvent, "machine" | "usage"> & {
299
+ machine: PhoneMachineView;
300
+ usage?: PhoneStatusUsage;
301
+ };
256
302
  type PhoneMachineOwnerKind = string;
257
303
  type PhoneMachineOwner = Omit<OptionalFields<MachineOwner, "memoryMb">, "kind"> & {
258
304
  kind: PhoneMachineOwnerKind;
@@ -336,7 +382,6 @@ type PhoneMachineHistory = Omit<MachineHistory, "samples"> & {
336
382
  type PhoneMachineDetails = OptionalFields<MachineDetails, "buildMachines">;
337
383
  type PhoneBuildClientSummary = BuildClientSummary;
338
384
  type PhoneBuildMachineReport = BuildMachineReport;
339
- type PhoneClientAuth = PairingAuth | DeviceAuth;
340
385
  type PhonePushEvent = PushEvent;
341
386
  type PhoneNotificationLevel = NotificationLevel;
342
387
  type PhonePushRegisterParams = PushRegisterParams;
@@ -394,7 +439,7 @@ type PhoneControlEndedEvent = Omit<ControlEndedEvent, "reason"> & {
394
439
  type PhoneNotificationEvent = Omit<NotificationEvent, "notification"> & {
395
440
  notification: PhoneNotificationEntry;
396
441
  };
397
- type PhoneServerEvent = Exclude<ServerEvent, BuildProgressEvent | StatusEvent | LogsEvent | ErrorEvent | FrameEvent | ControlEndedEvent | NotificationEvent | MacosWindowsEvent> | PhoneMacosWindowsEvent | PhoneStatusEvent | PhoneLogsEvent | PhoneErrorEvent | PhoneFrameEvent | PhoneControlEndedEvent | PhoneNotificationEvent;
442
+ type PhoneServerEvent = Exclude<ServerEvent, BuildProgressEvent | StatusEvent | WorkspacesEvent | WorkspaceEvent | MachineEvent | LogsEvent | ErrorEvent | FrameEvent | ControlEndedEvent | NotificationEvent | MacosWindowsEvent | DesktopReportEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStartProgressEvent | DesktopStartEndedEvent | DesktopRunProgressEvent | DesktopRunEndedEvent | DesktopBuildProgressEvent | DesktopBuildEndedEvent | DesktopGcProgressEvent | DesktopGcEndedEvent | DesktopWorktreeRemoveProgressEvent | DesktopWorktreeRemoveEndedEvent | DesktopWorktreeWarmProgressEvent | DesktopWorktreeWarmEndedEvent> | PhoneMacosWindowsEvent | PhoneStatusEvent | PhoneWorkspacesEvent | PhoneWorkspaceEvent | PhoneMachineEvent | PhoneLogsEvent | PhoneErrorEvent | PhoneFrameEvent | PhoneControlEndedEvent | PhoneNotificationEvent;
398
443
  /** Fields introduced after protocol v1's initial release remain optional on the receiving client. */
399
444
  type OptionalFields<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
400
445
  type PhoneHelloResult = OptionalFields<Omit<HelloResult, "server" | "features" | "capabilities" | "actions" | "approval">, "device"> & {
@@ -407,11 +452,35 @@ type PhoneHelloResult = OptionalFields<Omit<HelloResult, "server" | "features" |
407
452
  expiresAt: string;
408
453
  };
409
454
  };
410
- type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVICE_HOST_METHODS)[number] | (typeof SERVER_UPDATE_METHODS)[number] | "machines.update.start" | "machines.update.status" | "device-host.sessions" | "device-host.sessions.stop" | "route.setup" | "hello" | "logs.query" | "machine.get" | "machine.details" | "machine.history" | "workspace.diff" | "frames.subscribe" | "replay.range" | "archive.detail" | "replay.keyframe" | "build.plan" | "action" | "control.begin" | "notifications.list"> & {
411
- hello: {
412
- params: Omit<HelloParams, "auth"> & {
413
- auth: PhoneClientAuth;
455
+ type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVICE_HOST_METHODS)[number] | (typeof SERVER_UPDATE_METHODS)[number] | "desktop.authenticate" | "desktop.reports.get" | "desktop.reports.subscribe" | "desktop.reports.invalidate" | "desktop.settings.get" | "desktop.settings.write" | "desktop.logs.subscribe" | "desktop.doctor.run" | "desktop.stop.subscribe" | "desktop.reload.subscribe" | "desktop.start.subscribe" | "desktop.run.subscribe" | "desktop.build.subscribe" | "desktop.gc.subscribe" | "desktop.worktree.remove.subscribe" | "desktop.worktree.warm.subscribe" | "desktop.plan.get" | "desktop.plan.cancel" | "machines.update.start" | "machines.update.status" | "device-host.sessions" | "device-host.sessions.stop" | "route.setup" | "hello" | "logs.query" | "machine.get" | "machine.details" | "machine.history" | "workspace.diff" | "frames.subscribe" | "replay.range" | "archive.detail" | "replay.keyframe" | "build.plan" | "action" | "control.begin" | "notifications.list" | "builds.history" | "archived.list" | "worktrees.list" | "maintenance.get"> & {
456
+ "builds.history": {
457
+ params: WorkspaceRef;
458
+ result: {
459
+ builds?: Partial<Record<string, PhoneBuildHistoryEntry[]>>;
460
+ };
461
+ };
462
+ "archived.list": {
463
+ params?: ArchivedListParams;
464
+ result: {
465
+ archived: PhoneArchivedWorkspace[];
466
+ usage: ArchivedUsage;
467
+ next: string | null;
414
468
  };
469
+ };
470
+ "worktrees.list": {
471
+ params?: Record<string, never>;
472
+ result: {
473
+ worktrees: PhoneWorktreeFacts[];
474
+ };
475
+ };
476
+ "maintenance.get": {
477
+ params?: Record<string, never>;
478
+ result: {
479
+ maintenance: PhoneMaintenanceStatus | null;
480
+ };
481
+ };
482
+ hello: {
483
+ params: Omit<HelloParams, "access">;
415
484
  result: PhoneHelloResult;
416
485
  };
417
486
  "machine.history": {
@@ -481,4 +550,4 @@ type PhoneResponse<M extends PhoneMethod = PhoneMethod> = {
481
550
  };
482
551
  type PhoneServerMessage = PhoneResponse | PhoneServerEvent;
483
552
  //#endregion
484
- export { ACTIONS, type PhoneActionName as ActionName, PhoneActionName, type PhoneActionParams as ActionParams, PhoneActionParams, type PhoneActionResult as ActionResult, PhoneActionResult, type PhoneAgentSession as AgentSession, PhoneAgentSession, type PhoneAndroidState as AndroidState, PhoneAndroidState, type PhoneAppPresence as AppPresence, PhoneAppPresence, type PhoneArchiveDetailResult as ArchiveDetailResult, PhoneArchiveDetailResult, type PhoneBuildActivity as BuildActivity, PhoneBuildActivity, type PhoneBuildCacheHit as BuildCacheHit, PhoneBuildCacheHit, type PhoneBuildClientSummary as BuildClientSummary, PhoneBuildClientSummary, type PhoneBuildDetail as BuildDetail, PhoneBuildDetail, type PhoneBuildDiagnostic as BuildDiagnostic, PhoneBuildDiagnostic, type PhoneBuildHistoryEntry as BuildHistoryEntry, PhoneBuildHistoryEntry, type PhoneBuildMachineReport as BuildMachineReport, PhoneBuildMachineReport, type PhoneBuildMissCategory as BuildMissCategory, PhoneBuildMissCategory, type PhoneBuildMissChange as BuildMissChange, PhoneBuildMissChange, type PhoneBuildMissReason as BuildMissReason, PhoneBuildMissReason, type PhoneBuildPhase as BuildPhase, PhoneBuildPhase, type PhoneBuildPlacement as BuildPlacement, PhoneBuildPlacement, type PhoneBuildPlan as BuildPlan, PhoneBuildPlan, type PhoneBuildPlanParams as BuildPlanParams, PhoneBuildPlanParams, type PhoneBuildReport as BuildReport, PhoneBuildReport, type PhoneBuildResult as BuildResult, PhoneBuildResult, type PhoneClientAuth as ClientAuth, PhoneClientAuth, type PhoneControlBeginParams as ControlBeginParams, PhoneControlBeginParams, type PhoneControlBeginResult as ControlBeginResult, PhoneControlBeginResult, type PhoneControlEndedEvent as ControlEndedEvent, PhoneControlEndedEvent, type PhoneDeviceActivity as DeviceActivity, PhoneDeviceActivity, type PhoneDeviceAppProcess as DeviceAppProcess, PhoneDeviceAppProcess, type PhoneDeviceDisk as DeviceDisk, PhoneDeviceDisk, type PhoneDeviceFrameArtwork as DeviceFrameArtwork, PhoneDeviceFrameArtwork, type PhoneDeviceFrameEvent as DeviceFrameEvent, PhoneDeviceFrameEvent, type PhoneDeviceLeaseState as DeviceLeaseState, PhoneDeviceLeaseState, type PhoneDevicePlatform as DevicePlatform, PhoneDevicePlatform, type PhoneDevicePosture as DevicePosture, PhoneDevicePosture, type PhoneEndedAgentSession as EndedAgentSession, PhoneEndedAgentSession, type PhoneEnvironmentState as EnvironmentState, PhoneEnvironmentState, type PhoneErrorEvent as ErrorEvent, PhoneErrorEvent, type PhoneFrameDelayedEvent as FrameDelayedEvent, PhoneFrameDelayedEvent, type PhoneFrameEvent as FrameEvent, PhoneFrameEvent, type PhoneFrameTarget as FrameTarget, PhoneFrameTarget, type PhoneGitChipFacts as GitChipFacts, PhoneGitChipFacts, type PhoneGitChipPart as GitChipPart, PhoneGitChipPart, type PhoneHelloResult as HelloResult, PhoneHelloResult, type PhoneInputButton as InputButton, PhoneInputButton, type PhoneInputKey as InputKey, PhoneInputKey, type PhoneInputSimulatorParams as InputSimulatorParams, PhoneInputSimulatorParams, type PhoneKeyModifier as KeyModifier, PhoneKeyModifier, type PhoneLastBuild as LastBuild, PhoneLastBuild, type PhoneLogFilter as LogFilter, PhoneLogFilter, type PhoneLogLevel as LogLevel, PhoneLogLevel, type PhoneLogRecord as LogRecord, PhoneLogRecord, type PhoneLogSource as LogSource, PhoneLogSource, type PhoneLogsEndedEvent as LogsEndedEvent, PhoneLogsEndedEvent, type PhoneLogsEvent as LogsEvent, PhoneLogsEvent, type PhoneMachineDetails as MachineDetails, PhoneMachineDetails, type PhoneMachineHistory as MachineHistory, PhoneMachineHistory, type PhoneMachineOwner as MachineOwner, PhoneMachineOwner, type PhoneMachineOwnerKind as MachineOwnerKind, PhoneMachineOwnerKind, type PhoneMachineUsage as MachineUsage, PhoneMachineUsage, type PhoneMachineUsageState as MachineUsageState, PhoneMachineUsageState, type PhoneMachineVolume as MachineVolume, PhoneMachineVolume, type PhoneMacosAppState as MacosAppState, PhoneMacosAppState, type PhoneMacosWindowsEvent as MacosWindowsEvent, PhoneMacosWindowsEvent, type PhoneMemoryPressure as MemoryPressure, PhoneMemoryPressure, type PhoneMethod as Method, PhoneMethod, type PhoneMethods as Methods, PhoneMethods, type PhoneMetroBundle as MetroBundle, PhoneMetroBundle, type PhoneNotificationEntry as NotificationEntry, PhoneNotificationEntry, type PhoneNotificationEvent as NotificationEvent, PhoneNotificationEvent, type PhoneNotificationLevel as NotificationLevel, PhoneNotificationLevel, type PhoneNotificationSuppression as NotificationSuppression, PhoneNotificationSuppression, type PhoneNotificationTarget as NotificationTarget, PhoneNotificationTarget, type PhoneNotificationsListResult as NotificationsListResult, PhoneNotificationsListResult, PROTOCOL_VERSION, type PhonePairingPayload as PairingPayload, PhonePairingPayload, PhoneMaintenanceStatus, PhonePhysicalDeviceState, type PhonePhysicalDeviceState as PhysicalDeviceState, PhonePlatform, type PhonePlatform as Platform, PhoneProtocolError, type PhoneProtocolError as ProtocolError, PhonePullRequestFacts, type PhonePullRequestFacts as PullRequestFacts, PhonePushEvent, type PhonePushEvent as PushEvent, PhonePushRegisterParams, type PhonePushRegisterParams as PushRegisterParams, PhoneReloadPlatform, type PhoneReloadPlatform as ReloadPlatform, PhoneRemoteDeviceState, type PhoneRemoteDeviceState as RemoteDeviceState, PhoneReplayEndedEvent, type PhoneReplayEndedEvent as ReplayEndedEvent, PhoneReplayKeyframe, type PhoneReplayKeyframe as ReplayKeyframe, PhoneReplayMarker, type PhoneReplayMarker as ReplayMarker, PhoneReplayRange, type PhoneReplayRange as ReplayRange, PhoneReplayRate, type PhoneReplayRate as ReplayRate, PhoneReplaySpan, type PhoneReplaySpan as ReplaySpan, PhoneResponse, type PhoneResponse as Response, PhoneRotateDirection, type PhoneRotateDirection as RotateDirection, PhoneServerEvent, type PhoneServerEvent as ServerEvent, PhoneServerMessage, type PhoneServerMessage as ServerMessage, PhoneSimState, type PhoneSimState as SimState, PhoneSimulatorCommand, type PhoneSimulatorCommand as SimulatorCommand, PhoneSimulatorOptions, type PhoneSimulatorOptions as SimulatorOptions, PhoneStackFrame, type PhoneStackFrame as StackFrame, PhoneStageFacts, type PhoneStageFacts as StageFacts, PhoneStatusEvent, type PhoneStatusEvent as StatusEvent, PhoneStatusIssue, type PhoneStatusIssue as StatusIssue, PhoneStatusPayload, type PhoneStatusPayload as StatusPayload, PhoneStatusUsage, type PhoneStatusUsage as StatusUsage, PhoneTouchPhase, type PhoneTouchPhase as TouchPhase, PhoneUsageSample, type PhoneUsageSample as UsageSample, PhoneWebBrowserState, type PhoneWebBrowserState as WebBrowserState, PhoneWorkspaceDiff, type PhoneWorkspaceDiff as WorkspaceDiff, PhoneWorkspaceDisk, type PhoneWorkspaceDisk as WorkspaceDisk, PhoneWorkspaceFile, type PhoneWorkspaceFile as WorkspaceFile, PhoneWorkspaceFiles, type PhoneWorkspaceFiles as WorkspaceFiles, PhoneWorkspacePatch, type PhoneWorkspacePatch as WorkspacePatch, PhoneWorktreeFacts, type PhoneWorktreeFacts as WorktreeFacts, PhoneWorktreeGit, type PhoneWorktreeGit as WorktreeGit, withDerivedFacts };
553
+ export { ACTIONS, type PhoneActionName as ActionName, PhoneActionName, type PhoneActionParams as ActionParams, PhoneActionParams, type PhoneActionResult as ActionResult, PhoneActionResult, type PhoneAgentSession as AgentSession, PhoneAgentSession, type PhoneAndroidState as AndroidState, PhoneAndroidState, type PhoneAppPresence as AppPresence, PhoneAppPresence, type PhoneArchiveDetailResult as ArchiveDetailResult, PhoneArchiveDetailResult, type PhoneArchivedSummary as ArchivedSummary, PhoneArchivedSummary, type PhoneArchivedWorkspace as ArchivedWorkspace, PhoneArchivedWorkspace, type PhoneBuildActivity as BuildActivity, PhoneBuildActivity, type PhoneBuildCacheHit as BuildCacheHit, PhoneBuildCacheHit, type PhoneBuildClientSummary as BuildClientSummary, PhoneBuildClientSummary, type PhoneBuildDetail as BuildDetail, PhoneBuildDetail, type PhoneBuildDiagnostic as BuildDiagnostic, PhoneBuildDiagnostic, type PhoneBuildHistoryEntry as BuildHistoryEntry, PhoneBuildHistoryEntry, type PhoneBuildMachineReport as BuildMachineReport, PhoneBuildMachineReport, type PhoneBuildMissCategory as BuildMissCategory, PhoneBuildMissCategory, type PhoneBuildMissChange as BuildMissChange, PhoneBuildMissChange, type PhoneBuildMissReason as BuildMissReason, PhoneBuildMissReason, type PhoneBuildPhase as BuildPhase, PhoneBuildPhase, type PhoneBuildPlacement as BuildPlacement, PhoneBuildPlacement, type PhoneBuildPlan as BuildPlan, PhoneBuildPlan, type PhoneBuildPlanParams as BuildPlanParams, PhoneBuildPlanParams, type PhoneBuildReport as BuildReport, PhoneBuildReport, type PhoneBuildResult as BuildResult, PhoneBuildResult, type PhoneControlBeginParams as ControlBeginParams, PhoneControlBeginParams, type PhoneControlBeginResult as ControlBeginResult, PhoneControlBeginResult, type PhoneControlEndedEvent as ControlEndedEvent, PhoneControlEndedEvent, type PhoneDeviceActivity as DeviceActivity, PhoneDeviceActivity, type PhoneDeviceAppProcess as DeviceAppProcess, PhoneDeviceAppProcess, type PhoneDeviceDisk as DeviceDisk, PhoneDeviceDisk, type PhoneDeviceFrameArtwork as DeviceFrameArtwork, PhoneDeviceFrameArtwork, type PhoneDeviceFrameEvent as DeviceFrameEvent, PhoneDeviceFrameEvent, type PhoneDeviceLeaseState as DeviceLeaseState, PhoneDeviceLeaseState, type PhoneDevicePlatform as DevicePlatform, PhoneDevicePlatform, type PhoneDevicePosture as DevicePosture, PhoneDevicePosture, type PhoneEndedAgentSession as EndedAgentSession, PhoneEndedAgentSession, type PhoneEnvironmentState as EnvironmentState, PhoneEnvironmentState, type PhoneErrorEvent as ErrorEvent, PhoneErrorEvent, type PhoneFrameDelayedEvent as FrameDelayedEvent, PhoneFrameDelayedEvent, type PhoneFrameEvent as FrameEvent, PhoneFrameEvent, type PhoneFrameTarget as FrameTarget, PhoneFrameTarget, type PhoneGitChipFacts as GitChipFacts, PhoneGitChipFacts, type PhoneGitChipPart as GitChipPart, PhoneGitChipPart, type PhoneHelloResult as HelloResult, PhoneHelloResult, type PhoneInputButton as InputButton, PhoneInputButton, type PhoneInputKey as InputKey, PhoneInputKey, type PhoneInputSimulatorParams as InputSimulatorParams, PhoneInputSimulatorParams, type PhoneKeyModifier as KeyModifier, PhoneKeyModifier, type PhoneLastBuild as LastBuild, PhoneLastBuild, type PhoneLogFilter as LogFilter, PhoneLogFilter, type PhoneLogLevel as LogLevel, PhoneLogLevel, type PhoneLogRecord as LogRecord, PhoneLogRecord, type PhoneLogSource as LogSource, PhoneLogSource, type PhoneLogsEndedEvent as LogsEndedEvent, PhoneLogsEndedEvent, type PhoneLogsEvent as LogsEvent, PhoneLogsEvent, type PhoneMachineDetails as MachineDetails, PhoneMachineDetails, type PhoneMachineEvent as MachineEvent, PhoneMachineEvent, type PhoneMachineHistory as MachineHistory, PhoneMachineHistory, type PhoneMachineOwner as MachineOwner, PhoneMachineOwner, type PhoneMachineOwnerKind as MachineOwnerKind, PhoneMachineOwnerKind, type PhoneMachineUsage as MachineUsage, PhoneMachineUsage, type PhoneMachineUsageState as MachineUsageState, PhoneMachineUsageState, type PhoneMachineView as MachineView, PhoneMachineView, type PhoneMachineVolume as MachineVolume, PhoneMachineVolume, type PhoneMacosAppState as MacosAppState, PhoneMacosAppState, type PhoneMacosWindowsEvent as MacosWindowsEvent, PhoneMacosWindowsEvent, type PhoneMemoryPressure as MemoryPressure, PhoneMemoryPressure, type PhoneMethod as Method, PhoneMethod, type PhoneMethods as Methods, PhoneMethods, type PhoneMetroBundle as MetroBundle, PhoneMetroBundle, type PhoneNotificationEntry as NotificationEntry, PhoneNotificationEntry, type PhoneNotificationEvent as NotificationEvent, PhoneNotificationEvent, type PhoneNotificationLevel as NotificationLevel, PhoneNotificationLevel, type PhoneNotificationSuppression as NotificationSuppression, PhoneNotificationSuppression, type PhoneNotificationTarget as NotificationTarget, PhoneNotificationTarget, type PhoneNotificationsListResult as NotificationsListResult, PhoneNotificationsListResult, PROTOCOL_VERSION, type PhonePairingPayload as PairingPayload, PhonePairingPayload, PhoneKeyedDelta, PhoneMaintenanceStatus, PhonePhysicalDeviceState, type PhonePhysicalDeviceState as PhysicalDeviceState, PhonePlatform, type PhonePlatform as Platform, PhoneProtocolError, type PhoneProtocolError as ProtocolError, PhonePullRequestFacts, type PhonePullRequestFacts as PullRequestFacts, PhonePushEvent, type PhonePushEvent as PushEvent, PhonePushRegisterParams, type PhonePushRegisterParams as PushRegisterParams, PhoneReloadPlatform, type PhoneReloadPlatform as ReloadPlatform, PhoneRemoteDeviceState, type PhoneRemoteDeviceState as RemoteDeviceState, PhoneReplayEndedEvent, type PhoneReplayEndedEvent as ReplayEndedEvent, PhoneReplayKeyframe, type PhoneReplayKeyframe as ReplayKeyframe, PhoneReplayMarker, type PhoneReplayMarker as ReplayMarker, PhoneReplayRange, type PhoneReplayRange as ReplayRange, PhoneReplayRate, type PhoneReplayRate as ReplayRate, PhoneReplaySpan, type PhoneReplaySpan as ReplaySpan, PhoneResponse, type PhoneResponse as Response, PhoneRotateDirection, type PhoneRotateDirection as RotateDirection, PhoneServerEvent, type PhoneServerEvent as ServerEvent, PhoneServerMessage, type PhoneServerMessage as ServerMessage, PhoneSimState, type PhoneSimState as SimState, PhoneSimulatorCommand, type PhoneSimulatorCommand as SimulatorCommand, PhoneSimulatorOptions, type PhoneSimulatorOptions as SimulatorOptions, PhoneStackFrame, type PhoneStackFrame as StackFrame, PhoneStageFacts, type PhoneStageFacts as StageFacts, PhoneStatusEvent, type PhoneStatusEvent as StatusEvent, PhoneStatusIssue, type PhoneStatusIssue as StatusIssue, PhoneStatusPayload, type PhoneStatusPayload as StatusPayload, PhoneStatusUsage, type PhoneStatusUsage as StatusUsage, PhoneTouchPhase, type PhoneTouchPhase as TouchPhase, PhoneUsageSample, type PhoneUsageSample as UsageSample, PhoneWebBrowserState, type PhoneWebBrowserState as WebBrowserState, PhoneWorkspaceDiff, type PhoneWorkspaceDiff as WorkspaceDiff, PhoneWorkspaceDisk, type PhoneWorkspaceDisk as WorkspaceDisk, PhoneWorkspaceEvent, type PhoneWorkspaceEvent as WorkspaceEvent, PhoneWorkspaceFile, type PhoneWorkspaceFile as WorkspaceFile, PhoneWorkspaceFiles, type PhoneWorkspaceFiles as WorkspaceFiles, PhoneWorkspacePatch, type PhoneWorkspacePatch as WorkspacePatch, PhoneWorkspaceSummary, type PhoneWorkspaceSummary as WorkspaceSummary, PhoneWorkspacesEvent, type PhoneWorkspacesEvent as WorkspacesEvent, PhoneWorktreeFacts, type PhoneWorktreeFacts as WorktreeFacts, PhoneWorktreeGit, type PhoneWorktreeGit as WorktreeGit, PhoneWorktreeRow, type PhoneWorktreeRow as WorktreeRow, applyKeyedDelta, statusViews, withDerivedFacts };
@@ -1,3 +1,3 @@
1
- import { t as withDerivedFacts } from "./status-derived-C13g6eQt.mjs";
1
+ import { i as statusViews, n as applyKeyedDelta, o as withDerivedFacts } from "./keyed-delta-BBoOeR2J.mjs";
2
2
  import { ACTIONS, PROTOCOL_VERSION } from "./protocol.mjs";
3
- export { ACTIONS, PROTOCOL_VERSION, withDerivedFacts };
3
+ export { ACTIONS, PROTOCOL_VERSION, applyKeyedDelta, statusViews, withDerivedFacts };
@@ -32,6 +32,6 @@ declare function processStartMicros(pid: number): {
32
32
  } | {
33
33
  status: "gone" | "unknown";
34
34
  };
35
- declare function waitForProcessExit(record: ProcessRecord, timeoutMs: number): Promise<boolean>;
35
+ declare function waitForProcessExit(record: ProcessRecord, timeoutMs: number, signal?: AbortSignal): Promise<boolean>;
36
36
  //#endregion
37
37
  export { captureProcessIdentity as a, inspectProcessStart as c, waitForProcessExit as d, ProcessStart as i, processStartMicros as l, ProcessIdentityStatus as n, captureProcessToken as o, ProcessRecord as r, inspectProcessIdentity as s, CapturedIdentity as t, sameProcessRecord as u };
@@ -1,2 +1,2 @@
1
- import { a as captureProcessIdentity, c as inspectProcessStart, d as waitForProcessExit, i as ProcessStart, l as processStartMicros, n as ProcessIdentityStatus, o as captureProcessToken, r as ProcessRecord, s as inspectProcessIdentity, t as CapturedIdentity, u as sameProcessRecord } from "./process-identity-BTyww2Xj.mjs";
1
+ import { a as captureProcessIdentity, c as inspectProcessStart, d as waitForProcessExit, i as ProcessStart, l as processStartMicros, n as ProcessIdentityStatus, o as captureProcessToken, r as ProcessRecord, s as inspectProcessIdentity, t as CapturedIdentity, u as sameProcessRecord } from "./process-identity-DVNGpF5c.mjs";
2
2
  export { CapturedIdentity, ProcessIdentityStatus, ProcessRecord, ProcessStart, captureProcessIdentity, captureProcessToken, inspectProcessIdentity, inspectProcessStart, processStartMicros, sameProcessRecord, waitForProcessExit };
@@ -47,14 +47,16 @@ function processStartMicros(pid) {
47
47
  startedAtMicros: Number(match[1]) * 1e6 + Number(match[2])
48
48
  };
49
49
  }
50
- async function waitForProcessExit(record, timeoutMs) {
50
+ async function waitForProcessExit(record, timeoutMs, signal) {
51
51
  const deadline = Date.now() + timeoutMs;
52
52
  while (Date.now() <= deadline) {
53
+ signal?.throwIfAborted();
53
54
  const identity = inspectProcessIdentity(record);
54
55
  if (identity === "different" || identity === "gone") return true;
55
56
  if (Date.now() >= deadline) return false;
56
57
  await new Promise((resolve) => setTimeout(resolve, 100));
57
58
  }
59
+ signal?.throwIfAborted();
58
60
  return false;
59
61
  }
60
62
  //#endregion