Skip to content

kyle-li-dev/pi-request-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-request-id

Pi package that displays the latest provider x-request-id response header below the editor and labels the matching assistant response in /tree.

The extension listens for Pi provider responses, reads the normalized x-request-id header, and updates a small widget below the input box. It also labels the corresponding assistant message entry as xrid:<request-id> so the request ID is visible in Pi's /tree selector. If a provider or transport does not expose that header, the extension leaves the current display unchanged and does not add a tree label.

If an entry already has a label, the extension preserves it and appends the request ID label. Existing xrid: labels written by this extension are replaced instead of duplicated.

Install

pi install https://github.com/kyle-li-dev/pi-request-id

For a private repository over SSH:

pi install git:git@github.com:kyle-li-dev/pi-request-id

Development

npm install
npm run typecheck
pi -e ./extensions/index.ts

After starting Pi with the extension, send a request and open /tree to confirm the assistant response entry shows xrid:<request-id>.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors