@ycodium-ai/plugin-resource-telemetry 0.2.2990 → 0.2.2992

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -4,10 +4,8 @@ import {
4
4
  definePlugin
5
5
  } from "@ycodium-ai/plugin-api";
6
6
 
7
- // src/model.ts
7
+ // src/monitorProtocol.ts
8
8
  var RESOURCE_MONITOR_PROTOCOL_VERSION = 2;
9
- var MAX_DELTA_INTERVAL_MS = 3e4;
10
- var MAX_HISTORY_WINDOW_MS = 60 * 6e4;
11
9
  var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
12
10
  var finite = (value) => typeof value === "number" && Number.isFinite(value) ? value : null;
13
11
  var nonNegativeInt = (value) => {
@@ -147,6 +145,10 @@ var parseMonitorEvent = (value) => {
147
145
  return null;
148
146
  }
149
147
  };
148
+
149
+ // src/telemetryProjection.ts
150
+ var MAX_DELTA_INTERVAL_MS = 3e4;
151
+ var MAX_HISTORY_WINDOW_MS = 60 * 6e4;
150
152
  var emptyGroupCounters = () => ({
151
153
  cpuTimeMs: 0,
152
154
  ioReadBytes: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-resource-telemetry",
3
- "version": "0.2.2990",
3
+ "version": "0.2.2992",
4
4
  "description": "Measures what this machine's processes cost in CPU, memory and disk.",
5
5
  "keywords": [
6
6
  "telemetry",
@@ -20,7 +20,7 @@
20
20
  "effect": "4.0.0-beta.103",
21
21
  "esbuild": "0.28.1",
22
22
  "vite-plus": "0.2.2",
23
- "@ycodium-ai/plugin-api": "0.2.2990"
23
+ "@ycodium-ai/plugin-api": "0.2.2992"
24
24
  },
25
25
  "ycodium": {
26
26
  "plugin": "./dist/index.js",