opencode-manifold 0.5.20 → 0.5.22

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.
Files changed (2) hide show
  1. package/dist/index.js +31 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -618,12 +618,42 @@ var ManifoldPlugin = async (ctx) => {
618
618
  body: {
619
619
  service: "opencode-manifold",
620
620
  level: "info",
621
- message: "Open Manifold v2.2 (Socratic) loaded"
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
+ await client.app.log({
630
+ body: {
631
+ service: "opencode-manifold",
632
+ level: "info",
633
+ message: `Command intercepted: ${input.command}`
634
+ }
635
+ });
636
+ if (input.command === "manifold-init" || input.command === "/manifold-init") {
637
+ const initialized = await initProject(directory, client);
638
+ if (initialized.length > 0) {
639
+ output.parts = [
640
+ {
641
+ type: "text",
642
+ text: `Manifold initialized: ${initialized.join(", ")}`
643
+ }
644
+ ];
645
+ } else {
646
+ output.parts = [
647
+ {
648
+ type: "text",
649
+ text: "All Manifold files already present."
650
+ }
651
+ ];
652
+ }
653
+ } else if (input.command === "manifold-model-path") {
654
+ const modelPath = await getModelPath(client, input.sessionID || undefined);
655
+ output.parts = [{ type: "text", text: modelPath }];
656
+ }
627
657
  }
628
658
  };
629
659
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-manifold",
3
- "version": "0.5.20",
3
+ "version": "0.5.22",
4
4
  "description": "Multi-agent development system for opencode with persistent knowledge",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",