agentv 4.27.0 → 4.28.0-next.1

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.
Files changed (31) hide show
  1. package/dist/{agentv-provider-7AMUD2GX-SDILCAKJ.js → agentv-provider-AYXH7WLW-NJRC6UQX.js} +2 -2
  2. package/dist/{artifact-writer-VRDVTNSX.js → artifact-writer-WTMNQKPV.js} +5 -5
  3. package/dist/{chunk-TWBKRGXR.js → chunk-7T6AF75O.js} +3 -3
  4. package/dist/{chunk-XVFU4XKT.js → chunk-M7BUKBAF.js} +3 -3
  5. package/dist/chunk-M7BUKBAF.js.map +1 -0
  6. package/dist/{chunk-PH5MHKPL.js → chunk-UV7G7TWO.js} +316 -257
  7. package/dist/chunk-UV7G7TWO.js.map +1 -0
  8. package/dist/{chunk-VOOYHYPR.js → chunk-VTOY4SMC.js} +41 -24
  9. package/dist/chunk-VTOY4SMC.js.map +1 -0
  10. package/dist/{chunk-6BAB3XBI.js → chunk-WZVOY2W2.js} +47 -7
  11. package/dist/chunk-WZVOY2W2.js.map +1 -0
  12. package/dist/{chunk-VO3THAOI.js → chunk-XM4CHF6C.js} +11 -11
  13. package/dist/chunk-XM4CHF6C.js.map +1 -0
  14. package/dist/cli.js +6 -6
  15. package/dist/{dist-COH43OLQ.js → dist-VYHXTFO3.js} +8 -4
  16. package/dist/index.js +6 -6
  17. package/dist/{interactive-UG4YNLYK.js → interactive-MMQ6OO6X.js} +6 -6
  18. package/dist/skills/agentv-eval-writer/references/eval-schema.json +598 -2475
  19. package/dist/{ts-eval-loader-BZ54W52K-KLIY3S3N.js → ts-eval-loader-EMSGL2BQ-P5RV35TE.js} +3 -3
  20. package/package.json +4 -4
  21. package/dist/chunk-6BAB3XBI.js.map +0 -1
  22. package/dist/chunk-PH5MHKPL.js.map +0 -1
  23. package/dist/chunk-VO3THAOI.js.map +0 -1
  24. package/dist/chunk-VOOYHYPR.js.map +0 -1
  25. package/dist/chunk-XVFU4XKT.js.map +0 -1
  26. /package/dist/{agentv-provider-7AMUD2GX-SDILCAKJ.js.map → agentv-provider-AYXH7WLW-NJRC6UQX.js.map} +0 -0
  27. /package/dist/{artifact-writer-VRDVTNSX.js.map → artifact-writer-WTMNQKPV.js.map} +0 -0
  28. /package/dist/{chunk-TWBKRGXR.js.map → chunk-7T6AF75O.js.map} +0 -0
  29. /package/dist/{dist-COH43OLQ.js.map → dist-VYHXTFO3.js.map} +0 -0
  30. /package/dist/{interactive-UG4YNLYK.js.map → interactive-MMQ6OO6X.js.map} +0 -0
  31. /package/dist/{ts-eval-loader-BZ54W52K-KLIY3S3N.js.map → ts-eval-loader-EMSGL2BQ-P5RV35TE.js.map} +0 -0
@@ -10,7 +10,7 @@ import {
10
10
  GeminiProvider,
11
11
  OpenAIProvider,
12
12
  OpenRouterProvider
13
- } from "./chunk-XVFU4XKT.js";
13
+ } from "./chunk-M7BUKBAF.js";
14
14
  import {
15
15
  __export
16
16
  } from "./chunk-5H446C7X.js";
@@ -4056,7 +4056,7 @@ var coerce = {
4056
4056
  };
4057
4057
  var NEVER = INVALID;
4058
4058
 
4059
- // ../../packages/core/dist/chunk-7LQI7772.js
4059
+ // ../../packages/core/dist/chunk-YFXMMBUG.js
4060
4060
  import { parse } from "yaml";
4061
4061
  import { constants } from "node:fs";
4062
4062
  import { access, readFile } from "node:fs/promises";
