@staff0rd/assist 0.1129.2 → 0.1130.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/dist/built-version +1 -1
- package/dist/commands/sessions/web/bundle.js +390 -390
- package/dist/index.js +14 -7
- 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.
|
|
9
|
+
version: "0.1130.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -4378,22 +4378,22 @@ async function postDocsRefresh(req, res) {
|
|
|
4378
4378
|
respondJson(res, 200, await requestDocsRefresh(orm, getOrigin()));
|
|
4379
4379
|
}
|
|
4380
4380
|
|
|
4381
|
-
// src/commands/backlog/web/
|
|
4381
|
+
// src/commands/backlog/web/listCloneBaseRepos.ts
|
|
4382
4382
|
import { existsSync as existsSync12, readdirSync as readdirSync2, statSync as statSync4 } from "fs";
|
|
4383
4383
|
import { join as join12 } from "path";
|
|
4384
4384
|
function hasGitDirectory(dir) {
|
|
4385
4385
|
const gitPath = join12(dir, ".git");
|
|
4386
4386
|
return existsSync12(gitPath) && statSync4(gitPath).isDirectory();
|
|
4387
4387
|
}
|
|
4388
|
-
function
|
|
4388
|
+
function listCloneBaseRepos(baseDir) {
|
|
4389
4389
|
if (!existsSync12(baseDir)) return [];
|
|
4390
4390
|
return readdirSync2(baseDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => ({ name: entry.name, cwd: join12(baseDir, entry.name) })).filter((repo) => hasGitDirectory(repo.cwd)).sort((a, b) => a.name.localeCompare(b.name));
|
|
4391
4391
|
}
|
|
4392
4392
|
|
|
4393
|
-
// src/commands/backlog/web/
|
|
4394
|
-
function
|
|
4393
|
+
// src/commands/backlog/web/getCloneBaseRepos.ts
|
|
4394
|
+
function getCloneBaseRepos(_req, res) {
|
|
4395
4395
|
const baseDir = expandTilde(loadConfig().clone.baseDir);
|
|
4396
|
-
respondJson(res, 200, { repos:
|
|
4396
|
+
respondJson(res, 200, { repos: listCloneBaseRepos(baseDir) });
|
|
4397
4397
|
}
|
|
4398
4398
|
|
|
4399
4399
|
// src/commands/backlog/web/getRepoLocation.ts
|
|
@@ -18625,7 +18625,7 @@ var routes2 = {
|
|
|
18625
18625
|
"GET /api/daemon-log": daemonLogTail,
|
|
18626
18626
|
"GET /api/items": listItems,
|
|
18627
18627
|
"POST /api/items": postItem,
|
|
18628
|
-
"GET /api/
|
|
18628
|
+
"GET /api/clone-base-repos": getCloneBaseRepos,
|
|
18629
18629
|
"POST /api/note-session": postNoteSession,
|
|
18630
18630
|
"GET /api/backlog/summary": getBacklogSummary,
|
|
18631
18631
|
"GET /api/backlog/docs-refresh": getDocsRefresh,
|
|
@@ -60871,7 +60871,13 @@ function walk2(path128, contents, uid) {
|
|
|
60871
60871
|
|
|
60872
60872
|
// src/commands/sessions/daemon/worktree/surfaceUndeletableLeftover.ts
|
|
60873
60873
|
import { basename as basename36 } from "path";
|
|
60874
|
+
|
|
60875
|
+
// src/commands/sessions/daemon/worktree/leftoverSurfacingEnabled.ts
|
|
60876
|
+
var leftoverSurfacingEnabled = false;
|
|
60877
|
+
|
|
60878
|
+
// src/commands/sessions/daemon/worktree/surfaceUndeletableLeftover.ts
|
|
60874
60879
|
function surfaceUndeletableLeftover(spawnWith, leftover, notify2) {
|
|
60880
|
+
if (!leftoverSurfacingEnabled) return;
|
|
60875
60881
|
forgetWorktree(leftover.path);
|
|
60876
60882
|
try {
|
|
60877
60883
|
const id = spawnWith((sid) => leftoverSession(sid, leftover));
|
|
@@ -60909,6 +60915,7 @@ function leftoverSession(id, leftover) {
|
|
|
60909
60915
|
|
|
60910
60916
|
// src/commands/sessions/daemon/worktree/recheckReapedWorktrees.ts
|
|
60911
60917
|
async function recheckReapedWorktrees(accounted, spawnWith, notify2) {
|
|
60918
|
+
if (!leftoverSurfacingEnabled) return;
|
|
60912
60919
|
for (const record3 of readReapedWorktreeRegistry()) {
|
|
60913
60920
|
if (accounted.has(record3.path) || underTempRoot(record3.path)) continue;
|
|
60914
60921
|
if (!holdsNoCheckout(record3.path)) continue;
|