shennian 0.3.44 → 0.3.45

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.
@@ -556,8 +556,8 @@
556
556
  },
557
557
  {
558
558
  "file": "src/session/index-publisher.js",
559
- "beforeBytes": 1469,
560
- "afterBytes": 731
559
+ "beforeBytes": 1896,
560
+ "afterBytes": 838
561
561
  },
562
562
  {
563
563
  "file": "src/session/manager.js",
@@ -1 +1 @@
1
- import{acknowledgeSessionIndexUpdate as d,listPendingSessionIndexUpdates as r}from"./store.js";const i=new WeakMap,t=new WeakSet;function a(s){const e=s,n=i.get(e);if(n)return t.add(e),n;const o=c(s).finally(()=>{i.get(e)===o&&i.delete(e),t.delete(e)&&f(s)});return i.set(e,o),o}async function c(s){const e=r();for(const n of e)await s.sendBufferedEvent({type:"event",event:"session.index.updated",id:`session-index-${n.daemonInstallationId}-${n.session.id}-${n.session.indexRevision}`,payload:n},6e4),d(n.session.id,n.session.indexRevision)}function f(s){a(s).catch(e=>{console.error("[session-index] sync failed; dirty revisions retained for retry",e)})}export{a as publishPendingSessionIndexes,f as requestSessionIndexPublish};
1
+ import{acknowledgeSessionIndexUpdate as r,listPendingSessionIndexUpdates as a}from"./store.js";const o=new WeakMap,t=new WeakSet;function c(s){const e=s,i=o.get(e);if(i)return t.add(e),i;const n=f(s).finally(()=>{o.get(e)===n&&o.delete(e),t.delete(e)&&u(s)});return o.set(e,n),n}async function f(s){const e=a(),i=[];for(const n of e)try{await s.sendBufferedEvent({type:"event",event:"session.index.updated",id:`session-index-${n.daemonInstallationId}-${n.session.id}-${n.session.indexRevision}`,payload:n},6e4),r(n.session.id,n.session.indexRevision)}catch(d){i.push(d)}if(i.length>0)throw new AggregateError(i,"one or more session indexes failed")}function u(s){c(s).catch(e=>{console.error("[session-index] sync failed; dirty revisions retained for retry",e)})}export{c as publishPendingSessionIndexes,u as requestSessionIndexPublish};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shennian",
3
- "version": "0.3.44",
3
+ "version": "0.3.45",
4
4
  "description": "Shennian — AI Agent Control Plane CLI",
5
5
  "type": "module",
6
6
  "bin": {