Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license

This commit is contained in:
2026-09-05 13:26:46 +03:00
commit 03634b1ca3
11340 changed files with 3442369 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* Desktop log line formatting shared by every desktop log surface:
* `desktop.log`, the in-app "RECENT LOGS" view, and crash forensics.
*
* Historically each line was prefixed with just `[hermes] `, so lines from
* different moments were indistinguishable. Every surface now carries an
* ISO-8601 UTC timestamp, matching the Python-side `agent.log` /
* `gateway.log` convention (`2026-07-12 16:22:17,540 INFO ...`). See #84405.
*/
/**
* Format one desktop log line with an ISO-8601 UTC timestamp.
*
* `stamp` defaults to now; callers that batch multiple lines (a single
* stdout chunk) pass one shared stamp so the group reads as one event.
*/
export function formatDesktopLogLine(text: string, stamp = new Date().toISOString()): string {
return `[${stamp}] [hermes] ${text}`
}