opencode-orchestrator 0.8.19 → 0.8.20

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 (102) hide show
  1. package/dist/agents/commander.d.ts +1 -1
  2. package/dist/agents/definitions.d.ts +1 -1
  3. package/dist/agents/subagents/planner.d.ts +1 -1
  4. package/dist/agents/subagents/reviewer.d.ts +1 -1
  5. package/dist/agents/subagents/worker.d.ts +1 -1
  6. package/dist/core/agents/config.d.ts +1 -1
  7. package/dist/core/cache/constants.d.ts +2 -0
  8. package/dist/core/orchestrator/state.d.ts +2 -2
  9. package/dist/core/orchestrator/types/task-status.d.ts +2 -1
  10. package/dist/core/recovery/constants.d.ts +6 -3
  11. package/dist/core/task/interfaces/index.d.ts +1 -1
  12. package/dist/core/task/interfaces/task-node.d.ts +1 -1
  13. package/dist/index.js +317 -173
  14. package/dist/shared/agent/constants/agent-tokens.d.ts +11 -0
  15. package/dist/shared/agent/constants/index.d.ts +7 -0
  16. package/dist/shared/agent/{names.d.ts → constants/names.d.ts} +1 -2
  17. package/dist/shared/agent/index.d.ts +4 -4
  18. package/dist/shared/agent/{definition.d.ts → interfaces/agent-definition.d.ts} +1 -1
  19. package/dist/shared/agent/interfaces/concurrency-config.d.ts +9 -0
  20. package/dist/shared/agent/interfaces/index.d.ts +5 -0
  21. package/dist/shared/agent/types/agent-name.d.ts +5 -0
  22. package/dist/shared/agent/types/index.d.ts +4 -0
  23. package/dist/shared/cache/constants/cache.d.ts +11 -0
  24. package/dist/shared/cache/constants/index.d.ts +8 -0
  25. package/dist/shared/cache/index.d.ts +4 -0
  26. package/dist/shared/command/index.d.ts +5 -0
  27. package/dist/shared/command/interfaces/background-task.d.ts +20 -0
  28. package/dist/shared/command/interfaces/index.d.ts +5 -0
  29. package/dist/shared/command/interfaces/run-background-options.d.ts +9 -0
  30. package/dist/shared/command/types/background-task-status.d.ts +4 -0
  31. package/dist/shared/command/types/index.d.ts +4 -0
  32. package/dist/shared/core/constants/index.d.ts +7 -0
  33. package/dist/shared/core/index.d.ts +4 -0
  34. package/dist/shared/errors/index.d.ts +1 -1
  35. package/dist/shared/errors/patterns.d.ts +13 -0
  36. package/dist/shared/errors/retry.d.ts +1 -1
  37. package/dist/shared/index.d.ts +30 -0
  38. package/dist/shared/loop/constants/index.d.ts +5 -0
  39. package/dist/shared/loop/constants/loop.d.ts +17 -0
  40. package/dist/shared/loop/index.d.ts +6 -0
  41. package/dist/shared/loop/interfaces/index.d.ts +5 -0
  42. package/dist/shared/loop/interfaces/todo-stats.d.ts +11 -0
  43. package/dist/shared/loop/interfaces/todo.d.ts +13 -0
  44. package/dist/shared/loop/types/index.d.ts +5 -0
  45. package/dist/shared/loop/types/todo-priority.d.ts +4 -0
  46. package/dist/shared/loop/types/todo-status.d.ts +4 -0
  47. package/dist/shared/message/constants/index.d.ts +6 -0
  48. package/dist/shared/message/index.d.ts +4 -0
  49. package/dist/shared/notification/constants/index.d.ts +5 -0
  50. package/dist/shared/notification/constants/toast-duration.d.ts +19 -0
  51. package/dist/shared/notification/index.d.ts +6 -0
  52. package/dist/shared/notification/interfaces/index.d.ts +5 -0
  53. package/dist/shared/notification/interfaces/toast-message.d.ts +13 -0
  54. package/dist/shared/notification/interfaces/toast-options.d.ts +10 -0
  55. package/dist/shared/notification/types/index.d.ts +4 -0
  56. package/dist/shared/notification/types/toast-variant.d.ts +4 -0
  57. package/dist/shared/recovery/constants/history.d.ts +11 -0
  58. package/dist/shared/recovery/constants/index.d.ts +5 -0
  59. package/dist/shared/recovery/constants/recovery.d.ts +13 -0
  60. package/dist/shared/recovery/index.d.ts +6 -0
  61. package/dist/shared/recovery/interfaces/error-context.d.ts +11 -0
  62. package/dist/shared/recovery/interfaces/index.d.ts +5 -0
  63. package/dist/shared/recovery/interfaces/recovery-record.d.ts +10 -0
  64. package/dist/shared/recovery/types/index.d.ts +4 -0
  65. package/dist/shared/recovery/types/recovery-action.d.ts +4 -0
  66. package/dist/shared/session/constants/index.d.ts +7 -0
  67. package/dist/shared/session/constants/session-events.d.ts +10 -0
  68. package/dist/shared/session/index.d.ts +4 -0
  69. package/dist/shared/{constants → task/constants}/background-task.d.ts +3 -0
  70. package/dist/shared/task/constants/index.d.ts +7 -0
  71. package/dist/shared/{constants → task/constants}/parallel-task.d.ts +7 -4
  72. package/dist/shared/task/index.d.ts +6 -0
  73. package/dist/shared/task/interfaces/index.d.ts +7 -0
  74. package/dist/shared/task/interfaces/launch-input.d.ts +11 -0
  75. package/dist/shared/task/interfaces/parallel-task.d.ts +26 -0
  76. package/dist/shared/task/interfaces/resume-input.d.ts +16 -0
  77. package/dist/shared/task/interfaces/task-progress.d.ts +9 -0
  78. package/dist/shared/task/types/index.d.ts +4 -0
  79. package/dist/shared/task/types/parallel-task-status.d.ts +4 -0
  80. package/dist/shared/tool/constants/index.d.ts +5 -0
  81. package/dist/shared/tool/constants/tool-output.d.ts +9 -0
  82. package/dist/shared/tool/index.d.ts +4 -0
  83. package/package.json +1 -1
  84. package/dist/shared/agent.d.ts +0 -6
  85. package/dist/shared/constants/index.d.ts +0 -28
  86. package/dist/shared/constants.d.ts +0 -7
  87. package/dist/shared/error-patterns.d.ts +0 -6
  88. /package/dist/shared/{constants → agent/constants}/status.d.ts +0 -0
  89. /package/dist/shared/{constants → cache/constants}/cache-actions.d.ts +0 -0
  90. /package/dist/shared/{constants → cache/constants}/filter-status.d.ts +0 -0
  91. /package/dist/shared/{constants → core/constants}/id-prefix.d.ts +0 -0
  92. /package/dist/shared/{constants → core/constants}/memory-limits.d.ts +0 -0
  93. /package/dist/shared/{constants → core/constants}/paths.d.ts +0 -0
  94. /package/dist/shared/{constants → core/constants}/time.d.ts +0 -0
  95. /package/dist/shared/{constants → loop/constants}/mission-seal.d.ts +0 -0
  96. /package/dist/shared/{constants → message/constants}/part-types.d.ts +0 -0
  97. /package/dist/shared/{constants → message/constants}/prompts.d.ts +0 -0
  98. /package/dist/shared/{constants → message/constants}/slash-commands.d.ts +0 -0
  99. /package/dist/shared/{constants → notification/constants}/toast-variants.d.ts +0 -0
  100. /package/dist/shared/{event-types.d.ts → session/constants/event-types.d.ts} +0 -0
  101. /package/dist/shared/{constants → task/constants}/background-status.d.ts +0 -0
  102. /package/dist/shared/{constants → tool/constants}/tool-names.d.ts +0 -0
