aiinfra-tools 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +267 -0
- package/LICENSE +202 -0
- package/NOTICE +8 -0
- package/README.md +105 -3
- package/bin/aiinfra.mjs +50 -0
- package/bin/report.mjs +177 -0
- package/fleetops/Dockerfile +18 -0
- package/fleetops/README.md +248 -0
- package/fleetops/deploy/compose/grafana/provisioning/dashboards/fleetops.yaml +6 -0
- package/fleetops/deploy/compose/grafana/provisioning/datasources/fleetops.yaml +11 -0
- package/fleetops/deploy/docker-compose.yml +36 -0
- package/fleetops/deploy/fleetops.yaml +75 -0
- package/fleetops/deploy/grafana-dashboard.json +266 -0
- package/fleetops/deploy/shadow-gate/argo-analysistemplate.yaml +34 -0
- package/fleetops/deploy/shadow-gate/argo-rollout-example.yaml +38 -0
- package/fleetops/deploy/shadow-gate/flagger-canary.yaml +34 -0
- package/fleetops/deploy/shadow-gate/judge.yaml +51 -0
- package/fleetops/deploy/shadow-gate/llmd-canary-example.yaml +35 -0
- package/fleetops/deploy/shadow-gate/podmonitor-vllm.yaml +20 -0
- package/fleetops/deploy/shadow-live/README.md +33 -0
- package/fleetops/deploy/shadow-live/kit.yaml +121 -0
- package/fleetops/deploy/shadow-live/load-canary.yaml +26 -0
- package/fleetops/deploy/shadow-live/run.sh +48 -0
- package/fleetops/docs/ADMISSION.md +147 -0
- package/fleetops/docs/AGENT.md +168 -0
- package/fleetops/docs/BENCHMARK.md +167 -0
- package/fleetops/docs/CALIBRATION.md +81 -0
- package/fleetops/docs/DATA-LAYER.md +97 -0
- package/fleetops/docs/FABRIC-STORAGE.md +91 -0
- package/fleetops/docs/GOODPUT.md +98 -0
- package/fleetops/docs/INCIDENTS.md +79 -0
- package/fleetops/docs/INSTALL.md +88 -0
- package/fleetops/docs/OPTIMIZE.md +98 -0
- package/fleetops/docs/POWER.md +127 -0
- package/fleetops/docs/RCA.md +63 -0
- package/fleetops/docs/SCALE.md +116 -0
- package/fleetops/docs/SDC.md +69 -0
- package/fleetops/docs/SERVICE.md +84 -0
- package/fleetops/docs/SERVING.md +184 -0
- package/fleetops/docs/SHADOW.md +250 -0
- package/fleetops/docs/SIGNALS.md +102 -0
- package/fleetops/docs/TRACING.md +70 -0
- package/fleetops/docs/TUNE.md +137 -0
- package/fleetops/docs/WORKLOADS.md +39 -0
- package/fleetops/examples/agent-policy.realtime.json +12 -0
- package/fleetops/examples/agent.example.json +11 -0
- package/fleetops/examples/dcgm.example.prom +3 -0
- package/fleetops/examples/gameday-plan.example.json +5 -0
- package/fleetops/examples/postmortems.example.jsonl +3 -0
- package/fleetops/examples/test-cluster.allow +4 -0
- package/fleetops/install/install-docker.sh +38 -0
- package/fleetops/install/install-k8s.sh +69 -0
- package/fleetops/install/install-serving.sh +75 -0
- package/fleetops/install/install.sh +138 -0
- package/fleetops/install/lib.sh +14 -0
- package/fleetops/install/uninstall.sh +17 -0
- package/fleetops/package.json +18 -0
- package/fleetops/src/adapters/fabric.mjs +129 -0
- package/fleetops/src/adapters/live.mjs +209 -0
- package/fleetops/src/adapters/logs.mjs +148 -0
- package/fleetops/src/adapters/nvsentinel.mjs +95 -0
- package/fleetops/src/adapters/philly.mjs +71 -0
- package/fleetops/src/adapters/public.mjs +61 -0
- package/fleetops/src/adapters/storage.mjs +79 -0
- package/fleetops/src/adapters/time.mjs +30 -0
- package/fleetops/src/adapters/topology.mjs +206 -0
- package/fleetops/src/admission.mjs +134 -0
- package/fleetops/src/agent.mjs +386 -0
- package/fleetops/src/api.mjs +95 -0
- package/fleetops/src/bench.mjs +411 -0
- package/fleetops/src/bundle.mjs +190 -0
- package/fleetops/src/calibrate.mjs +217 -0
- package/fleetops/src/detect.mjs +173 -0
- package/fleetops/src/duck-worker.mjs +68 -0
- package/fleetops/src/export.mjs +89 -0
- package/fleetops/src/goodput-report.mjs +91 -0
- package/fleetops/src/goodput.mjs +279 -0
- package/fleetops/src/incidents.mjs +188 -0
- package/fleetops/src/ingest.mjs +231 -0
- package/fleetops/src/inject.mjs +123 -0
- package/fleetops/src/lines.mjs +14 -0
- package/fleetops/src/live.mjs +222 -0
- package/fleetops/src/llmd.mjs +97 -0
- package/fleetops/src/memstore.mjs +49 -0
- package/fleetops/src/migrate.mjs +38 -0
- package/fleetops/src/optimize.mjs +266 -0
- package/fleetops/src/parquet-store.mjs +91 -0
- package/fleetops/src/power.mjs +207 -0
- package/fleetops/src/procure.mjs +67 -0
- package/fleetops/src/proto.mjs +133 -0
- package/fleetops/src/pull.mjs +83 -0
- package/fleetops/src/rca.mjs +703 -0
- package/fleetops/src/retention.mjs +95 -0
- package/fleetops/src/rollout.mjs +213 -0
- package/fleetops/src/schema.mjs +86 -0
- package/fleetops/src/sdc.mjs +114 -0
- package/fleetops/src/security.mjs +92 -0
- package/fleetops/src/serving.mjs +338 -0
- package/fleetops/src/shadow-canary.mjs +74 -0
- package/fleetops/src/shadow-gate.mjs +49 -0
- package/fleetops/src/shadow-prom.mjs +205 -0
- package/fleetops/src/shadow-replay.mjs +147 -0
- package/fleetops/src/shadow.mjs +291 -0
- package/fleetops/src/stats.mjs +14 -0
- package/fleetops/src/store.mjs +132 -0
- package/fleetops/src/traces.mjs +109 -0
- package/fleetops/src/tune.mjs +405 -0
- package/fleetops/src/workloads.mjs +110 -0
- package/fleetops/tests/fixtures/real/README.md +24 -0
- package/fleetops/tests/fixtures/real/philly-job-log-2017-11-07-15.json.gz +0 -0
- package/fleetops/tests/fixtures/real/philly-machine-list.csv +553 -0
- package/fleetops/tools/admit-node.sh +174 -0
- package/fleetops/tools/amd-admit.py +111 -0
- package/fleetops/tools/bench-scale.mjs +85 -0
- package/fleetops/tools/cmd/calibrate.mjs +61 -0
- package/fleetops/tools/cmd/capacity.mjs +116 -0
- package/fleetops/tools/cmd/common.mjs +32 -0
- package/fleetops/tools/cmd/data.mjs +343 -0
- package/fleetops/tools/cmd/help.mjs +243 -0
- package/fleetops/tools/cmd/incidents.mjs +216 -0
- package/fleetops/tools/cmd/rollout.mjs +122 -0
- package/fleetops/tools/cmd/server.mjs +122 -0
- package/fleetops/tools/cmd/serving.mjs +95 -0
- package/fleetops/tools/cmd/shadow.mjs +204 -0
- package/fleetops/tools/cmd/training.mjs +79 -0
- package/fleetops/tools/collect.sh +155 -0
- package/fleetops/tools/fetch-public-data.sh +45 -0
- package/fleetops/tools/fleetops.mjs +63 -0
- package/fleetops/tools/loop-demo.mjs +119 -0
- package/fleetops/tools/sdc-canary.py +82 -0
- package/fleetops/tools/workload-profile.mjs +51 -0
- package/fleetscope/README.md +285 -0
- package/fleetscope/build.mjs +38 -0
- package/fleetscope/dist/index.html +7399 -0
- package/fleetscope/docs/AGENTIC.md +89 -0
- package/fleetscope/docs/ASK.md +48 -0
- package/fleetscope/docs/CALIBRATION.md +39 -0
- package/fleetscope/docs/CI.md +33 -0
- package/fleetscope/docs/CLUSTER.md +63 -0
- package/fleetscope/docs/INFERENCE.md +31 -0
- package/fleetscope/docs/LIVE.md +34 -0
- package/fleetscope/docs/PHYSICS.md +34 -0
- package/fleetscope/docs/PLANNING.md +35 -0
- package/fleetscope/docs/SCENARIO.md +28 -0
- package/fleetscope/docs/SPEC.md +249 -0
- package/fleetscope/docs/STRESS.md +82 -0
- package/fleetscope/docs/TRACES.md +83 -0
- package/fleetscope/docs/TRAINING.md +42 -0
- package/fleetscope/docs/VALIDATION-AGENTIC.md +37 -0
- package/fleetscope/package.json +15 -0
- package/fleetscope/scenarios/README.md +18 -0
- package/fleetscope/scenarios/hybrid-chat/cluster.json +142 -0
- package/fleetscope/scenarios/hybrid-chat/graph.json +167 -0
- package/fleetscope/scenarios/hybrid-chat/kueue.yaml +42 -0
- package/fleetscope/scenarios/hybrid-chat/thresholds.json +6 -0
- package/fleetscope/src/agentic.js +288 -0
- package/fleetscope/src/ask.js +137 -0
- package/fleetscope/src/calibrate.js +211 -0
- package/fleetscope/src/cluster-ui.js +396 -0
- package/fleetscope/src/cluster.js +534 -0
- package/fleetscope/src/engine.js +1438 -0
- package/fleetscope/src/forecast.js +149 -0
- package/fleetscope/src/index.src.html +2589 -0
- package/fleetscope/src/inference-ui.js +227 -0
- package/fleetscope/src/ingest.js +351 -0
- package/fleetscope/src/optimize.js +169 -0
- package/fleetscope/src/plan.js +177 -0
- package/fleetscope/src/scenario.js +95 -0
- package/fleetscope/src/templates.js +111 -0
- package/fleetscope/src/training-ui.js +412 -0
- package/fleetscope/src/training.js +231 -0
- package/fleetscope/tools/agentic.mjs +148 -0
- package/fleetscope/tools/convert-trace.mjs +58 -0
- package/fleetscope/tools/fleetscope-plan.mjs +72 -0
- package/fleetscope/tools/fleetscope.mjs +150 -0
- package/fleetscope/tools/live-twin.mjs +88 -0
- package/fleetscope/tools/tracelab-data.mjs +27 -0
- package/gpu-health/README.md +215 -0
- package/gpu-health/deploy/rbac.yaml +57 -0
- package/gpu-health/docs/CONFIG.md +142 -0
- package/gpu-health/docs/FLAKINESS.md +60 -0
- package/gpu-health/docs/RISK-PREDICTION.md +120 -0
- package/gpu-health/docs/VENDORS.md +105 -0
- package/gpu-health/examples/config.example.json +19 -0
- package/gpu-health/package.json +20 -0
- package/gpu-health/src/actions.mjs +182 -0
- package/gpu-health/src/analyze.mjs +50 -0
- package/gpu-health/src/config.mjs +158 -0
- package/gpu-health/src/efficiency.mjs +135 -0
- package/gpu-health/src/executors.mjs +69 -0
- package/gpu-health/src/flakiness.mjs +342 -0
- package/gpu-health/src/fragmentation.mjs +49 -0
- package/gpu-health/src/health.mjs +274 -0
- package/gpu-health/src/ingest.mjs +128 -0
- package/gpu-health/src/platforms.mjs +109 -0
- package/gpu-health/src/report.mjs +103 -0
- package/gpu-health/src/risk.mjs +39 -0
- package/gpu-health/src/savings.mjs +84 -0
- package/gpu-health/src/server.mjs +106 -0
- package/gpu-health/src/synth.mjs +201 -0
- package/gpu-health/src/vendors.mjs +188 -0
- package/gpu-health/tools/gpu-health.mjs +239 -0
- package/gpu-health/tools/tpu-collect.py +93 -0
- package/gpu-ledger/README.md +116 -0
- package/gpu-ledger/docs/METHOD.md +146 -0
- package/gpu-ledger/examples/ledger.example.json +25 -0
- package/gpu-ledger/examples/people.example.csv +4 -0
- package/gpu-ledger/package.json +19 -0
- package/gpu-ledger/src/adapters.mjs +194 -0
- package/gpu-ledger/src/cloud.mjs +104 -0
- package/gpu-ledger/src/core.mjs +125 -0
- package/gpu-ledger/src/demo.mjs +55 -0
- package/gpu-ledger/src/export.mjs +97 -0
- package/gpu-ledger/src/html.mjs +59 -0
- package/gpu-ledger/src/insights.mjs +166 -0
- package/gpu-ledger/src/ledger.mjs +110 -0
- package/gpu-ledger/tools/ledger.mjs +124 -0
- package/harness-ledger/README.md +152 -0
- package/harness-ledger/docs/FORMATS.md +114 -0
- package/harness-ledger/docs/METHOD.md +133 -0
- package/harness-ledger/docs/VALIDATION-ECONOMICS.md +59 -0
- package/harness-ledger/docs/VALIDATION-SWEBENCH.md +26 -0
- package/harness-ledger/docs/VALIDATION-TRACELAB.md +56 -0
- package/harness-ledger/package.json +19 -0
- package/harness-ledger/src/demo.mjs +115 -0
- package/harness-ledger/src/economics.mjs +184 -0
- package/harness-ledger/src/gpu.mjs +80 -0
- package/harness-ledger/src/html.mjs +63 -0
- package/harness-ledger/src/importers.mjs +247 -0
- package/harness-ledger/src/ledger.mjs +128 -0
- package/harness-ledger/src/opencost.mjs +55 -0
- package/harness-ledger/src/outcomes.mjs +67 -0
- package/harness-ledger/src/prices.mjs +75 -0
- package/harness-ledger/src/record.mjs +52 -0
- package/harness-ledger/src/waste.mjs +136 -0
- package/harness-ledger/tools/harness-ledger.mjs +199 -0
- package/harness-ledger/tools/validate-economics.mjs +69 -0
- package/harness-ledger/tools/validate-swebench.mjs +57 -0
- package/harness-ledger/tools/validate-tracelab.mjs +74 -0
- package/hybrid-tracing/Dockerfile +9 -0
- package/hybrid-tracing/README.md +101 -0
- package/hybrid-tracing/clock/Dockerfile +8 -0
- package/hybrid-tracing/clock/check-clock.sh +61 -0
- package/hybrid-tracing/clock/neocloud-node.chrony.conf +24 -0
- package/hybrid-tracing/clock/onprem-node.chrony.conf +21 -0
- package/hybrid-tracing/clock/onprem-timeserver.chrony.conf +33 -0
- package/hybrid-tracing/clock/ptp4l.conf +13 -0
- package/hybrid-tracing/collector/agent.yaml +73 -0
- package/hybrid-tracing/collector/gateway-neocloud.yaml +67 -0
- package/hybrid-tracing/collector/gateway-onprem.yaml +63 -0
- package/hybrid-tracing/collector/tailsampler.yaml +69 -0
- package/hybrid-tracing/deploy/chrony-daemonset.yaml +59 -0
- package/hybrid-tracing/deploy/skew-corrector.yaml +57 -0
- package/hybrid-tracing/docs/CLOCKS.md +64 -0
- package/hybrid-tracing/docs/pipeline.svg +52 -0
- package/hybrid-tracing/package.json +17 -0
- package/hybrid-tracing/src/service.mjs +111 -0
- package/hybrid-tracing/src/skew.mjs +245 -0
- package/hybrid-tracing/src/synth.mjs +72 -0
- package/hybrid-tracing/tools/fix-skew.mjs +47 -0
- package/hybrid-tracing/tools/skew-corrector.mjs +39 -0
- package/inference-sizer/README.md +112 -0
- package/inference-sizer/build.mjs +29 -0
- package/inference-sizer/dist/index.html +1916 -0
- package/inference-sizer/docs/ACCELERATORS.md +62 -0
- package/inference-sizer/docs/METHOD.md +60 -0
- package/inference-sizer/docs/SPEC-SHEETS.md +76 -0
- package/inference-sizer/docs/VALIDATION-INFERENCEX.md +37 -0
- package/inference-sizer/package.json +16 -0
- package/inference-sizer/specs/example.json +43 -0
- package/inference-sizer/src/accelerators.js +172 -0
- package/inference-sizer/src/catalog.js +227 -0
- package/inference-sizer/src/fit-ui.js +113 -0
- package/inference-sizer/src/fit.js +118 -0
- package/inference-sizer/src/fleetscope.js +78 -0
- package/inference-sizer/src/index.src.html +250 -0
- package/inference-sizer/src/model.js +381 -0
- package/inference-sizer/src/ui.js +577 -0
- package/inference-sizer/tools/size.mjs +136 -0
- package/inference-sizer/tools/validate-agentx.mjs +110 -0
- package/inference-sizer/tools/validate-inferencex.mjs +132 -0
- package/mcp/README.md +54 -0
- package/mcp/server.mjs +207 -0
- package/package.json +80 -6
- package/schemas/README.md +35 -0
- package/schemas/aiinfra.report.schema.json +474 -0
- package/schemas/commands.mjs +44 -0
- package/schemas/fix-skew.demo.schema.json +171 -0
- package/schemas/fleetops.power.plan.schema.json +323 -0
- package/schemas/fleetops.power.report.schema.json +113 -0
- package/schemas/fleetops.rca.diagnose.schema.json +133 -0
- package/schemas/fleetops.serving.capacity.schema.json +226 -0
- package/schemas/fleetops.serving.fit.schema.json +321 -0
- package/schemas/fleetops.shadow.canary.schema.json +96 -0
- package/schemas/fleetops.shadow.compare.schema.json +266 -0
- package/schemas/fleetops.shadow.prom.schema.json +354 -0
- package/schemas/fleetscope.ask.schema.json +244 -0
- package/schemas/fleetscope.run.schema.json +72 -0
- package/schemas/fleetscope.templates.schema.json +25 -0
- package/schemas/gpu-health.analyze.schema.json +422 -0
- package/schemas/gpu-health.flakiness.schema.json +397 -0
- package/schemas/harness-ledger.economics.schema.json +567 -0
- package/schemas/ledger.insights.schema.json +89 -0
- package/schemas/ledger.report.schema.json +390 -0
- package/schemas/sizer.compare.schema.json +195 -0
- package/schemas/sizer.list.schema.json +188 -0
- package/schemas/sizer.plan.schema.json +176 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes. Versions follow [Semantic Versioning](https://semver.org/); before 1.0, a minor version may
|
|
4
|
+
change the `--json` output, and when it does the change is listed here (see [schemas/](schemas/README.md)).
|
|
5
|
+
|
|
6
|
+
## 0.3.0 (2026-11-26)
|
|
7
|
+
|
|
8
|
+
The loop now covers what a change costs, not only whether it works. There is a new tool for agent harnesses
|
|
9
|
+
(harness-ledger), shadow tests run inside the rollout tools (Argo Rollouts, llm-d canaries), and `aiinfra report`
|
|
10
|
+
puts plan → verify → account on one page. Coverage reaches AMD, AWS and Cloud TPU through one accelerator registry.
|
|
11
|
+
Some `--json` output changed; see "Changed (`--json`)" below.
|
|
12
|
+
|
|
13
|
+
- **New tool: harness-ledger.** It finds where agent harnesses (Claude Code, Codex, OpenTelemetry, Langfuse) waste
|
|
14
|
+
model resources, and works out the cost per successful task and when self-hosting pays.
|
|
15
|
+
- **Shadow tests in the rollout path:** `fleetops shadow` measures a change against the baseline at matched load.
|
|
16
|
+
`shadow prom` judges a canary from its own vLLM metrics, `shadow serve` acts as an Argo Rollouts analysis, and
|
|
17
|
+
`shadow canary` steps llm-d route weights, with every step up waiting for a person's approval.
|
|
18
|
+
- **Agentic sizing from real traces:** FleetScope profiles agentic workloads from TraceLab, AgentX and Mooncake
|
|
19
|
+
traces. It sizes them by the KV working set, and now by KV offload to host memory and tokens per MW too.
|
|
20
|
+
- **Integrations:** OpenCost prices, NVSentinel health events (gpu-health defers to it), and measured calibration
|
|
21
|
+
that feeds back into the sizer and the economics.
|
|
22
|
+
- **One accelerator registry** covering NVIDIA, AMD and Cloud TPU, read by every tool, with EKS and EFA on AWS and GKE
|
|
23
|
+
on GCP.
|
|
24
|
+
- **For agents and scripts:** 20 MCP tools and 21 JSON Schemas for `--json` output.
|
|
25
|
+
- **Quality:** ESLint on every PR, a weekly check that the supported formats are current, and branch-coverage
|
|
26
|
+
floors of 80% (77% for fleetops).
|
|
27
|
+
|
|
28
|
+
### Plan → verify → account, and what agents can call
|
|
29
|
+
|
|
30
|
+
- **`aiinfra report`:** one page from what the tools already keep in a fleetops store: the Inference Sizer's GPU count
|
|
31
|
+
before and after the store's calibration, the last shadow verdict with prediction against measurement, the last
|
|
32
|
+
promotion, each canary's share and any step waiting for a person's approval, and agent economics (cost per resolved
|
|
33
|
+
task, self-hosting sized with the calibration, tokens per MW). Text, Markdown or `--json`; `--demo` runs it on demo data.
|
|
34
|
+
It only reads. Shadow verdict records now keep the prediction rows so the report can show them.
|
|
35
|
+
- **KV offload in the sizing:** FleetScope's agentic sizing reports what LMCache-style offload to host memory would do:
|
|
36
|
+
the GPU count with the cold part of the KV working set in host memory (375 GB per GPU by default, AgentX's 3 TB per
|
|
37
|
+
8-GPU server), the PCIe reload time for a returning session, and PCIe load at the peak minute. `--kv-offload` (on
|
|
38
|
+
`harness-ledger economics` and `agentic.mjs size`) uses it when a reload fits the TTFT target and PCIe stays under 80%.
|
|
39
|
+
- **Tokens per megawatt** next to every agentic GPU count: peak output tokens/s over provisioned power, from published
|
|
40
|
+
node power, or the GPU's board power when none is published.
|
|
41
|
+
- **New `--json` contracts:** `fleetops.shadow.compare`, `fleetops.shadow.prom`, `fleetops.shadow.canary`,
|
|
42
|
+
`harness-ledger.economics` and `aiinfra.report`. `harness-ledger.economics` gains `offload`, `kvOffloadUsed` and
|
|
43
|
+
`power` under `selfHost`; `sizer.list` GPUs gain `tdpW`. Both changes add fields only.
|
|
44
|
+
- **MCP tools:** `shadow_verdict`, `canary_status`, `agent_economics` and `infra_report` (20 tools). None of them can
|
|
45
|
+
advance or approve a canary.
|
|
46
|
+
|
|
47
|
+
### Code quality
|
|
48
|
+
|
|
49
|
+
- **fleetops CLI split:** `tools/fleetops.mjs` now only parses and dispatches. Each area's commands live in
|
|
50
|
+
`tools/cmd/<area>.mjs`, unchanged.
|
|
51
|
+
- **Branch coverage floors** go from 70% to 80% in every package except fleetops, which goes to 77%. New tests cover
|
|
52
|
+
the least-covered branches, mostly the command lines and their errors.
|
|
53
|
+
- **Fixed:** gpu-ledger read a time it couldn't parse as NaN instead of no time, so a CSV row with an unreadable start
|
|
54
|
+
was kept. Such a row is now dropped.
|
|
55
|
+
|
|
56
|
+
- **Lint gate:** ESLint recommended rules on every pull request (`eslint.config.mjs`, `.github/workflows/lint.yml`),
|
|
57
|
+
starting from zero findings.
|
|
58
|
+
- **Removed:**
|
|
59
|
+
- four exports nothing used (`STATES`, `slowRequests`, `NUM_FIELDS`, `knownPlatforms`, and the helper behind the last);
|
|
60
|
+
- 20 unused locals and imports;
|
|
61
|
+
- a no-op self-assignment in the sizer UI;
|
|
62
|
+
- nine needless regex escapes;
|
|
63
|
+
- a literal byte-order mark in a regex.
|
|
64
|
+
- **One copy of fleetops' statistics:** `fleetops/src/stats.mjs` replaces 11 copies of median, percentile and the seeded
|
|
65
|
+
generator. Each copy's exact behaviour is kept, so no result moved.
|
|
66
|
+
- **Weekly format check:** `scripts/check-formats.mjs` and `.github/workflows/formats.yml`.
|
|
67
|
+
- Its first run found that the Argo Rollouts schemas had been vendored from v1.9.3 while v1.10.2 is current. They are
|
|
68
|
+
refreshed; the manifests pass both.
|
|
69
|
+
|
|
70
|
+
### Integrations, and the loop between the tools
|
|
71
|
+
|
|
72
|
+
- **OpenCost:** `harness-ledger economics --opencost FILE|URL` (its `/inferenceCost/total`) or `--opencost-prom URL` (its
|
|
73
|
+
`llm_cost_per_million_tokens` and `llm_cache_savings_fraction` gauges) uses OpenCost's measured self-host cost per token.
|
|
74
|
+
- The price per delivered input token is turned into a price per prefilled token.
|
|
75
|
+
- A deployment whose label join failed (zero cost) is explained, not used.
|
|
76
|
+
- **NVSentinel:** `fleetops data import nvsentinel` reads its health events: event-exporter CloudEvents, datastore
|
|
77
|
+
documents, HealthEventResource objects and bare events, with XIDs classified through gpu-health's table.
|
|
78
|
+
- Root-cause analysis uses them as evidence.
|
|
79
|
+
- gpu-health defers to NVSentinel on nodes it is remediating: one informational `external-remediation` action instead
|
|
80
|
+
of a second repair ladder (`deferToExternal: false` to turn this off).
|
|
81
|
+
- **llm-d canaries:** `fleetops shadow canary start|advance|approve|status` steps two LLMInferenceServices' route weights
|
|
82
|
+
by the judge's verdict.
|
|
83
|
+
- A rollback is written at once with `--live`.
|
|
84
|
+
- A step up is queued for a person and written only after `approve --by NAME`.
|
|
85
|
+
- Manifests and patches are checked against KServe's CRD schema (v1alpha2, vendored).
|
|
86
|
+
- **The loop:**
|
|
87
|
+
- `shadow plan` records its configs.
|
|
88
|
+
- `compare` and `prom` with `--plan` refit the candidate's sizer efficiencies when the prediction was off by more than
|
|
89
|
+
15%, into `<store>/calibration/sizer.json`. `shadow plan`, `inference-sizer --calibration` and
|
|
90
|
+
`harness-ledger economics --calibration` read it.
|
|
91
|
+
- Promoted changes are recorded in `<store>/shadow/promoted.jsonl`.
|
|
92
|
+
- `shadow prom` takes `--plan` (prediction vs measurement, as `compare` does).
|
|
93
|
+
- **Recovered:** the agent unit economics work (`harness-ledger economics`, `validate-economics`) had been merged into a
|
|
94
|
+
feature branch instead of `main`; it is included here.
|
|
95
|
+
|
|
96
|
+
### Shadow upgrades inside the rollout tools
|
|
97
|
+
|
|
98
|
+
- **`fleetops shadow prom`** judges a canary from its own per-version vLLM metrics in Prometheus (llm-d controlled
|
|
99
|
+
deployments' `llm_isvc_name`, Argo Rollouts' pod-template hash, Flagger's `app` label, or any label matchers).
|
|
100
|
+
- Each canary window is compared with what the baseline shows at the same load per engine, prompt length and cache
|
|
101
|
+
hit (a local fit on the baseline's own history), with an interval and a verdict. Per-version means are shown beside it.
|
|
102
|
+
- On synthetic canaries at half or a quarter of the baseline's load, the effect lands within 1 point of the truth
|
|
103
|
+
where per-version means say 20–33% faster.
|
|
104
|
+
- `--save` keeps the series; `--file` reruns them; `--demo` shows the trap.
|
|
105
|
+
- **`fleetops shadow serve`** runs the judge as a service for Argo Rollouts (an AnalysisTemplate web metric) and
|
|
106
|
+
Flagger (`rollout` and `confirm-promotion` webhooks): promote, rollback or wait.
|
|
107
|
+
- Manifests in `fleetops/deploy/shadow-gate/`, checked against the real CRD schemas (Argo Rollouts v1.10.2, Flagger
|
|
108
|
+
v1.45.0, Prometheus Operator v0.95.2).
|
|
109
|
+
- Selectors are checked as label matchers before any query is built.
|
|
110
|
+
- **`fleetops/deploy/shadow-live/`**: a kit that runs everything on three 1-GPU L4 nodes against real vLLM engines
|
|
111
|
+
(paired replay, an in-cluster canary, the judge). Not run yet.
|
|
112
|
+
- `shadow replay` takes `--max-isl` / `--max-osl` to fit long agent sessions to a small model's context.
|
|
113
|
+
- `compare`'s decision logic is shared (`decide`); with no latency data at all the decision is now *extend the test*,
|
|
114
|
+
not *promote*.
|
|
115
|
+
|
|
116
|
+
### Agent unit economics
|
|
117
|
+
|
|
118
|
+
- **`harness-ledger economics`** reports what a successful agent task costs and what changing it is worth.
|
|
119
|
+
- **Cost per resolved task** and the share of spend on failed tasks.
|
|
120
|
+
- **Fixes ranked by what they save per resolved task:** each waste cause, plus a step cap computed exactly from each
|
|
121
|
+
session's calls.
|
|
122
|
+
- **Self-hosting vs the API:** the same workload sized with the Inference Sizer for an open model (FleetScope's agentic
|
|
123
|
+
path: real arrivals, cache reuse, the KV working set; busiest day's peak).
|
|
124
|
+
- The result is a break-even GPU-hour price per resolved task, and with `--gpu-rate` the volume from which
|
|
125
|
+
self-hosting wins.
|
|
126
|
+
- `--self-host-price` uses measured prices (OpenCost) instead.
|
|
127
|
+
- `--self-host-success-rate` and `--token-scale` (calls per task) carry the open model's quality and verbosity.
|
|
128
|
+
- **`validate-economics`** on TraceLab's workload with SWE-bench success rates (`docs/VALIDATION-ECONOMICS.md`; a CI job
|
|
129
|
+
in `validate.yml`).
|
|
130
|
+
- One team's volume (about $5,600 a month of API spend at Sonnet-class prices) favours the API: self-hosting pays only
|
|
131
|
+
below about $0.25–0.50 a GPU-hour.
|
|
132
|
+
- At $3 a GPU-hour on B200, self-hosting wins from about 8–16× that volume.
|
|
133
|
+
- Half the calls exceed the open models' 128k context.
|
|
134
|
+
|
|
135
|
+
### Shadow upgrades
|
|
136
|
+
|
|
137
|
+
- **`fleetops shadow`** measures an infra change before it ships, against the baseline at matched load.
|
|
138
|
+
- **`plan`:** predicts the effect with the Inference Sizer and sizes the test.
|
|
139
|
+
- **`replay`:** the same recorded sessions to two OpenAI-compatible endpoints at the same moments, paired per
|
|
140
|
+
request, with session prefixes kept for the prefix cache. Dry run unless `--live`.
|
|
141
|
+
- **`answers`:** greedy tokens and log-probs compared on a prompt set.
|
|
142
|
+
- **`compare`:** stratified by calls in flight, prompt length and cache hit (or paired), with bootstrap intervals,
|
|
143
|
+
verdicts against gates, the naive number beside each, errors, tokens/s per GPU, $ per M tokens, infra signals, and
|
|
144
|
+
prediction vs measurement.
|
|
145
|
+
- **`baseline` / `watch`:** drift of a service against its own saved history.
|
|
146
|
+
- Design and architecture: `fleetops/docs/SHADOW.md`. Tested on synthetic arms and mock endpoints; not yet run against
|
|
147
|
+
live engines.
|
|
148
|
+
|
|
149
|
+
### Agentic workloads from real traces
|
|
150
|
+
|
|
151
|
+
- **FleetScope agentic profiles** (`fleetscope/tools/agentic.mjs`, `aiinfra agentic`):
|
|
152
|
+
- fit a profile of how agent sessions behave from a real trace: TraceLab, AgentX "weka", Mooncake, harness-ledger
|
|
153
|
+
records or your own CSV/JSONL;
|
|
154
|
+
- generate sessions from a profile at any load;
|
|
155
|
+
- measure what a workload asks of a fleet: prefill after cache reuse, and the KV working set idle sessions hold;
|
|
156
|
+
- size GPUs for both compute and KV.
|
|
157
|
+
|
|
158
|
+
On TraceLab, a profile fitted on 70% of sessions matches the held-out 30% within 1–8% on cache hit, call rate, and
|
|
159
|
+
prefill and output rates. The KV working set comes out 28% low. Flat ISL/OSL sizing of the same calls asks for 440
|
|
160
|
+
GPUs where 40 do. Ingest reads AgentX, Mooncake and TraceLab traces, with prefix reuse computed from block hashes.
|
|
161
|
+
- **harness-ledger on real data:**
|
|
162
|
+
- TraceLab importer, streamed;
|
|
163
|
+
- `--prices relative`;
|
|
164
|
+
- a report on 8,058 real sessions: 22% of spend avoidable, mostly caches expiring in pauses.
|
|
165
|
+
- **harness-ledger outcomes:** cost per successful task, spend on failures, and what call caps would save. On SWE-bench
|
|
166
|
+
Verified across 11 models, 39% of spend goes to unresolved tasks, and caps save about 1% at no more than one point
|
|
167
|
+
of success lost.
|
|
168
|
+
- **Sizer against AgentX** (`inference-sizer/tools/validate-agentx.mjs`): scores and calibrates the sizer on AgentX
|
|
169
|
+
agentic results. It needs the results downloaded from InferenceX.
|
|
170
|
+
- Fix: price prefixes match only at a version boundary (`gpt-5` no longer prices `gpt-5.5`).
|
|
171
|
+
|
|
172
|
+
### New tool: harness-ledger
|
|
173
|
+
|
|
174
|
+
- **Where agent harnesses waste model resources, across harnesses.** Importers for Claude Code transcripts, Codex
|
|
175
|
+
rollouts, OpenTelemetry GenAI and OpenInference spans, and Langfuse exports write one `llm_call` record per model
|
|
176
|
+
call, with token meanings normalized (cached tokens are part of input). Checks: prompt-cache misses and expiries,
|
|
177
|
+
unread cache writes, oversized tool output carried forward, repeated tool calls, retry loops, failed calls, unused
|
|
178
|
+
tool definitions, and routing calls on a large model (as candidates). Costs come from a price file, the harness's
|
|
179
|
+
recorded cost, or, for self-hosted models, GPU time joined from vLLM's request spans through gpu-ledger's rate card.
|
|
180
|
+
Cost per successful task with `--outcomes`. Records keep counts, names and hashes only.
|
|
181
|
+
`harness-ledger scan | report | import | demo`, HTML report, skill. Token accounting matches ccusage on its Codex
|
|
182
|
+
fixtures.
|
|
183
|
+
|
|
184
|
+
Vendor-neutral: the tools no longer assume NVIDIA.
|
|
185
|
+
|
|
186
|
+
### New
|
|
187
|
+
|
|
188
|
+
- **One accelerator registry** (`inference-sizer/src/accelerators.js`), read by the sizer, FleetScope, the power model,
|
|
189
|
+
serving manifests and Kubernetes inventory; vendor adapters replace the NVIDIA-or-AMD branches. MI325X, MI355X and
|
|
190
|
+
GB300 NVL72 added. InferenceX validation covers 198 runs (#66).
|
|
191
|
+
- **GCP and Cloud TPU:**
|
|
192
|
+
- TPU v6e, v5p and TPU7x in the sizer.
|
|
193
|
+
- Serving on GKE TPUs: `vllm/vllm-tpu`, `google.com/tpu`, slice selected by accelerator and topology labels.
|
|
194
|
+
- GKE nodes give project, zone and instance, and scheduled host maintenance is a planned event.
|
|
195
|
+
- gpu-health `gke` and `gcp` platforms: GKE's `fault-behavior` label, `report-host-as-faulty` on Compute Engine.
|
|
196
|
+
- Cloud Monitoring accelerator metrics as telemetry.
|
|
197
|
+
- `gpu-ledger import gcp-billing`.
|
|
198
|
+
- `fleetops procure gcp-calendar`.
|
|
199
|
+
- **AWS:**
|
|
200
|
+
- EFA `hw_counters` read as fabric counters. Retransmits, timeouts and impaired connections count as congestion; RDMA errors as errors.
|
|
201
|
+
- EKS nodes give their instance, zone and GPU (from the instance type); the node monitoring agent's `AcceleratedHardwareReady` conditions become faults.
|
|
202
|
+
- gpu-health platforms: reboot and replace act on the EC2 instance; reseat is never proposed. `autoRepair` leaves both to EKS.
|
|
203
|
+
- `gpu-ledger import aws-cur`: GPU-hours priced at what the CUR says was billed.
|
|
204
|
+
- Capacity Blocks and spot in FleetScope's buy-vs-rent plan. `fleetops procure aws-blocks` prints the read-only lookup.
|
|
205
|
+
- **AMD at parity:**
|
|
206
|
+
- `amd-smi-static` and `amd-smi-topology` importers (inventory, IFWI, PCI → GPU map; XGMI links);
|
|
207
|
+
- `collect.sh` and `admit-node.sh` on AMD nodes (amd-smi, ROCm Validation Suite, rccl-tests);
|
|
208
|
+
- RCCL version and HIP error lines in job logs.
|
|
209
|
+
|
|
210
|
+
### Changed (`--json`)
|
|
211
|
+
|
|
212
|
+
- `sizer list`: `nodeKW` is optional; `kind` and `vendorKey` added.
|
|
213
|
+
- `admit check`: the diagnostic check is named `diag` (was `dcgm-diag`). Its evidence names the record (`dcgm-diag` or
|
|
214
|
+
`rvs-diag`). A policy that still lists `dcgm-diag` in `require` keeps working.
|
|
215
|
+
|
|
216
|
+
## 0.2.0 (2026-11)
|
|
217
|
+
|
|
218
|
+
From four utilities to one loop: Observe → Diagnose → Simulate → Approve → Optimize → Verify. First release as an npm
|
|
219
|
+
package and under a license.
|
|
220
|
+
|
|
221
|
+
### New
|
|
222
|
+
|
|
223
|
+
- **fleetops**, the shared data layer under the tools (#29–#42):
|
|
224
|
+
- one store for device telemetry, inventory, jobs, serving metrics and changes;
|
|
225
|
+
- adapters for exporters, Kubernetes, Slurm, change feeds and public traces;
|
|
226
|
+
- a Parquet/DuckDB backend measured at 90M samples;
|
|
227
|
+
- remote_write and OTLP ingest.
|
|
228
|
+
- **Root-cause analysis:** rules with evidence, CUSUM detection, a benchmark with fault injection, and logs, topology and versions as signals (#31, #34, #35).
|
|
229
|
+
- **Incidents as a workflow:** lifecycle, paging (dry run unless `--live`), timelines and drafted postmortems (#39).
|
|
230
|
+
- **Run as a service:** read API, scoped tokens and tenants, audit, redaction, on-prem installers (#40, #41).
|
|
231
|
+
- **Live agent** that mitigates within approval guardrails, with a dashboard (#42).
|
|
232
|
+
- **Training goodput** and silent-data-corruption detection (#44); **workload profiles** for agents, chat, RAG and others (#45).
|
|
233
|
+
- **Tuning from real traces:** recommendations with predicted impact, then measured before/after (#46).
|
|
234
|
+
- **Serving:** what fits on given GPUs, what a model carries, one-command vLLM deployment (#47), and disaggregated prefill/decode on llm-d (#52).
|
|
235
|
+
- **gpu-ledger**, GPU billing and waste for any cluster:
|
|
236
|
+
- GPU-hours and cost by org, team, person and use case, split into useful, idle and lost;
|
|
237
|
+
- ranked savings with owners;
|
|
238
|
+
- FOCUS 1.4 export (#48).
|
|
239
|
+
- **Node admission and staged rollouts** with canary-vs-control checks (#49), **power-aware capacity** with per-job GPU power caps (#50), and **fabric and storage stalls** traced to the port and storage target (#51).
|
|
240
|
+
- **Inference Sizer:** a "What fits on my GPUs" view (#53).
|
|
241
|
+
- **gpu-health:** early-warning signals, risk triage, multi-vendor support (AMD, SambaNova, Cloud TPU), and a flakiness dashboard (#23, #25–#28).
|
|
242
|
+
- **Distribution:**
|
|
243
|
+
- the `aiinfra-tools` npm package and `aiinfra` command (#56);
|
|
244
|
+
- an MCP server (`aiinfra mcp`) for any MCP client (#60);
|
|
245
|
+
- JSON Schemas for the `--json` output (#59);
|
|
246
|
+
- a GitHub Pages site with both browser tools (#57);
|
|
247
|
+
- `aiinfra demo`, the whole loop on a real cluster week (#61);
|
|
248
|
+
- a devcontainer.
|
|
249
|
+
|
|
250
|
+
### Changed
|
|
251
|
+
|
|
252
|
+
- **Apache-2.0 license**, with NOTICE, SECURITY.md and CONTRIBUTING.md (#55).
|
|
253
|
+
- The skills' copies of the tools are regenerated on `main`; pull requests no longer commit them (#56).
|
|
254
|
+
- Rollout checks allow for clustered failures: on a real Philly week, false alarms fell from 17 in 100 to 1 (#49 follow-up).
|
|
255
|
+
- Power predictions flag caps under 60% of the limit, where measured slowdowns are more than twice the model's (#50 follow-up).
|
|
256
|
+
|
|
257
|
+
### Fixed
|
|
258
|
+
|
|
259
|
+
- `fleetops` and `gpu-health` did nothing when run through npm's bin symlinks (#56).
|
|
260
|
+
- Fabric: CNP and ECN counters are read from RDMA `hw_counters` (they aren't `ethtool -S` names). Lustre files read from `/proc` get their target from the path. Lustre `punch` and `sync` no longer count as writes (#51 follow-up).
|
|
261
|
+
- The collector test no longer depends on the host's network cards (#54).
|
|
262
|
+
|
|
263
|
+
See [docs/RESULTS.md](docs/RESULTS.md) for what is checked against real data.
|
|
264
|
+
|
|
265
|
+
## 0.1.0 (2026-11-20)
|
|
266
|
+
|
|
267
|
+
FleetScope, the Inference Sizer, hybrid-tracing and gpu-health, packaged as Agent Skills and a Claude Code plugin.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
AIInfraTools
|
|
2
|
+
Copyright 2026 the AIInfraTools authors
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
Third-party data used by the tests, each under its own license, is listed with its source in
|
|
7
|
+
fleetops/tests/fixtures/real/README.md. Public traces and benchmark results that the tools download at run time
|
|
8
|
+
(Philly, Alibaba, MLPerf and others) are not part of this repository and keep their own licenses.
|
package/README.md
CHANGED
|
@@ -1,3 +1,105 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# AIInfraTools
|
|
2
|
+
|
|
3
|
+
**Open tools for running GPU fleets.** Size LLM inference, simulate capacity on a hybrid fleet, find why jobs fail or
|
|
4
|
+
slow down, cap power, deploy on llm-d, and charge back every GPU-hour. Node.js and nothing else; dry run by default,
|
|
5
|
+
and a person approves every change. Each tool is also an Agent Skill.
|
|
6
|
+
|
|
7
|
+
**Try it in your browser:** [Inference Sizer](https://hardikashah-eng.github.io/AIInfraTools/sizer/) ·
|
|
8
|
+
[What fits on my GPUs](https://hardikashah-eng.github.io/AIInfraTools/sizer/#fit) ·
|
|
9
|
+
[FleetScope](https://hardikashah-eng.github.io/AIInfraTools/fleetscope/) ·
|
|
10
|
+
**Install:** `npx aiinfra-tools --help`
|
|
11
|
+
|
|
12
|
+
Each tool lives in its own folder with its own README. What has been checked against real data, and what it found:
|
|
13
|
+
[docs/RESULTS.md](docs/RESULTS.md).
|
|
14
|
+
|
|
15
|
+
| Tool | What it is |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| [fleetscope](fleetscope/) | Node editor for replaying LLM traffic on a modelled hybrid (on-prem + neocloud) GPU fleet |
|
|
18
|
+
| [inference-sizer](inference-sizer/) | How many GPUs, in what layout, serve a model at TTFT/TPOT targets; exports to FleetScope |
|
|
19
|
+
| [gpu-health](gpu-health/) | Health checks, utilization and savings for GPU fleets, with suggested fixes that run once approved |
|
|
20
|
+
| [hybrid-tracing](hybrid-tracing/) | One trace view across on-prem and neocloud: shared clock reference (PTP/chrony), collector tiers, and clock-skew correction for traces |
|
|
21
|
+
| [gpu-ledger](gpu-ledger/) | GPU billing and waste for any cluster: GPU-hours and cost by org, team, person and use case, split into useful, idle and lost; where to save, with an owner; serving cost per token; FOCUS export. Runs on its own against Kubernetes, DCGM, vLLM, Slurm, OpenCost or CSV |
|
|
22
|
+
| [harness-ledger](harness-ledger/) | Where agent harnesses waste model resources, across harnesses: reads Claude Code and Codex logs, OpenTelemetry GenAI and OpenInference spans and Langfuse exports into one record per model call, then finds cache misses, bloated and repeated tool output, retry loops and unused tools, in tokens, dollars and (with vLLM traces) GPU time; cost per resolved task, fixes ranked by what they save per resolved task, and where self-hosting an open model beats the API. Keeps counts only, never prompt or tool text |
|
|
23
|
+
| [fleetops](fleetops/) | The shared data layer under the tools: one store of device telemetry, inventory, jobs, serving metrics and changes, with adapters for exporters, Kubernetes, Slurm, change feeds and public traces. On top of it: root-cause analysis, incidents, and a live agent and dashboard that mitigate training and inference issues in real time within approval guardrails |
|
|
24
|
+
|
|
25
|
+
Where this is going, from four utilities to one Observe → Diagnose → Simulate → Approve → Optimize → Verify loop: [ROADMAP.md](ROADMAP.md).
|
|
26
|
+
|
|
27
|
+
## Install
|
|
28
|
+
|
|
29
|
+
Node.js 22+ and nothing else:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx aiinfra-tools demo # the whole loop on a real week of a GPU cluster
|
|
33
|
+
npx aiinfra-tools --help # every tool, one entry point
|
|
34
|
+
npx aiinfra-tools sizer --model llama33-70b --gpu H100 # or: npm i -g aiinfra-tools, then `aiinfra sizer …`
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Every command takes `--json`; the output of the ones agents rely on is described by [JSON Schemas](schemas/README.md). Or open the repository in a Codespace ([.devcontainer](.devcontainer/devcontainer.json)): `aiinfra` is ready on the path. The package also installs each tool's own command (`fleetops`, `gpu-health`, `gpu-ledger`, `harness-ledger`, `inference-sizer`,
|
|
38
|
+
`fleetscope`, `fix-skew`). Or clone the repository and run any tool from its folder.
|
|
39
|
+
|
|
40
|
+
## The loop in one command
|
|
41
|
+
|
|
42
|
+
`aiinfra demo` runs Observe → Diagnose → Simulate → Approve → Optimize → Verify on one real week of the Microsoft
|
|
43
|
+
Philly GPU cluster (552 machines, 23,000 jobs), which ships with the repository. It finds the week's failure spikes
|
|
44
|
+
and pins most of them on one team's jobs, flags ten flaky nodes, plans a fix worth about $6,900 a week, and stops for
|
|
45
|
+
you to approve it. Then `aiinfra demo --continue DIR` rolls it out (dry run) and checks the flaky nodes on the second
|
|
46
|
+
half of the week, which they fail at 3.3× the expected rate. It prints every command, so you can repeat each step on
|
|
47
|
+
your own data.
|
|
48
|
+
|
|
49
|
+
## One page: plan → verify → account
|
|
50
|
+
|
|
51
|
+
`aiinfra report --store DIR --model M --gpu G --harness PATH` puts the loop on one page, from what the tools already
|
|
52
|
+
keep: the Inference Sizer's GPU count before and after the store's measured calibration, the last shadow verdict with
|
|
53
|
+
prediction against measurement, each canary's share and any step waiting for a person's approval, and what an agent
|
|
54
|
+
workload costs per resolved task at the API and self-hosted (with tokens per megawatt). `--format md` writes Markdown,
|
|
55
|
+
`--json` the [schema'd](schemas/aiinfra.report.schema.json) record; `aiinfra report --demo` runs it on demo data. It
|
|
56
|
+
only reads.
|
|
57
|
+
|
|
58
|
+
## Use with LLMs (skills)
|
|
59
|
+
|
|
60
|
+
Each tool is also packaged as an [Agent Skill](https://agentskills.io/specification) in [skills/](skills/). A skill tells a model when to use the tool, what to ask the user, which command to run and how to read the JSON it returns. A model can then answer questions like "how many H200s for Llama 70B at 25 ms TPOT?", "what if the cloud link drops to 25 Gbps?", "why do our cross-site traces look out of order?" "which GPUs should we pull before they fail?" or "why did half the training jobs fail last night?" by running the tools itself.
|
|
61
|
+
|
|
62
|
+
| Skill | Wraps |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| [inference-sizer](skills/inference-sizer/SKILL.md) | GPU count, layout and cost for TTFT/TPOT targets; compares GPUs |
|
|
65
|
+
| [fleetscope](skills/fleetscope/SKILL.md) | Stress suite, plain-English what-ifs and scenario diffs on a hybrid fleet |
|
|
66
|
+
| [hybrid-tracing](skills/hybrid-tracing/SKILL.md) | Clock-skew correction for traces, clock checks, and collector, chrony and PTP configs |
|
|
67
|
+
| [gpu-health](skills/gpu-health/SKILL.md) | Health, efficiency and savings analysis, with an approval queue the model may not approve on its own |
|
|
68
|
+
| [gpu-ledger](skills/gpu-ledger/SKILL.md) | Chargeback and showback, useful vs idle vs lost GPU-hours per team and person, ranked savings, cost per million tokens, FOCUS export |
|
|
69
|
+
| [harness-ledger](skills/harness-ledger/SKILL.md) | Where Claude Code, Codex and OTel- or Langfuse-traced agents waste tokens and money, by cause, harness, tool and session, with fixes; GPU time for self-hosted models |
|
|
70
|
+
| [fleetops](skills/fleetops/SKILL.md) | Root-cause analysis of job failures, latency and training slowdowns; a live agent that mitigates within approval guardrails, with a live dashboard; incidents, postmortems, accuracy backtests and game days; installers |
|
|
71
|
+
|
|
72
|
+
**MCP.** Every tool is also an MCP tool, for Claude Desktop, Cursor and any other MCP client:
|
|
73
|
+
`claude mcp add aiinfra -- npx -y aiinfra-tools mcp`. It only reads, simulates and plans. See [mcp/README.md](mcp/README.md).
|
|
74
|
+
|
|
75
|
+
**Claude Code.** The repo is a plugin marketplace:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
/plugin marketplace add hardikashah-eng/AIInfraTools
|
|
79
|
+
/plugin install aiinfra-tools@aiinfra-tools
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
On Claude Code 2.1.275 or later, this one step does both: `/plugin install aiinfra-tools --marketplace hardikashah-eng/AIInfraTools`.
|
|
83
|
+
|
|
84
|
+
**Claude apps.** Run `node scripts/build-skills.mjs --zip dist/skills`, or download the `skills` artifact from the Skills CI run. Then upload a zip as a custom skill in Claude's settings. Each zip is self-contained.
|
|
85
|
+
|
|
86
|
+
**Other agents.** Any agent that reads Agent Skills can use the skill folders as they are: copy them into its skills directory. For an agent without skill support, every command the skills use takes `--json` and returns one JSON object, so you can wrap each one as a function tool.
|
|
87
|
+
|
|
88
|
+
All skills need Node.js 22+ and nothing else.
|
|
89
|
+
|
|
90
|
+
**Changing a tool.** The skill folders carry copies of the tools' code (`scripts/`), docs (`references/`) and examples (`assets/`), so each folder works on its own. After editing a tool, run `node scripts/build-skills.mjs`. CI fails while the copies are out of date. `node --test scripts/test-skills.mjs` runs each skill's documented commands from an isolated copy.
|
|
91
|
+
|
|
92
|
+
## Workload Intelligence
|
|
93
|
+
|
|
94
|
+
FleetOps now includes a [workload profiler](fleetops/docs/WORKLOADS.md) with six synthetic application profiles (coding agents, chat, report generation, RAG search, deep research and autocomplete). It can inspect existing request logs or FleetOps request records, report workload fingerprints and export privacy-conscious session replay CSVs compatible with FleetScope.
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
node fleetops/tools/workload-profile.mjs list
|
|
98
|
+
node fleetops/tools/workload-profile.mjs synth --type coding-agent --sessions 100 --out agent.csv
|
|
99
|
+
node fleetops/tools/workload-profile.mjs inspect --input gateway.jsonl --type coding-agent --out profile.json --csv replay.csv
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## License
|
|
103
|
+
|
|
104
|
+
[Apache License 2.0](LICENSE). Test data from other projects keeps its own license; see [NOTICE](NOTICE).
|
|
105
|
+
To report a security problem, see [SECURITY.md](SECURITY.md); to contribute, [CONTRIBUTING.md](CONTRIBUTING.md).
|
package/bin/aiinfra.mjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// aiinfra: one entry point for every AIInfraTools command. `aiinfra <tool> [args…]` runs that tool's CLI with the
|
|
3
|
+
// same Node.js, so `npx aiinfra-tools sizer --help` works with nothing installed but Node 22+.
|
|
4
|
+
import { spawnSync } from 'node:child_process';
|
|
5
|
+
import fs from 'node:fs';
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
|
|
9
|
+
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
10
|
+
export const TOOLS = {
|
|
11
|
+
sizer: { file: 'inference-sizer/tools/size.mjs', what: 'GPU count, layout and cost for a model at TTFT/TPOT targets' },
|
|
12
|
+
fleetscope: { file: 'fleetscope/tools/fleetscope.mjs', what: 'replay LLM traffic on a modelled hybrid GPU fleet; what-ifs and stress suites' },
|
|
13
|
+
'fleetscope-plan': { file: 'fleetscope/tools/fleetscope-plan.mjs', what: 'capacity plans from FleetScope scenarios' },
|
|
14
|
+
'live-twin': { file: 'fleetscope/tools/live-twin.mjs', what: 'forecast traffic from Prometheus and predict SLO breaches' },
|
|
15
|
+
agentic: { file: 'fleetscope/tools/agentic.mjs', what: 'agentic workload profiles from real agent traces: synthesize sessions, size GPUs (compute and KV working set)' },
|
|
16
|
+
'convert-trace': { file: 'fleetscope/tools/convert-trace.mjs', what: 'convert public traces to FleetScope workloads' },
|
|
17
|
+
'gpu-health': { file: 'gpu-health/tools/gpu-health.mjs', what: 'health checks, utilization and savings, fixes behind an approval queue' },
|
|
18
|
+
ledger: { file: 'gpu-ledger/tools/ledger.mjs', what: 'GPU-hours and cost by org, team and person: useful, idle, lost; FOCUS export' },
|
|
19
|
+
'harness-ledger': { file: 'harness-ledger/tools/harness-ledger.mjs', what: 'where agent harnesses (Claude Code, Codex, OTel, Langfuse) waste tokens, dollars and GPU time' },
|
|
20
|
+
fleetops: { file: 'fleetops/tools/fleetops.mjs', what: 'shared data layer, root-cause analysis, incidents, tuning, power, admission, serving' },
|
|
21
|
+
'workload-profile': { file: 'fleetops/tools/workload-profile.mjs', what: 'profile and synthesize application workloads (agents, chat, RAG…)' },
|
|
22
|
+
'fix-skew': { file: 'hybrid-tracing/tools/fix-skew.mjs', what: 'estimate and remove clock skew from OTLP traces' },
|
|
23
|
+
'skew-corrector': { file: 'hybrid-tracing/tools/skew-corrector.mjs', what: 'run the skew-corrector service' },
|
|
24
|
+
mcp: { file: 'mcp/server.mjs', what: 'run every tool as an MCP server over stdio (for Claude, Cursor and other MCP clients)' },
|
|
25
|
+
};
|
|
26
|
+
TOOLS.report = { file: 'bin/report.mjs', what: 'plan → verify → account on one page: sizer prediction, last shadow verdict, calibration, agent economics' };
|
|
27
|
+
TOOLS.demo = { file: 'fleetops/tools/loop-demo.mjs', what: 'the whole loop on a real week of a GPU cluster: observe → diagnose → simulate → approve → optimize → verify' };
|
|
28
|
+
const ALIASES = { 'inference-sizer': 'sizer', 'gpu-ledger': 'ledger', harness: 'harness-ledger', tracing: 'fix-skew', 'hybrid-tracing': 'fix-skew' };
|
|
29
|
+
const version = () => JSON.parse(fs.readFileSync(path.join(ROOT, 'package.json'), 'utf8')).version;
|
|
30
|
+
|
|
31
|
+
function help() {
|
|
32
|
+
const w = Math.max(...Object.keys(TOOLS).map(k => k.length));
|
|
33
|
+
return `aiinfra ${version()}: AIInfraTools from one command\n\nUsage: aiinfra <tool> [args…] (every tool takes --help; most take --json)\n\n` +
|
|
34
|
+
Object.entries(TOOLS).map(([k, t]) => ` ${k.padEnd(w)} ${t.what}`).join('\n') +
|
|
35
|
+
`\n\nAlso: aiinfra version · aiinfra path <tool> (the script's path, for skills and scripts)\nDocs: https://github.com/hardikashah-eng/AIInfraTools\n`;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function main(argv) {
|
|
39
|
+
const [cmd, ...rest] = argv;
|
|
40
|
+
if (!cmd || cmd === '--help' || cmd === '-h' || cmd === 'help') { process.stdout.write(help()); return 0; }
|
|
41
|
+
if (cmd === 'version' || cmd === '--version' || cmd === '-v') { process.stdout.write(version() + '\n'); return 0; }
|
|
42
|
+
if (cmd === 'path') { const t = TOOLS[ALIASES[rest[0]] || rest[0]]; if (!t) { process.stderr.write(`unknown tool: ${rest[0]}\n`); return 2; } process.stdout.write(path.join(ROOT, t.file) + '\n'); return 0; }
|
|
43
|
+
const t = TOOLS[ALIASES[cmd] || cmd];
|
|
44
|
+
if (!t) { process.stderr.write(`aiinfra: unknown tool "${cmd}"\n\n${help()}`); return 2; }
|
|
45
|
+
const r = spawnSync(process.execPath, [path.join(ROOT, t.file), ...rest], { stdio: 'inherit' });
|
|
46
|
+
if (r.error) { process.stderr.write(`aiinfra: ${r.error.message}\n`); return 1; }
|
|
47
|
+
return r.status === null ? 1 : r.status;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (process.argv[1] && fs.realpathSync(process.argv[1]) === fileURLToPath(import.meta.url)) process.exit(main(process.argv.slice(2)));
|