{"_id":"@danielng23/dsh-host-system-metrics","name":"@danielng23/dsh-host-system-metrics","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@danielng23/dsh-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-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":"*"},"_id":"@danielng23/dsh-host-system-metrics@0.1.0","gitHead":"71b569b470d5bd15ee8907e90193430c8d6afa3c","bugs":{"url":"https://github.com/ph4310822/dsh-edex-ui/issues"},"homepage":"https://github.com/ph4310822/dsh-edex-ui#readme","_nodeVersion":"23.9.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-zAOhfEjRRDZO/0AdSToMSGO52+y2gzoTsKIbBIYHkwv/s0qEdAVck+q7t7XXS0ndUuwoaE6EpzACy73PJaPv0Q==","shasum":"bb561bcb4cbfc3a7c34fae14f5307699b63a7cd2","tarball":"https://registry.npmjs.org/@danielng23/dsh-host-system-metrics/-/dsh-host-system-metrics-0.1.0.tgz","fileCount":14,"unpackedSize":66827,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCp6dkTB5C5NCm3ry2d6OrW1NWrdpEpD5Ik814S7gOSFgIgaY1t8pW7pxqaLTs4oM6k/b12ajff98DjcgQLpyz0I9c="}]},"_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-host-system-metrics_0.1.0_1787370334505_0.33361234155884745"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-22T03:45:34.376Z","0.1.0":"2026-08-22T03:45:34.656Z","modified":"2026-08-22T03:45:34.847Z"},"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-ui#readme","repository":{"type":"git","url":"git+https://github.com/ph4310822/dsh-edex-ui.git","directory":"packages/host/system-metrics"},"bugs":{"url":"https://github.com/ph4310822/dsh-edex-ui/issues"},"license":"MIT","readme":"# @danielng23/dsh-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-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-b8482ffb91a7665c3782db4084bd5c40"}