@henryqw/pi-herdr-btw 1.1.2 → 1.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.
- package/extensions/btw.ts +2 -10
- package/internal/config.ts +0 -5
- package/package.json +1 -1
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" | "
|
|
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
|
|
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)}`,
|
package/internal/config.ts
CHANGED
|
@@ -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()));
|