oh-my-opencode 3.1.9 → 3.1.11
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/agents/momus.d.ts +1 -1
- package/dist/agents/sisyphus.d.ts +2 -0
- package/dist/cli/index.js +3560 -2329
- package/dist/config/schema.d.ts +14 -12
- package/dist/features/background-agent/manager.d.ts +1 -0
- package/dist/features/builtin-commands/templates/stop-continuation.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/sisyphus-tasks/types.d.ts +3 -3
- package/dist/hooks/claude-code-hooks/transcript.d.ts +0 -4
- package/dist/hooks/directory-agents-injector/storage.d.ts +1 -3
- package/dist/hooks/directory-readme-injector/storage.d.ts +1 -3
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/session-notification-utils.d.ts +6 -6
- package/dist/hooks/stop-continuation-guard/index.d.ts +16 -0
- package/dist/hooks/think-mode/switcher.d.ts +12 -0
- package/dist/hooks/todo-continuation-enforcer.d.ts +2 -0
- package/dist/index.js +16402 -3111
- package/dist/shared/binary-downloader.d.ts +10 -0
- package/dist/shared/index.d.ts +2 -1
- package/dist/shared/model-resolution-pipeline.d.ts +24 -0
- package/dist/shared/opencode-version.d.ts +0 -2
- package/dist/shared/session-injected-paths.d.ts +10 -0
- package/dist/shared/snake-case.d.ts +1 -0
- package/package.json +8 -8
- package/dist/hooks/compaction-context-injector/index.d.ts +0 -8
- package/dist/hooks/directory-agents-injector/types.d.ts +0 -5
- package/dist/hooks/directory-readme-injector/types.d.ts +0 -5
- package/dist/shared/case-insensitive.d.ts +0 -24
- /package/dist/{hooks/compaction-context-injector/index.test.d.ts → features/builtin-commands/templates/stop-continuation.test.d.ts} +0 -0
- /package/dist/{shared/case-insensitive.test.d.ts → hooks/stop-continuation-guard/index.test.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function getCachedBinaryPath(cacheDir: string, binaryName: string): string | null;
|
|
2
|
+
export declare function ensureCacheDir(cacheDir: string): void;
|
|
3
|
+
export declare function downloadArchive(downloadUrl: string, archivePath: string): Promise<void>;
|
|
4
|
+
export declare function extractTarGz(archivePath: string, destDir: string, options?: {
|
|
5
|
+
args?: string[];
|
|
6
|
+
cwd?: string;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
export declare function extractZipArchive(archivePath: string, destDir: string): Promise<void>;
|
|
9
|
+
export declare function cleanupArchive(archivePath: string): void;
|
|
10
|
+
export declare function ensureExecutable(binaryPath: string): void;
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./opencode-version";
|
|
|
20
20
|
export * from "./permission-compat";
|
|
21
21
|
export * from "./external-plugin-detector";
|
|
22
22
|
export * from "./zip-extractor";
|
|
23
|
+
export * from "./binary-downloader";
|
|
23
24
|
export * from "./agent-variant";
|
|
24
25
|
export * from "./session-cursor";
|
|
25
26
|
export * from "./shell-env";
|
|
@@ -27,9 +28,9 @@ export * from "./system-directive";
|
|
|
27
28
|
export * from "./agent-tool-restrictions";
|
|
28
29
|
export * from "./model-requirements";
|
|
29
30
|
export * from "./model-resolver";
|
|
31
|
+
export { resolveModelPipeline, type ModelResolutionRequest, type ModelResolutionResult as ModelResolutionPipelineResult, type ModelResolutionProvenance, } from "./model-resolution-pipeline";
|
|
30
32
|
export * from "./model-availability";
|
|
31
33
|
export * from "./connected-providers-cache";
|
|
32
|
-
export * from "./case-insensitive";
|
|
33
34
|
export * from "./session-utils";
|
|
34
35
|
export * from "./tmux";
|
|
35
36
|
export * from "./model-suggestion-retry";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FallbackEntry } from "./model-requirements";
|
|
2
|
+
export type ModelResolutionRequest = {
|
|
3
|
+
intent?: {
|
|
4
|
+
uiSelectedModel?: string;
|
|
5
|
+
userModel?: string;
|
|
6
|
+
categoryDefaultModel?: string;
|
|
7
|
+
};
|
|
8
|
+
constraints: {
|
|
9
|
+
availableModels: Set<string>;
|
|
10
|
+
};
|
|
11
|
+
policy?: {
|
|
12
|
+
fallbackChain?: FallbackEntry[];
|
|
13
|
+
systemDefaultModel?: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type ModelResolutionProvenance = "override" | "category-default" | "provider-fallback" | "system-default";
|
|
17
|
+
export type ModelResolutionResult = {
|
|
18
|
+
model: string;
|
|
19
|
+
provenance: ModelResolutionProvenance;
|
|
20
|
+
variant?: string;
|
|
21
|
+
attempted?: string[];
|
|
22
|
+
reason?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare function resolveModelPipeline(request: ModelResolutionRequest): ModelResolutionResult | undefined;
|
|
@@ -13,8 +13,6 @@ export declare const MINIMUM_OPENCODE_VERSION = "1.1.1";
|
|
|
13
13
|
export declare const OPENCODE_NATIVE_AGENTS_INJECTION_VERSION = "1.1.37";
|
|
14
14
|
export declare function parseVersion(version: string): number[];
|
|
15
15
|
export declare function compareVersions(a: string, b: string): -1 | 0 | 1;
|
|
16
|
-
export declare function isVersionGte(a: string, b: string): boolean;
|
|
17
|
-
export declare function isVersionLt(a: string, b: string): boolean;
|
|
18
16
|
export declare function getOpenCodeVersion(): string | null;
|
|
19
17
|
export declare function isOpenCodeVersionAtLeast(version: string): boolean;
|
|
20
18
|
export declare function resetVersionCache(): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface InjectedPathsData {
|
|
2
|
+
sessionID: string;
|
|
3
|
+
injectedPaths: string[];
|
|
4
|
+
updatedAt: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function createInjectedPathsStorage(storageDir: string): {
|
|
7
|
+
loadInjectedPaths: (sessionID: string) => Set<string>;
|
|
8
|
+
saveInjectedPaths: (sessionID: string, paths: Set<string>) => void;
|
|
9
|
+
clearInjectedPaths: (sessionID: string) => void;
|
|
10
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function camelToSnake(str: string): string;
|
|
2
2
|
export declare function snakeToCamel(str: string): string;
|
|
3
|
+
export declare function transformObjectKeys(obj: Record<string, unknown>, transformer: (key: string) => string, deep?: boolean): Record<string, unknown>;
|
|
3
4
|
export declare function objectToSnakeCase(obj: Record<string, unknown>, deep?: boolean): Record<string, unknown>;
|
|
4
5
|
export declare function objectToCamelCase(obj: Record<string, unknown>, deep?: boolean): Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.11",
|
|
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",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"typescript": "^5.7.3"
|
|
75
75
|
},
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"oh-my-opencode-darwin-arm64": "3.1.
|
|
78
|
-
"oh-my-opencode-darwin-x64": "3.1.
|
|
79
|
-
"oh-my-opencode-linux-arm64": "3.1.
|
|
80
|
-
"oh-my-opencode-linux-arm64-musl": "3.1.
|
|
81
|
-
"oh-my-opencode-linux-x64": "3.1.
|
|
82
|
-
"oh-my-opencode-linux-x64-musl": "3.1.
|
|
83
|
-
"oh-my-opencode-windows-x64": "3.1.
|
|
77
|
+
"oh-my-opencode-darwin-arm64": "3.1.11",
|
|
78
|
+
"oh-my-opencode-darwin-x64": "3.1.11",
|
|
79
|
+
"oh-my-opencode-linux-arm64": "3.1.11",
|
|
80
|
+
"oh-my-opencode-linux-arm64-musl": "3.1.11",
|
|
81
|
+
"oh-my-opencode-linux-x64": "3.1.11",
|
|
82
|
+
"oh-my-opencode-linux-x64-musl": "3.1.11",
|
|
83
|
+
"oh-my-opencode-windows-x64": "3.1.11"
|
|
84
84
|
},
|
|
85
85
|
"trustedDependencies": [
|
|
86
86
|
"@ast-grep/cli",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Case-insensitive lookup and comparison utilities for agent/config names.
|
|
3
|
-
* Used throughout the codebase to allow "Oracle", "oracle", "ORACLE" to work the same.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Find a value in an object using case-insensitive key matching.
|
|
7
|
-
* First tries exact match, then falls back to lowercase comparison.
|
|
8
|
-
*/
|
|
9
|
-
export declare function findCaseInsensitive<T>(obj: Record<string, T> | undefined, key: string): T | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Check if an array includes a value using case-insensitive comparison.
|
|
12
|
-
*/
|
|
13
|
-
export declare function includesCaseInsensitive(arr: string[], value: string): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Find an element in array using case-insensitive name matching.
|
|
16
|
-
* Useful for finding agents/categories by name.
|
|
17
|
-
*/
|
|
18
|
-
export declare function findByNameCaseInsensitive<T extends {
|
|
19
|
-
name: string;
|
|
20
|
-
}>(arr: T[], name: string): T | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Check if two strings are equal (case-insensitive).
|
|
23
|
-
*/
|
|
24
|
-
export declare function equalsIgnoreCase(a: string, b: string): boolean;
|
|
File without changes
|
/package/dist/{shared/case-insensitive.test.d.ts → hooks/stop-continuation-guard/index.test.d.ts}
RENAMED
|
File without changes
|