opencode-orchestrator 1.2.37 → 1.2.38
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/index.js +22 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36745,6 +36745,8 @@ var SanityCheckHook = class {
|
|
|
36745
36745
|
};
|
|
36746
36746
|
|
|
36747
36747
|
// src/hooks/features/mission-loop.ts
|
|
36748
|
+
import { rmSync, existsSync as existsSync7 } from "node:fs";
|
|
36749
|
+
import { join as join9 } from "node:path";
|
|
36748
36750
|
init_shared();
|
|
36749
36751
|
|
|
36750
36752
|
// src/core/progress/store.ts
|
|
@@ -37321,6 +37323,15 @@ var MissionControlHook = class {
|
|
|
37321
37323
|
const command = COMMANDS[parsed.command];
|
|
37322
37324
|
const { sessionID, sessions, directory } = ctx;
|
|
37323
37325
|
log(MISSION_MESSAGES.START_LOG);
|
|
37326
|
+
const opencodeDir = join9(directory, PATHS.OPENCODE);
|
|
37327
|
+
if (existsSync7(opencodeDir)) {
|
|
37328
|
+
try {
|
|
37329
|
+
rmSync(opencodeDir, { recursive: true, force: true });
|
|
37330
|
+
log(`[MissionLoop] Cleaned up previous state at ${opencodeDir}`);
|
|
37331
|
+
} catch (error92) {
|
|
37332
|
+
log(`[MissionLoop] Failed to cleanup ${opencodeDir}: ${error92}`);
|
|
37333
|
+
}
|
|
37334
|
+
}
|
|
37324
37335
|
ensureSessionInitialized(sessions, sessionID, directory);
|
|
37325
37336
|
activateMissionState(sessionID);
|
|
37326
37337
|
const prompt = parsed.args || "continue from where we left off";
|
|
@@ -37407,6 +37418,17 @@ var MissionControlHook = class {
|
|
|
37407
37418
|
log(MISSION_MESSAGES.COMPLETE_LOG + " " + buildVerificationSummary(verification));
|
|
37408
37419
|
const cleared = clearLoopState(directory);
|
|
37409
37420
|
parallelAgentManager.cleanup();
|
|
37421
|
+
if (cleared) {
|
|
37422
|
+
const opencodeDir = join9(directory, PATHS.OPENCODE);
|
|
37423
|
+
if (existsSync7(opencodeDir)) {
|
|
37424
|
+
try {
|
|
37425
|
+
rmSync(opencodeDir, { recursive: true, force: true });
|
|
37426
|
+
log(`[MissionLoop] Cleaned up final state at ${opencodeDir}`);
|
|
37427
|
+
} catch (error92) {
|
|
37428
|
+
log(`[MissionLoop] Failed to cleanup ${opencodeDir}: ${error92}`);
|
|
37429
|
+
}
|
|
37430
|
+
}
|
|
37431
|
+
}
|
|
37410
37432
|
if (cleared) {
|
|
37411
37433
|
const toastManager = getTaskToastManager();
|
|
37412
37434
|
if (toastManager) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "opencode-orchestrator",
|
|
3
3
|
"displayName": "OpenCode Orchestrator",
|
|
4
4
|
"description": "Distributed Cognitive Architecture for OpenCode. Turns simple prompts into specialized multi-agent workflows (Planner, Coder, Reviewer).",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.38",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|