Download ponytail/tests/grok-plugin.test.js from smlflg/CodingAgent: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/smlflg/CodingAgent/resolve/main/ponytail/tests/grok-plugin.test.js
- Command line
-
hf download hf://smlflg/CodingAgent/ponytail/tests/grok-plugin.test.js
-
curl -L -o grok-plugin.test.js https://huggingface.co/smlflg/CodingAgent/resolve/main/ponytail/tests/grok-plugin.test.js
1.2 kB
| // Grok Build loads Ponytail through its native skill system. Lifecycle-hook | |
| // stdout is passive in Grok, so this adapter must not register any hooks. | |
| const test = require('node:test'); | |
| const assert = require('node:assert/strict'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const root = path.join(__dirname, '..'); | |
| test('Grok manifest is a skill-only adapter with no lifecycle hooks', () => { | |
| const manifest = JSON.parse(fs.readFileSync(path.join(root, 'plugin.json'), 'utf8')); | |
| assert.equal(manifest.name, 'ponytail'); | |
| assert.equal(manifest.hooks, undefined); | |
| assert.equal(manifest.mcpServers, undefined); | |
| assert.ok(!fs.existsSync(path.join(root, 'hooks', 'hooks.json'))); | |
| assert.ok(!fs.existsSync(path.join(root, '.grok-plugin', 'hooks.json'))); | |
| }); | |
| test('Ponytail skill describes every coding task for Grok auto-invocation', () => { | |
| const skill = fs.readFileSync(path.join(root, 'skills', 'ponytail', 'SKILL.md'), 'utf8'); | |
| assert.match(skill, /Use on ANY\s+coding task/i); | |
| assert.match(skill, /writing, adding, refactoring, fixing, reviewing, or designing\s+code/i); | |
| assert.doesNotMatch(skill, /disable-model-invocation:\s*true/i); | |
| }); | |