haansi 0.1.106 → 0.1.107

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 +12 -9
  2. package/package.json +1 -1
package/dist/haansi.js CHANGED
@@ -95,7 +95,7 @@ var require_package = __commonJS({
95
95
  "package.json"(exports2, module2) {
96
96
  module2.exports = {
97
97
  name: "haansi",
98
- version: "0.1.106",
98
+ version: "0.1.107",
99
99
  description: "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
100
100
  bin: {
101
101
  haansi: "./dist/haansi.js"
@@ -60178,7 +60178,7 @@ var init_stdio2 = __esm({
60178
60178
  function searchSolutionsTool(contextSchema2) {
60179
60179
  return {
60180
60180
  name: "search_solutions",
60181
- description: "Search previously solved similar questions from your organization's knowledge base. Finds how bugs were fixed, what patterns were used, and past resolutions to similar problems. Results are ranked by a composite of relevance, quality, recency, and verification status. For a failing test, pass its name in failing_tests and the error line in error. Pass the files you expect to change, or that the failure runs through, in files.",
60181
+ description: "Search previously solved similar questions from your organization's knowledge base. Finds how bugs were fixed, what patterns were used, and past resolutions to similar problems. Results are ranked by a composite of relevance, quality, recency, and verification status. Describe the problem in a sentence in query: a test name, an identifier or a list of file names alone rarely matches; pass those in the structured inputs instead. For a failing test, pass its name in failing_tests and the error line in error. Pass the files you expect to change, or that the failure runs through, in files.",
60182
60182
  inputSchema: {
60183
60183
  type: "object",
60184
60184
  properties: {
@@ -89359,6 +89359,7 @@ function visibleAsk(task) {
89359
89359
  task.card.acceptance,
89360
89360
  task.card.area ?? ""
89361
89361
  ].join("\n");
89362
+ const anchored = (q) => q.trim() ? `${head} ${q}` : "";
89362
89363
  let paths;
89363
89364
  let queries;
89364
89365
  let hints;
@@ -89372,10 +89373,12 @@ function visibleAsk(task) {
89372
89373
  ].slice(0, MAX_FAILING_PATHS);
89373
89374
  const files = [...new Set(paths.map(baseNameOf))];
89374
89375
  const errorLine = errorLineOf(failing.output);
89376
+ const titles = failing.tests.slice(0, FAILING_QUERIES).map(titleOfTest);
89375
89377
  queries = [
89376
- ...failing.tests.slice(0, FAILING_QUERIES).map(titleOfTest),
89377
- errorLine ?? "",
89378
- files.slice(0, 6).join(" ")
89378
+ anchored(titles[0] ?? ""),
89379
+ anchored(errorLine ?? ""),
89380
+ ...titles.slice(1).map(anchored),
89381
+ anchored(files.slice(0, 6).join(" "))
89379
89382
  ];
89380
89383
  hints = {
89381
89384
  failingTests: failing.tests,
@@ -89390,8 +89393,8 @@ function visibleAsk(task) {
89390
89393
  const names = iface.flatMap((e) => e.names);
89391
89394
  queries = [
89392
89395
  head,
89393
- ...(task.kind !== "recovery" ? task.testTitles ?? [] : []).slice(0, TITLE_QUERIES).map(titleOfTest),
89394
- names.join(" ")
89396
+ ...(task.kind !== "recovery" ? task.testTitles ?? [] : []).slice(0, TITLE_QUERIES).map((t) => anchored(titleOfTest(t))),
89397
+ anchored(names.join(" "))
89395
89398
  ];
89396
89399
  hints = { files: paths, names: [...new Set(names)] };
89397
89400
  }
@@ -89554,8 +89557,8 @@ var init_replay_context = __esm({
89554
89557
  init_replay_diff();
89555
89558
  init_replay_scale();
89556
89559
  init_replay_spec();
89557
- CONTEXT_CHECK_VERSION = 4;
89558
- QUERY_CHARS2 = 200;
89560
+ CONTEXT_CHECK_VERSION = 5;
89561
+ QUERY_CHARS2 = 300;
89559
89562
  ERROR_CHARS = 1e3;
89560
89563
  MAX_PATHS = 20;
89561
89564
  HEAD_CHARS = 120;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haansi",
3
- "version": "0.1.106",
3
+ "version": "0.1.107",
4
4
  "description": "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
5
5
  "bin": {
6
6
  "haansi": "./dist/haansi.js"