@handsupmin/gc-tree 0.8.9 → 0.8.10

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 -2
  2. package/package.json +1 -1
package/dist/src/hook.js CHANGED
@@ -26,7 +26,12 @@ function limitMatches(matches, max = 3) {
26
26
  }
27
27
  function formatMatches(matches) {
28
28
  return limitMatches(matches)
29
- .map((match, index) => `${index + 1}. ${match.title} [${match.id}]`)
29
+ .map((match, index) => {
30
+ const summary = match.summary?.trim();
31
+ return summary
32
+ ? `${index + 1}. ${match.title} [${match.id}]\n > ${summary}`
33
+ : `${index + 1}. ${match.title} [${match.id}]`;
34
+ })
30
35
  .join('\n');
31
36
  }
32
37
  function buildSessionStartContext({ gcBranch, currentRepo, repoScopeStatus, }) {
@@ -45,7 +50,7 @@ function buildMatchContext({ gcBranch, currentRepo, repoScopeStatus, matches, })
45
50
  const lines = [
46
51
  `[gc-tree] USE FIRST: ${Math.min(matches.length, 3)} docs gc-branch="${gcBranch}" repo="${currentRepo || 'unscoped'}" scope=${repoScopeStatus}.`,
47
52
  formatMatches(matches),
48
- `Rule: apply these docs before tools; if insufficient, open full doc: gctree resolve --id <id>`,
53
+ `Rule: summaries above are mandatory context read them now. Only run \`gctree resolve --id <id>\` if a summary is insufficient for the task.`,
49
54
  ];
50
55
  if (repoScopeStatus === 'unmapped' && currentRepo) {
51
56
  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.9",
3
+ "version": "0.8.10",
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,