@@ -5445,6 +5445,7 @@ function resolveClaudeConfig(target, env, _evalFilePath) {
5445
5445
  const systemPrompt = typeof systemPromptSource === "string" && systemPromptSource.trim().length > 0 ? systemPromptSource.trim() : void 0;
5446
5446
  const maxTurns = typeof target.max_turns === "number" ? target.max_turns : void 0;
5447
5447
  const maxBudgetUsd = typeof target.max_budget_usd === "number" ? target.max_budget_usd : void 0;
5448
+ const bypassPermissions = target.bypass_permissions !== void 0 ? resolveOptionalBoolean(target.bypass_permissions) : void 0;
5448
5449
  return {
5449
5450
  executable,
5450
5451
  model,
@@ -5455,7 +5456,8 @@ function resolveClaudeConfig(target, env, _evalFilePath) {
5455
5456
  maxBudgetUsd,
5456
5457
  logDir,
5457
5458
  logFormat,
5458
- streamLog: streamLogResult.streamLog
5459
+ streamLog: streamLogResult.streamLog,
5460
+ bypassPermissions
5459
5461
  };
5460
5462
  }
5461
5463
  function resolveCcMirrorBinaryPath(variant) {
@@ -5980,7 +5982,7 @@ async function expandFileReferences(tests, evalFileDir) {
5980
5982
  return expanded;
5981
5983
  }
5982
5984
 
5983
- // ../../packages/core/dist/chunk-JNBHD34F.js
5985
+ // ../../packages/core/dist/chunk-SCC35F3L.js
5984
5986
  import path46 from "node:path";
5985
5987
  import { pathToFileURL as pathToFileURL2 } from "node:url";
5986
5988
  import { existsSync as existsSync6 } from "node:fs";
@@ -18647,7 +18649,7 @@ var RequestError = class _RequestError extends Error {
18647
18649
  }
18648
18650
  };
18649
18651
 
18650
- // ../../packages/core/dist/chunk-JNBHD34F.js
18652
+ // ../../packages/core/dist/chunk-SCC35F3L.js
18651
18653
  import { exec as execCallback } from "node:child_process";
18652
18654
  import { readdirSync, statSync } from "node:fs";
18653
18655
  import { readFile as readFile22, readdir as readdir2, stat as stat2 } from "node:fs/promises";
@@ -23340,6 +23342,9 @@ var ClaudeCliProvider = class {
23340
23342
  "--include-partial-messages",
23341
23343
  "--verbose"
23342
23344
  ];
23345
+ if (this.config.bypassPermissions !== false) {
23346
+ args.push("--dangerously-skip-permissions");
23347
+ }
23343
23348
  if (this.config.model) {
23344
23349
  args.push("--model", this.config.model);
23345
23350
  }
@@ -27445,7 +27450,7 @@ async function promptInstall() {
27445
27450
  try {
27446
27451
  return await new Promise((resolve) => {
27447
27452
  rl.question(
27448
- "@mariozechner/pi-coding-agent is not installed. Install it now? (y/N) ",
27453
+ "@earendil-works/pi-coding-agent is not installed. Install it now? (y/N) ",
27449
27454
  (answer) => resolve(answer.trim().toLowerCase() === "y")
27450
27455
  );
27451
27456
  });
@@ -27483,8 +27488,8 @@ function findAccessiblePath(paths) {
27483
27488
  async function tryImportLocalSdkModules() {
27484
27489
  try {
27485
27490
  [piCodingAgentModule, piAiModule] = await Promise.all([
27486
- import("@mariozechner/pi-coding-agent"),
27487
- import("@mariozechner/pi-ai")
27491
+ import("@earendil-works/pi-coding-agent"),
27492
+ import("@earendil-works/pi-ai")
27488
27493
  ]);
27489
27494
  return true;
27490
27495
  } catch {
@@ -27494,17 +27499,24 @@ async function tryImportLocalSdkModules() {
27494
27499
  async function tryImportManagedSdkModules() {
27495
27500
  const managedRoot = findManagedSdkInstallRoot();
27496
27501
  const piCodingAgentEntry = findAccessiblePath([
27497
- path16.join(managedRoot, "node_modules", "@mariozechner", "pi-coding-agent", "dist", "index.js")
27502
+ path16.join(
27503
+ managedRoot,
27504
+ "node_modules",
27505
+ "@earendil-works",
27506
+ "pi-coding-agent",
27507
+ "dist",
27508
+ "index.js"
27509
+ )
27498
27510
  ]);
27499
27511
  const piAiEntry = findAccessiblePath([
27500
- path16.join(managedRoot, "node_modules", "@mariozechner", "pi-ai", "dist", "index.js"),
27512
+ path16.join(managedRoot, "node_modules", "@earendil-works", "pi-ai", "dist", "index.js"),
27501
27513
  path16.join(
27502
27514
  managedRoot,
27503
27515
  "node_modules",
27504
- "@mariozechner",
27516
+ "@earendil-works",
27505
27517
  "pi-coding-agent",
27506
27518
  "node_modules",
27507
- "@mariozechner",
27519
+ "@earendil-works",
27508
27520
  "pi-ai",
27509
27521
  "dist",
27510
27522
  "index.js"
@@ -27525,16 +27537,16 @@ async function tryImportGlobalSdkModules() {
27525
27537
  const globalNpmRoot = resolveGlobalNpmRoot();
27526
27538
  if (!globalNpmRoot) return false;
27527
27539
  const piCodingAgentEntry = findAccessiblePath([
27528
- buildGlobalModuleEntry("@mariozechner/pi-coding-agent", globalNpmRoot)
27540
+ buildGlobalModuleEntry("@earendil-works/pi-coding-agent", globalNpmRoot)
27529
27541
  ]);
27530
27542
  const piAiEntry = findAccessiblePath([
27531
- buildGlobalModuleEntry("@mariozechner/pi-ai", globalNpmRoot),
27543
+ buildGlobalModuleEntry("@earendil-works/pi-ai", globalNpmRoot),
27532
27544
  path16.join(
27533
27545
  globalNpmRoot,
27534
- "@mariozechner",
27546
+ "@earendil-works",
27535
27547
  "pi-coding-agent",
27536
27548
  "node_modules",
27537
- "@mariozechner",
27549
+ "@earendil-works",
27538
27550
  "pi-ai",
27539
27551
  "dist",
27540
27552
  "index.js"
@@ -27552,9 +27564,9 @@ async function tryImportGlobalSdkModules() {
27552
27564
  }
27553
27565
  }
27554
27566
  function installSdkModules(installDir) {
27555
- console.error(`Installing @mariozechner/pi-coding-agent into ${installDir} via npm...`);
27567
+ console.error(`Installing @earendil-works/pi-coding-agent into ${installDir} via npm...`);
27556
27568
  mkdirSync(installDir, { recursive: true });
27557
- execSync2("npm install --no-save --no-package-lock @mariozechner/pi-coding-agent", {
27569
+ execSync2("npm install --no-save --no-package-lock @earendil-works/pi-coding-agent", {
27558
27570
  cwd: installDir,
27559
27571
  stdio: "inherit"
27560
27572
  });
@@ -27571,7 +27583,7 @@ async function doLoadSdkModules() {
27571
27583
  }
27572
27584
  }
27573
27585
  throw new Error(
27574
- "pi-coding-agent SDK is not installed. Install it with:\n npm install @mariozechner/pi-coding-agent"
27586
+ "pi-coding-agent SDK is not installed. Install it with:\n npm install @earendil-works/pi-coding-agent"
27575
27587
  );
27576
27588
  }
27577
27589
  async function loadSdkModules() {
@@ -30533,6 +30545,9 @@ function gitEnv2() {
30533
30545
  function getSourceUrl(source) {
30534
30546
  return source.type === "git" ? source.url : source.path;
30535
30547
  }
30548
+ function isFullCommitSha(ref) {
30549
+ return typeof ref === "string" && /^[0-9a-f]{40}$/i.test(ref);
30550
+ }
30536
30551
  async function git2(args, opts) {
30537
30552
  const { stdout } = await execFileAsync2("git", args, {
30538
30553
  cwd: opts?.cwd,
@@ -30643,8 +30658,10 @@ ${lines.join("\n")}`;
30643
30658
  }
30644
30659
  const ref = getRepoCheckoutRef(repo.checkout);
30645
30660
  const resolve = repo.checkout?.resolve ?? "remote";
30661
+ const baseCommit = repo.checkout?.base_commit;
30662
+ const shouldResolveLocally = resolve === "local" || repo.source.type === "git" && isFullCommitSha(baseCommit);
30646
30663
  let resolvedSha;
30647
- if (resolve === "remote" && repo.source.type === "git") {
30664
+ if (!shouldResolveLocally && repo.source.type === "git") {
30648
30665
  const url2 = getSourceUrl(repo.source);
30649
30666
  try {
30650
30667
  const lsOutput = await this.runGit(["ls-remote", url2, ref]);
@@ -34042,7 +34059,7 @@ async function loadTestSuite(evalFilePath, repoRoot, options) {
34042
34059
  return { tests: await loadTestsFromAgentSkills(evalFilePath) };
34043
34060
  }
34044
34061
  if (format === "typescript") {
34045
- const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-BZ54W52K-KLIY3S3N.js");
34062
+ const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-EMSGL2BQ-P5RV35TE.js");
34046
34063
  return loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
34047
34064
  }
34048
34065
  const { tests, parsed, suiteWorkspacePath } = await loadTestsFromYaml(
@@ -34077,7 +34094,7 @@ async function loadTests(evalFilePath, repoRoot, options) {
34077
34094
  return loadTestsFromAgentSkills(evalFilePath);
34078
34095
  }
34079
34096
  if (format === "typescript") {
34080
- const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-BZ54W52K-KLIY3S3N.js");
34097
+ const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-EMSGL2BQ-P5RV35TE.js");
34081
34098
  const suite = await loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
34082
34099
  return suite.tests;
34083
34100
  }
@@ -34813,7 +34830,7 @@ async function runEvaluation(options) {
34813
34830
  if (!cliModel) {
34814
34831
  throw new Error('--grader-target "agentv" requires --model (e.g., "openai:gpt-5-mini")');
34815
34832
  }
34816
- const { AgentvProvider: AgentvProvider2 } = await import("./agentv-provider-7AMUD2GX-SDILCAKJ.js");
34833
+ const { AgentvProvider: AgentvProvider2 } = await import("./agentv-provider-AYXH7WLW-NJRC6UQX.js");
34817
34834
  return new AgentvProvider2("agentv", { model: cliModel, temperature: 0 });
34818
34835
  }
34819
34836
  const overrideTarget = resolveTargetByName(cliGraderTarget);
@@ -37974,4 +37991,4 @@ export {
37974
37991
  loadTsEvalFile,
37975
37992
  loadTsEvalSuite
37976
37993
  };
37977
- //# sourceMappingURL=chunk-VOOYHYPR.js.map
37994
+ //# sourceMappingURL=chunk-VTOY4SMC.js.map