@agnishc/edb-auto-name-session 0.5.0 → 0.6.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.0] - 2026-05-11
4
+
5
+ ### Changed
6
+ - Migrated all imports and peerDependencies from `@mariozechner/pi-*` to `@earendil-works/pi-*` namespace
7
+
8
+ ## [0.5.1] - 2026-05-05
9
+
10
+ ### Added
11
+ - Expose the current session name to agents by appending it to the system prompt before agent startup.
12
+
3
13
  ## [0.5.0] - 2026-05-05
4
14
 
5
15
  ## [0.2.0] - 2026-04-29
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnishc/edb-auto-name-session",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "Pi extension: replace Pi's first-message session label with a generated title",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -37,7 +37,7 @@
37
37
  ]
38
38
  },
39
39
  "peerDependencies": {
40
- "@mariozechner/pi-ai": "*",
41
- "@mariozechner/pi-coding-agent": "*"
40
+ "@earendil-works/pi-ai": "*",
41
+ "@earendil-works/pi-coding-agent": "*"
42
42
  }
43
43
  }
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { complete } from "@mariozechner/pi-ai";
2
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
1
+ import { complete } from "@earendil-works/pi-ai";
2
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
3
3
  import { extractUserText, sanitizeSessionName, shouldArmAutoNaming } from "./title";
4
4
 
5
5
  const MODEL_PROVIDER = "opencode";
@@ -34,6 +34,14 @@ export default function autoNameSessionExtension(pi: ExtensionAPI): void {
34
34
  pending = false;
35
35
  });
36
36
 
37
+ pi.on("before_agent_start", async (event) => {
38
+ const name = pi.getSessionName();
39
+ if (!name) return;
40
+ return {
41
+ systemPrompt: `${event.systemPrompt}\n\nCurrent session name: ${name}`,
42
+ };
43
+ });
44
+
37
45
  pi.on("message_end", async (event, ctx) => {
38
46
  if (!armed || pending || pi.getSessionName()) return;
39
47
  if (event.message.role !== "user") return;
package/src/title.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { SessionEntry } from "@mariozechner/pi-coding-agent";
1
+ import type { SessionEntry } from "@earendil-works/pi-coding-agent";
2
2
 
3
3
  const MAX_PROMPT_CHARS = 4_000;
4
4
  const MAX_TITLE_CHARS = 60;