Skip to content

Make the repo usable by external users: license, submodule docs, honest platform errors - #8

Merged
taylor009 merged 3 commits into
mainfrom
external-user-fixes
Jul 16, 2026
Merged

Make the repo usable by external users: license, submodule docs, honest platform errors#8
taylor009 merged 3 commits into
mainfrom
external-user-fixes

Conversation

@taylor009

Copy link
Copy Markdown
Owner

Three fixes from an external-user readiness audit, so a fresh clone by someone who isn't the author actually works.

Changes

  1. Add MIT LICENSE. The repo is public but had no license, which legally means all rights reserved — nobody could use or modify it.
  2. README: clone with --recurse-submodules. vendor/tree-sitter core + 11 grammars are git submodules; following the old README verbatim left them empty and configure failed with Cannot find source file: core/lib/src/lib.c. Reproduced this exact failure in a fresh worktree before fixing. Also documents git submodule update --init --recursive for existing clones.
  3. CLI: honest non-macOS error for cgraph daemon / cgraph drain. Both command groups are launchd-backed end to end. On Linux, launchctl_bootstrap silently returns false and the error said "check launchctl and binary paths" — useless on a platform with no launchctl. Both handlers now exit early on non-Apple with a clear message pointing at graphd --root PATH (daemon) and running the drain script via cron/systemd timer (drain).

Verification

  • Fresh worktree from origin/main: cmake --preset default + full build — clean.
  • ctest --preset default: 64/64 tests passed (30s).
  • macOS behavior unchanged: cgraph daemon status still lists 13 tracked repos, cgraph drain status still reports installed.
  • The non-Apple guard branch is compiled and exercised by the ubuntu-latest CI leg of this PR.

Session transcript (local, not attached — public repo): ~/.agents/.history/versions/claude/2.1.196/home/.claude/projects/-Users-taylorgagne-tools-cgraph/01e85bdf-bb55-4a02-8df4-2ab883c33b0d.jsonl

🤖 Generated with Claude Code

taylorg009 and others added 3 commits July 16, 2026 01:29
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
vendor/tree-sitter core and grammars are git submodules; a plain clone
leaves them empty and the build fails at configure with a missing
core/lib/src/lib.c. Document the flag and the recovery command.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
cgraph daemon/drain subcommands are launchd-backed end to end; on Linux
they silently no-op and the error text told users to check launchctl,
which does not exist there. Guard both command groups with a clear
platform message and point at the direct alternatives.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@taylor009
taylor009 merged commit 7e7ac12 into main Jul 16, 2026
6 checks passed
@taylor009
taylor009 deleted the external-user-fixes branch July 16, 2026 08:48
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.

2 participants