@henryqw/pi-herdr-clone 0.2.9 → 0.3.1

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@henryqw/pi-herdr-clone`
2
2
 
3
- Pi extension that clones the current conversation path into a new Pi process in a new tab of the current Herdr workspace, or into a new Herdr Git worktree workspace. Requires Pi Coding Agent 0.84.x (minimum 0.84.2) and a Pi session running inside Herdr.
3
+ Pi extension that clones the current conversation path into a new Pi process in a new tab of the current Herdr workspace, or into a new Herdr Git worktree workspace. Requires Pi Coding Agent 0.84.4+ and a Pi session running inside Herdr.
4
4
 
5
5
  ## Why
6
6
 
@@ -20,7 +20,7 @@ pi install npm:@henryqw/pi-herdr-clone
20
20
  | `/clone-tab` | command | Clone the current conversation into a new tab of the current Herdr workspace. |
21
21
  | `/clone-worktree` | command | Clone the current conversation into a new Herdr Git worktree workspace. |
22
22
 
23
- Both commands wait until Pi is idle, then validate the current Herdr pane (`HERDR_ENV=1`, `HERDR_PANE_ID`), the persisted session file, and the current session leaf. They copy only the active root-to-leaf path into a new persisted session file: sibling branches are excluded and the original Pi session is not switched. Neither command has configuration.
23
+ Both commands immediately validate the current Herdr pane (`HERDR_ENV=1`, `HERDR_PANE_ID`), the session file, and the current session leaf. They copy only the active root-to-leaf path available when invoked into a new persisted session file: sibling branches and any still-streaming assistant output are excluded, and the original Pi session is not switched. Neither command has configuration.
24
24
 
25
25
  ### `/clone-tab` behavior
26
26
 
@@ -232,7 +232,6 @@ export default function herdrCloneExtension(pi: ExtensionAPI): void {
232
232
  pi.registerCommand("clone-tab", {
233
233
  description: "Clone the current conversation path into a new Herdr tab",
234
234
  handler: async (_args, ctx) => {
235
- await ctx.waitForIdle();
236
235
  const source = await resolveSource("clone-tab", herdr, ctx);
237
236
  const mutate = async (): Promise<{ createdTab: HerdrExecResult; cloneFile: string }> => {
238
237
  const cloneFile = await createBranchedClone(ctx, source, ctx.cwd);
@@ -275,7 +274,6 @@ export default function herdrCloneExtension(pi: ExtensionAPI): void {
275
274
  pi.registerCommand("clone-worktree", {
276
275
  description: "Clone the current conversation into Pi in a new Herdr Git worktree",
277
276
  handler: async (_args, ctx) => {
278
- await ctx.waitForIdle();
279
277
  const source = await resolveSource("clone-worktree", herdr, ctx);
280
278
 
281
279
  // Herdr only creates worktrees from the repo parent workspace; running
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-herdr-clone",
3
- "version": "0.2.9",
3
+ "version": "0.3.1",
4
4
  "description": "Clone the current Pi conversation path into a new Herdr tab.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -25,7 +25,7 @@
25
25
  "pack:check": "npm pack --dry-run"
26
26
  },
27
27
  "peerDependencies": {
28
- "@earendil-works/pi-coding-agent": "^0.84.2"
28
+ "@earendil-works/pi-coding-agent": "^0.84.4"
29
29
  },
30
30
  "dependencies": {
31
31
  "@henryqw/pi-herdr": "^0.4.0"