gyoshu 0.4.18 → 0.4.20

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.20",
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) {
@@ -275,22 +275,22 @@ async function onSuccessfulContinuationSend(reportTitle: string): Promise<void>
275
275
  await saveState(state);
276
276
  }
277
277
 
278
- export function registerAutoLoop(state: AutoLoopState): void {
278
+ function registerAutoLoop(state: AutoLoopState): void {
279
279
  if (state.active) {
280
280
  activeAutoLoops.set(state.reportTitle, state);
281
281
  }
282
282
  }
283
283
 
284
- export function unregisterAutoLoop(reportTitle: string): void {
284
+ function unregisterAutoLoop(reportTitle: string): void {
285
285
  activeAutoLoops.delete(reportTitle);
286
286
  recentOutputBuffer.delete(reportTitle);
287
287
  }
288
288
 
289
- export function isAutoLoopActive(reportTitle: string): boolean {
289
+ function isAutoLoopActive(reportTitle: string): boolean {
290
290
  return activeAutoLoops.has(reportTitle);
291
291
  }
292
292
 
293
- export async function refreshAutoLoopState(reportTitle: string): Promise<void> {
293
+ async function refreshAutoLoopState(reportTitle: string): Promise<void> {
294
294
  const state = await loadState(reportTitle);
295
295
  if (state?.active) {
296
296
  activeAutoLoops.set(reportTitle, state);