Skip to content

sandbox-local 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

Documentation

  • point docs at published crates, match main APIs, and run all runtime doc examples

    Published crates

    • Quickstart Cargo.toml snippets use crates.io versions instead of git deps: infinity-agent-core = "0.1", infinity-provider-bedrock = "0.1", infinity-rap-bridge = "0.1", infinity-mcp-bridge = "0.1", rap-protocol = "0.1". The "not published yet" sentence is removed.
      • The snippets are written against the main APIs and only compile once a release containing #116 is out. Bump them to "0.2" with that release.
    • Infinity Code: the infinity provider install and infinity rap install examples drop --git. The docs explain that crates.io is the default and that --git/--path are alternatives. The providers.json example no longer records git.
    • CLI install: cargo install infinity-agent-cli installs from crates.io. --features bundled-web keeps --git, because the daemon build script needs ../../infinity-ui from the repo.

    Docs now match main

    • Tool::execute/execute_synchronous examples use ToolCallId/ProviderCallId (#116). RapToolSet::connect takes a &ThreadId<str>.
    • Fresh-context subagents (#114) are documented in threading.md, built-in-tools.md and low-level/overview.md.
    • Provider error classes, provider-owned timeouts and overflow recovery (#121) are documented in model-providers.md, completion-loop.md and history-manager.md. The run_completion parameter list is corrected.
    • Fixes in step-mode.md (let mut system) and in the observers.md factory. Transcripts are tagged text, and the threading.md transcripts are corrected.

    Doc examples are tested and run

    • infinity-mdtests now covers docs/docs/infinity-runtime/**/*.md instead of only quickstart/.
    • New hidden helpers infinity_mdtests::mock_provider() and run() (a LocalSet with a 30s timeout). 39 of 44 examples execute; 5 stay no_run because they need Bedrock, a RAP server, an API key, or serve forever.

    Misc

    • infinity-slack-dataflow gets publish = false. RELEASING.md now lists it and infinity-mdtests as unpublished.
    • The README hero snippet uses a real Bedrock model id, and a stale docs link in a landing-page comment is fixed.
    • sandbox-local's git_does_not_resolve_outer_repo test now passes with newer jj. In a colocated repo, jj workspace add now also creates a git worktree, so git inside the sandbox correctly finds the sandbox's own worktree. The test runs git rev-parse --show-toplevel and accepts either "no repo" (128, older jj) or a toplevel under {repo}/.infinity/.sandboxes/. It still fails if git resolves the outer repo.

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

  • 2 commits contributed to the release over the course of 34 calendar days.
  • 2 commits were understood as conventional.
  • 2 unique issues were worked on: #116, #137

Commit Details

view details
  • #116
    • Type tool-call IDs (ToolCallId, ProviderCallId, ChoiceId) (28026f5)
  • #137
    • Point docs at published crates, match main APIs, and run all runtime doc examples (913a7db)