@staff0rd/assist 0.573.0 → 0.573.2
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/commands/sessions/web/bundle.js +142 -142
- package/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.573.
|
|
9
|
+
version: "0.573.2",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -10067,13 +10067,19 @@ function resolveRepoGroup(cwd) {
|
|
|
10067
10067
|
const live = groupFromLiveTree(cwd);
|
|
10068
10068
|
if (live) return live;
|
|
10069
10069
|
const reaped = worktreeAttributionIncludingReaped(cwd);
|
|
10070
|
-
|
|
10070
|
+
if (!reaped) return void 0;
|
|
10071
|
+
const origin = currentOriginOfClone(reaped.clone) ?? reaped.origin;
|
|
10072
|
+
return hostedGroup(cwd, origin, reaped.clone);
|
|
10071
10073
|
}
|
|
10072
10074
|
function groupFromLiveTree(cwd) {
|
|
10073
10075
|
const clone = mainWorktree(cwd);
|
|
10074
10076
|
const origin = clone ? originForCwd(clone) : void 0;
|
|
10075
10077
|
return clone && origin ? hostedGroup(cwd, origin, clone) : void 0;
|
|
10076
10078
|
}
|
|
10079
|
+
function currentOriginOfClone(clone) {
|
|
10080
|
+
const main = mainWorktree(clone);
|
|
10081
|
+
return main ? originForCwd(main) : void 0;
|
|
10082
|
+
}
|
|
10077
10083
|
function hostedGroup(cwd, origin, clone) {
|
|
10078
10084
|
return { origin: isWindowsCwd(cwd) ? `windows:${origin}` : origin, clone };
|
|
10079
10085
|
}
|