cueport

v0.1.0
io.github.CloudCorpRecords/cueport Checked 2 days ago Published 1 month ago

CueAPI agent-work scheduling: cues, executions, claiming, heartbeats, and outcomes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cueapi_create_cue

Create a recurring (cron) or one-time (at) cue in CueAPI.

ParameterTypeDescription
name *stringCue name.
schedule *stringSchedule expression, such as a cron expression for a recurring cue or an at time for a one-time cue.
callback_urlstringCallback URL invoked when the cue fires.
default_payloadobjectDefault payload object sent when the cue fires.
descriptionstringDescription of the cue.
methodstringHTTP method for the callback request.
platformstringPlatform associated with the cue.
require_payload_overridebooleanWhether firing the cue requires a payload override.
required_payload_keysarrayList of payload keys required for the cue.
task_namestringTask name associated with the cue.
timezonestringTimezone in which the schedule is evaluated, such as UTC.

cueapi_list_cues

List cues, optionally filtered by status.

ParameterTypeDescription
limitintegerMaximum number of cues to return.
statusstringCue status to filter by, such as active or paused.

cueapi_get_cue

Fetch details for a single cue by id.

ParameterTypeDescription
cue_id *stringCue identifier.

cueapi_fire_cue

Fire an existing cue immediately, with an optional payload override and merge strategy (merge or replace, default merge).

ParameterTypeDescription
cue_id *stringCue identifier.
merge_strategystringHow the payload override combines with the default payload: merge or replace, default merge.
payload_overrideobjectPayload object to use for this firing, overriding the cue's default payload.

cueapi_update_cue

Update a cue's mutable fields (name, schedule, callback, payload, etc.). Sparse: only provided fields are sent.

ParameterTypeDescription
cue_id *stringCue identifier.
callback_urlstringCallback URL invoked when the cue fires.
default_payloadobjectDefault payload object sent when the cue fires.
descriptionstringDescription of the cue.
methodstringHTTP method for the callback request.
namestringCue name.
platformstringPlatform associated with the cue.
require_payload_overridebooleanWhether firing the cue requires a payload override.
required_payload_keysarrayList of payload keys required for the cue.
schedulestringSchedule expression, such as a cron expression for a recurring cue or an at time for a one-time cue.
task_namestringTask name associated with the cue.
timezonestringTimezone in which the schedule is evaluated, such as UTC.

cueapi_pause_cue

Pause a cue so it stops firing.

ParameterTypeDescription
cue_id *stringCue identifier.

cueapi_resume_cue

Resume a paused cue.

ParameterTypeDescription
cue_id *stringCue identifier.

cueapi_delete_cue

Delete a cue permanently.

ParameterTypeDescription
cue_id *stringCue identifier.

cueapi_list_executions

List historical executions, optionally filtered by cue and status.

ParameterTypeDescription
cue_idstringCue identifier to filter by.
limitintegerMaximum number of executions to return.
statusstringExecution status to filter by.

cueapi_get_execution

Fetch a single execution by id, with state and outcome.

ParameterTypeDescription
execution_id *stringExecution identifier.

cueapi_list_claimable_executions

List unclaimed worker executions, filtered server-side by task and agent.

ParameterTypeDescription
agentstringAgent name to filter claimable executions by.
limitintegerMaximum number of claimable executions to return.
taskstringTask name to filter claimable executions by.

cueapi_claim_execution

Atomically claim a specific execution for processing.

ParameterTypeDescription
execution_id *stringExecution identifier.
worker_idstringIdentifier of the claiming worker.

cueapi_claim_next_execution

Claim the next available execution, optionally filtered by task name.

ParameterTypeDescription
task_namestringTask name to filter claimable executions by.
worker_idstringIdentifier of the claiming worker.

cueapi_execution_heartbeat

Extend the claim lease on an in-flight execution. worker_id is required and is sent via the X-Worker-Id header.

ParameterTypeDescription
execution_id *stringExecution identifier.
worker_id *stringIdentifier of the worker holding the claim, sent via the X-Worker-Id header.

cueapi_report_outcome

Report a write-once outcome for an execution, with evidence (external id, result URL, or summary).

ParameterTypeDescription
execution_id *stringExecution identifier.
outcome *stringOutcome of the execution, such as succeeded.
external_idstringExternal identifier associated with the outcome as evidence.
result_typestringType of the execution result.
result_urlstringURL of the execution result.
summarystringSummary of the execution outcome.