@ai-matrx/desktop-protocol 0.17.10 → 0.17.11
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 +7 -0
- package/dist/client.cjs +7 -4
- 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 +7 -4
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +9 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +95 -13
- package/dist/index.d.ts +95 -13
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/{models-BcBSKFeq.d.cts → models-dIUgWoHB.d.cts} +165 -15
- package/dist/{models-BcBSKFeq.d.ts → models-dIUgWoHB.d.ts} +165 -15
- package/dist/react.d.cts +77 -7
- package/dist/react.d.ts +77 -7
- package/generated/desktop-protocol.schema.json +16 -4
- 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-dIUgWoHB.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-dIUgWoHB.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. */
|
|
@@ -24,10 +24,11 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
24
24
|
* 1.9 — chats placed in windows / held, several filed at once, projects renamed / archived / copied;
|
|
25
25
|
* the list says when it is a saved copy being re-read (`updating`) and when it is not live.
|
|
26
26
|
* 1.14 — a chat row carries its original title, where it came from, and the person's rename.
|
|
27
|
+
* 1.15 — a chat row says when the app archived it (typed), and its title source is a closed set.
|
|
27
28
|
*/
|
|
28
|
-
declare const PROTOCOL_MINOR:
|
|
29
|
+
declare const PROTOCOL_MINOR: 15;
|
|
29
30
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
30
|
-
declare const PROTOCOL_VERSION: "1.
|
|
31
|
+
declare const PROTOCOL_VERSION: "1.15";
|
|
31
32
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
32
33
|
declare const u32: z.ZodInt;
|
|
33
34
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1391,8 +1392,18 @@ declare const ChatRow: z.ZodObject<{
|
|
|
1391
1392
|
}, z.core.$strict>>;
|
|
1392
1393
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1393
1394
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1394
|
-
title_source: z.ZodOptional<z.
|
|
1395
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1396
|
+
app: "app";
|
|
1397
|
+
"app-remembered": "app-remembered";
|
|
1398
|
+
"custom-title": "custom-title";
|
|
1399
|
+
"ai-title": "ai-title";
|
|
1400
|
+
"agent-name": "agent-name";
|
|
1401
|
+
summary: "summary";
|
|
1402
|
+
"first-prompt": "first-prompt";
|
|
1403
|
+
"last-prompt": "last-prompt";
|
|
1404
|
+
}>>;
|
|
1395
1405
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1396
1407
|
}, z.core.$strict>;
|
|
1397
1408
|
type ChatRow = z.output<typeof ChatRow>;
|
|
1398
1409
|
/** 1.13: a project the app itself keeps (Codex's sidebar projects), never ours and never written. */
|
|
@@ -1472,8 +1483,18 @@ declare const AppsChatsListResult: z.ZodObject<{
|
|
|
1472
1483
|
}, z.core.$strict>>;
|
|
1473
1484
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1474
1485
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1475
|
-
title_source: z.ZodOptional<z.
|
|
1486
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1487
|
+
app: "app";
|
|
1488
|
+
"app-remembered": "app-remembered";
|
|
1489
|
+
"custom-title": "custom-title";
|
|
1490
|
+
"ai-title": "ai-title";
|
|
1491
|
+
"agent-name": "agent-name";
|
|
1492
|
+
summary: "summary";
|
|
1493
|
+
"first-prompt": "first-prompt";
|
|
1494
|
+
"last-prompt": "last-prompt";
|
|
1495
|
+
}>>;
|
|
1476
1496
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1497
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1477
1498
|
}, z.core.$strict>>;
|
|
1478
1499
|
new_window_ms: z.ZodInt;
|
|
1479
1500
|
updating: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1556,8 +1577,18 @@ declare const AppsProjectsFileResult: z.ZodObject<{
|
|
|
1556
1577
|
}, z.core.$strict>>;
|
|
1557
1578
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1558
1579
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1559
|
-
title_source: z.ZodOptional<z.
|
|
1580
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1581
|
+
app: "app";
|
|
1582
|
+
"app-remembered": "app-remembered";
|
|
1583
|
+
"custom-title": "custom-title";
|
|
1584
|
+
"ai-title": "ai-title";
|
|
1585
|
+
"agent-name": "agent-name";
|
|
1586
|
+
summary: "summary";
|
|
1587
|
+
"first-prompt": "first-prompt";
|
|
1588
|
+
"last-prompt": "last-prompt";
|
|
1589
|
+
}>>;
|
|
1560
1590
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1561
1592
|
}, z.core.$strict>;
|
|
1562
1593
|
project: z.ZodObject<{
|
|
1563
1594
|
id: z.ZodString;
|
|
@@ -1619,8 +1650,18 @@ declare const AppsProjectsUnfileResult: z.ZodObject<{
|
|
|
1619
1650
|
}, z.core.$strict>>;
|
|
1620
1651
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1621
1652
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1622
|
-
title_source: z.ZodOptional<z.
|
|
1653
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1654
|
+
app: "app";
|
|
1655
|
+
"app-remembered": "app-remembered";
|
|
1656
|
+
"custom-title": "custom-title";
|
|
1657
|
+
"ai-title": "ai-title";
|
|
1658
|
+
"agent-name": "agent-name";
|
|
1659
|
+
summary: "summary";
|
|
1660
|
+
"first-prompt": "first-prompt";
|
|
1661
|
+
"last-prompt": "last-prompt";
|
|
1662
|
+
}>>;
|
|
1623
1663
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1624
1665
|
}, z.core.$strict>;
|
|
1625
1666
|
}, z.core.$strict>;
|
|
1626
1667
|
type AppsProjectsUnfileResult = z.output<typeof AppsProjectsUnfileResult>;
|
|
@@ -1676,8 +1717,18 @@ declare const AppsChatsStarResult: z.ZodObject<{
|
|
|
1676
1717
|
}, z.core.$strict>>;
|
|
1677
1718
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1678
1719
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1679
|
-
title_source: z.ZodOptional<z.
|
|
1720
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1721
|
+
app: "app";
|
|
1722
|
+
"app-remembered": "app-remembered";
|
|
1723
|
+
"custom-title": "custom-title";
|
|
1724
|
+
"ai-title": "ai-title";
|
|
1725
|
+
"agent-name": "agent-name";
|
|
1726
|
+
summary: "summary";
|
|
1727
|
+
"first-prompt": "first-prompt";
|
|
1728
|
+
"last-prompt": "last-prompt";
|
|
1729
|
+
}>>;
|
|
1680
1730
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1681
1732
|
}, z.core.$strict>;
|
|
1682
1733
|
}, z.core.$strict>;
|
|
1683
1734
|
type AppsChatsStarResult = z.output<typeof AppsChatsStarResult>;
|
|
@@ -1748,8 +1799,18 @@ declare const AppsChatsPlaceResult: z.ZodObject<{
|
|
|
1748
1799
|
}, z.core.$strict>>;
|
|
1749
1800
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1750
1801
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1751
|
-
title_source: z.ZodOptional<z.
|
|
1802
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1803
|
+
app: "app";
|
|
1804
|
+
"app-remembered": "app-remembered";
|
|
1805
|
+
"custom-title": "custom-title";
|
|
1806
|
+
"ai-title": "ai-title";
|
|
1807
|
+
"agent-name": "agent-name";
|
|
1808
|
+
summary: "summary";
|
|
1809
|
+
"first-prompt": "first-prompt";
|
|
1810
|
+
"last-prompt": "last-prompt";
|
|
1811
|
+
}>>;
|
|
1752
1812
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1753
1814
|
}, z.core.$strict>;
|
|
1754
1815
|
message: z.ZodString;
|
|
1755
1816
|
}, z.core.$strict>;
|
|
@@ -1808,8 +1869,18 @@ declare const AppsProjectsFileManyResult: z.ZodObject<{
|
|
|
1808
1869
|
}, z.core.$strict>>;
|
|
1809
1870
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1810
1871
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1811
|
-
title_source: z.ZodOptional<z.
|
|
1872
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1873
|
+
app: "app";
|
|
1874
|
+
"app-remembered": "app-remembered";
|
|
1875
|
+
"custom-title": "custom-title";
|
|
1876
|
+
"ai-title": "ai-title";
|
|
1877
|
+
"agent-name": "agent-name";
|
|
1878
|
+
summary: "summary";
|
|
1879
|
+
"first-prompt": "first-prompt";
|
|
1880
|
+
"last-prompt": "last-prompt";
|
|
1881
|
+
}>>;
|
|
1812
1882
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1813
1884
|
}, z.core.$strict>>;
|
|
1814
1885
|
project: z.ZodObject<{
|
|
1815
1886
|
id: z.ZodString;
|
|
@@ -2062,8 +2133,18 @@ declare const AppsProjectsMoveResult: z.ZodObject<{
|
|
|
2062
2133
|
}, z.core.$strict>>;
|
|
2063
2134
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
2064
2135
|
original_title: z.ZodOptional<z.ZodString>;
|
|
2065
|
-
title_source: z.ZodOptional<z.
|
|
2136
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
2137
|
+
app: "app";
|
|
2138
|
+
"app-remembered": "app-remembered";
|
|
2139
|
+
"custom-title": "custom-title";
|
|
2140
|
+
"ai-title": "ai-title";
|
|
2141
|
+
"agent-name": "agent-name";
|
|
2142
|
+
summary: "summary";
|
|
2143
|
+
"first-prompt": "first-prompt";
|
|
2144
|
+
"last-prompt": "last-prompt";
|
|
2145
|
+
}>>;
|
|
2066
2146
|
title_override: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
2067
2148
|
}, z.core.$strict>;
|
|
2068
2149
|
project: z.ZodObject<{
|
|
2069
2150
|
id: z.ZodString;
|
|
@@ -3858,6 +3939,7 @@ declare const FIELDS_SINCE: {
|
|
|
3858
3939
|
readonly original_title: "1.14";
|
|
3859
3940
|
readonly title_source: "1.14";
|
|
3860
3941
|
readonly title_override: "1.14";
|
|
3942
|
+
readonly archived: "1.15";
|
|
3861
3943
|
};
|
|
3862
3944
|
readonly AccountUsage: {
|
|
3863
3945
|
readonly plan: "1.13";
|
|
@@ -3917,7 +3999,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
3917
3999
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
3918
4000
|
|
|
3919
4001
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
3920
|
-
declare const CONTRACT_SHA256: "
|
|
4002
|
+
declare const CONTRACT_SHA256: "91060640a08d25f693f4d90384da7225299ab8fd287b665ca7d36f226d641267";
|
|
3921
4003
|
|
|
3922
4004
|
/**
|
|
3923
4005
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
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-dIUgWoHB.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-dIUgWoHB.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. */
|
|
@@ -24,10 +24,11 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
24
24
|
* 1.9 — chats placed in windows / held, several filed at once, projects renamed / archived / copied;
|
|
25
25
|
* the list says when it is a saved copy being re-read (`updating`) and when it is not live.
|
|
26
26
|
* 1.14 — a chat row carries its original title, where it came from, and the person's rename.
|
|
27
|
+
* 1.15 — a chat row says when the app archived it (typed), and its title source is a closed set.
|
|
27
28
|
*/
|
|
28
|
-
declare const PROTOCOL_MINOR:
|
|
29
|
+
declare const PROTOCOL_MINOR: 15;
|
|
29
30
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
30
|
-
declare const PROTOCOL_VERSION: "1.
|
|
31
|
+
declare const PROTOCOL_VERSION: "1.15";
|
|
31
32
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
32
33
|
declare const u32: z.ZodInt;
|
|
33
34
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1391,8 +1392,18 @@ declare const ChatRow: z.ZodObject<{
|
|
|
1391
1392
|
}, z.core.$strict>>;
|
|
1392
1393
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1393
1394
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1394
|
-
title_source: z.ZodOptional<z.
|
|
1395
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1396
|
+
app: "app";
|
|
1397
|
+
"app-remembered": "app-remembered";
|
|
1398
|
+
"custom-title": "custom-title";
|
|
1399
|
+
"ai-title": "ai-title";
|
|
1400
|
+
"agent-name": "agent-name";
|
|
1401
|
+
summary: "summary";
|
|
1402
|
+
"first-prompt": "first-prompt";
|
|
1403
|
+
"last-prompt": "last-prompt";
|
|
1404
|
+
}>>;
|
|
1395
1405
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1396
1407
|
}, z.core.$strict>;
|
|
1397
1408
|
type ChatRow = z.output<typeof ChatRow>;
|
|
1398
1409
|
/** 1.13: a project the app itself keeps (Codex's sidebar projects), never ours and never written. */
|
|
@@ -1472,8 +1483,18 @@ declare const AppsChatsListResult: z.ZodObject<{
|
|
|
1472
1483
|
}, z.core.$strict>>;
|
|
1473
1484
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1474
1485
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1475
|
-
title_source: z.ZodOptional<z.
|
|
1486
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1487
|
+
app: "app";
|
|
1488
|
+
"app-remembered": "app-remembered";
|
|
1489
|
+
"custom-title": "custom-title";
|
|
1490
|
+
"ai-title": "ai-title";
|
|
1491
|
+
"agent-name": "agent-name";
|
|
1492
|
+
summary: "summary";
|
|
1493
|
+
"first-prompt": "first-prompt";
|
|
1494
|
+
"last-prompt": "last-prompt";
|
|
1495
|
+
}>>;
|
|
1476
1496
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1497
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1477
1498
|
}, z.core.$strict>>;
|
|
1478
1499
|
new_window_ms: z.ZodInt;
|
|
1479
1500
|
updating: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1556,8 +1577,18 @@ declare const AppsProjectsFileResult: z.ZodObject<{
|
|
|
1556
1577
|
}, z.core.$strict>>;
|
|
1557
1578
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1558
1579
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1559
|
-
title_source: z.ZodOptional<z.
|
|
1580
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1581
|
+
app: "app";
|
|
1582
|
+
"app-remembered": "app-remembered";
|
|
1583
|
+
"custom-title": "custom-title";
|
|
1584
|
+
"ai-title": "ai-title";
|
|
1585
|
+
"agent-name": "agent-name";
|
|
1586
|
+
summary: "summary";
|
|
1587
|
+
"first-prompt": "first-prompt";
|
|
1588
|
+
"last-prompt": "last-prompt";
|
|
1589
|
+
}>>;
|
|
1560
1590
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1561
1592
|
}, z.core.$strict>;
|
|
1562
1593
|
project: z.ZodObject<{
|
|
1563
1594
|
id: z.ZodString;
|
|
@@ -1619,8 +1650,18 @@ declare const AppsProjectsUnfileResult: z.ZodObject<{
|
|
|
1619
1650
|
}, z.core.$strict>>;
|
|
1620
1651
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1621
1652
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1622
|
-
title_source: z.ZodOptional<z.
|
|
1653
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1654
|
+
app: "app";
|
|
1655
|
+
"app-remembered": "app-remembered";
|
|
1656
|
+
"custom-title": "custom-title";
|
|
1657
|
+
"ai-title": "ai-title";
|
|
1658
|
+
"agent-name": "agent-name";
|
|
1659
|
+
summary: "summary";
|
|
1660
|
+
"first-prompt": "first-prompt";
|
|
1661
|
+
"last-prompt": "last-prompt";
|
|
1662
|
+
}>>;
|
|
1623
1663
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1624
1665
|
}, z.core.$strict>;
|
|
1625
1666
|
}, z.core.$strict>;
|
|
1626
1667
|
type AppsProjectsUnfileResult = z.output<typeof AppsProjectsUnfileResult>;
|
|
@@ -1676,8 +1717,18 @@ declare const AppsChatsStarResult: z.ZodObject<{
|
|
|
1676
1717
|
}, z.core.$strict>>;
|
|
1677
1718
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1678
1719
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1679
|
-
title_source: z.ZodOptional<z.
|
|
1720
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1721
|
+
app: "app";
|
|
1722
|
+
"app-remembered": "app-remembered";
|
|
1723
|
+
"custom-title": "custom-title";
|
|
1724
|
+
"ai-title": "ai-title";
|
|
1725
|
+
"agent-name": "agent-name";
|
|
1726
|
+
summary: "summary";
|
|
1727
|
+
"first-prompt": "first-prompt";
|
|
1728
|
+
"last-prompt": "last-prompt";
|
|
1729
|
+
}>>;
|
|
1680
1730
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1681
1732
|
}, z.core.$strict>;
|
|
1682
1733
|
}, z.core.$strict>;
|
|
1683
1734
|
type AppsChatsStarResult = z.output<typeof AppsChatsStarResult>;
|
|
@@ -1748,8 +1799,18 @@ declare const AppsChatsPlaceResult: z.ZodObject<{
|
|
|
1748
1799
|
}, z.core.$strict>>;
|
|
1749
1800
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1750
1801
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1751
|
-
title_source: z.ZodOptional<z.
|
|
1802
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1803
|
+
app: "app";
|
|
1804
|
+
"app-remembered": "app-remembered";
|
|
1805
|
+
"custom-title": "custom-title";
|
|
1806
|
+
"ai-title": "ai-title";
|
|
1807
|
+
"agent-name": "agent-name";
|
|
1808
|
+
summary: "summary";
|
|
1809
|
+
"first-prompt": "first-prompt";
|
|
1810
|
+
"last-prompt": "last-prompt";
|
|
1811
|
+
}>>;
|
|
1752
1812
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1753
1814
|
}, z.core.$strict>;
|
|
1754
1815
|
message: z.ZodString;
|
|
1755
1816
|
}, z.core.$strict>;
|
|
@@ -1808,8 +1869,18 @@ declare const AppsProjectsFileManyResult: z.ZodObject<{
|
|
|
1808
1869
|
}, z.core.$strict>>;
|
|
1809
1870
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1810
1871
|
original_title: z.ZodOptional<z.ZodString>;
|
|
1811
|
-
title_source: z.ZodOptional<z.
|
|
1872
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
1873
|
+
app: "app";
|
|
1874
|
+
"app-remembered": "app-remembered";
|
|
1875
|
+
"custom-title": "custom-title";
|
|
1876
|
+
"ai-title": "ai-title";
|
|
1877
|
+
"agent-name": "agent-name";
|
|
1878
|
+
summary: "summary";
|
|
1879
|
+
"first-prompt": "first-prompt";
|
|
1880
|
+
"last-prompt": "last-prompt";
|
|
1881
|
+
}>>;
|
|
1812
1882
|
title_override: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1813
1884
|
}, z.core.$strict>>;
|
|
1814
1885
|
project: z.ZodObject<{
|
|
1815
1886
|
id: z.ZodString;
|
|
@@ -2062,8 +2133,18 @@ declare const AppsProjectsMoveResult: z.ZodObject<{
|
|
|
2062
2133
|
}, z.core.$strict>>;
|
|
2063
2134
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
2064
2135
|
original_title: z.ZodOptional<z.ZodString>;
|
|
2065
|
-
title_source: z.ZodOptional<z.
|
|
2136
|
+
title_source: z.ZodOptional<z.ZodEnum<{
|
|
2137
|
+
app: "app";
|
|
2138
|
+
"app-remembered": "app-remembered";
|
|
2139
|
+
"custom-title": "custom-title";
|
|
2140
|
+
"ai-title": "ai-title";
|
|
2141
|
+
"agent-name": "agent-name";
|
|
2142
|
+
summary: "summary";
|
|
2143
|
+
"first-prompt": "first-prompt";
|
|
2144
|
+
"last-prompt": "last-prompt";
|
|
2145
|
+
}>>;
|
|
2066
2146
|
title_override: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
2067
2148
|
}, z.core.$strict>;
|
|
2068
2149
|
project: z.ZodObject<{
|
|
2069
2150
|
id: z.ZodString;
|
|
@@ -3858,6 +3939,7 @@ declare const FIELDS_SINCE: {
|
|
|
3858
3939
|
readonly original_title: "1.14";
|
|
3859
3940
|
readonly title_source: "1.14";
|
|
3860
3941
|
readonly title_override: "1.14";
|
|
3942
|
+
readonly archived: "1.15";
|
|
3861
3943
|
};
|
|
3862
3944
|
readonly AccountUsage: {
|
|
3863
3945
|
readonly plan: "1.13";
|
|
@@ -3917,7 +3999,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
3917
3999
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
3918
4000
|
|
|
3919
4001
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
3920
|
-
declare const CONTRACT_SHA256: "
|
|
4002
|
+
declare const CONTRACT_SHA256: "91060640a08d25f693f4d90384da7225299ab8fd287b665ca7d36f226d641267";
|
|
3921
4003
|
|
|
3922
4004
|
/**
|
|
3923
4005
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/schema/primitives.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
var PROTOCOL_MAJOR = 1;
|
|
4
|
-
var PROTOCOL_MINOR =
|
|
4
|
+
var PROTOCOL_MINOR = 15;
|
|
5
5
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
6
6
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
7
7
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -940,6 +940,7 @@ var ChatAppProject = z12.strictObject({
|
|
|
940
940
|
id: z12.string().min(1).max(200),
|
|
941
941
|
name: z12.string().max(200)
|
|
942
942
|
});
|
|
943
|
+
var ChatTitleSource = z12.enum(["app", "app-remembered", "custom-title", "ai-title", "agent-name", "summary", "first-prompt", "last-prompt"]);
|
|
943
944
|
var ChatRow = z12.strictObject({
|
|
944
945
|
id: ChatId,
|
|
945
946
|
/** The short id people see (the listing's first 8 characters). */
|
|
@@ -976,10 +977,12 @@ var ChatRow = z12.strictObject({
|
|
|
976
977
|
* `title` is what to show (`title_override` when set, else this).
|
|
977
978
|
*/
|
|
978
979
|
original_title: z12.string().max(1e3).optional(),
|
|
979
|
-
/** 1.14: where `original_title` came from (
|
|
980
|
-
title_source:
|
|
980
|
+
/** 1.14: where `original_title` came from (the one rule's sources, strongest first; 1.15: a closed set). */
|
|
981
|
+
title_source: ChatTitleSource.optional(),
|
|
981
982
|
/** 1.14: the person's rename inside Matrx (Coding Sessions), applied once by the row builder; absent = none. */
|
|
982
|
-
title_override: z12.string().min(1).max(300).optional()
|
|
983
|
+
title_override: z12.string().min(1).max(300).optional(),
|
|
984
|
+
/** 1.15: the app itself archived it (hidden_in says where and why, in words for people; this is the typed fact). */
|
|
985
|
+
archived: z12.boolean().optional()
|
|
983
986
|
});
|
|
984
987
|
var ChatFamily = z12.strictObject({
|
|
985
988
|
id: ChatId,
|
|
@@ -2295,7 +2298,7 @@ var FIELDS_SINCE = {
|
|
|
2295
2298
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
2296
2299
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
2297
2300
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
2298
|
-
ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14" },
|
|
2301
|
+
ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15" },
|
|
2299
2302
|
AccountUsage: { plan: "1.13", credits: "1.13" }
|
|
2300
2303
|
};
|
|
2301
2304
|
var NULL_SINCE = {
|
|
@@ -2424,7 +2427,7 @@ function forPeer(op, part, value, version) {
|
|
|
2424
2427
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
2425
2428
|
|
|
2426
2429
|
// src/contract.ts
|
|
2427
|
-
var CONTRACT_SHA256 = "
|
|
2430
|
+
var CONTRACT_SHA256 = "91060640a08d25f693f4d90384da7225299ab8fd287b665ca7d36f226d641267";
|
|
2428
2431
|
|
|
2429
2432
|
// src/close-policy.ts
|
|
2430
2433
|
var CLOSE_RULES = {
|