agentv 2.11.2 → 2.11.4
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/{chunk-IL7CRMY6.js → chunk-APGYGAVM.js} +9 -8
- package/dist/chunk-APGYGAVM.js.map +1 -0
- package/dist/{chunk-SNABHVUB.js → chunk-FBGAD3CQ.js} +5 -5
- package/dist/{chunk-SNABHVUB.js.map → chunk-FBGAD3CQ.js.map} +1 -1
- package/dist/{chunk-MQIQH5LB.js → chunk-KWUTY5XR.js} +27 -5
- package/dist/chunk-KWUTY5XR.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{dist-OVEHXEXC.js → dist-RVGCGRG4.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{interactive-7NQRG7GK.js → interactive-O2KBWGEI.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-IL7CRMY6.js.map +0 -1
- package/dist/chunk-MQIQH5LB.js.map +0 -1
- /package/dist/{dist-OVEHXEXC.js.map → dist-RVGCGRG4.js.map} +0 -0
- /package/dist/{interactive-7NQRG7GK.js.map → interactive-O2KBWGEI.js.map} +0 -0
|
@@ -46293,14 +46293,24 @@ var RepoManager = class {
|
|
|
46293
46293
|
* Creates on first access, fetches updates on subsequent calls.
|
|
46294
46294
|
* Returns the absolute path to the cache directory.
|
|
46295
46295
|
*/
|
|
46296
|
-
async ensureCache(source, depth) {
|
|
46296
|
+
async ensureCache(source, depth, resolve2) {
|
|
46297
46297
|
const key = cacheKey(source);
|
|
46298
46298
|
const cachePath = path35.join(this.cacheDir, key);
|
|
46299
46299
|
const lockPath = `${cachePath}.lock`;
|
|
46300
|
+
const cacheExists = existsSync2(path35.join(cachePath, "HEAD"));
|
|
46301
|
+
if (resolve2 === "local") {
|
|
46302
|
+
if (cacheExists) {
|
|
46303
|
+
return cachePath;
|
|
46304
|
+
}
|
|
46305
|
+
const url2 = getSourceUrl(source);
|
|
46306
|
+
throw new Error(
|
|
46307
|
+
`No cache found for \`${url2}\`. Run \`agentv cache add --url ${url2} --from <local-path>\` to seed it.`
|
|
46308
|
+
);
|
|
46309
|
+
}
|
|
46300
46310
|
await mkdir11(this.cacheDir, { recursive: true });
|
|
46301
46311
|
await acquireLock(lockPath);
|
|
46302
46312
|
try {
|
|
46303
|
-
if (
|
|
46313
|
+
if (cacheExists) {
|
|
46304
46314
|
const fetchArgs = ["fetch", "--prune"];
|
|
46305
46315
|
if (depth) {
|
|
46306
46316
|
fetchArgs.push("--depth", String(depth));
|
|
@@ -46327,7 +46337,11 @@ var RepoManager = class {
|
|
|
46327
46337
|
*/
|
|
46328
46338
|
async materialize(repo, workspacePath) {
|
|
46329
46339
|
const targetDir = path35.join(workspacePath, repo.path);
|
|
46330
|
-
const cachePath = await this.ensureCache(
|
|
46340
|
+
const cachePath = await this.ensureCache(
|
|
46341
|
+
repo.source,
|
|
46342
|
+
repo.clone?.depth,
|
|
46343
|
+
repo.checkout?.resolve
|
|
46344
|
+
);
|
|
46331
46345
|
const cloneArgs = ["clone"];
|
|
46332
46346
|
if (repo.clone?.depth) {
|
|
46333
46347
|
cloneArgs.push("--depth", String(repo.clone.depth));
|
|
@@ -48107,7 +48121,15 @@ var AgentVConfigSchema = external_exports.object({
|
|
|
48107
48121
|
/** Maximum retries on failure (default: 2) */
|
|
48108
48122
|
maxRetries: external_exports.number().int().min(0).optional(),
|
|
48109
48123
|
/** Agent timeout in milliseconds (default: 120000) */
|
|
48110
|
-
agentTimeoutMs: external_exports.number().int().min(0).optional()
|
|
48124
|
+
agentTimeoutMs: external_exports.number().int().min(0).optional(),
|
|
48125
|
+
/** Enable verbose logging */
|
|
48126
|
+
verbose: external_exports.boolean().optional(),
|
|
48127
|
+
/** Write human-readable trace JSONL to this path (supports {timestamp} placeholder) */
|
|
48128
|
+
traceFile: external_exports.string().optional(),
|
|
48129
|
+
/** Always keep temp workspaces after eval */
|
|
48130
|
+
keepWorkspaces: external_exports.boolean().optional(),
|
|
48131
|
+
/** Write OTLP JSON trace to this path (supports {timestamp} placeholder) */
|
|
48132
|
+
otelFile: external_exports.string().optional()
|
|
48111
48133
|
}).optional(),
|
|
48112
48134
|
/** Output settings */
|
|
48113
48135
|
output: external_exports.object({
|
|
@@ -48844,4 +48866,4 @@ export {
|
|
|
48844
48866
|
OtelStreamingObserver,
|
|
48845
48867
|
createAgentKernel
|
|
48846
48868
|
};
|
|
48847
|
-
//# sourceMappingURL=chunk-
|
|
48869
|
+
//# sourceMappingURL=chunk-KWUTY5XR.js.map
|