Created 10 detailed GitHub issues covering: - Project activation and management UI (#1-2) - Worker node coordination and visualization (#3-4) - Automated GitHub repository scanning (#5) - Intelligent model-to-issue matching (#6) - Multi-model task execution system (#7) - N8N workflow integration (#8) - Hive-Bzzz P2P bridge (#9) - Peer assistance protocol (#10) Each issue includes detailed specifications, acceptance criteria, technical implementation notes, and dependency mapping. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
881 B
JavaScript
35 lines
881 B
JavaScript
/*!
|
|
* Chai - flag utility
|
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
* MIT Licensed
|
|
*/
|
|
|
|
/**
|
|
* ### .flag(object, key, [value])
|
|
*
|
|
* Get or set a flag value on an object. If a
|
|
* value is provided it will be set, else it will
|
|
* return the currently set value or `undefined` if
|
|
* the value is not set.
|
|
*
|
|
* utils.flag(this, 'foo', 'bar'); // setter
|
|
* utils.flag(this, 'foo'); // getter, returns `bar`
|
|
*
|
|
* @template {{__flags?: {[key: PropertyKey]: unknown}}} T
|
|
* @param {T} obj object constructed Assertion
|
|
* @param {string} key
|
|
* @param {unknown} [value]
|
|
* @namespace Utils
|
|
* @name flag
|
|
* @returns {unknown | undefined}
|
|
* @private
|
|
*/
|
|
export function flag(obj, key, value) {
|
|
let flags = obj.__flags || (obj.__flags = Object.create(null));
|
|
if (arguments.length === 3) {
|
|
flags[key] = value;
|
|
} else {
|
|
return flags[key];
|
|
}
|
|
}
|