ponytail/tests
Peter 2ed6c52c9d
feat: add Grok Build native skills adapter (revive #561) (#661)
* feat: add Grok Build adapter (revive #561 on current main)

Thin Grok packaging under .grok-plugin/ with root plugin.json path
overrides (hooks + MCP). SessionStart/UserPromptSubmit/SubagentStart
reuse shared hooks/ponytail-*.js; mode state under GROK_PLUGIN_DATA.

Rebases the approach from #561 onto current main: keep Qoder detection
and output paths, add isGrok, export getGrokPluginDataDir, drop bash-only
exec from Grok hooks, and document install/enable/uninstall on the
front-page README (en/es/ko) plus agent-portability.

Direct install works today:
  grok plugin install DietrichGebert/ponytail --trust

Marketplace root source ("./") matches Claude; Grok's scanner still
rejects it (see xai-org/plugin-marketplace#123 class of bugs).

Co-authored-by: Vinícius Souza <souza.vinicius@bb.com.br>

* fix(grok): drop MCP, harden host detection and tests

Review feedback on #661:
- Remove MCP wiring (git install never installs ponytail-mcp deps; no
  other host ships MCP; hooks+skills cover always-on)
- Drop static plugin-index.json (optional catalog fluff)
- Clear GROK_PLUGIN_* in hooks.test.js so host suites cannot leak
- Exclusive isGrok after Copilot/Codex; state falls back to ROOT not ~/.claude
- Tighten Qoder regression assert; structural checks for plugin.json/hooks
- List Grok Build among skill-capable hosts in README

* refactor(grok): DRY — reuse Claude/Codex hooks map

Second review pass for #661:

- Delete .grok-plugin/hooks.json (near-copy of claude-codex-hooks.json).
  Root plugin.json points at the shared map; Grok sets CLAUDE_PLUGIN_ROOT.
- Drop getGrokPluginDataDir; inline GROK_PLUGIN_DATA || ROOT like other hosts.
- Grok uses Claude-compatible writeHookOutput (raw SessionStart, JSON
  SubagentStart) instead of a separate raw-only branch.
- Slim .grok-plugin/marketplace.json to match .claude-plugin.
- Tests: shared-map assert, SubagentStart JSON under Grok, Qoder isolation.

* fix(grok): use native skill activation

* chore: drop unrelated Qoder formatting

---------

Co-authored-by: Vinícius Souza <souza.vinicius@bb.com.br>
2026-08-08 00:44:01 +03:00
..
behavior.test.js feat: refine ruleset from a full-project field review (#39) 2026-06-15 02:02:50 +02:00
commands.test.js fix: ship the missing /ponytail-help command on Claude Code and OpenCode (#62) 2026-06-15 16:32:02 +02:00
copilot-plugin.test.js fix: copilot-plugin test checks all 6 command files (#393) 2026-06-30 00:21:09 +02:00
correctness.test.js Fix ponytail test coverage and metadata (#503) 2026-07-09 03:35:39 +02:00
gemini-extension.test.js Avoid Gemini loading Claude hook events (#139) 2026-06-19 00:24:43 +02:00
grok-plugin.test.js feat: add Grok Build native skills adapter (revive #561) (#661) 2026-08-08 00:44:01 +03:00
hermes-plugin.test.js Fix ponytail test coverage and metadata (#503) 2026-07-09 03:35:39 +02:00
hooks-windows.test.js fix: drop commandWindows from hooks.json for Claude.ai marketplace validation (#593) (#601) 2026-08-08 00:34:41 +03:00
hooks.test.js fix: detect VS Code Copilot via CLAUDE_PLUGIN_ROOT fallback (#528) (#579) 2026-08-08 00:37:09 +03:00
openclaw-skills.test.js feat: ship ponytail to OpenClaw (ClawHub skill package) (#102) 2026-06-16 13:35:35 +02:00
opencode-plugin.test.js fix: merge system entries in OpenCode plugin for Qwen compat (#296) (#536) 2026-07-09 17:53:06 +02:00
package-scripts.test.js Fix ponytail test coverage and metadata (#503) 2026-07-09 03:35:39 +02:00
package.test.js fix: ship scripts/uninstall.js in the npm package (#538) 2026-07-07 01:54:04 +02:00
qoder-plugin.test.js feat: add Qoder hooks support (UserPromptSubmit + PreToolUse) (#529) 2026-07-09 17:13:59 +02:00
uninstall.test.js fix: preserve combined statusline on uninstall (#550) 2026-07-09 11:48:37 +02:00