refactor(schema): normalize module patterns (#33770)

This commit is contained in:
Kit Langton
2026-06-25 17:42:22 +02:00
committed by GitHub
parent 73d04c51cd
commit ec48f9848a
50 changed files with 204 additions and 202 deletions
+7 -4
View File
@@ -4,12 +4,15 @@ import { Schema } from "effect"
import { ProviderMetadata, ToolContent } from "./llm"
import { Model } from "./model"
import { FileAttachment, Prompt } from "./prompt"
import { DateTimeUtcFromMillis, RelativePath } from "./schema"
import { DateTimeUtcFromMillis, RelativePath, statics } from "./schema"
import { SessionID } from "./session-id"
import { SessionMessageID } from "./session-message-id"
import { ascending } from "./identifier"
export const ID = SessionMessageID.ID
export type ID = SessionMessageID.ID
export const ID = Schema.String.check(Schema.isStartsWith("msg_")).pipe(
Schema.brand("Session.Message.ID"),
statics((schema) => ({ create: () => schema.make("msg_" + ascending()) })),
)
export type ID = typeof ID.Type
export interface UnknownError extends Schema.Schema.Type<typeof UnknownError> {}
export const UnknownError = Schema.Struct({