haansi 0.1.4 → 0.1.5
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/haansi.js +16 -4
- package/package.json +1 -1
package/dist/haansi.js
CHANGED
|
@@ -32004,6 +32004,18 @@ Collector done: ${uploaded} uploaded, ${skipped} unchanged, ${errors} errors`
|
|
|
32004
32004
|
await setupDaemon2(uninstall);
|
|
32005
32005
|
break;
|
|
32006
32006
|
}
|
|
32007
|
+
case "search": {
|
|
32008
|
+
const { list: list2 } = await Promise.resolve().then(() => (init_list(), list_exports));
|
|
32009
|
+
const query = process.argv[3];
|
|
32010
|
+
if (!query || query.startsWith("--")) {
|
|
32011
|
+
console.error("Usage: haansi search <query> [--limit <n>]");
|
|
32012
|
+
process.exit(1);
|
|
32013
|
+
}
|
|
32014
|
+
const limitIdx = process.argv.indexOf("--limit");
|
|
32015
|
+
const limit = limitIdx !== -1 ? parseInt(process.argv[limitIdx + 1], 10) : 5;
|
|
32016
|
+
await list2({ search: query, limit });
|
|
32017
|
+
break;
|
|
32018
|
+
}
|
|
32007
32019
|
case "list": {
|
|
32008
32020
|
const { list: list2 } = await Promise.resolve().then(() => (init_list(), list_exports));
|
|
32009
32021
|
const searchIdx = process.argv.indexOf("--search");
|
|
@@ -32031,16 +32043,16 @@ Usage:
|
|
|
32031
32043
|
Commands:
|
|
32032
32044
|
init Authenticate and save your API token
|
|
32033
32045
|
collect Upload new/changed Claude sessions once
|
|
32046
|
+
search <query> Semantic search over mined solutions
|
|
32047
|
+
list List recent mined solutions
|
|
32034
32048
|
daemon Run the collector on a schedule (every 30 min)
|
|
32035
32049
|
mcp-server Start the Haansi MCP server (used by Claude Code)
|
|
32036
32050
|
setup-mcp Add haansi-solutions MCP entry to ~/.claude.json
|
|
32037
|
-
list List or search mined solutions
|
|
32038
32051
|
setup-daemon Install launchd service to auto-start daemon on login (macOS)
|
|
32039
32052
|
help Show this help message
|
|
32040
32053
|
|
|
32041
|
-
Options for list:
|
|
32042
|
-
--
|
|
32043
|
-
--limit <n> Number of results (default: 10)
|
|
32054
|
+
Options for search/list:
|
|
32055
|
+
--limit <n> Number of results (default: 5 for search, 10 for list)
|
|
32044
32056
|
|
|
32045
32057
|
Options for collect:
|
|
32046
32058
|
--force-all Re-upload all sessions, not just new ones
|