@syke1/mcp-server 1.4.20 → 1.4.21

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.
@@ -259,6 +259,27 @@ async function checkLicense() {
259
259
  }
260
260
  // Try online validation (with device binding)
261
261
  const result = await validateOnline(key);
262
+ // Handle founding code auto-redemption: server returns real SYKE- key
263
+ if (result.foundingRedeemed && result.licenseKey) {
264
+ const realKey = result.licenseKey;
265
+ console.error(`[syke] Founding code redeemed → ${realKey}`);
266
+ (0, config_1.setConfig)("licenseKey", realKey);
267
+ clearLicenseCache();
268
+ writeCache({
269
+ valid: true,
270
+ plan: result.plan,
271
+ email: result.email,
272
+ expiresAt: result.expiresAt,
273
+ cachedAt: now,
274
+ });
275
+ startHeartbeat(realKey, getDeviceFingerprint());
276
+ return {
277
+ plan: "pro",
278
+ email: result.email,
279
+ expiresAt: result.expiresAt,
280
+ source: "online",
281
+ };
282
+ }
262
283
  if (!result.valid) {
263
284
  const reason = result.error || "invalid key or expired";
264
285
  console.error(`[syke] License validation failed: ${reason}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syke1/mcp-server",
3
- "version": "1.4.20",
3
+ "version": "1.4.21",
4
4
  "mcpName": "io.github.khalomsky/syke",
5
5
  "description": "AI code impact analysis MCP server — dependency graphs, cascade detection, and a mandatory build gate for AI coding agents",
6
6
  "main": "dist/index.js",