conare 0.6.0 → 0.6.1

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/dist/index.js +14 -1
  2. package/package.json +5 -2
package/dist/index.js CHANGED
@@ -3205,7 +3205,10 @@ async function browserAuth() {
3205
3205
  const state = Array.from(stateBytes).map((b) => b.toString(16).padStart(2, "0")).join("");
3206
3206
  const sessionRes = await fetch(`${API_URL}/api/auth/cli-session`, {
3207
3207
  method: "POST",
3208
- headers: { "Content-Type": "application/json" },
3208
+ headers: {
3209
+ "Content-Type": "application/json",
3210
+ "x-conare-platform": `${platform4()} node/${process.versions.node}`
3211
+ },
3209
3212
  body: JSON.stringify({ state })
3210
3213
  });
3211
3214
  if (!sessionRes.ok) {
@@ -4421,6 +4424,16 @@ function uninstallSync() {
4421
4424
 
4422
4425
  // src/index.ts
4423
4426
  init_interactive();
4427
+ var nodeMajor = Number(process.versions.node.split(".")[0]);
4428
+ if (nodeMajor < 20 || typeof fetch !== "function" || typeof crypto === "undefined") {
4429
+ console.error("");
4430
+ console.error(` Conare needs Node 20 or newer — you're running ${process.version}.`);
4431
+ console.error(" Install the current LTS from https://nodejs.org and re-run:");
4432
+ console.error("");
4433
+ console.error(" npx conare@latest");
4434
+ console.error("");
4435
+ process.exit(1);
4436
+ }
4424
4437
  var CONARE_URL2 = "https://conare.ai";
4425
4438
  var CHAT_CONTAINER_LABELS = {
4426
4439
  "claude-chats": "Claude Code",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conare",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Conare CLI for indexing AI chat history and configuring memory at conare.ai",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,5 +31,8 @@
31
31
  },
32
32
  "optionalDependencies": {
33
33
  "better-sqlite3": "^12.10.0"
34
+ },
35
+ "engines": {
36
+ "node": ">=20"
34
37
  }
35
- }
38
+ }