palmier 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ import { Cursor } from "./cursor.js";
14
14
  import { Kiro } from "./kiro.js";
15
15
  import { Cline } from "./cline.js";
16
16
  import { Qoder } from "./qoder.js";
17
+ import { Hermes } from "./hermes.js";
17
18
  const agentRegistry = {
18
19
  claude: new ClaudeAgent(),
19
20
  gemini: new GeminiAgent(),
@@ -31,6 +32,7 @@ const agentRegistry = {
31
32
  kiro: new Kiro(),
32
33
  cline: new Cline(),
33
34
  qoder: new Qoder(),
35
+ hermes: new Hermes(),
34
36
  };
35
37
  const agentLabels = {
36
38
  claude: "Claude Code",
@@ -46,9 +48,10 @@ const agentLabels = {
46
48
  deepagents: "Deep Agents CLI",
47
49
  aider: "Aider",
48
50
  cursor: "Cursor CLI",
49
- kiro: "Kiro",
50
- cline: "Cline",
51
- qoder: "Qoder",
51
+ kiro: "Kiro CLI",
52
+ cline: "Cline CLI",
53
+ qoder: "Qoder CLI",
54
+ hermes: "Hermes Agent",
52
55
  };
53
56
  export async function detectAgents() {
54
57
  const detected = [];
@@ -0,0 +1,9 @@
1
+ import type { ParsedTask, RequiredPermission } from "../types.js";
2
+ import type { AgentTool, CommandLine } from "./agent.js";
3
+ export declare class Hermes implements AgentTool {
4
+ supportsPermissions: boolean;
5
+ getPlanGenerationCommandLine(prompt: string): CommandLine;
6
+ getTaskRunCommandLine(task: ParsedTask, followupPrompt?: string, extraPermissions?: RequiredPermission[] | "yolo"): CommandLine;
7
+ init(): Promise<boolean>;
8
+ }
9
+ //# sourceMappingURL=hermes.d.ts.map
@@ -0,0 +1,35 @@
1
+ import { execSync } from "child_process";
2
+ import { getAgentInstructions } from "./shared-prompt.js";
3
+ import { SHELL } from "../platform/index.js";
4
+ export class Hermes {
5
+ supportsPermissions = false;
6
+ getPlanGenerationCommandLine(prompt) {
7
+ return {
8
+ command: "hermes",
9
+ args: ["chat", "-q", prompt],
10
+ };
11
+ }
12
+ getTaskRunCommandLine(task, followupPrompt, extraPermissions) {
13
+ const yolo = extraPermissions === "yolo";
14
+ const prompt = followupPrompt ?? (getAgentInstructions(task.frontmatter.id, yolo || !this.supportsPermissions) + "\n\n" + (task.body || task.frontmatter.user_prompt));
15
+ const args = ["chat"];
16
+ if (yolo) {
17
+ args.push("--trust-all-tools");
18
+ }
19
+ if (followupPrompt) {
20
+ args.push("--continue");
21
+ } // continue mode for followups
22
+ args.push("-q", prompt);
23
+ return { command: "hermes", args };
24
+ }
25
+ async init() {
26
+ try {
27
+ execSync("hermes --version", { stdio: "ignore", shell: SHELL });
28
+ }
29
+ catch {
30
+ return false;
31
+ }
32
+ return true;
33
+ }
34
+ }
35
+ //# sourceMappingURL=hermes.js.map