{"_id":"@danielng23/dsh-studio-host-system-metrics","name":"@danielng23/dsh-studio-host-system-metrics","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@danielng23/dsh-studio-host-system-metrics","description":"Studio console host metrics Remote: system overview, processes, filesystem, command execution","version":"0.1.0","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ph4310822/dsh-edex-studio-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":"23d45f68e526c526c935b1068494ae002ecb4af5","_id":"@danielng23/dsh-studio-host-system-metrics@0.1.0","bugs":{"url":"https://github.com/ph4310822/dsh-edex-studio-ui/issues"},"homepage":"https://github.com/ph4310822/dsh-edex-studio-ui#readme","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-nVJH2spuaV1Mhq7vMbnR31h8yNU3Q7i+LjxJ1M0JIdkfbAmZV1UN7c9CIih8oEMOFAH34rPWvSrpw+8Ts6di9A==","shasum":"07f3f219cdad982dc83b76ec1a0c966c1521922b","tarball":"https://registry.npmjs.org/@danielng23/dsh-studio-host-system-metrics/-/dsh-studio-host-system-metrics-0.1.0.tgz","fileCount":14,"unpackedSize":90224,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDUBqbij5pOMrH/igIfavCBKTn7nZj0AMHodNLzHUl9XgIgYINZAKTPDlycWKywI9rUsIBwcGbtxyqAywKlEpGZs4o="}]},"_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-studio-host-system-metrics_0.1.0_1788908342902_0.7873632107359265"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-08T22:59:02.720Z","0.1.0":"2026-09-08T22:59:03.058Z","modified":"2026-09-08T22:59:03.301Z"},"maintainers":[{"name":"danielng23","email":"ph4310822@gmail.com"}],"description":"Studio console host metrics Remote: system overview, processes, filesystem, command execution","homepage":"https://github.com/ph4310822/dsh-edex-studio-ui#readme","repository":{"type":"git","url":"git+https://github.com/ph4310822/dsh-edex-studio-ui.git","directory":"packages/host/system-metrics"},"bugs":{"url":"https://github.com/ph4310822/dsh-edex-studio-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-da0c286b6c2dbf7dc195c19b266db90b"}