mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
release: v0.4.3
This commit is contained in:
parent
13d3fba86b
commit
95e410db88
10 changed files with 57 additions and 29 deletions
|
|
@ -22,18 +22,15 @@ export type Event =
|
|||
| ({
|
||||
type: "storage.write"
|
||||
} & EventStorageWrite)
|
||||
| ({
|
||||
type: "file.edited"
|
||||
} & EventFileEdited)
|
||||
| ({
|
||||
type: "server.connected"
|
||||
} & EventServerConnected)
|
||||
| ({
|
||||
type: "permission.updated"
|
||||
} & EventPermissionUpdated)
|
||||
| ({
|
||||
type: "permission.replied"
|
||||
} & EventPermissionReplied)
|
||||
| ({
|
||||
type: "file.edited"
|
||||
} & EventFileEdited)
|
||||
| ({
|
||||
type: "session.updated"
|
||||
} & EventSessionUpdated)
|
||||
|
|
@ -46,6 +43,9 @@ export type Event =
|
|||
| ({
|
||||
type: "session.error"
|
||||
} & EventSessionError)
|
||||
| ({
|
||||
type: "server.connected"
|
||||
} & EventServerConnected)
|
||||
| ({
|
||||
type: "file.watcher.updated"
|
||||
} & EventFileWatcherUpdated)
|
||||
|
|
@ -182,6 +182,9 @@ export type Part =
|
|||
| ({
|
||||
type: "text"
|
||||
} & TextPart)
|
||||
| ({
|
||||
type: "reasoning"
|
||||
} & ReasoningPart)
|
||||
| ({
|
||||
type: "file"
|
||||
} & FilePart)
|
||||
|
|
@ -217,6 +220,21 @@ export type TextPart = {
|
|||
}
|
||||
}
|
||||
|
||||
export type ReasoningPart = {
|
||||
id: string
|
||||
sessionID: string
|
||||
messageID: string
|
||||
type: string
|
||||
text: string
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
time: {
|
||||
start: number
|
||||
end?: number
|
||||
}
|
||||
}
|
||||
|
||||
export type FilePart = {
|
||||
id: string
|
||||
sessionID: string
|
||||
|
|
@ -407,20 +425,6 @@ export type EventStorageWrite = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventFileEdited = {
|
||||
type: string
|
||||
properties: {
|
||||
file: string
|
||||
}
|
||||
}
|
||||
|
||||
export type EventServerConnected = {
|
||||
type: string
|
||||
properties: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
|
||||
export type EventPermissionUpdated = {
|
||||
type: string
|
||||
properties: Permission
|
||||
|
|
@ -451,6 +455,13 @@ export type EventPermissionReplied = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventFileEdited = {
|
||||
type: string
|
||||
properties: {
|
||||
file: string
|
||||
}
|
||||
}
|
||||
|
||||
export type EventSessionUpdated = {
|
||||
type: string
|
||||
properties: {
|
||||
|
|
@ -512,6 +523,13 @@ export type EventSessionError = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventServerConnected = {
|
||||
type: string
|
||||
properties: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
|
||||
export type EventFileWatcherUpdated = {
|
||||
type: string
|
||||
properties: {
|
||||
|
|
@ -691,6 +709,7 @@ export type Config = {
|
|||
| {
|
||||
[key: string]: string
|
||||
}
|
||||
webfetch?: string
|
||||
}
|
||||
experimental?: {
|
||||
hook?: {
|
||||
|
|
@ -888,6 +907,12 @@ export type AgentConfig = {
|
|||
* Description of when to use the agent
|
||||
*/
|
||||
description?: string
|
||||
/**
|
||||
* Additional model options passed through to provider
|
||||
*/
|
||||
options?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
mode?: string
|
||||
}
|
||||
|
||||
|
|
@ -1028,6 +1053,9 @@ export type Agent = {
|
|||
mode: string
|
||||
topP?: number
|
||||
temperature?: number
|
||||
options: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
model?: {
|
||||
modelID: string
|
||||
providerID: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue