zenox 1.2.2 → 1.2.3
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/background/types.d.ts +3 -0
- package/dist/index.js +8 -3
- package/package.json +1 -1
|
@@ -13,16 +13,19 @@ export interface BackgroundTask {
|
|
|
13
13
|
startedAt: Date;
|
|
14
14
|
completedAt?: Date;
|
|
15
15
|
error?: string;
|
|
16
|
+
parentAgent?: string;
|
|
16
17
|
}
|
|
17
18
|
export interface LaunchInput {
|
|
18
19
|
agent: string;
|
|
19
20
|
prompt: string;
|
|
20
21
|
description: string;
|
|
21
22
|
parentSessionID: string;
|
|
23
|
+
parentAgent?: string;
|
|
22
24
|
}
|
|
23
25
|
export interface CompletionNotification {
|
|
24
26
|
allComplete: boolean;
|
|
25
27
|
message: string;
|
|
26
28
|
completedTasks: BackgroundTask[];
|
|
27
29
|
runningCount: number;
|
|
30
|
+
parentAgent?: string;
|
|
28
31
|
}
|
package/dist/index.js
CHANGED
|
@@ -4879,7 +4879,8 @@ class BackgroundManager {
|
|
|
4879
4879
|
description: input.description,
|
|
4880
4880
|
prompt: input.prompt,
|
|
4881
4881
|
status: "running",
|
|
4882
|
-
startedAt: new Date
|
|
4882
|
+
startedAt: new Date,
|
|
4883
|
+
parentAgent: input.parentAgent
|
|
4883
4884
|
};
|
|
4884
4885
|
this.tasks.set(task.id, task);
|
|
4885
4886
|
if (this.toastManager) {
|
|
@@ -5007,11 +5008,13 @@ Task: ${justCompleted?.id ?? "unknown"} (${justCompleted?.description ?? "unknow
|
|
|
5007
5008
|
${runningTasks.length} task(s) still running. Continue working.
|
|
5008
5009
|
</system-reminder>`;
|
|
5009
5010
|
}
|
|
5011
|
+
const parentAgent = completedTasks[0]?.parentAgent;
|
|
5010
5012
|
return {
|
|
5011
5013
|
allComplete,
|
|
5012
5014
|
message,
|
|
5013
5015
|
completedTasks,
|
|
5014
|
-
runningCount: runningTasks.length
|
|
5016
|
+
runningCount: runningTasks.length,
|
|
5017
|
+
parentAgent
|
|
5015
5018
|
};
|
|
5016
5019
|
}
|
|
5017
5020
|
listActiveTasks() {
|
|
@@ -17366,7 +17369,8 @@ Use for independent research tasks that benefit from parallelism.`,
|
|
|
17366
17369
|
agent: args.agent,
|
|
17367
17370
|
description: args.description,
|
|
17368
17371
|
prompt: args.prompt,
|
|
17369
|
-
parentSessionID: context.sessionID
|
|
17372
|
+
parentSessionID: context.sessionID,
|
|
17373
|
+
parentAgent: context.agent
|
|
17370
17374
|
});
|
|
17371
17375
|
const activeTasks = manager.listActiveTasks();
|
|
17372
17376
|
return `Background task launched successfully.
|
|
@@ -17867,6 +17871,7 @@ var ZenoxPlugin = async (ctx) => {
|
|
|
17867
17871
|
path: { id: mainSessionID },
|
|
17868
17872
|
body: {
|
|
17869
17873
|
noReply: !notification.allComplete,
|
|
17874
|
+
agent: notification.parentAgent,
|
|
17870
17875
|
parts: [{ type: "text", text: notification.message }]
|
|
17871
17876
|
}
|
|
17872
17877
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zenox",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "OpenCode plugin with specialized agents (explorer, librarian, oracle, ui-planner), background tasks for parallel execution, and smart orchestration",
|
|
5
5
|
"author": "Ayush",
|
|
6
6
|
"license": "MIT",
|