@staff0rd/assist 0.926.3 → 0.926.5

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/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.3",
9
+ version: "0.926.5",
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 cwds = url.searchParams.getAll("cwd");
10070
- const modes = Object.fromEntries(cwds.map((cwd) => [cwd, modeFor(cwd)]));
10071
- respondJson(res, 200, { modes });
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.926.3",
3
+ "version": "0.926.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {