Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
186 changes: 157 additions & 29 deletions .pi/extensions/fm-branch-supervision.ts

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions .pi/extensions/fm-calm.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Firstmate's home-persistent Pi transcript presentation toggle.
//
// Verified against Pi 0.81.1 and 0.82.0, which expose built-in ToolDefinitions, per-slot
// Verified against Pi 0.81.1, 0.82.0, and 0.84.4, which expose built-in ToolDefinitions, per-slot
// renderers, renderShell: "self", session_start replacement reasons, agent_start and
// agent_settled, ExtensionUIContext.setToolsExpanded(), setWorkingVisible(), setWidget()
// with a disposable component factory, and setHiddenThinkingLabel().
Expand Down Expand Up @@ -424,15 +424,15 @@ export default function (pi: ExtensionAPI) {
ctx.ui.setStatus("firstmate-calm", undefined);
removeTerminalInputHandler?.();
removeTerminalInputHandler = ctx.ui.onTerminalInput((data) => {
if (!getKeybindings().matches(data, "tui.input.submit")) return;
if (!getKeybindings().matches(data, "tui.input.submit")) return undefined;

const input = ctx.ui.getEditorText().trim();
if (
input !== "/share" &&
input !== "/export" &&
!input.startsWith("/export ")
) {
return;
return undefined;
}

exportRendering = true;
Expand All @@ -454,6 +454,7 @@ export default function (pi: ExtensionAPI) {
repaintCalmToolRows();
ctx.ui.setStatus("firstmate-calm", undefined);
}, 0);
return undefined;
});
});

Expand Down
Loading
Loading