feat: agent-mock emits fixed $usage stats #81

Merged
xiaomo merged 1 commits from feat/75-mock-usage into main 2026-06-04 22:23:42 +00:00
Owner

What

Mock agent now returns meaningful $usage instead of null.

Changes

  • agent-mock/mock-agent.tsusage: { turns: 1, inputTokens: 0, outputTokens: 0, duration: 0 }
  • E2E test 1 (linear workflow) — asserts s1.usage and s2.usage match expected values

747 tests pass.

Ref

Fixes #75
Refs #68

## What Mock agent now returns meaningful `$usage` instead of `null`. ## Changes - `agent-mock/mock-agent.ts` — `usage: { turns: 1, inputTokens: 0, outputTokens: 0, duration: 0 }` - E2E test 1 (linear workflow) — asserts `s1.usage` and `s2.usage` match expected values 747 tests pass. ## Ref Fixes #75 Refs #68
xiaoju added 1 commit 2026-06-04 22:21:34 +00:00
feat: agent-mock emits fixed $usage stats
CI / check (pull_request) Successful in 1m41s
248ac710fd
- Mock agent returns {turns:1, inputTokens:0, outputTokens:0, duration:0}
- E2E test 1 (linear workflow) asserts usage in CAS step nodes
- 747 tests pass

Fixes #75
Refs #68
xiaomo approved these changes 2026-06-04 22:23:41 +00:00
xiaomo left a comment
Owner

LGTM

LGTM ✅
xiaomo merged commit 780005ad65 into main 2026-06-04 22:23:42 +00:00
xiaomo deleted branch feat/75-mock-usage 2026-06-04 22:23:43 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/united-workforce#81