@pi-archimedes/session-name 2.3.0 → 2.4.0
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/README.md +2 -1
- package/package.json +2 -2
- package/src/index.ts +1 -11
package/README.md
CHANGED
|
@@ -33,9 +33,10 @@ After a conversation ends (`agent_end`), the extension extracts the first user m
|
|
|
33
33
|
|
|
34
34
|
| Setting | Type | Default | Description |
|
|
35
35
|
|---------|------|---------|-------------|
|
|
36
|
-
| `enabled` | bool | `true` | Enable automatic session naming |
|
|
37
36
|
| `model` | string | _(current model)_ | Override model for title generation (e.g., `openai/gpt-4o-mini`) |
|
|
38
37
|
|
|
38
|
+
On/off is managed by the suite: toggle via `/plugins` (`archimedes.sessionName.enabled`, default on).
|
|
39
|
+
|
|
39
40
|
Settings are stored in `~/.pi/agent/settings.json` under the `archimedes.sessionName` namespace.
|
|
40
41
|
|
|
41
42
|
## Integration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-archimedes/session-name",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
".": "./src/index.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@pi-archimedes/core": "2.
|
|
17
|
+
"@pi-archimedes/core": "2.4.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@earendil-works/pi-coding-agent": ">=0.1.0",
|
package/src/index.ts
CHANGED
|
@@ -7,12 +7,12 @@ import type { SettingItem } from "@earendil-works/pi-tui";
|
|
|
7
7
|
// ── Config ──────────────────────────────────────────────────────────────────
|
|
8
8
|
|
|
9
9
|
export interface SessionNameSettings {
|
|
10
|
+
// suite-managed by meta's plugin gate (archimedes.sessionName.enabled — see ADR 0012); session-name never reads this
|
|
10
11
|
enabled?: boolean | undefined;
|
|
11
12
|
model?: string | undefined;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
const DEFAULT_SESSION_NAME_CONFIG: SessionNameSettings = {
|
|
15
|
-
enabled: true,
|
|
16
16
|
model: undefined,
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -85,9 +85,6 @@ async function generateTitle(
|
|
|
85
85
|
try {
|
|
86
86
|
const settings = loadSessionNameConfig();
|
|
87
87
|
|
|
88
|
-
// Guard: feature disabled
|
|
89
|
-
if (!settings.enabled) return;
|
|
90
|
-
|
|
91
88
|
// 1. Build conversation text — first user + assistant exchange only
|
|
92
89
|
const branch = ctx.sessionManager.getBranch();
|
|
93
90
|
const userLines: string[] = [];
|
|
@@ -244,13 +241,6 @@ export default registerSessionName;
|
|
|
244
241
|
/** Build settings UI items for the session-name package. */
|
|
245
242
|
export function getSessionNameSettingsItems(config: SessionNameSettings): SettingItem[] {
|
|
246
243
|
return [
|
|
247
|
-
{
|
|
248
|
-
id: "sessionNameEnabled",
|
|
249
|
-
label: "Auto session naming",
|
|
250
|
-
description: "Auto-generate session titles after the first exchange",
|
|
251
|
-
currentValue: config.enabled ? "On" : "Off",
|
|
252
|
-
values: ["On", "Off"],
|
|
253
|
-
},
|
|
254
244
|
{
|
|
255
245
|
id: "sessionNameModel",
|
|
256
246
|
label: "Model for naming",
|