@ai-matrx/desktop-protocol 0.21.89 → 0.21.90

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 CHANGED
@@ -1,10 +1,25 @@
1
1
  # Changelog
2
2
 
3
- ## 0.21.89
3
+ ## 0.21.90
4
4
 
5
5
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/desktop-protocol/src`.
7
7
 
8
+ ## 0.21.89
9
+
10
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff 1d9db3747e 03d7a6d2b0 -- apps/shared/desktop-protocol/src`
11
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
12
+
13
+ ## 0.21.88
14
+
15
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff f1984cb2e2 1d9db3747e -- apps/shared/desktop-protocol/src`
16
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
17
+
18
+ ## 0.21.87
19
+
20
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff 348cc633ad f1984cb2e2 -- apps/shared/desktop-protocol/src`
21
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
22
+
8
23
  ## 0.21.86
9
24
 
10
25
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -33,7 +33,7 @@ import {
33
33
  epochMs,
34
34
  nonNegInt,
35
35
  u32
36
- } from "./chunk-server-VYJA3PFP.js";
36
+ } from "./chunk-server-YNRFJNST.js";
37
37
 
38
38
  // src/schema/sysinfo.ts
39
39
  import { z } from "zod";
@@ -3510,6 +3510,76 @@ var AppsWindowsUpdateAndReopenResult = z29.strictObject({
3510
3510
  /** The version installed, null when the install did not happen (or dry_run). */
3511
3511
  installed_version: z29.string().max(64).nullable()
3512
3512
  });
