@sma1lboy/kobe 0.8.65 → 0.8.68

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.
@@ -251,6 +251,7 @@ var DAEMON_CHANNELS = [
251
251
  "transcript.activity",
252
252
  "session.deliver",
253
253
  "tab.open",
254
+ "tab.close",
254
255
  "engine.lifecycle",
255
256
  "notice.event",
256
257
  "usage.snapshot",
@@ -3,7 +3,7 @@ name: kobe
3
3
  description: Use when controlling kobe tasks, parallel coding attempts, hosted agent sessions, task lifecycle, or the daemon-owned issue tracker from a shell.
4
4
  ---
5
5
 
6
- <!-- kobe-skill-version: 8 — bump in lockstep with KOBE_SKILL_VERSION (src/lib/skill-install.ts). -->
6
+ <!-- kobe-skill-version: 11 — bump in lockstep with KOBE_SKILL_VERSION (src/lib/skill-install.ts). -->
7
7
 
8
8
  # kobe shell control
9
9
 
@@ -31,15 +31,17 @@ lifecycle tracking, and an explicit outcome contract.
31
31
  child the user cannot see or manage.
32
32
  - Following up on a task you started → `send`; waiting on results →
33
33
  `await`; comparing → `collect`; reporting your own verdict → `report`.
34
- - Messaging another task's agent → `send`. Sent from inside a kobe task,
35
- the prompt arrives prefixed `[KOBE PEER] from "<title>" (task <id>
36
- reply: …)`, so the receiver knows who is talking and can answer with the
37
- baked-in reply commandpeer conversations need no coordinator and no
38
- human relay. `--plain` skips the prefix when you truly need a verbatim
39
- paste. Received a `[KOBE PEER]` message yourself? Reply with its baked-in
40
- command, not by asking the user and if you haven't loaded this skill or
41
- `kobe api schema` yet, do that first (the message points there) before
42
- improvising verbs.
34
+ - Messaging another task's agent → `send`, and ONLY `send` never relay
35
+ through the user, a side file, or a generic peer channel. Sent from
36
+ inside a kobe task, the prompt arrives prefixed `[KOBE PEER] from
37
+ "<title>" (task <id>load the kobe agent skill FIRST …)`, so the
38
+ receiver knows who is talking, that this skill is required reading, and
39
+ how to answer peer conversations need no coordinator and no human
40
+ relay. That prefix is the contract: do not strip it with `--plain` for
41
+ coordination messages (`--plain` is only for a verbatim paste the
42
+ receiver should treat as content, not conversation). Received a
43
+ `[KOBE PEER]` message yourself? Load this skill first — required, not
44
+ optional — then reply with the baked-in command, not by asking the user.
43
45
  - `dispatch` stays the dispatcher's verb (deliver-only into an
44
46
  already-hosted session; never impersonate the user in someone else's
45
47
  terminal).
@@ -91,6 +93,30 @@ kobe api list --pretty
91
93
  `.running` means the task's canonical Hosted PTY engine session is alive.
92
94
  `send` reuses it or auto-starts it when absent.
93
95
 
96
+ ## Terminal panes
97
+
98
+ Split the workspace terminal the user is watching (tmux-style) or open a
99
+ separate command tab — the attached TUI performs it, so this is a no-op
100
+ headless:
101
+
102
+ ```bash
103
+ # Split the focused tab; the pane runs the command via `sh -lc` and
104
+ # closes when it exits. Omit --command for an interactive shell.
105
+ kobe api pane-open --command "btop"
106
+ kobe api pane-open --direction down --command "watch -n1 git status -sb"
107
+ kobe api pane-open --placement tab --title logs --command "tail -f app.log"
108
+
109
+ # Close panes you opened, by their --title (engine panes are never closed).
110
+ kobe api pane-close --title logs
111
+ ```
112
+
113
+ Defaults: the caller's own task (`$KOBE_TASK_ID`, then the active task),
114
+ `--placement split`, `--direction right`. Alternate right/down to build a
115
+ grid; screen size bounds splitting — a split that would shrink any pane
116
+ below the minimum usable size (20×6 cells) falls back to a tab.
117
+ Panes land in the USER'S live workspace — open them when asked (monitors,
118
+ logs, dashboards), don't scatter panes for work `add`/`fan-out` should own.
119
+
94
120
  ## Lifecycle
95
121
 
96
122
  | Verb | Purpose |