@moberg_hr/work-tree 1.15.0 → 1.16.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/README.md +2 -2
- package/dist/bin.js +34 -2
- package/dist/bin.js.map +1 -1
- package/dist/wd-bin.js +34 -2
- package/dist/wd-bin.js.map +1 -1
- package/dist/web/assets/index-B9H3vCtL.js +107 -0
- package/dist/web/assets/index-B9H3vCtL.js.map +1 -0
- package/dist/web/assets/{index-ubbitWeW.css → index-BseMpW5i.css} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +2 -2
- package/dist/web/assets/index-BgVq8Uj_.js +0 -107
- package/dist/web/assets/index-BgVq8Uj_.js.map +0 -1
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ Work is the missing layer between `git worktree` and your AI assistant. Every br
|
|
|
41
41
|
## Quick Start
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
# 1. Install (Node
|
|
44
|
+
# 1. Install (Node 22+, Git required)
|
|
45
45
|
|
|
46
46
|
# Option A — Homebrew (macOS / Linux)
|
|
47
47
|
brew install moberghr/work-tree/work # provides `work` and `wd`
|
|
@@ -69,7 +69,7 @@ work dash
|
|
|
69
69
|
|
|
70
70
|
| Tool | Required | Used for |
|
|
71
71
|
|:---|:---|:---|
|
|
72
|
-
| **Node.js
|
|
72
|
+
| **Node.js 22+** | yes | Runtime |
|
|
73
73
|
| **Git** | yes | Worktree operations |
|
|
74
74
|
| **[Claude Code CLI](https://claude.ai/code)** | recommended | Default AI tool auto-launched on `work tree`; group CLAUDE.md generation. Any other CLI works too — set `aiCommand` in config. |
|
|
75
75
|
| **[GitHub CLI (`gh`)](https://cli.github.com/)** | optional | PR pane in the dashboard / `work web` |
|
package/dist/bin.js
CHANGED
|
@@ -7324,13 +7324,45 @@ function writeTempTree(repoRoot, opts = {}) {
|
|
|
7324
7324
|
windowsHide: true,
|
|
7325
7325
|
maxBuffer: 64 * 1024 * 1024
|
|
7326
7326
|
});
|
|
7327
|
+
const seedFromRealIndex = () => {
|
|
7328
|
+
try {
|
|
7329
|
+
const out = spawn8.sync("git", ["rev-parse", "--git-path", "index"], {
|
|
7330
|
+
cwd: repoRoot,
|
|
7331
|
+
encoding: "utf-8",
|
|
7332
|
+
windowsHide: true
|
|
7333
|
+
}).stdout;
|
|
7334
|
+
if (!out) return false;
|
|
7335
|
+
const realIndex = path23.resolve(repoRoot, out.trim());
|
|
7336
|
+
if (!fs27.existsSync(realIndex)) return false;
|
|
7337
|
+
fs27.copyFileSync(realIndex, tmpIndex);
|
|
7338
|
+
const st = fs27.statSync(realIndex);
|
|
7339
|
+
fs27.utimesSync(tmpIndex, st.atime, st.mtime);
|
|
7340
|
+
const listed = run2(["ls-files", "-v"]);
|
|
7341
|
+
if (listed.status !== 0) {
|
|
7342
|
+
fs27.unlinkSync(tmpIndex);
|
|
7343
|
+
return false;
|
|
7344
|
+
}
|
|
7345
|
+
const flagged = (listed.stdout ?? "").split("\n").some((line) => {
|
|
7346
|
+
const tag2 = line.charAt(0);
|
|
7347
|
+
return tag2 === "S" || tag2 >= "a" && tag2 <= "z";
|
|
7348
|
+
});
|
|
7349
|
+
if (flagged) {
|
|
7350
|
+
fs27.unlinkSync(tmpIndex);
|
|
7351
|
+
return false;
|
|
7352
|
+
}
|
|
7353
|
+
return true;
|
|
7354
|
+
} catch {
|
|
7355
|
+
return false;
|
|
7356
|
+
}
|
|
7357
|
+
};
|
|
7327
7358
|
try {
|
|
7328
7359
|
const headSha = (spawn8.sync("git", ["rev-parse", "--verify", "HEAD"], {
|
|
7329
7360
|
cwd: repoRoot,
|
|
7330
7361
|
encoding: "utf-8",
|
|
7331
7362
|
windowsHide: true
|
|
7332
7363
|
}).stdout ?? "").trim() || null;
|
|
7333
|
-
|
|
7364
|
+
const seeded = includeWorkingTree && seedFromRealIndex();
|
|
7365
|
+
if (!seeded && headSha) {
|
|
7334
7366
|
const r = run2(["read-tree", "HEAD"]);
|
|
7335
7367
|
if (r.status !== 0) return null;
|
|
7336
7368
|
}
|
|
@@ -11796,7 +11828,7 @@ function completeGroupBranches(groupName, repoAliases, current, config, done) {
|
|
|
11796
11828
|
}
|
|
11797
11829
|
|
|
11798
11830
|
// src/version.ts
|
|
11799
|
-
var VERSION = true ? "1.
|
|
11831
|
+
var VERSION = true ? "1.16.0" : "dev";
|
|
11800
11832
|
|
|
11801
11833
|
// src/cli.ts
|
|
11802
11834
|
function showHelp() {
|