oh-pi 0.1.56 → 0.1.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-pi",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "description": "One-click setup for pi-coding-agent. Like oh-my-zsh for pi.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,6 +23,7 @@ import {
23
23
  SessionManager,
24
24
  SettingsManager,
25
25
  type ResourceLoader,
26
+ type AgentSessionEvent,
26
27
  createExtensionRuntime,
27
28
  } from "@mariozechner/pi-coding-agent";
28
29
  import { getModel } from "@mariozechner/pi-ai";
@@ -361,7 +362,7 @@ export async function spawnAnt(
361
362
  });
362
363
 
363
364
  // 订阅实时事件
364
- session.subscribe((event: any) => {
365
+ session.subscribe((event: AgentSessionEvent) => {
365
366
  if (event.type === "message_update" && event.assistantMessageEvent.type === "text_delta") {
366
367
  const delta = event.assistantMessageEvent.delta;
367
368
  accumulatedText += delta;