pi-branch-out 0.1.1 → 0.1.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.
@@ -9,9 +9,9 @@ import type {
9
9
  ExtensionCommandContext,
10
10
  ExtensionContext,
11
11
  SessionEntry,
12
- } from "@mariozechner/pi-coding-agent"
13
- import { SessionManager } from "@mariozechner/pi-coding-agent"
14
- import { Key, matchesKey } from "@mariozechner/pi-tui"
12
+ } from "@earendil-works/pi-coding-agent"
13
+ import { SessionManager } from "@earendil-works/pi-coding-agent"
14
+ import { Key, matchesKey } from "@earendil-works/pi-tui"
15
15
 
16
16
  const TERMINAL_FLAG = "branch-out-terminal"
17
17
  const STATUS_KEY = "branch-out-terminal"
@@ -1025,7 +1025,7 @@ function openInGhostty(ctx: ExtensionCommandContext, forkFile: string): void {
1025
1025
  }
1026
1026
 
1027
1027
  async function openForkInTerminal(pi: ExtensionAPI, ctx: ExtensionCommandContext, forkFile: string): Promise<void> {
1028
- const terminalFlag = normalizeTerminalFlag(pi.getFlag(`--${TERMINAL_FLAG}`))
1028
+ const terminalFlag = normalizeTerminalFlag(pi.getFlag(TERMINAL_FLAG))
1029
1029
  if (terminalFlag) {
1030
1030
  const command = renderTerminalCommand(terminalFlag, forkFile)
1031
1031
  spawnDetached("bash", ["-lc", command], (error) => {
@@ -1174,9 +1174,7 @@ export default function (pi: ExtensionAPI) {
1174
1174
 
1175
1175
  for (const eventName of [
1176
1176
  "session_before_switch",
1177
- "session_switch",
1178
1177
  "session_before_fork",
1179
- "session_fork",
1180
1178
  "session_before_tree",
1181
1179
  "session_tree",
1182
1180
  "session_shutdown",
@@ -1235,7 +1233,7 @@ export default function (pi: ExtensionAPI) {
1235
1233
 
1236
1234
  if (ctx.hasUI) {
1237
1235
  if (!launchData) {
1238
- ctx.ui.notify("Opened fork", "info")
1236
+ ctx.ui.notify("Created fork and requested terminal launch", "info")
1239
1237
  return
1240
1238
  }
1241
1239
 
@@ -1245,7 +1243,12 @@ export default function (pi: ExtensionAPI) {
1245
1243
  : ctx.model ? `${ctx.model.provider}/${ctx.model.id}` : undefined,
1246
1244
  launchData.message ? "draft queued" : undefined,
1247
1245
  ].filter(Boolean).join(" · ")
1248
- ctx.ui.notify(details ? `Opened fork (${details})` : "Opened fork", "info")
1246
+ ctx.ui.notify(
1247
+ details
1248
+ ? `Created fork and requested terminal launch (${details})`
1249
+ : "Created fork and requested terminal launch",
1250
+ "info",
1251
+ )
1249
1252
  }
1250
1253
  },
1251
1254
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-branch-out",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Fork the current Pi session into a split terminal pane or new tab with rotating layout policies, and with optional model and message queuing",
5
5
  "keywords": ["pi-package", "pi", "pi-coding-agent"],
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "extensions": ["extensions/branch-out/index.ts"]
18
18
  },
19
19
  "peerDependencies": {
20
- "@mariozechner/pi-coding-agent": "0.64.0"
20
+ "@earendil-works/pi-coding-agent": "^0.74.0"
21
21
  },
22
22
  "scripts": {
23
23
  "prepack": "node ../../scripts/pi-package-prepack.mjs"