@kisuke/cli 1.1.15-dev.24.1 → 1.1.17-dev.26.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.
@@ -1,5 +1,4 @@
1
1
  {
2
- "accountId": "YOUR_R2_ACCOUNT_ID",
3
- "bucket": "YOUR_R2_BUCKET",
2
+ "downloadBaseUrl": "https://download.kisuke.dev",
4
3
  "prefix": "connect/"
5
4
  }
package/config.json CHANGED
@@ -1,5 +1,4 @@
1
1
  {
2
- "accountId": "6a348304da22f29510e4479f02a7fa33",
3
- "bucket": "releases",
2
+ "downloadBaseUrl": "https://download.kisuke.dev",
4
3
  "prefix": "connect/"
5
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kisuke/cli",
3
- "version": "1.1.15-dev.24.1",
3
+ "version": "1.1.17-dev.26.1",
4
4
  "private": false,
5
5
  "description": "Kisuke CLI (dev) installer",
6
6
  "type": "module",
@@ -29,17 +29,12 @@ const config = fs.existsSync(configPath)
29
29
  ? JSON.parse(fs.readFileSync(configPath, 'utf8'))
30
30
  : {};
31
31
 
32
- const accountId = config.accountId || process.env.R2_ACCOUNT_ID;
33
- const bucket = config.bucket || process.env.R2_BUCKET;
34
32
  let prefix = config.prefix || process.env.R2_PREFIX || 'connect/';
35
-
36
- if (!accountId || !bucket) {
37
- throw new Error('Missing R2 configuration. Provide config.json or R2_ACCOUNT_ID/R2_BUCKET env vars.');
38
- }
33
+ const downloadBaseUrl = config.downloadBaseUrl || process.env.DOWNLOAD_BASE_URL || 'https://download.kisuke.dev';
39
34
 
40
35
  if (prefix && !prefix.endsWith('/')) prefix = `${prefix}/`;
41
36
 
42
- const baseUrl = `https://${accountId}.r2.cloudflarestorage.com/${bucket}/${prefix}`;
37
+ const baseUrl = `${downloadBaseUrl}/${prefix}`;
43
38
  const folderUrl = `${baseUrl}${baseVersion}/cli/${platformTag}/`;
44
39
  const archiveUrl = `${folderUrl}${archiveName}`;
45
40
  const sumsUrl = `${folderUrl}SHA256SUMS`;