more typecheck fixes
This commit is contained in:
3
packages/opencode/src/server/init-projectors.ts
Normal file
3
packages/opencode/src/server/init-projectors.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import { initProjectors } from "./projectors"
|
||||||
|
|
||||||
|
initProjectors()
|
||||||
@@ -1,6 +1,3 @@
|
|||||||
import { initProjectors } from "@/server/projectors"
|
|
||||||
initProjectors()
|
|
||||||
|
|
||||||
import { Schema } from "effect"
|
import { Schema } from "effect"
|
||||||
import { HttpApi } from "effect/unstable/httpapi"
|
import { HttpApi } from "effect/unstable/httpapi"
|
||||||
import { BusEvent } from "@/bus/bus-event"
|
import { BusEvent } from "@/bus/bus-event"
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import "./init-projectors"
|
||||||
|
|
||||||
import { NodeHttpServer } from "@effect/platform-node"
|
import { NodeHttpServer } from "@effect/platform-node"
|
||||||
import * as Log from "@opencode-ai/core/util/log"
|
import * as Log from "@opencode-ai/core/util/log"
|
||||||
import { ConfigProvider, Context, Effect, Exit, Layer, Scope } from "effect"
|
import { ConfigProvider, Context, Effect, Exit, Layer, Scope } from "effect"
|
||||||
|
|||||||
@@ -370,13 +370,6 @@ export type Pty = {
|
|||||||
pid: number
|
pid: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Prompt = {
|
|
||||||
text: string
|
|
||||||
files?: Array<PromptFileAttachment>
|
|
||||||
agents?: Array<PromptAgentAttachment>
|
|
||||||
references?: Array<PromptReferenceAttachment>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type OutputFormatText = {
|
export type OutputFormatText = {
|
||||||
type: "text"
|
type: "text"
|
||||||
}
|
}
|
||||||
@@ -785,6 +778,13 @@ export type Session = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type Prompt = {
|
||||||
|
text: string
|
||||||
|
files?: Array<PromptFileAttachment>
|
||||||
|
agents?: Array<PromptAgentAttachment>
|
||||||
|
references?: Array<PromptReferenceAttachment>
|
||||||
|
}
|
||||||
|
|
||||||
export type GlobalEvent = {
|
export type GlobalEvent = {
|
||||||
directory: string
|
directory: string
|
||||||
project?: string
|
project?: string
|
||||||
@@ -829,6 +829,13 @@ export type GlobalEvent = {
|
|||||||
| EventPtyDeleted
|
| EventPtyDeleted
|
||||||
| EventInstallationUpdated
|
| EventInstallationUpdated
|
||||||
| EventInstallationUpdateAvailable
|
| EventInstallationUpdateAvailable
|
||||||
|
| EventMessageUpdated
|
||||||
|
| EventMessageRemoved
|
||||||
|
| EventMessagePartUpdated
|
||||||
|
| EventMessagePartRemoved
|
||||||
|
| EventSessionCreated
|
||||||
|
| EventSessionUpdated
|
||||||
|
| EventSessionDeleted
|
||||||
| EventCatalogModelUpdated
|
| EventCatalogModelUpdated
|
||||||
| EventSessionNextAgentSwitched
|
| EventSessionNextAgentSwitched
|
||||||
| EventSessionNextModelSwitched
|
| EventSessionNextModelSwitched
|
||||||
@@ -2692,6 +2699,71 @@ export type EventInstallationUpdateAvailable = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EventMessageUpdated = {
|
||||||
|
id: string
|
||||||
|
type: "message.updated"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
info: Message
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventMessageRemoved = {
|
||||||
|
id: string
|
||||||
|
type: "message.removed"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
messageID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventMessagePartUpdated = {
|
||||||
|
id: string
|
||||||
|
type: "message.part.updated"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
part: Part
|
||||||
|
time: number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventMessagePartRemoved = {
|
||||||
|
id: string
|
||||||
|
type: "message.part.removed"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
messageID: string
|
||||||
|
partID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventSessionCreated = {
|
||||||
|
id: string
|
||||||
|
type: "session.created"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
info: Session
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventSessionUpdated = {
|
||||||
|
id: string
|
||||||
|
type: "session.updated"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
info: Session
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventSessionDeleted = {
|
||||||
|
id: string
|
||||||
|
type: "session.deleted"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
info: Session
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type ModelV2Info = {
|
export type ModelV2Info = {
|
||||||
id: string
|
id: string
|
||||||
apiID: string
|
apiID: string
|
||||||
@@ -3492,71 +3564,6 @@ export type EventTuiToastShow1 = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EventMessageUpdated = {
|
|
||||||
id: string
|
|
||||||
type: "message.updated"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
info: Message
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventMessageRemoved = {
|
|
||||||
id: string
|
|
||||||
type: "message.removed"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
messageID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventMessagePartUpdated = {
|
|
||||||
id: string
|
|
||||||
type: "message.part.updated"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
part: Part
|
|
||||||
time: number
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventMessagePartRemoved = {
|
|
||||||
id: string
|
|
||||||
type: "message.part.removed"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
messageID: string
|
|
||||||
partID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventSessionCreated = {
|
|
||||||
id: string
|
|
||||||
type: "session.created"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
info: Session
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventSessionUpdated = {
|
|
||||||
id: string
|
|
||||||
type: "session.updated"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
info: Session
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventSessionDeleted = {
|
|
||||||
id: string
|
|
||||||
type: "session.deleted"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
info: Session
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ModelV2Info1 = {
|
export type ModelV2Info1 = {
|
||||||
id: string
|
id: string
|
||||||
apiID: string
|
apiID: string
|
||||||
|
|||||||
Reference in New Issue
Block a user