@dug-21/unimatrix 0.5.7 → 0.5.8

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/lib/init.js CHANGED
@@ -230,7 +230,7 @@ async function init(options) {
230
230
  // Step 6: Pre-create database (exec Rust binary)
231
231
  if (!dryRun) {
232
232
  try {
233
- execFileSync(binaryPath, ["version", "--project-dir", projectRoot], {
233
+ execFileSync(binaryPath, ["--project-dir", projectRoot, "version"], {
234
234
  stdio: "pipe",
235
235
  env: binaryEnv,
236
236
  });
@@ -107,8 +107,9 @@ function mergeSettings(filePath, binaryPath, options) {
107
107
  }
108
108
 
109
109
  // Step 3: For each hook event, merge the unimatrix entry
110
+ const binDir = path.dirname(binaryPath);
110
111
  for (const event of HOOK_EVENTS) {
111
- const hookCommand = binaryPath + " hook " + event;
112
+ const hookCommand = "LD_LIBRARY_PATH=" + binDir + " " + binaryPath + " hook " + event;
112
113
  const matcher = EVENT_MATCHERS[event];
113
114
 
114
115
  const newHookEntry = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dug-21/unimatrix",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Unimatrix knowledge engine for multi-agent development",
5
5
  "bin": {
6
6
  "unimatrix": "bin/unimatrix.js"
@@ -9,8 +9,8 @@
9
9
  "postinstall": "node postinstall.js"
10
10
  },
11
11
  "optionalDependencies": {
12
- "@dug-21/unimatrix-linux-x64": "0.5.7",
13
- "@dug-21/unimatrix-linux-arm64": "0.5.7"
12
+ "@dug-21/unimatrix-linux-x64": "0.5.8",
13
+ "@dug-21/unimatrix-linux-arm64": "0.5.8"
14
14
  },
15
15
  "files": [
16
16
  "bin/",