rex-worktrees 0.3.0 → 0.3.1
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 +1 -1
- package/dist/rex-worktrees +1 -1
- package/dist/rex-worktrees.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@ Configuration is optional and belongs on the **execution machine** at `${XDG_CON
|
|
|
94
94
|
|
|
95
95
|
`projects` explicitly registers paths; optional `roots` scans two directory levels for projects. Without either, the originating Rex pane's directory (or the CLI caller's directory) can suggest its Git or JJ project, but no parent directory is scanned. A local directory suggestion is not sent to another machine: paths typed in the form are interpreted on the selected destination. For a known project missing there, the proposed clone directory uses that machine's first configured root, otherwise the parent of its last successful clone, otherwise the one common parent of discovered projects, otherwise its home directory. This default never scans the home directory and can be changed in **Clone to**. A successful clone remembers its destination parent; editing or reviewing one does not. Git and JJ, not configuration, determine their existing checkouts and branches/revisions. Existing valid directories continue through ordinary open.
|
|
96
96
|
|
|
97
|
-
For a popup launched from a Rex pane on this machine, the chooser checks that exact pane's reported directory (a local OSC 7 `file://` URI or absolute path). If
|
|
97
|
+
For a popup launched from a Rex pane on this machine, the chooser checks that exact pane's reported directory (a local OSC 7 `file://` URI or absolute path). If that directory is absent or its URI is not trusted as local, it uses the same verified pane's foreground process `cwd` when available. A remote pane or foreign URI is never treated as a local path. Context can legitimately be absent if the pane has no usable local directory, or the directory is not inside a Git or JJ repository; select or enter a project in that case. `--no-context` explicitly disables origin discovery.
|
|
98
98
|
|
|
99
99
|
New checkout location follows this order: a project's `worktreeRoot/<name>`, the global `worktreeRoot/<primary-project-name>/<name>`, or, by default, a sibling `<main-checkout>.worktrees/<name>`. `~` refers to the destination user's home; relative configuration paths resolve against the config file's directory. Checkout locations must be outside existing checkouts and version-control metadata. Collisions and escaping paths are rejected rather than renamed. JJ's own `git.colocate` setting governs whether its workspace also has Git metadata; the helper does not emulate colocation.
|
|
100
100
|
|
package/dist/rex-worktrees
CHANGED
package/dist/rex-worktrees.js
CHANGED
|
@@ -34599,8 +34599,9 @@ var originDirectory = exports_Effect.fnUntraced(function* (sessionId, blockId) {
|
|
|
34599
34599
|
return;
|
|
34600
34600
|
const raw = yield* rex(["block", "call", "-s", sessionId, "-b", blockId, "pwd"]);
|
|
34601
34601
|
const result4 = yield* parse3(RexDirectorySchema, raw);
|
|
34602
|
-
|
|
34603
|
-
|
|
34602
|
+
const directory = result4.pwd ? localDirectoryUri(result4.pwd) : undefined;
|
|
34603
|
+
if (directory !== undefined)
|
|
34604
|
+
return directory;
|
|
34604
34605
|
const processInfo = yield* parse3(RexProcessSchema, yield* rex(["block", "call", "-s", sessionId, "-b", blockId, "process"]));
|
|
34605
34606
|
const cwd = processInfo.foreground?.cwd;
|
|
34606
34607
|
return cwd?.startsWith("/") && !cwd.includes("\x00") ? cwd : undefined;
|