staklink 0.3.81 → 0.3.83
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 +17 -5
- package/dist/staklink-cli.cjs +37 -1
- package/package.json +1 -1
package/dist/proxy-server.cjs
CHANGED
|
@@ -61213,7 +61213,7 @@ var SSEManager = class {
|
|
|
61213
61213
|
var sseManager = new SSEManager();
|
|
61214
61214
|
|
|
61215
61215
|
// src/proxy/version.ts
|
|
61216
|
-
var VERSION = "0.3.
|
|
61216
|
+
var VERSION = "0.3.83";
|
|
61217
61217
|
|
|
61218
61218
|
// node_modules/uuid/dist/esm/stringify.js
|
|
61219
61219
|
var byteToHex = [];
|
|
@@ -134207,9 +134207,15 @@ async function handleBranchDiff(req, res) {
|
|
|
134207
134207
|
continue;
|
|
134208
134208
|
}
|
|
134209
134209
|
}
|
|
134210
|
-
|
|
134211
|
-
|
|
134212
|
-
|
|
134210
|
+
let diffOutput = "";
|
|
134211
|
+
try {
|
|
134212
|
+
diffOutput = await repo.execCommand(
|
|
134213
|
+
`git diff --name-status ${mergeBase}`
|
|
134214
|
+
);
|
|
134215
|
+
} catch (error87) {
|
|
134216
|
+
warn(`Error getting branch diff for repo ${repoName}:`, error87);
|
|
134217
|
+
continue;
|
|
134218
|
+
}
|
|
134213
134219
|
const lines = diffOutput.trim().split("\n").filter((line) => line);
|
|
134214
134220
|
for (const line of lines) {
|
|
134215
134221
|
const parts = line.split(" ");
|
|
@@ -134256,7 +134262,13 @@ async function handleDiff(_req, res) {
|
|
|
134256
134262
|
for (const r of repos) {
|
|
134257
134263
|
const repo = await NewRepo(r);
|
|
134258
134264
|
const repoName = getRepoNameFromUrl(r);
|
|
134259
|
-
|
|
134265
|
+
let diffOutput = "";
|
|
134266
|
+
try {
|
|
134267
|
+
diffOutput = await repo.execCommand("git diff --name-status HEAD");
|
|
134268
|
+
} catch (error87) {
|
|
134269
|
+
warn(`Error getting diff for repo ${repoName}:`, error87);
|
|
134270
|
+
continue;
|
|
134271
|
+
}
|
|
134260
134272
|
const untrackedOutput = await repo.execCommand(
|
|
134261
134273
|
"git ls-files --others --exclude-standard"
|
|
134262
134274
|
);
|
package/dist/staklink-cli.cjs
CHANGED
|
@@ -10967,7 +10967,42 @@ var glob = Object.assign(glob_, {
|
|
|
10967
10967
|
glob.glob = glob;
|
|
10968
10968
|
|
|
10969
10969
|
// src/proxy/version.ts
|
|
10970
|
-
var VERSION = "0.3.
|
|
10970
|
+
var VERSION = "0.3.83";
|
|
10971
|
+
|
|
10972
|
+
// src/goose.ts
|
|
10973
|
+
var import_child_process = require("child_process");
|
|
10974
|
+
var import_util2 = require("util");
|
|
10975
|
+
var execAsync = (0, import_util2.promisify)(import_child_process.exec);
|
|
10976
|
+
var GOOSE_VERSION = "1.22.0";
|
|
10977
|
+
async function ensureGooseInstalled() {
|
|
10978
|
+
try {
|
|
10979
|
+
const { stdout } = await execAsync("goose --version");
|
|
10980
|
+
const installedVersion = stdout.trim();
|
|
10981
|
+
const normalizedInstalled = installedVersion.replace(/^v/, "");
|
|
10982
|
+
if (normalizedInstalled.includes(GOOSE_VERSION)) {
|
|
10983
|
+
console.log(`\u2705 Goose ${GOOSE_VERSION} is already installed`);
|
|
10984
|
+
return;
|
|
10985
|
+
}
|
|
10986
|
+
console.log(
|
|
10987
|
+
`\u{1F504} Goose version mismatch (installed: ${installedVersion}, required: ${GOOSE_VERSION})`
|
|
10988
|
+
);
|
|
10989
|
+
await installGoose();
|
|
10990
|
+
} catch {
|
|
10991
|
+
console.log("\u{1F4E6} Goose not found, installing...");
|
|
10992
|
+
await installGoose();
|
|
10993
|
+
}
|
|
10994
|
+
}
|
|
10995
|
+
async function installGoose() {
|
|
10996
|
+
try {
|
|
10997
|
+
console.log(`\u{1F4E6} Installing Goose ${GOOSE_VERSION}...`);
|
|
10998
|
+
await execAsync(
|
|
10999
|
+
`curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | GOOSE_VERSION=v${GOOSE_VERSION} CONFIGURE=false bash`
|
|
11000
|
+
);
|
|
11001
|
+
console.log("\u2705 Goose installed successfully");
|
|
11002
|
+
} catch (error2) {
|
|
11003
|
+
console.error("\u26A0\uFE0F Failed to install Goose:", error2);
|
|
11004
|
+
}
|
|
11005
|
+
}
|
|
10971
11006
|
|
|
10972
11007
|
// src/cli.ts
|
|
10973
11008
|
var STAKLINK_PROXY = "staklink-proxy";
|
|
@@ -11013,6 +11048,7 @@ program2.command("start").description("Start the staklink proxy server").action(
|
|
|
11013
11048
|
const root = await workspaceRoot();
|
|
11014
11049
|
const proxyServerPath = getProxyPath();
|
|
11015
11050
|
console.log("Starting staklink proxy server...");
|
|
11051
|
+
await ensureGooseInstalled();
|
|
11016
11052
|
console.log(`Workspace root: ${root}`);
|
|
11017
11053
|
console.log(`Proxy server path: ${proxyServerPath}`);
|
|
11018
11054
|
const runner = new Runner(root, console.log);
|