oh-my-opencode 0.1.2 → 0.1.4

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.
@@ -6,10 +6,6 @@ export declare const AgentNameSchema: z.ZodEnum<{
6
6
  "frontend-ui-ux-engineer": "frontend-ui-ux-engineer";
7
7
  "document-writer": "document-writer";
8
8
  }>;
9
- export declare const McpNameSchema: z.ZodEnum<{
10
- websearch_exa: "websearch_exa";
11
- context7: "context7";
12
- }>;
13
9
  export declare const AgentOverrideConfigSchema: z.ZodObject<{
14
10
  model: z.ZodOptional<z.ZodString>;
15
11
  temperature: z.ZodOptional<z.ZodNumber>;
@@ -177,5 +173,5 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
177
173
  export type OhMyOpenCodeConfig = z.infer<typeof OhMyOpenCodeConfigSchema>;
178
174
  export type AgentOverrideConfig = z.infer<typeof AgentOverrideConfigSchema>;
179
175
  export type AgentOverrides = z.infer<typeof AgentOverridesSchema>;
180
- export type McpName = z.infer<typeof McpNameSchema>;
181
176
  export type AgentName = z.infer<typeof AgentNameSchema>;
177
+ export { McpNameSchema, type McpName } from "../mcp/types";
@@ -16,8 +16,3 @@ export declare function createCommentCheckerHooks(): {
16
16
  metadata: unknown;
17
17
  }) => Promise<void>;
18
18
  };
19
- export * from "./types";
20
- export * from "./constants";
21
- export * from "./detector";
22
- export * from "./filters";
23
- export * from "./output";
@@ -1,5 +1,5 @@
1
- export * from "./todo-continuation-enforcer";
2
- export * from "./context-window-monitor";
3
- export * from "./session-notification";
4
- export * from "./session-recovery";
5
- export * from "./comment-checker";
1
+ export { createTodoContinuationEnforcer } from "./todo-continuation-enforcer";
2
+ export { createContextWindowMonitorHook } from "./context-window-monitor";
3
+ export { createSessionNotification } from "./session-notification";
4
+ export { createSessionRecoveryHook } from "./session-recovery";
5
+ export { createCommentCheckerHooks } from "./comment-checker";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Session Recovery - Message State Error Recovery
3
3
  *
4
- * Handles THREE specific scenarios:
4
+ * Handles FOUR specific scenarios:
5
5
  * 1. tool_use block exists without tool_result
6
6
  * - Recovery: inject tool_result with "cancelled" content
7
7
  *
@@ -10,6 +10,9 @@
10
10
  *
11
11
  * 3. Thinking disabled but message contains thinking blocks
12
12
  * - Recovery: strip thinking/redacted_thinking blocks
13
+ *
14
+ * 4. Empty content message (non-empty content required)
15
+ * - Recovery: delete the empty message via revert
13
16
  */
14
17
  import type { PluginInput } from "@opencode-ai/plugin";
15
18
  interface MessageInfo {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import type { Plugin } from "@opencode-ai/plugin";
2
2
  declare const OhMyOpenCodePlugin: Plugin;
3
3
  export default OhMyOpenCodePlugin;
4
- export { OhMyOpenCodeConfigSchema } from "./config";
5
4
  export type { OhMyOpenCodeConfig, AgentName, AgentOverrideConfig, AgentOverrides, McpName, } from "./config";
@@ -1,10 +1,11 @@
1
- export type McpName = "websearch_exa" | "context7";
1
+ import type { McpName } from "./types";
2
+ export { McpNameSchema, type McpName } from "./types";
2
3
  export declare function createBuiltinMcps(disabledMcps?: McpName[]): Record<string, {
3
4
  type: "remote";
4
5
  url: string;
5
6
  enabled: boolean;
6
7
  }>;
7
- export declare const builtinMcps: Record<McpName, {
8
+ export declare const builtinMcps: Record<"websearch_exa" | "context7", {
8
9
  type: "remote";
9
10
  url: string;
10
11
  enabled: boolean;
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ export declare const McpNameSchema: z.ZodEnum<{
3
+ websearch_exa: "websearch_exa";
4
+ context7: "context7";
5
+ }>;
6
+ export type McpName = z.infer<typeof McpNameSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
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",