repo-nexus 0.9.5 → 0.9.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-nexus",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "description": "Lightweight, zero-dependency Virtual Meta Repository (meta repo) and Nexus Repository (nexus repo) manager for multi-repo workspaces and shared AI context (no git submodules)",
5
5
  "bin": {
6
6
  "repo-nexus": "rnex",
@@ -1,5 +1,5 @@
1
1
  name: claude
2
- version: 0.9.5
2
+ version: 0.9.7
3
3
  description: Anthropic Claude Code integration (maintains CLAUDE.md instructions and generates user skills in .claude/skills/)
4
4
  author: unoxen
5
5
  homepage: https://github.com/unoxen/repo-nexus
@@ -1,5 +1,5 @@
1
1
  name: codex
2
- version: 0.9.5
2
+ version: 0.9.7
3
3
  description: OpenAI Codex and ChatGPT integration (maintains CODEX.md instructions and generates user skills in .codex/skills/)
4
4
  author: unoxen
5
5
  homepage: https://github.com/unoxen/repo-nexus
@@ -1,5 +1,5 @@
1
1
  name: copilot
2
- version: 0.9.5
2
+ version: 0.9.7
3
3
  description: GitHub Copilot integration (maintains .github/copilot-instructions.md and user skills in .github/skills/)
4
4
  author: unoxen
5
5
  homepage: https://github.com/unoxen/repo-nexus
@@ -1,5 +1,5 @@
1
1
  name: cursor
2
- version: 0.9.5
2
+ version: 0.9.7
3
3
  description: Cursor IDE integration (maintains .cursorrules and generates user skills in .cursor/rules/)
4
4
  author: unoxen
5
5
  homepage: https://github.com/unoxen/repo-nexus
@@ -1,5 +1,5 @@
1
1
  name: gemini
2
- version: 0.9.5
2
+ version: 0.9.7
3
3
  description: Google Gemini and Antigravity integration (maintains GEMINI.md instructions and generates user skills in .agents/skills/)
4
4
  author: unoxen
5
5
  homepage: https://github.com/unoxen/repo-nexus
@@ -132,7 +132,8 @@ rebuild_full_wiki_graph() {
132
132
  [ -n "$_abs_path" ] && [ -f "$_abs_path" ] || continue
133
133
 
134
134
  if [ -n "$_sub_scope" ]; then
135
- _shard_id="${_repo_scope}-${_sub_scope}"
135
+ _top_sub="$(printf '%s' "$_sub_scope" | cut -d'-' -f1)"
136
+ _shard_id="${_repo_scope}-${_top_sub}"
136
137
  else
137
138
  _shard_id="$_repo_scope"
138
139
  fi
@@ -141,7 +142,11 @@ rebuild_full_wiki_graph() {
141
142
  _scope_short="${_repo_scope#repos-}"
142
143
  _stem_slug="$(normalize_slug_id "$_stem")" || continue
143
144
  if [ "$_stem_slug" = "readme" ] || [ "$_stem_slug" = "index" ]; then
144
- _node_id="$(normalize_slug_id "${_scope_short}-${_sub_scope:-${_stem_slug}}")"
145
+ if [ -n "$_sub_scope" ]; then
146
+ _node_id="$(normalize_slug_id "${_scope_short}-${_sub_scope}")"
147
+ else
148
+ _node_id="$(normalize_slug_id "${_scope_short}-${_stem_slug}")"
149
+ fi
145
150
  else
146
151
  _node_id="$(normalize_slug_id "${_scope_short}-${_stem_slug}")"
147
152
  fi
@@ -57,9 +57,18 @@ match_globstar_path() {
57
57
  _candidate_path="$1"
58
58
  _target_pat="$2"
59
59
 
60
+ # Strip any enclosing quotes or whitespace
61
+ _candidate_path="$(printf '%s' "$_candidate_path" | tr -d '"'\''' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
62
+ _target_pat="$(printf '%s' "$_target_pat" | tr -d '"'\''' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
63
+
60
64
  # Strip leading ./ if present
61
- _candidate_path="${_candidate_path#./}"
62
- _target_pat="${_target_pat#./}"
65
+ while [ "${_candidate_path#./}" != "$_candidate_path" ]; do _candidate_path="${_candidate_path#./}"; done
66
+ while [ "${_target_pat#./}" != "$_target_pat" ]; do _target_pat="${_target_pat#./}"; done
67
+
68
+ # If candidate path was provided as an absolute path matching workspace root, strip it
69
+ if [ -n "${RNEX_WORKSPACE_ROOT:-}" ]; then
70
+ _candidate_path="${_candidate_path#"${RNEX_WORKSPACE_ROOT}/"}"
71
+ fi
63
72
 
64
73
  # Exact equality shortcut
65
74
  if [ "$_candidate_path" = "$_target_pat" ]; then
@@ -339,13 +348,12 @@ build_workspace_source_manifest() {
339
348
  is_repo_enabled "$_member" || continue
340
349
  fi
341
350
  _rel_in_repo="${_rel_ws#"repos/${_member}/"}"
342
- _m_first="$(printf '%s' "$_rel_in_repo" | cut -d'/' -f1)"
343
- _m_second="$(printf '%s' "$_rel_in_repo" | cut -d'/' -f2)"
344
- if [ -n "$_m_second" ] && [ "$_m_first" != "$_rel_in_repo" ]; then
351
+ _dir_in_repo="$(dirname "$_rel_in_repo")"
352
+ if [ -n "$_dir_in_repo" ] && [ "$_dir_in_repo" != "." ]; then
345
353
  if command -v normalize_slug_id >/dev/null 2>&1; then
346
- _m_sub="$(normalize_slug_id "$_m_first")"
354
+ _m_sub="$(normalize_slug_id "$_dir_in_repo")"
347
355
  else
348
- _m_sub="$_m_first"
356
+ _m_sub="$(printf '%s' "$_dir_in_repo" | tr '/' '-')"
349
357
  fi
350
358
  else
351
359
  _m_sub=""
@@ -358,16 +366,13 @@ build_workspace_source_manifest() {
358
366
  ;;
359
367
  *)
360
368
  # Belongs to the Nexus repo
361
- _first_dir="$(printf '%s' "$_rel_ws" | cut -d'/' -f1)"
362
- _second_dir="$(printf '%s' "$_rel_ws" | cut -d'/' -f2)"
363
- if [ -n "$_second_dir" ] && [ "$_first_dir" != "$_rel_ws" ] && [ "$_first_dir" != "docs" ]; then
369
+ _dir_in_nexus="$(dirname "$_rel_ws")"
370
+ if [ -n "$_dir_in_nexus" ] && [ "$_dir_in_nexus" != "." ]; then
364
371
  if command -v normalize_slug_id >/dev/null 2>&1; then
365
- _m_sub="$(normalize_slug_id "$_first_dir")"
372
+ _m_sub="$(normalize_slug_id "$_dir_in_nexus")"
366
373
  else
367
- _m_sub="$_first_dir"
374
+ _m_sub="$(printf '%s' "$_dir_in_nexus" | tr '/' '-')"
368
375
  fi
369
- elif [ "$_first_dir" = "docs" ]; then
370
- _m_sub="docs"
371
376
  else
372
377
  _m_sub=""
373
378
  fi
@@ -401,13 +406,12 @@ build_workspace_source_manifest() {
401
406
  [ -n "$_abs_mf" ] || continue
402
407
  _rel_ws="${_abs_mf#"${RNEX_WORKSPACE_ROOT}/"}"
403
408
  _rel_in_repo="${_abs_mf#"${_member_root}/"}"
404
- _m_first="$(printf '%s' "$_rel_in_repo" | cut -d'/' -f1)"
405
- _m_second="$(printf '%s' "$_rel_in_repo" | cut -d'/' -f2)"
406
- if [ -n "$_m_second" ] && [ "$_m_first" != "$_rel_in_repo" ]; then
409
+ _dir_in_repo="$(dirname "$_rel_in_repo")"
410
+ if [ -n "$_dir_in_repo" ] && [ "$_dir_in_repo" != "." ]; then
407
411
  if command -v normalize_slug_id >/dev/null 2>&1; then
408
- _m_sub="$(normalize_slug_id "$_m_first")"
412
+ _m_sub="$(normalize_slug_id "$_dir_in_repo")"
409
413
  else
410
- _m_sub="$_m_first"
414
+ _m_sub="$(printf '%s' "$_dir_in_repo" | tr '/' '-')"
411
415
  fi
412
416
  else
413
417
  _m_sub=""
@@ -455,13 +459,12 @@ build_workspace_source_manifest() {
455
459
  fi
456
460
  if [ -n "$_s_repo" ]; then
457
461
  _s_in_repo="${_s_after_repos#"${_s_repo}/"}"
458
- _s_first="$(printf '%s' "$_s_in_repo" | cut -d'/' -f1)"
459
- _s_second="$(printf '%s' "$_s_in_repo" | cut -d'/' -f2)"
460
- if [ -n "$_s_second" ] && [ "$_s_first" != "$_s_in_repo" ]; then
462
+ _dir_in_repo="$(dirname "$_s_in_repo")"
463
+ if [ -n "$_dir_in_repo" ] && [ "$_dir_in_repo" != "." ]; then
461
464
  if command -v normalize_slug_id >/dev/null 2>&1; then
462
- _s_sub="$(normalize_slug_id "$_s_first")"
465
+ _s_sub="$(normalize_slug_id "$_dir_in_repo")"
463
466
  else
464
- _s_sub="$_s_first"
467
+ _s_sub="$(printf '%s' "$_dir_in_repo" | tr '/' '-')"
465
468
  fi
466
469
  else
467
470
  _s_sub=""
@@ -475,16 +478,13 @@ build_workspace_source_manifest() {
475
478
  fi
476
479
  ;;
477
480
  *)
478
- _s_first="$(printf '%s' "$_s_rel" | cut -d'/' -f1)"
479
- _s_second="$(printf '%s' "$_s_rel" | cut -d'/' -f2)"
480
- if [ -n "$_s_second" ] && [ "$_s_first" != "$_s_rel" ] && [ "$_s_first" != "docs" ]; then
481
+ _dir_in_nexus="$(dirname "$_s_rel")"
482
+ if [ -n "$_dir_in_nexus" ] && [ "$_dir_in_nexus" != "." ]; then
481
483
  if command -v normalize_slug_id >/dev/null 2>&1; then
482
- _s_sub="$(normalize_slug_id "$_s_first")"
484
+ _s_sub="$(normalize_slug_id "$_dir_in_nexus")"
483
485
  else
484
- _s_sub="$_s_first"
486
+ _s_sub="$(printf '%s' "$_dir_in_nexus" | tr '/' '-')"
485
487
  fi
486
- elif [ "$_s_first" = "docs" ]; then
487
- _s_sub="docs"
488
488
  else
489
489
  _s_sub=""
490
490
  fi
@@ -1,5 +1,5 @@
1
1
  name: karpathy-llm
2
- version: 0.9.5
2
+ version: 0.9.7
3
3
  description: "Zero-dependency B-Tree (_index/) and Sorted TSV Graph (_graph/) LLM Wiki for Repo Nexus"
4
4
  author: unoxen
5
5
  homepage: https://github.com/unoxen/repo-nexus
@@ -608,8 +608,11 @@ setup_plugin_test_workspace karpathy-llm "$TEST_GLOB_WS"
608
608
  cd "$TEST_GLOB_WS"
609
609
 
610
610
  mkdir -p "$TEST_GLOB_WS/repos/backend/docs" "$TEST_GLOB_WS/repos/frontend/docs"
611
+ mkdir -p "$TEST_GLOB_WS/repos/backend/apps/test-app" "$TEST_GLOB_WS/repos/backend/apps/other-app"
611
612
  printf '# Backend Service\nBackend API service.\n' > "$TEST_GLOB_WS/repos/backend/README.md"
612
613
  printf '# Backend Architecture\nInternal architecture doc.\n' > "$TEST_GLOB_WS/repos/backend/docs/architecture.md"
614
+ printf '# Test App\nNested test app component.\n' > "$TEST_GLOB_WS/repos/backend/apps/test-app/README.md"
615
+ printf '# Other App\nNested other app component.\n' > "$TEST_GLOB_WS/repos/backend/apps/other-app/README.md"
613
616
  printf '# Frontend Client\nFrontend web client.\n' > "$TEST_GLOB_WS/repos/frontend/README.md"
614
617
  printf '# Frontend Setup\nInternal setup doc.\n' > "$TEST_GLOB_WS/repos/frontend/docs/setup.md"
615
618
 
@@ -634,6 +637,12 @@ grep -q '^backend-readme[ ]repos-backend[ ]repos/backend/README.md' "$TEST_GLO
634
637
  grep -q '^frontend-readme[ ]repos-frontend[ ]repos/frontend/README.md' "$TEST_GLOB_WS/wiki/_graph/nodes.tsv" || {
635
638
  fail "frontend-readme not registered properly in nodes.tsv: $(cat "$TEST_GLOB_WS/wiki/_graph/nodes.tsv")"; exit 1;
636
639
  }
640
+ grep -q '^backend-apps-test-app[ ]repos-backend-apps[ ]repos/backend/apps/test-app/README.md' "$TEST_GLOB_WS/wiki/_graph/nodes.tsv" || {
641
+ fail "backend-apps-test-app not registered properly in nodes.tsv: $(cat "$TEST_GLOB_WS/wiki/_graph/nodes.tsv")"; exit 1;
642
+ }
643
+ grep -q '^backend-apps-other-app[ ]repos-backend-apps[ ]repos/backend/apps/other-app/README.md' "$TEST_GLOB_WS/wiki/_graph/nodes.tsv" || {
644
+ fail "backend-apps-other-app not registered properly in nodes.tsv: $(cat "$TEST_GLOB_WS/wiki/_graph/nodes.tsv")"; exit 1;
645
+ }
637
646
 
638
647
  # Verify unconfigured member docs were NOT ingested
639
648
  ! grep -q 'architecture' "$TEST_GLOB_WS/wiki/_graph/nodes.tsv" || {
@@ -643,9 +652,16 @@ grep -q '^frontend-readme[ ]repos-frontend[ ]repos/frontend/README.md' "$TEST_
643
652
  fail "Unexpected member docs (setup.md) was ingested into wiki/_graph/nodes.tsv"; exit 1;
644
653
  }
645
654
 
646
- # Verify B-tree shards were compiled for backend and frontend
655
+ # Verify B-tree shards were compiled for backend, frontend, and backend apps
647
656
  [ -f "$TEST_GLOB_WS/wiki/_index/repos-backend.md" ] || { fail "repos-backend.md shard missing"; exit 1; }
648
657
  [ -f "$TEST_GLOB_WS/wiki/_index/repos-frontend.md" ] || { fail "repos-frontend.md shard missing"; exit 1; }
658
+ [ -f "$TEST_GLOB_WS/wiki/_index/repos-backend-apps.md" ] || { fail "repos-backend-apps.md shard missing"; exit 1; }
659
+ grep -q '\[\[backend-apps-test-app\]\]' "$TEST_GLOB_WS/wiki/_index/repos-backend-apps.md" || {
660
+ fail "repos-backend-apps.md missing link to backend-apps-test-app"; exit 1;
661
+ }
662
+ grep -q '\[\[backend-apps-other-app\]\]' "$TEST_GLOB_WS/wiki/_index/repos-backend-apps.md" || {
663
+ fail "repos-backend-apps.md missing link to backend-apps-other-app"; exit 1;
664
+ }
649
665
  pass
650
666
 
651
667
  if [ "${_STANDALONE_RUN:-0}" -eq 1 ]; then
@@ -1,5 +1,5 @@
1
1
  name: windsurf
2
- version: 0.9.5
2
+ version: 0.9.7
3
3
  description: Windsurf IDE integration (maintains .windsurfrules and generates user skills in .windsurf/rules/)
4
4
  author: unoxen
5
5
  homepage: https://github.com/unoxen/repo-nexus