feat: support Linux system monitoring
Add procfs memory and mount-aware disk collectors, Intel and AMD GPU backends, bounded Intel sampling, portable validation tools, and Linux setup documentation. Bump to 0.2.0 and verify on Windows and Ubuntu 24.04 under WSL2.
This commit is contained in:
@@ -16,10 +16,12 @@ assert.equal(plugin?.state.status, "active")
|
||||
assert.equal(plugin.features.gui, true)
|
||||
assert.equal(plugin.features.rpc, true)
|
||||
const snapshot = api("post", "/api/rpc/local-system-monitor/snapshot", { input: {} }).output
|
||||
assert.match(snapshot.gpu.adapter.name, /Intel/)
|
||||
assert.equal(snapshot.gpu.error, null)
|
||||
if (process.argv.includes("--require-gpu")) {
|
||||
assert.equal(snapshot.gpu.error, null)
|
||||
assert.ok(snapshot.gpu.adapter?.percent != null)
|
||||
}
|
||||
assert.ok(snapshot.disks.items.length > 0)
|
||||
console.log("Installed plugin, GUI feature, RPC, and Intel-only readings: passed")
|
||||
console.log("Installed plugin, GUI feature, RPC, and disk readings: passed")
|
||||
|
||||
let sessionID
|
||||
try {
|
||||
@@ -30,7 +32,7 @@ try {
|
||||
const inbox = api("get", `/api/session/${sessionID}/inbox`)
|
||||
const text = JSON.stringify(inbox)
|
||||
assert.match(text, /local-system-monitor.report/)
|
||||
assert.match(text, /Integrated GPU/)
|
||||
assert.match(text, /\*\*GPU:\*\*/)
|
||||
const messages = api("get", `/api/session/${sessionID}/message`)
|
||||
assert.doesNotMatch(JSON.stringify(messages), /"type":"assistant"/)
|
||||
console.log("/system_status posts a report without starting a model turn: passed")
|
||||
|
||||
Reference in New Issue
Block a user