3513
+ var WeightProcess = z29.strictObject({ cmd: z29.string().max(200), gb: z29.number(), cpu: z29.number() });
3514
+ var WeightSession = z29.strictObject({
3515
+ /** The chat's id (its --resume); null for a new chat with no transcript yet. */
3516
+ id: ChatId.nullable(),
3517
+ /** Every window it runs in ("main", "work"); two or more is a duplicate. */
3518
+ windows: z29.array(ChatPlace).max(20),
3519
+ /** Hours since its last reply; 0 while working; null when not known (a new chat). */
3520
+ idle_h: z29.number().nullable(),
3521
+ /** The engine's word: waiting, idle, working, new. */
3522
+ state: z29.string().max(40),
3523
+ title: z29.string().max(1e3),
3524
+ gb: z29.number(),
3525
+ cpu: z29.number(),
3526
+ procs: nonNegInt,
3527
+ /** The heaviest processes of its tree, heaviest first. */
3528
+ top: z29.array(WeightProcess).max(10),
3529
+ /** The engine's verdicts: "OLD+HEAVY", "BURNING IDLE", "dup". */
3530
+ flags: z29.array(z29.string().max(40)).max(10),
3531
+ /** Idle hours x (GB + cores now): the engine's sort order. */
3532
+ score: z29.number(),
3533
+ pids: z29.array(z29.int().min(1)).max(50)
3534
+ });
3535
+ var WeightOrphan = z29.strictObject({
3536
+ pid: z29.int().min(1),
3537
+ age_h: z29.number(),
3538
+ cmd: z29.string().max(200),
3539
+ args: z29.string().max(2e3),
3540
+ gb: z29.number(),
3541
+ cpu: z29.number(),
3542
+ procs: nonNegInt,
3543
+ top: z29.array(WeightProcess).max(10)
3544
+ });
3545
+ var WeightMachine = z29.strictObject({
3546
+ procs: nonNegInt,
3547
+ /** Every process's memory added up, GB. */
3548
+ gb: z29.number(),
3549
+ /** Cores busy now (every process's CPU / 100). */
3550
+ cpu_cores: z29.number(),
3551
+ /** Load over 1, 5 and 15 minutes. */
3552
+ load: z29.array(z29.number()).max(3).nullable(),
3553
+ cores: nonNegInt.nullable(),
3554
+ ram_gb: z29.number().nullable(),
3555
+ free_gb: z29.number().nullable(),
3556
+ compressed_gb: z29.number().nullable(),
3557
+ swap_used_gb: z29.number().nullable(),
3558
+ /** The kernel's memory pressure level: 1 normal, 2 warning, 4 critical. */
3559
+ pressure: nonNegInt.nullable()
3560
+ });
3561
+ var WeightGuardStop = z29.strictObject({ at_ms: epochMs.nullable(), gb: z29.number().nullable(), reason: z29.string().max(400).nullable(), kind: z29.string().max(80).nullable(), session_id: z29.string().max(128).nullable() });
3562
+ var WeightGuard = z29.strictObject({ daemon_alive: z29.boolean(), stops_24h: nonNegInt, last_stops: z29.array(WeightGuardStop).max(50) });
3563
+ var WeightThresholds = z29.strictObject({ min_idle_h: z29.number(), min_gb: z29.number(), min_cpu: z29.number() });
3564
+ var WeightTotals = z29.strictObject({ sessions: nonNegInt, session_gb: z29.number(), session_cores: z29.number(), flagged: nonNegInt, flagged_gb: z29.number(), orphan_gb: z29.number(), orphan_cores: z29.number() });
3565
+ var AppsWeightParams = z29.strictObject({ app_key: AppKey, fresh: z29.boolean().optional() });
3566
+ var AppsWeightResult = z29.strictObject({
3567
+ app_key: AppKey,
3568
+ /** When the engine took this reading. */
3569
+ taken_at_ms: epochMs,
3570
+ sample_s: z29.number(),
3571
+ thresholds: WeightThresholds,
3572
+ machine: WeightMachine,
3573
+ /** Null when this computer has never run the machine guard. */
3574
+ guard: WeightGuard.nullable(),
3575
+ /** Every session, highest score first. */
3576
+ sessions: z29.array(WeightSession).max(500),
3577
+ orphans: z29.array(WeightOrphan).max(500),
3578
+ totals: WeightTotals,
3579
+ /** When the answer was read (the last reading answers at once) and whether a newer one is being taken. */
3580
+ as_of_ms: epochMs.optional(),
3581
+ refreshing: z29.boolean().optional()
3582
+ });
3513
3583
  var AppsChatsCopyToAccountParams = z29.strictObject({
3514
3584
  app_key: AppKey,
3515
3585
  origin: ChatPlace,
@@ -4689,6 +4759,8 @@ var OPS = {
4689
4759
  "apps.chats.bring_back": { params: AppsChatsBringBackParams, result: AppsChatsBringBackResult, kind: "unary", since: "1.72", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4690
4760
  "apps.chats.tidy_up": { params: AppsChatsTidyUpParams, result: AppsChatsTidyUpResult, kind: "unary", since: "1.72", errors: ["INVALID_PARAMS", "NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4691
4761
  "apps.spend": { params: AppsSpendParams, result: AppsSpendResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4762
+ // 1.82: Code › Performance (claude-app weight).
4763
+ "apps.weight": { params: AppsWeightParams, result: AppsWeightResult, kind: "unary", since: "1.82", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
4692
4764
  "apps.sync.status": { params: AppsSyncStatusParams, result: AppsSyncStatusResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4693
4765
  "apps.sync.run": { params: AppsSyncRunParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4694
4766
  "apps.windows.processes": { params: AppsWindowsProcessesParams, result: AppsWindowsProcessesResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
@@ -5531,6 +5603,16 @@ var NAMED_SCHEMAS = {
5531
5603
  SpendDay,
5532
5604
  AppsSpendParams,
5533
5605
  AppsSpendResult,
5606
+ WeightProcess,
5607
+ WeightSession,
5608
+ WeightOrphan,
5609
+ WeightMachine,
5610
+ WeightGuardStop,
5611
+ WeightGuard,
5612
+ WeightThresholds,
5613
+ WeightTotals,
5614
+ AppsWeightParams,
5615
+ AppsWeightResult,
5534
5616
  AppsSyncStatusParams,
5535
5617
  AppsSyncStatusResult,
5536
5618
  AppsSyncRunParams,
@@ -6125,6 +6207,16 @@ export {
6125
6207
  AppsWindowsReopenResult,
6126
6208
  AppsWindowsUpdateAndReopenParams,
6127
6209
  AppsWindowsUpdateAndReopenResult,
6210
+ WeightProcess,
6211
+ WeightSession,
6212
+ WeightOrphan,
6213
+ WeightMachine,
6214
+ WeightGuardStop,
6215
+ WeightGuard,
6216
+ WeightThresholds,
6217
+ WeightTotals,
6218
+ AppsWeightParams,
6219
+ AppsWeightResult,
6128
6220
  AppsChatsCopyToAccountParams,
6129
6221
  CopiedChat,
6130
6222
  CopyReopened,
@@ -6653,4 +6745,4 @@ export {
6653
6745
  SERVICES,
6654
6746
  NAMED_SCHEMAS
6655
6747
  };
6656
- //# sourceMappingURL=chunk-server-FSNIDZGR.js.map
6748
+ //# sourceMappingURL=chunk-server-6SXF6ZJA.js.map