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

16
Skills/@be/be/node_modules/esutils/.jshintrc generated vendored Normal file
View File

@@ -0,0 +1,16 @@
{
"curly": true,
"eqeqeq": true,
"immed": true,
"eqnull": true,
"latedef": true,
"noarg": true,
"noempty": true,
"quotmark": "single",
"undef": true,
"unused": true,
"strict": true,
"trailing": true,
"node": true
}

8
Skills/@be/be/node_modules/esutils/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,8 @@
language: node_js
node_js:
- "0.10"
- "0.11"
matrix:
allow_failures:
- node_js: "0.11"

80
Skills/@be/be/node_modules/esutils/README.md generated vendored Normal file
View File

@@ -0,0 +1,80 @@
esutils ([esutils](http://github.com/Constellation/esutils)) is
utility box for ECMAScript language tools.
### Functions
#### code.isDecimalDigit(code)
Return true if provided code is decimal digit.
#### code.isHexDigit(code)
Return true if provided code is hexadecimal digit.
#### code.isOctalDigit(code)
Return true if provided code is octal digit.
#### code.isWhiteSpace(code)
Return true if provided code is white space. White space characters are formally defined in ECMA262.
#### code.isLineTerminator(code)
Return true if provided code is line terminator. Line terminator characters are formally defined in ECMA262.
#### code.isIdentifierStart(code)
Return true if provided code can be the first character of ECMA262 Identifier. They are formally defined in ECMA262.
#### code.isIdentifierPart(code)
Return true if provided code can be the trailing character of ECMA262 Identifier. They are formally defined in ECMA262.
### keyword
#### keyword.isKeywordES5(id, strict)
Return true if provided identifier string is one of Keywords in ECMA262 5.1. They are formally defined in ECMA262.
If strict flag is true, this function additionally checks whether id is keyword under strict mode.
#### keyword.isKeywordES6(id, strict)
Return true if provided identifier string is one of Keywords in ECMA262 6. They are formally defined in ECMA262.
If strict flag is true, this function additionally checks whether id is keyword under strict mode.
#### keyword.isRestrictedWord(id)
Return true if provided identifier string is one of restricted words under strict mode: "eval" or "arguments".
They are formally defined in ECMA262.
#### keyword.isIdentifierName(id)
Return true if provided identifier string can be IdentifierName.
They are formally defined in ECMA262.
### License
Copyright (C) 2013 [Yusuke Suzuki](http://github.com/Constellation)
(twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

90
Skills/@be/be/node_modules/esutils/lib/code.js generated vendored Normal file

File diff suppressed because one or more lines are too long

117
Skills/@be/be/node_modules/esutils/lib/keyword.js generated vendored Normal file
View File

@@ -0,0 +1,117 @@
/*
Copyright (C) 2013 Yusuke Suzuki <utatane.tea@gmail.com>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
(function () {
'use strict';
var code = require('./code');
function isStrictModeReservedWordES6(id) {
switch (id) {
case 'implements':
case 'interface':
case 'package':
case 'private':
case 'protected':
case 'public':
case 'static':
case 'let':
return true;
default:
return false;
}
}
function isKeywordES5(id, strict) {
// yield should not be treated as keyword under non-strict mode.
if (!strict && id === 'yield') {
return false;
}
return isKeywordES6(id, strict);
}
function isKeywordES6(id, strict) {
if (strict && isStrictModeReservedWordES6(id)) {
return true;
}
switch (id.length) {
case 2:
return (id === 'if') || (id === 'in') || (id === 'do');
case 3:
return (id === 'var') || (id === 'for') || (id === 'new') || (id === 'try');
case 4:
return (id === 'this') || (id === 'else') || (id === 'case') ||
(id === 'void') || (id === 'with') || (id === 'enum');
case 5:
return (id === 'while') || (id === 'break') || (id === 'catch') ||
(id === 'throw') || (id === 'const') || (id === 'yield') ||
(id === 'class') || (id === 'super');
case 6:
return (id === 'return') || (id === 'typeof') || (id === 'delete') ||
(id === 'switch') || (id === 'export') || (id === 'import');
case 7:
return (id === 'default') || (id === 'finally') || (id === 'extends');
case 8:
return (id === 'function') || (id === 'continue') || (id === 'debugger');
case 10:
return (id === 'instanceof');
default:
return false;
}
}
function isRestrictedWord(id) {
return id === 'eval' || id === 'arguments';
}
function isIdentifierName(id) {
var i, iz, ch;
if (id.length === 0) {
return false;
}
ch = id.charCodeAt(0);
if (!code.isIdentifierStart(ch) || ch === 92) { // \ (backslash)
return false;
}
for (i = 1, iz = id.length; i < iz; ++i) {
ch = id.charCodeAt(i);
if (!code.isIdentifierPart(ch) || ch === 92) { // \ (backslash)
return false;
}
}
return true;
}
module.exports = {
isKeywordES5: isKeywordES5,
isKeywordES6: isKeywordES6,
isRestrictedWord: isRestrictedWord,
isIdentifierName: isIdentifierName
};
}());
/* vim: set sw=4 ts=4 et tw=80 : */

32
Skills/@be/be/node_modules/esutils/lib/utils.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
/*
Copyright (C) 2013 Yusuke Suzuki <utatane.tea@gmail.com>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
(function () {
'use strict';
exports.code = require('./code');
exports.keyword = require('./keyword');
}());
/* vim: set sw=4 ts=4 et tw=80 : */

43
Skills/@be/be/node_modules/esutils/package.json generated vendored Normal file
View File

@@ -0,0 +1,43 @@
{
"name": "esutils",
"description": "utility box for ECMAScript language tools",
"homepage": "https://github.com/Constellation/esutils",
"main": "lib/utils.js",
"version": "1.0.0",
"engines": {
"node": ">=0.10.0"
},
"directories": {
"lib": "./lib"
},
"maintainers": [
{
"name": "Yusuke Suzuki",
"email": "utatane.tea@gmail.com",
"web": "http://github.com/Constellation"
}
],
"repository": {
"type": "git",
"url": "http://github.com/Constellation/esutils.git"
},
"dependencies": {
},
"devDependencies": {
"mocha": "~1.12.0",
"chai": "~1.7.2",
"jshint": "2.1.5",
"coffee-script": "~1.6.3"
},
"licenses": [
{
"type": "BSD",
"url": "http://github.com/Constellation/esutils/raw/master/LICENSE.BSD"
}
],
"scripts": {
"test": "npm run-script lint && npm run-script unit-test",
"lint": "jshint lib/*.js",
"unit-test": "mocha --compilers coffee:coffee-script -R spec"
}
}

167
Skills/@be/be/node_modules/esutils/test/code.coffee generated vendored Normal file
View File

@@ -0,0 +1,167 @@
# Copyright (C) 2013 Yusuke Suzuki <utatane.tea@gmail.com>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
'use strict'
expect = require('chai').expect
esutils = require '../'
describe 'code', ->
describe 'isDecimalDigit', ->
it 'returns true if provided code is decimal digit', ->
for ch in [0..9]
expect(esutils.code.isDecimalDigit((ch + '').charCodeAt(0))).to.be.true
it 'returns false if provided code is not decimal digit', ->
for code in ['a'.charCodeAt(0)..'z'.charCodeAt(0)]
expect(esutils.code.isDecimalDigit(code)).to.be.false
for code in ['A'.charCodeAt(0)..'Z'.charCodeAt(0)]
expect(esutils.code.isDecimalDigit(code)).to.be.false
describe 'isHexDigit', ->
it 'returns true if provided code is hexadecimal digit', ->
for ch in [0..9]
expect(esutils.code.isHexDigit((ch + '').charCodeAt(0))).to.be.true
for code in ['a'.charCodeAt(0)..'f'.charCodeAt(0)]
expect(esutils.code.isHexDigit(code)).to.be.true
for code in ['A'.charCodeAt(0)..'F'.charCodeAt(0)]
expect(esutils.code.isHexDigit(code)).to.be.true
it 'returns false if provided code is not hexadecimal digit', ->
for code in ['g'.charCodeAt(0)..'z'.charCodeAt(0)]
expect(esutils.code.isHexDigit(code)).to.be.false
for code in ['G'.charCodeAt(0)..'Z'.charCodeAt(0)]
expect(esutils.code.isHexDigit(code)).to.be.false
describe 'isOctalDigit', ->
it 'returns true if provided code is octal digit', ->
for ch in [0..7]
expect(esutils.code.isOctalDigit((ch + '').charCodeAt(0))).to.be.true
it 'returns false if provided code is not octal digit', ->
for ch in [8..9]
expect(esutils.code.isOctalDigit((ch + '').charCodeAt(0))).to.be.false
for code in ['a'.charCodeAt(0)..'z'.charCodeAt(0)]
expect(esutils.code.isOctalDigit(code)).to.be.false
for code in ['A'.charCodeAt(0)..'Z'.charCodeAt(0)]
expect(esutils.code.isOctalDigit(code)).to.be.false
describe 'isWhiteSpace', ->
it 'returns true if provided code is white space', ->
codes = [
0x0009 # TAB
0x000B # VT
0x000C # FF
0x0020 # SP
0x00A0 # NBSP
0xFEFF # BOM
# Zs
0x1680
0x180E
0x2000
0x2001
0x2002
0x2003
0x2004
0x2005
0x2006
0x2007
0x2008
0x2009
0x200A
0x202F
0x205F
0x3000
]
for code in codes
expect(esutils.code.isWhiteSpace(code)).to.be.true
it 'returns false if provided code is not white space', ->
for ch in [0..9]
expect(esutils.code.isWhiteSpace((ch + '').charCodeAt(0))).to.be.false
for code in ['a'.charCodeAt(0)..'z'.charCodeAt(0)]
expect(esutils.code.isWhiteSpace(code)).to.be.false
for code in ['A'.charCodeAt(0)..'Z'.charCodeAt(0)]
expect(esutils.code.isWhiteSpace(code)).to.be.false
describe 'isLineTerminator', ->
it 'returns true if provided code is line terminator', ->
codes = [
0x000A
0x000D
0x2028
0x2029
]
for code in codes
expect(esutils.code.isLineTerminator(code)).to.be.true
it 'returns false if provided code is not line terminator', ->
for ch in [0..9]
expect(esutils.code.isLineTerminator((ch + '').charCodeAt(0))).to.be.false
for code in ['a'.charCodeAt(0)..'z'.charCodeAt(0)]
expect(esutils.code.isLineTerminator(code)).to.be.false
for code in ['A'.charCodeAt(0)..'Z'.charCodeAt(0)]
expect(esutils.code.isLineTerminator(code)).to.be.false
describe 'isIdentifierStart', ->
it 'returns true if provided code can be a start of Identifier', ->
characters = [
'a'
'$'
'_'
''
]
for code in characters.map((ch) -> ch.charCodeAt(0))
expect(esutils.code.isIdentifierStart(code)).to.be.true
it 'returns false if provided code cannot be a start of Identifier', ->
for ch in [0..9]
expect(esutils.code.isIdentifierStart((ch + '').charCodeAt(0))).to.be.false
describe 'isIdentifierPart', ->
it 'returns true if provided code can be a part of Identifier', ->
characters = [
'a'
'_'
'$'
''
]
for code in characters.map((ch) -> ch.charCodeAt(0))
expect(esutils.code.isIdentifierPart(code)).to.be.true
for ch in [0..9]
expect(esutils.code.isIdentifierPart((ch + '').charCodeAt(0))).to.be.true
it 'returns false if provided code cannot be a part of Identifier', ->
expect(esutils.code.isIdentifierPart('+'.charCodeAt(0))).to.be.false
expect(esutils.code.isIdentifierPart('-'.charCodeAt(0))).to.be.false

204
Skills/@be/be/node_modules/esutils/test/keyword.coffee generated vendored Normal file
View File

@@ -0,0 +1,204 @@
# Copyright (C) 2013 Yusuke Suzuki <utatane.tea@gmail.com>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
'use strict'
expect = require('chai').expect
esutils = require '../'
KW = [
'if'
'in'
'do'
'var'
'for'
'new'
'try'
'this'
'else'
'case'
'void'
'with'
'enum'
'while'
'break'
'catch'
'throw'
'const'
'class'
'super'
'return'
'typeof'
'delete'
'switch'
'export'
'import'
'default'
'finally'
'extends'
'function'
'continue'
'debugger'
'instanceof'
]
SRW = [
'implements'
'interface'
'package'
'private'
'protected'
'public'
'static'
'let'
]
describe 'keyword', ->
describe 'isKeywordES6', ->
it 'returns true if provided string is keyword under non-strict mode', ->
for word in KW
expect(esutils.keyword.isKeywordES6(word, no)).to.be.true
expect(esutils.keyword.isKeywordES6('yield', no)).to.be.true
it 'returns false if provided string is not keyword under non-strict mode', ->
words = [
'hello'
'20'
'$'
'ゆゆ式'
]
for word in words
expect(esutils.keyword.isKeywordES6(word, no)).to.be.false
for word in SRW
expect(esutils.keyword.isKeywordES6(word, no)).to.be.false
it 'returns true if provided string is keyword under strict mode', ->
for word in KW
expect(esutils.keyword.isKeywordES6(word, yes)).to.be.true
expect(esutils.keyword.isKeywordES6('yield', yes)).to.be.true
for word in SRW
expect(esutils.keyword.isKeywordES6(word, yes)).to.be.true
it 'returns false if provided string is not keyword under strict mode', ->
words = [
'hello'
'20'
'$'
'ゆゆ式'
]
for word in words
expect(esutils.keyword.isKeywordES6(word, yes)).to.be.false
describe 'isKeywordES5', ->
it 'returns true if provided string is keyword under non-strict mode', ->
for word in KW
expect(esutils.keyword.isKeywordES5(word, no)).to.be.true
it 'returns false if provided string is not keyword under non-strict mode', ->
words = [
'hello'
'20'
'$'
'ゆゆ式'
]
for word in words
expect(esutils.keyword.isKeywordES5(word, no)).to.be.false
for word in SRW
expect(esutils.keyword.isKeywordES5(word, no)).to.be.false
expect(esutils.keyword.isKeywordES5('yield', no)).to.be.false
it 'returns true if provided string is keyword under strict mode', ->
for word in KW
expect(esutils.keyword.isKeywordES5(word, yes)).to.be.true
expect(esutils.keyword.isKeywordES5('yield', yes)).to.be.true
for word in SRW
expect(esutils.keyword.isKeywordES5(word, yes)).to.be.true
it 'returns false if provided string is not keyword under strict mode', ->
words = [
'hello'
'20'
'$'
'ゆゆ式'
]
for word in words
expect(esutils.keyword.isKeywordES5(word, yes)).to.be.false
describe 'isRestrictedWord', ->
it 'returns true if provided string is "eval" or "arguments"', ->
expect(esutils.keyword.isRestrictedWord('eval')).to.be.true
expect(esutils.keyword.isRestrictedWord('arguments')).to.be.true
it 'returns false if provided string is not "eval" or "arguments"', ->
words = [
'hello'
'20'
'$'
'ゆゆ式'
]
for word in words
expect(esutils.keyword.isRestrictedWord(word)).to.be.false
describe 'isIdentifierName', ->
it 'returns false if provided string is empty', ->
expect(esutils.keyword.isIdentifierName('')).to.be.false
it 'returns true if provided string is IdentifierName', ->
words = [
'hello'
'$'
'ゆゆ式'
'$20'
'hello20'
'_'
]
for word in words
expect(esutils.keyword.isIdentifierName(word)).to.be.true
it 'returns false if provided string is not IdentifierName', ->
words = [
'+hello'
'0$'
'-ゆゆ式'
'#_'
]
for word in words
expect(esutils.keyword.isIdentifierName(word)).to.be.false