opencode-conductor-plugin 1.1.0 → 1.1.1
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 +6 -6
- package/dist/utils/bootstrap.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,8 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
11
11
|
const __dirname = dirname(__filename);
|
|
12
12
|
const ConductorPlugin = async (ctx) => {
|
|
13
13
|
console.log("[Conductor] Plugin loading...");
|
|
14
|
-
|
|
14
|
+
// Run bootstrap in background to avoid hanging startup
|
|
15
|
+
bootstrap(ctx).catch(err => console.error("[Conductor] Bootstrap failed:", err));
|
|
15
16
|
return {
|
|
16
17
|
config: async (config) => {
|
|
17
18
|
console.log("[Conductor] config hook triggered");
|
|
@@ -23,19 +24,18 @@ const ConductorPlugin = async (ctx) => {
|
|
|
23
24
|
agentPrompt = await readFile(promptPath, "utf-8");
|
|
24
25
|
}
|
|
25
26
|
catch (e) {
|
|
26
|
-
console.error("[Conductor] Failed to read agent prompt
|
|
27
|
+
console.error("[Conductor] Failed to read agent prompt");
|
|
27
28
|
agentPrompt = "Specialized agent for Conductor spec-driven development.";
|
|
28
29
|
}
|
|
29
|
-
await
|
|
30
|
+
// Do not await toasts in the config hook
|
|
31
|
+
ctx.client.tui.showToast({
|
|
30
32
|
body: {
|
|
31
33
|
title: "Conductor",
|
|
32
34
|
message: isOMOActive ? "Conductor Agent & Commands registered" : "Conductor Commands registered",
|
|
33
35
|
variant: "success",
|
|
34
36
|
duration: 3000
|
|
35
37
|
}
|
|
36
|
-
}).catch((
|
|
37
|
-
console.error("[Conductor] Toast failed:", e);
|
|
38
|
-
});
|
|
38
|
+
}).catch(() => { });
|
|
39
39
|
// Register the Conductor Agent logic.
|
|
40
40
|
// User can override the model in their global opencode.json or oh-my-opencode.json
|
|
41
41
|
config.agent = config.agent || {};
|
package/dist/utils/bootstrap.js
CHANGED
|
@@ -37,7 +37,8 @@ export async function bootstrap(ctx) {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
if (installedAnything) {
|
|
40
|
-
await
|
|
40
|
+
// Do not await toasts during bootstrapping as the TUI might not be ready
|
|
41
|
+
ctx.client.tui.showToast({
|
|
41
42
|
body: {
|
|
42
43
|
title: "Conductor",
|
|
43
44
|
message: "First-run setup: Conductor agent and commands installed globally. Please restart OpenCode to enable slash commands.",
|