@thebushidocollective/han 1.41.2 → 1.42.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.
- package/dist/lib/build-info.generated.d.ts +1 -1
- package/dist/lib/build-info.generated.js +1 -1
- package/dist/lib/commands/mcp/server.d.ts.map +1 -1
- package/dist/lib/commands/mcp/server.js +37 -20
- package/dist/lib/commands/mcp/server.js.map +1 -1
- package/dist/lib/commands/mcp/tools.d.ts.map +1 -1
- package/dist/lib/commands/mcp/tools.js +23 -25
- package/dist/lib/commands/mcp/tools.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const HAN_VERSION = "1.
|
|
1
|
+
export declare const HAN_VERSION = "1.42.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.
|
|
2
|
+
export const HAN_VERSION = "1.42.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":"server.d.ts","sourceRoot":"","sources":["../../../../lib/commands/mcp/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../lib/commands/mcp/server.ts"],"names":[],"mappings":"AAmOA,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CA6BpD"}
|
|
@@ -9,28 +9,41 @@ function discoverTools() {
|
|
|
9
9
|
return cachedTools;
|
|
10
10
|
}
|
|
11
11
|
function formatToolsForMcp(tools) {
|
|
12
|
-
return tools.map((tool) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
return tools.map((tool) => {
|
|
13
|
+
// Generate a human-readable title from the tool name
|
|
14
|
+
const title = tool.hookName.charAt(0).toUpperCase() + tool.hookName.slice(1);
|
|
15
|
+
const technology = tool.pluginName.replace(/^(jutsu|do|hashi)-/, "");
|
|
16
|
+
const techDisplay = technology.charAt(0).toUpperCase() + technology.slice(1);
|
|
17
|
+
return {
|
|
18
|
+
name: tool.name,
|
|
19
|
+
description: tool.description,
|
|
20
|
+
annotations: {
|
|
21
|
+
title: `${title} ${techDisplay}`,
|
|
22
|
+
readOnlyHint: false, // These tools may modify files (e.g., formatters)
|
|
23
|
+
destructiveHint: false, // Not destructive - can be safely re-run
|
|
24
|
+
idempotentHint: true, // Safe to run multiple times with same result
|
|
25
|
+
openWorldHint: false, // Works with local files only
|
|
26
|
+
},
|
|
27
|
+
inputSchema: {
|
|
28
|
+
type: "object",
|
|
29
|
+
properties: {
|
|
30
|
+
verbose: {
|
|
31
|
+
type: "boolean",
|
|
32
|
+
description: "Show full command output in real-time. Set to true when debugging failures or when you want to see progress. Default: false (output captured and returned).",
|
|
33
|
+
},
|
|
34
|
+
failFast: {
|
|
35
|
+
type: "boolean",
|
|
36
|
+
description: "Stop immediately on first failure. Set to false to see all errors across all directories. Default: true.",
|
|
37
|
+
},
|
|
38
|
+
directory: {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "Limit execution to a specific directory path (relative to project root, e.g., 'packages/core' or 'src'). If omitted, runs in all applicable directories.",
|
|
41
|
+
},
|
|
29
42
|
},
|
|
43
|
+
required: [],
|
|
30
44
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}));
|
|
45
|
+
};
|
|
46
|
+
});
|
|
34
47
|
}
|
|
35
48
|
function handleInitialize() {
|
|
36
49
|
return {
|
|
@@ -102,6 +115,10 @@ async function handleRequest(request) {
|
|
|
102
115
|
case "initialized":
|
|
103
116
|
// Notification, no response needed
|
|
104
117
|
return { jsonrpc: "2.0", id: request.id, result: {} };
|
|
118
|
+
case "ping":
|
|
119
|
+
// Simple ping/pong for health checks
|
|
120
|
+
result = {};
|
|
121
|
+
break;
|
|
105
122
|
case "tools/list":
|
|
106
123
|
result = handleToolsList();
|
|
107
124
|
break;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../lib/commands/mcp/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EACN,mBAAmB,EACnB,iBAAiB,GAEjB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../lib/commands/mcp/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EACN,mBAAmB,EACnB,iBAAiB,GAEjB,MAAM,YAAY,CAAC;AAuCpB,yBAAyB;AACzB,IAAI,WAAW,GAAwB,IAAI,CAAC;AAE5C,SAAS,aAAa;IACrB,IAAI,CAAC,WAAW,EAAE,CAAC;QAClB,WAAW,GAAG,mBAAmB,EAAE,CAAC;IACrC,CAAC;IACD,OAAO,WAAW,C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AAa;oBACtB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC;iBACnB;aACD,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../lib/commands/mcp/tools.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../lib/commands/mcp/tools.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB;AA6QD;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,UAAU,EAAE,CAqClD;AAED,MAAM,WAAW,kBAAkB;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACtC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,kBAAkB,GACzB,OAAO,CAAC,iBAAiB,CAAC,CA0E5B"}
|
|
@@ -159,36 +159,34 @@ function getPluginDir(pluginName, marketplace, marketplaceConfig) {
|
|
|
159
159
|
return findPluginInMarketplace(marketplaceRoot, pluginName);
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* Generate a human-readable description for a hook tool
|
|
162
|
+
* Generate a human-readable description for a hook tool with natural language examples
|
|
163
163
|
*/
|
|
164
164
|
function generateToolDescription(pluginName, hookName, pluginConfig) {
|
|
165
165
|
const hookDef = pluginConfig.hooks[hookName];
|
|
166
|
-
if (!hookDef) {
|
|
167
|
-
return `Run ${hookName} for ${pluginName}`;
|
|
168
|
-
}
|
|
169
|
-
// Build a description based on the hook definition
|
|
170
|
-
const parts = [];
|
|
171
|
-
// Describe what the hook does based on its name
|
|
172
|
-
const actionMap = {
|
|
173
|
-
test: "Run tests",
|
|
174
|
-
lint: "Run linter",
|
|
175
|
-
format: "Check formatting",
|
|
176
|
-
typecheck: "Run type checking",
|
|
177
|
-
compile: "Compile code",
|
|
178
|
-
build: "Build project",
|
|
179
|
-
};
|
|
180
|
-
const action = actionMap[hookName] || `Run ${hookName}`;
|
|
181
|
-
parts.push(action);
|
|
182
|
-
// Add context about the plugin
|
|
183
166
|
const technology = pluginName.replace(/^(jutsu|do|hashi)-/, "");
|
|
184
|
-
|
|
185
|
-
//
|
|
186
|
-
|
|
187
|
-
|
|
167
|
+
const techDisplay = technology.charAt(0).toUpperCase() + technology.slice(1);
|
|
168
|
+
// Rich descriptions with natural language trigger examples
|
|
169
|
+
const descriptions = {
|
|
170
|
+
test: (tech, display) => `Run ${display} tests. Triggers: "run the tests", "run ${tech} tests", "check if tests pass", "execute test suite"`,
|
|
171
|
+
lint: (tech, display) => `Lint ${display} code for issues and style violations. Triggers: "lint the code", "check for ${tech} issues", "run the linter", "check code quality"`,
|
|
172
|
+
typecheck: (_tech, display) => `Type-check ${display} code for type errors. Triggers: "check types", "run type checking", "verify types", "typescript check"`,
|
|
173
|
+
format: (_tech, display) => `Check and fix ${display} code formatting. Triggers: "format the code", "check formatting", "fix formatting", "run formatter"`,
|
|
174
|
+
build: (_tech, display) => `Build the ${display} project. Triggers: "build the project", "compile the code", "run the build"`,
|
|
175
|
+
compile: (tech, display) => `Compile ${display} code. Triggers: "compile the code", "run compilation", "build ${tech}"`,
|
|
176
|
+
};
|
|
177
|
+
const descFn = descriptions[hookName];
|
|
178
|
+
let desc = descFn
|
|
179
|
+
? descFn(technology, techDisplay)
|
|
180
|
+
: `Run ${hookName} for ${techDisplay}. Triggers: "run ${hookName}", "${hookName} the ${technology} code"`;
|
|
181
|
+
// Add context about where it runs
|
|
182
|
+
if (hookDef?.dirsWith && hookDef.dirsWith.length > 0) {
|
|
183
|
+
desc += `. Runs in directories containing: ${hookDef.dirsWith.join(", ")}`;
|
|
184
|
+
}
|
|
185
|
+
// Add the actual command for transparency
|
|
186
|
+
if (hookDef?.command) {
|
|
187
|
+
desc += `. Command: ${hookDef.command}`;
|
|
188
188
|
}
|
|
189
|
-
|
|
190
|
-
parts.push(`- runs: ${hookDef.command}`);
|
|
191
|
-
return parts.join(" ");
|
|
189
|
+
return desc;
|
|
192
190
|
}
|
|
193
191
|
/**
|
|
194
192
|
* Discover all plugin tools from installed plugins
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../../lib/commands/mcp/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAqB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AA0BtD;;GAEG;AACH,SAAS,kBAAkB;IAC1B,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;QACnC,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,CAAC;IACD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;IAC5D,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,EAAE,CAA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,QAAQ,KAAK,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,GAAG,KAAK,CAAC;QAChB,WAAW,CAAC,IAAI,CACf,UAAU,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAClE,CAAC;IACH,CAAC;YAAS,CAAC;QACV,OAAO,CAAC,GAAG,GAAG,WAAW,CAAC;QAC1B,OAAO,CAAC,KAAK,GAAG,aAAa,CAAC;IAC/B,CAAC;IAED,OAAO;QACN,OAAO;QACP,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;KAClE,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thebushidocollective/han",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.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.
|
|
55
|
-
"@thebushidocollective/han-darwin-x64": "1.
|
|
56
|
-
"@thebushidocollective/han-linux-arm64": "1.
|
|
57
|
-
"@thebushidocollective/han-linux-x64": "1.
|
|
58
|
-
"@thebushidocollective/han-win32-x64": "1.
|
|
54
|
+
"@thebushidocollective/han-darwin-arm64": "1.42.0",
|
|
55
|
+
"@thebushidocollective/han-darwin-x64": "1.42.0",
|
|
56
|
+
"@thebushidocollective/han-linux-arm64": "1.42.0",
|
|
57
|
+
"@thebushidocollective/han-linux-x64": "1.42.0",
|
|
58
|
+
"@thebushidocollective/han-win32-x64": "1.42.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@anthropic-ai/claude-agent-sdk": "0.1.50",
|