@pi-archimedes/session-name 2.2.0 → 2.3.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.
Files changed (2) hide show
  1. package/package.json +5 -2
  2. package/src/index.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-archimedes/session-name",
3
- "version": "2.2.0",
3
+ "version": "2.3.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.2.0"
17
+ "@pi-archimedes/core": "2.3.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@earendil-works/pi-coding-agent": ">=0.1.0",
@@ -22,6 +22,9 @@
22
22
  "@earendil-works/pi-tui": ">=0.1.0"
23
23
  },
24
24
  "devDependencies": {
25
+ "@earendil-works/pi-ai": "^0.84.2",
26
+ "@earendil-works/pi-coding-agent": "^0.84.2",
27
+ "@earendil-works/pi-tui": "^0.84.2",
25
28
  "typescript": "^6.0.0"
26
29
  },
27
30
  "pi": {
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { complete } from "@earendil-works/pi-ai";
1
+ import { complete } from "@earendil-works/pi-ai/compat";
2
+ import type { ProviderHeaders } from "@earendil-works/pi-ai";
2
3
  import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
3
4
  import { loadConfig } from "@pi-archimedes/core/settings-io";
4
5
  import type { SettingItem } from "@earendil-works/pi-tui";
@@ -161,7 +162,7 @@ async function generateTitle(
161
162
  if (!auth.ok) return;
162
163
 
163
164
  // 6. Make API call
164
- const opts: { reasoning: "minimal"; cacheRetention: "none"; sessionId: string; apiKey?: string; headers?: Record<string, string> } = {
165
+ const opts: { reasoning: "minimal"; cacheRetention: "none"; sessionId: string; apiKey?: string; headers?: ProviderHeaders } = {
165
166
  reasoning: "minimal",
166
167
  cacheRetention: "none",
167
168
  sessionId: crypto.randomUUID(),