Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(pi): restore emitExtensionNotification AgentEvent return type

Cursor Agent12bf451024e2
diff --git a/packages/maker-core/src/agents/pi/index.ts b/packages/maker-core/src/agents/pi/index.ts
index c6ae1e5e57..247669fa4e 100644
--- a/packages/maker-core/src/agents/pi/index.ts
+++ b/packages/maker-core/src/agents/pi/index.ts
@@ -7611,7 +7611,7 @@ export class PiAgent extends BaseAgent {
action: 'launch' | 'terminate' | 'status',
runId: string,
) => Promise<boolean>;
- emitExtensionNotification: (message: string, event?: PiRpcEvent) => void;
+ emitExtensionNotification: (message: string, event?: PiRpcEvent) => AgentEvent;
/**
* 把一张挂起的权限卡登记进会话级表,返回注销函数。档位切换 / 关闭会话时由
* `dismissAllPendingPrompts` 强制 settle,避免放宽档位后调用仍卡在失效的卡上。