Skip to content

fix: Restore missing observability.ts lib for pai-hook-system#410

Closed
ajbmachon wants to merge 1 commit intodanielmiessler:mainfrom
ajbmachon:fix/restore-observability-lib
Closed

fix: Restore missing observability.ts lib for pai-hook-system#410
ajbmachon wants to merge 1 commit intodanielmiessler:mainfrom
ajbmachon:fix/restore-observability-lib

Conversation

@ajbmachon
Copy link
Copy Markdown

Summary

  • Restores lib/observability.ts that was accidentally deleted during the kai-* to pai-* rebrand
  • The file was deleted in commit 0faf5e4 but not re-added under the new naming convention
  • This file is required by security-validator.ts and other hooks

Problem

Without this file, hooks fail with:

error: Cannot find module './lib/observability'

Fix

Restored the file from git history (commit 1c34d06).

Test plan

  • Verified hooks load without module resolution errors
  • Confirmed observability functions are available

The observability.ts file was accidentally deleted during the kai-* to pai-*
rebrand in commit 0faf5e4. The file was deleted but not re-added under the
new pai- naming convention.

This file is required by security-validator.ts and other hooks that import
from './lib/observability'. Without it, hooks fail with:
  "Cannot find module './lib/observability'"

Restored from git history (commit 1c34d06).
@peterlynch
Copy link
Copy Markdown

is this a dupe of #368 ?

@ajbmachon
Copy link
Copy Markdown
Author

Yes you are right. Sorry I should have checked this more carefully!

@ajbmachon ajbmachon closed this Jan 16, 2026
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.

2 participants