opencode-orchestrator 1.0.76 → 1.2.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/README.md +46 -47
- package/dist/agents/prompts/01_philosophy/execution_assurance.d.ts +1 -0
- package/dist/agents/prompts/01_philosophy/index.d.ts +5 -0
- package/dist/agents/prompts/01_philosophy/metadata.d.ts +19 -0
- package/dist/agents/prompts/02_discovery/agents/discovery_commander.d.ts +5 -0
- package/dist/agents/prompts/02_discovery/agents/discovery_planner.d.ts +5 -0
- package/dist/agents/prompts/02_discovery/agents/index.d.ts +2 -0
- package/dist/agents/prompts/02_discovery/discovery_core.d.ts +8 -0
- package/dist/agents/prompts/02_discovery/index.d.ts +6 -0
- package/dist/agents/prompts/03_planning/agents/index.d.ts +3 -0
- package/dist/agents/prompts/03_planning/agents/planning_commander.d.ts +5 -0
- package/dist/agents/prompts/03_planning/index.d.ts +11 -0
- package/dist/agents/prompts/03_planning/planning_core.d.ts +8 -0
- package/dist/agents/prompts/04_execution/agents/execution_commander.d.ts +5 -0
- package/dist/agents/prompts/04_execution/agents/execution_worker.d.ts +5 -0
- package/dist/agents/prompts/04_execution/agents/index.d.ts +2 -0
- package/dist/agents/prompts/04_execution/execution_core.d.ts +8 -0
- package/dist/agents/prompts/04_execution/execution_error_handling.d.ts +5 -0
- package/dist/agents/prompts/04_execution/index.d.ts +12 -0
- package/dist/agents/prompts/05_verification/agents/index.d.ts +2 -0
- package/dist/agents/prompts/05_verification/agents/verification_commander.d.ts +5 -0
- package/dist/agents/prompts/05_verification/index.d.ts +11 -0
- package/dist/agents/prompts/05_verification/verification_build.d.ts +5 -0
- package/dist/agents/prompts/05_verification/verification_core.d.ts +8 -0
- package/dist/agents/prompts/05_verification/verification_test.d.ts +5 -0
- package/dist/agents/prompts/06_mission/agents/index.d.ts +1 -0
- package/dist/agents/prompts/06_mission/agents/mission_commander.d.ts +5 -0
- package/dist/agents/prompts/06_mission/index.d.ts +7 -0
- package/dist/agents/prompts/06_mission/mission_core.d.ts +8 -0
- package/dist/agents/prompts/06_mission/mission_lifecycle.d.ts +5 -0
- package/dist/agents/prompts/07_agents/commander/commander_mandate.d.ts +5 -0
- package/dist/agents/prompts/07_agents/commander/index.d.ts +5 -0
- package/dist/agents/prompts/07_agents/planner/index.d.ts +4 -0
- package/dist/agents/prompts/07_agents/planner/planner_mandate.d.ts +5 -0
- package/dist/agents/prompts/07_agents/reviewer/index.d.ts +4 -0
- package/dist/agents/prompts/07_agents/reviewer/reviewer_mandate.d.ts +5 -0
- package/dist/agents/prompts/07_agents/worker/index.d.ts +4 -0
- package/dist/agents/prompts/07_agents/worker/worker_mandate.d.ts +5 -0
- package/dist/agents/prompts/08_tools/agents/index.d.ts +2 -0
- package/dist/agents/prompts/08_tools/index.d.ts +8 -0
- package/dist/agents/prompts/08_tools/tools_code_editing.d.ts +5 -0
- package/dist/agents/prompts/08_tools/tools_core.d.ts +8 -0
- package/dist/agents/prompts/08_tools/tools_testing.d.ts +5 -0
- package/dist/agents/prompts/index.d.ts +26 -14
- package/dist/core/agents/interfaces/session-pool.interface.d.ts +4 -0
- package/dist/core/agents/session-pool.d.ts +4 -0
- package/dist/core/loop/mission-loop.d.ts +8 -0
- package/dist/core/loop/todo-manager.d.ts +8 -4
- package/dist/core/todo/todo-manager.d.ts +36 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/registry.d.ts +9 -6
- package/dist/hooks/types.d.ts +7 -0
- package/dist/index.js +1869 -1440
- package/package.json +1 -1
- package/dist/agents/prompts/discovery/index.d.ts +0 -3
- package/dist/agents/prompts/execution/index.d.ts +0 -9
- package/dist/agents/prompts/mission/index.d.ts +0 -4
- package/dist/agents/prompts/philosophy/execution-assurance.d.ts +0 -2
- package/dist/agents/prompts/philosophy/index.d.ts +0 -4
- package/dist/agents/prompts/planning/index.d.ts +0 -8
- package/dist/agents/prompts/roles/commander/index.d.ts +0 -4
- package/dist/agents/prompts/roles/planner/index.d.ts +0 -3
- package/dist/agents/prompts/roles/reviewer/index.d.ts +0 -3
- package/dist/agents/prompts/roles/worker/index.d.ts +0 -3
- package/dist/agents/prompts/tools/index.d.ts +0 -5
- package/dist/agents/prompts/verification/index.d.ts +0 -7
- /package/dist/agents/prompts/{philosophy/anti-hallucination.d.ts → 01_philosophy/anti_hallucination.d.ts} +0 -0
- /package/dist/agents/prompts/{philosophy → 01_philosophy}/core.d.ts +0 -0
- /package/dist/agents/prompts/{philosophy → 01_philosophy}/modularity.d.ts +0 -0
- /package/dist/agents/prompts/{discovery/environment.d.ts → 02_discovery/discovery_environment.d.ts} +0 -0
- /package/dist/agents/prompts/{discovery/skills.d.ts → 02_discovery/discovery_skills.d.ts} +0 -0
- /package/dist/agents/prompts/{discovery/workspace.d.ts → 02_discovery/discovery_workspace.d.ts} +0 -0
- /package/dist/agents/prompts/{planning/planner-todo.d.ts → 03_planning/agents/planning_planner.d.ts} +0 -0
- /package/dist/agents/prompts/{planning/reviewer-todo-update.d.ts → 03_planning/agents/planning_reviewer.d.ts} +0 -0
- /package/dist/agents/prompts/{planning/decomposition.d.ts → 03_planning/planning_decomposition.d.ts} +0 -0
- /package/dist/agents/prompts/{planning/file-planning.d.ts → 03_planning/planning_file_planning.d.ts} +0 -0
- /package/dist/agents/prompts/{execution/parallel.d.ts → 03_planning/planning_parallel.d.ts} +0 -0
- /package/dist/agents/prompts/{planning/research.d.ts → 03_planning/planning_research.d.ts} +0 -0
- /package/dist/agents/prompts/{planning/todo-format.d.ts → 03_planning/planning_todo_format.d.ts} +0 -0
- /package/dist/agents/prompts/{planning/todo-rules.d.ts → 03_planning/planning_todo_rules.d.ts} +0 -0
- /package/dist/agents/prompts/{planning/todo-sync.d.ts → 03_planning/planning_todo_sync.d.ts} +0 -0
- /package/dist/agents/prompts/{execution/delegation.d.ts → 04_execution/execution_delegation.d.ts} +0 -0
- /package/dist/agents/prompts/{execution/file-assignment.d.ts → 04_execution/execution_file_assignment.d.ts} +0 -0
- /package/dist/agents/prompts/{execution/hyper-parallel.d.ts → 04_execution/execution_hyper_parallel.d.ts} +0 -0
- /package/dist/agents/prompts/{execution/isolation.d.ts → 04_execution/execution_isolation.d.ts} +0 -0
- /package/dist/agents/prompts/{execution/quality.d.ts → 04_execution/execution_quality.d.ts} +0 -0
- /package/dist/agents/prompts/{execution/strategy.d.ts → 04_execution/execution_strategy.d.ts} +0 -0
- /package/dist/agents/prompts/{execution/tdd.d.ts → 04_execution/execution_tdd.d.ts} +0 -0
- /package/dist/agents/prompts/{execution/workflow.d.ts → 04_execution/execution_workflow.d.ts} +0 -0
- /package/dist/agents/prompts/{verification/reviewer-process.d.ts → 05_verification/agents/verification_reviewer.d.ts} +0 -0
- /package/dist/agents/prompts/{verification/async-monitoring.d.ts → 05_verification/verification_async_monitoring.d.ts} +0 -0
- /package/dist/agents/prompts/{verification/evidence.d.ts → 05_verification/verification_evidence.d.ts} +0 -0
- /package/dist/agents/prompts/{verification/integration.d.ts → 05_verification/verification_integration.d.ts} +0 -0
- /package/dist/agents/prompts/{verification/process.d.ts → 05_verification/verification_strategy.d.ts} +0 -0
- /package/dist/agents/prompts/{verification/sync-check.d.ts → 05_verification/verification_sync_check.d.ts} +0 -0
- /package/dist/agents/prompts/{verification/sync-handling.d.ts → 05_verification/verification_sync_handling.d.ts} +0 -0
- /package/dist/agents/prompts/{mission/completion-conditions.d.ts → 06_mission/mission_completion_conditions.d.ts} +0 -0
- /package/dist/agents/prompts/{mission/loop-continuation.d.ts → 06_mission/mission_loop_continuation.d.ts} +0 -0
- /package/dist/agents/prompts/{mission/recovery.d.ts → 06_mission/mission_recovery.d.ts} +0 -0
- /package/dist/agents/prompts/{mission/status-tracking.d.ts → 06_mission/mission_status_tracking.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/commander/forbidden.d.ts → 07_agents/commander/commander_forbidden.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/commander/identity.d.ts → 07_agents/commander/commander_identity.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/commander/required.d.ts → 07_agents/commander/commander_required.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/commander/role.d.ts → 07_agents/commander/commander_role.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/planner/forbidden.d.ts → 07_agents/planner/planner_forbidden.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/planner/identity.d.ts → 07_agents/planner/planner_identity.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/planner/required.d.ts → 07_agents/planner/planner_required.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/reviewer/forbidden.d.ts → 07_agents/reviewer/reviewer_forbidden.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/reviewer/identity.d.ts → 07_agents/reviewer/reviewer_identity.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/reviewer/required.d.ts → 07_agents/reviewer/reviewer_required.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/worker/forbidden.d.ts → 07_agents/worker/worker_forbidden.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/worker/identity.d.ts → 07_agents/worker/worker_identity.d.ts} +0 -0
- /package/dist/agents/prompts/{roles/worker/required.d.ts → 07_agents/worker/worker_required.d.ts} +0 -0
- /package/dist/agents/prompts/{tools/reviewer-lsp.d.ts → 08_tools/agents/tools_reviewer.d.ts} +0 -0
- /package/dist/agents/prompts/{tools/worker-lsp.d.ts → 08_tools/agents/tools_worker.d.ts} +0 -0
- /package/dist/agents/prompts/{tools/ast.d.ts → 08_tools/tools_ast.d.ts} +0 -0
- /package/dist/agents/prompts/{tools/lsp.d.ts → 08_tools/tools_lsp.d.ts} +0 -0
- /package/dist/agents/prompts/{tools/search.d.ts → 08_tools/tools_search.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<img src="assets/logo.png" alt="logo" width="200" />
|
|
3
3
|
<h1>OpenCode Orchestrator</h1>
|
|
4
4
|
|
|
5
|
-
<p>Autonomous Multi-Agent Orchestration Engine for Software Engineering</p>
|
|
5
|
+
<p>Autonomous Multi-Agent Orchestration Engine for High-Integrity Software Engineering</p>
|
|
6
6
|
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
[](https://www.npmjs.com/package/opencode-orchestrator)
|
|
@@ -18,38 +18,38 @@ npm install -g opencode-orchestrator
|
|
|
18
18
|
|
|
19
19
|
Inside an OpenCode environment:
|
|
20
20
|
```bash
|
|
21
|
-
/task "Implement a new authentication module with JWT"
|
|
21
|
+
/task "Implement a new authentication module with JWT and audit logs"
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
26
|
## 🚀 Engine Workflow
|
|
27
27
|
|
|
28
|
-
OpenCode Orchestrator
|
|
28
|
+
OpenCode Orchestrator utilizes a **Hub-and-Spoke Topology** to execute complex engineering tasks through parallel, context-isolated sessions.
|
|
29
29
|
|
|
30
30
|
```text
|
|
31
31
|
[ User Task ]
|
|
32
32
|
│
|
|
33
33
|
┌──────────▼──────────┐
|
|
34
|
-
│ COMMANDER │◄───────────┐
|
|
34
|
+
│ COMMANDER │◄───────────┐ (Loop Phase)
|
|
35
35
|
└────────┬────────────┘ │
|
|
36
36
|
│ │
|
|
37
37
|
┌────────▼──────────┐ │
|
|
38
|
-
│ PLANNER │ (Todo)
|
|
38
|
+
│ PLANNER │ (Todo.md) │
|
|
39
39
|
└────────┬──────────┘ │
|
|
40
|
-
│ │ (
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
│ │ (MVCC Atomic Sync)
|
|
41
|
+
┌─────────────┼──────────────┐ │
|
|
42
|
+
▼ (Isolated Session Pool)▼ │
|
|
43
43
|
[ Session A ] [ Session B ] [ Session C ] │
|
|
44
44
|
[ Worker ] [ Worker ] [ Reviewer ] │
|
|
45
|
-
|
|
45
|
+
└─────────────┬──────────────┘ │
|
|
46
46
|
│ │
|
|
47
47
|
┌────────▼──────────┐ │
|
|
48
|
-
│
|
|
48
|
+
│ MSVP MONITOR │──────────────┘
|
|
49
49
|
└────────┬──────────┘
|
|
50
50
|
│
|
|
51
51
|
┌────────▼──────────┐
|
|
52
|
-
│
|
|
52
|
+
│ QUALITY ASSURANCE │
|
|
53
53
|
└────────┬──────────┘
|
|
54
54
|
│
|
|
55
55
|
[ ✨COMPLETED ]
|
|
@@ -57,68 +57,67 @@ OpenCode Orchestrator executes a **Linear Strategy** through **Parallel Sessions
|
|
|
57
57
|
|
|
58
58
|
---
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
## 🛠️ Technical Excellence
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
### ️ Atomic MVCC State Synchronization
|
|
63
|
+
The engine solves the "Concurrent TODO Update" problem using **Multi-Version Concurrency Control (MVCC) + Mutex**. Agents can safely mark tasks as complete in parallel without data loss or race conditions. Every state change is kryptographically hashed and logged for a complete audit trail.
|
|
63
64
|
|
|
64
|
-
###
|
|
65
|
-
|
|
65
|
+
### 🧩 Advanced Hook Orchestration
|
|
66
|
+
Execution flows are governed by a **Priority-Phase Hook Registry**. Hooks (Safety, UI, Protocol) are grouped into phases (`early`, `normal`, `late`) and executed using a **Topological Sort** to handle complex dependencies automatically, ensuring a predictable and stable environment.
|
|
66
67
|
|
|
67
|
-
###
|
|
68
|
-
|
|
68
|
+
### ️ Autonomous Recovery
|
|
69
|
+
- **Self-healing loops** with adaptive stagnation detection.
|
|
70
|
+
- **Proactive Agency**: Smart monitoring that audits logs and plans ahead during background tasks.
|
|
69
71
|
|
|
70
|
-
###
|
|
71
|
-
|
|
72
|
+
### ️ State-Level Session Isolation
|
|
73
|
+
Reused sessions in the **SessionPool** are explicitly reset using server-side compaction triggered by health monitors. This ensures that previous task context (old error messages, stale file references) never leaks into new tasks, maintaining 100% implementation integrity.
|
|
72
74
|
|
|
73
|
-
###
|
|
74
|
-
|
|
75
|
+
### 🚀 Zero-Payload Turbo Mode
|
|
76
|
+
Leverages `system.transform` to unshift massive agent instruction sets on the server side. This reduces initial message payloads by **90%+**, slashing latency and preventing context fragmentation during long autonomous loops.
|
|
75
77
|
|
|
76
78
|
---
|
|
77
79
|
|
|
78
80
|
## 🛠️ Key Innovations
|
|
79
81
|
|
|
80
|
-
### 🛡️ Self-Healing Mission Continuity
|
|
81
|
-
Survival-first design. The orchestrator cross-checks in-memory state with on-disk artifacts at every step. If the plugin's memory is cleared, it re-activates mission flags and agent instructions automatically upon the next event.
|
|
82
|
-
|
|
83
82
|
### 🧠 Hierarchical Memory System
|
|
84
|
-
Maintains focus across
|
|
83
|
+
Maintains focus across thousands of conversation turns using a 4-tier memory structure and **EMA-based Context Gating** to preserve "Architectural Truth" while pruning operational noise.
|
|
85
84
|
|
|
86
|
-
###
|
|
87
|
-
|
|
85
|
+
### Dynamic Concurrency Auto-Scaling
|
|
86
|
+
Slots for parallel implementation scale up automatically after a **3-success streak** and scale down aggressively upon detection of API instability or implementation failures.
|
|
88
87
|
|
|
89
|
-
###
|
|
90
|
-
|
|
88
|
+
### 🛡️ Neuro-Symbolic Safety
|
|
89
|
+
Combines LLM reasoning with deterministic **AST/LSP verification**. Every code change is verified by native system tools before being accepted into the master roadmap.
|
|
91
90
|
|
|
92
|
-
###
|
|
93
|
-
|
|
91
|
+
### 🔄 Adaptive Intelligence Loop
|
|
92
|
+
- **Stagnation Detection**: Automatically senses when no progress is made across multiple iterations.
|
|
93
|
+
- **Diagnostic Intervention**: Forces the agent into a "Diagnostic Mode" when stagnation is detected, mandating log audits and strategy pivots.
|
|
94
|
+
- **Proactive Agency**: Mandates Speculative Planning and Parallel Thinking during background task execution.
|
|
94
95
|
|
|
95
|
-
###
|
|
96
|
-
|
|
96
|
+
### 📊 Real-time TUI Monitor
|
|
97
|
+
A live dashboard directly in your TUI. Monitor **Mission Progress**, active **Agent Sub-sessions**, and **Technical Metrics** through optimized, protocol-safe channels.
|
|
97
98
|
|
|
98
99
|
---
|
|
99
100
|
|
|
100
|
-
## ⚡
|
|
101
|
+
## ⚡ Elite Multi-Agent Swarm
|
|
101
102
|
|
|
102
|
-
| Agent | Expertise |
|
|
103
|
-
|
|
104
|
-
| **Commander** | Mission
|
|
105
|
-
| **Planner** | Architect
|
|
106
|
-
| **Worker** |
|
|
107
|
-
| **Reviewer** |
|
|
103
|
+
| Agent | Expertise | Capability |
|
|
104
|
+
|:------|:-----|:---|
|
|
105
|
+
| **Commander** | Mission Hub | Session pooling, parallel thread control, state rehydration. |
|
|
106
|
+
| **Planner** | Architect | Symbolic mapping, dependency research, roadmap generation. |
|
|
107
|
+
| **Worker** | Implementer | High-throughput coding, TDD workflow, documentation. |
|
|
108
|
+
| **Reviewer** | Auditor | Rigid verification, LSP/Lint authority, final mission seal. |
|
|
108
109
|
|
|
109
110
|
---
|
|
110
111
|
|
|
111
112
|
## 📈 Performance Benchmarks
|
|
112
|
-
- **Throughput**:
|
|
113
|
-
- **
|
|
114
|
-
- **
|
|
113
|
+
- **Throughput**: 10+ concurrent agent sessions with adaptive slot scaling.
|
|
114
|
+
- **Accuracy**: 99.95% sync reliability via MVCC+Mutex transaction logic.
|
|
115
|
+
- **Efficiency**: 40% reduction in token burn via Incremental State & System Transform.
|
|
116
|
+
- **Uptime**: 100% mission survival through plugin restarts via S.H.R (Self-Healing Rehydration).
|
|
115
117
|
|
|
116
118
|
---
|
|
117
119
|
|
|
118
|
-
[
|
|
120
|
+
[Internal Architecture Deep-Dive →](docs/SYSTEM_ARCHITECTURE.md)
|
|
119
121
|
|
|
120
122
|
## 📄 License
|
|
121
123
|
MIT License.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EXECUTION_ASSURANCE: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prompt Metadata Type Definitions
|
|
3
|
+
*/
|
|
4
|
+
export interface PromptMetadata {
|
|
5
|
+
id: string;
|
|
6
|
+
category: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
usedBy: string[];
|
|
9
|
+
dependsOn: {
|
|
10
|
+
sameFolder?: string[];
|
|
11
|
+
otherFolders?: string[];
|
|
12
|
+
};
|
|
13
|
+
externalFiles?: Record<string, {
|
|
14
|
+
immutable: boolean;
|
|
15
|
+
reason: string;
|
|
16
|
+
}>;
|
|
17
|
+
tags?: string[];
|
|
18
|
+
}
|
|
19
|
+
export declare const createMetadata: (metadata: PromptMetadata) => PromptMetadata;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ╔════════════════════════════════════════════════════════════╗
|
|
3
|
+
* ║ DISCOVERY CORE PHILOSOPHY ║
|
|
4
|
+
* ╠════════════════════════════════════════════════════════════╣
|
|
5
|
+
* ║ 발견 단계의 핵심 철학: 실행 전 충분한 탐색 ║
|
|
6
|
+
* ╚════════════════════════════════════════════════════════════╝
|
|
7
|
+
*/
|
|
8
|
+
export declare const DISCOVERY_CORE = "\n# Discovery Phase Philosophy\n\nBefore any execution, thoroughly explore:\n1. Workspace structure\n2. Environment capabilities\n3. Available skills and tools\n4. Project patterns and conventions\n\nThe discovery phase sets the foundation for all subsequent actions.\n";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./planning_decomposition.js";
|
|
2
|
+
export * from "./planning_parallel.js";
|
|
3
|
+
export * from "./planning_todo_sync.js";
|
|
4
|
+
export * from "./planning_todo_format.js";
|
|
5
|
+
export * from "./planning_core.js";
|
|
6
|
+
export * from "./planning_todo_rules.js";
|
|
7
|
+
export * from "./planning_research.js";
|
|
8
|
+
export * from "./planning_file_planning.js";
|
|
9
|
+
export * from "./agents/planning_commander.js";
|
|
10
|
+
export * from "./agents/planning_planner.js";
|
|
11
|
+
export * from "./agents/planning_reviewer.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ╔════════════════════════════════════════════════════════════╗
|
|
3
|
+
* ║ PLANNING CORE PHILOSOPHY ║
|
|
4
|
+
* ╠════════════════════════════════════════════════════════════╣
|
|
5
|
+
* ║ 계획 단계의 핵심 철학: 실행 가능한 명확한 계획 수립 ║
|
|
6
|
+
* ╚════════════════════════════════════════════════════════════╝
|
|
7
|
+
*/
|
|
8
|
+
export declare const PLANNING_CORE = "\n# Planning Phase Philosophy\n\nCreate actionable, granular plans:\n1. Break down complex tasks into atomic units\n2. Identify dependencies and execution order\n3. Plan for parallel execution where possible\n4. Define clear success criteria\n\nGood planning makes execution straightforward.\n";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ╔════════════════════════════════════════════════════════════╗
|
|
3
|
+
* ║ EXECUTION CORE PHILOSOPHY ║
|
|
4
|
+
* ╠════════════════════════════════════════════════════════════╣
|
|
5
|
+
* ║ 실행 단계의 핵심 철학: 계획을 정확하게 실행 ║
|
|
6
|
+
* ╚════════════════════════════════════════════════════════════╝
|
|
7
|
+
*/
|
|
8
|
+
export declare const EXECUTION_CORE = "\n# Execution Phase Philosophy\n\nExecute with precision and quality:\n1. Follow the plan systematically\n2. Handle errors gracefully\n3. Provide clear progress updates\n4. Maintain code quality standards\n\nExecution transforms plans into reality.\n";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./execution_quality.js";
|
|
2
|
+
export * from "./execution_error_handling.js";
|
|
3
|
+
export * from "./execution_delegation.js";
|
|
4
|
+
export * from "./execution_file_assignment.js";
|
|
5
|
+
export * from "./execution_workflow.js";
|
|
6
|
+
export * from "./execution_core.js";
|
|
7
|
+
export * from "./execution_strategy.js";
|
|
8
|
+
export * from "./execution_tdd.js";
|
|
9
|
+
export * from "./execution_isolation.js";
|
|
10
|
+
export * from "./execution_hyper_parallel.js";
|
|
11
|
+
export * from "./agents/execution_worker.js";
|
|
12
|
+
export * from "./agents/execution_commander.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./verification_evidence.js";
|
|
2
|
+
export * from "./verification_sync_check.js";
|
|
3
|
+
export * from "./verification_integration.js";
|
|
4
|
+
export * from "./verification_sync_handling.js";
|
|
5
|
+
export * from "./verification_strategy.js";
|
|
6
|
+
export * from "./verification_build.js";
|
|
7
|
+
export * from "./verification_test.js";
|
|
8
|
+
export * from "./verification_core.js";
|
|
9
|
+
export * from "./verification_async_monitoring.js";
|
|
10
|
+
export * from "./agents/verification_reviewer.js";
|
|
11
|
+
export * from "./agents/verification_commander.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ╔════════════════════════════════════════════════════════════╗
|
|
3
|
+
* ║ VERIFICATION CORE PHILOSOPHY ║
|
|
4
|
+
* ╠════════════════════════════════════════════════════════════╣
|
|
5
|
+
* ║ 검증 단계의 핵심 철학: 실행 기반 품질 보증 ║
|
|
6
|
+
* ╚════════════════════════════════════════════════════════════╝
|
|
7
|
+
*/
|
|
8
|
+
export declare const VERIFICATION_CORE = "\n# Verification Phase Philosophy\n\nVerify through actual execution:\n1. Build the project\n2. Run tests\n3. Check linting and type errors\n4. Validate runtime behavior\n\nReal execution is the ultimate verification.\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./mission_commander.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./mission_status_tracking.js";
|
|
2
|
+
export * from "./mission_completion_conditions.js";
|
|
3
|
+
export * from "./mission_loop_continuation.js";
|
|
4
|
+
export * from "./mission_recovery.js";
|
|
5
|
+
export * from "./mission_lifecycle.js";
|
|
6
|
+
export * from "./mission_core.js";
|
|
7
|
+
export * from "./agents/mission_commander.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ╔════════════════════════════════════════════════════════════╗
|
|
3
|
+
* ║ MISSION CORE PHILOSOPHY ║
|
|
4
|
+
* ╠════════════════════════════════════════════════════════════╣
|
|
5
|
+
* ║ 미션 관리의 핵심 철학: 전체 생명주기 관리 ║
|
|
6
|
+
* ╚════════════════════════════════════════════════════════════╝
|
|
7
|
+
*/
|
|
8
|
+
export declare const MISSION_CORE = "\n# Mission Management Philosophy\n\nManage the entire mission lifecycle:\n1. Track mission status throughout execution\n2. Handle recovery from failures\n3. Determine completion conditions\n4. Ensure clean mission closure\n\nA mission succeeds when all objectives are met.\n";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./tools_core.js";
|
|
2
|
+
export * from "./tools_search.js";
|
|
3
|
+
export * from "./tools_testing.js";
|
|
4
|
+
export * from "./tools_lsp.js";
|
|
5
|
+
export * from "./tools_ast.js";
|
|
6
|
+
export * from "./tools_code_editing.js";
|
|
7
|
+
export * from "./agents/tools_reviewer.js";
|
|
8
|
+
export * from "./agents/tools_worker.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ╔════════════════════════════════════════════════════════════╗
|
|
3
|
+
* ║ TOOLS CORE PHILOSOPHY ║
|
|
4
|
+
* ╠════════════════════════════════════════════════════════════╣
|
|
5
|
+
* ║ 도구 사용의 핵심 철학: 올바른 도구를 올바르게 사용 ║
|
|
6
|
+
* ╚════════════════════════════════════════════════════════════╝
|
|
7
|
+
*/
|
|
8
|
+
export declare const TOOLS_CORE = "\n# Tools Usage Philosophy\n\nUse the right tool for the right job:\n1. Understand each tool's capabilities and limitations\n2. Choose the most appropriate tool for each task\n3. Use tools efficiently and correctly\n4. Validate tool outputs\n\nProper tool usage amplifies effectiveness.\n";
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Exports all modular prompt fragments from the new structure.
|
|
2
|
+
* Prompts Index
|
|
5
3
|
*/
|
|
6
|
-
export * from "./
|
|
7
|
-
export
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
4
|
+
export * from "./01_philosophy/index.js";
|
|
5
|
+
export { AUTONOMOUS_MANDATE, PHASE_0_DIRECT_DISCOVERY, PHASE_1_THINK_ANALYSIS, PHASE_5_MSVP, HPFA_RULES } from "../../shared/index.js";
|
|
6
|
+
export * from "./02_discovery/index.js";
|
|
7
|
+
export * from "./03_planning/index.js";
|
|
8
|
+
export * from "./04_execution/index.js";
|
|
9
|
+
export * from "./05_verification/index.js";
|
|
10
|
+
export * from "./06_mission/index.js";
|
|
11
|
+
export * from "./07_agents/commander/commander_role.js";
|
|
12
|
+
export * from "./07_agents/commander/commander_identity.js";
|
|
13
|
+
export * from "./07_agents/commander/commander_forbidden.js";
|
|
14
|
+
export * from "./07_agents/commander/commander_required.js";
|
|
15
|
+
export * from "./07_agents/commander/commander_mandate.js";
|
|
16
|
+
export * from "./07_agents/planner/planner_identity.js";
|
|
17
|
+
export * from "./07_agents/planner/planner_forbidden.js";
|
|
18
|
+
export * from "./07_agents/planner/planner_required.js";
|
|
19
|
+
export * from "./07_agents/planner/planner_mandate.js";
|
|
20
|
+
export * from "./07_agents/worker/worker_identity.js";
|
|
21
|
+
export * from "./07_agents/worker/worker_forbidden.js";
|
|
22
|
+
export * from "./07_agents/worker/worker_required.js";
|
|
23
|
+
export * from "./07_agents/worker/worker_mandate.js";
|
|
24
|
+
export * from "./07_agents/reviewer/reviewer_identity.js";
|
|
25
|
+
export * from "./07_agents/reviewer/reviewer_forbidden.js";
|
|
26
|
+
export * from "./07_agents/reviewer/reviewer_required.js";
|
|
27
|
+
export * from "./07_agents/reviewer/reviewer_mandate.js";
|
|
28
|
+
export * from "./08_tools/index.js";
|
|
@@ -19,6 +19,10 @@ export interface PooledSession {
|
|
|
19
19
|
reuseCount: number;
|
|
20
20
|
/** Whether this session is currently in use */
|
|
21
21
|
inUse: boolean;
|
|
22
|
+
/** Timestamp when the session was last reset/compacted */
|
|
23
|
+
lastResetAt?: Date;
|
|
24
|
+
/** Health status of the session */
|
|
25
|
+
health: "healthy" | "degraded" | "unhealthy";
|
|
22
26
|
}
|
|
23
27
|
export interface SessionPoolConfig {
|
|
24
28
|
/** Maximum number of sessions per agent type (default: 5) */
|
|
@@ -45,6 +45,10 @@ export declare class SessionPool implements ISessionPool {
|
|
|
45
45
|
* Shutdown the pool.
|
|
46
46
|
*/
|
|
47
47
|
shutdown(): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Reset/Compact a session to clear context for next reuse.
|
|
50
|
+
*/
|
|
51
|
+
private resetSession;
|
|
48
52
|
private getPoolKey;
|
|
49
53
|
private createSession;
|
|
50
54
|
private deleteSession;
|
|
@@ -20,6 +20,10 @@ export interface MissionLoopState {
|
|
|
20
20
|
startedAt: string;
|
|
21
21
|
/** Last activity timestamp */
|
|
22
22
|
lastActivity?: string;
|
|
23
|
+
/** Last known progress string (e.g., "3/10") */
|
|
24
|
+
lastProgress?: string;
|
|
25
|
+
/** Number of iterations without progress */
|
|
26
|
+
stagnationCount?: number;
|
|
23
27
|
}
|
|
24
28
|
export interface MissionLoopOptions {
|
|
25
29
|
/** Maximum iterations before stopping (default: 1000) */
|
|
@@ -67,3 +71,7 @@ export declare function generateCompletionNotification(state: MissionLoopState):
|
|
|
67
71
|
* Generate max iterations reached notification
|
|
68
72
|
*/
|
|
69
73
|
export declare function generateMaxIterationsNotification(state: MissionLoopState): string;
|
|
74
|
+
/**
|
|
75
|
+
* Stagnation intervention prompt
|
|
76
|
+
*/
|
|
77
|
+
export declare const STAGNATION_INTERVENTION = "\n<system_intervention type=\"stagnation_detected\">\n\u26A0\uFE0F **\uACBD\uACE0: \uC9C4\uD589 \uC815\uCCB4 \uAC10\uC9C0 (STAGNATION DETECTED)**\n\uCD5C\uADFC \uC5EC\uB7EC \uD134 \uB3D9\uC548 \uC2E4\uC9C8\uC801\uC778 \uC9C4\uC804\uC774 \uAC10\uC9C0\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB2E8\uC21C \"\uBAA8\uB2C8\uD130\uB9C1\"\uC774\uB098 \uAC19\uC740 \uD589\uB3D9\uC744 \uBC18\uBCF5\uD558\uB294 \uAC83\uC740 \uAE08\uC9C0\uB429\uB2C8\uB2E4.\n\n**\uC790\uC728\uC801 \uC9C4\uB2E8 \uBC0F \uD574\uACB0 \uC9C0\uCE68:**\n1. **\uC2E4\uC2DC\uAC04 \uB85C\uADF8 \uD655\uC778**: `check_background_task` \uB610\uB294 `read_file`\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC9C4\uD589 \uC911\uC778 \uC791\uC5C5\uC758 \uCD9C\uB825 \uB85C\uADF8\uB97C \uC9C1\uC811 \uD655\uC778\uD558\uC2ED\uC2DC\uC624.\n2. **\uD504\uB85C\uC138\uC2A4 \uC0DD\uC874 \uC9C4\uB2E8**: \uC791\uC5C5\uC774 \uC880\uBE44 \uC0C1\uD0DC\uC774\uAC70\uB098 \uBA48\uCD98 \uAC83 \uAC19\uB2E4\uBA74 \uACFC\uAC10\uD558\uAC8C `kill`\uD558\uACE0 \uB2E8\uACC4\uB97C \uC138\uBD84\uD654\uD558\uC5EC \uB2E4\uC2DC \uC2E4\uD589\uD558\uC2ED\uC2DC\uC624.\n3. **\uC804\uB7B5 \uC804\uD658**: \uB3D9\uC77C\uD55C \uC811\uADFC \uBC29\uC2DD\uC774 \uC2E4\uD328\uD558\uACE0 \uC788\uB2E4\uBA74, \uB2E4\uB978 \uB3C4\uAD6C\uB098 \uBC29\uBC95\uC744 \uC0AC\uC6A9\uD558\uC5EC \uBAA9\uD45C\uC5D0 \uB3C4\uB2EC\uD558\uC2ED\uC2DC\uC624.\n\n**\uC9C0\uAE08 \uBC14\uB85C \uB2A5\uB3D9\uC801\uC73C\uB85C \uAC1C\uC785\uD558\uC2ED\uC2DC\uC624. \uB300\uAE30\uD558\uC9C0 \uB9C8\uC2ED\uC2DC\uC624.**\n</system_intervention>";
|