pi-commandcode-provider 0.5.1 → 0.6.0

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/src/types.ts CHANGED
@@ -110,7 +110,10 @@ export interface StreamOptions {
110
110
  apiKey?: string
111
111
  signal?: AbortSignal
112
112
  headers?: Record<string, string>
113
+ fetch?: typeof fetch
113
114
  maxTokens?: number
115
+ temperature?: number
116
+ sessionId?: string
114
117
  /** Resolved pi thinking level; forwarded only through the model's map. */
115
118
  reasoning?: string
116
119
  onPayload?: (payload: unknown, model: ModelLike) => unknown | Promise<unknown>
@@ -171,6 +174,12 @@ export type AssistantMessageEvent =
171
174
  contentIndex: number
172
175
  partial: AssistantMessageLike
173
176
  }
177
+ | {
178
+ type: "toolcall_delta"
179
+ contentIndex: number
180
+ delta: string
181
+ partial: AssistantMessageLike
182
+ }
174
183
  | {
175
184
  type: "toolcall_end"
176
185
  contentIndex: number