@vibecheckai/cli 3.1.1 → 3.1.2
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.
|
@@ -186,9 +186,12 @@ class CLIEntitlementsManager {
|
|
|
186
186
|
const syncResult = await serverUsage.syncOfflineUsage();
|
|
187
187
|
if (syncResult.error) {
|
|
188
188
|
// Allow offline mode by default - CLI should work without internet
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
// Only show warning if we actually tried to connect and failed (not just missing API key)
|
|
190
|
+
if (syncResult.error !== 'No API key configured' && syncResult.pending > 0) {
|
|
191
|
+
console.warn(
|
|
192
|
+
"\x1b[33mℹ Could not connect to vibecheck API, using offline mode\x1b[0m\n",
|
|
193
|
+
);
|
|
194
|
+
}
|
|
192
195
|
return { allowed: true, source: "offline" };
|
|
193
196
|
}
|
|
194
197
|
}
|
|
@@ -269,6 +269,18 @@ class ServerUsageEnforcement {
|
|
|
269
269
|
return { synced: 0, pending: 0 };
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
// Check if API key is configured before attempting sync
|
|
273
|
+
const token = getAuthToken();
|
|
274
|
+
if (!token) {
|
|
275
|
+
// No API key - silently allow offline mode (no warning needed for missing config)
|
|
276
|
+
return {
|
|
277
|
+
synced: 0,
|
|
278
|
+
pending: offline.queue.length,
|
|
279
|
+
error: 'No API key configured',
|
|
280
|
+
offline: true,
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
|
|
272
284
|
const result = await apiRequest('/sync', 'POST');
|
|
273
285
|
|
|
274
286
|
if (result.offline || !result.success) {
|
package/mcp-server/package.json
CHANGED