opencode-manifold 0.5.20 → 0.5.21
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 +24 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -618,12 +618,35 @@ var ManifoldPlugin = async (ctx) => {
|
|
|
618
618
|
body: {
|
|
619
619
|
service: "opencode-manifold",
|
|
620
620
|
level: "info",
|
|
621
|
-
message: "Open Manifold v2.
|
|
621
|
+
message: "Open Manifold v2.3 (Socratic) loaded"
|
|
622
622
|
}
|
|
623
623
|
});
|
|
624
624
|
return {
|
|
625
625
|
tool: {
|
|
626
626
|
execute_task: executeTaskTool(client, directory)
|
|
627
|
+
},
|
|
628
|
+
"command.execute.before": async (input, output) => {
|
|
629
|
+
if (input.command === "manifold-init") {
|
|
630
|
+
const initialized = await initProject(directory, client);
|
|
631
|
+
if (initialized.length > 0) {
|
|
632
|
+
output.parts = [
|
|
633
|
+
{
|
|
634
|
+
type: "text",
|
|
635
|
+
text: `Manifold initialized: ${initialized.join(", ")}`
|
|
636
|
+
}
|
|
637
|
+
];
|
|
638
|
+
} else {
|
|
639
|
+
output.parts = [
|
|
640
|
+
{
|
|
641
|
+
type: "text",
|
|
642
|
+
text: "All Manifold files already present."
|
|
643
|
+
}
|
|
644
|
+
];
|
|
645
|
+
}
|
|
646
|
+
} else if (input.command === "manifold-model-path") {
|
|
647
|
+
const modelPath = await getModelPath(client, input.sessionID || undefined);
|
|
648
|
+
output.parts = [{ type: "text", text: modelPath }];
|
|
649
|
+
}
|
|
627
650
|
}
|
|
628
651
|
};
|
|
629
652
|
};
|