oh-my-opencode 0.1.2 → 0.1.3
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/config/schema.d.ts
CHANGED
|
@@ -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";
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
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
|
|
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";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
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<
|
|
8
|
+
export declare const builtinMcps: Record<"websearch_exa" | "context7", {
|
|
8
9
|
type: "remote";
|
|
9
10
|
url: string;
|
|
10
11
|
enabled: boolean;
|