README

vectie/bunnia/effects does not have a README file

#
BackendBudget

pub struct BackendBudget {
max_endpoints : Int
max_streaming : Int
max_review_required : Int
} derive(Eq,
Debug
)

#
BackendContract

pub struct BackendContract {
id : String
base_url_key : String
session_token_key : String
session_header_key : String
endpoints : Array[BackendEndpoint]
} derive(Eq,
Debug
)

#
BackendEndpoint

pub struct BackendEndpoint {
id : String
kind : BackendEndpointKind
http_method : HttpMethod
path : String
payload_key : String
response_key : String
timeout_ms : Int
streaming : Bool
requires_review : Bool
} derive(Eq,
Debug
)

#
BackendEndpointKind

pub(all) enum BackendEndpointKind {
SnapshotLoad
StatusLoad
OperatorSubmit
AgentMessageSend
AgentRunStatus
ThreadLoad
HandoffSubmit
ReviewDecision
ToolAck
AgentOperationCancel
AgentOperationRetry
GenericEndpoint
} derive(Eq,
Debug
)

#
BackendPlan

pub struct BackendPlan {
contract : BackendContract
endpoint_count : Int
streaming_count : Int
review_required_count : Int
cancel_count : Int
retry_count : Int
diagnostics : Array[String]
summary : String
} derive(Eq,
Debug
)

#
BackendRequest

pub struct BackendRequest {
id : String
endpoint_id : String
payload_json : String
replay_key : String
} derive(Eq,
Debug
)

#
BackendResult

pub struct BackendResult {
request : BackendRequest
kind : BackendResultKind
response_json : String
error_message : String
} derive(Eq,
Debug
)

#
BackendResultKind

pub(all) enum BackendResultKind {
BackendSuccess
BackendFailure
BackendTimeout
BackendMalformed
BackendCancelled
} derive(Eq,
Debug
)

#
BackendState

pub(all) enum BackendState {
IdleState
Loading
Ready
Stale
Failed
Timeout
Malformed
CancelledState
} derive(Eq,
Debug
)

#
Effect

pub struct Effect {
id : String
kind : EffectKind
target : String
payload_key : String
message : String
} derive(Eq,
Debug
)

#
EffectKind

pub(all) enum EffectKind {
Request
Navigate
Storage
Login
Share
CloudFunction
Stream
Cancel
Retry
} derive(Eq,
Debug
)

#
EffectPlan

pub struct EffectPlan {
platform :
Platform

adapter :
PlatformAdapter

effect_count : Int
cloud_function_count : Int
stream_effect_count : Int
diagnostics : Array[String]
summary : String
} derive(Eq,
Debug
)

#
HttpMethod

pub(all) enum HttpMethod {
Get
Post
Put
Patch
Delete
} derive(Eq,
Debug
)

#
SnapshotDelta

pub struct SnapshotDelta {
kind : SnapshotDeltaKind
scope : String
section : String
item_id : String
value_json : String
patch :
Patch

} derive(Eq,
Debug
)

#
SnapshotDeltaKind

pub(all) enum SnapshotDeltaKind {
SnapshotSetSection
SnapshotAppendItem
SnapshotRemoveSection
SnapshotReplaceAll
} derive(Eq,
Debug
)

#
SnapshotDeltaPlan

pub struct SnapshotDeltaPlan {
deltas : Array[SnapshotDelta]
patch_plan :
PatchPlan

section_update_count : Int
append_item_count : Int
full_snapshot_count : Int
diagnostics : Array[String]
summary : String
} derive(Eq,
Debug
)

#
agent_cancel_endpoint

fn agent_cancel_endpoint(id : String, path : String, payload_key : String, response_key : String) -> BackendEndpoint

#
agent_message_endpoint

fn agent_message_endpoint(id : String, path : String, payload_key : String, response_key : String) -> BackendEndpoint

#
agent_retry_endpoint

fn agent_retry_endpoint(id : String, path : String, payload_key : String, response_key : String) -> BackendEndpoint

#
agent_stream_endpoint

fn agent_stream_endpoint(id : String, path : String, payload_key : String, response_key : String) -> BackendEndpoint

#
append_snapshot_item_delta

fn append_snapshot_item_delta(scope : String, section : String, item_id : String, value_json : String) -> SnapshotDelta

#
backend_budget

fn backend_budget(max_endpoints~ : Int, max_streaming~ : Int, max_review_required~ : Int) -> BackendBudget

#
backend_cancelled

fn backend_cancelled(request : BackendRequest) -> BackendResult

#
backend_contract

fn backend_contract(id~ : String, base_url_key? : String, session_token_key? : String, session_header_key? : String, endpoints~ : Array[BackendEndpoint]) -> BackendContract

#
backend_contract_effects

fn backend_contract_effects(contract : BackendContract) -> Array[Effect]

#
backend_endpoint

fn backend_endpoint(id~ : String, kind~ : BackendEndpointKind, http_method~ : HttpMethod, path~ : String, payload_key? : String, response_key? : String, timeout_ms? : Int, streaming? : Bool, requires_review? : Bool) -> BackendEndpoint

#
backend_endpoint_kind_id

fn backend_endpoint_kind_id(kind : BackendEndpointKind) -> String

