@thebushidocollective/han 1.48.6 → 1.49.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.
@@ -1,3 +1,3 @@
1
- export declare const HAN_VERSION = "1.48.6";
1
+ export declare const HAN_VERSION = "1.49.0";
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.48.6";
2
+ export const HAN_VERSION = "1.49.0";
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":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/hook/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMzC;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAO3D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/hook/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAQ3D"}
@@ -2,6 +2,7 @@ import { registerHookDispatch } from "./dispatch.js";
2
2
  import { registerHookExplain } from "./explain.js";
3
3
  import { registerHookRun } from "./run.js";
4
4
  import { registerHookTest } from "./test.js";
5
+ import { registerHookVerify } from "./verify.js";
5
6
  /**
6
7
  * Register all hook-related commands under `han hook`
7
8
  */
@@ -11,5 +12,6 @@ export function registerHookCommands(program) {
11
12
  registerHookExplain(hookCommand);
12
13
  registerHookRun(hookCommand);
13
14
  registerHookTest(hookCommand);
15
+ registerHookVerify(hookCommand);
14
16
  }
15
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/commands/hook/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACpD,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAE1E,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAClC,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACjC,eAAe,CAAC,WAAW,CAAC,CAAC;IAC7B,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAC/B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/commands/hook/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACpD,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAE1E,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAClC,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACjC,eAAe,CAAC,WAAW,CAAC,CAAC;IAC7B,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAC9B,kBAAkB,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerHookVerify(hookCommand: Command): void;
3
+ //# sourceMappingURL=verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../../lib/commands/hook/verify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8QzC,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAY7D"}
@@ -0,0 +1,195 @@
1
+ import { existsSync, readFileSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { getClaudeConfigDir, getMergedPluginsAndMarketplaces, } from "../../claude-settings.js";
4
+ import { checkForChanges } from "../../hook-cache.js";
5
+ import { getHookConfigs } from "../../hook-config.js";
6
+ /**
7
+ * Find plugin in a marketplace root directory
8
+ */
9
+ function findPluginInMarketplace(marketplaceRoot, pluginName) {
10
+ const potentialPaths = [
11
+ join(marketplaceRoot, "jutsu", pluginName),
12
+ join(marketplaceRoot, "do", pluginName),
13
+ join(marketplaceRoot, "hashi", pluginName),
14
+ join(marketplaceRoot, pluginName),
15
+ ];
16
+ for (const path of potentialPaths) {
17
+ if (existsSync(path)) {
18
+ return path;
19
+ }
20
+ }
21
+ return null;
22
+ }
23
+ /**
24
+ * Resolve a path to absolute, relative to cwd
25
+ */
26
+ function resolveToAbsolute(path) {
27
+ if (path.startsWith("/")) {
28
+ return path;
29
+ }
30
+ return join(process.cwd(), path);
31
+ }
32
+ /**
33
+ * Get plugin directory based on plugin name, marketplace, and marketplace config
34
+ */
35
+ function getPluginDir(pluginName, marketplace, marketplaceConfig) {
36
+ // If marketplace config specifies a directory source, use that path
37
+ if (marketplaceConfig?.source?.source === "directory") {
38
+ const directoryPath = marketplaceConfig.source.path;
39
+ if (directoryPath) {
40
+ const absolutePath = resolveToAbsolute(directoryPath);
41
+ const found = findPluginInMarketplace(absolutePath, pluginName);
42
+ if (found) {
43
+ return found;
44
+ }
45
+ }
46
+ }
47
+ // Check if we're in the marketplace repo itself (for development)
48
+ const cwd = process.cwd();
49
+ if (existsSync(join(cwd, ".claude-plugin", "marketplace.json"))) {
50
+ const found = findPluginInMarketplace(cwd, pluginName);
51
+ if (found) {
52
+ return found;
53
+ }
54
+ }
55
+ // Fall back to the default shared config path
56
+ const configDir = getClaudeConfigDir();
57
+ if (!configDir) {
58
+ return null;
59
+ }
60
+ const marketplaceRoot = join(configDir, "plugins", "marketplaces", marketplace);
61
+ if (!existsSync(marketplaceRoot)) {
62
+ return null;
63
+ }
64
+ return findPluginInMarketplace(marketplaceRoot, pluginName);
65
+ }
66
+ /**
67
+ * Load a plugin's hooks.json
68
+ */
69
+ function loadPluginHooks(pluginName, marketplace, marketplaceConfig) {
70
+ const pluginRoot = getPluginDir(pluginName, marketplace, marketplaceConfig);
71
+ if (!pluginRoot) {
72
+ return null;
73
+ }
74
+ const hooksPath = join(pluginRoot, "hooks", "hooks.json");
75
+ if (!existsSync(hooksPath)) {
76
+ return null;
77
+ }
78
+ try {
79
+ const content = readFileSync(hooksPath, "utf-8");
80
+ return {
81
+ hooks: JSON.parse(content),
82
+ pluginRoot,
83
+ };
84
+ }
85
+ catch {
86
+ return null;
87
+ }
88
+ }
89
+ /**
90
+ * Parse a hook command to extract plugin name and hook name
91
+ * Example: "npx -y @thebushidocollective/han hook run jutsu-typescript test --fail-fast --cached"
92
+ * Returns: { pluginName: "jutsu-typescript", hookName: "test" }
93
+ */
94
+ function parseHookCommand(command) {
95
+ // Match: han hook run <plugin-name> <hook-name>
96
+ const match = command.match(/han\s+hook\s+run\s+(\S+)\s+(\S+)/);
97
+ if (match) {
98
+ return {
99
+ pluginName: match[1],
100
+ hookName: match[2],
101
+ };
102
+ }
103
+ return null;
104
+ }
105
+ /**
106
+ * Verify that all hooks of a specific type have been run and are cached
107
+ */
108
+ function verifyHooks(hookType) {
109
+ // Allow global disable of all hooks via environment variable
110
+ if (process.env.HAN_DISABLE_HOOKS === "true" ||
111
+ process.env.HAN_DISABLE_HOOKS === "1") {
112
+ process.exit(0);
113
+ }
114
+ const { plugins, marketplaces } = getMergedPluginsAndMarketplaces();
115
+ const projectDir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
116
+ const staleHooks = [];
117
+ let totalHooks = 0;
118
+ for (const [pluginName, marketplace] of plugins.entries()) {
119
+ const marketplaceConfig = marketplaces.get(marketplace);
120
+ const result = loadPluginHooks(pluginName, marketplace, marketplaceConfig);
121
+ if (!result?.hooks?.hooks?.[hookType]) {
122
+ continue;
123
+ }
124
+ const { hooks: pluginHooks } = result;
125
+ const hookGroups = pluginHooks.hooks[hookType];
126
+ for (const group of hookGroups) {
127
+ for (const hook of group.hooks) {
128
+ // Only verify command hooks
129
+ if (hook.type === "command" && hook.command) {
130
+ totalHooks++;
131
+ // Parse the command to extract plugin name and hook name
132
+ const parsed = parseHookCommand(hook.command);
133
+ if (!parsed) {
134
+ // Can't verify hooks we can't parse
135
+ continue;
136
+ }
137
+ const { pluginName: targetPlugin, hookName: targetHook } = parsed;
138
+ // Get the plugin's han-config.json to find the hook configuration
139
+ const targetPluginRoot = getPluginDir(targetPlugin, marketplace, marketplaceConfig);
140
+ if (!targetPluginRoot) {
141
+ staleHooks.push({
142
+ plugin: targetPlugin,
143
+ hook: targetHook,
144
+ reason: "Plugin not found",
145
+ });
146
+ continue;
147
+ }
148
+ // Load hook configs to get ifChanged patterns
149
+ const configs = getHookConfigs(targetPluginRoot, targetHook, projectDir);
150
+ // Check each config (directory) for cache status
151
+ for (const config of configs) {
152
+ if (config.ifChanged && config.ifChanged.length > 0) {
153
+ // Check if cache is stale
154
+ const hasChanges = checkForChanges(targetPlugin, targetHook, config.directory, config.ifChanged, targetPluginRoot);
155
+ if (hasChanges) {
156
+ staleHooks.push({
157
+ plugin: targetPlugin,
158
+ hook: targetHook,
159
+ reason: `Files changed in ${config.directory}`,
160
+ });
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ // Report results
169
+ if (staleHooks.length === 0) {
170
+ if (totalHooks === 0) {
171
+ console.log(`No ${hookType} hooks found to verify`);
172
+ return 0;
173
+ }
174
+ console.log(`✅ All ${totalHooks} ${hookType} hooks are cached`);
175
+ return 0;
176
+ }
177
+ console.error(`❌ ${staleHooks.length} hook(s) need to be run:\n`);
178
+ for (const { plugin, hook, reason } of staleHooks) {
179
+ console.error(` ${plugin}:${hook} - ${reason}`);
180
+ }
181
+ console.error(`\nRun: npx -y @thebushidocollective/han hook dispatch ${hookType}`);
182
+ return 1;
183
+ }
184
+ export function registerHookVerify(hookCommand) {
185
+ hookCommand
186
+ .command("verify <hookType>")
187
+ .description("Verify that all hooks of a specific type have been run and are cached.\n" +
188
+ "Exits 0 if all hooks are cached, non-zero if any hooks need to be run.\n\n" +
189
+ "Example: han hook verify Stop")
190
+ .action((hookType) => {
191
+ const exitCode = verifyHooks(hookType);
192
+ process.exit(exitCode);
193
+ });
194
+ }
195
+ //# sourceMappingURL=verify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../../../lib/commands/hook/verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACn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E;QACzE,4EAA4E;QAC5E,+BAA+B,CAChC;SACA,MAAM,CAAC,CAAC,QAAgB,EAAE,EAAE;QAC5B,MAAM,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;QACvC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thebushidocollective/han",
3
- "version": "1.48.6",
3
+ "version": "1.49.0",
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.48.6",
55
- "@thebushidocollective/han-darwin-x64": "1.48.6",
56
- "@thebushidocollective/han-linux-arm64": "1.48.6",
57
- "@thebushidocollective/han-linux-x64": "1.48.6",
58
- "@thebushidocollective/han-win32-x64": "1.48.6"
54
+ "@thebushidocollective/han-darwin-arm64": "1.49.0",
55
+ "@thebushidocollective/han-darwin-x64": "1.49.0",
56
+ "@thebushidocollective/han-linux-arm64": "1.49.0",
57
+ "@thebushidocollective/han-linux-x64": "1.49.0",
58
+ "@thebushidocollective/han-win32-x64": "1.49.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@anthropic-ai/claude-agent-sdk": "0.1.50",