oh-my-opencode 0.1.28 → 0.1.29
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 +11 -1
- package/dist/hooks/pulse-monitor.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/mcp/index.d.ts +0 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -138,7 +138,17 @@ I believe in the right tool for the job. For your wallet's sake, use CLIProxyAPI
|
|
|
138
138
|
- **Thinking Disabled Violation**: When thinking blocks exist but thinking is disabled → strips thinking blocks
|
|
139
139
|
- **Empty Content Message**: When message has only thinking/meta blocks without actual content → injects "(interrupted)" text via filesystem
|
|
140
140
|
- **Comment Checker**: Detects and reports unnecessary comments after code modifications. Smartly ignores valid patterns (BDD, directives, docstrings, shebangs) to keep the codebase clean from AI-generated artifacts.
|
|
141
|
-
- **Directory AGENTS.md Injector**: Automatically injects `AGENTS.md` contents when reading files. Searches upward from the file's directory to project root,
|
|
141
|
+
- **Directory AGENTS.md Injector**: Automatically injects `AGENTS.md` contents when reading files. Searches upward from the file's directory to project root, collecting **all** `AGENTS.md` files along the path hierarchy. This enables nested, directory-specific instructions:
|
|
142
|
+
```
|
|
143
|
+
project/
|
|
144
|
+
├── AGENTS.md # Project-wide context
|
|
145
|
+
├── src/
|
|
146
|
+
│ ├── AGENTS.md # src-specific context
|
|
147
|
+
│ └── components/
|
|
148
|
+
│ ├── AGENTS.md # Component-specific context
|
|
149
|
+
│ └── Button.tsx # Reading this injects ALL 3 AGENTS.md files
|
|
150
|
+
```
|
|
151
|
+
When reading `Button.tsx`, the hook injects contexts in order: `project/AGENTS.md` → `src/AGENTS.md` → `components/AGENTS.md`. Each directory's context is injected only once per session. Inspired by Claude Code's CLAUDE.md feature.
|
|
142
152
|
|
|
143
153
|
### Agents
|
|
144
154
|
- **oracle** (`openai/gpt-5.1`): The architect. Expert in code reviews and strategy. Uses GPT-5.1 for its unmatched logic and reasoning capabilities. Inspired by AmpCode.
|
|
@@ -4,7 +4,7 @@ export declare function createPulseMonitorHook(ctx: PluginInput): {
|
|
|
4
4
|
event: any;
|
|
5
5
|
}) => Promise<void>;
|
|
6
6
|
"tool.execute.before": () => Promise<void>;
|
|
7
|
-
"tool.execute.after": (
|
|
7
|
+
"tool.execute.after": (input: {
|
|
8
8
|
sessionID: string;
|
|
9
9
|
}) => Promise<void>;
|
|
10
10
|
};
|
package/dist/index.js
CHANGED
|
@@ -1790,7 +1790,11 @@ function createPulseMonitorHook(ctx) {
|
|
|
1790
1790
|
"tool.execute.before": async () => {
|
|
1791
1791
|
stopMonitoring();
|
|
1792
1792
|
},
|
|
1793
|
-
"tool.execute.after": async (
|
|
1793
|
+
"tool.execute.after": async (input) => {
|
|
1794
|
+
if (input.sessionID && currentSessionID === input.sessionID) {
|
|
1795
|
+
lastHeartbeat = Date.now();
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1794
1798
|
};
|
|
1795
1799
|
}
|
|
1796
1800
|
// src/hooks/directory-agents-injector/index.ts
|
package/dist/mcp/index.d.ts
CHANGED