#
backend_error_patch

fn backend_error_patch(scope : String, message : String) ->
Patch

#
backend_failure

fn backend_failure(request : BackendRequest, error_message : String) -> BackendResult

#
backend_malformed

fn backend_malformed(request : BackendRequest, error_message? : String) -> BackendResult

#
backend_request

fn backend_request(id~ : String, endpoint~ : BackendEndpoint, payload_json? : String, replay_key? : String) -> BackendRequest

#
backend_request_patches

fn backend_request_patches(input : BackendRequest) -> Array[
Patch
]

#
backend_response_patch

fn backend_response_patch(scope : String, value_json : String) ->
Patch

#
backend_result_kind_id

fn backend_result_kind_id(kind : BackendResultKind) -> String

#
backend_result_patches

fn backend_result_patches(input : BackendResult) -> Array[
Patch
]

#
backend_state_id

fn backend_state_id(state : BackendState) -> String

#
backend_state_patch

fn backend_state_patch(scope : String, state : BackendState) ->
Patch

#
backend_success

fn backend_success(request : BackendRequest, response_json : String) -> BackendResult

#
backend_timeout

fn backend_timeout(request : BackendRequest, error_message? : String) -> BackendResult

#
cancel

fn cancel(id : String, target : String) -> Effect

#
cloud_function

fn cloud_function(id : String, target : String, payload_key : String) -> Effect

#
default_backend_budget

fn default_backend_budget() -> BackendBudget

#
effect

fn effect(id~ : String, kind~ : EffectKind, target~ : String, payload_key? : String, message? : String) -> Effect

#
effect_chip

fn effect_chip(item : Effect) ->
Node

#
effect_kind_id

fn effect_kind_id(kind : EffectKind) -> String

#
endpoint_effect

fn endpoint_effect(endpoint : BackendEndpoint, id? : String) -> Effect

#
generic_endpoint

fn generic_endpoint(id : String, path : String, http_method : HttpMethod, payload_key? : String, response_key? : String) -> BackendEndpoint

#
handoff_submit_endpoint

fn handoff_submit_endpoint(id : String, path : String, payload_key : String, response_key : String) -> BackendEndpoint

#
http_method_id

fn http_method_id(input : HttpMethod) -> String

#
login

fn login(id : String, target : String) -> Effect

fn navigate(id : String, target : String) -> Effect

#
operator_submit_endpoint

fn operator_submit_endpoint(id : String, path : String, payload_key : String, response_key : String) -> BackendEndpoint

#
plan_backend_contract

fn plan_backend_contract(contract : BackendContract) -> BackendPlan

#
plan_backend_contract_with_budget

fn plan_backend_contract_with_budget(contract : BackendContract, budget : BackendBudget) -> BackendPlan

#
plan_backend_effects_for_adapter

fn plan_backend_effects_for_adapter(contract : BackendContract, adapter :
PlatformAdapter
) -> EffectPlan

#
plan_backend_effects_for_platform

fn plan_backend_effects_for_platform(contract : BackendContract, platform :
Platform
) -> EffectPlan

#
plan_effects_for_adapter

fn plan_effects_for_adapter(effects : Array[Effect], adapter :
PlatformAdapter
) -> EffectPlan

#
plan_effects_for_platform

fn plan_effects_for_platform(effects : Array[Effect], platform :
Platform
) -> EffectPlan

#
plan_snapshot_deltas

fn plan_snapshot_deltas(deltas : Array[SnapshotDelta]) -> SnapshotDeltaPlan

#
plan_snapshot_deltas_with_budget

fn plan_snapshot_deltas_with_budget(deltas : Array[SnapshotDelta], budget :
PatchBudget
) -> SnapshotDeltaPlan

#
remove_snapshot_section_delta

fn remove_snapshot_section_delta(scope : String, section : String) -> SnapshotDelta

#
replace_snapshot_delta

fn replace_snapshot_delta(scope : String, value_json : String) -> SnapshotDelta

#
request

fn request(id : String, target : String, payload_key : String) -> Effect

#
retry

fn retry(id : String, target : String) -> Effect

#
review_decision_endpoint

fn review_decision_endpoint(id : String, path : String, payload_key : String, response_key : String) -> BackendEndpoint

#
set_snapshot_section_delta

fn set_snapshot_section_delta(scope : String, section : String, value_json : String) -> SnapshotDelta

#
share

fn share(id : String, target : String) -> Effect

#
snapshot_delta_kind_id

fn snapshot_delta_kind_id(kind : SnapshotDeltaKind) -> String

#
snapshot_load_endpoint

fn snapshot_load_endpoint(id : String, path : String, response_key : String) -> BackendEndpoint

#
status_load_endpoint

fn status_load_endpoint(id : String, path : String, response_key : String) -> BackendEndpoint

#
storage

fn storage(id : String, target : String, payload_key : String) -> Effect

#
stream

fn stream(id : String, target : String, payload_key : String) -> Effect

#
thread_load_endpoint

fn thread_load_endpoint(id : String, path : String, response_key : String) -> BackendEndpoint

#
tool_ack_endpoint

fn tool_ack_endpoint(id : String, path : String, payload_key : String) -> BackendEndpoint

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io