hermes-action-bridge 0.2.0

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/CONTRIBUTING.md +28 -0
  3. package/LICENSE +21 -0
  4. package/README.md +323 -0
  5. package/dist/adapters/hermes-cli.d.ts +3 -0
  6. package/dist/adapters/hermes-cli.js +48 -0
  7. package/dist/adapters/hermes-cli.js.map +1 -0
  8. package/dist/cli.d.ts +2 -0
  9. package/dist/cli.js +271 -0
  10. package/dist/cli.js.map +1 -0
  11. package/dist/config.d.ts +5 -0
  12. package/dist/config.js +172 -0
  13. package/dist/config.js.map +1 -0
  14. package/dist/context.d.ts +2 -0
  15. package/dist/context.js +15 -0
  16. package/dist/context.js.map +1 -0
  17. package/dist/doctor.d.ts +18 -0
  18. package/dist/doctor.js +77 -0
  19. package/dist/doctor.js.map +1 -0
  20. package/dist/install/file-edit.d.ts +12 -0
  21. package/dist/install/file-edit.js +18 -0
  22. package/dist/install/file-edit.js.map +1 -0
  23. package/dist/install/install-service.d.ts +26 -0
  24. package/dist/install/install-service.js +59 -0
  25. package/dist/install/install-service.js.map +1 -0
  26. package/dist/install/managed-file.d.ts +9 -0
  27. package/dist/install/managed-file.js +157 -0
  28. package/dist/install/managed-file.js.map +1 -0
  29. package/dist/install/marker-block.d.ts +10 -0
  30. package/dist/install/marker-block.js +61 -0
  31. package/dist/install/marker-block.js.map +1 -0
  32. package/dist/install/mcp-config.d.ts +15 -0
  33. package/dist/install/mcp-config.js +65 -0
  34. package/dist/install/mcp-config.js.map +1 -0
  35. package/dist/install/paths.d.ts +6 -0
  36. package/dist/install/paths.js +22 -0
  37. package/dist/install/paths.js.map +1 -0
  38. package/dist/install/templates.d.ts +16 -0
  39. package/dist/install/templates.js +86 -0
  40. package/dist/install/templates.js.map +1 -0
  41. package/dist/install/types.d.ts +18 -0
  42. package/dist/install/types.js +2 -0
  43. package/dist/install/types.js.map +1 -0
  44. package/dist/mcp-server.d.ts +1 -0
  45. package/dist/mcp-server.js +69 -0
  46. package/dist/mcp-server.js.map +1 -0
  47. package/dist/policy.d.ts +9 -0
  48. package/dist/policy.js +25 -0
  49. package/dist/policy.js.map +1 -0
  50. package/dist/prompt.d.ts +2 -0
  51. package/dist/prompt.js +34 -0
  52. package/dist/prompt.js.map +1 -0
  53. package/dist/run.d.ts +2 -0
  54. package/dist/run.js +27 -0
  55. package/dist/run.js.map +1 -0
  56. package/dist/status.d.ts +8 -0
  57. package/dist/status.js +10 -0
  58. package/dist/status.js.map +1 -0
  59. package/dist/types.d.ts +77 -0
  60. package/dist/types.js +2 -0
  61. package/dist/types.js.map +1 -0
  62. package/dist/version.d.ts +1 -0
  63. package/dist/version.js +12 -0
  64. package/dist/version.js.map +1 -0
  65. package/docs/ARCHITECTURE.md +105 -0
  66. package/docs/FUNCTIONAL-TESTS.md +97 -0
  67. package/examples/claude-code/CLAUDE.md +21 -0
  68. package/examples/claude-code/SKILL.md +55 -0
  69. package/examples/codex/AGENTS.md +21 -0
  70. package/examples/codex/SKILL.md +55 -0
  71. package/examples/configs/basic.yaml +36 -0
  72. package/examples/configs/strict.yaml +26 -0
  73. package/examples/configs/yolo.yaml +19 -0
  74. package/package.json +59 -0
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: hermes-action-bridge
3
+ description: Delegate external actions, Hermes skills, browser automation, messaging, cron jobs, and integrations to Hermes Agent through hermes-action. Use when a task needs capabilities outside the local coding session.
4
+ ---
5
+
6
+ # Hermes Action Bridge
7
+
8
+ Use this skill when a task needs capabilities outside the local coding session:
9
+ Hermes skills or memory, messaging platforms, browser automation, scheduled or
10
+ cron automation, external research, or any platform integration already
11
+ configured in Hermes Agent.
12
+
13
+ Do not reimplement those integrations here. Delegate them to Hermes through the
14
+ `hermes-action` CLI.
15
+
16
+ ## When to use
17
+
18
+ - The task requires a Hermes skill, tool, profile, or connected service.
19
+ - The task needs a real-world action that is not local code editing.
20
+ - The task needs research, messaging, browser, or scheduled automation Hermes owns.
21
+
22
+ ## Safe default
23
+
24
+ Ask Hermes for a plan first; it has no side effects:
25
+
26
+ ```bash
27
+ hermes-action run --mode plan "<describe what Hermes should do>"
28
+ ```
29
+
30
+ ## With context
31
+
32
+ Write a concise handoff to a file and pass it explicitly:
33
+
34
+ ```bash
35
+ hermes-action run --preset coding --context ./handoff.md "<request>"
36
+ ```
37
+
38
+ ## External side effects
39
+
40
+ For public posts, outbound email or messages, deletes, payments, credential
41
+ changes, or git pushes, require human approval:
42
+
43
+ ```bash
44
+ hermes-action run --mode request-approval "<request requiring side effects>"
45
+ ```
46
+
47
+ Never use `--yolo` unless the human explicitly asked for trusted local
48
+ execution. It bypasses only the bridge policy, not Hermes' own safety rules.
49
+
50
+ ## Verify setup
51
+
52
+ ```bash
53
+ hermes-action status
54
+ hermes-action run --dry-run --json "Return BRIDGE_OK only."
55
+ ```
@@ -0,0 +1,36 @@
1
+ runtime:
2
+ adapter: hermes-cli
3
+ command: hermes
4
+
5
+ defaults:
6
+ mode: plan
7
+ source: external-agent
8
+ max_turns: 30
9
+ preset: default
10
+
11
+ presets:
12
+ default:
13
+ description: No extra skills or toolsets. Uses the active Hermes profile.
14
+ skills: []
15
+ toolsets: []
16
+
17
+ research:
18
+ description: General research and synthesis.
19
+ skills: []
20
+ toolsets: [web, terminal, file]
21
+
22
+ coding:
23
+ description: Repository inspection and runtime validation.
24
+ skills: [developer-assurance-and-validation, runtime-debugging]
25
+ toolsets: [terminal, file]
26
+
27
+ policy:
28
+ yolo: false
29
+ require_approval_for:
30
+ - publish_external
31
+ - send_message
32
+ - send_email
33
+ - delete
34
+ - payment
35
+ - git_push
36
+ - credential_change
@@ -0,0 +1,26 @@
1
+ runtime:
2
+ adapter: hermes-cli
3
+ command: hermes
4
+
5
+ defaults:
6
+ mode: request-approval
7
+ source: external-agent
8
+ max_turns: 20
9
+ preset: default
10
+
11
+ presets:
12
+ default:
13
+ description: Safe default. Hermes can plan or prepare actions, but external effects require approval.
14
+ skills: []
15
+ toolsets: []
16
+
17
+ policy:
18
+ yolo: false
19
+ require_approval_for:
20
+ - publish_external
21
+ - send_message
22
+ - send_email
23
+ - delete
24
+ - payment
25
+ - git_push
26
+ - credential_change
@@ -0,0 +1,19 @@
1
+ runtime:
2
+ adapter: hermes-cli
3
+ command: hermes
4
+
5
+ defaults:
6
+ mode: execute
7
+ source: trusted-local-agent
8
+ max_turns: 60
9
+ preset: default
10
+
11
+ presets:
12
+ default:
13
+ description: Trusted local mode. Use only in isolated environments.
14
+ skills: []
15
+ toolsets: []
16
+
17
+ policy:
18
+ yolo: true
19
+ require_approval_for: []
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "hermes-action-bridge",
3
+ "version": "0.2.0",
4
+ "description": "Configurable bridge for external agents to delegate actions to Hermes Agent via CLI or MCP.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/TheBlueHouse75/hermes-action-bridge.git"
8
+ },
9
+ "bugs": {
10
+ "url": "https://github.com/TheBlueHouse75/hermes-action-bridge/issues"
11
+ },
12
+ "homepage": "https://github.com/TheBlueHouse75/hermes-action-bridge#readme",
13
+ "type": "module",
14
+ "bin": {
15
+ "hermes-action": "dist/cli.js"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md",
20
+ "CHANGELOG.md",
21
+ "CONTRIBUTING.md",
22
+ "docs/*.md",
23
+ "examples"
24
+ ],
25
+ "scripts": {
26
+ "build": "tsc -p tsconfig.json",
27
+ "postbuild": "node -e \"require('node:fs').chmodSync('dist/cli.js', 0o755)\"",
28
+ "dev": "tsx src/cli.ts",
29
+ "test": "vitest run",
30
+ "test:watch": "vitest",
31
+ "check": "npm run build && npm run test",
32
+ "prepublishOnly": "npm run check"
33
+ },
34
+ "keywords": [
35
+ "hermes-agent",
36
+ "codex",
37
+ "claude-code",
38
+ "mcp",
39
+ "agent",
40
+ "automation"
41
+ ],
42
+ "author": "Cyril Guilleminot",
43
+ "license": "MIT",
44
+ "engines": {
45
+ "node": ">=20"
46
+ },
47
+ "dependencies": {
48
+ "@modelcontextprotocol/sdk": "^1.29.0",
49
+ "commander": "^15.0.0",
50
+ "yaml": "^2.9.0",
51
+ "zod": "^4.4.3"
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "^25.0.3",
55
+ "tsx": "^4.22.4",
56
+ "typescript": "^6.0.3",
57
+ "vitest": "^4.1.9"
58
+ }
59
+ }