@staff0rd/assist 0.458.0 → 0.459.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/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.458.0",
9
+ version: "0.459.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -505,7 +505,8 @@ var assistConfigSchema = z2.strictObject({
505
505
  // why: TCP port the native Windows daemon listens on for the WSL bridge; defaults to 51764
506
506
  windowsDaemonPort: z2.number().optional(),
507
507
  windowsVersionCheck: z2.enum(["block", "warn", "off"]).default("block"),
508
- includeCommittedChanges: z2.boolean().default(false)
508
+ includeCommittedChanges: z2.boolean().default(false),
509
+ topBar: z2.boolean().default(false)
509
510
  }).optional(),
510
511
  database: z2.strictObject({
511
512
  url: z2.string().optional()
@@ -10037,6 +10038,12 @@ async function restartWeb(req, res, deps2 = {}) {
10037
10038
  }
10038
10039
  }
10039
10040
 
10041
+ // src/commands/sessions/web/sessionLayout.ts
10042
+ function sessionLayout(_req, res) {
10043
+ const topBar = loadConfig().sessions?.topBar === true;
10044
+ respondJson(res, 200, { topBar });
10045
+ }
10046
+
10040
10047
  // src/commands/config/setNestedValue.ts
10041
10048
  function isPlainObject(val) {
10042
10049
  return val !== null && typeof val === "object" && !Array.isArray(val);
@@ -10431,6 +10438,7 @@ var routes2 = {
10431
10438
  "GET /api/files": listFiles,
10432
10439
  "GET /api/jira-site": jiraSite,
10433
10440
  "GET /api/harness": harnessCapabilities,
10441
+ "GET /api/session-layout": sessionLayout,
10434
10442
  "GET /api/pr-status": prStatus,
10435
10443
  "GET /api/server-runs": handleServerRuns,
10436
10444
  "GET /api/pr-list": prList,
@@ -30843,6 +30851,11 @@ var sessionsConfigHelp = [
30843
30851
  setter: "assist config set sessions.includeCommittedChanges true -g",
30844
30852
  note: "session card counts and /diff span the whole session (its first commit's parent, else merge-base with the default branch) instead of just uncommitted work (default off)"
30845
30853
  },
30854
+ {
30855
+ key: "sessions.topBar",
30856
+ setter: "assist config set sessions.topBar true -g",
30857
+ note: "move the active session's phase, elapsed, restored indicator and actions off the card into a sticky top bar above the terminal (default off)"
30858
+ },
30846
30859
  {
30847
30860
  key: "worktree.enabled",
30848
30861
  setter: "assist config set worktree.enabled true -g --repo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.458.0",
3
+ "version": "0.459.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {