feat: add Factory Droid adapter, mode shortcuts, and custom skills#397
Open
SparshGarg999 wants to merge 1 commit into
Open
feat: add Factory Droid adapter, mode shortcuts, and custom skills#397SparshGarg999 wants to merge 1 commit into
SparshGarg999 wants to merge 1 commit into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description: Host Integration (Factory Droid), Mode Toggle Keybindings, and Custom Skills
This Pull Request implements support for Factory Droid adapter, introduces mode toggle keybindings / shortcut actions, and adds three new commands/skills:
/ponytail-jedi(SOTA research),/ponytail-plan(minimalist planning), and/ponytail-ask(refining requirements).Detailed Changes & Issue Resolution
1. Mode Toggle / Cycle Keybindings (Resolves #145)
lite,full,ultra,off) required typing slash commands every time, which interrupts developer flow.pi-extensionutilizing namespaced identifiers. Users can now bind these actions to key combinations in theirkeybindings.jsonconfigurations.ponytail:cycleMode(cyclesoff → lite → full → ultra → off)ponytail:modeLiteponytail:modeFullponytail:modeUltraponytail:modeOff2. Factory Droid Adapter Support (Resolves #167)
.factory-plugin/plugin.jsoncontaining the plugin manifest.hooks/factory-hooks.jsonmapping Droid lifecycle hooks (SessionStart,SubagentStart,UserPromptSubmit) using the${DROID_PLUGIN_ROOT}env variable.hooks/ponytail-runtime.jsto detectisDroidand resolve the state file path to~/.factory/.ponytail-active(orDROID_CONFIG_DIR).systemMessageandhookSpecificOutput) for Droid sessions.docs/agent-portability.md.3. SOTA research:
/ponytail-jediand/ponytail-lightsaber(Resolves #240)skills/ponytail-jedi/SKILL.mddefining instructions to search, rank, clone, modify, extract, or connect to world-class trusted open-source repositories.commands/ponytail-jedi.tomlandcommands/ponytail-lightsaber.tomlcommand templates..opencode/command/ponytail-jedi.mdand.opencode/command/ponytail-lightsaber.md.ponytail-jediandponytail-lightsaberinpi-extension/index.jsandplugin.yaml.4. Planning & Questioning:
/ponytail-planand/ponytail-ask(Resolves #243)skills/ponytail-plan/SKILL.md(creating clean, minimal, YAGNI implementation plans or auditing existing plans).skills/ponytail-ask/SKILL.md(refining tasks and clarifying ambiguity with targeted questions)..tomlcommand templates and OpenCode command.mdfiles.pi-extension/index.jsandplugin.yaml.skills/ponytail-help/SKILL.mdquick reference card.Verification & Testing
Automated Unit Tests
tests/factory-plugin.test.jsvalidating manifest fields, hook paths, and all required command.tomlfile locations.tests/hooks.test.jsverifying Droid environment detection (isDroid), correct state directory location, and stdout JSON hook formatting.pi-extension/test/extension.test.jsadding tests for registered shortcuts, command listings, and mocking the shortcut registrar.npm testinsidepi-extension/:16 tests, 16 passed, 0 failednode scripts/build-openclaw-skills.js: successfully rebuilt all OpenClaw skill copies.node scripts/check-rule-copies.js: successfully validated that rule copies are consistent.