@sayknow-cli/coding-agent 0.7.4 → 0.7.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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.7.5] - 2026-10-05
6
+
7
+ ### Fixed
8
+
9
+ - The launch card opens the full session list without a modifier chord: press ↓ past the recent sessions to an "All sessions…" row and Enter (or click it). On macOS the card names `/resume` instead of Option+R, which types a plain `r` on Korean and other non-US layouts.
10
+
5
11
  ## [0.7.4] - 2026-10-03
6
12
 
7
13
  ### Changed
@@ -14,6 +14,7 @@ export declare const en: {
14
14
  readonly "welcome.sessionTrail": "Recent sessions";
15
15
  readonly "welcome.noSessions": "No saved sessions";
16
16
  readonly "welcome.allSessions": "{key} all sessions";
17
+ readonly "welcome.allSessionsRow": "All sessions…";
17
18
  readonly "welcome.continue": "{key} continue";
18
19
  readonly "welcome.pick": "{key} pick";
19
20
  readonly "welcome.pickActive": "↑↓ move · ⏎ open · esc back";
@@ -41,6 +41,12 @@ export interface WelcomeComponentOptions {
41
41
  continueKey?: string;
42
42
  /** Called when a session row is opened by click or Enter. */
43
43
  onOpenSession?: (session: RecentSession) => void;
44
+ /**
45
+ * Opens the full session list. When set, the card ends its session rows with an
46
+ * "all sessions" row reached with ↓/Enter or a click: no modifier chord, so it works in
47
+ * every terminal and keyboard layout (Option+R types a plain `r` on Korean layouts).
48
+ */
49
+ onShowAllSessions?: () => void;
44
50
  }
45
51
  /**
46
52
  * Sayknow-CLI launch card: the wordmark, model and workspace, release note,
@@ -63,7 +69,7 @@ export declare class WelcomeComponent implements Component {
63
69
  setRecentSessions(sessions: RecentSession[]): void;
64
70
  /** Merge newly probed workspace facts into the card. */
65
71
  setSnapshot(patch: WelcomeSnapshot): void;
66
- /** Rows that can be opened right now. Zero once the card stops taking input. */
72
+ /** Rows that can be picked right now (sessions, then "all sessions"). Zero once the card stops taking input. */
67
73
  get openableCount(): number;
68
74
  get selectedIndex(): number | undefined;
69
75
  /** Stop offering the session rows (after the first prompt or a session switch). */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@sayknow-cli/coding-agent",
4
- "version": "0.7.4",
4
+ "version": "0.7.5",
5
5
  "description": "Sayknow-CLI CLI with read, bash, edit, write tools and session management",
6
6
  "homepage": "https://sayknow-cli.com",
7
7
  "author": "jaybeyond",
@@ -54,12 +54,12 @@
54
54
  "@agentclientprotocol/sdk": "1.3.0",
55
55
  "@babel/parser": "^7.29.3",
56
56
  "@mozilla/readability": "^0.6.0",
57
- "@sayknow-cli/stats": "0.7.4",
58
- "@sayknow-cli/agent-core": "0.7.4",
59
- "@sayknow-cli/ai": "0.7.4",
60
- "@sayknow-cli/natives": "0.7.4",
61
- "@sayknow-cli/tui": "0.7.4",
62
- "@sayknow-cli/utils": "0.7.4",
57
+ "@sayknow-cli/stats": "0.7.5",
58
+ "@sayknow-cli/agent-core": "0.7.5",
59
+ "@sayknow-cli/ai": "0.7.5",
60
+ "@sayknow-cli/natives": "0.7.5",
61
+ "@sayknow-cli/tui": "0.7.5",
62
+ "@sayknow-cli/utils": "0.7.5",
63
63
  "@puppeteer/browsers": "^2.13.0",
64
64
  "@types/turndown": "5.0.6",
65
65
  "@xterm/headless": "^6.0.0",
@@ -14,6 +14,7 @@ export const de: Partial<Record<MsgKey, string>> = {
14
14
  "welcome.sessionTrail": "Sitzungsverlauf",
15
15
  "welcome.noSessions": "Keine gespeicherten Verläufe",
16
16
  "welcome.allSessions": "{key} alle Sitzungen",
17
+ "welcome.allSessionsRow": "Alle Sitzungen…",
17
18
  "welcome.continue": "{key} fortsetzen",
18
19
  "welcome.pick": "{key} wählen",
19
20
  "welcome.pickActive": "↑↓ bewegen · ⏎ öffnen · esc zurück",
@@ -19,6 +19,7 @@ export const en = {
19
19
  "welcome.sessionTrail": "Recent sessions",
20
20
  "welcome.noSessions": "No saved sessions",
21
21
  "welcome.allSessions": "{key} all sessions",
22
+ "welcome.allSessionsRow": "All sessions…",
22
23
  "welcome.continue": "{key} continue",
23
24
  "welcome.pick": "{key} pick",
24
25
  "welcome.pickActive": "↑↓ move · ⏎ open · esc back",
@@ -14,6 +14,7 @@ export const es: Partial<Record<MsgKey, string>> = {
14
14
  "welcome.sessionTrail": "Historial de sesión",
15
15
  "welcome.noSessions": "Sin historiales guardados",
16
16
  "welcome.allSessions": "{key} todas las sesiones",
17
+ "welcome.allSessionsRow": "Todas las sesiones…",
17
18
  "welcome.continue": "{key} continuar",
18
19
  "welcome.pick": "{key} elegir",
19
20
  "welcome.pickActive": "↑↓ mover · ⏎ abrir · esc volver",
@@ -14,6 +14,7 @@ export const fr: Partial<Record<MsgKey, string>> = {
14
14
  "welcome.sessionTrail": "Historique de session",
15
15
  "welcome.noSessions": "Aucun historique enregistré",
16
16
  "welcome.allSessions": "{key} toutes les sessions",
17
+ "welcome.allSessionsRow": "Toutes les sessions…",
17
18
  "welcome.continue": "{key} reprendre",
18
19
  "welcome.pick": "{key} choisir",
19
20
  "welcome.pickActive": "↑↓ déplacer · ⏎ ouvrir · esc retour",
@@ -11,6 +11,7 @@ export const ja: Partial<Record<MsgKey, string>> = {
11
11
  "welcome.sessionTrail": "セッション履歴",
12
12
  "welcome.noSessions": "保存されたセッションなし",
13
13
  "welcome.allSessions": "{key} すべて表示",
14
+ "welcome.allSessionsRow": "すべてのセッション…",
14
15
  "welcome.continue": "{key} 続ける",
15
16
  "welcome.pick": "{key} 選択",
16
17
  "welcome.pickActive": "↑↓ 移動 · ⏎ 開く · esc 戻る",
@@ -11,6 +11,7 @@ export const ko: Partial<Record<MsgKey, string>> = {
11
11
  "welcome.sessionTrail": "최근 세션",
12
12
  "welcome.noSessions": "저장된 세션 없음",
13
13
  "welcome.allSessions": "{key} 전체 보기",
14
+ "welcome.allSessionsRow": "전체 세션 보기…",
14
15
  "welcome.continue": "{key} 이어하기",
15
16
  "welcome.pick": "{key} 선택",
16
17
  "welcome.pickActive": "↑↓ 이동 · ⏎ 열기 · esc 닫기",
@@ -11,6 +11,7 @@ export const zh: Partial<Record<MsgKey, string>> = {
11
11
  "welcome.sessionTrail": "会话记录",
12
12
  "welcome.noSessions": "暂无已保存会话",
13
13
  "welcome.allSessions": "{key} 查看全部",
14
+ "welcome.allSessionsRow": "全部会话…",
14
15
  "welcome.continue": "{key} 继续",
15
16
  "welcome.pick": "{key} 选择",
16
17
  "welcome.pickActive": "↑↓ 移动 · ⏎ 打开 · esc 返回",
@@ -43,6 +43,12 @@ export interface WelcomeComponentOptions {
43
43
  continueKey?: string;
44
44
  /** Called when a session row is opened by click or Enter. */
45
45
  onOpenSession?: (session: RecentSession) => void;
46
+ /**
47
+ * Opens the full session list. When set, the card ends its session rows with an
48
+ * "all sessions" row reached with ↓/Enter or a click: no modifier chord, so it works in
49
+ * every terminal and keyboard layout (Option+R types a plain `r` on Korean layouts).
50
+ */
51
+ onShowAllSessions?: () => void;
46
52
  }
47
53
 
48
54
  /** Left margin of the card, and the widest the card grows on wide terminals. */
@@ -155,9 +161,15 @@ export class WelcomeComponent implements Component {
155
161
  return this.recentSessions.slice(0, SESSION_ROWS).filter(session => session.path);
156
162
  }
157
163
 
158
- /** Rows that can be opened right now. Zero once the card stops taking input. */
164
+ /** Whether the card ends with the "all sessions" row. */
165
+ #hasAllSessionsRow(): boolean {
166
+ return !!this.options.onShowAllSessions && this.recentSessions.length > 0;
167
+ }
168
+
169
+ /** Rows that can be picked right now (sessions, then "all sessions"). Zero once the card stops taking input. */
159
170
  get openableCount(): number {
160
- return this.#interactive ? this.#openable().length : 0;
171
+ if (!this.#interactive) return 0;
172
+ return this.#openable().length + (this.#hasAllSessionsRow() ? 1 : 0);
161
173
  }
162
174
 
163
175
  get selectedIndex(): number | undefined {
@@ -200,20 +212,35 @@ export class WelcomeComponent implements Component {
200
212
 
201
213
  /** Open the highlighted row. */
202
214
  openSelected(): boolean {
203
- const session = this.#selected === undefined ? undefined : this.#openable()[this.#selected];
204
- if (!session) return false;
205
- this.options.onOpenSession?.(session);
206
- return true;
215
+ return this.#open(this.#selected);
207
216
  }
208
217
 
209
218
  handleClick(line: number): boolean {
210
219
  if (!this.#interactive) return false;
211
220
  const index = this.#lineSessions[line];
212
- const session = index === undefined ? undefined : this.#openable()[index];
213
- if (!session) return false;
221
+ if (index === undefined) return false;
214
222
  this.#selected = index;
215
- this.options.onOpenSession?.(session);
216
- return true;
223
+ if (this.#open(index)) return true;
224
+ this.#selected = undefined;
225
+ return false;
226
+ }
227
+
228
+ /** Open a picked row: a session, or the full list for the trailing "all sessions" row. */
229
+ #open(index: number | undefined): boolean {
230
+ if (index === undefined) return false;
231
+ const openable = this.#openable();
232
+ const session = openable[index];
233
+ if (session) {
234
+ this.options.onOpenSession?.(session);
235
+ return true;
236
+ }
237
+ if (index === openable.length && this.#hasAllSessionsRow()) {
238
+ // The picker takes over; leave the card un-highlighted for when it closes.
239
+ this.#selected = undefined;
240
+ this.options.onShowAllSessions?.();
241
+ return true;
242
+ }
243
+ return false;
217
244
  }
218
245
 
219
246
  // ── Layout ──────────────────────────────────────────────────────────────
@@ -437,6 +464,17 @@ export class WelcomeComponent implements Component {
437
464
  );
438
465
  sessionRows.push(openIndex >= 0 ? openIndex : undefined);
439
466
  });
467
+ if (this.#hasAllSessionsRow()) {
468
+ const allIndex = openable.length;
469
+ const selected = picking && this.#selected === allIndex;
470
+ const label = t("welcome.allSessionsRow");
471
+ lines.push(
472
+ selected
473
+ ? `${theme.fg("accent", "› ")}${theme.bold(theme.fg("text", label))}`
474
+ : ` ${theme.fg("dim", label)}`,
475
+ );
476
+ sessionRows.push(allIndex);
477
+ }
440
478
  return { lines, sessionRows };
441
479
  }
442
480
 
@@ -454,9 +492,15 @@ export class WelcomeComponent implements Component {
454
492
  return this.#truncate(text, width);
455
493
  }
456
494
 
495
+ /**
496
+ * How the card names the full session list. `/resume` works everywhere; a bound chord is
497
+ * shown only off macOS, where Option often types a character instead of sending Alt.
498
+ */
457
499
  #resumeKey(): string {
458
500
  const context = this.options.keyDisplayContext ?? { platform: process.platform };
459
- return this.options.resumeKey ? formatKeyHint(this.options.resumeKey, context) : "/resume";
501
+ const key = this.options.resumeKey;
502
+ if (!key || (context.platform === "darwin" && /(^|\+)alt\+/.test(key))) return "/resume";
503
+ return formatKeyHint(key, context);
460
504
  }
461
505
 
462
506
  #latestChangelogVersion(markdown: string): string {
@@ -772,6 +772,7 @@ export class InteractiveMode implements InteractiveModeContext {
772
772
  resumeKey: this.keybindings.getKeys("app.session.resume")[0],
773
773
  continueKey: this.keybindings.getKeys("app.session.continue")[0],
774
774
  onOpenSession: session => void this.#openWelcomeSession(session),
775
+ onShowAllSessions: () => this.showSessionSelector(),
775
776
  },
776
777
  );
777
778