@link-assistant/hive-mind 1.72.2 → 1.72.4

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.
@@ -28,6 +28,7 @@ const { log, formatAligned } = lib;
28
28
 
29
29
  // Import exit handler
30
30
  import { safeExit } from './exit-handler.lib.mjs';
31
+ import { parseForkFullNameFromGhOutput } from './github-repository-names.lib.mjs';
31
32
 
32
33
  // Import GitHub utilities for permission checks
33
34
  const githubLib = await import('./github.lib.mjs');
@@ -589,11 +590,10 @@ export const setupRepository = async (argv, owner, repo, forkOwner = null, issue
589
590
  const forkOutput = (forkResult.stderr ? forkResult.stderr.toString() : '') + (forkResult.stdout ? forkResult.stdout.toString() : '');
590
591
  if (argv.verbose) await log(`${formatAligned('🔧', 'Fork output:', forkOutput.split('\n')[0] || '(empty)')}`); // Issue #1518
591
592
  // Parse actual fork name from output (e.g., "konard/netkeep80-jsonRVM already exists")
592
- // GitHub may create forks with modified names to avoid conflicts
593
- // Use regex that won't match domain names like "github.com/user" -> "com/user"
594
- const forkNameMatch = forkOutput.match(/(?:github\.com\/|^|\s)([a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+)/);
595
- if (forkNameMatch) {
596
- actualForkName = forkNameMatch[1];
593
+ // Issue #1819: repository names can contain dots, such as "*.github.io".
594
+ const parsedForkName = parseForkFullNameFromGhOutput(forkOutput);
595
+ if (parsedForkName) {
596
+ actualForkName = parsedForkName;
597
597
  }
598
598
 
599
599
  if (forkResult.code === 0) {