Skip to content

feat: add replicator init command for per-repo setup#6

Merged
jflowers merged 1 commit into
mainfrom
opsx/add-init-command
Apr 6, 2026
Merged

feat: add replicator init command for per-repo setup#6
jflowers merged 1 commit into
mainfrom
opsx/add-init-command

Conversation

@jflowers

@jflowers jflowers commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds replicator init command for per-repo setup, creating .hive/ with an empty cells.json. This enables uf init to delegate to replicator init the same way it delegates to dewey init.

  • Idempotent: prints "already initialized" if .hive/ exists
  • --path flag for non-CWD targets
  • No database, git, or network dependencies
  • 4 tests: fresh dir, idempotent, custom path, invalid path

Closes #5
Unblocks unbound-force/unbound-force#82

- Creates .hive/ directory with empty cells.json
- Idempotent: safe to run multiple times
- --path flag for custom target directory
- No database, git, or network dependencies
- 4 tests covering fresh/idempotent/custom-path/invalid-path
- CLI commands table added to AGENTS.md
@jflowers jflowers merged commit b0145c0 into main Apr 6, 2026
1 check passed
@jflowers jflowers deleted the opsx/add-init-command branch April 6, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

feat: add replicator init command (per-repo setup)

2 participants