@agnishc/edb-append-system-prompt 0.10.5 → 0.10.6
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 +2 -0
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/state.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* - Delete individual snippets
|
|
12
12
|
* - Persists across /reload via session storage — scoped to this session only
|
|
13
13
|
*
|
|
14
|
-
* Command: /
|
|
14
|
+
* Command: /prompt-inject
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import type { ExtensionAPI, ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
|
|
@@ -42,7 +42,7 @@ export default function sysPromptExtension(pi: ExtensionAPI): void {
|
|
|
42
42
|
return { systemPrompt: `${event.systemPrompt}\n\n${addition}` };
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
pi.registerCommand("
|
|
45
|
+
pi.registerCommand("prompt-inject", {
|
|
46
46
|
description: "Manage system prompt snippets — add, view, and delete",
|
|
47
47
|
handler: async (_args, ctx: ExtensionCommandContext) => {
|
|
48
48
|
if (!ctx.hasUI) return;
|
package/src/state.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { Snippet } from "./types";
|
|
|
6
6
|
|
|
7
7
|
export let snippets: Snippet[] = [];
|
|
8
8
|
|
|
9
|
-
export const STATUS_KEY = "
|
|
9
|
+
export const STATUS_KEY = "prompt-inject";
|
|
10
10
|
export const ENTRY_TYPE = "sys-prompt-snippets";
|
|
11
11
|
|
|
12
12
|
// ── State helpers ──────────────────────────────────────────────────────────────
|