Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
schema: spec-driven
created: 2026-05-11
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# rename-colony-package-to-colonyq (T1)

Branch: `agent/claude/rename-colony-package-to-colonyq-2026-05-11-13-03`

## Problem

Colony's canonical npm package was renamed from `@imdeadpool/colony-cli` to `colonyq`. Gitguardex still references the old name in `src/context.js:24` (`COLONY_PACKAGE`), so the `gx status` / `gx setup` companion-install prompt shows the wrong command:

```
[gitguardex] Missing companion tools: colony.
Install missing companion tools now? (npm i -g @imdeadpool/colony-cli) [y/n]
```

Accepting installs a deprecated package; declining leaves the user without colony.

## Change

Rename the constant: `COLONY_PACKAGE = 'colonyq'`. The install-command builder in `src/toolchain/index.js:279` constructs `npm i -g <packageName>` from this constant, so the prompt automatically becomes `npm i -g colonyq` and the global-toolchain detection (`npm list -g --depth=0 --json` lookup) checks the right package name.

## Out of scope

The new colony post-install chain — `colony install --ide codex` → `npx skills add recodeee/colony/skills/colony-mcp` → `colony health` — is user-side configuration that colony itself orchestrates. Gitguardex only owns the `npm i -g` step. Adding a `postInstallCommand` field to `GLOBAL_TOOLCHAIN_SERVICES` so gitguardex could chain those is a separate refactor and isn't blocking this rename. Documented as a future follow-up in the inline comment near the constant.

## Verification

- `node --check src/context.js` passes.
- `gx status` (once this lands and is rebuilt/republished) shows `npm i -g colonyq` in the companion prompt.
- Global-toolchain detection now matches against `colonyq` in the `npm list -g` JSON output.

## Cleanup

- [ ] `gx branch finish --branch agent/claude/rename-colony-package-to-colonyq-2026-05-11-13-03 --base main --via-pr --wait-for-merge --cleanup`
- [ ] Record PR URL + `MERGED` state.
- [ ] Confirm sandbox worktree gone.
9 changes: 8 additions & 1 deletion src/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ const GLOBAL_INSTALL_COMMAND = `npm i -g ${packageJson.name}`;
const OPENSPEC_PACKAGE = '@fission-ai/openspec';
const OMC_PACKAGE = 'oh-my-claude-sisyphus';
const OMC_REPO_URL = 'https://github.com/Yeachan-Heo/oh-my-claudecode';
const COLONY_PACKAGE = '@imdeadpool/colony-cli';
// Colony was published under @imdeadpool/colony-cli historically; the new
// canonical npm name is `colonyq`. The companion-install prompt that
// gx status / gx setup show now reads `npm i -g colonyq`. Post-install
// setup the user runs themselves (gitguardex only owns the `npm i -g` step):
// colony install --ide codex
// npx skills add recodeee/colony/skills/colony-mcp
// colony health
const COLONY_PACKAGE = 'colonyq';
const NPX_BIN = process.env.GUARDEX_NPX_BIN || 'npx';
const GUARDEX_HOME_DIR = path.resolve(process.env.GUARDEX_HOME_DIR || os.homedir());
const GLOBAL_TOOLCHAIN_SERVICES = [
Expand Down
Loading