pgserve 2.1.3 → 2.2.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 (235) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/README.md +105 -1
  3. package/bin/autopg-wrapper.cjs +16 -0
  4. package/bin/pgserve-wrapper.cjs +32 -6
  5. package/bin/postgres-server.js +56 -0
  6. package/console/README.md +131 -0
  7. package/console/api.js +173 -0
  8. package/console/app.jsx +483 -0
  9. package/console/colors_and_type.css +227 -0
  10. package/console/components.jsx +167 -0
  11. package/console/console.css +1666 -0
  12. package/console/data.jsx +350 -0
  13. package/console/index.html +31 -0
  14. package/console/screens/databases.jsx +5 -0
  15. package/console/screens/health.jsx +5 -0
  16. package/console/screens/ingress.jsx +5 -0
  17. package/console/screens/optimizer.jsx +5 -0
  18. package/console/screens/rlm-sim.jsx +5 -0
  19. package/console/screens/rlm-trace.jsx +5 -0
  20. package/console/screens/security.jsx +5 -0
  21. package/console/screens/settings.jsx +611 -0
  22. package/console/screens/sql.jsx +5 -0
  23. package/console/screens/sync.jsx +5 -0
  24. package/console/screens/tables.jsx +5 -0
  25. package/console/tweaks-panel.jsx +425 -0
  26. package/package.json +14 -2
  27. package/scripts/postinstall.cjs +60 -0
  28. package/src/cli-config.cjs +310 -0
  29. package/src/cli-install.cjs +112 -11
  30. package/src/cli-restart.cjs +228 -0
  31. package/src/cli-ui.cjs +580 -0
  32. package/src/cluster.js +43 -38
  33. package/src/postgres.js +141 -19
  34. package/src/settings-loader.cjs +235 -0
  35. package/src/settings-migrate.cjs +212 -0
  36. package/src/settings-pg-args.cjs +146 -0
  37. package/src/settings-schema.cjs +422 -0
  38. package/src/settings-validator.cjs +416 -0
  39. package/src/settings-writer.cjs +288 -0
  40. package/src/upgrade/index.js +65 -0
  41. package/src/upgrade/runner.js +23 -0
  42. package/src/upgrade/steps/binary-cache-flush.js +67 -0
  43. package/src/upgrade/steps/consumer-signal.js +40 -0
  44. package/src/upgrade/steps/env-refresh.js +89 -0
  45. package/src/upgrade/steps/health-validate.js +53 -0
  46. package/src/upgrade/steps/plpgsql-resolve.js +66 -0
  47. package/src/upgrade/steps/port-reconcile.js +52 -0
  48. package/.claude/context/windows-debug.md +0 -119
  49. package/.genie/AGENTS.md +0 -15
  50. package/.genie/agents/README.md +0 -110
  51. package/.genie/agents/analyze.md +0 -176
  52. package/.genie/agents/forge.md +0 -290
  53. package/.genie/agents/garbage-cleaner.md +0 -324
  54. package/.genie/agents/garbage-collector.md +0 -596
  55. package/.genie/agents/github-issue-gc.md +0 -618
  56. package/.genie/agents/review.md +0 -380
  57. package/.genie/agents/semantic-analyzer/find-duplicates.md +0 -90
  58. package/.genie/agents/semantic-analyzer/find-orphans.md +0 -99
  59. package/.genie/agents/semantic-analyzer.md +0 -101
  60. package/.genie/agents/update.md +0 -182
  61. package/.genie/agents/wish.md +0 -357
  62. package/.genie/brainstorms/pgserve-v2/DESIGN.md +0 -174
  63. package/.genie/code/AGENTS.md +0 -694
  64. package/.genie/code/agents/audit/risk.md +0 -173
  65. package/.genie/code/agents/audit/security.md +0 -189
  66. package/.genie/code/agents/audit.md +0 -145
  67. package/.genie/code/agents/challenge.md +0 -230
  68. package/.genie/code/agents/change-reviewer.md +0 -295
  69. package/.genie/code/agents/code-garbage-collector.md +0 -425
  70. package/.genie/code/agents/code-quality.md +0 -410
  71. package/.genie/code/agents/commit-suggester.md +0 -255
  72. package/.genie/code/agents/commit.md +0 -124
  73. package/.genie/code/agents/consensus.md +0 -204
  74. package/.genie/code/agents/daily-standup.md +0 -722
  75. package/.genie/code/agents/docgen.md +0 -48
  76. package/.genie/code/agents/explore.md +0 -79
  77. package/.genie/code/agents/fix.md +0 -100
  78. package/.genie/code/agents/git/commit-advisory.md +0 -219
  79. package/.genie/code/agents/git/workflows/issue.md +0 -244
  80. package/.genie/code/agents/git/workflows/pr.md +0 -179
  81. package/.genie/code/agents/git/workflows/release.md +0 -460
  82. package/.genie/code/agents/git/workflows/report.md +0 -342
  83. package/.genie/code/agents/git.md +0 -432
  84. package/.genie/code/agents/implementor.md +0 -161
  85. package/.genie/code/agents/install.md +0 -515
  86. package/.genie/code/agents/issue-creator.md +0 -344
  87. package/.genie/code/agents/polish.md +0 -116
  88. package/.genie/code/agents/qa.md +0 -653
  89. package/.genie/code/agents/refactor.md +0 -294
  90. package/.genie/code/agents/release.md +0 -1129
  91. package/.genie/code/agents/roadmap.md +0 -885
  92. package/.genie/code/agents/tests.md +0 -557
  93. package/.genie/code/agents/tracer.md +0 -50
  94. package/.genie/code/agents/update/upstream-update.md +0 -85
  95. package/.genie/code/agents/update/versions/generic-update.md +0 -305
  96. package/.genie/code/agents/vibe.md +0 -1317
  97. package/.genie/code/spells/agent-configuration.md +0 -58
  98. package/.genie/code/spells/automated-rc-publishing.md +0 -106
  99. package/.genie/code/spells/branch-tracker-guidance.md +0 -28
  100. package/.genie/code/spells/debug.md +0 -320
  101. package/.genie/code/spells/emoji-naming-convention.md +0 -303
  102. package/.genie/code/spells/evidence-storage.md +0 -26
  103. package/.genie/code/spells/file-naming-rules.md +0 -35
  104. package/.genie/code/spells/forge-code-blueprints.md +0 -195
  105. package/.genie/code/spells/genie-integration.md +0 -153
  106. package/.genie/code/spells/publishing-protocol.md +0 -61
  107. package/.genie/code/spells/team-consultation-protocol.md +0 -284
  108. package/.genie/code/spells/tool-requirements.md +0 -20
  109. package/.genie/code/spells/triad-maintenance-protocol.md +0 -154
  110. package/.genie/code/teams/tech-council/council.md +0 -328
  111. package/.genie/code/teams/tech-council/jt.md +0 -352
  112. package/.genie/code/teams/tech-council/nayr.md +0 -305
  113. package/.genie/code/teams/tech-council/oettam.md +0 -375
  114. package/.genie/neurons/README.md +0 -193
  115. package/.genie/neurons/forge.md +0 -106
  116. package/.genie/neurons/genie.md +0 -63
  117. package/.genie/neurons/review.md +0 -106
  118. package/.genie/neurons/wish.md +0 -104
  119. package/.genie/product/README.md +0 -20
  120. package/.genie/product/cli-automation.md +0 -359
  121. package/.genie/product/environment.md +0 -60
  122. package/.genie/product/mission.md +0 -60
  123. package/.genie/product/roadmap.md +0 -44
  124. package/.genie/product/tech-stack.md +0 -34
  125. package/.genie/product/templates/context-template.md +0 -218
  126. package/.genie/product/templates/qa-done-report-template.md +0 -68
  127. package/.genie/product/templates/review-report-template.md +0 -89
  128. package/.genie/product/templates/wish-template.md +0 -120
  129. package/.genie/scripts/helpers/analyze-commit.js +0 -195
  130. package/.genie/scripts/helpers/bullet-counter.js +0 -194
  131. package/.genie/scripts/helpers/bullet-find.js +0 -289
  132. package/.genie/scripts/helpers/bullet-id.js +0 -244
  133. package/.genie/scripts/helpers/check-secrets.js +0 -237
  134. package/.genie/scripts/helpers/count-tokens.js +0 -200
  135. package/.genie/scripts/helpers/create-frontmatter.js +0 -456
  136. package/.genie/scripts/helpers/detect-markers.js +0 -293
  137. package/.genie/scripts/helpers/detect-todos.js +0 -267
  138. package/.genie/scripts/helpers/detect-unlabeled-blocks.js +0 -135
  139. package/.genie/scripts/helpers/embeddings.js +0 -344
  140. package/.genie/scripts/helpers/find-empty-sections.js +0 -158
  141. package/.genie/scripts/helpers/index.js +0 -319
  142. package/.genie/scripts/helpers/validate-frontmatter.js +0 -578
  143. package/.genie/scripts/helpers/validate-links.js +0 -207
  144. package/.genie/scripts/helpers/validate-paths.js +0 -373
  145. package/.genie/spells/README.md +0 -9
  146. package/.genie/spells/ace-protocol.md +0 -118
  147. package/.genie/spells/ask-one-at-a-time.md +0 -175
  148. package/.genie/spells/backup-analyzer.md +0 -542
  149. package/.genie/spells/blocker.md +0 -12
  150. package/.genie/spells/break-things-move-fast.md +0 -56
  151. package/.genie/spells/context-candidates.md +0 -72
  152. package/.genie/spells/context-critic.md +0 -51
  153. package/.genie/spells/defer-to-expertise.md +0 -278
  154. package/.genie/spells/delegate-dont-do.md +0 -292
  155. package/.genie/spells/error-investigation-protocol.md +0 -328
  156. package/.genie/spells/evidence-based-completion.md +0 -273
  157. package/.genie/spells/experiment.md +0 -65
  158. package/.genie/spells/file-creation-protocol.md +0 -229
  159. package/.genie/spells/forge-integration.md +0 -281
  160. package/.genie/spells/forge-orchestration.md +0 -514
  161. package/.genie/spells/gather-context.md +0 -18
  162. package/.genie/spells/global-health-check.md +0 -34
  163. package/.genie/spells/global-noop-roundtrip.md +0 -25
  164. package/.genie/spells/install-genie.md +0 -1232
  165. package/.genie/spells/install.md +0 -82
  166. package/.genie/spells/investigate-before-commit.md +0 -112
  167. package/.genie/spells/know-yourself.md +0 -288
  168. package/.genie/spells/learn.md +0 -828
  169. package/.genie/spells/mcp-diagnostic-protocol.md +0 -246
  170. package/.genie/spells/mcp-first.md +0 -124
  171. package/.genie/spells/multi-step-execution.md +0 -67
  172. package/.genie/spells/orchestration-boundary-protocol.md +0 -256
  173. package/.genie/spells/orchestrator-not-implementor.md +0 -189
  174. package/.genie/spells/prompt.md +0 -746
  175. package/.genie/spells/reflect.md +0 -404
  176. package/.genie/spells/routing-decision-matrix.md +0 -368
  177. package/.genie/spells/run-in-parallel.md +0 -12
  178. package/.genie/spells/session-state-updater-example.md +0 -196
  179. package/.genie/spells/session-state-updater.md +0 -220
  180. package/.genie/spells/track-long-running-tasks.md +0 -133
  181. package/.genie/spells/troubleshoot-infrastructure.md +0 -176
  182. package/.genie/spells/upgrade-genie.md +0 -415
  183. package/.genie/spells/url-presentation-protocol.md +0 -301
  184. package/.genie/spells/wish-initiation.md +0 -158
  185. package/.genie/spells/wish-issue-linkage.md +0 -410
  186. package/.genie/spells/wish-lifecycle.md +0 -100
  187. package/.genie/state/provider-status.json +0 -3
  188. package/.genie/state/version.json +0 -16
  189. package/.genie/wishes/canonical-pgserve-pm2-supervision/WISH.md +0 -290
  190. package/.genie/wishes/pgserve-v2/BRIEF-from-genie-pgserve.md +0 -99
  191. package/.genie/wishes/pgserve-v2/WISH.md +0 -442
  192. package/.genie/wishes/release-system-genie-pattern/WISH.md +0 -268
  193. package/.genie/wishes/release-system-genie-pattern/validation.md +0 -205
  194. package/.gitguardian.yaml +0 -29
  195. package/.gitguardianignore +0 -16
  196. package/.github/workflows/ci.yml +0 -122
  197. package/.github/workflows/release.yml +0 -289
  198. package/.github/workflows/version.yml +0 -228
  199. package/.husky/pre-commit +0 -2
  200. package/AGENTS.md +0 -433
  201. package/CLAUDE.md +0 -1
  202. package/Makefile +0 -285
  203. package/assets/icon.ico +0 -0
  204. package/bun.lock +0 -435
  205. package/bunfig.toml +0 -28
  206. package/ecosystem.config.cjs +0 -23
  207. package/eslint.config.js +0 -63
  208. package/examples/multi-tenant-demo.js +0 -104
  209. package/install.sh +0 -123
  210. package/knip.json +0 -9
  211. package/tests/audit.test.js +0 -189
  212. package/tests/backpressure.test.js +0 -167
  213. package/tests/benchmarks/runner.js +0 -1197
  214. package/tests/benchmarks/vector-generator.js +0 -368
  215. package/tests/cli-install.test.js +0 -322
  216. package/tests/control-db.test.js +0 -285
  217. package/tests/daemon-args.test.js +0 -86
  218. package/tests/daemon-control.test.js +0 -171
  219. package/tests/daemon-fingerprint-integration.test.js +0 -111
  220. package/tests/daemon-pr24-regression.test.js +0 -198
  221. package/tests/fingerprint.test.js +0 -263
  222. package/tests/fixtures/240-orphan-seed.sql +0 -30
  223. package/tests/multi-tenant.test.js +0 -374
  224. package/tests/orphan-cleanup.test.js +0 -390
  225. package/tests/pg-version-regex.test.js +0 -129
  226. package/tests/quick-bench.js +0 -135
  227. package/tests/router-handshake-retry.test.js +0 -119
  228. package/tests/router-handshake-watchdog.test.js +0 -110
  229. package/tests/sdk.test.js +0 -71
  230. package/tests/stale-postmaster-pid.test.js +0 -85
  231. package/tests/stress-test.js +0 -439
  232. package/tests/sync-perf-test.js +0 -150
  233. package/tests/tcp-listen.test.js +0 -368
  234. package/tests/tenancy.test.js +0 -403
  235. package/tests/wrapper-supervision.test.js +0 -107
@@ -1,305 +0,0 @@
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! 🎉**