feat: complete native Hermes Agent integration with translation and primer support

This commit is contained in:
RUFFY-369
2026-04-20 14:49:37 +05:30
parent 5bd2822f12
commit 94fa5c8bce
2 changed files with 59 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
#!/usr/bin/env node
import { readFileSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { dirname, join } from 'node:path';
import { Cli, Builtins } from 'clipanion';
import { setVersion, setAgentCount } from '@skillkit/cli';
import { getAdapterCount } from '@skillkit/agents';
import {
InstallCommand,
SyncCommand,
ReadCommand,
InitCommand,
TranslateCommand,
RecommendCommand,
GenerateCommand,
PrimerCommand,
MemoryCommand,
ServeCommand,
MeshCommand,
} from '@skillkit/cli';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const packageJsonPath = join(__dirname, '../package.json');
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
const version = packageJson.version || '1.22.1';
setVersion(version);
setAgentCount(getAdapterCount());
const cli = new Cli({
binaryLabel: 'skillkit-test',
binaryName: 'skillkit-test',
binaryVersion: version,
});
cli.register(Builtins.HelpCommand);
cli.register(Builtins.VersionCommand);
// Only register the commands we need for Hermes verification
cli.register(InstallCommand);
cli.register(SyncCommand);
cli.register(ReadCommand);
cli.register(InitCommand);
cli.register(TranslateCommand);
cli.register(RecommendCommand);
cli.register(GenerateCommand);
cli.register(PrimerCommand);
cli.register(MemoryCommand);
cli.register(ServeCommand);
cli.register(MeshCommand);
cli.runExit(process.argv.slice(2));
+6
View File
@@ -203,4 +203,10 @@ export const AGENT_INSTRUCTION_TEMPLATES: Record<string, AgentInstructionTemplat
format: 'markdown',
sectionOrder: ['overview', 'stack', 'commands', 'conventions', 'guidelines'],
},
'hermes': {
agent: 'hermes',
filename: 'AGENTS.md',
format: 'xml',
sectionOrder: ['overview', 'stack', 'commands', 'conventions', 'structure', 'guidelines'],
},
};