feat: scaffold BuildPulse v0.1 cockpit

This commit is contained in:
OpenClaw Bot
2026-05-07 00:11:35 +02:00
parent 8f0ba43728
commit bdf8773797
18 changed files with 4835 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
export const nowIso = () => new Date().toISOString()
export const formatDateTime = (value: string) => {
try {
return new Intl.DateTimeFormat(undefined, {
dateStyle: 'medium',
timeStyle: 'short',
}).format(new Date(value))
} catch {
return value
}
}
export const linesToArray = (value: string) =>
value
.split('\n')
.map((line) => line.trim())
.filter(Boolean)
export const arrayToLines = (value: string[]) => value.join('\n')
export const slugify = (value: string) =>
value
.toLowerCase()
.replace(/[^a-z0-9]+/g, '_')
.replace(/^_+|_+$/g, '') || 'item'