@taco-ai/sidecar 0.4.3 → 0.4.5

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
@@ -115,7 +115,7 @@ it is not bundled, and a release install has no `node_modules` beside the
115
115
  bundle. Install it into `$TACO_HOME/vendor` when a scan needs rendering:
116
116
 
117
117
  ```bash
118
- npm install --prefix ~/.taco/vendor @napi-rs/canvas@1.0.13
118
+ npm install --prefix ~/.taco/vendor @napi-rs/canvas@1.2.0
119
119
  ```
120
120
 
121
121
  Without it a scan still reads, and the result names that command.
@@ -50,6 +50,7 @@ function resolveFromManifest(pkgJsonPath) {
50
50
  }
51
51
  const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
52
52
  return {
53
+ resourcesRoot: pkgDir,
53
54
  nodeBin: path.join(
54
55
  pkgDir,
55
56
  "bin",
@@ -79,7 +80,7 @@ function main() {
79
80
  process.exit(1);
80
81
  }
81
82
 
82
- const { nodeBin, bundle } = resolveFromManifest(pkg.pkgJson);
83
+ const { nodeBin, bundle, resourcesRoot } = resolveFromManifest(pkg.pkgJson);
83
84
  if (!fs.existsSync(nodeBin)) {
84
85
  console.error(
85
86
  `[taco-sidecar] ERROR: Node binary not found at ${nodeBin}. ` +
@@ -95,8 +96,8 @@ function main() {
95
96
  stdio: "inherit",
96
97
  env: {
97
98
  ...process.env,
98
- // Let the bundle know where its resources (agents/, skills/) live.
99
- TACO_SIDECAR_RESOURCES: path.dirname(bundle),
99
+ // Resources live beside lib/, not inside it.
100
+ TACO_SIDECAR_RESOURCES: resourcesRoot,
100
101
  },
101
102
  });
102
103