opencode-zellij 0.0.6 → 0.0.8

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/dist/index.d.mts CHANGED
@@ -1,6 +1,18 @@
1
1
  import { Plugin } from "@opencode-ai/plugin";
2
2
 
3
3
  //#region src/auto-update.d.ts
4
+ type ExecFileLike = (file: string, args: string[], options: {
5
+ cwd: string;
6
+ timeout?: number;
7
+ }) => Promise<{
8
+ stdout: string;
9
+ stderr: string;
10
+ }>;
11
+ interface CheckOptions {
12
+ importMetaUrl: string;
13
+ fetchImpl?: typeof fetch;
14
+ execImpl?: ExecFileLike;
15
+ }
4
16
  type UpdateResult = {
5
17
  type: 'skipped';
6
18
  reason: string;
@@ -17,6 +29,7 @@ type UpdateResult = {
17
29
  latestVersion: string;
18
30
  reason: string;
19
31
  };
32
+ declare function checkAndUpdate(options: CheckOptions): Promise<UpdateResult>;
20
33
  //#endregion
21
34
  //#region src/plugin.d.ts
22
35
  interface ToastClient {
@@ -32,7 +45,13 @@ interface ToastClient {
32
45
  };
33
46
  }
34
47
  declare function showUpdateToast(client: ToastClient, result: UpdateResult): void;
48
+ declare function startAutoUpdateCheck(client: ToastClient, importMetaUrl: string, check?: typeof checkAndUpdate): void;
49
+ interface ZellijPtyPluginDependencies {
50
+ importMetaUrl?: string | undefined;
51
+ startAutoUpdateCheck?: typeof startAutoUpdateCheck | undefined;
52
+ }
53
+ declare function createZellijPtyPlugin(dependencies?: ZellijPtyPluginDependencies): Plugin;
35
54
  declare const ZellijPtyPlugin: Plugin;
36
55
  //#endregion
37
- export { ToastClient, ZellijPtyPlugin, ZellijPtyPlugin as default, showUpdateToast };
56
+ export { ToastClient, ZellijPtyPlugin, ZellijPtyPlugin as default, ZellijPtyPluginDependencies, createZellijPtyPlugin, showUpdateToast, startAutoUpdateCheck };
38
57
  //# sourceMappingURL=index.d.mts.map