@synapsor/client 0.1.3 → 0.1.4

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/bin/synapsor.mjs +3 -1
  2. package/package.json +1 -1
package/bin/synapsor.mjs CHANGED
@@ -2,12 +2,14 @@
2
2
  import { chmod, mkdir, readFile, writeFile } from "node:fs/promises";
3
3
  import { existsSync } from "node:fs";
4
4
  import { homedir } from "node:os";
5
+ import { createRequire } from "node:module";
5
6
  import { dirname, join } from "node:path";
6
7
  import { fileURLToPath } from "node:url";
7
8
  import { createInterface } from "node:readline/promises";
8
9
  import { stdin as input, stdout as output } from "node:process";
9
10
 
10
- const PACKAGE_VERSION = "0.1.2";
11
+ const require = createRequire(import.meta.url);
12
+ const { version: PACKAGE_VERSION } = require("../package.json");
11
13
  const DEFAULT_BASE_URL = "https://synapsor.ai";
12
14
  const ERROR_HINTS = new Map([
13
15
  ["AUTH_REQUIRED", "Set SYNAPSOR_API_KEY or run `synapsor config set api-key`."],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synapsor/client",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Node.js SDK for Synapsor, the agent-native database for auditable AI applications",
5
5
  "type": "module",
6
6
  "main": "./synapsor.mjs",