oh-my-opencode 2.12.2 → 2.12.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.
Files changed (37) hide show
  1. package/README.ja.md +32 -7
  2. package/README.ko.md +32 -7
  3. package/README.md +17 -8
  4. package/README.zh-cn.md +32 -7
  5. package/dist/agents/sisyphus-prompt-builder.d.ts +1 -0
  6. package/dist/cli/config-manager.d.ts +9 -0
  7. package/dist/cli/index.js +185 -81
  8. package/dist/features/claude-code-command-loader/loader.d.ts +5 -0
  9. package/dist/features/context-injector/collector.d.ts +11 -0
  10. package/dist/features/context-injector/collector.test.d.ts +1 -0
  11. package/dist/features/context-injector/index.d.ts +3 -0
  12. package/dist/features/context-injector/injector.d.ts +39 -0
  13. package/dist/features/context-injector/injector.test.d.ts +1 -0
  14. package/dist/features/context-injector/types.d.ts +83 -0
  15. package/dist/features/opencode-skill-loader/async-loader.d.ts +6 -0
  16. package/dist/features/opencode-skill-loader/async-loader.test.d.ts +1 -0
  17. package/dist/features/opencode-skill-loader/blocking.d.ts +2 -0
  18. package/dist/features/opencode-skill-loader/blocking.test.d.ts +1 -0
  19. package/dist/features/opencode-skill-loader/discover-worker.d.ts +1 -0
  20. package/dist/features/opencode-skill-loader/loader.d.ts +5 -0
  21. package/dist/features/opencode-skill-loader/types.d.ts +6 -0
  22. package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
  23. package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +1 -0
  24. package/dist/features/skill-mcp-manager/manager.d.ts +8 -0
  25. package/dist/hooks/ralph-loop/types.d.ts +1 -0
  26. package/dist/hooks/tool-output-truncator.test.d.ts +1 -0
  27. package/dist/index.js +1145 -445
  28. package/dist/shared/frontmatter.d.ts +2 -0
  29. package/dist/shared/index.d.ts +3 -0
  30. package/dist/shared/opencode-config-dir.d.ts +19 -0
  31. package/dist/shared/opencode-config-dir.test.d.ts +1 -0
  32. package/dist/shared/opencode-version.d.ts +10 -0
  33. package/dist/shared/opencode-version.test.d.ts +1 -0
  34. package/dist/shared/permission-compat.d.ts +12 -0
  35. package/dist/shared/permission-compat.test.d.ts +1 -0
  36. package/dist/tools/index.d.ts +1 -0
  37. package/package.json +3 -3
@@ -1,5 +1,7 @@
1
1
  export interface FrontmatterResult<T = Record<string, unknown>> {
2
2
  data: T;
3
3
  body: string;
4
+ hadFrontmatter: boolean;
5
+ parseError: boolean;
4
6
  }
5
7
  export declare function parseFrontmatter<T = Record<string, unknown>>(content: string): FrontmatterResult<T>;
@@ -16,3 +16,6 @@ export * from "./config-errors";
16
16
  export * from "./claude-config-dir";
17
17
  export * from "./jsonc-parser";
18
18
  export * from "./migration";
19
+ export * from "./opencode-config-dir";
20
+ export * from "./opencode-version";
21
+ export * from "./permission-compat";
@@ -0,0 +1,19 @@
1
+ export type OpenCodeBinaryType = "opencode" | "opencode-desktop";
2
+ export interface OpenCodeConfigDirOptions {
3
+ binary: OpenCodeBinaryType;
4
+ version?: string | null;
5
+ checkExisting?: boolean;
6
+ }
7
+ export interface OpenCodeConfigPaths {
8
+ configDir: string;
9
+ configJson: string;
10
+ configJsonc: string;
11
+ packageJson: string;
12
+ omoConfig: string;
13
+ }
14
+ export declare const TAURI_APP_IDENTIFIER = "ai.opencode.desktop";
15
+ export declare const TAURI_APP_IDENTIFIER_DEV = "ai.opencode.desktop.dev";
16
+ export declare function isDevBuild(version: string | null | undefined): boolean;
17
+ export declare function getOpenCodeConfigDir(options: OpenCodeConfigDirOptions): string;
18
+ export declare function getOpenCodeConfigPaths(options: OpenCodeConfigDirOptions): OpenCodeConfigPaths;
19
+ export declare function detectExistingConfigDir(binary: OpenCodeBinaryType, version?: string | null): string | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const PERMISSION_BREAKING_VERSION = "1.1.1";
2
+ export declare function parseVersion(version: string): number[];
3
+ export declare function compareVersions(a: string, b: string): -1 | 0 | 1;
4
+ export declare function isVersionGte(a: string, b: string): boolean;
5
+ export declare function isVersionLt(a: string, b: string): boolean;
6
+ export declare function getOpenCodeVersion(): string | null;
7
+ export declare function supportsNewPermissionSystem(): boolean;
8
+ export declare function usesLegacyToolsSystem(): boolean;
9
+ export declare function resetVersionCache(): void;
10
+ export declare function setVersionCache(version: string | null): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export type PermissionValue = "ask" | "allow" | "deny";
2
+ export interface LegacyToolsFormat {
3
+ tools: Record<string, boolean>;
4
+ }
5
+ export interface NewPermissionFormat {
6
+ permission: Record<string, PermissionValue>;
7
+ }
8
+ export type VersionAwareRestrictions = LegacyToolsFormat | NewPermissionFormat;
9
+ export declare function createAgentToolRestrictions(denyTools: string[]): VersionAwareRestrictions;
10
+ export declare function migrateToolsToPermission(tools: Record<string, boolean>): Record<string, PermissionValue>;
11
+ export declare function migratePermissionToTools(permission: Record<string, PermissionValue>): Record<string, boolean>;
12
+ export declare function migrateAgentConfig(config: Record<string, unknown>): Record<string, unknown>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ export { sessionExists } from "./session-manager/storage";
1
2
  export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash";
2
3
  export { createSkillTool } from "./skill";
3
4
  export { getTmuxPath } from "./interactive-bash/utils";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "2.12.2",
3
+ "version": "2.12.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",
@@ -56,8 +56,8 @@
56
56
  "@code-yeongyu/comment-checker": "^0.6.1",
57
57
  "@modelcontextprotocol/sdk": "^1.25.1",
58
58
  "@openauthjs/openauth": "^0.4.3",
59
- "@opencode-ai/plugin": "^1.0.162",
60
- "@opencode-ai/sdk": "^1.0.162",
59
+ "@opencode-ai/plugin": "^1.1.1",
60
+ "@opencode-ai/sdk": "^1.1.1",
61
61
  "commander": "^14.0.2",
62
62
  "hono": "^4.10.4",
63
63
  "js-yaml": "^4.1.1",