deepseek-harness/examples/echo-agent/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
..
echo-tool.ts Document the codebase thoroughly and tighten type safety 2026-06-11 13:01:00 +08:00
mock-llm.ts Add branded ID types: CallId, SessionId, AgentId 2026-06-11 15:17:56 +08:00
session-jsonl.ts Add runnable echo-agent example 2026-06-11 10:55:05 +08:00
stdio-chat.ts Add ESLint: typescript-eslint strict-type-checked + stylistic formatting 2026-06-11 14:17:58 +08:00