@ai-ecoverse/slicc-agent 3.51.0 → 3.52.1

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.
@@ -2,6 +2,7 @@ import type { MonitorAlert, MonitorEvents, MonitorPort, MonitorSection, MonitorS
2
2
  import type { AgentConnection } from '../client.ts';
3
3
  import type { BudgetState, ModelChoice, MonitorFeed, MonitorProcess, MonitorTask } from '../services.ts';
4
4
  export declare const RENEW_MS = 10000;
5
+ export declare const SAMPLE_MS = 2000;
5
6
  export declare const ROWS_MAX = 200;
6
7
  export declare const HISTORY = 24;
7
8
  export declare const CPU_HISTORY = 30;
@@ -40,7 +41,7 @@ export interface MonitorInput {
40
41
  path: string;
41
42
  status: string;
42
43
  }[];
43
- sprinkles: readonly {
44
+ sprinkles?: readonly {
44
45
  name: string;
45
46
  title: string;
46
47
  }[];
@@ -49,13 +50,17 @@ export interface MonitorInput {
49
50
  now: number;
50
51
  hot?: ReadonlyMap<number, number>;
51
52
  cpu?: readonly number[];
53
+ processes?: readonly number[];
54
+ memory?: readonly number[];
52
55
  }
56
+ export declare function record<T>(list: T[], value: T, max: number): void;
53
57
  export declare function age(ms: number): string;
54
58
  export declare function money(value: number): string;
55
59
  export declare function count(value: number): string;
56
60
  export declare function bytes(value: number): string;
57
61
  export declare function cpuText(share: number | null | undefined): string | null;
58
62
  export declare function agentsCpu(feed: MonitorFeed): number | null;
63
+ export declare function memoryTotal(processes: readonly MonitorProcess[]): number | null;
59
64
  export declare function taskLabel(task: MonitorTask): string;
60
65
  export declare function taskTree(feed: MonitorFeed): {
61
66
  task: MonitorTask;
@@ -75,6 +80,7 @@ export declare const globalIntervals: Intervals;
75
80
  export interface MonitorAdapterOptions {
76
81
  extra?: () => readonly MonitorSection[];
77
82
  renewMs?: number;
83
+ sampleMs?: number;
78
84
  intervals?: Intervals;
79
85
  now?: () => number;
80
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-agent",
3
- "version": "3.51.0",
3
+ "version": "3.52.1",
4
4
  "description": "SLICC's agent core on pi durable: an agent worker, session storage, remoting and pi extensions",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -63,7 +63,7 @@
63
63
  "devDependencies": {
64
64
  "@ai-ecoverse/slicc-kernel": "1.47.1",
65
65
  "@ai-ecoverse/slicc-shared-web": "1.13.1",
66
- "@ai-ecoverse/slicc-spectrum": "1.68.2",
66
+ "@ai-ecoverse/slicc-spectrum": "1.68.3",
67
67
  "@ai-ecoverse/wasm-bash": "5.3.0-18",
68
68
  "@ai-ecoverse/wasm-coreutils": "9.12.0-5",
69
69
  "@ai-ecoverse/wasm-git": "2.55.0-15",