oh-my-opencode 3.12.0 → 3.12.2
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/cli/index.js +203 -97
- package/dist/config/schema/background-task.d.ts +2 -2
- package/dist/config/schema/hooks.d.ts +1 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +2 -2
- package/dist/create-hooks.d.ts +1 -0
- package/dist/features/background-agent/constants.d.ts +2 -2
- package/dist/features/background-agent/loop-detector.d.ts +4 -5
- package/dist/features/background-agent/manager.d.ts +1 -0
- package/dist/features/background-agent/session-status-classifier.d.ts +2 -0
- package/dist/features/background-agent/types.d.ts +4 -4
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/todo-description-override/description.d.ts +1 -0
- package/dist/hooks/todo-description-override/hook.d.ts +8 -0
- package/dist/hooks/todo-description-override/index.d.ts +1 -0
- package/dist/index.js +520 -323
- package/dist/oh-my-opencode.schema.json +4 -6
- package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -1
- package/dist/shared/connected-providers-cache.d.ts +26 -29
- package/package.json +12 -12
|
@@ -3708,20 +3708,18 @@
|
|
|
3708
3708
|
"circuitBreaker": {
|
|
3709
3709
|
"type": "object",
|
|
3710
3710
|
"properties": {
|
|
3711
|
+
"enabled": {
|
|
3712
|
+
"type": "boolean"
|
|
3713
|
+
},
|
|
3711
3714
|
"maxToolCalls": {
|
|
3712
3715
|
"type": "integer",
|
|
3713
3716
|
"minimum": 10,
|
|
3714
3717
|
"maximum": 9007199254740991
|
|
3715
3718
|
},
|
|
3716
|
-
"
|
|
3719
|
+
"consecutiveThreshold": {
|
|
3717
3720
|
"type": "integer",
|
|
3718
3721
|
"minimum": 5,
|
|
3719
3722
|
"maximum": 9007199254740991
|
|
3720
|
-
},
|
|
3721
|
-
"repetitionThresholdPercent": {
|
|
3722
|
-
"type": "number",
|
|
3723
|
-
"exclusiveMinimum": 0,
|
|
3724
|
-
"maximum": 100
|
|
3725
3723
|
}
|
|
3726
3724
|
},
|
|
3727
3725
|
"additionalProperties": false
|
|
@@ -23,6 +23,7 @@ export declare function createCoreHooks(args: {
|
|
|
23
23
|
hashlineReadEnhancer: ReturnType<typeof import("../../hooks").createHashlineReadEnhancerHook> | null;
|
|
24
24
|
jsonErrorRecovery: ReturnType<typeof import("../../hooks").createJsonErrorRecoveryHook> | null;
|
|
25
25
|
readImageResizer: ReturnType<typeof import("../../hooks").createReadImageResizerHook> | null;
|
|
26
|
+
todoDescriptionOverride: ReturnType<typeof import("../../hooks").createTodoDescriptionOverrideHook> | null;
|
|
26
27
|
contextWindowMonitor: ReturnType<typeof import("../../hooks").createContextWindowMonitorHook> | null;
|
|
27
28
|
preemptiveCompaction: ReturnType<typeof import("../../hooks").createPreemptiveCompactionHook> | null;
|
|
28
29
|
sessionRecovery: ReturnType<typeof import("../../hooks").createSessionRecoveryHook> | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HookName, OhMyOpenCodeConfig } from "../../config";
|
|
2
2
|
import type { ModelCacheState } from "../../plugin-state";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
|
-
import { createCommentCheckerHooks, createToolOutputTruncatorHook, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createRulesInjectorHook, createTasksTodowriteDisablerHook, createWriteExistingFileGuardHook, createHashlineReadEnhancerHook, createReadImageResizerHook, createJsonErrorRecoveryHook } from "../../hooks";
|
|
4
|
+
import { createCommentCheckerHooks, createToolOutputTruncatorHook, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createRulesInjectorHook, createTasksTodowriteDisablerHook, createWriteExistingFileGuardHook, createHashlineReadEnhancerHook, createReadImageResizerHook, createJsonErrorRecoveryHook, createTodoDescriptionOverrideHook } from "../../hooks";
|
|
5
5
|
export type ToolGuardHooks = {
|
|
6
6
|
commentChecker: ReturnType<typeof createCommentCheckerHooks> | null;
|
|
7
7
|
toolOutputTruncator: ReturnType<typeof createToolOutputTruncatorHook> | null;
|
|
@@ -14,6 +14,7 @@ export type ToolGuardHooks = {
|
|
|
14
14
|
hashlineReadEnhancer: ReturnType<typeof createHashlineReadEnhancerHook> | null;
|
|
15
15
|
jsonErrorRecovery: ReturnType<typeof createJsonErrorRecoveryHook> | null;
|
|
16
16
|
readImageResizer: ReturnType<typeof createReadImageResizerHook> | null;
|
|
17
|
+
todoDescriptionOverride: ReturnType<typeof createTodoDescriptionOverrideHook> | null;
|
|
17
18
|
};
|
|
18
19
|
export declare function createToolGuardHooks(args: {
|
|
19
20
|
ctx: PluginContext;
|
|
@@ -10,36 +10,33 @@ interface ProviderModelsCache {
|
|
|
10
10
|
connected: string[];
|
|
11
11
|
updatedAt: string;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
13
|
+
export declare function createConnectedProvidersCacheStore(getCacheDir?: () => string): {
|
|
14
|
+
readConnectedProvidersCache: () => string[] | null;
|
|
15
|
+
hasConnectedProvidersCache: () => boolean;
|
|
16
|
+
readProviderModelsCache: () => ProviderModelsCache | null;
|
|
17
|
+
hasProviderModelsCache: () => boolean;
|
|
18
|
+
writeProviderModelsCache: (data: {
|
|
19
|
+
models: Record<string, string[]>;
|
|
20
|
+
connected: string[];
|
|
21
|
+
}) => void;
|
|
22
|
+
updateConnectedProvidersCache: (client: {
|
|
23
|
+
provider?: {
|
|
24
|
+
list?: () => Promise<{
|
|
25
|
+
data?: {
|
|
26
|
+
connected?: string[];
|
|
27
|
+
all?: Array<{
|
|
28
|
+
id: string;
|
|
29
|
+
models?: Record<string, unknown>;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
};
|
|
34
|
+
}) => Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
export declare const readConnectedProvidersCache: () => string[] | null, hasConnectedProvidersCache: () => boolean, readProviderModelsCache: () => ProviderModelsCache | null, hasProviderModelsCache: () => boolean, writeProviderModelsCache: (data: {
|
|
35
37
|
models: Record<string, string[]>;
|
|
36
38
|
connected: string[];
|
|
37
|
-
}):
|
|
38
|
-
/**
|
|
39
|
-
* Update the connected providers cache by fetching from the client.
|
|
40
|
-
* Also updates the provider-models cache with model lists per provider.
|
|
41
|
-
*/
|
|
42
|
-
export declare function updateConnectedProvidersCache(client: {
|
|
39
|
+
}) => void, updateConnectedProvidersCache: (client: {
|
|
43
40
|
provider?: {
|
|
44
41
|
list?: () => Promise<{
|
|
45
42
|
data?: {
|
|
@@ -51,5 +48,5 @@ export declare function updateConnectedProvidersCache(client: {
|
|
|
51
48
|
};
|
|
52
49
|
}>;
|
|
53
50
|
};
|
|
54
|
-
})
|
|
51
|
+
}) => Promise<void>;
|
|
55
52
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.2",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -76,17 +76,17 @@
|
|
|
76
76
|
"typescript": "^5.7.3"
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"oh-my-opencode-darwin-arm64": "3.12.
|
|
80
|
-
"oh-my-opencode-darwin-x64": "3.12.
|
|
81
|
-
"oh-my-opencode-darwin-x64-baseline": "3.12.
|
|
82
|
-
"oh-my-opencode-linux-arm64": "3.12.
|
|
83
|
-
"oh-my-opencode-linux-arm64-musl": "3.12.
|
|
84
|
-
"oh-my-opencode-linux-x64": "3.12.
|
|
85
|
-
"oh-my-opencode-linux-x64-baseline": "3.12.
|
|
86
|
-
"oh-my-opencode-linux-x64-musl": "3.12.
|
|
87
|
-
"oh-my-opencode-linux-x64-musl-baseline": "3.12.
|
|
88
|
-
"oh-my-opencode-windows-x64": "3.12.
|
|
89
|
-
"oh-my-opencode-windows-x64-baseline": "3.12.
|
|
79
|
+
"oh-my-opencode-darwin-arm64": "3.12.2",
|
|
80
|
+
"oh-my-opencode-darwin-x64": "3.12.2",
|
|
81
|
+
"oh-my-opencode-darwin-x64-baseline": "3.12.2",
|
|
82
|
+
"oh-my-opencode-linux-arm64": "3.12.2",
|
|
83
|
+
"oh-my-opencode-linux-arm64-musl": "3.12.2",
|
|
84
|
+
"oh-my-opencode-linux-x64": "3.12.2",
|
|
85
|
+
"oh-my-opencode-linux-x64-baseline": "3.12.2",
|
|
86
|
+
"oh-my-opencode-linux-x64-musl": "3.12.2",
|
|
87
|
+
"oh-my-opencode-linux-x64-musl-baseline": "3.12.2",
|
|
88
|
+
"oh-my-opencode-windows-x64": "3.12.2",
|
|
89
|
+
"oh-my-opencode-windows-x64-baseline": "3.12.2"
|
|
90
90
|
},
|
|
91
91
|
"overrides": {
|
|
92
92
|
"@opencode-ai/sdk": "^1.2.24"
|