oh-my-opencode 2.2.1 → 2.3.1

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.
@@ -0,0 +1,7 @@
1
+ export type ConfigLoadError = {
2
+ path: string;
3
+ error: string;
4
+ };
5
+ export declare function getConfigLoadErrors(): ConfigLoadError[];
6
+ export declare function clearConfigLoadErrors(): void;
7
+ export declare function addConfigLoadError(error: ConfigLoadError): void;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns the user-level config directory based on the OS.
3
+ * - Linux/macOS: XDG_CONFIG_HOME or ~/.config
4
+ * - Windows: %APPDATA%
5
+ */
6
+ export declare function getUserConfigDir(): string;
7
+ /**
8
+ * Returns the full path to the user-level oh-my-opencode config file.
9
+ */
10
+ export declare function getUserConfigPath(): string;
11
+ /**
12
+ * Returns the full path to the project-level oh-my-opencode config file.
13
+ */
14
+ export declare function getProjectConfigPath(directory: string): string;
@@ -10,3 +10,5 @@ export * from "./hook-disabled";
10
10
  export * from "./deep-merge";
11
11
  export * from "./file-utils";
12
12
  export * from "./dynamic-truncator";
13
+ export * from "./config-path";
14
+ export * from "./config-errors";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "2.2.1",
3
+ "version": "2.3.1",
4
4
  "description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,12 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- export declare function createGrepOutputTruncatorHook(ctx: PluginInput): {
3
- "tool.execute.after": (input: {
4
- tool: string;
5
- sessionID: string;
6
- callID: string;
7
- }, output: {
8
- title: string;
9
- output: string;
10
- metadata: unknown;
11
- }) => Promise<void>;
12
- };