@wrongstack/tools 1.0.5 → 1.0.7

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 (89) hide show
  1. package/dist/audit.js +4 -4
  2. package/dist/bash.js +2 -2
  3. package/dist/builtin.js +39 -39
  4. package/dist/{chunk-HKR56VNF.js → chunk-2IAEJRLT.js} +4 -3
  5. package/dist/{chunk-5UA4TNJJ.js → chunk-2NTHMZV3.js} +2 -2
  6. package/dist/{chunk-ZSW5KO5S.js → chunk-2W4XTULI.js} +2 -2
  7. package/dist/{chunk-JQ43NVFU.js → chunk-3LQJXJDM.js} +2 -2
  8. package/dist/{chunk-OVFQC6FU.js → chunk-4DK5WZGR.js} +341 -146
  9. package/dist/{chunk-47GYABZW.js → chunk-4SW6BXUR.js} +2 -2
  10. package/dist/{chunk-7EQ2LUXU.js → chunk-5MP76C72.js} +3 -3
  11. package/dist/{chunk-7PEZU5Y4.js → chunk-7E55DAFW.js} +8 -8
  12. package/dist/{chunk-YILT3CSO.js → chunk-A3LNNBYO.js} +14 -5
  13. package/dist/{chunk-D4HWMWGE.js → chunk-AH7J5HWL.js} +3 -3
  14. package/dist/{chunk-OZVGRDCM.js → chunk-B62LKMWQ.js} +3 -3
  15. package/dist/{chunk-WKXL5XHU.js → chunk-BVHKBBGA.js} +2 -2
  16. package/dist/{chunk-54SIRJ6D.js → chunk-C4DSQBTT.js} +3 -3
  17. package/dist/{chunk-2ZWQIVEW.js → chunk-CAF4L6KN.js} +2 -2
  18. package/dist/{chunk-4KI4HHID.js → chunk-CLJXKFVS.js} +2 -2
  19. package/dist/{chunk-MG7CUN6R.js → chunk-EGT5QLCB.js} +6 -3
  20. package/dist/{chunk-TL5T4A4E.js → chunk-GF4JHLCO.js} +3 -3
  21. package/dist/{chunk-ZETZHHV5.js → chunk-H2VB7GCR.js} +3 -3
  22. package/dist/{chunk-C64UUXTA.js → chunk-HCPSVK7J.js} +3 -3
  23. package/dist/{chunk-K7Y2IWEB.js → chunk-HIRVCXLP.js} +4 -4
  24. package/dist/{chunk-CYPYJIAF.js → chunk-JB5JLY7V.js} +4 -4
  25. package/dist/{chunk-IMIHTHF7.js → chunk-JKFIDWQG.js} +2 -2
  26. package/dist/{chunk-S6E2AM4U.js → chunk-KF7GMVNU.js} +3 -3
  27. package/dist/{chunk-IOOFLBVM.js → chunk-KMXPP32M.js} +3 -3
  28. package/dist/{chunk-6ZRP5IKQ.js → chunk-KPR53VKZ.js} +2 -2
  29. package/dist/{chunk-REWOZIA4.js → chunk-M2W36JT7.js} +2 -2
  30. package/dist/{chunk-BU6VUXWG.js → chunk-N3OTTQNC.js} +2 -2
  31. package/dist/{chunk-YJQQ5F5J.js → chunk-NL45OWEO.js} +3 -3
  32. package/dist/{chunk-NKOTOW6X.js → chunk-O6AGFJBO.js} +3 -3
  33. package/dist/{chunk-OBVXDVLE.js → chunk-QJARSK2G.js} +3 -3
  34. package/dist/{chunk-R36RWYXE.js → chunk-R3HIZVFS.js} +3 -3
  35. package/dist/{chunk-TGVQMKVH.js → chunk-S6CGSFLX.js} +3 -3
  36. package/dist/{chunk-JK5WXW4S.js → chunk-SEONDNLN.js} +2 -2
  37. package/dist/{chunk-6IEBD27U.js → chunk-SKRMUHTU.js} +2 -2
  38. package/dist/{chunk-DOHU3XHS.js → chunk-TU6UVATU.js} +3 -3
  39. package/dist/{chunk-G35NLPG5.js → chunk-WKLUOXR4.js} +3 -3
  40. package/dist/{chunk-FRIUJ534.js → chunk-YPSIG23D.js} +3 -3
  41. package/dist/{chunk-5BKQVP56.js → chunk-YZECCW3F.js} +34 -14
  42. package/dist/{chunk-3F7HQ3KS.js → chunk-YZQSUL5G.js} +2 -2
  43. package/dist/{chunk-2IC5FRD7.js → chunk-ZMCV3XOV.js} +2 -2
  44. package/dist/{chunk-WBAPU3AB.js → chunk-ZOUG3KKS.js} +2 -2
  45. package/dist/clarify.d.ts +26 -19
  46. package/dist/codebase-index/index.js +8 -8
  47. package/dist/codebase-index/parser-worker-script.js +3 -3
  48. package/dist/codebase-index/project-server.js +5 -5
  49. package/dist/codebase-index/worker.js +4 -4
  50. package/dist/diff.js +2 -2
  51. package/dist/e2e.js +2 -2
  52. package/dist/edit.js +8 -8
  53. package/dist/exec.js +2 -2
  54. package/dist/fetch.js +2 -2
  55. package/dist/format.js +4 -4
  56. package/dist/{generic-parser-WFMIRHBX.js → generic-parser-N2PLGBC2.js} +2 -2
  57. package/dist/git.js +2 -2
  58. package/dist/glob.js +2 -2
  59. package/dist/{go-parser-EMKTAAD3.js → go-parser-VDPRQEGM.js} +5 -5
  60. package/dist/grep.js +2 -2
  61. package/dist/index.d.ts +1 -1
  62. package/dist/index.js +41 -41
  63. package/dist/install.js +4 -4
  64. package/dist/{json-parser-34DHYCPW.js → json-parser-IJD77VL4.js} +11 -17
  65. package/dist/json.js +2 -2
  66. package/dist/kanban.js +2 -2
  67. package/dist/languages/index.js +2 -2
  68. package/dist/{legacy-bridge-XM2GV665.js → legacy-bridge-4T4OTSQP.js} +4 -4
  69. package/dist/lint.js +4 -4
  70. package/dist/logs.js +2 -2
  71. package/dist/outdated.js +2 -2
  72. package/dist/pack.js +40 -40
  73. package/dist/{parser-dispatch-HZDZSIYH.js → parser-dispatch-4E2SDQUO.js} +4 -4
  74. package/dist/patch.js +8 -8
  75. package/dist/plan.js +4 -4
  76. package/dist/{py-parser-DDG53RXI.js → py-parser-MAW6DHFE.js} +3 -3
  77. package/dist/read.js +8 -8
  78. package/dist/replace.js +8 -8
  79. package/dist/session-kanban.d.ts +7 -0
  80. package/dist/session-kanban.js +3 -1
  81. package/dist/task.js +4 -4
  82. package/dist/test.js +4 -4
  83. package/dist/todo.js +3 -3
  84. package/dist/tool-tier.js +41 -41
  85. package/dist/tree.js +2 -2
  86. package/dist/typecheck.js +4 -4
  87. package/dist/write.js +8 -8
  88. package/dist/{yaml-parser-RGBXEZE4.js → yaml-parser-DFBC5FWH.js} +7 -6
  89. package/package.json +5 -5
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  builtinToolsPack
3
- } from "./chunk-6ZRP5IKQ.js";
3
+ } from "./chunk-KPR53VKZ.js";
4
4
  import {
5
5
  TIER1_TOOLS,
6
6
  TIER2_TOOLS
7
- } from "./chunk-OVFQC6FU.js";
7
+ } from "./chunk-4DK5WZGR.js";
8
8
 
