feat: update session notices and skill reloads
This commit is contained in:
parent
98c09884bf
commit
fb884bb91e
29 changed files with 304 additions and 75 deletions
|
|
@ -3,6 +3,7 @@ export * as Skill from "./skill.js"
|
|||
import { Schema } from "effect"
|
||||
import { optional } from "./schema.js"
|
||||
import { AbsolutePath } from "./schema.js"
|
||||
import { define, inventory } from "./event.js"
|
||||
|
||||
export interface DirectorySource extends Schema.Schema.Type<typeof DirectorySource> {}
|
||||
export const DirectorySource = Schema.Struct({
|
||||
|
|
@ -25,6 +26,9 @@ export const Info = Schema.Struct({
|
|||
content: Schema.String,
|
||||
}).annotate({ identifier: "SkillV2.Info" })
|
||||
|
||||
const Updated = define({ type: "skill.updated", schema: {} })
|
||||
export const Event = { Updated, Definitions: inventory(Updated) }
|
||||
|
||||
export interface EmbeddedSource extends Schema.Schema.Type<typeof EmbeddedSource> {}
|
||||
export const EmbeddedSource = Schema.Struct({
|
||||
type: Schema.Literal("embedded"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue