@handsupmin/gc-tree 0.8.16 → 0.8.17

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.
@@ -45,6 +45,7 @@ export function onboardingCompletionLines() {
45
45
  'Before you claim onboarding is complete, run `gctree verify-onboarding --branch <current-gc-branch>` and inspect the real gc-tree files.',
46
46
  'Do not claim onboarding is complete unless verification returns `status: "complete"` **and** `quality_issues` is an empty array.',
47
47
  'If `quality_issues` is non-empty, do **not** tell the user onboarding is done. Self-heal immediately without asking the user: (a) identify which docs have `category: "general"`, (b) assign each a correct category from `role | repos | domain | workflows | conventions | infra | verification` based on content, (c) rebuild the full onboarding JSON with every doc having an explicit `category` field set to one of those values, (d) run `gctree __apply-onboarding --input <temp-file>` again, (e) rerun `gctree verify-onboarding` and repeat until `quality_issues` is empty. Never use `"general"` as a category in the JSON — it is a fallback for missing data, not a valid category.',
48
+ 'After quality_issues passes, perform an index coverage check: for every written doc, verify that its key concepts (repo names, workflow names, domain terms, convention patterns) appear as searchable index labels in the verify output. If any important concept is missing from the index, add it as an index entry and re-apply. Do not skip this step — a doc that exists but cannot be found by search is useless.',
48
49
  'If verification returns `status: "incomplete"` for reasons other than quality_issues, do not tell the user onboarding is done; inspect the reported failures, heal what can be healed automatically, rerun verification, and repeat until it passes or a real blocker remains.',
49
50
  'After applying the onboarding docs, explicitly list which durable docs were saved.',
50
51
  'Then summarize what you now understand from the saved docs instead of stopping at the filenames alone.',
@@ -104,18 +104,35 @@ function renderCodexOnboardSkill() {
104
104
  '',
105
105
  ].join('\n');
106
106
  }
107
+ function renderUpdateProtocol() {
108
+ return [
109
+ '1. Run `gctree status` and state the active gc-branch.',
110
+ '2. Understand what changed — read the user\'s request, inspect relevant code or docs if needed, and determine the right content to capture.',
111
+ '3. Decide category and path automatically based on content — never ask the user about scope or placement:',
112
+ ' - `docs/workflows/<name>.md` — cross-repo action sequences, step-by-step procedures',
113
+ ' - `docs/conventions/<repo>.md` — code patterns, naming, validation, DTO/service conventions for a repo',
114
+ ' - `docs/repos/<repo>.md` — repo role, key paths, cross-repo dependencies',
115
+ ' - `docs/domain/<concept>.md` — domain terms, acronyms, business logic',
116
+ ' - `docs/infra/<topic>.md` — infra, deployment, environment config',
117
+ ' - `docs/role/<name>.md` — team member roles, responsibilities',
118
+ '4. Write a `## Summary` that is actionable: actual patterns/commands/constraints a developer needs — not a sentence about what the doc covers.',
119
+ '5. Create a temporary JSON file with the updated `docs[]` and run `gctree __apply-update --input <temp-file>`.',
120
+ '6. Run `gctree verify-onboarding --branch <gc-branch>` and inspect the output:',
121
+ ' - Check that every updated doc appears in the verified doc list.',
122
+ ' - Check that index entries for the new content exist and are searchable (not just generic titles).',
123
+ ' - Check that no doc has `category: "general"` — reassign to correct category if so.',
124
+ ' - Check that important concepts from the update are present as index labels — if missing, re-apply with added index entries.',
125
+ ' - Self-heal any issues without asking the user: fix category, add index entries, re-run `gctree __apply-update`, re-verify.',
126
+ '7. Show the user which docs were updated and confirm the index now covers the new content.',
127
+ ];
128
+ }
107
129
  function renderCodexUpdateSkill() {
108
130
  return [
109
131
  '---',
110
132
  'description: Guided durable update for the active gc-branch in gctree.',
111
133
  '---',
112
134
  '',
113
- '1. Run `gctree status` and explicitly state the active gc-branch to the user.',
114
- '2. Ask what durable context should change, one question at a time.',
115
- '3. If this repo clearly belongs to the current gc-branch but is not mapped yet, ask the user whether it should be added to the branch-repo map and run `gctree set-repo-scope --branch <current-gc-branch> --include` when they approve.',
116
- '4. Create a temporary JSON file containing the updated `docs[]` and optional `branchSummary`.',
117
- '5. Run `gctree __apply-update --input <temp-file>`.',
118
- '6. Show the updated docs back to the user.',
135
+ ...renderUpdateProtocol(),
119
136
  '',
120
137
  ].join('\n');
121
138
  }
@@ -222,12 +239,7 @@ function renderClaudeUpdateCommand() {
222
239
  'description: Guided durable update for the active gc-branch in gctree.',
223
240
  '---',
224
241
  '',
225
- '1. Run `gctree status` and explicitly state the active gc-branch to the user.',
226
- '2. Ask what durable context should change, one question at a time.',
227
- '3. If this repo clearly belongs to the current gc-branch but is not mapped yet, ask the user whether it should be added to the branch-repo map and run `gctree set-repo-scope --branch <current-gc-branch> --include` when they approve.',
228
- '4. Create a temporary JSON file containing the updated `docs[]` and optional `branchSummary`.',
229
- '5. Run `gctree __apply-update --input <temp-file>`.',
230
- '6. Show the updated docs back to the user.',
242
+ ...renderUpdateProtocol(),
231
243
  '',
232
244
  ].join('\n');
233
245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsupmin/gc-tree",
3
- "version": "0.8.16",
3
+ "version": "0.8.17",
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,