@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/dist/client.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BackoffOptions } from '@ai-matrx/data/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
3
3
  import { z } from 'zod';
4
- import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-C2VdtixP.cjs';
5
- export { i as isDesktopProtocolError } from './models-C2VdtixP.cjs';
4
+ import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-BnUudL7J.cjs';
5
+ export { i as isDesktopProtocolError } from './models-BnUudL7J.cjs';
6
6
  import { FrameHeader } from './frame.cjs';
7
7
 
8
8
  /** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
package/dist/client.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BackoffOptions } from '@ai-matrx/data/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
3
3
  import { z } from 'zod';
4
- import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-C2VdtixP.js';
5
- export { i as isDesktopProtocolError } from './models-C2VdtixP.js';
4
+ import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-BnUudL7J.js';
5
+ export { i as isDesktopProtocolError } from './models-BnUudL7J.js';
6
6
  import { FrameHeader } from './frame.js';
7
7
 
8
8
  /** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
package/dist/client.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  Welcome,
13
13
  closeRule,
14
14
  knows
15
- } from "./chunk-server-XQQUJENM.js";
15
+ } from "./chunk-server-T5RWEV22.js";
16
16
  import {
17
17
  DesktopProtocolError,
18
18
  FRAME_VERSION,
package/dist/index.cjs CHANGED
@@ -943,7 +943,7 @@ module.exports = __toCommonJS(src_exports);
943
943
  var import_zod = require("zod");
944
944
  var import_uuid = require("@ai-matrx/kit/uuid");
945
945
  var PROTOCOL_MAJOR = 1;
946
- var PROTOCOL_MINOR = 77;
946
+ var PROTOCOL_MINOR = 78;
947
947
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
948
948
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
949
949
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -2782,7 +2782,9 @@ var ColdChat = import_zod14.z.strictObject({
2782
2782
  /** It can be shown in its window (started in the desktop app). */
2783
2783
  openable: import_zod14.z.boolean(),
2784
2784
  /** How its window was decided, or why it can't be opened. */
2785
- how: import_zod14.z.string().max(200).nullable()
2785
+ how: import_zod14.z.string().max(200).nullable(),
2786
+ /** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
2787
+ hidden: import_zod14.z.boolean().optional()
2786
2788
  });
2787
2789
  var AppsChatsColdParams = import_zod14.z.strictObject({ app_key: AppKey });
2788
2790
  var AppsChatsColdResult = import_zod14.z.strictObject({
@@ -2865,12 +2867,30 @@ var SpendChat = import_zod14.z.strictObject({
2865
2867
  repo: import_zod14.z.string().max(200).nullable(),
2866
2868
  window: import_zod14.z.string().max(64).nullable(),
2867
2869
  spend: SpendScopes,
2868
- helpers: nonNegInt
2870
+ helpers: nonNegInt,
2871
+ /** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
2872
+ hidden: import_zod14.z.boolean().optional()
2869
2873
  });
2870
2874
  var SpendHelper = import_zod14.z.strictObject({ model: import_zod14.z.string().max(120), steps: nonNegInt, over_steps: import_zod14.z.boolean(), description: import_zod14.z.string().max(400) });
2871
- var SpendLive = import_zod14.z.strictObject({ id: ChatId, title: import_zod14.z.string().max(1e3), window: import_zod14.z.string().max(64).nullable(), helpers: import_zod14.z.array(SpendHelper).max(200) });
2875
+ var SpendLive = import_zod14.z.strictObject({
2876
+ id: ChatId,
2877
+ title: import_zod14.z.string().max(1e3),
2878
+ window: import_zod14.z.string().max(64).nullable(),
2879
+ helpers: import_zod14.z.array(SpendHelper).max(200),
2880
+ /** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
2881
+ hidden: import_zod14.z.boolean().optional()
2882
+ });
2872
2883
  var SpendIdleScope = import_zod14.z.strictObject({ count: nonNegInt, tokens: nonNegInt, cost: import_zod14.z.number(), avoidable: import_zod14.z.number() });
2873
- var SpendIdle = import_zod14.z.strictObject({ id: ChatId, chat: import_zod14.z.string().max(1e3), who: import_zod14.z.string().max(400), today: SpendIdleScope, week: SpendIdleScope, last_ms: epochMs });
2884
+ var SpendIdle = import_zod14.z.strictObject({
2885
+ id: ChatId,
2886
+ chat: import_zod14.z.string().max(1e3),
2887
+ who: import_zod14.z.string().max(400),
2888
+ today: SpendIdleScope,
2889
+ week: SpendIdleScope,
2890
+ last_ms: epochMs,
2891
+ /** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
2892
+ hidden: import_zod14.z.boolean().optional()
2893
+ });
2874
2894
  var SpendStart = import_zod14.z.strictObject({ repo: import_zod14.z.string().max(200), count: nonNegInt, median: nonNegInt, latest: import_zod14.z.array(nonNegInt).max(20), alarm: import_zod14.z.string().max(400).nullable() });
2875
2895
  var SpendDay = import_zod14.z.strictObject({ date: import_zod14.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), main: import_zod14.z.number(), helpers: import_zod14.z.number() });
2876
2896
  var AppsSpendParams = import_zod14.z.strictObject({ app_key: AppKey });
@@ -7006,6 +7026,10 @@ var FIELDS_SINCE = {
7006
7026
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
7007
7027
  AppsAccountsUsageResult: { problem: "1.12" },
7008
7028
  AppsAccountsResetsResult: { problem: "1.12" },
7029
+ ColdChat: { hidden: "1.78" },
7030
+ SpendChat: { hidden: "1.78" },
7031
+ SpendLive: { hidden: "1.78" },
7032
+ SpendIdle: { hidden: "1.78" },
7009
7033
  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" },
7010
7034
  AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25", read_source: "1.73" },
7011
7035
  AppAccount: { profile: "1.73", read_source: "1.73", session_cost_usd: "1.73" },
@@ -7152,6 +7176,9 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
7152
7176
  ["apps.projects.unfile", [["chat", "ChatRow"]]],
7153
7177
  ["apps.projects.move", [["chat", "ChatRow"]]],
7154
7178
  ["apps.chats.star", [["chat", "ChatRow"]]],
7179
+ // 1.78: our Hide on the cold and spend rows.
7180
+ ["apps.chats.cold", [["waiting", "ColdChat"], ["recently_cold", "ColdChat"]]],
7181
+ ["apps.spend", [["chats", "SpendChat"], ["live", "SpendLive"], ["idle", "SpendIdle"]]],
7155
7182
  ["apps.chats.place", [["chat", "ChatRow"]]],
7156
7183
  ["apps.accounts.usage", [["accounts", "AccountUsage"]]],
7157
7184
  ["resources.snapshot", [["disks", "ResourcesDisk"]]],
@@ -7301,7 +7328,7 @@ function forPeer(op, part, value, version) {
7301
7328
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
7302
7329
 
7303
7330
  // src/contract.ts
7304
- var CONTRACT_SHA256 = "e6936784e216200e73b062cab45f24fa88014108baecd0f8b7a0b19ea5797fc5";
7331
+ var CONTRACT_SHA256 = "f3aa46d23626de5c1c5e80517d6f71ed4ba9ecf33991b66bcfc46cc0d48bae17";
7305
7332
 
7306
7333
  // src/close-policy.ts
7307
7334
  var CLOSE_RULES = {