golem-cc 2.1.2 → 3.0.0

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 (84) hide show
  1. package/.claude/commands/golem/build.md +18 -0
  2. package/.claude/commands/golem/config.md +39 -0
  3. package/.claude/commands/golem/continue.md +73 -0
  4. package/.claude/commands/golem/doctor.md +46 -0
  5. package/.claude/commands/golem/document.md +138 -0
  6. package/.claude/commands/golem/help.md +58 -0
  7. package/.claude/commands/golem/pause.md +130 -0
  8. package/.claude/commands/golem/plan.md +111 -0
  9. package/.claude/commands/golem/review.md +166 -0
  10. package/.claude/commands/golem/security.md +186 -0
  11. package/.claude/commands/golem/simplify.md +76 -0
  12. package/.claude/commands/golem/spec.md +105 -0
  13. package/.claude/commands/golem/status.md +33 -0
  14. package/.golem/agents/code-simplifier.md +54 -0
  15. package/.golem/agents/review-architecture.md +59 -0
  16. package/.golem/agents/review-logic.md +50 -0
  17. package/.golem/agents/review-security.md +50 -0
  18. package/.golem/agents/review-style.md +48 -0
  19. package/.golem/agents/review-tests.md +48 -0
  20. package/.golem/agents/spec-builder.md +60 -0
  21. package/.golem/bin/golem.mjs +270 -0
  22. package/.golem/lib/build.mjs +557 -0
  23. package/.golem/lib/claude.mjs +95 -0
  24. package/.golem/lib/config.mjs +421 -0
  25. package/.golem/lib/display.mjs +191 -0
  26. package/.golem/lib/doctor.mjs +197 -0
  27. package/.golem/lib/document.mjs +792 -0
  28. package/.golem/lib/gates.mjs +78 -0
  29. package/.golem/lib/init.mjs +166 -0
  30. package/.golem/lib/output.mjs +40 -0
  31. package/.golem/lib/ratelimit.mjs +86 -0
  32. package/.golem/lib/security.mjs +603 -0
  33. package/.golem/lib/simplify.mjs +101 -0
  34. package/.golem/lib/tui.mjs +368 -0
  35. package/.golem/lib/usage.mjs +119 -0
  36. package/.golem/lib/worktree.mjs +509 -0
  37. package/.golem/prompts/build.md +23 -0
  38. package/.golem/prompts/document-inline.md +66 -0
  39. package/.golem/prompts/document-markdown.md +80 -0
  40. package/.golem/prompts/simplify.md +35 -0
  41. package/README.md +141 -142
  42. package/bin/golem-shim.mjs +36 -0
  43. package/bin/install.mjs +193 -0
  44. package/package.json +27 -32
  45. package/.env.example +0 -17
  46. package/bin/golem +0 -1040
  47. package/commands/golem/build.md +0 -235
  48. package/commands/golem/config.md +0 -55
  49. package/commands/golem/doctor.md +0 -137
  50. package/commands/golem/help.md +0 -212
  51. package/commands/golem/plan.md +0 -214
  52. package/commands/golem/review.md +0 -376
  53. package/commands/golem/security.md +0 -204
  54. package/commands/golem/simplify.md +0 -94
  55. package/commands/golem/spec.md +0 -226
  56. package/commands/golem/status.md +0 -60
  57. package/dist/api/freshworks.d.ts +0 -61
  58. package/dist/api/freshworks.d.ts.map +0 -1
  59. package/dist/api/freshworks.js +0 -119
  60. package/dist/api/freshworks.js.map +0 -1
  61. package/dist/api/gitea.d.ts +0 -96
  62. package/dist/api/gitea.d.ts.map +0 -1
  63. package/dist/api/gitea.js +0 -154
  64. package/dist/api/gitea.js.map +0 -1
  65. package/dist/cli/index.d.ts +0 -9
  66. package/dist/cli/index.d.ts.map +0 -1
  67. package/dist/cli/index.js +0 -352
  68. package/dist/cli/index.js.map +0 -1
  69. package/dist/sync/ticket-sync.d.ts +0 -53
  70. package/dist/sync/ticket-sync.d.ts.map +0 -1
  71. package/dist/sync/ticket-sync.js +0 -226
  72. package/dist/sync/ticket-sync.js.map +0 -1
  73. package/dist/types.d.ts +0 -125
  74. package/dist/types.d.ts.map +0 -1
  75. package/dist/types.js +0 -5
  76. package/dist/types.js.map +0 -1
  77. package/dist/worktree/manager.d.ts +0 -54
  78. package/dist/worktree/manager.d.ts.map +0 -1
  79. package/dist/worktree/manager.js +0 -190
  80. package/dist/worktree/manager.js.map +0 -1
  81. package/golem/agents/code-simplifier.md +0 -81
  82. package/golem/agents/spec-builder.md +0 -90
  83. package/golem/prompts/PROMPT_build.md +0 -71
  84. package/golem/prompts/PROMPT_plan.md +0 -102
