Livenote2 (#440)

* tasks execute immediately

* response formatting

* remove at rowbot block for single tasks

* show last ran time stamp
This commit is contained in:
arkml 2026-03-19 01:34:10 +05:30 committed by GitHub
parent 91030a5fca
commit affc9956f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 372 additions and 39 deletions

View file

@ -28,6 +28,8 @@ export const InlineTaskBlockSchema = z.object({
schedule: InlineTaskScheduleSchema.optional(),
'schedule-label': z.string().optional(),
lastRunAt: z.string().optional(),
processing: z.boolean().optional(),
targetId: z.string().optional(),
});
export type InlineTaskBlock = z.infer<typeof InlineTaskBlockSchema>;

View file

@ -522,6 +522,23 @@ const ipcSchemas = {
]).nullable(),
}),
},
'inline-task:process': {
req: z.object({
instruction: z.string(),
noteContent: z.string(),
notePath: z.string(),
}),
res: z.object({
instruction: z.string(),
schedule: z.union([
z.object({ type: z.literal('cron'), expression: z.string(), startDate: z.string(), endDate: z.string() }),
z.object({ type: z.literal('window'), cron: z.string(), startTime: z.string(), endTime: z.string(), startDate: z.string(), endDate: z.string() }),
z.object({ type: z.literal('once'), runAt: z.string() }),
]).nullable(),
scheduleLabel: z.string().nullable(),
response: z.string().nullable(),
}),
},
// Billing channels
'billing:getInfo': {
req: z.null(),