@thebushidocollective/han 1.30.0 → 1.30.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/dist/lib/build-info.generated.d.ts +1 -1
- package/dist/lib/build-info.generated.js +1 -1
- package/dist/lib/commands/hook/run.d.ts.map +1 -1
- package/dist/lib/commands/hook/run.js +0 -70
- package/dist/lib/commands/hook/run.js.map +1 -1
- package/dist/lib/validate.d.ts +0 -2
- package/dist/lib/validate.d.ts.map +1 -1
- package/dist/lib/validate.js +8 -12
- package/dist/lib/validate.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const HAN_VERSION = "1.30.
|
|
1
|
+
export declare const HAN_VERSION = "1.30.1";
|
|
2
2
|
export declare const DETECT_PLUGINS_PROMPT = "<!--\nThis prompt template is dynamically enhanced in shared.ts with:\n1. GIT REPOSITORY section - Remote URL to determine hosting platform (GitHub, GitLab, etc.)\n2. CURRENTLY INSTALLED PLUGINS section - List of plugins already installed (if any)\n3. CODEBASE STATISTICS section - File extensions and config file names from codebase-analyzer.ts\n4. AVAILABLE PLUGINS IN MARKETPLACE section - Plugin list from marketplace.json\n\nThese sections are appended to this base prompt at runtime.\n-->\n\n# Han Plugin Installer Assistant\n\nYou are a Han plugin installer assistant. Your goal is to analyze the current codebase and recommend appropriate Claude Code plugins from the Han marketplace.\n\nThe available plugins from the marketplace are provided below. ONLY recommend plugins from this list.\n\n## Plugin Categories\n\n- **buki-\\*** (\u6B66\u5668 weapons): Skills for specific technologies and frameworks\n- **do-\\*** (\u9053 disciplines): Specialized agents for development practices and workflows\n- **sensei-\\*** (\u5148\u751F teachers): MCP servers for external integrations\n- **bushido**: Core quality principles (ALWAYS recommend this)\n\n## Your Analysis Process\n\n### STEP 1: Analyze currently installed plugins (if provided)\n\n- Check if CURRENTLY INSTALLED PLUGINS section is provided in the prompt\n- If provided, you should:\n - **Understand why each plugin was likely added**: Look at plugin descriptions and infer original use case\n - Example: `buki-typescript` suggests TypeScript development\n - Example: `sensei-github` suggests GitHub integration needs\n - Example: `do-frontend-development` suggests frontend focus\n - **Determine if each plugin is still relevant**:\n - Use the codebase statistics and configuration files to verify if the technology/practice is still in use\n - A plugin is still relevant if its associated technology/practice is actively used in the codebase\n - A plugin may be irrelevant if:\n - The technology was removed (e.g., no more .ts files but buki-typescript is installed)\n - The project migrated to a different platform (e.g., moved from GitHub to GitLab)\n - The framework changed (e.g., migrated from React to Vue)\n - **Keep relevant plugins in your recommendations**: If a plugin is still relevant, include it in your final list\n - **Exclude irrelevant plugins**: If a plugin is no longer needed, do not include it in your recommendations\n\n### STEP 2: Check git repository hosting platform (if provided)\n\n- Check if GIT REPOSITORY section is provided in the prompt\n- If provided, examine the remote URL to determine the hosting platform:\n - URLs containing `github.com` \u2192 recommend `sensei-github`\n - URLs containing `gitlab.com` or other GitLab instances \u2192 recommend `sensei-gitlab`\n - This helps integrate Claude Code with the project's issue tracking, PRs/MRs, and CI/CD\n\n### STEP 3: Review pre-computed codebase statistics (if provided)\n\n- Check if CODEBASE STATISTICS section is provided in the prompt\n- If provided, you have:\n - **File extension counts** (e.g., .ts: 456, .py: 123) - interpret these as technologies\n - .ts, .tsx, .jsx = TypeScript/JavaScript\n - .py = Python\n - .rs = Rust\n - .go = Go\n - .rb = Ruby\n - .ex, .exs = Elixir\n - .vue = Vue.js\n - etc.\n - **Config file names** (e.g., package.json, Cargo.toml, go.mod) - these reveal frameworks and tools\n- If statistics are NOT provided, use Glob to discover file types\n - Example: glob(\"\\*_/_.ts\") to find TypeScript files\n - Example: glob(\"\\*_/_.py\") to find Python files\n\n### STEP 4: Examine key configuration files\n\n- Config files are already identified in the statistics (if provided)\n- Use Read tool to examine important config files:\n - package.json - reveals Node.js frameworks, dependencies\n - Cargo.toml - reveals Rust dependencies\n - go.mod - reveals Go dependencies\n - requirements.txt, pyproject.toml - reveals Python dependencies\n - mix.exs - reveals Elixir dependencies\n- Use Grep to search for framework-specific patterns\n - Example: grep(\"import.\\*react\") to confirm React usage\n - Example: grep(\"from django\") to confirm Django usage\n\n### STEP 5: Identify technologies and patterns\n\n- Programming languages (TypeScript, Python, Go, Rust, Ruby, etc.)\n- Frameworks and libraries (React, Vue, Django, Rails, etc.)\n- Testing frameworks (Jest, Pytest, RSpec, etc.)\n- Build tools and infrastructure (Docker, Kubernetes, etc.)\n- Development practices (API development, frontend development, mobile, etc.)\n- Content patterns (blog posts, documentation, CMS usage)\n- CI/CD configurations\n- Accessibility tooling\n\n### STEP 6: Match findings to available plugins\n\n- Look at the plugin descriptions and keywords below\n- Cross-reference detected technologies with available buki-\\* plugins\n- Cross-reference development practices with available do-\\* plugins\n- Cross-reference integrations with available sensei-\\* plugins\n- ONLY recommend plugins from the list provided\n- Aim for 3-8 total plugins that best match the codebase\n- Always include \"bushido\" as it's the core plugin\n\n## Output Format\n\nReturn ONLY a JSON array of recommended plugin names from the available plugins list:\n\n```json\n[\"bushido\", \"buki-typescript\", \"buki-react\", \"do-frontend-development\"]\n```\n\n**CRITICAL**: Only recommend plugins that appear in the AVAILABLE PLUGINS list below. Never recommend plugins not in the list.\n";
|
|
3
3
|
//# sourceMappingURL=build-info.generated.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Auto-generated by build-bundle.js - DO NOT EDIT
|
|
2
|
-
export const HAN_VERSION = "1.30.
|
|
2
|
+
export const HAN_VERSION = "1.30.1";
|
|
3
3
|
export const DETECT_PLUGINS_PROMPT = "<!--\nThis prompt template is dynamically enhanced in shared.ts with:\n1. GIT REPOSITORY section - Remote URL to determine hosting platform (GitHub, GitLab, etc.)\n2. CURRENTLY INSTALLED PLUGINS section - List of plugins already installed (if any)\n3. CODEBASE STATISTICS section - File extensions and config file names from codebase-analyzer.ts\n4. AVAILABLE PLUGINS IN MARKETPLACE section - Plugin list from marketplace.json\n\nThese sections are appended to this base prompt at runtime.\n-->\n\n# Han Plugin Installer Assistant\n\nYou are a Han plugin installer assistant. Your goal is to analyze the current codebase and recommend appropriate Claude Code plugins from the Han marketplace.\n\nThe available plugins from the marketplace are provided below. ONLY recommend plugins from this list.\n\n## Plugin Categories\n\n- **buki-\\*** (武器 weapons): Skills for specific technologies and frameworks\n- **do-\\*** (道 disciplines): Specialized agents for development practices and workflows\n- **sensei-\\*** (先生 teachers): MCP servers for external integrations\n- **bushido**: Core quality principles (ALWAYS recommend this)\n\n## Your Analysis Process\n\n### STEP 1: Analyze currently installed plugins (if provided)\n\n- Check if CURRENTLY INSTALLED PLUGINS section is provided in the prompt\n- If provided, you should:\n - **Understand why each plugin was likely added**: Look at plugin descriptions and infer original use case\n - Example: `buki-typescript` suggests TypeScript development\n - Example: `sensei-github` suggests GitHub integration needs\n - Example: `do-frontend-development` suggests frontend focus\n - **Determine if each plugin is still relevant**:\n - Use the codebase statistics and configuration files to verify if the technology/practice is still in use\n - A plugin is still relevant if its associated technology/practice is actively used in the codebase\n - A plugin may be irrelevant if:\n - The technology was removed (e.g., no more .ts files but buki-typescript is installed)\n - The project migrated to a different platform (e.g., moved from GitHub to GitLab)\n - The framework changed (e.g., migrated from React to Vue)\n - **Keep relevant plugins in your recommendations**: If a plugin is still relevant, include it in your final list\n - **Exclude irrelevant plugins**: If a plugin is no longer needed, do not include it in your recommendations\n\n### STEP 2: Check git repository hosting platform (if provided)\n\n- Check if GIT REPOSITORY section is provided in the prompt\n- If provided, examine the remote URL to determine the hosting platform:\n - URLs containing `github.com` → recommend `sensei-github`\n - URLs containing `gitlab.com` or other GitLab instances → recommend `sensei-gitlab`\n - This helps integrate Claude Code with the project's issue tracking, PRs/MRs, and CI/CD\n\n### STEP 3: Review pre-computed codebase statistics (if provided)\n\n- Check if CODEBASE STATISTICS section is provided in the prompt\n- If provided, you have:\n - **File extension counts** (e.g., .ts: 456, .py: 123) - interpret these as technologies\n - .ts, .tsx, .jsx = TypeScript/JavaScript\n - .py = Python\n - .rs = Rust\n - .go = Go\n - .rb = Ruby\n - .ex, .exs = Elixir\n - .vue = Vue.js\n - etc.\n - **Config file names** (e.g., package.json, Cargo.toml, go.mod) - these reveal frameworks and tools\n- If statistics are NOT provided, use Glob to discover file types\n - Example: glob(\"\\*_/_.ts\") to find TypeScript files\n - Example: glob(\"\\*_/_.py\") to find Python files\n\n### STEP 4: Examine key configuration files\n\n- Config files are already identified in the statistics (if provided)\n- Use Read tool to examine important config files:\n - package.json - reveals Node.js frameworks, dependencies\n - Cargo.toml - reveals Rust dependencies\n - go.mod - reveals Go dependencies\n - requirements.txt, pyproject.toml - reveals Python dependencies\n - mix.exs - reveals Elixir dependencies\n- Use Grep to search for framework-specific patterns\n - Example: grep(\"import.\\*react\") to confirm React usage\n - Example: grep(\"from django\") to confirm Django usage\n\n### STEP 5: Identify technologies and patterns\n\n- Programming languages (TypeScript, Python, Go, Rust, Ruby, etc.)\n- Frameworks and libraries (React, Vue, Django, Rails, etc.)\n- Testing frameworks (Jest, Pytest, RSpec, etc.)\n- Build tools and infrastructure (Docker, Kubernetes, etc.)\n- Development practices (API development, frontend development, mobile, etc.)\n- Content patterns (blog posts, documentation, CMS usage)\n- CI/CD configurations\n- Accessibility tooling\n\n### STEP 6: Match findings to available plugins\n\n- Look at the plugin descriptions and keywords below\n- Cross-reference detected technologies with available buki-\\* plugins\n- Cross-reference development practices with available do-\\* plugins\n- Cross-reference integrations with available sensei-\\* plugins\n- ONLY recommend plugins from the list provided\n- Aim for 3-8 total plugins that best match the codebase\n- Always include \"bushido\" as it's the core plugin\n\n## Output Format\n\nReturn ONLY a JSON array of recommended plugin names from the available plugins list:\n\n```json\n[\"bushido\", \"buki-typescript\", \"buki-react\", \"do-frontend-development\"]\n```\n\n**CRITICAL**: Only recommend plugins that appear in the AVAILABLE PLUGINS list below. Never recommend plugins not in the list.\n";
|
|
4
4
|
//# sourceMappingURL=build-info.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../lib/commands/hook/run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../lib/commands/hook/run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,wBAAgB,eAAe,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAwG1D"}
|
|
@@ -1,62 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if stdin has data available without blocking
|
|
3
|
-
* Returns the stdin data if available, null otherwise
|
|
4
|
-
*/
|
|
5
|
-
async function tryReadStdin() {
|
|
6
|
-
// Check if stdin is a TTY (interactive terminal) - if so, no data to read
|
|
7
|
-
if (process.stdin.isTTY) {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
// Set a short timeout to check for available data
|
|
11
|
-
return new Promise((resolve) => {
|
|
12
|
-
let data = "";
|
|
13
|
-
let resolved = false;
|
|
14
|
-
const timeout = setTimeout(() => {
|
|
15
|
-
if (!resolved) {
|
|
16
|
-
resolved = true;
|
|
17
|
-
process.stdin.removeAllListeners();
|
|
18
|
-
process.stdin.pause();
|
|
19
|
-
resolve(data || null);
|
|
20
|
-
}
|
|
21
|
-
}, 100); // 100ms timeout
|
|
22
|
-
process.stdin.setEncoding("utf8");
|
|
23
|
-
process.stdin.on("data", (chunk) => {
|
|
24
|
-
data += chunk;
|
|
25
|
-
});
|
|
26
|
-
process.stdin.on("end", () => {
|
|
27
|
-
if (!resolved) {
|
|
28
|
-
resolved = true;
|
|
29
|
-
clearTimeout(timeout);
|
|
30
|
-
resolve(data || null);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
process.stdin.on("error", () => {
|
|
34
|
-
if (!resolved) {
|
|
35
|
-
resolved = true;
|
|
36
|
-
clearTimeout(timeout);
|
|
37
|
-
resolve(null);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
// Resume stdin to start reading
|
|
41
|
-
process.stdin.resume();
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Check if we're in a nested stop hook scenario
|
|
46
|
-
* Claude Code sets stop_hook_active: true in stdin when a stop hook is already running
|
|
47
|
-
*/
|
|
48
|
-
function isStopHookActive(stdinData) {
|
|
49
|
-
if (!stdinData)
|
|
50
|
-
return false;
|
|
51
|
-
try {
|
|
52
|
-
const parsed = JSON.parse(stdinData);
|
|
53
|
-
return parsed.stop_hook_active === true;
|
|
54
|
-
}
|
|
55
|
-
catch {
|
|
56
|
-
// Not JSON or invalid JSON - that's fine, just means it's not a Claude hook context
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
1
|
export function registerHookRun(hookCommand) {
|
|
61
2
|
// Supports two formats:
|
|
62
3
|
// 1. New format: han hook run <hookName> [--fail-fast] [--stdin] [--cache]
|
|
@@ -71,22 +12,13 @@ export function registerHookRun(hookCommand) {
|
|
|
71
12
|
.option("--fail-fast", "Stop on first failure")
|
|
72
13
|
.option("--dirs-with <file>", "(Legacy) Only run in directories containing the specified file")
|
|
73
14
|
.option("--test-dir <command>", "(Legacy) Only include directories where this command exits 0")
|
|
74
|
-
.option("--stdin", "Read stdin and pass it to each subcommand")
|
|
75
15
|
.option("--cache", "Only run if files matching ifChanged patterns have changed since last successful run")
|
|
76
16
|
.option("--verbose", "Show full command output (also settable via HAN_HOOK_RUN_VERBOSE=1)")
|
|
77
17
|
.allowUnknownOption()
|
|
78
18
|
.action(async (hookNameOrArgs, options) => {
|
|
79
|
-
// Always try to read stdin to check for stop_hook_active
|
|
80
|
-
const stdinData = await tryReadStdin();
|
|
81
|
-
// Check if we're in a nested stop hook - if so, exit immediately to prevent loops
|
|
82
|
-
if (isStopHookActive(stdinData)) {
|
|
83
|
-
process.exit(0);
|
|
84
|
-
}
|
|
85
19
|
const hookName = hookNameOrArgs.length > 0 ? hookNameOrArgs[0] : undefined;
|
|
86
20
|
const separatorIndex = process.argv.indexOf("--");
|
|
87
21
|
const isLegacyFormat = separatorIndex !== -1;
|
|
88
|
-
// If --stdin was specified but we already read the data, use it
|
|
89
|
-
// Otherwise, stdinData will be passed to subcommands if available
|
|
90
22
|
// Determine verbose mode from option or environment variable
|
|
91
23
|
const verbose = options.verbose ||
|
|
92
24
|
process.env.HAN_HOOK_RUN_VERBOSE === "1" ||
|
|
@@ -112,7 +44,6 @@ export function registerHookRun(hookCommand) {
|
|
|
112
44
|
dirsWith: options.dirsWith || null,
|
|
113
45
|
testDir: options.testDir || null,
|
|
114
46
|
command: quotedArgs.join(" "),
|
|
115
|
-
stdinData,
|
|
116
47
|
verbose,
|
|
117
48
|
});
|
|
118
49
|
}
|
|
@@ -128,7 +59,6 @@ export function registerHookRun(hookCommand) {
|
|
|
128
59
|
await runConfiguredHook({
|
|
129
60
|
hookName,
|
|
130
61
|
failFast: options.failFast || false,
|
|
131
|
-
stdinData,
|
|
132
62
|
cache: options.cache || false,
|
|
133
63
|
verbose,
|
|
134
64
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../lib/commands/hook/run.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../lib/commands/hook/run.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,WAAoB;IACnD,wBAAwB;IACxB,2EAA2E;IAC3E,2EAA2E;IAC3E,iEAAiE;IACjE,iDAAiD;IACjD,WAAW;SACT,OAAO,CAAC,yBAAyB,CAAC;SAClC,WAAW,CACX,kCAAkC;QACjC,+DAA+D;QAC/D,6DAA6D,CAC9D;SACA,MAAM,CAAC,aAAa,EAAE,uBAAuB,CAAC;SAC9C,MAAM,CACN,oBAAoB,EACpB,gEAAgE,CAChE;SACA,MAAM,CACN,sBAAsB,EACtB,8DAA8D,CAC9D;SACA,MAAM,CACN,SAAS,EACT,sFAAsF,CACtF;SACA,MA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;YAEH,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;YACvD,MAAM,QAAQ,CAAC;gBACd,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,KAAK;gBACnC,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,IAAI;gBAClC,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,IAAI;gBAChC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC;gBAC7B,OAAO;aACP,CAAC,CAAC;QACJ,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CACZ,mCAAmC;oBAClC,UAAU;oBACV,oEAAoE;oBACpE,+DAA+D,CAChE,CAAC;gBACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACjB,CAAC;YAED,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;YAChE,MAAM,iBAAiB,CAAC;gBACvB,QAAQ;gBACR,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,KAAK;gBACnC,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,KAAK;gBAC7B,OAAO;aACP,CAAC,CAAC;QACJ,CAAC;IACF,CAAC,CACD,CAAC;AACJ,CAAC"}
|
package/dist/lib/validate.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ interface ValidateOptions {
|
|
|
3
3
|
dirsWith: string | null;
|
|
4
4
|
testDir?: string | null;
|
|
5
5
|
command: string;
|
|
6
|
-
stdinData?: string | null;
|
|
7
6
|
verbose?: boolean;
|
|
8
7
|
}
|
|
9
8
|
export declare function validate(options: ValidateOptions): void;
|
|
@@ -13,7 +12,6 @@ export declare function validate(options: ValidateOptions): void;
|
|
|
13
12
|
export interface RunConfiguredHookOptions {
|
|
14
13
|
hookName: string;
|
|
15
14
|
failFast: boolean;
|
|
16
|
-
stdinData?: string | null;
|
|
17
15
|
/**
|
|
18
16
|
* When true, check if files have changed before running hooks.
|
|
19
17
|
* If no changes detected, skip the hook and exit 0.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../lib/validate.ts"],"names":[],"mappings":"AAcA,UAAU,eAAe;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../lib/validate.ts"],"names":[],"mappings":"AAcA,UAAU,eAAe;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AA0DD,wBAAgB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAkFvD;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAgBD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAmJzE"}
|
package/dist/lib/validate.js
CHANGED
|
@@ -10,14 +10,13 @@ function findDirectoriesWithMarker(rootDir, markerPatterns) {
|
|
|
10
10
|
// Run command in directory
|
|
11
11
|
// When verbose=false, suppresses output and we'll tell the agent how to reproduce
|
|
12
12
|
// When verbose=true, inherits stdio to show full output
|
|
13
|
-
function runCommand(dir, cmd,
|
|
13
|
+
function runCommand(dir, cmd, verbose) {
|
|
14
14
|
try {
|
|
15
15
|
if (verbose) {
|
|
16
16
|
// Verbose mode: show full output
|
|
17
17
|
execSync(cmd, {
|
|
18
18
|
cwd: dir,
|
|
19
|
-
stdio:
|
|
20
|
-
input: stdinData || undefined,
|
|
19
|
+
stdio: "inherit",
|
|
21
20
|
encoding: "utf8",
|
|
22
21
|
shell: "/bin/sh",
|
|
23
22
|
env: process.env,
|
|
@@ -27,10 +26,7 @@ function runCommand(dir, cmd, stdinData, verbose) {
|
|
|
27
26
|
// Quiet mode: suppress output, we give the agent a concise instruction instead
|
|
28
27
|
execSync(cmd, {
|
|
29
28
|
cwd: dir,
|
|
30
|
-
stdio:
|
|
31
|
-
? ["pipe", "pipe", "pipe"]
|
|
32
|
-
: ["ignore", "pipe", "pipe"],
|
|
33
|
-
input: stdinData || undefined,
|
|
29
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
34
30
|
encoding: "utf8",
|
|
35
31
|
shell: "/bin/sh",
|
|
36
32
|
env: process.env,
|
|
@@ -59,11 +55,11 @@ function testDirCommand(dir, cmd) {
|
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
57
|
export function validate(options) {
|
|
62
|
-
const { failFast, dirsWith, testDir, command: commandToRun,
|
|
58
|
+
const { failFast, dirsWith, testDir, command: commandToRun, verbose } = options;
|
|
63
59
|
const rootDir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
|
|
64
60
|
// No dirsWith specified - run in current directory only
|
|
65
61
|
if (!dirsWith) {
|
|
66
|
-
const success = runCommand(rootDir, commandToRun,
|
|
62
|
+
const success = runCommand(rootDir, commandToRun, verbose);
|
|
67
63
|
if (!success) {
|
|
68
64
|
console.error(`\n❌ The command \`${commandToRun}\` failed.\n\n` +
|
|
69
65
|
`Spawn a subagent to run the command, review the output, and fix all issues.\n`);
|
|
@@ -84,7 +80,7 @@ export function validate(options) {
|
|
|
84
80
|
continue;
|
|
85
81
|
}
|
|
86
82
|
processedCount++;
|
|
87
|
-
const success = runCommand(dir, commandToRun,
|
|
83
|
+
const success = runCommand(dir, commandToRun, verbose);
|
|
88
84
|
if (!success) {
|
|
89
85
|
const relativePath = dir === rootDir ? "." : dir.replace(`${rootDir}/`, "");
|
|
90
86
|
failures.push(relativePath);
|
|
@@ -128,7 +124,7 @@ function getCacheKeyForDirectory(hookName, directory, projectRoot) {
|
|
|
128
124
|
* This is the new format: `han hook run <hookName> [--fail-fast] [--cache]`
|
|
129
125
|
*/
|
|
130
126
|
export function runConfiguredHook(options) {
|
|
131
|
-
const { hookName, failFast,
|
|
127
|
+
const { hookName, failFast, cache, verbose } = options;
|
|
132
128
|
const pluginRoot = process.env.CLAUDE_PLUGIN_ROOT;
|
|
133
129
|
const projectRoot = process.env.CLAUDE_PROJECT_DIR || process.cwd();
|
|
134
130
|
if (!pluginRoot) {
|
|
@@ -164,7 +160,7 @@ export function runConfiguredHook(options) {
|
|
|
164
160
|
const relativePath = config.directory === projectRoot
|
|
165
161
|
? "."
|
|
166
162
|
: config.directory.replace(`${projectRoot}/`, "");
|
|
167
|
-
const success = runCommand(config.directory, config.command,
|
|
163
|
+
const success = runCommand(config.directory, config.command, verbose);
|
|
168
164
|
if (!success) {
|
|
169
165
|
failures.push({ dir: relativePath, command: config.command });
|
|
170
166
|
if (failFast) {
|
package/dist/lib/validate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../lib/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EACN,aAAa,EACb,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,iBAAiB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,cAAc,EACd,qBAAqB,GAErB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../lib/validate.ts"],"names":[],"mappings":"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,MAAM,GACX,OAAO,CAAC,GAAG,KAAK,GAAG;gBAClB,CAAC,CAAC,OAAO,CAAC,OAAO;gBACjB,CAAC,CAAC,MAAM,OAAO,CAAC,GAAG,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;YAC9C,OAAO,CAAC,KAAK,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC;QACpC,CAAC;QACD,OAAO,CAAC,KAAK,CACZ,kFAAkF,CAClF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;IAED,OAAO,CAAC,GAAG,CACV,WAAW,QAAQ,YAAY,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,SAAS,CACpE,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thebushidocollective/han",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.1",
|
|
4
4
|
"description": "CLI for installing and managing curated Claude Code plugins from the Han marketplace",
|
|
5
5
|
"main": "dist/lib/main.js",
|
|
6
6
|
"types": "dist/lib/main.d.ts",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"README.md"
|
|
51
51
|
],
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@thebushidocollective/han-darwin-arm64": "1.30.
|
|
54
|
-
"@thebushidocollective/han-darwin-x64": "1.30.
|
|
55
|
-
"@thebushidocollective/han-linux-arm64": "1.30.
|
|
56
|
-
"@thebushidocollective/han-linux-x64": "1.30.
|
|
57
|
-
"@thebushidocollective/han-win32-x64": "1.30.
|
|
53
|
+
"@thebushidocollective/han-darwin-arm64": "1.30.1",
|
|
54
|
+
"@thebushidocollective/han-darwin-x64": "1.30.1",
|
|
55
|
+
"@thebushidocollective/han-linux-arm64": "1.30.1",
|
|
56
|
+
"@thebushidocollective/han-linux-x64": "1.30.1",
|
|
57
|
+
"@thebushidocollective/han-win32-x64": "1.30.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@anthropic-ai/claude-agent-sdk": "0.1.50",
|