feat: Add Be and tbd skill, also added Roadmap file

This commit is contained in:
2026-05-10 16:32:12 -04:00
parent 3500ade13f
commit 0bb8885802
29587 changed files with 10611695 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
/// <reference types="node" />
import stream = require('stream');
export default class NullStream extends stream.Writable {
constructor(opts?: any);
_write(chunk: any, encoding: string, cb: Function): boolean;
}

View File

@@ -0,0 +1,39 @@
/**
* @fileOverview
*
* Created on 5/12/16.
* @author Siggi Orn <siggi@jibo.com>
*/
export interface Callback<T> {
(error?: any, data?: T): any;
}
export interface NonStandardCallback<T> {
(data?: T): any;
}
export declare class PromiseUtils {
/**
* Returns promise that succeeds when the first input promise succeeds
* If all input promises fail, then the returned promise fails.
* @param {Promise<T>[]} promises
* @returns {Promise<T>}
*/
static firstToSucceed<T>(promises: Promise<T>[]): Promise<T>;
/**
* A method that allows you to convert a 'callback' async function to
* a promise async function. The only requirement is that the callback
* signature must be of type (error: any, data?:any)
* @param {Function.<Callback>} func
* @returns {Promise<any>}
*/
static promisify<T>(func: (cb: Callback<T>) => any): Promise<T>;
/**
* A method that allows you to convert a 'callback' async function to
* a promise async function. The only requirement is that the callback
* signature must be of type (data?:any)
* @param {Function.<NonStandardCallback>} func
* @param {boolean} [firstParamError=true] Must be set to false if first argument in callback
* will not be an error message but the data itself
* @returns {Promise<any>}
*/
static promisify<T>(func: (cb: NonStandardCallback<T>) => any, firstParamError: boolean): Promise<T>;
}

View File

@@ -0,0 +1,7 @@
/**
* Format the passed item as a single-line string for logging (i.e. syslog)
* @function formatItem
* @param args {any[]} Item to format
* @return {string} Formatted line, ready for logging
*/
export declare function formatItem(item: any): string;

View File

@@ -0,0 +1,4 @@
export declare type PlatformVersion = {
version: string;
};
export default function getPlatformVersion(): PlatformVersion;

View File

@@ -0,0 +1,29 @@
export declare type ErrorHandler = (...args: any[]) => void;
/**
* Utility class to handle globally-uncaught exceptions and globally-unhandled
* promise rejections
* @class GlobalErrorHandler
* @param {string|Error} handleError Callback where errors are sent
*/
export declare class GlobalErrorHandler {
private _loggingUncaughtExceptions;
private _loggingUnhandledRejections;
private _handleError;
constructor(handleError: ErrorHandler);
private _uncaughtExceptionProcessLogger(error?);
private _uncaughtExceptionWindowLogger(message, filename?, lineno?, colno?, error?);
/**
* Whether or not to log globally uncaught exceptions
* @name GlobalErrorHandler.logUncaughtExceptions
* @type {boolean}
*/
logUncaughtExceptions: boolean;
private _unhandledRejectionProcessLogger(error?);
private _unhandledRejectionWindowLogger(event);
/**
* Whether or not to log globally unhandled promise rejections
* @name GlobalErrorHandler.logUnhandledRejections
* @type {boolean}
*/
logUnhandledRejections: boolean;
}

View File

@@ -0,0 +1,5 @@
import { formatItem } from './formatting';
import { GlobalErrorHandler } from './global-errors';
import NullStream from './NullStream';
import { PromiseUtils } from './PromiseUtils';
export { formatItem, GlobalErrorHandler, NullStream, PromiseUtils };