@sma1lboy/kobe 0.7.7 → 0.7.8
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/cli/index.js +23 -17
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -70,7 +70,7 @@ var init_package = __esm(() => {
|
|
|
70
70
|
package_default = {
|
|
71
71
|
$schema: "https://json.schemastore.org/package.json",
|
|
72
72
|
name: "@sma1lboy/kobe",
|
|
73
|
-
version: "0.7.
|
|
73
|
+
version: "0.7.8",
|
|
74
74
|
description: "TUI orchestrator for Claude Code (codename)",
|
|
75
75
|
type: "module",
|
|
76
76
|
packageManager: "bun@1.3.13",
|
|
@@ -6079,7 +6079,7 @@ async function ensureSession(opts) {
|
|
|
6079
6079
|
}
|
|
6080
6080
|
}
|
|
6081
6081
|
async function ensureSessionImpl(opts) {
|
|
6082
|
-
if (opts.taskId && opts.cwd) {
|
|
6082
|
+
if (opts.taskId && opts.cwd && opts.cwd.includes(`/${KOBE_WORKTREE_ROOT_SUBPATH}/`)) {
|
|
6083
6083
|
await createEngineHookAdapter(coerceVendorId(opts.vendor)).installTaskHooks({
|
|
6084
6084
|
worktreeDir: opts.cwd,
|
|
6085
6085
|
taskId: opts.taskId
|
|
@@ -6502,6 +6502,7 @@ var init_tmux = __esm(() => {
|
|
|
6502
6502
|
init_hook_adapter2();
|
|
6503
6503
|
init_interactive_command();
|
|
6504
6504
|
init_env();
|
|
6505
|
+
init_paths();
|
|
6505
6506
|
init_client2();
|
|
6506
6507
|
init_prompt_delivery();
|
|
6507
6508
|
init_vendor();
|
|
@@ -17101,13 +17102,7 @@ var init_keys = __esm(() => {
|
|
|
17101
17102
|
init_keymap();
|
|
17102
17103
|
});
|
|
17103
17104
|
|
|
17104
|
-
// src/tui/panes/sidebar/
|
|
17105
|
-
import { TextAttributes as TextAttributes9 } from "@opentui/core";
|
|
17106
|
-
function truncateBranchLabel(branch, max = BRANCH_LABEL_MAX) {
|
|
17107
|
-
if (branch.length <= max)
|
|
17108
|
-
return branch;
|
|
17109
|
-
return `${branch.slice(0, Math.max(0, max - 1))}\u2026`;
|
|
17110
|
-
}
|
|
17105
|
+
// src/tui/panes/sidebar/labels.ts
|
|
17111
17106
|
function truncateTitle(title, max) {
|
|
17112
17107
|
if (max <= 0)
|
|
17113
17108
|
return "";
|
|
@@ -17115,6 +17110,17 @@ function truncateTitle(title, max) {
|
|
|
17115
17110
|
return title;
|
|
17116
17111
|
return `${title.slice(0, Math.max(0, max - 1))}\u2026`;
|
|
17117
17112
|
}
|
|
17113
|
+
function spacedTitle(title, max) {
|
|
17114
|
+
return ` ${truncateTitle(title, Math.max(0, max))}`;
|
|
17115
|
+
}
|
|
17116
|
+
|
|
17117
|
+
// src/tui/panes/sidebar/Sidebar.tsx
|
|
17118
|
+
import { TextAttributes as TextAttributes9 } from "@opentui/core";
|
|
17119
|
+
function truncateBranchLabel(branch, max = BRANCH_LABEL_MAX) {
|
|
17120
|
+
if (branch.length <= max)
|
|
17121
|
+
return branch;
|
|
17122
|
+
return `${branch.slice(0, Math.max(0, max - 1))}\u2026`;
|
|
17123
|
+
}
|
|
17118
17124
|
function approxCellWidth(s) {
|
|
17119
17125
|
let n = 0;
|
|
17120
17126
|
for (const ch of s)
|
|
@@ -17560,7 +17566,7 @@ function Sidebar(props) {
|
|
|
17560
17566
|
setProp(_el$32, "flexDirection", "row");
|
|
17561
17567
|
setProp(_el$32, "flexGrow", 1);
|
|
17562
17568
|
setProp(_el$32, "paddingRight", 1);
|
|
17563
|
-
setProp(_el$32, "gap",
|
|
17569
|
+
setProp(_el$32, "gap", 0);
|
|
17564
17570
|
setProp(_el$33, "wrapMode", "none");
|
|
17565
17571
|
insert(_el$33, (() => {
|
|
17566
17572
|
var _c$2 = memo2(() => !!loading());
|
|
@@ -17568,14 +17574,14 @@ function Sidebar(props) {
|
|
|
17568
17574
|
})());
|
|
17569
17575
|
setProp(_el$34, "wrapMode", "none");
|
|
17570
17576
|
setProp(_el$34, "flexGrow", 1);
|
|
17571
|
-
insert(_el$34, () =>
|
|
17577
|
+
insert(_el$34, () => spacedTitle(titleText, titleBudget()));
|
|
17572
17578
|
insert(_el$32, createComponent2(Show, {
|
|
17573
17579
|
get when() {
|
|
17574
17580
|
return loading();
|
|
17575
17581
|
},
|
|
17576
17582
|
get children() {
|
|
17577
17583
|
var _el$35 = createElement("text");
|
|
17578
|
-
insertNode(_el$35, createTextNode(`working`));
|
|
17584
|
+
insertNode(_el$35, createTextNode(` working`));
|
|
17579
17585
|
setProp(_el$35, "wrapMode", "none");
|
|
17580
17586
|
effect((_$p) => setProp(_el$35, "fg", theme.primary, _$p));
|
|
17581
17587
|
return _el$35;
|
|
@@ -17588,7 +17594,7 @@ function Sidebar(props) {
|
|
|
17588
17594
|
get children() {
|
|
17589
17595
|
var _el$37 = createElement("text");
|
|
17590
17596
|
setProp(_el$37, "wrapMode", "none");
|
|
17591
|
-
insert(_el$37, () => truncatePathTail(abbrevHome(task.repo), subtitleBudget()));
|
|
17597
|
+
insert(_el$37, () => ` ${truncatePathTail(abbrevHome(task.repo), subtitleBudget())}`);
|
|
17592
17598
|
effect((_p$) => {
|
|
17593
17599
|
var _v$15 = theme.textMuted, _v$16 = TextAttributes9.DIM;
|
|
17594
17600
|
_v$15 !== _p$.e && (_p$.e = setProp(_el$37, "fg", _v$15, _p$.e));
|
|
@@ -17635,7 +17641,7 @@ function Sidebar(props) {
|
|
|
17635
17641
|
setProp(_el$40, "flexDirection", "row");
|
|
17636
17642
|
setProp(_el$40, "flexGrow", 1);
|
|
17637
17643
|
setProp(_el$40, "paddingRight", 1);
|
|
17638
|
-
setProp(_el$40, "gap",
|
|
17644
|
+
setProp(_el$40, "gap", 0);
|
|
17639
17645
|
setProp(_el$41, "wrapMode", "none");
|
|
17640
17646
|
insert(_el$41, (() => {
|
|
17641
17647
|
var _c$3 = memo2(() => !!loading());
|
|
@@ -17643,14 +17649,14 @@ function Sidebar(props) {
|
|
|
17643
17649
|
})());
|
|
17644
17650
|
setProp(_el$42, "wrapMode", "none");
|
|
17645
17651
|
setProp(_el$42, "flexGrow", 1);
|
|
17646
|
-
insert(_el$42, () =>
|
|
17652
|
+
insert(_el$42, () => spacedTitle(titleText, titleBudget()));
|
|
17647
17653
|
insert(_el$40, createComponent2(Show, {
|
|
17648
17654
|
get when() {
|
|
17649
17655
|
return loading();
|
|
17650
17656
|
},
|
|
17651
17657
|
get children() {
|
|
17652
17658
|
var _el$43 = createElement("text");
|
|
17653
|
-
insertNode(_el$43, createTextNode(`working`));
|
|
17659
|
+
insertNode(_el$43, createTextNode(` working`));
|
|
17654
17660
|
setProp(_el$43, "wrapMode", "none");
|
|
17655
17661
|
effect((_$p) => setProp(_el$43, "fg", theme.primary, _$p));
|
|
17656
17662
|
return _el$43;
|
|
@@ -17663,7 +17669,7 @@ function Sidebar(props) {
|
|
|
17663
17669
|
children: (chip) => (() => {
|
|
17664
17670
|
var _el$55 = createElement("text");
|
|
17665
17671
|
setProp(_el$55, "wrapMode", "none");
|
|
17666
|
-
insert(_el$55, () => chip().text);
|
|
17672
|
+
insert(_el$55, () => ` ${chip().text}`);
|
|
17667
17673
|
effect((_$p) => setProp(_el$55, "fg", chip().tone === "error" ? theme.error : chip().tone === "warning" ? theme.warning : theme.primary, _$p));
|
|
17668
17674
|
return _el$55;
|
|
17669
17675
|
})()
|
package/package.json
CHANGED