stashes 0.1.31 → 0.1.33

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/cli.js CHANGED
@@ -1793,7 +1793,10 @@ ${sourceCode.substring(0, 3000)}
1793
1793
  syncStashesFromDisk(projectId, chatId, preExistingIds) {
1794
1794
  const diskStashes = this.persistence.listStashes(projectId);
1795
1795
  for (const stash of diskStashes) {
1796
- if (chatId && !stash.originChatId && preExistingIds && !preExistingIds.has(stash.id)) {
1796
+ const isNew = preExistingIds ? !preExistingIds.has(stash.id) : !this.knownStashIds.has(stash.id);
1797
+ if (!isNew)
1798
+ continue;
1799
+ if (chatId && !stash.originChatId) {
1797
1800
  this.persistence.saveStash({ ...stash, originChatId: chatId });
1798
1801
  }
1799
1802
  this.broadcast({
package/dist/mcp.js CHANGED
@@ -1989,7 +1989,10 @@ ${sourceCode.substring(0, 3000)}
1989
1989
  syncStashesFromDisk(projectId, chatId, preExistingIds) {
1990
1990
  const diskStashes = this.persistence.listStashes(projectId);
1991
1991
  for (const stash of diskStashes) {
1992
- if (chatId && !stash.originChatId && preExistingIds && !preExistingIds.has(stash.id)) {
1992
+ const isNew = preExistingIds ? !preExistingIds.has(stash.id) : !this.knownStashIds.has(stash.id);
1993
+ if (!isNew)
1994
+ continue;
1995
+ if (chatId && !stash.originChatId) {
1993
1996
  this.persistence.saveStash({ ...stash, originChatId: chatId });
1994
1997
  }
1995
1998
  this.broadcast({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stashes",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "type": "module",
5
5
  "description": "Generate AI-powered UI design explorations in your project",
6
6
  "keywords": [