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/dist/protocol.js CHANGED
@@ -2,11 +2,14 @@ const RUNTIME_PROTOCOL = `You are a Shadow Mind running beside the main agent.
2
2
  Work independently on the responsibility below using the supplied, sanitized main-session trajectory.
3
3
  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.
4
4
  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.
5
- Calling report_to_main ends this run immediately. If there is nothing useful to report, finish silently.`;
5
+ Calling report_to_main ends this run immediately. If relevant work produces nothing worth reporting, finish silently.`;
6
+ const KICKOFF = `First decide whether the trajectory is relevant to this Shadow Mind's responsibility.
7
+ If it is unrelated, reply exactly NOT_RELEVANT and stop immediately. Do not call any tool, including report_to_main.
8
+ If it is relevant, perform the Shadow Mind's responsibility now. Call report_to_main only when the main agent should receive a result.`;
6
9
  export function buildShadowSystemPrompt(mainSystemPrompt) {
7
10
  return mainSystemPrompt;
8
11
  }
9
12
  export function buildShadowRequest(trajectory, shadow) {
10
- return `${trajectory}\n\n${RUNTIME_PROTOCOL}\n\n<shadow-mind id="${shadow.id}" name="${shadow.name}">\n${shadow.prompt}\n</shadow-mind>\n\nBegin this Shadow Mind run now. Inspect the trajectory and act only when useful.`;
13
+ return `${trajectory}\n\n${RUNTIME_PROTOCOL}\n\n<shadow-mind id="${shadow.id}" name="${shadow.name}">\n${shadow.prompt}\n</shadow-mind>\n\n${KICKOFF}`;
11
14
  }
12
15
  //# sourceMappingURL=protocol.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"protocol.js","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAEA,MAAM,gBAAgB,GAAG;;;;yGAIgF,CAAC;AAE1G,MAAM,UAAU,uBAAuB,CAAC,gBAAwB;IAC9D,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,UAAkB,EAAE,MAAwB;IAC7E,OAAO,GAAG,UAAU,OAAO,gBAAgB,wBAAwB,MAAM,CAAC,EAAE,WAAW,MAAM,CAAC,IAAI,OAAO,MAAM,CAAC,MAAM,sGAAsG,CAAC;AAC/N,CAAC"}
1
+ {"version":3,"file":"protocol.js","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAEA,MAAM,gBAAgB,GAAG;;;;sHAI6F,CAAC;AAEvH,MAAM,OAAO,GAAG;;uIAEuH,CAAC;AAExI,MAAM,UAAU,uBAAuB,CAAC,gBAAwB;IAC9D,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,UAAkB,EAAE,MAAwB;IAC7E,OAAO,GAAG,UAAU,OAAO,gBAAgB,wBAAwB,MAAM,CAAC,EAAE,WAAW,MAAM,CAAC,IAAI,OAAO,MAAM,CAAC,MAAM,uBAAuB,OAAO,EAAE,CAAC;AACzJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-shadow-mind",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Parallel cognitive runtime for Pi",
5
5
  "type": "module",
6
6
  "keywords": [