@resourcexjs/registry 2.1.0 → 2.1.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.
package/dist/index.d.ts CHANGED
@@ -291,10 +291,6 @@ declare class RemoteRegistry implements Registry {
291
291
  declare function discoverRegistry(domain: string): Promise<DiscoveryResult>;
292
292
  import { RXR as RXR4, RXL as RXL4 } from "@resourcexjs/core";
293
293
  import { ResourceType as ResourceType4, ResolvedResource as ResolvedResource4 } from "@resourcexjs/type";
294
- /**
295
- * Git-based registry implementation.
296
- * Clones a git repository and reads resources from it.
297
- */
298
294
  declare class GitRegistry implements Registry {
299
295
  private readonly url;
300
296
  private readonly ref;
@@ -302,6 +298,7 @@ declare class GitRegistry implements Registry {
302
298
  private readonly cacheDir;
303
299
  private readonly typeHandler;
304
300
  private readonly arp;
301
+ private readonly isLocal;
305
302
  constructor(config: GitRegistryConfig);
306
303
  /**
307
304
  * Build cache directory name from git URL.
@@ -315,6 +312,8 @@ declare class GitRegistry implements Registry {
315
312
  private toArpUrl;
316
313
  /**
317
314
  * Ensure the repository is cloned and up to date.
315
+ * For local paths, just verify the .git directory exists.
316
+ * For remote URLs, includes retry logic for transient network errors.
318
317
  */
319
318
  private ensureCloned;
320
319
  /**
@@ -322,10 +321,6 @@ declare class GitRegistry implements Registry {
322
321
  */
323
322
  private getDefaultBranch;
324
323
  /**
325
- * Execute git command in the cache directory.
326
- */
327
- private gitExec;
328
- /**
329
324
  * Build filesystem path for a resource in the cloned repo.
330
325
  * Path structure: {cacheDir}/{basePath}/{domain}/{path}/{name}.{type}/{version}
331
326
  */