9
9
  // src/tool-tier.ts
10
10
  function toolNameSet(tools) {
@@ -54,4 +54,4 @@ export {
54
54
  selectBuiltinToolsForTier,
55
55
  registerBuiltinToolTier
56
56
  };
57
- //# sourceMappingURL=chunk-FRIUJ534.js.map
57
+ //# sourceMappingURL=chunk-YPSIG23D.js.map
@@ -611,7 +611,7 @@ function queueLatestMirror(projectRoot, sessionId, graph, sourceSystem) {
611
611
  });
612
612
  if (activeMirrors.has(key)) return;
613
613
  activeMirrors.add(key);
614
- void (async () => {
614
+ const pump = (async () => {
615
615
  try {
616
616
  for (; ; ) {
617
617
  const pending = pendingMirrors.get(key);
@@ -666,6 +666,7 @@ function queueLatestMirror(projectRoot, sessionId, graph, sourceSystem) {
666
666
  }
667
667
  }
668
668
  })();
669
+ trackBackgroundWork(pump);
669
670
  }
670
671
  function takeSessionMirrorFailure(projectRoot, sessionId) {
671
672
  if (!projectRoot || !sessionId) return void 0;
@@ -704,20 +705,38 @@ function projectSessionPlanToKanban(projectRoot, items, sessionId) {
704
705
  "session-plan"
705
706
  );
706
707
  }
707
- function fireAndForget(context, work) {
708
- void work.catch((err) => {
709
- const message = err instanceof Error ? err.message : String(err);
710
- console.warn(
711
- JSON.stringify({
712
- level: "warn",
713
- event: "session-kanban",
714
- context,
715
- message,
716
- timestamp: (/* @__PURE__ */ new Date()).toISOString()
717
- })
718
- );
708
+ var backgroundWork = /* @__PURE__ */ new Set();
709
+ function trackBackgroundWork(work) {
710
+ const tracked = work.then(
711
+ () => void 0,
712
+ () => void 0
713
+ );
714
+ backgroundWork.add(tracked);
715
+ void tracked.then(() => {
716
+ backgroundWork.delete(tracked);
719
717
  });
720
718
  }
719
+ async function settleSessionKanbanBackgroundWork(maxPasses = 25) {
720
+ for (let pass = 0; pass < maxPasses && backgroundWork.size > 0; pass += 1) {
721
+ await Promise.all([...backgroundWork]);
722
+ }
723
+ }
724
+ function fireAndForget(context, work) {
725
+ trackBackgroundWork(
726
+ work.catch((err) => {
727
+ const message = err instanceof Error ? err.message : String(err);
728
+ console.warn(
729
+ JSON.stringify({
730
+ level: "warn",
731
+ event: "session-kanban",
732
+ context,
733
+ message,
734
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
735
+ })
736
+ );
737
+ })
738
+ );
739
+ }
721
740
  function mirrorSessionTodosToKanban(projectRoot, todos, sessionId) {
722
741
  queueLatestMirror(
723
742
  projectRoot,
@@ -1003,6 +1022,7 @@ export {
1003
1022
  projectSessionTodosToKanban,
1004
1023
  projectSessionTasksToKanban,
1005
1024
  projectSessionPlanToKanban,
1025
+ settleSessionKanbanBackgroundWork,
1006
1026
  mirrorSessionTodosToKanban,
1007
1027
  mirrorSessionTasksToKanban,
1008
1028
  mirrorSessionPlanToKanban,
@@ -1014,4 +1034,4 @@ export {
1014
1034
  applyManagedKanbanBoardToTodos2 as applyManagedKanbanBoardToTodos,
1015
1035
  applySessionKanbanTaskToSource2 as applySessionKanbanTaskToSource
1016
1036
  };
1017
- //# sourceMappingURL=chunk-5BKQVP56.js.map
1037
+ //# sourceMappingURL=chunk-YZECCW3F.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  safeResolveReal
3
- } from "./chunk-HKR56VNF.js";
3
+ } from "./chunk-2IAEJRLT.js";
4
4
 
5
5
  // src/tree.ts
6
6
  import * as fs from "node:fs/promises";
@@ -248,4 +248,4 @@ export {
248
248
  MAX_TREE_OUTPUT_BYTES,
249
249
  treeTool
250
250
  };
251
- //# sourceMappingURL=chunk-3F7HQ3KS.js.map
251
+ //# sourceMappingURL=chunk-YZQSUL5G.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  COMMAND_OUTPUT_MAX_BYTES,
3
3
  normalizeCommandOutput
4
- } from "./chunk-HKR56VNF.js";
4
+ } from "./chunk-2IAEJRLT.js";
5
5
 
6
6
  // src/git.ts
7
7
  import { spawn } from "node:child_process";
@@ -373,4 +373,4 @@ function runGit(args, cwd, signal) {
373
373
  export {
374
374
  gitTool
375
375
  };
376
- //# sourceMappingURL=chunk-2IC5FRD7.js.map
376
+ //# sourceMappingURL=chunk-ZMCV3XOV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveIndexDir
3
- } from "./chunk-54SIRJ6D.js";
3
+ } from "./chunk-C4DSQBTT.js";
4
4
 
5
5
  // src/codebase-index/project-server-endpoint.ts
6
6
  import { createHash } from "node:crypto";
@@ -158,4 +158,4 @@ export {
158
158
  PROJECT_INDEX_SERVER_MAX_FRAME_CHARS,
159
159
  encodeProjectServerMessage
160
160
  };
161
- //# sourceMappingURL=chunk-WBAPU3AB.js.map
161
+ //# sourceMappingURL=chunk-ZOUG3KKS.js.map
package/dist/clarify.d.ts CHANGED
@@ -1,45 +1,52 @@
1
- /**
2
- * `clarify` tool — Proactive Ambiguity Clarifier & Intent Alignment.
3
- *
4
- * Prompts the user with structured, multiple-choice questions when architectural,
5
- * database schema, API contract, or domain logic assumptions are underspecified.
6
- * Bridges clarify + ask_question into a single unified interactive tool
7
- * functioning consistently across CLI, TUI, and WebUI.
8
- */
9
1
  import type { Tool } from '@wrongstack/core/types';
2
+ export interface ClarifyOptionInput {
3
+ id?: string | undefined;
4
+ label: string;
5
+ description?: string | undefined;
6
+ }
10
7
  export interface ClarifyQuestionItem {
11
- /** The core decision or question to clarify with the user. */
8
+ id?: string | undefined;
12
9
  question: string;
13
- /** Context or explanation of why this decision matters (e.g. index performance, validation). */
14
10
  context?: string | undefined;
15
- /** 2 to 6 structured, distinct choices for the user to select. */
16
- options: string[];
17
- /** The option recommended by the assistant based on best practices. */
11
+ type?: 'single_select' | 'multi_select' | 'text' | undefined;
12
+ options?: Array<string | ClarifyOptionInput> | undefined;
18
13
  recommendedOption?: string | undefined;
19
- /** Whether the user can select multiple options simultaneously. */
14
+ recommendedOptions?: string[] | undefined;
15
+ recommendedText?: string | undefined;
16
+ recommendationReason?: string | undefined;
20
17
  isMultiSelect?: boolean | undefined;
21
- /** Snake-case alias for isMultiSelect (Antigravity compatibility). */
22
18
  is_multi_select?: boolean | undefined;
23
- /** Allow write-in custom responses in addition to options (default: true). */
24
19
  allowCustomResponse?: boolean | undefined;
20
+ required?: boolean | undefined;
21
+ placeholder?: string | undefined;
22
+ }
23
+ export interface ClarifyTabInput {
24
+ id?: string | undefined;
25
+ label: string;
26
+ description?: string | undefined;
27
+ questions: ClarifyQuestionItem[];
25
28
  }
26
29
  export interface ClarifyQuestionInput extends Partial<ClarifyQuestionItem> {
27
- /** Batch questions list (Antigravity ask_question parity). */
30
+ title?: string | undefined;
31
+ description?: string | undefined;
32
+ submitLabel?: string | undefined;
28
33
  questions?: ClarifyQuestionItem[] | undefined;
34
+ tabs?: ClarifyTabInput[] | undefined;
29
35
  }
30
36
  export type ClarifyInput = ClarifyQuestionInput;
31
37
  export interface ClarifyAnswerItem {
38
+ questionId: string;
32
39
  question: string;
33
40
  selectedOptions: string[];
34
41
  customResponse?: string | undefined;
42
+ delegatedToModel: boolean;
43
+ usedRecommendation: boolean;
35
44
  }
36
45
  export interface ClarifyOutput {
37
46
  status: 'answered' | 'auto_decided' | 'skipped';
38
- /** Primary / single question (for backward compatibility). */
39
47
  question: string;
40
48
  selectedOptions: string[];
41
49
  customResponse?: string | undefined;
42
- /** Complete list of answers when clarifying one or more questions. */
43
50
  answers?: ClarifyAnswerItem[] | undefined;
44
51
  decisionSummary: string;
45
52
  error?: string | undefined;
@@ -51,7 +51,7 @@ import {
51
51
  setContextQueryEmbedder,
52
52
  writeAtlas,
53
53
  writeProjectAtlas
54
- } from "../chunk-CYPYJIAF.js";
54
+ } from "../chunk-JB5JLY7V.js";
55
55
  import "../chunk-XRNN44QY.js";
56
56
  import "../chunk-EMA2XENR.js";
57
57
  import "../chunk-SCMRM6NL.js";
@@ -78,11 +78,11 @@ import {
78
78
  shutdownCodebaseIndexHost,
79
79
  shutdownCodebaseIndexServer,
80
80
  symbolGraphService
81
- } from "../chunk-DOHU3XHS.js";
81
+ } from "../chunk-TU6UVATU.js";
82
82
  import {
83
83
  projectIndexServerEndpoint,
84
84
  projectIndexServerMetadataPath
85
- } from "../chunk-WBAPU3AB.js";
85
+ } from "../chunk-ZOUG3KKS.js";
86
86
  import {
87
87
  CONCEPT_RELATIONS,
88
88
  CONTRADICTED_VISIBILITY_WEIGHT,
@@ -122,10 +122,10 @@ import {
122
122
  shouldRefreshRanks,
123
123
  toSymbolRankRows,
124
124
  tokenise
125
- } from "../chunk-54SIRJ6D.js";
126
- import "../chunk-7PEZU5Y4.js";
127
- import "../chunk-REWOZIA4.js";
128
- import "../chunk-6IEBD27U.js";
125
+ } from "../chunk-C4DSQBTT.js";
126
+ import "../chunk-7E55DAFW.js";
127
+ import "../chunk-M2W36JT7.js";
128
+ import "../chunk-SKRMUHTU.js";
129
129
  import {
130
130
  getCodebaseIndexPerfSnapshot,
131
131
  resetCodebaseIndexPerfMetrics
@@ -140,7 +140,7 @@ import {
140
140
  loadGitignoreMatcher
141
141
  } from "../chunk-XHSHNOAF.js";
142
142
  import "../chunk-5U5ULQX2.js";
143
- import "../chunk-HKR56VNF.js";
143
+ import "../chunk-2IAEJRLT.js";
144
144
  export {
145
145
  ATLAS_DIR,
146
146
  ATLAS_FILE_LIMIT,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  parseFilesContent
3
- } from "../chunk-7PEZU5Y4.js";
4
- import "../chunk-REWOZIA4.js";
5
- import "../chunk-6IEBD27U.js";
3
+ } from "../chunk-7E55DAFW.js";
4
+ import "../chunk-M2W36JT7.js";
5
+ import "../chunk-SKRMUHTU.js";
6
6
  import "../chunk-ZKC5UNGD.js";
7
7
  import "../chunk-YOHO4DVT.js";
8
8
  import "../chunk-5U5ULQX2.js";
@@ -10,7 +10,7 @@ import {
10
10
  projectIndexServerBuildId,
11
11
  projectIndexServerEndpoint,
12
12
  projectIndexServerMetadataPath
13
- } from "../chunk-WBAPU3AB.js";
13
+ } from "../chunk-ZOUG3KKS.js";
14
14
  import {
15
15
  contextService,
16
16
  fileGraphService,
@@ -24,10 +24,10 @@ import {
24
24
  statsService,
25
25
  symbolGraphService,
26
26
  vectorSearchService
27
- } from "../chunk-54SIRJ6D.js";
28
- import "../chunk-7PEZU5Y4.js";
29
- import "../chunk-REWOZIA4.js";
30
- import "../chunk-6IEBD27U.js";
27
+ } from "../chunk-C4DSQBTT.js";
28
+ import "../chunk-7E55DAFW.js";
29
+ import "../chunk-M2W36JT7.js";
30
+ import "../chunk-SKRMUHTU.js";
31
31
  import {
32
32
  recordWriteQueueWait
33
33
  } from "../chunk-ZKC5UNGD.js";
