File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ const zodGenerator = generate({
2020const zodSchemas = zodGenerator . getZodSchemasFile ( ) ;
2121
2222const schemaTs = `
23- export const AGENT_METHODS = ${ JSON . stringify ( metadata . agentMethods , null , 2 ) } ;
23+ export const AGENT_METHODS = ${ JSON . stringify ( metadata . agentMethods , null , 2 ) } as const ;
2424
25- export const CLIENT_METHODS = ${ JSON . stringify ( metadata . clientMethods , null , 2 ) } ;
25+ export const CLIENT_METHODS = ${ JSON . stringify ( metadata . clientMethods , null , 2 ) } as const ;
2626
2727export const PROTOCOL_VERSION = ${ metadata . version } ;
2828
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export const AGENT_METHODS = {
66 session_new : "session/new" ,
77 session_prompt : "session/prompt" ,
88 session_set_mode : "session/set_mode" ,
9- } ;
9+ } as const ;
1010
1111export const CLIENT_METHODS = {
1212 fs_read_text_file : "fs/read_text_file" ,
@@ -18,7 +18,7 @@ export const CLIENT_METHODS = {
1818 terminal_output : "terminal/output" ,
1919 terminal_release : "terminal/release" ,
2020 terminal_wait_for_exit : "terminal/wait_for_exit" ,
21- } ;
21+ } as const ;
2222
2323export const PROTOCOL_VERSION = 1 ;
2424
You can’t perform that action at this time.
0 commit comments