@pierre/storage 1.0.2 → 1.0.3

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/README.md CHANGED
@@ -51,6 +51,15 @@ const forkedRepo = await store.createRepo({
51
51
  },
52
52
  });
53
53
  // If defaultBranch is omitted, the SDK returns "main".
54
+
55
+ // Create a repo synced to a public GitHub repository without app auth
56
+ const publicSyncRepo = await store.createRepo({
57
+ baseRepo: {
58
+ owner: 'octocat',
59
+ name: 'Hello-World',
60
+ auth: { authType: 'public' },
61
+ },
62
+ });
54
63
  ```
55
64
 
56
65
  ### Finding a Repository
@@ -380,6 +389,9 @@ interface CreateRepoOptions {
380
389
  name: string; // GitHub repository name
381
390
  defaultBranch?: string;
382
391
  provider?: 'github';
392
+ auth?: {
393
+ authType: 'public'; // Force public GitHub mode (no app install)
394
+ };
383
395
  };
384
396
  defaultBranch?: string; // Optional default branch name (defaults to "main")
385
397
  }
package/dist/index.cjs CHANGED
@@ -514,7 +514,7 @@ function concatChunks(a, b) {
514
514
 
515
515
  // package.json
516
516
  var package_default = {
517
- version: "1.0.2"};
517
+ version: "1.0.3"};
518
518
 
519
519
  // src/version.ts
520
520
  var PACKAGE_NAME = "code-storage-sdk";