hail-hydra-cc 2.3.2 → 2.4.1

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.
package/src/files.js CHANGED
@@ -1,106 +1,110 @@
1
- 'use strict';
2
-
3
- /**
4
- * All Hydra framework files are bundled inside the npm package under the
5
- * files/ directory. Reading them at require-time guarantees:
6
- * - No network requests — works fully offline
7
- * - No write-time escaping headaches for markdown content
8
- * - Standard npm bundling via the "files" field in package.json
9
- */
10
-
11
- const fs = require('fs');
12
- const path = require('path');
13
-
14
- const FILES_DIR = path.join(__dirname, '..', 'files');
15
-
16
- function readBundled(relPath) {
17
- return fs.readFileSync(path.join(FILES_DIR, relPath), 'utf8');
18
- }
19
-
20
- const agents = {
21
- 'hydra-scout': {
22
- content: readBundled('agents/hydra-scout.md'),
23
- model: 'Haiku',
24
- display: 'hydra-scout (Haiku) — Codebase exploration',
25
- },
26
- 'hydra-runner': {
27
- content: readBundled('agents/hydra-runner.md'),
28
- model: 'Haiku',
29
- display: 'hydra-runner (Haiku) — Test execution & validation',
30
- },
31
- 'hydra-scribe': {
32
- content: readBundled('agents/hydra-scribe.md'),
33
- model: 'Haiku',
34
- display: 'hydra-scribe (Haiku) — Documentation writing',
35
- },
36
- 'hydra-coder': {
37
- content: readBundled('agents/hydra-coder.md'),
38
- model: 'Sonnet',
39
- display: 'hydra-coder (Sonnet) — Code implementation',
40
- },
41
- 'hydra-analyst': {
42
- content: readBundled('agents/hydra-analyst.md'),
43
- model: 'Sonnet',
44
- display: 'hydra-analyst (Sonnet) — Code review & debugging',
45
- },
46
- 'hydra-guard': {
47
- content: readBundled('agents/hydra-guard.md'),
48
- model: 'Haiku',
49
- display: 'hydra-guard (Haiku) — Auto-protection & safety',
50
- },
51
- 'hydra-git': {
52
- content: readBundled('agents/hydra-git.md'),
53
- model: 'Haiku',
54
- display: 'hydra-git (Haiku) — Git operations',
55
- },
56
- 'hydra-sentinel-scan': {
57
- content: readBundled('agents/hydra-sentinel-scan.md'),
58
- model: 'Haiku',
59
- display: 'hydra-sentinel-scan (Haiku) — Fast integration sweep',
60
- },
61
- 'hydra-sentinel': {
62
- content: readBundled('agents/hydra-sentinel.md'),
63
- model: 'Sonnet',
64
- display: 'hydra-sentinel (Sonnet) — Deep integration analysis',
65
- },
66
- 'hydra-preflight': {
67
- content: readBundled('agents/hydra-preflight.md'),
68
- model: 'Haiku',
69
- display: 'hydra-preflight (Haiku) — Environment preflight check',
70
- },
71
- };
72
-
73
- const skill = readBundled('SKILL.md');
74
-
75
- const references = {
76
- 'routing-guide': readBundled('references/routing-guide.md'),
77
- 'model-capabilities': readBundled('references/model-capabilities.md'),
78
- };
79
-
80
- const commands = {
81
- 'update': readBundled('commands/hydra/update.md'),
82
- 'status': readBundled('commands/hydra/status.md'),
83
- 'help': readBundled('commands/hydra/help.md'),
84
- 'config': readBundled('commands/hydra/config.md'),
85
- 'guard': readBundled('commands/hydra/guard.md'),
86
- 'quiet': readBundled('commands/hydra/quiet.md'),
87
- 'verbose': readBundled('commands/hydra/verbose.md'),
88
- 'report': readBundled('commands/hydra/report.md'),
89
- 'map': readBundled('commands/hydra/map.md'),
90
- 'preflight': readBundled('commands/hydra/preflight.md'),
91
- 'stats': readBundled('commands/hydra/stats.md'),
92
- };
93
-
94
- const hooks = {
95
- 'hydra-check-update': readBundled('hooks/hydra-check-update.js'),
96
- 'hydra-statusline': readBundled('hooks/hydra-statusline.js'),
97
- 'hydra-token-math': readBundled('hooks/hydra-token-math.js'),
98
- 'hydra-auto-guard': readBundled('hooks/hydra-auto-guard.js'),
99
- 'hydra-notify': readBundled('hooks/hydra-notify.js'),
100
- };
101
-
102
- const binaryHooks = {
103
- 'hydra-task-complete.wav': path.join(FILES_DIR, 'hooks', 'hydra-task-complete.wav'),
104
- };
105
-
106
- module.exports = { agents, skill, references, commands, hooks, binaryHooks };
1
+ 'use strict';
2
+
3
+ /**
4
+ * All Hydra framework files are bundled inside the npm package under the
5
+ * files/ directory. Reading them at require-time guarantees:
6
+ * - No network requests — works fully offline
7
+ * - No write-time escaping headaches for markdown content
8
+ * - Standard npm bundling via the "files" field in package.json
9
+ */
10
+
11
+ const fs = require('fs');
12
+ const path = require('path');
13
+
14
+ const FILES_DIR = path.join(__dirname, '..', 'files');
15
+
16
+ function readBundled(relPath) {
17
+ return fs.readFileSync(path.join(FILES_DIR, relPath), 'utf8');
18
+ }
19
+
20
+ const agents = {
21
+ 'hydra-scout': {
22
+ content: readBundled('agents/hydra-scout.md'),
23
+ model: 'Haiku',
24
+ display: 'hydra-scout (Haiku) — Codebase exploration',
25
+ },
26
+ 'hydra-runner': {
27
+ content: readBundled('agents/hydra-runner.md'),
28
+ model: 'Haiku',
29
+ display: 'hydra-runner (Haiku) — Test execution & validation',
30
+ },
31
+ 'hydra-scribe': {
32
+ content: readBundled('agents/hydra-scribe.md'),
33
+ model: 'Haiku',
34
+ display: 'hydra-scribe (Haiku) — Documentation writing',
35
+ },
36
+ 'hydra-coder': {
37
+ content: readBundled('agents/hydra-coder.md'),
38
+ model: 'Sonnet',
39
+ display: 'hydra-coder (Sonnet) — Code implementation',
40
+ },
41
+ 'hydra-analyst': {
42
+ content: readBundled('agents/hydra-analyst.md'),
43
+ model: 'Sonnet',
44
+ display: 'hydra-analyst (Sonnet) — Code review & debugging',
45
+ },
46
+ 'hydra-guard': {
47
+ content: readBundled('agents/hydra-guard.md'),
48
+ model: 'Haiku',
49
+ display: 'hydra-guard (Haiku) — Auto-protection & safety',
50
+ },
51
+ 'hydra-git': {
52
+ content: readBundled('agents/hydra-git.md'),
53
+ model: 'Haiku',
54
+ display: 'hydra-git (Haiku) — Git operations',
55
+ },
56
+ 'hydra-sentinel-scan': {
57
+ content: readBundled('agents/hydra-sentinel-scan.md'),
58
+ model: 'Haiku',
59
+ display: 'hydra-sentinel-scan (Haiku) — Fast integration sweep',
60
+ },
61
+ 'hydra-sentinel': {
62
+ content: readBundled('agents/hydra-sentinel.md'),
63
+ model: 'Sonnet',
64
+ display: 'hydra-sentinel (Sonnet) — Deep integration analysis',
65
+ },
66
+ 'hydra-preflight': {
67
+ content: readBundled('agents/hydra-preflight.md'),
68
+ model: 'Haiku',
69
+ display: 'hydra-preflight (Haiku) — Environment preflight check',
70
+ },
71
+ };
72
+
73
+ const skill = readBundled('SKILL.md');
74
+
75
+ const references = {
76
+ 'routing-guide': readBundled('references/routing-guide.md'),
77
+ 'model-capabilities': readBundled('references/model-capabilities.md'),
78
+ };
79
+
80
+ const commands = {
81
+ 'update': readBundled('commands/hydra/update.md'),
82
+ 'status': readBundled('commands/hydra/status.md'),
83
+ 'help': readBundled('commands/hydra/help.md'),
84
+ 'config': readBundled('commands/hydra/config.md'),
85
+ 'guard': readBundled('commands/hydra/guard.md'),
86
+ 'quiet': readBundled('commands/hydra/quiet.md'),
87
+ 'verbose': readBundled('commands/hydra/verbose.md'),
88
+ 'report': readBundled('commands/hydra/report.md'),
89
+ 'map': readBundled('commands/hydra/map.md'),
90
+ 'preflight': readBundled('commands/hydra/preflight.md'),
91
+ 'stats': readBundled('commands/hydra/stats.md'),
92
+ 'stfu': readBundled('commands/hydra/stfu.md'),
93
+ };
94
+
95
+ // Standalone skills (beyond the canonical hydra/SKILL.md). v2.4.0+ — STFU-Agents.
96
+ const stfuAgentsSkill = readBundled('skills/stfu-agents/SKILL.md');
97
+
98
+ const hooks = {
99
+ 'hydra-check-update': readBundled('hooks/hydra-check-update.js'),
100
+ 'hydra-statusline': readBundled('hooks/hydra-statusline.js'),
101
+ 'hydra-token-math': readBundled('hooks/hydra-token-math.js'),
102
+ 'hydra-auto-guard': readBundled('hooks/hydra-auto-guard.js'),
103
+ 'hydra-notify': readBundled('hooks/hydra-notify.js'),
104
+ };
105
+
106
+ const binaryHooks = {
107
+ 'hydra-task-complete.wav': path.join(FILES_DIR, 'hooks', 'hydra-task-complete.wav'),
108
+ };
109
+
110
+ module.exports = { agents, skill, stfuAgentsSkill, references, commands, hooks, binaryHooks };