@@ -9,10 +9,10 @@ import {
9
9
  statsService,
10
10
  symbolGraphService,
11
11
  vectorSearchService
12
- } from "../chunk-54SIRJ6D.js";
13
- import "../chunk-7PEZU5Y4.js";
14
- import "../chunk-REWOZIA4.js";
15
- import "../chunk-6IEBD27U.js";
12
+ } from "../chunk-C4DSQBTT.js";
13
+ import "../chunk-7E55DAFW.js";
14
+ import "../chunk-M2W36JT7.js";
15
+ import "../chunk-SKRMUHTU.js";
16
16
  import "../chunk-ZKC5UNGD.js";
17
17
  import "../chunk-YOHO4DVT.js";
18
18
  import "../chunk-XHSHNOAF.js";
package/dist/diff.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  diffTool
3
- } from "./chunk-BU6VUXWG.js";
3
+ } from "./chunk-N3OTTQNC.js";
4
4
  import "./chunk-ZBMANLYH.js";
5
- import "./chunk-HKR56VNF.js";
5
+ import "./chunk-2IAEJRLT.js";
6
6
  export {
7
7
  diffTool
8
8
  };
package/dist/e2e.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  discoverE2EProjects,
3
3
  e2ePlanTool
4
- } from "./chunk-WKXL5XHU.js";
5
- import "./chunk-HKR56VNF.js";
4
+ } from "./chunk-BVHKBBGA.js";
5
+ import "./chunk-2IAEJRLT.js";
6
6
  export {
7
7
  discoverE2EProjects,
8
8
  e2ePlanTool
package/dist/edit.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  editTool
3
- } from "./chunk-G35NLPG5.js";
3
+ } from "./chunk-WKLUOXR4.js";
4
4
  import "./chunk-MSOAX3GC.js";
