@staff0rd/assist 0.713.0 → 0.713.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 +281 -281
- package/dist/index.js +9 -6
- 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.713.
|
|
9
|
+
version: "0.713.2",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -12819,7 +12819,7 @@ var sessionsConfigHelp = [
|
|
|
12819
12819
|
{
|
|
12820
12820
|
key: "sessions.newSessionMode",
|
|
12821
12821
|
setter: "assist config set sessions.newSessionMode bug -g",
|
|
12822
|
-
note: "mode pre-selected in the Ctrl+N new session dialog: draft | bug | prompt | design (default: draft)"
|
|
12822
|
+
note: "default mode pre-selected in the Ctrl+N new session dialog: draft | bug | prompt | design (default: draft)"
|
|
12823
12823
|
},
|
|
12824
12824
|
{
|
|
12825
12825
|
key: "worktree.enabled",
|
|
@@ -15029,8 +15029,11 @@ function sessionLayout(_req, res) {
|
|
|
15029
15029
|
}
|
|
15030
15030
|
|
|
15031
15031
|
// src/commands/sessions/web/newSessionDefaults.ts
|
|
15032
|
-
function newSessionDefaults(
|
|
15033
|
-
const
|
|
15032
|
+
function newSessionDefaults(req, res) {
|
|
15033
|
+
const url = new URL(req.url ?? "/", "http://localhost");
|
|
15034
|
+
const cwd = url.searchParams.get("cwd");
|
|
15035
|
+
const config = cwd ? loadConfigFrom(cwd) : loadConfig();
|
|
15036
|
+
const mode = config.sessions?.newSessionMode ?? "draft";
|
|
15034
15037
|
respondJson(res, 200, { mode });
|
|
15035
15038
|
}
|
|
15036
15039
|
|
|
@@ -41790,8 +41793,8 @@ function startTranscriptTitleGeneration(session, notify2) {
|
|
|
41790
41793
|
runSessionTitleGeneration(session, context, notify2);
|
|
41791
41794
|
}
|
|
41792
41795
|
function titleSource(session) {
|
|
41793
|
-
if (session.commandType === "claude")
|
|
41794
|
-
return
|
|
41796
|
+
if (session.commandType === "claude" && !session.initialPrompt?.trim())
|
|
41797
|
+
return "first-message";
|
|
41795
41798
|
if (session.activity?.itemName) return void 0;
|
|
41796
41799
|
const prompt = sessionTitlePrompt(session);
|
|
41797
41800
|
if (!prompt || !isReferenceOnlyPrompt(prompt)) return void 0;
|