oh-my-opencode 2.12.1 → 2.12.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/README.ja.md +32 -7
- package/README.ko.md +32 -7
- package/README.md +17 -8
- package/README.zh-cn.md +32 -7
- package/dist/agents/sisyphus-prompt-builder.d.ts +1 -0
- package/dist/cli/config-manager.d.ts +9 -0
- package/dist/cli/index.js +185 -81
- package/dist/features/claude-code-command-loader/loader.d.ts +5 -0
- package/dist/features/context-injector/collector.d.ts +11 -0
- package/dist/features/context-injector/collector.test.d.ts +1 -0
- package/dist/features/context-injector/index.d.ts +3 -0
- package/dist/features/context-injector/injector.d.ts +39 -0
- package/dist/features/context-injector/injector.test.d.ts +1 -0
- package/dist/features/context-injector/types.d.ts +83 -0
- package/dist/features/opencode-skill-loader/async-loader.d.ts +6 -0
- package/dist/features/opencode-skill-loader/async-loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/blocking.d.ts +2 -0
- package/dist/features/opencode-skill-loader/blocking.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/discover-worker.d.ts +1 -0
- package/dist/features/opencode-skill-loader/loader.d.ts +5 -0
- package/dist/features/opencode-skill-loader/types.d.ts +6 -0
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
- package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/manager.d.ts +8 -0
- package/dist/hooks/ralph-loop/types.d.ts +2 -0
- package/dist/hooks/session-recovery/index.d.ts +2 -0
- package/dist/hooks/session-recovery/index.test.d.ts +1 -0
- package/dist/hooks/tool-output-truncator.test.d.ts +1 -0
- package/dist/index.js +1176 -465
- package/dist/shared/frontmatter.d.ts +2 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/opencode-config-dir.d.ts +19 -0
- package/dist/shared/opencode-config-dir.test.d.ts +1 -0
- package/dist/shared/opencode-version.d.ts +10 -0
- package/dist/shared/opencode-version.test.d.ts +1 -0
- package/dist/shared/permission-compat.d.ts +12 -0
- package/dist/shared/permission-compat.test.d.ts +1 -0
- package/dist/tools/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -39,3 +39,8 @@ export declare function discoverUserClaudeSkills(): LoadedSkill[];
|
|
|
39
39
|
export declare function discoverProjectClaudeSkills(): LoadedSkill[];
|
|
40
40
|
export declare function discoverOpencodeGlobalSkills(): LoadedSkill[];
|
|
41
41
|
export declare function discoverOpencodeProjectSkills(): LoadedSkill[];
|
|
42
|
+
export declare function discoverUserClaudeSkillsAsync(): Promise<LoadedSkill[]>;
|
|
43
|
+
export declare function discoverProjectClaudeSkillsAsync(): Promise<LoadedSkill[]>;
|
|
44
|
+
export declare function discoverOpencodeGlobalSkillsAsync(): Promise<LoadedSkill[]>;
|
|
45
|
+
export declare function discoverOpencodeProjectSkillsAsync(): Promise<LoadedSkill[]>;
|
|
46
|
+
export declare function discoverAllSkillsAsync(options?: DiscoverSkillsOptions): Promise<LoadedSkill[]>;
|
|
@@ -14,6 +14,11 @@ export interface SkillMetadata {
|
|
|
14
14
|
"allowed-tools"?: string;
|
|
15
15
|
mcp?: SkillMcpConfig;
|
|
16
16
|
}
|
|
17
|
+
export interface LazyContentLoader {
|
|
18
|
+
loaded: boolean;
|
|
19
|
+
content?: string;
|
|
20
|
+
load: () => Promise<string>;
|
|
21
|
+
}
|
|
17
22
|
export interface LoadedSkill {
|
|
18
23
|
name: string;
|
|
19
24
|
path?: string;
|
|
@@ -25,4 +30,5 @@ export interface LoadedSkill {
|
|
|
25
30
|
metadata?: Record<string, string>;
|
|
26
31
|
allowedTools?: string[];
|
|
27
32
|
mcpConfig?: SkillMcpConfig;
|
|
33
|
+
lazyContent?: LazyContentLoader;
|
|
28
34
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,11 +4,19 @@ import type { ClaudeCodeMcpServer } from "../claude-code-mcp-loader/types";
|
|
|
4
4
|
import type { SkillMcpClientInfo, SkillMcpServerContext } from "./types";
|
|
5
5
|
export declare class SkillMcpManager {
|
|
6
6
|
private clients;
|
|
7
|
+
private pendingConnections;
|
|
8
|
+
private cleanupRegistered;
|
|
9
|
+
private cleanupInterval;
|
|
10
|
+
private readonly IDLE_TIMEOUT;
|
|
7
11
|
private getClientKey;
|
|
12
|
+
private registerProcessCleanup;
|
|
8
13
|
getOrCreateClient(info: SkillMcpClientInfo, config: ClaudeCodeMcpServer): Promise<Client>;
|
|
9
14
|
private createClient;
|
|
10
15
|
disconnectSession(sessionID: string): Promise<void>;
|
|
11
16
|
disconnectAll(): Promise<void>;
|
|
17
|
+
private startCleanupTimer;
|
|
18
|
+
private stopCleanupTimer;
|
|
19
|
+
private cleanupIdleClients;
|
|
12
20
|
listTools(info: SkillMcpClientInfo, context: SkillMcpServerContext): Promise<Tool[]>;
|
|
13
21
|
listResources(info: SkillMcpClientInfo, context: SkillMcpServerContext): Promise<Resource[]>;
|
|
14
22
|
listPrompts(info: SkillMcpClientInfo, context: SkillMcpServerContext): Promise<Prompt[]>;
|
|
@@ -3,6 +3,7 @@ import type { ExperimentalConfig } from "../../config";
|
|
|
3
3
|
export interface SessionRecoveryOptions {
|
|
4
4
|
experimental?: ExperimentalConfig;
|
|
5
5
|
}
|
|
6
|
+
type RecoveryErrorType = "tool_result_missing" | "thinking_block_order" | "thinking_disabled_violation" | null;
|
|
6
7
|
interface MessageInfo {
|
|
7
8
|
id?: string;
|
|
8
9
|
role?: string;
|
|
@@ -10,6 +11,7 @@ interface MessageInfo {
|
|
|
10
11
|
parentID?: string;
|
|
11
12
|
error?: unknown;
|
|
12
13
|
}
|
|
14
|
+
export declare function detectErrorType(error: unknown): RecoveryErrorType;
|
|
13
15
|
export interface SessionRecoveryHook {
|
|
14
16
|
handleSessionRecovery: (info: MessageInfo) => Promise<boolean>;
|
|
15
17
|
isRecoverableError: (error: unknown) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|