This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * pi-skill-dollar - `$` autocomplete shortcut for pi Agent Skills. | |
| */ | |
| import { type ExtensionAPI, type SlashCommandInfo } from "@earendil-works/pi-coding-agent"; | |
| // Use pi's bundled TUI so this patches the actual Editor class in use. | |
| import { Editor, fuzzyFilter } from "/Users/maxktz/.nvm/versions/node/v23.7.0/lib/node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-tui/dist/index.js"; | |
| import type { AutocompleteItem, AutocompleteProvider, AutocompleteSuggestions } from "/Users/maxktz/.nvm/versions/node/v23.7.0/lib/node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-tui/dist/index.js"; | |
| const DIRECT_DOLLAR_SKILL_RE = /^\$([a-z0-9][a-z0-9-]{0,63})(?:\s+(.*))?\s*$/; | |
| const PATCH_VERSION_SYMBOL = Symbol.for("pi-skill-dollar.editor-patch-version"); |
OlderNewer