@handsupmin/gc-tree 0.7.19 → 0.8.1
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.
|
@@ -166,7 +166,7 @@ export function gctreeManagedMarkdownTargets(targetDir) {
|
|
|
166
166
|
export function gctreeHookJsonTargets(targetDir) {
|
|
167
167
|
return {
|
|
168
168
|
codex: join(targetDir, '.codex', 'hooks.json'),
|
|
169
|
-
claude: join(targetDir, '.claude', '
|
|
169
|
+
claude: join(targetDir, '.claude', 'hooks', 'hooks.json'),
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
export function gctreeGlobalRoot(host) {
|
|
@@ -177,5 +177,5 @@ export function gctreeGlobalRoot(host) {
|
|
|
177
177
|
}
|
|
178
178
|
export function gctreeGlobalHookJsonTarget(host) {
|
|
179
179
|
const root = gctreeGlobalRoot(host);
|
|
180
|
-
return host === 'codex' ? join(root, 'hooks.json') : join(root, '
|
|
180
|
+
return host === 'codex' ? join(root, 'hooks.json') : join(root, 'hooks', 'hooks.json');
|
|
181
181
|
}
|
package/dist/src/scaffold.js
CHANGED
|
@@ -27,6 +27,11 @@ function renderCodexBootstrapPrompt() {
|
|
|
27
27
|
'# gctree Bootstrap',
|
|
28
28
|
'',
|
|
29
29
|
'- Keep the active gc-branch explicit whenever global context matters.',
|
|
30
|
+
'- If you encounter an unfamiliar term, acronym, concept, domain word, or internal name, do **not** grep or read code first. Follow this exact order:',
|
|
31
|
+
' 1. Run `gctree resolve --query "<term>"`.',
|
|
32
|
+
' 2. If that misses, run broader related `gctree resolve` queries.',
|
|
33
|
+
' 3. If the concept is documented but not indexed, propose adding it as an Index Entry to the right doc.',
|
|
34
|
+
' 4. Only if gc-tree still does not answer it should you search code or repo docs.',
|
|
30
35
|
'- When hook-injected PRE-TASK CONTEXT is present, read it first. If summaries already answer the question, respond directly without any tool calls.',
|
|
31
36
|
'- Only use tools (grep, file read, explore) if summaries are clearly insufficient — meaning the answer cannot be derived from them at all.',
|
|
32
37
|
'- If hook context is missing, resolve reusable global context before planning or implementation.',
|
|
@@ -136,7 +141,7 @@ function renderClaudeSessionStartHook() {
|
|
|
136
141
|
return [
|
|
137
142
|
'# gctree Claude Code SessionStart note',
|
|
138
143
|
'',
|
|
139
|
-
'- gctree init installs real SessionStart/UserPromptSubmit hooks via `.claude/
|
|
144
|
+
'- gctree init installs real SessionStart/UserPromptSubmit hooks via `.claude/hooks/hooks.json`.',
|
|
140
145
|
'- At session start, use the injected hook context to confirm the active gc-branch.',
|
|
141
146
|
'- Refer to gctree branches as **gc-branches** in user-facing language.',
|
|
142
147
|
'- If hook context is missing or stale, resolve summaries before planning or implementation when branch-level context may change the answer.',
|