@handsupmin/gc-tree 0.7.10 → 0.7.12

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.
@@ -81,7 +81,7 @@ function ensureObject(value) {
81
81
  function isGcTreeHook(entry, event) {
82
82
  const command = String(entry.command || '');
83
83
  const owner = ensureObject(entry.metadata).owner;
84
- return owner === 'gctree' || command === `gctree __hook --event ${event}`;
84
+ return owner === 'gctree' || command.includes(`gctree __hook --event ${event}`);
85
85
  }
86
86
  function mergeHookJson(raw, target) {
87
87
  const parsed = raw ? ensureObject(JSON.parse(raw)) : {};
@@ -1,7 +1,8 @@
1
1
  export function onboardingProtocolLines() {
2
2
  return [
3
3
  'This is **global context onboarding**, not repo-local onboarding.',
4
- 'Ask **one question at a time** and keep using the saved workflow language all the way through.',
4
+ 'Ask **one question at a time**.',
5
+ '**Language lock**: detect the language the user writes in from their very first response and use it for every subsequent message without exception — numbered confirmations (1/2/3), hypotheses, summaries, doc content, and wrap-up must all be in that language. Never revert to English mid-session regardless of what language appears in repo names, code comments, or source docs.',
5
6
  'Wait for the user\'s first answer before you inspect docs, repos, directories, or files on your own.',
6
7
  'Start by asking the user to paste or share organized docs or reference material if they have any; otherwise ask what kind of work they mainly do.',
7
8
  'Do **not** start with a repo scan, a company guess, or a broad hypothesis built from directories like `~/sources`.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsupmin/gc-tree",
3
- "version": "0.7.10",
3
+ "version": "0.7.12",
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,
@@ -8,6 +8,7 @@ description: Launch guided onboarding for the active gc-branch through the confi
8
8
  Use this when a user wants to create global context for a product, company, or workstream in an empty gc-branch.
9
9
 
10
10
  ## Rules
11
+ - **language lock**: detect the language the user writes in from their very first response; use that language for every subsequent message without exception — numbered confirmations (1/2/3), hypotheses, summaries, and wrap-up must all be in the user's language; never revert to English mid-session regardless of what language appears in repo names, code comments, or source docs
11
12
  - ask one question at a time
12
13
  - keep the active gc-branch explicit
13
14
  - this is global-context onboarding, not repo-local onboarding