pgserve 0.1.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.
Files changed (158) hide show
  1. package/.genie/AGENTS.md +13 -0
  2. package/.genie/agents/README.md +110 -0
  3. package/.genie/agents/analyze.md +176 -0
  4. package/.genie/agents/forge.md +290 -0
  5. package/.genie/agents/garbage-cleaner.md +324 -0
  6. package/.genie/agents/garbage-collector.md +596 -0
  7. package/.genie/agents/github-issue-gc.md +618 -0
  8. package/.genie/agents/review.md +380 -0
  9. package/.genie/agents/semantic-analyzer/find-duplicates.md +90 -0
  10. package/.genie/agents/semantic-analyzer/find-orphans.md +99 -0
  11. package/.genie/agents/semantic-analyzer.md +101 -0
  12. package/.genie/agents/update.md +182 -0
  13. package/.genie/agents/wish.md +357 -0
  14. package/.genie/code/AGENTS.md +692 -0
  15. package/.genie/code/agents/audit/risk.md +173 -0
  16. package/.genie/code/agents/audit/security.md +189 -0
  17. package/.genie/code/agents/audit.md +145 -0
  18. package/.genie/code/agents/challenge.md +230 -0
  19. package/.genie/code/agents/change-reviewer.md +295 -0
  20. package/.genie/code/agents/code-garbage-collector.md +425 -0
  21. package/.genie/code/agents/code-quality.md +410 -0
  22. package/.genie/code/agents/commit-suggester.md +255 -0
  23. package/.genie/code/agents/commit.md +124 -0
  24. package/.genie/code/agents/consensus.md +204 -0
  25. package/.genie/code/agents/daily-standup.md +722 -0
  26. package/.genie/code/agents/docgen.md +48 -0
  27. package/.genie/code/agents/explore.md +79 -0
  28. package/.genie/code/agents/fix.md +100 -0
  29. package/.genie/code/agents/git/commit-advisory.md +219 -0
  30. package/.genie/code/agents/git/workflows/issue.md +244 -0
  31. package/.genie/code/agents/git/workflows/pr.md +179 -0
  32. package/.genie/code/agents/git/workflows/release.md +460 -0
  33. package/.genie/code/agents/git/workflows/report.md +342 -0
  34. package/.genie/code/agents/git.md +432 -0
  35. package/.genie/code/agents/implementor.md +161 -0
  36. package/.genie/code/agents/install.md +515 -0
  37. package/.genie/code/agents/issue-creator.md +344 -0
  38. package/.genie/code/agents/polish.md +116 -0
  39. package/.genie/code/agents/qa.md +653 -0
  40. package/.genie/code/agents/refactor.md +294 -0
  41. package/.genie/code/agents/release.md +1129 -0
  42. package/.genie/code/agents/roadmap.md +885 -0
  43. package/.genie/code/agents/tests.md +557 -0
  44. package/.genie/code/agents/tracer.md +50 -0
  45. package/.genie/code/agents/update/upstream-update.md +85 -0
  46. package/.genie/code/agents/update/versions/generic-update.md +305 -0
  47. package/.genie/code/agents/vibe.md +1317 -0
  48. package/.genie/code/spells/agent-configuration.md +58 -0
  49. package/.genie/code/spells/automated-rc-publishing.md +106 -0
  50. package/.genie/code/spells/branch-tracker-guidance.md +28 -0
  51. package/.genie/code/spells/debug.md +320 -0
  52. package/.genie/code/spells/emoji-naming-convention.md +303 -0
  53. package/.genie/code/spells/evidence-storage.md +26 -0
  54. package/.genie/code/spells/file-naming-rules.md +35 -0
  55. package/.genie/code/spells/forge-code-blueprints.md +195 -0
  56. package/.genie/code/spells/genie-integration.md +153 -0
  57. package/.genie/code/spells/publishing-protocol.md +61 -0
  58. package/.genie/code/spells/team-consultation-protocol.md +284 -0
  59. package/.genie/code/spells/tool-requirements.md +20 -0
  60. package/.genie/code/spells/triad-maintenance-protocol.md +154 -0
  61. package/.genie/code/teams/tech-council/council.md +328 -0
  62. package/.genie/code/teams/tech-council/jt.md +352 -0
  63. package/.genie/code/teams/tech-council/nayr.md +305 -0
  64. package/.genie/code/teams/tech-council/oettam.md +375 -0
  65. package/.genie/neurons/README.md +193 -0
  66. package/.genie/neurons/forge.md +106 -0
  67. package/.genie/neurons/genie.md +63 -0
  68. package/.genie/neurons/review.md +106 -0
  69. package/.genie/neurons/wish.md +104 -0
  70. package/.genie/product/README.md +20 -0
  71. package/.genie/product/cli-automation.md +359 -0
  72. package/.genie/product/environment.md +60 -0
  73. package/.genie/product/mission.md +60 -0
  74. package/.genie/product/roadmap.md +44 -0
  75. package/.genie/product/tech-stack.md +34 -0
  76. package/.genie/product/templates/context-template.md +218 -0
  77. package/.genie/product/templates/qa-done-report-template.md +68 -0
  78. package/.genie/product/templates/review-report-template.md +89 -0
  79. package/.genie/product/templates/wish-template.md +120 -0
  80. package/.genie/scripts/helpers/analyze-commit.js +195 -0
  81. package/.genie/scripts/helpers/bullet-counter.js +194 -0
  82. package/.genie/scripts/helpers/bullet-find.js +289 -0
  83. package/.genie/scripts/helpers/bullet-id.js +244 -0
  84. package/.genie/scripts/helpers/check-secrets.js +237 -0
  85. package/.genie/scripts/helpers/count-tokens.js +200 -0
  86. package/.genie/scripts/helpers/create-frontmatter.js +456 -0
  87. package/.genie/scripts/helpers/detect-markers.js +293 -0
  88. package/.genie/scripts/helpers/detect-todos.js +267 -0
  89. package/.genie/scripts/helpers/detect-unlabeled-blocks.js +135 -0
  90. package/.genie/scripts/helpers/embeddings.js +344 -0
  91. package/.genie/scripts/helpers/find-empty-sections.js +158 -0
  92. package/.genie/scripts/helpers/index.js +319 -0
  93. package/.genie/scripts/helpers/validate-frontmatter.js +578 -0
  94. package/.genie/scripts/helpers/validate-links.js +207 -0
  95. package/.genie/scripts/helpers/validate-paths.js +373 -0
  96. package/.genie/spells/README.md +9 -0
  97. package/.genie/spells/ace-protocol.md +118 -0
  98. package/.genie/spells/ask-one-at-a-time.md +175 -0
  99. package/.genie/spells/backup-analyzer.md +542 -0
  100. package/.genie/spells/blocker.md +12 -0
  101. package/.genie/spells/break-things-move-fast.md +56 -0
  102. package/.genie/spells/context-candidates.md +72 -0
  103. package/.genie/spells/context-critic.md +51 -0
  104. package/.genie/spells/defer-to-expertise.md +278 -0
  105. package/.genie/spells/delegate-dont-do.md +292 -0
  106. package/.genie/spells/error-investigation-protocol.md +328 -0
  107. package/.genie/spells/evidence-based-completion.md +273 -0
  108. package/.genie/spells/experiment.md +65 -0
  109. package/.genie/spells/file-creation-protocol.md +229 -0
  110. package/.genie/spells/forge-integration.md +281 -0
  111. package/.genie/spells/forge-orchestration.md +514 -0
  112. package/.genie/spells/gather-context.md +18 -0
  113. package/.genie/spells/global-health-check.md +34 -0
  114. package/.genie/spells/global-noop-roundtrip.md +25 -0
  115. package/.genie/spells/install-genie.md +1232 -0
  116. package/.genie/spells/install.md +82 -0
  117. package/.genie/spells/investigate-before-commit.md +112 -0
  118. package/.genie/spells/know-yourself.md +288 -0
  119. package/.genie/spells/learn.md +828 -0
  120. package/.genie/spells/mcp-diagnostic-protocol.md +246 -0
  121. package/.genie/spells/mcp-first.md +124 -0
  122. package/.genie/spells/multi-step-execution.md +67 -0
  123. package/.genie/spells/orchestration-boundary-protocol.md +256 -0
  124. package/.genie/spells/orchestrator-not-implementor.md +189 -0
  125. package/.genie/spells/prompt.md +746 -0
  126. package/.genie/spells/reflect.md +404 -0
  127. package/.genie/spells/routing-decision-matrix.md +368 -0
  128. package/.genie/spells/run-in-parallel.md +12 -0
  129. package/.genie/spells/session-state-updater-example.md +196 -0
  130. package/.genie/spells/session-state-updater.md +220 -0
  131. package/.genie/spells/track-long-running-tasks.md +133 -0
  132. package/.genie/spells/troubleshoot-infrastructure.md +176 -0
  133. package/.genie/spells/upgrade-genie.md +415 -0
  134. package/.genie/spells/url-presentation-protocol.md +301 -0
  135. package/.genie/spells/wish-initiation.md +158 -0
  136. package/.genie/spells/wish-issue-linkage.md +410 -0
  137. package/.genie/spells/wish-lifecycle.md +100 -0
  138. package/.genie/state/provider-status.json +3 -0
  139. package/.genie/state/version.json +16 -0
  140. package/AGENTS.md +422 -0
  141. package/CLAUDE.md +1 -0
  142. package/LICENSE +21 -0
  143. package/Makefile +235 -0
  144. package/README.md +323 -0
  145. package/bin/pglite-server.js +457 -0
  146. package/ecosystem.config.cjs +23 -0
  147. package/examples/multi-tenant-demo.js +104 -0
  148. package/package.json +47 -0
  149. package/src/detector.js +105 -0
  150. package/src/index.js +177 -0
  151. package/src/pool.js +320 -0
  152. package/src/ports.js +114 -0
  153. package/src/protocol.js +216 -0
  154. package/src/registry.js +134 -0
  155. package/src/router.js +289 -0
  156. package/src/server.js +265 -0
  157. package/tests/benchmarks/runner.js +489 -0
  158. package/tests/multi-tenant.test.js +201 -0
