identityforge
Advanced tools
+1
-1
| import { randomUUID } from "node:crypto"; | ||
| import { resolveApiKey, resolveApiUrl } from "./config.js"; | ||
| import { isVersionGreater } from "./updateCheck.js"; | ||
| export const CLI_VERSION = "0.4.4"; | ||
| export const CLI_VERSION = "0.4.5"; | ||
| let apiClient = "cli"; | ||
@@ -6,0 +6,0 @@ const clientProcessReference = randomUUID(); |
@@ -67,3 +67,3 @@ import { get } from "node:https"; | ||
| } | ||
| function fetchLatestVersion() { | ||
| function fetchLatestVersion(keepProcessAlive = false) { | ||
| return new Promise((resolve) => { | ||
@@ -75,2 +75,3 @@ let settled = false; | ||
| settled = true; | ||
| clearTimeout(timeout); | ||
| resolve(version); | ||
@@ -99,3 +100,4 @@ }; | ||
| }); | ||
| request.on("socket", (socket) => socket.unref()); | ||
| if (!keepProcessAlive) | ||
| request.on("socket", (socket) => socket.unref()); | ||
| request.on("error", () => finish()); | ||
@@ -106,3 +108,4 @@ const timeout = setTimeout(() => { | ||
| }, 3000); | ||
| timeout.unref(); | ||
| if (!keepProcessAlive) | ||
| timeout.unref(); | ||
| }); | ||
@@ -151,3 +154,3 @@ } | ||
| try { | ||
| latestVersion = await fetchLatestVersion(); | ||
| latestVersion = await fetchLatestVersion(true); | ||
| } | ||
@@ -154,0 +157,0 @@ catch { |
+3
-2
| { | ||
| "name": "identityforge", | ||
| "version": "0.4.4", | ||
| "version": "0.4.5", | ||
| "mcpName": "io.identityforge/mcp", | ||
@@ -32,4 +32,5 @@ "description": "Agent-native brand naming, domain research, and design systems through one CLI and MCP server.", | ||
| "typecheck": "tsc --noEmit -p tsconfig.json", | ||
| "smoke:update-check": "node scripts/smoke-update-check.mjs", | ||
| "smoke:mcp": "node scripts/smoke-mcp.mjs", | ||
| "prepublishOnly": "npm test && npm run typecheck && npm run build && npm run smoke:mcp" | ||
| "prepublishOnly": "npm test && npm run typecheck && npm run build && npm run smoke:update-check && npm run smoke:mcp" | ||
| }, | ||
@@ -36,0 +37,0 @@ "keywords": [ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
371031
0.06%6281
0.05%