5
- import "./chunk-DOHU3XHS.js";
6
- import "./chunk-WBAPU3AB.js";
7
- import "./chunk-54SIRJ6D.js";
8
- import "./chunk-7PEZU5Y4.js";
9
- import "./chunk-REWOZIA4.js";
10
- import "./chunk-6IEBD27U.js";
5
+ import "./chunk-TU6UVATU.js";
6
+ import "./chunk-ZOUG3KKS.js";
7
+ import "./chunk-C4DSQBTT.js";
8
+ import "./chunk-7E55DAFW.js";
9
+ import "./chunk-M2W36JT7.js";
10
+ import "./chunk-SKRMUHTU.js";
11
11
  import "./chunk-ZKC5UNGD.js";
12
12
  import "./chunk-YOHO4DVT.js";
13
13
  import "./chunk-XHSHNOAF.js";
14
14
  import "./chunk-5U5ULQX2.js";
15
- import "./chunk-HKR56VNF.js";
15
+ import "./chunk-2IAEJRLT.js";
16
16
  export {
17
17
  editTool
18
18
  };
package/dist/exec.js CHANGED
@@ -7,14 +7,14 @@ import {
7
7
  isExecCommandAllowed,
8
8
  resetDangerBypass,
9
9
  resetExecPolicy
10
- } from "./chunk-YILT3CSO.js";
10
+ } from "./chunk-A3LNNBYO.js";
11
11
  import "./chunk-BTSFTGIL.js";
