@fpr1m3/opencode-pai-plugin 1.0.0 → 1.0.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
@@ -43,12 +43,12 @@ The plugin centers around the `PAI_DIR` environment variable.
43
43
 
44
44
  ## Quick Start
45
45
 
46
- Add the plugin to your global `opencode.json` configuration file (typically located at `~/.config/opencode/opencode.json`). OpenCode will automatically install the plugin from GitHub on its next startup.
46
+ Add the plugin to your global `opencode.json` configuration file (typically located at `~/.config/opencode/opencode.json`). OpenCode will automatically install the plugin from the registry on its next startup.
47
47
 
48
48
  ```json
49
49
  {
50
- "plugins": [
51
- "github:fpr1m3/opencode-pai-plugin"
50
+ "plugin": [
51
+ "@fpr1m3/opencode-pai-plugin@1.0.0"
52
52
  ]
53
53
  }
54
54
  ```
package/dist/index.js CHANGED
@@ -167,8 +167,8 @@ export const PAIPlugin = async ({ worktree }) => {
167
167
  }
168
168
  }
169
169
  }
170
- // Handle session deletion / end
171
- if (event.type === 'session.deleted') {
170
+ // Handle session deletion / end or idle (for one-shot commands)
171
+ if (event.type === 'session.deleted' || event.type === 'session.idle') {
172
172
  if (logger) {
173
173
  await logger.generateSessionSummary();
174
174
  logger.flush();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fpr1m3/opencode-pai-plugin",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "description": "Personal AI Infrastructure (PAI) plugin for OpenCode",
6
6
  "main": "dist/index.js",