{"_id":"@danielng23/dsh-mission-host-system-metrics","_rev":"3-232453ecd97ad8e8e0d6624d7a43f32d","name":"@danielng23/dsh-mission-host-system-metrics","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@danielng23/dsh-mission-host-system-metrics","version":"0.1.0","license":"MIT","_id":"@danielng23/dsh-mission-host-system-metrics@0.1.0","maintainers":[{"name":"danielng23","email":"ph4310822@gmail.com"}],"homepage":"https://github.com/ph4310822/dsh-edex-mission-ui#readme","bugs":{"url":"https://github.com/ph4310822/dsh-edex-mission-ui/issues"},"dist":{"shasum":"d8619c32d62f5075aa15cf9dc96bdf0227c1d546","tarball":"https://registry.npmjs.org/@danielng23/dsh-mission-host-system-metrics/-/dsh-mission-host-system-metrics-0.1.0.tgz","fileCount":14,"integrity":"sha512-K7mEO7mN8C4wvhloctyJGzrBBqLy6wSEntCxTYx7uCDzlsjBm5dZv7N5BTpyOFIFnHq+3K11cIPlWnq6oGFbLw==","signatures":[{"sig":"MEYCIQCwQr5leI0E/X2B/NU/BfmlTDjnCPNUsZywbfPjodQJDwIhAIDcaVen84kUWnSstQAhATIeRx8pw4FNvr1kFtGUZu75","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89954},"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":"24101bc4dfa5b88286385764e2c8d870a687c0fd","_npmUser":{"name":"danielng23","email":"ph4310822@gmail.com"},"repository":{"url":"git+https://github.com/ph4310822/dsh-edex-mission-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-mission-host-system-metrics_0.1.0_1788429083551_0.1280831855929221","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@danielng23/dsh-mission-host-system-metrics","version":"0.1.1","license":"MIT","_id":"@danielng23/dsh-mission-host-system-metrics@0.1.1","maintainers":[{"name":"danielng23","email":"ph4310822@gmail.com"}],"homepage":"https://github.com/ph4310822/dsh-edex-mission-ui#readme","bugs":{"url":"https://github.com/ph4310822/dsh-edex-mission-ui/issues"},"dist":{"shasum":"24d38d17364e87be4ee2efdae477f0f8f5e1d627","tarball":"https://registry.npmjs.org/@danielng23/dsh-mission-host-system-metrics/-/dsh-mission-host-system-metrics-0.1.1.tgz","fileCount":14,"integrity":"sha512-uF2j858GjqkrRdeyhFGsgPbIVD/O9pd1el1YEhnEY+PXU3nYxS/ZxIrvB8dDaq6P5D5S+RszvLM0jXgUUI9n2A==","signatures":[{"sig":"MEUCIAYj3EbgHzU8fk07crLZY7eqYO/qD0HmbP2Tn8vsbXRSAiEAosD9c1MMWBKFouMQPDJ5sT7ztUsOD4rgTGgEL+dgPOA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90305},"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":"5e894e1a054bdb2e51de4916eb5fac02a0f462b3","_npmUser":{"name":"danielng23","email":"ph4310822@gmail.com"},"repository":{"url":"git+https://github.com/ph4310822/dsh-edex-mission-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-mission-host-system-metrics_0.1.1_1788431123928_0.9571430746762353","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@danielng23/dsh-mission-host-system-metrics","description":"System-monitor Host Remote: node:os resource snapshots served to the terminal-shell browser surface","version":"0.1.2","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ph4310822/dsh-edex-mission-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":"5e894e1a054bdb2e51de4916eb5fac02a0f462b3","_id":"@danielng23/dsh-mission-host-system-metrics@0.1.2","bugs":{"url":"https://github.com/ph4310822/dsh-edex-mission-ui/issues"},"homepage":"https://github.com/ph4310822/dsh-edex-mission-ui#readme","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-Bvp+suHiUwHkhMWmbMzUg6CRhjSmoS1vY4F/qfwfji0EVuJ2tm5K1bv31yOIKMm5u0TIDckLp8D3fIiGa+wW+A==","shasum":"781774956be6ffbb2d0dc4ce78e4d08915436fcc","tarball":"https://registry.npmjs.org/@danielng23/dsh-mission-host-system-metrics/-/dsh-mission-host-system-metrics-0.1.2.tgz","fileCount":14,"unpackedSize":90305,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCf+wkkZNirXfY7Cs+7OiGrWNN92PJ8IlOe4ZWt+fo5hgIgRZ0P0r1MKa17LM/9XrtWMdimXHN2OouCwiYmMCUip6M="}]},"_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-mission-host-system-metrics_0.1.2_1788433793047_0.6134567434431928"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-03T09:51:23.392Z","modified":"2026-09-03T11:09:53.313Z","0.1.0":"2026-09-03T09:51:23.680Z","0.1.1":"2026-09-03T10:25:24.071Z","0.1.2":"2026-09-03T11:09:53.184Z"},"bugs":{"url":"https://github.com/ph4310822/dsh-edex-mission-ui/issues"},"license":"MIT","homepage":"https://github.com/ph4310822/dsh-edex-mission-ui#readme","repository":{"type":"git","url":"git+https://github.com/ph4310822/dsh-edex-mission-ui.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"}