fix: resolve no-base-to-string lint in agent subscribe CLI

This commit is contained in:
kumarabhirup 2026-02-21 11:03:31 -08:00
parent d57c2bbf36
commit da9f5ee992
No known key found for this signature in database
GPG Key ID: DB7CA2289CAB0167

View File

@ -511,8 +511,8 @@ export async function agentCliCommand(opts: AgentCliOpts, runtime: RuntimeEnv, d
// Subscribe-only mode: tail events for a session key with replay cursor.
const subscribeKey = (opts as Record<string, unknown>).subscribeSessionKey as string | undefined;
if (subscribeKey && opts.streamJson) {
const afterSeq =
Number.parseInt(String((opts as Record<string, unknown>).afterSeq ?? "0"), 10) || 0;
const rawAfterSeq = (opts as Record<string, unknown>).afterSeq;
const afterSeq = Number.parseInt(typeof rawAfterSeq === "string" ? rawAfterSeq : "0", 10) || 0;
return await agentSubscribeStreamJson(subscribeKey.trim(), afterSeq, runtime);
}