[codex] expose scheduled task summaries in plugin/read

This commit is contained in:
Abhinav Vedmala
2026-07-07 21:29:09 -04:00
parent 8784de445e
commit 835cff9fda
16 changed files with 589 additions and 2 deletions
@@ -13373,6 +13373,15 @@
},
"type": "array"
},
"scheduledTasks": {
"items": {
"$ref": "#/definitions/v2/ScheduledTaskSummary"
},
"type": [
"array",
"null"
]
},
"shareUrl": {
"type": [
"string",
@@ -16366,6 +16375,143 @@
},
"type": "object"
},
"ScheduledTaskSchedule": {
"oneOf": [
{
"properties": {
"days": {
"items": {
"$ref": "#/definitions/v2/ScheduledTaskWeekday"
},
"type": [
"array",
"null"
]
},
"intervalHours": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"type": {
"enum": [
"hourly"
],
"title": "HourlyScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"intervalHours",
"type"
],
"title": "HourlyScheduledTaskSchedule",
"type": "object"
},
{
"properties": {
"time": {
"type": "string"
},
"type": {
"enum": [
"daily"
],
"title": "DailyScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"time",
"type"
],
"title": "DailyScheduledTaskSchedule",
"type": "object"
},
{
"properties": {
"time": {
"type": "string"
},
"type": {
"enum": [
"weekdays"
],
"title": "WeekdaysScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"time",
"type"
],
"title": "WeekdaysScheduledTaskSchedule",
"type": "object"
},
{
"properties": {
"days": {
"items": {
"$ref": "#/definitions/v2/ScheduledTaskWeekday"
},
"type": "array"
},
"time": {
"type": "string"
},
"type": {
"enum": [
"weekly"
],
"title": "WeeklyScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"days",
"time",
"type"
],
"title": "WeeklyScheduledTaskSchedule",
"type": "object"
}
]
},
"ScheduledTaskSummary": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"schedule": {
"$ref": "#/definitions/v2/ScheduledTaskSchedule"
}
},
"required": [
"key",
"name",
"prompt",
"schedule"
],
"type": "object"
},
"ScheduledTaskWeekday": {
"enum": [
"MO",
"TU",
"WE",
"TH",
"FR",
"SA",
"SU"
],
"type": "string"
},
"SelectedCapabilityRoot": {
"description": "A user-selected root that can expose one or more runtime capabilities.",
"properties": {
@@ -9777,6 +9777,15 @@
},
"type": "array"
},
"scheduledTasks": {
"items": {
"$ref": "#/definitions/ScheduledTaskSummary"
},
"type": [
"array",
"null"
]
},
"shareUrl": {
"type": [
"string",
@@ -12770,6 +12779,143 @@
},
"type": "object"
},
"ScheduledTaskSchedule": {
"oneOf": [
{
"properties": {
"days": {
"items": {
"$ref": "#/definitions/ScheduledTaskWeekday"
},
"type": [
"array",
"null"
]
},
"intervalHours": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"type": {
"enum": [
"hourly"
],
"title": "HourlyScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"intervalHours",
"type"
],
"title": "HourlyScheduledTaskSchedule",
"type": "object"
},
{
"properties": {
"time": {
"type": "string"
},
"type": {
"enum": [
"daily"
],
"title": "DailyScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"time",
"type"
],
"title": "DailyScheduledTaskSchedule",
"type": "object"
},
{
"properties": {
"time": {
"type": "string"
},
"type": {
"enum": [
"weekdays"
],
"title": "WeekdaysScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"time",
"type"
],
"title": "WeekdaysScheduledTaskSchedule",
"type": "object"
},
{
"properties": {
"days": {
"items": {
"$ref": "#/definitions/ScheduledTaskWeekday"
},
"type": "array"
},
"time": {
"type": "string"
},
"type": {
"enum": [
"weekly"
],
"title": "WeeklyScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"days",
"time",
"type"
],
"title": "WeeklyScheduledTaskSchedule",
"type": "object"
}
]
},
"ScheduledTaskSummary": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"schedule": {
"$ref": "#/definitions/ScheduledTaskSchedule"
}
},
"required": [
"key",
"name",
"prompt",
"schedule"
],
"type": "object"
},
"ScheduledTaskWeekday": {
"enum": [
"MO",
"TU",
"WE",
"TH",
"FR",
"SA",
"SU"
],
"type": "string"
},
"SelectedCapabilityRoot": {
"description": "A user-selected root that can expose one or more runtime capabilities.",
"properties": {
@@ -192,6 +192,15 @@
},
"type": "array"
},
"scheduledTasks": {
"items": {
"$ref": "#/definitions/ScheduledTaskSummary"
},
"type": [
"array",
"null"
]
},
"shareUrl": {
"type": [
"string",
@@ -718,6 +727,143 @@
],
"type": "object"
},
"ScheduledTaskSchedule": {
"oneOf": [
{
"properties": {
"days": {
"items": {
"$ref": "#/definitions/ScheduledTaskWeekday"
},
"type": [
"array",
"null"
]
},
"intervalHours": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"type": {
"enum": [
"hourly"
],
"title": "HourlyScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"intervalHours",
"type"
],
"title": "HourlyScheduledTaskSchedule",
"type": "object"
},
{
"properties": {
"time": {
"type": "string"
},
"type": {
"enum": [
"daily"
],
"title": "DailyScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"time",
"type"
],
"title": "DailyScheduledTaskSchedule",
"type": "object"
},
{
"properties": {
"time": {
"type": "string"
},
"type": {
"enum": [
"weekdays"
],
"title": "WeekdaysScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"time",
"type"
],
"title": "WeekdaysScheduledTaskSchedule",
"type": "object"
},
{
"properties": {
"days": {
"items": {
"$ref": "#/definitions/ScheduledTaskWeekday"
},
"type": "array"
},
"time": {
"type": "string"
},
"type": {
"enum": [
"weekly"
],
"title": "WeeklyScheduledTaskScheduleType",
"type": "string"
}
},
"required": [
"days",
"time",
"type"
],
"title": "WeeklyScheduledTaskSchedule",
"type": "object"
}
]
},
"ScheduledTaskSummary": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"schedule": {
"$ref": "#/definitions/ScheduledTaskSchedule"
}
},
"required": [
"key",
"name",
"prompt",
"schedule"
],
"type": "object"
},
"ScheduledTaskWeekday": {
"enum": [
"MO",
"TU",
"WE",
"TH",
"FR",
"SA",
"SU"
],
"type": "string"
},
"SkillInterface": {
"properties": {
"brandColor": {
@@ -6,6 +6,7 @@ import type { AppSummary } from "./AppSummary";
import type { AppTemplateSummary } from "./AppTemplateSummary";
import type { PluginHookSummary } from "./PluginHookSummary";
import type { PluginSummary } from "./PluginSummary";
import type { ScheduledTaskSummary } from "./ScheduledTaskSummary";
import type { SkillSummary } from "./SkillSummary";
export type PluginDetail = { marketplaceName: string, marketplacePath: AbsolutePathBuf | null, summary: PluginSummary, shareUrl: string | null, description: string | null, skills: Array<SkillSummary>, hooks: Array<PluginHookSummary>, apps: Array<AppSummary>, appTemplates: Array<AppTemplateSummary>, mcpServers: Array<string>, };
export type PluginDetail = { marketplaceName: string, marketplacePath: AbsolutePathBuf | null, summary: PluginSummary, shareUrl: string | null, description: string | null, skills: Array<SkillSummary>, hooks: Array<PluginHookSummary>, apps: Array<AppSummary>, appTemplates: Array<AppTemplateSummary>, mcpServers: Array<string>, scheduledTasks: Array<ScheduledTaskSummary> | null, };
@@ -0,0 +1,6 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ScheduledTaskWeekday } from "./ScheduledTaskWeekday";
export type ScheduledTaskSchedule = { "type": "hourly", intervalHours: number, days: Array<ScheduledTaskWeekday> | null, } | { "type": "daily", time: string, } | { "type": "weekdays", time: string, } | { "type": "weekly", days: Array<ScheduledTaskWeekday>, time: string, };
@@ -0,0 +1,6 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ScheduledTaskSchedule } from "./ScheduledTaskSchedule";
export type ScheduledTaskSummary = { key: string, name: string, prompt: string, schedule: ScheduledTaskSchedule, };
@@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ScheduledTaskWeekday = "MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU";
@@ -361,6 +361,9 @@ export type { ReviewTarget } from "./ReviewTarget";
export type { SandboxMode } from "./SandboxMode";
export type { SandboxPolicy } from "./SandboxPolicy";
export type { SandboxWorkspaceWrite } from "./SandboxWorkspaceWrite";
export type { ScheduledTaskSchedule } from "./ScheduledTaskSchedule";
export type { ScheduledTaskSummary } from "./ScheduledTaskSummary";
export type { ScheduledTaskWeekday } from "./ScheduledTaskWeekday";
export type { SelectedCapabilityRoot } from "./SelectedCapabilityRoot";
export type { SendAddCreditsNudgeEmailParams } from "./SendAddCreditsNudgeEmailParams";
export type { SendAddCreditsNudgeEmailResponse } from "./SendAddCreditsNudgeEmailResponse";
@@ -663,6 +663,55 @@ pub struct PluginDetail {
pub apps: Vec<AppSummary>,
pub app_templates: Vec<AppTemplateSummary>,
pub mcp_servers: Vec<String>,
pub scheduled_tasks: Option<Vec<ScheduledTaskSummary>>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ScheduledTaskSummary {
pub key: String,
pub name: String,
pub prompt: String,
pub schedule: ScheduledTaskSchedule,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(tag = "type", rename_all = "camelCase")]
#[ts(tag = "type")]
#[ts(export_to = "v2/")]
pub enum ScheduledTaskSchedule {
#[serde(rename_all = "camelCase")]
#[ts(rename_all = "camelCase")]
Hourly {
interval_hours: u32,
days: Option<Vec<ScheduledTaskWeekday>>,
},
#[serde(rename_all = "camelCase")]
#[ts(rename_all = "camelCase")]
Daily { time: String },
#[serde(rename_all = "camelCase")]
#[ts(rename_all = "camelCase")]
Weekdays { time: String },
#[serde(rename_all = "camelCase")]
#[ts(rename_all = "camelCase")]
Weekly {
days: Vec<ScheduledTaskWeekday>,
time: String,
},
}
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
#[ts(export_to = "v2/")]
pub enum ScheduledTaskWeekday {
Mo,
Tu,
We,
Th,
Fr,
Sa,
Su,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]