@ai-matrx/desktop-protocol 0.17.4 → 0.17.6

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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-9j0ncAJj.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-9j0ncAJj.js';
2
+ import { O as OpName } from './models-B9tM6Hnx.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-B9tM6Hnx.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. */
@@ -21,10 +21,12 @@ declare const PROTOCOL_MAJOR: 1;
21
21
  * 1.6 — the `audio` capability: devices, record a clip to a WAV file, play a file.
22
22
  * 1.7 — a window names its owning application and process (WindowInfo `app`, `pid`).
23
23
  * 1.8 — `apps.chats.*` / `apps.projects.*`: a coding app's chats, windows, pins and projects, live.
24
+ * 1.9 — chats placed in windows / held, several filed at once, projects renamed / archived / copied;
25
+ * the list says when it is a saved copy being re-read (`updating`) and when it is not live.
24
26
  */
25
- declare const PROTOCOL_MINOR: 8;
27
+ declare const PROTOCOL_MINOR: 10;
26
28
  /** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
27
- declare const PROTOCOL_VERSION: "1.8";
29
+ declare const PROTOCOL_VERSION: "1.10";
28
30
  /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
29
31
  declare const u32: z.ZodInt;
30
32
  declare const nonNegInt: z.ZodInt;
@@ -1384,6 +1386,13 @@ declare const ChatRow: z.ZodObject<{
1384
1386
  }, z.core.$strict>>;
1385
1387
  }, z.core.$strict>;
1386
1388
  type ChatRow = z.output<typeof ChatRow>;
1389
+ /** 1.10: a chat's family: the conversation it was forked from, or the original it is a copy of. */
1390
+ declare const ChatFamily: z.ZodObject<{
1391
+ id: z.ZodString;
1392
+ fork_of: z.ZodNullable<z.ZodString>;
1393
+ copy_of: z.ZodNullable<z.ZodString>;
1394
+ }, z.core.$strict>;
1395
+ type ChatFamily = z.output<typeof ChatFamily>;
1387
1396
  declare const AppsChatsListParams: z.ZodObject<{
1388
1397
  app_key: z.ZodString;
1389
1398
  ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1444,6 +1453,13 @@ declare const AppsChatsListResult: z.ZodObject<{
1444
1453
  }, z.core.$strict>>;
1445
1454
  }, z.core.$strict>>;
1446
1455
  new_window_ms: z.ZodInt;
1456
+ updating: z.ZodOptional<z.ZodBoolean>;
1457
+ live: z.ZodOptional<z.ZodBoolean>;
1458
+ families: z.ZodOptional<z.ZodArray<z.ZodObject<{
1459
+ id: z.ZodString;
1460
+ fork_of: z.ZodNullable<z.ZodString>;
1461
+ copy_of: z.ZodNullable<z.ZodString>;
1462
+ }, z.core.$strict>>>;
1447
1463
  }, z.core.$strict>;
1448
1464
  type AppsChatsListResult = z.output<typeof AppsChatsListResult>;
1449
1465
  declare const AppsChatsWatchParams: z.ZodObject<{
@@ -1618,6 +1634,392 @@ declare const AppsChatsStarResult: z.ZodObject<{
1618
1634
  }, z.core.$strict>;
1619
1635
  }, z.core.$strict>;
1620
1636
  type AppsChatsStarResult = z.output<typeof AppsChatsStarResult>;
