@agentfield/sdk 0.1.130-rc.4 → 0.1.130

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/dist/index.d.ts CHANGED
@@ -1322,7 +1322,13 @@ interface SkillOptions {
1322
1322
  }
1323
1323
 
1324
1324
  interface HarnessConfig {
1325
- provider: 'claude-code' | 'codex' | 'gemini' | 'opencode';
1325
+ /**
1326
+ * Coding agent provider. Defaults to `aforge`, AgentField's native harness.
1327
+ * When unset, `AGENTFIELD_HARNESS_PROVIDER` is consulted before the default.
1328
+ * An explicit value always wins.
1329
+ */
1330
+ provider?: 'aforge' | 'claude-code' | 'codex' | 'gemini' | 'opencode';
1331
+ /** Model identifier. Empty means the provider's own default. */
1326
1332
  model?: string;
1327
1333
  /**
1328
1334
  * Provider-specific reasoning-effort variant (e.g. `high`, `minimal`).
@@ -1340,12 +1346,20 @@ interface HarnessConfig {
1340
1346
  systemPrompt?: string;
1341
1347
  env?: Record<string, string>;
1342
1348
  cwd?: string;
1349
+ projectDir?: string;
1350
+ aforgeBin?: string;
1343
1351
  codexBin?: string;
1344
1352
  geminiBin?: string;
1345
1353
  opencodeBin?: string;
1346
1354
  }
1347
1355
  interface HarnessOptions {
1356
+ /**
1357
+ * Coding agent provider. Defaults to `aforge`, AgentField's native harness.
1358
+ * When unset, `AGENTFIELD_HARNESS_PROVIDER` is consulted before the default.
1359
+ * An explicit value always wins.
1360
+ */
1348
1361
  provider?: string;
1362
+ /** Model identifier. Empty means the provider's own default. */
1349
1363
  model?: string;
1350
1364
  /**
1351
1365
  * Provider-specific reasoning-effort variant (e.g. `high`, `minimal`).
@@ -1363,6 +1377,8 @@ interface HarnessOptions {
1363
1377
  systemPrompt?: string;
1364
1378
  env?: Record<string, string>;
1365
1379
  cwd?: string;
1380
+ projectDir?: string;
1381
+ aforgeBin?: string;
1366
1382
  codexBin?: string;
1367
1383
  geminiBin?: string;
1368
1384
  opencodeBin?: string;
@@ -1384,18 +1400,23 @@ interface Metrics {
1384
1400
  /** Model reported by the provider, when available. */
1385
1401
  model?: string;
1386
1402
  }
1403
+ type FailureType = 'none' | 'crash' | 'timeout' | 'api_error' | 'no_output' | 'schema';
1387
1404
  interface RawResult {
1388
1405
  result?: string;
1389
1406
  messages: Array<Record<string, unknown>>;
1390
1407
  metrics: Metrics;
1391
1408
  isError: boolean;
1392
1409
  errorMessage?: string;
1410
+ failureType?: FailureType;
1411
+ returnCode?: number;
1393
1412
  }
1394
1413
  interface HarnessResult {
1395
1414
  result?: string;
1396
1415
  parsed?: unknown;
1397
1416
  isError: boolean;
1398
1417
  errorMessage?: string;
1418
+ failureType?: FailureType;
1419
+ returnCode?: number;
1399
1420
  costUsd?: number;
1400
1421
  numTurns: number;
1401
1422
  durationMs: number;
@@ -1665,6 +1686,8 @@ type RunnerOptions = Omit<HarnessOptions, 'schema'> & {
1665
1686
  initialDelay?: number;
1666
1687
  maxDelay?: number;
1667
1688
  backoffFactor?: number;
1689
+ projectDir?: string;
1690
+ aforgeBin?: string;
1668
1691
  codexBin?: string;
1669
1692
  geminiBin?: string;
1670
1693
  opencodeBin?: string;