Skip to content

sandbox-core v0.2.0

Choose a tag to compare

@hydro-project-bot hydro-project-bot released this 22 Oct 17:26
· 10 commits to main since this release

Refactor (BREAKING)

  • type tool-call IDs (ToolCallId, ProviderCallId, ChoiceId)
    Stage 4 of the string-ID to typed-ID migration (#108). The two distinct
    call-ID spaces documented in rap_tool.rs are now distinct types, and choice
    IDs are a documented alias. Wire formats unchanged (serde transparent; full
    suite + web e2e green; zero snapshot changes).

    • rap-protocol: ToolCallId (RAP id; provider-minted or runtime UUID)
      and ProviderCallId (RAP call_id; provider-scoped echo-back) kinds;
      type ChoiceId<T = String> = ToolCallId<T> per #109 (choices are keyed
      by the requesting tool call). All callback types' id/call_id/
      tool_call_id fields typed; send_subscription_event takes ToolCallId
    • infinity-protocol: re-exports; UserChoiceRequired.id,
      UserChoiceAnswered/UserChoiceComplete.choice_id are ChoiceId
    • infinity-agent-core: Tool::execute(id: ToolCallId, call_id: Option<ProviderCallId>), execute_synchronous takes the borrowed
      <str> forms; SyntheticKind/TaggedSyntheticKind tool_call_id fields
      • backward-compat bare-string variant typed; OAuth/UserChoice message
        ids; store traits (spawn_thread, get_thread_parent_info,
        subscription add/remove/list, remove_pending_user_choice) take typed
        borrows; ThreadInfo.spawn_tool_call_id, subscription sets,
        UserChoice.id, AgentEvent::UserChoiceDismissed,
        CompletionAction::ExecuteToolCall, PrepareResult::UserChoiceRequired,
        interrupted-call tracking all typed. Conversions live only at the rig
        boundary (rig ToolCall/ToolResult keep String ids; WireStreamItem in
        provider-protocol deliberately stays a rig mirror since
        internal_call_id is rig's own delta-matching nanoid)
    • daemon/lambda/bridges/sandbox/poller/slack/CLI: trait impls + internal
      maps typed (sandbox in-flight + pending-choice maps keyed by ToolCallId,
      github-poller Subscription + subscriptions map, slack sidecar choice
      routing, CLI choice picker queue + answer channel); DSQL binds and
      Dynamo string sets convert at the storage boundary

Commit Statistics

  • 1 commit contributed to the release over the course of 34 calendar days.
  • 1 commit was understood as conventional.
  • 1 unique issue was worked on: #116

Commit Details

view details
  • #116
    • Type tool-call IDs (ToolCallId, ProviderCallId, ChoiceId) (28026f5)