@cerebrixos/pulselake 0.0.0-stage → 0.3.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.
package/README.md CHANGED
@@ -1,3 +1,23 @@
1
- # Temporary Holding Version
1
+ # @cerebrixos/pulselake
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Standalone PulseLake CLI and local MCP server for authenticated multi-module workflows and stateful persona research.
4
+
5
+ ```bash
6
+ npx @cerebrixos/pulselake@latest version
7
+ npx @cerebrixos/pulselake@latest workflow capabilities
8
+ npx @cerebrixos/pulselake@latest mcp serve
9
+ ```
10
+
11
+ Run `pulselake auth login` once to use the CLI or local MCP server without
12
+ copying a JWT/API key. The OAuth session is stored in the operating-system
13
+ credential vault and refreshed automatically.
14
+
15
+ Set `PULSELAKE_TOKEN` to a Rails JWT or configured static platform token. Rails JWT callers can also set `PULSELAKE_SUBDOMAIN` and `PULSELAKE_DOMAIN`.
16
+
17
+ For a Zuplo commercial API key, also set
18
+ `PULSELAKE_MCP_URL=https://YOUR-GATEWAY/pulselake-mcp` before running
19
+ `pulselake mcp serve`.
20
+
21
+ The package contains the supported native binaries. Installation does not require access to the private source repository.
22
+
23
+ See the main project documentation for workflow and persona examples.
package/bin/cli.js ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+
3
+ "use strict";
4
+
5
+ const { execFileSync } = require("child_process");
6
+ const path = require("path");
7
+ const fs = require("fs");
8
+ const os = require("os");
9
+
10
+ const ext = os.platform() === "win32" ? ".exe" : "";
11
+ const binPath = path.join(__dirname, "pulselake" + ext);
12
+
13
+ if (!fs.existsSync(binPath)) {
14
+ console.error("pulselake binary not found. Reinstall @cerebrixos/pulselake.");
15
+ process.exit(1);
16
+ }
17
+
18
+ try {
19
+ execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
20
+ } catch (err) {
21
+ if (err.status !== undefined) process.exit(err.status);
22
+ throw err;
23
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
package/install.js ADDED
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ const os = require("os");
4
+ const fs = require("fs");
5
+ const path = require("path");
6
+ const BIN_NAME = "pulselake";
7
+
8
+ function platformBinary() {
9
+ const platformMap = { darwin: "darwin", linux: "linux", win32: "windows" };
10
+ const archMap = { x64: "amd64", arm64: "arm64" };
11
+ const goos = platformMap[os.platform()];
12
+ const goarch = archMap[os.arch()];
13
+ if (!goos || !goarch || (goos === "windows" && goarch === "arm64")) {
14
+ throw new Error(`Unsupported platform: ${os.platform()}/${os.arch()}`);
15
+ }
16
+ const extension = goos === "windows" ? ".exe" : "";
17
+ return { goos, extension, file: `${BIN_NAME}_${goos}_${goarch}${extension}` };
18
+ }
19
+
20
+ function main() {
21
+ const version = require("./package.json").version;
22
+ if (version === "0.0.0") {
23
+ console.log("pulselake: skipping native install for development version 0.0.0");
24
+ return;
25
+ }
26
+
27
+ const { goos, extension, file } = platformBinary();
28
+ const source = path.join(__dirname, "dist", file);
29
+ if (!fs.existsSync(source)) {
30
+ throw new Error(`Bundled binary not found: ${file}`);
31
+ }
32
+
33
+ const binDir = path.join(__dirname, "bin");
34
+ fs.mkdirSync(binDir, { recursive: true });
35
+ const destination = path.join(binDir, BIN_NAME + extension);
36
+ fs.copyFileSync(source, destination);
37
+ fs.chmodSync(destination, 0o755);
38
+ console.log(`Installed ${BIN_NAME} v${version} for ${goos}/${os.arch()}`);
39
+ }
40
+
41
+ try {
42
+ main();
43
+ } catch (error) {
44
+ console.error(`Failed to install ${BIN_NAME}: ${error.message}`);
45
+ process.exit(1);
46
+ }
package/package.json CHANGED
@@ -1,6 +1,49 @@
1
1
  {
2
2
  "name": "@cerebrixos/pulselake",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.2",
4
+ "description": "PulseLake CLI and local MCP server for workflows and persona research",
5
+ "license": "Proprietary",
6
+ "bin": {
7
+ "pulselake": "bin/cli.js"
8
+ },
9
+ "scripts": {
10
+ "postinstall": "node install.js",
11
+ "test": "node test.js"
12
+ },
13
+ "engines": {
14
+ "node": ">=20"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public",
18
+ "registry": "https://registry.npmjs.org/"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/cerebrixos-org/pulselake-cli.git"
23
+ },
24
+ "homepage": "https://github.com/cerebrixos-org/pulselake-cli",
25
+ "keywords": [
26
+ "pulselake",
27
+ "cli",
28
+ "mcp",
29
+ "personas",
30
+ "workflows",
31
+ "modal"
32
+ ],
33
+ "os": [
34
+ "darwin",
35
+ "linux",
36
+ "win32"
37
+ ],
38
+ "cpu": [
39
+ "x64",
40
+ "arm64"
41
+ ],
42
+ "files": [
43
+ "bin/",
44
+ "dist/",
45
+ "install.js",
46
+ "package.json",
47
+ "README.md"
48
+ ]
49
+ }