oh-my-opencode 3.7.0 → 3.7.1
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/cli/index.js +8 -8
- package/dist/index.js +1 -1
- package/dist/tools/hashline-edit/hash-computation.d.ts +1 -1
- package/package.json +8 -8
- package/dist/features/background-agent/background-event-handler.d.ts +0 -26
- package/dist/features/background-agent/background-manager-shutdown.d.ts +0 -25
- package/dist/features/background-agent/notification-tracker.d.ts +0 -6
- package/dist/features/background-agent/notify-parent-session.d.ts +0 -10
- package/dist/features/background-agent/poll-running-tasks.d.ts +0 -15
- package/dist/features/background-agent/process-signal.d.ts +0 -2
- package/dist/features/background-agent/session-validator.d.ts +0 -7
- package/dist/features/background-agent/spawner/task-factory.d.ts +0 -2
- package/dist/features/background-agent/spawner/task-resumer.d.ts +0 -3
- package/dist/features/background-agent/spawner/task-starter.d.ts +0 -3
- package/dist/features/background-agent/stale-task-pruner.d.ts +0 -15
- package/dist/features/background-agent/task-canceller.d.ts +0 -27
- package/dist/features/background-agent/task-completer.d.ts +0 -13
- package/dist/features/background-agent/task-launch.d.ts +0 -15
- package/dist/features/background-agent/task-queries.d.ts +0 -7
- package/dist/features/background-agent/task-queue-processor.d.ts +0 -14
- package/dist/features/background-agent/task-resumer.d.ts +0 -14
- package/dist/features/background-agent/task-starter.d.ts +0 -27
- package/dist/features/background-agent/task-tracker.d.ts +0 -18
- package/dist/features/tmux-subagent/manager-cleanup.d.ts +0 -12
- package/dist/features/tmux-subagent/session-cleaner.d.ts +0 -23
- package/dist/features/tmux-subagent/session-spawner.d.ts +0 -34
- package/dist/hooks/interactive-bash-session/interactive-bash-session-hook.d.ts +0 -23
- package/dist/shared/available-models-fetcher.d.ts +0 -4
- package/dist/shared/model-cache-availability.d.ts +0 -2
- package/dist/tools/background-task/modules/background-cancel.d.ts +0 -4
- package/dist/tools/background-task/modules/background-output.d.ts +0 -3
- package/dist/tools/background-task/modules/background-task.d.ts +0 -3
- package/dist/tools/background-task/modules/formatters.d.ts +0 -11
- package/dist/tools/background-task/modules/message-processing.d.ts +0 -59
- package/dist/tools/background-task/modules/utils.d.ts +0 -16
- package/dist/tools/call-omo-agent/agent-type-normalizer.d.ts +0 -2
- package/dist/tools/call-omo-agent/sync-agent-executor.d.ts +0 -4
- package/dist/tools/delegate-task/skill-content-resolver.d.ts +0 -9
package/dist/cli/index.js
CHANGED
|
@@ -8999,7 +8999,7 @@ var {
|
|
|
8999
8999
|
// package.json
|
|
9000
9000
|
var package_default = {
|
|
9001
9001
|
name: "oh-my-opencode",
|
|
9002
|
-
version: "3.7.
|
|
9002
|
+
version: "3.7.1",
|
|
9003
9003
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
9004
9004
|
main: "dist/index.js",
|
|
9005
9005
|
types: "dist/index.d.ts",
|
|
@@ -9073,13 +9073,13 @@ var package_default = {
|
|
|
9073
9073
|
typescript: "^5.7.3"
|
|
9074
9074
|
},
|
|
9075
9075
|
optionalDependencies: {
|
|
9076
|
-
"oh-my-opencode-darwin-arm64": "3.7.
|
|
9077
|
-
"oh-my-opencode-darwin-x64": "3.7.
|
|
9078
|
-
"oh-my-opencode-linux-arm64": "3.7.
|
|
9079
|
-
"oh-my-opencode-linux-arm64-musl": "3.7.
|
|
9080
|
-
"oh-my-opencode-linux-x64": "3.7.
|
|
9081
|
-
"oh-my-opencode-linux-x64-musl": "3.7.
|
|
9082
|
-
"oh-my-opencode-windows-x64": "3.7.
|
|
9076
|
+
"oh-my-opencode-darwin-arm64": "3.7.1",
|
|
9077
|
+
"oh-my-opencode-darwin-x64": "3.7.1",
|
|
9078
|
+
"oh-my-opencode-linux-arm64": "3.7.1",
|
|
9079
|
+
"oh-my-opencode-linux-arm64-musl": "3.7.1",
|
|
9080
|
+
"oh-my-opencode-linux-x64": "3.7.1",
|
|
9081
|
+
"oh-my-opencode-linux-x64-musl": "3.7.1",
|
|
9082
|
+
"oh-my-opencode-windows-x64": "3.7.1"
|
|
9083
9083
|
},
|
|
9084
9084
|
trustedDependencies: [
|
|
9085
9085
|
"@ast-grep/cli",
|
package/dist/index.js
CHANGED
|
@@ -46652,7 +46652,7 @@ var HASH_DICT = [
|
|
|
46652
46652
|
];
|
|
46653
46653
|
|
|
46654
46654
|
// src/tools/hashline-edit/hash-computation.ts
|
|
46655
|
-
function computeLineHash(
|
|
46655
|
+
function computeLineHash(_lineNumber, content) {
|
|
46656
46656
|
const stripped = content.replace(/\s+/g, "");
|
|
46657
46657
|
const hash2 = Bun.hash.xxHash32(stripped);
|
|
46658
46658
|
const index = hash2 % 256;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function computeLineHash(
|
|
1
|
+
export declare function computeLineHash(_lineNumber: number, content: string): string;
|
|
2
2
|
export declare function formatHashLine(lineNumber: number, content: string): string;
|
|
3
3
|
export declare function formatHashLines(content: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
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.7.
|
|
78
|
-
"oh-my-opencode-darwin-x64": "3.7.
|
|
79
|
-
"oh-my-opencode-linux-arm64": "3.7.
|
|
80
|
-
"oh-my-opencode-linux-arm64-musl": "3.7.
|
|
81
|
-
"oh-my-opencode-linux-x64": "3.7.
|
|
82
|
-
"oh-my-opencode-linux-x64-musl": "3.7.
|
|
83
|
-
"oh-my-opencode-windows-x64": "3.7.
|
|
77
|
+
"oh-my-opencode-darwin-arm64": "3.7.1",
|
|
78
|
+
"oh-my-opencode-darwin-x64": "3.7.1",
|
|
79
|
+
"oh-my-opencode-linux-arm64": "3.7.1",
|
|
80
|
+
"oh-my-opencode-linux-arm64-musl": "3.7.1",
|
|
81
|
+
"oh-my-opencode-linux-x64": "3.7.1",
|
|
82
|
+
"oh-my-opencode-linux-x64-musl": "3.7.1",
|
|
83
|
+
"oh-my-opencode-windows-x64": "3.7.1"
|
|
84
84
|
},
|
|
85
85
|
"trustedDependencies": [
|
|
86
86
|
"@ast-grep/cli",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
type Event = {
|
|
3
|
-
type: string;
|
|
4
|
-
properties?: Record<string, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare function handleBackgroundEvent(args: {
|
|
7
|
-
event: Event;
|
|
8
|
-
findBySession: (sessionID: string) => BackgroundTask | undefined;
|
|
9
|
-
getAllDescendantTasks: (sessionID: string) => BackgroundTask[];
|
|
10
|
-
releaseConcurrencyKey?: (key: string) => void;
|
|
11
|
-
cancelTask: (taskId: string, options: {
|
|
12
|
-
source: string;
|
|
13
|
-
reason: string;
|
|
14
|
-
skipNotification: true;
|
|
15
|
-
}) => Promise<boolean>;
|
|
16
|
-
tryCompleteTask: (task: BackgroundTask, source: string) => Promise<boolean>;
|
|
17
|
-
validateSessionHasOutput: (sessionID: string) => Promise<boolean>;
|
|
18
|
-
checkSessionTodos: (sessionID: string) => Promise<boolean>;
|
|
19
|
-
idleDeferralTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
20
|
-
completionTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
21
|
-
tasks: Map<string, BackgroundTask>;
|
|
22
|
-
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
23
|
-
clearNotificationsForTask: (taskId: string) => void;
|
|
24
|
-
emitIdleEvent: (sessionID: string) => void;
|
|
25
|
-
}): void;
|
|
26
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask, LaunchInput } from "./types";
|
|
2
|
-
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
4
|
-
type QueueItem = {
|
|
5
|
-
task: BackgroundTask;
|
|
6
|
-
input: LaunchInput;
|
|
7
|
-
};
|
|
8
|
-
export declare function shutdownBackgroundManager(args: {
|
|
9
|
-
shutdownTriggered: {
|
|
10
|
-
value: boolean;
|
|
11
|
-
};
|
|
12
|
-
stopPolling: () => void;
|
|
13
|
-
tasks: Map<string, BackgroundTask>;
|
|
14
|
-
client: PluginInput["client"];
|
|
15
|
-
onShutdown?: () => void;
|
|
16
|
-
concurrencyManager: ConcurrencyManager;
|
|
17
|
-
completionTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
18
|
-
idleDeferralTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
19
|
-
notifications: Map<string, BackgroundTask[]>;
|
|
20
|
-
pendingByParent: Map<string, Set<string>>;
|
|
21
|
-
queuesByKey: Map<string, QueueItem[]>;
|
|
22
|
-
processingKeys: Set<string>;
|
|
23
|
-
unregisterProcessCleanup: () => void;
|
|
24
|
-
}): void;
|
|
25
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
export declare function markForNotification(notifications: Map<string, BackgroundTask[]>, task: BackgroundTask): void;
|
|
3
|
-
export declare function getPendingNotifications(notifications: Map<string, BackgroundTask[]>, sessionID: string): BackgroundTask[];
|
|
4
|
-
export declare function clearNotifications(notifications: Map<string, BackgroundTask[]>, sessionID: string): void;
|
|
5
|
-
export declare function clearNotificationsForTask(notifications: Map<string, BackgroundTask[]>, taskId: string): void;
|
|
6
|
-
export declare function cleanupPendingByParent(pendingByParent: Map<string, Set<string>>, task: BackgroundTask): void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
import type { OpencodeClient } from "./opencode-client";
|
|
3
|
-
export declare function notifyParentSession(args: {
|
|
4
|
-
task: BackgroundTask;
|
|
5
|
-
tasks: Map<string, BackgroundTask>;
|
|
6
|
-
pendingByParent: Map<string, Set<string>>;
|
|
7
|
-
completionTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
8
|
-
clearNotificationsForTask: (taskId: string) => void;
|
|
9
|
-
client: OpencodeClient;
|
|
10
|
-
}): Promise<void>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
import type { OpencodeClient } from "./opencode-client";
|
|
3
|
-
export declare function pollRunningTasks(args: {
|
|
4
|
-
tasks: Iterable<BackgroundTask>;
|
|
5
|
-
client: OpencodeClient;
|
|
6
|
-
pruneStaleTasksAndNotifications: () => void;
|
|
7
|
-
checkAndInterruptStaleTasks: (statuses: Record<string, {
|
|
8
|
-
type: string;
|
|
9
|
-
}>) => Promise<void>;
|
|
10
|
-
validateSessionHasOutput: (sessionID: string) => Promise<boolean>;
|
|
11
|
-
checkSessionTodos: (sessionID: string) => Promise<boolean>;
|
|
12
|
-
tryCompleteTask: (task: BackgroundTask, source: string) => Promise<boolean>;
|
|
13
|
-
hasRunningTasks: () => boolean;
|
|
14
|
-
stopPolling: () => void;
|
|
15
|
-
}): Promise<void>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { OpencodeClient } from "./opencode-client";
|
|
2
|
-
/**
|
|
3
|
-
* Validates that a session has actual assistant/tool output before marking complete.
|
|
4
|
-
* Prevents premature completion when session.idle fires before agent responds.
|
|
5
|
-
*/
|
|
6
|
-
export declare function validateSessionHasOutput(client: OpencodeClient, sessionID: string): Promise<boolean>;
|
|
7
|
-
export declare function checkSessionTodos(client: OpencodeClient, sessionID: string): Promise<boolean>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask, ResumeInput } from "../types";
|
|
2
|
-
import type { SpawnerContext } from "./spawner-context";
|
|
3
|
-
export declare function resumeTask(task: BackgroundTask, input: ResumeInput, ctx: Pick<SpawnerContext, "client" | "concurrencyManager" | "onTaskError">): Promise<void>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask, LaunchInput } from "./types";
|
|
2
|
-
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
-
type QueueItem = {
|
|
4
|
-
task: BackgroundTask;
|
|
5
|
-
input: LaunchInput;
|
|
6
|
-
};
|
|
7
|
-
export declare function pruneStaleState(args: {
|
|
8
|
-
tasks: Map<string, BackgroundTask>;
|
|
9
|
-
notifications: Map<string, BackgroundTask[]>;
|
|
10
|
-
queuesByKey: Map<string, QueueItem[]>;
|
|
11
|
-
concurrencyManager: ConcurrencyManager;
|
|
12
|
-
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
13
|
-
clearNotificationsForTask: (taskId: string) => void;
|
|
14
|
-
}): void;
|
|
15
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
import type { LaunchInput } from "./types";
|
|
3
|
-
import type { ConcurrencyManager } from "./concurrency";
|
|
4
|
-
import type { OpencodeClient } from "./opencode-client";
|
|
5
|
-
type QueueItem = {
|
|
6
|
-
task: BackgroundTask;
|
|
7
|
-
input: LaunchInput;
|
|
8
|
-
};
|
|
9
|
-
export declare function cancelBackgroundTask(args: {
|
|
10
|
-
taskId: string;
|
|
11
|
-
options?: {
|
|
12
|
-
source?: string;
|
|
13
|
-
reason?: string;
|
|
14
|
-
abortSession?: boolean;
|
|
15
|
-
skipNotification?: boolean;
|
|
16
|
-
};
|
|
17
|
-
tasks: Map<string, BackgroundTask>;
|
|
18
|
-
queuesByKey: Map<string, QueueItem[]>;
|
|
19
|
-
completionTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
20
|
-
idleDeferralTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
21
|
-
concurrencyManager: ConcurrencyManager;
|
|
22
|
-
client: OpencodeClient;
|
|
23
|
-
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
24
|
-
markForNotification: (task: BackgroundTask) => void;
|
|
25
|
-
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
26
|
-
}): Promise<boolean>;
|
|
27
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
-
import type { OpencodeClient } from "./opencode-client";
|
|
4
|
-
export declare function tryCompleteBackgroundTask(args: {
|
|
5
|
-
task: BackgroundTask;
|
|
6
|
-
source: string;
|
|
7
|
-
concurrencyManager: ConcurrencyManager;
|
|
8
|
-
idleDeferralTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
9
|
-
client: OpencodeClient;
|
|
10
|
-
markForNotification: (task: BackgroundTask) => void;
|
|
11
|
-
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
12
|
-
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
13
|
-
}): Promise<boolean>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
import type { LaunchInput } from "./types";
|
|
3
|
-
type QueueItem = {
|
|
4
|
-
task: BackgroundTask;
|
|
5
|
-
input: LaunchInput;
|
|
6
|
-
};
|
|
7
|
-
export declare function launchBackgroundTask(args: {
|
|
8
|
-
input: LaunchInput;
|
|
9
|
-
tasks: Map<string, BackgroundTask>;
|
|
10
|
-
pendingByParent: Map<string, Set<string>>;
|
|
11
|
-
queuesByKey: Map<string, QueueItem[]>;
|
|
12
|
-
getConcurrencyKeyFromInput: (input: LaunchInput) => string;
|
|
13
|
-
processKey: (key: string) => void;
|
|
14
|
-
}): BackgroundTask;
|
|
15
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
export declare function getTasksByParentSession(tasks: Iterable<BackgroundTask>, sessionID: string): BackgroundTask[];
|
|
3
|
-
export declare function getAllDescendantTasks(tasksByParent: (sessionID: string) => BackgroundTask[], sessionID: string): BackgroundTask[];
|
|
4
|
-
export declare function findTaskBySession(tasks: Iterable<BackgroundTask>, sessionID: string): BackgroundTask | undefined;
|
|
5
|
-
export declare function getRunningTasks(tasks: Iterable<BackgroundTask>): BackgroundTask[];
|
|
6
|
-
export declare function getNonRunningTasks(tasks: Iterable<BackgroundTask>): BackgroundTask[];
|
|
7
|
-
export declare function hasRunningTasks(tasks: Iterable<BackgroundTask>): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
-
type QueueItem = {
|
|
4
|
-
task: BackgroundTask;
|
|
5
|
-
input: import("./types").LaunchInput;
|
|
6
|
-
};
|
|
7
|
-
export declare function processConcurrencyKeyQueue(args: {
|
|
8
|
-
key: string;
|
|
9
|
-
queuesByKey: Map<string, QueueItem[]>;
|
|
10
|
-
processingKeys: Set<string>;
|
|
11
|
-
concurrencyManager: ConcurrencyManager;
|
|
12
|
-
startTask: (item: QueueItem) => Promise<void>;
|
|
13
|
-
}): Promise<void>;
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask, ResumeInput } from "./types";
|
|
2
|
-
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
-
import type { OpencodeClient } from "./opencode-client";
|
|
4
|
-
export declare function resumeBackgroundTask(args: {
|
|
5
|
-
input: ResumeInput;
|
|
6
|
-
findBySession: (sessionID: string) => BackgroundTask | undefined;
|
|
7
|
-
client: OpencodeClient;
|
|
8
|
-
concurrencyManager: ConcurrencyManager;
|
|
9
|
-
pendingByParent: Map<string, Set<string>>;
|
|
10
|
-
startPolling: () => void;
|
|
11
|
-
markForNotification: (task: BackgroundTask) => void;
|
|
12
|
-
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
13
|
-
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
14
|
-
}): Promise<BackgroundTask>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
import type { LaunchInput } from "./types";
|
|
3
|
-
import type { ConcurrencyManager } from "./concurrency";
|
|
4
|
-
import type { OpencodeClient } from "./opencode-client";
|
|
5
|
-
type QueueItem = {
|
|
6
|
-
task: BackgroundTask;
|
|
7
|
-
input: LaunchInput;
|
|
8
|
-
};
|
|
9
|
-
export declare function startQueuedTask(args: {
|
|
10
|
-
item: QueueItem;
|
|
11
|
-
client: OpencodeClient;
|
|
12
|
-
defaultDirectory: string;
|
|
13
|
-
tmuxEnabled: boolean;
|
|
14
|
-
onSubagentSessionCreated?: (event: {
|
|
15
|
-
sessionID: string;
|
|
16
|
-
parentID: string;
|
|
17
|
-
title: string;
|
|
18
|
-
}) => Promise<void>;
|
|
19
|
-
startPolling: () => void;
|
|
20
|
-
getConcurrencyKeyFromInput: (input: LaunchInput) => string;
|
|
21
|
-
concurrencyManager: ConcurrencyManager;
|
|
22
|
-
findBySession: (sessionID: string) => BackgroundTask | undefined;
|
|
23
|
-
markForNotification: (task: BackgroundTask) => void;
|
|
24
|
-
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
25
|
-
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
26
|
-
}): Promise<void>;
|
|
27
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
-
export declare function trackExternalTask(args: {
|
|
4
|
-
input: {
|
|
5
|
-
taskId: string;
|
|
6
|
-
sessionID: string;
|
|
7
|
-
parentSessionID: string;
|
|
8
|
-
description: string;
|
|
9
|
-
agent?: string;
|
|
10
|
-
parentAgent?: string;
|
|
11
|
-
concurrencyKey?: string;
|
|
12
|
-
};
|
|
13
|
-
tasks: Map<string, BackgroundTask>;
|
|
14
|
-
pendingByParent: Map<string, Set<string>>;
|
|
15
|
-
concurrencyManager: ConcurrencyManager;
|
|
16
|
-
startPolling: () => void;
|
|
17
|
-
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
18
|
-
}): Promise<BackgroundTask>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { TmuxConfig } from "../../config/schema";
|
|
2
|
-
import type { TrackedSession } from "./types";
|
|
3
|
-
import { TmuxPollingManager } from "./polling-manager";
|
|
4
|
-
export declare class ManagerCleanup {
|
|
5
|
-
private sessions;
|
|
6
|
-
private sourcePaneId;
|
|
7
|
-
private pollingManager;
|
|
8
|
-
private tmuxConfig;
|
|
9
|
-
private serverUrl;
|
|
10
|
-
constructor(sessions: Map<string, TrackedSession>, sourcePaneId: string | undefined, pollingManager: TmuxPollingManager, tmuxConfig: TmuxConfig, serverUrl: string);
|
|
11
|
-
cleanup(): Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { TmuxConfig } from "../../config/schema";
|
|
2
|
-
import type { TrackedSession } from "./types";
|
|
3
|
-
import type { SessionMapping } from "./decision-engine";
|
|
4
|
-
import { TmuxPollingManager } from "./polling-manager";
|
|
5
|
-
export interface TmuxUtilDeps {
|
|
6
|
-
isInsideTmux: () => boolean;
|
|
7
|
-
getCurrentPaneId: () => string | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare class SessionCleaner {
|
|
10
|
-
private tmuxConfig;
|
|
11
|
-
private deps;
|
|
12
|
-
private sessions;
|
|
13
|
-
private sourcePaneId;
|
|
14
|
-
private getSessionMappings;
|
|
15
|
-
private pollingManager;
|
|
16
|
-
private serverUrl;
|
|
17
|
-
constructor(tmuxConfig: TmuxConfig, deps: TmuxUtilDeps, sessions: Map<string, TrackedSession>, sourcePaneId: string | undefined, getSessionMappings: () => SessionMapping[], pollingManager: TmuxPollingManager, serverUrl: string);
|
|
18
|
-
private isEnabled;
|
|
19
|
-
onSessionDeleted(event: {
|
|
20
|
-
sessionID: string;
|
|
21
|
-
}): Promise<void>;
|
|
22
|
-
closeSessionById(sessionId: string): Promise<void>;
|
|
23
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { TmuxConfig } from "../../config/schema";
|
|
2
|
-
import type { TrackedSession, CapacityConfig } from "./types";
|
|
3
|
-
import { type SessionMapping } from "./decision-engine";
|
|
4
|
-
import { TmuxPollingManager } from "./polling-manager";
|
|
5
|
-
interface SessionCreatedEvent {
|
|
6
|
-
type: string;
|
|
7
|
-
properties?: {
|
|
8
|
-
info?: {
|
|
9
|
-
id?: string;
|
|
10
|
-
parentID?: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface TmuxUtilDeps {
|
|
16
|
-
isInsideTmux: () => boolean;
|
|
17
|
-
getCurrentPaneId: () => string | undefined;
|
|
18
|
-
}
|
|
19
|
-
export declare class SessionSpawner {
|
|
20
|
-
private tmuxConfig;
|
|
21
|
-
private deps;
|
|
22
|
-
private sessions;
|
|
23
|
-
private pendingSessions;
|
|
24
|
-
private sourcePaneId;
|
|
25
|
-
private getCapacityConfig;
|
|
26
|
-
private getSessionMappings;
|
|
27
|
-
private waitForSessionReady;
|
|
28
|
-
private pollingManager;
|
|
29
|
-
private serverUrl;
|
|
30
|
-
constructor(tmuxConfig: TmuxConfig, deps: TmuxUtilDeps, sessions: Map<string, TrackedSession>, pendingSessions: Set<string>, sourcePaneId: string | undefined, getCapacityConfig: () => CapacityConfig, getSessionMappings: () => SessionMapping[], waitForSessionReady: (sessionId: string) => Promise<boolean>, pollingManager: TmuxPollingManager, serverUrl: string);
|
|
31
|
-
private isEnabled;
|
|
32
|
-
onSessionCreated(event: SessionCreatedEvent): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
interface ToolExecuteInput {
|
|
3
|
-
tool: string;
|
|
4
|
-
sessionID: string;
|
|
5
|
-
callID: string;
|
|
6
|
-
args?: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
interface ToolExecuteOutput {
|
|
9
|
-
title: string;
|
|
10
|
-
output: string;
|
|
11
|
-
metadata: unknown;
|
|
12
|
-
}
|
|
13
|
-
interface EventInput {
|
|
14
|
-
event: {
|
|
15
|
-
type: string;
|
|
16
|
-
properties?: unknown;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare function createInteractiveBashSessionHook(ctx: PluginInput): {
|
|
20
|
-
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
|
|
21
|
-
event: ({ event }: EventInput) => Promise<void>;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
-
import type { BackgroundCancelClient } from "../types";
|
|
3
|
-
import type { BackgroundManager } from "../../../features/background-agent";
|
|
4
|
-
export declare function createBackgroundCancel(manager: BackgroundManager, _client: BackgroundCancelClient): ToolDefinition;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "../../../features/background-agent";
|
|
2
|
-
import type { BackgroundOutputClient } from "../types";
|
|
3
|
-
export declare function formatTaskStatus(task: BackgroundTask): string;
|
|
4
|
-
export declare function formatTaskResult(task: BackgroundTask, client: BackgroundOutputClient): Promise<string>;
|
|
5
|
-
export declare function formatFullSession(task: BackgroundTask, client: BackgroundOutputClient, options: {
|
|
6
|
-
includeThinking: boolean;
|
|
7
|
-
messageLimit?: number;
|
|
8
|
-
sinceMessageId?: string;
|
|
9
|
-
includeToolResults: boolean;
|
|
10
|
-
thinkingMaxChars?: number;
|
|
11
|
-
}): Promise<string>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export type BackgroundOutputMessage = {
|
|
2
|
-
info?: {
|
|
3
|
-
role?: string;
|
|
4
|
-
time?: string | {
|
|
5
|
-
created?: number;
|
|
6
|
-
};
|
|
7
|
-
agent?: string;
|
|
8
|
-
};
|
|
9
|
-
parts?: Array<{
|
|
10
|
-
type?: string;
|
|
11
|
-
text?: string;
|
|
12
|
-
content?: string | Array<{
|
|
13
|
-
type: string;
|
|
14
|
-
text?: string;
|
|
15
|
-
}>;
|
|
16
|
-
name?: string;
|
|
17
|
-
}>;
|
|
18
|
-
};
|
|
19
|
-
export type BackgroundOutputMessagesResult = {
|
|
20
|
-
data?: BackgroundOutputMessage[];
|
|
21
|
-
error?: unknown;
|
|
22
|
-
} | BackgroundOutputMessage[];
|
|
23
|
-
export type FullSessionMessagePart = {
|
|
24
|
-
type?: string;
|
|
25
|
-
text?: string;
|
|
26
|
-
thinking?: string;
|
|
27
|
-
content?: string | Array<{
|
|
28
|
-
type?: string;
|
|
29
|
-
text?: string;
|
|
30
|
-
}>;
|
|
31
|
-
output?: string;
|
|
32
|
-
};
|
|
33
|
-
export type FullSessionMessage = {
|
|
34
|
-
id?: string;
|
|
35
|
-
info?: {
|
|
36
|
-
role?: string;
|
|
37
|
-
time?: string;
|
|
38
|
-
agent?: string;
|
|
39
|
-
};
|
|
40
|
-
parts?: FullSessionMessagePart[];
|
|
41
|
-
};
|
|
42
|
-
export declare function getErrorMessage(value: BackgroundOutputMessagesResult): string | null;
|
|
43
|
-
export declare function isSessionMessage(value: unknown): value is {
|
|
44
|
-
info?: {
|
|
45
|
-
role?: string;
|
|
46
|
-
time?: string;
|
|
47
|
-
};
|
|
48
|
-
parts?: Array<{
|
|
49
|
-
type?: string;
|
|
50
|
-
text?: string;
|
|
51
|
-
content?: string | Array<{
|
|
52
|
-
type: string;
|
|
53
|
-
text?: string;
|
|
54
|
-
}>;
|
|
55
|
-
name?: string;
|
|
56
|
-
}>;
|
|
57
|
-
};
|
|
58
|
-
export declare function extractMessages(value: BackgroundOutputMessagesResult): BackgroundOutputMessage[];
|
|
59
|
-
export declare function extractToolResultText(part: FullSessionMessagePart): string[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getMessageDir } from "../../../shared";
|
|
2
|
-
export { getMessageDir };
|
|
3
|
-
export declare function formatDuration(start: Date, end?: Date): string;
|
|
4
|
-
export declare function truncateText(text: string, maxLength: number): string;
|
|
5
|
-
export declare function delay(ms: number): Promise<void>;
|
|
6
|
-
export declare function formatMessageTime(value: unknown): string;
|
|
7
|
-
export type ToolContextWithMetadata = {
|
|
8
|
-
sessionID: string;
|
|
9
|
-
messageID: string;
|
|
10
|
-
agent: string;
|
|
11
|
-
abort: AbortSignal;
|
|
12
|
-
metadata?: (input: {
|
|
13
|
-
title?: string;
|
|
14
|
-
metadata?: Record<string, unknown>;
|
|
15
|
-
}) => void;
|
|
16
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { CallOmoAgentArgs } from "./types";
|
|
3
|
-
import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
|
|
4
|
-
export declare function executeSyncAgent(args: CallOmoAgentArgs, toolContext: ToolContextWithMetadata, ctx: PluginInput): Promise<string>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { GitMasterConfig, BrowserAutomationProvider } from "../../config/schema";
|
|
2
|
-
export declare function resolveSkillContent(skills: string[], options: {
|
|
3
|
-
gitMasterConfig?: GitMasterConfig;
|
|
4
|
-
browserProvider?: BrowserAutomationProvider;
|
|
5
|
-
disabledSkills?: Set<string>;
|
|
6
|
-
}): Promise<{
|
|
7
|
-
content: string | undefined;
|
|
8
|
-
error: string | null;
|
|
9
|
-
}>;
|