pi-quiver 4.1.0 → 4.1.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 +4 -0
- package/extensions/session-name.ts +13 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,10 @@ Published to npm as `pi-quiver` (`pi install npm:pi-quiver`). Pushing a
|
|
|
8
8
|
via OIDC trusted publishing. The release helper at
|
|
9
9
|
`.agents/skills/release/scripts/release.sh` cuts the tag; CI publishes.
|
|
10
10
|
|
|
11
|
+
## v4.1.1 - 2026-08-17
|
|
12
|
+
|
|
13
|
+
- **`session-name`: fix silent auto-naming failure on GitHub Copilot business/enterprise accounts.** Those credentials pin requests to an account-specific endpoint (`auth.baseUrl` from `getApiKeyAndHeaders`); the naming call ignored it and hit the catalog's individual endpoint, failing with `421 Misdirected Request` and leaving sessions unnamed. The naming request now mirrors pi's own request path and prefers the credential's endpoint.
|
|
14
|
+
|
|
11
15
|
## v4.1.0 - 2026-08-14
|
|
12
16
|
|
|
13
17
|
- **`session-name`: configurable naming policy** (#5). New `sessionAutoName` keys: `rules` (house conventions appended to the naming prompt, later rules win), `deny` (literal case-insensitive phrases stripped from every name, loose interior whitespace so `"acme corp"` also catches `AcmeCorp`), and `revisitFirstTurn`/`revisitEveryTurns` (re-derive the name once those round-trip counts are crossed; default `0` = off, each revisit is one short LLM call). Machine-generated names are replaced when stale; human-set names only get a non-blocking suggestion notification. Name provenance and cadence persist across resume. Revisits run detached and only after the agent has fully settled, so automated multi-turn runs (chains, workflows) are never renamed or delayed mid-flight.
|
|
@@ -347,6 +347,18 @@ export function buildNamingPrompt(conversation: string, opts: PromptOptions = {}
|
|
|
347
347
|
return lines.join("\n");
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
+
// Copilot business/enterprise credentials pin requests to an account-specific
|
|
351
|
+
// endpoint reported by getApiKeyAndHeaders as auth.baseUrl; the catalog model
|
|
352
|
+
// still carries the individual endpoint, and hitting it with such a token
|
|
353
|
+
// fails with 421 Misdirected Request. Mirror pi's own request path: prefer the
|
|
354
|
+
// credential's endpoint when present.
|
|
355
|
+
export function withAuthBaseUrl<M extends { baseUrl: string }>(
|
|
356
|
+
model: M,
|
|
357
|
+
auth: { baseUrl?: string },
|
|
358
|
+
): M {
|
|
359
|
+
return auth.baseUrl ? { ...model, baseUrl: auth.baseUrl } : model;
|
|
360
|
+
}
|
|
361
|
+
|
|
350
362
|
async function generateName(
|
|
351
363
|
ctx: ExtensionContext,
|
|
352
364
|
opts: PromptOptions = {},
|
|
@@ -368,7 +380,7 @@ async function generateName(
|
|
|
368
380
|
|
|
369
381
|
const complete = await loadComplete();
|
|
370
382
|
const response = await complete(
|
|
371
|
-
model,
|
|
383
|
+
withAuthBaseUrl(model, auth),
|
|
372
384
|
{
|
|
373
385
|
messages: [
|
|
374
386
|
{ role: "user" as const, content: [{ type: "text" as const, text: prompt }], timestamp: Date.now() },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-quiver",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Personal pack of Pi coding-agent extensions: context-safe fetch, doc_to_md PDF/DOCX/PPTX-to-Markdown conversion, session naming, a themed ASCII startup header, Opus 4.8 fast mode, and a provider-stall watchdog.",
|
|
5
5
|
"author": "Jacek Juraszek",
|
|
6
6
|
"license": "MIT",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"unpdf": "^1.6.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@earendil-works/pi-ai": "^0.
|
|
83
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
84
|
-
"@earendil-works/pi-tui": "^0.
|
|
82
|
+
"@earendil-works/pi-ai": "^0.84.2",
|
|
83
|
+
"@earendil-works/pi-coding-agent": "^0.84.2",
|
|
84
|
+
"@earendil-works/pi-tui": "^0.84.2",
|
|
85
85
|
"@sinclair/typebox": "^0.34.49",
|
|
86
86
|
"@types/jsdom": "^28.0.3",
|
|
87
87
|
"@types/node": "^26.1.0",
|