Skip to content

fix(pulse): declare yaml dependency in Observability package.json#1396

Closed
badosanjos wants to merge 1 commit into
danielmiessler:mainfrom
badosanjos:fix/observability-yaml-dep
Closed

fix(pulse): declare yaml dependency in Observability package.json#1396
badosanjos wants to merge 1 commit into
danielmiessler:mainfrom
badosanjos:fix/observability-yaml-dep

Conversation

@badosanjos

Copy link
Copy Markdown

Fixes #1390.

observability.ts imports yaml but the package is not declared in PULSE/Observability/package.json (nor PULSE/package.json). On a fresh v6.0.0 install the Observability module fails to resolve (Cannot find package 'yaml'), so the daemon runs but every dashboard page and /api/* route it serves returns 404.

Fix: declare yaml in dependencies (pinned ^2.6.0; verified working with 2.9.x).

Verified on Ubuntu 24.04 + bun 1.2.x: after bun install, Pulse logs Observability module loaded and / + /api/telos/overview return 200.

observability.ts imports 'yaml' but the package was never declared, so on
a fresh install the Observability module fails to resolve and every
dashboard page and /api/* route it serves returns 404 while the daemon
itself runs.

Fixes danielmiessler#1390
@danielmiessler

Copy link
Copy Markdown
Owner

Thanks a lot for this, @badosanjos — really appreciate you flagging it and taking the time to write the fix.

When I went back through the current source, this turns out to already be handled: yaml dependency already declared in current Pulse Observability package.json. The system has moved a fair bit since you opened this (the PAI → LifeOS rename and a few subsystem rewrites), so the gap you spotted has since been closed independently.

Going to close this one out on that basis — but genuinely grateful for the contribution. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v6.0.0: Observability module fails to load — 'yaml' imported but not declared in package.json (dashboard/APIs 404)

2 participants