staklink 0.3.6 → 0.3.7
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/proxy-server.cjs +14 -4
- package/dist/staklink-cli.cjs +1 -1
- package/package.json +1 -1
package/dist/proxy-server.cjs
CHANGED
|
@@ -33901,7 +33901,7 @@ var SSEManager = class {
|
|
|
33901
33901
|
var sseManager = new SSEManager();
|
|
33902
33902
|
|
|
33903
33903
|
// src/proxy/version.ts
|
|
33904
|
-
var VERSION = "0.3.
|
|
33904
|
+
var VERSION = "0.3.7";
|
|
33905
33905
|
|
|
33906
33906
|
// node_modules/uuid/dist/esm/stringify.js
|
|
33907
33907
|
var byteToHex = [];
|
|
@@ -80282,6 +80282,10 @@ async function startProxyServer() {
|
|
|
80282
80282
|
const createPR = req.query.pr === "true";
|
|
80283
80283
|
const commits = [];
|
|
80284
80284
|
const prs = {};
|
|
80285
|
+
console.log(`=> PR creation requested: ${createPR}`);
|
|
80286
|
+
console.log(
|
|
80287
|
+
`=> Git credentials available: ${!!code.git_credentials?.auth_data?.token}`
|
|
80288
|
+
);
|
|
80285
80289
|
for (const r of repos) {
|
|
80286
80290
|
console.log(`=> PUSH to ${r.url}`);
|
|
80287
80291
|
const repo = await NewRepo(r.url);
|
|
@@ -80292,10 +80296,17 @@ async function startProxyServer() {
|
|
|
80292
80296
|
}
|
|
80293
80297
|
const link = await repo.getLatestCommitLink();
|
|
80294
80298
|
commits.push(link);
|
|
80295
|
-
if (createPR
|
|
80299
|
+
if (createPR) {
|
|
80300
|
+
const repoName = getRepoNameFromUrl(r.url);
|
|
80301
|
+
if (!code.git_credentials?.auth_data?.token) {
|
|
80302
|
+
console.error(`=> No GitHub token available for PR creation`);
|
|
80303
|
+
prs[repoName] = "Error: GitHub token required for PR creation";
|
|
80304
|
+
continue;
|
|
80305
|
+
}
|
|
80296
80306
|
try {
|
|
80297
80307
|
console.log(`=> Creating PR for ${r.url}`);
|
|
80298
|
-
|
|
80308
|
+
console.log(`=> Branch: ${r.branch_name}`);
|
|
80309
|
+
console.log(`=> Base: ${r.base_branch || "main"}`);
|
|
80299
80310
|
const gh = new GitHubCLI(
|
|
80300
80311
|
code.git_credentials.auth_data.token,
|
|
80301
80312
|
r.branch_name
|
|
@@ -80317,7 +80328,6 @@ async function startProxyServer() {
|
|
|
80317
80328
|
}
|
|
80318
80329
|
} catch (prError) {
|
|
80319
80330
|
console.error(`=> Failed to create PR for ${r.url}:`, prError);
|
|
80320
|
-
const repoName = getRepoNameFromUrl(r.url);
|
|
80321
80331
|
prs[repoName] = `Error: ${prError instanceof Error ? prError.message : String(prError)}`;
|
|
80322
80332
|
}
|
|
80323
80333
|
}
|
package/dist/staklink-cli.cjs
CHANGED
|
@@ -10905,7 +10905,7 @@ var glob = Object.assign(glob_, {
|
|
|
10905
10905
|
glob.glob = glob;
|
|
10906
10906
|
|
|
10907
10907
|
// src/proxy/version.ts
|
|
10908
|
-
var VERSION = "0.3.
|
|
10908
|
+
var VERSION = "0.3.7";
|
|
10909
10909
|
|
|
10910
10910
|
// src/cli.ts
|
|
10911
10911
|
var STAKLINK_PROXY = "staklink-proxy";
|