refactor(trigger): name CLI trigger source as local

maintainer edit: cron is also a trigger source, so keep the new CLI-delivered source explicitly named as local trigger across backend, WebUI, docs, and tests.
This commit is contained in:
chengyongru
2026-07-02 13:32:46 +08:00
committed by Xubin Ren
parent 1ed2c9a213
commit 2ebf5c4972
40 changed files with 353 additions and 253 deletions
+4 -4
View File
@@ -32,7 +32,7 @@ export interface UIMediaAttachment {
name?: string;
}
export interface UIMessageSource { kind: "cron" | "trigger" | string; label?: string; }
export interface UIMessageSource { kind: "cron" | "local_trigger" | "trigger" | string; label?: string; }
export interface UIMessage {
id: string;
@@ -104,9 +104,9 @@ export interface SessionAutomationJob {
delete_after_run?: boolean;
created_at_ms?: number | null;
updated_at_ms?: number | null;
kind?: "external_trigger" | "cron" | string;
kind?: "local_trigger" | "cron" | string;
schedule: {
kind: "at" | "every" | "cron" | "external" | string;
kind: "at" | "every" | "cron" | "local" | string;
at_ms?: number | null;
every_ms?: number | null;
expr?: string | null;
@@ -114,7 +114,7 @@ export interface SessionAutomationJob {
};
payload: {
message: string;
kind?: "agent_turn" | "system_event" | "external_trigger" | string;
kind?: "agent_turn" | "system_event" | "local_trigger" | string;
command?: string;
};
state: {