1637
+ /** 1.9: the index's own state, to every watcher: live (changes arrive) or not, and why. */
1638
+ declare const AppsChatsWatchStateEvent: z.ZodObject<{
1639
+ app_key: z.ZodString;
1640
+ live: z.ZodBoolean;
1641
+ updating: z.ZodBoolean;
1642
+ reason: z.ZodNullable<z.ZodString>;
1643
+ }, z.core.$strict>;
1644
+ type AppsChatsWatchStateEvent = z.output<typeof AppsChatsWatchStateEvent>;
1645
+ /** 1.9: put a chat in a window, take it off one (never its last place), or keep it in the holder. */
1646
+ declare const AppsChatsPlaceParams: z.ZodObject<{
1647
+ app_key: z.ZodString;
1648
+ chat_id: z.ZodString;
1649
+ action: z.ZodEnum<{
1650
+ place: "place";
1651
+ take_off: "take_off";
1652
+ hold: "hold";
1653
+ }>;
1654
+ window: z.ZodOptional<z.ZodString>;
1655
+ stop_if_open: z.ZodDefault<z.ZodBoolean>;
1656
+ }, z.core.$strict>;
1657
+ type AppsChatsPlaceParams = z.output<typeof AppsChatsPlaceParams>;
1658
+ declare const AppsChatsPlaceResult: z.ZodObject<{
1659
+ chat: z.ZodObject<{
1660
+ id: z.ZodString;
1661
+ short_id: z.ZodString;
1662
+ record: z.ZodNullable<z.ZodString>;
1663
+ title: z.ZodString;
1664
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1665
+ created_ms: z.ZodNullable<z.ZodInt>;
1666
+ projects: z.ZodArray<z.ZodString>;
1667
+ starred: z.ZodBoolean;
1668
+ pinned_in: z.ZodArray<z.ZodObject<{
1669
+ window: z.ZodString;
1670
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1671
+ }, z.core.$strict>>;
1672
+ places: z.ZodArray<z.ZodString>;
1673
+ held: z.ZodBoolean;
1674
+ running: z.ZodArray<z.ZodObject<{
1675
+ window: z.ZodString;
1676
+ how: z.ZodEnum<{
1677
+ process: "process";
1678
+ activity: "activity";
1679
+ }>;
1680
+ }, z.core.$strict>>;
1681
+ hidden_in: z.ZodArray<z.ZodObject<{
1682
+ window: z.ZodString;
1683
+ reason: z.ZodString;
1684
+ }, z.core.$strict>>;
1685
+ hidden_from_main: z.ZodBoolean;
1686
+ main_pending: z.ZodBoolean;
1687
+ scheduled: z.ZodNullable<z.ZodString>;
1688
+ new_unfiled: z.ZodBoolean;
1689
+ warnings: z.ZodArray<z.ZodString>;
1690
+ last_use: z.ZodNullable<z.ZodObject<{
1691
+ at_ms: z.ZodInt;
1692
+ window: z.ZodNullable<z.ZodString>;
1693
+ account: z.ZodNullable<z.ZodString>;
1694
+ how: z.ZodNullable<z.ZodString>;
1695
+ cache_warm: z.ZodBoolean;
1696
+ cache_minutes_left: z.ZodInt;
1697
+ }, z.core.$strict>>;
1698
+ }, z.core.$strict>;
1699
+ message: z.ZodString;
1700
+ }, z.core.$strict>;
1701
+ type AppsChatsPlaceResult = z.output<typeof AppsChatsPlaceResult>;
1702
+ /** 1.9: several chats into one project (or a new one by name). */
1703
+ declare const AppsProjectsFileManyParams: z.ZodObject<{
1704
+ app_key: z.ZodString;
1705
+ chat_ids: z.ZodArray<z.ZodString>;
1706
+ project_id: z.ZodOptional<z.ZodString>;
1707
+ new_project_name: z.ZodOptional<z.ZodString>;
1708
+ }, z.core.$strict>;
1709
+ type AppsProjectsFileManyParams = z.output<typeof AppsProjectsFileManyParams>;
1710
+ declare const AppsProjectsFileManyResult: z.ZodObject<{
1711
+ chats: z.ZodArray<z.ZodObject<{
1712
+ id: z.ZodString;
1713
+ short_id: z.ZodString;
1714
+ record: z.ZodNullable<z.ZodString>;
1715
+ title: z.ZodString;
1716
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1717
+ created_ms: z.ZodNullable<z.ZodInt>;
1718
+ projects: z.ZodArray<z.ZodString>;
1719
+ starred: z.ZodBoolean;
1720
+ pinned_in: z.ZodArray<z.ZodObject<{
1721
+ window: z.ZodString;
1722
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1723
+ }, z.core.$strict>>;
1724
+ places: z.ZodArray<z.ZodString>;
1725
+ held: z.ZodBoolean;
1726
+ running: z.ZodArray<z.ZodObject<{
1727
+ window: z.ZodString;
1728
+ how: z.ZodEnum<{
1729
+ process: "process";
1730
+ activity: "activity";
1731
+ }>;
1732
+ }, z.core.$strict>>;
1733
+ hidden_in: z.ZodArray<z.ZodObject<{
1734
+ window: z.ZodString;
1735
+ reason: z.ZodString;
1736
+ }, z.core.$strict>>;
1737
+ hidden_from_main: z.ZodBoolean;
1738
+ main_pending: z.ZodBoolean;
1739
+ scheduled: z.ZodNullable<z.ZodString>;
1740
+ new_unfiled: z.ZodBoolean;
1741
+ warnings: z.ZodArray<z.ZodString>;
1742
+ last_use: z.ZodNullable<z.ZodObject<{
1743
+ at_ms: z.ZodInt;
1744
+ window: z.ZodNullable<z.ZodString>;
1745
+ account: z.ZodNullable<z.ZodString>;
1746
+ how: z.ZodNullable<z.ZodString>;
1747
+ cache_warm: z.ZodBoolean;
1748
+ cache_minutes_left: z.ZodInt;
1749
+ }, z.core.$strict>>;
1750
+ }, z.core.$strict>>;
1751
+ project: z.ZodObject<{
1752
+ id: z.ZodString;
1753
+ name: z.ZodString;
1754
+ archived: z.ZodBoolean;
1755
+ count: z.ZodInt;
1756
+ }, z.core.$strict>;
1757
+ }, z.core.$strict>;
1758
+ type AppsProjectsFileManyResult = z.output<typeof AppsProjectsFileManyResult>;
1759
+ /** 1.9: rename, archive or restore a project. */
1760
+ declare const AppsProjectsUpdateParams: z.ZodObject<{
1761
+ app_key: z.ZodString;
1762
+ project_id: z.ZodString;
1763
+ name: z.ZodOptional<z.ZodString>;
1764
+ archived: z.ZodOptional<z.ZodBoolean>;
1765
+ }, z.core.$strict>;
1766
+ type AppsProjectsUpdateParams = z.output<typeof AppsProjectsUpdateParams>;
1767
+ declare const AppsProjectsUpdateResult: z.ZodObject<{
1768
+ project: z.ZodObject<{
1769
+ id: z.ZodString;
1770
+ name: z.ZodString;
1771
+ archived: z.ZodBoolean;
1772
+ count: z.ZodInt;
1773
+ }, z.core.$strict>;
1774
+ }, z.core.$strict>;
1775
+ type AppsProjectsUpdateResult = z.output<typeof AppsProjectsUpdateResult>;
1776
+ /** 1.9: save a copy of every chat in a project as another project (made if new). */
1777
+ declare const AppsProjectsCopyParams: z.ZodObject<{
1778
+ app_key: z.ZodString;
1779
+ project_id: z.ZodString;
1780
+ new_project_name: z.ZodString;
1781
+ }, z.core.$strict>;
1782
+ type AppsProjectsCopyParams = z.output<typeof AppsProjectsCopyParams>;
1783
+ declare const AppsProjectsCopyResult: z.ZodObject<{
1784
+ project: z.ZodObject<{
1785
+ id: z.ZodString;
1786
+ name: z.ZodString;
1787
+ archived: z.ZodBoolean;
1788
+ count: z.ZodInt;
1789
+ }, z.core.$strict>;
1790
+ }, z.core.$strict>;
1791
+ type AppsProjectsCopyResult = z.output<typeof AppsProjectsCopyResult>;
1792
+
1793
+ /**
1794
+ * @ai-matrx/desktop-protocol — cap apps, a coding app's windows and the accounts behind them
1795
+ * (SPEC §6 `apps`, §6.2, plan `apps-chats` phase 2): each window (profile) with the account it is
1796
+ * meant for and the one signed in, open or closed; each account's plan usage (5-hour, weekly,
1797
+ * extra) as the app records it; each account's weekly reset; and the window actions (bring to
1798
+ * front or open, reload its list, restart, open briefly for a fresh usage reading). Claude is the
1799
+ * first adapter. Added in protocol 1.10. Schema source: lint-enforced rules in
1800
+ * scripts/check-schema-source.mjs.
1801
+ */
1802
+
1803
+ /** One window (profile) of the app on this device. */
1804
+ declare const AppWindowInfo: z.ZodObject<{
1805
+ key: z.ZodString;
1806
+ main: z.ZodBoolean;
1807
+ account: z.ZodNullable<z.ZodString>;
1808
+ signed_in: z.ZodNullable<z.ZodString>;
1809
+ signed_in_is_email: z.ZodBoolean;
1810
+ mismatch: z.ZodBoolean;
1811
+ created: z.ZodBoolean;
1812
+ running: z.ZodBoolean;
1813
+ open_chats: z.ZodInt;
1814
+ }, z.core.$strict>;
1815
+ type AppWindowInfo = z.output<typeof AppWindowInfo>;
1816
+ /** One account's plan usage, newest reading from any window (an account is matched to an org by vote). */
1817
+ declare const AccountUsage: z.ZodObject<{
1818
+ account: z.ZodString;
1819
+ org: z.ZodNullable<z.ZodString>;
1820
+ account_certain: z.ZodBoolean;
1821
+ five_hour: z.ZodNullable<z.ZodNumber>;
1822
+ five_hour_reset_since: z.ZodBoolean;
1823
+ weekly: z.ZodNullable<z.ZodNumber>;
1824
+ weekly_reset_since: z.ZodBoolean;
1825
+ extra_usage: z.ZodNullable<z.ZodNumber>;
1826
+ extra_usage_as_of_ms: z.ZodNullable<z.ZodInt>;
1827
+ as_of_ms: z.ZodInt;
1828
+ windows: z.ZodArray<z.ZodString>;
1829
+ live: z.ZodBoolean;
1830
+ weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
1831
+ weekly_reset_official: z.ZodNullable<z.ZodBoolean>;
1832
+ }, z.core.$strict>;
1833
+ type AccountUsage = z.output<typeof AccountUsage>;
1834
+ /** One window's account's next weekly reset and where the time came from. */
1835
+ declare const AccountReset: z.ZodObject<{
1836
+ window: z.ZodString;
1837
+ account: z.ZodNullable<z.ZodString>;
1838
+ next_reset_ms: z.ZodNullable<z.ZodInt>;
1839
+ source: z.ZodNullable<z.ZodEnum<{
1840
+ claude: "claude";
1841
+ usage_history: "usage_history";
1842
+ your_list: "your_list";
1843
+ }>>;
1844
+ official: z.ZodBoolean;
1845
+ note: z.ZodNullable<z.ZodString>;
1846
+ }, z.core.$strict>;
1847
+ type AccountReset = z.output<typeof AccountReset>;
1848
+ declare const AppsWindowsListParams: z.ZodObject<{
1849
+ app_key: z.ZodString;
1850
+ }, z.core.$strict>;
1851
+ type AppsWindowsListParams = z.output<typeof AppsWindowsListParams>;
1852
+ declare const AppsWindowsListResult: z.ZodObject<{
1853
+ app_key: z.ZodString;
1854
+ windows: z.ZodArray<z.ZodObject<{
1855
+ key: z.ZodString;
1856
+ main: z.ZodBoolean;
1857
+ account: z.ZodNullable<z.ZodString>;
1858
+ signed_in: z.ZodNullable<z.ZodString>;
1859
+ signed_in_is_email: z.ZodBoolean;
1860
+ mismatch: z.ZodBoolean;
1861
+ created: z.ZodBoolean;
1862
+ running: z.ZodBoolean;
1863
+ open_chats: z.ZodInt;
1864
+ }, z.core.$strict>>;
1865
+ }, z.core.$strict>;
1866
+ type AppsWindowsListResult = z.output<typeof AppsWindowsListResult>;
1867
+ declare const AppsAccountsUsageParams: z.ZodObject<{
1868
+ app_key: z.ZodString;
1869
+ }, z.core.$strict>;
1870
+ type AppsAccountsUsageParams = z.output<typeof AppsAccountsUsageParams>;
1871
+ declare const AppsAccountsUsageResult: z.ZodObject<{
1872
+ app_key: z.ZodString;
1873
+ accounts: z.ZodArray<z.ZodObject<{
1874
+ account: z.ZodString;
1875
+ org: z.ZodNullable<z.ZodString>;
1876
+ account_certain: z.ZodBoolean;
1877
+ five_hour: z.ZodNullable<z.ZodNumber>;
1878
+ five_hour_reset_since: z.ZodBoolean;
1879
+ weekly: z.ZodNullable<z.ZodNumber>;
1880
+ weekly_reset_since: z.ZodBoolean;
1881
+ extra_usage: z.ZodNullable<z.ZodNumber>;
1882
+ extra_usage_as_of_ms: z.ZodNullable<z.ZodInt>;
1883
+ as_of_ms: z.ZodInt;
1884
+ windows: z.ZodArray<z.ZodString>;
1885
+ live: z.ZodBoolean;
1886
+ weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
1887
+ weekly_reset_official: z.ZodNullable<z.ZodBoolean>;
1888
+ }, z.core.$strict>>;
1889
+ }, z.core.$strict>;
1890
+ type AppsAccountsUsageResult = z.output<typeof AppsAccountsUsageResult>;
1891
+ declare const AppsAccountsResetsParams: z.ZodObject<{
1892
+ app_key: z.ZodString;
1893
+ }, z.core.$strict>;
1894
+ type AppsAccountsResetsParams = z.output<typeof AppsAccountsResetsParams>;
1895
+ declare const AppsAccountsResetsResult: z.ZodObject<{
1896
+ app_key: z.ZodString;
1897
+ resets: z.ZodArray<z.ZodObject<{
1898
+ window: z.ZodString;
1899
+ account: z.ZodNullable<z.ZodString>;
1900
+ next_reset_ms: z.ZodNullable<z.ZodInt>;
1901
+ source: z.ZodNullable<z.ZodEnum<{
1902
+ claude: "claude";
1903
+ usage_history: "usage_history";
1904
+ your_list: "your_list";
1905
+ }>>;
1906
+ official: z.ZodBoolean;
1907
+ note: z.ZodNullable<z.ZodString>;
1908
+ }, z.core.$strict>>;
1909
+ }, z.core.$strict>;
1910
+ type AppsAccountsResetsResult = z.output<typeof AppsAccountsResetsResult>;
1911
+ /** A window action's answer: what happened, in one line. */
1912
+ declare const AppsWindowActionResult: z.ZodObject<{
1913
+ message: z.ZodString;
1914
+ }, z.core.$strict>;
1915
+ type AppsWindowActionResult = z.output<typeof AppsWindowActionResult>;
1916
+ /** Bring the window to the front if it is open (never a second copy), else open it. */
1917
+ declare const AppsWindowsOpenParams: z.ZodObject<{
1918
+ app_key: z.ZodString;
1919
+ window: z.ZodString;
1920
+ }, z.core.$strict>;
1921
+ type AppsWindowsOpenParams = z.output<typeof AppsWindowsOpenParams>;
1922
+ /** Reload an open window's page (⌘R) so it re-reads its chat list; its chats keep running. */
1923
+ declare const AppsWindowsReloadParams: z.ZodObject<{
1924
+ app_key: z.ZodString;
1925
+ window: z.ZodString;
1926
+ }, z.core.$strict>;
1927
+ type AppsWindowsReloadParams = z.output<typeof AppsWindowsReloadParams>;
1928
+ /** Quit and reopen a window; refused (CONFLICT) while chats are open in it unless `force`. */
1929
+ declare const AppsWindowsRestartParams: z.ZodObject<{
1930
+ app_key: z.ZodString;
1931
+ window: z.ZodString;
1932
+ force: z.ZodDefault<z.ZodBoolean>;
1933
+ }, z.core.$strict>;
1934
+ type AppsWindowsRestartParams = z.output<typeof AppsWindowsRestartParams>;
1935
+ /** Open a closed window in the background until it records a fresh usage reading, then close it. */
1936
+ declare const AppsWindowsRefreshUsageParams: z.ZodObject<{
1937
+ app_key: z.ZodString;
1938
+ window: z.ZodString;
1939
+ }, z.core.$strict>;
1940
+ type AppsWindowsRefreshUsageParams = z.output<typeof AppsWindowsRefreshUsageParams>;
1941
+ /** Move a chat from one project to another (made if new by name). */
1942
+ declare const AppsProjectsMoveParams: z.ZodObject<{
1943
+ app_key: z.ZodString;
1944
+ chat_id: z.ZodString;
1945
+ from_project_id: z.ZodString;
1946
+ to_project_id: z.ZodOptional<z.ZodString>;
1947
+ new_project_name: z.ZodOptional<z.ZodString>;
1948
+ }, z.core.$strict>;
1949
+ type AppsProjectsMoveParams = z.output<typeof AppsProjectsMoveParams>;
1950
+ declare const AppsProjectsMoveResult: z.ZodObject<{
1951
+ chat: z.ZodObject<{
1952
+ id: z.ZodString;
1953
+ short_id: z.ZodString;
1954
+ record: z.ZodNullable<z.ZodString>;
1955
+ title: z.ZodString;
1956
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1957
+ created_ms: z.ZodNullable<z.ZodInt>;
1958
+ projects: z.ZodArray<z.ZodString>;
1959
+ starred: z.ZodBoolean;
1960
+ pinned_in: z.ZodArray<z.ZodObject<{
1961
+ window: z.ZodString;
1962
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1963
+ }, z.core.$strict>>;
1964
+ places: z.ZodArray<z.ZodString>;
1965
+ held: z.ZodBoolean;
1966
+ running: z.ZodArray<z.ZodObject<{
1967
+ window: z.ZodString;
1968
+ how: z.ZodEnum<{
1969
+ process: "process";
1970
+ activity: "activity";
1971
+ }>;
1972
+ }, z.core.$strict>>;
1973
+ hidden_in: z.ZodArray<z.ZodObject<{
1974
+ window: z.ZodString;
1975
+ reason: z.ZodString;
1976
+ }, z.core.$strict>>;
1977
+ hidden_from_main: z.ZodBoolean;
1978
+ main_pending: z.ZodBoolean;
1979
+ scheduled: z.ZodNullable<z.ZodString>;
1980
+ new_unfiled: z.ZodBoolean;
1981
+ warnings: z.ZodArray<z.ZodString>;
1982
+ last_use: z.ZodNullable<z.ZodObject<{
1983
+ at_ms: z.ZodInt;
1984
+ window: z.ZodNullable<z.ZodString>;
1985
+ account: z.ZodNullable<z.ZodString>;
1986
+ how: z.ZodNullable<z.ZodString>;
1987
+ cache_warm: z.ZodBoolean;
1988
+ cache_minutes_left: z.ZodInt;
1989
+ }, z.core.$strict>>;
1990
+ }, z.core.$strict>;
1991
+ project: z.ZodObject<{
1992
+ id: z.ZodString;
1993
+ name: z.ZodString;
1994
+ archived: z.ZodBoolean;
1995
+ count: z.ZodInt;
1996
+ }, z.core.$strict>;
1997
+ }, z.core.$strict>;
1998
+ type AppsProjectsMoveResult = z.output<typeof AppsProjectsMoveResult>;
1999
+ /** A new, empty project. */
2000
+ declare const AppsProjectsCreateParams: z.ZodObject<{
2001
+ app_key: z.ZodString;
2002
+ name: z.ZodString;
2003
+ }, z.core.$strict>;
2004
+ type AppsProjectsCreateParams = z.output<typeof AppsProjectsCreateParams>;
2005
+ declare const AppsProjectsCreateResult: z.ZodObject<{
2006
+ project: z.ZodObject<{
2007
+ id: z.ZodString;
2008
+ name: z.ZodString;
2009
+ archived: z.ZodBoolean;
2010
+ count: z.ZodInt;
2011
+ }, z.core.$strict>;
2012
+ }, z.core.$strict>;
2013
+ type AppsProjectsCreateResult = z.output<typeof AppsProjectsCreateResult>;
2014
+ /** Refresh pins: the Unsorted project becomes every pinned chat in no other project (never touches the app's pins). */
2015
+ declare const AppsProjectsImportPinsParams: z.ZodObject<{
2016
+ app_key: z.ZodString;
2017
+ }, z.core.$strict>;
2018
+ type AppsProjectsImportPinsParams = z.output<typeof AppsProjectsImportPinsParams>;
2019
+ declare const AppsProjectsImportPinsResult: z.ZodObject<{
2020
+ message: z.ZodString;
2021
+ }, z.core.$strict>;
2022
+ type AppsProjectsImportPinsResult = z.output<typeof AppsProjectsImportPinsResult>;
1621
2023
 
