diff --git a/README.md b/README.md index 16600ee..4cb549b 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ The design is ant-colony inspired on purpose. Agents do not need a central plann ## Install ```bash -npm install -g @imdeadpool/colony +npm install -g @imdeadpool/colony-cli ``` Register Colony with your IDE or agent runtime: diff --git a/apps/cli/CHANGELOG.md b/apps/cli/CHANGELOG.md index 49e0ede..c2cdb15 100644 --- a/apps/cli/CHANGELOG.md +++ b/apps/cli/CHANGELOG.md @@ -1,7 +1,8 @@ -# @imdeadpool/colony +# @imdeadpool/colony-cli > History note: the CLI was published as `cavemem` through 0.3.0 and renamed to -> `@imdeadpool/colony` during the 0.3.0 cycle. Version 0.4.0 was consumed by the +> `@imdeadpool/colony` during the 0.3.0 cycle, then `@imdeadpool/colony-cli` +> during the 0.5.0 cycle. Version 0.4.0 was consumed by the > `@colony/mcp-server` heartbeat bump (the CLI did not publish a 0.4.0); 0.5.0 > is the first linked release where the CLI and `@colony/*` workspace packages > ship together. diff --git a/apps/cli/package.json b/apps/cli/package.json index 470fc5d..1053d01 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,5 +1,5 @@ { - "name": "@imdeadpool/colony", + "name": "@imdeadpool/colony-cli", "version": "0.5.0", "license": "MIT", "description": "Local-first memory and coordination for Claude Code, Gemini CLI, OpenCode, Codex, and Cursor.", diff --git a/package.json b/package.json index 3d42d9a..343325d 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "packageManager": "pnpm@9.12.0", "scripts": { "build": "pnpm -r --filter \"./packages/*\" --filter \"./apps/*\" build", - "dev": "pnpm --filter @imdeadpool/colony dev", + "dev": "pnpm --filter @imdeadpool/colony-cli dev", "test": "pnpm -r test", "typecheck": "pnpm -r typecheck", "lint": "biome check .", @@ -27,8 +27,8 @@ "format": "biome format --write .", "clean": "pnpm -r exec rm -rf dist && rm -rf node_modules/.cache", "p": "pnpm run publish:cli", - "publish:cli": "pnpm --filter @imdeadpool/colony pack:release && npm publish apps/cli/release --access public --cache /tmp/agents-hivemind-npm-cache", - "publish:cli:dry-run": "pnpm --filter @imdeadpool/colony pack:release && npm publish apps/cli/release --dry-run --access public --cache /tmp/agents-hivemind-npm-cache", + "publish:cli": "pnpm --filter @imdeadpool/colony-cli pack:release && npm publish apps/cli/release --access public --cache /tmp/agents-hivemind-npm-cache", + "publish:cli:dry-run": "pnpm --filter @imdeadpool/colony-cli pack:release && npm publish apps/cli/release --dry-run --access public --cache /tmp/agents-hivemind-npm-cache", "release": "changeset publish" }, "devDependencies": { diff --git a/scripts/e2e-pack-release.sh b/scripts/e2e-pack-release.sh index 7c2a4b8..7188b9d 100755 --- a/scripts/e2e-pack-release.sh +++ b/scripts/e2e-pack-release.sh @@ -27,7 +27,7 @@ cleanup mkdir -p "$PACK" "$PREFIX" "$HOME_DIR" echo "==> 1. pack:release (build + pack-release.mjs)" -pnpm --filter @imdeadpool/colony pack:release >/dev/null +pnpm --filter @imdeadpool/colony-cli pack:release >/dev/null REL="$REPO/apps/cli/release" test -f "$REL/package.json" || { echo "release dir missing package.json"; exit 1; } @@ -36,10 +36,9 @@ test -f "$REL/LICENSE" || { echo "release dir missing LICENSE"; exit 1; } test -d "$REL/hooks-scripts" || { echo "release dir missing hooks-scripts"; exit 1; } echo "==> 2. npm pack the release dir (mirrors what publish:release uploads)" -VERSION=$(node -e "console.log(require('$REPO/apps/cli/package.json').version)") ( cd "$REL" && npm pack --pack-destination "$PACK" >/dev/null ) -TGZ="$PACK/colony-$VERSION.tgz" -test -f "$TGZ" || { echo "tarball missing at $TGZ"; ls "$PACK"; exit 1; } +TGZ=$(node -e "const fs=require('fs'); const path=require('path'); const f=fs.readdirSync('$PACK').find((name)=>name.endsWith('.tgz')); if (!f) process.exit(1); console.log(path.join('$PACK', f));") +test -f "$TGZ" || { echo "tarball missing in $PACK"; ls "$PACK"; exit 1; } echo "==> 3. install -g into isolated prefix" npm install --prefix "$PREFIX" --global "$TGZ" >/dev/null diff --git a/scripts/e2e-publish.sh b/scripts/e2e-publish.sh index 3e4ed97..83573e9 100755 --- a/scripts/e2e-publish.sh +++ b/scripts/e2e-publish.sh @@ -41,13 +41,12 @@ echo "==> 1. build everything" pnpm build >/dev/null echo "==> 2. stage publish files (README, LICENSE, hooks-scripts)" -pnpm --filter @imdeadpool/colony stage-publish +pnpm --filter @imdeadpool/colony-cli stage-publish echo "==> 3. npm pack from apps/cli" -VERSION=$(node -e "console.log(require('$REPO/apps/cli/package.json').version)") ( cd "$REPO/apps/cli" && npm pack --pack-destination "$PACK" >/dev/null ) -TGZ="$PACK/colony-$VERSION.tgz" -test -f "$TGZ" || { echo "tarball missing at $TGZ"; ls "$PACK"; exit 1; } +TGZ=$(node -e "const fs=require('fs'); const path=require('path'); const f=fs.readdirSync('$PACK').find((name)=>name.endsWith('.tgz')); if (!f) process.exit(1); console.log(path.join('$PACK', f));") +test -f "$TGZ" || { echo "tarball missing in $PACK"; ls "$PACK"; exit 1; } echo "==> 4. inspect tarball contents" tar -tzf "$TGZ" | sort