@syntesseraai/opencode-feature-factory 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @syntessera/opencode-feature-factory
1
+ # @syntesseraai/opencode-feature-factory
2
2
 
3
3
  OpenCode plugin that provides Feature Factory agents for structured software development workflows.
4
4
 
@@ -9,7 +9,7 @@ Add the plugin to your `opencode.json`:
9
9
  ```json
10
10
  {
11
11
  "$schema": "https://opencode.ai/config.json",
12
- "plugin": ["@syntessera/opencode-feature-factory"]
12
+ "plugin": ["@syntesseraai/opencode-feature-factory"]
13
13
  }
14
14
  ```
15
15
 
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@syntesseraai/opencode-feature-factory",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "description": "OpenCode plugin for Feature Factory agents - provides planning, implementation, review, testing, and validation agents",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
+ "main": "./src/index.ts",
9
+ "module": "./src/index.ts",
8
10
  "exports": {
9
- ".": "./src/index.ts"
11
+ ".": {
12
+ "import": "./src/index.ts",
13
+ "default": "./src/index.ts"
14
+ }
10
15
  },
11
16
  "files": [
12
17
  "src",
package/src/index.ts CHANGED
@@ -112,6 +112,11 @@ async function ensureAgentsInstalled(
112
112
  export const FeatureFactoryPlugin: Plugin = async ({ worktree, directory }) => {
113
113
  const rootDir = resolveRootDir({ worktree, directory });
114
114
 
115
+ // Skip if no valid directory (e.g., global config with no project)
116
+ if (!rootDir || rootDir === '' || rootDir === '/') {
117
+ return {};
118
+ }
119
+
115
120
  // Run initial sync on plugin load (silent - errors are swallowed)
116
121
  try {
117
122
  await ensureAgentsInstalled(rootDir);