opencode-orchestrator 1.0.41 → 1.0.43
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 +17 -10
- package/dist/shared/core/constants/phases.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -272,7 +272,7 @@ var WAL_ACTIONS = {
|
|
|
272
272
|
var PHASES = {
|
|
273
273
|
PHASE_0: {
|
|
274
274
|
ID: "PHASE_0",
|
|
275
|
-
NAME: "DISCOVERY
|
|
275
|
+
NAME: "DISCOVERY",
|
|
276
276
|
DESCRIPTION: "Parallel intelligence gathering and project mapping",
|
|
277
277
|
MANDATORY: true
|
|
278
278
|
},
|
|
@@ -924,14 +924,15 @@ var PHILOSOPHY_LEARN_PRINCIPLE = "LEARN = DOCUMENT: What you discover, you recor
|
|
|
924
924
|
|
|
925
925
|
// src/shared/prompt/constants/mandates.ts
|
|
926
926
|
var PHASE_0_DIRECT_DISCOVERY = `**Direct Project Discovery**: Read the project directly to understand it.
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
927
|
+
|
|
928
|
+
0. **FRESH START**: If ${PATHS.TODO} or ${PATHS.CONTEXT} exist, assume they are from a previous task. Archive or overwrite them.
|
|
929
|
+
1. **STRUCTURE**: Run \`ls -la\` and \`find . -maxdepth 2 -type d | head -30\` to map the project layout.
|
|
930
|
+
2. **STACK**: Read config files (package.json, Cargo.toml, go.mod, etc.) to identify build/test commands.
|
|
931
|
+
3. **DOCS**: Read README.md and key documentation to understand the architecture.
|
|
932
|
+
4. **INFRA**: Check for Dockerfile, CI/CD configs, and infrastructure files.
|
|
933
|
+
5. **CONSOLIDATE**: FORCE OVERWRITE \`${PATHS.CONTEXT}\` with fresh findings. Do NOT read existing content; assume it is stale.
|
|
934
|
+
|
|
935
|
+
[EFFICIENT]: Direct reading is faster and cheaper than delegating to parallel scouts.`;
|
|
935
936
|
var PHASE_1_THINK_ANALYSIS = `### 1.1 ANALYZE & SCOPE (INPUT)
|
|
936
937
|
- **Review consolidated ${PATHS.CONTEXT} from Phase 0.**
|
|
937
938
|
- Map discovered files to the user's request.
|
|
@@ -17289,7 +17290,7 @@ var TaskLauncher = class {
|
|
|
17289
17290
|
this.store.set(task.id, task);
|
|
17290
17291
|
taskWAL.log(WAL_ACTIONS.LAUNCH, task).catch(() => {
|
|
17291
17292
|
});
|
|
17292
|
-
|
|
17293
|
+
const promptPromise = this.client.session.prompt({
|
|
17293
17294
|
path: { id: task.sessionID },
|
|
17294
17295
|
body: {
|
|
17295
17296
|
agent: task.agent,
|
|
@@ -17305,6 +17306,12 @@ var TaskLauncher = class {
|
|
|
17305
17306
|
parts: [{ type: PART_TYPES.TEXT, text: task.prompt }]
|
|
17306
17307
|
}
|
|
17307
17308
|
});
|
|
17309
|
+
await Promise.race([
|
|
17310
|
+
promptPromise,
|
|
17311
|
+
new Promise(
|
|
17312
|
+
(_, reject) => setTimeout(() => reject(new Error("Session prompt execution timed out after 30s")), 3e4)
|
|
17313
|
+
)
|
|
17314
|
+
]);
|
|
17308
17315
|
log(`[task-launcher.ts] Task ${task.id} (${task.agent}) started running`);
|
|
17309
17316
|
} catch (error45) {
|
|
17310
17317
|
this.concurrency.release(task.agent);
|
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.0.
|
|
5
|
+
"version": "1.0.43",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|