deepseek-harness/packages/agent-loop/src
Tianyi Cui 225ed051b1 Add branded ID types: CallId, SessionId, AgentId
Nominal string types via a unique-symbol brand (zero runtime cost):
an AgentId can no longer be passed where a CallId is expected. Each
core package brands the IDs it owns — CallId in dsh-llm (tool-call
correlation across blocks, chunks, session events, and execution
results), SessionId in dsh-session, AgentId in dsh-agent. Construction
goes through same-named factory functions; public string-in APIs
(sessions.create, agentLoop.create) keep accepting plain strings and
brand internally. Policy note in the brand module: brand IDs that
cross package boundaries, not every string.
2026-06-11 15:17:56 +08:00
..
agent.ts Add branded ID types: CallId, SessionId, AgentId 2026-06-11 15:17:56 +08:00
inbox.ts Document the codebase thoroughly and tighten type safety 2026-06-11 13:01:00 +08:00
index.ts Add branded ID types: CallId, SessionId, AgentId 2026-06-11 15:17:56 +08:00
loop.ts Enforce 100% per-file test coverage on packages/*/src 2026-06-11 14:58:36 +08:00