staklink 0.3.85 → 0.3.86

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.
@@ -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.85";
61216
+ var VERSION = "0.3.86";
61217
61217
 
61218
61218
  // node_modules/uuid/dist/esm/stringify.js
61219
61219
  var byteToHex = [];
@@ -121625,7 +121625,8 @@ async function runAgent({
121625
121625
  session,
121626
121626
  summarize,
121627
121627
  model,
121628
- searchApiKey
121628
+ searchApiKey,
121629
+ summaryApiKey
121629
121630
  }) {
121630
121631
  createGooseConfig(searchApiKey);
121631
121632
  const env = goose_env(apiKey, model);
@@ -121653,7 +121654,7 @@ async function runAgent({
121653
121654
  const output = res.stdout;
121654
121655
  if (summarize && session) {
121655
121656
  const sessionData = exportSession(session, "assistant");
121656
- const summary = await summarizeSession(sessionData, apiKey);
121657
+ const summary = await summarizeSession(sessionData, summaryApiKey || apiKey);
121657
121658
  return { output, summary };
121658
121659
  }
121659
121660
  return output;
@@ -133158,7 +133159,7 @@ var createAsyncAgentHandler = (getParams, transformResult) => {
133158
133159
  return async (req, res) => {
133159
133160
  const request_id = startReq();
133160
133161
  try {
133161
- const { repoName, apiKey, agent_name, session, summarize, model, searchApiKey } = req.body;
133162
+ const { repoName, apiKey, agent_name, session, summarize, model, searchApiKey, summaryApiKey } = req.body;
133162
133163
  const params = getParams(req);
133163
133164
  const workspaceRoot2 = await workspaceRoot();
133164
133165
  let repoPath = workspaceRoot2;
@@ -133181,7 +133182,8 @@ var createAsyncAgentHandler = (getParams, transformResult) => {
133181
133182
  session,
133182
133183
  summarize: summarize ? true : false,
133183
133184
  model,
133184
- searchApiKey
133185
+ searchApiKey,
133186
+ summaryApiKey
133185
133187
  }).then((result) => {
133186
133188
  const finalResult = transformResult ? transformResult(result) : result;
133187
133189
  finishReq(request_id, {
@@ -10967,7 +10967,7 @@ var glob = Object.assign(glob_, {
10967
10967
  glob.glob = glob;
10968
10968
 
10969
10969
  // src/proxy/version.ts
10970
- var VERSION = "0.3.85";
10970
+ var VERSION = "0.3.86";
10971
10971
 
10972
10972
  // src/goose.ts
10973
10973
  var import_child_process = require("child_process");
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.3.85",
5
+ "version": "0.3.86",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {