@handsupmin/gc-tree 0.8.15 → 0.8.16

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/src/hook.js +7 -4
  2. package/package.json +1 -1
package/dist/src/hook.js CHANGED
@@ -36,11 +36,12 @@ function formatMatches(matches) {
36
36
  const shortContext = context.length > 180 ? `${context.slice(0, 177).trim()}...` : context;
37
37
  const showDoc = `gctree show-doc --id "${match.id}"`;
38
38
  return [
39
- `[${displayKeyword(match)}] 관련 문서 존재${shortContext ? `: ${shortContext}` : ''}`,
40
- `[${displayKeyword(match)}] 세부 정보 탐색: ${showDoc}`,
39
+ `[${displayKeyword(match)}]`,
40
+ shortContext,
41
+ `details: ${showDoc}`,
41
42
  ].join('\n');
42
43
  })
43
- .join('\n');
44
+ .join('\n\n');
44
45
  }
45
46
  function buildSessionStartContext({ gcBranch, currentRepo, repoScopeStatus, }) {
46
47
  return `[gc-tree] active gc-branch="${gcBranch}" repo="${currentRepo || 'unscoped'}" scope=${repoScopeStatus}.`;
@@ -57,8 +58,10 @@ function buildNoMatchContext({ gcBranch, currentRepo, cached, }) {
57
58
  function buildMatchContext({ gcBranch, currentRepo, repoScopeStatus, matches, }) {
58
59
  const lines = [
59
60
  `[gc-tree] USE FIRST: ${Math.min(matches.length, 3)} docs gc-branch="${gcBranch}" repo="${currentRepo || 'unscoped'}" scope=${repoScopeStatus}.`,
61
+ '',
60
62
  formatMatches(matches),
61
- `Rule: 위 문서를 먼저 근거로 삼고, 부족하면 표시된 show-doc 명령으로 세부 정보를 확인.`,
63
+ '',
64
+ `Rule: 위 문서를 먼저 근거로 삼고, 부족하면 details 명령으로 세부 정보를 확인.`,
62
65
  ];
63
66
  if (repoScopeStatus === 'unmapped' && currentRepo) {
64
67
  lines.push(`Note: repo "${currentRepo}" is unmapped. If it belongs here, offer to run: gctree set-repo-scope --branch ${gcBranch} --include`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsupmin/gc-tree",
3
- "version": "0.8.15",
3
+ "version": "0.8.16",
4
4
  "description": "Global Context Tree, a lightweight branch-aware global context orchestrator for AI coding tools",
5
5
  "type": "module",
6
6
  "private": false,