@@ -1,102 +0,0 @@
1
- # Planning Mode
2
-
3
- You are in PLANNING MODE. Analyze specs and create an implementation plan. Do NOT write any code.
4
-
5
- ## Phase 1: Read Specs
6
-
7
- Read every file in `.golem/specs/`:
8
- - Extract all requirements (must have, should have)
9
- - Extract all acceptance criteria
10
- - Extract all test definitions
11
- - Note dependencies between topics
12
-
13
- ## Phase 2: Analyze Codebase
14
-
15
- Search the existing code:
16
- - What's already implemented?
17
- - What patterns exist?
18
- - What files will need modification?
19
- - What new files will be needed?
20
-
21
- Do NOT assume something doesn't exist - always search first.
22
-
23
- ## Phase 3: Gap Analysis
24
-
25
- For each requirement:
26
- - **Done**: Already implemented (cite evidence)
27
- - **Partial**: Needs modification (cite what exists)
28
- - **Missing**: Not implemented (cite where it should go)
29
- - **Blocked**: Depends on external factor
30
-
31
- ## Phase 4: Create Staged Tasks
32
-
33
- Group tasks into STAGES. Each stage is a logical milestone.
34
-
35
- Good stage: "Authentication endpoints"
36
- - Task 1: Add login route handler
37
- - Task 2: Add password validation
38
- - Task 3: Add JWT generation
39
- - Task 4: Add login tests
40
-
41
- Bad stage: "Backend stuff"
42
- - Too vague, not a clear milestone
43
-
44
- ### Task Quality
45
-
46
- Each task should be:
47
- - **Atomic**: One focused change
48
- - **Testable**: Clear verification criteria
49
- - **Small**: 1-3 files typically
50
- - **Independent**: Minimal dependencies within stage
51
-
52
- ### Stage Commit Message
53
-
54
- Each stage needs a commit message for when it's squashed:
55
- ```
56
- {type}({scope}): {description} [{TICKET_ID}]
57
- ```
58
-
59
- ## Phase 5: Write Plan
60
-
61
- Create `.golem/IMPLEMENTATION_PLAN.md`:
62
-
63
- ```markdown
64
- # Implementation Plan
65
-
66
- Ticket: {INC-XXXX}
67
- Generated: {timestamp}
68
-
69
- ## Status
70
- - Stages: N
71
- - Completed: 0
72
- - Current: Stage 1
73
-
74
- ---
75
-
76
- ## Stage 1: {Clear milestone name}
77
- Commit: {type}({scope}): {description} [{TICKET_ID}]
78
-
79
- ### [ ] 1.1. {Task title}
80
- Files: {files to create/modify}
81
- Notes: {implementation hints}
82
- Tests: {what verifies this}
83
-
84
- ### [ ] 1.2. {Task title}
85
- ...
86
-
87
- ---
88
-
89
- ## Stage 2: {Milestone}
90
- Commit: {commit message}
91
- Depends on: Stage 1
92
-
93
- ...
94
- ```
95
-
96
- ## Critical Rules
97
-
98
- - Do NOT implement anything
99
- - Do NOT modify source code
100
- - ONLY create .golem/IMPLEMENTATION_PLAN.md
101
- - Be thorough - missing tasks cause problems later
102
- - Stages represent logical milestones for commits