oh-my-opencode 3.15.1 → 3.15.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/dist/agents/hephaestus/gpt-5-4.d.ts +22 -1
- package/dist/cli/index.js +477 -206
- package/dist/cli/run/continuation-state.d.ts +2 -1
- package/dist/create-runtime-tmux-config.d.ts +1 -0
- package/dist/features/background-agent/spawner.d.ts +3 -0
- package/dist/features/boulder-state/storage.d.ts +1 -1
- package/dist/features/boulder-state/types.d.ts +1 -0
- package/dist/features/claude-code-plugin-loader/discovery.d.ts +2 -1
- package/dist/features/claude-code-plugin-loader/loader.d.ts +1 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +10 -0
- package/dist/hooks/atlas/background-launch-session-tracking.d.ts +11 -0
- package/dist/hooks/atlas/boulder-continuation-injector.d.ts +2 -1
- package/dist/hooks/atlas/task-context.d.ts +7 -0
- package/dist/hooks/atlas/types.d.ts +1 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +3 -3
- package/dist/index.js +1026 -681
- package/dist/plugin/tool-registry.d.ts +1 -0
- package/dist/shared/agent-display-names.d.ts +1 -0
- package/dist/tools/delegate-task/resolve-call-id.d.ts +2 -0
- package/package.json +12 -12
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RunContext } from "./types";
|
|
1
2
|
export interface ContinuationState {
|
|
2
3
|
hasActiveBoulder: boolean;
|
|
3
4
|
hasActiveRalphLoop: boolean;
|
|
@@ -6,4 +7,4 @@ export interface ContinuationState {
|
|
|
6
7
|
hasActiveHookMarker: boolean;
|
|
7
8
|
activeHookMarkerReason: string | null;
|
|
8
9
|
}
|
|
9
|
-
export declare function getContinuationState(directory: string, sessionID: string): ContinuationState
|
|
10
|
+
export declare function getContinuationState(directory: string, sessionID: string, client?: RunContext["client"]): Promise<ContinuationState>;
|
|
@@ -4,6 +4,7 @@ export declare function isTmuxIntegrationEnabled(pluginConfig: {
|
|
|
4
4
|
enabled?: boolean;
|
|
5
5
|
} | undefined;
|
|
6
6
|
}): boolean;
|
|
7
|
+
export declare function isInteractiveBashEnabled(which?: (binary: string) => string | null): boolean;
|
|
7
8
|
export declare function createRuntimeTmuxConfig(pluginConfig: {
|
|
8
9
|
tmux?: OhMyOpenCodeConfig["tmux"];
|
|
9
10
|
}): TmuxConfig;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { BackgroundTask, LaunchInput, ResumeInput } from "./types";
|
|
2
2
|
import type { OpencodeClient, OnSubagentSessionCreated, QueueItem } from "./constants";
|
|
3
3
|
import type { ConcurrencyManager } from "./concurrency";
|
|
4
|
+
export declare const FALLBACK_AGENT = "general";
|
|
5
|
+
export declare function isAgentNotFoundError(error: unknown): boolean;
|
|
6
|
+
export declare function buildFallbackBody(originalBody: Record<string, unknown>, fallbackAgent: string): Record<string, unknown>;
|
|
4
7
|
export interface SpawnerContext {
|
|
5
8
|
client: OpencodeClient;
|
|
6
9
|
directory: string;
|
|
@@ -7,7 +7,7 @@ import type { BoulderState, PlanProgress, TaskSessionState } from "./types";
|
|
|
7
7
|
export declare function getBoulderFilePath(directory: string): string;
|
|
8
8
|
export declare function readBoulderState(directory: string): BoulderState | null;
|
|
9
9
|
export declare function writeBoulderState(directory: string, state: BoulderState): boolean;
|
|
10
|
-
export declare function appendSessionId(directory: string, sessionId: string): BoulderState | null;
|
|
10
|
+
export declare function appendSessionId(directory: string, sessionId: string, origin?: "direct" | "appended"): BoulderState | null;
|
|
11
11
|
export declare function clearBoulderState(directory: string): boolean;
|
|
12
12
|
export declare function getTaskSessionState(directory: string, taskKey: string): TaskSessionState | null;
|
|
13
13
|
export declare function upsertTaskSessionState(directory: string, input: {
|
|
@@ -11,6 +11,7 @@ export interface BoulderState {
|
|
|
11
11
|
started_at: string;
|
|
12
12
|
/** Session IDs that have worked on this plan */
|
|
13
13
|
session_ids: string[];
|
|
14
|
+
session_origins?: Record<string, "direct" | "appended">;
|
|
14
15
|
/** Plan name derived from filename */
|
|
15
16
|
plan_name: string;
|
|
16
17
|
/** Agent type to use when resuming (e.g., 'atlas') */
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type { PluginLoadResult, PluginLoaderOptions } from "./types";
|
|
1
|
+
import type { PluginManifest, PluginLoadResult, PluginLoaderOptions } from "./types";
|
|
2
|
+
export declare function loadPluginManifest(installPath: string): PluginManifest | null;
|
|
2
3
|
export declare function discoverInstalledPlugins(options?: PluginLoaderOptions): PluginLoadResult;
|
|
@@ -17,4 +17,5 @@ export interface PluginComponentsResult {
|
|
|
17
17
|
plugins: LoadedPlugin[];
|
|
18
18
|
errors: PluginLoadError[];
|
|
19
19
|
}
|
|
20
|
+
export declare function clearPluginComponentsCache(): void;
|
|
20
21
|
export declare function loadAllPluginComponents(options?: PluginLoaderOptions): Promise<PluginComponentsResult>;
|
|
@@ -204,6 +204,16 @@ export interface ClaudeSettings {
|
|
|
204
204
|
* Plugin loader options
|
|
205
205
|
*/
|
|
206
206
|
export interface PluginLoaderOptions {
|
|
207
|
+
/**
|
|
208
|
+
* Override the plugins home directory for testing.
|
|
209
|
+
* If not provided, uses CLAUDE_PLUGINS_HOME env var or ~/.claude/plugins
|
|
210
|
+
*/
|
|
211
|
+
pluginsHomeOverride?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Override plugin manifest loading for testing.
|
|
214
|
+
* Return null to force plugin name derivation from the plugin key.
|
|
215
|
+
*/
|
|
216
|
+
loadPluginManifestOverride?: (installPath: string) => PluginManifest | null;
|
|
207
217
|
/**
|
|
208
218
|
* Override enabled plugins from oh-my-opencode config.
|
|
209
219
|
* Key format: "pluginName@marketplace" (e.g., "shell-scripting@claude-code-workflows")
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import { type BoulderState } from "../../features/boulder-state";
|
|
3
|
+
import type { PendingTaskRef, ToolExecuteAfterInput, ToolExecuteAfterOutput } from "./types";
|
|
4
|
+
export declare function syncBackgroundLaunchSessionTracking(input: {
|
|
5
|
+
ctx: PluginInput;
|
|
6
|
+
boulderState: BoulderState | null;
|
|
7
|
+
toolInput: ToolExecuteAfterInput;
|
|
8
|
+
toolOutput: ToolExecuteAfterOutput;
|
|
9
|
+
pendingTaskRef: PendingTaskRef | undefined;
|
|
10
|
+
metadataSessionId?: string;
|
|
11
|
+
}): Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
3
|
import type { SessionState } from "./types";
|
|
4
|
+
export type BoulderContinuationResult = "injected" | "skipped_background_tasks" | "skipped_agent_unavailable" | "failed";
|
|
4
5
|
export declare function injectBoulderContinuation(input: {
|
|
5
6
|
ctx: PluginInput;
|
|
6
7
|
sessionID: string;
|
|
@@ -13,4 +14,4 @@ export declare function injectBoulderContinuation(input: {
|
|
|
13
14
|
preferredTaskTitle?: string;
|
|
14
15
|
backgroundManager?: BackgroundManager;
|
|
15
16
|
sessionState: SessionState;
|
|
16
|
-
}): Promise<
|
|
17
|
+
}): Promise<BoulderContinuationResult>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PendingTaskRef, TrackedTopLevelTaskRef } from "./types";
|
|
2
|
+
export declare function resolvePreferredSessionId(currentSessionId?: string, trackedSessionId?: string): string;
|
|
3
|
+
export declare function resolveTaskContext(pendingTaskRef: PendingTaskRef | undefined, planPath: string): {
|
|
4
|
+
currentTask: TrackedTopLevelTaskRef | null;
|
|
5
|
+
shouldSkipTaskSessionUpdate: boolean;
|
|
6
|
+
shouldIgnoreCurrentSessionId: boolean;
|
|
7
|
+
};
|
|
@@ -38,6 +38,7 @@ export type PendingTaskRef = {
|
|
|
38
38
|
export interface SessionState {
|
|
39
39
|
lastEventWasAbortError?: boolean;
|
|
40
40
|
lastContinuationInjectedAt?: number;
|
|
41
|
+
isInjectingContinuation?: boolean;
|
|
41
42
|
promptFailureCount: number;
|
|
42
43
|
lastFailureAt?: number;
|
|
43
44
|
pendingRetryTimer?: ReturnType<typeof setTimeout>;
|
|
@@ -5,7 +5,7 @@ export declare const CACHE_ROOT_DIR: string;
|
|
|
5
5
|
export declare const CACHE_DIR: string;
|
|
6
6
|
export declare const VERSION_FILE: string;
|
|
7
7
|
export declare function getWindowsAppdataDir(): string | null;
|
|
8
|
-
export declare
|
|
9
|
-
export declare
|
|
10
|
-
export declare
|
|
8
|
+
export declare function getUserConfigDir(): string;
|
|
9
|
+
export declare function getUserOpencodeConfig(): string;
|
|
10
|
+
export declare function getUserOpencodeConfigJsonc(): string;
|
|
11
11
|
export declare const INSTALLED_PACKAGE_JSON: string;
|