@ema.co/mcp-toolkit 1.5.2 → 1.6.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.
Potentially problematic release.
This version of @ema.co/mcp-toolkit might be problematic. Click here for more details.
- package/dist/mcp/handlers-consolidated.js +251 -20
- package/dist/mcp/server.js +1 -203
- package/dist/mcp/tools-consolidated.js +146 -100
- package/dist/sdk/action-registry.js +128 -0
- package/dist/sdk/client.js +58 -90
- package/dist/sdk/generated/api-types.js +11 -0
- package/dist/sdk/index.js +15 -1
- package/dist/sdk/knowledge.js +38 -8
- package/dist/sdk/quality-gates.js +386 -0
- package/dist/sdk/structural-rules.js +290 -0
- package/dist/sdk/workflow-generator.js +88 -34
- package/dist/sdk/workflow-intent.js +237 -24
- package/dist/sdk/workflow-optimizer.js +665 -0
- package/dist/sdk/workflow-tracer.js +648 -0
- package/dist/sdk/workflow-transformer.js +10 -0
- package/dist/sdk/workflow-validator.js +391 -0
- package/docs/.temp/datasource-attach.har +198369 -0
- package/docs/.temp/grpcweb.gar +1 -0
- package/docs/local-generation.md +508 -0
- package/docs/mcp-flow-diagram.md +135 -0
- package/docs/mcp-tools-guide.md +157 -203
- package/docs/openapi.json +8000 -0
- package/docs/release-process.md +153 -0
- package/docs/tool-consolidation-proposal.md +166 -378
- package/package.json +3 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Release Process
|
|
2
|
+
|
|
3
|
+
## Lessons Learned (2026-01-16)
|
|
4
|
+
|
|
5
|
+
The `feat/v1.5.0-intelligence-layer` branch was orphaned for weeks, containing 5,600+ lines of code that diverged significantly from main. This document establishes processes to prevent similar situations.
|
|
6
|
+
|
|
7
|
+
## Branch Hygiene Rules
|
|
8
|
+
|
|
9
|
+
### 1. No Long-Lived Feature Branches
|
|
10
|
+
|
|
11
|
+
**Rule:** Feature branches should be merged or closed within **2 weeks**.
|
|
12
|
+
|
|
13
|
+
**Why:** Long-lived branches diverge and become difficult to merge.
|
|
14
|
+
|
|
15
|
+
**Process:**
|
|
16
|
+
- If a feature takes longer than 2 weeks, break it into smaller PRs
|
|
17
|
+
- If blocked, document why and set a reminder to revisit
|
|
18
|
+
|
|
19
|
+
### 2. Pre-Branch Checklist
|
|
20
|
+
|
|
21
|
+
Before creating a new feature branch:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# 1. Fetch latest and check for unmerged work
|
|
25
|
+
git fetch origin
|
|
26
|
+
git branch -r --no-merged main | grep -v HEAD
|
|
27
|
+
|
|
28
|
+
# 2. If unmerged branches exist, decide:
|
|
29
|
+
# - Merge them first? OR
|
|
30
|
+
# - Explicitly abandon them?
|
|
31
|
+
|
|
32
|
+
# 3. Start from latest main
|
|
33
|
+
git checkout main
|
|
34
|
+
git pull origin main
|
|
35
|
+
git checkout -b feat/my-feature
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 3. Weekly Stale Branch Review
|
|
39
|
+
|
|
40
|
+
Run weekly to identify abandoned branches:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Show branches not merged to main, sorted by age
|
|
44
|
+
git for-each-ref --sort=committerdate refs/remotes/origin \
|
|
45
|
+
--format='%(committerdate:short) %(refname:short)' | \
|
|
46
|
+
grep -v HEAD | grep -v main
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 4. Post-Merge Cleanup
|
|
50
|
+
|
|
51
|
+
After merging a PR:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Delete the remote branch
|
|
55
|
+
git push origin --delete feat/my-feature
|
|
56
|
+
|
|
57
|
+
# Delete local branch
|
|
58
|
+
git branch -d feat/my-feature
|
|
59
|
+
|
|
60
|
+
# Verify cleanup
|
|
61
|
+
git remote prune origin
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Version Bumping Strategy
|
|
65
|
+
|
|
66
|
+
### Semantic Versioning
|
|
67
|
+
|
|
68
|
+
| Change Type | Version Bump | Example |
|
|
69
|
+
|-------------|--------------|---------|
|
|
70
|
+
| Breaking change | Major | 1.5.2 → 2.0.0 |
|
|
71
|
+
| New feature | Minor | 1.5.2 → 1.6.0 |
|
|
72
|
+
| Bug fix | Patch | 1.5.2 → 1.5.3 |
|
|
73
|
+
|
|
74
|
+
### Branch Naming Convention
|
|
75
|
+
|
|
76
|
+
| Type | Pattern | Example |
|
|
77
|
+
|------|---------|---------|
|
|
78
|
+
| Feature | `feat/descriptive-name` | `feat/intelligence-layer-additive` |
|
|
79
|
+
| Fix | `fix/descriptive-name` | `fix/fallback-detection` |
|
|
80
|
+
| Release | `release/vX.Y.Z` | `release/v1.6.0` |
|
|
81
|
+
|
|
82
|
+
### Pre-Release Checklist
|
|
83
|
+
|
|
84
|
+
Before creating a release:
|
|
85
|
+
|
|
86
|
+
1. **Check for unmerged work:**
|
|
87
|
+
```bash
|
|
88
|
+
git branch -r --no-merged main
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
2. **Run full test suite:**
|
|
92
|
+
```bash
|
|
93
|
+
npm run build && npm test
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
3. **Review CHANGELOG:**
|
|
97
|
+
- Are all changes documented?
|
|
98
|
+
- Is the version number correct?
|
|
99
|
+
|
|
100
|
+
4. **Create release branch:**
|
|
101
|
+
```bash
|
|
102
|
+
git checkout -b release/v1.6.0
|
|
103
|
+
# Update version in package.json
|
|
104
|
+
git commit -am "chore: release v1.6.0"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Conflict Prevention
|
|
108
|
+
|
|
109
|
+
### When Parallel Work Happens
|
|
110
|
+
|
|
111
|
+
If two features are being developed in parallel:
|
|
112
|
+
|
|
113
|
+
1. **Communicate:** Let the team know what you're working on
|
|
114
|
+
2. **Small PRs:** Merge frequently to reduce divergence
|
|
115
|
+
3. **Rebase often:** Keep feature branches up to date with main
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# Rebase feature branch on latest main
|
|
119
|
+
git fetch origin
|
|
120
|
+
git rebase origin/main
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### When Merging a Large Feature
|
|
124
|
+
|
|
125
|
+
For large features (>500 lines):
|
|
126
|
+
|
|
127
|
+
1. **Create a tracking issue** documenting what's being added
|
|
128
|
+
2. **Break into reviewable chunks** (≤300 lines per PR)
|
|
129
|
+
3. **Merge incrementally** rather than one giant PR
|
|
130
|
+
|
|
131
|
+
## Automation (Future)
|
|
132
|
+
|
|
133
|
+
Consider adding GitHub Actions for:
|
|
134
|
+
|
|
135
|
+
1. **Stale branch alerts:** Weekly notification of branches >14 days old
|
|
136
|
+
2. **PR size warnings:** Flag PRs with >500 lines changed
|
|
137
|
+
3. **Unmerged branch check:** CI fails if important branches are unmerged before release
|
|
138
|
+
|
|
139
|
+
## Quick Reference
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# Check for unmerged branches
|
|
143
|
+
git branch -r --no-merged main | grep -v HEAD
|
|
144
|
+
|
|
145
|
+
# Compare branch to main
|
|
146
|
+
git log main..origin/feat/branch-name --oneline
|
|
147
|
+
git diff --stat main...origin/feat/branch-name
|
|
148
|
+
|
|
149
|
+
# Clean up after merge
|
|
150
|
+
git push origin --delete feat/branch-name
|
|
151
|
+
git branch -d feat/branch-name
|
|
152
|
+
git remote prune origin
|
|
153
|
+
```
|