opencode-manifold 0.5.19 → 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.
Files changed (2) hide show
  1. package/dist/index.js +24 -1
  2. package/package.json +6 -9
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.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
+ 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
  };
package/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "opencode-manifold",
3
- "version": "0.5.19",
3
+ "version": "0.5.21",
4
4
  "description": "Multi-agent development system for opencode with persistent knowledge",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "exports": {
8
- ".": {
9
- "import": "./dist/index.js",
10
- "default": "./dist/index.js"
11
- },
12
- "./tui": {
13
- "import": "./dist/tui.js",
14
- "default": "./dist/tui.js"
15
- }
8
+ ".": "./dist/index.js",
9
+ "./tui": "./dist/tui.js"
10
+ },
11
+ "opencode": {
12
+ "tui": "dist/tui.js"
16
13
  },
17
14
  "scripts": {
18
15
  "build": "bun build src/index.ts src/tui.ts --outdir dist --target node --external \"@opencode-ai/*\" --external \"zod\" --external \"better-sqlite3\"",