@sma1lboy/kobe 0.5.1 → 0.5.3
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/bin/kobed.js +3 -1
- package/dist/cli/index.js +11 -3
- package/package.json +1 -1
package/dist/bin/kobed.js
CHANGED
|
@@ -1038,13 +1038,15 @@ __export(exports_bridge, {
|
|
|
1038
1038
|
import { writeFile } from "fs/promises";
|
|
1039
1039
|
import { homedir as homedir4 } from "os";
|
|
1040
1040
|
import { join } from "path";
|
|
1041
|
+
import { fileURLToPath } from "url";
|
|
1041
1042
|
async function startBridge(orch, opts = {}) {
|
|
1042
1043
|
const home = opts.homeDir ?? process.env.KOBE_HOME_DIR ?? homedir4();
|
|
1043
1044
|
const runDir = join(home, ".kobe", "run");
|
|
1044
1045
|
const socketPath = join(runDir, `bridge-${process.pid}.sock`);
|
|
1045
1046
|
const mcpConfigPath = join(runDir, `mcp-${process.pid}.json`);
|
|
1046
1047
|
const server = await startBridgeServer(orch, socketPath);
|
|
1047
|
-
const
|
|
1048
|
+
const moduleExt = import.meta.url.endsWith(".ts") ? ".ts" : ".js";
|
|
1049
|
+
const entry = fileURLToPath(new URL(`../../cli/index${moduleExt}`, import.meta.url));
|
|
1048
1050
|
const mcpConfig = {
|
|
1049
1051
|
mcpServers: {
|
|
1050
1052
|
kobe: {
|
package/dist/cli/index.js
CHANGED
|
@@ -8825,7 +8825,7 @@ var init_package = __esm(() => {
|
|
|
8825
8825
|
package_default = {
|
|
8826
8826
|
$schema: "https://json.schemastore.org/package.json",
|
|
8827
8827
|
name: "@sma1lboy/kobe",
|
|
8828
|
-
version: "0.5.
|
|
8828
|
+
version: "0.5.3",
|
|
8829
8829
|
description: "TUI orchestrator for Claude Code (codename)",
|
|
8830
8830
|
type: "module",
|
|
8831
8831
|
packageManager: "bun@1.3.13",
|
|
@@ -13197,8 +13197,10 @@ var init_resizable_edge = __esm(() => {
|
|
|
13197
13197
|
// src/tui/context/focus.tsx
|
|
13198
13198
|
function FocusProvider(props) {
|
|
13199
13199
|
const [focused, setFocusedSignal] = createSignal(props.initial ?? "sidebar");
|
|
13200
|
+
const [refocusTick, setRefocusTick] = createSignal(0);
|
|
13200
13201
|
const renderer = useRenderer();
|
|
13201
13202
|
function setFocused(pane) {
|
|
13203
|
+
setRefocusTick((t) => t + 1);
|
|
13202
13204
|
if (focused() === pane)
|
|
13203
13205
|
return;
|
|
13204
13206
|
const current = renderer?.currentFocusedRenderable;
|
|
@@ -13227,7 +13229,8 @@ function FocusProvider(props) {
|
|
|
13227
13229
|
focused,
|
|
13228
13230
|
is,
|
|
13229
13231
|
setFocused,
|
|
13230
|
-
cycle
|
|
13232
|
+
cycle,
|
|
13233
|
+
refocusTick
|
|
13231
13234
|
};
|
|
13232
13235
|
return createComponent2(FocusContext.Provider, {
|
|
13233
13236
|
value,
|
|
@@ -17076,6 +17079,7 @@ function Composer(props) {
|
|
|
17076
17079
|
const {
|
|
17077
17080
|
theme
|
|
17078
17081
|
} = useTheme();
|
|
17082
|
+
const focusCtx = useFocus();
|
|
17079
17083
|
let textareaRef;
|
|
17080
17084
|
let historyIndex = null;
|
|
17081
17085
|
let liveDraftSnapshot = "";
|
|
@@ -17110,6 +17114,7 @@ function Composer(props) {
|
|
|
17110
17114
|
setSlashCursor((cur) => len === 0 ? 0 : Math.min(cur, len - 1));
|
|
17111
17115
|
});
|
|
17112
17116
|
createEffect(() => {
|
|
17117
|
+
focusCtx.refocusTick();
|
|
17113
17118
|
const ref = textareaRef;
|
|
17114
17119
|
if (!ref)
|
|
17115
17120
|
return;
|
|
@@ -17944,6 +17949,7 @@ var init_Composer = __esm(() => {
|
|
|
17944
17949
|
init_solid();
|
|
17945
17950
|
init_dev();
|
|
17946
17951
|
init_border();
|
|
17952
|
+
init_focus();
|
|
17947
17953
|
init_theme();
|
|
17948
17954
|
init_clipboard_image();
|
|
17949
17955
|
init_history2();
|
|
@@ -22373,13 +22379,15 @@ __export(exports_bridge, {
|
|
|
22373
22379
|
import { writeFile as writeFile3 } from "fs/promises";
|
|
22374
22380
|
import { homedir as homedir11 } from "os";
|
|
22375
22381
|
import { join as join14 } from "path";
|
|
22382
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
22376
22383
|
async function startBridge(orch, opts = {}) {
|
|
22377
22384
|
const home = opts.homeDir ?? process.env.KOBE_HOME_DIR ?? homedir11();
|
|
22378
22385
|
const runDir = join14(home, ".kobe", "run");
|
|
22379
22386
|
const socketPath = join14(runDir, `bridge-${process.pid}.sock`);
|
|
22380
22387
|
const mcpConfigPath = join14(runDir, `mcp-${process.pid}.json`);
|
|
22381
22388
|
const server = await startBridgeServer(orch, socketPath);
|
|
22382
|
-
const
|
|
22389
|
+
const moduleExt = import.meta.url.endsWith(".ts") ? ".ts" : ".js";
|
|
22390
|
+
const entry = fileURLToPath2(new URL(`../../cli/index${moduleExt}`, import.meta.url));
|
|
22383
22391
|
const mcpConfig = {
|
|
22384
22392
|
mcpServers: {
|
|
22385
22393
|
kobe: {
|
package/package.json
CHANGED