hail-hydra-cc 2.3.0 → 2.3.2
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/README.md +99 -99
- package/bin/cli.js +105 -105
- package/files/SKILL.md +1217 -1174
- package/files/agents/hydra-analyst.md +159 -145
- package/files/agents/hydra-coder.md +137 -123
- package/files/agents/hydra-git.md +148 -130
- package/files/agents/hydra-guard.md +153 -135
- package/files/agents/hydra-preflight.md +22 -0
- package/files/agents/hydra-runner.md +107 -93
- package/files/agents/hydra-scout.md +241 -227
- package/files/agents/hydra-scribe.md +98 -84
- package/files/agents/hydra-sentinel-scan.md +242 -236
- package/files/agents/hydra-sentinel.md +210 -192
- package/files/commands/hydra/config.md +37 -37
- package/files/commands/hydra/guard.md +71 -71
- package/files/commands/hydra/help.md +47 -46
- package/files/commands/hydra/quiet.md +16 -16
- package/files/commands/hydra/stats.md +62 -121
- package/files/commands/hydra/status.md +85 -85
- package/files/commands/hydra/stfu.md +21 -0
- package/files/commands/hydra/verbose.md +29 -29
- package/files/hooks/hydra-auto-guard.js +54 -54
- package/files/hooks/hydra-check-update.js +99 -99
- package/files/hooks/hydra-statusline.js +128 -94
- package/files/hooks/hydra-token-math.js +163 -0
- package/files/references/model-capabilities.md +164 -164
- package/files/references/routing-guide.md +303 -303
- package/files/skills/stfu-agents/SKILL.md +59 -0
- package/package.json +1 -1
- package/src/files.js +106 -105
- package/src/installer.js +393 -393
- package/src/prompts.js +80 -80
package/src/prompts.js
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const chalk = require('chalk');
|
|
4
|
-
|
|
5
|
-
async function runPrompts() {
|
|
6
|
-
const inquirer = require('inquirer');
|
|
7
|
-
|
|
8
|
-
// ── Prompt 1: Installation scope ─────────────────────────────────────────
|
|
9
|
-
|
|
10
|
-
const { scope } = await inquirer.prompt([
|
|
11
|
-
{
|
|
12
|
-
type: 'list',
|
|
13
|
-
name: 'scope',
|
|
14
|
-
message: 'Where would you like to install?',
|
|
15
|
-
choices: [
|
|
16
|
-
{
|
|
17
|
-
name: 'Global (~/.claude/) — available in all projects',
|
|
18
|
-
value: 'global',
|
|
19
|
-
short: 'Global',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
name: 'Local (./.claude/) — this project only',
|
|
23
|
-
value: 'local',
|
|
24
|
-
short: 'Local',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: 'Both — install to both locations',
|
|
28
|
-
value: 'both',
|
|
29
|
-
short: 'Both',
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
default: 0,
|
|
33
|
-
},
|
|
34
|
-
]);
|
|
35
|
-
|
|
36
|
-
// ── Prompt 2: Confirmation with agent preview ─────────────────────────────
|
|
37
|
-
|
|
38
|
-
console.log();
|
|
39
|
-
console.log(chalk.bold(' This will install 10 Hydra agents + SKILL.md + reference docs.'));
|
|
40
|
-
console.log();
|
|
41
|
-
console.log(' Agents:');
|
|
42
|
-
|
|
43
|
-
const agentList = [
|
|
44
|
-
{ dot: chalk.green('🟢'), name: 'hydra-scout (Haiku) ', role: 'Codebase exploration' },
|
|
45
|
-
{ dot: chalk.green('🟢'), name: 'hydra-runner (Haiku) ', role: 'Test execution & validation' },
|
|
46
|
-
{ dot: chalk.green('🟢'), name: 'hydra-scribe (Haiku) ', role: 'Documentation writing' },
|
|
47
|
-
{ dot: chalk.green('🟢'), name: 'hydra-guard (Haiku) ', role: 'Auto-protection & safety' },
|
|
48
|
-
{ dot: chalk.green('🟢'), name: 'hydra-git (Haiku) ', role: 'Git operations' },
|
|
49
|
-
{ dot: chalk.green('🟢'), name: 'hydra-sentinel-scan (Haiku) ', role: 'Fast integration sweep' },
|
|
50
|
-
{ dot: chalk.green('🟢'), name: 'hydra-preflight (Haiku) ', role: 'Environment preflight check' },
|
|
51
|
-
{ dot: chalk.blue('🔵'), name: 'hydra-coder (Sonnet) ', role: 'Code implementation' },
|
|
52
|
-
{ dot: chalk.blue('🔵'), name: 'hydra-analyst (Sonnet) ', role: 'Code review & debugging' },
|
|
53
|
-
{ dot: chalk.blue('🔵'), name: 'hydra-sentinel (Sonnet) ', role: 'Deep integration analysis' },
|
|
54
|
-
];
|
|
55
|
-
|
|
56
|
-
for (const a of agentList) {
|
|
57
|
-
console.log(` ${a.dot} ${chalk.bold(a.name)} — ${chalk.gray(a.role)}`);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
console.log();
|
|
61
|
-
|
|
62
|
-
const { proceed } = await inquirer.prompt([
|
|
63
|
-
{
|
|
64
|
-
type: 'confirm',
|
|
65
|
-
name: 'proceed',
|
|
66
|
-
message: 'Proceed?',
|
|
67
|
-
default: true,
|
|
68
|
-
},
|
|
69
|
-
]);
|
|
70
|
-
|
|
71
|
-
if (!proceed) {
|
|
72
|
-
console.log(chalk.gray('\n Installation cancelled.\n'));
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
console.log();
|
|
77
|
-
return scope;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
module.exports = { runPrompts };
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const chalk = require('chalk');
|
|
4
|
+
|
|
5
|
+
async function runPrompts() {
|
|
6
|
+
const inquirer = require('inquirer');
|
|
7
|
+
|
|
8
|
+
// ── Prompt 1: Installation scope ─────────────────────────────────────────
|
|
9
|
+
|
|
10
|
+
const { scope } = await inquirer.prompt([
|
|
11
|
+
{
|
|
12
|
+
type: 'list',
|
|
13
|
+
name: 'scope',
|
|
14
|
+
message: 'Where would you like to install?',
|
|
15
|
+
choices: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Global (~/.claude/) — available in all projects',
|
|
18
|
+
value: 'global',
|
|
19
|
+
short: 'Global',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Local (./.claude/) — this project only',
|
|
23
|
+
value: 'local',
|
|
24
|
+
short: 'Local',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Both — install to both locations',
|
|
28
|
+
value: 'both',
|
|
29
|
+
short: 'Both',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
default: 0,
|
|
33
|
+
},
|
|
34
|
+
]);
|
|
35
|
+
|
|
36
|
+
// ── Prompt 2: Confirmation with agent preview ─────────────────────────────
|
|
37
|
+
|
|
38
|
+
console.log();
|
|
39
|
+
console.log(chalk.bold(' This will install 10 Hydra agents + SKILL.md + reference docs.'));
|
|
40
|
+
console.log();
|
|
41
|
+
console.log(' Agents:');
|
|
42
|
+
|
|
43
|
+
const agentList = [
|
|
44
|
+
{ dot: chalk.green('🟢'), name: 'hydra-scout (Haiku) ', role: 'Codebase exploration' },
|
|
45
|
+
{ dot: chalk.green('🟢'), name: 'hydra-runner (Haiku) ', role: 'Test execution & validation' },
|
|
46
|
+
{ dot: chalk.green('🟢'), name: 'hydra-scribe (Haiku) ', role: 'Documentation writing' },
|
|
47
|
+
{ dot: chalk.green('🟢'), name: 'hydra-guard (Haiku) ', role: 'Auto-protection & safety' },
|
|
48
|
+
{ dot: chalk.green('🟢'), name: 'hydra-git (Haiku) ', role: 'Git operations' },
|
|
49
|
+
{ dot: chalk.green('🟢'), name: 'hydra-sentinel-scan (Haiku) ', role: 'Fast integration sweep' },
|
|
50
|
+
{ dot: chalk.green('🟢'), name: 'hydra-preflight (Haiku) ', role: 'Environment preflight check' },
|
|
51
|
+
{ dot: chalk.blue('🔵'), name: 'hydra-coder (Sonnet) ', role: 'Code implementation' },
|
|
52
|
+
{ dot: chalk.blue('🔵'), name: 'hydra-analyst (Sonnet) ', role: 'Code review & debugging' },
|
|
53
|
+
{ dot: chalk.blue('🔵'), name: 'hydra-sentinel (Sonnet) ', role: 'Deep integration analysis' },
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
for (const a of agentList) {
|
|
57
|
+
console.log(` ${a.dot} ${chalk.bold(a.name)} — ${chalk.gray(a.role)}`);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
console.log();
|
|
61
|
+
|
|
62
|
+
const { proceed } = await inquirer.prompt([
|
|
63
|
+
{
|
|
64
|
+
type: 'confirm',
|
|
65
|
+
name: 'proceed',
|
|
66
|
+
message: 'Proceed?',
|
|
67
|
+
default: true,
|
|
68
|
+
},
|
|
69
|
+
]);
|
|
70
|
+
|
|
71
|
+
if (!proceed) {
|
|
72
|
+
console.log(chalk.gray('\n Installation cancelled.\n'));
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
console.log();
|
|
77
|
+
return scope;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
module.exports = { runPrompts };
|