staklink 0.3.7 → 0.3.8
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 +10 -3
- 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.8";
|
|
33905
33905
|
|
|
33906
33906
|
// node_modules/uuid/dist/esm/stringify.js
|
|
33907
33907
|
var byteToHex = [];
|
|
@@ -79588,9 +79588,11 @@ var GitHubCLI = class {
|
|
|
79588
79588
|
branch;
|
|
79589
79589
|
owner;
|
|
79590
79590
|
repo;
|
|
79591
|
-
|
|
79591
|
+
cwd;
|
|
79592
|
+
constructor(token, branch, cwd) {
|
|
79592
79593
|
this.token = token;
|
|
79593
79594
|
this.branch = branch;
|
|
79595
|
+
this.cwd = cwd;
|
|
79594
79596
|
}
|
|
79595
79597
|
/**
|
|
79596
79598
|
* Initialize and get repo info from git
|
|
@@ -79612,6 +79614,7 @@ var GitHubCLI = class {
|
|
|
79612
79614
|
const fullCommand = `gh ${command}`;
|
|
79613
79615
|
try {
|
|
79614
79616
|
return await execAsync(fullCommand, {
|
|
79617
|
+
cwd: this.cwd,
|
|
79615
79618
|
env: {
|
|
79616
79619
|
...process.env,
|
|
79617
79620
|
GH_TOKEN: this.token,
|
|
@@ -79632,6 +79635,7 @@ Stderr: ${error82.stderr}`
|
|
|
79632
79635
|
const fullCommand = `gh ${command}`;
|
|
79633
79636
|
try {
|
|
79634
79637
|
return (0, import_child_process4.execSync)(fullCommand, {
|
|
79638
|
+
cwd: this.cwd,
|
|
79635
79639
|
encoding: "utf-8",
|
|
79636
79640
|
env: {
|
|
79637
79641
|
...process.env,
|
|
@@ -80307,9 +80311,12 @@ async function startProxyServer() {
|
|
|
80307
80311
|
console.log(`=> Creating PR for ${r.url}`);
|
|
80308
80312
|
console.log(`=> Branch: ${r.branch_name}`);
|
|
80309
80313
|
console.log(`=> Base: ${r.base_branch || "main"}`);
|
|
80314
|
+
const repoLocation = repo.printcwd();
|
|
80315
|
+
console.log(`=> Repo location: ${repoLocation}`);
|
|
80310
80316
|
const gh = new GitHubCLI(
|
|
80311
80317
|
code.git_credentials.auth_data.token,
|
|
80312
|
-
r.branch_name
|
|
80318
|
+
r.branch_name,
|
|
80319
|
+
repoLocation
|
|
80313
80320
|
);
|
|
80314
80321
|
await gh.init();
|
|
80315
80322
|
const existingPR = await gh.findPRByBranch();
|
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.8";
|
|
10909
10909
|
|
|
10910
10910
|
// src/cli.ts
|
|
10911
10911
|
var STAKLINK_PROXY = "staklink-proxy";
|