pi-copy-message 1.0.2 → 1.0.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/CHANGELOG.md +4 -0
- package/extensions/copy-message.ts +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.3 - 2026-06-07
|
|
4
|
+
|
|
5
|
+
- Register `/copy-message` before `/copy-user` so package command autocomplete prefers the picker over the shortcut.
|
|
6
|
+
|
|
3
7
|
## 1.0.2 - 2026-06-07
|
|
4
8
|
|
|
5
9
|
- Add `/copy-user` shortcut for copying the most recent user message directly.
|
|
@@ -470,13 +470,6 @@ function copyMostRecentUserMessage(ctx: Pick<ExtensionCommandContext, "sessionMa
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
export default function copyMessageExtension(pi: Pick<ExtensionAPI, "registerCommand">) {
|
|
473
|
-
pi.registerCommand("copy-user", {
|
|
474
|
-
description: "Copy the most recent user message to the clipboard",
|
|
475
|
-
handler: async (_args, ctx) => {
|
|
476
|
-
copyMostRecentUserMessage(ctx);
|
|
477
|
-
},
|
|
478
|
-
});
|
|
479
|
-
|
|
480
473
|
pi.registerCommand("copy-message", {
|
|
481
474
|
description: "Select a session message and copy its raw text to the clipboard",
|
|
482
475
|
handler: async (args, ctx) => {
|
|
@@ -504,4 +497,11 @@ export default function copyMessageExtension(pi: Pick<ExtensionAPI, "registerCom
|
|
|
504
497
|
copySelectedMessage(ctx, selected);
|
|
505
498
|
},
|
|
506
499
|
});
|
|
500
|
+
|
|
501
|
+
pi.registerCommand("copy-user", {
|
|
502
|
+
description: "Copy the most recent user message to the clipboard",
|
|
503
|
+
handler: async (_args, ctx) => {
|
|
504
|
+
copyMostRecentUserMessage(ctx);
|
|
505
|
+
},
|
|
506
|
+
});
|
|
507
507
|
}
|
package/package.json
CHANGED