@bluecopa/harness 0.1.0-snapshot.54 → 0.1.0-snapshot.56

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": "@bluecopa/harness",
3
- "version": "0.1.0-snapshot.54",
3
+ "version": "0.1.0-snapshot.56",
4
4
  "description": "Provider-agnostic TypeScript agent framework",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
@@ -4,6 +4,7 @@ import type { ModelFactory } from '../arc/types';
4
4
  import { z } from 'zod';
5
5
 
6
6
  import type { AgentAction, AgentMessage, AgentLoop, AgentStreamEvent, StepUsage, ToolCallAction, ToolBatchAction, PrepareStepContext, PrepareStepResult } from '../agent/types';
7
+ import { getTextContent } from '../agent/types';
7
8
 
8
9
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
10
  type AnyTool = Tool<any, any>;
@@ -170,19 +171,20 @@ export interface VercelAgentLoopConfig {
170
171
  /** System prompt — string or structured blocks with cache control markers. */
171
172
  systemPrompt?: string | SystemPromptBlock[];
172
173
  createModel?: ModelFactory;
173
- systemPrompt?: string;
174
174
  /** Custom tool definitions. If provided, replaces built-in agentTools for LLM calls. */
175
175
  tools?: Record<string, AnyTool>;
176
176
  /** Provider options passed to generateText/streamText (e.g. anthropic thinking config). */
177
177
  providerOptions?: Record<string, unknown>;
178
178
  /** Per-step callback to override model and active tools before each LLM call. */
179
179
  prepareStep?: (context: PrepareStepContext) => PrepareStepResult | void;
180
+ /** @deprecated Use createModel instead. */
181
+ apiKey?: string;
180
182
  }
181
183
 
182
184
  export class VercelAgentLoop implements AgentLoop {
183
185
  private readonly model: string;
184
186
  private readonly createModel: ModelFactory;
185
- private readonly systemPrompt: string;
187
+ private readonly systemPrompt: string | SystemPromptBlock[];
186
188
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
187
189
  private readonly cachedSystem: any;
188
190
  private readonly tools: Record<string, AnyTool>;