staklink 0.4.0 → 0.4.1

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.
@@ -61258,7 +61258,7 @@ var SSEManager = class {
61258
61258
  var sseManager = new SSEManager();
61259
61259
 
61260
61260
  // src/proxy/version.ts
61261
- var VERSION = "0.4.0";
61261
+ var VERSION = "0.4.1";
61262
61262
 
61263
61263
  // node_modules/uuid/dist/esm/stringify.js
61264
61264
  var byteToHex = [];
@@ -139748,6 +139748,24 @@ async function startProxyServer() {
139748
139748
  res.json({ exists: false });
139749
139749
  }
139750
139750
  });
139751
+ app.get("/agent/session", async (req, res) => {
139752
+ log("===> GET /agent/session");
139753
+ const sessionId = req.query.sessionId || req.query.session_id;
139754
+ if (!sessionId) {
139755
+ res.status(400).json({ error: "Missing required query parameter: sessionId" });
139756
+ return;
139757
+ }
139758
+ try {
139759
+ const messages = exportSession(sessionId, "assistant");
139760
+ res.json({ success: true, messages });
139761
+ } catch (error87) {
139762
+ error("Error exporting session:", error87);
139763
+ res.status(404).json({
139764
+ success: false,
139765
+ error: error87 instanceof Error ? error87.message : "Session not found"
139766
+ });
139767
+ }
139768
+ });
139751
139769
  app.post(
139752
139770
  "/agent",
139753
139771
  createAsyncAgentHandler((req) => ({
@@ -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.4.0";
10970
+ var VERSION = "0.4.1";
10971
10971
 
10972
10972
  // src/deps.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.4.0",
5
+ "version": "0.4.1",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {