/** Shared helpers for drive-resident /bin scripts (prepended before each command). */ function bareStdin(ctx) { return typeof ctx.shellStdin === 'string' ? ctx.shellStdin : '' } async function run(ctx, argv) { const utc = argv.includes('-u') || argv.includes('--utc') const d = new Date() ctx.console.log( utc ? d .toISOString() .replace('T', ' ') .replace(/\.\d{3}Z$/, ' UTC') : d.toString() ) }