@thebushidocollective/han 1.45.0 → 1.45.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/README.md
CHANGED
|
@@ -70,23 +70,83 @@ npx @thebushidocollective/han plugin search [query]
|
|
|
70
70
|
|
|
71
71
|
### hook run
|
|
72
72
|
|
|
73
|
-
Run a command
|
|
73
|
+
Run a hook command defined by a plugin.
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
|
+
# New format (recommended) - uses plugin's han-config.json
|
|
77
|
+
npx @thebushidocollective/han hook run <plugin-name> <hook-name> [options]
|
|
78
|
+
|
|
79
|
+
# Legacy format - run arbitrary commands in matching directories
|
|
76
80
|
npx @thebushidocollective/han hook run --dirs-with <pattern> -- <command>
|
|
77
81
|
```
|
|
78
82
|
|
|
83
|
+
**Options:**
|
|
84
|
+
|
|
85
|
+
- `--fail-fast` - Stop on first failure (default: true)
|
|
86
|
+
- `--cached` - Skip if no relevant files have changed since last successful run
|
|
87
|
+
- `--only=<dir>` - Only run in the specified directory
|
|
88
|
+
- `--verbose` - Show full command output
|
|
89
|
+
|
|
79
90
|
**Examples:**
|
|
80
91
|
|
|
81
92
|
```bash
|
|
82
|
-
# Run
|
|
93
|
+
# Run TypeScript type checking using plugin config
|
|
94
|
+
npx @thebushidocollective/han hook run jutsu-typescript typecheck
|
|
95
|
+
|
|
96
|
+
# Run with caching (skip if no changes)
|
|
97
|
+
npx @thebushidocollective/han hook run jutsu-elixir test --cached
|
|
98
|
+
|
|
99
|
+
# Run in a specific directory only
|
|
100
|
+
npx @thebushidocollective/han hook run jutsu-biome lint --only=packages/core
|
|
101
|
+
|
|
102
|
+
# Legacy: Run npm test in all directories with package.json
|
|
83
103
|
npx @thebushidocollective/han hook run --dirs-with package.json -- npm test
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### hook explain
|
|
84
107
|
|
|
85
|
-
|
|
86
|
-
npx @thebushidocollective/han hook run --dirs-with mix.exs -- mix compile --warnings-as-errors
|
|
108
|
+
Show comprehensive information about configured hooks.
|
|
87
109
|
|
|
88
|
-
|
|
89
|
-
npx @thebushidocollective/han hook
|
|
110
|
+
```bash
|
|
111
|
+
npx @thebushidocollective/han hook explain [hookType] [--all]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Options:**
|
|
115
|
+
|
|
116
|
+
- `[hookType]` - Filter by hook type (e.g., `Stop`, `SessionStart`)
|
|
117
|
+
- `--all` - Include hooks from Claude Code settings (not just Han plugins)
|
|
118
|
+
|
|
119
|
+
**Examples:**
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Show all Han plugin hooks
|
|
123
|
+
npx @thebushidocollective/han hook explain
|
|
124
|
+
|
|
125
|
+
# Show only Stop hooks
|
|
126
|
+
npx @thebushidocollective/han hook explain Stop
|
|
127
|
+
|
|
128
|
+
# Show all hooks including settings
|
|
129
|
+
npx @thebushidocollective/han hook explain --all
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### hook dispatch
|
|
133
|
+
|
|
134
|
+
Dispatch hooks of a specific type across all installed Han plugins.
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
npx @thebushidocollective/han hook dispatch <hookType> [--all]
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
This is useful for triggering hooks manually or for workarounds when plugin hook output needs to be passed to the agent.
|
|
141
|
+
|
|
142
|
+
**Examples:**
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Dispatch SessionStart hooks
|
|
146
|
+
npx @thebushidocollective/han hook dispatch SessionStart
|
|
147
|
+
|
|
148
|
+
# Dispatch Stop hooks including settings hooks
|
|
149
|
+
npx @thebushidocollective/han hook dispatch Stop --all
|
|
90
150
|
```
|
|
91
151
|
|
|
92
152
|
### hook test
|
|
@@ -101,6 +161,24 @@ npx @thebushidocollective/han hook test
|
|
|
101
161
|
npx @thebushidocollective/han hook test --execute
|
|
102
162
|
```
|
|
103
163
|
|
|
164
|
+
### mcp
|
|
165
|
+
|
|
166
|
+
Start the Han MCP server for natural language hook execution.
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
npx @thebushidocollective/han mcp
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
The MCP server dynamically exposes tools based on your installed plugins. Once installed via `hashi-han`, you can run hooks using natural language like "run the elixir tests" instead of remembering exact commands.
|
|
173
|
+
|
|
174
|
+
**Generated tools include:**
|
|
175
|
+
|
|
176
|
+
- `jutsu_elixir_test` - Run tests for Elixir projects
|
|
177
|
+
- `jutsu_typescript_typecheck` - Run TypeScript type checking
|
|
178
|
+
- `jutsu_biome_lint` - Run Biome linting
|
|
179
|
+
|
|
180
|
+
See the [hashi-han plugin](/hashi/hashi-han) for installation and configuration.
|
|
181
|
+
|
|
104
182
|
### uninstall
|
|
105
183
|
|
|
106
184
|
Remove all Han plugins and marketplace configuration.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const HAN_VERSION = "1.45.
|
|
1
|
+
export declare const HAN_VERSION = "1.45.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- **jutsu-\\*** (\u6B66\u5668 weapons): Skills for specific technologies and frameworks\n- **do-\\*** (\u9053 disciplines): Specialized agents for development practices and workflows\n- **hashi-\\*** (\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: `jutsu-typescript` suggests TypeScript development\n - Example: `hashi-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 jutsu-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 `hashi-github`\n - URLs containing `gitlab.com` or other GitLab instances \u2192 recommend `hashi-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 jutsu-\\* plugins\n- Cross-reference development practices with available do-\\* plugins\n- Cross-reference integrations with available hashi-\\* 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\", \"jutsu-typescript\", \"jutsu-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.45.
|
|
2
|
+
export const HAN_VERSION = "1.45.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- **jutsu-\\*** (武器 weapons): Skills for specific technologies and frameworks\n- **do-\\*** (道 disciplines): Specialized agents for development practices and workflows\n- **hashi-\\*** (先生 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: `jutsu-typescript` suggests TypeScript development\n - Example: `hashi-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 jutsu-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 `hashi-github`\n - URLs containing `gitlab.com` or other GitLab instances → recommend `hashi-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 jutsu-\\* plugins\n- Cross-reference development practices with available do-\\* plugins\n- Cross-reference integrations with available hashi-\\* 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\", \"jutsu-typescript\", \"jutsu-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":"hook-explain-ui.d.ts","sourceRoot":"","sources":["../../lib/hook-explain-ui.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,UAAU,SAAS;IAClB,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,EAAE,CAAC;CACnB;AAED,UAAU,kBAAkB;IAC3B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"hook-explain-ui.d.ts","sourceRoot":"","sources":["../../lib/hook-explain-ui.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,UAAU,SAAS;IAClB,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,EAAE,CAAC;CACnB;AAED,UAAU,kBAAkB;IAC3B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CACjB;AAiHD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgHtD,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from "ink";
|
|
3
3
|
const HookEntryDisplay = ({ hook, index, }) => {
|
|
4
|
-
return (_jsxs(Box, { flexDirection: "column", marginLeft: 4, marginTop: index > 0 ? 1 : 0, children: [_jsxs(Box, { children: [_jsxs(Text, { dimColor: true, children: ["Hook ", index + 1, ": "] }), _jsx(Text, { color: hook.type === "command" ? "blue" : "magenta", bold: true, children: hook.type })] }), hook.command && (_jsxs(Box, { marginLeft: 2, flexDirection: "column", children: [_jsx(Text, { dimColor: true, children: "Command:" }), _jsx(Box, { marginLeft: 2, children: _jsx(Text, { color: "gray", children: hook.command }) })] })), hook.prompt && (_jsxs(Box, { marginLeft: 2, flexDirection: "column", children: [_jsx(Text, { dimColor: true, children: "Prompt:" }), _jsx(Box, { marginLeft: 2, flexDirection: "column", children: hook.prompt.split("\n").map((line,
|
|
4
|
+
return (_jsxs(Box, { flexDirection: "column", marginLeft: 4, marginTop: index > 0 ? 1 : 0, children: [_jsxs(Box, { children: [_jsxs(Text, { dimColor: true, children: ["Hook ", index + 1, ": "] }), _jsx(Text, { color: hook.type === "command" ? "blue" : "magenta", bold: true, children: hook.type })] }), hook.command && (_jsxs(Box, { marginLeft: 2, flexDirection: "column", children: [_jsx(Text, { dimColor: true, children: "Command:" }), _jsx(Box, { marginLeft: 2, children: _jsx(Text, { color: "gray", children: hook.command }) })] })), hook.prompt && (_jsxs(Box, { marginLeft: 2, flexDirection: "column", children: [_jsx(Text, { dimColor: true, children: "Prompt:" }), _jsx(Box, { marginLeft: 2, flexDirection: "column", children: hook.prompt.split("\n").map((line, lineIdx) => (_jsx(Text, { color: "gray", children: line }, `line-${lineIdx}-${line.slice(0, 20)}`))) })] })), hook.timeout && (_jsxs(Box, { marginLeft: 2, children: [_jsx(Text, { dimColor: true, children: "Timeout: " }), _jsxs(Text, { children: [hook.timeout, "ms"] })] }))] }));
|
|
5
5
|
};
|
|
6
6
|
const HookSourceDisplay = ({ source }) => {
|
|
7
|
-
return (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [source.pluginName ? (_jsxs(Box, { children: [_jsx(Text, { color: "green", bold: true, children: source.pluginName }), _jsxs(Text, { dimColor: true, children: ["@", source.marketplace] })] })) : (_jsxs(Box, { children: [_jsx(Text, { color: "yellow", bold: true, children: "Settings" }), _jsxs(Text, { dimColor: true, children: [" (", source.scope, ")"] })] })), _jsxs(Box, { marginLeft: 2, children: [_jsx(Text, { dimColor: true, children: "Path: " }), _jsx(Text, { color: "cyan", children: source.source })] }), source.hooks.map((hook,
|
|
7
|
+
return (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [source.pluginName ? (_jsxs(Box, { children: [_jsx(Text, { color: "green", bold: true, children: source.pluginName }), _jsxs(Text, { dimColor: true, children: ["@", source.marketplace] })] })) : (_jsxs(Box, { children: [_jsx(Text, { color: "yellow", bold: true, children: "Settings" }), _jsxs(Text, { dimColor: true, children: [" (", source.scope, ")"] })] })), _jsxs(Box, { marginLeft: 2, children: [_jsx(Text, { dimColor: true, children: "Path: " }), _jsx(Text, { color: "cyan", children: source.source })] }), source.hooks.map((hook, hookIdx) => (_jsx(HookEntryDisplay, { hook: hook, index: hookIdx }, `hook-${hookIdx}-${hook.type}-${(hook.command || hook.prompt || "").slice(0, 20)}`)))] }));
|
|
8
8
|
};
|
|
9
|
-
const HookTypeSection = ({ hookType, sources
|
|
10
|
-
return (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsxs(Box, { children: [_jsx(Text, { color: "cyan", bold: true, children: hookType }), _jsxs(Text, { dimColor: true, children: [" (", sources.length, " source", sources.length !== 1 ? "s" : "", ")"] })] }), _jsx(Box, { marginLeft: 2, children: _jsx(Text, { dimColor: true, children: "─".repeat(50) }) }), sources.map((source
|
|
9
|
+
const HookTypeSection = ({ hookType, sources }) => {
|
|
10
|
+
return (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsxs(Box, { children: [_jsx(Text, { color: "cyan", bold: true, children: hookType }), _jsxs(Text, { dimColor: true, children: [" ", "(", sources.length, " source", sources.length !== 1 ? "s" : "", ")"] })] }), _jsx(Box, { marginLeft: 2, children: _jsx(Text, { dimColor: true, children: "─".repeat(50) }) }), sources.map((source) => (_jsx(Box, { marginLeft: 2, children: _jsx(HookSourceDisplay, { source: source }) }, `source-${source.source}-${source.pluginName || source.scope}`)))] }));
|
|
11
11
|
};
|
|
12
12
|
export const HookExplainUI = ({ hooks, showAll, }) => {
|
|
13
13
|
if (hooks.length === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook-explain-ui.js","sourceRoot":"","sources":["../../lib/hook-explain-ui.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAyBhC,MAAM,gBAAgB,GAAiD,CAAC,EACvE,IAAI,EACJ,KAAK,GACL,EAAE,EAAE;IACJ,OAAO,CACN,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aACtE,MAAC,GAAG,eACH,MAAC,IAAI,IAAC,QAAQ,4BAAO,KAAK,GAAG,CAAC,UAAU,EACxC,K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GED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thebushidocollective/han",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.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",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"README.md"
|
|
52
52
|
],
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@thebushidocollective/han-darwin-arm64": "1.45.
|
|
55
|
-
"@thebushidocollective/han-darwin-x64": "1.45.
|
|
56
|
-
"@thebushidocollective/han-linux-arm64": "1.45.
|
|
57
|
-
"@thebushidocollective/han-linux-x64": "1.45.
|
|
58
|
-
"@thebushidocollective/han-win32-x64": "1.45.
|
|
54
|
+
"@thebushidocollective/han-darwin-arm64": "1.45.1",
|
|
55
|
+
"@thebushidocollective/han-darwin-x64": "1.45.1",
|
|
56
|
+
"@thebushidocollective/han-linux-arm64": "1.45.1",
|
|
57
|
+
"@thebushidocollective/han-linux-x64": "1.45.1",
|
|
58
|
+
"@thebushidocollective/han-win32-x64": "1.45.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@anthropic-ai/claude-agent-sdk": "0.1.50",
|