opencode-orchestrator 0.6.9 → 0.6.10
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 +27 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16910,6 +16910,13 @@ var OrchestratorPlugin = async (input) => {
|
|
|
16910
16910
|
console.log(`[orchestrator] Default agent: ${AGENT_NAMES.COMMANDER}`);
|
|
16911
16911
|
},
|
|
16912
16912
|
// -----------------------------------------------------------------
|
|
16913
|
+
// session.start hook - runs when a new session begins
|
|
16914
|
+
// -----------------------------------------------------------------
|
|
16915
|
+
"session.start": async (input2) => {
|
|
16916
|
+
log2("[index.ts] session.start", { sessionID: input2.sessionID, agent: input2.agent });
|
|
16917
|
+
presets.missionStarted(`Session ${input2.sessionID.slice(0, 12)}...`);
|
|
16918
|
+
},
|
|
16919
|
+
// -----------------------------------------------------------------
|
|
16913
16920
|
// chat.message hook - runs when user sends a message
|
|
16914
16921
|
// This is where we intercept commands and set up sessions
|
|
16915
16922
|
// -----------------------------------------------------------------
|
|
@@ -17060,6 +17067,26 @@ Anomaly count: ${stateSession.anomalyCount}
|
|
|
17060
17067
|
\u23F1\uFE0F [${currentTime}] Step ${session.step}/${session.maxSteps} | This step: ${stepDuration} | Total: ${totalElapsed}`;
|
|
17061
17068
|
},
|
|
17062
17069
|
// -----------------------------------------------------------------
|
|
17070
|
+
// session.end hook - runs when a session ends
|
|
17071
|
+
// -----------------------------------------------------------------
|
|
17072
|
+
"session.end": async (input2) => {
|
|
17073
|
+
const session = sessions.get(input2.sessionID);
|
|
17074
|
+
if (session) {
|
|
17075
|
+
const totalTime = Date.now() - session.startTime;
|
|
17076
|
+
const duration3 = totalTime < 6e4 ? `${Math.round(totalTime / 1e3)}s` : `${Math.round(totalTime / 6e4)}m`;
|
|
17077
|
+
log2("[index.ts] session.end", {
|
|
17078
|
+
sessionID: input2.sessionID,
|
|
17079
|
+
reason: input2.reason,
|
|
17080
|
+
steps: session.step,
|
|
17081
|
+
duration: duration3
|
|
17082
|
+
});
|
|
17083
|
+
sessions.delete(input2.sessionID);
|
|
17084
|
+
state.sessions.delete(input2.sessionID);
|
|
17085
|
+
clearSession(input2.sessionID);
|
|
17086
|
+
presets.sessionCompleted(input2.sessionID, duration3);
|
|
17087
|
+
}
|
|
17088
|
+
},
|
|
17089
|
+
// -----------------------------------------------------------------
|
|
17063
17090
|
// assistant.done hook - runs when the LLM finishes responding
|
|
17064
17091
|
// This is the heart of the "relentless loop" - we keep pushing it
|
|
17065
17092
|
// to continue until we see MISSION COMPLETE or hit the limit
|
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": "0.6.
|
|
5
|
+
"version": "0.6.10",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|