command.ts 497 B

123456789101112131415
  1. export * as Command from "./command"
  2. import { Schema } from "effect"
  3. import { optional } from "./schema"
  4. import { Model } from "./model"
  5. export interface Info extends Schema.Schema.Type<typeof Info> {}
  6. export const Info = Schema.Struct({
  7. name: Schema.String,
  8. template: Schema.String,
  9. description: Schema.String.pipe(optional),
  10. agent: Schema.String.pipe(optional),
  11. model: Model.Ref.pipe(optional),
  12. subtask: Schema.Boolean.pipe(optional),
  13. }).annotate({ identifier: "CommandV2.Info" })