@muthuishere/crossmem 0.1.0

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 ADDED
@@ -0,0 +1,3 @@
1
+ # @muthuishere/crossmem
2
+
3
+ npm launcher for the native `crossmem` CLI.
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const { spawn } = require('child_process');
5
+
6
+ const SUPPORTED = {
7
+ 'darwin-arm64': '@muthuishere/crossmem-darwin-arm64',
8
+ 'darwin-x64': '@muthuishere/crossmem-darwin-x64',
9
+ 'linux-arm64': '@muthuishere/crossmem-linux-arm64',
10
+ 'linux-x64': '@muthuishere/crossmem-linux-x64',
11
+ 'win32-x64': '@muthuishere/crossmem-windows-x64',
12
+ };
13
+
14
+ const key = `${process.platform}-${process.arch}`;
15
+ const pkg = SUPPORTED[key];
16
+
17
+ function fail(message) {
18
+ process.stderr.write(`crossmem: ${message}\n`);
19
+ process.exit(1);
20
+ }
21
+
22
+ if (!pkg) {
23
+ fail(`unsupported platform ${key}. Supported: ${Object.keys(SUPPORTED).join(', ')}`);
24
+ }
25
+
26
+ const binName = process.platform === 'win32' ? 'crossmem.exe' : 'crossmem';
27
+
28
+ let binPath;
29
+ try {
30
+ binPath = require.resolve(`${pkg}/bin/${binName}`);
31
+ } catch (_err) {
32
+ fail(
33
+ `platform package ${pkg} is not installed. Reinstall with: ` +
34
+ `npm install -g @muthuishere/crossmem`,
35
+ );
36
+ }
37
+
38
+ const child = spawn(binPath, process.argv.slice(2), { stdio: 'inherit' });
39
+ child.on('exit', (code, signal) => {
40
+ if (signal) {
41
+ process.kill(process.pid, signal);
42
+ return;
43
+ }
44
+ process.exit(code ?? 1);
45
+ });
46
+ child.on('error', (err) => fail(`failed to launch ${binPath}: ${err.message}`));
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@muthuishere/crossmem",
3
+ "version": "0.1.0",
4
+ "description": "Portable context memory across local agent tools.",
5
+ "keywords": [
6
+ "crossmem",
7
+ "agent",
8
+ "memory",
9
+ "claude",
10
+ "codex",
11
+ "devin",
12
+ "copilot",
13
+ "cli"
14
+ ],
15
+ "homepage": "https://github.com/muthuishere/crossmemcli",
16
+ "bugs": {
17
+ "url": "https://github.com/muthuishere/crossmemcli/issues"
18
+ },
19
+ "license": "MIT",
20
+ "author": "Muthukumaran Navaneethakrishnan",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/muthuishere/crossmemcli.git"
24
+ },
25
+ "bin": {
26
+ "crossmem": "bin/crossmem.js"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "files": [
32
+ "bin/",
33
+ "README.md"
34
+ ],
35
+ "optionalDependencies": {
36
+ "@muthuishere/crossmem-darwin-arm64": "0.1.0",
37
+ "@muthuishere/crossmem-darwin-x64": "0.1.0",
38
+ "@muthuishere/crossmem-linux-arm64": "0.1.0",
39
+ "@muthuishere/crossmem-linux-x64": "0.1.0",
40
+ "@muthuishere/crossmem-windows-x64": "0.1.0"
41
+ },
42
+ "os": [
43
+ "darwin",
44
+ "linux",
45
+ "win32"
46
+ ],
47
+ "cpu": [
48
+ "arm64",
49
+ "x64"
50
+ ],
51
+ "engines": {
52
+ "node": ">=18"
53
+ }
54
+ }