12
12
  import "./chunk-PVCB7RUZ.js";
13
13
  import "./chunk-SCMRM6NL.js";
14
14
  import "./chunk-HDYUBRMF.js";
15
15
  import "./chunk-7JJFC6CT.js";
16
16
  import "./chunk-5U5ULQX2.js";
17
- import "./chunk-HKR56VNF.js";
17
+ import "./chunk-2IAEJRLT.js";
18
18
  export {
19
19
  configureDangerBypass,
20
20
  configureExecPolicy,
package/dist/fetch.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  fetchTool
3
- } from "./chunk-47GYABZW.js";
3
+ } from "./chunk-4SW6BXUR.js";
4
4
  import {
5
5
  guardedFetch,
6
6
  guardedLookup
7
7
  } from "./chunk-NBDZMMG2.js";
8
- import "./chunk-HKR56VNF.js";
8
+ import "./chunk-2IAEJRLT.js";
9
9
  export {
10
10
  fetchTool,
11
11
  guardedFetch,
package/dist/format.js CHANGED
@@ -2,15 +2,15 @@ import {
2
2
  detectFixer,
3
3
  formatTool,
4
4
  parseFormatterCounts
5
- } from "./chunk-OBVXDVLE.js";
6
- import "./chunk-JQ43NVFU.js";
7
- import "./chunk-JK5WXW4S.js";
5
+ } from "./chunk-QJARSK2G.js";
6
+ import "./chunk-3LQJXJDM.js";
7
+ import "./chunk-SEONDNLN.js";
8
8
  import "./chunk-EMA2XENR.js";
