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.
- package/bin/golem +8 -15
- 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
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
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
|