@henryqw/pi-herdr-btw 1.1.2 → 1.1.4

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
@@ -2,6 +2,12 @@
2
2
 
3
3
  Open a focused Pi side thread in a Herdr pane, then merge its transcript and follow-up prompt into Main.
4
4
 
5
+ ## Why
6
+
7
+ - **Created for**: Asking quick side questions in a dedicated Pi thread without derailing Main's conversation or context.
8
+ - **Advantage**: `/btw merge` returns the side transcript and follow-up to Main without manually copying context.
9
+ - **Inspired by**: [Claude Code](https://github.com/anthropics/claude-code) and its `/btw` side-question mode; this package adds transcript merge back into Main.
10
+
5
11
  ## Install
6
12
 
7
13
  ```bash
package/extensions/btw.ts CHANGED
@@ -76,7 +76,7 @@ export type ContextStorePort = Pick<
76
76
  | "readMergeRequest"
77
77
  | "removeIfNoPendingMerge"
78
78
  >;
79
- export type ConfigStorePort = Pick<ConfigStore, "load" | "save" | "update" | "reset">;
79
+ export type ConfigStorePort = Pick<ConfigStore, "load" | "update" | "reset">;
80
80
 
81
81
  const SIDE_PANE_INSTRUCTIONS = `You are running in a focused /btw side pane spawned from another Pi session.
82
82
 
@@ -682,15 +682,7 @@ export async function registerBtwExtension(
682
682
  return;
683
683
  }
684
684
  const splitOutcome = classifyLaunchResult(splitResult);
685
- if (splitOutcome === "failed") {
686
- await store.remove(payloadPath);
687
- ctx.ui.notify(
688
- `/btw failed: ${safeErrorText(splitResult.stdout, splitResult.stderr)}`,
689
- "error",
690
- );
691
- return;
692
- }
693
- if (splitOutcome === "ambiguous") {
685
+ if (splitOutcome !== "success") {
694
686
  await store.remove(payloadPath);
695
687
  ctx.ui.notify(
696
688
  `/btw failed: ${safeErrorText(splitResult.stdout, splitResult.stderr)}`,
@@ -122,11 +122,6 @@ export class ConfigStore {
122
122
  }
123
123
  }
124
124
 
125
- async save(config: BtwConfig): Promise<void> {
126
- const validated = parseConfig(config);
127
- await this.withLock(() => this.saveUnlocked(validated));
128
- }
129
-
130
125
  async update(mutator: (config: BtwConfig) => BtwConfig): Promise<BtwConfig> {
131
126
  return this.withLock(async () => {
132
127
  const next = parseConfig(mutator(await this.load()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-herdr-btw",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Open and merge tool-enabled Pi side threads in Herdr panes.",
5
5
  "keywords": [
6
6
  "pi-package",