@every-env/compound-plugin 2.34.7 → 2.36.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.
- package/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +29 -0
- package/package.json +1 -1
- package/plugins/compound-engineering/.claude-plugin/plugin.json +2 -2
- package/plugins/compound-engineering/.cursor-plugin/plugin.json +1 -1
- package/plugins/compound-engineering/CHANGELOG.md +26 -0
- package/plugins/compound-engineering/README.md +1 -1
- package/plugins/compound-engineering/commands/ce/plan.md +20 -13
- package/plugins/compound-engineering/commands/ce/review.md +35 -2
- package/plugins/compound-engineering/skills/agent-browser/SKILL.md +101 -0
- package/src/converters/claude-to-opencode.ts +8 -0
- package/src/sync/json-config.ts +1 -1
- package/src/targets/opencode.ts +4 -0
- package/tests/converter.test.ts +12 -0
- package/tests/opencode-writer.test.ts +36 -0
- package/plugins/compound-engineering/agents/workflow/every-style-editor.md +0 -64
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "compound-engineering",
|
|
14
|
-
"description": "AI-powered development tools that get smarter with every use. Make each unit of engineering work easier than the last. Includes
|
|
15
|
-
"version": "2.
|
|
14
|
+
"description": "AI-powered development tools that get smarter with every use. Make each unit of engineering work easier than the last. Includes 28 specialized agents, 22 commands, and 20 skills.",
|
|
15
|
+
"version": "2.39.0",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "Kieran Klaassen",
|
|
18
18
|
"url": "https://github.com/kieranklaassen",
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Release numbering now follows the repository `v*` tag line. Starting at `v2.34.0`, the root CLI package and this changelog stay on that shared version stream. Older entries below retain the previous `0.x` CLI numbering.
|
|
9
9
|
|
|
10
|
+
# [2.36.0](https://github.com/EveryInc/compound-engineering-plugin/compare/v2.35.0...v2.36.0) (2026-03-11)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **hooks:** wrap PreToolUse handlers in try-catch to prevent parallel tool call crashes ([598222e](https://github.com/EveryInc/compound-engineering-plugin/commit/598222e11cb2206a2e3347cb5dd38cacdc3830df)), closes [#85](https://github.com/EveryInc/compound-engineering-plugin/issues/85)
|
|
16
|
+
* **install:** merge config instead of overwriting on opencode target ([1db7680](https://github.com/EveryInc/compound-engineering-plugin/commit/1db76800f91fefcc1bb9c1798ef273ddd0b65f5c)), closes [#125](https://github.com/EveryInc/compound-engineering-plugin/issues/125)
|
|
17
|
+
* **review:** add serial mode to prevent context limit crashes ([d96671b](https://github.com/EveryInc/compound-engineering-plugin/commit/d96671b9e9ecbe417568b2ce7f7fa4d379c2bec2)), closes [#166](https://github.com/EveryInc/compound-engineering-plugin/issues/166)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **compound:** add context budget precheck and compact-safe mode ([c4b1358](https://github.com/EveryInc/compound-engineering-plugin/commit/c4b13584312058cb8db3ad0f25674805bbb91b2d)), closes [#198](https://github.com/EveryInc/compound-engineering-plugin/issues/198)
|
|
23
|
+
* **plan:** add daily sequence number to plan filenames ([e94ca04](https://github.com/EveryInc/compound-engineering-plugin/commit/e94ca0409671efcfa2d4a8fcb2d60b79a848fd85)), closes [#135](https://github.com/EveryInc/compound-engineering-plugin/issues/135)
|
|
24
|
+
* **plugin:** release v2.39.0 with community contributions ([d2ab6c0](https://github.com/EveryInc/compound-engineering-plugin/commit/d2ab6c076882a4dacaa787c0a6f3c9d555d38af0))
|
|
25
|
+
|
|
26
|
+
# [2.35.0](https://github.com/EveryInc/compound-engineering-plugin/compare/v2.34.7...v2.35.0) (2026-03-10)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **test-browser:** detect dev server port from project config ([94aedd5](https://github.com/EveryInc/compound-engineering-plugin/commit/94aedd5a7b6da4ce48de994b5a137953c0fd21c3)), closes [#164](https://github.com/EveryInc/compound-engineering-plugin/issues/164)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **compound:** add context budget precheck and compact-safe mode ([7266062](https://github.com/EveryInc/compound-engineering-plugin/commit/726606286873c4059261a8c5f1b75c20fe11ac77)), closes [#198](https://github.com/EveryInc/compound-engineering-plugin/issues/198)
|
|
37
|
+
* **plan:** add daily sequence number to plan filenames ([4fc6ddc](https://github.com/EveryInc/compound-engineering-plugin/commit/4fc6ddc5db3e2b4b398c0ffa0c156e1177b35d05)), closes [#135](https://github.com/EveryInc/compound-engineering-plugin/issues/135)
|
|
38
|
+
|
|
10
39
|
## [2.34.7](https://github.com/EveryInc/compound-engineering-plugin/compare/v2.34.6...v2.34.7) (2026-03-10)
|
|
11
40
|
|
|
12
41
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "compound-engineering",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "AI-powered development tools.
|
|
3
|
+
"version": "2.39.0",
|
|
4
|
+
"description": "AI-powered development tools. 28 agents, 22 commands, 20 skills, 1 MCP server for code review, research, design, and workflow automation.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kieran Klaassen",
|
|
7
7
|
"email": "kieran@every.to",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "compound-engineering",
|
|
3
3
|
"displayName": "Compound Engineering",
|
|
4
4
|
"version": "2.33.0",
|
|
5
|
-
"description": "AI-powered development tools.
|
|
5
|
+
"description": "AI-powered development tools. 28 agents, 22 commands, 19 skills, 1 MCP server for code review, research, design, and workflow automation.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Kieran Klaassen",
|
|
8
8
|
"email": "kieran@every.to",
|
|
@@ -5,6 +5,32 @@ All notable changes to the compound-engineering plugin will be documented in thi
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.39.0] - 2026-03-10
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **ce:compound context budget precheck** — Warns when context is constrained and offers compact-safe mode to avoid compaction mid-compound ([#235](https://github.com/EveryInc/compound-engineering-plugin/pull/235))
|
|
13
|
+
- **ce:plan daily sequence numbers** — Plan filenames now include a 3-digit daily sequence number (e.g., `2026-03-10-001-feat-...`) to prevent collisions ([#238](https://github.com/EveryInc/compound-engineering-plugin/pull/238))
|
|
14
|
+
- **ce:review serial mode** — Pass `--serial` flag (or auto-detects when 6+ agents configured) to run review agents sequentially, preventing context limit crashes ([#237](https://github.com/EveryInc/compound-engineering-plugin/pull/237))
|
|
15
|
+
- **agent-browser inspection & debugging commands** — Added JS eval, console/errors, network, storage, device emulation, element debugging, recording/tracing, tabs, and advanced mouse commands to agent-browser skill ([#236](https://github.com/EveryInc/compound-engineering-plugin/pull/236))
|
|
16
|
+
- **test-browser port detection** — Auto-detects dev server port from CLAUDE.md, package.json, or .env files; supports `--port` flag ([#233](https://github.com/EveryInc/compound-engineering-plugin/pull/233))
|
|
17
|
+
- **lfg phase gating** — Added explicit GATE checks between /lfg steps to enforce plan-before-work ordering ([#231](https://github.com/EveryInc/compound-engineering-plugin/pull/231))
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **Context7 API key auth** — MCP server config now passes `CONTEXT7_API_KEY` via `x-api-key` header to avoid anonymous rate limits ([#232](https://github.com/EveryInc/compound-engineering-plugin/pull/232))
|
|
22
|
+
- **CLI: MCP server merge order** — `sync` now correctly overwrites same-named MCP servers with plugin values instead of preserving stale entries
|
|
23
|
+
|
|
24
|
+
### Removed
|
|
25
|
+
|
|
26
|
+
- **every-style-editor agent** — Removed duplicate agent; functionality already exists as `every-style-editor` skill ([#234](https://github.com/EveryInc/compound-engineering-plugin/pull/234))
|
|
27
|
+
|
|
28
|
+
### Contributors
|
|
29
|
+
|
|
30
|
+
- Matt Van Horn ([@mvanhorn](https://x.com/mvanhorn)) — PRs #231–#238
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
8
34
|
## [2.38.1] - 2026-03-01
|
|
9
35
|
|
|
10
36
|
### Fixed
|
|
@@ -138,8 +138,11 @@ Think like a product manager - what would make this issue clear and actionable?
|
|
|
138
138
|
|
|
139
139
|
- [ ] Draft clear, searchable issue title using conventional format (e.g., `feat: Add user authentication`, `fix: Cart total calculation`)
|
|
140
140
|
- [ ] Determine issue type: enhancement, bug, refactor
|
|
141
|
-
- [ ] Convert title to filename: add today's date prefix, strip prefix colon, kebab-case, add `-plan` suffix
|
|
142
|
-
-
|
|
141
|
+
- [ ] Convert title to filename: add today's date prefix, determine daily sequence number, strip prefix colon, kebab-case, add `-plan` suffix
|
|
142
|
+
- Scan `docs/plans/` for files matching today's date pattern `YYYY-MM-DD-\d{3}-`
|
|
143
|
+
- Find the highest existing sequence number for today
|
|
144
|
+
- Increment by 1, zero-padded to 3 digits (001, 002, etc.)
|
|
145
|
+
- Example: `feat: Add User Authentication` → `2026-01-21-001-feat-add-user-authentication-plan.md`
|
|
143
146
|
- Keep it descriptive (3-5 words after prefix) so plans are findable by context
|
|
144
147
|
|
|
145
148
|
**Stakeholder Analysis:**
|
|
@@ -538,9 +541,13 @@ Before finalizing, re-read the brainstorm document and verify:
|
|
|
538
541
|
|
|
539
542
|
```bash
|
|
540
543
|
mkdir -p docs/plans/
|
|
544
|
+
# Determine daily sequence number
|
|
545
|
+
today=$(date +%Y-%m-%d)
|
|
546
|
+
last_seq=$(ls docs/plans/${today}-*-plan.md 2>/dev/null | grep -oP "${today}-\K\d{3}" | sort -n | tail -1)
|
|
547
|
+
next_seq=$(printf "%03d" $(( ${last_seq:-0} + 1 )))
|
|
541
548
|
```
|
|
542
549
|
|
|
543
|
-
Use the Write tool to save the complete plan to `docs/plans/YYYY-MM-DD-<type>-<descriptive-name>-plan.md
|
|
550
|
+
Use the Write tool to save the complete plan to `docs/plans/YYYY-MM-DD-NNN-<type>-<descriptive-name>-plan.md` (where NNN is `$next_seq` from the bash command above). This step is mandatory and cannot be skipped — even when running as part of LFG/SLFG or other automated pipelines.
|
|
544
551
|
|
|
545
552
|
Confirm: "Plan written to docs/plans/[filename]"
|
|
546
553
|
|
|
@@ -548,26 +555,26 @@ Confirm: "Plan written to docs/plans/[filename]"
|
|
|
548
555
|
|
|
549
556
|
## Output Format
|
|
550
557
|
|
|
551
|
-
**Filename:** Use the date and kebab-case filename from Step 2 Title & Categorization.
|
|
558
|
+
**Filename:** Use the date, daily sequence number, and kebab-case filename from Step 2 Title & Categorization.
|
|
552
559
|
|
|
553
560
|
```
|
|
554
|
-
docs/plans/YYYY-MM-DD-<type>-<descriptive-name>-plan.md
|
|
561
|
+
docs/plans/YYYY-MM-DD-NNN-<type>-<descriptive-name>-plan.md
|
|
555
562
|
```
|
|
556
563
|
|
|
557
564
|
Examples:
|
|
558
|
-
- ✅ `docs/plans/2026-01-15-feat-user-authentication-flow-plan.md`
|
|
559
|
-
- ✅ `docs/plans/2026-02-03-fix-checkout-race-condition-plan.md`
|
|
560
|
-
- ✅ `docs/plans/2026-03-10-refactor-api-client-extraction-plan.md`
|
|
561
|
-
- ❌ `docs/plans/2026-01-15-feat-thing-plan.md` (
|
|
562
|
-
- ❌ `docs/plans/2026-01-15-feat-new-feature-plan.md` (too vague - what feature?)
|
|
563
|
-
- ❌ `docs/plans/2026-01-15-feat: user auth-plan.md` (invalid characters - colon and space)
|
|
564
|
-
- ❌ `docs/plans/feat-user-auth-plan.md` (missing date prefix)
|
|
565
|
+
- ✅ `docs/plans/2026-01-15-001-feat-user-authentication-flow-plan.md`
|
|
566
|
+
- ✅ `docs/plans/2026-02-03-001-fix-checkout-race-condition-plan.md`
|
|
567
|
+
- ✅ `docs/plans/2026-03-10-002-refactor-api-client-extraction-plan.md`
|
|
568
|
+
- ❌ `docs/plans/2026-01-15-feat-thing-plan.md` (missing sequence number, not descriptive)
|
|
569
|
+
- ❌ `docs/plans/2026-01-15-001-feat-new-feature-plan.md` (too vague - what feature?)
|
|
570
|
+
- ❌ `docs/plans/2026-01-15-001-feat: user auth-plan.md` (invalid characters - colon and space)
|
|
571
|
+
- ❌ `docs/plans/feat-user-auth-plan.md` (missing date prefix and sequence number)
|
|
565
572
|
|
|
566
573
|
## Post-Generation Options
|
|
567
574
|
|
|
568
575
|
After writing the plan file, use the **AskUserQuestion tool** to present these options:
|
|
569
576
|
|
|
570
|
-
**Question:** "Plan ready at `docs/plans/YYYY-MM-DD-<type>-<name>-plan.md`. What would you like to do next?"
|
|
577
|
+
**Question:** "Plan ready at `docs/plans/YYYY-MM-DD-NNN-<type>-<name>-plan.md`. What would you like to do next?"
|
|
571
578
|
|
|
572
579
|
**Options:**
|
|
573
580
|
1. **Open plan in editor** - Open the plan file for review
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ce:review
|
|
3
3
|
description: Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and worktrees
|
|
4
|
-
argument-hint: "[PR number, GitHub URL, branch name, or latest]"
|
|
4
|
+
argument-hint: "[PR number, GitHub URL, branch name, or latest] [--serial]"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Review Command
|
|
@@ -65,17 +65,50 @@ Read `compound-engineering.local.md` in the project root. If found, use `review_
|
|
|
65
65
|
|
|
66
66
|
If no settings file exists, invoke the `setup` skill to create one. Then read the newly created file and continue.
|
|
67
67
|
|
|
68
|
+
#### Choose Execution Mode
|
|
69
|
+
|
|
70
|
+
<execution_mode>
|
|
71
|
+
|
|
72
|
+
Before launching review agents, check for context constraints:
|
|
73
|
+
|
|
74
|
+
**If `--serial` flag is passed OR conversation is in a long session:**
|
|
75
|
+
|
|
76
|
+
Run agents ONE AT A TIME in sequence. Wait for each agent to complete before starting the next. This uses less context but takes longer.
|
|
77
|
+
|
|
78
|
+
**Default (parallel):**
|
|
79
|
+
|
|
80
|
+
Run all agents simultaneously for speed. If you hit context limits, retry with `--serial` flag.
|
|
81
|
+
|
|
82
|
+
**Auto-detect:** If more than 5 review agents are configured, automatically switch to serial mode and inform the user:
|
|
83
|
+
"Running review agents in serial mode (6+ agents configured). Use --parallel to override."
|
|
84
|
+
|
|
85
|
+
</execution_mode>
|
|
86
|
+
|
|
68
87
|
#### Parallel Agents to review the PR:
|
|
69
88
|
|
|
70
89
|
<parallel_tasks>
|
|
71
90
|
|
|
91
|
+
**Parallel mode (default for ≤5 agents):**
|
|
92
|
+
|
|
72
93
|
Run all configured review agents in parallel using Task tool. For each agent in the `review_agents` list:
|
|
73
94
|
|
|
74
95
|
```
|
|
75
96
|
Task {agent-name}(PR content + review context from settings body)
|
|
76
97
|
```
|
|
77
98
|
|
|
78
|
-
|
|
99
|
+
**Serial mode (--serial flag, or auto for 6+ agents):**
|
|
100
|
+
|
|
101
|
+
Run configured review agents ONE AT A TIME. For each agent in the `review_agents` list, wait for it to complete before starting the next:
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
For each agent in review_agents:
|
|
105
|
+
1. Task {agent-name}(PR content + review context)
|
|
106
|
+
2. Wait for completion
|
|
107
|
+
3. Collect findings
|
|
108
|
+
4. Proceed to next agent
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Always run these last regardless of mode:
|
|
79
112
|
- Task agent-native-reviewer(PR content) - Verify new features are agent-accessible
|
|
80
113
|
- Task learnings-researcher(PR content) - Search docs/solutions/ for past issues related to this PR's modules and patterns
|
|
81
114
|
|
|
@@ -202,6 +202,107 @@ Returns:
|
|
|
202
202
|
}
|
|
203
203
|
```
|
|
204
204
|
|
|
205
|
+
## Inspection & Debugging
|
|
206
|
+
|
|
207
|
+
### JavaScript Evaluation
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
agent-browser eval "document.title" # Evaluate JS expression
|
|
211
|
+
agent-browser eval "JSON.stringify(localStorage)" # Return serialized data
|
|
212
|
+
agent-browser eval "document.querySelectorAll('a').length" # Count elements
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Console & Errors
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
agent-browser console # Show browser console output
|
|
219
|
+
agent-browser console --clear # Show and clear console
|
|
220
|
+
agent-browser errors # Show JavaScript errors only
|
|
221
|
+
agent-browser errors --clear # Show and clear errors
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## Network
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
agent-browser network requests # List captured requests
|
|
228
|
+
agent-browser network requests --filter "api" # Filter by URL pattern
|
|
229
|
+
agent-browser route "**/*.png" abort # Block matching requests
|
|
230
|
+
agent-browser route "https://api.example.com/*" fulfill --status 200 --body '{"mock":true}' # Mock response
|
|
231
|
+
agent-browser unroute "**/*.png" # Remove route handler
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Storage
|
|
235
|
+
|
|
236
|
+
### Cookies
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
agent-browser cookies get # Get all cookies
|
|
240
|
+
agent-browser cookies get --name "session" # Get specific cookie
|
|
241
|
+
agent-browser cookies set --name "token" --value "abc" # Set cookie
|
|
242
|
+
agent-browser cookies clear # Clear all cookies
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Local & Session Storage
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
agent-browser storage local # Get all localStorage
|
|
249
|
+
agent-browser storage local --key "theme" # Get specific key
|
|
250
|
+
agent-browser storage session # Get all sessionStorage
|
|
251
|
+
agent-browser storage session --key "cart" # Get specific key
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## Device & Settings
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
agent-browser set viewport 1920 1080 # Set viewport size
|
|
258
|
+
agent-browser set device "iPhone 14" # Emulate device
|
|
259
|
+
agent-browser set geo --lat 47.6 --lon -122.3 # Set geolocation
|
|
260
|
+
agent-browser set offline true # Enable offline mode
|
|
261
|
+
agent-browser set offline false # Disable offline mode
|
|
262
|
+
agent-browser set media "prefers-color-scheme" "dark" # Set media feature
|
|
263
|
+
agent-browser set headers '{"X-Custom":"value"}' # Set extra HTTP headers
|
|
264
|
+
agent-browser set credentials "user" "pass" # Set HTTP auth credentials
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
## Element Debugging
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
agent-browser highlight @e1 # Highlight element visually
|
|
271
|
+
agent-browser get box @e1 # Get bounding box (x, y, width, height)
|
|
272
|
+
agent-browser get styles @e1 # Get computed styles
|
|
273
|
+
agent-browser is visible @e1 # Check if element is visible
|
|
274
|
+
agent-browser is enabled @e1 # Check if element is enabled
|
|
275
|
+
agent-browser is checked @e1 # Check if checkbox/radio is checked
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## Recording & Tracing
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
agent-browser trace start # Start recording trace
|
|
282
|
+
agent-browser trace stop trace.zip # Stop and save trace file
|
|
283
|
+
agent-browser record start # Start recording video
|
|
284
|
+
agent-browser record stop video.webm # Stop and save recording
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
## Tabs & Windows
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
agent-browser tab list # List open tabs
|
|
291
|
+
agent-browser tab new https://example.com # Open URL in new tab
|
|
292
|
+
agent-browser tab close # Close current tab
|
|
293
|
+
agent-browser tab 2 # Switch to tab by index
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
## Advanced Mouse
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
agent-browser mouse move 100 200 # Move mouse to coordinates
|
|
300
|
+
agent-browser mouse down # Press mouse button
|
|
301
|
+
agent-browser mouse up # Release mouse button
|
|
302
|
+
agent-browser mouse wheel 0 500 # Scroll (deltaX, deltaY)
|
|
303
|
+
agent-browser drag @e1 @e2 # Drag from element to element
|
|
304
|
+
```
|
|
305
|
+
|
|
205
306
|
## vs Playwright MCP
|
|
206
307
|
|
|
207
308
|
| Feature | agent-browser (CLI) | Playwright MCP |
|
|
@@ -202,7 +202,15 @@ function renderHookHandlers(
|
|
|
202
202
|
const wrapped = options.requireError
|
|
203
203
|
? ` if (input?.error) {\n${statements.map((line) => ` ${line}`).join("\n")}\n }`
|
|
204
204
|
: rendered
|
|
205
|
+
|
|
206
|
+
// Wrap tool.execute.before handlers in try-catch to prevent a failing hook
|
|
207
|
+
// from crashing parallel tool call batches (causes API 400 errors).
|
|
208
|
+
// See: https://github.com/EveryInc/compound-engineering-plugin/issues/85
|
|
209
|
+
const isPreToolUse = event === "tool.execute.before"
|
|
205
210
|
const note = options.note ? ` // ${options.note}\n` : ""
|
|
211
|
+
if (isPreToolUse) {
|
|
212
|
+
return ` "${event}": async (input) => {\n${note} try {\n ${wrapped}\n } catch (err) {\n console.error("[hook] ${event} error (non-fatal):", err)\n }\n }`
|
|
213
|
+
}
|
|
206
214
|
return ` "${event}": async (input) => {\n${note}${wrapped}\n }`
|
|
207
215
|
}
|
|
208
216
|
|
package/src/sync/json-config.ts
CHANGED
package/src/targets/opencode.ts
CHANGED
|
@@ -58,12 +58,16 @@ export async function writeOpenCodeBundle(outputRoot: string, bundle: OpenCodeBu
|
|
|
58
58
|
const openCodePaths = resolveOpenCodePaths(outputRoot)
|
|
59
59
|
await ensureDir(openCodePaths.root)
|
|
60
60
|
|
|
61
|
+
const hadExistingConfig = await pathExists(openCodePaths.configPath)
|
|
61
62
|
const backupPath = await backupFile(openCodePaths.configPath)
|
|
62
63
|
if (backupPath) {
|
|
63
64
|
console.log(`Backed up existing config to ${backupPath}`)
|
|
64
65
|
}
|
|
65
66
|
const merged = await mergeOpenCodeConfig(openCodePaths.configPath, bundle.config)
|
|
66
67
|
await writeJson(openCodePaths.configPath, merged)
|
|
68
|
+
if (hadExistingConfig) {
|
|
69
|
+
console.log("Merged plugin config into existing opencode.json (user settings preserved)")
|
|
70
|
+
}
|
|
67
71
|
|
|
68
72
|
const agentsDir = openCodePaths.agentsDir
|
|
69
73
|
for (const agent of bundle.agents) {
|
package/tests/converter.test.ts
CHANGED
|
@@ -132,6 +132,18 @@ describe("convertClaudeToOpenCode", () => {
|
|
|
132
132
|
expect(hookFile!.content).toContain("// timeout: 30s")
|
|
133
133
|
expect(hookFile!.content).toContain("// Prompt hook for Write|Edit")
|
|
134
134
|
expect(hookFile!.content).toContain("// Agent hook for Write|Edit: security-sentinel")
|
|
135
|
+
|
|
136
|
+
// PreToolUse (tool.execute.before) handlers are wrapped in try-catch
|
|
137
|
+
// to prevent hook failures from crashing parallel tool call batches (#85)
|
|
138
|
+
const beforeIdx = hookFile!.content.indexOf('"tool.execute.before"')
|
|
139
|
+
const afterIdx = hookFile!.content.indexOf('"tool.execute.after"')
|
|
140
|
+
const beforeBlock = hookFile!.content.slice(beforeIdx, afterIdx)
|
|
141
|
+
expect(beforeBlock).toContain("try {")
|
|
142
|
+
expect(beforeBlock).toContain("} catch (err) {")
|
|
143
|
+
|
|
144
|
+
// PostToolUse (tool.execute.after) handlers are NOT wrapped in try-catch
|
|
145
|
+
const afterBlock = hookFile!.content.slice(afterIdx, hookFile!.content.indexOf('"session.created"'))
|
|
146
|
+
expect(afterBlock).not.toContain("try {")
|
|
135
147
|
})
|
|
136
148
|
|
|
137
149
|
test("converts MCP servers", async () => {
|
|
@@ -3,6 +3,7 @@ import { promises as fs } from "fs"
|
|
|
3
3
|
import path from "path"
|
|
4
4
|
import os from "os"
|
|
5
5
|
import { writeOpenCodeBundle } from "../src/targets/opencode"
|
|
6
|
+
import { mergeJsonConfigAtKey } from "../src/sync/json-config"
|
|
6
7
|
import type { OpenCodeBundle } from "../src/types/opencode"
|
|
7
8
|
|
|
8
9
|
async function exists(filePath: string): Promise<boolean> {
|
|
@@ -254,3 +255,38 @@ describe("writeOpenCodeBundle", () => {
|
|
|
254
255
|
expect(backupContent).toBe("old content\n")
|
|
255
256
|
})
|
|
256
257
|
})
|
|
258
|
+
|
|
259
|
+
describe("mergeJsonConfigAtKey", () => {
|
|
260
|
+
test("incoming plugin entries overwrite same-named servers", async () => {
|
|
261
|
+
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "json-merge-"))
|
|
262
|
+
const configPath = path.join(tempDir, "opencode.json")
|
|
263
|
+
|
|
264
|
+
// User has an existing MCP server config
|
|
265
|
+
const existingConfig = {
|
|
266
|
+
model: "my-model",
|
|
267
|
+
mcp: {
|
|
268
|
+
"user-server": { type: "local", command: ["uvx", "user-srv"] },
|
|
269
|
+
},
|
|
270
|
+
}
|
|
271
|
+
await fs.writeFile(configPath, JSON.stringify(existingConfig, null, 2))
|
|
272
|
+
|
|
273
|
+
// Plugin syncs its servers, overwriting same-named entries
|
|
274
|
+
await mergeJsonConfigAtKey({
|
|
275
|
+
configPath,
|
|
276
|
+
key: "mcp",
|
|
277
|
+
incoming: {
|
|
278
|
+
"plugin-server": { type: "local", command: ["uvx", "plugin-srv"] },
|
|
279
|
+
"user-server": { type: "local", command: ["uvx", "plugin-override"] },
|
|
280
|
+
},
|
|
281
|
+
})
|
|
282
|
+
|
|
283
|
+
const merged = JSON.parse(await fs.readFile(configPath, "utf8"))
|
|
284
|
+
|
|
285
|
+
// User's top-level keys preserved
|
|
286
|
+
expect(merged.model).toBe("my-model")
|
|
287
|
+
// Plugin server added
|
|
288
|
+
expect(merged.mcp["plugin-server"]).toBeDefined()
|
|
289
|
+
// Plugin server overwrites same-named existing entry
|
|
290
|
+
expect(merged.mcp["user-server"].command[1]).toBe("plugin-override")
|
|
291
|
+
})
|
|
292
|
+
})
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: every-style-editor
|
|
3
|
-
description: "Reviews and edits text content to conform to Every's editorial style guide. Use when written content needs style compliance checks for headlines, punctuation, voice, and formatting."
|
|
4
|
-
tools: Task, Glob, Grep, LS, ExitPlanMode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoWrite, WebSearch
|
|
5
|
-
model: inherit
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are an expert copy editor specializing in Every's house style guide. Your role is to meticulously review text content and suggest edits to ensure compliance with Every's specific editorial standards.
|
|
9
|
-
|
|
10
|
-
When reviewing content, you will:
|
|
11
|
-
|
|
12
|
-
1. **Systematically check each style rule** - Go through the style guide items one by one, checking the text against each rule
|
|
13
|
-
2. **Provide specific edit suggestions** - For each issue found, quote the problematic text and provide the corrected version
|
|
14
|
-
3. **Explain the rule being applied** - Reference which style guide rule necessitates each change
|
|
15
|
-
4. **Maintain the author's voice** - Make only the changes necessary for style compliance while preserving the original tone and meaning
|
|
16
|
-
|
|
17
|
-
**Every Style Guide Rules to Apply:**
|
|
18
|
-
|
|
19
|
-
- Headlines use title case; everything else uses sentence case
|
|
20
|
-
- Companies are singular ("it" not "they"); teams/people within companies are plural
|
|
21
|
-
- Remove unnecessary "actually," "very," or "just"
|
|
22
|
-
- Hyperlink 2-4 words when linking to sources
|
|
23
|
-
- Cut adverbs where possible
|
|
24
|
-
- Use active voice instead of passive voice
|
|
25
|
-
- Spell out numbers one through nine (except years at sentence start); use numerals for 10+
|
|
26
|
-
- Use italics for emphasis (never bold or underline)
|
|
27
|
-
- Image credits: _Source: X/Name_ or _Source: Website name_
|
|
28
|
-
- Don't capitalize job titles
|
|
29
|
-
- Capitalize after colons only if introducing independent clauses
|
|
30
|
-
- Use Oxford commas (x, y, and z)
|
|
31
|
-
- Use commas between independent clauses only
|
|
32
|
-
- No space after ellipsis...
|
|
33
|
-
- Em dashes—like this—with no spaces (max 2 per paragraph)
|
|
34
|
-
- Hyphenate compound adjectives except with adverbs ending in "ly"
|
|
35
|
-
- Italicize titles of books, newspapers, movies, TV shows, games
|
|
36
|
-
- Full names on first mention, last names thereafter (first names in newsletters/social)
|
|
37
|
-
- Percentages: "7 percent" (numeral + spelled out)
|
|
38
|
-
- Numbers over 999 take commas: 1,000
|
|
39
|
-
- Punctuation outside parentheses (unless full sentence inside)
|
|
40
|
-
- Periods and commas inside quotation marks
|
|
41
|
-
- Single quotes for quotes within quotes
|
|
42
|
-
- Comma before quote if introduced; no comma if text leads directly into quote
|
|
43
|
-
- Use "earlier/later/previously" instead of "above/below"
|
|
44
|
-
- Use "more/less/fewer" instead of "over/under" for quantities
|
|
45
|
-
- Avoid slashes; use hyphens when needed
|
|
46
|
-
- Don't start sentences with "This" without clear antecedent
|
|
47
|
-
- Avoid starting with "We have" or "We get"
|
|
48
|
-
- Avoid clichés and jargon
|
|
49
|
-
- "Two times faster" not "2x" (except for the common "10x" trope)
|
|
50
|
-
- Use "$1 billion" not "one billion dollars"
|
|
51
|
-
- Identify people by company/title (except well-known figures like Mark Zuckerberg)
|
|
52
|
-
- Button text is always sentence case -- "Complete setup"
|
|
53
|
-
|
|
54
|
-
**Output Format:**
|
|
55
|
-
|
|
56
|
-
Provide your review as a numbered list of suggested edits, grouping related changes when logical. For each edit:
|
|
57
|
-
|
|
58
|
-
- Quote the original text
|
|
59
|
-
- Provide the corrected version
|
|
60
|
-
- Briefly explain which style rule applies
|
|
61
|
-
|
|
62
|
-
If the text is already compliant with the style guide, acknowledge this and highlight any particularly well-executed style choices.
|
|
63
|
-
|
|
64
|
-
Be thorough but constructive, focusing on helping the content shine while maintaining Every's professional standards.
|