@ycodium-ai/plugin-resource-telemetry 0.2.5503 → 0.2.5542

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/README.md CHANGED
@@ -30,8 +30,7 @@ ycodium plugin add @ycodium-ai/plugin-resource-telemetry
30
30
  ```
31
31
 
32
32
  The plugin ships enabled with Ycodium as `core.resource-telemetry`. Disabling
33
- it stops the measuring process; the diagnostics page reports that it is not
34
- running rather than showing stale figures. Uninstalling it writes a removal
33
+ it stops the measuring process and removes its sections from Diagnostics. Uninstalling it writes a removal
35
34
  onto the home patch, so a restart or upgrade does not bring it back.
36
35
  Reinstalling the unversioned bundled package restores the same entry without
37
36
  an npm fetch.
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  } from "@ycodium-ai/plugin-api";
6
6
 
7
7
  // ../../packages/plugin-api/src/version.ts
8
- var PLUGIN_API_VERSION = 173;
8
+ var PLUGIN_API_VERSION = 174;
9
9
 
10
10
  // src/monitorProtocol.ts
11
11
  var RESOURCE_MONITOR_PROTOCOL_VERSION = 2;
@@ -1264,6 +1264,7 @@ var index_default = definePlugin({
1264
1264
  runtime.start();
1265
1265
  ctx.stream({
1266
1266
  name: "snapshots",
1267
+ role: "diagnostics-resource-snapshots",
1267
1268
  description: "Live process, group, power and I/O telemetry for this environment.",
1268
1269
  scope: "read",
1269
1270
  payloadSchema: EMPTY_PAYLOAD_SCHEMA,
@@ -1296,6 +1297,7 @@ var index_default = definePlugin({
1296
1297
  });
1297
1298
  ctx.command({
1298
1299
  name: "history",
1300
+ role: "diagnostics-resource-history",
1299
1301
  description: "Bucketed CPU, memory and I/O history replayed from the sidecar's ring buffer.",
1300
1302
  scope: "read",
1301
1303
  payloadSchema: HISTORY_PAYLOAD_SCHEMA,
@@ -1306,6 +1308,7 @@ var index_default = definePlugin({
1306
1308
  });
1307
1309
  ctx.command({
1308
1310
  name: "retry",
1311
+ role: "diagnostics-resource-retry",
1309
1312
  description: "Closes the collector's circuit breaker and restarts the resource monitor.",
1310
1313
  // 起进程的动作不是只读:熔断之后要不要再试一次,得由拿着 operate 凭据的人决定。
1311
1314
  scope: "operate",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-resource-telemetry",
3
- "version": "0.2.5503",
3
+ "version": "0.2.5542",
4
4
  "description": "Measures what this machine's processes cost in CPU, memory and disk.",
5
5
  "keywords": [
6
6
  "telemetry",
@@ -22,8 +22,8 @@
22
22
  "effect": "4.0.0-beta.103",
23
23
  "esbuild": "0.28.1",
24
24
  "vite-plus": "0.2.2",
25
- "ycodium-executor-testing": "0.0.0",
26
- "@ycodium-ai/plugin-api": "0.2.5503"
25
+ "@ycodium-ai/plugin-api": "0.2.5542",
26
+ "ycodium-executor-testing": "0.0.0"
27
27
  },
28
28
  "ycodium": {
29
29
  "plugin": "./dist/index.js",