opencode-agent-modes 0.3.0 → 0.3.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/README.md CHANGED
@@ -41,7 +41,7 @@ Add the plugin to your `opencode.json`:
41
41
  ```
42
42
 
43
43
  The following command files are automatically copied to
44
- `~/.config/opencode/command/` when the plugin initializes:
44
+ `~/.config/opencode/commands/` when the plugin initializes:
45
45
 
46
46
  - `mode-performance.md`
47
47
  - `mode-economy.md`
@@ -135,7 +135,7 @@ To add a custom preset (e.g., "premium"):
135
135
  }
136
136
  ```
137
137
 
138
- 2. Create a command file at `~/.config/opencode/command/mode-premium.md`:
138
+ 2. Create a command file at `~/.config/opencode/commands/mode-premium.md`:
139
139
 
140
140
  ```md
141
141
  ---
package/dist/index.js CHANGED
@@ -1,12 +1,16 @@
1
1
  // @bun
2
2
  var __defProp = Object.defineProperty;
3
+ var __returnValue = (v) => v;
4
+ function __exportSetter(name, newValue) {
5
+ this[name] = __returnValue.bind(null, newValue);
6
+ }
3
7
  var __export = (target, all) => {
4
8
  for (var name in all)
5
9
  __defProp(target, name, {
6
10
  get: all[name],
7
11
  enumerable: true,
8
12
  configurable: true,
9
- set: (newValue) => all[name] = () => newValue
13
+ set: __exportSetter.bind(all, name)
10
14
  });
11
15
  };
12
16
 
@@ -13868,7 +13872,7 @@ import { copyFileSync, existsSync, mkdirSync, readdirSync } from "fs";
13868
13872
  import { homedir as homedir2 } from "os";
13869
13873
  import { dirname, join as join2 } from "path";
13870
13874
  import { fileURLToPath } from "url";
13871
- var COMMANDS_DEST = join2(homedir2(), ".config", "opencode", "command");
13875
+ var COMMANDS_DEST = join2(homedir2(), ".config", "opencode", "commands");
13872
13876
  function findCommandsDir() {
13873
13877
  const __dirname2 = dirname(fileURLToPath(import.meta.url));
13874
13878
  const candidates = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-agent-modes",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "OpenCode plugin to switch agent modes between performance and economy presets",
5
5
  "module": "src/index.ts",
6
6
  "main": "dist/index.js",