2026-07-01 17:33:59 +00:00
|
|
|
export * as Command from "./command.js"
|
2026-06-24 02:31:06 +00:00
|
|
|
|
|
|
|
|
import { Schema } from "effect"
|
2026-07-03 16:35:35 +00:00
|
|
|
import { ephemeral, inventory } from "./event.js"
|
2026-07-01 17:33:59 +00:00
|
|
|
import { optional } from "./schema.js"
|
|
|
|
|
import { Model } from "./model.js"
|
2026-07-08 02:10:11 +00:00
|
|
|
import { Agent } from "./agent.js"
|
2026-06-24 02:31:06 +00:00
|
|
|
|
2026-07-03 16:35:35 +00:00
|
|
|
const Updated = ephemeral({ type: "command.updated", schema: {} })
|
2026-07-02 16:22:04 +00:00
|
|
|
|
2026-06-24 02:31:06 +00:00
|
|
|
export interface Info extends Schema.Schema.Type<typeof Info> {}
|
|
|
|
|
export const Info = Schema.Struct({
|
|
|
|
|
name: Schema.String,
|
|
|
|
|
template: Schema.String,
|
2026-06-25 17:10:23 +00:00
|
|
|
description: Schema.String.pipe(optional),
|
2026-07-08 02:10:11 +00:00
|
|
|
agent: Agent.ID.pipe(optional),
|
2026-06-25 17:10:23 +00:00
|
|
|
model: Model.Ref.pipe(optional),
|
|
|
|
|
subtask: Schema.Boolean.pipe(optional),
|
2026-07-08 02:10:11 +00:00
|
|
|
}).annotate({ identifier: "Command.Info" })
|
2026-07-02 16:22:04 +00:00
|
|
|
|
|
|
|
|
export const Event = {
|
|
|
|
|
Updated,
|
|
|
|
|
Definitions: inventory(Updated),
|
|
|
|
|
}
|