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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gyoshu",
3
- "version": "0.4.18",
3
+ "version": "0.4.19",
4
4
  "description": "Scientific research agent extension for OpenCode - turns research goals into reproducible Jupyter notebooks",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gyoshu",
3
- "version": "0.4.18",
3
+ "version": "0.4.19",
4
4
  "description": "Scientific research agent extension for OpenCode",
5
5
  "files": {
6
6
  "agent": [
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) {