@proxysoul/soulforge 2.9.5 → 2.10.0

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.
@@ -1633,8 +1633,8 @@ var init_io_client = __esm(() => {
1633
1633
  async buildConvoText(messages, charBudget) {
1634
1634
  return this.call("buildConvoText", messages, charBudget);
1635
1635
  }
1636
- async saveSession(sessionDir, meta, tabEntries) {
1637
- return this.call("saveSession", sessionDir, meta, tabEntries);
1636
+ async saveSession(sessionDir, meta, tabEntries, coreEntries) {
1637
+ return this.call("saveSession", sessionDir, meta, tabEntries, coreEntries ?? null);
1638
1638
  }
1639
1639
  async loadSession(sessionDir) {
1640
1640
  return this.call("loadSession", sessionDir);
@@ -30905,7 +30905,7 @@ var handlers = {
30905
30905
  } = await Promise.resolve().then(() => (init_summarize(), exports_summarize));
30906
30906
  return buildFullConvoText2(messages, charBudget);
30907
30907
  },
30908
- saveSession: async (sessionDir, meta3, tabEntries) => {
30908
+ saveSession: async (sessionDir, meta3, tabEntries, coreEntries) => {
30909
30909
  const dir = sessionDir;
30910
30910
  const sessionMeta = meta3;
30911
30911
  const entries = tabEntries;
@@ -30953,6 +30953,20 @@ var handlers = {
30953
30953
  });
30954
30954
  await rename(jsonlTmp, jsonlPath);
30955
30955
  await rename(metaTmp, metaPath);
30956
+ const cores = coreEntries;
30957
+ if (cores && cores.length > 0) {
30958
+ const coreData = {};
30959
+ for (const [tabId, msgs] of cores) {
30960
+ coreData[tabId] = msgs;
30961
+ }
30962
+ const corePath = join3(dir, "core.json");
30963
+ const coreTmp = `${corePath}.${suffix}.tmp`;
30964
+ await writeFile(coreTmp, JSON.stringify(coreData), {
30965
+ encoding: "utf-8",
30966
+ mode: 384
30967
+ });
30968
+ await rename(coreTmp, corePath);
30969
+ }
30956
30970
  },
30957
30971
  loadSession: async (sessionDir) => {
30958
30972
  const dir = sessionDir;
@@ -30985,9 +30999,18 @@ var handlers = {
30985
30999
  } = tab.messageRange;
30986
31000
  tabEntries.push([tab.id, allMessages.slice(startLine, endLine)]);
30987
31001
  }
31002
+ const corePath = join3(dir, "core.json");
31003
+ let coreEntries;
31004
+ if (existsSync(corePath)) {
31005
+ try {
31006
+ const coreData = JSON.parse(readFileSync(corePath, "utf-8"));
31007
+ coreEntries = Object.entries(coreData);
31008
+ } catch {}
31009
+ }
30988
31010
  return {
30989
31011
  meta: meta3,
30990
- tabEntries
31012
+ tabEntries,
31013
+ coreEntries
30991
31014
  };
30992
31015
  },
30993
31016
  listSessions: (sessionsDir) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proxysoul/soulforge",
3
- "version": "2.9.5",
3
+ "version": "2.10.0",
4
4
  "description": "Graph-powered code intelligence — multi-agent coding with codebase-aware AI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -71,6 +71,7 @@
71
71
  "@ai-sdk/mcp": "^1.0.35",
72
72
  "@ai-sdk/mistral": "^3.0.30",
73
73
  "@ai-sdk/openai": "3.0.52",
74
+ "@ai-sdk/openai-compatible": "^2.0.41",
74
75
  "@ai-sdk/xai": "3.0.82",
75
76
  "@anthropic-ai/sdk": "0.86.1",
76
77
  "@llmgateway/ai-sdk-provider": "3.5.0",