u-foo 2.3.5 → 2.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "u-foo",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "description": "Multi-Agent Workspace Protocol. Just add u. claude → uclaude, codex → ucodex.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://ufoo.dev",
@@ -89,6 +89,11 @@ function getJoinedPid() {
89
89
  return process.pid;
90
90
  }
91
91
 
92
+ function isInternalLaunchMode(meta) {
93
+ const mode = String(meta?.launch_mode || "").trim();
94
+ return mode === "internal" || mode === "internal-pty";
95
+ }
96
+
92
97
  /**
93
98
  * 订阅者管理
94
99
  */
@@ -407,6 +412,11 @@ class SubscriberManager {
407
412
  if (!this.busData.agents) return;
408
413
 
409
414
  for (const [id, meta] of Object.entries(this.busData.agents)) {
415
+ if (isInternalLaunchMode(meta) && (meta.status === "inactive" || !isMetaActive(meta))) {
416
+ delete this.busData.agents[id];
417
+ this.cleanupSubscriberArtifacts(id);
418
+ continue;
419
+ }
410
420
  if (meta.status === "active" && !isMetaActive(meta)) {
411
421
  meta.status = "inactive";
412
422
  meta.activity_state = "";