drexler 0.2.0 → 0.2.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/CHANGELOG.md +5 -0
- package/README.md +1 -0
- package/package.json +1 -1
- package/src/commands.ts +2 -2
- package/src/index.ts +1 -0
- package/src/ui/CommandPalette.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
- Fixed slash command help and palette coverage so every implemented command is discoverable.
|
|
6
|
+
- Kept overlapping slash-command previews visible, such as `/save` with `/save-last` and `/re` with `/regenerate`, `/redo`, and `/retry`.
|
|
7
|
+
|
|
3
8
|
## 0.2.0
|
|
4
9
|
|
|
5
10
|
- Added premium Ink chat chrome with responsive header, transcript viewport, command palette, input, live spinner, and streaming response states.
|
package/README.md
CHANGED
|
@@ -104,6 +104,7 @@ rm -rf ~/.config/drexler # optional: wipe stored key + settings
|
|
|
104
104
|
| `/startup fast\|no-intro\|normal` | persist startup behavior for future launches |
|
|
105
105
|
| `/history` | message count + approx tokens |
|
|
106
106
|
| `/regenerate` | re-roll last response |
|
|
107
|
+
| `/redo` | alias for `/regenerate` |
|
|
107
108
|
| `/retry terse\|brutal` | re-roll last response with a style mandate |
|
|
108
109
|
| `/expand` | print Drexler's latest response |
|
|
109
110
|
| `/quote` | quote Drexler's latest response |
|
package/package.json
CHANGED
package/src/commands.ts
CHANGED
|
@@ -38,6 +38,7 @@ const HELP_TEXT = `New memo to staff! Drexler permit following directives:
|
|
|
38
38
|
/startup - persist startup mode (fast, no-intro, normal)
|
|
39
39
|
/history - count messages and approximate tokens
|
|
40
40
|
/regenerate - re-roll Drexler's last response
|
|
41
|
+
/redo - alias for /regenerate
|
|
41
42
|
/retry [style] - re-roll last response, optionally terse or brutal
|
|
42
43
|
/expand - print Drexler's latest response
|
|
43
44
|
/quote - quote Drexler's latest response
|
|
@@ -64,6 +65,7 @@ export const COMMAND_PALETTE: ReadonlyArray<SlashCommand> = [
|
|
|
64
65
|
{ name: "/startup", description: "Persist startup mode" },
|
|
65
66
|
{ name: "/history", description: "Message + token count" },
|
|
66
67
|
{ name: "/regenerate", description: "Re-roll last response" },
|
|
68
|
+
{ name: "/redo", description: "Alias for regenerate" },
|
|
67
69
|
{ name: "/retry", description: "Retry terse or brutal" },
|
|
68
70
|
{ name: "/expand", description: "Print last response" },
|
|
69
71
|
{ name: "/quote", description: "Quote last response" },
|
|
@@ -79,8 +81,6 @@ export function filterPaletteByPrefix(
|
|
|
79
81
|
): ReadonlyArray<SlashCommand> {
|
|
80
82
|
if (!input.startsWith("/") || input.includes(" ")) return [];
|
|
81
83
|
const prefix = input.toLowerCase();
|
|
82
|
-
const exact = COMMAND_PALETTE.find((c) => c.name.toLowerCase() === prefix);
|
|
83
|
-
if (exact) return [exact];
|
|
84
84
|
return COMMAND_PALETTE.filter((c) =>
|
|
85
85
|
c.name.toLowerCase().startsWith(prefix),
|
|
86
86
|
);
|
package/src/index.ts
CHANGED
|
@@ -58,6 +58,7 @@ Slash commands inside REPL:
|
|
|
58
58
|
/startup [mode] persist startup mode: fast, no-intro, normal
|
|
59
59
|
/history message + token count
|
|
60
60
|
/regenerate re-roll last response
|
|
61
|
+
/redo alias for /regenerate
|
|
61
62
|
/retry [style] re-roll last response as terse or brutal
|
|
62
63
|
/expand print latest response
|
|
63
64
|
/quote quote latest response
|
|
@@ -20,6 +20,7 @@ const COMMAND_HINTS: Record<string, string> = {
|
|
|
20
20
|
"/startup": "/startup fast",
|
|
21
21
|
"/history": "show ledger stats",
|
|
22
22
|
"/regenerate": "retry last answer",
|
|
23
|
+
"/redo": "same as /regenerate",
|
|
23
24
|
"/retry": "/retry terse",
|
|
24
25
|
"/expand": "print latest response",
|
|
25
26
|
"/quote": "quote latest response",
|