oh-my-opencode 3.0.0-beta.4 → 3.0.0-beta.6
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 +3 -16
- package/README.md +4 -29
- package/README.zh-cn.md +618 -500
- package/dist/agents/momus.d.ts +1 -1
- package/dist/agents/orchestrator-sisyphus.d.ts +1 -1
- package/dist/agents/prometheus-prompt.d.ts +3 -1
- package/dist/agents/sisyphus-junior.d.ts +6 -1
- package/dist/agents/types.d.ts +1 -0
- package/dist/agents/utils.d.ts +3 -2
- package/dist/cli/index.js +3647 -3661
- package/dist/cli/run/events.d.ts +1 -0
- package/dist/config/schema.d.ts +311 -179
- package/dist/features/background-agent/types.d.ts +2 -0
- package/dist/features/claude-code-session-state/state.d.ts +4 -0
- package/dist/features/hook-message-injector/index.d.ts +1 -1
- package/dist/features/hook-message-injector/injector.d.ts +7 -0
- package/dist/features/opencode-skill-loader/skill-content.d.ts +6 -2
- package/dist/hooks/auto-update-checker/checker.d.ts +1 -1
- package/dist/hooks/auto-update-checker/index.d.ts +1 -0
- package/dist/index.js +19623 -22866
- package/dist/plugin-handlers/config-handler.d.ts +2 -0
- package/dist/shared/agent-variant.d.ts +5 -0
- package/dist/shared/first-message-variant.d.ts +11 -0
- package/dist/shared/first-message-variant.test.d.ts +1 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/permission-compat.d.ts +2 -0
- package/dist/shared/zip-extractor.d.ts +1 -0
- package/dist/tools/glob/cli.d.ts +4 -0
- package/dist/tools/glob/cli.test.d.ts +1 -0
- package/dist/tools/glob/types.d.ts +1 -0
- package/dist/tools/sisyphus-task/tools.d.ts +3 -1
- package/dist/tools/skill-mcp/types.d.ts +1 -1
- package/package.json +2 -6
- package/dist/auth/antigravity/accounts.d.ts +0 -40
- package/dist/auth/antigravity/browser.d.ts +0 -27
- package/dist/auth/antigravity/cli.d.ts +0 -2
- package/dist/auth/antigravity/constants.d.ts +0 -98
- package/dist/auth/antigravity/fetch.d.ts +0 -69
- package/dist/auth/antigravity/index.d.ts +0 -13
- package/dist/auth/antigravity/integration.test.d.ts +0 -10
- package/dist/auth/antigravity/message-converter.d.ts +0 -54
- package/dist/auth/antigravity/oauth.d.ts +0 -51
- package/dist/auth/antigravity/plugin.d.ts +0 -54
- package/dist/auth/antigravity/project.d.ts +0 -10
- package/dist/auth/antigravity/request.d.ts +0 -116
- package/dist/auth/antigravity/response.d.ts +0 -137
- package/dist/auth/antigravity/storage.d.ts +0 -5
- package/dist/auth/antigravity/thinking.d.ts +0 -278
- package/dist/auth/antigravity/thinking.test.d.ts +0 -10
- package/dist/auth/antigravity/thought-signature-store.d.ts +0 -52
- package/dist/auth/antigravity/token.d.ts +0 -38
- package/dist/auth/antigravity/tools.d.ts +0 -119
- package/dist/auth/antigravity/types.d.ts +0 -229
- package/dist/cli/ast-grep-napi.linux-x64-gnu-jfv8414z.node +0 -0
- package/dist/cli/ast-grep-napi.linux-x64-musl-8cj2e5cf.node +0 -0
- package/dist/cli/commands/auth.d.ts +0 -2
- package/dist/google-auth.d.ts +0 -3
- package/dist/google-auth.js +0 -3871
- /package/dist/{auth/antigravity/accounts.test.d.ts → agents/momus.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/browser.test.d.ts → agents/prometheus-prompt.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/cli.test.d.ts → agents/sisyphus-junior.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/constants.test.d.ts → hooks/auto-update-checker/checker.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/oauth.test.d.ts → plugin-config.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/request.test.d.ts → plugin-handlers/config-handler.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/storage.test.d.ts → shared/agent-variant.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/token.test.d.ts → shared/deep-merge.test.d.ts} +0 -0
|
@@ -27,6 +27,7 @@ export interface BackgroundTask {
|
|
|
27
27
|
model?: {
|
|
28
28
|
providerID: string;
|
|
29
29
|
modelID: string;
|
|
30
|
+
variant?: string;
|
|
30
31
|
};
|
|
31
32
|
/** Agent name used for concurrency tracking */
|
|
32
33
|
concurrencyKey?: string;
|
|
@@ -51,6 +52,7 @@ export interface LaunchInput {
|
|
|
51
52
|
model?: {
|
|
52
53
|
providerID: string;
|
|
53
54
|
modelID: string;
|
|
55
|
+
variant?: string;
|
|
54
56
|
};
|
|
55
57
|
skills?: string[];
|
|
56
58
|
skillContent?: string;
|
|
@@ -2,3 +2,7 @@ export declare const subagentSessions: Set<string>;
|
|
|
2
2
|
export declare let mainSessionID: string | undefined;
|
|
3
3
|
export declare function setMainSession(id: string | undefined): void;
|
|
4
4
|
export declare function getMainSessionID(): string | undefined;
|
|
5
|
+
export declare function setSessionAgent(sessionID: string, agent: string): void;
|
|
6
|
+
export declare function updateSessionAgent(sessionID: string, agent: string): void;
|
|
7
|
+
export declare function getSessionAgent(sessionID: string): string | undefined;
|
|
8
|
+
export declare function clearSessionAgent(sessionID: string): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { injectHookMessage, findNearestMessageWithFields } from "./injector";
|
|
1
|
+
export { injectHookMessage, findNearestMessageWithFields, findFirstMessageWithAgent } from "./injector";
|
|
2
2
|
export type { StoredMessage } from "./injector";
|
|
3
3
|
export type { MessageMeta, OriginalMessageContext, TextPart } from "./types";
|
|
4
4
|
export { MESSAGE_STORAGE } from "./constants";
|
|
@@ -8,4 +8,11 @@ export interface StoredMessage {
|
|
|
8
8
|
tools?: Record<string, ToolPermission>;
|
|
9
9
|
}
|
|
10
10
|
export declare function findNearestMessageWithFields(messageDir: string): StoredMessage | null;
|
|
11
|
+
/**
|
|
12
|
+
* Finds the FIRST (oldest) message in the session with agent field.
|
|
13
|
+
* This is used to get the original agent that started the session,
|
|
14
|
+
* avoiding issues where newer messages may have a different agent
|
|
15
|
+
* due to OpenCode's internal agent switching.
|
|
16
|
+
*/
|
|
17
|
+
export declare function findFirstMessageWithAgent(messageDir: string): string | null;
|
|
11
18
|
export declare function injectHookMessage(sessionID: string, hookContent: string, originalMessage: OriginalMessageContext): boolean;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import type { GitMasterConfig } from "../../config/schema";
|
|
2
|
+
export interface SkillResolutionOptions {
|
|
3
|
+
gitMasterConfig?: GitMasterConfig;
|
|
4
|
+
}
|
|
5
|
+
export declare function resolveSkillContent(skillName: string, options?: SkillResolutionOptions): string | null;
|
|
6
|
+
export declare function resolveMultipleSkills(skillNames: string[], options?: SkillResolutionOptions): {
|
|
3
7
|
resolved: Map<string, string>;
|
|
4
8
|
notFound: string[];
|
|
5
9
|
};
|
|
@@ -16,5 +16,5 @@ export declare function getCachedVersion(): string | null;
|
|
|
16
16
|
* Preserves JSONC comments and formatting via string replacement.
|
|
17
17
|
*/
|
|
18
18
|
export declare function updatePinnedVersion(configPath: string, oldEntry: string, newVersion: string): boolean;
|
|
19
|
-
export declare function getLatestVersion(): Promise<string | null>;
|
|
19
|
+
export declare function getLatestVersion(channel?: string): Promise<string | null>;
|
|
20
20
|
export declare function checkForUpdate(directory: string): Promise<UpdateCheckResult>;
|
|
@@ -3,6 +3,7 @@ import type { AutoUpdateCheckerOptions } from "./types";
|
|
|
3
3
|
export declare function isPrereleaseVersion(version: string): boolean;
|
|
4
4
|
export declare function isDistTag(version: string): boolean;
|
|
5
5
|
export declare function isPrereleaseOrDistTag(pinnedVersion: string | null): boolean;
|
|
6
|
+
export declare function extractChannel(version: string | null): string;
|
|
6
7
|
export declare function createAutoUpdateCheckerHook(ctx: PluginInput, options?: AutoUpdateCheckerOptions): {
|
|
7
8
|
event: ({ event }: {
|
|
8
9
|
event: {
|