staklink 0.4.18 → 0.4.20

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.
@@ -60927,7 +60927,7 @@ var SSEManager = class {
60927
60927
  var sseManager = new SSEManager();
60928
60928
 
60929
60929
  // src/proxy/version.ts
60930
- var VERSION = "0.4.18";
60930
+ var VERSION = "0.4.20";
60931
60931
 
60932
60932
  // node_modules/uuid/dist/esm/stringify.js
60933
60933
  var byteToHex = [];
@@ -137611,10 +137611,12 @@ function createGoose(settings = {}) {
137611
137611
  return provider;
137612
137612
  }
137613
137613
  var goose = createGoose();
137614
+ var MAX_BUFFER_MB = 50;
137614
137615
  function exportSession(name30, audience = "user") {
137615
137616
  const sanitizedName = sanitizeShellArg2(name30);
137616
137617
  const stdout = (0, import_child_process2.execSync)(`goose session export --name "${sanitizedName}" --format json`, {
137617
- encoding: "utf-8"
137618
+ encoding: "utf-8",
137619
+ maxBuffer: MAX_BUFFER_MB * 1024 * 1024
137618
137620
  });
137619
137621
  const session = JSON.parse(stdout);
137620
137622
  return convertGooseMessages(session?.conversation ?? [], audience);
@@ -141685,7 +141687,7 @@ function buildPushPrompt(opts) {
141685
141687
  if (opts.createPR) {
141686
141688
  let step = 4;
141687
141689
  lines.push(
141688
- `${step}. ONLY if you actually pushed commits in step 3, create a pull request from the current branch to "${opts.baseBranch}" using the gh CLI. The PR title should be derived from the commit message. If a PR already exists for this branch, or if there was nothing to push, skip creation.`
141690
+ `${step}. ONLY if you actually pushed commits in step 3, create a pull request from the current branch to "${opts.baseBranch}" using the gh CLI. The PR title should be derived from the commit message. If a PR already exists for this branch, get its URL instead. If there was nothing to push, skip this step. After creating or finding the PR, you MUST output the URL in <pr_url>...</pr_url> tags.`
141689
141691
  );
141690
141692
  if (opts.label) {
141691
141693
  step++;
@@ -141710,7 +141712,7 @@ function buildPushPrompt(opts) {
141710
141712
  "- If there are NO changes to commit and NO unpushed commits, do NOTHING. Do not commit, do not push, do not create a PR. Just report that there were no changes.",
141711
141713
  "- Do NOT ask for confirmation. Just do it.",
141712
141714
  "- If push fails, try pulling with rebase first. If that fails with conflicts, resolve them and continue.",
141713
- "- Output the PR URL if you created one.",
141715
+ "- If you created or found an existing PR, you MUST output the full PR URL wrapped in tags like this: <pr_url>https://github.com/owner/repo/pull/123</pr_url>. This is REQUIRED whenever a PR exists for the branch.",
141714
141716
  "- Output the branch name you ended up on.",
141715
141717
  "- Output the commit hash after pushing."
141716
141718
  );
@@ -141811,11 +141813,15 @@ ${prompt}`);
141811
141813
  if (branchMatch) {
141812
141814
  results.branches[repoName] = branchMatch[1];
141813
141815
  }
141814
- const prMatch = output.match(
141816
+ const prTagMatch = output.match(
141817
+ /<pr_url>(https:\/\/github\.com\/[^\s<]+\/pull\/\d+)<\/pr_url>/
141818
+ );
141819
+ const prBareMatch = output.match(
141815
141820
  /https:\/\/github\.com\/[^\s\])"'>]+\/pull\/\d+/
141816
141821
  );
141817
- if (prMatch) {
141818
- results.prs[repoName] = prMatch[0];
141822
+ const prUrl = prTagMatch?.[1] || prBareMatch?.[0];
141823
+ if (prUrl) {
141824
+ results.prs[repoName] = prUrl;
141819
141825
  }
141820
141826
  } finally {
141821
141827
  await teardown();
@@ -11004,7 +11004,7 @@ var glob = Object.assign(glob_, {
11004
11004
  glob.glob = glob;
11005
11005
 
11006
11006
  // src/proxy/version.ts
11007
- var VERSION = "0.4.18";
11007
+ var VERSION = "0.4.20";
11008
11008
 
11009
11009
  // src/deps.ts
11010
11010
  var import_child_process = require("child_process");
@@ -11013,7 +11013,7 @@ var import_fs3 = require("fs");
11013
11013
  var import_os = require("os");
11014
11014
  var import_path2 = require("path");
11015
11015
  var execAsync = (0, import_util2.promisify)(import_child_process.exec);
11016
- var GOOSE_VERSION = "1.26.1";
11016
+ var GOOSE_VERSION = "1.28.0";
11017
11017
  var SKILLS = [
11018
11018
  { name: "agent-browser", repo: "https://github.com/vercel-labs/agent-browser" },
11019
11019
  { name: "code-simplifier", repo: "https://github.com/getsentry/skills" },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "staklink",
3
3
  "displayName": "staklink",
4
4
  "description": "staklink process manager",
5
- "version": "0.4.18",
5
+ "version": "0.4.20",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {
@@ -120,7 +120,7 @@
120
120
  "@types/jsonwebtoken": "^9.0.10",
121
121
  "ai": "^6.0.26",
122
122
  "ai-sdk-provider-codex-cli": "^1.0.5",
123
- "ai-sdk-provider-goose": "^0.2.4",
123
+ "ai-sdk-provider-goose": "^0.2.5",
124
124
  "aieo": "^0.1.31",
125
125
  "async-mutex": "^0.5.0",
126
126
  "commander": "^14.0.1",