pi-superwhisper-paste 0.1.1 → 0.1.2
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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/extensions/index.ts +18 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
This project follows semantic versioning.
|
|
6
6
|
|
|
7
|
+
## [0.1.2] - 2026-06-01
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Register `/sw-paste:on` and `/sw-paste:off` as Pi slash commands so they appear in command autocomplete.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Clarify that the Superwhisper paste controls are slash-autocomplete commands.
|
|
16
|
+
|
|
7
17
|
## [0.1.1] - 2026-05-31
|
|
8
18
|
|
|
9
19
|
### Added
|
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ This may not be a universal Superwhisper or Pi issue. If Superwhisper already pa
|
|
|
36
36
|
- Pastes only into the active Pi tab when multiple tabs are open.
|
|
37
37
|
- Ignores old clipboard content when switching tabs.
|
|
38
38
|
- Continues inserting while Pi is thinking or waiting on an agent turn.
|
|
39
|
-
- Provides
|
|
39
|
+
- Provides slash-autocomplete control commands: `/sw-paste:on` and `/sw-paste:off`.
|
|
40
40
|
|
|
41
41
|
## Install
|
|
42
42
|
|
package/extensions/index.ts
CHANGED
|
@@ -414,6 +414,24 @@ async function runControlAction(
|
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
export default function superwhisperPaste(pi: ExtensionAPI) {
|
|
417
|
+
pi.registerCommand("sw-paste:on", {
|
|
418
|
+
description: "Enable the Superwhisper clipboard paste bridge",
|
|
419
|
+
handler: async (_args, ctx) => {
|
|
420
|
+
const runtimeCtx = ctx as PiRuntimeContext;
|
|
421
|
+
const generation = ensureCurrentSession(runtimeCtx);
|
|
422
|
+
await runControlAction("on", runtimeCtx, generation);
|
|
423
|
+
},
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
pi.registerCommand("sw-paste:off", {
|
|
427
|
+
description: "Disable the Superwhisper clipboard paste bridge",
|
|
428
|
+
handler: async (_args, ctx) => {
|
|
429
|
+
const runtimeCtx = ctx as PiRuntimeContext;
|
|
430
|
+
const generation = ensureCurrentSession(runtimeCtx);
|
|
431
|
+
await runControlAction("off", runtimeCtx, generation);
|
|
432
|
+
},
|
|
433
|
+
});
|
|
434
|
+
|
|
417
435
|
pi.on("session_start", async (_event, ctx) => {
|
|
418
436
|
const runtimeCtx = ctx as PiRuntimeContext;
|
|
419
437
|
const generation = beginSession(runtimeCtx);
|