kaizen-agent 1.64.1 → 1.64.2
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/package.json +1 -1
- package/web/board/run-view.ts +3 -1
- package/web/board.js +96 -96
- package/web/notebook.js +1 -1
- package/web/term.js +40 -40
- package/web/term.ts +29 -2
- package/web/video.js +1 -1
package/package.json
CHANGED
package/web/board/run-view.ts
CHANGED
|
@@ -234,7 +234,9 @@ function draw() {
|
|
|
234
234
|
const PTY = !noPty;
|
|
235
235
|
const mark = (a) => (MARKS.includes(a.cmd) ? raw(`<svg><use href="#i-${a.cmd}"/></svg>`) : ico("ai"));
|
|
236
236
|
const dflt = agents.find((a) => a.cmd === defAgent);
|
|
237
|
-
|
|
237
|
+
// Agents first, the default on top, then the tools.
|
|
238
|
+
const agentRow = (a) => html`<button data-n="agent:${a.cmd}">${mark(a)}<span>${a.name}<small>${a === dflt ? "default agent, in this folder" : "the agent alone, no run"}</small></span></button>`;
|
|
239
|
+
const menu = html`<div class="menu-pop">${PTY && agents.length ? html`${agentRow(dflt ?? agents[0])}${agents.filter((a) => a !== (dflt ?? agents[0])).map(agentRow)}<hr>` : ""}${PTY ? html`<button data-n="shell">${ico("term")}<span>Shell<small>a terminal in this folder</small></span></button>` : ""}<button data-n="local">${ico("link")}<span>Browser<small>localhost pages, e.g. the dev server</small></span></button><button data-n="preview">${ico("eye")}<span>Preview<small>the run's Preview</small></span></button><button data-n="history">${ico("note")}<span>History<small>finished runs in this workspace</small></span></button></div>`;
|
|
238
240
|
$("rtabs").innerHTML = String(
|
|
239
241
|
html`${scs.map((sc) => {
|
|
240
242
|
const ids = leaves(sc.tree),
|