spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

mods: $.clock's now, sleep, after and every are events beneath the mod, now() resolving a promise; the declarations and the diff host followBrowse files
poteat authored on Sep 11, 2026 parent 4632d1a · commit f43a16bb7b9c
4 changed files+3 -3compared with 4632d1a
Mmods/diff/hooks/backend/types/backend-host/backend-host.ts
Mmods/diff/hooks/host/host.ts
Mmods/diff/hooks/register.ts
Mmods/types/claude-code.d.ts
@@ -14,7 +14,7 @@
1414 /**
1515 * The engine's clock, in milliseconds (`$.clock.now`).
1616 */
17- nowMs: () => number
17+ nowMs: () => Promise<number>
1818
1919 /**
2020 * When the current session began, read at each fetch.
@@ -19,7 +19,7 @@
1919 /**
2020 * `$.clock.now`.
2121 */
22- now: () => number
22+ now: () => Promise<number>
2323
2424 /**
2525 * `$.clock.after`.
@@ -423,7 +423,7 @@
423423 }
424424
425425 async function bind(engine: Host): Promise<void> {
426- sessionStartMs = engine.now()
426+ sessionStartMs = await engine.now()
427427
428428 try {
429429 await engine.registerCommand(COMMAND_SPEC)
Large file, diff not shown.