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.
Files changed (101) hide show
  1. package/README.md +21 -23
  2. package/dist/agents/definitions.d.ts +1 -1
  3. package/dist/agents/orchestrator.d.ts +1 -1
  4. package/dist/agents/subagents/architect.d.ts +1 -1
  5. package/dist/agents/subagents/builder.d.ts +1 -1
  6. package/dist/agents/subagents/inspector.d.ts +1 -1
  7. package/dist/agents/subagents/recorder.d.ts +1 -1
  8. package/dist/core/agents/concurrency.d.ts +36 -0
  9. package/dist/core/agents/config.d.ts +9 -0
  10. package/dist/core/agents/format.d.ts +9 -0
  11. package/dist/core/agents/index.d.ts +7 -0
  12. package/dist/core/agents/interfaces/index.d.ts +5 -0
  13. package/dist/core/agents/interfaces/launch-input.d.ts +9 -0
  14. package/dist/core/agents/interfaces/parallel-task.d.ts +26 -0
  15. package/dist/core/agents/logger.d.ts +4 -0
  16. package/dist/core/agents/manager.d.ts +76 -0
  17. package/dist/core/agents/task-store.d.ts +28 -0
  18. package/dist/core/agents/types/index.d.ts +4 -0
  19. package/dist/core/agents/types/parallel-task-status.d.ts +4 -0
  20. package/dist/core/commands/index.d.ts +6 -0
  21. package/dist/core/commands/interfaces/background-task.d.ts +20 -0
  22. package/dist/core/commands/interfaces/index.d.ts +5 -0
  23. package/dist/core/commands/interfaces/run-background-options.d.ts +9 -0
  24. package/dist/core/commands/manager.d.ts +27 -0
  25. package/dist/core/commands/types/background-task-status.d.ts +4 -0
  26. package/dist/core/commands/types/index.d.ts +4 -0
  27. package/dist/core/orchestrator/index.d.ts +7 -0
  28. package/dist/core/orchestrator/interfaces/index.d.ts +5 -0
  29. package/dist/core/{state.d.ts → orchestrator/interfaces/session-state.d.ts} +4 -7
  30. package/dist/core/orchestrator/interfaces/task.d.ts +17 -0
  31. package/dist/core/orchestrator/state.d.ts +10 -0
  32. package/dist/core/{tasks.d.ts → orchestrator/task-graph.d.ts} +2 -14
  33. package/dist/core/orchestrator/types/index.d.ts +5 -0
  34. package/dist/core/orchestrator/types/task-status.d.ts +4 -0
  35. package/dist/core/orchestrator/types/task-type.d.ts +4 -0
  36. package/dist/index.d.ts +0 -2
  37. package/dist/index.js +588 -714
  38. package/dist/shared/{contracts/names.d.ts → agent.d.ts} +12 -0
  39. package/dist/shared/constants.d.ts +56 -0
  40. package/dist/tools/background-cmd/check.d.ts +14 -0
  41. package/dist/tools/background-cmd/index.d.ts +7 -0
  42. package/dist/tools/background-cmd/kill.d.ts +12 -0
  43. package/dist/tools/background-cmd/list.d.ts +17 -0
  44. package/dist/tools/background-cmd/run.d.ts +18 -0
  45. package/dist/tools/callAgent.d.ts +0 -0
  46. package/dist/tools/parallel/cancel-task.d.ts +13 -0
  47. package/dist/tools/parallel/delegate-task.d.ts +21 -0
  48. package/dist/tools/parallel/get-task-result.d.ts +13 -0
  49. package/dist/tools/parallel/index.d.ts +7 -0
  50. package/dist/tools/parallel/list-tasks.d.ts +13 -0
  51. package/dist/tools/rust.d.ts +0 -0
  52. package/dist/tools/search.d.ts +2 -9
  53. package/dist/tools/slashCommand.d.ts +0 -0
  54. package/dist/utils/binary.d.ts +0 -0
  55. package/dist/utils/common.d.ts +0 -0
  56. package/package.json +17 -7
  57. package/dist/agents/coder.d.ts +0 -2
  58. package/dist/agents/fixer.d.ts +0 -2
  59. package/dist/agents/names.d.ts +0 -12
  60. package/dist/agents/planner.d.ts +0 -2
  61. package/dist/agents/reviewer.d.ts +0 -2
  62. package/dist/agents/searcher.d.ts +0 -2
  63. package/dist/agents/subagents/coder.d.ts +0 -2
  64. package/dist/agents/subagents/executor.d.ts +0 -2
  65. package/dist/agents/subagents/fixer.d.ts +0 -2
  66. package/dist/agents/subagents/frontend-designer.d.ts +0 -2
  67. package/dist/agents/subagents/memory.d.ts +0 -2
  68. package/dist/agents/subagents/planner.d.ts +0 -2
  69. package/dist/agents/subagents/publisher.d.ts +0 -2
  70. package/dist/agents/subagents/reviewer.d.ts +0 -2
  71. package/dist/agents/subagents/searcher.d.ts +0 -2
  72. package/dist/agents/subagents/strategist.d.ts +0 -2
  73. package/dist/agents/subagents/surgeon.d.ts +0 -2
  74. package/dist/agents/subagents/types.d.ts +0 -7
  75. package/dist/agents/subagents/visualist.d.ts +0 -2
  76. package/dist/agents/types.d.ts +0 -7
  77. package/dist/cli.d.ts +0 -2
  78. package/dist/constants/agent.d.ts +0 -8
  79. package/dist/constants/index.d.ts +0 -7
  80. package/dist/constants/prompts.d.ts +0 -10
  81. package/dist/constants/task.d.ts +0 -12
  82. package/dist/constants/time.d.ts +0 -34
  83. package/dist/context/enforcer.d.ts +0 -47
  84. package/dist/core/async-agent.d.ts +0 -100
  85. package/dist/core/background.d.ts +0 -78
  86. package/dist/core/batch-processor.d.ts +0 -62
  87. package/dist/core/config.d.ts +0 -55
  88. package/dist/core/session-manager.d.ts +0 -39
  89. package/dist/parallel/optimizer.d.ts +0 -47
  90. package/dist/profiler/execution.d.ts +0 -40
  91. package/dist/prompts/shared.d.ts +0 -2
  92. package/dist/shared/contracts/interfaces.d.ts +0 -7
  93. package/dist/tasks.d.ts +0 -29
  94. package/dist/tools/async-agent.d.ts +0 -70
  95. package/dist/tools/background.d.ts +0 -55
  96. package/dist/tools/batch.d.ts +0 -53
  97. package/dist/tools/config.d.ts +0 -60
  98. package/dist/tools/git.d.ts +0 -48
  99. package/dist/utils/formatting.d.ts +0 -13
  100. package/dist/utils/index.d.ts +0 -8
  101. package/dist/utils/task.d.ts +0 -8
@@ -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>>;
@@ -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 };
@@ -1,8 +0,0 @@
1
- /**
2
- * Utility exports
3
- */
4
- export * from "./common.js";
5
- export * from "./sanity.js";
6
- export * from "./task.js";
7
- export * from "./formatting.js";
8
- export * from "./binary.js";
@@ -1,8 +0,0 @@
1
- /**
2
- * Generate a unique task ID in format task_xxxxxxxx
3
- */
4
- export declare function generateTaskId(): string;
5
- /**
6
- * Generate a unique job ID in format job_xxxxxxxx
7
- */
8
- export declare function generateJobId(): string;