@ai-matrx/desktop-protocol 0.21.80 → 0.21.81
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 -2
- package/dist/{chunk-server-XQQUJENM.js → chunk-server-T5RWEV22.js} +33 -6
- package/dist/chunk-server-T5RWEV22.js.map +1 -0
- package/dist/client.cjs +28 -5
- 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 +1 -1
- package/dist/index.cjs +33 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -5
- package/dist/index.d.ts +28 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-C2VdtixP.d.cts → models-BnUudL7J.d.cts} +14 -0
- package/dist/{models-C2VdtixP.d.ts → models-BnUudL7J.d.ts} +14 -0
- package/dist/react.d.cts +5 -0
- package/dist/react.d.ts +5 -0
- package/generated/desktop-protocol.schema.json +25 -1
- package/package.json +2 -2
- package/dist/chunk-server-XQQUJENM.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.81
|
|
4
|
+
### Protocol 1.78 — our Hide on Going cold and Spend
|
|
5
|
+
|
|
6
|
+
- `ColdChat` (apps.chats.cold `waiting`, `recently_cold`), `SpendChat`, `SpendLive`, `SpendIdle`
|
|
7
|
+
(apps.spend `chats`, `live`, `idle`): optional `hidden`, the person hid the chat from Matrx's lists
|
|
8
|
+
(as `ChatRow.hidden`). In FIELDS_SINCE; stripped for older peers. Consumer action: none.
|
|
9
|
+
|
|
3
10
|
## 0.21.80
|
|
4
11
|
|
|
5
|
-
|
|
6
|
-
|
|
12
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
13
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
14
|
+
Diff: `git diff e6fc2655c1 268d0c2f1f -- apps/shared/desktop-protocol/src`
|
|
15
|
+
|
|
16
|
+
Changed shipped source files (2):
|
|
17
|
+
- `apps/shared/desktop-protocol/src/client/client.ts`
|
|
18
|
+
- `apps/shared/desktop-protocol/src/client/types.ts`
|
|
7
19
|
|
|
8
20
|
## 0.21.79
|
|
9
21
|
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
|
|
8
8
|
var PROTOCOL_MAJOR = 1;
|
|
9
|
-
var PROTOCOL_MINOR =
|
|
9
|
+
var PROTOCOL_MINOR = 78;
|
|
10
10
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
11
11
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
12
12
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1718,7 +1718,9 @@ var ColdChat = z14.strictObject({
|
|
|
1718
1718
|
/** It can be shown in its window (started in the desktop app). */
|
|
1719
1719
|
openable: z14.boolean(),
|
|
1720
1720
|
/** How its window was decided, or why it can't be opened. */
|
|
1721
|
-
how: z14.string().max(200).nullable()
|
|
1721
|
+
how: z14.string().max(200).nullable(),
|
|
1722
|
+
/** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
|
|
1723
|
+
hidden: z14.boolean().optional()
|
|
1722
1724
|
});
|
|
1723
1725
|
var AppsChatsColdParams = z14.strictObject({ app_key: AppKey });
|
|
1724
1726
|
var AppsChatsColdResult = z14.strictObject({
|
|
@@ -1801,12 +1803,30 @@ var SpendChat = z14.strictObject({
|
|
|
1801
1803
|
repo: z14.string().max(200).nullable(),
|
|
1802
1804
|
window: z14.string().max(64).nullable(),
|
|
1803
1805
|
spend: SpendScopes,
|
|
1804
|
-
helpers: nonNegInt
|
|
1806
|
+
helpers: nonNegInt,
|
|
1807
|
+
/** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
|
|
1808
|
+
hidden: z14.boolean().optional()
|
|
1805
1809
|
});
|
|
1806
1810
|
var SpendHelper = z14.strictObject({ model: z14.string().max(120), steps: nonNegInt, over_steps: z14.boolean(), description: z14.string().max(400) });
|
|
1807
|
-
var SpendLive = z14.strictObject({
|
|
1811
|
+
var SpendLive = z14.strictObject({
|
|
1812
|
+
id: ChatId,
|
|
1813
|
+
title: z14.string().max(1e3),
|
|
1814
|
+
window: z14.string().max(64).nullable(),
|
|
1815
|
+
helpers: z14.array(SpendHelper).max(200),
|
|
1816
|
+
/** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
|
|
1817
|
+
hidden: z14.boolean().optional()
|
|
1818
|
+
});
|
|
1808
1819
|
var SpendIdleScope = z14.strictObject({ count: nonNegInt, tokens: nonNegInt, cost: z14.number(), avoidable: z14.number() });
|
|
1809
|
-
var SpendIdle = z14.strictObject({
|
|
1820
|
+
var SpendIdle = z14.strictObject({
|
|
1821
|
+
id: ChatId,
|
|
1822
|
+
chat: z14.string().max(1e3),
|
|
1823
|
+
who: z14.string().max(400),
|
|
1824
|
+
today: SpendIdleScope,
|
|
1825
|
+
week: SpendIdleScope,
|
|
1826
|
+
last_ms: epochMs,
|
|
1827
|
+
/** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
|
|
1828
|
+
hidden: z14.boolean().optional()
|
|
1829
|
+
});
|
|
1810
1830
|
var SpendStart = z14.strictObject({ repo: z14.string().max(200), count: nonNegInt, median: nonNegInt, latest: z14.array(nonNegInt).max(20), alarm: z14.string().max(400).nullable() });
|
|
1811
1831
|
var SpendDay = z14.strictObject({ date: z14.string().regex(/^\d{4}-\d{2}-\d{2}$/), main: z14.number(), helpers: z14.number() });
|
|
1812
1832
|
var AppsSpendParams = z14.strictObject({ app_key: AppKey });
|
|
@@ -5942,6 +5962,10 @@ var FIELDS_SINCE = {
|
|
|
5942
5962
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
5943
5963
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
5944
5964
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
5965
|
+
ColdChat: { hidden: "1.78" },
|
|
5966
|
+
SpendChat: { hidden: "1.78" },
|
|
5967
|
+
SpendLive: { hidden: "1.78" },
|
|
5968
|
+
SpendIdle: { hidden: "1.78" },
|
|
5945
5969
|
ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61", moved: "1.62", home: "1.63", hidden: "1.70", pin_sync: "1.72" },
|
|
5946
5970
|
AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25", read_source: "1.73" },
|
|
5947
5971
|
AppAccount: { profile: "1.73", read_source: "1.73", session_cost_usd: "1.73" },
|
|
@@ -6088,6 +6112,9 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
6088
6112
|
["apps.projects.unfile", [["chat", "ChatRow"]]],
|
|
6089
6113
|
["apps.projects.move", [["chat", "ChatRow"]]],
|
|
6090
6114
|
["apps.chats.star", [["chat", "ChatRow"]]],
|
|
6115
|
+
// 1.78: our Hide on the cold and spend rows.
|
|
6116
|
+
["apps.chats.cold", [["waiting", "ColdChat"], ["recently_cold", "ColdChat"]]],
|
|
6117
|
+
["apps.spend", [["chats", "SpendChat"], ["live", "SpendLive"], ["idle", "SpendIdle"]]],
|
|
6091
6118
|
["apps.chats.place", [["chat", "ChatRow"]]],
|
|
6092
6119
|
["apps.accounts.usage", [["accounts", "AccountUsage"]]],
|
|
6093
6120
|
["resources.snapshot", [["disks", "ResourcesDisk"]]],
|
|
@@ -7149,4 +7176,4 @@ export {
|
|
|
7149
7176
|
closeRule,
|
|
7150
7177
|
isTerminalClose
|
|
7151
7178
|
};
|
|
7152
|
-
//# sourceMappingURL=chunk-server-
|
|
7179
|
+
//# sourceMappingURL=chunk-server-T5RWEV22.js.map
|