Skip to content

fix: use Windows-safe _ prefix for catalog node folders - #12

Open
singhguri wants to merge 1 commit into
WeaveMindAI:mainfrom
singhguri:fix/windows-safe-catalog-prefix
Open

fix: use Windows-safe _ prefix for catalog node folders#12
singhguri wants to merge 1 commit into
WeaveMindAI:mainfrom
singhguri:fix/windows-safe-catalog-prefix

Conversation

@singhguri

Copy link
Copy Markdown

What and why

Cloning the repo fails on Windows because catalog node folders use a : prefix (:llm, :discord, :whatsapp, ...) as naming markers for catalog-link.sh. Colons are illegal in Windows filenames, so git aborts the checkout. This renames the marker folders to a Windows-safe _ prefix and updates the linker accordingly.

How

  • Rename every :prefix folder to _prefix (167 files, pure renames at 100% similarity).
  • scripts/catalog-link.sh: treat _ as the prefix marker in both the bash resolve_name() and the Python walk_tree() (catalog-tree.json generation), plus the doc comments.
  • Node names are unchanged: catalog/communication/_discord/send/ still resolves to discord-send.

Verified on Windows (git-bash):

  • Checkout/clone now succeeds — 0 invalid paths.
  • bash scripts/catalog-link.sh --copy produces the same node set as before: 97 Rust, 98 TS, 2 sidecars, 0 stale.
  • catalog-tree.json prefix flags unchanged (discord still isPrefix: True).

Linked issue

Closes #7

Type of change

  • Bug fix

The catalog uses ':'-prefixed directories (:llm, :discord, :whatsapp, ...) as
naming markers for catalog-link.sh. Colons are illegal in Windows filenames,
so cloning this repo on Windows fails at checkout.

Rename every ':prefix' folder to '_prefix' and update catalog-link.sh to
treat '_' as the prefix marker (bash resolve_name + Python walk_tree). The
generated node names are unchanged: catalog/communication/_discord/send/
still resolves to 'discord-send'.

Verified on Windows:
- clone/checkout now succeeds (0 invalid paths)
- bash scripts/catalog-link.sh --copy produces the same node set:
  97 Rust, 98 TS, 2 sidecars, 0 stale
- catalog-tree.json prefix flags unchanged (discord: isPrefix=True)

Fixes WeaveMindAI#7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Colons in File Paths are not allowed on Windows

1 participant