@taco-ai/sidecar 0.4.4 → 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.
@@ -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