gyoshu 0.4.18 → 0.4.19
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/package.json +1 -1
- package/src/gyoshu-manifest.json +1 -1
- package/src/index.ts +1 -2
package/package.json
CHANGED
package/src/gyoshu-manifest.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { readFileNoFollowSync, openNoFollowSync } from "./lib/atomic-write";
|
|
|
8
8
|
import { ensureDirSync, validatePathSegment } from "./lib/paths";
|
|
9
9
|
|
|
10
10
|
import manifest from "./gyoshu-manifest.json";
|
|
11
|
-
import { GyoshuPlugin as GyoshuHooks } from "./plugin/gyoshu-hooks";
|
|
12
11
|
|
|
13
12
|
const OPENCODE_CONFIG = path.join(homedir(), ".config", "opencode");
|
|
14
13
|
const GYOSHU_STATE_DIR = path.join(OPENCODE_CONFIG, ".gyoshu");
|
|
@@ -895,8 +894,8 @@ export const GyoshuPlugin: Plugin = async (ctx) => {
|
|
|
895
894
|
}
|
|
896
895
|
}
|
|
897
896
|
|
|
898
|
-
// Try to initialize hooks, return empty hooks on failure
|
|
899
897
|
try {
|
|
898
|
+
const { GyoshuPlugin: GyoshuHooks } = await import("./plugin/gyoshu-hooks");
|
|
900
899
|
const hooks = await GyoshuHooks(ctx);
|
|
901
900
|
return hooks || emptyHooks;
|
|
902
901
|
} catch (hooksError) {
|