1622
2024
  /**
1623
2025
  * @ai-matrx/desktop-protocol — the internal envelope between Matrx 2's core and its supervised
@@ -3024,6 +3426,11 @@ declare const FIELDS_SINCE: {
3024
3426
  readonly app: "1.7";
3025
3427
  readonly pid: "1.7";
3026
3428
  };
3429
+ readonly AppsChatsListResult: {
3430
+ readonly updating: "1.9";
3431
+ readonly live: "1.9";
3432
+ readonly families: "1.10";
3433
+ };
3027
3434
  };
3028
3435
  type FieldsSincePath = keyof typeof FIELDS_SINCE;
3029
3436
  /**
@@ -3078,7 +3485,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
3078
3485
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
3079
3486
 
3080
3487
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
3081
- declare const CONTRACT_SHA256: "7a5b3712fe3200b8f1051edb1cc9702e696a8d24b2033f9ea73e1a422f52dd33";
3488
+ declare const CONTRACT_SHA256: "f1891d7e5c64c11112bb7baf5db06bd293daccff85a7f5adcdf760b2bbb92bda";
3082
3489
 
3083
3490
  /**
3084
3491
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
@@ -3205,4 +3612,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
3205
3612
  /** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
3206
3613
  declare function renderToolStatusMarkdown(status: ToolStatus): string;
3207
3614
 
3208
- export { AbsPath, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppsChatsChangedEvent, AppsChatsListParams, AppsChatsListResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, 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, 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 };
3615
+ export { AbsPath, AccountReset, AccountUsage, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsListParams, AppsChatsListResult, 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, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsWindowActionResult, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsRestartParams, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, 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, 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 };