Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/hasown/package.json +92 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/http-errors/HISTORY.md +180 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/inherits/LICENSE +16 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/interpret/LICENSE +22 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/interpret/README.md +187 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/interpret/index.js +168 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/interpret/mjs-stub.js +1 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/ipaddr.js/README.md +232 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/.nycrc +9 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/LICENSE +20 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/core.json +162 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/index.js +69 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/package.json +76 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-extglob/LICENSE +21 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-extglob/README.md +107 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-extglob/index.js +20 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-extglob/package.json +69 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/index.js +50 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/license +9 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/package.json +42 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/readme.md +39 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-glob/LICENSE +21 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-glob/README.md +206 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-glob/index.js +150 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-glob/package.json +81 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-number/LICENSE +21 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-number/README.md +187 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-number/index.js +18 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-number/package.json +82 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-stream/index.js +21 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-stream/license +21 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-stream/package.json +38 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-stream/readme.md +42 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/.npmignore +2 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/LICENSE +15 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/README.md +51 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/index.js +57 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/mode.js +41 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/package.json +31 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/windows.js +42 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/jackspeak/LICENSE.md +55 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/jackspeak/README.md +389 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/jackspeak/package.json +94 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-bigint/LICENSE +20 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-bigint/README.md +240 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-bigint/index.js +12 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-bigint/package.json +34 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-schema-ref-resolver/.gitattributes +2 -0
- platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-schema-ref-resolver/LICENSE +21 -0
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/hasown/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "hasown",
|
| 3 |
+
"version": "2.0.2",
|
| 4 |
+
"description": "A robust, ES3 compatible, \"has own property\" predicate.",
|
| 5 |
+
"main": "index.js",
|
| 6 |
+
"exports": {
|
| 7 |
+
".": "./index.js",
|
| 8 |
+
"./package.json": "./package.json"
|
| 9 |
+
},
|
| 10 |
+
"types": "index.d.ts",
|
| 11 |
+
"sideEffects": false,
|
| 12 |
+
"scripts": {
|
| 13 |
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
| 14 |
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
| 15 |
+
"prepublishOnly": "safe-publish-latest",
|
| 16 |
+
"prelint": "evalmd README.md",
|
| 17 |
+
"lint": "eslint --ext=js,mjs .",
|
| 18 |
+
"postlint": "npm run tsc",
|
| 19 |
+
"pretest": "npm run lint",
|
| 20 |
+
"tsc": "tsc -p .",
|
| 21 |
+
"posttsc": "attw -P",
|
| 22 |
+
"tests-only": "nyc tape 'test/**/*.js'",
|
| 23 |
+
"test": "npm run tests-only",
|
| 24 |
+
"posttest": "aud --production",
|
| 25 |
+
"version": "auto-changelog && git add CHANGELOG.md",
|
| 26 |
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
| 27 |
+
},
|
| 28 |
+
"repository": {
|
| 29 |
+
"type": "git",
|
| 30 |
+
"url": "git+https://github.com/inspect-js/hasOwn.git"
|
| 31 |
+
},
|
| 32 |
+
"keywords": [
|
| 33 |
+
"has",
|
| 34 |
+
"hasOwnProperty",
|
| 35 |
+
"hasOwn",
|
| 36 |
+
"has-own",
|
| 37 |
+
"own",
|
| 38 |
+
"has",
|
| 39 |
+
"property",
|
| 40 |
+
"in",
|
| 41 |
+
"javascript",
|
| 42 |
+
"ecmascript"
|
| 43 |
+
],
|
| 44 |
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
| 45 |
+
"license": "MIT",
|
| 46 |
+
"bugs": {
|
| 47 |
+
"url": "https://github.com/inspect-js/hasOwn/issues"
|
| 48 |
+
},
|
| 49 |
+
"homepage": "https://github.com/inspect-js/hasOwn#readme",
|
| 50 |
+
"dependencies": {
|
| 51 |
+
"function-bind": "^1.1.2"
|
| 52 |
+
},
|
| 53 |
+
"devDependencies": {
|
| 54 |
+
"@arethetypeswrong/cli": "^0.15.1",
|
| 55 |
+
"@ljharb/eslint-config": "^21.1.0",
|
| 56 |
+
"@ljharb/tsconfig": "^0.2.0",
|
| 57 |
+
"@types/function-bind": "^1.1.10",
|
| 58 |
+
"@types/mock-property": "^1.0.2",
|
| 59 |
+
"@types/tape": "^5.6.4",
|
| 60 |
+
"aud": "^2.0.4",
|
| 61 |
+
"auto-changelog": "^2.4.0",
|
| 62 |
+
"eslint": "=8.8.0",
|
| 63 |
+
"evalmd": "^0.0.19",
|
| 64 |
+
"in-publish": "^2.0.1",
|
| 65 |
+
"mock-property": "^1.0.3",
|
| 66 |
+
"npmignore": "^0.3.1",
|
| 67 |
+
"nyc": "^10.3.2",
|
| 68 |
+
"safe-publish-latest": "^2.0.0",
|
| 69 |
+
"tape": "^5.7.5",
|
| 70 |
+
"typescript": "next"
|
| 71 |
+
},
|
| 72 |
+
"engines": {
|
| 73 |
+
"node": ">= 0.4"
|
| 74 |
+
},
|
| 75 |
+
"testling": {
|
| 76 |
+
"files": "test/index.js"
|
| 77 |
+
},
|
| 78 |
+
"auto-changelog": {
|
| 79 |
+
"output": "CHANGELOG.md",
|
| 80 |
+
"template": "keepachangelog",
|
| 81 |
+
"unreleased": false,
|
| 82 |
+
"commitLimit": false,
|
| 83 |
+
"backfillLimit": false,
|
| 84 |
+
"hideCredit": true
|
| 85 |
+
},
|
| 86 |
+
"publishConfig": {
|
| 87 |
+
"ignore": [
|
| 88 |
+
".github/workflows",
|
| 89 |
+
"test"
|
| 90 |
+
]
|
| 91 |
+
}
|
| 92 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/http-errors/HISTORY.md
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
2.0.0 / 2021-12-17
|
| 2 |
+
==================
|
| 3 |
+
|
| 4 |
+
* Drop support for Node.js 0.6
|
| 5 |
+
* Remove `I'mateapot` export; use `ImATeapot` instead
|
| 6 |
+
* Remove support for status being non-first argument
|
| 7 |
+
* Rename `UnorderedCollection` constructor to `TooEarly`
|
| 8 |
+
* deps: depd@2.0.0
|
| 9 |
+
- Replace internal `eval` usage with `Function` constructor
|
| 10 |
+
- Use instance methods on `process` to check for listeners
|
| 11 |
+
* deps: statuses@2.0.1
|
| 12 |
+
- Fix messaging casing of `418 I'm a Teapot`
|
| 13 |
+
- Remove code 306
|
| 14 |
+
- Rename `425 Unordered Collection` to standard `425 Too Early`
|
| 15 |
+
|
| 16 |
+
2021-11-14 / 1.8.1
|
| 17 |
+
==================
|
| 18 |
+
|
| 19 |
+
* deps: toidentifier@1.0.1
|
| 20 |
+
|
| 21 |
+
2020-06-29 / 1.8.0
|
| 22 |
+
==================
|
| 23 |
+
|
| 24 |
+
* Add `isHttpError` export to determine if value is an HTTP error
|
| 25 |
+
* deps: setprototypeof@1.2.0
|
| 26 |
+
|
| 27 |
+
2019-06-24 / 1.7.3
|
| 28 |
+
==================
|
| 29 |
+
|
| 30 |
+
* deps: inherits@2.0.4
|
| 31 |
+
|
| 32 |
+
2019-02-18 / 1.7.2
|
| 33 |
+
==================
|
| 34 |
+
|
| 35 |
+
* deps: setprototypeof@1.1.1
|
| 36 |
+
|
| 37 |
+
2018-09-08 / 1.7.1
|
| 38 |
+
==================
|
| 39 |
+
|
| 40 |
+
* Fix error creating objects in some environments
|
| 41 |
+
|
| 42 |
+
2018-07-30 / 1.7.0
|
| 43 |
+
==================
|
| 44 |
+
|
| 45 |
+
* Set constructor name when possible
|
| 46 |
+
* Use `toidentifier` module to make class names
|
| 47 |
+
* deps: statuses@'>= 1.5.0 < 2'
|
| 48 |
+
|
| 49 |
+
2018-03-29 / 1.6.3
|
| 50 |
+
==================
|
| 51 |
+
|
| 52 |
+
* deps: depd@~1.1.2
|
| 53 |
+
- perf: remove argument reassignment
|
| 54 |
+
* deps: setprototypeof@1.1.0
|
| 55 |
+
* deps: statuses@'>= 1.4.0 < 2'
|
| 56 |
+
|
| 57 |
+
2017-08-04 / 1.6.2
|
| 58 |
+
==================
|
| 59 |
+
|
| 60 |
+
* deps: depd@1.1.1
|
| 61 |
+
- Remove unnecessary `Buffer` loading
|
| 62 |
+
|
| 63 |
+
2017-02-20 / 1.6.1
|
| 64 |
+
==================
|
| 65 |
+
|
| 66 |
+
* deps: setprototypeof@1.0.3
|
| 67 |
+
- Fix shim for old browsers
|
| 68 |
+
|
| 69 |
+
2017-02-14 / 1.6.0
|
| 70 |
+
==================
|
| 71 |
+
|
| 72 |
+
* Accept custom 4xx and 5xx status codes in factory
|
| 73 |
+
* Add deprecation message to `"I'mateapot"` export
|
| 74 |
+
* Deprecate passing status code as anything except first argument in factory
|
| 75 |
+
* Deprecate using non-error status codes
|
| 76 |
+
* Make `message` property enumerable for `HttpError`s
|
| 77 |
+
|
| 78 |
+
2016-11-16 / 1.5.1
|
| 79 |
+
==================
|
| 80 |
+
|
| 81 |
+
* deps: inherits@2.0.3
|
| 82 |
+
- Fix issue loading in browser
|
| 83 |
+
* deps: setprototypeof@1.0.2
|
| 84 |
+
* deps: statuses@'>= 1.3.1 < 2'
|
| 85 |
+
|
| 86 |
+
2016-05-18 / 1.5.0
|
| 87 |
+
==================
|
| 88 |
+
|
| 89 |
+
* Support new code `421 Misdirected Request`
|
| 90 |
+
* Use `setprototypeof` module to replace `__proto__` setting
|
| 91 |
+
* deps: statuses@'>= 1.3.0 < 2'
|
| 92 |
+
- Add `421 Misdirected Request`
|
| 93 |
+
- perf: enable strict mode
|
| 94 |
+
* perf: enable strict mode
|
| 95 |
+
|
| 96 |
+
2016-01-28 / 1.4.0
|
| 97 |
+
==================
|
| 98 |
+
|
| 99 |
+
* Add `HttpError` export, for `err instanceof createError.HttpError`
|
| 100 |
+
* deps: inherits@2.0.1
|
| 101 |
+
* deps: statuses@'>= 1.2.1 < 2'
|
| 102 |
+
- Fix message for status 451
|
| 103 |
+
- Remove incorrect nginx status code
|
| 104 |
+
|
| 105 |
+
2015-02-02 / 1.3.1
|
| 106 |
+
==================
|
| 107 |
+
|
| 108 |
+
* Fix regression where status can be overwritten in `createError` `props`
|
| 109 |
+
|
| 110 |
+
2015-02-01 / 1.3.0
|
| 111 |
+
==================
|
| 112 |
+
|
| 113 |
+
* Construct errors using defined constructors from `createError`
|
| 114 |
+
* Fix error names that are not identifiers
|
| 115 |
+
- `createError["I'mateapot"]` is now `createError.ImATeapot`
|
| 116 |
+
* Set a meaningful `name` property on constructed errors
|
| 117 |
+
|
| 118 |
+
2014-12-09 / 1.2.8
|
| 119 |
+
==================
|
| 120 |
+
|
| 121 |
+
* Fix stack trace from exported function
|
| 122 |
+
* Remove `arguments.callee` usage
|
| 123 |
+
|
| 124 |
+
2014-10-14 / 1.2.7
|
| 125 |
+
==================
|
| 126 |
+
|
| 127 |
+
* Remove duplicate line
|
| 128 |
+
|
| 129 |
+
2014-10-02 / 1.2.6
|
| 130 |
+
==================
|
| 131 |
+
|
| 132 |
+
* Fix `expose` to be `true` for `ClientError` constructor
|
| 133 |
+
|
| 134 |
+
2014-09-28 / 1.2.5
|
| 135 |
+
==================
|
| 136 |
+
|
| 137 |
+
* deps: statuses@1
|
| 138 |
+
|
| 139 |
+
2014-09-21 / 1.2.4
|
| 140 |
+
==================
|
| 141 |
+
|
| 142 |
+
* Fix dependency version to work with old `npm`s
|
| 143 |
+
|
| 144 |
+
2014-09-21 / 1.2.3
|
| 145 |
+
==================
|
| 146 |
+
|
| 147 |
+
* deps: statuses@~1.1.0
|
| 148 |
+
|
| 149 |
+
2014-09-21 / 1.2.2
|
| 150 |
+
==================
|
| 151 |
+
|
| 152 |
+
* Fix publish error
|
| 153 |
+
|
| 154 |
+
2014-09-21 / 1.2.1
|
| 155 |
+
==================
|
| 156 |
+
|
| 157 |
+
* Support Node.js 0.6
|
| 158 |
+
* Use `inherits` instead of `util`
|
| 159 |
+
|
| 160 |
+
2014-09-09 / 1.2.0
|
| 161 |
+
==================
|
| 162 |
+
|
| 163 |
+
* Fix the way inheriting functions
|
| 164 |
+
* Support `expose` being provided in properties argument
|
| 165 |
+
|
| 166 |
+
2014-09-08 / 1.1.0
|
| 167 |
+
==================
|
| 168 |
+
|
| 169 |
+
* Default status to 500
|
| 170 |
+
* Support provided `error` to extend
|
| 171 |
+
|
| 172 |
+
2014-09-08 / 1.0.1
|
| 173 |
+
==================
|
| 174 |
+
|
| 175 |
+
* Fix accepting string message
|
| 176 |
+
|
| 177 |
+
2014-09-08 / 1.0.0
|
| 178 |
+
==================
|
| 179 |
+
|
| 180 |
+
* Initial release
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/inherits/LICENSE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The ISC License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Isaac Z. Schlueter
|
| 4 |
+
|
| 5 |
+
Permission to use, copy, modify, and/or distribute this software for any
|
| 6 |
+
purpose with or without fee is hereby granted, provided that the above
|
| 7 |
+
copyright notice and this permission notice appear in all copies.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
| 10 |
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
| 11 |
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
| 12 |
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
| 13 |
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
| 14 |
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
| 15 |
+
PERFORMANCE OF THIS SOFTWARE.
|
| 16 |
+
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/interpret/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2014-2018 Tyler Kellen <tyler@sleekcode.net>, Blaine Bublitz <blaine.bublitz@gmail.com>, and Eric Schoffstall <yo@contra.io>
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person
|
| 4 |
+
obtaining a copy of this software and associated documentation
|
| 5 |
+
files (the "Software"), to deal in the Software without
|
| 6 |
+
restriction, including without limitation the rights to use,
|
| 7 |
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 8 |
+
copies of the Software, and to permit persons to whom the
|
| 9 |
+
Software is furnished to do so, subject to the following
|
| 10 |
+
conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be
|
| 13 |
+
included in all copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 16 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
| 17 |
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 18 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
| 19 |
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
| 20 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 21 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
| 22 |
+
OTHER DEALINGS IN THE SOFTWARE.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/interpret/README.md
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<p align="center">
|
| 2 |
+
<a href="http://gulpjs.com">
|
| 3 |
+
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
|
| 4 |
+
</a>
|
| 5 |
+
</p>
|
| 6 |
+
|
| 7 |
+
# interpret
|
| 8 |
+
|
| 9 |
+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
|
| 10 |
+
|
| 11 |
+
A dictionary of file extensions and associated module loaders.
|
| 12 |
+
|
| 13 |
+
## What is it
|
| 14 |
+
This is used by [Liftoff](http://github.com/tkellen/node-liftoff) to automatically require dependencies for configuration files, and by [rechoir](http://github.com/tkellen/node-rechoir) for registering module loaders.
|
| 15 |
+
|
| 16 |
+
## API
|
| 17 |
+
|
| 18 |
+
### extensions
|
| 19 |
+
Map file types to modules which provide a [require.extensions] loader.
|
| 20 |
+
|
| 21 |
+
```js
|
| 22 |
+
{
|
| 23 |
+
'.babel.js': [
|
| 24 |
+
{
|
| 25 |
+
module: '@babel/register',
|
| 26 |
+
register: function(hook) {
|
| 27 |
+
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
|
| 28 |
+
// which only captures the final extension (.babel.js -> .js)
|
| 29 |
+
hook({ extensions: '.js' });
|
| 30 |
+
},
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
module: 'babel-register',
|
| 34 |
+
register: function(hook) {
|
| 35 |
+
hook({ extensions: '.js' });
|
| 36 |
+
},
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
module: 'babel-core/register',
|
| 40 |
+
register: function(hook) {
|
| 41 |
+
hook({ extensions: '.js' });
|
| 42 |
+
},
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
module: 'babel/register',
|
| 46 |
+
register: function(hook) {
|
| 47 |
+
hook({ extensions: '.js' });
|
| 48 |
+
},
|
| 49 |
+
},
|
| 50 |
+
],
|
| 51 |
+
'.babel.ts': [
|
| 52 |
+
{
|
| 53 |
+
module: '@babel/register',
|
| 54 |
+
register: function(hook) {
|
| 55 |
+
hook({ extensions: '.ts' });
|
| 56 |
+
},
|
| 57 |
+
},
|
| 58 |
+
],
|
| 59 |
+
'.buble.js': 'buble/register',
|
| 60 |
+
'.cirru': 'cirru-script/lib/register',
|
| 61 |
+
'.cjsx': 'node-cjsx/register',
|
| 62 |
+
'.co': 'coco',
|
| 63 |
+
'.coffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
| 64 |
+
'.coffee.md': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
| 65 |
+
'.csv': 'require-csv',
|
| 66 |
+
'.eg': 'earlgrey/register',
|
| 67 |
+
'.esm.js': {
|
| 68 |
+
module: 'esm',
|
| 69 |
+
register: function(hook) {
|
| 70 |
+
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
|
| 71 |
+
// which only captures the final extension (.babel.js -> .js)
|
| 72 |
+
var esmLoader = hook(module);
|
| 73 |
+
require.extensions['.js'] = esmLoader('module')._extensions['.js'];
|
| 74 |
+
},
|
| 75 |
+
},
|
| 76 |
+
'.iced': ['iced-coffee-script/register', 'iced-coffee-script'],
|
| 77 |
+
'.iced.md': 'iced-coffee-script/register',
|
| 78 |
+
'.ini': 'require-ini',
|
| 79 |
+
'.js': null,
|
| 80 |
+
'.json': null,
|
| 81 |
+
'.json5': 'json5/lib/require',
|
| 82 |
+
'.jsx': [
|
| 83 |
+
{
|
| 84 |
+
module: '@babel/register',
|
| 85 |
+
register: function(hook) {
|
| 86 |
+
hook({ extensions: '.jsx' });
|
| 87 |
+
},
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
module: 'babel-register',
|
| 91 |
+
register: function(hook) {
|
| 92 |
+
hook({ extensions: '.jsx' });
|
| 93 |
+
},
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
module: 'babel-core/register',
|
| 97 |
+
register: function(hook) {
|
| 98 |
+
hook({ extensions: '.jsx' });
|
| 99 |
+
},
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
module: 'babel/register',
|
| 103 |
+
register: function(hook) {
|
| 104 |
+
hook({ extensions: '.jsx' });
|
| 105 |
+
},
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
module: 'node-jsx',
|
| 109 |
+
register: function(hook) {
|
| 110 |
+
hook.install({ extension: '.jsx', harmony: true });
|
| 111 |
+
},
|
| 112 |
+
},
|
| 113 |
+
],
|
| 114 |
+
'.litcoffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
| 115 |
+
'.liticed': 'iced-coffee-script/register',
|
| 116 |
+
'.ls': ['livescript', 'LiveScript'],
|
| 117 |
+
'.mjs': '/absolute/path/to/interpret/mjs-stub.js',
|
| 118 |
+
'.node': null,
|
| 119 |
+
'.toml': {
|
| 120 |
+
module: 'toml-require',
|
| 121 |
+
register: function(hook) {
|
| 122 |
+
hook.install();
|
| 123 |
+
},
|
| 124 |
+
},
|
| 125 |
+
'.ts': [
|
| 126 |
+
'ts-node/register',
|
| 127 |
+
'typescript-node/register',
|
| 128 |
+
'typescript-register',
|
| 129 |
+
'typescript-require',
|
| 130 |
+
'sucrase/register/ts',
|
| 131 |
+
{
|
| 132 |
+
module: '@babel/register',
|
| 133 |
+
register: function(hook) {
|
| 134 |
+
hook({ extensions: '.ts' });
|
| 135 |
+
},
|
| 136 |
+
},
|
| 137 |
+
],
|
| 138 |
+
'.tsx': [
|
| 139 |
+
'ts-node/register',
|
| 140 |
+
'typescript-node/register',
|
| 141 |
+
'sucrase/register',
|
| 142 |
+
{
|
| 143 |
+
module: '@babel/register',
|
| 144 |
+
register: function(hook) {
|
| 145 |
+
hook({ extensions: '.tsx' });
|
| 146 |
+
},
|
| 147 |
+
},
|
| 148 |
+
],
|
| 149 |
+
'.wisp': 'wisp/engine/node',
|
| 150 |
+
'.xml': 'require-xml',
|
| 151 |
+
'.yaml': 'require-yaml',
|
| 152 |
+
'.yml': 'require-yaml',
|
| 153 |
+
}
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
### jsVariants
|
| 157 |
+
Same as above, but only include the extensions which are javascript variants.
|
| 158 |
+
|
| 159 |
+
## How to use it
|
| 160 |
+
|
| 161 |
+
Consumers should use the exported `extensions` or `jsVariants` object to determine which module should be loaded for a given extension. If a matching extension is found, consumers should do the following:
|
| 162 |
+
|
| 163 |
+
1. If the value is null, do nothing.
|
| 164 |
+
|
| 165 |
+
2. If the value is a string, try to require it.
|
| 166 |
+
|
| 167 |
+
3. If the value is an object, try to require the `module` property. If successful, the `register` property (a function) should be called with the module passed as the first argument.
|
| 168 |
+
|
| 169 |
+
4. If the value is an array, iterate over it, attempting step #2 or #3 until one of the attempts does not throw.
|
| 170 |
+
|
| 171 |
+
[require.extensions]: http://nodejs.org/api/globals.html#globals_require_extensions
|
| 172 |
+
|
| 173 |
+
[downloads-image]: http://img.shields.io/npm/dm/interpret.svg
|
| 174 |
+
[npm-url]: https://www.npmjs.com/package/interpret
|
| 175 |
+
[npm-image]: http://img.shields.io/npm/v/interpret.svg
|
| 176 |
+
|
| 177 |
+
[travis-url]: https://travis-ci.org/gulpjs/interpret
|
| 178 |
+
[travis-image]: http://img.shields.io/travis/gulpjs/interpret.svg?label=travis-ci
|
| 179 |
+
|
| 180 |
+
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/interpret
|
| 181 |
+
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/interpret.svg?label=appveyor
|
| 182 |
+
|
| 183 |
+
[coveralls-url]: https://coveralls.io/r/gulpjs/interpret
|
| 184 |
+
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/interpret/master.svg
|
| 185 |
+
|
| 186 |
+
[gitter-url]: https://gitter.im/gulpjs/gulp
|
| 187 |
+
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/interpret/index.js
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var path = require('path');
|
| 2 |
+
|
| 3 |
+
var mjsStub = path.join(__dirname, 'mjs-stub');
|
| 4 |
+
|
| 5 |
+
var extensions = {
|
| 6 |
+
'.babel.js': [
|
| 7 |
+
{
|
| 8 |
+
module: '@babel/register',
|
| 9 |
+
register: function(hook) {
|
| 10 |
+
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
|
| 11 |
+
// which only captures the final extension (.babel.js -> .js)
|
| 12 |
+
hook({ extensions: '.js' });
|
| 13 |
+
},
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
module: 'babel-register',
|
| 17 |
+
register: function(hook) {
|
| 18 |
+
hook({ extensions: '.js' });
|
| 19 |
+
},
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
module: 'babel-core/register',
|
| 23 |
+
register: function(hook) {
|
| 24 |
+
hook({ extensions: '.js' });
|
| 25 |
+
},
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
module: 'babel/register',
|
| 29 |
+
register: function(hook) {
|
| 30 |
+
hook({ extensions: '.js' });
|
| 31 |
+
},
|
| 32 |
+
},
|
| 33 |
+
],
|
| 34 |
+
'.babel.ts': [
|
| 35 |
+
{
|
| 36 |
+
module: '@babel/register',
|
| 37 |
+
register: function(hook) {
|
| 38 |
+
hook({ extensions: '.ts' });
|
| 39 |
+
},
|
| 40 |
+
},
|
| 41 |
+
],
|
| 42 |
+
'.buble.js': 'buble/register',
|
| 43 |
+
'.cirru': 'cirru-script/lib/register',
|
| 44 |
+
'.cjsx': 'node-cjsx/register',
|
| 45 |
+
'.co': 'coco',
|
| 46 |
+
'.coffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
| 47 |
+
'.coffee.md': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
| 48 |
+
'.csv': 'require-csv',
|
| 49 |
+
'.eg': 'earlgrey/register',
|
| 50 |
+
'.esm.js': {
|
| 51 |
+
module: 'esm',
|
| 52 |
+
register: function(hook) {
|
| 53 |
+
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
|
| 54 |
+
// which only captures the final extension (.babel.js -> .js)
|
| 55 |
+
var esmLoader = hook(module);
|
| 56 |
+
require.extensions['.js'] = esmLoader('module')._extensions['.js'];
|
| 57 |
+
},
|
| 58 |
+
},
|
| 59 |
+
'.iced': ['iced-coffee-script/register', 'iced-coffee-script'],
|
| 60 |
+
'.iced.md': 'iced-coffee-script/register',
|
| 61 |
+
'.ini': 'require-ini',
|
| 62 |
+
'.js': null,
|
| 63 |
+
'.json': null,
|
| 64 |
+
'.json5': 'json5/lib/require',
|
| 65 |
+
'.jsx': [
|
| 66 |
+
{
|
| 67 |
+
module: '@babel/register',
|
| 68 |
+
register: function(hook) {
|
| 69 |
+
hook({ extensions: '.jsx' });
|
| 70 |
+
},
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
module: 'babel-register',
|
| 74 |
+
register: function(hook) {
|
| 75 |
+
hook({ extensions: '.jsx' });
|
| 76 |
+
},
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
module: 'babel-core/register',
|
| 80 |
+
register: function(hook) {
|
| 81 |
+
hook({ extensions: '.jsx' });
|
| 82 |
+
},
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
module: 'babel/register',
|
| 86 |
+
register: function(hook) {
|
| 87 |
+
hook({ extensions: '.jsx' });
|
| 88 |
+
},
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
module: 'node-jsx',
|
| 92 |
+
register: function(hook) {
|
| 93 |
+
hook.install({ extension: '.jsx', harmony: true });
|
| 94 |
+
},
|
| 95 |
+
},
|
| 96 |
+
],
|
| 97 |
+
'.litcoffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
| 98 |
+
'.liticed': 'iced-coffee-script/register',
|
| 99 |
+
'.ls': ['livescript', 'LiveScript'],
|
| 100 |
+
'.mjs': mjsStub,
|
| 101 |
+
'.node': null,
|
| 102 |
+
'.toml': {
|
| 103 |
+
module: 'toml-require',
|
| 104 |
+
register: function(hook) {
|
| 105 |
+
hook.install();
|
| 106 |
+
},
|
| 107 |
+
},
|
| 108 |
+
'.ts': [
|
| 109 |
+
'ts-node/register',
|
| 110 |
+
'typescript-node/register',
|
| 111 |
+
'typescript-register',
|
| 112 |
+
'typescript-require',
|
| 113 |
+
'sucrase/register/ts',
|
| 114 |
+
{
|
| 115 |
+
module: '@babel/register',
|
| 116 |
+
register: function(hook) {
|
| 117 |
+
hook({ extensions: '.ts' });
|
| 118 |
+
},
|
| 119 |
+
},
|
| 120 |
+
],
|
| 121 |
+
'.tsx': [
|
| 122 |
+
'ts-node/register',
|
| 123 |
+
'typescript-node/register',
|
| 124 |
+
'sucrase/register',
|
| 125 |
+
{
|
| 126 |
+
module: '@babel/register',
|
| 127 |
+
register: function(hook) {
|
| 128 |
+
hook({ extensions: '.tsx' });
|
| 129 |
+
},
|
| 130 |
+
},
|
| 131 |
+
],
|
| 132 |
+
'.wisp': 'wisp/engine/node',
|
| 133 |
+
'.xml': 'require-xml',
|
| 134 |
+
'.yaml': 'require-yaml',
|
| 135 |
+
'.yml': 'require-yaml',
|
| 136 |
+
};
|
| 137 |
+
|
| 138 |
+
var jsVariantExtensions = [
|
| 139 |
+
'.js',
|
| 140 |
+
'.babel.js',
|
| 141 |
+
'.babel.ts',
|
| 142 |
+
'.buble.js',
|
| 143 |
+
'.cirru',
|
| 144 |
+
'.cjsx',
|
| 145 |
+
'.co',
|
| 146 |
+
'.coffee',
|
| 147 |
+
'.coffee.md',
|
| 148 |
+
'.eg',
|
| 149 |
+
'.esm.js',
|
| 150 |
+
'.iced',
|
| 151 |
+
'.iced.md',
|
| 152 |
+
'.jsx',
|
| 153 |
+
'.litcoffee',
|
| 154 |
+
'.liticed',
|
| 155 |
+
'.ls',
|
| 156 |
+
'.mjs',
|
| 157 |
+
'.ts',
|
| 158 |
+
'.tsx',
|
| 159 |
+
'.wisp',
|
| 160 |
+
];
|
| 161 |
+
|
| 162 |
+
module.exports = {
|
| 163 |
+
extensions: extensions,
|
| 164 |
+
jsVariants: jsVariantExtensions.reduce(function(result, ext) {
|
| 165 |
+
result[ext] = extensions[ext];
|
| 166 |
+
return result;
|
| 167 |
+
}, {}),
|
| 168 |
+
};
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/interpret/mjs-stub.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
require.extensions['.mjs'] = null;
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/ipaddr.js/README.md
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ipaddr.js — an IPv6 and IPv4 address manipulation library
|
| 2 |
+
|
| 3 |
+
[](https://github.com/whitequark/ipaddr.js/actions?query=workflow%3A%22CI+Tests%22)
|
| 4 |
+
|
| 5 |
+
ipaddr.js is a small (1.9K minified and gzipped) library for manipulating
|
| 6 |
+
IP addresses in JavaScript environments. It runs on both CommonJS runtimes
|
| 7 |
+
(e.g. [nodejs]) and in a web browser.
|
| 8 |
+
|
| 9 |
+
ipaddr.js allows you to verify and parse string representation of an IP
|
| 10 |
+
address, match it against a CIDR range or range list, determine if it falls
|
| 11 |
+
into some reserved ranges (examples include loopback and private ranges),
|
| 12 |
+
and convert between IPv4 and IPv4-mapped IPv6 addresses.
|
| 13 |
+
|
| 14 |
+
[nodejs]: http://nodejs.org
|
| 15 |
+
|
| 16 |
+
## Installation
|
| 17 |
+
|
| 18 |
+
`npm install ipaddr.js`
|
| 19 |
+
|
| 20 |
+
or
|
| 21 |
+
|
| 22 |
+
`bower install ipaddr.js`
|
| 23 |
+
|
| 24 |
+
## Older Node support
|
| 25 |
+
|
| 26 |
+
Use 2.x release for nodejs versions 10+.
|
| 27 |
+
Use the 1.x release for versions of nodejs older than 10.
|
| 28 |
+
|
| 29 |
+
## API
|
| 30 |
+
|
| 31 |
+
ipaddr.js defines one object in the global scope: `ipaddr`. In CommonJS,
|
| 32 |
+
it is exported from the module:
|
| 33 |
+
|
| 34 |
+
```js
|
| 35 |
+
const ipaddr = require('ipaddr.js');
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
The API consists of several global methods and two classes: ipaddr.IPv6 and ipaddr.IPv4.
|
| 39 |
+
|
| 40 |
+
### Global methods
|
| 41 |
+
|
| 42 |
+
There are four global methods defined: `ipaddr.isValid`, `ipaddr.isValidCIDR`,
|
| 43 |
+
`ipaddr.parse`, and `ipaddr.process`. All of them receive a string as a single
|
| 44 |
+
parameter.
|
| 45 |
+
|
| 46 |
+
The `ipaddr.isValid` method returns `true` if the address is a valid IPv4 or
|
| 47 |
+
IPv6 address, and `false` otherwise. It does not throw any exceptions.
|
| 48 |
+
|
| 49 |
+
The `ipaddr.isValidCIDR` method returns `true` if the address is a valid IPv4 or
|
| 50 |
+
IPv6 address in CIDR notation, and `false` otherwise. It does not throw any exceptions.
|
| 51 |
+
|
| 52 |
+
The `ipaddr.parse` method returns an object representing the IP address,
|
| 53 |
+
or throws an `Error` if the passed string is not a valid representation of an
|
| 54 |
+
IP address.
|
| 55 |
+
|
| 56 |
+
The `ipaddr.process` method works just like the `ipaddr.parse` one, but it
|
| 57 |
+
automatically converts IPv4-mapped IPv6 addresses to their IPv4 counterparts
|
| 58 |
+
before returning. It is useful when you have a Node.js instance listening
|
| 59 |
+
on an IPv6 socket, and the `net.ivp6.bindv6only` sysctl parameter (or its
|
| 60 |
+
equivalent on non-Linux OS) is set to 0. In this case, you can accept IPv4
|
| 61 |
+
connections on your IPv6-only socket, but the remote address will be mangled.
|
| 62 |
+
Use `ipaddr.process` method to automatically demangle it.
|
| 63 |
+
|
| 64 |
+
### Object representation
|
| 65 |
+
|
| 66 |
+
Parsing methods return an object which descends from `ipaddr.IPv6` or
|
| 67 |
+
`ipaddr.IPv4`. These objects share some properties, but most of them differ.
|
| 68 |
+
|
| 69 |
+
#### Shared properties
|
| 70 |
+
|
| 71 |
+
One can determine the type of address by calling `addr.kind()`. It will return
|
| 72 |
+
either `"ipv6"` or `"ipv4"`.
|
| 73 |
+
|
| 74 |
+
An address can be converted back to its string representation with `addr.toString()`.
|
| 75 |
+
Note that this method:
|
| 76 |
+
* does not return the original string used to create the object (in fact, there is
|
| 77 |
+
no way of getting that string)
|
| 78 |
+
* returns a compact representation (when it is applicable)
|
| 79 |
+
|
| 80 |
+
A `match(range, bits)` method can be used to check if the address falls into a
|
| 81 |
+
certain CIDR range. Note that an address can be (obviously) matched only against an address of the same type.
|
| 82 |
+
|
| 83 |
+
For example:
|
| 84 |
+
|
| 85 |
+
```js
|
| 86 |
+
const addr = ipaddr.parse('2001:db8:1234::1');
|
| 87 |
+
const range = ipaddr.parse('2001:db8::');
|
| 88 |
+
|
| 89 |
+
addr.match(range, 32); // => true
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
Alternatively, `match` can also be called as `match([range, bits])`. In this way, it can be used together with the `parseCIDR(string)` method, which parses an IP address together with a CIDR range.
|
| 93 |
+
|
| 94 |
+
For example:
|
| 95 |
+
|
| 96 |
+
```js
|
| 97 |
+
const addr = ipaddr.parse('2001:db8:1234::1');
|
| 98 |
+
|
| 99 |
+
addr.match(ipaddr.parseCIDR('2001:db8::/32')); // => true
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
A `range()` method returns one of predefined names for several special ranges defined by IP protocols. The exact names (and their respective CIDR ranges) can be looked up in the source: [IPv6 ranges] and [IPv4 ranges]. Some common ones include `"unicast"` (the default one) and `"reserved"`.
|
| 103 |
+
|
| 104 |
+
You can match against your own range list by using
|
| 105 |
+
`ipaddr.subnetMatch(address, rangeList, defaultName)` method. It can work with a mix of IPv6 or IPv4 addresses, and accepts a name-to-subnet map as the range list. For example:
|
| 106 |
+
|
| 107 |
+
```js
|
| 108 |
+
const rangeList = {
|
| 109 |
+
documentationOnly: [ ipaddr.parse('2001:db8::'), 32 ],
|
| 110 |
+
tunnelProviders: [
|
| 111 |
+
[ ipaddr.parse('2001:470::'), 32 ], // he.net
|
| 112 |
+
[ ipaddr.parse('2001:5c0::'), 32 ] // freenet6
|
| 113 |
+
]
|
| 114 |
+
};
|
| 115 |
+
ipaddr.subnetMatch(ipaddr.parse('2001:470:8:66::1'), rangeList, 'unknown'); // => "tunnelProviders"
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
The addresses can be converted to their byte representation with `toByteArray()`. (Actually, JavaScript mostly does not know about byte buffers. They are emulated with arrays of numbers, each in range of 0..255.)
|
| 119 |
+
|
| 120 |
+
```js
|
| 121 |
+
const bytes = ipaddr.parse('2a00:1450:8007::68').toByteArray(); // ipv6.google.com
|
| 122 |
+
bytes // => [42, 0x00, 0x14, 0x50, 0x80, 0x07, 0x00, <zeroes...>, 0x00, 0x68 ]
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
The `ipaddr.IPv4` and `ipaddr.IPv6` objects have some methods defined, too. All of them have the same interface for both protocols, and are similar to global methods.
|
| 126 |
+
|
| 127 |
+
`ipaddr.IPvX.isValid(string)` can be used to check if the string is a valid address for particular protocol, and `ipaddr.IPvX.parse(string)` is the error-throwing parser.
|
| 128 |
+
|
| 129 |
+
`ipaddr.IPvX.isValid(string)` uses the same format for parsing as the POSIX `inet_ntoa` function, which accepts unusual formats like `0xc0.168.1.1` or `0x10000000`. The function `ipaddr.IPv4.isValidFourPartDecimal(string)` validates the IPv4 address and also ensures that it is written in four-part decimal format.
|
| 130 |
+
|
| 131 |
+
[IPv6 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/lib/ipaddr.js#L530
|
| 132 |
+
[IPv4 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/lib/ipaddr.js#L182
|
| 133 |
+
|
| 134 |
+
#### IPv6 properties
|
| 135 |
+
|
| 136 |
+
Sometimes you will want to convert IPv6 not to a compact string representation (with the `::` substitution); the `toNormalizedString()` method will return an address where all zeroes are explicit.
|
| 137 |
+
|
| 138 |
+
For example:
|
| 139 |
+
|
| 140 |
+
```js
|
| 141 |
+
const addr = ipaddr.parse('2001:0db8::0001');
|
| 142 |
+
addr.toString(); // => '2001:db8::1'
|
| 143 |
+
addr.toNormalizedString(); // => '2001:db8:0:0:0:0:0:1'
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
The `isIPv4MappedAddress()` method will return `true` if this address is an IPv4-mapped
|
| 147 |
+
one, and `toIPv4Address()` will return an IPv4 object address.
|
| 148 |
+
|
| 149 |
+
To access the underlying binary representation of the address, use `addr.parts`.
|
| 150 |
+
|
| 151 |
+
```js
|
| 152 |
+
const addr = ipaddr.parse('2001:db8:10::1234:DEAD');
|
| 153 |
+
addr.parts // => [0x2001, 0xdb8, 0x10, 0, 0, 0, 0x1234, 0xdead]
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
A IPv6 zone index can be accessed via `addr.zoneId`:
|
| 157 |
+
|
| 158 |
+
```js
|
| 159 |
+
const addr = ipaddr.parse('2001:db8::%eth0');
|
| 160 |
+
addr.zoneId // => 'eth0'
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
#### IPv4 properties
|
| 164 |
+
|
| 165 |
+
`toIPv4MappedAddress()` will return a corresponding IPv4-mapped IPv6 address.
|
| 166 |
+
|
| 167 |
+
To access the underlying representation of the address, use `addr.octets`.
|
| 168 |
+
|
| 169 |
+
```js
|
| 170 |
+
const addr = ipaddr.parse('192.168.1.1');
|
| 171 |
+
addr.octets // => [192, 168, 1, 1]
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
`prefixLengthFromSubnetMask()` will return a CIDR prefix length for a valid IPv4 netmask or
|
| 175 |
+
null if the netmask is not valid.
|
| 176 |
+
|
| 177 |
+
```js
|
| 178 |
+
ipaddr.IPv4.parse('255.255.255.240').prefixLengthFromSubnetMask() == 28
|
| 179 |
+
ipaddr.IPv4.parse('255.192.164.0').prefixLengthFromSubnetMask() == null
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
`subnetMaskFromPrefixLength()` will return an IPv4 netmask for a valid CIDR prefix length.
|
| 183 |
+
|
| 184 |
+
```js
|
| 185 |
+
ipaddr.IPv4.subnetMaskFromPrefixLength(24) == '255.255.255.0'
|
| 186 |
+
ipaddr.IPv4.subnetMaskFromPrefixLength(29) == '255.255.255.248'
|
| 187 |
+
```
|
| 188 |
+
|
| 189 |
+
`broadcastAddressFromCIDR()` will return the broadcast address for a given IPv4 interface and netmask in CIDR notation.
|
| 190 |
+
```js
|
| 191 |
+
ipaddr.IPv4.broadcastAddressFromCIDR('172.0.0.1/24') == '172.0.0.255'
|
| 192 |
+
```
|
| 193 |
+
`networkAddressFromCIDR()` will return the network address for a given IPv4 interface and netmask in CIDR notation.
|
| 194 |
+
```js
|
| 195 |
+
ipaddr.IPv4.networkAddressFromCIDR('172.0.0.1/24') == '172.0.0.0'
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
#### Conversion
|
| 199 |
+
|
| 200 |
+
IPv4 and IPv6 can be converted bidirectionally to and from network byte order (MSB) byte arrays.
|
| 201 |
+
|
| 202 |
+
The `fromByteArray()` method will take an array and create an appropriate IPv4 or IPv6 object
|
| 203 |
+
if the input satisfies the requirements. For IPv4 it has to be an array of four 8-bit values,
|
| 204 |
+
while for IPv6 it has to be an array of sixteen 8-bit values.
|
| 205 |
+
|
| 206 |
+
For example:
|
| 207 |
+
```js
|
| 208 |
+
const addr = ipaddr.fromByteArray([0x7f, 0, 0, 1]);
|
| 209 |
+
addr.toString(); // => '127.0.0.1'
|
| 210 |
+
```
|
| 211 |
+
|
| 212 |
+
or
|
| 213 |
+
|
| 214 |
+
```js
|
| 215 |
+
const addr = ipaddr.fromByteArray([0x20, 1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1])
|
| 216 |
+
addr.toString(); // => '2001:db8::1'
|
| 217 |
+
```
|
| 218 |
+
|
| 219 |
+
Both objects also offer a `toByteArray()` method, which returns an array in network byte order (MSB).
|
| 220 |
+
|
| 221 |
+
For example:
|
| 222 |
+
```js
|
| 223 |
+
const addr = ipaddr.parse('127.0.0.1');
|
| 224 |
+
addr.toByteArray(); // => [0x7f, 0, 0, 1]
|
| 225 |
+
```
|
| 226 |
+
|
| 227 |
+
or
|
| 228 |
+
|
| 229 |
+
```js
|
| 230 |
+
const addr = ipaddr.parse('2001:db8::1');
|
| 231 |
+
addr.toByteArray(); // => [0x20, 1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
|
| 232 |
+
```
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/.nycrc
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"all": true,
|
| 3 |
+
"check-coverage": false,
|
| 4 |
+
"reporter": ["text-summary", "text", "html", "json"],
|
| 5 |
+
"exclude": [
|
| 6 |
+
"coverage",
|
| 7 |
+
"test"
|
| 8 |
+
]
|
| 9 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014 Dave Justice
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 6 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 7 |
+
the Software without restriction, including without limitation the rights to
|
| 8 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
| 9 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
| 10 |
+
subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
| 17 |
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
| 18 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
| 19 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 20 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/core.json
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"assert": true,
|
| 3 |
+
"node:assert": [">= 14.18 && < 15", ">= 16"],
|
| 4 |
+
"assert/strict": ">= 15",
|
| 5 |
+
"node:assert/strict": ">= 16",
|
| 6 |
+
"async_hooks": ">= 8",
|
| 7 |
+
"node:async_hooks": [">= 14.18 && < 15", ">= 16"],
|
| 8 |
+
"buffer_ieee754": ">= 0.5 && < 0.9.7",
|
| 9 |
+
"buffer": true,
|
| 10 |
+
"node:buffer": [">= 14.18 && < 15", ">= 16"],
|
| 11 |
+
"child_process": true,
|
| 12 |
+
"node:child_process": [">= 14.18 && < 15", ">= 16"],
|
| 13 |
+
"cluster": ">= 0.5",
|
| 14 |
+
"node:cluster": [">= 14.18 && < 15", ">= 16"],
|
| 15 |
+
"console": true,
|
| 16 |
+
"node:console": [">= 14.18 && < 15", ">= 16"],
|
| 17 |
+
"constants": true,
|
| 18 |
+
"node:constants": [">= 14.18 && < 15", ">= 16"],
|
| 19 |
+
"crypto": true,
|
| 20 |
+
"node:crypto": [">= 14.18 && < 15", ">= 16"],
|
| 21 |
+
"_debug_agent": ">= 1 && < 8",
|
| 22 |
+
"_debugger": "< 8",
|
| 23 |
+
"dgram": true,
|
| 24 |
+
"node:dgram": [">= 14.18 && < 15", ">= 16"],
|
| 25 |
+
"diagnostics_channel": [">= 14.17 && < 15", ">= 15.1"],
|
| 26 |
+
"node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
|
| 27 |
+
"dns": true,
|
| 28 |
+
"node:dns": [">= 14.18 && < 15", ">= 16"],
|
| 29 |
+
"dns/promises": ">= 15",
|
| 30 |
+
"node:dns/promises": ">= 16",
|
| 31 |
+
"domain": ">= 0.7.12",
|
| 32 |
+
"node:domain": [">= 14.18 && < 15", ">= 16"],
|
| 33 |
+
"events": true,
|
| 34 |
+
"node:events": [">= 14.18 && < 15", ">= 16"],
|
| 35 |
+
"freelist": "< 6",
|
| 36 |
+
"fs": true,
|
| 37 |
+
"node:fs": [">= 14.18 && < 15", ">= 16"],
|
| 38 |
+
"fs/promises": [">= 10 && < 10.1", ">= 14"],
|
| 39 |
+
"node:fs/promises": [">= 14.18 && < 15", ">= 16"],
|
| 40 |
+
"_http_agent": ">= 0.11.1",
|
| 41 |
+
"node:_http_agent": [">= 14.18 && < 15", ">= 16"],
|
| 42 |
+
"_http_client": ">= 0.11.1",
|
| 43 |
+
"node:_http_client": [">= 14.18 && < 15", ">= 16"],
|
| 44 |
+
"_http_common": ">= 0.11.1",
|
| 45 |
+
"node:_http_common": [">= 14.18 && < 15", ">= 16"],
|
| 46 |
+
"_http_incoming": ">= 0.11.1",
|
| 47 |
+
"node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
|
| 48 |
+
"_http_outgoing": ">= 0.11.1",
|
| 49 |
+
"node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
|
| 50 |
+
"_http_server": ">= 0.11.1",
|
| 51 |
+
"node:_http_server": [">= 14.18 && < 15", ">= 16"],
|
| 52 |
+
"http": true,
|
| 53 |
+
"node:http": [">= 14.18 && < 15", ">= 16"],
|
| 54 |
+
"http2": ">= 8.8",
|
| 55 |
+
"node:http2": [">= 14.18 && < 15", ">= 16"],
|
| 56 |
+
"https": true,
|
| 57 |
+
"node:https": [">= 14.18 && < 15", ">= 16"],
|
| 58 |
+
"inspector": ">= 8",
|
| 59 |
+
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
| 60 |
+
"inspector/promises": [">= 19"],
|
| 61 |
+
"node:inspector/promises": [">= 19"],
|
| 62 |
+
"_linklist": "< 8",
|
| 63 |
+
"module": true,
|
| 64 |
+
"node:module": [">= 14.18 && < 15", ">= 16"],
|
| 65 |
+
"net": true,
|
| 66 |
+
"node:net": [">= 14.18 && < 15", ">= 16"],
|
| 67 |
+
"node-inspect/lib/_inspect": ">= 7.6 && < 12",
|
| 68 |
+
"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
|
| 69 |
+
"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
|
| 70 |
+
"os": true,
|
| 71 |
+
"node:os": [">= 14.18 && < 15", ">= 16"],
|
| 72 |
+
"path": true,
|
| 73 |
+
"node:path": [">= 14.18 && < 15", ">= 16"],
|
| 74 |
+
"path/posix": ">= 15.3",
|
| 75 |
+
"node:path/posix": ">= 16",
|
| 76 |
+
"path/win32": ">= 15.3",
|
| 77 |
+
"node:path/win32": ">= 16",
|
| 78 |
+
"perf_hooks": ">= 8.5",
|
| 79 |
+
"node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
|
| 80 |
+
"process": ">= 1",
|
| 81 |
+
"node:process": [">= 14.18 && < 15", ">= 16"],
|
| 82 |
+
"punycode": ">= 0.5",
|
| 83 |
+
"node:punycode": [">= 14.18 && < 15", ">= 16"],
|
| 84 |
+
"querystring": true,
|
| 85 |
+
"node:querystring": [">= 14.18 && < 15", ">= 16"],
|
| 86 |
+
"readline": true,
|
| 87 |
+
"node:readline": [">= 14.18 && < 15", ">= 16"],
|
| 88 |
+
"readline/promises": ">= 17",
|
| 89 |
+
"node:readline/promises": ">= 17",
|
| 90 |
+
"repl": true,
|
| 91 |
+
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
| 92 |
+
"node:sea": [">= 20.12 && < 21", ">= 21.7"],
|
| 93 |
+
"smalloc": ">= 0.11.5 && < 3",
|
| 94 |
+
"node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
|
| 95 |
+
"_stream_duplex": ">= 0.9.4",
|
| 96 |
+
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
| 97 |
+
"_stream_transform": ">= 0.9.4",
|
| 98 |
+
"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
|
| 99 |
+
"_stream_wrap": ">= 1.4.1",
|
| 100 |
+
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
|
| 101 |
+
"_stream_passthrough": ">= 0.9.4",
|
| 102 |
+
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
|
| 103 |
+
"_stream_readable": ">= 0.9.4",
|
| 104 |
+
"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
|
| 105 |
+
"_stream_writable": ">= 0.9.4",
|
| 106 |
+
"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
|
| 107 |
+
"stream": true,
|
| 108 |
+
"node:stream": [">= 14.18 && < 15", ">= 16"],
|
| 109 |
+
"stream/consumers": ">= 16.7",
|
| 110 |
+
"node:stream/consumers": ">= 16.7",
|
| 111 |
+
"stream/promises": ">= 15",
|
| 112 |
+
"node:stream/promises": ">= 16",
|
| 113 |
+
"stream/web": ">= 16.5",
|
| 114 |
+
"node:stream/web": ">= 16.5",
|
| 115 |
+
"string_decoder": true,
|
| 116 |
+
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
| 117 |
+
"sys": [">= 0.4 && < 0.7", ">= 0.8"],
|
| 118 |
+
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
| 119 |
+
"test/reporters": ">= 19.9 && < 20.2",
|
| 120 |
+
"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
|
| 121 |
+
"test/mock_loader": ">= 22.3 && < 22.7",
|
| 122 |
+
"node:test/mock_loader": ">= 22.3 && < 22.7",
|
| 123 |
+
"node:test": [">= 16.17 && < 17", ">= 18"],
|
| 124 |
+
"timers": true,
|
| 125 |
+
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
| 126 |
+
"timers/promises": ">= 15",
|
| 127 |
+
"node:timers/promises": ">= 16",
|
| 128 |
+
"_tls_common": ">= 0.11.13",
|
| 129 |
+
"node:_tls_common": [">= 14.18 && < 15", ">= 16"],
|
| 130 |
+
"_tls_legacy": ">= 0.11.3 && < 10",
|
| 131 |
+
"_tls_wrap": ">= 0.11.3",
|
| 132 |
+
"node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
|
| 133 |
+
"tls": true,
|
| 134 |
+
"node:tls": [">= 14.18 && < 15", ">= 16"],
|
| 135 |
+
"trace_events": ">= 10",
|
| 136 |
+
"node:trace_events": [">= 14.18 && < 15", ">= 16"],
|
| 137 |
+
"tty": true,
|
| 138 |
+
"node:tty": [">= 14.18 && < 15", ">= 16"],
|
| 139 |
+
"url": true,
|
| 140 |
+
"node:url": [">= 14.18 && < 15", ">= 16"],
|
| 141 |
+
"util": true,
|
| 142 |
+
"node:util": [">= 14.18 && < 15", ">= 16"],
|
| 143 |
+
"util/types": ">= 15.3",
|
| 144 |
+
"node:util/types": ">= 16",
|
| 145 |
+
"v8/tools/arguments": ">= 10 && < 12",
|
| 146 |
+
"v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
| 147 |
+
"v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
| 148 |
+
"v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
| 149 |
+
"v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
| 150 |
+
"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
| 151 |
+
"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
| 152 |
+
"v8": ">= 1",
|
| 153 |
+
"node:v8": [">= 14.18 && < 15", ">= 16"],
|
| 154 |
+
"vm": true,
|
| 155 |
+
"node:vm": [">= 14.18 && < 15", ">= 16"],
|
| 156 |
+
"wasi": [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
|
| 157 |
+
"node:wasi": [">= 18.17 && < 19", ">= 20"],
|
| 158 |
+
"worker_threads": ">= 11.7",
|
| 159 |
+
"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
|
| 160 |
+
"zlib": ">= 0.5",
|
| 161 |
+
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
| 162 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/index.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var hasOwn = require('hasown');
|
| 4 |
+
|
| 5 |
+
function specifierIncluded(current, specifier) {
|
| 6 |
+
var nodeParts = current.split('.');
|
| 7 |
+
var parts = specifier.split(' ');
|
| 8 |
+
var op = parts.length > 1 ? parts[0] : '=';
|
| 9 |
+
var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.');
|
| 10 |
+
|
| 11 |
+
for (var i = 0; i < 3; ++i) {
|
| 12 |
+
var cur = parseInt(nodeParts[i] || 0, 10);
|
| 13 |
+
var ver = parseInt(versionParts[i] || 0, 10);
|
| 14 |
+
if (cur === ver) {
|
| 15 |
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
| 16 |
+
}
|
| 17 |
+
if (op === '<') {
|
| 18 |
+
return cur < ver;
|
| 19 |
+
}
|
| 20 |
+
if (op === '>=') {
|
| 21 |
+
return cur >= ver;
|
| 22 |
+
}
|
| 23 |
+
return false;
|
| 24 |
+
}
|
| 25 |
+
return op === '>=';
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
function matchesRange(current, range) {
|
| 29 |
+
var specifiers = range.split(/ ?&& ?/);
|
| 30 |
+
if (specifiers.length === 0) {
|
| 31 |
+
return false;
|
| 32 |
+
}
|
| 33 |
+
for (var i = 0; i < specifiers.length; ++i) {
|
| 34 |
+
if (!specifierIncluded(current, specifiers[i])) {
|
| 35 |
+
return false;
|
| 36 |
+
}
|
| 37 |
+
}
|
| 38 |
+
return true;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
function versionIncluded(nodeVersion, specifierValue) {
|
| 42 |
+
if (typeof specifierValue === 'boolean') {
|
| 43 |
+
return specifierValue;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
var current = typeof nodeVersion === 'undefined'
|
| 47 |
+
? process.versions && process.versions.node
|
| 48 |
+
: nodeVersion;
|
| 49 |
+
|
| 50 |
+
if (typeof current !== 'string') {
|
| 51 |
+
throw new TypeError(typeof nodeVersion === 'undefined' ? 'Unable to determine current node version' : 'If provided, a valid node version is required');
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
if (specifierValue && typeof specifierValue === 'object') {
|
| 55 |
+
for (var i = 0; i < specifierValue.length; ++i) {
|
| 56 |
+
if (matchesRange(current, specifierValue[i])) {
|
| 57 |
+
return true;
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
return false;
|
| 61 |
+
}
|
| 62 |
+
return matchesRange(current, specifierValue);
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
var data = require('./core.json');
|
| 66 |
+
|
| 67 |
+
module.exports = function isCore(x, nodeVersion) {
|
| 68 |
+
return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
|
| 69 |
+
};
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-core-module/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-core-module",
|
| 3 |
+
"version": "2.16.1",
|
| 4 |
+
"description": "Is this specifier a node.js core module?",
|
| 5 |
+
"main": "index.js",
|
| 6 |
+
"sideEffects": false,
|
| 7 |
+
"exports": {
|
| 8 |
+
".": "./index.js",
|
| 9 |
+
"./package.json": "./package.json"
|
| 10 |
+
},
|
| 11 |
+
"scripts": {
|
| 12 |
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
| 13 |
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
| 14 |
+
"prepublishOnly": "safe-publish-latest",
|
| 15 |
+
"lint": "eslint .",
|
| 16 |
+
"pretest": "npm run lint",
|
| 17 |
+
"tests-only": "nyc tape 'test/**/*.js'",
|
| 18 |
+
"test": "npm run tests-only",
|
| 19 |
+
"posttest": "npx npm@'>=10.2' audit --production",
|
| 20 |
+
"version": "auto-changelog && git add CHANGELOG.md",
|
| 21 |
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
| 22 |
+
},
|
| 23 |
+
"repository": {
|
| 24 |
+
"type": "git",
|
| 25 |
+
"url": "git+https://github.com/inspect-js/is-core-module.git"
|
| 26 |
+
},
|
| 27 |
+
"keywords": [
|
| 28 |
+
"core",
|
| 29 |
+
"modules",
|
| 30 |
+
"module",
|
| 31 |
+
"npm",
|
| 32 |
+
"node",
|
| 33 |
+
"dependencies"
|
| 34 |
+
],
|
| 35 |
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
| 36 |
+
"funding": {
|
| 37 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 38 |
+
},
|
| 39 |
+
"license": "MIT",
|
| 40 |
+
"bugs": {
|
| 41 |
+
"url": "https://github.com/inspect-js/is-core-module/issues"
|
| 42 |
+
},
|
| 43 |
+
"homepage": "https://github.com/inspect-js/is-core-module",
|
| 44 |
+
"dependencies": {
|
| 45 |
+
"hasown": "^2.0.2"
|
| 46 |
+
},
|
| 47 |
+
"devDependencies": {
|
| 48 |
+
"@ljharb/eslint-config": "^21.1.1",
|
| 49 |
+
"auto-changelog": "^2.5.0",
|
| 50 |
+
"encoding": "^0.1.13",
|
| 51 |
+
"eslint": "=8.8.0",
|
| 52 |
+
"in-publish": "^2.0.1",
|
| 53 |
+
"mock-property": "^1.1.0",
|
| 54 |
+
"npmignore": "^0.3.1",
|
| 55 |
+
"nyc": "^10.3.2",
|
| 56 |
+
"safe-publish-latest": "^2.0.0",
|
| 57 |
+
"semver": "^6.3.1",
|
| 58 |
+
"tape": "^5.9.0"
|
| 59 |
+
},
|
| 60 |
+
"auto-changelog": {
|
| 61 |
+
"output": "CHANGELOG.md",
|
| 62 |
+
"template": "keepachangelog",
|
| 63 |
+
"unreleased": false,
|
| 64 |
+
"commitLimit": false,
|
| 65 |
+
"backfillLimit": false,
|
| 66 |
+
"hideCredit": true
|
| 67 |
+
},
|
| 68 |
+
"publishConfig": {
|
| 69 |
+
"ignore": [
|
| 70 |
+
".github"
|
| 71 |
+
]
|
| 72 |
+
},
|
| 73 |
+
"engines": {
|
| 74 |
+
"node": ">= 0.4"
|
| 75 |
+
}
|
| 76 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-extglob/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-2016, Jon Schlinkert
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in
|
| 13 |
+
all copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 21 |
+
THE SOFTWARE.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-extglob/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-extglob [](https://www.npmjs.com/package/is-extglob) [](https://npmjs.org/package/is-extglob) [](https://travis-ci.org/jonschlinkert/is-extglob)
|
| 2 |
+
|
| 3 |
+
> Returns true if a string has an extglob.
|
| 4 |
+
|
| 5 |
+
## Install
|
| 6 |
+
|
| 7 |
+
Install with [npm](https://www.npmjs.com/):
|
| 8 |
+
|
| 9 |
+
```sh
|
| 10 |
+
$ npm install --save is-extglob
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
## Usage
|
| 14 |
+
|
| 15 |
+
```js
|
| 16 |
+
var isExtglob = require('is-extglob');
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
**True**
|
| 20 |
+
|
| 21 |
+
```js
|
| 22 |
+
isExtglob('?(abc)');
|
| 23 |
+
isExtglob('@(abc)');
|
| 24 |
+
isExtglob('!(abc)');
|
| 25 |
+
isExtglob('*(abc)');
|
| 26 |
+
isExtglob('+(abc)');
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
**False**
|
| 30 |
+
|
| 31 |
+
Escaped extglobs:
|
| 32 |
+
|
| 33 |
+
```js
|
| 34 |
+
isExtglob('\\?(abc)');
|
| 35 |
+
isExtglob('\\@(abc)');
|
| 36 |
+
isExtglob('\\!(abc)');
|
| 37 |
+
isExtglob('\\*(abc)');
|
| 38 |
+
isExtglob('\\+(abc)');
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
Everything else...
|
| 42 |
+
|
| 43 |
+
```js
|
| 44 |
+
isExtglob('foo.js');
|
| 45 |
+
isExtglob('!foo.js');
|
| 46 |
+
isExtglob('*.js');
|
| 47 |
+
isExtglob('**/abc.js');
|
| 48 |
+
isExtglob('abc/*.js');
|
| 49 |
+
isExtglob('abc/(aaa|bbb).js');
|
| 50 |
+
isExtglob('abc/[a-z].js');
|
| 51 |
+
isExtglob('abc/{a,b}.js');
|
| 52 |
+
isExtglob('abc/?.js');
|
| 53 |
+
isExtglob('abc.js');
|
| 54 |
+
isExtglob('abc/def/ghi.js');
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## History
|
| 58 |
+
|
| 59 |
+
**v2.0**
|
| 60 |
+
|
| 61 |
+
Adds support for escaping. Escaped exglobs no longer return true.
|
| 62 |
+
|
| 63 |
+
## About
|
| 64 |
+
|
| 65 |
+
### Related projects
|
| 66 |
+
|
| 67 |
+
* [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob "Returns `true` if an array has a glob pattern.")
|
| 68 |
+
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet")
|
| 69 |
+
* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/jonschlinkert/micromatch "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.")
|
| 70 |
+
|
| 71 |
+
### Contributing
|
| 72 |
+
|
| 73 |
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
| 74 |
+
|
| 75 |
+
### Building docs
|
| 76 |
+
|
| 77 |
+
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
|
| 78 |
+
|
| 79 |
+
To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
|
| 80 |
+
|
| 81 |
+
```sh
|
| 82 |
+
$ npm install -g verb verb-generate-readme && verb
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
### Running tests
|
| 86 |
+
|
| 87 |
+
Install dev dependencies:
|
| 88 |
+
|
| 89 |
+
```sh
|
| 90 |
+
$ npm install -d && npm test
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
### Author
|
| 94 |
+
|
| 95 |
+
**Jon Schlinkert**
|
| 96 |
+
|
| 97 |
+
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
| 98 |
+
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
| 99 |
+
|
| 100 |
+
### License
|
| 101 |
+
|
| 102 |
+
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
|
| 103 |
+
Released under the [MIT license](https://github.com/jonschlinkert/is-extglob/blob/master/LICENSE).
|
| 104 |
+
|
| 105 |
+
***
|
| 106 |
+
|
| 107 |
+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 12, 2016._
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-extglob/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!
|
| 2 |
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
| 3 |
+
*
|
| 4 |
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
| 5 |
+
* Licensed under the MIT License.
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
module.exports = function isExtglob(str) {
|
| 9 |
+
if (typeof str !== 'string' || str === '') {
|
| 10 |
+
return false;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
var match;
|
| 14 |
+
while ((match = /(\\).|([@?!+*]\(.*\))/g.exec(str))) {
|
| 15 |
+
if (match[2]) return true;
|
| 16 |
+
str = str.slice(match.index + match[0].length);
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
return false;
|
| 20 |
+
};
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-extglob/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-extglob",
|
| 3 |
+
"description": "Returns true if a string has an extglob.",
|
| 4 |
+
"version": "2.1.1",
|
| 5 |
+
"homepage": "https://github.com/jonschlinkert/is-extglob",
|
| 6 |
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
| 7 |
+
"repository": "jonschlinkert/is-extglob",
|
| 8 |
+
"bugs": {
|
| 9 |
+
"url": "https://github.com/jonschlinkert/is-extglob/issues"
|
| 10 |
+
},
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"files": [
|
| 13 |
+
"index.js"
|
| 14 |
+
],
|
| 15 |
+
"main": "index.js",
|
| 16 |
+
"engines": {
|
| 17 |
+
"node": ">=0.10.0"
|
| 18 |
+
},
|
| 19 |
+
"scripts": {
|
| 20 |
+
"test": "mocha"
|
| 21 |
+
},
|
| 22 |
+
"devDependencies": {
|
| 23 |
+
"gulp-format-md": "^0.1.10",
|
| 24 |
+
"mocha": "^3.0.2"
|
| 25 |
+
},
|
| 26 |
+
"keywords": [
|
| 27 |
+
"bash",
|
| 28 |
+
"braces",
|
| 29 |
+
"check",
|
| 30 |
+
"exec",
|
| 31 |
+
"expression",
|
| 32 |
+
"extglob",
|
| 33 |
+
"glob",
|
| 34 |
+
"globbing",
|
| 35 |
+
"globstar",
|
| 36 |
+
"is",
|
| 37 |
+
"match",
|
| 38 |
+
"matches",
|
| 39 |
+
"pattern",
|
| 40 |
+
"regex",
|
| 41 |
+
"regular",
|
| 42 |
+
"string",
|
| 43 |
+
"test"
|
| 44 |
+
],
|
| 45 |
+
"verb": {
|
| 46 |
+
"toc": false,
|
| 47 |
+
"layout": "default",
|
| 48 |
+
"tasks": [
|
| 49 |
+
"readme"
|
| 50 |
+
],
|
| 51 |
+
"plugins": [
|
| 52 |
+
"gulp-format-md"
|
| 53 |
+
],
|
| 54 |
+
"related": {
|
| 55 |
+
"list": [
|
| 56 |
+
"has-glob",
|
| 57 |
+
"is-glob",
|
| 58 |
+
"micromatch"
|
| 59 |
+
]
|
| 60 |
+
},
|
| 61 |
+
"reflinks": [
|
| 62 |
+
"verb",
|
| 63 |
+
"verb-generate-readme"
|
| 64 |
+
],
|
| 65 |
+
"lint": {
|
| 66 |
+
"reflinks": true
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms).
|
| 3 |
+
|
| 4 |
+
@param codePoint - The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
| 5 |
+
|
| 6 |
+
@example
|
| 7 |
+
```
|
| 8 |
+
import isFullwidthCodePoint from 'is-fullwidth-code-point';
|
| 9 |
+
|
| 10 |
+
isFullwidthCodePoint('谢'.codePointAt(0));
|
| 11 |
+
//=> true
|
| 12 |
+
|
| 13 |
+
isFullwidthCodePoint('a'.codePointAt(0));
|
| 14 |
+
//=> false
|
| 15 |
+
```
|
| 16 |
+
*/
|
| 17 |
+
export default function isFullwidthCodePoint(codePoint: number): boolean;
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* eslint-disable yoda */
|
| 2 |
+
'use strict';
|
| 3 |
+
|
| 4 |
+
const isFullwidthCodePoint = codePoint => {
|
| 5 |
+
if (Number.isNaN(codePoint)) {
|
| 6 |
+
return false;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
// Code points are derived from:
|
| 10 |
+
// http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
|
| 11 |
+
if (
|
| 12 |
+
codePoint >= 0x1100 && (
|
| 13 |
+
codePoint <= 0x115F || // Hangul Jamo
|
| 14 |
+
codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
|
| 15 |
+
codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
|
| 16 |
+
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
| 17 |
+
(0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
|
| 18 |
+
// Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
| 19 |
+
(0x3250 <= codePoint && codePoint <= 0x4DBF) ||
|
| 20 |
+
// CJK Unified Ideographs .. Yi Radicals
|
| 21 |
+
(0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
|
| 22 |
+
// Hangul Jamo Extended-A
|
| 23 |
+
(0xA960 <= codePoint && codePoint <= 0xA97C) ||
|
| 24 |
+
// Hangul Syllables
|
| 25 |
+
(0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
|
| 26 |
+
// CJK Compatibility Ideographs
|
| 27 |
+
(0xF900 <= codePoint && codePoint <= 0xFAFF) ||
|
| 28 |
+
// Vertical Forms
|
| 29 |
+
(0xFE10 <= codePoint && codePoint <= 0xFE19) ||
|
| 30 |
+
// CJK Compatibility Forms .. Small Form Variants
|
| 31 |
+
(0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
|
| 32 |
+
// Halfwidth and Fullwidth Forms
|
| 33 |
+
(0xFF01 <= codePoint && codePoint <= 0xFF60) ||
|
| 34 |
+
(0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
|
| 35 |
+
// Kana Supplement
|
| 36 |
+
(0x1B000 <= codePoint && codePoint <= 0x1B001) ||
|
| 37 |
+
// Enclosed Ideographic Supplement
|
| 38 |
+
(0x1F200 <= codePoint && codePoint <= 0x1F251) ||
|
| 39 |
+
// CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
| 40 |
+
(0x20000 <= codePoint && codePoint <= 0x3FFFD)
|
| 41 |
+
)
|
| 42 |
+
) {
|
| 43 |
+
return true;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
return false;
|
| 47 |
+
};
|
| 48 |
+
|
| 49 |
+
module.exports = isFullwidthCodePoint;
|
| 50 |
+
module.exports.default = isFullwidthCodePoint;
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/license
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-fullwidth-code-point",
|
| 3 |
+
"version": "3.0.0",
|
| 4 |
+
"description": "Check if the character represented by a given Unicode code point is fullwidth",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "sindresorhus/is-fullwidth-code-point",
|
| 7 |
+
"author": {
|
| 8 |
+
"name": "Sindre Sorhus",
|
| 9 |
+
"email": "sindresorhus@gmail.com",
|
| 10 |
+
"url": "sindresorhus.com"
|
| 11 |
+
},
|
| 12 |
+
"engines": {
|
| 13 |
+
"node": ">=8"
|
| 14 |
+
},
|
| 15 |
+
"scripts": {
|
| 16 |
+
"test": "xo && ava && tsd-check"
|
| 17 |
+
},
|
| 18 |
+
"files": [
|
| 19 |
+
"index.js",
|
| 20 |
+
"index.d.ts"
|
| 21 |
+
],
|
| 22 |
+
"keywords": [
|
| 23 |
+
"fullwidth",
|
| 24 |
+
"full-width",
|
| 25 |
+
"full",
|
| 26 |
+
"width",
|
| 27 |
+
"unicode",
|
| 28 |
+
"character",
|
| 29 |
+
"string",
|
| 30 |
+
"codepoint",
|
| 31 |
+
"code",
|
| 32 |
+
"point",
|
| 33 |
+
"is",
|
| 34 |
+
"detect",
|
| 35 |
+
"check"
|
| 36 |
+
],
|
| 37 |
+
"devDependencies": {
|
| 38 |
+
"ava": "^1.3.1",
|
| 39 |
+
"tsd-check": "^0.5.0",
|
| 40 |
+
"xo": "^0.24.0"
|
| 41 |
+
}
|
| 42 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-fullwidth-code-point/readme.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-fullwidth-code-point [](https://travis-ci.org/sindresorhus/is-fullwidth-code-point)
|
| 2 |
+
|
| 3 |
+
> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
## Install
|
| 7 |
+
|
| 8 |
+
```
|
| 9 |
+
$ npm install is-fullwidth-code-point
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
## Usage
|
| 14 |
+
|
| 15 |
+
```js
|
| 16 |
+
const isFullwidthCodePoint = require('is-fullwidth-code-point');
|
| 17 |
+
|
| 18 |
+
isFullwidthCodePoint('谢'.codePointAt(0));
|
| 19 |
+
//=> true
|
| 20 |
+
|
| 21 |
+
isFullwidthCodePoint('a'.codePointAt(0));
|
| 22 |
+
//=> false
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
## API
|
| 27 |
+
|
| 28 |
+
### isFullwidthCodePoint(codePoint)
|
| 29 |
+
|
| 30 |
+
#### codePoint
|
| 31 |
+
|
| 32 |
+
Type: `number`
|
| 33 |
+
|
| 34 |
+
The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
## License
|
| 38 |
+
|
| 39 |
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-glob/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-2017, Jon Schlinkert.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in
|
| 13 |
+
all copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 21 |
+
THE SOFTWARE.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-glob/README.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-glob [](https://www.npmjs.com/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://github.com/micromatch/is-glob/actions)
|
| 2 |
+
|
| 3 |
+
> Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.
|
| 4 |
+
|
| 5 |
+
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Install with [npm](https://www.npmjs.com/):
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
$ npm install --save is-glob
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
You might also be interested in [is-valid-glob](https://github.com/jonschlinkert/is-valid-glob) and [has-glob](https://github.com/jonschlinkert/has-glob).
|
| 16 |
+
|
| 17 |
+
## Usage
|
| 18 |
+
|
| 19 |
+
```js
|
| 20 |
+
var isGlob = require('is-glob');
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
### Default behavior
|
| 24 |
+
|
| 25 |
+
**True**
|
| 26 |
+
|
| 27 |
+
Patterns that have glob characters or regex patterns will return `true`:
|
| 28 |
+
|
| 29 |
+
```js
|
| 30 |
+
isGlob('!foo.js');
|
| 31 |
+
isGlob('*.js');
|
| 32 |
+
isGlob('**/abc.js');
|
| 33 |
+
isGlob('abc/*.js');
|
| 34 |
+
isGlob('abc/(aaa|bbb).js');
|
| 35 |
+
isGlob('abc/[a-z].js');
|
| 36 |
+
isGlob('abc/{a,b}.js');
|
| 37 |
+
//=> true
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Extglobs
|
| 41 |
+
|
| 42 |
+
```js
|
| 43 |
+
isGlob('abc/@(a).js');
|
| 44 |
+
isGlob('abc/!(a).js');
|
| 45 |
+
isGlob('abc/+(a).js');
|
| 46 |
+
isGlob('abc/*(a).js');
|
| 47 |
+
isGlob('abc/?(a).js');
|
| 48 |
+
//=> true
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
**False**
|
| 52 |
+
|
| 53 |
+
Escaped globs or extglobs return `false`:
|
| 54 |
+
|
| 55 |
+
```js
|
| 56 |
+
isGlob('abc/\\@(a).js');
|
| 57 |
+
isGlob('abc/\\!(a).js');
|
| 58 |
+
isGlob('abc/\\+(a).js');
|
| 59 |
+
isGlob('abc/\\*(a).js');
|
| 60 |
+
isGlob('abc/\\?(a).js');
|
| 61 |
+
isGlob('\\!foo.js');
|
| 62 |
+
isGlob('\\*.js');
|
| 63 |
+
isGlob('\\*\\*/abc.js');
|
| 64 |
+
isGlob('abc/\\*.js');
|
| 65 |
+
isGlob('abc/\\(aaa|bbb).js');
|
| 66 |
+
isGlob('abc/\\[a-z].js');
|
| 67 |
+
isGlob('abc/\\{a,b}.js');
|
| 68 |
+
//=> false
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
Patterns that do not have glob patterns return `false`:
|
| 72 |
+
|
| 73 |
+
```js
|
| 74 |
+
isGlob('abc.js');
|
| 75 |
+
isGlob('abc/def/ghi.js');
|
| 76 |
+
isGlob('foo.js');
|
| 77 |
+
isGlob('abc/@.js');
|
| 78 |
+
isGlob('abc/+.js');
|
| 79 |
+
isGlob('abc/?.js');
|
| 80 |
+
isGlob();
|
| 81 |
+
isGlob(null);
|
| 82 |
+
//=> false
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
Arrays are also `false` (If you want to check if an array has a glob pattern, use [has-glob](https://github.com/jonschlinkert/has-glob)):
|
| 86 |
+
|
| 87 |
+
```js
|
| 88 |
+
isGlob(['**/*.js']);
|
| 89 |
+
isGlob(['foo.js']);
|
| 90 |
+
//=> false
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
### Option strict
|
| 94 |
+
|
| 95 |
+
When `options.strict === false` the behavior is less strict in determining if a pattern is a glob. Meaning that
|
| 96 |
+
some patterns that would return `false` may return `true`. This is done so that matching libraries like [micromatch](https://github.com/micromatch/micromatch) have a chance at determining if the pattern is a glob or not.
|
| 97 |
+
|
| 98 |
+
**True**
|
| 99 |
+
|
| 100 |
+
Patterns that have glob characters or regex patterns will return `true`:
|
| 101 |
+
|
| 102 |
+
```js
|
| 103 |
+
isGlob('!foo.js', {strict: false});
|
| 104 |
+
isGlob('*.js', {strict: false});
|
| 105 |
+
isGlob('**/abc.js', {strict: false});
|
| 106 |
+
isGlob('abc/*.js', {strict: false});
|
| 107 |
+
isGlob('abc/(aaa|bbb).js', {strict: false});
|
| 108 |
+
isGlob('abc/[a-z].js', {strict: false});
|
| 109 |
+
isGlob('abc/{a,b}.js', {strict: false});
|
| 110 |
+
//=> true
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
Extglobs
|
| 114 |
+
|
| 115 |
+
```js
|
| 116 |
+
isGlob('abc/@(a).js', {strict: false});
|
| 117 |
+
isGlob('abc/!(a).js', {strict: false});
|
| 118 |
+
isGlob('abc/+(a).js', {strict: false});
|
| 119 |
+
isGlob('abc/*(a).js', {strict: false});
|
| 120 |
+
isGlob('abc/?(a).js', {strict: false});
|
| 121 |
+
//=> true
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
**False**
|
| 125 |
+
|
| 126 |
+
Escaped globs or extglobs return `false`:
|
| 127 |
+
|
| 128 |
+
```js
|
| 129 |
+
isGlob('\\!foo.js', {strict: false});
|
| 130 |
+
isGlob('\\*.js', {strict: false});
|
| 131 |
+
isGlob('\\*\\*/abc.js', {strict: false});
|
| 132 |
+
isGlob('abc/\\*.js', {strict: false});
|
| 133 |
+
isGlob('abc/\\(aaa|bbb).js', {strict: false});
|
| 134 |
+
isGlob('abc/\\[a-z].js', {strict: false});
|
| 135 |
+
isGlob('abc/\\{a,b}.js', {strict: false});
|
| 136 |
+
//=> false
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
## About
|
| 140 |
+
|
| 141 |
+
<details>
|
| 142 |
+
<summary><strong>Contributing</strong></summary>
|
| 143 |
+
|
| 144 |
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
| 145 |
+
|
| 146 |
+
</details>
|
| 147 |
+
|
| 148 |
+
<details>
|
| 149 |
+
<summary><strong>Running Tests</strong></summary>
|
| 150 |
+
|
| 151 |
+
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
| 152 |
+
|
| 153 |
+
```sh
|
| 154 |
+
$ npm install && npm test
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
</details>
|
| 158 |
+
|
| 159 |
+
<details>
|
| 160 |
+
<summary><strong>Building docs</strong></summary>
|
| 161 |
+
|
| 162 |
+
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
| 163 |
+
|
| 164 |
+
To generate the readme, run the following command:
|
| 165 |
+
|
| 166 |
+
```sh
|
| 167 |
+
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
</details>
|
| 171 |
+
|
| 172 |
+
### Related projects
|
| 173 |
+
|
| 174 |
+
You might also be interested in these projects:
|
| 175 |
+
|
| 176 |
+
* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble "Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit")
|
| 177 |
+
* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base "Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks")
|
| 178 |
+
* [update](https://www.npmjs.com/package/update): Be scalable! Update is a new, open source developer framework and CLI for automating updates… [more](https://github.com/update/update) | [homepage](https://github.com/update/update "Be scalable! Update is a new, open source developer framework and CLI for automating updates of any kind in code projects.")
|
| 179 |
+
* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb "Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.")
|
| 180 |
+
|
| 181 |
+
### Contributors
|
| 182 |
+
|
| 183 |
+
| **Commits** | **Contributor** |
|
| 184 |
+
| --- | --- |
|
| 185 |
+
| 47 | [jonschlinkert](https://github.com/jonschlinkert) |
|
| 186 |
+
| 5 | [doowb](https://github.com/doowb) |
|
| 187 |
+
| 1 | [phated](https://github.com/phated) |
|
| 188 |
+
| 1 | [danhper](https://github.com/danhper) |
|
| 189 |
+
| 1 | [paulmillr](https://github.com/paulmillr) |
|
| 190 |
+
|
| 191 |
+
### Author
|
| 192 |
+
|
| 193 |
+
**Jon Schlinkert**
|
| 194 |
+
|
| 195 |
+
* [GitHub Profile](https://github.com/jonschlinkert)
|
| 196 |
+
* [Twitter Profile](https://twitter.com/jonschlinkert)
|
| 197 |
+
* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
|
| 198 |
+
|
| 199 |
+
### License
|
| 200 |
+
|
| 201 |
+
Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).
|
| 202 |
+
Released under the [MIT License](LICENSE).
|
| 203 |
+
|
| 204 |
+
***
|
| 205 |
+
|
| 206 |
+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 27, 2019._
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-glob/index.js
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!
|
| 2 |
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
| 3 |
+
*
|
| 4 |
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
| 5 |
+
* Released under the MIT License.
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
var isExtglob = require('is-extglob');
|
| 9 |
+
var chars = { '{': '}', '(': ')', '[': ']'};
|
| 10 |
+
var strictCheck = function(str) {
|
| 11 |
+
if (str[0] === '!') {
|
| 12 |
+
return true;
|
| 13 |
+
}
|
| 14 |
+
var index = 0;
|
| 15 |
+
var pipeIndex = -2;
|
| 16 |
+
var closeSquareIndex = -2;
|
| 17 |
+
var closeCurlyIndex = -2;
|
| 18 |
+
var closeParenIndex = -2;
|
| 19 |
+
var backSlashIndex = -2;
|
| 20 |
+
while (index < str.length) {
|
| 21 |
+
if (str[index] === '*') {
|
| 22 |
+
return true;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
if (str[index + 1] === '?' && /[\].+)]/.test(str[index])) {
|
| 26 |
+
return true;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
if (closeSquareIndex !== -1 && str[index] === '[' && str[index + 1] !== ']') {
|
| 30 |
+
if (closeSquareIndex < index) {
|
| 31 |
+
closeSquareIndex = str.indexOf(']', index);
|
| 32 |
+
}
|
| 33 |
+
if (closeSquareIndex > index) {
|
| 34 |
+
if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
|
| 35 |
+
return true;
|
| 36 |
+
}
|
| 37 |
+
backSlashIndex = str.indexOf('\\', index);
|
| 38 |
+
if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
|
| 39 |
+
return true;
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
if (closeCurlyIndex !== -1 && str[index] === '{' && str[index + 1] !== '}') {
|
| 45 |
+
closeCurlyIndex = str.indexOf('}', index);
|
| 46 |
+
if (closeCurlyIndex > index) {
|
| 47 |
+
backSlashIndex = str.indexOf('\\', index);
|
| 48 |
+
if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) {
|
| 49 |
+
return true;
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
if (closeParenIndex !== -1 && str[index] === '(' && str[index + 1] === '?' && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ')') {
|
| 55 |
+
closeParenIndex = str.indexOf(')', index);
|
| 56 |
+
if (closeParenIndex > index) {
|
| 57 |
+
backSlashIndex = str.indexOf('\\', index);
|
| 58 |
+
if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
|
| 59 |
+
return true;
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
if (pipeIndex !== -1 && str[index] === '(' && str[index + 1] !== '|') {
|
| 65 |
+
if (pipeIndex < index) {
|
| 66 |
+
pipeIndex = str.indexOf('|', index);
|
| 67 |
+
}
|
| 68 |
+
if (pipeIndex !== -1 && str[pipeIndex + 1] !== ')') {
|
| 69 |
+
closeParenIndex = str.indexOf(')', pipeIndex);
|
| 70 |
+
if (closeParenIndex > pipeIndex) {
|
| 71 |
+
backSlashIndex = str.indexOf('\\', pipeIndex);
|
| 72 |
+
if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
|
| 73 |
+
return true;
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
if (str[index] === '\\') {
|
| 80 |
+
var open = str[index + 1];
|
| 81 |
+
index += 2;
|
| 82 |
+
var close = chars[open];
|
| 83 |
+
|
| 84 |
+
if (close) {
|
| 85 |
+
var n = str.indexOf(close, index);
|
| 86 |
+
if (n !== -1) {
|
| 87 |
+
index = n + 1;
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
if (str[index] === '!') {
|
| 92 |
+
return true;
|
| 93 |
+
}
|
| 94 |
+
} else {
|
| 95 |
+
index++;
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
return false;
|
| 99 |
+
};
|
| 100 |
+
|
| 101 |
+
var relaxedCheck = function(str) {
|
| 102 |
+
if (str[0] === '!') {
|
| 103 |
+
return true;
|
| 104 |
+
}
|
| 105 |
+
var index = 0;
|
| 106 |
+
while (index < str.length) {
|
| 107 |
+
if (/[*?{}()[\]]/.test(str[index])) {
|
| 108 |
+
return true;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
if (str[index] === '\\') {
|
| 112 |
+
var open = str[index + 1];
|
| 113 |
+
index += 2;
|
| 114 |
+
var close = chars[open];
|
| 115 |
+
|
| 116 |
+
if (close) {
|
| 117 |
+
var n = str.indexOf(close, index);
|
| 118 |
+
if (n !== -1) {
|
| 119 |
+
index = n + 1;
|
| 120 |
+
}
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
if (str[index] === '!') {
|
| 124 |
+
return true;
|
| 125 |
+
}
|
| 126 |
+
} else {
|
| 127 |
+
index++;
|
| 128 |
+
}
|
| 129 |
+
}
|
| 130 |
+
return false;
|
| 131 |
+
};
|
| 132 |
+
|
| 133 |
+
module.exports = function isGlob(str, options) {
|
| 134 |
+
if (typeof str !== 'string' || str === '') {
|
| 135 |
+
return false;
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
if (isExtglob(str)) {
|
| 139 |
+
return true;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
var check = strictCheck;
|
| 143 |
+
|
| 144 |
+
// optionally relax check
|
| 145 |
+
if (options && options.strict === false) {
|
| 146 |
+
check = relaxedCheck;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
return check(str);
|
| 150 |
+
};
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-glob/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-glob",
|
| 3 |
+
"description": "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.",
|
| 4 |
+
"version": "4.0.3",
|
| 5 |
+
"homepage": "https://github.com/micromatch/is-glob",
|
| 6 |
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
| 7 |
+
"contributors": [
|
| 8 |
+
"Brian Woodward (https://twitter.com/doowb)",
|
| 9 |
+
"Daniel Perez (https://tuvistavie.com)",
|
| 10 |
+
"Jon Schlinkert (http://twitter.com/jonschlinkert)"
|
| 11 |
+
],
|
| 12 |
+
"repository": "micromatch/is-glob",
|
| 13 |
+
"bugs": {
|
| 14 |
+
"url": "https://github.com/micromatch/is-glob/issues"
|
| 15 |
+
},
|
| 16 |
+
"license": "MIT",
|
| 17 |
+
"files": [
|
| 18 |
+
"index.js"
|
| 19 |
+
],
|
| 20 |
+
"main": "index.js",
|
| 21 |
+
"engines": {
|
| 22 |
+
"node": ">=0.10.0"
|
| 23 |
+
},
|
| 24 |
+
"scripts": {
|
| 25 |
+
"test": "mocha && node benchmark.js"
|
| 26 |
+
},
|
| 27 |
+
"dependencies": {
|
| 28 |
+
"is-extglob": "^2.1.1"
|
| 29 |
+
},
|
| 30 |
+
"devDependencies": {
|
| 31 |
+
"gulp-format-md": "^0.1.10",
|
| 32 |
+
"mocha": "^3.0.2"
|
| 33 |
+
},
|
| 34 |
+
"keywords": [
|
| 35 |
+
"bash",
|
| 36 |
+
"braces",
|
| 37 |
+
"check",
|
| 38 |
+
"exec",
|
| 39 |
+
"expression",
|
| 40 |
+
"extglob",
|
| 41 |
+
"glob",
|
| 42 |
+
"globbing",
|
| 43 |
+
"globstar",
|
| 44 |
+
"is",
|
| 45 |
+
"match",
|
| 46 |
+
"matches",
|
| 47 |
+
"pattern",
|
| 48 |
+
"regex",
|
| 49 |
+
"regular",
|
| 50 |
+
"string",
|
| 51 |
+
"test"
|
| 52 |
+
],
|
| 53 |
+
"verb": {
|
| 54 |
+
"layout": "default",
|
| 55 |
+
"plugins": [
|
| 56 |
+
"gulp-format-md"
|
| 57 |
+
],
|
| 58 |
+
"related": {
|
| 59 |
+
"list": [
|
| 60 |
+
"assemble",
|
| 61 |
+
"base",
|
| 62 |
+
"update",
|
| 63 |
+
"verb"
|
| 64 |
+
]
|
| 65 |
+
},
|
| 66 |
+
"reflinks": [
|
| 67 |
+
"assemble",
|
| 68 |
+
"bach",
|
| 69 |
+
"base",
|
| 70 |
+
"composer",
|
| 71 |
+
"gulp",
|
| 72 |
+
"has-glob",
|
| 73 |
+
"is-valid-glob",
|
| 74 |
+
"micromatch",
|
| 75 |
+
"npm",
|
| 76 |
+
"scaffold",
|
| 77 |
+
"verb",
|
| 78 |
+
"vinyl"
|
| 79 |
+
]
|
| 80 |
+
}
|
| 81 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-number/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present, Jon Schlinkert.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in
|
| 13 |
+
all copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 21 |
+
THE SOFTWARE.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-number/README.md
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-number [](https://www.npmjs.com/package/is-number) [](https://npmjs.org/package/is-number) [](https://npmjs.org/package/is-number) [](https://travis-ci.org/jonschlinkert/is-number)
|
| 2 |
+
|
| 3 |
+
> Returns true if the value is a finite number.
|
| 4 |
+
|
| 5 |
+
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Install with [npm](https://www.npmjs.com/):
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
$ npm install --save is-number
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
## Why is this needed?
|
| 16 |
+
|
| 17 |
+
In JavaScript, it's not always as straightforward as it should be to reliably check if a value is a number. It's common for devs to use `+`, `-`, or `Number()` to cast a string value to a number (for example, when values are returned from user input, regex matches, parsers, etc). But there are many non-intuitive edge cases that yield unexpected results:
|
| 18 |
+
|
| 19 |
+
```js
|
| 20 |
+
console.log(+[]); //=> 0
|
| 21 |
+
console.log(+''); //=> 0
|
| 22 |
+
console.log(+' '); //=> 0
|
| 23 |
+
console.log(typeof NaN); //=> 'number'
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
This library offers a performant way to smooth out edge cases like these.
|
| 27 |
+
|
| 28 |
+
## Usage
|
| 29 |
+
|
| 30 |
+
```js
|
| 31 |
+
const isNumber = require('is-number');
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
See the [tests](./test.js) for more examples.
|
| 35 |
+
|
| 36 |
+
### true
|
| 37 |
+
|
| 38 |
+
```js
|
| 39 |
+
isNumber(5e3); // true
|
| 40 |
+
isNumber(0xff); // true
|
| 41 |
+
isNumber(-1.1); // true
|
| 42 |
+
isNumber(0); // true
|
| 43 |
+
isNumber(1); // true
|
| 44 |
+
isNumber(1.1); // true
|
| 45 |
+
isNumber(10); // true
|
| 46 |
+
isNumber(10.10); // true
|
| 47 |
+
isNumber(100); // true
|
| 48 |
+
isNumber('-1.1'); // true
|
| 49 |
+
isNumber('0'); // true
|
| 50 |
+
isNumber('012'); // true
|
| 51 |
+
isNumber('0xff'); // true
|
| 52 |
+
isNumber('1'); // true
|
| 53 |
+
isNumber('1.1'); // true
|
| 54 |
+
isNumber('10'); // true
|
| 55 |
+
isNumber('10.10'); // true
|
| 56 |
+
isNumber('100'); // true
|
| 57 |
+
isNumber('5e3'); // true
|
| 58 |
+
isNumber(parseInt('012')); // true
|
| 59 |
+
isNumber(parseFloat('012')); // true
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
### False
|
| 63 |
+
|
| 64 |
+
Everything else is false, as you would expect:
|
| 65 |
+
|
| 66 |
+
```js
|
| 67 |
+
isNumber(Infinity); // false
|
| 68 |
+
isNumber(NaN); // false
|
| 69 |
+
isNumber(null); // false
|
| 70 |
+
isNumber(undefined); // false
|
| 71 |
+
isNumber(''); // false
|
| 72 |
+
isNumber(' '); // false
|
| 73 |
+
isNumber('foo'); // false
|
| 74 |
+
isNumber([1]); // false
|
| 75 |
+
isNumber([]); // false
|
| 76 |
+
isNumber(function () {}); // false
|
| 77 |
+
isNumber({}); // false
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
## Release history
|
| 81 |
+
|
| 82 |
+
### 7.0.0
|
| 83 |
+
|
| 84 |
+
* Refactor. Now uses `.isFinite` if it exists.
|
| 85 |
+
* Performance is about the same as v6.0 when the value is a string or number. But it's now 3x-4x faster when the value is not a string or number.
|
| 86 |
+
|
| 87 |
+
### 6.0.0
|
| 88 |
+
|
| 89 |
+
* Optimizations, thanks to @benaadams.
|
| 90 |
+
|
| 91 |
+
### 5.0.0
|
| 92 |
+
|
| 93 |
+
**Breaking changes**
|
| 94 |
+
|
| 95 |
+
* removed support for `instanceof Number` and `instanceof String`
|
| 96 |
+
|
| 97 |
+
## Benchmarks
|
| 98 |
+
|
| 99 |
+
As with all benchmarks, take these with a grain of salt. See the [benchmarks](./benchmark/index.js) for more detail.
|
| 100 |
+
|
| 101 |
+
```
|
| 102 |
+
# all
|
| 103 |
+
v7.0 x 413,222 ops/sec ±2.02% (86 runs sampled)
|
| 104 |
+
v6.0 x 111,061 ops/sec ±1.29% (85 runs sampled)
|
| 105 |
+
parseFloat x 317,596 ops/sec ±1.36% (86 runs sampled)
|
| 106 |
+
fastest is 'v7.0'
|
| 107 |
+
|
| 108 |
+
# string
|
| 109 |
+
v7.0 x 3,054,496 ops/sec ±1.05% (89 runs sampled)
|
| 110 |
+
v6.0 x 2,957,781 ops/sec ±0.98% (88 runs sampled)
|
| 111 |
+
parseFloat x 3,071,060 ops/sec ±1.13% (88 runs sampled)
|
| 112 |
+
fastest is 'parseFloat,v7.0'
|
| 113 |
+
|
| 114 |
+
# number
|
| 115 |
+
v7.0 x 3,146,895 ops/sec ±0.89% (89 runs sampled)
|
| 116 |
+
v6.0 x 3,214,038 ops/sec ±1.07% (89 runs sampled)
|
| 117 |
+
parseFloat x 3,077,588 ops/sec ±1.07% (87 runs sampled)
|
| 118 |
+
fastest is 'v6.0'
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
## About
|
| 122 |
+
|
| 123 |
+
<details>
|
| 124 |
+
<summary><strong>Contributing</strong></summary>
|
| 125 |
+
|
| 126 |
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
| 127 |
+
|
| 128 |
+
</details>
|
| 129 |
+
|
| 130 |
+
<details>
|
| 131 |
+
<summary><strong>Running Tests</strong></summary>
|
| 132 |
+
|
| 133 |
+
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
| 134 |
+
|
| 135 |
+
```sh
|
| 136 |
+
$ npm install && npm test
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
</details>
|
| 140 |
+
|
| 141 |
+
<details>
|
| 142 |
+
<summary><strong>Building docs</strong></summary>
|
| 143 |
+
|
| 144 |
+
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
| 145 |
+
|
| 146 |
+
To generate the readme, run the following command:
|
| 147 |
+
|
| 148 |
+
```sh
|
| 149 |
+
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
| 150 |
+
```
|
| 151 |
+
|
| 152 |
+
</details>
|
| 153 |
+
|
| 154 |
+
### Related projects
|
| 155 |
+
|
| 156 |
+
You might also be interested in these projects:
|
| 157 |
+
|
| 158 |
+
* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.")
|
| 159 |
+
* [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive "Returns `true` if the value is a primitive. ")
|
| 160 |
+
* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.")
|
| 161 |
+
* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.")
|
| 162 |
+
|
| 163 |
+
### Contributors
|
| 164 |
+
|
| 165 |
+
| **Commits** | **Contributor** |
|
| 166 |
+
| --- | --- |
|
| 167 |
+
| 49 | [jonschlinkert](https://github.com/jonschlinkert) |
|
| 168 |
+
| 5 | [charlike-old](https://github.com/charlike-old) |
|
| 169 |
+
| 1 | [benaadams](https://github.com/benaadams) |
|
| 170 |
+
| 1 | [realityking](https://github.com/realityking) |
|
| 171 |
+
|
| 172 |
+
### Author
|
| 173 |
+
|
| 174 |
+
**Jon Schlinkert**
|
| 175 |
+
|
| 176 |
+
* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
|
| 177 |
+
* [GitHub Profile](https://github.com/jonschlinkert)
|
| 178 |
+
* [Twitter Profile](https://twitter.com/jonschlinkert)
|
| 179 |
+
|
| 180 |
+
### License
|
| 181 |
+
|
| 182 |
+
Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).
|
| 183 |
+
Released under the [MIT License](LICENSE).
|
| 184 |
+
|
| 185 |
+
***
|
| 186 |
+
|
| 187 |
+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 15, 2018._
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-number/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!
|
| 2 |
+
* is-number <https://github.com/jonschlinkert/is-number>
|
| 3 |
+
*
|
| 4 |
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
| 5 |
+
* Released under the MIT License.
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
'use strict';
|
| 9 |
+
|
| 10 |
+
module.exports = function(num) {
|
| 11 |
+
if (typeof num === 'number') {
|
| 12 |
+
return num - num === 0;
|
| 13 |
+
}
|
| 14 |
+
if (typeof num === 'string' && num.trim() !== '') {
|
| 15 |
+
return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
|
| 16 |
+
}
|
| 17 |
+
return false;
|
| 18 |
+
};
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-number/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-number",
|
| 3 |
+
"description": "Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.",
|
| 4 |
+
"version": "7.0.0",
|
| 5 |
+
"homepage": "https://github.com/jonschlinkert/is-number",
|
| 6 |
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
| 7 |
+
"contributors": [
|
| 8 |
+
"Jon Schlinkert (http://twitter.com/jonschlinkert)",
|
| 9 |
+
"Olsten Larck (https://i.am.charlike.online)",
|
| 10 |
+
"Rouven Weßling (www.rouvenwessling.de)"
|
| 11 |
+
],
|
| 12 |
+
"repository": "jonschlinkert/is-number",
|
| 13 |
+
"bugs": {
|
| 14 |
+
"url": "https://github.com/jonschlinkert/is-number/issues"
|
| 15 |
+
},
|
| 16 |
+
"license": "MIT",
|
| 17 |
+
"files": [
|
| 18 |
+
"index.js"
|
| 19 |
+
],
|
| 20 |
+
"main": "index.js",
|
| 21 |
+
"engines": {
|
| 22 |
+
"node": ">=0.12.0"
|
| 23 |
+
},
|
| 24 |
+
"scripts": {
|
| 25 |
+
"test": "mocha"
|
| 26 |
+
},
|
| 27 |
+
"devDependencies": {
|
| 28 |
+
"ansi": "^0.3.1",
|
| 29 |
+
"benchmark": "^2.1.4",
|
| 30 |
+
"gulp-format-md": "^1.0.0",
|
| 31 |
+
"mocha": "^3.5.3"
|
| 32 |
+
},
|
| 33 |
+
"keywords": [
|
| 34 |
+
"cast",
|
| 35 |
+
"check",
|
| 36 |
+
"coerce",
|
| 37 |
+
"coercion",
|
| 38 |
+
"finite",
|
| 39 |
+
"integer",
|
| 40 |
+
"is",
|
| 41 |
+
"isnan",
|
| 42 |
+
"is-nan",
|
| 43 |
+
"is-num",
|
| 44 |
+
"is-number",
|
| 45 |
+
"isnumber",
|
| 46 |
+
"isfinite",
|
| 47 |
+
"istype",
|
| 48 |
+
"kind",
|
| 49 |
+
"math",
|
| 50 |
+
"nan",
|
| 51 |
+
"num",
|
| 52 |
+
"number",
|
| 53 |
+
"numeric",
|
| 54 |
+
"parseFloat",
|
| 55 |
+
"parseInt",
|
| 56 |
+
"test",
|
| 57 |
+
"type",
|
| 58 |
+
"typeof",
|
| 59 |
+
"value"
|
| 60 |
+
],
|
| 61 |
+
"verb": {
|
| 62 |
+
"toc": false,
|
| 63 |
+
"layout": "default",
|
| 64 |
+
"tasks": [
|
| 65 |
+
"readme"
|
| 66 |
+
],
|
| 67 |
+
"related": {
|
| 68 |
+
"list": [
|
| 69 |
+
"is-plain-object",
|
| 70 |
+
"is-primitive",
|
| 71 |
+
"isobject",
|
| 72 |
+
"kind-of"
|
| 73 |
+
]
|
| 74 |
+
},
|
| 75 |
+
"plugins": [
|
| 76 |
+
"gulp-format-md"
|
| 77 |
+
],
|
| 78 |
+
"lint": {
|
| 79 |
+
"reflinks": true
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-stream/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var isStream = module.exports = function (stream) {
|
| 4 |
+
return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';
|
| 5 |
+
};
|
| 6 |
+
|
| 7 |
+
isStream.writable = function (stream) {
|
| 8 |
+
return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';
|
| 9 |
+
};
|
| 10 |
+
|
| 11 |
+
isStream.readable = function (stream) {
|
| 12 |
+
return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object';
|
| 13 |
+
};
|
| 14 |
+
|
| 15 |
+
isStream.duplex = function (stream) {
|
| 16 |
+
return isStream.writable(stream) && isStream.readable(stream);
|
| 17 |
+
};
|
| 18 |
+
|
| 19 |
+
isStream.transform = function (stream) {
|
| 20 |
+
return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object';
|
| 21 |
+
};
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-stream/license
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in
|
| 13 |
+
all copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 21 |
+
THE SOFTWARE.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-stream/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "is-stream",
|
| 3 |
+
"version": "1.1.0",
|
| 4 |
+
"description": "Check if something is a Node.js stream",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "sindresorhus/is-stream",
|
| 7 |
+
"author": {
|
| 8 |
+
"name": "Sindre Sorhus",
|
| 9 |
+
"email": "sindresorhus@gmail.com",
|
| 10 |
+
"url": "sindresorhus.com"
|
| 11 |
+
},
|
| 12 |
+
"engines": {
|
| 13 |
+
"node": ">=0.10.0"
|
| 14 |
+
},
|
| 15 |
+
"scripts": {
|
| 16 |
+
"test": "xo && ava"
|
| 17 |
+
},
|
| 18 |
+
"files": [
|
| 19 |
+
"index.js"
|
| 20 |
+
],
|
| 21 |
+
"keywords": [
|
| 22 |
+
"stream",
|
| 23 |
+
"type",
|
| 24 |
+
"streams",
|
| 25 |
+
"writable",
|
| 26 |
+
"readable",
|
| 27 |
+
"duplex",
|
| 28 |
+
"transform",
|
| 29 |
+
"check",
|
| 30 |
+
"detect",
|
| 31 |
+
"is"
|
| 32 |
+
],
|
| 33 |
+
"devDependencies": {
|
| 34 |
+
"ava": "*",
|
| 35 |
+
"tempfile": "^1.1.0",
|
| 36 |
+
"xo": "*"
|
| 37 |
+
}
|
| 38 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/is-stream/readme.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# is-stream [](https://travis-ci.org/sindresorhus/is-stream)
|
| 2 |
+
|
| 3 |
+
> Check if something is a [Node.js stream](https://nodejs.org/api/stream.html)
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
## Install
|
| 7 |
+
|
| 8 |
+
```
|
| 9 |
+
$ npm install --save is-stream
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
## Usage
|
| 14 |
+
|
| 15 |
+
```js
|
| 16 |
+
const fs = require('fs');
|
| 17 |
+
const isStream = require('is-stream');
|
| 18 |
+
|
| 19 |
+
isStream(fs.createReadStream('unicorn.png'));
|
| 20 |
+
//=> true
|
| 21 |
+
|
| 22 |
+
isStream({});
|
| 23 |
+
//=> false
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
## API
|
| 28 |
+
|
| 29 |
+
### isStream(stream)
|
| 30 |
+
|
| 31 |
+
#### isStream.writable(stream)
|
| 32 |
+
|
| 33 |
+
#### isStream.readable(stream)
|
| 34 |
+
|
| 35 |
+
#### isStream.duplex(stream)
|
| 36 |
+
|
| 37 |
+
#### isStream.transform(stream)
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
## License
|
| 41 |
+
|
| 42 |
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/.npmignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.nyc_output/
|
| 2 |
+
coverage/
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The ISC License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
| 4 |
+
|
| 5 |
+
Permission to use, copy, modify, and/or distribute this software for any
|
| 6 |
+
purpose with or without fee is hereby granted, provided that the above
|
| 7 |
+
copyright notice and this permission notice appear in all copies.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
| 10 |
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 11 |
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
| 12 |
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 13 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 14 |
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
| 15 |
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# isexe
|
| 2 |
+
|
| 3 |
+
Minimal module to check if a file is executable, and a normal file.
|
| 4 |
+
|
| 5 |
+
Uses `fs.stat` and tests against the `PATHEXT` environment variable on
|
| 6 |
+
Windows.
|
| 7 |
+
|
| 8 |
+
## USAGE
|
| 9 |
+
|
| 10 |
+
```javascript
|
| 11 |
+
var isexe = require('isexe')
|
| 12 |
+
isexe('some-file-name', function (err, isExe) {
|
| 13 |
+
if (err) {
|
| 14 |
+
console.error('probably file does not exist or something', err)
|
| 15 |
+
} else if (isExe) {
|
| 16 |
+
console.error('this thing can be run')
|
| 17 |
+
} else {
|
| 18 |
+
console.error('cannot be run')
|
| 19 |
+
}
|
| 20 |
+
})
|
| 21 |
+
|
| 22 |
+
// same thing but synchronous, throws errors
|
| 23 |
+
var isExe = isexe.sync('some-file-name')
|
| 24 |
+
|
| 25 |
+
// treat errors as just "not executable"
|
| 26 |
+
isexe('maybe-missing-file', { ignoreErrors: true }, callback)
|
| 27 |
+
var isExe = isexe.sync('maybe-missing-file', { ignoreErrors: true })
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
## API
|
| 31 |
+
|
| 32 |
+
### `isexe(path, [options], [callback])`
|
| 33 |
+
|
| 34 |
+
Check if the path is executable. If no callback provided, and a
|
| 35 |
+
global `Promise` object is available, then a Promise will be returned.
|
| 36 |
+
|
| 37 |
+
Will raise whatever errors may be raised by `fs.stat`, unless
|
| 38 |
+
`options.ignoreErrors` is set to true.
|
| 39 |
+
|
| 40 |
+
### `isexe.sync(path, [options])`
|
| 41 |
+
|
| 42 |
+
Same as `isexe` but returns the value and throws any errors raised.
|
| 43 |
+
|
| 44 |
+
### Options
|
| 45 |
+
|
| 46 |
+
* `ignoreErrors` Treat all errors as "no, this is not executable", but
|
| 47 |
+
don't raise them.
|
| 48 |
+
* `uid` Number to use as the user id
|
| 49 |
+
* `gid` Number to use as the group id
|
| 50 |
+
* `pathExt` List of path extensions to use instead of `PATHEXT`
|
| 51 |
+
environment variable on Windows.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/index.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var fs = require('fs')
|
| 2 |
+
var core
|
| 3 |
+
if (process.platform === 'win32' || global.TESTING_WINDOWS) {
|
| 4 |
+
core = require('./windows.js')
|
| 5 |
+
} else {
|
| 6 |
+
core = require('./mode.js')
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
module.exports = isexe
|
| 10 |
+
isexe.sync = sync
|
| 11 |
+
|
| 12 |
+
function isexe (path, options, cb) {
|
| 13 |
+
if (typeof options === 'function') {
|
| 14 |
+
cb = options
|
| 15 |
+
options = {}
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
if (!cb) {
|
| 19 |
+
if (typeof Promise !== 'function') {
|
| 20 |
+
throw new TypeError('callback not provided')
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
return new Promise(function (resolve, reject) {
|
| 24 |
+
isexe(path, options || {}, function (er, is) {
|
| 25 |
+
if (er) {
|
| 26 |
+
reject(er)
|
| 27 |
+
} else {
|
| 28 |
+
resolve(is)
|
| 29 |
+
}
|
| 30 |
+
})
|
| 31 |
+
})
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
core(path, options || {}, function (er, is) {
|
| 35 |
+
// ignore EACCES because that just means we aren't allowed to run it
|
| 36 |
+
if (er) {
|
| 37 |
+
if (er.code === 'EACCES' || options && options.ignoreErrors) {
|
| 38 |
+
er = null
|
| 39 |
+
is = false
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
cb(er, is)
|
| 43 |
+
})
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
function sync (path, options) {
|
| 47 |
+
// my kingdom for a filtered catch
|
| 48 |
+
try {
|
| 49 |
+
return core.sync(path, options || {})
|
| 50 |
+
} catch (er) {
|
| 51 |
+
if (options && options.ignoreErrors || er.code === 'EACCES') {
|
| 52 |
+
return false
|
| 53 |
+
} else {
|
| 54 |
+
throw er
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/mode.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports = isexe
|
| 2 |
+
isexe.sync = sync
|
| 3 |
+
|
| 4 |
+
var fs = require('fs')
|
| 5 |
+
|
| 6 |
+
function isexe (path, options, cb) {
|
| 7 |
+
fs.stat(path, function (er, stat) {
|
| 8 |
+
cb(er, er ? false : checkStat(stat, options))
|
| 9 |
+
})
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
function sync (path, options) {
|
| 13 |
+
return checkStat(fs.statSync(path), options)
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
function checkStat (stat, options) {
|
| 17 |
+
return stat.isFile() && checkMode(stat, options)
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
function checkMode (stat, options) {
|
| 21 |
+
var mod = stat.mode
|
| 22 |
+
var uid = stat.uid
|
| 23 |
+
var gid = stat.gid
|
| 24 |
+
|
| 25 |
+
var myUid = options.uid !== undefined ?
|
| 26 |
+
options.uid : process.getuid && process.getuid()
|
| 27 |
+
var myGid = options.gid !== undefined ?
|
| 28 |
+
options.gid : process.getgid && process.getgid()
|
| 29 |
+
|
| 30 |
+
var u = parseInt('100', 8)
|
| 31 |
+
var g = parseInt('010', 8)
|
| 32 |
+
var o = parseInt('001', 8)
|
| 33 |
+
var ug = u | g
|
| 34 |
+
|
| 35 |
+
var ret = (mod & o) ||
|
| 36 |
+
(mod & g) && gid === myGid ||
|
| 37 |
+
(mod & u) && uid === myUid ||
|
| 38 |
+
(mod & ug) && myUid === 0
|
| 39 |
+
|
| 40 |
+
return ret
|
| 41 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "isexe",
|
| 3 |
+
"version": "2.0.0",
|
| 4 |
+
"description": "Minimal module to check if a file is executable.",
|
| 5 |
+
"main": "index.js",
|
| 6 |
+
"directories": {
|
| 7 |
+
"test": "test"
|
| 8 |
+
},
|
| 9 |
+
"devDependencies": {
|
| 10 |
+
"mkdirp": "^0.5.1",
|
| 11 |
+
"rimraf": "^2.5.0",
|
| 12 |
+
"tap": "^10.3.0"
|
| 13 |
+
},
|
| 14 |
+
"scripts": {
|
| 15 |
+
"test": "tap test/*.js --100",
|
| 16 |
+
"preversion": "npm test",
|
| 17 |
+
"postversion": "npm publish",
|
| 18 |
+
"postpublish": "git push origin --all; git push origin --tags"
|
| 19 |
+
},
|
| 20 |
+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
| 21 |
+
"license": "ISC",
|
| 22 |
+
"repository": {
|
| 23 |
+
"type": "git",
|
| 24 |
+
"url": "git+https://github.com/isaacs/isexe.git"
|
| 25 |
+
},
|
| 26 |
+
"keywords": [],
|
| 27 |
+
"bugs": {
|
| 28 |
+
"url": "https://github.com/isaacs/isexe/issues"
|
| 29 |
+
},
|
| 30 |
+
"homepage": "https://github.com/isaacs/isexe#readme"
|
| 31 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/isexe/windows.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports = isexe
|
| 2 |
+
isexe.sync = sync
|
| 3 |
+
|
| 4 |
+
var fs = require('fs')
|
| 5 |
+
|
| 6 |
+
function checkPathExt (path, options) {
|
| 7 |
+
var pathext = options.pathExt !== undefined ?
|
| 8 |
+
options.pathExt : process.env.PATHEXT
|
| 9 |
+
|
| 10 |
+
if (!pathext) {
|
| 11 |
+
return true
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
pathext = pathext.split(';')
|
| 15 |
+
if (pathext.indexOf('') !== -1) {
|
| 16 |
+
return true
|
| 17 |
+
}
|
| 18 |
+
for (var i = 0; i < pathext.length; i++) {
|
| 19 |
+
var p = pathext[i].toLowerCase()
|
| 20 |
+
if (p && path.substr(-p.length).toLowerCase() === p) {
|
| 21 |
+
return true
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
return false
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
function checkStat (stat, path, options) {
|
| 28 |
+
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
| 29 |
+
return false
|
| 30 |
+
}
|
| 31 |
+
return checkPathExt(path, options)
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
function isexe (path, options, cb) {
|
| 35 |
+
fs.stat(path, function (er, stat) {
|
| 36 |
+
cb(er, er ? false : checkStat(stat, path, options))
|
| 37 |
+
})
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
function sync (path, options) {
|
| 41 |
+
return checkStat(fs.statSync(path), path, options)
|
| 42 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/jackspeak/LICENSE.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Blue Oak Model License
|
| 2 |
+
|
| 3 |
+
Version 1.0.0
|
| 4 |
+
|
| 5 |
+
## Purpose
|
| 6 |
+
|
| 7 |
+
This license gives everyone as much permission to work with
|
| 8 |
+
this software as possible, while protecting contributors
|
| 9 |
+
from liability.
|
| 10 |
+
|
| 11 |
+
## Acceptance
|
| 12 |
+
|
| 13 |
+
In order to receive this license, you must agree to its
|
| 14 |
+
rules. The rules of this license are both obligations
|
| 15 |
+
under that agreement and conditions to your license.
|
| 16 |
+
You must not do anything with this software that triggers
|
| 17 |
+
a rule that you cannot or will not follow.
|
| 18 |
+
|
| 19 |
+
## Copyright
|
| 20 |
+
|
| 21 |
+
Each contributor licenses you to do everything with this
|
| 22 |
+
software that would otherwise infringe that contributor's
|
| 23 |
+
copyright in it.
|
| 24 |
+
|
| 25 |
+
## Notices
|
| 26 |
+
|
| 27 |
+
You must ensure that everyone who gets a copy of
|
| 28 |
+
any part of this software from you, with or without
|
| 29 |
+
changes, also gets the text of this license or a link to
|
| 30 |
+
<https://blueoakcouncil.org/license/1.0.0>.
|
| 31 |
+
|
| 32 |
+
## Excuse
|
| 33 |
+
|
| 34 |
+
If anyone notifies you in writing that you have not
|
| 35 |
+
complied with [Notices](#notices), you can keep your
|
| 36 |
+
license by taking all practical steps to comply within 30
|
| 37 |
+
days after the notice. If you do not do so, your license
|
| 38 |
+
ends immediately.
|
| 39 |
+
|
| 40 |
+
## Patent
|
| 41 |
+
|
| 42 |
+
Each contributor licenses you to do everything with this
|
| 43 |
+
software that would otherwise infringe any patent claims
|
| 44 |
+
they can license or become able to license.
|
| 45 |
+
|
| 46 |
+
## Reliability
|
| 47 |
+
|
| 48 |
+
No contributor can revoke this license.
|
| 49 |
+
|
| 50 |
+
## No Liability
|
| 51 |
+
|
| 52 |
+
**_As far as the law allows, this software comes as is,
|
| 53 |
+
without any warranty or condition, and no contributor
|
| 54 |
+
will be liable to anyone for any damages related to this
|
| 55 |
+
software or this license, under any kind of legal claim._**
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/jackspeak/README.md
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# jackspeak
|
| 2 |
+
|
| 3 |
+
A very strict and proper argument parser.
|
| 4 |
+
|
| 5 |
+
Validate string, boolean, and number options, from the command
|
| 6 |
+
line and the environment.
|
| 7 |
+
|
| 8 |
+
Call the `jack` method with a config object, and then chain
|
| 9 |
+
methods off of it.
|
| 10 |
+
|
| 11 |
+
At the end, call the `.parse()` method, and you'll get an object
|
| 12 |
+
with `positionals` and `values` members.
|
| 13 |
+
|
| 14 |
+
Any unrecognized configs or invalid values will throw an error.
|
| 15 |
+
|
| 16 |
+
As long as you define configs using object literals, types will
|
| 17 |
+
be properly inferred and TypeScript will know what kinds of
|
| 18 |
+
things you got.
|
| 19 |
+
|
| 20 |
+
If you give it a prefix for environment variables, then defaults
|
| 21 |
+
will be read from the environment, and parsed values written back
|
| 22 |
+
to it, so you can easily pass configs through to child processes.
|
| 23 |
+
|
| 24 |
+
Automatically generates a `usage`/`help` banner by calling the
|
| 25 |
+
`.usage()` method.
|
| 26 |
+
|
| 27 |
+
Unless otherwise noted, all methods return the object itself.
|
| 28 |
+
|
| 29 |
+
## USAGE
|
| 30 |
+
|
| 31 |
+
```js
|
| 32 |
+
import { jack } from 'jackspeak'
|
| 33 |
+
// this works too:
|
| 34 |
+
// const { jack } = require('jackspeak')
|
| 35 |
+
|
| 36 |
+
const { positionals, values } = jack({ envPrefix: 'FOO' })
|
| 37 |
+
.flag({
|
| 38 |
+
asdf: { description: 'sets the asfd flag', short: 'a', default: true },
|
| 39 |
+
'no-asdf': { description: 'unsets the asdf flag', short: 'A' },
|
| 40 |
+
foo: { description: 'another boolean', short: 'f' },
|
| 41 |
+
})
|
| 42 |
+
.optList({
|
| 43 |
+
'ip-addrs': {
|
| 44 |
+
description: 'addresses to ip things',
|
| 45 |
+
delim: ',', // defaults to '\n'
|
| 46 |
+
default: ['127.0.0.1'],
|
| 47 |
+
},
|
| 48 |
+
})
|
| 49 |
+
.parse([
|
| 50 |
+
'some',
|
| 51 |
+
'positional',
|
| 52 |
+
'--ip-addrs',
|
| 53 |
+
'192.168.0.1',
|
| 54 |
+
'--ip-addrs',
|
| 55 |
+
'1.1.1.1',
|
| 56 |
+
'args',
|
| 57 |
+
'--foo', // sets the foo flag
|
| 58 |
+
'-A', // short for --no-asdf, sets asdf flag to false
|
| 59 |
+
])
|
| 60 |
+
|
| 61 |
+
console.log(process.env.FOO_ASDF) // '0'
|
| 62 |
+
console.log(process.env.FOO_FOO) // '1'
|
| 63 |
+
console.log(values) // {
|
| 64 |
+
// 'ip-addrs': ['192.168.0.1', '1.1.1.1'],
|
| 65 |
+
// foo: true,
|
| 66 |
+
// asdf: false,
|
| 67 |
+
// }
|
| 68 |
+
console.log(process.env.FOO_IP_ADDRS) // '192.168.0.1,1.1.1.1'
|
| 69 |
+
console.log(positionals) // ['some', 'positional', 'args']
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## `jack(options: JackOptions = {}) => Jack`
|
| 73 |
+
|
| 74 |
+
Returns a `Jack` object that can be used to chain and add
|
| 75 |
+
field definitions. The other methods (apart from `validate()`,
|
| 76 |
+
`parse()`, and `usage()` obviously) return the same Jack object,
|
| 77 |
+
updated with the new types, so they can be chained together as
|
| 78 |
+
shown in the code examples.
|
| 79 |
+
|
| 80 |
+
Options:
|
| 81 |
+
|
| 82 |
+
- `allowPositionals` Defaults to true. Set to `false` to not
|
| 83 |
+
allow any positional arguments.
|
| 84 |
+
|
| 85 |
+
- `envPrefix` Set to a string to write configs to and read
|
| 86 |
+
configs from the environment. For example, if set to `MY_APP`
|
| 87 |
+
then the `foo-bar` config will default based on the value of
|
| 88 |
+
`env.MY_APP_FOO_BAR` and will write back to that when parsed.
|
| 89 |
+
|
| 90 |
+
Boolean values are written as `'1'` and `'0'`, and will be
|
| 91 |
+
treated as `true` if they're `'1'` or false otherwise.
|
| 92 |
+
|
| 93 |
+
Number values are written with their `toString()`
|
| 94 |
+
representation.
|
| 95 |
+
|
| 96 |
+
Strings are just strings.
|
| 97 |
+
|
| 98 |
+
Any value with `multiple: true` will be represented in the
|
| 99 |
+
environment split by a delimiter, which defaults to `\n`.
|
| 100 |
+
|
| 101 |
+
- `env` The place to read/write environment variables. Defaults
|
| 102 |
+
to `process.env`.
|
| 103 |
+
|
| 104 |
+
- `usage` A short usage string to print at the top of the help
|
| 105 |
+
banner.
|
| 106 |
+
|
| 107 |
+
- `stopAtPositional` Boolean, default false. Stop parsing opts
|
| 108 |
+
and flags at the first positional argument. This is useful if
|
| 109 |
+
you want to pass certain options to subcommands, like some
|
| 110 |
+
programs do, so you can stop parsing and pass the positionals
|
| 111 |
+
to the subcommand to parse.
|
| 112 |
+
|
| 113 |
+
- `stopAtPositionalTest` Conditional `stopAtPositional`. Provide
|
| 114 |
+
a function that takes a positional argument string and returns
|
| 115 |
+
boolean. If it returns `true`, then parsing will stop. Useful
|
| 116 |
+
when _some_ subcommands should parse the rest of the command
|
| 117 |
+
line options, and others should not.
|
| 118 |
+
|
| 119 |
+
### `Jack.heading(text: string, level?: 1 | 2 | 3 | 4 | 5 | 6)`
|
| 120 |
+
|
| 121 |
+
Define a short string heading, used in the `usage()` output.
|
| 122 |
+
|
| 123 |
+
Indentation of the heading and subsequent description/config
|
| 124 |
+
usage entries (up until the next heading) is set by the heading
|
| 125 |
+
level.
|
| 126 |
+
|
| 127 |
+
If the first usage item defined is a heading, it is always
|
| 128 |
+
treated as level 1, regardless of the argument provided.
|
| 129 |
+
|
| 130 |
+
Headings level 1 and 2 will have a line of padding underneath
|
| 131 |
+
them. Headings level 3 through 6 will not.
|
| 132 |
+
|
| 133 |
+
### `Jack.description(text: string, { pre?: boolean } = {})`
|
| 134 |
+
|
| 135 |
+
Define a long string description, used in the `usage()` output.
|
| 136 |
+
|
| 137 |
+
If the `pre` option is set to `true`, then whitespace will not be
|
| 138 |
+
normalized. However, if any line is too long for the width
|
| 139 |
+
allotted, it will still be wrapped.
|
| 140 |
+
|
| 141 |
+
## Option Definitions
|
| 142 |
+
|
| 143 |
+
Configs are defined by calling the appropriate field definition
|
| 144 |
+
method with an object where the keys are the long option name,
|
| 145 |
+
and the value defines the config.
|
| 146 |
+
|
| 147 |
+
Options:
|
| 148 |
+
|
| 149 |
+
- `type` Only needed for the `addFields` method, as the others
|
| 150 |
+
set it implicitly. Can be `'string'`, `'boolean'`, or
|
| 151 |
+
`'number'`.
|
| 152 |
+
- `multiple` Only needed for the `addFields` method, as the
|
| 153 |
+
others set it implicitly. Set to `true` to define an array
|
| 154 |
+
type. This means that it can be set on the CLI multiple times,
|
| 155 |
+
set as an array in the `values`
|
| 156 |
+
and it is represented in the environment as a delimited string.
|
| 157 |
+
- `short` A one-character shorthand for the option.
|
| 158 |
+
- `description` Some words to describe what this option is and
|
| 159 |
+
why you'd set it.
|
| 160 |
+
- `hint` (Only relevant for non-boolean types) The thing to show
|
| 161 |
+
in the usage output, like `--option=<hint>`
|
| 162 |
+
- `validate` A function that returns false (or throws) if an
|
| 163 |
+
option value is invalid.
|
| 164 |
+
- `validOptions` An array of strings or numbers that define the
|
| 165 |
+
valid values that can be set. This is not allowed on `boolean`
|
| 166 |
+
(flag) options. May be used along with a `validate()` method.
|
| 167 |
+
- `default` A default value for the field. Note that this may be
|
| 168 |
+
overridden by an environment variable, if present.
|
| 169 |
+
|
| 170 |
+
### `Jack.flag({ [option: string]: definition, ... })`
|
| 171 |
+
|
| 172 |
+
Define one or more boolean fields.
|
| 173 |
+
|
| 174 |
+
Boolean options may be set to `false` by using a
|
| 175 |
+
`--no-${optionName}` argument, which will be implicitly created
|
| 176 |
+
if it's not defined to be something else.
|
| 177 |
+
|
| 178 |
+
If a boolean option named `no-${optionName}` with the same
|
| 179 |
+
`multiple` setting is in the configuration, then that will be
|
| 180 |
+
treated as a negating flag.
|
| 181 |
+
|
| 182 |
+
### `Jack.flagList({ [option: string]: definition, ... })`
|
| 183 |
+
|
| 184 |
+
Define one or more boolean array fields.
|
| 185 |
+
|
| 186 |
+
### `Jack.num({ [option: string]: definition, ... })`
|
| 187 |
+
|
| 188 |
+
Define one or more number fields. These will be set in the
|
| 189 |
+
environment as a stringified number, and included in the `values`
|
| 190 |
+
object as a number.
|
| 191 |
+
|
| 192 |
+
### `Jack.numList({ [option: string]: definition, ... })`
|
| 193 |
+
|
| 194 |
+
Define one or more number list fields. These will be set in the
|
| 195 |
+
environment as a delimited set of stringified numbers, and
|
| 196 |
+
included in the `values` as a number array.
|
| 197 |
+
|
| 198 |
+
### `Jack.opt({ [option: string]: definition, ... })`
|
| 199 |
+
|
| 200 |
+
Define one or more string option fields.
|
| 201 |
+
|
| 202 |
+
### `Jack.optList({ [option: string]: definition, ... })`
|
| 203 |
+
|
| 204 |
+
Define one or more string list fields.
|
| 205 |
+
|
| 206 |
+
### `Jack.addFields({ [option: string]: definition, ... })`
|
| 207 |
+
|
| 208 |
+
Define one or more fields of any type. Note that `type` and
|
| 209 |
+
`multiple` must be set explicitly on each definition when using
|
| 210 |
+
this method.
|
| 211 |
+
|
| 212 |
+
## Informative Getters
|
| 213 |
+
|
| 214 |
+
Once you've defined several fields with the various methods
|
| 215 |
+
described above, you can get at the definitions and such with
|
| 216 |
+
these methods.
|
| 217 |
+
|
| 218 |
+
This are primarily just informative, but can be useful in some
|
| 219 |
+
advanced scenarios, such as providing "Did you mean?" type
|
| 220 |
+
suggestions when someone misspells an option name.
|
| 221 |
+
|
| 222 |
+
### `Jack.definitions`
|
| 223 |
+
|
| 224 |
+
The set of config field definitions in no particular order. This
|
| 225 |
+
is a data object suitable to passing to `util.parseArgs`, but
|
| 226 |
+
with the addition of `short` and `description` fields, where
|
| 227 |
+
appropriate.
|
| 228 |
+
|
| 229 |
+
### `Jack.jackOptions`
|
| 230 |
+
|
| 231 |
+
The options passed into the initial `jack()` function (or `new
|
| 232 |
+
Jack()` constructor).
|
| 233 |
+
|
| 234 |
+
### `Jack.shorts`
|
| 235 |
+
|
| 236 |
+
The `{ <short>: <long> }` name record for all short options
|
| 237 |
+
defined.
|
| 238 |
+
|
| 239 |
+
### `Jack.usageFields`
|
| 240 |
+
|
| 241 |
+
The array of fields that are used to generate `Jack.usage()` and
|
| 242 |
+
`Jack.usageMarkdown()` content.
|
| 243 |
+
|
| 244 |
+
## Actions
|
| 245 |
+
|
| 246 |
+
Use these methods on a Jack object that's already had its config
|
| 247 |
+
fields defined.
|
| 248 |
+
|
| 249 |
+
### `Jack.parse(args: string[] = process.argv): { positionals: string[], values: OptionsResults }`
|
| 250 |
+
|
| 251 |
+
Parse the arguments list, write to the environment if `envPrefix`
|
| 252 |
+
is set, and returned the parsed values and remaining positional
|
| 253 |
+
arguments.
|
| 254 |
+
|
| 255 |
+
### `Jack.validate(o: any): asserts o is OptionsResults`
|
| 256 |
+
|
| 257 |
+
Throws an error if the object provided is not a valid result set,
|
| 258 |
+
for the configurations defined thusfar.
|
| 259 |
+
|
| 260 |
+
### `Jack.usage(): string`
|
| 261 |
+
|
| 262 |
+
Returns the compiled `usage` string, with all option descriptions
|
| 263 |
+
and heading/description text, wrapped to the appropriate width
|
| 264 |
+
for the terminal.
|
| 265 |
+
|
| 266 |
+
### `Jack.setConfigValues(options: OptionsResults, src?: string)`
|
| 267 |
+
|
| 268 |
+
Validate the `options` argument, and set the default value for
|
| 269 |
+
each field that appears in the options.
|
| 270 |
+
|
| 271 |
+
Values provided will be overridden by environment variables or
|
| 272 |
+
command line arguments.
|
| 273 |
+
|
| 274 |
+
### `Jack.usageMarkdown(): string`
|
| 275 |
+
|
| 276 |
+
Returns the compiled `usage` string, with all option descriptions
|
| 277 |
+
and heading/description text, but as markdown instead of
|
| 278 |
+
formatted for a terminal, for generating HTML documentation for
|
| 279 |
+
your CLI.
|
| 280 |
+
|
| 281 |
+
## Some Example Code
|
| 282 |
+
|
| 283 |
+
Also see [the examples
|
| 284 |
+
folder](https://github.com/isaacs/jackspeak/tree/master/examples)
|
| 285 |
+
|
| 286 |
+
```js
|
| 287 |
+
import { jack } from 'jackspeak'
|
| 288 |
+
|
| 289 |
+
const j = jack({
|
| 290 |
+
// Optional
|
| 291 |
+
// This will be auto-generated from the descriptions if not supplied
|
| 292 |
+
// top level usage line, printed by -h
|
| 293 |
+
// will be auto-generated if not specified
|
| 294 |
+
usage: 'foo [options] <files>',
|
| 295 |
+
})
|
| 296 |
+
.heading('The best Foo that ever Fooed')
|
| 297 |
+
.description(
|
| 298 |
+
`
|
| 299 |
+
Executes all the files and interprets their output as
|
| 300 |
+
TAP formatted test result data.
|
| 301 |
+
|
| 302 |
+
To parse TAP data from stdin, specify "-" as a filename.
|
| 303 |
+
`,
|
| 304 |
+
)
|
| 305 |
+
|
| 306 |
+
// flags don't take a value, they're boolean on or off, and can be
|
| 307 |
+
// turned off by prefixing with `--no-`
|
| 308 |
+
// so this adds support for -b to mean --bail, or -B to mean --no-bail
|
| 309 |
+
.flag({
|
| 310 |
+
flag: {
|
| 311 |
+
// specify a short value if you like. this must be a single char
|
| 312 |
+
short: 'f',
|
| 313 |
+
// description is optional as well.
|
| 314 |
+
description: `Make the flags wave`,
|
| 315 |
+
// default value for flags is 'false', unless you change it
|
| 316 |
+
default: true,
|
| 317 |
+
},
|
| 318 |
+
'no-flag': {
|
| 319 |
+
// you can can always negate a flag with `--no-flag`
|
| 320 |
+
// specifying a negate option will let you define a short
|
| 321 |
+
// single-char option for negation.
|
| 322 |
+
short: 'F',
|
| 323 |
+
description: `Do not wave the flags`,
|
| 324 |
+
},
|
| 325 |
+
})
|
| 326 |
+
|
| 327 |
+
// Options that take a value are specified with `opt()`
|
| 328 |
+
.opt({
|
| 329 |
+
reporter: {
|
| 330 |
+
short: 'R',
|
| 331 |
+
description: 'the style of report to display',
|
| 332 |
+
},
|
| 333 |
+
})
|
| 334 |
+
|
| 335 |
+
// if you want a number, say so, and jackspeak will enforce it
|
| 336 |
+
.num({
|
| 337 |
+
jobs: {
|
| 338 |
+
short: 'j',
|
| 339 |
+
description: 'how many jobs to run in parallel',
|
| 340 |
+
default: 1,
|
| 341 |
+
},
|
| 342 |
+
})
|
| 343 |
+
|
| 344 |
+
// A list is an option that can be specified multiple times,
|
| 345 |
+
// to expand into an array of all the settings. Normal opts
|
| 346 |
+
// will just give you the last value specified.
|
| 347 |
+
.optList({
|
| 348 |
+
'node-arg': {},
|
| 349 |
+
})
|
| 350 |
+
|
| 351 |
+
// a flagList is an array of booleans, so `-ddd` is [true, true, true]
|
| 352 |
+
// count the `true` values to treat it as a counter.
|
| 353 |
+
.flagList({
|
| 354 |
+
debug: { short: 'd' },
|
| 355 |
+
})
|
| 356 |
+
|
| 357 |
+
// opts take a value, and is set to the string in the results
|
| 358 |
+
// you can combine multiple short-form flags together, but
|
| 359 |
+
// an opt will end the combine chain, posix-style. So,
|
| 360 |
+
// -bofilename would be like --bail --output-file=filename
|
| 361 |
+
.opt({
|
| 362 |
+
'output-file': {
|
| 363 |
+
short: 'o',
|
| 364 |
+
// optional: make it -o<file> in the help output insead of -o<value>
|
| 365 |
+
hint: 'file',
|
| 366 |
+
description: `Send the raw output to the specified file.`,
|
| 367 |
+
},
|
| 368 |
+
})
|
| 369 |
+
|
| 370 |
+
// now we can parse argv like this:
|
| 371 |
+
const { values, positionals } = j.parse(process.argv)
|
| 372 |
+
|
| 373 |
+
// or decide to show the usage banner
|
| 374 |
+
console.log(j.usage())
|
| 375 |
+
|
| 376 |
+
// or validate an object config we got from somewhere else
|
| 377 |
+
try {
|
| 378 |
+
j.validate(someConfig)
|
| 379 |
+
} catch (er) {
|
| 380 |
+
console.error('someConfig is not valid!', er)
|
| 381 |
+
}
|
| 382 |
+
```
|
| 383 |
+
|
| 384 |
+
## Name
|
| 385 |
+
|
| 386 |
+
The inspiration for this module is [yargs](http://npm.im/yargs), which
|
| 387 |
+
is pirate talk themed. Yargs has all the features, and is infinitely
|
| 388 |
+
flexible. "Jackspeak" is the slang of the royal navy. This module
|
| 389 |
+
does not have all the features. It is declarative and rigid by design.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/jackspeak/package.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jackspeak",
|
| 3 |
+
"version": "4.1.1",
|
| 4 |
+
"description": "A very strict and proper argument parser.",
|
| 5 |
+
"tshy": {
|
| 6 |
+
"main": true,
|
| 7 |
+
"exports": {
|
| 8 |
+
"./package.json": "./package.json",
|
| 9 |
+
".": "./src/index.js"
|
| 10 |
+
}
|
| 11 |
+
},
|
| 12 |
+
"main": "./dist/commonjs/index.js",
|
| 13 |
+
"types": "./dist/commonjs/index.d.ts",
|
| 14 |
+
"type": "module",
|
| 15 |
+
"exports": {
|
| 16 |
+
"./package.json": "./package.json",
|
| 17 |
+
".": {
|
| 18 |
+
"import": {
|
| 19 |
+
"types": "./dist/esm/index.d.ts",
|
| 20 |
+
"default": "./dist/esm/index.js"
|
| 21 |
+
},
|
| 22 |
+
"require": {
|
| 23 |
+
"types": "./dist/commonjs/index.d.ts",
|
| 24 |
+
"default": "./dist/commonjs/index.js"
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
"files": [
|
| 29 |
+
"dist"
|
| 30 |
+
],
|
| 31 |
+
"scripts": {
|
| 32 |
+
"build-examples": "for i in examples/*.js ; do node $i -h > ${i/.js/.txt}; done",
|
| 33 |
+
"preversion": "npm test",
|
| 34 |
+
"postversion": "npm publish",
|
| 35 |
+
"prepublishOnly": "git push origin --follow-tags",
|
| 36 |
+
"prepare": "tshy",
|
| 37 |
+
"pretest": "npm run prepare",
|
| 38 |
+
"presnap": "npm run prepare",
|
| 39 |
+
"test": "tap",
|
| 40 |
+
"snap": "tap",
|
| 41 |
+
"format": "prettier --write . --log-level warn",
|
| 42 |
+
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
|
| 43 |
+
},
|
| 44 |
+
"license": "BlueOak-1.0.0",
|
| 45 |
+
"prettier": {
|
| 46 |
+
"experimentalTernaries": true,
|
| 47 |
+
"semi": false,
|
| 48 |
+
"printWidth": 75,
|
| 49 |
+
"tabWidth": 2,
|
| 50 |
+
"useTabs": false,
|
| 51 |
+
"singleQuote": true,
|
| 52 |
+
"jsxSingleQuote": false,
|
| 53 |
+
"bracketSameLine": true,
|
| 54 |
+
"arrowParens": "avoid",
|
| 55 |
+
"endOfLine": "lf"
|
| 56 |
+
},
|
| 57 |
+
"devDependencies": {
|
| 58 |
+
"@types/node": "^22.6.0",
|
| 59 |
+
"prettier": "^3.3.3",
|
| 60 |
+
"tap": "^21.0.1",
|
| 61 |
+
"tshy": "^3.0.2",
|
| 62 |
+
"typedoc": "^0.26.7"
|
| 63 |
+
},
|
| 64 |
+
"dependencies": {
|
| 65 |
+
"@isaacs/cliui": "^8.0.2"
|
| 66 |
+
},
|
| 67 |
+
"engines": {
|
| 68 |
+
"node": "20 || >=22"
|
| 69 |
+
},
|
| 70 |
+
"funding": {
|
| 71 |
+
"url": "https://github.com/sponsors/isaacs"
|
| 72 |
+
},
|
| 73 |
+
"repository": {
|
| 74 |
+
"type": "git",
|
| 75 |
+
"url": "git+https://github.com/isaacs/jackspeak.git"
|
| 76 |
+
},
|
| 77 |
+
"keywords": [
|
| 78 |
+
"argument",
|
| 79 |
+
"parser",
|
| 80 |
+
"args",
|
| 81 |
+
"option",
|
| 82 |
+
"flag",
|
| 83 |
+
"cli",
|
| 84 |
+
"command",
|
| 85 |
+
"line",
|
| 86 |
+
"parse",
|
| 87 |
+
"parsing"
|
| 88 |
+
],
|
| 89 |
+
"author": "Isaac Z. Schlueter <i@izs.me>",
|
| 90 |
+
"tap": {
|
| 91 |
+
"typecheck": true
|
| 92 |
+
},
|
| 93 |
+
"module": "./dist/esm/index.js"
|
| 94 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-bigint/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2013 Andrey Sidorov
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 6 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 7 |
+
the Software without restriction, including without limitation the rights to
|
| 8 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
| 9 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
| 10 |
+
subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
| 17 |
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
| 18 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
| 19 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 20 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-bigint/README.md
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# json-bigint
|
| 2 |
+
|
| 3 |
+
[](http://travis-ci.org/sidorares/json-bigint)
|
| 4 |
+
[](https://nodei.co/npm/json-bigint/)
|
| 5 |
+
|
| 6 |
+
JSON.parse/stringify with bigints support. Based on Douglas Crockford [JSON.js](https://github.com/douglascrockford/JSON-js) package and [bignumber.js](https://github.com/MikeMcl/bignumber.js) library.
|
| 7 |
+
|
| 8 |
+
Native `Bigint` was added to JS recently, so we added an option to leverage it instead of `bignumber.js`. However, the parsing with native `BigInt` is kept an option for backward compability.
|
| 9 |
+
|
| 10 |
+
While most JSON parsers assume numeric values have same precision restrictions as IEEE 754 double, JSON specification _does not_ say anything about number precision. Any floating point number in decimal (optionally scientific) notation is valid JSON value. It's a good idea to serialize values which might fall out of IEEE 754 integer precision as strings in your JSON api, but `{ "value" : 9223372036854775807}`, for example, is still a valid RFC4627 JSON string, and in most JS runtimes the result of `JSON.parse` is this object: `{ value: 9223372036854776000 }`
|
| 11 |
+
|
| 12 |
+
==========
|
| 13 |
+
|
| 14 |
+
example:
|
| 15 |
+
|
| 16 |
+
```js
|
| 17 |
+
var JSONbig = require('json-bigint');
|
| 18 |
+
|
| 19 |
+
var json = '{ "value" : 9223372036854775807, "v2": 123 }';
|
| 20 |
+
console.log('Input:', json);
|
| 21 |
+
console.log('');
|
| 22 |
+
|
| 23 |
+
console.log('node.js built-in JSON:');
|
| 24 |
+
var r = JSON.parse(json);
|
| 25 |
+
console.log('JSON.parse(input).value : ', r.value.toString());
|
| 26 |
+
console.log('JSON.stringify(JSON.parse(input)):', JSON.stringify(r));
|
| 27 |
+
|
| 28 |
+
console.log('\n\nbig number JSON:');
|
| 29 |
+
var r1 = JSONbig.parse(json);
|
| 30 |
+
console.log('JSONbig.parse(input).value : ', r1.value.toString());
|
| 31 |
+
console.log('JSONbig.stringify(JSONbig.parse(input)):', JSONbig.stringify(r1));
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
Output:
|
| 35 |
+
|
| 36 |
+
```
|
| 37 |
+
Input: { "value" : 9223372036854775807, "v2": 123 }
|
| 38 |
+
|
| 39 |
+
node.js built-in JSON:
|
| 40 |
+
JSON.parse(input).value : 9223372036854776000
|
| 41 |
+
JSON.stringify(JSON.parse(input)): {"value":9223372036854776000,"v2":123}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
big number JSON:
|
| 45 |
+
JSONbig.parse(input).value : 9223372036854775807
|
| 46 |
+
JSONbig.stringify(JSONbig.parse(input)): {"value":9223372036854775807,"v2":123}
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
### Options
|
| 50 |
+
|
| 51 |
+
The behaviour of the parser is somewhat configurable through 'options'
|
| 52 |
+
|
| 53 |
+
#### options.strict, boolean, default false
|
| 54 |
+
|
| 55 |
+
Specifies the parsing should be "strict" towards reporting duplicate-keys in the parsed string.
|
| 56 |
+
The default follows what is allowed in standard json and resembles the behavior of JSON.parse, but overwrites any previous values with the last one assigned to the duplicate-key.
|
| 57 |
+
|
| 58 |
+
Setting options.strict = true will fail-fast on such duplicate-key occurances and thus warn you upfront of possible lost information.
|
| 59 |
+
|
| 60 |
+
example:
|
| 61 |
+
|
| 62 |
+
```js
|
| 63 |
+
var JSONbig = require('json-bigint');
|
| 64 |
+
var JSONstrict = require('json-bigint')({ strict: true });
|
| 65 |
+
|
| 66 |
+
var dupkeys = '{ "dupkey": "value 1", "dupkey": "value 2"}';
|
| 67 |
+
console.log('\n\nDuplicate Key test with both lenient and strict JSON parsing');
|
| 68 |
+
console.log('Input:', dupkeys);
|
| 69 |
+
var works = JSONbig.parse(dupkeys);
|
| 70 |
+
console.log('JSON.parse(dupkeys).dupkey: %s', works.dupkey);
|
| 71 |
+
var fails = 'will stay like this';
|
| 72 |
+
try {
|
| 73 |
+
fails = JSONstrict.parse(dupkeys);
|
| 74 |
+
console.log('ERROR!! Should never get here');
|
| 75 |
+
} catch (e) {
|
| 76 |
+
console.log(
|
| 77 |
+
'Succesfully catched expected exception on duplicate keys: %j',
|
| 78 |
+
e
|
| 79 |
+
);
|
| 80 |
+
}
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
Output
|
| 84 |
+
|
| 85 |
+
```
|
| 86 |
+
Duplicate Key test with big number JSON
|
| 87 |
+
Input: { "dupkey": "value 1", "dupkey": "value 2"}
|
| 88 |
+
JSON.parse(dupkeys).dupkey: value 2
|
| 89 |
+
Succesfully catched expected exception on duplicate keys: {"name":"SyntaxError","message":"Duplicate key \"dupkey\"","at":33,"text":"{ \"dupkey\": \"value 1\", \"dupkey\": \"value 2\"}"}
|
| 90 |
+
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
#### options.storeAsString, boolean, default false
|
| 94 |
+
|
| 95 |
+
Specifies if BigInts should be stored in the object as a string, rather than the default BigNumber.
|
| 96 |
+
|
| 97 |
+
Note that this is a dangerous behavior as it breaks the default functionality of being able to convert back-and-forth without data type changes (as this will convert all BigInts to be-and-stay strings).
|
| 98 |
+
|
| 99 |
+
example:
|
| 100 |
+
|
| 101 |
+
```js
|
| 102 |
+
var JSONbig = require('json-bigint');
|
| 103 |
+
var JSONbigString = require('json-bigint')({ storeAsString: true });
|
| 104 |
+
var key = '{ "key": 1234567890123456789 }';
|
| 105 |
+
console.log('\n\nStoring the BigInt as a string, instead of a BigNumber');
|
| 106 |
+
console.log('Input:', key);
|
| 107 |
+
var withInt = JSONbig.parse(key);
|
| 108 |
+
var withString = JSONbigString.parse(key);
|
| 109 |
+
console.log(
|
| 110 |
+
'Default type: %s, With option type: %s',
|
| 111 |
+
typeof withInt.key,
|
| 112 |
+
typeof withString.key
|
| 113 |
+
);
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
Output
|
| 117 |
+
|
| 118 |
+
```
|
| 119 |
+
Storing the BigInt as a string, instead of a BigNumber
|
| 120 |
+
Input: { "key": 1234567890123456789 }
|
| 121 |
+
Default type: object, With option type: string
|
| 122 |
+
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
#### options.useNativeBigInt, boolean, default false
|
| 126 |
+
|
| 127 |
+
Specifies if parser uses native BigInt instead of bignumber.js
|
| 128 |
+
|
| 129 |
+
example:
|
| 130 |
+
|
| 131 |
+
```js
|
| 132 |
+
var JSONbig = require('json-bigint');
|
| 133 |
+
var JSONbigNative = require('json-bigint')({ useNativeBigInt: true });
|
| 134 |
+
var key = '{ "key": 993143214321423154315154321 }';
|
| 135 |
+
console.log(`\n\nStoring the Number as native BigInt, instead of a BigNumber`);
|
| 136 |
+
console.log('Input:', key);
|
| 137 |
+
var normal = JSONbig.parse(key);
|
| 138 |
+
var nativeBigInt = JSONbigNative.parse(key);
|
| 139 |
+
console.log(
|
| 140 |
+
'Default type: %s, With option type: %s',
|
| 141 |
+
typeof normal.key,
|
| 142 |
+
typeof nativeBigInt.key
|
| 143 |
+
);
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
Output
|
| 147 |
+
|
| 148 |
+
```
|
| 149 |
+
Storing the Number as native BigInt, instead of a BigNumber
|
| 150 |
+
Input: { "key": 993143214321423154315154321 }
|
| 151 |
+
Default type: object, With option type: bigint
|
| 152 |
+
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
#### options.alwaysParseAsBig, boolean, default false
|
| 156 |
+
|
| 157 |
+
Specifies if all numbers should be stored as BigNumber.
|
| 158 |
+
|
| 159 |
+
Note that this is a dangerous behavior as it breaks the default functionality of being able to convert back-and-forth without data type changes (as this will convert all Number to be-and-stay BigNumber)
|
| 160 |
+
|
| 161 |
+
example:
|
| 162 |
+
|
| 163 |
+
```js
|
| 164 |
+
var JSONbig = require('json-bigint');
|
| 165 |
+
var JSONbigAlways = require('json-bigint')({ alwaysParseAsBig: true });
|
| 166 |
+
var key = '{ "key": 123 }'; // there is no need for BigNumber by default, but we're forcing it
|
| 167 |
+
console.log(`\n\nStoring the Number as a BigNumber, instead of a Number`);
|
| 168 |
+
console.log('Input:', key);
|
| 169 |
+
var normal = JSONbig.parse(key);
|
| 170 |
+
var always = JSONbigAlways.parse(key);
|
| 171 |
+
console.log(
|
| 172 |
+
'Default type: %s, With option type: %s',
|
| 173 |
+
typeof normal.key,
|
| 174 |
+
typeof always.key
|
| 175 |
+
);
|
| 176 |
+
```
|
| 177 |
+
|
| 178 |
+
Output
|
| 179 |
+
|
| 180 |
+
```
|
| 181 |
+
Storing the Number as a BigNumber, instead of a Number
|
| 182 |
+
Input: { "key": 123 }
|
| 183 |
+
Default type: number, With option type: object
|
| 184 |
+
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
If you want to force all numbers to be parsed as native `BigInt`
|
| 188 |
+
(you probably do! Otherwise any calulations become a real headache):
|
| 189 |
+
|
| 190 |
+
```js
|
| 191 |
+
var JSONbig = require('json-bigint')({
|
| 192 |
+
alwaysParseAsBig: true,
|
| 193 |
+
useNativeBigInt: true,
|
| 194 |
+
});
|
| 195 |
+
```
|
| 196 |
+
|
| 197 |
+
#### options.protoAction, boolean, default: "error". Possible values: "error", "ignore", "preserve"
|
| 198 |
+
|
| 199 |
+
#### options.constructorAction, boolean, default: "error". Possible values: "error", "ignore", "preserve"
|
| 200 |
+
|
| 201 |
+
Controls how `__proto__` and `constructor` properties are treated. If set to "error" they are not allowed and
|
| 202 |
+
parse() call will throw an error. If set to "ignore" the prroperty and it;s value is skipped from parsing and object building.
|
| 203 |
+
If set to "preserve" the `__proto__` property is set. One should be extra careful and make sure any other library consuming generated data
|
| 204 |
+
is not vulnerable to prototype poisoning attacks.
|
| 205 |
+
|
| 206 |
+
example:
|
| 207 |
+
|
| 208 |
+
```js
|
| 209 |
+
var JSONbigAlways = require('json-bigint')({ protoAction: 'ignore' });
|
| 210 |
+
const user = JSONbig.parse('{ "__proto__": { "admin": true }, "id": 12345 }');
|
| 211 |
+
// => result is { id: 12345 }
|
| 212 |
+
```
|
| 213 |
+
|
| 214 |
+
### Links:
|
| 215 |
+
|
| 216 |
+
- [RFC4627: The application/json Media Type for JavaScript Object Notation (JSON)](http://www.ietf.org/rfc/rfc4627.txt)
|
| 217 |
+
- [Re: \[Json\] Limitations on number size?](http://www.ietf.org/mail-archive/web/json/current/msg00297.html)
|
| 218 |
+
- [Is there any proper way to parse JSON with large numbers? (long, bigint, int64)](http://stackoverflow.com/questions/18755125/node-js-is-there-any-proper-way-to-parse-json-with-large-numbers-long-bigint)
|
| 219 |
+
- [What is JavaScript's Max Int? What's the highest Integer value a Number can go to without losing precision?](http://stackoverflow.com/questions/307179/what-is-javascripts-max-int-whats-the-highest-integer-value-a-number-can-go-t)
|
| 220 |
+
- [Large numbers erroneously rounded in Javascript](http://stackoverflow.com/questions/1379934/large-numbers-erroneously-rounded-in-javascript)
|
| 221 |
+
|
| 222 |
+
### Note on native BigInt support
|
| 223 |
+
|
| 224 |
+
#### Stringifying
|
| 225 |
+
|
| 226 |
+
Full support out-of-the-box, stringifies BigInts as pure numbers (no quotes, no `n`)
|
| 227 |
+
|
| 228 |
+
#### Limitations
|
| 229 |
+
|
| 230 |
+
- Roundtrip operations
|
| 231 |
+
|
| 232 |
+
`s === JSONbig.stringify(JSONbig.parse(s))` but
|
| 233 |
+
|
| 234 |
+
`o !== JSONbig.parse(JSONbig.stringify(o))`
|
| 235 |
+
|
| 236 |
+
when `o` has a value with something like `123n`.
|
| 237 |
+
|
| 238 |
+
`JSONbig` stringify `123n` as `123`, which becomes `number` (aka `123` not `123n`) by default when being reparsed.
|
| 239 |
+
|
| 240 |
+
There is currently no consistent way to deal with this issue, so we decided to leave it, handling this specific case is then up to users.
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-bigint/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var json_stringify = require('./lib/stringify.js').stringify;
|
| 2 |
+
var json_parse = require('./lib/parse.js');
|
| 3 |
+
|
| 4 |
+
module.exports = function(options) {
|
| 5 |
+
return {
|
| 6 |
+
parse: json_parse(options),
|
| 7 |
+
stringify: json_stringify
|
| 8 |
+
}
|
| 9 |
+
};
|
| 10 |
+
//create the default method members with no options applied for backwards compatibility
|
| 11 |
+
module.exports.parse = json_parse();
|
| 12 |
+
module.exports.stringify = json_stringify;
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-bigint/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "json-bigint",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"description": "JSON.parse with bigints support",
|
| 5 |
+
"main": "index.js",
|
| 6 |
+
"files": [
|
| 7 |
+
"index.js",
|
| 8 |
+
"lib/parse.js",
|
| 9 |
+
"lib/stringify.js"
|
| 10 |
+
],
|
| 11 |
+
"scripts": {
|
| 12 |
+
"test": "./node_modules/mocha/bin/mocha -R spec --check-leaks test/*-test.js"
|
| 13 |
+
},
|
| 14 |
+
"repository": {
|
| 15 |
+
"type": "git",
|
| 16 |
+
"url": "git@github.com:sidorares/json-bigint.git"
|
| 17 |
+
},
|
| 18 |
+
"keywords": [
|
| 19 |
+
"JSON",
|
| 20 |
+
"bigint",
|
| 21 |
+
"bignumber",
|
| 22 |
+
"parse",
|
| 23 |
+
"json"
|
| 24 |
+
],
|
| 25 |
+
"author": "Andrey Sidorov <sidorares@yandex.ru>",
|
| 26 |
+
"license": "MIT",
|
| 27 |
+
"dependencies": {
|
| 28 |
+
"bignumber.js": "^9.0.0"
|
| 29 |
+
},
|
| 30 |
+
"devDependencies": {
|
| 31 |
+
"chai": "4.2.0",
|
| 32 |
+
"mocha": "8.0.1"
|
| 33 |
+
}
|
| 34 |
+
}
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-schema-ref-resolver/.gitattributes
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Set default behavior to automatically convert line endings
|
| 2 |
+
* text=auto eol=lf
|
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/json-schema-ref-resolver/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2023 Fastify
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|