@@ -4,5 +4,5 @@
4
4
  * Master orchestrator with parallel execution capabilities.
5
5
  * Uses modular prompt fragments for flexible composition.
6
6
  */
7
- import { AgentDefinition } from "../shared/agent.js";
7
+ import type { AgentDefinition } from "../shared/agent/interfaces/index.js";
8
8
  export declare const commander: AgentDefinition;
@@ -7,5 +7,5 @@
7
7
  * - Worker: Implementation + Documentation
8
8
  * - Reviewer: Verification + Context Management
9
9
  */
10
- import { AgentDefinition } from "../shared/agent.js";
10
+ import type { AgentDefinition } from "../shared/agent/interfaces/index.js";
11
11
  export declare const AGENTS: Record<string, AgentDefinition>;
@@ -4,5 +4,5 @@
4
4
  * Strategic planning and research specialist.
5
5
  * Uses modular prompt fragments for flexible composition.
6
6
  */
7
- import { AgentDefinition } from "../../shared/agent.js";
7
+ import type { AgentDefinition } from "../../shared/agent/interfaces/index.js";
8
8
  export declare const planner: AgentDefinition;
@@ -5,5 +5,5 @@
5
5
  * ONLY agent authorized to mark [x] in TODO after verification.
6
6
  * Uses modular prompt fragments for flexible composition.
