opencode-orchestrator 0.6.19 → 0.6.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.
- package/dist/index.js +2 -36
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14160,36 +14160,6 @@ var presets = {
|
|
|
14160
14160
|
})
|
|
14161
14161
|
};
|
|
14162
14162
|
|
|
14163
|
-
// src/core/session/store.ts
|
|
14164
|
-
var contexts = /* @__PURE__ */ new Map();
|
|
14165
|
-
var parentChildMap = /* @__PURE__ */ new Map();
|
|
14166
|
-
function create(sessionId, parentId) {
|
|
14167
|
-
const context = {
|
|
14168
|
-
sessionId,
|
|
14169
|
-
parentId,
|
|
14170
|
-
documents: /* @__PURE__ */ new Map(),
|
|
14171
|
-
findings: [],
|
|
14172
|
-
decisions: /* @__PURE__ */ new Map(),
|
|
14173
|
-
createdAt: /* @__PURE__ */ new Date(),
|
|
14174
|
-
updatedAt: /* @__PURE__ */ new Date()
|
|
14175
|
-
};
|
|
14176
|
-
contexts.set(sessionId, context);
|
|
14177
|
-
if (parentId) {
|
|
14178
|
-
if (!parentChildMap.has(parentId)) {
|
|
14179
|
-
parentChildMap.set(parentId, /* @__PURE__ */ new Set());
|
|
14180
|
-
}
|
|
14181
|
-
parentChildMap.get(parentId).add(sessionId);
|
|
14182
|
-
}
|
|
14183
|
-
return context;
|
|
14184
|
-
}
|
|
14185
|
-
function clear(sessionId) {
|
|
14186
|
-
const context = contexts.get(sessionId);
|
|
14187
|
-
if (context?.parentId) {
|
|
14188
|
-
parentChildMap.get(context.parentId)?.delete(sessionId);
|
|
14189
|
-
}
|
|
14190
|
-
contexts.delete(sessionId);
|
|
14191
|
-
}
|
|
14192
|
-
|
|
14193
14163
|
// src/core/agents/manager/task-launcher.ts
|
|
14194
14164
|
var TaskLauncher = class {
|
|
14195
14165
|
constructor(client, directory, store, concurrency, onTaskError, startPolling) {
|
|
@@ -14232,8 +14202,6 @@ var TaskLauncher = class {
|
|
|
14232
14202
|
};
|
|
14233
14203
|
this.store.set(taskId, task);
|
|
14234
14204
|
this.store.trackPending(input.parentSessionID, taskId);
|
|
14235
|
-
create(sessionID, input.parentSessionID);
|
|
14236
|
-
log2(`[task-launcher.ts] Created shared context for session ${sessionID}`);
|
|
14237
14205
|
this.startPolling();
|
|
14238
14206
|
this.client.session.prompt({
|
|
14239
14207
|
path: { id: sessionID },
|
|
@@ -14462,7 +14430,6 @@ var TaskCleaner = class {
|
|
|
14462
14430
|
}
|
|
14463
14431
|
this.client.session.delete({ path: { id: task.sessionID } }).catch(() => {
|
|
14464
14432
|
});
|
|
14465
|
-
clear(task.sessionID);
|
|
14466
14433
|
this.store.delete(taskId);
|
|
14467
14434
|
}
|
|
14468
14435
|
this.store.cleanEmptyNotifications();
|
|
@@ -14476,7 +14443,6 @@ var TaskCleaner = class {
|
|
|
14476
14443
|
await this.client.session.delete({ path: { id: sessionID } });
|
|
14477
14444
|
} catch {
|
|
14478
14445
|
}
|
|
14479
|
-
clear(sessionID);
|
|
14480
14446
|
}
|
|
14481
14447
|
this.store.delete(taskId);
|
|
14482
14448
|
log2(`Cleaned up ${taskId}`);
|
|
@@ -15388,7 +15354,7 @@ async function list() {
|
|
|
15388
15354
|
expired: new Date(entry.expiresAt) < now
|
|
15389
15355
|
}));
|
|
15390
15356
|
}
|
|
15391
|
-
async function
|
|
15357
|
+
async function clear() {
|
|
15392
15358
|
const metadata = await readMetadata();
|
|
15393
15359
|
const count = Object.keys(metadata.documents).length;
|
|
15394
15360
|
for (const filename of Object.keys(metadata.documents)) {
|
|
@@ -15865,7 +15831,7 @@ Cached: ${doc.fetchedAt}
|
|
|
15865
15831
|
${doc.content}`;
|
|
15866
15832
|
}
|
|
15867
15833
|
case "clear": {
|
|
15868
|
-
const count = await
|
|
15834
|
+
const count = await clear();
|
|
15869
15835
|
return `\u{1F5D1}\uFE0F Cleared ${count} cached documents`;
|
|
15870
15836
|
}
|
|
15871
15837
|
case "stats": {
|
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.20",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|