9
9
  import "./chunk-SCMRM6NL.js";
10
10
  import "./chunk-HDYUBRMF.js";
11
11
  import "./chunk-7JJFC6CT.js";
12
12
  import "./chunk-5U5ULQX2.js";
13
- import "./chunk-HKR56VNF.js";
13
+ import "./chunk-2IAEJRLT.js";
14
14
  export {
15
15
  detectFixer,
16
16
  formatTool,
@@ -3,11 +3,11 @@ import {
3
3
  GENERIC_MAX_SYMBOLS_DEFAULT,
4
4
  parseGeneric,
5
5
  parseSymbols
6
- } from "./chunk-6IEBD27U.js";
6
+ } from "./chunk-SKRMUHTU.js";
7
7
  export {
8
8
  GENERIC_MAX_FILE_CHARS,
9
9
  GENERIC_MAX_SYMBOLS_DEFAULT,
10
10
  parseGeneric,
11
11
  parseSymbols
12
12
  };
13
- //# sourceMappingURL=generic-parser-WFMIRHBX.js.map
13
+ //# sourceMappingURL=generic-parser-N2PLGBC2.js.map
package/dist/git.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  gitTool
3
- } from "./chunk-2IC5FRD7.js";
4
- import "./chunk-HKR56VNF.js";
3
+ } from "./chunk-ZMCV3XOV.js";
4
+ import "./chunk-2IAEJRLT.js";
5
5
  export {
6
6
  gitTool
7
7
  };