@@ -0,0 +1,305 @@
1
+ ---
2
+ name: generic-update
3
+ description: Generic upgrade guidance for version transitions without specific guides
4
+ genie:
5
+ executor:
6
+ - CLAUDE_CODE
7
+ - CODEX
8
+ - OPENCODE
9
+ background: false
10
+ forge:
11
+ CLAUDE_CODE:
12
+ model: sonnet
13
+ dangerously_skip_permissions: true
14
+ CODEX:
15
+ model: gpt-5-codex
16
+ sandbox: danger-full-access
17
+ OPENCODE:
18
+ model: opencode/glm-4.6
19
+ ---
20
+
21
+ # Generic Update Guide
22
+ **Purpose:** Guidance for users upgrading from older versions without specific transition guides
23
+ **Applies to:** Any version transition not covered by specific guides
24
+
25
+ ---
26
+
27
+ ## 📊 General Update Process
28
+
29
+ You've successfully updated to a newer version of Genie! Since your previous version is significantly older, a specific transition guide isn't available. This generic guide will help you through the update.
30
+
31
+ ---
32
+
33
+ ## 💾 Your Backup
34
+
35
+ Your previous configuration has been safely backed up at:
36
+ ```
37
+ .genie/backups/{BACKUP_ID}/
38
+ ├── genie/ # Entire .genie directory
39
+ └── docs/ # Root documentation files
40
+ ├── AGENTS.md (if existed)
41
+ └── CLAUDE.md (if existed)
42
+ ```
43
+
44
+ **All your previous work is safe.** You can reference these files at any time.
45
+
46
+ ---
47
+
48
+ ## 🎯 What Happened During Update
49
+
50
+ 1. **Backup Created** - Your old configuration was saved
51
+ 2. **Fresh Install** - New framework templates were installed
52
+ 3. **Version Updated** - `.genie/state/version.json` now reflects new version
53
+
54
+ **Important:** The update installed clean templates. If you had customizations in:
55
+ - `AGENTS.md` - Framework behavioral patterns
56
+ - `CLAUDE.md` - Project-specific patterns
57
+ - `.genie/agents/` - Custom agent files
58
+
59
+ These are now in your backup, NOT in the current installation.
60
+
61
+ ---
62
+
63
+ ## ✅ Post-Update Checklist
64
+
65
+ ### 1. Verify Installation
66
+ ```bash
67
+ # Check new version
68
+ cat .genie/state/version.json
69
+
70
+ # List available agents
71
+ genie list
72
+
73
+ # Test basic agent
74
+ genie run plan "test prompt"
75
+ ```
76
+
77
+ **Expected:** All commands work without errors
78
+
79
+ ### 2. Review Your Backup
80
+
81
+ If you had customizations, review what you had:
82
+
83
+ **Check AGENTS.md customizations:**
84
+ ```bash
85
+ # View your old AGENTS.md
86
+ cat .genie/backups/{BACKUP_ID}/docs/AGENTS.md
87
+ ```
88
+
89
+ **Check CLAUDE.md customizations:**
90
+ ```bash
91
+ # View your old CLAUDE.md
92
+ cat .genie/backups/{BACKUP_ID}/docs/CLAUDE.md
93
+ ```
94
+
95
+ **Check custom agents:**
96
+ ```bash
97
+ # List your old agents
98
+ ls -la .genie/backups/{BACKUP_ID}/genie/agents/
99
+ ```
100
+
101
+ ### 3. Decide What to Preserve
102
+
103
+ **For each customization you want to keep:**
104
+ 1. Open the current (new) file
105
+ 2. Open the backup file side-by-side
106
+ 3. Manually copy over your important customizations
107
+ 4. Save and test
108
+
109
+ **Tips:**
110
+ - Don't copy entire files (framework has evolved)
111
+ - Copy specific sections or entries that are YOUR work
112
+ - Test after each change
113
+
114
+ ### 4. Test Your Workflow
115
+
116
+ After merging customizations:
117
+ ```bash
118
+ # Test agents
119
+ genie run plan "create feature X"
120
+ genie run wish "implement feature Y"
121
+ genie run forge "execute task Z"
122
+
123
+ # Test background execution
124
+ genie run genie "analyze project" --background
125
+
126
+ # Check MCP integration
127
+ genie status
128
+ ```
129
+
130
+ ---
131
+
132
+ ## 🚨 Common Issues
133
+
134
+ ### Issue: Agent doesn't work as expected
135
+ **Possible causes:**
136
+ - Framework changed agent structure
137
+ - Customization conflicts with new version
138
+ - Missing dependencies
139
+
140
+ **Solutions:**
141
+ 1. Check CHANGELOG.md for breaking changes
142
+ 2. Review new agent templates in `.genie/agents/`
143
+ 3. Test without customizations first
144
+ 4. Incrementally add back customizations
145
+
146
+ ### Issue: MCP connection errors
147
+ **Possible causes:**
148
+ - Configuration changed between versions
149
+ - MCP server needs restart
150
+
151
+ **Solutions:**
152
+ ```bash
153
+ # Reconfigure MCP
154
+ genie init --provider [codex|claude-code]
155
+
156
+ # Restart your code editor
157
+ # (to pick up new MCP configuration)
158
+ ```
159
+
160
+ ### Issue: Custom agents not found
161
+ **Possible causes:**
162
+ - Agent directory structure changed
163
+ - Custom agents not migrated
164
+
165
+ **Solutions:**
166
+ 1. Check backup: `.genie/backups/{BACKUP_ID}/genie/agents/`
167
+ 2. Review new agent structure in `.genie/agents/`
168
+ 3. Re-create custom agents following new structure
169
+ 4. Test: `genie run {custom-agent} "test"`
170
+
171
+ ---
172
+
173
+ ## 📚 Where to Find Help
174
+
175
+ ### 1. Check the Changelog
176
+ ```bash
177
+ cat CHANGELOG.md
178
+ ```
179
+ Look for breaking changes and new features between your old version and current version.
180
+
181
+ ### 2. Review Documentation
182
+ ```bash
183
+ cat README.md
184
+ ```
185
+ Updated documentation reflects current version capabilities.
186
+
187
+ ### 3. Compare Agent Templates
188
+ ```bash
189
+ # Current agents
190
+ ls -la .genie/agents/
191
+
192
+ # Your old agents (backup)
193
+ ls -la .genie/backups/{BACKUP_ID}/genie/agents/
194
+
195
+ # Compare structure
196
+ diff -r .genie/agents/ .genie/backups/{BACKUP_ID}/genie/agents/
197
+ ```
198
+
199
+ ### 4. GitHub Issues
200
+ If you encounter problems:
201
+ - Check: https://github.com/namastexlabs/automagik-genie/issues
202
+ - Report: Create new issue with version details
203
+
204
+ ---
205
+
206
+ ## 🔄 Rollback Instructions
207
+
208
+ If the new version isn't working and you need to revert:
209
+
210
+ ```bash
211
+ # List available backups
212
+ ls -la .genie/backups/
213
+
214
+ # Rollback to your previous version
215
+ genie rollback --id {BACKUP_ID}
216
+
217
+ # Or rollback to latest backup
218
+ genie rollback --latest
219
+ ```
220
+
221
+ **Note:** Rollback restores:
222
+ - Entire `.genie/` directory
223
+ - Root `AGENTS.md` file (if existed)
224
+ - Root `CLAUDE.md` file (if existed)
225
+
226
+ After rollback, you'll be back to your previous working state.
227
+
228
+ ---
229
+
230
+ ## 🎯 General Migration Strategy
231
+
232
+ For major version jumps:
233
+
234
+ 1. **Backup verified** ✅
235
+ 2. **New version tested** (basic workflows)
236
+ 3. **Review customizations** (from backup)
237
+ 4. **Selective migration** (important parts only)
238
+ 5. **Incremental testing** (after each change)
239
+ 6. **Document what you preserved** (for future updates)
240
+
241
+ ---
242
+
243
+ ## 📖 Understanding Update Philosophy
244
+
245
+ **Genie's update approach:**
246
+ - ✅ **Clean install** - Fresh framework templates
247
+ - ✅ **Safe backup** - Your work is preserved
248
+ - ✅ **Manual merge** - You control what to keep
249
+ - ❌ **No auto-merge** - No automated file merging
250
+
251
+ **Why this approach?**
252
+ - Prevents merge conflicts
253
+ - Ensures framework integrity
254
+ - Gives you full control
255
+ - Safer than automated merging
256
+
257
+ **Your responsibility:**
258
+ - Review backup if you had customizations
259
+ - Manually re-apply important changes
260
+ - Test after migration
261
+
262
+ ---
263
+
264
+ ## 🎓 Best Practices
265
+
266
+ ### For Future Updates
267
+
268
+ 1. **Document your customizations** - Keep notes on what you changed
269
+ 2. **Minimize customizations** - Only customize what's necessary
270
+ 3. **Regular updates** - Don't skip too many versions
271
+ 4. **Test updates** - Try in test project first if possible
272
+
273
+ ### Customization Strategy
274
+
275
+ - **AGENTS.md**: Add learning entries, don't modify core structure
276
+ - **CLAUDE.md**: Add project-specific patterns, don't remove framework refs
277
+ - **Custom agents**: Store in clearly marked sections/files
278
+ - **Version control**: Track your customizations in git
279
+
280
+ ---
281
+
282
+ ## ✅ Verification Complete
283
+
284
+ When you've completed migration:
285
+
286
+ - [ ] New version tested and working
287
+ - [ ] Backup reviewed for customizations
288
+ - [ ] Important customizations manually merged
289
+ - [ ] All workflows tested (plan, wish, forge, review)
290
+ - [ ] MCP integration verified
291
+ - [ ] Documentation updated (if needed)
292
+
293
+ **You're ready to use the new version! 🧞**
294
+
295
+ ---
296
+
297
+ ## 📞 Need More Help?
298
+
299
+ For version-specific guidance:
300
+ 1. Check `.genie/agents/update/versions/` for your version
301
+ 2. Read CHANGELOG.md for detailed version history
302
+ 3. Visit GitHub Issues for known problems
303
+ 4. Create issue if you found a bug
304
+
305
+ **Update successful! Welcome to the latest Genie! 🎉**