haansi 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/dist/haansi.js +5 -62
  2. package/package.json +1 -1
package/dist/haansi.js CHANGED
@@ -39,7 +39,7 @@ var require_package = __commonJS({
39
39
  "package.json"(exports2, module2) {
40
40
  module2.exports = {
41
41
  name: "haansi",
42
- version: "0.1.10",
42
+ version: "0.1.11",
43
43
  description: "Haansi CLI - Session collector and MCP server for Claude Code",
44
44
  bin: {
45
45
  haansi: "./dist/haansi.js"
@@ -56782,7 +56782,7 @@ var init_mcp_server2 = __esm({
56782
56782
  tools: [
56783
56783
  {
56784
56784
  name: "search_solutions",
56785
- description: "Semantic search over past Claude Code solutions stored in the knowledge base. Returns the most relevant distilled paths ranked by cosine similarity.",
56785
+ description: "Semantic search over past coding solutions mined from developer sessions. Use this to find how bugs were fixed, what patterns were used, and past resolutions to similar problems. Returns results ranked by relevance.",
56786
56786
  inputSchema: {
56787
56787
  type: "object",
56788
56788
  properties: {
@@ -56815,31 +56815,8 @@ var init_mcp_server2 = __esm({
56815
56815
  }
56816
56816
  },
56817
56817
  {
56818
- name: "search_knowledge",
56819
- description: "Search knowledge artifacts (knowledge cards, decision records, context summaries, incident summaries, etc.) for non-technical context and organizational knowledge. Use this when you need broader context beyond coding solutions \u2014 e.g., project decisions, incident details, team context.",
56820
- inputSchema: {
56821
- type: "object",
56822
- properties: {
56823
- query: {
56824
- type: "string",
56825
- description: "Keyword or phrase to search for"
56826
- },
56827
- artifact_type: {
56828
- type: "string",
56829
- description: "Filter by type: knowledge_card, decision_record, context_summary, incident_summary, etc."
56830
- },
56831
- limit: {
56832
- type: "number",
56833
- description: "Number of results to return (default: 10, max: 50)"
56834
- },
56835
- _context: contextSchema
56836
- },
56837
- required: ["query"]
56838
- }
56839
- },
56840
- {
56841
- name: "save_knowledge",
56842
- description: "Save a resolved problem and its solution so it can be found later by search_solutions. Use this when you've solved a non-trivial problem, discovered a useful pattern, or want to record a solution that may help in future sessions. Respects the user's privacy setting (org-wide or private).",
56818
+ name: "save_solution",
56819
+ description: "Save a resolved coding problem and its solution as a searchable artifact. The solution will be discoverable via search_solutions (semantic) and search_artifacts (keyword/hybrid). Use this when you've solved a non-trivial problem, discovered a useful pattern, or want to record a solution that may help in future sessions.",
56843
56820
  inputSchema: {
56844
56821
  type: "object",
56845
56822
  properties: {
@@ -56985,41 +56962,7 @@ var init_mcp_server2 = __esm({
56985
56962
  content: [{ type: "text", text: data.results.join("\n\n") }]
56986
56963
  };
56987
56964
  }
56988
- case "search_knowledge": {
56989
- const {
56990
- query,
56991
- artifact_type,
56992
- limit = 10,
56993
- _context
56994
- } = args;
56995
- const n = Math.min(Math.max(1, limit), 50);
56996
- const extraHeaders = {};
56997
- if (_context?.userId) {
56998
- extraHeaders["X-Session-User-Id"] = String(_context.userId);
56999
- }
57000
- if (_context?.orgId) {
57001
- extraHeaders["X-Session-Org-Id"] = String(_context.orgId);
57002
- }
57003
- let url2 = `/sessions/knowledge/search?q=${encodeURIComponent(query)}&limit=${n}`;
57004
- if (artifact_type) {
57005
- url2 += `&artifact_type=${encodeURIComponent(artifact_type)}`;
57006
- }
57007
- const data = await apiGet2(url2, { extraHeaders });
57008
- if (!data.results || data.results.length === 0) {
57009
- return {
57010
- content: [
57011
- {
57012
- type: "text",
57013
- text: "No knowledge artifacts found matching your query."
57014
- }
57015
- ]
57016
- };
57017
- }
57018
- return {
57019
- content: [{ type: "text", text: data.results.join("\n\n---\n\n") }]
57020
- };
57021
- }
57022
- case "save_knowledge": {
56965
+ case "save_solution": {
57023
56966
  const {
57024
56967
  problem_description,
57025
56968
  solution_summary,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haansi",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Haansi CLI - Session collector and MCP server for Claude Code",
5
5
  "bin": {
6
6
  "haansi": "./dist/haansi.js"