gsd-opencode 1.10.2 → 1.20.1
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/agents/gsd-codebase-mapper.md +29 -3
- package/agents/gsd-debugger.md +19 -21
- package/agents/gsd-executor.md +213 -528
- package/agents/gsd-integration-checker.md +20 -0
- package/agents/gsd-phase-researcher.md +189 -267
- package/agents/gsd-plan-checker.md +278 -279
- package/agents/gsd-planner.md +299 -490
- package/agents/gsd-project-researcher.md +103 -345
- package/agents/gsd-research-synthesizer.md +5 -22
- package/agents/gsd-roadmapper.md +43 -6
- package/agents/gsd-verifier.md +158 -377
- package/{lib → bin/dm/lib}/constants.js +10 -3
- package/{src → bin/dm/src}/commands/install.js +5 -4
- package/{src → bin/dm/src}/commands/uninstall.js +3 -1
- package/{src → bin/dm/src}/services/backup-manager.js +1 -1
- package/{src → bin/dm/src}/services/config.js +1 -1
- package/{src → bin/dm/src}/services/file-ops.js +20 -4
- package/{src → bin/dm/src}/services/health-checker.js +3 -1
- package/{src → bin/dm/src}/services/repair-service.js +3 -1
- package/{src → bin/dm/src}/services/settings.js +1 -1
- package/{src → bin/dm/src}/services/update-service.js +2 -2
- package/bin/gsd-install.js +0 -0
- package/bin/gsd.js +9 -9
- package/commands/gsd/gsd-add-phase.md +43 -0
- package/commands/gsd/gsd-add-todo.md +47 -0
- package/commands/gsd/gsd-audit-milestone.md +36 -0
- package/commands/gsd/gsd-check-todos.md +45 -0
- package/commands/gsd/gsd-cleanup.md +18 -0
- package/commands/gsd/{complete-milestone.md → gsd-complete-milestone.md} +1 -1
- package/commands/gsd/{debug.md → gsd-debug.md} +16 -21
- package/commands/gsd/{discuss-phase.md → gsd-discuss-phase.md} +6 -9
- package/commands/gsd/gsd-execute-phase.md +41 -0
- package/commands/gsd/gsd-health.md +22 -0
- package/commands/gsd/gsd-help.md +22 -0
- package/commands/gsd/gsd-insert-phase.md +32 -0
- package/commands/gsd/gsd-join-discord.md +18 -0
- package/commands/gsd/{list-phase-assumptions.md → gsd-list-phase-assumptions.md} +3 -7
- package/commands/gsd/{map-codebase.md → gsd-map-codebase.md} +3 -3
- package/commands/gsd/gsd-new-milestone.md +44 -0
- package/commands/gsd/gsd-new-project.md +42 -0
- package/commands/gsd/gsd-pause-work.md +38 -0
- package/commands/gsd/gsd-plan-milestone-gaps.md +34 -0
- package/commands/gsd/gsd-plan-phase.md +44 -0
- package/commands/gsd/gsd-progress.md +24 -0
- package/commands/gsd/gsd-quick.md +41 -0
- package/commands/gsd/gsd-reapply-patches.md +119 -0
- package/commands/gsd/gsd-remove-phase.md +31 -0
- package/commands/gsd/{research-phase.md → gsd-research-phase.md} +38 -49
- package/commands/gsd/{resume-work.md → gsd-resume-work.md} +2 -2
- package/commands/gsd/gsd-set-profile.md +34 -0
- package/commands/gsd/gsd-settings.md +36 -0
- package/commands/gsd/gsd-update.md +37 -0
- package/commands/gsd/gsd-verify-work.md +38 -0
- package/get-shit-done/bin/gsd-tools.cjs +553 -0
- package/get-shit-done/bin/gsd-tools.test.cjs +2346 -0
- package/get-shit-done/bin/lib/commands.cjs +556 -0
- package/get-shit-done/bin/lib/config.cjs +162 -0
- package/get-shit-done/bin/lib/core.cjs +377 -0
- package/get-shit-done/bin/lib/frontmatter.cjs +299 -0
- package/get-shit-done/bin/lib/init.cjs +694 -0
- package/get-shit-done/bin/lib/milestone.cjs +215 -0
- package/get-shit-done/bin/lib/phase.cjs +877 -0
- package/get-shit-done/bin/lib/roadmap.cjs +298 -0
- package/get-shit-done/bin/lib/state.cjs +490 -0
- package/get-shit-done/bin/lib/template.cjs +222 -0
- package/get-shit-done/bin/lib/verify.cjs +772 -0
- package/get-shit-done/references/checkpoints.md +62 -364
- package/get-shit-done/references/decimal-phase-calculation.md +65 -0
- package/get-shit-done/references/git-integration.md +10 -16
- package/get-shit-done/references/git-planning-commit.md +38 -0
- package/get-shit-done/references/model-profile-resolution.md +34 -0
- package/get-shit-done/references/model-profiles.md +54 -66
- package/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/get-shit-done/references/planning-config.md +112 -10
- package/get-shit-done/references/questioning.md +4 -0
- package/get-shit-done/references/ui-brand.md +1 -1
- package/get-shit-done/templates/UAT.md +1 -1
- package/get-shit-done/templates/VALIDATION.md +104 -0
- package/get-shit-done/templates/codebase/structure.md +6 -6
- package/get-shit-done/templates/config.json +37 -0
- package/get-shit-done/templates/context.md +2 -10
- package/get-shit-done/templates/continue-here.md +6 -6
- package/get-shit-done/templates/debug-subagent-prompt.md +2 -2
- package/get-shit-done/templates/discovery.md +6 -6
- package/get-shit-done/templates/milestone-archive.md +3 -3
- package/get-shit-done/templates/phase-prompt.md +9 -7
- package/get-shit-done/templates/planner-subagent-prompt.md +6 -6
- package/get-shit-done/templates/research-project/ARCHITECTURE.md +1 -1
- package/get-shit-done/templates/research.md +29 -6
- package/get-shit-done/templates/roadmap.md +1 -1
- package/get-shit-done/templates/state.md +0 -30
- package/get-shit-done/templates/summary-complex.md +59 -0
- package/get-shit-done/templates/summary-minimal.md +41 -0
- package/get-shit-done/templates/summary-standard.md +48 -0
- package/get-shit-done/templates/summary.md +16 -37
- package/get-shit-done/templates/user-setup.md +1 -13
- package/get-shit-done/templates/verification-report.md +5 -5
- package/get-shit-done/workflows/add-phase.md +111 -0
- package/{commands/gsd → get-shit-done/workflows}/add-todo.md +24 -60
- package/{commands/gsd → get-shit-done/workflows}/audit-milestone.md +83 -63
- package/{commands/gsd → get-shit-done/workflows}/check-todos.md +21 -73
- package/get-shit-done/workflows/cleanup.md +152 -0
- package/get-shit-done/workflows/complete-milestone.md +251 -312
- package/get-shit-done/workflows/diagnose-issues.md +6 -31
- package/get-shit-done/workflows/discovery-phase.md +11 -11
- package/get-shit-done/workflows/discuss-phase.md +156 -49
- package/get-shit-done/workflows/execute-phase.md +238 -396
- package/get-shit-done/workflows/execute-plan.md +180 -1609
- package/get-shit-done/workflows/health.md +156 -0
- package/{commands/gsd → get-shit-done/workflows}/help.md +33 -35
- package/get-shit-done/workflows/insert-phase.md +129 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +3 -3
- package/get-shit-done/workflows/map-codebase.md +73 -80
- package/get-shit-done/workflows/new-milestone.md +382 -0
- package/{commands/gsd → get-shit-done/workflows}/new-project.md +281 -234
- package/get-shit-done/workflows/oc-set-profile.md +320 -0
- package/{commands/gsd → get-shit-done/workflows}/pause-work.md +31 -43
- package/{commands/gsd → get-shit-done/workflows}/plan-milestone-gaps.md +29 -50
- package/get-shit-done/workflows/plan-phase.md +478 -0
- package/{commands/gsd → get-shit-done/workflows}/progress.md +64 -47
- package/get-shit-done/workflows/quick.md +453 -0
- package/get-shit-done/workflows/remove-phase.md +154 -0
- package/get-shit-done/workflows/research-phase.md +73 -0
- package/get-shit-done/workflows/resume-project.md +17 -26
- package/get-shit-done/workflows/set-profile.md +80 -0
- package/get-shit-done/workflows/settings.md +213 -0
- package/get-shit-done/workflows/transition.md +84 -104
- package/{commands/gsd → get-shit-done/workflows}/update.md +70 -28
- package/get-shit-done/workflows/verify-phase.md +106 -492
- package/get-shit-done/workflows/verify-work.md +26 -53
- package/package.json +7 -4
- package/rules/gsd-oc-work-hard.md +36 -0
- package/skills/gsd-oc-select-model/SKILL.md +348 -0
- package/skills/gsd-oc-select-model/scripts/select-models.cjs +268 -0
- package/agents/gsd-set-model.md +0 -287
- package/agents/gsd-set-profile.md +0 -239
- package/agents/gsd-settings.md +0 -749
- package/bin/install.js +0 -323
- package/commands/gsd/add-phase.md +0 -207
- package/commands/gsd/execute-phase.md +0 -339
- package/commands/gsd/insert-phase.md +0 -227
- package/commands/gsd/new-milestone.md +0 -721
- package/commands/gsd/plan-phase.md +0 -525
- package/commands/gsd/quick.md +0 -309
- package/commands/gsd/remove-phase.md +0 -349
- package/commands/gsd/set-model.md +0 -77
- package/commands/gsd/set-profile.md +0 -46
- package/commands/gsd/settings.md +0 -33
- package/commands/gsd/verify-work.md +0 -219
- package/commands/gsd/whats-new.md +0 -124
- /package/{src → bin/dm/src}/commands/check.js +0 -0
- /package/{src → bin/dm/src}/commands/config.js +0 -0
- /package/{src → bin/dm/src}/commands/list.js +0 -0
- /package/{src → bin/dm/src}/commands/repair.js +0 -0
- /package/{src → bin/dm/src}/commands/update.js +0 -0
- /package/{src → bin/dm/src}/services/manifest-manager.js +0 -0
- /package/{src → bin/dm/src}/services/migration-service.js +0 -0
- /package/{src → bin/dm/src}/services/scope-manager.js +0 -0
- /package/{src → bin/dm/src}/services/structure-detector.js +0 -0
- /package/{src → bin/dm/src}/utils/hash.js +0 -0
- /package/{src → bin/dm/src}/utils/interactive.js +0 -0
- /package/{src → bin/dm/src}/utils/logger.js +0 -0
- /package/{src → bin/dm/src}/utils/npm-registry.js +0 -0
- /package/{src → bin/dm/src}/utils/path-resolver.js +0 -0
|
@@ -1,22 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
---
|
|
1
|
+
<purpose>
|
|
2
|
+
Check for GSD updates via npm, display changelog for versions between installed and latest, obtain user confirmation, and execute clean installation with cache clearing.
|
|
3
|
+
</purpose>
|
|
5
4
|
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Provides a better update experience than raw `npx gsd-opencode` by showing version diff and changelog entries.
|
|
10
|
-
</objective>
|
|
5
|
+
<required_reading>
|
|
6
|
+
read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
11
8
|
|
|
12
9
|
<process>
|
|
13
10
|
|
|
14
11
|
<step name="get_installed_version">
|
|
15
|
-
|
|
12
|
+
Detect whether GSD is installed locally or globally by checking both locations:
|
|
16
13
|
|
|
17
14
|
```bash
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
# Check local first (takes priority)
|
|
16
|
+
# Paths templated at install time for runtime compatibility
|
|
17
|
+
if [ -f ./.OpenCode/get-shit-done/VERSION ]; then
|
|
18
|
+
cat ./.OpenCode/get-shit-done/VERSION
|
|
19
|
+
echo "LOCAL"
|
|
20
|
+
elif [ -f ~/.config/opencode/get-shit-done/VERSION ]; then
|
|
21
|
+
cat ~/.config/opencode/get-shit-done/VERSION
|
|
22
|
+
echo "GLOBAL"
|
|
23
|
+
else
|
|
24
|
+
echo "UNKNOWN"
|
|
25
|
+
fi
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Parse output:
|
|
29
|
+
- If last line is "LOCAL": installed version is first line, use `--local` flag for update
|
|
30
|
+
- If last line is "GLOBAL": installed version is first line, use `--global` flag for update
|
|
31
|
+
- If "UNKNOWN": proceed to install step (treat as version 0.0.0)
|
|
20
32
|
|
|
21
33
|
**If VERSION file missing:**
|
|
22
34
|
```
|
|
@@ -43,10 +55,10 @@ npm view gsd-opencode version 2>/dev/null
|
|
|
43
55
|
```
|
|
44
56
|
Couldn't check for updates (offline or npm unavailable).
|
|
45
57
|
|
|
46
|
-
To update manually: `npx gsd-opencode
|
|
58
|
+
To update manually: `npx gsd-opencode --global`
|
|
47
59
|
```
|
|
48
60
|
|
|
49
|
-
|
|
61
|
+
Exit.
|
|
50
62
|
</step>
|
|
51
63
|
|
|
52
64
|
<step name="compare_versions">
|
|
@@ -62,7 +74,7 @@ Compare installed vs latest:
|
|
|
62
74
|
You're already on the latest version.
|
|
63
75
|
```
|
|
64
76
|
|
|
65
|
-
|
|
77
|
+
Exit.
|
|
66
78
|
|
|
67
79
|
**If installed > latest:**
|
|
68
80
|
```
|
|
@@ -74,13 +86,13 @@ STOP here if already up to date.
|
|
|
74
86
|
You're ahead of the latest release (development version?).
|
|
75
87
|
```
|
|
76
88
|
|
|
77
|
-
|
|
89
|
+
Exit.
|
|
78
90
|
</step>
|
|
79
91
|
|
|
80
92
|
<step name="show_changes_and_confirm">
|
|
81
93
|
**If update available**, fetch and show what's new BEFORE updating:
|
|
82
94
|
|
|
83
|
-
1. Fetch changelog
|
|
95
|
+
1. Fetch changelog from GitHub raw URL
|
|
84
96
|
2. Extract entries between installed and latest versions
|
|
85
97
|
3. Display preview and ask for confirmation:
|
|
86
98
|
|
|
@@ -106,42 +118,57 @@ STOP here if ahead.
|
|
|
106
118
|
────────────────────────────────────────────────────────────
|
|
107
119
|
|
|
108
120
|
⚠️ **Note:** The installer performs a clean install of GSD folders:
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
121
|
+
- `commands/gsd/` will be wiped and replaced
|
|
122
|
+
- `get-shit-done/` will be wiped and replaced
|
|
123
|
+
- `agents/gsd-*` files will be replaced
|
|
124
|
+
|
|
125
|
+
(Paths are relative to your install location: `~/.config/opencode/` for global, `./.OpenCode/` for local)
|
|
112
126
|
|
|
113
127
|
Your custom files in other locations are preserved:
|
|
114
|
-
- Custom commands in
|
|
128
|
+
- Custom commands not in `commands/gsd/` ✓
|
|
115
129
|
- Custom agents not prefixed with `gsd-` ✓
|
|
116
130
|
- Custom hooks ✓
|
|
117
|
-
- Your
|
|
131
|
+
- Your AGENTS.md files ✓
|
|
118
132
|
|
|
119
|
-
If you've modified any GSD files directly,
|
|
133
|
+
If you've modified any GSD files directly, they'll be automatically backed up to `gsd-local-patches/` and can be reapplied with `/gsd-reapply-patches` after the update.
|
|
120
134
|
```
|
|
121
135
|
|
|
122
136
|
Use question:
|
|
123
|
-
-
|
|
137
|
+
- question: "Proceed with update?"
|
|
124
138
|
- Options:
|
|
125
139
|
- "Yes, update now"
|
|
126
140
|
- "No, cancel"
|
|
127
141
|
|
|
128
|
-
**If user cancels:**
|
|
142
|
+
**If user cancels:** Exit.
|
|
129
143
|
</step>
|
|
130
144
|
|
|
131
145
|
<step name="run_update">
|
|
132
|
-
Run the update:
|
|
146
|
+
Run the update using the install type detected in step 1:
|
|
133
147
|
|
|
148
|
+
**If LOCAL install:**
|
|
134
149
|
```bash
|
|
135
|
-
npx gsd-opencode
|
|
150
|
+
npx gsd-opencode --local
|
|
136
151
|
```
|
|
137
152
|
|
|
138
|
-
|
|
153
|
+
**If GLOBAL install (or unknown):**
|
|
154
|
+
```bash
|
|
155
|
+
npx gsd-opencode --global
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Capture output. If install fails, show error and exit.
|
|
139
159
|
|
|
140
160
|
Clear the update cache so statusline indicator disappears:
|
|
141
161
|
|
|
162
|
+
**If LOCAL install:**
|
|
163
|
+
```bash
|
|
164
|
+
rm -f ./.OpenCode/cache/gsd-update-check.json
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
**If GLOBAL install:**
|
|
142
168
|
```bash
|
|
143
169
|
rm -f ~/.config/opencode/cache/gsd-update-check.json
|
|
144
170
|
```
|
|
171
|
+
(Paths are templated at install time for runtime compatibility)
|
|
145
172
|
</step>
|
|
146
173
|
|
|
147
174
|
<step name="display_result">
|
|
@@ -158,6 +185,21 @@ Format completion message (changelog was already shown in confirmation step):
|
|
|
158
185
|
```
|
|
159
186
|
</step>
|
|
160
187
|
|
|
188
|
+
|
|
189
|
+
<step name="check_local_patches">
|
|
190
|
+
After update completes, check if the installer detected and backed up any locally modified files:
|
|
191
|
+
|
|
192
|
+
Check for gsd-local-patches/backup-meta.json in the config directory.
|
|
193
|
+
|
|
194
|
+
**If patches found:**
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
Local patches were backed up before the update.
|
|
198
|
+
Run /gsd-reapply-patches to merge your modifications into the new version.
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
**If no patches:** Continue normally.
|
|
202
|
+
</step>
|
|
161
203
|
</process>
|
|
162
204
|
|
|
163
205
|
<success_criteria>
|