package/dist/glob.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  globTool
3
- } from "./chunk-IMIHTHF7.js";
3
+ } from "./chunk-JKFIDWQG.js";
4
4
  import "./chunk-ZBMANLYH.js";
5
5
  import "./chunk-XHSHNOAF.js";
6
- import "./chunk-HKR56VNF.js";
6
+ import "./chunk-2IAEJRLT.js";
7
7
  export {
8
8
  globTool
9
9
  };
@@ -37,7 +37,7 @@ function fallbackParse(filePath, content, lang) {
37
37
  const lines = content.split(/\r?\n/);
38
38
  for (const [idx, line] of lines.entries()) {
39
39
  const trimmed = line.trimStart();
40
- const col = line.length - trimmed.length + 1;
40
+ const col = line.length - trimmed.length;
41
41
  const fn = /^func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)\s*\(/.exec(trimmed);
42
42
  if (fn?.[1]) {
43
43
  addFallbackSymbol(symbols, {
@@ -185,7 +185,7 @@ func main() {
185
185
  }
186
186
  pos := fset.Position(d.Pos())
187
187
  sig := formatFuncSig(d)
188
- syms = append(syms, Sym{Name: name, Kind: kind, Line: pos.Line, Col: pos.Column, Signature: sig, Scope: scope})
188
+ syms = append(syms, Sym{Name: name, Kind: kind, Line: pos.Line, Col: pos.Column - 1, Signature: sig, Scope: scope})
189
189
 
190
190
  case *ast.GenDecl:
191
191
  for _, spec := range d.Specs {
@@ -204,7 +204,7 @@ func main() {
204
204
  } else {
205
205
  sig += " = " + formatType(s.Type)
206
206
  }
207
- syms = append(syms, Sym{Name: name, Kind: "type", Line: pos.Line, Col: pos.Column, Signature: sig, Scope: pkgScope})
207
+ syms = append(syms, Sym{Name: name, Kind: "type", Line: pos.Line, Col: pos.Column - 1, Signature: sig, Scope: pkgScope})
208
208
 
209
209
  case *ast.ValueSpec:
210
210
  for _, n := range s.Names {
@@ -218,7 +218,7 @@ func main() {
218
218
  if s.Type != nil {
219
219
  sig += " " + formatType(s.Type)
220
220
  }
221
- syms = append(syms, Sym{Name: name, Kind: kind, Line: pos.Line, Col: pos.Column, Signature: sig, Scope: pkgScope})
221
+ syms = append(syms, Sym{Name: name, Kind: kind, Line: pos.Line, Col: pos.Column - 1, Signature: sig, Scope: pkgScope})
222
222
  }
223
223
  }
224
224
  }
@@ -468,4 +468,4 @@ export {
468
468
  detectLang,
469
469
  parseSymbols
470
470
  };
471
- //# sourceMappingURL=go-parser-EMKTAAD3.js.map
471
+ //# sourceMappingURL=go-parser-VDPRQEGM.js.map
package/dist/grep.js CHANGED
@@ -2,11 +2,11 @@ import {
2
2
  __resetRgDetectionForTests,
3
3
  __setRgAvailableForTests,
4
4
  grepTool
5
- } from "./chunk-ZSW5KO5S.js";
5
+ } from "./chunk-2W4XTULI.js";
6
6
  import "./chunk-YJTXRH5Y.js";
7
7
  import "./chunk-ZBMANLYH.js";
8
8
  import "./chunk-XHSHNOAF.js";
9
- import "./chunk-HKR56VNF.js";
9
+ import "./chunk-2IAEJRLT.js";
10
10
  export {
11
11
  __resetRgDetectionForTests,
12
12
  __setRgAvailableForTests,
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { checkAndBlockKillCommand, type KillCheckResult, type KillCommand, } fro
11
11
  export * from './browser/index.js';
12
12
  export { builtinTools, OFF_ONLY_TOOLS, OPTIONAL_TOOLS, TIER1_TOOLS, TIER2_TOOLS, TIER3_TOOLS, } from './builtin.js';
13
13
  export { type BreakerState, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerSnapshot, } from './circuit-breaker.js';
14
- export { type ClarifyAnswerItem, type ClarifyInput, type ClarifyOutput, type ClarifyQuestionInput, type ClarifyQuestionItem, clarifyTool, } from './clarify.js';
14
+ export { type ClarifyAnswerItem, type ClarifyInput, type ClarifyOptionInput, type ClarifyOutput, type ClarifyQuestionInput, type ClarifyQuestionItem, type ClarifyTabInput, clarifyTool, } from './clarify.js';
15
15
  export type { CircuitSnapshot, CircuitState, CodebaseAstReplaceInput, CodebaseAstReplaceOutput, CodebaseImpactAnalysisInput, CodebaseImpactAnalysisOutput, CodebaseIncomingCallsInput, CodebaseIncomingCallsOutput, CodebaseIndexInput, CodebaseIndexOutput, CodebaseInvariantCheckInput, CodebaseInvariantCheckOutput, CodebaseOutgoingCallsInput, CodebaseOutgoingCallsOutput, CodebaseRepoMapInput, CodebaseRepoMapOutput, CodebaseSearchInput, CodebaseSearchOutput, CodebaseSkeletonInput, CodebaseSkeletonOutput, CodebaseStatsInput, CodebaseStatsOutput, CodebaseTargetedTestInput, CodebaseTargetedTestOutput, CodeMapGraph, DeadCodeScanInput, DeadCodeScanOutput, DeadFile, DeadPackage, DeadSymbol, GraphEdge, GraphNode, ImpactAnalysisInput, ImpactAnalysisOutput, ImpactCallSite, IncomingCallsInput, IncomingCallsOutput, OutgoingCallsInput, OutgoingCallsOutput, ProjectIndexDaemonAvailability, ProjectIndexServerActivity, ProjectIndexServerClientHealth, ProjectIndexServerConnectionState, ProjectIndexServerConnectionStatus, ProjectIndexServerHealth, TargetedTestInput, TargetedTestOutput, } from './codebase-index/index.js';
16
16
  export { ATLAS_DIR, type AtlasBrief, type AtlasBriefIndexMissing, type AtlasFreshness, type AtlasIndexMissing, buildProjectAtlasBrief, CircuitOpenError, CONCEPT_RELATIONS, type ConceptIndexMissing, type ContextResult, cancelPendingReindexes, checkCodebaseIndexServerHealth, checkProjectAtlasFreshness, codebaseAstReplaceTool, codebaseContextTool, codebaseImpactAnalysisTool, codebaseIncomingCallsTool, codebaseIndexStats, codebaseIndexTool, codebaseInvariantCheckTool, codebaseOutgoingCallsTool, codebaseRepoMapTool, codebaseSearchTool, codebaseSkeletonTool, codebaseStatsTool, codebaseTargetedTestTool, deadCodeScanTool, type EmbeddingPort, type EmbedIndexMissing, type EmbedResult, type EnrichResult, embedProjectFiles, enqueueReindex, enrichProjectConcepts, ensureCodebaseIndexServer, exportProjectAtlasHtml, extractDirectorySkeleton, extractFileSkeleton, type FileSkeletonResult, fileGraphService, generateRepoMap, getIndexState, IndexCircuitBreaker, IndexTimeoutError, indexCircuitBreaker, isIndexableFile, isIndexing, isIndexReady, MAX_CRUX_LINES, MAX_REPORTED_DRIFT, type MutateSymbolOptions, type MutateSymbolResult, onIndexStateChange, packageGraphService, type RepoMapOptions, type RepoMapResult, replaceSymbolInFile, resetIndexCircuitBreaker, resolveProjectIndexDaemonAvailability, runDeadCodeScan, runStartupIndex, type SkeletonOptions, type SkeletonSymbolRange, type SummarizeFileInput, type SummarizeFileResult, type SummarizerPort, type SummarizeSubsystemInput, type SummarizeSubsystemResult, searchCodebaseIndex, setContextQueryEmbedder, shutdownCodebaseIndexHost, shutdownCodebaseIndexServer, symbolGraphService, writeProjectAtlas, } from './codebase-index/index.js';
17
17
  export { type DesignInput, type DesignOutput, designTool, } from './design.js';