@evandu/super-pi 0.1.189 → 0.1.190

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "hash": "c12077bfd29fc123bf28d42e71483e56c7f496bdcc23e5cff5a98ebfe9d7a682",
2
+ "hash": "6424fb1180b1abf97982cd18b4b280d0336d3fa6246bd8083df8419b5f97b495",
3
3
  "files": {
4
4
  "src/client/App.tsx": "4e9bcb3e0987b741dd721c7c9e2ad84a7c1ba79202b38092fda568f9b484d4c0",
5
5
  "src/client/CodeMirrorEditor.tsx": "b6b6479effa1482eda710f04a26f3af843515526e129ca5bc70692cca9074b09",
@@ -12,7 +12,7 @@
12
12
  "src/client/KnowledgePanel.tsx": "4f7230cfe610cd86d63aa143c82f6195b3c4208ef0bea703f92104ef27237704",
13
13
  "src/client/MarkdownView.tsx": "4f04a8f3c9381946e5d2f957ac4fb74a6b16272e90375fb4dc6bd3a43d7c744d",
14
14
  "src/client/MemoryPanel.tsx": "59a74f5789f43708245b6f62ba3b873ad91804f64c1e352403d5b7dffd478fdc",
15
- "src/client/ProjectControlPanel.tsx": "9607edde75540bc02031c82e9d75af84c0d55a231a08f01b2d0aa4935925303c",
15
+ "src/client/ProjectControlPanel.tsx": "7a72153048c439fc15fd76df494b753e3fe8e0eb3ad1c9a41fbfda742006d89b",
16
16
  "src/client/ProjectExecutionTools.tsx": "56e2868633bfb50d1921b4813b7428ddfa19098d0b8e17a9ed9c61e3b33b0b39",
17
17
  "src/client/ScheduledTasksPanel.tsx": "74f8bea76cbe540b4eb22163ba28ed56920643de5948d1c5c8c37604f52368c3",
18
18
  "src/client/SlashCommandMenu.tsx": "69cd0a9d5e35f41f703e91a845e5bd750c952d2957be03b5528e156e60bf6ecb",
@@ -40,5 +40,5 @@
40
40
  "src/client/types.ts": "ef0586e206d0f229ed0e81e72397e1ddfd82c00ae7133d06d20892605e6f1ff4",
41
41
  "src/client/vite-env.d.ts": "65996936fbb042915f7b74a200fcdde7e410f32a669b1ab9597cfaa4b0faddb5"
42
42
  },
43
- "recordedAt": "2026-11-11T17:07:45.892Z"
43
+ "recordedAt": "2026-11-11T19:54:12.422Z"
44
44
  }
@@ -1218,8 +1218,17 @@ export class ProjectService {
1218
1218
  this.admission(p);
1219
1219
  if (!this.orchestrator)
1220
1220
  throw new Error("会话编排服务未就绪");
1221
- if (p.ownerConversationId && busy(this.store.conversation(p.ownerConversationId)?.status))
1222
- throw new Error("项目负责人正在执行,请勿重复启动");
1221
+ /* STARTING A PROJECT THAT IS ALREADY RUNNING IS NOT AN ERROR. `create` starts the project in
1222
+ one call - that is what the ceremony-free project is for - so the natural next call is
1223
+ `start`, and it used to answer 「项目负责人正在执行,请勿重复启动」. A model that created a
1224
+ project and then started it was doing exactly what the tool's own contract says it may do,
1225
+ and the refusal taught it nothing except that the tool lies. So the project is returned as
1226
+ it is: no second leader is spawned (the spawn below only happens when there is no owner),
1227
+ and the caller learns the state it asked about. */
1228
+ if (p.ownerConversationId && busy(this.store.conversation(p.ownerConversationId)?.status)) {
1229
+ this.event(p, "start_skipped", "项目已经在执行中,重复启动被忽略", undefined, actor);
1230
+ return p;
1231
+ }
1223
1232
  if (!p.ownerConversationId) {
1224
1233
  const effective = p.defaultLeaderProfile;
1225
1234
  p.ownerConversationId = (await this.orchestrator.spawn({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evandu/super-pi",
3
- "version": "0.1.189",
3
+ "version": "0.1.190",
4
4
  "description": "Web control plane and companion for Pi",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -95,6 +95,7 @@
95
95
  "scripts/session-orchestrator-tools.test.mjs",
96
96
  "scripts/project-service.test.mjs",
97
97
  "scripts/project-ceremony-free.test.mjs",
98
+ "scripts/project-mechanism-guards.test.mjs",
98
99
  "scripts/dead-end-decision.test.mjs",
99
100
  "scripts/project-report-exception-title.test.mjs",
100
101
  "scripts/project-report-decision-layout.test.mjs",
@@ -265,7 +266,9 @@
265
266
  "scripts/session-reporting.test.mjs",
266
267
  "scripts/project-panel-reporting.test.mjs",
267
268
  "scripts/session-row-escalation.test.mjs",
268
- "scripts/mutation-lock-coverage.test.mjs"
269
+ "scripts/mutation-lock-coverage.test.mjs",
270
+ "scripts/real-context-window.test.mjs",
271
+ "scripts/session-reminder-pmo-rights.test.mjs"
269
272
  ],
270
273
  "check:browser": [
271
274
  "scripts/update-button-browser.test.mjs",