golem-cc 0.1.28 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/golem +8 -15
  2. package/package.json +1 -1
package/bin/golem CHANGED
@@ -181,7 +181,6 @@ print_banner() {
181
181
  echo " ╚═════╝ ╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═╝"
182
182
  echo -e "${NC}"
183
183
  echo -e " ${DIM}\"Ruby's son is a doctor, and you're letting a computer write your code?\"${NC}"
184
- echo ""
185
184
  }
186
185
 
187
186
  print_usage() {
@@ -237,20 +236,14 @@ cmd_install() {
237
236
  mkdir -p .golem/specs
238
237
 
239
238
  # Copy prompts and agents (don't overwrite existing)
240
- local copied_agents=false
241
- if [[ -d "$GOLEM_DIR/golem/agents" ]]; then
242
- if cp -n "$GOLEM_DIR/golem/prompts/"*.md .golem/prompts/ 2>/dev/null && \
243
- cp -n "$GOLEM_DIR/golem/agents/"*.md .golem/agents/ 2>/dev/null; then
244
- copied_agents=true
245
- echo -e "${GREEN}✓${NC} Copied prompts and agents"
246
- fi
247
- fi
248
-
249
- if [[ "$copied_agents" == "false" ]]; then
250
- echo -e "${YELLOW}⚠${NC} Could not copy agents from $GOLEM_DIR/golem/"
251
- echo -e " ${DIM}Expected: $GOLEM_DIR/golem/agents/*.md${NC}"
252
- echo -e " ${DIM}Spec building will use inline prompts instead${NC}"
253
- echo -e " ${DIM}Try reinstalling: npx golem-cc --global${NC}"
239
+ if [[ -d "$GOLEM_DIR/golem/agents" ]] && [[ -d "$GOLEM_DIR/golem/prompts" ]]; then
240
+ # cp -n doesn't overwrite but returns error if file exists, so ignore exit code
241
+ cp -n "$GOLEM_DIR/golem/prompts/"*.md .golem/prompts/ 2>/dev/null || true
242
+ cp -n "$GOLEM_DIR/golem/agents/"*.md .golem/agents/ 2>/dev/null || true
243
+ echo -e "${GREEN}✓${NC} Synced prompts and agents"
244
+ else
245
+ echo -e "${YELLOW}⚠${NC} No global prompts/agents found"
246
+ echo -e " ${DIM}Run: npx golem-cc --global${NC}"
254
247
  fi
255
248
 
256
249
  # Create AGENTS.md if it doesn't exist
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "golem-cc",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Autonomous coding loop with Claude - structured specs, ralph loop execution, code simplification",
5
5
  "bin": {
6
6
  "golem-cc": "./bin/install.cjs"