oh-my-opencode 2.10.0 → 2.12.0

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,4 @@
1
+ import { type OhMyOpenCodeConfig } from "./config";
2
+ export declare function loadConfigFromPath(configPath: string, ctx: unknown): OhMyOpenCodeConfig | null;
3
+ export declare function mergeConfigs(base: OhMyOpenCodeConfig, override: OhMyOpenCodeConfig): OhMyOpenCodeConfig;
4
+ export declare function loadPluginConfig(directory: string, ctx: unknown): OhMyOpenCodeConfig;
@@ -0,0 +1,10 @@
1
+ import type { OhMyOpenCodeConfig } from "../config";
2
+ import type { ModelCacheState } from "../plugin-state";
3
+ export interface ConfigHandlerDeps {
4
+ ctx: {
5
+ directory: string;
6
+ };
7
+ pluginConfig: OhMyOpenCodeConfig;
8
+ modelCacheState: ModelCacheState;
9
+ }
10
+ export declare function createConfigHandler(deps: ConfigHandlerDeps): (config: Record<string, unknown>) => Promise<void>;
@@ -0,0 +1 @@
1
+ export { createConfigHandler, type ConfigHandlerDeps } from "./config-handler";
@@ -0,0 +1,6 @@
1
+ export interface ModelCacheState {
2
+ modelContextLimitsCache: Map<string, number>;
3
+ anthropicContext1MEnabled: boolean;
4
+ }
5
+ export declare function createModelCacheState(): ModelCacheState;
6
+ export declare function getModelLimit(state: ModelCacheState, providerID: string, modelID: string): number | undefined;
@@ -1,5 +1,5 @@
1
- export interface FrontmatterResult<T = Record<string, string>> {
1
+ export interface FrontmatterResult<T = Record<string, unknown>> {
2
2
  data: T;
3
3
  body: string;
4
4
  }
5
- export declare function parseFrontmatter<T = Record<string, string>>(content: string): FrontmatterResult<T>;
5
+ export declare function parseFrontmatter<T = Record<string, unknown>>(content: string): FrontmatterResult<T>;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "2.10.0",
3
+ "version": "2.12.0",
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",