opencrater 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/cli.js +8 -0
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -225,6 +225,8 @@ function detectHosts() {
225
225
  return {
226
226
  claude_code: fs.existsSync(path.join(os.homedir(), ".claude")) || hasBin("claude"),
227
227
  codex: fs.existsSync(path.join(process.env.CODEX_HOME || path.join(os.homedir(), ".codex"))) || hasBin("codex"),
228
+ openclaw: fs.existsSync(path.join(os.homedir(), ".openclaw")) || hasBin("openclaw"),
229
+ gemini_cli: fs.existsSync(path.join(os.homedir(), ".gemini")) || hasBin("gemini"),
228
230
  };
229
231
  }
230
232
 
@@ -249,6 +251,12 @@ if (cmd === "on" || cmd === "enable") {
249
251
  } else {
250
252
  console.log("· Codex not found — skipped");
251
253
  }
254
+ if (hosts.openclaw) {
255
+ console.log("✓ OpenClaw detected — native hook support is rolling out; cards will enable automatically.");
256
+ }
257
+ if (hosts.gemini_cli) {
258
+ console.log("✓ Gemini CLI detected — native hook support is rolling out; cards will enable automatically.");
259
+ }
252
260
  // Pre-install the local hook runtime (background): hooks then run via
253
261
  // plain node — no npx resolution latency, no cold-cache races.
254
262
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencrater",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "OpenCrater — sponsor cards in Claude Code and Codex. Free, one command, opt out anytime.",
5
5
  "keywords": [
6
6
  "opencrater",