golem-cc 0.1.22 → 0.1.23
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 +73 -34
- package/golem/prompts/PROMPT_build.md +6 -6
- package/golem/prompts/PROMPT_plan.md +4 -4
- package/package.json +1 -1
package/bin/golem
CHANGED
|
@@ -227,11 +227,11 @@ cmd_install() {
|
|
|
227
227
|
mkdir -p .golem/agents
|
|
228
228
|
mkdir -p .golem/specs
|
|
229
229
|
|
|
230
|
-
# Copy prompts and agents
|
|
230
|
+
# Copy prompts and agents (don't overwrite existing)
|
|
231
231
|
local copied_agents=false
|
|
232
232
|
if [[ -d "$GOLEM_DIR/golem/agents" ]]; then
|
|
233
|
-
if cp "$GOLEM_DIR/golem/prompts/"*.md .golem/prompts/ 2>/dev/null && \
|
|
234
|
-
cp "$GOLEM_DIR/golem/agents/"*.md .golem/agents/ 2>/dev/null; then
|
|
233
|
+
if cp -n "$GOLEM_DIR/golem/prompts/"*.md .golem/prompts/ 2>/dev/null && \
|
|
234
|
+
cp -n "$GOLEM_DIR/golem/agents/"*.md .golem/agents/ 2>/dev/null; then
|
|
235
235
|
copied_agents=true
|
|
236
236
|
echo -e "${GREEN}✓${NC} Copied prompts and agents"
|
|
237
237
|
fi
|
|
@@ -246,40 +246,13 @@ cmd_install() {
|
|
|
246
246
|
|
|
247
247
|
# Create AGENTS.md if it doesn't exist
|
|
248
248
|
if [[ ! -f ".golem/AGENTS.md" ]]; then
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
## Commands
|
|
253
|
-
|
|
254
|
-
### Testing
|
|
255
|
-
```bash
|
|
256
|
-
npm test
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
### Type Checking
|
|
260
|
-
```bash
|
|
261
|
-
npm run typecheck
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
### Linting
|
|
265
|
-
```bash
|
|
266
|
-
npm run lint
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
### Build
|
|
270
|
-
```bash
|
|
271
|
-
npm run build
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
## Learnings
|
|
275
|
-
<!-- Updated during build iterations -->
|
|
276
|
-
EOF
|
|
249
|
+
# Auto-detect project type and create AGENTS.md
|
|
250
|
+
detect_project
|
|
277
251
|
echo -e "${GREEN}✓${NC} Created .golem/AGENTS.md"
|
|
252
|
+
else
|
|
253
|
+
echo -e "${GREEN}✓${NC} Preserved existing .golem/AGENTS.md"
|
|
278
254
|
fi
|
|
279
255
|
|
|
280
|
-
# Auto-detect project type
|
|
281
|
-
detect_project
|
|
282
|
-
|
|
283
256
|
echo -e "${GREEN}✓${NC} Created .golem/ directory"
|
|
284
257
|
echo -e "${GREEN}✓${NC} Created .golem/specs/ directory"
|
|
285
258
|
echo ""
|
|
@@ -346,8 +319,74 @@ EOF
|
|
|
346
319
|
EOF
|
|
347
320
|
elif [[ -f "pyproject.toml" ]] || [[ -f "requirements.txt" ]]; then
|
|
348
321
|
echo -e "${GREEN}✓${NC} Detected Python project"
|
|
322
|
+
cat > .golem/AGENTS.md << 'EOF'
|
|
323
|
+
# Operational Guide
|
|
324
|
+
|
|
325
|
+
## Commands
|
|
326
|
+
|
|
327
|
+
### Testing
|
|
328
|
+
```bash
|
|
329
|
+
pytest
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### Linting
|
|
333
|
+
```bash
|
|
334
|
+
ruff check .
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Type Checking
|
|
338
|
+
```bash
|
|
339
|
+
mypy .
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
## Learnings
|
|
343
|
+
<!-- Updated during build iterations -->
|
|
344
|
+
EOF
|
|
349
345
|
elif [[ -f "go.mod" ]]; then
|
|
350
346
|
echo -e "${GREEN}✓${NC} Detected Go project"
|
|
347
|
+
cat > .golem/AGENTS.md << 'EOF'
|
|
348
|
+
# Operational Guide
|
|
349
|
+
|
|
350
|
+
## Commands
|
|
351
|
+
|
|
352
|
+
### Testing
|
|
353
|
+
```bash
|
|
354
|
+
go test ./...
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
### Linting
|
|
358
|
+
```bash
|
|
359
|
+
golangci-lint run
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
### Build
|
|
363
|
+
```bash
|
|
364
|
+
go build ./...
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
## Learnings
|
|
368
|
+
<!-- Updated during build iterations -->
|
|
369
|
+
EOF
|
|
370
|
+
else
|
|
371
|
+
# Unknown project type - create generic AGENTS.md
|
|
372
|
+
cat > .golem/AGENTS.md << 'EOF'
|
|
373
|
+
# Operational Guide
|
|
374
|
+
|
|
375
|
+
## Commands
|
|
376
|
+
|
|
377
|
+
### Testing
|
|
378
|
+
```bash
|
|
379
|
+
# Add your test command here
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
### Build
|
|
383
|
+
```bash
|
|
384
|
+
# Add your build command here
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
## Learnings
|
|
388
|
+
<!-- Updated during build iterations -->
|
|
389
|
+
EOF
|
|
351
390
|
fi
|
|
352
391
|
}
|
|
353
392
|
|
|
@@ -5,13 +5,13 @@ You are in BUILD MODE. Implement ONE task from the plan, then exit.
|
|
|
5
5
|
## Phase 0: Orient
|
|
6
6
|
|
|
7
7
|
Study these files to understand context:
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
8
|
+
- @.golem/specs/* - All specification files
|
|
9
|
+
- @.golem/AGENTS.md - Operational commands (test/build/lint)
|
|
10
|
+
- @.golem/IMPLEMENTATION_PLAN.md - Current task list
|
|
11
11
|
|
|
12
12
|
## Phase 1: Select Task
|
|
13
13
|
|
|
14
|
-
1. Read IMPLEMENTATION_PLAN.md
|
|
14
|
+
1. Read .golem/IMPLEMENTATION_PLAN.md
|
|
15
15
|
2. Pick the first incomplete task (marked `- [ ]`)
|
|
16
16
|
3. Do NOT assume something is not implemented - search first
|
|
17
17
|
|
|
@@ -33,8 +33,8 @@ If ANY fails: fix the issue, then re-run ALL validation from the beginning.
|
|
|
33
33
|
|
|
34
34
|
## Phase 4: Complete
|
|
35
35
|
|
|
36
|
-
1. Update IMPLEMENTATION_PLAN.md - mark task `- [x]`
|
|
37
|
-
2. Update AGENTS.md learnings if you discovered something useful
|
|
36
|
+
1. Update .golem/IMPLEMENTATION_PLAN.md - mark task `- [x]`
|
|
37
|
+
2. Update .golem/AGENTS.md learnings if you discovered something useful
|
|
38
38
|
3. Commit changes with descriptive message
|
|
39
39
|
4. Exit
|
|
40
40
|
|
|
@@ -5,9 +5,9 @@ You are in PLANNING MODE. Analyze specs vs existing code and create IMPLEMENTATI
|
|
|
5
5
|
## Phase 0: Orient
|
|
6
6
|
|
|
7
7
|
Study these files first:
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
8
|
+
- @.golem/specs/* - All specification files
|
|
9
|
+
- @.golem/AGENTS.md - Operational commands
|
|
10
|
+
- @.golem/IMPLEMENTATION_PLAN.md - Current plan (if exists)
|
|
11
11
|
|
|
12
12
|
## Phase 1: Gap Analysis
|
|
13
13
|
|
|
@@ -19,7 +19,7 @@ Study these files first:
|
|
|
19
19
|
|
|
20
20
|
## Phase 2: Create Plan
|
|
21
21
|
|
|
22
|
-
Write
|
|
22
|
+
Write `.golem/IMPLEMENTATION_PLAN.md` with prioritized tasks:
|
|
23
23
|
|
|
24
24
|
```markdown
|
|
25
25
|
# Implementation Plan
|