{"_id":"@danielng23/dsh-scanner-host-system-metrics","name":"@danielng23/dsh-scanner-host-system-metrics","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@danielng23/dsh-scanner-host-system-metrics","description":"System-monitor Host Remote: node:os resource snapshots served to the terminal-shell browser surface","version":"0.1.0","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ph4310822/dsh-edex-scanner-ui.git","directory":"packages/host/system-metrics"},"type":"module","main":"lib/index.js","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./typert":{"types":"./lib/typert.host.d.ts","default":"./lib/typert.host.js"},"./remote":{"types":"./lib/typert.remote-client.d.ts","default":"./lib/typert.remote-client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"*","@deepseek-ai/dsh-typert-protocol":"*","@deepseek-ai/cordis":"*"},"devDependencies":{"@deepseek-ai/dsh-invariants":"*","@deepseek-ai/dsh-typert-protocol":"*","@deepseek-ai/cordis":"*"},"gitHead":"461423bbe01bd48e5996e5de24db977ec4e29931","_id":"@danielng23/dsh-scanner-host-system-metrics@0.1.0","bugs":{"url":"https://github.com/ph4310822/dsh-edex-scanner-ui/issues"},"homepage":"https://github.com/ph4310822/dsh-edex-scanner-ui#readme","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-YbHO0lDuqR6S0rfToThzAF4DRUpECupaKgEYuzt9o5S7pWUthmnZAR74ifMrJBfe+l5UvmRnh6BreBOqKpEUtQ==","shasum":"b5e9458225d3579a9266a70e201c08cfe63a2d29","tarball":"https://registry.npmjs.org/@danielng23/dsh-scanner-host-system-metrics/-/dsh-scanner-host-system-metrics-0.1.0.tgz","fileCount":14,"unpackedSize":90321,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICHR5qesXN4uF7RHgciO/OS+Ke+kbcVuI+rXxikf/ehRAiEAsqBg+1oqewKbwDBUYuvGndICSxltgQ7b5oRzCcXXvb8="}]},"_npmUser":{"name":"danielng23","email":"ph4310822@gmail.com"},"directories":{},"maintainers":[{"name":"danielng23","email":"ph4310822@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-scanner-host-system-metrics_0.1.0_1788159705497_0.16113735312280753"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-31T07:01:45.237Z","0.1.0":"2026-08-31T07:01:45.632Z","modified":"2026-08-31T07:01:46.066Z"},"maintainers":[{"name":"danielng23","email":"ph4310822@gmail.com"}],"description":"System-monitor Host Remote: node:os resource snapshots served to the terminal-shell browser surface","homepage":"https://github.com/ph4310822/dsh-edex-scanner-ui#readme","repository":{"type":"git","url":"git+https://github.com/ph4310822/dsh-edex-scanner-ui.git","directory":"packages/host/system-metrics"},"bugs":{"url":"https://github.com/ph4310822/dsh-edex-scanner-ui/issues"},"license":"MIT","readme":"# @danielng23/dsh-scanner-host-system-metrics\n\nEnglish | [中文](README.zh.md)\n\nHost Remote serving point-in-time host resource snapshots to the browser: load averages, average CPU busy ratio since boot, memory totals, and uptime, projected directly from `node:os` at call time (no cache to synchronize).\n\n## Usage\n\nCompose the service row beside the Web stack:\n\n```yaml\n- id: system-metrics\n  name: '@danielng23/dsh-scanner-host-system-metrics'\n```\n\nThe service key is `ctx.systemMetrics`; the wire namespace is `systemMetrics` with one method `snapshot`. The generated client projection ships as `./remote` and is mounted in the standard `@deepseek-ai/dsh-api-remotes` Client assembly alongside the other Host Remote contributions.\n\n## Semantics\n\n- `snapshot()` returns `SystemMetricsSnapshot`: 1/5/15-minute `loadavg`, `cpuBusyRatio` (busy time ÷ total time across all logical cores since boot, 0..1 — an average since boot, not an instantaneous sample), total/free memory bytes, `uptimeSeconds`, and a wall-clock `timestamp`.\n- Every call reads `node:os` directly, so a composition without this plugin answers the domain with an actionable `internal` error naming the missing plugin.\n\n## Model Experience\n\nNone, as this package serves `node:os` resource snapshots to the browser; nothing here reaches a model request.\n\n#### KV Cache effect\n\nNone; this package neither assembles nor sends a provider request.\n\n## Known Limitations and Deferred Work\n\n- **CPU ratio is a since-boot average** — no sampling window exists to report instantaneous utilization; a poller-driven delta would need a host-side cursor.\n- **No process-level metrics** — the snapshot carries load/memory/uptime only.\n","readmeFilename":"README.md","_rev":"1-f2aee90ac0213a163865ff41b810f2a7"}