feat: agent-kit interface change — agents own their detail (Phase 1 of #337) #338
Reference in New Issue
Block a user
Delete Branch "feat/337-agent-detail-merkle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Agents now return
{ output, detailHash }instead of raw string. Agent-kit no longer stores detail — agents do it themselves.Changes
uwf-agent-kit/types.ts— newAgentRunResulttype,AgentRunFnreturns ituwf-agent-kit/run.ts— removestore.put(null, rawOutput), use agent-provideddetailHashuwf-agent-hermes/hermes.ts— registerhermes-raw-outputschema, store detail with proper type hashscripts/mock-agent.ts— updated for new interface^0.3.0Ref
Refs #337, fixes #336 (no more null typeHash for detail)
- Change AgentRunFn to return { output, detailHash } instead of raw string - Remove agent-kit detail CAS write; agents store their own detail nodes - Hermes stores raw output as typed hermes-raw-output CAS node Co-authored-by: Cursor <cursoragent@cursor.com>