@dyyz1993/pi-coding-agent 0.69.9 → 0.69.10

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.
@@ -12,11 +12,11 @@
12
12
  *
13
13
  * Modes use this class and add their own I/O layer on top.
14
14
  */
15
- import type { Agent, AgentEvent, AgentMessage, AgentState, AgentTool, ThinkingLevel } from "@dyyz1993/pi-agent-core";
15
+ import { Agent, type AgentEvent, type AgentMessage, type AgentState, type AgentTool, type ThinkingLevel } from "@dyyz1993/pi-agent-core";
16
16
  import type { ImageContent, Model, TextContent } from "@dyyz1993/pi-ai";
17
17
  import { type BashResult } from "./bash-executor.js";
18
18
  import { type CompactionResult } from "./compaction/index.js";
19
- import { type ContextUsage, type ExtensionCommandContextActions, type ExtensionErrorListener, ExtensionRunner, type ExtensionUIContext, type InputSource, type ReplacedSessionContext, type SessionStartEvent, type ShutdownHandler, type ToolDefinition, type ToolInfo } from "./extensions/index.js";
19
+ import { type CallLLMOptions, type ContextUsage, type ExtensionCommandContextActions, type ExtensionErrorListener, ExtensionRunner, type ExtensionUIContext, type InputSource, type ReplacedSessionContext, type SessionStartEvent, type ShutdownHandler, type ToolDefinition, type ToolInfo } from "./extensions/index.js";
20
20
  import type { CustomMessage } from "./messages.js";
21
21
  import type { ModelRegistry } from "./model-registry.js";
22
22
  import { type PromptTemplate } from "./prompt-templates.js";
@@ -62,6 +62,11 @@ export type AgentSessionEvent = AgentEvent | {
62
62
  success: boolean;
63
63
  attempt: number;
64
64
  finalError?: string;
65
+ } | {
66
+ type: "custom_entry";
67
+ customType: string;
68
+ data?: unknown;
69
+ id: string;
65
70
  };
66
71
  /** Listener function for agent session events */
67
72
  export type AgentSessionEventListener = (event: AgentSessionEvent) => void;
@@ -469,6 +474,7 @@ export declare class AgentSession {
469
474
  private _applyExtensionBindings;
470
475
  private _refreshCurrentModelFromRegistry;
471
476
  private _bindExtensionCore;
477
+ callLLM(options: CallLLMOptions): Promise<string>;
472
478
  private _refreshToolRegistry;
473
479
  private _buildRuntime;
474
480
  reload(): Promise<void>;