agentv 4.34.1-next.1 → 4.35.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.
- package/dist/{artifact-writer-UWZX5JKX.js → artifact-writer-G57MG52C.js} +3 -3
- package/dist/{chunk-4Y6LH2Q5.js → chunk-6NMAI6I6.js} +17 -6
- package/dist/{chunk-4Y6LH2Q5.js.map → chunk-6NMAI6I6.js.map} +1 -1
- package/dist/{chunk-GPRZ7XSC.js → chunk-KJGYL3M3.js} +2 -2
- package/dist/{chunk-KP4SPQ2M.js → chunk-KNF3AGCI.js} +24 -22
- package/dist/chunk-KNF3AGCI.js.map +1 -0
- package/dist/{chunk-HRN7BFMP.js → chunk-Q6LNXSP2.js} +131 -11
- package/dist/chunk-Q6LNXSP2.js.map +1 -0
- package/dist/cli.js +4 -4
- package/dist/dashboard/assets/{index-B4alzfKh.js → index-BWO0UcxG.js} +1 -1
- package/dist/dashboard/assets/{index-CM9L4pya.js → index-Bdk-9a_8.js} +1 -1
- package/dist/dashboard/index.html +1 -1
- package/dist/{dist-Z5VWSDOO.js → dist-M4B77IW4.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{interactive-VQPUNWH2.js → interactive-GFD5XV35.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-HRN7BFMP.js.map +0 -1
- package/dist/chunk-KP4SPQ2M.js.map +0 -1
- /package/dist/{artifact-writer-UWZX5JKX.js.map → artifact-writer-G57MG52C.js.map} +0 -0
- /package/dist/{chunk-GPRZ7XSC.js.map → chunk-KJGYL3M3.js.map} +0 -0
- /package/dist/{dist-Z5VWSDOO.js.map → dist-M4B77IW4.js.map} +0 -0
- /package/dist/{interactive-VQPUNWH2.js.map → interactive-GFD5XV35.js.map} +0 -0
|
@@ -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-
|
|
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-
|
|
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 (
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
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 (
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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 && {
|
|
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.
|
|
1727
|
-
throw new Error(`Project '${entry.id}' has no
|
|
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,
|
|
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.
|
|
1744
|
-
console.log(`Syncing project '${entry.id}' from ${entry.
|
|
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-
|
|
3036
|
+
//# sourceMappingURL=chunk-KNF3AGCI.js.map
|