@handsupmin/gc-tree 0.7.6 → 0.7.8
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.
- package/dist/src/cli.js +2 -2
- package/dist/src/integration-files.js +2 -2
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -524,10 +524,10 @@ async function main() {
|
|
|
524
524
|
const host = normalizeProviderMode(readArg('--host'));
|
|
525
525
|
if (!host)
|
|
526
526
|
usage();
|
|
527
|
-
const
|
|
527
|
+
const explicitTarget = readArg('--target');
|
|
528
528
|
const result = await ensureScaffold({
|
|
529
529
|
providerMode: host,
|
|
530
|
-
targetDir,
|
|
530
|
+
...(explicitTarget ? { targetDir: explicitTarget, scope: 'local' } : { scope: 'global' }),
|
|
531
531
|
force: hasFlag('--force'),
|
|
532
532
|
});
|
|
533
533
|
console.log(JSON.stringify(result, null, 2));
|
|
@@ -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', 'settings.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, 'settings.json');
|
|
181
181
|
}
|