@syntesseraai/opencode-feature-factory 0.4.1 → 0.4.3
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/agents/building.md +9 -6
- package/bin/ff-deploy.js +3 -1
- package/package.json +1 -1
package/agents/building.md
CHANGED
|
@@ -76,18 +76,21 @@ At the start of EVERY building task:
|
|
|
76
76
|
|
|
77
77
|
To prevent conflicts and ensure a clean state, you MUST use git worktrees for your implementation:
|
|
78
78
|
|
|
79
|
-
1. **Create Worktree:** Before starting code modifications, create a dedicated worktree outside
|
|
79
|
+
1. **Create Worktree:** Before starting code modifications, create a dedicated worktree in a writable root (avoid `../` paths that may resolve outside CI workspace mounts):
|
|
80
80
|
```bash
|
|
81
|
-
|
|
81
|
+
WORKTREE_ROOT="${FF_WORKTREE_ROOT:-$PWD/.feature-factory/worktrees}"
|
|
82
|
+
mkdir -p "$WORKTREE_ROOT"
|
|
83
|
+
WORKTREE_PATH="$WORKTREE_ROOT/ff-build-{UUID}"
|
|
84
|
+
git worktree add "$WORKTREE_PATH" -b "feature/ff-build-{UUID}"
|
|
82
85
|
```
|
|
83
86
|
2. **Use the Worktree:**
|
|
84
|
-
- When using the `bash` tool, always set the `workdir` parameter to the absolute path
|
|
85
|
-
- When using `edit`, `write`, or `read` tools, ensure the `filePath` points to
|
|
87
|
+
- When using the `bash` tool, always set the `workdir` parameter to the absolute path in `$WORKTREE_PATH`.
|
|
88
|
+
- When using `edit`, `write`, or `read` tools, ensure the `filePath` points to files inside `$WORKTREE_PATH`.
|
|
86
89
|
3. **Commit & Push:** Commit your changes and push the branch from within the worktree.
|
|
87
90
|
4. **Cleanup:** After your work is pushed, remove the worktree:
|
|
88
91
|
```bash
|
|
89
|
-
git worktree remove
|
|
90
|
-
git branch -D feature/ff-build-{UUID}
|
|
92
|
+
git worktree remove "$WORKTREE_PATH" --force
|
|
93
|
+
git branch -D "feature/ff-build-{UUID}"
|
|
91
94
|
```
|
|
92
95
|
|
|
93
96
|
## File Management Tools
|
package/bin/ff-deploy.js
CHANGED
|
@@ -182,7 +182,9 @@ async function updateMCPConfig() {
|
|
|
182
182
|
|
|
183
183
|
async function deploy() {
|
|
184
184
|
if (isInteractive) {
|
|
185
|
-
|
|
185
|
+
const pkgContent = await fs.readFile(join(PACKAGE_ROOT, 'package.json'), 'utf8');
|
|
186
|
+
const pkgVersion = JSON.parse(pkgContent).version;
|
|
187
|
+
console.log(`🚀 Feature Factory OpenCode Plugin v${pkgVersion} - Deployment`);
|
|
186
188
|
console.log('================================================\n');
|
|
187
189
|
}
|
|
188
190
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@syntesseraai/opencode-feature-factory",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "OpenCode plugin for Feature Factory agents - provides sub-agents and skills for validation, review, security, and architecture assessment",
|
|
7
7
|
"license": "MIT",
|