@akagilnc/pi-workflow-roles 0.1.3744 → 0.1.3749

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.
@@ -24832,7 +24832,12 @@ function connectAcpStdio(options) {
24832
24832
  for (const handler of notificationHandlers) handler(message.method, params);
24833
24833
  if (typeof message.id === "number") {
24834
24834
  if (message.method !== "session/request_permission") {
24835
- terminate(acpError("acp-unsupported-client-request", `Unsupported ACP client request: ${message.method}`));
24835
+ child.stdin.write(`${JSON.stringify({
24836
+ jsonrpc: "2.0",
24837
+ id: message.id,
24838
+ error: { code: -32601, message: `Method not found: ${message.method}` }
24839
+ })}
24840
+ `);
24836
24841
  return;
24837
24842
  }
24838
24843
  const choices = Array.isArray(params.options) ? params.options : [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akagilnc/pi-workflow-roles",
3
- "version": "0.1.3744",
3
+ "version": "0.1.3749",
4
4
  "description": "Soul-bound workflow roles for Pi",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/souls/notary.md CHANGED
@@ -3,10 +3,11 @@
3
3
  你是符宝郎,审核衙门。行事两步:
4
4
 
5
5
  **一、立法**:调取该票起居录与全局宪法通读。确认起居录所引的陛下原话正确,不正确直接上呈。
6
+ 读取被审衙门的soul,作为被审衙门的行为指南
6
7
 
7
8
  **二、核旨**:用已读法源 核受审之物
8
9
  **票面与判词**——有没有加戏:每一条**重大决策/设计/改变实际行为的**机制/约束条款逐条与陛下原话的意思是否相符?
9
- ADR Content 票面 prompt 具体实现 被审衙门的输出 等相关产物 是否合法
10
+ ADR CONTEXT.md 票面 prompt 被审衙门的输出 等相关产物 是否合法
10
11
 
11
12
  **不因票面已签押、判词已引用而免核**。
12
13
  案例示例:
@@ -16,8 +17,9 @@
16
17
  等等。。。
17
18
  任一病成立,点名该条驳回;拿不准陛下本意的,上呈。
18
19
 
19
- 方法:按条封驳。取证按《审法·取证边界》:探针只落 worktree 与临时目录,用完恢复原样,不得删改其外任何路径。无法解决的上抛陛下。
20
+ 方法:按条封驳。
21
+ 取证按《审法·取证边界》。无法解决的上抛陛下。
20
22
 
21
23
  ## 结论
22
24
 
23
- 结论以三态明示:`pass`(过)/`bounce`(打回)/`escalate`(上呈)。
25
+ 结论以三态明示:'pass'(署) 'bounce'(封驳) 'escalate'(上呈)。
@@ -120,8 +120,9 @@ export function connectAcpStdio(options: {
120
120
  for (const waiter of pending.values()) waiter.reject(error);
121
121
  pending.clear();
122
122
  };
123
- // One terminal path: any malformed/unsupported frame or process death closes stdin,
124
- // kills the child, and settles every pending request with the same typed error.
123
+ // Framing corruption or a known required capability with unusable shape still
124
+ // closes the child. Unknown client methods are answered in-band (JSON-RPC
125
+ // method not found) and do not terminate the leg (#760).
125
126
  const terminate = (error: Error): void => {
126
127
  settleClosed(error);
127
128
  child.stdin.end();
@@ -142,7 +143,13 @@ export function connectAcpStdio(options: {
142
143
  for (const handler of notificationHandlers) handler(message.method, params);
143
144
  if (typeof message.id === "number") {
144
145
  if (message.method !== "session/request_permission") {
145
- terminate(acpError("acp-unsupported-client-request", `Unsupported ACP client request: ${message.method}`));
146
+ // Vendor extensions (_x.ai/*, …) and any other unhandled client request:
147
+ // JSON-RPC method-not-found reply; session continues (#760).
148
+ child.stdin.write(`${JSON.stringify({
149
+ jsonrpc: "2.0",
150
+ id: message.id,
151
+ error: { code: -32601, message: `Method not found: ${message.method}` },
152
+ })}\n`);
146
153
  return;
147
154
  }
148
155
  const choices = Array.isArray(params.options) ? params.options : [];