@kb-labs/rest-api-app 2.80.0 → 2.82.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/dist/index.js CHANGED
@@ -1659,6 +1659,11 @@ async function registerPluginRoutes(server, config, repoRoot, registry, readines
1659
1659
  const workspaceResolution = await resolveWorkspaceRoot({
1660
1660
  startDir: repoRoot,
1661
1661
  env: {
1662
+ // KB_PROJECT_ROOT is the canonical var injected by kb-dev into service processes.
1663
+ // Must be included here: passing a partial env object would silently drop it, causing
1664
+ // ctx.cwd to fall back to the platform dir (kb-platform333) instead of the user's
1665
+ // project dir when services are started via kb-dev start.
1666
+ KB_PROJECT_ROOT: process.env.KB_PROJECT_ROOT,
1662
1667
  KB_LABS_WORKSPACE_ROOT: process.env.KB_LABS_WORKSPACE_ROOT,
1663
1668
  KB_LABS_REPO_ROOT: process.env.KB_LABS_REPO_ROOT
1664
1669
  }