oh-pi 0.1.56 → 0.1.58

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.58",
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";
@@ -93,6 +94,7 @@ Any risks, blockers, or conflicts detected.`,
93
94
  Behavior:
94
95
  - Read the pheromone context to understand what scouts and other workers discovered
95
96
  - Execute your assigned task completely
97
+ - After making changes, verify your work (e.g. run the build, check syntax). If verification fails, fix it yourself or declare a fix sub-task
96
98
  - If you discover sub-tasks needed, declare them (do NOT execute them yourself)
97
99
  - Minimize file conflicts — only touch files assigned to you
98
100
 
@@ -361,7 +363,7 @@ export async function spawnAnt(
361
363
  });
362
364
 
363
365
  // 订阅实时事件
364
- session.subscribe((event: any) => {
366
+ session.subscribe((event: AgentSessionEvent) => {
365
367
  if (event.type === "message_update" && event.assistantMessageEvent.type === "text_delta") {
366
368
  const delta = event.assistantMessageEvent.delta;
367
369
  accumulatedText += delta;