oh-my-opencode 4.2.1 → 4.2.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 +7 -0
- package/README.ko.md +7 -0
- package/README.md +13 -0
- package/README.ru.md +7 -0
- package/README.zh-cn.md +7 -0
- package/dist/cli/doctor/checks/tools-lsp.d.ts +6 -1
- package/dist/cli/index.js +2367 -1240
- package/dist/features/background-agent/parent-wake-notifier.d.ts +1 -1
- package/dist/hooks/comment-checker/apply-patch-edits.d.ts +2 -0
- package/dist/hooks/comment-checker/hook.d.ts +1 -0
- package/dist/hooks/comment-checker/initialization-gate.d.ts +1 -0
- package/dist/hooks/directory-agents-injector/finder.d.ts +4 -2
- package/dist/hooks/directory-agents-injector/injector.d.ts +2 -0
- package/dist/hooks/rules-injector/injector.d.ts +7 -3
- package/dist/hooks/rules-injector/matcher.d.ts +3 -24
- package/dist/hooks/rules-injector/parser.d.ts +2 -18
- package/dist/hooks/rules-injector/project-root-finder.d.ts +1 -13
- package/dist/hooks/rules-injector/rule-distance.d.ts +1 -10
- package/dist/hooks/rules-injector/rule-file-finder.d.ts +2 -6
- package/dist/hooks/rules-injector/rule-file-scanner.d.ts +2 -13
- package/dist/hooks/rules-injector/rule-scan-cache.d.ts +2 -13
- package/dist/hooks/rules-injector/transcript-hydration.d.ts +18 -0
- package/dist/hooks/rules-injector/types.d.ts +2 -38
- package/dist/hooks/runtime-fallback/types.d.ts +1 -0
- package/dist/hooks/team-session-events/team-member-error-handler.d.ts +14 -1
- package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +0 -21
- package/dist/index.js +4094 -3170
- package/dist/mcp/ast-grep.d.ts +9 -0
- package/dist/mcp/index.d.ts +4 -1
- package/dist/mcp/types.d.ts +1 -0
- package/dist/plugin/tool-execute-after.d.ts +15 -9
- package/dist/plugin/tool-registry.d.ts +1 -2
- package/dist/plugin-handlers/mcp-config-handler.d.ts +3 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/prompt-async-gate.d.ts +13 -1
- package/dist/shared/prompt-failure-classifier.d.ts +9 -0
- package/dist/shared/prompt-timeout-context.d.ts +1 -0
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +1 -2
- package/dist/tools/index.d.ts +0 -1
- package/package.json +38 -28
- package/packages/ast-grep-mcp/dist/cli.js +861 -0
- package/packages/lsp-tools-mcp/dist/cli.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/cli.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.js +1 -2
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.d.ts +1 -10
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.js +55 -10
- package/packages/lsp-tools-mcp/dist/lsp/connection.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/connection.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/constants.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/constants.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/formatters.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/formatters.js +7 -10
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.js +10 -11
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/manager.d.ts +1 -3
- package/packages/lsp-tools-mcp/dist/lsp/manager.js +6 -23
- package/packages/lsp-tools-mcp/dist/lsp/process-signal-cleanup.d.ts +1 -0
- package/packages/lsp-tools-mcp/dist/lsp/process-signal-cleanup.js +17 -0
- package/packages/lsp-tools-mcp/dist/lsp/process.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/process.js +41 -12
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.js +3 -4
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.js +18 -7
- package/packages/lsp-tools-mcp/dist/lsp/transport.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/transport.js +20 -11
- package/packages/lsp-tools-mcp/dist/lsp/types.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/types.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/utils.d.ts +0 -2
- package/packages/lsp-tools-mcp/dist/lsp/utils.js +0 -8
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.js +0 -1
- package/packages/lsp-tools-mcp/dist/mcp.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/mcp.js +14 -14
- package/packages/lsp-tools-mcp/dist/tools.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/tools.js +21 -14
- package/dist/tools/ast-grep/cli-binary-path-resolution.d.ts +0 -5
- package/dist/tools/ast-grep/cli.d.ts +0 -12
- package/dist/tools/ast-grep/constants.d.ts +0 -5
- package/dist/tools/ast-grep/downloader.d.ts +0 -5
- package/dist/tools/ast-grep/environment-check.d.ts +0 -20
- package/dist/tools/ast-grep/index.d.ts +0 -5
- package/dist/tools/ast-grep/language-support.d.ts +0 -6
- package/dist/tools/ast-grep/pattern-hints.d.ts +0 -4
- package/dist/tools/ast-grep/process-output-timeout.d.ts +0 -12
- package/dist/tools/ast-grep/result-formatter.d.ts +0 -5
- package/dist/tools/ast-grep/sg-cli-path.d.ts +0 -3
- package/dist/tools/ast-grep/sg-compact-json-output.d.ts +0 -2
- package/dist/tools/ast-grep/tool-descriptions.d.ts +0 -3
- package/dist/tools/ast-grep/tools.d.ts +0 -3
- package/dist/tools/ast-grep/types.d.ts +0 -58
- package/packages/lsp-tools-mcp/dist/cli.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/cli.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/connection.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/connection.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/constants.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/constants.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/formatters.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/formatters.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/manager.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/manager.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/process.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/process.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/transport.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/transport.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/types.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/types.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/utils.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/utils.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/mcp.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/mcp.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/tools.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/tools.js.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LocalMcpConfig } from "./lsp";
|
|
2
|
+
type AstGrepMcpConfigOptions = {
|
|
3
|
+
readonly cwd?: string;
|
|
4
|
+
readonly disabledTools?: readonly string[];
|
|
5
|
+
readonly moduleUrl?: string;
|
|
6
|
+
readonly exists?: (path: string) => boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function createAstGrepMcpConfig(options?: AstGrepMcpConfigOptions): LocalMcpConfig;
|
|
9
|
+
export {};
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -9,4 +9,7 @@ type RemoteMcpConfig = {
|
|
|
9
9
|
oauth?: false;
|
|
10
10
|
};
|
|
11
11
|
type BuiltinMcpConfig = RemoteMcpConfig | LocalMcpConfig;
|
|
12
|
-
|
|
12
|
+
type BuiltinMcpOptions = {
|
|
13
|
+
readonly cwd?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function createBuiltinMcps(disabledMcps?: string[], config?: OhMyOpenCodeConfig, options?: BuiltinMcpOptions): Record<string, BuiltinMcpConfig>;
|
package/dist/mcp/types.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import type { CreatedHooks } from "../create-hooks";
|
|
2
2
|
import type { PluginContext } from "./types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
3
|
+
type ToolExecuteAfterInput = {
|
|
4
|
+
readonly tool: string;
|
|
5
|
+
readonly sessionID: string;
|
|
6
|
+
readonly callID?: string;
|
|
7
|
+
readonly callId?: string;
|
|
8
|
+
readonly call_id?: string;
|
|
9
|
+
readonly args?: Record<string, unknown>;
|
|
10
|
+
};
|
|
11
|
+
type ToolExecuteAfterOutput = {
|
|
11
12
|
title: string;
|
|
12
13
|
output: string;
|
|
13
14
|
metadata: Record<string, unknown>;
|
|
14
|
-
}
|
|
15
|
+
};
|
|
16
|
+
export declare function createToolExecuteAfterHandler(args: {
|
|
17
|
+
ctx: PluginContext;
|
|
18
|
+
hooks: CreatedHooks;
|
|
19
|
+
}): (input: ToolExecuteAfterInput, output: ToolExecuteAfterOutput | undefined) => Promise<void>;
|
|
20
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { createTeamSendMessageTool } from "../features/team-mode/tools/messaging
|
|
|
5
5
|
import { createTeamListTool, createTeamStatusTool } from "../features/team-mode/tools/query";
|
|
6
6
|
import { createTeamTaskCreateTool, createTeamTaskGetTool, createTeamTaskListTool, createTeamTaskUpdateTool } from "../features/team-mode/tools/tasks";
|
|
7
7
|
import type { PluginContext, ToolsRecord } from "./types";
|
|
8
|
-
import { createBackgroundTools, createCallOmoAgent, createLookAt, createSkillMcpTool, createSkillTool, createGrepTools, createGlobTools,
|
|
8
|
+
import { createBackgroundTools, createCallOmoAgent, createLookAt, createSkillMcpTool, createSkillTool, createGrepTools, createGlobTools, createSessionManagerTools, createDelegateTask, discoverCommandsSync, interactive_bash, createTaskCreateTool, createTaskGetTool, createTaskList, createTaskUpdateTool, createHashlineEditTool } from "../tools";
|
|
9
9
|
import type { Managers } from "../create-managers";
|
|
10
10
|
import type { SkillContext } from "./skill-context";
|
|
11
11
|
type ToolRegistryFactories = {
|
|
@@ -16,7 +16,6 @@ type ToolRegistryFactories = {
|
|
|
16
16
|
createSkillTool: typeof createSkillTool;
|
|
17
17
|
createGrepTools: typeof createGrepTools;
|
|
18
18
|
createGlobTools: typeof createGlobTools;
|
|
19
|
-
createAstGrepTools: typeof createAstGrepTools;
|
|
20
19
|
createSessionManagerTools: typeof createSessionManagerTools;
|
|
21
20
|
createDelegateTask: typeof createDelegateTask;
|
|
22
21
|
discoverCommandsSync: typeof discoverCommandsSync;
|
|
@@ -2,6 +2,9 @@ import type { OhMyOpenCodeConfig } from "../config";
|
|
|
2
2
|
import type { PluginComponents } from "./plugin-components-loader";
|
|
3
3
|
export declare function applyMcpConfig(params: {
|
|
4
4
|
config: Record<string, unknown>;
|
|
5
|
+
ctx: {
|
|
6
|
+
directory: string;
|
|
7
|
+
};
|
|
5
8
|
pluginConfig: OhMyOpenCodeConfig;
|
|
6
9
|
pluginComponents: PluginComponents;
|
|
7
10
|
}): Promise<void>;
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export * from "./record-type-guard";
|
|
|
65
65
|
export * from "./session-directory-resolver";
|
|
66
66
|
export * from "./session-route";
|
|
67
67
|
export * from "./prompt-tools";
|
|
68
|
+
export * from "./prompt-failure-classifier";
|
|
68
69
|
export * from "./compaction-marker";
|
|
69
70
|
export * from "./internal-initiator-marker";
|
|
70
71
|
export * from "./plugin-command-discovery";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const DEFAULT_PROMPT_ASYNC_POST_DISPATCH_HOLD_MS =
|
|
1
|
+
export declare const DEFAULT_PROMPT_ASYNC_POST_DISPATCH_HOLD_MS = 2000;
|
|
2
2
|
export declare const DEFAULT_PROMPT_DISPATCH_TIMEOUT_MS = 30000;
|
|
3
3
|
export declare const DEFAULT_PROMPT_GATE_MESSAGES_FETCH_TIMEOUT_MS = 5000;
|
|
4
|
+
export declare const DEFAULT_PROMPT_QUEUE_RETRY_MS = 250;
|
|
4
5
|
type PromptAsyncInput = {
|
|
5
6
|
path?: {
|
|
6
7
|
id?: string;
|
|
@@ -39,10 +40,15 @@ type PromptClient<TInput> = {
|
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
42
|
export type InternalPromptDispatchMode = "async" | "sync";
|
|
43
|
+
export type InternalPromptQueueBehavior = "enqueue" | "defer";
|
|
42
44
|
type InternalPromptDispatchCommonArgs<TInput> = {
|
|
43
45
|
sessionID: string;
|
|
44
46
|
input: TInput;
|
|
45
47
|
source: string;
|
|
48
|
+
dedupeKey?: string;
|
|
49
|
+
queueBehavior?: InternalPromptQueueBehavior;
|
|
50
|
+
queue?: boolean;
|
|
51
|
+
queueRetryMs?: number;
|
|
46
52
|
settleMs?: number;
|
|
47
53
|
postDispatchHoldMs?: number;
|
|
48
54
|
dispatchTimeoutMs?: number;
|
|
@@ -59,6 +65,10 @@ export type InternalPromptDispatchArgs<TInput = PromptAsyncInput> = InternalProm
|
|
|
59
65
|
export type InternalPromptDispatchResult = {
|
|
60
66
|
status: "dispatched";
|
|
61
67
|
response: unknown;
|
|
68
|
+
} | {
|
|
69
|
+
status: "queued";
|
|
70
|
+
queuedBy: string;
|
|
71
|
+
position: number;
|
|
62
72
|
} | {
|
|
63
73
|
status: "active";
|
|
64
74
|
} | {
|
|
@@ -69,6 +79,7 @@ export type InternalPromptDispatchResult = {
|
|
|
69
79
|
} | {
|
|
70
80
|
status: "failed";
|
|
71
81
|
error: unknown;
|
|
82
|
+
dispatchAttempted: boolean;
|
|
72
83
|
};
|
|
73
84
|
export type PromptAsyncGateResult = InternalPromptDispatchResult;
|
|
74
85
|
type PromptAsyncReservationReleaseOptions = {
|
|
@@ -78,5 +89,6 @@ type PromptAsyncReservationReleaseOptions = {
|
|
|
78
89
|
export declare function _setPromptGateMessagesFetchTimeoutMsForTesting(value: number | undefined): void;
|
|
79
90
|
export declare function dispatchInternalPrompt<TInput = PromptAsyncInput>(args: InternalPromptDispatchArgs<TInput>): Promise<InternalPromptDispatchResult>;
|
|
80
91
|
export declare function releaseAllPromptAsyncReservationsForTesting(): void;
|
|
92
|
+
export declare function isInternalPromptDispatchAccepted(result: InternalPromptDispatchResult): boolean;
|
|
81
93
|
export declare function releasePromptAsyncReservation(sessionID: string, source: string, options?: PromptAsyncReservationReleaseOptions): boolean;
|
|
82
94
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function extractPromptFailureMessage(error: unknown): string;
|
|
2
|
+
export declare function isAmbiguousPromptDispatchFailure(error: unknown): boolean;
|
|
3
|
+
type PromptDispatchFailureResultLike = {
|
|
4
|
+
status: "failed";
|
|
5
|
+
error: unknown;
|
|
6
|
+
dispatchAttempted?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function isAmbiguousPostDispatchPromptFailure(result: PromptDispatchFailureResultLike): boolean;
|
|
9
|
+
export {};
|
|
@@ -3,6 +3,7 @@ export interface PromptTimeoutArgs {
|
|
|
3
3
|
}
|
|
4
4
|
export interface PromptRetryOptions {
|
|
5
5
|
timeoutMs?: number;
|
|
6
|
+
queueBehavior?: "enqueue" | "defer";
|
|
6
7
|
}
|
|
7
8
|
export declare const PROMPT_TIMEOUT_MS = 120000;
|
|
8
9
|
export declare function createPromptTimeoutContext(args: PromptTimeoutArgs, timeoutMs: number): {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { SisyphusAgentConfig } from "../../config/schema";
|
|
2
|
-
import { promptSyncWithModelSuggestionRetry
|
|
2
|
+
import { promptSyncWithModelSuggestionRetry } from "../../shared/model-suggestion-retry";
|
|
3
3
|
import type { DelegatedModelConfig, DelegateTaskArgs, OpencodeClient } from "./types";
|
|
4
4
|
type SendSyncPromptDeps = {
|
|
5
|
-
promptWithModelSuggestionRetry: typeof promptWithModelSuggestionRetry;
|
|
6
5
|
promptSyncWithModelSuggestionRetry: typeof promptSyncWithModelSuggestionRetry;
|
|
7
6
|
};
|
|
8
7
|
export declare function buildSyncPromptTools(agentToUse: string): Record<string, boolean>;
|
package/dist/tools/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
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",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"workspaces": [
|
|
9
|
+
"packages/rules-core",
|
|
10
|
+
"packages/ast-grep-mcp"
|
|
11
|
+
],
|
|
8
12
|
"bin": {
|
|
9
13
|
"oh-my-opencode": "bin/oh-my-opencode.js",
|
|
10
14
|
"oh-my-openagent": "bin/oh-my-opencode.js"
|
|
@@ -13,7 +17,8 @@
|
|
|
13
17
|
"dist",
|
|
14
18
|
"bin",
|
|
15
19
|
"postinstall.mjs",
|
|
16
|
-
"packages/lsp-tools-mcp/dist"
|
|
20
|
+
"packages/lsp-tools-mcp/dist",
|
|
21
|
+
"packages/ast-grep-mcp/dist"
|
|
17
22
|
],
|
|
18
23
|
"exports": {
|
|
19
24
|
".": {
|
|
@@ -23,7 +28,7 @@
|
|
|
23
28
|
"./schema.json": "./dist/oh-my-opencode.schema.json"
|
|
24
29
|
},
|
|
25
30
|
"scripts": {
|
|
26
|
-
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external zod && bun run build:node-require-shim && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
|
|
31
|
+
"build": "bun run build:ast-grep-mcp && bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external zod && bun run build:node-require-shim && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
|
|
27
32
|
"build:lsp-tools-mcp": "npm --prefix packages/lsp-tools-mcp ci && npm --prefix packages/lsp-tools-mcp run build",
|
|
28
33
|
"build:node-require-shim": "bun run script/patch-node-require-shim.ts",
|
|
29
34
|
"build:all": "bun run build && bun run build:binaries",
|
|
@@ -35,9 +40,11 @@
|
|
|
35
40
|
"postinstall": "node postinstall.mjs",
|
|
36
41
|
"prepublishOnly": "bun run clean && bun run build:lsp-tools-mcp && bun run build",
|
|
37
42
|
"test:model-capabilities": "bun test src/shared/model-capability-aliases.test.ts src/shared/model-capability-guardrails.test.ts src/shared/model-capabilities.test.ts src/cli/doctor/checks/model-resolution.test.ts --bail",
|
|
38
|
-
"typecheck": "tsgo --noEmit",
|
|
43
|
+
"typecheck": "tsgo --noEmit && bun run typecheck:packages",
|
|
44
|
+
"typecheck:packages": "tsgo --noEmit -p packages/rules-core/tsconfig.json && tsgo --noEmit -p packages/ast-grep-mcp/tsconfig.json",
|
|
39
45
|
"typecheck:script": "tsgo --noEmit -p script/tsconfig.json",
|
|
40
|
-
"test": "bun test"
|
|
46
|
+
"test": "bun test",
|
|
47
|
+
"build:ast-grep-mcp": "bun run --cwd packages/ast-grep-mcp build"
|
|
41
48
|
},
|
|
42
49
|
"keywords": [
|
|
43
50
|
"opencode",
|
|
@@ -59,43 +66,46 @@
|
|
|
59
66
|
},
|
|
60
67
|
"homepage": "https://github.com/code-yeongyu/oh-my-openagent#readme",
|
|
61
68
|
"dependencies": {
|
|
62
|
-
"@ast-grep/cli": "^0.
|
|
63
|
-
"@ast-grep/napi": "^0.
|
|
64
|
-
"@clack/prompts": "^
|
|
65
|
-
"@code-yeongyu/comment-checker": "^0.
|
|
69
|
+
"@ast-grep/cli": "^0.42.2",
|
|
70
|
+
"@ast-grep/napi": "^0.42.2",
|
|
71
|
+
"@clack/prompts": "^1.4.0",
|
|
72
|
+
"@code-yeongyu/comment-checker": "^0.8.0",
|
|
66
73
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
67
|
-
"@opencode-ai/plugin": "^1.4
|
|
68
|
-
"@opencode-ai/sdk": "^1.4
|
|
74
|
+
"@opencode-ai/plugin": "^1.15.4",
|
|
75
|
+
"@opencode-ai/sdk": "^1.15.4",
|
|
69
76
|
"commander": "^14.0.3",
|
|
70
77
|
"detect-libc": "^2.1.2",
|
|
71
|
-
"diff": "^
|
|
78
|
+
"diff": "^9.0.0",
|
|
79
|
+
"effect": "4.0.0-beta.65",
|
|
72
80
|
"js-yaml": "^4.1.1",
|
|
73
81
|
"jsonc-parser": "^3.3.1",
|
|
74
82
|
"picocolors": "^1.1.1",
|
|
75
83
|
"picomatch": "^4.0.4",
|
|
76
|
-
"posthog-node": "^5.34.
|
|
84
|
+
"posthog-node": "^5.34.3",
|
|
77
85
|
"vscode-jsonrpc": "^8.2.1"
|
|
78
86
|
},
|
|
79
87
|
"devDependencies": {
|
|
80
|
-
"@
|
|
88
|
+
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
89
|
+
"@oh-my-opencode/rules-core": "workspace:*",
|
|
90
|
+
"@typescript/native-preview": "7.0.0-dev.20260518.1",
|
|
81
91
|
"@types/js-yaml": "^4.0.9",
|
|
82
|
-
"@types/picomatch": "^
|
|
83
|
-
"bun-types": "1.3.
|
|
84
|
-
"typescript": "^
|
|
92
|
+
"@types/picomatch": "^4.0.3",
|
|
93
|
+
"bun-types": "1.3.14",
|
|
94
|
+
"typescript": "^6.0.3",
|
|
85
95
|
"zod": "^4.4.3"
|
|
86
96
|
},
|
|
87
97
|
"optionalDependencies": {
|
|
88
|
-
"oh-my-opencode-darwin-arm64": "4.2.
|
|
89
|
-
"oh-my-opencode-darwin-x64": "4.2.
|
|
90
|
-
"oh-my-opencode-darwin-x64-baseline": "4.2.
|
|
91
|
-
"oh-my-opencode-linux-arm64": "4.2.
|
|
92
|
-
"oh-my-opencode-linux-arm64-musl": "4.2.
|
|
93
|
-
"oh-my-opencode-linux-x64": "4.2.
|
|
94
|
-
"oh-my-opencode-linux-x64-baseline": "4.2.
|
|
95
|
-
"oh-my-opencode-linux-x64-musl": "4.2.
|
|
96
|
-
"oh-my-opencode-linux-x64-musl-baseline": "4.2.
|
|
97
|
-
"oh-my-opencode-windows-x64": "4.2.
|
|
98
|
-
"oh-my-opencode-windows-x64-baseline": "4.2.
|
|
98
|
+
"oh-my-opencode-darwin-arm64": "4.2.3",
|
|
99
|
+
"oh-my-opencode-darwin-x64": "4.2.3",
|
|
100
|
+
"oh-my-opencode-darwin-x64-baseline": "4.2.3",
|
|
101
|
+
"oh-my-opencode-linux-arm64": "4.2.3",
|
|
102
|
+
"oh-my-opencode-linux-arm64-musl": "4.2.3",
|
|
103
|
+
"oh-my-opencode-linux-x64": "4.2.3",
|
|
104
|
+
"oh-my-opencode-linux-x64-baseline": "4.2.3",
|
|
105
|
+
"oh-my-opencode-linux-x64-musl": "4.2.3",
|
|
106
|
+
"oh-my-opencode-linux-x64-musl-baseline": "4.2.3",
|
|
107
|
+
"oh-my-opencode-windows-x64": "4.2.3",
|
|
108
|
+
"oh-my-opencode-windows-x64-baseline": "4.2.3"
|
|
99
109
|
},
|
|
100
110
|
"overrides": {
|
|
101
111
|
"hono": "^4.12.18",
|