shennian 0.5.48 → 0.5.49

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.
@@ -996,8 +996,8 @@
996
996
  },
997
997
  {
998
998
  "file": "src/project-coordination/admission.js",
999
- "beforeBytes": 1527,
1000
- "afterBytes": 1005
999
+ "beforeBytes": 1671,
1000
+ "afterBytes": 1047
1001
1001
  },
1002
1002
  {
1003
1003
  "file": "src/project-coordination/http.js",
@@ -1 +1 @@
1
- import{projectCoordinationStore as i}from"./store.js";import{listSessionRecords as a}from"../session/store.js";class m extends Error{constructor(){super("coordination_waiting"),this.name="CoordinationWaiting"}}function f(r,e){if(!e.workDir||e.managedRoom||e.managedAgentDirect)return;if((e.sessionMode??a().find(o=>o.sessionId===e.sessionId)?.sessionMode)==="manager"&&i.enabled(r.resolvePath(e.workDir)))throw new Error("coordination_legacy_manager_unsupported")}function x(r,e,t){const o=e[0];if(o.managedRoom||o.managedAgentDirect||o.trigger?.kind==="room_activation")return;const s=r.resolvePath(o.workDir);if(i.enabled(s)){f(r,o);for(const n of e){const d=a().find(g=>g.sessionId===n.sessionId),c=n.agentType==="codex"&&d?.codexSettings?.sandbox==="read-only";i.enqueue(s,n.sessionId,n.text,n.agentType,n.clientMessageId??n.id,c?"read":"write")}if(!i.admit(s,o.sessionId,o.clientMessageId??o.id,t))throw new m}}export{m as CoordinationWaiting,x as admitProjectTurn,f as validateCoordinationSession};
1
+ import{projectCoordinationStore as i}from"./store.js";import{listSessionRecords as d}from"../session/store.js";class m extends Error{constructor(){super("coordination_waiting"),this.name="CoordinationWaiting"}}function f(r,e){if(!e.workDir||e.managedRoom||e.managedAgentDirect)return;if((e.sessionMode??d().find(o=>o.sessionId===e.sessionId)?.sessionMode)==="manager"&&i.enabled(r.resolvePath(e.workDir)))throw new Error("coordination_legacy_manager_unsupported")}function x(r,e,t){const o=e[0];if(o.managedRoom||o.managedAgentDirect||o.trigger?.kind==="room_activation")return;const s=r.resolvePath(o.workDir);if(i.enabled(s)){f(r,o);for(const n of e){const a=d().find(g=>g.sessionId===n.sessionId),c=n.agentType==="codex"&&a?.codexSettings?.sandbox==="read-only"&&a.codexSettings.approvalPolicy==="never";i.enqueue(s,n.sessionId,n.text,n.agentType,n.clientMessageId??n.id,c?"read":"write")}if(!i.admit(s,o.sessionId,o.clientMessageId??o.id,t))throw new m}}export{m as CoordinationWaiting,x as admitProjectTurn,f as validateCoordinationSession};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shennian",
3
- "version": "0.5.48",
3
+ "version": "0.5.49",
4
4
  "description": "Shennian — AI Agent Control Plane CLI",
5
5
  "type": "module",
6
6
  "bin": {