@tiny-fish/cli 0.37.1-next.299 → 0.37.1-next.300
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/dist/lib/harness.js +2 -0
- package/package.json +1 -1
package/dist/lib/harness.js
CHANGED
|
@@ -14,6 +14,8 @@ const hasVarWithPrefix = (env, prefix) => Object.keys(env).some((key) => key.sta
|
|
|
14
14
|
// First match wins. Base agents (claude-code) go last so embedding wrappers win.
|
|
15
15
|
const HARNESS_FINGERPRINTS = [
|
|
16
16
|
{ name: 'openclaw', matches: (env) => hasVarWithPrefix(env, 'OPENCLAW_MCP_') },
|
|
17
|
+
// omp hardcodes CLAUDECODE=1, so it must precede claude-code.
|
|
18
|
+
{ name: 'omp', matches: (env) => env['OMPCODE'] === '1' },
|
|
17
19
|
{ name: 'grok', matches: (env) => env['GROK_AGENT'] === '1' },
|
|
18
20
|
// Cursor's VS Code host sets CURSOR_* broadly; CURSOR_AGENT=1 flags the
|
|
19
21
|
// agent specifically, so gate on it rather than the prefix.
|