@cleocode/adapters 2026.5.82 → 2026.5.84

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.
@@ -1 +1 @@
1
- {"version":3,"file":"context-monitor.d.ts","sourceRoot":"","sources":["../../../src/providers/claude-code/context-monitor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAkCzE;;;;;;;;;;;;GAYG;AACH,qBAAa,gCAAiC,YAAW,6BAA6B;IACpF,mEAAmE;IACnE,OAAO,CAAC,YAAY,CAAgC;IAEpD,6EAA6E;IACvE,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IA0DxE,+EAA+E;IAC/E,0BAA0B,IAAI,YAAY,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,aAAa;IAsChG,oFAAoF;IACpF,mBAAmB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAS9C,6EAA6E;IAC7E,oBAAoB,IAAI,MAAM;CAY/B"}
1
+ {"version":3,"file":"context-monitor.d.ts","sourceRoot":"","sources":["../../../src/providers/claude-code/context-monitor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAmCzE;;;;;;;;;;;;GAYG;AACH,qBAAa,gCAAiC,YAAW,6BAA6B;IACpF,mEAAmE;IACnE,OAAO,CAAC,YAAY,CAAgC;IAEpD,6EAA6E;IACvE,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IA0DxE,+EAA+E;IAC/E,0BAA0B,IAAI,YAAY,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,aAAa;IAsChG,oFAAoF;IACpF,mBAAmB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAS9C,6EAA6E;IAC7E,oBAAoB,IAAI,MAAM;CAY/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/providers/cursor/install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOjG;;;;;;;;;;;;;GAaG;AACH,qBAAa,qBAAsB,YAAW,sBAAsB;IAClE;;;;;OAKG;IACG,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IA+B9D;;;;OAIG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAEhC;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAsBrC;;;;;;;OAOG;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKpE;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAgB9B;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;IAuBzB;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;IA+BzB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,oBAAoB;IA8B5B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,sBAAsB;CAyC/B"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/providers/cursor/install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOjG;;;;;;;;;;;;;GAaG;AACH,qBAAa,qBAAsB,YAAW,sBAAsB;IAClE;;;;;OAKG;IACG,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IA+B9D;;;;OAIG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAEhC;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IA2BrC;;;;;;;OAOG;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKpE;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAgB9B;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;IAuBzB;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;IA+BzB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,oBAAoB;IA8B5B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,sBAAsB;CAyC/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleocode/adapters",
3
- "version": "2026.5.82",
3
+ "version": "2026.5.84",
4
4
  "description": "Unified provider adapters for CLEO (Claude Code, OpenCode, Cursor)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -15,9 +15,9 @@
15
15
  "@ai-sdk/anthropic": "^3.0.69",
16
16
  "@ai-sdk/openai": "^2.0.53",
17
17
  "ai": "^6.0.168",
18
- "@cleocode/caamp": "2026.5.82",
19
- "@cleocode/contracts": "2026.5.82",
20
- "@cleocode/paths": "2026.5.82"
18
+ "@cleocode/caamp": "2026.5.84",
19
+ "@cleocode/contracts": "2026.5.84",
20
+ "@cleocode/paths": "2026.5.84"
21
21
  },
22
22
  "license": "MIT",
23
23
  "engines": {
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.19.15",
32
32
  "vitest": "^4.1.4",
33
- "@cleocode/playbooks": "2026.5.82"
33
+ "@cleocode/playbooks": "2026.5.84"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
@@ -12,6 +12,7 @@ import { mkdir } from 'node:fs/promises';
12
12
  import { homedir } from 'node:os';
13
13
  import { dirname, join } from 'node:path';
14
14
  import type { AdapterContextMonitorProvider } from '@cleocode/contracts';
15
+ import { resolveLegacyCleoDir } from '@cleocode/paths';
15
16
  import { ClaudeCodePathProvider } from './paths.js';
16
17
 
17
18
  /** Context window input from Claude Code. */
@@ -165,7 +166,7 @@ export class ClaudeCodeContextMonitorProvider implements AdapterContextMonitorPr
165
166
  return {
166
167
  statusLine: {
167
168
  type: 'command',
168
- command: join(homedir(), '.cleo', 'lib', 'session', 'context-monitor.sh'),
169
+ command: join(resolveLegacyCleoDir(), 'lib', 'session', 'context-monitor.sh'),
169
170
  },
170
171
  };
171
172
  }
@@ -91,11 +91,16 @@ export class CursorInstallProvider implements AdapterInstallProvider {
91
91
  * Checks for .cursor/rules/cleo.mdc or .cursorrules with CLEO references.
92
92
  */
93
93
  async isInstalled(): Promise<boolean> {
94
+ // CWD-OK: `.cursor/` is a Cursor-IDE convention rooted at the project the
95
+ // user is *invoking* CLEO from, not a CLEO project root — Cursor itself
96
+ // walks from cwd for its rules discovery, so we mirror that semantic.
94
97
  const mdcPath = join(process.cwd(), '.cursor', 'rules', 'cleo.mdc');
95
98
  if (existsSync(mdcPath)) {
96
99
  return true;
97
100
  }
98
101
 
102
+ // CWD-OK: `.cursorrules` is the legacy Cursor-IDE rules file, same
103
+ // cwd-rooted semantic as `.cursor/rules/` above.
99
104
  const rulesPath = join(process.cwd(), '.cursorrules');
100
105
  if (existsSync(rulesPath)) {
101
106
  try {