@oh-my-pi/pi-coding-agent 17.0.6 → 17.0.7

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-coding-agent",
4
- "version": "17.0.6",
4
+ "version": "17.0.7",
5
5
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -52,17 +52,17 @@
52
52
  "@agentclientprotocol/sdk": "1.2.1",
53
53
  "@babel/parser": "^7.29.7",
54
54
  "@mozilla/readability": "^0.6.0",
55
- "@oh-my-pi/hashline": "17.0.6",
56
- "@oh-my-pi/omp-stats": "17.0.6",
57
- "@oh-my-pi/pi-agent-core": "17.0.6",
58
- "@oh-my-pi/pi-ai": "17.0.6",
59
- "@oh-my-pi/pi-catalog": "17.0.6",
60
- "@oh-my-pi/pi-mnemopi": "17.0.6",
61
- "@oh-my-pi/pi-natives": "17.0.6",
62
- "@oh-my-pi/pi-tui": "17.0.6",
63
- "@oh-my-pi/pi-utils": "17.0.6",
64
- "@oh-my-pi/pi-wire": "17.0.6",
65
- "@oh-my-pi/snapcompact": "17.0.6",
55
+ "@oh-my-pi/hashline": "17.0.7",
56
+ "@oh-my-pi/omp-stats": "17.0.7",
57
+ "@oh-my-pi/pi-agent-core": "17.0.7",
58
+ "@oh-my-pi/pi-ai": "17.0.7",
59
+ "@oh-my-pi/pi-catalog": "17.0.7",
60
+ "@oh-my-pi/pi-mnemopi": "17.0.7",
61
+ "@oh-my-pi/pi-natives": "17.0.7",
62
+ "@oh-my-pi/pi-tui": "17.0.7",
63
+ "@oh-my-pi/pi-utils": "17.0.7",
64
+ "@oh-my-pi/pi-wire": "17.0.7",
65
+ "@oh-my-pi/snapcompact": "17.0.7",
66
66
  "@opentelemetry/api": "^1.9.1",
67
67
  "@opentelemetry/api-logs": "^0.220.0",
68
68
  "@opentelemetry/context-async-hooks": "^2.9.0",
@@ -10,6 +10,7 @@ import type { Api, Model, RemoteCompactionConfig } from "@oh-my-pi/pi-ai/types";
10
10
  import { buildModel } from "@oh-my-pi/pi-catalog/build";
11
11
  import {
12
12
  getBundledModelReferenceIndex,
13
+ inheritReferenceThinking,
13
14
  isQwenModelId,
14
15
  resolveModelReference,
15
16
  stripBracketedModelIdAffixes,
@@ -752,7 +753,7 @@ export async function discoverOpenAIModelsList(
752
753
  provider: providerConfig.provider,
753
754
  baseUrl,
754
755
  reasoning: reference?.reasoning ?? false,
755
- thinking: reference?.thinking,
756
+ thinking: inheritReferenceThinking(undefined, reference, providerConfig.provider),
756
757
  input: nativeMetadataForModel?.input ?? reference?.input ?? ["text"],
757
758
  ...(providerConfig.discovery.type === "lm-studio" ? { imageInputDecoder: "stb" as const } : {}),
758
759
  // Proxy/gateway pricing is provider-specific and rarely matches
@@ -907,7 +908,7 @@ export async function discoverProxyModels(
907
908
  provider: providerConfig.provider,
908
909
  baseUrl,
909
910
  reasoning: reference?.reasoning ?? false,
910
- thinking: reference?.thinking,
911
+ thinking: inheritReferenceThinking(undefined, reference, providerConfig.provider),
911
912
  input: reference?.input ?? ["text"],
912
913
  // Proxy pricing is provider-specific and usually does not match
913
914
  // upstream bundled catalogs, so keep costs local-unknown even when
@@ -64,7 +64,11 @@ const BUILT_IN_DISCOVERY_NON_AUTHORITATIVE_RETRY_MS = 5 * 60 * 1000;
64
64
  import type { ApiKeyResolver, FetchImpl } from "@oh-my-pi/pi-ai";
65
65
  import { registerOAuthProvider, unregisterOAuthProviders } from "@oh-my-pi/pi-ai/oauth";
66
66
  import type { OAuthCredentials, OAuthLoginCallbacks } from "@oh-my-pi/pi-ai/oauth/types";
67
- import { getBundledModelReferenceIndex, resolveModelReference } from "@oh-my-pi/pi-catalog/identity";
67
+ import {
68
+ getBundledModelReferenceIndex,
69
+ inheritReferenceThinking,
70
+ resolveModelReference,
71
+ } from "@oh-my-pi/pi-catalog/identity";
68
72
  import { isBunTestRuntime, isRecord, logger, wrapFetchForExtraCa } from "@oh-my-pi/pi-utils";
69
73
  import { parseModelString, resolveProviderModelReference } from "../config/model-resolver";
70
74
  import type { AuthStorage, OAuthCredential } from "../session/auth-storage";
@@ -667,7 +671,7 @@ function finalizeCustomModel(model: CustomModelOverlay, options: CustomModelBuil
667
671
  provider: resolvedModel.provider,
668
672
  baseUrl: resolvedModel.baseUrl,
669
673
  reasoning: resolvedModel.reasoning ?? reference?.reasoning ?? (options.useDefaults ? false : undefined),
670
- thinking: resolvedModel.thinking ?? reference?.thinking,
674
+ thinking: inheritReferenceThinking(resolvedModel.thinking, reference, resolvedModel.provider),
671
675
  input: input as ("text" | "image")[],
672
676
  ...(supportsTools !== undefined ? { supportsTools } : {}),
673
677
  cost,