feat: update session notices and skill reloads

This commit is contained in:
Dax Raad 2026-07-01 14:37:27 -04:00
commit fb884bb91e
29 changed files with 304 additions and 75 deletions

View file

@ -63,6 +63,7 @@ export type Event =
| EventPermissionV2Replied
| EventPluginAdded
| EventProjectDirectoriesUpdated
| EventSkillUpdated
| EventFileWatcherUpdated
| EventPtyCreated
| EventPtyUpdated
@ -940,6 +941,7 @@ export type GlobalEvent = {
sessionID: string
messageID: string
text: string
description?: string
}
}
| {
@ -1354,6 +1356,13 @@ export type GlobalEvent = {
projectID: string
}
}
| {
id: string
type: "skill.updated"
properties: {
[key: string]: unknown
}
}
| {
id: string
type: "file.watcher.updated"
@ -3037,6 +3046,7 @@ export type V2Event =
| PermissionV2Replied
| PluginAdded
| ProjectDirectoriesUpdated
| SkillUpdated
| FileWatcherUpdated
| PtyCreated
| PtyUpdated
@ -3607,6 +3617,7 @@ export type SyncEventSessionNextSynthetic = {
sessionID: string
messageID: string
text: string
description?: string
}
}
}
@ -4210,6 +4221,7 @@ export type SessionMessageSynthetic = {
}
sessionID: string
text: string
description?: string
type: "synthetic"
}
@ -4570,6 +4582,7 @@ export type SessionNextSynthetic = {
sessionID: string
messageID: string
text: string
description?: string
}
}
@ -5861,6 +5874,23 @@ export type ProjectDirectoriesUpdated = {
}
}
export type SkillUpdated = {
id: string
metadata?: {
[key: string]: unknown
}
type: "skill.updated"
durable?: {
aggregateID: string
seq: number
version: number
}
location?: LocationRef
data: {
[key: string]: unknown
}
}
export type FileWatcherUpdated = {
id: string
metadata?: {
@ -6774,6 +6804,7 @@ export type EventSessionNextSynthetic = {
sessionID: string
messageID: string
text: string
description?: string
}
}
@ -7226,6 +7257,14 @@ export type EventProjectDirectoriesUpdated = {
}
}
export type EventSkillUpdated = {
id: string
type: "skill.updated"
properties: {
[key: string]: unknown
}
}
export type EventFileWatcherUpdated = {
id: string
type: "file.watcher.updated"