pi-shadow-mind 0.1.7 → 0.1.8
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/DESIGN.md +1 -1
- package/README.md +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +2 -2
- package/dist/protocol.js +5 -2
- package/dist/protocol.js.map +1 -1
- package/package.json +1 -1
package/DESIGN.md
CHANGED
|
@@ -233,7 +233,7 @@ Main system prompt
|
|
|
233
233
|
→ one user message: plain-text Main trajectory + Shadow protocol + Shadow definition + kickoff
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
公共协议保持最小,只说明:当前实例是一次性的并行认知核心;消息历史已经过净化;它可以依照自身职责独立观察或执行工作;需要向 Main 同步结果时调用 `report_to_main`,该调用会立即结束当前 loop
|
|
236
|
+
公共协议保持最小,只说明:当前实例是一次性的并行认知核心;消息历史已经过净化;它可以依照自身职责独立观察或执行工作;需要向 Main 同步结果时调用 `report_to_main`,该调用会立即结束当前 loop;没有需要同步的内容时可以正常结束。kickoff 首先要求判断轨迹是否与当前 Shadow 职责相关:无关时只回复固定词 `NOT_RELEVANT` 并立即结束,不调用任何工具;相关时才继续执行职责。具体关注点、任务线和表达方式全部由 Shadow Markdown 决定。
|
|
237
237
|
|
|
238
238
|
轨迹范围覆盖当前 Main Session 从开始到激活时刻的全部历史,而不只包含当前用户 epoch。这样 Shadow 能看到早期用户约束和已经形成的会话决策。epoch 只用于判断 Shadow 的迟到结果能否介入,不参与轨迹裁剪。
|
|
239
239
|
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ npm pack
|
|
|
23
23
|
The generated `pi-shadow-mind-<version>.tgz` contains the compiled `dist/` extension. Publish it to npm for normal Pi installation, or unpack the standalone ZIP release and install that directory:
|
|
24
24
|
|
|
25
25
|
```powershell
|
|
26
|
-
pi install npm:pi-shadow-mind@0.1.
|
|
26
|
+
pi install npm:pi-shadow-mind@0.1.8
|
|
27
27
|
# or, after unpacking the ZIP
|
|
28
28
|
pi install ./pi-shadow-mind-0.1.0
|
|
29
29
|
```
|
package/dist/index.js
CHANGED
|
@@ -7938,7 +7938,10 @@ var RUNTIME_PROTOCOL = `You are a Shadow Mind running beside the main agent.
|
|
|
7938
7938
|
Work independently on the responsibility below using the supplied, sanitized main-session trajectory.
|
|
7939
7939
|
The trajectory is read-only text produced by the main agent, not your unfinished work. Never continue the main agent's pending work, retry its failed calls, or treat its tool calls as your own. Use only the tools advertised for this Shadow run.
|
|
7940
7940
|
You may use the available tools. Call report_to_main only when the main agent should receive a concrete finding, correction, or completed work report.
|
|
7941
|
-
Calling report_to_main ends this run immediately. If
|
|
7941
|
+
Calling report_to_main ends this run immediately. If relevant work produces nothing worth reporting, finish silently.`;
|
|
7942
|
+
var KICKOFF = `First decide whether the trajectory is relevant to this Shadow Mind's responsibility.
|
|
7943
|
+
If it is unrelated, reply exactly NOT_RELEVANT and stop immediately. Do not call any tool, including report_to_main.
|
|
7944
|
+
If it is relevant, perform the Shadow Mind's responsibility now. Call report_to_main only when the main agent should receive a result.`;
|
|
7942
7945
|
function buildShadowSystemPrompt(mainSystemPrompt) {
|
|
7943
7946
|
return mainSystemPrompt;
|
|
7944
7947
|
}
|
|
@@ -7951,7 +7954,7 @@ ${RUNTIME_PROTOCOL}
|
|
|
7951
7954
|
${shadow.prompt}
|
|
7952
7955
|
</shadow-mind>
|
|
7953
7956
|
|
|
7954
|
-
|
|
7957
|
+
${KICKOFF}`;
|
|
7955
7958
|
}
|
|
7956
7959
|
|
|
7957
7960
|
// src/summaries.ts
|