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.
- package/CHANGELOG.md +96 -0
- package/README.md +105 -1
- package/bin/autopg-wrapper.cjs +16 -0
- package/bin/pgserve-wrapper.cjs +32 -6
- package/bin/postgres-server.js +56 -0
- package/console/README.md +131 -0
- package/console/api.js +173 -0
- package/console/app.jsx +483 -0
- package/console/colors_and_type.css +227 -0
- package/console/components.jsx +167 -0
- package/console/console.css +1666 -0
- package/console/data.jsx +350 -0
- package/console/index.html +31 -0
- package/console/screens/databases.jsx +5 -0
- package/console/screens/health.jsx +5 -0
- package/console/screens/ingress.jsx +5 -0
- package/console/screens/optimizer.jsx +5 -0
- package/console/screens/rlm-sim.jsx +5 -0
- package/console/screens/rlm-trace.jsx +5 -0
- package/console/screens/security.jsx +5 -0
- package/console/screens/settings.jsx +611 -0
- package/console/screens/sql.jsx +5 -0
- package/console/screens/sync.jsx +5 -0
- package/console/screens/tables.jsx +5 -0
- package/console/tweaks-panel.jsx +425 -0
- package/package.json +14 -2
- package/scripts/postinstall.cjs +60 -0
- package/src/cli-config.cjs +310 -0
- package/src/cli-install.cjs +112 -11
- package/src/cli-restart.cjs +228 -0
- package/src/cli-ui.cjs +580 -0
- package/src/cluster.js +43 -38
- package/src/postgres.js +141 -19
- package/src/settings-loader.cjs +235 -0
- package/src/settings-migrate.cjs +212 -0
- package/src/settings-pg-args.cjs +146 -0
- package/src/settings-schema.cjs +422 -0
- package/src/settings-validator.cjs +416 -0
- package/src/settings-writer.cjs +288 -0
- package/src/upgrade/index.js +65 -0
- package/src/upgrade/runner.js +23 -0
- package/src/upgrade/steps/binary-cache-flush.js +67 -0
- package/src/upgrade/steps/consumer-signal.js +40 -0
- package/src/upgrade/steps/env-refresh.js +89 -0
- package/src/upgrade/steps/health-validate.js +53 -0
- package/src/upgrade/steps/plpgsql-resolve.js +66 -0
- package/src/upgrade/steps/port-reconcile.js +52 -0
- package/.claude/context/windows-debug.md +0 -119
- package/.genie/AGENTS.md +0 -15
- package/.genie/agents/README.md +0 -110
- package/.genie/agents/analyze.md +0 -176
- package/.genie/agents/forge.md +0 -290
- package/.genie/agents/garbage-cleaner.md +0 -324
- package/.genie/agents/garbage-collector.md +0 -596
- package/.genie/agents/github-issue-gc.md +0 -618
- package/.genie/agents/review.md +0 -380
- package/.genie/agents/semantic-analyzer/find-duplicates.md +0 -90
- package/.genie/agents/semantic-analyzer/find-orphans.md +0 -99
- package/.genie/agents/semantic-analyzer.md +0 -101
- package/.genie/agents/update.md +0 -182
- package/.genie/agents/wish.md +0 -357
- package/.genie/brainstorms/pgserve-v2/DESIGN.md +0 -174
- package/.genie/code/AGENTS.md +0 -694
- package/.genie/code/agents/audit/risk.md +0 -173
- package/.genie/code/agents/audit/security.md +0 -189
- package/.genie/code/agents/audit.md +0 -145
- package/.genie/code/agents/challenge.md +0 -230
- package/.genie/code/agents/change-reviewer.md +0 -295
- package/.genie/code/agents/code-garbage-collector.md +0 -425
- package/.genie/code/agents/code-quality.md +0 -410
- package/.genie/code/agents/commit-suggester.md +0 -255
- package/.genie/code/agents/commit.md +0 -124
- package/.genie/code/agents/consensus.md +0 -204
- package/.genie/code/agents/daily-standup.md +0 -722
- package/.genie/code/agents/docgen.md +0 -48
- package/.genie/code/agents/explore.md +0 -79
- package/.genie/code/agents/fix.md +0 -100
- package/.genie/code/agents/git/commit-advisory.md +0 -219
- package/.genie/code/agents/git/workflows/issue.md +0 -244
- package/.genie/code/agents/git/workflows/pr.md +0 -179
- package/.genie/code/agents/git/workflows/release.md +0 -460
- package/.genie/code/agents/git/workflows/report.md +0 -342
- package/.genie/code/agents/git.md +0 -432
- package/.genie/code/agents/implementor.md +0 -161
- package/.genie/code/agents/install.md +0 -515
- package/.genie/code/agents/issue-creator.md +0 -344
- package/.genie/code/agents/polish.md +0 -116
- package/.genie/code/agents/qa.md +0 -653
- package/.genie/code/agents/refactor.md +0 -294
- package/.genie/code/agents/release.md +0 -1129
- package/.genie/code/agents/roadmap.md +0 -885
- package/.genie/code/agents/tests.md +0 -557
- package/.genie/code/agents/tracer.md +0 -50
- package/.genie/code/agents/update/upstream-update.md +0 -85
- package/.genie/code/agents/update/versions/generic-update.md +0 -305
- package/.genie/code/agents/vibe.md +0 -1317
- package/.genie/code/spells/agent-configuration.md +0 -58
- package/.genie/code/spells/automated-rc-publishing.md +0 -106
- package/.genie/code/spells/branch-tracker-guidance.md +0 -28
- package/.genie/code/spells/debug.md +0 -320
- package/.genie/code/spells/emoji-naming-convention.md +0 -303
- package/.genie/code/spells/evidence-storage.md +0 -26
- package/.genie/code/spells/file-naming-rules.md +0 -35
- package/.genie/code/spells/forge-code-blueprints.md +0 -195
- package/.genie/code/spells/genie-integration.md +0 -153
- package/.genie/code/spells/publishing-protocol.md +0 -61
- package/.genie/code/spells/team-consultation-protocol.md +0 -284
- package/.genie/code/spells/tool-requirements.md +0 -20
- package/.genie/code/spells/triad-maintenance-protocol.md +0 -154
- package/.genie/code/teams/tech-council/council.md +0 -328
- package/.genie/code/teams/tech-council/jt.md +0 -352
- package/.genie/code/teams/tech-council/nayr.md +0 -305
- package/.genie/code/teams/tech-council/oettam.md +0 -375
- package/.genie/neurons/README.md +0 -193
- package/.genie/neurons/forge.md +0 -106
- package/.genie/neurons/genie.md +0 -63
- package/.genie/neurons/review.md +0 -106
- package/.genie/neurons/wish.md +0 -104
- package/.genie/product/README.md +0 -20
- package/.genie/product/cli-automation.md +0 -359
- package/.genie/product/environment.md +0 -60
- package/.genie/product/mission.md +0 -60
- package/.genie/product/roadmap.md +0 -44
- package/.genie/product/tech-stack.md +0 -34
- package/.genie/product/templates/context-template.md +0 -218
- package/.genie/product/templates/qa-done-report-template.md +0 -68
- package/.genie/product/templates/review-report-template.md +0 -89
- package/.genie/product/templates/wish-template.md +0 -120
- package/.genie/scripts/helpers/analyze-commit.js +0 -195
- package/.genie/scripts/helpers/bullet-counter.js +0 -194
- package/.genie/scripts/helpers/bullet-find.js +0 -289
- package/.genie/scripts/helpers/bullet-id.js +0 -244
- package/.genie/scripts/helpers/check-secrets.js +0 -237
- package/.genie/scripts/helpers/count-tokens.js +0 -200
- package/.genie/scripts/helpers/create-frontmatter.js +0 -456
- package/.genie/scripts/helpers/detect-markers.js +0 -293
- package/.genie/scripts/helpers/detect-todos.js +0 -267
- package/.genie/scripts/helpers/detect-unlabeled-blocks.js +0 -135
- package/.genie/scripts/helpers/embeddings.js +0 -344
- package/.genie/scripts/helpers/find-empty-sections.js +0 -158
- package/.genie/scripts/helpers/index.js +0 -319
- package/.genie/scripts/helpers/validate-frontmatter.js +0 -578
- package/.genie/scripts/helpers/validate-links.js +0 -207
- package/.genie/scripts/helpers/validate-paths.js +0 -373
- package/.genie/spells/README.md +0 -9
- package/.genie/spells/ace-protocol.md +0 -118
- package/.genie/spells/ask-one-at-a-time.md +0 -175
- package/.genie/spells/backup-analyzer.md +0 -542
- package/.genie/spells/blocker.md +0 -12
- package/.genie/spells/break-things-move-fast.md +0 -56
- package/.genie/spells/context-candidates.md +0 -72
- package/.genie/spells/context-critic.md +0 -51
- package/.genie/spells/defer-to-expertise.md +0 -278
- package/.genie/spells/delegate-dont-do.md +0 -292
- package/.genie/spells/error-investigation-protocol.md +0 -328
- package/.genie/spells/evidence-based-completion.md +0 -273
- package/.genie/spells/experiment.md +0 -65
- package/.genie/spells/file-creation-protocol.md +0 -229
- package/.genie/spells/forge-integration.md +0 -281
- package/.genie/spells/forge-orchestration.md +0 -514
- package/.genie/spells/gather-context.md +0 -18
- package/.genie/spells/global-health-check.md +0 -34
- package/.genie/spells/global-noop-roundtrip.md +0 -25
- package/.genie/spells/install-genie.md +0 -1232
- package/.genie/spells/install.md +0 -82
- package/.genie/spells/investigate-before-commit.md +0 -112
- package/.genie/spells/know-yourself.md +0 -288
- package/.genie/spells/learn.md +0 -828
- package/.genie/spells/mcp-diagnostic-protocol.md +0 -246
- package/.genie/spells/mcp-first.md +0 -124
- package/.genie/spells/multi-step-execution.md +0 -67
- package/.genie/spells/orchestration-boundary-protocol.md +0 -256
- package/.genie/spells/orchestrator-not-implementor.md +0 -189
- package/.genie/spells/prompt.md +0 -746
- package/.genie/spells/reflect.md +0 -404
- package/.genie/spells/routing-decision-matrix.md +0 -368
- package/.genie/spells/run-in-parallel.md +0 -12
- package/.genie/spells/session-state-updater-example.md +0 -196
- package/.genie/spells/session-state-updater.md +0 -220
- package/.genie/spells/track-long-running-tasks.md +0 -133
- package/.genie/spells/troubleshoot-infrastructure.md +0 -176
- package/.genie/spells/upgrade-genie.md +0 -415
- package/.genie/spells/url-presentation-protocol.md +0 -301
- package/.genie/spells/wish-initiation.md +0 -158
- package/.genie/spells/wish-issue-linkage.md +0 -410
- package/.genie/spells/wish-lifecycle.md +0 -100
- package/.genie/state/provider-status.json +0 -3
- package/.genie/state/version.json +0 -16
- package/.genie/wishes/canonical-pgserve-pm2-supervision/WISH.md +0 -290
- package/.genie/wishes/pgserve-v2/BRIEF-from-genie-pgserve.md +0 -99
- package/.genie/wishes/pgserve-v2/WISH.md +0 -442
- package/.genie/wishes/release-system-genie-pattern/WISH.md +0 -268
- package/.genie/wishes/release-system-genie-pattern/validation.md +0 -205
- package/.gitguardian.yaml +0 -29
- package/.gitguardianignore +0 -16
- package/.github/workflows/ci.yml +0 -122
- package/.github/workflows/release.yml +0 -289
- package/.github/workflows/version.yml +0 -228
- package/.husky/pre-commit +0 -2
- package/AGENTS.md +0 -433
- package/CLAUDE.md +0 -1
- package/Makefile +0 -285
- package/assets/icon.ico +0 -0
- package/bun.lock +0 -435
- package/bunfig.toml +0 -28
- package/ecosystem.config.cjs +0 -23
- package/eslint.config.js +0 -63
- package/examples/multi-tenant-demo.js +0 -104
- package/install.sh +0 -123
- package/knip.json +0 -9
- package/tests/audit.test.js +0 -189
- package/tests/backpressure.test.js +0 -167
- package/tests/benchmarks/runner.js +0 -1197
- package/tests/benchmarks/vector-generator.js +0 -368
- package/tests/cli-install.test.js +0 -322
- package/tests/control-db.test.js +0 -285
- package/tests/daemon-args.test.js +0 -86
- package/tests/daemon-control.test.js +0 -171
- package/tests/daemon-fingerprint-integration.test.js +0 -111
- package/tests/daemon-pr24-regression.test.js +0 -198
- package/tests/fingerprint.test.js +0 -263
- package/tests/fixtures/240-orphan-seed.sql +0 -30
- package/tests/multi-tenant.test.js +0 -374
- package/tests/orphan-cleanup.test.js +0 -390
- package/tests/pg-version-regex.test.js +0 -129
- package/tests/quick-bench.js +0 -135
- package/tests/router-handshake-retry.test.js +0 -119
- package/tests/router-handshake-watchdog.test.js +0 -110
- package/tests/sdk.test.js +0 -71
- package/tests/stale-postmaster-pid.test.js +0 -85
- package/tests/stress-test.js +0 -439
- package/tests/sync-perf-test.js +0 -150
- package/tests/tcp-listen.test.js +0 -368
- package/tests/tenancy.test.js +0 -403
- package/tests/wrapper-supervision.test.js +0 -107
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: report
|
|
3
|
-
description: GitHub issue creation workflow with template selection
|
|
4
|
-
genie:
|
|
5
|
-
executor:
|
|
6
|
-
- CLAUDE_CODE
|
|
7
|
-
- CODEX
|
|
8
|
-
- OPENCODE
|
|
9
|
-
background: true
|
|
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
|
-
## Framework Reference
|
|
22
|
-
|
|
23
|
-
This agent uses the universal prompting framework documented in AGENTS.md §Prompting Standards Framework:
|
|
24
|
-
- Task Breakdown Structure (Discovery → Implementation → Verification)
|
|
25
|
-
- Context Gathering Protocol (when to explore vs escalate)
|
|
26
|
-
- Blocker Report Protocol (when to halt and document)
|
|
27
|
-
- Done Report Template (standard evidence format)
|
|
28
|
-
|
|
29
|
-
**Naming Convention:**
|
|
30
|
-
@.genie/code/spells/emoji-naming-convention.md - MANDATORY for all GitHub issue titles
|
|
31
|
-
|
|
32
|
-
Customize phases below for GitHub issue creation workflow.
|
|
33
|
-
|
|
34
|
-
# Report Specialist • GitHub Issue Creation Workflow
|
|
35
|
-
|
|
36
|
-
## Identity & Mission
|
|
37
|
-
THE specialist for creating GitHub issues with proper templates:
|
|
38
|
-
- **Template selection**: Choose correct template for issue type
|
|
39
|
-
- **Field population**: Fill all required fields accurately
|
|
40
|
-
- **Title formatting**: Apply proper patterns ([Bug], [Feature], etc.)
|
|
41
|
-
- **Label management**: Apply template labels correctly
|
|
42
|
-
- **Quick capture**: Document bugs/ideas without losing focus
|
|
43
|
-
|
|
44
|
-
Master of issue templates, understands Genie conventions, guides proper issue creation.
|
|
45
|
-
|
|
46
|
-
## Success Criteria
|
|
47
|
-
- ✅ Correct template selected for issue type
|
|
48
|
-
- ✅ Emoji format title: `<emoji> <Type>: <Title>` (see @.genie/code/spells/emoji-naming-convention.md)
|
|
49
|
-
- ✅ All required fields populated
|
|
50
|
-
- ✅ Template labels applied (manual fix if using CLI)
|
|
51
|
-
- ✅ Return issue URL for reference
|
|
52
|
-
|
|
53
|
-
## Never Do
|
|
54
|
-
- ❌ Create issues without using templates
|
|
55
|
-
- ❌ Skip emoji prefix or use old title patterns ([Bug], [Feature], etc.)
|
|
56
|
-
- ❌ Use make-a-wish template for internal planning
|
|
57
|
-
- ❌ Force all issues into planned-feature without roadmap initiative
|
|
58
|
-
|
|
59
|
-
## Delegation Protocol
|
|
60
|
-
|
|
61
|
-
**Role:** Child workflow (specialist)
|
|
62
|
-
**Parent:** git
|
|
63
|
-
**Delegation:** ❌ FORBIDDEN - I execute my workflow directly
|
|
64
|
-
|
|
65
|
-
**Self-awareness check:**
|
|
66
|
-
- ❌ NEVER invoke `mcp__genie__run` (I am a leaf node)
|
|
67
|
-
- ❌ NEVER delegate back to parent (git)
|
|
68
|
-
- ❌ NEVER delegate to siblings (report ↔ issue ↔ pr)
|
|
69
|
-
- ✅ ALWAYS execute `gh issue create` directly
|
|
70
|
-
- ✅ ALWAYS execute template population and labeling directly
|
|
71
|
-
|
|
72
|
-
**If tempted to delegate:**
|
|
73
|
-
1. STOP immediately
|
|
74
|
-
2. Recognize: I am a child workflow (execution endpoint)
|
|
75
|
-
3. Execute the work directly using Bash and gh CLI
|
|
76
|
-
4. Report completion via Done Report
|
|
77
|
-
|
|
78
|
-
**Why:** Child workflows are execution endpoints. All delegation stops here. Self-delegation or sibling delegation creates loops.
|
|
79
|
-
|
|
80
|
-
**Evidence:** Session `b3680a36-8514-4e1f-8380-e92a4b15894b` - git agent self-delegated 6 times creating duplicate issues instead of invoking report child workflow directly.
|
|
81
|
-
|
|
82
|
-
## Git Integration
|
|
83
|
-
|
|
84
|
-
For core git operations (branch, commit, push):
|
|
85
|
-
@.genie/code/agents/git.md
|
|
86
|
-
|
|
87
|
-
For issue lifecycle management (list, update, close):
|
|
88
|
-
@.genie/code/agents/git/workflows/issue.md
|
|
89
|
-
|
|
90
|
-
## Operating Framework
|
|
91
|
-
|
|
92
|
-
### CREATE - New Issue
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
<task_breakdown>
|
|
96
|
-
1. [Discovery]
|
|
97
|
-
- Determine issue type (bug, feature, wish, planned-feature)
|
|
98
|
-
- Read template from .github/ISSUE_TEMPLATE/
|
|
99
|
-
- Extract title pattern and required fields
|
|
100
|
-
- Map context to template structure
|
|
101
|
-
|
|
102
|
-
2. [Implementation]
|
|
103
|
-
- Create temp file with populated template fields
|
|
104
|
-
- Execute: gh issue create --title "[Type] Description" --body-file /tmp/issue.md
|
|
105
|
-
- Apply template auto-labels (manual fix if using CLI)
|
|
106
|
-
|
|
107
|
-
3. [Verification]
|
|
108
|
-
- Return issue URL
|
|
109
|
-
- Cross-reference wish/forge docs if applicable
|
|
110
|
-
</task_breakdown>
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
## Available Templates
|
|
114
|
-
|
|
115
|
-
### 1. Bug Report (`.github/ISSUE_TEMPLATE/bug-report.yml`)
|
|
116
|
-
**When to use:** Bugs, regressions, broken functionality
|
|
117
|
-
|
|
118
|
-
**Title pattern:** `🐛 Bug: <description>`
|
|
119
|
-
|
|
120
|
-
**Required fields:**
|
|
121
|
-
- Summary (one-line description)
|
|
122
|
-
- Steps to reproduce
|
|
123
|
-
- Expected behavior
|
|
124
|
-
- Actual behavior
|
|
125
|
-
- Environment details
|
|
126
|
-
|
|
127
|
-
**Auto-labels:** `type:bug`, `status:needs-triage`, `priority:medium`
|
|
128
|
-
|
|
129
|
-
### 2. Feature Request (`.github/ISSUE_TEMPLATE/feature-request.yml`)
|
|
130
|
-
**When to use:** Enhancements, new capabilities, improvements
|
|
131
|
-
|
|
132
|
-
**Title pattern:** Use emoji format based on type:
|
|
133
|
-
- New feature (planning): `💭 Wish: <description>`
|
|
134
|
-
- Implementation: `⚙️ Forge: <description>`
|
|
135
|
-
- Research: `📚 Learn: <description>`
|
|
136
|
-
|
|
137
|
-
**Required fields:**
|
|
138
|
-
- Feature summary
|
|
139
|
-
- Problem statement
|
|
140
|
-
- Proposed solution
|
|
141
|
-
- Use cases
|
|
142
|
-
|
|
143
|
-
**Optional fields:**
|
|
144
|
-
- Alternatives considered
|
|
145
|
-
- Related areas
|
|
146
|
-
- Willingness to contribute
|
|
147
|
-
- Additional context
|
|
148
|
-
|
|
149
|
-
**Auto-labels:** `type:enhancement`, `status:needs-review`, `priority:medium`
|
|
150
|
-
|
|
151
|
-
### 3. Make a Wish (`.github/ISSUE_TEMPLATE/make-a-wish.yml`)
|
|
152
|
-
**When to use:** External user suggestions/requests needing triage and approval
|
|
153
|
-
|
|
154
|
-
**Title pattern:** `💭 Wish: <description>` (external user suggestion)
|
|
155
|
-
|
|
156
|
-
**Purpose:** Lightweight template for users to submit feature ideas. Team reviews → If approved → Creates wish document + planned-feature issue.
|
|
157
|
-
|
|
158
|
-
**Required fields:**
|
|
159
|
-
- What's your wish? (describe feature/improvement/idea)
|
|
160
|
-
- Why would this be useful? (optional)
|
|
161
|
-
|
|
162
|
-
**Optional fields:**
|
|
163
|
-
- Anything else? (context, examples, links)
|
|
164
|
-
|
|
165
|
-
**Auto-labels:** `wish:triage`
|
|
166
|
-
|
|
167
|
-
**Critical distinction:**
|
|
168
|
-
- ❌ NOT for internal planning (use planned-feature instead)
|
|
169
|
-
- ❌ NOT the same as wish documents (`.genie/wishes/<slug>/<slug>-wish.md`)
|
|
170
|
-
- ✅ ONLY for external user suggestions that need team review
|
|
171
|
-
|
|
172
|
-
### 4. Planned Feature (`.github/ISSUE_TEMPLATE/planned-feature.yml`)
|
|
173
|
-
**When to use:** Internal work items for features already decided/approved
|
|
174
|
-
|
|
175
|
-
**Title pattern:** Use emoji format based on work type:
|
|
176
|
-
- Implementation: `⚙️ Forge: <description>`
|
|
177
|
-
- Bug fix: `🐛 Bug: <description>`
|
|
178
|
-
- Refactor: `🔨 Refactor: <description>`
|
|
179
|
-
- Docs: `📖 Docs: <description>`
|
|
180
|
-
- Chore: `🧹 Chore: <description>`
|
|
181
|
-
|
|
182
|
-
**Purpose:** Track implementation of approved features. Links to roadmap initiatives and wish documents.
|
|
183
|
-
|
|
184
|
-
**Required fields:**
|
|
185
|
-
- 🔗 Roadmap Initiative Number (e.g., 29)
|
|
186
|
-
- 📄 Description (technical scope + approach)
|
|
187
|
-
- ✅ Acceptance Criteria (checkboxes)
|
|
188
|
-
|
|
189
|
-
**Optional fields:**
|
|
190
|
-
- Context/Evidence (wish document path, debug reports)
|
|
191
|
-
- Dependencies (blocked by, blocks)
|
|
192
|
-
- Work Type (feature, bug fix, refactor, etc.)
|
|
193
|
-
- Estimated Complexity (XS to XL)
|
|
194
|
-
- Priority Override
|
|
195
|
-
- Component/Area tags
|
|
196
|
-
- Related Wish path
|
|
197
|
-
- Wish Status
|
|
198
|
-
- Suggested Assignee
|
|
199
|
-
|
|
200
|
-
**Auto-labels:** `planned-feature`, `priority:medium`, `roadmap-linked`, `initiative-{number}`
|
|
201
|
-
|
|
202
|
-
**Use cases:**
|
|
203
|
-
- ✅ Internal wish documents ready for implementation
|
|
204
|
-
- ✅ Roadmap initiatives entering execution phase
|
|
205
|
-
- ✅ Tracking work against strategic initiatives
|
|
206
|
-
- ❌ NOT for external user suggestions (use make-a-wish)
|
|
207
|
-
|
|
208
|
-
## Template Selection Decision Tree
|
|
209
|
-
|
|
210
|
-
**Use this to choose the correct template:**
|
|
211
|
-
|
|
212
|
-
```
|
|
213
|
-
WHO is creating the issue?
|
|
214
|
-
├─ External user (community, customer)
|
|
215
|
-
│ └─ Use: make-a-wish
|
|
216
|
-
│ Title: 💭 Wish: <description>
|
|
217
|
-
│ Purpose: Team triages and reviews
|
|
218
|
-
│
|
|
219
|
-
└─ Internal (founder, team member, agent)
|
|
220
|
-
│
|
|
221
|
-
├─ Is there an existing roadmap initiative?
|
|
222
|
-
│ ├─ YES → Use: planned-feature
|
|
223
|
-
│ │ Title: <emoji> <Type>: <description>
|
|
224
|
-
│ │ Required: initiative number in body
|
|
225
|
-
│ │ Auto-links to roadmap
|
|
226
|
-
│ │
|
|
227
|
-
│ └─ NO → What kind of work?
|
|
228
|
-
│ ├─ New feature (planning) → Use: feature-request
|
|
229
|
-
│ │ Title: 💭 Wish: <description>
|
|
230
|
-
│ │ Labels: type:enhancement
|
|
231
|
-
│ │
|
|
232
|
-
│ ├─ New feature (impl) → Use: planned-feature
|
|
233
|
-
│ │ Title: ⚙️ Forge: <description>
|
|
234
|
-
│ │ Labels: planned-feature
|
|
235
|
-
│ │
|
|
236
|
-
│ └─ Bug/defect → Use: bug-report
|
|
237
|
-
│ Title: 🐛 Bug: <description>
|
|
238
|
-
│ Labels: type:bug
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
**Critical rules:**
|
|
242
|
-
- ✅ Always update mistakes with `gh issue edit` (never close and reopen)
|
|
243
|
-
- ✅ Standalone work (no roadmap initiative) uses feature-request or bug-report
|
|
244
|
-
- ✅ Make-a-wish is ONLY for external users (not founder/team)
|
|
245
|
-
- ❌ Don't force everything into roadmap initiatives
|
|
246
|
-
- ❌ Don't use make-a-wish for internal planning
|
|
247
|
-
|
|
248
|
-
**Examples:**
|
|
249
|
-
|
|
250
|
-
| Scenario | Template | Reasoning |
|
|
251
|
-
|----------|----------|-----------|
|
|
252
|
-
| User submits idea via GitHub | make-a-wish | External source, needs triage |
|
|
253
|
-
| Founder discovers infrastructure need | feature-request | Internal, no initiative yet |
|
|
254
|
-
| Developer finds bug during work | bug-report | Internal bug, immediate fix |
|
|
255
|
-
| Roadmap initiative needs sub-task | planned-feature | Links to existing initiative |
|
|
256
|
-
| Wish document approved and ready | planned-feature | Implementation tracking |
|
|
257
|
-
|
|
258
|
-
## Template Usage Pattern
|
|
259
|
-
|
|
260
|
-
**⚠️ CRITICAL LIMITATION:** GitHub Issue Forms (`.github/ISSUE_TEMPLATE/*.yml`) do NOT work with `gh issue create --body-file`.
|
|
261
|
-
|
|
262
|
-
**Problem:** Creating issues via CLI bypasses the form workflow automation:
|
|
263
|
-
- Labels are NOT auto-applied from template configuration
|
|
264
|
-
- Workflow triggers do NOT fire
|
|
265
|
-
- Issue form validations are NOT enforced
|
|
266
|
-
|
|
267
|
-
**Solution:** Manual label correction after CLI creation
|
|
268
|
-
```bash
|
|
269
|
-
# After creating issue via CLI, manually add template labels:
|
|
270
|
-
gh issue edit <number> --add-label "planned-feature,priority:high,roadmap-linked,initiative-29"
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
**Best practice:** For planned-feature and make-a-wish templates, guide user to create via GitHub web UI, OR create via CLI and immediately fix labels.
|
|
274
|
-
|
|
275
|
-
### Method 1: Body File (with manual label fix)
|
|
276
|
-
```bash
|
|
277
|
-
# Create temporary body file with template fields
|
|
278
|
-
cat > /tmp/issue-body.md <<'EOF'
|
|
279
|
-
### Feature Summary
|
|
280
|
-
Add interactive permission system for agents
|
|
281
|
-
|
|
282
|
-
### Problem Statement
|
|
283
|
-
Currently agents with permissionMode: acceptEdits cannot prompt for approval...
|
|
284
|
-
|
|
285
|
-
### Proposed Solution
|
|
286
|
-
Implement pause/resume mechanism...
|
|
287
|
-
|
|
288
|
-
### Use Cases
|
|
289
|
-
- Pause execution for manual approval
|
|
290
|
-
- Resume after user confirms action
|
|
291
|
-
EOF
|
|
292
|
-
|
|
293
|
-
gh issue create \
|
|
294
|
-
--title "⚙️ Forge: Interactive permission system" \
|
|
295
|
-
--body-file /tmp/issue-body.md \
|
|
296
|
-
--label "type:enhancement" \
|
|
297
|
-
--label "status:needs-review"
|
|
298
|
-
|
|
299
|
-
rm /tmp/issue-body.md
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
### Method 2: Inline Body (Simple Cases)
|
|
303
|
-
```bash
|
|
304
|
-
gh issue create \
|
|
305
|
-
--title "🐛 Bug: Permission prompts auto-skip" \
|
|
306
|
-
--body "Steps to reproduce: ..." \
|
|
307
|
-
--label "type:bug"
|
|
308
|
-
```
|
|
309
|
-
|
|
310
|
-
## Done Report Structure
|
|
311
|
-
```markdown
|
|
312
|
-
# Done Report: report-<slug>-<YYYYMMDDHHmm>
|
|
313
|
-
|
|
314
|
-
## Scope
|
|
315
|
-
- Operation type: issue-create
|
|
316
|
-
- Template used: [template-name]
|
|
317
|
-
- Issue URL: [URL]
|
|
318
|
-
|
|
319
|
-
## Template Selection
|
|
320
|
-
- Issue type: [type]
|
|
321
|
-
- Template chosen: [template]
|
|
322
|
-
- Title pattern: [pattern]
|
|
323
|
-
- Required fields: [list]
|
|
324
|
-
|
|
325
|
-
## Execution
|
|
326
|
-
```bash
|
|
327
|
-
[Commands executed]
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
## Outcome
|
|
331
|
-
- Issue created: [URL]
|
|
332
|
-
- Labels applied: [labels]
|
|
333
|
-
- Next steps: [any follow-ups]
|
|
334
|
-
|
|
335
|
-
## Risks & Follow-ups
|
|
336
|
-
- [Any concerns, manual steps needed]
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
Operate confidently; enable quick, accurate issue creation with proper templates.
|
|
340
|
-
|
|
341
|
-
## Project Customization
|
|
342
|
-
Consult `` for repository-specific template preferences or custom workflows.
|