@staff0rd/assist 0.926.2 → 0.926.4
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 +228 -228
- package/dist/index.js +5 -8
- 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.926.
|
|
9
|
+
version: "0.926.4",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -10060,15 +10060,12 @@ async function revertDiffPaths(req, res) {
|
|
|
10060
10060
|
}
|
|
10061
10061
|
|
|
10062
10062
|
// src/commands/sessions/web/newSessionDefaults.ts
|
|
10063
|
-
function modeFor(cwd) {
|
|
10064
|
-
const config = cwd ? loadConfigFrom(cwd) : loadConfig();
|
|
10065
|
-
return config.sessions?.newSessionMode ?? "draft";
|
|
10066
|
-
}
|
|
10067
10063
|
function newSessionDefaults(req, res) {
|
|
10068
10064
|
const url = new URL(req.url ?? "/", "http://localhost");
|
|
10069
|
-
const
|
|
10070
|
-
const
|
|
10071
|
-
|
|
10065
|
+
const cwd = url.searchParams.get("cwd");
|
|
10066
|
+
const config = cwd ? loadConfigFrom(cwd) : loadConfig();
|
|
10067
|
+
const mode = config.sessions?.newSessionMode ?? "draft";
|
|
10068
|
+
respondJson(res, 200, { mode });
|
|
10072
10069
|
}
|
|
10073
10070
|
|
|
10074
10071
|
// src/commands/sessions/nodes/fetchPeerJson.ts
|