7
7
  */
8
- import { AgentDefinition } from "../../shared/agent.js";
8
+ import type { AgentDefinition } from "../../shared/agent/interfaces/index.js";
9
9
  export declare const reviewer: AgentDefinition;
@@ -4,5 +4,5 @@
4
4
  * Implementation and documentation specialist.
5
5
  * Uses modular prompt fragments for flexible composition.
6
6
  */
7
- import { AgentDefinition } from "../../shared/agent.js";
7
+ import type { AgentDefinition } from "../../shared/agent/interfaces/index.js";
8
8
  export declare const worker: AgentDefinition;
@@ -5,5 +5,5 @@ export declare const CONFIG: {
5
5
  readonly TASK_TTL_MS: number;
6
6
  readonly CLEANUP_DELAY_MS: number;
7
7
  readonly MIN_STABILITY_MS: number;
8
- readonly POLL_INTERVAL_MS: 1000;
8
+ readonly POLL_INTERVAL_MS: 500;
9
9
  };
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Document Cache Constants
3
+ *
4
+ * @deprecated Use CACHE from shared/constants instead
3
5
  */
4
6
  export declare const CACHE_DIR: ".opencode/docs";
5
7
  export declare const METADATA_FILE: ".opencode/docs/_metadata.json";
@@ -4,7 +4,7 @@
4
4
  import { SessionState } from "./interfaces/session-state.js";
5
5
  export declare const state: {
6
6
  missionActive: boolean;
7
- maxIterations: number;
8
- maxRetries: number;
7
+ maxIterations: 1000;
8
+ maxRetries: 3;
9
9
  sessions: Map<string, SessionState>;
10
10
  };
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Task Status - Re-export from central location
3
3
  */
4
- export { TASK_STATUS, ParallelTaskStatus as TaskStatus } from "../../../shared/constants.js";
4
+ export { TASK_STATUS } from "../../../shared/index.js";
5
+ export type { ParallelTaskStatus as TaskStatus } from "../../../shared/task/types/index.js";
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Recovery Constants
3
+ *
4
+ * @deprecated Use RECOVERY and HISTORY from shared/constants instead
5
+ * This file is kept for backward compatibility only.
3
6
  */
4
- export declare const MAX_RETRIES = 3;
5
- export declare const BASE_DELAY = 1000;
6
- export declare const MAX_HISTORY = 100;
7
+ export declare const MAX_RETRIES: 3;
8
+ export declare const BASE_DELAY: number;
9
+ export declare const MAX_HISTORY: 100;
@@ -5,4 +5,4 @@ export type { TaskNode, TaskStatus } from "./task-node.js";
5
5
  export type { TaskHierarchy } from "./task-hierarchy.js";
6
6
  export type { TaskProgress } from "./task-progress.js";
7
7
  export type { TaskInput } from "./task-input.js";
8
- export { TASK_STATUS } from "../../../shared/constants.js";
8
+ export { TASK_STATUS } from "../../../shared/index.js";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Task Node Interface
3
3
  */
4
- import type { ParallelTaskStatus } from "../../../shared/constants.js";
4
+ import type { ParallelTaskStatus } from "../../../shared/task/types/index.js";
5
5
  export type TaskStatus = ParallelTaskStatus;
6
6
  export interface TaskNode {
7
7
  id: string;