@evandu/super-pi 0.1.157 → 0.1.158
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.
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"src/client/types.ts": "b4d24bfabf230e29b984cf698aeb579c19797139a2b358f1a4e61cafce02964d",
|
|
40
40
|
"src/client/vite-env.d.ts": "65996936fbb042915f7b74a200fcdde7e410f32a669b1ab9597cfaa4b0faddb5"
|
|
41
41
|
},
|
|
42
|
-
"recordedAt": "2026-11-
|
|
42
|
+
"recordedAt": "2026-11-04T07:47:46.546Z"
|
|
43
43
|
}
|
|
@@ -827,6 +827,11 @@ export class ProjectService {
|
|
|
827
827
|
throw new Error("找不到这个会话。");
|
|
828
828
|
if (conversation.parentConversationId)
|
|
829
829
|
throw new Error("只有主对话可以创建项目:派发出来的会话不能另起项目,否则会绕过项目的预算与并发护栏。");
|
|
830
|
+
// AND A SESSION THAT IS ALREADY IN A PROJECT MAY NOT OPEN ANOTHER ONE. The leader session is
|
|
831
|
+
// spawned without a parent, so it passes the root-conversation gate above, yet a project it
|
|
832
|
+
// opens would carry a fresh budget and concurrency cap outside the guard that dispatched it.
|
|
833
|
+
if (this.projectForSession(actor))
|
|
834
|
+
throw new Error("已经在项目里的会话不能另起项目:再开一个会绕开当前项目的预算与并发护栏。");
|
|
830
835
|
const running = this.store.projects().filter((p) => p.initiatorConversationId === actor && !closed(p));
|
|
831
836
|
if (running.length >= 3)
|
|
832
837
|
throw new Error("你同时进行的项目超过上限(3 个),先完成或停止一个再新建。");
|