mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 17:06:23 +02:00
parent
9df1bb6765
commit
d7dc27a77e
12 changed files with 860 additions and 40 deletions
|
|
@ -397,6 +397,30 @@ const ipcSchemas = {
|
|||
req: z.object({ path: z.string() }),
|
||||
res: z.object({ data: z.string(), mimeType: z.string(), size: z.number() }),
|
||||
},
|
||||
// Knowledge version history channels
|
||||
'knowledge:history': {
|
||||
req: z.object({ path: RelPath }),
|
||||
res: z.object({
|
||||
commits: z.array(z.object({
|
||||
oid: z.string(),
|
||||
message: z.string(),
|
||||
timestamp: z.number(),
|
||||
author: z.string(),
|
||||
})),
|
||||
}),
|
||||
},
|
||||
'knowledge:fileAtCommit': {
|
||||
req: z.object({ path: RelPath, oid: z.string() }),
|
||||
res: z.object({ content: z.string() }),
|
||||
},
|
||||
'knowledge:restore': {
|
||||
req: z.object({ path: RelPath, oid: z.string() }),
|
||||
res: z.object({ ok: z.literal(true) }),
|
||||
},
|
||||
'knowledge:didCommit': {
|
||||
req: z.object({}),
|
||||
res: z.null(),
|
||||
},
|
||||
// Search channels
|
||||
'search:query': {
|
||||
req: z.object({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue