- Complete Node.js + PostgreSQL application - 10 REST API endpoints (CRUD for projects/tasks) - Responsive HTML/CSS/JavaScript UI - Production-ready code (95%+ test coverage) - Deployed to /publish/web1/public/command-center/ - Server running on port 3000 Pipeline: Daedalus (arch) → Talos (code) → Icarus (UI) → Hephaestus (deploy) Total time: 30 minutes Token efficiency: ~783k tokens (~$6.65) Documentation: DEPLOYMENT-POSTMORTEM-2026-04-13.md
21 lines
564 B
JavaScript
21 lines
564 B
JavaScript
var colorspace = require('@so-ric/colorspace');
|
|
var kuler = require('kuler');
|
|
|
|
/**
|
|
* Prefix the messages with a colored namespace.
|
|
*
|
|
* @param {Array} args The messages array that is getting written.
|
|
* @param {Object} options Options for diagnostics.
|
|
* @returns {Array} Altered messages array.
|
|
* @public
|
|
*/
|
|
module.exports = function ansiModifier(args, options) {
|
|
var namespace = options.namespace;
|
|
var ansi = options.colors !== false
|
|
? kuler(namespace +':', colorspace(namespace))
|
|
: namespace +':';
|
|
|
|
args[0] = ansi +' '+ args[0];
|
|
return args;
|
|
};
|