@siuver/omp-tool-kit
v0.1.4
Published
A practical oh-my-pi extension toolkit with custom slash commands and utilities.
Maintainers
Readme
@siuver/omp-tool-kit
An npm-style oh-my-pi toolkit plugin for practical custom slash commands and interactive safety utilities.
Included Commands
| Command | Purpose |
| --- | --- |
| /undo | Removes the latest completed user prompt branch from the active OMP session tree after confirmation. |
| /tool-kit:setup | Shows recommended companion plugins, skips only candidates already on the latest npm version, and installs or updates the selected ones. |
Included Utilities
The toolkit asks for confirmation before the default Esc interrupt key aborts a running agent response; choosing No keeps the response running, and idle Esc behavior remains unchanged.
/undo Behavior
/undo finds the latest completed user prompt on the active session branch, asks for confirmation, removes that prompt and descendant response/session entries, moves the active leaf back to the prompt's parent, rewrites the session file, and reloads the transcript so removed messages disappear from the UI immediately.
The command requires interactive UI because it always prompts before mutating session history.
/tool-kit:setup Behavior
/tool-kit:setup displays recommended companion OMP plugins that are either not installed or installed below the latest npm version. Toggle the candidates you want, confirm, and the toolkit runs omp plugin install <package> for each selected plugin.
Current companion candidates:
| Package | Purpose |
| --- | --- |
| context-mode | Saves context window with sandboxed execution, FTS5 search, and session continuity. |
Restart omp after setup so newly installed plugin extensions and slash commands are loaded.
Install
omp plugin install @siuver/omp-tool-kitRestart omp after installation. omp plugin list should show this package under npm Plugins; then /undo and /tool-kit:setup should appear in the slash command list. During a running response, pressing Esc should show an interrupt confirmation first.
Local Development
From the repository root:
bun run check
omp plugin link ./plugins/tool-kitRestart omp after linking.
Changelog
See CHANGELOG.md for release notes included in the npm package.
Why npm-style install
This plugin depends on ExtensionAPI and must be loaded through package.json omp.extensions. OMP's marketplace install path can list marketplace plugins, but it does not currently import TS extension factories from omp.extensions, so marketplace install alone will not load this toolkit.
