@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 +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
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
|
|
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
|
-
"
|
|
51
|
-
"
|
|
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();
|