@agentv/core 3.13.2 → 3.14.0

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.
@@ -510,6 +510,15 @@ function resolveTargetDefinition(definition, env = process.env, evalFilePath) {
510
510
  providerBatching,
511
511
  config: resolveCopilotCliConfig(parsed, env, evalFilePath)
512
512
  };
513
+ case "copilot-log":
514
+ return {
515
+ kind: "copilot-log",
516
+ name: parsed.name,
517
+ graderTarget: parsed.grader_target ?? parsed.judge_target,
518
+ workers: parsed.workers,
519
+ providerBatching,
520
+ config: resolveCopilotLogConfig(parsed, env)
521
+ };
513
522
  case "pi":
514
523
  case "pi-coding-agent":
515
524
  return {
@@ -1302,6 +1311,43 @@ function resolveString(source, env, description, allowLiteral = false) {
1302
1311
  }
1303
1312
  return value;
1304
1313
  }
1314
+ function resolveDiscover(value, targetName) {
1315
+ if (value === void 0 || value === null) return void 0;
1316
+ if (value === "latest") return "latest";
1317
+ throw new Error(`Target "${targetName}": discover must be "latest" (got "${String(value)}")`);
1318
+ }
1319
+ function resolveCopilotLogConfig(target, env) {
1320
+ const sessionDirSource = target.session_dir ?? target.sessionDir;
1321
+ const sessionIdSource = target.session_id ?? target.sessionId;
1322
+ const discoverSource = target.discover;
1323
+ const sessionStateDirSource = target.session_state_dir ?? target.sessionStateDir;
1324
+ const cwdSource = target.cwd;
1325
+ return {
1326
+ sessionDir: resolveOptionalString(
1327
+ sessionDirSource,
1328
+ env,
1329
+ `${target.name} copilot-log session_dir`,
1330
+ { allowLiteral: true, optionalEnv: true }
1331
+ ),
1332
+ sessionId: resolveOptionalString(
1333
+ sessionIdSource,
1334
+ env,
1335
+ `${target.name} copilot-log session_id`,
1336
+ { allowLiteral: true, optionalEnv: true }
1337
+ ),
1338
+ discover: resolveDiscover(discoverSource, target.name),
1339
+ sessionStateDir: resolveOptionalString(
1340
+ sessionStateDirSource,
1341
+ env,
1342
+ `${target.name} copilot-log session_state_dir`,
1343
+ { allowLiteral: true, optionalEnv: true }
1344
+ ),
1345
+ cwd: resolveOptionalString(cwdSource, env, `${target.name} copilot-log cwd`, {
1346
+ allowLiteral: true,
1347
+ optionalEnv: true
1348
+ })
1349
+ };
1350
+ }
1305
1351
  function resolveOptionalString(source, env, description, options) {
1306
1352
  if (source === void 0 || source === null) {
1307
1353
  return void 0;
@@ -1595,6 +1641,7 @@ var KNOWN_PROVIDERS = [
1595
1641
  "codex",
1596
1642
  "copilot-sdk",
1597
1643
  "copilot-cli",
1644
+ "copilot-log",
1598
1645
  "pi-coding-agent",
1599
1646
  "pi-cli",
1600
1647
  "claude",
@@ -1672,4 +1719,4 @@ export {
1672
1719
  extractLastAssistantContent,
1673
1720
  isAgentProvider
1674
1721
  };
1675
- //# sourceMappingURL=chunk-ZB3AUPES.js.map
1722
+ //# sourceMappingURL=chunk-HP5PFOVK.js.map