feat(core): reload config on filesystem changes
This commit is contained in:
parent
b04d8d53e6
commit
c9b24ef027
48 changed files with 596 additions and 510 deletions
|
|
@ -58,15 +58,15 @@ export type Event =
|
|||
| EventSessionError
|
||||
| EventInstallationUpdated
|
||||
| EventInstallationUpdateAvailable
|
||||
| EventFileEdited
|
||||
| EventFilesystemChanged
|
||||
| EventReferenceUpdated
|
||||
| EventPermissionV2Asked
|
||||
| EventPermissionV2Replied
|
||||
| EventPluginAdded
|
||||
| EventProjectDirectoriesUpdated
|
||||
| EventCommandUpdated
|
||||
| EventConfigUpdated
|
||||
| EventSkillUpdated
|
||||
| EventFileWatcherUpdated
|
||||
| EventPtyCreated
|
||||
| EventPtyUpdated
|
||||
| EventPtyExited
|
||||
|
|
@ -91,6 +91,7 @@ export type Event =
|
|||
| EventMcpToolsChanged
|
||||
| EventMcpStatusChanged
|
||||
| EventCommandExecuted
|
||||
| EventFileEdited
|
||||
| EventProjectUpdated
|
||||
| EventSessionStatus
|
||||
| EventSessionIdle
|
||||
|
|
@ -1280,9 +1281,10 @@ export type GlobalEvent = {
|
|||
}
|
||||
| {
|
||||
id: string
|
||||
type: "file.edited"
|
||||
type: "filesystem.changed"
|
||||
properties: {
|
||||
file: string
|
||||
event: "add" | "change" | "unlink"
|
||||
}
|
||||
}
|
||||
| {
|
||||
|
|
@ -1339,17 +1341,16 @@ export type GlobalEvent = {
|
|||
}
|
||||
| {
|
||||
id: string
|
||||
type: "skill.updated"
|
||||
type: "config.updated"
|
||||
properties: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "file.watcher.updated"
|
||||
type: "skill.updated"
|
||||
properties: {
|
||||
file: string
|
||||
event: "add" | "change" | "unlink"
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
| {
|
||||
|
|
@ -1576,6 +1577,13 @@ export type GlobalEvent = {
|
|||
messageID: string
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "file.edited"
|
||||
properties: {
|
||||
file: string
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "project.updated"
|
||||
|
|
@ -2123,7 +2131,6 @@ export type Config = {
|
|||
primary_tools?: Array<string>
|
||||
continue_loop_on_deny?: boolean
|
||||
mcp_timeout?: number
|
||||
policies?: Array<ConfigV2ExperimentalPolicy>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3059,15 +3066,15 @@ export type V2Event =
|
|||
| SessionError
|
||||
| InstallationUpdated
|
||||
| InstallationUpdateAvailable
|
||||
| FileEdited
|
||||
| FilesystemChanged
|
||||
| ReferenceUpdated
|
||||
| PermissionV2Asked
|
||||
| PermissionV2Replied
|
||||
| PluginAdded
|
||||
| ProjectDirectoriesUpdated
|
||||
| CommandUpdated
|
||||
| ConfigUpdated
|
||||
| SkillUpdated
|
||||
| FileWatcherUpdated
|
||||
| PtyCreated
|
||||
| PtyUpdated
|
||||
| PtyExited
|
||||
|
|
@ -3092,6 +3099,7 @@ export type V2Event =
|
|||
| McpToolsChanged
|
||||
| McpStatusChanged
|
||||
| CommandExecuted
|
||||
| FileEdited
|
||||
| ProjectUpdated
|
||||
| SessionStatus2
|
||||
| SessionIdle
|
||||
|
|
@ -4167,14 +4175,6 @@ export type ConfigV2ReferenceLocal = {
|
|||
hidden?: boolean
|
||||
}
|
||||
|
||||
export type PolicyEffect = "allow" | "deny"
|
||||
|
||||
export type ConfigV2ExperimentalPolicy = {
|
||||
action: "provider.use"
|
||||
effect: PolicyEffect
|
||||
resource: string
|
||||
}
|
||||
|
||||
export type ProjectDirectory = {
|
||||
directory: string
|
||||
strategy?: string
|
||||
|
|
@ -5880,16 +5880,17 @@ export type InstallationUpdateAvailable = {
|
|||
}
|
||||
}
|
||||
|
||||
export type FileEdited = {
|
||||
export type FilesystemChanged = {
|
||||
id: string
|
||||
created: number
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
type: "file.edited"
|
||||
type: "filesystem.changed"
|
||||
location?: LocationRef
|
||||
data: {
|
||||
file: string
|
||||
event: "add" | "change" | "unlink"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5981,6 +5982,19 @@ export type CommandUpdated = {
|
|||
}
|
||||
}
|
||||
|
||||
export type ConfigUpdated = {
|
||||
id: string
|
||||
created: number
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
type: "config.updated"
|
||||
location?: LocationRef
|
||||
data: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
|
||||
export type SkillUpdated = {
|
||||
id: string
|
||||
created: number
|
||||
|
|
@ -5994,20 +6008,6 @@ export type SkillUpdated = {
|
|||
}
|
||||
}
|
||||
|
||||
export type FileWatcherUpdated = {
|
||||
id: string
|
||||
created: number
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
type: "file.watcher.updated"
|
||||
location?: LocationRef
|
||||
data: {
|
||||
file: string
|
||||
event: "add" | "change" | "unlink"
|
||||
}
|
||||
}
|
||||
|
||||
export type PtyCreated = {
|
||||
id: string
|
||||
created: number
|
||||
|
|
@ -6408,6 +6408,19 @@ export type CommandExecuted = {
|
|||
}
|
||||
}
|
||||
|
||||
export type FileEdited = {
|
||||
id: string
|
||||
created: number
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
type: "file.edited"
|
||||
location?: LocationRef
|
||||
data: {
|
||||
file: string
|
||||
}
|
||||
}
|
||||
|
||||
export type ProjectUpdated = {
|
||||
id: string
|
||||
created: number
|
||||
|
|
@ -7209,11 +7222,12 @@ export type EventInstallationUpdateAvailable = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventFileEdited = {
|
||||
export type EventFilesystemChanged = {
|
||||
id: string
|
||||
type: "file.edited"
|
||||
type: "filesystem.changed"
|
||||
properties: {
|
||||
file: string
|
||||
event: "add" | "change" | "unlink"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -7275,20 +7289,19 @@ export type EventCommandUpdated = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventSkillUpdated = {
|
||||
export type EventConfigUpdated = {
|
||||
id: string
|
||||
type: "skill.updated"
|
||||
type: "config.updated"
|
||||
properties: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
|
||||
export type EventFileWatcherUpdated = {
|
||||
export type EventSkillUpdated = {
|
||||
id: string
|
||||
type: "file.watcher.updated"
|
||||
type: "skill.updated"
|
||||
properties: {
|
||||
file: string
|
||||
event: "add" | "change" | "unlink"
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -7508,6 +7521,14 @@ export type EventCommandExecuted = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventFileEdited = {
|
||||
id: string
|
||||
type: "file.edited"
|
||||
properties: {
|
||||
file: string
|
||||
}
|
||||
}
|
||||
|
||||
export type EventProjectUpdated = {
|
||||
id: string
|
||||
type: "project.updated"
|
||||
|
|
@ -10279,16 +10300,17 @@ export type SessionCompactionDelta2 = {
|
|||
}
|
||||
}
|
||||
|
||||
export type FileEdited2 = {
|
||||
export type FilesystemChanged2 = {
|
||||
id: string
|
||||
created: number
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
type: "file.edited"
|
||||
type: "filesystem.changed"
|
||||
location?: LocationRef2
|
||||
data: {
|
||||
file: string
|
||||
event: "add" | "change" | "unlink"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -10384,6 +10406,21 @@ export type CommandUpdated2 = {
|
|||
| Array<unknown>
|
||||
}
|
||||
|
||||
export type ConfigUpdated2 = {
|
||||
id: string
|
||||
created: number
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
type: "config.updated"
|
||||
location?: LocationRef2
|
||||
data:
|
||||
| {
|
||||
[key: string]: unknown
|
||||
}
|
||||
| Array<unknown>
|
||||
}
|
||||
|
||||
export type SkillUpdated2 = {
|
||||
id: string
|
||||
created: number
|
||||
|
|
@ -10399,20 +10436,6 @@ export type SkillUpdated2 = {
|
|||
| Array<unknown>
|
||||
}
|
||||
|
||||
export type FileWatcherUpdated2 = {
|
||||
id: string
|
||||
created: number
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
type: "file.watcher.updated"
|
||||
location?: LocationRef2
|
||||
data: {
|
||||
file: string
|
||||
event: "add" | "change" | "unlink"
|
||||
}
|
||||
}
|
||||
|
||||
export type PtyV2 = {
|
||||
id: string
|
||||
title: string
|
||||
|
|
@ -11162,15 +11185,15 @@ export type V2EventV2 =
|
|||
| SessionRevertStaged2
|
||||
| SessionRevertCleared2
|
||||
| SessionRevertCommitted2
|
||||
| FileEdited2
|
||||
| FilesystemChanged2
|
||||
| ReferenceUpdated2
|
||||
| PermissionV2Asked2
|
||||
| PermissionV2Replied2
|
||||
| PluginAdded2
|
||||
| ProjectDirectoriesUpdated2
|
||||
| CommandUpdated2
|
||||
| ConfigUpdated2
|
||||
| SkillUpdated2
|
||||
| FileWatcherUpdated2
|
||||
| PtyCreated2
|
||||
| PtyUpdated2
|
||||
| PtyExited2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue