Download packages/schema/src/session-input.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 830 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/schema/src/session-input.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/schema/src/session-input.ts
-
curl -L -o session-input.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/schema/src/session-input.ts
830 Bytes
| export * as SessionInput from "./session-input" | |
| import { Schema } from "effect" | |
| import { optional } from "./schema" | |
| import { Prompt } from "./prompt" | |
| import { DateTimeUtcFromMillis, NonNegativeInt } from "./schema" | |
| import { SessionDelivery } from "./session-delivery" | |
| import { SessionID } from "./session-id" | |
| import { SessionMessage } from "./session-message" | |
| export const Delivery = SessionDelivery.Delivery | |
| export type Delivery = SessionDelivery.Delivery | |
| export interface Admitted extends Schema.Schema.Type<typeof Admitted> {} | |
| export const Admitted = Schema.Struct({ | |
| admittedSeq: NonNegativeInt, | |
| id: SessionMessage.ID, | |
| sessionID: SessionID, | |
| prompt: Prompt, | |
| delivery: Delivery, | |
| timeCreated: DateTimeUtcFromMillis, | |
| promotedSeq: NonNegativeInt.pipe(optional), | |
| }).annotate({ identifier: "SessionInput.Admitted" }) | |