@ai-matrx/desktop-protocol 0.17.9 → 0.17.10
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 +11 -2
- 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 +11 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -5
- package/dist/index.d.ts +33 -5
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/{models-G1-Bsz-k.d.cts → models-BcBSKFeq.d.cts} +45 -0
- package/dist/{models-G1-Bsz-k.d.ts → models-BcBSKFeq.d.ts} +45 -0
- package/dist/react.d.cts +21 -0
- package/dist/react.d.ts +21 -0
- package/generated/desktop-protocol.schema.json +19 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OpName } from './models-
|
|
3
|
-
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-BcBSKFeq.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-BcBSKFeq.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. */
|
|
@@ -23,10 +23,11 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
23
23
|
* 1.8 — `apps.chats.*` / `apps.projects.*`: a coding app's chats, windows, pins and projects, live.
|
|
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
|
+
* 1.14 — a chat row carries its original title, where it came from, and the person's rename.
|
|
26
27
|
*/
|
|
27
|
-
declare const PROTOCOL_MINOR:
|
|
28
|
+
declare const PROTOCOL_MINOR: 14;
|
|
28
29
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
29
|
-
declare const PROTOCOL_VERSION: "1.
|
|
30
|
+
declare const PROTOCOL_VERSION: "1.14";
|
|
30
31
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
31
32
|
declare const u32: z.ZodInt;
|
|
32
33
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1389,6 +1390,9 @@ declare const ChatRow: z.ZodObject<{
|
|
|
1389
1390
|
name: z.ZodString;
|
|
1390
1391
|
}, z.core.$strict>>;
|
|
1391
1392
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1393
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1394
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1395
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1392
1396
|
}, z.core.$strict>;
|
|
1393
1397
|
type ChatRow = z.output<typeof ChatRow>;
|
|
1394
1398
|
/** 1.13: a project the app itself keeps (Codex's sidebar projects), never ours and never written. */
|
|
@@ -1467,6 +1471,9 @@ declare const AppsChatsListResult: z.ZodObject<{
|
|
|
1467
1471
|
name: z.ZodString;
|
|
1468
1472
|
}, z.core.$strict>>;
|
|
1469
1473
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1474
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1475
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1470
1477
|
}, z.core.$strict>>;
|
|
1471
1478
|
new_window_ms: z.ZodInt;
|
|
1472
1479
|
updating: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1548,6 +1555,9 @@ declare const AppsProjectsFileResult: z.ZodObject<{
|
|
|
1548
1555
|
name: z.ZodString;
|
|
1549
1556
|
}, z.core.$strict>>;
|
|
1550
1557
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1558
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1559
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1551
1561
|
}, z.core.$strict>;
|
|
1552
1562
|
project: z.ZodObject<{
|
|
1553
1563
|
id: z.ZodString;
|
|
@@ -1608,6 +1618,9 @@ declare const AppsProjectsUnfileResult: z.ZodObject<{
|
|
|
1608
1618
|
name: z.ZodString;
|
|
1609
1619
|
}, z.core.$strict>>;
|
|
1610
1620
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1621
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1622
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1623
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1611
1624
|
}, z.core.$strict>;
|
|
1612
1625
|
}, z.core.$strict>;
|
|
1613
1626
|
type AppsProjectsUnfileResult = z.output<typeof AppsProjectsUnfileResult>;
|
|
@@ -1662,6 +1675,9 @@ declare const AppsChatsStarResult: z.ZodObject<{
|
|
|
1662
1675
|
name: z.ZodString;
|
|
1663
1676
|
}, z.core.$strict>>;
|
|
1664
1677
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1678
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1665
1681
|
}, z.core.$strict>;
|
|
1666
1682
|
}, z.core.$strict>;
|
|
1667
1683
|
type AppsChatsStarResult = z.output<typeof AppsChatsStarResult>;
|
|
@@ -1731,6 +1747,9 @@ declare const AppsChatsPlaceResult: z.ZodObject<{
|
|
|
1731
1747
|
name: z.ZodString;
|
|
1732
1748
|
}, z.core.$strict>>;
|
|
1733
1749
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1750
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1751
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1752
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1734
1753
|
}, z.core.$strict>;
|
|
1735
1754
|
message: z.ZodString;
|
|
1736
1755
|
}, z.core.$strict>;
|
|
@@ -1788,6 +1807,9 @@ declare const AppsProjectsFileManyResult: z.ZodObject<{
|
|
|
1788
1807
|
name: z.ZodString;
|
|
1789
1808
|
}, z.core.$strict>>;
|
|
1790
1809
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1810
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1812
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1791
1813
|
}, z.core.$strict>>;
|
|
1792
1814
|
project: z.ZodObject<{
|
|
1793
1815
|
id: z.ZodString;
|
|
@@ -2039,6 +2061,9 @@ declare const AppsProjectsMoveResult: z.ZodObject<{
|
|
|
2039
2061
|
name: z.ZodString;
|
|
2040
2062
|
}, z.core.$strict>>;
|
|
2041
2063
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
2064
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
2065
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
2066
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
2042
2067
|
}, z.core.$strict>;
|
|
2043
2068
|
project: z.ZodObject<{
|
|
2044
2069
|
id: z.ZodString;
|
|
@@ -3830,6 +3855,9 @@ declare const FIELDS_SINCE: {
|
|
|
3830
3855
|
readonly ChatRow: {
|
|
3831
3856
|
readonly app_project: "1.13";
|
|
3832
3857
|
readonly tokens: "1.13";
|
|
3858
|
+
readonly original_title: "1.14";
|
|
3859
|
+
readonly title_source: "1.14";
|
|
3860
|
+
readonly title_override: "1.14";
|
|
3833
3861
|
};
|
|
3834
3862
|
readonly AccountUsage: {
|
|
3835
3863
|
readonly plan: "1.13";
|
|
@@ -3889,7 +3917,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
3889
3917
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
3890
3918
|
|
|
3891
3919
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
3892
|
-
declare const CONTRACT_SHA256: "
|
|
3920
|
+
declare const CONTRACT_SHA256: "274e5bac7ae2a9b7a8027a6c356f54654cd1ed91cf2363711a21ff821a33a676";
|
|
3893
3921
|
|
|
3894
3922
|
/**
|
|
3895
3923
|
* 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-BcBSKFeq.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-BcBSKFeq.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. */
|
|
@@ -23,10 +23,11 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
23
23
|
* 1.8 — `apps.chats.*` / `apps.projects.*`: a coding app's chats, windows, pins and projects, live.
|
|
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
|
+
* 1.14 — a chat row carries its original title, where it came from, and the person's rename.
|
|
26
27
|
*/
|
|
27
|
-
declare const PROTOCOL_MINOR:
|
|
28
|
+
declare const PROTOCOL_MINOR: 14;
|
|
28
29
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
29
|
-
declare const PROTOCOL_VERSION: "1.
|
|
30
|
+
declare const PROTOCOL_VERSION: "1.14";
|
|
30
31
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
31
32
|
declare const u32: z.ZodInt;
|
|
32
33
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1389,6 +1390,9 @@ declare const ChatRow: z.ZodObject<{
|
|
|
1389
1390
|
name: z.ZodString;
|
|
1390
1391
|
}, z.core.$strict>>;
|
|
1391
1392
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1393
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1394
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1395
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1392
1396
|
}, z.core.$strict>;
|
|
1393
1397
|
type ChatRow = z.output<typeof ChatRow>;
|
|
1394
1398
|
/** 1.13: a project the app itself keeps (Codex's sidebar projects), never ours and never written. */
|
|
@@ -1467,6 +1471,9 @@ declare const AppsChatsListResult: z.ZodObject<{
|
|
|
1467
1471
|
name: z.ZodString;
|
|
1468
1472
|
}, z.core.$strict>>;
|
|
1469
1473
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1474
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1475
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1470
1477
|
}, z.core.$strict>>;
|
|
1471
1478
|
new_window_ms: z.ZodInt;
|
|
1472
1479
|
updating: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1548,6 +1555,9 @@ declare const AppsProjectsFileResult: z.ZodObject<{
|
|
|
1548
1555
|
name: z.ZodString;
|
|
1549
1556
|
}, z.core.$strict>>;
|
|
1550
1557
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1558
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1559
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1551
1561
|
}, z.core.$strict>;
|
|
1552
1562
|
project: z.ZodObject<{
|
|
1553
1563
|
id: z.ZodString;
|
|
@@ -1608,6 +1618,9 @@ declare const AppsProjectsUnfileResult: z.ZodObject<{
|
|
|
1608
1618
|
name: z.ZodString;
|
|
1609
1619
|
}, z.core.$strict>>;
|
|
1610
1620
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1621
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1622
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1623
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1611
1624
|
}, z.core.$strict>;
|
|
1612
1625
|
}, z.core.$strict>;
|
|
1613
1626
|
type AppsProjectsUnfileResult = z.output<typeof AppsProjectsUnfileResult>;
|
|
@@ -1662,6 +1675,9 @@ declare const AppsChatsStarResult: z.ZodObject<{
|
|
|
1662
1675
|
name: z.ZodString;
|
|
1663
1676
|
}, z.core.$strict>>;
|
|
1664
1677
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1678
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1665
1681
|
}, z.core.$strict>;
|
|
1666
1682
|
}, z.core.$strict>;
|
|
1667
1683
|
type AppsChatsStarResult = z.output<typeof AppsChatsStarResult>;
|
|
@@ -1731,6 +1747,9 @@ declare const AppsChatsPlaceResult: z.ZodObject<{
|
|
|
1731
1747
|
name: z.ZodString;
|
|
1732
1748
|
}, z.core.$strict>>;
|
|
1733
1749
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1750
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1751
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1752
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1734
1753
|
}, z.core.$strict>;
|
|
1735
1754
|
message: z.ZodString;
|
|
1736
1755
|
}, z.core.$strict>;
|
|
@@ -1788,6 +1807,9 @@ declare const AppsProjectsFileManyResult: z.ZodObject<{
|
|
|
1788
1807
|
name: z.ZodString;
|
|
1789
1808
|
}, z.core.$strict>>;
|
|
1790
1809
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1810
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
1812
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1791
1813
|
}, z.core.$strict>>;
|
|
1792
1814
|
project: z.ZodObject<{
|
|
1793
1815
|
id: z.ZodString;
|
|
@@ -2039,6 +2061,9 @@ declare const AppsProjectsMoveResult: z.ZodObject<{
|
|
|
2039
2061
|
name: z.ZodString;
|
|
2040
2062
|
}, z.core.$strict>>;
|
|
2041
2063
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
2064
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
2065
|
+
title_source: z.ZodOptional<z.ZodString>;
|
|
2066
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
2042
2067
|
}, z.core.$strict>;
|
|
2043
2068
|
project: z.ZodObject<{
|
|
2044
2069
|
id: z.ZodString;
|
|
@@ -3830,6 +3855,9 @@ declare const FIELDS_SINCE: {
|
|
|
3830
3855
|
readonly ChatRow: {
|
|
3831
3856
|
readonly app_project: "1.13";
|
|
3832
3857
|
readonly tokens: "1.13";
|
|
3858
|
+
readonly original_title: "1.14";
|
|
3859
|
+
readonly title_source: "1.14";
|
|
3860
|
+
readonly title_override: "1.14";
|
|
3833
3861
|
};
|
|
3834
3862
|
readonly AccountUsage: {
|
|
3835
3863
|
readonly plan: "1.13";
|
|
@@ -3889,7 +3917,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
3889
3917
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
3890
3918
|
|
|
3891
3919
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
3892
|
-
declare const CONTRACT_SHA256: "
|
|
3920
|
+
declare const CONTRACT_SHA256: "274e5bac7ae2a9b7a8027a6c356f54654cd1ed91cf2363711a21ff821a33a676";
|
|
3893
3921
|
|
|
3894
3922
|
/**
|
|
3895
3923
|
* 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 = 14;
|
|
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_-]+$/);
|
|
@@ -970,7 +970,16 @@ var ChatRow = z12.strictObject({
|
|
|
970
970
|
/** 1.13: the app's own project the chat is grouped under in the app (Codex), read only; absent = none or not an app that groups. */
|
|
971
971
|
app_project: ChatAppProject.optional(),
|
|
972
972
|
/** 1.13: tokens the conversation has used, when the app records it (Codex); absent when not recorded; prices are not on disk. */
|
|
973
|
-
tokens: nonNegInt.optional()
|
|
973
|
+
tokens: nonNegInt.optional(),
|
|
974
|
+
/**
|
|
975
|
+
* 1.14: the chat's own title before the person's rename (the one title rule, `@ai-matrx/coding-sessions/sessions`);
|
|
976
|
+
* `title` is what to show (`title_override` when set, else this).
|
|
977
|
+
*/
|
|
978
|
+
original_title: z12.string().max(1e3).optional(),
|
|
979
|
+
/** 1.14: where `original_title` came from (app record, remembered, custom-title, ai-title, agent-name, summary, first-prompt, last-prompt). */
|
|
980
|
+
title_source: z12.string().min(1).max(40).optional(),
|
|
981
|
+
/** 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()
|
|
974
983
|
});
|
|
975
984
|
var ChatFamily = z12.strictObject({
|
|
976
985
|
id: ChatId,
|
|
@@ -2286,7 +2295,7 @@ var FIELDS_SINCE = {
|
|
|
2286
2295
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
2287
2296
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
2288
2297
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
2289
|
-
ChatRow: { app_project: "1.13", tokens: "1.13" },
|
|
2298
|
+
ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14" },
|
|
2290
2299
|
AccountUsage: { plan: "1.13", credits: "1.13" }
|
|
2291
2300
|
};
|
|
2292
2301
|
var NULL_SINCE = {
|
|
@@ -2415,7 +2424,7 @@ function forPeer(op, part, value, version) {
|
|
|
2415
2424
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
2416
2425
|
|
|
2417
2426
|
// src/contract.ts
|
|
2418
|
-
var CONTRACT_SHA256 = "
|
|
2427
|
+
var CONTRACT_SHA256 = "274e5bac7ae2a9b7a8027a6c356f54654cd1ed91cf2363711a21ff821a33a676";
|
|
2419
2428
|
|
|
2420
2429
|
// src/close-policy.ts
|
|
2421
2430
|
var CLOSE_RULES = {
|