agentv 4.34.1-next.1 → 4.35.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.
@@ -14,8 +14,8 @@ import {
14
14
  writeArtifactsFromResults,
15
15
  writeInitialBenchmarkArtifact,
16
16
  writePerTestArtifacts
17
- } from "./chunk-GPRZ7XSC.js";
18
- import "./chunk-KP4SPQ2M.js";
17
+ } from "./chunk-KJGYL3M3.js";
18
+ import "./chunk-KNF3AGCI.js";
19
19
  import "./chunk-QOBQ5XYF.js";
20
20
  import "./chunk-BPGJ4HBU.js";
21
21
  import "./chunk-6QEIZ33V.js";
@@ -38,4 +38,4 @@ export {
38
38
  writeInitialBenchmarkArtifact,
39
39
  writePerTestArtifacts
40
40
  };
41
- //# sourceMappingURL=artifact-writer-UWZX5JKX.js.map
41
+ //# sourceMappingURL=artifact-writer-G57MG52C.js.map
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
2
  import {
3
3
  toTranscriptJsonLines
4
- } from "./chunk-KP4SPQ2M.js";
4
+ } from "./chunk-KNF3AGCI.js";
5
5
  import {
6
6
  DEFAULT_THRESHOLD,
7
7
  parseYamlValue
@@ -1231,4 +1231,4 @@ export {
1231
1231
  writePerTestArtifacts,
1232
1232
  writeArtifactsFromResults
1233
1233
  };
1234
- //# sourceMappingURL=chunk-GPRZ7XSC.js.map
1234
+ //# sourceMappingURL=chunk-KJGYL3M3.js.map
@@ -1551,20 +1551,20 @@ function fromYaml(raw) {
1551
1551
  addedAt: typeof e.added_at === "string" ? e.added_at : "",
1552
1552
  lastOpenedAt: typeof e.last_opened_at === "string" ? e.last_opened_at : ""
1553
1553
  };
1554
- if (e.source && typeof e.source === "object") {
1555
- const s = e.source;
1556
- if (typeof s.url === "string" && typeof s.ref === "string") {
1557
- entry.source = { url: s.url, ref: s.ref };
1558
- }
1554
+ if (typeof e.repo_url === "string" && e.repo_url.trim().length > 0) {
1555
+ entry.repoUrl = e.repo_url.trim();
1556
+ }
1557
+ if (typeof e.ref === "string" && e.ref.trim().length > 0) {
1558
+ entry.ref = e.ref.trim();
1559
1559
  }
1560
1560
  if (e.results && typeof e.results === "object") {
1561
1561
  const r = e.results;
1562
- if (r.mode === "github" && typeof r.repo === "string" && r.repo.trim().length > 0) {
1562
+ if (typeof r.repo_url === "string" && r.repo_url.trim().length > 0) {
1563
+ const sync = r.sync && typeof r.sync === "object" ? r.sync : void 0;
1563
1564
  entry.results = {
1564
- mode: "github",
1565
- repo: r.repo.trim(),
1565
+ repoUrl: r.repo_url.trim(),
1566
1566
  ...typeof r.path === "string" && r.path.trim().length > 0 ? { path: r.path.trim() } : {},
1567
- ...typeof r.auto_push === "boolean" ? { autoPush: r.auto_push } : {},
1567
+ ...sync && typeof sync.auto_push === "boolean" ? { sync: { autoPush: sync.auto_push } } : {},
1568
1568
  ...typeof r.branch_prefix === "string" && r.branch_prefix.trim().length > 0 ? { branchPrefix: r.branch_prefix.trim() } : {}
1569
1569
  };
1570
1570
  }
@@ -1575,19 +1575,19 @@ function toYaml(entry) {
1575
1575
  const yaml = {
1576
1576
  id: entry.id,
1577
1577
  name: entry.name,
1578
+ ...entry.repoUrl !== void 0 && { repo_url: entry.repoUrl },
1578
1579
  path: entry.path,
1580
+ ...entry.ref !== void 0 && { ref: entry.ref },
1579
1581
  added_at: entry.addedAt,
1580
1582
  last_opened_at: entry.lastOpenedAt
1581
1583
  };
1582
- if (entry.source) {
1583
- yaml.source = { url: entry.source.url, ref: entry.source.ref };
1584
- }
1585
1584
  if (entry.results) {
1586
1585
  yaml.results = {
1587
- mode: entry.results.mode,
1588
- repo: entry.results.repo,
1586
+ repo_url: entry.results.repoUrl,
1589
1587
  ...entry.results.path !== void 0 && { path: entry.results.path },
1590
- ...entry.results.autoPush !== void 0 && { auto_push: entry.results.autoPush },
1588
+ ...entry.results.sync?.autoPush !== void 0 && {
1589
+ sync: { auto_push: entry.results.sync.autoPush }
1590
+ },
1591
1591
  ...entry.results.branchPrefix !== void 0 && {
1592
1592
  branch_prefix: entry.results.branchPrefix
1593
1593
  }
@@ -1723,25 +1723,27 @@ function discoverProjects(rootDir, maxDepth = 2) {
1723
1723
  return results.sort();
1724
1724
  }
1725
1725
  async function syncProject(entry) {
1726
- if (!entry.source) {
1727
- throw new Error(`Project '${entry.id}' has no source defined`);
1726
+ if (!entry.repoUrl) {
1727
+ throw new Error(`Project '${entry.id}' has no repo_url defined`);
1728
+ }
1729
+ if (!entry.ref) {
1730
+ throw new Error(`Project '${entry.id}' has no ref defined`);
1728
1731
  }
1729
- const { url, ref } = entry.source;
1730
1732
  const dest = entry.path;
1731
1733
  if (existsSync3(`${dest}/.git`)) {
1732
1734
  childProcess.execFileSync("git", ["-C", dest, "pull", "--ff-only"], { stdio: "inherit" });
1733
1735
  } else {
1734
1736
  childProcess.execFileSync(
1735
1737
  "git",
1736
- ["clone", "--depth", "1", "--filter=blob:none", "--branch", ref, url, dest],
1738
+ ["clone", "--depth", "1", "--filter=blob:none", "--branch", entry.ref, entry.repoUrl, dest],
1737
1739
  { stdio: "inherit" }
1738
1740
  );
1739
1741
  }
1740
1742
  }
1741
1743
  async function syncProjects(entries) {
1742
1744
  for (const entry of entries) {
1743
- if (!entry.source) continue;
1744
- console.log(`Syncing project '${entry.id}' from ${entry.source.url}...`);
1745
+ if (!entry.repoUrl) continue;
1746
+ console.log(`Syncing project '${entry.id}' from ${entry.repoUrl}...`);
1745
1747
  await syncProject(entry);
1746
1748
  console.log(`Project '${entry.id}' synced.`);
1747
1749
  }
@@ -3031,4 +3033,4 @@ export {
3031
3033
  TranscriptProvider,
3032
3034
  createAgentKernel
3033
3035
  };
3034
- //# sourceMappingURL=chunk-KP4SPQ2M.js.map
3036
+ //# sourceMappingURL=chunk-KNF3AGCI.js.map