{"_id":"@danielng23/dsh-jarvis-host-system-metrics","_rev":"2-f51241e9c7cd7f9cd89a33cc935664ed","name":"@danielng23/dsh-jarvis-host-system-metrics","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@danielng23/dsh-jarvis-host-system-metrics","version":"0.1.0","license":"MIT","_id":"@danielng23/dsh-jarvis-host-system-metrics@0.1.0","maintainers":[{"name":"danielng23","email":"ph4310822@gmail.com"}],"homepage":"https://github.com/ph4310822/dsh-edex-jarvis-ui#readme","bugs":{"url":"https://github.com/ph4310822/dsh-edex-jarvis-ui/issues"},"dist":{"shasum":"a53a9ef6cda0763b6d8c7c76ea17778303506be2","tarball":"https://registry.npmjs.org/@danielng23/dsh-jarvis-host-system-metrics/-/dsh-jarvis-host-system-metrics-0.1.0.tgz","fileCount":14,"integrity":"sha512-9yZzeTb434oegzh39TA1hQvvYrTN3bOLAwuMDcP+21Q7FnlYYDtsI6ml1ifH+z7y+QLdU0Vte4ipV2dWgNneJA==","signatures":[{"sig":"MEYCIQCt0veRl6F2tyqAD+d4gmI2ZbjdpY6IIb8iPyFFZA+0EwIhAJHft2yoOGXf0Ay1BxfZx6JVqXsOItmWEdy7dtNt1cr8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89656},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./src/*":"./src/*","./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./remote":{"types":"./lib/typert.remote-client.d.ts","default":"./lib/typert.remote-client.js"},"./typert":{"types":"./lib/typert.host.d.ts","default":"./lib/typert.host.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"gitHead":"b1e32baff54bbac68a82779a47a8b1119aba8584","_npmUser":{"name":"danielng23","email":"ph4310822@gmail.com"},"repository":{"url":"git+https://github.com/ph4310822/dsh-edex-jarvis-ui.git","type":"git","directory":"packages/host/system-metrics"},"_npmVersion":"11.17.0","description":"System-monitor Host Remote: node:os resource snapshots served to the terminal-shell browser surface","directories":{},"_nodeVersion":"24.19.0","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@deepseek-ai/cordis":"*","@deepseek-ai/dsh-invariants":"*","@deepseek-ai/dsh-typert-protocol":"*"},"peerDependencies":{"@deepseek-ai/cordis":"*","@deepseek-ai/dsh-invariants":"*","@deepseek-ai/dsh-typert-protocol":"*"},"_npmOperationalInternal":{"tmp":"tmp/dsh-jarvis-host-system-metrics_0.1.0_1787638342559_0.892532441453666","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"_id":"@danielng23/dsh-jarvis-host-system-metrics@0.1.1","bugs":{"url":"https://github.com/ph4310822/dsh-edex-jarvis-ui/issues"},"dist":{"shasum":"4296473ef2f0f5938f9c456a44e9e592bc71c2a2","tarball":"https://registry.npmjs.org/@danielng23/dsh-jarvis-host-system-metrics/-/dsh-jarvis-host-system-metrics-0.1.1.tgz","fileCount":14,"integrity":"sha512-6ZgpgvjrAuFloEuU2omD7EoV6Ox1SmhgW+aeNh91Ad/r83Ghi2cyIsiE+fJg/DeJpyb+P/osfZDlCKRTRw9cog==","signatures":[{"sig":"MEQCIAvsXXCiqJHyV7cHzGmV+uh2fraF9Y8dGxlQ5gae+oG8AiB6pzXgj1kbco0i4+l4RWAZ0l7PD3PYjFw58rVxhEeizQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHVg/o7gUK/pKQnEtBOpq+nYpwC625tp0BMvlD9rEP4GAiEA6Yam+O5eI+BeVefUm+AWJyLADMOKoOc8Gm0fsGlsqk4="}],"unpackedSize":90222},"main":"lib/index.js","name":"@danielng23/dsh-jarvis-host-system-metrics","type":"module","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./src/*":"./src/*","./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./remote":{"types":"./lib/typert.remote-client.d.ts","default":"./lib/typert.remote-client.js"},"./typert":{"types":"./lib/typert.host.d.ts","default":"./lib/typert.host.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"gitHead":"b1e32baff54bbac68a82779a47a8b1119aba8584","license":"MIT","version":"0.1.1","_npmUser":{"name":"danielng23","email":"ph4310822@gmail.com"},"homepage":"https://github.com/ph4310822/dsh-edex-jarvis-ui#readme","repository":{"url":"git+https://github.com/ph4310822/dsh-edex-jarvis-ui.git","type":"git","directory":"packages/host/system-metrics"},"_npmVersion":"11.17.0","description":"System-monitor Host Remote: node:os resource snapshots served to the terminal-shell browser surface","directories":{},"maintainers":[{"name":"danielng23","email":"ph4310822@gmail.com"}],"_nodeVersion":"24.19.0","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@deepseek-ai/cordis":"*","@deepseek-ai/dsh-invariants":"*","@deepseek-ai/dsh-typert-protocol":"*"},"peerDependencies":{"@deepseek-ai/cordis":"*","@deepseek-ai/dsh-invariants":"*","@deepseek-ai/dsh-typert-protocol":"*"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-jarvis-host-system-metrics_0.1.1_1787639355644_0.0773425412510782"}}},"time":{"created":"2026-08-25T06:12:22.347Z","modified":"2026-08-25T06:29:15.908Z","0.1.0":"2026-08-25T06:12:22.695Z","0.1.1":"2026-08-25T06:29:15.728Z"},"bugs":{"url":"https://github.com/ph4310822/dsh-edex-jarvis-ui/issues"},"license":"MIT","homepage":"https://github.com/ph4310822/dsh-edex-jarvis-ui#readme","repository":{"url":"git+https://github.com/ph4310822/dsh-edex-jarvis-ui.git","type":"git","directory":"packages/host/system-metrics"},"description":"System-monitor Host Remote: node:os resource snapshots served to the terminal-shell browser surface","maintainers":[{"name":"danielng23","email":"ph4310822@gmail.com"}],"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"}