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.
@@ -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 (existsSync2(path35.join(cachePath, "HEAD"))) {
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(repo.source, repo.clone?.depth);
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-MQIQH5LB.js.map
48869
+ //# sourceMappingURL=chunk-KWUTY5XR.js.map