@oh-my-pi/pi-agent-core 16.3.14 → 16.3.15

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-agent-core",
4
- "version": "16.3.14",
4
+ "version": "16.3.15",
5
5
  "description": "General-purpose agent with transport abstraction, state management, and attachment support",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -35,12 +35,12 @@
35
35
  "fmt": "biome format --write ."
36
36
  },
37
37
  "dependencies": {
38
- "@oh-my-pi/pi-ai": "16.3.14",
39
- "@oh-my-pi/pi-catalog": "16.3.14",
40
- "@oh-my-pi/pi-natives": "16.3.14",
41
- "@oh-my-pi/pi-utils": "16.3.14",
42
- "@oh-my-pi/pi-wire": "16.3.14",
43
- "@oh-my-pi/snapcompact": "16.3.14",
38
+ "@oh-my-pi/pi-ai": "16.3.15",
39
+ "@oh-my-pi/pi-catalog": "16.3.15",
40
+ "@oh-my-pi/pi-natives": "16.3.15",
41
+ "@oh-my-pi/pi-utils": "16.3.15",
42
+ "@oh-my-pi/pi-wire": "16.3.15",
43
+ "@oh-my-pi/snapcompact": "16.3.15",
44
44
  "@opentelemetry/api": "^1.9.1"
45
45
  },
46
46
  "devDependencies": {
@@ -10,7 +10,7 @@
10
10
  import type { Api, FetchImpl, Model } from "@oh-my-pi/pi-ai";
11
11
  import { isTransientStatus, ProviderHttpError } from "@oh-my-pi/pi-ai/error";
12
12
  import {
13
- getOpenAIResponsesPromptCacheKey,
13
+ getOpenAIPromptCacheKey,
14
14
  getOpenAIResponsesRoutingSessionId,
15
15
  parseAzureDeploymentNameMap,
16
16
  resolveOpenAIRequestSetup,
@@ -269,7 +269,7 @@ async function attemptCompactionV2Streaming(
269
269
  // of an otherwise-normal Responses request, then stream the result. `store`
270
270
  // stays false — compaction must never persist a server-side response object.
271
271
  const cacheOptions = { sessionId: request.sessionId, promptCacheKey: request.promptCacheKey };
272
- const promptCacheKey = getOpenAIResponsesPromptCacheKey(cacheOptions);
272
+ const promptCacheKey = getOpenAIPromptCacheKey(cacheOptions);
273
273
  const body: Record<string, unknown> = {
274
274
  model: request.model,
275
275
  input: [...request.input, COMPACTION_TRIGGER_ITEM],
@@ -311,7 +311,7 @@ function buildCompactionV2Headers(model: Model, apiKey: string, request: Compact
311
311
  const api = compactionV2Api(model);
312
312
  const cacheOptions = { sessionId: request.sessionId, promptCacheKey: request.promptCacheKey };
313
313
  const routingSessionId = getOpenAIResponsesRoutingSessionId(cacheOptions);
314
- const promptCacheSessionId = getOpenAIResponsesPromptCacheKey(cacheOptions);
314
+ const promptCacheSessionId = getOpenAIPromptCacheKey(cacheOptions);
315
315
  const headers: Record<string, string> =
316
316
  api === "azure-openai-responses"
317
317
  ? {