@staff0rd/assist 0.1129.2 → 0.1130.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/dist/built-version +1 -1
- package/dist/commands/sessions/web/bundle.js +390 -390
- package/dist/index.js +7 -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.0",
|
|
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,
|