@evandu/super-pi 0.1.204 → 0.1.206
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/agents/coder.md
CHANGED
|
@@ -13,7 +13,7 @@ color: "#44BA81"
|
|
|
13
13
|
|
|
14
14
|
## 在项目里
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
团队任务先读自动交接,复用已知入口与决定,再核验相关代码。遵守 readOnly/ownedPaths,保留他人改动;新发现随 submit/report 的 sharedContext 发布,假设标 hypothesis;失效结论按版本修订,范围冲突交直属上级协调。
|
|
17
17
|
|
|
18
18
|
当你在项目里被派了活时,作为执行者完成指定实现和验证,遵守分工与现有工具权限。
|
|
19
19
|
做完必须调用 `project(action="submit", projectId, taskId, output, evidenceRefs)`,不能自行宣布完成,以服务端验收状态为准。
|
package/agents/project-leader.md
CHANGED
|
@@ -12,9 +12,7 @@ description: 项目负责人兼秘书,适合项目根 Leader 或分支 Leader
|
|
|
12
12
|
|
|
13
13
|
## 在项目里
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
当你在项目里被派了活时,开篇上下文已包含项目模式、身份、任务清单与验收条件,不必先调用 `project(action="get", ...)` 就能直接拆解、派活或执行;不自行扩大权限或交付范围。
|
|
15
|
+
当你在项目里被派了活时,开篇已含模式、身份、任务与验收,不必先 `project(action="get", ...)`;先复用自动交接再核验。派发时用 sharedContext 交接发现与证据、handoffNote 写线索、ownedPaths/readOnly 定范围;taskIds 批量启动需检查 started/failed;新要求用 message 给原 worker,冲突调整范围或依赖。不扩大权限或范围。
|
|
18
16
|
标准项目用 `add_task` 登记直属任务、用 `dispatch` 委派,交付后用 `request_review` 安排其他会话独立复核,包括自己的整合结果;不能自审。
|
|
19
17
|
分支 Leader 拆解时令 `parentTaskId` 指向自己的任务,只管理直属任务;子任务独立验收后用 `submit` 提交聚合交付,由上级安排复核。
|
|
20
18
|
执行或聚合交付必须调用 `project(action="submit", projectId, taskId, output, evidenceRefs)`,不能自行宣布完成;退回后按 `review.summary` 修正再 `submit`。
|
|
@@ -76,6 +76,7 @@ export const TODO_TOOL_NAME = "todowrite";
|
|
|
76
76
|
* other when both extensions are mounted, as they normally are.
|
|
77
77
|
*/
|
|
78
78
|
export const SUPER_PI_CAPABILITIES_SECTION_KEY = "super_pi_capabilities";
|
|
79
|
+
export const TEAM_CONTEXT_SECTION_KEY = "super_pi_team_context";
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* The USAGE knowledge a Super Pi agent needs that no tool description carries.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import { PROJECT_TOOL_NAME, PROJECT_DESCRIPTION, TEAM_COORDINATION_DESCRIPTION, loadTeamContext, readProjectConfig, executeProject } from "./core.ts";
|
|
2
|
+
import { PROJECT_TOOL_NAME, PROJECT_DESCRIPTION, TEAM_COORDINATION_DESCRIPTION, TEAM_CONTEXT_SECTION_KEY, loadTeamContext, readProjectConfig, executeProject } from "./core.ts";
|
|
3
3
|
import {
|
|
4
4
|
SUPER_PI_CAPABILITIES_SECTION,
|
|
5
5
|
SUPER_PI_CAPABILITIES_SECTION_KEY,
|
|
@@ -313,10 +313,10 @@ const extension = (pi: ExtensionApi): void => {
|
|
|
313
313
|
pi.on("before_agent_start", async (event: { prompt?: string; systemPromptOptions: { sections: Record<string, string> } }, context?: { signal?: AbortSignal }) => {
|
|
314
314
|
try {
|
|
315
315
|
const notes = await loadTeamContext(projectConfig, context?.signal);
|
|
316
|
-
if (notes && !event.prompt?.includes(notes)) event.systemPromptOptions.sections
|
|
317
|
-
else delete event.systemPromptOptions.sections
|
|
316
|
+
if (notes && !event.prompt?.includes(notes)) event.systemPromptOptions.sections[TEAM_CONTEXT_SECTION_KEY] = notes;
|
|
317
|
+
else delete event.systemPromptOptions.sections[TEAM_CONTEXT_SECTION_KEY];
|
|
318
318
|
} catch {
|
|
319
|
-
event.systemPromptOptions.sections
|
|
319
|
+
event.systemPromptOptions.sections[TEAM_CONTEXT_SECTION_KEY] = "项目共享上下文暂不可用;需要时调用 project get_context 获取,不要将历史快照当作最新结论。";
|
|
320
320
|
}
|
|
321
321
|
return {};
|
|
322
322
|
});
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"src/client/types.ts": "0d32fd568f188507ce2b48266f44fa20da1bcf436090893b1ff0c164ed0f3132",
|
|
42
42
|
"src/client/vite-env.d.ts": "65996936fbb042915f7b74a200fcdde7e410f32a669b1ab9597cfaa4b0faddb5"
|
|
43
43
|
},
|
|
44
|
-
"recordedAt": "2026-11-
|
|
44
|
+
"recordedAt": "2026-11-13T04:01:45.599Z"
|
|
45
45
|
}
|