opencode-agent-modes 0.1.0 → 0.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/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/` on installation:
44
+ `~/.config/opencode/command/` when the plugin initializes:
45
45
 
46
46
  - `mode-performance.md`
47
47
  - `mode-economy.md`
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copies slash command markdown files to OpenCode's command directory.
3
+ *
4
+ * This function is called during plugin initialization to ensure
5
+ * command files are available without manual postinstall execution.
6
+ *
7
+ * @returns Number of files copied, or -1 if source directory not found
8
+ */
9
+ export declare function copyCommandFiles(): number;
@@ -1,3 +1,4 @@
1
1
  export * from './types.ts';
2
2
  export * from './loader.ts';
3
3
  export * from './initializer.ts';
4
+ export * from './command-installer.ts';