This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// The events of the agent module. A web write publishes the request; the module's own subscriber
|
||||
// (in the worker's outbox relay) enqueues the run job with the run id as its singleton key, so a
|
||||
// start, a cancel or a review resumes the one job.
|
||||
|
||||
import { defineEvent } from "@conusai-kit/core"
|
||||
import { z } from "zod"
|
||||
|
||||
const inProject = {
|
||||
orgId: z.string(),
|
||||
workspaceId: z.string(),
|
||||
projectId: z.string(),
|
||||
}
|
||||
|
||||
/** A run was asked to start (or resume after a cancel/review decision). */
|
||||
export const runResumeRequested = defineEvent(
|
||||
"agent.runResumeRequested",
|
||||
z.object({
|
||||
...inProject,
|
||||
runId: z.string(),
|
||||
}),
|
||||
)
|
||||
|
||||
export const AGENT_EVENTS = [runResumeRequested]
|
||||
Reference in New Issue
Block a user