@ai-sdk/harness-pi 1.0.105 → 1.0.106

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/harness-pi",
3
- "version": "1.0.105",
3
+ "version": "1.0.106",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@ai-sdk/harness": "1.0.103",
29
+ "@ai-sdk/harness": "1.0.104",
30
30
  "@ai-sdk/provider-utils": "5.0.37",
31
31
  "@earendil-works/pi-ai": "0.74.2",
32
32
  "@earendil-works/pi-coding-agent": "^0.84.3",
@@ -37,7 +37,7 @@
37
37
  "zod": "^3.25.76 || ^4.1.8"
38
38
  },
39
39
  "devDependencies": {
40
- "@ai-sdk/sandbox-just-bash": "1.0.103",
40
+ "@ai-sdk/sandbox-just-bash": "1.0.104",
41
41
  "@types/node": "22.19.19",
42
42
  "@vercel/ai-tsconfig": "0.0.0",
43
43
  "tsup": "^8.5.1",
package/src/pi-harness.ts CHANGED
@@ -23,14 +23,6 @@ const PI_CLIENT_APP = `ai-sdk/harness-pi/${VERSION}`;
23
23
  export type PiHarnessSettings = {
24
24
  /** Where Pi sources API keys / gateway credentials from. */
25
25
  readonly auth?: PiAuthenticationMode;
26
- /**
27
- * Pi model id (or name). Leaving this unset falls back to the AI Gateway
28
- * default when `AI_GATEWAY_API_KEY` / `VERCEL_OIDC_TOKEN` is set, and to
29
- * Pi's own resolution otherwise.
30
- *
31
- * @deprecated Use `model` on `HarnessAgent` instead.
32
- */
33
- readonly model?: string;
34
26
  /**
35
27
  * Pi's extended-thinking budget level. Maps directly to the SDK's
36
28
  * `thinkingLevel` option on `createAgentSession`.
@@ -153,7 +145,6 @@ export function createPi(
153
145
  sessionWorkDir: startOpts.sessionWorkDir,
154
146
  settings: {
155
147
  ...(settings.auth ? { auth: settings.auth } : {}),
156
- ...(settings.model == null ? {} : { model: settings.model }),
157
148
  ...(settings.thinkingLevel
158
149
  ? { thinkingLevel: settings.thinkingLevel }
159
150
  : {}),
@@ -56,7 +56,7 @@ export function createPiModelResolver({
56
56
  return cachedModels;
57
57
  };
58
58
 
59
- return (modelId: string | undefined): PiModel | undefined => {
59
+ return (modelId?: string): PiModel | undefined => {
60
60
  const useGateway = Boolean(getAiGatewayAuthFromEnv({ env }).apiKey);
61
61
  const effectiveId =
62
62
  modelId ?? (useGateway ? DEFAULT_PI_GATEWAY_MODEL_ID : undefined);
package/src/pi-session.ts CHANGED
@@ -220,7 +220,6 @@ export type PiThinkingLevel =
220
220
  export interface PiSessionSettings {
221
221
  readonly auth?: PiAuthenticationMode;
222
222
  readonly headers?: Readonly<Record<string, string>>;
223
- readonly model?: string;
224
223
  readonly thinkingLevel?: PiThinkingLevel;
225
224
  readonly mcpServers?: Record<string, unknown>;
226
225
  readonly extensionFactories?: ReadonlyArray<ExtensionFactory>;
@@ -459,7 +458,7 @@ export async function createPiSession(
459
458
  modelRegistry,
460
459
  env: resolverEnv,
461
460
  });
462
- let activeResolvedModel = resolveModel(input.settings.model);
461
+ let activeResolvedModel = resolveModel();
463
462
  const mcpServers = resolvePiMcpServers({
464
463
  mcpServers: input.settings.mcpServers,
465
464
  });