opencode-orchestrator 0.5.4 → 0.5.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.md +21 -23
- package/dist/agents/definitions.d.ts +1 -1
- package/dist/agents/orchestrator.d.ts +1 -1
- package/dist/agents/subagents/architect.d.ts +1 -1
- package/dist/agents/subagents/builder.d.ts +1 -1
- package/dist/agents/subagents/inspector.d.ts +1 -1
- package/dist/agents/subagents/recorder.d.ts +1 -1
- package/dist/core/agents/concurrency.d.ts +36 -0
- package/dist/core/agents/config.d.ts +9 -0
- package/dist/core/agents/format.d.ts +9 -0
- package/dist/core/agents/index.d.ts +7 -0
- package/dist/core/agents/interfaces/index.d.ts +5 -0
- package/dist/core/agents/interfaces/launch-input.d.ts +9 -0
- package/dist/core/agents/interfaces/parallel-task.d.ts +26 -0
- package/dist/core/agents/logger.d.ts +4 -0
- package/dist/core/agents/manager.d.ts +76 -0
- package/dist/core/agents/task-store.d.ts +28 -0
- package/dist/core/agents/types/index.d.ts +4 -0
- package/dist/core/agents/types/parallel-task-status.d.ts +4 -0
- package/dist/core/commands/index.d.ts +6 -0
- package/dist/core/commands/interfaces/background-task.d.ts +20 -0
- package/dist/core/commands/interfaces/index.d.ts +5 -0
- package/dist/core/commands/interfaces/run-background-options.d.ts +9 -0
- package/dist/core/commands/manager.d.ts +27 -0
- package/dist/core/commands/types/background-task-status.d.ts +4 -0
- package/dist/core/commands/types/index.d.ts +4 -0
- package/dist/core/orchestrator/index.d.ts +7 -0
- package/dist/core/orchestrator/interfaces/index.d.ts +5 -0
- package/dist/core/{state.d.ts → orchestrator/interfaces/session-state.d.ts} +4 -7
- package/dist/core/orchestrator/interfaces/task.d.ts +17 -0
- package/dist/core/orchestrator/state.d.ts +10 -0
- package/dist/core/{tasks.d.ts → orchestrator/task-graph.d.ts} +2 -14
- package/dist/core/orchestrator/types/index.d.ts +5 -0
- package/dist/core/orchestrator/types/task-status.d.ts +4 -0
- package/dist/core/orchestrator/types/task-type.d.ts +4 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +588 -714
- package/dist/shared/{contracts/names.d.ts → agent.d.ts} +12 -0
- package/dist/shared/constants.d.ts +56 -0
- package/dist/tools/background-cmd/check.d.ts +14 -0
- package/dist/tools/background-cmd/index.d.ts +7 -0
- package/dist/tools/background-cmd/kill.d.ts +12 -0
- package/dist/tools/background-cmd/list.d.ts +17 -0
- package/dist/tools/background-cmd/run.d.ts +18 -0
- package/dist/tools/callAgent.d.ts +0 -0
- package/dist/tools/parallel/cancel-task.d.ts +13 -0
- package/dist/tools/parallel/delegate-task.d.ts +21 -0
- package/dist/tools/parallel/get-task-result.d.ts +13 -0
- package/dist/tools/parallel/index.d.ts +7 -0
- package/dist/tools/parallel/list-tasks.d.ts +13 -0
- package/dist/tools/rust.d.ts +0 -0
- package/dist/tools/search.d.ts +2 -9
- package/dist/tools/slashCommand.d.ts +0 -0
- package/dist/utils/binary.d.ts +0 -0
- package/dist/utils/common.d.ts +0 -0
- package/package.json +17 -7
- package/dist/agents/coder.d.ts +0 -2
- package/dist/agents/fixer.d.ts +0 -2
- package/dist/agents/names.d.ts +0 -12
- package/dist/agents/planner.d.ts +0 -2
- package/dist/agents/reviewer.d.ts +0 -2
- package/dist/agents/searcher.d.ts +0 -2
- package/dist/agents/subagents/coder.d.ts +0 -2
- package/dist/agents/subagents/executor.d.ts +0 -2
- package/dist/agents/subagents/fixer.d.ts +0 -2
- package/dist/agents/subagents/frontend-designer.d.ts +0 -2
- package/dist/agents/subagents/memory.d.ts +0 -2
- package/dist/agents/subagents/planner.d.ts +0 -2
- package/dist/agents/subagents/publisher.d.ts +0 -2
- package/dist/agents/subagents/reviewer.d.ts +0 -2
- package/dist/agents/subagents/searcher.d.ts +0 -2
- package/dist/agents/subagents/strategist.d.ts +0 -2
- package/dist/agents/subagents/surgeon.d.ts +0 -2
- package/dist/agents/subagents/types.d.ts +0 -7
- package/dist/agents/subagents/visualist.d.ts +0 -2
- package/dist/agents/types.d.ts +0 -7
- package/dist/cli.d.ts +0 -2
- package/dist/constants/agent.d.ts +0 -8
- package/dist/constants/index.d.ts +0 -7
- package/dist/constants/prompts.d.ts +0 -10
- package/dist/constants/task.d.ts +0 -12
- package/dist/constants/time.d.ts +0 -34
- package/dist/context/enforcer.d.ts +0 -47
- package/dist/core/async-agent.d.ts +0 -100
- package/dist/core/background.d.ts +0 -78
- package/dist/core/batch-processor.d.ts +0 -62
- package/dist/core/config.d.ts +0 -55
- package/dist/core/session-manager.d.ts +0 -39
- package/dist/parallel/optimizer.d.ts +0 -47
- package/dist/profiler/execution.d.ts +0 -40
- package/dist/prompts/shared.d.ts +0 -2
- package/dist/shared/contracts/interfaces.d.ts +0 -7
- package/dist/tasks.d.ts +0 -29
- package/dist/tools/async-agent.d.ts +0 -70
- package/dist/tools/background.d.ts +0 -55
- package/dist/tools/batch.d.ts +0 -53
- package/dist/tools/config.d.ts +0 -60
- package/dist/tools/git.d.ts +0 -48
- package/dist/utils/formatting.d.ts +0 -13
- package/dist/utils/index.d.ts +0 -8
- package/dist/utils/task.d.ts +0 -8
package/dist/tools/config.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration Management Tool
|
|
3
|
-
*
|
|
4
|
-
* Tools for viewing and modifying configuration at runtime.
|
|
5
|
-
*/
|
|
6
|
-
import { tool } from "@opencode-ai/plugin";
|
|
7
|
-
/**
|
|
8
|
-
* show_config - Display current configuration
|
|
9
|
-
*/
|
|
10
|
-
export declare const createShowConfigTool: () => {
|
|
11
|
-
description: string;
|
|
12
|
-
args: {};
|
|
13
|
-
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* set_concurrency - Update agent concurrency limits at runtime
|
|
17
|
-
*/
|
|
18
|
-
export declare const createSetConcurrencyTool: (client: unknown) => {
|
|
19
|
-
description: string;
|
|
20
|
-
args: {
|
|
21
|
-
agent: import("zod").ZodString;
|
|
22
|
-
limit: import("zod").ZodString;
|
|
23
|
-
};
|
|
24
|
-
execute(args: {
|
|
25
|
-
agent: string;
|
|
26
|
-
limit: string;
|
|
27
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* set_timeout - Update task timeout settings
|
|
31
|
-
*/
|
|
32
|
-
export declare const createSetTimeoutTool: () => {
|
|
33
|
-
description: string;
|
|
34
|
-
args: {
|
|
35
|
-
taskTtlMinutes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
-
cleanupDelayMinutes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
-
};
|
|
38
|
-
execute(args: {
|
|
39
|
-
taskTtlMinutes?: string | undefined;
|
|
40
|
-
cleanupDelayMinutes?: string | undefined;
|
|
41
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* set_debug - Toggle debug logging
|
|
45
|
-
*/
|
|
46
|
-
export declare const createSetDebugTool: () => {
|
|
47
|
-
description: string;
|
|
48
|
-
args: {
|
|
49
|
-
component: import("zod").ZodString;
|
|
50
|
-
enable: import("zod").ZodBoolean;
|
|
51
|
-
};
|
|
52
|
-
execute(args: {
|
|
53
|
-
component: string;
|
|
54
|
-
enable: boolean;
|
|
55
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Factory to create all configuration tools
|
|
59
|
-
*/
|
|
60
|
-
export declare function createConfigTools(client?: unknown): Record<string, ReturnType<typeof tool>>;
|
package/dist/tools/git.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Git Branch Parser Tool
|
|
3
|
-
*
|
|
4
|
-
* Provides comprehensive Git branch information and parsing capabilities.
|
|
5
|
-
* Useful for understanding current workspace context before making changes.
|
|
6
|
-
*/
|
|
7
|
-
export interface BranchInfo {
|
|
8
|
-
name: string;
|
|
9
|
-
current: boolean;
|
|
10
|
-
isRemote: boolean;
|
|
11
|
-
upstream?: string;
|
|
12
|
-
ahead?: number;
|
|
13
|
-
behind?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface GitStatus {
|
|
16
|
-
branch: string;
|
|
17
|
-
staged: string[];
|
|
18
|
-
unstaged: string[];
|
|
19
|
-
untracked: string[];
|
|
20
|
-
conflicted: string[];
|
|
21
|
-
ahead?: number;
|
|
22
|
-
behind?: number;
|
|
23
|
-
}
|
|
24
|
-
export interface CommitInfo {
|
|
25
|
-
hash: string;
|
|
26
|
-
message: string;
|
|
27
|
-
author: string;
|
|
28
|
-
date: string;
|
|
29
|
-
files: string[];
|
|
30
|
-
}
|
|
31
|
-
export declare const gitBranchTool: (directory: string) => {
|
|
32
|
-
description: string;
|
|
33
|
-
args: {
|
|
34
|
-
action: import("zod").ZodEnum<{
|
|
35
|
-
status: "status";
|
|
36
|
-
diff: "diff";
|
|
37
|
-
current: "current";
|
|
38
|
-
list: "list";
|
|
39
|
-
recent: "recent";
|
|
40
|
-
all: "all";
|
|
41
|
-
}>;
|
|
42
|
-
baseBranch: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
-
};
|
|
44
|
-
execute(args: {
|
|
45
|
-
action: "status" | "diff" | "current" | "list" | "recent" | "all";
|
|
46
|
-
baseBranch?: string | undefined;
|
|
47
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
48
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getStatusEmoji } from "../constants/task.js";
|
|
2
|
-
/**
|
|
3
|
-
* Format duration between two timestamps
|
|
4
|
-
*/
|
|
5
|
-
export declare function formatDuration(start: Date, end?: Date): string;
|
|
6
|
-
/**
|
|
7
|
-
* Format duration from milliseconds to human-readable string
|
|
8
|
-
*/
|
|
9
|
-
export declare function formatDurationMs(ms: number): string;
|
|
10
|
-
/**
|
|
11
|
-
* Get emoji for task status
|
|
12
|
-
*/
|
|
13
|
-
export { getStatusEmoji };
|
package/dist/utils/index.d.ts
DELETED