openowl 0.3.22 → 0.3.23

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 (3) hide show
  1. package/bin/owl +27 -1
  2. package/install.js +1 -1
  3. package/package.json +1 -1
package/bin/owl CHANGED
@@ -154,7 +154,33 @@ process.stdin.on("data", async (chunk) => {
154
154
  }
155
155
 
156
156
  // Intercept tool calls for usage enforcement
157
- if (msg.method === "tools/call" && apiKey) {
157
+ if (msg.method === "tools/call") {
158
+ if (!apiKey) {
159
+ const errorResp = JSON.stringify({
160
+ jsonrpc: "2.0",
161
+ id: msg.id,
162
+ result: {
163
+ content: [
164
+ {
165
+ type: "text",
166
+ text:
167
+ "OpenOwl API key is missing.\n\n" +
168
+ "Setup:\n" +
169
+ " 1. Sign up at https://openowl.dev/signup\n" +
170
+ " 2. Get your API key from https://openowl.dev/dashboard\n" +
171
+ " 3. Save it:\n" +
172
+ " mkdir -p ~/.openowl\n" +
173
+ " echo 'owl-XXXX-XXXX-XXXX' > ~/.openowl/api.key\n\n" +
174
+ "Then restart your AI assistant.",
175
+ },
176
+ ],
177
+ isError: true,
178
+ },
179
+ });
180
+ process.stdout.write(errorResp + "\n");
181
+ continue;
182
+ }
183
+
158
184
  const toolName = msg.params?.name || "unknown";
159
185
  const usage = await checkUsage(apiKey, toolName, machineId);
160
186
 
package/install.js CHANGED
@@ -8,7 +8,7 @@ const https = require("https");
8
8
  const http = require("http");
9
9
  const { execSync } = require("child_process");
10
10
 
11
- const VERSION = "0.3.22";
11
+ const VERSION = "0.3.23";
12
12
  const BASE_URL =
13
13
  `https://github.com/mihir-kanzariya/openowl-releases/releases/download/v${VERSION}`;
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openowl",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "description": "AI desktop automation MCP server — give your AI eyes and hands. Screen capture, clicking, typing, OCR, window management via MCP protocol.",
5
5
  "homepage": "https://openowl.dev",
6
6
  "author": "Mihir Kanzariya <kanzariyamihir@gmail.com> (https://openowl.dev)",