@ai-matrx/desktop-protocol 0.17.9 → 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 +14 -0
- package/dist/client.cjs +14 -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 +14 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +115 -5
- package/dist/index.d.ts +115 -5
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/{models-G1-Bsz-k.d.cts → models-dIUgWoHB.d.cts} +195 -0
- package/dist/{models-G1-Bsz-k.d.ts → models-dIUgWoHB.d.ts} +195 -0
- package/dist/react.d.cts +91 -0
- package/dist/react.d.ts +91 -0
- package/generated/desktop-protocol.schema.json +31 -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-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. */
|
|
@@ -23,10 +23,12 @@ 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.
|
|
27
|
+
* 1.15 — a chat row says when the app archived it (typed), and its title source is a closed set.
|
|
26
28
|
*/
|
|
27
|
-
declare const PROTOCOL_MINOR:
|
|
29
|
+
declare const PROTOCOL_MINOR: 15;
|
|
28
30
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
29
|
-
declare const PROTOCOL_VERSION: "1.
|
|
31
|
+
declare const PROTOCOL_VERSION: "1.15";
|
|
30
32
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
31
33
|
declare const u32: z.ZodInt;
|
|
32
34
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1389,6 +1391,19 @@ declare const ChatRow: z.ZodObject<{
|
|
|
1389
1391
|
name: z.ZodString;
|
|
1390
1392
|
}, z.core.$strict>>;
|
|
1391
1393
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1394
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1405
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1392
1407
|
}, z.core.$strict>;
|
|
1393
1408
|
type ChatRow = z.output<typeof ChatRow>;
|
|
1394
1409
|
/** 1.13: a project the app itself keeps (Codex's sidebar projects), never ours and never written. */
|
|
@@ -1467,6 +1482,19 @@ declare const AppsChatsListResult: z.ZodObject<{
|
|
|
1467
1482
|
name: z.ZodString;
|
|
1468
1483
|
}, z.core.$strict>>;
|
|
1469
1484
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1485
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1496
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1497
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1470
1498
|
}, z.core.$strict>>;
|
|
1471
1499
|
new_window_ms: z.ZodInt;
|
|
1472
1500
|
updating: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1548,6 +1576,19 @@ declare const AppsProjectsFileResult: z.ZodObject<{
|
|
|
1548
1576
|
name: z.ZodString;
|
|
1549
1577
|
}, z.core.$strict>>;
|
|
1550
1578
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1579
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1590
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1551
1592
|
}, z.core.$strict>;
|
|
1552
1593
|
project: z.ZodObject<{
|
|
1553
1594
|
id: z.ZodString;
|
|
@@ -1608,6 +1649,19 @@ declare const AppsProjectsUnfileResult: z.ZodObject<{
|
|
|
1608
1649
|
name: z.ZodString;
|
|
1609
1650
|
}, z.core.$strict>>;
|
|
1610
1651
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1652
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1663
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1611
1665
|
}, z.core.$strict>;
|
|
1612
1666
|
}, z.core.$strict>;
|
|
1613
1667
|
type AppsProjectsUnfileResult = z.output<typeof AppsProjectsUnfileResult>;
|
|
@@ -1662,6 +1716,19 @@ declare const AppsChatsStarResult: z.ZodObject<{
|
|
|
1662
1716
|
name: z.ZodString;
|
|
1663
1717
|
}, z.core.$strict>>;
|
|
1664
1718
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1719
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1730
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1665
1732
|
}, z.core.$strict>;
|
|
1666
1733
|
}, z.core.$strict>;
|
|
1667
1734
|
type AppsChatsStarResult = z.output<typeof AppsChatsStarResult>;
|
|
@@ -1731,6 +1798,19 @@ declare const AppsChatsPlaceResult: z.ZodObject<{
|
|
|
1731
1798
|
name: z.ZodString;
|
|
1732
1799
|
}, z.core.$strict>>;
|
|
1733
1800
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1801
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1812
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1734
1814
|
}, z.core.$strict>;
|
|
1735
1815
|
message: z.ZodString;
|
|
1736
1816
|
}, z.core.$strict>;
|
|
@@ -1788,6 +1868,19 @@ declare const AppsProjectsFileManyResult: z.ZodObject<{
|
|
|
1788
1868
|
name: z.ZodString;
|
|
1789
1869
|
}, z.core.$strict>>;
|
|
1790
1870
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1871
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1882
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1791
1884
|
}, z.core.$strict>>;
|
|
1792
1885
|
project: z.ZodObject<{
|
|
1793
1886
|
id: z.ZodString;
|
|
@@ -2039,6 +2132,19 @@ declare const AppsProjectsMoveResult: z.ZodObject<{
|
|
|
2039
2132
|
name: z.ZodString;
|
|
2040
2133
|
}, z.core.$strict>>;
|
|
2041
2134
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
2135
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
2146
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
2042
2148
|
}, z.core.$strict>;
|
|
2043
2149
|
project: z.ZodObject<{
|
|
2044
2150
|
id: z.ZodString;
|
|
@@ -3830,6 +3936,10 @@ declare const FIELDS_SINCE: {
|
|
|
3830
3936
|
readonly ChatRow: {
|
|
3831
3937
|
readonly app_project: "1.13";
|
|
3832
3938
|
readonly tokens: "1.13";
|
|
3939
|
+
readonly original_title: "1.14";
|
|
3940
|
+
readonly title_source: "1.14";
|
|
3941
|
+
readonly title_override: "1.14";
|
|
3942
|
+
readonly archived: "1.15";
|
|
3833
3943
|
};
|
|
3834
3944
|
readonly AccountUsage: {
|
|
3835
3945
|
readonly plan: "1.13";
|
|
@@ -3889,7 +3999,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
3889
3999
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
3890
4000
|
|
|
3891
4001
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
3892
|
-
declare const CONTRACT_SHA256: "
|
|
4002
|
+
declare const CONTRACT_SHA256: "91060640a08d25f693f4d90384da7225299ab8fd287b665ca7d36f226d641267";
|
|
3893
4003
|
|
|
3894
4004
|
/**
|
|
3895
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. */
|
|
@@ -23,10 +23,12 @@ 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.
|
|
27
|
+
* 1.15 — a chat row says when the app archived it (typed), and its title source is a closed set.
|
|
26
28
|
*/
|
|
27
|
-
declare const PROTOCOL_MINOR:
|
|
29
|
+
declare const PROTOCOL_MINOR: 15;
|
|
28
30
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
29
|
-
declare const PROTOCOL_VERSION: "1.
|
|
31
|
+
declare const PROTOCOL_VERSION: "1.15";
|
|
30
32
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
31
33
|
declare const u32: z.ZodInt;
|
|
32
34
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1389,6 +1391,19 @@ declare const ChatRow: z.ZodObject<{
|
|
|
1389
1391
|
name: z.ZodString;
|
|
1390
1392
|
}, z.core.$strict>>;
|
|
1391
1393
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1394
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1405
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1392
1407
|
}, z.core.$strict>;
|
|
1393
1408
|
type ChatRow = z.output<typeof ChatRow>;
|
|
1394
1409
|
/** 1.13: a project the app itself keeps (Codex's sidebar projects), never ours and never written. */
|
|
@@ -1467,6 +1482,19 @@ declare const AppsChatsListResult: z.ZodObject<{
|
|
|
1467
1482
|
name: z.ZodString;
|
|
1468
1483
|
}, z.core.$strict>>;
|
|
1469
1484
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1485
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1496
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1497
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1470
1498
|
}, z.core.$strict>>;
|
|
1471
1499
|
new_window_ms: z.ZodInt;
|
|
1472
1500
|
updating: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1548,6 +1576,19 @@ declare const AppsProjectsFileResult: z.ZodObject<{
|
|
|
1548
1576
|
name: z.ZodString;
|
|
1549
1577
|
}, z.core.$strict>>;
|
|
1550
1578
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1579
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1590
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1551
1592
|
}, z.core.$strict>;
|
|
1552
1593
|
project: z.ZodObject<{
|
|
1553
1594
|
id: z.ZodString;
|
|
@@ -1608,6 +1649,19 @@ declare const AppsProjectsUnfileResult: z.ZodObject<{
|
|
|
1608
1649
|
name: z.ZodString;
|
|
1609
1650
|
}, z.core.$strict>>;
|
|
1610
1651
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1652
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1663
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1611
1665
|
}, z.core.$strict>;
|
|
1612
1666
|
}, z.core.$strict>;
|
|
1613
1667
|
type AppsProjectsUnfileResult = z.output<typeof AppsProjectsUnfileResult>;
|
|
@@ -1662,6 +1716,19 @@ declare const AppsChatsStarResult: z.ZodObject<{
|
|
|
1662
1716
|
name: z.ZodString;
|
|
1663
1717
|
}, z.core.$strict>>;
|
|
1664
1718
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1719
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1730
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1665
1732
|
}, z.core.$strict>;
|
|
1666
1733
|
}, z.core.$strict>;
|
|
1667
1734
|
type AppsChatsStarResult = z.output<typeof AppsChatsStarResult>;
|
|
@@ -1731,6 +1798,19 @@ declare const AppsChatsPlaceResult: z.ZodObject<{
|
|
|
1731
1798
|
name: z.ZodString;
|
|
1732
1799
|
}, z.core.$strict>>;
|
|
1733
1800
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1801
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1812
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1734
1814
|
}, z.core.$strict>;
|
|
1735
1815
|
message: z.ZodString;
|
|
1736
1816
|
}, z.core.$strict>;
|
|
@@ -1788,6 +1868,19 @@ declare const AppsProjectsFileManyResult: z.ZodObject<{
|
|
|
1788
1868
|
name: z.ZodString;
|
|
1789
1869
|
}, z.core.$strict>>;
|
|
1790
1870
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
1871
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
1882
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1791
1884
|
}, z.core.$strict>>;
|
|
1792
1885
|
project: z.ZodObject<{
|
|
1793
1886
|
id: z.ZodString;
|
|
@@ -2039,6 +2132,19 @@ declare const AppsProjectsMoveResult: z.ZodObject<{
|
|
|
2039
2132
|
name: z.ZodString;
|
|
2040
2133
|
}, z.core.$strict>>;
|
|
2041
2134
|
tokens: z.ZodOptional<z.ZodInt>;
|
|
2135
|
+
original_title: z.ZodOptional<z.ZodString>;
|
|
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
|
+
}>>;
|
|
2146
|
+
title_override: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
2042
2148
|
}, z.core.$strict>;
|
|
2043
2149
|
project: z.ZodObject<{
|
|
2044
2150
|
id: z.ZodString;
|
|
@@ -3830,6 +3936,10 @@ declare const FIELDS_SINCE: {
|
|
|
3830
3936
|
readonly ChatRow: {
|
|
3831
3937
|
readonly app_project: "1.13";
|
|
3832
3938
|
readonly tokens: "1.13";
|
|
3939
|
+
readonly original_title: "1.14";
|
|
3940
|
+
readonly title_source: "1.14";
|
|
3941
|
+
readonly title_override: "1.14";
|
|
3942
|
+
readonly archived: "1.15";
|
|
3833
3943
|
};
|
|
3834
3944
|
readonly AccountUsage: {
|
|
3835
3945
|
readonly plan: "1.13";
|
|
@@ -3889,7 +3999,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
3889
3999
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
3890
4000
|
|
|
3891
4001
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
3892
|
-
declare const CONTRACT_SHA256: "
|
|
4002
|
+
declare const CONTRACT_SHA256: "91060640a08d25f693f4d90384da7225299ab8fd287b665ca7d36f226d641267";
|
|
3893
4003
|
|
|
3894
4004
|
/**
|
|
3895
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). */
|
|
@@ -970,7 +971,18 @@ var ChatRow = z12.strictObject({
|
|
|
970
971
|
/** 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
972
|
app_project: ChatAppProject.optional(),
|
|
972
973
|
/** 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()
|
|
974
|
+
tokens: nonNegInt.optional(),
|
|
975
|
+
/**
|
|
976
|
+
* 1.14: the chat's own title before the person's rename (the one title rule, `@ai-matrx/coding-sessions/sessions`);
|
|
977
|
+
* `title` is what to show (`title_override` when set, else this).
|
|
978
|
+
*/
|
|
979
|
+
original_title: z12.string().max(1e3).optional(),
|
|
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(),
|
|
982
|
+
/** 1.14: the person's rename inside Matrx (Coding Sessions), applied once by the row builder; absent = none. */
|
|
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()
|
|
974
986
|
});
|
|
975
987
|
var ChatFamily = z12.strictObject({
|
|
976
988
|
id: ChatId,
|
|
@@ -2286,7 +2298,7 @@ var FIELDS_SINCE = {
|
|
|
2286
2298
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
2287
2299
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
2288
2300
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
2289
|
-
ChatRow: { app_project: "1.13", tokens: "1.13" },
|
|
2301
|
+
ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15" },
|
|
2290
2302
|
AccountUsage: { plan: "1.13", credits: "1.13" }
|
|
2291
2303
|
};
|
|
2292
2304
|
var NULL_SINCE = {
|
|
@@ -2415,7 +2427,7 @@ function forPeer(op, part, value, version) {
|
|
|
2415
2427
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
2416
2428
|
|
|
2417
2429
|
// src/contract.ts
|
|
2418
|
-
var CONTRACT_SHA256 = "
|
|
2430
|
+
var CONTRACT_SHA256 = "91060640a08d25f693f4d90384da7225299ab8fd287b665ca7d36f226d641267";
|
|
2419
2431
|
|
|
2420
2432
|
// src/close-policy.ts
|
|
2421
2433
|
var CLOSE_RULES = {
|