@fro.bot/systematic 3.5.6 → 3.5.7

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11115,7 +11115,8 @@ function deriveApplyPatchTarget(args2, sessionLocation, parentTargetRoot, option
11115
11115
  if (workdir.status === "unavailable")
11116
11116
  return unavailableOperationTarget();
11117
11117
  const targets = patchPaths.map((rawPath) => deriveFileTarget(rawPath, workdir.target.resolvedPath, parentTargetRoot, options, realPath, args2.workdir === undefined));
11118
- const targetRoot = sharedTargetRoot(targets, [workdir.target.targetRoot]);
11118
+ const seedWorkdirRoot = args2.workdir !== undefined || targets.length === 0;
11119
+ const targetRoot = sharedTargetRoot(targets, seedWorkdirRoot ? [workdir.target.targetRoot] : []);
11119
11120
  return targetRoot ? { status: "available", targetRoot } : unavailableOperationTarget();
11120
11121
  }
11121
11122
  function deriveBashTarget(args2, sessionLocation, parentTargetRoot, options, realPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fro.bot/systematic",
3
- "version": "3.5.6",
3
+ "version": "3.5.7",
4
4
  "description": "Compound-engineering loops for OpenCode, Pi, and Claude Code",
5
5
  "type": "module",
6
6
  "homepage": "https://fro.bot/systematic",