omp packages

pi-orca-bot-mention0.1.0

@-mention Orca bots from Pi running in an Orca terminal, like the Orca Chat UI's bot mentions.

pstanton237 Published 6 days ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-orca-bot-mention

Mention Orca bots with @ from Pi running in an Orca terminal, the way Orca's Chat UI lets you mention them.

In the Chat UI, picking a bot under @ adds a note to your message that tells the agent who the bot is and how to ask it. Pi running in a terminal tab has no such picker. This extension adds one.

Install

pi install npm:pi-orca-bot-mention

Then run /reload in Pi.

Use

  1. Type @ in Pi's editor. Your Orca bots show up above the usual file suggestions. Keep typing to filter, for example @pull.
  2. Pick one. The editor gets @bot:<name>, such as @bot:pull-request-review.
  3. Send the message. For each mentioned bot, the extension appends an <orca_context> block telling the agent what the bot is for and the exact command to ask it:
orca orchestration send --to bot:<id> --type question|handoff --subject … --body …

The agent decides whether to message the bot, and is told not to unless you asked. Nothing is sent to a bot by the extension itself. The wording follows Orca's own Chat UI bot mention context.

How it works

  • Bots come from orca bot list --json, cached for 60 seconds.
  • Paused bots and names that match no bot are ignored.
  • The command addresses the bot by id, so a bot name can't inject anything into it. Bot names and descriptions are flattened to one line and HTML-escaped inside the block.
  • The extension only loads inside an Orca terminal, detected by ORCA_TERMINAL_HANDLE or ORCA_PANE_KEY. Elsewhere it registers nothing.

Requirements

  • Orca with bots, and the orca CLI on PATH
  • Pi with extension autocomplete providers (ctx.ui.addAutocompleteProvider)

Limits

  • Bots are written as @bot:<slug>, not as chips.
  • Bots on paired computers and specific bot chats (which the Chat UI supports) are not offered.
  • pi -p "@bot:…" doesn't work: Pi reads a leading @ CLI argument as a file. Use the interactive editor.

Development

npm test

License

MIT